diff --git a/ios/DeveloperApp/.DS_Store b/ios/DeveloperApp/.DS_Store index 3b7c42a..8637ac2 100644 Binary files a/ios/DeveloperApp/.DS_Store and b/ios/DeveloperApp/.DS_Store differ diff --git a/ios/DeveloperApp/Config/ApiKeys.xcconfig b/ios/DeveloperApp/Config/ApiKeys.xcconfig index b768381..08402dd 100644 --- a/ios/DeveloperApp/Config/ApiKeys.xcconfig +++ b/ios/DeveloperApp/Config/ApiKeys.xcconfig @@ -1,2 +1,2 @@ // Api keys -GOOGLE_MAPS_API_KEY = {{google-maps-api-key}} +GOOGLE_MAPS_API_KEY = {Google_Key} diff --git a/ios/DeveloperApp/Images.xcassets/.DS_Store b/ios/DeveloperApp/Images.xcassets/.DS_Store index c87e6e8..ca4b743 100644 Binary files a/ios/DeveloperApp/Images.xcassets/.DS_Store and b/ios/DeveloperApp/Images.xcassets/.DS_Store differ diff --git a/ios/DeveloperApp/SampleApps/.DS_Store b/ios/DeveloperApp/SampleApps/.DS_Store index f747007..e3c6dad 100644 Binary files a/ios/DeveloperApp/SampleApps/.DS_Store and b/ios/DeveloperApp/SampleApps/.DS_Store differ diff --git a/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon.png b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon.png new file mode 100644 index 0000000..b23a391 Binary files /dev/null and b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon.png differ diff --git a/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon@2x.png b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon@2x.png new file mode 100644 index 0000000..2c4aa30 Binary files /dev/null and b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon@2x.png differ diff --git a/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon@3x.png b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon@3x.png new file mode 100644 index 0000000..5b31261 Binary files /dev/null and b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/drawer/src/views/assets/toggle-drawer-icon@3x.png differ diff --git a/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/react-navigation-stack/lib/module/vendor/views/assets/back-icon-mask.png b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/elements/src/assets/back-icon-mask.png similarity index 100% rename from ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/react-navigation-stack/lib/module/vendor/views/assets/back-icon-mask.png rename to ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/elements/src/assets/back-icon-mask.png diff --git a/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/react-navigation-stack/lib/module/vendor/views/assets/back-icon.png b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/elements/src/assets/back-icon.png similarity index 100% rename from ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/react-navigation-stack/lib/module/vendor/views/assets/back-icon.png rename to ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/elements/src/assets/back-icon.png diff --git a/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/react-navigation-stack/lib/module/vendor/views/assets/back-icon@2x.png b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/elements/src/assets/back-icon@2x.png similarity index 100% rename from ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/react-navigation-stack/lib/module/vendor/views/assets/back-icon@2x.png rename to ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/elements/src/assets/back-icon@2x.png diff --git a/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/react-navigation-stack/lib/module/vendor/views/assets/back-icon@3x.png b/ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/elements/src/assets/back-icon@3x.png similarity index 100% rename from ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/react-navigation-stack/lib/module/vendor/views/assets/back-icon@3x.png rename to ios/DeveloperApp/SampleApps/Bundles/banking_app/assets/node_modules/@react-navigation/elements/src/assets/back-icon@3x.png diff --git a/ios/DeveloperApp/SampleApps/Bundles/banking_app/index.bundle b/ios/DeveloperApp/SampleApps/Bundles/banking_app/index.bundle index eaf0268..b8912fe 100644 --- a/ios/DeveloperApp/SampleApps/Bundles/banking_app/index.bundle +++ b/ios/DeveloperApp/SampleApps/Bundles/banking_app/index.bundle @@ -3,76 +3,76 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. !(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach((function(n,t){e[n]=!0})),e}function t(n,t,a){if(n.formatValueCalls++,n.formatValueCalls>200)return`[TOO BIG formatValueCalls ${n.formatValueCalls} exceeded limit of 200]`;var f=r(n,t);if(f)return f;var c=Object.keys(t),s=e(c);if(d(t)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(t);if(0===c.length){if(v(t)){var g=t.name?': '+t.name:'';return n.stylize('[Function'+g+']','special')}if(p(t))return n.stylize(RegExp.prototype.toString.call(t),'regexp');if(y(t))return n.stylize(Date.prototype.toString.call(t),'date');if(d(t))return o(t)}var h,b,m='',j=!1,O=['{','}'];(h=t,Array.isArray(h)&&(j=!0,O=['[',']']),v(t))&&(m=' [Function'+(t.name?': '+t.name:'')+']');return p(t)&&(m=' '+RegExp.prototype.toString.call(t)),y(t)&&(m=' '+Date.prototype.toUTCString.call(t)),d(t)&&(m=' '+o(t)),0!==c.length||j&&0!=t.length?a<0?p(t)?n.stylize(RegExp.prototype.toString.call(t),'regexp'):n.stylize('[Object]','special'):(n.seen.push(t),b=j?i(n,t,a,s,c):c.map((function(e){return l(n,t,a,s,e,j)})),n.seen.pop(),u(b,m,O)):O[0]+m+O[1]}function r(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var t="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(t,'string')}return c(e)?n.stylize(''+e,'number'):a(e)?n.stylize(''+e,'boolean'):f(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,t,r,o){for(var i=[],u=0,a=e.length;u-1&&(a=l?a.split('\n').map((function(n){return' '+n})).join('\n').substr(2):'\n'+a.split('\n').map((function(n){return' '+n})).join('\n')):a=n.stylize('[Circular]','special')),s(u)){if(l&&i.match(/^\d+$/))return a;(u=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=n.stylize(u,'name')):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=n.stylize(u,'string'))}return u+': '+a}function u(n,e,t){return n.reduce((function(n,e){return e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1}),0)>60?t[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+t[1]:t[0]+e+' '+n.join(', ')+' '+t[1]}function a(n){return'boolean'==typeof n}function f(n){return null===n}function c(n){return'number'==typeof n}function s(n){return void 0===n}function p(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function b(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,r){return t({seen:[],formatValueCalls:0,stylize:n},e,r.depth)}})(),t=0,r=1,o=2,i=3,l=[];l[t]='debug',l[r]='log',l[o]='warning',l[i]='error';function u(t){return function(){var r;r=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,(function(n){return e(n,{depth:10})})).join(', ');var u=arguments[0],a=t;'string'==typeof u&&'Warning: '===u.slice(0,9)&&a>=i&&(a=o),n.__inspectorLog&&n.__inspectorLog(l[a],r,[].slice.call(arguments),1),f.length&&(r=c('',r)),n.nativeLoggingHook(r,a)}}function a(n,e){return Array.apply(null,Array(e)).map((function(){return n}))}var f=[];function c(n,e){return f.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:u(i),info:u(r),log:u(r),warn:u(o),trace:u(t),debug:u(t),table:function(e){if(!Array.isArray(e)){var t=e;for(var o in e=[],t)if(t.hasOwnProperty(o)){var i=t[o];i["(index)"]=o,e.push(i)}}if(0!==e.length){var l=Object.keys(e[0]).sort(),u=[],f=[];l.forEach((function(n,t){f[t]=n.length;for(var r=0;r';return function(){for(var r=arguments.length,u=new Array(r),e=0;e"},visibleForRoles:["Customer"]},{pageName:"PersonalFinance.Savings_and_SavingGoals",caption:(0,t.t)(["Savings"]),icon:{type:"image",iconUrl:"\r\n\x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\r\n\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},visibleForRoles:["Customer"]},{pageName:"PersonalFinance.Transact",caption:(0,t.t)(["Transact"]),icon:{type:"image",iconUrl:""},visibleForRoles:["Customer"]},{pageName:"PersonalFinance.Customer_Account_Native",caption:(0,t.t)(["Account"]),icon:{type:"image",iconUrl:""},visibleForRoles:["Customer"]}]},registerPages:function(){t.NativeUI.registerPage("PersonalFinance.Login_SetUpAdditionalAuthentication",r(d[4]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Login_AdditionalAuthentication",r(d[5]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Home_Native",r(d[6]),{sidebar:!1,showBottomBar:!0,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Savings_and_SavingGoals",r(d[7]),{sidebar:!1,headerRegionName:"placeholder$Header",showBottomBar:!0,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transact",r(d[8]),{sidebar:!1,headerRegionName:"placeholder$Header",showBottomBar:!0,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Customer_Account_Native",r(d[9]),{sidebar:!1,showBottomBar:!0,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.SavingGoal_Manage",r(d[10]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transaction_Details",r(d[11]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transactions_per_Account",r(d[12]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Accounts",r(d[13]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Friends_Overview",r(d[14]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.SavingGoal_NewEdit",r(d[15]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Customer_NewSplitBill",r(d[16]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transaction_NewEdit",r(d[17]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.BankAccount_All",r(d[18]),{sidebar:!1,headerRegionName:"placeholder$Header",showBottomBar:!1,type:"Popup"}),t.NativeUI.registerPage("PersonalFinance.Transaction_NewCashTransaction",r(d[19]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.RecentActivity",r(d[20]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Chat_New",r(d[21]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Send_Money",r(d[22]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Request_Money",r(d[23]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Login",r(d[24]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Intro_Anonymous",r(d[25]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Register_PersonalDetails",r(d[26]),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Home_Native_Non_Accessible",r(d[27]),{sidebar:!1,showBottomBar:!1,type:"Default"})},animationEnabled:!0,deploymentID:"638405809570296177",checkForOTAUpdates:!1,loggingEnabled:!1,encryptionDbEnabled:!0,encryptLocalFiles:!0})}),0,[1,943,1067,1074,1077,1259,1267,1312,1319,1334,1338,1345,1348,1357,1361,1368,1385,1397,1402,1405,1408,1410,1419,1427,1429,1435,1436,1445]); -__d((function(e,t,n,i,r,a,o){var s=t(o[0]);Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"Big",{enumerable:!0,get:function(){return H.Big}}),a.NativeUI=void 0,Object.defineProperty(a,"addEnumerations",{enumerable:!0,get:function(){return S.a}}),Object.defineProperty(a,"asPluginWidget",{enumerable:!0,get:function(){return x.a}}),Object.defineProperty(a,"asPluginWidgets",{enumerable:!0,get:function(){return x.b}}),Object.defineProperty(a,"flatten",{enumerable:!0,get:function(){return C.f}}),a.hooks=void 0,a.startApp=function(e){return Ki.apply(this,arguments)},Object.defineProperty(a,"t",{enumerable:!0,get:function(){return j.a}});var u=s(t(o[1])),c=s(t(o[2])),l=s(t(o[3])),d=s(t(o[4])),f=s(t(o[5])),h=s(t(o[6])),g=s(t(o[7])),p=s(t(o[8])),v=s(t(o[9])),y=s(t(o[10])),m=s(t(o[11])),b=s(t(o[12])),w=t(o[13]),k=de(t(o[14])),S=t(o[15]),x=t(o[16]),j=t(o[17]),O=t(o[18]),C=t(o[19]),P=t(o[20]),E=t(o[21]),A=t(o[22]),T=t(o[23]),N=t(o[24]),B=t(o[25]),D=t(o[26]),I=t(o[27]),M=t(o[28]);t(o[29]);var L=t(o[30]),$=t(o[31]),_=t(o[32]),R=t(o[33]),U=t(o[34]),F=t(o[35]),G=t(o[36]),H=de(t(o[37])),z=t(o[38]),q=t(o[39]),V=t(o[40]),Q=t(o[41]),W=t(o[42]),J=t(o[43]),K=t(o[44]),Y=t(o[45]),X=t(o[46]),Z=t(o[47]),ee=t(o[48]),te=t(o[49]),ne=t(o[50]),ie=de(t(o[51])),re=t(o[52]),ae=t(o[53]),oe=t(o[54]),se=s(t(o[55])),ue=s(t(o[56]));t(o[57]),t(o[58]),t(o[59]),t(o[60]),t(o[61]),t(o[62]),t(o[63]),t(o[64]),t(o[65]),t(o[66]),t(o[67]),t(o[68]),t(o[69]),t(o[70]),t(o[71]),t(o[72]),t(o[73]);var ce=["color","size"];function le(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(le=function(e){return e?n:t})(e)}function de(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=le(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(i,a,o):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}function fe(e){var t=he();return function(){var n,i=(0,v.default)(e);if(t){var r=(0,v.default)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,p.default)(this,n)}}function he(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ge(){var e=(0,V.g)();return[e.getUserId(),e.getSessionObjectId()]}function pe(e,t){var n=(0,V.g)(),i=[n.getUserId(),n.getSessionObjectId()],r=e.getAllObjects(),a=(0,P.f)(r,t.concat(i));return(0,P.g)(e,a)}function ve(e,t,n){var i=new Set,r=e.getAllObjects(),a=(0,C.p)((function(t){var i,r=e.getObject(t);return null!=(i=null==r?void 0:r.metaData.needsReachableState[n])&&i}),t),o=(0,b.default)(a,2),s=o[0],u=o[1];if(0!==s.length){var c=(0,V.g)(),l=[c.getUserId(),c.getSessionObjectId()];ye(i,(0,P.f)(r,s.concat(l)))}var d=r.filter((function(t){return e.isNew(t.getGuid())})),f=u.filter((function(t){return e.isNew(t)}));switch(ye(i,u),n){case"commit":ye(i,(0,P.f)(d,f)),ye(i,(0,P.b)(e,r,u));break;case"delete":ye(i,(0,P.a)(r,u));break;case"rollback":ye(i,u),ye(i,(0,P.a)(r,f))}return(0,P.g)(e,Array.from(i))}function ye(e,t){t.forEach((function(t){return e.add(t)}))}function me(e,t,n){var i=n.commits,r=void 0===i?[]:i,a=n.deletes,o=void 0===a?[]:a;t.forEach((function(t){var n=t.getGuid();if(r.includes(n)){var i=e.getObject(n);if(!i)throw new Error("inconsistent response: committed object is missing from response and cache");t.resetFromJSON(i.jsonData)}else o.includes(n)&&t.markAsUnavailable()}))}function be(e,t){(0,w.g)().includes(t)||e.removeObjectKeepChanges(t)}var we,ke=k.NativeModules.MendixSplashScreen,Se="Navigation/CLOSE_PREVIOUS_PAGES",xe="Navigation/REMOVE_PLACEHOLDER",je={closePreviousPages:function(e){return{type:Se,n:e.n}},removePlaceholder:function(){return{type:xe}}},Oe=(function(){function e(t){(0,y.default)(this,e),this.place=t,this.listeners={},this.suspended=!1,this.title="",this.historyId=(0,A.n)("form")}return(0,m.default)(e,[{key:"getTitle",value:function(){return this.title}},{key:"setSuspend",value:function(e){this.suspended!==e&&(this.suspended=e)}},{key:"isSuspended",value:function(){return this.suspended}},{key:"publish",value:function(e,t,n){var i,r=(null!=(i=this.listeners[e])?i:[]).slice();!(function e(){r.length?(e.data=null==t?void 0:t.data,r.pop()(e,null!=n?n:w.h)):void 0!==t&&t()})()}},{key:"listen",value:function(e,t){var n,i=null!=(n=this.listeners[e])?n:[];return this.listeners[e]=i,i.push(t),function(){return i.splice(i.indexOf(t),1)}}},{key:"unlisten",value:function(e){e()}},{key:"close",value:function(e,t){this.closePage(1,!1).then(e).catch(t)}},{key:"getHistoryId",value:function(){return this.historyId}}]),e})(),Ce=(function(e){(0,g.default)(i,e);var t,n=fe(i);function i(e){var t;return(0,y.default)(this,i),(t=n.call(this,"content")).storeBackend=e.storeBackend,t.historyId=e.historyId,t.name=e.name,t.title=e.title,t.pageContent=e.pageContent,t.formParameters=e.formParameters,t.setFormSuspended=function(e){return t.storeBackend.set(D.p,"formSuspended",T.r,e)},(0,w.a)((function(){t.storeBackend.set(D.p,"form",T.r,[(0,f.default)(t),t.getHistoryId()]),Object.keys(t.formParameters).forEach((function(e){t.storeBackend.set(e,"firstLoadDone",T.r,!1)})),t.setFormSuspended(!1)})),(0,N.g)(t.getParameterGuids()).then((function(e){return(0,w.a)((function(){return t.setFormParameters(e)}))}),(function(e){return(0,w.h)(e)})),t}return(0,m.default)(i,[{key:"getStoreBackend",value:function(){return this.storeBackend}},{key:"getName",value:function(){return this.name}},{key:"getParameterGuids",value:function(){return Object.values(this.formParameters).filter((function(e){return e}))}},{key:"setSuspend",value:function(e){var t=this;(0,h.default)((0,v.default)(i.prototype),"setSuspend",this).call(this,e),(0,w.a)((function(){return t.setFormSuspended(e)}))}},{key:"getSubmitObjects",value:function(){var e=(0,w.r)(this.storeBackend.getAllEntries$("editableObject")).map((function(e){var t=e.value;return t?(0,w.b)(t,void 0):void 0})).filter((function(e){return e}));return(0,C.b)(e)}},{key:"triggerValidation",value:(t=(0,d.default)((function*(){if(this.storeBackend.set(D.p,"validationRequest",T.r,(0,A.n)("validation_request")),yield(0,B.w)(0),(0,w.r)(this.storeBackend.getAllEntries$("isInvalid")).some((function(e){return e.value})))throw new B.V})),function(){return t.apply(this,arguments)})},{key:"getPlaceholderContent",value:function(e){var t;return null!=(t=this.pageContent[e])?t:null}},{key:"setFormParameters",value:function(e){var t=this;Object.keys(this.formParameters).forEach((function(n){var i=t.formParameters[n],r=e.find((function(e){return e.getGuid()===i})),a=n;t.storeBackend.set(a,"object",T.r,r?(0,w.c)(r):(0,w.d)()),t.storeBackend.set(a,"firstLoadDone",T.r,!0)}))}}]),i})(Oe);function Pe(e){e&&(we=e)}function Ee(){return we}function Ae(e,t){return Te.apply(this,arguments)}function Te(){return Te=(0,d.default)((function*(e,t){var n=Ee();if(void 0===n)throw new C.A;for(var i of e)n.dispatch(i);t&&(0,C.e)(n).dispatch(t),yield k.InteractionManager.runAfterInteractions()})),Te.apply(this,arguments)}function Ne(e){return Be.apply(this,arguments)}function Be(){return Be=(0,d.default)((function*(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:O.L.get().getLogger(O.a.Navigation)).trace("Dispatch goBack action."+(e?`${e} pages will be closed after navigation`:"")),yield Ae((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(function*(){1===e?yield E.NavigationActions.back():e>1&&(yield E.StackActions.pop({n:e,immediate:t}))})()})(e))})),Be.apply(this,arguments)}var De,Ie=(function(e){(0,g.default)(i,e);var t,n=fe(i);function i(){return(0,y.default)(this,i),n.apply(this,arguments)}return(0,m.default)(i,[{key:"closePage",value:(t=(0,d.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;yield Ne(e)})),function(){return t.apply(this,arguments)})}]),i})(Ce),Me={};function Le(e,t,n,i){var r=Me[e];return void 0===r&&(r=new Ie({storeBackend:new T.S,historyId:e,name:t,title:n,pageContent:{},formParameters:i}),Me[e]=r),r}function $e(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{formId:arguments.length>4&&void 0!==arguments[4]?arguments[4]:(0,A.n)("form"),pageName:e.name,title:null!=n?n:e.content.$$title,formParameters:i,layoutType:e.navigation.type,withSideBar:e.navigation.sidebar,withBottomBar:e.navigation.showBottomBar,inBottomBar:t.some((function(t){return t.pageName===e.name})),bottomBarIndex:t.findIndex((function(t){return t.pageName===e.name}))}}function*_e(e,t,n){null!=n&&n.trace(`Generate goToPage action with params: ${JSON.stringify(e)}`),t&&t<0?yield*(function*(e){yield E.StackActions.reset({key:"StackRouterRoot",actions:[E.NavigationActions.navigate({routeName:"SideBarNavigator",key:"SideBarNavigator",action:E.NavigationActions.navigate({routeName:"SideBarStack",key:"SideBarStack",action:E.StackActions.reset({key:"SideBarStack",actions:e.withBottomBar?[E.NavigationActions.navigate({routeName:"BottomBarNavigator",key:"BottomBarNavigator",action:E.NavigationActions.navigate({key:"BottomBarNavigator",routeName:e.bottomBarIndex.toString()})})]:[E.NavigationActions.navigate({routeName:"DefaultPageWithoutBottomBar",params:e})],index:0})})})],index:0}),e.withBottomBar&&(yield E.StackActions.popToTop({immediate:!0}))})(e):"Default"===e.layoutType?(e.withBottomBar?(yield E.NavigationActions.navigate({routeName:"SideBarStack",key:"SideBarStack",action:E.NavigationActions.navigate({routeName:"BottomBarNavigator",key:"BottomBarNavigator",action:e.inBottomBar?E.NavigationActions.navigate({key:e.bottomBarIndex.toString(),routeName:e.bottomBarIndex.toString()}):E.StackActions.push({routeName:"DefaultPage",params:e,numberOfPagesToClose:t})})}),e.inBottomBar&&(yield E.StackActions.popToTop({key:e.bottomBarIndex.toString(),immediate:!0}))):yield E.NavigationActions.navigate({routeName:"SideBarStack",key:"SideBarStack",action:E.StackActions.push({routeName:"DefaultPageWithoutBottomBar",params:e,numberOfPagesToClose:t})}),yield E.NavigationActions.navigate({routeName:"SideBarStack",key:"SideBarStack",action:je.removePlaceholder()})):yield E.NavigationActions.navigate({routeName:"PopupNavigator",key:"PopupNavigator",action:E.StackActions.push({routeName:"PopupPage",params:e,numberOfPagesToClose:t})})}function Re(e,t,n,i,r,a){return Ue.apply(this,arguments)}function Ue(){return Ue=(0,d.default)((function*(e,t,n,i,r,a){var o=Ee();if(void 0===o)throw new C.A;var s,u,c,l,d,f,h=(0,A.n)("form"),g=Le(h,e.name,null!=n?n:e.content.$$title,i),p=$e(e,t,n,i,h);if(u=p,l=(0,C.e)(Ee()).state.nav,d="PopupNavigator"===(null==l||null==(c=l.routes[l.index])?void 0:c.key),f="Popup"===u.layoutType,d&&!f&&(null!=a&&a.trace("Navigation is out of popups. Dispatch StackActions.popToTop"),o.dispatch(E.StackActions.popToTop({key:"StackRouterRoot"})),yield k.InteractionManager.runAfterInteractions()),r&&r>0){var v="Popup"===p.layoutType?"StackRouterRoot":p.withBottomBar?"BottomBarNavigator":"SideBarStack";s=E.NavigationActions.navigate({routeName:v,key:v,action:je.closePreviousPages({n:r})}),null==a||a.trace(`${r} pages will be closed after navigation`)}return yield Ae(_e(p,r,a),s),g})),Ue.apply(this,arguments)}function Fe(){(0,C.e)(Ee()).dispatch(I.DrawerActions.toggleDrawer())}!(function(e){e.DEFAULT="Default",e.POPUP="Popup"})(De||(De={}));var Ge,He="Blank",ze="BlankPagePlaceholder",qe={content:{$$page:function(){return function(){return null}},$$sidebar:function(){return function(){return null}},$$style:[],$$title:"",$$parameters:[]},navigation:{sidebar:!1,showBottomBar:!1,type:"Default"},style:{}},Ve=[Object.assign({},qe,{name:He,navigation:Object.assign({},qe.navigation,{showBottomBar:!0}),parameters:[]}),Object.assign({},qe,{name:ze,parameters:[]})],Qe=[],We={registerPage:function(e,t,n){0===Qe.length&&(n.showBottomBar=!1),Ve.push({name:e,content:t,navigation:n,style:(0,C.f)(t.$$style),parameters:t.$$parameters})},registerBottomBarItem:function(e){return Qe.push(e)},getPages:function(){return Ve},getBottomBarItems:function(){return Qe},findPage:function(e){return Ve.find((function(t){return t.name===e}))},findBottomBarItems:function(e){return Qe.filter((function(t){return t.pageName===e}))}};function Je(e){e&&(Ge=e)}function Ke(e,t){return Ge.add(e,t)}function Ye(e){Ge.remove(e)}function Xe(e,t,n){var i=(0,j.t)("mxui.widget.DialogMessage",e),r=null!=n?n:[{text:(0,j.t)("mxui.widget.DialogMessage","ok")}];k.Alert.alert(i,t,r)}var Ze,et=a.NativeUI=(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.L.get();(0,y.default)(this,e),this.navigationLogger=t.getLogger(O.a.Navigation)}var t,n;return(0,m.default)(e,[{key:"confirmation",value:function(e){e.handler()}},{key:"downloadFile",value:function(){}},{key:"showProgress",value:function(){return Ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"hideProgress",value:function(e){Ye(e)}},{key:"toggleSidebar",value:function(){Fe()}},{key:"openForm2",value:(n=(0,d.default)((function*(e,t,n,i,r,a){var o=Object.entries(t).filter((function(e){return(0,b.default)(e,2)[1]})).map((function(e){var t=(0,b.default)(e,2),n=t[0],i=t[1];return(0,w.s)({guid:i,tag:`currently loading page (${n})`})}));try{this.navigationLogger.debug(`Open a page with name: ${e} ${a?` Number of pages to close: ${a}`:""}`);var s=(0,C.e)(We.findPage(e));return null!=ke&&ke.hide(),yield Re(s,We.getBottomBarItems(),n,t,a,this.navigationLogger)}finally{o.forEach((function(e){return e.unsubscribe()}))}})),function(e,t,i,r,a,o){return n.apply(this,arguments)})},{key:"getPageParameters",value:(t=(0,d.default)((function*(e){return(0,C.e)(We.findPage(e)).parameters})),function(e){return t.apply(this,arguments)})},{key:"reload",value:function(){}},{key:"showLogin",value:function(){throw new P.N("showLogin")}},{key:"showMessage",value:function(e,t){Xe(e,t)}},{key:"exception",value:function(){throw new P.N("ui.exception")}}],[{key:"registerPage",value:function(e,t,n){We.registerPage(e,t,n)}}]),e})(),tt=["setstate-in-render","new NativeEventEmitter"],nt=["RCTBridge","Attempted to invoke"].concat(tt);function it(e){switch(!0){case e instanceof _.D:return{type:"error",content:e.description};case e instanceof _.N:return it(e.innerError);case e instanceof R.D:case e instanceof B.D:return{type:"error",content:e.message};case e instanceof B.C:return{type:"error",content:(0,j.t)("mxui.sys.UI","connection_error")};case e instanceof P.S:return{type:"info",content:(0,j.t)("mxui.sys.UI","sync_error")};case e instanceof B.S:return{type:"error",content:402===e.status?(0,j.t)("mendix.signin","http402"):(0,j.t)("mxui.sys.UI","internal_error")};default:return{type:"error",content:(0,j.t)("mxui.sys.UI","internal_error")}}}!(function(e){e.All="all",e.Partial="partial",e.None="none"})(Ze||(Ze={}));var rt="function"==typeof atob,at="function"==typeof Buffer,ot="function"==typeof TextDecoder?new TextDecoder:void 0;"function"==typeof TextEncoder&&new TextEncoder;var st,ut=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ct=(st={},ut.forEach((function(e,t){return st[e]=t})),st),lt=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,dt=String.fromCharCode.bind(String),ft="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},ht=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},gt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,pt=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return dt(55296+(t>>>10))+dt(56320+(1023&t));case 3:return dt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return dt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},vt=rt?function(e){return atob(ht(e))}:at?function(e){return Buffer.from(e,"base64").toString("binary")}:function(e){if(e=e.replace(/\s+/g,""),!lt.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,i,r="",a=0;a>16&255):64===i?dt(t>>16&255,t>>8&255):dt(t>>16&255,t>>8&255,255&t);return r},yt=at?function(e){return ft(Buffer.from(e,"base64"))}:function(e){return ft(vt(e).split("").map((function(e){return e.charCodeAt(0)})))},mt=at?function(e){return Buffer.from(e,"base64").toString("utf8")}:ot?function(e){return ot.decode(yt(e))}:function(e){return vt(e).replace(gt,pt)};function bt(e){switch(e){case"trace":return 0;case"debug":return 1;case"info":return 2;case"warning":return 3;case"error":return 4;case"critical":return 5}}function wt(e){if("string"==typeof e)return e;if(e instanceof Error){var t,n=`${e.message} ${e.stack}`;return`${2===(null!=(t=n.match(/Nanoflow stack:/g))?t:[]).length?n.replace(/^Nanoflow stack:\n(.*\n)*$/m,""):n}`}if(null!=e&&e.outerHTML)return e.outerHTML;try{return JSON.stringify(e)}catch(e){return"[Unserializable data. See browser console for the details]"}}var kt,St=(0,m.default)((function e(t){(0,y.default)(this,e),this.value=t})),xt=(function(){function e(){(0,y.default)(this,e),this.size=0}return(0,m.default)(e,[{key:"append",value:function(e){var t=new St(e);void 0===this.tail?this.head=this.tail=t:(this.tail.next=t,this.tail=t),this.size++}},{key:"prepend",value:function(e){if(0!==e.length){var t=e.reduce((function(e,t){var n=new St(t);return e.tail?(e.tail.next=n,e.tail=n):(e.head=n,e.tail=n),e}),{head:void 0,tail:void 0}),n=t.head,i=t.tail;void 0===this.head?(this.head=n,this.tail=i):(i.next=this.head,this.head=n),this.size+=e.length}}},{key:"removeFromStart",value:function(e){for(var t=new Array,n=0;n2?i-2:0),o=2;or.bufferSize){var s=r.buffer.count()-r.bufferSize,u=r.buffer.removeFromStart(s)[0];r.discardedLogCount+=s,void 0===r.oldestDiscardedLogDate&&(r.oldestDiscardedLogDate=new Date(u.t))}var c=r.bufferedLogCountSinceLastSendAttempt>=r.bufferSize,l=void 0!==r.nextScheduledSendTimeStamp&&n>=r.nextScheduledSendTimeStamp;if(c||l){var d;if(r.bufferedLogCountSinceLastSendAttempt=0,r.scheduleNextSendDate(),r.discardedLogCount>0){var f=1===r.discardedLogCount?"has":"have",h=1===r.discardedLogCount?"":"s",g=r.buffer.first().t;d={t:Date.now(),m:`${r.discardedLogCount} log${h} ${f} been discarded between ${r.oldestDiscardedLogDate.toUTCString()} and ${new Date(g).toUTCString()}.`,n:"Client",l:bt("info")}}var p=r.buffer.count();r.sendLogs((d?[d]:[]).concat(r.buffer.toArray())).then((function(){r.buffer.removeFromStart(p),r.oldestDiscardedLogDate=void 0,r.discardedLogCount=0})).catch((function(e){}))}}},this.onAppStateChanged=function(e){("background"!==r.appStatus&&"inactive"!==r.appStatus&&"background"===e||"inactive"===e)&&r.saveLogs().then((function(){})),r.appStatus=e},this.sessionId=null!=t?t:Ot}var t,n,i;return(0,m.default)(e,[{key:"enable",value:(i=(0,d.default)((function*(){"enabled"!==this.state&&(this.state="enabled",this.buffer.prepend(yield(0,d.default)((function*(){try{if(!(yield U.N.fileExists(jt)))return[];var e=yield U.N.readJson(jt);if(e)return e.logs;var t=(yield U.N.readAsDataURL(jt)).split("base64,")[1];return JSON.parse((n=t,mt(ht(n.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))))).logs}catch(e){return[]}finally{yield(0,d.default)((function*(){(yield U.N.fileExists(jt))&&(yield U.N.remove(jt))}))()}var n}))()),this.scheduleNextSendDate())})),function(){return i.apply(this,arguments)})},{key:"disable",value:function(){this.state="disabled",this.buffer.clear()}},{key:"getState",value:function(){return this.state}},{key:"saveLogs",value:(n=(0,d.default)((function*(){if("disabled"!==this.state)try{yield U.N.writeJson({logs:this.buffer.toArray()},jt)}catch(e){}})),function(){return n.apply(this,arguments)})},{key:"sendLogs",value:(t=(0,d.default)((function*(e){if(!this.isSending&&0!==e.length)try{this.isSending=!0;var t=yield(0,B.b)(),n=e.filter((function(e){var n=e.l,i=e.n;return void 0!==t[i]&&t[i]<=n}));0!==n.length&&(yield(0,B.s)(this.sessionId,n))}finally{this.isSending=!1}})),function(e){return t.apply(this,arguments)})},{key:"scheduleNextSendDate",value:function(){this.nextScheduledSendTimeStamp=Date.now()+this.timeLimitMs}}],[{key:"getInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M.M.APP_SESSION_ID,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:36e5;return e.instance||(e.instance=new e(t,n,i)),e.instance}}]),e})(),Pt="";var Et=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,At=/\((\S*)(?::(\d+))(?::(\d+))\)/,Tt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Nt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Bt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Dt=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,It=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i,Mt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e instanceof Error?e.message:String(e),r=e instanceof Error?e.stack:(new Error).stack,a=_.n.generateCallStackOfExecutingNanoflows().map((function(e,t){var n=(0,b.default)(e,2);return`Nanoflow ${t+1}: ${n[0]}\nStack:\n${n[1]}`})).join("\n\n"),o=(function(e,t,n){var i=(null==(e=Ee())?void 0:e.state).nav;if(i){for(var r=i.routes[i.index];void 0!==(null==(a=r)?void 0:a.routes)&&void 0!==r.index;){var a;r=r.routes[r.index]}return r?null==(t=We.findPage(null==(n=r.params)?void 0:n.pageName))?void 0:t.name:void 0}})(),s=`${i}\n${a?`\nNanoflows running:\n${a}\n`:""}${o?`\nCurrent page: ${o}\n`:""}`;$t.log("error",`${s}\nStack:\n${r}`);var u=Lt.getLogFilter();Lt.setLogFilter((function(){return!1}));try{var c=new Error(s);c.stack=r,_t(c,n&&!1)}finally{Lt.setLogFilter(u)}var l=it(e),d=l.type,f=l.content,h=Ct.getInstance();(n&&"enabled"===h.getState()?h.saveLogs():Promise.resolve()).finally((function(){Xe(d,f,t)}))},Lt=O.L.get(),$t=Lt.getLogger(),_t=ErrorUtils.getGlobalHandler();function Rt(e){Mt(e)}function Ut(e){var t=[{text:(0,j.t)("mxui.widget.native.Navigation","restartApp"),onPress:function(){return k.NativeModules.NativeReloadHandler.reload()}},{text:(0,j.t)("mxui.widget.native.Navigation","closeApp"),style:"destructive",onPress:function(){return k.NativeModules.NativeReloadHandler.exitApp()}}];Mt(e,t,!0)}ErrorUtils.setGlobalHandler((function(t,n){if(void 0!==e.mx)n?Ut(t):Rt(t);else{var i=t instanceof Error?t:new Error(`Unknown error: ${t}`);k.NativeModules.NativeErrorHandler.handle(i.message,void 0!==i.stack?i.stack.split("\n").reduce((function(e,t){var n=(function(e){var t=Et.exec(e);if(!t)return null;var n=t[2]&&0===t[2].indexOf("native"),i=t[2]&&0===t[2].indexOf("eval"),r=At.exec(t[2]);return i&&null!=r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3]),{file:n?null:t[2],methodName:t[1]||Pt,arguments:n?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}})(t)||(function(e){var t=Tt.exec(e);return t?{file:t[2],methodName:t[1]||Pt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null})(t)||(function(e){var t=Nt.exec(e);if(!t)return null;var n=t[3]&&t[3].indexOf(" > eval")>-1,i=Bt.exec(t[3]);return n&&null!=i&&(t[3]=i[1],t[4]=i[2],t[5]=null),{file:t[3],methodName:t[1]||Pt,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}})(t)||(function(e){var t=It.exec(e);return t?{file:t[2],methodName:t[1]||Pt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null})(t)||(function(e){var t=Dt.exec(e);return t?{file:t[3],methodName:t[1]||Pt,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null})(t);return n&&e.push(n),e}),[]):[])}}));var Ft=O.L.get().getLogger();function Gt(){var e;this.startup=function(){e||(e={},window.mx.session.getConfig("metadata").forEach((function(t){var n=new Ht({json:t});e[n.getEntity()]=n})))},this.getMap=function(){return this.startup(),e},this.getEntity=function(t){this.startup();var n=e[t];return n||Ft.error("No permission to read or write entity "+t+", check security!"),n}}function Ht(e){var t=e.json;if(!(t&&t.attributes&&t.objectType&&t.properties))throw new Error("MxMetaObject: invalid initialization");this.has=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.has: parameter attr is not of type String.");return Object.prototype.hasOwnProperty.call(t.attributes,e)},this.isEnum=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isEnum : parameter attr is not of type String.");return/^(Enum|EnumSet)$/.test(this.getAttributeType(e))},this.isNumeric=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isNumeric : parameter attr is not of type String.");return/^(Integer|Long|Decimal)$/.test(this.getAttributeType(e))},this.isPassword=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type String.");return"HashString"===this.getAttributeType(e)},this.isDate=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type String.");return/^(Date|DateTime)$/.test(this.getAttributeType(e))},this.isLocalizedDate=function(e){return this.isDate(e)?/true/.test(t.attributes[e].localize):null},this.isBoolean=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isBoolean : parameter attr is not of type String.");return"Boolean"===this.getAttributeType(e)},this.isReference=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isReference : parameter attr is not of type String.");return/^(ObjectReference|ObjectReferenceSet)$/.test(this.getAttributeType(e))},this.isObjectReference=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isObjectReference : parameter attr is not of type String.");return"ObjectReference"===this.getAttributeType(e)},this.isObjectReferenceSet=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isObjectReferenceSet : parameter attr is not of type String.");return"ObjectReferenceSet"===this.getAttributeType(e)},this.isBidirectionalReference=function(e){return this.isReference(e)&&Boolean(t.attributes[e].both)},this.getReferenceAttributes=function(){var e=[];for(var n in t.attributes)this.isReference(n)&&e.push(n);return e},this.getAttributes=function(){var e=[];for(var n in t.attributes)e.push(n);return e},this.getAttributesWithoutReferences=function(){var e=[];for(var n in t.attributes)this.isReference(n)||e.push(n);return e},this.getAttributeType=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getAttributeType : parameter attr is not of type String.");return!!this.has(e)&&t.attributes[e].type},this.getSelectorEntity=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getSelectorEntity : parameter attr is not of type String.");return!!this.isReference(e)&&t.attributes[e].klass},this.getEnumeration=function(e){if(!this.isEnum(e))throw new Error("mendix/lib/MxMetaObject.getEnumeration : attr is not of type Enum.");return(0,C.e)(t.attributes[e].klass)},this.getEnumCaption=function(e,t){return this.isEnum(e)?null!=t&&""!==t?(0,S.t)(this.getEnumeration(e),t):"":null},this.getEnumMap=function(e){if(!this.isEnum(e))return null;var t=this.getEnumeration(e);return(0,S.g)(t).map((function(e){return{key:e,caption:(0,S.t)(t,e)}}))},this.getOptions=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getOptions : parameter attr is not of type String.");if(!this.isEnum(e))throw new Error("mendix/lib/MxMetaObject.getOptions : attribute '"+e+"' is not an Enumeration.");return this.isEnum(e)?(0,S.g)(this.getEnumeration(e)):[]},this.getEntity=function(){return t.objectType},this.isA=function(e){return this.getEntity()===e||this.inheritsFrom(e)},this.hasSuperEntities=function(){return 0!==t.properties.superclasses.length},this.getSuperEntities=function(){var e=t.properties.superclasses;return"string"==typeof e?[e]:e},this.hasSubEntities=function(){return 0!==t.properties.subclasses.length},this.getSubEntities=function(){var e=t.properties.subclasses;return"string"==typeof e?[e]:e},this.inheritsFrom=function(e){return(this.getSuperEntities()||[]).includes(e)}}var zt=(function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"formatValue",value:function(e,t,n){if(""===e||null===e)return"";switch(t.toLowerCase()){case"decimal":case"integer":case"long":if("string"==typeof e||"number"==typeof e)try{e=new H.Big(e)}catch(t){throw new Error(`Value '${e}' cannot be formatted as a numeric value.`)}if(!(e instanceof H.Big))throw new Error(`Value '${e}' cannot be formatted as a numeric value.`);var i=qt(n),r=i&&i.groupDigits,a=i&&i.decimalPrecision,o="decimal"===t.toLowerCase()?void 0:0;return(0,G.a)(e,r,void 0!==a?a:o);case"datetime":if(!("number"==typeof e||e instanceof Date))throw new Error(`Value '${e}' cannot be formatted as Date.`);var s=Vt(n);return(0,G.f)(new Date(e),s);case"boolean":if("boolean"!=typeof e)throw new Error(`Value '${e}' cannot be formatted as boolean.`);return(0,j.t)("mxui.common",e.toString());default:return String(e)}}},{key:"formatAttribute",value:function(e,t,n){var i=e.getAttributeType(t),r=e.get(t);return"Enum"===i?e.getEnumCaption(t)||r:this.formatValue(r,i,n)}},{key:"parseValue",value:function(e,t,n){if(""===e)return"";switch(t.toLowerCase()){case"integer":case"long":case"decimal":var i=qt(n),r=i&&i.decimalPrecision;return(0,G.b)(e,r)||null;case"datetime":var a=Vt(n);return(0,G.p)(e,a)||null;case"enum":default:return e;case"boolean":return e===(0,j.t)("mxui.common","true")}}}]),e})();function qt(e){if(e)return"places"in e?{decimalPrecision:e.places,groupDigits:Boolean(e.groups)}:e}function Vt(e){return e?"datePattern"in e&&e.datePattern?{type:"custom",pattern:e.datePattern}:"selector"in e?{type:e.selector}:e:{type:"date"}}var Qt=O.L.get().getLogger(),Wt=0,Jt=(function(){function e(t){(0,y.default)(this,e),this.id=this.ident=++Wt,this.trackId="",this.trackEntity="",this.trackObject=null,this.localParams={},this.constraintby=[],this._entityToGuid={},this._mxidToObject={},t&&(t.mxcontext&&this.dupFrom(t.mxcontext),t.classname&&t.mendixguid?this.setContext(t.classname,t.mendixguid):t.entity&&t.guid&&this.setContext(t.entity,t.guid))}return(0,m.default)(e,[{key:"hasTrackEntity",value:function(){return""!==this.trackEntity}},{key:"hasTrackId",value:function(){return!!this.trackId}},{key:"hasTrackObject",value:function(){return!!this.trackObject}},{key:"getTrackEntity",value:function(){return this.trackEntity}},{key:"getTrackId",value:function(){return this.trackId}},{key:"getTrackObject",value:function(){return this.trackObject}},{key:"setTrackObject",value:function(e){e&&this.setContext(e.getEntity(),e.getGuid()),this.trackObject=e}},{key:"getObject",value:function(){return this.trackObject}},{key:"setConstraints",value:function(e){null!=e&&""!==e&&0!==e.length&&(this.constraintby="string"==typeof e?e.split(","):e)}},{key:"getConstraints",value:function(){for(var e=[],t=0;t2&&void 0!==arguments[2])||arguments[2])&&this.setTrackObject(t),this._mxidToObject[e]=t}},{key:"getWidgetObjectMap",value:function(){return Object.assign({},this._mxidToObject)}},{key:"freeze",value:function(){this.setTrackObject=this.setConstraints=this.setContext=this.unsetContext=this.reset=this.dupFrom=this.setParam=this.setParams=this.unsetParam=this.setWidgetObject=this.resetParams=function(){return Qt.error("mendix/lib/MxContext["+this.ident+"].freeze: context is readonly"),!1}}}]),e})();function Kt(e){for(var t in this.__values={},e)this.__values[t+""]=!0}Kt.of=Kt.prototype.of=function(e){return Kt.fromArray([e])},Kt.fromArray=function(e){for(var t={},n=0;n",greaterThanOrEquals:">=",contains:"contains"};function Xt(e,t){var n=Zt((0,z.g)(e),t);return n.length>1?{type:"function",name:"and",parameters:n}:n[0]}function Zt(e,t){return t.map((function(t){var n,i;switch(t.operator){case"and":case"or":return{type:"function",name:t.operator,parameters:Zt(e,t.constraints)};default:var r=null!=(n=null==e||null==(i=e.attributes[t.attribute])?void 0:i.type)?n:"String",a={type:"function",name:Yt[t.operator],parameters:[{type:"attribute",attribute:t.attribute,attributeType:r},{type:"value",value:en(t.value,r),isGuid:"ObjectReference"===r}]};return t.negate?{type:"function",name:"not",parameters:[a]}:a}}))}function en(e,t){if(null!=e)switch(t){case"Boolean":return"true"===e;case"DateTime":return new Date(Number(e));case"Decimal":case"Integer":case"Long":return new H.Big(String(e));default:return String(e)}}var tn=O.L.get().getLogger();function nn(e,t){e=e||{};var n,i,r=this,a=[],o=(0,F.b)(3,h),s=(0,F.c)(g);function u(e){if("object"!=typeof e)throw new C.A("args is not an object");if("function"!=typeof e.callback)throw new C.A("callback is not a function");if(e.mxobj&&!(e.mxobj instanceof F.M))throw new C.A("mxobj is not a MxObject");if(e.mxobjs&&!(e.mxobjs instanceof Array))throw new C.A("mxobjs is not an Array");if(!e.mxobj&&!e.mxobjs||e.mxobj&&e.mxobjs)throw new C.A("one of mxobj or mxobjs should be passed");return e.mxobj?[e.mxobj]:e.mxobjs}function c(){var n,i,r,o,s,u,c=t.getAllObjects(),l=Kt.fromArray(c.map((function(e){return e.getGuid()}))),d=l.difference(Kt.fromArray((n=(0,V.g)(),i=n.getUserId(),r=n.getSessionObjectId(),o=new Set((0,w.g)().concat(a.map((function(e){return e.guid}))).concat([i,r])),(0,P.e)(c,o)))).values();e.logCleanupStatistics&&tn.debug((s=(0,F.g)(d,(function(e){return t.getObject(e).getEntity()})),u=(0,F.a)(s).map((function(e){var t=(0,b.default)(e,2);return t[0]+": "+t[1].join(", ")})).join("\n"),`Garbage collecting ${d.length} of ${l.length()}\n${u}`)),t.removeObjects(d)}function f(e,t){return function(){h(e,t)}}function h(e,t){try{for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;ri?"asc"===n?1:-1:0}))}));var r=n.offset;if(r){var a=n.amount;i=a?i.slice(r,r+a):i.slice(r)}return{mxobjs:i,count:i.length}})(l,w)):n.getByGuid(l,w);j.then((function(e){var t,n=e.mxobjs,r=e.count;t=c?w.id?n.find((function(e){return e.getGuid()===c}))||null:n[0]||null:n,h(g,i,t,{count:r})}),k)}else if(d)if(window.mx.isOffline()&&!(0,W.o)().hasOnlineSyncMode(d)){var O=w.amount,P=w.offset,E=w.sort;(0,W.o)().retrieveUncached(d,void 0,{limit:O,offset:P,sort:E}).then((function(e){var t=e.mxobjs,n=e.count;h(g,i,t,{count:n})}))}else{var A=w.amount,T=w.offset,N=w.sort;n.getByXPath(`//${d}`,{amount:A,offset:T,sort:N},v).then((function(e){var t=e.mxobjs,n=e.count,r=e.hasMoreItems;h(g,i,t,{count:n,hasMoreItems:r})}),k)}else n.getByXPath(a,w,v).then((function(e){var t=e.mxobjs,n=e.count,r=e.hasMoreItems,a=e.aggregates;h(g,i,t,{count:n,hasMoreItems:r,aggregates:a})}),k)}},this.getOffline=function(e,t,n,i,r){var a=n?{offset:n.offset,sort:n.sort,amount:n.limit}:{};(0,W.o)().retrieveUncached(e,Xt(e,t),a).then((function(e){var t=e.mxObjects,n=e.count;h(i,null,t,n)})).catch(s(r,null))},this.create=function(e,t){if("function"!=typeof e.callback)throw new C.A("callback is not a function");if(e.error&&"function"!=typeof e.error)throw new C.A("error is not a function");if("string"!=typeof e.entity)throw new C.A("entity is not a string");(window.mx.isOffline()&&!(0,W.o)().hasOnlineSyncMode(e.entity)?(0,W.o)().create(e.entity):n.create(e.entity)).then((function(n){e.context&&r.setObjectToContext(n,e.context),h(e.callback,t,n)}),s(e.error,t))},this.remove=function(e){var t="guid"in e?[e.guid]:""===e.guids?[]:e.guids;if("guids"in e&&!(e.guids instanceof Array))throw new C.A("parameter guids set but not of type Array");if(e.error&&"function"!=typeof e.error)throw new C.A("parameter error set but not of type Function");if(e.callback&&"function"!=typeof e.callback)throw new C.A("parameter callback set but not of type Function");n.remove(t).then(f(e.callback),s(e.error,null))},this.validate=function(e,t,i){0!==e.length?n.validate(e.map(v)).then(f(t),s(i,null)):h(t)},this.commit=function(e,i){var r=f(e.callback,i),a=s(e.error,i),o=u(e);if(0===o.length&&e.callback)r();else{var c=o.map((function(e){return e.getGuid()}));n.commit(c,e.context||new Jt,e.store,e.onValidation).then((function(e){me(t,o,e);var n=(0,F.u)(o.filter(p).map(y)).map((function(e){return{entity:e}})),i=(0,F.u)(o.map(v)).map((function(e){return{guid:e}})),s=n.concat(i);w.p.apply(void 0,(0,l.default)(s)).then(r,a)}),a)}},this.rollback=function(e,i){var r=s(e.error,i),a=u(e);if(0!==a.length){var c=(0,F.u)(a.map(y)).map((function(e){return{entity:e}})),d=a.map((function(e){return e.getGuid()}));n.rollback(d).then((function(n){me(t,a,n);var s=(0,F.u)(a.filter(p).map(v)).map((function(e){return{guid:e}})),u=c.concat(s);w.p.apply(void 0,(0,l.default)(u)).then(o(e.callback,i),r)}),r)}else h(e.callback,i)},this.synchronizeOffline=(0,d.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fullReset:!1},t=e.fullReset,n=e.incompatibleEntities;window.mx.isOffline()&&(yield(0,W.o)().runFullSynchronization(t,n))})),this.saveDocument=function(e,t,i,r,a,o){var u=s(o,null);n.saveDocument(e,t,i,r).then((function(){(0,w.p)({guid:e}).then(a,u)}),u)},this.setObjectToContext=function(e,t){if("object"!=typeof e)throw new C.A("parameter mxObj is not of type Object");if("object"!=typeof t)throw new C.A("parameter context is not of type Object");for(var n=e.getAttributes(),i=0;i1&&void 0!==arguments[1]?arguments[1]:O.L.get();(0,y.default)(this,e),this.reloadHandlers=[],this.updateStylingHandlers=[],this.deploymentId=void 0,this.connection=new an(t.replace(/^http/,"ws")+"mxdevtools/"),this.connection.onInstruction("set_deployment_id",(function(e){void 0!==n.deploymentId&&e.deploymentId!==n.deploymentId&&n.reloadHandlers.forEach((function(e){return e(!1)})),n.deploymentId=e.deploymentId})),this.connection.onInstruction("reload",(function(){n.reloadHandlers.forEach((function(e){return e(!0)}))})),this.connection.onInstruction("update_styling",(function(){n.updateStylingHandlers.forEach((function(e){return e()}))})),i.addHandler((function(e,t){for(var i=arguments.length,r=new Array(i>2?i-2:0),a=2;a2?i-2:0),a=2;a0;if(o){var s,u=null==(s=e.init.method)?void 0:s.toUpperCase();i.trace(`Retrying ${u} ${e.url}. Attempts left: ${n}`)}var l=c&&(0,C.i)(e.body)?e.body.action:void 0;return o&&l===c?t(e).catch(a):Promise.reject(r)}));function a(e){return r.apply(this,arguments)}return a})())}))}var t,n,i,r,a,o,s,u,c,l,f;return(0,m.default)(e,[{key:"isValid",value:function(){return void 0!==this.sessionData}},{key:"getConfig",value:function(e){if(void 0===this.sessionData)throw new Error("Session is not available");if(!e)return(0,P.i)(this.sessionData);for(var t=e.split("."),n=this.sessionData,i=0;i1&&void 0!==arguments[1]&&arguments[1],r=yield null==(t=this.tokenStore)?void 0:t.get();this.startupLogger.debug(`Found ${r?"an":"no"} authentication token.`),this.sessionParams=e;var a,o=yield this.loadSessionData(i,(function(e){if(e.offline)return!0;switch(e.profile){case"ResponsiveOffline":case"NativePhone":case"TabletOffline":case"PhoneOffline":return!0;default:return!1}})({profile:e.profile,offline:e.offline}));return this.sessionData=o,(0,S.a)(o.enumerations),(r||this.isGuest())&&this.isOffline()?(0,B.r)(ln(this.restoreSessionOnUnauthorized.bind(this))):(0,B.r)(r?ln((0,d.default)((function*(){return mx.reload()}))):(function(e){return(function(){var t=(0,d.default)((function*(t,n){try{return yield n(t)}catch(n){var i=(0,C.i)(t.body)&&t.body.action;if(n instanceof B.U&&"login"!==i)return yield e(n);throw n}}));return function(e,n){return t.apply(this,arguments)}})()})(this.failOnUnauthorized.bind(this))),!r&&o.keepalive&&setInterval((function(){(0,B.k)().catch((function(){}))}),o.keepalive),(0,B.r)((a=function(){return(0,C.e)(n.sessionData).csrftoken},function(e,t){var n={url:e.url,init:Object.assign({},e.init,{headers:new Headers(e.init.headers)}),body:e.body};return n.init.headers.append("X-Csrf-Token",a()),t(n)})),o})),function(e){return u.apply(this,arguments)})},{key:"loadCachedSessionData",value:(s=(0,d.default)((function*(){var e=yield this.sessionStore.get();return void 0!==e?JSON.parse(e):void 0})),function(){return s.apply(this,arguments)})},{key:"saveSessionData",value:(o=(0,d.default)((function*(){yield this.sessionStore.set(JSON.stringify((0,C.e)(this.sessionData)))})),function(){return o.apply(this,arguments)})},{key:"getCachedProfile",value:(a=(0,d.default)((function*(){var e=yield this.sessionStore.get(),t=void 0!==e?JSON.parse(e):void 0;if(t)return t.uiconfig.profile.kind})),function(){return a.apply(this,arguments)})},{key:"loadSessionData",value:(r=(0,d.default)((function*(e,t){var n=t?yield this.loadCachedSessionData():void 0;if(n){var i=n.isDevModeEnabled,r=n.bundleVersion,a=n.mxVersion;this.startupLogger.debug(`Found a cached session data created by the bundle ${r} in Mendix ${a}. The cached session is ${i?"":"not "}in development mode.`)}var o=n&&this.bundleVersion&&n.bundleVersion===this.bundleVersion;n&&this.startupLogger.debug(`The cached session data is ${o?"":"not "}valid.`);var s=e&&(null==n?void 0:n.isDevModeEnabled)&&!1!==navigator.onLine;if(o&&!s)return this.startupLogger.debug("The app will use the cached session data."),n;this.startupLogger.debug("The app will not use the cached session data.");try{var u=new B.a;this.startupLogger.trace("Getting a new session from runtime.");var c=Object.assign({},yield this.getSessionData(),{bundleVersion:this.bundleVersion,mxVersion:this.mxVersion}),l=u.measure();return this.startupLogger.log(l.ms>5e3?"warning":"debug",`Created a new session in ${l} milliseconds`),c}catch(e){var d;if(e instanceof B.S&&401===e.status)this.startupLogger.error("Could not create a session because the server responded with 401 (Unauthorized). This may happen if the authentication token is no longer valid. The app will clear the stored session and token and restart."),yield this.clearCachedSessionData(),yield null==(d=this.tokenStore)?void 0:d.remove();else{var f=e instanceof B.C||o?"debug":"error";if(this.startupLogger.log(f,"An error occurred while creating a new session."+(o?" The app will start using the cached session data.":""),e),o)return n}throw e}finally{this.unregisterRetryGetSessionDataMiddleware()}})),function(e,t){return r.apply(this,arguments)})},{key:"getSessionData",value:(i=(0,d.default)((function*(){var e,t=yield null==(e=this.tokenStore)?void 0:e.get(),n=(0,C.e)(this.sessionParams);return(0,B.d)(t?Object.assign({authtoken:t},n):n)})),function(){return i.apply(this,arguments)})},{key:"restoreSessionOnUnauthorized",value:(n=(0,d.default)((function*(){try{var e=(yield this.getSessionData()).csrftoken;(0,C.e)(this.sessionData).csrftoken=e,yield this.sessionStore.set(JSON.stringify(this.sessionData))}catch(e){if(!(e instanceof B.U))throw e;yield this.failOnUnauthorized(e)}})),function(){return n.apply(this,arguments)})},{key:"failOnUnauthorized",value:(t=(0,d.default)((function*(e){var t;yield this.clearCachedSessionData(),yield null==(t=this.tokenStore)?void 0:t.remove();var n=401===e.status?419:e.status;return this.authLogger.info(`The client is not authorized. Request failed with status code ${n}. Removing token and session.`),yield this.onUnauthorized(n,this.isOffline()&&this.shouldGenerateToken),(0,B.n)()})),function(e){return t.apply(this,arguments)})}]),e})(),wn={sessionWillStart:[]},kn=(a.hooks={onSessionWillStart:function(e){return wn.sessionWillStart.push(e)}},k.NativeModules.NativeReloadHandler),Sn=k.default.NativeModules,xn={};dn=/^(\s|;)*(?:alter|create|delete|drop|insert|reindex|replace|update)/i,mn={},yn=function(e,t){var n;return t||(t=0),(n=e)||((n=new Error("a plugin had an error but provided no response")).code=t),"string"==typeof n&&((n=new Error(e)).code=t),!n.code&&n.message&&(n.code=t),n.code||n.message||((n=new Error("an unknown error was returned: "+JSON.stringify(n))).code=t),n};var jn=setImmediate||function(e){setTimeout(e,0)};J.c.window&&(jn=window.setImmediate||function(e){window.setTimeout(e,0)}),pn=function(e){return function(){var t,n,i;if(i=arguments.length){for(t=[],n=-1;++n0&&!n.inProgress&&(n.inProgress=!0,n.queue.shift().start()):xn.log("cannot start next transaction: database connection is lost"):xn.log("cannot start next transaction: database not open")}))},hn.prototype.abortAllPendingTransactions=function(){var e,t,n,i;if((i=mn[this.dbname])&&i.queue.length>0){for(e=0,t=(n=i.queue).length;e0&&!n.inProgress&&t.startNextTransaction()}})(this),n=(function(e){return function(){xn.log("OPEN database: "+e.dbname+" failed, aborting any pending transactions"),t&&t(yn("Could not open database")),delete e.openDBs[e.dbname],e.abortAllPendingTransactions()}})(this),this.openDBs[this.dbname]="INIT",xn.exec("open",this.openargs,i,n))},hn.prototype.close=function(e,t){if(this.dbname in this.openDBs){if(mn[this.dbname]&&mn[this.dbname].inProgress)return xn.log("cannot close: transaction is in progress"),void t(yn("database cannot be closed while a transaction is in progress"));xn.log("CLOSE database: "+this.dbname),delete this.openDBs[this.dbname],mn[this.dbname]?xn.log("closing db with transaction queue length: "+mn[this.dbname].queue.length):xn.log("closing db with no transaction lock state");xn.exec("close",{path:this.dbname},(function(t,n){if(e)return e(n)}),(function(e,n){if(t)return t(n);xn.log("Error handler not provided: ",n)}))}else{var n="cannot close: database is not open";xn.log(n),t&&jn((function(){return t(n)}))}},hn.prototype.attach=function(e,t,n,i){if(this.dbname in this.openDBs){if(mn[this.dbname]&&mn[this.dbname].inProgress)return xn.log("cannot attach: transaction is in progress"),void i(yn("database cannot be attached while a transaction is in progress"));xn.log("ATTACH database "+e+" to "+this.dbname+" with alias "+t);xn.exec("attach",{path:this.dbname,dbName:e,dbAlias:t},(function(e,t){if(n)return n(t)}),(function(e){if(i)return i(e);xn.log("Error handler not provided: ",e)}))}else{i&&jn((function(){return i("cannot attach: database is not open")}))}},hn.prototype.detach=function(e,t,n){if(this.dbname in this.openDBs){if(mn[this.dbname]&&mn[this.dbname].inProgress)return xn.log("cannot attach: transaction is in progress"),void n(yn("database cannot be attached while a transaction is in progress"));xn.log("DETACH database "+e+" from "+this.dbname);this.executeSql("DETACH DATABASE "+e,[],(function(e,n){if(t)return t(n)}),(function(e){if(xn.log("ERR",e),n)return n(e);xn.log("Error handler not provided: ",e)}))}else{var i="cannot attach: database is not open";xn.log(i),n&&jn((function(){return n(i)}))}},hn.prototype.executeSql=function(e,t,n,i){var r,a,o;o=function(e,t){if(n)return n(t)},r=function(e,t){if(i)return i(t);xn.log("Error handler not provided: ",t)},a=function(n){n.addStatement(e,t,o,r)},this.addTransaction(new gn(this,a,null,null,!1,!1))},(gn=function(e,t,n,i,r,a){if("function"!=typeof t){var o=yn("transaction expected a function");if(n)return n(o);throw o}this.db=e,this.fn=t,this.error=n,this.success=i,this.txlock=r,this.readOnly=a,this.executes=[],r?this.addStatement("BEGIN",[],null,(function(e,t){throw yn("unable to begin transaction: "+t.message,t.code)})):this.addStatement("SELECT 1",[],null,null)}).prototype.start=function(){var e;try{this.fn(this),this.run()}catch(t){e=t,mn[this.db.dbname].inProgress=!1,this.db.startNextTransaction(),this.error&&this.error(yn(e))}},gn.prototype.executeSql=function(e,t,n,i){if(this.finalized)throw{message:"InvalidStateError: DOM Exception 11: This transaction is already finalized. Transactions are committed after its success or failure handlers are called. If you are using a Promise to handle callbacks, be aware that implementations following the A+ standard adhere to run-to-completion semantics and so Promise resolution occurs on a subsequent tick and therefore after the transaction commits.",code:11};this.readOnly&&dn.test(e)?this.handleStatementFailure(i,{message:"invalid sql for a read-only transaction"}):this.addStatement(e,t,(function(e,t){if(n)return n(e,t)}),(function(e,t){if(i)return i(t);xn.log("Error handler not provided: ",t)}))},gn.prototype.addStatement=function(e,t,n,i){var r,a,o,s,u,c;if(s="string"==typeof e?e:e.toString(),o=[],t&&t.constructor===Array)for(r=0,a=t.length;r found in addStatement()";return xn.error(l),void i(yn(l))}o.push(c.toString()),xn.warn("addStatement - parameter of type <"+u+"> converted to string using toString()")}this.executes.push({success:n,error:i,sql:s,params:o})},gn.prototype.handleStatementSuccess=function(e,t){var n;e&&e(this,{rows:{item:function(e){return n[e]},raw:function(){return n.slice()},length:(n=t.rows||[]).length},rowsAffected:t.rowsAffected||0,insertId:t.insertId||void 0})},gn.prototype.handleStatementFailure=function(e,t){if(!e)throw yn("a statement with no error handler failed: "+t.message,t.code);if(!1!==e(this,t))throw yn("a statement error callback did not return false: "+t.message,t.code)},gn.prototype.run=function(){var e,t,n,i,r,a,o,s,u;for(s=null,a=[],e=this.executes,u=e.length,this.executes=[],o=this,t=function(t,n){return function(i){if(!s){try{n?o.handleStatementSuccess(e[t].success,i):o.handleStatementFailure(e[t].error,yn(i))}catch(e){var r=JSON.stringify(e);"{}"===r&&(r=e.toString()),xn.log("warning - exception while invoking a callback: "+r)}n||(s=yn(i))}0==--u&&(s?(o.executes=[],o.abort(s)):o.executes.length>0?o.run():o.finish())}},n=0,i=[];n=5&&(i=e[4],e.length>5&&(t=e[5]))):((r=n).readOnly||r.location&&r.location.constructor===String&&vn.hasOwnProperty(r.location)?r.dblocation=vn[r.location]:r.dblocation=vn.default,r.createFromLocation&&(1===r.createFromLocation?r.assetFilename="1":"string"==typeof r.createFromLocation&&(r.assetFilename=r.createFromLocation)),r.androidDatabaseImplementation&&2===r.androidDatabaseImplementation&&(r.androidOldDatabaseImplementation=1),r.androidLockWorkaround&&1===r.androidLockWorkaround&&(r.androidBugWorkaround=1),e.length>=2&&(i=e[1],e.length>2&&(t=e[2]))),new hn(r,i,t))})),fn.prototype.echoTest=function(e,t){xn.exec("echoStringValue",{value:"test-string"},(function(n){return"test-string"===n?e():t(`Mismatch: got: ${n} , expected: test-string`)}),(function(e){return t(e)}))},fn.prototype.deleteDatabase=function(e,t,n){var i={};if(e.constructor===String)i.path=e,i.dblocation=vn.default;else{if(!e||!e.name)throw new Error("Please specify db name via name property");i.path=e.name,e.location&&e.location.constructor===String&&vn.hasOwnProperty(e.location)?i.dblocation=vn[e.location]:i.dblocation=vn.default}xn.exec("delete",i,(function(e){if(delete hn.prototype.openDBs[i.path],t)return t(e)}),(function(e){if(n)return n(e);xn.log("deleteDatabase error handler not provided: ",e)}))},xn.sqlitePlugin={SQLiteFactory:fn,SQLitePluginTransaction:gn,SQLitePlugin:hn,log:xn.log};var On=xn.sqlitePlugin,Cn=On.SQLiteFactory,Pn=[[!1,"SQLitePlugin","transaction",!1,!0,!0],[!1,"SQLitePlugin","readTransaction",!1,!0,!0],[!1,"SQLitePlugin","close",!1,!1,!0],[!1,"SQLitePlugin","executeSql",!0,!1,!0],[!1,"SQLitePlugin","sqlBatch",!1,!1,!0],[!1,"SQLitePlugin","attach",!0,!1,!0],[!1,"SQLitePlugin","detach",!1,!1,!0],[!1,"SQLitePluginTransaction","executeSql",!0,!1,!1],[!1,"SQLiteFactory","deleteDatabase",!1,!1,!0],[!0,"SQLiteFactory","openDatabase",!1,!1,!0],[!1,"SQLiteFactory","echoTest",!1,!1,!0]],En={};Pn.forEach((function(e){var t=(0,b.default)(e,3),n=(t[0],t[1]),i=t[2],r=On[n].prototype[i];En[n+"."+i]=r})),Cn.prototype.enablePromise=function(e){e?(Pn.forEach((function(e){var t=(0,b.default)(e,6),n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],u=On[i].prototype[r];On[i].prototype[r]=function(){for(var e=this,t=arguments.length,i=new Array(t),c=0;c0;n--){var i=Math.floor(Math.random()*(n+1)),r=t[n];t[n]=t[i],t[i]=r}return t.join("")}var Dn,In=k.NativeModules.SQLite,Mn=(function(){var e=(0,d.default)((function*(){return Dn||(Dn=yield(0,M.c)("session")),Dn}));return function(){return e.apply(this,arguments)}})(),Ln="default",$n="dbpassword";function _n(e){return Rn.apply(this,arguments)}function Rn(){return Rn=(0,d.default)((function*(e){var t=e.databaseName,n=e.dbEncryptionEnabled,i=e.logger;if(n){if(In.SUPPORTS_ENCRYPTION){var r=yield(0,d.default)((function*(){var e=yield(0,M.b)($n),t=yield e.get();if(t)return t;var n,i,r=(n=Bn(Tn).slice(0,10),i=Bn(Nn).slice(0,10),Bn(n+i));return yield e.set(r),r}))();return An.openDatabase({name:t,key:r,location:Ln})}throw i.error("The app is configured to encrypt the local database, but the native template is out-of-date and does not support this feature.Please update the native template to the latest version and build a new version of this app to encrypt the local database.The app will now exit to prevent storing plain-text data."),new R.D("This application needs to be updated before you can use it. Please contact your system administrator.")}var a=yield(0,d.default)((function*(){return(yield(0,M.b)($n)).get()}))();return An.openDatabase({name:t,key:a,location:Ln})})),Rn.apply(this,arguments)}var Un="android"===k.Platform.OS&&!!U.N.SUPPORTS_DIRECTORY_MOVE||"ios"===k.Platform.OS;FormData.prototype.append=function(e,t,n){"blob"===e&&t.nativePayload&&(t=t.nativePayload,n&&(t.name=n)),this._parts.push([e,t])};var Fn=(function(){function e(t,n,i){(0,y.default)(this,e),this.rootDirectory=t,this.encryptionEnabled=n,this.downloadQueue=new Z.A((function(){var e=(0,d.default)((function*(e,t){var n=yield(0,B.g)(e,"blob");yield U.N.save(n.data,(0,U.r)(t)),n.close()}));return function(t,n){return e.apply(this,arguments)}})(),"android"===k.Platform.OS?5:"ios"===k.Platform.OS?6:void 0),n?!0===U.N.SUPPORTS_ENCRYPTION?(U.N.setEncryptionEnabled(!0),i.trace("Encrypting user files and images is enabled")):i.warn("Encrypting user files and images is enabled, however, the current native template does not support this functionality. Please update your app's native template to support encryption. User files and images will not be encrypted."):i.trace("Encrypting user files and images is disabled")}var t,n,i,r,a,o,s,u,c;return(0,m.default)(e,[{key:"listDir",value:(c=(0,d.default)((function*(e){return U.N.list((0,U.r)(e))})),function(e){return c.apply(this,arguments)})},{key:"moveDir",value:(u=(0,d.default)((function*(e,t){return U.N.move(e,t)})),function(e,t){return u.apply(this,arguments)})},{key:"removeDir",value:(s=(0,d.default)((function*(e){return U.N.remove((0,U.r)(e))})),function(e){return s.apply(this,arguments)})},{key:"readFile",value:(o=(0,d.default)((function*(e){var t=new Blob;return t.nativePayload={uri:`file://${(0,U.r)(e)}`,name:e.substring(e.lastIndexOf("/")+1),type:"*/*"},t})),function(e){return o.apply(this,arguments)})},{key:"storeFile",value:(a=(0,d.default)((function*(e,t){yield U.N.save(e.data,(0,U.r)(t)),e.close()})),function(e,t){return a.apply(this,arguments)})},{key:"moveFile",value:(r=(0,d.default)((function*(e,t){return U.N.move((0,U.r)(e),(0,U.r)(t))})),function(e,t){return r.apply(this,arguments)})},{key:"removeFile",value:(i=(0,d.default)((function*(e){return U.N.remove((0,U.r)(e))})),function(e){return i.apply(this,arguments)})},{key:"downloadFile",value:(n=(0,d.default)((function*(e,t){return this.downloadQueue.addToQueue(e,t)})),function(e,t){return n.apply(this,arguments)})},{key:"toAbsolutePath",value:function(e){return(0,U.r)((0,Y.t)(this.rootDirectory,e))}}],[{key:"readAsDataURL",value:(t=(0,d.default)((function*(e){return U.N.readAsDataURL((0,U.r)(e))})),function(e){return t.apply(this,arguments)})}]),e})(),Gn=(function(){function e(){(0,y.default)(this,e)}var t;return(0,m.default)(e,[{key:"supported",value:function(){return!1}},{key:"getTransaction",value:function(){throw new C.A("Unsupported instruction has no transaction")}},{key:"getDescription",value:function(){throw new C.A("Unsupported instruction has no description")}},{key:"postMigrate",value:(t=(0,d.default)((function*(){return Promise.resolve()})),function(){return t.apply(this,arguments)})}]),e})(),Hn=(function(e){(0,g.default)(n,e);var t=fe(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n)})(Gn),zn=(function(e){(0,g.default)(n,e);var t=fe(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n)})(Gn),qn=(function(e){(0,g.default)(n,e);var t=fe(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n)})(Gn),Vn=(function(e){(0,g.default)(n,e);var t=fe(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n)})(Gn),Qn=(function(e){(0,g.default)(n,e);var t=fe(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n)})(Gn),Wn=(function(e){(0,g.default)(i,e);var t,n=fe(i);function i(e,t){var r;return(0,y.default)(this,i),(r=n.call(this)).entity=e,r.fileType=t,r.filesToDelete=[],r}return(0,m.default)(i,[{key:"supported",value:function(){return!0}},{key:"getDescription",value:function(){return`Drop table '${this.entity}'.`}},{key:"getTransaction",value:function(){var e=this,t=new P.T;"none"!==this.fileType&&(t=(0,P.j)((0,P.k)(this.entity)).chain((function(t){t.forEach((function(t){var n={guid:t[P.G],changedDate:t[P.C],isThumb:!1};e.filesToDelete.push(n),"image"===e.fileType&&e.filesToDelete.push(Object.assign({},n,{isThumb:!0}))}))})));var n=[(0,P.l)((0,P.t)(this.entity))].concat((0,l.default)((0,P.m)([this.entity])));return t.chain((function(){return(0,P.n)(n)}))}},{key:"postMigrate",value:(t=(0,d.default)((function*(){(0,W.o)().deleteFiles(this.filesToDelete)})),function(){return t.apply(this,arguments)})}]),i})(Gn),Jn=(function(e){(0,g.default)(n,e);var t=fe(n);function n(e,i,r){var a;return(0,y.default)(this,n),(a=t.call(this)).entity=e,a.droppedAttributes=i,a.newAttributesMeta=r,a}return(0,m.default)(n,[{key:"supported",value:function(){return!0}},{key:"getDescription",value:function(){return`Drop columns (${this.droppedAttributes.join(", ")}) from '${this.entity}'.`}},{key:"getTransaction",value:function(){var e=Object.entries(this.newAttributesMeta).reduce((function(e,t){var n=(0,b.default)(e,2),i=n[0],r=n[1],a=(0,b.default)(t,2),o=a[0],s=a[1],u=(0,P.t)(o);return i.push(u),r.push({name:u,type:(0,P.o)(s.type)}),[i,r]}),[[],[]]),t=(0,b.default)(e,2),n=t[0],i=t[1],r=(0,P.p)("temp_table",i.concat({name:P.G,type:"text"}),P.G),a=n.concat(P.G).join(", "),o=[`INSERT INTO temp_table (${a}) SELECT ${a} FROM ${(0,K.toUserScopedName)((0,P.t)(this.entity))}`,[]],s=(0,P.l)((0,P.t)(this.entity)),u=[`ALTER TABLE temp_table RENAME TO ${(0,K.toUserScopedName)((0,P.t)(this.entity))}`,[]];return(0,P.n)([r,o,s,u])}}]),n})(Gn);function Kn(e,t){var n=(0,C.d)((function(e){return(0,C.e)(e.modelId)})),i=(function(e,t){var n=new Set([].concat((0,l.default)(Object.keys(e)),(0,l.default)(Object.keys(t))));return Array.from(n).reduce((function(n,i){return e[i]&&t[i]?n.comparableMetadata.set(i,{oldMetadata:e[i],newMetadata:t[i]}):e[i]&&!t[i]?n.droppedMetadata.push(e[i]):!e[i]&&t[i]&&n.addedMetadata.push(t[i]),n}),{comparableMetadata:new Map,droppedMetadata:[],addedMetadata:[]})})(n(e),n(t)),r=i.droppedMetadata,a=i.addedMetadata,o=i.comparableMetadata,s=[],u=a.map((function(e){return e.objectType}));0!==r.length&&s.push.apply(s,(0,l.default)(r.map((function(e){return new Wn(e.objectType,Yn(e))})))),0!==u.length&&s.push.apply(s,(0,l.default)(u.map((function(e){return new zn}))));var c=(function(e){var t=[];for(var n of e){var i=(0,b.default)(n,2)[1],r=i.oldMetadata,a=i.newMetadata;r.objectType!==a.objectType&&t.push(new Hn),t.push.apply(t,(0,l.default)(Xn(r.objectType,r.attributes,a.attributes)))}return t})(o);return s.push.apply(s,(0,l.default)(c)),s}function Yn(e){return Zn(e)?(function(e){return Zn(e)&&("System.Image"===e.objectType||e.properties.superclasses.includes("System.Image"))})(e)?"image":"file":"none"}function Xn(e,t,n){var i=(0,C.d)((function(e){var t=(0,b.default)(e,2)[1];return(0,C.e)(t.modelId)})),r=i(Object.entries(t)),a=i(Object.entries(n)),o=new Set([].concat((0,l.default)(Object.keys(r)),(0,l.default)(Object.keys(a)))),s=[],u=Array.from(o).reduce((function(e,t){return r[t]&&a[t]?(r[t][0]!==a[t][0]&&e.renamedAttributes.push([r[t][0],a[t][0]]),r[t][1].type!==a[t][1].type&&e.typeChangeAttributes.push([r[t][0],r[t][1].type,a[t][1].type])):r[t]&&!a[t]?e.droppedAttributes.push(r[t][0]):!r[t]&&a[t]&&e.addedAttributes.push([a[t][0],a[t][1].type]),e}),{droppedAttributes:[],addedAttributes:[],renamedAttributes:[],typeChangeAttributes:[]}),c=u.droppedAttributes,d=u.renamedAttributes,f=u.typeChangeAttributes,h=u.addedAttributes;return 0!==c.length&&s.push(new Jn(e,c,n)),0!==d.length&&s.push(new qn),0!==f.length&&s.push(new Vn),0!==h.length&&s.push(new Qn),s}function Zn(e){return"System.FileDocument"===e.objectType||e.properties.superclasses.includes("System.FileDocument")}function ei(e,t){var n=t.sync_config;if(!n)return{shouldSync:!1};if(!e)return{shouldSync:!0};if(e.bundleVersion===t.bundleVersion)return{shouldSync:!1};var i=e.sync_config,r=new Set((0,C.e)(null==i?void 0:i.schema)),a=e.metadata.filter((function(e){var t=e.objectType;return r.has(t)})),o=new Set((0,C.e)(n.schema)),s=t.metadata.filter((function(e){var t=e.objectType;return o.has(t)}));if(![].concat((0,l.default)(a),(0,l.default)(s)).every((function(e){return void 0!==e.modelId&&Object.values(e.attributes).every((function(e){return void 0!==e.modelId}))}))){var u=w.j.structural;return u(i,n)?{shouldSync:!n.schema.map((function(n){return{oldAttrs:e.metadata.find((function(e){return e.objectType===n})).attributes,newAttrs:t.metadata.find((function(e){return e.objectType===n})).attributes}})).every((function(e){var t=e.oldAttrs,n=e.newAttrs;return u(t,n)}))}:{shouldSync:!0}}var c=(function(e,t,n,i){if(!t.online)return[];var r=new Set((0,C.e)(i.online)),a=n.reduce((function(e,t){var n=t.objectType,i=t.modelId;return r.has(n)&&e.add((0,C.e)(i)),e}),new Set),o=new Set(t.online),s=e.reduce((function(e,t){var n=(0,b.default)(e,2),i=n[0],r=n[1],a=t.objectType,s=t.modelId;return i.set((0,C.e)(s),a),o.has(a)&&r.set((0,C.e)(s),a),[i,r]}),[new Map,new Map]),u=(0,b.default)(s,2),c=u[0],l=u[1],d=[];for(var f of a)c.has(f)&&(l.has(f)||d.push((0,C.e)(c.get(f))));return d})(a,(0,C.e)(i),s,(0,C.e)(n)),d=(0,C.d)((function(e){return(0,C.e)(e.objectType)}))(a);if(c.length>0)return{shouldSync:!0,cleanupInstructions:c.map((function(e){return new Wn(e,Yn((0,C.e)(d[e])))}))};var f=Kn(a,s);return 0===f.length?{shouldSync:!1}:f.every((function(e){return e.supported()}))?{shouldSync:!1,dbModelSyncInstructions:f}:{shouldSync:!0}}function ti(e,t,n,i){return ni.apply(this,arguments)}function ni(){return ni=(0,d.default)((function*(e,t,n,i){if(e.shouldSync)yield s(),e.cleanupInstructions&&(yield(0,W.o)().executeDBModelSyncInstructions(e.cleanupInstructions,t));else if(e.dbModelSyncInstructions){var r=e.dbModelSyncInstructions.length>1;i.info(`Found ${e.dbModelSyncInstructions.length} instruction${r?"s":""} to update the local database to match the new domain model.`);try{var a=new B.a;i.info("Updating the local database to match the new domain model."),yield(0,W.o)().executeDBModelSyncInstructions(e.dbModelSyncInstructions,t);var o=a.measure();i.info(`Updating the local database to match the new domain model completed in ${o} milliseconds.`)}catch(e){i.warn("An error occurred while updating the local database schema. Falling back to a full startup synchronization.",e),yield s()}}function s(){return u.apply(this,arguments)}function u(){return u=(0,d.default)((function*(){var e=new B.a,r=(0,P.q)(n,t);yield(0,W.o)().runFullSynchronization(!0,r);var a=e.measure();i.log(a.ms>P.r?"warning":"info",`Startup synchronization completed in ${a} milliseconds.`)})),u.apply(this,arguments)}})),ni.apply(this,arguments)}var ii=(function(e){(0,g.default)(h,e);var t,n,i,r,a,o,s,u,c,l,f=fe(h);function h(e,t){var n;return(0,y.default)(this,h),(n=f.call(this))._getImageUri=e&&e.getImgUriFn?(0,Z.a)(e.getImgUriFn):ri,n._objectCache=t,n}return(0,m.default)(h,[{key:"getByGuid",value:(l=(0,d.default)((function*(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=yield(0,Y.m)({guids:e,filter:i},(function(){return(0,B.e)(e,i)}));if(yield(0,P.s)(this._objectCache,r),r.resultGuids)t=r.resultGuids.map((function(e){return n._objectCache.getObject(e)}));else{var a=r.mxobjects||[];a.map((function(e){return e.guid})).forEach((function(e){return be(n._objectCache,e)})),t=a.map(F.M.fromJson)}return{mxobjs:t,count:t.length}})),function(e){return l.apply(this,arguments)})},{key:"getByPath",value:(c=(0,d.default)((function*(e,t,n,i){var r=this,a=pe(this._objectCache,[e]),o=(0,b.default)(a,2),s=o[0],u=o[1],c=yield(0,Y.m)({guid:e,path:t,entity:n},(function(){return(0,B.f)(e,t,n,i,s,u)}));yield(0,P.s)(this._objectCache,c);var l=c.resultGuids||[];return{mxobjs:l.map((function(e){return r._objectCache.getObject(e)})),count:l.length}})),function(e,t,n,i){return c.apply(this,arguments)})},{key:"getByXPath",value:(u=(0,d.default)((function*(e,t,n){var i=this,r=yield(0,Y.m)({xpath:e,filter:t,wantCount:n},(function(){return(0,B.h)(e,t,n)}));yield(0,P.s)(this._objectCache,r);var a,o=r.count||0,s=r.aggregates||[],u=r.hasMoreItems;if(Array.isArray(r.resultGuids))a=r.resultGuids.map((function(e){return i._objectCache.getObject(e)}));else{var c=r.mxobjects||[];c.map((function(e){return e.guid})).forEach((function(e){return be(i._objectCache,e)})),a=c.map(F.M.fromJson)}return{mxobjs:a,count:o,hasMoreItems:u,aggregates:s.map((function(e){return null==e?"":new H.default(e)}))}})),function(e,t,n){return u.apply(this,arguments)})},{key:"action",value:(s=(0,d.default)((function*(e,t,n,i,r){var a=this,o=e&&e.actionname?e.actionname:null,s=(0,W.g)(o),u=e&&e.guids?e.guids:[];null!=t&&(u=u.concat(null!=s?s.parameters.map((function(e){return t.getContext(e)})).filter((function(e){return null!=e})):t.getGuids()));var c,l=(0,P.u)(this._objectCache,void 0,u.concat(ge())),d=(0,b.default)(l,2),f=d[0],h=d[1];try{c=i?yield(0,W.e)((function(n){return(0,B.i)(e,t,f,h,n)})):yield(0,B.i)(e,t,f,h)}catch(e){throw yield(0,P.h)(this._objectCache,e,r),e}return yield(0,P.s)(this._objectCache,c,n),c.actionResult&&Array.isArray(c.actionResult.resultGuids)?c.actionResult.resultGuids.map((function(e){return a._objectCache.getObject(e)})):c.actionResult})),function(e,t,n,i,r){return s.apply(this,arguments)})},{key:"create",value:(o=(0,d.default)((function*(e){var t,n,i=null!=(t=(0,z.g)(e))&&t.needsReachableState.create?pe(this._objectCache,[]):(0,P.g)(this._objectCache,[]),r=(0,b.default)(i,2),a=r[0],o=r[1];try{n=yield(0,B.j)(e,a,o)}catch(e){throw yield(0,P.h)(this._objectCache,e),e}return yield(0,P.s)(this._objectCache,n),this._objectCache.getObject(n.actionResult)})),function(e){return o.apply(this,arguments)})},{key:"commit",value:(a=(0,d.default)((function*(e,t,n,i){var r,a=ve(this._objectCache,e,"commit"),o=(0,b.default)(a,2),s=o[0],u=o[1];try{r=yield(0,B.m)(e,t,s,u)}catch(e){throw yield(0,P.h)(this._objectCache,e,i),e}return yield(0,P.s)(this._objectCache,r,n),r})),function(e,t,n,i){return a.apply(this,arguments)})},{key:"rollback",value:(r=(0,d.default)((function*(e){var t,n=ve(this._objectCache,e,"rollback"),i=(0,b.default)(n,2),r=i[0],a=i[1];try{t=yield(0,B.o)(e,r,a)}catch(e){throw yield(0,P.h)(this._objectCache,e),e}return yield(0,P.s)(this._objectCache,t),t})),function(e){return r.apply(this,arguments)})},{key:"remove",value:(i=(0,d.default)((function*(e){var t,n=ve(this._objectCache,e,"delete"),i=(0,b.default)(n,2),r=i[0],a=i[1];try{t=yield(0,B._)(e,r,a)}catch(e){throw yield(0,P.h)(this._objectCache,e),e}return yield(0,P.s)(this._objectCache,t),t})),function(e){return i.apply(this,arguments)})},{key:"validate",value:(n=(0,d.default)((function*(e){var t=(0,P.g)(this._objectCache,e),n=(0,b.default)(t,2),i=n[0],r=n[1];try{return yield(0,B.v)(i,r)}catch(e){throw yield(0,P.h)(this._objectCache,e),e}})),function(e){return n.apply(this,arguments)})},{key:"saveDocument",value:(t=(0,d.default)((function*(e,t,n,i){var r,a=ve(this._objectCache,[e],"commit"),o=(0,b.default)(a,2),s=o[0],u=o[1];try{r=yield(0,B.u)(e,t,n,i,s,u)}catch(e){throw yield(0,P.h)(this._objectCache,e),e}return yield(0,P.s)(this._objectCache,r),r})),function(e,n,i,r){return t.apply(this,arguments)})},{key:"getDocumentUrl",value:function(e,t,n,i){return(0,Y.g)(e,t,n,i)}},{key:"getImageUrl",value:function(e){return this._getImageUri(e)}},{key:"cleanup",value:function(){return Promise.resolve()}}]),h})(P._);function ri(e){return Promise.resolve(e)}var ai=(function(){function e(t){(0,y.default)(this,e),this.objectCache=t}var t,n,i,r,a,o,s,u,c,f;return(0,m.default)(e,[{key:"retrieveByXPath",value:(f=(0,d.default)((function*(e,t,n,i,r){var a=yield(0,Y.m)({operationId:e,args:t,xpathConstraint:n,options:i,wantCount:r},(function(){return(0,B.p)(e,t,Object.assign({},i,{wantCount:r,extraXpath:n}),{},[])}));return yield(0,P.s)(this.objectCache,a),Object.assign({},this.processResult(a),{count:a.count,hasMoreItems:a.hasMoreItems})})),function(e,t,n,i,r){return f.apply(this,arguments)})},{key:"retrieveByPath",value:(c=(0,d.default)((function*(e,t){var n=pe(this.objectCache,[e]),i=(0,b.default)(n,2),r=i[0],a=i[1],o=yield(0,Y.m)({guid:e,operationId:t},(function(){return(0,B.p)(t,{CurrentObject:{guid:e}},{},r,a)}));return yield(0,P.s)(this.objectCache,o),this.processResult(o)})),function(e,t){return c.apply(this,arguments)})},{key:"retrieveByPathUsingOperationIdOrCache",value:(u=(0,d.default)((function*(e,t,n,i,r){var a=[],o=(0,z.g)(i),s=void 0!==o&&(function(e,t){var n=t.split("/").length;return!e.isPersistable&&!e.needsReachableState.retrieve&&1===n})(o,t);if(!r&&!s)throw new Error(`Error trying to retrieve an object of type ${i}`);return r&&!s||(a=(0,N.a)(e,n,t,this.objectCache).cachedObjects),r&&0===a.length?this.retrieveByPath(e,r):{mxObjects:a,count:a.length}})),function(e,t,n,i,r){return u.apply(this,arguments)})},{key:"retrieveByMicroflow",value:(s=(0,d.default)((function*(e,t,n){var i;try{var r=(0,P.u)(this.objectCache,e,(0,ee.g)(t).concat(ge())),a=(0,b.default)(r,2),o=a[0],s=a[1];i=yield(0,B.p)(e,t,{},o,s)}catch(e){throw yield(0,P.h)(this.objectCache,e),e}return yield(0,P.s)(this.objectCache,i,n),Object.assign({},this.processResult(i),{hasMoreItems:i.hasMoreItems})})),function(e,t,n){return s.apply(this,arguments)})},{key:"processResult",value:function(e){var t=this;return e.partialObjects.length?{mxObjects:e.partialObjects.map((function(e){return F.M.fromJson(e,!0).snapshot()})),extra:[]}:{mxObjects:e.resultGuids.map((function(e){return(0,C.e)(t.objectCache.getObject(e))})),extra:e.extraGuids.map((function(e){return(0,C.e)(t.objectCache.getObject(e))}))}}},{key:"executeMicroflow",value:(o=(0,d.default)((function*(e,t,n){var i,r,a,o,s=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];try{var l=Object.values(t).some((function(e){return"xpath"in e}))?(r=this.objectCache,a=r.getAllObjects().map((function(e){return e.getGuid()})),[(o=(0,V.g)()).getUserId(),o.getSessionObjectId()].filter((function(e){return!a.includes(e)})).forEach((function(e){return a.push(e)})),(0,P.g)(r,a)):(0,P.u)(this.objectCache,e,(0,ee.g)(t).concat(ge())),d=(0,b.default)(l,2),f=d[0],h=d[1];i=c?yield(0,W.e)((function(n){return(0,B.q)(e,t,f,h,u,n)})):yield(0,B.q)(e,t,f,h,u)}catch(e){throw yield(0,P.h)(this.objectCache,e),e}yield(0,P.s)(this.objectCache,i,n);var g=i.actionResult;if(null!=g){var p=g.value,v=g.type;return(0,te.r)(p,v,(function(e){return(0,C.e)(s.objectCache.getObject(e))}))}})),function(e,t,n){return o.apply(this,arguments)})},{key:"executeExternalAction",value:(a=(0,d.default)((function*(e,t,n){var i,r=t.getGuid(),a=(0,C.b)(n.map((function(e){return e.getGuid()}))),o=(function(e,t,n){var i=pe(e,[t]),r=(0,b.default)(i,2),a=r[0],o=r[1],s=ve(e,n,"commit"),u=(0,b.default)(s,2),c=u[0],d=u[1],f=Object.assign({},a,c),h=(0,l.default)(o),g=function(e){h.find((function(t){return t.guid===e.guid}))||h.push(e)};for(var p of d)g(p);return[f,h]})(this.objectCache,r,a),s=(0,b.default)(o,2),u=s[0],c=s[1];try{var d={Object:{guid:r}};a.length>0&&(d.Objects={guids:a}),i=yield(0,B.q)(e,d,u,c)}catch(e){throw yield(0,P.h)(this.objectCache,e),e}yield(0,P.s)(this.objectCache,i),me(this.objectCache,n,i);var f=i.commits,h=void 0===f?[]:f,g=(0,C.b)(n.filter((function(e){return h.includes(e.getGuid())}))),p=g.map((function(e){return{entity:e.getEntity()}})),v=g.map((function(e){return{guid:e.getGuid()}}));yield w.p.apply(void 0,(0,l.default)(p).concat((0,l.default)(v)))})),function(e,t,n){return a.apply(this,arguments)})},{key:"createObject",value:(r=(0,d.default)((function*(e,t){var n=(0,z.g)(e);if(void 0!==n&&(!t||(function(e){return!e.isPersistable&&!e.needsReachableState.create&&Object.values(e.attributes).every((function(e){return!e.isAlwaysReadOnly&&!(0,z.i)(e.name)}))})(n))){var i=(0,P.v)(n);return this.objectCache.onCreate([i]),this.objectCache.setMxObjects([(0,N.c)(i,n)]),this.objectCache.getObject(i)}if(void 0!==t)return this.executeCreateObjectAction(t,e);throw new Error(`Error trying to create an object of type ${e}`)})),function(e,t){return r.apply(this,arguments)})},{key:"executeCreateObjectAction",value:(i=(0,d.default)((function*(e,t){var n,i,r=null!=(n=(0,z.g)(t))&&n.needsReachableState.create?pe(this.objectCache,[]):(0,P.g)(this.objectCache,[]),a=(0,b.default)(r,2),o=a[0],s=a[1];try{i=yield(0,B.q)(e,{},o,s)}catch(e){throw yield(0,P.h)(this.objectCache,e),e}yield(0,P.s)(this.objectCache,i);var u=(0,C.e)(i.actionResult).value;return(0,C.e)(this.objectCache.getObject(u))})),function(e,t){return i.apply(this,arguments)})},{key:"executeObjectAction",value:(n=(0,d.default)((function*(e,t,n){if(0!==n.length){var i,r=(0,C.b)(n.map((function(e){return e.getGuid()}))),a=ve(this.objectCache,r,t),o=(0,b.default)(a,2),s=o[0],u=o[1],c=(0,C.d)((function(e){return e.getGuid()}))(n),d=r.reduce((function(e,t){return e[t]=c[t].getEntity(),e}),{});try{i=yield(0,B.q)(e,{Objects:{guids:r}},s,u)}catch(e){throw yield(0,P.h)(this.objectCache,e),e}yield(0,P.s)(this.objectCache,i),me(this.objectCache,n,i);var f=i,h=f.commits,g=void 0===h?[]:h,p=f.deletes,v=void 0===p?[]:p,y=f.resets,m=void 0===y?{}:y,k=Object.keys(m),S="rollback"===t?(0,l.default)(r):[].concat((0,l.default)(g),(0,l.default)(v),k).filter((function(e){return r.includes(e)})),x="rollback"===t?(0,l.default)(r):[].concat((0,l.default)(g),k),j=(0,C.b)(S.map((function(e){return d[e]}))).filter((function(e){return void 0!==e})).map((function(e){return{entity:e}})),O=(0,C.b)(x).filter((function(e){return r.includes(e)})).map((function(e){return{guid:e}}));yield w.p.apply(void 0,(0,l.default)(j).concat((0,l.default)(O)))}})),function(e,t,i){return n.apply(this,arguments)})},{key:"generateExport",value:(t=(0,d.default)((function*(e){var t,n,i=null!=(t=null==e?void 0:e.guids)?t:[],r=pe(this.objectCache,i),a=(0,b.default)(r,2),o=a[0],s=a[1];try{n=yield(0,W.e)((function(t){return(0,B.t)(e,o,s,t)}))}catch(e){throw yield(0,P.h)(this.objectCache,e),e}yield(0,P.s)(this.objectCache,n)})),function(e){return t.apply(this,arguments)})}]),e})();function oi(e,t,n,i,r,a,o,s,u){return si.apply(this,arguments)}function si(){return si=(0,d.default)((function*(e,t,n,i,r,a,o,s,c){var l=M.M.RUNTIME_URL;(0,j.s)(i),(0,w.k)(Rt);var f=Ct.getInstance();!(function(e,t){kt=k.AppState.addEventListener("change",t.onAppStateChanged),e.addHandler(t.logHandler)})(a,f);var h,g=new rn;yield(h=(0,d.default)((function*(e){var t=e.databaseName,n=e.logger;if(e.dbEncryptionEnabled)if(In.SUPPORTS_ENCRYPTION){var i=(0,M.a)("hasEncryptedDatabase");if(yield i.get())n.debug("The client already uses encrypted database");else{n.info("The client requires encrypted database, force delete unencrypted database"),yield An.deleteDatabase({name:t,location:Ln});var r=yield Mn();yield r.remove(),yield i.set("true")}}else n.debug("Client doesn't support encryption for a database. Skip deletion");else n.debug("Database encryption is disabled. Skip deletion")})),function(e){return h.apply(this,arguments)})({dbEncryptionEnabled:s,logger:a.getLogger(O.a.Startup),databaseName:M.M.DATABASE_NAME});var p=yield Mn(),v=yield(0,M.g)(),y=(function(){var e=(0,d.default)((function*(){yield f.saveLogs(),yield kn.reload(),yield(0,B.n)()}));return function(){return e.apply(this,arguments)}})(),m=a.getLogger(O.a.Startup),x=a.getLogger(O.a.Auth),E=new bn(p,v,m,x,t,"10.6.1.24365",!0,(function(e,t,n){return(function(){var i=(0,d.default)((function*(i,r){yield e.remove(),yield t.remove(),r&&(yield n())}));return function(e,t){return i.apply(this,arguments)}})()})(p,v,y));(0,V.s)(E),(0,Q.s)(e);var A,T=new nn({garbageCollectionInterval:1e4,logCleanupStatistics:!1},g);A=M.M.WARNINGS_FILTER_LEVEL,k.LogBox.ignoreAllLogs("none"===A),"partial"===A?k.LogBox.ignoreLogs(nt):"all"===A&&k.LogBox.ignoreLogs(tt),window.mx={appUrl:"resources://",data:T,homeUrl:"not-supported",isOffline:function(){return!0},logger:a.getLogger(),login:function(e,t,n,i){E.login({username:e,password:t}).then((0,d.default)((function*(){n&&n(),mx.reload()})),i)},logout:function(){(0,d.default)((function*(){yield E.logout(),T.clear((function(){Z.removeDir(Z.toAbsolutePath(J)).finally(mx.reload).catch(mx.reload)})),(0,B.n)()}))()},reload:y,remoteUrl:l,session:E,ui:e,version:"10.6.1.24365"},window.mx.data.update=function(e){(0,w.p)(e).then(e.callback,window.mx.onError)},window.mx.ui.openForm=function(e,t,n){var i=t.context&&t.context.getTrackId()||void 0,r=Object.assign({location:"content"},t,{context:void 0,contextParams:t.context?t.context.getParams():{}},t.domNode?{location:"node"}:void 0),a=t.callback?t.callback.bind(n):void 0,o=t.error?t.error.bind(n):window.mx.onError;window.mx.ui.getPageParameters(e).then((function(n){if(n.length>1)throw new Error(`Cannot open form '${e}', as it expects multiple parameters`);var s=n.length?(0,u.default)({},"$"+n[0],i):{};window.mx.ui.openForm2(e,s,t.title,window.mx.ui.getContentForm(),r).then(a,o)})).catch(o)},window.mx.server={getCacheBust:function(){return window.mx.session.getConfig("cachebust")}},window.mx.session.getUserName=function(){return this.getUserObject().get("Name")},Oe.prototype.commit=function(e,t){var n=this;function i(e){n.setSuspend(!1),t?t(e):window.mx.onError(e)}this.setSuspend(!0),this.publish("submit",(function(){n.publish("commit",(function(){window.mx.data.commit({mxobjs:n.getSubmitObjects(),callback:function(){n.setSuspend(!1),e&&e()},error:i})}),i)}),i)},Oe.prototype.rollback=function(e,t){var n=this;function i(e){n.setSuspend(!1),t?t(e):window.mx.onError(e)}this.setSuspend(!0),this.publish("rollback",(function(){window.mx.data.rollback({mxobjs:n.getSubmitObjects(),callback:function(){n.setSuspend(!1),e&&e()},error:i})}),i)},Oe.prototype.validate=function(e,t){this.triggerValidation().then(e,t)},F.M.prototype.getEnumCaption=function(e){var t=this.metaData.attributes[e],n=this.get(e);return null!=n&&""!==n&&null!=t&&t.enumeration?(0,S.t)(t.enumeration,n):n||""},F.M.prototype.getEnumMap=function(e){var t,n=null==(t=this.metaData.attributes[e])?void 0:t.enumeration;return n?(0,S.g)(n).map((function(e){return{key:e,caption:(0,S.t)(n,e)}})):null},F.M.prototype.getOptions=function(e){var t,n=null==(t=this.metaData.attributes[e])?void 0:t.enumeration;return n?(0,S.g)(n):[]},window.mx.parser=new zt,window.mx.meta=new Gt,window.mx.onError=function(e){(0,w.h)(e)};var N,D,I=yield(N=(0,d.default)((function*(e){var t=wn[e].map((function(e){return e()}));return(yield Promise.all(t)).filter(C.c).reduce((function(e,t){return Object.assign(e,t)}),{})})),function(e){return N.apply(this,arguments)})("sessionWillStart"),L=I.preferredLanguages,$=!1!==M.M.IS_DEVELOPER_APP;try{D=yield E.startup({offline:!0,profile:"NativePhone",timezoneoffset:(new Date).getTimezoneOffset(),timezoneId:(0,X.a)(),preferredLanguages:void 0!==L?L:(0,X.g)()},$)}catch(e){throw e instanceof B.U&&401===e.status&&(m.info("The client is unauthorized. Reloading to get a new session."),yield y()),e}var _,R,G=E.getConfig("isDevModeEnabled"),H=E.getUserRoleNames().map((function(e){return`"${e}"`})),z=H.length?`the roles ${H.join(", ")}`:"no roles";m.debug("The app "+(G?"is in development mode and ":"")+`will start with ${E.isGuest()?"an anonymous":"a named"} user `+`with ${z} `+`in ${E.isOffline()?"offline":"online"} mode.`),G&&(yield(R=(0,d.default)((function*(e,t,n){var i,r=new on(e);t&&(r.addOnReload((function(e){e?n():mx.reload()})),yield(i=(0,d.default)((function*(e){function t(){return new k.NativeEventEmitter(k.NativeModules.NativeReloadHandler).addListener(kn.EVENT_RELOAD_WITH_STATE?kn.EVENT_RELOAD_WITH_STATE:"reloadWithState",e)}var n=t();k.AppState.addEventListener("change",(function(e){var i;null!=(i=n)&&i.remove(),n="active"===e?t():null}))})),function(e){return i.apply(this,arguments)})(n)),yield r.connect()})),function(e,t,n){return R.apply(this,arguments)})(l,$,(function(){(0,d.default)((function*(){yield r.savePageState(),yield r.setHotReloadFlag(),mx.reload()}))()}))),!G&&o?f.enable():(function(e,t,n){t.disable(),null!=(n=kt)&&n.remove(),e.removeHandler(t.logHandler)})(a,f),yield(_=(0,d.default)((function*(e,t){var n=(0,M.a)("hasUserScopedFilesDirectories");if(yield n.get())t.debug("The client uses user scoped files directories.");else{var i=M.M.FILES_DIRECTORY_NAME;if(!(yield U.N.fileExists((0,U.r)(i))))return t.debug("The client doesn't need an upgrade to user scoped files directories."),void(yield n.set("true"));var r=`${(0,U.r)(i)}`,a=`${(0,U.r)(`${ci(e)}`)}`,o=new B.a;try{if(Un)t.debug("Migration to user scoped files directories started using directory rename"),yield U.N.move(r,a);else{t.debug("Migration to user scoped files directories started using file by file migration");var s=`${r}/${Y.a}`,u=`${r}/${Y.T}`;(yield U.N.fileExists(s))&&(yield c(s,`${a}/${Y.a}`)),(yield U.N.fileExists(u))&&(yield c(u,`${a}/${Y.T}`))}t.debug(`Migration to user scoped files directories completed in ${o.measure()} milliseconds`)}catch(e){throw t.error("Migration to user scoped files directories failed!",e),e}yield n.set("true")}function c(e,t){return l.apply(this,arguments)}function l(){return(l=(0,d.default)((function*(e,t){var n;try{n=yield U.N.list(e)}catch(e){}n&&(yield Promise.all(n.map((function(n){return U.N.move(`${e}/${n}`,`${t}/${n}`)}))))}))).apply(this,arguments)}})),function(e,t){return _.apply(this,arguments)})(E,m);var q,J=ci(E),Z=new sn(new Fn(J,c,m),a),ee=yield(q=(0,d.default)((function*(e,t,n,i,r){(0,K.setUserScopedNamePrefix)("mx"+ui(e));var a=(function(e,t){var n=t.getLogger(O.a.Database),i=function(e){return function(t){e(r(t))}},r=function(e){return{executeSql:function(t,i,r,a){var o=new B.a;e.executeSql(t,i,(function(e,i){n.debounced.trace(`SQL request was completed in ${o.measure()} milliseconds. Rows count: ${i.rows.length}. Rows affected: ${i.rowsAffected}. Query: "${t}`),null==r||r(e,i)}),(function(e,i){var r;return n.warn(`SQL request was failed with the error: ${i}. Query: "${t}`),null!=(r=null==a?void 0:a(e,i))&&r}))}}};return Object.assign({},e,{readTransaction:function(t,n,r){return e.readTransaction(i(t),n,r)},transaction:function(t,n,r){return e.transaction(i(t),n,r)}})})(yield _n({dbEncryptionEnabled:r,logger:i.getLogger(O.a.Startup),databaseName:M.M.DATABASE_NAME}),i),o=(0,C.e)(e.getOfflineConfig()),s=yield(0,P.w)(t,a,(0,C.e)(o),n,i,(function(e,t,i){return n.toAbsolutePath(`${i?Y.T:Y.a}/${e}`)}));return[s.offlineData,s.dataBackend]})),function(e,t,n,i,r){return q.apply(this,arguments)})(E,g,Z,a,s),te=(0,b.default)(ee,2),ne=te[0],ie=te[1];mx.offlineData=ne,T.startup(ie);var re=new ii({},g);new nn({garbageCollectionInterval:1e4,logCleanupStatistics:!1},g).startup(re);var ae=new ai(g);(0,W.i)(E.getConfig(),n,{},ae,ne);var oe=e.showProgress(void 0,!0);try{var se=ei(yield E.loadCachedSessionData(),D);m.debug(` The app will ${se.shouldSync?"":"not "}perform a startup sync.`);var ue=E.getOfflineMetadata(),ce=yield ne.retrieveOfflineMetadata();yield ti(se,ue,ce,m)}finally{e.hideProgress(oe)}return yield E.saveSessionData(),E})),si.apply(this,arguments)}function ui(e){return e.isGuest()?"anonymous":e.getUserId()}function ci(e){var t;return`${null!=(t=M.M.APP_NAME)?t:"default"}/${ui(e)}`}function li(e){return di.apply(this,arguments)}function di(){return(di=(0,d.default)((function*(e){if(!(yield e.isHotReloadFlagSet()))throw new Error("Not hot reloaded");yield e.clearHotReloadFlag();var t=yield e.loadPageState();if(!t)throw new Error("Page state could not be loaded");var n=JSON.parse(t.navState);if(!fi(n.routes).every(hi))throw new Error("Page state not loaded as it contains pages that no longer exist");return mx.data.hydrateCache(t.cache),e.setNavigationState(n),n}))).apply(this,arguments)}function fi(e){var t=[];for(var n of e){var i;null!=(i=n.params)&&i.pageName&&t.push(n.params.pageName),n.routes&&t.push.apply(t,(0,l.default)(fi(n.routes)))}return t}function hi(e){return void 0!==We.findPage(e)}function gi(e){var t=e.getStateForAction;return e.getStateForAction=function(e,n){var i,r;switch(e.type){case"Navigation/PUSH":var a=t(e,n);if(a===n)return n;if(e.numberOfPagesToClose&&e.numberOfPagesToClose>0){var o=(0,l.default)(a.routes),s=o.length-1,u=s-1-e.numberOfPagesToClose;if(u<0)o[s].params.hideBackButton=!0;else{var c=o[s].params,d=o[u].params;c.headerBackTitle=d.title}return Object.assign({},a,{routes:o})}return a;case Se:var f=n.routes,h=Math.min(e.n,f.length-1);return f.splice(f.length-h-1,h),Object.assign({},n,{routes:f,index:f.length-1});case xe:var g=n.routes;return(null==(i=g[0])||null==(r=i.params)?void 0:r.pageName)===ze&&g.splice(0,1),Object.assign({},n,{routes:g,index:g.length-1});default:return t(e,n)}},e}function pi(e){var t=e.onPress,n=e.testID,i=e.style,r=k.StyleSheet.flatten([vi,i]);return(0,L.jsx)(re.T,{onPress:t,testID:n,borderless:!0,children:(0,L.jsx)(ie.default,{fill:r.tintColor,style:r,viewBox:"0 0 512 512",children:k.Platform.select({ios:(0,L.jsx)(ie.Path,{d:"M432 176H80c-8.8 0-16-7.2-16-16s7.2-16 16-16h352c8.8 0 16 7.2 16 16s-7.2 16-16 16zM432 272H80c-8.8 0-16-7.2-16-16s7.2-16 16-16h352c8.8 0 16 7.2 16 16s-7.2 16-16 16zM432 368H80c-8.8 0-16-7.2-16-16s7.2-16 16-16h352c8.8 0 16 7.2 16 16s-7.2 16-16 16z"}),android:(0,L.jsx)(ie.Path,{d:"M64 384h384v-42.666H64V384zm0-106.666h384v-42.667H64v42.667zM64 128v42.665h384V128H64z"})})})})}var vi={width:24,height:24,marginHorizontal:16,marginVertical:12};function yi(e){var t=e.onPress,n=e.testID,i=e.style,r=k.StyleSheet.flatten([mi,i]);return(0,L.jsx)(re.T,{onPress:t,testID:n,borderless:!0,children:(0,L.jsx)(ie.Svg,{fill:r.tintColor,style:r,viewBox:"0 0 512 512",children:k.Platform.select({ios:(0,L.jsx)(ie.Path,{d:"M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z"}),android:(0,L.jsx)(ie.Path,{d:"M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"})})})})}var mi=k.Platform.select({ios:{width:40,height:40,marginHorizontal:8},android:{width:24,height:24,marginHorizontal:16}});function bi(e){var t=e.testID,n=e.style,i=k.StyleSheet.flatten([wi,n]);return(0,L.jsx)(ie.default,{testID:t,fill:i.tintColor,style:i,viewBox:"0 0 512 512",children:k.Platform.select({ios:(0,L.jsx)(ie.Path,{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"}),android:(0,L.jsx)(ie.Path,{d:"M427 234.625H167.296l119.702-119.702L256 85 85 256l171 171 29.922-29.924-118.626-119.701H427v-42.75z"})})})}var wi=k.Platform.select({ios:{height:31,width:31,marginRight:-3},android:{height:24,width:24,margin:3}}),ki=function(e){var t=e.errorMessage;return(0,L.jsx)(k.View,{children:(0,L.jsx)(k.Text,{style:{color:"red"},children:t})})},Si=function(e){return(0,L.jsx)(k.View,{style:[e.style.container,{flex:1}],testID:e.page.name,children:(0,L.jsx)(T.R,{backend:e.form.getStoreBackend(),children:(0,L.jsx)(x.E.Provider,{value:ki,children:e.children})})})},xi=(function(e){(0,g.default)(n,e);var t=fe(n);function n(e){var i;(0,y.default)(this,n),(i=t.call(this,e)).onDidFocus=function(){i.props.screenProps.setScreenContext(i.page,i.form),(0,C.e)(Ee()).dispatch(I.DrawerActions.closeDrawer())};var r=e.navigation.state.params,a=r.formId,o=r.pageName,s=r.title,u=r.formParameters;return i.page=(0,C.e)(We.findPage(o)),i.form=Le(a,o,s,u),i}return(0,m.default)(n,[{key:"componentDidMount",value:function(){this.props.screenProps.setScreenContext(this.page,this.form)}},{key:"componentWillUnmount",value:function(){!(function(e){delete Me[e]})(this.props.navigation.state.params.formId)}},{key:"render",value:function(){var e,t;return(0,L.jsxs)(k.View,{style:{flex:1},testID:"$screen",children:[(0,L.jsx)(E.NavigationEvents,{onDidFocus:this.onDidFocus}),(0,L.jsx)(k.StatusBar,{backgroundColor:null==(e=this.page.style.statusBar)?void 0:e.backgroundColor,barStyle:null==(t=this.page.style.statusBar)?void 0:t.barStyle}),(0,L.jsx)(Si,{page:this.page,form:this.form,style:this.page.style,children:this.page.content.$$page()})]})}}]),n})($.Component);function ji(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,ne.createStackNavigator)({PopupPage:xi},{initialRouteName:"PopupPage",defaultNavigationOptions:Object.assign({animationEnabled:e},"ios"===k.Platform.OS?{headerStatusBarHeight:0}:{})});return t.router=gi(t.router),t}function Oi(e,t){return function(n){var i=n.focused,r=Object.assign({},e.icon,i?e.selectedIcon:{}),a=r.color,o=r.size,s=(0,c.default)(r,ce);return(0,L.jsx)(k.View,{style:s,children:(0,L.jsx)(oe.Icon,{icon:t,color:a,size:o})})}}function Ci(e,t){return function(n){var i=n.focused;return(0,L.jsx)(k.Text,{numberOfLines:1,style:Object.assign({textAlign:"center",marginBottom:1.5},e.label,i?e.selectedLabel:{}),children:t})}}function Pi(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,ne.createStackNavigator)({DefaultPage:xi},{initialRouteName:"DefaultPage",initialRouteParams:e,defaultNavigationOptions:{animationEnabled:t}});return n.router=gi(n.router),n}function Ei(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=n.bottomBar,a=void 0===r?{}:r;return(0,ae.createBottomTabNavigator)(e.getBottomBarItems().sort((function(e,t){return e.index-t.index})).reduce((function(t,n,r){var o,s=null!=(o=e.findPage(n.pageName))?o:e.findPage(He);return Object.assign({},t,(0,u.default)({},r.toString(),{screen:Pi($e(s,e.getBottomBarItems(),n.title),i),navigationOptions:Object.assign({title:n.caption,tabBarIcon:Oi(a,n.icon),tabBarLabel:Ci(a,n.caption),tabBarTestID:`bottomBarItem$${n.caption}`},n.pageName===He?{tabBarOnPress:function(){},tabBarOnLongPress:function(){}}:{})}))}),{}),{initialRouteName:t.inBottomBar?t.bottomBarIndex.toString():"0",tabBarOptions:{adaptive:!1,style:a.container,keyboardHidesTabBar:!1},navigationOptions:{animationEnabled:i,headerShown:!1,headerTitle:(0,j.t)("mxui.widget.native","Navigation.back")}})}function Ai(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.withBottomBar&&!t.inBottomBar)throw new R.D("The bottom bar is enabled on the home page, but the page is either not included in the bottom bar or not visible for your current user role");var r=e.getBottomBarItems(),a=r.map((function(t){return e.findPage(t.pageName)})).filter(Ti);if(a.some((function(e){return"Popup"===e.navigation.type})))throw new C.A("Pages with a pop-up layout can't be included in the bottom bar");if(a.some((function(e){return!e.navigation.showBottomBar})))throw new C.A("If the page is included in the bottom bar it's layout must show the bottom bar");var o=t.withBottomBar?"BottomBarNavigator":"DefaultPageWithoutBottomBar",s=(0,ne.createStackNavigator)(Object.assign({DefaultPageWithoutBottomBar:xi},r.length>0?{BottomBarNavigator:Ei(e,t,n,i)}:void 0),{initialRouteName:o,initialRouteKey:o,initialRouteParams:t,defaultNavigationOptions:{animationEnabled:i}});return s.router=gi(s.router),s}function Ti(e){return null!=e}function Ni(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(0,I.createDrawerNavigator)({SideBarStack:Ai(e,t,n,i)},{initialRouteName:"SideBarStack",contentComponent:function(e){var t,n=e.screenProps.getScreenContext();return n.page.navigation.sidebar?(0,L.jsx)(T.R,{backend:n.form.getStoreBackend(),children:(0,L.jsx)(k.View,{style:[null==(t=n.page.style.sidebar)?void 0:t.container,{flex:1}],children:n.page.content.$$sidebar()})},n.form.getName()):null},backBehavior:"history",defaultNavigationOptions:function(e){var t=e.screenProps.getScreenContext();return{animationEnabled:i,drawerLockMode:t.page.navigation.sidebar?"unlocked":"locked-closed"}}})}xi.navigationOptions=function(e){var t,n,i;if(!e.navigation.state.params)return{};var r=e.navigation.state.params,a=r.formId,o=r.pageName,s=r.title,u=r.formParameters,c=r.headerBackTitle,l=r.hideBackButton,d=(0,C.e)(We.findPage(o)),f=Le(a,o,s,u);return{title:s,headerMode:k.Platform.select({android:"screen",ios:"float"}),headerShown:void 0!==d.navigation.headerRegionName,headerStyle:null==(t=d.style.header)?void 0:t.container,headerStyleInterpolator:k.Platform.select({ios:ne.HeaderStyleInterpolators.forUIKit,android:ne.HeaderStyleInterpolators.forFade}),headerTitle:function(e){return(0,L.jsx)(ne.HeaderTitle,Object.assign({},e,{testID:`${d.name}$headerTitle`}))},headerTitleContainerStyle:{maxWidth:k.Dimensions.get("window").width-175},headerTitleStyle:null==(n=d.style.header)?void 0:n.title,headerBackTitle:c,headerBackAllowFontScaling:!0,headerBackTitleStyle:null==(i=d.style.header)?void 0:i.backButtonText,headerTruncatedBackTitle:(0,j.t)("mxui.widget.native","Navigation.back"),headerBackImage:function(){var e;return(0,L.jsx)(bi,{testID:`${d.name}$goBack`,style:null==(e=d.style.header)?void 0:e.backButtonIcon})},headerLeft:"Popup"===d.navigation.type&&e.navigation.isFirstRouteInParent()?function(){var e;return(0,L.jsx)(yi,{onPress:function(){return Ne(1)},testID:`${d.name}$closePopup`,style:null==(e=d.style.header)?void 0:e.backButtonIcon})}:d.navigation.sidebar?function(){var e;return(0,L.jsx)(pi,{onPress:Fe,testID:`${d.name}$toggleSidebar`,style:null==(e=d.style.header)?void 0:e.backButtonIcon})}:l?function(){return null}:void 0,headerRight:void 0!==d.navigation.headerRegionName?function(){return(0,L.jsx)(T.R,{backend:f.getStoreBackend(),children:d.content[d.navigation.headerRegionName]()})}:void 0}};var Bi,Di=O.L.get().getLogger(),Ii={activeMessage:void 0},Mi=(function(e){(0,g.default)(n,e);var t=fe(n);function n(){var e;return(0,y.default)(this,n),(e=t.apply(this,arguments)).state=Ii,e.showDelay=500,e.messageQueue=[],e.messageId=0,e}return(0,m.default)(n,[{key:"componentDidMount",value:function(){var e=this;this.backHandler=k.BackHandler.addEventListener("hardwareBackPress",(function(){return void 0!==e.state.activeMessage}))}},{key:"componentWillUnmount",value:function(){this.hide(),this.backHandler&&this.backHandler.remove()}},{key:"render",value:function(){var e,t,n;return this.state.activeMessage?(0,L.jsx)(k.View,{style:[Li.background,this.props.style.background],children:(0,L.jsxs)(k.View,{style:[Li.container,this.props.style.container],children:[(0,L.jsx)(k.ActivityIndicator,{style:this.props.style.activityIndicator,color:null==(e=this.props.style.activityIndicator)?void 0:e.color,size:null!=(t=null==(n=this.props.style.activityIndicator)?void 0:n.size)?t:Li.activityIndicator.size}),this.state.activeMessage.text?(0,L.jsx)(k.Text,{style:this.props.style.text,children:this.state.activeMessage.text}):null]})}):null}},{key:"add",value:function(e,t){var n=this.messageId++,i={id:n,text:e,immediate:t};return this.messageQueue.push(i),1===this.messageQueue.length?this.show(i):t&&this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=void 0,this.show(i)),n}},{key:"remove",value:function(e){this.messageQueue.some((function(t){return t.id===e}))?(this.removeFromQueue(e),this.state.activeMessage&&this.state.activeMessage.id===e&&this.messageQueue[0]?this.showImmediate(this.messageQueue[0]):0===this.messageQueue.length&&this.hide()):Di.error(`mx.ui.hideProgress: progress id ${e} not found`)}},{key:"show",value:function(e){var t=this;e.immediate?this.showImmediate(e):this.showTimer=setTimeout((function(){return t.showImmediate(e)}),this.showDelay)}},{key:"showImmediate",value:function(e){this.showTimer=void 0,this.setState({activeMessage:e})}},{key:"hide",value:function(){this.showTimer?(clearTimeout(this.showTimer),this.showTimer=void 0):this.setState(Ii)}},{key:"removeFromQueue",value:function(e){var t=this.messageQueue.findIndex((function(t){return t.id===e}));this.messageQueue.splice(t,1)}}]),n})($.Component),Li={background:{position:"absolute",left:0,top:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.001)"},container:{alignItems:"center"},activityIndicator:{size:"large"}},$i=(function(e){(0,g.default)(n,e);var t=fe(n);function n(e){var i,r;(0,y.default)(this,n),(r=t.call(this,e)).isHotReloadEnabled=function(){return r.props.hotReloadService.isHotReloadFlagSet()},r.getScreenContext=function(){return r.state.screenContext},r.setScreenContext=function(e,t){return r.setState((function(){return{screenContext:{page:e,form:t}}}))},r.onNavigationStateChange=function(e,t,n){r.navigationLogger.trace(`Navigation stack was changed with action: ${JSON.stringify(n,null,2)}. New navigation state: ${JSON.stringify(t,null,2)}`)};var a=(0,C.e)(We.findPage(e.homePage)),o=Le((0,A.n)("form"),a.name,a.content.$$title,{}),s=$e(a,We.getBottomBarItems(),null==(i=We.findBottomBarItems(a.name)[0])?void 0:i.title),u=e.applicationConfig,c=u.navigationStyle,l=u.animationEnabled;return r.navigationContainer=(0,E.createAppContainer)((function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=(0,ne.createStackNavigator)({SideBarNavigator:Ni(e,t,n,i),PopupNavigator:ji(i)},{initialRouteName:"SideBarNavigator",initialRouteKey:"SideBarNavigator",mode:"modal",headerMode:"none",defaultNavigationOptions:Object.assign({animationEnabled:i,cardOverlayEnabled:!0},"ios"===k.Platform.OS?ne.TransitionPresets.ModalPresentationIOS:{})});return r.router=gi(r.router),r})(We,s,c,l)),r.persistNavigationState=(function(){var e=(0,d.default)((function*(e){if(r.props.devMode)return(t=(0,d.default)((function*(e,t){return e.setNavigationState(t)})),function(e,n){return t.apply(this,arguments)})(r.props.hotReloadService,e);var t}));return function(t){return e.apply(this,arguments)}})(),r.loadNavigationState=(0,d.default)((function*(){return(yield r.isHotReloadEnabled())?li(r.props.hotReloadService):void 0})),r.navigationLogger=O.L.get().getLogger(O.a.Navigation),r.state={screenContext:{page:a,form:o}},r}return(0,m.default)(n,[{key:"render",value:function(){var e,t=this.navigationContainer,n=this.props.applicationConfig.navigationStyle;return(0,L.jsxs)(k.TopLevelView,{style:{flex:1},children:[(0,L.jsx)(t,{ref:Pe,persistNavigationState:this.persistNavigationState,loadNavigationState:this.loadNavigationState,onNavigationStateChange:this.onNavigationStateChange,screenProps:{getScreenContext:this.getScreenContext,setScreenContext:this.setScreenContext}}),(0,L.jsx)(Mi,{style:null!=(e=n.progressOverlay)?e:{},ref:Je})]})}}]),n})($.Component);function _i(){return void 0!==M.M.CODE_PUSH_KEY&&0!==M.M.CODE_PUSH_KEY.trim().length}function Ri(){return Ui.apply(this,arguments)}function Ui(){return Ui=(0,d.default)((function*(){return void 0===se.default?(O.L.get().getLogger(O.a.AppCenter).debug("The app will not check for AppCenter OTA because there is no native module."),!0):(yield(0,d.default)((function*(){var e=O.L.get().getLogger(O.a.AppCenter);if(_i()){e.debug("The app has a CodePush key. Checking for AppCenter OTA update.");var t=new B.a;return se.default.sync({updateDialog:{appendReleaseDescription:!0},rollbackRetryOptions:{delayInHours:.004,maxRetryAttempts:5}},(function(n){switch(n){case se.default.SyncStatus.UP_TO_DATE:e.trace(`The app is already up-to-date. (Check took ${t.measure()} milliseconds)`);break;case se.default.SyncStatus.DOWNLOADING_PACKAGE:void 0===Bi&&(Bi=Ke("Downloading...",!1),e.trace("Downloading AppCenter OTA update"),t.reset());break;case se.default.SyncStatus.INSTALLING_UPDATE:e.debug(`Downloaded OTA update in ${t.measure()} milliseconds.`),t.reset();break;case se.default.SyncStatus.UPDATE_INSTALLED:e.debug(`AppCenter OTA has been installed in ${t.measure()} milliseconds. The app will restart.`),k.Alert.alert("Update Installed","The new update is installed",[{text:"continue"}]);break;case se.default.SyncStatus.UNKNOWN_ERROR:e.warn("An error occurred during AppCenter OTA update. The app will start with the existing bundle."),Fi()}}),(function(t){e.trace(`OTA: ${Math.floor(t.receivedBytes/t.totalBytes*100)}%`),t.receivedBytes>=t.totalBytes&&Fi()})).catch((function(e){Fi()}))}e.debug("The app does not have a CodePush key.")}))())!==se.default.SyncStatus.UPDATE_INSTALLED?Promise.resolve():(0,B.n)()})),Ui.apply(this,arguments)}function Fi(){void 0!==Bi&&(Ye(Bi),Bi=void 0)}var Gi=k.NativeModules.NativeOtaModule,Hi=1e4;function zi(e){var t,n=e.applicationConfig,i=n.checkForOTAUpdates,r=n.deploymentID,a=n.languages,o=n.systemTexts,s=n.getBottomBarItems,u=n.registerPages,c=n.homePages,l=n.navigationStyle,f=n.loggingEnabled,h=n.encryptionDbEnabled,g=n.encryptLocalFiles,p=(0,$.useState)(),v=(0,b.default)(p,2),y=v[0],m=v[1],w=(0,$.useRef)(),S=(0,$.useRef)();return(0,$.useEffect)((function(){return(0,d.default)((function*(){var t,n=new B.a,l=O.L.get(),p=l.getLogger(O.a.Startup),v=`${k.Platform.OS} ${k.Platform.Version}`,y=i?r:yield(0,d.default)((function*(){var e,t,n;return void 0!==se.default&&(n=null==(e=yield se.default.getUpdateMetadata())?void 0:e.label),`${ue.default.getVersion()}-${ue.default.getBuildNumber()}-${null!=(t=n)?t:"default"}`}))(),b=!0===M.M.IS_DEVELOPER_APP,x=`Starting app on ${v} using bundle with deployment id: ${y}.\nMX Client version is 10.6.1.24365.\nMendix OTA is ${i?"enabled":"disabled"}.\nDeveloper app: ${b?"yes":"no"}.`;p.debug(x),b||(i?yield(t=(0,d.default)((function*(e){var t=O.L.get().getLogger(O.a.OTA),n=new B.a;if(Gi){var i,r="checking";try{n.reset();var a=M.M.RUNTIME_URL,o=M.M.NATIVE_DEPENDENCIES,s=M.M.NATIVE_BINARY_VERSION,u=yield(i=(0,d.default)((function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Promise.race([e(),new Promise((function(e,i){return setTimeout((function(){return i(new B.C(`OTA request (${n.length>0?"'"+n+"' ":""}) has timed out after ${t} ms.`))}),t)}))])})),function(e,t){return i.apply(this,arguments)})((function(){return(0,B.x)(k.Platform.OS,(0,B.y)(a),o,s)}),5e3,"get_ota_info"),c=u.otaEnabled,l=u.deploymentID,f=u.bundlePath,h=u.satisfiesNativeDependencies,g=u.satisfiesNativeBinaryVersion;if(t.debug(`Checked for a new OTA update in ${n.measure()} milliseconds.`),c&&l!==e){if(!h)return void t.warn(`There is a new OTA bundle ${l}, but it has non-matching native dependencies. The OTA will be skipped. Please release a new native app to receive OTA updates.`);if(!g)return void t.warn("[OTA] OTA is skipped. Native binary version missmatch.");r="downloading",n.reset();var p=`${a}${f}`,v=(yield Gi.download({url:p})).otaPackage,y=n.measure();t.log(y.ms>Hi?"warning":"debug",`Downloaded OTA bundle in ${y} milliseconds.`),r="installing",n.reset(),yield Gi.deploy({otaDeploymentID:l,extractionDir:l,otaPackage:v}),t.debug(`OTA bundle ${l} installed in ${n.measure()} milliseconds. Restarting the app.`),yield kn.reload()}else c||t.debug("OTA disabled on the server. The app will start with the existing bundle.")}catch(e){t.log(e instanceof B.C?"debug":"warning",`An error occurred during ${{checking:"checking for a new",downloading:"downloading the new",installing:"installing the new"}[r]} OTA bundle. The app will start with the existing bundle.`,e)}}else t.warn("OTA is enabled but the current version of the application does not support the feature. Please update the app\u2019s native template.")})),function(e){return t.apply(this,arguments)})(r):yield Ri()),w.current=yield oi(e.nativeUI,y,a,o,e.hotReloadService,l,f,h,g),(function(e,t,n){e().filter((function(e){return void 0===e.visibleForRoles||n.hasSomeRole(e.visibleForRoles)})).map((function(e,t){return e.index=t,e})).forEach(We.registerBottomBarItem),t()})(s,u,w.current);var j=(function(e,t){var n=e.roleBasedHomePages.find((function(e){return e.role&&t.hasSomeRole([e.role])}));return null!=n?n:e.defaultHomePage})(c,(0,C.e)(w.current));switch(j.type){case"page":p.debug(`Showing home page ${j.page}`),m(j.page),Vi(S);break;case"nanoflow":m(ze);var P=j.nanoflow.name;(yield e.hotReloadService.isHotReloadFlagSet())?(p.debug(`Skipping executing the startup nanoflow ${P} because the application started after a hot reload. Please restart the app if you want to execute it.`),Vi(S)):(p.debug(`Executing startup nanoflow "${P}"`),yield _.n.execute(j.nanoflow,[]))}p.debug(`Startup completed in ${n.measure()} milliseconds.`)}))().catch(Ut),function(){void 0!==S.current&&(cancelAnimationFrame(S.current),S.current=void 0)}}),[]),(0,L.jsx)(L.Fragment,{children:y?(0,L.jsx)($i,{hotReloadService:e.hotReloadService,applicationConfig:e.applicationConfig,homePage:y,devMode:qi(w.current)}):(0,L.jsx)(Mi,{style:null!=(t=l.progressOverlay)?t:{},ref:Je})})}function qi(e){return!0===(null==e?void 0:e.getConfig("isDevModeEnabled"))&&!1!==M.M.IS_DEVELOPER_APP}function Vi(e){e.current=requestAnimationFrame((function(){return null==ke?void 0:ke.hide()}))}var Qi=O.L.get().getLogger(),Wi=(function(){function e(){(0,y.default)(this,e),this.reloadStore=(0,M.a)("hot-reload"),this.pageStateStore=(0,M.a)("pageState")}var t,n,i,r,a;return(0,m.default)(e,[{key:"setHotReloadFlag",value:(a=(0,d.default)((function*(){yield this.reloadStore.set("reload")})),function(){return a.apply(this,arguments)})},{key:"isHotReloadFlagSet",value:(r=(0,d.default)((function*(){return void 0!==(yield this.reloadStore.get())})),function(){return r.apply(this,arguments)})},{key:"clearHotReloadFlag",value:(i=(0,d.default)((function*(){yield this.reloadStore.remove()})),function(){return i.apply(this,arguments)})},{key:"setNavigationState",value:function(e){this.navigationState=e}},{key:"loadPageState",value:(n=(0,d.default)((function*(){var e=this;(0,w.k)((function(t){return e.errorHandler(t)}));var t=yield this.pageStateStore.get();try{return JSON.parse(t)}catch(e){return}})),function(){return n.apply(this,arguments)})},{key:"savePageState",value:(t=(0,d.default)((function*(){var e={cache:mx.data.dehydrateCache(),navState:JSON.stringify(this.navigationState)};yield this.pageStateStore.set(JSON.stringify(e))})),function(){return t.apply(this,arguments)})},{key:"errorHandler",value:function(e){Qi.error(e.message,e.stack),k.Alert.alert("Error","An error has occurred that might have been caused by fast reload. Reload the app to fix it.",[{text:"Cancel",style:"cancel"},{text:"Reload app",onPress:function(){return mx.reload()}}])}}]),e})();function Ji(e){var t=(function(e){return(function(t){(0,g.default)(i,t);var n=fe(i);function i(){var e;return(0,y.default)(this,i),(e=n.apply(this,arguments)).hotReloadService=new Wi,e.nativeUI=new et,e}return(0,m.default)(i,[{key:"componentDidCatch",value:function(e,t){Ut(e)}},{key:"render",value:function(){return(0,L.jsx)(zi,{applicationConfig:e,hotReloadService:this.hotReloadService,nativeUI:this.nativeUI})}}]),i})($.Component)})(e);k.AppRegistry.registerComponent("App",(function(){return e=t,_i()?(0,se.default)({checkFrequency:se.default.CheckFrequency.MANUAL})(e):e;var e}))}function Ki(){return Ki=(0,d.default)((function*(e){console.reportErrorsAsExceptions=!1,(0,O.r)(),O.L.get().setLogFilter((function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r"},visibleForRoles:["Customer"]},{pageName:"PersonalFinance.Savings_and_SavingGoals",caption:(0,t.t)(["Savings"]),icon:{type:"image",iconUrl:"\r\n\x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\r\n\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},visibleForRoles:["Customer"]},{pageName:"PersonalFinance.Transact",caption:(0,t.t)(["Transact"]),icon:{type:"image",iconUrl:""},visibleForRoles:["Customer"]},{pageName:"PersonalFinance.Customer_Account_Native",caption:(0,t.t)(["Account"]),icon:{type:"image",iconUrl:""},visibleForRoles:["Customer"]}]},registerPages:function(){t.NativeUI.registerPage("PersonalFinance.Login_SetUpAdditionalAuthentication",(function(){return r(d[4])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Login_AdditionalAuthentication",(function(){return r(d[5])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Home_Native",(function(){return r(d[6])}),{sidebar:!1,showBottomBar:!0,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Savings_and_SavingGoals",(function(){return r(d[7])}),{sidebar:!1,headerRegionName:"placeholder$Header",showBottomBar:!0,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transact",(function(){return r(d[8])}),{sidebar:!1,headerRegionName:"placeholder$Header",showBottomBar:!0,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Customer_Account_Native",(function(){return r(d[9])}),{sidebar:!1,showBottomBar:!0,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.SavingGoal_Manage",(function(){return r(d[10])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transaction_Friend_Details",(function(){return r(d[11])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transaction_Savings_Details",(function(){return r(d[12])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transaction_Details",(function(){return r(d[13])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transactions_per_Account",(function(){return r(d[14])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Accounts",(function(){return r(d[15])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Friends_Overview",(function(){return r(d[16])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.SavingGoal_NewEdit",(function(){return r(d[17])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Customer_NewSplitBill",(function(){return r(d[18])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Transaction_NewEdit",(function(){return r(d[19])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.BankAccount_All",(function(){return r(d[20])}),{sidebar:!1,headerRegionName:"placeholder$Header",showBottomBar:!1,type:"Popup"}),t.NativeUI.registerPage("PersonalFinance.Transaction_NewCashTransaction",(function(){return r(d[21])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.RecentActivity",(function(){return r(d[22])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Send_Money",(function(){return r(d[23])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Request_Money",(function(){return r(d[24])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Login",(function(){return r(d[25])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Intro_Anonymous",(function(){return r(d[26])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Register_PersonalDetails",(function(){return r(d[27])}),{sidebar:!1,showBottomBar:!1,type:"Default"}),t.NativeUI.registerPage("PersonalFinance.Home_Native_Non_Accessible",(function(){return r(d[28])}),{sidebar:!1,showBottomBar:!1,type:"Default"})},animationEnabled:!0,deploymentID:"638567308812542258",checkForOTAUpdates:!1,loggingEnabled:!1,encryptionDbEnabled:!1,encryptLocalFiles:!1,screenNavigationTransition:"SystemDefault",popupNavigationTransition:"SystemDefault",applyScreenTransition:!1,hermesEnabled:!1})}),0,[1,1106,1235,1242,1245,1305,1313,1377,1386,1401,1407,1415,1416,1417,1465,1492,1498,1505,1522,1536,1541,1544,1547,1549,1557,1559,1565,1609,1618]); +__d((function(e,t,n,r,i,a,o){var u=t(o[0]);Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"Big",{enumerable:!0,get:function(){return G.Big}}),a.NativeUI=void 0,Object.defineProperty(a,"addEnumerations",{enumerable:!0,get:function(){return j.a}}),Object.defineProperty(a,"asPluginWidget",{enumerable:!0,get:function(){return x.a}}),Object.defineProperty(a,"asPluginWidgets",{enumerable:!0,get:function(){return x.b}}),Object.defineProperty(a,"flatten",{enumerable:!0,get:function(){return C.f}}),a.hooks=void 0,a.startApp=function(e){return Bi.apply(this,arguments)},Object.defineProperty(a,"t",{enumerable:!0,get:function(){return E.a}});var s=u(t(o[1])),l=u(t(o[2])),c=u(t(o[3])),d=u(t(o[4])),f=u(t(o[5])),h=u(t(o[6])),p=u(t(o[7])),g=u(t(o[8])),v=u(t(o[9])),y=u(t(o[10])),m=u(t(o[11])),b=u(t(o[12])),k=u(t(o[13])),w=t(o[14]),S=de(t(o[15])),j=t(o[16]),x=t(o[17]),E=t(o[18]),O=t(o[19]),C=t(o[20]),A=t(o[21]),T=t(o[22]),$=t(o[23]),P=t(o[24]),I=t(o[25]),N=t(o[26]),D=t(o[27]),M=t(o[28]);t(o[29]);var B=t(o[30]),_=t(o[31]),R=t(o[32]),L=t(o[33]),U=t(o[34]),F=t(o[35]),G=de(t(o[36])),H=t(o[37]),z=t(o[38]),V=t(o[39]),q=t(o[40]),W=t(o[41]),J=t(o[42]),Q=t(o[43]),K=t(o[44]),X=t(o[45]),Y=t(o[46]),Z=u(t(o[47])),ee=t(o[48]),te=t(o[49]),ne=t(o[50]),re=t(o[51]),ie=de(t(o[52])),ae=t(o[53]),oe=t(o[54]),ue=t(o[55]);t(o[56]),t(o[57]),t(o[58]),t(o[59]),t(o[60]),t(o[61]),t(o[62]),t(o[63]),t(o[64]),t(o[65]),t(o[66]),t(o[67]),t(o[68]),t(o[69]),t(o[70]);var se=["color","size"],le=["animationEnabled","home","navigationStyle"];function ce(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(ce=function(e){return e?n:t})(e)}function de(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=ce(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function fe(e,t,n){return t=(0,v.default)(t),(0,p.default)(e,he()?Reflect.construct(t,n||[],(0,v.default)(e).constructor):t.apply(e,n))}function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(he=function(){return!!e})()}function pe(){var e=(0,q.g)();return[e.getUserId(),e.getSessionObjectId()]}function ge(e,t){var n=(0,q.g)(),r=[n.getUserId(),n.getSessionObjectId()],i=e.getAllObjects(),a=(0,A.f)(i,t.concat(r));return(0,A.g)(e,a)}function ve(e,t,n){var r=new Set,i=e.getAllObjects(),a=(0,C.p)((function(t){var r,i=e.getObject(t);return null!=(r=null==i?void 0:i.metaData.needsReachableState[n])&&r}),t),o=(0,k.default)(a,2),u=o[0],s=o[1];if(0!==u.length){var l=(0,q.g)(),c=[l.getUserId(),l.getSessionObjectId()];ye(r,(0,A.f)(i,u.concat(c)))}var d=i.filter((function(t){return e.isNew(t.getGuid())})),f=s.filter((function(t){return e.isNew(t)}));switch(ye(r,s),n){case"commit":ye(r,(0,A.f)(d,f)),ye(r,(0,A.b)(e,i,s));break;case"delete":ye(r,(0,A.a)(i,s));break;case"rollback":ye(r,s),ye(r,(0,A.a)(i,f))}return(0,A.g)(e,Array.from(r))}function ye(e,t){t.forEach((function(t){return e.add(t)}))}function me(e,t,n){var r=n.commits,i=void 0===r?[]:r,a=n.deletes,o=void 0===a?[]:a;t.forEach((function(t){var n=t.getGuid();if(i.includes(n)){var r=e.getObject(n);if(!r)throw new Error("inconsistent response: committed object is missing from response and cache");t.resetFromJSON(r.jsonData)}else o.includes(n)&&t.markAsUnavailable()}))}function be(e,t){(0,w.g)().includes(t)||e.removeObjectKeepChanges(t)}function ke(e,t,n,r){if(0===Object.keys(t).length)throw new C.A("No updates specified.");var i=[],a=[];Object.entries(t).forEach((function(t){var n,r=(0,k.default)(t,2),o=r[0],u=r[1];a.push(`"${(0,A.t)(o)}" = ?`),i.push((0,A.r)(u,"guid"===o?"String":(0,C.e)(null==(n=e.attributes[o])?void 0:n.type)))}));var o=(0,Y.toUserScopedName)((0,A.t)(e.name)),u=`WHERE ${o}.[${(0,A.t)(n)}] = ?`;return[`UPDATE ${o} SET ${a.join(", ")} ${u}`,[].concat(i,[(0,A.c)(r)])]}var we,Se,je,xe,Ee,Oe=S.NativeModules.MendixSplashScreen,Ce="Blank",Ae={content:{$$page:function(){return null},$$sidebar:function(){return null},$$style:[],$$title:"",$$parameters:[]},navigation:{sidebar:!1,showBottomBar:!1,type:"Default"},style:{}},Te=new Map([[Ce,Object.assign({},Ae,{name:Ce,navigation:Object.assign({},Ae.navigation,{showBottomBar:!0}),parameters:[]})],["BlankPagePlaceholder",Object.assign({},Ae,{name:"BlankPagePlaceholder",parameters:[]})]]),$e=[],Pe=[],Ie=function(e){if(Te.has(e))return Te.get(e);var t=$e.find((function(t){return t.name===e}));if(t){var n={name:t.name,content:t.page(),navigation:t.navigation,style:(0,C.f)(t.page().$$style),parameters:t.page().$$parameters};return Te.set(t.name,n),n}},Ne=function(e,t,n){0===Pe.length&&(n.showBottomBar=!1),$e.push({name:e,page:t,navigation:n})},De=function(e){return Pe.push(e)},Me=function(){return Pe},Be=Ie,_e=function(e){return Pe.filter((function(t){return t.pageName===e}))},Re=function(e){we=e},Le=function(){return Ie(we)},Ue=function(e,t,n){e().filter((function(e){return void 0===e.visibleForRoles||n.hasSomeRole(e.visibleForRoles)})).map((function(e,t){return e.index=t,e})).forEach(De),t()},Fe=(function(){return(0,b.default)((function e(t){(0,m.default)(this,e),this.place=t,this.listeners={},this.suspended=!1,this.title="",this.historyId=(0,T.n)("form")}),[{key:"getTitle",value:function(){return this.title}},{key:"setSuspend",value:function(e){this.suspended!==e&&(this.suspended=e)}},{key:"isSuspended",value:function(){return this.suspended}},{key:"publish",value:function(e,t,n){var r,i=(null!=(r=this.listeners[e])?r:[]).slice();!(function e(){i.length?(e.data=null==t?void 0:t.data,i.pop()(e,null!=n?n:w.h)):void 0!==t&&t()})()}},{key:"listen",value:function(e,t){var n,r=null!=(n=this.listeners[e])?n:[];return this.listeners[e]=r,r.push(t),function(){return r.splice(r.indexOf(t),1)}}},{key:"unlisten",value:function(e){e()}},{key:"close",value:function(e,t){this.closePage(1,!1).then(e).catch((function(e){t&&t(e)}))}},{key:"getHistoryId",value:function(){return this.historyId}}])})(),Ge=(function(e){function t(e){var n;return(0,m.default)(this,t),(n=fe(this,t,["content"])).storeBackend=e.storeBackend,n.historyId=e.historyId,n.name=e.name,n.title=e.title,n.pageContent=e.pageContent,n.formParameters=e.formParameters,n.setFormSuspended=function(e){return n.storeBackend.set(N.p,"formSuspended",$.r,e)},(0,w.a)((function(){n.storeBackend.set(N.p,"form",$.r,[(0,h.default)(n),n.getHistoryId()]),Object.keys(n.formParameters).forEach((function(e){n.storeBackend.set(e,"firstLoadDone",$.r,!1)})),n.setFormSuspended(!1)})),(0,P.g)(n.getParameterGuids()).then((function(e){return(0,w.a)((function(){return n.setFormParameters(e)}))}),(function(e){return(0,w.h)(e)})),n}return(0,y.default)(t,e),(0,b.default)(t,[{key:"getStoreBackend",value:function(){return this.storeBackend}},{key:"getName",value:function(){return this.name}},{key:"getParameterGuids",value:function(){return Object.values(this.formParameters).filter((function(e){return e}))}},{key:"setSuspend",value:function(e){var n=this;(0,g.default)((0,v.default)(t.prototype),"setSuspend",this).call(this,e),(0,w.a)((function(){return n.setFormSuspended(e)}))}},{key:"getSubmitObjects",value:function(){var e=(0,w.r)(this.storeBackend.getAllEntries$("editableObject")).map((function(e){var t=e.value;return t?(0,w.b)(t,void 0):void 0})).filter((function(e){return e}));return(0,C.b)(e)}},{key:"triggerValidation",value:(n=(0,f.default)((function*(){if(this.storeBackend.set(N.p,"validationRequest",$.r,(0,T.n)("validation_request")),yield(0,I.w)(0),(0,w.r)(this.storeBackend.getAllEntries$("isInvalid")).some((function(e){return e.value})))throw new I.V})),function(){return n.apply(this,arguments)})},{key:"getPlaceholderContent",value:function(e){var t;return null!=(t=this.pageContent[e])?t:null}},{key:"setFormParameters",value:function(e){var t=this;Object.keys(this.formParameters).forEach((function(n){var r=t.formParameters[n],i=e.find((function(e){return e.getGuid()===r})),a=n;t.storeBackend.set(a,"object",$.r,i?(0,w.c)(i):(0,w.d)()),t.storeBackend.set(a,"firstLoadDone",$.r,!0)}))}}]);var n})(Fe),He=new Error("request for lock canceled"),ze=(function(){return(0,b.default)((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He;(0,m.default)(this,e),this._value=t,this._cancelError=n,this._weightedQueues=[],this._weightedWaiters=[]}),[{key:"acquire",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise((function(n,r){e._weightedQueues[t-1]||(e._weightedQueues[t-1]=[]),e._weightedQueues[t-1].push({resolve:n,reject:r}),e._dispatch()}))}},{key:"runExclusive",value:function(e){var t,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t=this,n=void 0,i=function*(){var t=yield this.acquire(a),n=(0,k.default)(t,2),r=n[0],i=n[1];try{return yield e(r)}finally{i()}},new((r=void 0)||(r=Promise))((function(e,a){function o(e){try{s(i.next(e))}catch(e){a(e)}}function u(e){try{s(i.throw(e))}catch(e){a(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(o,u)}s((i=i.apply(t,n||[])).next())}))}},{key:"waitForUnlock",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise((function(n){e._weightedWaiters[t-1]||(e._weightedWaiters[t-1]=[]),e._weightedWaiters[t-1].push(n),e._dispatch()}))}},{key:"isLocked",value:function(){return this._value<=0}},{key:"getValue",value:function(){return this._value}},{key:"setValue",value:function(e){this._value=e,this._dispatch()}},{key:"release",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatch()}},{key:"cancel",value:function(){var e=this;this._weightedQueues.forEach((function(t){return t.forEach((function(t){return t.reject(e._cancelError)}))})),this._weightedQueues=[]}},{key:"_dispatch",value:function(){for(var e,t=this._value;t>0;t--){var n=null===(e=this._weightedQueues[t-1])||void 0===e?void 0:e.shift();if(n){var r=this._value,i=t;this._value-=t,t=this._value+1,n.resolve([r,this._newReleaser(i)])}}this._drainUnlockWaiters()}},{key:"_newReleaser",value:function(e){var t=this,n=!1;return function(){n||(n=!0,t.release(e))}}},{key:"_drainUnlockWaiters",value:function(){for(var e=this._value;e>0;e--)this._weightedWaiters[e-1]&&(this._weightedWaiters[e-1].forEach((function(e){return e()})),this._weightedWaiters[e-1]=[])}}])})();!(function(e){e.SideBar="SIDEBAR",e.SidebarDefault="SIDEBAR_DEFAULT",e.BottomBar="BOTTOM_BAR",e.Popup="POPUP",e.PopupDefault="POPUP_DEFAULT",e.Stack="STACK"})(Se||(Se={})),(function(e){e.BottomBar="BOTTOM_BAR",e.SideBar="SIDEBAR",e.Stack="STACK"})(je||(je={})),(function(e){e.DEFAULT="Default",e.POPUP="Popup"})(xe||(xe={}));var Ve=function(){return Ee},qe=new((function(){return(0,b.default)((function e(t){(0,m.default)(this,e),this._semaphore=new ze(1,t)}),[{key:"acquire",value:function(){return e=this,t=void 0,r=function*(){var e=yield this._semaphore.acquire();return(0,k.default)(e,2)[1]},new((n=void 0)||(n=Promise))((function(i,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function u(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,u)}s((r=r.apply(e,t||[])).next())}));var e,t,n,r}},{key:"runExclusive",value:function(e){return this._semaphore.runExclusive((function(){return e()}))}},{key:"isLocked",value:function(){return this._semaphore.isLocked()}},{key:"waitForUnlock",value:function(){return this._semaphore.waitForUnlock()}},{key:"release",value:function(){this._semaphore.isLocked()&&this._semaphore.release()}},{key:"cancel",value:function(){return this._semaphore.cancel()}}])})()),We=(function(){var e=(0,f.default)((function*(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:O.L.get().getLogger(O.a.Navigation)).trace("Dispatch goBack action. "+(e?`${e} pages will be closed after navigation`:"")),yield Ke((function*(e){1===e?yield D.CommonActions.goBack():e>1&&(yield M.StackActions.pop(e))})(e))}));return function(t){return e.apply(this,arguments)}})();function*Je(e,t,n,r){var i,a,o,u="SIDEBAR_DEFAULT"===(null==(i=Ve())||null==(a=i.getCurrentRoute())?void 0:a.name),s="Blank"===Xe();if(null!=r&&r.trace(`Generate goToPage action for stack ${t} with params: ${JSON.stringify(e)}`),n&&n>=0)yield M.StackActions.pop(n);else if(n&&n<0)return void(yield*(function*(e,t){var n=Boolean(null==(t=Le())?void 0:t.navigation.showBottomBar),r=_e(e.pageName).length>0;if(yield D.CommonActions.reset({index:0,routes:[{name:"SIDEBAR"}]}),yield D.CommonActions.navigate("SIDEBAR"),yield D.CommonActions.navigate(n?"BOTTOM_BAR":"SIDEBAR_DEFAULT",n?void 0:e),r)yield M.StackActions.popToTop();else if(n){var i=Me().findIndex((function(t){return t.pageName===e.pageName}));i>-1&&(yield D.CommonActions.navigate(i.toString())),yield D.CommonActions.navigate("STACK",e)}})(e));if("Default"===e.layout)switch(t){case je.Stack:u?(s&&(yield D.CommonActions.reset({index:1,routes:[{name:"STACK"}]})),yield D.CommonActions.navigate("STACK",Object.assign({},e,{pageName:e.pageName}))):yield M.StackActions.push("STACK",e);break;case je.SideBar:yield D.CommonActions.navigate("SIDEBAR",Object.assign({screen:"SIDEBAR_DEFAULT"},e));break;case je.BottomBar:if(Me().some((function(t){return t.pageName===e.pageName}))){var l=Me().findIndex((function(t){return t.pageName===e.pageName}));yield D.CommonActions.navigate("BOTTOM_BAR",Object.assign({screen:l.toString()},e)),yield D.CommonActions.setParams({title:e.title,fromNonBottomBar:!1})}else null!=(o=Le())&&o.navigation.showBottomBar?u?yield M.StackActions.push("BOTTOM_BAR",Object.assign({},e,{fromNonBottomBar:!0})):yield M.StackActions.push("STACK",e):yield M.StackActions.push("BOTTOM_BAR",Object.assign({},e,{fromNonBottomBar:!0}))}else yield M.StackActions.push("POPUP",e)}var Qe,Ke=(function(){var e=(0,f.default)((function*(e){if(void 0===Ve())throw new C.A;for(var t of e){var n;null==(n=Ve())||n.dispatch(t)}return S.InteractionManager.runAfterInteractions((function(){return qe.release()}))}));return function(t){return e.apply(this,arguments)}})(),Xe=function(){var e,t;return(null==(e=Ve())||null==(t=e.getCurrentRoute())?void 0:t.params).pageName},Ye=(function(e){function t(){return(0,m.default)(this,t),fe(this,t,arguments)}return(0,y.default)(t,e),(0,b.default)(t,[{key:"closePage",value:(n=(0,f.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;yield We(e)})),function(){return n.apply(this,arguments)})}]);var n})(Ge),Ze={},et=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Ze[e];return void 0===i&&(i=new Ye({storeBackend:new $.S,historyId:e,name:t,title:n,pageContent:{},formParameters:r}),Ze[e]=i),i},tt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{formId:arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,T.n)("form"),pageName:e.name,title:null!=t?t:e.content.$$title,formParameters:n,layout:e.navigation.type}},nt=function(){var e;(null==(e=Ve())?void 0:e.isReady())&&(0,C.e)(Ve()).dispatch(D.DrawerActions.toggleDrawer())};function rt(e){e&&(Qe=e)}function it(e,t,n){var r=(0,E.t)("mxui.widget.DialogMessage",e),i=null!=n?n:[{text:(0,E.t)("mxui.widget.DialogMessage","ok")}];S.Alert.alert(r,t,i)}var at,ot=a.NativeUI=(function(){return(0,b.default)((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.L.get();(0,m.default)(this,e),this.navigationLogger=t.getLogger(O.a.Navigation)}),[{key:"confirmation",value:function(e){e.handler()}},{key:"downloadFile",value:function(){}},{key:"showProgress",value:function(){var e,t;return e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Qe.add(e,t)}},{key:"hideProgress",value:function(e){var t;t=e,Qe.remove(t)}},{key:"toggleSidebar",value:function(){nt()}},{key:"openForm2",value:(t=(0,f.default)((function*(e,t,n,r,i,a){if(qe.isLocked()){var o=(0,C.e)(Be(e));return et((0,T.n)("form"),o.name,null!=n?n:o.content.$$title,t)}var u,s=Object.entries(t).filter((function(e){return(0,k.default)(e,2)[1]})).map((function(e){var t=(0,k.default)(e,2),n=t[0],r=t[1];return(0,w.s)({guid:r,tag:`currently loading page (${n})`})}));try{this.navigationLogger.debug(`Open a page with name: ${e} ${a?` Number of pages to close: ${a}`:""}`);var l=(0,C.e)(Be(e));return null!=Oe&&Oe.hide(),yield(u=(0,f.default)((function*(e,t,n,r,i){yield qe.acquire();var a=(0,T.n)("form"),o=et(a,e.name,null!=t?t:e.content.$$title,n),u=tt(e,t,n,a),s=e.navigation.showBottomBar||e.navigation.sidebar?e.navigation.sidebar?je.SideBar:je.BottomBar:je.Stack;return yield Ke(Je(u,s,r,i)),o})),function(e,t,n,r,i){return u.apply(this,arguments)})(l,n,t,a,this.navigationLogger)}finally{s.forEach((function(e){return e.unsubscribe()}))}})),function(e,n,r,i,a,o){return t.apply(this,arguments)})},{key:"getPageParameters",value:(e=(0,f.default)((function*(e){return(0,C.e)(Be(e)).parameters})),function(t){return e.apply(this,arguments)})},{key:"reload",value:function(){}},{key:"showLogin",value:function(){throw new A.N("showLogin")}},{key:"showMessage",value:function(e,t){it(e,t)}},{key:"exception",value:function(){throw new A.N("ui.exception")}}],[{key:"registerPage",value:function(e,t,n){Ne(e,t,n)}}]);var e,t})(),ut=S.NativeModules.MxConfiguration,st=["setstate-in-render","new NativeEventEmitter"],lt=["RCTBridge","Attempted to invoke"].concat(st);function ct(e){return e instanceof R.D?{type:"error",content:e.description}:e instanceof R.N?ct(e.innerError):e instanceof I.D||e instanceof I.a?{type:"error",content:e.message}:e instanceof I.C?{type:"error",content:(0,E.t)("mxui.sys.UI","connection_error")}:e instanceof A.S?{type:"info",content:(0,E.t)("mxui.sys.UI","sync_error")}:e instanceof I.S?{type:"error",content:402===e.status?(0,E.t)("mendix.signin","http402"):(0,E.t)("mxui.sys.UI","internal_error")}:{type:"error",content:(0,E.t)("mxui.sys.UI","internal_error")}}!(function(e){e.All="all",e.Partial="partial",e.None="none"})(at||(at={}));var dt="function"==typeof Buffer,ft="function"==typeof TextDecoder?new TextDecoder:void 0;"function"==typeof TextEncoder&&new TextEncoder;var ht,pt=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),gt=(ht={},pt.forEach((function(e,t){return ht[e]=t})),ht),vt=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,yt=String.fromCharCode.bind(String),mt="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},bt=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},kt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,wt=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return yt(55296+(t>>>10))+yt(56320+(1023&t));case 3:return yt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return yt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},St="function"==typeof atob?function(e){return atob(bt(e))}:dt?function(e){return Buffer.from(e,"base64").toString("binary")}:function(e){if(e=e.replace(/\s+/g,""),!vt.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,i="",a=0;a>16&255):64===r?yt(t>>16&255,t>>8&255):yt(t>>16&255,t>>8&255,255&t);return i},jt=dt?function(e){return mt(Buffer.from(e,"base64"))}:function(e){return mt(St(e).split("").map((function(e){return e.charCodeAt(0)})))},xt=dt?function(e){return Buffer.from(e,"base64").toString("utf8")}:ft?function(e){return ft.decode(jt(e))}:function(e){return St(e).replace(kt,wt)};function Et(e){switch(e){case"trace":return 0;case"debug":return 1;case"info":return 2;case"warning":return 3;case"error":return 4;case"critical":return 5}}function Ot(e){if("string"==typeof e)return e;if(e instanceof Error){var t,n=`${e.message} ${e.stack}`;return`${2===(null!=(t=n.match(/Nanoflow stack:/g))?t:[]).length?n.replace(/^Nanoflow stack:\n(.*\n)*$/m,""):n}`}if(null!=e&&e.outerHTML)return e.outerHTML;try{return JSON.stringify(e)}catch(e){return"[Unserializable data. See browser console for the details]"}}var Ct,At=(0,b.default)((function e(t){(0,m.default)(this,e),this.value=t})),Tt=(function(){return(0,b.default)((function e(){(0,m.default)(this,e),this.size=0}),[{key:"append",value:function(e){var t=new At(e);void 0===this.tail?this.head=this.tail=t:(this.tail.next=t,this.tail=t),this.size++}},{key:"prepend",value:function(e){if(0!==e.length){var t=e.reduce((function(e,t){var n=new At(t);return e.tail?(e.tail.next=n,e.tail=n):(e.head=n,e.tail=n),e}),{head:void 0,tail:void 0}),n=t.head,r=t.tail;void 0===this.head?(this.head=n,this.tail=r):(r.next=this.head,this.head=n),this.size+=e.length}}},{key:"removeFromStart",value:function(e){for(var t=new Array,n=0;n2?r-2:0),o=2;oi.bufferSize){var u=i.buffer.count()-i.bufferSize,s=i.buffer.removeFromStart(u)[0];i.discardedLogCount+=u,void 0===i.oldestDiscardedLogDate&&(i.oldestDiscardedLogDate=new Date(s.t))}var l=i.bufferedLogCountSinceLastSendAttempt>=i.bufferSize,c=void 0!==i.nextScheduledSendTimeStamp&&n>=i.nextScheduledSendTimeStamp;if(l||c){var d;if(i.bufferedLogCountSinceLastSendAttempt=0,i.scheduleNextSendDate(),i.discardedLogCount>0){var f=1===i.discardedLogCount?"has":"have",h=1===i.discardedLogCount?"":"s",p=i.buffer.first().t;d={t:Date.now(),m:`${i.discardedLogCount} log${h} ${f} been discarded between ${i.oldestDiscardedLogDate.toUTCString()} and ${new Date(p).toUTCString()}.`,n:"Client",l:Et("info")}}var g=i.buffer.count();i.sendLogs((d?[d]:[]).concat(i.buffer.toArray())).then((function(){i.buffer.removeFromStart(g),i.oldestDiscardedLogDate=void 0,i.discardedLogCount=0})).catch((function(e){}))}}},this.onAppStateChanged=function(e){("background"!==i.appStatus&&"inactive"!==i.appStatus&&"background"===e||"inactive"===e)&&i.saveLogs().then((function(){})),i.appStatus=e},this.sessionId=null!=t?t:Pt}return(0,b.default)(e,[{key:"enable",value:(r=(0,f.default)((function*(){"enabled"!==this.state&&(this.state="enabled",this.buffer.prepend(yield(0,f.default)((function*(){try{if(!(yield L.N.fileExists($t)))return[];var e=yield L.N.readJson($t);if(e)return e.logs;var t=(yield L.N.readAsDataURL($t)).split("base64,")[1];return JSON.parse((n=t,xt(bt(n.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))))).logs}catch(e){return[]}finally{yield(0,f.default)((function*(){(yield L.N.fileExists($t))&&(yield L.N.remove($t))}))()}var n}))()),this.scheduleNextSendDate())})),function(){return r.apply(this,arguments)})},{key:"disable",value:function(){this.state="disabled",this.buffer.clear()}},{key:"getState",value:function(){return this.state}},{key:"saveLogs",value:(n=(0,f.default)((function*(){if("disabled"!==this.state)try{yield L.N.writeJson({logs:this.buffer.toArray()},$t)}catch(e){}})),function(){return n.apply(this,arguments)})},{key:"sendLogs",value:(t=(0,f.default)((function*(e){if(!this.isSending&&0!==e.length)try{this.isSending=!0;var t=yield(0,I.c)(),n=e.filter((function(e){var n=e.l,r=e.n;return void 0!==t[r]&&t[r]<=n}));0!==n.length&&(yield(0,I.s)(this.sessionId,n))}finally{this.isSending=!1}})),function(e){return t.apply(this,arguments)})},{key:"scheduleNextSendDate",value:function(){this.nextScheduledSendTimeStamp=Date.now()+this.timeLimitMs}}],[{key:"getInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut.APP_SESSION_ID,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:36e5;return e.instance||(e.instance=new e(t,n,r)),e.instance}}]);var t,n,r})(),Nt="";var Dt=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Bt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_t=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Rt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Lt=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,Ut=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ft=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e instanceof Error?e.message:String(e),i=e instanceof Error?e.stack:(new Error).stack,a=R.n.generateCallStackOfExecutingNanoflows().map((function(e,t){var n=(0,k.default)(e,2);return`Nanoflow ${t+1}: ${n[0]}\nStack:\n${n[1]}`})).join("\n\n"),o=Xe(),u=`${r}\n${a?`\nNanoflows running:\n${a}\n`:""}${o?`\nCurrent page: ${o}\n`:""}`;Ht.log("error",`${u}\nStack:\n${i}`);var s=Gt.getLogFilter();Gt.setLogFilter((function(){return!1}));try{var l=new Error(u);l.stack=i,zt(l,n&&!1)}finally{Gt.setLogFilter(s)}var c=ct(e),d=c.type,f=c.content,h=It.getInstance();(n&&"enabled"===h.getState()?h.saveLogs():Promise.resolve()).finally((function(){it(d,f,t)}))},Gt=O.L.get(),Ht=Gt.getLogger(),zt=ErrorUtils.getGlobalHandler();function Vt(e){Ft(e)}function qt(e){var t=[{text:(0,E.t)("mxui.widget.native.Navigation","restartApp"),onPress:function(){return S.NativeModules.NativeReloadHandler.reload()}},{text:(0,E.t)("mxui.widget.native.Navigation","closeApp"),style:"destructive",onPress:function(){return S.NativeModules.NativeReloadHandler.exitApp()}}];Ft(e,t,!0)}ErrorUtils.setGlobalHandler((function(t,n){if(void 0!==e.mx)n?qt(t):Vt(t);else{var r=t instanceof Error?t:new Error(`Unknown error: ${t}`);S.NativeModules.NativeErrorHandler.handle(r.message,void 0!==r.stack?r.stack.split("\n").reduce((function(e,t){var n=(function(e){var t=Dt.exec(e);if(!t)return null;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),i=Mt.exec(t[2]);return r&&null!=i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{file:n?null:t[2],methodName:t[1]||Nt,arguments:n?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}})(t)||(function(e){var t=Bt.exec(e);return t?{file:t[2],methodName:t[1]||Nt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null})(t)||(function(e){var t=_t.exec(e);if(!t)return null;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=Rt.exec(t[3]);return n&&null!=r&&(t[3]=r[1],t[4]=r[2],t[5]=null),{file:t[3],methodName:t[1]||Nt,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}})(t)||(function(e){var t=Ut.exec(e);return t?{file:t[2],methodName:t[1]||Nt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null})(t)||(function(e){var t=Lt.exec(e);return t?{file:t[3],methodName:t[1]||Nt,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null})(t);return n&&e.push(n),e}),[]):[])}}));var Wt=O.L.get().getLogger();function Jt(){var e;this.startup=function(){e||(e={},window.mx.session.getConfig("metadata").forEach((function(t){var n=new Qt({json:t});e[n.getEntity()]=n})))},this.getMap=function(){return this.startup(),e},this.getEntity=function(t){this.startup();var n=e[t];return n||Wt.error("No permission to read or write entity "+t+", check security!"),n}}function Qt(e){var t=e.json;if(!(t&&t.attributes&&t.objectType&&t.properties))throw new Error("MxMetaObject: invalid initialization");this.has=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.has: parameter attr is not of type String.");return Object.prototype.hasOwnProperty.call(t.attributes,e)},this.isEnum=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isEnum : parameter attr is not of type String.");return/^(Enum|EnumSet)$/.test(this.getAttributeType(e))},this.isNumeric=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isNumeric : parameter attr is not of type String.");return/^(Integer|Long|Decimal)$/.test(this.getAttributeType(e))},this.isPassword=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type String.");return"HashString"===this.getAttributeType(e)},this.isDate=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type String.");return/^(Date|DateTime)$/.test(this.getAttributeType(e))},this.isLocalizedDate=function(e){return this.isDate(e)?/true/.test(t.attributes[e].localize):null},this.isBoolean=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isBoolean : parameter attr is not of type String.");return"Boolean"===this.getAttributeType(e)},this.isReference=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isReference : parameter attr is not of type String.");return/^(ObjectReference|ObjectReferenceSet)$/.test(this.getAttributeType(e))},this.isObjectReference=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isObjectReference : parameter attr is not of type String.");return"ObjectReference"===this.getAttributeType(e)},this.isObjectReferenceSet=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.isObjectReferenceSet : parameter attr is not of type String.");return"ObjectReferenceSet"===this.getAttributeType(e)},this.isBidirectionalReference=function(e){return this.isReference(e)&&Boolean(t.attributes[e].both)},this.getReferenceAttributes=function(){var e=[];for(var n in t.attributes)this.isReference(n)&&e.push(n);return e},this.getAttributes=function(){var e=[];for(var n in t.attributes)e.push(n);return e},this.getAttributesWithoutReferences=function(){var e=[];for(var n in t.attributes)this.isReference(n)||e.push(n);return e},this.getAttributeType=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getAttributeType : parameter attr is not of type String.");return!!this.has(e)&&t.attributes[e].type},this.getSelectorEntity=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getSelectorEntity : parameter attr is not of type String.");return!!this.isReference(e)&&t.attributes[e].klass},this.getEnumeration=function(e){if(!this.isEnum(e))throw new Error("mendix/lib/MxMetaObject.getEnumeration : attr is not of type Enum.");return(0,C.e)(t.attributes[e].klass)},this.getEnumCaption=function(e,t){return this.isEnum(e)?null!=t&&""!==t?(0,j.t)(this.getEnumeration(e),t):"":null},this.getEnumMap=function(e){if(!this.isEnum(e))return null;var t=this.getEnumeration(e);return(0,j.g)(t).map((function(e){return{key:e,caption:(0,j.t)(t,e)}}))},this.getOptions=function(e){if("string"!=typeof e)throw new Error("mendix/lib/MxMetaObject.getOptions : parameter attr is not of type String.");if(!this.isEnum(e))throw new Error("mendix/lib/MxMetaObject.getOptions : attribute '"+e+"' is not an Enumeration.");return this.isEnum(e)?(0,j.g)(this.getEnumeration(e)):[]},this.getEntity=function(){return t.objectType},this.isA=function(e){return this.getEntity()===e||this.inheritsFrom(e)},this.hasSuperEntities=function(){return 0!==t.properties.superclasses.length},this.getSuperEntities=function(){var e=t.properties.superclasses;return"string"==typeof e?[e]:e},this.hasSubEntities=function(){return 0!==t.properties.subclasses.length},this.getSubEntities=function(){var e=t.properties.subclasses;return"string"==typeof e?[e]:e},this.inheritsFrom=function(e){return(this.getSuperEntities()||[]).includes(e)}}var Kt=(function(){return(0,b.default)((function e(){(0,m.default)(this,e)}),[{key:"formatValue",value:function(e,t,n){if(""===e||null===e)return"";switch(t.toLowerCase()){case"decimal":case"integer":case"long":if("string"==typeof e||"number"==typeof e)try{e=new G.Big(e)}catch(t){throw new Error(`Value '${e}' cannot be formatted as a numeric value.`)}if(!(e instanceof G.Big))throw new Error(`Value '${e}' cannot be formatted as a numeric value.`);var r=Xt(n),i=r&&r.groupDigits,a=r&&r.decimalPrecision,o="decimal"===t.toLowerCase()?void 0:0;return(0,F.a)(e,i,void 0!==a?a:o);case"datetime":if(!("number"==typeof e||e instanceof Date))throw new Error(`Value '${e}' cannot be formatted as Date.`);var u=Yt(n);return(0,F.f)(new Date(e),u);case"boolean":if("boolean"!=typeof e)throw new Error(`Value '${e}' cannot be formatted as boolean.`);return(0,E.t)("mxui.common",e.toString());default:return String(e)}}},{key:"formatAttribute",value:function(e,t,n){var r=e.getAttributeType(t),i=e.get(t);return"Enum"===r?e.getEnumCaption(t)||i:this.formatValue(i,r,n)}},{key:"parseValue",value:function(e,t,n){if(""===e)return"";switch(t.toLowerCase()){case"integer":case"long":case"decimal":var r=Xt(n),i=r&&r.decimalPrecision;return(0,F.b)(e,i)||null;case"datetime":var a=Yt(n);return(0,F.p)(e,a)||null;case"enum":default:return e;case"boolean":return e===(0,E.t)("mxui.common","true")}}}])})();function Xt(e){if(e)return"places"in e?{decimalPrecision:e.places,groupDigits:Boolean(e.groups)}:e}function Yt(e){return e?"datePattern"in e&&e.datePattern?{type:"custom",pattern:e.datePattern}:"selector"in e?{type:e.selector}:e:{type:"date"}}var Zt=O.L.get().getLogger(),en=0,tn=(function(){return(0,b.default)((function e(t){(0,m.default)(this,e),this.id=this.ident=++en,this.trackId="",this.trackEntity="",this.trackObject=null,this.localParams={},this.constraintby=[],this._entityToGuid={},this._mxidToObject={},t&&(t.mxcontext&&this.dupFrom(t.mxcontext),t.classname&&t.mendixguid?this.setContext(t.classname,t.mendixguid):t.entity&&t.guid&&this.setContext(t.entity,t.guid))}),[{key:"hasTrackEntity",value:function(){return""!==this.trackEntity}},{key:"hasTrackId",value:function(){return!!this.trackId}},{key:"hasTrackObject",value:function(){return!!this.trackObject}},{key:"getTrackEntity",value:function(){return this.trackEntity}},{key:"getTrackId",value:function(){return this.trackId}},{key:"getTrackObject",value:function(){return this.trackObject}},{key:"setTrackObject",value:function(e){e&&this.setContext(e.getEntity(),e.getGuid()),this.trackObject=e}},{key:"getObject",value:function(){return this.trackObject}},{key:"setConstraints",value:function(e){null!=e&&""!==e&&0!==e.length&&(this.constraintby="string"==typeof e?e.split(","):e)}},{key:"getConstraints",value:function(){for(var e=[],t=0;t2&&void 0!==arguments[2])||arguments[2])&&this.setTrackObject(t),this._mxidToObject[e]=t}},{key:"getWidgetObjectMap",value:function(){return Object.assign({},this._mxidToObject)}},{key:"freeze",value:function(){this.setTrackObject=this.setConstraints=this.setContext=this.unsetContext=this.reset=this.dupFrom=this.setParam=this.setParams=this.unsetParam=this.setWidgetObject=this.resetParams=function(){return Zt.error("mendix/lib/MxContext["+this.ident+"].freeze: context is readonly"),!1}}}])})(),nn=(function(e){function t(e){var n;return(0,m.default)(this,t),n=fe(this,t,[`${e} is disabled`]),Object.setPrototypeOf((0,h.default)(n),t.prototype),n}return(0,y.default)(t,e),(0,b.default)(t)})((0,d.default)(Error)),rn=function(e){if((0,q.g)().isStrictModeEnabled()&&!mx.isOffline())throw new nn(e)},an=function(e){return"guid"in e&&null!==e.guid||"guids"in e&&void 0!==e.guids},on=function(e){return"path"in e},un=function(e){return"entity"in e},sn=function(e){return"microflow"in e},ln={equals:"=",lessThan:"<",lessThanOrEquals:"<=",greaterThan:">",greaterThanOrEquals:">=",contains:"contains"};function cn(e,t){var n=dn((0,z.g)(e),t);return n.length>1?{type:"function",name:"and",parameters:n}:n[0]}function dn(e,t){return t.map((function(t){var n,r;switch(t.operator){case"and":case"or":return{type:"function",name:t.operator,parameters:dn(e,t.constraints)};default:var i=null!=(n=null==e||null==(r=e.attributes[t.attribute])?void 0:r.type)?n:"String",a={type:"function",name:ln[t.operator],parameters:[{type:"attribute",attribute:t.attribute,attributeType:i},{type:"value",value:fn(t.value,i),isGuid:"ObjectReference"===i}]};return t.negate?{type:"function",name:"not",parameters:[a]}:a}}))}function fn(e,t){if(null!=e)switch(t){case"Boolean":return"true"===e;case"DateTime":return new Date(Number(e));case"Decimal":case"Integer":case"Long":return new G.Big(String(e));default:return String(e)}}var hn=(function(){function e(t,n,r){var i=this,a=t.garbageCollectionInterval,o=void 0===a?1e4:a,u=t.logCleanupStatistics,s=void 0!==u&&u;(0,m.default)(this,e),this.objectCache=n,this.backend=r,this.name="mendix.sys.Data",this.logger=O.L.get().getLogger(),this.validationSubscriptions=[],this.sendValidationUpdates=(0,w.e)((function(){var e=(0,f.default)((function*(e){var t=[];e.forEach((function(e){var n=e.clone();i.validationSubscriptions.filter((function(t){return"guid"in t&&t.guid===e.getGuid()})).forEach((function(t){var r=t.callback,i=e.clone();r([i]);var a=i.getAttributes().map((function(e){return e.name}));n.getAttributes().forEach((function(e){var t=e.name;a.includes(t)||n.removeAttribute(t)}))})),t.push(n)}));var n=e.flatMap((function(e){return e.getAttributes().map((function(t){var n=t.name,r=t.reason;return{guid:e.getGuid(),attr:n,val:r}}))}));(yield w.p.apply(void 0,(0,c.default)(n))).handled.filter((function(e){return"guid"in e&&"attr"in e})).forEach((function(e){var n=e.guid,r=e.attr;t.find((function(e){return e.getGuid()===n})).removeAttribute(r)}));var r=t.filter((function(e){return e.getAttributes().length}));if(r.length){var a=W.O.describe(r);(0,H.g)().showMessage("error",a,!1)}}));return function(t){return e.apply(this,arguments)}})()),this.garbageCollectionInterval=o,this.logCleanupStatistics=s}return(0,b.default)(e,[{key:"getBacktrack",value:function(e,t,n,r,i){var a;if("function"!=typeof r?(i=r,a=null):a=r,t&&0!==t.length){var o=null,u=[],s=0,l=!0,c=this,d=function e(){var r=t[s++];r?c.runMapPath(o,r,(function(t){t?u.push(t):l=!1,e()}),c.createErrorHandler(a,i)):n.call(i,u.join(""),l)};e?c.get({guid:e,callback:function(e){e?(o=e,d()):n.call(i,"",!1)},error:c.createErrorHandler(a,i)}):n.call(i,"",!1)}else n.call(i,"",!0)}},{key:"toString",value:function(){return this.name}},{key:"startup",value:function(){this.garbageCollectionInterval>0&&(this.gcInterval=window.setInterval(this.collectGarbage.bind(this),this.garbageCollectionInterval))}},{key:"subscribe",value:function(e,t){var n=this;if(!("val"in e)||"attr"in e)return(0,w.s)(Object.assign({},e,{callback:function(){if(e.callback){if("entity"in e)return e.callback.apply(t,[e.entity]);if("attr"in e){var r=n.objectCache.getObject(e.guid),i=null!=r?r.get(e.attr):null;return e.callback.apply(t,[e.guid,e.attr,null!=i?i:""])}return"guid"in e?e.callback.apply(t,[e.guid]):e.callback.apply(t)}}}));var r=Object.assign({},e,{callback:function(){for(var n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]?arguments[1]:null;("xpath"in e||"microflow"in e||"path"in e)&&rn("mx.data.get");var r=e.callback;if("guid"in e&&null==e.guid)this.runCallback(e.callback,n,null);else{if(!((function(e){return"xpath"in e})(e)||on(e)||an(e)||un(e)||sn(e)))throw new C.A("xpath, guid|guids and microflow arguments are undefined");if("function"!=typeof r)throw new C.A("callback is not a function");if("error"in e&&"function"!=typeof e.error)throw new C.A("error is not a function");"filter"in e&&(null==(t=e.filter)?void 0:t.limit)&&(e.filter.amount=e.filter.limit,delete e.filter.limit);var i=this.mixinParams({},e.filter,"guid"in e&&null!==e.guid?{id:null}:{id:null,attributes:null,offset:null,sort:null,amount:null,distinct:null,references:null});i.id&&"guids"in e&&!("guid"in e)&&delete i.id,i.id&&(delete i.attributes,delete i.distinct),e.filter=i,sn(e)?this.getByMicroflow(e,n):on(e)?this.getByPath(e,n):an(e)?this.getByGuid(e,n):un(e)?this.getByEntity(e,n):this.getByXPath(e,n)}}},{key:"getByMicroflow",value:function(t,n){var r,i,a=this,o=e.extractGuids(t),u={actionname:t.microflow,applyto:"none"};o?u={actionname:t.microflow,applyto:"selection",guids:o}:t.xpath&&(u={actionname:t.microflow,applyto:"set",xpath:t.xpath},(null==(r=t.filter)?void 0:r.sort)&&(u.sort=t.filter.sort));var s=null!=(i=t.context)?i:new tn;this.action({params:u,context:s,callback:function(){for(var e=arguments.length,r=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:null;if(rn("mx.data.create"),"function"!=typeof e.callback)throw new C.A("callback is not a function");if(e.error&&"function"!=typeof e.error)throw new C.A("error is not a function");if("string"!=typeof e.entity)throw new C.A("entity is not a string");(mx.isOffline(e.entity)?(0,P.o)().create(e.entity):this.backend.create(e.entity)).then((function(r){e.context&&n.setObjectToContext(r,e.context),n.runCallback(e.callback,t,r)}),this.createErrorHandler(e.error,t));var n=this}},{key:"remove",value:function(t){var n=this;rn("mx.data.remove");var r=e.extractGuids(t);if("guids"in t&&!Array.isArray(t.guids))throw new C.A("parameter guids set but not of type Array");if(t.error&&"function"!=typeof t.error)throw new C.A("parameter error set but not of type Function");if(t.callback&&"function"!=typeof t.callback)throw new C.A("parameter callback set but not of type Function");this.backend.remove(r).then((function(){return n.runCallback(t.callback)}),this.createErrorHandler(t.error,null))}},{key:"validate",value:function(e,t,n){var r=this;if(0!==e.length){var i=this.createErrorHandler(n,null);this.backend.validate(e.map((function(e){return e.getGuid()}))).then((function(){return r.runCallback(t,i)}),i)}else this.runCallback(t)}},{key:"commit",value:function(e,t){var n,r=this;rn("mx.data.commit");var i=function(){return r.runCallback(e.callback,t)},a=this.createErrorHandler(e.error,t),o=this.normalizeArguments(e);if(0!==o.length){var u=o.map((function(e){return e.getGuid()}));this.backend.commit(u,null!=(n=e.context)?n:new tn,e.store,e.onValidation).then((function(e){me(s.objectCache,o,e);var t=(0,C.b)(o.filter((function(e){return s.objectCache.has(e.getGuid())}))).map((function(e){return{entity:e.getEntity()}})),n=(0,C.b)(o.map((function(e){return e.getGuid()}))).map((function(e){return{guid:e}})),r=t.concat(n);w.p.apply(void 0,(0,c.default)(r)).then(i,a)}),a);var s=this}else i()}},{key:"rollback",value:function(e,t){rn("mx.data.rollback");var n=this.createErrorHandler(e.error,t),r=this.normalizeArguments(e);if(0!==r.length){var i=(0,C.b)(r.map((function(e){return e.getEntity()}))).map((function(e){return{entity:e}})),a=r.map((function(e){return e.getGuid()}));this.backend.rollback(a).then((function(a){me(o.objectCache,r,a);var u=(0,C.b)(r.filter((function(e){return o.objectCache.has(e.getGuid())}))).map((function(e){return{guid:e.getGuid()}})),s=i.concat(u);w.p.apply(void 0,(0,c.default)(s)).then((function(){return o.runCallback(e.callback,t)}),n)}),n);var o=this}else this.runCallback(e.callback,t)}},{key:"synchronizeOffline",value:(t=(0,f.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fullReset:!1},t=e.fullReset,n=e.incompatibleEntities;mx.isOffline()&&(yield(0,P.o)().runFullSynchronization(t,n))})),function(){return t.apply(this,arguments)})},{key:"saveDocument",value:function(e,t,n,r,i,a){var o=this.createErrorHandler(a,null);this.backend.saveDocument(e,t,n,r).then((function(){(0,w.p)({guid:e}).then(i,o)}),o)}},{key:"setObjectToContext",value:function(e,t){if("object"!=typeof e)throw new C.A("parameter mxObj is not of type Object");if("object"!=typeof t)throw new C.A("parameter context is not of type Object");var n=e.getAttributes();for(var r of n)if(e.isReference(r)){var i,a,o=e.getSelectorEntity(r);if(!o)throw new C.A("selectorEntity did not return an entity");if((0,z.i)(r))continue;t.hasContext(o)&&e.addReference(r,t.getContext(o));var u=null!=(i=null==(a=(0,z.g)(o))?void 0:a.specializations)?i:[];for(var s of u)t.hasContext(s)&&e.addReference(r,t.getContext(s))}}},{key:"getObjectFromContext",value:function(e,t){var n=e.getObject(),r=e.getTrackId();n?t(n):r?this.get({guid:r,callback:function(e){e||(0,w.h)("Error while fetching object with guid "+r),t(e)},error:function(e){(0,w.h)(e),t(null)}},this):t(null)}},{key:"isNew",value:function(e){return this.objectCache.isNew(e)}},{key:"makeChange",value:function(e,t,n){this.objectCache.makeChange(e,t,n)}},{key:"getChanges",value:function(e){return this.objectCache.getChanges(e)}},{key:"getCachedObject",value:function(e){return this.objectCache.getObject(e)}},{key:"dehydrateCache",value:function(){return{objectCache:this.objectCache.dehydrate(),objectIdCache:(0,A.d)()}}},{key:"hydrateCache",value:function(e){this.objectCache.hydrate(e.objectCache),(0,A.e)(e.objectIdCache)}},{key:"getDocumentUrl",value:function(e,t,n,r){return this.backend.getDocumentUrl(e,t,n,r)}},{key:"getImageUrl",value:function(e,t,n){this.backend.getImageUrl(e).then(t,n)}},{key:"clear",value:function(e){this.objectCache.clear(),this.backend.cleanup().then(e,w.h)}},{key:"uninitialize",value:function(){window.clearInterval(this.gcInterval)}},{key:"collectGarbage",value:function(){var e=this,t=this.objectCache.getAllObjects(),n=new Set(t.map((function(e){return e.getGuid()}))),r=(0,q.g)(),i=r.getUserId(),a=r.getSessionObjectId(),o=new Set((0,w.g)().concat(this.validationSubscriptions.map((function(e){return e.guid}))).concat([i,a])),u=new Set((0,A.i)(t,o)),s=(0,c.default)((0,C.d)(n,u));if(this.logCleanupStatistics){var l=(0,C.g)(s,(function(t){return e.objectCache.getObject(t).getEntity()})).map((function(e){return`${e.key}: ${e.values.join(", ")}`})).join("\n");this.logger.debug(`Garbage collecting ${s.length} of ${n.size}\n${l}`)}this.objectCache.removeObjects(s)}},{key:"getObjectsStatistics",value:function(){var e=this;return this.objectCache.getAllGuids().map((function(t){var n=e.objectCache.getObject(t);return{guid:t,object:n,changes:(0,A.j)(e.objectCache.getChanges(t)),uncommitted:e.objectCache.isNew(t),subscriptions:(0,w.i)(t).concat(e.validationSubscriptions.filter((function(e){return"guid"in e&&e.guid===t})).map((function(e){return e.tag})))}}))}},{key:"createErrorHandler",value:function(e,t){var n=this;return function(r){return n.runErrorHandler(e,t,r)}}},{key:"runErrorHandler",value:function(e,t,n){e?e.call(t,n):(0,w.h)(n)}},{key:"runCallback",value:function(e,t){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},r=e.map((function(e){return t.objectCache.getObject(e)})).filter((function(e){return null!=e}));n.sort&&n.sort.forEach((function(e){var t=e[0],n=e[1];r=r.sort((function(e,r){var i=e.get(t),a=r.get(t);return ia?"asc"===n?1:-1:0}))}));var i=n.offset;if(i){var a=n.amount;r=a?r.slice(i,i+a):r.slice(i)}return{mxobjs:r,count:r.length}}},{key:"runMapPath",value:function(e,t,n,r){var i=t.split("/"),a=this,o=function(e){var t=i.shift(),r=i.shift();if(null!=e&&0!==e.length){var a=[];for(var o of e)null!=o&&a.push("id='"+o.getGuid()+"'");if(a.length){var u=`[${r}/${t}[${a.join(" or ")}]]`;1===i.length?n(u):(t=i.shift(),r=i.shift(),n(`[${r}/${t}${u}]`))}else n(null)}else n(null)};!(function(){var t=i.shift(),u=i.shift();if(1!==i.length){var s=(0,z.g)(t);null!=s?e.isA(t)?(0,z.a)(s,u)?""!==e.get(u)?a.get({guids:e.getReferences(u),callback:o,error:r}):n(null):a.runErrorHandler(r,null,new Error(`Reference ${u} not found in entity ${t}`)):a.runErrorHandler(r,null,new C.A(`Entity ${e.getEntity()} is not a ${t} or one of its subclasses`)):a.runErrorHandler(r,null,new Error(`Entity ${t} does not exist`))}else{var l=`[${u}='${e.getGuid()}']`;n(l)}})()}}],[{key:"extractGuids",value:function(e){return!("guids"in e)&&"guid"in e&&e.guid?[e.guid]:"guids"in e?""===e.guids?[]:e.guids:void 0}}]);var t})();function pn(){this._objectCache={},this._newGuids={},this._changes={}}pn.prototype.getAllObjects=function(){return Object.values(this._objectCache)},pn.prototype.dehydrate=function(){return(0,A.j)({data:this.getAllObjects().map((function(e){return e.toJSON()})),newGuids:this._newGuids,changes:this._changes})},pn.prototype.hydrate=function(e){var t=this,n=e.data,r=e.newGuids,i=e.changes;this._objectCache={},n.map((function(e){return U.M.fromJson(e)})).forEach((function(e){t._objectCache[e.getGuid()]=e})),this._newGuids=(0,A.j)(r),this._changes=(0,A.j)(i)},pn.prototype.getObject=function(e){return this._objectCache[e]||null},pn.prototype.removeObjectKeepChanges=function(e){delete this._objectCache[e],delete this._newGuids[e]},pn.prototype.setMxObjects=function(e){e.forEach((function(e){var t=e.guid,n=this._objectCache[t];n?n.resetFromJSON(e):this._objectCache[t]=U.M.fromJson(e)}),this)},pn.prototype.has=function(e){return!!this.getObject(e)},pn.prototype.isNew=function(e){return this.has(e)&&Boolean(this._newGuids[e])},pn.prototype.clear=function(){this._objectCache={},this._newGuids={},this._changes={}},pn.prototype.hasChanges=function(e){return e in this._changes},pn.prototype.getChanges=function(e){return this._changes[e]||{}},pn.prototype.makeChange=function(e,t,n){this._changes[e]=this._changes[e]||{},this._changes[e][t]={value:n}},pn.prototype.removeAllChanges=function(e){e.forEach((function(e){delete this._changes[e]}),this)},pn.prototype.removeChanges=function(e){var t=this;Object.keys(e).forEach((function(n){var r=t._changes[n];r&&(e[n].forEach((function(e){return delete r[e]})),0===Object.keys(r).length&&delete t._changes[n])}))},pn.prototype.onCreate=function(e){var t=this;e.forEach((function(e){t._newGuids[e]=!0}))},pn.prototype.onCommit=function(e){var t=this;e.forEach((function(e){return delete t._newGuids[e]}))},pn.prototype.onDelete=function(e){for(var t of e)t in this._objectCache&&this._objectCache[t].markAsUnavailable();this.removeObjects(e)},pn.prototype.addChanges=function(e){for(var t in e){var n=e[t];null==this._changes[t]&&(this._changes[t]={});var r=this._changes[t];for(var i in n)n[i].hasOwnProperty("value")?r[i]=n[i]:r[i].hash=n[i].hash}},pn.prototype.removeObjects=function(e){var t=this;e.forEach((function(e){delete t._objectCache[e],delete t._newGuids[e],delete t._changes[e]}))},pn.prototype.getAllGuids=function(){return(0,C.b)(Object.keys(this._objectCache).concat(Object.keys(this._changes)))};var gn=(function(e){function t(e,n){var r;return(0,m.default)(this,t),(r=fe(this,t))._getImageUri=e&&e.getImgUriFn?(0,J.a)(e.getImgUriFn):vn,r._objectCache=n,r}return(0,y.default)(t,e),(0,b.default)(t,[{key:"getByGuid",value:(d=(0,f.default)((function*(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=yield(0,Q.m)({guids:e,filter:r},(function(){return(0,I.r)(e,r)}));if(yield(0,A.k)(this._objectCache,i),i.resultGuids)t=i.resultGuids.map((function(e){return n._objectCache.getObject(e)}));else{var a=i.mxobjects||[];a.map((function(e){return e.guid})).forEach((function(e){return be(n._objectCache,e)})),t=a.map(U.M.fromJson)}return{mxobjs:t,count:t.length}})),function(e){return d.apply(this,arguments)})},{key:"getByPath",value:(c=(0,f.default)((function*(e,t,n,r){var i=this,a=ge(this._objectCache,[e]),o=(0,k.default)(a,2),u=o[0],s=o[1],l=yield(0,Q.m)({guid:e,path:t,entity:n},(function(){return(0,I.d)(e,t,n,r,u,s)}));yield(0,A.k)(this._objectCache,l);var c=l.resultGuids||[];return{mxobjs:c.map((function(e){return i._objectCache.getObject(e)})),count:c.length}})),function(e,t,n,r){return c.apply(this,arguments)})},{key:"getByXPath",value:(l=(0,f.default)((function*(e,t,n){var r=this,i=yield(0,Q.m)({xpath:e,filter:t,wantCount:n},(function(){return(0,I.e)(e,t,n)}));yield(0,A.k)(this._objectCache,i);var a,o=i.count||0,u=i.aggregates||[],s=i.hasMoreItems;if(Array.isArray(i.resultGuids))a=i.resultGuids.map((function(e){return r._objectCache.getObject(e)}));else{var l=i.mxobjects||[];l.map((function(e){return e.guid})).forEach((function(e){return be(r._objectCache,e)})),a=l.map(U.M.fromJson)}return{mxobjs:a,count:o,hasMoreItems:s,aggregates:u.map((function(e){return null==e?"":new G.default(e)}))}})),function(e,t,n){return l.apply(this,arguments)})},{key:"action",value:(s=(0,f.default)((function*(e,t,n,r,i){var a=this,o=e&&e.actionname?e.actionname:null,u=(0,P.b)(o),s=e&&e.guids?e.guids:[];null!=t&&(s=s.concat(null!=u?u.parameters.map((function(e){return t.getContext(e)})).filter((function(e){return null!=e})):t.getGuids()));var l,c=(0,A.l)(this._objectCache,void 0,s.concat(pe())),d=(0,k.default)(c,2),f=d[0],h=d[1];try{l=r?yield(0,P.e)((function(n){return(0,I.f)(e,t,f,h,n)})):yield(0,I.f)(e,t,f,h)}catch(e){throw yield(0,A.h)(this._objectCache,e,i),e}return yield(0,A.k)(this._objectCache,l,n),l.actionResult&&Array.isArray(l.actionResult.resultGuids)?l.actionResult.resultGuids.map((function(e){return a._objectCache.getObject(e)})):l.actionResult})),function(e,t,n,r,i){return s.apply(this,arguments)})},{key:"create",value:(u=(0,f.default)((function*(e){var t,n,r=null!=(t=(0,z.g)(e))&&t.needsReachableState.create?ge(this._objectCache,[]):(0,A.g)(this._objectCache,[]),i=(0,k.default)(r,2),a=i[0],o=i[1];try{n=yield(0,I.i)(e,a,o)}catch(e){throw yield(0,A.h)(this._objectCache,e),e}return yield(0,A.k)(this._objectCache,n),this._objectCache.getObject(n.actionResult)})),function(e){return u.apply(this,arguments)})},{key:"commit",value:(o=(0,f.default)((function*(e,t,n,r){var i,a=ve(this._objectCache,e,"commit"),o=(0,k.default)(a,2),u=o[0],s=o[1];try{i=yield(0,I.h)(e,t,u,s)}catch(e){throw yield(0,A.h)(this._objectCache,e,r),e}return yield(0,A.k)(this._objectCache,i,n),i})),function(e,t,n,r){return o.apply(this,arguments)})},{key:"rollback",value:(a=(0,f.default)((function*(e){var t,n=ve(this._objectCache,e,"rollback"),r=(0,k.default)(n,2),i=r[0],a=r[1];try{t=yield(0,I.j)(e,i,a)}catch(e){throw yield(0,A.h)(this._objectCache,e),e}return yield(0,A.k)(this._objectCache,t),t})),function(e){return a.apply(this,arguments)})},{key:"remove",value:(i=(0,f.default)((function*(e){var t,n=ve(this._objectCache,e,"delete"),r=(0,k.default)(n,2),i=r[0],a=r[1];try{t=yield(0,I._)(e,i,a)}catch(e){throw yield(0,A.h)(this._objectCache,e),e}return yield(0,A.k)(this._objectCache,t),t})),function(e){return i.apply(this,arguments)})},{key:"validate",value:(r=(0,f.default)((function*(e){var t=(0,A.g)(this._objectCache,e),n=(0,k.default)(t,2),r=n[0],i=n[1];try{return yield(0,I.v)(r,i)}catch(e){throw yield(0,A.h)(this._objectCache,e),e}})),function(e){return r.apply(this,arguments)})},{key:"saveDocument",value:(n=(0,f.default)((function*(e,t,n,r){var i,a=ve(this._objectCache,[e],"commit"),o=(0,k.default)(a,2),u=o[0],s=o[1];try{i=yield(0,I.u)(e,t,n,r,u,s)}catch(e){throw yield(0,A.h)(this._objectCache,e),e}return yield(0,A.k)(this._objectCache,i),i})),function(e,t,r,i){return n.apply(this,arguments)})},{key:"getDocumentUrl",value:function(e,t,n,r){return(0,Q.g)(e,t,n,r)}},{key:"getImageUrl",value:function(e){return this._getImageUri(e)}},{key:"cleanup",value:function(){return Promise.resolve()}}]);var n,r,i,a,o,u,s,l,c,d})(A._);function vn(e){return Promise.resolve(e)}var yn=(function(){return(0,b.default)((function e(t){var n=this;(0,m.default)(this,e),this.url=t,this.connectHandlers=[],this.instructionHandlers=[],window.setInterval((function(){n.send(JSON.stringify({type:"ping"}))}),1e4)}),[{key:"isConnected",value:function(){return void 0!==this.socket&&this.socket.readyState===WebSocket.OPEN}},{key:"onConnect",value:function(e){this.isConnected()?e():this.connectHandlers.push(e)}},{key:"onInstruction",value:function(e,t){this.instructionHandlers.push({type:e,handler:t})}},{key:"sendLog",value:function(e,t,n){if(this.isConnected())for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:O.L.get();(0,m.default)(this,e),this.reloadHandlers=[],this.updateStylingHandlers=[],this.deploymentId=void 0,this.connection=new yn(t.replace(/^http/,"ws")+"mxdevtools/"),this.connection.onInstruction("set_deployment_id",(function(e){void 0!==n.deploymentId&&e.deploymentId!==n.deploymentId&&n.reloadHandlers.forEach((function(e){return e(!1)})),n.deploymentId=e.deploymentId})),this.connection.onInstruction("reload",(function(){n.reloadHandlers.forEach((function(e){return e(!0)}))})),this.connection.onInstruction("update_styling",(function(){n.updateStylingHandlers.forEach((function(e){return e()}))})),r.addHandler((function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a2?r-2:0),a=2;a3&&void 0!==arguments[3]?arguments[3]:[],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];try{var c=Object.values(t).some((function(e){return"xpath"in e}))?(i=this.objectCache,a=i.getAllObjects().map((function(e){return e.getGuid()})),[(o=(0,q.g)()).getUserId(),o.getSessionObjectId()].filter((function(e){return!a.includes(e)})).forEach((function(e){return a.push(e)})),(0,A.g)(i,a)):(0,A.l)(this.objectCache,e,(0,K.g)(t).concat(pe())),d=(0,k.default)(c,2),f=d[0],h=d[1];r=l?yield(0,P.e)((function(n){return(0,I.l)(e,t,f,h,s,n)})):yield(0,I.l)(e,t,f,h,s)}catch(e){throw yield(0,A.h)(this.objectCache,e),e}yield(0,A.k)(this.objectCache,r,n);var p=r.actionResult;if(null!=p){var g=p.value,v=p.type;return(0,X.r)(g,v,(function(e){return(0,C.e)(u.objectCache.getObject(e))}))}})),function(e,t,n){return a.apply(this,arguments)})},{key:"executeExternalAction",value:(i=(0,f.default)((function*(e,t,n){var r,i=t.getGuid(),a=(0,C.b)(n.map((function(e){return e.getGuid()}))),o=(function(e,t,n){var r=ge(e,[t]),i=(0,k.default)(r,2),a=i[0],o=i[1],u=ve(e,n,"commit"),s=(0,k.default)(u,2),l=s[0],d=s[1],f=Object.assign({},a,l),h=(0,c.default)(o),p=function(e){h.find((function(t){return t.guid===e.guid}))||h.push(e)};for(var g of d)p(g);return[f,h]})(this.objectCache,i,a),u=(0,k.default)(o,2),s=u[0],l=u[1];try{var d={Object:{guid:i}};a.length>0&&(d.Objects={guids:a}),r=yield(0,I.l)(e,d,s,l)}catch(e){throw yield(0,A.h)(this.objectCache,e),e}yield(0,A.k)(this.objectCache,r),me(this.objectCache,n,r);var f=r.commits,h=void 0===f?[]:f,p=(0,C.b)(n.filter((function(e){return h.includes(e.getGuid())}))),g=p.map((function(e){return{entity:e.getEntity()}})),v=p.map((function(e){return{guid:e.getGuid()}}));yield w.p.apply(void 0,(0,c.default)(g).concat((0,c.default)(v)))})),function(e,t,n){return i.apply(this,arguments)})},{key:"createObject",value:(r=(0,f.default)((function*(e,t){var n=(0,z.g)(e);if(void 0!==n&&(!t||(function(e){return!e.isPersistable&&!e.needsReachableState.create&&Object.values(e.attributes).every((function(e){return!e.isAlwaysReadOnly&&!(0,z.i)(e.name)}))})(n))){var r=(0,A.m)(n);return this.objectCache.onCreate([r]),this.objectCache.setMxObjects([(0,P.d)(r,n)]),this.objectCache.getObject(r)}if(void 0!==t)return this.executeCreateObjectAction(t,e);throw new Error(`Error trying to create an object of type ${e}`)})),function(e,t){return r.apply(this,arguments)})},{key:"executeCreateObjectAction",value:(n=(0,f.default)((function*(e,t){var n,r,i=null!=(n=(0,z.g)(t))&&n.needsReachableState.create?ge(this.objectCache,[]):(0,A.g)(this.objectCache,[]),a=(0,k.default)(i,2),o=a[0],u=a[1];try{r=yield(0,I.l)(e,{},o,u)}catch(e){throw yield(0,A.h)(this.objectCache,e),e}yield(0,A.k)(this.objectCache,r);var s=(0,C.e)(r.actionResult).value;return(0,C.e)(this.objectCache.getObject(s))})),function(e,t){return n.apply(this,arguments)})},{key:"executeObjectAction",value:(t=(0,f.default)((function*(e,t,n){if(0!==n.length){var r,i=(0,C.b)(n.map((function(e){return e.getGuid()}))),a=ve(this.objectCache,i,t),o=(0,k.default)(a,2),u=o[0],s=o[1],l=(0,C.c)((function(e){return e.getGuid()}))(n),d=i.reduce((function(e,t){return e[t]=l[t].getEntity(),e}),{});try{r=yield(0,I.l)(e,{Objects:{guids:i}},u,s)}catch(e){throw yield(0,A.h)(this.objectCache,e),e}yield(0,A.k)(this.objectCache,r),me(this.objectCache,n,r);var f=r,h=f.commits,p=void 0===h?[]:h,g=f.deletes,v=void 0===g?[]:g,y=f.resets,m=void 0===y?{}:y,b=Object.keys(m),S="rollback"===t?(0,c.default)(i):[].concat((0,c.default)(p),(0,c.default)(v),b).filter((function(e){return i.includes(e)})),j="rollback"===t?(0,c.default)(i):[].concat((0,c.default)(p),b),x=(0,C.b)(S.map((function(e){return d[e]}))).filter((function(e){return void 0!==e})).map((function(e){return{entity:e}})),E=(0,C.b)(j).filter((function(e){return i.includes(e)})).map((function(e){return{guid:e}}));yield w.p.apply(void 0,(0,c.default)(x).concat((0,c.default)(E)))}})),function(e,n,r){return t.apply(this,arguments)})},{key:"generateExport",value:(e=(0,f.default)((function*(e){var t,n,r=null!=(t=null==e?void 0:e.guids)?t:[],i=ge(this.objectCache,r),a=(0,k.default)(i,2),o=a[0],u=a[1];try{n=yield(0,P.e)((function(t){return(0,I.m)(e,o,u,t)}))}catch(e){throw yield(0,A.h)(this.objectCache,e),e}yield(0,A.k)(this.objectCache,n)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,r,i,a,o,u,s,l})();function kn(e){for(var t=1;t0;if(o){var u,s=null==(u=e.init.method)?void 0:u.toUpperCase();r.trace(`Retrying ${s} ${e.url}. Attempts left: ${n}`)}var l=(0,C.i)(e.body)?e.body.action:void 0;return o&&"get_session_data"===l?t(e).catch(a):Promise.reject(i)}));function a(e){return i.apply(this,arguments)}return a})())}))}),[{key:"isValid",value:function(){return void 0!==this.sessionData}},{key:"getConfig",value:function(e){if(void 0===this.sessionData)throw new Error("Session is not available");if(!e)return(0,A.j)(this.sessionData);for(var t=e.split("."),n=this.sessionData,r=0;r1&&void 0!==arguments[1]&&arguments[1];this.sessionParams=e;var r,i,a,o,u,s=yield this.loadSessionData(n,(function(e){if(e.offline)return!0;switch(e.profile){case"ResponsiveOffline":case"NativePhone":case"TabletOffline":case"PhoneOffline":return!0;default:return!1}})({profile:e.profile,offline:e.offline}));return this.sessionData=s,(0,j.a)(s.enumerations),(0,I.n)((i=this.restoreSessionOnUnauthorized.bind(this),o=["get_session_data","login","logout"],u=0,(function(){var e=(0,f.default)((function*(e,t){var n=u;try{return yield t(e)}catch(s){var r=(0,C.i)(e.body)?e.body.action:void 0;if(!(s instanceof I.U)||void 0!==r&&o.includes(r))throw s;if(n!==u)return yield t(e);if(a)return yield a,yield t(e);a=i();try{yield a}finally{a=void 0}return++u,yield t(e)}}));return function(t,n){return e.apply(this,arguments)}})())),s.keepalive&&setInterval((function(){(0,I.q)().catch((function(){}))}),s.keepalive),(0,I.n)((r=function(){return(0,C.e)(t.sessionData).csrftoken},function(e,t){var n={url:e.url,init:Object.assign({},e.init,{headers:new Headers(e.init.headers)}),body:e.body};return n.init.headers.append("X-Csrf-Token",r()),t(n)})),s})),function(e){return u.apply(this,arguments)})},{key:"loadCachedSessionData",value:(o=(0,f.default)((function*(){var e=yield this.sessionStore.get();return void 0!==e?JSON.parse(e):void 0})),function(){return o.apply(this,arguments)})},{key:"saveSessionData",value:(a=(0,f.default)((function*(){yield this.sessionStore.set(JSON.stringify((0,C.e)(this.sessionData)))})),function(){return a.apply(this,arguments)})},{key:"getCachedProfile",value:(i=(0,f.default)((function*(){var e=yield this.sessionStore.get(),t=void 0!==e?JSON.parse(e):void 0;if(t)return t.uiconfig.profile.kind})),function(){return i.apply(this,arguments)})},{key:"loadSessionData",value:(r=(0,f.default)((function*(e,t){var n=t?yield this.loadCachedSessionData():void 0;if(n){var r=n.isDevModeEnabled,i=n.bundleVersion,a=n.mxVersion;this.startupLogger.debug(`Found a cached session data created by the bundle ${i} in Mendix ${a}. The cached session is ${r?"":"not "}in development mode.`)}var o=n&&this.bundleVersion&&n.bundleVersion===this.bundleVersion;n&&this.startupLogger.debug(`The cached session data is ${o?"":"not "}valid.`);var u=e&&(null==n?void 0:n.isDevModeEnabled)&&!1!==navigator.onLine;if(o&&!u)return this.startupLogger.debug("The app will use the cached session data."),n;this.startupLogger.debug("The app will not use the cached session data.");try{var s=new I.b;this.startupLogger.trace("Getting a new session from runtime.");var l=Object.assign({},yield this.getSessionData(),{bundleVersion:this.bundleVersion,mxVersion:this.mxVersion}),c=s.measure();return this.startupLogger.log(c.ms>5e3?"warning":"debug",`Created a new session in ${c} milliseconds`),l}catch(e){if(e instanceof I.S&&401===e.status)this.startupLogger.error("Could not create a session because the server responded with 401 (Unauthorized). This may happen if the authentication token is no longer valid. The app will clear the stored session and token and restart."),yield this.clearCachedSessionData();else{var d=e instanceof I.C||o?"debug":"error";if(this.startupLogger.log(d,"An error occurred while creating a new session."+(o?" The app will start using the cached session data.":""),e),o)return n}throw e}finally{this.unregisterRetryGetSessionDataMiddleware()}})),function(e,t){return r.apply(this,arguments)})},{key:"getSessionData",value:(n=(0,f.default)((function*(){var e=(0,C.e)(this.sessionParams);return(0,I.t)(e)})),function(){return n.apply(this,arguments)})},{key:"restoreSessionOnUnauthorized",value:(t=(0,f.default)((function*(){try{var e,t=yield this.getSessionData(),n=t.csrftoken,r=t.user;this.isGuest()||r.guid===(null==(e=this.sessionData)?void 0:e.user.guid)?((0,C.e)(this.sessionData).csrftoken=n,yield this.sessionStore.set(JSON.stringify(this.sessionData))):yield this.failOnUnauthorized(new I.U(419))}catch(e){if(!(e instanceof I.U))throw e;yield this.failOnUnauthorized(e)}})),function(){return t.apply(this,arguments)})},{key:"failOnUnauthorized",value:(e=(0,f.default)((function*(e){yield this.clearCachedSessionData();var t=401===e.status?419:e.status;return this.authLogger.info(`The client is not authorized. Request failed with status code ${t}. Removing token and session.`),yield this.onUnauthorized(),(0,I.x)()})),function(t){return e.apply(this,arguments)})}]);var e,t,n,r,i,a,o,u,s,l,c})(),jn=(function(){return(0,b.default)((function e(t,n){(0,m.default)(this,e),this.fileBackend=t,this.logger=n.getLogger(O.a.FileSystem)}),[{key:"downloadFile",value:(u=(0,f.default)((function*(e,t){this.logger.trace(`Download file from "${e}" to "${t}"`);var n=new I.b;yield this.fileBackend.downloadFile(e,t),this.logger.trace(`Download file from ${e} completed after ${n.measure()} milliseconds`)})),function(e,t){return u.apply(this,arguments)})},{key:"listDir",value:(o=(0,f.default)((function*(e){return this.fileBackend.listDir(e)})),function(e){return o.apply(this,arguments)})},{key:"moveFile",value:(a=(0,f.default)((function*(e,t){return this.logger.trace(`Move file from "${e}" to "${t}"`),this.fileBackend.moveFile(e,t)})),function(e,t){return a.apply(this,arguments)})},{key:"moveDir",value:(i=(0,f.default)((function*(e,t){return this.logger.trace(`Move dir from "${e}" to "${t}"`),this.fileBackend.moveDir(e,t)})),function(e,t){return i.apply(this,arguments)})},{key:"readFile",value:(r=(0,f.default)((function*(e){return this.logger.trace(`Read file from "${e}"`),this.fileBackend.readFile(e)})),function(e){return r.apply(this,arguments)})},{key:"removeDir",value:(n=(0,f.default)((function*(e){return this.logger.trace(`Remove dir from "${e}"`),this.fileBackend.removeDir(e)})),function(e){return n.apply(this,arguments)})},{key:"removeFile",value:(t=(0,f.default)((function*(e){return this.logger.trace(`Remove file from "${e}"`),this.fileBackend.removeFile(e)})),function(e){return t.apply(this,arguments)})},{key:"storeFile",value:(e=(0,f.default)((function*(e,t){return this.logger.trace(`Store blob to file "${t}"`),this.fileBackend.storeFile(e,t)})),function(t,n){return e.apply(this,arguments)})},{key:"toAbsolutePath",value:function(e){return this.fileBackend.toAbsolutePath(e)}}]);var e,t,n,r,i,a,o,u})(),xn=(function(){return(0,b.default)((function e(){(0,m.default)(this,e)}),[{key:"supported",value:function(){return!1}},{key:"runTransaction",value:(t=(0,f.default)((function*(e){throw new C.A("Unsupported instruction has no transaction")})),function(e){return t.apply(this,arguments)})},{key:"getDescription",value:function(){throw new C.A("Unsupported instruction has no description")}},{key:"postMigrate",value:(e=(0,f.default)((function*(){return Promise.resolve()})),function(){return e.apply(this,arguments)})}]);var e,t})(),En=(function(e){function t(){return(0,m.default)(this,t),fe(this,t,arguments)}return(0,y.default)(t,e),(0,b.default)(t)})(xn),On=(function(e){function t(){return(0,m.default)(this,t),fe(this,t,arguments)}return(0,y.default)(t,e),(0,b.default)(t)})(xn),Cn=(function(e){function t(){return(0,m.default)(this,t),fe(this,t,arguments)}return(0,y.default)(t,e),(0,b.default)(t)})(xn),An=(function(e){function t(){return(0,m.default)(this,t),fe(this,t,arguments)}return(0,y.default)(t,e),(0,b.default)(t)})(xn),Tn=(function(e){function t(){return(0,m.default)(this,t),fe(this,t,arguments)}return(0,y.default)(t,e),(0,b.default)(t)})(xn),$n=(function(e){function t(e,n){var r;return(0,m.default)(this,t),(r=fe(this,t)).entity=e,r.fileType=n,r.filesToDelete=[],r}return(0,y.default)(t,e),(0,b.default)(t,[{key:"supported",value:function(){return!0}},{key:"getDescription",value:function(){return`Drop table '${this.entity}'.`}},{key:"runTransaction",value:(r=(0,f.default)((function*(e){var t=this;"none"!==this.fileType&&(yield e.retrieveGuidsAndChangeDatesForFileObjects(this.entity)).forEach((function(e){var n={guid:e.guid,changedDate:e.changedDate,isThumb:!1};t.filesToDelete.push(n),"image"===t.fileType&&t.filesToDelete.push(Object.assign({},n,{isThumb:!0}))})),yield e.dropEntityTables([this.entity])})),function(e){return r.apply(this,arguments)})},{key:"postMigrate",value:(n=(0,f.default)((function*(){(0,P.o)().deleteFiles(this.filesToDelete)})),function(){return n.apply(this,arguments)})}]);var n,r})(xn),Pn=(function(e){function t(e,n){var r;return(0,m.default)(this,t),(r=fe(this,t)).entity=e,r.droppedAttributes=n,r}return(0,y.default)(t,e),(0,b.default)(t,[{key:"supported",value:function(){return!0}},{key:"getDescription",value:function(){return`Drop columns (${this.droppedAttributes.join(", ")}) from '${this.entity}'.`}},{key:"runTransaction",value:(n=(0,f.default)((function*(e){yield e.changeEntityTable(this.entity,[],this.droppedAttributes)})),function(e){return n.apply(this,arguments)})}]);var n})(xn),In=(function(e){function t(e,n,r){var i;return(0,m.default)(this,t),(i=fe(this,t)).action=e,i.entity=n,i.index=r,i}return(0,y.default)(t,e),(0,b.default)(t,[{key:"supported",value:function(){return!0}},{key:"getDescription",value:function(){return`${this.action} index (${this.index.attributes.map((function(e){return`${e.name}_${e.direction}`}))}) from '${this.entity}'`}}])})(xn),Nn=(function(e){function t(e,n){return(0,m.default)(this,t),fe(this,t,["Add",e,n])}return(0,y.default)(t,e),(0,b.default)(t,[{key:"runTransaction",value:(n=(0,f.default)((function*(e){yield e.createIndex(this.entity,this.index)})),function(e){return n.apply(this,arguments)})}]);var n})(In),Dn=(function(e){function t(e,n){return(0,m.default)(this,t),fe(this,t,["Drop",e,n])}return(0,y.default)(t,e),(0,b.default)(t,[{key:"runTransaction",value:(n=(0,f.default)((function*(e){yield e.dropIndex(this.entity,this.index)})),function(e){return n.apply(this,arguments)})}]);var n})(In);function Mn(e,t){var n=(0,C.c)((function(e){return(0,C.e)(e.modelId)})),r=(function(e,t){var n=new Set([].concat((0,c.default)(Object.keys(e)),(0,c.default)(Object.keys(t))));return Array.from(n).reduce((function(n,r){return e[r]&&t[r]?n.comparableMetadata.set(r,{oldMetadata:e[r],newMetadata:t[r]}):e[r]&&!t[r]?n.droppedMetadata.push(e[r]):!e[r]&&t[r]&&n.addedMetadata.push(t[r]),n}),{comparableMetadata:new Map,droppedMetadata:[],addedMetadata:[]})})(n(e),n(t)),i=r.droppedMetadata,a=r.addedMetadata,o=r.comparableMetadata,u=[],s=a.map((function(e){return e.objectType}));0!==i.length&&u.push.apply(u,(0,c.default)(i.map((function(e){return new $n(e.objectType,Bn(e))})))),0!==s.length&&u.push.apply(u,(0,c.default)(s.map((function(e){return new On}))));var l=(function(e){var t=[];for(var n of e){var r=(0,k.default)(n,2)[1],i=r.oldMetadata,a=r.newMetadata;i.objectType!==a.objectType&&t.push(new En),t.push.apply(t,(0,c.default)(_n(i.objectType,i.attributes,a.attributes))),t.push.apply(t,(0,c.default)(Rn(i.objectType,i.indices,a.indices)))}return t})(o);return u.push.apply(u,(0,c.default)(l)),u}function Bn(e){return Ln(e)?(function(e){return Ln(e)&&("System.Image"===e.objectType||e.properties.superclasses.includes("System.Image"))})(e)?"image":"file":"none"}function _n(e,t,n){var r=(0,C.c)((function(e){var t=(0,k.default)(e,2)[1];return(0,C.e)(t.modelId)})),i=r(Object.entries(t)),a=r(Object.entries(n)),o=new Set([].concat((0,c.default)(Object.keys(i)),(0,c.default)(Object.keys(a)))),u=[],s=Array.from(o).reduce((function(e,t){return i[t]&&a[t]?(i[t][0]!==a[t][0]&&e.renamedAttributes.push([i[t][0],a[t][0]]),i[t][1].type!==a[t][1].type&&e.typeChangeAttributes.push([i[t][0],i[t][1].type,a[t][1].type])):i[t]&&!a[t]?e.droppedAttributes.push(i[t][0]):!i[t]&&a[t]&&e.addedAttributes.push([a[t][0],a[t][1].type]),e}),{droppedAttributes:[],addedAttributes:[],renamedAttributes:[],typeChangeAttributes:[]}),l=s.droppedAttributes,d=s.renamedAttributes,f=s.typeChangeAttributes,h=s.addedAttributes;return 0!==l.length&&u.push(new Pn(e,l)),0!==d.length&&u.push(new Cn),0!==f.length&&u.push(new An),0!==h.length&&u.push(new Tn),u}function Rn(e,t,n){var r=(0,C.c)((function(e){return e.attributes.map((function(e){return`${e.name}_${e.direction}`})).join("-")})),i=r(t),a=r(n),o=Object.keys(i).filter((function(e){return!a[e]})),u=Object.keys(a).filter((function(e){return!i[e]}));return[].concat((0,c.default)(o.map((function(e){return i[e]})).map((function(t){return new Dn(e,t)}))),(0,c.default)(u.map((function(e){return a[e]})).map((function(t){return new Nn(e,t)}))))}function Ln(e){return"System.FileDocument"===e.objectType||e.properties.superclasses.includes("System.FileDocument")}function Un(e,t){var n=t.sync_config;if(!n)return{shouldSync:!1};if(!e)return{shouldSync:!0};if(e.bundleVersion===t.bundleVersion)return{shouldSync:!1};var r=e.sync_config,i=new Set((0,C.e)(null==r?void 0:r.schema)),a=e.metadata.filter((function(e){var t=e.objectType;return i.has(t)})),o=new Set((0,C.e)(n.schema)),u=t.metadata.filter((function(e){var t=e.objectType;return o.has(t)}));if(![].concat((0,c.default)(a),(0,c.default)(u)).every((function(e){return void 0!==e.modelId&&Object.values(e.attributes).every((function(e){return void 0!==e.modelId}))}))){var s=w.j.structural;return s(r,n)?{shouldSync:!n.schema.map((function(n){return{oldAttrs:e.metadata.find((function(e){return e.objectType===n})).attributes,newAttrs:t.metadata.find((function(e){return e.objectType===n})).attributes}})).every((function(e){var t=e.oldAttrs,n=e.newAttrs;return s(t,n)}))}:{shouldSync:!0}}var l=(function(e,t,n,r){if(!t.online)return[];var i=new Set((0,C.e)(r.online)),a=n.reduce((function(e,t){var n=t.objectType,r=t.modelId;return i.has(n)&&e.add((0,C.e)(r)),e}),new Set),o=new Set(t.online),u=e.reduce((function(e,t){var n=(0,k.default)(e,2),r=n[0],i=n[1],a=t.objectType,u=t.modelId;return r.set((0,C.e)(u),a),o.has(a)&&i.set((0,C.e)(u),a),[r,i]}),[new Map,new Map]),s=(0,k.default)(u,2),l=s[0],c=s[1],d=[];for(var f of a)l.has(f)&&(c.has(f)||d.push((0,C.e)(l.get(f))));return d})(a,(0,C.e)(r),u,(0,C.e)(n)),d=(0,C.c)((function(e){return(0,C.e)(e.objectType)}))(a);if(l.length>0)return{shouldSync:!0,cleanupInstructions:l.map((function(e){return new $n(e,Bn((0,C.e)(d[e])))}))};var f=Mn(a,u);return 0===f.length?{shouldSync:!1}:f.every((function(e){return e.supported()}))?{shouldSync:!1,dbModelSyncInstructions:f}:{shouldSync:!0}}function Fn(e,t,n,r){return Gn.apply(this,arguments)}function Gn(){return Gn=(0,f.default)((function*(e,t,n,r){if(e.shouldSync)yield u(),e.cleanupInstructions&&(yield(0,P.o)().executeDBModelSyncInstructions(e.cleanupInstructions,t));else if(e.dbModelSyncInstructions){var i=e.dbModelSyncInstructions.length>1;r.info(`Found ${e.dbModelSyncInstructions.length} instruction${i?"s":""} to update the local database to match the new domain model.`);try{var a=new I.b;r.info("Updating the local database to match the new domain model."),yield(0,P.o)().executeDBModelSyncInstructions(e.dbModelSyncInstructions,t);var o=a.measure();r.info(`Updating the local database to match the new domain model completed in ${o} milliseconds.`)}catch(e){r.warn("An error occurred while updating the local database schema. Falling back to a full startup synchronization.",e),yield u()}}function u(){return s.apply(this,arguments)}function s(){return s=(0,f.default)((function*(){var e=new I.b,i=(0,A.n)(n,t);yield(0,P.o)().runFullSynchronization(!0,i);var a=e.measure();r.log(a.ms>A.o?"warning":"info",`Startup synchronization completed in ${a} milliseconds.`)})),s.apply(this,arguments)}})),Gn.apply(this,arguments)}var Hn=S.NativeModules.RNMendixEncryptedStorage?Object.assign({},S.NativeModules.RNMendixEncryptedStorage):void 0,zn=!!Hn,Vn=zn&&Hn.IS_ENCRYPTED;if(zn){var qn,Wn=null==(qn=S.NativeModules.RNMendixEncryptedStorage)?void 0:qn.getItem,Jn=!1;S.NativeModules.RNMendixEncryptedStorage.getItem=function(e){if(!Jn)throw new Error("Insecure access to RNMendixEncryptedStorage");return Wn.call(S.NativeModules.RNMendixEncryptedStorage,e)},Hn.getItem=function(e){try{return Jn=!0,S.NativeModules.RNMendixEncryptedStorage.getItem(e)}finally{Jn=!1}}}var Qn=(function(){return(0,b.default)((function e(t,n){(0,m.default)(this,e),this.key=t,this.store=n}),[{key:"get",value:(a=(0,f.default)((function*(){return yield this.getItemSafe(this.key)})),function(){return a.apply(this,arguments)})},{key:"set",value:(i=(0,f.default)((function*(e){yield this.setItemSafe(this.key,e)})),function(e){return i.apply(this,arguments)})},{key:"remove",value:(r=(0,f.default)((function*(){yield this.removeItemSafe(this.key)})),function(){return r.apply(this,arguments)})},{key:"setItemSafe",value:(n=(0,f.default)((function*(e,t){try{yield this.store.setItem(e,t)}catch(e){O.L.get().getLogger().warn(e)}})),function(e,t){return n.apply(this,arguments)})},{key:"getItemSafe",value:(t=(0,f.default)((function*(e){try{var t;return null!=(t=yield this.store.getItem(e))?t:void 0}catch(e){return void O.L.get().getLogger().warn(e)}})),function(e){return t.apply(this,arguments)})},{key:"removeItemSafe",value:(e=(0,f.default)((function*(e){try{return yield this.store.removeItem(e)}catch(e){O.L.get().getLogger().warn(e)}})),function(t){return e.apply(this,arguments)})}]);var e,t,n,r,i,a})();function Kn(e){return Xn.apply(this,arguments)}function Xn(){return Xn=(0,f.default)((function*(e){if(!zn)throw new Error("Encrypted storage not supported.");Vn||O.L.get().getLogger().warn("An encrypted storage was requested but the mobile device does not support it. Falling back to unencrypted.");var t,n=Hn,r=Zn(e);return yield(t=(0,f.default)((function*(e,t){try{if(yield t.getItem(e))return}catch(e){}var n=yield Z.default.getItem(e);n&&(yield t.setItem(e,n),yield Z.default.removeItem(e))})),function(e,n){return t.apply(this,arguments)})(r,n),new Qn(r,n)})),Xn.apply(this,arguments)}function Yn(e){return new Qn(Zn(e),Z.default)}function Zn(e){var t=ut.APP_NAME;return`${t?t+"_":""}${e}`}var er="android"===S.Platform.OS&&!!L.N.SUPPORTS_DIRECTORY_MOVE||"ios"===S.Platform.OS;FormData.prototype.append=function(e,t,n){"blob"===e&&t.nativePayload&&(t=t.nativePayload,n&&(t.name=n)),this._parts.push([e,t])};var tr,nr=(function(){return(0,b.default)((function e(t,n,r){(0,m.default)(this,e),this.rootDirectory=t,this.encryptionEnabled=n,this.downloadQueue=new J.A((function(){var e=(0,f.default)((function*(e,t){var n=yield(0,I.g)(e,"blob");yield L.N.save(n.data,(0,L.r)(t)),n.close()}));return function(t,n){return e.apply(this,arguments)}})(),"android"===S.Platform.OS?5:"ios"===S.Platform.OS?6:void 0),n?!0===L.N.SUPPORTS_ENCRYPTION?(L.N.setEncryptionEnabled(!0),r.trace("Encrypting user files and images is enabled")):r.warn("Encrypting user files and images is enabled, however, the current native template does not support this functionality. Please update your app's native template to support encryption. User files and images will not be encrypted."):r.trace("Encrypting user files and images is disabled")}),[{key:"listDir",value:(s=(0,f.default)((function*(e){return L.N.list((0,L.r)(e))})),function(e){return s.apply(this,arguments)})},{key:"moveDir",value:(u=(0,f.default)((function*(e,t){return L.N.move(e,t)})),function(e,t){return u.apply(this,arguments)})},{key:"removeDir",value:(o=(0,f.default)((function*(e){return L.N.remove((0,L.r)(e))})),function(e){return o.apply(this,arguments)})},{key:"readFile",value:(a=(0,f.default)((function*(e){var t=new Blob;return t.nativePayload={uri:`file://${(0,L.r)(e)}`,name:e.substring(e.lastIndexOf("/")+1),type:"*/*"},t})),function(e){return a.apply(this,arguments)})},{key:"storeFile",value:(i=(0,f.default)((function*(e,t){yield L.N.save(e.data,(0,L.r)(t)),e.close()})),function(e,t){return i.apply(this,arguments)})},{key:"moveFile",value:(r=(0,f.default)((function*(e,t){return L.N.move((0,L.r)(e),(0,L.r)(t))})),function(e,t){return r.apply(this,arguments)})},{key:"removeFile",value:(n=(0,f.default)((function*(e){return L.N.remove((0,L.r)(e))})),function(e){return n.apply(this,arguments)})},{key:"downloadFile",value:(t=(0,f.default)((function*(e,t){return this.downloadQueue.addToQueue(e,t)})),function(e,n){return t.apply(this,arguments)})},{key:"toAbsolutePath",value:function(e){return(0,L.r)((0,Q.t)(this.rootDirectory,e))}}],[{key:"readAsDataURL",value:(e=(0,f.default)((function*(e){return L.N.readAsDataURL((0,L.r)(e))})),function(t){return e.apply(this,arguments)})}]);var e,t,n,r,i,a,o,u,s})(),rr=(function(){var e=(0,f.default)((function*(){var e;return tr||(tr=yield(e="session",zn?Kn(e):(O.L.get().getLogger().warn("The client supports encryption but the required dependencies are missing. Rebuild the app with latest dependencies to enable encryption"),Yn(e)))),tr}));return function(){return e.apply(this,arguments)}})(),ir={sessionWillStart:[]},ar=(a.hooks={onSessionWillStart:function(e){return ir.sessionWillStart.push(e)}},S.NativeModules.NativeReloadHandler),or=S.default.NativeModules,ur=/^(\s|;)*(?:alter|create|delete|drop|insert|reindex|replace|update)/i,sr={};function lr(e,t){var n;return t||(t=0),(n=e)||((n=new Error("a plugin had an error but provided no response")).code=t),"string"==typeof n&&((n=new Error(e)).code=t),!n.code&&n.message&&(n.code=t),n.code||n.message||((n=new Error("an unknown error was returned: "+JSON.stringify(n))).code=t),n}var cr,dr={exec:function(e,t,n,r){dr.DEBUG&&dr.log("SQLite."+e+"("+JSON.stringify(t)+")"),or.SQLite[e](t,n,r)},log:function(){var e;dr.DEBUG&&(e=console).log.apply(e,arguments)},DEBUG:!1};function fr(e){if(!e||!e.name)throw lr("Cannot create a SQLitePlugin db instance without a db name");var t=e.name;if("string"!=typeof t)throw lr("sqlite plugin database name must be a string");this.openargs=e,this.dbname=t}function hr(e,t,n,r){return pr.apply(this,arguments)}function pr(){return(pr=(0,f.default)((function*(e,t,n,r){var i;if(!e.openDBs[e.dbname])return Promise.reject(lr("database not open"));if(!(e.dbname in e.openDBs))throw new Error("database is closed!");if("INIT"===e.openDBs[e.dbname])throw new Error("database is still opening");var a=new gr(e,n,r),o=null!=(i=sr[e.dbname])?i:sr[e.dbname]={queue:Promise.resolve(),inProgress:!1},u=o.queue.then((0,f.default)((function*(){yield a.start();try{var e=yield t(a);return yield a.finish(),e}catch(e){throw yield a.abort(),e}})));return o.queue=u.catch((function(){})),u}))).apply(this,arguments)}function gr(e,t,n){this.db=e,this.txlock=t,this.readOnly=n,this.queue=Promise.resolve(),this.finalized=!1,this.started=!1}function vr(e,t,n,r){return yr.apply(this,arguments)}function yr(){return(yr=(0,f.default)((function*(e,t,n,r){var i=e.queue.then((function(){sr[t].inProgress=!0;var i="string"==typeof n?n:n.toString(),a=(function(e){return e&&e.constructor===Array?e.map((function(e){var t=typeof e;if(null==e||"number"===t||"string"===t)return e;if("boolean"===t)return~~e;if("function"!==t)return dr.warn("addStatement - parameter of type <"+t+"> converted to string using toString()"),e.toString();var n="Unsupported parameter type <"+t+"> found in addStatement()";throw dr.error(n),lr(n)})):[]})(r);return new Promise((function(n,r){dr.exec("backgroundExecuteSqlBatch",{dbargs:{dbname:t},executes:[{qid:1111,sql:i,params:a}]},(function(r){var i=r[0].result,a=i.rows||[],o={rows:{item:function(e){return a[e]},raw:function(){return a.slice()},length:a.length},rowsAffected:i.rowsAffected||0,insertId:i.insertId||void 0};sr[t].inProgress=!1,n([e,o])}),(function(e){var n=e[0].result;sr[t].inProgress=!1,r(lr(n))}))}))}));return e.queue=i.catch((function(){})),i}))).apply(this,arguments)}function mr(){}fr.prototype.openDBs={},fr.prototype.transaction=(function(){var e=(0,f.default)((function*(e){return hr(this,e,!0,!1)}));return function(t){return e.apply(this,arguments)}})(),fr.prototype.readTransaction=(function(){var e=(0,f.default)((function*(e){return hr(this,e,!1,!0)}));return function(t){return e.apply(this,arguments)}})(),fr.prototype.executeSql=function(e,t){return this.transaction((function(n){return n.executeSql(e,t)}))},fr.prototype.open=(0,f.default)((function*(){var e=this;return this.dbname in this.openDBs&&"OPEN"===this.openDBs[this.dbname]?(dr.log("database already open: "+this.dbname),Promise.resolve(this)):(dr.log("OPEN database: "+this.dbname),new Promise((function(t,n){var r,i=(r=e,function(){r.openDBs[r.dbname]||dr.log("database was closed during open operation"),r.dbname in r.openDBs&&(r.openDBs[r.dbname]="OPEN"),t(r)}),a=(function(e){return function(){dr.log("OPEN database: "+e.dbname+" failed"),delete e.openDBs[e.dbname],n(lr("Could not open database"))}})(e);e.openDBs[e.dbname]="INIT",dr.exec("open",e.openargs,i,a)})))})),fr.prototype.close=(0,f.default)((function*(){var e=this;if(this.dbname in this.openDBs)return sr[this.dbname]&&sr[this.dbname].inProgress?(dr.log("cannot close: transaction is in progress"),Promise.reject(lr("database cannot be closed while a transaction is in progress"))):(dr.log("CLOSE database: "+this.dbname),delete this.openDBs[this.dbname],sr[this.dbname]?dr.log("closing db with transaction queue length: "+sr[this.dbname].queue.length):dr.log("closing db with no transaction lock state"),new Promise((function(t,n){dr.exec("close",{path:e.dbname},t,n)})));var t="cannot close: database is not open";return dr.log(t),Promise.reject(t)})),fr.prototype.attach=function(e,t){var n=this;return this.dbname in this.openDBs?sr[this.dbname]&&sr[this.dbname].inProgress?(dr.log("cannot attach: transaction is in progress"),Promise.reject(lr("database cannot be attached while a transaction is in progress"))):(dr.log("ATTACH database "+e+" to "+this.dbname+" with alias "+t),new Promise((function(r,i){dr.exec("attach",{path:n.dbname,dbName:e,dbAlias:t},r,i)}))):Promise.reject("cannot attach: database is not open")},fr.prototype.detach=function(e){var t=this;if(this.dbname in this.openDBs)return sr[this.dbname]&&sr[this.dbname].inProgress?(dr.log("cannot attach: transaction is in progress"),Promise.reject(lr("database cannot be attached while a transaction is in progress"))):(dr.log("DETACH database "+e+" from "+this.dbname),new Promise((function(n,r){t.executeSql("DETACH DATABASE "+e,[],n,(function(e){dr.log("ERR",e),r(e)}))})));var n="cannot attach: database is not open";return dr.log(n),Promise.reject(n)},gr.prototype.start=(0,f.default)((function*(){return this.started?Promise.reject({message:"InvalidStateError: Transaction already started."}):(this.txlock&&(yield vr(this,this.db.dbname,"BEGIN",[])),this.started=!0,Promise.resolve())})),gr.prototype.executeSql=function(e,t){return this.started?this.finalized?Promise.reject({message:"InvalidStateError: DOM Exception 11: This transaction is already finalized. Transactions are committed after its success or failure handlers are called.",code:11}):this.readOnly&&ur.test(e)?Promise.reject({message:"invalid sql for a read-only transaction"}):vr(this,this.db.dbname,e,t):Promise.reject({message:"InvalidStateError: Transaction not started yet."})},gr.prototype.abort=(0,f.default)((function*(){if(!this.started)return Promise.reject({message:"InvalidStateError: Transaction not started yet."});if(!this.finalized){if(this.finalized=!0,sr[this.db.dbname].inProgress=!1,this.txlock)try{yield vr(this,this.db.dbname,"ROLLBACK",[])}catch(e){return Promise.reject(lr("error while trying to roll back: "+e.message,e.code))}return this}})),gr.prototype.finish=(0,f.default)((function*(){if(!this.started)return Promise.reject({message:"InvalidStateError: Transaction not started yet."});if(!this.finalized){if(this.finalized=!0,sr[this.db.dbname].inProgress=!1,this.txlock)try{yield vr(this,this.db.dbname,"COMMIT",[])}catch(e){return Promise.reject(lr("error while trying to roll back: "+e.message,e.code))}return this}})),dblocations={default:"nosync",Documents:"docs",Library:"libs",Shared:"shared"},mr.prototype.DEBUG=function(e){dr.log("Setting debug to:",e),dr.DEBUG=e},mr.prototype.openDatabase=(cr=(function(){var e=(0,f.default)((function*(e){if(e.length<1)return null;var t,n=e[0];n.constructor===String?t={name:n,dblocation:dblocations.default}:((t=n).readOnly||t.location&&t.location.constructor===String&&dblocations.hasOwnProperty(t.location)?t.dblocation=dblocations[t.location]:t.dblocation=dblocations.default,t.createFromLocation&&(1===t.createFromLocation?t.assetFilename="1":"string"==typeof t.createFromLocation&&(t.assetFilename=t.createFromLocation)),t.androidDatabaseImplementation&&2===t.androidDatabaseImplementation&&(t.androidOldDatabaseImplementation=1),t.androidLockWorkaround&&1===t.androidLockWorkaround&&(t.androidBugWorkaround=1));var r=new fr(t);try{var i=yield r.open();return dr.log("DB opened: "+t.name),i}catch(e){throw dr.log(e.message),e}}));return function(t){return e.apply(this,arguments)}})(),function(){var e=arguments.length;if(e){for(var t=[];e--;)t[e]=arguments[e];return cr.call(this,t)}return cr.call(this,[])}),mr.prototype.echoTest=function(){return new Promise((function(e,t){dr.exec("echoStringValue",{value:"test-string"},(function(n){return"test-string"===n?e():t(`Mismatch: got: ${n} , expected: test-string`)}),t)}))},mr.prototype.deleteDatabase=function(e){var t={};if(e.constructor===String)t.path=e,t.dblocation=dblocations.default;else{if(!e||!e.name)throw new Error("Please specify db name via name property");t.path=e.name,e.location&&e.location.constructor===String&&dblocations.hasOwnProperty(e.location)?t.dblocation=dblocations[e.location]:t.dblocation=dblocations.default}return new Promise((function(e,n){dr.exec("delete",t,(function(n){return delete fr.prototype.openDBs[t.path],e(n)}),n)}))};var br=(0,V.g)(new mr);function kr(e){return[].concat((0,c.default)((t=[{name:A.G,type:"text"},{name:A.T,type:"text"},{name:A.u,type:"text"},{name:A.R,type:"text"}],n=(0,Y.toUserScopedName)(A.M),r=[jr(`idx_${n}_tableName_withSyncId`,n,{name:A.T})+` WHERE [${A.u}] IS NOT NULL`,[]],[Er(n,t,A.G),r])),(0,c.default)(e.flatMap((function(e){return[wr(e)].concat((0,c.default)(Sr(e)))}))));var t,n,r}function wr(e){var t=(0,z.b)(e).map((function(e){return{name:(0,A.t)(e.name),type:Or(e.type)}})).concat({name:A.G,type:"text"});return Er((0,Y.toUserScopedName)((0,A.t)(e)),t,A.G)}function Sr(e){var t,n,r=(0,z.b)(e).filter((function(e){return"ObjectReference"===e.type})),i=(0,Y.toUserScopedName)((0,A.t)(e));return[].concat((0,c.default)(r.map((function(e){var t=e.name;return[jr(`idx_${i}_${(0,A.t)(t)}`,i,{name:t}),[]]}))),(0,c.default)(null!=(t=null==(n=(0,z.g)(e))?void 0:n.indices.map((function(t){return xr(e,t)})))?t:[]))}function jr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i990)throw new Error(`Unable to create table '${e}' with more than 990 columns.`);return[[`CREATE TABLE IF NOT EXISTS "${e}" (`,t.map((function(e){return[`"${e.name}"`,e.type,"text"===e.type?"COLLATE NOCASE":"",e.name===n?"PRIMARY KEY":""].join(" ").trim()})).join(", "),")"].join(""),[]]}function Or(e){switch(e){case"Decimal":case"Enum":case"HashString":case"Integer":case"Long":case"ObjectReference":case"String":case"EnumSet":case"ObjectReferenceSet":return"text";case"AutoNumber":case"Boolean":case"DateTime":return"integer";case"Binary":return"blob"}}function Cr(e){return[`DELETE FROM "${(0,Y.toUserScopedName)(e)}"`,[]]}function Ar(e){return[`DROP TABLE IF EXISTS "${(0,Y.toUserScopedName)(e)}"`,[]]}function Tr(e){var t=e.reduce((function(e,t){var n;return e[t.objectType]=(null!=(n=e[t.objectType])?n:[]).concat(t),e}),{});return Object.entries(t).flatMap((function(e){var t,n=(0,k.default)(e,2),r=n[0],i=n[1],a=(0,z.g)(r),o=Object.values(null!=(t=null==a?void 0:a.attributes)?t:{}),u=[`"${A.G}"`].concat((0,c.default)(o.map((function(e){return`"${(0,A.t)(e.name)}"`})))),s=new Array(u.length).fill("?").join(", ");return(0,A.y)(i,u.length).flatMap((function(e){var t=new Array(e.length).fill(`(${s})`).join(", ");return[[`INSERT OR REPLACE INTO "${(0,Y.toUserScopedName)((0,A.t)(r))}" (${u.join(", ")}) VALUES ${t}`,e.flatMap((function(e){return[e.guid].concat((0,c.default)(o.map((function(t){var n,r;return(0,A.r)(null!=(n=null==(r=e.attributes[t.name])?void 0:r.value)?n:null,t.type)}))))}))]]}))}))}function $r(e){return(0,A.y)(e,4).flatMap((function(e){var t=new Array(e.length).fill("(?, ?, ?, ?)").join(", ");return[[`INSERT OR REPLACE INTO "${(0,Y.toUserScopedName)(A.M)}" ("${A.G}", "${A.T}", "${A.u}", "${A.R}") VALUES ${t}`,e.flatMap((function(e){var t,n=Object.entries(e.attributes).filter((function(e){return(0,k.default)(e,2)[1].readonly})).map((function(e){return(0,k.default)(e,1)[0]}));return[e.guid,e.objectType,null!=(t=e.syncId)?t:null,JSON.stringify(n)]}))]]}))}function Pr(e,t){if(0===t.length)throw new C.A("No guids specified");return(0,A.y)(t).map((function(t){var n=new Array(t.length).fill("?").join(", "),r=(0,A.t)(e),i=(0,Y.toUserScopedName)(r),a=(0,Y.toUserScopedName)(A.M);return[[`SELECT ${r}.*,`,A.z.map((function(e){return`${A.M}.[${e}] AS "${A.M}.${e}"`})).join(", "),`FROM "${i}" AS ${r}`,`JOIN ${a} AS ${A.M} USING (${A.G})`,`WHERE ${A.M}.${A.G} IN (${n})`].join(" "),t]}))}var Ir=(function(){return(0,b.default)((function e(t){(0,m.default)(this,e),this.attrs=[],this.tableNameAlias=(0,A.t)(t),this.tableName=(0,Y.toUserScopedName)(this.tableNameAlias),this.fromClause=`FROM ${this.tableName} AS ${this.tableNameAlias}`}),[{key:"filtered",value:function(e){var t=(0,A.A)(e,this.tableNameAlias),n=t.type,r=t.expr,i=t.params;return"null"!==n&&(this.whereClause=`WHERE ${r}`,this.bindParameters=i),this}},{key:"sorted",value:function(e){var t=this,n=e.map((function(e){var n=(0,k.default)(e,2),r=n[0],i=n[1];return`${t.tableNameAlias}.[${(0,A.t)(r)}] ${i}`})).join(", ");return this.orderClause=n?`ORDER BY ${n}`:"",this}},{key:"paged",value:function(e,t){return this.limitClause=`LIMIT ${void 0!==t&&t>0?t:-1} OFFSET ${null!=e?e:0}`,this}},{key:"attributes",value:function(e){return this.attrs=e,this}},{key:"buildSelectWithMeta",value:function(){var e,t=this,n=(0,Y.toUserScopedName)(A.M);return[["SELECT",this.attrs.map((function(e){return`${t.tableNameAlias}.[${(0,A.t)(e)}] AS "${(0,A.t)(e)}"`})).concat(A.z.map((function(e){return`${A.M}.[${e}] AS "${A.M}.${e}"`}))).join(", "),this.fromClause,`JOIN ${n} AS ${A.M} USING (${A.G})`,this.whereClause,this.orderClause,this.limitClause].filter((function(e){return e})).join(" "),null!=(e=this.bindParameters)?e:[]]}},{key:"buildCount",value:function(){var e;return[['SELECT COUNT("guid") AS count',this.fromClause,this.whereClause].filter((function(e){return e})).join(" "),null!=(e=this.bindParameters)?e:[]]}}])})();function Nr(e,t){var n=void 0!==t?t.name:e[`${A.M}.${A.T}`],r={guid:e[`${A.M}.${A.G}`],attributes:{},objectType:n},i=JSON.parse(e[`${A.M}.${A.R}`])||[];return Object.keys(e).filter((function(e){return!e.startsWith(A.M)&&e!==A.G})).forEach((function(n){var a,o,u=(0,A.B)(n),s=null!=(a=null==t||null==(o=t.attributes[u])?void 0:o.type)?a:"String";r.attributes[u]=Object.assign({value:(0,A.E)(e[n],s)},i.includes(u)?{readonly:!0}:{})})),r}var Dr=(function(){function e(t){(0,m.default)(this,e),this.database=t,this.lastUniqueId=0,this.queryListeners=[]}return(0,b.default)(e,[{key:"registerQueryListener",value:function(e){this.queryListeners.push(e)}},{key:"usingReadTransaction",value:(c=(0,f.default)((function*(e){var t=this;return this.database.inTransaction((function(){var n=(0,f.default)((function*(n){return e(new _r(t,n))}));return function(e){return n.apply(this,arguments)}})())})),function(e){return c.apply(this,arguments)})},{key:"usingWriteTransaction",value:(l=(0,f.default)((function*(e){var t=this;return this.database.inTransaction((function(){var n=(0,f.default)((function*(n){return e(new _r(t,n))}));return function(e){return n.apply(this,arguments)}})())})),function(e){return l.apply(this,arguments)})},{key:"delete",value:(s=(0,f.default)((function*(e){return this.usingWriteTransaction((function(t){return t.delete(e)}))})),function(e){return s.apply(this,arguments)})},{key:"runMigrations",value:(u=(0,f.default)((function*(e){var t=this,n=yield this.usingReadTransaction((function(e){return e.getDatabaseVersion()})),r=e.findIndex((function(e){return e.version===n})),i=-1===r?e:e.slice(r+1),a=function*(){yield o.apply(t.database);var e=(0,A.F)(A.D,o.version.toString());yield t.database.inTransaction((function(){var n=(0,f.default)((function*(n){return t.exec(n,e)}));return function(e){return n.apply(this,arguments)}})())};for(var o of i)yield*a()})),function(e){return u.apply(this,arguments)})},{key:"wrap",value:(o=(0,f.default)((function*(e,t){var n=this.queryListeners.map((function(t){return t(e)}));try{var r=yield t();return n.forEach((function(e){var t=(0,k.default)(e,2),n=t[0];return t[1],n(r)})),r}catch(e){return n.forEach((function(t){var n=(0,k.default)(t,2);return n[0],(0,n[1])(e)})),Promise.reject(e)}})),function(e,t){return o.apply(this,arguments)})},{key:"execute",value:(a=(0,f.default)((function*(e,t){var n=(0,k.default)(e,2),r=n[0],i=n[1];return this.wrap(`${r}\nParams: ${JSON.stringify(i)}`,(function(){return t(r,i)}))})),function(e,t){return a.apply(this,arguments)})},{key:"selectObjects",value:(i=(0,f.default)((function*(e,t){var n=this;if(t.length>0){if(2!==t.length||"string"!=typeof t[0]){var r=t.sort((function(e,t){var n=(0,k.default)(e,1)[0],r=(0,k.default)(t,1)[0];return n.localeCompare(r)}));return(yield Promise.all(r.map((function(t){return n.selectObjects(e,t)})))).flat()}return this.execute(t,(function(t,n){return e.selectObjects(t,Mr(n))}))}return[]})),function(e,t){return i.apply(this,arguments)})},{key:"selectValue",value:(r=(0,f.default)((function*(e,t){return this.execute(t,(function(t,n){return e.selectValue(t,Mr(n))}))})),function(e,t){return r.apply(this,arguments)})},{key:"exec",value:(n=(0,f.default)((function*(e,t){var n=this;return t.length>0?2!==t.length||"string"!=typeof t[0]?(yield Promise.all(t.map((function(e){return r(n,e)})))).reduce((function(e,t){return e+t}),0):r(this,t):0;function r(e,t){return i.apply(this,arguments)}function i(){return i=(0,f.default)((function*(t,n){return t.execute(n,(function(){var t=(0,f.default)((function*(t,n){return e.exec(t,Mr(n))}));return function(e,n){return t.apply(this,arguments)}})())})),i.apply(this,arguments)}})),function(e,t){return n.apply(this,arguments)})},{key:"getLowLevelAPI",value:function(){return this.database}},{key:"increaseAndGetUniqueId",value:(t=(0,f.default)((function*(t,n){var r=this.lastUniqueId%e.ID_BATCH_SIZE,i=e.ID_BATCH_SIZE-r;if(0===this.lastUniqueId||i3&&void 0!==arguments[3]&&arguments[3],i=Rr(e,t,n).buildSelectWithMeta();return this.retrieveMxObjectsFromSql(i,e,r)})),function(e,t,n){return l.apply(this,arguments)})},{key:"retrieveMxObjectMetasByGuids",value:(s=(0,f.default)((function*(e){var t=(0,A.L)(e);return(yield this.selectObjects(t)).map((function(e){return{guid:e[A.G],objectType:e[A.T]}}))})),function(e){return s.apply(this,arguments)})},{key:"buildEntityGuidsMap",value:(u=(0,f.default)((function*(e){if(0===e.length)return{};var t=yield this.retrieveMxObjectMetasByGuids(e);return 0===t.length?Promise.resolve({}):t.reduce((function(e,t){var n,r=t.objectType;return e[r]=(null!=(n=e[r])?n:[]).concat(t.guid),e}),{})})),function(e){return u.apply(this,arguments)})},{key:"retrieveMxObjectByGuids",value:(o=(0,f.default)((function*(e){var t=yield this.buildEntityGuidsMap(e),n=Object.entries(t).flatMap((function(e){var t=(0,k.default)(e,2);return Pr(t[0],t[1])}));return this.retrieveMxObjectsFromSql(n)})),function(e){return o.apply(this,arguments)})},{key:"retrieveMxObjectsByReferrals",value:(a=(0,f.default)((function*(e,t,n){var r,i,a,o=Rr(e,{type:"function",name:"=",parameters:[{type:"attribute",attribute:t,attributeType:null!=(r=null==(i=(0,z.g)(e))||null==(a=i.attributes[t])?void 0:a.type)?r:"String"},{type:"value",value:n,isGuid:!0}]}).buildSelectWithMeta();return this.retrieveMxObjectsFromSql(o,e)})),function(e,t,n){return a.apply(this,arguments)})},{key:"retrieveMxObjectsCount",value:(i=(0,f.default)((function*(e,t){var n=Rr(e,t).buildCount();return this.selectValue(n)})),function(e,t){return i.apply(this,arguments)})},{key:"retrieveSyncIds",value:(r=(0,f.default)((function*(e){var t=(0,A.O)(e);return(yield this.selectObjects(t)).map((function(e){return[e[A.G],e[A.u]]}))})),function(e){return r.apply(this,arguments)})},{key:"retrieveGuidsAndChangeDatesForFileObjects",value:(n=(0,f.default)((function*(e){var t=(function(e){var t=(0,A.t)((0,Y.toUserScopedName)(e));return[`SELECT ${[A.G,A.C].join(", ")} FROM "${t}" WHERE ${A.H} = 1`,[]]})(e);return(yield this.selectObjects(t)).map((function(e){return{guid:e[A.G],changedDate:e[A.C]}}))})),function(e){return n.apply(this,arguments)})},{key:"getDatabaseVersion",value:(t=(0,f.default)((function*(){var e=(0,A.Q)(A.D);return parseInt(yield this.selectValue(e),10)})),function(){return t.apply(this,arguments)})},{key:"checkTableExists",value:(e=(0,f.default)((function*(e){var t=(0,A.V)(e===A.s?A.s:(0,Y.toUserScopedName)(e));return 1===(yield this.selectValue(t))})),function(t){return e.apply(this,arguments)})}]);var e,t,n,r,i,a,o,u,s,l,c,d,h,p,g,v})(),_r=(function(e){function t(e,n){var r;return(0,m.default)(this,t),(r=fe(this,t,[e,n])).tx=n,r}return(0,y.default)(t,e),(0,b.default)(t,[{key:"exec",value:(P=(0,f.default)((function*(e){return this.database.exec(this.tx,e)})),function(e){return P.apply(this,arguments)})},{key:"ensureSchema",value:($=(0,f.default)((function*(e,t){var n,r,i,a,o=[].concat((0,c.default)(kr(e)),(0,c.default)((r=t,i=Er(A.s,[{name:A.v,type:"text"},{name:A.x,type:"text"}],A.v),a=(0,l.default)((0,l.default)((0,l.default)({},A.D,r.toString()),A.p,"0"),(0,Y.toUserScopedName)(A.q),"[]"),[i].concat((0,c.default)(Object.entries(a).map((function(e){var t=(0,k.default)(e,2),n=t[0],r=t[1];return[`INSERT OR IGNORE INTO "${A.s}" (name, value) VALUES (?,?)`,[n,r]]})))))),[(n=[{name:A.G,type:"text"},{name:A.u,type:"text"}],Er((0,Y.toUserScopedName)(A.w),n,A.G))]);yield this.exec(o)})),function(e,t){return $.apply(this,arguments)})},{key:"changeEntityTable",value:(T=(0,f.default)((function*(e,t,n){var r=`ALTER TABLE ${(0,Y.toUserScopedName)((0,A.t)(e))}`,i=[].concat((0,c.default)(t.map((function(e){var t=(0,k.default)(e,2),n=t[0],r=Or(t[1].type);return`ADD "${(0,A.t)(n)}" ${r} ${"text"===r?"COLLATE NOCASE":""}`}))),(0,c.default)(n.map((function(e){return`DROP "${(0,A.t)(e)}"`})))).map((function(e){return[`${r} ${e}`,[]]}));yield this.exec(i)})),function(e,t,n){return T.apply(this,arguments)})},{key:"createIndex",value:(O=(0,f.default)((function*(e,t){var n=xr(e,t);yield this.exec(n)})),function(e,t){return O.apply(this,arguments)})},{key:"dropIndex",value:(E=(0,f.default)((function*(e,t){var n=(function(e,t){return[`DROP INDEX IF EXISTS [idx_${(0,Y.toUserScopedName)((0,A.t)(e))}_${t.attributes.map((function(e){return`${(0,A.t)(e.name)}_${e.direction}`})).join("_")}]`,[]]})(e,t);yield this.exec(n)})),function(e,t){return E.apply(this,arguments)})},{key:"delete",value:(x=(0,f.default)((function*(e){var t=[].concat((0,c.default)(e.map((function(e){return Ar((0,A.t)(e))}))),[Ar(A.M),Ar(A.w)]);yield this.exec(t)})),function(e){return x.apply(this,arguments)})},{key:"clearDirtyFlags",value:(j=(0,f.default)((function*(e){var t=(0,A.I)(e);return this.exec(t)})),function(e){return j.apply(this,arguments)})},{key:"dropEntityTables",value:(S=(0,f.default)((function*(e){var t=[].concat((0,c.default)(e.map((function(e){return Ar((0,A.t)(e))}))),(0,c.default)((0,A.J)(e)));yield this.exec(t)})),function(e){return S.apply(this,arguments)})},{key:"deleteEntitiesByEntity",value:(w=(0,f.default)((function*(e){var t=[Cr((0,A.t)(e))].concat((0,c.default)((0,A.J)([e])));return this.exec(t)})),function(e){return w.apply(this,arguments)})},{key:"deleteEntitiesByGuid",value:(v=(0,f.default)((function*(e){var t=yield this.buildEntityGuidsMap(e),n=Object.entries(t).flatMap((function(e){var t=(0,k.default)(e,2);return(function(e,t){if(0===t.length)throw new C.A("No guids specified");return(0,A.y)(t).flatMap((function(t){var n=new Array(t.length).fill("?").join(", ");return[[`DELETE FROM "${(0,Y.toUserScopedName)((0,A.t)(e))}" WHERE ${A.G} IN (${n})`,t],[`DELETE FROM "${(0,Y.toUserScopedName)(A.M)}" WHERE ${A.T} = '${e}' AND ${A.G} IN (${n})`,t]]}))})(t[0],t[1])}));return this.exec(n)})),function(e){return v.apply(this,arguments)})},{key:"deleteTombstones",value:(g=(0,f.default)((function*(e){var t=(function(e){if(0===e.length)throw new C.A("No guids specified");return(0,A.y)(e).flatMap((function(e){var t=new Array(e.length).fill("?").join(", ");return[[`DELETE FROM "${(0,Y.toUserScopedName)(A.w)}" WHERE "${A.G}" IN (${t})`,e]]}))})(e);yield this.exec(t)})),function(e){return g.apply(this,arguments)})},{key:"insertTombstones",value:(p=(0,f.default)((function*(e){var t=(function(e){return(0,A.y)(e,2).flatMap((function(e){var t=new Array(e.length).fill("(?, ?)").join(", ");return[[`INSERT OR REPLACE INTO "${(0,Y.toUserScopedName)(A.w)}" ("${A.G}", "${A.u}") VALUES ${t}`,e.flatMap((function(e){return[e.guid,e.syncId]}))]]}))})(e);yield this.exec(t)})),function(e){return p.apply(this,arguments)})},{key:"truncateTombstones",value:(h=(0,f.default)((function*(){var e=Cr(A.w);yield this.exec(e)})),function(){return h.apply(this,arguments)})},{key:"increaseAndGetUniqueId",value:(d=(0,f.default)((function*(e){var t=this;return this.database.increaseAndGetUniqueId(e,(function(){var e=(0,f.default)((function*(e){var n=(0,A.P)(e),r=(0,A.Q)(A.p);return yield t.exec(n),parseInt(yield t.selectValue(r),10)}));return function(t){return e.apply(this,arguments)}})())})),function(e){return d.apply(this,arguments)})},{key:"insertMxObjects",value:(s=(0,f.default)((function*(e){return this.insertMxObjectsWithSyncId(e.map((function(e){return Object.assign({},e,{syncId:null})})))})),function(e){return s.apply(this,arguments)})},{key:"insertMxObjectsWithSyncId",value:(u=(0,f.default)((function*(e){var t,n=[].concat((0,c.default)(Tr(t=e)),(0,c.default)($r(t)));return this.exec(n)})),function(e){return u.apply(this,arguments)})},{key:"reset",value:(o=(0,f.default)((function*(){var e=Ar(A.M);yield this.exec(e)})),function(){return o.apply(this,arguments)})},{key:"updateEntityData",value:(a=(0,f.default)((function*(e,t,n,r){var i=(0,l.default)({},n,r),a=ke((0,C.e)((0,z.g)(e)),i,A.G,t);return this.exec(a)})),function(e,t,n,r){return a.apply(this,arguments)})},{key:"updateEntityDataReferringTo",value:(i=(0,f.default)((function*(e,t,n,r){var i=(function(e,t,n){return Object.entries(e).flatMap((function(e){var r=(0,k.default)(e,2),i=r[0];return r[1].map((function(e){var r=(0,l.default)({},e,n);return ke((0,C.e)((0,z.g)(i)),r,e,t)}))}))})((0,l.default)({},e,[n]),t,r);return this.exec(i)})),function(e,t,n,r){return i.apply(this,arguments)})},{key:"updateEntityGuids",value:(r=(0,f.default)((function*(e,t,n){var r=this,i=(0,Y.toUserScopedName)(A.M),a=yield Promise.all(e.filter((function(e){return t.has(e)})).flatMap((function(e){return[r.updateEntityData((0,C.e)(t.getEntity(e)),e,"guid",t.getGuid(e)),r.exec([`UPDATE ${i} SET ${A.G} = ? WHERE [${A.G}] = ?`,[t.getGuid(e),e]])]}))),o=(0,Q.c)((function(e){return(0,A.U)(e,n)})),u=yield Promise.all(t.entries().flatMap((function(e){var t,n=(0,k.default)(e,3),i=n[0],a=n[1],u=n[2],s=null!=(t=o(u))?t:{};return Object.entries(s).flatMap((function(e){var t=(0,k.default)(e,2),n=t[0],o=t[1];return Promise.all(o.map((function(e){return r.updateEntityDataReferringTo(n,i,e,a)})))}))})));return a.concat(u.flat()).reduce((function(e,t){return e+t}),0)})),function(e,t,n){return r.apply(this,arguments)})},{key:"updateEntityMetadatas",value:(n=(0,f.default)((function*(e){var t=(0,A.F)((0,Y.toUserScopedName)(A.q),JSON.stringify(e));return this.exec(t)})),function(e){return n.apply(this,arguments)})}]);var n,r,i,a,o,u,s,d,h,p,g,v,w,S,j,x,E,O,T,$,P})(Br);function Rr(e,t,n){var r,i=null!=n?n:{},a=new Ir(e),o=null!=(r=i.attributes)?r:(0,z.b)(e).map((function(e){return e.name}));return a.attributes(o),void 0!==t&&a.filtered(t),void 0===i.offset&&void 0===i.amount||a.paged(i.offset,i.amount),void 0!==i.sort&&a.sorted(i.sort),a}var Lr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@%$#()*&!",Ur="0123456789@%$#()*&!";function Fr(e){for(var t=e.split(""),n=t.length-1;n>0;n--){var r=Math.floor(Math.random()*(n+1)),i=t[n];t[n]=t[r],t[r]=i}return t.join("")}var Gr=(function(){return(0,b.default)((function e(t){(0,m.default)(this,e),this.database=t}),[{key:"inTransaction",value:(r=(0,f.default)((function*(e){var t;return yield this.database.transaction((function(){var n=(0,f.default)((function*(n){t=yield e(new Hr(n))}));return function(e){return n.apply(this,arguments)}})()),t})),function(e){return r.apply(this,arguments)})},{key:"inReadTransaction",value:(n=(0,f.default)((function*(e){var t;return yield this.database.readTransaction((function(){var n=(0,f.default)((function*(n){t=yield e(new Hr(n))}));return function(e){return n.apply(this,arguments)}})()),t})),function(e){return n.apply(this,arguments)})},{key:"selectObjects",value:(t=(0,f.default)((function*(e,t){return this.inReadTransaction((function(n){return n.selectObjects(e,t)}))})),function(e,n){return t.apply(this,arguments)})},{key:"selectValue",value:(e=(0,f.default)((function*(e,t){return this.inReadTransaction((function(n){return n.selectValue(e,t)}))})),function(t,n){return e.apply(this,arguments)})}]);var e,t,n,r})(),Hr=(function(){return(0,b.default)((function e(t){(0,m.default)(this,e),this.tx=t}),[{key:"exec",value:(n=(0,f.default)((function*(e,t){var n=yield this.tx.executeSql(e,t),r=(0,k.default)(n,2);return r[0],r[1].rowsAffected})),function(e,t){return n.apply(this,arguments)})},{key:"selectObjects",value:(t=(0,f.default)((function*(e,t){var n=yield this.tx.executeSql(e,t),r=(0,k.default)(n,2);return r[0],r[1].rows.raw()})),function(e,n){return t.apply(this,arguments)})},{key:"selectValue",value:(e=(0,f.default)((function*(e,t){var n=yield this.selectObjects(e,t);if(n.length>0){var r=(0,C.e)(n[0]),i=Object.keys(r);return i.length>0?r[(0,C.e)(i[0])]:void 0}})),function(t,n){return e.apply(this,arguments)})}]);var e,t,n})(),zr=S.NativeModules.SQLite,Vr="default",qr="dbpassword";function Wr(e){return Jr.apply(this,arguments)}function Jr(){return Jr=(0,f.default)((function*(e){return new Dr(new Gr(yield(0,f.default)((function*(){var t=e.databaseName,n=e.dbEncryptionEnabled,r=e.logger;if(n){if(zr.SUPPORTS_ENCRYPTION){var i=yield(0,f.default)((function*(){var e=yield Kn(qr),t=yield e.get();if(t)return t;var n,r,i=(n=Fr(Lr).slice(0,10),r=Fr(Ur).slice(0,10),Fr(n+r));return yield e.set(i),i}))();return br.openDatabase({name:t,key:i,location:Vr})}throw r.error("The app is configured to encrypt the local database, but the native template is out-of-date and does not support this feature.Please update the native template to the latest version and build a new version of this app to encrypt the local database.The app will now exit to prevent storing plain-text data."),new I.D("This application needs to be updated before you can use it. Please contact your system administrator.")}var a=yield(0,f.default)((function*(){return(yield Kn(qr)).get()}))();return br.openDatabase({name:t,key:a,location:Vr})}))()))})),Jr.apply(this,arguments)}function Qr(e,t,n,r,i,a,o,u,s){return Kr.apply(this,arguments)}function Kr(){return Kr=(0,f.default)((function*(e,t,n,r,i,a,o,u,s){var c=ut.RUNTIME_URL;(0,E.s)(r),(0,w.k)(Vt);var d=It.getInstance();!(function(e,t){Ct=S.AppState.addEventListener("change",t.onAppStateChanged),e.addHandler(t.logHandler)})(a,d);var h,p=new pn;yield(h=(0,f.default)((function*(e){var t=e.databaseName,n=e.logger;if(e.dbEncryptionEnabled)if(zr.SUPPORTS_ENCRYPTION){var r=Yn("hasEncryptedDatabase");if(yield r.get())n.debug("The client already uses encrypted database");else{n.info("The client requires encrypted database, force delete unencrypted database"),yield br.deleteDatabase({name:t,location:Vr});var i=yield rr();yield i.remove(),yield r.set("true")}}else n.debug("Client doesn't support encryption for a database. Skip deletion");else n.debug("Database encryption is disabled. Skip deletion")})),function(e){return h.apply(this,arguments)})({dbEncryptionEnabled:u,logger:a.getLogger(O.a.Startup),databaseName:ut.DATABASE_NAME});var g,v,y=yield rr(),m=(function(){var e=(0,f.default)((function*(){yield d.saveLogs(),yield ar.reload(),yield(0,I.x)()}));return function(){return e.apply(this,arguments)}})(),b=a.getLogger(O.a.Startup),x=a.getLogger(O.a.Auth),T=new Sn(y,b,x,t,"10.12.1.39914",(function(e,t){return(0,f.default)((function*(){yield e.remove(),yield t()}))})(y,m));(0,q.s)(T),(0,H.s)(e),v=ut.WARNINGS_FILTER_LEVEL,S.LogBox.ignoreAllLogs("none"===v),"partial"===v?S.LogBox.ignoreLogs(lt):"all"===v&&S.LogBox.ignoreLogs(st),window.mx={appUrl:"resources://",homeUrl:"not-supported",isOffline:function(e){return!(e&&Z.hasOnlineSyncMode(e))},logger:a.getLogger(),login:function(e,t,n,r){le(e,t,!0,n,r)},login2:le,logout:function(){(0,f.default)((function*(){yield T.logout(),ne.clear((function(){J.removeDir(J.toAbsolutePath(W)).finally(mx.reload).catch(mx.reload)})),(0,I.x)()}))()},reload:m,remoteUrl:c,session:T,ui:e,version:"10.12.1.39914",readFileBlob:(g=(0,f.default)((function*(e){return nr.readAsDataURL(e)})),function(e){return g.apply(this,arguments)})};var $,N,D=yield($=(0,f.default)((function*(e){var t=ir[e].map((function(e){return e()}));return(yield Promise.all(t)).filter(C.h).reduce((function(e,t){return Object.assign(e,t)}),{})})),function(e){return $.apply(this,arguments)})("sessionWillStart"),M=D.preferredLanguages,B=!1!==ut.IS_DEVELOPER_APP;try{N=yield T.startup({offline:!0,profile:"NativePhone",timezoneoffset:(new Date).getTimezoneOffset(),timezoneId:(0,ee.a)(),preferredLanguages:void 0!==M?M:(0,ee.g)()},B)}catch(e){throw e instanceof I.U&&401===e.status&&(b.info("The client is unauthorized. Reloading to get a new session."),yield m()),e}var _,R,F=T.getConfig("isDevModeEnabled"),G=T.getUserRoleNames().map((function(e){return`"${e}"`})),z=G.length?`the roles ${G.join(", ")}`:"no roles";b.debug("The app "+(F?"is in development mode and ":"")+`will start with ${T.isGuest()?"an anonymous":"a named"} user `+`with ${z} `+`in ${T.isOffline()?"offline":"online"} mode.`),F&&(yield(R=(0,f.default)((function*(e,t,n){var r,i=new mn(e);t&&(i.addOnReload((function(e){e?n():mx.reload()})),yield(r=(0,f.default)((function*(e){function t(){return new S.NativeEventEmitter(S.NativeModules.NativeReloadHandler).addListener(ar.EVENT_RELOAD_WITH_STATE?ar.EVENT_RELOAD_WITH_STATE:"reloadWithState",e)}var n=t();S.AppState.addEventListener("change",(function(e){var r;null!=(r=n)&&r.remove(),n="active"===e?t():null}))})),function(e){return r.apply(this,arguments)})(n)),yield i.connect()})),function(e,t,n){return R.apply(this,arguments)})(c,B,(function(){(0,f.default)((function*(){yield i.savePageState(),yield i.setHotReloadFlag(),mx.reload()}))()}))),!F&&o?d.enable():(function(e,t,n){t.disable(),null!=(n=Ct)&&n.remove(),e.removeHandler(t.logHandler)})(a,d),yield(_=(0,f.default)((function*(e,t){var n=Yn("hasUserScopedFilesDirectories");if(yield n.get())t.debug("The client uses user scoped files directories.");else{var r=ut.FILES_DIRECTORY_NAME;if(!(yield L.N.fileExists((0,L.r)(r))))return t.debug("The client doesn't need an upgrade to user scoped files directories."),void(yield n.set("true"));var i=`${(0,L.r)(r)}`,a=`${(0,L.r)(`${Yr(e)}`)}`,o=new I.b;try{if(er)t.debug("Migration to user scoped files directories started using directory rename"),yield L.N.move(i,a);else{t.debug("Migration to user scoped files directories started using file by file migration");var u=`${i}/${Q.a}`,s=`${i}/${Q.T}`;(yield L.N.fileExists(u))&&(yield l(u,`${a}/${Q.a}`)),(yield L.N.fileExists(s))&&(yield l(s,`${a}/${Q.T}`))}t.debug(`Migration to user scoped files directories completed in ${o.measure()} milliseconds`)}catch(e){throw t.error("Migration to user scoped files directories failed!",e),e}yield n.set("true")}function l(e,t){return c.apply(this,arguments)}function c(){return(c=(0,f.default)((function*(e,t){var n;try{n=yield L.N.list(e)}catch(e){}n&&(yield Promise.all(n.map((function(n){return L.N.move(`${e}/${n}`,`${t}/${n}`)}))))}))).apply(this,arguments)}})),function(e,t){return _.apply(this,arguments)})(T,b);var V,W=Yr(T),J=new jn(new nr(W,s,b),a),K=yield(V=(0,f.default)((function*(e,t,n,r,i){(0,Y.setUserScopedNamePrefix)("mx"+Xr(e));var a=yield Wr({dbEncryptionEnabled:i,logger:r.getLogger(O.a.Startup),databaseName:ut.DATABASE_NAME});!(function(e,t){var n=t.getLogger(O.a.Database);e.registerQueryListener((function(e){var t=new I.b;return[function(r){var i=Array.isArray(r)?r:[r];n.debounced.trace(`SQL request was completed in ${t.measure()} milliseconds. Rows count: ${i.length}. Query: "${e}`)},function(r){n.warn(`SQL request was failed in ${t.measure()} milliseconds. Error: ${r.message}. Query: "${e}`)}]}))})(a,r);var o=(0,C.e)(e.getOfflineConfig()),u=yield(0,A.W)(t,a,(0,C.e)(o),n,r,(function(e,t,r){return n.toAbsolutePath(`${r?Q.T:Q.a}/${e}`)}));return[u.offlineData,u.dataBackend]})),function(e,t,n,r,i){return V.apply(this,arguments)})(T,p,J,a,u),X=(0,k.default)(K,2),Z=X[0],te=X[1],ne=new hn({garbageCollectionInterval:1e4,logCleanupStatistics:!1},p,te);(0,P.s)(ne),window.mx.data=ne,ne.startup(),(0,P.a)().update=function(e){(0,w.p)(e).then(e.callback,window.mx.onError)},(0,H.g)().openForm=function(e,t,n){var r=t.context&&t.context.getTrackId()||void 0,i=Object.assign({location:"content"},t,{context:void 0,contextParams:t.context?t.context.getParams():{}},t.domNode?{location:"node"}:void 0),a=t.callback?t.callback.bind(n):void 0,o=t.error?t.error.bind(n):window.mx.onError,u=(0,H.g)();u.getPageParameters(e).then((function(n){if(n.length>1)throw new Error(`Cannot open form '${e}', as it expects multiple parameters`);var s=n.length?(0,l.default)({},"$"+n[0],r):{};u.openForm2(e,s,t.title,u.getContentForm(),i).then(a,o)})).catch(o)},window.mx.server={getCacheBust:function(){return window.mx.session.getConfig("cachebust")}},window.mx.session.getUserName=function(){return this.getUserObject().get("Name")},Fe.prototype.commit=function(e,t){var n=this;function r(e){n.setSuspend(!1),t?t(e):window.mx.onError(e)}this.setSuspend(!0),this.publish("submit",(function(){n.publish("commit",(function(){(0,P.a)().commit({mxobjs:n.getSubmitObjects(),callback:function(){n.setSuspend(!1),e&&e()},error:r})}),r)}),r)},Fe.prototype.rollback=function(e,t){var n=this;function r(e){n.setSuspend(!1),t?t(e):window.mx.onError(e)}this.setSuspend(!0),this.publish("rollback",(function(){(0,P.a)().rollback({mxobjs:n.getSubmitObjects(),callback:function(){n.setSuspend(!1),e&&e()},error:r})}),r)},Fe.prototype.validate=function(e,t){this.triggerValidation().then(e,t)},U.M.prototype.getEnumCaption=function(e){var t=this.metaData.attributes[e],n=this.get(e);return null!=n&&""!==n&&null!=t&&t.enumeration?(0,j.t)(t.enumeration,n):n||""},U.M.prototype.getEnumMap=function(e){var t,n=null==(t=this.metaData.attributes[e])?void 0:t.enumeration;return n?(0,j.g)(n).map((function(e){return{key:e,caption:(0,j.t)(n,e)}})):null},U.M.prototype.getOptions=function(e){var t,n=null==(t=this.metaData.attributes[e])?void 0:t.enumeration;return n?(0,j.g)(n):[]},window.mx.parser=new Kt,window.mx.meta=new Jt,window.mx.onError=function(e){(0,w.h)(e)},mx.offlineData=Z;var re=new gn({},p);new hn({garbageCollectionInterval:1e4,logCleanupStatistics:!1},p,re);var ie=new bn(p);(0,P.i)(T.getConfig(),n,{},ie,Z);var ae=e.showProgress(void 0,!0);try{var oe=Un(yield T.loadCachedSessionData(),N);b.debug(` The app will ${oe.shouldSync?"":"not "}perform a startup sync.`);var ue=T.getOfflineMetadata(),se=yield Z.retrieveOfflineMetadata();yield Fn(oe,ue,se,b)}finally{e.hideProgress(ae)}return yield T.saveSessionData(),T;function le(e,t,n,r,i){T.login({username:e,password:t,useAuthToken:n}).then((0,f.default)((function*(){r&&r(),mx.reload()})),i)}})),Kr.apply(this,arguments)}function Xr(e){return e.isGuest()?"anonymous":e.getUserId()}function Yr(e){var t;return`${null!=(t=ut.APP_NAME)?t:"default"}/${Xr(e)}`}var Zr=S.StyleSheet.create({topLevelView:{flex:1}}),ei=function(e){var t,n,r,i,a=e.state,o=null==(t=a.routes[a.index])?void 0:t.params;if(!o)return null;var u=o.formId,s=o.pageName,l=o.title,c=o.formParameters,d=Be(s),f=et(u,s,l,c);return(0,B.jsx)($.R,{backend:f.getStoreBackend(),children:(0,B.jsx)(S.View,{style:[null==d||null==(n=d.style.sidebar)?void 0:n.container,Zr.topLevelView],children:null!=(r=null==d||null==(i=d.content)?void 0:i.$$sidebar())?r:null})},f.getName())};function ti(e){var t=e.testID,n=e.style,r=S.StyleSheet.flatten([ni,n]);return(0,B.jsx)(ie.default,{testID:t,fill:r.tintColor,style:r,viewBox:"0 0 512 512",children:S.Platform.select({ios:(0,B.jsx)(ie.Path,{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"}),android:(0,B.jsx)(ie.Path,{d:"M427 234.625H167.296l119.702-119.702L256 85 85 256l171 171 29.922-29.924-118.626-119.701H427v-42.75z"})})})}var ni=S.Platform.select({ios:{height:31,width:31,marginRight:-3},android:{height:24,width:24,margin:3}});function ri(e){var t=e.onPress,n=e.testID,r=e.style,i=S.StyleSheet.flatten([ii,r]);return(0,B.jsx)(ae.T,{onPress:t,testID:n,borderless:!0,children:(0,B.jsx)(ie.default,{fill:i.tintColor,style:i,viewBox:"0 0 512 512",children:S.Platform.select({ios:(0,B.jsx)(ie.Path,{d:"M432 176H80c-8.8 0-16-7.2-16-16s7.2-16 16-16h352c8.8 0 16 7.2 16 16s-7.2 16-16 16zM432 272H80c-8.8 0-16-7.2-16-16s7.2-16 16-16h352c8.8 0 16 7.2 16 16s-7.2 16-16 16zM432 368H80c-8.8 0-16-7.2-16-16s7.2-16 16-16h352c8.8 0 16 7.2 16 16s-7.2 16-16 16z"}),android:(0,B.jsx)(ie.Path,{d:"M64 384h384v-42.666H64V384zm0-106.666h384v-42.667H64v42.667zM64 128v42.665h384V128H64z"})})})})}var ii={width:24,height:24,marginHorizontal:16,marginVertical:12};function ai(e){var t=e.onPress,n=e.testID,r=e.style,i=S.StyleSheet.flatten([si,r]);return(0,B.jsx)(ae.T,{onPress:t,testID:n,borderless:!0,children:(0,B.jsx)(ie.Svg,{fill:i.tintColor,style:i,viewBox:"0 0 512 512",children:S.Platform.select({ios:(0,B.jsx)(ie.Path,{d:"M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z"}),android:(0,B.jsx)(ie.Path,{d:"M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"})})})})}var oi,ui,si=S.Platform.select({ios:{width:40,height:40,marginHorizontal:8},android:{width:24,height:24,marginHorizontal:16}}),li=function(e){var t=e.page,n=t.navigation,r=t.style,i=t.name,a=e.isFirstRouteInParent,o=e.goBack,u=e.hideBackButton;return"Popup"===n.type&&a?function(){var e;return(0,B.jsx)(ai,{onPress:function(){return o(1)},testID:`${i}$closePopup`,style:null==(e=r.header)?void 0:e.backButtonIcon})}:n.sidebar?function(){var e;return(0,B.jsx)(ri,{onPress:nt,testID:`${i}$toggleSidebar`,style:null==(e=r.header)?void 0:e.backButtonIcon})}:u?function(){return null}:void 0},ci=function(e,t,n,r){var i,a,o,u;return{title:null==(i=e.content)?void 0:i.$$title,headerStyle:null==(a=e.style.header)?void 0:a.container,headerTitle:function(t){return(0,B.jsx)(ne.HeaderTitle,Object.assign({},t,{testID:`${e.name}$headerTitle`}))},headerTitleStyle:null==(o=e.style.header)?void 0:o.title,headerBackAllowFontScaling:!0,headerBackTitleVisible:"Popup"===e.navigation.type&&!r,headerBackTitleStyle:null==(u=e.style.header)?void 0:u.backButtonText,headerBackImage:function(){var t;return(0,B.jsx)(ti,{testID:`${e.name}$goBack`,style:null==(t=e.style.header)?void 0:t.backButtonIcon})},headerLeft:li({page:e,isFirstRouteInParent:n,hideBackButton:r,goBack:We}),headerRight:function(){var n;return void 0!==e.navigation.headerRegionName?(0,B.jsx)($.R,{backend:t.getStoreBackend(),children:null==(n=e.content&&e.content[e.navigation.headerRegionName])?void 0:n()}):null}}},di=function(e,t,n,r,i){return Object.assign({},ci(e,t,r,i),{headerBackTitle:n,headerMode:S.Platform.select({android:"screen",ios:"float"}),headerShown:void 0!==e.navigation.headerRegionName,headerStyleInterpolator:S.Platform.select({ios:re.HeaderStyleInterpolators.forUIKit,android:re.HeaderStyleInterpolators.forFade}),headerTruncatedBackTitle:(0,E.t)("mxui.widget.native","Navigation.back"),headerTitleContainerStyle:{maxWidth:S.Dimensions.get("window").width-175},presentation:"Popup"===e.navigation.type?"modal":void 0})},fi=function(e,t,n,r){return Object.assign({},ci(e,t,n,r))},hi=function(e){var t=e.errorMessage;return(0,B.jsx)(S.View,{children:(0,B.jsx)(S.Text,{style:{color:"red"},children:t})})},pi=function(e){var t=e.form,n=e.style,r=e.page,i=e.children;return(0,B.jsx)(S.View,{style:[n.container,Zr.topLevelView],testID:r.name,children:(0,B.jsx)($.R,{backend:t.getStoreBackend(),children:(0,B.jsx)(x.E.Provider,{value:hi,children:i})})})},gi=function(){var e,t,n,r=(0,D.useRoute)().params,i=(0,D.useNavigation)(),a=r.pageName,o=r.formId,u=r.formParameters,s=void 0===u?{}:u,l=r.title,c=(0,C.e)(Be(a)),d=et((0,C.e)(o),(0,C.e)(a),l,s),f="open"===(0,te.useDrawerStatus)();(0,D.useFocusEffect)((function(){var e;i.setOptions(Object.assign({},fi(c,d,!0,!1),{title:l})),null==(e=i.getParent())||e.setOptions({tabBarStyle:{display:c.navigation.showBottomBar?void 0:"none"},tabBarVisible:!c.navigation.showBottomBar&&void 0})})),(0,_.useEffect)((function(){var e;return f&&null!=(e=Ve())&&e.isReady()&&(0,C.e)(Ve()).dispatch(D.DrawerActions.closeDrawer()),function(){!(function(e){delete Ze[e]})((0,C.e)(o))}}),[]);var h=null!=(e=c.content)&&null!=e.$$page&&e.$$page()?c.content.$$page():null;return(0,B.jsxs)(S.TopLevelView,{style:Zr.topLevelView,testID:"$screen",children:[(0,B.jsx)(S.StatusBar,{backgroundColor:null==(t=c.style.statusBar)?void 0:t.backgroundColor,barStyle:null==(n=c.style.statusBar)?void 0:n.barStyle}),(0,B.jsx)(pi,{page:c,form:d,style:c.style,children:h})]})};function vi(e,t){return function(n){var r=n.focused,i=Object.assign({},e.icon,r?e.selectedIcon:{}),a=i.color,o=i.size,u=(0,s.default)(i,se);return(0,B.jsx)(S.View,{style:u,children:(0,B.jsx)(ue.Icon,{icon:t,color:a,size:o})})}}function yi(e,t){return function(n){var r=n.focused;return(0,B.jsx)(S.Text,{numberOfLines:1,style:Object.assign({textAlign:"center",marginBottom:1.5},e.label,r?e.selectedLabel:{}),children:t})}}!(function(e){e.SystemDefault="SystemDefault",e.SlideFromRightIOS="SlideFromRightIOS",e.ScaleFromCenterAndroid="ScaleFromCenterAndroid"})(oi||(oi={})),(function(e){e.SystemDefault="SystemDefault",e.ModalPresentationIOS="ModalPresentationIOS",e.ScaleFromCenterAndroid="ScaleFromCenterAndroid"})(ui||(ui={}));var mi=function(e){var t=e.isModal,n=e.popupNavigationTransition,r=e.screenNavigationTransition,i=e.applyScreenTransition;return!t||i?r!==oi.SystemDefault?re.TransitionPresets[r]:{}:n!==ui.SystemDefault?re.TransitionPresets[n]:{}},bi=function(e){var t=e.initialRoute,n=e.routes,r=e.animationEnabled,i=void 0===r||r,a=e.applyScreenTransition,o=void 0!==a&&a,u=e.screenNavigationTransition,s=void 0===u?oi.SystemDefault:u,l=e.popupNavigationTransition,c=void 0===l?ui.SystemDefault:l,d=(0,re.createStackNavigator)();return function(r){return(0,B.jsx)(d.Navigator,{initialRouteName:t,screenOptions:function(e){var t=e.route,n=t.params,r=n.formId,a=n.pageName,o=n.title,u=n.formParameters,s=(0,C.e)(Be(a)),l=et(r,a,o,u),c=["SIDEBAR_DEFAULT","STACK"].includes(t.name);return Object.assign({animationEnabled:i,cardOverlayEnabled:!0},di(s,l,(0,E.t)("mxui.widget.native","Navigation.back"),!0,!1),{title:o,headerShown:c&&void 0!==s.navigation.headerRegionName&&"Default"===s.navigation.type})},children:n.map((function(t){var n=t.key,i=t.component;return(0,B.jsx)(d.Screen,{name:n,component:i,initialParams:Object.assign({pageName:e.pageName,formId:e.formId,title:e.title,formParameters:e.formParameters,layout:e.layout},r.route.params),options:Object.assign({},mi({isModal:"POPUP"===n,applyScreenTransition:o,screenNavigationTransition:s,popupNavigationTransition:c}))},n)}))})}};function ki(e){var t=e.animationEnabled,n=e.home,r=e.navigationStyle,i=e.applyScreenTransition,a=e.screenNavigationTransition,o=e.popupNavigationTransition,u=n.pageName,l=n.formId,d=n.formParameters,f=void 0===d?{}:d,h=n.title,p=(0,C.e)(Be(u)),g=et(l,(0,C.e)(p.name),h,f),v=Boolean(Me().length),y={applyScreenTransition:i,screenNavigationTransition:a,popupNavigationTransition:o},m=(0,te.createDrawerNavigator)(),b=(function(e){var t=(0,re.createStackNavigator)();return function(n){return(0,B.jsx)(t.Navigator,{initialRouteName:"POPUP_DEFAULT",screenOptions:function(t){var n=t.route.params,r=n.pageName,i=n.formId,a=n.formParameters,o=void 0===a?{}:a,u=n.title,s=(0,C.e)(Be(r)),l=et(i,(0,C.e)(s.name),u,o);return Object.assign({},di(s,l,(0,E.t)("mxui.widget.native","Navigation.back"),!0,!1),{title:u,presentation:"modal"},mi(Object.assign({isModal:!0},e)))},children:(0,B.jsx)(t.Screen,{name:"POPUP_DEFAULT",component:gi,initialParams:n.route.params})})}})(y),k=(function(e){var t=e.animationEnabled,n=e.home,r=e.navigationStyle,i=(0,s.default)(e,le),a=(0,oe.createBottomTabNavigator)(),o=bi(Object.assign({inRootNavigation:!1,animationEnabled:t,routes:[{key:"STACK",component:gi}]},n,{initialRoute:"STACK",home:n},i)),u=(0,C.e)(Be(n.pageName)),l=tt(u,n.title,n.formParameters,n.formId),c=_e(u.name),d=Me().map((function(e){return Be(e.pageName)})).filter(Boolean);if(d.some((function(e){return"Popup"===e.navigation.type})))throw new C.A("Pages with a pop-up layout can't be included in the bottom bar");if(d.some((function(e){return!e.navigation.showBottomBar})))throw new C.A("If the page is included in the bottom bar it's layout must show the bottom bar");return function(e){var t,n;return(0,B.jsx)(a.Navigator,{initialRouteName:c.length>0?null==(t=c[0])?void 0:t.index.toString():"0",screenOptions:{tabBarLabelPosition:"below-icon",tabBarStyle:null==(n=r.bottomBar)?void 0:n.container,tabBarHideOnKeyboard:!1,headerShown:!1},children:Me().sort((function(e,t){return e.index-t.index})).map((function(t){var n,i,u,s,c,d=t.pageName,f=t.title,h=t.index,p=t.icon,g=t.caption,v=(0,C.e)(null!=(n=Be(d))?n:Be(Ce)),y=e.route.params.fromNonBottomBar?Object.assign({},l,{pageName:d,title:null!=f?f:null==(i=v.content)?void 0:i.$$title},e.route.params):Object.assign({},l,e.route.params,{pageName:d,title:null!=f?f:null==(u=v.content)?void 0:u.$$title});return(0,B.jsx)(a.Screen,{name:h.toString(),options:{tabBarIcon:vi(null!=(s=r.bottomBar)?s:{},p),tabBarLabel:yi(null!=(c=r.bottomBar)?c:{},g),tabBarTestID:`bottomBarItem$${g}`,headerShown:!1},initialParams:y,listeners:d===Ce?{tabPress:function(){},tabLongPress:function(){}}:{tabPress:function(){}},children:o},h.toString())}))})}})(Object.assign({home:n,navigationStyle:r},n,{animationEnabled:t},y)),w=bi(Object.assign({inRootNavigation:!1,animationEnabled:t,routes:[{key:"SIDEBAR_DEFAULT",component:gi}].concat((0,c.default)(v?[{key:"BOTTOM_BAR",component:k}]:[{key:"STACK",component:gi}]),[{key:"POPUP",component:b}])},n,{initialRoute:p.navigation.showBottomBar?"BOTTOM_BAR":"SIDEBAR_DEFAULT",home:n},y));return(0,B.jsx)(m.Navigator,{initialRouteName:"SIDEBAR",drawerContent:(0,_.useCallback)((function(e){var t=e.state;return(0,B.jsx)(ei,{state:t})}),[p,g]),backBehavior:"history",screenOptions:{drawerStatusBarAnimation:t?"slide":"none",swipeEnabled:!p.navigation.sidebar,headerShown:!1},children:(0,B.jsx)(m.Screen,{name:"SIDEBAR",component:w,initialParams:{pageName:p.name,formId:l,formParameters:f,title:h}})})}var wi=function e(t){var n=[];for(var r of t){var i;null!=(i=r.params)&&i.pageName&&n.push(r.params.pageName),r.routes&&n.push.apply(n,(0,c.default)(e(r.routes)))}return n},Si=function(e){return void 0!==Be(e)},ji=O.L.get().getLogger(),xi={activeMessage:void 0},Ei=(function(e){function t(){var e;return(0,m.default)(this,t),(e=fe(this,t,arguments)).state=xi,e.showDelay=500,e.messageQueue=[],e.messageId=0,e}return(0,y.default)(t,e),(0,b.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.backHandler=S.BackHandler.addEventListener("hardwareBackPress",(function(){return void 0!==e.state.activeMessage}))}},{key:"componentWillUnmount",value:function(){this.hide(),this.backHandler&&this.backHandler.remove()}},{key:"render",value:function(){var e,t,n;return this.state.activeMessage?(0,B.jsx)(S.View,{style:[Oi.background,this.props.style.background],children:(0,B.jsxs)(S.View,{style:[Oi.container,this.props.style.container],children:[(0,B.jsx)(S.ActivityIndicator,{style:this.props.style.activityIndicator,color:null==(e=this.props.style.activityIndicator)?void 0:e.color,size:null!=(t=null==(n=this.props.style.activityIndicator)?void 0:n.size)?t:Oi.activityIndicator.size}),this.state.activeMessage.text?(0,B.jsx)(S.Text,{style:this.props.style.text,children:this.state.activeMessage.text}):null]})}):null}},{key:"add",value:function(e,t){var n=this.messageId++,r={id:n,text:e,immediate:t};return this.messageQueue.push(r),1===this.messageQueue.length?this.show(r):t&&this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=void 0,this.show(r)),n}},{key:"remove",value:function(e){this.messageQueue.some((function(t){return t.id===e}))?(this.removeFromQueue(e),this.state.activeMessage&&this.state.activeMessage.id===e&&this.messageQueue[0]?this.showImmediate(this.messageQueue[0]):0===this.messageQueue.length&&this.hide()):ji.error(`mx.ui.hideProgress: progress id ${e} not found`)}},{key:"show",value:function(e){var t=this;e.immediate?this.showImmediate(e):this.showTimer=setTimeout((function(){return t.showImmediate(e)}),this.showDelay)}},{key:"showImmediate",value:function(e){this.showTimer=void 0,this.setState({activeMessage:e})}},{key:"hide",value:function(){this.showTimer?(clearTimeout(this.showTimer),this.showTimer=void 0):this.setState(xi)}},{key:"removeFromQueue",value:function(e){var t=this.messageQueue.findIndex((function(t){return t.id===e}));this.messageQueue.splice(t,1)}}])})(_.Component),Oi={background:{position:"absolute",left:0,top:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.001)"},container:{alignItems:"center"},activityIndicator:{size:"large"}},Ci=function(e){var t,n,r=e.applicationConfig,i=e.homePage,a=e.devMode,o=e.hotReloadService,u=r.navigationStyle,s="dark"===S.Appearance.getColorScheme()?M.DarkTheme:M.DefaultTheme,l=(0,_.useRef)((0,C.e)(Be(i))),c=O.L.get().getLogger(O.a.Navigation),d=(0,_.useState)(void 0),h=(0,k.default)(d,2),p=h[0],g=h[1],v=(0,_.useState)(!1),y=(0,k.default)(v,2),m=y[0],b=y[1],w=ki(Object.assign({},r,{home:tt(l.current,null==(t=_e(l.current.name)[0])?void 0:t.title)}));return(0,_.useLayoutEffect)((function(){(0,f.default)((function*(){return(yield o.isHotReloadFlagSet())?(e=(0,f.default)((function*(e){if(!(yield e.isHotReloadFlagSet()))throw new Error("Not hot reloaded");yield e.clearHotReloadFlag();var t=yield e.loadPageState();if(!t)throw new Error("Page state could not be loaded");var n=JSON.parse(t.navState);if(!wi(n.routes).every(Si))throw new Error("Page state not loaded as it contains pages that no longer exist");return(0,P.a)().hydrateCache(t.cache),e.setNavigationState(n),n})),function(t){return e.apply(this,arguments)})(o):void 0;var e}))().then(g).catch((function(){return g(void 0)})).finally((function(){return b(!0)})),Re(i)}),[]),(0,B.jsxs)(S.TopLevelView,{style:Zr.topLevelView,children:[m&&(0,B.jsx)(M.NavigationContainer,{initialState:p,theme:s,ref:function(e){var t;e&&(t=e)&&(Ee=t)},onStateChange:function(e){var t;(t=(0,f.default)((function*(e){if(a&&e)return(t=(0,f.default)((function*(e,t){return e.setNavigationState(t)})),function(e,n){return t.apply(this,arguments)})(o,e);var t})),function(e){return t.apply(this,arguments)})(e).then((function(){c.trace(`New navigation state: ${JSON.stringify(e,null,2)}`)})).catch((function(){c.error(`Failed to persist navigation state: ${JSON.stringify(e,null,2)}`)}))},children:w}),(0,B.jsx)(Ei,{style:null!=(n=u.progressOverlay)?n:{},ref:rt})]})},Ai=S.NativeModules.NativeOtaModule,Ti=1e4;function $i(e){var t,n=e.applicationConfig,r=n.checkForOTAUpdates,i=n.deploymentID,a=n.languages,o=n.systemTexts,u=n.getBottomBarItems,s=n.registerPages,l=n.homePages,c=n.navigationStyle,d=n.loggingEnabled,h=n.encryptionDbEnabled,p=n.encryptLocalFiles,g=n.screenNavigationTransition,v=n.popupNavigationTransition,y=n.applyScreenTransition,m=(0,_.useState)(),b=(0,k.default)(m,2),w=b[0],j=b[1],x=(0,_.useRef)(),E=(0,_.useRef)();return(0,_.useEffect)((function(){return(0,f.default)((function*(){var t,n=new I.b,c=O.L.get(),m=c.getLogger(O.a.Startup),b=`${S.Platform.OS} ${S.Platform.Version}`,k=!0===ut.IS_DEVELOPER_APP,w=`Starting app on ${b} using bundle with deployment id: ${i}.\nMX Client version is 10.12.1.39914.\nMendix OTA is ${r?"enabled":"disabled"}.\nDeveloper app: ${k?"yes":"no"}.\nScreen Transition: ${g}.\n`+(y?"Apply screen transition for pop-ups: true":`Popup transition: ${v}`)+"}";m.debug(w),k||r&&(yield(t=(0,f.default)((function*(e){var t=O.L.get().getLogger(O.a.OTA),n=new I.b;if(Ai){var r,i="checking";try{n.reset();var a=ut.RUNTIME_URL,o=ut.NATIVE_DEPENDENCIES,u=ut.NATIVE_BINARY_VERSION,s=yield(r=(0,f.default)((function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Promise.race([e(),new Promise((function(e,r){return setTimeout((function(){return r(new I.C(`OTA request (${n.length>0?"'"+n+"' ":""}) has timed out after ${t} ms.`))}),t)}))])})),function(e,t){return r.apply(this,arguments)})((function(){return(0,I.y)(S.Platform.OS,(0,I.z)(a),o,u)}),5e3,"get_ota_info"),l=s.otaEnabled,c=s.deploymentID,d=s.bundlePath,h=s.satisfiesNativeDependencies,p=s.satisfiesNativeBinaryVersion;if(t.debug(`Checked for a new OTA update in ${n.measure()} milliseconds.`),l&&c!==e){if(!h)return void t.warn(`There is a new OTA bundle ${c}, but it has non-matching native dependencies. The OTA will be skipped. Please release a new native app to receive OTA updates.`);if(!p)return void t.warn("[OTA] OTA is skipped. Native binary version missmatch.");i="downloading",n.reset();var g=`${a}${d}`,v=(yield Ai.download({url:g})).otaPackage,y=n.measure();t.log(y.ms>Ti?"warning":"debug",`Downloaded OTA bundle in ${y} milliseconds.`),i="installing",n.reset(),yield Ai.deploy({otaDeploymentID:c,extractionDir:c,otaPackage:v}),t.debug(`OTA bundle ${c} installed in ${n.measure()} milliseconds. Restarting the app.`),yield ar.reload()}else l||t.debug("OTA disabled on the server. The app will start with the existing bundle.")}catch(e){t.log(e instanceof I.C?"debug":"warning",`An error occurred during ${{checking:"checking for a new",downloading:"downloading the new",installing:"installing the new"}[i]} OTA bundle. The app will start with the existing bundle.`,e)}}else t.warn("OTA is enabled but the current version of the application does not support the feature. Please update the app\u2019s native template.")})),function(e){return t.apply(this,arguments)})(i)),x.current=yield Qr(e.nativeUI,i,a,o,e.hotReloadService,c,d,h,p),Ue(u,s,x.current);var A=(function(e,t){var n=e.roleBasedHomePages.find((function(e){return e.role&&t.hasSomeRole([e.role])}));return null!=n?n:e.defaultHomePage})(l,(0,C.e)(x.current));switch(A.type){case"page":m.debug(`Showing home page ${A.page}`),j(A.page),Ii(E);break;case"nanoflow":j(Ce);var T=A.nanoflow.name;(yield e.hotReloadService.isHotReloadFlagSet())?(m.debug(`Skipping executing the startup nanoflow ${T} because the application started after a hot reload. Please restart the app if you want to execute it.`),Ii(E)):(m.debug(`Executing startup nanoflow "${T}"`),yield R.n.execute(A.nanoflow,[]))}m.debug(`Startup completed in ${n.measure()} milliseconds.`)}))().catch(qt),function(){void 0!==E.current&&(cancelAnimationFrame(E.current),E.current=void 0)}}),[]),(0,B.jsx)(B.Fragment,{children:w?(0,B.jsx)(Ci,{hotReloadService:e.hotReloadService,applicationConfig:e.applicationConfig,homePage:w,devMode:Pi(x.current)}):(0,B.jsx)(Ei,{style:null!=(t=c.progressOverlay)?t:{},ref:rt})})}function Pi(e){return!0===(null==e?void 0:e.getConfig("isDevModeEnabled"))&&!1!==ut.IS_DEVELOPER_APP}function Ii(e){e.current=requestAnimationFrame((function(){return null==Oe?void 0:Oe.hide()}))}var Ni=O.L.get().getLogger(),Di=(function(){return(0,b.default)((function e(){(0,m.default)(this,e),this.reloadStore=Yn("hot-reload"),this.pageStateStore=Yn("pageState")}),[{key:"setHotReloadFlag",value:(i=(0,f.default)((function*(){yield this.reloadStore.set("reload")})),function(){return i.apply(this,arguments)})},{key:"isHotReloadFlagSet",value:(r=(0,f.default)((function*(){return void 0!==(yield this.reloadStore.get())})),function(){return r.apply(this,arguments)})},{key:"clearHotReloadFlag",value:(n=(0,f.default)((function*(){yield this.reloadStore.remove()})),function(){return n.apply(this,arguments)})},{key:"setNavigationState",value:function(e){this.navigationState=e}},{key:"loadPageState",value:(t=(0,f.default)((function*(){var e=this;(0,w.k)((function(t){return e.errorHandler(t)}));var t=yield this.pageStateStore.get();try{return JSON.parse(t)}catch(e){return}})),function(){return t.apply(this,arguments)})},{key:"savePageState",value:(e=(0,f.default)((function*(){var e={cache:(0,P.a)().dehydrateCache(),navState:JSON.stringify(this.navigationState)};yield this.pageStateStore.set(JSON.stringify(e))})),function(){return e.apply(this,arguments)})},{key:"errorHandler",value:function(e){e instanceof Error&&Ni.error(e.message,e.stack),S.Alert.alert("Error","An error has occurred that might have been caused by fast reload. Reload the app to fix it.",[{text:"Cancel",style:"cancel"},{text:"Reload app",onPress:function(){return mx.reload()}}])}}]);var e,t,n,r,i})();function Mi(e){var t=(function(e){return(function(t){function n(){var e;return(0,m.default)(this,n),(e=fe(this,n,arguments)).hotReloadService=new Di,e.nativeUI=new ot,e}return(0,y.default)(n,t),(0,b.default)(n,[{key:"componentDidCatch",value:function(e,t){qt(e)}},{key:"render",value:function(){return(0,B.jsx)($i,{applicationConfig:e,hotReloadService:this.hotReloadService,nativeUI:this.nativeUI})}}])})(_.Component)})(e);S.AppRegistry.registerComponent("App",(function(){return t}))}function Bi(){return Bi=(0,f.default)((function*(e){console.reportErrorsAsExceptions=!1,(0,O.r)(),O.L.get().setLogFilter((function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i=0||Object.prototype.propertyIsEnumerable.call(o,l)&&(s[l]=o[l])}return s},m.exports.__esModule=!0,m.exports.default=m.exports}),4,[5]); -__d((function(g,r,_i,a,m,e,d){m.exports=function(t,n){if(null==t)return{};var o,u,f={},s=Object.keys(t);for(u=0;u=0||(f[o]=t[o]);return f},m.exports.__esModule=!0,m.exports.default=m.exports}),5,[]); +__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);m.exports=function(o,n){if(null==o)return{};var l,p,s=t(o,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(p=0;p=0||Object.prototype.propertyIsEnumerable.call(o,l)&&(s[l]=o[l])}return s},m.exports.__esModule=!0,m.exports.default=m.exports}),3,[4]); +__d((function(g,r,_i,a,m,e,d){m.exports=function(t,n){if(null==t)return{};var o,u,f={},s=Object.keys(t);for(u=0;u=0||(f[o]=t[o]);return f},m.exports.__esModule=!0,m.exports.default=m.exports}),4,[]); +__d((function(g,r,i,a,m,e,d){m.exports=function(t,n,o){return n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t},m.exports.__esModule=!0,m.exports.default=m.exports}),5,[]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]);m.exports=function(u){return t(u)||o(u)||n(u)||s()},m.exports.__esModule=!0,m.exports.default=m.exports}),6,[7,9,10,11]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(o){if(Array.isArray(o))return t(o)},m.exports.__esModule=!0,m.exports.default=m.exports}),7,[8]); __d((function(g,r,_i,a,m,e,d){m.exports=function(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,l=new Array(n);o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function L(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function I(){for(var e=[],t=0;t2&&re("box");var n=X(t);return new Te(e,ee(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&re("array");var n=X(t);return(function(e,t,n,r){void 0===n&&(n="ObservableArray@"+d()),void 0===r&&(r=!1);var i,o,a,s=new Tt(n,t,r);i=s.values,o=k,a=s,Object.defineProperty(i,o,{enumerable:!1,writable:!1,configurable:!0,value:a});var u=new Proxy(s.values,jt);if(s.proxy=u,e&&e.length){var c=Ee(!0);s.spliceWithArray(0,0,e),je(c)}return u})(e,ee(n),n.name)},map:function(e,t){arguments.length>2&&re("map");var n=X(t);return new Nt(e,ee(n),n.name)},set:function(e,t){arguments.length>2&&re("set");var n=X(t);return new It(e,ee(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&re("object");var r=X(n);if(!1===r.proxy)return ft({},e,t,r);var i=ht(r),o=(function(e){var t=new Proxy(e,wt);return e[k].proxy=t,t})(ft({},void 0,void 0,r));return pt(o,e,t,i),o},ref:Q,shallow:F,deep:Y,struct:Z},ne=_e2.z=function e(t,n,r){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return Y.apply(null,arguments);if(vt(t))return t;var i=O(t)?e.object(t,n,r):Array.isArray(t)?e.array(t,n):A(t)?e.map(t,n):x(t)?e.set(t,n):t;if(i!==t)return i;v(!1)};function re(e){v("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(te).forEach((function(e){return ne[e]=te[e]}));var ie,oe,ae=K(!1,(function(e,t,n,r,i){var o=n.get,a=n.set,s=i[0]||{};Gt(e).addComputedProp(e,t,N({get:o,set:a,context:e},s))})),se=ae({equals:D.structural}),ue=function(e,t,n){if("string"==typeof t)return ae.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return ae.apply(null,arguments);var r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new ke(r)};ue.struct=se,(function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"})(ie||(ie={})),(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(oe||(oe={}));var ce=function(e){this.cause=e};function le(e){return e instanceof ce}function fe(e){switch(e.dependenciesState){case ie.UP_TO_DATE:return!1;case ie.NOT_TRACKING:case ie.STALE:return!0;case ie.POSSIBLY_STALE:for(var t=ge(!0),n=ye(),r=e.observing,i=r.length,o=0;o0;Le.computationDepth>0&&t&&v(!1),Le.allowStateChanges||!t&&"strict"!==Le.enforceActions||v(!1)}function pe(e,t,n){var r=ge(!0);we(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Le.runId;var i,o=Le.trackingDerivation;if(Le.trackingDerivation=e,!0===Le.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new ce(e)}return Le.trackingDerivation=o,(function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=ie.UP_TO_DATE,i=0,o=e.unboundDepsCount,a=0;ar&&(r=s.dependenciesState);for(n.length=i,e.newObserving=null,o=t.length;o--;)0===(s=t[o]).diffValue&&Me(s,e),s.diffValue=0;for(;i--;){var s;1===(s=n[i]).diffValue&&(s.diffValue=0,Ue(s,e))}r!==ie.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())})(e),me(r),i}function de(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Me(t[n],e);e.dependenciesState=ie.NOT_TRACKING}function ve(e){var t=ye();try{return e()}finally{be(t)}}function ye(){var e=Le.trackingDerivation;return Le.trackingDerivation=null,e}function be(e){Le.trackingDerivation=e}function ge(e){var t=Le.allowStateReads;return Le.allowStateReads=e,t}function me(e){Le.allowStateReads=e}function we(e){if(e.dependenciesState!==ie.UP_TO_DATE){e.dependenciesState=ie.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=ie.UP_TO_DATE}}var Oe=0,_e=1,Se=Object.getOwnPropertyDescriptor((function(){}),"name");function Ae(e,t,n){var r=function(){return xe(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function xe(e,t,n,r){var i=(function(e,t,n){var r=ye();qe();var i={prevDerivation:r,prevAllowStateChanges:Ee(!0),prevAllowStateReads:ge(!0),notifySpy:!1,startTime:0,actionId:_e++,parentActionId:Oe};return Oe=i.actionId,i})();try{return t.apply(n,r)}catch(e){throw i.error=e,e}finally{!(function(e){Oe!==e.actionId&&v("invalid action stack. did you forget to finish an action?"),Oe=e.parentActionId,void 0!==e.error&&(Le.suppressReactionErrors=!0),je(e.prevAllowStateChanges),me(e.prevAllowStateReads),ze(),be(e.prevDerivation),e.notifySpy,Le.suppressReactionErrors=!1})(i)}}function Ee(e){var t=Le.allowStateChanges;return Le.allowStateChanges=e,t}function je(e){Le.allowStateChanges=e}Se&&Se.configurable;var Te=(function(e){function t(t,n,r,i,o){void 0===r&&(r="ObservableValue@"+d()),void 0===i&&(i=!0),void 0===o&&(o=D.default);var a=e.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=o,a.hasUnreportedChange=!1,a.value=n(t,void 0,r),a}return(function(e,t){function n(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value,(e=this.prepareNewValue(e))!==Le.UNCHANGED&&this.setNewValue(e)},t.prototype.prepareNewValue=function(e){if(he(this),Ot(this)){var t=St(this,{object:this,type:"update",newValue:e});if(!t)return Le.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Le.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),At(this)&&Et(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return _t(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),xt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return j(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t})(C);S("ObservableValue",Te);var ke=(function(){function e(e){this.dependenciesState=ie.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=ie.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+d(),this.value=new ce(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=oe.NONE,y(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+d(),e.set&&(this.setter=Ae(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?D.structural:D.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!(function(e){e.lowestObserverState===ie.UP_TO_DATE&&(e.lowestObserverState=ie.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===ie.UP_TO_DATE&&(t.dependenciesState=ie.POSSIBLY_STALE,t.isTracing!==oe.NONE&&He(t,e),t.onBecomeStale())})))})(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&v("Cycle detected in computation "+this.name+": "+this.derivation),0!==Le.inBatch||0!==this.observers.size||this.keepAlive?(Ke(this),fe(this)&&this.trackAndCompute()&&(function(e){e.lowestObserverState!==ie.STALE&&(e.lowestObserverState=ie.STALE,e.observers.forEach((function(t){t.dependenciesState===ie.POSSIBLY_STALE?t.dependenciesState=ie.STALE:t.dependenciesState===ie.UP_TO_DATE&&(e.lowestObserverState=ie.UP_TO_DATE)})))})(this)):fe(this)&&(this.warnAboutUntrackedRead(),qe(),this.value=this.computeValue(!1),ze());var e=this.value;if(le(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(le(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){y(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else y(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===ie.NOT_TRACKING,n=this.computeValue(!0),r=t||le(e)||le(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Le.computationDepth++,e)t=pe(this,this.derivation,this.scope);else if(!0===Le.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new ce(e)}return Le.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(de(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return ot((function(){var o=n.get();if(!r||t){var a=ye();e({type:"update",object:n,newValue:o,oldValue:i}),be(a)}r=!1,i=o}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return j(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e})(),Ce=S("ComputedValue",ke),Pe=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Re={};function De(){return"undefined"!=typeof window?window:void 0!==g?g:"undefined"!=typeof self?self:Re}var Ve,Ne=!0,Be=!1,Le=((Ve=De()).__mobxInstanceCount>0&&!Ve.__mobxGlobals&&(Ne=!1),Ve.__mobxGlobals&&Ve.__mobxGlobals.version!==(new Pe).version&&(Ne=!1),Ne?Ve.__mobxGlobals?(Ve.__mobxInstanceCount+=1,Ve.__mobxGlobals.UNCHANGED||(Ve.__mobxGlobals.UNCHANGED={}),Ve.__mobxGlobals):(Ve.__mobxInstanceCount=1,Ve.__mobxGlobals=new Pe):(setTimeout((function(){Be||v("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Pe));function Ie(){return Le}function Ue(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Me(e,t){e.observers.delete(t),0===e.observers.size&&Ge(e)}function Ge(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Le.pendingUnobservations.push(e))}function qe(){Le.inBatch++}function ze(){if(0==--Le.inBatch){Ye();for(var e=Le.pendingUnobservations,t=0;t0&&Ge(e),!1)}function He(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===oe.BREAK){var n=[];Je(dt(Wt(e,undefined)),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof ke?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Je(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Je(e,t,n+1)})))}var We=(function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+d()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=ie.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+d(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=oe.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Le.pendingReactions.push(this),Ye())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(qe(),this._isScheduled=!1,fe(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}ze()}},e.prototype.track=function(e){if(!this.isDisposed){qe(),this._isRunning=!0;var t=pe(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&de(this),le(t)&&this.reportExceptionInDerivation(t.cause),ze()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Le.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Le.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Le.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(qe(),de(this),ze()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[k]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),(function(){for(var e=[],t=0;t0||Le.isRunningReactions||Xe(Fe)}function Fe(){Le.isRunningReactions=!0;for(var e=Le.pendingReactions,t=0;e.length>0;){++t===$e&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",e):2===arguments.length&&"function"==typeof t?Ae(e,t):1===arguments.length&&"string"==typeof e?tt(e):!0!==r?tt(t).apply(null,arguments):void _(e,t,Ae(e.name||t,n.value,this))};function rt(e,t){return"string"==typeof e||e.name,xe(0,"function"==typeof e?e:t,this,void 0)}function it(e,t,n){_(e,t,Ae(t,n.bind(e)))}function ot(e,t){void 0===t&&(t=p);var n,r=t&&t.name||e.name||"Autorun@"+d();if(t.scheduler||t.delay){var i=st(t),o=!1;n=new We(r,(function(){o||(o=!0,i((function(){o=!1,n.isDisposed||n.track(a)})))}),t.onError,t.requiresObservable)}else n=new We(r,(function(){this.track(a)}),t.onError,t.requiresObservable);function a(){e(n)}return n.schedule(),n.getDisposer()}nt.bound=function(e,t,n,r){return!0===r?(it(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return it(this,t,n.value||n.initializer.call(this)),this[t]},set:et}:{enumerable:!1,configurable:!0,set:function(e){it(this,t,e)},get:function(){}}};var at=function(e){return e()};function st(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:at}function ut(e,t,n){void 0===n&&(n=p);var r,i,o,a=n.name||"Reaction@"+d(),s=nt(a,n.onError?(r=n.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){r.call(this,e)}}):t),u=!n.scheduler&&!n.delay,c=st(n),l=!0,f=!1,h=n.compareStructural?D.structural:n.equals||D.default,v=new We(a,(function(){l||u?y():f||(f=!0,c(y))}),n.onError,n.requiresObservable);function y(){if(f=!1,!v.isDisposed){var t=!1;v.track((function(){var n=e(v);t=l||!h(o,n),o=n})),l&&n.fireImmediately&&s(o,v),l||!0!==t||s(o,v),l&&(l=!1)}}return v.schedule(),v.getDisposer()}function ct(e,t,n){return lt("onBecomeUnobserved",e,t,n)}function lt(e,t,n,r){var i="function"==typeof r?Wt(t,n):Wt(t),o="function"==typeof r?r:n,a=e+"Listeners";return i[a]?i[a].add(o):i[a]=new Set([o]),"function"!=typeof i[e]?v(!1):function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function ft(e,t,n,r){var i=ht(r=X(r));return z(e),Gt(e,r.name,i.enhancer),t&&pt(e,t,n,i),e}function ht(e){return e.defaultDecorator||(!1===e.deep?Q:Y)}function pt(e,t,n,r){var i,o;qe();try{var a=T(t);try{for(var s=B(a),u=s.next();!u.done;u=s.next()){var c=u.value,l=Object.getOwnPropertyDescriptor(t,c),f=(n&&c in n?n[c]:l.get?ae:r)(e,c,l,!0);f&&Object.defineProperty(e,c,f)}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}finally{ze()}}function dt(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(dt)),r}function vt(e){return 1!==arguments.length&&v(!1),(function(e,t){return null!=e&&(Jt(e)||!!e[k]||P(e)||Qe(e)||Ce(e))})(e)}function yt(e,t,n){if(2!==arguments.length||Ut(e))if(Jt(e)){var r=e[k];r.values.get(t)?r.write(t,n):r.addObservableProp(t,n,r.defaultEnhancer)}else if(Bt(e))e.set(t,n);else if(Ut(e))e.add(t);else{if(!Rt(e))return v(!1);"number"!=typeof t&&(t=parseInt(t,10)),y(t>=0,"Not a valid index: '"+t+"'"),qe(),t>=e.length&&(e.length=t+1),e[t]=n,ze()}else{qe();var i=t;try{for(var o in i)yt(e,o,i[o])}finally{ze()}}}function bt(e,t){void 0===t&&(t=void 0),qe();try{return e.apply(t)}finally{ze()}}function gt(e){return e[k]}function mt(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var wt={has:function(e,t){if(t===k||"constructor"===t||t===U)return!0;var n=gt(e);return mt(t)?n.has(t):t in e},get:function(e,t){if(t===k||"constructor"===t||t===U)return e[t];var n=gt(e),r=n.values.get(t);if(r instanceof C){var i=r.get();return void 0===i&&n.has(t),i}return mt(t)&&n.has(t),e[t]},set:function(e,t,n){return!!mt(t)&&(yt(e,t,n),!0)},deleteProperty:function(e,t){return!!mt(t)&&(gt(e).remove(t),!0)},ownKeys:function(e){return gt(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return v("Dynamic observable objects cannot be frozen"),!1}};function Ot(e){return void 0!==e.interceptors&&e.interceptors.length>0}function _t(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),b((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function St(e,t){var n=ye();try{for(var r=I(e.interceptors||[]),i=0,o=r.length;i0}function xt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),b((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Et(e,t){var n=ye(),r=e.changeListeners;if(r){for(var i=0,o=(r=r.slice()).length;i0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return _t(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),xt(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;ri?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=h),Ot(this)){var o=St(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!o)return h;t=o.removedCount,n=o.added}n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}));var a=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,I([e,t],n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&!1,i=At(this),o=i||r?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),i&&Et(this,o)},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&!1,i=At(this),o=i||r?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),i&&Et(this,o)},e})(),kt={intercept:function(e){return this[k].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[k].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[k];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],r=2;r-1&&(this.splice(n,1),!0)},get:function(e){var t=this[k];if(t){if(e=0&&n++}e=Qt(e),t=Qt(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,c=t.constructor;if(u!==c&&!("function"==typeof u&&u instanceof u&&"function"==typeof c&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return i[l]===t;if(r.push(e),i.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!Ft(e[l],t[l],n-1,r,i))return!1}else{var f=Object.keys(e),h=void 0;if(l=f.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!Zt(t,h=f[l])||!Ft(e[h],t[h],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function Qt(e){return Rt(e)?e.slice():A(e)||Bt(e)||x(e)||Ut(e)?Array.from(e.entries()):e}function Zt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function en(e){return e[Symbol.iterator]=tn,e}function tn(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:function(e,t){return(void 0!==t?Wt(e,t):Jt(e)||Bt(e)||Ut(e)?$t(e):Wt(e)).name}},$mobx:k});var nn=new Map;function rn(e){var t,n=an(e),r=null!=(t=nn.get(n))?t:[];return r.push(e),nn.set(n,r),{unsubscribe:function(){var t=nn.has(n)?nn.get(n):[],r=t.indexOf(e);-1!==r&&(t.splice(r,1),0===t.length&&nn.delete(n))}}}function on(){return on=(0,o.default)((function*(){for(var e=[],t=[],i=arguments.length,o=new Array(i),a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")},_e.a=function(){var t=!1;return(0,v.useMemo)((function(){t=!0}),[]),t},_e.b=function(t){return Array.from(new Set(t))},_e.c=function(t){return void 0!==t},_e.d=w,_e.e=function(t){if(null==t)throw new Error("Did not expect an argument to be undefined");return t},_e.f=function(t){return p.d.all(t.filter((function(t){return void 0!==t&&(n=t,!(0===Object.getOwnPropertyNames(n).length&&n.constructor===Object));var n})),{clone:!1})},_e.g=function(t,n){var e=[],u={};return t.forEach((function(t){var o=n(t);Object.prototype.hasOwnProperty.call(u,o)||(u[o]=!0,e.push(t))})),e},_e.h=function(t){var n;return(n=[]).concat.apply(n,(0,e.default)(t))},_e.i=function(t){return null!=t&&"object"==typeof t&&t.constructor==={}.constructor},_e.j=function(t){var n,e;return null!=(n=null!=(e=t.displayName)?e:t.name)?n:""},_e.k=function(){for(var t=arguments.length,n=new Array(t),e=0;e=4?n[3]:void 0},_e.m=function(t,n){var e={};return Object.keys(t).forEach((function(u){return e[u]=n(t[u],u)})),e},_e.n=function(t,n){var e=[],u=function(){var t=n(o),u=e.find((function(n){return n.key===t}));u?u.values.push(o):e.push({key:t,values:[o]})};for(var o of t)u();return e},_e.o=function(){throw new y},_e.p=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,u=[],o=[];return n.forEach((function(n){var c=e(n);return t(n)?u.push(c):o.push(c)})),[u,o]},_e.q=function(t){return"string"==typeof t[0]?t[0].toLowerCase()+t.slice(1):""},_e.r=function(t,n){return Array.from({length:t}).map((function(t,e){return n(e)}))},_e.s=function(t){return"ObjectReference"===t||"ObjectReferenceSet"===t},_e.t=function(t){var n=t.split(/\./g);return n.length>=4?n.slice(1,4).join("."):t},_e.u=function(){for(var t=arguments.length,n=new Array(t),e=0;e0&&void 0!==arguments[0]?arguments[0]:"Unexpected error occurred, please contact your system administrator.";return(0,o.default)(this,p),t=s.call(this,n),Object.setPrototypeOf((0,c.default)(t),p.prototype),t}return(0,u.default)(p)})((0,s.default)(Error));var O=function(t){return t};function w(t){return function(n){return n.reduce((function(n,e){return n[t(e)]=e,n}),Object.create(null))}}}),32,[2,23,6,22,21,13,17,19,16,33,29,30]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]),n=r(d[2]),u=r(d[3]);function p(s){var f="function"==typeof Map?new Map:void 0;return m.exports=p=function(p){if(null===p||!n(p))return p;if("function"!=typeof p)throw new TypeError("Super expression must either be null or a function");if(void 0!==f){if(f.has(p))return f.get(p);f.set(p,s)}function s(){return u(p,arguments,t(this).constructor)}return s.prototype=Object.create(p.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),o(s,p)},m.exports.__esModule=!0,m.exports.default=m.exports,p(s)}m.exports=p,m.exports.__esModule=!0,m.exports.default=m.exports}),33,[16,18,34,35]); -__d((function(g,r,i,a,m,e,d){m.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},m.exports.__esModule=!0,m.exports.default=m.exports}),34,[]); -__d((function(g,r,i,_a,m,e,d){var t=r(d[0]),o=r(d[1]);function p(s,u,n){return o()?(m.exports=p=Reflect.construct,m.exports.__esModule=!0,m.exports.default=m.exports):(m.exports=p=function(o,p,s){var u=[null];u.push.apply(u,p);var n=new(Function.bind.apply(o,u));return s&&t(n,s.prototype),n},m.exports.__esModule=!0,m.exports.default=m.exports),p.apply(null,arguments)}m.exports=p,m.exports.__esModule=!0,m.exports.default=m.exports}),35,[18,36]); -__d((function(g,r,i,a,m,_e,d){m.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},m.exports.__esModule=!0,m.exports.default=m.exports}),36,[]); -__d((function(g,r,i,a,_m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.S=void 0,e.a=function(t,n){var o;return(0,u.s)(null==t||null==(o=t.attributes[n])?void 0:o.type)},e.b=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return b(t.objectType,n)&&!0===(0,u.e)(t.attributes.HasContents).value},e.c=function(t){return s(t,"System.Image")},e.d=function(t){var n,u;return Object.values(null!=(n=null==(u=l(t))?void 0:u.attributes)?n:{})},e.e=function(t,n){var u,o=`${t}.${n}`,s=f.get(o);if(void 0!==s&&!p)return s;var c=l(t);if(null==c||!c.attributes[n])return;var b=null!=(u=c.generalizations.filter((function(t){var u;return null==(u=l(t))?void 0:u.attributes[n]})).pop())?u:t;return f.set(o,b),b},e.f=b,e.g=l,e.h=s,e.i=function(t){return Object.values(c).includes(t)},e.j=function(t,n){var u,o;return null==(u=y().get(t))||null==(o=u.attributes[n])?void 0:o.type},e.k=function(t,n){var o,l,s=null==(o=y().get(t))||null==(l=o.attributes[n])?void 0:l.enumeration;if(!s)throw new u.A(`Attribute ${n} is not accessible or not enumeration`);return s};var n=t(r(d[1])),u=r(d[2]),o=r(d[3]);function l(t){return y().get(t)}function s(t,n){var u;return t===n||Boolean(null==(u=l(t))?void 0:u.generalizations.includes(n))}var c,f=new Map;function b(t){return s(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"System.Image":"System.FileDocument")}!(function(t){t.ChangedBy="System.changedBy",t.Owner="System.owner",t.CreatedDate="createdDate",t.ChangedDate="changedDate"})(c||(e.S=c={}));var v=new Map;function y(){return 0===v.size&&(0,o.g)().getConfig("metadata").forEach((function(t){var o=Object.freeze(Object.assign({name:t.objectType,generalizations:Object.freeze(t.properties.superclasses),specializations:Object.freeze(t.properties.subclasses),isPersistable:t.persistable,maxObjectId:t.maxObjectId},t.isRemoteFileEntity&&{isRemoteFileEntity:t.isRemoteFileEntity},{needsReachableState:Object.freeze(t.needsReachableState),deleteBehavior:Object.freeze(t.deleteBehavior),attributes:Object.freeze(Object.fromEntries(Object.entries(t.attributes).map((function(t){var o=(0,n.default)(t,2),l=o[0],s=o[1];return[l,Object.freeze({name:l,type:s.type,referenceEntity:(0,u.s)(s.type)?s.klass:void 0,enumeration:"Enum"===s.type?s.klass:void 0,isDateLocalized:"DateTime"===s.type?Boolean(s.localize):void 0,isBidiReference:(0,u.s)(s.type)?Boolean(s.both):void 0,isSyncable:!1!==s.sync,isAlwaysReadOnly:Boolean(s.readonly),defaultValue:s.defaultValue})]}))))}));v.set(t.objectType,o)})),v}var p=!1}),37,[2,23,32,38]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.g=function(){return(0,t.e)(n)},e.s=function(t){n=t};var n,t=r(d[0])}),38,[32]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]),n=r(d[2]),u=r(d[3]);function p(s){var f="function"==typeof Map?new Map:void 0;return m.exports=p=function(p){if(null===p||!n(p))return p;if("function"!=typeof p)throw new TypeError("Super expression must either be null or a function");if(void 0!==f){if(f.has(p))return f.get(p);f.set(p,s)}function s(){return u(p,arguments,t(this).constructor)}return s.prototype=Object.create(p.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),o(s,p)},m.exports.__esModule=!0,m.exports.default=m.exports,p(s)}m.exports=p,m.exports.__esModule=!0,m.exports.default=m.exports}),12,[13,14,15,16]); +__d((function(g,r,i,a,m,e,d){function t(o){return m.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m.exports.__esModule=!0,m.exports.default=m.exports,t(o)}m.exports=t,m.exports.__esModule=!0,m.exports.default=m.exports}),13,[]); +__d((function(g,r,i,a,m,e,d){function t(o,s){return m.exports=t=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},m.exports.__esModule=!0,m.exports.default=m.exports,t(o,s)}m.exports=t,m.exports.__esModule=!0,m.exports.default=m.exports}),14,[]); +__d((function(g,r,i,a,m,e,d){m.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},m.exports.__esModule=!0,m.exports.default=m.exports}),15,[]); +__d((function(g,r,i,_a,m,e,d){var t=r(d[0]),o=r(d[1]);function p(s,u,n){return o()?(m.exports=p=Reflect.construct,m.exports.__esModule=!0,m.exports.default=m.exports):(m.exports=p=function(o,p,s){var u=[null];u.push.apply(u,p);var n=new(Function.bind.apply(o,u));return s&&t(n,s.prototype),n},m.exports.__esModule=!0,m.exports.default=m.exports),p.apply(null,arguments)}m.exports=p,m.exports.__esModule=!0,m.exports.default=m.exports}),16,[14,17]); +__d((function(g,r,i,a,m,_e,d){m.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},m.exports.__esModule=!0,m.exports.default=m.exports}),17,[]); +__d((function(g,r,i,a,m,e,d){function n(n,t,o,u,c,s,f){try{var v=n[s](f),p=v.value}catch(n){return void o(n)}v.done?t(p):Promise.resolve(p).then(u,c)}m.exports=function(t){return function(){var o=this,u=arguments;return new Promise((function(c,s){var f=t.apply(o,u);function v(t){n(f,c,s,v,p,"next",t)}function p(t){n(f,c,s,v,p,"throw",t)}v(void 0)}))}},m.exports.__esModule=!0,m.exports.default=m.exports}),18,[]); +__d((function(g,r,i,a,m,e,d){m.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},m.exports.__esModule=!0,m.exports.default=m.exports}),19,[]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]).default,t=r(d[1]);m.exports=function(n,u){if(u&&("object"===o(u)||"function"==typeof u))return u;if(void 0!==u)throw new TypeError("Derived constructors may only return object or undefined");return t(n)},m.exports.__esModule=!0,m.exports.default=m.exports}),20,[21,19]); +__d((function(g,r,i,a,m,e,d){function o(t){return m.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},m.exports.__esModule=!0,m.exports.default=m.exports,o(t)}m.exports=o,m.exports.__esModule=!0,m.exports.default=m.exports}),21,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(m.exports=o=Reflect.get,m.exports.__esModule=!0,m.exports.default=m.exports):(m.exports=o=function(o,p,s){var l=t(o,p);if(l){var u=Object.getOwnPropertyDescriptor(l,p);return u.get?u.get.call(arguments.length<3?o:s):u.value}},m.exports.__esModule=!0,m.exports.default=m.exports),o.apply(this,arguments)}m.exports=o,m.exports.__esModule=!0,m.exports.default=m.exports}),22,[23]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(o,n){for(;!Object.prototype.hasOwnProperty.call(o,n)&&null!==(o=t(o)););return o},m.exports.__esModule=!0,m.exports.default=m.exports}),23,[13]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(n&&n.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),n&&t(o,n)},m.exports.__esModule=!0,m.exports.default=m.exports}),24,[14]); +__d((function(g,r,i,a,m,e,d){m.exports=function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")},m.exports.__esModule=!0,m.exports.default=m.exports}),25,[]); +__d((function(g,r,_i,a,m,e,d){function t(t,o){for(var n=0;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function L(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function I(){for(var e=[],t=0;t2&&re("box");var n=X(t);return new Te(e,ee(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&re("array");var n=X(t);return(function(e,t,n,r){void 0===n&&(n="ObservableArray@"+d()),void 0===r&&(r=!1);var i,o,a,s=new Tt(n,t,r);i=s.values,o=k,a=s,Object.defineProperty(i,o,{enumerable:!1,writable:!1,configurable:!0,value:a});var u=new Proxy(s.values,jt);if(s.proxy=u,e&&e.length){var c=Ee(!0);s.spliceWithArray(0,0,e),je(c)}return u})(e,ee(n),n.name)},map:function(e,t){arguments.length>2&&re("map");var n=X(t);return new Nt(e,ee(n),n.name)},set:function(e,t){arguments.length>2&&re("set");var n=X(t);return new It(e,ee(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&re("object");var r=X(n);if(!1===r.proxy)return ft({},e,t,r);var i=ht(r),o=(function(e){var t=new Proxy(e,wt);return e[k].proxy=t,t})(ft({},void 0,void 0,r));return pt(o,e,t,i),o},ref:Q,shallow:F,deep:Y,struct:Z},ne=_e2.D=function e(t,n,r){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return Y.apply(null,arguments);if(vt(t))return t;var i=O(t)?e.object(t,n,r):Array.isArray(t)?e.array(t,n):A(t)?e.map(t,n):x(t)?e.set(t,n):t;if(i!==t)return i;v(!1)};function re(e){v("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(te).forEach((function(e){return ne[e]=te[e]}));var ie,oe,ae=z(!1,(function(e,t,n,r,i){var o=n.get,a=n.set,s=i[0]||{};Gt(e).addComputedProp(e,t,N({get:o,set:a,context:e},s))})),se=ae({equals:D.structural}),ue=function(e,t,n){if("string"==typeof t)return ae.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return ae.apply(null,arguments);var r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new ke(r)};ue.struct=se,(function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"})(ie||(ie={})),(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(oe||(oe={}));var ce=function(e){this.cause=e};function le(e){return e instanceof ce}function fe(e){switch(e.dependenciesState){case ie.UP_TO_DATE:return!1;case ie.NOT_TRACKING:case ie.STALE:return!0;case ie.POSSIBLY_STALE:for(var t=ge(!0),n=ye(),r=e.observing,i=r.length,o=0;o0;Le.computationDepth>0&&t&&v(!1),Le.allowStateChanges||!t&&"strict"!==Le.enforceActions||v(!1)}function pe(e,t,n){var r=ge(!0);we(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Le.runId;var i,o=Le.trackingDerivation;if(Le.trackingDerivation=e,!0===Le.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new ce(e)}return Le.trackingDerivation=o,(function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=ie.UP_TO_DATE,i=0,o=e.unboundDepsCount,a=0;ar&&(r=s.dependenciesState);for(n.length=i,e.newObserving=null,o=t.length;o--;)0===(s=t[o]).diffValue&&Me(s,e),s.diffValue=0;for(;i--;){var s;1===(s=n[i]).diffValue&&(s.diffValue=0,Ue(s,e))}r!==ie.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())})(e),me(r),i}function de(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Me(t[n],e);e.dependenciesState=ie.NOT_TRACKING}function ve(e){var t=ye();try{return e()}finally{be(t)}}function ye(){var e=Le.trackingDerivation;return Le.trackingDerivation=null,e}function be(e){Le.trackingDerivation=e}function ge(e){var t=Le.allowStateReads;return Le.allowStateReads=e,t}function me(e){Le.allowStateReads=e}function we(e){if(e.dependenciesState!==ie.UP_TO_DATE){e.dependenciesState=ie.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=ie.UP_TO_DATE}}var Oe=0,_e=1,Se=Object.getOwnPropertyDescriptor((function(){}),"name");function Ae(e,t,n){var r=function(){return xe(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function xe(e,t,n,r){var i=(function(e,t,n){var r=ye();qe();var i={prevDerivation:r,prevAllowStateChanges:Ee(!0),prevAllowStateReads:ge(!0),notifySpy:!1,startTime:0,actionId:_e++,parentActionId:Oe};return Oe=i.actionId,i})();try{return t.apply(n,r)}catch(e){throw i.error=e,e}finally{!(function(e){Oe!==e.actionId&&v("invalid action stack. did you forget to finish an action?"),Oe=e.parentActionId,void 0!==e.error&&(Le.suppressReactionErrors=!0),je(e.prevAllowStateChanges),me(e.prevAllowStateReads),Ke(),be(e.prevDerivation),e.notifySpy,Le.suppressReactionErrors=!1})(i)}}function Ee(e){var t=Le.allowStateChanges;return Le.allowStateChanges=e,t}function je(e){Le.allowStateChanges=e}Se&&Se.configurable;var Te=(function(e){function t(t,n,r,i,o){void 0===r&&(r="ObservableValue@"+d()),void 0===i&&(i=!0),void 0===o&&(o=D.default);var a=e.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=o,a.hasUnreportedChange=!1,a.value=n(t,void 0,r),a}return(function(e,t){function n(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value,(e=this.prepareNewValue(e))!==Le.UNCHANGED&&this.setNewValue(e)},t.prototype.prepareNewValue=function(e){if(he(this),Ot(this)){var t=St(this,{object:this,type:"update",newValue:e});if(!t)return Le.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Le.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),At(this)&&Et(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return _t(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),xt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return j(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t})(C);S("ObservableValue",Te);var ke=(function(){function e(e){this.dependenciesState=ie.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=ie.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+d(),this.value=new ce(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=oe.NONE,y(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+d(),e.set&&(this.setter=Ae(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?D.structural:D.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!(function(e){e.lowestObserverState===ie.UP_TO_DATE&&(e.lowestObserverState=ie.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===ie.UP_TO_DATE&&(t.dependenciesState=ie.POSSIBLY_STALE,t.isTracing!==oe.NONE&&He(t,e),t.onBecomeStale())})))})(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&v("Cycle detected in computation "+this.name+": "+this.derivation),0!==Le.inBatch||0!==this.observers.size||this.keepAlive?(ze(this),fe(this)&&this.trackAndCompute()&&(function(e){e.lowestObserverState!==ie.STALE&&(e.lowestObserverState=ie.STALE,e.observers.forEach((function(t){t.dependenciesState===ie.POSSIBLY_STALE?t.dependenciesState=ie.STALE:t.dependenciesState===ie.UP_TO_DATE&&(e.lowestObserverState=ie.UP_TO_DATE)})))})(this)):fe(this)&&(this.warnAboutUntrackedRead(),qe(),this.value=this.computeValue(!1),Ke());var e=this.value;if(le(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(le(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){y(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else y(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===ie.NOT_TRACKING,n=this.computeValue(!0),r=t||le(e)||le(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Le.computationDepth++,e)t=pe(this,this.derivation,this.scope);else if(!0===Le.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new ce(e)}return Le.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(de(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return ot((function(){var o=n.get();if(!r||t){var a=ye();e({type:"update",object:n,newValue:o,oldValue:i}),be(a)}r=!1,i=o}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return j(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e})(),Ce=S("ComputedValue",ke),Pe=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Re={};function De(){return"undefined"!=typeof window?window:void 0!==g?g:"undefined"!=typeof self?self:Re}var Ve,Ne=!0,Be=!1,Le=((Ve=De()).__mobxInstanceCount>0&&!Ve.__mobxGlobals&&(Ne=!1),Ve.__mobxGlobals&&Ve.__mobxGlobals.version!==(new Pe).version&&(Ne=!1),Ne?Ve.__mobxGlobals?(Ve.__mobxInstanceCount+=1,Ve.__mobxGlobals.UNCHANGED||(Ve.__mobxGlobals.UNCHANGED={}),Ve.__mobxGlobals):(Ve.__mobxInstanceCount=1,Ve.__mobxGlobals=new Pe):(setTimeout((function(){Be||v("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Pe));function Ie(){return Le}function Ue(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Me(e,t){e.observers.delete(t),0===e.observers.size&&Ge(e)}function Ge(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Le.pendingUnobservations.push(e))}function qe(){Le.inBatch++}function Ke(){if(0==--Le.inBatch){Ye();for(var e=Le.pendingUnobservations,t=0;t0&&Ge(e),!1)}function He(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===oe.BREAK){var n=[];Je(dt(Wt(e,undefined)),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof ke?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Je(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Je(e,t,n+1)})))}var We=(function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+d()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=ie.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+d(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=oe.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Le.pendingReactions.push(this),Ye())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(qe(),this._isScheduled=!1,fe(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}Ke()}},e.prototype.track=function(e){if(!this.isDisposed){qe(),this._isRunning=!0;var t=pe(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&de(this),le(t)&&this.reportExceptionInDerivation(t.cause),Ke()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Le.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Le.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Le.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(qe(),de(this),Ke()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[k]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),(function(){for(var e=[],t=0;t0||Le.isRunningReactions||Xe(Fe)}function Fe(){Le.isRunningReactions=!0;for(var e=Le.pendingReactions,t=0;e.length>0;){++t===$e&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",e):2===arguments.length&&"function"==typeof t?Ae(e,t):1===arguments.length&&"string"==typeof e?tt(e):!0!==r?tt(t).apply(null,arguments):void _(e,t,Ae(e.name||t,n.value,this))};function rt(e,t){return"string"==typeof e||e.name,xe(0,"function"==typeof e?e:t,this,void 0)}function it(e,t,n){_(e,t,Ae(t,n.bind(e)))}function ot(e,t){void 0===t&&(t=p);var n,r=t&&t.name||e.name||"Autorun@"+d();if(t.scheduler||t.delay){var i=st(t),o=!1;n=new We(r,(function(){o||(o=!0,i((function(){o=!1,n.isDisposed||n.track(a)})))}),t.onError,t.requiresObservable)}else n=new We(r,(function(){this.track(a)}),t.onError,t.requiresObservable);function a(){e(n)}return n.schedule(),n.getDisposer()}nt.bound=function(e,t,n,r){return!0===r?(it(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return it(this,t,n.value||n.initializer.call(this)),this[t]},set:et}:{enumerable:!1,configurable:!0,set:function(e){it(this,t,e)},get:function(){}}};var at=function(e){return e()};function st(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:at}function ut(e,t,n){void 0===n&&(n=p);var r,i,o,a=n.name||"Reaction@"+d(),s=nt(a,n.onError?(r=n.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){r.call(this,e)}}):t),u=!n.scheduler&&!n.delay,c=st(n),l=!0,f=!1,h=n.compareStructural?D.structural:n.equals||D.default,v=new We(a,(function(){l||u?y():f||(f=!0,c(y))}),n.onError,n.requiresObservable);function y(){if(f=!1,!v.isDisposed){var t=!1;v.track((function(){var n=e(v);t=l||!h(o,n),o=n})),l&&n.fireImmediately&&s(o,v),l||!0!==t||s(o,v),l&&(l=!1)}}return v.schedule(),v.getDisposer()}function ct(e,t,n){return lt("onBecomeUnobserved",e,t)}function lt(e,t,n,r){var i=Wt(t),o=n,a=e+"Listeners";return i[a]?i[a].add(o):i[a]=new Set([o]),"function"!=typeof i[e]?v(!1):function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function ft(e,t,n,r){var i=ht(r=X(r));return K(e),Gt(e,r.name,i.enhancer),t&&pt(e,t,n,i),e}function ht(e){return e.defaultDecorator||(!1===e.deep?Q:Y)}function pt(e,t,n,r){var i,o;qe();try{var a=T(t);try{for(var s=B(a),u=s.next();!u.done;u=s.next()){var c=u.value,l=Object.getOwnPropertyDescriptor(t,c),f=(n&&c in n?n[c]:l.get?ae:r)(e,c,l,!0);f&&Object.defineProperty(e,c,f)}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}finally{Ke()}}function dt(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(dt)),r}function vt(e){return 1!==arguments.length&&v(!1),(function(e,t){return null!=e&&(Jt(e)||!!e[k]||P(e)||Qe(e)||Ce(e))})(e)}function yt(e,t,n){if(2!==arguments.length||Ut(e))if(Jt(e)){var r=e[k];r.values.get(t)?r.write(t,n):r.addObservableProp(t,n,r.defaultEnhancer)}else if(Bt(e))e.set(t,n);else if(Ut(e))e.add(t);else{if(!Rt(e))return v(!1);"number"!=typeof t&&(t=parseInt(t,10)),y(t>=0,"Not a valid index: '"+t+"'"),qe(),t>=e.length&&(e.length=t+1),e[t]=n,Ke()}else{qe();var i=t;try{for(var o in i)yt(e,o,i[o])}finally{Ke()}}}function bt(e,t){void 0===t&&(t=void 0),qe();try{return e.apply(t)}finally{Ke()}}function gt(e){return e[k]}function mt(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var wt={has:function(e,t){if(t===k||"constructor"===t||t===U)return!0;var n=gt(e);return mt(t)?n.has(t):t in e},get:function(e,t){if(t===k||"constructor"===t||t===U)return e[t];var n=gt(e),r=n.values.get(t);if(r instanceof C){var i=r.get();return void 0===i&&n.has(t),i}return mt(t)&&n.has(t),e[t]},set:function(e,t,n){return!!mt(t)&&(yt(e,t,n),!0)},deleteProperty:function(e,t){return!!mt(t)&&(gt(e).remove(t),!0)},ownKeys:function(e){return gt(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return v("Dynamic observable objects cannot be frozen"),!1}};function Ot(e){return void 0!==e.interceptors&&e.interceptors.length>0}function _t(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),b((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function St(e,t){var n=ye();try{for(var r=I(e.interceptors||[]),i=0,o=r.length;i0}function xt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),b((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Et(e,t){var n=ye(),r=e.changeListeners;if(r){for(var i=0,o=(r=r.slice()).length;i0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return _t(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),xt(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;ri?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=h),Ot(this)){var o=St(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!o)return h;t=o.removedCount,n=o.added}n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}));var a=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,I([e,t],n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&!1,i=At(this),o=i||r?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),i&&Et(this,o)},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&!1,i=At(this),o=i||r?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),i&&Et(this,o)},e})(),kt={intercept:function(e){return this[k].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[k].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[k];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],r=2;r-1&&(this.splice(n,1),!0)},get:function(e){var t=this[k];if(t){if(e=0&&n++}e=Ft(e),t=Ft(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,c=t.constructor;if(u!==c&&!("function"==typeof u&&u instanceof u&&"function"==typeof c&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return i[l]===t;if(r.push(e),i.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!Yt(e[l],t[l],n-1,r,i))return!1}else{var f=Object.keys(e),h=void 0;if(l=f.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!Qt(t,h=f[l])||!Yt(e[h],t[h],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function Ft(e){return Rt(e)?e.slice():A(e)||Bt(e)||x(e)||Ut(e)?Array.from(e.entries()):e}function Qt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zt(e){return e[Symbol.iterator]=en,e}function en(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:function(e,t){return(void 0!==t?Wt(e,t):Jt(e)||Bt(e)||Ut(e)?(function(e,t){return e||v("Expecting some object"),P(e)||Ce(e)||Qe(e)||Bt(e)||Ut(e)?e:(K(e),e[k]?e[k]:void v(!1))})(e):Wt(e)).name}},$mobx:k});var tn=new Map;function nn(e){var t,n=on(e),r=null!=(t=tn.get(n))?t:[];return r.push(e),tn.set(n,r),{unsubscribe:function(){var t=tn.has(n)?tn.get(n):[],r=t.indexOf(e);-1!==r&&(t.splice(r,1),0===t.length&&tn.delete(n))}}}function rn(){return rn=(0,o.default)((function*(){for(var e=[],t=[],i=arguments.length,o=new Array(i),a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")},_e.a=function(){var n=!1;return(0,h.useMemo)((function(){n=!0}),[]),n},_e.b=function(n){return Array.from(new Set(n))},_e.c=b,_e.d=function(n,t){return new Set((0,e.default)(n).filter((function(n){return!t.has(n)})))},_e.e=function(n){if(null==n)throw new Error("Did not expect an argument to be undefined");return n},_e.f=function(n){return v.d.all(n.filter((function(n){return void 0!==n&&(t=n,!(0===Object.getOwnPropertyNames(t).length&&t.constructor===Object));var t})),{clone:!1})},_e.g=function(n,t){var e=[],u=function(){var n=t(o),u=e.find((function(t){return t.key===n}));u?u.values.push(o):e.push({key:n,values:[o]})};for(var o of n)u();return e},_e.h=function(n){return void 0!==n},_e.i=function(n){return null!=n&&"object"==typeof n&&n.constructor==={}.constructor},_e.j=function(n,t){var e=[],u={};return n.forEach((function(n){var o=t(n);Object.prototype.hasOwnProperty.call(u,o)||(u[o]=!0,e.push(n))})),e},_e.k=function(n){var t;return(t=[]).concat.apply(t,(0,e.default)(n))},_e.l=function(n){var t,e;return null!=(t=null!=(e=n.displayName)?e:n.name)?t:""},_e.m=function(n,t){var e={};return Object.keys(n).forEach((function(u){return e[u]=t(n[u],u)})),e},_e.n=function(){for(var n=arguments.length,t=new Array(n),e=0;e=4?t[3]:void 0},_e.p=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,u=[],o=[];return t.forEach((function(t){var c=e(t);return n(t)?u.push(c):o.push(c)})),[u,o]},_e.q=function(){throw new w},_e.r=function(n){return"string"==typeof n[0]?n[0].toLowerCase()+n.slice(1):""},_e.s=function(n){return"ObjectReference"===n||"ObjectReferenceSet"===n},_e.t=function(n){var t=n.split(/\./g);return t.length>=4?t.slice(1,4).join("."):n},_e.u=function(){for(var n=arguments.length,t=new Array(n),e=0;e0&&void 0!==arguments[0]?arguments[0]:"Unexpected error occurred, please contact your system administrator.";return(0,o.default)(this,t),e=this,u=t,s=[p],u=(0,l.default)(u),n=(0,f.default)(e,y()?Reflect.construct(u,s||[],(0,l.default)(e).constructor):u.apply(e,s)),Object.setPrototypeOf((0,c.default)(n),t.prototype),n}return(0,s.default)(t,n),(0,u.default)(t)})((0,p.default)(Error));var O=function(n){return n};function b(n){return function(t){return t.reduce((function(t,e){return t[n(e)]=e,t}),Object.create(null))}}}),36,[2,27,6,26,25,19,20,13,24,12,33,34]); +__d((function(g,r,i,a,_m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.S=void 0,e.a=function(t,n){var o;return(0,u.s)(null==t||null==(o=t.attributes[n])?void 0:o.type)},e.b=function(t){var n,u;return Object.values(null!=(n=null==(u=s(t))?void 0:u.attributes)?n:{})},e.c=function(t,n){var u,o=`${t}.${n}`,l=f.get(o);if(void 0!==l&&!m)return l;var c=s(t);if(null==c||!c.attributes[n])return;var b=null!=(u=c.generalizations.filter((function(t){var u;return null==(u=s(t))?void 0:u.attributes[n]})).pop())?u:t;return f.set(o,b),b},e.d=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return b(t.objectType,n)&&!0===(0,u.e)(t.attributes.HasContents).value},e.e=function(t){return l(t,"System.Image")},e.f=b,e.g=s,e.h=l,e.i=function(t){return Object.values(c).includes(t)},e.j=function(t,n){var u,o;return null==(u=y().get(t))||null==(o=u.attributes[n])?void 0:o.type},e.k=function(t,n){var o,s,l=null==(o=y().get(t))||null==(s=o.attributes[n])?void 0:s.enumeration;if(!l)throw new u.A(`Attribute ${n} is not accessible or not enumeration`);return l};var n=t(r(d[1])),u=r(d[2]),o=r(d[3]);function s(t){return y().get(t)}function l(t,n){var u;return t===n||Boolean(null==(u=s(t))?void 0:u.generalizations.includes(n))}var c,f=new Map;function b(t){return l(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"System.Image":"System.FileDocument")}!(function(t){t.ChangedBy="System.changedBy",t.Owner="System.owner",t.CreatedDate="createdDate",t.ChangedDate="changedDate"})(c||(e.S=c={}));var v=new Map;function y(){return 0===v.size&&(0,o.g)().getConfig("metadata").forEach((function(t){var o=Object.freeze(Object.assign({name:t.objectType,generalizations:Object.freeze(t.properties.superclasses),specializations:Object.freeze(t.properties.subclasses),isPersistable:t.persistable,maxObjectId:t.maxObjectId},t.isRemoteFileEntity&&{isRemoteFileEntity:t.isRemoteFileEntity},{needsReachableState:Object.freeze(t.needsReachableState),deleteBehavior:Object.freeze(t.deleteBehavior),attributes:Object.freeze(Object.fromEntries(Object.entries(t.attributes).map((function(t){var o=(0,n.default)(t,2),s=o[0],l=o[1];return[s,Object.freeze({name:s,type:l.type,referenceEntity:(0,u.s)(l.type)?l.klass:void 0,enumeration:"Enum"===l.type?l.klass:void 0,isDateLocalized:"DateTime"===l.type?Boolean(l.localize):void 0,isBidiReference:(0,u.s)(l.type)?Boolean(l.both):void 0,isSyncable:!1!==l.sync,isAlwaysReadOnly:Boolean(l.readonly),defaultValue:l.defaultValue})]})))),indices:t.indices.map((function(t){return Object.freeze({attributes:t.attributes.map((function(t){return Object.freeze({name:t.name,direction:t.direction})}))})}))}));v.set(t.objectType,o)})),v}var m=!1}),37,[2,27,36,38]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.g=function(){return(0,t.e)(n)},e.s=function(t){n=t};var n,t=r(d[0])}),38,[36]); __d((function(g,r,i,a,m,e,d){'use strict';r(d[0]);var t=r(d[1]);m.exports={get AccessibilityInfo(){return r(d[2]).default},get ActivityIndicator(){return r(d[3]).default},get Button(){return r(d[4])},get DrawerLayoutAndroid(){return r(d[5])},get FlatList(){return r(d[6])},get Image(){return r(d[7])},get ImageBackground(){return r(d[8])},get InputAccessoryView(){return r(d[9])},get KeyboardAvoidingView(){return r(d[10]).default},get Modal(){return r(d[11])},get Pressable(){return r(d[12]).default},get ProgressBarAndroid(){return t('progress-bar-android-moved',"ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/progress-bar-android' instead of 'react-native'. See https://github.com/react-native-progress-view/progress-bar-android"),r(d[13])},get RefreshControl(){return r(d[14])},get SafeAreaView(){return r(d[15]).default},get ScrollView(){return r(d[16])},get SectionList(){return r(d[17]).default},get StatusBar(){return r(d[18])},get Switch(){return r(d[19]).default},get Text(){return r(d[20])},get TextInput(){return r(d[21])},get TopLevelView(){return r(d[22])},get Touchable(){return r(d[23])},get TouchableHighlight(){return r(d[24])},get TouchableNativeFeedback(){return r(d[25])},get TouchableOpacity(){return r(d[26])},get TouchableWithoutFeedback(){return r(d[27])},get View(){return r(d[28])},get VirtualizedList(){return r(d[29])},get VirtualizedSectionList(){return r(d[30])},get ActionSheetIOS(){return r(d[31])},get Alert(){return r(d[32])},get Animated(){return r(d[33]).default},get Appearance(){return r(d[34])},get AppRegistry(){return r(d[35])},get AppState(){return r(d[36])},get BackHandler(){return r(d[37])},get Clipboard(){return t('clipboard-moved',"Clipboard has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-clipboard/clipboard' instead of 'react-native'. See https://github.com/react-native-clipboard/clipboard"),r(d[38])},get DeviceInfo(){return r(d[39])},get DevSettings(){return r(d[40])},get Dimensions(){return r(d[41]).default},get Easing(){return r(d[42]).default},get findNodeHandle(){return r(d[43]).findNodeHandle},get I18nManager(){return r(d[44])},get InteractionManager(){return r(d[45])},get Keyboard(){return r(d[46])},get LayoutAnimation(){return r(d[47])},get Linking(){return r(d[48])},get LogBox(){return r(d[49]).default},get NativeDialogManagerAndroid(){return r(d[50]).default},get NativeEventEmitter(){return r(d[51]).default},get Networking(){return r(d[52]).default},get PanResponder(){return r(d[53]).default},get PermissionsAndroid(){return r(d[54])},get PixelRatio(){return r(d[55]).default},get PushNotificationIOS(){return t('pushNotificationIOS-moved',"PushNotificationIOS has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/push-notification-ios' instead of 'react-native'. See https://github.com/react-native-push-notification-ios/push-notification-ios"),r(d[56])},get Settings(){return r(d[57])},get Share(){return r(d[58])},get StyleSheet(){return r(d[59])},get Systrace(){return r(d[60])},get ToastAndroid(){return r(d[61])},get TurboModuleRegistry(){return r(d[62])},get UIManager(){return r(d[63])},get unstable_batchedUpdates(){return r(d[43]).unstable_batchedUpdates},get useAnimatedValue(){return r(d[64]).default},get useColorScheme(){return r(d[65]).default},get useWindowDimensions(){return r(d[66]).default},get UTFSequence(){return r(d[67]).default},get Vibration(){return r(d[68])},get YellowBox(){return r(d[69])},get DeviceEventEmitter(){return r(d[70]).default},get DynamicColorIOS(){return r(d[71]).DynamicColorIOS},get NativeAppEventEmitter(){return r(d[72])},get NativeModules(){return r(d[73])},get Platform(){return r(d[74])},get PlatformColor(){return r(d[75]).PlatformColor},get processColor(){return r(d[76]).default},get requireNativeComponent(){return r(d[77]).default},get RootTagContext(){return r(d[78]).RootTagContext},get unstable_enableLogBox(){return function(){return console.warn('LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.')}},get ColorPropType(){return console.error("ColorPropType will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using ColorPropType, migrate to the 'deprecated-react-native-prop-types' package."),r(d[79]).ColorPropType},get EdgeInsetsPropType(){return console.error("EdgeInsetsPropType will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using EdgeInsetsPropType, migrate to the 'deprecated-react-native-prop-types' package."),r(d[79]).EdgeInsetsPropType},get PointPropType(){return console.error("PointPropType will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using PointPropType, migrate to the 'deprecated-react-native-prop-types' package."),r(d[79]).PointPropType},get ViewPropTypes(){return console.error("ViewPropTypes will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using ViewPropTypes, migrate to the 'deprecated-react-native-prop-types' package."),r(d[79]).ViewPropTypes}}}),39,[40,41,42,235,238,359,310,327,360,361,363,364,368,236,336,370,339,356,372,375,239,378,382,383,387,270,271,388,207,389,390,391,180,272,393,195,396,228,399,401,402,83,282,45,219,279,344,345,404,407,183,171,161,408,410,82,412,414,416,213,51,418,60,93,419,420,423,424,425,427,43,428,191,61,63,76,73,225,214,249]); __d((function(g,r,i,_a,m,_e,_d){'use strict';m.exports=function(e,n,o,t,a,f,s,d){if(!e){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,t,a,f,s,d],l=0;(u=new Error(n.replace(/%s/g,(function(){return c[l++]})))).name='Invariant Violation'}throw u.framesToPop=1,u}}}),40,[]); __d((function(g,r,i,a,m,e,d){'use strict';var n={};m.exports=function(o,t){n[o]||(console.warn(t),n[o]=!0)}}),41,[]); __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),l=r(d[2]),u=n(r(d[3])),o=n(r(d[4])),s=n(r(d[5])),c=n(r(d[6])),f='android'===u.default.OS?new Map([['change','touchExplorationDidChange'],['reduceMotionChanged','reduceMotionDidChange'],['screenReaderChanged','touchExplorationDidChange'],['accessibilityServiceChanged','accessibilityServiceDidChange']]):new Map([['announcementFinished','announcementFinished'],['boldTextChanged','boldTextChanged'],['change','screenReaderChanged'],['grayscaleChanged','grayscaleChanged'],['invertColorsChanged','invertColorsChanged'],['reduceMotionChanged','reduceMotionChanged'],['reduceTransparencyChanged','reduceTransparencyChanged'],['screenReaderChanged','screenReaderChanged']]),C={isBoldTextEnabled:function(){return'android'===u.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=c.default?c.default.getCurrentBoldTextState(n,t):t(null)}))},isGrayscaleEnabled:function(){return'android'===u.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=c.default?c.default.getCurrentGrayscaleState(n,t):t(null)}))},isInvertColorsEnabled:function(){return'android'===u.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=c.default?c.default.getCurrentInvertColorsState(n,t):t(null)}))},isReduceMotionEnabled:function(){return new Promise((function(n,t){'android'===u.default.OS?null!=s.default?s.default.isReduceMotionEnabled(n):t(null):null!=c.default?c.default.getCurrentReduceMotionState(n,t):t(null)}))},prefersCrossFadeTransitions:function(){return new Promise((function(n,t){if('android'===u.default.OS)return Promise.resolve(!1);null!=(null==c.default?void 0:c.default.getCurrentPrefersCrossFadeTransitionsState)?c.default.getCurrentPrefersCrossFadeTransitionsState(n,t):t(null)}))},isReduceTransparencyEnabled:function(){return'android'===u.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=c.default?c.default.getCurrentReduceTransparencyState(n,t):t(null)}))},isScreenReaderEnabled:function(){return new Promise((function(n,t){'android'===u.default.OS?null!=s.default?s.default.isTouchExplorationEnabled(n):t(null):null!=c.default?c.default.getCurrentVoiceOverState(n,t):t(null)}))},isAccessibilityServiceEnabled:function(){return new Promise((function(n,t){'android'===u.default.OS&&null!=s.default&&null!=s.default.isAccessibilityServiceEnabled?s.default.isAccessibilityServiceEnabled(n):t(null)}))},addEventListener:function(n,l){var u=f.get(n);return null==u?{remove:function(){}}:t.default.addListener(u,l)},setAccessibilityFocus:function(n){(0,o.default)(n,'focus')},sendAccessibilityEvent:function(n,t){'ios'===u.default.OS&&'click'===t||(0,l.sendAccessibilityEvent)(n,t)},announceForAccessibility:function(n){'android'===u.default.OS?null==s.default||s.default.announceForAccessibility(n):null==c.default||c.default.announceForAccessibility(n)},announceForAccessibilityWithOptions:function(n,t){'android'===u.default.OS?null==s.default||s.default.announceForAccessibility(n):null!=c.default&&c.default.announceForAccessibilityWithOptions?null==c.default||c.default.announceForAccessibilityWithOptions(n,t):null==c.default||c.default.announceForAccessibility(n)},getRecommendedTimeoutMillis:function(n){return'android'===u.default.OS?new Promise((function(t,l){null!=s.default&&s.default.getRecommendedTimeoutMillis?s.default.getRecommendedTimeoutMillis(n,t):t(n)})):Promise.resolve(n)}};e.default=C}),42,[2,43,45,63,113,234,114]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=new(t(r(d[1])).default);Object.defineProperty(g,'__rctDeviceEventEmitter',{configurable:!0,value:u});e.default=u}),43,[2,44]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2]));e.default=(function(){function t(){(0,n.default)(this,t),this._registry={}}return(0,u.default)(t,[{key:"addListener",value:function(t,n,u){if('function'!=typeof n)throw new TypeError('EventEmitter.addListener(...): 2nd argument must be a function.');var o=l(this._registry,t),f={context:u,listener:n,remove:function(){o.delete(f)}};return o.add(f),f}},{key:"emit",value:function(t){var n=this._registry[t];if(null!=n){for(var u=arguments.length,l=new Array(u>1?u-1:0),o=1;o1?u-1:0),o=1;o=5){var c=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=h,g.nativeFlushQueueImmediate(c)}u.counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:s})}},{key:"createDebugLookup",value:function(t,l,s){}},{key:"setReactNativeMicrotasksCallback",value:function(t){this._reactNativeMicrotasksCallback=t}},{key:"__guard",value:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){o.reportFatalError(t)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callReactNativeMicrotasks",value:function(){u.beginEvent('JSTimers.callReactNativeMicrotasks()'),null!=this._reactNativeMicrotasksCallback&&this._reactNativeMicrotasksCallback(),u.endEvent()}},{key:"__callFunction",value:function(t,l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush,this.__spy?u.beginEvent(`${t}.${l}(${n(s)})`):u.beginEvent(`${t}.${l}(...)`),this.__spy&&this.__spy({type:0,module:t,method:l,args:s});var o=this.getCallableModule(t);if(!o){var c=Object.keys(this._lazyCallableModules),_=c.length,v=c.join(', '),k=!0===g.RN$Bridgeless?'true':'false';h(!1,`Failed to call into JavaScript module method ${t}.${l}(). Module has not been registered as callable. Bridgeless Mode: ${k}. Registered callable JavaScript modules (n = ${_}): ${v}.\n A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.`)}o[l]||h(!1,`Failed to call into JavaScript module method ${t}.${l}(). Module exists, but the method is undefined.`),o[l].apply(o,s),u.endEvent()}},{key:"__invokeCallback",value:function(l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush;var u=l>>>1,n=1&l?this._successCallbacks.get(u):this._failureCallbacks.get(u);n&&(this._successCallbacks.delete(u),this._failureCallbacks.delete(u),n.apply(void 0,t(s)))}}],[{key:"spy",value:function(t){c.prototype.__spy=!0===t?function(t){console.log((0===t.type?'N->JS':'JS->N')+" : "+`${null!=t.module?t.module+'.':''}${t.method}`+`(${JSON.stringify(t.args)})`)}:!1===t?null:t}}]),c})();m.exports=c}),50,[6,21,22,51,52,53,41,54,40]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),l=r(d[1]),s=r(d[2]),u=r(d[3]),n=(r(d[4]),r(d[5]).default),o=(r(d[6]),r(d[7])),h=r(d[8]),c=(function(){function c(){l(this,c),this._lazyCallableModules={},this._queue=[[],[],[],0],this._successCallbacks=new Map,this._failureCallbacks=new Map,this._callID=0,this._lastFlush=0,this._eventLoopStartTime=Date.now(),this._reactNativeMicrotasksCallback=null,this.callFunctionReturnFlushedQueue=this.callFunctionReturnFlushedQueue.bind(this),this.flushedQueue=this.flushedQueue.bind(this),this.invokeCallbackAndReturnFlushedQueue=this.invokeCallbackAndReturnFlushedQueue.bind(this)}return s(c,[{key:"callFunctionReturnFlushedQueue",value:function(t,l,s){var u=this;return this.__guard((function(){u.__callFunction(t,l,s)})),this.flushedQueue()}},{key:"invokeCallbackAndReturnFlushedQueue",value:function(t,l){var s=this;return this.__guard((function(){s.__invokeCallback(t,l)})),this.flushedQueue()}},{key:"flushedQueue",value:function(){var t=this;this.__guard((function(){t.__callReactNativeMicrotasks()}));var l=this._queue;return this._queue=[[],[],[],this._callID],l[0].length?l:null}},{key:"getEventLoopRunningTime",value:function(){return Date.now()-this._eventLoopStartTime}},{key:"registerCallableModule",value:function(t,l){this._lazyCallableModules[t]=function(){return l}}},{key:"registerLazyCallableModule",value:function(t,l){var s,u=l;this._lazyCallableModules[t]=function(){return u&&(s=u(),u=null),s}}},{key:"getCallableModule",value:function(t){var l=this._lazyCallableModules[t];return l?l():null}},{key:"callNativeSyncHook",value:function(t,l,s,u,n){return this.processCallbacks(t,l,s,u,n),g.nativeCallSyncHook(t,l,s)}},{key:"processCallbacks",value:function(t,l,s,u,n){(u||n)&&(u&&s.push(this._callID<<1),n&&s.push(this._callID<<1|1),this._successCallbacks.set(this._callID,n),this._failureCallbacks.set(this._callID,u)),this._callID++}},{key:"enqueueNativeCall",value:function(t,l,s,n,o){this.processCallbacks(t,l,s,n,o),this._queue[0].push(t),this._queue[1].push(l),this._queue[2].push(s);var h=Date.now();if(g.nativeFlushQueueImmediate&&h-this._lastFlush>=5){var c=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=h,g.nativeFlushQueueImmediate(c)}u.counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:s})}},{key:"createDebugLookup",value:function(t,l,s){}},{key:"setReactNativeMicrotasksCallback",value:function(t){this._reactNativeMicrotasksCallback=t}},{key:"__guard",value:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){o.reportFatalError(t)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callReactNativeMicrotasks",value:function(){u.beginEvent('JSTimers.callReactNativeMicrotasks()'),null!=this._reactNativeMicrotasksCallback&&this._reactNativeMicrotasksCallback(),u.endEvent()}},{key:"__callFunction",value:function(t,l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush,this.__spy?u.beginEvent(`${t}.${l}(${n(s)})`):u.beginEvent(`${t}.${l}(...)`),this.__spy&&this.__spy({type:0,module:t,method:l,args:s});var o=this.getCallableModule(t);if(!o){var c=Object.keys(this._lazyCallableModules),_=c.length,v=c.join(', '),k=!0===g.RN$Bridgeless?'true':'false';h(!1,`Failed to call into JavaScript module method ${t}.${l}(). Module has not been registered as callable. Bridgeless Mode: ${k}. Registered callable JavaScript modules (n = ${_}): ${v}.\n A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.`)}o[l]||h(!1,`Failed to call into JavaScript module method ${t}.${l}(). Module exists, but the method is undefined.`),o[l].apply(o,s),u.endEvent()}},{key:"__invokeCallback",value:function(l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush;var u=l>>>1,n=1&l?this._successCallbacks.get(u):this._failureCallbacks.get(u);n&&(this._successCallbacks.delete(u),this._failureCallbacks.delete(u),n.apply(void 0,t(s)))}}],[{key:"spy",value:function(t){c.prototype.__spy=!0===t?function(t){console.log((0===t.type?'N->JS':'JS->N')+" : "+`${null!=t.module?t.module+'.':''}${t.method}`+`(${JSON.stringify(t.args)})`)}:!1===t?null:t}}])})();m.exports=c}),50,[6,25,26,51,52,53,41,54,40]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.beginAsyncEvent=function(o,f){var v=t;if(c()){t++;var u='function'==typeof o?o():o;g.nativeTraceBeginAsyncSection(n,u,v,f)}return v},e.beginEvent=function(t,o){if(c()){var f='function'==typeof t?t():t;g.nativeTraceBeginSection(n,f,o)}},e.counterEvent=function(t,o){if(c()){var f='function'==typeof t?t():t;g.nativeTraceCounter&&g.nativeTraceCounter(n,f,o)}},e.endAsyncEvent=function(t,o,f){if(c()){var v='function'==typeof t?t():t;g.nativeTraceEndAsyncSection(n,v,o,f)}},e.endEvent=function(t){c()&&g.nativeTraceEndSection(n,t)},e.isEnabled=c,e.setEnabled=function(n){};var n=131072,t=0;function c(){return g.nativeTraceIsTracing?g.nativeTraceIsTracing(n):Boolean(g.__RCTProfileIsProfiling)}}),51,[]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return t}}),52,[]); __d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createStringifySafeWithLimits=n,_e.default=void 0;var e=t(r(d[1]));function n(t){var n=t.maxDepth,f=void 0===n?Number.POSITIVE_INFINITY:n,u=t.maxStringLimit,o=void 0===u?Number.POSITIVE_INFINITY:u,l=t.maxArrayLimit,c=void 0===l?Number.POSITIVE_INFINITY:l,s=t.maxObjectKeysLimit,y=void 0===s?Number.POSITIVE_INFINITY:s,h=[];function I(t,n){for(;h.length&&this!==h[0];)h.shift();if('string'==typeof n){var u='...(truncated)...';return n.length>o+17?n.substring(0,o)+u:n}if('object'!=typeof n||null===n)return n;var l=n;if(Array.isArray(n))h.length>=f?l=`[ ... array with ${n.length} values ... ]`:n.length>c&&(l=n.slice(0,c).concat([`... extra ${n.length-c} values truncated ...`]));else{(0,e.default)('object'==typeof n,'This was already found earlier');var s=Object.keys(n);if(h.length>=f)l=`{ ... object with ${s.length} keys ... }`;else if(s.length>y){for(var I of(l={},s.slice(0,y)))l[I]=n[I];l['...(truncated keys)...']=s.length-y}}return h.unshift(l),l}return function(t){if(void 0===t)return'undefined';if(null===t)return'null';if('function'==typeof t)try{return t.toString()}catch(t){return'[function unknown]'}else{if(t instanceof Error)return t.name+': '+t.message;try{var e=JSON.stringify(t,I);return void 0===e?'["'+typeof t+'" failed to stringify]':e}catch(e){if('function'==typeof t.toString)try{return t.toString()}catch(t){}}}return'["'+typeof t+'" failed to stringify]'}}var f=n({maxDepth:10,maxStringLimit:100,maxArrayLimit:50,maxObjectKeysLimit:50});_e.default=f}),53,[2,40]); __d((function(g,r,i,a,m,e,d){m.exports=g.ErrorUtils}),54,[]); -__d((function(g,r,i,a,m,_e,d){'use strict';var n=r(d[0]),e=r(d[1]),t=r(d[2]),o=r(d[3]),c=r(d[4]);function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}var l,u=(function(l){t(y,l);var u,f,p=(u=y,f=s(),function(){var n,e=c(u);if(f){var t=c(this).constructor;n=Reflect.construct(e,arguments,t)}else n=e.apply(this,arguments);return o(this,n)});function y(){var n;e(this,y);for(var t=arguments.length,o=new Array(t),c=0;c|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/;function t(t){var o=l.exec(t);if(!o)return null;var c=o[2]&&0===o[2].indexOf('native'),s=o[2]&&0===o[2].indexOf('eval'),v=u.exec(o[2]);return s&&null!=v&&(o[2]=v[1],o[3]=v[2],o[4]=v[3]),{file:c?null:o[2],methodName:o[1]||n,arguments:c?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}var o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function c(l){var u=o.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}var s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,v=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function f(l){var u=s.exec(l);if(!u)return null;var t=u[3]&&u[3].indexOf(' > eval')>-1,o=v.exec(u[3]);return t&&null!=o&&(u[3]=o[1],u[4]=o[2],u[5]=null),{file:u[3],methodName:u[1]||n,arguments:u[2]?u[2].split(','):[],lineNumber:u[4]?+u[4]:null,column:u[5]?+u[5]:null}}var b=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function p(l){var u=b.exec(l);return u?{file:u[3],methodName:u[1]||n,arguments:[],lineNumber:+u[4],column:u[5]?+u[5]:null}:null}var x=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function h(l){var u=x.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}e.parse=function(n){return n.split('\n').reduce((function(n,l){var u=t(l)||c(l)||f(l)||h(l)||p(l);return u&&n.push(u),n}),[])}}),58,[]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var p=i?Object.getOwnPropertyDescriptor(e,a):null;p&&(p.get||p.set)?Object.defineProperty(o,a,p):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_r(d[1]);var r=e.getEnforcing('ExceptionsManager'),n={reportFatalException:function(e,t,n){r.reportFatalException(e,t,n)},reportSoftException:function(e,t,n){r.reportSoftException(e,t,n)},updateExceptionMessage:function(e,t,n){r.updateExceptionMessage(e,t,n)},dismissRedbox:function(){},reportException:function(e){r.reportException?r.reportException(e):e.isFatal?n.reportFatalException(e.message,e.stack,e.id):n.reportSoftException(e.message,e.stack,e.id)}};_e.default=n}),59,[60,63]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var p=i?Object.getOwnPropertyDescriptor(e,a):null;p&&(p.get||p.set)?Object.defineProperty(o,a,p):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_r(d[1]);var r=e.getEnforcing('ExceptionsManager'),n={reportFatalException:function(e,t,n){r.reportFatalException(e,t,n)},reportSoftException:function(e,t,n){r.reportSoftException(e,t,n)},updateExceptionMessage:function(e,t,n){r.updateExceptionMessage(e,t,n)},dismissRedbox:function(){},reportException:function(e){r.reportException?r.reportException(e):e.isFatal?n.reportFatalException(e.message,e.stack,e.id):n.reportSoftException(e.message,e.stack,e.id)}};_e.default=n}),59,[60,63]); __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.get=function(n){return l(n)},e.getEnforcing=function(n){var u=l(n);return(0,t.default)(null!=u,`TurboModuleRegistry.getEnforcing(...): '${n}' could not be found. Verify that a module by this name is registered in the native binary.`),u};var t=n(r(d[1])),u=r(d[2]),o=g.__turboModuleProxy;function l(n){if(!0!==g.RN$Bridgeless){var t=u[n];if(null!=t)return t}return null!=o?o(n):null}}),60,[2,40,61]); -__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o=r(d[2]);function u(t,u){if(!t)return null;var l=n(t,5),c=l[0],v=l[1],h=l[2],y=l[3],C=l[4];if(o(!c.startsWith('RCT')&&!c.startsWith('RK'),"Module name prefixes should've been stripped by the native side but wasn't for "+c),!v&&!h)return{name:c};var b={};return h&&h.forEach((function(n,t){var l=y&&s(y,t)||!1,c=C&&s(C,t)||!1;o(!l||!c,'Cannot have a method that is both async and a sync hook');var v=l?'promise':c?'sync':'async';b[n]=f(u,t,v)})),Object.assign(b,v),null==b.getConstants?b.getConstants=function(){return v||Object.freeze({})}:console.warn(`Unable to define method 'getConstants()' on NativeModule '${c}'. NativeModule '${c}' already has a constant or method called 'getConstants'. Please remove it.`),{name:c,module:b}}function l(n,t){o(g.nativeRequireModuleConfig,"Can't lazily create module without nativeRequireModuleConfig");var l=u(g.nativeRequireModuleConfig(n),t);return l&&l.module}function f(n,u,l){var f=null;return f='promise'===l?function(){for(var o=arguments.length,l=new Array(o),f=0;f0?s[s.length-1]:null,h=s.length>1?s[s.length-2]:null,y='function'==typeof v,C='function'==typeof h;C&&o(y,'Cannot have a non-function arg after a function arg.');var b=y?v:null,M=C?h:null,p=y+C,_=s.slice(0,s.length-p);if('sync'===l)return t.callNativeSyncHook(n,u,_,M,b);t.enqueueNativeCall(n,u,_,M,b)},f.type=l,f}function s(n,t){return-1!==n.indexOf(t)}function c(n,t){return Object.assign(t,n||{})}g.__fbGenNativeModule=u;var v={};if(g.nativeModuleProxy)v=g.nativeModuleProxy;else if(!g.nativeExtensions){var h=g.__fbBatchedBridgeConfig;o(h,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var y=r(d[3]);(h.remoteModuleConfig||[]).forEach((function(n,t){var o=u(n,t);o&&(o.module?v[o.name]=o.module:y(v,o.name,{get:function(){return l(o.name,t)}}))}))}m.exports=v}),61,[23,49,40,62]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o=r(d[2]);function u(t,u){if(!t)return null;var l=n(t,5),c=l[0],v=l[1],h=l[2],y=l[3],C=l[4];if(o(!c.startsWith('RCT')&&!c.startsWith('RK'),"Module name prefixes should've been stripped by the native side but wasn't for "+c),!v&&!h)return{name:c};var b={};return h&&h.forEach((function(n,t){var l=y&&s(y,t)||!1,c=C&&s(C,t)||!1;o(!l||!c,'Cannot have a method that is both async and a sync hook');var v=l?'promise':c?'sync':'async';b[n]=f(u,t,v)})),Object.assign(b,v),null==b.getConstants?b.getConstants=function(){return v||Object.freeze({})}:console.warn(`Unable to define method 'getConstants()' on NativeModule '${c}'. NativeModule '${c}' already has a constant or method called 'getConstants'. Please remove it.`),{name:c,module:b}}function l(n,t){o(g.nativeRequireModuleConfig,"Can't lazily create module without nativeRequireModuleConfig");var l=u(g.nativeRequireModuleConfig(n),t);return l&&l.module}function f(n,u,l){var f=null;return f='promise'===l?function(){for(var o=arguments.length,l=new Array(o),f=0;f0?s[s.length-1]:null,h=s.length>1?s[s.length-2]:null,y='function'==typeof v,C='function'==typeof h;C&&o(y,'Cannot have a non-function arg after a function arg.');var b=y?v:null,M=C?h:null,p=y+C,_=s.slice(0,s.length-p);if('sync'===l)return t.callNativeSyncHook(n,u,_,M,b);t.enqueueNativeCall(n,u,_,M,b)},f.type=l,f}function s(n,t){return-1!==n.indexOf(t)}function c(n,t){return Object.assign(t,n||{})}g.__fbGenNativeModule=u;var v={};if(g.nativeModuleProxy)v=g.nativeModuleProxy;else if(!g.nativeExtensions){var h=g.__fbBatchedBridgeConfig;o(h,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var y=r(d[3]);(h.remoteModuleConfig||[]).forEach((function(n,t){var o=u(n,t);o&&(o.module?v[o.name]=o.module:y(v,o.name,{get:function(){return l(o.name,t)}}))}))}m.exports=v}),61,[27,49,40,62]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n,u){var b,c=u.get,o=!1!==u.enumerable,f=!1!==u.writable,l=!1;function s(u){b=u,l=!0,Object.defineProperty(t,n,{value:u,configurable:!0,enumerable:o,writable:f})}Object.defineProperty(t,n,{get:function(){return l||(l=!0,s(c())),b},set:s,configurable:!0,enumerable:o})}}),62,[]); __d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n={__constants:null,OS:'ios',get Version(){return this.constants.osVersion},get constants(){return null==this.__constants&&(this.__constants=t.default.getConstants()),this.__constants},get isPad(){return'pad'===this.constants.interfaceIdiom},get isTV(){return'tv'===this.constants.interfaceIdiom},get isTesting(){return!1},select:function(t){return'ios'in t?t.ios:'native'in t?t.native:t.default}};m.exports=n}),63,[2,64]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=f?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('PlatformConstants')}),64,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var a=f?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('PlatformConstants')}),64,[60]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),l={register:function(l){g.RN$Bridgeless?g.RN$registerCallableModule('RCTEventEmitter',(function(){return l})):t.registerCallableModule('RCTEventEmitter',l)}};m.exports=l}),65,[49]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n={},o={};e.customBubblingEventTypes=n,e.customDirectEventTypes=o;var s=new Map,u=new Map;function l(t){var s=t.bubblingEventTypes,u=t.directEventTypes;if(null!=s)for(var l in s)null==n[l]&&(n[l]=s[l]);if(null!=u)for(var f in u)null==o[f]&&(o[f]=u[f])}e.register=function(n,o){return(0,t.default)(!s.has(n),'Tried to register two views with the same name %s',n),(0,t.default)('function'==typeof o,'View config getter callback for component `%s` must be a function (received `%s`)',n,null===o?'null':typeof o),s.set(n,o),n},e.get=function(n){var o;if(u.has(n))o=u.get(n);else{var f=s.get(n);'function'!=typeof f&&(0,t.default)(!1,'View config getter callback for component `%s` must be a function (received `%s`).%s',n,null===f?'null':typeof f,'string'==typeof n[0]&&/[a-z]/.test(n[0])?' Make sure to start component names with a capital letter.':''),l(o=f()),u.set(n,o),s.set(n,null)}return(0,t.default)(o,'View config not found for name %s',n),o}}),66,[2,40]); -__d((function(g,r,i,a,m,e,d){r(d[0]);var n=r(d[1]),u=r(d[2]).findNodeHandle,t=(r(d[3]),r(d[4]),null),o=new Set;function l(n){t!==n&&null!=n&&(t=n)}function f(n){t===n&&null!=n&&(t=null)}m.exports={currentlyFocusedInput:function(){return t},focusInput:l,blurInput:f,currentlyFocusedField:function(){return u(t)},focusField:function(n){},blurField:function(n){},focusTextInput:function(u){if('number'!=typeof u&&null!=u){var o;if(!(t!==u&&!1!==(null==(o=u.currentProps)?void 0:o.editable)))return;l(u),n.Commands.focus(u)}},blurTextInput:function(u){'number'!=typeof u&&t===u&&null!=u&&(f(u),n.Commands.blur(u))},registerInput:function(n){'number'!=typeof n&&o.add(n)},unregisterInput:function(n){'number'!=typeof n&&o.delete(n)},isTextInput:function(n){return'number'!=typeof n&&o.has(n)}}}),67,[68,108,45,63,30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n})(_r(d[1])),o=e(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}_e.Commands=(0,o.default)({supportedCommands:['focus','blur','setTextAndSelection']});var n=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidTextInput',bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topTextInput:{phasedRegistrationNames:{bubbled:'onTextInput',captured:'onTextInputCapture'}}},directEventTypes:{topScroll:{registrationName:'onScroll'}},validAttributes:{maxFontSizeMultiplier:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,autoFocus:!0,placeholder:!0,inlineImagePadding:!0,contextMenuHidden:!0,textShadowColor:{process:_r(d[3]).default},maxLength:!0,selectTextOnFocus:!0,textShadowRadius:!0,underlineColorAndroid:{process:_r(d[3]).default},textDecorationLine:!0,submitBehavior:!0,textAlignVertical:!0,fontStyle:!0,textShadowOffset:!0,selectionColor:{process:_r(d[3]).default},placeholderTextColor:{process:_r(d[3]).default},importantForAutofill:!0,lineHeight:!0,textTransform:!0,returnKeyType:!0,keyboardType:!0,multiline:!0,color:{process:_r(d[3]).default},autoComplete:!0,numberOfLines:!0,letterSpacing:!0,returnKeyLabel:!0,fontSize:!0,onKeyPress:!0,cursorColor:{process:_r(d[3]).default},text:!0,showSoftInputOnFocus:!0,textAlign:!0,autoCapitalize:!0,autoCorrect:!0,caretHidden:!0,secureTextEntry:!0,textBreakStrategy:!0,onScroll:!0,onContentSizeChange:!0,disableFullscreenUI:!0,includeFontPadding:!0,fontWeight:!0,fontFamily:!0,allowFontScaling:!0,onSelectionChange:!0,mostRecentEventCount:!0,inlineImageLeft:!0,editable:!0,fontVariant:!0,borderBottomRightRadius:!0,borderBottomColor:{process:_r(d[3]).default},borderRadius:!0,borderRightColor:{process:_r(d[3]).default},borderColor:{process:_r(d[3]).default},borderTopRightRadius:!0,borderStyle:!0,borderBottomLeftRadius:!0,borderLeftColor:{process:_r(d[3]).default},borderTopLeftRadius:!0,borderTopColor:{process:_r(d[3]).default}}},a=t.get('AndroidTextInput',(function(){return n}));_e.default=a}),68,[2,69,107,73]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.get=v,_e.getWithFallback_DEPRECATED=function(e,n){if(null==t){if(s(e))return v(e,n)}else if(null!=t(e))return v(e,n);var r=function(e){return null};return r.displayName=`Fallback(${e})`,r},_e.setRuntimeConfigProvider=function(e){(0,o.default)(null==t,'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'),t=e},_e.unstable_hasStaticViewConfig=function(e){var n;return!(null!=(n=null==t?void 0:t(e))?n:{native:!0}).native};var t,n=e(_r(d[1])),r=e(_r(d[2])),i=e(_r(d[3])),u=e(_r(d[4])),a=c(_r(d[5])),l=_r(d[6]),o=e(_r(d[7]));c(_r(d[8]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=i?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(r,u,a):r[u]=e[u]}return r.default=e,n&&n.set(e,r),r}function v(e,r){return i.default.register(e,(function(){var i,o=null!=(i=null==t?void 0:t(e))?i:{native:!0,strict:!1,verify:!1},f=o.native,c=o.strict,v=o.verify,s=f?(0,n.default)(e):(0,l.createViewConfig)(r());if(v){var p=f?s:(0,n.default)(e),y=f?(0,l.createViewConfig)(r()):s;if(c){var _=a.validate(e,p,y);'invalid'===_.type&&console.error(a.stringifyValidationResult(e,_))}else(0,u.default)(p,y)}return s})),e}function s(e){return(0,o.default)(null==t,'Unexpected invocation!'),null!=r.default.getViewManagerConfig(e)}}),69,[2,70,93,66,101,105,106,40,30]); +__d((function(g,r,i,a,m,e,d){r(d[0]);var n=r(d[1]),u=r(d[2]).findNodeHandle,t=(r(d[3]),r(d[4]),null),o=new Set;function l(n){t!==n&&null!=n&&(t=n)}function f(n){t===n&&null!=n&&(t=null)}m.exports={currentlyFocusedInput:function(){return t},focusInput:l,blurInput:f,currentlyFocusedField:function(){return u(t)},focusField:function(n){},blurField:function(n){},focusTextInput:function(u){if('number'!=typeof u&&null!=u){var o;if(!(t!==u&&!1!==(null==(o=u.currentProps)?void 0:o.editable)))return;l(u),n.Commands.focus(u)}},blurTextInput:function(u){'number'!=typeof u&&t===u&&null!=u&&(f(u),n.Commands.blur(u))},registerInput:function(n){'number'!=typeof n&&o.add(n)},unregisterInput:function(n){'number'!=typeof n&&o.delete(n)},isTextInput:function(n){return'number'!=typeof n&&o.has(n)}}}),67,[68,108,45,63,34]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n})(_r(d[1])),o=e(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}_e.Commands=(0,o.default)({supportedCommands:['focus','blur','setTextAndSelection']});var n=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidTextInput',bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topTextInput:{phasedRegistrationNames:{bubbled:'onTextInput',captured:'onTextInputCapture'}}},directEventTypes:{topScroll:{registrationName:'onScroll'}},validAttributes:{maxFontSizeMultiplier:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,autoFocus:!0,placeholder:!0,inlineImagePadding:!0,contextMenuHidden:!0,textShadowColor:{process:_r(d[3]).default},maxLength:!0,selectTextOnFocus:!0,textShadowRadius:!0,underlineColorAndroid:{process:_r(d[3]).default},textDecorationLine:!0,submitBehavior:!0,textAlignVertical:!0,fontStyle:!0,textShadowOffset:!0,selectionColor:{process:_r(d[3]).default},placeholderTextColor:{process:_r(d[3]).default},importantForAutofill:!0,lineHeight:!0,textTransform:!0,returnKeyType:!0,keyboardType:!0,multiline:!0,color:{process:_r(d[3]).default},autoComplete:!0,numberOfLines:!0,letterSpacing:!0,returnKeyLabel:!0,fontSize:!0,onKeyPress:!0,cursorColor:{process:_r(d[3]).default},text:!0,showSoftInputOnFocus:!0,textAlign:!0,autoCapitalize:!0,autoCorrect:!0,caretHidden:!0,secureTextEntry:!0,textBreakStrategy:!0,onScroll:!0,onContentSizeChange:!0,disableFullscreenUI:!0,includeFontPadding:!0,fontWeight:!0,fontFamily:!0,allowFontScaling:!0,onSelectionChange:!0,mostRecentEventCount:!0,inlineImageLeft:!0,editable:!0,fontVariant:!0,borderBottomRightRadius:!0,borderBottomColor:{process:_r(d[3]).default},borderRadius:!0,borderRightColor:{process:_r(d[3]).default},borderColor:{process:_r(d[3]).default},borderTopRightRadius:!0,borderStyle:!0,borderBottomLeftRadius:!0,borderLeftColor:{process:_r(d[3]).default},borderTopLeftRadius:!0,borderTopColor:{process:_r(d[3]).default}}},a=t.get('AndroidTextInput',(function(){return n}));_e.default=a}),68,[2,69,107,73]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.get=v,_e.getWithFallback_DEPRECATED=function(e,n){if(null==t){if(s(e))return v(e,n)}else if(null!=t(e))return v(e,n);var r=function(e){return null};return r.displayName=`Fallback(${e})`,r},_e.setRuntimeConfigProvider=function(e){(0,o.default)(null==t,'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'),t=e},_e.unstable_hasStaticViewConfig=function(e){var n;return!(null!=(n=null==t?void 0:t(e))?n:{native:!0}).native};var t,n=e(_r(d[1])),r=e(_r(d[2])),i=e(_r(d[3])),u=e(_r(d[4])),a=c(_r(d[5])),l=_r(d[6]),o=e(_r(d[7]));c(_r(d[8]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var a=i?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(r,u,a):r[u]=e[u]}return r.default=e,n&&n.set(e,r),r}function v(e,r){return i.default.register(e,(function(){var i,o=null!=(i=null==t?void 0:t(e))?i:{native:!0,strict:!1,verify:!1},f=o.native,c=o.strict,v=o.verify,s=f?(0,n.default)(e):(0,l.createViewConfig)(r());if(v){var p=f?s:(0,n.default)(e),y=f?(0,l.createViewConfig)(r()):s;if(c){var _=a.validate(e,p,y);'invalid'===_.type&&console.error(a.stringifyValidationResult(e,_))}else(0,u.default)(p,y)}return s})),e}function s(e){return(0,o.default)(null==t,'Unexpected invocation!'),null!=r.default.getViewManagerConfig(e)}}),69,[2,70,93,66,101,105,106,40,34]); __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),s=r(d[2]).default,o=r(d[3]),u=r(d[4]),c=r(d[5]),l=r(d[6]),v=r(d[7]),b=r(d[8]),f=r(d[9]);function p(n){var t=b.getConstants();t.ViewManagerNames||t.LazyViewManagersEnabled?n=y(n,b.getDefaultEventTypes()):(n.bubblingEventTypes=y(n.bubblingEventTypes,t.genericBubblingEventTypes),n.directEventTypes=y(n.directEventTypes,t.genericDirectEventTypes))}function y(n,t){if(!t)return n;if(!n)return t;for(var s in t)if(t.hasOwnProperty(s)){var o=t[s];if(n.hasOwnProperty(s)){var u=n[s];'object'==typeof o&&'object'==typeof u&&(o=y(u,o))}n[s]=o}return n}function C(n){switch(n){case'CATransform3D':return c;case'CGPoint':case'Point':return l;case'CGSize':return v;case'UIEdgeInsets':case'EdgeInsets':return u}return null}function E(n){switch(n){case'CGColor':case'UIColor':case'Color':return s;case'CGColorArray':case'UIColorArray':case'ColorArray':return o;case'CGImage':case'UIImage':case'RCTImageSource':case'ImageSource':return t}return null}m.exports=function(t){var s,o,u=b.getViewManagerConfig(t);f(null!=u&&null!=u.NativeProps,'requireNativeComponent: "%s" was not found in the UIManager.',t);var c=u.baseModuleName,l=u.bubblingEventTypes,v=u.directEventTypes,y=u.NativeProps;for(l=null!=(s=l)?s:{},v=null!=(o=v)?o:{};c;){var T=b.getViewManagerConfig(c);T?(l=Object.assign({},T.bubblingEventTypes,l),v=Object.assign({},T.directEventTypes,v),y=Object.assign({},T.NativeProps,y),c=T.baseModuleName):c=null}var I={};for(var w in y){var N=y[w],M=C(N),P=E(N);I[w]=null==M?null==P||{process:P}:null==P?{diff:M}:{diff:M,process:P}}return I.style=n,Object.assign(u,{uiViewClassName:t,validAttributes:I,bubblingEventTypes:l,directEventTypes:v}),p(u),u}}),70,[71,80,73,89,90,91,92,79,93,40]); __d((function(g,r,i,a,m,e,d){var o=r(d[0]),t=o(r(d[1])),n=o(r(d[2])),l=o(r(d[3])),s=o(r(d[4])),p=o(r(d[5])),b={process:n.default},c={alignContent:!0,alignItems:!0,alignSelf:!0,aspectRatio:{process:t.default},borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,columnGap:!0,borderWidth:!0,bottom:!0,direction:!0,display:!0,end:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexShrink:!0,flexWrap:!0,gap:!0,height:!0,justifyContent:!0,left:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginInline:!0,marginInlineEnd:!0,marginInlineStart:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,overflow:!0,padding:!0,paddingBlock:!0,paddingBlockEnd:!0,paddingBlockStart:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingInline:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,rowGap:!0,start:!0,top:!0,width:!0,zIndex:!0,elevation:!0,shadowColor:b,shadowOffset:{diff:p.default},shadowOpacity:!0,shadowRadius:!0,transform:{process:s.default},backfaceVisibility:!0,backgroundColor:b,borderBlockColor:b,borderBlockEndColor:b,borderBlockStartColor:b,borderBottomColor:b,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderColor:b,borderCurve:!0,borderEndColor:b,borderEndEndRadius:!0,borderEndStartRadius:!0,borderLeftColor:b,borderRadius:!0,borderRightColor:b,borderStartColor:b,borderStartEndRadius:!0,borderStartStartRadius:!0,borderStyle:!0,borderTopColor:b,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,opacity:!0,pointerEvents:!0,color:b,fontFamily:!0,fontSize:!0,fontStyle:!0,fontVariant:{process:l.default},fontWeight:!0,includeFontPadding:!0,letterSpacing:!0,lineHeight:!0,textAlign:!0,textAlignVertical:!0,textDecorationColor:b,textDecorationLine:!0,textDecorationStyle:!0,textShadowColor:b,textShadowOffset:!0,textShadowRadius:!0,textTransform:!0,userSelect:!0,verticalAlign:!0,writingDirection:!0,overlayColor:b,resizeMode:!0,tintColor:b,objectFit:!0};m.exports=c}),71,[2,72,73,77,78,79]); __d((function(g,r,i,a,m,e,d){'use strict';r(d[0]);m.exports=function(t){if('number'==typeof t)return t;if('string'==typeof t){var u=t.split('/').map((function(t){return t.trim()}));if(!u.includes('auto'))if(!u.some((function(t){return Number.isNaN(Number(t))})))return 2===u.length?Number(u[0])/Number(u[1]):Number(u[0])}}}),72,[40]); @@ -81,17 +81,17 @@ __d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){if('ob __d((function(_g,_r,i,a,m,e,d){'use strict';function r(r,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?r+6*(n-r)*t:t<.5?n:t<.6666666666666666?r+(n-r)*(.6666666666666666-t)*6:r}function n(n,t,u){var s=u<.5?u*(1+t):u+t-u*t,c=2*u-s,l=r(c,s,n+.3333333333333333),o=r(c,s,n),g=r(c,s,n-.3333333333333333);return Math.round(255*l)<<24|Math.round(255*o)<<16|Math.round(255*g)<<8}function t(n,t,u){if(t+u>=1){var s=Math.round(255*t/(t+u));return s<<24|s<<16|s<<8}var c=r(0,1,n+.3333333333333333)*(1-t-u)+t,l=r(0,1,n)*(1-t-u)+t,o=r(0,1,n-.3333333333333333)*(1-t-u)+t;return Math.round(255*c)<<24|Math.round(255*l)<<16|Math.round(255*o)<<8}var u,s='[-+]?\\d*\\.?\\d+',c="[-+]?\\d*\\.?\\d+%";function l(){for(var r=arguments.length,n=new Array(r),t=0;t255?255:n}function f(r){return(parseFloat(r)%360+360)%360/360}function p(r){var n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function y(r){var n=parseFloat(r);return n<0?0:n>100?1:n/100}function w(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':case'cyan':return 16777215;case'aquamarine':return 2147472639;case'azure':return 4043309055;case'beige':return 4126530815;case'bisque':return 4293182719;case'black':return 255;case'blanchedalmond':return 4293643775;case'blue':return 65535;case'blueviolet':return 2318131967;case'brown':return 2771004159;case'burlywood':return 3736635391;case'burntsienna':return 3934150143;case'cadetblue':return 1604231423;case'chartreuse':return 2147418367;case'chocolate':return 3530104575;case'coral':return 4286533887;case'cornflowerblue':return 1687547391;case'cornsilk':return 4294499583;case'crimson':return 3692313855;case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':case'darkgrey':return 2846468607;case'darkgreen':return 6553855;case'darkkhaki':return 3182914559;case'darkmagenta':return 2332068863;case'darkolivegreen':return 1433087999;case'darkorange':return 4287365375;case'darkorchid':return 2570243327;case'darkred':return 2332033279;case'darksalmon':return 3918953215;case'darkseagreen':return 2411499519;case'darkslateblue':return 1211993087;case'darkslategray':case'darkslategrey':return 793726975;case'darkturquoise':return 13554175;case'darkviolet':return 2483082239;case'deeppink':return 4279538687;case'deepskyblue':return 12582911;case'dimgray':case'dimgrey':return 1768516095;case'dodgerblue':return 512819199;case'firebrick':return 2988581631;case'floralwhite':return 4294635775;case'forestgreen':return 579543807;case'fuchsia':case'magenta':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':case'grey':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'honeydew':return 4043305215;case'hotpink':return 4285117695;case'indianred':return 3445382399;case'indigo':return 1258324735;case'ivory':return 4294963455;case'khaki':return 4041641215;case'lavender':return 3873897215;case'lavenderblush':return 4293981695;case'lawngreen':return 2096890111;case'lemonchiffon':return 4294626815;case'lightblue':return 2916673279;case'lightcoral':return 4034953471;case'lightcyan':return 3774873599;case'lightgoldenrodyellow':return 4210742015;case'lightgray':case'lightgrey':return 3553874943;case'lightgreen':return 2431553791;case'lightpink':return 4290167295;case'lightsalmon':return 4288707327;case'lightseagreen':return 548580095;case'lightskyblue':return 2278488831;case'lightslategray':case'lightslategrey':return 2005441023;case'lightsteelblue':return 2965692159;case'lightyellow':return 4294959359;case'lime':return 16711935;case'limegreen':return 852308735;case'linen':return 4210091775;case'maroon':return 2147483903;case'mediumaquamarine':return 1724754687;case'mediumblue':return 52735;case'mediumorchid':return 3126187007;case'mediumpurple':return 2473647103;case'mediumseagreen':return 1018393087;case'mediumslateblue':return 2070474495;case'mediumspringgreen':return 16423679;case'mediumturquoise':return 1221709055;case'mediumvioletred':return 3340076543;case'midnightblue':return 421097727;case'mintcream':return 4127193855;case'mistyrose':return 4293190143;case'moccasin':return 4293178879;case'navajowhite':return 4292783615;case'navy':return 33023;case'oldlace':return 4260751103;case'olive':return 2155872511;case'olivedrab':return 1804477439;case'orange':return 4289003775;case'orangered':return 4282712319;case'orchid':return 3664828159;case'palegoldenrod':return 4008225535;case'palegreen':return 2566625535;case'paleturquoise':return 2951671551;case'palevioletred':return 3681588223;case'papayawhip':return 4293907967;case'peachpuff':return 4292524543;case'peru':return 3448061951;case'pink':return 4290825215;case'plum':return 3718307327;case'powderblue':return 2967529215;case'purple':return 2147516671;case'rebeccapurple':return 1714657791;case'red':return 4278190335;case'rosybrown':return 3163525119;case'royalblue':return 1097458175;case'saddlebrown':return 2336560127;case'salmon':return 4202722047;case'sandybrown':return 4104413439;case'seagreen':return 780883967;case'seashell':return 4294307583;case'sienna':return 2689740287;case'silver':return 3233857791;case'skyblue':return 2278484991;case'slateblue':return 1784335871;case'slategray':case'slategrey':return 1887473919;case'snow':return 4294638335;case'springgreen':return 16744447;case'steelblue':return 1182971135;case'tan':return 3535047935;case'teal':return 8421631;case'thistle':return 3636451583;case'tomato':return 4284696575;case'turquoise':return 1088475391;case'violet':return 4001558271;case'wheat':return 4125012991;case'white':return 4294967295;case'whitesmoke':return 4126537215;case'yellow':return 4294902015;case'yellowgreen':return 2597139199}return null}m.exports=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?r:null;if('string'!=typeof r)return null;var u,s=h();if(u=s.hex6.exec(r))return parseInt(u[1]+'ff',16)>>>0;var c=w(r);return null!=c?c:(u=s.rgb.exec(r))?(b(u[1])<<24|b(u[2])<<16|b(u[3])<<8|255)>>>0:(u=s.rgba.exec(r))?void 0!==u[6]?(b(u[6])<<24|b(u[7])<<16|b(u[8])<<8|p(u[9]))>>>0:(b(u[2])<<24|b(u[3])<<16|b(u[4])<<8|p(u[5]))>>>0:(u=s.hex3.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+'ff',16)>>>0:(u=s.hex8.exec(r))?parseInt(u[1],16)>>>0:(u=s.hex4.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+u[4]+u[4],16)>>>0:(u=s.hsl.exec(r))?(255|n(f(u[1]),y(u[2]),y(u[3])))>>>0:(u=s.hsla.exec(r))?void 0!==u[6]?(n(f(u[6]),y(u[7]),y(u[8]))|p(u[9]))>>>0:(n(f(u[2]),y(u[3]),y(u[4]))|p(u[5]))>>>0:(u=s.hwb.exec(r))?(255|t(f(u[1]),y(u[2]),y(u[3])))>>>0:null}}),75,[]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.processColorObject=e.normalizeColorObject=e.PlatformColor=e.DynamicColorIOSPrivate=void 0;e.PlatformColor=function(){for(var t=arguments.length,n=new Array(t),o=0;o=t)return n[l];return n[n.length-1]||1},e.setUrlCacheBreaker=function(n){t=n};var t,u=n(r(d[1]))}),85,[2,82]); __d((function(g,r,i,a,m,e,d){'use strict';var t={.75:'ldpi',1:'mdpi',1.5:'hdpi',2:'xhdpi',3:'xxhdpi',4:'xxxhdpi'},n=160;function o(o){if(o.toString()in t)return t[o.toString()];if(Number.isFinite(o)&&o>0)return Math.round(o*n)+'dpi';throw new Error('no such scale '+o.toString())}var s=new Set(['gif','jpeg','jpg','ktx','png','svg','webp','xml']);function u(t){var n=t.httpServerLocation;return n.startsWith('/')?n.substr(1):n}m.exports={getAndroidResourceFolderName:function(n,u){if(!s.has(n.type))return'raw';var c=o(u);if(!c)throw new Error("Don't know which android drawable suffix to use for scale: "+u+'\nAsset: '+JSON.stringify(n,null,'\t')+'\nPossible scales are:'+JSON.stringify(t,null,'\t'));return'drawable-'+c},getAndroidResourceIdentifier:function(t){return(u(t)+'/'+t.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:u}}),86,[]); __d((function(g,r,i,a,m,e,d){'use strict';var t=[];m.exports={registerAsset:function(s){return t.push(s)},getAssetByID:function(s){return t[s-1]}}}),87,[]); -__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,r&&r.set(t,o),o})(_r(d[0])).getEnforcing('SourceCode'),n=null,r={getConstants:function(){return null==n&&(n=t.getConstants()),n}};_e.default=r}),88,[60]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,r&&r.set(t,o),o})(_r(d[0])).getEnforcing('SourceCode'),n=null,r={getConstants:function(){return null==n&&(n=t.getConstants()),n}};_e.default=r}),88,[60]); __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),l=0;function u(u){var o=(0,n.default)(u);return null==o?(console.error('Invalid value in color array:',u),l):o}m.exports=function(n){return null==n?null:n.map(u)}}),89,[2,73]); __d((function(g,r,i,a,m,e,d){'use strict';var t={top:void 0,left:void 0,right:void 0,bottom:void 0};m.exports=function(o,f){return(o=o||t)!==(f=f||t)&&(o.top!==f.top||o.left!==f.left||o.right!==f.right||o.bottom!==f.bottom)}}),90,[]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n){return t!==n&&(!t||!n||t[12]!==n[12]||t[13]!==n[13]||t[14]!==n[14]||t[5]!==n[5]||t[10]!==n[10]||t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2]||t[3]!==n[3]||t[4]!==n[4]||t[6]!==n[6]||t[7]!==n[7]||t[8]!==n[8]||t[9]!==n[9]||t[11]!==n[11]||t[15]!==n[15])}}),91,[]); @@ -102,7 +102,7 @@ __d((function(g,r,i,a,m,e,d){'use strict';function t(t,o){if(null!=t)return t;va __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),o=function(n){return"[ReactNative Architecture][JS] '"+n+"' is not available in the new React Native architecture."};m.exports={getViewManagerConfig:function(n){return console.error(o('getViewManagerConfig')+'Use hasViewManagerConfig instead. viewManagerName: '+n),null},hasViewManagerConfig:function(o){return(0,n.unstable_hasComponent)(o)},getConstants:function(){return console.error(o('getConstants')),{}},getConstantsForViewManager:function(n){return console.error(o('getConstantsForViewManager')),{}},getDefaultEventTypes:function(){return console.error(o('getDefaultEventTypes')),[]},lazilyLoadView:function(n){return console.error(o('lazilyLoadView')),{}},createView:function(n,t,u,s){return console.error(o('createView'))},updateView:function(n,t,u){return console.error(o('updateView'))},focus:function(n){return console.error(o('focus'))},blur:function(n){return console.error(o('blur'))},findSubviewIn:function(n,t,u){return console.error(o('findSubviewIn'))},dispatchViewManagerCommand:function(n,t,u){return console.error(o('dispatchViewManagerCommand'))},measure:function(n,t){return console.error(o('measure'))},measureInWindow:function(n,t){return console.error(o('measureInWindow'))},viewIsDescendantOf:function(n,t,u){return console.error(o('viewIsDescendantOf'))},measureLayout:function(n,t,u,s){return console.error(o('measureLayout'))},measureLayoutRelativeToParent:function(n,t,u){return console.error(o('measureLayoutRelativeToParent'))},setJSResponder:function(n,t){return console.error(o('setJSResponder'))},clearJSResponder:function(){},configureNextLayoutAnimation:function(n,t,u){return console.error(o('configureNextLayoutAnimation'))},removeSubviewsFromContainerWithID:function(n){return console.error(o('removeSubviewsFromContainerWithID'))},replaceExistingNonRootView:function(n,t){return console.error(o('replaceExistingNonRootView'))},setChildren:function(n,t){return console.error(o('setChildren'))},manageChildren:function(n,t,u,s,c,l){return console.error(o('manageChildren'))},setLayoutAnimationEnabledExperimental:function(n){console.error(o('setLayoutAnimationEnabledExperimental'))},sendAccessibilityEvent:function(n,t){return console.error(o('sendAccessibilityEvent'))},showPopupMenu:function(n,t,u,s){return console.error(o('showPopupMenu'))},dismissPopupMenu:function(){return console.error(o('dismissPopupMenu'))}}}),96,[97]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.unstable_hasComponent=function(t){var o=n.get(t);if(null==o){if(!g.__nativeComponentRegistry__hasComponent)throw`unstable_hasComponent('${t}'): Global function is not registered`;o=g.__nativeComponentRegistry__hasComponent(t),n.set(t,o)}return o};var n=new Map}),97,[]); __d((function(g,r,i,a,m,_e,d){var n=r(d[0])(r(d[1])),e=r(d[2]),t=r(d[3]),o=(r(d[4]),r(d[5])),f={},u=new Set,c={},l=!1;function s(){return l||(c=n.default.getConstants(),l=!0),c}function w(e){if(void 0===f[e]&&g.nativeCallSyncHook&&n.default.getConstantsForViewManager)try{f[e]=n.default.getConstantsForViewManager(e)}catch(n){console.error("NativeUIManager.getConstantsForViewManager('"+e+"') threw an exception.",n),f[e]=null}var t=f[e];if(t)return t;if(!g.nativeCallSyncHook)return t;if(n.default.lazilyLoadView&&!u.has(e)){var o=n.default.lazilyLoadView(e);u.add(e),null!=o&&null!=o.viewConfig&&(s()[e]=o.viewConfig,C(e))}return f[e]}var v=Object.assign({},n.default,{createView:function(e,t,o,u){void 0===f[t]&&w(t),n.default.createView(e,t,o,u)},getConstants:function(){return s()},getViewManagerConfig:function(n){return w(n)},hasViewManagerConfig:function(n){return null!=w(n)}});function C(n){var o=s()[n];f[n]=o,o.Manager&&(t(o,'Constants',{get:function(){var n=e[o.Manager],t={};return n&&Object.keys(n).forEach((function(e){var o=n[e];'function'!=typeof o&&(t[e]=o)})),t}}),t(o,'Commands',{get:function(){var n=e[o.Manager],t={},f=0;return n&&Object.keys(n).forEach((function(e){'function'==typeof n[e]&&(t[e]=f++)})),t}}))}n.default.getViewManagerConfig=v.getViewManagerConfig,Object.keys(s()).forEach((function(n){C(n)})),g.nativeCallSyncHook||Object.keys(s()).forEach((function(e){o.includes(e)||(f[e]||(f[e]=s()[e]),t(n.default,e,{get:function(){return console.warn(`Accessing view manager configs directly off UIManager via UIManager['${e}'] is no longer supported. Use UIManager.getViewManagerConfig('${e}') instead.`),v.getViewManagerConfig(e)}}))})),m.exports=v}),98,[2,99,61,62,63,100]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('UIManager')}),99,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('UIManager')}),99,[60]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=['clearJSResponder','configureNextLayoutAnimation','createView','dismissPopupMenu','dispatchViewManagerCommand','findSubviewIn','getConstantsForViewManager','getDefaultEventTypes','manageChildren','measure','measureInWindow','measureLayout','measureLayoutRelativeToParent','removeRootView','removeSubviewsFromContainerWithID','replaceExistingNonRootView','sendAccessibilityEvent','setChildren','setJSResponder','setLayoutAnimationEnabledExperimental','showPopupMenu','updateView','viewIsDescendantOf','PopupMenu','LazyViewManagersEnabled','ViewManagerNames','StyleConstants','AccessibilityEventTypes','UIView','getViewManagerConfig','hasViewManagerConfig','blur','focus','genericBubblingEventTypes','genericDirectEventTypes','lazilyLoadView']}),100,[]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o of['validAttributes','bubblingEventTypes','directEventTypes']){var u=Object.keys(f(t[o],n[o]));if(u.length>0){var s,c=null!=(s=n.uiViewClassName)?s:t.uiViewClassName;console.error(`'${c}' has a view config that does not match native. '${o}' is missing: ${u.join(', ')}`)}}},e.getConfigWithoutViewProps=function(t,o){if(!t[o])return{};return Object.keys(t[o]).filter((function(t){return!n.default[o][t]})).reduce((function(n,f){return n[f]=t[o][f],n}),{})},e.stringifyViewConfig=function(t){return JSON.stringify(t,(function(t,n){return'function'==typeof n?`\u0192 ${n.name}`:n}),2)};var n=t(r(d[1])),o=['transform','hitSlop'];function f(t,n){var u={};function s(t,n,o){if(typeof t==typeof n||null==t)if('object'!=typeof t)t===n||(u[o]=n);else{var s=f(t,n);Object.keys(s).length>1&&(u[o]=s)}else u[o]=n}for(var c in t)o.includes(c)||(n?t.hasOwnProperty(c)&&s(t[c],n[c],c):u[c]={});return u}}),101,[2,102]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])).default;e.default=u}),102,[2,103]); @@ -111,34 +111,34 @@ __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule", __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.stringifyValidationResult=function(t,u){var s=u.differences;return[`StaticViewConfigValidator: Invalid static view config for '${t}'.`,''].concat((0,n.default)(s.map((function(t){var n=t.type,u=t.path;switch(n){case'missing':return`- '${u.join('.')}' is missing.`;case'unequal':return`- '${u.join('.')}' is the wrong value.`;case'unexpected':return`- '${u.join('.')}' is present but not expected to be.`}}))),['']).join('\n')},e.validate=function(t,n,u){var l=[];if(s(l,[],{bubblingEventTypes:n.bubblingEventTypes,directEventTypes:n.directEventTypes,uiViewClassName:n.uiViewClassName,validAttributes:n.validAttributes},{bubblingEventTypes:u.bubblingEventTypes,directEventTypes:u.directEventTypes,uiViewClassName:u.uiViewClassName,validAttributes:u.validAttributes}),0===l.length)return{type:'valid'};return{type:'invalid',differences:l}};var n=t(r(d[1])),u=r(d[2]);function s(t,c,o,p){for(var v in o){var f=o[v];if(p.hasOwnProperty(v)){var y=p[v],b=l(f);if(null!=b){var h=l(y);if(null!=h){c.push(v),s(t,c,b,h),c.pop();continue}}f!==y&&t.push({path:[].concat((0,n.default)(c),[v]),type:'unequal',nativeValue:f,staticValue:y})}else t.push({path:[].concat((0,n.default)(c),[v]),type:'missing',nativeValue:f})}for(var V in p)o.hasOwnProperty(V)||(0,u.isIgnored)(p[V])||t.push({path:[].concat((0,n.default)(c),[V]),type:'unexpected',staticValue:p[V]})}function l(t){return'object'!=typeof t||Array.isArray(t)?null:t}}),105,[2,6,104]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createViewConfig=function(t){return{uiViewClassName:t.uiViewClassName,Commands:{},bubblingEventTypes:u(n.default.bubblingEventTypes,t.bubblingEventTypes),directEventTypes:u(n.default.directEventTypes,t.directEventTypes),validAttributes:u(n.default.validAttributes,t.validAttributes)}};var n=t(r(d[1]));function u(t,n){var u;return null==t||null==n?null!=(u=null!=t?t:n)?u:{}:Object.assign({},t,n)}}),106,[2,102]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0]).dispatchCommand;e.default=function(o){var t={};return o.supportedCommands.forEach((function(o){t[o]=function(t){for(var u=arguments.length,f=new Array(u>1?u-1:0),c=1;c2&&void 0!==arguments[2]?arguments[2]:-1,s='number'==typeof f?arguments.length>3?arguments[3]:void 0:f,c='number'==typeof f?f:-1;if(0===c)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var l=null==s?void 0:s.unsafelyIgnoreFunctions;return null==l&&(!n||!n.onDifferentFunctionsIgnored||s&&'unsafelyIgnoreFunctions'in s||n.onDifferentFunctionsIgnored(o.name,u.name),l=!0),!l}if('object'!=typeof o||null===o)return o!==u;if('object'!=typeof u||null===u)return!0;if(o.constructor!==u.constructor)return!0;if(Array.isArray(o)){var v=o.length;if(u.length!==v)return!0;for(var y=0;ythis.eventPool.length&&this.eventPool.push(e)}function C(e){e.getPooled=_,e.eventPool=[],e.release=N}E(T.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=P)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=P)},persist:function(){this.isPersistent=P},isPersistent:R,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=R,this._dispatchInstances=this._dispatchListeners=null}}),T.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},T.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return E(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=E({},r.Interface,e),t.extend=r.extend,C(t),t},C(T);var z=T.extend({touchHistory:function(){return null}});function I(e){return"topTouchStart"===e}function L(e){return"topTouchMove"===e}var U=["topTouchStart"],M=["topTouchMove"],F=["topTouchCancel","topTouchEnd"],D=[],H={touchBank:D,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function A(e){return e.timeStamp||e.timestamp}function j(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function Q(e){var n=j(e),t=D[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=A(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=A(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=A(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:A(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:A(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:A(e)},D[n]=t),H.mostRecentTimeStamp=A(e)}function B(e){var n=D[j(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=A(e),H.mostRecentTimeStamp=A(e))}function W(e){var n=D[j(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=A(e),H.mostRecentTimeStamp=A(e))}var O,V={instrument:function(e){O=e},recordTouchTrack:function(e,n){if(null!=O&&O(e,n),L(e))n.changedTouches.forEach(B);else if(I(e))n.changedTouches.forEach(Q),H.numberActiveTouches=n.touches.length,1===H.numberActiveTouches&&(H.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(W),H.numberActiveTouches=n.touches.length,1===H.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!de[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in de[t]=n,t=n.eventTypes){var l=void 0,a=t[r],i=r;if(fe.hasOwnProperty(i))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+i+"`.");fe[i]=a;var u=a.phasedRegistrationNames;if(u){for(l in u)u.hasOwnProperty(l)&&ce(u[l],n);l=!0}else a.registrationName?(ce(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function ce(e,n){if(pe[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");pe[e]=n}var de=[],fe={},pe={};function he(e,n,t,r){var l=e.stateNode;if(null===l)return null;if(null===(e=y(l)))return null;if((e=e[n])&&"function"!=typeof e)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof e+"` type.");if(!(r&&l.canonical&&l.canonical._eventListeners))return e;var a=[];e&&a.push(e);var i="captured"===t,o=i?"rn:"+n.replace(/Capture$/,""):"rn:"+n;return l.canonical._eventListeners[o]&&0>>=0)?32:31-(Rn(e)/Tn|0)|0},Rn=Math.log,Tn=Math.LN2;var _n=64,Nn=4194304;function Cn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=Cn(u):0!==(a&=i)&&(r=Cn(a))}else 0!==(i=t&~l)?r=Cn(i):0!==a&&(r=Cn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Fn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-Pn(n)]=t}function Dn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0mt||(e.current=gt[mt],gt[mt]=null,mt--)}function yt(e,n){mt++,gt[mt]=e.current,e.current=n}var St={},kt=vt(St),wt=vt(!1),xt=St;function Et(e,n){var t=e.type.contextTypes;if(!t)return St;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pt(e){return null!=(e=e.childContextTypes)}function Rt(){bt(wt),bt(kt)}function Tt(e,n,t){if(kt.current!==St)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");yt(kt,n),yt(wt,t)}function _t(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error((Oe(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return E({},t,r)}function Nt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||St,xt=kt.current,yt(kt,e),yt(wt,wt.current),!0}function Ct(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=_t(e,n,xt),r.__reactInternalMemoizedMergedChildContext=e,bt(wt),bt(kt),yt(kt,e)):bt(wt),yt(wt,t)}var zt="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},It=null,Lt=!1,Ut=!1;function Mt(){if(!Ut&&null!==It){Ut=!0;var e=0,n=An;try{var t=It;for(An=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return n(l,e)})),s}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===Ce&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case _e:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===Ce){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===Ae&&Pr(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=xr(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===Ce?((a=eu(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=Zi(u.type,u.key,u.props,null,r.mode,o)).ref=xr(r,a,u),o.return=r,r=o)}return i(r);case Ne:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=ru(u,r.mode,o)).return=r,r=a}return i(r);case Ae:return e(r,a,(c=u._init)(u._payload),o)}if(b(u))return h(r,a,u,o);if(Be(u))return g(r,a,u,o);Er(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=tu(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var Tr=Rr(!0),_r=Rr(!1),Nr={},Cr=vt(Nr),zr=vt(Nr),Ir=vt(Nr);function Lr(e){if(e===Nr)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Ur(e,n){yt(Ir,n),yt(zr,e),yt(Cr,Nr),bt(Cr),yt(Cr,{isInAParentText:!1})}function Mr(){bt(Cr),bt(zr),bt(Ir)}function Fr(e){Lr(Ir.current);var n=Lr(Cr.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(yt(zr,e),yt(Cr,t))}function Dr(e){zr.current===e&&(bt(Cr),bt(zr))}var Hr=vt(0);function Ar(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Qn()||Qn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var jr=[];function Qr(){for(var e=0;et?t:4,e(!0);var r=Wr.transition;Wr.transition={};try{e(!1),n()}finally{An=t,Wr.transition=r}}function _l(){return nl().memoizedState}function Nl(e,n,t){var r=yi(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},zl(e))Il(n,t);else if(null!==(t=ar(e,n,t,r))){Si(t,e,r,bi()),Ll(t,n,r)}}function Cl(e,n,t){var r=yi(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(zl(e))Il(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,zt(u,i)){var o=n.interleaved;return null===o?(l.next=l,lr(n)):(l.next=o.next,o.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=ar(e,n,l,r))&&(Si(t,e,r,l=bi()),Ll(t,n,r))}}function zl(e){var n=e.alternate;return e===Vr||null!==n&&n===Vr}function Il(e,n){Xr=$r=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ll(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Hn(e,t)}}var Ul={readContext:tr,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ml={readContext:tr,useCallback:function(e,n){return el().memoizedState=[e,void 0===n?null:n],e},useContext:tr,useEffect:vl,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,gl(4,4,kl.bind(null,n,e),t)},useLayoutEffect:function(e,n){return gl(4,4,e,n)},useInsertionEffect:function(e,n){return gl(4,2,e,n)},useMemo:function(e,n){var t=el();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=el();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Nl.bind(null,Vr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},el().memoizedState=e},useState:fl,useDebugValue:xl,useDeferredValue:function(e){return el().memoizedState=e},useTransition:function(){var e=fl(!1),n=e[0];return e=Tl.bind(null,e[1]),el().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n){var t=Vr,r=el(),l=n();if(null===qa)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");0!=(30&Or)||ul(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,vl(sl.bind(null,t,a,e),[e]),t.flags|=2048,pl(9,ol.bind(null,t,a,l,n),void 0,null),l},useId:function(){var e=el(),n=qa.identifierPrefix;return n=":"+n+"r"+(Gr++).toString(32)+":",e.memoizedState=n},unstable_isNewReconciler:!1},Fl={readContext:tr,useCallback:El,useContext:tr,useEffect:bl,useImperativeHandle:wl,useInsertionEffect:yl,useLayoutEffect:Sl,useMemo:Pl,useReducer:rl,useRef:hl,useState:function(){return rl(tl)},useDebugValue:xl,useDeferredValue:function(e){return Rl(nl(),Yr.memoizedState,e)},useTransition:function(){return[rl(tl)[0],nl().memoizedState]},useMutableSource:al,useSyncExternalStore:il,useId:_l,unstable_isNewReconciler:!1},Dl={readContext:tr,useCallback:El,useContext:tr,useEffect:bl,useImperativeHandle:wl,useInsertionEffect:yl,useLayoutEffect:Sl,useMemo:Pl,useReducer:ll,useRef:hl,useState:function(){return ll(tl)},useDebugValue:xl,useDeferredValue:function(e){var n=nl();return null===Yr?n.memoizedState=e:Rl(n,Yr.memoizedState,e)},useTransition:function(){return[ll(tl)[0],nl().memoizedState]},useMutableSource:al,useSyncExternalStore:il,useId:_l,unstable_isNewReconciler:!1};function Hl(e,n){try{var t="",r=n;do{t+=Yt(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function Al(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}if("function"!=typeof u.ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function jl(e,n){try{!1!==u.ReactFiberErrorDialog.showErrorDialog({componentStack:null!==n.stack?n.stack:"",error:n.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}var Ql="function"==typeof WeakMap?WeakMap:Map;function Bl(e,n,t){(t=cr(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){oi||(oi=!0,si=r),jl(e,n)},t}function Wl(e,n,t){(t=cr(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){jl(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){jl(e,n),"function"!=typeof r&&(null===ci?ci=new Set([this]):ci.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function Ol(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Ql;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Wi.bind(null,e,n,t),n.then(e,e))}var Vl=Te.ReactCurrentOwner,Yl=!1;function ql(e,n,t,r){n.child=null===e?_r(n,null,t,r):Tr(n,e.child,t,r)}function $l(e,n,t,r,l){t=t.render;var a=n.ref;return nr(n,l),r=Zr(e,n,t,r,a,l),null===e||Yl?(n.flags|=1,ql(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,va(e,n,l))}function Xl(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Gi(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Zi(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Gl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Vt)(i,r)&&e.ref===n.ref)return va(e,n,l)}return n.flags|=1,(e=Ki(a,r)).ref=n.ref,e.return=n,n.child=e}function Gl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Vt(a,r)&&e.ref===n.ref){if(Yl=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,va(e,n,l);0!=(131072&e.flags)&&(Yl=!0)}}return Zl(e,n,t,r,l)}function Jl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(Ja,Ga),Ga|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,yt(Ja,Ga),Ga|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,yt(Ja,Ga),Ga|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,yt(Ja,Ga),Ga|=r;return ql(e,n,l,t),n.child}function Kl(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512)}function Zl(e,n,t,r,l){var a=Pt(t)?xt:kt.current;return a=Et(n,a),nr(n,l),t=Zr(e,n,t,r,a,l),null===e||Yl?(n.flags|=1,ql(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,va(e,n,l))}function ea(e,n,t,r,l){if(Pt(t)){var a=!0;Nt(n)}else a=!1;if(nr(n,l),null===n.stateNode)ma(e,n),Sr(n,t,r),wr(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=tr(s):s=Et(n,s=Pt(t)?xt:kt.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&kr(n,i,r,s),ur=!1;var f=n.memoizedState;i.state=f,hr(n,r,i,l),o=n.memoizedState,u!==r||f!==o||wt.current||ur?("function"==typeof c&&(vr(n,t,c,r),o=n.memoizedState),(u=ur||yr(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,sr(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:qt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=tr(o):o=Et(n,o=Pt(t)?xt:kt.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&kr(n,i,r,o),ur=!1,f=n.memoizedState,i.state=f,hr(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||wt.current||ur?("function"==typeof p&&(vr(n,t,p,r),h=n.memoizedState),(s=ur||yr(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),r=!1)}return na(e,n,t,r,a,l)}function na(e,n,t,r,l,a){Kl(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&Ct(n,t,!1),va(e,n,a);r=n.stateNode,Vl.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=Tr(n,e.child,null,a),n.child=Tr(n,null,u,a)):ql(e,n,u,a),n.memoizedState=r.state,l&&Ct(n,t,!0),n.child}function ta(e){var n=e.stateNode;n.pendingContext?Tt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&Tt(0,n.context,!1),Ur(e,n.containerInfo)}var ra,la,aa,ia,ua={dehydrated:null,treeContext:null,retryLane:0};function oa(e){return{baseLanes:e,cachePool:null,transitions:null}}function sa(e,n,t){var r,l=n.pendingProps,a=Hr.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),yt(Hr,1&a),null===e)return null!==(e=n.memoizedState)&&null!==e.dehydrated?(0==(1&n.mode)?n.lanes=1:Qn()?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=nu(u,l,0,null),e=eu(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=oa(t),n.memoizedState=ua,e):ca(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return fa(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=Ki(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Ki(r,i):(i=eu(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?oa(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=ua,l}return e=(i=e.child).sibling,l=Ki(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function ca(e,n){return(n=nu({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function da(e,n,t,r){return null!==r&&(null===Wt?Wt=[r]:Wt.push(r)),Tr(n,e.child,null,t),(e=ca(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function fa(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,da(e,n,i,a=Al(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,t=n.mode,r=nu({mode:"visible",children:r.children},t,0,null),(a=eu(a,t,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&Tr(n,e.child,null,i),n.child.memoizedState=oa(i),n.memoizedState=ua,a);if(0==(1&n.mode))return da(e,n,i,null);if(Qn())return a=Qn().digest,da(e,n,i,a=Al(Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),a,void 0));if(t=0!=(i&e.childLanes),Yl||t){if(null!==(r=qa)){switch(i&-i){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(t=0!=(t&(r.suspendedLanes|i))?0:t)&&t!==a.retryLane&&(a.retryLane=t,ir(e,t),Si(r,e,t,-1))}return Ii(),da(e,n,i,a=Al(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}return Qn()?(n.flags|=128,n.child=e.child,Vi.bind(null,e),Qn(),null):((e=ca(n,r.children)).flags|=4096,e)}function pa(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),er(e.return,n,t)}function ha(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function ga(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(ql(e,n,r.children,t),0!=(2&(r=Hr.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&pa(e,t,n);else if(19===e.tag)pa(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(yt(Hr,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Ar(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ha(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Ar(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ha(n,!0,t,null,a);break;case"together":ha(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ma(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function va(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),ei|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Ki(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Ki(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function ba(e,n,t){switch(n.tag){case 3:ta(n);break;case 5:Fr(n);break;case 1:Pt(n.type)&&Nt(n);break;case 4:Ur(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;yt($t,r._currentValue2),r._currentValue2=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(yt(Hr,1&Hr.current),n.flags|=128,null):0!=(t&n.child.childLanes)?sa(e,n,t):(yt(Hr,1&Hr.current),null!==(e=va(e,n,t))?e.sibling:null);yt(Hr,1&Hr.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return ga(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),yt(Hr,Hr.current),r)break;return null;case 22:case 23:return n.lanes=0,Jl(e,n,t)}return va(e,n,t)}function ya(e,n){if(null!==e&&e.child===n.child)return!0;if(0!=(16&n.flags))return!1;for(e=n.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}function Sa(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=dt(a)),Gn(e,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Gn(e,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),Sa(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function ka(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function wa(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function xa(e,n,t){var r=n.pendingProps;switch(Bt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wa(n),null;case 1:case 17:return Pt(n.type)&&Rt(),wa(n),null;case 3:return t=n.stateNode,Mr(),bt(wt),bt(kt),Qr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==Wt&&(Ei(Wt),Wt=null)),la(e,n),wa(n),null;case 5:Dr(n),t=Lr(Ir.current);var l=n.type;if(null!==e&&null!=n.stateNode)aa(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return wa(n),null}Lr(Cr.current),e=it,it+=2,l=at(l);var a=un(null,Je,r,l.validAttributes);t=Wn(e,l.uiViewClassName,t,a,n),e=new ut(e,l,r,n),ra(e={node:t,canonical:e},n,!1,!1),n.stateNode=e,null!==n.ref&&(n.flags|=512)}return wa(n),null;case 6:if(e&&null!=n.stateNode)ia(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");e=Lr(Ir.current),t=Lr(Cr.current),n.stateNode=ot(r,e,t,n)}return wa(n),null;case 13:if(bt(Hr),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==r&&null!==r.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4,wa(n),l=!1}else null!==Wt&&(Ei(Wt),Wt=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!==(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Hr.current)?0===Ka&&(Ka=3):Ii())),null!==n.updateQueue&&(n.flags|=4),wa(n),null);case 4:return Mr(),la(e,n),wa(n),null;case 10:return Zt(n.type._context),wa(n),null;case 19:if(bt(Hr),null===(l=n.memoizedState))return wa(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering))if(r)ka(l,!1);else{if(0!==Ka||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=Ar(e))){for(n.flags|=128,ka(l,!1),null!==(e=a.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,l=a.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return yt(Hr,1&Hr.current|2),n.child}e=e.sibling}null!==l.tail&&vn()>ii&&(n.flags|=128,r=!0,ka(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Ar(a))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),ka(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate)return wa(n),null}else 2*vn()-l.renderingStartTime>ii&&1073741824!==t&&(n.flags|=128,r=!0,ka(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=vn(),n.sibling=null,e=Hr.current,yt(Hr,r?1&e|2:1&e),n):(wa(n),null);case 22:case 23:return _i(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&Ga)&&wa(n):wa(n),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ea(e,n){switch(Bt(n),n.tag){case 1:return Pt(n.type)&&Rt(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Mr(),bt(wt),bt(kt),Qr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Dr(n),null;case 13:if(bt(Hr),null!==(e=n.memoizedState)&&null!==e.dehydrated&&null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return bt(Hr),null;case 4:return Mr(),null;case 10:return Zt(n.type._context),null;case 22:case 23:return _i(),null;default:return null}}ra=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=dt(a)),Xn(e.node,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Xn(e.node,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),ra(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},la=function(e,n){var t=n.stateNode;if(!ya(e,n)){e=t.containerInfo;var r=$n(e);Sa(r,n,!1,!1),t.pendingChildren=r,n.flags|=4,Jn(e,r)}},aa=function(e,n,t,r){t=e.stateNode;var l=e.memoizedProps;if((e=ya(e,n))&&l===r)n.stateNode=t;else{var a=n.stateNode;Lr(Cr.current);var i=null;l!==r&&(l=un(null,l,r,a.canonical.viewConfig.validAttributes),a.canonical.currentProps=r,i=l),e&&null===i?n.stateNode=t:(r=i,l=t.node,t={node:e?null!==r?qn(l,r):On(l):null!==r?Yn(l,r):Vn(l),canonical:t.canonical},n.stateNode=t,e?n.flags|=4:ra(t,n,!1,!1))}},ia=function(e,n,t,r){t!==r?(e=Lr(Ir.current),t=Lr(Cr.current),n.stateNode=ot(r,e,t,n),n.flags|=4):n.stateNode=e.stateNode};var Pa="function"==typeof WeakSet?WeakSet:Set,Ra=null;function Ta(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Bi(e,n,t)}else t.current=null}function _a(e,n,t){try{t()}catch(t){Bi(e,n,t)}}var Na=!1;function Ca(e,n){for(Ra=n;null!==Ra;)if(n=(e=Ra).child,0!=(1028&e.subtreeFlags)&&null!==n)n.return=e,Ra=n;else for(;null!==Ra;){e=Ra;try{var t=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 3:case 5:case 6:case 4:case 17:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:qt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){Bi(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,Ra=n;break}Ra=e.return}return t=Na,Na=!1,t}function za(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&_a(n,t,a)}l=l.next}while(l!==r)}}function Ia(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function La(e){var n=e.alternate;null!==n&&(e.alternate=null,La(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ua(e,n,t){for(t=t.child;null!==t;)Ma(e,n,t),t=t.sibling}function Ma(e,n,t){if(xn&&"function"==typeof xn.onCommitFiberUnmount)try{xn.onCommitFiberUnmount(wn,t)}catch(e){}switch(t.tag){case 5:Ta(t,n);case 6:Ua(e,n,t);break;case 18:break;case 4:$n(t.stateNode.containerInfo),Ua(e,n,t);break;case 0:case 11:case 14:case 15:var r=t.updateQueue;if(null!==r&&null!==(r=r.lastEffect)){var l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&_a(t,n,i),l=l.next}while(l!==r)}Ua(e,n,t);break;case 1:if(Ta(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Bi(t,n,e)}Ua(e,n,t);break;default:Ua(e,n,t)}}function Fa(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Pa),n.forEach((function(n){var r=Yi.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Da(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=vn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ba(r/1960))-r)){e.timeoutHandle=st(Hi.bind(null,e,li,ui),r);break}Hi(e,li,ui);break;default:throw Error("Unknown root exit status.")}}}return ki(e,vn()),e.callbackNode===t?wi.bind(null,e):null}function xi(e,n){var t=ri;return e.current.memoizedState.isDehydrated&&(Ni(e,n).flags|=256),2!==(e=Li(e,n))&&(n=li,li=t,null!==n&&Ei(n)),e}function Ei(e){null===li?li=e:li.push.apply(li,e)}function Pi(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===fi)var r=!1;else{if(e=fi,fi=null,pi=0,0!=(6&Ya))throw Error("Cannot flush passive effects while already rendering.");var l=Ya;for(Ya|=4,Ra=e.current;null!==Ra;){var a=Ra,i=a.child;if(0!=(16&Ra.flags)){var u=a.deletions;if(null!==u){for(var o=0;ovn()-ai?Ni(e,0):ti|=t),ki(e,n)}function Oi(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Nn,0==(130023424&(Nn<<=1))&&(Nn=4194304)));var t=bi();null!==(e=ir(e,n))&&(Fn(e,n,t),ki(e,t))}function Vi(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Oi(e,t)}function Yi(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Oi(e,t)}function qi(e,n){return pn(e,n)}function $i(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xi(e,n,t,r){return new $i(e,n,t,r)}function Gi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ji(e){if("function"==typeof e)return Gi(e)?1:0;if(null!=e){if((e=e.$$typeof)===Me)return 11;if(e===He)return 14}return 2}function Ki(e,n){var t=e.alternate;return null===t?((t=Xi(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Zi(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Gi(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ce:return eu(t.children,l,a,n);case ze:i=8,l|=8;break;case Ie:return(e=Xi(12,t,n,2|l)).elementType=Ie,e.lanes=a,e;case Fe:return(e=Xi(13,t,n,l)).elementType=Fe,e.lanes=a,e;case De:return(e=Xi(19,t,n,l)).elementType=De,e.lanes=a,e;case je:return nu(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Le:i=10;break e;case Ue:i=9;break e;case Me:i=11;break e;case He:i=14;break e;case Ae:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Xi(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function eu(e,n,t,r){return(e=Xi(7,e,r,n)).lanes=t,e}function nu(e,n,t,r){return(e=Xi(22,e,r,n)).elementType=je,e.lanes=t,e.stateNode={isHidden:!1},e}function tu(e,n,t){return(e=Xi(6,e,null,n)).lanes=t,e}function ru(e,n,t){return(n=Xi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function lu(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mn(0),this.expirationTimes=Mn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mn(0),this.identifierPrefix=r,this.onRecoverableError=l}function au(e,n,t){var r=3this.eventPool.length&&this.eventPool.push(e)}function C(e){e.getPooled=_,e.eventPool=[],e.release=N}E(T.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=P)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=P)},persist:function(){this.isPersistent=P},isPersistent:R,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=R,this._dispatchInstances=this._dispatchListeners=null}}),T.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},T.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return E(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=E({},r.Interface,e),t.extend=r.extend,C(t),t},C(T);var z=T.extend({touchHistory:function(){return null}});function I(e){return"topTouchStart"===e}function L(e){return"topTouchMove"===e}var U=["topTouchStart"],M=["topTouchMove"],F=["topTouchCancel","topTouchEnd"],D=[],H={touchBank:D,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function A(e){return e.timeStamp||e.timestamp}function j(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function Q(e){var n=j(e),t=D[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=A(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=A(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=A(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:A(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:A(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:A(e)},D[n]=t),H.mostRecentTimeStamp=A(e)}function B(e){var n=D[j(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=A(e),H.mostRecentTimeStamp=A(e))}function W(e){var n=D[j(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=A(e),H.mostRecentTimeStamp=A(e))}var O,V={instrument:function(e){O=e},recordTouchTrack:function(e,n){if(null!=O&&O(e,n),L(e))n.changedTouches.forEach(B);else if(I(e))n.changedTouches.forEach(Q),H.numberActiveTouches=n.touches.length,1===H.numberActiveTouches&&(H.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(W),H.numberActiveTouches=n.touches.length,1===H.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!de[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in de[t]=n,t=n.eventTypes){var l=void 0,a=t[r],i=r;if(fe.hasOwnProperty(i))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+i+"`.");fe[i]=a;var u=a.phasedRegistrationNames;if(u){for(l in u)u.hasOwnProperty(l)&&ce(u[l],n);l=!0}else a.registrationName?(ce(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function ce(e,n){if(pe[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");pe[e]=n}var de=[],fe={},pe={};function he(e,n,t,r){var l=e.stateNode;if(null===l)return null;if(null===(e=y(l)))return null;if((e=e[n])&&"function"!=typeof e)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof e+"` type.");if(!(r&&l.canonical&&l.canonical._eventListeners))return e;var a=[];e&&a.push(e);var i="captured"===t,o=i?"rn:"+n.replace(/Capture$/,""):"rn:"+n;return l.canonical._eventListeners[o]&&0>>=0)?32:31-(Rn(e)/Tn|0)|0},Rn=Math.log,Tn=Math.LN2;var _n=64,Nn=4194304;function Cn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=Cn(u):0!==(a&=i)&&(r=Cn(a))}else 0!==(i=t&~l)?r=Cn(i):0!==a&&(r=Cn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Fn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-Pn(n)]=t}function Dn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0mt||(e.current=gt[mt],gt[mt]=null,mt--)}function yt(e,n){mt++,gt[mt]=e.current,e.current=n}var St={},kt=vt(St),wt=vt(!1),xt=St;function Et(e,n){var t=e.type.contextTypes;if(!t)return St;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pt(e){return null!=(e=e.childContextTypes)}function Rt(){bt(wt),bt(kt)}function Tt(e,n,t){if(kt.current!==St)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");yt(kt,n),yt(wt,t)}function _t(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error((Oe(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return E({},t,r)}function Nt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||St,xt=kt.current,yt(kt,e),yt(wt,wt.current),!0}function Ct(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=_t(e,n,xt),r.__reactInternalMemoizedMergedChildContext=e,bt(wt),bt(kt),yt(kt,e)):bt(wt),yt(wt,t)}var zt="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},It=null,Lt=!1,Ut=!1;function Mt(){if(!Ut&&null!==It){Ut=!0;var e=0,n=An;try{var t=It;for(An=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return n(l,e)})),s}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===Ce&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case _e:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===Ce){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===Ae&&Pr(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=xr(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===Ce?((a=eu(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=Zi(u.type,u.key,u.props,null,r.mode,o)).ref=xr(r,a,u),o.return=r,r=o)}return i(r);case Ne:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=ru(u,r.mode,o)).return=r,r=a}return i(r);case Ae:return e(r,a,(c=u._init)(u._payload),o)}if(b(u))return h(r,a,u,o);if(Be(u))return g(r,a,u,o);Er(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=tu(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var Tr=Rr(!0),_r=Rr(!1),Nr={},Cr=vt(Nr),zr=vt(Nr),Ir=vt(Nr);function Lr(e){if(e===Nr)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Ur(e,n){yt(Ir,n),yt(zr,e),yt(Cr,Nr),bt(Cr),yt(Cr,{isInAParentText:!1})}function Mr(){bt(Cr),bt(zr),bt(Ir)}function Fr(e){Lr(Ir.current);var n=Lr(Cr.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(yt(zr,e),yt(Cr,t))}function Dr(e){zr.current===e&&(bt(Cr),bt(zr))}var Hr=vt(0);function Ar(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Qn()||Qn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var jr=[];function Qr(){for(var e=0;et?t:4,e(!0);var r=Wr.transition;Wr.transition={};try{e(!1),n()}finally{An=t,Wr.transition=r}}function _l(){return nl().memoizedState}function Nl(e,n,t){var r=yi(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},zl(e))Il(n,t);else if(null!==(t=ar(e,n,t,r))){Si(t,e,r,bi()),Ll(t,n,r)}}function Cl(e,n,t){var r=yi(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(zl(e))Il(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,zt(u,i)){var o=n.interleaved;return null===o?(l.next=l,lr(n)):(l.next=o.next,o.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=ar(e,n,l,r))&&(Si(t,e,r,l=bi()),Ll(t,n,r))}}function zl(e){var n=e.alternate;return e===Vr||null!==n&&n===Vr}function Il(e,n){Xr=$r=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ll(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Hn(e,t)}}var Ul={readContext:tr,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ml={readContext:tr,useCallback:function(e,n){return el().memoizedState=[e,void 0===n?null:n],e},useContext:tr,useEffect:vl,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,gl(4,4,kl.bind(null,n,e),t)},useLayoutEffect:function(e,n){return gl(4,4,e,n)},useInsertionEffect:function(e,n){return gl(4,2,e,n)},useMemo:function(e,n){var t=el();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=el();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Nl.bind(null,Vr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},el().memoizedState=e},useState:fl,useDebugValue:xl,useDeferredValue:function(e){return el().memoizedState=e},useTransition:function(){var e=fl(!1),n=e[0];return e=Tl.bind(null,e[1]),el().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n){var t=Vr,r=el(),l=n();if(null===qa)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");0!=(30&Or)||ul(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,vl(sl.bind(null,t,a,e),[e]),t.flags|=2048,pl(9,ol.bind(null,t,a,l,n),void 0,null),l},useId:function(){var e=el(),n=qa.identifierPrefix;return n=":"+n+"r"+(Gr++).toString(32)+":",e.memoizedState=n},unstable_isNewReconciler:!1},Fl={readContext:tr,useCallback:El,useContext:tr,useEffect:bl,useImperativeHandle:wl,useInsertionEffect:yl,useLayoutEffect:Sl,useMemo:Pl,useReducer:rl,useRef:hl,useState:function(){return rl(tl)},useDebugValue:xl,useDeferredValue:function(e){return Rl(nl(),Yr.memoizedState,e)},useTransition:function(){return[rl(tl)[0],nl().memoizedState]},useMutableSource:al,useSyncExternalStore:il,useId:_l,unstable_isNewReconciler:!1},Dl={readContext:tr,useCallback:El,useContext:tr,useEffect:bl,useImperativeHandle:wl,useInsertionEffect:yl,useLayoutEffect:Sl,useMemo:Pl,useReducer:ll,useRef:hl,useState:function(){return ll(tl)},useDebugValue:xl,useDeferredValue:function(e){var n=nl();return null===Yr?n.memoizedState=e:Rl(n,Yr.memoizedState,e)},useTransition:function(){return[ll(tl)[0],nl().memoizedState]},useMutableSource:al,useSyncExternalStore:il,useId:_l,unstable_isNewReconciler:!1};function Hl(e,n){try{var t="",r=n;do{t+=Yt(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function Al(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}if("function"!=typeof u.ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function jl(e,n){try{!1!==u.ReactFiberErrorDialog.showErrorDialog({componentStack:null!==n.stack?n.stack:"",error:n.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}var Ql="function"==typeof WeakMap?WeakMap:Map;function Bl(e,n,t){(t=cr(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){oi||(oi=!0,si=r),jl(e,n)},t}function Wl(e,n,t){(t=cr(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){jl(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){jl(e,n),"function"!=typeof r&&(null===ci?ci=new Set([this]):ci.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function Ol(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Ql;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Wi.bind(null,e,n,t),n.then(e,e))}var Vl=Te.ReactCurrentOwner,Yl=!1;function ql(e,n,t,r){n.child=null===e?_r(n,null,t,r):Tr(n,e.child,t,r)}function $l(e,n,t,r,l){t=t.render;var a=n.ref;return nr(n,l),r=Zr(e,n,t,r,a,l),null===e||Yl?(n.flags|=1,ql(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,va(e,n,l))}function Xl(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Gi(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Zi(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Gl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Vt)(i,r)&&e.ref===n.ref)return va(e,n,l)}return n.flags|=1,(e=Ki(a,r)).ref=n.ref,e.return=n,n.child=e}function Gl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Vt(a,r)&&e.ref===n.ref){if(Yl=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,va(e,n,l);0!=(131072&e.flags)&&(Yl=!0)}}return Zl(e,n,t,r,l)}function Jl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(Ja,Ga),Ga|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,yt(Ja,Ga),Ga|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,yt(Ja,Ga),Ga|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,yt(Ja,Ga),Ga|=r;return ql(e,n,l,t),n.child}function Kl(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512)}function Zl(e,n,t,r,l){var a=Pt(t)?xt:kt.current;return a=Et(n,a),nr(n,l),t=Zr(e,n,t,r,a,l),null===e||Yl?(n.flags|=1,ql(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,va(e,n,l))}function ea(e,n,t,r,l){if(Pt(t)){var a=!0;Nt(n)}else a=!1;if(nr(n,l),null===n.stateNode)ma(e,n),Sr(n,t,r),wr(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=tr(s):s=Et(n,s=Pt(t)?xt:kt.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&kr(n,i,r,s),ur=!1;var f=n.memoizedState;i.state=f,hr(n,r,i,l),o=n.memoizedState,u!==r||f!==o||wt.current||ur?("function"==typeof c&&(vr(n,t,c,r),o=n.memoizedState),(u=ur||yr(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,sr(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:qt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=tr(o):o=Et(n,o=Pt(t)?xt:kt.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&kr(n,i,r,o),ur=!1,f=n.memoizedState,i.state=f,hr(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||wt.current||ur?("function"==typeof p&&(vr(n,t,p,r),h=n.memoizedState),(s=ur||yr(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=1024),r=!1)}return na(e,n,t,r,a,l)}function na(e,n,t,r,l,a){Kl(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&Ct(n,t,!1),va(e,n,a);r=n.stateNode,Vl.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=Tr(n,e.child,null,a),n.child=Tr(n,null,u,a)):ql(e,n,u,a),n.memoizedState=r.state,l&&Ct(n,t,!0),n.child}function ta(e){var n=e.stateNode;n.pendingContext?Tt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&Tt(0,n.context,!1),Ur(e,n.containerInfo)}var ra,la,aa,ia,ua={dehydrated:null,treeContext:null,retryLane:0};function oa(e){return{baseLanes:e,cachePool:null,transitions:null}}function sa(e,n,t){var r,l=n.pendingProps,a=Hr.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),yt(Hr,1&a),null===e)return null!==(e=n.memoizedState)&&null!==e.dehydrated?(0==(1&n.mode)?n.lanes=1:Qn()?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=nu(u,l,0,null),e=eu(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=oa(t),n.memoizedState=ua,e):ca(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return fa(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=Ki(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Ki(r,i):(i=eu(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?oa(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=ua,l}return e=(i=e.child).sibling,l=Ki(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function ca(e,n){return(n=nu({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function da(e,n,t,r){return null!==r&&(null===Wt?Wt=[r]:Wt.push(r)),Tr(n,e.child,null,t),(e=ca(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function fa(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,da(e,n,i,a=Al(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,t=n.mode,r=nu({mode:"visible",children:r.children},t,0,null),(a=eu(a,t,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&Tr(n,e.child,null,i),n.child.memoizedState=oa(i),n.memoizedState=ua,a);if(0==(1&n.mode))return da(e,n,i,null);if(Qn())return a=Qn().digest,da(e,n,i,a=Al(Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),a,void 0));if(t=0!=(i&e.childLanes),Yl||t){if(null!==(r=qa)){switch(i&-i){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(t=0!=(t&(r.suspendedLanes|i))?0:t)&&t!==a.retryLane&&(a.retryLane=t,ir(e,t),Si(r,e,t,-1))}return Ii(),da(e,n,i,a=Al(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}return Qn()?(n.flags|=128,n.child=e.child,Vi.bind(null,e),Qn(),null):((e=ca(n,r.children)).flags|=4096,e)}function pa(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),er(e.return,n,t)}function ha(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function ga(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(ql(e,n,r.children,t),0!=(2&(r=Hr.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&pa(e,t,n);else if(19===e.tag)pa(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(yt(Hr,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Ar(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ha(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Ar(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ha(n,!0,t,null,a);break;case"together":ha(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ma(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function va(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),ei|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Ki(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Ki(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function ba(e,n,t){switch(n.tag){case 3:ta(n);break;case 5:Fr(n);break;case 1:Pt(n.type)&&Nt(n);break;case 4:Ur(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;yt($t,r._currentValue2),r._currentValue2=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(yt(Hr,1&Hr.current),n.flags|=128,null):0!=(t&n.child.childLanes)?sa(e,n,t):(yt(Hr,1&Hr.current),null!==(e=va(e,n,t))?e.sibling:null);yt(Hr,1&Hr.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return ga(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),yt(Hr,Hr.current),r)break;return null;case 22:case 23:return n.lanes=0,Jl(e,n,t)}return va(e,n,t)}function ya(e,n){if(null!==e&&e.child===n.child)return!0;if(0!=(16&n.flags))return!1;for(e=n.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}function Sa(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=dt(a)),Gn(e,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Gn(e,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),Sa(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function ka(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function wa(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function xa(e,n,t){var r=n.pendingProps;switch(Bt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wa(n),null;case 1:case 17:return Pt(n.type)&&Rt(),wa(n),null;case 3:return t=n.stateNode,Mr(),bt(wt),bt(kt),Qr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==Wt&&(Ei(Wt),Wt=null)),la(e,n),wa(n),null;case 5:Dr(n),t=Lr(Ir.current);var l=n.type;if(null!==e&&null!=n.stateNode)aa(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return wa(n),null}Lr(Cr.current),e=it,it+=2,l=at(l);var a=un(null,Je,r,l.validAttributes);t=Wn(e,l.uiViewClassName,t,a,n),e=new ut(e,l,r,n),ra(e={node:t,canonical:e},n,!1,!1),n.stateNode=e,null!==n.ref&&(n.flags|=512)}return wa(n),null;case 6:if(e&&null!=n.stateNode)ia(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");e=Lr(Ir.current),t=Lr(Cr.current),n.stateNode=ot(r,e,t,n)}return wa(n),null;case 13:if(bt(Hr),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==r&&null!==r.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4,wa(n),l=!1}else null!==Wt&&(Ei(Wt),Wt=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!==(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Hr.current)?0===Ka&&(Ka=3):Ii())),null!==n.updateQueue&&(n.flags|=4),wa(n),null);case 4:return Mr(),la(e,n),wa(n),null;case 10:return Zt(n.type._context),wa(n),null;case 19:if(bt(Hr),null===(l=n.memoizedState))return wa(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering))if(r)ka(l,!1);else{if(0!==Ka||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=Ar(e))){for(n.flags|=128,ka(l,!1),null!==(e=a.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,l=a.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return yt(Hr,1&Hr.current|2),n.child}e=e.sibling}null!==l.tail&&vn()>ii&&(n.flags|=128,r=!0,ka(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Ar(a))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),ka(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate)return wa(n),null}else 2*vn()-l.renderingStartTime>ii&&1073741824!==t&&(n.flags|=128,r=!0,ka(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=vn(),n.sibling=null,e=Hr.current,yt(Hr,r?1&e|2:1&e),n):(wa(n),null);case 22:case 23:return _i(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&Ga)&&wa(n):wa(n),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ea(e,n){switch(Bt(n),n.tag){case 1:return Pt(n.type)&&Rt(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Mr(),bt(wt),bt(kt),Qr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Dr(n),null;case 13:if(bt(Hr),null!==(e=n.memoizedState)&&null!==e.dehydrated&&null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return bt(Hr),null;case 4:return Mr(),null;case 10:return Zt(n.type._context),null;case 22:case 23:return _i(),null;default:return null}}ra=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=dt(a)),Xn(e.node,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Xn(e.node,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),ra(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},la=function(e,n){var t=n.stateNode;if(!ya(e,n)){e=t.containerInfo;var r=$n(e);Sa(r,n,!1,!1),t.pendingChildren=r,n.flags|=4,Jn(e,r)}},aa=function(e,n,t,r){t=e.stateNode;var l=e.memoizedProps;if((e=ya(e,n))&&l===r)n.stateNode=t;else{var a=n.stateNode;Lr(Cr.current);var i=null;l!==r&&(l=un(null,l,r,a.canonical.viewConfig.validAttributes),a.canonical.currentProps=r,i=l),e&&null===i?n.stateNode=t:(r=i,l=t.node,t={node:e?null!==r?qn(l,r):On(l):null!==r?Yn(l,r):Vn(l),canonical:t.canonical},n.stateNode=t,e?n.flags|=4:ra(t,n,!1,!1))}},ia=function(e,n,t,r){t!==r?(e=Lr(Ir.current),t=Lr(Cr.current),n.stateNode=ot(r,e,t,n),n.flags|=4):n.stateNode=e.stateNode};var Pa="function"==typeof WeakSet?WeakSet:Set,Ra=null;function Ta(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Bi(e,n,t)}else t.current=null}function _a(e,n,t){try{t()}catch(t){Bi(e,n,t)}}var Na=!1;function Ca(e,n){for(Ra=n;null!==Ra;)if(n=(e=Ra).child,0!=(1028&e.subtreeFlags)&&null!==n)n.return=e,Ra=n;else for(;null!==Ra;){e=Ra;try{var t=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 3:case 5:case 6:case 4:case 17:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:qt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){Bi(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,Ra=n;break}Ra=e.return}return t=Na,Na=!1,t}function za(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&_a(n,t,a)}l=l.next}while(l!==r)}}function Ia(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function La(e){var n=e.alternate;null!==n&&(e.alternate=null,La(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ua(e,n,t){for(t=t.child;null!==t;)Ma(e,n,t),t=t.sibling}function Ma(e,n,t){if(xn&&"function"==typeof xn.onCommitFiberUnmount)try{xn.onCommitFiberUnmount(wn,t)}catch(e){}switch(t.tag){case 5:Ta(t,n);case 6:Ua(e,n,t);break;case 18:break;case 4:$n(t.stateNode.containerInfo),Ua(e,n,t);break;case 0:case 11:case 14:case 15:var r=t.updateQueue;if(null!==r&&null!==(r=r.lastEffect)){var l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&_a(t,n,i),l=l.next}while(l!==r)}Ua(e,n,t);break;case 1:if(Ta(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Bi(t,n,e)}Ua(e,n,t);break;default:Ua(e,n,t)}}function Fa(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Pa),n.forEach((function(n){var r=Yi.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Da(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=vn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ba(r/1960))-r)){e.timeoutHandle=st(Hi.bind(null,e,li,ui),r);break}Hi(e,li,ui);break;default:throw Error("Unknown root exit status.")}}}return ki(e,vn()),e.callbackNode===t?wi.bind(null,e):null}function xi(e,n){var t=ri;return e.current.memoizedState.isDehydrated&&(Ni(e,n).flags|=256),2!==(e=Li(e,n))&&(n=li,li=t,null!==n&&Ei(n)),e}function Ei(e){null===li?li=e:li.push.apply(li,e)}function Pi(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===fi)var r=!1;else{if(e=fi,fi=null,pi=0,0!=(6&Ya))throw Error("Cannot flush passive effects while already rendering.");var l=Ya;for(Ya|=4,Ra=e.current;null!==Ra;){var a=Ra,i=a.child;if(0!=(16&Ra.flags)){var u=a.deletions;if(null!==u){for(var o=0;ovn()-ai?Ni(e,0):ti|=t),ki(e,n)}function Oi(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Nn,0==(130023424&(Nn<<=1))&&(Nn=4194304)));var t=bi();null!==(e=ir(e,n))&&(Fn(e,n,t),ki(e,t))}function Vi(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Oi(e,t)}function Yi(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Oi(e,t)}function qi(e,n){return pn(e,n)}function $i(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xi(e,n,t,r){return new $i(e,n,t,r)}function Gi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ji(e){if("function"==typeof e)return Gi(e)?1:0;if(null!=e){if((e=e.$$typeof)===Me)return 11;if(e===He)return 14}return 2}function Ki(e,n){var t=e.alternate;return null===t?((t=Xi(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Zi(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Gi(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ce:return eu(t.children,l,a,n);case ze:i=8,l|=8;break;case Ie:return(e=Xi(12,t,n,2|l)).elementType=Ie,e.lanes=a,e;case Fe:return(e=Xi(13,t,n,l)).elementType=Fe,e.lanes=a,e;case De:return(e=Xi(19,t,n,l)).elementType=De,e.lanes=a,e;case je:return nu(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Le:i=10;break e;case Ue:i=9;break e;case Me:i=11;break e;case He:i=14;break e;case Ae:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Xi(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function eu(e,n,t,r){return(e=Xi(7,e,r,n)).lanes=t,e}function nu(e,n,t,r){return(e=Xi(22,e,r,n)).elementType=je,e.lanes=t,e.stateNode={isHidden:!1},e}function tu(e,n,t){return(e=Xi(6,e,null,n)).lanes=t,e}function ru(e,n,t){return(n=Xi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function lu(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mn(0),this.expirationTimes=Mn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mn(0),this.identifierPrefix=r,this.onRecoverableError=l}function au(e,n,t){var r=3=(null!=a?a:0)}));t.callback(new y(n),b,s)};for(var p of c.entries()){var h=(0,a.default)(p,2),b=h[0];v(h[1])}}}};function b(){(0,u.default)('missing-native-performance-observer','Missing native implementation of PerformanceObserver')}function T(){var t=Array.from(c.values()).map((function(t){return t.entryTypes})).reduce((function(t,n){return w(t,n)}),new Map);for(var n of t){var o=(0,a.default)(n,2),s=o[0],u=o[1];null==l.default||l.default.setDurationThreshold((0,f.performanceEntryTypeToRaw)(s),null!=u?u:0)}}function w(t,n){var o=new Map;for(var s of t){var u,l=(0,a.default)(s,2),f=l[0],y=l[1];if(n.has(f))o.set(f,Math.min(null!=y?y:0,null!=(u=n.get(f))?u:0));else o.set(f,y)}return o}(e.default=(function(){function t(n){(0,o.default)(this,t),this._callback=n}return(0,s.default)(t,[{key:"observe",value:function(t){var a;if(l.default){var o;this._validateObserveOptions(t),t.entryTypes?(this._type='multiple',o=new Map(t.entryTypes.map((function(t){return[t,void 0]})))):(this._type='single',o=new Map([[t.type,t.durationThreshold]]));var s=null==(a=c.get(this))?void 0:a.entryTypes,u=s?w(o,s):o;if(!s||s.size!==u.size){c.set(this,{callback:this._callback,entryTypes:u}),p||(l.default.setOnPerformanceEntryCallback(h),p=!0);var y,E,O=s?(y=new Set(o.keys()),E=new Set(s.keys()),new Set((0,n.default)(y).filter((function(t){return!E.has(t)})))):new Set(o.keys());for(var k of O){var _;if(!v.has(k)){var P=(0,f.performanceEntryTypeToRaw)(k);l.default.startReporting(P)}v.set(k,(null!=(_=v.get(k))?_:0)+1)}T()}}else b()}},{key:"disconnect",value:function(){if(l.default){var t=c.get(this);if(t){for(var n of t.entryTypes.keys()){var a,o=null!=(a=v.get(n))?a:0;1===o?(v.delete(n),l.default.stopReporting((0,f.performanceEntryTypeToRaw)(n))):0!==o&&v.set(n,o-1)}c.delete(this),0===c.size&&(l.default.setOnPerformanceEntryCallback(void 0),p=!1),T()}}else b()}},{key:"_validateObserveOptions",value:function(t){var n=t.type,a=t.entryTypes,o=t.durationThreshold;if(!n&&!a)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must not include both entryTypes and type arguments.");if(a&&n)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must include either entryTypes or type arguments.");if('multiple'===this._type&&n)throw new Error("Failed to execute 'observe' on 'PerformanceObserver': This observer has performed observe({entryTypes:...}, therefore it cannot perform observe({type:...})");if('single'===this._type&&a)throw new Error("Failed to execute 'observe' on 'PerformanceObserver': This PerformanceObserver has performed observe({type:...}, therefore it cannot perform observe({entryTypes:...})");if(a&&void 0!==o)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must not include both entryTypes and durationThreshold arguments.")}}]),t})()).supportedEntryTypes=Object.freeze(['mark','measure','event'])}),130,[2,6,23,21,22,41,129,131,132]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PerformanceEntry=void 0;var n=t(r(d[1])),u=t(r(d[2]));e.PerformanceEntry=(function(){function t(u){(0,n.default)(this,t),this.name=u.name,this.entryType=u.entryType,this.startTime=u.startTime,this.duration=u.duration}return(0,u.default)(t,[{key:"toJSON",value:function(){return{name:this.name,entryType:this.entryType,startTime:this.startTime,duration:this.duration}}}]),t})()}),131,[2,21,22]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('NativePerformanceCxx')}),126,[60]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.PerformanceMeasure=_e.PerformanceMark=void 0;var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),l=e(r(d[4])),o=e(r(d[5])),f=e(r(d[6])),s=e(r(d[7])),c=e(r(d[8])),v=e(r(d[9])),y=e(r(d[10])),p=r(d[11]),w=r(d[12]),E=r(d[13]),P=e(r(d[14]));function T(e,t,n){return t=(0,l.default)(t),(0,u.default)(e,k()?Reflect.construct(t,n||[],(0,l.default)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}var h=g.nativePerformanceNow?g.nativePerformanceNow:function(){return Date.now()},N=_e.PerformanceMark=(function(e){function u(e,t){var l,o;return(0,n.default)(this,u),o=T(this,u,[{name:e,entryType:'mark',startTime:null!=(l=null==t?void 0:t.startTime)?l:h(),duration:0}]),t&&(o.detail=t.detail),o}return(0,o.default)(u,e),(0,t.default)(u)})(p.PerformanceEntry),M=_e.PerformanceMeasure=(function(e){function u(e,t){var l,o;return(0,n.default)(this,u),o=T(this,u,[{name:e,entryType:'measure',startTime:0,duration:null!=(l=null==t?void 0:t.duration)?l:0}]),t&&(o.detail=t.detail),o}return(0,o.default)(u,e),(0,t.default)(u)})(p.PerformanceEntry);function S(){(0,f.default)('missing-native-performance','Missing native implementation of Performance')}_e.default=(function(){return(0,t.default)((function e(){(0,n.default)(this,e),this.eventCounts=new s.default}),[{key:"memory",get:function(){if(null!=v.default&&v.default.getSimpleMemoryInfo){var e=v.default.getSimpleMemoryInfo();if(e.hasOwnProperty('hermes_heapSize')){var t=e.hermes_heapSize,n=e.hermes_allocatedBytes;return new c.default({jsHeapSizeLimit:null,totalJSHeapSize:t,usedJSHeapSize:n})}return new c.default}return new c.default}},{key:"reactNativeStartupTiming",get:function(){return null!=v.default&&v.default.getReactNativeStartupTiming?new P.default(v.default.getReactNativeStartupTiming()):new P.default}},{key:"mark",value:function(e,t){var n=new N(e,t);return null!=v.default&&v.default.mark?v.default.mark(e,n.startTime,n.duration):S(),n}},{key:"clearMarks",value:function(e){null!=y.default&&y.default.clearEntries?null==y.default||y.default.clearEntries(E.RawPerformanceEntryTypeValues.MARK,e):(0,w.warnNoNativePerformanceObserver)()}},{key:"measure",value:function(e,t,n){var u,l,o,f=n,s=0,c=0;if('string'==typeof t)l=t;else if(void 0!==t){var y;if(u=t,void 0!==n)throw new TypeError("Performance.measure: Can't have both options and endMark");if(void 0===u.start&&void 0===u.end)throw new TypeError('Performance.measure: Must have at least one of start/end specified in options');if(void 0!==u.start&&void 0!==u.end&&void 0!==u.duration)throw new TypeError("Performance.measure: Can't have both start/end and duration explicitly in options");'number'==typeof u.start?s=u.start:l=u.start,'number'==typeof u.end?c=u.end:f=u.end,o=null!=(y=u.duration)?y:o}var p=new M(e,u);return null!=v.default&&v.default.measure?v.default.measure(e,s,c,o,l,f):S(),p}},{key:"clearMeasures",value:function(e){null!=y.default&&y.default.clearEntries?null==y.default||y.default.clearEntries(E.RawPerformanceEntryTypeValues.MEASURE,e):(0,w.warnNoNativePerformanceObserver)()}},{key:"now",value:function(){return h()}},{key:"getEntries",value:function(){return null!=y.default&&y.default.clearEntries?y.default.getEntries().map(E.rawToPerformanceEntry):((0,w.warnNoNativePerformanceObserver)(),[])}},{key:"getEntriesByType",value:function(e){return'mark'!==e&&'measure'!==e?(console.log(`Performance.getEntriesByType: Only valid for 'mark' and 'measure' entry types, got ${e}`),[]):null!=y.default&&y.default.clearEntries?y.default.getEntries((0,E.performanceEntryTypeToRaw)(e)).map(E.rawToPerformanceEntry):((0,w.warnNoNativePerformanceObserver)(),[])}},{key:"getEntriesByName",value:function(e,t){return void 0!==t&&'mark'!==t&&'measure'!==t?(console.log(`Performance.getEntriesByName: Only valid for 'mark' and 'measure' entry types, got ${t}`),[]):null!=y.default&&y.default.clearEntries?y.default.getEntries(null!=t?(0,E.performanceEntryTypeToRaw)(t):void 0,e).map(E.rawToPerformanceEntry):((0,w.warnNoNativePerformanceObserver)(),[])}}])})()}),127,[2,26,25,20,13,24,41,128,134,126,129,131,130,132,135]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u,t=n(r(d[1])),f=n(r(d[2])),o=n(r(d[3])),l=r(d[4]);function c(){var n;return u||(o.default?(u=new Map(o.default.getEventCounts()),g.queueMicrotask((function(){u=null})),null!=(n=u)?n:new Map):((0,l.warnNoNativePerformanceObserver)(),new Map))}e.default=(function(){return(0,f.default)((function n(){(0,t.default)(this,n)}),[{key:"size",get:function(){return c().size}},{key:"entries",value:function(){return c().entries()}},{key:"forEach",value:function(n){return c().forEach(n)}},{key:"get",value:function(n){return c().get(n)}},{key:"has",value:function(n){return c().has(n)}},{key:"keys",value:function(){return c().keys()}},{key:"values",value:function(){return c().values()}}])})()}),128,[2,25,26,129,130]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('NativePerformanceObserverCxx')}),129,[60]); +__d((function(g,r,i,_a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PerformanceObserverEntryList=void 0,e.warnNoNativePerformanceObserver=b;var n=t(r(d[1])),a=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),l=t(r(d[6])),f=(r(d[7]),r(d[8])),y=e.PerformanceObserverEntryList=(function(){return(0,s.default)((function t(n){(0,o.default)(this,t),this._entries=n}),[{key:"getEntries",value:function(){return this._entries}},{key:"getEntriesByType",value:function(t){return this._entries.filter((function(n){return n.entryType===t}))}},{key:"getEntriesByName",value:function(t,n){return void 0===n?this._entries.filter((function(n){return n.name===t})):this._entries.filter((function(a){return a.name===t&&a.entryType===n}))}}])})(),v=new Map,c=new Map,p=!1,h=function(){var t;if(l.default){var n=l.default.popPendingEntries(),o=null!=(t=null==n?void 0:n.entries)?t:[],s=null==n?void 0:n.droppedEntriesCount;if(0!==o.length){var u=o.map(f.rawToPerformanceEntry),v=function(t){var n=u.filter((function(n){if(!t.entryTypes.has(n.entryType))return!1;var a=t.entryTypes.get(n.entryType);return n.duration>=(null!=a?a:0)}));t.callback(new y(n),b,s)};for(var p of c.entries()){var h=(0,a.default)(p,2),b=h[0];v(h[1])}}}};function b(){(0,u.default)('missing-native-performance-observer','Missing native implementation of PerformanceObserver')}function T(){var t=Array.from(c.values()).map((function(t){return t.entryTypes})).reduce((function(t,n){return w(t,n)}),new Map);for(var n of t){var o=(0,a.default)(n,2),s=o[0],u=o[1];null==l.default||l.default.setDurationThreshold((0,f.performanceEntryTypeToRaw)(s),null!=u?u:0)}}function w(t,n){var o=new Map;for(var s of t){var u,l=(0,a.default)(s,2),f=l[0],y=l[1];if(n.has(f))o.set(f,Math.min(null!=y?y:0,null!=(u=n.get(f))?u:0));else o.set(f,y)}return o}(e.default=(function(){return(0,s.default)((function t(n){(0,o.default)(this,t),this._callback=n}),[{key:"observe",value:function(t){var a;if(l.default){var o;this._validateObserveOptions(t),t.entryTypes?(this._type='multiple',o=new Map(t.entryTypes.map((function(t){return[t,void 0]})))):(this._type='single',o=new Map([[t.type,t.durationThreshold]]));var s=null==(a=c.get(this))?void 0:a.entryTypes,u=s?w(o,s):o;if(!s||s.size!==u.size){c.set(this,{callback:this._callback,entryTypes:u}),p||(l.default.setOnPerformanceEntryCallback(h),p=!0);var y,E,O=s?(y=new Set(o.keys()),E=new Set(s.keys()),new Set((0,n.default)(y).filter((function(t){return!E.has(t)})))):new Set(o.keys());for(var k of O){var _;if(!v.has(k)){var P=(0,f.performanceEntryTypeToRaw)(k);l.default.startReporting(P)}v.set(k,(null!=(_=v.get(k))?_:0)+1)}T()}}else b()}},{key:"disconnect",value:function(){if(l.default){var t=c.get(this);if(t){for(var n of t.entryTypes.keys()){var a,o=null!=(a=v.get(n))?a:0;1===o?(v.delete(n),l.default.stopReporting((0,f.performanceEntryTypeToRaw)(n))):0!==o&&v.set(n,o-1)}c.delete(this),0===c.size&&(l.default.setOnPerformanceEntryCallback(void 0),p=!1),T()}}else b()}},{key:"_validateObserveOptions",value:function(t){var n=t.type,a=t.entryTypes,o=t.durationThreshold;if(!n&&!a)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must not include both entryTypes and type arguments.");if(a&&n)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must include either entryTypes or type arguments.");if('multiple'===this._type&&n)throw new Error("Failed to execute 'observe' on 'PerformanceObserver': This observer has performed observe({entryTypes:...}, therefore it cannot perform observe({type:...})");if('single'===this._type&&a)throw new Error("Failed to execute 'observe' on 'PerformanceObserver': This PerformanceObserver has performed observe({type:...}, therefore it cannot perform observe({entryTypes:...})");if(a&&void 0!==o)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must not include both entryTypes and durationThreshold arguments.")}}])})()).supportedEntryTypes=Object.freeze(['mark','measure','event'])}),130,[2,6,27,25,26,41,129,131,132]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PerformanceEntry=void 0;var n=t(r(d[1])),u=t(r(d[2]));e.PerformanceEntry=(function(){return(0,u.default)((function t(u){(0,n.default)(this,t),this.name=u.name,this.entryType=u.entryType,this.startTime=u.startTime,this.duration=u.duration}),[{key:"toJSON",value:function(){return{name:this.name,entryType:this.entryType,startTime:this.startTime,duration:this.duration}}}])})()}),131,[2,25,26]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.RawPerformanceEntryTypeValues=void 0,e.performanceEntryTypeToRaw=function(n){switch(n){case'mark':return o.MARK;case'measure':return o.MEASURE;case'event':return o.EVENT;default:throw new TypeError(`performanceEntryTypeToRaw: unexpected performance entry type received: ${n}`)}},e.rawToPerformanceEntry=function(E){return E.entryType===o.EVENT?new t.PerformanceEventTiming({name:E.name,startTime:E.startTime,duration:E.duration,processingStart:E.processingStart,processingEnd:E.processingEnd,interactionId:E.interactionId}):new n.PerformanceEntry({name:E.name,entryType:c(E.entryType),startTime:E.startTime,duration:E.duration})},e.rawToPerformanceEntryType=c;var n=r(d[0]),t=r(d[1]),o=e.RawPerformanceEntryTypeValues={UNDEFINED:0,MARK:1,MEASURE:2,EVENT:3};function c(n){switch(n){case o.MARK:return'mark';case o.MEASURE:return'measure';case o.EVENT:return'event';case o.UNDEFINED:throw new TypeError("rawToPerformanceEntryType: UNDEFINED can't be cast to PerformanceEntryType");default:throw new TypeError(`rawToPerformanceEntryType: unexpected performance entry type received: ${n}`)}}}),132,[131,133]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PerformanceEventTiming=void 0;var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),c=t(r(d[4])),o=t(r(d[5])),l=r(d[6]);function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}_e.PerformanceEventTiming=(function(t){(0,u.default)(v,t);var l,s,p=(l=v,s=f(),function(){var t,e=(0,o.default)(l);if(s){var n=(0,o.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,c.default)(this,t)});function v(t){var e,u,c,o,l,f;return(0,n.default)(this,v),(f=p.call(this,{name:t.name,entryType:'event',startTime:null!=(e=t.startTime)?e:0,duration:null!=(u=t.duration)?u:0})).processingStart=null!=(c=t.processingStart)?c:0,f.processingEnd=null!=(o=t.processingEnd)?o:0,f.interactionId=null!=(l=t.interactionId)?l:0,f}return(0,e.default)(v)})(l.PerformanceEntry)}),133,[2,22,21,17,19,16,131]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),S=t(r(d[2]));e.default=(function(){function t(S){(0,u.default)(this,t),null!=S&&(this._jsHeapSizeLimit=S.jsHeapSizeLimit,this._totalJSHeapSize=S.totalJSHeapSize,this._usedJSHeapSize=S.usedJSHeapSize)}return(0,S.default)(t,[{key:"jsHeapSizeLimit",get:function(){return this._jsHeapSizeLimit}},{key:"totalJSHeapSize",get:function(){return this._totalJSHeapSize}},{key:"usedJSHeapSize",get:function(){return this._usedJSHeapSize}}]),t})()}),134,[2,21,22]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2]));e.default=(function(){function t(u){(0,n.default)(this,t),this._startTime=0,this._endTime=0,this._executeJavaScriptBundleEntryPointStart=0,this._executeJavaScriptBundleEntryPointEnd=0,null!=u&&(this._startTime=u.startTime,this._endTime=u.endTime,this._executeJavaScriptBundleEntryPointStart=u.executeJavaScriptBundleEntryPointStart,this._executeJavaScriptBundleEntryPointEnd=u.executeJavaScriptBundleEntryPointEnd)}return(0,u.default)(t,[{key:"startTime",get:function(){return this._startTime}},{key:"endTime",get:function(){return this._endTime}},{key:"executeJavaScriptBundleEntryPointStart",get:function(){return this._executeJavaScriptBundleEntryPointStart}},{key:"executeJavaScriptBundleEntryPointEnd",get:function(){return this._executeJavaScriptBundleEntryPointEnd}}]),t})()}),135,[2,21,22]); +__d((function(g,r,i,a,m,_e,d){var n=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PerformanceEventTiming=void 0;var t=n(r(d[1])),e=n(r(d[2])),o=n(r(d[3])),u=n(r(d[4])),c=n(r(d[5])),l=r(d[6]);function f(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(f=function(){return!!n})()}_e.PerformanceEventTiming=(function(n){function l(n){var t,c,s,p,v,y,E,T,P;return(0,e.default)(this,l),E=this,T=l,P=[{name:n.name,entryType:'event',startTime:null!=(t=n.startTime)?t:0,duration:null!=(c=n.duration)?c:0}],T=(0,u.default)(T),(y=(0,o.default)(E,f()?Reflect.construct(T,P||[],(0,u.default)(E).constructor):T.apply(E,P))).processingStart=null!=(s=n.processingStart)?s:0,y.processingEnd=null!=(p=n.processingEnd)?p:0,y.interactionId=null!=(v=n.interactionId)?v:0,y}return(0,c.default)(l,n),(0,t.default)(l)})(l.PerformanceEntry)}),133,[2,26,25,20,13,24,131]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),S=t(r(d[2]));e.default=(function(){return(0,S.default)((function t(S){(0,u.default)(this,t),null!=S&&(this._jsHeapSizeLimit=S.jsHeapSizeLimit,this._totalJSHeapSize=S.totalJSHeapSize,this._usedJSHeapSize=S.usedJSHeapSize)}),[{key:"jsHeapSizeLimit",get:function(){return this._jsHeapSizeLimit}},{key:"totalJSHeapSize",get:function(){return this._totalJSHeapSize}},{key:"usedJSHeapSize",get:function(){return this._usedJSHeapSize}}])})()}),134,[2,25,26]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2]));e.default=(function(){return(0,u.default)((function t(u){(0,n.default)(this,t),this._startTime=0,this._endTime=0,this._executeJavaScriptBundleEntryPointStart=0,this._executeJavaScriptBundleEntryPointEnd=0,null!=u&&(this._startTime=u.startTime,this._endTime=u.endTime,this._executeJavaScriptBundleEntryPointStart=u.executeJavaScriptBundleEntryPointStart,this._executeJavaScriptBundleEntryPointEnd=u.executeJavaScriptBundleEntryPointEnd)}),[{key:"startTime",get:function(){return this._startTime}},{key:"endTime",get:function(){return this._endTime}},{key:"executeJavaScriptBundleEntryPointStart",get:function(){return this._executeJavaScriptBundleEntryPointStart}},{key:"executeJavaScriptBundleEntryPointEnd",get:function(){return this._executeJavaScriptBundleEntryPointEnd}}])})()}),135,[2,25,26]); __d((function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]);if(e.installConsoleErrorReporter(),!g.__fbDisableExceptionsManager){r(d[1]).setGlobalHandler((function(o,t){try{e.handleException(o,t)}catch(e){throw console.log('Failed to print error: ',e.message),o}}))}}),136,[55,54]); __d((function(g,r,i,a,m,e,d){'use strict';var l,n,s=r(d[0]).polyfillGlobal;if(null!=(l=g)&&null!=(n=l.HermesInternal)&&null!=n.hasPromise&&n.hasPromise())g.Promise;else s('Promise',(function(){return r(d[1])}))}),137,[138,139]); __d((function(g,r,i,a,m,e,d){'use strict';var l=r(d[0]);function o(o,t,n){var c=Object.getOwnPropertyDescriptor(o,t),b=c||{},f=b.enumerable,u=b.writable,p=b.configurable;!c||void 0!==p&&p?l(o,t,{get:n,enumerable:!1!==f,writable:!1!==u}):console.error('Failed to set polyfill. '+t+' is not configurable.')}m.exports={polyfillObjectProperty:o,polyfillGlobal:function(l,t){o(g,l,t)}}}),138,[62]); @@ -151,106 +151,106 @@ __d((function(g,r,i,a,m,e,d){function t(t){return'function'==typeof t&&t.toStrin __d((function(g,r,_i,a,m,e,d){var t=(function(t){"use strict";var n,o=Object.prototype,i=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function s(t,n,o,i){var c=n&&n.prototype instanceof b?n:b,u=Object.create(c.prototype),h=new R(i||[]);return u._invoke=F(t,o,h),u}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var y="suspendedStart",v="suspendedYield",w="executing",L="completed",x={};function b(){}function E(){}function _(){}var j={};l(j,u,(function(){return this}));var O=Object.getPrototypeOf,k=O&&O(O(A([])));k&&k!==o&&i.call(k,u)&&(j=k);var G=_.prototype=b.prototype=Object.create(j);function N(t){["next","throw","return"].forEach((function(n){l(t,n,(function(t){return this._invoke(n,t)}))}))}function T(t,n){function o(c,u,h,f){var l=p(t[c],t,u);if("throw"!==l.type){var s=l.arg,y=s.value;return y&&"object"==typeof y&&i.call(y,"__await")?n.resolve(y.__await).then((function(t){o("next",t,h,f)}),(function(t){o("throw",t,h,f)})):n.resolve(y).then((function(t){s.value=t,h(s)}),(function(t){return o("throw",t,h,f)}))}f(l.arg)}var c;this._invoke=function(t,i){function u(){return new n((function(n,c){o(t,i,n,c)}))}return c=c?c.then(u,u):u()}}function F(t,n,o){var i=y;return function(c,u){if(i===w)throw new Error("Generator is already running");if(i===L){if("throw"===c)throw u;return Y()}for(o.method=c,o.arg=u;;){var h=o.delegate;if(h){var f=P(h,o);if(f){if(f===x)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===y)throw i=L,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=w;var l=p(t,n,o);if("normal"===l.type){if(i=o.done?L:v,l.arg===x)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i=L,o.method="throw",o.arg=l.arg)}}}function P(t,o){var i=t.iterator[o.method];if(i===n){if(o.delegate=null,"throw"===o.method){if(t.iterator.return&&(o.method="return",o.arg=n,P(t,o),"throw"===o.method))return x;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var c=p(i,t.iterator,o.arg);if("throw"===c.type)return o.method="throw",o.arg=c.arg,o.delegate=null,x;var u=c.arg;return u?u.done?(o[t.resultName]=u.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=n),o.delegate=null,x):u:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,x)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function I(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,h=function o(){for(;++c=0;--u){var h=this.tryEntries[u],f=h.completion;if("root"===h.tryLoc)return c("end");if(h.tryLoc<=this.prev){var l=i.call(h,"catchLoc"),s=i.call(h,"finallyLoc");if(l&&s){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),I(o),x}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;I(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,i){return this.delegate={iterator:A(t),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=n),x}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),145,[]); __d((function(g,r,i,a,m,e,d){'use strict';var n,t,u=r(d[0]).isNativeFunction,l=r(d[1]).polyfillGlobal,c=!0===(null==(n=g.HermesInternal)||null==n.hasPromise?void 0:n.hasPromise())&&!0===(null==(t=g.HermesInternal)||null==t.useEngineQueue?void 0:t.useEngineQueue()),s=u(Promise)||c;if(!0!==g.RN$Bridgeless){var o=function(n){l(n,(function(){return r(d[2])[n]}))};o('setTimeout'),o('clearTimeout'),o('setInterval'),o('clearInterval'),o('requestAnimationFrame'),o('cancelAnimationFrame'),o('requestIdleCallback'),o('cancelIdleCallback')}s?(l('setImmediate',(function(){return r(d[3]).setImmediate})),l('clearImmediate',(function(){return r(d[3]).clearImmediate}))):!0!==g.RN$Bridgeless&&(l('setImmediate',(function(){return r(d[2]).queueReactNativeMicrotask})),l('clearImmediate',(function(){return r(d[2]).clearReactNativeMicrotask}))),l('queueMicrotask',c?function(){var n;return null==(n=g.HermesInternal)?void 0:n.enqueueJob}:function(){return r(d[4]).default})}),146,[144,138,147,149,150]); __d((function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[2]),n=(r(d[3]),r(d[4])),i=16.666666666666668,l=[],o=[],c=[],u=[],f=[],s={},v=1,h=[],T=!1;function k(){var e=c.indexOf(null);return-1===e&&(e=c.length),e}function w(e,t){var n=v++,i=k();return c[i]=n,l[i]=e,o[i]=t,n}function p(e,t,n){e>v&&console.warn('Tried to call timer with ID %s but no such timer exists.',e);var u=c.indexOf(e);if(-1!==u){var f=o[u],s=l[u];if(s&&f){'setInterval'!==f&&b(u);try{'setTimeout'===f||'setInterval'===f||'queueReactNativeMicrotask'===f?s():'requestAnimationFrame'===f?s(g.performance.now()):'requestIdleCallback'===f?s({timeRemaining:function(){return Math.max(0,i-(g.performance.now()-t))},didTimeout:!!n}):console.error('Tried to call a callback with invalid type: '+f)}catch(e){h.push(e)}}else console.error('No callback found for timerID '+e)}}function N(){if(0===u.length)return!1;var e=u;u=[];for(var t=0;t0}function b(e){c[e]=null,l[e]=null,o[e]=null}function I(e){if(null!=e){var t=c.indexOf(e);if(-1!==t){var n=o[t];b(t),'queueReactNativeMicrotask'!==n&&'requestIdleCallback'!==n&&x(e)}}}var q,M={setTimeout:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),l=2;l2?n-2:0),l=2;l1?t-1:0),i=1;i-1&&(f.splice(e,1),p(i,g.performance.now(),!0)),delete s[i],0===f.length&&y(!1)}),n);s[i]=l}return i},cancelIdleCallback:function(e){I(e);var t=f.indexOf(e);-1!==t&&f.splice(t,1);var n=s[e];n&&(M.clearTimeout(n),delete s[e]),0===f.length&&y(!1)},clearTimeout:function(e){I(e)},clearInterval:function(e){I(e)},clearReactNativeMicrotask:function(e){I(e);var t=u.indexOf(e);-1!==t&&u.splice(t,1)},cancelAnimationFrame:function(e){I(e)},callTimers:function(e){n(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),h.length=0;for(var t=0;t0){if(i>1)for(var l=1;l0){var t=f;f=[];for(var n=0;n1?u-1:0),c=1;c=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,s){e===this._requestId&&(t&&(''!==this._responseType&&'text'!==this._responseType||(this._response=t),this._hasError=!0,s&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),t?c._interceptor&&c._interceptor.loadingFailed(e,t):c._interceptor&&c._interceptor.loadingFinished(e,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach((function(e){e&&e.remove()})),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders,s=new Map;for(var n of Object.keys(e)){var a=e[n],o=n.toLowerCase(),h=s.get(o);h?(h.headerValue+=', '+a,s.set(o,h)):s.set(o,{lowerHeaderName:o,upperHeaderName:n.toUpperCase(),headerValue:a})}return(0,t.default)(s.values()).sort((function(e,t){return e.upperHeaderNamet.upperHeaderName?1:0})).map((function(e){return e.lowerHeaderName+': '+e.headerValue})).join('\r\n')+'\r\n'}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"setPerformanceLogger",value:function(e){return this._performanceLogger=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==s&&!s)throw new Error('Synchronous http requests are not supported');if(!t)throw new Error('Cannot load an empty url');this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(e){var s=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var n=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(f.addListener('didSendNetworkData',(function(e){return s.__didUploadProgress.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didReceiveNetworkResponse',(function(e){return s.__didReceiveResponse.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didReceiveNetworkData',(function(e){return s.__didReceiveData.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didReceiveNetworkIncrementalData',(function(e){return s.__didReceiveIncrementalData.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didReceiveNetworkDataProgress',(function(e){return s.__didReceiveDataProgress.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didCompleteNetworkResponse',(function(e){return s.__didCompleteResponse.apply(s,(0,t.default)(e))})));var a='text';'arraybuffer'===this._responseType&&(a='base64'),'blob'===this._responseType&&(a='blob');var o;o='unknown'!==s._trackingName?s._trackingName:s._url,s._perfKey='network_XMLHttpRequest_'+String(o),s._performanceLogger.startTimespan(s._perfKey),R(s._method,'XMLHttpRequest method needs to be defined (%s).',o),R(s._url,'XMLHttpRequest URL needs to be defined (%s).',o),f.sendRequest(s._method,s._trackingName,s._url,s._headers,e,a,n,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&f.abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce((function(e,s){return e[s.toLowerCase()]=t[s],e}),{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:'readystatechange'}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(e,t){'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(0,s.default)((0,u.default)(c.prototype),"addEventListener",this).call(this,e,t)}}],[{key:"setInterceptor",value:function(e){c._interceptor=e}}]),c})(v.apply(void 0,(0,t.default)(N)));w.UNSENT=0,w.OPENED=1,w.HEADERS_RECEIVED=2,w.LOADING=3,w.DONE=4,w._interceptor=null,m.exports=w}),152,[2,6,14,22,21,17,19,16,153,157,161,164,167,40]); -__d((function(g,_r,i,a,m,e,d){var t=_r(d[0]),l=t(_r(d[1])),r=t(_r(d[2])),o=t(_r(d[3])),n=t(_r(d[4])),u=_r(d[5]),f=_r(d[6]);var c=(function(){function t(){(0,l.default)(this,t)}return(0,r.default)(t,null,[{key:"createFromParts",value:function(l,r){(0,n.default)(o.default,'NativeBlobModule is available.');var f='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,(function(t){var l=16*Math.random()|0;return('x'==t?l:3&l|8).toString(16)})),c=l.map((function(t){if(t instanceof ArrayBuffer||g.ArrayBufferView&&t instanceof g.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof u?{data:t.data,type:'blob'}:{data:String(t),type:'string'}})),s=c.reduce((function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size}),0);return o.default.createFromParts(c,f),t.createFromOptions({blobId:f,offset:0,size:s,type:r?r.type:'',lastModified:r?r.lastModified:Date.now()})}},{key:"createFromOptions",value:function(t){return f.register(t.blobId),Object.assign(Object.create(u.prototype),{data:null==t.__collector?Object.assign({},t,{__collector:(l=t.blobId,null==g.__blobCollectorProvider?null:g.__blobCollectorProvider(l))}):t});var l}},{key:"release",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),f.unregister(t),f.has(t)||o.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.sendOverSocket(t.data,l)}}]),t})();c.isAvailable=!!o.default,m.exports=c}),153,[2,21,22,154,40,155,156]); -__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,r&&r.set(t,o),o})(_r(d[0])).get('BlobModule'),n=null,r=null;null!=t&&(r={getConstants:function(){return null==n&&(n=t.getConstants()),n},addNetworkingHandler:function(){t.addNetworkingHandler()},addWebSocketHandler:function(e){t.addWebSocketHandler(e)},removeWebSocketHandler:function(e){t.removeWebSocketHandler(e)},sendOverSocket:function(e,n){t.sendOverSocket(e,n)},createFromParts:function(e,n){t.createFromParts(e,n)},release:function(e){t.release(e)}});_e.default=r}),154,[60]); -__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),s=r(d[1]),n=(function(){function n(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;t(this,n);var l=r(d[2]);this.data=l.createFromParts(s,o).data}return s(n,[{key:"data",get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data},set:function(t){this._data=t}},{key:"slice",value:function(t,s){var n=r(d[2]),o=this.data,l=o.offset,u=o.size;return'number'==typeof t&&(t>u&&(t=u),l+=t,u-=t,'number'==typeof s&&(s<0&&(s=this.size+s),s>this.size&&(s=this.size),u=s-t)),n.createFromOptions({blobId:this.data.blobId,offset:l,size:u,__collector:this.data.__collector})}},{key:"close",value:function(){r(d[2]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}]),n})();m.exports=n}),155,[21,22,153]); +__d((function(g,r,i,_a,m,_e,d){'use strict';var e=r(d[0]),t=e(r(d[1])),s=e(r(d[2])),n=e(r(d[3])),a=e(r(d[4])),o=e(r(d[5])),h=e(r(d[6])),u=e(r(d[7]));function p(e,t,s){return t=(0,h.default)(t),(0,o.default)(e,c()?Reflect.construct(t,s||[],(0,h.default)(e).constructor):t.apply(e,s))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var l=r(d[8]),_=r(d[9]),f=r(d[10]).default,y=r(d[11]),v=r(d[12]),R=r(d[13]);l.isAvailable&&l.addNetworkingHandler();var E={arraybuffer:'function'==typeof g.ArrayBuffer,blob:'function'==typeof g.Blob,document:!1,json:!0,text:!0,'':!0},b=['abort','error','load','loadstart','progress','timeout','loadend'],N=b.concat('readystatechange'),k=(function(e){function t(){return(0,a.default)(this,t),p(this,t,arguments)}return(0,u.default)(t,e),(0,n.default)(t)})(v.apply(void 0,b)),w=(function(e){function o(){var e;return(0,a.default)(this,o),(e=p(this,o)).UNSENT=0,e.OPENED=1,e.HEADERS_RECEIVED=2,e.LOADING=3,e.DONE=4,e.readyState=0,e.status=0,e.timeout=0,e.withCredentials=!0,e.upload=new k,e._aborted=!1,e._hasError=!1,e._method=null,e._perfKey=null,e._response='',e._url=null,e._timedOut=!1,e._trackingName='unknown',e._incrementalEvents=!1,e._performanceLogger=_,e._reset(),e}return(0,u.default)(o,e),(0,n.default)(o,[{key:"_reset",value:function(){this.readyState=this.UNSENT,this.responseHeaders=void 0,this.status=0,delete this.responseURL,this._requestId=null,this._cachedResponse=void 0,this._hasError=!1,this._headers={},this._response='',this._responseType='',this._sent=!1,this._lowerCaseResponseHeaders={},this._clearSubscriptions(),this._timedOut=!1}},{key:"responseType",get:function(){return this._responseType},set:function(e){if(this._sent)throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be set after the request has been sent.");E.hasOwnProperty(e)?(R(E[e]||'document'===e,`The provided value '${e}' is unsupported in this environment.`),'blob'===e&&R(l.isAvailable,'Native module BlobModule is required for blob support'),this._responseType=e):console.warn(`The provided value '${e}' is not a valid 'responseType'.`)}},{key:"responseText",get:function(){if(''!==this._responseType&&'text'!==this._responseType)throw new Error(`The 'responseText' property is only available if 'responseType' is set to '' or 'text', but it is '${this._responseType}'.`);return this.readyState<3?'':this._response}},{key:"response",get:function(){var e=this.responseType;if(''===e||'text'===e)return this.readyState<3||this._hasError?'':this._response;if(4!==this.readyState)return null;if(void 0!==this._cachedResponse)return this._cachedResponse;switch(e){case'document':default:this._cachedResponse=null;break;case'arraybuffer':this._cachedResponse=y.toByteArray(this._response).buffer;break;case'blob':if('object'==typeof this._response&&this._response)this._cachedResponse=l.createFromOptions(this._response);else{if(''!==this._response)throw new Error(`Invalid response for blob: ${this._response}`);this._cachedResponse=l.createFromParts([])}break;case'json':try{this._cachedResponse=JSON.parse(this._response)}catch(e){this._cachedResponse=null}}return this._cachedResponse}},{key:"__didCreateRequest",value:function(e){this._requestId=e,o._interceptor&&o._interceptor.requestSent(e,this._url||'',this._method||'GET',this._headers)}},{key:"__didUploadProgress",value:function(e,t,s){e===this._requestId&&this.upload.dispatchEvent({type:'progress',lengthComputable:!0,loaded:t,total:s})}},{key:"__didReceiveResponse",value:function(e,t,s,n){e===this._requestId&&(null!=this._perfKey&&this._performanceLogger.stopTimespan(this._perfKey),this.status=t,this.setResponseHeaders(s),this.setReadyState(this.HEADERS_RECEIVED),n||''===n?this.responseURL=n:delete this.responseURL,o._interceptor&&o._interceptor.responseReceived(e,n||this._url||'',t,s||{}))}},{key:"__didReceiveData",value:function(e,t){e===this._requestId&&(this._response=t,this._cachedResponse=void 0,this.setReadyState(this.LOADING),o._interceptor&&o._interceptor.dataReceived(e,t))}},{key:"__didReceiveIncrementalData",value:function(e,t,s,n){e===this._requestId&&(this._response?this._response+=t:this._response=t,o._interceptor&&o._interceptor.dataReceived(e,t),this.setReadyState(this.LOADING),this.__didReceiveDataProgress(e,s,n))}},{key:"__didReceiveDataProgress",value:function(e,t,s){e===this._requestId&&this.dispatchEvent({type:'progress',lengthComputable:s>=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,s){e===this._requestId&&(t&&(''!==this._responseType&&'text'!==this._responseType||(this._response=t),this._hasError=!0,s&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),t?o._interceptor&&o._interceptor.loadingFailed(e,t):o._interceptor&&o._interceptor.loadingFinished(e,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach((function(e){e&&e.remove()})),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders,s=new Map;for(var n of Object.keys(e)){var a=e[n],o=n.toLowerCase(),h=s.get(o);h?(h.headerValue+=', '+a,s.set(o,h)):s.set(o,{lowerHeaderName:o,upperHeaderName:n.toUpperCase(),headerValue:a})}return(0,t.default)(s.values()).sort((function(e,t){return e.upperHeaderNamet.upperHeaderName?1:0})).map((function(e){return e.lowerHeaderName+': '+e.headerValue})).join('\r\n')+'\r\n'}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"setPerformanceLogger",value:function(e){return this._performanceLogger=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==s&&!s)throw new Error('Synchronous http requests are not supported');if(!t)throw new Error('Cannot load an empty url');this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(e){var s=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var n=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(f.addListener('didSendNetworkData',(function(e){return s.__didUploadProgress.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didReceiveNetworkResponse',(function(e){return s.__didReceiveResponse.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didReceiveNetworkData',(function(e){return s.__didReceiveData.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didReceiveNetworkIncrementalData',(function(e){return s.__didReceiveIncrementalData.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didReceiveNetworkDataProgress',(function(e){return s.__didReceiveDataProgress.apply(s,(0,t.default)(e))}))),this._subscriptions.push(f.addListener('didCompleteNetworkResponse',(function(e){return s.__didCompleteResponse.apply(s,(0,t.default)(e))})));var a='text';'arraybuffer'===this._responseType&&(a='base64'),'blob'===this._responseType&&(a='blob');var o;o='unknown'!==s._trackingName?s._trackingName:s._url,s._perfKey='network_XMLHttpRequest_'+String(o),s._performanceLogger.startTimespan(s._perfKey),R(s._method,'XMLHttpRequest method needs to be defined (%s).',o),R(s._url,'XMLHttpRequest URL needs to be defined (%s).',o),f.sendRequest(s._method,s._trackingName,s._url,s._headers,e,a,n,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&f.abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce((function(e,s){return e[s.toLowerCase()]=t[s],e}),{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:'readystatechange'}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(e,t){'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(0,s.default)((0,h.default)(o.prototype),"addEventListener",this).call(this,e,t)}}],[{key:"setInterceptor",value:function(e){o._interceptor=e}}])})(v.apply(void 0,(0,t.default)(N)));w.UNSENT=0,w.OPENED=1,w.HEADERS_RECEIVED=2,w.LOADING=3,w.DONE=4,w._interceptor=null,m.exports=w}),152,[2,6,22,26,25,20,13,24,153,157,161,164,167,40]); +__d((function(g,_r,i,a,m,e,d){var t=_r(d[0]),l=t(_r(d[1])),r=t(_r(d[2])),o=t(_r(d[3])),n=t(_r(d[4])),u=_r(d[5]),f=_r(d[6]);var c=(function(){function t(){(0,l.default)(this,t)}return(0,r.default)(t,null,[{key:"createFromParts",value:function(l,r){(0,n.default)(o.default,'NativeBlobModule is available.');var f='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,(function(t){var l=16*Math.random()|0;return('x'==t?l:3&l|8).toString(16)})),c=l.map((function(t){if(t instanceof ArrayBuffer||g.ArrayBufferView&&t instanceof g.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof u?{data:t.data,type:'blob'}:{data:String(t),type:'string'}})),s=c.reduce((function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size}),0);return o.default.createFromParts(c,f),t.createFromOptions({blobId:f,offset:0,size:s,type:r?r.type:'',lastModified:r?r.lastModified:Date.now()})}},{key:"createFromOptions",value:function(t){return f.register(t.blobId),Object.assign(Object.create(u.prototype),{data:null==t.__collector?Object.assign({},t,{__collector:(l=t.blobId,null==g.__blobCollectorProvider?null:g.__blobCollectorProvider(l))}):t});var l}},{key:"release",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),f.unregister(t),f.has(t)||o.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.sendOverSocket(t.data,l)}}])})();c.isAvailable=!!o.default,m.exports=c}),153,[2,25,26,154,40,155,156]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,r&&r.set(t,o),o})(_r(d[0])).get('BlobModule'),n=null,r=null;null!=t&&(r={getConstants:function(){return null==n&&(n=t.getConstants()),n},addNetworkingHandler:function(){t.addNetworkingHandler()},addWebSocketHandler:function(e){t.addWebSocketHandler(e)},removeWebSocketHandler:function(e){t.removeWebSocketHandler(e)},sendOverSocket:function(e,n){t.sendOverSocket(e,n)},createFromParts:function(e,n){t.createFromParts(e,n)},release:function(e){t.release(e)}});_e.default=r}),154,[60]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),s=r(d[1]),n=(function(){return s((function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;t(this,s);var l=r(d[2]);this.data=l.createFromParts(n,o).data}),[{key:"data",get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data},set:function(t){this._data=t}},{key:"slice",value:function(t,s){var n=r(d[2]),o=this.data,l=o.offset,u=o.size;return'number'==typeof t&&(t>u&&(t=u),l+=t,u-=t,'number'==typeof s&&(s<0&&(s=this.size+s),s>this.size&&(s=this.size),u=s-t)),n.createFromOptions({blobId:this.data.blobId,offset:l,size:u,__collector:this.data.__collector})}},{key:"close",value:function(){r(d[2]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}])})();m.exports=n}),155,[25,26,153]); __d((function(g,r,i,a,m,e,d){var n={};m.exports={register:function(t){n[t]?n[t]++:n[t]=1},unregister:function(t){n[t]&&(n[t]--,n[t]<=0&&delete n[t])},has:function(t){return n[t]&&n[t]>0}}}),156,[]); __d((function(g,r,i,a,m,e,d){var l=r(d[0]),f=l(r(d[1])),n=l(r(d[2]));var o=(0,l(r(d[3])).default)(null!=n.default&&f.default.isGlobalWebPerformanceLoggerEnabled());m.exports=o}),157,[2,158,126,159]); __d((function(g,r,i,a,m,e,d){m.exports={isLayoutAnimationEnabled:function(){return!0},shouldEmitW3CPointerEvents:function(){return!1},shouldPressibilityUseW3CPointerEventsForHover:function(){return!1},animatedShouldDebounceQueueFlush:function(){return!1},animatedShouldUseSingleOp:function(){return!1},isGlobalWebPerformanceLoggerEnabled:function(){return!1},enableAccessToHostTreeInFabric:function(){return!1}}}),158,[]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(t){return new p(t)},_e.getCurrentTimestamp=void 0;var e,n=t(_r(d[1])),s=t(_r(d[2])),i=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var s={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&Object.prototype.hasOwnProperty.call(t,r)){var o=i?Object.getOwnPropertyDescriptor(t,r):null;o&&(o.get||o.set)?Object.defineProperty(s,r,o):s[r]=t[r]}return s.default=t,n&&n.set(t,s),s})(_r(d[3])),r=t(_r(d[4]));t(_r(d[5]));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var o={},u='global_perf_',l=new r.default,_=_e.getCurrentTimestamp=null!=(e=g.nativeQPLTimestamp)?e:g.performance.now.bind(g.performance),p=(function(){function t(e){(0,n.default)(this,t),this._timespans={},this._extras={},this._points={},this._pointExtras={},this._closed=!1,this._isLoggingForWebPerformance=!1,this._isLoggingForWebPerformance=!0===e}return(0,s.default)(t,[{key:"addTimespan",value:function(t,e,n,s,i){this._closed||this._timespans[t]||(this._timespans[t]={startTime:e,endTime:n,totalTime:n-(e||0),startExtras:s,endExtras:i},this._isLoggingForWebPerformance&&l.measure(`${u}_${t}`,{start:e,end:n}))}},{key:"append",value:function(t){this._timespans=Object.assign({},t.getTimespans(),this._timespans),this._extras=Object.assign({},t.getExtras(),this._extras),this._points=Object.assign({},t.getPoints(),this._points),this._pointExtras=Object.assign({},t.getPointExtras(),this._pointExtras)}},{key:"clear",value:function(){this._timespans={},this._extras={},this._points={}}},{key:"clearCompleted",value:function(){for(var t in this._timespans){var e;null!=(null==(e=this._timespans[t])?void 0:e.totalTime)&&delete this._timespans[t]}this._extras={},this._points={}}},{key:"close",value:function(){this._closed=!0}},{key:"currentTimestamp",value:function(){return _()}},{key:"getExtras",value:function(){return this._extras}},{key:"getPoints",value:function(){return this._points}},{key:"getPointExtras",value:function(){return this._pointExtras}},{key:"getTimespans",value:function(){return this._timespans}},{key:"hasTimespan",value:function(t){return!!this._timespans[t]}},{key:"isClosed",value:function(){return this._closed}},{key:"logEverything",value:function(){}},{key:"markPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_(),n=arguments.length>2?arguments[2]:void 0;this._closed||null==this._points[t]&&(this._points[t]=e,n&&(this._pointExtras[t]=n),this._isLoggingForWebPerformance&&l.mark(`${u}_${t}`,{startTime:e}))}},{key:"removeExtra",value:function(t){var e=this._extras[t];return delete this._extras[t],e}},{key:"setExtra",value:function(t,e){this._closed||this._extras.hasOwnProperty(t)||(this._extras[t]=e)}},{key:"startTimespan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:e,startExtras:n},o[t]=i.beginAsyncEvent(t),this._isLoggingForWebPerformance&&l.mark(`${u}_timespan_start_${t}`,{startTime:e}))}},{key:"stopTimespan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_(),n=arguments.length>2?arguments[2]:void 0;if(!this._closed){var s=this._timespans[t];s&&null!=s.startTime&&null==s.endTime&&(s.endExtras=n,s.endTime=e,s.totalTime=s.endTime-(s.startTime||0),null!=o[t]&&(i.endAsyncEvent(t,o[t]),delete o[t]),this._isLoggingForWebPerformance&&l.measure(`${u}_${t}`,{start:`${u}_timespan_start_${t}`,end:e}))}}}]),t})()}),159,[2,21,22,51,127,160]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(t){return new h(t)},_e.getCurrentTimestamp=void 0;var e,n=t(_r(d[1])),s=t(_r(d[2])),i=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var s={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&{}.hasOwnProperty.call(t,r)){var o=i?Object.getOwnPropertyDescriptor(t,r):null;o&&(o.get||o.set)?Object.defineProperty(s,r,o):s[r]=t[r]}return s.default=t,n&&n.set(t,s),s})(_r(d[3])),r=t(_r(d[4]));t(_r(d[5]));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var o={},u='global_perf_',l=new r.default,_=_e.getCurrentTimestamp=null!=(e=g.nativeQPLTimestamp)?e:g.performance.now.bind(g.performance),h=(function(){return(0,s.default)((function t(e){(0,n.default)(this,t),this._timespans={},this._extras={},this._points={},this._pointExtras={},this._closed=!1,this._isLoggingForWebPerformance=!1,this._isLoggingForWebPerformance=!0===e}),[{key:"addTimespan",value:function(t,e,n,s,i){this._closed||this._timespans[t]||(this._timespans[t]={startTime:e,endTime:n,totalTime:n-(e||0),startExtras:s,endExtras:i},this._isLoggingForWebPerformance&&l.measure(`${u}_${t}`,{start:e,end:n}))}},{key:"append",value:function(t){this._timespans=Object.assign({},t.getTimespans(),this._timespans),this._extras=Object.assign({},t.getExtras(),this._extras),this._points=Object.assign({},t.getPoints(),this._points),this._pointExtras=Object.assign({},t.getPointExtras(),this._pointExtras)}},{key:"clear",value:function(){this._timespans={},this._extras={},this._points={}}},{key:"clearCompleted",value:function(){for(var t in this._timespans){var e;null!=(null==(e=this._timespans[t])?void 0:e.totalTime)&&delete this._timespans[t]}this._extras={},this._points={}}},{key:"close",value:function(){this._closed=!0}},{key:"currentTimestamp",value:function(){return _()}},{key:"getExtras",value:function(){return this._extras}},{key:"getPoints",value:function(){return this._points}},{key:"getPointExtras",value:function(){return this._pointExtras}},{key:"getTimespans",value:function(){return this._timespans}},{key:"hasTimespan",value:function(t){return!!this._timespans[t]}},{key:"isClosed",value:function(){return this._closed}},{key:"logEverything",value:function(){}},{key:"markPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_(),n=arguments.length>2?arguments[2]:void 0;this._closed||null==this._points[t]&&(this._points[t]=e,n&&(this._pointExtras[t]=n),this._isLoggingForWebPerformance&&l.mark(`${u}_${t}`,{startTime:e}))}},{key:"removeExtra",value:function(t){var e=this._extras[t];return delete this._extras[t],e}},{key:"setExtra",value:function(t,e){this._closed||this._extras.hasOwnProperty(t)||(this._extras[t]=e)}},{key:"startTimespan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:e,startExtras:n},o[t]=i.beginAsyncEvent(t),this._isLoggingForWebPerformance&&l.mark(`${u}_timespan_start_${t}`,{startTime:e}))}},{key:"stopTimespan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_(),n=arguments.length>2?arguments[2]:void 0;if(!this._closed){var s=this._timespans[t];s&&null!=s.startTime&&null==s.endTime&&(s.endExtras=n,s.endTime=e,s.totalTime=s.endTime-(s.startTime||0),null!=o[t]&&(i.endAsyncEvent(t,o[t]),delete o[t]),this._isLoggingForWebPerformance&&l.measure(`${u}_${t}`,{start:`${u}_timespan_start_${t}`,end:e}))}}}])})()}),159,[2,25,26,51,127,160]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(){var n;return(n=console).log.apply(n,arguments)}}),160,[]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),s=t(r(d[3])),o={addListener:function(t,u,s){return n.default.addListener(t,u,s)},sendRequest:function(t,n,o,l,f,c,v,b,p,q){var R=(0,u.default)(f);s.default.sendRequest({method:t,url:o,data:Object.assign({},R,{trackingName:n}),headers:l,responseType:c,incrementalUpdates:v,timeout:b,withCredentials:q},p)},abortRequest:function(t){s.default.abortRequest(t)},clearCookies:function(t){s.default.clearCookies(t)}};e.default=o}),161,[2,43,162,166]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),f=r(d[2]);m.exports=function(s){return'string'==typeof s?{string:s}:s instanceof t?{blob:s.data}:s instanceof f?{formData:s.getParts()}:s instanceof ArrayBuffer||ArrayBuffer.isView(s)?{base64:n(s)}:s}}),162,[155,163,165]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),f instanceof Uint8Array)return t.fromByteArray(f);if(!ArrayBuffer.isView(f))throw new Error('data must be ArrayBuffer or typed array');var n=f,y=n.buffer,o=n.byteOffset,u=n.byteLength;return t.fromByteArray(new Uint8Array(y,o,u))}}),163,[164]); __d((function(g,r,_i,a,m,e,d){'use strict';e.byteLength=function(t){var n=c(t),o=n[0],h=n[1];return 3*(o+h)/4-h},e.toByteArray=function(t){var h,u,f=c(t),A=f[0],C=f[1],y=new o(i(t,A,C)),s=0,v=C>0?A-4:A;for(u=0;u>16&255,y[s++]=h>>8&255,y[s++]=255&h;2===C&&(h=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,y[s++]=255&h);1===C&&(h=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,y[s++]=h>>8&255,y[s++]=255&h);return y},e.fromByteArray=function(n){for(var o,h=n.length,u=h%3,c=[],i=16383,A=0,C=h-u;AC?C:A+i));1===u?(o=n[h-1],c.push(t[o>>2]+t[o<<4&63]+'==')):2===u&&(o=(n[h-2]<<8)+n[h-1],c.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+'='));return c.join('')};for(var t=[],n=[],o='undefined'!=typeof Uint8Array?Uint8Array:Array,h='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u=0;u<64;++u)t[u]=h[u],n[h.charCodeAt(u)]=u;function c(t){var n=t.length;if(n%4>0)throw new Error('Invalid string. Length must be a multiple of 4');var o=t.indexOf('=');return-1===o&&(o=n),[o,o===n?0:4-o%4]}function i(t,n,o){return 3*(n+o)/4-o}function f(n,o,h){for(var u,c,i=[],f=o;f>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]);return i.join('')}n['-'.charCodeAt(0)]=62,n['_'.charCodeAt(0)]=63}),164,[]); -__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=(function(){function o(){n(this,o),this._parts=[]}return s(o,[{key:"append",value:function(t,n){this._parts.push([t,n])}},{key:"getAll",value:function(n){return this._parts.filter((function(s){return t(s,1)[0]===n})).map((function(n){return t(n,2)[1]}))}},{key:"getParts",value:function(){return this._parts.map((function(n){var s=t(n,2),o=s[0],u=s[1],p={'content-disposition':'form-data; name="'+o+'"'};return'object'==typeof u&&!Array.isArray(u)&&u?('string'==typeof u.name&&(p['content-disposition']+='; filename="'+u.name+'"'),'string'==typeof u.type&&(p['content-type']=u.type),Object.assign({},u,{headers:p,fieldName:o})):{string:String(u),headers:p,fieldName:o}}))}}]),o})();m.exports=o}),165,[23,21,22]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('Networking')}),166,[60]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=(function(){return s((function t(){n(this,t),this._parts=[]}),[{key:"append",value:function(t,n){this._parts.push([t,n])}},{key:"getAll",value:function(n){return this._parts.filter((function(s){return t(s,1)[0]===n})).map((function(n){return t(n,2)[1]}))}},{key:"getParts",value:function(){return this._parts.map((function(n){var s=t(n,2),o=s[0],u=s[1],p={'content-disposition':'form-data; name="'+o+'"'};return'object'==typeof u&&!Array.isArray(u)&&u?('string'==typeof u.name&&(p['content-disposition']+='; filename="'+u.name+'"'),'string'==typeof u.type&&(p['content-type']=u.type),Object.assign({},u,{headers:p,fieldName:o})):{string:String(u),headers:p,fieldName:o}}))}}])})();m.exports=o}),165,[27,25,26]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('Networking')}),166,[60]); __d((function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=new WeakMap,n=new WeakMap;function o(n){var o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function i(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function l(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var i=Object.keys(o),l=0;l0){for(var t=new Array(arguments.length),n=0;n-1};function c(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||''===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function y(t){return'string'!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function b(t){if(t.bodyUsed)return Promise.reject(new TypeError('Already read'));t.bodyUsed=!0}function w(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function v(t){var e=new FileReader,o=w(e);return e.readAsArrayBuffer(t),o}function _(t){for(var e=new Uint8Array(t),o=new Array(e.length),n=0;n-1?n:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&i)throw new TypeError('Body not allowed for GET or HEAD requests');if(this._initBody(i),!('GET'!==this.method&&'HEAD'!==this.method||'no-store'!==e.cache&&'no-cache'!==e.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,'$1_='+(new Date).getTime()):this.url+=(/\?/.test(this.url)?'&':'?')+'_='+(new Date).getTime()}}function B(t){var e=new FormData;return t.trim().split('&').forEach((function(t){if(t){var o=t.split('='),n=o.shift().replace(/\+/g,' '),i=o.join('=').replace(/\+/g,' ');e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function O(t,e){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type='default',this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?'':''+e.statusText,this.headers=new l(e.headers),this.url=e.url||'',this._initBody(t)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},T.call(x.prototype),T.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},O.error=function(){var t=new O(null,{status:0,statusText:''});return t.type='error',t};var P=[301,302,303,307,308];O.redirect=function(t,e){if(-1===P.indexOf(e))throw new RangeError('Invalid status code');return new O(null,{status:e,headers:{location:t}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function D(o,n){return new Promise((function(s,u){var f=new x(o,n);if(f.signal&&f.signal.aborted)return u(new t.DOMException('Aborted','AbortError'));var c=new XMLHttpRequest;function p(){c.abort()}c.onload=function(){var t,e,o={status:c.status,statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||'',e=new l,t.replace(/\r?\n[\t ]+/g,' ').split('\r').map((function(t){return 0===t.indexOf('\n')?t.substr(1,t.length):t})).forEach((function(t){var o=t.split(':'),n=o.shift().trim();if(n){var i=o.join(':').trim();e.append(n,i)}})),e)};o.url='responseURL'in c?c.responseURL:o.headers.get('X-Request-URL');var n='response'in c?c.response:c.responseText;setTimeout((function(){s(new O(n,o))}),0)},c.onerror=function(){setTimeout((function(){u(new TypeError('Network request failed'))}),0)},c.ontimeout=function(){setTimeout((function(){u(new TypeError('Network request failed'))}),0)},c.onabort=function(){setTimeout((function(){u(new t.DOMException('Aborted','AbortError'))}),0)},c.open(f.method,(function(t){try{return''===t&&e.location.href?e.location.href:t}catch(e){return t}})(f.url),!0),'include'===f.credentials?c.withCredentials=!0:'omit'===f.credentials&&(c.withCredentials=!1),'responseType'in c&&(i?c.responseType='blob':h&&f.headers.get('Content-Type')&&-1!==f.headers.get('Content-Type').indexOf('application/octet-stream')&&(c.responseType='arraybuffer')),!n||'object'!=typeof n.headers||n.headers instanceof l?f.headers.forEach((function(t,e){c.setRequestHeader(e,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){c.setRequestHeader(t,y(n.headers[t]))})),f.signal&&(f.signal.addEventListener('abort',p),c.onreadystatechange=function(){4===c.readyState&&f.signal.removeEventListener('abort',p)}),c.send(void 0===f._bodyInit?null:f._bodyInit)}))}D.polyfill=!0,e.fetch||(e.fetch=D,e.Headers=l,e.Request=x,e.Response=O),t.Headers=l,t.Request=x,t.Response=O,t.fetch=D,Object.defineProperty(t,'__esModule',{value:!0})},'object'==typeof _e&&void 0!==m?e(_e):'function'==typeof define&&define.amd?define(['exports'],e):e(t.WHATWGFetch={})}),169,[]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),l=e(r(d[7])),f=e(r(d[8])),h=e(r(d[9])),y=e(r(d[10])),b=e(r(d[11])),p=e(r(d[12])),v=e(r(d[13])),_=e(r(d[14])),E=e(r(d[15])),k=e(r(d[16])),S=["headers"];function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var N=0,O=(function(e){(0,s.default)(C,e);var E,O,w=(E=C,O=I(),function(){var e,t=(0,c.default)(E);if(O){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function C(e,o,s){var u;(0,n.default)(this,C),(u=w.call(this)).CONNECTING=0,u.OPEN=1,u.CLOSING=2,u.CLOSED=3,u.readyState=0,u.url=e,'string'==typeof o&&(o=[o]);var c=s||{},l=c.headers,f=void 0===l?{}:l,y=(0,t.default)(c,S);return y&&'string'==typeof y.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),f.origin=y.origin,delete y.origin),Object.keys(y).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(y).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(o)||(o=null),u._eventEmitter=new h.default('ios'!==b.default.OS?null:p.default),u._socketId=N++,u._registerEvents(),p.default.connect(e,o,{headers:f},u._socketId),u}return(0,o.default)(C,[{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||((0,k.default)(f.default.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?f.default.addWebSocketHandler(this._socketId):f.default.removeWebSocketHandler(this._socketId)),this._binaryType=e}},{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof l.default)return(0,k.default)(f.default.isAvailable,'Native module BlobModule is required for blob support'),void f.default.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');p.default.sendBinary((0,y.default)(e),this._socketId)}else p.default.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');p.default.ping(this._socketId)}},{key:"_close",value:function(e,t){var n='number'==typeof e?e:1e3,o='string'==typeof t?t:'';p.default.close(n,o,this._socketId),f.default.isAvailable&&'blob'===this._binaryType&&f.default.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach((function(e){return e.remove()})),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',(function(t){if(t.id===e._socketId){var n=t.data;switch(t.type){case'binary':n=_.default.toByteArray(t.data).buffer;break;case'blob':n=f.default.createFromOptions(t.data)}e.dispatchEvent(new v.default('message',{data:n}))}})),this._eventEmitter.addListener('websocketOpen',(function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.protocol=t.protocol,e.dispatchEvent(new v.default('open')))})),this._eventEmitter.addListener('websocketClosed',(function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new v.default('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())})),this._eventEmitter.addListener('websocketFailed',(function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new v.default('error',{message:t.message})),e.dispatchEvent(new v.default('close',{code:1006,reason:t.message})),e._unregisterEvents(),e.close())}))]}}]),C})(E.default.apply(void 0,['close','error','message','open']));O.CONNECTING=0,O.OPEN=1,O.CLOSING=2,O.CLOSED=3,m.exports=O}),170,[2,4,21,22,17,19,16,155,153,171,163,63,172,173,164,167,40]); -__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),l=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5]));e.default=(function(){function t(l){(0,n.default)(this,t),'ios'===u.default.OS&&(0,s.default)(null!=l,'`new NativeEventEmitter()` requires a non-null argument.');var o=!!l&&'function'==typeof l.addListener,v=!!l&&'function'==typeof l.removeListeners;l&&o&&v?this._nativeModule=l:null!=l&&(o||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'),v||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'))}return(0,l.default)(t,[{key:"addListener",value:function(t,n,l){var u,s=this;null==(u=this._nativeModule)||u.addListener(t);var v=o.default.addListener(t,n,l);return{remove:function(){var t;null!=v&&(null==(t=s._nativeModule)||t.removeListeners(1),v.remove(),v=null)}}}},{key:"emit",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsText(t.data,o).then((function(t){e._aborted||(e._result=t,e._setReadyState(2))}),(function(t){e._aborted||(e._error=t,e._setReadyState(2))}))}},{key:"abort",value:function(){this._aborted=!0,0!==this._readyState&&2!==this._readyState&&(this._reset(),this._setReadyState(2)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}]),p})(h.apply(void 0,['abort','error','load','loadstart','loadend','progress']));y.EMPTY=0,y.LOADING=1,y.DONE=2,m.exports=y}),175,[2,21,22,17,19,16,176,164,167]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('FileReaderModule')}),176,[60]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=e.URL=void 0;var n,o=t(r(d[1])),s=t(r(d[2])),u=t(r(d[3])),h=null;if(u.default&&'string'==typeof u.default.getConstants().BLOB_URI_SCHEME){var f=u.default.getConstants();h=f.BLOB_URI_SCHEME+':','string'==typeof f.BLOB_URI_HOST&&(h+=`//${f.BLOB_URI_HOST}/`)}n=Symbol.iterator;var c=e.URLSearchParams=(function(){function t(n){var s=this;(0,o.default)(this,t),this._searchParams=[],'object'==typeof n&&Object.keys(n).forEach((function(t){return s.append(t,n[t])}))}return(0,s.default)(t,[{key:"append",value:function(t,n){this._searchParams.push([t,n])}},{key:"delete",value:function(t){throw new Error('URLSearchParams.delete is not implemented')}},{key:"get",value:function(t){throw new Error('URLSearchParams.get is not implemented')}},{key:"getAll",value:function(t){throw new Error('URLSearchParams.getAll is not implemented')}},{key:"has",value:function(t){throw new Error('URLSearchParams.has is not implemented')}},{key:"set",value:function(t,n){throw new Error('URLSearchParams.set is not implemented')}},{key:"sort",value:function(){throw new Error('URLSearchParams.sort is not implemented')}},{key:n,value:function(){return this._searchParams[Symbol.iterator]()}},{key:"toString",value:function(){if(0===this._searchParams.length)return'';var t=this._searchParams.length-1;return this._searchParams.reduce((function(n,o,s){return n+encodeURIComponent(o[0])+'='+encodeURIComponent(o[1])+(s===t?'':'&')}),'')}}]),t})();function l(t){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/.test(t)}e.URL=(function(){function t(n,s){(0,o.default)(this,t),this._searchParamsInstance=null;var u=null;if(!s||l(n))this._url=n,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof s){if(!l(u=s))throw new TypeError(`Invalid base URL: ${u}`)}else u=s.toString();u.endsWith('/')&&(u=u.slice(0,u.length-1)),n.startsWith('/')||(n=`/${n}`),u.endsWith(n)&&(n=''),this._url=`${u}${n}`}}return(0,s.default)(t,[{key:"hash",get:function(){throw new Error('URL.hash is not implemented')}},{key:"host",get:function(){throw new Error('URL.host is not implemented')}},{key:"hostname",get:function(){throw new Error('URL.hostname is not implemented')}},{key:"href",get:function(){return this.toString()}},{key:"origin",get:function(){throw new Error('URL.origin is not implemented')}},{key:"password",get:function(){throw new Error('URL.password is not implemented')}},{key:"pathname",get:function(){throw new Error('URL.pathname not implemented')}},{key:"port",get:function(){throw new Error('URL.port is not implemented')}},{key:"protocol",get:function(){throw new Error('URL.protocol is not implemented')}},{key:"search",get:function(){throw new Error('URL.search is not implemented')}},{key:"searchParams",get:function(){return null==this._searchParamsInstance&&(this._searchParamsInstance=new c),this._searchParamsInstance}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){if(null===this._searchParamsInstance)return this._url;var t=this._searchParamsInstance.toString(),n=this._url.indexOf('?')>-1?'&':'?';return this._url+n+t}},{key:"username",get:function(){throw new Error('URL.username is not implemented')}}],[{key:"createObjectURL",value:function(t){if(null===h)throw new Error('Cannot create URL for blob!');return`${h}${t.data.blobId}?offset=${t.data.offset}&size=${t.size}`}},{key:"revokeObjectURL",value:function(t){}}]),t})()}),177,[2,21,22,154]); -__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),o=r(d[2]),n=r(d[3]),l=r(d[4]);function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}Object.defineProperty(_e,'__esModule',{value:!0});var c=r(d[5]),f=(function(c){o(y,c);var f,p,s=(f=y,p=u(),function(){var t,e=l(f);if(p){var o=l(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return n(this,t)});function y(){throw t(this,y),s.call(this),new TypeError("AbortSignal cannot be constructed directly")}return e(y,[{key:"aborted",get:function(){var t=b.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}]),y})(c.EventTarget);c.defineEventAttribute(f.prototype,"abort");var b=new WeakMap;Object.defineProperties(f.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(f.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var p=(function(){function o(){var e;t(this,o),s.set(this,(e=Object.create(f.prototype),c.EventTarget.call(e),b.set(e,!1),e))}return e(o,[{key:"signal",get:function(){return y(this)}},{key:"abort",value:function(){var t;t=y(this),!1===b.get(t)&&(b.set(t,!0),t.dispatchEvent({type:"abort"}))}}]),o})(),s=new WeakMap;function y(t){var e=s.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(p.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(p.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),_e.AbortController=p,_e.AbortSignal=f,_e.default=p,m.exports=p,m.exports.AbortController=m.exports.default=p,m.exports.AbortSignal=f}),178,[21,22,17,19,16,167]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),o=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),l=e(r(d[7])),f=e(r(d[8])),h=e(r(d[9])),y=e(r(d[10])),b=e(r(d[11])),p=e(r(d[12])),v=e(r(d[13])),_=e(r(d[14])),E=e(r(d[15])),k=e(r(d[16])),S=["headers"];function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}var N=0,O=(function(e){function E(e,n,c){var l,f,y,v;(0,o.default)(this,E),f=this,y=E,y=(0,u.default)(y),(l=(0,s.default)(f,I()?Reflect.construct(y,v||[],(0,u.default)(f).constructor):y.apply(f,v))).CONNECTING=0,l.OPEN=1,l.CLOSING=2,l.CLOSED=3,l.readyState=0,l.url=e,'string'==typeof n&&(n=[n]);var _=c||{},k=_.headers,O=void 0===k?{}:k,w=(0,t.default)(_,S);return w&&'string'==typeof w.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),O.origin=w.origin,delete w.origin),Object.keys(w).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(w).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(n)||(n=null),l._eventEmitter=new h.default('ios'!==b.default.OS?null:p.default),l._socketId=N++,l._registerEvents(),p.default.connect(e,n,{headers:O},l._socketId),l}return(0,c.default)(E,e),(0,n.default)(E,[{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||((0,k.default)(f.default.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?f.default.addWebSocketHandler(this._socketId):f.default.removeWebSocketHandler(this._socketId)),this._binaryType=e}},{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof l.default)return(0,k.default)(f.default.isAvailable,'Native module BlobModule is required for blob support'),void f.default.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');p.default.sendBinary((0,y.default)(e),this._socketId)}else p.default.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');p.default.ping(this._socketId)}},{key:"_close",value:function(e,t){var o='number'==typeof e?e:1e3,n='string'==typeof t?t:'';p.default.close(o,n,this._socketId),f.default.isAvailable&&'blob'===this._binaryType&&f.default.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach((function(e){return e.remove()})),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',(function(t){if(t.id===e._socketId){var o=t.data;switch(t.type){case'binary':o=_.default.toByteArray(t.data).buffer;break;case'blob':o=f.default.createFromOptions(t.data)}e.dispatchEvent(new v.default('message',{data:o}))}})),this._eventEmitter.addListener('websocketOpen',(function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.protocol=t.protocol,e.dispatchEvent(new v.default('open')))})),this._eventEmitter.addListener('websocketClosed',(function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new v.default('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())})),this._eventEmitter.addListener('websocketFailed',(function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new v.default('error',{message:t.message})),e.dispatchEvent(new v.default('close',{code:1006,reason:t.message})),e._unregisterEvents(),e.close())}))]}}])})(E.default.apply(void 0,['close','error','message','open']));O.CONNECTING=0,O.OPEN=1,O.CLOSING=2,O.CLOSED=3,m.exports=O}),170,[2,3,25,26,20,13,24,155,153,171,163,63,172,173,164,167,40]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),l=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5]));e.default=(function(){return(0,l.default)((function t(l){(0,n.default)(this,t),'ios'===u.default.OS&&(0,s.default)(null!=l,'`new NativeEventEmitter()` requires a non-null argument.');var o=!!l&&'function'==typeof l.addListener,v=!!l&&'function'==typeof l.removeListeners;l&&o&&v?this._nativeModule=l:null!=l&&(o||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'),v||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'))}),[{key:"addListener",value:function(t,n,l){var u,s=this;null==(u=this._nativeModule)||u.addListener(t);var v=o.default.addListener(t,n,l);return{remove:function(){var t;null!=v&&(null==(t=s._nativeModule)||t.removeListeners(1),v.remove(),v=null)}}}},{key:"emit",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsText(t.data,o).then((function(t){e._aborted||(e._result=t,e._setReadyState(2))}),(function(t){e._aborted||(e._error=t,e._setReadyState(2))}))}},{key:"abort",value:function(){this._aborted=!0,0!==this._readyState&&2!==this._readyState&&(this._reset(),this._setReadyState(2)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}])})(h.apply(void 0,['abort','error','load','loadstart','loadend','progress']));_.EMPTY=0,_.LOADING=1,_.DONE=2,m.exports=_}),175,[2,25,26,20,13,24,176,164,167]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('FileReaderModule')}),176,[60]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=e.URL=void 0;var n=t(r(d[1])),o=t(r(d[2])),s=t(r(d[3])),u=null;if(s.default&&'string'==typeof s.default.getConstants().BLOB_URI_SCHEME){var h=s.default.getConstants();u=h.BLOB_URI_SCHEME+':','string'==typeof h.BLOB_URI_HOST&&(u+=`//${h.BLOB_URI_HOST}/`)}var f=e.URLSearchParams=(function(){return(0,o.default)((function t(o){var s=this;(0,n.default)(this,t),this._searchParams=[],'object'==typeof o&&Object.keys(o).forEach((function(t){return s.append(t,o[t])}))}),[{key:"append",value:function(t,n){this._searchParams.push([t,n])}},{key:"delete",value:function(t){throw new Error('URLSearchParams.delete is not implemented')}},{key:"get",value:function(t){throw new Error('URLSearchParams.get is not implemented')}},{key:"getAll",value:function(t){throw new Error('URLSearchParams.getAll is not implemented')}},{key:"has",value:function(t){throw new Error('URLSearchParams.has is not implemented')}},{key:"set",value:function(t,n){throw new Error('URLSearchParams.set is not implemented')}},{key:"sort",value:function(){throw new Error('URLSearchParams.sort is not implemented')}},{key:Symbol.iterator,value:function(){return this._searchParams[Symbol.iterator]()}},{key:"toString",value:function(){if(0===this._searchParams.length)return'';var t=this._searchParams.length-1;return this._searchParams.reduce((function(n,o,s){return n+encodeURIComponent(o[0])+'='+encodeURIComponent(o[1])+(s===t?'':'&')}),'')}}])})();function c(t){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/.test(t)}e.URL=(function(){return(0,o.default)((function t(o,s){(0,n.default)(this,t),this._searchParamsInstance=null;var u=null;if(!s||c(o))this._url=o,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof s){if(!c(u=s))throw new TypeError(`Invalid base URL: ${u}`)}else u=s.toString();u.endsWith('/')&&(u=u.slice(0,u.length-1)),o.startsWith('/')||(o=`/${o}`),u.endsWith(o)&&(o=''),this._url=`${u}${o}`}}),[{key:"hash",get:function(){throw new Error('URL.hash is not implemented')}},{key:"host",get:function(){throw new Error('URL.host is not implemented')}},{key:"hostname",get:function(){throw new Error('URL.hostname is not implemented')}},{key:"href",get:function(){return this.toString()}},{key:"origin",get:function(){throw new Error('URL.origin is not implemented')}},{key:"password",get:function(){throw new Error('URL.password is not implemented')}},{key:"pathname",get:function(){throw new Error('URL.pathname not implemented')}},{key:"port",get:function(){throw new Error('URL.port is not implemented')}},{key:"protocol",get:function(){throw new Error('URL.protocol is not implemented')}},{key:"search",get:function(){throw new Error('URL.search is not implemented')}},{key:"searchParams",get:function(){return null==this._searchParamsInstance&&(this._searchParamsInstance=new f),this._searchParamsInstance}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){if(null===this._searchParamsInstance)return this._url;var t=this._searchParamsInstance.toString(),n=this._url.indexOf('?')>-1?'&':'?';return this._url+n+t}},{key:"username",get:function(){throw new Error('URL.username is not implemented')}}],[{key:"createObjectURL",value:function(t){if(null===u)throw new Error('Cannot create URL for blob!');return`${u}${t.data.blobId}?offset=${t.data.offset}&size=${t.size}`}},{key:"revokeObjectURL",value:function(t){}}])})()}),177,[2,25,26,154]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),o=r(d[2]),n=r(d[3]),l=r(d[4]);function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}Object.defineProperty(_e,'__esModule',{value:!0});var c=r(d[5]),b=(function(c){function b(){var e,l,c;throw t(this,b),e=this,l=n(l=b),o(e,u()?Reflect.construct(l,c||[],n(e).constructor):l.apply(e,c)),new TypeError("AbortSignal cannot be constructed directly")}return l(b,c),e(b,[{key:"aborted",get:function(){var t=p.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}])})(c.EventTarget);c.defineEventAttribute(b.prototype,"abort");var p=new WeakMap;Object.defineProperties(b.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(b.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var f=(function(){return e((function e(){var o;t(this,e),y.set(this,(o=Object.create(b.prototype),c.EventTarget.call(o),p.set(o,!1),o))}),[{key:"signal",get:function(){return s(this)}},{key:"abort",value:function(){var t;t=s(this),!1===p.get(t)&&(p.set(t,!0),t.dispatchEvent({type:"abort"}))}}])})(),y=new WeakMap;function s(t){var e=y.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(f.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(f.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),_e.AbortController=f,_e.AbortSignal=b,_e.default=f,m.exports=f,m.exports.AbortController=m.exports.default=f,m.exports.AbortSignal=b}),178,[25,26,20,13,24,167]); __d((function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).alert('Alert',''+t)})}),179,[180]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),s=t(r(d[4])),l=t(r(d[5])),c=(function(){function t(){(0,n.default)(this,t)}return(0,o.default)(t,null,[{key:"alert",value:function(n,o,s,c){if(this.refocusID=l.default.currentlyFocusedInput(),'ios'===u.default.OS)t.prompt(n,o,s,'default',void 0,void 0,c);else if('android'===u.default.OS){var f=r(d[6]).default;if(!f)return;var v=f.getConstants(),p={title:n||'',message:o||'',cancelable:!1};c&&c.cancelable&&(p.cancelable=c.cancelable);var y=s?s.slice(0,3):[{text:"OK"}],b=y.pop(),h=y.pop(),P=y.pop();P&&(p.buttonNeutral=P.text||''),h&&(p.buttonNegative=h.text||''),b&&(p.buttonPositive=b.text||"OK");f.showAlert(p,(function(t){return console.warn(t)}),(function(t,n){t===v.buttonClicked?n===v.buttonNeutral?P.onPress&&P.onPress():n===v.buttonNegative?h.onPress&&h.onPress():n===v.buttonPositive&&b.onPress&&b.onPress():t===v.dismissed&&c&&c.onDismiss&&c.onDismiss()}))}}},{key:"prompt",value:function(t,n,o){var c=this,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',v=arguments.length>4?arguments[4]:void 0,p=arguments.length>5?arguments[5]:void 0,y=arguments.length>6?arguments[6]:void 0;if('ios'===u.default.OS){var b,h,P,x=[],I=[];'function'==typeof o?x=[o]:Array.isArray(o)&&o.forEach((function(t,n){if(x[n]=t.onPress,'cancel'===t.style?b=String(n):'destructive'===t.style&&(h=String(n)),t.isPreferred&&(P=String(n)),t.text||n<(o||[]).length-1){var u={};u[n]=t.text||'',I.push(u)}})),s.default.alertWithArgs({title:t||'',message:n||void 0,buttons:I,type:f||void 0,defaultValue:v,cancelButtonKey:b,destructiveButtonKey:h,preferredButtonKey:P,keyboardType:p,userInterfaceStyle:(null==y?void 0:y.userInterfaceStyle)||void 0},(function(t,n){var o=x[t];o&&o(n),null!==c.refocusID&&(l.default.focusTextInput(c.refocusID),c.refocusID=null)}))}}}]),t})();c.refocusID=null,m.exports=c}),180,[2,21,22,63,181,67,183]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),s=t(r(d[4])),l=t(r(d[5])),c=(function(){function t(){(0,n.default)(this,t)}return(0,o.default)(t,null,[{key:"alert",value:function(n,o,s,c){if(this.refocusID=l.default.currentlyFocusedInput(),'ios'===u.default.OS)t.prompt(n,o,s,'default',void 0,void 0,c);else if('android'===u.default.OS){var f=r(d[6]).default;if(!f)return;var v=f.getConstants(),p={title:n||'',message:o||'',cancelable:!1};c&&c.cancelable&&(p.cancelable=c.cancelable);var y=s?s.slice(0,3):[{text:"OK"}],b=y.pop(),h=y.pop(),P=y.pop();P&&(p.buttonNeutral=P.text||''),h&&(p.buttonNegative=h.text||''),b&&(p.buttonPositive=b.text||"OK");f.showAlert(p,(function(t){return console.warn(t)}),(function(t,n){t===v.buttonClicked?n===v.buttonNeutral?P.onPress&&P.onPress():n===v.buttonNegative?h.onPress&&h.onPress():n===v.buttonPositive&&b.onPress&&b.onPress():t===v.dismissed&&c&&c.onDismiss&&c.onDismiss()}))}}},{key:"prompt",value:function(t,n,o){var c=this,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',v=arguments.length>4?arguments[4]:void 0,p=arguments.length>5?arguments[5]:void 0,y=arguments.length>6?arguments[6]:void 0;if('ios'===u.default.OS){var b,h,P,x=[],I=[];'function'==typeof o?x=[o]:Array.isArray(o)&&o.forEach((function(t,n){if(x[n]=t.onPress,'cancel'===t.style?b=String(n):'destructive'===t.style&&(h=String(n)),t.isPreferred&&(P=String(n)),t.text||n<(o||[]).length-1){var u={};u[n]=t.text||'',I.push(u)}})),s.default.alertWithArgs({title:t||'',message:n||void 0,buttons:I,type:f||void 0,defaultValue:v,cancelButtonKey:b,destructiveButtonKey:h,preferredButtonKey:P,keyboardType:p,userInterfaceStyle:(null==y?void 0:y.userInterfaceStyle)||void 0},(function(t,n){var o=x[t];o&&o(n),null!==c.refocusID&&(l.default.focusTextInput(c.refocusID),c.refocusID=null)}))}}}])})();c.refocusID=null,m.exports=c}),180,[2,25,26,63,181,67,183]); __d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports={alertWithArgs:function(l,n){null!=t.default&&t.default.alertWithArgs(l,n)}}}),181,[2,182]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('AlertManager')}),182,[60]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('DialogManagerAndroid')}),183,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('AlertManager')}),182,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('DialogManagerAndroid')}),183,[60]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).polyfillObjectProperty,o=g.navigator;void 0===o?g.navigator={product:'ReactNative'}:t(o,'product',(function(){return'ReactNative'}))}),184,[138]); __d((function(g,r,i,a,m,e,d){'use strict';var n;if(!0===g.RN$Bridgeless&&g.RN$registerCallableModule)n=g.RN$registerCallableModule;else{var t=r(d[0]);n=function(n,u){return t.registerLazyCallableModule(n,u)}}n('Systrace',(function(){return r(d[1])})),!0!==g.RN$Bridgeless&&n('JSTimers',(function(){return r(d[2])})),n('HeapCapture',(function(){return r(d[3])})),n('SamplingProfiler',(function(){return r(d[4])})),n('RCTLog',(function(){return r(d[5])})),n('RCTDeviceEventEmitter',(function(){return r(d[6]).default})),n('RCTNativeAppEventEmitter',(function(){return r(d[7])})),n('GlobalPerformanceLogger',(function(){return r(d[8])})),n('HMRClient',(function(){return r(d[9])}))}),185,[49,51,147,186,188,190,43,191,157,192]); __d((function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t={captureHeap:function(t){var p=null;try{g.nativeCaptureHeap(t),console.log('HeapCapture.captureHeap succeeded: '+t)}catch(e){console.log('HeapCapture.captureHeap error: '+e.toString()),p=e.toString()}e.default&&e.default.captureComplete(t,p)}};m.exports=t}),186,[2,187]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('JSCHeapCapture')}),187,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('JSCHeapCapture')}),187,[60]); __d((function(g,r,i,a,m,_e,d){'use strict';var o={poke:function(o){var e=null,l=null;try{null===(l=g.pokeSamplingProfiler())?console.log('The JSC Sampling Profiler has started'):console.log('The JSC Sampling Profiler has stopped')}catch(o){console.log('Error occurred when restarting Sampling Profiler: '+o.toString()),e=o.toString()}var n=r(d[0]).default;n&&n.operationComplete(o,l,e)}};m.exports=o}),188,[189]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('JSCSamplingProfiler')}),189,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('JSCSamplingProfiler')}),189,[60]); __d((function(g,r,i,a,m,e,d){'use strict';var o=r(d[0]),n={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},l=null,t={logIfNoNativeHook:function(o){for(var n=arguments.length,f=new Array(n>1?n-1:0),c=1;c1?c-1:0),s=1;s=1,'Expected to find at least one React Native renderer on DevTools hook.'),n);m.exports=function(n,o,t,l){for(var f=!1,_=0;_0&&(f=l(n))}))}}}),221,[40,30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=O(!1),r=(0,t.default)(e,2),a=r[0],o=r[1];p((function(){if(h)return null==_||_.on('react-devtools',e),null!=_&&_.reactDevtoolsAgent&&e(_.reactDevtoolsAgent),function(){null==_||_.off('react-devtools',e);var n=v;null!=n&&(n.removeListener('drawTraceUpdates',t),n.removeListener('disableTraceUpdates',r),v=null)};function e(e){v=e,e.addListener('drawTraceUpdates',t),e.addListener('disableTraceUpdates',r)}function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(!1);var t=[];e.forEach((function(e){var r,a,o=e.node,l=e.color,u=null!=(r=null!=(a=o.publicInstance)?a:o.canonical)?r:o;if(u&&u.measure){var i=new Promise((function(e){u.measure&&u.measure((function(t,r,a,o,u,i){e({rect:{left:u,top:i,width:a,height:o},color:(0,n.default)(l)})}))}));t.push(i)}})),Promise.all(t).then((function(e){null!=i.current&&u.Commands.draw(i.current,JSON.stringify(e.filter((function(e){var t=e.rect;e.color;return t.width>=0&&t.height>=0}))))}),(function(e){console.error(`Failed to measure updated traces. Error: ${e}`)}))}function r(){o(!0)}}),[]);var i=y(null);return!a&&h&&(0,f.jsx)(l.default,{pointerEvents:"none",style:w.overlay,children:(0,f.jsx)(u.default,{ref:i,style:w.overlay})})};var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),a=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),u=s(_r(d[7])),i=s(_r(d[8])),f=_r(d[9]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}var v,p=i.useEffect,y=i.useRef,O=i.useState,_=window.__REACT_DEVTOOLS_GLOBAL_HOOK__,h='android'===o.default.OS&&r.default.hasViewManagerConfig('TraceUpdateOverlay');var w=a.default.create({overlay:{position:'absolute',top:0,bottom:0,left:0,right:0}})}),222,[2,23,93,73,213,63,207,223,30,211]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.Commands=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var f=o?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(a,u,f):a[u]=e[u]}a.default=e,r&&r.set(e,a)})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.Commands=(0,t.default)({supportedCommands:['draw']}),_e.default=(0,r.default)('TraceUpdateOverlay')}),223,[2,107,224,30]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('I18nManager')}),220,[60]); +__d((function(g,r,_i,a,m,e,d){var n,o=r(d[0]),t=(r(d[1]),window.__REACT_DEVTOOLS_GLOBAL_HOOK__),i=(n=Array.from(t.renderers.values()),o(n.length>=1,'Expected to find at least one React Native renderer on DevTools hook.'),n);m.exports=function(n,o,t,l){for(var f=!1,_=0;_0&&(f=l(n))}))}}}),221,[40,34]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=y(!1),r=(0,t.default)(e,2),a=r[0],o=r[1];p((function(){if(h)return null==O||O.on('react-devtools',e),null!=O&&O.reactDevtoolsAgent&&e(O.reactDevtoolsAgent),function(){null==O||O.off('react-devtools',e);var n=v;null!=n&&(n.removeListener('drawTraceUpdates',t),n.removeListener('disableTraceUpdates',r),v=null)};function e(e){v=e,e.addListener('drawTraceUpdates',t),e.addListener('disableTraceUpdates',r)}function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(!1);var t=[];e.forEach((function(e){var r,a,o=e.node,l=e.color,u=null!=(r=null!=(a=o.publicInstance)?a:o.canonical)?r:o;if(u&&u.measure){var i=new Promise((function(e){u.measure&&u.measure((function(t,r,a,o,u,i){e({rect:{left:u,top:i,width:a,height:o},color:(0,n.default)(l)})}))}));t.push(i)}})),Promise.all(t).then((function(e){null!=i.current&&u.Commands.draw(i.current,JSON.stringify(e.filter((function(e){var t=e.rect;e.color;return t.width>=0&&t.height>=0}))))}),(function(e){console.error(`Failed to measure updated traces. Error: ${e}`)}))}function r(){o(!0)}}),[]);var i=_(null);return!a&&h&&(0,f.jsx)(l.default,{pointerEvents:"none",style:w.overlay,children:(0,f.jsx)(u.default,{ref:i,style:w.overlay})})};var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),a=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),u=s(_r(d[7])),i=s(_r(d[8])),f=_r(d[9]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}var v,p=i.useEffect,_=i.useRef,y=i.useState,O=window.__REACT_DEVTOOLS_GLOBAL_HOOK__,h='android'===o.default.OS&&r.default.hasViewManagerConfig('TraceUpdateOverlay');var w=a.default.create({overlay:{position:'absolute',top:0,bottom:0,left:0,right:0}})}),222,[2,27,93,73,213,63,207,223,34,211]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.Commands=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var f=o?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(a,u,f):a[u]=e[u]}a.default=e,r&&r.set(e,a)})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.Commands=(0,t.default)({supportedCommands:['draw']}),_e.default=(0,r.default)('TraceUpdateOverlay')}),223,[2,107,224,34]); __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[1])),t=n(r(d[2]));e.default=function(n,p){if(!0===g.RN$Bridgeless){var l="Native Component '"+n+"' that calls codegenNativeComponent was not code generated at build time. Please check its definition.";console.error(l)}var f=p&&null!=p.paperComponentName?p.paperComponentName:n;if(null!=p&&null!=p.paperComponentNameDeprecated)if(t.default.hasViewManagerConfig(n))f=n;else{var u;if(null==p.paperComponentNameDeprecated||!t.default.hasViewManagerConfig(p.paperComponentNameDeprecated))throw new Error(`Failed to find native component for either ${n} or ${null!=(u=p.paperComponentNameDeprecated)?u:'(unknown)'}`);f=p.paperComponentNameDeprecated}return(0,o.default)(f)}}),224,[2,225,93]); __d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]),u=r(d[1]);e.default=function(n){return t(n,(function(){return u(n)}))}}),225,[226,70]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).ReactNativeViewConfigRegistry.register;m.exports=function(n,s){return t(n,s)}}),226,[48]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var r=t.get(e);r||((r=function(e){return e.children}).displayName=e,t.set(e,r));return r};!(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}o.default=t,n&&n.set(t,o)})(_r(d[0]));function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}var t=new Map}),227,[30]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var r=t.get(e);r||((r=function(e){return e.children}).displayName=e,t.set(e,r));return r};!(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var f=o?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=t[a]}u.default=t,n&&n.set(t,u)})(_r(d[0]));function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}var t=new Map}),227,[34]); __d((function(g,r,i,a,m,e,d){'use strict';function t(){}m.exports=r(d[0]);var n={exitApp:t,addEventListener:function(n,o){return{remove:t}},removeEventListener:function(t,n){}};m.exports=n}),228,[229]); -__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]),t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),u=e(_r(d[4])),o=e(_r(d[5])),f=e(_r(d[6])),c=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var f=u?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(n,o,f):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[7])),i=_r(d[8]);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var p=(function(e){(0,n.default)(p,e);var f,c,l=(f=p,c=a(),function(){var e,t=(0,o.default)(f);if(c){var r=(0,o.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function p(){return(0,t.default)(this,p),l.apply(this,arguments)}return(0,r.default)(p,[{key:"render",value:function(){var e=_r(d[9]);return(0,i.jsx)(e,{style:[s.unimplementedView,this.props.style],children:this.props.children})}}]),p})(c.Component),s=f.default.create({unimplementedView:{}});m.exports=p}),229,[2,21,22,17,19,16,213,30,211,207]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]),t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),u=e(_r(d[4])),o=e(_r(d[5])),a=e(_r(d[6])),f=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=u?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[7])),l=_r(d[8]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}var p=(function(e){function a(){return(0,t.default)(this,a),e=this,r=a,o=arguments,r=(0,u.default)(r),(0,n.default)(e,i()?Reflect.construct(r,o||[],(0,u.default)(e).constructor):r.apply(e,o));var e,r,o}return(0,o.default)(a,e),(0,r.default)(a,[{key:"render",value:function(){var e=_r(d[9]);return(0,l.jsx)(e,{style:[s.unimplementedView,this.props.style],children:this.props.children})}}])})(f.Component),s=a.default.create({unimplementedView:{}});m.exports=p}),229,[2,25,26,20,13,24,213,34,211,207]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])}),230,[231]); __d((function(_g,_r,i,_a,_m,_e,_d){'use strict';function e(e,n){var t=e.length;e.push(n);e:for(;0>>1,r=e[l];if(!(0>>1;lu(c,t))fu(s,c)?(e[l]=s,e[f]=t,l=f):(e[l]=c,e[o]=t,l=o);else{if(!(fu(s,t)))break e;e[l]=s,e[f]=t,l=f}}}return n}function u(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var l;if("object"==typeof performance&&"function"==typeof performance.now){var r=performance;l=function(){return r.now()}}else{var a=Date,o=a.now();l=function(){return a.now()-o}}var c=[],f=[],s=1,d=null,v=3,b=!1,m=!1,p=!1,y="function"==typeof setTimeout?setTimeout:null,h="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function g(u){for(var l=n(f);null!==l;){if(null===l.callback)t(f);else{if(!(l.startTime<=u))break;t(f),l.sortIndex=l.expirationTime,e(c,l)}l=n(f)}}function R(e){if(p=!1,g(e),!m)if(null!==n(c))m=!0,I=k,P||(P=!0,S());else{var t=n(f);null!==t&&E(R,t.startTime-e)}}function k(e,u){m=!1,p&&(p=!1,h(x),x=-1),b=!0;var r=v;try{e:{for(g(u),d=n(c);null!==d&&(!(d.expirationTime>u)||e&&!T());){var a=d.callback;if("function"==typeof a){d.callback=null,v=d.priorityLevel;var o=a(d.expirationTime<=u);if(u=l(),"function"==typeof o){d.callback=o,g(u);var s=!0;break e}d===n(c)&&t(c),g(u)}else t(c);d=n(c)}if(null!==d)s=!0;else{var y=n(f);null!==y&&E(R,y.startTime-u),s=!1}}return s}finally{d=null,v=r,b=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,P=!1,I=null,x=-1,w=-1;function T(){return!(5>l()-w)}function C(){if(null!==I){var e=l();w=e;var n=!0;try{n=I(!0,e)}finally{n?S():(P=!1,I=null)}}else P=!1}if("function"==typeof _)S=function(){_(C)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,N=L.port2;L.port1.onmessage=C,S=function(){N.postMessage(null)}}else S=function(){y(C,0)};function E(e,n){x=y((function(){e(l())}),n)}var M="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_UserBlockingPriority:2,j="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_NormalPriority:3,q="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_LowPriority:4,B="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_ImmediatePriority:1,F="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_scheduleCallback:function(t,u,r){var a=l();switch("object"==typeof r&&null!==r?r="number"==typeof(r=r.delay)&&0a?(t.sortIndex=r,e(f,t),null===n(c)&&t===n(f)&&(p?(h(x),x=-1):p=!0,E(R,r-a))):(t.sortIndex=o,e(c,t),m||b||(m=!0,I=k,P||(P=!0,S()))),t},U="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_cancelCallback:function(e){e.callback=null},Y="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_getCurrentPriorityLevel:function(){return v},D="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_shouldYield:T,W="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_requestPaint:function(){},z="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_now:l;function A(){throw Error("Not implemented.")}_e.unstable_IdlePriority="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_IdlePriority:5,_e.unstable_ImmediatePriority=B,_e.unstable_LowPriority=q,_e.unstable_NormalPriority=j,_e.unstable_Profiling=null,_e.unstable_UserBlockingPriority=M,_e.unstable_cancelCallback=U,_e.unstable_continueExecution=A,_e.unstable_forceFrameRate=A,_e.unstable_getCurrentPriorityLevel=Y,_e.unstable_getFirstCallbackNode=A,_e.unstable_next=A,_e.unstable_now=z,_e.unstable_pauseExecution=A,_e.unstable_requestPaint=W,_e.unstable_runWithPriority=A,_e.unstable_scheduleCallback=F,_e.unstable_shouldYield=D,_e.unstable_wrapCallback=A}),231,[]); __d((function(g,r,i,a,m,e,d){'use strict';var t;t=r(d[0]),m.exports=t}),232,[233]); -__d((function(e,n,t,r,l,a,i){"use strict";n(i[0]);var u=n(i[1]),o=n(i[2]),s=n(i[3]);function c(e,n,t,r,l,a,i,u,o){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}}var f=!1,d=null,p=!1,h=null,g={onError:function(e){f=!0,d=e}};function m(e,n,t,r,l,a,i,u,o){f=!1,d=null,c.apply(g,arguments)}function v(e,n,t,r,l,a,i,u,o){if(m.apply(this,arguments),f){if(!f)throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");var s=d;f=!1,d=null,p||(p=!0,h=s)}}var b=Array.isArray,y=null,S=null,k=null;function w(e,n,t){var r=e.type||"unknown-event";e.currentTarget=k(t),v(r,n,void 0,e),e.currentTarget=null}function T(e){var n=e._dispatchListeners,t=e._dispatchInstances;if(b(n))throw Error("executeDirectDispatch(...): Invalid `event`.");return e.currentTarget=n?k(t):null,n=n?n(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,n}var x=Object.assign;function E(){return!0}function _(){return!1}function P(e,n,t,r){for(var l in this.dispatchConfig=e,this._targetInst=n,this.nativeEvent=t,this._dispatchInstances=this._dispatchListeners=null,e=this.constructor.Interface)e.hasOwnProperty(l)&&((n=e[l])?this[l]=n(t):"target"===l?this.target=r:this[l]=t[l]);return this.isDefaultPrevented=(null!=t.defaultPrevented?t.defaultPrevented:!1===t.returnValue)?E:_,this.isPropagationStopped=_,this}function R(e,n,t,r){if(this.eventPool.length){var l=this.eventPool.pop();return this.call(l,e,n,t,r),l}return new this(e,n,t,r)}function C(e){if(!(e instanceof this))throw Error("Trying to release an event instance into a pool of a different type.");e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function z(e){e.getPooled=R,e.eventPool=[],e.release=C}x(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=E)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=E)},persist:function(){this.isPersistent=E},isPersistent:_,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=_,this._dispatchInstances=this._dispatchListeners=null}}),P.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},P.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return x(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=x({},r.Interface,e),t.extend=r.extend,z(t),t},z(P);var N=P.extend({touchHistory:function(){return null}});function I(e){return"topTouchStart"===e}function L(e){return"topTouchMove"===e}var U=["topTouchStart"],M=["topTouchMove"],F=["topTouchCancel","topTouchEnd"],D=[],A={touchBank:D,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function Q(e){return e.timeStamp||e.timestamp}function j(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function H(e){var n=j(e),t=D[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=Q(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=Q(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=Q(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:Q(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:Q(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:Q(e)},D[n]=t),A.mostRecentTimeStamp=Q(e)}function B(e){var n=D[j(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=Q(e),A.mostRecentTimeStamp=Q(e))}function O(e){var n=D[j(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=Q(e),A.mostRecentTimeStamp=Q(e))}var W,V={instrument:function(e){W=e},recordTouchTrack:function(e,n){if(null!=W&&W(e,n),L(e))n.changedTouches.forEach(B);else if(I(e))n.changedTouches.forEach(H),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches&&(A.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(O),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!fe[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in fe[t]=n,t=n.eventTypes){var l=void 0,a=t[r],i=r;if(de.hasOwnProperty(i))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+i+"`.");de[i]=a;var u=a.phasedRegistrationNames;if(u){for(l in u)u.hasOwnProperty(l)&&ce(u[l],n);l=!0}else a.registrationName?(ce(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function ce(e,n){if(pe[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");pe[e]=n}var fe=[],de={},pe={};function he(e,n,t,r){var l=e.stateNode;if(null===l)return null;if(null===(e=y(l)))return null;if((e=e[n])&&"function"!=typeof e)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof e+"` type.");if(!(r&&l.canonical&&l.canonical._eventListeners))return e;var a=[];e&&a.push(e);var i="captured"===t,o=i?"rn:"+n.replace(/Capture$/,""):"rn:"+n;return l.canonical._eventListeners[o]&&0i||(a=i),Me(a,e,l)}}}),y=function(e){return Pe.get(e._nativeTag)||null},S=Re,k=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&(n=(e=e.canonical)._nativeTag),!n)throw Error("All native instances should have a tag.");return e},ie.injection.injectGlobalResponderHandler({onChange:function(e,n,t){null!==n?u.UIManager.setJSResponder(n.stateNode._nativeTag,t):u.UIManager.clearJSResponder()}});var Fe=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,De=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),Qe=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),He=Symbol.for("react.profiler"),Be=Symbol.for("react.provider"),Oe=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Ve=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),qe=Symbol.for("react.memo"),$e=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Xe=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Ge=Symbol.iterator;function Ke(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ge&&e[Ge]||e["@@iterator"])?e:null}function Je(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Qe:return"Fragment";case Ae:return"Portal";case He:return"Profiler";case je:return"StrictMode";case Ve:return"Suspense";case Ye:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Oe:return(e.displayName||"Context")+".Consumer";case Be:return(e._context.displayName||"Context")+".Provider";case We:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case qe:return null!==(n=e.displayName||null)?n:Je(e.type)||"Memo";case $e:n=e._payload,e=e._init;try{return Je(e(n))}catch(e){}}return null}function Ze(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Je(n);case 8:return n===je?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function en(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function nn(e){if(en(e)!==e)throw Error("Unable to find node on an unmounted component.")}function tn(e){var n=e.alternate;if(!n){if(null===(n=en(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return nn(l),e;if(a===r)return nn(l),n;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=l,r=a;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=a;break}if(u===r){i=!0,r=l,t=a;break}u=u.sibling}if(!i){for(u=a.child;u;){if(u===t){i=!0,t=a,r=l;break}if(u===r){i=!0,r=a,t=l;break}u=u.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}function rn(e){return null!==(e=tn(e))?ln(e):null}function ln(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=ln(e);if(null!==n)return n;e=e.sibling}return null}var an={},un=null,on=0,sn={unsafelyIgnoreFunctions:!0};function cn(e,n){return"object"!=typeof n||null===n||u.deepDiffer(e,n,sn)}function fn(e,n,t){if(b(n))for(var r=n.length;r--&&0>>=0)?32:31-(Nn(e)/In|0)|0},Nn=Math.log,In=Math.LN2;var Ln=64,Un=4194304;function Mn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=Mn(u):0!==(a&=i)&&(r=Mn(a))}else 0!==(i=t&~l)?r=Mn(i):0!==a&&(r=Mn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Hn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-zn(n)]=t}function Bn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0at||(e.current=lt[at],lt[at]=null,at--)}function ot(e,n){at++,lt[at]=e.current,e.current=n}var st={},ct=it(st),ft=it(!1),dt=st;function pt(e,n){var t=e.type.contextTypes;if(!t)return st;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function ht(e){return null!=(e=e.childContextTypes)}function gt(){ut(ft),ut(ct)}function mt(e,n,t){if(ct.current!==st)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ot(ct,n),ot(ft,t)}function vt(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error((Ze(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return x({},t,r)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||st,dt=ct.current,ot(ct,e),ot(ft,ft.current),!0}function yt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=vt(e,n,dt),r.__reactInternalMemoizedMergedChildContext=e,ut(ft),ut(ct),ot(ct,e)):ut(ft),ot(ft,t)}var St="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},kt=null,wt=!1,Tt=!1;function xt(){if(!Tt&&null!==kt){Tt=!0;var e=0,n=Wn;try{var t=kt;for(Wn=1;eg?(m=h,h=null):m=h.sibling;var v=d(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=d(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=f(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return n(l,e)})),s}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===Qe&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case De:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===Qe){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===$e&&gr(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=pr(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===Qe?((a=$i(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=qi(u.type,u.key,u.props,null,r.mode,o)).ref=pr(r,a,u),o.return=r,r=o)}return i(r);case Ae:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=Ki(u,r.mode,o)).return=r,r=a}return i(r);case $e:return e(r,a,(c=u._init)(u._payload),o)}if(b(u))return h(r,a,u,o);if(Ke(u))return g(r,a,u,o);hr(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=Gi(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var vr=mr(!0),br=mr(!1),yr={},Sr=it(yr),kr=it(yr),wr=it(yr);function Tr(e){if(e===yr)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function xr(e,n){ot(wr,n),ot(kr,e),ot(Sr,yr),ut(Sr),ot(Sr,{isInAParentText:!1})}function Er(){ut(Sr),ut(kr),ut(wr)}function _r(e){Tr(wr.current);var n=Tr(Sr.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(ot(kr,e),ot(Sr,t))}function Pr(e){kr.current===e&&(ut(Sr),ut(kr))}var Rr=it(0);function Cr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Yn()||Yn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var zr=[];function Nr(){for(var e=0;et?t:4,e(!0);var r=Lr.transition;Lr.transition={};try{e(!1),n()}finally{Wn=t,Lr.transition=r}}function bl(){return Vr().memoizedState}function yl(e,n,t){var r=pi(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},kl(e))wl(n,t);else if(null!==(t=Xt(e,n,t,r))){hi(t,e,r,di()),Tl(t,n,r)}}function Sl(e,n,t){var r=pi(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(kl(e))wl(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,St(u,i)){var o=n.interleaved;return null===o?(l.next=l,$t(n)):(l.next=o.next,o.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=Xt(e,n,l,r))&&(hi(t,e,r,l=di()),Tl(t,n,r))}}function kl(e){var n=e.alternate;return e===Mr||null!==n&&n===Mr}function wl(e,n){Qr=Ar=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Tl(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,On(e,t)}}var xl={readContext:Yt,useCallback:Hr,useContext:Hr,useEffect:Hr,useImperativeHandle:Hr,useInsertionEffect:Hr,useLayoutEffect:Hr,useMemo:Hr,useReducer:Hr,useRef:Hr,useState:Hr,useDebugValue:Hr,useDeferredValue:Hr,useTransition:Hr,useMutableSource:Hr,useSyncExternalStore:Hr,useId:Hr,unstable_isNewReconciler:!1},El={readContext:Yt,useCallback:function(e,n){return Wr().memoizedState=[e,void 0===n?null:n],e},useContext:Yt,useEffect:ul,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,al(4,4,fl.bind(null,n,e),t)},useLayoutEffect:function(e,n){return al(4,4,e,n)},useInsertionEffect:function(e,n){return al(4,2,e,n)},useMemo:function(e,n){var t=Wr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Wr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=yl.bind(null,Mr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Wr().memoizedState=e},useState:tl,useDebugValue:pl,useDeferredValue:function(e){return Wr().memoizedState=e},useTransition:function(){var e=tl(!1),n=e[0];return e=vl.bind(null,e[1]),Wr().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n){var t=Mr,r=Wr(),l=n();if(null===Ha)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");0!=(30&Ur)||Kr(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,ul(Zr.bind(null,t,a,e),[e]),t.flags|=2048,rl(9,Jr.bind(null,t,a,l,n),void 0,null),l},useId:function(){var e=Wr(),n=Ha.identifierPrefix;return n=":"+n+"r"+(jr++).toString(32)+":",e.memoizedState=n},unstable_isNewReconciler:!1},_l={readContext:Yt,useCallback:hl,useContext:Yt,useEffect:ol,useImperativeHandle:dl,useInsertionEffect:sl,useLayoutEffect:cl,useMemo:gl,useReducer:qr,useRef:ll,useState:function(){return qr(Yr)},useDebugValue:pl,useDeferredValue:function(e){return ml(Vr(),Fr.memoizedState,e)},useTransition:function(){return[qr(Yr)[0],Vr().memoizedState]},useMutableSource:Xr,useSyncExternalStore:Gr,useId:bl,unstable_isNewReconciler:!1},Pl={readContext:Yt,useCallback:hl,useContext:Yt,useEffect:ol,useImperativeHandle:dl,useInsertionEffect:sl,useLayoutEffect:cl,useMemo:gl,useReducer:$r,useRef:ll,useState:function(){return $r(Yr)},useDebugValue:pl,useDeferredValue:function(e){var n=Vr();return null===Fr?n.memoizedState=e:ml(n,Fr.memoizedState,e)},useTransition:function(){return[$r(Yr)[0],Vr().memoizedState]},useMutableSource:Xr,useSyncExternalStore:Gr,useId:bl,unstable_isNewReconciler:!1};function Rl(e,n){return{value:e,source:n,stack:Ft(n),digest:null}}function Cl(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}if("function"!=typeof u.ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function zl(e,n){try{!1!==u.ReactFiberErrorDialog.showErrorDialog({componentStack:null!==n.stack?n.stack:"",error:n.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}var Nl="function"==typeof WeakMap?WeakMap:Map;function Il(e,n,t){(t=er(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ti||(ti=!0,ri=r),zl(e,n)},t}function Ll(e,n,t){(t=er(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){zl(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){zl(e,n),"function"!=typeof r&&(null===li?li=new Set([this]):li.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function Ul(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Nl;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Di.bind(null,e,n,t),n.then(e,e))}var Ml=Fe.ReactCurrentOwner,Fl=!1;function Dl(e,n,t,r){n.child=null===e?br(n,null,t,r):vr(n,e.child,t,r)}function Al(e,n,t,r,l){t=t.render;var a=n.ref;return Vt(n,l),r=Or(e,n,t,r,a,l),null===e||Fl?(n.flags|=1,Dl(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ua(e,n,l))}function Ql(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Wi(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=qi(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,jl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Ut)(i,r)&&e.ref===n.ref)return ua(e,n,l)}return n.flags|=1,(e=Yi(a,r)).ref=n.ref,e.return=n,n.child=e}function jl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Ut(a,r)&&e.ref===n.ref){if(Fl=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,ua(e,n,l);0!=(131072&e.flags)&&(Fl=!0)}}return Ol(e,n,t,r,l)}function Hl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Va,Wa),Wa|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,ot(Va,Wa),Wa|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,ot(Va,Wa),Wa|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,ot(Va,Wa),Wa|=r;return Dl(e,n,l,t),n.child}function Bl(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512)}function Ol(e,n,t,r,l){var a=ht(t)?dt:ct.current;return a=pt(n,a),Vt(n,l),t=Or(e,n,t,r,a,l),null===e||Fl?(n.flags|=1,Dl(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ua(e,n,l))}function Wl(e,n,t,r,l){if(ht(t)){var a=!0;bt(n)}else a=!1;if(Vt(n,l),null===n.stateNode)ia(e,n),cr(n,t,r),dr(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Yt(s):s=pt(n,s=ht(t)?dt:ct.current);var c=t.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&fr(n,i,r,s),Kt=!1;var d=n.memoizedState;i.state=d,lr(n,r,i,l),o=n.memoizedState,u!==r||d!==o||ft.current||Kt?("function"==typeof c&&(ur(n,t,c,r),o=n.memoizedState),(u=Kt||sr(n,t,u,r,d,o,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,Zt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Dt(n.type,u),i.props=s,f=n.pendingProps,d=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Yt(o):o=pt(n,o=ht(t)?dt:ct.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==f||d!==o)&&fr(n,i,r,o),Kt=!1,d=n.memoizedState,i.state=d,lr(n,r,i,l);var h=n.memoizedState;u!==f||d!==h||ft.current||Kt?("function"==typeof p&&(ur(n,t,p,r),h=n.memoizedState),(s=Kt||sr(n,t,s,r,d,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return Vl(e,n,t,r,a,l)}function Vl(e,n,t,r,l,a){Bl(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&yt(n,t,!1),ua(e,n,a);r=n.stateNode,Ml.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=vr(n,e.child,null,a),n.child=vr(n,null,u,a)):Dl(e,n,u,a),n.memoizedState=r.state,l&&yt(n,t,!0),n.child}function Yl(e){var n=e.stateNode;n.pendingContext?mt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&mt(0,n.context,!1),xr(e,n.containerInfo)}var ql,$l,Xl,Gl,Kl={dehydrated:null,treeContext:null,retryLane:0};function Jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zl(e,n,t){var r,l=n.pendingProps,a=Rr.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ot(Rr,1&a),null===e)return null!==(e=n.memoizedState)&&null!==e.dehydrated?(0==(1&n.mode)?n.lanes=1:Yn()?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=Xi(u,l,0,null),e=$i(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=Jl(t),n.memoizedState=Kl,e):ea(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return ta(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=Yi(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Yi(r,i):(i=$i(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?Jl(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=Kl,l}return e=(i=e.child).sibling,l=Yi(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function ea(e,n){return(n=Xi({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function na(e,n,t,r){return null!==r&&(null===It?It=[r]:It.push(r)),vr(n,e.child,null,t),(e=ea(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function ta(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,na(e,n,i,a=Cl(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,t=n.mode,r=Xi({mode:"visible",children:r.children},t,0,null),(a=$i(a,t,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&vr(n,e.child,null,i),n.child.memoizedState=Jl(i),n.memoizedState=Kl,a);if(0==(1&n.mode))return na(e,n,i,null);if(Yn())return a=Yn().digest,na(e,n,i,a=Cl(Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),a,void 0));if(t=0!=(i&e.childLanes),Fl||t){if(null!==(r=Ha)){switch(i&-i){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(t=0!=(t&(r.suspendedLanes|i))?0:t)&&t!==a.retryLane&&(a.retryLane=t,Gt(e,t),hi(r,e,t,-1))}return _i(),na(e,n,i,a=Cl(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}return Yn()?(n.flags|=128,n.child=e.child,Qi.bind(null,e),Yn(),null):((e=ea(n,r.children)).flags|=4096,e)}function ra(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Wt(e.return,n,t)}function la(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function aa(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Dl(e,n,r.children,t),0!=(2&(r=Rr.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ra(e,t,n);else if(19===e.tag)ra(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(Rr,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Cr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),la(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Cr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}la(n,!0,t,null,a);break;case"together":la(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ia(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ua(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),$a|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Yi(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Yi(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function oa(e,n,t){switch(n.tag){case 3:Yl(n);break;case 5:_r(n);break;case 1:ht(n.type)&&bt(n);break;case 4:xr(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;ot(At,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(ot(Rr,1&Rr.current),n.flags|=128,null):0!=(t&n.child.childLanes)?Zl(e,n,t):(ot(Rr,1&Rr.current),null!==(e=ua(e,n,t))?e.sibling:null);ot(Rr,1&Rr.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return aa(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),ot(Rr,Rr.current),r)break;return null;case 22:case 23:return n.lanes=0,Hl(e,n,t)}return ua(e,n,t)}function sa(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ca(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function fa(e,n,t){var r=n.pendingProps;switch(Nt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ca(n),null;case 1:case 17:return ht(n.type)&>(),ca(n),null;case 3:return t=n.stateNode,Er(),ut(ft),ut(ct),Nr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==It&&(bi(It),It=null)),$l(e,n),ca(n),null;case 5:Pr(n),t=Tr(wr.current);var l=n.type;if(null!==e&&null!=n.stateNode)Xl(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ca(n),null}Tr(Sr.current),e=Gn(),l=qn(l);var a=gn(null,an,r,l.validAttributes);u.UIManager.createView(e,l.uiViewClassName,t,a),t=new vn(e,l,n),_e.set(e,n),Pe.set(e,r),ql(t,n,!1,!1),n.stateNode=t,Jn(t)&&(n.flags|=4),null!==n.ref&&(n.flags|=512)}return ca(n),null;case 6:if(e&&null!=n.stateNode)Gl(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Tr(wr.current),!Tr(Sr.current).isInAParentText)throw Error("Text strings must be rendered within a component.");t=Gn(),u.UIManager.createView(t,"RCTRawText",e,{text:r}),_e.set(t,n),n.stateNode=t}return ca(n),null;case 13:if(ut(Rr),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==r&&null!==r.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4,ca(n),l=!1}else null!==It&&(bi(It),It=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!==(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Rr.current)?0===Ya&&(Ya=3):_i())),null!==n.updateQueue&&(n.flags|=4),ca(n),null);case 4:return Er(),$l(e,n),ca(n),null;case 10:return Ot(n.type._context),ca(n),null;case 19:if(ut(Rr),null===(l=n.memoizedState))return ca(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering))if(r)sa(l,!1);else{if(0!==Ya||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=Cr(e))){for(n.flags|=128,sa(l,!1),null!==(e=a.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,l=a.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return ot(Rr,1&Rr.current|2),n.child}e=e.sibling}null!==l.tail&&wn()>ei&&(n.flags|=128,r=!0,sa(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Cr(a))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),sa(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate)return ca(n),null}else 2*wn()-l.renderingStartTime>ei&&1073741824!==t&&(n.flags|=128,r=!0,sa(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=wn(),n.sibling=null,e=Rr.current,ot(Rr,r?1&e|2:1&e),n):(ca(n),null);case 22:case 23:return wi(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&Wa)&&(ca(n),6&n.subtreeFlags&&(n.flags|=8192)):ca(n),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function da(e,n){switch(Nt(n),n.tag){case 1:return ht(n.type)&>(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Er(),ut(ft),ut(ct),Nr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Pr(n),null;case 13:if(ut(Rr),null!==(e=n.memoizedState)&&null!==e.dehydrated&&null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return ut(Rr),null;case 4:return Er(),null;case 10:return Ot(n.type._context),null;case 22:case 23:return wi(),null;default:return null}}ql=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e._children.push(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},$l=function(){},Xl=function(e,n,t,r){e.memoizedProps!==r&&(Tr(Sr.current),n.updateQueue=$n)&&(n.flags|=4)},Gl=function(e,n,t,r){t!==r&&(n.flags|=4)};var pa="function"==typeof WeakSet?WeakSet:Set,ha=null;function ga(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fi(e,n,t)}else t.current=null}function ma(e,n,t){try{t()}catch(t){Fi(e,n,t)}}var va=!1;function ba(e,n){for(ha=n;null!==ha;)if(n=(e=ha).child,0!=(1028&e.subtreeFlags)&&null!==n)n.return=e,ha=n;else for(;null!==ha;){e=ha;try{var t=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 3:case 5:case 6:case 4:case 17:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Dt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){Fi(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,ha=n;break}ha=e.return}return t=va,va=!1,t}function ya(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&ma(n,t,a)}l=l.next}while(l!==r)}}function Sa(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ka(e){var n=e.alternate;null!==n&&(e.alternate=null,ka(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wa(e){return 5===e.tag||3===e.tag||4===e.tag}function Ta(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||wa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function xa(e,n,t){var r=e.tag;if(5===r||6===r)if(e=e.stateNode,n){if("number"==typeof t)throw Error("Container does not support insertBefore operation")}else u.UIManager.setChildren(t,["number"==typeof e?e:e._nativeTag]);else if(4!==r&&null!==(e=e.child))for(xa(e,n,t),e=e.sibling;null!==e;)xa(e,n,t),e=e.sibling}function Ea(e,n,t){var r=e.tag;if(5===r||6===r)if(e=e.stateNode,n){var l=(r=t._children).indexOf(e);0<=l?(r.splice(l,1),n=r.indexOf(n),r.splice(n,0,e),u.UIManager.manageChildren(t._nativeTag,[l],[n],[],[],[])):(n=r.indexOf(n),r.splice(n,0,e),u.UIManager.manageChildren(t._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[n],[]))}else n="number"==typeof e?e:e._nativeTag,0<=(l=(r=t._children).indexOf(e))?(r.splice(l,1),r.push(e),u.UIManager.manageChildren(t._nativeTag,[l],[r.length-1],[],[],[])):(r.push(e),u.UIManager.manageChildren(t._nativeTag,[],[],[n],[r.length-1],[]));else if(4!==r&&null!==(e=e.child))for(Ea(e,n,t),e=e.sibling;null!==e;)Ea(e,n,t),e=e.sibling}var _a=null,Pa=!1;function Ra(e,n,t){for(t=t.child;null!==t;)Ca(e,n,t),t=t.sibling}function Ca(e,n,t){if(Rn&&"function"==typeof Rn.onCommitFiberUnmount)try{Rn.onCommitFiberUnmount(Pn,t)}catch(e){}switch(t.tag){case 5:ga(t,n);case 6:var r=_a,l=Pa;_a=null,Ra(e,n,t),Pa=l,null!==(_a=r)&&(Pa?(e=_a,Kn(t.stateNode),u.UIManager.manageChildren(e,[],[],[],[],[0])):(e=_a,Kn(n=t.stateNode),n=(t=e._children).indexOf(n),t.splice(n,1),u.UIManager.manageChildren(e._nativeTag,[],[],[],[],[n])));break;case 18:null!==_a&&Yn(t.stateNode);break;case 4:r=_a,l=Pa,_a=t.stateNode.containerInfo,Pa=!0,Ra(e,n,t),_a=r,Pa=l;break;case 0:case 11:case 14:case 15:if(null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ma(t,n,i),l=l.next}while(l!==r)}Ra(e,n,t);break;case 1:if(ga(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Fi(t,n,e)}Ra(e,n,t);break;default:Ra(e,n,t)}}function za(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new pa),n.forEach((function(n){var r=ji.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Na(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=wn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fa(r/1960))-r)){e.timeoutHandle=Zn(Ii.bind(null,e,Ja,ni),r);break}Ii(e,Ja,ni);break;default:throw Error("Unknown root exit status.")}}}return gi(e,wn()),e.callbackNode===t?mi.bind(null,e):null}function vi(e,n){var t=Ka;return e.current.memoizedState.isDehydrated&&(Ti(e,n).flags|=256),2!==(e=Pi(e,n))&&(n=Ja,Ja=t,null!==n&&bi(n)),e}function bi(e){null===Ja?Ja=e:Ja.push.apply(Ja,e)}function yi(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===ii)var r=!1;else{if(e=ii,ii=null,ui=0,0!=(6&ja))throw Error("Cannot flush passive effects while already rendering.");var l=ja;for(ja|=4,ha=e.current;null!==ha;){var a=ha,i=a.child;if(0!=(16&ha.flags)){var u=a.deletions;if(null!==u){for(var o=0;own()-Za?Ti(e,0):Ga|=t),gi(e,n)}function Ai(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Un,0==(130023424&(Un<<=1))&&(Un=4194304)));var t=di();null!==(e=Gt(e,n))&&(Hn(e,n,t),gi(e,t))}function Qi(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Ai(e,t)}function ji(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Ai(e,t)}function Hi(e,n){return bn(e,n)}function Bi(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oi(e,n,t,r){return new Bi(e,n,t,r)}function Wi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vi(e){if("function"==typeof e)return Wi(e)?1:0;if(null!=e){if((e=e.$$typeof)===We)return 11;if(e===qe)return 14}return 2}function Yi(e,n){var t=e.alternate;return null===t?((t=Oi(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function qi(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Wi(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Qe:return $i(t.children,l,a,n);case je:i=8,l|=8;break;case He:return(e=Oi(12,t,n,2|l)).elementType=He,e.lanes=a,e;case Ve:return(e=Oi(13,t,n,l)).elementType=Ve,e.lanes=a,e;case Ye:return(e=Oi(19,t,n,l)).elementType=Ye,e.lanes=a,e;case Xe:return Xi(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Be:i=10;break e;case Oe:i=9;break e;case We:i=11;break e;case qe:i=14;break e;case $e:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Oi(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function $i(e,n,t,r){return(e=Oi(7,e,r,n)).lanes=t,e}function Xi(e,n,t,r){return(e=Oi(22,e,r,n)).elementType=Xe,e.lanes=t,e.stateNode={isHidden:!1},e}function Gi(e,n,t){return(e=Oi(6,e,null,n)).lanes=t,e}function Ki(e,n,t){return(n=Oi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Ji(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jn(0),this.expirationTimes=jn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jn(0),this.identifierPrefix=r,this.onRecoverableError=l}function Zi(e,n,t){var r=3this.eventPool.length&&this.eventPool.push(e)}function z(e){e.getPooled=R,e.eventPool=[],e.release=C}x(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=E)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=E)},persist:function(){this.isPersistent=E},isPersistent:_,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=_,this._dispatchInstances=this._dispatchListeners=null}}),P.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},P.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return x(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=x({},r.Interface,e),t.extend=r.extend,z(t),t},z(P);var N=P.extend({touchHistory:function(){return null}});function I(e){return"topTouchStart"===e}function L(e){return"topTouchMove"===e}var U=["topTouchStart"],M=["topTouchMove"],F=["topTouchCancel","topTouchEnd"],D=[],A={touchBank:D,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function Q(e){return e.timeStamp||e.timestamp}function j(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function H(e){var n=j(e),t=D[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=Q(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=Q(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=Q(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:Q(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:Q(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:Q(e)},D[n]=t),A.mostRecentTimeStamp=Q(e)}function B(e){var n=D[j(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=Q(e),A.mostRecentTimeStamp=Q(e))}function O(e){var n=D[j(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=Q(e),A.mostRecentTimeStamp=Q(e))}var W,V={instrument:function(e){W=e},recordTouchTrack:function(e,n){if(null!=W&&W(e,n),L(e))n.changedTouches.forEach(B);else if(I(e))n.changedTouches.forEach(H),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches&&(A.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(O),A.numberActiveTouches=n.touches.length,1===A.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!fe[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in fe[t]=n,t=n.eventTypes){var l=void 0,a=t[r],i=r;if(de.hasOwnProperty(i))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+i+"`.");de[i]=a;var u=a.phasedRegistrationNames;if(u){for(l in u)u.hasOwnProperty(l)&&ce(u[l],n);l=!0}else a.registrationName?(ce(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function ce(e,n){if(pe[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");pe[e]=n}var fe=[],de={},pe={};function he(e,n,t,r){var l=e.stateNode;if(null===l)return null;if(null===(e=y(l)))return null;if((e=e[n])&&"function"!=typeof e)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof e+"` type.");if(!(r&&l.canonical&&l.canonical._eventListeners))return e;var a=[];e&&a.push(e);var i="captured"===t,o=i?"rn:"+n.replace(/Capture$/,""):"rn:"+n;return l.canonical._eventListeners[o]&&0i||(a=i),Me(a,e,l)}}}),y=function(e){return Pe.get(e._nativeTag)||null},S=Re,k=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&(n=(e=e.canonical)._nativeTag),!n)throw Error("All native instances should have a tag.");return e},ie.injection.injectGlobalResponderHandler({onChange:function(e,n,t){null!==n?u.UIManager.setJSResponder(n.stateNode._nativeTag,t):u.UIManager.clearJSResponder()}});var Fe=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,De=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),Qe=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),He=Symbol.for("react.profiler"),Be=Symbol.for("react.provider"),Oe=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Ve=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),qe=Symbol.for("react.memo"),$e=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Xe=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Ge=Symbol.iterator;function Ke(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ge&&e[Ge]||e["@@iterator"])?e:null}function Je(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Qe:return"Fragment";case Ae:return"Portal";case He:return"Profiler";case je:return"StrictMode";case Ve:return"Suspense";case Ye:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Oe:return(e.displayName||"Context")+".Consumer";case Be:return(e._context.displayName||"Context")+".Provider";case We:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case qe:return null!==(n=e.displayName||null)?n:Je(e.type)||"Memo";case $e:n=e._payload,e=e._init;try{return Je(e(n))}catch(e){}}return null}function Ze(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Je(n);case 8:return n===je?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function en(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function nn(e){if(en(e)!==e)throw Error("Unable to find node on an unmounted component.")}function tn(e){var n=e.alternate;if(!n){if(null===(n=en(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return nn(l),e;if(a===r)return nn(l),n;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=l,r=a;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=a;break}if(u===r){i=!0,r=l,t=a;break}u=u.sibling}if(!i){for(u=a.child;u;){if(u===t){i=!0,t=a,r=l;break}if(u===r){i=!0,r=a,t=l;break}u=u.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}function rn(e){return null!==(e=tn(e))?ln(e):null}function ln(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=ln(e);if(null!==n)return n;e=e.sibling}return null}var an={},un=null,on=0,sn={unsafelyIgnoreFunctions:!0};function cn(e,n){return"object"!=typeof n||null===n||u.deepDiffer(e,n,sn)}function fn(e,n,t){if(b(n))for(var r=n.length;r--&&0>>=0)?32:31-(Nn(e)/In|0)|0},Nn=Math.log,In=Math.LN2;var Ln=64,Un=4194304;function Mn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=Mn(u):0!==(a&=i)&&(r=Mn(a))}else 0!==(i=t&~l)?r=Mn(i):0!==a&&(r=Mn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Hn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-zn(n)]=t}function Bn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0at||(e.current=lt[at],lt[at]=null,at--)}function ot(e,n){at++,lt[at]=e.current,e.current=n}var st={},ct=it(st),ft=it(!1),dt=st;function pt(e,n){var t=e.type.contextTypes;if(!t)return st;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function ht(e){return null!=(e=e.childContextTypes)}function gt(){ut(ft),ut(ct)}function mt(e,n,t){if(ct.current!==st)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ot(ct,n),ot(ft,t)}function vt(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error((Ze(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return x({},t,r)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||st,dt=ct.current,ot(ct,e),ot(ft,ft.current),!0}function yt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=vt(e,n,dt),r.__reactInternalMemoizedMergedChildContext=e,ut(ft),ut(ct),ot(ct,e)):ut(ft),ot(ft,t)}var St="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},kt=null,wt=!1,Tt=!1;function xt(){if(!Tt&&null!==kt){Tt=!0;var e=0,n=Wn;try{var t=kt;for(Wn=1;eg?(m=h,h=null):m=h.sibling;var v=d(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=d(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=f(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return n(l,e)})),s}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===Qe&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case De:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===Qe){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===$e&&gr(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=pr(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===Qe?((a=$i(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=qi(u.type,u.key,u.props,null,r.mode,o)).ref=pr(r,a,u),o.return=r,r=o)}return i(r);case Ae:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=Ki(u,r.mode,o)).return=r,r=a}return i(r);case $e:return e(r,a,(c=u._init)(u._payload),o)}if(b(u))return h(r,a,u,o);if(Ke(u))return g(r,a,u,o);hr(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=Gi(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var vr=mr(!0),br=mr(!1),yr={},Sr=it(yr),kr=it(yr),wr=it(yr);function Tr(e){if(e===yr)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function xr(e,n){ot(wr,n),ot(kr,e),ot(Sr,yr),ut(Sr),ot(Sr,{isInAParentText:!1})}function Er(){ut(Sr),ut(kr),ut(wr)}function _r(e){Tr(wr.current);var n=Tr(Sr.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(ot(kr,e),ot(Sr,t))}function Pr(e){kr.current===e&&(ut(Sr),ut(kr))}var Rr=it(0);function Cr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Yn()||Yn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var zr=[];function Nr(){for(var e=0;et?t:4,e(!0);var r=Lr.transition;Lr.transition={};try{e(!1),n()}finally{Wn=t,Lr.transition=r}}function bl(){return Vr().memoizedState}function yl(e,n,t){var r=pi(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},kl(e))wl(n,t);else if(null!==(t=Xt(e,n,t,r))){hi(t,e,r,di()),Tl(t,n,r)}}function Sl(e,n,t){var r=pi(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(kl(e))wl(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,St(u,i)){var o=n.interleaved;return null===o?(l.next=l,$t(n)):(l.next=o.next,o.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=Xt(e,n,l,r))&&(hi(t,e,r,l=di()),Tl(t,n,r))}}function kl(e){var n=e.alternate;return e===Mr||null!==n&&n===Mr}function wl(e,n){Qr=Ar=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Tl(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,On(e,t)}}var xl={readContext:Yt,useCallback:Hr,useContext:Hr,useEffect:Hr,useImperativeHandle:Hr,useInsertionEffect:Hr,useLayoutEffect:Hr,useMemo:Hr,useReducer:Hr,useRef:Hr,useState:Hr,useDebugValue:Hr,useDeferredValue:Hr,useTransition:Hr,useMutableSource:Hr,useSyncExternalStore:Hr,useId:Hr,unstable_isNewReconciler:!1},El={readContext:Yt,useCallback:function(e,n){return Wr().memoizedState=[e,void 0===n?null:n],e},useContext:Yt,useEffect:ul,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,al(4,4,fl.bind(null,n,e),t)},useLayoutEffect:function(e,n){return al(4,4,e,n)},useInsertionEffect:function(e,n){return al(4,2,e,n)},useMemo:function(e,n){var t=Wr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Wr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=yl.bind(null,Mr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Wr().memoizedState=e},useState:tl,useDebugValue:pl,useDeferredValue:function(e){return Wr().memoizedState=e},useTransition:function(){var e=tl(!1),n=e[0];return e=vl.bind(null,e[1]),Wr().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n){var t=Mr,r=Wr(),l=n();if(null===Ha)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");0!=(30&Ur)||Kr(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,ul(Zr.bind(null,t,a,e),[e]),t.flags|=2048,rl(9,Jr.bind(null,t,a,l,n),void 0,null),l},useId:function(){var e=Wr(),n=Ha.identifierPrefix;return n=":"+n+"r"+(jr++).toString(32)+":",e.memoizedState=n},unstable_isNewReconciler:!1},_l={readContext:Yt,useCallback:hl,useContext:Yt,useEffect:ol,useImperativeHandle:dl,useInsertionEffect:sl,useLayoutEffect:cl,useMemo:gl,useReducer:qr,useRef:ll,useState:function(){return qr(Yr)},useDebugValue:pl,useDeferredValue:function(e){return ml(Vr(),Fr.memoizedState,e)},useTransition:function(){return[qr(Yr)[0],Vr().memoizedState]},useMutableSource:Xr,useSyncExternalStore:Gr,useId:bl,unstable_isNewReconciler:!1},Pl={readContext:Yt,useCallback:hl,useContext:Yt,useEffect:ol,useImperativeHandle:dl,useInsertionEffect:sl,useLayoutEffect:cl,useMemo:gl,useReducer:$r,useRef:ll,useState:function(){return $r(Yr)},useDebugValue:pl,useDeferredValue:function(e){var n=Vr();return null===Fr?n.memoizedState=e:ml(n,Fr.memoizedState,e)},useTransition:function(){return[$r(Yr)[0],Vr().memoizedState]},useMutableSource:Xr,useSyncExternalStore:Gr,useId:bl,unstable_isNewReconciler:!1};function Rl(e,n){return{value:e,source:n,stack:Ft(n),digest:null}}function Cl(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}if("function"!=typeof u.ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function zl(e,n){try{!1!==u.ReactFiberErrorDialog.showErrorDialog({componentStack:null!==n.stack?n.stack:"",error:n.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}var Nl="function"==typeof WeakMap?WeakMap:Map;function Il(e,n,t){(t=er(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ti||(ti=!0,ri=r),zl(e,n)},t}function Ll(e,n,t){(t=er(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){zl(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){zl(e,n),"function"!=typeof r&&(null===li?li=new Set([this]):li.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function Ul(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Nl;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Di.bind(null,e,n,t),n.then(e,e))}var Ml=Fe.ReactCurrentOwner,Fl=!1;function Dl(e,n,t,r){n.child=null===e?br(n,null,t,r):vr(n,e.child,t,r)}function Al(e,n,t,r,l){t=t.render;var a=n.ref;return Vt(n,l),r=Or(e,n,t,r,a,l),null===e||Fl?(n.flags|=1,Dl(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ua(e,n,l))}function Ql(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Wi(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=qi(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,jl(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Ut)(i,r)&&e.ref===n.ref)return ua(e,n,l)}return n.flags|=1,(e=Yi(a,r)).ref=n.ref,e.return=n,n.child=e}function jl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Ut(a,r)&&e.ref===n.ref){if(Fl=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,ua(e,n,l);0!=(131072&e.flags)&&(Fl=!0)}}return Ol(e,n,t,r,l)}function Hl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Va,Wa),Wa|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,ot(Va,Wa),Wa|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,ot(Va,Wa),Wa|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,ot(Va,Wa),Wa|=r;return Dl(e,n,l,t),n.child}function Bl(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512)}function Ol(e,n,t,r,l){var a=ht(t)?dt:ct.current;return a=pt(n,a),Vt(n,l),t=Or(e,n,t,r,a,l),null===e||Fl?(n.flags|=1,Dl(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ua(e,n,l))}function Wl(e,n,t,r,l){if(ht(t)){var a=!0;bt(n)}else a=!1;if(Vt(n,l),null===n.stateNode)ia(e,n),cr(n,t,r),dr(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Yt(s):s=pt(n,s=ht(t)?dt:ct.current);var c=t.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&fr(n,i,r,s),Kt=!1;var d=n.memoizedState;i.state=d,lr(n,r,i,l),o=n.memoizedState,u!==r||d!==o||ft.current||Kt?("function"==typeof c&&(ur(n,t,c,r),o=n.memoizedState),(u=Kt||sr(n,t,u,r,d,o,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,Zt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Dt(n.type,u),i.props=s,f=n.pendingProps,d=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Yt(o):o=pt(n,o=ht(t)?dt:ct.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==f||d!==o)&&fr(n,i,r,o),Kt=!1,d=n.memoizedState,i.state=d,lr(n,r,i,l);var h=n.memoizedState;u!==f||d!==h||ft.current||Kt?("function"==typeof p&&(ur(n,t,p,r),h=n.memoizedState),(s=Kt||sr(n,t,s,r,d,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return Vl(e,n,t,r,a,l)}function Vl(e,n,t,r,l,a){Bl(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&yt(n,t,!1),ua(e,n,a);r=n.stateNode,Ml.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=vr(n,e.child,null,a),n.child=vr(n,null,u,a)):Dl(e,n,u,a),n.memoizedState=r.state,l&&yt(n,t,!0),n.child}function Yl(e){var n=e.stateNode;n.pendingContext?mt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&mt(0,n.context,!1),xr(e,n.containerInfo)}var ql,$l,Xl,Gl,Kl={dehydrated:null,treeContext:null,retryLane:0};function Jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zl(e,n,t){var r,l=n.pendingProps,a=Rr.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ot(Rr,1&a),null===e)return null!==(e=n.memoizedState)&&null!==e.dehydrated?(0==(1&n.mode)?n.lanes=1:Yn()?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=Xi(u,l,0,null),e=$i(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=Jl(t),n.memoizedState=Kl,e):ea(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return ta(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=Yi(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Yi(r,i):(i=$i(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?Jl(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=Kl,l}return e=(i=e.child).sibling,l=Yi(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function ea(e,n){return(n=Xi({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function na(e,n,t,r){return null!==r&&(null===It?It=[r]:It.push(r)),vr(n,e.child,null,t),(e=ea(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function ta(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,na(e,n,i,a=Cl(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,t=n.mode,r=Xi({mode:"visible",children:r.children},t,0,null),(a=$i(a,t,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&vr(n,e.child,null,i),n.child.memoizedState=Jl(i),n.memoizedState=Kl,a);if(0==(1&n.mode))return na(e,n,i,null);if(Yn())return a=Yn().digest,na(e,n,i,a=Cl(Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),a,void 0));if(t=0!=(i&e.childLanes),Fl||t){if(null!==(r=Ha)){switch(i&-i){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(t=0!=(t&(r.suspendedLanes|i))?0:t)&&t!==a.retryLane&&(a.retryLane=t,Gt(e,t),hi(r,e,t,-1))}return _i(),na(e,n,i,a=Cl(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}return Yn()?(n.flags|=128,n.child=e.child,Qi.bind(null,e),Yn(),null):((e=ea(n,r.children)).flags|=4096,e)}function ra(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Wt(e.return,n,t)}function la(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function aa(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Dl(e,n,r.children,t),0!=(2&(r=Rr.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ra(e,t,n);else if(19===e.tag)ra(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(Rr,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Cr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),la(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Cr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}la(n,!0,t,null,a);break;case"together":la(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ia(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ua(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),$a|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Yi(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Yi(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function oa(e,n,t){switch(n.tag){case 3:Yl(n);break;case 5:_r(n);break;case 1:ht(n.type)&&bt(n);break;case 4:xr(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;ot(At,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(ot(Rr,1&Rr.current),n.flags|=128,null):0!=(t&n.child.childLanes)?Zl(e,n,t):(ot(Rr,1&Rr.current),null!==(e=ua(e,n,t))?e.sibling:null);ot(Rr,1&Rr.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return aa(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),ot(Rr,Rr.current),r)break;return null;case 22:case 23:return n.lanes=0,Hl(e,n,t)}return ua(e,n,t)}function sa(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ca(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function fa(e,n,t){var r=n.pendingProps;switch(Nt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ca(n),null;case 1:case 17:return ht(n.type)&>(),ca(n),null;case 3:return t=n.stateNode,Er(),ut(ft),ut(ct),Nr(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==It&&(bi(It),It=null)),$l(e,n),ca(n),null;case 5:Pr(n),t=Tr(wr.current);var l=n.type;if(null!==e&&null!=n.stateNode)Xl(e,n,l,r,t),e.ref!==n.ref&&(n.flags|=512);else{if(!r){if(null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ca(n),null}Tr(Sr.current),e=Gn(),l=qn(l);var a=gn(null,an,r,l.validAttributes);u.UIManager.createView(e,l.uiViewClassName,t,a),t=new vn(e,l,n),_e.set(e,n),Pe.set(e,r),ql(t,n,!1,!1),n.stateNode=t,Jn(t)&&(n.flags|=4),null!==n.ref&&(n.flags|=512)}return ca(n),null;case 6:if(e&&null!=n.stateNode)Gl(e,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Tr(wr.current),!Tr(Sr.current).isInAParentText)throw Error("Text strings must be rendered within a component.");t=Gn(),u.UIManager.createView(t,"RCTRawText",e,{text:r}),_e.set(t,n),n.stateNode=t}return ca(n),null;case 13:if(ut(Rr),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==r&&null!==r.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4,ca(n),l=!1}else null!==It&&(bi(It),It=null),l=!0;if(!l)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,n):((t=null!==r)!==(null!==e&&null!==e.memoizedState)&&t&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&Rr.current)?0===Ya&&(Ya=3):_i())),null!==n.updateQueue&&(n.flags|=4),ca(n),null);case 4:return Er(),$l(e,n),ca(n),null;case 10:return Ot(n.type._context),ca(n),null;case 19:if(ut(Rr),null===(l=n.memoizedState))return ca(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering))if(r)sa(l,!1);else{if(0!==Ya||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=Cr(e))){for(n.flags|=128,sa(l,!1),null!==(e=a.updateQueue)&&(n.updateQueue=e,n.flags|=4),n.subtreeFlags=0,e=t,t=n.child;null!==t;)l=e,(r=t).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,l=a.dependencies,r.dependencies=null===l?null:{lanes:l.lanes,firstContext:l.firstContext}),t=t.sibling;return ot(Rr,1&Rr.current|2),n.child}e=e.sibling}null!==l.tail&&wn()>ei&&(n.flags|=128,r=!0,sa(l,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Cr(a))){if(n.flags|=128,r=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),sa(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate)return ca(n),null}else 2*wn()-l.renderingStartTime>ei&&1073741824!==t&&(n.flags|=128,r=!0,sa(l,!1),n.lanes=4194304);l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=wn(),n.sibling=null,e=Rr.current,ot(Rr,r?1&e|2:1&e),n):(ca(n),null);case 22:case 23:return wi(),t=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==t&&(n.flags|=8192),t&&0!=(1&n.mode)?0!=(1073741824&Wa)&&(ca(n),6&n.subtreeFlags&&(n.flags|=8192)):ca(n),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function da(e,n){switch(Nt(n),n.tag){case 1:return ht(n.type)&>(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Er(),ut(ft),ut(ct),Nr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Pr(n),null;case 13:if(ut(Rr),null!==(e=n.memoizedState)&&null!==e.dehydrated&&null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return ut(Rr),null;case 4:return Er(),null;case 10:return Ot(n.type._context),null;case 22:case 23:return wi(),null;default:return null}}ql=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e._children.push(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},$l=function(){},Xl=function(e,n,t,r){e.memoizedProps!==r&&(Tr(Sr.current),n.updateQueue=$n)&&(n.flags|=4)},Gl=function(e,n,t,r){t!==r&&(n.flags|=4)};var pa="function"==typeof WeakSet?WeakSet:Set,ha=null;function ga(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fi(e,n,t)}else t.current=null}function ma(e,n,t){try{t()}catch(t){Fi(e,n,t)}}var va=!1;function ba(e,n){for(ha=n;null!==ha;)if(n=(e=ha).child,0!=(1028&e.subtreeFlags)&&null!==n)n.return=e,ha=n;else for(;null!==ha;){e=ha;try{var t=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 3:case 5:case 6:case 4:case 17:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Dt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){Fi(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,ha=n;break}ha=e.return}return t=va,va=!1,t}function ya(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&ma(n,t,a)}l=l.next}while(l!==r)}}function Sa(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ka(e){var n=e.alternate;null!==n&&(e.alternate=null,ka(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wa(e){return 5===e.tag||3===e.tag||4===e.tag}function Ta(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||wa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function xa(e,n,t){var r=e.tag;if(5===r||6===r)if(e=e.stateNode,n){if("number"==typeof t)throw Error("Container does not support insertBefore operation")}else u.UIManager.setChildren(t,["number"==typeof e?e:e._nativeTag]);else if(4!==r&&null!==(e=e.child))for(xa(e,n,t),e=e.sibling;null!==e;)xa(e,n,t),e=e.sibling}function Ea(e,n,t){var r=e.tag;if(5===r||6===r)if(e=e.stateNode,n){var l=(r=t._children).indexOf(e);0<=l?(r.splice(l,1),n=r.indexOf(n),r.splice(n,0,e),u.UIManager.manageChildren(t._nativeTag,[l],[n],[],[],[])):(n=r.indexOf(n),r.splice(n,0,e),u.UIManager.manageChildren(t._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[n],[]))}else n="number"==typeof e?e:e._nativeTag,0<=(l=(r=t._children).indexOf(e))?(r.splice(l,1),r.push(e),u.UIManager.manageChildren(t._nativeTag,[l],[r.length-1],[],[],[])):(r.push(e),u.UIManager.manageChildren(t._nativeTag,[],[],[n],[r.length-1],[]));else if(4!==r&&null!==(e=e.child))for(Ea(e,n,t),e=e.sibling;null!==e;)Ea(e,n,t),e=e.sibling}var _a=null,Pa=!1;function Ra(e,n,t){for(t=t.child;null!==t;)Ca(e,n,t),t=t.sibling}function Ca(e,n,t){if(Rn&&"function"==typeof Rn.onCommitFiberUnmount)try{Rn.onCommitFiberUnmount(Pn,t)}catch(e){}switch(t.tag){case 5:ga(t,n);case 6:var r=_a,l=Pa;_a=null,Ra(e,n,t),Pa=l,null!==(_a=r)&&(Pa?(e=_a,Kn(t.stateNode),u.UIManager.manageChildren(e,[],[],[],[],[0])):(e=_a,Kn(n=t.stateNode),n=(t=e._children).indexOf(n),t.splice(n,1),u.UIManager.manageChildren(e._nativeTag,[],[],[],[],[n])));break;case 18:null!==_a&&Yn(t.stateNode);break;case 4:r=_a,l=Pa,_a=t.stateNode.containerInfo,Pa=!0,Ra(e,n,t),_a=r,Pa=l;break;case 0:case 11:case 14:case 15:if(null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ma(t,n,i),l=l.next}while(l!==r)}Ra(e,n,t);break;case 1:if(ga(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Fi(t,n,e)}Ra(e,n,t);break;default:Ra(e,n,t)}}function za(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new pa),n.forEach((function(n){var r=ji.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Na(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=wn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fa(r/1960))-r)){e.timeoutHandle=Zn(Ii.bind(null,e,Ja,ni),r);break}Ii(e,Ja,ni);break;default:throw Error("Unknown root exit status.")}}}return gi(e,wn()),e.callbackNode===t?mi.bind(null,e):null}function vi(e,n){var t=Ka;return e.current.memoizedState.isDehydrated&&(Ti(e,n).flags|=256),2!==(e=Pi(e,n))&&(n=Ja,Ja=t,null!==n&&bi(n)),e}function bi(e){null===Ja?Ja=e:Ja.push.apply(Ja,e)}function yi(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===ii)var r=!1;else{if(e=ii,ii=null,ui=0,0!=(6&ja))throw Error("Cannot flush passive effects while already rendering.");var l=ja;for(ja|=4,ha=e.current;null!==ha;){var a=ha,i=a.child;if(0!=(16&ha.flags)){var u=a.deletions;if(null!==u){for(var o=0;own()-Za?Ti(e,0):Ga|=t),gi(e,n)}function Ai(e,n){0===n&&(0==(1&e.mode)?n=1:(n=Un,0==(130023424&(Un<<=1))&&(Un=4194304)));var t=di();null!==(e=Gt(e,n))&&(Hn(e,n,t),gi(e,t))}function Qi(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Ai(e,t)}function ji(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Ai(e,t)}function Hi(e,n){return bn(e,n)}function Bi(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oi(e,n,t,r){return new Bi(e,n,t,r)}function Wi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vi(e){if("function"==typeof e)return Wi(e)?1:0;if(null!=e){if((e=e.$$typeof)===We)return 11;if(e===qe)return 14}return 2}function Yi(e,n){var t=e.alternate;return null===t?((t=Oi(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function qi(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Wi(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Qe:return $i(t.children,l,a,n);case je:i=8,l|=8;break;case He:return(e=Oi(12,t,n,2|l)).elementType=He,e.lanes=a,e;case Ve:return(e=Oi(13,t,n,l)).elementType=Ve,e.lanes=a,e;case Ye:return(e=Oi(19,t,n,l)).elementType=Ye,e.lanes=a,e;case Xe:return Xi(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Be:i=10;break e;case Oe:i=9;break e;case We:i=11;break e;case qe:i=14;break e;case $e:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Oi(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function $i(e,n,t,r){return(e=Oi(7,e,r,n)).lanes=t,e}function Xi(e,n,t,r){return(e=Oi(22,e,r,n)).elementType=Xe,e.lanes=t,e.stateNode={isHidden:!1},e}function Gi(e,n,t){return(e=Oi(6,e,null,n)).lanes=t,e}function Ki(e,n,t){return(n=Oi(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Ji(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jn(0),this.expirationTimes=jn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jn(0),this.identifierPrefix=r,this.onRecoverableError=l}function Zi(e,n,t){var r=3=0||(console.error(`'numberOfLines' in must be a non-negative number, received: ${be}. The value will be set to 0.`),be=0);var fe,Re=(0,c.useContext)(a.default),ve=r.default.select({ios:!1!==M,default:M});'number'==typeof(null==(y=pe=(0,o.default)(pe))?void 0:y.fontWeight)&&(pe.fontWeight=null==(fe=pe)?void 0:fe.fontWeight.toString());var ge=Z.selectable;null!=(null==(O=pe)?void 0:O.userSelect)&&(ge=h[pe.userSelect],delete pe.userSelect),null!=(null==(T=pe)?void 0:T.verticalAlign)&&(pe.textAlignVertical=P[pe.verticalAlign],delete pe.verticalAlign);var ye=null!=e.onPress||null!=e.onLongPress;return Re?(0,b.jsx)(u.NativeVirtualText,Object.assign({},Z,de,{accessibilityLabel:null!=I?I:j,accessibilityRole:X?(0,s.getAccessibilityRoleFromRole)(X):L,accessibilityState:x,isHighlighted:le,isPressable:se,nativeID:null!=q?q:F,numberOfLines:be,ref:p,selectable:ge,selectionColor:ce,style:pe})):(0,b.jsx)(a.default.Provider,{value:!0,children:(0,b.jsx)(u.NativeText,Object.assign({},Z,de,{accessibilityLabel:null!=I?I:j,accessibilityRole:X?(0,s.getAccessibilityRoleFromRole)(X):L,accessibilityState:ie,accessible:null==M&&'android'===r.default.OS?ye:ve,allowFontScaling:!1!==D,disabled:oe,ellipsizeMode:null!=W?W:'tail',isHighlighted:le,nativeID:null!=q?q:F,numberOfLines:be,ref:p,selectable:ge,selectionColor:ce,style:pe}))})}));function S(e){var l=(0,c.useState)(e),t=(0,n.default)(l,2),o=t[0],i=t[1];return!o&&e&&i(e),o}y.displayName='Text',y.propTypes=_r(d[13]).TextPropTypes;var h={auto:!0,text:!0,none:!1,contain:!0,all:!0},P={auto:'auto',top:'top',bottom:'bottom',middle:'center'};m.exports=y}),239,[2,23,4,240,242,111,73,209,63,208,248,30,211,249]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PressabilityDebugView=function(e){return null},_e.isEnabled=function(){return!1},_e.setEnabled=function(e){};e(_r(d[1])),e(_r(d[2])),_r(d[3]),(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t(n);if(r&&r.has(e))return r.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var i=o?Object.getOwnPropertyDescriptor(e,f):null;i&&(i.get||i.set)?Object.defineProperty(u,f,i):u[f]=e[f]}u.default=e,r&&r.set(e,u)})(_r(d[4])),_r(d[5]);function t(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(t=function(e){return e?r:n})(e)}}),240,[2,207,74,241,30,211]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]),t=e(_r(d[1])),i=e(_r(d[2])),n=e(_r(d[3])),a=e(_r(d[4])),l=e(_r(d[5])),o=e(_r(d[6])),s=e(_r(d[7])),c=e(_r(d[8])),r=e(_r(d[9])),u=e(_r(d[10])),f=e(_r(d[11])),b=e(_r(d[12])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=h(t);if(i&&i.has(e))return i.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var o=a?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(n,l,o):n[l]=e[l]}return n.default=e,i&&i.set(e,n),n})(_r(d[13])),y=_r(d[14]);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(h=function(e){return e?i:t})(e)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var x=(function(e){function o(){return(0,t.default)(this,o),e=this,i=o,l=arguments,i=(0,a.default)(i),(0,n.default)(e,v()?Reflect.construct(i,l||[],(0,a.default)(e).constructor):i.apply(e,l));var e,i,l}return(0,l.default)(o,e),(0,i.default)(o,[{key:"render",value:function(){var e,t,i=this.props,n=i.accessibilityLabel,a=i.accessibilityState,l=i['aria-busy'],o=i['aria-checked'],p=i['aria-disabled'],h=i['aria-expanded'],v=i['aria-label'],x=i['aria-selected'],O=i.importantForAccessibility,D=i.color,j=i.onPress,k=i.touchSoundDisabled,w=i.title,A=i.hasTVPreferredFocus,P=i.nextFocusDown,S=i.nextFocusForward,_=i.nextFocusLeft,L=i.nextFocusRight,R=i.nextFocusUp,C=i.testID,M=i.accessible,W=i.accessibilityActions,B=i.accessibilityHint,T=i.accessibilityLanguage,U=i.onAccessibilityAction,H=[F.button],I=[F.text];D&&('ios'===c.default.OS?I.push({color:D}):H.push({backgroundColor:D}));var V={busy:null!=l?l:null==a?void 0:a.busy,checked:null!=o?o:null==a?void 0:a.checked,disabled:null!=p?p:null==a?void 0:a.disabled,expanded:null!=h?h:null==a?void 0:a.expanded,selected:null!=x?x:null==a?void 0:a.selected},z=null!=this.props.disabled?this.props.disabled:null==(e=V)?void 0:e.disabled;V=z!==(null==(t=V)?void 0:t.disabled)?Object.assign({},V,{disabled:z}):V,z&&(H.push(F.buttonDisabled),I.push(F.textDisabled)),(0,b.default)('string'==typeof w,'The title prop of a Button must be a string');var q='android'===c.default.OS?w.toUpperCase():w,E='android'===c.default.OS?r.default:u.default,G='no'===O?'no-hide-descendants':O;return(0,y.jsx)(E,{accessible:M,accessibilityActions:W,onAccessibilityAction:U,accessibilityLabel:v||n,accessibilityHint:B,accessibilityLanguage:T,accessibilityRole:"button",accessibilityState:V,importantForAccessibility:G,hasTVPreferredFocus:A,nextFocusDown:P,nextFocusForward:S,nextFocusLeft:_,nextFocusRight:L,nextFocusUp:R,testID:C,disabled:z,onPress:j,touchSoundDisabled:k,children:(0,y.jsx)(f.default,{style:H,children:(0,y.jsx)(s.default,{style:I,disabled:z,children:q})})})}}])})(p.Component),F=o.default.create({button:c.default.select({ios:{},android:{elevation:4,backgroundColor:'#2196F3',borderRadius:2}}),text:Object.assign({textAlign:'center',margin:8},c.default.select({ios:{color:'#007AFF',fontSize:18},android:{color:'white',fontWeight:'500'}})),buttonDisabled:c.default.select({ios:{},android:{elevation:0,backgroundColor:'#dfdfdf'}}),textDisabled:c.default.select({ios:{color:'#cdcdcd'},android:{color:'#a1a1a1'}})});m.exports=x}),238,[2,25,26,20,13,24,213,239,63,270,271,207,40,34,211]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),n=e(_r(d[1])),l=e(_r(d[2])),t=(v(_r(d[3])),e(_r(d[4]))),o=e(_r(d[5])),i=e(_r(d[6])),s=_r(d[7]),r=e(_r(d[8])),a=e(_r(d[9])),u=_r(d[10]),c=v(_r(d[11])),p=c,b=_r(d[12]),f=["accessible","accessibilityLabel","accessibilityRole","accessibilityState","allowFontScaling","aria-busy","aria-checked","aria-disabled","aria-expanded","aria-label","aria-selected","ellipsizeMode","id","nativeID","onLongPress","onPress","onPressIn","onPressOut","onResponderGrant","onResponderMove","onResponderRelease","onResponderTerminate","onResponderTerminationRequest","onStartShouldSetResponder","pressRetentionOffset","role","suppressHighlighting"];function R(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(R=function(e){return e?l:n})(e)}function v(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var l=R(n);if(l&&l.has(e))return l.get(e);var t={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(t,i,s):t[i]=e[i]}return t.default=e,l&&l.set(e,t),t}var y=p.forwardRef((function(e,p){var R,v,y,O,T,x,M=e.accessible,L=e.accessibilityLabel,j=e.accessibilityRole,w=e.accessibilityState,D=e.allowFontScaling,_=e['aria-busy'],k=e['aria-checked'],C=e['aria-disabled'],A=e['aria-expanded'],I=e['aria-label'],E=e['aria-selected'],W=e.ellipsizeMode,q=e.id,F=e.nativeID,G=e.onLongPress,H=e.onPress,z=e.onPressIn,N=e.onPressOut,V=e.onResponderGrant,$=e.onResponderMove,B=e.onResponderRelease,J=e.onResponderTerminate,K=e.onResponderTerminationRequest,Q=e.onStartShouldSetResponder,U=e.pressRetentionOffset,X=e.role,Y=e.suppressHighlighting,Z=(0,l.default)(e,f),ee=(0,c.useState)(!1),ne=(0,n.default)(ee,2),le=ne[0],te=ne[1];null==w&&null==_&&null==k&&null==C&&null==A&&null==E||(x={busy:null!=_?_:null==w?void 0:w.busy,checked:null!=k?k:null==w?void 0:w.checked,disabled:null!=C?C:null==w?void 0:w.disabled,expanded:null!=A?A:null==w?void 0:w.expanded,selected:null!=E?E:null==w?void 0:w.selected});var oe=null!=Z.disabled?Z.disabled:null==(R=x)?void 0:R.disabled,ie=oe!==(null==(v=x)?void 0:v.disabled)?Object.assign({},x,{disabled:oe}):x,se=(null!=H||null!=G||null!=Q)&&!0!==oe,re=S(se),ae=(0,c.useMemo)((function(){return re?{disabled:!se,pressRectOffset:U,onLongPress:G,onPress:H,onPressIn:function(e){te(!Y),null==z||z(e)},onPressOut:function(e){te(!1),null==N||N(e)},onResponderTerminationRequest_DEPRECATED:K,onStartShouldSetResponder_DEPRECATED:Q}:null}),[re,se,U,G,H,z,N,K,Q,Y]),ue=(0,t.default)(ae),de=(0,c.useMemo)((function(){return null==ue?null:{onResponderGrant:function(e){ue.onResponderGrant(e),null!=V&&V(e)},onResponderMove:function(e){ue.onResponderMove(e),null!=$&&$(e)},onResponderRelease:function(e){ue.onResponderRelease(e),null!=B&&B(e)},onResponderTerminate:function(e){ue.onResponderTerminate(e),null!=J&&J(e)},onClick:ue.onClick,onResponderTerminationRequest:ue.onResponderTerminationRequest,onStartShouldSetResponder:ue.onStartShouldSetResponder}}),[ue,V,$,B,J]),ce=null==Z.selectionColor?null:(0,i.default)(Z.selectionColor),pe=Z.style,be=Z.numberOfLines;null==be||be>=0||(console.error(`'numberOfLines' in must be a non-negative number, received: ${be}. The value will be set to 0.`),be=0);var fe,Re=(0,c.useContext)(a.default),ve=r.default.select({ios:!1!==M,default:M});'number'==typeof(null==(y=pe=(0,o.default)(pe))?void 0:y.fontWeight)&&(pe.fontWeight=null==(fe=pe)?void 0:fe.fontWeight.toString());var ge=Z.selectable;null!=(null==(O=pe)?void 0:O.userSelect)&&(ge=h[pe.userSelect],delete pe.userSelect),null!=(null==(T=pe)?void 0:T.verticalAlign)&&(pe.textAlignVertical=P[pe.verticalAlign],delete pe.verticalAlign);var ye=null!=e.onPress||null!=e.onLongPress;return Re?(0,b.jsx)(u.NativeVirtualText,Object.assign({},Z,de,{accessibilityLabel:null!=I?I:L,accessibilityRole:X?(0,s.getAccessibilityRoleFromRole)(X):j,accessibilityState:x,isHighlighted:le,isPressable:se,nativeID:null!=q?q:F,numberOfLines:be,ref:p,selectable:ge,selectionColor:ce,style:pe})):(0,b.jsx)(a.default.Provider,{value:!0,children:(0,b.jsx)(u.NativeText,Object.assign({},Z,de,{accessibilityLabel:null!=I?I:L,accessibilityRole:X?(0,s.getAccessibilityRoleFromRole)(X):j,accessibilityState:ie,accessible:null==M&&'android'===r.default.OS?ye:ve,allowFontScaling:!1!==D,disabled:oe,ellipsizeMode:null!=W?W:'tail',isHighlighted:le,nativeID:null!=q?q:F,numberOfLines:be,ref:p,selectable:ge,selectionColor:ce,style:pe}))})}));function S(e){var l=(0,c.useState)(e),t=(0,n.default)(l,2),o=t[0],i=t[1];return!o&&e&&i(e),o}y.displayName='Text',y.propTypes=_r(d[13]).TextPropTypes;var h={auto:!0,text:!0,none:!1,contain:!0,all:!0},P={auto:'auto',top:'top',bottom:'bottom',middle:'center'};m.exports=y}),239,[2,27,3,240,242,111,73,209,63,208,248,34,211,249]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PressabilityDebugView=function(e){return null},_e.isEnabled=function(){return!1},_e.setEnabled=function(e){};e(_r(d[1])),e(_r(d[2])),_r(d[3]),(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t(n);if(r&&r.has(e))return r.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var i=o?Object.getOwnPropertyDescriptor(e,f):null;i&&(i.get||i.set)?Object.defineProperty(u,f,i):u[f]=e[f]}u.default=e,r&&r.set(e,u)})(_r(d[4])),_r(d[5]);function t(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(t=function(e){return e?r:n})(e)}}),240,[2,207,74,241,34,211]); __d((function(g,r,i,a,m,e,d){function t(t){return{bottom:t,left:t,right:t,top:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.createSquare=t,e.normalizeRect=function(n){return'number'==typeof n?t(n):n}}),241,[]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=(0,l.useRef)(null);null!=n&&null==t.current&&(t.current=new u.default(n));var f=t.current;return(0,l.useEffect)((function(){null!=n&&null!=f&&f.configure(n)}),[n,f]),(0,l.useEffect)((function(){if(null!=f)return function(){f.reset()}}),[f]),null==f?null:f.getEventHandlers()};var u=n(r(d[1])),l=r(d[2])}),242,[2,243,30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),E=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),R=e(_r(d[5])),o=_r(d[6]),_=e(_r(d[7])),l=_r(d[8]),r=e(_r(d[9])),u=e(_r(d[10]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var E=s(t);if(E&&E.has(e))return E.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in e)if("default"!==R&&Object.prototype.hasOwnProperty.call(e,R)){var o=i?Object.getOwnPropertyDescriptor(e,R):null;o&&(o.get||o.set)?Object.defineProperty(n,R,o):n[R]=e[R]}n.default=e,E&&E.set(e,n)})(_r(d[11]));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,E=new WeakMap;return(s=function(e){return e?E:t})(e)}var a=Object.freeze({NOT_RESPONDER:{DELAY:'ERROR',RESPONDER_GRANT:'RESPONDER_INACTIVE_PRESS_IN',RESPONDER_RELEASE:'ERROR',RESPONDER_TERMINATED:'ERROR',ENTER_PRESS_RECT:'ERROR',LEAVE_PRESS_RECT:'ERROR',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_INACTIVE_PRESS_IN:{DELAY:'RESPONDER_ACTIVE_PRESS_IN',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:'RESPONDER_ACTIVE_PRESS_OUT',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_ACTIVE_PRESS_IN:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'RESPONDER_ACTIVE_LONG_PRESS_IN'},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_OUT',LONG_PRESS_DETECTED:'RESPONDER_ACTIVE_LONG_PRESS_IN'},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},ERROR:{DELAY:'NOT_RESPONDER',RESPONDER_GRANT:'RESPONDER_INACTIVE_PRESS_IN',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'NOT_RESPONDER',LEAVE_PRESS_RECT:'NOT_RESPONDER',LONG_PRESS_DETECTED:'NOT_RESPONDER'}}),S=function(e){return'RESPONDER_ACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_LONG_PRESS_IN'===e},T=function(e){return'RESPONDER_ACTIVE_PRESS_OUT'===e||'RESPONDER_ACTIVE_PRESS_IN'===e},c=function(e){return'RESPONDER_INACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_LONG_PRESS_IN'===e},P=function(e){return'RESPONDER_TERMINATED'===e||'RESPONDER_RELEASE'===e},O=30,D=20,N=20,v=20,f=10;_e.default=(function(){function e(E){var n=this;(0,t.default)(this,e),this._eventHandlers=null,this._hoverInDelayTimeout=null,this._hoverOutDelayTimeout=null,this._isHovered=!1,this._longPressDelayTimeout=null,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._responderID=null,this._responderRegion=null,this._touchState='NOT_RESPONDER',this._measureCallback=function(e,t,E,i,R,o){(e||t||E||i||R||o)&&(n._responderRegion={bottom:o+i,left:R,right:R+E,top:o})},this.configure(E)}return(0,E.default)(e,[{key:"configure",value:function(e){this._config=e}},{key:"reset",value:function(){this._cancelHoverInDelayTimeout(),this._cancelHoverOutDelayTimeout(),this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout(),this._config=Object.freeze({})}},{key:"getEventHandlers",value:function(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}},{key:"_createEventHandlers",value:function(){var e=this,t={onBlur:function(t){var E=e._config.onBlur;null!=E&&E(t)},onFocus:function(t){var E=e._config.onFocus;null!=E&&E(t)}},E={onStartShouldSetResponder:function(){var t=e._config.disabled;if(null==t){var E=e._config.onStartShouldSetResponder_DEPRECATED;return null==E||E()}return!t},onResponderGrant:function(t){t.persist(),e._cancelPressOutDelayTimeout(),e._responderID=t.currentTarget,e._touchState='NOT_RESPONDER',e._receiveSignal('RESPONDER_GRANT',t);var E=h(e._config.delayPressIn);E>0?e._pressDelayTimeout=setTimeout((function(){e._receiveSignal('DELAY',t)}),E):e._receiveSignal('DELAY',t);var n=h(e._config.delayLongPress,10,500-E);e._longPressDelayTimeout=setTimeout((function(){e._handleLongPress(t)}),n+E)},onResponderMove:function(t){var E=e._config.onPressMove;null!=E&&E(t);var n=e._responderRegion;if(null!=n){var i=I(t);if(null==i)return e._cancelLongPressDelayTimeout(),void e._receiveSignal('LEAVE_PRESS_RECT',t);if(null!=e._touchActivatePosition){var R=e._touchActivatePosition.pageX-i.pageX,o=e._touchActivatePosition.pageY-i.pageY;Math.hypot(R,o)>f&&e._cancelLongPressDelayTimeout()}e._isTouchWithinResponderRegion(i,n)?e._receiveSignal('ENTER_PRESS_RECT',t):(e._cancelLongPressDelayTimeout(),e._receiveSignal('LEAVE_PRESS_RECT',t))}},onResponderRelease:function(t){e._receiveSignal('RESPONDER_RELEASE',t)},onResponderTerminate:function(t){e._receiveSignal('RESPONDER_TERMINATED',t)},onResponderTerminationRequest:function(){var t=e._config.cancelable;if(null==t){var E=e._config.onResponderTerminationRequest_DEPRECATED;return null==E||E()}return t},onClick:function(t){var E=e._config,n=E.onPress,i=E.disabled;null!=n&&!0!==i&&n(t)}};if(i.default.shouldPressibilityUseW3CPointerEventsForHover()){var n={onPointerEnter:void 0,onPointerLeave:void 0},R=this._config,o=R.onHoverIn,r=R.onHoverOut;return null!=o&&(n.onPointerEnter=function(t){if(e._isHovered=!0,e._cancelHoverOutDelayTimeout(),null!=o){var E=h(e._config.delayHoverIn);E>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){o(A(t))}),E)):o(A(t))}}),null!=r&&(n.onPointerLeave=function(t){if(e._isHovered&&(e._isHovered=!1,e._cancelHoverInDelayTimeout(),null!=r)){var E=h(e._config.delayHoverOut);E>0?(t.persist(),e._hoverOutDelayTimeout=setTimeout((function(){r(A(t))}),E)):r(A(t))}}),Object.assign({},t,E,n)}var u='ios'===_.default.OS||'android'===_.default.OS?null:{onMouseEnter:function(t){if((0,l.isHoverEnabled)()){e._isHovered=!0,e._cancelHoverOutDelayTimeout();var E=e._config.onHoverIn;if(null!=E){var n=h(e._config.delayHoverIn);n>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){E(t)}),n)):E(t)}}},onMouseLeave:function(t){if(e._isHovered){e._isHovered=!1,e._cancelHoverInDelayTimeout();var E=e._config.onHoverOut;if(null!=E){var n=h(e._config.delayHoverOut);n>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){E(t)}),n)):E(t)}}}};return Object.assign({},t,E,u)}},{key:"_receiveSignal",value:function(e,t){var E;null!=t.nativeEvent.timestamp&&r.default.emitEvent((function(){return{signal:e,nativeTimestamp:t.nativeEvent.timestamp}}));var n=this._touchState,i=null==(E=a[n])?void 0:E[e];null==this._responderID&&'RESPONDER_RELEASE'===e||((0,u.default)(null!=i&&'ERROR'!==i,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',e,n,'number'==typeof this._responderID?this._responderID:'<>'),n!==i&&(this._performTransitionSideEffects(n,i,e,t),this._touchState=i))}},{key:"_performTransitionSideEffects",value:function(e,t,E,i){P(E)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var R='NOT_RESPONDER'===e&&'RESPONDER_INACTIVE_PRESS_IN'===t,o=!T(e)&&T(t);if((R||o)&&this._measureResponderRegion(),c(e)&&'LONG_PRESS_DETECTED'===E){var l=this._config.onLongPress;null!=l&&l(i)}var r=S(e),u=S(t);if(!r&&u?this._activate(i):r&&!u&&this._deactivate(i),c(e)&&'RESPONDER_RELEASE'===E){u||r||(this._activate(i),this._deactivate(i));var s=this._config,a=s.onLongPress,O=s.onPress,D=s.android_disableSound;if(null!=O)null!=a&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===e&&this._shouldLongPressCancelPress()||('android'===_.default.OS&&!0!==D&&n.default.playTouchSound(),O(i))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(e){var t=this._config.onPressIn,E=I(e),n=E.pageX,i=E.pageY;this._touchActivatePosition={pageX:n,pageY:i},this._touchActivateTime=Date.now(),null!=t&&t(e)}},{key:"_deactivate",value:function(e){var t=this._config.onPressOut;if(null!=t){var E,n=h(this._config.minPressDuration,0,130),i=Date.now()-(null!=(E=this._touchActivateTime)?E:0),R=Math.max(n-i,h(this._config.delayPressOut));R>0?(e.persist(),this._pressOutDelayTimeout=setTimeout((function(){t(e)}),R)):t(e)}this._touchActivateTime=null}},{key:"_measureResponderRegion",value:function(){null!=this._responderID&&('number'==typeof this._responderID?R.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(e,t){var E,n,i,R,_=(0,o.normalizeRect)(this._config.hitSlop),l=(0,o.normalizeRect)(this._config.pressRectOffset),r=t.bottom,u=t.left,s=t.right,a=t.top;return null!=_&&(null!=_.bottom&&(r+=_.bottom),null!=_.left&&(u-=_.left),null!=_.right&&(s+=_.right),null!=_.top&&(a-=_.top)),r+=null!=(E=null==l?void 0:l.bottom)?E:O,u-=null!=(n=null==l?void 0:l.left)?n:D,s+=null!=(i=null==l?void 0:l.right)?i:N,a-=null!=(R=null==l?void 0:l.top)?R:v,e.pageX>u&&e.pageXa&&e.pageY1&&void 0!==arguments[1]?arguments[1]:0,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,null!=e?e:E)}var I=function(e){var t=e.nativeEvent,E=t.changedTouches,n=t.touches;return null!=n&&n.length>0?n[0]:null!=E&&E.length>0?E[0]:e.nativeEvent};function A(e){var t=e.nativeEvent,E=t.clientX,n=t.clientY;return Object.assign({},e,{nativeEvent:{clientX:E,clientY:n,pageX:E,pageY:n,timestamp:e.timeStamp}})}}),243,[2,21,22,244,158,93,241,63,246,247,40,30]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=(0,l.useRef)(null);null!=n&&null==t.current&&(t.current=new u.default(n));var f=t.current;return(0,l.useEffect)((function(){null!=n&&null!=f&&f.configure(n)}),[n,f]),(0,l.useEffect)((function(){if(null!=f)return function(){f.reset()}}),[f]),null==f?null:f.getEventHandlers()};var u=n(r(d[1])),l=r(d[2])}),242,[2,243,34]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),E=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),R=e(_r(d[5])),_=_r(d[6]),o=e(_r(d[7])),l=_r(d[8]),r=e(_r(d[9])),u=e(_r(d[10]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var E=s(t);if(E&&E.has(e))return E.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in e)if("default"!==R&&{}.hasOwnProperty.call(e,R)){var _=i?Object.getOwnPropertyDescriptor(e,R):null;_&&(_.get||_.set)?Object.defineProperty(n,R,_):n[R]=e[R]}n.default=e,E&&E.set(e,n)})(_r(d[11]));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,E=new WeakMap;return(s=function(e){return e?E:t})(e)}var a=Object.freeze({NOT_RESPONDER:{DELAY:'ERROR',RESPONDER_GRANT:'RESPONDER_INACTIVE_PRESS_IN',RESPONDER_RELEASE:'ERROR',RESPONDER_TERMINATED:'ERROR',ENTER_PRESS_RECT:'ERROR',LEAVE_PRESS_RECT:'ERROR',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_INACTIVE_PRESS_IN:{DELAY:'RESPONDER_ACTIVE_PRESS_IN',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:'RESPONDER_ACTIVE_PRESS_OUT',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_ACTIVE_PRESS_IN:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'RESPONDER_ACTIVE_LONG_PRESS_IN'},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_OUT',LONG_PRESS_DETECTED:'RESPONDER_ACTIVE_LONG_PRESS_IN'},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},ERROR:{DELAY:'NOT_RESPONDER',RESPONDER_GRANT:'RESPONDER_INACTIVE_PRESS_IN',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'NOT_RESPONDER',LEAVE_PRESS_RECT:'NOT_RESPONDER',LONG_PRESS_DETECTED:'NOT_RESPONDER'}}),S=function(e){return'RESPONDER_ACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_LONG_PRESS_IN'===e},T=function(e){return'RESPONDER_ACTIVE_PRESS_OUT'===e||'RESPONDER_ACTIVE_PRESS_IN'===e},c=function(e){return'RESPONDER_INACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_LONG_PRESS_IN'===e},P=function(e){return'RESPONDER_TERMINATED'===e||'RESPONDER_RELEASE'===e},O=30,D=20,N=20,v=20,f=10;_e.default=(function(){return(0,E.default)((function e(E){var n=this;(0,t.default)(this,e),this._eventHandlers=null,this._hoverInDelayTimeout=null,this._hoverOutDelayTimeout=null,this._isHovered=!1,this._longPressDelayTimeout=null,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._responderID=null,this._responderRegion=null,this._touchState='NOT_RESPONDER',this._measureCallback=function(e,t,E,i,R,_){(e||t||E||i||R||_)&&(n._responderRegion={bottom:_+i,left:R,right:R+E,top:_})},this.configure(E)}),[{key:"configure",value:function(e){this._config=e}},{key:"reset",value:function(){this._cancelHoverInDelayTimeout(),this._cancelHoverOutDelayTimeout(),this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout(),this._config=Object.freeze({})}},{key:"getEventHandlers",value:function(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}},{key:"_createEventHandlers",value:function(){var e=this,t={onBlur:function(t){var E=e._config.onBlur;null!=E&&E(t)},onFocus:function(t){var E=e._config.onFocus;null!=E&&E(t)}},E={onStartShouldSetResponder:function(){var t=e._config.disabled;if(null==t){var E=e._config.onStartShouldSetResponder_DEPRECATED;return null==E||E()}return!t},onResponderGrant:function(t){t.persist(),e._cancelPressOutDelayTimeout(),e._responderID=t.currentTarget,e._touchState='NOT_RESPONDER',e._receiveSignal('RESPONDER_GRANT',t);var E=h(e._config.delayPressIn);E>0?e._pressDelayTimeout=setTimeout((function(){e._receiveSignal('DELAY',t)}),E):e._receiveSignal('DELAY',t);var n=h(e._config.delayLongPress,10,500-E);e._longPressDelayTimeout=setTimeout((function(){e._handleLongPress(t)}),n+E)},onResponderMove:function(t){var E=e._config.onPressMove;null!=E&&E(t);var n=e._responderRegion;if(null!=n){var i=I(t);if(null==i)return e._cancelLongPressDelayTimeout(),void e._receiveSignal('LEAVE_PRESS_RECT',t);if(null!=e._touchActivatePosition){var R=e._touchActivatePosition.pageX-i.pageX,_=e._touchActivatePosition.pageY-i.pageY;Math.hypot(R,_)>f&&e._cancelLongPressDelayTimeout()}e._isTouchWithinResponderRegion(i,n)?e._receiveSignal('ENTER_PRESS_RECT',t):(e._cancelLongPressDelayTimeout(),e._receiveSignal('LEAVE_PRESS_RECT',t))}},onResponderRelease:function(t){e._receiveSignal('RESPONDER_RELEASE',t)},onResponderTerminate:function(t){e._receiveSignal('RESPONDER_TERMINATED',t)},onResponderTerminationRequest:function(){var t=e._config.cancelable;if(null==t){var E=e._config.onResponderTerminationRequest_DEPRECATED;return null==E||E()}return t},onClick:function(t){var E=e._config,n=E.onPress,i=E.disabled;null!=n&&!0!==i&&n(t)}};if(i.default.shouldPressibilityUseW3CPointerEventsForHover()){var n={onPointerEnter:void 0,onPointerLeave:void 0},R=this._config,_=R.onHoverIn,r=R.onHoverOut;return null!=_&&(n.onPointerEnter=function(t){if(e._isHovered=!0,e._cancelHoverOutDelayTimeout(),null!=_){var E=h(e._config.delayHoverIn);E>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){_(A(t))}),E)):_(A(t))}}),null!=r&&(n.onPointerLeave=function(t){if(e._isHovered&&(e._isHovered=!1,e._cancelHoverInDelayTimeout(),null!=r)){var E=h(e._config.delayHoverOut);E>0?(t.persist(),e._hoverOutDelayTimeout=setTimeout((function(){r(A(t))}),E)):r(A(t))}}),Object.assign({},t,E,n)}var u='ios'===o.default.OS||'android'===o.default.OS?null:{onMouseEnter:function(t){if((0,l.isHoverEnabled)()){e._isHovered=!0,e._cancelHoverOutDelayTimeout();var E=e._config.onHoverIn;if(null!=E){var n=h(e._config.delayHoverIn);n>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){E(t)}),n)):E(t)}}},onMouseLeave:function(t){if(e._isHovered){e._isHovered=!1,e._cancelHoverInDelayTimeout();var E=e._config.onHoverOut;if(null!=E){var n=h(e._config.delayHoverOut);n>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){E(t)}),n)):E(t)}}}};return Object.assign({},t,E,u)}},{key:"_receiveSignal",value:function(e,t){var E;null!=t.nativeEvent.timestamp&&r.default.emitEvent((function(){return{signal:e,nativeTimestamp:t.nativeEvent.timestamp}}));var n=this._touchState,i=null==(E=a[n])?void 0:E[e];null==this._responderID&&'RESPONDER_RELEASE'===e||((0,u.default)(null!=i&&'ERROR'!==i,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',e,n,'number'==typeof this._responderID?this._responderID:'<>'),n!==i&&(this._performTransitionSideEffects(n,i,e,t),this._touchState=i))}},{key:"_performTransitionSideEffects",value:function(e,t,E,i){P(E)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var R='NOT_RESPONDER'===e&&'RESPONDER_INACTIVE_PRESS_IN'===t,_=!T(e)&&T(t);if((R||_)&&this._measureResponderRegion(),c(e)&&'LONG_PRESS_DETECTED'===E){var l=this._config.onLongPress;null!=l&&l(i)}var r=S(e),u=S(t);if(!r&&u?this._activate(i):r&&!u&&this._deactivate(i),c(e)&&'RESPONDER_RELEASE'===E){u||r||(this._activate(i),this._deactivate(i));var s=this._config,a=s.onLongPress,O=s.onPress,D=s.android_disableSound;if(null!=O)null!=a&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===e&&this._shouldLongPressCancelPress()||('android'===o.default.OS&&!0!==D&&n.default.playTouchSound(),O(i))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(e){var t=this._config.onPressIn,E=I(e),n=E.pageX,i=E.pageY;this._touchActivatePosition={pageX:n,pageY:i},this._touchActivateTime=Date.now(),null!=t&&t(e)}},{key:"_deactivate",value:function(e){var t=this._config.onPressOut;if(null!=t){var E,n=h(this._config.minPressDuration,0,130),i=Date.now()-(null!=(E=this._touchActivateTime)?E:0),R=Math.max(n-i,h(this._config.delayPressOut));R>0?(e.persist(),this._pressOutDelayTimeout=setTimeout((function(){t(e)}),R)):t(e)}this._touchActivateTime=null}},{key:"_measureResponderRegion",value:function(){null!=this._responderID&&('number'==typeof this._responderID?R.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(e,t){var E,n,i,R,o=(0,_.normalizeRect)(this._config.hitSlop),l=(0,_.normalizeRect)(this._config.pressRectOffset),r=t.bottom,u=t.left,s=t.right,a=t.top;return null!=o&&(null!=o.bottom&&(r+=o.bottom),null!=o.left&&(u-=o.left),null!=o.right&&(s+=o.right),null!=o.top&&(a-=o.top)),r+=null!=(E=null==l?void 0:l.bottom)?E:O,u-=null!=(n=null==l?void 0:l.left)?n:D,s+=null!=(i=null==l?void 0:l.right)?i:N,a-=null!=(R=null==l?void 0:l.top)?R:v,e.pageX>u&&e.pageXa&&e.pageY1&&void 0!==arguments[1]?arguments[1]:0,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,null!=e?e:E)}var I=function(e){var t=e.nativeEvent,E=t.changedTouches,n=t.touches;return null!=n&&n.length>0?n[0]:null!=E&&E.length>0?E[0]:e.nativeEvent};function A(e){var t=e.nativeEvent,E=t.clientX,n=t.clientY;return Object.assign({},e,{nativeEvent:{clientX:E,clientY:n,pageX:E,pageY:n,timestamp:e.timeStamp}})}}),243,[2,25,26,244,158,93,241,63,246,247,40,34]); __d((function(g,r,i,a,m,e,d){var u=r(d[0])(r(d[1])),o={playTouchSound:function(){u.default&&u.default.playTouchSound()}};m.exports=o}),244,[2,245]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('SoundManager')}),245,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('SoundManager')}),245,[60]); __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return o};var t=n(r(d[1])),o=!1;if('web'===t.default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var u=0,c=function(){u=Date.now(),o&&(o=!1)};document.addEventListener('touchstart',c,!0),document.addEventListener('touchmove',c,!0),document.addEventListener('mousemove',(function(){o||Date.now()-u<1e3||(o=!0)}),!0)}}),246,[2,63]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),s=t(r(d[2])),u=new((function(){function t(){(0,n.default)(this,t),this._listeners=[]}return(0,s.default)(t,[{key:"addListener",value:function(t){this._listeners.push(t)}},{key:"removeListener",value:function(t){var n=this._listeners.indexOf(t);n>-1&&this._listeners.splice(n,1)}},{key:"emitEvent",value:function(t){if(0!==this._listeners.length){var n=t();this._listeners.forEach((function(t){return t(n)}))}}}]),t})());e.default=u}),247,[2,21,22]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),s=t(r(d[2])),u=new((function(){return(0,s.default)((function t(){(0,n.default)(this,t),this._listeners=[]}),[{key:"addListener",value:function(t){this._listeners.push(t)}},{key:"removeListener",value:function(t){var n=this._listeners.indexOf(t);n>-1&&this._listeners.splice(n,1)}},{key:"emitEvent",value:function(t){if(0!==this._listeners.length){var n=t();this._listeners.forEach((function(t){return t(n)}))}}}])})());e.default=u}),247,[2,25,26]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.NativeVirtualText=e.NativeText=void 0;var n=r(d[1]),l=t(r(d[2])),o=t(r(d[3])),u={validAttributes:{isHighlighted:!0,isPressable:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,dynamicTypeRamp:!0,maxFontSizeMultiplier:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0,onTextLayout:!0,onInlineViewLayout:!0,dataDetectorType:!0,android_hyphenationFrequency:!0,lineBreakStrategyIOS:!0},directEventTypes:{topTextLayout:{registrationName:'onTextLayout'},topInlineViewLayout:{registrationName:'onInlineViewLayout'}},uiViewClassName:'RCTText'},s={validAttributes:{isHighlighted:!0,isPressable:!0,maxFontSizeMultiplier:!0},uiViewClassName:'RCTVirtualText'},T=e.NativeText=(0,o.default)('RCTText',(function(){return(0,n.createViewConfig)(u)}));e.NativeVirtualText=g.RN$Bridgeless||l.default.hasViewManagerConfig('RCTVirtualText')?(0,o.default)('RCTVirtualText',(function(){return(0,n.createViewConfig)(s)})):T}),248,[2,106,93,226]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports={get ColorPropType(){return r(d[0])},get EdgeInsetsPropType(){return r(d[1])},get ImagePropTypes(){return r(d[2])},get PointPropType(){return r(d[3])},get TextInputPropTypes(){return r(d[4])},get TextPropTypes(){return r(d[5])},get ViewPropTypes(){return r(d[6])}}}),249,[250,251,255,266,267,268,263]); __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),f=function(f,l,o,t,b,s){var u=l[o];return null==u?f?new Error('Required '+b+' `'+(s||o)+'` was not specified in `'+t+'`.'):void 0:'number'!=typeof u&&'string'==typeof u&&null===n(u)?new Error('Invalid '+b+' `'+(s||o)+'` supplied to `'+t+'`: '+u+"\nValid color formats are\n - '#f0f' (#rgb)\n - '#f0fc' (#rgba)\n - '#ff00ff' (#rrggbb)\n - '#ff00ff00' (#rrggbbaa)\n - 'rgb(255, 255, 255)'\n - 'rgba(255, 255, 255, 1.0)'\n - 'hsl(360, 100%, 100%)'\n - 'hsla(360, 100%, 100%, 1.0)'\n - 'transparent'\n - 'red'\n - 0xff00ff00 (0xrrggbbaa)\n"):void 0},l=f.bind(null,!1);l.isRequired=f.bind(null,!0),m.exports=l}),250,[75]); @@ -273,1182 +273,1356 @@ __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),s=n.shape({x:n.number,y: __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),o=r(d[1]),t=r(d[2]),l=r(d[3]),s=['address','all','calendarEvent','link','none','phoneNumber'],c=Object.assign({},t,{allowFontScaling:l.bool,autoCapitalize:l.oneOf(['none','sentences','words','characters']),autoComplete:l.oneOf(['additional-name','address-line1','address-line2','bday','bday-day','bday-month','bday-year','birthdate-day','birthdate-full','birthdate-month','birthdate-year','cc-csc','cc-exp','cc-exp-day','cc-exp-month','cc-exp-year','cc-family-name','cc-given-name','cc-middle-name','cc-name','cc-number','cc-type','country','current-password','email','family-name','gender','given-name','honorific-prefix','honorific-suffix','name','name-family','name-given','name-middle','name-middle-initial','name-prefix','name-suffix','new-password','nickname','off','one-time-code','organization','organization-title','password','password-new','postal-address','postal-address-country','postal-address-extended','postal-address-extended-postal-code','postal-address-locality','postal-address-region','postal-code','sex','sms-otp','street-address','tel','tel-country-code','tel-device','tel-national','url','username','username-new']),autoCorrect:l.bool,autoFocus:l.bool,blurOnSubmit:l.bool,caretHidden:l.bool,clearButtonMode:l.oneOf(['always','never','unless-editing','while-editing']),clearTextOnFocus:l.bool,cursorColor:n,contextMenuHidden:l.bool,dataDetectorTypes:l.oneOfType([l.oneOf(s),l.arrayOf(l.oneOf(s))]),defaultValue:l.string,disableFullscreenUI:l.bool,editable:l.bool,enablesReturnKeyAutomatically:l.bool,enterKeyHint:l.oneOf(['done','enter','go','next','previous','search','send']),inlineImageLeft:l.string,inlineImagePadding:l.number,inputAccessoryViewID:l.string,inputMode:l.oneOf(['decimal','email','none','numeric','search','tel','text','url']),keyboardAppearance:l.oneOf(['default','dark','light']),keyboardType:l.oneOf(['ascii-capable','ascii-capable-number-pad','decimal-pad','default','email-address','name-phone-pad','number-pad','numbers-and-punctuation','numeric','phone-pad','twitter','url','visible-password','web-search']),lineBreakStrategyIOS:l.oneOf(['hangul-word','none','push-out','standard']),maxFontSizeMultiplier:l.number,maxLength:l.number,multiline:l.bool,numberOfLines:l.number,onBlur:l.func,onChange:l.func,onChangeText:l.func,onContentSizeChange:l.func,onEndEditing:l.func,onFocus:l.func,onKeyPress:l.func,onLayout:l.func,onScroll:l.func,onSelectionChange:l.func,onSubmitEditing:l.func,onTextInput:l.func,placeholder:l.string,placeholderTextColor:n,readOnly:l.bool,rejectResponderTermination:l.bool,returnKeyLabel:l.string,returnKeyType:l.oneOf(['default','done','emergency-call','go','google','join','next','none','previous','route','search','send','yahoo']),rows:l.number,scrollEnabled:l.bool,secureTextEntry:l.bool,selection:l.shape({end:l.number,start:l.number.isRequired}),selectionColor:n,selectTextOnFocus:l.bool,showSoftInputOnFocus:l.bool,spellCheck:l.bool,style:o.style,submitBehavior:l.oneOf(['blurAndSubmit','newline','submit']),textBreakStrategy:l.oneOf(['balanced','highQuality','simple']),textContentType:l.oneOf(['addressCity','addressCityAndState','addressState','birthdate','birthdateDay','birthdateMonth','birthdateYear','countryName','creditCardExpiration','creditCardExpirationMonth','creditCardExpirationYear','creditCardFamilyName','creditCardGivenName','creditCardMiddleName','creditCardName','creditCardNumber','creditCardSecurityCode','creditCardType','emailAddress','familyName','fullStreetAddress','givenName','jobTitle','location','middleName','name','namePrefix','nameSuffix','newPassword','nickname','none','oneTimeCode','organizationName','password','postalCode','streetAddressLine1','streetAddressLine2','sublocality','telephoneNumber','URL','username']),underlineColorAndroid:n,value:l.string});m.exports=c}),267,[250,268,263,252]); __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),o=r(d[1]),t=r(d[2]),l=r(d[3]),s=r(d[4]),c=s.AccessibilityActionInfoPropType,u=s.AccessibilityRolePropType,b=s.AccessibilityStatePropType,p=(s.AccessibilityValuePropType,s.RolePropType),y=r(d[5]),f={'aria-busy':y.bool,'aria-checked':y.oneOfType([y.bool,y.oneOf(['mixed'])]),'aria-disabled':y.bool,'aria-expanded':y.bool,'aria-label':y.string,'aria-labelledby':y.string,'aria-selected':y.bool,accessibilityActions:y.arrayOf(c),accessibilityHint:y.string,accessibilityLabel:y.string,accessibilityLanguage:y.string,accessibilityRole:u,accessibilityState:b,accessible:y.bool,adjustsFontSizeToFit:y.bool,allowFontScaling:y.bool,dataDetectorType:y.oneOf(['all','email','link','none','phoneNumber']),disabled:y.bool,dynamicTypeRamp:y.oneOf(['body','callout','caption1','caption2','footnote','headline','largeTitle','subheadline','title1','title2','title3']),ellipsizeMode:y.oneOf(['clip','head','middle','tail']),id:y.string,lineBreakStrategyIOS:y.oneOf(['hangul-word','none','push-out','standard']),maxFontSizeMultiplier:y.number,minimumFontScale:y.number,nativeID:y.string,numberOfLines:y.number,onAccessibilityAction:y.func,onLayout:y.func,onLongPress:y.func,onMoveShouldSetResponder:y.func,onPress:y.func,onPressIn:y.func,onPressOut:y.func,onResponderGrant:y.func,onResponderMove:y.func,onResponderRelease:y.func,onResponderTerminate:y.func,onResponderTerminationRequest:y.func,onStartShouldSetResponder:y.func,onTextLayout:y.func,pressRetentionOffset:o,role:p,selectable:y.bool,selectionColor:n,style:t(l),suppressHighlighting:y.bool,testID:y.string,textBreakStrategy:y.oneOf(['balanced','highQuality','simple'])};m.exports=f}),268,[250,251,261,269,264,252]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=Object.assign({},n,{color:t,fontFamily:o.string,fontSize:o.number,fontStyle:o.oneOf(['italic','normal']),fontVariant:o.oneOfType([o.arrayOf(o.oneOf(['lining-nums','oldstyle-nums','proportional-nums','small-caps','stylistic-eight','stylistic-eighteen','stylistic-eleven','stylistic-fifteen','stylistic-five','stylistic-four','stylistic-fourteen','stylistic-nine','stylistic-nineteen','stylistic-one','stylistic-seven','stylistic-seventeen','stylistic-six','stylistic-sixteen','stylistic-ten','stylistic-thirteen','stylistic-three','stylistic-twelve','stylistic-twenty','stylistic-two','tabular-nums'])),o.string]),fontWeight:o.oneOf(['100','200','300','400','500','600','700','800','900','black','bold','condensed','condensedBold','heavy','light','medium','normal','regular','semibold','thin','ultralight',100,200,300,400,500,600,700,800,900]),includeFontPadding:o.bool,letterSpacing:o.number,lineHeight:o.number,textAlign:o.oneOf(['auto','center','justify','left','right']),textAlignVertical:o.oneOf(['auto','bottom','center','top']),textDecorationColor:t,textDecorationLine:o.oneOf(['line-through','none','underline line-through','underline']),textDecorationStyle:o.oneOf(['dashed','dotted','double','solid']),textShadowColor:t,textShadowOffset:o.shape({height:o.number,width:o.number}),textShadowRadius:o.number,textTransform:o.oneOf(['capitalize','lowercase','none','uppercase']),userSelect:o.oneOf(['all','auto','contain','none','text']),verticalAlign:o.oneOf(['auto','bottom','middle','top']),writingDirection:o.oneOf(['auto','ltr','rtl'])});m.exports=s}),269,[250,265,252]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),s=e(_r(d[2])),i=e(_r(d[3])),o=e(_r(d[4])),n=e(_r(d[5])),r=e(_r(d[6])),a=(e(_r(d[7])),e(_r(d[8]))),l=(_r(d[9]),_r(d[10])),p=e(_r(d[11])),c=e(_r(d[12])),u=_r(d[13]),h=e(_r(d[14])),f=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var s=y(t);if(s&&s.has(e))return s.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var r=o?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(i,n,r):i[n]=e[n]}return i.default=e,s&&s.set(e,i),i})(_r(d[15])),b=(_r(d[16]),["onBlur","onFocus"]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(y=function(e){return e?s:t})(e)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var P=(function(e){(0,o.default)(P,e);var p,h,y=(p=P,h=v(),function(){var e,t=(0,r.default)(p);if(h){var s=(0,r.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,n.default)(this,e)});function P(){var e;(0,s.default)(this,P);for(var t=arguments.length,i=new Array(t),o=0;o=23};var S='android'===c.default.OS?function(e,t){return t&&P.canUseNativeForeground()?{nativeForegroundAndroid:e}:{nativeBackgroundAndroid:e}}:function(e,t){return null};P.displayName='TouchableNativeFeedback',m.exports=P}),270,[2,4,21,22,17,19,16,207,243,240,45,73,63,210,40,30,211]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]),s=t(_r(d[1])),i=t(_r(d[2])),e=t(_r(d[3])),o=t(_r(d[4])),a=t(_r(d[5])),n=t(_r(d[6])),r=t(_r(d[7])),l=t(_r(d[8])),p=t(_r(d[9])),c=(_r(d[10]),t(_r(d[11]))),u=t(_r(d[12])),h=(function(t,s){if(!s&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=b(s);if(i&&i.has(t))return i.get(t);var e={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var n=o?Object.getOwnPropertyDescriptor(t,a):null;n&&(n.get||n.set)?Object.defineProperty(e,a,n):e[a]=t[a]}return e.default=t,i&&i.set(t,e),e})(_r(d[13])),y=_r(d[14]),f=["onBlur","onFocus"];function b(t){if("function"!=typeof WeakMap)return null;var s=new WeakMap,i=new WeakMap;return(b=function(t){return t?i:s})(t)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var P=(function(t){(0,o.default)(O,t);var h,b,P=(h=O,b=v(),function(){var t,s=(0,n.default)(h);if(b){var i=(0,n.default)(this).constructor;t=Reflect.construct(s,arguments,i)}else t=s.apply(this,arguments);return(0,a.default)(this,t)});function O(){var t;(0,i.default)(this,O);for(var s=arguments.length,e=new Array(s),o=0;o=23};var S='android'===c.default.OS?function(e,s){return s&&P.canUseNativeForeground()?{nativeForegroundAndroid:e}:{nativeBackgroundAndroid:e}}:function(e,s){return null};P.displayName='TouchableNativeFeedback',m.exports=P}),270,[2,3,25,26,20,13,24,207,243,240,45,73,63,210,40,34,211]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]),s=t(_r(d[1])),i=t(_r(d[2])),e=t(_r(d[3])),o=t(_r(d[4])),a=t(_r(d[5])),n=t(_r(d[6])),l=t(_r(d[7])),r=t(_r(d[8])),p=t(_r(d[9])),c=(_r(d[10]),t(_r(d[11]))),u=t(_r(d[12])),h=(function(t,s){if(!s&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=b(s);if(i&&i.has(t))return i.get(t);var e={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var n=o?Object.getOwnPropertyDescriptor(t,a):null;n&&(n.get||n.set)?Object.defineProperty(e,a,n):e[a]=t[a]}return e.default=t,i&&i.set(t,e),e})(_r(d[13])),y=_r(d[14]),f=["onBlur","onFocus"];function b(t){if("function"!=typeof WeakMap)return null;var s=new WeakMap,i=new WeakMap;return(b=function(t){return t?i:s})(t)}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}var P=(function(t){function h(){var t,s,e,n;(0,i.default)(this,h);for(var r=arguments.length,c=new Array(r),u=0;u1&&void 0!==arguments[1]?arguments[1]:{},i=n.iterations,r=void 0===i?-1:i,o=n.resetBeforeIteration,a=void 0===o||o,u=!1,s=0;return{start:function(n){t&&0!==r?t._isUsingNativeDriver()?t._startNativeLoop(r):(function i(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};u||s===r||!1===o.finished?n&&n(o):(s++,a&&t.reset(),t.start(i))})():n&&n({finished:!0})},stop:function(){u=!0,t.stop()},reset:function(){s=0,u=!1,t.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return t._isUsingNativeDriver()}}},event:function(t,i){var r=new n.AnimatedEvent(t,i);return r.__isNative?r:r.__getHandler()},createAnimatedComponent:a.default,attachNativeEvent:n.attachNativeEvent,forkEvent:function(t,i){return t?t instanceof n.AnimatedEvent?(t.__addListener(i),t):function(){'function'==typeof t&&t.apply(void 0,arguments),i.apply(void 0,arguments)}:i},unforkEvent:function(t,i){t&&t instanceof n.AnimatedEvent&&t.__removeListener(i)},Event:n.AnimatedEvent}}),273,[2,274,287,289,292,293,301,290,302,303,281,304,305,285,306,307,278,286]); -__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.AnimatedEvent=void 0,e.attachNativeEvent=c;var n=t(r(d[1])),s=t(r(d[2])),o=r(d[3]),f=t(r(d[4])),l=t(r(d[5])),u=t(r(d[6])),v=t(r(d[7]));function c(t,n,s,c){var _=[];(0,v.default)(s[0]&&s[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),(function t(n,s){if(n instanceof l.default)n.__makeNative(c),_.push({nativeEventPath:s,animatedValueTag:n.__getNativeTag()});else if(n instanceof u.default)t(n.x,s.concat('x')),t(n.y,s.concat('y'));else if('object'==typeof n)for(var o in n)t(n[o],s.concat(o))})(s[0].nativeEvent,[]);var h=(0,o.findNodeHandle)(t);return null!=h&&_.forEach((function(t){f.default.API.addAnimatedEventToView(h,n,t)})),{detach:function(){null!=h&&_.forEach((function(t){f.default.API.removeAnimatedEventFromView(h,n,t.animatedValueTag)}))}}}e.AnimatedEvent=(function(){function t(s,o){var l=this;(0,n.default)(this,t),this._listeners=[],this._callListeners=function(){for(var t=arguments.length,n=new Array(t),s=0;s1?n-1:0),o=1;o0?setTimeout(S,0):setImmediate(S))}function S(){h=0;var n=f.size;l.forEach((function(n){return f.add(n)})),v.forEach((function(n){return f.delete(n)}));var o=f.size;if(0!==n&&0===o?s.emit(u.Events.interactionComplete):0===n&&0!==o&&s.emit(u.Events.interactionStart),0===o)for(;p.hasTasksToProcess();)if(p.processNext(),w>0&&t.getEventLoopRunningTime()>=w){E();break}l.clear(),v.clear()}m.exports=u}),279,[2,44,49,160,280,40]); -__d((function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]),t=r(d[1]),u=(r(d[2]),r(d[3])),s=(function(){function s(t){var u=t.onMoreTasks;e(this,s),this._onMoreTasks=u,this._queueStack=[{tasks:[],popable:!1}]}return t(s,[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach((function(e){return t.enqueue(e)}))}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map((function(t){return Object.assign({},t,{tasks:t.tasks.filter((function(t){return-1===e.indexOf(t)}))})})).filter((function(e,t){return e.tasks.length>0||0===t}))}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():(u('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var u=this._queueStack.length-1,s=this._queueStack[u];e.gen().then((function(){s.popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()})).catch((function(t){setTimeout((function(){throw t.message=`TaskQueue: Error resolving Promise in task ${e.name}: ${t.message}`,t}),0)}))}}]),s})();m.exports=s}),280,[21,22,160,40]); -__d((function(_g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),a=t(_r(d[3])),r=t(_r(d[4])),o=t(_r(d[5])),u=t(_r(d[6])),i=t(_r(d[7])),l=t(_r(d[8])),f=t(_r(d[9])),p=t(_r(d[10])),c=t(_r(d[11])),s=t(_r(d[12]));function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function g(t){var e=t.outputRange,n=t.inputRange,a=t.easing||f.default.linear,r='extend';void 0!==t.extrapolateLeft?r=t.extrapolateLeft:void 0!==t.extrapolate&&(r=t.extrapolate);var o='extend';return void 0!==t.extrapolateRight?o=t.extrapolateRight:void 0!==t.extrapolate&&(o=t.extrapolate),function(t){(0,s.default)('number'==typeof t,'Cannot interpolation an input which is not a number');var u=R(t,n);return _(t,n[u],n[u+1],e[u],e[u+1],a,r,o)}}function _(t,e,n,a,r,o,u,i){var l=t;if(ln){if('identity'===i)return l;'clamp'===i&&(l=n)}return a===r?a:e===n?t<=e?a:r:(e===-1/0?l=-l:n===1/0?l-=e:l=(l-e)/(n-e),l=o(l),a===-1/0?l=-l:r===1/0?l+=a:l=l*(r-a)+a,l)}var v=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function y(t){var e=(0,i.default)(t);if((0,s.default)(null==e||'object'!=typeof e,'PlatformColors are not supported'),'number'==typeof e)return{isColor:!0,components:[(4278190080&(e=e||0))>>>24,(16711680&e)>>>16,(65280&e)>>>8,(255&e)/255]};for(var n,a=[],r=0;null!=(n=v.exec(t));)n.index>r&&a.push(t.substring(r,n.index)),a.push(parseFloat(n[0])),r=n.index+n[0].length;return(0,s.default)(a.length>0,'outputRange must contain color or value with numeric component'),r=2,'Bad output range');var e=t.outputRange.map(y),n=e[0].isColor,a=e.map((function(t){return n?t.components:t.components.filter((function(t){return'number'==typeof t}))})),r=a[0].map((function(e,n){return g(Object.assign({},t,{outputRange:a.map((function(t){return t[n]}))}))}));return n?function(t){var e=r.map((function(e,n){var a=e(t);return n<3?Math.round(a):Math.round(1e3*a)/1e3}));return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}:function(t){var n=r.map((function(e){return e(t)})),a=0;return e[0].components.map((function(t){return'number'==typeof t?n[a++]:t})).join('')}}function R(t,e){var n;for(n=1;n=t);++n);return n-1}_e.default=(function(t){(0,r.default)(_,t);var i,f,c=(i=_,f=h(),function(){var t,e=(0,u.default)(i);if(f){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function _(t,n){var a;return(0,e.default)(this,_),(a=c.call(this))._parent=t,a._config=n,a}return(0,n.default)(_,[{key:"_getInterpolation",value:function(){if(!this._interpolation){var t=this._config;t.outputRange&&'string'==typeof t.outputRange[0]?this._interpolation=x(t):this._interpolation=g(t)}return this._interpolation}},{key:"__makeNative",value:function(t){this._parent.__makeNative(t),(0,a.default)((0,u.default)(_.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return(0,s.default)('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._getInterpolation()(t)}},{key:"interpolate",value:function(t){return new _(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),(0,a.default)((0,u.default)(_.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){var t=this._config.outputRange,e=null;return'string'==typeof t[0]&&(t=t.map((function(t){var n=(0,l.default)(t);return'number'==typeof n?(e='color',n):p.default.transformDataType(t)}))),{inputRange:this._config.inputRange,outputRange:t,outputType:e,extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}]),_})(c.default)}),281,[2,21,22,14,17,19,16,74,73,282,275,284,40]); +__d((function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]),t=r(d[1]),u=(r(d[2]),r(d[3])),s=(function(){return t((function t(u){var s=u.onMoreTasks;e(this,t),this._onMoreTasks=s,this._queueStack=[{tasks:[],popable:!1}]}),[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach((function(e){return t.enqueue(e)}))}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map((function(t){return Object.assign({},t,{tasks:t.tasks.filter((function(t){return-1===e.indexOf(t)}))})})).filter((function(e,t){return e.tasks.length>0||0===t}))}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():(u('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var u=this._queueStack.length-1,s=this._queueStack[u];e.gen().then((function(){s.popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()})).catch((function(t){setTimeout((function(){throw t.message=`TaskQueue: Error resolving Promise in task ${e.name}: ${t.message}`,t}),0)}))}}])})();m.exports=s}),280,[25,26,160,40]); +__d((function(_g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),a=t(_r(d[3])),o=t(_r(d[4])),r=t(_r(d[5])),u=t(_r(d[6])),i=t(_r(d[7])),l=t(_r(d[8])),f=t(_r(d[9])),p=t(_r(d[10])),c=t(_r(d[11])),s=t(_r(d[12]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function g(t){var e=t.outputRange,n=t.inputRange,a=t.easing||f.default.linear,o='extend';void 0!==t.extrapolateLeft?o=t.extrapolateLeft:void 0!==t.extrapolate&&(o=t.extrapolate);var r='extend';return void 0!==t.extrapolateRight?r=t.extrapolateRight:void 0!==t.extrapolate&&(r=t.extrapolate),function(t){(0,s.default)('number'==typeof t,'Cannot interpolation an input which is not a number');var u=R(t,n);return _(t,n[u],n[u+1],e[u],e[u+1],a,o,r)}}function _(t,e,n,a,o,r,u,i){var l=t;if(ln){if('identity'===i)return l;'clamp'===i&&(l=n)}return a===o?a:e===n?t<=e?a:o:(e===-1/0?l=-l:n===1/0?l-=e:l=(l-e)/(n-e),l=r(l),a===-1/0?l=-l:o===1/0?l+=a:l=l*(o-a)+a,l)}var v=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function y(t){var e=(0,i.default)(t);if((0,s.default)(null==e||'object'!=typeof e,'PlatformColors are not supported'),'number'==typeof e)return{isColor:!0,components:[(4278190080&(e=e||0))>>>24,(16711680&e)>>>16,(65280&e)>>>8,(255&e)/255]};for(var n,a=[],o=0;null!=(n=v.exec(t));)n.index>o&&a.push(t.substring(o,n.index)),a.push(parseFloat(n[0])),o=n.index+n[0].length;return(0,s.default)(a.length>0,'outputRange must contain color or value with numeric component'),o=2,'Bad output range');var e=t.outputRange.map(y),n=e[0].isColor,a=e.map((function(t){return n?t.components:t.components.filter((function(t){return'number'==typeof t}))})),o=a[0].map((function(e,n){return g(Object.assign({},t,{outputRange:a.map((function(t){return t[n]}))}))}));return n?function(t){var e=o.map((function(e,n){var a=e(t);return n<3?Math.round(a):Math.round(1e3*a)/1e3}));return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}:function(t){var n=o.map((function(e){return e(t)})),a=0;return e[0].components.map((function(t){return'number'==typeof t?n[a++]:t})).join('')}}function R(t,e){var n;for(n=1;n=t);++n);return n-1}_e.default=(function(t){function i(t,n){var o,u,l,f;return(0,e.default)(this,i),u=this,l=i,l=(0,r.default)(l),(o=(0,a.default)(u,h()?Reflect.construct(l,f||[],(0,r.default)(u).constructor):l.apply(u,f)))._parent=t,o._config=n,o}return(0,u.default)(i,t),(0,n.default)(i,[{key:"_getInterpolation",value:function(){if(!this._interpolation){var t=this._config;t.outputRange&&'string'==typeof t.outputRange[0]?this._interpolation=x(t):this._interpolation=g(t)}return this._interpolation}},{key:"__makeNative",value:function(t){this._parent.__makeNative(t),(0,o.default)((0,r.default)(i.prototype),"__makeNative",this).call(this,t)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return(0,s.default)('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._getInterpolation()(t)}},{key:"interpolate",value:function(t){return new i(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),(0,o.default)((0,r.default)(i.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){var t=this._config.outputRange,e=null;return'string'==typeof t[0]&&(t=t.map((function(t){var n=(0,l.default)(t);return'number'==typeof n?(e='color',n):p.default.transformDataType(t)}))),{inputRange:this._config.inputRange,outputRange:t,outputType:e,extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}])})(c.default)}),281,[2,25,26,20,22,13,24,74,73,282,275,284,40]); __d((function(g,r,i,a,m,e,d){'use strict';var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={step0:function(n){return n>0?1:0},step1:function(n){return n>=1?1:0},linear:function(n){return n},ease:function(u){return n||(n=t.bezier(.42,0,1,1)),n(u)},quad:function(n){return n*n},cubic:function(n){return n*n*n},poly:function(n){return function(t){return Math.pow(t,n)}},sin:function(n){return 1-Math.cos(n*Math.PI/2)},circle:function(n){return 1-Math.sqrt(1-n*n)},exp:function(n){return Math.pow(2,10*(n-1))},elastic:function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(t){return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*n)}},back:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((n+1)*t-n)}},bounce:function(n){if(n<.36363636363636365)return 7.5625*n*n;if(n<.7272727272727273){var t=n-.5454545454545454;return 7.5625*t*t+.75}if(n<.9090909090909091){var u=n-.8181818181818182;return 7.5625*u*u+.9375}var o=n-.9545454545454546;return 7.5625*o*o+.984375},bezier:function(n,t,u,o){return(0,r(d[0]).default)(n,t,u,o)},in:function(n){return n},out:function(n){return function(t){return 1-n(1-t)}},inOut:function(n){return function(t){return t<.5?n(2*t)/2:1-n(2*(1-t))/2}}};e.default=t}),282,[283]); __d((function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,u,o,v){if(!(n>=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var l=c?new Float32Array(f):new Array(f);if(n!==u||o!==v)for(var s=0;s=t?_(u,v,n,o):0===s?v:b(u,f,f+i,n,o)}return function(t){return n===u&&o===v?t:0===t?0:1===t?1:w(h(t),u,v)}};var n=4,t=.001,u=1e-7,o=10,f=11,i=.1,c='function'==typeof Float32Array;function v(n,t){return 1-3*t+3*n}function l(n,t){return 3*t-6*n}function s(n){return 3*n}function w(n,t,u){return((v(t,u)*n+l(t,u))*n+s(t))*n}function y(n,t,u){return 3*v(t,u)*n*n+2*l(t,u)*n+s(t)}function b(n,t,f,i,c){var v,l,s=0,y=t,b=f;do{(v=w(l=y+(b-y)/2,i,c)-n)>0?b=l:y=l}while(Math.abs(v)>u&&++s0,'Stiffness value must be greater than 0'),(0,f.default)(p._damping>0,'Damping value must be greater than 0'),(0,f.default)(p._mass>0,'Mass value must be greater than 0'),p}return(0,i.default)(m,[{key:"__getNativeAnimationConfig",value:function(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(t=this._initialVelocity)?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}},{key:"start",value:function(t,e,i,s,n){var a=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=e,this.__onEnd=i,this._lastTime=Date.now(),this._frameTime=0,s instanceof m){var o=s.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var l=function(){a._useNativeDriver?a.__startNativeAnimation(n):a.onUpdate()};this._delay?this._timeout=setTimeout(l,this._delay):l()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var e=(t-this._lastTime)/1e3;this._frameTime+=e;var i=this._damping,s=this._mass,n=this._stiffness,a=-this._initialVelocity,o=i/(2*Math.sqrt(n*s)),l=Math.sqrt(n/s),r=l*Math.sqrt(1-o*o),u=this._toValue-this._startPosition,f=0,h=0,_=this._frameTime;if(o<1){var c=Math.exp(-o*l*_);f=this._toValue-c*((a+o*l*u)/r*Math.sin(r*_)+u*Math.cos(r*_)),h=o*l*c*(Math.sin(r*_)*(a+o*l*u)/r+u*Math.cos(r*_))-c*(Math.cos(r*_)*(a+o*l*u)-r*u*Math.sin(r*_))}else{var m=Math.exp(-l*_);f=this._toValue-m*(u+(a+l*u)*_),h=m*(a*(_*l-1)+_*u*(l*l))}if(this._lastTime=t,this._lastPosition=f,this._lastVelocity=h,this._onUpdate(f),this.__active){var p=!1;this._overshootClamping&&0!==this._stiffness&&(p=this._startPositionthis._toValue:f>>24,g:(16711680&e)>>>16,b:(65280&e)>>>8,a:(255&e)/255}}return null}function b(t){return t&&'number'==typeof t.r&&'number'==typeof t.g&&'number'==typeof t.b&&'number'==typeof t.a}function y(t){return t&&t.r instanceof o.default&&t.g instanceof o.default&&t.b instanceof o.default&&t.a instanceof o.default}_e.default=(function(t){(0,n.default)(h,t);var l,u,f=(l=h,u=c(),function(){var t,e=(0,s.default)(l);if(u){var a=(0,s.default)(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return(0,r.default)(this,t)});function h(t,a){var i;(0,e.default)(this,h),(i=f.call(this))._suspendCallbacks=0;var n=null!=t?t:g;if(y(n)){var r=n;i.r=r.r,i.g=r.g,i.b=r.b,i.a=r.a}else{var s,l=null!=(s=p(n))?s:g,u=g;b(l)?u=l:i.nativeColor=l,i.r=new o.default(u.r),i.g=new o.default(u.g),i.b=new o.default(u.b),i.a=new o.default(u.a)}return null!=a&&a.useNativeDriver&&i.__makeNative(),i}return(0,a.default)(h,[{key:"setValue",value:function(t){var e,a=this,i=!1;if(this.__isNative){var n=this.__getNativeTag();v.setWaitingForIdentifier(n.toString())}var r=null!=(e=p(t))?e:g;if(this._withSuspendedCallbacks((function(){if(b(r)){var t=r;a.r.setValue(t.r),a.g.setValue(t.g),a.b.setValue(t.b),a.a.setValue(t.a),null!=a.nativeColor&&(a.nativeColor=null,i=!0)}else{var e=r;a.nativeColor!==e&&(a.nativeColor=e,i=!0)}})),this.__isNative){var s=this.__getNativeTag();i&&v.updateAnimatedNodeConfig(s,this.__getNativeConfig()),v.unsetWaitingForIdentifier(s.toString())}else(0,o.flushValue)(this);this.__callListeners(this.__getValue())}},{key:"setOffset",value:function(t){this.r.setOffset(t.r),this.g.setOffset(t.g),this.b.setOffset(t.b),this.a.setOffset(t.a)}},{key:"flattenOffset",value:function(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}},{key:"extractOffset",value:function(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}},{key:"stopAnimation",value:function(t){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),t&&t(this.__getValue())}},{key:"resetAnimation",value:function(t){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),t&&t(this.__getValue())}},{key:"__getValue",value:function(){return null!=this.nativeColor?this.nativeColor:`rgba(${this.r.__getValue()}, ${this.g.__getValue()}, ${this.b.__getValue()}, ${this.a.__getValue()})`}},{key:"__attach",value:function(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),(0,i.default)((0,s.default)(h.prototype),"__attach",this).call(this)}},{key:"__detach",value:function(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),(0,i.default)((0,s.default)(h.prototype),"__detach",this).call(this)}},{key:"_withSuspendedCallbacks",value:function(t){this._suspendCallbacks++,t(),this._suspendCallbacks--}},{key:"__callListeners",value:function(t){0===this._suspendCallbacks&&(0,i.default)((0,s.default)(h.prototype),"__callListeners",this).call(this,t)}},{key:"__makeNative",value:function(t){this.r.__makeNative(t),this.g.__makeNative(t),this.b.__makeNative(t),this.a.__makeNative(t),(0,i.default)((0,s.default)(h.prototype),"__makeNative",this).call(this,t)}},{key:"__getNativeConfig",value:function(){return{type:'color',r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}]),h})(h.default)}),290,[2,21,22,14,17,19,16,74,76,275,278,284]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),_=t(r(d[2])),n=t(r(d[3])),l=t(r(d[4])),s=t(r(d[5])),c=t(r(d[6])),u=t(r(d[7])),o=t(r(d[8]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}_e.default=(function(t){function o(){var t,_,l,c;return(0,e.default)(this,o),_=this,l=o,l=(0,s.default)(l),(t=(0,n.default)(_,h()?Reflect.construct(l,c||[],(0,s.default)(_).constructor):l.apply(_,c)))._children=[],t}return(0,c.default)(o,t),(0,_.default)(o,[{key:"__makeNative",value:function(t){if(!this.__isNative)for(var e of(this.__isNative=!0,this._children))e.__makeNative(t),u.default.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag());(0,l.default)((0,s.default)(o.prototype),"__makeNative",this).call(this,t)}},{key:"__addChild",value:function(t){0===this._children.length&&this.__attach(),this._children.push(t),this.__isNative&&(t.__makeNative(this.__getPlatformConfig()),u.default.API.connectAnimatedNodes(this.__getNativeTag(),t.__getNativeTag()))}},{key:"__removeChild",value:function(t){var e=this._children.indexOf(t);-1!==e?(this.__isNative&&t.__isNative&&u.default.API.disconnectAnimatedNodes(this.__getNativeTag(),t.__getNativeTag()),this._children.splice(e,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}},{key:"__getChildren",value:function(){return this._children}},{key:"__callListeners",value:function(t){if((0,l.default)((0,s.default)(o.prototype),"__callListeners",this).call(this,t),!this.__isNative)for(var e of this._children)e.__getValue&&e.__callListeners(e.__getValue())}}])})(o.default)}),284,[2,25,26,20,22,13,24,275,285]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),s=t(r(d[2])),_=t(r(d[3])),u=t(r(d[4])),o=_.default.API,l=1;e.default=(function(){return(0,s.default)((function t(){(0,n.default)(this,t),this._listeners={}}),[{key:"__attach",value:function(){}},{key:"__detach",value:function(){this.removeAllListeners(),this.__isNative&&null!=this.__nativeTag&&(_.default.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}},{key:"__getValue",value:function(){}},{key:"__getAnimatedValue",value:function(){return this.__getValue()}},{key:"__addChild",value:function(t){}},{key:"__removeChild",value:function(t){}},{key:"__getChildren",value:function(){return[]}},{key:"__makeNative",value:function(t){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=t,this.hasListeners()&&this._startListeningToNativeValueUpdates()}},{key:"addListener",value:function(t){var n=String(l++);return this._listeners[n]=t,this.__isNative&&this._startListeningToNativeValueUpdates(),n}},{key:"removeListener",value:function(t){delete this._listeners[t],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}},{key:"removeAllListeners",value:function(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}},{key:"hasListeners",value:function(){return!!Object.keys(this._listeners).length}},{key:"_startListeningToNativeValueUpdates",value:function(){var t=this;this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),o.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=_.default.nativeEventEmitter.addListener('onAnimatedValueUpdate',(function(n){n.tag===t.__getNativeTag()&&t.__onAnimatedValueUpdateReceived(n.value)})))}},{key:"__onAnimatedValueUpdateReceived",value:function(t){this.__callListeners(t)}},{key:"__callListeners",value:function(t){for(var n in this._listeners)this._listeners[n]({value:t})}},{key:"_stopListeningForNativeValueUpdates",value:function(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,o.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}},{key:"__getNativeTag",value:function(){var t;_.default.assertNativeAnimatedModule(),(0,u.default)(this.__isNative,'Attempt to get native tag from node not marked as "native"');var n=null!=(t=this.__nativeTag)?t:_.default.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=n;var s=this.__getNativeConfig();this._platformConfig&&(s.platformConfig=this._platformConfig),_.default.API.createAnimatedNode(n,s),this.__shouldUpdateListenersForNewNativeTag=!0}return n}},{key:"__getNativeConfig",value:function(){throw new Error('This JS animated node type cannot be used as native animated node')}},{key:"toJSON",value:function(){return this.__getValue()}},{key:"__getPlatformConfig",value:function(){return this._platformConfig}},{key:"__setPlatformConfig",value:function(t){this._platformConfig=t}}])})()}),285,[2,25,26,275,40]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),s=t(r(d[2])),n=t(r(d[3])),u=t(r(d[4])),l=t(r(d[5])),f=t(r(d[6])),o=t(r(d[7])),h=t(r(d[8])),y=t(r(d[9]));function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}var _=1;_e.default=(function(t){function h(t,s){var u,f,_,v;(0,e.default)(this,h),f=this,_=h,_=(0,l.default)(_),u=(0,n.default)(f,c()?Reflect.construct(_,v||[],(0,l.default)(f).constructor):_.apply(f,v));var x=t||{x:0,y:0};return'number'==typeof x.x&&'number'==typeof x.y?(u.x=new o.default(x.x),u.y=new o.default(x.y)):((0,y.default)(x.x instanceof o.default&&x.y instanceof o.default,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),u.x=x.x,u.y=x.y),u._listeners={},s&&s.useNativeDriver&&u.__makeNative(),u}return(0,f.default)(h,t),(0,s.default)(h,[{key:"setValue",value:function(t){this.x.setValue(t.x),this.y.setValue(t.y)}},{key:"setOffset",value:function(t){this.x.setOffset(t.x),this.y.setOffset(t.y)}},{key:"flattenOffset",value:function(){this.x.flattenOffset(),this.y.flattenOffset()}},{key:"extractOffset",value:function(){this.x.extractOffset(),this.y.extractOffset()}},{key:"__getValue",value:function(){return{x:this.x.__getValue(),y:this.y.__getValue()}}},{key:"resetAnimation",value:function(t){this.x.resetAnimation(),this.y.resetAnimation(),t&&t(this.__getValue())}},{key:"stopAnimation",value:function(t){this.x.stopAnimation(),this.y.stopAnimation(),t&&t(this.__getValue())}},{key:"addListener",value:function(t){var e=this,s=String(_++),n=function(s){s.value;t(e.__getValue())};return this._listeners[s]={x:this.x.addListener(n),y:this.y.addListener(n)},s}},{key:"removeListener",value:function(t){this.x.removeListener(this._listeners[t].x),this.y.removeListener(this._listeners[t].y),delete this._listeners[t]}},{key:"removeAllListeners",value:function(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}},{key:"getLayout",value:function(){return{left:this.x,top:this.y}}},{key:"getTranslateTransform",value:function(){return[{translateX:this.x},{translateY:this.y}]}},{key:"__attach",value:function(){this.x.__addChild(this),this.y.__addChild(this),(0,u.default)((0,l.default)(h.prototype),"__attach",this).call(this)}},{key:"__detach",value:function(){this.x.__removeChild(this),this.y.__removeChild(this),(0,u.default)((0,l.default)(h.prototype),"__detach",this).call(this)}},{key:"__makeNative",value:function(t){this.x.__makeNative(t),this.y.__makeNative(t),(0,u.default)((0,l.default)(h.prototype),"__makeNative",this).call(this,t)}}])})(h.default)}),286,[2,25,26,20,22,13,24,278,284,40]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),l=t(r(d[5])),u=t(r(d[6])),_=t(r(d[7])),c=t(r(d[8]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}_e.default=(function(t){function c(t){var n,s,u,f,v,p,y;return(0,e.default)(this,c),v=this,p=c,p=(0,l.default)(p),(f=(0,o.default)(v,h()?Reflect.construct(p,y||[],(0,l.default)(v).constructor):p.apply(v,y)))._deceleration=null!=(n=t.deceleration)?n:.998,f._velocity=t.velocity,f._useNativeDriver=_.default.shouldUseNativeDriver(t),f._platformConfig=t.platformConfig,f.__isInteraction=null!=(s=t.isInteraction)?s:!f._useNativeDriver,f.__iterations=null!=(u=t.iterations)?u:1,f}return(0,u.default)(c,t),(0,n.default)(c,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations,platformConfig:this._platformConfig}}},{key:"start",value:function(t,e,n,o,s){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(s):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{key:"onUpdate",value:function(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(e),Math.abs(this._lastValue-e)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){(0,s.default)((0,l.default)(c.prototype),"stop",this).call(this),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}])})(c.default)}),287,[2,25,26,20,22,13,24,275,288]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var n=t(r(d[1])),e=t(r(d[2])),o=t(r(d[3])),u=1;_e.default=(function(){return(0,e.default)((function t(){(0,n.default)(this,t)}),[{key:"start",value:function(t,n,e,o,u){}},{key:"stop",value:function(){this.__nativeId&&o.default.API.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__debouncedOnEnd",value:function(t){var n=this.__onEnd;this.__onEnd=null,n&&n(t)}},{key:"__startNativeAnimation",value:function(t){var n=`${u}:startAnimation`;u+=1,o.default.API.setWaitingForIdentifier(n);try{var e=this.__getNativeAnimationConfig();t.__makeNative(e.platformConfig),this.__nativeId=o.default.generateNewAnimationId(),o.default.API.startAnimatingNode(this.__nativeId,t.__getNativeTag(),e,this.__debouncedOnEnd.bind(this))}catch(t){throw t}finally{o.default.API.unsetWaitingForIdentifier(n)}}}])})()}),288,[2,25,26,275]); +__d((function(g,_r,_i,_a,_m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var i=t(_r(d[1])),e=t(_r(d[2])),s=t(_r(d[3])),n=t(_r(d[4])),a=t(_r(d[5])),o=t(_r(d[6])),l=t(_r(d[7])),r=(t(_r(d[8])),(function(t,i){if(!i&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=f(i);if(e&&e.has(t))return e.get(t);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var o=n?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(s,a,o):s[a]=t[a]}return s.default=t,e&&e.set(t,s),s})(_r(d[9]))),h=t(_r(d[10])),u=t(_r(d[11]));function f(t){if("function"!=typeof WeakMap)return null;var i=new WeakMap,e=new WeakMap;return(f=function(t){return t?e:i})(t)}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}_e.default=(function(t){function h(t){var e,n,o,f,c,m,p,v,y,V,T,b,M,P,D;if((0,i.default)(this,h),V=this,T=h,T=(0,a.default)(T),(y=(0,s.default)(V,_()?Reflect.construct(T,b||[],(0,a.default)(V).constructor):T.apply(V,b)))._overshootClamping=null!=(e=t.overshootClamping)&&e,y._restDisplacementThreshold=null!=(n=t.restDisplacementThreshold)?n:.001,y._restSpeedThreshold=null!=(o=t.restSpeedThreshold)?o:.001,y._initialVelocity=null!=(f=t.velocity)?f:0,y._lastVelocity=null!=(c=t.velocity)?c:0,y._toValue=t.toValue,y._delay=null!=(m=t.delay)?m:0,y._useNativeDriver=l.default.shouldUseNativeDriver(t),y._platformConfig=t.platformConfig,y.__isInteraction=null!=(p=t.isInteraction)?p:!y._useNativeDriver,y.__iterations=null!=(v=t.iterations)?v:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)(0,u.default)(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),y._stiffness=null!=(M=t.stiffness)?M:100,y._damping=null!=(P=t.damping)?P:10,y._mass=null!=(D=t.mass)?D:1;else if(void 0!==t.bounciness||void 0!==t.speed){var O,C;(0,u.default)(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var S=r.fromBouncinessAndSpeed(null!=(O=t.bounciness)?O:8,null!=(C=t.speed)?C:12);y._stiffness=S.stiffness,y._damping=S.damping,y._mass=1}else{var k,w,U=r.fromOrigamiTensionAndFriction(null!=(k=t.tension)?k:40,null!=(w=t.friction)?w:7);y._stiffness=U.stiffness,y._damping=U.damping,y._mass=1}return(0,u.default)(y._stiffness>0,'Stiffness value must be greater than 0'),(0,u.default)(y._damping>0,'Damping value must be greater than 0'),(0,u.default)(y._mass>0,'Mass value must be greater than 0'),y}return(0,o.default)(h,t),(0,e.default)(h,[{key:"__getNativeAnimationConfig",value:function(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(t=this._initialVelocity)?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}},{key:"start",value:function(t,i,e,s,n){var a=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=i,this.__onEnd=e,this._lastTime=Date.now(),this._frameTime=0,s instanceof h){var o=s.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var l=function(){a._useNativeDriver?a.__startNativeAnimation(n):a.onUpdate()};this._delay?this._timeout=setTimeout(l,this._delay):l()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var i=(t-this._lastTime)/1e3;this._frameTime+=i;var e=this._damping,s=this._mass,n=this._stiffness,a=-this._initialVelocity,o=e/(2*Math.sqrt(n*s)),l=Math.sqrt(n/s),r=l*Math.sqrt(1-o*o),h=this._toValue-this._startPosition,u=0,f=0,_=this._frameTime;if(o<1){var c=Math.exp(-o*l*_);u=this._toValue-c*((a+o*l*h)/r*Math.sin(r*_)+h*Math.cos(r*_)),f=o*l*c*(Math.sin(r*_)*(a+o*l*h)/r+h*Math.cos(r*_))-c*(Math.cos(r*_)*(a+o*l*h)-r*h*Math.sin(r*_))}else{var m=Math.exp(-l*_);u=this._toValue-m*(h+(a+l*h)*_),f=m*(a*(_*l-1)+_*h*(l*l))}if(this._lastTime=t,this._lastPosition=u,this._lastVelocity=f,this._onUpdate(u),this.__active){var p=!1;this._overshootClamping&&0!==this._stiffness&&(p=this._startPositionthis._toValue:u>>24,g:(16711680&e)>>>16,b:(65280&e)>>>8,a:(255&e)/255}}return null}function b(t){return t&&'number'==typeof t.r&&'number'==typeof t.g&&'number'==typeof t.b&&'number'==typeof t.a}function y(t){return t&&t.r instanceof o.default&&t.g instanceof o.default&&t.b instanceof o.default&&t.a instanceof o.default}_e.default=(function(t){function r(t,a){var n,l,u,f;(0,e.default)(this,r),l=this,u=r,u=(0,s.default)(u),(n=(0,i.default)(l,c()?Reflect.construct(u,f||[],(0,s.default)(l).constructor):u.apply(l,f)))._suspendCallbacks=0;var _=null!=t?t:g;if(y(_)){var h=_;n.r=h.r,n.g=h.g,n.b=h.b,n.a=h.a}else{var v,k=null!=(v=p(_))?v:g,C=g;b(k)?C=k:n.nativeColor=k,n.r=new o.default(C.r),n.g=new o.default(C.g),n.b=new o.default(C.b),n.a=new o.default(C.a)}return null!=a&&a.useNativeDriver&&n.__makeNative(),n}return(0,l.default)(r,t),(0,a.default)(r,[{key:"setValue",value:function(t){var e,a=this,i=!1;if(this.__isNative){var n=this.__getNativeTag();v.setWaitingForIdentifier(n.toString())}var s=null!=(e=p(t))?e:g;if(this._withSuspendedCallbacks((function(){if(b(s)){var t=s;a.r.setValue(t.r),a.g.setValue(t.g),a.b.setValue(t.b),a.a.setValue(t.a),null!=a.nativeColor&&(a.nativeColor=null,i=!0)}else{var e=s;a.nativeColor!==e&&(a.nativeColor=e,i=!0)}})),this.__isNative){var l=this.__getNativeTag();i&&v.updateAnimatedNodeConfig(l,this.__getNativeConfig()),v.unsetWaitingForIdentifier(l.toString())}else(0,o.flushValue)(this);this.__callListeners(this.__getValue())}},{key:"setOffset",value:function(t){this.r.setOffset(t.r),this.g.setOffset(t.g),this.b.setOffset(t.b),this.a.setOffset(t.a)}},{key:"flattenOffset",value:function(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}},{key:"extractOffset",value:function(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}},{key:"stopAnimation",value:function(t){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),t&&t(this.__getValue())}},{key:"resetAnimation",value:function(t){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),t&&t(this.__getValue())}},{key:"__getValue",value:function(){return null!=this.nativeColor?this.nativeColor:`rgba(${this.r.__getValue()}, ${this.g.__getValue()}, ${this.b.__getValue()}, ${this.a.__getValue()})`}},{key:"__attach",value:function(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),(0,n.default)((0,s.default)(r.prototype),"__attach",this).call(this)}},{key:"__detach",value:function(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),(0,n.default)((0,s.default)(r.prototype),"__detach",this).call(this)}},{key:"_withSuspendedCallbacks",value:function(t){this._suspendCallbacks++,t(),this._suspendCallbacks--}},{key:"__callListeners",value:function(t){0===this._suspendCallbacks&&(0,n.default)((0,s.default)(r.prototype),"__callListeners",this).call(this,t)}},{key:"__makeNative",value:function(t){this.r.__makeNative(t),this.g.__makeNative(t),this.b.__makeNative(t),this.a.__makeNative(t),(0,n.default)((0,s.default)(r.prototype),"__makeNative",this).call(this,t)}},{key:"__getNativeConfig",value:function(){return{type:'color',r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}])})(_.default)}),290,[2,25,26,20,22,13,24,74,76,275,278,284]); __d((function(g,r,i,a,m,e,d){'use strict';function n(n){return 3.62*(n-30)+194}function t(n){return 3*(n-8)+25}Object.defineProperty(e,"__esModule",{value:!0}),e.fromBouncinessAndSpeed=function(o,u){function f(n,t,o){return(n-t)/(o-t)}function c(n,t,o){return t+n*(o-t)}function s(n,t,o){return n*o+(1-n)*t}function p(n){return 44e-6*Math.pow(n,3)-.006*Math.pow(n,2)+.36*n+2}function M(n){return 45e-8*Math.pow(n,3)-332e-6*Math.pow(n,2)+.1078*n+5.84}var h=f(o/1.7,0,20);h=c(h,0,.8);var w=c(f(u/1.7,0,20),.5,200),v=(_=h,O=w,l=O<=18?(b=O,7e-4*Math.pow(b,3)-.031*Math.pow(b,2)+.64*b+1.28):O>18&&O<=44?p(O):M(O),A=.01,s(2*_-_*_,l,A));var _,l,A;var O,b;return{stiffness:n(w),damping:t(v)}},e.fromOrigamiTensionAndFriction=function(o,u){return{stiffness:n(o),damping:t(u)}}}),291,[]); -__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e,n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),s=t(r(d[4])),_=t(r(d[5])),l=t(r(d[6])),f=t(r(d[7])),h=(t(r(d[8])),t(r(d[9])));function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function v(){if(!e){var t=r(d[10]).default;e=t.inOut(t.ease)}return e}_e.default=(function(t){(0,s.default)(y,t);var e,h,p=(e=y,h=c(),function(){var t,n=(0,l.default)(e);if(h){var o=(0,l.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,_.default)(this,t)});function y(t){var e,o,u,s,_,l;return(0,n.default)(this,y),(l=p.call(this))._toValue=t.toValue,l._easing=null!=(e=t.easing)?e:v(),l._duration=null!=(o=t.duration)?o:500,l._delay=null!=(u=t.delay)?u:0,l.__iterations=null!=(s=t.iterations)?s:1,l._useNativeDriver=f.default.shouldUseNativeDriver(t),l._platformConfig=t.platformConfig,l.__isInteraction=null!=(_=t.isInteraction)?_:!l._useNativeDriver,l}return(0,o.default)(y,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],e=Math.round(this._duration/16.666666666666668),n=0;n=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){(0,u.default)((0,l.default)(y.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),y})(h.default)}),292,[2,21,22,14,17,19,16,275,290,288,282]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){return a.forwardRef((function(a,l){var i=(0,u.default)(a),c=(0,r.default)(i,2),p=c[0],s=c[1],y=(0,n.default)(s,l),O=p.passthroughAnimatedPropExplicitValues,j=p.style,_=null!=O?O:{},b=_.style,v=(0,t.default)(_,o),P=Object.assign({},j,b);return(0,f.jsx)(e,Object.assign({},p,v,{style:P,ref:y}))}))};var t=e(_r(d[1])),r=e(_r(d[2])),n=(e(_r(d[3])),e(_r(d[4]))),u=e(_r(d[5])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(n,a,f):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[6])),f=_r(d[7]),o=["style"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}}),293,[2,4,23,207,294,295,30,211]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=arguments.length,o=new Array(t),u=0;u=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){(0,u.default)((0,_.default)(e.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}])})(f.default)}),292,[2,25,26,20,22,13,24,275,290,288,282]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){return a.forwardRef((function(a,o){var i=(0,u.default)(a),c=(0,r.default)(i,2),s=c[0],p=c[1],y=(0,n.default)(p,o),O=s.passthroughAnimatedPropExplicitValues,_=s.style,j=null!=O?O:{},v=j.style,b=(0,t.default)(j,l),P=Object.assign({},_,v);return(0,f.jsx)(e,Object.assign({},s,b,{style:P,ref:y}))}))};var t=e(_r(d[1])),r=e(_r(d[2])),n=(e(_r(d[3])),e(_r(d[4]))),u=e(_r(d[5])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(n,a,f):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[6])),f=_r(d[7]),l=["style"];function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}}),293,[2,3,27,207,294,295,34,211]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=arguments.length,o=new Array(t),u=0;u1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return h},event:u.default.event,createAnimatedComponent:o.default,attachNativeEvent:n.attachNativeEvent,forkEvent:u.default.forkEvent,unforkEvent:u.default.unforkEvent,Event:n.AnimatedEvent}}),308,[2,274,273,293,290,281,285,278,286]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=o?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),o=_r(d[4]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var u=n.forwardRef((function(e,r){return(0,o.jsx)(t.default,Object.assign({scrollEventThrottle:1e-4},e,{ref:r}))}));_e.default=(0,r.default)(u)}),309,[2,310,293,30,211]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),l=e(r(d[5])),u=e(r(d[6])),c=r(d[7]),f=e(r(d[8])),p=r(d[9]),h=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var C=r(d[10]),y=r(d[11]),b=r(d[12]),_=(r(d[13]),r(d[14])),w=r(d[15]);function k(e){return null!=e?e:1}function I(e){return'number'==typeof Object(e).length}var R=(function(e){(0,s.default)(S,e);var R,P,V=(R=S,P=v(),function(){var e,t=(0,u.default)(R);if(P){var n=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function S(e){var t;return(0,n.default)(this,S),(t=V.call(this,e))._virtualizedListPairs=[],t._captureRef=function(e){t._listRef=e},t._getItem=function(e,n){var o=k(t.props.numColumns);if(o>1){for(var s=[],l=0;l1?Math.ceil(e.length/n):e.length}return 0},t._keyExtractor=function(e,n){var o,s=k(t.props.numColumns),l=null!=(o=t.props.keyExtractor)?o:c.keyExtractor;return s>1?(_(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",s),e.map((function(e,t){return l(e,n*s+t)})).join(':')):l(e,n)},t._renderer=function(e,t,n,o,s){var l=k(o),u=function(n){return e?(0,p.jsx)(e,Object.assign({},n)):t?t(n):null},c=function(e){if(l>1){var t=e.item,o=e.index;return _(Array.isArray(t),'Expected array of items with numColumns > 1'),(0,p.jsx)(C,{style:y.compose(x.row,n),children:t.map((function(t,n){var s=u({item:t,index:o*l+n,separators:e.separators});return null!=s?(0,p.jsx)(w.Fragment,{children:s},n):null}))})}return u(e)};return e?{ListItemComponent:c}:{renderItem:c}},t._memoizedRenderer=(0,f.default)(t._renderer),t._checkProps(t.props),t.props.viewabilityConfigCallbackPairs?t._virtualizedListPairs=t.props.viewabilityConfigCallbackPairs.map((function(e){return{viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(e.onViewableItemsChanged)}})):t.props.onViewableItemsChanged&&t._virtualizedListPairs.push({viewabilityConfig:t.props.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(t.props.onViewableItemsChanged)}),t}return(0,o.default)(S,[{key:"scrollToEnd",value:function(e){this._listRef&&this._listRef.scrollToEnd(e)}},{key:"scrollToIndex",value:function(e){this._listRef&&this._listRef.scrollToIndex(e)}},{key:"scrollToItem",value:function(e){this._listRef&&this._listRef.scrollToItem(e)}},{key:"scrollToOffset",value:function(e){this._listRef&&this._listRef.scrollToOffset(e)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getNativeScrollRef",value:function(){if(this._listRef)return this._listRef.getScrollRef()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(e){this._listRef&&this._listRef.setNativeProps(e)}},{key:"componentDidUpdate",value:function(e){_(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),_(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),_(!b(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),_(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(e){var t=e.getItem,n=e.getItemCount,o=e.horizontal,s=e.columnWrapperStyle,l=e.onViewableItemsChanged,u=e.viewabilityConfigCallbackPairs,c=k(this.props.numColumns);_(!t&&!n,'FlatList does not support custom data formats.'),c>1?_(!o,'numColumns does not support horizontal.'):_(!s,'columnWrapperStyle not supported for single column lists'),_(!(l&&u),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,t){var n,o=k(this.props.numColumns),s=null!=(n=this.props.keyExtractor)?n:c.keyExtractor;t.item.forEach((function(n,l){_(null!=t.index,'Missing index!');var u=t.index*o+l;e.push(Object.assign({},t,{item:n,key:s(n,u),index:u}))}))}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var o=k(t.props.numColumns);if(e)if(o>1){var s=[],l=[];n.viewableItems.forEach((function(e){return t._pushMultiColumnViewable(l,e)})),n.changed.forEach((function(e){return t._pushMultiColumnViewable(s,e)})),e({viewableItems:l,changed:s})}else e(n)}}},{key:"render",value:function(){var e,n=this.props,o=n.numColumns,s=n.columnWrapperStyle,l=n.removeClippedSubviews,u=n.strictMode,f=void 0!==u&&u,v=(0,t.default)(n,h),C=f?this._memoizedRenderer:this._renderer;return(0,p.jsx)(c.VirtualizedList,Object.assign({},v,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=l,null!=e&&e)},C(this.props.ListItemComponent,this.props.renderItem,s,o,this.props.extraData)))}}]),S})(w.PureComponent),x=y.create({row:{flexDirection:'row'}});m.exports=R}),310,[2,4,21,22,17,19,16,311,325,211,207,213,110,63,40,30]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=f?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),f=_r(d[4]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var o=n.forwardRef((function(e,r){return(0,f.jsx)(t.default,Object.assign({scrollEventThrottle:1e-4},e,{ref:r}))}));_e.default=(0,r.default)(o)}),309,[2,310,293,34,211]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),l=e(r(d[5])),u=e(r(d[6])),c=r(d[7]),f=e(r(d[8])),p=r(d[9]),h=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var C=r(d[10]),y=r(d[11]),b=r(d[12]),_=(r(d[13]),r(d[14])),w=r(d[15]);function k(e){return null!=e?e:1}function I(e){return'number'==typeof Object(e).length}var R=(function(e){function R(e){var t,o,u,h;return(0,n.default)(this,R),o=this,u=R,h=[e],u=(0,l.default)(u),(t=(0,s.default)(o,v()?Reflect.construct(u,h||[],(0,l.default)(o).constructor):u.apply(o,h)))._virtualizedListPairs=[],t._captureRef=function(e){t._listRef=e},t._getItem=function(e,n){var o=k(t.props.numColumns);if(o>1){for(var s=[],l=0;l1?Math.ceil(e.length/n):e.length}return 0},t._keyExtractor=function(e,n){var o,s=k(t.props.numColumns),l=null!=(o=t.props.keyExtractor)?o:c.keyExtractor;return s>1?(_(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",s),e.map((function(e,t){return l(e,n*s+t)})).join(':')):l(e,n)},t._renderer=function(e,t,n,o,s){var l=k(o),u=function(n){return e?(0,p.jsx)(e,Object.assign({},n)):t?t(n):null},c=function(e){if(l>1){var t=e.item,o=e.index;return _(Array.isArray(t),'Expected array of items with numColumns > 1'),(0,p.jsx)(C,{style:y.compose(x.row,n),children:t.map((function(t,n){var s=u({item:t,index:o*l+n,separators:e.separators});return null!=s?(0,p.jsx)(w.Fragment,{children:s},n):null}))})}return u(e)};return e?{ListItemComponent:c}:{renderItem:c}},t._memoizedRenderer=(0,f.default)(t._renderer),t._checkProps(t.props),t.props.viewabilityConfigCallbackPairs?t._virtualizedListPairs=t.props.viewabilityConfigCallbackPairs.map((function(e){return{viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(e.onViewableItemsChanged)}})):t.props.onViewableItemsChanged&&t._virtualizedListPairs.push({viewabilityConfig:t.props.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(t.props.onViewableItemsChanged)}),t}return(0,u.default)(R,e),(0,o.default)(R,[{key:"scrollToEnd",value:function(e){this._listRef&&this._listRef.scrollToEnd(e)}},{key:"scrollToIndex",value:function(e){this._listRef&&this._listRef.scrollToIndex(e)}},{key:"scrollToItem",value:function(e){this._listRef&&this._listRef.scrollToItem(e)}},{key:"scrollToOffset",value:function(e){this._listRef&&this._listRef.scrollToOffset(e)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getNativeScrollRef",value:function(){if(this._listRef)return this._listRef.getScrollRef()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(e){this._listRef&&this._listRef.setNativeProps(e)}},{key:"componentDidUpdate",value:function(e){_(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),_(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),_(!b(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),_(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(e){var t=e.getItem,n=e.getItemCount,o=e.horizontal,s=e.columnWrapperStyle,l=e.onViewableItemsChanged,u=e.viewabilityConfigCallbackPairs,c=k(this.props.numColumns);_(!t&&!n,'FlatList does not support custom data formats.'),c>1?_(!o,'numColumns does not support horizontal.'):_(!s,'columnWrapperStyle not supported for single column lists'),_(!(l&&u),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,t){var n,o=k(this.props.numColumns),s=null!=(n=this.props.keyExtractor)?n:c.keyExtractor;t.item.forEach((function(n,l){_(null!=t.index,'Missing index!');var u=t.index*o+l;e.push(Object.assign({},t,{item:n,key:s(n,u),index:u}))}))}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var o=k(t.props.numColumns);if(e)if(o>1){var s=[],l=[];n.viewableItems.forEach((function(e){return t._pushMultiColumnViewable(l,e)})),n.changed.forEach((function(e){return t._pushMultiColumnViewable(s,e)})),e({viewableItems:l,changed:s})}else e(n)}}},{key:"render",value:function(){var e,n=this.props,o=n.numColumns,s=n.columnWrapperStyle,l=n.removeClippedSubviews,u=n.strictMode,f=void 0!==u&&u,v=(0,t.default)(n,h),C=f?this._memoizedRenderer:this._renderer;return(0,p.jsx)(c.VirtualizedList,Object.assign({},v,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=l,null!=e&&e)},C(this.props.ListItemComponent,this.props.renderItem,s,o,this.props.extraData)))}}])})(w.PureComponent),x=y.create({row:{flexDirection:'row'}});m.exports=R}),310,[2,3,25,26,20,13,24,311,325,211,207,213,110,63,40,34]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports={keyExtractor:t.keyExtractor,get VirtualizedList(){return r(d[1])},get VirtualizedSectionList(){return r(d[2])},get VirtualizedListContextResetter(){return r(d[3]).VirtualizedListContextResetter},get ViewabilityHelper(){return r(d[4])},get FillRateHelper(){return r(d[5])}}}),311,[312,313,324,323,321,319]); -__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.computeWindowedRenderLimits=function(t,o,s,u,v,c){var h=t.getItemCount(t.data);if(0===h)return{first:0,last:-1};var M=c.offset,b=c.velocity,x=c.visibleLength,y=c.zoomScale,w=void 0===y?1:y,k=Math.max(0,M),p=k+x,C=(s-1)*x,O=b>1?'after':b<-1?'before':'none',_=Math.max(0,k-.5*C),j=Math.max(0,p+.5*C);if(v(h-1,t).offset*w<_)return{first:Math.max(0,h-1-o),last:h-1};var L=f([_,k,p,j],t,v,w),S=(0,n.default)(L,4),E=S[0],I=S[1],R=S[2],z=S[3];E=null==E?0:E,I=null==I?Math.max(0,E):I,z=null==z?h-1:z,R=null==R?Math.min(z,I+o-1):R;var B={first:I,last:R},F=l(u,B);for(;!(I<=E&&R>=z);){var J=F>=o,N=I<=u.first||I>u.last,P=I>E&&(!J||!N),T=R>=u.last||R=I&&I>=0&&R=E&&R<=z&&I<=B.first&&R>=B.last))throw new Error('Bad window calculation '+JSON.stringify({first:I,last:R,itemCount:h,overscanFirst:E,overscanLast:z,visible:B}));return{first:I,last:R}},e.elementsThatOverlapOffsets=f,e.keyExtractor=function(t,n){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(n)},e.newRangeCount=l;var n=t(r(d[1]));function f(t,n,f){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=n.getItemCount(n.data),s=[],u=0;u>>1),b=f(M,n),x=b.offset*l,y=(b.offset+b.length)*l;if(0===M&&vy)){s[u]=M;break}c=M+1}}return s}function l(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}}),312,[2,23]); -__d((function(g,_r,_i2,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),i=e(_r(d[5])),s=e(_r(d[6])),l=e(_r(d[7])),a=e(_r(d[8])),c=_r(d[9]),u=e(_r(d[10])),h=e(_r(d[11])),f=e(_r(d[12])),p=_r(d[13]),_=e(_r(d[14])),v=e(_r(d[15])),y=e(_r(d[16])),C=e(_r(d[17])),L=e(_r(d[18])),S=_r(d[19]),b=_r(d[20]),I=e(_r(d[21])),x=e(_r(d[22])),M=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=R(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[23])),w=_r(d[24]);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(R=function(e){return e?r:t})(e)}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var V=!1,T='';function F(e){return null!=e&&e}function E(e){return null!=e?e:10}function O(e){return null!=e?e:2}function P(e){return null!=e?e:2}function z(e,t){return e*t/2}function A(e){return null!=e?e:21}function K(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r]))return e[r];return null}var j=(function(e){(0,s.default)(N,e);var y,R,j=(y=N,R=k(),function(){var e,t=(0,a.default)(y);if(R){var r=(0,a.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function N(e){var t,r,o,s;if((0,n.default)(this,N),(s=j.call(this,e))._getScrollMetrics=function(){return s._scrollMetrics},s._getOutermostParentListRef=function(){return s._isNestedWithSameOrientation()?s.context.getOutermostParentListRef():(0,i.default)(s)},s._registerAsNestedChild=function(e){s._nestedChildLists.add(e.ref,e.cellKey),s._hasInteracted&&e.ref.recordInteraction()},s._unregisterAsNestedChild=function(e){s._nestedChildLists.remove(e.ref)},s._onUpdateSeparators=function(e,t){e.forEach((function(e){var r=null!=e&&s._cellRefs[e];r&&r.updateSeparatorProps(t)}))},s._getSpacerKey=function(e){return e?'height':'width'},s._averageCellLength=0,s._cellRefs={},s._frames={},s._footerLength=0,s._hasTriggeredInitialScrollToIndex=!1,s._hasInteracted=!1,s._hasMore=!1,s._hasWarned={},s._headerLength=0,s._hiPriInProgress=!1,s._highestMeasuredFrameIndex=0,s._indicesToKeys=new Map,s._lastFocusedCellKey=null,s._nestedChildLists=new _.default,s._offsetFromParentVirtualizedList=0,s._prevParentOffset=0,s._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},s._scrollRef=null,s._sentStartForContentLength=0,s._sentEndForContentLength=0,s._totalCellLength=0,s._totalCellsMeasured=0,s._viewabilityTuples=[],s._captureScrollRef=function(e){s._scrollRef=e},s._defaultRenderScrollComponent=function(e){var t,r=e.onRefresh;return s._isNestedWithSameOrientation()?(0,w.jsx)(c.View,Object.assign({},e)):r?((0,I.default)('boolean'==typeof e.refreshing,'`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `'+JSON.stringify(null!=(t=e.refreshing)?t:'undefined')+'`'),(0,w.jsx)(c.ScrollView,Object.assign({},e,{refreshControl:null==e.refreshControl?(0,w.jsx)(c.RefreshControl,{refreshing:e.refreshing,onRefresh:r,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):(0,w.jsx)(c.ScrollView,Object.assign({},e))},s._onCellLayout=function(e,t,r){var n=e.nativeEvent.layout,o={offset:s._selectOffset(n),length:s._selectLength(n),index:r,inLayout:!0},i=s._frames[t];i&&o.offset===i.offset&&o.length===i.length&&r===i.index?s._frames[t].inLayout=!0:(s._totalCellLength+=o.length-(i?i.length:0),s._totalCellsMeasured+=i?0:1,s._averageCellLength=s._totalCellLength/s._totalCellsMeasured,s._frames[t]=o,s._highestMeasuredFrameIndex=Math.max(s._highestMeasuredFrameIndex,r),s._scheduleCellsToRenderUpdate()),s._triggerRemeasureForChildListsInCell(t),s._computeBlankness(),s._updateViewableItems(s.props,s.state.cellsAroundViewport)},s._onCellUnmount=function(e){delete s._cellRefs[e];var t=s._frames[e];t&&(s._frames[e]=Object.assign({},t,{inLayout:!1}))},s._onLayout=function(e){s._isNestedWithSameOrientation()?s.measureLayoutRelativeToContainingList():s._scrollMetrics.visibleLength=s._selectLength(e.nativeEvent.layout),s.props.onLayout&&s.props.onLayout(e),s._scheduleCellsToRenderUpdate(),s._maybeCallOnEdgeReached()},s._onLayoutEmpty=function(e){s.props.onLayout&&s.props.onLayout(e)},s._onLayoutFooter=function(e){s._triggerRemeasureForChildListsInCell(s._getFooterCellKey()),s._footerLength=s._selectLength(e.nativeEvent.layout)},s._onLayoutHeader=function(e){s._headerLength=s._selectLength(e.nativeEvent.layout)},s._onContentSizeChange=function(e,t){e>0&&t>0&&null!=s.props.initialScrollIndex&&s.props.initialScrollIndex>0&&!s._hasTriggeredInitialScrollToIndex&&(null==s.props.contentOffset&&(s.props.initialScrollIndex500&&s._scrollMetrics.dt>500&&n>5*r&&!s._hasWarned.perf&&((0,f.default)("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:a,prevDt:s._scrollMetrics.dt,contentLength:n}),s._hasWarned.perf=!0);var u=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;s._scrollMetrics={contentLength:n,dt:a,dOffset:i,offset:o,timestamp:t,velocity:c,visibleLength:r,zoomScale:u},s.state.pendingScrollUpdateCount>0&&s.setState((function(e){return{pendingScrollUpdateCount:e.pendingScrollUpdateCount-1}})),s._updateViewableItems(s.props,s.state.cellsAroundViewport),s.props&&(s._maybeCallOnEdgeReached(),0!==c&&s._fillRateHelper.activate(),s._computeBlankness(),s._scheduleCellsToRenderUpdate())},s._onScrollBeginDrag=function(e){s._nestedChildLists.forEach((function(t){t._onScrollBeginDrag(e)})),s._viewabilityTuples.forEach((function(e){e.viewabilityHelper.recordInteraction()})),s._hasInteracted=!0,s.props.onScrollBeginDrag&&s.props.onScrollBeginDrag(e)},s._onScrollEndDrag=function(e){s._nestedChildLists.forEach((function(t){t._onScrollEndDrag(e)}));var t=e.nativeEvent.velocity;t&&(s._scrollMetrics.velocity=s._selectOffset(t)),s._computeBlankness(),s.props.onScrollEndDrag&&s.props.onScrollEndDrag(e)},s._onMomentumScrollBegin=function(e){s._nestedChildLists.forEach((function(t){t._onMomentumScrollBegin(e)})),s.props.onMomentumScrollBegin&&s.props.onMomentumScrollBegin(e)},s._onMomentumScrollEnd=function(e){s._nestedChildLists.forEach((function(t){t._onMomentumScrollEnd(e)})),s._scrollMetrics.velocity=0,s._computeBlankness(),s.props.onMomentumScrollEnd&&s.props.onMomentumScrollEnd(e)},s._updateCellsToRender=function(){s._updateViewableItems(s.props,s.state.cellsAroundViewport),s.setState((function(e,t){var r=s._adjustCellsAroundViewport(t,e.cellsAroundViewport,e.pendingScrollUpdateCount),n=N._createRenderMask(t,r,s._getNonViewportRenderRegions(t));return r.first===e.cellsAroundViewport.first&&r.last===e.cellsAroundViewport.last&&n.equals(e.renderMask)?null:{cellsAroundViewport:r,renderMask:n}}))},s._createViewToken=function(e,t,r){var n=r.data,o=(0,r.getItem)(n,e);return{index:e,item:o,key:N._keyExtractor(o,e,r),isViewable:t}},s._getOffsetApprox=function(e,t){if(Number.isInteger(e))return s.__getFrameMetricsApprox(e,t).offset;var r=s.__getFrameMetricsApprox(Math.floor(e),t),n=e-Math.floor(e);return r.offset+n*r.length},s.__getFrameMetricsApprox=function(e,t){var r=s._getFrameMetrics(e,t);if(r&&r.index===e)return r;var n=t.data,o=t.getItemCount,i=t.getItemLayout;return(0,I.default)(e>=0&&e=0&&e=r||N._getItemKey(e,t)!==s._lastFocusedCellKey)return[];for(var n=t,o=0,i=n-1;i>=0&&oy?N._getItemKey(s.props,y):null,pendingScrollUpdateCount:null!=s.props.initialScrollIndex&&s.props.initialScrollIndex>0?1:0},s}return(0,o.default)(N,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,r=this.props.getItemCount(this.props.data)-1;if(!(r<0)){var n=this.__getFrameMetricsApprox(r,this.props),o=Math.max(0,n.offset+n.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(F(this.props.horizontal)?{x:o,animated:t}:{y:o,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}},{key:"scrollToIndex",value:function(e){var t=this.props,r=t.data,n=t.horizontal,o=t.getItemCount,i=t.getItemLayout,s=t.onScrollToIndexFailed,l=e.animated,a=e.index,c=e.viewOffset,u=e.viewPosition;if((0,I.default)(a>=0,`scrollToIndex out of range: requested index ${a} but minimum is 0`),(0,I.default)(o(r)>=1,`scrollToIndex out of range: item length ${o(r)} but minimum is 1`),(0,I.default)(athis._highestMeasuredFrameIndex)return(0,I.default)(!!s,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void s({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:a});var h=this.__getFrameMetricsApprox(Math.floor(a),this.props),f=Math.max(0,this._getOffsetApprox(a,this.props)-(u||0)*(this._scrollMetrics.visibleLength-h.length))-(c||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(n?{x:f,animated:l}:{y:f,animated:l}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToItem",value:function(e){for(var t=e.item,r=this.props,n=r.data,o=r.getItem,i=(0,r.getItemCount)(n),s=0;s0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),(0,I.default)(n,'VirtualizedList: The "getItemCount" prop must be provided');var s=n(o);null==i||this._hasTriggeredInitialScrollToIndex||!(i<0||s>0&&i>=s)||this._hasWarned.initialScrollIndex||(console.warn(`initialScrollIndex "${i}" is not valid (list has ${s} items)`),this._hasWarned.initialScrollIndex=!0)}},{key:"_adjustCellsAroundViewport",value:function(e,t,r){var n,o=e.data,i=e.getItemCount,s=P(e.onEndReachedThreshold),l=this._scrollMetrics,a=l.contentLength,c=l.offset,u=l.visibleLength,h=a-u-c;if(u<=0||a<=0)return t.last>=i(o)?N._constrainToItemCount(t,e):t;if(e.disableVirtualization){var f=h0)return t.last>=i(o)?N._constrainToItemCount(t,e):t;n=(0,b.computeWindowedRenderLimits)(e,E(e.maxToRenderPerBatch),A(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),(0,I.default)(n.last0){var p=this._findFirstChildWithMore(n.first,n.last);n.last=null!=p?p:n.last}return n}},{key:"_findFirstChildWithMore",value:function(e,t){for(var r=e;r<=t;r++){var n=this._indicesToKeys.get(r);if(null!=n&&this._nestedChildLists.anyInCell(n,(function(e){return e.hasMore()})))return r}return null}},{key:"componentDidMount",value:function(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey})}},{key:"componentWillUnmount",value:function(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach((function(e){e.viewabilityHelper.dispose()})),this._fillRateHelper.deactivateAndFlush()}},{key:"_pushCells",value:function(e,t,r,n,o,i){var s,l=this,a=this.props,c=a.CellRendererComponent,u=a.ItemSeparatorComponent,h=a.ListHeaderComponent,f=a.ListItemComponent,p=a.data,_=a.debug,v=a.getItem,y=a.getItemCount,C=a.getItemLayout,S=a.horizontal,b=a.renderItem,I=h?1:0,x=y(p)-1;o=Math.min(x,o);for(var M=function(){var n=v(p,R),o=N._keyExtractor(n,R,l.props);l._indicesToKeys.set(R,o),r.has(R+I)&&t.push(e.length);var a=null==C||_||l._fillRateHelper.enabled();e.push((0,w.jsx)(L.default,Object.assign({CellRendererComponent:c,ItemSeparatorComponent:R0){V=!1,T='';var L=this._getSpacerKey(!a),b=this.state.renderMask.enumerateRegions(),I=K(b,(function(e){return e.isSpacer}));for(var x of b)if(x.isSpacer){if(this.props.disableVirtualization)continue;var R=x===I&&!this.props.getItemLayout?(0,h.default)(x.first-1,x.last,this._highestMeasuredFrameIndex):x.last,k=this.__getFrameMetricsApprox(x.first,this.props),E=this.__getFrameMetricsApprox(R,this.props),O=E.offset+E.length-k.offset;f.push((0,w.jsx)(c.View,{style:(0,r.default)({},L,O)},`$spacer-${x.first}`))}else this._pushCells(f,_,p,x.first,x.last,u);!this._hasWarned.keys&&V&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",T),this._hasWarned.keys=!0)}if(o){var P=M.isValidElement(o)?o:(0,w.jsx)(o,{});f.push((0,w.jsx)(S.VirtualizedListCellContextProvider,{cellKey:this._getFooterCellKey(),children:(0,w.jsx)(c.View,{onLayout:this._onLayoutFooter,style:c.StyleSheet.compose(u,this.props.ListFooterComponentStyle),children:P})},"$footer"))}var z,A=Object.assign({},this.props,{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(z=this.props.scrollEventThrottle,null!=z?z:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:_,style:u?[u,this.props.style]:this.props.style,isInvertedVirtualizedList:this.props.inverted,maintainVisibleContentPosition:null!=this.props.maintainVisibleContentPosition?Object.assign({},this.props.maintainVisibleContentPosition,{minIndexForVisible:this.props.maintainVisibleContentPosition.minIndexForVisible+(this.props.ListHeaderComponent?1:0)}):void 0});this._hasMore=this.state.cellsAroundViewport.last0)){var l=this._scrollMetrics,a=l.contentLength,c=l.visibleLength,u=l.offset,h=u,f=a-c-u;h<.001&&(h=0),f<.001&&(f=0);var p=h<=(null!=o?o*c:2),_=f<=(null!=s?s*c:2);i&&this.state.cellsAroundViewport.last===r(t)-1&&_&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,i({distanceFromEnd:f})):null!=n&&0===this.state.cellsAroundViewport.first&&p&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?(this._sentStartForContentLength=this._scrollMetrics.contentLength,n({distanceFromStart:h})):(this._sentStartForContentLength=p?this._sentStartForContentLength:0,this._sentEndForContentLength=_?this._sentEndForContentLength:0)}}},{key:"_scheduleCellsToRenderUpdate",value:function(){var e=this.state.cellsAroundViewport,t=e.first,r=e.last,n=this._scrollMetrics,o=n.offset,i=n.visibleLength,s=n.velocity,l=this.props.getItemCount(this.props.data),a=!1,c=O(this.props.onStartReachedThreshold),u=P(this.props.onEndReachedThreshold);if(t>0){var h=o-this.__getFrameMetricsApprox(t,this.props).offset;a=h<0||s<-2&&h=0&&r2&&f0||this._viewabilityTuples.forEach((function(n){n.viewabilityHelper.onUpdate(e,r._scrollMetrics.offset,r._scrollMetrics.visibleLength,r._getFrameMetrics,r._createViewToken,n.onViewableItemsChanged,t)}))}}],[{key:"_findItemIndexWithKey",value:function(e,t,r){var n=e.getItemCount(e.data);if(null!=r&&r>=0&&r=0&&r.last>=r.first-1&&r.last0){var s=[r].concat((0,t.default)(null!=n?n:[]));for(var l of s)i.addCells(l);if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var a=N._initialRenderRegion(e);i.addCells(a)}var c=new Set(e.stickyHeaderIndices);N._ensureClosestStickyHeader(e,c,i,r.first)}return i}},{key:"_initialRenderRegion",value:function(e){var t,r,n=e.getItemCount(e.data),o=Math.max(0,Math.min(n-1,Math.floor(null!=(t=e.initialScrollIndex)?t:0)));return{first:o,last:Math.min(n,o+(null!=(r=e.initialNumToRender)?r:10))-1}}},{key:"_ensureClosestStickyHeader",value:function(e,t,r,n){for(var o=e.ListHeaderComponent?1:0,i=n-1;i>=0;i--)if(t.has(i+o)){r.addCells({first:i,last:i});break}}},{key:"getDerivedStateFromProps",value:function(e,t){var r,n,o=e.getItemCount(e.data);if(o===t.renderMask.numCells())return t;var i=null,s=t.firstVisibleItemKey,l=null!=(r=null==(n=e.maintainVisibleContentPosition)?void 0:n.minIndexForVisible)?r:0,a=e.getItemCount(e.data)>l?N._getItemKey(e,l):null;if(null!=e.maintainVisibleContentPosition&&null!=s&&null!=a)if(a!==s){var c=o-t.renderMask.numCells()+l,u=N._findItemIndexWithKey(e,s,c);i=null!=u?u-l:null}else i=null;var h=N._constrainToItemCount(null!=i?{first:t.cellsAroundViewport.first+i,last:t.cellsAroundViewport.last+i}:t.cellsAroundViewport,e);return{cellsAroundViewport:h,renderMask:N._createRenderMask(e,h),firstVisibleItemKey:a,pendingScrollUpdateCount:null!=i?t.pendingScrollUpdateCount+1:t.pendingScrollUpdateCount}}},{key:"_constrainToItemCount",value:function(e,t){var r=t.getItemCount(t.data),n=Math.min(r-1,e.last),o=E(t.maxToRenderPerBatch);return{first:(0,h.default)(0,r-1-o,e.first),last:n}}},{key:"_keyExtractor",value:function(e,t,r){if(null!=r.keyExtractor)return r.keyExtractor(e,t);var n=(0,b.keyExtractor)(e,t);return n===String(t)&&(V=!0,e.type&&e.type.displayName&&(T=e.type.displayName)),n}}]),N})(y.default);j.contextType=S.VirtualizedListContext;var B=c.StyleSheet.create({verticallyInverted:'android'===c.Platform.OS?{transform:[{scale:-1}]}:{transform:[{scaleY:-1}]},horizontallyInverted:{transform:[{scaleX:-1}]},debug:{flex:1},debugOverlayBase:{position:'absolute',top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:'blue',borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:'orange'},debugOverlayFrameLast:{left:0,borderColor:'green',borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:'red',borderWidth:2}});m.exports=j}),313,[2,6,3,21,22,13,17,19,16,39,314,315,316,317,318,319,320,321,322,323,312,40,95,30,211]); -__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),l=r(d[2]).InteractionManager,s=(function(){function s(n,l){t(this,s),this._delay=l,this._callback=n}return n(s,[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout((function(){t._taskHandle=l.runAfterInteractions((function(){t._taskHandle=null,t._callback()}))}),this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}]),s})();m.exports=s}),314,[21,22,39]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.computeWindowedRenderLimits=function(t,o,s,u,v,c){var h=t.getItemCount(t.data);if(0===h)return{first:0,last:-1};var M=c.offset,b=c.velocity,x=c.visibleLength,y=c.zoomScale,w=void 0===y?1:y,k=Math.max(0,M),p=k+x,C=(s-1)*x,O=b>1?'after':b<-1?'before':'none',_=Math.max(0,k-.5*C),j=Math.max(0,p+.5*C);if(v(h-1,t).offset*w<_)return{first:Math.max(0,h-1-o),last:h-1};var L=f([_,k,p,j],t,v,w),S=(0,n.default)(L,4),E=S[0],I=S[1],R=S[2],z=S[3];E=null==E?0:E,I=null==I?Math.max(0,E):I,z=null==z?h-1:z,R=null==R?Math.min(z,I+o-1):R;var B={first:I,last:R},F=l(u,B);for(;!(I<=E&&R>=z);){var J=F>=o,N=I<=u.first||I>u.last,P=I>E&&(!J||!N),T=R>=u.last||R=I&&I>=0&&R=E&&R<=z&&I<=B.first&&R>=B.last))throw new Error('Bad window calculation '+JSON.stringify({first:I,last:R,itemCount:h,overscanFirst:E,overscanLast:z,visible:B}));return{first:I,last:R}},e.elementsThatOverlapOffsets=f,e.keyExtractor=function(t,n){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(n)},e.newRangeCount=l;var n=t(r(d[1]));function f(t,n,f){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=n.getItemCount(n.data),s=[],u=0;u>>1),b=f(M,n),x=b.offset*l,y=(b.offset+b.length)*l;if(0===M&&vy)){s[u]=M;break}c=M+1}}return s}function l(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}}),312,[2,27]); +__d((function(g,_r,_i2,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),i=e(_r(d[5])),s=e(_r(d[6])),l=e(_r(d[7])),a=_r(d[8]),c=e(_r(d[9])),u=e(_r(d[10])),h=e(_r(d[11])),f=_r(d[12]),p=e(_r(d[13])),_=e(_r(d[14])),v=e(_r(d[15])),y=e(_r(d[16])),C=e(_r(d[17])),L=_r(d[18]),S=_r(d[19]),b=e(_r(d[20])),I=e(_r(d[21])),x=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=w(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[22])),M=_r(d[23]);function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(w=function(e){return e?r:t})(e)}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}var k=!1,V='';function T(e){return null!=e&&e}function F(e){return null!=e?e:10}function E(e){return null!=e?e:2}function O(e){return null!=e?e:2}function P(e,t){return e*t/2}function z(e){return null!=e?e:21}function A(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r]))return e[r];return null}var K=(function(e){function v(e){var t,r,o,l,u,f,C;if((0,n.default)(this,v),u=this,f=v,C=[e],f=(0,s.default)(f),(l=(0,i.default)(u,R()?Reflect.construct(f,C||[],(0,s.default)(u).constructor):f.apply(u,C)))._getScrollMetrics=function(){return l._scrollMetrics},l._getOutermostParentListRef=function(){return l._isNestedWithSameOrientation()?l.context.getOutermostParentListRef():l},l._registerAsNestedChild=function(e){l._nestedChildLists.add(e.ref,e.cellKey),l._hasInteracted&&e.ref.recordInteraction()},l._unregisterAsNestedChild=function(e){l._nestedChildLists.remove(e.ref)},l._onUpdateSeparators=function(e,t){e.forEach((function(e){var r=null!=e&&l._cellRefs[e];r&&r.updateSeparatorProps(t)}))},l._getSpacerKey=function(e){return e?'height':'width'},l._averageCellLength=0,l._cellRefs={},l._frames={},l._footerLength=0,l._hasTriggeredInitialScrollToIndex=!1,l._hasInteracted=!1,l._hasMore=!1,l._hasWarned={},l._headerLength=0,l._hiPriInProgress=!1,l._highestMeasuredFrameIndex=0,l._indicesToKeys=new Map,l._lastFocusedCellKey=null,l._nestedChildLists=new p.default,l._offsetFromParentVirtualizedList=0,l._prevParentOffset=0,l._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},l._scrollRef=null,l._sentStartForContentLength=0,l._sentEndForContentLength=0,l._totalCellLength=0,l._totalCellsMeasured=0,l._viewabilityTuples=[],l._captureScrollRef=function(e){l._scrollRef=e},l._defaultRenderScrollComponent=function(e){var t,r=e.onRefresh;return l._isNestedWithSameOrientation()?(0,M.jsx)(a.View,Object.assign({},e)):r?((0,b.default)('boolean'==typeof e.refreshing,'`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `'+JSON.stringify(null!=(t=e.refreshing)?t:'undefined')+'`'),(0,M.jsx)(a.ScrollView,Object.assign({},e,{refreshControl:null==e.refreshControl?(0,M.jsx)(a.RefreshControl,{refreshing:e.refreshing,onRefresh:r,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):(0,M.jsx)(a.ScrollView,Object.assign({},e))},l._onCellLayout=function(e,t,r){var n=e.nativeEvent.layout,o={offset:l._selectOffset(n),length:l._selectLength(n),index:r,inLayout:!0},i=l._frames[t];i&&o.offset===i.offset&&o.length===i.length&&r===i.index?l._frames[t].inLayout=!0:(l._totalCellLength+=o.length-(i?i.length:0),l._totalCellsMeasured+=i?0:1,l._averageCellLength=l._totalCellLength/l._totalCellsMeasured,l._frames[t]=o,l._highestMeasuredFrameIndex=Math.max(l._highestMeasuredFrameIndex,r),l._scheduleCellsToRenderUpdate()),l._triggerRemeasureForChildListsInCell(t),l._computeBlankness(),l._updateViewableItems(l.props,l.state.cellsAroundViewport)},l._onCellUnmount=function(e){delete l._cellRefs[e];var t=l._frames[e];t&&(l._frames[e]=Object.assign({},t,{inLayout:!1}))},l._onLayout=function(e){l._isNestedWithSameOrientation()?l.measureLayoutRelativeToContainingList():l._scrollMetrics.visibleLength=l._selectLength(e.nativeEvent.layout),l.props.onLayout&&l.props.onLayout(e),l._scheduleCellsToRenderUpdate(),l._maybeCallOnEdgeReached()},l._onLayoutEmpty=function(e){l.props.onLayout&&l.props.onLayout(e)},l._onLayoutFooter=function(e){l._triggerRemeasureForChildListsInCell(l._getFooterCellKey()),l._footerLength=l._selectLength(e.nativeEvent.layout)},l._onLayoutHeader=function(e){l._headerLength=l._selectLength(e.nativeEvent.layout)},l._onContentSizeChange=function(e,t){e>0&&t>0&&null!=l.props.initialScrollIndex&&l.props.initialScrollIndex>0&&!l._hasTriggeredInitialScrollToIndex&&(null==l.props.contentOffset&&(l.props.initialScrollIndex500&&l._scrollMetrics.dt>500&&n>5*r&&!l._hasWarned.perf&&((0,h.default)("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:a,prevDt:l._scrollMetrics.dt,contentLength:n}),l._hasWarned.perf=!0);var u=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;l._scrollMetrics={contentLength:n,dt:a,dOffset:i,offset:o,timestamp:t,velocity:c,visibleLength:r,zoomScale:u},l.state.pendingScrollUpdateCount>0&&l.setState((function(e){return{pendingScrollUpdateCount:e.pendingScrollUpdateCount-1}})),l._updateViewableItems(l.props,l.state.cellsAroundViewport),l.props&&(l._maybeCallOnEdgeReached(),0!==c&&l._fillRateHelper.activate(),l._computeBlankness(),l._scheduleCellsToRenderUpdate())},l._onScrollBeginDrag=function(e){l._nestedChildLists.forEach((function(t){t._onScrollBeginDrag(e)})),l._viewabilityTuples.forEach((function(e){e.viewabilityHelper.recordInteraction()})),l._hasInteracted=!0,l.props.onScrollBeginDrag&&l.props.onScrollBeginDrag(e)},l._onScrollEndDrag=function(e){l._nestedChildLists.forEach((function(t){t._onScrollEndDrag(e)}));var t=e.nativeEvent.velocity;t&&(l._scrollMetrics.velocity=l._selectOffset(t)),l._computeBlankness(),l.props.onScrollEndDrag&&l.props.onScrollEndDrag(e)},l._onMomentumScrollBegin=function(e){l._nestedChildLists.forEach((function(t){t._onMomentumScrollBegin(e)})),l.props.onMomentumScrollBegin&&l.props.onMomentumScrollBegin(e)},l._onMomentumScrollEnd=function(e){l._nestedChildLists.forEach((function(t){t._onMomentumScrollEnd(e)})),l._scrollMetrics.velocity=0,l._computeBlankness(),l.props.onMomentumScrollEnd&&l.props.onMomentumScrollEnd(e)},l._updateCellsToRender=function(){l._updateViewableItems(l.props,l.state.cellsAroundViewport),l.setState((function(e,t){var r=l._adjustCellsAroundViewport(t,e.cellsAroundViewport,e.pendingScrollUpdateCount),n=v._createRenderMask(t,r,l._getNonViewportRenderRegions(t));return r.first===e.cellsAroundViewport.first&&r.last===e.cellsAroundViewport.last&&n.equals(e.renderMask)?null:{cellsAroundViewport:r,renderMask:n}}))},l._createViewToken=function(e,t,r){var n=r.data,o=(0,r.getItem)(n,e);return{index:e,item:o,key:v._keyExtractor(o,e,r),isViewable:t}},l._getOffsetApprox=function(e,t){if(Number.isInteger(e))return l.__getFrameMetricsApprox(e,t).offset;var r=l.__getFrameMetricsApprox(Math.floor(e),t),n=e-Math.floor(e);return r.offset+n*r.length},l.__getFrameMetricsApprox=function(e,t){var r=l._getFrameMetrics(e,t);if(r&&r.index===e)return r;var n=t.data,o=t.getItemCount,i=t.getItemLayout;return(0,b.default)(e>=0&&e=0&&e=r||v._getItemKey(e,t)!==l._lastFocusedCellKey)return[];for(var n=t,o=0,i=n-1;i>=0&&ok?v._getItemKey(l.props,k):null,pendingScrollUpdateCount:null!=l.props.initialScrollIndex&&l.props.initialScrollIndex>0?1:0},l}return(0,l.default)(v,e),(0,o.default)(v,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,r=this.props.getItemCount(this.props.data)-1;if(!(r<0)){var n=this.__getFrameMetricsApprox(r,this.props),o=Math.max(0,n.offset+n.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(T(this.props.horizontal)?{x:o,animated:t}:{y:o,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}},{key:"scrollToIndex",value:function(e){var t=this.props,r=t.data,n=t.horizontal,o=t.getItemCount,i=t.getItemLayout,s=t.onScrollToIndexFailed,l=e.animated,a=e.index,c=e.viewOffset,u=e.viewPosition;if((0,b.default)(a>=0,`scrollToIndex out of range: requested index ${a} but minimum is 0`),(0,b.default)(o(r)>=1,`scrollToIndex out of range: item length ${o(r)} but minimum is 1`),(0,b.default)(athis._highestMeasuredFrameIndex)return(0,b.default)(!!s,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void s({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:a});var h=this.__getFrameMetricsApprox(Math.floor(a),this.props),f=Math.max(0,this._getOffsetApprox(a,this.props)-(u||0)*(this._scrollMetrics.visibleLength-h.length))-(c||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(n?{x:f,animated:l}:{y:f,animated:l}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToItem",value:function(e){for(var t=e.item,r=this.props,n=r.data,o=r.getItem,i=(0,r.getItemCount)(n),s=0;s0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),(0,b.default)(n,'VirtualizedList: The "getItemCount" prop must be provided');var s=n(o);null==i||this._hasTriggeredInitialScrollToIndex||!(i<0||s>0&&i>=s)||this._hasWarned.initialScrollIndex||(console.warn(`initialScrollIndex "${i}" is not valid (list has ${s} items)`),this._hasWarned.initialScrollIndex=!0)}},{key:"_adjustCellsAroundViewport",value:function(e,t,r){var n,o=e.data,i=e.getItemCount,s=O(e.onEndReachedThreshold),l=this._scrollMetrics,a=l.contentLength,c=l.offset,u=l.visibleLength,h=a-u-c;if(u<=0||a<=0)return t.last>=i(o)?v._constrainToItemCount(t,e):t;if(e.disableVirtualization){var f=h0)return t.last>=i(o)?v._constrainToItemCount(t,e):t;n=(0,S.computeWindowedRenderLimits)(e,F(e.maxToRenderPerBatch),z(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),(0,b.default)(n.last0){var p=this._findFirstChildWithMore(n.first,n.last);n.last=null!=p?p:n.last}return n}},{key:"_findFirstChildWithMore",value:function(e,t){for(var r=e;r<=t;r++){var n=this._indicesToKeys.get(r);if(null!=n&&this._nestedChildLists.anyInCell(n,(function(e){return e.hasMore()})))return r}return null}},{key:"componentDidMount",value:function(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey})}},{key:"componentWillUnmount",value:function(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach((function(e){e.viewabilityHelper.dispose()})),this._fillRateHelper.deactivateAndFlush()}},{key:"_pushCells",value:function(e,t,r,n,o,i){var s,l=this,a=this.props,c=a.CellRendererComponent,u=a.ItemSeparatorComponent,h=a.ListHeaderComponent,f=a.ListItemComponent,p=a.data,_=a.debug,y=a.getItem,L=a.getItemCount,S=a.getItemLayout,b=a.horizontal,I=a.renderItem,x=h?1:0,w=L(p)-1;o=Math.min(w,o);for(var R=function(){var n=y(p,k),o=v._keyExtractor(n,k,l.props);l._indicesToKeys.set(k,o),r.has(k+x)&&t.push(e.length);var a=null==S||_||l._fillRateHelper.enabled();e.push((0,M.jsx)(C.default,Object.assign({CellRendererComponent:c,ItemSeparatorComponent:k0){k=!1,V='';var S=this._getSpacerKey(!c),b=this.state.renderMask.enumerateRegions(),I=A(b,(function(e){return e.isSpacer}));for(var w of b)if(w.isSpacer){if(this.props.disableVirtualization)continue;var R=w===I&&!this.props.getItemLayout?(0,u.default)(w.first-1,w.last,this._highestMeasuredFrameIndex):w.last,F=this.__getFrameMetricsApprox(w.first,this.props),E=this.__getFrameMetricsApprox(R,this.props),O=E.offset+E.length-F.offset;f.push((0,M.jsx)(a.View,{style:(0,r.default)({},S,O)},`$spacer-${w.first}`))}else this._pushCells(f,_,p,w.first,w.last,h);!this._hasWarned.keys&&k&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",V),this._hasWarned.keys=!0)}if(o){var P=x.isValidElement(o)?o:(0,M.jsx)(o,{});f.push((0,M.jsx)(L.VirtualizedListCellContextProvider,{cellKey:this._getFooterCellKey(),children:(0,M.jsx)(a.View,{onLayout:this._onLayoutFooter,style:a.StyleSheet.compose(h,this.props.ListFooterComponentStyle),children:P})},"$footer"))}var z,K=Object.assign({},this.props,{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(z=this.props.scrollEventThrottle,null!=z?z:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:_,style:h?[h,this.props.style]:this.props.style,isInvertedVirtualizedList:this.props.inverted,maintainVisibleContentPosition:null!=this.props.maintainVisibleContentPosition?Object.assign({},this.props.maintainVisibleContentPosition,{minIndexForVisible:this.props.maintainVisibleContentPosition.minIndexForVisible+(this.props.ListHeaderComponent?1:0)}):void 0});this._hasMore=this.state.cellsAroundViewport.last0)){var l=this._scrollMetrics,a=l.contentLength,c=l.visibleLength,u=l.offset,h=u,f=a-c-u;h<.001&&(h=0),f<.001&&(f=0);var p=h<=(null!=o?o*c:2),_=f<=(null!=s?s*c:2);i&&this.state.cellsAroundViewport.last===r(t)-1&&_&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,i({distanceFromEnd:f})):null!=n&&0===this.state.cellsAroundViewport.first&&p&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?(this._sentStartForContentLength=this._scrollMetrics.contentLength,n({distanceFromStart:h})):(this._sentStartForContentLength=p?this._sentStartForContentLength:0,this._sentEndForContentLength=_?this._sentEndForContentLength:0)}}},{key:"_scheduleCellsToRenderUpdate",value:function(){var e=this.state.cellsAroundViewport,t=e.first,r=e.last,n=this._scrollMetrics,o=n.offset,i=n.visibleLength,s=n.velocity,l=this.props.getItemCount(this.props.data),a=!1,c=E(this.props.onStartReachedThreshold),u=O(this.props.onEndReachedThreshold);if(t>0){var h=o-this.__getFrameMetricsApprox(t,this.props).offset;a=h<0||s<-2&&h=0&&r2&&f0||this._viewabilityTuples.forEach((function(n){n.viewabilityHelper.onUpdate(e,r._scrollMetrics.offset,r._scrollMetrics.visibleLength,r._getFrameMetrics,r._createViewToken,n.onViewableItemsChanged,t)}))}}],[{key:"_findItemIndexWithKey",value:function(e,t,r){var n=e.getItemCount(e.data);if(null!=r&&r>=0&&r=0&&r.last>=r.first-1&&r.last0){var s=[r].concat((0,t.default)(null!=n?n:[]));for(var l of s)i.addCells(l);if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var a=v._initialRenderRegion(e);i.addCells(a)}var c=new Set(e.stickyHeaderIndices);v._ensureClosestStickyHeader(e,c,i,r.first)}return i}},{key:"_initialRenderRegion",value:function(e){var t,r,n=e.getItemCount(e.data),o=Math.max(0,Math.min(n-1,Math.floor(null!=(t=e.initialScrollIndex)?t:0)));return{first:o,last:Math.min(n,o+(null!=(r=e.initialNumToRender)?r:10))-1}}},{key:"_ensureClosestStickyHeader",value:function(e,t,r,n){for(var o=e.ListHeaderComponent?1:0,i=n-1;i>=0;i--)if(t.has(i+o)){r.addCells({first:i,last:i});break}}},{key:"getDerivedStateFromProps",value:function(e,t){var r,n,o=e.getItemCount(e.data);if(o===t.renderMask.numCells())return t;var i=null,s=t.firstVisibleItemKey,l=null!=(r=null==(n=e.maintainVisibleContentPosition)?void 0:n.minIndexForVisible)?r:0,a=e.getItemCount(e.data)>l?v._getItemKey(e,l):null;if(null!=e.maintainVisibleContentPosition&&null!=s&&null!=a)if(a!==s){var c=o-t.renderMask.numCells()+l,u=v._findItemIndexWithKey(e,s,c);i=null!=u?u-l:null}else i=null;var h=v._constrainToItemCount(null!=i?{first:t.cellsAroundViewport.first+i,last:t.cellsAroundViewport.last+i}:t.cellsAroundViewport,e);return{cellsAroundViewport:h,renderMask:v._createRenderMask(e,h),firstVisibleItemKey:a,pendingScrollUpdateCount:null!=i?t.pendingScrollUpdateCount+1:t.pendingScrollUpdateCount}}},{key:"_constrainToItemCount",value:function(e,t){var r=t.getItemCount(t.data),n=Math.min(r-1,e.last),o=F(t.maxToRenderPerBatch);return{first:(0,u.default)(0,r-1-o,e.first),last:n}}},{key:"_keyExtractor",value:function(e,t,r){if(null!=r.keyExtractor)return r.keyExtractor(e,t);var n=(0,S.keyExtractor)(e,t);return n===String(t)&&(k=!0,e.type&&e.type.displayName&&(V=e.type.displayName)),n}}])})(v.default);K.contextType=L.VirtualizedListContext;var j=a.StyleSheet.create({verticallyInverted:'android'===a.Platform.OS?{transform:[{scale:-1}]}:{transform:[{scaleY:-1}]},horizontallyInverted:{transform:[{scaleX:-1}]},debug:{flex:1},debugOverlayBase:{position:'absolute',top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:'blue',borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:'orange'},debugOverlayFrameLast:{left:0,borderColor:'green',borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:'red',borderWidth:2}});m.exports=K}),313,[2,6,5,25,26,20,13,24,39,314,315,316,317,318,319,320,321,322,323,312,40,95,34,211]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),l=r(d[2]).InteractionManager,s=(function(){return n((function n(l,s){t(this,n),this._delay=s,this._callback=l}),[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout((function(){t._taskHandle=l.runAfterInteractions((function(){t._taskHandle=null,t._callback()}))}),this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}])})();m.exports=s}),314,[25,26,39]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n,u){return nu?u:n}}),315,[]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(){var n;return(n=console).log.apply(n,arguments)}}),316,[]); -__d((function(g,r,_i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.CellRenderMask=void 0;var t=s(r(d[1])),i=s(r(d[2])),l=s(r(d[3])),n=s(r(d[4])),f=s(r(d[5]));e.CellRenderMask=(function(){function s(t){(0,l.default)(this,s),(0,f.default)(t>=0,'CellRenderMask must contain a non-negative number os cells'),this._numCells=t,this._regions=0===t?[]:[{first:0,last:t-1,isSpacer:!0}]}return(0,n.default)(s,[{key:"enumerateRegions",value:function(){return this._regions}},{key:"addCells",value:function(s){var l;if((0,f.default)(s.first>=0&&s.first=-1&&s.last=s.first-1,'CellRenderMask.addCells called with invalid cell range'),!(s.lastS.last&&(v.isSpacer?k.push({first:S.last+1,last:v.last,isSpacer:!0}):S.last=v.last);var y=[].concat(C,[S],k),R=p-c+1;(l=this._regions).splice.apply(l,[c,R].concat((0,t.default)(y)))}}}},{key:"numCells",value:function(){return this._numCells}},{key:"equals",value:function(s){return this._numCells===s._numCells&&this._regions.length===s._regions.length&&this._regions.every((function(t,i){return t.first===s._regions[i].first&&t.last===s._regions[i].last&&t.isSpacer===s._regions[i].isSpacer}))}},{key:"_findRegion",value:function(s){for(var t=0,i=this._regions.length-1;t<=i;){var l=Math.floor((t+i)/2),n=this._regions[l];if(s>=n.first&&s<=n.last)return[n,l];sn.last&&(t=l+1)}(0,f.default)(!1,`A region was not found containing cellIdx ${s}`)}}]),s})()}),317,[2,6,23,21,22,40]); -__d((function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[1])),t=l(r(d[2])),o=l(r(d[3]));e.default=(function(){function l(){(0,n.default)(this,l),this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}return(0,t.default)(l,[{key:"add",value:function(l,n){var t;(0,o.default)(!this._childrenToCellKey.has(l),'Trying to add already present child list');var h=null!=(t=this._cellKeyToChildren.get(n))?t:new Set;h.add(l),this._cellKeyToChildren.set(n,h),this._childrenToCellKey.set(l,n)}},{key:"remove",value:function(l){var n=this._childrenToCellKey.get(l);(0,o.default)(null!=n,'Trying to remove non-present child list'),this._childrenToCellKey.delete(l);var t=this._cellKeyToChildren.get(n);(0,o.default)(t,'_cellKeyToChildren should contain cellKey'),t.delete(l),0===t.size&&this._cellKeyToChildren.delete(n)}},{key:"forEach",value:function(l){for(var n of this._cellKeyToChildren.values())for(var t of n)l(t)}},{key:"forEachInCell",value:function(l,n){var t,o=null!=(t=this._cellKeyToChildren.get(l))?t:[];for(var h of o)n(h)}},{key:"anyInCell",value:function(l,n){var t,o=null!=(t=this._cellKeyToChildren.get(l))?t:[];for(var h of o)if(n(h))return!0;return!1}},{key:"size",value:function(){return this._childrenToCellKey.size}}]),l})()}),318,[2,21,22,40]); -__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=t((function t(){n(this,t),this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0})),l=[],_=10,o=null,h=(function(){function h(t){n(this,h),this._anyBlankStartTime=null,this._enabled=!1,this._info=new s,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=t,this._enabled=(o||0)>Math.random(),this._resetData()}return t(h,[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count<_)this._resetData();else{var n=g.performance.now()-t,s=Object.assign({},this._info,{total_time_spent:n});l.forEach((function(t){return t(s)})),this._resetData()}}}},{key:"computeBlankness",value:function(t,n,s){if(!this._enabled||0===t.getItemCount(t.data)||n.last0&&(c=Math.min(h,Math.max(0,y.offset-_)));for(var p=0,b=n.last,v=this._getFrameMetrics(b,t);b>=n.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(b,t),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=M,T>.5&&(this._mostlyBlankStartTime=f,this._info.mostly_blank_count++)):(u<.01||Math.abs(l)<1)&&this.deactivateAndFlush(),T}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new s,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===o&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),l.push(t),{remove:function(){l=l.filter((function(n){return t!==n}))}}}},{key:"setSampleRate",value:function(t){o=t}},{key:"setMinSampleCount",value:function(t){_=t}}]),h})();m.exports=h}),319,[22,21]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),a=t(_r(d[4])),u=t(_r(d[5])),o=t(_r(d[6])),f=t(_r(d[7])),i=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var o=a?Object.getOwnPropertyDescriptor(t,u):null;o&&(o.get||o.set)?Object.defineProperty(r,u,o):r[u]=t[u]}return r.default=t,n&&n.set(t,r),r})(_r(d[8]));function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}_e.default=(function(t){(0,a.default)(p,t);var i,c,l=(i=p,c=s(),function(){var t,e=(0,o.default)(i);if(c){var n=(0,o.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function p(t){var n;return(0,e.default)(this,p),(n=l.call(this,t))._inAsyncStateUpdate=!1,n._installSetStateHooks(),n}return(0,n.default)(p,[{key:"setState",value:function(t,e){var n=this;'function'==typeof t?(0,r.default)((0,o.default)(p.prototype),"setState",this).call(this,(function(e,r){var a;n._inAsyncStateUpdate=!0;try{a=t(e,r)}catch(t){throw t}finally{n._inAsyncStateUpdate=!1}return a}),e):(0,r.default)((0,o.default)(p.prototype),"setState",this).call(this,t,e)}},{key:"_installSetStateHooks",value:function(){var t=this,e=this.props,n=this.state;Object.defineProperty(this,'props',{get:function(){return(0,f.default)(!t._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),e},set:function(t){e=t}}),Object.defineProperty(this,'state',{get:function(){return(0,f.default)(!t._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n},set:function(t){n=t}})}}]),p})(i.PureComponent)}),320,[2,21,22,14,17,19,16,40,30]); -__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=(function(){function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};n(this,l),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=t}return s(l,[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,s,l,h){var u=t.getItemCount(t.data),v=this._config,f=v.itemVisiblePercentThreshold,_=v.viewAreaCoveragePercentThreshold,w=null!=_,I=w?_:f;o(null!=I&&null!=f!=(null!=_),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===u)return b;var y=-1,p=h||{first:0,last:u-1},T=p.first,k=p.last;if(k>=u)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:h,itemCount:u})),[];for(var V=T;V<=k;V++){var C=l(V,t);if(C){var M=C.offset-n,P=M+C.length;if(M0)y=V,c(w,I,M,P,s,C.length)&&b.push(V);else if(y>=0)break}}return b}},{key:"onUpdate",value:function(t,n,s,o,l,c,h){var u=this,v=t.getItemCount(t.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==v&&o(0,t)){var f=[];if(v&&(f=this.computeViewableItems(t,n,s,o,h)),this._viewableIndices.length!==f.length||!this._viewableIndices.every((function(t,n){return t===f[n]})))if(this._viewableIndices=f,this._config.minimumViewTime){var _=setTimeout((function(){u._timers.delete(_),u._onUpdateSync(t,f,c,l)}),this._config.minimumViewTime);this._timers.add(_)}else this._onUpdateSync(t,f,c,l)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(n,s,o,l){var c=this;s=s.filter((function(t){return c._viewableIndices.includes(t)}));var h=this._viewableItems,u=new Map(s.map((function(t){var s=l(t,!0,n);return[s.key,s]}))),v=[];for(var f of u){var _=t(f,2),w=_[0],I=_[1];h.has(w)||v.push(I)}for(var b of h){var y=t(b,2),p=y[0],T=y[1];u.has(p)||v.push(Object.assign({},T,{isViewable:!1}))}v.length>0&&(this._viewableItems=u,o({viewableItems:Array.from(u.values()),changed:v,viewabilityConfig:this._config}))}}]),l})();function c(t,n,s,o,l,c){if(u(s,o,l))return!0;var v=h(s,o,l);return 100*(t?v/l:v/c)>=n}function h(t,n,s){var o=Math.min(n,s)-Math.max(t,0);return Math.max(0,o)}function u(t,n,s){return t>=0&&n<=s&&n>t}m.exports=l}),321,[23,21,22,40]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),o=e(_r(d[3])),n=e(_r(d[4])),a=e(_r(d[5])),i=_r(d[6]),l=_r(d[7]),s=e(_r(d[8])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o})(_r(d[9])),u=_r(d[10]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}_e.default=(function(e){(0,o.default)(C,e);var c,h,v=(c=C,h=f(),function(){var e,t=(0,a.default)(c);if(h){var r=(0,a.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,n.default)(this,e)});function C(){var e;(0,t.default)(this,C);for(var r=arguments.length,o=new Array(r),n=0;n0&&this.props.stickySectionHeadersEnabled)r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length;var i=Object.assign({},e,{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){var e=this,t=this.props,r=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,n.default)(t,S)),i=this.props.ListHeaderComponent?1:0,o=this.props.stickySectionHeadersEnabled?[]:void 0,a=0;for(var l of this.props.sections)null!=o&&o.push(a+i),a+=2,a+=this.props.getItemCount(l.data);var s=this._renderItem(a);return(0,v.jsx)(c.default,Object.assign({},r,{keyExtractor:this._keyExtractor,stickyHeaderIndices:o,renderItem:s,data:this.props.sections,getItem:function(t,n){return e._getItem(e.props,t,n)},getItemCount:function(){return a},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var r=n-1,i=0;i=i(u)+1))return-1===t?{section:s,key:c+':header',index:null,header:!0,trailingSection:a[l+1]}:t===i(u)?{section:s,key:c+':footer',index:null,header:!1,trailingSection:a[l+1]}:{section:s,key:c+':'+(s.keyExtractor||o||p.keyExtractor)(r(u,t),t),index:t,leadingItem:r(u,t-1),leadingSection:a[l-1],trailingItem:r(u,t+1),trailingSection:a[l+1]};t-=i(u)+1}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}]),_})(h.PureComponent);function x(e){var n=e.LeadingSeparatorComponent,r=e.SeparatorComponent,i=e.cellKey,o=e.prevCellKey,a=e.setSelfHighlightCallback,l=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,c=e.updatePropsFor,p=e.item,f=e.index,S=e.section,_=e.inverted,I=h.useState(!1),y=(0,t.default)(I,2),x=y[0],b=y[1],k=h.useState(!1),C=(0,t.default)(k,2),H=C[0],w=C[1],E=h.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),P=(0,t.default)(E,2),j=P[0],O=P[1],F=h.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),R=(0,t.default)(F,2),M=R[0],V=R[1];h.useEffect((function(){return a(i,w),s(i,V),function(){s(i,null),a(i,null)}}),[i,a,V,s]);var U={highlight:function(){b(!0),w(!0),null!=o&&l(o,!0)},unhighlight:function(){b(!1),w(!1),null!=o&&l(o,!1)},updateProps:function(e,t){'leading'===e?null!=n?O(Object.assign({},j,t)):null!=o&&c(o,Object.assign({},j,t)):'trailing'===e&&null!=r&&V(Object.assign({},M,t))}},L=e.renderItem({item:p,index:f,section:S,separators:U}),B=null!=n&&(0,v.jsx)(n,Object.assign({highlighted:x},j)),K=null!=r&&(0,v.jsx)(r,Object.assign({highlighted:H},M));return B||K?(0,v.jsxs)(u.View,{children:[!1===_?B:K,L,!1===_?K:B]}):L}m.exports=y}),324,[2,23,4,21,22,13,17,19,16,39,313,312,40,30,211]); +__d((function(g,r,_i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.CellRenderMask=void 0;var t=s(r(d[1])),i=s(r(d[2])),l=s(r(d[3])),n=s(r(d[4])),f=s(r(d[5]));e.CellRenderMask=(function(){return(0,n.default)((function s(t){(0,l.default)(this,s),(0,f.default)(t>=0,'CellRenderMask must contain a non-negative number os cells'),this._numCells=t,this._regions=0===t?[]:[{first:0,last:t-1,isSpacer:!0}]}),[{key:"enumerateRegions",value:function(){return this._regions}},{key:"addCells",value:function(s){var l;if((0,f.default)(s.first>=0&&s.first=-1&&s.last=s.first-1,'CellRenderMask.addCells called with invalid cell range'),!(s.lastS.last&&(v.isSpacer?k.push({first:S.last+1,last:v.last,isSpacer:!0}):S.last=v.last);var y=[].concat(C,[S],k),R=p-c+1;(l=this._regions).splice.apply(l,[c,R].concat((0,t.default)(y)))}}}},{key:"numCells",value:function(){return this._numCells}},{key:"equals",value:function(s){return this._numCells===s._numCells&&this._regions.length===s._regions.length&&this._regions.every((function(t,i){return t.first===s._regions[i].first&&t.last===s._regions[i].last&&t.isSpacer===s._regions[i].isSpacer}))}},{key:"_findRegion",value:function(s){for(var t=0,i=this._regions.length-1;t<=i;){var l=Math.floor((t+i)/2),n=this._regions[l];if(s>=n.first&&s<=n.last)return[n,l];sn.last&&(t=l+1)}(0,f.default)(!1,`A region was not found containing cellIdx ${s}`)}}])})()}),317,[2,6,27,25,26,40]); +__d((function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[1])),t=l(r(d[2])),o=l(r(d[3]));e.default=(function(){return(0,t.default)((function l(){(0,n.default)(this,l),this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}),[{key:"add",value:function(l,n){var t;(0,o.default)(!this._childrenToCellKey.has(l),'Trying to add already present child list');var h=null!=(t=this._cellKeyToChildren.get(n))?t:new Set;h.add(l),this._cellKeyToChildren.set(n,h),this._childrenToCellKey.set(l,n)}},{key:"remove",value:function(l){var n=this._childrenToCellKey.get(l);(0,o.default)(null!=n,'Trying to remove non-present child list'),this._childrenToCellKey.delete(l);var t=this._cellKeyToChildren.get(n);(0,o.default)(t,'_cellKeyToChildren should contain cellKey'),t.delete(l),0===t.size&&this._cellKeyToChildren.delete(n)}},{key:"forEach",value:function(l){for(var n of this._cellKeyToChildren.values())for(var t of n)l(t)}},{key:"forEachInCell",value:function(l,n){var t,o=null!=(t=this._cellKeyToChildren.get(l))?t:[];for(var h of o)n(h)}},{key:"anyInCell",value:function(l,n){var t,o=null!=(t=this._cellKeyToChildren.get(l))?t:[];for(var h of o)if(n(h))return!0;return!1}},{key:"size",value:function(){return this._childrenToCellKey.size}}])})()}),318,[2,25,26,40]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=t((function t(){n(this,t),this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0})),l=[],_=10,o=null,h=(function(){return t((function t(l){n(this,t),this._anyBlankStartTime=null,this._enabled=!1,this._info=new s,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=l,this._enabled=(o||0)>Math.random(),this._resetData()}),[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count<_)this._resetData();else{var n=g.performance.now()-t,s=Object.assign({},this._info,{total_time_spent:n});l.forEach((function(t){return t(s)})),this._resetData()}}}},{key:"computeBlankness",value:function(t,n,s){if(!this._enabled||0===t.getItemCount(t.data)||n.last0&&(c=Math.min(h,Math.max(0,y.offset-_)));for(var p=0,b=n.last,v=this._getFrameMetrics(b,t);b>=n.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(b,t),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=M,T>.5&&(this._mostlyBlankStartTime=f,this._info.mostly_blank_count++)):(u<.01||Math.abs(l)<1)&&this.deactivateAndFlush(),T}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new s,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===o&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),l.push(t),{remove:function(){l=l.filter((function(n){return t!==n}))}}}},{key:"setSampleRate",value:function(t){o=t}},{key:"setMinSampleCount",value:function(t){_=t}}])})();m.exports=h}),319,[26,25]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),a=t(_r(d[4])),u=t(_r(d[5])),o=t(_r(d[6])),i=t(_r(d[7])),f=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var o=a?Object.getOwnPropertyDescriptor(t,u):null;o&&(o.get||o.set)?Object.defineProperty(r,u,o):r[u]=t[u]}return r.default=t,n&&n.set(t,r),r})(_r(d[8]));function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}_e.default=(function(t){function f(t){var n,a,o,i;return(0,e.default)(this,f),a=this,o=f,i=[t],o=(0,u.default)(o),(n=(0,r.default)(a,c()?Reflect.construct(o,i||[],(0,u.default)(a).constructor):o.apply(a,i)))._inAsyncStateUpdate=!1,n._installSetStateHooks(),n}return(0,o.default)(f,t),(0,n.default)(f,[{key:"setState",value:function(t,e){var n=this;'function'==typeof t?(0,a.default)((0,u.default)(f.prototype),"setState",this).call(this,(function(e,r){var a;n._inAsyncStateUpdate=!0;try{a=t(e,r)}catch(t){throw t}finally{n._inAsyncStateUpdate=!1}return a}),e):(0,a.default)((0,u.default)(f.prototype),"setState",this).call(this,t,e)}},{key:"_installSetStateHooks",value:function(){var t=this,e=this.props,n=this.state;Object.defineProperty(this,'props',{get:function(){return(0,i.default)(!t._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),e},set:function(t){e=t}}),Object.defineProperty(this,'state',{get:function(){return(0,i.default)(!t._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n},set:function(t){n=t}})}}])})(f.PureComponent)}),320,[2,25,26,20,22,13,24,40,34]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=(function(){return s((function t(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};n(this,t),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=s}),[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,s,l,h){var u=t.getItemCount(t.data),v=this._config,f=v.itemVisiblePercentThreshold,_=v.viewAreaCoveragePercentThreshold,w=null!=_,I=w?_:f;o(null!=I&&null!=f!=(null!=_),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===u)return b;var y=-1,p=h||{first:0,last:u-1},T=p.first,k=p.last;if(k>=u)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:h,itemCount:u})),[];for(var V=T;V<=k;V++){var C=l(V,t);if(C){var M=C.offset-n,P=M+C.length;if(M0)y=V,c(w,I,M,P,s,C.length)&&b.push(V);else if(y>=0)break}}return b}},{key:"onUpdate",value:function(t,n,s,o,l,c,h){var u=this,v=t.getItemCount(t.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==v&&o(0,t)){var f=[];if(v&&(f=this.computeViewableItems(t,n,s,o,h)),this._viewableIndices.length!==f.length||!this._viewableIndices.every((function(t,n){return t===f[n]})))if(this._viewableIndices=f,this._config.minimumViewTime){var _=setTimeout((function(){u._timers.delete(_),u._onUpdateSync(t,f,c,l)}),this._config.minimumViewTime);this._timers.add(_)}else this._onUpdateSync(t,f,c,l)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(n,s,o,l){var c=this;s=s.filter((function(t){return c._viewableIndices.includes(t)}));var h=this._viewableItems,u=new Map(s.map((function(t){var s=l(t,!0,n);return[s.key,s]}))),v=[];for(var f of u){var _=t(f,2),w=_[0],I=_[1];h.has(w)||v.push(I)}for(var b of h){var y=t(b,2),p=y[0],T=y[1];u.has(p)||v.push(Object.assign({},T,{isViewable:!1}))}v.length>0&&(this._viewableItems=u,o({viewableItems:Array.from(u.values()),changed:v,viewabilityConfig:this._config}))}}])})();function c(t,n,s,o,l,c){if(u(s,o,l))return!0;var v=h(s,o,l);return 100*(t?v/l:v/c)>=n}function h(t,n,s){var o=Math.min(n,s)-Math.max(t,0);return Math.max(0,o)}function u(t,n,s){return t>=0&&n<=s&&n>t}m.exports=l}),321,[27,25,26,40]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),o=e(_r(d[3])),n=e(_r(d[4])),a=e(_r(d[5])),i=_r(d[6]),l=_r(d[7]),s=e(_r(d[8])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o})(_r(d[9])),u=_r(d[10]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}_e.default=(function(e){function c(){var e,r,a,i;(0,t.default)(this,c);for(var l=arguments.length,s=new Array(l),p=0;p0&&this.props.stickySectionHeadersEnabled)r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length;var i=Object.assign({},e,{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){var e=this,t=this.props,r=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,n.default)(t,v)),i=this.props.ListHeaderComponent?1:0,o=this.props.stickySectionHeadersEnabled?[]:void 0,a=0;for(var l of this.props.sections)null!=o&&o.push(a+i),a+=2,a+=this.props.getItemCount(l.data);var s=this._renderItem(a);return(0,h.jsx)(u.default,Object.assign({},r,{keyExtractor:this._keyExtractor,stickyHeaderIndices:o,renderItem:s,data:this.props.sections,getItem:function(t,n){return e._getItem(e.props,t,n)},getItemCount:function(){return a},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var r=n-1,i=0;i=i(u)+1))return-1===t?{section:s,key:p+':header',index:null,header:!0,trailingSection:a[l+1]}:t===i(u)?{section:s,key:p+':footer',index:null,header:!1,trailingSection:a[l+1]}:{section:s,key:p+':'+(s.keyExtractor||o||c.keyExtractor)(r(u,t),t),index:t,leadingItem:r(u,t-1),leadingSection:a[l-1],trailingItem:r(u,t+1),trailingSection:a[l+1]};t-=i(u)+1}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}])})(f.PureComponent);function y(e){var n=e.LeadingSeparatorComponent,r=e.SeparatorComponent,i=e.cellKey,o=e.prevCellKey,a=e.setSelfHighlightCallback,l=e.updateHighlightFor,u=e.setSelfUpdatePropsCallback,c=e.updatePropsFor,p=e.item,v=e.index,S=e.section,_=e.inverted,I=f.useState(!1),y=(0,t.default)(I,2),x=y[0],b=y[1],k=f.useState(!1),C=(0,t.default)(k,2),H=C[0],w=C[1],E=f.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),P=(0,t.default)(E,2),j=P[0],O=P[1],F=f.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),M=(0,t.default)(F,2),R=M[0],V=M[1];f.useEffect((function(){return a(i,w),u(i,V),function(){u(i,null),a(i,null)}}),[i,a,V,u]);var U={highlight:function(){b(!0),w(!0),null!=o&&l(o,!0)},unhighlight:function(){b(!1),w(!1),null!=o&&l(o,!1)},updateProps:function(e,t){'leading'===e?null!=n?O(Object.assign({},j,t)):null!=o&&c(o,Object.assign({},j,t)):'trailing'===e&&null!=r&&V(Object.assign({},R,t))}},L=e.renderItem({item:p,index:v,section:S,separators:U}),B=null!=n&&(0,h.jsx)(n,Object.assign({highlighted:x},j)),K=null!=r&&(0,h.jsx)(r,Object.assign({highlighted:H},R));return B||K?(0,h.jsxs)(s.View,{children:[!1===_?B:K,L,!1===_?K:B]}):L}m.exports=I}),324,[2,27,3,25,26,20,13,24,39,313,312,40,34,211]); __d((function(g,r,_i2,a,m,e,d){'use strict';var t=Number.isNaN||function(t){return'number'==typeof t&&t!=t};function n(n,u){if(n.length!==u.length)return!1;for(var i=0;i component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');var W=e['aria-busy'],x=e['aria-checked'],P=e['aria-disabled'],F=e['aria-expanded'],T=e['aria-selected'],A=(e.height,e.src,e.width,(0,t.default)(e,y)),q={busy:null!=W?W:null==(i=e.accessibilityState)?void 0:i.busy,checked:null!=x?x:null==(n=e.accessibilityState)?void 0:n.checked,disabled:null!=P?P:null==(o=e.accessibilityState)?void 0:o.disabled,expanded:null!=F?F:null==(f=e.accessibilityState)?void 0:f.expanded,selected:null!=T?T:null==(h=e.accessibilityState)?void 0:h.selected},D=null!=(p=e['aria-label'])?p:e.accessibilityLabel;return(0,b.jsx)(l.default.Consumer,{children:function(t){return(0,b.jsx)(s.default,Object.assign({accessibilityState:q},A,{accessible:void 0!==e.alt||e.accessible,accessibilityLabel:null!=D?D:e.alt,ref:a,style:w,resizeMode:k,tintColor:C,source:v,internal_analyticTag:t}))}})}));null!=o.default.unstable_createImageComponent&&(I=o.default.unstable_createImageComponent(I)),I.displayName='Image',I.getSize=function(e,t,a){f.default.getSize(e).then((function(e){var a=(0,i.default)(e,2),r=a[0],n=a[1];return t(r,n)})).catch(a||function(){console.warn('Failed to get size for image '+e)})},I.getSizeWithHeaders=function(e,t,a,i){return f.default.getSizeWithHeaders(e,t).then((function(e){a(e.width,e.height)})).catch(i||function(){console.warn('Failed to get size for image: '+e)})},I.prefetch=function(e){return f.default.prefetchImage(e)},I.prefetchWithMetadata=function(e,t,a){return f.default.prefetchImageWithMetadata?f.default.prefetchImageWithMetadata(e,t,a||0):f.default.prefetchImage(e)},I.queryCache=function(e){return w.apply(this,arguments)},I.resolveAssetSource=h.default,I.propTypes=_r(d[15]).ImagePropTypes;var j=n.default.create({base:{overflow:'hidden'}});m.exports=I}),327,[2,4,12,23,111,213,328,329,332,333,330,334,80,30,211,249]); -__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(null);_e.default=t}),328,[30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;e(_r(d[1])),e(_r(d[2])),(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}o.default=e,n&&n.set(e,o)})(_r(d[3]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default={unstable_createImageComponent:null}}),329,[2,330,331,30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var r=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(r);if(t&&t.has(e))return t.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,t&&t.set(e,o),o})(_r(d[1])),t=_r(d[2]),o=e(_r(d[3]));function a(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:r})(e)}var n=_e.__INTERNAL_VIEW_CONFIG='android'===o.default.OS?{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,internal_analyticTag:!0,resizeMode:!0,tintColor:{process:_r(d[4]).default},borderBottomLeftRadius:!0,borderTopLeftRadius:!0,resizeMethod:!0,src:!0,borderRadius:!0,headers:!0,shouldNotifyLoadEvents:!0,defaultSrc:!0,overlayColor:{process:_r(d[4]).default},borderColor:{process:_r(d[4]).default},accessible:!0,progressiveRenderingEnabled:!0,fadeDuration:!0,borderBottomRightRadius:!0,borderTopRightRadius:!0,loadingIndicatorSrc:!0}}:{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:Object.assign({blurRadius:!0,capInsets:{diff:_r(d[5])},defaultSource:{process:_r(d[6])},internal_analyticTag:!0,resizeMode:!0,source:!0,tintColor:{process:_r(d[4]).default}},(0,t.ConditionallyIgnoredEventHandlers)({onLoadStart:!0,onLoad:!0,onLoadEnd:!0,onProgress:!0,onError:!0,onPartialLoad:!0}))},i=r.get('RCTImageView',(function(){return n}));_e.default=i}),330,[2,69,104,63,73,90,80]); -__d((function(g,_r,_i,_a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(u,i,a):u[i]=e[i]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}var r=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTTextInlineImage',bubblingEventTypes:{},directEventTypes:{},validAttributes:{resizeMode:!0,src:!0,tintColor:{process:_r(d[1]).default},headers:!0}},n=e.get('RCTTextInlineImage',(function(){return r}));_e.default=n}),331,[69,73]); -__d((function(g,r,i,a,m,e,d){'use strict';var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getImageSourcesFromImageProps=function(s){var o,n=(0,l.default)(s.source),u=s.crossOrigin,c=s.referrerPolicy,h=s.src,f=s.srcSet,p=s.width,v=s.height,w={};'use-credentials'===u&&(w['Access-Control-Allow-Credentials']='true');null!=c&&(w['Referrer-Policy']=c);if(null!=f){var x=[],P=f.split(', '),y=!0;P.forEach((function(s){var l=s.split(' '),o=(0,t.default)(l,2),n=o[0],u=o[1],c=void 0===u?'1x':u;if(c.endsWith('x')){var h=parseInt(c.split('x')[0],10);isNaN(h)||(y=1!==h&&y,x.push({headers:w,scale:h,uri:n,width:p,height:v}))}else console.warn('The provided format for scale is not supported yet. Please use scales like 1x, 2x, etc.')})),y&&null!=h&&x.push({headers:w,scale:1,uri:h,width:p,height:v}),0===x.length&&console.warn('The provided value for srcSet is not valid.'),o=x}else o=null!=h?[{uri:h,headers:w,width:p,height:v}]:n;return o};var t=s(r(d[1])),l=s(r(d[2]))}),332,[2,23,80]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=f?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(u,a,o):u[a]=e[a]}u.default=e,r&&r.set(e,u)})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.default=(0,r.default)(t.default)}),326,[2,327,293,34]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),a=e(_r(d[2])),i=e(_r(d[3])),r=e(_r(d[4])),n=e(_r(d[5])),l=e(_r(d[6])),o=e(_r(d[7])),c=_r(d[8]),u=_r(d[9]),s=e(_r(d[10])),f=e(_r(d[11])),h=e(_r(d[12])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=v(t);if(a&&a.has(e))return a.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(i,n,l):i[n]=e[n]}return i.default=e,a&&a.set(e,i),i})(_r(d[13])),b=_r(d[14]),y=["aria-busy","aria-checked","aria-disabled","aria-expanded","aria-selected","height","src","width"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(v=function(e){return e?a:t})(e)}function w(){return(w=(0,a.default)((function*(e){return yield f.default.queryCache(e)}))).apply(this,arguments)}var I=p.forwardRef((function(e,a){var i,n,o,f,h,p,v,w,I=(0,c.getImageSourcesFromImageProps)(e)||{uri:void 0,width:void 0,height:void 0};if(Array.isArray(I))w=(0,r.default)([S.base,e.style])||{},v=I;else{var j=I.width,M=void 0===j?e.width:j,_=I.height,z=void 0===_?e.height:_,O=I.uri;w=(0,r.default)([{width:M,height:z},S.base,e.style])||{},v=[I],''===O&&console.warn('source.uri should not be an empty string')}var k=(w&&w.objectFit?(0,u.convertObjectFitToResizeMode)(w.objectFit):null)||e.resizeMode||w&&w.resizeMode||'cover',C=e.tintColor||w.tintColor;if(null!=e.children)throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');var W=e['aria-busy'],x=e['aria-checked'],P=e['aria-disabled'],F=e['aria-expanded'],T=e['aria-selected'],A=(e.height,e.src,e.width,(0,t.default)(e,y)),q={busy:null!=W?W:null==(i=e.accessibilityState)?void 0:i.busy,checked:null!=x?x:null==(n=e.accessibilityState)?void 0:n.checked,disabled:null!=P?P:null==(o=e.accessibilityState)?void 0:o.disabled,expanded:null!=F?F:null==(f=e.accessibilityState)?void 0:f.expanded,selected:null!=T?T:null==(h=e.accessibilityState)?void 0:h.selected},D=null!=(p=e['aria-label'])?p:e.accessibilityLabel;return(0,b.jsx)(l.default.Consumer,{children:function(t){return(0,b.jsx)(s.default,Object.assign({accessibilityState:q},A,{accessible:void 0!==e.alt||e.accessible,accessibilityLabel:null!=D?D:e.alt,ref:a,style:w,resizeMode:k,tintColor:C,source:v,internal_analyticTag:t}))}})}));null!=o.default.unstable_createImageComponent&&(I=o.default.unstable_createImageComponent(I)),I.displayName='Image',I.getSize=function(e,t,a){f.default.getSize(e).then((function(e){var a=(0,i.default)(e,2),r=a[0],n=a[1];return t(r,n)})).catch(a||function(){console.warn('Failed to get size for image '+e)})},I.getSizeWithHeaders=function(e,t,a,i){return f.default.getSizeWithHeaders(e,t).then((function(e){a(e.width,e.height)})).catch(i||function(){console.warn('Failed to get size for image: '+e)})},I.prefetch=function(e){return f.default.prefetchImage(e)},I.prefetchWithMetadata=function(e,t,a){return f.default.prefetchImageWithMetadata?f.default.prefetchImageWithMetadata(e,t,a||0):f.default.prefetchImage(e)},I.queryCache=function(e){return w.apply(this,arguments)},I.resolveAssetSource=h.default,I.propTypes=_r(d[15]).ImagePropTypes;var S=n.default.create({base:{overflow:'hidden'}});m.exports=I}),327,[2,3,18,27,111,213,328,329,332,333,330,334,80,34,211,249]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=o?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=t[f]}return u.default=t,n&&n.set(t,u),u})(_r(d[0])).createContext(null);_e.default=t}),328,[34]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;e(_r(d[1])),e(_r(d[2])),(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}o.default=e,n&&n.set(e,o)})(_r(d[3]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default={unstable_createImageComponent:null}}),329,[2,330,331,34]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var r=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(r);if(t&&t.has(e))return t.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,t&&t.set(e,o),o})(_r(d[1])),t=_r(d[2]),o=e(_r(d[3]));function a(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:r})(e)}var n=_e.__INTERNAL_VIEW_CONFIG='android'===o.default.OS?{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,internal_analyticTag:!0,resizeMode:!0,tintColor:{process:_r(d[4]).default},borderBottomLeftRadius:!0,borderTopLeftRadius:!0,resizeMethod:!0,src:!0,borderRadius:!0,headers:!0,shouldNotifyLoadEvents:!0,defaultSrc:!0,overlayColor:{process:_r(d[4]).default},borderColor:{process:_r(d[4]).default},accessible:!0,progressiveRenderingEnabled:!0,fadeDuration:!0,borderBottomRightRadius:!0,borderTopRightRadius:!0,loadingIndicatorSrc:!0}}:{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:Object.assign({blurRadius:!0,capInsets:{diff:_r(d[5])},defaultSource:{process:_r(d[6])},internal_analyticTag:!0,resizeMode:!0,source:!0,tintColor:{process:_r(d[4]).default}},(0,t.ConditionallyIgnoredEventHandlers)({onLoadStart:!0,onLoad:!0,onLoadEnd:!0,onProgress:!0,onError:!0,onPartialLoad:!0}))},i=r.get('RCTImageView',(function(){return n}));_e.default=i}),330,[2,69,104,63,73,90,80]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(u,a,o):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}var r=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTTextInlineImage',bubblingEventTypes:{},directEventTypes:{},validAttributes:{resizeMode:!0,src:!0,tintColor:{process:_r(d[1]).default},headers:!0}},n=e.get('RCTTextInlineImage',(function(){return r}));_e.default=n}),331,[69,73]); +__d((function(g,r,i,a,m,e,d){'use strict';var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getImageSourcesFromImageProps=function(s){var o,n=(0,l.default)(s.source),u=s.crossOrigin,c=s.referrerPolicy,h=s.src,f=s.srcSet,p=s.width,v=s.height,w={};'use-credentials'===u&&(w['Access-Control-Allow-Credentials']='true');null!=c&&(w['Referrer-Policy']=c);if(null!=f){var x=[],P=f.split(', '),y=!0;P.forEach((function(s){var l=s.split(' '),o=(0,t.default)(l,2),n=o[0],u=o[1],c=void 0===u?'1x':u;if(c.endsWith('x')){var h=parseInt(c.split('x')[0],10);isNaN(h)||(y=1!==h&&y,x.push({headers:w,scale:h,uri:n,width:p,height:v}))}else console.warn('The provided format for scale is not supported yet. Please use scales like 1x, 2x, etc.')})),y&&null!=h&&x.push({headers:w,scale:1,uri:h,width:p,height:v}),0===x.length&&console.warn('The provided value for srcSet is not valid.'),o=x}else o=null!=h?[{uri:h,headers:w,width:p,height:v}]:n;return o};var t=s(r(d[1])),l=s(r(d[2]))}),332,[2,27,80]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.convertObjectFitToResizeMode=function(n){return{contain:'contain',cover:'cover',fill:'stretch','scale-down':'contain'}[n]}}),333,[]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('ImageLoader')}),334,[60]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=(e(_r(d[2])),e(_r(d[3]))),n=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),f=e(_r(d[7])),a=e(_r(d[8])),u=e(_r(d[9])),s=e(_r(d[10])),i=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var f=o?Object.getOwnPropertyDescriptor(e,l):null;f&&(f.get||f.set)?Object.defineProperty(n,l,f):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(_r(d[11])),c=i,p=_r(d[12]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}var j=c.forwardRef((function(e,t){return'android'===f.default.OS&&null!=e.refreshControl&&null!=e.style?(0,p.jsx)(O,Object.assign({scrollEventThrottle:1e-4},e,{ref:t,refreshControl:e.refreshControl})):(0,p.jsx)(v,Object.assign({scrollEventThrottle:1e-4},e,{ref:t}))})),O=c.forwardRef((function(e,f){var u=(0,i.useMemo)((function(){var t=(0,o.default)((0,n.default)(e.style)),r=t.outer,l=t.inner;return{intermediatePropsForRefreshControl:{style:r},intermediatePropsForScrollView:Object.assign({},e,{style:l})}}),[e]),y=u.intermediatePropsForRefreshControl,j=u.intermediatePropsForScrollView,O=(0,s.default)(y),v=(0,t.default)(O,2),b=v[0],h=v[1],P=c.cloneElement(e.refreshControl,Object.assign({},b,{ref:h})),_=(0,s.default)(j),w=(0,t.default)(_,2),C=w[0],M=w[1],F=(0,a.default)(M,f);return(0,p.jsx)(r.default,Object.assign({},C,{ref:F,refreshControl:P,style:l.default.compose(C.style,b.style)}))})),v=(0,u.default)(r.default);_e.default=j}),335,[2,23,336,339,111,342,213,63,294,293,295,30,211]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),s=e(_r(d[5])),i=e(_r(d[6])),f=(l(_r(d[7])),l(_r(d[8]))),a=_r(d[9]),u=["enabled","colors","progressBackgroundColor","size"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}_r(d[10]);var h=(function(e){(0,o.default)(v,e);var c,l,h=(c=v,l=p(),function(){var e,t=(0,i.default)(c);if(l){var r=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,s.default)(this,e)});function v(){var e;(0,r.default)(this,v);for(var t=arguments.length,n=new Array(t),o=0;o0&&(this._scrollAnimatedValueAttachment=s.default.attachNativeEvent(this._scrollView.nativeInstance,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,n){n?this._stickyHeaderRefs.set(e,n):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,n,t){var o=this.props.stickyHeaderIndices;if(o){var r=x.Children.toArray(this.props.children);if(t===this._getKeyForIndex(e,r)){var l=n.nativeEvent.layout.y;this._headerLayoutYs.set(t,l);var i=o.indexOf(e),a=o[i-1];if(null!=a){var s=this._stickyHeaderRefs.get(this._getKeyForIndex(a,r));s&&s.setNextHeaderY&&s.setNextHeaderY(l)}}}}},{key:"render",value:function(){var e=this,t=!0===this.props.horizontal?L:z,o=(0,n.default)(t,2),r=o[0],l=o[1],i=[!0===this.props.horizontal&&F.contentContainerHorizontal,this.props.contentContainerStyle],a=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},s=this.props.stickyHeaderIndices,c=this.props.children;if(null!=s&&s.length>0){var u=x.Children.toArray(this.props.children);c=u.map((function(n,t){var o=n?s.indexOf(t):-1;if(o>-1){var r=n.key,l=s[o+1],i=e.props.StickyHeaderComponent||O.default;return(0,N.jsx)(i,{nativeID:'StickyHeader-'+r,ref:function(n){return e._setStickyHeaderRef(r,n)},nextHeaderLayoutY:e._headerLayoutYs.get(e._getKeyForIndex(l,u)),onLayout:function(n){return e._onStickyHeaderLayout(t,n,r)},scrollAnimatedValue:e._scrollAnimatedValue,inverted:e.props.invertStickyHeaders,hiddenOnScroll:e.props.stickyHeaderHiddenOnScroll,scrollViewHeight:e.state.layoutHeight,children:n},r)}return n}))}c=(0,N.jsx)(M.default.Provider,{value:!0===this.props.horizontal?M.HORIZONTAL:M.VERTICAL,children:c});var p=Array.isArray(s)&&s.length>0,S=(0,N.jsx)(l,Object.assign({},a,{ref:this._innerView.getForwardingRef(this.props.innerViewRef),style:i,removeClippedSubviews:('android'!==v.default.OS||!p)&&this.props.removeClippedSubviews,collapsable:!1,children:c})),_=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,b=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,w=!0===this.props.horizontal?F.baseHorizontal:F.baseVertical,R=Object.assign({},this.props,{alwaysBounceHorizontal:_,alwaysBounceVertical:b,style:y.default.compose(w,this.props.style),onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,onResponderGrant:this._handleResponderGrant,onResponderReject:this._handleResponderReject,onResponderRelease:this._handleResponderRelease,onResponderTerminationRequest:this._handleResponderTerminationRequest,onScrollBeginDrag:this._handleScrollBeginDrag,onScrollEndDrag:this._handleScrollEndDrag,onScrollShouldSetResponder:this._handleScrollShouldSetResponder,onStartShouldSetResponder:this._handleStartShouldSetResponder,onStartShouldSetResponderCapture:this._handleStartShouldSetResponderCapture,onTouchEnd:this._handleTouchEnd,onTouchMove:this._handleTouchMove,onTouchStart:this._handleTouchStart,onTouchCancel:this._handleTouchCancel,onScroll:this._handleScroll,scrollEventThrottle:p?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:v.default.select({ios:!0===this.props.pagingEnabled&&null==this.props.snapToInterval&&null==this.props.snapToOffsets,android:!0===this.props.pagingEnabled||null!=this.props.snapToInterval||null!=this.props.snapToOffsets})}),T=this.props.decelerationRate;null!=T&&(R.decelerationRate=(0,I.default)(T));var k=this.props.refreshControl,V=this._scrollView.getForwardingRef(this.props.scrollViewRef);if(k){if('ios'===v.default.OS)return(0,N.jsxs)(r,Object.assign({},R,{ref:V,children:[k,S]}));if('android'===v.default.OS){var H=(0,f.default)((0,h.default)(R.style)),E=H.outer,D=H.inner;return x.cloneElement(k,{style:y.default.compose(w,E)},(0,N.jsx)(r,Object.assign({},R,{style:y.default.compose(w,D),ref:V,children:S})))}}return(0,N.jsx)(r,Object.assign({},R,{ref:V,children:S}))}}]),V})(x.Component);P.Context=M.default;var F=y.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function G(e){var n={getForwardingRef:(0,K.default)((function(t){return function(o){var r=null==o?null:e(o);n.nativeInstance=o,n.publicInstance=r,null!=t&&('function'==typeof t?t(r):t.current=r)}})),nativeInstance:null,publicInstance:null};return n}function U(e,n){return(0,N.jsx)(P,Object.assign({},e,{scrollViewRef:n}))}U.displayName='ScrollView';var Y=x.forwardRef(U);Y.Context=M.default,Y.displayName='ScrollView',m.exports=Y}),339,[2,23,21,22,13,17,19,16,273,340,45,93,111,342,213,83,343,63,344,67,207,347,348,349,350,351,352,353,354,40,325,95,30,211,232]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('ImageLoader')}),334,[60]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var r=e(_r(d[1])),t=(e(_r(d[2])),e(_r(d[3]))),n=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),f=e(_r(d[7])),a=e(_r(d[8])),u=e(_r(d[9])),s=e(_r(d[10])),i=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=y(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var f=o?Object.getOwnPropertyDescriptor(e,l):null;f&&(f.get||f.set)?Object.defineProperty(n,l,f):n[l]=e[l]}return n.default=e,t&&t.set(e,n),n})(_r(d[11])),c=i,p=_r(d[12]);function y(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(y=function(e){return e?t:r})(e)}var j=c.forwardRef((function(e,r){return'android'===f.default.OS&&null!=e.refreshControl&&null!=e.style?(0,p.jsx)(v,Object.assign({scrollEventThrottle:1e-4},e,{ref:r,refreshControl:e.refreshControl})):(0,p.jsx)(O,Object.assign({scrollEventThrottle:1e-4},e,{ref:r}))})),v=c.forwardRef((function(e,f){var u=(0,i.useMemo)((function(){var r=(0,o.default)((0,n.default)(e.style)),t=r.outer,l=r.inner;return{intermediatePropsForRefreshControl:{style:t},intermediatePropsForScrollView:Object.assign({},e,{style:l})}}),[e]),y=u.intermediatePropsForRefreshControl,j=u.intermediatePropsForScrollView,v=(0,s.default)(y),O=(0,r.default)(v,2),b=O[0],h=O[1],P=c.cloneElement(e.refreshControl,Object.assign({},b,{ref:h})),_=(0,s.default)(j),w=(0,r.default)(_,2),C=w[0],M=w[1],F=(0,a.default)(M,f);return(0,p.jsx)(t.default,Object.assign({},C,{ref:F,refreshControl:P,style:l.default.compose(C.style,b.style)}))})),O=(0,u.default)(t.default);_e.default=j}),335,[2,27,336,339,111,342,213,63,294,293,295,34,211]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),s=e(_r(d[5])),i=e(_r(d[6])),a=(c(_r(d[7])),c(_r(d[8]))),f=_r(d[9]),u=["enabled","colors","progressBackgroundColor","size"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}_r(d[10]);var h=(function(e){function l(){var e,t,n,i;(0,r.default)(this,l);for(var a=arguments.length,f=new Array(a),u=0;u0&&(this._scrollAnimatedValueAttachment=a.default.attachNativeEvent(this._scrollView.nativeInstance,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,n){n?this._stickyHeaderRefs.set(e,n):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,n,o){var t=this.props.stickyHeaderIndices;if(t){var r=A.Children.toArray(this.props.children);if(o===this._getKeyForIndex(e,r)){var l=n.nativeEvent.layout.y;this._headerLayoutYs.set(o,l);var i=t.indexOf(e),a=t[i-1];if(null!=a){var s=this._stickyHeaderRefs.get(this._getKeyForIndex(a,r));s&&s.setNextHeaderY&&s.setNextHeaderY(l)}}}}},{key:"render",value:function(){var e=this,o=!0===this.props.horizontal?L:j,t=(0,n.default)(o,2),r=t[0],l=t[1],i=[!0===this.props.horizontal&&P.contentContainerHorizontal,this.props.contentContainerStyle],a=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},s=this.props.stickyHeaderIndices,c=this.props.children;if(null!=s&&s.length>0){var u=A.Children.toArray(this.props.children);c=u.map((function(n,o){var t=n?s.indexOf(o):-1;if(t>-1){var r=n.key,l=s[t+1],i=e.props.StickyHeaderComponent||E.default;return(0,x.jsx)(i,{nativeID:'StickyHeader-'+r,ref:function(n){return e._setStickyHeaderRef(r,n)},nextHeaderLayoutY:e._headerLayoutYs.get(e._getKeyForIndex(l,u)),onLayout:function(n){return e._onStickyHeaderLayout(o,n,r)},scrollAnimatedValue:e._scrollAnimatedValue,inverted:e.props.invertStickyHeaders,hiddenOnScroll:e.props.stickyHeaderHiddenOnScroll,scrollViewHeight:e.state.layoutHeight,children:n},r)}return n}))}c=(0,x.jsx)(H.default.Provider,{value:!0===this.props.horizontal?H.HORIZONTAL:H.VERTICAL,children:c});var y=Array.isArray(s)&&s.length>0,S=(0,x.jsx)(l,Object.assign({},a,{ref:this._innerView.getForwardingRef(this.props.innerViewRef),style:i,removeClippedSubviews:('android'!==_.default.OS||!y)&&this.props.removeClippedSubviews,collapsable:!1,children:c})),b=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,v=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,w=!0===this.props.horizontal?P.baseHorizontal:P.baseVertical,R=Object.assign({},this.props,{alwaysBounceHorizontal:b,alwaysBounceVertical:v,style:f.default.compose(w,this.props.style),onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,onResponderGrant:this._handleResponderGrant,onResponderReject:this._handleResponderReject,onResponderRelease:this._handleResponderRelease,onResponderTerminationRequest:this._handleResponderTerminationRequest,onScrollBeginDrag:this._handleScrollBeginDrag,onScrollEndDrag:this._handleScrollEndDrag,onScrollShouldSetResponder:this._handleScrollShouldSetResponder,onStartShouldSetResponder:this._handleStartShouldSetResponder,onStartShouldSetResponderCapture:this._handleStartShouldSetResponderCapture,onTouchEnd:this._handleTouchEnd,onTouchMove:this._handleTouchMove,onTouchStart:this._handleTouchStart,onTouchCancel:this._handleTouchCancel,onScroll:this._handleScroll,scrollEventThrottle:y?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:_.default.select({ios:!0===this.props.pagingEnabled&&null==this.props.snapToInterval&&null==this.props.snapToOffsets,android:!0===this.props.pagingEnabled||null!=this.props.snapToInterval||null!=this.props.snapToOffsets})}),T=this.props.decelerationRate;null!=T&&(R.decelerationRate=(0,k.default)(T));var I=this.props.refreshControl,V=this._scrollView.getForwardingRef(this.props.scrollViewRef);if(I){if('ios'===_.default.OS)return(0,x.jsxs)(r,Object.assign({},R,{ref:V,children:[I,S]}));if('android'===_.default.OS){var M=(0,h.default)((0,p.default)(R.style)),O=M.outer,D=M.inner;return A.cloneElement(I,{style:f.default.compose(w,O)},(0,x.jsx)(r,Object.assign({},R,{style:f.default.compose(w,D),ref:V,children:S})))}}return(0,x.jsx)(r,Object.assign({},R,{ref:V,children:S}))}}])})(A.Component);z.Context=H.default;var P=f.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function F(e){var n={getForwardingRef:(0,D.default)((function(o){return function(t){var r=null==t?null:e(t);n.nativeInstance=t,n.publicInstance=r,null!=o&&('function'==typeof o?o(r):o.current=r)}})),nativeInstance:null,publicInstance:null};return n}function G(e,n){return(0,x.jsx)(z,Object.assign({},e,{scrollViewRef:n}))}G.displayName='ScrollView';var U=A.forwardRef(G);U.Context=H.default,U.displayName='ScrollView',m.exports=U}),339,[2,27,25,26,20,13,24,273,340,45,93,111,342,213,83,343,63,344,67,207,347,348,349,350,351,352,353,354,40,325,95,34,211,232]); __d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[2]),l={setGlobalOptions:function(l){if(void 0!==l.debug&&o(t.default,'Trying to debug FrameRateLogger without the native module!'),t.default){var n={debug:!!l.debug,reportStackTraces:!!l.reportStackTraces};t.default.setGlobalOptions(n)}},setContext:function(o){t.default&&t.default.setContext(o)},beginScroll:function(){t.default&&t.default.beginScroll()},endScroll:function(){t.default&&t.default.endScroll()}};m.exports=l}),340,[2,341,40]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('FrameRateLogger')}),341,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('FrameRateLogger')}),341,[60]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c){var s=null,t=null;if(null!=c)for(var n of(s={},t={},Object.keys(c)))switch(n){case'margin':case'marginHorizontal':case'marginVertical':case'marginBottom':case'marginTop':case'marginLeft':case'marginRight':case'flex':case'flexGrow':case'flexShrink':case'flexBasis':case'alignSelf':case'height':case'minHeight':case'maxHeight':case'width':case'minWidth':case'maxWidth':case'position':case'left':case'right':case'bottom':case'top':case'transform':case'rowGap':case'columnGap':case'gap':s[n]=c[n];break;default:t[n]=c[n]}return{outer:s,inner:t}}}),342,[]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(){t.blurTextInput(t.currentlyFocusedInput())}}),343,[67]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),y=(function(){function t(){var u=this;(0,n.default)(this,t),this._emitter=new l.default('ios'!==f.default.OS?null:c.default),this.addListener('keyboardDidShow',(function(t){u._currentlyShowing=t})),this.addListener('keyboardDidHide',(function(t){u._currentlyShowing=null}))}return(0,u.default)(t,[{key:"addListener",value:function(t,n,u){return this._emitter.addListener(t,n)}},{key:"removeAllListeners",value:function(t){this._emitter.removeAllListeners(t)}},{key:"dismiss",value:function(){(0,s.default)()}},{key:"isVisible",value:function(){return!!this._currentlyShowing}},{key:"metrics",value:function(){var t;return null==(t=this._currentlyShowing)?void 0:t.endCoordinates}},{key:"scheduleLayoutAnimation",value:function(t){var n=t.duration,u=t.easing;null!=n&&0!==n&&o.default.configureNext({duration:n,update:{duration:n,type:null!=u&&o.default.Types[u]||'keyboard'}})}}]),t})();m.exports=new y}),344,[2,21,22,171,345,343,63,346]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),y=(function(){return(0,u.default)((function t(){var u=this;(0,n.default)(this,t),this._emitter=new l.default('ios'!==f.default.OS?null:c.default),this.addListener('keyboardDidShow',(function(t){u._currentlyShowing=t})),this.addListener('keyboardDidHide',(function(t){u._currentlyShowing=null}))}),[{key:"addListener",value:function(t,n,u){return this._emitter.addListener(t,n)}},{key:"removeAllListeners",value:function(t){this._emitter.removeAllListeners(t)}},{key:"dismiss",value:function(){(0,s.default)()}},{key:"isVisible",value:function(){return!!this._currentlyShowing}},{key:"metrics",value:function(){var t;return null==(t=this._currentlyShowing)?void 0:t.endCoordinates}},{key:"scheduleLayoutAnimation",value:function(t){var n=t.duration,u=t.easing;null!=n&&0!==n&&o.default.configureNext({duration:n,update:{duration:n,type:null!=u&&o.default.Types[u]||'keyboard'}})}}])})();m.exports=new y}),344,[2,25,26,171,345,343,63,346]); __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),u=n(r(d[2])),o=n(r(d[3])),l=r(d[4]),s=u.default.isLayoutAnimationEnabled();function c(n,u,c){var p;if(!o.default.isTesting&&s){var y,f,b=!1,I=function(){b||(b=!0,clearTimeout(O),null==u||u())},O=setTimeout(I,(null!=(p=n.duration)?p:0)+17),E=(0,t.getFabricUIManager)();if(null!=E&&E.configureNextLayoutAnimation)null==(y=g)||null==(f=y.nativeFabricUIManager)||f.configureNextLayoutAnimation(n,I,null!=c?c:function(){});else null!=l&&l.configureNextLayoutAnimation&&l.configureNextLayoutAnimation(n,null!=I?I:function(){},null!=c?c:function(){})}}function p(n,t,u){return{duration:n,create:{type:t,property:u},update:{type:t},delete:{type:t,property:u}}}var y={easeInEaseOut:p(300,'easeInEaseOut','opacity'),linear:p(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},f={configureNext:c,create:p,Types:Object.freeze({spring:'spring',linear:'linear',easeInEaseOut:'easeInEaseOut',easeIn:'easeIn',easeOut:'easeOut',keyboard:'keyboard'}),Properties:Object.freeze({opacity:'opacity',scaleX:'scaleX',scaleY:'scaleY',scaleXY:'scaleXY'}),checkConfig:function(){console.error('LayoutAnimation.checkConfig(...) has been disabled.')},Presets:y,easeInEaseOut:c.bind(null,y.easeInEaseOut),linear:c.bind(null,y.linear),spring:c.bind(null,y.spring),setEnabled:function(n){}};m.exports=f}),345,[2,94,158,63,93]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('KeyboardObserver')}),346,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('KeyboardObserver')}),346,[60]); __d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(r(d[1]));e.default=(0,t.default)('AndroidHorizontalScrollContentView')}),347,[2,224]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=l?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,o&&o.set(e,n),n})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}var t=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidHorizontalScrollView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{decelerationRate:!0,disableIntervalMomentum:!0,endFillColor:{process:_r(d[1]).default},fadingEdgeLength:!0,nestedScrollEnabled:!0,overScrollMode:!0,pagingEnabled:!0,persistentScrollbar:!0,scrollEnabled:!0,scrollPerfTag:!0,sendMomentumEvents:!0,showsHorizontalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToStart:!0,snapToOffsets:!0,contentOffset:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderRadius:!0,borderStyle:!0,borderRightColor:{process:_r(d[1]).default},borderColor:{process:_r(d[1]).default},borderBottomColor:{process:_r(d[1]).default},borderTopLeftRadius:!0,borderTopColor:{process:_r(d[1]).default},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:_r(d[1]).default},pointerEvents:!0}},o=e.get('AndroidHorizontalScrollView',(function(){return t}));_e.default=o}),348,[69,73]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,o){if(!o&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r(o);if(t&&t.has(e))return t.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=l?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var o=new WeakMap,t=new WeakMap;return(r=function(e){return e?t:o})(e)}var o=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidHorizontalScrollView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{decelerationRate:!0,disableIntervalMomentum:!0,endFillColor:{process:_r(d[1]).default},fadingEdgeLength:!0,nestedScrollEnabled:!0,overScrollMode:!0,pagingEnabled:!0,persistentScrollbar:!0,scrollEnabled:!0,scrollPerfTag:!0,sendMomentumEvents:!0,showsHorizontalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToStart:!0,snapToOffsets:!0,contentOffset:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderRadius:!0,borderStyle:!0,borderRightColor:{process:_r(d[1]).default},borderColor:{process:_r(d[1]).default},borderBottomColor:{process:_r(d[1]).default},borderTopLeftRadius:!0,borderTopColor:{process:_r(d[1]).default},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:_r(d[1]).default},pointerEvents:!0}},t=e.get('AndroidHorizontalScrollView',(function(){return o}));_e.default=t}),348,[69,73]); __d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){return'normal'===n?t.default.select({ios:.998,android:.985}):'fast'===n?t.default.select({ios:.99,android:.9}):n}}),349,[2,63]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=u?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}var r=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTScrollContentView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{}},n=e.get('RCTScrollContentView',(function(){return r}));_e.default=n}),350,[69]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=a?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=e[l]}n.default=e,o&&o.set(e,n)})(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}_e.default=(0,t.default)({supportedCommands:['flashScrollIndicators','scrollTo','scrollToEnd','zoomToRect']})}),351,[2,107,30]); -__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.VERTICAL=_e.HORIZONTAL=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(null);_e.default=t,_e.HORIZONTAL=Object.freeze({horizontal:!0}),_e.VERTICAL=Object.freeze({horizontal:!1})}),352,[30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var o=(function(e,o){if(!o&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r(o);if(t&&t.has(e))return t.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=l?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n})(_r(d[1])),t=_r(d[2]),n=e(_r(d[3]));function r(e){if("function"!=typeof WeakMap)return null;var o=new WeakMap,t=new WeakMap;return(r=function(e){return e?t:o})(e)}var l=_e.__INTERNAL_VIEW_CONFIG='android'===n.default.OS?{uiViewClassName:'RCTScrollView',bubblingEventTypes:{},directEventTypes:{topMomentumScrollBegin:{registrationName:'onMomentumScrollBegin'},topMomentumScrollEnd:{registrationName:'onMomentumScrollEnd'},topScroll:{registrationName:'onScroll'},topScrollBeginDrag:{registrationName:'onScrollBeginDrag'},topScrollEndDrag:{registrationName:'onScrollEndDrag'}},validAttributes:{contentOffset:{diff:_r(d[4])},decelerationRate:!0,disableIntervalMomentum:!0,pagingEnabled:!0,scrollEnabled:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,sendMomentumEvents:!0,borderRadius:!0,nestedScrollEnabled:!0,borderStyle:!0,borderRightColor:{process:_r(d[5]).default},borderColor:{process:_r(d[5]).default},borderBottomColor:{process:_r(d[5]).default},persistentScrollbar:!0,endFillColor:{process:_r(d[5]).default},fadingEdgeLength:!0,overScrollMode:!0,borderTopLeftRadius:!0,scrollPerfTag:!0,borderTopColor:{process:_r(d[5]).default},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:_r(d[5]).default},pointerEvents:!0,isInvertedVirtualizedList:!0}}:{uiViewClassName:'RCTScrollView',bubblingEventTypes:{},directEventTypes:{topMomentumScrollBegin:{registrationName:'onMomentumScrollBegin'},topMomentumScrollEnd:{registrationName:'onMomentumScrollEnd'},topScroll:{registrationName:'onScroll'},topScrollBeginDrag:{registrationName:'onScrollBeginDrag'},topScrollEndDrag:{registrationName:'onScrollEndDrag'},topScrollToTop:{registrationName:'onScrollToTop'}},validAttributes:Object.assign({alwaysBounceHorizontal:!0,alwaysBounceVertical:!0,automaticallyAdjustContentInsets:!0,automaticallyAdjustKeyboardInsets:!0,automaticallyAdjustsScrollIndicatorInsets:!0,bounces:!0,bouncesZoom:!0,canCancelContentTouches:!0,centerContent:!0,contentInset:{diff:_r(d[6])},contentOffset:{diff:_r(d[4])},contentInsetAdjustmentBehavior:!0,decelerationRate:!0,directionalLockEnabled:!0,disableIntervalMomentum:!0,indicatorStyle:!0,inverted:!0,keyboardDismissMode:!0,maintainVisibleContentPosition:!0,maximumZoomScale:!0,minimumZoomScale:!0,pagingEnabled:!0,pinchGestureEnabled:!0,scrollEnabled:!0,scrollEventThrottle:!0,scrollIndicatorInsets:{diff:_r(d[6])},scrollToOverflowEnabled:!0,scrollsToTop:!0,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,zoomScale:!0},(0,t.ConditionallyIgnoredEventHandlers)({onScrollBeginDrag:!0,onMomentumScrollEnd:!0,onScrollEndDrag:!0,onMomentumScrollBegin:!0,onScrollToTop:!0,onScroll:!0}))},a=o.get('RCTScrollView',(function(){return l}));_e.default=a}),353,[2,69,104,63,92,73,90]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),u=_r(d[3]),r=e(_r(d[4])),a=e(_r(d[5])),l=e(_r(d[6])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var u={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=r?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(u,a,l):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[7])),i=o,f=_r(d[8]);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var p=i.forwardRef((function(e,r){var s=e.inverted,p=e.scrollViewHeight,v=e.hiddenOnScroll,h=e.scrollAnimatedValue,y=e.nextHeaderLayoutY,O=(0,o.useState)(!1),R=(0,t.default)(O,2),b=R[0],_=R[1],L=(0,o.useState)(0),S=(0,t.default)(L,2),j=S[0],w=S[1],P=(0,o.useState)(0),x=(0,t.default)(P,2),E=x[0],M=x[1],k=(0,o.useState)(null),C=(0,t.default)(k,2),D=C[0],I=C[1],V=(0,o.useState)(y),Y=(0,t.default)(V,2),H=Y[0],T=Y[1],W=(0,o.useState)(!1),A=(0,t.default)(W,2),z=A[0],N=A[1],q=(0,l.default)((function(e){null!=e&&(e.setNextHeaderY=function(e){T(e)},N((0,u.isPublicInstance)(e)))}),r),B=(0,o.useMemo)((function(){return!0===v?n.default.diffClamp(h.interpolate({extrapolateLeft:'clamp',inputRange:[j,j+1],outputRange:[0,1]}).interpolate({inputRange:[0,1],outputRange:[0,-1]}),-E,0):null}),[h,E,j,v]),F=(0,o.useState)((function(){var e=h.interpolate({inputRange:[-1,0],outputRange:[0,0]});return null!=B?n.default.add(e,B):e})),G=(0,t.default)(F,2),J=G[0],K=G[1],Q=(0,o.useRef)(!0),U=(0,o.useRef)(null);(0,o.useEffect)((function(){0!==D&&null!=D&&(Q.current=!1)}),[D]);var X=(0,o.useCallback)((function(e){var t=e.value,n='android'===a.default.OS?15:64;0!==t||Q.current?(null!=U.current&&clearTimeout(U.current),U.current=setTimeout((function(){t!==D&&I(t)}),n)):Q.current=!0}),[D]);(0,o.useEffect)((function(){var e=[-1,0],t=[0,0];if(b)if(!0===s){if(null!=p){var u=j+E-p;if(u>0){e.push(u),t.push(0),e.push(u+1),t.push(1);var r=(H||0)-E-p;r>u&&(e.push(r,r+1),t.push(r-u,r-u))}}}else{e.push(j),t.push(0);var a=(H||0)-E;a>=j?(e.push(a,a+1),t.push(a-j,a-j)):(e.push(j+1),t.push(1))}var l,o=h.interpolate({inputRange:e,outputRange:t});return null!=B&&(o=n.default.add(o,B)),z&&(l=o.addListener(X)),K(o),function(){l&&o.removeListener(l),null!=U.current&&clearTimeout(U.current)}}),[H,b,E,j,p,h,s,B,X,z]);var Z=i.Children.only(e.children),$=z&&null!=D?{style:{transform:[{translateY:D}]}}:null;return(0,f.jsx)(n.default.View,{collapsable:!1,nativeID:e.nativeID,onLayout:function(t){w(t.nativeEvent.layout.y),M(t.nativeEvent.layout.height),_(!0),e.onLayout(t);var n=i.Children.only(e.children);n.props.onLayout&&n.props.onLayout(t)},ref:q,style:[Z.props.style,c.header,{transform:[{translateY:J}]}],passthroughAnimatedPropExplicitValues:$,children:i.cloneElement(Z,{style:c.fill,onLayout:void 0})})})),c=r.default.create({header:{zIndex:10,position:'relative'},fill:{flex:1}});_e.default=p}),354,[2,23,272,296,213,63,294,30,211]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=o?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),o=_r(d[4]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var u=n.forwardRef((function(e,r){return(0,o.jsx)(t.default,Object.assign({scrollEventThrottle:1e-4},e,{ref:r}))}));_e.default=(0,r.default)(u)}),355,[2,356,293,30,211]); -__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),a=e(_r(d[5])),o=e(_r(d[6])),f=e(_r(d[7])),u=_r(d[8]),c=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[9])),l=_r(d[10]),s=["stickySectionHeadersEnabled"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}_e.default=(function(e){(0,i.default)(h,e);var c,p,y=(c=h,p=v(),function(){var e,t=(0,o.default)(c);if(p){var r=(0,o.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,a.default)(this,e)});function h(){var e;(0,r.default)(this,h);for(var t=arguments.length,n=new Array(t),i=0;i0){e.push(u),t.push(0),e.push(u+1),t.push(1);var r=(H||0)-E-p;r>u&&(e.push(r,r+1),t.push(r-u,r-u))}}}else{e.push(w),t.push(0);var a=(H||0)-E;a>=w?(e.push(a,a+1),t.push(a-w,a-w)):(e.push(w+1),t.push(1))}var l,o=h.interpolate({inputRange:e,outputRange:t});return null!=B&&(o=n.default.add(o,B)),z&&(l=o.addListener(X)),K(o),function(){l&&o.removeListener(l),null!=U.current&&clearTimeout(U.current)}}),[H,_,E,w,p,h,s,B,X,z]);var Z=i.Children.only(e.children),$=z&&null!=D?{style:{transform:[{translateY:D}]}}:null;return(0,f.jsx)(n.default.View,{collapsable:!1,nativeID:e.nativeID,onLayout:function(t){P(t.nativeEvent.layout.y),M(t.nativeEvent.layout.height),b(!0),e.onLayout(t);var n=i.Children.only(e.children);n.props.onLayout&&n.props.onLayout(t)},ref:q,style:[Z.props.style,c.header,{transform:[{translateY:J}]}],passthroughAnimatedPropExplicitValues:$,children:i.cloneElement(Z,{style:c.fill,onLayout:void 0})})})),c=r.default.create({header:{zIndex:10,position:'relative'},fill:{flex:1}});_e.default=p}),354,[2,27,272,296,213,63,294,34,211]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=f?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),f=_r(d[4]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var o=n.forwardRef((function(e,r){return(0,f.jsx)(t.default,Object.assign({scrollEventThrottle:1e-4},e,{ref:r}))}));_e.default=(0,r.default)(o)}),355,[2,356,293,34,211]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),a=e(_r(d[5])),o=e(_r(d[6])),u=e(_r(d[7])),f=_r(d[8]),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[9])),s=_r(d[10]),c=["stickySectionHeadersEnabled"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}_e.default=(function(e){function l(){var e,t,n,o;(0,r.default)(this,l);for(var u=arguments.length,f=new Array(u),s=0;s is only supported on iOS.'),null)}}]),v})(a.Component),h=c.default.create({container:{position:'absolute'}});m.exports=y}),361,[2,21,22,17,19,16,213,63,362,30,211]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]),t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),o=e(_r(d[5])),a=e(_r(d[6])),l=e(_r(d[7])),u=e(_r(d[8])),c=e(_r(d[9])),f=e(_r(d[10])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[11])),p=_r(d[12]),y=["children","style","imageStyle","imageRef","importantForAccessibility"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var _=(function(e){function s(){var e,t,n,a;(0,r.default)(this,s);for(var l=arguments.length,u=new Array(l),c=0;c is only supported on iOS.'),null)}}])})(i.Component),h=l.default.create({container:{position:'absolute'}});m.exports=y}),361,[2,25,26,20,13,24,213,63,362,34,211]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1]));e.default=(0,n.default)('InputAccessory',{interfaceOnly:!0,paperComponentName:'RCTInputAccessoryView',excludedPlatforms:['android']})}),362,[2,224]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),a=e(_r(d[3])),r=e(_r(d[4])),o=e(_r(d[5])),i=e(_r(d[6])),u=e(_r(d[7])),s=e(_r(d[8])),l=e(_r(d[9])),f=e(_r(d[10])),c=e(_r(d[11])),h=e(_r(d[12])),y=e(_r(d[13])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a})(_r(d[14])),b=_r(d[15]),v=["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style","onLayout"];function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_=function(e){return e?n:t})(e)}function O(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var k=(function(e){(0,o.default)(w,e);var _,k,j,L=(_=w,k=O(),function(){var e,t=(0,u.default)(_);if(k){var n=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,i.default)(this,e)});function w(e){var t;return(0,a.default)(this,w),(t=L.call(this,e))._frame=null,t._keyboardEvent=null,t._subscriptions=[],t._initialFrameHeight=0,t._onKeyboardChange=function(e){t._keyboardEvent=e,t._updateBottomIfNecessary()},t._onLayout=(function(){var e=(0,n.default)((function*(e){var n=null==t._frame;t._frame=e.nativeEvent.layout,t._initialFrameHeight||(t._initialFrameHeight=t._frame.height),n&&(yield t._updateBottomIfNecessary()),t.props.onLayout&&t.props.onLayout(e)}));return function(t){return e.apply(this,arguments)}})(),t._updateBottomIfNecessary=(0,n.default)((function*(){if(null!=t._keyboardEvent){var e=t._keyboardEvent,n=e.duration,a=e.easing,r=e.endCoordinates,o=yield t._relativeKeyboardHeight(r);t.state.bottom!==o&&(n&&a&&s.default.configureNext({duration:n>10?n:10,update:{duration:n>10?n:10,type:s.default.Types[a]||'keyboard'}}),t.setState({bottom:o}))}else t.setState({bottom:0})})),t.state={bottom:0},t.viewRef=p.createRef(),t}return(0,r.default)(w,[{key:"_relativeKeyboardHeight",value:(j=(0,n.default)((function*(e){var t,n=this._frame;if(!n||!e)return 0;if('ios'===f.default.OS&&0===e.screenY&&(yield c.default.prefersCrossFadeTransitions()))return 0;var a=e.screenY-(null!=(t=this.props.keyboardVerticalOffset)?t:0);return'height'===this.props.behavior?Math.max(this.state.bottom+n.y+n.height-a,0):Math.max(n.y+n.height-a,0)})),function(e){return j.apply(this,arguments)})},{key:"componentDidMount",value:function(){'ios'===f.default.OS?this._subscriptions=[y.default.addListener('keyboardWillChangeFrame',this._onKeyboardChange)]:this._subscriptions=[y.default.addListener('keyboardDidHide',this._onKeyboardChange),y.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach((function(e){e.remove()}))}},{key:"render",value:function(){var e=this.props,n=e.behavior,a=e.children,r=e.contentContainerStyle,o=e.enabled,i=void 0===o||o,u=(e.keyboardVerticalOffset,e.style),s=(e.onLayout,(0,t.default)(e,v)),f=!0===i?this.state.bottom:0;switch(n){case'height':var c;return null!=this._frame&&this.state.bottom>0&&(c={height:this._initialFrameHeight-f,flex:0}),(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:l.default.compose(u,c),onLayout:this._onLayout},s,{children:a}));case'position':return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:u,onLayout:this._onLayout},s,{children:(0,b.jsx)(h.default,{style:l.default.compose(r,{bottom:f}),children:a})}));case'padding':return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:l.default.compose(u,{paddingBottom:f}),onLayout:this._onLayout},s,{children:a}));default:return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,onLayout:this._onLayout,style:u},s,{children:a}))}}}]),w})(p.Component);_e.default=k}),363,[2,4,12,21,22,17,19,16,345,213,63,42,207,344,30,211]); -__d((function(g,r,i,a,m,_e,d){var t,e=r(d[0]),n=e(r(d[1])),s=e(r(d[2])),o=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),p=e(r(d[6])),c=e(r(d[7])),f=e(r(d[8])),h=e(r(d[9])),v=e(r(d[10])),y=r(d[11]),S=r(d[12]);function R(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var b=r(d[13]),x=r(d[14]),D=(r(d[15]),r(d[16])),_=r(d[17]).RootTagContext,C=r(d[18]),w=(r(d[19]),r(d[20])),T=null!=h.default?new c.default(h.default):null,k=0,O=(function(t){(0,l.default)(f,t);var e,n,c=(e=f,n=R(),function(){var t,s=(0,p.default)(e);if(n){var o=(0,p.default)(this).constructor;t=Reflect.construct(s,arguments,o)}else t=s.apply(this,arguments);return(0,u.default)(this,t)});function f(t){var e;return(0,s.default)(this,f),(e=c.call(this,t))._identifier=k++,e}return(0,o.default)(f,[{key:"componentDidMount",value:function(){var t=this;T&&(this._eventSubscription=T.addListener('modalDismissed',(function(e){e.modalID===t._identifier&&t.props.onDismiss&&t.props.onDismiss()})))}},{key:"componentWillUnmount",value:function(){this._eventSubscription&&this._eventSubscription.remove()}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){var t=this;if(!0!==this.props.visible)return null;var e={backgroundColor:!0===this.props.transparent?'transparent':'white'},n=this.props.animationType||'none',s=this.props.presentationStyle;s||(s='fullScreen',!0===this.props.transparent&&(s='overFullScreen'));var o=this.props.children;return(0,S.jsx)(v.default,{animationType:n,presentationStyle:s,transparent:this.props.transparent,hardwareAccelerated:this.props.hardwareAccelerated,onRequestClose:this.props.onRequestClose,onShow:this.props.onShow,onDismiss:function(){t.props.onDismiss&&t.props.onDismiss()},visible:this.props.visible,statusBarTranslucent:this.props.statusBarTranslucent,identifier:this._identifier,style:B.modal,onStartShouldSetResponder:this._shouldSetResponder,supportedOrientations:this.props.supportedOrientations,onOrientationChange:this.props.onOrientationChange,testID:this.props.testID,children:(0,S.jsx)(y.VirtualizedListContextResetter,{children:(0,S.jsx)(b.Context.Provider,{value:null,children:(0,S.jsx)(x,{style:[B.container,e],collapsable:!1,children:o})})})})}},{key:"_shouldSetResponder",value:function(){return!0}}]),f})(w.Component);O.defaultProps={visible:!0,hardwareAccelerated:!1},O.contextType=_;var j=D.getConstants().isRTL?'right':'left',B=C.create({modal:{position:'absolute'},container:(0,n.default)((0,n.default)((0,n.default)({},j,0),"top",0),"flex",1)}),A=null!=(t=f.default.unstable_Modal)?t:O;m.exports=A}),364,[2,3,21,22,17,19,16,171,365,366,367,311,211,339,207,206,219,214,213,63,30]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),a=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),r=e(_r(d[5])),i=e(_r(d[6])),u=e(_r(d[7])),s=e(_r(d[8])),l=e(_r(d[9])),f=e(_r(d[10])),c=e(_r(d[11])),h=e(_r(d[12])),y=e(_r(d[13])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=_(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}return n.default=e,a&&a.set(e,n),n})(_r(d[14])),b=_r(d[15]),v=["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style","onLayout"];function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(_=function(e){return e?a:t})(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}var O=(function(e){function _(e){var t,o,u,l;return(0,n.default)(this,_),o=this,u=_,l=[e],u=(0,i.default)(u),(t=(0,r.default)(o,k()?Reflect.construct(u,l||[],(0,i.default)(o).constructor):u.apply(o,l)))._frame=null,t._keyboardEvent=null,t._subscriptions=[],t._initialFrameHeight=0,t._onKeyboardChange=function(e){t._keyboardEvent=e,t._updateBottomIfNecessary()},t._onLayout=(function(){var e=(0,a.default)((function*(e){var a=null==t._frame;t._frame=e.nativeEvent.layout,t._initialFrameHeight||(t._initialFrameHeight=t._frame.height),a&&(yield t._updateBottomIfNecessary()),t.props.onLayout&&t.props.onLayout(e)}));return function(t){return e.apply(this,arguments)}})(),t._updateBottomIfNecessary=(0,a.default)((function*(){if(null!=t._keyboardEvent){var e=t._keyboardEvent,a=e.duration,n=e.easing,o=e.endCoordinates,r=yield t._relativeKeyboardHeight(o);t.state.bottom!==r&&(a&&n&&s.default.configureNext({duration:a>10?a:10,update:{duration:a>10?a:10,type:s.default.Types[n]||'keyboard'}}),t.setState({bottom:r}))}else t.setState({bottom:0})})),t.state={bottom:0},t.viewRef=p.createRef(),t}return(0,u.default)(_,e),(0,o.default)(_,[{key:"_relativeKeyboardHeight",value:(O=(0,a.default)((function*(e){var t,a=this._frame;if(!a||!e)return 0;if('ios'===f.default.OS&&0===e.screenY&&(yield c.default.prefersCrossFadeTransitions()))return 0;var n=e.screenY-(null!=(t=this.props.keyboardVerticalOffset)?t:0);return'height'===this.props.behavior?Math.max(this.state.bottom+a.y+a.height-n,0):Math.max(a.y+a.height-n,0)})),function(e){return O.apply(this,arguments)})},{key:"componentDidMount",value:function(){'ios'===f.default.OS?this._subscriptions=[y.default.addListener('keyboardWillChangeFrame',this._onKeyboardChange)]:this._subscriptions=[y.default.addListener('keyboardDidHide',this._onKeyboardChange),y.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach((function(e){e.remove()}))}},{key:"render",value:function(){var e=this.props,a=e.behavior,n=e.children,o=e.contentContainerStyle,r=e.enabled,i=void 0===r||r,u=(e.keyboardVerticalOffset,e.style),s=(e.onLayout,(0,t.default)(e,v)),f=!0===i?this.state.bottom:0;switch(a){case'height':var c;return null!=this._frame&&this.state.bottom>0&&(c={height:this._initialFrameHeight-f,flex:0}),(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:l.default.compose(u,c),onLayout:this._onLayout},s,{children:n}));case'position':return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:u,onLayout:this._onLayout},s,{children:(0,b.jsx)(h.default,{style:l.default.compose(o,{bottom:f}),children:n})}));case'padding':return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:l.default.compose(u,{paddingBottom:f}),onLayout:this._onLayout},s,{children:n}));default:return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,onLayout:this._onLayout,style:u},s,{children:n}))}}}]);var O})(p.Component);_e.default=O}),363,[2,3,18,25,26,20,13,24,345,213,63,42,207,344,34,211]); +__d((function(g,r,i,a,m,_e,d){var t,e=r(d[0]),n=e(r(d[1])),s=e(r(d[2])),o=e(r(d[3])),l=e(r(d[4])),p=e(r(d[5])),u=e(r(d[6])),c=e(r(d[7])),h=e(r(d[8])),f=e(r(d[9])),v=e(r(d[10])),y=r(d[11]),S=r(d[12]);function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}var D=r(d[13]),_=r(d[14]),x=(r(d[15]),r(d[16])),C=r(d[17]).RootTagContext,R=r(d[18]),w=(r(d[19]),r(d[20])),T=null!=f.default?new c.default(f.default):null,k=0,O=(function(t){function e(t){var n,o,u,c;return(0,s.default)(this,e),o=this,u=e,c=[t],u=(0,p.default)(u),(n=(0,l.default)(o,b()?Reflect.construct(u,c||[],(0,p.default)(o).constructor):u.apply(o,c)))._identifier=k++,n}return(0,u.default)(e,t),(0,o.default)(e,[{key:"componentDidMount",value:function(){var t=this;T&&(this._eventSubscription=T.addListener('modalDismissed',(function(e){e.modalID===t._identifier&&t.props.onDismiss&&t.props.onDismiss()})))}},{key:"componentWillUnmount",value:function(){this._eventSubscription&&this._eventSubscription.remove()}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){var t=this;if(!0!==this.props.visible)return null;var e={backgroundColor:!0===this.props.transparent?'transparent':'white'},n=this.props.animationType||'none',s=this.props.presentationStyle;s||(s='fullScreen',!0===this.props.transparent&&(s='overFullScreen'));var o=this.props.children;return(0,S.jsx)(v.default,{animationType:n,presentationStyle:s,transparent:this.props.transparent,hardwareAccelerated:this.props.hardwareAccelerated,onRequestClose:this.props.onRequestClose,onShow:this.props.onShow,onDismiss:function(){t.props.onDismiss&&t.props.onDismiss()},visible:this.props.visible,statusBarTranslucent:this.props.statusBarTranslucent,identifier:this._identifier,style:B.modal,onStartShouldSetResponder:this._shouldSetResponder,supportedOrientations:this.props.supportedOrientations,onOrientationChange:this.props.onOrientationChange,testID:this.props.testID,children:(0,S.jsx)(y.VirtualizedListContextResetter,{children:(0,S.jsx)(D.Context.Provider,{value:null,children:(0,S.jsx)(_,{style:[B.container,e],collapsable:!1,children:o})})})})}},{key:"_shouldSetResponder",value:function(){return!0}}])})(w.Component);O.defaultProps={visible:!0,hardwareAccelerated:!1},O.contextType=C;var j=x.getConstants().isRTL?'right':'left',B=R.create({modal:{position:'absolute'},container:(0,n.default)((0,n.default)((0,n.default)({},j,0),"top",0),"flex",1)}),A=null!=(t=h.default.unstable_Modal)?t:O;m.exports=A}),364,[2,5,25,26,20,13,24,171,365,366,367,311,211,339,207,206,219,214,213,63,34]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={unstable_Modal:null}}),365,[]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('ModalManager')}),366,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('ModalManager')}),366,[60]); __d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(r(d[1]));e.default=(0,t.default)('ModalHostView',{interfaceOnly:!0,paperComponentName:'RCTModalHostView'})}),367,[2,224]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var l=e(_r(d[1])),a=e(_r(d[2])),n=(_r(d[3]),e(_r(d[4]))),s=e(_r(d[5])),i=e(_r(d[6])),t=(function(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=c(l);if(a&&a.has(e))return a.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var t=s?Object.getOwnPropertyDescriptor(e,i):null;t&&(t.get||t.set)?Object.defineProperty(n,i,t):n[i]=e[i]}return n.default=e,a&&a.set(e,n),n})(_r(d[7])),r=t,o=_r(d[8]),u=["accessible","accessibilityState","aria-live","android_disableSound","android_ripple","aria-busy","aria-checked","aria-disabled","aria-expanded","aria-label","aria-selected","cancelable","children","delayHoverIn","delayHoverOut","delayLongPress","disabled","focusable","hitSlop","onHoverIn","onHoverOut","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay"];function c(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:l})(e)}function b(e){var a=(0,t.useState)(!1),n=(0,l.default)(a,2);return[n[0]||e,n[1]]}var f=r.memo(r.forwardRef((function(e,r){var c,f,v,y,p,P,O,_,I,h=e.accessible,H=e.accessibilityState,w=e['aria-live'],j=e.android_disableSound,x=e.android_ripple,S=e['aria-busy'],L=e['aria-checked'],M=e['aria-disabled'],k=e['aria-expanded'],R=e['aria-label'],V=e['aria-selected'],D=e.cancelable,W=e.children,N=e.delayHoverIn,q=e.delayHoverOut,z=e.delayLongPress,A=e.disabled,B=e.focusable,C=e.hitSlop,E=e.onHoverIn,F=e.onHoverOut,G=e.onLongPress,J=e.onPress,K=e.onPressIn,Q=e.onPressOut,T=e.pressRetentionOffset,U=e.style,X=e.testOnly_pressed,Y=e.unstable_pressDelay,Z=(0,a.default)(e,u),$=(0,t.useRef)(null);(0,t.useImperativeHandle)(r,(function(){return $.current}));var ee=(0,i.default)(x,$),le=b(!0===X),ae=(0,l.default)(le,2),ne=ae[0],se=ae[1],ie={busy:null!=S?S:null==H?void 0:H.busy,checked:null!=L?L:null==H?void 0:H.checked,disabled:null!=M?M:null==H?void 0:H.disabled,expanded:null!=k?k:null==H?void 0:H.expanded,selected:null!=V?V:null==H?void 0:H.selected};ie=null!=A?Object.assign({},ie,{disabled:A}):ie;var te={max:null!=(c=e['aria-valuemax'])?c:null==(f=e.accessibilityValue)?void 0:f.max,min:null!=(v=e['aria-valuemin'])?v:null==(y=e.accessibilityValue)?void 0:y.min,now:null!=(p=e['aria-valuenow'])?p:null==(P=e.accessibilityValue)?void 0:P.now,text:null!=(O=e['aria-valuetext'])?O:null==(_=e.accessibilityValue)?void 0:_.text},re='off'===w?'none':null!=w?w:e.accessibilityLiveRegion,oe=null!=R?R:e.accessibilityLabel,ue=Object.assign({},Z,null==ee?void 0:ee.viewProps,{accessible:!1!==h,accessibilityViewIsModal:null!=(I=Z['aria-modal'])?I:Z.accessibilityViewIsModal,accessibilityLiveRegion:re,accessibilityLabel:oe,accessibilityState:ie,focusable:!1!==B,accessibilityValue:te,hitSlop:C}),de=(0,t.useMemo)((function(){return{cancelable:D,disabled:A,hitSlop:C,pressRectOffset:T,android_disableSound:j,delayHoverIn:N,delayHoverOut:q,delayLongPress:z,delayPressIn:Y,onHoverIn:E,onHoverOut:F,onLongPress:G,onPress:J,onPressIn:function(e){null!=ee&&ee.onPressIn(e),se(!0),null!=K&&K(e)},onPressMove:null==ee?void 0:ee.onPressMove,onPressOut:function(e){null!=ee&&ee.onPressOut(e),se(!1),null!=Q&&Q(e)}}}),[j,ee,D,N,q,z,A,C,E,F,G,J,K,Q,T,se,Y]),ce=(0,n.default)(de);return(0,o.jsxs)(s.default,Object.assign({},ue,ce,{ref:$,style:'function'==typeof U?U({pressed:ne}):U,collapsable:!1,children:['function'==typeof W?W({pressed:ne}):W,null]}))})));f.displayName='Pressable';_e.default=f}),368,[2,23,4,240,242,207,369,30,211]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,u){var a=null!=e?e:{},i=a.color,f=a.borderless,s=a.radius,c=a.foreground;return(0,l.useMemo)((function(){if('android'===r.default.OS&&r.default.Version>=21&&(null!=i||null!=f||null!=s)){var e=(0,n.default)(i);(0,o.default)(null==e||'number'==typeof e,'Unexpected color given for Ripple color');var l={type:'RippleAndroid',color:e,borderless:!0===f,rippleRadius:s};return{viewProps:!0===c?{nativeForegroundAndroid:l}:{nativeBackgroundAndroid:l},onPressIn:function(e){var n,r,o=u.current;null!=o&&(t.Commands.hotspotUpdate(o,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0),t.Commands.setPressed(o,!0))},onPressMove:function(e){var n,r,o=u.current;null!=o&&t.Commands.hotspotUpdate(o,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0)},onPressOut:function(e){var n=u.current;null!=n&&t.Commands.setPressed(n,!1)}}}return null}),[f,i,c,s,u])};var n=e(_r(d[1])),r=e(_r(d[2])),t=(e(_r(d[3])),_r(d[4])),o=e(_r(d[5])),l=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(n);if(r&&r.has(e))return r.get(e);var t={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=o?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(t,l,a):t[l]=e[l]}return t.default=e,r&&r.set(e,t),t})(_r(d[6]));function u(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:n})(e)}}),369,[2,73,63,207,210,40,30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t,r=e(_r(d[1])),n=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(n,a,f):n[a]=e[a]}n.default=e,r&&r.set(e,n)})(_r(d[3]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}t='android'===r.default.OS?n.default:_r(d[4]).default;_e.default=t}),370,[2,63,207,30,371]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var l=e(_r(d[1])),a=e(_r(d[2])),n=(_r(d[3]),e(_r(d[4]))),s=e(_r(d[5])),i=e(_r(d[6])),r=(function(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=c(l);if(a&&a.has(e))return a.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var r=s?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,a&&a.set(e,n),n})(_r(d[7])),t=r,o=_r(d[8]),u=["accessible","accessibilityState","aria-live","android_disableSound","android_ripple","aria-busy","aria-checked","aria-disabled","aria-expanded","aria-label","aria-selected","cancelable","children","delayHoverIn","delayHoverOut","delayLongPress","disabled","focusable","hitSlop","onHoverIn","onHoverOut","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay"];function c(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:l})(e)}function b(e){var a=(0,r.useState)(!1),n=(0,l.default)(a,2);return[n[0]||e,n[1]]}var f=t.memo(t.forwardRef((function(e,t){var c,f,v,y,p,P,O,_,I,h=e.accessible,H=e.accessibilityState,w=e['aria-live'],x=e.android_disableSound,S=e.android_ripple,j=e['aria-busy'],L=e['aria-checked'],M=e['aria-disabled'],k=e['aria-expanded'],R=e['aria-label'],V=e['aria-selected'],D=e.cancelable,W=e.children,N=e.delayHoverIn,q=e.delayHoverOut,z=e.delayLongPress,A=e.disabled,B=e.focusable,C=e.hitSlop,E=e.onHoverIn,F=e.onHoverOut,G=e.onLongPress,J=e.onPress,K=e.onPressIn,Q=e.onPressOut,T=e.pressRetentionOffset,U=e.style,X=e.testOnly_pressed,Y=e.unstable_pressDelay,Z=(0,a.default)(e,u),$=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return $.current}));var ee=(0,i.default)(S,$),le=b(!0===X),ae=(0,l.default)(le,2),ne=ae[0],se=ae[1],ie={busy:null!=j?j:null==H?void 0:H.busy,checked:null!=L?L:null==H?void 0:H.checked,disabled:null!=M?M:null==H?void 0:H.disabled,expanded:null!=k?k:null==H?void 0:H.expanded,selected:null!=V?V:null==H?void 0:H.selected};ie=null!=A?Object.assign({},ie,{disabled:A}):ie;var re={max:null!=(c=e['aria-valuemax'])?c:null==(f=e.accessibilityValue)?void 0:f.max,min:null!=(v=e['aria-valuemin'])?v:null==(y=e.accessibilityValue)?void 0:y.min,now:null!=(p=e['aria-valuenow'])?p:null==(P=e.accessibilityValue)?void 0:P.now,text:null!=(O=e['aria-valuetext'])?O:null==(_=e.accessibilityValue)?void 0:_.text},te='off'===w?'none':null!=w?w:e.accessibilityLiveRegion,oe=null!=R?R:e.accessibilityLabel,ue=Object.assign({},Z,null==ee?void 0:ee.viewProps,{accessible:!1!==h,accessibilityViewIsModal:null!=(I=Z['aria-modal'])?I:Z.accessibilityViewIsModal,accessibilityLiveRegion:te,accessibilityLabel:oe,accessibilityState:ie,focusable:!1!==B,accessibilityValue:re,hitSlop:C}),de=(0,r.useMemo)((function(){return{cancelable:D,disabled:A,hitSlop:C,pressRectOffset:T,android_disableSound:x,delayHoverIn:N,delayHoverOut:q,delayLongPress:z,delayPressIn:Y,onHoverIn:E,onHoverOut:F,onLongPress:G,onPress:J,onPressIn:function(e){null!=ee&&ee.onPressIn(e),se(!0),null!=K&&K(e)},onPressMove:null==ee?void 0:ee.onPressMove,onPressOut:function(e){null!=ee&&ee.onPressOut(e),se(!1),null!=Q&&Q(e)}}}),[x,ee,D,N,q,z,A,C,E,F,G,J,K,Q,T,se,Y]),ce=(0,n.default)(de);return(0,o.jsxs)(s.default,Object.assign({},ue,ce,{ref:$,style:'function'==typeof U?U({pressed:ne}):U,collapsable:!1,children:['function'==typeof W?W({pressed:ne}):W,null]}))})));f.displayName='Pressable';_e.default=f}),368,[2,27,3,240,242,207,369,34,211]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,u){var a=null!=e?e:{},i=a.color,f=a.borderless,s=a.radius,c=a.foreground;return(0,l.useMemo)((function(){if('android'===r.default.OS&&r.default.Version>=21&&(null!=i||null!=f||null!=s)){var e=(0,n.default)(i);(0,o.default)(null==e||'number'==typeof e,'Unexpected color given for Ripple color');var l={type:'RippleAndroid',color:e,borderless:!0===f,rippleRadius:s};return{viewProps:!0===c?{nativeForegroundAndroid:l}:{nativeBackgroundAndroid:l},onPressIn:function(e){var n,r,o=u.current;null!=o&&(t.Commands.hotspotUpdate(o,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0),t.Commands.setPressed(o,!0))},onPressMove:function(e){var n,r,o=u.current;null!=o&&t.Commands.hotspotUpdate(o,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0)},onPressOut:function(e){var n=u.current;null!=n&&t.Commands.setPressed(n,!1)}}}return null}),[f,i,c,s,u])};var n=e(_r(d[1])),r=e(_r(d[2])),t=(e(_r(d[3])),_r(d[4])),o=e(_r(d[5])),l=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(n);if(r&&r.has(e))return r.get(e);var t={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var a=o?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(t,l,a):t[l]=e[l]}return t.default=e,r&&r.set(e,t),t})(_r(d[6]));function u(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:n})(e)}}),369,[2,73,63,207,210,40,34]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t,r=e(_r(d[1])),n=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var o=a?Object.getOwnPropertyDescriptor(e,f):null;o&&(o.get||o.set)?Object.defineProperty(n,f,o):n[f]=e[f]}n.default=e,r&&r.set(e,n)})(_r(d[3]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}t='android'===r.default.OS?n.default:_r(d[4]).default;_e.default=t}),370,[2,63,207,34,371]); __d((function(g,r,i,a,m,e,d){var f=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=f(r(d[1]));e.default=(0,t.default)('SafeAreaView',{paperComponentName:'RCTSafeAreaView',interfaceOnly:!0})}),371,[2,224]); -__d((function(g,_r,_i,_a,m,_e,d){var t,e,n=_r(d[0]),a=n(_r(d[1])),r=n(_r(d[2])),l=n(_r(d[3])),o=n(_r(d[4])),u=n(_r(d[5])),i=n(_r(d[6])),c=n(_r(d[7])),s=n(_r(d[8])),f=n(_r(d[9])),p=n(_r(d[10]));function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(y=function(t){return t?n:e})(t)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function k(t){var e,n,a=null!=(e=t.animated)&&e,r=null!=(n=t.showHideTransition)?n:'fade';return{backgroundColor:null!=t.backgroundColor?{value:t.backgroundColor,animated:a}:null,barStyle:null!=t.barStyle?{value:t.barStyle,animated:a}:null,translucent:t.translucent,hidden:null!=t.hidden?{value:t.hidden,animated:a,transition:r}:null,networkActivityIndicatorVisible:t.networkActivityIndicatorVisible}}var S=(function(t){(0,l.default)(S,t);var e,n,y=(e=S,n=v(),function(){var t,a=(0,u.default)(e);if(n){var r=(0,u.default)(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return(0,o.default)(this,t)});function S(){var t;(0,a.default)(this,S);for(var e=arguments.length,n=new Array(e),r=0;r1&&(Re=(0,I.jsx)(p.default,{children:Re})),pe=(0,I.jsx)(e,Object.assign({ref:re},M,xe,{accessibilityState:Se,accessibilityLabelledBy:Pe,accessible:ye,autoCapitalize:je,submitBehavior:ae,caretHidden:he,children:Re,disableFullscreenUI:r.disableFullscreenUI,focusable:void 0!==z?!z:be,mostRecentEventCount:q,nativeID:null!=D?D:r.nativeID,numberOfLines:null!=(Fe=r.rows)?Fe:r.numberOfLines,onBlur:se,onChange:oe,onFocus:de,onScroll:fe,onSelectionChange:ie,placeholder:Ae,style:Ce,text:le,textBreakStrategy:r.textBreakStrategy}))}return(0,I.jsx)(y.default.Provider,{value:!0,children:pe})}var k={enter:'default',done:'done',go:'go',next:'next',previous:'previous',search:'search',send:'send'},B={none:'default',text:'default',decimal:'decimal-pad',numeric:'number-pad',tel:'phone-pad',search:'ios'===b.default.OS?'web-search':'default',email:'email-address',url:'url'},_={'address-line1':'postal-address-region','address-line2':'postal-address-locality',bday:'birthdate-full','bday-day':'birthdate-day','bday-month':'birthdate-month','bday-year':'birthdate-year','cc-csc':'cc-csc','cc-exp':'cc-exp','cc-exp-month':'cc-exp-month','cc-exp-year':'cc-exp-year','cc-number':'cc-number',country:'postal-address-country','current-password':'password',email:'email','honorific-prefix':'name-prefix','honorific-suffix':'name-suffix',name:'name','additional-name':'name-middle','family-name':'name-family','given-name':'name-given','new-password':'password-new',off:'off','one-time-code':'sms-otp','postal-code':'postal-code',sex:'gender','street-address':'street-address',tel:'tel','tel-country-code':'tel-country-code','tel-national':'tel-national',username:'username'},E={'address-line1':'streetAddressLine1','address-line2':'streetAddressLine2','cc-number':'creditCardNumber','current-password':'password',country:'countryName',email:'emailAddress',name:'name','additional-name':'middleName','family-name':'familyName','given-name':'givenName',nickname:'nickname','honorific-prefix':'namePrefix','honorific-suffix':'nameSuffix','new-password':'newPassword',off:'none','one-time-code':'oneTimeCode',organization:'organizationName','organization-title':'jobTitle','postal-code':'postalCode','street-address':'fullStreetAddress',tel:'telephoneNumber',url:'URL',username:'username'},L=O.forwardRef((function(e,n){var t,l=e.allowFontScaling,a=void 0===l||l,u=e.rejectResponderTermination,r=void 0===u||u,o=e.underlineColorAndroid,s=void 0===o?'transparent':o,f=e.autoComplete,p=e.textContentType,y=e.readOnly,v=e.editable,h=e.enterKeyHint,S=e.returnKeyType,x=e.inputMode,C=e.showSoftInputOnFocus,T=e.keyboardType,O=(0,i.default)(e,j),w=(0,c.default)(O.style);return null!=(null==w?void 0:w.verticalAlign)&&(w.textAlignVertical=D[w.verticalAlign],delete w.verticalAlign),(0,I.jsx)(R,Object.assign({allowFontScaling:a,rejectResponderTermination:r,underlineColorAndroid:s,editable:void 0!==y?!y:v,returnKeyType:h?k[h]:S,keyboardType:x?B[x]:T,showSoftInputOnFocus:null==x?C:'none'!==x,autoComplete:'android'===b.default.OS?null!=(t=_[f])?t:f:void 0,textContentType:null!=p?p:'ios'===b.default.OS&&f&&f in E?E[f]:p},O,{forwardedRef:n,style:w}))}));L.displayName='TextInput',L.propTypes=_r(d[19]).TextInputPropTypes,L.State={currentlyFocusedInput:h.default.currentlyFocusedInput,currentlyFocusedField:h.default.currentlyFocusedField,focusTextInput:h.default.focusTextInput,blurTextInput:h.default.blurTextInput};var N=f.default.create({multilineInput:{paddingTop:5}}),D={auto:'auto',top:'top',bottom:'bottom',middle:'center'};m.exports=L}),378,[2,23,4,242,111,213,239,208,63,294,67,379,40,95,30,211,68,108,381,249]); +__d((function(g,_r,_i,_a,m,_e,d){var t,e,n=_r(d[0]),a=n(_r(d[1])),r=n(_r(d[2])),l=n(_r(d[3])),o=n(_r(d[4])),u=n(_r(d[5])),i=n(_r(d[6])),c=n(_r(d[7])),s=n(_r(d[8])),f=n(_r(d[9])),p=n(_r(d[10]));function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(y=function(t){return t?n:e})(t)}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function k(t){var e,n,a=null!=(e=t.animated)&&e,r=null!=(n=t.showHideTransition)?n:'fade';return{backgroundColor:null!=t.backgroundColor?{value:t.backgroundColor,animated:a}:null,barStyle:null!=t.barStyle?{value:t.barStyle,animated:a}:null,translucent:t.translucent,hidden:null!=t.hidden?{value:t.hidden,animated:a,transition:r}:null,networkActivityIndicatorVisible:t.networkActivityIndicatorVisible}}var S=(function(t){function e(){var t,n,r,u;(0,a.default)(this,e);for(var i=arguments.length,c=new Array(i),s=0;s1&&(Re=(0,I.jsx)(p.default,{children:Re})),pe=(0,I.jsx)(e,Object.assign({ref:re},M,xe,{accessibilityState:Se,accessibilityLabelledBy:Pe,accessible:ye,autoCapitalize:je,submitBehavior:ae,caretHidden:he,children:Re,disableFullscreenUI:r.disableFullscreenUI,focusable:void 0!==z?!z:be,mostRecentEventCount:q,nativeID:null!=D?D:r.nativeID,numberOfLines:null!=(Fe=r.rows)?Fe:r.numberOfLines,onBlur:se,onChange:oe,onFocus:de,onScroll:fe,onSelectionChange:ie,placeholder:Ae,style:Ce,text:le,textBreakStrategy:r.textBreakStrategy}))}return(0,I.jsx)(y.default.Provider,{value:!0,children:pe})}var k={enter:'default',done:'done',go:'go',next:'next',previous:'previous',search:'search',send:'send'},B={none:'default',text:'default',decimal:'decimal-pad',numeric:'number-pad',tel:'phone-pad',search:'ios'===b.default.OS?'web-search':'default',email:'email-address',url:'url'},_={'address-line1':'postal-address-region','address-line2':'postal-address-locality',bday:'birthdate-full','bday-day':'birthdate-day','bday-month':'birthdate-month','bday-year':'birthdate-year','cc-csc':'cc-csc','cc-exp':'cc-exp','cc-exp-month':'cc-exp-month','cc-exp-year':'cc-exp-year','cc-number':'cc-number',country:'postal-address-country','current-password':'password',email:'email','honorific-prefix':'name-prefix','honorific-suffix':'name-suffix',name:'name','additional-name':'name-middle','family-name':'name-family','given-name':'name-given','new-password':'password-new',off:'off','one-time-code':'sms-otp','postal-code':'postal-code',sex:'gender','street-address':'street-address',tel:'tel','tel-country-code':'tel-country-code','tel-national':'tel-national',username:'username'},E={'address-line1':'streetAddressLine1','address-line2':'streetAddressLine2','cc-number':'creditCardNumber','current-password':'password',country:'countryName',email:'emailAddress',name:'name','additional-name':'middleName','family-name':'familyName','given-name':'givenName',nickname:'nickname','honorific-prefix':'namePrefix','honorific-suffix':'nameSuffix','new-password':'newPassword',off:'none','one-time-code':'oneTimeCode',organization:'organizationName','organization-title':'jobTitle','postal-code':'postalCode','street-address':'fullStreetAddress',tel:'telephoneNumber',url:'URL',username:'username'},L=O.forwardRef((function(e,n){var t,l=e.allowFontScaling,a=void 0===l||l,u=e.rejectResponderTermination,r=void 0===u||u,o=e.underlineColorAndroid,s=void 0===o?'transparent':o,f=e.autoComplete,p=e.textContentType,y=e.readOnly,v=e.editable,h=e.enterKeyHint,S=e.returnKeyType,x=e.inputMode,C=e.showSoftInputOnFocus,T=e.keyboardType,O=(0,i.default)(e,j),w=(0,c.default)(O.style);return null!=(null==w?void 0:w.verticalAlign)&&(w.textAlignVertical=D[w.verticalAlign],delete w.verticalAlign),(0,I.jsx)(R,Object.assign({allowFontScaling:a,rejectResponderTermination:r,underlineColorAndroid:s,editable:void 0!==y?!y:v,returnKeyType:h?k[h]:S,keyboardType:x?B[x]:T,showSoftInputOnFocus:null==x?C:'none'!==x,autoComplete:'android'===b.default.OS?null!=(t=_[f])?t:f:void 0,textContentType:null!=p?p:'ios'===b.default.OS&&f&&f in E?E[f]:p},O,{forwardedRef:n,style:w}))}));L.displayName='TextInput',L.propTypes=_r(d[19]).TextInputPropTypes,L.State={currentlyFocusedInput:h.default.currentlyFocusedInput,currentlyFocusedField:h.default.currentlyFocusedField,focusTextInput:h.default.focusTextInput,blurTextInput:h.default.blurTextInput};var N=f.default.create({multilineInput:{paddingTop:5}}),D={auto:'auto',top:'top',bottom:'bottom',middle:'center'};m.exports=L}),378,[2,27,3,242,111,213,239,208,63,294,67,379,40,95,34,211,68,108,381,249]); __d((function(g,r,i,a,m,e,d){var n=new(r(d[0]));m.exports=n}),379,[380]); __d((function(g,r,_i,a,m,e,d){'use strict';var t=Object.prototype.hasOwnProperty,n='~';function o(){}function s(t,n,o){this.fn=t,this.context=n,this.once=o||!1}function i(t,o,i,c,f){if('function'!=typeof i)throw new TypeError('The listener must be a function');var u=new s(i,c||t,f),v=n?n+o:o;return t._events[v]?t._events[v].fn?t._events[v]=[t._events[v],u]:t._events[v].push(u):(t._events[v]=u,t._eventsCount++),t}function c(t,n){0==--t._eventsCount?t._events=new o:delete t._events[n]}function f(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),f.prototype.eventNames=function(){var o,s,i=[];if(0===this._eventsCount)return i;for(s in o=this._events)t.call(o,s)&&i.push(n?s.slice(1):s);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(o)):i},f.prototype.listeners=function(t){var o=n?n+t:t,s=this._events[o];if(!s)return[];if(s.fn)return[s.fn];for(var i=0,c=s.length,f=new Array(c);i0,s=i&&i.length>0;return!o&&s?i[0]:o?e[0]:t},u='NOT_RESPONDER',h='RESPONDER_INACTIVE_PRESS_IN',r='RESPONDER_INACTIVE_PRESS_OUT',R='RESPONDER_ACTIVE_PRESS_IN',_='RESPONDER_ACTIVE_PRESS_OUT',c='RESPONDER_ACTIVE_LONG_PRESS_IN',S='RESPONDER_ACTIVE_LONG_PRESS_OUT',T='ERROR',P={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},D=Object.assign({},P,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),N=Object.assign({},P,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),O=Object.assign({},P,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),p='DELAY',b='RESPONDER_GRANT',A='RESPONDER_RELEASE',f='RESPONDER_TERMINATED',I='ENTER_PRESS_RECT',L='LEAVE_PRESS_RECT',v='LONG_PRESS_DETECTED',y={NOT_RESPONDER:{DELAY:T,RESPONDER_GRANT:h,RESPONDER_RELEASE:T,RESPONDER_TERMINATED:T,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_IN:{DELAY:R,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:h,LEAVE_PRESS_RECT:r,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:_,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:h,LEAVE_PRESS_RECT:r,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:c},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:c,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:c},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:c,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:T},error:{DELAY:u,RESPONDER_GRANT:h,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:u,LEAVE_PRESS_RECT:u,LONG_PRESS_DETECTED:u}},C={componentDidMount:function(){o.default.isTV},componentWillUnmount:function(){this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var e=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=u,this.state.touchable.responderID=e,this._receiveSignal(b,t);var i=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(i=isNaN(i)?130:i)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),i):this._handleDelay(t);var o=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;o=isNaN(o)?370:o,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),o+i)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(A,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(f,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,i=this.state.touchable.dimensionsOnActivate,o=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},s=o.left,E=o.top,a=o.right,n=o.bottom,u=this.touchableGetHitSlop?this.touchableGetHitSlop():null;u&&(s+=u.left||0,E+=u.top||0,a+=u.right||0,n+=u.bottom||0);var r=l(t.nativeEvent),R=r&&r.pageX,_=r&&r.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(R,_,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(R>e.left-s&&_>e.top-E&&R>`");o!==s&&(this._performSideEffectsForTransition(o,s,t,e),this.state.touchable.touchState=s)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===R||t===c},_savePressInLocation:function(t){var e=l(t.nativeEvent),i=e&&e.pageX,o=e&&e.pageY,s=e&&e.locationX,E=e&&e.locationY;this.pressInLocation={pageX:i,pageY:o,locationX:s,locationY:E}},_getDistanceBetweenPoints:function(t,e,i,o){var s=t-i,E=e-o;return Math.sqrt(s*s+E*E)},_performSideEffectsForTransition:function(t,e,i,E){var a=this._isHighlight(t),n=this._isHighlight(e);(i===f||i===A)&&this._cancelLongPressDelayTimeout();var l=t===u&&e===h,r=!D[t]&&D[e];if((l||r)&&this._remeasureMetricsOnActivation(),N[t]&&i===v&&this.touchableHandleLongPress&&this.touchableHandleLongPress(E),n&&!a?this._startHighlight(E):!n&&a&&this._endHighlight(E),N[t]&&i===A){var R=!!this.props.onLongPress,_=O[t]&&(!R||!this.touchableLongPressCancelsPress());(!O[t]||_)&&this.touchableHandlePress&&(n||a||(this._startHighlight(E),this._endHighlight(E)),'android'!==o.default.OS||this.props.touchSoundDisabled||s.default.playTouchSound(),this.touchableHandlePress(E))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){var e=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout((function(){e.touchableHandleActivePressOut(t)}),this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},withoutDefaultFocusAndBlur:{}},G=(C.touchableHandleFocus,C.touchableHandleBlur,(0,e.default)(C,["touchableHandleFocus","touchableHandleBlur"]));C.withoutDefaultFocusAndBlur=G;var V={Mixin:C,renderDebugView:function(t){t.color,t.hitSlop;return null}};m.exports=V}),383,[2,4,240,93,63,244,384,386,30,211]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}_e.Commands=(0,r.default)({supportedCommands:['focus','blur','setTextAndSelection']});var a=_e.__INTERNAL_VIEW_CONFIG=Object.assign({uiViewClassName:'RCTMultilineTextInputView'},n.default,{validAttributes:Object.assign({},n.default.validAttributes,{dataDetectorTypes:!0})}),i=t.get('RCTMultilineTextInputView',(function(){return a}));_e.default=i}),381,[2,69,107,109]); +__d((function(g,r,i,a,m,_e,d){"use strict";var e=r(d[0]),t=r(d[1]),n=r(d[2]),u=r(d[3]),o=r(d[4]),s=t.forwardRef((function(t,s){return e.jsx(n,Object.assign({onStartShouldSetResponderCapture:function(e){return u.State.currentlyFocusedInput()!==e.target&&o.emit("tapOutside"),!1}},t,{children:t.children}))}));n.displayName="TopLevelView",m.exports=s}),382,[211,34,207,378,379]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]),e=t(_r(d[1])),i=(_r(d[2]),t(_r(d[3]))),o=t(_r(d[4])),s=t(_r(d[5])),E=t(_r(d[6])),a=t(_r(d[7]));(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=n(e);if(i&&i.has(t))return i.get(t);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var a=s?Object.getOwnPropertyDescriptor(t,E):null;a&&(a.get||a.set)?Object.defineProperty(o,E,a):o[E]=t[E]}o.default=t,i&&i.set(t,o)})(_r(d[8])),_r(d[9]);function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(n=function(t){return t?i:e})(t)}var l=function(t){var e=t.touches,i=t.changedTouches,o=e&&e.length>0,s=i&&i.length>0;return!o&&s?i[0]:o?e[0]:t},u='NOT_RESPONDER',h='RESPONDER_INACTIVE_PRESS_IN',r='RESPONDER_INACTIVE_PRESS_OUT',R='RESPONDER_ACTIVE_PRESS_IN',_='RESPONDER_ACTIVE_PRESS_OUT',c='RESPONDER_ACTIVE_LONG_PRESS_IN',S='RESPONDER_ACTIVE_LONG_PRESS_OUT',T='ERROR',P={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},D=Object.assign({},P,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),N=Object.assign({},P,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),O=Object.assign({},P,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),p='DELAY',A='RESPONDER_GRANT',b='RESPONDER_RELEASE',f='RESPONDER_TERMINATED',I='ENTER_PRESS_RECT',L='LEAVE_PRESS_RECT',v='LONG_PRESS_DETECTED',y={NOT_RESPONDER:{DELAY:T,RESPONDER_GRANT:h,RESPONDER_RELEASE:T,RESPONDER_TERMINATED:T,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_IN:{DELAY:R,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:h,LEAVE_PRESS_RECT:r,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:_,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:h,LEAVE_PRESS_RECT:r,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:c},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:c,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:c},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:c,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:T},error:{DELAY:u,RESPONDER_GRANT:h,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:u,LEAVE_PRESS_RECT:u,LONG_PRESS_DETECTED:u}},C={componentDidMount:function(){o.default.isTV},componentWillUnmount:function(){this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var e=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=u,this.state.touchable.responderID=e,this._receiveSignal(A,t);var i=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(i=isNaN(i)?130:i)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),i):this._handleDelay(t);var o=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;o=isNaN(o)?370:o,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),o+i)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(b,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(f,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,i=this.state.touchable.dimensionsOnActivate,o=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},s=o.left,E=o.top,a=o.right,n=o.bottom,u=this.touchableGetHitSlop?this.touchableGetHitSlop():null;u&&(s+=u.left||0,E+=u.top||0,a+=u.right||0,n+=u.bottom||0);var r=l(t.nativeEvent),R=r&&r.pageX,_=r&&r.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(R,_,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(R>e.left-s&&_>e.top-E&&R>`");o!==s&&(this._performSideEffectsForTransition(o,s,t,e),this.state.touchable.touchState=s)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===R||t===c},_savePressInLocation:function(t){var e=l(t.nativeEvent),i=e&&e.pageX,o=e&&e.pageY,s=e&&e.locationX,E=e&&e.locationY;this.pressInLocation={pageX:i,pageY:o,locationX:s,locationY:E}},_getDistanceBetweenPoints:function(t,e,i,o){var s=t-i,E=e-o;return Math.sqrt(s*s+E*E)},_performSideEffectsForTransition:function(t,e,i,E){var a=this._isHighlight(t),n=this._isHighlight(e);(i===f||i===b)&&this._cancelLongPressDelayTimeout();var l=t===u&&e===h,r=!D[t]&&D[e];if((l||r)&&this._remeasureMetricsOnActivation(),N[t]&&i===v&&this.touchableHandleLongPress&&this.touchableHandleLongPress(E),n&&!a?this._startHighlight(E):!n&&a&&this._endHighlight(E),N[t]&&i===b){var R=!!this.props.onLongPress,_=O[t]&&(!R||!this.touchableLongPressCancelsPress());(!O[t]||_)&&this.touchableHandlePress&&(n||a||(this._startHighlight(E),this._endHighlight(E)),'android'!==o.default.OS||this.props.touchSoundDisabled||s.default.playTouchSound(),this.touchableHandlePress(E))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){var e=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout((function(){e.touchableHandleActivePressOut(t)}),this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},withoutDefaultFocusAndBlur:{}},G=(C.touchableHandleFocus,C.touchableHandleBlur,(0,e.default)(C,["touchableHandleFocus","touchableHandleBlur"]));C.withoutDefaultFocusAndBlur=G;var V={Mixin:C,renderDebugView:function(t){t.color,t.hitSlop;return null}};m.exports=V}),383,[2,3,240,93,63,244,384,386,34,211]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=t.default.twoArgumentPooler;function n(t,o){this.width=t,this.height=o}n.prototype.destructor=function(){this.width=null,this.height=null},n.getPooledFromElement=function(t){return n.getPooled(t.offsetWidth,t.offsetHeight)},t.default.addPoolingTo(n,o),m.exports=n}),384,[2,385]); __d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),o=function(n){var o=this;if(o.instancePool.length){var t=o.instancePool.pop();return o.call(t,n),t}return new o(n)},t=function(o){var t=this;(0,n.default)(o instanceof t,'Trying to release an instance into a pool of a different type.'),o.destructor(),t.instancePool.lengthi&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v=i){f+=u&&o?C.currentPageX:u&&!o?C.currentPageY:!u&&o?C.previousPageX:C.previousPageY,s++}}return s>0?f/s:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1};m.exports=n}),409,[]); -__d((function(g,r,i,a,m,e,d){var o=r(d[0]),n=o(r(d[1])),s=o(r(d[2])),E=o(r(d[3])),A=(o(r(d[4])),o(r(d[5])),o(r(d[6])),r(d[7]),Object.freeze({GRANTED:'granted',DENIED:'denied',NEVER_ASK_AGAIN:'never_ask_again'})),_=Object.freeze({READ_CALENDAR:'android.permission.READ_CALENDAR',WRITE_CALENDAR:'android.permission.WRITE_CALENDAR',CAMERA:'android.permission.CAMERA',READ_CONTACTS:'android.permission.READ_CONTACTS',WRITE_CONTACTS:'android.permission.WRITE_CONTACTS',GET_ACCOUNTS:'android.permission.GET_ACCOUNTS',ACCESS_FINE_LOCATION:'android.permission.ACCESS_FINE_LOCATION',ACCESS_COARSE_LOCATION:'android.permission.ACCESS_COARSE_LOCATION',ACCESS_BACKGROUND_LOCATION:'android.permission.ACCESS_BACKGROUND_LOCATION',RECORD_AUDIO:'android.permission.RECORD_AUDIO',READ_PHONE_STATE:'android.permission.READ_PHONE_STATE',CALL_PHONE:'android.permission.CALL_PHONE',READ_CALL_LOG:'android.permission.READ_CALL_LOG',WRITE_CALL_LOG:'android.permission.WRITE_CALL_LOG',ADD_VOICEMAIL:'com.android.voicemail.permission.ADD_VOICEMAIL',READ_VOICEMAIL:'com.android.voicemail.permission.READ_VOICEMAIL',WRITE_VOICEMAIL:'com.android.voicemail.permission.WRITE_VOICEMAIL',USE_SIP:'android.permission.USE_SIP',PROCESS_OUTGOING_CALLS:'android.permission.PROCESS_OUTGOING_CALLS',BODY_SENSORS:'android.permission.BODY_SENSORS',BODY_SENSORS_BACKGROUND:'android.permission.BODY_SENSORS_BACKGROUND',SEND_SMS:'android.permission.SEND_SMS',RECEIVE_SMS:'android.permission.RECEIVE_SMS',READ_SMS:'android.permission.READ_SMS',RECEIVE_WAP_PUSH:'android.permission.RECEIVE_WAP_PUSH',RECEIVE_MMS:'android.permission.RECEIVE_MMS',READ_EXTERNAL_STORAGE:'android.permission.READ_EXTERNAL_STORAGE',READ_MEDIA_IMAGES:'android.permission.READ_MEDIA_IMAGES',READ_MEDIA_VIDEO:'android.permission.READ_MEDIA_VIDEO',READ_MEDIA_AUDIO:'android.permission.READ_MEDIA_AUDIO',WRITE_EXTERNAL_STORAGE:'android.permission.WRITE_EXTERNAL_STORAGE',BLUETOOTH_CONNECT:'android.permission.BLUETOOTH_CONNECT',BLUETOOTH_SCAN:'android.permission.BLUETOOTH_SCAN',BLUETOOTH_ADVERTISE:'android.permission.BLUETOOTH_ADVERTISE',ACCESS_MEDIA_LOCATION:'android.permission.ACCESS_MEDIA_LOCATION',ACCEPT_HANDOVER:'android.permission.ACCEPT_HANDOVER',ACTIVITY_RECOGNITION:'android.permission.ACTIVITY_RECOGNITION',ANSWER_PHONE_CALLS:'android.permission.ANSWER_PHONE_CALLS',READ_PHONE_NUMBERS:'android.permission.READ_PHONE_NUMBERS',UWB_RANGING:'android.permission.UWB_RANGING',POST_NOTIFICATIONS:'android.permission.POST_NOTIFICATIONS',NEARBY_WIFI_DEVICES:'android.permission.NEARBY_WIFI_DEVICES'}),O=(function(){function o(){(0,s.default)(this,o),this.PERMISSIONS=_,this.RESULTS=A}var O,S;return(0,E.default)(o,[{key:"checkPermission",value:function(o){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"check",value:function(o){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"requestPermission",value:(S=(0,n.default)((function*(o,n){return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)})),function(o,n){return S.apply(this,arguments)})},{key:"request",value:(O=(0,n.default)((function*(o,n){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(this.RESULTS.DENIED)})),function(o,n){return O.apply(this,arguments)})},{key:"requestMultiple",value:function(o){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve({})}}]),o})(),S=new O;m.exports=S}),410,[2,12,21,22,183,411,40,63]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('PermissionsAndroid')}),411,[60]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]),o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),u=t(r(d[4])),c=t(r(d[5])),f=t(r(d[6])),s=new l.default('ios'!==u.default.OS?null:c.default),v=new Map,h=(function(){function t(n){var l=this;(0,o.default)(this,t),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=n.remote,this._isRemote&&(this._notificationId=n.notificationId),n.remote?Object.keys(n).forEach((function(t){var o=n[t];'aps'===t?(l._alert=o.alert,l._sound=o.sound,l._badgeCount=o.badge,l._category=o.category,l._contentAvailable=o['content-available'],l._threadID=o['thread-id']):l._data[t]=o})):(this._badgeCount=n.applicationIconBadgeNumber,this._sound=n.soundName,this._alert=n.alertBody,this._data=n.userInfo,this._category=n.category)}return(0,n.default)(t,[{key:"finish",value:function(t){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.onFinishRemoteNotification(this._notificationId,t))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}],[{key:"presentLocalNotification",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(o,n){var l;(0,f.default)('notification'===o||'register'===o||'registrationError'===o||'localNotification'===o,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===o?l=s.addListener("remoteNotificationReceived",(function(o){n(new t(o))})):'localNotification'===o?l=s.addListener("localNotificationReceived",(function(o){n(new t(o))})):'register'===o?l=s.addListener("remoteNotificationsRegistered",(function(t){n(t.deviceToken)})):'registrationError'===o&&(l=s.addListener("remoteNotificationRegistrationError",(function(t){n(t)}))),v.set(o,l)}},{key:"removeEventListener",value:function(t,o){(0,f.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var n=v.get(t);n&&(n.remove(),v.delete(t))}},{key:"requestPermissions",value:function(t){var o={alert:!0,badge:!0,sound:!0};return t&&(o={alert:!!t.alert,badge:!!t.badge,sound:!!t.sound}),(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,f.default)('function'==typeof t,'Must provide a valid callback'),(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getInitialNotification().then((function(o){return o&&new t(o)}))}},{key:"getAuthorizationStatus",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getAuthorizationStatus(t)}}]),t})();h.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=h}),412,[2,21,22,171,63,413,40]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('PushNotificationManager')}),413,[60]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]),n=o(r(d[1])),s=o(r(d[2])),E=o(r(d[3])),A=(o(r(d[4])),o(r(d[5])),o(r(d[6])),r(d[7]),Object.freeze({GRANTED:'granted',DENIED:'denied',NEVER_ASK_AGAIN:'never_ask_again'})),_=Object.freeze({READ_CALENDAR:'android.permission.READ_CALENDAR',WRITE_CALENDAR:'android.permission.WRITE_CALENDAR',CAMERA:'android.permission.CAMERA',READ_CONTACTS:'android.permission.READ_CONTACTS',WRITE_CONTACTS:'android.permission.WRITE_CONTACTS',GET_ACCOUNTS:'android.permission.GET_ACCOUNTS',ACCESS_FINE_LOCATION:'android.permission.ACCESS_FINE_LOCATION',ACCESS_COARSE_LOCATION:'android.permission.ACCESS_COARSE_LOCATION',ACCESS_BACKGROUND_LOCATION:'android.permission.ACCESS_BACKGROUND_LOCATION',RECORD_AUDIO:'android.permission.RECORD_AUDIO',READ_PHONE_STATE:'android.permission.READ_PHONE_STATE',CALL_PHONE:'android.permission.CALL_PHONE',READ_CALL_LOG:'android.permission.READ_CALL_LOG',WRITE_CALL_LOG:'android.permission.WRITE_CALL_LOG',ADD_VOICEMAIL:'com.android.voicemail.permission.ADD_VOICEMAIL',READ_VOICEMAIL:'com.android.voicemail.permission.READ_VOICEMAIL',WRITE_VOICEMAIL:'com.android.voicemail.permission.WRITE_VOICEMAIL',USE_SIP:'android.permission.USE_SIP',PROCESS_OUTGOING_CALLS:'android.permission.PROCESS_OUTGOING_CALLS',BODY_SENSORS:'android.permission.BODY_SENSORS',BODY_SENSORS_BACKGROUND:'android.permission.BODY_SENSORS_BACKGROUND',SEND_SMS:'android.permission.SEND_SMS',RECEIVE_SMS:'android.permission.RECEIVE_SMS',READ_SMS:'android.permission.READ_SMS',RECEIVE_WAP_PUSH:'android.permission.RECEIVE_WAP_PUSH',RECEIVE_MMS:'android.permission.RECEIVE_MMS',READ_EXTERNAL_STORAGE:'android.permission.READ_EXTERNAL_STORAGE',READ_MEDIA_IMAGES:'android.permission.READ_MEDIA_IMAGES',READ_MEDIA_VIDEO:'android.permission.READ_MEDIA_VIDEO',READ_MEDIA_AUDIO:'android.permission.READ_MEDIA_AUDIO',WRITE_EXTERNAL_STORAGE:'android.permission.WRITE_EXTERNAL_STORAGE',BLUETOOTH_CONNECT:'android.permission.BLUETOOTH_CONNECT',BLUETOOTH_SCAN:'android.permission.BLUETOOTH_SCAN',BLUETOOTH_ADVERTISE:'android.permission.BLUETOOTH_ADVERTISE',ACCESS_MEDIA_LOCATION:'android.permission.ACCESS_MEDIA_LOCATION',ACCEPT_HANDOVER:'android.permission.ACCEPT_HANDOVER',ACTIVITY_RECOGNITION:'android.permission.ACTIVITY_RECOGNITION',ANSWER_PHONE_CALLS:'android.permission.ANSWER_PHONE_CALLS',READ_PHONE_NUMBERS:'android.permission.READ_PHONE_NUMBERS',UWB_RANGING:'android.permission.UWB_RANGING',POST_NOTIFICATIONS:'android.permission.POST_NOTIFICATIONS',NEARBY_WIFI_DEVICES:'android.permission.NEARBY_WIFI_DEVICES'}),O=(function(){return(0,E.default)((function o(){(0,s.default)(this,o),this.PERMISSIONS=_,this.RESULTS=A}),[{key:"checkPermission",value:function(o){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"check",value:function(o){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"requestPermission",value:(O=(0,n.default)((function*(o,n){return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)})),function(o,n){return O.apply(this,arguments)})},{key:"request",value:(o=(0,n.default)((function*(o,n){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(this.RESULTS.DENIED)})),function(n,s){return o.apply(this,arguments)})},{key:"requestMultiple",value:function(o){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve({})}}]);var o,O})(),S=new O;m.exports=S}),410,[2,18,25,26,183,411,40,63]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('PermissionsAndroid')}),411,[60]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),u=t(r(d[4])),c=t(r(d[5])),f=t(r(d[6])),s=new l.default('ios'!==u.default.OS?null:c.default),v=new Map,h=(function(){function t(n){var l=this;(0,o.default)(this,t),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=n.remote,this._isRemote&&(this._notificationId=n.notificationId),n.remote?Object.keys(n).forEach((function(t){var o=n[t];'aps'===t?(l._alert=o.alert,l._sound=o.sound,l._badgeCount=o.badge,l._category=o.category,l._contentAvailable=o['content-available'],l._threadID=o['thread-id']):l._data[t]=o})):(this._badgeCount=n.applicationIconBadgeNumber,this._sound=n.soundName,this._alert=n.alertBody,this._data=n.userInfo,this._category=n.category)}return(0,n.default)(t,[{key:"finish",value:function(t){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.onFinishRemoteNotification(this._notificationId,t))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}],[{key:"presentLocalNotification",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(o,n){var l;(0,f.default)('notification'===o||'register'===o||'registrationError'===o||'localNotification'===o,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===o?l=s.addListener("remoteNotificationReceived",(function(o){n(new t(o))})):'localNotification'===o?l=s.addListener("localNotificationReceived",(function(o){n(new t(o))})):'register'===o?l=s.addListener("remoteNotificationsRegistered",(function(t){n(t.deviceToken)})):'registrationError'===o&&(l=s.addListener("remoteNotificationRegistrationError",(function(t){n(t)}))),v.set(o,l)}},{key:"removeEventListener",value:function(t,o){(0,f.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var n=v.get(t);n&&(n.remove(),v.delete(t))}},{key:"requestPermissions",value:function(t){var o={alert:!0,badge:!0,sound:!0};return t&&(o={alert:!!t.alert,badge:!!t.badge,sound:!!t.sound}),(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,f.default)('function'==typeof t,'Must provide a valid callback'),(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getInitialNotification().then((function(o){return o&&new t(o)}))}},{key:"getAuthorizationStatus",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getAuthorizationStatus(t)}}])})();h.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=h}),412,[2,25,26,171,63,413,40]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('PushNotificationManager')}),413,[60]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]),s=t(r(d[1])),n=t(r(d[2])),c=t(r(d[3])),l=[],u={_settings:n.default&&n.default.getConstants().settings,get:function(t){return this._settings[t]},set:function(t){this._settings=Object.assign(this._settings,t),n.default.setValues(t)},watchKeys:function(t,s){'string'==typeof t&&(t=[t]),(0,c.default)(Array.isArray(t),'keys should be a string or array of strings');var n=l.length;return l.push({keys:t,callback:s}),n},clearWatch:function(t){t1&&void 0!==arguments[1]?arguments[1]:{};return c('object'==typeof t&&null!==t,'Content to share must be a valid object'),c('string'==typeof t.url||'string'==typeof t.message,'At least one of URL and message is required'),c('object'==typeof o&&null!==o,'Options must be a valid object'),new Promise((function(n,l){var f=u(o.tintColor);c(null==f||'number'==typeof f,'Unexpected color given for options.tintColor'),c(s.default,'NativeActionSheetManager is not registered on iOS, but it should be.'),s.default.showShareActionSheetWithOptions({message:'string'==typeof t.message?t.message:void 0,url:'string'==typeof t.url?t.url:void 0,subject:o.subject,tintColor:'number'==typeof f?f:void 0,anchor:'number'==typeof o.anchor?o.anchor:void 0,excludedActivityTypes:o.excludedActivityTypes},(function(t){return l(t)}),(function(t,o){n(t?{action:'sharedAction',activityType:o}:{action:'dismissedAction',activityType:null})}))}))}}]),t})();l.sharedAction='sharedAction',l.dismissedAction='dismissedAction',m.exports=l}),416,[2,21,22,392,417,73,63,40]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('ShareModule')}),417,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('SettingsManager')}),415,[60]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),o=t(r(d[1])),n=t(r(d[2])),s=t(r(d[3])),u=(t(r(d[4])),r(d[5]).default),c=(r(d[6]),r(d[7])),l=(function(){return(0,n.default)((function t(){(0,o.default)(this,t)}),null,[{key:"share",value:function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c('object'==typeof t&&null!==t,'Content to share must be a valid object'),c('string'==typeof t.url||'string'==typeof t.message,'At least one of URL and message is required'),c('object'==typeof o&&null!==o,'Options must be a valid object'),new Promise((function(n,l){var f=u(o.tintColor);c(null==f||'number'==typeof f,'Unexpected color given for options.tintColor'),c(s.default,'NativeActionSheetManager is not registered on iOS, but it should be.'),s.default.showShareActionSheetWithOptions({message:'string'==typeof t.message?t.message:void 0,url:'string'==typeof t.url?t.url:void 0,subject:o.subject,tintColor:'number'==typeof f?f:void 0,anchor:'number'==typeof o.anchor?o.anchor:void 0,excludedActivityTypes:o.excludedActivityTypes},(function(t){return l(t)}),(function(t,o){n(t?{action:'sharedAction',activityType:o}:{action:'dismissedAction',activityType:null})}))}))}}])})();l.sharedAction='sharedAction',l.dismissedAction='dismissedAction',m.exports=l}),416,[2,25,26,392,417,73,63,40]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=o?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=e[f]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('ShareModule')}),417,[60]); __d((function(g,r,i,a,m,e,d){'use strict';var o={show:function(o,t){console.warn('ToastAndroid is not supported on this platform.')},showWithGravity:function(o,t,n){console.warn('ToastAndroid is not supported on this platform.')},showWithGravityAndOffset:function(o,t,n,s,p){console.warn('ToastAndroid is not supported on this platform.')}};m.exports=o}),418,[]); -__d((function(g,r,i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,l){var c=(0,t.useRef)(null);null==c.current&&(c.current=new n.default.Value(u,l));return c.current};var n=u(r(d[1])),t=r(d[2])}),419,[2,272,30]); +__d((function(g,r,i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,l){var c=(0,t.useRef)(null);null==c.current&&(c.current=new n.default.Value(u,l));return c.current};var n=u(r(d[1])),t=r(d[2])}),419,[2,272,34]); __d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,u.useSyncExternalStore)((function(t){var u=n.default.addChangeListener(t);return function(){return u.remove()}}),(function(){return n.default.getColorScheme()}))};var n=t(r(d[1])),u=r(d[2])}),420,[2,393,421]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])}),421,[422]); -__d((function(_g,_r,i,_a,_m,_e,_d){'use strict';var t=_r(_d[0]);var n="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},e=t.useState,u=t.useEffect,r=t.useLayoutEffect,s=t.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var u=e();return!n(t,u)}catch(t){return!0}}_e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:function(t,n){var c=n(),o=e({inst:{value:c,getSnapshot:n}}),f=o[0].inst,S=o[1];return r((function(){f.value=c,f.getSnapshot=n,a(f)&&S({inst:f})}),[t,c,n]),u((function(){return a(f)&&S({inst:f}),t((function(){a(f)&&S({inst:f})}))}),[t]),s(c),c}}),422,[30]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,f.useState)((function(){return u.default.get('window')})),o=(0,n.default)(t,2),c=o[0],l=o[1];return(0,f.useEffect)((function(){function t(t){var n=t.window;c.width===n.width&&c.height===n.height&&c.scale===n.scale&&c.fontScale===n.fontScale||l(n)}var n=u.default.addEventListener('change',t);return t({window:u.default.get('window')}),function(){n.remove()}}),[c]),c};var n=t(r(d[1])),u=t(r(d[2])),f=r(d[3])}),423,[2,23,83,30]); +__d((function(_g,_r,i,_a,_m,_e,_d){'use strict';var t=_r(_d[0]);var n="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},e=t.useState,u=t.useEffect,r=t.useLayoutEffect,s=t.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var u=e();return!n(t,u)}catch(t){return!0}}_e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:function(t,n){var c=n(),o=e({inst:{value:c,getSnapshot:n}}),f=o[0].inst,S=o[1];return r((function(){f.value=c,f.getSnapshot=n,a(f)&&S({inst:f})}),[t,c,n]),u((function(){return a(f)&&S({inst:f}),t((function(){a(f)&&S({inst:f})}))}),[t]),s(c),c}}),422,[34]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,f.useState)((function(){return u.default.get('window')})),o=(0,n.default)(t,2),c=o[0],l=o[1];return(0,f.useEffect)((function(){function t(t){var n=t.window;c.width===n.width&&c.height===n.height&&c.scale===n.scale&&c.fontScale===n.fontScale||l(n)}var n=u.default.addEventListener('change',t);return t({window:u.default.get('window')}),function(){n.remove()}}),[c]),c};var n=t(r(d[1])),u=t(r(d[2])),f=r(d[3])}),423,[2,27,83,34]); __d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var A=r(d[0])({BOM:"\ufeff",BULLET:"\u2022",BULLET_SP:"\xa0\u2022\xa0",MIDDOT:"\xb7",MIDDOT_SP:"\xa0\xb7\xa0",MIDDOT_KATAKANA:"\u30fb",MDASH:"\u2014",MDASH_SP:"\xa0\u2014\xa0",NDASH:"\u2013",NDASH_SP:"\xa0\u2013\xa0",NEWLINE:"\n",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});e.default=A}),424,[52]); __d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(r(d[2]),!1),o=0,u=400;function f(f){var v=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n||(n=!0,0===f[0]&&(t.default.vibrate(u),f=f.slice(1)),0!==f.length?setTimeout((function(){return l(++o,f,v,1)}),f[0]):n=!1)}function l(f,v,c,b){if(n&&f===o){if(t.default.vibrate(u),b>=v.length){if(!c)return void(n=!1);b=0}setTimeout((function(){return l(f,v,c,b+1)}),v[b])}}var v={vibrate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n)if('number'==typeof o)t.default.vibrate(o);else{if(!Array.isArray(o))throw new Error('Vibration pattern should be a number or array');f(o,l)}},cancel:function(){n=!1}};m.exports=v}),425,[2,426,63]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('Vibration')}),426,[60]); -__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),n=r(d[1]),e=r(d[2]),u=r(d[3]),c=r(d[4]);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f;r(d[5]).default;f=(function(f){e(p,f);var l,s,y=(l=p,s=o(),function(){var t,n=c(l);if(s){var e=c(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return u(this,t)});function p(){return t(this,p),y.apply(this,arguments)}return n(p,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(t){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),p})(r(d[6]).Component),m.exports=f}),427,[21,22,17,19,16,407,30]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('Vibration')}),426,[60]); +__d((function(g,r,i,a,m,_e,d){'use strict';var n=r(d[0]),t=r(d[1]),e=r(d[2]),u=r(d[3]),o=r(d[4]);function c(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(c=function(){return!!n})()}var l;r(d[5]).default;l=(function(l){function f(){return n(this,f),t=this,l=arguments,o=u(o=f),e(t,c()?Reflect.construct(o,l||[],u(t).constructor):o.apply(t,l));var t,o,l}return o(f,l),t(f,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(n){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}])})(r(d[6]).Component),m.exports=l}),427,[25,26,20,13,24,407,34]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;var t=r(d[0]);e.DynamicColorIOS=function(o){return(0,t.DynamicColorIOSPrivate)({light:o.light,dark:o.dark,highContrastLight:o.highContrastLight,highContrastDark:o.highContrastDark})}}),428,[76]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.a=function(e){Object.entries(e).forEach((function(e){var n=(0,t.default)(e,2),o=n[0],u=n[1];c.has(o)||c.set(o,u)}))},_e.b=function(e){return void 0===e?"":e instanceof Date?e.getTime():e},_e.c=f,_e.d=function(e,t){if(null==e||""===e)return"ObjectReferenceSet"===t?[]:"";switch(t){case"Boolean":return Boolean(e);case"Decimal":case"Integer":case"Long":return new n.Big(e);case"DateTime":return Number(e);case"ObjectReference":if(Array.isArray(e))throw new Error("Trying to set single object reference to multiple values");return e.toString();case"ObjectReferenceSet":if(!Array.isArray(e))throw new Error("Trying to set object reference set to single value");return e.map((function(e){return e.toString()}));default:return String(e)}},_e.e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return""===e?t?"":null:e instanceof n.Big?e.toString():e},_e.f=function(e,t){return f(l(e,t),t)},_e.g=s,_e.h=function(e,t){if(""!==e&&null!=e)return Array.isArray(e)?e.length?{guids:e}:void 0:"ObjectReference"===t?{guid:"string"==typeof e?e:(0,u.o)()}:{value:e}},_e.i=function(e){if("number"==typeof e&&e>=0&&Math.floor(e)===e)return!0;throw new u.A(`Value ${e} should be a positive integer.`)},_e.j=function(e){if("boolean"==typeof e)return!0;throw new u.A(`Value ${e} should be a boolean.`)},_e.k=function(e,t,n){var c=(0,o.j)(t,n);if(!c)throw new u.A(`Attribute ${n} is not accessible.`);"Enum"===c?(function(t){if(!t)throw new u.A(`Value ${e} is not assignable to attribute of type ${c}.`)})(void 0===e||"string"==typeof e&&s((0,o.k)(t,n)).includes(e)):b(e,c)},_e.l=b,_e.r=l,_e.t=function(e,n){var o=(0,u.e)(c.get(e)).find((function(e){return(0,t.default)(e,1)[0]===n}));return o?o[1]:n};var t=e(r(d[1])),n=r(d[2]),o=r(d[3]),u=r(d[4]),c=new Map;function s(e){return(0,u.e)(c.get(e)).map((function(e){return(0,t.default)(e,1)[0]}))}function f(e,t){switch(t){case"DateTime":return""!==e?new Date(e):void 0;case"AutoNumber":return new n.Big(e);case"String":return e;default:return""!==e?e:void 0}}function l(e,t){if(null==e)return"";switch(t){case"Integer":case"Long":case"Decimal":return new n.Big(e);case"Date":case"DateTime":return e;case"Boolean":return Boolean(e);case"ObjectReferenceSet":return Array.isArray(e)&&e.length>0?e:"";default:return String(e)}}function b(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t){case"String":case"ObjectReference":case"HashString":return c("string"==typeof e||void 0===e);case"ObjectReferenceSet":return c(Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))||void 0===e&&o);case"Boolean":return c("boolean"==typeof e);case"DateTime":return c(void 0===e||e instanceof Date&&!isNaN(e.getTime()));case"Integer":case"Long":case"Decimal":return c(e instanceof n.Big||void 0===e);default:throw new u.A(`Attribute type ${t} is not supported.`)}function c(n){if(!n)throw new u.A(`Value ${e} is not assignable to attribute of type ${t}.`)}}}),429,[2,23,430,37,32]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.a=function(e){Object.entries(e).forEach((function(e){var n=(0,t.default)(e,2),o=n[0],u=n[1];s.has(o)||s.set(o,u)}))},_e.b=b,_e.c=l,_e.d=function(e,t){if(null==e||""===e)return"ObjectReferenceSet"===t?[]:"";switch(t){case"Boolean":return Boolean(e);case"Decimal":case"Integer":case"Long":return new n.Big(e);case"DateTime":return Number(e);case"ObjectReference":if(Array.isArray(e))throw new Error("Trying to set single object reference to multiple values");return e.toString();case"ObjectReferenceSet":if(!Array.isArray(e))throw new Error("Trying to set object reference set to single value");return e.map((function(e){return e.toString()}));default:return String(e)}},_e.e=y,_e.f=function(e,t){return l(w(e,t),t)},_e.g=f,_e.h=function(e){if(e)return"object"in e?(0,c.c)(e.object):"id"in e?e.id:"ids"in e?e.ids:(0,u.q)()},_e.i=function(e,t){switch(t){case"object":return{id:e};case"list":return{ids:e};case"primitive":return{primitive:e}}},_e.j=function(e,t){switch(t){case"object":return{guid:e};case"list":return{guids:e};case"primitive":return{value:v(e)}}},_e.k=v,_e.l=function(e,t){if(""!==e&&null!=e)return Array.isArray(e)?e.length?{guids:e}:void 0:"ObjectReference"===t?{guid:"string"==typeof e?e:(0,u.q)()}:{value:e}},_e.m=function(e){if("number"==typeof e&&e>=0&&Math.floor(e)===e)return!0;throw new u.A(`Value ${e} should be a positive integer.`)},_e.n=function(e){if("boolean"==typeof e)return!0;throw new u.A(`Value ${e} should be a boolean.`)},_e.o=function(e,t,n){var c=(0,o.j)(t,n);if(!c)throw new u.A(`Attribute ${n} is not accessible.`);"Enum"===c?(function(t){if(!t)throw new u.A(`Value ${e} is not assignable to attribute of type ${c}.`)})(void 0===e||"string"==typeof e&&f((0,o.k)(t,n)).includes(e)):h(e,c)},_e.p=h,_e.r=w,_e.t=function(e,n){var o=(0,u.e)(s.get(e)).find((function(e){return(0,t.default)(e,1)[0]===n}));return o?o[1]:n};var t=e(r(d[1])),n=r(d[2]),o=r(d[3]),u=r(d[4]),c=r(d[5]),s=new Map;function f(e){return(0,u.e)(s.get(e)).map((function(e){return(0,t.default)(e,1)[0]}))}function l(e,t){switch(t){case"DateTime":return""!==e?new Date(e):void 0;case"AutoNumber":return new n.Big(e);case"String":return e;default:return""!==e?e:void 0}}function b(e){return void 0===e?"":e instanceof Date?e.getTime():e}function v(e){return y(b(e))}function w(e,t){if(null==e)return"";switch(t){case"Integer":case"Long":case"Decimal":return new n.Big(e);case"Date":case"DateTime":return e;case"Boolean":return Boolean(e);case"ObjectReferenceSet":return Array.isArray(e)&&e.length>0?e:"";default:return String(e)}}function h(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t){case"String":case"ObjectReference":case"HashString":return c("string"==typeof e||void 0===e);case"ObjectReferenceSet":return c(Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))||void 0===e&&o);case"Boolean":return c("boolean"==typeof e);case"DateTime":return c(void 0===e||e instanceof Date&&!isNaN(e.getTime()));case"Integer":case"Long":case"Decimal":return c(e instanceof n.Big||void 0===e);default:throw new u.A(`Attribute type ${t} is not supported.`)}function c(n){if(!n)throw new u.A(`Value ${e} is not assignable to attribute of type ${t}.`)}}function y(e){return""===e?arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"":null:e instanceof n.Big?e.toString():e}}),429,[2,27,430,37,36,31]); __d((function(g,_r,_i,_a,m,_e,d){!(function(r){'use strict';var e,t=1e6,n="[big.js] Invalid decimal places",i="[big.js] Division by zero",o={},s=void 0,c=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function f(r,e){var t,n,i;if(!c.test(e))throw Error("[big.js] Invalid number");for(r.s='-'==e.charAt(0)?(e=e.slice(1),-1):1,(t=e.indexOf('.'))>-1&&(e=e.replace('.','')),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),i=e.length,n=0;n0&&'0'==e.charAt(--i););for(r.e=t-n-1,r.c=[],t=0;n<=i;)r.c[t++]=+e.charAt(n++)}return r}function u(r,e,t,n){var i=r.c;if(t===s&&(t=r.constructor.RM),0!==t&&1!==t&&2!==t&&3!==t)throw Error("[big.js] Invalid rounding mode");if(e<1)n=3===t&&(n||!!i[0])||0===e&&(1===t&&i[0]>=5||2===t&&(i[0]>5||5===i[0]&&(n||i[1]!==s))),i.length=1,n?(r.e=r.e-e+1,i[0]=1):i[0]=r.e=0;else if(e=5||2===t&&(i[e]>5||5===i[e]&&(n||i[e+1]!==s||1&i[e-1]))||3===t&&(n||!!i[0]),i.length=e--,n)for(;++i[e]>9;)i[e]=0,e--||(++r.e,i.unshift(1));for(e=i.length;!i[--e];)i.pop()}return r}function h(r,e,t){var n=r.e,i=r.c.join(''),o=i.length;if(e)i=i.charAt(0)+(o>1?'.'+i.slice(1):'')+(n<0?'e':'e+')+n;else if(n<0){for(;++n;)i='0'+i;i='0.'+i}else if(n>0)if(++n>o)for(n-=o;n--;)i+='0';else n1&&(i=i.charAt(0)+'.'+i.slice(1));return r.s<0&&t?'-'+i:i}o.abs=function(){var r=new this.constructor(this);return r.s=1,r},o.cmp=function(r){var e,t=this,n=t.c,i=(r=new t.constructor(r)).c,o=t.s,s=r.s,c=t.e,f=r.e;if(!n[0]||!i[0])return n[0]?o:i[0]?-s:0;if(o!=s)return o;if(e=o<0,c!=f)return c>f^e?1:-1;for(s=(c=n.length)<(f=i.length)?c:f,o=-1;++oi[o]^e?1:-1;return c==f?0:c>f^e?1:-1},o.div=function(r){var e=this,o=e.constructor,c=e.c,f=(r=new o(r)).c,h=e.s==r.s?1:-1,l=o.DP;if(l!==~~l||l<0||l>t)throw Error(n);if(!f[0])throw Error(i);if(!c[0])return r.s=h,r.c=[r.e=0],r;var a,v,p,w,E,b=f.slice(),j=a=f.length,P=c.length,D=c.slice(0,a),M=D.length,x=r,I=x.c=[],N=0,A=l+(x.e=e.e-r.e)+1;for(x.s=h,h=A<0?0:A,b.unshift(0);M++M?1:-1;else for(E=-1,w=0;++ED[E]?1:-1;break}if(!(w<0))break;for(v=M==a?f:b;M;){if(D[--M]A&&u(x,A,o.RM,D[0]!==s),x},o.eq=function(r){return 0===this.cmp(r)},o.gt=function(r){return this.cmp(r)>0},o.gte=function(r){return this.cmp(r)>-1},o.lt=function(r){return this.cmp(r)<0},o.lte=function(r){return this.cmp(r)<1},o.minus=o.sub=function(r){var e,t,n,i,o=this,s=o.constructor,c=o.s,f=(r=new s(r)).s;if(c!=f)return r.s=-f,o.plus(r);var u=o.c.slice(),h=o.e,l=r.c,a=r.e;if(!u[0]||!l[0])return l[0]?r.s=-f:u[0]?r=new s(o):r.s=1,r;if(c=h-a){for((i=c<0)?(c=-c,n=u):(a=h,n=l),n.reverse(),f=c;f--;)n.push(0);n.reverse()}else for(t=((i=u.length0)for(;f--;)u[e++]=0;for(f=e;t>c;){if(u[--t]0?(f=s,n=u):(e=-e,n=c),n.reverse();e--;)n.push(0);n.reverse()}for(c.length-u.length<0&&(n=u,u=c,c=n),e=u.length,t=0;e;c[e]%=10)t=(c[--e]=c[e]+u[e]+t)/10|0;for(t&&(c.unshift(t),++f),e=c.length;0===c[--e];)c.pop();return r.c=c,r.e=f,r},o.pow=function(r){var e=this,t=new e.constructor('1'),n=t,i=r<0;if(r!==~~r||r<-1e6||r>1e6)throw Error("[big.js] Invalid exponent");for(i&&(r=-r);1&r&&(n=n.times(e)),r>>=1;)e=e.times(e);return i?t.div(n):n},o.prec=function(r,e){if(r!==~~r||r<1||r>t)throw Error("[big.js] Invalid precision");return u(new this.constructor(this),r,e)},o.round=function(r,e){if(r===s)r=0;else if(r!==~~r||r<-1e6||r>t)throw Error(n);return u(new this.constructor(this),r+this.e+1,e)},o.sqrt=function(){var r,e,t,n=this,i=n.constructor,o=n.s,s=n.e,c=new i('0.5');if(!n.c[0])return new i(n);if(o<0)throw Error("[big.js] No square root");0===(o=Math.sqrt(n+''))||o===1/0?((e=n.c.join('')).length+s&1||(e+='0'),s=((s+1)/2|0)-(s<0||1&s),r=new i(((o=Math.sqrt(e))==1/0?'5e':(o=o.toExponential()).slice(0,o.indexOf('e')+1))+s)):r=new i(o+''),s=r.e+(i.DP+=4);do{t=r,r=c.times(t.plus(n.div(t)))}while(t.c.slice(0,s).join('')!==r.c.slice(0,s).join(''));return u(r,(i.DP-=4)+r.e+1,i.RM)},o.times=o.mul=function(r){var e,t=this,n=t.constructor,i=t.c,o=(r=new n(r)).c,s=i.length,c=o.length,f=t.e,u=r.e;if(r.s=t.s==r.s?1:-1,!i[0]||!o[0])return r.c=[r.e=0],r;for(r.e=f+u,sf;)c=e[u]+o[f]*i[u-f-1]+c,e[u--]=c%10,c=c/10|0;e[u]=c}for(c?++r.e:e.shift(),f=e.length;!e[--f];)e.pop();return r.c=e,r},o.toExponential=function(r,e){var i=this,o=i.c[0];if(r!==s){if(r!==~~r||r<0||r>t)throw Error(n);for(i=u(new i.constructor(i),++r,e);i.c.lengtht)throw Error(n);for(r=r+(i=u(new i.constructor(i),r+i.e+1,e)).e+1;i.c.length=e.PE,!!r.c[0])},o.toNumber=function(){var r=Number(h(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(r.toString()))throw Error("[big.js] Imprecise conversion");return r},o.toPrecision=function(r,e){var n=this,i=n.constructor,o=n.c[0];if(r!==s){if(r!==~~r||r<1||r>t)throw Error("[big.js] Invalid precision");for(n=u(new i(n),r,e);n.c.length=i.PE,!!o)},o.valueOf=function(){var r=this,e=r.constructor;if(!0===e.strict)throw Error("[big.js] valueOf disallowed");return h(r,r.e<=e.NE||r.e>=e.PE,!0)},e=(function r(){function e(t){var n=this;if(!(n instanceof e))return t===s?r():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice();else{if('string'!=typeof t){if(!0===e.strict)throw TypeError("[big.js] Invalid number");t=0===t&&1/t<0?'-0':String(t)}f(n,t)}n.constructor=e}return e.prototype=o,e.DP=20,e.RM=1,e.NE=-7,e.PE=21,e.strict=false,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e})(),e.default=e.Big=e,'function'==typeof define&&define.amd?define((function(){return e})):void 0!==m&&m.exports?m.exports=e:r.Big=e})(this)}),430,[]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.W=_e.E=void 0,_e.a=x,_e.b=function(t){var n={};return Object.entries(t).forEach((function(t){var u=(0,e.default)(t,2),o=u[0],f=u[1];n["$"+o]=x(f)})),n};var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),f=t(r(d[5])),c=t(r(d[6])),l=r(d[7]),s=r(d[8]),v=r(d[9]),p=r(d[10]),h=r(d[11]),y=r(d[12]),$=r(d[13]);function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var j=_e.E=(0,v.createContext)((function(){return null})),w=(function(t){(0,o.default)(h,t);var e,s,p=(e=h,s=E(),function(){var t,n=(0,c.default)(e);if(s){var u=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return(0,f.default)(this,t)});function h(){var t;return(0,n.default)(this,h),(t=p.apply(this,arguments)).state={hasError:!1},t}return(0,u.default)(h,[{key:"render",value:function(){var t=this;return this.state.hasError?(0,l.jsx)(j.Consumer,{children:function(e){return(0,v.createElement)(e,{errorMessage:`Could not render widget '${t.props.widgetId}'`})}}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),h})(v.Component),O=new Map;var b=_e.W=(0,v.createContext)("not a widget");function x(t){var n=O.get(t);if(void 0!==n)return n;var u=(0,p.j)(t),o=(function(t,n){var u=(0,v.memo)((function(t,e,n){if(null!=(n=t.prototype)&&n.isReactComponent){var u=function(e){return(0,v.createElement)(t,e)};return u.displayName=e,u}return t.displayName=e,t})(t,n));return function(t){var o=(0,v.useState)((function(){return t.$widgetId})),f=(0,e.default)(o,1)[0];if(t.$widgetId!==f||void 0===f)throw new p.A(`Parent of component ${n} did not correctly assign keys.`);var c,h=(0,y.b)(),E=h.useSlot($.p,"formSuspended"),j=(0,e.default)(E,1)[0],O=(0,v.useMemo)((function(){return P(t,h,t.$widgetId,"")}),[]),x=(0,e.default)(O,2),C=x[0],I=x[1],k=(0,v.useState)((function(){if(!(0,s.m)(C))return C;var e=!0,n={};return c=(0,s.n)((function(){var t=C.dependOn(),u=j.dependOn();e?n=t:u||S(t)}),{name:`Props of ${t.$widgetId}`}),e=!1,n})),M=(0,e.default)(k,2),R=M[0],S=M[1];return(0,v.useLayoutEffect)((function(){return c}),[]),I.length&&(0,v.useLayoutEffect)((function(){return I.forEach((function(t){return t()}))}),[R]),(0,l.jsx)(b.Provider,{value:f,children:(0,l.jsx)(w,{widgetId:(0,p.t)(f),children:(0,l.jsx)(y.c.Provider,{value:(0,v.useContext)(y.c)+1,children:(0,l.jsx)(u,Object.assign({},R))})})})}})(t,u);return o.displayName=`pluginWidget(${u})`,O.set(t,o),o}function P(t,n,u,o){var f=Object.entries(t).map((function(t){var f=(0,e.default)(t,2),c=f[0],l=f[1];return"$widgetId"===c?(0,p.k)("name",(0,p.k)((0,p.l)(u),[])):(0,p.k)(c,C(l,n,u,`${o}/${c}`))}));return[f.some((function(t){var n=(0,e.default)(t,2),u=(n[0],(0,e.default)(n[1],1)[0]);return(0,s.m)(u)}))?(0,s.f)(`Prop ${o||"root"} of ${u}`,(function(){return Object.fromEntries(f.map((function(t){var n=(0,e.default)(t,2),u=n[0],o=(0,e.default)(n[1],1)[0];return[u,(0,s.m)(o)?o.dependOn():o]})))})):Object.fromEntries(f.map((function(t){var n=(0,e.default)(t,2);return[n[0],(0,e.default)(n[1],1)[0]]}))),f.flatMap((function(t){var n=(0,e.default)(t,2);return(0,e.default)(n[1],2)[1]}))]}function C(t,n,u,o){if((0,h.i)(t))return[(0,h.t)(t),[]];if((0,h.a)(t)){var f=(0,h.p)(t,n,u,o),c=(0,e.default)(f,2),l=c[0],y=c[1];return[l,y?[y]:[]]}if(Array.isArray(t)){if((0,v.isValidElement)(t[0])||(0===(E=t).length||E.every((function(t){return null===t||"object"!=typeof t}))))return[t,[]];var $=t.map((function(t,e){return C(t,n,u,`${o}/${e}`)}));return[$.some((function(t){var n=(0,e.default)(t,1)[0];return(0,s.m)(n)}))?(0,s.f)(`Prop ${o} of ${u}`,(function(){return $.map((function(t){var n=(0,e.default)(t,1)[0];return(0,s.m)(n)?n.dependOn():n}))})):$.map((function(t){return(0,e.default)(t,1)[0]})),$.flatMap((function(t){var n=(0,e.default)(t,2);n[0];return n[1]}))]}var E;return!(0,v.isValidElement)(t)&&(0,p.i)(t)?P(t,n,u,o):[t,[]]}}),431,[2,23,21,22,17,19,16,211,27,30,32,432,433,435]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.a=function(n){return"object"==typeof n&&null!=n&&null!=n[u]},e.b=function(n){return function(o){return(0,t.default)({},u,(function(t,u,l){var c=n(o,t,u,l);return Array.isArray(c)?c:[c,void 0]}))}},e.c=function(n){return(0,t.default)({},o,n)},e.i=function(n){return"object"==typeof n&&null!=n&&null!=n[o]},e.p=function(n,t,o,l){return n[u](t,o,l)},e.t=function(n){return n[o]};var t=n(r(d[1])),u=Symbol("compute");var o=Symbol("result")}),432,[2,3]); -__d((function(g,_r,_i,a,m,_e,_d){var e=_r(_d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.N=function(e){var t=(function(e,t){if(t.includes(d))throw new i.A(`Illegal character '${d}' in namespace: ${t}`);return`${e}${t}${d}`})((0,i.e)((0,o.useContext)(y)),e.namespace);return(0,u.jsxs)(y.Provider,{value:t,children:[e.setupStore?(0,u.jsx)(x,{callback:e.setupStore}):null,e.children]})},_e.R=function(e){return(0,u.jsx)($.Provider,{value:e.backend,children:(0,u.jsx)(y.Provider,{value:p,children:e.children})})},_e.S=void 0,_e.a=function(e,t){var r=(0,i.e)((0,o.useContext)($)),n=(0,i.e)((0,o.useContext)(y));(0,i.u)(r,n,e,t),(0,o.useLayoutEffect)((function(){return function(){return r.free(e,t,n)}}),[])},_e.b=C,_e.r=_e.c=void 0,_e.u=function(e,t){var r=(0,i.e)((0,o.useContext)($)),n=(0,i.e)((0,o.useContext)(y));return(0,i.u)(r,n,e,t),[(0,o.useMemo)((function(){return r.get$(e,t,n)}),[]),(0,o.useCallback)((function(u){return r.set(e,t,n,u)}),[])]};var t=e(_r(_d[1])),r=e(_r(_d[2])),n=e(_r(_d[3])),u=_r(_d[4]),o=_r(_d[5]),i=_r(_d[6]),s=_r(_d[7]),l=_r(_d[8]),c=_r(_d[9]);function f(e,t,r,n){var u,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(u=e[s])&&(i=(o<3?u(i):o>3?u(t,r,i):u(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}"function"==typeof SuppressedError&&SuppressedError;var d=";",p=_e.r=`*${d}`;function v(e,t){return t.startsWith(e)}var h=_e.S=(function(){function e(){(0,r.default)(this,e),this.recordGroups=new Map,this.slotObservers=new Map}return(0,n.default)(e,[{key:"get$",value:function(e,r,n){var u,o=this.getOrCreateGroup(e,r);return(0,l.f)(`backend.get$(${e}, ${r}, ${n})`,(function(){if(u)return u.get();var e=o.filter((function(e){return v((0,t.default)(e,1)[0],n)})).pop();return e?(e[0]===n&&(u=e[1]),e[1].get()):void 0}))}},{key:"set",value:function(e,r,n,u){var o=this.getOrCreateGroup(e,r),c=o.filter((function(e){return v((0,t.default)(e,1)[0],n)})).pop();if(c)c[1].set(u);else{var f=(0,i.k)(n,l.z.box(u,{deep:!1,name:`backend.box(${e}, ${r}, ${n})`,equals:s.d})),d=o.findIndex((function(e){return(0,t.default)(e,1)[0].length>f.length}));-1===d?o.push(f):o.splice(d,0,f)}}},{key:"getAllEntries$",value:function(e,r){var n,u=this,o=null!=(n=this.slotObservers.get(e))?n:(0,l.A)(`backend.slot(${e})`);return this.slotObservers.set(e,o),(0,l.f)(`backend.getAll$(${e}, ${r})`,(function(){o.reportObserved();var n=[];for(var i of u.recordGroups.entries()){var s=(0,t.default)(i,2),l=s[0],c=s[1],f=l.split("\xbb"),d=(0,t.default)(f,2),p=d[0],h=d[1];if(p===e)for(var k of c.toJS().reverse()){var $=(0,t.default)(k,2),y=$[0],b=$[1];r&&!v(r,y)||n.push({widgetId:h,path:y,value:b.get()})}}return n}))}},{key:"free",value:function(e,r,n){var u=`${r}\xbb${e}`,o=this.recordGroups.get(u);void 0!==o&&(o.filter((function(e){var r=(0,t.default)(e,1)[0];return v(n,r)})).forEach((function(e){return o.remove(e)})),0===o.length&&this.recordGroups.delete(u))}},{key:"getUsedSlots",value:function(){return(0,i.b)(Array.from(this.recordGroups.keys()).map((function(e){return(0,i.e)(e.split("\xbb")[0])})))}},{key:"getOrCreateGroup",value:function(e,t){var r=this,n=`${t}\xbb${e}`,u=this.recordGroups.get(n);if(u)return u;var o=l.z.array([],{deep:!1,name:`backend.group(${e}, ${t})`});return this.recordGroups.set(n,o),(0,c.r)((function(){var e;return null==(e=r.slotObservers.get(t))?void 0:e.reportChanged()})),o}}]),e})();f([l.e],h.prototype,"set",null),f([l.e],h.prototype,"free",null);var k=(function(){function e(t,n,u,o){(0,r.default)(this,e),this.backend=t,this.path=n,this.onBackendUpdateRequested=u,this.subscriptionPriority=o,this.localMirrors=new Map,this.updateCallbacks=[],this.destroyed=!1}return(0,n.default)(e,[{key:"useSlot",value:function(e,t){var r=this.getOrCreateLocalMirror(e,t);return(0,i.k)(r.value$,(0,l.e)(r.setValue))}},{key:"getAll$",value:function(e){var t=this.backend.getAllEntries$(e,this.path);return(0,l.f)("getAll$({slot})",(function(){return t.dependOn().map((function(e){return e.value}))}))}},{key:"getSubscriptionPriority",value:function(){return this.subscriptionPriority}},{key:"addUpdateCallback",value:function(e){this.destroyed?e():(this.updateCallbacks.push(e),this.onBackendUpdateRequested())}},{key:"updateFromBackend",value:function(){for(var e of this.localMirrors.values())e.updateFromBackend();this.flushUpdateCallbacks()}},{key:"destroy",value:function(){for(var e of this.localMirrors.values())e.free();this.localMirrors.clear(),this.flushUpdateCallbacks(),this.destroyed=!0}},{key:"flushUpdateCallbacks",value:function(){this.updateCallbacks.splice(0).forEach((function(e){return e()}))}},{key:"getOrCreateLocalMirror",value:function(e,r){var n,u=this,o=`${e}\u2192${r}`,c=this.localMirrors.get(o);if(c)return c;var f,d,p=this.backend.get$(e,r,this.path),v=(0,l.B)(`localValue(${e}, ${r})`,(function(){(0,i.e)(d)(),d=void 0}),(function(){f=n=(0,l.r)(p),d=(0,l.C)((function(){return p.dependOn()}),(function(e){e!==f&&(f=e,u.onBackendUpdateRequested())}),{name:`copy backendValue for (${e}, ${r})`})})),h=(0,t.default)(v,2),k=h[0],$=h[1],y=!1,b={value$:(0,l.f)(`get$(${e}, ${r})`,(function(){return k.dependOn(),n})),setValue:function(t){if(!u.localMirrors.has(o))throw new Error(`Error trying to set value to ${o}. The slot has already been freed.`);y=!0,(0,s.d)(t,n)||$(),u.backend.set(e,r,u.path,t),f=n=t},updateFromBackend:function(){void 0===d||(0,s.d)(f,n)||($(),n=f)},free:function(){y&&u.backend.free(e,r,u.path)}};return this.localMirrors.set(o,b),b}}]),e})();f([l.e],k.prototype,"updateFromBackend",null),f([l.e],k.prototype,"destroy",null);var $=(0,o.createContext)(void 0),y=(0,o.createContext)(void 0),b=_e.c=(0,o.createContext)(0);function C(){var e=(0,i.e)((0,o.useContext)($)),t=(0,i.e)((0,o.useContext)(y)),r=(0,o.useContext)(b),n=(0,i.z)(),u=(0,o.useMemo)((function(){return new k(e,t,n,r)}),[e,t,n,r]);return(0,o.useLayoutEffect)((function(){return function(){return u.destroy()}}),[e]),u.updateFromBackend(),u}function x(e){var t=C();return(0,o.useMemo)((function(){return e.callback(t)}),[e.callback,t]),null}}),433,[2,23,21,22,211,30,32,28,27,434]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.r=function(t){return(0,n.D)((function(){return(0,n.a)(t)}))},e.s=function(u){t.push(u),1===t.length&&setTimeout((function(){return(0,n.a)((function(){return t.splice(0).forEach((function(n){return n()}))}))}),0)};var n=r(d[0]);(0,n.l)({enforceActions:"always"});var t=[]}),434,[27]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.W=_e.E=void 0,_e.a=x,_e.b=function(e){var n={};return Object.entries(e).forEach((function(e){var u=(0,t.default)(e,2),o=u[0],f=u[1];n["$"+o]=x(f)})),n};var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),f=e(r(d[5])),c=e(r(d[6])),l=r(d[7]),s=r(d[8]),v=r(d[9]),p=r(d[10]),h=r(d[11]),y=r(d[12]),$=r(d[13]);function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}var j=_e.E=(0,v.createContext)((function(){return null})),w=(function(e){function t(){var e,u,c,l;return(0,n.default)(this,t),u=this,c=t,l=arguments,c=(0,f.default)(c),(e=(0,o.default)(u,E()?Reflect.construct(c,l||[],(0,f.default)(u).constructor):c.apply(u,l))).state={hasError:!1},e}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this;return this.state.hasError?(0,l.jsx)(j.Consumer,{children:function(t){return(0,v.createElement)(t,{errorMessage:`Could not render widget '${e.props.widgetId}'`})}}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}])})(v.Component),O=new Map;var b=_e.W=(0,v.createContext)("not a widget");function x(e){var n=O.get(e);if(void 0!==n)return n;var u=(0,p.l)(e),o=(function(e,n){var u=(0,v.memo)((function(e,t,n){if(null!=(n=e.prototype)&&n.isReactComponent){var u=function(t){return(0,v.createElement)(e,t)};return u.displayName=t,u}return e.displayName=t,e})(e,n));return function(e){var o=(0,v.useState)((function(){return e.$widgetId})),f=(0,t.default)(o,1)[0];if(e.$widgetId!==f||void 0===f)throw new p.A(`Parent of component ${n} did not correctly assign keys.`);var c,h=(0,y.b)(),E=h.useSlot($.p,"formSuspended"),j=(0,t.default)(E,1)[0],O=(0,v.useMemo)((function(){return C(e,h,e.$widgetId,"")}),[]),x=(0,t.default)(O,2),I=x[0],P=x[1],M=(0,v.useState)((function(){if(!(0,s.m)(I))return I;var t=!0,n={};return c=(0,s.n)((function(){var e=I.dependOn(),u=j.dependOn();t?n=e:u||k(e)}),{name:`Props of ${e.$widgetId}`}),t=!1,n})),S=(0,t.default)(M,2),_=S[0],k=S[1];return(0,v.useLayoutEffect)((function(){return c}),[]),P.length&&(0,v.useLayoutEffect)((function(){return P.forEach((function(e){return e()}))}),[_]),(0,l.jsx)(b.Provider,{value:f,children:(0,l.jsx)(w,{widgetId:(0,p.t)(f),children:(0,l.jsx)(y.c.Provider,{value:(0,v.useContext)(y.c)+1,children:(0,l.jsx)(u,Object.assign({},_))})})})}})(e,u);return o.displayName=`pluginWidget(${u})`,O.set(e,o),o}function C(e,n,u,o){var f=Object.entries(e).map((function(e){var f=(0,t.default)(e,2),c=f[0],l=f[1];return"$widgetId"===c?(0,p.n)("name",(0,p.n)((0,p.o)(u),[])):(0,p.n)(c,I(l,n,u,`${o}/${c}`))}));return[f.some((function(e){var n=(0,t.default)(e,2),u=(n[0],(0,t.default)(n[1],1)[0]);return(0,s.m)(u)}))?(0,s.f)(`Prop ${o||"root"} of ${u}`,(function(){return Object.fromEntries(f.map((function(e){var n=(0,t.default)(e,2),u=n[0],o=(0,t.default)(n[1],1)[0];return[u,(0,s.m)(o)?o.dependOn():o]})))})):Object.fromEntries(f.map((function(e){var n=(0,t.default)(e,2);return[n[0],(0,t.default)(n[1],1)[0]]}))),f.flatMap((function(e){var n=(0,t.default)(e,2);return(0,t.default)(n[1],2)[1]}))]}function I(e,n,u,o){if((0,h.i)(e))return[(0,h.t)(e),[]];if((0,h.a)(e)){var f=(0,h.p)(e,n,u,o),c=(0,t.default)(f,2),l=c[0],y=c[1];return[l,y?[y]:[]]}if(Array.isArray(e)){if((0,v.isValidElement)(e[0])||(0===(E=e).length||E.every((function(e){return null===e||"object"!=typeof e}))))return[e,[]];var $=e.map((function(e,t){return I(e,n,u,`${o}/${t}`)}));return[$.some((function(e){var n=(0,t.default)(e,1)[0];return(0,s.m)(n)}))?(0,s.f)(`Prop ${o} of ${u}`,(function(){return $.map((function(e){var n=(0,t.default)(e,1)[0];return(0,s.m)(n)?n.dependOn():n}))})):$.map((function(e){return(0,t.default)(e,1)[0]})),$.flatMap((function(e){var n=(0,t.default)(e,2);n[0];return n[1]}))]}var E;return!(0,v.isValidElement)(e)&&(0,p.i)(e)?C(e,n,u,o):[e,[]]}}),431,[2,27,25,26,20,13,24,211,31,34,36,432,433,435]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.a=function(n){return"object"==typeof n&&null!=(null==n?void 0:n[u])},e.b=function(n){return function(o){return(0,t.default)({},u,(function(t,u,l){var c=n(o,t,u,l);return Array.isArray(c)?c:[c,void 0]}))}},e.c=function(n){return(0,t.default)({},o,n)},e.i=function(n){return"object"==typeof n&&null!=(null==n?void 0:n[o])},e.p=function(n,t,o,l){return n[u](t,o,l)},e.t=function(n){return n[o]};var t=n(r(d[1])),u=Symbol("compute");var o=Symbol("result")}),432,[2,5]); +__d((function(g,_r,_i,a,m,_e,_d){var e=_r(_d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.N=function(e){var t=(function(e,t){if(t.includes(d))throw new i.A(`Illegal character '${d}' in namespace: ${t}`);return`${e}${t}${d}`})((0,i.e)((0,o.useContext)(y)),e.namespace);return(0,u.jsxs)(y.Provider,{value:t,children:[e.setupStore?(0,u.jsx)(x,{callback:e.setupStore}):null,e.children]})},_e.R=function(e){return(0,u.jsx)($.Provider,{value:e.backend,children:(0,u.jsx)(y.Provider,{value:p,children:e.children})})},_e.S=void 0,_e.a=function(e,t){var r=(0,i.e)((0,o.useContext)($)),n=(0,i.e)((0,o.useContext)(y));(0,i.u)(r,n,e,t),(0,o.useLayoutEffect)((function(){return function(){return r.free(e,t,n)}}),[])},_e.b=C,_e.r=_e.c=void 0,_e.u=function(e,t){var r=(0,i.e)((0,o.useContext)($)),n=(0,i.e)((0,o.useContext)(y));return(0,i.u)(r,n,e,t),[(0,o.useMemo)((function(){return r.get$(e,t,n)}),[]),(0,o.useCallback)((function(u){return r.set(e,t,n,u)}),[])]};var t=e(_r(_d[1])),r=e(_r(_d[2])),n=e(_r(_d[3])),u=_r(_d[4]),o=_r(_d[5]),i=_r(_d[6]),s=_r(_d[7]),l=_r(_d[8]),c=_r(_d[9]);function f(e,t,r,n){var u,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(u=e[s])&&(i=(o<3?u(i):o>3?u(t,r,i):u(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}"function"==typeof SuppressedError&&SuppressedError;var d=";",p=_e.r=`*${d}`;function v(e,t){return t.startsWith(e)}var h=_e.S=(function(){return(0,n.default)((function e(){(0,r.default)(this,e),this.recordGroups=new Map,this.slotObservers=new Map}),[{key:"get$",value:function(e,r,n){var u,o=this.getOrCreateGroup(e,r);return(0,l.f)(`backend.get$(${e}, ${r}, ${n})`,(function(){if(u)return u.get();var e=o.filter((function(e){return v((0,t.default)(e,1)[0],n)})).pop();return e?(e[0]===n&&(u=e[1]),e[1].get()):void 0}))}},{key:"set",value:function(e,r,n,u){var o=this.getOrCreateGroup(e,r),c=o.filter((function(e){return v((0,t.default)(e,1)[0],n)})).pop();if(c)c[1].set(u);else{var f=(0,i.n)(n,l.D.box(u,{deep:!1,name:`backend.box(${e}, ${r}, ${n})`,equals:s.d})),d=o.findIndex((function(e){return(0,t.default)(e,1)[0].length>f.length}));-1===d?o.push(f):o.splice(d,0,f)}}},{key:"getAllEntries$",value:function(e,r){var n,u=this,o=null!=(n=this.slotObservers.get(e))?n:(0,l.E)(`backend.slot(${e})`);return this.slotObservers.set(e,o),(0,l.f)(`backend.getAll$(${e}, ${r})`,(function(){o.reportObserved();var n=[];for(var i of u.recordGroups.entries()){var s=(0,t.default)(i,2),l=s[0],c=s[1],f=l.split("\xbb"),d=(0,t.default)(f,2),p=d[0],h=d[1];if(p===e)for(var k of c.toJS().reverse()){var $=(0,t.default)(k,2),y=$[0],b=$[1];r&&!v(r,y)||n.push({widgetId:h,path:y,value:b.get()})}}return n}))}},{key:"free",value:function(e,r,n){var u=`${r}\xbb${e}`,o=this.recordGroups.get(u);void 0!==o&&(o.filter((function(e){var r=(0,t.default)(e,1)[0];return v(n,r)})).forEach((function(e){return o.remove(e)})),0===o.length&&this.recordGroups.delete(u))}},{key:"getUsedSlots",value:function(){return(0,i.b)(Array.from(this.recordGroups.keys()).map((function(e){return(0,i.e)(e.split("\xbb")[0])})))}},{key:"getOrCreateGroup",value:function(e,t){var r=this,n=`${t}\xbb${e}`,u=this.recordGroups.get(n);if(u)return u;var o=l.D.array([],{deep:!1,name:`backend.group(${e}, ${t})`});return this.recordGroups.set(n,o),(0,c.r)((function(){var e;return null==(e=r.slotObservers.get(t))?void 0:e.reportChanged()})),o}}])})();f([l.e],h.prototype,"set",null),f([l.e],h.prototype,"free",null);var k=(function(){return(0,n.default)((function e(t,n,u,o){(0,r.default)(this,e),this.backend=t,this.path=n,this.onBackendUpdateRequested=u,this.subscriptionPriority=o,this.localMirrors=new Map,this.updateCallbacks=[],this.destroyed=!1}),[{key:"useSlot",value:function(e,t){var r=this.getOrCreateLocalMirror(e,t);return(0,i.n)(r.value$,(0,l.e)(r.setValue))}},{key:"getAll$",value:function(e){var t=this.backend.getAllEntries$(e,this.path);return(0,l.f)("getAll$({slot})",(function(){return t.dependOn().map((function(e){return e.value}))}))}},{key:"getSubscriptionPriority",value:function(){return this.subscriptionPriority}},{key:"addUpdateCallback",value:function(e){this.destroyed?e():(this.updateCallbacks.push(e),this.onBackendUpdateRequested())}},{key:"updateFromBackend",value:function(){for(var e of this.localMirrors.values())e.updateFromBackend();this.flushUpdateCallbacks()}},{key:"destroy",value:function(){for(var e of this.localMirrors.values())e.free();this.localMirrors.clear(),this.flushUpdateCallbacks(),this.destroyed=!0}},{key:"flushUpdateCallbacks",value:function(){this.updateCallbacks.splice(0).forEach((function(e){return e()}))}},{key:"getOrCreateLocalMirror",value:function(e,r){var n,u=this,o=`${e}\u2192${r}`,c=this.localMirrors.get(o);if(c)return c;var f,d,p=this.backend.get$(e,r,this.path),v=(0,l.C)(`localValue(${e}, ${r})`,(function(){(0,i.e)(d)(),d=void 0}),(function(){f=n=(0,l.r)(p),d=(0,l.F)((function(){return p.dependOn()}),(function(e){e!==f&&(f=e,u.onBackendUpdateRequested())}),{name:`copy backendValue for (${e}, ${r})`})})),h=(0,t.default)(v,2),k=h[0],$=h[1],y=!1,b={value$:(0,l.f)(`get$(${e}, ${r})`,(function(){return k.dependOn(),n})),setValue:function(t){if(!u.localMirrors.has(o))throw new Error(`Error trying to set value to ${o}. The slot has already been freed.`);y=!0,(0,s.d)(t,n)||$(),u.backend.set(e,r,u.path,t),f=n=t},updateFromBackend:function(){void 0===d||(0,s.d)(f,n)||($(),n=f)},free:function(){y&&u.backend.free(e,r,u.path)}};return this.localMirrors.set(o,b),b}}])})();f([l.e],k.prototype,"updateFromBackend",null),f([l.e],k.prototype,"destroy",null);var $=(0,o.createContext)(void 0),y=(0,o.createContext)(void 0),b=_e.c=(0,o.createContext)(0);function C(){var e=(0,i.e)((0,o.useContext)($)),t=(0,i.e)((0,o.useContext)(y)),r=(0,o.useContext)(b),n=(0,i.C)(),u=(0,o.useMemo)((function(){return new k(e,t,n,r)}),[e,t,n,r]);return(0,o.useLayoutEffect)((function(){return function(){return u.destroy()}}),[e]),u.updateFromBackend(),u}function x(e){var t=C();return(0,o.useMemo)((function(){return e.callback(t)}),[e.callback,t]),null}}),433,[2,27,25,26,211,34,36,32,31,434]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.r=function(t){return(0,n.G)((function(){return(0,n.a)(t)}))},e.s=function(u){t.push(u),1===t.length&&setTimeout((function(){return(0,n.a)((function(){return t.splice(0).forEach((function(n){return n()}))}))}),0)};var n=r(d[0]);(0,n.l)({enforceActions:"always"});var t=[]}),434,[31]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.p=void 0;e.p="$$globalScope"}),435,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.a=o,e.s=function(n){u=n},e.t=function(t,f){for(var c=arguments.length,l=new Array(c>2?c-2:0),v=2;v-1?o:0};var n=r(d[0]),t=0,u={};function o(n){return n[t]}}),436,[32]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.a=e.L=void 0,e.r=function(){f.get().addHandler((n={},["debug","info","log","warn","error"].forEach((function(t){n[t]=console[t];var o=(function(n){switch(n){case"warn":return"warning";case"log":return"debug";default:return n}})(t);console[t]=function(){for(var n,t=arguments.length,l=new Array(t),c=0;c2?u-2:0),h=2;h2?l-2:0),s=2;s2?c-2:0),u=2;u0&&void 0!==arguments[0]?arguments[0]:u.Client;if(!this.loggers.has(n)){if(!Object.prototype.hasOwnProperty.call(u,n)){var l=this.getLogger();return l.warn(`Invalid log node requested: "${n}". Returning a logger with default node instead.`),l}var c=function(l){return Object.assign.apply(Object,[{}].concat((0,o.default)(s.map((function(o){return(0,t.default)({},o,(function(){for(var t=arguments.length,c=new Array(t),s=0;s1?o-1:0),s=1;s2?o-2:0),c=2;c":case">=":case"<":case"<=":var u=r.some((function(e){return"int"===e.type}))?r.map(Ne):r,o=(0,p.default)(u,2),c=o[0],l=o[1],f="="===e.name?"is":"!="===e.name?"is not":e.name;return c=(0,h.e)(c),l=(0,h.e)(l),{type:"int",expr:`(${c.expr} ${f} ${l.expr})`,params:Te(c,l)};case"contains":case"starts-with":case"ends-with":var v=(0,h.e)(r[0]),m=(0,h.e)(r[1]);if("null"===m.type)return ke;if("null"===v.type)return Ae;var y=`replace(replace(replace(${m.expr}, "${E="~"}", "${E+E}"), "${ee}", "${E+ee}"), "_", "~_")`,b="starts-with"===e.name?`${y} || '${ee}'`:"ends-with"===e.name?`'${ee}' || ${y}`:`'${ee}' || ${y} || '${ee}'`;return{type:"int",expr:`(${v.expr} like ${b} escape '~')`,params:v.params.concat(m.params)};case"length":case"string-length":var j=(0,h.e)(r[0]);return"null"===j.type?Ae:{type:"int",expr:`length(${j.expr})`,params:j.params};case"in":var O=(0,h.e)(r[0]),w=(0,h.e)(r[1]);if(!Array.isArray(w.params[0]))throw new h.A("'in' function expect array of values");return{type:"string",expr:`${O.expr} in (${new Array(w.params[0].length).fill("?").join(",")})`,params:w.params[0]};default:throw new h.A(`Operator ${e.name} is not yet supported`)}case"association":var $=e.associationPath.split("/")[0];return{type:"string",expr:`${t}.[${pe($)}]`,params:[]}}var E}var ke={type:"int",expr:"1",params:[]},Ae={type:"int",expr:"0",params:[]};function Ce(e){return"null"===e.type?{type:"int",expr:"0",params:[]}:e}function Ne(e){return"string"===e.type?{type:"int",expr:`cast(${e.expr} as integer)`,params:e.params}:e}function Te(){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2])||arguments[2],a=new Set([e].concat((0,s.default)(null!=(n=null==(r=(0,y.g)(e))?void 0:r.generalizations)?n:[])));return Object.assign.apply(Object,[{}].concat((0,s.default)(t.map((function(e){var t,n=(0,y.g)(e),r=Object.values(null!=(t=null==n?void 0:n.attributes)?t:{}).filter((function(e){return e.referenceEntity&&a.has(e.referenceEntity)&&(i||"ObjectReferenceSet"!==e.type)})).map((function(e){return e.name}));return r.length>0?(0,o.default)({},e,r):{}})))))}function Ue(e,t){var n=void 0!==t?t.name:e[`${F}.${z}`],r={guid:e[`${F}.${W}`],attributes:{},objectType:n},i=JSON.parse(e[`${F}.${H}`])||[];return Object.keys(e).filter((function(e){return!e.startsWith(F)&&e!==W})).forEach((function(n){var a,u,o=n.replace("$","."),c=null!=(a=null==t||null==(u=t.attributes[o])?void 0:u.type)?a:"String";r.attributes[o]=Object.assign({value:ve(e[n],c)},i.includes(o)?{readonly:!0}:{})})),r}function Ie(e,t,n,r){return Be.apply(this,arguments)}function Be(){return(Be=(0,c.default)((function*(e,t,n,r){var i=(0,h.e)((0,y.g)(e));if(!i.isPersistable)throw Error("Entity must be persistable");var a=yield L((function(e){var t=pe(e),n=(0,b.toUserScopedName)(t),r=(0,b.toUserScopedName)(F);return[[`SELECT ${t}.*,`,V.map((function(e){return`${F}.[${e}] AS "${F}.${e}"`})).join(", "),`FROM "${n}" AS ${t}`,`JOIN ${r} AS ${F} USING (${W})`].join(" "),[]]})(e)).read(r),u=a.map((function(e){return Ue(e,i)})),o=Oe.reverse(),c=function(e,t){return(0,C.b)(e,o,n.toAbsolutePath((t?C.T:C.a)+"/"))},l=u.reduce((function(t,n){var r=n.guid;return t.dbGuidsToClear.push(r),(0,y.b)(n)&&(t.deleteFilesInstructions.push(c(n,!1)),(0,y.c)(e)&&t.deleteFilesInstructions.push(c(n,!0))),t}),{deleteFilesInstructions:[],dbGuidsToClear:[]}),f=l.deleteFilesInstructions,p=l.dbGuidsToClear;(0,C.e)({deletes:f},n).catch(O.h);var v=[xe(pe(e))].concat((0,s.default)(Ge([e])));yield U(v).write(r);var m=t.getAllObjects().filter((function(t){return t.getEntity()===e})).map((function(e){return e.getGuid()})),j=Array.from(new Set([].concat((0,s.default)(p),(0,s.default)(m))));t.onDelete(j),(0,A.u)(j);var w=j.map((function(e){return{guid:e}}));yield O.p.apply(void 0,[{entity:e}].concat((0,s.default)(w)))}))).apply(this,arguments)}function Fe(e,t){var n={};t.filter((function(t){return e.hasChanges(t)})).forEach((function(t){n[t]=e.getChanges(t)}));var r=t.filter((function(t){return e.has(t)})).map((function(t){return e.getObject(t)})).filter((function(t){return!t.isPersistable()||e.isNew(t.getGuid())})).map((function(e){return e.jsonData}));return[n,r]}var Je=(function(){function e(){(0,l.default)(this,e),this.labels=[],this.labelMap={},this.graph=[]}return(0,f.default)(e,[{key:"addEdge",value:function(e,t){var n=this.getOrCreateLabelIndex(e),r=this.getOrCreateLabelIndex(t),i=this.graph[n];i.includes(r)||i.push(r)}},{key:"neighborsOf",value:function(e){var t=this,n=this.getOrCreateLabelIndex(e);return this.graph[n].map((function(e){return t.indexToLabel(e)}))}},{key:"reachableLabels",value:function(e){var t=this,n=e.map((function(e){return t.getOrCreateLabelIndex(e)}));return(function(e,t){var n=new Array(e.length);!(function t(r){for(var i of r){if(i<0||i>=n.length)throw new Error(`graph: index ${i} out of bounds in graph of size ${e.length}`);n[i]||(n[i]=!0,t(e[i]))}})(t);for(var r=[],i=0;i0){var E=["An attempt to delete object(s) configured with 'online' synchronization mode in an offline context.","Objects list:"];for(var S of $){var k=(0,p.default)(S,2),T=k[0],M=k[1];E.push(`'${T}': ${M.join(", ")}`)}throw new j.D(E.join("\n"))}var x=w.reduce((function(e,t){var n=t.getEntity();return e.has(n)||e.set(n,[]),e.get(n).push(t.getGuid()),e}),new Map),R=o.map(f.flatMap((function(e){return e.isPersistable()&&!i.has(e.getEntity())?e.getGuid():[]}))),_=(0,v.g)();yield U(Array.from(x).flatMap((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return Me(n,o.map(r))}))).chain((function(e){return ce(_.getSessionObjectId(),R.length)})).chain((function(e){return U(R.map((function(t,n){return(function(e,t){return[`INSERT OR REPLACE INTO "${(0,b.toUserScopedName)(J)}" ("${W}", "${q}") VALUES (?, ?)`,[e,null!=t?t:null]]})(t,e[n])})))})).chain((function(e){var t=(0,C.c)((function(e){return Le(e,r,!1)}));return U(m.flatMap((function(e){var n;return _e(null!=(n=t(e.getEntity()))?n:{},o.map(e.getGuid()),null)})))})).write(a);var D=function(e,t){return(0,C.b)(e,o,n.toAbsolutePath((t?C.T:C.a)+"/"))},P=w.filter((function(e){var t=e.jsonData;return(0,y.b)(t)})).flatMap((function(e){var t=e.jsonData;return(0,y.c)(t.objectType)?[D(t,!1),D(t,!0)]:D(t,!1)}));(0,C.e)({deletes:P},n).catch(O.h);var G=u.map((function(e){return e.getGuid()})),L=t.getAllObjects().filter((function(e){return!o.has(e.getGuid())&&!G.includes(e.getGuid())})),I=(0,h.b)(L.flatMap((function(e){return e.isPersistable()?[]:e.getEntity()}))),B=(0,C.c)((function(e){return Le(e,[].concat((0,s.default)(r),(0,s.default)(I)),!0)})),F=(0,h.b)(u.map((function(e){return e.getEntity()}))),z=F.flatMap((function(e){var t;return Object.values(null!=(t=B(e))?t:{})})).flat(),H=L.flatMap((function(e){var t=z.flatMap((function(t){if(e.has(t)){var n=e.getReferences(t).filter((function(e){return G.includes(e)}));return!e.isReadonlyAttr(t)&&n.length>0?[[t,n]]:[]}return[]}));return t.length>0?[[e,new Map(t)]]:[]})),V=H.map((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1],i=Ke(n.jsonData);return r.forEach((function(e,t){var r=i.attributes[t].value;n.isObjectReferenceSet(t)&&Array.isArray(r)?i.attributes[t].value=r.filter((function(t){return!e.includes(t)})):i.attributes[t].value=null})),i})),X=L.reduce((function(e,n){var r=(0,p.default)(e,2),i=r[0],a=r[1],u=n.getGuid();return Object.entries(t.getChanges(u)).filter((function(e){var t=(0,p.default)(e,2),n=t[0];t[1];return z.includes(n)})).forEach((function(e){var t,r,o,c,s=(0,p.default)(e,2),l=s[0],f=s[1],v=f.value;n.isObjectReferenceSet(l)||!G.includes(v)?Array.isArray(v)&&v.some((function(e){return G.includes(e)}))&&(1===v.length||v.every((function(e){return G.includes(e)}))?ee(i,u,l):f.hash||(t=a,r=u,o=l,c=v.filter((function(e){return!G.includes(e)})),t.has(r)||t.set(r,{}),(0,h.e)(t.get(r))[o]={value:c})):ee(i,u,l)})),[i,a]}),[new Map,new Map]),K=(0,p.default)(X,2),Y=K[0],Q=K[1];t.onDelete(G),t.setMxObjects(V),t.removeChanges(Object.fromEntries(Y)),t.addChanges(Object.fromEntries(Q)),(0,A.u)(G.filter(A.i)),f.forEach((function(e){var t=e.getGuid();o.has(t)&&Oe.remove(o.map(t))}));var Z=H.flatMap((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return Array.from(r.keys()).map((function(e){return{guid:n.getGuid(),attr:e}}))}));yield O.p.apply(void 0,(0,s.default)(F.map((function(e){return{entity:e}}))).concat((0,s.default)(Z),(0,s.default)(G.map((function(e){return{guid:e}})))))}function ee(e,t,n){e.has(t)||e.set(t,[]),(0,h.e)(e.get(t)).push(n)}}))).apply(this,arguments)}function Ze(e){return et.apply(this,arguments)}function et(){return(et=(0,c.default)((function*(e){var t=(0,R.g)();for(var n of null!=e?e:[])switch(n.type){case"logout":mx.logout();break;case"show_login":t.showLogin();break;case"download_file":var r=yield(0,w.b)(n.args.FileDocumentGuid);t.downloadFile({mxobject:(0,h.e)(r),target:n.args.Target});break;case"text_message":t.showMessage(n.args.MessageType,n.args.MessageContent,n.args.MessageBlock)}}))).apply(this,arguments)}function tt(e,t){var n,r,i,a,u,o,c=Object.entries(null!=(n=t.changes)?n:{}).map((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return Object.keys(r).map((function(e){return{guid:n,attr:e}}))})),s=Object.entries(null!=(r=t.resets)?r:{}).map((function(e){var t=(0,p.default)(e,2),n=t[0];return t[1].map((function(e){return{guid:n,attr:e}}))})),l=(null!=(i=t.objects)?i:[]).map((function(t){var n,r,i,a=e.getObject(t.guid);return null!==a?(n=a,r=t,i=S.M.fromJson(r),(0,y.d)(r.objectType).map((function(e){return e.name})).filter((function(e){return!(function(e,t,n){if(e.isReadonlyAttr(n)!==t.isReadonlyAttr(n))return!1;if(e.isReference(n))return n===y.S.ChangedBy||n===y.S.Owner||e.getOriginalReferences(n).sort((function(e,t){return e.localeCompare(t)})).join(",")===t.getOriginalReferences(n).sort((function(e,t){return e.localeCompare(t)})).join(",");var r=e.getOriginalValue(n),i=t.getOriginalValue(n);return r===i||null!=r&&null!=i&&r.valueOf()===i.valueOf()})(n,i,e)}))).map((function(e){return{guid:t.guid,attr:e}})):[]})),f=(0,h.b)((0,h.h)((null!=(a=t.instructions)?a:[]).map(nt)).concat(null!=(u=t.deletes)?u:[])),v=(0,h.g)([c,s,l].flat(2),(function(e){return`${e.guid}:${e.attr}`})).map((function(e){return{guid:e.guid,attr:e.attr}})).filter((function(t){var n=t.guid;return!f.includes(n)&&e.has(n)})),m=f.filter((function(t){return e.has(t)})).map((function(e){return{guid:e}})),b=(0,h.b)((0,h.h)((null!=(o=t.instructions)?o:[]).map((function(e){return"refresh_class"===e.type?e.args.classnames:[]})))).map((function(e){return{entity:e}}));return(0,h.h)([v,m,b])}function nt(e){return"refresh_object_list"===e.type?e.args.ObjectIds:[]}function rt(e,t,n){return it.apply(this,arguments)}function it(){return it=(0,c.default)((function*(e,t,n){var r,i,a=tt(e,t);yield ut(e,t);var u,o=(null!=(r=t.instructions)?r:[]).filter((function(e){return"close"===e.type})),l=(null!=(i=t.instructions)?i:[]).filter((function(e){return"open_form"===e.type}));!(function(e,t,n){if(0!==e.length){var r=e.reduce((function(e,t){return e+t.args.NumberOfPagesToClose}),0);if(r<1)throw new h.A(`The number of pages to close evaluated to ${r}. It must be at least 1.`);var i=(0,h.e)(t);i.setSuspend(!0),i.closePage(r,!0,n).finally((function(){i.setSuspend(!1)})).catch((function(e){(0,O.h)(e)}))}})(o,n,l.some((function(e){return"content"===e.args.FormTarget}))),yield O.p.apply(void 0,(0,s.default)(a)),yield(u=(0,c.default)((function*(e,t){var n=[],r=(0,s.default)(e).reverse().find((function(e){return"content"===e.args.FormTarget}));for(var i of e){var a=i.args.FormTarget,u="content"===a&&i!==r,o=(0,R.g)();n.push(o.openForm2(i.args.FormPath,(0,h.m)(i.args.FormParameters,(function(e){return null===e?void 0:e})),i.args.FormTitle,t,{location:a,url:i.args.FormUrl,width:i.args.FormWidth,height:i.args.FormHeight,resizable:i.args.FormResizable,pageUpdateSuspended:u,preferUnderlyingModalOverLastFocusedElement:!0}))}yield Promise.all(n)})),function(e,t){return u.apply(this,arguments)})(l),yield Ze(t.instructions),yield ct(t.datavalidation)})),it.apply(this,arguments)}function at(){return(at=(0,c.default)((function*(e,t,n){if(t instanceof k.V){var r=t.original,i=tt(e,r).filter((function(e){return!("attr"in e)}));yield O.p.apply(void 0,(0,s.default)(i)),yield Ze(r.instructions),yield ct(r.datavalidation,n)}}))).apply(this,arguments)}function ut(e,t){return ot.apply(this,arguments)}function ot(){return(ot=(0,c.default)((function*(e,t){var n=t.objects,r=void 0===n?[]:n,i=t.changes,a=void 0===i?{}:i,u=t.newpersistable,o=void 0===u?[]:u,c=t.commits,s=void 0===c?[]:c,l=t.deletes,f=void 0===l?[]:l,p=t.resets,h=void 0===p?{}:p,v=t.committedObjectsOmitted,m=void 0!==v&&v;e.removeChanges(h),e.addChanges(a);var b=r.filter((function(t){return n=t,!e.has(n.guid);var n})).filter((function(e){var t,n;return n=e,Boolean(null==(t=(0,y.g)(n.objectType))?void 0:t.isPersistable)?o.includes(e.guid):!s.includes(e.guid)})).map((function(e){return e.guid}));if(e.onCreate(b),e.onDelete(f),e.onCommit(s),e.setMxObjects(r),m){var j=s.filter((function(t){return e.has(t)&&!r.some((function(e){return e.guid===t}))}));if(j.length>0){var O=yield(0,k.e)(j,{});yield rt(e,O)}}}))).apply(this,arguments)}function ct(e,t){return st.apply(this,arguments)}function st(){return(st=(0,c.default)((function*(e,t){var n=x.O.fromResponse(null!=e?e:[]);yield mx.data.sendValidationUpdates(n),n.length>0&&t&&t(n)}))).apply(this,arguments)}function lt(e,t){return[ft(e),dt(e,t)]}function ft(e){var t=[`"${W}"`],n=[e.guid],r=(0,y.g)(e.objectType);return Object.entries(e.attributes).forEach((function(e){var i,a=(0,p.default)(e,2),u=a[0],o=a[1],c=null==r||null==(i=r.attributes[u])?void 0:i.type;void 0!==c&&(t.push(`"${pe(u)}"`),n.push(ge(o.value,c)))})),[`INSERT OR REPLACE INTO "${(0,b.toUserScopedName)(pe(e.objectType))}" (${t.join(", ")}) VALUES (${(0,h.r)(n.length,(function(){return"?"})).join(", ")})`,n]}function dt(e,t){var n=`INSERT OR REPLACE INTO "${(0,b.toUserScopedName)(F)}" ("${W}", "${z}", "${q}", "${H}") VALUES (?, ?, ?, ?)`,r=Object.entries(e.attributes).filter((function(e){return(0,p.default)(e,2)[1].readonly})).map((function(e){return(0,p.default)(e,1)[0]}));return[n,[e.guid,e.objectType,null!=t?t:null,JSON.stringify(r)]]}function pt(e){return"push_to_client"===e.type}function ht(e){return e.filter(pt).flatMap((function(e){return e.args.guids}))}function vt(e,t,n,r,i,a){return gt.apply(this,arguments)}function gt(){return gt=(0,c.default)((function*(e,t,n,r,i,a){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new je,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"nothing",l=(function(e){var t=new Set(e),n=[];return function(e){return!(void 0===e||!t.has(e)&&(n.includes(e)||(n.push(e),E.L.get().getLogger(E.a.Synchronization).warn(`Object of type ${e} cannot be pushed to client, skipping it.`)),1))}})(i),f=ue(n),p=new I;e.length>0&&(p=p.chain((function(){return U(De(e))})).chain((function(e){return e.flat()})).chain((function(e){return Object.assign.apply(Object,[{}].concat((0,s.default)(e.map((function(e){return(0,o.default)({},e[W],e[z])})))))})).chain((function(t){var n={},r={};e.forEach((function(e){var i,a,u,o=f[e],c=null!=(i=null==o?void 0:o.objectType)?i:t[e];c&&l(c)&&(r[c]=null!=(a=r[c])?a:[]).push(e);c&&l(null==o?void 0:o.objectType)&&(n[c]=null!=(u=n[c])?u:[]).push(o)}));var i=Object.keys(r).flatMap((function(e){return Me(e,r[e])})),a=Object.keys(n).flatMap((function(e){return n[e].flatMap((function(e){return lt(e)}))})),u=i.concat(a),o=Object.values(n).flatMap((function(e){return e.map((function(e){return e.guid}))}));return"clean"===c&&o.length>0&&u.push.apply(u,(0,s.default)((function(e){if(0===e.length)throw new h.A("No guids specified");return Ee(e).flatMap((function(e){var t=new Array(e.length).fill("?").join(", ");return[[`DELETE FROM "${(0,b.toUserScopedName)(J)}" WHERE "${W}" IN (${t})`,e]]}))})(o))),U(u)}))),"reset"===c&&(p=p.chain((function(){return U([xe(J)])}))),yield p.write(t),e.filter((function(e){return!Object.prototype.hasOwnProperty.call(f,e)})).forEach((function(e){var t=e;u.has(e)?t=u.map(e):a.has(e)&&(t=a.map(e));var n=r.getObject(t);null!==n&&n.markAsUnavailable()})),e.filter((function(e){return u.has(e)})).forEach((function(e){return a.add(e,u.map(e))})),(0,A.u)(e.map((function(e){return a.map(e)})))})),gt.apply(this,arguments)}function mt(e){return"entity"in e}function yt(e){return"guid"in e&&!("attr"in e)}function bt(e,t){var n;return!(null!=(n=(0,y.g)(e))&&n.isPersistable)||t.includes(e)}function jt(e,t,n,r,i,a){return Ot.apply(this,arguments)}function Ot(){return Ot=(0,c.default)((function*(e,t,n,r,i,a){var u,l,f,v,m=(0,T.g)(t);if(m.some((function(e){return!r.has(e)})))throw new h.A("Microflow parameter is not available in the client state");var b,j=Xe(r,e,m),w=(0,p.default)(j,2),$=w[0],E=w[1].map((function(e){return e.hash?e:Object.assign({},e,{attributes:Object.fromEntries(Object.entries(e.attributes).filter((function(e){var t=(0,p.default)(e,2);t[0];return!t[1].readonly})))})})),S=yield(0,k.q)(e,t,$,E),A=(function(e,t){var n,r,i=e.actionResult,a=e.objects,u=void 0===a?[]:a,o=e.changes,c=void 0===o?{}:o,l=e.resets,f=void 0===l?{}:l,p=e.deletes,v=void 0===p?[]:p,m=e.instructions,y=void 0===m?[]:m,b=ht(y),j=wt((0,h.b)([].concat((0,s.default)(u.map((function(e){return e.guid}))),(0,s.default)(Object.keys(c)),(0,s.default)(Object.keys(f)),(0,s.default)(v))),u,t),O=new Set(b.concat(j));return{actionResult:i,newpersistable:[],commits:[],committedObjectsOmitted:!1,deletes:(n=v,r=O,n.filter((function(e){return r.has(e)}))),changes:$t(c,O),resets:$t(f,O),instructions:Et(y,u,t),objects:u.filter((function(e){return O.has(e.guid)}))}})((function(e,t,n){var r=e.actionResult,i=e.newpersistable,a=void 0===i?[]:i,u=e.objects,o=void 0===u?[]:u,c=e.changes,s=void 0===c?{}:c,l=e.commits,f=void 0===l?[]:l,p=e.committedObjectsOmitted,h=void 0!==p&&p,v=e.resets,m=void 0===v?{}:v,y=e.deletes,b=void 0===y?[]:y,j=e.instructions,O=void 0===j?[]:j;return{actionResult:r,committedObjectsOmitted:h,newpersistable:a,commits:f,deletes:t.map(b),instructions:At(O,t),objects:o.map((function(e){return t.mapMxObjectJSON(e)})),changes:St(s,o,n,t),resets:kt(m,t)}})(S,Oe,r),r),x=new Set(ht(null!=(u=S.instructions)?u:[])),R=Array.from(x),_=null!=(l=null==(f=S.objects)?void 0:f.filter((function(e){return x.has(e.guid)})))?l:[],D=n.filter((function(e){return(0,y.f)(e)})),P=(yield Promise.all(D.map((function(e){return(0,N.o)().retrieveByGuids(e,R)})))).flat(),G=yield(b=(0,c.default)((function*(e,t,n,r){var i,a,u,c=tt(n,e),l=(0,h.b)(null!=(i=null==(a=e.instructions)?void 0:a.filter(pt).flatMap((function(e){return e.args.guids})))?i:[]),f=ue(null!=(u=e.objects)?u:[]),v=(0,h.p)((function(e){return void 0!==f[e]}),l),m=(0,p.default)(v,2),y=m[0],b=m[1],j=Object.assign.apply(Object,[{}].concat((0,s.default)(y.map((function(e){return(0,o.default)({},e,f[e].objectType)})))));if(b.length>0){var O=Oe.reverse().map(b);(yield U(De(O)).chain((function(e){return e.flat()})).read(r)).forEach((function(e){var t=e[W],n=Oe.map(t);j[n]=e[z]}))}var w=(0,h.b)(c.filter(mt).map((function(e){return e.entity})).concat(Object.values(j))).filter((function(e){return bt(e,t)})).map((function(e){return{entity:e}})),$=Object.entries(j).filter((function(e){var n=(0,p.default)(e,2);return n[0],bt(n[1],t)})).map((function(e){return(0,p.default)(e,1)[0]})),E=(0,h.b)(c.filter(yt).map((function(e){return e.guid})).concat($)).filter((function(e){return n.has(e)})).map((function(e){return{guid:e}}));return[].concat((0,s.default)(c.filter((function(e){return"attr"in e&&!$.includes(e.guid)}))),(0,s.default)(E),(0,s.default)(w))})),function(e,t,n,r){return b.apply(this,arguments)})(A,n,r,i),L=yield(0,C.d)(P,_,!1,Oe,a),I=L.downloads,B=L.moves,F=L.deletes;0!==R.length&&(yield(0,C.e)({downloads:I},a),yield vt(R,i,null!=(v=S.objects)?v:[],r,n,Oe,new je,0!==_.length?"clean":"nothing"),yield(0,C.e)({moves:B},a),(0,C.e)({deletes:F},a).catch(O.h)),yield ut(r,A),G.length>0&&(yield O.p.apply(void 0,(0,s.default)(G)));var J=S.actionResult;return null==J?void 0:(0,M.r)(J.value,J.type,(function(e){return(0,h.e)(r.getObject(e))}))})),Ot.apply(this,arguments)}function wt(e,t,n){var r=ue(t);return e.filter((function(e){var t,i,a,u=null!=(t=r[e])?t:null==(i=n.getObject(e))?void 0:i.jsonData;return u&&!1===(null==(a=(0,y.g)(u.objectType))?void 0:a.isPersistable)}))}function $t(e,t){return Object.assign.apply(Object,[{}].concat((0,s.default)(Object.keys(e).filter((function(e){return t.has(e)})).map((function(t){return(0,o.default)({},t,e[t])})))))}function Et(e,t,n){return e.flatMap((function(e){switch(e.type){case"refresh_class":var r=e.args.classnames.filter((function(e){var t;return!1===(null==(t=(0,y.g)(e))?void 0:t.isPersistable)}));return r.length>0?[Object.assign({},e,{args:{classnames:r}})]:[];case"refresh_object_list":var i=wt(e.args.ObjectIds,t,n);return i.length>0?[Object.assign({},e,{args:{ObjectIds:i}})]:[];case"push_to_client":return e;default:return[]}}))}function St(e,t,n,r){return Object.assign.apply(Object,[{}].concat((0,s.default)(Object.entries(e).map((function(e){var i,a=(0,p.default)(e,2),u=a[0],c=a[1],s=(null!=(i=t.find((function(e){return e.guid===u})))?i:(0,h.e)(n.getObject(r.map(u))).jsonData).objectType,l=(0,y.g)(s);return l?(0,o.default)({},r.map(u),r.mapChange(c,l)):(0,o.default)({},u,c)})))))}function kt(e,t){return Object.assign.apply(Object,[{}].concat((0,s.default)(Object.keys(e).map((function(n){return(0,o.default)({},t.map(n),e[n])})))))}function At(e,t){return e.map((function(e){return"push_to_client"===e.type?Object.assign({},e,{args:{guids:t.map(e.args.guids)}}):e}))}function Ct(e){return[(t=[{name:W,type:"text"},{name:z,type:"text"},{name:q,type:"text"},{name:H,type:"text"}],Nt((0,b.toUserScopedName)(F),t,W))].concat((0,s.default)(e.map((function(e){return(function(e){var t=(0,y.d)(e).map((function(e){return{name:pe(e.name),type:Tt(e.type)}})).concat({name:W,type:"text"});return Nt((0,b.toUserScopedName)(pe(e)),t,W)})(e)}))));var t}function Nt(e,t,n){if(t.length>990)throw new Error(`Unable to create table '${e}' with more than 990 columns.`);return[[`CREATE TABLE IF NOT EXISTS "${e}" (`,t.map((function(e){return[`"${e.name}"`,e.type,"text"===e.type?"COLLATE NOCASE":"",e.name===n?"PRIMARY KEY":""].join(" ").trim()})).join(", "),")"].join(""),[]]}function Tt(e){switch(e){case"Decimal":case"Enum":case"HashString":case"Integer":case"Long":case"ObjectReference":case"String":case"EnumSet":case"ObjectReferenceSet":return"text";case"AutoNumber":case"Boolean":case"DateTime":return"integer";case"Binary":return"blob"}}function Mt(e){return[`DROP TABLE IF EXISTS "${(0,b.toUserScopedName)(e)}"`,[]]}var xt=(function(){function e(t){(0,l.default)(this,e),this.attrs=[],this.tableNameAlias=pe(t),this.tableName=(0,b.toUserScopedName)(this.tableNameAlias),this.fromClause=`FROM ${this.tableName} AS ${this.tableNameAlias}`}return(0,f.default)(e,[{key:"filtered",value:function(e){var t=Se(e,this.tableNameAlias),n=t.type,r=t.expr,i=t.params;return"null"!==n&&(this.whereClause=`WHERE ${r}`,this.bindParameters=i),this}},{key:"sorted",value:function(e){var t=this,n=e.map((function(e){var n=(0,p.default)(e,2),r=n[0],i=n[1];return`${t.tableNameAlias}.[${pe(r)}] ${i}`})).join(", ");return this.orderClause=n?`ORDER BY ${n}`:"",this}},{key:"paged",value:function(e,t){return this.limitClause=`LIMIT ${void 0!==t&&t>0?t:-1} OFFSET ${null!=e?e:0}`,this}},{key:"attributes",value:function(e){return this.attrs=e,this}},{key:"buildSelectWithMeta",value:function(){var e,t=this,n=(0,b.toUserScopedName)(F);return[["SELECT",this.attrs.map((function(e){return`${t.tableNameAlias}.[${pe(e)}] AS "${pe(e)}"`})).concat(V.map((function(e){return`${F}.[${e}] AS "${F}.${e}"`}))).join(", "),this.fromClause,`JOIN ${n} AS ${F} USING (${W})`,this.whereClause,this.orderClause,this.limitClause].filter((function(e){return e})).join(" "),null!=(e=this.bindParameters)?e:[]]}},{key:"buildCount",value:function(){var e;return[['SELECT COUNT("guid") AS count',this.fromClause,this.whereClause].filter((function(e){return e})).join(" "),null!=(e=this.bindParameters)?e:[]]}}]),e})(),Rt=_e3.S=(function(e){(0,i.default)(r,e);var n=P(r);function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Could temporarily not synchronize data. Please try again later.";return(0,l.default)(this,r),e=n.call(this,i),Object.setPrototypeOf((0,t.default)(e),r.prototype),e}return(0,f.default)(r)})((0,n.default)(Error));function _t(e,t){return Dt.apply(this,arguments)}function Dt(){return(Dt=(0,c.default)((function*(e,t){if(t.some((function(e){return!(0,y.f)(e)})))throw new h.A("Non-file document entity passed.");var n=t.map((function(e){return new xt(e).attributes([y.S.ChangedDate]).buildSelectWithMeta()})),r=yield U(n).read(e),i=[];return r.forEach((function(e){return e.forEach((function(e){var t,n=(function(e){return e[`${F}.${W}`]})(e),r=null!=(t=e[y.S.ChangedDate])?t:void 0;i.push([n,r])}))})),i}))).apply(this,arguments)}function Pt(e,t,n,r,i,a,u){return Gt.apply(this,arguments)}function Gt(){return Gt=(0,c.default)((function*(e,t,n,r,i,a,u){var o,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:new Set;try{return yield(o=(0,c.default)((function*(e,t,n,r,i,a,u,o){var l=r.schema,f=r.preserveData,m=r.fetch,j=r.never,w=r.online,$=a?{}:Object.fromEntries(Object.entries(i).filter((function(e){var t=(0,p.default)(e,1)[0];return f.includes(t)})).map((function(e){var t=(0,p.default)(e,2);return[t[0],t[1]]}))),E=new k.a;o.trace("Fetching objects.");var S,A=yield(S=(0,c.default)((function*(e,t,n){return(yield Promise.all([].concat((0,s.default)(e.map((function(e){return r(e.store,e.xpath)}))),[(function(){return a.apply(this,arguments)})()]))).flat();function r(e,t){return i.apply(this,arguments)}function i(){return i=(0,c.default)((function*(e,t){var r,i;n.trace(`Fetching objects by XPath: ${t}`);var a=new k.a,o=yield(0,k.h)(t);return n.trace(`Fetched ${null!=(r=null==(i=o.objects)?void 0:i.length)?r:0} objects by XPath ${t} in ${a.measure()} milliseconds.`),u(e,(0,h.e)(o.objects),(0,h.e)(o.resultGuids))})),i.apply(this,arguments)}function a(){return a=(0,c.default)((function*(){var e,r,i,a=Object.values(t).flat();if(0===a.length)return[];n.trace(`Fetching ${a.length} preserved objects.`);var o=new k.a,c=yield(0,k.e)(a,{});return n.trace(`Fetched ${a.length===(null==(e=c.objects)?void 0:e.length)?a.length:`${null!=(r=null==(i=c.objects)?void 0:i.length)?r:0} of ${a.length}`} preserved objects in ${o.measure()} milliseconds.`),Object.entries(t).flatMap((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return u(n,(0,h.e)(c.objects),r.filter((function(e){return c.resultGuids.includes(e)})))}))})),a.apply(this,arguments)}function u(e,t,n){var r=t.reduce((function(e,t){return e[t.guid]=t,e}),{});return n.map((function(t){var n=r[t];return n.objectType=e,n}))}})),function(e,t,n){return S.apply(this,arguments)})(m,$,o);o.trace(`Fetched ${A.length} objects and completed in ${E.measure()}ms.`),o.trace("Calculating file operations.");var N,T=yield(N=(0,c.default)((function*(e,t,n,r,i){var a=i?[]:yield _t(t,r.filter((function(e){return(0,y.f)(e)}))),u=n.toAbsolutePath(C.a)+"/",o=a.map((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return u+(0,C.h)(n,null!=r?r:null)})),c=n.toAbsolutePath(C.T)+"/",s=a.map((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return c+(0,C.h)(n,null!=r?r:null)})),l=yield Lt(n,e,o,!1),f=(0,p.default)(l,2),h=f[0],v=f[1],m=yield Lt(n,e,s,!0),b=(0,p.default)(m,2),j=b[0],O=b[1];return[h.concat(j),v.concat(O)]})),function(e,t,n,r,i){return N.apply(this,arguments)})(A,e,t,f,a),M=(0,p.default)(T,2),x=M[0],R=M[1];o.trace(`${x.length} files to be downloaded, ${R.length} files to be removed`),o.trace("Downloading files."),E.reset();var _=yield(0,C.f)(x,t,o),D=_.size>0?A.filter((function(e){return!_.has(e.guid)})):A;o.trace(`Downloaded ${x.length-_.size} files in ${E.measure()} milliseconds.`),o.trace("Compute cached objects to update or delete."),E.reset();var P=(function(e,t,n,r,i){var a=Oe.reverse(),u=e.getAllObjects().filter((function(t){var a;if(!t.isPersistable()||e.isNew(t.getGuid()))return!1;if(i||!n.includes(t.getEntity()))return!0;var u=null!=(a=r[t.getEntity()])?a:[];return Oe.map(u).includes(t.getGuid())})).map((function(e){var n=a.map(e.getGuid()),r=t.find((function(e){return e.guid===n}));return[r?Oe.mapMxObjectJSON(r):void 0,e]})),o=(0,h.p)((function(e){return void 0!==(0,p.default)(e,1)[0]}),u),c=(0,p.default)(o,2),s=c[0],l=c[1];return[s.map((function(e){return(0,p.default)(e,1)[0]})),l.map((function(e){var t=(0,p.default)(e,2);return t[0],t[1].getGuid()}))]})(n,D,f,i,a),G=(0,p.default)(P,2),L=G[0],I=G[1];o.trace(`Compute cached objects to update or delete completed in ${E.measure()} milliseconds. ${L.length} objects will be updated, ${I.length} will be deleted.`),o.trace("Computing subscription updates."),E.measure();var B,J=(function(e,t,n,r,i,a,u,o){var c=new Set([].concat((0,s.default)(t),(0,s.default)(n))),l=e.filter((function(e){return!(!o&&c.has(e))||void 0!==i[e]&&!i[e].every((function(e){return void 0!==r.find((function(t){return t.guid===e}))}))})).map((function(e){return{entity:e}}));return[].concat((0,s.default)(l),(0,s.default)(a.map((function(e){return{guid:e}}))),(0,s.default)(u.map((function(e){return{guid:e}}))))})(l,[].concat((0,s.default)(f),(0,s.default)(j)),w,D,$,L.map((function(e){return e.guid})),I,a);return o.trace(`Computing subscription updates completed in ${E.measure()} milliseconds.`),o.trace("Rebuilding the database."),E.reset(),yield(B=(0,c.default)((function*(e,t,n,r,i,a){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Set,o=new Set([].concat((0,s.default)(i),(0,s.default)(a))),c=t.filter((function(e){return!o.has(e)})),l=0===i.length,f=new Set([].concat((0,s.default)(c),(0,s.default)(u))),h=Array.from(f).map((function(e){return Mt(pe(e))})),m=(0,v.g)();l?(h.push(Mt(F)),h.push(re((0,b.toUserScopedName)(Z),JSON.stringify(m.getOfflineMetadata())))):h=h.concat(Ge(c),Object.entries(r).map((function(e){var t=(0,p.default)(e,2);return Me(t[0],t[1])})).flat()),h=(h=h.concat(Ct(c))).concat(n.map((function(e){return lt(e)})).flat()),yield U(h).write(e)})),function(e,t,n,r,i,a){return B.apply(this,arguments)})(e,l,D,Object.fromEntries(Object.entries($).map((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return[n,Oe.map(r)]}))),a?[]:[].concat((0,s.default)(f),(0,s.default)(j)),w,u),o.trace(`Rebuilding the database completed in ${E.measure()} milliseconds.`),o.trace(`Updating cache. ${L.length} to be updated, ${I.length} to be deleted.`),E.reset(),n.setMxObjects(L),n.onDelete(I),o.trace(`Updating cache completed in ${E.measure()} milliseconds.`),o.trace(`Removing ${R.length} files.`),E.reset(),Promise.all(R.map((function(e){return t.removeFile(e)}))).catch(O.h),o.trace(`Removing ${R.length} files completed in ${E.measure()} milliseconds.`),J})),function(e,t,n,r,i,a,u,c){return o.apply(this,arguments)})(e,t,n,r,i,a,l,u)}catch(e){throw u.warn(e),new Rt}})),Gt.apply(this,arguments)}function Lt(e,t,n,r){return Ut.apply(this,arguments)}function Ut(){return Ut=(0,c.default)((function*(e,t,n,r){var i=e.toAbsolutePath(r?C.T:C.a)+"/",a=t.filter((function(e){return(0,y.b)(e,r)})).map((function(e){var t,n=null==(t=e.attributes.changedDate)?void 0:t.value;return{sourceUrl:(0,C.g)(e.guid,null!=n?n:null,r),downloadPath:i+(0,C.h)(e.guid,null!=n?n:null),guid:e.guid}})),u=(yield e.listDir(i)).map((function(e){return i+e}));return[a.filter((function(e){return!u.includes(e.downloadPath)})).map((function(e){return[e.sourceUrl,e.downloadPath,e.guid]})),u.filter((function(e){return!a.find((function(t){return t.downloadPath===e}))&&!n.includes(e)}))]})),Ut.apply(this,arguments)}function It(e){return Bt.apply(this,arguments)}function Bt(){return Bt=(0,c.default)((function*(e){var t=e.dirtyMxObjects,n=e.syncedObjsOfflineToRuntimeMap,r=e.returnObjects,i=e.deletes,a=void 0===i?{}:i,u=e.extraGuidsToRetrieve,l=void 0===u?[]:u,f=e.incompatibleObjectsJson,v=void 0===f?[]:f,m=e.logger,j=e.database,O=e.fileBackend,w=e.offlineEntities;m.trace(`Syncing of ${t.length} objects.`);var $=t.map((function(e){return n.mapMxObjectJSON(e.jsonData)})),E=t.filter((function(e){return!ae(n.map(e.getGuid()))}));m.trace(`Creating guids for ${E.length} offline objects.`);var S,A,N=new k.a,T=yield(S=(0,c.default)((function*(e,t){for(var n=e.reduce((function(e,t){var n,r=t.getEntity();return e[r]=(null!=(n=e[r])?n:0)+1,e}),{}),r={},i=[],a=c();Object.entries(a).length>0;){var u=yield t(a);if(0===Object.keys(u.success).length&&0===u.failure.length)throw new h.A("create_guids API did not return a valid response");Object.entries(u.success).forEach((function(e){var t,n=(0,p.default)(e,2),i=n[0],a=n[1];r[i]=(null!=(t=r[i])?t:[]).concat(a)})),i.push.apply(i,(0,s.default)(u.failure)),a=c()}var o=new be;return e.filter((function(e){return!i.includes(e.getEntity())})).forEach((function(e){var t=r[e.getEntity()].shift();o.add(e.getGuid(),t)})),o;function c(){return Object.entries(n).reduce((function(e,t){var n,a,u,o,c=(0,p.default)(t,2),s=c[0],l=c[1],f=null!=(n=null==(a=r[s])?void 0:a.length)?n:0;return!i.includes(s)&&l>f&&(e[s]=l-(null!=(u=null==(o=r[s])?void 0:o.length)?u:0)),e}),{})}})),function(e,t){return S.apply(this,arguments)})(E,k.A);m.trace(`Created guids for ${E.length} offline objects in ${N.measure()} milliseconds.`),N.reset(),yield(A=(0,c.default)((function*(e,t,n,r,i){if(t.some((function(e){return ae(e.getGuid())})))throw new h.A("Runtime objects are not expected here");var a,u=[].concat((0,s.default)((a=n,t.filter((function(e){return a.has(e.getGuid())})).flatMap((function(e){var t=(0,b.toUserScopedName)(pe(e.getEntity())),n=(0,b.toUserScopedName)(F),r=e.getGuid(),i=[a.map(r),r];return[[`UPDATE ${t} SET ${W} = ? WHERE ${t}.[${W}] = ?`,i],[`UPDATE ${n} SET ${W} = ? WHERE ${n}.[${W}] = ?`,i]]})))),(0,s.default)(Pe(t,n,e))),o=r.toAbsolutePath(C.a),c=t.filter((function(e){return(0,y.b)(e.jsonData)})).map((function(e){var t=n.map(e.getGuid());return[o+"/"+(0,C.h)(e.getGuid(),""),o+"/"+(0,C.h)(t,""),t]}));yield U(u).write(i),yield(0,C.e)({moves:c},r),Oe.import(n.reverse())})),function(e,t,n,r,i){return A.apply(this,arguments)})(w,E,T,O,j),m.trace(`Updated offline guids with runtime guids in ${N.measure()} milliseconds.`);var M=$.map((function(e){return T.mapMxObjectJSON(e)})),x=yield Ft(M.map((function(e){return e.guid})),j);m.trace("Uploading file documents."),N.reset();var R=yield Promise.all(M.filter((function(e){return(0,y.b)(e)})).concat(v.filter((function(e){return(function(e,t){var n=e.attributes;return["FileID","HasContents","Size"].every((function(e){return e in n}))&&Boolean(parseInt((null==(t=n.HasContents)?void 0:t.value)||"0",10))})(e)}))).map((function(){var e=(0,c.default)((function*(e){m.trace(`Uploading file content of ${e.objectType} with guid ${e.guid}.`);var t=new k.a,n=yield(0,C.i)(O,e);return m.trace(`Uploaded file content of ${e.objectType} with guid ${e.guid} in ${t.measure()} milliseconds.`),n}));return function(t){return e.apply(this,arguments)}})()));m.trace(`Uploaded file documents in ${N.measure()} milliseconds.`);var _=M.map((function(e){return Object.assign({guid:e.guid,syncId:x[e.guid],changes:(t=e,n=(0,h.e)((0,y.g)(t.objectType)),r=Object.entries(t.attributes).filter((function(e){var t,r=(0,p.default)(e,2),i=r[0],a=r[1];return(null==(t=n.attributes[i])?void 0:t.isSyncable)&&!a.readonly})).map((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return(0,o.default)({},n,{value:r.value})})),Object.assign.apply(Object,[{}].concat((0,s.default)(r))))},ae(e.guid)?{}:{objectType:e.objectType});var t,n,r})),D=yield Ft(v.map((function(e){return e.guid})),j),P=v.map((function(e){return{guid:e.guid,objectType:e.objectType,syncId:D[e.guid],changes:(t=e,n=Object.keys(t.attributes).map((function(e){var n;return(0,o.default)({},e,{value:null==(n=t.attributes[e])?void 0:n.value})})),Object.assign.apply(Object,[{}].concat((0,s.default)(n))))};var t,n})),G=R.reduce((function(e,t){return t.tempGuid?Object.assign({},e,(0,o.default)({},t.tempGuid,t.fileObjGuid)):e}),{});m.trace("Syncing objects with runtime."),N.reset();var L=r?yield(0,k.z)(_,G,!0,a,n.map(l)):yield(0,k.z)(_,G,!1,a,[],P);return m.trace(`Synced objects with runtime in ${N.measure()} milliseconds.`),{response:L,createdGuidsMapping:T}})),Bt.apply(this,arguments)}function Ft(e,t){return Jt.apply(this,arguments)}function Jt(){return(Jt=(0,c.default)((function*(e,t){return U((function(e){return Ee(e).map((function(e){var t=new Array(e.length).fill("?").join(", ");return[`SELECT "${W}", "${q}" FROM "${(0,b.toUserScopedName)(F)}" WHERE "${W}" IN (${t})`,e]}))})(e)).chain((function(e){return e.flat().reduce((function(e,t){return e[t[W]]=t[q],e}),{})})).read(t)}))).apply(this,arguments)}function Wt(e,t,n,r,i,a,u){return zt.apply(this,arguments)}function zt(){return(zt=(0,c.default)((function*(e,t,n,r,i,a,u){!(function(){if((0,h.g)(e,(function(e){return e.getGuid()})).length!==e.length)throw new h.A("Duplicate objects aren't allowed")})(),u.trace("Selective sync started.");var o=new k.a,l=yield(0,_.r)((0,c.default)((function*(){var c=e.filter((function(e){return!r.isNew(e.getGuid())})),s=0!==c.length,l=0!==Object.keys(t).length;if(!s&&!l)return u.trace("Nothing to sync."),[];u.trace(`Selective sync to sync ${e.length} objects and ${Object.keys(t).length} deletes.`);var f=c.map((function(e){return e.getGuid()})),h=Oe.reverse(),v=c.filter((function(e){return(0,A.i)(e.getGuid())})),m=f.filter((function(e){return!(0,A.i)(e)}));o.reset();var b=yield It({dirtyMxObjects:v,syncedObjsOfflineToRuntimeMap:h,returnObjects:!0,deletes:t,extraGuidsToRetrieve:m,logger:u,database:i,fileBackend:a,offlineEntities:n}),j=b.createdGuidsMapping,w=b.response;u.trace(`Selective sync synced changes with runtime in ${o.measure()} milliseconds.`);var $=Oe.reverse(),E=(function(e){var t=new Set(e.map((function(e){return e.getEntity()})));return e.map((function(e){return{guid:e.getGuid()}})).concat(Array.from(t).map((function(e){return{entity:e}})))})(c),S=(0,C.c)((function(e){return(0,y.f)(e)})),k=c.filter((function(e){return S(e.getEntity())})).map((function(e){return e.jsonData})),N=yield(0,C.d)(k,w.objects,!0,Oe,a),T=N.downloads,M=N.moves,x=N.deletes,R=yield(0,C.f)(T,a,u),_=0===R.size?w.objects:w.objects.filter((function(e){return!R.has(e.guid)}));u.trace("Selective sync to update the local database."),o.reset(),yield vt($.map(f),i,_,r,n,Oe,j.reverse(),l?"reset":"nothing"),u.trace(`Selective sync updated the local database in ${o.measure()} milliseconds.`);var D=R.size>0?M.filter((function(e){var t=(0,p.default)(e,3),n=(t[0],t[1],t[2]);return!R.has(n)})):M;yield(0,C.e)({moves:D},a,u),(0,C.e)({deletes:x},a,u).catch((function(e){return(0,O.h)(e)}));var P=_.flatMap((function(e){return r.has(Oe.map(e.guid))?Oe.mapMxObjectJSON(e):[]}));return r.setMxObjects(P),E})));l.length>0&&(u.trace("Selective sync to update UI with the latest state of the synchronized objects."),o.reset(),yield O.p.apply(void 0,(0,s.default)(l)),u.trace(`Selective sync updated the UI with the latest state of the synchronized objects in ${o.measure()} milliseconds.`)),u.trace("Selective sync completed.")}))).apply(this,arguments)}var Ht=(function(){function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:E.L.get();(0,l.default)(this,e),this.syncConfig=t,this.objectCache=n,this.fileBackend=r,this.database=i,this.startupLogger=a.getLogger(E.a.Startup),this.syncLogger=a.getLogger(E.a.Synchronization),this.selectiveSyncLogger=a.getLogger(E.a.SelectiveSync),this.onlineEntities=new Set(t.online)}var t,n,r,i,a,u,$,N,T,M,x,R,D,P,G,B,H,ee,te,ae;return(0,f.default)(e,[{key:"initialize",value:(ae=(0,c.default)((function*(e){var t=this,n=['SELECT COUNT(name) as cnt FROM sqlite_master WHERE type="table" AND name=?',[(0,b.toUserScopedName)(F)]],r=this.syncConfig.schema.filter((function(e){return!t.hasOnlineSyncMode(e)}));yield L(n).chain((function(t){var n,i=0===(0,h.e)(t[0]).cnt?se(e):0,a=Ct(r).concat((function(e){var t=Nt(X,[{name:K,type:"text"},{name:Y,type:"text"}],K),n=(0,o.default)((0,o.default)({version:e.toString()},Q,"0"),(0,b.toUserScopedName)(Z),"[]");return[t].concat((0,s.default)(Object.entries(n).map((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1];return[`INSERT OR IGNORE INTO "${X}" (name, value) VALUES (?,?)`,[n,r]]}))))})(i),[(n=[{name:W,type:"text"},{name:q,type:"text"}],Nt((0,b.toUserScopedName)(J),n,W))]);return U(a)})).write(this.database),yield this.applyMigrations(e);var i=(yield this.retrieveDirtyObjects()).dirtyObjects;(0,A.m)(i.map((function(e){return e.getGuid()})))})),function(e){return ae.apply(this,arguments)})},{key:"downloadObjects",value:(te=(0,c.default)((function*(e,t,n){this.syncLogger.trace("Downloading objects");var r=new k.a,i=Pt(this.database,this.fileBackend,this.objectCache,this.syncConfig,e,t,this.syncLogger,n);return this.syncLogger.info(`Downloading objects completed in ${r.measure()} milliseconds.`),i})),function(e,t,n){return te.apply(this,arguments)})},{key:"cleanDatabase",value:(ee=(0,c.default)((function*(){var e=[].concat((0,s.default)(this.syncConfig.schema.map((function(e){return Mt(pe(e))}))),[Mt(F),Mt(J)]);yield U(e).write(this.database)})),function(){return ee.apply(this,arguments)})},{key:"create",value:(H=(0,c.default)((function*(e){var t=(0,h.e)((0,y.g)(e)),n=t.isPersistable?ie+(0,m.n)():de(t);return this.objectCache.onCreate([n]),this.objectCache.setMxObjects([(0,w.c)(n,t)]),this.objectCache.getObject(n)})),function(e){return H.apply(this,arguments)})},{key:"retrieve",value:(B=(0,c.default)((function*(e,t,n){var r=this,i=yield this.retrieveJson(e,t,n),a=i.jsons,u=i.count;return this.objectCache.setMxObjects(a),{mxObjects:a.map((function(e){return(0,h.e)(r.objectCache.getObject(e.guid))})),count:u}})),function(e,t,n){return B.apply(this,arguments)})},{key:"retrieveByGuids",value:(G=(0,c.default)((function*(e,t){var n=this,r=Ee(t);return(yield Promise.all(r.map((function(t){return n.retrieveJson(e,{type:"function",name:"in",parameters:[{type:"attribute",attribute:W,attributeType:"String"},{type:"value",value:t,isGuid:!0}]},{})})))).flatMap((function(e){return e.jsons}))})),function(e,t){return G.apply(this,arguments)})},{key:"retrieveUncached",value:(P=(0,c.default)((function*(e,t,n){var r=yield this.retrieveJson(e,t,n),i=r.jsons,a=r.count;return{mxObjects:i.map(S.M.fromJson),count:a}})),function(e,t,n){return P.apply(this,arguments)})},{key:"retrieveDirtyObjects",value:(D=(0,c.default)((function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,r=L((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set,t=e.size>0?` AND "${z}" NOT IN (${Array.from(e).map((function(e){return`'${e}'`})).join(", ")})`:"";return[`SELECT "${W}", "${z}" FROM "${(0,b.toUserScopedName)(F)}" WHERE "${q}" IS NOT NULL${t}`,[]]})(new Set(this.syncConfig.never))).chain((function(e){var t=e.reduce((function(e,t){var n,r=t[z];return e[r]=(null!=(n=e[r])?n:[]).concat(t[W]),e}),{});return U(Object.entries(t).flatMap((function(e){var t=(0,p.default)(e,2);return(function(e,t){if(0===t.length)throw new h.A("No guids specified");return Ee(t).map((function(t){var n=new Array(t.length).fill("?").join(", "),r=pe(e),i=(0,b.toUserScopedName)(r),a=(0,b.toUserScopedName)(F);return[[`SELECT ${r}.*,`,V.map((function(e){return`${F}.[${e}] AS "${F}.${e}"`})).join(", "),`FROM "${i}" AS ${r}`,`JOIN ${a} AS ${F} USING (${W})`,`WHERE ${F}.${W} IN (${n})`].join(" "),t]}))})(t[0],t[1])})))})).chain((function(r){var i=function(e,t){var n=e.has(t)?e.get(t)+1:1;e.set(t,n)},a=r.flat().reduce((function(e,r){var a=r[`${F}.${z}`];if(n.has(a))return e.incompatibleObjectsJson.push(Ue(r)),i(e.incompatibleObjectsCount,a),e;try{var u=Ue(r,(0,h.e)((0,y.g)(a))),o=t?Oe.mapMxObjectJSON(u):u;e.dirtyObjects.push(S.M.fromJson(o))}catch(t){e.incompatibleObjectsJson.push(Ue(r)),i(e.incompatibleObjectsCount,a)}return e}),{dirtyObjects:[],incompatibleObjectsJson:[],incompatibleObjectsCount:new Map}),u=a.dirtyObjects,o=a.incompatibleObjectsJson;return a.incompatibleObjectsCount.forEach((function(t,n){e.syncLogger.warn(`Failed to parse ${t} object${1===t?"":"s"} of type '${n}'and to prevent data loss new 'System.SynchronizationError' corresponding to these failed objects will be created.`)})),{dirtyObjects:u,incompatibleObjectsJson:o}}));return r.read(this.database)})),function(){return D.apply(this,arguments)})},{key:"retrieveDeletes",value:(R=(0,c.default)((function*(){return L([`SELECT "${W}", "${q}" FROM "${(0,b.toUserScopedName)(J)}"`,[]]).chain((function(e){return Object.fromEntries(e.map((function(e){return[e[W],e[q]]})))})).read(this.database)})),function(){return R.apply(this,arguments)})},{key:"insertOrReplace",value:(x=(0,c.default)((function*(e){var t=this,n=(0,v.g)().getSessionObjectId(),r=e.reduce((function(e,n){var r=n.objectType;return t.hasOnlineSyncMode(r)&&(e.has(r)?e.get(r).push(n.guid):e.set(r,[n.guid])),e}),new Map);if(r.size>0){var i=["An attempt to commit object(s) configured with 'online' synchronization mode in an offline context.","Objects list:"];for(var a of r){var u=(0,p.default)(a,2),o=u[0],c=u[1];i.push(`'${o}': ${c.join(", ")}`)}throw new j.D(i.join("\n"))}yield ce(n,e.length).chain((function(t){return U(e.map((function(e,n){return lt(e,t[n])})).flat())})).write(this.database)})),function(e){return x.apply(this,arguments)})},{key:"executeMicroflow",value:(M=(0,c.default)((function*(e,t){return jt(e,t,this.syncConfig.schema,this.objectCache,this.database,this.fileBackend)})),function(e,t){return M.apply(this,arguments)})},{key:"upload",value:(T=(0,c.default)((function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set,n=yield this.retrieveDirtyObjects(!1,t),r=n.dirtyObjects,i=n.incompatibleObjectsJson,a=yield this.retrieveDeletes(),u=0!==r.length,o=0!==Object.keys(a).length,c=0!==i.length;if(!(u||o||c))return{};this.syncLogger.trace(`Uploading ${r.length} changes, ${Object.keys(a).length} deletes.`),r.length+Ye.length>1e3&&this.syncLogger.warn("Uploading excessive amount of data will slow down synchronization.");var l=new k.a,f=yield It({returnObjects:!1,dirtyMxObjects:r,syncedObjsOfflineToRuntimeMap:Oe.reverse(),deletes:a,incompatibleObjectsJson:i,logger:this.syncLogger,database:this.database,fileBackend:this.fileBackend,offlineEntities:this.syncConfig.schema});this.syncLogger.trace(`Synchronizing objects took ${l.measure()} milliseconds.`);var v=xe(J);if(!u)return yield L(v).write(this.database),{};var m=f.createdGuidsMapping,y=f.response,j=m.reverse(),O=oe(r),w=Object.entries(y.fileChangedDates).map((function(e){var t=(0,p.default)(e,2),n=t[0],r=t[1],i=j.map(n);return Re((0,h.e)(O[i]).metaData,{changedDate:r},W,n)})),$=(function(e){if(0===e.length)throw new h.A("No guids specified");return Ee(e).map((function(e){var t=new Array(e.length).fill("?").join(", ");return[`UPDATE "${(0,b.toUserScopedName)(F)}" SET "${q}" = NULL WHERE "${W}" IN (${t})`,e]}))})(r.map((function(e){return m.map(e.getGuid())})));this.syncLogger.trace("Updating local database with uploaded changes."),l.reset(),yield U([].concat((0,s.default)(w),(0,s.default)($),(0,s.default)(o?[v]:[]))).write(this.database),this.syncLogger.trace(`Updating local database took ${l.measure()} milliseconds.`),(0,A.c)();var E=Object.entries(y.fileChangedDates).map((function(t){var n=(0,p.default)(t,2),i=n[0],a=n[1],u=i,o=j.map(u),c=r.find((function(e){return e.getGuid()===o})).jsonData,s=e.fileBackend.toAbsolutePath(C.a+"/");return[s+(0,C.h)(u,(0,h.e)(c.attributes.changedDate).value),s+(0,C.h)(u,a),u]}));this.syncLogger.trace("Executing file instructions for uploaded file documents."),l.reset(),yield(0,C.e)({moves:E},this.fileBackend),this.syncLogger.trace(`Executing file instructions for uploaded file documents took ${l.measure()} milliseconds.`);var S=Oe.reverse();return r.reduce((function(e,t){var n,r=t.getEntity();return e[r]=(null!=(n=e[r])?n:[]).concat(S.map(t.getGuid())),e}),{})})),function(){return T.apply(this,arguments)})},{key:"selectiveSync",value:(N=(0,c.default)((function*(e){return Wt(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this.syncConfig.schema,this.objectCache,this.database,this.fileBackend,this.selectiveSyncLogger)})),function(e){return N.apply(this,arguments)})},{key:"delete",value:($=(0,c.default)((function*(e){return Ye(e,this.objectCache,this.fileBackend,this.syncConfig.schema,new Set(this.syncConfig.never),this.database)})),function(e){return $.apply(this,arguments)})},{key:"clearFromClient",value:(u=(0,c.default)((function*(e){yield Ie(e,this.objectCache,this.fileBackend,this.database)})),function(e){return u.apply(this,arguments)})},{key:"executeDBModelSyncInstructions",value:(a=(0,c.default)((function*(e,t){if(0!==e.length){var n=e.length>1;this.startupLogger.debug(`Found ${e.length} instruction${n?"s":""} to update the local database to the new schema.\n${e.map((function(e){return`- ${e.getDescription()}`})).join("\n")}`);var r=e.reduce((function(e,t){return e.chain((function(){return t.getTransaction()}))}),new I);r=r.chain((function(){return L(re((0,b.toUserScopedName)(Z),JSON.stringify(t)))})),yield r.write(this.database),yield Promise.all(e.map((function(e){return e.postMigrate()})))}})),function(e,t){return a.apply(this,arguments)})},{key:"deleteFiles",value:function(e){if(0!==e.length){var t=this.fileBackend.toAbsolutePath(C.a)+"/",n=this.fileBackend.toAbsolutePath(C.T)+"/",r=e.map((function(e){var r=e.guid,i=e.changedDate;return`${e.isThumb?n:t}${(0,C.h)(r,i)}`}));(0,C.e)({deletes:r},this.fileBackend).catch((function(e){return(0,O.h)(e)}))}}},{key:"retrieveJson",value:(i=(0,c.default)((function*(e,t,n){var r,i;if(this.syncConfig.online.includes(e))throw new h.A("Can not retrieve objects with online sync mode from offline database");var a=(0,h.e)((0,y.g)(e)),u=new xt(e).attributes(Object.values(a.attributes).map((function(e){return e.name})));void 0!==t&&u.filtered(t),void 0===n.offset&&void 0===n.amount||u.paged(n.offset,n.amount),void 0!==n.sort&&u.sorted(n.sort);var o=u.buildSelectWithMeta(),c=u.buildCount(),s=yield U([o,c]).read(this.database),l=(0,p.default)(s,2),f=l[0],v=void 0===f?[]:f,m=l[1],b=void 0===m?[]:m;return{jsons:v.map((function(e){return Oe.mapMxObjectJSON(Ue(e,a))})),count:null!=(r=null==(i=b[0])?void 0:i.count)?r:0}})),function(e,t,n){return i.apply(this,arguments)})},{key:"retrieveOfflineMetadata",value:(r=(0,c.default)((function*(){var e=ne((0,b.toUserScopedName)(Z)),t=yield L(e).read(this.database);return JSON.parse((0,h.e)(t[0])[Y])})),function(){return r.apply(this,arguments)})},{key:"runFullSynchronization",value:(n=(0,c.default)((function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,r=yield(0,_.r)((0,c.default)((function*(){var r=yield e.upload(n);return e.downloadObjects(r,t,n)})));yield O.p.apply(void 0,(0,s.default)(r))})),function(){return n.apply(this,arguments)})},{key:"applyMigrations",value:(t=(0,c.default)((function*(e){var t=se(e),n=ne("version"),r=yield L(n).read(this.database),i=parseInt((0,h.e)(r[0])[Y],10);if(t<=i)this.startupLogger.debug("The database schema is up-to-date.");else{var a=new k.a,u=e.findIndex((function(e){return e.version===i})),o=-1===u?e:e.slice(u+1),c=new I;o.forEach((function(e){c=c.chain((function(t){return e.apply()}))})),c=c.chain((function(e){return L(re("version",t.toString())).chain((function(e){}))})),yield c.write(this.database),this.startupLogger.debug(`The app has upgraded the local database version from ${i} to ${t} in ${a.measure()} milliseconds.`)}})),function(e){return t.apply(this,arguments)})},{key:"hasOnlineSyncMode",value:function(e){return this.onlineEntities.has(e)}}]),e})(),qt=_e3.N=(function(e){(0,i.default)(r,e);var n=P(r);function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,l.default)(this,r),e=n.call(this,"Not implemented"+(""!==i?": "+i:"")),Object.setPrototypeOf((0,t.default)(e),r.prototype),e}return(0,f.default)(r)})((0,n.default)(Error)),Vt=(function(e){(0,i.default)(v,e);var t,n,r,a,u,o,s=P(v);function v(e,t,n,r){var i;return(0,l.default)(this,v),(i=s.call(this))._store=t,i._getDocumentUrl=r||Kt,i._objectCache=e,i._fileBackend=n,i}return(0,f.default)(v,[{key:"getByGuid",value:(o=(0,c.default)((function*(e,t){var n=this,r=(yield Promise.all(e.map((function(e){return n._getByGuid(e)})))).filter((function(e){return null!=e})).map((function(e){return Yt(e)}));return this._objectCache.setMxObjects(r),{mxobjs:r.map((function(e){var t=e.guid;return n._objectCache.getObject(t)})),count:r.length}})),function(e,t){return o.apply(this,arguments)})},{key:"getByPath",value:(u=(0,c.default)((function*(e,t,n,r){var i=this,a=(0,w.d)(t);if("reverse"===r){var u,o=(0,w.a)(e,r,t,this._objectCache).cachedObjects,c=(null!=(u=(0,y.g)(n))&&u.isPersistable?yield this._store.getByAttribute(n,a,we(e)):[]).map(Yt).map((function(e){return Oe.mapMxObjectJSON(e)})).filter((function(t){return S.M.fromJson(t).getReferences(a).includes(e)})).filter((function(e){return!o.some((function(t){return t.getGuid()===e.guid}))}));this._objectCache.setMxObjects(c);var s=o.concat(c.map((function(e){return i._objectCache.getObject(e.guid)})));return{mxobjs:s,count:s.length}}var l=this._objectCache.getObject(e);if(!l){var f=yield this.getByGuid([e]),h=(0,p.default)(f.mxobjs,1)[0];h&&(l=h)}if(!l)return{mxobjs:[],count:0};var v=(0,w.e)(l,this._objectCache,a),m=v.cachedObjects,b=v.uncachedGuids,j=(yield this.getByGuid(b)).mxobjs,O=j.concat(m);return this._objectCache.setMxObjects(j.map((function(e){return e.jsonData}))),{mxobjs:O,count:O.length}})),function(e,t,n,r){return u.apply(this,arguments)})},{key:"commit",value:(a=(0,c.default)((function*(e,t){var n=this,r=(0,S.o)(e.map((function(e){return[e,Ke(n._objectCache.getChanges(e))]}))),i=(0,h.p)((function(e){return n._objectCache.has(e)}),e),a=(0,p.default)(i,2),u=a[0],o=a[1],c=u.map((function(e){return n._objectCache.getObject(e)})),s=(0,h.p)((function(e){return e.isPersistable()}),c),l=(0,p.default)(s,2),f=l[0],v=l[1],m=f.map(Xt),y=(yield Promise.all(o.map((function(e){return n._getByGuid(e)})))).concat(m).map(T);if(y.length>0){var b=Oe.reverse(),j=y.reduce((function(e,t){return e.mappedObjectsJsons.push(b.mapMxObjectJSON(Yt(t))),e.objectsJsons.push(Yt(t)),e.guids.push(t.guid),e}),{mappedObjectsJsons:[],objectsJsons:[],guids:[]}),O=j.mappedObjectsJsons,w=j.objectsJsons,$=j.guids;yield(0,N.o)().insertOrReplace(O),(0,A.m)($),this._objectCache.setMxObjects(w)}var E,k,C=v.map(Xt).map(T);return this._objectCache.setMxObjects(C.map((function(e){return Yt(e)}))),this._objectCache.onCommit(e),this._objectCache.removeChanges((E=r,k={},Object.keys(E).forEach((function(e){k[e]=Object.keys(E[e])})),k)),{};function T(e){return Object.assign({},e,(0,S.m)(r[e.guid],(function(e){return e.value})))}})),function(e,t){return a.apply(this,arguments)})},{key:"rollback",value:function(e){var t=this;this._objectCache.removeAllChanges(e);var n=e.filter((function(e){return t._objectCache.isNew(e)}));return this._objectCache.onDelete(n),Promise.resolve({})}},{key:"validate",value:function(e){return Promise.resolve({})}},{key:"saveDocument",value:(r=(0,c.default)((function*(e,t,n,r){if(r.size/1048576>n.maxFileSize)throw new j.D("File too large");var i=yield this._getByGuid(e),a=(0,C.h)(we(e),i?i.changedDate:void 0);yield this._fileBackend.storeFile(r,this._fileBackend.toAbsolutePath(C.a+"/"+a)),this._objectCache.makeChange(e,"HasContents",!0),yield this.commit([e],null)})),function(e,t,n,i){return r.apply(this,arguments)})},{key:"getDocumentUrl",value:function(e,t,n,r){return this._getDocumentUrl((0,C.h)(we(e),t),t,n)}},{key:"getImageUrl",value:function(e){return Promise.resolve(e)}},{key:"cleanup",value:(n=(0,c.default)((function*(){yield(0,N.o)().cleanDatabase(),yield this._fileBackend.removeDir(this._fileBackend.toAbsolutePath(C.a)),yield this._fileBackend.removeDir(this._fileBackend.toAbsolutePath(C.T)),(0,A.c)()})),function(){return n.apply(this,arguments)})},{key:"remove",value:(t=(0,c.default)((function*(e){var t=(yield this.getByGuid(e)).mxobjs;yield(0,N.o)().delete(t)})),function(e){return t.apply(this,arguments)})},{key:"_getByGuid",value:function(e){var t=this;return(0,C.m)(e,(function(){return t._store.getByGuid(we(e)).then((function(e){return null===e?null:Qt(Oe.mapMxObjectJSON(Yt(e)))}))}))}}]),v})(_e3._=(function(){function e(){(0,l.default)(this,e)}return(0,f.default)(e,[{key:"getByGuid",value:function(e,t){return Promise.reject(new qt("getByGuid"))}},{key:"getByPath",value:function(e,t,n,r){return Promise.reject(new qt("getByPath"))}},{key:"getByXPath",value:function(e,t,n){return Promise.reject(new qt("getByXPath"))}},{key:"action",value:function(e,t,n,r,i){return Promise.reject(new qt("action"))}},{key:"create",value:function(e){return Promise.reject(new qt("create"))}},{key:"commit",value:function(e,t,n,r){return Promise.reject(new qt("commit"))}},{key:"rollback",value:function(e){return Promise.reject(new qt("rollback"))}},{key:"remove",value:function(e){return Promise.reject(new qt("remove"))}},{key:"validate",value:function(e){return Promise.reject(new qt("validate"))}},{key:"saveDocument",value:function(e,t,n,r){return Promise.reject(new qt("saveDocument"))}},{key:"getDocumentUrl",value:function(e,t,n){throw new qt("getDocumentUrl")}},{key:"getImageUrl",value:function(e){return Promise.reject(new qt("getImageUrl"))}},{key:"cleanup",value:function(){return Promise.reject(new qt("cleanup"))}}]),e})());function Xt(e){return Qt(e.jsonData)}function Kt(e,t,n){var r=C.D+"/"+(n?C.T:C.a);return`filesystem:${window.mx.appUrl}temporary/${r}/${e}?${Date.now()}`}function Yt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"guid"!==n&&"$"!==n[0]&&(t[n]={value:e[n]},e.$readonlyAttrs.includes(n)&&(t[n].readonly=!0));return{guid:e.guid,objectType:e.$objectType,attributes:t}}function Qt(e){var t={guid:e.guid,$objectType:e.objectType,$readonlyAttrs:[]};for(var n in e.attributes)t[n]=e.attributes[n].value,e.attributes[n].readonly&&t.$readonlyAttrs.push(n);return t}var Zt=(function(){function e(){(0,l.default)(this,e),this._from=null,this._prefixedFrom=null,this._join=null,this._constraints=[]}return(0,f.default)(e,[{key:"from",value:function(e){return this._from=e,this._prefixedFrom=(0,b.toUserScopedName)(e),this}},{key:"join",value:function(e,t,n){return this._join={tableNameAlias:e,tableName:(0,b.toUserScopedName)(e),joinOnColumn:t,selectedColumns:n},this}},{key:"where",value:function(e){return this._constraints.push(e),this}},{key:"selectDistinct",value:function(e){return Array.isArray(e)&&(e=e.join(", ")),`SELECT DISTINCT ${e} ${this._buildSql()}`}},{key:"select",value:function(){var e=this,t=`SELECT ${this._from}.*`;return this._join&&this._join.selectedColumns.forEach((function(n){t+=`, ${e._join.tableNameAlias}.[${n}] as "${e._join.tableNameAlias}.${n}"`})),t+this._buildSql()}},{key:"_buildSql",value:function(){var e=this,t=` FROM ${this._prefixedFrom} AS ${this._from}`;return this._join&&(t+=` JOIN ${this._join.tableName} AS ${this._join.tableNameAlias} USING (${this._join.joinOnColumn})`),this._constraints.length>0&&(t+=" WHERE "+this._constraints.map((function(t){return t.build(e._from)})).join(" AND ")),t}}]),e})();function en(e){return{build:function(t){return(e.indexOf(".")>-1?e:`${t}.[${e}]`)+" = ?"}}}function tn(e){this.fork=e}tn.of=function(e){return new tn((function(t,n){n(e)}))},tn.prototype.chain=function(e){var t=this;return new tn((function(n,r){t.fork(n,(function(t){e(t).fork(n,r)}))}))},tn.prototype.orElse=function(e){var t=this;return new tn((function(n,r){t.fork((function(t){e(t).fork(n,r)}),r)}))},tn.prototype.ap=function(e){var t,n,r,i=this,a=2;return new tn((function(u,o){function c(){0==--a&&o(t(n))}function s(e){void 0===r&&u(r=e)}i.fork(s,(function(e){t=e,c()})),e.fork(s,(function(e){n=e,c()}))}))},tn.prototype.map=function(e){return this.chain((function(t){return tn.of(e(t))}))},tn.rejected=tn.prototype.rejected=function(e){return new tn((function(t,n){t(e)}))},tn.parallel=function(e){return new tn((function(t,n){var r,i=e.length,a=new Array(e.length);0!==e.length?e.forEach((function(e,u){e.fork((function(e){void 0===r&&(r=e,t(e))}),(function(e){return function(t){a[e]=t,void 0===r&&0==--i&&n(a)}})(u))})):n(a)}))},tn.sequence=function(e){return e.reduce((function(e,t){return e.chain((function(e){return t}))}),tn.of(null))};var nn=new(function(e){function t(e){this.run=e}return t.prototype.chain=function(e){return new t(function(t){return this.run(t).chain((function(n){return e(n).run(t)}))}.bind(this))},t.prototype.ap=function(e){return new t(function(t){return this.run(t).ap(e.run(t))}.bind(this))},t.prototype.map=function(e){return this.chain((function(n){return t.of(e(n))}))},t.of=function(n){return new t((function(t){return e.of(n)}))},t.ask=function(){return new t(e.of)},t})(tn);function rn(e){return e.replace(".","$")}function an(e){return e.replace("$",".")}function un(e,t,n,r){var i,a={guid:r.guid,$objectType:e.name,$syncId:t,$readonlyAttrs:JSON.parse(n)};for(var u in r){var o;if(!("guid"===(i=u)||i.indexOf(".")>-1)){var c=an(u),s=null==(o=e.attributes[c])?void 0:o.type;a[c]=ve(r[u],s)}}return a}function on(e,t){return e[`${F}.${t}`]}function cn(e,t){return t=t||[],new nn((function(n){return new tn((function(r,i){n.executeSql(e,t,(function(e,t){return i(t)}),(function(e,t){return r(t)}))}))}))}function sn(e){return new Promise((function(t,n){e.fork(n,t)}))}nn.rejected=function(e){return new nn((function(t){return tn.rejected(e)}))},nn.parallel=function(e){return new nn((function(t){return new tn((function(n,r){if(0!==e.length){var i=new Array(e.length),a=e.length,u=!1;e.forEach((function(e,o){e.run(t).fork((function(e){u||(u=!0,n(e))}),(function(e){i[o]=e,u||0!=--a||r(i)}))}))}else r([])}))}))},nn.sequence=function(e){return e.reduce((function(e,t){return e.chain((function(e){return t.map((function(t){return e.concat([t])}))}))}),nn.of([]))};var ln=("readTransaction",function(e,t){return new tn((function(n,r){var i,a=2;e.readTransaction((function(e){t.run(e).fork(n,(function(e){i=e,0==--a&&r(i)}))}),n,(function(){0==--a&&r(i)}))}))}),fn=(function(){function e(t){(0,l.default)(this,e),this._database=t}return(0,f.default)(e,[{key:"getByGuid",value:function(e){var t=(function(e){return cn((new Zt).from(F).where(en("guid")).select(),[e]).chain((function(t){if(0===t.rows.length)return nn.of(null);if(1!==t.rows.length)return nn.rejected(new Error("db consistency error"));var n=t.rows.item(0),r=n.tableName,i=n.syncId,a=n.readonlyAttrs;return cn((new Zt).from(rn(r)).where(en("guid")).select(),[e]).chain((function(e){return 0===e.rows.length?nn.rejected(new Error("entity not found")):1!==e.rows.length?nn.rejected(new Error("db consistency error")):nn.of(un((0,y.g)(r),i,a,e.rows.item(0)))}))}))})(e);return sn(ln(this._database,t))}},{key:"getByAttribute",value:function(e,t,n){var r=(function(e,t,n){var r=(0,y.g)(e);return cn((new Zt).from(rn(e)).where(en(rn(t))).join(F,"guid",["syncId","readonlyAttrs"]).select(),[n]).map((function(e){for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:"id";return`${o}_${n}_${t++}`};var n=Array(3).fill(null).map((function(){return Math.floor(20*Math.random())})).map((function(n){return"abcdefghijklmnopqrst"[n]})).join(""),t=0}),439,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.toUserScopedName=e.setUserScopedNamePrefix=e.getUserScopedNamePrefix=void 0;var o="";e.getUserScopedNamePrefix=function(){return o},e.setUserScopedNamePrefix=function(t){o=t},e.toUserScopedName=function(t){return o?`${o}$${t}`:t}}),440,[]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.D=void 0;var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),l=t(r(d[7]));function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}_e.D=(function(t){(0,f.default)(y,t);var l,p,v=(l=y,p=s(),function(){var t,e=(0,c.default)(l);if(p){var n=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function y(t){var e;return(0,n.default)(this,y),e=v.call(this,t),Object.setPrototypeOf((0,u.default)(e),y.prototype),e}return(0,e.default)(y)})((0,l.default)(Error))}),441,[2,22,21,13,17,19,16,33]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.a=function(n,t,u,c){var l=[],o=[],s=b(u);if("reverse"===t)l=c.getAllObjects().filter((function(t){return t.getReferences(s).includes(n)}));else{var h,p=c.getObject(n);p&&(l=(h=f(p,c,s)).cachedObjects,o=h.uncachedGuids)}return{cachedObjects:l,uncachedGuids:o}},e.b=function(n){return o.apply(this,arguments)},e.c=function(n,t){var l={guid:n,objectType:t.name,attributes:{}};return(0,u.d)(t.name).forEach((function(n){var o=!t.isPersistable&&(0,u.i)(n.name)?(function(n){switch(n){case u.S.Owner:case u.S.ChangedBy:return(0,c.g)().getUserId();case u.S.CreatedDate:case u.S.ChangedDate:return Date.now()}})(n.name):void 0===n.defaultValue?s[n.type]:"DateTime"===n.type&&"[%CurrentDateTime%]"===n.defaultValue?(new Date).getTime():n.defaultValue;l.attributes[n.name]={value:o,readonly:n.isAlwaysReadOnly}})),l},e.d=b,e.e=f,e.g=function(n){return l.apply(this,arguments)};var t=n(r(d[1])),u=r(d[2]),c=r(d[3]);function l(){return(l=(0,t.default)((function*(n){return new Promise((function(t,u){return mx.data.get({guids:n,callback:t,error:u})}))}))).apply(this,arguments)}function o(){return(o=(0,t.default)((function*(n){return new Promise((function(t,u){return mx.data.get({guid:n,callback:function(n){t(null!=n?n:void 0)},error:u})}))}))).apply(this,arguments)}var s={String:null,Integer:null,Long:null,Decimal:null,Enum:null,HashString:null,ObjectReference:null,ObjectReferenceSet:[],DateTime:null,Boolean:!1,AutoNumber:"0",Binary:null,EnumSet:null};function f(n,t,u){var c=n.getReferences(u);return{cachedObjects:c.map((function(n){return t.getObject(n)})).filter((function(n){return null!==n})),uncachedGuids:c.filter((function(n){return!t.has(n)}))}}function b(n){var t=n.split("/");return 1===t.length?n:t[0]}}),442,[2,12,37,38]); -__d((function(g,r,_i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.M=void 0,_e.a=function(t){return Object.keys(t).map((function(e){return[e,t[e]]}))},_e.b=function(t,e){return _(t,[],e)},_e.c=function(t){return _(t.length,[],t)},_e.d=T,_e.e=void 0,_e.g=function(t,e){return t.map((function(t){return[e(t),t]})).reduce((function(t,e){var n=(0,l.default)(e,2),i=n[0],u=n[1];return t[i]||(t[i]=[]),t[i].push(u),t}),{})},_e.l=S,_e.m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.keys(t).reduce((function(i,u){return i[u]=e.call(n,t[u],u),i}),{})},_e.o=function(t){return t.reduce((function(t,e){return t[e[0]]=e[1],t}),{})},_e.u=function(t){return Array.from(new Set(t))},_e.v=C;var e=t(r(d[1])),n=t(r(d[2])),i=t(r(d[3])),u=t(r(d[4])),s=t(r(d[5])),o=t(r(d[6])),l=t(r(d[7])),f=t(r(d[8])),c=r(d[9]),h=r(d[10]),v=r(d[11]),y=r(d[12]),b=r(d[13]);function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _(t,e,n){return function(){for(var i=arguments.length,u=new Array(i),s=0;s=t?n.apply(this,o.slice(0,t)):_(t,o,n)}}var k=new f.default("1e20"),w=new f.default(2).pow(31).times(-1),R=new f.default(2).pow(31).minus(1),A=new f.default(2).pow(63).times(-1),j=new f.default(2).pow(63).minus(1);function O(t,e,n){return t.gte(e)&&t.lte(n)}var D=_e.e={OK:0,NOT_INTEGER:1,RANGE_INTEGER:2,RANGE_LONG:3,RANGE_DECIMAL:4};function C(t,e){if(/^(Integer|Long|Decimal)$/.test(e)){if(""===t||null===t)return D.OK;if(t instanceof f.default||(t=new f.default(t)),("Integer"===e||"Long"===e)&&(function(t){return!t.mod(1).eq(0)})(t))return D.NOT_INTEGER;if("Integer"===e&&!O(t,w,R))return D.RANGE_INTEGER;if("Long"===e&&!O(t,A,j))return D.RANGE_LONG;if("Decimal"===e&&t.abs().gte(k))return D.RANGE_DECIMAL;if("Decimal"===e&&!t.mod(1e-8).eq(0))return D.RANGE_DECIMAL}return D.OK}function S(t){var e=new Date;return e.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),e.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),e}function T(t){var e=new Date;return e.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}var E=Symbol("snapshot"),V=_e.M=(function(){function t(e){var n,i,u;(0,s.default)(this,t),this._guid="0",this._unavailable=!1,this.id="mendix.lib.MxObject";var o=e,l=null==(n=o.json)?void 0:n.objectType;if(!o.meta||!l)throw new c.A(`new MxObject(): cannot create Mendix object. Check entity access for entity ${l}`);this.metaData=e.meta,this._isPartial=null!=(i=e.isPartial)&&i,this._jsonData=e.json,this._updateFromJsonData(),this.id+="("+l+":"+this._guid+")",this._partialTreeId=this._isPartial?null!=(u=e.partialTreeId)?u:(0,y.n)("partial"):void 0}return(0,o.default)(t,[{key:"jsonData",get:function(){return this._jsonData}},{key:"resetFromJSON",value:function(t){this._jsonData=t,this._updateFromJsonData()}},{key:"markAsUnavailable",value:function(){this._jsonData={guid:this._guid,attributes:{}},this._updateFromJsonData(),this._unavailable=!0}},{key:"_updateFromJsonData",value:function(){for(var t in this._guid=this._jsonData.guid,this._jsonData.attributes){var e=t;this._setAttributeValue(e,this._getAttributeValue(e))}}},{key:"getGuid",value:function(){return this._guid}},{key:"hasChanges",value:function(){return!(function(t){for(var e in t)return!1;return!0})(mx.data.getChanges(this._guid))}},{key:"snapshot",value:function(){var t;return null!=(t=this[E])?t:this[E]=new $(this)}},{key:"isUnavailable",value:function(){return this._unavailable}},{key:"isPartial",value:function(){return this._isPartial}},{key:"set",value:function(t,e){this._setContent(t,e)}},{key:"set2",value:function(t,e){this._setContent(t,(0,h.b)(e))}},{key:"isReadonlyAttr",value:function(t){if(this.has(t)){var e=this._jsonData.attributes[t];return!(!e||!("readonly"in e))&&e.readonly}var n=this.metaData.attributes[t];return void 0===n||n.isAlwaysReadOnly}},{key:"fetch",value:function(t,e,n){var i,u=this;i=t?t instanceof Array?t.slice():t.split("/"):[],this.isA(i[0])&&i.shift();var s=this;function o(t){n?n(t):(0,v.h)(t)}!(function t(){if(0===i.length)e(s);else if(1===i.length)e(s.get(i[0]));else{var n=i.shift(),l=i.shift();s._fetchReference(n,l,(function(n){void 0===n?e(null):Array.isArray(n)?0===i.length?e(n):o(new c.A(`${u.id}.fetch : ${s} reference set should be last reference in path`)):(s=n,t())}),o)}})()}},{key:"_fetchReference",value:function(t,e,n,i){var u=this,s=this.getReferences(t);0!==s.length?mx.data.get({guids:s,callback:function(i){if(u.isObjectReferenceSet(t))0===i.length||i[0].isA(e)?n(i):n(void 0);else{var s=i[0];null!=s&&s.isA(e)?n(s):n(void 0)}},error:i}):n(void 0)}},{key:"get",value:function(t){if("string"!=typeof t)throw new c.A(`parameter attr ${t} is not of type String`);return this.has(t)?this._convertToClientValue(t,this.getRawValue(t)):null}},{key:"get2",value:function(t){if("string"!=typeof t)throw new c.A(`parameter attr ${t} is not of type String`);return(0,h.c)(this.has(t)?this._convertToClientValue(t,this.getRawValue(t)):null,this.getAttributeType(t))}},{key:"getOriginalValue",value:function(t){if("string"!=typeof t)throw new c.A(`parameter attr ${t} is not of type String`);return this.has(t)?this._convertToClientValue(t,this._getRawOriginalValue(t)):null}},{key:"has",value:function(t){if("string"!=typeof t)throw new c.A("attribute parameter is not a string");return(0,c.v)(this._jsonData.attributes,t)}},{key:"getReferences",value:function(t){if("string"!=typeof t)throw new c.A(`parameter attr ${t} is not of type String.`);if(!this.has(t))return[];if(!this.isReference(t))throw new c.A("attribute "+t+" is not an ObjectReference(Set).");var e=this.getRawValue(t);return this.isObjectReference(t)?null==e?[]:[e]:null==e?[]:e.slice()}},{key:"getOriginalReferences",value:function(t){if("string"!=typeof t)throw new c.A(`parameter attr ${t} is not of type String.`);if(!this.has(t))return[];if(!this.isReference(t))throw new c.A("attribute "+t+" is not an ObjectReference(Set).");var e=this._getRawOriginalValue(t);return this.isObjectReference(t)?null==e?[]:[e]:null==e?[]:e.slice()}},{key:"getReference",value:function(t){return this.get(t)}},{key:"isEnum",value:function(t){var e;return"Enum"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isNumeric",value:function(t){var e;return(0,c.w)(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isPassword",value:function(t){var e;return"HashString"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isDate",value:function(t){var e;return"DateTime"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isLocalizedDate",value:function(t){var e;return Boolean(null==(e=this.metaData.attributes[t])?void 0:e.isDateLocalized)}},{key:"isBoolean",value:function(t){var e;return"Boolean"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isReference",value:function(t){var e;return(0,c.s)(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isObjectReference",value:function(t){var e;return"ObjectReference"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isObjectReferenceSet",value:function(t){var e;return"ObjectReferenceSet"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"hasChildren",value:function(t){if("string"!=typeof t)throw new c.A(`parameter attr (${t}) is not of type String.`);return!this._attributeChanged(t)&&this._hasChildren(t)}},{key:"getChildren",value:function(t){if("string"!=typeof t)throw new c.A(`parameter attr (${t}) is not of type String.`);if(!this.has(t))return[];if(!this.isReference(t))throw new c.A(`attribute ${t} is not an ObjectReference(Set).`);return this._attributeChanged(t)?[]:this._hasChildren(t)?this._getChildren(t):[]}},{key:"getChild",value:function(t){if("string"!=typeof t)throw new c.A(`parameter attr(${t}) is not of type String.`);if(this.has(t)){if(!this.isObjectReference(t))throw new c.A("attribute "+t+" is not an ObjectReference.");var e=this.getChildren(t);return 0===e.length?null:e[0]}}},{key:"removeReferences",value:function(t,e){if("string"!=typeof t)throw new c.A("parameter attr is not of type String.");if(!this.has(t))return!1;if(!this.isReference(t))throw new c.A("attempt to remove Reference from non-Reference attribute : "+t);var n=Array.isArray(e)?e:[e];if(this._attributeChanged(t)||!this._hasChildren(t))this.isObjectReference(t)?this._setContent(t,null):this._setContent(t,N(this.getReferences(t),n));else{if(!this.isObjectReference(t)){var i=this._jsonData.attributes[t],u=i&&"value"in i?i.value:i;for(var s of n)delete u[s];var o=N(this.getReferences(t),n);return this._makeChange(t,o)}this._setContent(t,null)}return!0}},{key:"addReference",value:function(t,e){if("string"!=typeof t)throw new c.A("parameter attr is not of type String.");if(!e)throw new c.A("parameter guid is not set.");if(!this.has(t))return!1;if(!this.isReference(t))throw new c.A("attempt to add Reference to non-Reference attribute : "+t);if(this.isObjectReference(t))this._setContent(t,e);else{var n=this.getReferences(t);n.join(";").match(e)||(n.push(e),this._setContent(t,n))}return!0}},{key:"addReferences",value:function(t,e){if("string"!=typeof t)throw new c.A("parameter attr is not of type String.");if(!Array.isArray(e))throw new c.A("parameter guids is not an Array.");if(!this.has(t))return!1;if(!this.isObjectReferenceSet(t))throw new c.A("attempt to add References to non-ReferenceSet attribute : "+t);var n=this.getReferences(t),i=e.filter((function(t){return!n.includes(t)}));return i.length>0&&this._setContent(t,n.concat(i)),!0}},{key:"getReferenceAttributes",value:function(){var t=this;return Object.values(this.metaData.attributes).filter((function(e){return(0,c.s)(e.type)&&t.has(e.name)})).map((function(t){return t.name}))}},{key:"getAttributes",value:function(){var t=this;return Object.values(this.metaData.attributes).filter((function(e){return t.has(e.name)})).map((function(t){return t.name}))}},{key:"getPrimitives",value:function(){var t=this;return Object.values(this.metaData.attributes).filter((function(e){return!(0,c.s)(e.type)&&t.has(e.name)})).map((function(t){return t.name}))}},{key:"getAttributeType",value:function(t){return!!this.has(t)&&this.metaData.attributes[t].type}},{key:"getSelectorEntity",value:function(t){var e,n;return this.has(t)?null!=(e=null==(n=this.metaData.attributes[t])?void 0:n.referenceEntity)&&e:null}},{key:"getEntity",value:function(){return this.metaData.name}},{key:"isPersistable",value:function(){return this.metaData.isPersistable}},{key:"isRemoteFileEntity",value:function(){return!!this.metaData.isRemoteFileEntity}},{key:"isNew",value:function(){return mx.data.isNew(this._guid)}},{key:"isA",value:function(t){return(0,b.h)(this.metaData.name,t)}},{key:"hasSuperEntities",value:function(){return this.metaData.generalizations.length>0}},{key:"getSuperEntities",value:function(){return this.metaData.generalizations}},{key:"hasSubEntities",value:function(){return this.metaData.specializations.length>0}},{key:"getSubEntities",value:function(){return this.metaData.specializations}},{key:"inheritsFrom",value:function(t){return this.metaData.generalizations.includes(t)}},{key:"toJSON",value:function(){return this._jsonData}},{key:"toString",value:function(){return this._partialTreeId?`${this.getGuid()}_${this._partialTreeId}`:this.getGuid()}},{key:"getRawValue",value:function(t){var e=mx.data.getChanges(this._guid);return Object.prototype.hasOwnProperty.call(e,t)?e[t].value:this._getRawOriginalValue(t)}},{key:"_getRawOriginalValue",value:function(t){return this._hasChildren(t)?this._getChildValue(t):this._getAttributeValue(t)}},{key:"_attributeChanged",value:function(t){var e=mx.data.getChanges(this._guid);return Object.prototype.hasOwnProperty.call(e,t)}},{key:"_getChildren",value:function(e){var n=this;return(this.isObjectReference(e)?[this._getAttributeValue(e)]:Object.values(this._getAttributeValue(e))).map((function(e){return t.fromJson(e,!0,n._partialTreeId)}))}},{key:"_getChildValue",value:function(t){var e=this._getChildren(t).map((function(t){return t.getGuid()}));return this.isObjectReference(t)?0===e.length?null:e[0]:e}},{key:"_convertToRuntimeValue",value:function(t,e){var n=this.getAttributeType(t),i=(0,h.d)(e,n),u=(0,h.e)(i,"String"===n&&""===e);if(this.isNumeric(t)&&C(u,n)!==D.OK)throw new Error(`Cannot set invalid value '${e}' to MxObject attribute '${t}'`);return this.isDate(t)&&!this.isLocalizedDate(t)&&"number"==typeof u?T(new Date(u)).getTime():this.isPassword(t)?e.replace(/[\s\t]+$/,"").replace(/^[\s\t]+/,""):u}},{key:"_convertToClientValue",value:function(t,e){var n;if("string"!=typeof t)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type String.");var i=(0,h.r)(e,null==(n=this.metaData.attributes[t])?void 0:n.type);return this.isDate(t)&&""!==i?this.isLocalizedDate(t)?i:S(new Date(i)).getTime():i}},{key:"_setContent",value:function(t,e){var n,i=this;if("string"!=typeof t)throw new c.A(`parameter attr (${t}) is not of type String.`);if((0,c.v)(this.metaData.attributes,t)){var u=this._convertToRuntimeValue(t,e),s=this.getRawValue(t);u!==s&&(this._makeChange(t,u),(null==(n=this.metaData.attributes[t])?void 0:n.isBidiReference)&&(x(this.isObjectReference(t)?[s]:N(s,u)).filter((function(e){return!e.isReadonlyAttr(t)&&e.getReferences(t).includes(i._guid)})).forEach((function(e){return e.removeReferences(t,[i._guid])})),x(this.isObjectReference(t)?[u]:N(u,s)).filter((function(e){return!e.isReadonlyAttr(t)&&!e.getReferences(t).includes(i._guid)})).forEach((function(e){return e.addReference(t,i._guid)}))))}}},{key:"_hasChildren",value:function(t){if(!this.isReference(t))return!1;var e=this._getAttributeValue(t);return null!==e&&"object"==typeof e&&!Array.isArray(e)}},{key:"_getAttributeValue",value:function(t){var e,n=null!=(e=this._jsonData.attributes[t])?e:null;return n&&"value"in n?n.value:n}},{key:"_setAttributeValue",value:function(t,e){var n=this._jsonData.attributes[t];void 0===e&&(e=null),n&&"value"in n?n.value=e:this._jsonData.attributes[t]=e}},{key:"_makeChange",value:function(t,e){if(this.isUnavailable())throw new c.A(`Cannot modify attribute ${t} of an unavailable object.`);mx.data.makeChange(this._guid,t,e),(0,v.p)({guid:this._guid,attr:t}).catch(v.h)}}],[{key:"fromJson",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;return new t({json:e,meta:(0,b.g)(e.objectType),isPartial:n,partialTreeId:i})}}]),t})();function x(t){return t.map((function(t){return mx.data.getCachedObject(t)})).filter((function(t){return null!=t}))}function N(t,e){return t.filter((function(t){return!e.includes(t)}))}var $=(function(t){(0,n.default)(v,t);var l,f,h=(l=v,f=p(),function(){var t,e=(0,u.default)(l);if(f){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,i.default)(this,t)});function v(t){var e;return(0,s.default)(this,v),(e=h.call(this,{meta:t.metaData,json:{guid:t.getGuid(),objectType:t.getEntity()}}))._mxObject=t,e.isSnapshot=!0,e}return(0,o.default)(v,[{key:"resetFromJSON",value:function(t){(0,e.default)((0,u.default)(v.prototype),"resetFromJSON",this).call(this,t),this._mxObject.resetFromJSON(t)}},{key:"markAsUnavailable",value:function(){(0,e.default)((0,u.default)(v.prototype),"markAsUnavailable",this).call(this),this._mxObject.markAsUnavailable()}},{key:"hasChanges",value:function(){return!1}},{key:"snapshot",value:function(){return this}},{key:"isReadonlyAttr",value:function(t){return!0}},{key:"isPartial",value:function(){return this._mxObject.isPartial()}},{key:"toString",value:function(){return this._mxObject.toString()}},{key:"_fetchReference",value:function(t,n,i,s){(0,e.default)((0,u.default)(v.prototype),"_fetchReference",this).call(this,t,n,(function(t){t instanceof V?i(t.snapshot()):Array.isArray(t)?i(t.map((function(t){return t.snapshot()}))):i(t)}),s)}},{key:"has",value:function(t){return this._mxObject.has(t)}},{key:"toJSON",value:function(){return this._mxObject.toJSON()}},{key:"_attributeChanged",value:function(t){return!1}},{key:"getRawValue",value:function(t){return this._mxObject._getRawOriginalValue(t)}},{key:"_getAttributeValue",value:function(t){return this._mxObject._getAttributeValue(t)}},{key:"_makeChange",value:function(t){throw new c.A(`Cannot modify attribute ${t} of a read-only object.`)}},{key:"_getChildren",value:function(t){return this._mxObject._getChildren(t).map((function(t){return t.snapshot()}))}},{key:"convertToEditable",value:function(){return mx.data.removeChanges(this.getGuid()),this._mxObject}}]),v})(V)}),443,[2,14,17,19,16,21,22,23,430,32,429,27,439,37]); -__d((function(g,_r,_i,_a,m,_e,_d){var t=_r(_d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.A=function(t){return mt.apply(this,arguments)},_e.B=function(t,n){return w.apply(this,arguments)},_e.D=_e.C=void 0,_e.E=function(t){return it.apply(this,arguments)},_e.F=function(t,n){return x.apply(this,arguments)},_e.V=_e.U=_e.S=void 0,_e._=function(t,n,r){return ft.apply(this,arguments)},_e.a=void 0,_e.b=function(){return Ot.apply(this,arguments)},_e.c=function(t){return yt.apply(this,arguments)},_e.d=function(t){return dt.apply(this,arguments)},_e.e=function(t,n){return tt.apply(this,arguments)},_e.f=function(t,n,r,e,a,i){return nt.apply(this,arguments)},_e.g=function(t,n){return J.apply(this,arguments)},_e.h=function(t){return rt.apply(this,arguments)},_e.i=function(t,n,r,e,a){return at.apply(this,arguments)},_e.j=function(t,n,r){return ut.apply(this,arguments)},_e.k=function(){return ht.apply(this,arguments)},_e.l=function(t,n,r){return pt.apply(this,arguments)},_e.m=function(t,n,r,e){return ct.apply(this,arguments)},_e.n=function(){return O.apply(this,arguments)},_e.o=function(t,n,r){return st.apply(this,arguments)},_e.p=function(t,n,r,e,a){return et.apply(this,arguments)},_e.q=function(t,n,r,e,a,i){return lt.apply(this,arguments)},_e.r=function(t){return T.push(t),function(){var n=T.indexOf(t);-1!==n&&T.splice(n,1)}},_e.s=function(t,n){return wt.apply(this,arguments)},_e.t=function(t,n,r,e){return gt.apply(this,arguments)},_e.u=function(t,n,r,e,a,i){return bt.apply(this,arguments)},_e.v=function(t,n){return ot.apply(this,arguments)},_e.w=function(){return k.apply(this,arguments)},_e.x=function(t){return jt.apply(this,arguments)},_e.y=kt,_e.z=function(t,n,r,e,a,i){return vt.apply(this,arguments)};var n=t(_r(_d[1])),r=t(_r(_d[2])),e=t(_r(_d[3])),a=t(_r(_d[4])),i=t(_r(_d[5])),u=t(_r(_d[6])),o=t(_r(_d[7])),c=t(_r(_d[8])),s=t(_r(_d[9])),f=t(_r(_d[10])),l=t(_r(_d[11])),p=_r(_d[12]),d=_r(_d[13]),y=_r(_d[14]);function h(t){var n=v();return function(){var r,e=(0,l.default)(t);if(n){var a=(0,l.default)(this).constructor;r=Reflect.construct(e,arguments,a)}else r=e.apply(this,arguments);return(0,f.default)(this,r)}}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var b=_e.D=(function(t){(0,s.default)(r,t);var n=h(r);function r(t){var e;return(0,o.default)(this,r),e=n.call(this,t),Object.setPrototypeOf((0,c.default)(e),r.prototype),e}return(0,u.default)(r)})(y.D),j=_e.a=(function(){function t(){(0,o.default)(this,t),this.startedAt=0,this.reset()}return(0,u.default)(t,[{key:"measure",value:function(){var t=performance.now()-this.startedAt;return{ms:t,toString:function(){return t.toFixed(1)}}}},{key:"reset",value:function(){this.startedAt=performance.now()}}]),t})();function w(){return(w=(0,i.default)((function*(t,n){return t.then((function(t){return n(),t}),(function(t){return n(),Promise.reject(t)}))}))).apply(this,arguments)}function O(){return(O=(0,i.default)((function*(){return new Promise((function(){}))}))).apply(this,arguments)}function k(){return k=(0,i.default)((function*(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(n){setTimeout((function(){n()}),t)}))})),k.apply(this,arguments)}function x(){return x=(0,i.default)((function*(t,n){for(var r=arguments.length,e=new Array(r>2?r-2:0),a=2;a0})).join("&")},t.parseUrl=function(t,n){n=Object.assign({decode:!0},n);var r=u(t,"#"),a=(0,e.default)(r,2),i=a[0],o=a[1];return Object.assign({url:i.split("?")[0]||"",query:v(y(t),n)},n&&n.parseFragmentIdentifier&&o?{fragmentIdentifier:l(o,n)}:{})},t.stringifyUrl=function(r,e){e=Object.assign((0,n.default)({encode:!0,strict:!0},c,!0),e);var a=d(r.url).split("?")[0]||"",i=t.extract(r.url),u=t.parse(i,{sort:!1}),o=Object.assign(u,r.query),s=t.stringify(o,e);s&&(s=`?${s}`);var l=(function(t){var n="",r=t.indexOf("#");return-1!==r&&(n=t.slice(r)),n})(r.url);return r.fragmentIdentifier&&(l=`#${e[c]?f(r.fragmentIdentifier,e):r.fragmentIdentifier}`),`${a}${s}${l}`},t.pick=function(r,e,a){a=Object.assign((0,n.default)({parseFragmentIdentifier:!0},c,!1),a);var i=t.parseUrl(r,a),u=i.url,s=i.query,f=i.fragmentIdentifier;return t.stringifyUrl({url:u,query:o(s,e),fragmentIdentifier:f},a)},t.exclude=function(n,r,e){var a=Array.isArray(r)?function(t){return!r.includes(t)}:function(t,n){return!r(t,n)};return t.pick(n,a,e)}})(F);var T=[];function U(t,n){return P.apply(this,arguments)}function P(){return P=(0,i.default)((function*(t,n){return(function(){var t=(0,i.default)((function*(t,e){return t===T.length?n(e):(0,d.e)(T[t])(e,(function(n){return r(t+1,n)}))}));function r(n,r){return t.apply(this,arguments)}return r})()(0,t)})),P.apply(this,arguments)}var B=(function(t){(0,s.default)(r,t);var n=h(r);function r(){return(0,o.default)(this,r),n.apply(this,arguments)}return(0,u.default)(r)})((0,a.default)(Error)),G=_e.S=(function(t){(0,s.default)(r,t);var n=h(r);function r(t,e){var a;return(0,o.default)(this,r),(a=n.call(this,null!=e?e:"Internal server error")).status=t,Object.setPrototypeOf((0,c.default)(a),r.prototype),a}return(0,u.default)(r)})((0,a.default)(Error)),L=_e.U=(function(t){(0,s.default)(r,t);var n=h(r);function r(t){var e;return(0,o.default)(this,r),e=n.call(this,t),Object.setPrototypeOf((0,c.default)(e),r.prototype),e}return(0,u.default)(r)})(G),q=_e.V=(function(t){(0,s.default)(r,t);var n=h(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(this,r),(t=n.call(this)).original=e,Object.setPrototypeOf((0,c.default)(t),r.prototype),t}return(0,u.default)(r)})((0,a.default)(Error)),D=p.L.get().getLogger(p.a.Network);function J(){return(J=(0,i.default)((function*(t,n){D.trace(`Starting GET ${t}`);var r=new j,e={url:t,init:{method:"get",headers:new Headers,cache:"force-cache",credentials:"include"}},a=yield U(e,M);if(D.trace(`Finished GET ${t} in ${r.measure()} milliseconds. Response code ${a.status}.`),!a.ok)throw new G(a.status,a.statusText);switch(n){case"text":return a.text();case"json":return W(a);case"blob":return a.blob()}}))).apply(this,arguments)}function M(t){return V.apply(this,arguments)}function V(){return(V=(0,i.default)((function*(t){var n;t.init.body=(0,d.i)(t.body)?JSON.stringify(t.body):t.body;try{n=yield window.fetch(t.url,t.init)}catch(t){throw new S(t instanceof Error?t.message:String(t))}switch(n.status){case 200:return n;case 400:case 401:case 402:case 403:case 460:throw new L(n.status);case 502:case 504:throw new G(n.status,n.statusText);case 551:throw new q(yield n.json());case 560:var r=yield z(n);throw r?new b(r):new G(n.status);case 12029:throw new S("No connection");default:throw new G(n.status,yield z(n))}}))).apply(this,arguments)}function z(t){return H.apply(this,arguments)}function H(){return(H=(0,i.default)((function*(t){var n=yield W(t);return n&&"description"in n?n.description:void 0}))).apply(this,arguments)}function W(t){return K.apply(this,arguments)}function K(){return(K=(0,i.default)((function*(t){var n=yield t.text();try{return JSON.parse(n)}catch(t){throw new B(`Expected response body to be JSON. Instead received: "${n}"`)}}))).apply(this,arguments)}var Q,X,Y,Z=(Q=(function(){var t=(0,i.default)((function*(t,n){var r={url:t,body:n,init:{method:"post",headers:new Headers(Object.assign({Accept:"application/json"},(0,d.i)(n)?{"Content-Type":"application/json"}:{})),redirect:"error",credentials:"include"}};return W(yield U(r,M))}));return function(n,r){return t.apply(this,arguments)}})(),X=p.L.get().getLogger(p.a.Network),(function(){var t=(0,i.default)((function*(t,n){var r,e="object"==typeof(r=n)&&null!==r&&"action"in r&&"string"==typeof r.action?n.action:void 0;void 0!==e?X.trace(`Starting runtime action: ${e}`):X.trace(`Starting POST ${t}`);var a=new j,i=yield Q(t,n);return void 0!==e?X.trace(`Finished runtime action "${e}" in ${a.measure()} milliseconds.`):X.trace(`Finished POST ${t} in ${a.measure()} milliseconds.`),i}));return function(n,r){return t.apply(this,arguments)}})());function tt(){return(tt=(0,i.default)((function*(t,n){return Z(kt(),{action:"retrieve_by_ids",params:{ids:t,schema:n}})}))).apply(this,arguments)}function nt(){return(nt=(0,i.default)((function*(t,n,r,e,a,i){return Z(kt(),{action:"retrieve_by_path",params:{id:t,path:n,entity:r,direction:e},changes:a,objects:i})}))).apply(this,arguments)}function rt(){return rt=(0,i.default)((function*(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Z(kt(),{action:"retrieve_by_xpath",params:{xpath:t,schema:n,count:r}})})),rt.apply(this,arguments)}function et(){return(et=(0,i.default)((function*(t,n,r,e,a){return Z(kt(),{action:"runtimeOperation",operationId:t,params:n,options:r,changes:e,objects:a})}))).apply(this,arguments)}function at(){return(at=(0,i.default)((function*(t,n,r,e,a){return Z(kt(),{action:"executeaction",params:Object.assign({},t,{asyncid:a}),changes:r,objects:e,context:n.getGuids()})}))).apply(this,arguments)}function it(){return(it=(0,i.default)((function*(t){return Z(kt(),{action:"poll_background_job",params:{asyncid:t}})}))).apply(this,arguments)}function ut(){return(ut=(0,i.default)((function*(t,n,r){return Z(kt(),{action:"instantiate",params:{objecttype:t},changes:n,objects:r})}))).apply(this,arguments)}function ot(){return(ot=(0,i.default)((function*(t,n){return Z(kt(),{action:"validate",params:{},changes:t,objects:n})}))).apply(this,arguments)}function ct(){return(ct=(0,i.default)((function*(t,n,r,e){return Z(kt(),{action:"commit",params:{guids:t},changes:r,objects:e,context:n.getGuids()})}))).apply(this,arguments)}function st(){return(st=(0,i.default)((function*(t,n,r){return Z(kt(),{action:"rollback",params:{guids:t},changes:n,objects:r})}))).apply(this,arguments)}function ft(){return(ft=(0,i.default)((function*(t,n,r){return Z(kt(),{action:"delete",params:{guids:t},changes:n,objects:r})}))).apply(this,arguments)}function lt(){return(lt=(0,i.default)((function*(t,n,r,e,a,i){return Z(kt(),{action:"runtimeOperation",operationId:t,params:n,asyncid:i,validationGuids:a,changes:r,objects:e})}))).apply(this,arguments)}function pt(){return(pt=(0,i.default)((function*(t,n,r){return Z(kt(),{action:"login",params:{username:t,password:n,shouldgeneratetoken:r}})}))).apply(this,arguments)}function dt(){return(dt=(0,i.default)((function*(t){return Z(kt(),{action:"get_session_data",params:Object.assign({},t,{version:2})})}))).apply(this,arguments)}function yt(){return(yt=(0,i.default)((function*(t){return Z(kt(),{action:"logout",params:t?{authtoken:t}:{}})}))).apply(this,arguments)}function ht(){return(ht=(0,i.default)((function*(){return Z(kt(),{action:"keepalive",params:{}})}))).apply(this,arguments)}function gt(){return(gt=(0,i.default)((function*(t,n,r,e){yield Z(kt(),{action:"export",params:Object.assign({},t,{asyncid:e}),changes:n,objects:r})}))).apply(this,arguments)}function vt(){return(vt=(0,i.default)((function*(t,n,r,e,a,i){return Z(kt(),{action:"synchronize_objects",changes:t,fileGuidMapping:n,returnObjects:r,deletes:e,extraGuidsToRetrieve:null!=a?a:[],incompatibleChanges:null!=i?i:[]})}))).apply(this,arguments)}function mt(){return(mt=(0,i.default)((function*(t){return Z(kt(),{action:"create_guids",params:{entities:t}})}))).apply(this,arguments)}function bt(){return(bt=(0,i.default)((function*(t,n,r,e,a,i){var u=mx.remoteUrl+"file?"+F.stringify(Object.assign({},r,{guid:t})),o=new FormData;return o.append("data",JSON.stringify({changes:a,objects:i})),n?o.append("blob",e,n):o.append("blob",e),Z(u,o)}))).apply(this,arguments)}function jt(){return jt=(0,i.default)((function*(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt();return Z(n,{action:"get_ota_info",params:{platform:t,nativeDependencies:arguments.length>2?arguments[2]:void 0,nativeBinaryVersion:arguments.length>3?arguments[3]:void 0}})})),jt.apply(this,arguments)}function wt(){return wt=(0,i.default)((function*(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kt();return Z(r,{action:"log_batched_client_logs",params:{id:t,logs:n}})})),wt.apply(this,arguments)}function Ot(){return Ot=(0,i.default)((function*(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kt();return Z(t,{action:"get_client_log_levels"})})),Ot.apply(this,arguments)}function kt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:mx.remoteUrl)+"xas/"}!(function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"})(Y||(Y={}))}),444,[2,3,6,23,33,12,22,21,13,17,19,16,437,32,441]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.a=o,e.s=function(n){u=n},e.t=function(t,f){for(var c=arguments.length,l=new Array(c>2?c-2:0),v=2;v-1?o:0};var n=r(d[0]),t=0,u={};function o(n){return n[t]}}),436,[36]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.a=e.L=void 0,e.r=function(){f.get().addHandler((n={},["debug","info","log","warn","error"].forEach((function(t){n[t]=console[t];var o=(function(n){switch(n){case"warn":return"warning";case"log":return"debug";default:return n}})(t);console[t]=function(){for(var n,t=arguments.length,l=new Array(t),c=0;c2?u-2:0),h=2;h2?l-2:0),s=2;s2?c-2:0),u=2;u0&&void 0!==arguments[0]?arguments[0]:u.Client;if(!this.loggers.has(n)){if(!Object.prototype.hasOwnProperty.call(u,n)){var l=this.getLogger();return l.warn(`Invalid log node requested: "${n}". Returning a logger with default node instead.`),l}var c=function(l){return Object.assign.apply(Object,[{}].concat((0,o.default)(s.map((function(o){return(0,t.default)({},o,(function(){for(var t=arguments.length,c=new Array(t),s=0;s1?o-1:0),s=1;s2?o-2:0),c=2;c":case">=":case"<":case"<=":var o=i.some((function(e){return"int"===e.type}))?i.map(Oe):i,s=(0,f.default)(o,2),l=s[0],p=s[1],v="="===t.name?"is":"!="===t.name?"is not":t.name;return l=(0,h.e)(l),p=(0,h.e)(p),{type:"int",expr:`(${l.expr} ${v} ${p.expr})`,params:we(l,p)};case"contains":case"starts-with":case"ends-with":var y=(0,h.e)(i[0]),m=(0,h.e)(i[1]);if("null"===m.type)return me;if("null"===y.type)return be;var b=`replace(replace(replace(${m.expr}, '${k="~"}', '${k+k}'), '${U}', '${k+U}'), '${F}', '${k+F}')`,j="starts-with"===t.name?`${b} || '${U}'`:"ends-with"===t.name?`'${U}' || ${b}`:`'${U}' || ${b} || '${U}'`;return{type:"int",expr:`(${y.expr} like ${j} escape '~')`,params:y.params.concat(m.params)};case"length":case"string-length":var O=(0,h.e)(i[0]);return"null"===O.type?be:{type:"int",expr:`length(${O.expr})`,params:O.params};case"in":var w=(0,h.e)(i[0]),E=(0,h.e)(i[1]);if(!Array.isArray(E.params[0]))throw new h.A("'in' function expect array of values");return{type:"string",expr:`${w.expr} in (${new Array(E.params[0].length).fill("?").join(",")})`,params:E.params[0]};default:throw new h.A(`Operator ${t.name} is not yet supported`)}case"association":var T=t.associationPath.split("/")[0];return{type:"string",expr:`${n}.[${ce(T)}]`,params:[]}}var k},_e2.B=function(e){return e.replace("$",".")},_e2.D=_e2.C=void 0,_e2.E=function(e,t){if(null===e)return null;switch(t){case"DateTime":return e;case"Boolean":return Boolean(e);case"Decimal":case"Integer":case"Long":return r=(n=e).startsWith("-")?"-":"",i=n.replace(/^-?0*/,""),r+(""!==i?i:"0");case"ObjectReferenceSet":return""===e?null:e.split(",");default:return String(e)}var n,r,i},_e2.F=function(e,t){return[`UPDATE "${B}" SET "${N}" = ? WHERE ${L} = ?`,[t,e]]},_e2.H=_e2.G=void 0,_e2.I=function(e){if(0===e.length)throw new h.A("No guids specified");return ye(e).map((function(e){var t=new Array(e.length).fill("?").join(", ");return[`UPDATE "${(0,y.toUserScopedName)("_guidToTable")}" SET "syncId" = NULL WHERE "guid" IN (${t})`,e]}))},_e2.J=function(e){return ye(e).map((function(e){var t=new Array(e.length).fill("?").join(", ");return[`DELETE FROM "${(0,y.toUserScopedName)("_guidToTable")}" WHERE "tableName" IN (${t})`,e]}))},_e2.K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set,t=e.size>0?` AND "tableName" NOT IN (${Array.from(e).map((function(e){return`'${e}'`})).join(", ")})`:"";return[`SELECT "guid", "tableName" FROM "${(0,y.toUserScopedName)("_guidToTable")}" WHERE "syncId" IS NOT NULL${t}`,[]]},_e2.L=function(e){if(0===e.length)throw new h.A("No guids specified");return ye(e).map((function(e){var t=new Array(e.length).fill("?").join(", ");return[`SELECT "guid", "tableName" FROM "${(0,y.toUserScopedName)("_guidToTable")}" WHERE "guid" IN (${t})`,e]}))},_e2.N=_e2.M=void 0,_e2.O=function(e){return ye(e).map((function(e){var t=new Array(e.length).fill("?").join(", ");return[`SELECT "guid", "syncId" FROM "${(0,y.toUserScopedName)("_guidToTable")}" WHERE "guid" IN (${t})`,e]}))},_e2.P=J,_e2.Q=W,_e2.T=_e2.S=_e2.R=void 0,_e2.U=Te,_e2.V=Ee,_e2.W=function(e,t,n,r,i,a,u){return Ot.apply(this,arguments)},_e2._=void 0,_e2.a=function(e,t){var n=(0,h.c)((function(e){return e.getGuid()}))(e);return Y((function(e){var t=[],n=K(e);return e.forEach((function(e){n.get(e.getEntity()).forEach((function(n){var r,i,a=e.metaData.deleteBehavior;null!=a&&null!=(r=a[n])&&r.sendChildren&&Q(e,n).forEach((function(n){return t.push({from:e.getGuid(),to:n})})),(e.has(n)||(null==a||null==(i=a[n])?void 0:i.sendParents))&&Q(e,n).forEach((function(n){return t.push({from:n,to:e.getGuid()})}))}))})),t})(e)).reachableLabels(t).filter((function(e){return n[e]}))},_e2.b=function(e,t,n){var r=(0,h.c)((function(e){return e.getGuid()}))(t);return Y((function(e,t){var n=[],r=K(t);return t.forEach((function(t){r.get(t.getEntity()).forEach((function(r){t.has(r)&&Object.prototype.hasOwnProperty.call(e.getChanges(t.getGuid()),r)&&Q(t,r).forEach((function(i){var a;e.isNew(i)&&n.push({from:t.getGuid(),to:i}),(null==(a=e.getObject(i))?void 0:a.has(r))&&n.push({to:t.getGuid(),from:i})}))}))})),n})(e,t)).reachableLabels(n).filter((function(e){return r[e]}))},_e2.c=se,_e2.d=function(){var e={};return ee.forEach((function(t,n){return e[n]=t.toString()})),e},_e2.e=function(e){Object.entries(e).forEach((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];ee.set(n,new O.default(r))}))},_e2.f=V,_e2.g=H,_e2.h=function(e,t,n){return Fe.apply(this,arguments)},_e2.i=function(e,t){return(function(e,t){e=e.filter((function(e){return!e.isPersistable()||e.hasChanges()||e.isNew()||t.has(e.getGuid())}));var n=(0,h.c)((function(e){return e.getGuid()}))(e);return Y(X(e).filter((function(e){var t=e.from,n=e.to;return r(t)&&r(n)})));function r(e){return t.has(e)||e in n}})(e,t).reachableLabels(Array.from(t))},_e2.j=void 0,_e2.k=Ie,_e2.l=Z,_e2.m=te,_e2.n=function(e,t){var n=m(e),r=m(t),i=[];for(var a of n){var u=(0,f.default)(a,2),o=u[0],c=u[1];if(r.has(o)){var s=r.get(o);for(var l of c){var p=(0,f.default)(l,2),h=p[0],v=p[1],y=s.get(h);if(y&&y!==v){i.push(o);break}}}else i.push(o)}return new Set(i);function m(e){return new Map(e.map((function(e){return[e.objectType,new Map(Object.entries(e.attributes).map((function(e){var t=(0,f.default)(e,2);return[t[0],t[1].type]})))]})))}},_e2.q=_e2.p=_e2.o=void 0,_e2.r=function(e,t){switch(t){case"AutoNumber":case"Binary":case"HashString":case"Enum":case"ObjectReference":case"ObjectReferenceSet":case"String":return null!=e?String(e):null;case"DateTime":return null!=e?Number(e):null;case"Boolean":return Number(e);case"Decimal":case"Integer":case"Long":return null==(n=e)?null:le(new O.Big(n));default:throw new h.A}var n},_e2.s=void 0,_e2.t=ce,_e2.x=_e2.w=_e2.v=_e2.u=void 0,_e2.y=ye,_e2.z=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),i=e(_r(d[4])),a=e(_r(d[5])),u=e(_r(d[6])),o=e(_r(d[7])),c=e(_r(d[8])),s=e(_r(d[9])),l=e(_r(d[10])),f=e(_r(d[11])),p=e(_r(d[12])),h=_r(d[13]),v=_r(d[14]),y=_r(d[15]),m=_r(d[16]),b=_r(d[17]),j=_r(d[18]),O=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=P(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r})(_r(d[19])),w=_r(d[20]),E=_r(d[21]),T=_r(d[22]),k=_r(d[23]);_r(d[24]),_r(d[25]);var $=_r(d[26]),S=_r(d[27]),M=_r(d[28]),C=_r(d[29]),x=_r(d[30]),A=_r(d[31]),G=_r(d[32]);function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function D(e,t,n){return t=(0,a.default)(t),(0,r.default)(e,_()?Reflect.construct(t,n||[],(0,a.default)(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}var R=20,B=(_e2.M="_guidToTable",_e2.w="_tombstoneTable",_e2.G="guid",_e2.T="tableName",_e2.R="readonlyAttrs",_e2.u="syncId",_e2.z=["guid","tableName","readonlyAttrs","syncId"],_e2.s="_db_meta"),L=_e2.v="name",N=_e2.x="value",I=(_e2.D="version",_e2.p="cnt"),U=(_e2.q="offline_metadata","%"),F="_";_e2.C="changedDate",_e2.H="HasContents";function W(e){return[`SELECT ${N} FROM "${B}" WHERE "${L}" = ?`,[e]]}function J(e){return[`UPDATE "${B}" SET "${N}" = "${N}" + ${e} WHERE ${L} = ?`,[I]]}var z=[function(e){var t,n=`ALTER TABLE "_guidToTable" ADD ${(t={name:"syncId",type:"text"}).name} ${t.type} ${"text"===t.type?"COLLATE NOCASE":""}`,r=[];return e.inTransaction((function(){var e=(0,p.default)((function*(e){yield e.exec(n,r);var t,i=(yield e.selectObjects('SELECT "guid" FROM "_guidToTable" WHERE "dirty" = ?',[1])).map((function(e){return e.guid})),a=(0,v.g)(),u=yield(t=(0,p.default)((function*(e,t,n){var r=J(n),i=(0,f.default)(r,2),a=i[0],u=i[1],o=W(I),c=(0,f.default)(o,2),s=c[0],l=c[1];yield e.exec(a,u);var p=yield e.selectObjects(s,l),v=parseInt((0,h.e)(p[0])[N],10);return Array.from({length:n},(function(e,n){var r=Math.round(1e4*Math.random());return`${t}:${v-n}:${r}`}))})),function(e,n,r){return t.apply(this,arguments)})(e,a.getSessionObjectId(),i.length);yield Promise.all(i.map((function(){var t=(0,p.default)((function*(t,n){return e.exec("UPDATE _guidToTable SET syncId = ? WHERE guid = ?",[(0,h.e)(u[n]),t])}));return function(e,n){return t.apply(this,arguments)}})()))}));return function(t){return e.apply(this,arguments)}})())},function(e){return e.inTransaction((function(){var t=(0,p.default)((function*(t){var n=(yield e.selectObjects("SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' AND name != 'android_metadata' AND name != ?",[B])).map((function(e){return e.name.toString()})).filter((function(e){return!e.startsWith((0,y.getUserScopedNamePrefix)())}));yield Promise.all(n.map((function(e){return[t.exec(`DROP TABLE IF EXISTS ${(0,y.toUserScopedName)(e)}`,[]).then((function(){return t.exec(`ALTER TABLE ${e} RENAME TO ${(0,y.toUserScopedName)(e)}`,[])}))]})))}));return function(e){return t.apply(this,arguments)}})())}].map((function(e,t){return{version:t+1,apply:e}}));function H(e,t){var n={};t.filter((function(t){return e.hasChanges(t)})).forEach((function(t){n[t]=e.getChanges(t)}));var r=t.filter((function(t){return e.has(t)})).map((function(t){return e.getObject(t)})).filter((function(t){return!t.isPersistable()||e.isNew(t.getGuid())})).map((function(e){return e.jsonData}));return[n,r]}var q=(function(){return(0,l.default)((function e(){(0,s.default)(this,e),this.labels=[],this.labelMap={},this.graph=[]}),[{key:"addEdge",value:function(e,t){var n=this.getOrCreateLabelIndex(e),r=this.getOrCreateLabelIndex(t),i=this.graph[n];i.includes(r)||i.push(r)}},{key:"neighborsOf",value:function(e){var t=this,n=this.getOrCreateLabelIndex(e);return this.graph[n].map((function(e){return t.indexToLabel(e)}))}},{key:"reachableLabels",value:function(e){var t=this,n=e.map((function(e){return t.getOrCreateLabelIndex(e)}));return(function(e,t){var n=new Array(e.length);!(function t(r){for(var i of r){if(i<0||i>=n.length)throw new Error(`graph: index ${i} out of bounds in graph of size ${e.length}`);n[i]||(n[i]=!0,t(e[i]))}})(t);for(var r=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:1,n=Math.floor(ve/t),r=[],i=0;i2&&void 0!==arguments[2])||arguments[2],a=new Set([e].concat((0,c.default)(null!=(n=null==(r=(0,E.g)(e))?void 0:r.generalizations)?n:[])));return Object.assign.apply(Object,[{}].concat((0,c.default)(t.map((function(e){var t,n=(0,E.g)(e),r=Object.values(null!=(t=null==n?void 0:n.attributes)?t:{}).filter((function(e){return e.referenceEntity&&a.has(e.referenceEntity)&&(i||"ObjectReferenceSet"!==e.type)})).map((function(e){return e.name}));return r.length>0?(0,o.default)({},e,r):{}})))))}var ke=(function(){return(0,l.default)((function e(t,n){(0,s.default)(this,e),this.database=t,this.webSqlDatabase=n}),[{key:"apply",value:(t=(0,p.default)((function*(){0!==(yield ne(Ee("_guidToTable")).chain((function(e){return ne(Ee((0,y.toUserScopedName)("_guidToTable"))).chain((function(t){return[].concat((0,c.default)(e),(0,c.default)(t))}))})).read(this.webSqlDatabase)).reduce((function(e,t){return e+Object.values(t)[0]}),0)&&(yield this.migrateSchemaAndDataFromWebSql())})),function(){return t.apply(this,arguments)})},{key:"migrateSchemaAndDataFromWebSql",value:(e=(0,p.default)((function*(){var e=this,t=this.database.getLowLevelAPI(),n=yield ne(["SELECT tbl_name, sql FROM sqlite_master WHERE type='table' AND tbl_name NOT LIKE '__WebKit%'",[]]).read(this.webSqlDatabase);yield Promise.all(n.map((function(){var n=(0,p.default)((function*(n){return(r=(0,p.default)((function*(e,t,n,r){yield e.inTransaction((function(){var e=(0,p.default)((function*(e){yield e.exec(r,[]);var i=yield ne([`SELECT * FROM "${n}"`,[]]).read(t);yield Promise.all(i.map((function(t){return e.exec(`INSERT OR IGNORE INTO "${n}" VALUES(${Object.keys(t).map((function(){return"?"})).join(", ")})`,Object.values(t))}))),yield ne([`DROP TABLE "${n}"`,[]]).write(t)}));return function(t){return e.apply(this,arguments)}})())})),function(e,t,n,i){return r.apply(this,arguments)})(t,e.webSqlDatabase,n.tbl_name,n.sql);var r}));return function(e){return n.apply(this,arguments)}})()))})),function(){return e.apply(this,arguments)})}]);var e,t})(),$e=_e2.j=function e(t){if(null===t||"object"!=typeof t)return t;var n=Array.isArray(t)?[]:{};return Object.keys(t).forEach((function(r){return n[r]=e(t[r])})),n},Se=(function(){return(0,l.default)((function e(t,n){var r=this;(0,s.default)(this,e),this.map={},t.forEach((function(e){var t,i=(0,f.default)(e,2),a=i[0],u=i[1],o=null!=(t=n(a))?t:n(u);void 0!==o&&(r.map[a]=[u,o])}))}),[{key:"has",value:function(e){return void 0!==this.map[e]}},{key:"get",value:function(e){return this.map[e]}},{key:"getGuid",value:function(e){var t=this.get(e);if(void 0!==t)return(0,f.default)(t,1)[0]}},{key:"getEntity",value:function(e){var t=this.get(e);if(void 0!==t)return(0,f.default)(t,2)[1]}},{key:"entries",value:function(){return Object.entries(this.map).map((function(e){var t=(0,f.default)(e,2),n=t[0],r=(0,f.default)(t[1],2);return[n,r[0],r[1]]}))}}])})();function Me(e){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,p.default)((function*(e){var t=e.dirtyMxObjects,n=e.syncedObjsOfflineToRuntimeMap,r=e.returnObjects,i=e.deletes,a=void 0===i?{}:i,u=e.extraGuidsToRetrieve,s=void 0===u?[]:u,l=e.incompatibleObjectsJson,v=void 0===l?[]:l,y=e.logger,b=e.database,j=e.fileBackend,O=e.offlineEntities;y.trace(`Syncing of ${t.length} objects.`);var w=t.map((function(e){return n.mapMxObjectJSON(e.jsonData)})),T=t.filter((function(e){return!ae(n.map(e.getGuid()))}));y.trace(`Creating guids for ${T.length} offline objects.`);var k,$,M=new m.b,C=yield(k=(0,p.default)((function*(e,t){for(var n=e.reduce((function(e,t){var n,r=t.getEntity();return e[r]=(null!=(n=e[r])?n:0)+1,e}),{}),r={},i=[],a=s();Object.entries(a).length>0;){var u=yield t(a);if(0===Object.keys(u.success).length&&0===u.failure.length)throw new h.A("create_guids API did not return a valid response");Object.entries(u.success).forEach((function(e){var t,n=(0,f.default)(e,2),i=n[0],a=n[1];r[i]=(null!=(t=r[i])?t:[]).concat(a)})),i.push.apply(i,(0,c.default)(u.failure)),a=s()}var o=new de;return e.filter((function(e){return!i.includes(e.getEntity())})).forEach((function(e){var t=r[e.getEntity()].shift();o.add(e.getGuid(),t)})),o;function s(){return Object.entries(n).reduce((function(e,t){var n,a,u,o,c=(0,f.default)(t,2),s=c[0],l=c[1],p=null!=(n=null==(a=r[s])?void 0:a.length)?n:0;return!i.includes(s)&&l>p&&(e[s]=l-(null!=(u=null==(o=r[s])?void 0:o.length)?u:0)),e}),{})}})),function(e,t){return k.apply(this,arguments)})(T,m.B);y.trace(`Created guids for ${T.length} offline objects in ${M.measure()} milliseconds.`),M.reset(),yield($=(0,p.default)((function*(e,t,n,r,i){if(t.some((function(e){return ae(e.getGuid())})))throw new h.A("Runtime objects are not expected here");var a=oe(t);yield i.usingWriteTransaction((function(){var r=(0,p.default)((function*(r){yield r.updateEntityGuids(t.map((function(e){return e.getGuid()})),new Se(n.entries(),(function(e){var t;return null==(t=a[e])?void 0:t.getEntity()})),e)}));return function(e){return r.apply(this,arguments)}})());var u=r.toAbsolutePath(S.a),o=t.filter((function(e){return(0,E.d)(e.jsonData)})).map((function(e){var t=n.map(e.getGuid());return[u+"/"+(0,S.f)(e.getGuid(),""),u+"/"+(0,S.f)(t,""),t]}));yield(0,S.e)({moves:o},r),he.import(n.reverse())})),function(e,t,n,r,i){return $.apply(this,arguments)})(O,T,C,j,b),y.trace(`Updated offline guids with runtime guids in ${M.measure()} milliseconds.`);var x=w.map((function(e){return C.mapMxObjectJSON(e)})),A=yield xe(x.map((function(e){return e.guid})),b);y.trace("Uploading file documents."),M.reset();var G=yield Promise.all(x.filter((function(e){return(0,E.d)(e)})).concat(v.filter((function(e){return(function(e,t){var n=e.attributes;return["FileID","HasContents","Size"].every((function(e){return e in n}))&&(null==(t=n.HasContents)?void 0:t.value)})(e)}))).map((function(){var e=(0,p.default)((function*(e){y.trace(`Uploading file content of ${e.objectType} with guid ${e.guid}.`);var t=new m.b,n=yield(0,S.d)(j,e);return y.trace(`Uploaded file content of ${e.objectType} with guid ${e.guid} in ${t.measure()} milliseconds.`),n}));return function(t){return e.apply(this,arguments)}})()));y.trace(`Uploaded file documents in ${M.measure()} milliseconds.`);var P=x.map((function(e){return Object.assign({guid:e.guid,syncId:A[e.guid],changes:(t=e,n=(0,h.e)((0,E.g)(t.objectType)),r=Object.entries(t.attributes).filter((function(e){var t,r=(0,f.default)(e,2),i=r[0],a=r[1];return(null==(t=n.attributes[i])?void 0:t.isSyncable)&&!a.readonly})).map((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];return(0,o.default)({},n,{value:r.value})})),Object.assign.apply(Object,[{}].concat((0,c.default)(r))))},ae(e.guid)?{}:{objectType:e.objectType});var t,n,r})),D=yield xe(v.map((function(e){return e.guid})),b),_=v.map((function(e){return{guid:e.guid,objectType:e.objectType,syncId:D[e.guid],changes:(t=e,n=Object.keys(t.attributes).map((function(e){var n;return(0,o.default)({},e,{value:null==(n=t.attributes[e])?void 0:n.value})})),Object.assign.apply(Object,[{}].concat((0,c.default)(n))))};var t,n})),R=G.reduce((function(e,t){return t.tempGuid?Object.assign({},e,(0,o.default)({},t.tempGuid,t.fileObjGuid)):e}),{});y.trace("Syncing objects with runtime."),M.reset();var B=r?yield(0,m.A)(P,R,!0,a,n.map(s)):yield(0,m.A)(P,R,!1,a,[],_);return y.trace(`Synced objects with runtime in ${M.measure()} milliseconds.`),{response:B,createdGuidsMapping:C}})),Ce.apply(this,arguments)}function xe(e,t){return Ae.apply(this,arguments)}function Ae(){return(Ae=(0,p.default)((function*(e,t){var n=yield t.usingReadTransaction((function(t){return t.retrieveSyncIds(e)}));return Object.assign.apply(Object,[{}].concat((0,c.default)(n.map((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];return(0,o.default)({},n,r)})))))}))).apply(this,arguments)}function Ge(e,t,n){return Pe.apply(this,arguments)}function Pe(){return(Pe=(0,p.default)((function*(e,t,n){var r=yield e.increaseAndGetUniqueId(n);return Array.from({length:n},(function(e,n){var i=Math.round(1e4*Math.random());return`${t}:${r-n}:${i}`}))}))).apply(this,arguments)}function De(e,t,n,r,i,a){return _e.apply(this,arguments)}function _e(){return _e=(0,p.default)((function*(e,t,n,r,i,a){if(0!==e.length){var u=(0,h.j)(e,(function(e){return e.getGuid()})),o=he.reverse(),s=u.reduce((function(e,n){var r=(0,f.default)(e,4),i=r[0],a=r[1],u=r[2],c=r[3],s=!t.isNew(n.getGuid());s&&ae(o.map(n.getGuid()))&&i.push(n),n.isPersistable()&&(a.push(n),s&&u.push(n));var l=n.getEntity();return(0,j.o)().hasOnlineSyncMode(n.getEntity())&&(c.has(l)?c.get(l).push(n.getGuid()):c.set(l,[n.getGuid()])),[i,a,u,c]}),[[],[],[],new Map]),l=(0,f.default)(s,4),y=l[0],O=l[1],w=l[2],T=l[3];if(T.size>0){var $=["An attempt to delete object(s) configured with 'online' synchronization mode in an offline context.","Objects list:"];for(var M of T){var C=(0,f.default)(M,2),x=C[0],A=C[1];$.push(`'${x}': ${A.join(", ")}`)}throw new m.D($.join("\n"))}var G=o.map(y.flatMap((function(e){return e.isPersistable()&&!i.has(e.getEntity())?e.getGuid():[]}))),P=(0,v.g)();yield a.usingWriteTransaction((function(){var e=(0,p.default)((function*(e){yield e.deleteEntitiesByGuid(w.map((function(e){return o.map(e.getGuid())})));var t=yield Ge(e,P.getSessionObjectId(),G.length);yield e.insertTombstones(G.map((function(e,n){return{guid:e,syncId:t[n]}})));var n=(0,S.c)((function(e){return Te(e,r,!1)}));return Promise.all(O.flatMap((function(t){var r;return Object.entries(null!=(r=n(t.getEntity()))?r:{}).map((function(n){var r=(0,f.default)(n,2),i=r[0],a=r[1];return Promise.all(a.map((function(n){return e.updateEntityDataReferringTo(i,o.map(t.getGuid()),n,null)})))}))})))}));return function(t){return e.apply(this,arguments)}})());var D=function(e,t){return(0,S.b)(e,o,n.toAbsolutePath((t?S.T:S.a)+"/"))},_=w.filter((function(e){var t=e.jsonData;return(0,E.d)(t)})).flatMap((function(e){var t=e.jsonData;return(0,E.e)(t.objectType)?[D(t,!1),D(t,!0)]:D(t,!1)}));(0,S.e)({deletes:_},n).catch(b.h);var R=u.map((function(e){return e.getGuid()})),B=t.getAllObjects().filter((function(e){return!o.has(e.getGuid())&&!R.includes(e.getGuid())})),L=(0,h.b)(B.flatMap((function(e){return e.isPersistable()?[]:e.getEntity()}))),N=(0,S.c)((function(e){return Te(e,[].concat((0,c.default)(r),(0,c.default)(L)),!0)})),I=(0,h.b)(u.map((function(e){return e.getEntity()}))),U=I.flatMap((function(e){var t;return Object.values(null!=(t=N(e))?t:{})})).flat(),F=B.flatMap((function(e){var t=U.flatMap((function(t){if(e.has(t)){var n=e.getReferences(t).filter((function(e){return R.includes(e)}));return!e.isReadonlyAttr(t)&&n.length>0?[[t,n]]:[]}return[]}));return t.length>0?[[e,new Map(t)]]:[]})),W=F.map((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1],i=$e(n.jsonData);return r.forEach((function(e,t){var r=i.attributes[t].value;n.isObjectReferenceSet(t)&&Array.isArray(r)?i.attributes[t].value=r.filter((function(t){return!e.includes(t)})):i.attributes[t].value=null})),i})),J=B.reduce((function(e,n){var r=(0,f.default)(e,2),i=r[0],a=r[1],u=n.getGuid();return Object.entries(t.getChanges(u)).filter((function(e){var t=(0,f.default)(e,2),n=t[0];t[1];return U.includes(n)})).forEach((function(e){var t,r,o,c,s=(0,f.default)(e,2),l=s[0],p=s[1],v=p.value;n.isObjectReferenceSet(l)||!R.includes(v)?Array.isArray(v)&&v.some((function(e){return R.includes(e)}))&&(1===v.length||v.every((function(e){return R.includes(e)}))?X(i,u,l):p.hash||(t=a,r=u,o=l,c=v.filter((function(e){return!R.includes(e)})),t.has(r)||t.set(r,{}),(0,h.e)(t.get(r))[o]={value:c})):X(i,u,l)})),[i,a]}),[new Map,new Map]),z=(0,f.default)(J,2),H=z[0],q=z[1];t.onDelete(R),t.setMxObjects(W),t.removeChanges(Object.fromEntries(H)),t.addChanges(Object.fromEntries(q)),(0,k.u)(R.filter(k.i)),y.forEach((function(e){var t=e.getGuid();o.has(t)&&he.remove(o.map(t))}));var V=F.flatMap((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];return Array.from(r.keys()).map((function(e){return{guid:n.getGuid(),attr:e}}))}));yield b.p.apply(void 0,(0,c.default)(I.map((function(e){return{entity:e}}))).concat((0,c.default)(V),(0,c.default)(R.map((function(e){return{guid:e}})))))}function X(e,t,n){e.has(t)||e.set(t,[]),(0,h.e)(e.get(t)).push(n)}})),_e.apply(this,arguments)}function Re(e){return Be.apply(this,arguments)}function Be(){return(Be=(0,p.default)((function*(e){var t=(0,A.g)();for(var n of null!=e?e:[])switch(n.type){case"logout":mx.logout();break;case"show_login":t.showLogin();break;case"download_file":var r=yield(0,j.f)(n.args.FileDocumentGuid);t.downloadFile({mxobject:(0,h.e)(r),target:n.args.Target});break;case"text_message":t.showMessage(n.args.MessageType,n.args.MessageContent,n.args.MessageBlock)}}))).apply(this,arguments)}function Le(e,t){var n,r,i,a,u,o,c=Object.entries(null!=(n=t.changes)?n:{}).map((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];return Object.keys(r).map((function(e){return{guid:n,attr:e}}))})),s=Object.entries(null!=(r=t.resets)?r:{}).map((function(e){var t=(0,f.default)(e,2),n=t[0];return t[1].map((function(e){return{guid:n,attr:e}}))})),l=(null!=(i=t.objects)?i:[]).map((function(t){var n,r,i,a=e.getObject(t.guid);return null!==a?(n=a,r=t,i=T.M.fromJson(r),(0,E.b)(r.objectType).map((function(e){return e.name})).filter((function(e){return!(function(e,t,n){if(e.isReadonlyAttr(n)!==t.isReadonlyAttr(n))return!1;if(e.isReference(n))return n===E.S.ChangedBy||n===E.S.Owner||e.getOriginalReferences(n).sort((function(e,t){return e.localeCompare(t)})).join(",")===t.getOriginalReferences(n).sort((function(e,t){return e.localeCompare(t)})).join(",");var r=e.getOriginalValue(n),i=t.getOriginalValue(n);return r===i||null!=r&&null!=i&&r.valueOf()===i.valueOf()})(n,i,e)}))).map((function(e){return{guid:t.guid,attr:e}})):[]})),p=(0,h.b)((0,h.k)((null!=(a=t.instructions)?a:[]).map(Ne)).concat(null!=(u=t.deletes)?u:[])),v=(0,h.j)([c,s,l].flat(2),(function(e){return`${e.guid}:${e.attr}`})).map((function(e){return{guid:e.guid,attr:e.attr}})).filter((function(t){var n=t.guid;return!p.includes(n)&&e.has(n)})),y=p.filter((function(t){return e.has(t)})).map((function(e){return{guid:e}})),m=(0,h.b)((0,h.k)((null!=(o=t.instructions)?o:[]).map((function(e){return"refresh_class"===e.type?e.args.classnames:[]})))).map((function(e){return{entity:e}}));return(0,h.k)([v,y,m])}function Ne(e){return"refresh_object_list"===e.type?e.args.ObjectIds:[]}function Ie(e,t,n){return Ue.apply(this,arguments)}function Ue(){return Ue=(0,p.default)((function*(e,t,n){var r,i,a=Le(e,t);yield We(e,t);var u,o=(null!=(r=t.instructions)?r:[]).filter((function(e){return"close"===e.type})),s=(null!=(i=t.instructions)?i:[]).filter((function(e){return"open_form"===e.type}));!(function(e,t,n){if(0!==e.length&&t){var r=e.reduce((function(e,t){return e+t.args.NumberOfPagesToClose}),0);if(r<1)throw new h.A(`The number of pages to close evaluated to ${r}. It must be at least 1.`);t.setSuspend(!0),t.closePage(r,!0,n).finally((function(){t.setSuspend(!1)})).catch((function(e){(0,b.h)(e)}))}})(o,n,s.some((function(e){return"content"===e.args.FormTarget}))),yield b.p.apply(void 0,(0,c.default)(a)),yield(u=(0,p.default)((function*(e,t){var n=[],r=(0,c.default)(e).reverse().find((function(e){return"content"===e.args.FormTarget}));for(var i of e){var a=i.args.FormTarget,u="content"===a&&i!==r,o=(0,A.g)();n.push(o.openForm2(i.args.FormPath,(0,h.m)(i.args.FormParameters,(function(e){return null!=e?e:void 0})),i.args.FormTitle,t,{location:a,url:i.args.FormUrl,queryString:i.args.QueryString,width:i.args.FormWidth,height:i.args.FormHeight,resizable:i.args.FormResizable,pageUpdateSuspended:u,preferUnderlyingModalOverLastFocusedElement:!0}))}yield Promise.all(n)})),function(e,t){return u.apply(this,arguments)})(s),yield Re(t.instructions),yield ze(t.datavalidation)})),Ue.apply(this,arguments)}function Fe(){return(Fe=(0,p.default)((function*(e,t,n){if(t instanceof m.V){var r=t.original,i=Le(e,r).filter((function(e){return!("attr"in e)}));yield b.p.apply(void 0,(0,c.default)(i)),yield Re(r.instructions),yield ze(r.datavalidation,n)}}))).apply(this,arguments)}function We(e,t){return Je.apply(this,arguments)}function Je(){return(Je=(0,p.default)((function*(e,t){var n=t.objects,r=void 0===n?[]:n,i=t.changes,a=void 0===i?{}:i,u=t.newpersistable,o=void 0===u?[]:u,c=t.commits,s=void 0===c?[]:c,l=t.deletes,f=void 0===l?[]:l,p=t.resets,h=void 0===p?{}:p,v=t.committedObjectsOmitted,y=void 0!==v&&v;e.removeChanges(h),e.addChanges(a);var b=r.filter((function(t){return n=t,!e.has(n.guid);var n})).filter((function(e){var t,n;return n=e,Boolean(null==(t=(0,E.g)(n.objectType))?void 0:t.isPersistable)?o.includes(e.guid):!s.includes(e.guid)})).map((function(e){return e.guid}));if(e.onCreate(b),e.onDelete(f),e.onCommit(s),e.setMxObjects(r),y){var j=s.filter((function(t){return e.has(t)&&!r.some((function(e){return e.guid===t}))}));if(j.length>0){var O=yield(0,m.r)(j,{});yield Ie(e,O)}}}))).apply(this,arguments)}function ze(e,t){return He.apply(this,arguments)}function He(){return(He=(0,p.default)((function*(e,t){var n=x.O.fromResponse(null!=e?e:[]);yield(0,j.a)().sendValidationUpdates(n),n.length>0&&t&&t(n)}))).apply(this,arguments)}function qe(e){return"push_to_client"===e.type}function Ve(e){return e.filter(qe).flatMap((function(e){return e.args.guids}))}function Xe(e,t,n,r,i,a){return Ke.apply(this,arguments)}function Ke(){return Ke=(0,p.default)((function*(e,t,n,r,i,a){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new pe,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"nothing",l=(function(e){var t=new Set(e),n=[];return function(e){return!(void 0===e||!t.has(e)&&(n.includes(e)||(n.push(e),w.L.get().getLogger(w.a.Synchronization).warn(`Object of type ${e} cannot be pushed to client, skipping it.`)),1))}})(i),f=ue(n);yield t.usingWriteTransaction((function(){var t=(0,p.default)((function*(t){if(e.length>0){var n=yield t.retrieveMxObjectMetasByGuids(e),r=Object.assign.apply(Object,[{}].concat((0,c.default)(n.map((function(e){return(0,o.default)({},e.guid,e.objectType)}))))),i=[],a=[];if(e.forEach((function(e){var t,n=f[e],u=null!=(t=null==n?void 0:n.objectType)?t:r[e];u&&l(u)&&a.push(e),u&&l(null==n?void 0:n.objectType)&&i.push(n)})),yield t.deleteEntitiesByGuid(a),yield t.insertMxObjects(i),"clean"===s&&i.length>0){var u=Object.values(i).map((function(e){return e.guid}));yield t.deleteTombstones(u)}}"reset"===s&&(yield t.truncateTombstones())}));return function(e){return t.apply(this,arguments)}})()),e.filter((function(e){return!Object.prototype.hasOwnProperty.call(f,e)})).forEach((function(e){var t=e;u.has(e)?t=u.map(e):a.has(e)&&(t=a.map(e));var n=r.getObject(t);null!==n&&n.markAsUnavailable()})),e.filter((function(e){return u.has(e)})).forEach((function(e){return a.add(e,u.map(e))})),(0,k.u)(e.map((function(e){return a.map(e)})))})),Ke.apply(this,arguments)}function Qe(e){return"entity"in e}function Ye(e){return"guid"in e&&!("attr"in e)}function Ze(e,t){var n;return!(null!=(n=(0,E.g)(e))&&n.isPersistable)||t.includes(e)}function et(e,t,n,r,i,a){return tt.apply(this,arguments)}function tt(){return tt=(0,p.default)((function*(e,t,n,r,i,a){var u,s,l,v,y=(0,M.g)(t);if(y.some((function(e){return!r.has(e)})))throw new h.A("Microflow parameter is not available in the client state");var O,w=Z(r,e,y),T=(0,f.default)(w,2),k=T[0],$=T[1].map((function(e){return e.hash?e:Object.assign({},e,{attributes:Object.fromEntries(Object.entries(e.attributes).filter((function(e){var t=(0,f.default)(e,2);t[0];return!t[1].readonly})))})})),x=yield(0,m.l)(e,t,k,$),A=(function(e,t){var n,r,i=e.actionResult,a=e.objects,u=void 0===a?[]:a,o=e.changes,s=void 0===o?{}:o,l=e.resets,f=void 0===l?{}:l,p=e.deletes,v=void 0===p?[]:p,y=e.instructions,m=void 0===y?[]:y,b=Ve(m),j=nt((0,h.b)([].concat((0,c.default)(u.map((function(e){return e.guid}))),(0,c.default)(Object.keys(s)),(0,c.default)(Object.keys(f)),(0,c.default)(v))),u,t),O=new Set(b.concat(j));return{actionResult:i,newpersistable:[],commits:[],committedObjectsOmitted:!1,deletes:(n=v,r=O,n.filter((function(e){return r.has(e)}))),changes:rt(s,O),resets:rt(f,O),instructions:it(m,u,t),objects:u.filter((function(e){return O.has(e.guid)}))}})((function(e,t,n){var r=e.actionResult,i=e.newpersistable,a=void 0===i?[]:i,u=e.objects,o=void 0===u?[]:u,c=e.changes,s=void 0===c?{}:c,l=e.commits,f=void 0===l?[]:l,p=e.committedObjectsOmitted,h=void 0!==p&&p,v=e.resets,y=void 0===v?{}:v,m=e.deletes,b=void 0===m?[]:m,j=e.instructions,O=void 0===j?[]:j;return{actionResult:r,committedObjectsOmitted:h,newpersistable:a,commits:f,deletes:t.map(b),instructions:ot(O,t),objects:o.map((function(e){return t.mapMxObjectJSON(e)})),changes:at(s,o,n,t),resets:ut(y,t)}})(x,he,r),r),G=new Set(Ve(null!=(u=x.instructions)?u:[])),P=Array.from(G),D=null!=(s=null==(l=x.objects)?void 0:l.filter((function(e){return G.has(e.guid)})))?s:[],_=n.filter((function(e){return(0,E.f)(e)})),R=(yield Promise.all(_.map((function(e){return(0,j.o)().retrieveByGuids(e,P)})))).flat(),B=yield(O=(0,p.default)((function*(e,t,n,r){var i,a,u,s=Le(n,e),l=(0,h.b)(null!=(i=null==(a=e.instructions)?void 0:a.filter(qe).flatMap((function(e){return e.args.guids})))?i:[]),p=ue(null!=(u=e.objects)?u:[]),v=(0,h.p)((function(e){return void 0!==p[e]}),l),y=(0,f.default)(v,2),m=y[0],b=y[1],j=Object.assign.apply(Object,[{}].concat((0,c.default)(m.map((function(e){return(0,o.default)({},e,p[e].objectType)})))));if(b.length>0){var O=he.reverse().map(b);yield r.usingReadTransaction((function(e){return e.retrieveMxObjectMetasByGuids(O)})).then((function(e){e.forEach((function(e){var t=e.guid,n=he.map(t);j[n]=e.objectType}))}))}var w=(0,h.b)(s.filter(Qe).map((function(e){return e.entity})).concat(Object.values(j))).filter((function(e){return Ze(e,t)})).map((function(e){return{entity:e}})),E=Object.entries(j).filter((function(e){var n=(0,f.default)(e,2);return n[0],Ze(n[1],t)})).map((function(e){return(0,f.default)(e,1)[0]})),T=(0,h.b)(s.filter(Ye).map((function(e){return e.guid})).concat(E)).filter((function(e){return n.has(e)})).map((function(e){return{guid:e}}));return[].concat((0,c.default)(s.filter((function(e){return"attr"in e&&!E.includes(e.guid)}))),(0,c.default)(T),(0,c.default)(w))})),function(e,t,n,r){return O.apply(this,arguments)})(A,n,r,i),L=yield(0,S.h)(R,D,!1,he,a),N=L.downloads,I=L.moves,U=L.deletes;0!==P.length&&(yield(0,S.e)({downloads:N},a),yield Xe(P,i,null!=(v=x.objects)?v:[],r,n,he,new pe,0!==D.length?"clean":"nothing"),yield(0,S.e)({moves:I},a),(0,S.e)({deletes:U},a).catch(b.h)),yield We(r,A),B.length>0&&(yield b.p.apply(void 0,(0,c.default)(B)));var F=x.actionResult;return null==F?void 0:(0,C.r)(F.value,F.type,(function(e){return(0,h.e)(r.getObject(e))}))})),tt.apply(this,arguments)}function nt(e,t,n){var r=ue(t);return e.filter((function(e){var t,i,a,u=null!=(t=r[e])?t:null==(i=n.getObject(e))?void 0:i.jsonData;return u&&!1===(null==(a=(0,E.g)(u.objectType))?void 0:a.isPersistable)}))}function rt(e,t){return Object.assign.apply(Object,[{}].concat((0,c.default)(Object.keys(e).filter((function(e){return t.has(e)})).map((function(t){return(0,o.default)({},t,e[t])})))))}function it(e,t,n){return e.flatMap((function(e){switch(e.type){case"refresh_class":var r=e.args.classnames.filter((function(e){var t;return!1===(null==(t=(0,E.g)(e))?void 0:t.isPersistable)}));return r.length>0?[Object.assign({},e,{args:{classnames:r}})]:[];case"refresh_object_list":var i=nt(e.args.ObjectIds,t,n);return i.length>0?[Object.assign({},e,{args:{ObjectIds:i}})]:[];case"push_to_client":return e;default:return[]}}))}function at(e,t,n,r){return Object.assign.apply(Object,[{}].concat((0,c.default)(Object.entries(e).map((function(e){var i,a=(0,f.default)(e,2),u=a[0],c=a[1],s=(null!=(i=t.find((function(e){return e.guid===u})))?i:(0,h.e)(n.getObject(r.map(u))).jsonData).objectType,l=(0,E.g)(s);return l?(0,o.default)({},r.map(u),r.mapChange(c,l)):(0,o.default)({},u,c)})))))}function ut(e,t){return Object.assign.apply(Object,[{}].concat((0,c.default)(Object.keys(e).map((function(n){return(0,o.default)({},t.map(n),e[n])})))))}function ot(e,t){return e.map((function(e){return"push_to_client"===e.type?Object.assign({},e,{args:{guids:t.map(e.args.guids)}}):e}))}var ct=_e2.S=(function(e){function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Could temporarily not synchronize data. Please try again later.";return(0,s.default)(this,n),e=D(this,n,[r]),Object.setPrototypeOf((0,t.default)(e),n.prototype),e}return(0,u.default)(n,e),(0,l.default)(n)})((0,n.default)(Error));function st(e,t,n,r,i,a,u){return lt.apply(this,arguments)}function lt(){return lt=(0,p.default)((function*(e,t,n,r,i,a,u){var o,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:new Set;try{return yield(o=(0,p.default)((function*(e,t,n,r,i,a,u,o){var s=r.schema,l=r.preserveData,y=r.fetch,j=r.never,O=r.online,w=a?{}:Object.fromEntries(Object.entries(i).filter((function(e){var t=(0,f.default)(e,1)[0];return l.includes(t)})).map((function(e){var t=(0,f.default)(e,2);return[t[0],t[1]]}))),T=new m.b;o.trace("Fetching objects.");var k,$=yield(k=(0,p.default)((function*(e,t,n){return(yield Promise.all([].concat((0,c.default)(e.map((function(e){return r(e.store,e.xpath)}))),[(function(){return a.apply(this,arguments)})()]))).flat();function r(e,t){return i.apply(this,arguments)}function i(){return i=(0,p.default)((function*(e,t){var r,i;n.trace(`Fetching objects by XPath: ${t}`);var a=new m.b,o=yield(0,m.e)(t);return n.trace(`Fetched ${null!=(r=null==(i=o.objects)?void 0:i.length)?r:0} objects by XPath ${t} in ${a.measure()} milliseconds.`),u(e,(0,h.e)(o.objects),(0,h.e)(o.resultGuids))})),i.apply(this,arguments)}function a(){return a=(0,p.default)((function*(){var e,r,i,a=Object.values(t).flat();if(0===a.length)return[];n.trace(`Fetching ${a.length} preserved objects.`);var o=new m.b,c=yield(0,m.r)(a,{});return n.trace(`Fetched ${a.length===(null==(e=c.objects)?void 0:e.length)?a.length:`${null!=(r=null==(i=c.objects)?void 0:i.length)?r:0} of ${a.length}`} preserved objects in ${o.measure()} milliseconds.`),Object.entries(t).flatMap((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];return u(n,(0,h.e)(c.objects),r.filter((function(e){return c.resultGuids.includes(e)})))}))})),a.apply(this,arguments)}function u(e,t,n){var r=t.reduce((function(e,t){return e[t.guid]=t,e}),{});return n.map((function(t){var n=r[t];return n.objectType=e,n}))}})),function(e,t,n){return k.apply(this,arguments)})(y,w,o);o.trace(`Fetched ${$.length} objects and completed in ${T.measure()}ms.`),o.trace("Calculating file operations.");var M,C=yield(M=(0,p.default)((function*(e,t,n,r,i){var a,u=i?[]:yield(a=(0,p.default)((function*(e,t){if(t.some((function(e){return!(0,E.f)(e)})))throw new h.A("Non-file document entity passed.");return e.usingReadTransaction((function(){var e=(0,p.default)((function*(e){return(yield Promise.all(t.map((function(t){return e.retrieveMxObjects(t,void 0,{attributes:[E.S.ChangedDate]})})))).flat().map((function(e){var t;return[e.guid,null==(t=e.attributes[E.S.ChangedDate])?void 0:t.value]}))}));return function(t){return e.apply(this,arguments)}})())})),function(e,t){return a.apply(this,arguments)})(t,r.filter((function(e){return(0,E.f)(e)}))),o=n.toAbsolutePath(S.a)+"/",c=u.map((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];return o+(0,S.f)(n,null!=r?r:null)})),s=n.toAbsolutePath(S.T)+"/",l=u.map((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];return s+(0,S.f)(n,null!=r?r:null)})),v=yield ft(n,e,c,!1),y=(0,f.default)(v,2),m=y[0],b=y[1],j=yield ft(n,e,l,!0),O=(0,f.default)(j,2),w=O[0],T=O[1];return[m.concat(w),b.concat(T)]})),function(e,t,n,r,i){return M.apply(this,arguments)})($,e,t,l,a),x=(0,f.default)(C,2),A=x[0],G=x[1];o.trace(`${A.length} files to be downloaded, ${G.length} files to be removed`),o.trace("Downloading files."),T.reset();var P=yield(0,S.i)(A,t,o),D=P.size>0?$.filter((function(e){return!P.has(e.guid)})):$;o.trace(`Downloaded ${A.length-P.size} files in ${T.measure()} milliseconds.`),o.trace("Compute cached objects to update or delete."),T.reset();var _=(function(e,t,n,r,i){var a=he.reverse(),u=e.getAllObjects().filter((function(t){var a;if(!t.isPersistable()||e.isNew(t.getGuid()))return!1;if(i||!n.includes(t.getEntity()))return!0;var u=null!=(a=r[t.getEntity()])?a:[];return he.map(u).includes(t.getGuid())})).map((function(e){var n=a.map(e.getGuid()),r=t.find((function(e){return e.guid===n}));return[r?he.mapMxObjectJSON(r):void 0,e]})),o=(0,h.p)((function(e){return void 0!==(0,f.default)(e,1)[0]}),u),c=(0,f.default)(o,2),s=c[0],l=c[1];return[s.map((function(e){return(0,f.default)(e,1)[0]})),l.map((function(e){var t=(0,f.default)(e,2);return t[0],t[1].getGuid()}))]})(n,D,l,i,a),R=(0,f.default)(_,2),B=R[0],L=R[1];o.trace(`Compute cached objects to update or delete completed in ${T.measure()} milliseconds. ${B.length} objects will be updated, ${L.length} will be deleted.`),o.trace("Computing subscription updates."),T.measure();var N,I=(function(e,t,n,r,i,a,u,o){var s=new Set([].concat((0,c.default)(t),(0,c.default)(n))),l=e.filter((function(e){return!(!o&&s.has(e))||void 0!==i[e]&&!i[e].every((function(e){return void 0!==r.find((function(t){return t.guid===e}))}))})).map((function(e){return{entity:e}}));return[].concat((0,c.default)(l),(0,c.default)(a.map((function(e){return{guid:e}}))),(0,c.default)(u.map((function(e){return{guid:e}}))))})(s,[].concat((0,c.default)(l),(0,c.default)(j)),null!=O?O:[],D,w,B.map((function(e){return e.guid})),L,a);return o.trace(`Computing subscription updates completed in ${T.measure()} milliseconds.`),o.trace("Rebuilding the database."),T.reset(),yield(N=(0,p.default)((function*(e,t,n,r,i,a){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Set,o=new Set([].concat((0,c.default)(i),(0,c.default)(a))),s=t.filter((function(e){return!o.has(e)})),l=0===i.length;yield e.usingWriteTransaction((function(){var e=(0,p.default)((function*(e){var t=[].concat((0,c.default)(s),(0,c.default)(u));yield e.dropEntityTables(t),l?(yield e.reset(),yield e.updateEntityMetadatas((0,v.g)().getOfflineMetadata())):yield e.deleteEntitiesByGuid(Object.values(r).flat()),yield e.ensureSchema(s,0),yield e.insertMxObjects(n)}));return function(t){return e.apply(this,arguments)}})())})),function(e,t,n,r,i,a){return N.apply(this,arguments)})(e,s,D,Object.fromEntries(Object.entries(w).map((function(e){var t=(0,f.default)(e,2),n=t[0],r=t[1];return[n,he.map(r)]}))),a?[]:[].concat((0,c.default)(l),(0,c.default)(j)),null!=O?O:[],u),o.trace(`Rebuilding the database completed in ${T.measure()} milliseconds.`),o.trace(`Updating cache. ${B.length} to be updated, ${L.length} to be deleted.`),T.reset(),n.setMxObjects(B),n.onDelete(L),o.trace(`Updating cache completed in ${T.measure()} milliseconds.`),o.trace(`Removing ${G.length} files.`),T.reset(),Promise.all(G.map((function(e){return t.removeFile(e)}))).catch(b.h),o.trace(`Removing ${G.length} files completed in ${T.measure()} milliseconds.`),I})),function(e,t,n,r,i,a,u,c){return o.apply(this,arguments)})(e,t,n,r,i,a,s,u)}catch(e){throw u.warn(e),new ct}})),lt.apply(this,arguments)}function ft(e,t,n,r){return dt.apply(this,arguments)}function dt(){return(dt=(0,p.default)((function*(e,t,n,r){var i=e.toAbsolutePath(r?S.T:S.a)+"/",a=t.filter((function(e){return(0,E.d)(e,r)})).map((function(e){var t,n=null==(t=e.attributes.changedDate)?void 0:t.value;return{sourceUrl:(0,S.g)(e.guid,null!=n?n:null,r),downloadPath:i+(0,S.f)(e.guid,null!=n?n:null),guid:e.guid}})),u=(yield e.listDir(i)).map((function(e){return i+e}));return[a.filter((function(e){return!u.includes(e.downloadPath)})).map((function(e){return[e.sourceUrl,e.downloadPath,e.guid]})),u.filter((function(e){return!a.find((function(t){return t.downloadPath===e}))&&!n.includes(e)}))]}))).apply(this,arguments)}function pt(e,t,n,r,i,a,u){return ht.apply(this,arguments)}function ht(){return(ht=(0,p.default)((function*(e,t,n,r,i,a,u){!(function(){if((0,h.j)(e,(function(e){return e.getGuid()})).length!==e.length)throw new h.A("Duplicate objects aren't allowed")})(),u.trace("Selective sync started.");var o=new m.b,s=yield(0,G.r)((0,p.default)((function*(){var c=e.filter((function(e){return!r.isNew(e.getGuid())})),s=0!==c.length,l=0!==Object.keys(t).length;if(!s&&!l)return u.trace("Nothing to sync."),[];u.trace(`Selective sync to sync ${e.length} objects and ${Object.keys(t).length} deletes.`);var p=c.map((function(e){return e.getGuid()})),h=he.reverse(),v=c.filter((function(e){return(0,k.i)(e.getGuid())})),y=p.filter((function(e){return!(0,k.i)(e)}));o.reset();var m=yield Me({dirtyMxObjects:v,syncedObjsOfflineToRuntimeMap:h,returnObjects:!0,deletes:t,extraGuidsToRetrieve:y,logger:u,database:i,fileBackend:a,offlineEntities:n}),j=m.createdGuidsMapping,O=m.response;u.trace(`Selective sync synced changes with runtime in ${o.measure()} milliseconds.`);var w=he.reverse(),T=(function(e){var t=new Set(e.map((function(e){return e.getEntity()})));return e.map((function(e){return{guid:e.getGuid()}})).concat(Array.from(t).map((function(e){return{entity:e}})))})(c),$=(0,S.c)((function(e){return(0,E.f)(e)})),M=c.filter((function(e){return $(e.getEntity())})).map((function(e){return e.jsonData})),C=yield(0,S.h)(M,O.objects,!0,he,a),x=C.downloads,A=C.moves,G=C.deletes,P=yield(0,S.i)(x,a,u),D=0===P.size?O.objects:O.objects.filter((function(e){return!P.has(e.guid)}));u.trace("Selective sync to update the local database."),o.reset(),yield Xe(w.map(p),i,D,r,n,he,j.reverse(),l?"reset":"nothing"),u.trace(`Selective sync updated the local database in ${o.measure()} milliseconds.`);var _=P.size>0?A.filter((function(e){var t=(0,f.default)(e,3),n=(t[0],t[1],t[2]);return!P.has(n)})):A;yield(0,S.e)({moves:_},a,u),(0,S.e)({deletes:G},a,u).catch((function(e){return(0,b.h)(e)}));var R=D.flatMap((function(e){return r.has(he.map(e.guid))?he.mapMxObjectJSON(e):[]}));return r.setMxObjects(R),T})));s.length>0&&(u.trace("Selective sync to update UI with the latest state of the synchronized objects."),o.reset(),yield b.p.apply(void 0,(0,c.default)(s)),u.trace(`Selective sync updated the UI with the latest state of the synchronized objects in ${o.measure()} milliseconds.`)),u.trace("Selective sync completed.")}))).apply(this,arguments)}var gt=(function(){return(0,l.default)((function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:w.L.get();(0,s.default)(this,e),this.syncConfig=t,this.objectCache=n,this.fileBackend=r,this.database=i,this.startupLogger=a.getLogger(w.a.Startup),this.syncLogger=a.getLogger(w.a.Synchronization),this.selectiveSyncLogger=a.getLogger(w.a.SelectiveSync),this.onlineEntities=new Set(t.online)}),[{key:"initialize",value:(B=(0,p.default)((function*(e,t){var n=this;if(void 0!==t){var r=new ke(this.database,t);yield r.apply()}var i=this.syncConfig.schema.filter((function(e){return!n.hasOnlineSyncMode(e)})),a=(function(e,t,n){return null!=(t=null==(n=e[e.length-1])?void 0:n.version)?t:0})(e),u=yield this.database.usingWriteTransaction((function(){var e=(0,p.default)((function*(e){return yield e.ensureSchema(i,a),e.getDatabaseVersion()}));return function(t){return e.apply(this,arguments)}})());if(a<=u)this.startupLogger.debug("The database schema is up-to-date.");else{var o=new m.b;yield this.database.runMigrations(e),this.startupLogger.debug(`The app has upgraded the local database version from ${u} to ${a} in ${o.measure()} milliseconds.`)}var c=(yield this.retrieveDirtyObjects()).dirtyObjects;(0,k.m)(c.map((function(e){return e.getGuid()})))})),function(e,t){return B.apply(this,arguments)})},{key:"downloadObjects",value:(R=(0,p.default)((function*(e,t,n){this.syncLogger.trace("Downloading objects");var r=new m.b,i=st(this.database,this.fileBackend,this.objectCache,this.syncConfig,e,t,this.syncLogger,n);return this.syncLogger.info(`Downloading objects completed in ${r.measure()} milliseconds.`),i})),function(e,t,n){return R.apply(this,arguments)})},{key:"cleanDatabase",value:(_=(0,p.default)((function*(){yield this.database.delete(this.syncConfig.schema)})),function(){return _.apply(this,arguments)})},{key:"create",value:(D=(0,p.default)((function*(e){var t=(0,h.e)((0,E.g)(e)),n=t.isPersistable?ie+(0,$.n)():te(t);return this.objectCache.onCreate([n]),this.objectCache.setMxObjects([(0,j.d)(n,t)]),this.objectCache.getObject(n)})),function(e){return D.apply(this,arguments)})},{key:"retrieve",value:(P=(0,p.default)((function*(e,t,n){var r=this,i=yield this._retrieveJson(e,t,n),a=i.jsons,u=i.count;return this.objectCache.setMxObjects(a),{mxObjects:a.map((function(e){return(0,h.e)(r.objectCache.getObject(e.guid))})),count:u}})),function(e,t,n){return P.apply(this,arguments)})},{key:"retrieveByGuids",value:(A=(0,p.default)((function*(e,t){var n=this,r=ye(t);return(yield Promise.all(r.map((function(t){return n._retrieveJson(e,{type:"function",name:"in",parameters:[{type:"attribute",attribute:"guid",attributeType:"String"},{type:"value",value:t,isGuid:!0}]},{})})))).flatMap((function(e){return e.jsons}))})),function(e,t){return A.apply(this,arguments)})},{key:"retrieveUncached",value:(x=(0,p.default)((function*(e,t,n){var r=yield this._retrieveJson(e,t,n),i=r.jsons,a=r.count;return{mxObjects:i.map(T.M.fromJson),count:a}})),function(e,t,n){return x.apply(this,arguments)})},{key:"retrieveDirtyObjects",value:(C=(0,p.default)((function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,r=new Set(this.syncConfig.never),i=yield this.database.usingReadTransaction((function(e){return e.retrieveDirtyObjects(r)})),a=function(e,t){var n=e.has(t)?e.get(t)+1:1;e.set(t,n)},u=i.flat().reduce((function(e,r){var i=r.objectType;if(n.has(i)||null==(0,E.g)(i))return e.incompatibleObjectsJson.push(r),a(e.incompatibleObjectsCount,i),e;try{var u=t?he.mapMxObjectJSON(r):r;e.dirtyObjects.push(T.M.fromJson(u))}catch(t){e.incompatibleObjectsJson.push(r),a(e.incompatibleObjectsCount,i)}return e}),{dirtyObjects:[],incompatibleObjectsJson:[],incompatibleObjectsCount:new Map}),o=u.dirtyObjects,c=u.incompatibleObjectsJson;return u.incompatibleObjectsCount.forEach((function(t,n){e.syncLogger.warn(`Failed to parse ${t} object${1===t?"":"s"} of type '${n}'and to prevent data loss new 'System.SynchronizationError' corresponding to these failed objects will be created.`)})),{dirtyObjects:o,incompatibleObjectsJson:c}})),function(){return C.apply(this,arguments)})},{key:"retrieveDeletes",value:(M=(0,p.default)((function*(){var e=yield this.database.usingReadTransaction((function(e){return e.retrieveAllTombstones()}));return Object.fromEntries(e.map((function(e){return[e.guid,e.syncId]})))})),function(){return M.apply(this,arguments)})},{key:"insertOrReplace",value:(O=(0,p.default)((function*(e){var t=this,n=(0,v.g)().getSessionObjectId(),r=e.reduce((function(e,n){var r=n.objectType;return t.hasOnlineSyncMode(r)&&(e.has(r)?e.get(r).push(n.guid):e.set(r,[n.guid])),e}),new Map);if(r.size>0){var i=["An attempt to commit object(s) configured with 'online' synchronization mode in an offline context.","Objects list:"];for(var a of r){var u=(0,f.default)(a,2),o=u[0],c=u[1];i.push(`'${o}': ${c.join(", ")}`)}throw new m.D(i.join("\n"))}yield this.database.usingWriteTransaction((function(){var t=(0,p.default)((function*(t){var r=yield Ge(t,n,e.length);return t.insertMxObjectsWithSyncId(e.map((function(e,t){return Object.assign({},e,{syncId:r[t]})})))}));return function(e){return t.apply(this,arguments)}})())})),function(e){return O.apply(this,arguments)})},{key:"executeMicroflow",value:(y=(0,p.default)((function*(e,t){return et(e,t,this.syncConfig.schema,this.objectCache,this.database,this.fileBackend)})),function(e,t){return y.apply(this,arguments)})},{key:"upload",value:(o=(0,p.default)((function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set,n=yield this.retrieveDirtyObjects(!1,t),r=n.dirtyObjects,i=n.incompatibleObjectsJson,a=yield this.retrieveDeletes(),u=0!==r.length,o=0!==Object.keys(a).length,s=0!==i.length;if(!(u||o||s))return{};this.syncLogger.trace(`Uploading ${r.length} changes, ${Object.keys(a).length} deletes.`),r.length+De.length>1e3&&this.syncLogger.warn("Uploading excessive amount of data will slow down synchronization.");var l=new m.b,v=yield Me({returnObjects:!1,dirtyMxObjects:r,syncedObjsOfflineToRuntimeMap:he.reverse(),deletes:a,incompatibleObjectsJson:i,logger:this.syncLogger,database:this.database,fileBackend:this.fileBackend,offlineEntities:this.syncConfig.schema}),y=v.createdGuidsMapping,b=v.response,j=y.reverse();if(this.syncLogger.trace(`Synchronizing objects took ${l.measure()} milliseconds.`),!u)return yield this.database.usingWriteTransaction((function(e){return e.truncateTombstones()})),{};this.syncLogger.trace("Updating local database with uploaded changes."),l.reset();var O=oe(r);yield this.database.usingWriteTransaction((function(){var e=(0,p.default)((function*(e){return[].concat((0,c.default)(yield Promise.all(Object.entries(b.fileChangedDates).map((function(){var t=(0,p.default)((function*(t){var n=(0,f.default)(t,2),r=n[0],i=n[1],a=j.map(r),u=(0,h.e)(O[a]);return e.updateEntityData(u.getEntity(),r,"changedDate",i)}));return function(e){return t.apply(this,arguments)}})()))),[yield e.clearDirtyFlags(r.map((function(e){return y.map(e.getGuid())}))),yield o?e.truncateTombstones():Promise.resolve()])}));return function(t){return e.apply(this,arguments)}})()),this.syncLogger.trace(`Updating local database took ${l.measure()} milliseconds.`),(0,k.c)();var w=Object.entries(b.fileChangedDates).map((function(t){var n=(0,f.default)(t,2),i=n[0],a=n[1],u=i,o=j.map(u),c=r.find((function(e){return e.getGuid()===o})).jsonData,s=e.fileBackend.toAbsolutePath(S.a+"/");return[s+(0,S.f)(u,(0,h.e)(c.attributes.changedDate).value),s+(0,S.f)(u,a),u]}));this.syncLogger.trace("Executing file instructions for uploaded file documents."),l.reset(),yield(0,S.e)({moves:w},this.fileBackend),this.syncLogger.trace(`Executing file instructions for uploaded file documents took ${l.measure()} milliseconds.`);var E=he.reverse();return r.reduce((function(e,t){var n,r=t.getEntity();return e[r]=(null!=(n=e[r])?n:[]).concat(E.map(t.getGuid())),e}),{})})),function(){return o.apply(this,arguments)})},{key:"selectiveSync",value:(u=(0,p.default)((function*(e){return pt(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this.syncConfig.schema,this.objectCache,this.database,this.fileBackend,this.selectiveSyncLogger)})),function(e){return u.apply(this,arguments)})},{key:"delete",value:(a=(0,p.default)((function*(e){return De(e,this.objectCache,this.fileBackend,this.syncConfig.schema,new Set(this.syncConfig.never),this.database)})),function(e){return a.apply(this,arguments)})},{key:"clearFromClient",value:(i=(0,p.default)((function*(e){var t;yield(t=(0,p.default)((function*(e,t,n,r){if(!(0,h.e)((0,E.g)(e)).isPersistable)throw Error("Entity must be persistable");var i=yield r.usingReadTransaction((function(t){return t.retrieveMxObjects(e)})),a=he.reverse(),u=function(e,t){return(0,S.b)(e,a,n.toAbsolutePath((t?S.T:S.a)+"/"))},o=i.reduce((function(t,n){var r=n.guid;return t.dbGuidsToClear.push(r),(0,E.d)(n)&&(t.deleteFilesInstructions.push(u(n,!1)),(0,E.e)(e)&&t.deleteFilesInstructions.push(u(n,!0))),t}),{deleteFilesInstructions:[],dbGuidsToClear:[]}),s=o.deleteFilesInstructions,l=o.dbGuidsToClear;(0,S.e)({deletes:s},n).catch(b.h),yield r.usingWriteTransaction((function(t){return t.deleteEntitiesByEntity(e)}));var f=t.getAllObjects().filter((function(t){return t.getEntity()===e})).map((function(e){return e.getGuid()})),p=Array.from(new Set([].concat((0,c.default)(l),(0,c.default)(f))));t.onDelete(p),(0,k.u)(p);var v=p.map((function(e){return{guid:e}}));yield b.p.apply(void 0,[{entity:e}].concat((0,c.default)(v)))})),function(e,n,r,i){return t.apply(this,arguments)})(e,this.objectCache,this.fileBackend,this.database)})),function(e){return i.apply(this,arguments)})},{key:"executeDBModelSyncInstructions",value:(r=(0,p.default)((function*(e,t){if(0!==e.length){var n=e.length>1;this.startupLogger.debug(`Found ${e.length} instruction${n?"s":""} to update the local database to the new schema.\n${e.map((function(e){return`- ${e.getDescription()}`})).join("\n")}`),yield this.database.usingWriteTransaction((function(){var n=(0,p.default)((function*(n){yield Promise.all(e.map((function(e){return e.runTransaction(n)}))),yield n.updateEntityMetadatas(t)}));return function(e){return n.apply(this,arguments)}})()),yield Promise.all(e.map((function(e){return e.postMigrate()})))}})),function(e,t){return r.apply(this,arguments)})},{key:"deleteFiles",value:function(e){if(0!==e.length){var t=this.fileBackend.toAbsolutePath(S.a)+"/",n=this.fileBackend.toAbsolutePath(S.T)+"/",r=e.map((function(e){var r=e.guid,i=e.changedDate;return`${e.isThumb?n:t}${(0,S.f)(r,i)}`}));(0,S.e)({deletes:r},this.fileBackend).catch((function(e){return(0,b.h)(e)}))}}},{key:"_retrieveJson",value:(n=(0,p.default)((function*(e,t,n){var r;if(null!=(r=this.syncConfig.online)&&r.includes(e))throw new h.A("Can not retrieve objects with online sync mode from offline database");var i=yield this.database.usingReadTransaction((function(){var r=(0,p.default)((function*(r){return[yield r.retrieveMxObjects(e,t,n),yield r.retrieveMxObjectsCount(e,t)]}));return function(e){return r.apply(this,arguments)}})()),a=(0,f.default)(i,2),u=a[0],o=a[1];return{jsons:u.map((function(e){return he.mapMxObjectJSON(e)})),count:o}})),function(e,t,r){return n.apply(this,arguments)})},{key:"retrieveOfflineMetadata",value:(t=(0,p.default)((function*(){return this.database.usingReadTransaction((function(e){return e.retrieveEntityMetadatas()}))})),function(){return t.apply(this,arguments)})},{key:"runFullSynchronization",value:(e=(0,p.default)((function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,r=yield(0,G.r)((0,p.default)((function*(){var r=yield e.upload(n);return e.downloadObjects(r,t,n)})));yield b.p.apply(void 0,(0,c.default)(r))})),function(){return e.apply(this,arguments)})},{key:"hasOnlineSyncMode",value:function(e){return this.onlineEntities.has(e)}}]);var e,t,n,r,i,a,u,o,y,O,M,C,x,A,P,D,_,R,B})(),vt=_e2.N=(function(e){function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,s.default)(this,n),e=D(this,n,["Not implemented"+(""!==r?": "+r:"")]),Object.setPrototypeOf((0,t.default)(e),n.prototype),e}return(0,u.default)(n,e),(0,l.default)(n)})((0,n.default)(Error)),yt=(function(e){function t(e,n,r,i){var a;return(0,s.default)(this,t),(a=D(this,t))._store=n,a._getDocumentUrl=i||bt,a._objectCache=e,a._fileBackend=r,a}return(0,u.default)(t,e),(0,l.default)(t,[{key:"getByGuid",value:(c=(0,p.default)((function*(e,t){var n=this,r=(yield Promise.all(e.map((function(e){return n._getByGuid(e)})))).filter((function(e){return null!=e}));return this._objectCache.setMxObjects(r),{mxobjs:r.map((function(e){var t=e.guid;return n._objectCache.getObject(t)})),count:r.length}})),function(e,t){return c.apply(this,arguments)})},{key:"getByPath",value:(o=(0,p.default)((function*(e,t,n,r){var i=this,a=(0,j.h)(t);if("reverse"===r){var u,o=(0,j.c)(e,r,t,this._objectCache).cachedObjects,c=(null!=(u=(0,E.g)(n))&&u.isPersistable?yield this._store.getByAttribute(n,a,ge(e)):[]).map((function(e){return he.mapMxObjectJSON(e)})).filter((function(t){return T.M.fromJson(t).getReferences(a).includes(e)})).filter((function(e){return!o.some((function(t){return t.getGuid()===e.guid}))}));this._objectCache.setMxObjects(c);var s=o.concat(c.map((function(e){return i._objectCache.getObject(e.guid)})));return{mxobjs:s,count:s.length}}var l=this._objectCache.getObject(e);if(!l){var p=yield this.getByGuid([e]),h=(0,f.default)(p.mxobjs,1)[0];h&&(l=h)}if(!l)return{mxobjs:[],count:0};var v=(0,j.j)(l,this._objectCache,a),y=v.cachedObjects,m=v.uncachedGuids,b=(yield this.getByGuid(m)).mxobjs,O=b.concat(y);return this._objectCache.setMxObjects(b.map((function(e){return e.jsonData}))),{mxobjs:O,count:O.length}})),function(e,t,n,r){return o.apply(this,arguments)})},{key:"commit",value:(a=(0,p.default)((function*(e,t){var n=this,r=(0,T.o)(e.map((function(e){return[e,$e(n._objectCache.getChanges(e))]}))),i=(0,h.p)((function(e){return n._objectCache.has(e)}),e),a=(0,f.default)(i,2),u=a[0],o=a[1],c=u.map((function(e){return n._objectCache.getObject(e)})),s=(0,h.p)((function(e){return e.isPersistable()}),c),l=(0,f.default)(s,2),p=l[0],v=l[1],y=p.map(mt),m=(yield Promise.all(o.map((function(e){return n._getByGuid(e)})))).concat(y).map(x);if(m.length>0){var b=he.reverse(),O=m.reduce((function(e,t){return e.mappedObjectsJsons.push(b.mapMxObjectJSON(t)),e.objectsJsons.push(t),e.guids.push(t.guid),e}),{mappedObjectsJsons:[],objectsJsons:[],guids:[]}),w=O.mappedObjectsJsons,E=O.objectsJsons,$=O.guids;yield(0,j.o)().insertOrReplace(w),(0,k.m)($),this._objectCache.setMxObjects(E)}var S,M,C=v.map(mt).map(x);return this._objectCache.setMxObjects(C),this._objectCache.onCommit(e),this._objectCache.removeChanges((S=r,M={},Object.keys(S).forEach((function(e){M[e]=Object.keys(S[e])})),M)),{};function x(e){var t=r[e.guid];return{guid:e.guid,objectType:e.objectType,attributes:(0,T.m)(Object.assign({},t,e.attributes),(function(e,n){return Object.assign({},e,{value:t.hasOwnProperty(n)?t[n].value:e.value})}))}}})),function(e,t){return a.apply(this,arguments)})},{key:"rollback",value:function(e){var t=this;this._objectCache.removeAllChanges(e);var n=e.filter((function(e){return t._objectCache.isNew(e)}));return this._objectCache.onDelete(n),Promise.resolve({})}},{key:"validate",value:function(e){return Promise.resolve({})}},{key:"saveDocument",value:(i=(0,p.default)((function*(e,t,n,r){var i;if(r.size/1048576>n.maxFileSize)throw new m.D("File too large");var a=yield this._getByGuid(e),u=(0,S.f)(ge(e),a?null==(i=a.attributes.changedDate)?void 0:i.value:void 0);yield this._fileBackend.storeFile(r,this._fileBackend.toAbsolutePath(S.a+"/"+u)),this._objectCache.makeChange(e,"HasContents",!0),yield this.commit([e],null)})),function(e,t,n,r){return i.apply(this,arguments)})},{key:"getDocumentUrl",value:function(e,t,n,r){return this._getDocumentUrl((0,S.f)(ge(e),t),t,n)}},{key:"getImageUrl",value:function(e){return Promise.resolve(e)}},{key:"cleanup",value:(r=(0,p.default)((function*(){yield(0,j.o)().cleanDatabase(),yield this._fileBackend.removeDir(this._fileBackend.toAbsolutePath(S.a)),yield this._fileBackend.removeDir(this._fileBackend.toAbsolutePath(S.T)),(0,k.c)()})),function(){return r.apply(this,arguments)})},{key:"remove",value:(n=(0,p.default)((function*(e){var t=(yield this.getByGuid(e)).mxobjs;yield(0,j.o)().delete(t)})),function(e){return n.apply(this,arguments)})},{key:"_getByGuid",value:function(e){var t=this;return(0,S.m)(e,(function(){return t._store.getByGuid(ge(e))}))}}]);var n,r,i,a,o,c})(_e2._=(function(){return(0,l.default)((function e(){(0,s.default)(this,e)}),[{key:"getByGuid",value:function(e,t){return Promise.reject(new vt("getByGuid"))}},{key:"getByPath",value:function(e,t,n,r){return Promise.reject(new vt("getByPath"))}},{key:"getByXPath",value:function(e,t,n){return Promise.reject(new vt("getByXPath"))}},{key:"action",value:function(e,t,n,r,i){return Promise.reject(new vt("action"))}},{key:"create",value:function(e){return Promise.reject(new vt("create"))}},{key:"commit",value:function(e,t,n,r){return Promise.reject(new vt("commit"))}},{key:"rollback",value:function(e){return Promise.reject(new vt("rollback"))}},{key:"remove",value:function(e){return Promise.reject(new vt("remove"))}},{key:"validate",value:function(e){return Promise.reject(new vt("validate"))}},{key:"saveDocument",value:function(e,t,n,r){return Promise.reject(new vt("saveDocument"))}},{key:"getDocumentUrl",value:function(e,t,n){throw new vt("getDocumentUrl")}},{key:"getImageUrl",value:function(e){return Promise.reject(new vt("getImageUrl"))}},{key:"cleanup",value:function(){return Promise.reject(new vt("cleanup"))}}])})());function mt(e){return e.jsonData}function bt(e,t,n){var r=S.D+"/"+(n?S.T:S.a);return`filesystem:${window.mx.appUrl}temporary/${r}/${e}?${Date.now()}`}var jt=(function(){return(0,l.default)((function e(t){(0,s.default)(this,e),this._database=t}),[{key:"getByGuid",value:(e=(0,p.default)((function*(e){var t=yield this._database.usingReadTransaction((function(t){return t.retrieveMxObjectByGuids([e])}));return t.length>0?t[0]:null})),function(t){return e.apply(this,arguments)})},{key:"getByAttribute",value:function(e,t,n){return this._database.usingReadTransaction((function(r){var i,a,u;if("guid"===t)return r.retrieveMxObjectByGuids([n]);var o=null!=(i=null==(a=(0,E.g)(e))||null==(u=a.attributes[t])?void 0:u.type)?i:"String";return"ObjectReference"===o||"ObjectReferenceSet"===o?r.retrieveMxObjectsByReferrals(e,t,n):r.retrieveMxObjects(e,{type:"function",name:"=",parameters:[{type:"attribute",attribute:t,attributeType:o},{type:"value",value:n,isGuid:!1}]})}))}}]);var e})();function Ot(){return(Ot=(0,p.default)((function*(e,t,n,r,i,a,u){var o=new gt(n,e,r,t,i);yield o.initialize(z,u);var c=new jt(t);return{dataBackend:new yt(e,c,r,a),offlineData:o}}))).apply(this,arguments)}}),438,[2,19,12,20,22,13,24,5,6,25,26,27,18,36,38,439,440,31,441,430,437,37,443,445,33,34,444,446,447,449,454,455,448]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.toUserScopedName=e.setUserScopedNamePrefix=e.getUserScopedNamePrefix=void 0;var o="";e.getUserScopedNamePrefix=function(){return o},e.setUserScopedNamePrefix=function(t){o=t},e.toUserScopedName=function(t){return o?`${o}$${t}`:t}}),439,[]); +__d((function(g,_r,_i,_a,m,_e,_d){var t=_r(_d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.A=function(t,n,r,e,a,i){return dt.apply(this,arguments)},_e.B=function(t){return yt.apply(this,arguments)},_e.D=_e.C=void 0,_e.E=function(t,n){return jt.apply(this,arguments)},_e.F=function(t){return nt.apply(this,arguments)},_e.G=function(t,n){return kt.apply(this,arguments)},_e.V=_e.U=_e.S=void 0,_e._=function(t,n,r){return ut.apply(this,arguments)},_e.b=_e.a=void 0,_e.c=function(){return vt.apply(this,arguments)},_e.d=function(t,n,r,e,a,i){return X.apply(this,arguments)},_e.e=function(t){return Y.apply(this,arguments)},_e.f=function(t,n,r,e,a){return tt.apply(this,arguments)},_e.g=function(t,n){return B.apply(this,arguments)},_e.h=function(t,n,r,e){return at.apply(this,arguments)},_e.i=function(t,n,r){return rt.apply(this,arguments)},_e.j=function(t,n,r){return it.apply(this,arguments)},_e.k=function(t,n,r,e,a){return Z.apply(this,arguments)},_e.l=function(t,n,r,e,a,i){return ot.apply(this,arguments)},_e.m=function(t,n,r,e){return pt.apply(this,arguments)},_e.n=function(t){return I.push(t),function(){var n=I.indexOf(t);-1!==n&&I.splice(n,1)}},_e.o=function(t,n,r){return ct.apply(this,arguments)},_e.p=function(){return ft.apply(this,arguments)},_e.q=function(){return lt.apply(this,arguments)},_e.r=function(t,n){return Q.apply(this,arguments)},_e.s=function(t,n){return mt.apply(this,arguments)},_e.t=function(t){return st.apply(this,arguments)},_e.u=function(t,n,r,e,a,i){return ht.apply(this,arguments)},_e.v=function(t,n){return et.apply(this,arguments)},_e.w=function(){return Ot.apply(this,arguments)},_e.x=function(){return wt.apply(this,arguments)},_e.y=function(t){return gt.apply(this,arguments)},_e.z=bt;var n=t(_r(_d[1])),r=t(_r(_d[2])),e=t(_r(_d[3])),a=t(_r(_d[4])),i=t(_r(_d[5])),u=t(_r(_d[6])),o=t(_r(_d[7])),c=t(_r(_d[8])),s=t(_r(_d[9])),f=t(_r(_d[10])),l=t(_r(_d[11])),p=_r(_d[12]),d=_r(_d[13]);function y(t,n,r){return n=(0,s.default)(n),(0,c.default)(t,h()?Reflect.construct(n,r||[],(0,s.default)(t).constructor):n.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}var v=_e.D=(function(t){function n(t){var r;return(0,u.default)(this,n),r=y(this,n,[t]),Object.setPrototypeOf((0,o.default)(r),n.prototype),r}return(0,f.default)(n,t),(0,i.default)(n)})((0,l.default)(Error)),b={},j=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return`%${t.charCodeAt(0).toString(16).toUpperCase()}`}))},w=new RegExp("(%[a-f0-9]{2})|([^%]+?)","gi"),O=new RegExp("(%[a-f0-9]{2})+","gi");function k(t,n){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;n=n||1;var r=t.slice(0,n),e=t.slice(n);return Array.prototype.concat.call([],k(r),k(e))}function x(t){try{return decodeURIComponent(t)}catch(e){for(var n=t.match(w)||[],r=1;r0})).join("&")},t.parseUrl=function(t,n){n=Object.assign({decode:!0},n);var r=u(t,"#"),e=(0,a.default)(r,2),i=e[0],o=e[1];return Object.assign({url:i.split("?")[0]||"",query:v(y(t),n)},n&&n.parseFragmentIdentifier&&o?{fragmentIdentifier:l(o,n)}:{})},t.stringifyUrl=function(n,e){e=Object.assign((0,r.default)({encode:!0,strict:!0},c,!0),e);var a=d(n.url).split("?")[0]||"",i=t.extract(n.url),u=t.parse(i,{sort:!1}),o=Object.assign(u,n.query),s=t.stringify(o,e);s&&(s=`?${s}`);var l=(function(t){var n="",r=t.indexOf("#");return-1!==r&&(n=t.slice(r)),n})(n.url);return n.fragmentIdentifier&&(l=`#${e[c]?f(n.fragmentIdentifier,e):n.fragmentIdentifier}`),`${a}${s}${l}`},t.pick=function(n,e,a){a=Object.assign((0,r.default)({parseFragmentIdentifier:!0},c,!1),a);var i=t.parseUrl(n,a),u=i.url,s=i.query,f=i.fragmentIdentifier;return t.stringifyUrl({url:u,query:o(s,e),fragmentIdentifier:f},a)},t.exclude=function(n,r,e){var a=Array.isArray(r)?function(t){return!r.includes(t)}:function(t,n){return!r(t,n)};return t.pick(n,a,e)}})(b);var $=_e.b=(function(){return(0,i.default)((function t(){(0,u.default)(this,t),this.startedAt=0,this.reset()}),[{key:"measure",value:function(){var t=performance.now()-this.startedAt;return{ms:t,toString:function(){return t.toFixed(1)}}}},{key:"reset",value:function(){this.startedAt=performance.now()}}])})(),_=_e.C=(function(t){function n(t){var r;return(0,u.default)(this,n),r=y(this,n,[t]),Object.setPrototypeOf((0,o.default)(r),n.prototype),r}return(0,f.default)(n,t),(0,i.default)(n)})((0,l.default)(Error)),N=_e.a=(function(t){function n(t){var r;return(0,u.default)(this,n),r=y(this,n,[t]),Object.setPrototypeOf((0,o.default)(r),n.prototype),r}return(0,f.default)(n,t),(0,i.default)(n)})(v),I=[];function A(t,n){return T.apply(this,arguments)}function T(){return T=(0,n.default)((function*(t,r){return(function(){var t=(0,n.default)((function*(t,n){return t===I.length?r(n):(0,d.e)(I[t])(n,(function(n){return e(t+1,n)}))}));function e(n,r){return t.apply(this,arguments)}return e})()(0,t)})),T.apply(this,arguments)}var C=(function(t){function n(){return(0,u.default)(this,n),y(this,n,arguments)}return(0,f.default)(n,t),(0,i.default)(n)})((0,l.default)(Error)),U=_e.S=(function(t){function n(t,r){var e;return(0,u.default)(this,n),(e=y(this,n,[null!=r?r:"Internal server error"])).status=t,Object.setPrototypeOf((0,o.default)(e),n.prototype),e}return(0,f.default)(n,t),(0,i.default)(n)})((0,l.default)(Error)),R=_e.U=(function(t){function n(t){var r;return(0,u.default)(this,n),r=y(this,n,[t]),Object.setPrototypeOf((0,o.default)(r),n.prototype),r}return(0,f.default)(n,t),(0,i.default)(n)})(U),P=_e.V=(function(t){function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.default)(this,n),(t=y(this,n)).original=r,Object.setPrototypeOf((0,o.default)(t),n.prototype),t}return(0,f.default)(n,t),(0,i.default)(n)})((0,l.default)(Error)),G=p.L.get().getLogger(p.a.Network);function B(){return(B=(0,n.default)((function*(t,n){G.trace(`Starting GET ${t}`);var r=new $,e={url:t,init:{method:"get",headers:new Headers,cache:"force-cache",credentials:"include"}},a=yield A(e,L);if(G.trace(`Finished GET ${t} in ${r.measure()} milliseconds. Response code ${a.status}.`),!a.ok)throw new U(a.status,a.statusText);switch(n){case"text":return a.text();case"json":return M(a);case"blob":return a.blob()}}))).apply(this,arguments)}function L(t){return q.apply(this,arguments)}function q(){return(q=(0,n.default)((function*(t){var n;t.init.body=(0,d.i)(t.body)?JSON.stringify(t.body):t.body;try{n=yield window.fetch(t.url,t.init)}catch(t){throw new _(t instanceof Error?t.message:String(t))}switch(n.status){case 200:return n;case 400:case 401:case 402:case 403:case 460:throw new R(n.status);case 502:case 504:throw new U(n.status,n.statusText);case 551:throw new P(yield n.json());case 560:var r=yield D(n);throw r?new N(r):new U(n.status);case 12029:throw new _("No connection");default:throw new U(n.status,yield D(n))}}))).apply(this,arguments)}function D(t){return J.apply(this,arguments)}function J(){return(J=(0,n.default)((function*(t){var n=yield M(t);return n&&"description"in n?n.description:void 0}))).apply(this,arguments)}function M(t){return V.apply(this,arguments)}function V(){return(V=(0,n.default)((function*(t){var n=yield t.text();try{return JSON.parse(n)}catch(t){throw new C(`Expected response body to be JSON. Instead received: "${n}"`)}}))).apply(this,arguments)}var z,H,W,K=(z=(function(){var t=(0,n.default)((function*(t,n){var r={url:t,body:n,init:{method:"post",headers:new Headers(Object.assign({Accept:"application/json"},(0,d.i)(n)?{"Content-Type":"application/json"}:{})),redirect:"error",credentials:"include"}};return M(yield A(r,L))}));return function(n,r){return t.apply(this,arguments)}})(),H=p.L.get().getLogger(p.a.Network),(function(){var t=(0,n.default)((function*(t,n){var r,e="object"==typeof(r=n)&&null!==r&&"action"in r&&"string"==typeof r.action?n.action:void 0;void 0!==e?H.trace(`Starting runtime action: ${e}`):H.trace(`Starting POST ${t}`);var a=new $,i=yield z(t,n);return void 0!==e?H.trace(`Finished runtime action "${e}" in ${a.measure()} milliseconds.`):H.trace(`Finished POST ${t} in ${a.measure()} milliseconds.`),i}));return function(n,r){return t.apply(this,arguments)}})());function Q(){return(Q=(0,n.default)((function*(t,n){return K(bt(),{action:"retrieve_by_ids",params:{ids:t,schema:n}})}))).apply(this,arguments)}function X(){return(X=(0,n.default)((function*(t,n,r,e,a,i){return K(bt(),{action:"retrieve_by_path",params:{id:t,path:n,entity:r,direction:e},changes:a,objects:i})}))).apply(this,arguments)}function Y(){return Y=(0,n.default)((function*(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return K(bt(),{action:"retrieve_by_xpath",params:{xpath:t,schema:n,count:r}})})),Y.apply(this,arguments)}function Z(){return(Z=(0,n.default)((function*(t,n,r,e,a){return K(bt(),{action:"runtimeOperation",operationId:t,params:n,options:r,changes:e,objects:a})}))).apply(this,arguments)}function tt(){return(tt=(0,n.default)((function*(t,n,r,e,a){return K(bt(),{action:"executeaction",params:Object.assign({},t,{asyncid:a}),changes:r,objects:e,context:n.getGuids()})}))).apply(this,arguments)}function nt(){return(nt=(0,n.default)((function*(t){return K(bt(),{action:"poll_background_job",params:{asyncid:t}})}))).apply(this,arguments)}function rt(){return(rt=(0,n.default)((function*(t,n,r){return K(bt(),{action:"instantiate",params:{objecttype:t},changes:n,objects:r})}))).apply(this,arguments)}function et(){return(et=(0,n.default)((function*(t,n){return K(bt(),{action:"validate",params:{},changes:t,objects:n})}))).apply(this,arguments)}function at(){return(at=(0,n.default)((function*(t,n,r,e){return K(bt(),{action:"commit",params:{guids:t},changes:r,objects:e,context:n.getGuids()})}))).apply(this,arguments)}function it(){return(it=(0,n.default)((function*(t,n,r){return K(bt(),{action:"rollback",params:{guids:t},changes:n,objects:r})}))).apply(this,arguments)}function ut(){return(ut=(0,n.default)((function*(t,n,r){return K(bt(),{action:"delete",params:{guids:t},changes:n,objects:r})}))).apply(this,arguments)}function ot(){return(ot=(0,n.default)((function*(t,n,r,e,a,i){return K(bt(),{action:"runtimeOperation",operationId:t,params:n,asyncid:i,validationGuids:a,changes:r,objects:e})}))).apply(this,arguments)}function ct(){return(ct=(0,n.default)((function*(t,n,r){return K(bt(),{action:"login",params:{username:t,password:n,useAuthToken:r}})}))).apply(this,arguments)}function st(){return(st=(0,n.default)((function*(t){return K(bt(),{action:"get_session_data",params:Object.assign({},t,{version:2})})}))).apply(this,arguments)}function ft(){return(ft=(0,n.default)((function*(){return K(bt(),{action:"logout",params:{}})}))).apply(this,arguments)}function lt(){return(lt=(0,n.default)((function*(){return K(bt(),{action:"keepalive",params:{}})}))).apply(this,arguments)}function pt(){return(pt=(0,n.default)((function*(t,n,r,e){yield K(bt(),{action:"export",params:Object.assign({},t,{asyncid:e}),changes:n,objects:r})}))).apply(this,arguments)}function dt(){return(dt=(0,n.default)((function*(t,n,r,e,a,i){return K(bt(),{action:"synchronize_objects",changes:t,fileGuidMapping:n,returnObjects:r,deletes:e,extraGuidsToRetrieve:null!=a?a:[],incompatibleChanges:null!=i?i:[]})}))).apply(this,arguments)}function yt(){return(yt=(0,n.default)((function*(t){return K(bt(),{action:"create_guids",params:{entities:t}})}))).apply(this,arguments)}function ht(){return(ht=(0,n.default)((function*(t,n,r,e,a,i){var u=mx.remoteUrl+"file?"+b.stringify(Object.assign({},r,{guid:t})),o=new FormData;return o.append("data",JSON.stringify({changes:a,objects:i})),n?o.append("blob",e,n):o.append("blob",e),K(u,o)}))).apply(this,arguments)}function gt(){return gt=(0,n.default)((function*(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt();return K(n,{action:"get_ota_info",params:{platform:t,nativeDependencies:arguments.length>2?arguments[2]:void 0,nativeBinaryVersion:arguments.length>3?arguments[3]:void 0}})})),gt.apply(this,arguments)}function mt(){return mt=(0,n.default)((function*(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bt();return K(r,{action:"log_batched_client_logs",params:{id:t,logs:n}})})),mt.apply(this,arguments)}function vt(){return vt=(0,n.default)((function*(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt();return K(t,{action:"get_client_log_levels"})})),vt.apply(this,arguments)}function bt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:mx.remoteUrl)+"xas/"}function jt(){return(jt=(0,n.default)((function*(t,n){return t.then((function(t){return n(),t}),(function(t){return n(),Promise.reject(t)}))}))).apply(this,arguments)}function wt(){return(wt=(0,n.default)((function*(){return new Promise((function(){}))}))).apply(this,arguments)}function Ot(){return Ot=(0,n.default)((function*(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(n){setTimeout((function(){n()}),t)}))})),Ot.apply(this,arguments)}function kt(){return kt=(0,n.default)((function*(t,n){for(var r=arguments.length,e=new Array(r>2?r-2:0),a=2;a0&&void 0!==arguments[0]?arguments[0]:{};for(var u of Object.entries(n)){var c=(0,t.default)(u,2),l=c[0],o=c[1];for(var f of o.split(",")){var s=JSON.parse(l);j[f]={parameters:s.p},s.a&&(j[f].followedAssociations=s.a.map((function(n){var u=(0,t.default)(n,2);return{association:u[0],fromEntity:u[1]}})))}}})(c),y=l,O=s},e.j=R,e.k=function(){return(0,s.e)(y)},e.o=function(){return(0,s.e)(O)},e.s=function(n){b=n};var t=n(r(d[1])),u=n(r(d[2])),c=r(d[3]),l=r(d[4]),o=r(d[5]),f=r(d[6]),s=r(d[7]),v=r(d[8]);r(d[9]);var p=(new Date).getTime();function h(){return(h=(0,u.default)((function*(n){var t=p++;yield n(t);for(var u=500;;){var c=yield(0,v.F)(t);if(c.response.finished)return c;yield(0,v.w)(u),u=Math.min(u+500,8e3)}}))).apply(this,arguments)}var b,y,O,j={};function w(){return(0,s.e)(b)}function D(){return(D=(0,u.default)((function*(n){return new Promise((function(t,u){return w().get({guids:n,callback:t,error:u})}))}))).apply(this,arguments)}function S(){return(S=(0,u.default)((function*(n){return new Promise((function(t,u){return w().get({guid:n,callback:function(n){t(null!=n?n:void 0)},error:u})}))}))).apply(this,arguments)}var T={String:null,Integer:null,Long:null,Decimal:null,Enum:null,HashString:null,ObjectReference:null,ObjectReferenceSet:[],DateTime:null,Boolean:!1,AutoNumber:"0",Binary:null,EnumSet:null};function R(n,t,u){var c=n.getReferences(u);return{cachedObjects:c.map((function(n){return t.getObject(n)})).filter((function(n){return null!==n})),uncachedGuids:c.filter((function(n){return!t.has(n)}))}}function A(n){var t=n.split("/");return 1===t.length?n:t[0]}}),441,[2,27,18,37,38,442,436,36,440,31]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.a=function(){if(!f)throw new Error("DateFns locale not initialized");return f},e.g=function(){if(!l)throw new Error("Locale not initialized");return l},e.l=void 0,e.s=function(u,h){var c=u.code.toLowerCase().replace("_","-");l=Object.assign({},u,{code:c}),y=l,w=y.dates,p=y.firstDayOfWeek,P=y.minimalDaysInFirstWeek,M={wide:w.eras},k={narrow:w.shortMonths,abbreviated:w.shortMonths,wide:w.months},S={narrow:w.shortWeekdays,short:w.shortWeekdays,abbreviated:w.shortWeekdays,wide:w.weekdays},j={wide:{am:w.dayPeriods[0],pm:w.dayPeriods[1]}},C={any:b(w.eras)},A={any:W(w.eras)},x={narrow:b(w.shortMonths),abbreviated:b(w.shortMonths),wide:b(w.months)},D={narrow:W(w.shortMonths),abbreviated:W(w.shortMonths),wide:W(w.months)},F={narrow:b(w.shortWeekdays),short:b(w.shortWeekdays),abbreviated:b(w.shortWeekdays),wide:b(w.weekdays)},O={narrow:W(w.shortWeekdays),short:W(w.shortWeekdays),abbreviated:W(w.shortWeekdays),wide:W(w.weekdays)},T={any:b(w.dayPeriods)},z={any:{am:(0,n.e)(W(w.dayPeriods)[0]),pm:(0,n.e)(W(w.dayPeriods)[1])}},f=Object.assign({},v,{options:{weekStartsOn:p,firstWeekContainsDate:P},localize:Object.assign({},v.localize,{era:o({values:M,defaultWidth:"wide"}),month:o({values:k,defaultWidth:"wide"}),day:o({values:S,defaultWidth:"wide"}),dayPeriod:o({values:j,defaultWidth:"wide"})}),match:Object.assign({},v.match,{era:s({matchPatterns:C,defaultMatchWidth:"any",parsePatterns:A,defaultParseWidth:"any"}),month:s({matchPatterns:x,defaultMatchWidth:"wide",parsePatterns:D,defaultParseWidth:"wide"}),day:s({matchPatterns:F,defaultMatchWidth:"wide",parsePatterns:O,defaultParseWidth:"wide"}),dayPeriod:s({matchPatterns:T,defaultMatchWidth:"any",parsePatterns:z,defaultParseWidth:"any"})})}),t.Big.RM="HALF_UP"===h?t.Big.roundHalfUp:t.Big.roundHalfEven;var y,w,p,P,M,k,S,j,C,A,x,D,F,O,T,z};var t=r(d[0]),n=r(d[1]);function o(t){return function(n,o){var s;if("formatting"===(null!=o&&o.context?String(o.context):"standalone")&&t.formattingValues){var u=t.defaultFormattingWidth||t.defaultWidth,h=null!=o&&o.width?String(o.width):u;s=t.formattingValues[h]||t.formattingValues[u]}else{var l=t.defaultWidth,f=null!=o&&o.width?String(o.width):t.defaultWidth;s=t.values[f]||t.values[l]}return s[t.argumentCallback?t.argumentCallback(n):n]}}function s(t){return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.width,u=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],h=n.match(u);if(!h)return null;var l,f=h[0],c=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],y=Array.isArray(c)?(function(t,n){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}var h,l,f,c={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},y={date:u({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:u({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:u({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},w={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},v=e.l={code:"en-US",formatDistance:function(t,n,o){var s,u=c[t];return s="string"==typeof u?u:1===n?u.one:u.other.replace("{{count}}",n.toString()),null!=o&&o.addSuffix?o.comparison&&o.comparison>0?"in "+s:s+" ago":s},formatLong:y,formatRelative:function(t,n,o,s){return w[t]},localize:{ordinalNumber:function(t,n){var o=Number(t),s=o%100;if(s>20||s<10)switch(s%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:o({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:o({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:o({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:o({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:o({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(h={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.match(h.matchPattern);if(!o)return null;var s=o[0],u=t.match(h.parsePattern);if(!u)return null;var l=h.valueCallback?h.valueCallback(u[0]):u[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(s.length)}}),era:s({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:s({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:s({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function b(t){return new RegExp(`^(${t.map(p).join("|")})`,"i")}function W(t){return t.map((function(t){return new RegExp(`^${p(t)}`,"i")}))}function p(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),442,[430,36]); +__d((function(g,r,_i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.a=_e.M=void 0,_e.d=S,_e.l=C,_e.m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.keys(t).reduce((function(i,u){return i[u]=e.call(n,t[u],u),i}),{})},_e.o=function(t){return t.reduce((function(t,e){return t[e[0]]=e[1],t}),{})},_e.v=D;var e=t(r(d[1])),n=t(r(d[2])),i=t(r(d[3])),u=t(r(d[4])),s=t(r(d[5])),o=t(r(d[6])),l=t(r(d[7])),h=r(d[8]),f=r(d[9]),c=r(d[10]),v=r(d[11]),y=r(d[12]),b=r(d[13]);function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}var _=new l.default("1e20"),k=new l.default(2).pow(31).times(-1),w=new l.default(2).pow(31).minus(1),R=new l.default(2).pow(63).times(-1),A=new l.default(2).pow(63).minus(1);function j(t,e,n){return t.gte(e)&&t.lte(n)}var O=_e.a={OK:0,NOT_INTEGER:1,RANGE_INTEGER:2,RANGE_LONG:3,RANGE_DECIMAL:4};function D(t,e){if(/^(Integer|Long|Decimal)$/.test(e)){if(""===t||null===t)return O.OK;if(t instanceof l.default||(t=new l.default(t)),("Integer"===e||"Long"===e)&&(function(t){return!t.mod(1).eq(0)})(t))return O.NOT_INTEGER;if("Integer"===e&&!j(t,k,w))return O.RANGE_INTEGER;if("Long"===e&&!j(t,R,A))return O.RANGE_LONG;if("Decimal"===e&&t.abs().gte(_))return O.RANGE_DECIMAL;if("Decimal"===e&&!t.mod(1e-8).eq(0))return O.RANGE_DECIMAL}return O.OK}function C(t){var e=new Date;return e.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),e.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),e}function S(t){var e=new Date;return e.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}var T=Symbol("snapshot"),E=_e.M=(function(){function t(e){var n,i,u;(0,s.default)(this,t),this._guid="0",this._unavailable=!1,this.id="mendix.lib.MxObject";var o=e,l=null==(n=o.json)?void 0:n.objectType;if(!o.meta||!l)throw new h.A(`new MxObject(): cannot create Mendix object. Check entity access for entity ${l}`);this.metaData=e.meta,this._isPartial=null!=(i=e.isPartial)&&i,this._jsonData=e.json,this._updateFromJsonData(),this.id+="("+l+":"+this._guid+")",this._partialTreeId=this._isPartial?null!=(u=e.partialTreeId)?u:(0,v.n)("partial"):void 0}return(0,o.default)(t,[{key:"jsonData",get:function(){return this._jsonData}},{key:"resetFromJSON",value:function(t){this._jsonData=t,this._updateFromJsonData()}},{key:"markAsUnavailable",value:function(){this._jsonData={guid:this._guid,attributes:{}},this._updateFromJsonData(),this._unavailable=!0}},{key:"_updateFromJsonData",value:function(){for(var t in this._guid=this._jsonData.guid,this._jsonData.attributes){var e=t;this._setAttributeValue(e,this._getAttributeValue(e))}}},{key:"getGuid",value:function(){return this._guid}},{key:"hasChanges",value:function(){return!(function(t){for(var e in t)return!1;return!0})((0,b.a)().getChanges(this._guid))}},{key:"snapshot",value:function(){var t;return null!=(t=this[T])?t:this[T]=new $(this)}},{key:"isUnavailable",value:function(){return this._unavailable}},{key:"isPartial",value:function(){return this._isPartial}},{key:"set",value:function(t,e){this._setContent(t,e)}},{key:"set2",value:function(t,e){this._setContent(t,(0,f.b)(e))}},{key:"isReadonlyAttr",value:function(t){if(this.has(t)){var e=this._jsonData.attributes[t];return!(!e||!("readonly"in e))&&e.readonly}var n=this.metaData.attributes[t];return void 0===n||n.isAlwaysReadOnly}},{key:"fetch",value:function(t,e,n){var i,u=this;i=t?t instanceof Array?t.slice():t.split("/"):[],this.isA(i[0])&&i.shift();var s=this;function o(t){n?n(t):(0,c.h)(t)}!(function t(){if(0===i.length)e(s);else if(1===i.length)e(s.get(i[0]));else{var n=i.shift(),l=i.shift();s._fetchReference(n,l,(function(n){void 0===n?e(null):Array.isArray(n)?0===i.length?e(n):o(new h.A(`${u.id}.fetch : ${s} reference set should be last reference in path`)):(s=n,t())}),o)}})()}},{key:"_fetchReference",value:function(t,e,n,i){var u=this,s=this.getReferences(t);0!==s.length?(0,b.a)().get({guids:s,callback:function(i){if(u.isObjectReferenceSet(t))0===i.length||i[0].isA(e)?n(i):n(void 0);else{var s=i[0];null!=s&&s.isA(e)?n(s):n(void 0)}},error:i}):n(void 0)}},{key:"get",value:function(t){if("string"!=typeof t)throw new h.A(`parameter attr ${t} is not of type String`);return this.has(t)?this._convertToClientValue(t,this.getRawValue(t)):null}},{key:"get2",value:function(t){if("string"!=typeof t)throw new h.A(`parameter attr ${t} is not of type String`);return(0,f.c)(this.has(t)?this._convertToClientValue(t,this.getRawValue(t)):null,this.getAttributeType(t))}},{key:"getOriginalValue",value:function(t){if("string"!=typeof t)throw new h.A(`parameter attr ${t} is not of type String`);return this.has(t)?this._convertToClientValue(t,this._getRawOriginalValue(t)):null}},{key:"has",value:function(t){if("string"!=typeof t)throw new h.A("attribute parameter is not a string");return(0,h.v)(this._jsonData.attributes,t)}},{key:"getReferences",value:function(t){if("string"!=typeof t)throw new h.A(`parameter attr ${t} is not of type String.`);if(!this.has(t))return[];if(!this.isReference(t))throw new h.A("attribute "+t+" is not an ObjectReference(Set).");var e=this.getRawValue(t);return this.isObjectReference(t)?null==e?[]:[e]:null==e?[]:e.slice()}},{key:"getOriginalReferences",value:function(t){if("string"!=typeof t)throw new h.A(`parameter attr ${t} is not of type String.`);if(!this.has(t))return[];if(!this.isReference(t))throw new h.A("attribute "+t+" is not an ObjectReference(Set).");var e=this._getRawOriginalValue(t);return this.isObjectReference(t)?null==e?[]:[e]:null==e?[]:e.slice()}},{key:"getReference",value:function(t){return this.get(t)}},{key:"isEnum",value:function(t){var e;return"Enum"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isNumeric",value:function(t){var e;return(0,h.w)(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isPassword",value:function(t){var e;return"HashString"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isDate",value:function(t){var e;return"DateTime"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isLocalizedDate",value:function(t){var e;return Boolean(null==(e=this.metaData.attributes[t])?void 0:e.isDateLocalized)}},{key:"isBoolean",value:function(t){var e;return"Boolean"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isReference",value:function(t){var e;return(0,h.s)(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isObjectReference",value:function(t){var e;return"ObjectReference"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"isObjectReferenceSet",value:function(t){var e;return"ObjectReferenceSet"===(null==(e=this.metaData.attributes[t])?void 0:e.type)}},{key:"hasChildren",value:function(t){if("string"!=typeof t)throw new h.A(`parameter attr (${t}) is not of type String.`);return!this._attributeChanged(t)&&this._hasChildren(t)}},{key:"getChildren",value:function(t){if("string"!=typeof t)throw new h.A(`parameter attr (${t}) is not of type String.`);if(!this.has(t))return[];if(!this.isReference(t))throw new h.A(`attribute ${t} is not an ObjectReference(Set).`);return this._attributeChanged(t)?[]:this._hasChildren(t)?this._getChildren(t):[]}},{key:"getChild",value:function(t){if("string"!=typeof t)throw new h.A(`parameter attr(${t}) is not of type String.`);if(this.has(t)){if(!this.isObjectReference(t))throw new h.A("attribute "+t+" is not an ObjectReference.");var e=this.getChildren(t);return 0===e.length?null:e[0]}}},{key:"removeReferences",value:function(t,e){if("string"!=typeof t)throw new h.A("parameter attr is not of type String.");if(!this.has(t))return!1;if(!this.isReference(t))throw new h.A("attempt to remove Reference from non-Reference attribute : "+t);var n=Array.isArray(e)?e:[e];if(this._attributeChanged(t)||!this._hasChildren(t))this.isObjectReference(t)?this._setContent(t,null):this._setContent(t,N(this.getReferences(t),n));else{if(!this.isObjectReference(t)){var i=this._jsonData.attributes[t],u=i&&"value"in i?i.value:i;for(var s of n)delete u[s];var o=N(this.getReferences(t),n);return this._makeChange(t,o)}this._setContent(t,null)}return!0}},{key:"addReference",value:function(t,e){if("string"!=typeof t)throw new h.A("parameter attr is not of type String.");if(!e)throw new h.A("parameter guid is not set.");if(!this.has(t))return!1;if(!this.isReference(t))throw new h.A("attempt to add Reference to non-Reference attribute : "+t);if(this.isObjectReference(t))this._setContent(t,e);else{var n=this.getReferences(t);n.join(";").match(e)||(n.push(e),this._setContent(t,n))}return!0}},{key:"addReferences",value:function(t,e){if("string"!=typeof t)throw new h.A("parameter attr is not of type String.");if(!Array.isArray(e))throw new h.A("parameter guids is not an Array.");if(!this.has(t))return!1;if(!this.isObjectReferenceSet(t))throw new h.A("attempt to add References to non-ReferenceSet attribute : "+t);var n=this.getReferences(t),i=e.filter((function(t){return!n.includes(t)}));return i.length>0&&this._setContent(t,n.concat(i)),!0}},{key:"getReferenceAttributes",value:function(){var t=this;return Object.values(this.metaData.attributes).filter((function(e){return(0,h.s)(e.type)&&t.has(e.name)})).map((function(t){return t.name}))}},{key:"getAttributes",value:function(){var t=this;return Object.values(this.metaData.attributes).filter((function(e){return t.has(e.name)})).map((function(t){return t.name}))}},{key:"getPrimitives",value:function(){var t=this;return Object.values(this.metaData.attributes).filter((function(e){return!(0,h.s)(e.type)&&t.has(e.name)})).map((function(t){return t.name}))}},{key:"getAttributeType",value:function(t){return!!this.has(t)&&this.metaData.attributes[t].type}},{key:"getSelectorEntity",value:function(t){var e,n;return this.has(t)?null!=(e=null==(n=this.metaData.attributes[t])?void 0:n.referenceEntity)&&e:null}},{key:"getEntity",value:function(){return this.metaData.name}},{key:"isPersistable",value:function(){return this.metaData.isPersistable}},{key:"isRemoteFileEntity",value:function(){return!!this.metaData.isRemoteFileEntity}},{key:"isNew",value:function(){return(0,b.a)().isNew(this._guid)}},{key:"isA",value:function(t){return(0,y.h)(this.metaData.name,t)}},{key:"hasSuperEntities",value:function(){return this.metaData.generalizations.length>0}},{key:"getSuperEntities",value:function(){return this.metaData.generalizations}},{key:"hasSubEntities",value:function(){return this.metaData.specializations.length>0}},{key:"getSubEntities",value:function(){return this.metaData.specializations}},{key:"inheritsFrom",value:function(t){return this.metaData.generalizations.includes(t)}},{key:"toJSON",value:function(){return this._jsonData}},{key:"toString",value:function(){return this._partialTreeId?`${this.getGuid()}_${this._partialTreeId}`:this.getGuid()}},{key:"getRawValue",value:function(t){var e=(0,b.a)().getChanges(this._guid);return Object.prototype.hasOwnProperty.call(e,t)?e[t].value:this._getRawOriginalValue(t)}},{key:"_getRawOriginalValue",value:function(t){return this._hasChildren(t)?this._getChildValue(t):this._getAttributeValue(t)}},{key:"_attributeChanged",value:function(t){var e=(0,b.a)().getChanges(this._guid);return Object.prototype.hasOwnProperty.call(e,t)}},{key:"_getChildren",value:function(e){var n=this;return(this.isObjectReference(e)?[this._getAttributeValue(e)]:Object.values(this._getAttributeValue(e))).map((function(e){return t.fromJson(e,!0,n._partialTreeId)}))}},{key:"_getChildValue",value:function(t){var e=this._getChildren(t).map((function(t){return t.getGuid()}));return this.isObjectReference(t)?0===e.length?null:e[0]:e}},{key:"_convertToRuntimeValue",value:function(t,e){var n=this.getAttributeType(t),i=(0,f.d)(e,n),u=(0,f.e)(i,"String"===n&&""===e);if(this.isNumeric(t)&&D(u,n)!==O.OK)throw new Error(`Cannot set invalid value '${e}' to MxObject attribute '${t}'`);return this.isDate(t)&&!this.isLocalizedDate(t)&&"number"==typeof u?S(new Date(u)).getTime():this.isPassword(t)?e.replace(/[\s\t]+$/,"").replace(/^[\s\t]+/,""):u}},{key:"_convertToClientValue",value:function(t,e){var n;if("string"!=typeof t)throw new Error("mendix/lib/MxMetaObject.isDate : parameter attr is not of type String.");var i=(0,f.r)(e,null==(n=this.metaData.attributes[t])?void 0:n.type);return this.isDate(t)&&""!==i?this.isLocalizedDate(t)?i:C(new Date(i)).getTime():i}},{key:"_setContent",value:function(t,e){var n,i=this;if("string"!=typeof t)throw new h.A(`parameter attr (${t}) is not of type String.`);if((0,h.v)(this.metaData.attributes,t)){var u=this._convertToRuntimeValue(t,e),s=this.getRawValue(t);u!==s&&(this._makeChange(t,u),(null==(n=this.metaData.attributes[t])?void 0:n.isBidiReference)&&(V(this.isObjectReference(t)?[s]:N(s,u)).filter((function(e){return!e.isReadonlyAttr(t)&&e.getReferences(t).includes(i._guid)})).forEach((function(e){return e.removeReferences(t,[i._guid])})),V(this.isObjectReference(t)?[u]:N(u,s)).filter((function(e){return!e.isReadonlyAttr(t)&&!e.getReferences(t).includes(i._guid)})).forEach((function(e){return e.addReference(t,i._guid)}))))}}},{key:"_hasChildren",value:function(t){if(!this.isReference(t))return!1;var e=this._getAttributeValue(t);return null!==e&&"object"==typeof e&&!Array.isArray(e)}},{key:"_getAttributeValue",value:function(t){var e,n=null!=(e=this._jsonData.attributes[t])?e:null;return n&&"value"in n?n.value:n}},{key:"_setAttributeValue",value:function(t,e){var n=this._jsonData.attributes[t];void 0===e&&(e=null),n&&"value"in n?n.value=e:this._jsonData.attributes[t]=e}},{key:"_makeChange",value:function(t,e){if(this.isUnavailable())throw new h.A(`Cannot modify attribute ${t} of an unavailable object.`);(0,b.a)().makeChange(this._guid,t,e),(0,c.p)({guid:this._guid,attr:t}).catch(c.h)}}],[{key:"fromJson",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;return new t({json:e,meta:(0,y.g)(e.objectType),isPartial:n,partialTreeId:i})}}])})();function V(t){return t.map((function(t){return(0,b.a)().getCachedObject(t)})).filter((function(t){return null!=t}))}function N(t,e){return t.filter((function(t){return!e.includes(t)}))}var $=(function(t){function l(t){var n,u,o,h;return(0,s.default)(this,l),u=this,o=l,h=[{meta:t.metaData,json:{guid:t.getGuid(),objectType:t.getEntity()}}],o=(0,i.default)(o),(n=(0,e.default)(u,p()?Reflect.construct(o,h||[],(0,i.default)(u).constructor):o.apply(u,h)))._mxObject=t,n.isSnapshot=!0,n}return(0,u.default)(l,t),(0,o.default)(l,[{key:"resetFromJSON",value:function(t){(0,n.default)((0,i.default)(l.prototype),"resetFromJSON",this).call(this,t),this._mxObject.resetFromJSON(t)}},{key:"markAsUnavailable",value:function(){(0,n.default)((0,i.default)(l.prototype),"markAsUnavailable",this).call(this),this._mxObject.markAsUnavailable()}},{key:"hasChanges",value:function(){return!1}},{key:"snapshot",value:function(){return this}},{key:"isReadonlyAttr",value:function(t){return!0}},{key:"isPartial",value:function(){return this._mxObject.isPartial()}},{key:"toString",value:function(){return this._mxObject.toString()}},{key:"_fetchReference",value:function(t,e,u,s){(0,n.default)((0,i.default)(l.prototype),"_fetchReference",this).call(this,t,e,(function(t){t instanceof E?u(t.snapshot()):Array.isArray(t)?u(t.map((function(t){return t.snapshot()}))):u(t)}),s)}},{key:"has",value:function(t){return this._mxObject.has(t)}},{key:"toJSON",value:function(){return this._mxObject.toJSON()}},{key:"_attributeChanged",value:function(t){return!1}},{key:"getRawValue",value:function(t){return this._mxObject._getRawOriginalValue(t)}},{key:"_getAttributeValue",value:function(t){return this._mxObject._getAttributeValue(t)}},{key:"_makeChange",value:function(t){throw new h.A(`Cannot modify attribute ${t} of a read-only object.`)}},{key:"_getChildren",value:function(t){return this._mxObject._getChildren(t).map((function(t){return t.snapshot()}))}},{key:"convertToEditable",value:function(){return(0,b.a)().removeChanges(this.getGuid()),this._mxObject}}])})(E)}),443,[2,20,22,13,24,25,26,430,36,429,31,444,37,441]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.n=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";return`${o}_${n}_${t++}`};var n=Array(3).fill(null).map((function(){return Math.floor(20*Math.random())})).map((function(n){return"abcdefghijklmnopqrst"[n]})).join(""),t=0}),444,[]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.c=function(){n.clear()},e.i=function(t){return n.has(t)},e.m=function(t){t.forEach((function(t){return n.add(t)}))},e.u=function(t){t.forEach((function(t){return n.delete(t)}))};var n=new Set}),445,[]); -__d((function(g,r,_i,a,m,_e,d){var n=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.a=_e.T=_e.D=void 0,_e.b=y,_e.c=s,_e.d=function(n,e,t,u,i){return b.apply(this,arguments)},_e.e=function(n,e,t){return w.apply(this,arguments)},_e.f=function(n,e,t){return $.apply(this,arguments)},_e.g=h,_e.h=v,_e.i=function(n,e){return j.apply(this,arguments)},_e.m=function(n,e){return f.apply(this,arguments)},_e.t=function(n,e){return n+"/"+e};var e=n(r(d[1])),t=n(r(d[2])),u=r(d[3]),i=r(d[4]);r(d[5]),r(d[6]);var o=r(d[7]),l=r(d[8]),c={};function f(){return(f=(0,t.default)((function*(n,e){var t=JSON.stringify(n);return t in c?c[t]:c[t]=(0,i.B)(e(n),(function(){delete c[t]}))}))).apply(this,arguments)}function s(n){var e=Object.create(null);return function(t){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o2&&void 0!==arguments[2])||arguments[2],u=z(n,!1),i=z(e,!1);if($.moves.push([u,i,n.guid]),t&&(0,o.c)(n.objectType)){var l=z(n,!0),c=z(e,!0);$.moves.push([l,c,n.guid])}})(n,e,!1),(0,o.c)(n.objectType)&&C(e)}else M(n),A(j[n.guid])})),F.filter((function(n){return k(n)&&!k(j[n.guid])})).forEach((function(n){return M(n)})),F.filter((function(n){return!k(n)&&k(j[n.guid])})).forEach((function(n){return A(j[n.guid])})),$;function A(n){var e=G(n,!1);$.downloads.push([O(n,!1),e,n.guid]),$.moves.push([e,z(n,!1),n.guid]),(0,o.c)(n.objectType)&&C(n)}function C(n){var e=G(n,!0);$.downloads.push([O(n,!0),e,n.guid]),$.moves.push([e,z(n,!0),n.guid])}function M(n){var e=z(n,!1);$.deletes.push(e),(0,o.c)(n.objectType)&&$.deletes.push(z(n,!0))}function O(n,e){return h(n.guid,p(n),e)}function z(n,e){return y(n,v,f.toAbsolutePath((e?"thumbnails":"documents")+"/"))}function G(n,e){return z(n,e)+"_tmp"}function k(n){return!0===(0,u.e)(n.attributes.HasContents).value}})),b.apply(this,arguments)}function w(){return(w=(0,t.default)((function*(n,t,u){var o=n.downloads,l=n.moves,c=n.deletes,f=new i.a;void 0!==o&&(null!=u&&u.trace(`Downloading ${o.length} file documents.`),f.reset(),yield Promise.all(o.map((function(n){var u=(0,e.default)(n,2),i=u[0],o=u[1];return t.downloadFile(i,o)}))),null!=u&&u.trace(`Downloaded ${o.length} file documents in ${f.measure()} milliseconds.`)),void 0!==l&&(null!=u&&u.trace(`Moving ${l.length} file objects.`),f.reset(),yield Promise.all(l.map((function(n){var u=(0,e.default)(n,2),i=u[0],o=u[1];return t.moveFile(i,o)}))),null!=u&&u.trace(`Moved ${l.length} file objects in ${f.measure()} milliseconds.`)),void 0!==c&&(null!=u&&u.trace(`Deleting ${c.length} file objects.`),f.reset(),yield Promise.all(c.map((function(n){return t.removeFile(n)}))),null==u||u.trace(`Deleted ${c.length} file objects in ${f.measure()} milliseconds.`))}))).apply(this,arguments)}function j(){return j=(0,t.default)((function*(n,e){var o,l="documents/"+v(e.guid,(0,u.e)(e.attributes.changedDate).value),c=yield n.readFile(n.toAbsolutePath(l)),f=yield(o=(0,t.default)((function*(n,e,t,o){for(var l=0;l<=o;l++)try{return yield(0,i.u)(n,e,{},t,{},[])}catch(n){if(!(l0&&void 0!==arguments[0]?arguments[0]:{};for(var o of Object.entries(n)){var u=(0,t.default)(o,2),f=u[0],c=u[1];for(var l of c.split(",")){var s=JSON.parse(f);h[l]={parameters:s.p},s.a&&(h[l].followedAssociations=s.a.map((function(n){var o=(0,t.default)(n,2);return{association:o[0],fromEntity:o[1]}})))}}})(c),p=l,y=s},e.o=function(){return(0,c.e)(y)};var t=n(r(d[1])),o=n(r(d[2])),u=r(d[3]),f=r(d[4]),c=r(d[5]),l=r(d[6]);r(d[7]),r(d[8]);var s=(new Date).getTime();function v(){return(v=(0,o.default)((function*(n){var t=s++;yield n(t);for(var o=500;;){var u=yield(0,l.E)(t);if(u.response.finished)return u;yield(0,l.w)(o),o=Math.min(o+500,8e3)}}))).apply(this,arguments)}var p,y,h={}}),447,[2,23,12,448,436,32,444,37,27]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.a=function(){if(!f)throw new Error("DateFns locale not initialized");return f},e.e=void 0,e.g=function(){if(!l)throw new Error("Locale not initialized");return l},e.s=function(u,h){var c=u.code.toLowerCase().replace("_","-");l=Object.assign({},u,{code:c}),y=l,w=y.dates,p=y.firstDayOfWeek,P=y.minimalDaysInFirstWeek,M={wide:w.eras},k={narrow:w.shortMonths,abbreviated:w.shortMonths,wide:w.months},S={narrow:w.shortWeekdays,short:w.shortWeekdays,abbreviated:w.shortWeekdays,wide:w.weekdays},j={wide:{am:w.dayPeriods[0],pm:w.dayPeriods[1]}},C={any:b(w.eras)},A={any:W(w.eras)},x={narrow:b(w.shortMonths),abbreviated:b(w.shortMonths),wide:b(w.months)},D={narrow:W(w.shortMonths),abbreviated:W(w.shortMonths),wide:W(w.months)},F={narrow:b(w.shortWeekdays),short:b(w.shortWeekdays),abbreviated:b(w.shortWeekdays),wide:b(w.weekdays)},O={narrow:W(w.shortWeekdays),short:W(w.shortWeekdays),abbreviated:W(w.shortWeekdays),wide:W(w.weekdays)},T={any:b(w.dayPeriods)},z={any:{am:(0,n.e)(W(w.dayPeriods)[0]),pm:(0,n.e)(W(w.dayPeriods)[1])}},f=Object.assign({},v,{options:{weekStartsOn:p,firstWeekContainsDate:P},localize:Object.assign({},v.localize,{era:o({values:M,defaultWidth:"wide"}),month:o({values:k,defaultWidth:"wide"}),day:o({values:S,defaultWidth:"wide"}),dayPeriod:o({values:j,defaultWidth:"wide"})}),match:Object.assign({},v.match,{era:s({matchPatterns:C,defaultMatchWidth:"any",parsePatterns:A,defaultParseWidth:"any"}),month:s({matchPatterns:x,defaultMatchWidth:"wide",parsePatterns:D,defaultParseWidth:"wide"}),day:s({matchPatterns:F,defaultMatchWidth:"wide",parsePatterns:O,defaultParseWidth:"wide"}),dayPeriod:s({matchPatterns:T,defaultMatchWidth:"any",parsePatterns:z,defaultParseWidth:"any"})})}),t.Big.RM="HALF_UP"===h?t.Big.roundHalfUp:t.Big.roundHalfEven;var y,w,p,P,M,k,S,j,C,A,x,D,F,O,T,z};var t=r(d[0]),n=r(d[1]);function o(t){return function(n,o){var s;if("formatting"===(null!=o&&o.context?String(o.context):"standalone")&&t.formattingValues){var u=t.defaultFormattingWidth||t.defaultWidth,h=null!=o&&o.width?String(o.width):u;s=t.formattingValues[h]||t.formattingValues[u]}else{var l=t.defaultWidth,f=null!=o&&o.width?String(o.width):t.defaultWidth;s=t.values[f]||t.values[l]}return s[t.argumentCallback?t.argumentCallback(n):n]}}function s(t){return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.width,u=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],h=n.match(u);if(!h)return null;var l,f=h[0],c=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],y=Array.isArray(c)?(function(t,n){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}var h,l,f,c={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},y={date:u({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:u({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:u({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},w={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},v=e.e={code:"en-US",formatDistance:function(t,n,o){var s,u=c[t];return s="string"==typeof u?u:1===n?u.one:u.other.replace("{{count}}",n.toString()),null!=o&&o.addSuffix?o.comparison&&o.comparison>0?"in "+s:s+" ago":s},formatLong:y,formatRelative:function(t,n,o,s){return w[t]},localize:{ordinalNumber:function(t,n){var o=Number(t),s=o%100;if(s>20||s<10)switch(s%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:o({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:o({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:o({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:o({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:o({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(h={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.match(h.matchPattern);if(!o)return null;var s=o[0],u=t.match(h.parsePattern);if(!u)return null;var l=h.valueCallback?h.valueCallback(u[0]):u[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(s.length)}}),era:s({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:s({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:s({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function b(t){return new RegExp(`^(${t.map(p).join("|")})`,"i")}function W(t){return t.map((function(t){return new RegExp(`^${p(t)}`,"i")}))}function p(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),448,[430,32]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.a=function(n,t,u){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c=(0,l.m)(n,(function(n){var c,f=n.source,l=n.widget,b=null!=(c=null==u?void 0:u[l])?c:{};return f in b?(0,s.o)((0,s.c)(b[f])):v(t,f,l,o)}));return(0,s.f)("Load action parameters",(function(){return(0,l.m)(c,(function(n){return n.dependOn()}))}))},e.b=function(n){return b.apply(this,arguments)},e.c=function(n,t,u){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=Object.entries(n).map((function(n){var t=(0,o.default)(n,2),u=t[0];return{name:u,value$:b(u,t[1])}}));return(0,s.f)(`Parameters of ${u}`,(function(){var n=f.map((function(n){return{name:n.name,value:n.value$.dependOn()}}));return n.every((function(n){return"loading"!==n.value.status}))?c&&n.some((function(n){return"available"!==n.value.status}))?(0,s.d)():(0,s.c)(Object.fromEntries(n.filter((function(n){return"available"===n.value.status})).map((function(n){var t=n.name,u=n.value;return(0,l.k)(t,(0,s.w)(u))})))):(0,s.v)()}));function b(n,o){var c=`Value of ${n} parameter of ${u}`,f=v(t,o.source,o.widget);return(0,s.f)(c,(function(){return(0,s.q)(f.dependOn(),(function(n){return void 0!==n?"object"in n?{guid:n.object.getGuid()}:"objects"in n?{guids:n.objects.map((function(n){return n.getGuid()}))}:"selection"in n?Array.isArray(n.selection)?{guids:n.selection}:{guid:n.selection}:(0,l.o)():(0,l.o)()}))}))}},e.d=function(n,t,f){var b=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=Object.entries(n).map((function(n){var b=(0,o.default)(n,2),p=b[0],j=b[1],y=j.source,h=j.widget,O=v(t,y,h);return{name:p,value$:(0,s.t)(`Parameter ${p} of ${f}`,(function(){var n=O.dependOn();if("available"!==n.status)return n;var t,o=n.value;return void 0!==o?"object"in o?(0,s.c)(o.object):"objects"in o?(0,s.c)(o.objects):"selection"in o?(t=(0,u.default)((function*(n){return Array.isArray(n)?(t=(0,u.default)((function*(n){return(0,c.g)(n).then((function(t){var u=(0,l.x)(t,(function(n){return n.getGuid()}));return n.map((function(n){return u[n]})).filter((function(n){return n}))}))})),function(n){return t.apply(this,arguments)})(n).then((function(n){return(0,s.c)(n)})):(0,c.b)(n).then((function(n){return n?(0,s.c)(n):(0,s.d)()}));var t})),function(n){return t.apply(this,arguments)})(o.selection):(0,l.o)():(0,l.o)()}))}}));return(0,s.f)(`Parameters of ${f}`,(function(){var n=p.map((function(n){return{name:n.name,value:n.value$.dependOn()}}));return n.every((function(n){return"loading"!==n.value.status}))?b&&n.some((function(n){return"available"!==n.value.status}))?(0,s.d)():(0,s.c)(n.map((function(n){var t=n.name,u=n.value;return{name:t,value:(0,s.b)(u,void 0)}}))):(0,s.v)()}))},e.g=function(n){var u=[];return Object.values(n).forEach((function(n){"guid"in n?u.push(n.guid):"guids"in n&&u.push.apply(u,(0,t.default)(n.guids))})),u},e.t=function(n){var t={};return Object.keys(n).forEach((function(u){var o=n[u];if(o)if("objects"in o)t[u]={guids:o.objects.map((function(n){return n.getGuid()}))};else if("object"in o)t[u]={guid:o.object.getGuid()};else if("selection"in o){var c=o.selection;t[u]=Array.isArray(c)?{guids:c}:{guid:c}}else t[u]=o})),t};var t=n(r(d[1])),u=n(r(d[2])),o=n(r(d[3])),c=r(d[4]),f=r(d[5]),s=r(d[6]),l=r(d[7]);function v(n,t,u){var c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];switch(t){case"object":return(function(n,t){var u=(0,f.g)(n,t);return(0,s.f)(`Load object of ${t}`,(function(){return(0,s.q)(u.dependOn(),(function(n){return{object:n}}))}))})(n,u);case"selection":return(function(n,t,u){var c=n.useSlot(t,"selection"),f=(0,o.default)(c,1)[0];return(0,s.f)(`Load selection of ${t}`,(function(){var n=f.dependOn();return n&&(u||n.length>0)?(0,s.c)({selection:n}):(0,s.d)()}))})(n,u,c);default:(0,l.o)()}}function b(){return(b=(0,u.default)((function*(n){var t=new Set;Object.keys(n).forEach((function(u){var o=n[u];void 0!==o&&(("object"in o?[o.object]:"objects"in o?o.objects:[]).filter((function(n){return n.isPartial()})).forEach((function(n){return t.add(n.getGuid())})),"selection"in o&&(Array.isArray(o.selection)?o.selection.forEach((function(n){return t.add(n)})):t.add(o.selection)))}));var u=(0,l.x)(yield(0,c.g)(Array.from(t)),(function(n){return n.getGuid()}));function o(n){return"string"==typeof n?u[n]:n.isPartial()?u[n.getGuid()]:n}function f(n){return n.map(o).filter((function(n){return n}))}return Object.keys(n).map((function(t){var u=n[t];return{name:t,value:u&&("object"in u?o(u.object):"objects"in u?f(u.objects):"selection"in u?Array.isArray(u.selection)?f(u.selection):o(u.selection):(0,l.o)())}}))}))).apply(this,arguments)}}),449,[2,6,12,23,442,450,27,32]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.A=void 0,e.a=p,e.b=function(t,n,u){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=p(t,n,u,o);return(0,l.f)(`Get single object from retrieve by ${n}`,(function(){return(0,l.x)(f.dependOn(),(function(t){return"cacheMiss"!==t?1===t.length?(0,l.c)(t[0]):0===t.length?(0,l.d)():(0,c.o)():(0,l.c)("cacheMiss")}))}))},e.c=function(t,u,o){return(0,l.f)(`Value of ${u}`,(function(){return(0,l.q)(t.dependOn(),(function(t){return t.isPartial()||((0,l.y)({guid:t.getGuid()},o),(0,l.y)({guid:t.getGuid(),attr:u},o)),t.has(u)?(function(t){return{access:arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.Write,value:t}})(t.get2(u),t.isReadonlyAttr(u)?n.Read:n.Write):{access:n.None}}))}))},e.d=v,e.e=function(t,n,u,o){return(0,l.f)(`Subscribe to objects of ${t}`,(function(){var f=u.dependOn();return"available"===f.status&&o(f.value).filter(h).forEach((function(u){return(0,l.y)({tag:t,guid:u.getGuid()},n)})),f}))},e.g=function(t,n){var u=t.useSlot(n,"object"),f=(0,o.default)(u,1)[0];return v(n,f,t)},e.w=function(t,n,u,f){var c,v=t.useSlot(s.p,"formSuspended"),h=(0,o.default)(v,1)[0],p=t.useSlot(n,"firstLoadDone"),b=(0,o.default)(p,1)[0];return(0,l.f)(`Load trigger when not suspended of data source of ${n}`,(function(){var t=h.dependOn(),n=u.dependOn(),o=!0!==(0,l.r)(b);return t&&null!=f&&f(),t&&!o&&void 0!==c||(c=n),c}))};var n,u=t(r(d[1])),o=t(r(d[2])),f=r(d[3]),c=r(d[4]),l=r(d[5]),s=r(d[6]);function v(t,n,u){return(0,l.f)(`Object of ${t}`,(function(){var o;return(0,l.x)(null!=(o=n.dependOn())?o:(0,l.v)(),(function(n){return(0,l.y)({guid:n.getGuid(),tag:t},u),n.isUnavailable()?(0,l.d)():(0,l.c)(n)}))}))}function h(t){var n=t.getGuid();return!t.isPartial()||mx.data.isNew(n)||Object.keys(mx.data.getChanges(n)).length}function p(t,n,c){for(var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],v=n.split("/"),h=(0,l.f)(`Root object to fetch ${n} from`,(function(){return(0,l.q)(t.dependOn(),(function(t){return[t]}))})),p=function(){var t=v.splice(0,2),p=(0,o.default)(t,2),b=p[0],y=p[1],G=h,O=(0,l.t)(`Fetch ${b} of ${n}`,(function(){var t,n=G.dependOn();if("available"!==n.status||"cacheMiss"===n.value)return n;var o=new Set,v=new Set,h=[];for(var p of n.value){var y;if(p.isPartial()||((0,l.y)({guid:p.getGuid()},c),(0,l.y)({guid:p.getGuid(),attr:b},c)),!p.has(b))return(0,l.d)();var O=p.getChildren(b);if(O.length)(y=h).push.apply(y,(0,u.default)(O));else for(var $ of p.getReferences(b)){var j=mx.data.getCachedObject($);j?v.add(j):o.add($)}}var S=new Set(Array.from(v).map((function(t){return t.getGuid()}))),w=function(t){(o.has(t)||S.has(t)||h.filter((function(n){return n.getGuid()===t})).length>1)&&(h=h.filter((function(n){return n.getGuid()!==t})),S.has(t)||o.add(t))};for(var A of h.map((function(t){return t.getGuid()})))w(A);return 0===o.size?(0,l.c)((t=h).concat.apply(t,(0,u.default)(v))):s?(0,l.c)("cacheMiss"):(0,f.g)(Array.from(o)).then((function(t){return(0,l.c)(t.concat.apply(t,(0,u.default)(h).concat((0,u.default)(v))))}))}));h=(0,l.f)(`Cast fetch result of ${b} in ${n}`,(function(){var t=O.dependOn();return"available"!==t.status||"cacheMiss"===t.value?t:(t.value.forEach((function(t){return(0,l.y)({guid:t.getGuid()},c)})),(0,l.c)(t.value.filter((function(t){return!t.isUnavailable()&&t.isA(y)}))))}))};v.length>0;)p();return h}!(function(t){t[t.None=0]="None",t[t.Read=1]="Read",t[t.Write=2]="Write"})(n||(e.A=n={}))}),450,[2,6,23,442,32,27,435]); -__d((function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.a=function(u){switch(typeof u){case"undefined":case"string":case"boolean":return u;case"number":return new e.Big(u);default:if(u instanceof e.Big||u instanceof Date||u instanceof n.M)return u;if(null===u)return;if(Array.isArray(u)){if(u.every((function(e){return e instanceof n.M})))return u;throw new t.A(`Array ${u.join(", ")} cannot be used as Nanoflow variable, because it contains something else then MxObjects.`)}throw new t.A(`Value ${u} cannot be used as Nanoflow variable.`)}},_e.b=c,_e.c=function(e){if(e){if("object"in e)return e.object;if("objects"in e)return e.objects;throw new t.A}},_e.d=function(e){if(void 0!==e)return f(e)?{guids:e.map((function(e){return e.getGuid()}))}:e instanceof n.M?{guid:e.getGuid()}:{value:o(e)}},_e.e=o,_e.i=f,_e.r=function(e,n,t){return(function(e,n,t){switch(n){case"ObjectReferenceSet":return Array.isArray(e)?e.map((function(e){return t(e)})):new Array;case"ObjectReference":return void 0!==e?t(e):void 0;default:return e}})((0,u.f)(e,n),n,t)},_e.t=function(e,n){return(0,u.h)(e.getRawValue(n),e.getAttributeType(n))};var e=r(d[0]),n=r(d[1]),t=r(d[2]),u=r(d[3]);function o(e){var n=c(e),t=(0,u.b)(n);return(0,u.e)(t,""===e)}function c(e){return(0,t.y)(n.M,e)?e.map((function(e){return e.getGuid()})):e instanceof n.M?e.getGuid():e}function f(e){return Array.isArray(e)&&e.every((function(e){return e instanceof n.M}))}}),451,[430,443,32,429]); -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.O=void 0;var i=t(r(d[1])),n=t(r(d[2])),u=r(d[3]),s=e.O=(function(){function t(n,u){(0,i.default)(this,t),this._guid=n,this._fields=u}return(0,n.default)(t,[{key:"getGuid",value:function(){return this._guid}},{key:"getAttributes",value:function(){var t=this;return Object.keys(this._fields).map((function(i){return{name:i,reason:t._fields[i]}}))}},{key:"getFields",value:function(){return this.getAttributes()}},{key:"addAttribute",value:function(t,i){return!(t in this._fields)&&(this._fields[t]=i,!0)}},{key:"addField",value:function(){return this.addAttribute.apply(this,arguments)}},{key:"removeAttribute",value:function(t){return t in this._fields&&(delete this._fields[t],!0)}},{key:"removeField",value:function(){return this.removeAttribute.apply(this,arguments)}},{key:"getErrorReason",value:function(t){return this._fields[t]}},{key:"getReasonByAttribute",value:function(){return this.getErrorReason.apply(this,arguments)}},{key:"clone",value:function(){return new t(this._guid,Object.assign({},this._fields))}},{key:"toString",value:function(){var t=this;return Object.keys(this._fields).map((function(i){return`${i} ${t._fields[i]}`})).join("; ")}}],[{key:"describe",value:function(t){for(var i=[],n=0;void 0!==t[n];n++)for(var s=t[n].getFields(),o=0;void 0!==s[o];o++)i.push((0,u.t)("mendix.lib.Validations","field_issue",s[o].name,s[o].reason));return i.join("\n")}}]),t})();s.fromResponse=function(t){return t.map((function(t){var i=t.guid,n=t.errorFields,u={};return n.forEach((function(t){var i=t.name,n=t.message;u[i]=n})),new s(i,u)}))}}),452,[2,21,22,436]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.g=function(){return(0,t.e)(n)},e.s=function(t){n=t};var n,t=r(d[0])}),453,[32]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.i=function(){return l},e.r=function(n){return s.apply(this,arguments)};var t=n(r(d[1])),u=r(d[2]),o=r(d[3]),y=r(d[4]),l=!1;function s(){return(s=(0,t.default)((function*(n){if(l)throw new o.D((0,u.t)("mxui.sys.UI","simultaneous_sync_error"));l=!0,yield(0,y.p)({param:"synchronizationState"});try{return yield n()}finally{l=!1,yield(0,y.p)({param:"synchronizationState"})}}))).apply(this,arguments)}}),454,[2,12,436,441,27]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={createNavigationContainer:!0,createStackNavigator:!0,createBottomTabNavigator:!0,createMaterialTopTabNavigator:!0,createDrawerNavigator:!0,StackGestureContext:!0,DrawerGestureContext:!0,DrawerRouter:!0,DrawerActions:!0,Transitioner:!0,StackView:!0,StackViewCard:!0,StackViewTransitionConfigs:!0,Header:!0,HeaderTitle:!0,HeaderBackButton:!0,HeaderStyleInterpolator:!0,DrawerView:!0,DrawerItems:!0,DrawerSidebar:!0,BottomTabBar:!0,MaterialTopTabBar:!0};Object.defineProperty(e,"BottomTabBar",{enumerable:!0,get:function(){return c.BottomTabBar}}),Object.defineProperty(e,"DrawerActions",{enumerable:!0,get:function(){return c.DrawerActions}}),Object.defineProperty(e,"DrawerGestureContext",{enumerable:!0,get:function(){return c.DrawerGestureContext}}),Object.defineProperty(e,"DrawerItems",{enumerable:!0,get:function(){return c.DrawerItems}}),Object.defineProperty(e,"DrawerRouter",{enumerable:!0,get:function(){return c.DrawerRouter}}),Object.defineProperty(e,"DrawerSidebar",{enumerable:!0,get:function(){return c.DrawerSidebar}}),Object.defineProperty(e,"DrawerView",{enumerable:!0,get:function(){return c.DrawerView}}),Object.defineProperty(e,"Header",{enumerable:!0,get:function(){return c.Header}}),Object.defineProperty(e,"HeaderBackButton",{enumerable:!0,get:function(){return c.HeaderBackButton}}),Object.defineProperty(e,"HeaderStyleInterpolator",{enumerable:!0,get:function(){return c.HeaderStyleInterpolator}}),Object.defineProperty(e,"HeaderTitle",{enumerable:!0,get:function(){return c.HeaderTitle}}),Object.defineProperty(e,"MaterialTopTabBar",{enumerable:!0,get:function(){return c.MaterialTopTabBar}}),Object.defineProperty(e,"StackGestureContext",{enumerable:!0,get:function(){return c.StackGestureContext}}),Object.defineProperty(e,"StackView",{enumerable:!0,get:function(){return c.StackView}}),Object.defineProperty(e,"StackViewCard",{enumerable:!0,get:function(){return c.StackViewCard}}),Object.defineProperty(e,"StackViewTransitionConfigs",{enumerable:!0,get:function(){return c.StackViewTransitionConfigs}}),Object.defineProperty(e,"Transitioner",{enumerable:!0,get:function(){return c.Transitioner}}),Object.defineProperty(e,"createBottomTabNavigator",{enumerable:!0,get:function(){return c.createBottomTabNavigator}}),Object.defineProperty(e,"createDrawerNavigator",{enumerable:!0,get:function(){return c.createDrawerNavigator}}),Object.defineProperty(e,"createMaterialTopTabNavigator",{enumerable:!0,get:function(){return c.createMaterialTopTabNavigator}}),Object.defineProperty(e,"createNavigationContainer",{enumerable:!0,get:function(){return c.createNavigationContainer}}),Object.defineProperty(e,"createStackNavigator",{enumerable:!0,get:function(){return c.createStackNavigator}});var n=r(d[0]);Object.keys(n).forEach((function(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(t,o)||o in e&&e[o]===n[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return n[o]}}))}));var o=r(d[1]);Object.keys(o).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===o[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return o[n]}}))}));var c=r(d[2])}),455,[456,503,540]); -__d((function(g,r,i,a,m,e,d){m.exports={get StateUtils(){return r(d[0]).default},get getNavigation(){return r(d[1]).default},get createNavigator(){return r(d[2]).default},get NavigationContext(){return r(d[3]).default},get NavigationProvider(){return r(d[3]).default.Provider},get NavigationConsumer(){return r(d[3]).default.Consumer},get createSwitchNavigator(){return r(d[4]).default},get ThemeContext(){return r(d[5]).default},get ThemeProvider(){return r(d[5]).default.Provider},get ThemeConsumer(){return r(d[5]).default.Consumer},get ThemeColors(){return r(d[6]).default},get useTheme(){return r(d[7]).default},get NavigationActions(){return r(d[8])},get StackActions(){return r(d[9])},get SwitchActions(){return r(d[10])},get StackRouter(){return r(d[11]).default},get TabRouter(){return r(d[12]).default},get SwitchRouter(){return r(d[13]).default},get createConfigGetter(){return r(d[14]).default},get getScreenForRouteName(){return r(d[15]).default},get validateRouteConfigMap(){return r(d[16]).default},get getActiveChildNavigationOptions(){return r(d[17]).default},get pathUtils(){return r(d[18])},get SceneView(){return r(d[19]).default},get SwitchView(){return r(d[20]).default},get NavigationEvents(){return r(d[21]).default},get withNavigation(){return r(d[22]).default},get withNavigationFocus(){return r(d[23]).default}}}),456,[457,459,466,469,470,467,490,491,461,478,477,492,494,471,475,472,479,496,480,489,488,497,498,502]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),u={get:function(n,t){return n.routes.find((function(n){return n.key===t}))||null},indexOf:function(n,t){return n.routes.findIndex((function(n){return n.key===t}))},has:function(n,t){return!!n.routes.some((function(n){return n.key===t}))},push:function(n,o){(0,t.default)(-1===u.indexOf(n,o.key),'should not push route with duplicated key %s',o.key);var s=n.routes.slice();return s.push(o),Object.assign({},n,{index:s.length-1,routes:s})},pop:function(n){if(n.index<=0)return n;var t=n.routes.slice(0,-1);return Object.assign({},n,{index:t.length-1,routes:t})},jumpToIndex:function(n,u){return u===n.index?n:((0,t.default)(!!n.routes[u],'invalid index %s to jump to',u),Object.assign({},n,{index:u}))},jumpTo:function(n,o){var s=u.indexOf(n,o);return(0,t.default)(-1!==s,'attempt to jump to unknown key "%s"',o),u.jumpToIndex(n,s)},back:function(n){var t=n.index-1;return n.routes[t]?u.jumpToIndex(n,t):n},forward:function(n){var t=n.index+1;return n.routes[t]?u.jumpToIndex(n,t):n},replaceAndPrune:function(n,t,o){var s=u.indexOf(n,t),f=u.replaceAtIndex(n,s,o);return Object.assign({},f,{routes:f.routes.slice(0,s+1)})},replaceAt:function(n,t,o){var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=u.indexOf(n,t),c=s?n.index:f,l=u.replaceAtIndex(n,f,o);return l.index=c,l},replaceAtIndex:function(n,u,o){if((0,t.default)(!!n.routes[u],'invalid index %s for replacing route %s',u,o.key),n.routes[u]===o&&u===n.index)return n;var s=n.routes.slice();return s[u]=o,Object.assign({},n,{index:u,routes:s})},reset:function(n,u,o){(0,t.default)(u.length&&Array.isArray(u),'invalid routes to replace');var s=void 0===o?u.length-1:o;if(n.routes.length===u.length&&n.index===s){if(n.routes.every((function(n,t){return u[t]===n})))return n}return(0,t.default)(!!u[s],'invalid index %s to reset',s),Object.assign({},n,{index:s,routes:u})}};e.default=u}),457,[2,458]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(n,o){for(var t=arguments.length,f=new Array(t>2?t-2:0),l=2;l0&&void 0!==arguments[0]?arguments[0]:{};return{type:t,key:n.key,immediate:n.immediate}},e.init=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o={type:n};return t.params&&(o.params=t.params),o},e.navigate=function(t){var n={type:o,routeName:t.routeName};return t.params&&(n.params=t.params),t.action&&(n.action=t.action),t.key&&(n.key=t.key),n},e.setParams=function(t){return{type:s,key:t.key,params:t.params,preserveFocus:!0}}}),461,[]); -__d((function(g,_r,i,a,m,e,d){var t=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(_r(d[1])),n=t(_r(d[2])),u=t(_r(d[3])),o=t(_r(d[4])),s=function(t){return function(r,n){var u=t.params;return u&&r in u?u[r]:n}};e.default=function t(c,f,l){var v=(0,u.default)(c),p=c.state.routes.find((function(t){return t.key===f}));if(!p)return null;if(v[f]&&v[f].state===p)return v[f];var y=(0,r.default)(c.router,p.routeName),P=p.routes&&'number'==typeof p.index?p.routes[p.index]:null,b=Object.assign({},c.actions,c.router.getActionCreators(p,c.state.key),y?y.getActionCreators(P,p.key):{},(0,n.default)(p)),h={};Object.keys(b).forEach((function(t){h[t]=function(){var r=b[t].apply(void 0,arguments);return c.dispatch(r)}}));var O=!0,j=l();if(j&&(O=0===j.state.routes.indexOf(p)),v[f]&&v[f].isFirstRouteInParent()===O)return v[f]=Object.assign({},v[f],h,{state:p,router:y,actions:b,getParam:s(p)}),v[f];var k=(0,o.default)(f),x=k.addListener,C=k.emit;return v[f]=Object.assign({},h,{state:p,router:y,actions:b,getParam:s(p),getChildNavigation:function(r){return t(v[f],r,(function(){var t=l();return t&&t.getChildNavigation(f)}))},isFocused:function(){var t=l();if(!t)return!1;var r=t.state,n=r.routes,u=r.index;return!!t.isFocused()&&n[u].key===f},isFirstRouteInParent:function(){return O},dispatch:c.dispatch,getScreenProps:c.getScreenProps,dangerouslyGetParent:l,addListener:x,emit:C}),v[f]}}),462,[2,463,460,464,465]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,t){var u;if(null===(u=o.childRouters)||void 0===u?void 0:u[t])return o.childRouters[t];return o.getComponentForRouteName(t).router}}),463,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){if(!n)return{};var t=n._childrenNavigation||(n._childrenNavigation={}),o=n.state.routes.map((function(n){return n.key}));return Object.keys(t).forEach((function(t){!o.includes(t)&&n.state.isTransitioning})),n._childrenNavigation}}),464,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t={},u=function(u,f){var o=t[u]?t[u][n]:void 0;if(o){var c=o.indexOf(f);o.splice(c,1)}};return{addListener:function(f,o){return t[f]=t[f]||{},t[f][n]=t[f][n]||[],t[f][n].push(o),{remove:function(){return u(f,o)}}},emit:function(u,f){var o=t[u]||{},c=o[n]&&o[n].slice();null==c||c.forEach((function(n){return n(f)}))}}}}),465,[]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),o=t(_r(d[4])),a=t(_r(d[5])),i=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var i=o?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r})(_r(d[6])),s=t(_r(d[7])),u=t(_r(d[8])),c=t(_r(d[9]));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(){return l=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=(0,f.default)(t,n);return(0,u.default)(l.default,o,n)}}),470,[2,466,471,488]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),a=e(_r(d[4])),o=l(_r(d[5])),i=l(_r(d[6])),u=l(_r(d[7])),s=e(_r(d[8])),f=_r(d[9]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}var p=function(){return{}};_e.default=function(e){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.default)(e);var l=c.order||Object.keys(e),y=c.getCustomActionCreators||p,v=c.initialRouteParams,O=c.initialRouteName||l[0],b=c.backBehavior||'none',x=!c.hasOwnProperty('resetOnBlur')||c.resetOnBlur,h=l.indexOf(O);if(-1===h)throw new Error("Invalid initialRouteName '".concat(O,"'.")+"Should be one of ".concat(l.map((function(e){return"\"".concat(e,"\"")})).join(', ')));var j={};function P(t,r){var n=e[t];return n&&n.params?Object.assign({},n.params,r):r}l.forEach((function(t){j[t]=null;var r=(0,n.default)(e,t);r.router&&(j[t]=r.router)}));var A=(0,f.createPathParser)(j,e,c),k=A.getPathAndParamsForRoute,N=A.getActionForPathAndParams;function _(e){var t=P(e,e===O?v:null),r=j[e];if(r){var n=o.init();return Object.assign({},r.getStateForAction(n),{key:e,routeName:e},t?{params:t}:{})}return Object.assign({key:e,routeName:e},t?{params:t}:{})}function F(e,r,n){var a=n;if(r&&n&&r.index!==n.index&&x){var i=r.routes[r.index].routeName,u=(0,t.default)(n.routes);u[r.index]=_(i),a=Object.assign({},n,{routes:u})}return(function(r,n){if('history'!==b||r&&n&&n.index===r.index)return n;var a=r?r.routeKeyHistory:[];if(e.type===o.NAVIGATE){a=(0,t.default)(a);var i=n.routes[n.index].key;(a=a.filter((function(e){return e!==i}))).push(i)}else e.type===o.BACK&&(a=(0,t.default)(a)).pop();return Object.assign({},n,{routeKeyHistory:a})})(r,a)}function w(){var e=l.map(_),t={routes:e,index:h};if('history'===b){var r=e[h].key;t.routeKeyHistory=[r]}return t}return{childRouters:j,getActionCreators:function(e,t){return y(e,t)},getStateForAction:function(e,r){var n=r?Object.assign({},r):r,a=r||w(),s=a.index;if(e.type===o.INIT){var f=e.params;f&&(a.routes=a.routes.map((function(e){return Object.assign({},e,{params:Object.assign({},e.params,f,e.routeName===O?v:null)})})))}if(e.type===i.JUMP_TO&&(null==e.key||e.key===a.key)){var c=e.params,p=a.routes.findIndex((function(t){return t.routeName===e.routeName}));if(-1===p)throw new Error("There is no route named '".concat(e.routeName,"' in the navigator with the key '").concat(e.key,"'.\n")+"Must be one of: ".concat(a.routes.map((function(e){return"'".concat(e.routeName,"'")})).join(',')));return F(e,n,Object.assign({},a,{routes:c?a.routes.map((function(e,t){return t===p?Object.assign({},e,{params:Object.assign({},e.params,c)}):e})):a.routes,index:p}))}var y=a.routes[a.index],x=j[l[a.index]];if(x){var P=x.getStateForAction(e,y);if(!P&&r)return null;if(P&&P!==y){var A=(0,t.default)(a.routes);return A[a.index]=P,F(e,n,Object.assign({},a,{routes:A}))}}var k=null==e.key||e.key===y.key;if(e.type===o.BACK)if(k&&'initialRoute'===b)s=h;else if(k&&'order'===b)s=Math.max(0,s-1);else if(k&&'history'===b&&a.routeKeyHistory.length>1){var N=a.routeKeyHistory[a.routeKeyHistory.length-2];s=l.indexOf(N)}var _=!1;if(e.type===o.NAVIGATE&&(_=!!l.find((function(t,r){return t===e.routeName&&(s=r,!0)})))){var S=a.routes[s],C=j[e.routeName],K=S;if(e.action&&C){var M=C.getStateForAction(e.action,S);M&&(K=M)}if(e.params&&(K=Object.assign({},K,{params:Object.assign({},K.params||{},e.params)})),K!==S){var T=(0,t.default)(a.routes);T[s]=K;var R=Object.assign({},a,{routes:T,index:s});return F(e,n,R)}if(K===S&&a.index===s&&n)return null}if(e.type===o.SET_PARAMS){var B=e.key,E=a.routes.find((function(e){return e.key===B}));if(E){var H=Object.assign({},E.params,e.params),I=(0,t.default)(a.routes);return I[a.routes.indexOf(E)]=Object.assign({},E,{params:H}),F(e,n,Object.assign({},a,{routes:I}))}}if(s!==a.index)return F(e,n,Object.assign({},a,{index:s}));if(_&&!r)return a;if(_)return Object.assign({},a);if(!(e.type===o.BACK||e.type===u.POP||e.type===u.POP_TO_TOP)||e.type===o.BACK&&null!=e.key){var W=a.index,D=a.routes;if(l.find((function(r,n){var a=j[r];if(n===W)return!1;var o=D[n];return a&&(o=a.getStateForAction(e,o)),o?o!==D[n]&&((D=(0,t.default)(D))[n]=o,W=n,!0):(W=n,!0)})),e.preserveFocus&&(W=a.index),W!==a.index||D!==a.routes)return F(e,n,Object.assign({},a,{index:W,routes:D}))}return a},getComponentForState:function(t){var a=t.routes[t.index].routeName;(0,r.default)(a,"There is no route defined for index ".concat(t.index,". Check that\n that you passed in a navigation state with a valid tab/screen index."));var o=j[a];return o?o.getComponentForState(t.routes[t.index]):(0,n.default)(e,a)},getComponentForRouteName:function(t){return(0,n.default)(e,t)},getPathAndParamsForState:function(e){var t=e.routes[e.index];return k(t)},getActionForPathAndParams:function(e,t){return N(e,t)},getScreenOptions:(0,a.default)(e,c.defaultNavigationOptions)}}}),471,[2,6,458,472,475,461,477,478,479,480]); -__d((function(g,r,i,_a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,o){var a=n[o];if(!a)throw new Error("There is no route defined for key ".concat(o,".\n")+"Must be one of: ".concat(Object.keys(n).map((function(n){return"'".concat(n,"'")})).join(',')));if(a.screen)return a.screen;if('function'==typeof a.getScreen){var u=a.getScreen();return(0,c.default)((0,t.isValidElementType)(u),"The getScreen defined for route '".concat(o," didn't return a valid ")+"screen or navigator.\n\nPlease pass it like this:\n"+"".concat(o,": {\n getScreen: () => require('./MyScreen').default\n}")),u}return a};var t=r(d[1]),c=n(r(d[2]))}),472,[2,473,458]); -__d((function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])}),473,[474]); -__d((function(_g,_r,i,_a,_m,_e,_d){'use strict';var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case u:case a:case r:case c:case n:case l:return e;default:switch(e=e&&e.$$typeof){case s:case y:case b:case p:case f:return e;default:return m}}case o:return m}}}function _(e){return M(e)===a}_e.AsyncMode=u,_e.ConcurrentMode=a,_e.ContextConsumer=s,_e.ContextProvider=f,_e.Element=t,_e.ForwardRef=y,_e.Fragment=r,_e.Lazy=b,_e.Memo=p,_e.Portal=o,_e.Profiler=c,_e.StrictMode=n,_e.Suspense=l,_e.isAsyncMode=function(e){return _(e)||M(e)===u},_e.isConcurrentMode=_,_e.isContextConsumer=function(e){return M(e)===s},_e.isContextProvider=function(e){return M(e)===f},_e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_e.isForwardRef=function(e){return M(e)===y},_e.isFragment=function(e){return M(e)===r},_e.isLazy=function(e){return M(e)===b},_e.isMemo=function(e){return M(e)===p},_e.isPortal=function(e){return M(e)===o},_e.isProfiler=function(e){return M(e)===c},_e.isStrictMode=function(e){return M(e)===n},_e.isSuspense=function(e){return M(e)===l},_e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===a||e===c||e===n||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===y||e.$$typeof===$||e.$$typeof===d||e.$$typeof===C||e.$$typeof===S)},_e.typeOf=M}),474,[]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3]));function s(t,n,o){return'function'==typeof t?Object.assign({},n,t(Object.assign({},o,{navigationOptions:n}))):'object'==typeof t?Object.assign({},n,t):n}e.default=function(t,f){return function(c,v,l){var p=c.state;(0,n.default)(p.routeName&&'string'==typeof p.routeName,'Cannot get config because the route does not have a routeName.');var O=(0,o.default)(t,p.routeName),b=t[p.routeName],j=b===O?null:b.navigationOptions,N=O.navigationOptions,y={navigation:c,screenProps:v||{},theme:l},_=s(f,{},y);return _=s(N,_,y),_=s(j,_,y),(0,u.default)(_,p),_}}}),475,[2,458,472,476]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),o=['tabBar'];e.default=function(n,c){var f=Object.keys(n).find((function(n){return o.includes(n)}));if('function'==typeof n.title)throw new Error(["`title` cannot be defined as a function in navigation options for `".concat(c.routeName,"` screen. \n"),'Try replacing the following:','{',' title: ({ state }) => state...','}','','with:','({ navigation }) => ({',' title: navigation.state...','})'].join('\n'));if(f&&'function'==typeof n[f])throw new Error(["`".concat(f,"` cannot be defined as a function in navigation options for `").concat(c.routeName,"` screen. \n"),'Try replacing the following:','{'," ".concat(f,": ({ state }) => ({"),' key: state...',' })','}','','with:','({ navigation }) => ({'," ".concat(f,"Key: navigation.state..."),'})'].join('\n'));if(f&&'object'==typeof n[f])throw new Error(["Invalid key `".concat(f,"` defined in navigation options for `").concat(c.routeName,"` screen."),'\n','Try replacing the following navigation options:','{'," ".concat(f,": {")].concat((0,t.default)(Object.keys(n[f]).map((function(n){return" ".concat(n,": ...,")}))),[' },','}','\n','with:','{'],(0,t.default)(Object.keys(n[f]).map((function(n){return" ".concat(f+n[0].toUpperCase()+n.slice(1),": ...,")}))),['}']).join('\n'))}}),476,[2,6]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.jumpTo=e.JUMP_TO=void 0;var o=e.JUMP_TO='Navigation/JUMP_TO';e.jumpTo=function(n){return Object.assign({type:o,preserveFocus:!0},n)}}),477,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.reset=e.replace=e.push=e.popToTop=e.pop=e.completeTransition=e.RESET=e.REPLACE=e.PUSH=e.POP_TO_TOP=e.POP=e.COMPLETE_TRANSITION=void 0;var t=e.POP='Navigation/POP',n=e.POP_TO_TOP='Navigation/POP_TO_TOP',o=e.PUSH='Navigation/PUSH',O=e.RESET='Navigation/RESET',P=e.REPLACE='Navigation/REPLACE',p=e.COMPLETE_TRANSITION='Navigation/COMPLETE_TRANSITION';e.pop=function(n){return Object.assign({type:t},n)},e.popToTop=function(t){return Object.assign({type:n},t)},e.push=function(t){return Object.assign({type:o},t)},e.reset=function(t){return Object.assign({type:O,key:null},t)},e.replace=function(t){return Object.assign({type:P},t)},e.completeTransition=function(t){return Object.assign({type:p,preserveFocus:!0},t)}}),478,[]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[1]),t=n(r(d[2]));function c(n){return n?n.screen?n.screen:n:null}e.default=function(n){var u=Object.keys(n);(0,t.default)(u.length>0,'Please specify at least one route when configuring a navigator.'),u.forEach((function(t){var u=n[t],f=c(u);if(!f||!(0,o.isValidElementType)(f)&&!u.getScreen)throw new Error("The component for route '".concat(t,"' must be a React component. For example:\n\nimport MyScreen from './MyScreen';\n...\n").concat(t,": MyScreen,\n}\n\nYou can also use a navigator:\n\nimport MyNavigator from './MyNavigator';\n...\n").concat(t,": MyNavigator,\n}"));if(u.screen&&u.getScreen)throw new Error("Route '".concat(t,"' should declare a screen or a getScreen, not both."))}))}}),479,[2,473,458]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.urlToPathAndParams=_e.getParamsFromPath=_e.createPathParser=void 0;var t=e(_r(d[1])),r=u(_r(d[2])),a=u(_r(d[3])),n=e(_r(d[4]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=n?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(a,u,i):a[u]=e[u]}return a.default=e,r&&r.set(e,a),a}var i=_r(d[5]),c=_e.getParamsFromPath=function(e,t,r){return t.slice(1).reduce((function(e,t,a){var n=r[a];if(!n||n.asterisk)return e;var o,u=n.name;if(t)try{o=decodeURIComponent(t)}catch(e){}return e[u]=o||t,e}),Object.assign({},e))},f=function(e,t){return e[t.findIndex((function(e){return e.asterisk}))+1]},s=function(e,t){if(Array.isArray(t)){if(1===t.length)return t[0];for(var r of t)if(e.startsWith(r))return r;return null}return t};_e.urlToPathAndParams=function(e,r){var a=e.match(/^(.*)\?(.*)$/)||[null,e,{}],n=(0,t.default)(a,3),o=n[1],u=n[2],c=i.parse(u),f=s(o,r)||'://',l=o.split(f)[1];return void 0===l&&(l=o),'/'===l&&(l=''),'/'===l[l.length-1]&&(l=l.slice(0,-1)),{path:l,params:c}},_e.createPathParser=function(e,o,u){var i,s=u.paths,l=void 0===s?{}:s,h=u.disableRouteNamePaths,p={};Object.keys(e).forEach((function(e){var t;void 0===(t=void 0!==l[e]?l[e]:o[e].path)&&(t=h?null:e),(0,n.default)(null===t||'string'==typeof t,"Route path for ".concat(e," must be specified as a string, or null."));var a=null!==t,u=[],i=a?(0,r.default)(t,u):null,c=[],f=''===t||!a,s=(0,r.default)(f?'*':"".concat(t,"/*"),c);p[e]={exactRe:i,exactReKeys:u,extendedPathRe:s,extendedPathReKeys:c,isWildcard:f,toPath:null===t?function(){return''}:(0,r.compile)(t)}})),i=Object.entries(p);return{getActionForPathAndParams:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var o of i){var u=(0,t.default)(o,2),s=u[0],l=u[1],h=l.exactRe,p=l.exactReKeys,P=l.extendedPathRe,v=l.extendedPathReKeys,y=e[s],x=h&&h.exec(r);if(x&&x.length){var R=P&&P.exec(r),b=null;if(R&&y){var O=f(R,v);b=y.getActionForPathAndParams(O,n)}return a.navigate({routeName:s,params:c(n,x,p),action:b})}}for(var j of i){var A=(0,t.default)(j,2),_=A[0],k=A[1],F=k.extendedPathRe,K=k.extendedPathReKeys,w=e[_],M=F&&F.exec(r);if(M&&M.length){var W=f(M,K),N=null;if(w&&(N=w.getActionForPathAndParams(W,n)),!N)continue;return a.navigate({routeName:_,params:c(n,M,K),action:N})}}return null},getPathAndParamsForRoute:function(t){var r=t.routeName,a=t.params,n=e[r],o=p[r],u=o.toPath,i=o.exactReKeys,c=u(a),f={};if(a&&Object.keys(a).filter((function(e){return!i.find((function(t){return t.name===e}))})).forEach((function(e){f[e]=a[e]})),n){var s=n.getPathAndParamsForState(t);return{path:c?"".concat(c,"/").concat(s.path):s.path,params:s.params?Object.assign({},f,s.params):f}}return{path:c,params:f}}}}}),480,[2,23,481,461,458,483]); -__d((function(g,r,_i,a,_m,e,d){var t=r(d[0]);_m.exports=m,_m.exports.parse=i,_m.exports.compile=function(t,n){return p(i(t,n),n)},_m.exports.tokensToFunction=p,_m.exports.tokensToRegExp=v;var n=new RegExp(['(\\\\.)','([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'].join('|'),'g');function i(t,i){for(var o,p=[],c=0,f=0,s='',h=i&&i.delimiter||'/';null!=(o=n.exec(t));){var x=o[0],v=o[1],m=o.index;if(s+=t.slice(f,m),f=m+x.length,v)s+=v[1];else{var w=t[f],E=o[2],y=o[3],R=o[4],$=o[5],b=o[6],T=o[7];s&&(p.push(s),s='');var k=null!=E&&null!=w&&w!==E,C='+'===b||'*'===b,U='?'===b||'*'===b,S=o[2]||h,j=R||$;p.push({name:y||c++,prefix:E||'',delimiter:S,optional:U,repeat:C,partial:k,asterisk:!!T,pattern:j?l(j):T?'.*':'[^'+u(S)+']+?'})}}return f0})).join('&')},e.parseUrl=function(n,a){a=Object.assign({decode:!0},a);var o=u(n,'#'),c=t(o,2),s=c[0],f=c[1];return Object.assign({url:s.split('?')[0]||'',query:F(k(n),a)},a&&a.parseFragmentIdentifier&&f?{fragmentIdentifier:y(f,a)}:{})},e.stringifyUrl=function(t,n){n=Object.assign({encode:!0,strict:!0},n);var a=b(t.url).split('?')[0]||'',o=e.extract(t.url),u=e.parse(o,{sort:!1}),c=Object.assign(u,t.query),s=e.stringify(c,n);s&&(s=`?${s}`);var f=j(t.url);return t.fragmentIdentifier&&(f=`#${p(t.fragmentIdentifier,n)}`),`${a}${s}${f}`},e.pick=function(t,n,a){a=Object.assign({parseFragmentIdentifier:!0},a);var o=e.parseUrl(t,a),u=o.url,s=o.query,f=o.fragmentIdentifier;return e.stringifyUrl({url:u,query:c(s,n),fragmentIdentifier:f},a)},e.exclude=function(t,n,a){var o=Array.isArray(n)?function(t){return!n.includes(t)}:function(t,a){return!n(t,a)};return e.pick(t,o,a)}}),483,[23,6,484,485,486,487]); -__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return`%${t.charCodeAt(0).toString(16).toUpperCase()}`}))}}),484,[]); -__d((function(g,r,_i,a,m,e,d){'use strict';var t=new RegExp('%[a-f0-9]{2}','gi'),n=new RegExp("(%[a-f0-9]{2})+",'gi');function o(t,n){try{return decodeURIComponent(t.join(''))}catch(t){}if(1===t.length)return t;n=n||1;var c=t.slice(0,n),p=t.slice(n);return Array.prototype.concat.call([],o(c),o(p))}function c(n){try{return decodeURIComponent(n)}catch(i){for(var c=n.match(t),p=1;p1&&void 0!==arguments[1]?arguments[1]:{};(0,u.default)(e);var l={},O=Object.keys(e);O.forEach((function(t){var r=e[t],n=r&&r.screen?r.screen:r;n&&n.router?l[t]=n.router:l[t]=null}));var N=p.initialRouteParams,b=p.getCustomActionCreators||v,j=p.initialRouteName||O[0],A=l[j];function P(t){var n={},a=l[t.routeName];if(y(t)&&void 0!==a){var i={};if(null!==a){var o=t.action||r.init({params:t.params});i=a.getStateForAction(o)}return{key:'StackRouterRoot',isTransitioning:!1,index:0,routes:[Object.assign({params:t.params},i,{key:t.key||(0,c.generateKey)(),routeName:t.routeName})]}}A&&(n=A.getStateForAction(r.navigate({routeName:j,params:N})));var u=(e[j].params||n.params||t.params||N)&&Object.assign({},e[j].params||{},n.params||{},t.params||{},N||{}),s=p.initialRouteKey;return{key:'StackRouterRoot',isTransitioning:!1,index:0,routes:[n=Object.assign({},n,u?{params:u}:{},{routeName:j,key:t.key||s||(0,c.generateKey)()})]}}function h(t,r){var n=e[t];return n&&n.params?Object.assign({},n.params,r.params):r.params}var S=(0,f.createPathParser)(l,e,p),T=S.getPathAndParamsForRoute,x=S.getActionForPathAndParams;return{childRouters:l,getComponentForState:function(t){var r=t.routes[t.index],n=r.routeName;return l[n]?l[n].getComponentForState(r):(0,i.default)(e,n)},getComponentForRouteName:function(t){return(0,i.default)(e,t)},getActionCreators:function(e,t){return Object.assign({},b(e,t),{pop:function(e,t){return n.pop(Object.assign({n:e},t))},popToTop:function(e){return n.popToTop(e)},push:function(e,t,r){return n.push({routeName:e,params:t,action:r})},replace:function(t,r,a,i){return'string'==typeof t?n.replace({routeName:t,params:r,action:a,key:e.key,newKey:i}):((0,s.default)('object'==typeof t,'Must replaceWith an object or a string'),(0,s.default)(null==r,'Params must not be provided to .replace() when specifying an object'),(0,s.default)(null==a,'Child action must not be provided to .replace() when specifying an object'),(0,s.default)(null==i,'Child action must not be provided to .replace() when specifying an object'),n.replace(t))},reset:function(e,r){return n.reset({actions:e,index:null==r?e.length-1:r,key:t})},dismiss:function(){return r.back({key:t})}})},getStateForAction:function(e,a){if(!a)return P(e);var i,u=a.routes[a.index];if(k(e)||e.type===r.NAVIGATE){if(e.type===r.NAVIGATE)for(var f of a.routes.slice().reverse()){var p=l[f.routeName],v=e.routeName===f.routeName&&e.action?e.action:e;if(p){var O=p.getStateForAction(v,f);if(null===O||O!==f){var N=o.default.replaceAndPrune(a,O?O.key:f.key,O||f);return Object.assign({},N,{isTransitioning:a.index!==N.index?!0!==e.immediate:a.isTransitioning})}}}}else{var b=l[u.routeName];if(b){var j=b.getStateForAction(e,u);if(null!==j&&j!==u)return o.default.replaceAt(a,u.key,j,e.type===r.SET_PARAMS)}}if(y(e)&&void 0!==l[e.routeName]){var A,S=l[e.routeName];(0,s.default)(e.type!==n.PUSH||null==e.key,'StackRouter does not support key on the push action');var T=a.routes.findIndex((function(t){return e.key?t.key===e.key:t.routeName===e.routeName}));if(e.type!==n.PUSH&&-1!==T){if(a.index===T&&!e.params)return null;var x=a.routes.slice(0,T+1);if(e.params){var F=a.routes[T];x[T]=Object.assign({},F,{params:Object.assign({},F.params,e.params)})}return Object.assign({},a,{isTransitioning:a.index!==T?!0!==e.immediate:a.isTransitioning,index:T,routes:x})}if(S){var R=e.action||r.init({params:h(e.routeName,e)});A=Object.assign({params:h(e.routeName,e)},S.getStateForAction(R),{routeName:e.routeName,key:e.key||(0,c.generateKey)()})}else A={params:h(e.routeName,e),routeName:e.routeName,key:e.key||(0,c.generateKey)()};return Object.assign({},o.default.push(a,A),{isTransitioning:!0!==e.immediate})}if(e.type===n.PUSH&&void 0===l[e.routeName])return a;if(y(e))for(var E=Object.keys(l),_=0;_0?Object.assign({},a,{isTransitioning:!0!==e.immediate,index:0,routes:[a.routes[0]]}):a;if(e.type===n.REPLACE&&-1!==(i=void 0===e.key&&a.routes.length?a.routes.length-1:a.routes.findIndex((function(t){return t.key===e.key})))){var H=l[e.routeName],U={};if(H){var D=e.action||r.init({params:h(e.routeName,e)});U=H.getStateForAction(D)}var G=(0,t.default)(a.routes);return G[i]=Object.assign({params:h(e.routeName,e)},U,{routeName:e.routeName,key:e.newKey||(0,c.generateKey)()}),Object.assign({},a,{routes:G})}if(e.type===n.COMPLETE_TRANSITION&&(null==e.key||e.key===a.key)&&e.toChildKey===a.routes[a.index].key&&a.isTransitioning)return Object.assign({},a,{isTransitioning:!1});if(e.type===r.SET_PARAMS){var V=e.key,L=a.routes.find((function(e){return e.key===V}));if(L){var B=Object.assign({},L.params,e.params),q=(0,t.default)(a.routes);return q[a.routes.indexOf(L)]=Object.assign({},L,{params:B}),Object.assign({},a,{routes:q})}}if(e.type===n.RESET){if(null!=e.key&&e.key!==a.key)return a;var z=e.actions;return Object.assign({},a,{routes:z.map((function(e){var t=l[e.routeName],n={};if(t){var a=e.action||r.init({params:h(e.routeName,e)});n=t.getStateForAction(a)}return Object.assign({params:h(e.routeName,e)},n,{routeName:e.routeName,key:e.key||(0,c.generateKey)()})})),index:e.index})}if(e.type===r.BACK||e.type===n.POP){var J=e.key,Q=e.n,X=e.immediate,Y=e.prune;if(e.type===n.POP&&!1===Y&&J){var Z=a.routes.findIndex((function(e){return e.key===J}));if(Z>0){var $=Math.max(Z-(null!=Q?Q:1)+1,1),ee=a.routes.slice(0,$).concat(a.routes.slice(Z+1));if(ee.length)return Object.assign({},a,{routes:ee,index:ee.length-1,isTransitioning:!0!==X})}}else{var te=a.index;if(e.type===n.POP&&null!=Q)te=Math.max(1,a.index-Q+1);else if(J){var re=a.routes.find((function(e){return e.key===J}));te=a.routes.indexOf(re)}if(te>0)return Object.assign({},a,{routes:a.routes.slice(0,te),index:te-1,isTransitioning:!0!==X})}}var ne=e.key?o.default.indexOf(a,e.key):-1;for(var ae of a.routes.slice().reverse())if(ae.key!==u.key&&!(ne>=0&&ae.key!==e.key)){var ie=l[ae.routeName];if(ie){var oe=ie.getStateForAction(e,ae);if(null===oe)return a;if(oe&&oe!==ae)return o.default.replaceAt(a,ae.key,oe,e.preserveFocus||e.type.includes('DRAWER'))}}return a},getPathAndParamsForState:function(e){var t=e.routes[e.index];return T(t)},getActionForPathAndParams:function(e,t){return x(e,t)},getScreenOptions:(0,a.default)(e,p.defaultNavigationOptions)}}}),492,[2,6,461,478,475,472,457,479,458,493,480]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e._TESTING_ONLY_normalize_keys=function(){n="id",t=0},e.generateKey=function(){return"".concat(n,"-").concat(t++)};var n="id-".concat(Date.now()),t=0}),493,[]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),l=t(r(d[2]));e.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=Object.assign({},n),n=(0,l.default)(n,'resetOnBlur',!1),n=(0,l.default)(n,'backBehavior','initialRoute'),(0,u.default)(t,n)}}),494,[2,471,495]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t,n,o){return t.hasOwnProperty(n)&&void 0!==t[n]||(t[n]=o),t}}),495,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'light',u=t.state,l=t.router,f=(0,t.getChildNavigation)(u.routes[u.index].key);return l.getScreenOptions(f,n,o)}}),496,[]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),o=e(_r(d[4])),u=e(_r(d[5])),i=e(_r(d[6])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=o?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(r,u,i):r[u]=e[u]}return r.default=e,n&&n.set(e,r),r})(_r(d[7])),a=e(_r(d[8]));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var s={willFocus:'onWillFocus',didFocus:'onDidFocus',willBlur:'onWillBlur',didBlur:'onDidBlur'},p=Object.keys(s),v=(function(e){(0,o.default)(v,e);var l,a,c=(l=v,a=f(),function(){var e,t=(0,i.default)(l);if(a){var n=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function v(){var e,n,o,u;(0,t.default)(this,v);for(var i=arguments.length,l=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:{forwardRef:!0},y=(function(f){(0,n.default)(b,f);var v,y,h=(v=b,y=p(),function(){var e,t=(0,a.default)(v);if(y){var r=(0,a.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function b(){return(0,t.default)(this,b),h.apply(this,arguments)}return(0,r.default)(b,[{key:"render",value:function(){var t=this,r=this.props.navigation;return u.createElement(c.default.Consumer,null,(function(n){var o=r||n;return(0,i.default)(!!o,'withNavigation can only be used on a view hierarchy of a navigator. The wrapped component is unable to get access to navigation from props or context.'),u.createElement(e,s({},t.props,{navigation:o,ref:l.forwardRef?t.props.onRef:void 0}))}))}}]),b})(u.Component);return v(y,"displayName","withNavigation(".concat(e.displayName||e.name,")")),(0,f.default)(y,e)};var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),a=e(_r(d[5])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[6])),f=e(_r(d[7])),i=e(_r(d[8])),c=e(_r(d[9]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(){return s=Object.assign||function(e){for(var t=1;te.height}}),509,[2,21,22,13,17,19,16,30,39,499]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),a=e(_r(d[4])),i=e(_r(d[5])),o=e(_r(d[6])),u=e(_r(d[7])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[8])),c=_r(d[9]),f=_r(d[10]),s=["isFocused","childNavigation","removeClippedSubviews"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function y(){return y=Object.assign||function(e){for(var t=1;tS&&S<768||S>L&&L<768),R=null,I=null,j=function(t){return null!==R?R:'android'===s.Platform.OS?g.Expo?g.Expo.Constants.statusBarHeight:0:O?t?0:44:B?24:M?I?0:20:t||I?0:20},P=function(t){if(!t.includes('%'))return 0;var e=parseFloat(t)/100;return isNaN(e)?0:e},x=(function(t){(0,a.default)(r,t);var o=y(r);function r(){var t;(0,n.default)(this,r);for(var i=arguments.length,a=new Array(i),u=0;u=r?s%=r:s<0&&(s=s%r+r),p>=o?p%=o:p<0&&(p=p%o+o);var f=0===s,c=s+u>=r,l=0===p,h=p+a>=o;t.setState({touchesTop:f,touchesBottom:c,touchesLeft:l,touchesRight:h,orientation:i,viewWidth:a,viewHeight:u})}}))}}},t._getSafeAreaStyle=function(){var e=t.state,n=e.touchesTop,i=e.touchesBottom,a=e.touchesLeft,o=e.touchesRight,r=t.props,u=r.forceInset,s=(r.isLandscape,t._getViewStyles()),p=s.paddingTop,f=s.paddingBottom,c=s.paddingLeft,l=s.paddingRight,h=s.viewStyle,v=Object.assign({},h,{paddingTop:n?t._getInset('top'):0,paddingBottom:i?t._getInset('bottom'):0,paddingLeft:a?t._getInset('left'):0,paddingRight:o?t._getInset('right'):0});return u&&Object.keys(u).forEach((function(e){var n=u[e];switch('always'===n&&(n=t._getInset(e)),'never'===n&&(n=0),e){case'horizontal':v.paddingLeft=n,v.paddingRight=n;break;case'vertical':v.paddingTop=n,v.paddingBottom=n;break;case'left':case'right':case'top':case'bottom':var i=`padding${e[0].toUpperCase()}${e.slice(1)}`;v[i]=n}})),v.height&&'number'==typeof v.height&&(v.height+=v.paddingTop+v.paddingBottom),v.width&&'number'==typeof v.width&&(v.width+=v.paddingLeft+v.paddingRight),v.paddingTop=Math.max(v.paddingTop,p),v.paddingBottom=Math.max(v.paddingBottom,f),v.paddingLeft=Math.max(v.paddingLeft,c),v.paddingRight=Math.max(v.paddingRight,l),v},t._getViewStyles=function(){var n=t.state.viewWidth,i=s.StyleSheet.flatten(t.props.style||{}),a=i.padding,o=void 0===a?0:a,r=i.paddingVertical,u=void 0===r?o:r,p=i.paddingHorizontal,f=void 0===p?o:p,c=i.paddingTop,h=void 0===c?u:c,v=i.paddingBottom,y=void 0===v?u:v,w=i.paddingLeft,_=void 0===w?f:w,b=i.paddingRight,L=void 0===b?f:b,S=(0,e.default)(i,l);return'number'!=typeof h&&(h=P(h)*n),'number'!=typeof y&&(y=P(y)*n),'number'!=typeof _&&(_=P(_)*n),'number'!=typeof L&&(L=P(L)*n),{paddingTop:h,paddingBottom:y,paddingLeft:_,paddingRight:L,viewStyle:S}},t._getInset=function(e){return T(e,t.props.isLandscape)},t}return(0,i.default)(r,[{key:"componentDidMount",value:function(){var t=this;this._isMounted=!0,s.InteractionManager.runAfterInteractions((function(){t._updateMeasurements()}))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"componentDidUpdate",value:function(){this._updateMeasurements()}},{key:"render",value:function(){var t=this,n=this.props,i=(n.forceInset,n.isLandscape,n.style,(0,e.default)(n,h)),a=this._getSafeAreaStyle();return(0,c.jsx)(s.Animated.View,Object.assign({ref:function(e){return t.view=e},pointerEvents:"box-none"},i,{onLayout:this._handleLayout,style:a}))}}]),r})(u.Component);function T(t,e){switch(t){case'horizontal':case'right':case'left':return e&&O?44:0;case'vertical':case'top':return j(e);case'bottom':return O?e?24:34:B?20:0}}x.setStatusBarHeight=function(t){R=t},x.setStatusBarHidden=function(t){I=t};var k=(0,f.default)(x);_e.default=k,_e.withSafeArea=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var o=(function(o){(0,a.default)(u,o);var r=y(u);function u(){return(0,n.default)(this,u),r.apply(this,arguments)}return(0,i.default)(u,[{key:"render",value:function(){return(0,c.jsx)(k,{style:{flex:1},forceInset:t,children:(0,c.jsx)(e,Object.assign({},this.props))})}}]),u})(u.Component);return(0,p.default)(o,e)}}}),511,[2,4,21,22,17,19,16,30,39,512,513,211]); -__d((function(g,r,_i,a,m,_e,d){'use strict';var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,p=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,i=s&&s(Object);m.exports=function y(f,l,O){if('string'!=typeof l){if(i){var u=s(l);u&&u!==i&&y(f,u,O)}var P=p(l);n&&(P=P.concat(n(l)));for(var b=0;be.height}}),513,[2,21,22,17,19,16,30,39,512,211]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.SectionList=_e.ScrollView=_e.FlatList=void 0;var r,t=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var i=o?Object.getOwnPropertyDescriptor(e,f):null;i&&(i.get||i.set)?Object.defineProperty(n,f,i):n[f]=e[f]}return n.default=e,t&&t.set(e,n),n})(_r(d[1])),n=_r(d[2]),o=_r(d[3]),f=e(_r(d[4])),i=e(_r(d[5]));function l(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(l=function(e){return e?t:r})(e)}function a(){return a=Object.assign||function(e){for(var r=1;r2&&void 0!==arguments[2]?arguments[2]:{},r=Object.assign({},n);return t.forEach((function(t){var n,a,o=e[t];if(a=t,void 0!==(n=o)&&(n!==Object(n)||!('__isNative'in n))&&'onHandlerStateChange'!==a&&'onGestureEvent'!==a){var i=e[t];'simultaneousHandlers'===t||'waitFor'===t?i=j(e[t]):'hitSlop'===t&&'object'!=typeof i&&(i={top:i,left:i,bottom:i,right:i}),r[t]=i}})),r}function j(e){return Array.isArray(e)||(e=[e]),'web'===f.Platform.OS?e.map((function(e){return e.current})).filter((function(e){return e})):e.map((function(e){var t;return R[e]||(null==(t=e.current)?void 0:t.handlerTag)||-1})).filter((function(e){return e>0}))}function P(e){var t=function(e){return Array.isArray(e)?e.some((function(e){return e&&null===e.current})):e&&null===e.current};return t(e.simultaneousHandlers)||t(e.waitFor)}var _=(0,l.default)((0,l.default)((0,l.default)((0,l.default)((0,l.default)((0,l.default)({},h.State.UNDETERMINED,void 0),h.State.BEGAN,'onBegan'),h.State.FAILED,'onFailed'),h.State.CANCELLED,'onCancelled'),h.State.ACTIVE,'onActivated'),h.State.END,'onEnded')}),521,[2,6,21,22,17,19,16,3,30,39,522,523,517]); -__d((function(g,r,_i,_a,m,e,d){"use strict";var t=[],n=[];function u(t,n,o,l){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if('object'!=typeof t||'object'!=typeof n)return!1;var a=Object.prototype.toString,c=a.call(t);if(c!=a.call(n))return!1;switch(c){case'[object String]':return t==String(n);case'[object Number]':return!isNaN(t)&&!isNaN(n)&&t==Number(n);case'[object Date]':case'[object Boolean]':return+t==+n;case'[object RegExp]':return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}for(var i=o.length;i--;)if(o[i]==t)return l[i]==n;o.push(t),l.push(n);var s=0;if('[object Array]'===c){if((s=t.length)!==n.length)return!1;for(;s--;)if(!u(t[s],n[s],o,l))return!1}else{if(t.constructor!==n.constructor)return!1;if(t.hasOwnProperty('valueOf')&&n.hasOwnProperty('valueOf'))return t.valueOf()==n.valueOf();var f=Object.keys(t);if(f.length!=Object.keys(n).length)return!1;for(var p=0;p1&&void 0!==arguments[1]?arguments[1]:{},o=n.forwardRef((function(n,o){var c=Object.keys(n).reduce((function(e,r){return i.includes(r)&&(e[r]=n[r]),e}),Object.assign({},r)),f=(0,t.useRef)(),l=(0,t.useRef)();return(0,t.useImperativeHandle)(o,(function(){var e=l.current;return f.current&&e?(f.current.handlerTag=e.handlerTag,f.current):null}),[f,l]),(0,u.jsx)(a.NativeViewGestureHandler,Object.assign({},c,{ref:l,children:(0,u.jsx)(e,Object.assign({},n,{ref:f}))}))}));return o.displayName=e.displayName||'ComponentWrapper',o};var r=e(_r(d[1])),t=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n})(_r(d[2])),n=t,a=_r(d[3]),u=_r(d[4]);function o(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(o=function(e){return e?t:r})(e)}var i=[].concat((0,r.default)(a.nativeViewProps),['onGestureHandlerEvent','onGestureHandlerStateChange'])}),525,[2,6,30,526,211]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.nativeViewProps=e.NativeViewGestureHandler=void 0;var n=t(r(d[1])),o=t(r(d[2])),l=r(d[3]),s=e.nativeViewProps=[].concat((0,n.default)(l.baseProps),['shouldActivateOnStart','disallowInterruption']);e.NativeViewGestureHandler=(0,o.default)({name:'NativeViewGestureHandler',allowedProps:s,config:{}})}),526,[2,6,521,520]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.BorderlessButton=_e.BaseButton=void 0,Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return c.default}}),_e.RectButton=_e.RawButton=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),o=t(_r(d[4])),a=t(_r(d[5])),i=t(_r(d[6])),u=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=C(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var i=o?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r})(_r(d[7])),l=_r(d[8]),s=t(_r(d[9])),c=t(_r(d[10])),p=_r(d[11]),f=_r(d[12]),v=["rippleColor"],h=["children","style"],y=["children","style"];function C(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(C=function(t){return t?n:e})(t)}function S(t){var e=b();return function(){var n,r=(0,i.default)(t);if(e){var o=(0,i.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var A=_e.RawButton=(0,s.default)(c.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!1}),O=_e.BaseButton=(function(t){(0,o.default)(i,t);var a=S(i);function i(t){var e;return(0,n.default)(this,i),(e=a.call(this,t)).handleEvent=function(t){var n=t.nativeEvent,r=n.state,o=n.oldState,a=n.pointerInside&&r===p.State.ACTIVE;a!==e.lastActive&&e.props.onActiveStateChange&&e.props.onActiveStateChange(a),o===p.State.ACTIVE&&r!==p.State.CANCELLED&&e.lastActive&&e.props.onPress&&e.props.onPress(a),e.lastActive=a},e.onHandlerStateChange=function(t){null==e.props.onHandlerStateChange||e.props.onHandlerStateChange(t),e.handleEvent(t)},e.onGestureEvent=function(t){null==e.props.onGestureEvent||e.props.onGestureEvent(t),e.handleEvent(t)},e.lastActive=!1,e}return(0,r.default)(i,[{key:"render",value:function(){var t=this.props,n=t.rippleColor,r=(0,e.default)(t,v);return(0,f.jsx)(A,Object.assign({rippleColor:(0,l.processColor)(n)},r,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}))}}]),i})(u.Component),R=l.Animated.createAnimatedComponent(O),B=l.StyleSheet.create({underlay:{position:'absolute',left:0,right:0,bottom:0,top:0}});(_e.RectButton=(function(t){(0,o.default)(i,t);var a=S(i);function i(t){var e;return(0,n.default)(this,i),(e=a.call(this,t)).onActiveStateChange=function(t){'android'!==l.Platform.OS&&e.opacity.setValue(t?e.props.activeOpacity:0),null==e.props.onActiveStateChange||e.props.onActiveStateChange(t)},e.opacity=new l.Animated.Value(0),e}return(0,r.default)(i,[{key:"render",value:function(){var t=this.props,n=t.children,r=t.style,o=(0,e.default)(t,h),a=l.StyleSheet.flatten(null!=r?r:{});return(0,f.jsxs)(O,Object.assign({},o,{style:a,onActiveStateChange:this.onActiveStateChange,children:[(0,f.jsx)(l.Animated.View,{style:[B.underlay,{opacity:this.opacity,backgroundColor:this.props.underlayColor,borderRadius:a.borderRadius,borderTopLeftRadius:a.borderTopLeftRadius,borderTopRightRadius:a.borderTopRightRadius,borderBottomLeftRadius:a.borderBottomLeftRadius,borderBottomRightRadius:a.borderBottomRightRadius}]}),n]}))}}]),i})(u.Component)).defaultProps={activeOpacity:.105,underlayColor:'black'},(_e.BorderlessButton=(function(t){(0,o.default)(i,t);var a=S(i);function i(t){var e;return(0,n.default)(this,i),(e=a.call(this,t)).onActiveStateChange=function(t){'android'!==l.Platform.OS&&e.opacity.setValue(t?e.props.activeOpacity:1),null==e.props.onActiveStateChange||e.props.onActiveStateChange(t)},e.opacity=new l.Animated.Value(1),e}return(0,r.default)(i,[{key:"render",value:function(){var t=this.props,n=t.children,r=t.style,o=(0,e.default)(t,y);return(0,f.jsx)(R,Object.assign({},o,{onActiveStateChange:this.onActiveStateChange,style:[r,'ios'===l.Platform.OS&&{opacity:this.opacity}],children:n}))}}]),i})(u.Component)).defaultProps={activeOpacity:.3,borderless:!0}}),527,[2,4,21,22,17,19,16,30,39,525,528,517,211]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0]).requireNativeComponent)('RNGestureHandlerButton');e.default=t}),528,[39]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TouchableHighlight",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"TouchableOpacity",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return n.default}});var u=t(r(d[1])),n=t(r(d[2])),c=t(r(d[3])),o=t(r(d[4]))}),529,[2,530,531,533,534]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]);e.default=t.TouchableNativeFeedback}),530,[39]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=u?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=e(_r(d[2])),n=_r(d[3]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var u=t.forwardRef((function(e,t){return(0,n.jsx)(r.default,Object.assign({ref:t},e))}));u.defaultProps=r.default.defaultProps;_e.default=u}),531,[2,30,532,211]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.TOUCHABLE_STATE=void 0;var e=t(_r(d[1])),s=t(_r(d[2])),o=t(_r(d[3])),n=t(_r(d[4])),i=t(_r(d[5])),r=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=c(e);if(s&&s.has(t))return s.get(t);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var r=n?Object.getOwnPropertyDescriptor(t,i):null;r&&(r.get||r.set)?Object.defineProperty(o,i,r):o[i]=t[i]}return o.default=t,s&&s.set(t,o),o})(_r(d[6])),l=_r(d[7]),a=_r(d[8]),u=_r(d[9]),p=_r(d[10]);function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,s=new WeakMap;return(c=function(t){return t?s:e})(t)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var T=_e.TOUCHABLE_STATE={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2},f=_e.default=(function(t){(0,o.default)(E,t);var r,c,f=(r=E,c=h(),function(){var t,e=(0,i.default)(r);if(c){var s=(0,i.default)(this).constructor;t=Reflect.construct(e,arguments,s)}else t=e.apply(this,arguments);return(0,n.default)(this,t)});function E(){var t;(0,e.default)(this,E);for(var s=arguments.length,o=new Array(s),n=0;n0:w,O=t.overshootRight,R=void 0===O?v>0:O,y=s.Animated.add(r,a.interpolate({inputRange:[0,o],outputRange:[0,1]})).interpolate({inputRange:[-v-(R?1:i),-v,p,p+(S?1:i)],outputRange:[-v-(R||i>1?1:0),-v,p,p+(S||i>1?1:0)]});n.transX=y,n.showLeftAction=p>0?y.interpolate({inputRange:[-1,0,p],outputRange:[0,0,1]}):new s.Animated.Value(0),n.leftActionTranslate=n.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),n.showRightAction=v>0?y.interpolate({inputRange:[-v,0,1],outputRange:[1,0,0]}):new s.Animated.Value(0),n.rightActionTranslate=n.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})},n.onTapHandlerStateChange=function(t){t.nativeEvent.oldState===p.State.ACTIVE&&n.close()},n.onHandlerStateChange=function(t){t.nativeEvent.oldState===p.State.ACTIVE&&n.handleRelease(t)},n.handleRelease=function(t){var e=t.nativeEvent,o=e.velocityX,i=e.translationX,a=n.state,r=a.leftWidth,s=void 0===r?0:r,l=a.rowWidth,p=void 0===l?0:l,u=a.rowState,f=n.state.rightOffset,h=p-(void 0===f?p:f),c=n.props,v=c.friction,w=c.leftThreshold,S=void 0===w?s/2:w,O=c.rightThreshold,R=void 0===O?h/2:O,y=n.currentOffset()+i/v,A=(i+.05*o)/v,b=0;0===u?A>S?b=s:A<-R&&(b=-h):1===u?A>-S&&(b=s):A0&&n.props.onSwipeableLeftOpen?n.props.onSwipeableLeftOpen():e<0&&n.props.onSwipeableRightOpen&&n.props.onSwipeableRightOpen(),0===e?null==n.props.onSwipeableClose||n.props.onSwipeableClose():null==n.props.onSwipeableOpen||n.props.onSwipeableOpen())})),e>0&&n.props.onSwipeableLeftWillOpen?n.props.onSwipeableLeftWillOpen():e<0&&n.props.onSwipeableRightWillOpen&&n.props.onSwipeableRightWillOpen(),0===e?null==n.props.onSwipeableWillClose||n.props.onSwipeableWillClose():null==n.props.onSwipeableWillOpen||n.props.onSwipeableWillOpen()},n.onRowLayout=function(t){var e=t.nativeEvent;n.setState({rowWidth:e.layout.width})},n.currentOffset=function(){var t=n.state,e=t.leftWidth,o=void 0===e?0:e,i=t.rowWidth,a=void 0===i?0:i,r=t.rowState,s=n.state.rightOffset;return 1===r?o:-1===r?-(a-(void 0===s?a:s)):0},n.close=function(){n.animateRow(n.currentOffset(),0)},n.openLeft=function(){var t=n.state.leftWidth,e=void 0===t?0:t;n.animateRow(n.currentOffset(),e)},n.openRight=function(){var t=n.state.rowWidth,e=void 0===t?0:t,o=n.state.rightOffset,i=e-(void 0===o?e:o);n.animateRow(n.currentOffset(),-i)};var o=new s.Animated.Value(0);return n.state={dragX:o,rowTranslation:new s.Animated.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},n.updateAnimatedEvent(t,n.state),n.onGestureEvent=s.Animated.event([{nativeEvent:{translationX:o}}],{useNativeDriver:t.useNativeAnimations}),n}return(0,n.default)(w,[{key:"UNSAFE_componentWillUpdate",value:function(t,e){this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e)}},{key:"render",value:function(){var t=this,e=this.state.rowState,n=this.props,o=n.children,i=n.renderLeftActions,a=n.renderRightActions,r=i&&(0,u.jsxs)(s.Animated.View,{style:[v.leftActions,{transform:[{translateX:this.leftActionTranslate}]}],children:[i(this.showLeftAction,this.transX),(0,u.jsx)(s.View,{onLayout:function(e){var n=e.nativeEvent;return t.setState({leftWidth:n.layout.x})}})]}),p=a&&(0,u.jsxs)(s.Animated.View,{style:[v.rightActions,{transform:[{translateX:this.rightActionTranslate}]}],children:[a(this.showRightAction,this.transX),(0,u.jsx)(s.View,{onLayout:function(e){var n=e.nativeEvent;return t.setState({rightOffset:n.layout.x})}})]});return(0,u.jsx)(l.PanGestureHandler,Object.assign({activeOffsetX:[-10,10]},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange,children:(0,u.jsxs)(s.Animated.View,{onLayout:this.onRowLayout,style:[v.container,this.props.containerStyle],children:[r,p,(0,u.jsx)(l.TapGestureHandler,{enabled:0!==e,onHandlerStateChange:this.onTapHandlerStateChange,children:(0,u.jsx)(s.Animated.View,{pointerEvents:0===e?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle],children:o})})]})}))}}]),w})(r.Component);c.defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};var v=s.StyleSheet.create({container:{overflow:'hidden'},leftActions:Object.assign({},s.StyleSheet.absoluteFillObject,{flexDirection:s.I18nManager.isRTL?'row-reverse':'row'}),rightActions:Object.assign({},s.StyleSheet.absoluteFillObject,{flexDirection:s.I18nManager.isRTL?'row':'row-reverse'})})}),536,[2,21,22,17,19,16,30,39,520,517,211]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),a=e(_r(d[3])),r=e(_r(d[4])),i=e(_r(d[5])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,n&&n.set(e,a),a})(_r(d[6])),s=o,l=e(_r(d[7])),u=_r(d[8]),p=_r(d[9]),c=_r(d[10]),w=_r(d[11]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var v=_e.default=(function(e){(0,a.default)(S,e);var o,f,v=(o=S,f=h(),function(){var e,t=(0,i.default)(o);if(f){var n=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,r.default)(this,e)});function S(e){var n;(0,t.default)(this,S),(n=v.call(this,e)).accessibilityIsModalView=s.createRef(),n.pointerEventsView=s.createRef(),n.panGestureHandler=s.createRef(),n.drawerShown=!1,n.updateAnimatedEvent=function(e,t){var a=e.drawerPosition,r=e.drawerWidth,i=e.drawerType,o=t.dragX,s=t.touchX,l=t.drawerTranslation,p=t.containerWidth,c=o,w=s;'left'!==a?(c=u.Animated.multiply(new u.Animated.Value(-1),o),w=u.Animated.add(new u.Animated.Value(p),u.Animated.multiply(new u.Animated.Value(-1),s)),s.setValue(p)):s.setValue(0);var f=c;if('front'===i){var h=u.Animated.add(w,u.Animated.multiply(new u.Animated.Value(-1),c)).interpolate({inputRange:[r-1,r,r+1],outputRange:[0,0,1]});f=u.Animated.add(c,h)}n.openValue=u.Animated.add(f,l).interpolate({inputRange:[0,r],outputRange:[0,1],extrapolate:'clamp'});var v={useNativeDriver:e.useNativeAnimations};n.props.onDrawerSlide&&(v.listener=function(e){var t=Math.floor(Math.abs(e.nativeEvent.translationX))/n.state.containerWidth;null==n.props.onDrawerSlide||n.props.onDrawerSlide(t)}),n.onGestureEvent=u.Animated.event([{nativeEvent:{translationX:o,x:s}}],v)},n.handleContainerLayout=function(e){var t=e.nativeEvent;n.setState({containerWidth:t.layout.width})},n.emitStateChanged=function(e,t){null==n.props.onDrawerStateChanged||n.props.onDrawerStateChanged(e,t)},n.openingHandlerStateChange=function(e){var t=e.nativeEvent;t.oldState===c.State.ACTIVE?n.handleRelease({nativeEvent:t}):t.state===c.State.ACTIVE&&(n.emitStateChanged("Dragging",!1),'on-drag'===n.props.keyboardDismissMode&&u.Keyboard.dismiss(),n.props.hideStatusBar&&u.StatusBar.setHidden(!0,n.props.statusBarAnimation||'slide'))},n.onTapHandlerStateChange=function(e){var t=e.nativeEvent;n.drawerShown&&t.oldState===c.State.ACTIVE&&'locked-open'!==n.props.drawerLockMode&&n.closeDrawer()},n.handleRelease=function(e){var t=e.nativeEvent,a=n.props,r=a.drawerWidth,i=a.drawerPosition,o=a.drawerType,s=n.state.containerWidth,l=t.translationX,u=t.velocityX,p=t.x;'left'!==i&&(l=-l,p=s-p,u=-u);var c=p-l,w=0;'front'===o&&(w=c>r?c-r:0);var f=l+w+(n.drawerShown?r:0);f+.05*u>r/2?n.animateDrawer(f,r,u):n.animateDrawer(f,0,u)},n.updateShowing=function(e){var t,a,r;n.drawerShown=e,null==(t=n.accessibilityIsModalView.current)||t.setNativeProps({accessibilityViewIsModal:e}),null==(a=n.pointerEventsView.current)||a.setNativeProps({pointerEvents:e?'auto':'none'});var i=n.props,o=i.drawerPosition,s=i.minSwipeDistance,l=i.edgeWidth,u='left'===o,p=(u?1:-1)*(n.drawerShown?-1:1),c=u?{left:0,width:e?void 0:l}:{right:0,width:e?void 0:l};null==(r=n.panGestureHandler.current)||r.setNativeProps({hitSlop:c,activeOffsetX:p*s})},n.animateDrawer=function(e,t,a,r){if(n.state.dragX.setValue(0),n.state.touchX.setValue('left'===n.props.drawerPosition?0:n.state.containerWidth),null!=e){var i=e;n.props.useNativeAnimations&&(e0?i=Math.min(e+a/60,t):e>t&&a<0&&(i=Math.max(e+a/60,t))),n.state.drawerTranslation.setValue(i)}var o=0!==t;n.updateShowing(o),n.emitStateChanged("Settling",o),n.props.hideStatusBar&&u.StatusBar.setHidden(o,n.props.statusBarAnimation||'slide'),u.Animated.spring(n.state.drawerTranslation,{velocity:a,bounciness:0,toValue:t,useNativeDriver:n.props.useNativeAnimations,speed:null!=r?r:void 0}).start((function(e){e.finished&&(n.emitStateChanged("Idle",o),o?null==n.props.onDrawerOpen||n.props.onDrawerOpen():null==n.props.onDrawerClose||n.props.onDrawerClose())}))},n.openDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.animateDrawer(void 0,n.props.drawerWidth,e.velocity?e.velocity:0),n.forceUpdate()},n.closeDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.animateDrawer(void 0,0,e.velocity?e.velocity:0),n.forceUpdate()},n.renderOverlay=function(){(0,l.default)(n.openValue,'should be set');var e={opacity:n.openValue.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),backgroundColor:n.props.overlayColor};return(0,w.jsx)(p.TapGestureHandler,{onHandlerStateChange:n.onTapHandlerStateChange,children:(0,w.jsx)(u.Animated.View,{pointerEvents:n.drawerShown?'auto':'none',ref:n.pointerEventsView,style:[y.overlay,e]})})},n.renderDrawer=function(){var e,t=n.props,a=t.drawerBackgroundColor,r=t.drawerWidth,i=t.drawerPosition,o=t.drawerType,s=t.drawerContainerStyle,p=t.contentContainerStyle,c='left'===i,f='back'!==o,h='front'!==o,v=u.I18nManager.isRTL?c:!c,S={backgroundColor:a,width:r},b=n.openValue;((0,l.default)(b,'should be set'),h)&&(e={transform:[{translateX:b.interpolate({inputRange:[0,1],outputRange:c?[0,r]:[0,-r],extrapolate:'clamp'})}]});var V=0;if(f){var A=c?-r:r;V=b.interpolate({inputRange:[0,1],outputRange:[A,0],extrapolate:'clamp'})}var D={transform:[{translateX:V}],flexDirection:v?'row-reverse':'row'};return(0,w.jsxs)(u.Animated.View,{style:y.main,onLayout:n.handleContainerLayout,children:[(0,w.jsxs)(u.Animated.View,{style:['front'===o?y.containerOnBack:y.containerInFront,e,p],importantForAccessibility:n.drawerShown?'no-hide-descendants':'yes',children:['function'==typeof n.props.children?n.props.children(n.openValue):n.props.children,n.renderOverlay()]}),(0,w.jsx)(u.Animated.View,{pointerEvents:"box-none",ref:n.accessibilityIsModalView,accessibilityViewIsModal:n.drawerShown,style:[y.drawerContainer,D,s],children:(0,w.jsx)(u.View,{style:S,children:n.props.renderNavigationView(n.openValue)})})]})},n.setPanGestureRef=function(e){n.panGestureHandler.current=e,null==n.props.onGestureRef||n.props.onGestureRef(e)};var a=new u.Animated.Value(0),r=new u.Animated.Value(0),i=new u.Animated.Value(0);return n.state={dragX:a,touchX:r,drawerTranslation:i,containerWidth:0},n.updateAnimatedEvent(e,n.state),n}return(0,n.default)(S,[{key:"UNSAFE_componentWillUpdate",value:function(e,t){this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t)}},{key:"render",value:function(){var e=this.props,t=e.drawerPosition,n=e.drawerLockMode,a=e.edgeWidth,r=e.minSwipeDistance,i='left'===t,o=(i?1:-1)*(this.drawerShown?-1:1),s=i?{left:0,width:this.drawerShown?void 0:a}:{right:0,width:this.drawerShown?void 0:a};return(0,w.jsx)(p.PanGestureHandler,{ref:this.setPanGestureRef,hitSlop:s,activeOffsetX:o*r,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==n&&'locked-open'!==n,children:this.renderDrawer()})}}]),S})(o.Component);v.defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1},v.positions={Left:'left',Right:'right'};var y=u.StyleSheet.create({drawerContainer:Object.assign({},u.StyleSheet.absoluteFillObject,{zIndex:1001,flexDirection:'row'}),containerInFront:Object.assign({},u.StyleSheet.absoluteFillObject,{zIndex:1002}),containerOnBack:Object.assign({},u.StyleSheet.absoluteFillObject),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:Object.assign({},u.StyleSheet.absoluteFillObject,{zIndex:1e3})})}),537,[2,21,22,17,19,16,30,40,39,520,517,211]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),r=t(_r(d[2])),n=t(_r(d[3])),o=t(_r(d[4])),u=t(_r(d[5])),a=t(_r(d[6])),l=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=p(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var a=o?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=t[u]}return n.default=t,r&&r.set(t,n),n})(_r(d[7])),c=_r(d[8]),f=_r(d[9]),i=["barStyle"];function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(p=function(t){return t?r:e})(t)}function s(t){var e=y();return function(){var r,n=(0,a.default)(t);if(e){var o=(0,a.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function h(){return h=Object.assign||function(t){for(var e=1;et,i=a>=600,l='ios'===r.Platform.OS?o?32:44:56,u=i?320:280;return Math.min(a-l,u)},contentComponent:function(e){return t.createElement(r.ScrollView,{alwaysBounceVertical:!1},t.createElement(n.SafeAreaView,{forceInset:{top:'always',horizontal:'never'}},t.createElement(i.default,e)))},drawerPosition:r.I18nManager.isRTL?'right':'left',keyboardDismissMode:'on-drag',drawerBackgroundColor:{light:n.ThemeColors.light.bodyContent,dark:n.ThemeColors.dark.bodyContent},overlayColor:{light:'rgba(0, 0, 0, 0.5)',dark:'rgba(0, 0, 0, 0.5)'},drawerType:'front',hideStatusBar:!1,statusBarAnimation:'slide'};_e.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},u,t),i=(0,a.default)(e,r);return(0,n.createNavigator)(o.default,i,r)}}),543,[2,30,39,455,544,545,607]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0]),r=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(i,a,u):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i})(_r(d[1]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}function n(e,r,t){return e.hasOwnProperty(r)&&void 0!==e[r]||(e[r]=t),e}var i=function e(r){return r.routes&&'number'==typeof r.index&&r.routes[r.index]?e(r.routes[r.index]):r.key};_e.default=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o=n(o=Object.assign({},o),'resetOnBlur',!!o.unmountInactiveRoutes||!!o.resetOnBlur),o=n(o,'backBehavior','initialRoute');var a=(0,e.SwitchRouter)(t,o);return Object.assign({},a,{getActionCreators:function(e,t){return Object.assign({openDrawer:function(){return r.openDrawer({key:t})},closeDrawer:function(){return r.closeDrawer({key:t})},toggleDrawer:function(){return r.toggleDrawer({key:t})}},a.getActionCreators(e,t))},getStateForAction:function(t,n){if(!n)return Object.assign({},a.getStateForAction(t,void 0),{isDrawerOpen:!1});if(null==t.key||t.key===n.key){if(t.type===r.CLOSE_DRAWER||t.type===e.NavigationActions.BACK&&n.isDrawerOpen)return Object.assign({},n,{isDrawerOpen:!1});if(t.type===r.OPEN_DRAWER)return Object.assign({},n,{isDrawerOpen:!0});if(t.type===r.TOGGLE_DRAWER)return Object.assign({},n,{isDrawerOpen:!n.isDrawerOpen})}var o=a.getStateForAction(t,n);return null===o?null:o!==n?i(o)!==i(n)&&n.isDrawerOpen?Object.assign({},o,{isDrawerOpen:!1}):o:n}})}}),544,[455,542]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),a=e(_r(d[5])),i=e(_r(d[6])),s=e(_r(d[7])),u=k(_r(d[8])),l=_r(d[9]),p=_r(d[10]),c=_r(d[11]),f=k(_r(d[12])),v=e(_r(d[13])),h=e(_r(d[14])),y=e(_r(d[15])),w=e(_r(d[16]));function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(C=function(e){return e?r:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=C(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function P(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function D(){return D=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0])&&!M('RNSScreen')&&console.error("Screen native module hasn't been linked. Please check the react-native-screens README for more details")}var A={get NativeScreen(){return C=C||(0,S.requireNativeComponent)('RNSScreen',null)},get NativeScreenContainer(){return w=w||(0,S.requireNativeComponent)('RNSScreenContainer',null)},get NativeScreenStack(){return j=j||(0,S.requireNativeComponent)('RNSScreenStack',null)},get NativeScreenStackHeaderConfig(){return R=R||(0,S.requireNativeComponent)('RNSScreenStackHeaderConfig',null)},get NativeScreenStackHeaderSubview(){return H=H||(0,S.requireNativeComponent)('RNSScreenStackHeaderSubview',null)}},I=(function(e){(0,o.default)(s,e);var u=k(s);function s(){var e;(0,n.default)(this,s);for(var t=arguments.length,c=new Array(t),o=0;o=57||0===f.version.minor){var n=this.props,c=(n.enabled,(0,t.default)(n,h));return(0,v.jsx)(x,Object.assign({},c,{ref:this.setRef}))}var o=this.props,u=o.style,s=o.children,l=(o.enabled,(0,t.default)(o,b));return(0,v.jsx)(x,Object.assign({},l,{ref:this.setRef,style:S.StyleSheet.absoluteFill,children:(0,v.jsx)(S.Animated.View,{style:u,children:s})}))}var N=this.props,k=(N.active,N.enabled,N.onComponentRef,(0,t.default)(N,p));return(0,v.jsx)(S.Animated.View,Object.assign({},k,{ref:this.setRef}))}}]),s})(l.default.Component),q=(function(e){(0,o.default)(s,e);var u=k(s);function s(){return(0,n.default)(this,s),u.apply(this,arguments)}return(0,c.default)(s,[{key:"render",value:function(){var e=this.props,n=e.enabled,c=void 0===n||n,o=(0,t.default)(e,N);return O&&c?(0,v.jsx)(A.NativeScreenContainer,Object.assign({},this.props)):(0,v.jsx)(S.View,Object.assign({},o))}}]),s})(l.default.Component),B=S.StyleSheet.create({headerSubview:{position:'absolute',top:0,right:0,flexDirection:'row',alignItems:'center',justifyContent:'center'}});m.exports={ScreenContainer:q,Screen:I,get NativeScreen(){return A.NativeScreen},get NativeScreenContainer(){return A.NativeScreenContainer},get ScreenStack(){return A.NativeScreenStack},get ScreenStackHeaderConfig(){return A.NativeScreenStackHeaderConfig},get ScreenStackHeaderSubview(){return A.NativeScreenStackHeaderSubview},ScreenStackHeaderBackButtonImage:function(e){return(0,v.jsx)(A.NativeScreenStackHeaderSubview,{type:"back",style:B.headerSubview,children:(0,v.jsx)(S.Image,Object.assign({resizeMode:"center",fadeDuration:0},e))})},ScreenStackHeaderRightView:function(e){return(0,v.jsx)(A.NativeScreenStackHeaderSubview,Object.assign({},e,{type:"right",style:B.headerSubview}))},ScreenStackHeaderLeftView:function(e){return(0,v.jsx)(A.NativeScreenStackHeaderSubview,Object.assign({},e,{type:"left",style:B.headerSubview}))},ScreenStackHeaderCenterView:function(e){return(0,v.jsx)(A.NativeScreenStackHeaderSubview,Object.assign({},e,{type:"center",style:B.headerSubview}))},enableScreens:V,useScreens:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];console.warn('Method `useScreens` is deprecated, please use `enableScreens`'),V(e)},screensEnabled:function(){return O}}}),546,[2,4,21,22,17,19,16,30,39,547,211]); -__d((function(g,r,i,a,m,e,d){e.version={major:0,minor:72,patch:7,prerelease:null}}),547,[]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),i=e(_r(d[5])),a=e(_r(d[6])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[7])),u=_r(d[8]),c=_r(d[9]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(){return p=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(n){return(0,l.sub)(1,(0,l.multiply)((0,l.pow)((0,l.cos)((0,l.multiply)(n,Math.PI,.5)),3),(0,l.cos)((0,l.multiply)(n,u))))}}},{key:"back",value:function(u){return void 0===u&&(u=1.70158),function(n){return(0,l.multiply)(n,n,(0,l.sub)((0,l.multiply)((0,l.add)(u,1),n),u))}}},{key:"bounce",value:function(u){var n=function(u){return(0,l.multiply)(7.5625,u,u)};return(0,l.cond)((0,l.lessThan)(u,.36363636363636365),n(u),(0,l.cond)((0,l.lessThan)(u,.7272727272727273),(0,l.add)(.75,n((0,l.sub)(u,.5454545454545454))),(0,l.cond)((0,l.lessThan)(u,.9057971014492754),(0,l.add)(.9375,n((0,l.sub)(u,.8181818181818182))),(0,l.add)(.984375,n((0,l.sub)(u,.9545454545454546))))))}},{key:"bezier",value:function(u,n,t,l){return function(c){return new o.default(c,u,n,t,l)}}},{key:"in",value:function(u){return u}},{key:"out",value:function(u){return function(n){return(0,l.sub)(1,u((0,l.sub)(1,n)))}}},{key:"inOut",value:function(u){return function(n){return(0,l.cond)((0,l.lessThan)(n,.5),(0,l.divide)(u((0,l.multiply)(n,2)),2),(0,l.sub)(1,(0,l.divide)(u((0,l.multiply)((0,l.sub)(1,n),2)),2)))}}}]),u})()}),553,[2,21,22,554,582]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={cond:!0,set:!0,startClock:!0,stopClock:!0,clockRunning:!0,debug:!0,call:!0,event:!0,always:!0,concat:!0,block:!0,adapt:!0,proc:!0};Object.defineProperty(e,"adapt",{enumerable:!0,get:function(){return j.adapt}}),Object.defineProperty(e,"always",{enumerable:!0,get:function(){return y.createAnimatedAlways}}),Object.defineProperty(e,"block",{enumerable:!0,get:function(){return j.createAnimatedBlock}}),Object.defineProperty(e,"call",{enumerable:!0,get:function(){return f.createAnimatedCall}}),Object.defineProperty(e,"clockRunning",{enumerable:!0,get:function(){return l.createAnimatedClockTest}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return O.createAnimatedConcat}}),Object.defineProperty(e,"cond",{enumerable:!0,get:function(){return n.createAnimatedCond}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return b.createAnimatedDebug}}),Object.defineProperty(e,"event",{enumerable:!0,get:function(){return p.createAnimatedEvent}}),Object.defineProperty(e,"proc",{enumerable:!0,get:function(){return P.createAnimatedFunction}}),Object.defineProperty(e,"set",{enumerable:!0,get:function(){return c.createAnimatedSet}}),Object.defineProperty(e,"startClock",{enumerable:!0,get:function(){return o.createAnimatedStartClock}}),Object.defineProperty(e,"stopClock",{enumerable:!0,get:function(){return u.createAnimatedStopClock}});var n=r(d[0]),c=r(d[1]),o=r(d[2]),u=r(d[3]),l=r(d[4]),b=r(d[5]),f=r(d[6]),p=r(d[7]),y=r(d[8]),O=r(d[9]),j=r(d[10]),P=r(d[11]),s=r(d[12]);Object.keys(s).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===s[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return s[n]}}))}))}),554,[555,562,563,566,567,568,569,571,579,581,557,576,574]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedCond=function(e,t,n){return new _((0,f.adapt)(e),(0,f.adapt)(t),void 0===n?void 0:(0,f.adapt)(n))};var t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),u=e(r(d[4])),l=e(r(d[5])),c=e(r(d[6])),f=r(d[7]),s=r(d[8]),v=e(r(d[9]));function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var _=(function(e){(0,o.default)(y,e);var f,_,p=(f=y,_=h(),function(){var e,t=(0,l.default)(f);if(_){var n=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function y(e,n,o){var u;return(0,t.default)(this,y),(0,c.default)(e instanceof v.default,`Reanimated: Animated.cond node first argument should be of type AnimatedNode but got ${e}`),(0,c.default)(n instanceof v.default,`Reanimated: Animated.cond node second argument should be of type AnimatedNode but got ${n}`),(0,c.default)(o instanceof v.default||void 0===o,`Reanimated: Animated.cond node third argument should be of type AnimatedNode or should be undefined but got ${o}`),(u=p.call(this,{type:'cond',cond:e,ifBlock:n,elseBlock:o},[e,n,o]))._condition=e,u._ifBlock=n,u._elseBlock=o,u}return(0,n.default)(y,[{key:"toString",value:function(){return`AnimatedCond, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){return(0,s.val)(this._condition)?(0,s.val)(this._ifBlock):void 0!==this._elseBlock?(0,s.val)(this._elseBlock):void 0}}]),y})(v.default)}),555,[2,21,22,17,19,16,556,557,558,559]); -__d((function(g,r,i,a,m,e,d){'use strict';var n=function(n){if(void 0===n)throw new Error('invariant(...): Second argument must be a string.')};m.exports=function(o,t){for(var f=arguments.length,s=new Array(f>2?f-2:0),u=2;u1&&void 0!==arguments[1]&&arguments[1];return(0,e.default)(this,R),(0,h.default)(null!==t,'Animated.Value cannot be set to the null'),(n=A.call(this,{type:'value',value:p(t)}))._startingValue=n._value=t,n._animation=null,n._constant=u,n}return(0,n.default)(R,[{key:"__detach",value:function(){var t=this;this._constant||(s.default.getValue?s.default.getValue(this.__nodeID,(function(e){return t.__nodeConfig.value=e})):this.__nodeConfig.value=this.__getValue()),this.__detachAnimation(this._animation),(0,u.default)((0,c.default)(R.prototype),"__detach",this).call(this)}},{key:"__detachAnimation",value:function(t){t&&t.__detach(),this._animation===t&&(this._animation=null)}},{key:"__attachAnimation",value:function(t){this.__detachAnimation(this._animation),this._animation=t}},{key:"__onEvaluate",value:function(){return this.__inputNodes&&this.__inputNodes.length&&this.__inputNodes.forEach(f.val),this._value}},{key:"setValue",value:function(t){this.__detachAnimation(this._animation),this._updateValue(t)}},{key:"_updateValue",value:function(t){this._value=t,this.__forceUpdateCache(t)}}],[{key:"valueForConstant",value:function(t){return V(),y.get(t)||new R(t,!0)}}]),R})(_.default)}),561,[2,21,22,14,17,19,16,559,558,560,556]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedSet=function(t,e){return new _(t,(0,v.adapt)(e))};var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),f=t(r(d[5])),l=t(r(d[6])),c=t(r(d[7])),s=r(d[8]),v=r(d[9]);function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var _=(function(t){(0,u.default)(p,t);var v,_,y=(v=p,_=h(),function(){var t,e=(0,f.default)(v);if(_){var n=(0,f.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function p(t,n){var u;return(0,e.default)(this,p),(0,c.default)(t instanceof l.default,`Reanimated: Animated.set first argument should be of type AnimatedNode but got ${t}`),(0,c.default)(n instanceof l.default,`Reanimated: Animated.set second argument should be of type AnimatedNode, String or Number but got ${n}`),u=y.call(this,{type:'set',what:t,value:n},[n]),(0,c.default)(!t._constant,'Value to be set cannot be constant'),u._what=t,u._value=n,u}return(0,n.default)(p,[{key:"toString",value:function(){return`AnimatedSet, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){var t=(0,s.val)(this._value);return this._what.setValue(t),t}}]),p})(l.default)}),562,[2,21,22,17,19,16,559,556,558,557]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedStartClock=function(t){return new h(t)};var e=t(r(d[1])),n=t(r(d[2])),c=t(r(d[3])),o=t(r(d[4])),u=t(r(d[5])),l=t(r(d[6])),f=t(r(d[7])),s=r(d[8]),v=t(r(d[9]));function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var h=(function(t){(0,c.default)(_,t);var l,h,k=(l=_,h=y(),function(){var t,e=(0,u.default)(l);if(h){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function _(t){var n;return(0,e.default)(this,_),(0,v.default)(t instanceof f.default||t instanceof s.AnimatedParam,`Reanimated: Animated.startClock argument should be of type AnimatedClock but got ${t}`),(n=k.call(this,{type:'clockStart',clock:t}))._clockNode=t,n}return(0,n.default)(_,[{key:"toString",value:function(){return`AnimatedStartClock, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){return this._clockNode.start(),0}}]),_})(l.default)}),563,[2,21,22,17,19,16,559,564,565,556]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),l=t(r(d[4])),c=t(r(d[5])),f=t(r(d[6])),h=t(r(d[7])),_=t(r(d[8])),o=r(d[9]);function s(t){var e=v();return function(){var n,u=(0,f.default)(t);if(e){var l=(0,f.default)(this).constructor;n=Reflect.construct(u,arguments,l)}else n=u.apply(this,arguments);return(0,c.default)(this,n)}}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var y=new((function(t){(0,l.default)(h,t);var c=s(h);function h(){var t;return(0,e.default)(this,h),(t=c.call(this,{type:'MAIN_CLOCK'}))._runFrame=function(){t._updateValue(0),t.__children.length>0&&(t._frameCallback=requestAnimationFrame(t._runFrame))},t}return(0,n.default)(h,[{key:"__onEvaluate",value:function(){return+new Date}},{key:"__attach",value:function(){(0,u.default)((0,f.default)(h.prototype),"__attach",this).call(this),this._frameCallback||(this._frameCallback=requestAnimationFrame(this._runFrame))}},{key:"__detach",value:function(){this._frameCallback&&(cancelAnimationFrame(this._frameCallback),this._frameCallback=null),(0,u.default)((0,f.default)(h.prototype),"__detach",this).call(this)}}]),h})(h.default));_e.default=(function(t){(0,l.default)(h,t);var c=s(h);function h(){return(0,e.default)(this,h),c.call(this,{type:'clock'})}return(0,n.default)(h,[{key:"toString",value:function(){return`AnimatedClock, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){return(0,o.val)(y)}},{key:"__attach",value:function(){(0,u.default)((0,f.default)(h.prototype),"__attach",this).call(this),this._started&&!this._attached&&y.__addChild(this),this._attached=!0}},{key:"__detach",value:function(){this._started&&this._attached&&y.__removeChild(this),this._attached=!1,(0,u.default)((0,f.default)(h.prototype),"__detach",this).call(this)}},{key:"start",value:function(){!this._started&&this._attached&&y.__addChild(this),this._started=!0}},{key:"stop",value:function(){this._started&&this._attached&&y.__removeChild(this),this._started=!1}},{key:"isStarted",value:function(){return this._started}}]),h})(_.default)}),564,[2,21,22,14,17,19,16,561,559,558]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnimatedParam=void 0,_e.createAnimatedParam=function(){return new p};var e=t(_r(d[1])),a=t(_r(d[2])),n=t(_r(d[3])),r=t(_r(d[4])),o=t(_r(d[5])),u=t(_r(d[6])),l=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var a=c(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var u=r?Object.getOwnPropertyDescriptor(t,o):null;u&&(u.get||u.set)?Object.defineProperty(n,o,u):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n})(_r(d[7])),i=t(_r(d[8])),f=_r(d[9]);function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,a=new WeakMap;return(c=function(t){return t?a:e})(t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var p=_e.AnimatedParam=(function(t){(0,n.default)(h,t);var c,p,v=(c=h,p=s(),function(){var t,e=(0,o.default)(c);if(p){var a=(0,o.default)(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return(0,r.default)(this,t)});function h(){var t;return(0,e.default)(this,h),(t=v.call(this,{type:'param'},[])).argsStack=[],t.__attach(),t}return(0,a.default)(h,[{key:"beginContext",value:function(t,e){this._prevCallID=e,this.argsStack.push(t)}},{key:"endContext",value:function(){this.argsStack.pop()}},{key:"_getTopNode",value:function(){if(0===this.argsStack.length)throw new Error("param: Invocation failed because argsStack is empty");return this.argsStack[this.argsStack.length-1]}},{key:"setValue",value:function(t){var e=this._getTopNode();if(!e.setValue)throw new Error(`param: setValue(${t}) failed because the top element has no known method for updating it's current value.`);var a=(0,l.getCallID)();(0,l.setCallID)(this._prevCallID),e.setValue(t),(0,l.setCallID)(a)}},{key:"__onEvaluate",value:function(){var t=(0,l.getCallID)();(0,l.setCallID)(this._prevCallID);var e=this._getTopNode(),a=(0,f.val)(e);return(0,l.setCallID)(t),a}},{key:"start",value:function(){var t=this._getTopNode();(0,u.default)(t instanceof i.default||t instanceof h,`param: top node should be of type AnimatedClock but got ${t}`),t.start()}},{key:"stop",value:function(){var t=this._getTopNode();(0,u.default)(t instanceof i.default||t instanceof h,`param: top node should be of type AnimatedClock but got ${t}`),t.stop()}},{key:"isRunning",value:function(){var t=this._getTopNode();return t instanceof h?t.isRunning():((0,u.default)(t instanceof i.default,`param: top node should be of type AnimatedClock but got ${t}`),t.isStarted())}}]),h})(l.default)}),565,[2,21,22,17,19,16,556,559,564,558]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedStopClock=function(t){return new y(t)};var e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),c=t(r(d[4])),u=t(r(d[5])),l=t(r(d[6])),f=t(r(d[7])),s=r(d[8]),p=t(r(d[9]));function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var y=(function(t){(0,o.default)(k,t);var l,y,h=(l=k,y=v(),function(){var t,e=(0,u.default)(l);if(y){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,c.default)(this,t)});function k(t){var n;return(0,e.default)(this,k),(0,p.default)(t instanceof f.default||t instanceof s.AnimatedParam,`Reanimated: Animated.stopClock argument should be of type AnimatedClock but got ${t}`),(n=h.call(this,{type:'clockStop',clock:t}))._clockNode=t,n}return(0,n.default)(k,[{key:"toString",value:function(){return`AnimatedStopClock, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){return this._clockNode.stop(),0}}]),k})(l.default)}),566,[2,21,22,17,19,16,559,564,565,556]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedClockTest=function(t){return new f(t)};var e=t(r(d[1])),n=t(r(d[2])),c=t(r(d[3])),u=t(r(d[4])),o=t(r(d[5]));function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=(function(t){(0,c.default)(y,t);var f,s,v=(f=y,s=l(),function(){var t,e=(0,o.default)(f);if(s){var n=(0,o.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function y(t){var n;return(0,e.default)(this,y),(n=v.call(this,{type:'clockTest',clock:t}))._clockNode=t,n}return(0,n.default)(y,[{key:"toString",value:function(){return`AnimatedClockTest, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){return this._clockNode.isStarted()?1:0}}]),y})(t(r(d[6])).default)}),567,[2,21,22,17,19,16,559]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedDebug=function(e,t){return t};e(r(d[1]));var t=e(r(d[2])),n=e(r(d[3])),c=e(r(d[4])),u=e(r(d[5])),o=e(r(d[6])),f=e(r(d[7])),l=r(d[8]),y=(r(d[9]),r(d[10]),e(r(d[11])));function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}y.default}),568,[2,23,21,22,17,19,16,556,558,557,569,559]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedCall=function(e,t){return new R(e,t)};var t=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),u=e(r(d[4])),o=e(r(d[5])),c=e(r(d[6])),f=e(r(d[7])),s=e(r(d[8])),_=r(d[9]),h=e(r(d[10]));function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var y=new Map;function p(e){var t=y.get(e.id);t&&t._callback(e.args)}var R=(function(e){(0,u.default)(b,e);var R,k,A=(R=b,k=v(),function(){var e,t=(0,c.default)(R);if(k){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function b(e,n){var l;return(0,t.default)(this,b),(0,f.default)(e.every((function(e){return e instanceof h.default})),"Reanimated: Animated.call node args should be an array with elements of type AnimatedNode. One or more of them are not AnimatedNodes"),(l=A.call(this,{type:'call',input:e},e))._callback=n,l._args=e,l}return(0,n.default)(b,[{key:"toString",value:function(){return`AnimatedCall, id: ${this.__nodeID}`}},{key:"__attach",value:function(){(0,l.default)((0,c.default)(b.prototype),"__attach",this).call(this),y.set(this.__nodeID,this),1===y.size&&s.default.addListener('onReanimatedCall',p)}},{key:"__detach",value:function(){y.delete(this.__nodeID),0===y.size&&s.default.removeAllListeners('onReanimatedCall'),(0,l.default)((0,c.default)(b.prototype),"__detach",this).call(this)}},{key:"__onEvaluate",value:function(){return this._callback(this._args.map(_.val)),0}}]),b})(h.default)}),569,[2,21,22,14,17,19,16,556,570,558,559]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),v=r(d[2]);e.default=new v.NativeEventEmitter(u.default)}),570,[2,560,39]); -__d((function(g,r,_i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedEvent=function(t,e){return new w(t,e)},_e.default=void 0;var e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),i=t(r(d[4])),u=t(r(d[5])),f=r(d[6]),c=t(r(d[7])),l=t(r(d[8])),s=t(r(d[9])),v=r(d[10]),_=t(r(d[11])),y=t(r(d[12]));function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t){var e=[],n=[],o=function(t){return'web'===f.Platform.OS||'windows'===f.Platform.OS||'macos'===f.Platform.OS?t:t.__nodeID},i=function t(i,u){if(i instanceof s.default)e.push(u.concat(o(i)));else if('object'==typeof i&&i.__val)e.push(u.concat(o(i.__val)));else if('function'==typeof i){var f=new s.default(0);n.push((0,v.createAnimatedAlways)(i(f))),e.push(u.concat(o(f)))}else if('object'==typeof i)for(var c in i)t(i[c],u.concat(c))};(0,_.default)(t[0]&&t[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.');var u=t[0].nativeEvent;if('object'==typeof u)i(u,[]);else if('function'==typeof u){var c={get:function(t,e){return'__isProxy'===e||(t[e]||'__val'===e||(t[e]=new Proxy({},c)),t[e])},set:function(t,e,n){return'__val'===e&&(t[e]=n,!0)}},l='function'==typeof Proxy?new Proxy({},c):(0,y.default)();n.push((0,v.createAnimatedAlways)(u(l))),i(l,[])}return{eventMappings:e,alwaysNodes:n}}var w=_e.default=(function(t){(0,o.default)(_,t);var l,s,v=(l=_,s=h(),function(){var t,e=(0,u.default)(l);if(s){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,i.default)(this,t)});function _(t){var n;(0,e.default)(this,_);var o=p(t),i=o.eventMappings,u=o.alwaysNodes;return(n=v.call(this,{type:'event',argMapping:i})).__isNative=!0,n._alwaysNodes=u,n}return(0,n.default)(_,[{key:"toString",value:function(){return`AnimatedEvent, id: ${this.__nodeID}`}},{key:"attachEvent",value:function(t,e){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:0;return n.length-i==2?f(t,n,o,i):(0,l.createAnimatedCond)((0,u.lessThan)(t,n[i+1]),f(t,n,o,i),c(t,n,o,i+1))}var h=e.Extrapolate={EXTEND:'extend',CLAMP:'clamp',IDENTITY:'identity'};function p(t,n){for(var u=1;u=n[u-1],'%s must be monotonically non-decreasing. (%s)',t,n)}function v(t,n){(0,o.default)(n.length>=2,'%s must have at least 2 elements. (%s)',t,n)}function T(t,n){for(var u=0;un})),lessOrEq:y((function(t,n){return t<=n})),greaterOrEq:y((function(t,n){return t>=n})),neq:y((function(t,n){return t!=n}))},b=(function(t){(0,u.default)(v,t);var c,s,h=(c=v,s=p(),function(){var t,n=(0,a.default)(c);if(s){var e=(0,a.default)(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function v(t,e){var u;return(0,n.default)(this,v),(0,l.default)('string'==typeof t,`Reanimated: Animated.operator node first argument should be of type String, but got: ${t}`),(0,l.default)(e.every((function(t){return t instanceof f.default||'string'==typeof t||'number'==typeof t})),`Reanimated: Animated.operator node second argument should be one or more of type AnimatedNode, String or Number but got ${e}`),(u=h.call(this,{type:'op',op:t,input:e},e))._op=t,u._input=e,u}return(0,e.default)(v,[{key:"toString",value:function(){return`AnimatedOperator, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){return this._operation||(this._operation=_[this._op],(0,l.default)(this._operation,"Illegal operator '%s'",this._op)),this._operation(this._input)}}]),v})(f.default)}),575,[2,21,22,17,19,16,559,558,556,557]); -__d((function(g,r,_i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedFunction=function(t){for(var n=new Array(t.length),u=0;u1?u-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:[],v=arguments.length>2?arguments[2]:void 0;Array.isArray(o)||(o=[o]);for(var h=new n.default(0),f=(0,c.createAnimatedCond)(h,0,(0,l.createAnimatedCall)([t,(0,i.createAnimatedSet)(h,1)],(function(){v&&v();for(var t=0;t0?n=i:e=i}while(Math.abs(f)>y&&++c=.001?k(e,i,t,n):0===c?i:w(e,u,u+_,t,n)}return function(o){return t===e&&n===u?o:0===o?0:1===o?1:A(i(o),e,u)}}_e.default=(function(t){(0,u.default)(_,t);var s,y,h=(s=_,y=v(),function(){var t,e=(0,f.default)(s);if(y){var n=(0,f.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function _(t,n,u,o,f){var i;return(0,e.default)(this,_),(0,l.default)(t instanceof c.default,`Reanimated: Bezier node argument should be of type AnimatedNode but got ${t}`),(i=h.call(this,{type:'bezier',mX1:n,mY1:u,mX2:o,mY2:f,input:t},[t]))._value=t,i._bezier=F(n,u,o,f),i}return(0,n.default)(_,[{key:"toString",value:function(){return`AnimatedBezier, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){return this._bezier((0,i.val)(this._value))}}]),_})(c.default)}),582,[2,21,22,17,19,16,558,559,556]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),o=n(r(d[2]));function u(n,t,o){if(!n)throw new Error(` expects the 'exec' prop or children to be an animated node or a function returning an animated node. ${t?`Got "${typeof o}" type passed to exec`:`Got "${typeof t}" type passed to children`}`)}e.default=function(n){var c=n.exec,f=n.children,l=n.dependencies,p=f||c,s=null;return p instanceof o.default?s=function(){return p}:'function'==typeof p&&(s=p),u(s,f,c),(0,t.default)(s,l),null}}),583,[2,584,559]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,f){if(!(t.default.useEffect instanceof Function))return;t.default.useEffect((function(){if(!(n instanceof Function)){console.warn('useCode() first argument should be a function that returns an animation node.');var t=n;n=function(){return t}}var f=n();if(f){f instanceof Array&&(f=(0,u.block)(f));var o=(0,u.always)(f);return o.__attach(),function(){return o.__detach()}}}),f)};var t=n(r(d[1])),u=r(d[2])}),584,[2,30,554]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"Extrapolate",{enumerable:!0,get:function(){return o.Extrapolate}}),Object.defineProperty(_e,"acc",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"color",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(_e,"diff",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"diffClamp",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"interpolate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"interpolateColors",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"onChange",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(_e,"useCode",{enumerable:!0,get:function(){return l.default}});var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),u=e(_r(d[4])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var f=u?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(n,o,f):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[5])),f=e(_r(d[6])),a=e(_r(d[7])),l=e(_r(d[8]));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}}),585,[2,586,587,588,589,573,590,591,584]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=new u.default(0);return f(n,t)};var t=r(d[1]),u=n(r(d[2])),f=(0,t.proc)((function(n,u){return(0,t.set)(u,(0,t.add)(u,n))}))}),586,[2,554,561]); -__d((function(_g,_r,i,_a,m,e,d){var n=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,a,l){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if('web'===r.Platform.OS)return(0,t.concat)('rgba(',n,',',a,',',l,',',f,')');f=f instanceof u.default?(0,t.round)((0,t.multiply)(f,255)):Math.round(255*f);return o(n,a,l,f)};var r=_r(d[1]),t=_r(d[2]),u=n(_r(d[3])),o=(0,t.proc)((function(n,u,o,a){var l=(0,t.add)((0,t.multiply)(a,16777216),(0,t.multiply)((0,t.round)(n),65536),(0,t.multiply)((0,t.round)(u),256),(0,t.round)(o));return'android'===r.Platform.OS?(0,t.cond)((0,t.lessThan)(l,2147483648),l,(0,t.sub)(l,Math.pow(2,32))):l}))}),587,[2,39,554,559]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=new u.default(0),o=new u.default;return f(n,t,o)};var t=r(d[1]),u=n(r(d[2])),f=(0,t.proc)((function(n,u,f){return(0,t.block)([(0,t.set)(u,(0,t.cond)((0,t.defined)(f),(0,t.sub)(n,f),0)),(0,t.set)(f,n),u])}))}),588,[2,554,561]); -__d((function(g,r,i,_a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,f,l){var o=new t.default;return(0,a.set)(o,(0,a.min)((0,a.max)((0,a.add)((0,a.cond)((0,a.defined)(o),o,n),(0,u.default)(n)),f),l))};var a=r(d[1]),t=n(r(d[2])),u=n(r(d[3]))}),589,[2,554,561,588]); -__d((function(_g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(t,u){var i=u.inputRange,c=u.outputColorRange.map(e.processColor),g=(0,n.round)((0,a.default)(t,{inputRange:i,outputRange:c.map(o),extrapolate:a.Extrapolate.CLAMP})),s=(0,n.round)((0,a.default)(t,{inputRange:i,outputRange:c.map(p),extrapolate:a.Extrapolate.CLAMP})),y=(0,n.round)((0,a.default)(t,{inputRange:i,outputRange:c.map(f),extrapolate:a.Extrapolate.CLAMP})),P=(0,a.default)(t,{inputRange:i,outputRange:c.map(l),extrapolate:a.Extrapolate.CLAMP});return(0,r.default)(g,s,y,P)};var e=_r(d[1]),n=_r(d[2]),r=t(_r(d[3])),a=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var p=a?Object.getOwnPropertyDescriptor(t,o):null;p&&(p.get||p.set)?Object.defineProperty(r,o,p):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r})(_r(d[4]));function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}function o(t){return t>>16&255}function p(t){return t>>8&255}function f(t){return 255&t}function l(t){return(t>>24&255)/255}}),590,[2,39,554,587,573]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,t){var c=new o.default;return u(n,t,c)};var t=r(d[1]),o=n(r(d[2])),u=(0,t.proc)((function(n,o,u){return(0,t.block)([(0,t.cond)((0,t.not)((0,t.defined)(u)),(0,t.set)(u,n)),(0,t.cond)((0,t.neq)(n,u),[(0,t.set)(u,n),o])])}))}),591,[2,554,561]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(t){(0,y.default)('function'!=typeof t||t.prototype&&t.prototype.isReactComponent,"`createAnimatedComponent` does not support stateless functional components; use a class component instead.");var R=(function(c){(0,o.default)(b,c);var y,R,E=(y=b,R=N(),function(){var t,e=(0,p.default)(y);if(R){var n=(0,p.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,s.default)(this,t)});function b(t){var n;return(0,e.default)(this,b),(n=E.call(this,t))._invokeAnimatedPropsCallbackOnMount=!1,n._animatedPropsCallback=function(){null==n._component?n._invokeAnimatedPropsCallbackOnMount=!0:'function'!=typeof n._component.setNativeProps?n.forceUpdate():n._component.setNativeProps(n._propsAnimated.__getValue())},n._setComponentRef=function(t){t!==n._component&&(n._component=t)},n._attachProps(n.props),n}return(0,n.default)(b,[{key:"componentWillUnmount",value:function(){this._detachPropUpdater(),this._propsAnimated&&this._propsAnimated.__detach(),this._detachNativeEvents()}},{key:"setNativeProps",value:function(t){this._component.setNativeProps(t)}},{key:"componentDidMount",value:function(){this._invokeAnimatedPropsCallbackOnMount&&(this._invokeAnimatedPropsCallbackOnMount=!1,this._animatedPropsCallback()),this._propsAnimated.setNativeView(this._component),this._attachNativeEvents(),this._attachPropUpdater()}},{key:"_getEventViewRef",value:function(){return this._component.getScrollableNode?this._component.getScrollableNode():this._component}},{key:"_attachNativeEvents",value:function(){var t=this._getEventViewRef();for(var e in this.props){var n=this.props[e];n instanceof f.default&&n.attachEvent(t,e)}}},{key:"_detachNativeEvents",value:function(){var t=this._getEventViewRef();for(var e in this.props){var n=this.props[e];n instanceof f.default&&n.detachEvent(t,e)}}},{key:"_reattachNativeEvents",value:function(t){var e=this._getEventViewRef(),n=new Set,o=new Set;for(var s in this.props){var p=this.props[s];p instanceof f.default&&o.add(p.__nodeID)}for(var c in t){var u=this.props[c];u instanceof f.default&&(o.has(u.__nodeID)?n.add(u.__nodeID):u.detachEvent(e,c))}for(var l in this.props){var v=this.props[l];v instanceof f.default&&!n.has(v.__nodeID)&&v.attachEvent(e,l)}}},{key:"_attachProps",value:function(t){var e=this._propsAnimated;this._propsAnimated=(0,_.createOrReusePropsNode)(t,this._animatedPropsCallback,e),e!==this._propsAnimated&&e&&e.__detach()}},{key:"_updateFromNative",value:function(t){this._component.setNativeProps(t)}},{key:"_attachPropUpdater",value:function(){var t=(0,u.findNodeHandle)(this);P.set(t,this),1===P.size&&l.default.addListener('onReanimatedPropsChange',A)}},{key:"_detachPropUpdater",value:function(){var t=(0,u.findNodeHandle)(this);P.delete(t),0===P.size&&l.default.removeAllListeners('onReanimatedPropsChange')}},{key:"componentDidUpdate",value:function(t){this._attachProps(this.props),this._reattachNativeEvents(t),this._propsAnimated.setNativeView(this._component)}},{key:"_filterNonAnimatedStyle",value:function(t){var e={};for(var n in t){var o=t[n];'transform'!==n&&(o instanceof h.default?e[n]=o._startingValue:o instanceof v.default||(e[n]=o))}return e}},{key:"_filterNonAnimatedProps",value:function(t){var e={};for(var n in t){var o=t[n];'style'===n?e[n]=this._filterNonAnimatedStyle(u.StyleSheet.flatten(o)):o instanceof f.default?e[n]=C:o instanceof h.default?e[n]=o._startingValue:o instanceof v.default||(e[n]=o)}return e}},{key:"render",value:function(){var e=this._filterNonAnimatedProps(this.props),n=u.Platform.select({web:{},default:{collapsable:!1}});return(0,k.jsx)(t,Object.assign({},e,{ref:this._setComponentRef},n))}},{key:"getNode",value:function(){return this._component}}]),b})(c.default.Component);return R.displayName=`AnimatedComponent(${t.displayName||t.name||'Component'})`,R};var e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),p=t(r(d[5])),c=t(r(d[6])),u=r(d[7]),l=t(r(d[8])),f=t(r(d[9])),v=t(r(d[10])),h=t(r(d[11])),_=r(d[12]),y=t(r(d[13])),k=r(d[14]);function N(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var P=new Map;function A(t){var e=P.get(t.viewTag);e&&e._updateFromNative(t.props)}function C(){}}),592,[2,21,22,17,19,16,30,39,570,571,559,572,593,556,211]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createOrReusePropsNode=function(e,t,n){e.style&&(e=Object.assign({},e,{style:(0,v.createOrReuseStyleNode)(e.style,n&&n._props.style)}));var u=V(e);if(n&&(0,p.default)(u,n._config))return n;return new b(e,u,t)};var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5])),c=e(r(d[6])),f=r(d[7]),s=e(r(d[8])),_=e(r(d[9])),v=r(d[10]),h=e(r(d[11])),p=e(r(d[12])),y=r(d[13]);function w(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function V(e){var t={};for(var n in e){var u=e[n];u instanceof s.default&&!(u instanceof _.default)&&(t[n]=u.__nodeID)}return t}var b=(function(e){(0,o.default)(b,e);var v,p,V=(v=b,p=w(),function(){var e,t=(0,c.default)(v);if(p){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function b(e,n,u){var o;return(0,t.default)(this,b),(o=V.call(this,{type:'props',props:n},Object.values(e).filter((function(e){return!(e instanceof _.default)}))))._config=n,o._props=e,o._callback=u,o.__attach(),o}return(0,n.default)(b,[{key:"toString",value:function(){return`AnimatedProps, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){var e={};for(var t in this._props){var n=this._props[t];n instanceof s.default&&(e[t]=n.__getValue())}return e}},{key:"__detach",value:function(){var e=(0,f.findNodeHandle)(this._animatedView);(0,h.default)(null!=e,'Unable to locate attached view in the native tree'),this._disconnectAnimatedView(e),(0,u.default)((0,c.default)(b.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._callback(),this._animatedView&&(0,y.val)(this)}},{key:"setNativeView",value:function(e){if(this._animatedView!==e){this._animatedView=e;var t=(0,f.findNodeHandle)(this._animatedView);(0,h.default)(null!=t,'Unable to locate attached view in the native tree'),this._connectAnimatedView(t)}}}]),b})(s.default)}),593,[2,21,22,14,17,19,16,39,559,571,594,556,596,558]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createOrReuseStyleNode=function(t,e){(t=o.StyleSheet.flatten(t)||{}).transform&&(t=Object.assign({},t,{transform:(0,s.createOrReuseTransformNode)(t.transform,e&&e._style.transform)}));var n=_(t);if(e&&(0,y.default)(n,e._config))return e;return new h(t,n)},_e.default=void 0;var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),f=t(r(d[4])),l=t(r(d[5])),o=r(d[6]),c=t(r(d[7])),s=r(d[8]),y=t(r(d[9]));function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _(t){var e={};for(var n in t){var u=t[n];u instanceof c.default&&(e[n]=u.__nodeID)}return e}var h=_e.default=(function(t){(0,u.default)(_,t);var o,s,y=(o=_,s=v(),function(){var t,e=(0,l.default)(o);if(s){var n=(0,l.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,f.default)(this,t)});function _(t,n){var u;return(0,e.default)(this,_),(u=y.call(this,{type:'style',style:n},Object.values(t)))._config=n,u._style=t,u}return(0,n.default)(_,[{key:"toString",value:function(){return`AnimatedStyle, id: ${this.__nodeID}`}},{key:"_walkStyleAndGetAnimatedValues",value:function(t){var e={};for(var n in t){var u=t[n];u instanceof c.default?e[n]=u.__getValue():u&&!Array.isArray(u)&&'object'==typeof u&&(e[n]=this._walkStyleAndGetAnimatedValues(u))}return e}},{key:"__onEvaluate",value:function(){return this._walkStyleAndGetAnimatedValues(this._style)}}]),_})(c.default)}),594,[2,21,22,17,19,16,39,559,595,596]); -__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createOrReuseTransformNode=function(t,n){var e=v(t);if(n&&(0,l.default)(e,n._config))return n;return new _(t,e)};var n=t(r(d[1])),e=t(r(d[2])),u=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),l=t(r(d[7]));function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function v(t){var n=[];return t.forEach((function(t){for(var e in t){var u=t[e];u instanceof c.default?n.push({property:e,nodeID:u.__nodeID}):n.push({property:e,value:u})}})),n}function p(t){var n=[];return t.forEach((function(t){for(var e in t){var u=t[e];u instanceof c.default&&n.push(u)}})),n}var _=(function(t){(0,u.default)(h,t);var l,v,_=(l=h,v=s(),function(){var t,n=(0,o.default)(l);if(v){var e=(0,o.default)(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return(0,f.default)(this,t)});function h(t,e){var u;return(0,n.default)(this,h),(u=_.call(this,{type:'transform',transform:e},p(t)))._config=e,u._transform=t,u}return(0,e.default)(h,[{key:"toString",value:function(){return`AnimatedTransform, id: ${this.__nodeID}`}},{key:"__onEvaluate",value:function(){return this._transform.map((function(t){var n={};for(var e in t){var u=t[e];u instanceof c.default&&(n[e]=u.__getValue())}return n}))}}]),h})(c.default)}),595,[2,21,22,17,19,16,559,596]); -__d((function(g,r,_i,_a,m,e,d){"use strict";var t=[],n=[];function u(t,n,o,l){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if('object'!=typeof t||'object'!=typeof n)return!1;var a=Object.prototype.toString,c=a.call(t);if(c!=a.call(n))return!1;switch(c){case'[object String]':return t==String(n);case'[object Number]':return!isNaN(t)&&!isNaN(n)&&t==Number(n);case'[object Date]':case'[object Boolean]':return+t==+n;case'[object RegExp]':return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}for(var i=o.length;i--;)if(o[i]==t)return l[i]==n;o.push(t),l.push(n);var s=0;if('[object Array]'===c){if((s=t.length)!==n.length)return!1;for(;s--;)if(!u(t[s],n[s],o,l))return!1}else{if(t.constructor!==n.constructor)return!1;if(t.hasOwnProperty('valueOf')&&n.hasOwnProperty('valueOf'))return t.valueOf()==n.valueOf();var f=Object.keys(t);if(f.length!=Object.keys(n).length)return!1;for(var p=0;p18&&h<=44?c(h):y(h),l(2*w-w*w,v,.01));return Object.assign({},u,{stiffness:f(O),damping:p(j)})}e.default={makeDefaultConfig:function(){return{stiffness:new o.default(100),mass:new o.default(1),damping:new o.default(10),overshootClamping:!1,restSpeedThreshold:.001,restDisplacementThreshold:.001,toValue:new o.default(0)}},makeConfigFromBouncinessAndSpeed:function(n){var u=n.bounciness,o=n.speed,s=(0,t.default)(n,l);return'number'==typeof u&&'number'==typeof o?w(u,o,s):b(u,o,s)},makeConfigFromOrigamiTensionAndFriction:function(n){var u=n.tension,o=n.friction,l=(0,t.default)(n,s);return Object.assign({},l,{stiffness:'number'==typeof u?f(u):c(u),damping:'number'==typeof o?p(o):y(o)})}}}),604,[2,4,554,561]); -__d((function(g,r,i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){var l=n.default.useRef(null);null===l.current&&(l.current=new t.default(u));return l.current};var n=u(r(d[1])),t=u(r(d[2]))}),605,[2,30,572]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.createContext(null)}),606,[30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),i=e(_r(d[5])),a=e(_r(d[6])),l=e(_r(d[7])),c=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[8])),u=_r(d[9]),f=_r(d[10]),s=e(_r(d[11]));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}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}var h=_e.default=(function(e){(0,i.default)(C,e);var v,h,k=(v=C,h=p(),function(){var e,t=(0,l.default)(v);if(h){var r=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,a.default)(this,e)});function C(){var e;(0,r.default)(this,C);for(var t=arguments.length,n=new Array(t),i=0;i=21){var e=this.props,r=e.style,n=(0,t.default)(e,c);return u.createElement(i.TouchableNativeFeedback,s({},n,{style:null,background:i.TouchableNativeFeedback.Ripple(this.props.pressColor,this.props.borderless)}),u.createElement(i.View,{style:r},u.Children.only(this.props.children)))}return u.createElement(i.TouchableOpacity,this.props,this.props.children)}}]),b})(u.Component);b={borderless:!1,pressColor:'rgba(0, 0, 0, .32)'},(h="defaultProps")in(y=v)?Object.defineProperty(y,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):y[h]=b}),608,[2,4,21,22,17,19,16,30,39]); -__d((function(g,r,i,a,m,e,d){}),609,[]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.M=void 0,_e.a=E,_e.b=S,_e.c=k,_e.g=void 0;var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),l=r(d[5]),c=r(d[6]),s=c.NativeModules.RNMendixEncryptedStorage?Object.assign({},c.NativeModules.RNMendixEncryptedStorage):void 0,f=!!s,y=f&&s.IS_ENCRYPTED;if(f){var p,v=null==(p=c.NativeModules.RNMendixEncryptedStorage)?void 0:p.getItem,h=!1;c.NativeModules.RNMendixEncryptedStorage.getItem=function(e){if(!h)throw new Error("Insecure access to RNMendixEncryptedStorage");return v.call(c.NativeModules.RNMendixEncryptedStorage,e)},s.getItem=function(e){try{return h=!0,c.NativeModules.RNMendixEncryptedStorage.getItem(e)}finally{h=!1}}}var I,M=_e.M=c.NativeModules.MxConfiguration,N=(function(){function e(t,u){(0,n.default)(this,e),this.key=t,this.store=u}var o,c,s,f,y,p;return(0,u.default)(e,[{key:"get",value:(p=(0,t.default)((function*(){return yield this.getItemSafe(this.key)})),function(){return p.apply(this,arguments)})},{key:"set",value:(y=(0,t.default)((function*(e){yield this.setItemSafe(this.key,e)})),function(e){return y.apply(this,arguments)})},{key:"remove",value:(f=(0,t.default)((function*(){yield this.removeItemSafe(this.key)})),function(){return f.apply(this,arguments)})},{key:"setItemSafe",value:(s=(0,t.default)((function*(e,t){try{yield this.store.setItem(e,t)}catch(e){l.L.get().getLogger().warn(e)}})),function(e,t){return s.apply(this,arguments)})},{key:"getItemSafe",value:(c=(0,t.default)((function*(e){try{var t;return null!=(t=yield this.store.getItem(e))?t:void 0}catch(e){return void l.L.get().getLogger().warn(e)}})),function(e){return c.apply(this,arguments)})},{key:"removeItemSafe",value:(o=(0,t.default)((function*(e){try{return yield this.store.removeItem(e)}catch(e){l.L.get().getLogger().warn(e)}})),function(e){return o.apply(this,arguments)})}]),e})();function S(e){return w.apply(this,arguments)}function w(){return w=(0,t.default)((function*(e){if(!f)throw new Error("Encrypted storage not supported.");y||l.L.get().getLogger().warn("An encrypted storage was requested but the mobile device does not support it. Falling back to unencrypted.");var n,u=s,c=L(e);return yield(n=(0,t.default)((function*(e,t){try{if(yield t.getItem(e))return}catch(e){}var n=yield o.default.getItem(e);n&&(yield t.setItem(e,n),yield o.default.removeItem(e))})),function(e,t){return n.apply(this,arguments)})(c,u),new N(c,u)})),w.apply(this,arguments)}function E(e){return new N(L(e),o.default)}function k(e){return f?S(e):(l.L.get().getLogger().warn("The client supports encryption but the required dependencies are missing. Rebuild the app with latest dependencies to enable encryption"),E(e))}function L(e){var t=M.APP_NAME;return`${t?t+"_":""}${e}`}_e.g=(function(){var e=(0,t.default)((function*(){return I||(I=yield k("token")),I}));return function(){return e.apply(this,arguments)}})()}),610,[2,12,21,22,611,437,39]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"useAsyncStorage",{enumerable:!0,get:function(){return n.useAsyncStorage}});var u=t(r(d[1])),n=r(d[2]);e.default=u.default}),611,[2,612,614]); -__d((function(g,r,_i,a,m,_e,d){'use strict';var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(r(d[1])),n=e(r(d[2]));if(!n.default)throw new Error("[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.\n\nTo fix this issue try these steps:\n\n \u2022 Run `react-native link @react-native-community/async-storage` in the project root.\n\n \u2022 Rebuild and restart the app.\n\n \u2022 Run the packager with `--reset-cache` flag.\n\n \u2022 If you are using CocoaPods on iOS, run `pod install` in the `ios` directory and then rebuild and re-run the app.\n\n \u2022 If this happens while testing with Jest, check out docs how to integrate AsyncStorage with it: https://react-native-community.github.io/async-storage/docs/advanced/jest\n\nIf none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-async-storage/issues \n");function i(e,t){var n=arguments.length>1;if('string'!=typeof e&&console.warn(`[AsyncStorage] Using ${typeof e} type for key is not supported. This can lead to unexpected behavior/errors. Use string instead.\nKey passed: ${e}\n`),n&&'string'!=typeof t){if(null==t)throw new Error(`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .remove method instead.\nPassed value: ${t}\nPassed key: ${e}\n`);console.warn(`[AsyncStorage] The value for key "${e}" is not a string. This can lead to unexpected behavior/errors. Consider stringifying it.\nPassed value: ${t}\nPassed key: ${e}\n`)}}var u={_getRequests:[],_getKeys:[],_immediate:null,getItem:function(e,t){return new Promise((function(u,s){i(e),n.default.multiGet([e],(function(e,n){var i=n&&n[0]&&n[0][1]?n[0][1]:null,l=o(e);t&&t(l&&l[0],i),l?s(l[0]):u(i)}))}))},setItem:function(e,t,u){return new Promise((function(s,l){i(e,t),n.default.multiSet([[e,t]],(function(e){var t=o(e);u&&u(t&&t[0]),t?l(t[0]):s(null)}))}))},removeItem:function(e,t){return new Promise((function(u,s){i(e),n.default.multiRemove([e],(function(e){var n=o(e);t&&t(n&&n[0]),n?s(n[0]):u(null)}))}))},mergeItem:function(e,t,u){return new Promise((function(s,l){i(e,t),n.default.multiMerge([[e,t]],(function(e){var t=o(e);u&&u(t&&t[0]),t?l(t[0]):s(null)}))}))},clear:function(e){return new Promise((function(t,i){n.default.clear((function(n){var u=s(n);e&&e(u),u?i(u):t(null)}))}))},getAllKeys:function(e){return new Promise((function(t,i){n.default.getAllKeys((function(n,u){var o=s(n);e&&e(o,u),o?i(o):t(u)}))}))},flushGetRequests:function(){var e=this._getRequests,i=this._getKeys;this._getRequests=[],this._getKeys=[],n.default.multiGet(i,(function(n,i){var u={};i&&i.forEach((function(e){var n=(0,t.default)(e,2),i=n[0],o=n[1];return u[i]=o,o}));for(var o=e.length,s=0;s2&&void 0!==arguments[2]?arguments[2]:void 0;if(0===n.length)return a;var s=e.getScope(),l=c!==U?c:void 0;try{for(var f of(c===U&&(s.set("currentObject",n[0]),o&&s.set("currentResult",l),l=yield t(i,s,"primitive")),n))s.set("currentObject",f),o&&s.set("currentResult",l),l=u(l,yield t(i,s,"primitive"))}finally{s.set("currentObject",void 0),s.set("currentResult",void 0)}return l}));return function(e,t){return u.apply(this,arguments)}})()})(t,this.evaluateExp,n,(0,v.e)(e.expression),e.operation===R.Reduce),c=yield(i=(0,a.default)((function*(e,t,n,i,a){switch(t.operation){case R.Sum:return e((0,w.Big)(0),(function(e,t){return e.plus(t)}),(0,w.Big)(0));case R.Average:var o=yield e(void 0,(function(e,t){return e.plus(t)}),(0,w.Big)(0));if(void 0===o)return;return o.div(n.length);case R.Minimum:return e(void 0,(function(e,t){return e.lt(t)?e:t}),U);case R.Maximum:return e(void 0,(function(e,t){return e.gt(t)?e:t}),U);case R.All:return e(!0,(function(e,t){return e&&t}),!0);case R.Any:return e(!1,(function(e,t){return Boolean(e)||Boolean(t)}),!1);case R.Reduce:var u=i.getScope(),c=yield a((0,v.e)(t.initialExpression),u,"primitive");return e(c,(function(e,t){return t}),c);default:return}})),function(e,t,n,a,o){return i.apply(this,arguments)})(u,e,n,t,this.evaluateExp);o.set(e.outputVar,c)}else o.set(e.outputVar,(function(e,t,n){var i=e.map((function(e){return e.get2(n)})).filter((function(e){return e instanceof w.Big}));switch(t){case R.Minimum:return 0===i.length?void 0:i.reduce((function(e,t){return t.lt(e)?t:e}),(0,v.e)(i[0]));case R.Maximum:return 0===i.length?void 0:i.reduce((function(e,t){return t.gt(e)?t:e}),(0,v.e)(i[0]));case R.Average:return 0===i.length?void 0:H(i).div(i.length);case R.Sum:return H(i);default:return}})(n,e.operation,(0,v.e)(e.member)));else o.set(e.outputVar,new w.Big(n.length))})),function(e,n){return t.apply(this,arguments)})}]),e})();function H(e){return e.reduce((function(e,t){return e.plus(t)}),new w.Big(0))}var U=Symbol("first"),J=(function(){function e(){(0,c.default)(this,e),this.instructionType="copyVariable"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=t.getScope().get(e.inputVar);t.getScope().set(e.outputVar,n)})),function(e,n){return t.apply(this,arguments)})}]),e})(),K=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="filterListByExpression"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n,i=t.getScope().get(e.inputVar),a=t.getScope();try{if(!(0,b.i)(i))throw new v.A;if(e.retrieveSingleObject){for(var o of i)if(a.set("currentObject",o),yield this.evaluateExp(e.expr,t.getScope(),"primitive")){n=o;break}}else for(var u of(n=[],i))a.set("currentObject",u),(yield this.evaluateExp(e.expr,t.getScope(),"primitive"))&&n.push(u)}finally{a.set("currentObject",void 0)}a.set(e.outputVar,n)})),function(e,n){return t.apply(this,arguments)})}]),e})(),X=(0,y.g)("="),W=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="filterList"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=t.getScope().get(e.inputVar),i=yield this.evaluateExp(e.expectedValue,t.getScope(),"primitive");if(!(0,b.i)(n))throw new v.A;function a(t){var n=t.get2(e.attribute);return X(n,i)}e.retrieveSingleObject?t.getScope().set(e.outputVar,n.find(a)):t.getScope().set(e.outputVar,n.filter(a))})),function(e,n){return t.apply(this,arguments)})}]),e})(),q=(function(){function e(){(0,c.default)(this,e),this.instructionType="inheritanceSwitch"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=t.getScope().get(e.inputVar);if(void 0===n)return{goto:(0,v.e)(e.targets[""])};if(!(n instanceof x.M))throw new v.A;var i=n.getEntity();if(!(i in e.targets))throw new v.A;return{goto:(0,v.e)(e.targets[i])}})),function(e,n){return t.apply(this,arguments)})}]),e})(),Q=(function(){function e(t,n){(0,c.default)(this,e),this.evaluateExp=t,this.executeNanoflow=n,this.instructionType="javaScriptActionCall"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n,o=this,u=yield Promise.all(e.parameters.map((function(){var e=(0,a.default)((function*(e){return"nanoflowId"===e.kind?o.createNanoflowWrapper(e.value,t):o.evaluateExp(e.value,t.getScope(),e.kind)}));return function(t){return e.apply(this,arguments)}})())),c=yield(n=(0,a.default)((function*(e){return e()})),function(e){return n.apply(this,arguments)})(e.action),s=yield c.apply(void 0,(0,i.default)(u));e.outputVar&&t.getScope().set(e.outputVar,(0,b.a)(s))})),function(e,n){return t.apply(this,arguments)})},{key:"createNanoflowWrapper",value:function(e,t){var n=this;if(void 0!==e)return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=Object.keys(i).map((function(e){return{name:e,value:(0,b.a)(i[e])}}));return n.executeNanoflow(e,a,t)}}}]),e})(),Y=(function(){function e(){(0,c.default)(this,e),this.instructionType="jump"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){return{goto:e.target}})),function(e,n){return t.apply(this,arguments)})}]),e})(),Z=(function(){function e(t){(0,c.default)(this,e),this.executeInstructions=t,this.instructionType="listLoop"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=t.getScope().get(e.listVar);if(!Array.isArray(n))throw new v.A;for(var i of n)if(t.getScope().set(e.iteratorVar,i),yield this.executeInstructions(e.body,t))break})),function(e,n){return t.apply(this,arguments)})}]),e})(),ee=(function(){function e(t){(0,c.default)(this,e),this.evaluateFlowExpression=t,this.instructionType="microflowCall",this.logger=S.L.get().getLogger(S.a.Nanoflow)}var t,n;return(0,u.default)(e,[{key:"execute",value:(n=(0,a.default)((function*(e,t){var n=e.operationId,i=e.parameters,a=e.outputVar,o=new h.a;this.logger.debug(`[${t.executionId}] Starting microflow call ${n}.`);var u=yield this.toRuntimeArguments(i,t),c=mx.isOffline()?yield(0,k.o)().executeMicroflow(n,u):yield(0,k.a)().executeMicroflow(n,u,t.currentForm);void 0!==a&&t.getScope().set(a,c),this.logger.debug(`[${t.executionId}] Finished microflow call ${n} in ${o.measure()} milliseconds.`)})),function(e,t){return n.apply(this,arguments)})},{key:"toRuntimeArguments",value:(t=(0,a.default)((function*(e,t){var n={};for(var i of e){var a=i.name,o=i.value,u=i.kind,c=yield this.evaluateFlowExpression(o,t.getScope(),u);if("object"===u&&c instanceof x.M)n[a]={guid:c.getGuid()};else if("list"===u&&(0,b.i)(c))n[a]={guids:c.map((function(e){return e.getGuid()}))};else if("primitive"===u){var s=(0,b.e)(c);null!==s&&(n[a]={value:s})}}return n})),function(e,n){return t.apply(this,arguments)})}]),e})(),te=(function(){function e(t,n){(0,c.default)(this,e),this.evaluateExpression=t,this.executeNanoflow=n,this.instructionType="nanoflowCall"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=this,i=e.flow,o=e.parameters,u=e.outputVar,c=yield Promise.all(o.map((function(){var e=(0,a.default)((function*(e){return{name:e.name,value:yield n.evaluateExpression(e.value,t.getScope(),e.kind)}}));return function(t){return e.apply(this,arguments)}})())),s=yield this.executeNanoflow(i,c,t);void 0!==u&&t.getScope().set(u,s)})),function(e,n){return t.apply(this,arguments)})}]),e})(),ne=(function(){function e(){(0,c.default)(this,e),this.instructionType="associationRetrieve"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=e.inputVar,i=e.association,o=e.entity,u=e.retrieveSingleObject,c=e.direction,s=e.outputVar,l=e.operationId,f=t.getScope().get(n);if(void 0!==f){if(!(f instanceof x.M))throw new v.A;var p,h=mx.isOffline()?yield(p=(0,a.default)((function*(e,t,n,i){return new Promise((function(a,o){mx.data.get({guid:e.getGuid(),path:t,entity:n,direction:i,callback:a,error:o})}))})),function(e,t,n,i){return p.apply(this,arguments)})(f,i,o,c):(yield(0,k.a)().retrieveByPathUsingOperationIdOrCache(f.getGuid(),i,c,o,l)).mxObjects;t.getScope().set(s,u?h[0]:h)}else t.getScope().set(s,u?void 0:[])})),function(e,n){return t.apply(this,arguments)})}]),e})(),ie=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="changeObject"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=t.getScope().get(e.inputVar);if(void 0!==n){if(!(n instanceof x.M))throw new v.A;if(n.isReadonlyAttr(e.member))throw new Error(`Cannot set $${e.inputVar}/${e.member} because it is read-only`);var i=yield this.evaluateExp(e.value,t.getScope(),"primitive");n.set2(e.member,i instanceof w.Big?i.round(8):i)}})),function(e,n){return t.apply(this,arguments)})}]),e})();function re(e,t){var n=t.getScope().get(e);if(n instanceof x.M)return[n];if((0,b.i)(n)||void 0===n)return n;throw new v.A}var ae=(function(){function e(){(0,c.default)(this,e),this.instructionType="commitObjects"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=re(e.inputVar,t);if(void 0!==n&&0!==n.length){var i=(0,v.g)(n,(function(e){return e.getGuid()})),a=(0,v.e)(i[0]).getEntity();mx.isOffline()&&!(0,k.o)().hasOnlineSyncMode(a)?yield new Promise((function(e,t){return mx.data.commit({mxobjs:n,callback:e,error:t})})):yield(0,k.a)().executeObjectAction(e.operationId,"commit",n)}})),function(e,n){return t.apply(this,arguments)})}]),e})(),oe=(function(){function e(){(0,c.default)(this,e),this.instructionType="createObject"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n;n=mx.isOffline()&&!(0,k.o)().hasOnlineSyncMode(e.objectType)?yield(0,k.o)().create(e.objectType):yield(0,k.a)().createObject(e.objectType,e.operationId),t.getScope().set(e.outputVar,n)})),function(e,n){return t.apply(this,arguments)})}]),e})(),ue=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="databaseRetrieve"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=e.entity,i=e.constraints,a=e.limitExpr,o=e.offsetExpr,u=e.takeFirst,c=e.sort,s=e.outputVar,l=e.operationId,f=t.getScope(),p=a?yield this.evaluateExp(a,f,"primitive"):void 0,v=o?yield this.evaluateExp(o,f,"primitive"):void 0,h=Object.assign({},v?{offset:Number(v)}:{},p?{amount:Number(p)}:{},c?{sort:c}:{}),y=(mx.isOffline()&&!(0,k.o)().hasOnlineSyncMode(n)?yield(0,k.o)().retrieve(n,i?(0,E.t)(i,(function(e){return f.get(e)})):void 0,h):yield(0,k.a)().retrieveByXPath(l,i?(0,E.g)(i,(function(e){return f.get(e)})):{},"",h,!1)).mxObjects;f.set(s,u?y[0]:y)})),function(e,n){return t.apply(this,arguments)})}]),e})(),ce=(function(){function e(){(0,c.default)(this,e),this.instructionType="deleteObjects"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=t.getScope().get(e.inputVar),i=[];if(n instanceof x.M)i=[n];else{if(!(0,b.i)(n)){if(void 0===n)return;throw new v.A}if(0===n.length)return;i=(0,v.g)(n,(function(e){return e.getGuid()}))}var a=(0,v.e)(i[0]).getEntity();mx.isOffline()&&!(0,k.o)().hasOnlineSyncMode(a)?yield(0,k.o)().delete(i):yield(0,k.a)().executeObjectAction(e.operationId,"delete",i)})),function(e,n){return t.apply(this,arguments)})}]),e})(),se=(function(){function e(){(0,c.default)(this,e),this.instructionType="rollbackObjects"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=re(e.inputVar,t);if(void 0!==n&&0!==n.length){var i=(0,v.g)(n,(function(e){return e.getGuid()})),a=(0,v.e)(i[0]).getEntity();mx.isOffline()&&!(0,k.o)().hasOnlineSyncMode(a)?yield new Promise((function(e,t){return mx.data.rollback({mxobjs:n,callback:e,error:t})})):yield(0,k.a)().executeObjectAction(e.operationId,"rollback",n)}})),function(e,n){return t.apply(this,arguments)})}]),e})(),le=(function(){function e(){(0,c.default)(this,e),this.instructionType="clearFromClient"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){if(mx.isOffline()){var n=e.entity;yield(0,k.o)().clearFromClient(n)}})),function(e,n){return t.apply(this,arguments)})}]),e})(),fe=(function(){function e(){(0,c.default)(this,e),this.instructionType="synchronize"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){if(mx.isOffline())switch(e.syncType){case"all":yield(0,k.o)().runFullSynchronization();break;case"unsynchronized":var n=(yield(0,k.o)().retrieveDirtyObjects(!0)).dirtyObjects,i=yield(0,k.o)().retrieveDeletes();(n.length>0||Object.keys(i).length>0)&&(yield(0,k.o)().selectiveSync(n,i));break;case"specific":var a=e.variableNames.flatMap((function(e){var n=t.getScope().get(e);if(n instanceof x.M||(0,b.i)(n))return n;if(void 0===n)return[];throw new v.A}));a.length>0&&(yield(0,k.o)().selectiveSync((0,v.g)(a,(function(e){return e.getGuid()}))))}})),function(e,n){return t.apply(this,arguments)})}]),e})(),de=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="rangeFromList"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=t.getScope().get(e.inputVar);if(!Array.isArray(n))throw new v.A;var i=(0,y.t)(yield this.evaluateExp(e.offset,t.getScope(),"primitive")),a=(0,y.t)(yield this.evaluateExp(e.limit,t.getScope(),"primitive")),o=i<=0?0:i,u=a<=0?Number.MAX_SAFE_INTEGER:a;t.getScope().set(e.outputVar,n.slice(o,o+u))})),function(e,n){return t.apply(this,arguments)})}]),e})(),pe=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="return"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){return{result:yield this.evaluateExp(e.result,t.getScope(),e.resultKind)}})),function(e,n){return t.apply(this,arguments)})}]),e})(),ve=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="setVariable"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){t.getScope().set(e.outputVar,yield this.evaluateExp(e.value,t.getScope(),e.outputKind))})),function(e,n){return t.apply(this,arguments)})}]),e})(),he=(function(){function e(){(0,c.default)(this,e),this.instructionType="sortList"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var i=t.getScope().get(e.inputVar);if(!(0,b.i)(i))throw new v.A;var a=i.slice(),o=(0,N.g)(e.entity);e.items.slice().reverse().forEach((function(e){var t,i,u=null!=(t=null==o||null==(i=o.attributes[e.attribute])?void 0:i.type)?t:"String",c=(0,v.p)((function(t){var n=t.get2(e.attribute);return""!==n&&null!=n}),a),s=(0,n.default)(c,2),l=s[0],f=s[1];switch(u){case"DateTime":l.sort(ye(e.order,(function(t,n){return(0,I.b)(t.get2(e.attribute))-(0,I.b)(n.get2(e.attribute))})));break;case"String":case"Enum":case"HashString":l.sort(ye(e.order,(function(t,n){var i=t.get2(e.attribute),a=n.get2(e.attribute);return(i>a?1:0)-(a>i?1:0)})));break;case"AutoNumber":case"Long":case"Integer":case"Decimal":l.sort(ye(e.order,(function(t,n){var i=t.get2(e.attribute),a=n.get2(e.attribute);return i.cmp(a)})));break;case"Boolean":l.sort(ye(e.order,(function(t,n){var i=t.get2(e.attribute);return i===n.get2(e.attribute)?0:i?1:-1})));break;default:throw new Error("Unsupported data type")}a=l.concat(f)})),t.getScope().set(e.outputVar,a)})),function(e,n){return t.apply(this,arguments)})}]),e})();function ye(e,t){return function(n,i){var a=t(n,i);return"desc"===e?-1*a:a}}var ge=(function(){function e(t){(0,c.default)(this,e),this.exprEvaluator=t,this.instructionType="switch"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=yield this.exprEvaluator(e.condition,t.getScope(),"primitive"),i=void 0!==n?n.toString():"";if(!(i in e.targets))throw new v.A;return{goto:(0,v.e)(e.targets[i])}})),function(e,n){return t.apply(this,arguments)})}]),e})(),we=(function(){function e(){(0,c.default)(this,e),this.subscriptions=new Map,this.map={},this.map.latestError=void 0}return(0,u.default)(e,[{key:"set",value:function(e,t){this.map[e]=t,t instanceof x.M?this.subscribeToObjects([t]):(0,b.i)(t)&&this.subscribeToObjects(t)}},{key:"get",value:function(e){if(!(e in this.map))throw new v.A;var t=this.map[e];return t instanceof x.M&&t.isUnavailable()?void 0:(0,b.i)(t)?t.filter((function(e){return!e.isUnavailable()})):t}},{key:"all",value:function(){return Object.keys(this.map)}},{key:"destroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear()}},{key:"subscribeToObjects",value:function(e){for(var t of e){var n=t.getGuid();this.subscriptions.has(n)||this.subscriptions.set(n,(0,j.s)({guid:n}))}}}]),e})(),me=(function(){function e(t){(0,c.default)(this,e),this.executeInstructions=t,this.instructionType="tryCatch"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){try{return void(yield this.executeInstructions(e.body,t))}catch(n){return n instanceof Error?t.getScope().set("latestError",n.message):null!=n?t.getScope().set("latestError",String(n)):t.getScope().set("latestError",void 0),{goto:e.catchTarget}}})),function(e,n){return t.apply(this,arguments)})}]),e})(),be=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="closeForm"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=e.numberOfPagesToClose?(0,y.t)(yield this.evaluateExp(e.numberOfPagesToClose,t.getScope(),"primitive")):1;if(n<1)throw new Error(`The number of pages to close evaluated to ${n}. It must be at least 1.`);var i=t.currentForm;if(void 0===i)throw new O.D("Cannot close the current page. No open page found.");i.closePage(n).catch((function(e){return(0,j.h)(e)}))})),function(e,n){return t.apply(this,arguments)})}]),e})(),xe=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="openForm"}var i;return(0,u.default)(e,[{key:"execute",value:(i=(0,a.default)((function*(e,i){var a,o,u=this,c=e.title?null!=(a=yield this.evaluateExp(e.title,i.getScope(),"primitive"))?a:"":void 0,s=(yield Promise.all(Object.entries(null!=(o=e.inputArgs)?o:{}).map((function(e){var t=(0,n.default)(e,2),a=t[0],o=t[1];return u.evaluateExp(o,i.getScope(),"object").then((function(e){return(0,v.k)(a,null==e?void 0:e.getGuid())}))})))).reduce((function(e,i){var a=(0,n.default)(i,2),o=a[0],u=a[1];return Object.assign({},e,(0,t.default)({},o,u))}),{}),l=e.numberOfPagesToClose?(0,y.t)(yield this.evaluateExp(e.numberOfPagesToClose,i.getScope(),"primitive")):0,f=(0,T.g)();yield f.openForm2(e.path,s,c,i.currentForm,e.params,l)})),function(e,t){return i.apply(this,arguments)})}]),e})(),ke=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="showMessage"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=yield this.evaluateExp(e.message,t.getScope(),"primitive"),i=void 0===n?"":n;(0,T.g)().showMessage(e.messageType,i,e.blocking)})),function(e,n){return t.apply(this,arguments)})}]),e})(),Se=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="showValidation"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=t.getScope().get(e.inputVar);if(void 0===n)throw new Error(`Cannot refresh $${e.inputVar} as it is empty`);if(!(n instanceof x.M))throw new v.A;var i,a,o,u=yield this.evaluateExp(e.text,t.getScope(),"primitive"),c=void 0===u?"":u,s=(i=t.getScope(),a=n.getGuid(),(o=i[Ee]||(i[Ee]={}))[a]||(o[a]={}));s[e.member]=c;var l=new A.O(n.getGuid(),s);yield mx.data.sendValidationUpdates([l])})),function(e,n){return t.apply(this,arguments)})}]),e})(),Ee=Symbol("validations"),Ne=(function(){function e(t){(0,c.default)(this,e),this.evaluateExp=t,this.instructionType="writeLog"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){var n=yield this.evaluateExp(e.message,t.getScope(),"primitive");S.L.get().getLogger(S.a.Nanoflow).log(e.level,n)})),function(e,n){return t.apply(this,arguments)})}]),e})(),Ie=(function(){function e(t,n){(0,c.default)(this,e),this.executeInstructions=t,this.exprEvaluator=n,this.instructionType="whileLoop"}var t;return(0,u.default)(e,[{key:"execute",value:(t=(0,a.default)((function*(e,t){for(;(yield this.exprEvaluator(e.condition,t.getScope(),"primitive"))&&!(yield this.executeInstructions(e.body,t)););})),function(e,n){return t.apply(this,arguments)})}]),e})(),je=(function(){function e(t,n){var i,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.L.get();(0,c.default)(this,e),this.connection=t,this.getNanoflow=n,this.breakpoints=new Map,this.debuggedNanoflows={},this.logger=o.getLogger(S.a.NanoflowDebugger),this.breakpointsReadyPromise=new Promise((function(e){i=e})),t.onInstruction("set_breakpoints",(function(e){for(var t of(a.breakpoints.clear(),e.breakpoints)){var n=t.label,o=t.condition;a.breakpoints.set(n,o)}i()})),t.onInstruction("debugger_step",(function(e){(0,v.e)(a.debuggedNanoflows[e.executionId]).handleInstruction(e)})),t.onInstruction("get_debugger_variable",(function(e){var t=e.executionId,n=e.variableName,i=e.index,o=(0,v.e)(a.debuggedNanoflows[t]).context.getScope().get(n);a.send({type:"debugger_variable",data:a.serializeVariableContent(o,i)})})),t.onConnect((function(){Object.keys(a.debuggedNanoflows).forEach((function(e){return a.send({type:"paused_nanoflow",data:a.createPausedNanoflow((0,v.e)(a.debuggedNanoflows[e]).context)})}))}))}var t,n,i,o;return(0,u.default)(e,[{key:"waitForBreakpoints",value:(o=(0,a.default)((function*(){return this.breakpointsReadyPromise})),function(){return o.apply(this,arguments)})},{key:"handleInstruction",value:(i=(0,a.default)((function*(e){var t=e.context,n=e.instruction;if(yield this.shouldBreak(n,t)){var i=yield this.activateDebugger(n,t),a=(0,v.e)(this.debuggedNanoflows[t.executionId]);switch(i.mode){case"continue":a.maxStackDepthToPause=-1/0;break;case"step_into":a.maxStackDepthToPause=1/0;break;case"step_over":a.maxStackDepthToPause=t.getStackSize();break;case"step_out":a.maxStackDepthToPause=t.getStackSize()-1}}})),function(e){return i.apply(this,arguments)})},{key:"handleNanoflowCompletion",value:function(e){var t=e.executionId;delete this.debuggedNanoflows[t]}},{key:"shouldBreak",value:(n=(0,a.default)((function*(e,t){if(void 0===e.label||"jump"===e.type)return!1;if(this.breakpoints.has(e.label)){var n=this.breakpoints.get(e.label);if(!n)return!0;try{return!0===(yield(0,y.e)(n,t.getScope(),"primitive"))}catch(e){return this.logger.error(`Failed to evaluate breakpoint expression: ${e instanceof Error?e.message:e}`),!1}}var i=this.debuggedNanoflows[t.executionId];return void 0!==i&&t.getStackSize()<=i.maxStackDepthToPause})),function(e,t){return n.apply(this,arguments)})},{key:"activateDebugger",value:(t=(0,a.default)((function*(e,t){var n=this,i=this.getNanoflow(t.getCurrentNanoflowId());return this.debuggedNanoflows[t.executionId]={context:t,maxStackDepthToPause:1/0,nanoflow:i.name,objectId:e.label,handleInstruction:function(){}},new Promise((function(e){(0,v.e)(n.debuggedNanoflows[t.executionId]).handleInstruction=e,n.send({type:"paused_nanoflow",data:n.createPausedNanoflow(t)})}))})),function(e,n){return t.apply(this,arguments)})},{key:"createPausedNanoflow",value:function(e){var t=e.executionId,n=(0,v.e)(this.debuggedNanoflows[t]);return{nanoflow:n.nanoflow,objectId:n.objectId,executionId:t,variables:this.getVariables(e.getScope())}}},{key:"getVariables",value:function(e){var t={};for(var n of e.all().filter((function(e){return"latestError"!==e}))){var i=e.get(n);switch(typeof i){case"boolean":t[n]={type:"boolean",value:i};break;case"string":t[n]={type:"string",value:i};break;case"undefined":t[n]={type:"null"};break;case"object":i instanceof Date?t[n]=Object.assign({type:"date_time"},Oe(i)):i instanceof w.Big?t[n]={type:"decimal",value:i.toString()}:Array.isArray(i)?t[n]={type:"list",size:i.length}:t[n]=this.serializeObject(i,!1);break;default:this.logger.error("Unknown variable type: "+typeof i),t[n]={type:"unknown",value:i}}}return t}},{key:"serializeVariableContent",value:function(e,t){var n=this;return e instanceof x.M?this.serializeObject(e,!0):Array.isArray(e)&&void 0===t?{objects:e.map((function(e){return n.serializeObject(e,!1)}))}:Array.isArray(e)&&void 0!==t&&e[t]instanceof x.M?this.serializeObject(e[t],!0):{type:"null"}}},{key:"serializeObject",value:function(e,t){var n=this;if(e instanceof x.M){var i=e.getGuid(),a={type:"object",id:i,entity:e.getEntity(),state:mx.data.isNew(i)?"INSTANTIATED":"NORMAL"};if(t){var o={},u=(0,N.d)(e.getEntity()).filter((function(t){return e.has(t.name)})),c=function(){var t=e.get2(s.name);switch(s.type){case"AutoNumber":o[s.name]={type:"auto_number",value:t};break;case"Binary":o[s.name]={type:"binary"};break;case"Boolean":o[s.name]={type:"boolean",value:t};break;case"DateTime":var i={type:"date_time"};t&&Object.assign(i,Oe(t)),o[s.name]=i;break;case"Decimal":o[s.name]={type:"decimal",value:t};break;case"Enum":o[s.name]={type:"enum",value:t,enumeration_name:(0,v.e)(s.enumeration)};break;case"HashString":o[s.name]={type:"hash_string",value:t};break;case"Integer":o[s.name]={type:"integer",value:t};break;case"Long":o[s.name]={type:"long",value:t};break;case"ObjectReference":var a=(0,v.e)(s.referenceEntity),u={type:"reference"};t&&(u.value={type:String(a),object_id:t.toString()}),o[s.name]=u;break;case"ObjectReferenceSet":var c=(0,v.e)(s.referenceEntity),l={type:"reference_set",value:[]};t&&(l.value=t.map((function(e){return{type:String(c),object_id:e}}))),o[s.name]=l;break;case"String":o[s.name]={type:"string",value:t};break;default:n.logger.error(`Unknown attribute type: ${s.type}`),o[s.name]={type:"unknown",value:String(t)}}};for(var s of u)c();return Object.assign({},a,{members:o})}return a}return{type:"null"}}},{key:"send",value:function(e){this.connection.send(JSON.stringify(e))}}]),e})();function Oe(e){return{value:(0,C.c)((0,x.l)(e),"yyyy-MM-dd HH:mm:ss.SSS"),session_time:(0,C.c)(e,"yyyy-MM-dd HH:mm:ss.SSS xxxx")}}var Te=(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,$.n)("flow"),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;(0,c.default)(this,e),this.currentForm=t,this.nanoflowId=n,this.scope=i,this.executionId=a,this.depth=o,this.parentContext=u}var t;return(0,u.default)(e,[{key:"getScope",value:function(){return this.scope}},{key:"getCurrentNanoflowId",value:function(){var e,t;return null!=(e=this.nanoflowId)?e:null==(t=this.parentContext)?void 0:t.getCurrentNanoflowId()}},{key:"getStackSize",value:function(){return this.depth}},{key:"getCurrentInstruction",value:function(){return this.currentInstruction}},{key:"setCurrentInstruction",value:function(e){this.currentInstruction=e}},{key:"getLeafContext",value:function(){var e,t;return null!=(e=null==(t=this.childContext)?void 0:t.getLeafContext())?e:this}},{key:"getParentContext",value:function(){return this.parentContext}},{key:"insideNewStack",value:(t=(0,a.default)((function*(t,n){var i=void 0!==n?new we:this.scope;this.childContext=new e(this.currentForm,null!=n?n:this.nanoflowId,i,this.executionId,this.depth+1,this);try{return yield t(this.childContext)}finally{void 0!==n&&i.destroy(),this.childContext=void 0}})),function(e,n){return t.apply(this,arguments)})}]),e})();function Ae(e){return"object"==typeof e&&"result"in e}var Ce=(function(){function e(){(0,c.default)(this,e),this.performanceTracker=B()?new _:new L}return(0,u.default)(e,[{key:"startTracking",value:function(e){e.onNanoflowExecutionEvent("nanoflowStart",this.onNanoflowStart.bind(this)),e.onNanoflowExecutionEvent("nanoflowEnd",this.onNanoflowEnd.bind(this)),e.onNanoflowExecutionEvent("instructionStart",this.onInstructionStart.bind(this)),e.onNanoflowExecutionEvent("instructionEnd",this.onInstructionEnd.bind(this))}},{key:"onNanoflowStart",value:function(t){var n=t.nanoflowId,i=e.getNanoflowName(n);this.performanceTracker.begin(`Nanoflow: ${i}`)}},{key:"onNanoflowEnd",value:function(t){var n=t.nanoflowId,i=e.getNanoflowName(n);this.performanceTracker.end(`Nanoflow: ${i}`)}},{key:"onInstructionStart",value:function(e){var t=z(e.instruction);this.performanceTracker.begin(t)}},{key:"onInstructionEnd",value:function(e){var t=z(e.instruction);this.performanceTracker.end(t)}}],[{key:"getNanoflowName",value:function(e){if("string"==typeof e)return e;if("name"in e)return e.name;throw new v.A("Nanoflow could not be identified")}}]),e})();function $e(e){return[e.instructionType,e]}var Ve,Me=_e2.n=new((function(){function e(t,n){var i=this;(0,c.default)(this,e),this.getNanoflowFromRegistry=n,this.executionEventHandlers={nanoflowStart:[],nanoflowEnd:[],instructionStart:[],instructionEnd:[]},this.runningNanoflows=new Array,this.logger=S.L.get().getLogger(S.a.Nanoflow),this.executors=t((function(e,t){return t.insideNewStack((function(t){return i.executeInstructions(e,t)}))}),this.executeInstructions.bind(this),this.executeNanoflow.bind(this))}var t,n,o,s;return(0,u.default)(e,[{key:"execute",value:(s=(0,a.default)((function*(e,t,n){var i=new Te(n,e),a=this.getNanoflowFromRegistry(e).name,o=new h.a;this.logger.debug(`[${i.executionId}] Starting execution of nanoflow ${a}.`),this.runningNanoflows.push(i),yield this.raiseEvent("nanoflowStart",{nanoflowId:e,executionId:i.executionId});try{return yield(0,h.w)(0),yield this.executeNanoflow(e,t,i)}finally{this.runningNanoflows.splice(this.runningNanoflows.indexOf(i),1),this.logger.debug(`[${i.executionId}] Finished execution of nanoflow ${a}. Execution took ${o.measure()} milliseconds.`),yield this.raiseEvent("nanoflowEnd",{nanoflowId:e,executionId:i.executionId})}})),function(e,t,n){return s.apply(this,arguments)})},{key:"onNanoflowExecutionEvent",value:function(e,t){var n=this.executionEventHandlers[e];return n.push(t),{unsubscribe:function(){var e=n.indexOf(t);e>-1&&n.splice(e,1)}}}},{key:"generateCallStackOfExecutingNanoflows",value:function(){var e=this;return this.runningNanoflows.map((function(t){return[e.getNanoflowFromRegistry(t.getCurrentNanoflowId()).name,e.generateCallStack(t)]}))}},{key:"generateCallStack",value:function(e){for(var t=new Array,n=e.getLeafContext(),i=0;void 0!==(null==(a=n)?void 0:a.getCurrentInstruction());){var a;t.push(`${i>0?new Array(i).fill(" ").join(""):""} "${z(n.getCurrentInstruction())}" in nanoflow "${this.getNanoflowFromRegistry(n.getCurrentNanoflowId()).name}"`),n=n.getParentContext(),i++}return t.join("\n")}},{key:"raiseEvent",value:(o=(0,a.default)((function*(e,t){var n=this.executionEventHandlers[e];n.length>0&&(yield Promise.all(n.map((function(e){return e(t)}))))})),function(e,t){return o.apply(this,arguments)})},{key:"getRunningNanoflows",value:function(){return(0,i.default)(this.runningNanoflows)}},{key:"executeNanoflow",value:(n=(0,a.default)((function*(e,t,n){var i=this;return n.insideNewStack((function(n){return t.forEach((function(e){var t=e.name,i=e.value;return n.getScope().set(t,i)})),i.executeInstructions(i.getNanoflowFromRegistry(e).instructions,n)}),e)})),function(e,t,i){return n.apply(this,arguments)})},{key:"executeInstructions",value:(t=(0,a.default)((function*(e,t){for(var n,i,a=this,o=0,u=function*(){var n,u=(0,v.e)(e[o]),c=a.executors.get(u.type);if(void 0===c)throw new v.A;yield a.raiseEvent("instructionStart",{context:t,instruction:u}),t.setCurrentInstruction(u);try{n=yield c.execute(u,t)}catch(e){throw e instanceof F||e instanceof P?e:e instanceof O.D?new P(e.message,e.stack,a.generateCallStack(t)):new F(e,a.generateCallStack(t))}finally{yield a.raiseEvent("instructionEnd",{context:t,instruction:u})}if("object"==typeof(i=n)&&"goto"in i){var s=n.goto;if(-1===(o=e.findIndex((function(e){return e.label===s}))))throw new v.A}else{if(Ae(n))return{v:n.result};o++}};o3&&void 0!==arguments[3]?arguments[3]:{};return Te(e,n,t,(function(t){return Ee(e,n,t)}),r)},_e.c=function(e,t){var n=new ge((function(e){return(0,b.e)(t[e])()}));return(function(e){if(e instanceof Promise)throw new b.A;return e})(me.evaluate(e.expr,n))},_e.d=Te,_e.e=function(e,t,n){return De.apply(this,arguments)},_e.f=Ee,_e.g=void 0,_e.h=function(e,t){return be.apply(this,arguments)},_e.t=function(e){var t=Number(e);if(isNaN(t))throw new b.A("Unexpected expression value");return t};var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),i=e(_r(d[4])),o=e(_r(d[5])),u=e(_r(d[6])),f=e(_r(d[7])),c=e(_r(d[8])),s=e(_r(d[9])),l=e(_r(d[10])),v=e(_r(d[11])),p=_r(d[12]),h=_r(d[13]),w=_r(d[14]),y=_r(d[15]),b=_r(d[16]),D=_r(d[17]),E=_r(d[18]),T=_r(d[19]),A=_r(d[20]),B=_r(d[21]),O=_r(d[22]),$=_r(d[23]),N=_r(d[24]),k=_r(d[25]),C=_r(d[26]),M=_r(d[27]),_=_r(d[28]);function U(e){var t=x();return function(){var n,r=(0,l.default)(e);if(t){var i=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}function x(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function j(e,t){(0,N.r)(2,arguments);var n=(0,N.t)(e),r=(0,N.a)(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+r+1,0),i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function L(e,t){(0,N.r)(2,arguments);var n=(0,N.a)(t);return(0,k.d)(e,36e5*n)}function P(e,t){(0,N.r)(2,arguments);var n=(0,N.a)(t);return(0,k.d)(e,6e4*n)}function S(e,t){return(0,N.r)(2,arguments),j(e,3*(0,N.a)(t))}function V(e,t){(0,N.r)(2,arguments);var n=(0,N.a)(t);return(0,k.d)(e,1e3*n)}function F(e,t){(0,N.r)(2,arguments);var n=(0,N.a)(t);return(0,C.a)(e,7*n)}function R(e,t){return(0,N.r)(2,arguments),j(e,12*(0,N.a)(t))}var q=(function(e){(0,c.default)(n,e);var t=U(n);function n(e,r,i){var o;return(0,u.default)(this,n),(o=t.call(this,`Unable to get a member from variable $${e}, because you do not have sufficient permissions to "${r}.${i}".`)).variableName=e,o.entityName=r,o.attributeName=i,Object.setPrototypeOf((0,f.default)(o),n.prototype),o}return(0,o.default)(n)})((0,v.default)(Error)),Y=(function(e){(0,c.default)(n,e);var t=U(n);function n(e){var r;return(0,u.default)(this,n),(r=t.call(this,`Unable to get a member from an empty variable $${e}.`)).variableName=e,Object.setPrototypeOf((0,f.default)(r),n.prototype),r}return(0,o.default)(n)})((0,v.default)(Error));function G(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?[e]:[];if(void 0===e)return[];throw new Error(t)}var fe={toUpperCase:function(e){return ce(e).toUpperCase()},toLowerCase:function(e){return ce(e).toLowerCase()},trim:function(e){return ce(e).trim()},startsWith:function(e,t){return e=ce(e),t=ce(t),e.substr(0,t.length)===t},endsWith:function(e,t){return e=ce(e),t=ce(t),e.substr(e.length-t.length)===t},substring:function(e,t,n){if(e=ce(e),null!=t&&t.gte(0)){if(2===arguments.length)return e.substr(Number(t));if(null!=n&&n.gte(0))return e.substr(Number(t),Number(n))}throw new Error(G("substring",e,t,n))},find:function(e,t,n){if(e=ce(e),t=ce(t),2===arguments.length)return new E.Big(e.indexOf(t));if(void 0!==n)return new E.Big(e.indexOf(t,Number(n)));throw new Error(G("find",e,t,n))},findLast:function(e,t,n){if(e=ce(e),t=ce(t),2===arguments.length)return new E.Big(e.lastIndexOf(t));if(void 0!==n)return new E.Big(e.lastIndexOf(t,Number(n)));throw new Error(G("findLast",e,t,n))},urlEncode:function(e){return encodeURIComponent(ce(e)).replace("%20","+")},urlDecode:function(e){return decodeURIComponent(ce(e).replace("+","%20"))},isMatch:function(e,t){if(void 0!==t)return new RegExp(`^(${t})$`).test(ce(e));throw new Error(G("isMatch",e,t))},replaceFirst:function(e,t,n){if(void 0!==t&&void 0!==n){var r=n.replace(/\$/g,"$$$$");return ce(e).replace(new RegExp(t),r)}throw new Error(G("replaceFirst",e,t))},replaceAll:function(e,t,n){if(void 0!==t&&void 0!==n){var r=n.replace(/\$/g,"$$$$");return ce(e).replace(new RegExp(t,"g"),r)}throw new Error(G("replaceAll",e,t))}};function ce(e){return void 0===e?"":e}var se,de={not:function(e){return!e},"=":function(e,t){return e instanceof E.Big&&t instanceof E.Big?e.eq(t):e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():"string"==typeof e||"string"==typeof t?(null!=e?e:"")===(null!=t?t:""):e instanceof Array&&t instanceof Array?e.length===t.length&&e.every((function(e){return t.includes(e)})):e instanceof Array&&void 0===t?0===e.length:void 0===e&&t instanceof Array?0===t.length:e===t},"!=":function(e,t){return!de["="](e,t)},">":function(e,t){if(e instanceof E.Big&&t instanceof E.Big)return e.gt(t);if(e instanceof Date&&t instanceof Date)return e.getTime()>t.getTime();if(void 0===e||void 0===t)throw new Error(G(">",e,t));return e>t},">=":function(e,t){return de["="](e,t)||de[">"](e,t)},"<":function(e,t){if(e instanceof E.Big&&t instanceof E.Big)return e.lt(t);if(e instanceof Date&&t instanceof Date)return e.getTime()t.getTime()?e:t}));throw new Error(G.apply(void 0,["max"].concat(t)))},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&r.every((function(e){return n.includes(e)}))},_head:function(e){if(e instanceof Array)return e.length>0?e[0]:void 0;if(void 0!==e)throw new Error(G("_head",e))}},de,le,fe,re,{length:function(e){return Array.isArray(e)?new E.Big(e.length):new E.Big(ce(e).length)},isNew:function(e){return void 0!==e&&mx.data.isNew(e)},isSynced:function(e){if(void 0!==e)return!(0,A.i)(e);throw new Error(G("isSynced",e))},isSyncing:{fn:function(){return(0,B.i)()},staticDependencies:[{param:"synchronizationState"}]},_hasSomeRole:function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:{},f=(0,b.m)(n.args,o),c=(0,p.E)(`Dependencies of ${(0,b.q)(e)}`,{}),s=(0,i.default)(c,2),l=s[0],v=s[1],h=(0,p.t)(`Computation of ${(0,b.q)(e)}`,(function(){l.dependOn();var i=[],o=new ge((function(e){if((0,b.C)(e,u)){var t=(0,b.e)(u[e]);return i.push((function(){return t.dependOn()})),(0,p.r)(t)}var n=(0,b.e)(f[e]);i.push((function(){return n.dependOn()}));var r=(0,p.r)(n);if(r&&"object"==typeof r&&"status"in r){if("loading"===r.status)throw new Ae;return"available"===r.status?r.value:void 0}return r}));try{var c=me.evaluate(n.expr,o);return c instanceof Promise?[s((0,p.v)()),c.then((function(e){return s((0,p.c)(e))}),v)]:s((0,p.c)(c))}catch(e){return v(e)}function s(e){return i.push.apply(i,(0,r.default)(o.getDependencies().map((function(e){return function(){return(0,p.y)(e,t)}})))),(0,p.c)((0,b.k)(e,i))}function v(t){return t instanceof Ae?s((0,p.v)()):t instanceof q||t instanceof Y?(we.debug(`An error occurred while evaluating ${(0,b.q)(e)}: ${t.message}`),s((0,p.d)())):((0,p.h)(new Error(`An error occurred while evaluating ${(0,b.q)(e)}: ${t instanceof Error?t.message:t}`)),s((0,p.d)()))}})),w=(0,p.F)(h);return(0,p.f)(e,(function(){var e=h.dependOn();if("available"!==e.status)throw new b.A;return e.value[1].forEach((function(e){return e()})),e===w.dependOn()&&(0,p.G)((0,p.e)((function(){return v({})}))),e.value[0]}))}var Ae=(function(e){(0,c.default)(n,e);var t=U(n);function n(){var e;return(0,u.default)(this,n),e=t.call(this),Object.setPrototypeOf((0,f.default)(e),n.prototype),e}return(0,o.default)(n)})((0,v.default)(Error))}),616,[2,12,35,6,23,22,21,13,17,19,16,33,27,442,437,38,32,451,430,429,445,454,448,443,617,618,619,28,37]); -__d((function(g,r,i,a,m,e,d){function t(n){return e._=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(n)}function n(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function o(t,n){if(n.length1?"s":"")+" required, but only "+n.length+" present")}function l(n){o(1,arguments);var l=Object.prototype.toString.call(n);return n instanceof Date||"object"===t(n)&&"[object Date]"===l?new Date(n.getTime()):"number"==typeof n||"[object Number]"===l?new Date(n):("string"!=typeof n&&"[object String]"!==l||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}Object.defineProperty(e,"__esModule",{value:!0}),e._=t,e.a=n,e.g=s,e.r=o,e.s=function(t,u){var c,f,b,p,y,v,w,S;o(1,arguments);var h=s(),D=n(null!==(c=null!==(f=null!==(b=null!==(p=null==u?void 0:u.weekStartsOn)&&void 0!==p?p:null==u||null===(y=u.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==b?b:h.weekStartsOn)&&void 0!==f?f:null===(w=h.locale)||void 0===w||null===(S=w.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==c?c:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var N=l(t),O=N.getDay(),j=(O=0?a.round(e):a},_e3.c=R,_e3.d=u,_e3.e=function(t,e,a){if(void 0===t)return"";switch(e){case"Decimal":case"Integer":case"Long":if(!(t instanceof n.Big))throw new Error(`Value '${t}' cannot be formatted as a numeric value.`);var i=a;return Ne(t,null==i?void 0:i.groupDigits,null==i?void 0:i.decimalPrecision);case"DateTime":if(!(t instanceof Date))throw new Error(`Value '${t}' cannot be formatted as Date.`);return He(t,a);case"Boolean":return(0,o.t)("mxui.common",t.toString());default:return String(t)}},_e3.f=He,_e3.g=function(t){return qe(t).replace(/('.*?(?:'|$))|(\w)+/g,(function(t,e,n){return e?"''"===e?"'":e.replace(/'/g,""):"a"===n?(0,i.g)().dates.dayPeriods.join("/"):t.toLowerCase()}))},_e3.p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date,a=Ye(qe(e)),o=Object.assign({},ze(),{mxBuddhistCalendar:Fe((0,i.g)().languageTag)}),u=[Me(a,[{existing:"yyyy",replacement:"yy"}]),a];for(var c of u){var l=Ze(c),s=l.startIndex,d=l.endIndex,f=l.convertedPattern,v=Ee(t.slice(0,s)+t.slice(d),f,n,o);if(!isNaN(v.getTime()))return v}},_e3.s=s,_e3.t=function(t){return Me(t,[{existing:"GGGG",replacement:"GGG"},{existing:"GGGGG",replacement:"GGG"},{existing:"GGGGGG",replacement:"GGG"},{existing:"MMMMM",replacement:"MMMM"},{existing:"E",replacement:"EEE"},{existing:"EE",replacement:"EEE"},{existing:"EEEEE",replacement:"EEEE"},{existing:"EEEEEE",replacement:"EEEE"},{existing:"S",replacement:"SSS"},{existing:"SS",replacement:"SSS"},{existing:"SSSS",replacement:"'0'SSS"},{existing:"SSSSS",replacement:"'00'SSS"},{existing:"SSSSSS",replacement:"'000'SSS"},{existing:"W",replacement:"'W'"},{existing:"WW",replacement:"'WW'"},{existing:"WWW",replacement:"'WWW'"},{existing:"WWWW",replacement:"'WWWW'"},{existing:"WWWWW",replacement:"'WWWWW'"},{existing:"WWWWWW",replacement:"'WWWWWW'"},{existing:"F",replacement:"'F'"},{existing:"FF",replacement:"'FF'"},{existing:"FFF",replacement:"'FFF'"},{existing:"FFFF",replacement:"'FFFF'"},{existing:"FFFFF",replacement:"'FFFFF'"},{existing:"FFFFFF",replacement:"'FFFFFF'"},{existing:"Z",replacement:"'Z'"},{existing:"ZZ",replacement:"'ZZ'"},{existing:"ZZZ",replacement:"'ZZZ'"},{existing:"ZZZZ",replacement:"'ZZZZ'"},{existing:"ZZZZZ",replacement:"'ZZZZZ'"},{existing:"ZZZZZZ",replacement:"'ZZZZZZ'"},{existing:"z",replacement:"'z'"},{existing:"zz",replacement:"'zz'"},{existing:"zzz",replacement:"'zzz'"},{existing:"zzzz",replacement:"'zzzz'"},{existing:"zzzzz",replacement:"'zzzzz'"},{existing:"zzzzzz",replacement:"'zzzzzz'"},{existing:"X",replacement:"'X'"},{existing:"XX",replacement:"'XX'"},{existing:"XXX",replacement:"'XXX'"},{existing:"XXXX",replacement:"'XXXX'"},{existing:"XXXXX",replacement:"'XXXXX'"},{existing:"XXXXXX",replacement:"'XXXXXX'"}])};var e=t(r(_d[1])),n=r(_d[2]);r(_d[3]);var a=r(_d[4]),i=r(_d[5]);r(_d[6]),r(_d[7]);var o=r(_d[8]);function u(t,e){(0,a.r)(2,arguments);var n=(0,a.t)(t).getTime(),i=(0,a.a)(e);return new Date(n+i)}function c(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function l(t){if((0,a.r)(1,arguments),!(function(t){return(0,a.r)(1,arguments),t instanceof Date||"object"===(0,a._)(t)&&"[object Date]"===Object.prototype.toString.call(t)})(t)&&"number"!=typeof t)return!1;var e=(0,a.t)(t);return!isNaN(Number(e))}function s(t,e){return(0,a.r)(2,arguments),u(t,-(0,a.a)(e))}function d(t){(0,a.r)(1,arguments);var e=(0,a.t)(t),n=e.getUTCDay(),i=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-i),e.setUTCHours(0,0,0,0),e}function f(t){(0,a.r)(1,arguments);var e=(0,a.t)(t),n=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var o=d(i),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var c=d(u);return e.getTime()>=o.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1}function v(t){(0,a.r)(1,arguments);var e=(0,a.t)(t),n=d(e).getTime()-(function(t){(0,a.r)(1,arguments);var e=f(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),d(n)})(e).getTime();return Math.round(n/6048e5)+1}function h(t,e){var n,i,o,u,c,l,s,d;(0,a.r)(1,arguments);var f=(0,a.g)(),v=(0,a.a)(null!==(n=null!==(i=null!==(o=null!==(u=null==e?void 0:e.weekStartsOn)&&void 0!==u?u:null==e||null===(c=e.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==i?i:null===(s=f.locale)||void 0===s||null===(d=s.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=(0,a.t)(t),w=h.getUTCDay(),y=(w=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(v+1,0,y),m.setUTCHours(0,0,0,0);var p=h(m,e),b=new Date(0);b.setUTCFullYear(v,0,y),b.setUTCHours(0,0,0,0);var T=h(b,e);return f.getTime()>=p.getTime()?v+1:f.getTime()>=T.getTime()?v:v-1}function y(t,e){(0,a.r)(1,arguments);var n=(0,a.t)(t),i=h(n,e).getTime()-(function(t,e){var n,i,o,u,c,l,s,d;(0,a.r)(1,arguments);var f=(0,a.g)(),v=(0,a.a)(null!==(n=null!==(i=null!==(o=null!==(u=null==e?void 0:e.firstWeekContainsDate)&&void 0!==u?u:null==e||null===(c=e.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==i?i:null===(s=f.locale)||void 0===s||null===(d=s.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1),y=w(t,e),m=new Date(0);return m.setUTCFullYear(y,0,v),m.setUTCHours(0,0,0,0),h(m,e)})(n,e).getTime();return Math.round(i/6048e5)+1}function m(t,e){for(var n=t<0?"-":"",a=Math.abs(t).toString();a.length0?n:1-n;return m("yy"===e?a%100:a,e.length)},b=function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):m(n+1,2)},T=function(t,e){return m(t.getUTCDate(),e.length)},x=function(t,e){return m(t.getUTCHours()%12||12,e.length)},k=function(t,e){return m(t.getUTCHours(),e.length)},C=function(t,e){return m(t.getUTCMinutes(),e.length)},D=function(t,e){return m(t.getUTCSeconds(),e.length)},U=function(t,e){var n=e.length,a=t.getUTCMilliseconds();return m(Math.floor(a*Math.pow(10,n-3)),e.length)};function S(t,e){var n=t>0?"-":"+",a=Math.abs(t),i=Math.floor(a/60),o=a%60;if(0===o)return n+String(i);var u=e||"";return n+String(i)+u+m(o,2)}function E(t,e){return t%60==0?(t>0?"-":"+")+m(Math.abs(t)/60,2):Y(t,e)}function Y(t,e){var n=e||"",a=t>0?"-":"+",i=Math.abs(t);return a+m(Math.floor(i/60),2)+n+m(i%60,2)}var M={G:function(t,e,n){var a=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});default:return n.era(a,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var a=t.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return p(t,e)},Y:function(t,e,n,a){var i=w(t,a),o=i>0?i:1-i;return"YY"===e?m(o%100,2):"Yo"===e?n.ordinalNumber(o,{unit:"year"}):m(o,e.length)},R:function(t,e){return m(f(t),e.length)},u:function(t,e){return m(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return m(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,e,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return m(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,e,n){var a=t.getUTCMonth();switch(e){case"M":case"MM":return b(t,e);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,n){var a=t.getUTCMonth();switch(e){case"L":return String(a+1);case"LL":return m(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,e,n,a){var i=y(t,a);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):m(i,e.length)},I:function(t,e,n){var a=v(t);return"Io"===e?n.ordinalNumber(a,{unit:"week"}):m(a,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):T(t,e)},D:function(t,e,n){var i=(function(t){(0,a.r)(1,arguments);var e=(0,a.t)(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=n-e.getTime();return Math.floor(i/864e5)+1})(t);return"Do"===e?n.ordinalNumber(i,{unit:"dayOfYear"}):m(i,e.length)},E:function(t,e,n){var a=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,e,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return m(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return m(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var a=t.getUTCDay(),i=0===a?7:a;switch(e){case"i":return String(i);case"ii":return m(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,e,n){var a=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){var a,i=t.getUTCHours();switch(a=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){var a,i=t.getUTCHours();switch(a=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var a=t.getUTCHours()%12;return 0===a&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return x(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):k(t,e)},K:function(t,e,n){var a=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(a,{unit:"hour"}):m(a,e.length)},k:function(t,e,n){var a=t.getUTCHours();return 0===a&&(a=24),"ko"===e?n.ordinalNumber(a,{unit:"hour"}):m(a,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):C(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):D(t,e)},S:function(t,e){return U(t,e)},X:function(t,e,n,a){var i=(a._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return E(i);case"XXXX":case"XX":return Y(i);default:return Y(i,":")}},x:function(t,e,n,a){var i=(a._originalDate||t).getTimezoneOffset();switch(e){case"x":return E(i);case"xxxx":case"xx":return Y(i);default:return Y(i,":")}},O:function(t,e,n,a){var i=(a._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+S(i,":");default:return"GMT"+Y(i,":")}},z:function(t,e,n,a){var i=(a._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+S(i,":");default:return"GMT"+Y(i,":")}},t:function(t,e,n,a){var i=a._originalDate||t;return m(Math.floor(i.getTime()/1e3),e.length)},T:function(t,e,n,a){return m((a._originalDate||t).getTime(),e.length)}},F=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},P=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},W={p:P,P:function(t,e){var n,a=t.match(/(P+)(p+)?/)||[],i=a[1],o=a[2];if(!o)return F(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",F(i,e)).replace("{{time}}",P(o,e))}},O=["D","DD"],X=["YY","YYYY"];function H(t){return-1!==O.indexOf(t)}function q(t){return-1!==X.indexOf(t)}function z(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Z=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,N=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G=/^'([^]*?)'?$/,A=/''/g,L=/[a-zA-Z]/;function R(t,e,n){var o,u,d,f,v,h,w,y,m,p,b,T,x,k,C,D,U,S;(0,a.r)(2,arguments);var E=String(e),Y=(0,a.g)(),F=null!==(o=null!==(u=null==n?void 0:n.locale)&&void 0!==u?u:Y.locale)&&void 0!==o?o:i.e,P=(0,a.a)(null!==(d=null!==(f=null!==(v=null!==(h=null==n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null==n||null===(w=n.locale)||void 0===w||null===(y=w.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==v?v:Y.firstWeekContainsDate)&&void 0!==f?f:null===(m=Y.locale)||void 0===m||null===(p=m.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==d?d:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=(0,a.a)(null!==(b=null!==(T=null!==(x=null!==(k=null==n?void 0:n.weekStartsOn)&&void 0!==k?k:null==n||null===(C=n.locale)||void 0===C||null===(D=C.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==x?x:Y.weekStartsOn)&&void 0!==T?T:null===(U=Y.locale)||void 0===U||null===(S=U.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==b?b:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var X=(0,a.t)(t);if(!l(X))throw new RangeError("Invalid time value");var R=s(X,c(X)),I={firstWeekContainsDate:P,weekStartsOn:O,locale:F,_originalDate:X};return E.match(N).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,W[e])(t,F.formatLong):t})).join("").match(Z).map((function(a){if("''"===a)return"'";var i,o,u=a[0];if("'"===u)return(o=(i=a).match(G))?o[1].replace(A,"'"):i;var c=M[u];if(c)return null!=n&&n.useAdditionalWeekYearTokens||!q(a)||z(a,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!H(a)||z(a,e,String(t)),c(R,a,F.localize,I);if(u.match(L))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return a})).join("")}function I(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function $(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K(t)}function V(t){var e=(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}})();return function(){var n,i=K(t);if(e){var o=K(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(function(t,e){if(e&&("object"===(0,a._)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return j(t)})(this,n)}}function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tt(t){var e=(function(t,e){if("object"!==(0,a._)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==(0,a._)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)})(t);return"symbol"===(0,a._)(e)?e:String(e)}function et(t,e){for(var n=0;n0,i=a?e:1-e;if(i<=50)n=t||100;else{var o=i+50;n=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return a?n:1-n}function Gt(t){return t%400==0||t%4==0&&t%100!=0}var At=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(t,e,n){var a=t.getUTCFullYear();if(n.isTwoDigitYear){var i=Nt(n.year,a);return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}var o="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}}]),n})(),Lt=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(t,e,n,a){var i=w(t,a);if(n.isTwoDigitYear){var o=Nt(n.year,i);return t.setUTCFullYear(o,0,a.firstWeekContainsDate),t.setUTCHours(0,0,0,0),h(t,a)}var u="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(u,0,a.firstWeekContainsDate),t.setUTCHours(0,0,0,0),h(t,a)}}]),n})(),Rt=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n})(),Bt=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n})(),jt=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n})(),_t=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n})(),$t=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=53}},{key:"set",value:function(t,e,n,i){return h((function(t,e,n){(0,a.r)(2,arguments);var i=(0,a.t)(t),o=(0,a.a)(e),u=y(i,n)-o;return i.setUTCDate(i.getUTCDate()-7*u),i})(t,n,i),i)}}]),n})(),Kt=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=53}},{key:"set",value:function(t,e,n){return d((function(t,e){(0,a.r)(2,arguments);var n=(0,a.t)(t),i=(0,a.a)(e),o=v(n)-i;return n.setUTCDate(n.getUTCDate()-7*o),n})(t,n))}}]),n})(),Vt=[31,28,31,30,31,30,31,31,30,31,30,31],Jt=[31,29,31,30,31,30,31,31,30,31,30,31],te=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=Jt[a]:e>=1&&e<=Vt[a]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}]),n})(),ee=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}]),n})();function ne(t,e,n){var i,o,u,c,l,s,d,f;(0,a.r)(2,arguments);var v=(0,a.g)(),h=(0,a.a)(null!==(i=null!==(o=null!==(u=null!==(c=null==n?void 0:n.weekStartsOn)&&void 0!==c?c:null==n||null===(l=n.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==u?u:v.weekStartsOn)&&void 0!==o?o:null===(d=v.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==i?i:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=(0,a.t)(t),y=(0,a.a)(e),m=((y%7+7)%7=0&&e<=6}},{key:"set",value:function(t,e,n,a){return(t=ne(t,n,a)).setUTCHours(0,0,0,0),t}}]),n})(),ae=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&e<=6}},{key:"set",value:function(t,e,n,a){return(t=ne(t,n,a)).setUTCHours(0,0,0,0),t}}]),n})(),ie=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&e<=6}},{key:"set",value:function(t,e,n,a){return(t=ne(t,n,a)).setUTCHours(0,0,0,0),t}}]),n})(),oe=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=7}},{key:"set",value:function(t,e,n){return t=(function(t,e){(0,a.r)(2,arguments);var n=(0,a.a)(e);n%7==0&&(n-=7);var i=(0,a.t)(t),o=((n%7+7)%7<1?7:0)+n-i.getUTCDay();return i.setUTCDate(i.getUTCDate()+o),i})(t,n),t.setUTCHours(0,0,0,0),t}}]),n})(),ue=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=12}},{key:"set",value:function(t,e,n){var a=t.getUTCHours()>=12;return a&&n<12?t.setUTCHours(n+12,0,0,0):a||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}}]),n})(),de=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}]),n})(),fe=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&e<=11}},{key:"set",value:function(t,e,n){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}}]),n})(),ve=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&e<=24}},{key:"set",value:function(t,e,n){var a=n<=24?n%24:n;return t.setUTCHours(a,0,0,0),t}}]),n})(),he=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}]),n})(),we=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}]),n})(),ge=(function(t){$(n,ut);var e=V(n);function n(){var t;J(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=(0,a.a)(null!==(b=null!==(T=null!==(x=null!==(k=null==o?void 0:o.weekStartsOn)&&void 0!==k?k:null==o||null===(C=o.locale)||void 0===C||null===(D=C.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==x?x:M.weekStartsOn)&&void 0!==T?T:null===(U=M.locale)||void 0===U||null===(S=U.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==b?b:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===Y)return""===E?(0,a.t)(n):new Date(NaN);var X,Z={firstWeekContainsDate:P,weekStartsOn:O,locale:F},N=[new ot],G=Y.match(ke).map((function(t){var e=t[0];return e in W?(0,W[e])(t,F.formatLong):t})).join("").match(xe),A=[],L=B(G);try{var R=function(){var e=X.value;null!=o&&o.useAdditionalWeekYearTokens||!q(e)||z(e,Y,t),null!=o&&o.useAdditionalDayOfYearTokens||!H(e)||z(e,Y,t);var n=e[0],a=Te[n];if(a){var i=a.incompatibleTokens;if(Array.isArray(i)){var u=A.find((function(t){return i.includes(t.token)||t.token===n}));if(u)throw new RangeError("The format string mustn't contain `".concat(u.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===a.incompatibleTokens&&A.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));A.push({token:n,fullToken:e});var c=a.run(E,e,F.match,Z);if(!c)return{v:new Date(NaN)};o.mxBuddhistCalendar&&["y","Y"].includes(n)&&(c.setter.value.year-=543),N.push(c.setter),E=c.rest}else{if(n.match(Se))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===e?e="'":"'"===n&&(e=e.match(Ce)[1].replace(De,"'")),0!==E.indexOf(e))return{v:new Date(NaN)};E=E.slice(e.length)}};for(L.s();!(X=L.n()).done;){var Q=R();if("object"===(0,a._)(Q))return Q.v}}catch(t){L.e(t)}finally{L.f()}if(E.length>0&&Ue.test(E))return new Date(NaN);var j=N.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return N.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),_=(0,a.t)(n);if(isNaN(_.getTime()))return new Date(NaN);var $,K=s(_,c(_)),V={},J=B(j);try{for(J.s();!($=J.n()).done;){var tt=$.value;if(!tt.validate(K,Z))return new Date(NaN);var et=tt.set(K,V,Z);Array.isArray(et)?(K=et[0],I(V,et[1])):K=et}}catch(t){J.e(t)}finally{J.f()}return K}function Ye(t){return Me(t,[{existing:"yyy",replacement:"yyyy"},{existing:"E",replacement:"e"},{existing:"EE",replacement:"ee"},{existing:"YYY",replacement:"YYYY"},{existing:"Z",replacement:"XX"},{existing:"ZZ",replacement:"XX"},{existing:"ZZZ",replacement:"XX"},{existing:"ZZZZ",replacement:"zzzz"}])}function Me(t,e){var n,a=null!=(n=t.match(/''|'(?:''|[^'])+(?:'|$)|(.)\1*/g))?n:[];return e.reduce((function(t,e){var n=e.existing,a=e.replacement;return t.map((function(t){return t===n?a:t}))}),a).join("")}function Fe(t){return/th$/i.test(t)}function Pe(t,e,n){var i=(function(t){return(0,a.r)(1,arguments),(0,a.t)(t).getFullYear()})(e)+543,o=(function(t,e){var n,i,o,u,c,l,s,d;(0,a.r)(1,arguments);var f=(0,a.t)(t),v=f.getFullYear(),h=(0,a.g)(),w=(0,a.a)(null!==(n=null!==(i=null!==(o=null!==(u=null==e?void 0:e.firstWeekContainsDate)&&void 0!==u?u:null==e||null===(c=e.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:h.firstWeekContainsDate)&&void 0!==i?i:null===(s=h.locale)||void 0===s||null===(d=s.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setFullYear(v+1,0,w),y.setHours(0,0,0,0);var m=(0,a.s)(y,e),p=new Date(0);p.setFullYear(v,0,w),p.setHours(0,0,0,0);var b=(0,a.s)(p,e);return f.getTime()>=m.getTime()?v+1:f.getTime()>=b.getTime()?v:v-1})(e,{locale:t})+543;return Me(n,[{existing:"yy",replacement:`'${We(i)}'`},{existing:"yyyy",replacement:`'${i}'`},{existing:"YY",replacement:` ${We(o)}'`},{existing:"YYYY",replacement:`'${o}'`}])}function We(t){return t.toString().slice(-2)}var Oe="i",Xe="u";function He(t,e){var n=Ye(qe(e));if(Fe((0,i.g)().languageTag)&&(n=Pe((0,i.a)(),t,n)),n.includes(Xe)){var a=Ze(n),o=a.startIndex,u=a.endIndex,c=R(t,a.convertedPattern,ze());return c.slice(0,o)+"0".repeat(u-o)+c.slice(o)}return R(t,n,ze())}function qe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"datetime"};return"custom"!==t.type?(0,i.g)().patterns[t.type]:t.pattern}function ze(){return{useAdditionalDayOfYearTokens:!0,useAdditionalWeekYearTokens:!0,locale:(0,i.a)()}}function Ze(t){return{startIndex:t.indexOf(Xe),endIndex:t.lastIndexOf(Xe),convertedPattern:t.replace(/u+/g,Oe)}}function Ne(t,n,a){var o=(0,i.g)().numbers,u=t.lt(0),c=void 0!==a&&a<0?void 0:a,l=t.toFixed(c).split("."),s=(0,e.default)(l,2),d=s[0],f=s[1],v=void 0===f?"":f;if(!d)throw new Error(`Value '${t}' cannot be formatted as number.`);return u&&(d=d.slice(1)),n&&(d=(function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=[],a=t;a.length>e;){var i=a.length-e;n.unshift(a.substring(i)),a=a.substring(0,i)}return a&&n.unshift(a),n})(d).join(o.groupingSeparator)),v&&(v=o.decimalSeparator+v),(u?o.minusSign:"")+d+v}}),618,[2,23,430,37,617,448,29,30,436]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.a=l,e.b=C,e.c=D,e.d=O,e.e=v,e.f=w,e.g=Y,e.h=k,e.i=b,e.j=H,e.k=function(n){var f={currentUser:function(){return(0,u.g)().getUserId()},currentDateTime:n};return Object.entries(S).forEach((function(u){var l=(0,t.default)(u,2),c=l[0],v=l[1];f[c]=function(){return v(n(),{locale:(0,o.a)()})},f[c+"UTC"]=function(){return(0,s.d)(v((0,s.l)(n())))}})),f},e.s=c;var t=n(r(d[1])),u=r(d[2]),o=r(d[3]),s=r(d[4]),f=r(d[5]);function l(n,t){(0,f.r)(2,arguments);var u=(0,f.t)(n),o=(0,f.a)(t);return isNaN(o)?new Date(NaN):o?(u.setDate(u.getDate()+o),u):u}function c(n){(0,f.r)(1,arguments);var t=(0,f.t)(n);return t.setHours(0,0,0,0),t}function v(n){(0,f.r)(1,arguments);var t=(0,f.t)(n);return t.setHours(23,59,59,999),t}function O(n){(0,f.r)(1,arguments);var t=(0,f.t)(n),u=t.getMonth();return t.setFullYear(t.getFullYear(),u+1,0),t.setHours(23,59,59,999),t}function b(n){(0,f.r)(1,arguments);var t=(0,f.t)(n);return t.setSeconds(0,0),t}function C(n){(0,f.r)(1,arguments);var t=(0,f.t)(n);return t.setDate(1),t.setHours(0,0,0,0),t}function w(n){(0,f.r)(1,arguments);var t=(0,f.t)(n),u=t.getFullYear();return t.setFullYear(u+1,0,0),t.setHours(23,59,59,999),t}function D(n){(0,f.r)(1,arguments);var t=(0,f.t)(n),u=new Date(0);return u.setFullYear(t.getFullYear(),0,1),u.setHours(0,0,0,0),u}function Y(n,t){var u,o,s,l,c,v,O,b;(0,f.r)(1,arguments);var C=(0,f.g)(),w=(0,f.a)(null!==(u=null!==(o=null!==(s=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(v=c.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==s?s:C.weekStartsOn)&&void 0!==o?o:null===(O=C.locale)||void 0===O||null===(b=O.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==u?u:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var D=(0,f.t)(n),Y=D.getDay(),H=6+(Y1&&void 0!==arguments[1]?arguments[1]:null;return function(){for(var t=arguments.length,s=new Array(t),u=0;u1&&void 0!==arguments[1]?arguments[1]:4;(0,s.default)(this,e),this.taskHandlingFn=n,this.concurrentTasks=t,this.taskQueue=[],this.tasksInProgress=0}var o;return(0,u.default)(e,[{key:"addToQueue",value:(o=(0,t.default)((function*(){for(var e=this,n=arguments.length,t=new Array(n),s=0;s=this.concurrentTasks)){var t=this.taskQueue.splice(0,this.concurrentTasks-this.tasksInProgress);this.tasksInProgress+=t.length,t.forEach((function(t){var s=t.args,u=t.resolve,o=t.reject;e.taskHandlingFn.apply(e,(0,n.default)(s)).then((function(n){e.tasksInProgress--,u(n),e.processQueue()})).catch((function(n){e.tasksInProgress=0,e.taskQueue=[],o(n)}))}))}}}]),e})();function o(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),u=1;uR.height,y=h?0:10,v=f.top,x=R.height/R.width,S=u(p.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),s?s.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}):0),w=l(S.interpolate({inputRange:[0,1,2],outputRange:[R.height,0===n?0:y,(0===n?v:0)-y*x]}),c),A=S.interpolate({inputRange:[0,1,1.0001,2],outputRange:[0,.3,1,1]}),Y=h?1:S.interpolate({inputRange:[0,1,2],outputRange:[1,1,R.width?1-2*y/R.width:1]}),O=h?0:0===n?S.interpolate({inputRange:[0,1,1.0001,2],outputRange:[0,0,(0,o.isIphoneX)()?38:0,10]}):10;return{cardStyle:{overflow:'hidden',borderTopLeftRadius:O,borderTopRightRadius:O,marginTop:0===n?0:v,marginBottom:0===n?0:y,transform:[{translateY:w},{scale:Y}]},overlayStyle:{opacity:A}}},e.forNoAnimation=function(){return{}},e.forRevealFromBottomAndroid=function(t){var n=t.current,o=t.next,p=t.inverted,u=t.layouts.screen,s=l(n.progress.interpolate({inputRange:[0,1],outputRange:[u.height,0],extrapolate:'clamp'}),p),c=l(n.progress.interpolate({inputRange:[0,1],outputRange:[.9590000000000001*u.height*-1,0],extrapolate:'clamp'}),p),R=o?l(o.progress.interpolate({inputRange:[0,1],outputRange:[0,.02*u.height*-1],extrapolate:'clamp'}),p):0,f=n.progress.interpolate({inputRange:[0,.36,1],outputRange:[0,.1,.1],extrapolate:'clamp'});return{containerStyle:{overflow:'hidden',transform:[{translateY:s}]},cardStyle:{transform:[{translateY:c},{translateY:R}]},overlayStyle:{opacity:f}}},e.forScaleFromCenterAndroid=function(t){var n=t.current,o=t.next,l=t.closing,s=u(n.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),o?o.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}):0),c=s.interpolate({inputRange:[0,.8,1,1.2,2],outputRange:[0,.5,1,.33,0]}),R=(0,p.default)(l,n.progress.interpolate({inputRange:[0,1],outputRange:[.9,1],extrapolate:'clamp'}),s.interpolate({inputRange:[0,1,2],outputRange:[.85,1,1.1]}));return{containerStyle:{opacity:c,transform:[{scale:R}]}}},e.forVerticalIOS=function(t){var n=t.current,o=t.inverted,p=t.layouts.screen;return{cardStyle:{transform:[{translateY:l(n.progress.interpolate({inputRange:[0,1],outputRange:[p.height,0],extrapolate:'clamp'}),o)}]}}};var n=r(d[1]),o=r(d[2]),p=t(r(d[3])),u=n.Animated.add,l=n.Animated.multiply}),628,[2,39,629,630]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getBottomSpace=function(){return h()?34:0},e.getStatusBarHeight=function(h){return t.Platform.select({ios:n(h?44:30,20),android:t.StatusBar.currentHeight,default:0})},e.ifIphoneX=n,e.isIphoneX=h;var t=r(d[0]);function h(){var h=t.Dimensions.get('window');return!('ios'!==t.Platform.OS||t.Platform.isPad||t.Platform.isTVOS||780!==h.height&&780!==h.width&&812!==h.height&&812!==h.width&&844!==h.height&&844!==h.width&&852!==h.height&&852!==h.width&&896!==h.height&&896!==h.width&&926!==h.height&&926!==h.width&&932!==h.height&&932!==h.width)}function n(t,n){return h()?t:n}}),629,[39]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l,o){return n(u(t,l),u(t.interpolate({inputRange:[0,1],outputRange:[1,0]}),o))};var t=r(d[0]),n=t.Animated.add,u=t.Animated.multiply}),630,[39]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.forFade=function(t){var o=t.current,p=t.next,u=n(o.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),p?p.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}):0),l=u.interpolate({inputRange:[0,1,2],outputRange:[0,1,0]});return{leftButtonStyle:{opacity:l},rightButtonStyle:{opacity:l},titleStyle:{opacity:l},backgroundStyle:{opacity:u.interpolate({inputRange:[0,1,1.9,2],outputRange:[0,1,1,0]})}}},e.forNoAnimation=function(){return{}},e.forSlideLeft=function(o){var p=o.current,u=o.next,l=o.layouts.screen,s=[{translateX:n(p.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),u?u.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}):0).interpolate({inputRange:[0,1,2],outputRange:t.I18nManager.isRTL?[-l.width,0,l.width]:[l.width,0,-l.width]})}];return{leftButtonStyle:{transform:s},rightButtonStyle:{transform:s},titleStyle:{transform:s},backgroundStyle:{transform:s}}},e.forSlideRight=function(o){var p=o.current,u=o.next,l=o.layouts.screen,s=[{translateX:n(p.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),u?u.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}):0).interpolate({inputRange:[0,1,2],outputRange:t.I18nManager.isRTL?[l.width,0,-l.width]:[-l.width,0,l.width]})}];return{leftButtonStyle:{transform:s},rightButtonStyle:{transform:s},titleStyle:{transform:s},backgroundStyle:{transform:s}}},e.forSlideUp=function(t){var o=t.current,p=t.next,u=t.layouts.header,l=[{translateY:n(o.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),p?p.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}):0).interpolate({inputRange:[0,1,2],outputRange:[-u.height,0,-u.height]})}];return{leftButtonStyle:{transform:l},rightButtonStyle:{transform:l},titleStyle:{transform:l},backgroundStyle:{transform:l}}},e.forUIKit=function(o){var p=o.current,u=o.next,l=o.layouts,s=l.leftLabel?(l.screen.width-l.leftLabel.width)/2-27:100,R=l.title?(l.screen.width-l.title.width)/2-27:100,c=l.screen.width/4,f=n(p.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),u?u.progress.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}):0);return{leftButtonStyle:{opacity:f.interpolate({inputRange:[.3,1,1.5],outputRange:[0,1,0]})},leftLabelStyle:{transform:[{translateX:f.interpolate({inputRange:[0,1,2],outputRange:t.I18nManager.isRTL?[-c,0,s]:[s,0,-c]})}]},rightButtonStyle:{opacity:f.interpolate({inputRange:[.3,1,1.5],outputRange:[0,1,0]})},titleStyle:{opacity:f.interpolate({inputRange:[0,.4,1,1.5],outputRange:[0,.1,1,0]}),transform:[{translateX:f.interpolate({inputRange:[.5,1,2],outputRange:t.I18nManager.isRTL?[-R,0,c]:[c,0,-R]})}]},backgroundStyle:{transform:[{translateX:f.interpolate({inputRange:[0,1,2],outputRange:t.I18nManager.isRTL?[-l.screen.width,0,l.screen.width]:[l.screen.width,0,-l.screen.width]})}]}}};var t=r(d[0]),n=t.Animated.add}),631,[39]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TransitionIOSSpec=e.ScaleFromCenterAndroidSpec=e.RevealFromBottomAndroidSpec=e.FadeOutToBottomAndroidSpec=e.FadeInFromBottomAndroidSpec=void 0;var n=r(d[0]);e.TransitionIOSSpec={animation:'spring',config:{stiffness:1e3,damping:500,mass:3,overshootClamping:!0,restDisplacementThreshold:10,restSpeedThreshold:10}},e.FadeInFromBottomAndroidSpec={animation:'timing',config:{duration:350,easing:n.Easing.out(n.Easing.poly(5))}},e.FadeOutToBottomAndroidSpec={animation:'timing',config:{duration:150,easing:n.Easing.in(n.Easing.linear)}},e.RevealFromBottomAndroidSpec={animation:'timing',config:{duration:425,easing:n.Easing.bezier(.35,.45,0,1)}},e.ScaleFromCenterAndroidSpec={animation:'timing',config:{duration:400,easing:n.Easing.bezier(.35,.45,0,1)}}}),632,[39]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SlideFromRightIOS=e.ScaleFromCenterAndroid=e.RevealFromBottomAndroid=e.ModalTransition=e.ModalSlideFromBottomIOS=e.ModalPresentationIOS=e.FadeFromBottomAndroid=e.DefaultTransition=void 0;var o=r(d[0]),t=r(d[1]),n=r(d[2]),l=r(d[3]),S=e.SlideFromRightIOS={gestureDirection:'horizontal',transitionSpec:{open:n.TransitionIOSSpec,close:n.TransitionIOSSpec},cardStyleInterpolator:o.forHorizontalIOS,headerStyleInterpolator:t.forFade},c=e.ModalSlideFromBottomIOS={gestureDirection:'vertical',transitionSpec:{open:n.TransitionIOSSpec,close:n.TransitionIOSSpec},cardStyleInterpolator:o.forVerticalIOS,headerStyleInterpolator:t.forFade},p=(e.ModalPresentationIOS={gestureDirection:'vertical',transitionSpec:{open:n.TransitionIOSSpec,close:n.TransitionIOSSpec},cardStyleInterpolator:o.forModalPresentationIOS,headerStyleInterpolator:t.forFade},e.FadeFromBottomAndroid={gestureDirection:'vertical',transitionSpec:{open:n.FadeInFromBottomAndroidSpec,close:n.FadeOutToBottomAndroidSpec},cardStyleInterpolator:o.forFadeFromBottomAndroid,headerStyleInterpolator:t.forFade}),s=e.RevealFromBottomAndroid={gestureDirection:'vertical',transitionSpec:{open:n.RevealFromBottomAndroidSpec,close:n.RevealFromBottomAndroidSpec},cardStyleInterpolator:o.forRevealFromBottomAndroid,headerStyleInterpolator:t.forFade},F=(e.ScaleFromCenterAndroid={gestureDirection:'horizontal',transitionSpec:{open:n.ScaleFromCenterAndroidSpec,close:n.ScaleFromCenterAndroidSpec},cardStyleInterpolator:o.forScaleFromCenterAndroid,headerStyleInterpolator:t.forFade},e.DefaultTransition=l.Platform.select({ios:S,default:'android'===l.Platform.OS&&l.Platform.Version>=28?s:p}));e.ModalTransition=l.Platform.select({ios:c,default:F})}),633,[628,631,632,39]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),o=e(_r(d[4])),u=e(_r(d[5])),i=e(_r(d[6])),s=e(_r(d[7])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=o?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(r,u,i):r[u]=e[u]}return r.default=e,n&&n.set(e,r),r})(_r(d[8])),l=_r(d[9]),c=_r(d[10]),f=_r(d[11]),p=_r(d[12]),y=e(_r(d[13])),v=e(_r(d[14])),k=e(_r(d[15])),h=e(_r(d[16]));function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(R=function(e){return e?n:t})(e)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function K(){return K=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E(e,t){if(null==e)return{};var n,r,o={},u=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=null!==p.GestureHandlerRootView&&void 0!==p.GestureHandlerRootView?p.GestureHandlerRootView:l.View,w=(_e.default=(function(e){(0,u.default)(T,e);var p,R,E=(p=T,R=b(),function(){var e,t=(0,s.default)(p);if(R){var n=(0,s.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,i.default)(this,e)});function T(){var e;(0,n.default)(this,T);for(var t=arguments.length,r=new Array(t),u=0;u` at the top of your app.');return e},_e.useSafeAreaInsets=s,_e.withSafeAreaInsets=function(e){return r.forwardRef((function(t,r){return(0,o.jsx)(c,{children:function(n){return(0,o.jsx)(e,Object.assign({},t,{insets:n,ref:r}))}})}))};var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),n=_r(d[3]),a=e(_r(d[4])),o=_r(d[5]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var i=_e.SafeAreaInsetsContext=r.createContext(null),l=_e.SafeAreaFrameContext=r.createContext(null);var f=n.StyleSheet.create({fill:{flex:1}});function s(){var e=r.useContext(i);if(null==e)throw new Error('No safe area insets value available. Make sure you are rendering `` at the top of your app.');return e}var c=_e.SafeAreaConsumer=i.Consumer;_e.SafeAreaContext=i}),636,[2,23,30,39,637,211]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]);e.default=(0,o.requireNativeComponent)('RNCSafeAreaProvider')}),637,[39]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAreaView=void 0;var o=r(d[0]);e.SafeAreaView=(0,o.requireNativeComponent)('RNCSafeAreaView')}),638,[39]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.initialWindowSafeAreaInsets=e.initialWindowMetrics=void 0;var n=r(d[0]).UIManager.getViewManagerConfig('RNCSafeAreaProvider'),t=e.initialWindowMetrics=null!=n&&null!=n.Constants?n.Constants.initialWindowMetrics:null;e.initialWindowSafeAreaInsets=null==t?void 0:t.insets}),639,[39]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0})}),640,[]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"GestureHandlerRootView",{enumerable:!0,get:function(){return r.GestureHandlerRootView}}),Object.defineProperty(_e,"GestureState",{enumerable:!0,get:function(){return r.State}}),_e.PanGestureHandler=function(e){var u=t.useRef(null);return t.createElement(n.default.Provider,{value:u},t.createElement(r.PanGestureHandler,a({},e,{ref:u})))},Object.defineProperty(_e,"PanGestureHandlerGestureEvent",{enumerable:!0,get:function(){return r.PanGestureHandlerGestureEvent}});var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var f=a?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(n,o,f):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=_r(d[2]),n=e(_r(d[3]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function a(){return a=Object.assign||function(e){for(var t=1;t0?t.interpolate({inputRange:[0,n],outputRange:[1,0]}):t.interpolate({inputRange:[n,0],outputRange:[0,1]})},C=(_e.default=(function(e){(0,a.default)(P,e);var p,S,O=(p=P,S=k(),function(){var e,t=(0,s.default)(p);if(S){var r=(0,s.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,i.default)(this,e)});function P(e){var o;(0,r.default)(this,P),o=O.call(this,e),I((0,n.default)(o),"handleLayout",(function(e){var t=e.nativeEvent.layout,r=t.height,n=t.width,a={width:n,height:r};o.setState((function(e,t){return r===e.layout.height&&n===e.layout.width?null:{layout:a,headerHeights:j(t.routes,t.insets,e.descriptors,a,e.headerHeights)}}))})),I((0,n.default)(o),"handleHeaderLayout",(function(e){var r=e.route,n=e.height;o.setState((function(e){var o=e.headerHeights;return o[r.key]===n?null:{headerHeights:R({},o,(0,t.default)({},r.key,n))}}))})),I((0,n.default)(o),"getFocusedRoute",(function(){var e=o.props.state;return e.routes[e.index]}));var a=l.Dimensions.get('window'),i=a.height,s=void 0===i?0:i,u=a.width,c=void 0===u?0:u;return o.state={routes:[],scenes:[],gestures:{},layout:{height:s,width:c},descriptors:o.props.descriptors,headerHeights:{}},o}return(0,o.default)(P,[{key:"render",value:function(){var e=this,t=this.props,r=t.mode,o=t.insets,n=t.descriptors,a=t.state,i=t.routes,s=t.closingRouteKeys,p=t.onOpenRoute,S=t.onCloseRoute,O=t.getPreviousRoute,k=t.getGesturesEnabled,P=t.renderHeader,I=t.renderScene,D=t.headerMode,j=t.onTransitionStart,E=t.onTransitionEnd,H=t.onPageChangeStart,_=t.onPageChangeConfirm,x=t.onPageChangeCancel,M=this.state,A=M.scenes,T=M.layout,F=M.gestures,L=M.headerHeights,B=a.routes[a.index],N=n[B.key],V=N?N.options:{},W='modal'===r?h.ModalTransition:h.DefaultTransition;'screen'===D&&(W=R({},W,{headerStyleInterpolator:y.forNoAnimation}));var z=V.safeAreaInsets||{},K=z.top,G=void 0===K?o.top:K,q=z.right,J=void 0===q?o.right:q,Q=z.bottom,U=void 0===Q?o.bottom:Q,X=z.left,Y=void 0===X?o.left:X,Z='ios'!==l.Platform.OS&&'modal'!==r;return u.createElement(b.default.Consumer,null,(function(t){var n='float'===D&&e.state.scenes.slice(-2).some((function(e){var r=e.descriptor,o=r?r.options:{},n=o.headerTransparent,a=o.headerShown;return!(!n&&!1!==(void 0===a?!1===t:a))})),a='float'===D?u.createElement(u.Fragment,{key:"header"},P({mode:'float',layout:T,insets:{top:G,right:J,bottom:U,left:Y},scenes:A,getPreviousRoute:O,getFocusedRoute:e.getFocusedRoute,onContentHeightChange:e.handleHeaderLayout,gestureDirection:void 0!==V.gestureDirection?V.gestureDirection:W.gestureDirection,styleInterpolator:void 0!==V.headerStyleInterpolator?V.headerStyleInterpolator:W.headerStyleInterpolator,style:[C.floating,n&&C.absolute]})):null;return u.createElement(u.Fragment,null,n?null:a,u.createElement(c.MaybeScreenContainer,{enabled:Z,style:C.container,onLayout:e.handleLayout},i.map((function(a,i,h){var y=B.key===a.key,b=F[a.key],R=A[i],C=R.progress.next?R.progress.next.interpolate({inputRange:[0,.99,1],outputRange:[1,1,0],extrapolate:'clamp'}):1,M=R.descriptor?R.descriptor.options:{},N=M.safeAreaInsets,V=M.headerShown,z=void 0===V?!1===t:V,K=M.headerTransparent,G=M.cardShadowEnabled,q=M.cardOverlayEnabled,J=M.cardOverlay,Q=M.cardStyle,U=M.animationEnabled,X=M.gestureResponseDistance,Y=M.gestureVelocityImpact,$=M.gestureDirection,ee=void 0===$?W.gestureDirection:$,te=M.transitionSpec,re=void 0===te?W.transitionSpec:te,oe=M.cardStyleInterpolator,ne=void 0===oe?!1===U?v.forNoAnimation:W.cardStyleInterpolator:oe,ae=M.headerStyleInterpolator,ie={gestureDirection:ee,transitionSpec:re,cardStyleInterpolator:ne,headerStyleInterpolator:void 0===ae?W.headerStyleInterpolator:ae};if(i!==h.length-1){var se=A[i+1];if(se){var ue=se.descriptor?se.descriptor.options:{},le=ue.animationEnabled,de=ue.gestureDirection,ce=void 0===de?W.gestureDirection:de,pe=ue.transitionSpec,fe=void 0===pe?W.transitionSpec:pe,he=ue.cardStyleInterpolator,ye=void 0===he?!1===le?v.forNoAnimation:W.cardStyleInterpolator:he,ge=ue.headerStyleInterpolator;ie={gestureDirection:ce,transitionSpec:fe,cardStyleInterpolator:ye,headerStyleInterpolator:void 0===ge?W.headerStyleInterpolator:ge}}}var ve=N||{},me=ve.top,be=void 0===me?o.top:me,Se=ve.right,Oe=void 0===Se?o.right:Se,ke=ve.bottom,we=void 0===ke?o.bottom:ke,Pe=ve.left,Re=void 0===Pe?o.left:Pe,Ie=O({route:R.route}),De=A[i-1];if(Ie)for(var je=i-1;je>=0;je--){var Ee=A[je];if(Ee&&Ee.route.key===Ie.key){De=Ee;break}}var He='none'!==D&&!1!==z?L[a.key]:0;return u.createElement(c.MaybeScreen,{key:a.key,style:l.StyleSheet.absoluteFill,enabled:Z,active:C,pointerEvents:"box-none"},u.createElement(f.default,w({index:i,active:i===h.length-1,focused:y,closing:s.includes(a.key),layout:T,gesture:b,scene:R,previousScene:De,safeAreaInsetTop:be,safeAreaInsetRight:Oe,safeAreaInsetBottom:we,safeAreaInsetLeft:Re,cardOverlay:J,cardOverlayEnabled:q,cardShadowEnabled:G,cardStyle:Q,onPageChangeStart:H,onPageChangeConfirm:_,onPageChangeCancel:x,gestureResponseDistance:X,headerHeight:He,onHeaderHeightChange:e.handleHeaderLayout,getPreviousRoute:O,getFocusedRoute:e.getFocusedRoute,mode:r,headerMode:D,headerShown:z,hasAbsoluteHeader:n&&!K,renderHeader:P,renderScene:I,onOpenRoute:p,onCloseRoute:S,onTransitionStart:j,onTransitionEnd:E,gestureEnabled:0!==i&&k({route:a}),gestureVelocityImpact:Y},ie)))}))),n?a:null)}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.routes===t.routes&&e.descriptors===t.descriptors)return null;var r=e.routes.reduce((function(r,o){var n=e.descriptors[o.key],a=((null==n?void 0:n.options)||{}).animationEnabled;return r[o.key]=t.gestures[o.key]||new l.Animated.Value(e.openingRouteKeys.includes(o.key)&&!1!==a?E(e.mode,t.layout,n):0),r}),{});return{routes:e.routes,scenes:e.routes.map((function(o,n,a){var i=a[n-1],s=a[n+1],u=t.scenes[n],l=r[o.key],c=i?r[i.key]:void 0,p=s?r[s.key]:void 0,f=e.descriptors[o.key]||t.descriptors[o.key]||(u?u.descriptor:D),h=e.descriptors[null==s?void 0:s.key]||t.descriptors[null==s?void 0:s.key],y=e.descriptors[null==i?void 0:i.key]||t.descriptors[null==i?void 0:i.key],v={route:o,descriptor:f,progress:{current:H(e.mode,l,t.layout,f),next:p?H(e.mode,p,t.layout,h):void 0,previous:c?H(e.mode,c,t.layout,y):void 0},__memo:[o,t.layout,f,h,y,l,p,c]};return u&&v.__memo.every((function(e,t){return u.__memo[t]===e}))?u:v})),gestures:r,descriptors:e.descriptors,headerHeights:j(e.routes,e.insets,t.descriptors,t.layout,t.headerHeights)}}}]),P})(u.Component),l.StyleSheet.create({container:{flex:1},absolute:{position:'absolute',top:0,left:0,right:0},floating:{zIndex:1}}))}),643,[2,3,21,22,13,17,19,16,30,39,644,645,658,633,631,628,673,670]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.MaybeScreenContainer=_e.MaybeScreen=void 0;var t,r=e(_r(d[1])),n=e(_r(d[2])),a=e(_r(d[3])),o=e(_r(d[4])),c=e(_r(d[5])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(n,o,c):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[6])),u=_r(d[7]);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(){return p=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function y(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}try{t=_r(d[8])}catch(e){}var v=(function(e){(0,a.default)(v,e);var t,i,y=(t=v,i=f(),function(){var e,r=(0,c.default)(t);if(i){var n=(0,c.default)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,o.default)(this,e)});function v(){return(0,r.default)(this,v),y.apply(this,arguments)}return(0,n.default)(v,[{key:"render",value:function(){var e=this.props,t=e.active,r=e.style,n=s(e,["active","style"]);return l.createElement(u.View,p({hidden:!t,style:[r,{display:t?'flex':'none'}]},n))}}]),v})(l.Component),b=u.Animated.createAnimatedComponent(v);_e.MaybeScreenContainer=function(e){var r=e.enabled,n=s(e,["enabled"]);return r&&'web'!==u.Platform.OS&&t&&t.screensEnabled()?l.createElement(t.ScreenContainer,n):l.createElement(u.View,n)},_e.MaybeScreen=function(e){var r=e.enabled,n=e.active,a=s(e,["enabled","active"]);return r&&'web'===u.Platform.OS?l.createElement(b,p({active:n},a)):r&&t&&t.screensEnabled()?l.createElement(t.Screen,p({active:n},a)):l.createElement(u.View,a)}}),644,[2,21,22,17,19,16,30,39,546]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.getDefaultHeaderHeight=_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),o=e(_r(d[3])),a=e(_r(d[4])),n=e(_r(d[5])),i=e(_r(d[6])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(o,n,i):o[n]=e[n]}return o.default=e,r&&r.set(e,o),o})(_r(d[7])),u=_r(d[8]),h=e(_r(d[9])),s=e(_r(d[10])),f=e(_r(d[11]));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function y(e,t){if(null==e)return{};var r,o,a=p(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function p(e,t){if(null==e)return{};var r,o,a={},n=Object.keys(e);for(o=0;o=0||(a[r]=e[r]);return a}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R=_e.getDefaultHeaderHeight=function(e,t){var r=e.width>e.height;return('ios'===u.Platform.OS?r&&!u.Platform.isPad?32:44:'android'===u.Platform.OS?56:64)+t},S=(_e.default=(function(e){(0,a.default)(C,e);var b,p,w=(b=C,p=c(),function(){var e,t=(0,i.default)(b);if(p){var r=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,n.default)(this,e)});function C(){var e;(0,t.default)(this,C);for(var r=arguments.length,a=new Array(r),n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function u(e,r){if(null==e)return{};var t,n,o={},u=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}try{e=_r(d[2]).default}catch(e){}var a=null!=t.UIManager.getViewManagerConfig('RNCMaskedView')}),647,[30,39,648]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1]));e.default=u.default}),648,[2,649]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),o=e(r(d[5])),c=e(r(d[6])),u=e(r(d[7])),f=r(d[8]),h=r(d[9]),v=["maskElement","children"];function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var y=(0,f.requireNativeComponent)('RNCMaskedView');_e.default=(function(e){(0,s.default)(E,e);var k,R,w=(k=E,R=p(),function(){var e,t=(0,c.default)(k);if(R){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function E(){var e;(0,n.default)(this,E);for(var t=arguments.length,l=new Array(t),s=0;s=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function b(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}var y,h,v,O=_e.TouchableItem=(function(e){(0,n.default)(h,e);var c,b,y=(c=h,b=f(),function(){var e,t=(0,l.default)(c);if(b){var r=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function h(){return(0,t.default)(this,h),y.apply(this,arguments)}return(0,r.default)(h,[{key:"render",value:function(){if('android'===u.Platform.OS&&u.Platform.Version>=21){var e=this.props,t=e.style,r=e.pressColor,n=e.borderless,o=e.children,l=p(e,["style","pressColor","borderless","children"]);return a.createElement(u.TouchableNativeFeedback,s({},l,{useForeground:u.TouchableNativeFeedback.canUseNativeForeground(),background:u.TouchableNativeFeedback.Ripple(r,n)}),a.createElement(u.View,{style:t},a.Children.only(o)))}return'ios'===u.Platform.OS?a.createElement(i.default,s({hitSlop:{top:10,bottom:10,right:10,left:10},disallowInterruption:!0,enabled:!this.props.disabled},this.props),this.props.children):a.createElement(u.TouchableOpacity,this.props,this.props.children)}}]),h})(a.Component);v={borderless:!1,pressColor:'rgba(0, 0, 0, .32)'},(h="defaultProps")in(y=O)?Object.defineProperty(y,h,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[h]=v}),650,[2,21,22,17,19,16,30,39,651]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),a=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),i=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[7])),u=_r(d[8]),c=_r(d[9]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(){return s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function v(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}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}var O=u.Animated.createAnimatedComponent(c.BaseButton),b='web'!==u.Platform.OS,P=_e.default=(function(e){(0,a.default)(P,e);var c,f,v=(c=P,f=p(),function(){var e,t=(0,l.default)(c);if(f){var r=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function P(){var e;(0,t.default)(this,P);for(var r=arguments.length,a=new Array(r),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}var f=r.StyleSheet.create({container:(function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function S(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;th/2?0!==w||0!==y:e.props.closing;e.animate({closing:b,velocity:w}),b&&(e.pendingGestureCallback=setTimeout(o,32)),null==s||s()}})),V((0,r.default)(e),"getInterpolatedStyle",(0,y.default)((function(t,n,r,a,o,i,l,s,u){return t({index:n,current:{progress:r},next:a&&{progress:a},closing:e.isClosing,swiping:e.isSwiping,inverted:e.inverted,layouts:{screen:o},insets:{top:i,right:l,bottom:s,left:u}})}))),V((0,r.default)(e),"getCardAnimationContext",(0,y.default)((function(t,n,r,a,o,i,l,s){return{index:t,current:{progress:n},next:r&&{progress:r},closing:e.isClosing,swiping:e.isSwiping,inverted:e.inverted,layouts:{screen:a},insets:{top:o,right:i,bottom:l,left:s}}}))),V((0,r.default)(e),"contentRef",l.createRef()),e}return(0,n.default)(D,[{key:"componentDidMount",value:function(){this.animate({closing:this.props.closing})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.layout,r=t.gestureDirection,a=t.closing,o=n.width,i=n.height;o!==e.layout.width&&this.layout.width.setValue(o),i!==e.layout.height&&this.layout.height.setValue(i),r!==e.gestureDirection&&this.inverted.setValue((0,v.default)(r)),this.getAnimateToValue(this.props)!==this.getAnimateToValue(e)&&this.animate({closing:a})}},{key:"componentWillUnmount",value:function(){this.handleEndInteraction()}},{key:"gestureActivationCriteria",value:function(){var e=this.props,t=e.layout,n=e.gestureDirection,r=e.gestureResponseDistance,a='vertical'===n||'vertical-inverted'===n?void 0!==(null==r?void 0:r.vertical)?r.vertical:135:void 0!==(null==r?void 0:r.horizontal)?r.horizontal:50;if('vertical'===n)return{maxDeltaX:15,minOffsetY:5,hitSlop:{bottom:-t.height+a}};if('vertical-inverted'===n)return{maxDeltaX:15,minOffsetY:-5,hitSlop:{top:-t.height+a}};var o=-t.width+a;return 1===(0,v.default)(n)?{minOffsetX:5,maxDeltaY:20,hitSlop:{right:o}}:{minOffsetX:-5,maxDeltaY:20,hitSlop:{left:o}}}},{key:"render",value:function(){var e=this.props,t=e.styleInterpolator,n=e.index,r=e.current,a=e.gesture,o=e.next,i=e.layout,h=e.insets,v=e.overlay,y=e.overlayEnabled,w=e.shadowEnabled,b=e.gestureEnabled,S=e.gestureDirection,C=e.pageOverflowEnabled,P=e.children,V=e.containerStyle,D=e.contentStyle,x=E(e,["styleInterpolator","index","current","gesture","next","layout","insets","overlay","overlayEnabled","shadowEnabled","gestureEnabled","gestureDirection","pageOverflowEnabled","children","containerStyle","contentStyle"]),k=this.getInterpolatedStyle(t,n,r,o,i,h.top,h.right,h.bottom,h.left),I=this.getCardAnimationContext(n,r,o,i,h.top,h.right,h.bottom,h.left),G=k.containerStyle,H=k.cardStyle,R=k.overlayStyle,T=k.shadowStyle,_=b?s.Animated.event([{nativeEvent:'vertical'===S||'vertical-inverted'===S?{translationY:a}:{translationX:a}}],{useNativeDriver:j}):void 0,M=s.StyleSheet.flatten(D||{}).backgroundColor,X=!!M&&0===(0,u.default)(M).alpha(),Y={opacity:s.Animated.diffClamp(r,1,1)};return l.createElement(p.default.Provider,{value:I},l.createElement(s.View,O({pointerEvents:"box-none"},x),y?l.createElement(s.View,{pointerEvents:"box-none",style:s.StyleSheet.absoluteFill},v({style:R})):null,l.createElement(s.Animated.View,{style:[A.container,Y,G,V],pointerEvents:"box-none"},l.createElement(f.PanGestureHandler,O({enabled:0!==i.width&&b,onGestureEvent:_,onHandlerStateChange:this.handleGestureStateChange},this.gestureActivationCriteria()),l.createElement(s.Animated.View,{style:[A.container,H]},w&&T&&!X?l.createElement(s.Animated.View,{style:[A.shadow,'horizontal'===S?[A.shadowHorizontal,A.shadowLeft]:'horizontal-inverted'===S?[A.shadowHorizontal,A.shadowRight]:'vertical'===S?[A.shadowVertical,A.shadowTop]:[A.shadowVertical,A.shadowBottom],{backgroundColor:M},T],pointerEvents:"none"}):null,l.createElement(c.default,{ref:this.contentRef,enabled:C,layout:i,style:D},P))))))}}]),D})(l.Component);V(D,"defaultProps",{overlayEnabled:'ios'!==s.Platform.OS,shadowEnabled:!0,gestureEnabled:!0,gestureVelocityImpact:.3,overlay:function(e){var t=e.style;return t?l.createElement(s.Animated.View,{pointerEvents:"none",style:[A.overlay,t]}):null}});var A=s.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}})}),659,[2,21,22,13,17,19,16,30,39,660,668,641,669,670,671,657]); -__d((function(g,r,_i,_a,_m,e,d){'use strict';var t=r(d[0]),o=r(d[1]),n=[].slice,a=['keyword','gray','hex'],i={};Object.keys(o).forEach((function(t){i[n.call(o[t].labels).sort().join('')]=t}));var h={};function l(s,c){if(!(this instanceof l))return new l(s,c);if(c&&c in a&&(c=null),c&&!(c in o))throw new Error('Unknown model: '+c);var u,f;if(null==s)this.model='rgb',this.color=[0,0,0],this.valpha=1;else if(s instanceof l)this.model=s.model,this.color=s.color.slice(),this.valpha=s.valpha;else if('string'==typeof s){var p=t.get(s);if(null===p)throw new Error('Unable to parse color from string: '+s);this.model=p.model,f=o[this.model].channels,this.color=p.value.slice(0,f),this.valpha='number'==typeof p.value[f]?p.value[f]:1}else if(s.length){this.model=c||'rgb',f=o[this.model].channels;var b=n.call(s,0,f);this.color=v(b,f),this.valpha='number'==typeof s[f]?s[f]:1}else if('number'==typeof s)s&=16777215,this.model='rgb',this.color=[s>>16&255,s>>8&255,255&s],this.valpha=1;else{this.valpha=1;var m=Object.keys(s);'alpha'in s&&(m.splice(m.indexOf('alpha'),1),this.valpha='number'==typeof s.alpha?s.alpha:0);var y=m.sort().join('');if(!(y in i))throw new Error('Unable to parse color from object: '+JSON.stringify(s));this.model=i[y];var w=o[this.model].labels,k=[];for(u=0;un?(o+.05)/(n+.05):(n+.05)/(o+.05)},level:function(t){var o=this.contrast(t);return o>=7.1?'AAA':o>=4.5?'AA':''},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),o=0;o<3;o++)t.color[o]=255-t.color[o];return t},lighten:function(t){var o=this.hsl();return o.color[2]+=o.color[2]*t,o},darken:function(t){var o=this.hsl();return o.color[2]-=o.color[2]*t,o},saturate:function(t){var o=this.hsl();return o.color[1]+=o.color[1]*t,o},desaturate:function(t){var o=this.hsl();return o.color[1]-=o.color[1]*t,o},whiten:function(t){var o=this.hwb();return o.color[1]+=o.color[1]*t,o},blacken:function(t){var o=this.hwb();return o.color[2]+=o.color[2]*t,o},grayscale:function(){var t=this.rgb().color,o=.3*t[0]+.59*t[1]+.11*t[2];return l.rgb(o,o,o)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var o=this.hsl(),n=o.color[0];return n=(n=(n+t)%360)<0?360+n:n,o.color[0]=n,o},mix:function(t,o){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),a=this.rgb(),i=void 0===o?.5:o,h=2*i-1,s=n.alpha()-a.alpha(),c=((h*s==-1?h:(h+s)/(1+h*s))+1)/2,u=1-c;return l.rgb(c*n.red()+u*a.red(),c*n.green()+u*a.green(),c*n.blue()+u*a.blue(),n.alpha()*i+a.alpha()*(1-i))}},Object.keys(o).forEach((function(t){if(-1===a.indexOf(t)){var i=o[t].channels;l.prototype[t]=function(){if(this.model===t)return new l(this);if(arguments.length)return new l(arguments,t);var n,a='number'==typeof arguments[i]?i:this.valpha;return new l((n=o[this.model][t].raw(this.color),Array.isArray(n)?n:[n]).concat(a),t)},l[t]=function(o){return'number'==typeof o&&(o=v(n.call(arguments),i)),new l(o,t)}}})),_m.exports=l}),660,[661,665]); -__d((function(_g,_r,_i,_a,m,e,d){var r=_r(d[0]),t=_r(d[1]),a=Object.hasOwnProperty,n={};for(var s in r)a.call(r,s)&&(n[r[s]]=s);var o=m.exports={to:{},get:{}};function l(r,t,a){return Math.min(Math.max(t,r),a)}function u(r){var t=Math.round(r).toString(16).toUpperCase();return t.length<2?'0'+t:t}o.get=function(r){var t,a;switch(r.substring(0,3).toLowerCase()){case'hsl':t=o.get.hsl(r),a='hsl';break;case'hwb':t=o.get.hwb(r),a='hwb';break;default:t=o.get.rgb(r),a='rgb'}return t?{model:a,value:t}:null},o.get.rgb=function(t){if(!t)return null;var n,s,o,u=[0,0,0,1];if(n=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=n[2],n=n[1],s=0;s<3;s++){var h=2*s;u[s]=parseInt(n.slice(h,h+2),16)}o&&(u[3]=parseInt(o,16)/255)}else if(n=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(n=n[1])[3],s=0;s<3;s++)u[s]=parseInt(n[s]+n[s],16);o&&(u[3]=parseInt(o+o,16)/255)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)u[s]=parseInt(n[s+1],0);n[4]&&(n[5]?u[3]=.01*parseFloat(n[4]):u[3]=parseFloat(n[4]))}else{if(!(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(n=t.match(/^(\w+)$/))?'transparent'===n[1]?[0,0,0,0]:a.call(r,n[1])?((u=r[n[1]])[3]=1,u):null:null;for(s=0;s<3;s++)u[s]=Math.round(2.55*parseFloat(n[s+1]));n[4]&&(n[5]?u[3]=.01*parseFloat(n[4]):u[3]=parseFloat(n[4]))}for(s=0;s<3;s++)u[s]=l(u[s],0,255);return u[3]=l(u[3],0,1),u},o.get.hsl=function(r){if(!r)return null;var t=r.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(a)?1:a,0,1)]}return null},o.get.hwb=function(r){if(!r)return null;var t=r.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(a)?1:a,0,1)]}return null},o.to.hex=function(){var r=t(arguments);return'#'+u(r[0])+u(r[1])+u(r[2])+(r[3]<1?u(Math.round(255*r[3])):'')},o.to.rgb=function(){var r=t(arguments);return r.length<4||1===r[3]?'rgb('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+')':'rgba('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+', '+r[3]+')'},o.to.rgb.percent=function(){var r=t(arguments),a=Math.round(r[0]/255*100),n=Math.round(r[1]/255*100),s=Math.round(r[2]/255*100);return r.length<4||1===r[3]?'rgb('+a+'%, '+n+'%, '+s+'%)':'rgba('+a+'%, '+n+'%, '+s+'%, '+r[3]+')'},o.to.hsl=function(){var r=t(arguments);return r.length<4||1===r[3]?'hsl('+r[0]+', '+r[1]+'%, '+r[2]+'%)':'hsla('+r[0]+', '+r[1]+'%, '+r[2]+'%, '+r[3]+')'},o.to.hwb=function(){var r=t(arguments),a='';return r.length>=4&&1!==r[3]&&(a=', '+r[3]),'hwb('+r[0]+', '+r[1]+'%, '+r[2]+'%'+a+')'},o.to.keyword=function(r){return n[r.slice(0,3)]}}),661,[662,663]); -__d((function(g,r,i,a,m,e,d){'use strict';m.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),662,[]); -__d((function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),n=Array.prototype.concat,o=Array.prototype.slice,c=m.exports=function(c){for(var u=[],p=0,i=c.length;p=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&'String'!==n.constructor.name))}}),664,[]); -__d((function(g,r,_i,a,m,e,d){var n=r(d[0]),o=r(d[1]),t={};function c(n){var o=function(o){return null==o?o:(arguments.length>1&&(o=Array.prototype.slice.call(arguments)),n(o))};return'conversion'in n&&(o.conversion=n.conversion),o}function i(n){var o=function(o){if(null==o)return o;arguments.length>1&&(o=Array.prototype.slice.call(arguments));var t=n(o);if('object'==typeof t)for(var c=t.length,i=0;i1&&(h-=1)),[360*h,100*u,100*l]},t.rgb.hwb=function(r){var n=r[0],a=r[1],h=r[2];return[t.rgb.hsl(r)[0],100*(.00392156862745098*Math.min(n,Math.min(a,h))),100*(h=1-.00392156862745098*Math.max(n,Math.max(a,h)))]},t.rgb.cmyk=function(r){var n,a=r[0]/255,t=r[1]/255,h=r[2]/255;return[100*((1-a-(n=Math.min(1-a,1-t,1-h)))/(1-n)||0),100*((1-t-n)/(1-n)||0),100*((1-h-n)/(1-n)||0),100*n]},t.rgb.keyword=function(a){var t=n[a];if(t)return t;var h,u,o,s=1/0;for(var c in r)if(r.hasOwnProperty(c)){var l=r[c],i=(u=a,o=l,Math.pow(u[0]-o[0],2)+Math.pow(u[1]-o[1],2)+Math.pow(u[2]-o[2],2));i.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.3576*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.1805*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*n+.7152*a+.0722*t),100*(.0193*n+.1192*a+.9505*t)]},t.rgb.lab=function(r){var n=t.rgb.xyz(r),a=n[0],h=n[1],u=n[2];return h/=100,u/=108.883,a=(a/=95.047)>.008856?Math.pow(a,.3333333333333333):7.787*a+.13793103448275862,[116*(h=h>.008856?Math.pow(h,.3333333333333333):7.787*h+.13793103448275862)-16,500*(a-h),200*(h-(u=u>.008856?Math.pow(u,.3333333333333333):7.787*u+.13793103448275862))]},t.hsl.rgb=function(r){var n,a,t,h,u,o=r[0]/360,s=r[1]/100,c=r[2]/100;if(0===s)return[u=255*c,u,u];n=2*c-(a=c<.5?c*(1+s):c+s-c*s),h=[0,0,0];for(var l=0;l<3;l++)(t=o+.3333333333333333*-(l-1))<0&&t++,t>1&&t--,u=6*t<1?n+6*(a-n)*t:2*t<1?a:3*t<2?n+(a-n)*(.6666666666666666-t)*6:n,h[l]=255*u;return h},t.hsl.hsv=function(r){var n=r[0],a=r[1]/100,t=r[2]/100,h=a,u=Math.max(t,.01);return a*=(t*=2)<=1?t:2-t,h*=u<=1?u:2-u,[n,100*(0===t?2*h/(u+h):2*a/(t+a)),100*((t+a)/2)]},t.hsv.rgb=function(r){var n=r[0]/60,a=r[1]/100,t=r[2]/100,h=Math.floor(n)%6,u=n-Math.floor(n),o=255*t*(1-a),s=255*t*(1-a*u),c=255*t*(1-a*(1-u));switch(t*=255,h){case 0:return[t,c,o];case 1:return[s,t,o];case 2:return[o,t,c];case 3:return[o,s,t];case 4:return[c,o,t];case 5:return[t,o,s]}},t.hsv.hsl=function(r){var n,a,t,h=r[0],u=r[1]/100,o=r[2]/100,s=Math.max(o,.01);return t=(2-u)*o,a=u*s,[h,100*(a=(a/=(n=(2-u)*s)<=1?n:2-n)||0),100*(t/=2)]},t.hwb.rgb=function(r){var n,a,t,h,u,o,s,c=r[0]/360,l=r[1]/100,i=r[2]/100,b=l+i;switch(b>1&&(l/=b,i/=b),t=6*c-(n=Math.floor(6*c)),0!=(1&n)&&(t=1-t),h=l+t*((a=1-i)-l),n){default:case 6:case 0:u=a,o=h,s=l;break;case 1:u=h,o=a,s=l;break;case 2:u=l,o=a,s=h;break;case 3:u=l,o=h,s=a;break;case 4:u=h,o=l,s=a;break;case 5:u=a,o=l,s=h}return[255*u,255*o,255*s]},t.cmyk.rgb=function(r){var n=r[0]/100,a=r[1]/100,t=r[2]/100,h=r[3]/100;return[255*(1-Math.min(1,n*(1-h)+h)),255*(1-Math.min(1,a*(1-h)+h)),255*(1-Math.min(1,t*(1-h)+h))]},t.xyz.rgb=function(r){var n,a,t,h=r[0]/100,u=r[1]/100,o=r[2]/100;return a=-.9689*h+1.8758*u+.0415*o,t=.0557*h+-.204*u+1.057*o,n=(n=3.2406*h+-1.5372*u+-.4986*o)>.0031308?1.055*Math.pow(n,.4166666666666667)-.055:12.92*n,a=a>.0031308?1.055*Math.pow(a,.4166666666666667)-.055:12.92*a,t=t>.0031308?1.055*Math.pow(t,.4166666666666667)-.055:12.92*t,[255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1)),255*(t=Math.min(Math.max(0,t),1))]},t.xyz.lab=function(r){var n=r[0],a=r[1],t=r[2];return a/=100,t/=108.883,n=(n/=95.047)>.008856?Math.pow(n,.3333333333333333):7.787*n+.13793103448275862,[116*(a=a>.008856?Math.pow(a,.3333333333333333):7.787*a+.13793103448275862)-16,500*(n-a),200*(a-(t=t>.008856?Math.pow(t,.3333333333333333):7.787*t+.13793103448275862))]},t.lab.xyz=function(r){var n,a,t,h=r[0];n=r[1]/500+(a=(h+16)/116),t=a-r[2]/200;var u=Math.pow(a,3),o=Math.pow(n,3),s=Math.pow(t,3);return a=u>.008856?u:(a-.13793103448275862)/7.787,n=o>.008856?o:(n-.13793103448275862)/7.787,t=s>.008856?s:(t-.13793103448275862)/7.787,[n*=95.047,a*=100,t*=108.883]},t.lab.lch=function(r){var n,a=r[0],t=r[1],h=r[2];return(n=360*Math.atan2(h,t)/2/Math.PI)<0&&(n+=360),[a,Math.sqrt(t*t+h*h),n]},t.lch.lab=function(r){var n,a=r[0],t=r[1];return n=r[2]/360*2*Math.PI,[a,t*Math.cos(n),t*Math.sin(n)]},t.rgb.ansi16=function(r){var n=r[0],a=r[1],h=r[2],u=1 in arguments?arguments[1]:t.rgb.hsv(r)[2];if(0===(u=Math.round(u/50)))return 30;var o=30+(Math.round(h/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===u&&(o+=60),o},t.hsv.ansi16=function(r){return t.rgb.ansi16(t.hsv.rgb(r),r[2])},t.rgb.ansi256=function(r){var n=r[0],a=r[1],t=r[2];return n===a&&a===t?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(a/255*5)+Math.round(t/255*5)},t.ansi16.rgb=function(r){var n=r%10;if(0===n||7===n)return r>50&&(n+=3.5),[n=n/10.5*255,n,n];var a=.5*(1+~~(r>50));return[(1&n)*a*255,(n>>1&1)*a*255,(n>>2&1)*a*255]},t.ansi256.rgb=function(r){if(r>=232){var n=10*(r-232)+8;return[n,n,n]}var a;return r-=16,[Math.floor(r/36)/5*255,Math.floor((a=r%36)/6)/5*255,a%6/5*255]},t.rgb.hex=function(r){var n=(((255&Math.round(r[0]))<<16)+((255&Math.round(r[1]))<<8)+(255&Math.round(r[2]))).toString(16).toUpperCase();return'000000'.substring(n.length)+n},t.hex.rgb=function(r){var n=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var a=n[0];3===n[0].length&&(a=a.split('').map((function(r){return r+r})).join(''));var t=parseInt(a,16);return[t>>16&255,t>>8&255,255&t]},t.rgb.hcg=function(r){var n,a=r[0]/255,t=r[1]/255,h=r[2]/255,u=Math.max(Math.max(a,t),h),o=Math.min(Math.min(a,t),h),s=u-o;return n=s<=0?0:u===a?(t-h)/s%6:u===t?2+(h-a)/s:4+(a-t)/s+4,n/=6,[360*(n%=1),100*s,100*(s<1?o/(1-s):0)]},t.hsl.hcg=function(r){var n=r[1]/100,a=r[2]/100,t=1,h=0;return(t=a<.5?2*n*a:2*n*(1-a))<1&&(h=(a-.5*t)/(1-t)),[r[0],100*t,100*h]},t.hsv.hcg=function(r){var n=r[1]/100,a=r[2]/100,t=n*a,h=0;return t<1&&(h=(a-t)/(1-t)),[r[0],100*t,100*h]},t.hcg.rgb=function(r){var n=r[0]/360,a=r[1]/100,t=r[2]/100;if(0===a)return[255*t,255*t,255*t];var h,u=[0,0,0],o=n%1*6,s=o%1,c=1-s;switch(Math.floor(o)){case 0:u[0]=1,u[1]=s,u[2]=0;break;case 1:u[0]=c,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=s;break;case 3:u[0]=0,u[1]=c,u[2]=1;break;case 4:u[0]=s,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=c}return h=(1-a)*t,[255*(a*u[0]+h),255*(a*u[1]+h),255*(a*u[2]+h)]},t.hcg.hsv=function(r){var n=r[1]/100,a=n+r[2]/100*(1-n),t=0;return a>0&&(t=n/a),[r[0],100*t,100*a]},t.hcg.hsl=function(r){var n=r[1]/100,a=r[2]/100*(1-n)+.5*n,t=0;return a>0&&a<.5?t=n/(2*a):a>=.5&&a<1&&(t=n/(2*(1-a))),[r[0],100*t,100*a]},t.hcg.hwb=function(r){var n=r[1]/100,a=n+r[2]/100*(1-n);return[r[0],100*(a-n),100*(1-a)]},t.hwb.hcg=function(r){var n=r[1]/100,a=1-r[2]/100,t=a-n,h=0;return t<1&&(h=(a-t)/(1-t)),[r[0],100*t,100*h]},t.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]},t.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]},t.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]},t.gray.hsl=t.gray.hsv=function(r){return[0,0,r[0]]},t.gray.hwb=function(r){return[0,100,r[0]]},t.gray.cmyk=function(r){return[0,0,0,r[0]]},t.gray.lab=function(r){return[r[0],0,0]},t.gray.hex=function(r){var n=255&Math.round(r[0]/100*255),a=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return'000000'.substring(a.length)+a},t.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}}),666,[662]); -__d((function(g,r,_i,a,m,e,d){var n=r(d[0]);function t(){for(var t={},u=Object.keys(n),c=u.length,o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function f(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}_e.default=r.forwardRef((function(e,o){var f=e.enabled,i=e.layout,c=e.style,p=a(e,["enabled","layout","style"]),y=r.useState(!1),b=(0,t.default)(y,2),s=b[0],O=b[1];return r.useEffect((function(){if('undefined'!=typeof document&&document.body){var e=document.body.clientWidth,t=document.body.clientHeight;O(e===i.width&&t===i.height)}}),[i.height,i.width]),r.createElement(n.View,u({},p,{ref:o,style:[f&&s?l.page:l.card,c]}))}));var l=n.StyleSheet.create({page:{minHeight:'100%'},card:{flex:1,overflow:'hidden'}})}),668,[2,23,30,39]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.createContext(void 0)}),669,[30]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,c){var l=(0,n.default)(c);switch(c){case'vertical':case'vertical-inverted':return t.height*l;case'horizontal':case'horizontal-inverted':return t.width*l}};var n=t(r(d[1]))}),670,[2,671]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){switch(t){case'vertical':return 1;case'vertical-inverted':return-1;case'horizontal':return n.I18nManager.isRTL?-1:1;case'horizontal-inverted':return n.I18nManager.isRTL?1:-1}};var n=r(d[0])}),671,[39]); -__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.createContext(void 0)}),672,[30]); -__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(!1);_e.default=t}),673,[30]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),u=e(_r(d[4])),a=e(_r(d[5])),o=e(_r(d[6])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=u?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r})(_r(d[7])),i=_r(d[8]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_e.default=(function(e){(0,u.default)(y,e);var l,c,s=(l=y,c=f(),function(){var e,t=(0,o.default)(l);if(c){var n=(0,o.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,a.default)(this,e)});function y(){var e;(0,t.default)(this,y);for(var n=arguments.length,u=new Array(n),a=0;a=0;x--){var C=s[x];if(C&&C.route.key===M.key){S=C;break}}var D=s[a-1],F=s[a+1],R=((null==D?void 0:D.descriptor.options)||{}).headerShown,W=void 0===R?!1===_:R,A=((null==F?void 0:F.descriptor.options)||{}).headerShown,H=!1===W&&!F||!1===(void 0===A?!1===_:A),I={mode:l,layout:c,insets:f,scene:e,previous:S,navigation:e.descriptor.navigation,styleInterpolator:'float'===l?H?'vertical'===h||'vertical-inverted'===h?i.forSlideUp:'horizontal-inverted'===h?i.forSlideRight:i.forSlideLeft:b:i.forNoAnimation};return t.createElement(n.NavigationContext.Provider,{key:e.route.key,value:e.descriptor.navigation},t.createElement(t.Fragment,null,t.createElement(r.View,{onLayout:y?function(t){return y({route:e.route,height:t.nativeEvent.layout.height})}:void 0,pointerEvents:j?'box-none':'none',accessibilityElementsHidden:!j,importantForAccessibility:j?'auto':'no-hide-descendants',style:'float'===l&&!j||P?u.header:null},void 0!==k?k(I):t.createElement(o.default,I))))})))};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=_r(d[2]),n=_r(d[3]),o=e(_r(d[4])),i=_r(d[5]),a=e(_r(d[6]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var u=r.StyleSheet.create({header:{position:'absolute',top:0,left:0,right:0}})}),675,[2,30,39,455,676,631,673]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=c(_r(d[1])),r=_r(d[2]),n=_r(d[3]),o=_r(d[4]),a=c(_r(d[5])),i=e(_r(d[6])),l=e(_r(d[7]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function f(){return f=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function f(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}var a=r.StyleSheet.create({title:r.Platform.select({ios:{fontSize:17,fontWeight:'600'},android:{fontSize:20,fontFamily:'sans-serif-medium',fontWeight:'normal'},default:{fontSize:18,fontWeight:'500'}})})}),677,[2,30,39,652]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,t){var o;return function(){if(!o){for(var u=arguments.length,f=new Array(u),c=0;c1&&void 0!==arguments[1]?arguments[1]:{},u=(0,r.StackRouter)(e,o);return(0,r.createNavigator)((function(e){return t.createElement(n.default,e)}),u,o)}}),683,[2,30,455,684]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var i=e.navigation,c=e.descriptors,f=e.navigationConfig,l=p(e,["navigation","descriptors","navigationConfig"]),O=Object.keys(c).reduce((function(e,t){var o=(0,n.default)(f,(0,r.default)(c[t].options));return e[t]=u({},c[t],{options:o}),e}),{});return t.createElement(o.default,a({state:i.state,descriptors:O,navigation:i},f,l))};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4]));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function a(){return a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function l(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}}),684,[2,30,685,686,634]); -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var n=t,o=[];p.forEach((function(o){o.check(t)&&(n=o.compat(n))})),o.length&&console.warn("Deprecation in 'navigationOptions':\n".concat(o.map((function(t){return"- '".concat(t.deprecated,"' will be removed in a future version. Use '").concat(t.updated,"' instead")})).join('\n')));return n};var n=t(r(d[1])),o=t(r(d[2]));function c(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);n&&(c=c.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,c)}return o}function u(t){for(var n=1;n=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(u[o]=t[o])}return u}function f(t,n){if(null==t)return{};var o,c,u={},i=Object.keys(t);for(c=0;c=0||(u[o]=t[o]);return u}var p=[{check:function(t){return'object'==typeof t.headerForceInset},deprecated:'headerForceInset',updated:'safeAreaInsets',compat:function(t){var n=t.headerForceInset,o=l(t,["headerForceInset"]),c={top:0,bottom:0,left:0,right:0};switch(n){case'top':delete c.top;break;case'bottom':delete c.bottom;break;case'left':delete c.left;break;case'right':delete c.right;break;case'vertical':delete c.top,delete c.bottom;break;case'horizontal':delete c.left,delete c.right;break;case'always':c=void 0}return u({},o,{safeAreaInsets:c})}},{check:function(t){return void 0!==t.gesturesEnabled},deprecated:'gesturesEnabled',updated:'gestureEnabled',compat:function(t){var n=t.gesturesEnabled;return u({},l(t,["gesturesEnabled"]),{gestureEnabled:n})}},{check:function(t){return null===t.header},deprecated:'header: null',updated:'headerShown: false',compat:function(t){t.header;return u({},l(t,["header"]),{headerShown:!1})}},{check:function(t){return null!=t.header&&'function'!=typeof t.header},deprecated:'header: ',updated:'header: () => ',compat:function(t){return u({},t,{header:function(){return t.header}})}},{check:function(t){return void 0!==t.headerTitle&&'string'!=typeof t.headerTitle&&'function'!=typeof t.headerTitle},deprecated:'headerTitle: ',updated:'headerTitle: () => ',compat:function(t){return u({},t,{headerTitle:function(){return t.headerTitle}})}}].concat((0,o.default)(['headerLeft','headerRight','headerBackground','headerBackImage'].map((function(t){return{check:function(n){return void 0!==n[t]&&'function'!=typeof n[t]},deprecated:"".concat(t,": "),updated:"".concat(t,": () => "),compat:function(o){return u({},o,(0,n.default)({},t,(function(){return o[t]})))}}}))))}),685,[2,3,6]); -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){var o=n;return Object.keys(c).forEach((function(n){if(n in t){var i=c[n],s=i.compat;i.message;o=s?s(t,o):o}})),o};var n=t(r(d[1]));function o(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,i)}return o}function i(t){for(var n=1;n>>0===r&&r>=0&&r<=4294967295)return(0,e.integerColor)(r);if(!r||'none'===r)return null;if('currentColor'===r)return n;if('context-fill'===r)return o;if('context-stroke'===r)return u;var f='string'==typeof r&&r.match(t);if(f)return[1,f[1]];var i=(0,e.default)(r);if('number'==typeof i)return i;return console.warn(`"${r}" is not a valid color or brush`),null};var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var i=u?Object.getOwnPropertyDescriptor(e,f):null;i&&(i.get||i.set)?Object.defineProperty(o,f,i):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var t=/^url\(#(.+)\)$/,n=[2],o=[3],u=[4]}),694,[695]); -__d((function(_g,_r,_i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.colors=e.colorNames=void 0,e.default=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?N(r):null;var a='string'==typeof r?q(r):r;if(!Array.isArray(a))return a;var l=a[0],n=a[1],t=a[2],o=a[3],s=((void 0===o?4278190080:Math.round(255*o)<<24)|Math.round(255*l)<<16|Math.round(255*n)<<8|Math.round(255*t))>>>0;return N(s)},e.integerColor=void 0;var r=_r(d[0]),a=e.colors={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]},l=e.colorNames={};for(var n in a)if(a.hasOwnProperty(n)){var t=a[n],o=t[0],s=t[1],i=t[2];l[n]=(4278190080|o<<16|s<<8|i)>>>0}function u(r,a,l,n){var t,o,s,i,u,g=r/360,c=a/100,h=l/100;if(0===c)return[u=h,u,u,n];t=2*h-(o=h<.5?h*(1+c):h+c-h*c),i=[0,0,0,n];for(var f=0;f<3;f++)(s=g+.3333333333333333*-(f-1))<0&&s++,s>1&&s--,u=6*s<1?t+6*(o-t)*s:2*s<1?o:3*s<2?t+(o-t)*(.6666666666666666-s)*6:t,i[f]=u;return i}function g(r,a,l,n){var t,o,s,i,u,g,c,h=r/360,f=a/100,b=l/100,p=f+b;switch(p>1&&(f/=p,b/=p),s=6*h-(t=Math.floor(6*h)),0!=(1&t)&&(s=1-s),i=f+s*((o=1-b)-f),t){default:case 6:case 0:u=o,g=i,c=f;break;case 1:u=i,g=o,c=f;break;case 2:u=f,g=o,c=i;break;case 3:u=f,g=i,c=o;break;case 4:u=i,g=f,c=o;break;case 5:u=o,g=f,c=i}return[u,g,c,n]}function c(r,a,l){return Math.min(Math.max(a,r),l)}Object.freeze(l);var h=/^#([a-f0-9]{3,4})$/i,f=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,b=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/,p=/^rgba?\(\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/,y=/(\D+)/;function k(r){var a,n,t,o=[0,0,0,1];if(a=r.match(f)){for(t=a[2],a=a[1],n=0;n<3;n++){var s=2*n;o[n]=parseInt(a.slice(s,s+2),16)/255}t&&(o[3]=Math.round(parseInt(t,16)/255*100)/100)}else if(a=r.match(h)){for(t=(a=a[1])[3],n=0;n<3;n++)o[n]=parseInt(a[n]+a[n],16)/255;t&&(o[3]=Math.round(parseInt(t+t,16)/255*100)/100)}else if(a=r.match(b)){for(n=0;n<3;n++)o[n]=parseInt(a[n+1],0)/255;a[4]&&(o[3]=parseFloat(a[4]))}else{if(!(a=r.match(p))){if(a=r.match(y)){if('transparent'===a[1])return[0,0,0,0];var i=l[a[1]];return'number'!=typeof i?null:N(i)}return null}for(n=0;n<3;n++)o[n]=parseFloat(a[n+1])/100;a[4]&&(o[3]=parseFloat(a[4]))}for(n=0;n<4;n++)o[n]=c(o[n],0,1);return o}var v=/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/;function w(r){var a=r.match(v);if(!a)return null;var l=parseFloat(a[4]);return u((parseFloat(a[1])+360)%360,c(parseFloat(a[2]),0,100),c(parseFloat(a[3]),0,100),isNaN(l)?1:c(l,0,1))}var F=/^hwb\(\s*([+-]?\d*[.]?\d+)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/;function M(r){var a=r.match(F);if(!a)return null;var l=parseFloat(a[4]);return g((parseFloat(a[1])%360+360)%360,c(parseFloat(a[2]),0,100),c(parseFloat(a[3]),0,100),isNaN(l)?1:c(l,0,1))}function q(r){switch(r.substring(0,3).toLowerCase()){case'hsl':return w(r);case'hwb':return M(r);default:return k(r)}}var N=e.integerColor='android'===r.Platform.OS?function(r){return 0|r}:function(r){return r}}),695,[39]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=+n;return isNaN(t)?1:t}}),696,[]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,f,h){var c=f.stroke,p=f.strokeOpacity,v=f.strokeLinecap,y=f.strokeLinejoin,D=f.strokeDasharray,L=f.strokeWidth,b=f.strokeDashoffset,j=f.strokeMiterlimit,M=f.vectorEffect;null!=c&&(h.push('stroke'),t.stroke=(0,o.default)(c));null!=L&&(h.push('strokeWidth'),t.strokeWidth=L);null!=p&&(h.push('strokeOpacity'),t.strokeOpacity=(0,s.default)(p));if(null!=D){h.push('strokeDasharray');var O=D&&'none'!==D?(0,n.default)(D):null;t.strokeDasharray=O&&O.length%2==1?O.concat(O):O}null!=b&&(h.push('strokeDashoffset'),t.strokeDashoffset=D&&b?+b||0:null);null!=v&&(h.push('strokeLinecap'),t.strokeLinecap=v&&l[v]||0);null!=y&&(h.push('strokeLinejoin'),t.strokeLinejoin=y&&u[y]||0);null!=j&&(h.push('strokeMiterlimit'),t.strokeMiterlimit=(j&&'number'!=typeof j?parseFloat(j):j)||4);null!=M&&(t.vectorEffect=M&&k[M]||0)};var o=t(r(d[1])),s=t(r(d[2])),n=t(r(d[3])),l={butt:0,square:2,round:1},u={miter:0,bevel:2,round:1},k={none:0,default:0,nonScalingStroke:1,'non-scaling-stroke':1,inherit:2,uri:3}}),697,[2,694,696,698]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return Array.isArray(u)?u:'number'==typeof u?[u]:'string'==typeof u?u.trim().replace(n,' ').split(t):[]};var t=/\s+/,n=/,/g}),698,[]); -__d((function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(t){if(Array.isArray(t))return t;if('string'==typeof t)try{var l=(0,e.parse)(t);return[l[0],l[3],l[1],l[4],l[2],l[5]]}catch(e){return console.error(e),n.identity}return o(s(t),t.transform)},_e.props2transform=s,_e.transformToMatrix=o;var n=r(d[0]),e=r(d[1]);function t(e){var t=e.x,l=e.y,s=e.originX,o=e.originY,u=e.scaleX,y=e.scaleY,f=e.rotation,c=e.skewX,p=e.skewY;(0,n.appendTransform)(t+s,l+o,u,y,f,c,p,s,o)}function l(n,e,t,l){var s,o;if('number'==typeof n)s=o=n;else if('string'==typeof n){var u=n.split(/\s*,\s*/);2===u.length?(s=+u[0],o=+u[1]):1===u.length&&(s=o=+u[0])}else Array.isArray(n)&&(2===n.length?(s=+n[0],o=+n[1]):1===n.length&&(s=o=+n[0]));return e=+e,isNaN(e)||(s=e),t=+t,isNaN(t)||(o=t),[s||l||0,o||l||0]}function s(n){var e=n.rotation,t=n.translate,s=n.translateX,o=n.translateY,u=n.origin,y=n.originX,f=n.originY,c=n.scale,p=n.scaleX,A=n.scaleY,v=n.skew,X=n.skewX,Y=n.skewY,h=n.x,w=n.y;if(null==e&&null==t&&null==s&&null==o&&null==u&&null==y&&null==f&&null==c&&null==p&&null==A&&null==v&&null==X&&null==Y&&null==h&&null==w)return null;(Array.isArray(h)||Array.isArray(w))&&console.warn('Passing SvgLengthList to x or y attribute where SvgLength expected');var k=l(t,s||(Array.isArray(h)?h[0]:h),o||(Array.isArray(w)?w[0]:w)),x=l(u,y,f),b=l(c,p,A,1),N=l(v,X,Y);return{rotation:null==e?0:+e||0,originX:x[0],originY:x[1],scaleX:b[0],scaleY:b[1],skewX:N[0],skewY:N[1],x:k[0],y:k[1]}}function o(l,o){if(!l&&!o)return null;if((0,n.reset)(),l&&t(l),o)if(Array.isArray(o))'number'==typeof o[0]&&(0,n.append)(o[0],o[1],o[2],o[3],o[4],o[5]);else if('string'==typeof o)try{var u=(0,e.parse)(o);(0,n.append)(u[0],u[3],u[1],u[4],u[2],u[5])}catch(n){console.error(n)}else{var y=s(o);y&&t(y)}return(0,n.toArray)()}}),699,[700,701]); -__d((function(g,_r,i,_a,m,e,_d){Object.defineProperty(e,"__esModule",{value:!0}),e.append=c,e.appendTransform=function(n,s,M,h,p,l,y,_,P){if(0===n&&0===s&&1===M&&1===h&&0===p&&0===l&&0===y&&0===_&&0===P)return;var b,j;if(p%360){var A=p*t;b=Math.cos(A),j=Math.sin(A)}else b=1,j=0;var I=b*M,O=j*M,T=-j*h,k=b*h;if(l||y){var q=Math.tan(y*t),w=Math.tan(l*t);c(I+w*O,q*I+O,T+w*k,q*T+k,n,s)}else c(I,O,T,k,n,s);(_||P)&&(u-=_*r+P*f,v-=_*a+P*o,d=!1)},e.identity=void 0,e.reset=function(){if(d)return;r=o=1,a=f=u=v=0,d=!0},e.toArray=function(){if(d)return n;return[r,a,f,o,u,v]};var t=Math.PI/180,n=e.identity=[1,0,0,1,0,0],r=1,a=0,f=0,o=1,u=0,v=0,d=!0;function c(t,n,c,s,M,h){var p=1!==t||0!==n||0!==c||1!==s,l=0!==M||0!==h;if(p||l){if(d)return d=!1,r=t,a=n,f=c,o=s,u=M,void(v=h);var y=r,_=a,P=f,b=o;p&&(r=y*t+P*n,a=_*t+b*n,f=y*c+P*s,o=_*c+b*s),l&&(u=y*M+P*h+u,v=_*M+b*h+v)}}}),700,[]); -__d((function(g,_r,_i,_a,m,_e,_d){"use strict";function e(r,n,t,u){this.message=r,this.expected=n,this.found=t,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}!(function(e,r){function n(){this.constructor=e}n.prototype=r.prototype,e.prototype=new n})(e,Error),e.buildMessage=function(e,r){var n={literal:function(e){return"\""+u(e.text)+"\""},class:function(e){var r,n="";for(r=0;r0){for(r=1,t=1;rte&&(te=re,ue=[]),ue.push(e))}function ce(){var e,r,n,t,o;for(e=re,r=[],n=Te();n!==u;)r.push(n),n=Te();if(r!==u)if((n=he())===u&&(n=null),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();t!==u?(e,e=r=f(n)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;return e}function he(){var e,r,n,t;if(e=re,(r=pe())!==u){for(n=[],t=we();t!==u;)n.push(t),t=we();n!==u&&(t=he())!==u?(e,e=r=s(r,t)):(re=e,e=u)}else re=e,e=u;return e===u&&(e=pe()),e}function pe(){var e;return(e=ge())===u&&(e=de())===u&&(e=ve())===u&&(e=Ae())===u&&(e=xe())===u&&(e=Ce()),e}function ge(){var e,n,t,o,i,f,s,A,x,C,y,j,w;if(e=re,r.substr(re,6)===l?(n=l,re+=6):(n=u,0===oe&&ae(a)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u)if(we()!==u)if((s=me())!==u)if(we()!==u)if((A=me())!==u)if(we()!==u)if((x=me())!==u)if(we()!==u)if((C=me())!==u)if(we()!==u)if((y=me())!==u){for(j=[],w=Te();w!==u;)j.push(w),w=Te();j!==u?(41===r.charCodeAt(re)?(w=p,re++):(w=u,0===oe&&ae(d)),w!==u?(e,e=n=v(f,s,A,x,C,y)):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function de(){var e,n,t,o,i,f,s,l,a;if(e=re,r.substr(re,9)===A?(n=A,re+=9):(n=u,0===oe&&ae(x)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u)if((s=ye())===u&&(s=null),s!==u){for(l=[],a=Te();a!==u;)l.push(a),a=Te();l!==u?(41===r.charCodeAt(re)?(a=p,re++):(a=u,0===oe&&ae(d)),a!==u?(e,e=n=C(f,s)):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function ve(){var e,n,t,o,i,f,s,l,a;if(e=re,r.substr(re,5)===y?(n=y,re+=5):(n=u,0===oe&&ae(j)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u)if((s=ye())===u&&(s=null),s!==u){for(l=[],a=Te();a!==u;)l.push(a),a=Te();l!==u?(41===r.charCodeAt(re)?(a=p,re++):(a=u,0===oe&&ae(d)),a!==u?(e,e=n=w(f,s)):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function Ae(){var e,n,t,o,i,f,s,l,a;if(e=re,r.substr(re,6)===b?(n=b,re+=6):(n=u,0===oe&&ae(E)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u)if((s=je())===u&&(s=null),s!==u){for(l=[],a=Te();a!==u;)l.push(a),a=Te();l!==u?(41===r.charCodeAt(re)?(a=p,re++):(a=u,0===oe&&ae(d)),a!==u?(e,e=n=F(f,s)):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function xe(){var e,n,t,o,i,f,s,l;if(e=re,r.substr(re,5)===M?(n=M,re+=5):(n=u,0===oe&&ae(k)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u){for(s=[],l=Te();l!==u;)s.push(l),l=Te();s!==u?(41===r.charCodeAt(re)?(l=p,re++):(l=u,0===oe&&ae(d)),l!==u?(e,e=n=S(f)):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function Ce(){var e,n,t,o,i,f,s,l;if(e=re,r.substr(re,5)===R?(n=R,re+=5):(n=u,0===oe&&ae(I)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u){for(s=[],l=Te();l!==u;)s.push(l),l=Te();s!==u?(41===r.charCodeAt(re)?(l=p,re++):(l=u,0===oe&&ae(d)),l!==u?(e,e=n=T(f)):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function me(){var e,r,n,t;return e=re,r=re,(n=Se())===u&&(n=null),n!==u&&(t=Fe())!==u?r=n=[n,t]:(re=r,r=u),r!==u&&(e,r=X(r)),(e=r)===u&&(e=re,r=re,(n=Se())===u&&(n=null),n!==u&&(t=Ee())!==u?r=n=[n,t]:(re=r,r=u),r!==u&&(e,r=Y(r)),e=r),e}function ye(){var e,r;return e=re,we()!==u&&(r=me())!==u?(e,e=_(r)):(re=e,e=u),e}function je(){var e,r,n;return e=re,we()!==u&&(r=me())!==u&&we()!==u&&(n=me())!==u?(e,e=L(r,n)):(re=e,e=u),e}function we(){var e,r,n,t,o;if(e=re,r=[],(n=Te())!==u)for(;n!==u;)r.push(n),n=Te();else r=u;if(r!==u)if((n=be())===u&&(n=null),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();t!==u?e=r=[r,n,t]:(re=e,e=u)}else re=e,e=u;else re=e,e=u;if(e===u)if(e=re,(r=be())!==u){for(n=[],t=Te();t!==u;)n.push(t),t=Te();n!==u?e=r=[r,n]:(re=e,e=u)}else re=e,e=u;return e}function be(){var e;return 44===r.charCodeAt(re)?(e=P,re++):(e=u,0===oe&&ae(U)),e}function Ee(){var e,r;return e=re,(r=Re())!==u&&(e,r=q(r)),e=r}function Fe(){var e,r,n,t;return e=re,r=re,(n=Me())!==u?((t=ke())===u&&(t=null),t!==u?r=n=[n,t]:(re=r,r=u)):(re=r,r=u),r!==u&&(e,r=z(r)),(e=r)===u&&(e=re,r=re,(n=Re())!==u&&(t=ke())!==u?r=n=[n,t]:(re=r,r=u),r!==u&&(e,r=B(r)),e=r),e}function Me(){var e,n,t,o;return oe++,e=re,(n=Re())===u&&(n=null),n!==u?(46===r.charCodeAt(re)?(t=G,re++):(t=u,0===oe&&ae(H)),t!==u&&(o=Re())!==u?(e,e=n=J(n,o)):(re=e,e=u)):(re=e,e=u),e===u&&(e=re,(n=Re())!==u?(46===r.charCodeAt(re)?(t=G,re++):(t=u,0===oe&&ae(H)),t!==u?(e,e=n=B(n)):(re=e,e=u)):(re=e,e=u)),oe--,e===u&&(n=u,0===oe&&ae(D)),e}function ke(){var e,n,t,o,i;return e=re,n=re,K.test(r.charAt(re))?(t=r.charAt(re),re++):(t=u,0===oe&&ae(N)),t!==u?((o=Se())===u&&(o=null),o!==u&&(i=Re())!==u?n=t=[t,o,i]:(re=n,n=u)):(re=n,n=u),n!==u&&(e,n=O(n)),e=n}function Se(){var e;return Q.test(r.charAt(re))?(e=r.charAt(re),re++):(e=u,0===oe&&ae(V)),e}function Re(){var e,r;if(e=[],(r=Ie())!==u)for(;r!==u;)e.push(r),r=Ie();else e=u;return e}function Ie(){var e;return W.test(r.charAt(re))?(e=r.charAt(re),re++):(e=u,0===oe&&ae(Z)),e}function Te(){var e;return $.test(r.charAt(re))?(e=r.charAt(re),re++):(e=u,0===oe&&ae(ee)),e}var Xe,Ye,Le,Pe=Math.PI/180;if((t=i())!==u&&re===r.length)return t;throw t!==u&&re1?q:j,null!=O&&(Y.bbWidth=O),null!=x&&(Y.bbHeight=x),(0,v.default)(Y,Y,this);var X=(0,y.default)(w);return null!=X&&(Y.color=X,Y.tintColor=X),null!=f&&(Y.onLayout=f),(0,R.jsx)(N.RNSVGSvg,Object.assign({},Y,{ref:this.refMethod},(0,p.default)({viewBox:s,preserveAspectRatio:c}),{children:(0,R.jsx)(b.default,{children:u,style:n,font:A,transform:S,fill:W,fillOpacity:B,fillRule:D,stroke:P,strokeWidth:I,strokeOpacity:_,strokeDasharray:H,strokeDashoffset:V,strokeLinecap:C,strokeLinejoin:G,strokeMiterlimit:U})}))}}]),A})(k.default);x.displayName='Svg',x.defaultProps={preserveAspectRatio:'xMidYMid meet'}}),712,[2,6,4,21,22,13,17,19,16,30,39,702,713,695,689,714,704,211]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.alignEnum=void 0,e.default=function(l){var x=l.viewBox,o=l.preserveAspectRatio;if(!x)return null;var u=(Array.isArray(x)?x:x.trim().split(M)).map(Number);if(4!==u.length||u.some(isNaN))return console.warn('Invalid `viewBox` prop:'+x),null;var s=o?o.trim().split(M):[],v=s[0],c=s[1];return{minX:u[0],minY:u[1],vbWidth:u[2],vbHeight:u[3],align:t[v]||'xMidYMid',meetOrSlice:n[c]||0}},e.meetOrSliceTypes=void 0;var n=e.meetOrSliceTypes={meet:0,slice:1,none:2},t=e.alignEnum=['xMinYMin','xMidYMin','xMaxYMin','xMinYMid','xMidYMid','xMaxYMid','xMinYMax','xMidYMax','xMaxYMax','none'].reduce((function(n,t){return n[t]=t,n}),{}),M=/\s+/}),713,[]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),r=t(_r(d[2])),n=t(_r(d[3])),o=t(_r(d[4])),u=t(_r(d[5])),a=(t(_r(d[6])),(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=p(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var a=o?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=t[u]}return n.default=t,r&&r.set(t,n),n})(_r(d[7]))),f=_r(d[8]),c=t(_r(d[9])),i=t(_r(d[10])),l=_r(d[11]),s=_r(d[12]);function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(p=function(t){return t?r:e})(t)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var y=_e.default=(function(t){(0,n.default)(O,t);var i,p,y=(i=O,p=v(),function(){var t,e=(0,u.default)(i);if(p){var r=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function O(){var t;(0,e.default)(this,O);for(var r=arguments.length,n=new Array(r),o=0;o1||Array.isArray(s)?e.Children.map(s,h):s;return{content:null===x?String(s):null,children:x,inlineSize:p,baselineShift:y,verticalAlign:b,alignmentBaseline:v,font:S(t),x:(0,n.default)(a),y:(0,n.default)(l),dx:(0,n.default)(f),dy:(0,n.default)(u),rotate:(0,n.default)(c)}},_e.extractFont=S,_e.setTSpan=function(t){o=t};var e=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=i?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r})(_r(d[1])),n=t(_r(d[2])),r=_r(d[3]),i=_r(d[4]);function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var o,l=/^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?(?:%|px|em|pt|pc|mm|cm|in]))*(?:\s*\/.*?)?\s+)?\s*"?([^"]*)/i,f=/^[\s"']*/,u=/[\s"']*$/,c=/\s*,\s*/g,s={};function p(t){return t?t.split(c)[0].replace(f,'').replace(u,''):null}function y(t){if(s.hasOwnProperty(t))return s[t];var e=l.exec(t);if(!e)return s[t]=null,null;var n=/bold/.exec(e[1]),r=/italic/.exec(e[1]);return s[t]={fontSize:e[2]||12,fontWeight:n?'bold':'normal',fontStyle:r?'italic':'normal',fontFamily:p(e[3])},s[t]}function S(t){var e=t.fontData,n=t.fontStyle,i=t.fontVariant,a=t.fontWeight,o=t.fontStretch,l=t.fontSize,f=t.fontFamily,u=t.textAnchor,c=t.textDecoration,s=t.letterSpacing,S=t.wordSpacing,h=t.kerning,b=t.fontFeatureSettings,v=t.fontVariantLigatures,x=t.fontVariationSettings,O=t.font,j=(0,r.pickNotNil)({fontData:e,fontStyle:n,fontVariant:i,fontWeight:a,fontStretch:o,fontSize:l,fontFamily:p(f),textAnchor:u,textDecoration:c,letterSpacing:s,wordSpacing:S,kerning:h,fontFeatureSettings:b,fontVariantLigatures:v,fontVariationSettings:x}),_='string'==typeof O?y(O):O;return Object.assign({},_,j)}function h(t){return'string'==typeof t||'number'==typeof t?(0,i.jsx)(o,{children:String(t)}):t}}),715,[2,30,698,703,211]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),r=t(_r(d[2])),n=t(_r(d[3])),a=t(_r(d[4])),u=t(_r(d[5])),o=(t(_r(d[6])),t(_r(d[7]))),f=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=v(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var o=a?Object.getOwnPropertyDescriptor(t,u):null;o&&(o.get||o.set)?Object.defineProperty(n,u,o):n[u]=t[u]}return n.default=t,r&&r.set(t,n),n})(_r(d[8])),l=t(_r(d[9])),c=_r(d[10]),i=t(_r(d[11]));_r(d[12]);var s=_r(d[13]),p=_r(d[14]);function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(v=function(t){return t?r:e})(t)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var h=_e.default=(function(t){(0,n.default)(O,t);var i,v,h=(i=O,v=y(),function(){var t,e=(0,u.default)(i);if(v){var r=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,a.default)(this,t)});function O(){var t;(0,e.default)(this,O);for(var r=arguments.length,n=new Array(r),a=0;a=i))break;a-=i}var l=t.slice(0,e).replace(/^\t+/,Q),o=/(^|\n).*$/.exec(l),f=o&&o[0]||'',c=t.slice(e),s=/.*(\n|$)/.exec(c);return{line:u,column:a,snippet:`${f}${s&&s[0]}\n${L(' ',f.length)}^`}}var tt=/[a-zA-Z0-9:_-]/,et=/[\s\t\r\n]/,rt=/['"]/;function nt(t,e){var r,n=t.length,a=null,u=function(){for(;k+1'!==t[k]&&o('Expected >'),O||(a=b,i=b.children,l.push(b)),f}function s(){var e=t.indexOf('--\x3e',k);return~e||o('expected --\x3e'),k=e+2,f}function p(){var e=t.indexOf(']]>',k);return~e||o('expected ]]>'),i.push(t.slice(k+7,e)),k=e+2,f}function v(){var e=h();(e||o('Expected tag name'),a&&e!==a.tag&&o(`Expected closing tag to match opening tag <${a.tag}>`),'>'!==t[k]&&o('Expected >'),l.pop(),a=l[l.length-1])&&(i=a.children);return f}function h(){for(var e,r='';k'===r||'/'===r)return e;e+=r,k+=1}while(k-1;){for(t=r=e[a],delete e[a],n=!0;r;){if(e.includes(r)){n=!1,e.splice(a,1);break}r='object'==typeof r&&r.parent||null}n&&(e[a]=t)}return e},existsOne:function e(t,r){return r.some((function(r){return'object'==typeof r&&(t(r)||e(t,r.children))}))},getSiblings:function(e){var t='object'==typeof e&&e.parent;return t&&t.children||[]},hasAttrib:function(e,t){return e.props.hasOwnProperty(t)},findOne:function e(t,r){for(var n,a=0,i=r.length;a2&&void 0!==arguments[2]?arguments[2]:[],a=0,i=r.length;at[r])return 1}return 0}function E(e){return{selector:e,specificity:M(e.item.data)}}function _(e,t,r,n){var a,i,o,u,l,s,c,f=2*r,p=0;for(a=0;at&&(i=t),o>t&&(o=t),u=a,l=i;;)if(u element, skipped. Error details: '+e)}}var o=C(j(r));A(o);var u=R(o).reverse(),l=function(){if(null===p)return 0;var t=c.default.generate(v.data);try{var r=k(t,e).map(L);if(0===r.length)return 0;c.default.walk(p,{visit:'Declaration',enter:function(e){var t=e,n=t.property,a=t.value,i=t.important,o=n.trim(),u=(0,s.camelCase)(o),l=c.default.generate(a).trim();for(var f of r){var p=f.style,v=f.priority,h=v.get(o);(void 0===h||h100&&(p=l-60+3,l=58);for(var v=c;v<=f;v++)v>=0&&v0&&u[v].length>p?"\u2026":'')+u[v].substr(p,98)+(u[v].length>p+100-1?"\u2026":''));return[i(c,s),new Array(l+h+2).join('-')+'^',i(s,f)].filter(Boolean).join('\n')}m.exports=function(t,i,u,s,l){var c=n('SyntaxError',t);return c.source=i,c.offset=u,c.line=s,c.column=l,c.sourceFragment=function(n){return o(c,isNaN(n)?0:n)},Object.defineProperty(c,'formattedMessage',{get:function(){return'Parse error: '+c.message+'\n'+o(c,2)}}),c.parseError={offset:u,line:s,column:l},c}}),739,[740]); -__d((function(g,r,i,a,m,e,d){m.exports=function(t,n){var c=Object.create(SyntaxError.prototype),o=new Error;return c.name=t,c.message=n,Object.defineProperty(c,'stack',{get:function(){return(o.stack||'').replace(/^(.+\n){1,3}/,t+': '+n+'\n')}}),c}}),740,[]); -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]),n=t.TYPE,s=t.NAME,o=r(d[1]).cmpStr,i=n.EOF,h=n.WhiteSpace,f=n.Comment,u=16777215,k=24,c=function(){this.offsetAndType=null,this.balance=null,this.reset()};c.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(t){return(t+=this.tokenIndex)>k:i},lookupOffset:function(t){return(t+=this.tokenIndex)0?t>k,this.source,i)){case 1:break t;case 2:o++;break t;default:this.balance[s]===o&&(o=s),i=this.offsetAndType[o]&u}return o-this.tokenIndex},isBalanceEdge:function(t){return this.balance[this.tokenIndex]>k===h;t++,n++);n>0&&this.skip(n)},skipSC:function(){for(;this.tokenType===h||this.tokenType===f;)this.next()},skip:function(t){var n=this.tokenIndex+t;n>k,this.tokenEnd=n&u):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var t=this.tokenIndex+1;t>k,this.tokenEnd=t&u):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=i,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(t){for(var n=0,s=this.firstCharOffset;n>k,o,h,n)}},dump:function(){var t=this,n=new Array(this.tokenCount);return this.forEachToken((function(o,i,h,f){n[f]={idx:f,type:s[o],chunk:t.source.substring(i,h),balance:t.balance[f]}})),n}},m.exports=c}),741,[742,743]); -__d((function(g,r,i,a,m,e,d){var t={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},n=Object.keys(t).reduce((function(n,c){return n[t[c]]=c,n}),{});m.exports={TYPE:t,NAME:n}}),742,[]); -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]),n=t.isDigit,c=t.isHexDigit,o=t.isUppercaseLetter,i=t.isName,u=t.isWhiteSpace,h=t.isValidEscape;function f(t,n){return nt.length)return!1;for(var u=n;u=0&&u(t.charCodeAt(n));n--);return n+1},findWhiteSpaceEnd:function(t,n){for(;n=48&&t<=57}function i(t){return t>=65&&t<=90}function u(t){return t>=97&&t<=122}function c(t){return i(t)||u(t)}function o(t){return t>=128}function s(t){return c(t)||o(t)||95===t}function f(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t}function N(t){return 10===t||13===t||12===t}function S(t){return N(t)||32===t||9===t}function b(n,i){return 92===n&&(!N(i)&&i!==t)}var l=new Array(128);h.Eof=128,h.WhiteSpace=130,h.Digit=131,h.NameStart=132,h.NonPrintable=133;for(var p=0;p=65&&t<=70||t>=97&&t<=102},isUppercaseLetter:i,isLowercaseLetter:u,isLetter:c,isNonAscii:o,isNameStart:s,isName:function(t){return s(t)||n(t)||45===t},isNonPrintable:f,isNewline:N,isWhiteSpace:S,isValidEscape:b,isIdentifierStart:function(t,n,i){return 45===t?s(n)||45===n||b(n,i):!!s(t)||92===t&&b(t,n)},isNumberStart:function(t,i,u){return 43===t||45===t?n(i)?2:46===i&&n(u)?3:0:46===t?n(i)?2:0:n(t)?1:0},isBOM:function(t){return 65279===t||65534===t?1:0},charCodeCategory:h}}),744,[]); -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]),n=r(d[1]).SyntaxReferenceError,i=r(d[1]).SyntaxMatchError,s=r(d[2]),o=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]),l=r(d[7]),h=r(d[8]).buildMatchGraph,y=r(d[9]).matchAsTree,f=r(d[10]),v=r(d[11]),w=r(d[12]).getStructureFromConfig,x=h('inherit | initial | unset'),A=h('inherit | initial | unset | <-ms-legacy-expression>');function P(t,n,i){var s={};for(var o in t)t[o].syntax&&(s[o]=i?t[o].syntax:c(t[o].syntax,{compact:n}));return s}function k(n,i,s){var o={};for(var u of Object.entries(n)){var p=t(u,2),l=p[0],h=p[1];o[l]={prelude:h.prelude&&(s?h.prelude.syntax:c(h.prelude.syntax,{compact:i})),descriptors:h.descriptors&&P(h.descriptors,i,s)}}return o}function D(t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:null,syntax:null,match:null};return'function'==typeof t?o.match=h(t,s):('string'==typeof t?Object.defineProperty(o,'syntax',{get:function(){return Object.defineProperty(o,'syntax',{value:u(t)}),o.syntax}}):o.syntax=t,Object.defineProperty(o,'match',{get:function(){return Object.defineProperty(o,'match',{value:h(o.syntax,s)}),o.match}})),o},addAtrule_:function(t,n){var i=this;n&&(this.atrules[t]={type:'Atrule',name:t,prelude:n.prelude?this.createDescriptor(n.prelude,'AtrulePrelude',t):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce((function(s,o){return s[o]=i.createDescriptor(n.descriptors[o],'AtruleDescriptor',o,t),s}),{}):null})},addProperty_:function(t,n){n&&(this.properties[t]=this.createDescriptor(n,'Property',t))},addType_:function(t,n){n&&(this.types[t]=this.createDescriptor(n,'Type',t),n===o['-ms-legacy-expression']&&(this.valueCommonSyntax=A))},checkAtruleName:function(t){if(!this.getAtrule(t))return new n('Unknown at-rule','@'+t)},checkAtrulePrelude:function(t,n){var i=this.checkAtruleName(t);if(i)return i;var s=this.getAtrule(t);return!s.prelude&&n?new SyntaxError('At-rule `@'+t+'` should not contain a prelude'):s.prelude&&!n?new SyntaxError('At-rule `@'+t+'` should contain a prelude'):void 0},checkAtruleDescriptorName:function(t,i){var o=this.checkAtruleName(t);if(o)return o;var u=this.getAtrule(t),c=s.keyword(i);return u.descriptors?u.descriptors[c.name]||u.descriptors[c.basename]?void 0:new n('Unknown at-rule descriptor',i):new SyntaxError('At-rule `@'+t+'` has no known descriptors')},checkPropertyName:function(t){return s.property(t).custom?new Error('Lexer matching doesn\'t applicable for custom properties'):this.getProperty(t)?void 0:new n('Unknown property',t)},matchAtrulePrelude:function(t,n){var i=this.checkAtrulePrelude(t,n);return i?T(null,i):n?b(this,this.getAtrule(t).prelude,n,!1):T(null,null)},matchAtruleDescriptor:function(t,n,i){var o=this.checkAtruleDescriptorName(t,n);if(o)return T(null,o);var u=this.getAtrule(t),c=s.keyword(n);return b(this,u.descriptors[c.name]||u.descriptors[c.basename],i,!1)},matchDeclaration:function(t){return'Declaration'!==t.type?T(null,new Error('Not a Declaration node')):this.matchProperty(t.property,t.value)},matchProperty:function(t,n){var i=this.checkPropertyName(t);return i?T(null,i):b(this,this.getProperty(t),n,!0)},matchType:function(t,i){var s=this.getType(t);return s?b(this,s,i,!1):T(null,new n('Unknown type',t))},match:function(t,i){return'string'==typeof t||t&&t.type?('string'!=typeof t&&t.match||(t=this.createDescriptor(t,'Type','anonymous')),b(this,t,i,!1)):T(null,new n('Bad syntax'))},findValueFragments:function(t,n,i,s){return v.matchFragments(this,n,this.matchProperty(t,n),i,s)},findDeclarationValueFragments:function(t,n,i){return v.matchFragments(this,t.value,this.matchDeclaration(t),n,i)},findAllFragments:function(t,n,i){var s=[];return this.syntax.walk(t,{visit:'Declaration',enter:function(t){s.push.apply(s,this.findDeclarationValueFragments(t,n,i))}.bind(this)}),s},getAtrule:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=s.keyword(t);return(i.vendor&&n?this.atrules[i.name]||this.atrules[i.basename]:this.atrules[i.name])||null},getAtrulePrelude:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.getAtrule(t,n);return i&&i.prelude||null},getAtruleDescriptor:function(t,n){return this.atrules.hasOwnProperty(t)&&this.atrules.declarators&&this.atrules[t].declarators[n]||null},getProperty:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=s.property(t);return(i.vendor&&n?this.properties[i.name]||this.properties[i.basename]:this.properties[i.name])||null},getType:function(t){return this.types.hasOwnProperty(t)?this.types[t]:null},validate:function(){function t(s,o,u,c){if(u.hasOwnProperty(o))return u[o];u[o]=!1,null!==c.syntax&&p(c.syntax,(function(c){if('Type'===c.type||'Property'===c.type){var p='Type'===c.type?s.types:s.properties,l='Type'===c.type?n:i;p.hasOwnProperty(c.name)&&!t(s,c.name,l,p[c.name])||(u[o]=!0)}}),this)}var n={},i={};for(var s in this.types)t(this,s,n,this.types[s]);for(var s in this.properties)t(this,s,i,this.properties[s]);return n=Object.keys(n).filter((function(t){return n[t]})),i=Object.keys(i).filter((function(t){return i[t]})),n.length||i.length?{types:n,properties:i}:null},dump:function(t,n){return{generic:this.generic,types:P(this.types,!n,t),properties:P(this.properties,!n,t),atrules:k(this.atrules,!n,t)}},toString:function(){return JSON.stringify(this.dump())}},m.exports=O}),745,[23,746,748,749,754,747,757,758,759,760,761,762,763]); -__d((function(g,r,_i,a,m,e,d){var n=r(d[0]),t=r(d[1]),s={offset:0,line:1,column:1};function l(n,t){for(var l,f,i=n.tokens,u=n.longestMatch,h=u1?(l=c(v||t,'end')||o(s,O),f=o(l)):(l=c(v,'start')||o(c(t,'start')||s,O.slice(0,y)),f=c(v,'end')||o(l,O.substr(y,x))),{css:O,mismatchOffset:y,mismatchLength:x,start:l,end:f}}function c(n,t){var s=n&&n.loc&&n.loc[t];return s?'line'in s?o(s):s:null}function o(n,t){var s={offset:n.offset,line:n.line,column:n.column};if(t){var l=t.split(/\n|\r\n?|\f/);s.offset+=t.length,s.line+=l.length-1,s.column=1===l.length?s.column+t.length:l.pop().length+1}return s}m.exports={SyntaxReferenceError:function(t,s){var l=n('SyntaxReferenceError',t+(s?' `'+s+'`':''));return l.reference=s,l},SyntaxMatchError:function(s,c,o,f){var i=n('SyntaxMatchError',s),u=l(f,o),h=u.css,v=u.mismatchOffset,y=u.mismatchLength,x=u.start,p=u.end;return i.rawMessage=s,i.syntax=c?t(c):'',i.css=h,i.mismatchOffset=v,i.mismatchLength=y,i.message=s+"\n syntax: "+i.syntax+"\n value: "+(h||'')+"\n --------"+new Array(i.mismatchOffset+1).join('-')+'^',Object.assign(i,x),i.loc={source:o&&o.loc&&o.loc.source||'',start:x,end:p},i}}}),746,[740,747]); -__d((function(g,r,i,a,m,e,d){function n(n){return n}function o(n){if('Range'===n.type)return' ['+(null===n.min?'-\u221e':n.min)+','+(null===n.max?'\u221e':n.max)+']';throw new Error('Unknown node type `'+n.type+'`')}function t(n,o,t,u){var p=' '===n.combinator||u?n.combinator:' '+n.combinator+' ',s=n.terms.map((function(n){return c(n,o,t,u)})).join(p);return(n.explicit||t)&&(s=(u||','===s[0]?'[':'[ ')+s+(u?']':' ]')),s}function c(n,u,p,s){var f,l;switch(n.type){case'Group':f=t(n,u,p,s)+(n.disallowEmpty?'!':'');break;case'Multiplier':return c(n.term,u,p,s)+u(0===(l=n).min&&0===l.max?'*':0===l.min&&1===l.max?'?':1===l.min&&0===l.max?l.comma?'#':'+':1===l.min&&1===l.max?'':(l.comma?'#':'')+(l.min===l.max?'{'+l.min+'}':'{'+l.min+','+(0!==l.max?l.max:'')+'}'),n);case'Type':f='<'+n.name+(n.opts?u(o(n.opts),n.opts):'')+'>';break;case'Property':f='<\''+n.name+'\'>';break;case'Keyword':f=n.name;break;case'AtKeyword':f='@'+n.name;break;case'Function':f=n.name+'(';break;case'String':case'Token':f=n.value;break;case'Comma':f=',';break;default:throw new Error('Unknown node type `'+n.type+'`')}return u(f,n)}m.exports=function(o,t){var u=n,p=!1,s=!1;return'function'==typeof t?u=t:t&&(p=Boolean(t.forceBraces),s=Boolean(t.compact),'function'==typeof t.decorate&&(u=t.decorate)),c(o,u,p,s)}}),747,[]); -__d((function(g,r,i,a,m,e,d){var t=Object.prototype.hasOwnProperty,n=Object.create(null),o=Object.create(null),u=45;function c(t,n){return n=n||0,t.length-n>=2&&t.charCodeAt(n)===u&&t.charCodeAt(n+1)===u}function l(t,n){if(n=n||0,t.length-n>=3&&t.charCodeAt(n)===u&&t.charCodeAt(n+1)!==u){var o=t.indexOf('-',n+2);if(-1!==o)return t.substring(n,o+1)}return''}m.exports={keyword:function(o){if(t.call(n,o))return n[o];var u=o.toLowerCase();if(t.call(n,u))return n[o]=n[u];var s=c(u,0),f=s?'':l(u,0);return n[o]=Object.freeze({basename:u.substr(f.length),name:u,vendor:f,prefix:f,custom:s})},property:function(n){if(t.call(o,n))return o[n];var u=n,s=n[0];'/'===s?s='/'===n[1]?'//':'/':'_'!==s&&'*'!==s&&'$'!==s&&'#'!==s&&'+'!==s&&'&'!==s&&(s='');var f=c(u,s.length);if(!f&&(u=u.toLowerCase(),t.call(o,u)))return o[n]=o[u];var h=f?'':l(u,s.length),b=u.substr(0,s.length+h.length);return o[n]=Object.freeze({basename:u.substr(b.length),name:u.substr(s.length),hack:s,vendor:h,prefix:b,custom:f})},isCustomProperty:c,vendorPrefix:l}}),748,[]); -__d((function(g,r,_i,a,m,e,d){var n,t=r(d[0]),u=t.isIdentifierStart,i=t.isHexDigit,l=t.isDigit,o=t.cmpStr,c=t.consumeNumber,s=t.TYPE,f=r(d[1]),h=r(d[2]),v=['unset','initial','inherit'],k=['calc(','-moz-calc(','-webkit-calc('];function b(n,t){return tn.max)return!0}return!1}function B(n,t){var u=n.index,i=0;do{if(i++,n.balance<=u)break}while(n=t(i));return i}function S(n){return function(t,u,i){return null===t?0:t.type===s.Function&&y(t.value,k)?B(t,u):n(t,u,i)}}function w(n){return function(t){return null===t||t.type!==n?0:1}}function D(n){return function(t,u,i){if(null===t||t.type!==s.Dimension)return 0;var l=c(t.value,0);if(null!==n){var o=t.value.indexOf('\\',l),f=-1!==o&&C(t.value,o)?t.value.substring(l,o):t.value.substr(l);if(!1===n.hasOwnProperty(f.toLowerCase()))return 0}return x(i,t.value,l)?0:1}}function R(n){return'function'!=typeof n&&(n=function(){return 0}),function(t,u,i){return null!==t&&t.type===s.Number&&0===Number(t.value)?1:n(t,u,i)}}m.exports={'ident-token':w(s.Ident),'function-token':w(s.Function),'at-keyword-token':w(s.AtKeyword),'hash-token':w(s.Hash),'string-token':w(s.String),'bad-string-token':w(s.BadString),'url-token':w(s.Url),'bad-url-token':w(s.BadUrl),'delim-token':w(s.Delim),'number-token':w(s.Number),'percentage-token':w(s.Percentage),'dimension-token':w(s.Dimension),'whitespace-token':w(s.WhiteSpace),'CDO-token':w(s.CDO),'CDC-token':w(s.CDC),'colon-token':w(s.Colon),'semicolon-token':w(s.Semicolon),'comma-token':w(s.Comma),'[-token':w(s.LeftSquareBracket),']-token':w(s.RightSquareBracket),'(-token':w(s.LeftParenthesis),')-token':w(s.RightParenthesis),'{-token':w(s.LeftCurlyBracket),'}-token':w(s.RightCurlyBracket),string:w(s.String),ident:w(s.Ident),'custom-ident':function(n){if(null===n||n.type!==s.Ident)return 0;var t=n.value.toLowerCase();return y(t,v)||p(t,'default')?0:1},'custom-property-name':function(n){return null===n||n.type!==s.Ident||45!==b(n.value,0)||45!==b(n.value,1)?0:1},'hex-color':function(n){if(null===n||n.type!==s.Hash)return 0;var t=n.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(var u=1;un.index||n.balancen.index||n.balance=n.length?void(x>O,q[F]=_,q[_++]=F;_0?6:0;if(!n(c))return 0;if(++o>6)return 0}return o}function h(n,t,u){if(!n)return 0;for(;v(u(t),63);){if(++n>6)return 0;t++}return t}m.exports=function(n,u){var l=0;if(null===n||n.type!==f||!t(n.value,0,117))return 0;if(null===(n=u(++l)))return 0;if(v(n,43))return null===(n=u(++l))?0:n.type===f?h(y(n,0,!0),++l,u):v(n,63)?h(1,++l,u):0;if(n.type===o){if(!p(n,43))return 0;var C=y(n,1,!0);return 0===C?0:null===(n=u(++l))?l:n.type===c||n.type===o?p(n,45)&&y(n,1,!1)?l+1:0:h(C,l,u)}return n.type===c&&p(n,43)?h(y(n,1,!0),++l,u):0}}),753,[750]); -__d((function(g,r,_i,_a,m,e,d){var t=r(d[0]),n=9,a=10,o=12,s=13,u=32,c=33,p=35,i=38,l=39,f=40,h=41,y=42,C=43,b=44,v=45,x=60,k=62,w=63,A=64,E=91,T=93,P=123,U=124,N=125,S=8734,G=(function(t){for(var n='function'==typeof Uint32Array?new Uint32Array(128):new Array(128),a=0;a<128;a++)n[a]=t(String.fromCharCode(a))?1:0;return n})((function(t){return/[a-zA-Z0-9\-]/.test(t)})),K={' ':1,'&&':2,'||':3,'|':4};function O(t){return t.substringToPos(t.findWsEnd(t.pos))}function W(t){for(var n=t.pos;n=128||0===G[a])break}return t.pos===n&&t.error('Expect a keyword'),t.substringToPos(n)}function _(t){for(var n=t.pos;n57)break}return t.pos===n&&t.error('Expect a number'),t.substringToPos(n)}function j(t){var n=t.str.indexOf('\'',t.pos+1);return-1===n&&(t.pos=t.str.length,t.error('Expect an apostrophe')),t.substringToPos(n+1)}function z(t){var n,a=null;return t.eat(P),n=_(t),t.charCode()===b?(t.pos++,t.charCode()!==N&&(a=_(t))):a=n,t.eat(N),{min:Number(n),max:a?Number(a):0}}function F(t){var n=null,a=!1;switch(t.charCode()){case y:t.pos++,n={min:0,max:0};break;case C:t.pos++,n={min:1,max:0};break;case w:t.pos++,n={min:0,max:1};break;case p:t.pos++,a=!0,n=t.charCode()===P?z(t):{min:1,max:0};break;case P:n=z(t);break;default:return null}return{type:'Multiplier',comma:a,min:n.min,max:n.max,term:null}}function M(t,n){var a=F(t);return null!==a?(a.term=n,a):n}function R(t){var n=t.peek();return''===n?null:{type:'Token',value:n}}function Z(t){var n;return t.eat(x),t.eat(l),n=W(t),t.eat(l),t.eat(k),M(t,{type:'Property',name:n})}function q(t){var n=null,a=null,o=1;return t.eat(E),t.charCode()===v&&(t.peek(),o=-1),-1==o&&t.charCode()===S?t.peek():n=o*Number(_(t)),O(t),t.eat(b),O(t),t.charCode()===S?t.peek():(o=1,t.charCode()===v&&(t.peek(),o=-1),a=o*Number(_(t))),t.eat(T),null===n&&null===a?null:{type:'Range',min:n,max:a}}function B(t){var n,a=null;return t.eat(x),n=W(t),t.charCode()===f&&t.nextCharCode()===h&&(t.pos+=2,n+='()'),t.charCodeAt(t.findWsEnd(t.pos))===E&&(O(t),a=q(t)),t.eat(k),M(t,{type:'Type',name:n,opts:a})}function D(t){var n;return n=W(t),t.charCode()===f?(t.pos++,{type:'Function',name:n}):M(t,{type:'Keyword',name:n})}function H(t,n){function a(t,n){return{type:'Group',terms:t,combinator:n,disallowEmpty:!1,explicit:!1}}for(n=Object.keys(n).sort((function(t,n){return K[t]-K[n]}));n.length>0;){for(var o=n.shift(),s=0,u=0;s1&&(t.splice(u,s-u,a(t.slice(u,s),o)),s=u+1),u=-1))}-1!==u&&n.length&&t.splice(u,s-u,a(t.slice(u,s),o))}return o}function I(t){for(var n,a=[],o={},s=null,u=t.pos;n=L(t);)'Spaces'!==n.type&&('Combinator'===n.type?(null!==s&&'Combinator'!==s.type||(t.pos=u,t.error('Unexpected combinator')),o[n.value]=!0):null!==s&&'Combinator'!==s.type&&(o[' ']=!0,a.push({type:'Combinator',value:' '})),a.push(n),s=n,u=t.pos);return null!==s&&'Combinator'===s.type&&(t.pos-=u,t.error('Unexpected combinator')),{type:'Group',terms:a,combinator:H(a,o)||' ',disallowEmpty:!1,explicit:!1}}function J(t){var n;return t.eat(E),n=I(t),t.eat(T),n.explicit=!0,t.charCode()===c&&(t.pos++,n.disallowEmpty=!0),n}function L(t){var f=t.charCode();if(f<128&&1===G[f])return D(t);switch(f){case T:break;case E:return M(t,J(t));case x:return t.nextCharCode()===l?Z(t):B(t);case U:return{type:'Combinator',value:t.substringToPos(t.nextCharCode()===U?t.pos+2:t.pos+1)};case i:return t.pos++,t.eat(i),{type:'Combinator',value:'&&'};case b:return t.pos++,{type:'Comma'};case l:return M(t,{type:'String',value:j(t)});case u:case n:case a:case s:case o:return{type:'Spaces',value:O(t)};case A:return(f=t.nextCharCode())<128&&1===G[f]?(t.pos++,{type:'AtKeyword',name:W(t)}):R(t);case y:case C:case w:case p:case c:break;case P:if((f=t.nextCharCode())<48||f>57)return R(t);break;default:return R(t)}}function Q(n){var a=new t(n),o=I(a);return a.pos!==n.length&&a.error('Unexpected input'),1===o.terms.length&&'Group'===o.terms[0].type&&(o=o.terms[0]),o}Q('[a&&#|<\'c\'>*||e() f{2} /,(% g#{1,2} h{2,})]!'),m.exports=Q}),754,[755]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]),s=function(t){this.str=t,this.pos=0};s.prototype={charCodeAt:function(t){return t2&&t.charCodeAt(t.length-2)===o&&t.charCodeAt(t.length-1)===l}function s(t){return'Keyword'===t.type||'AtKeyword'===t.type||'Function'===t.type||'Type'===t.type&&p(t.name)}function i(t,y,o){switch(t){case' ':for(var l=n,h=y.length-1;h>=0;h--){l=c(w=y[h],l,u)}return l;case'|':l=u;var f=null;for(h=y.length-1;h>=0;h--){if(s(w=y[h])&&(null===f&&h>0&&s(y[h-1])&&(l=c({type:'Enum',map:f=Object.create(null)},n,l)),null!==f)){var v=(p(w.name)?w.name.slice(0,-1):w.name).toLowerCase();if(v in f==!1){f[v]=w;continue}}f=null,l=c(w,n,l)}return l;case'&&':if(y.length>5)return{type:'MatchOnce',terms:y,all:!0};for(l=u,h=y.length-1;h>=0;h--){var w=y[h];x=y.length>1?i(t,y.filter((function(t){return t!==w})),!1):n,l=c(w,x,l)}return l;case'||':if(y.length>5)return{type:'MatchOnce',terms:y,all:!1};for(l=o?n:u,h=y.length-1;h>=0;h--){var x;w=y[h];x=y.length>1?i(t,y.filter((function(t){return t!==w})),!0):n,l=c(w,x,l)}return l}}function h(t){var o=n,l=f(t.term);if(0===t.max)l=c(l,y,u),(o=c(l,null,u)).then=c(n,n,o),t.comma&&(o.then.else=c({type:'Comma',syntax:t},o,u));else for(var p=t.min||1;p<=t.max;p++)t.comma&&o!==n&&(o=c({type:'Comma',syntax:t},o,u)),o=c(l,c(n,n,o),u);if(0===t.min)o=c(n,n,o);else for(p=0;p=65&&c<=90&&(c|=32),c!==n.charCodeAt(l))return!1}return!0}function M(t){return t.type===s.Delim&&'?'!==t.value}function w(t){return null===t||(t.type===s.Comma||t.type===s.Function||t.type===s.LeftParenthesis||t.type===s.LeftSquareBracket||t.type===s.LeftCurlyBracket||M(t))}function C(t){return null===t||(t.type===s.RightParenthesis||t.type===s.RightSquareBracket||t.type===s.RightCurlyBracket||t.type===s.Delim)}function A(n,b,M){function A(){do{G++,F=GH&&(H=G)}function E(){N=N.type===h?N.prev:{type:p,syntax:P.syntax,token:N.token,prev:N},P=P.prev}var P=null,R=null,D=null,K=null,_=0,q=null,F=null,G=-1,H=0,N={type:o,syntax:null,token:null,prev:null};for(A();null===q&&++_D.tokenIndex)&&(D=K,K=!1);else if(null===D){q=f;break}b=D.nextState,R=D.thenStack,P=D.syntaxStack,N=D.matchStack,G=D.tokenIndex,F=GG){for(;G':'<\''+b.name+'\'>'));if(!1!==K&&null!==F&&'Type'===b.type)if('custom-ident'===b.name&&F.type===s.Ident||'length'===b.name&&'0'===F.value){null===K&&(K=T(b,D)),b=c;break}P={syntax:b.syntax,opts:b.syntax.opts||null!==P&&P.opts||null,prev:P},N={type:h,syntax:b.syntax,token:N.token,prev:N},b=z.match;break;case'Keyword':var J=b.name;if(null!==F){var Q=F.value;if(-1!==Q.indexOf('\\')&&(Q=Q.replace(/\\[09].*$/,'')),S(Q,J)){L(),b=l;break}}b=c;break;case'AtKeyword':case'Function':if(null!==F&&S(F.value,b.name)){L(),b=l;break}b=c;break;case'Token':if(null!==F&&F.value===b.value){L(),b=l;break}b=c;break;case'Comma':null!==F&&F.type===s.Comma?w(N.token)?b=c:(L(),b=C(F)?c:l):b=w(N.token)||C(F)?l:c;break;case'String':var V='';for(j=G;j=0}function i(n){return Boolean(n)&&o(n.offset)&&o(n.line)&&o(n.column)}function l(o,l){return function(f,c){if(!f||f.constructor!==Object)return c(f,'Type of node should be an Object');for(var s in f){var u=!0;if(!1!==t.call(f,s)){if('type'===s)f.type!==o&&c(f,'Wrong node type `'+f.type+'`, expected `'+o+'`');else if('loc'===s){if(null===f.loc)continue;if(f.loc&&f.loc.constructor===Object)if('string'!=typeof f.loc.source)s+='.source';else if(i(f.loc.start)){if(i(f.loc.end))continue;s+='.end'}else s+='.start';u=!1}else if(l.hasOwnProperty(s)){var p=0;for(u=!1;!u&&p');else{if(!Array.isArray(v))throw new Error('Wrong value `'+v+'` in `'+n+'.'+s+'` structure definition');u.push('List')}}c[s]=u.join(' | ')}return{docs:c,check:l(n,f)}}m.exports={getStructureFromConfig:function(n){var o={};if(n.node)for(var i in n.node)if(t.call(n.node,i)){var l=n.node[i];if(!l.structure)throw new Error('Missed `structure` field in `'+i+'` node type definition');o[i]=f(i,l)}return o}}}),763,[738]); -__d((function(g,r,i,a,m,e,d){m.exports={SyntaxError:r(d[0]),parse:r(d[1]),generate:r(d[2]),walk:r(d[3])}}),764,[756,754,747,757]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]),n=r(d[1]),t=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]),u=r(d[6]),l=u.findWhiteSpaceStart,p=u.cmpStr,f=r(d[7]),h=function(){},P=c.TYPE,k=c.NAME,v=P.WhiteSpace,x=P.Comment,w=P.Ident,E=P.Function,L=P.Url,y=P.Hash,S=P.Percentage,T=P.Number;function C(e){return function(){return this[e]()}}function M(e){var n={context:{},scope:{},atrule:{},pseudo:{}};if(e.parseContext)for(var t in e.parseContext)switch(typeof e.parseContext[t]){case'function':n.context[t]=e.parseContext[t];break;case'string':n.context[t]=C(e.parseContext[t])}if(e.scope)for(var t in e.scope)n.scope[t]=e.scope[t];if(e.atrule)for(var t in e.atrule){var o=e.atrule[t];o.parse&&(n.atrule[t]=o.parse)}if(e.pseudo)for(var t in e.pseudo){var s=e.pseudo[t];s.parse&&(n.pseudo[t]=s.parse)}if(e.node)for(var t in e.node)n[t]=e.node[t].parse;return n}m.exports=function(c){var u={scanner:new t,locationMap:new e,filename:'',needPositions:!1,onParseError:h,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:f,createList:function(){return new o},createSingleNodeList:function(e){return(new o).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,n){var t=this.scanner.tokenIndex;try{return e.call(this)}catch(e){if(this.onParseErrorThrow)throw e;var o=n.call(this,t);return this.onParseErrorThrow=!0,this.onParseError(e,o),this.onParseErrorThrow=!1,o}},lookupNonWSType:function(e){do{var n=this.scanner.lookupType(e++);if(n!==v)return n}while(0!==n);return 0},eat:function(e){if(this.scanner.tokenType!==e){var n=this.scanner.tokenStart,t=k[e]+' is expected';switch(e){case w:this.scanner.tokenType===E||this.scanner.tokenType===L?(n=this.scanner.tokenEnd-1,t='Identifier is expected but function found'):t='Identifier is expected';break;case y:this.scanner.isDelim(35)&&(this.scanner.next(),n++,t='Name is expected');break;case S:this.scanner.tokenType===T&&(n=this.scanner.tokenEnd,t='Percent sign is expected');break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===e&&(n+=1)}this.error(t,n)}this.scanner.next()},consume:function(e){var n=this.scanner.getTokenValue();return this.eat(e),n},consumeFunctionName:function(){var e=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(E),e},getLocation:function(e,n){return this.needPositions?this.locationMap.getLocationRange(e,n,this.filename):null},getLocationFromList:function(e){if(this.needPositions){var n=this.getFirstListNode(e),t=this.getLastListNode(e);return this.locationMap.getLocationRange(null!==n?n.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==t?t.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(e,t){var o=void 0!==t&&t',u.needPositions=Boolean(n.positions),u.onParseError='function'==typeof n.onParseError?n.onParseError:h,u.onParseErrorThrow=!1,u.parseAtrulePrelude=!('parseAtrulePrelude'in n)||Boolean(n.parseAtrulePrelude),u.parseRulePrelude=!('parseRulePrelude'in n)||Boolean(n.parseRulePrelude),u.parseValue=!('parseValue'in n)||Boolean(n.parseValue),u.parseCustomProperty='parseCustomProperty'in n&&Boolean(n.parseCustomProperty),!u.context.hasOwnProperty(o))throw new Error('Unknown context `'+o+'`');return'function'==typeof c&&u.scanner.forEachToken((function(n,t,o){if(n===x){var s=u.getLocation(t,o),l=p(e,o-2,o,'*/')?e.slice(t+2,o-2):e.slice(t+2,o);c(l,s)}})),t=u.context[o].call(u,n),u.scanner.eof||u.error(),t}}}),765,[766,739,741,738,750,742,743,767]); -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]),s=r(d[1]).isBOM;function n(n,i){for(var o=i.length,u=t(n.lines,o),l=n.startLine,h=t(n.columns,o),c=n.startColumn,f=i.length>0?s(i.charCodeAt(0)):0;f0&&n.column>=0)||o||t||i)&&!(n&&'line'in n&&'column'in n&&o&&'line'in o&&'column'in o&&n.line>0&&n.column>=0&&o.line>0&&o.column>=0&&t))throw new Error('Invalid mapping: '+JSON.stringify({generated:n,source:t,original:o,name:i}))},s.prototype._serializeMappings=function(){for(var t,i,s,l,u=0,c=1,p=0,h=0,f=0,_=0,v='',y=this._mappings.toArray(),C=0,S=y.length;C0){if(!o.compareByGeneratedPositionsInflated(i,y[C-1]))continue;t+=','}t+=n.encode(i.generatedColumn-u),u=i.generatedColumn,null!=i.source&&(l=this._sources.indexOf(i.source),t+=n.encode(l-_),_=l,t+=n.encode(i.originalLine-1-h),h=i.originalLine-1,t+=n.encode(i.originalColumn-p),p=i.originalColumn,null!=i.name&&(s=this._names.indexOf(i.name),t+=n.encode(s-f),f=s)),v+=t}return v},s.prototype._generateSourcesContent=function(n,t){return n.map((function(n){if(!this._sourcesContents)return null;null!=t&&(n=o.relative(t,n));var i=o.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null}),this)},s.prototype.toJSON=function(){var n={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(n.file=this._file),null!=this._sourceRoot&&(n.sourceRoot=this._sourceRoot),this._sourcesContents&&(n.sourcesContent=this._generateSourcesContent(n.sources,n.sourceRoot)),n},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=s}),770,[771,773,774,775]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);function o(n){return n<0?1+(-n<<1):0+(n<<1)}e.encode=function(t){var c,u="",h=o(t);do{c=31&h,(h>>>=5)>0&&(c|=32),u+=n.encode(c)}while(h>0);return u},e.decode=function(o,t,c){var u,h,f,l,v=o.length,w=0,s=0;do{if(t>=v)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(h=n.decode(o.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+o.charAt(t-1));u=!!(32&h),w+=(h&=31)<>1,1==(1&f)?-l:l),c.rest=t}}),771,[772]); -__d((function(g,r,i,a,m,e,d){var n='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');e.encode=function(t){if(0<=t&&t=0;f--)'.'===(c=h[f])?h.splice(f,1):'..'===c?s++:s>0&&(''===c?(h.splice(f+1,s),s=0):(h.splice(f,2),s--));return''===(t=h.join('/'))&&(t=l?'/':'.'),u?(u.path=t,o(u)):t}function c(n,c){""===n&&(n="."),""===c&&(c=".");var l=i(c),h=i(n);if(h&&(n=h.path||'/'),l&&!l.scheme)return h&&(l.scheme=h.scheme),o(l);if(l||c.match(t))return c;if(h&&!h.host&&!h.path)return h.host=c,o(h);var s='/'===c.charAt(0)?c:u(n.replace(/\/+$/,'')+'/'+c);return h?(h.path=s,o(h)):s}e.urlParse=i,e.urlGenerate=o,e.normalize=u,e.join=c,e.isAbsolute=function(t){return'/'===t.charAt(0)||n.test(t)},e.relative=function(n,t){""===n&&(n="."),n=n.replace(/\/$/,'');for(var i=0;0!==t.indexOf(n+'/');){var o=n.lastIndexOf("/");if(o<0)return t;if((n=n.slice(0,o)).match(/^([^\/]+:\/)?\/*$/))return t;++i}return Array(i+1).join("../")+t.substr(n.length+1)};var l=!('__proto__'in Object.create(null));function h(n){return n}function s(n){if(!n)return!1;var t=n.length;if(t<9)return!1;if(95!==n.charCodeAt(t-1)||95!==n.charCodeAt(t-2)||111!==n.charCodeAt(t-3)||116!==n.charCodeAt(t-4)||111!==n.charCodeAt(t-5)||114!==n.charCodeAt(t-6)||112!==n.charCodeAt(t-7)||95!==n.charCodeAt(t-8)||95!==n.charCodeAt(t-9))return!1;for(var i=t-10;i>=0;i--)if(36!==n.charCodeAt(i))return!1;return!0}function f(n,t){return n===t?0:null===n?1:null===t?-1:n>t?1:-1}e.toSetString=l?h:function(n){return s(n)?'$'+n:n},e.fromSetString=l?h:function(n){return s(n)?n.slice(1):n},e.compareByOriginalPositions=function(n,t,i){var o=f(n.source,t.source);return 0!==o||0!==(o=n.originalLine-t.originalLine)||0!==(o=n.originalColumn-t.originalColumn)||i||0!==(o=n.generatedColumn-t.generatedColumn)||0!==(o=n.generatedLine-t.generatedLine)?o:f(n.name,t.name)},e.compareByGeneratedPositionsDeflated=function(n,t,i){var o=n.generatedLine-t.generatedLine;return 0!==o||0!==(o=n.generatedColumn-t.generatedColumn)||i||0!==(o=f(n.source,t.source))||0!==(o=n.originalLine-t.originalLine)||0!==(o=n.originalColumn-t.originalColumn)?o:f(n.name,t.name)},e.compareByGeneratedPositionsInflated=function(n,t){var i=n.generatedLine-t.generatedLine;return 0!==i||0!==(i=n.generatedColumn-t.generatedColumn)||0!==(i=f(n.source,t.source))||0!==(i=n.originalLine-t.originalLine)||0!==(i=n.originalColumn-t.originalColumn)?i:f(n.name,t.name)},e.parseSourceMapInput=function(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,''))},e.computeSourceURL=function(n,t,l){if(t=t||'',n&&('/'!==n[n.length-1]&&'/'!==t[0]&&(n+='/'),t=n+t),l){var h=i(l);if(!h)throw new Error("sourceMapURL could not be parsed");if(h.path){var s=h.path.lastIndexOf('/');s>=0&&(h.path=h.path.substring(0,s+1))}t=c(o(h),t)}return u(t)}}),773,[]); -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]),n=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function s(){this._array=[],this._set=i?new Map:Object.create(null)}s.fromArray=function(t,n){for(var i=new s,o=0,h=t.length;o=0)return o}else{var h=t.toSetString(s);if(n.call(this._set,h))return this._set[h]}throw new Error('"'+s+'" is not in the set.')},s.prototype.at=function(t){if(t>=0&&th||_==h&&u>=p||t.compareByGeneratedPositionsInflated(o,s)<=0?(this._last=n,this._array.push(n)):(this._sorted=!1,this._array.push(n))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n}),775,[773]); -__d((function(g,r,i,a,m,e,d){var n=r(d[0]);m.exports=function(c){return{fromPlainObject:function(t){return c(t,{enter:function(c){c.children&&c.children instanceof n==!1&&(c.children=(new n).fromArray(c.children))}}),t},toPlainObject:function(t){return c(t,{leave:function(c){c.children&&c.children instanceof n&&(c.children=c.children.toArray())}}),t}}}}),776,[738]); -__d((function(g,r,_i,a,m,e,d){var t=Object.prototype.hasOwnProperty,n=function(){};function l(t){return'function'==typeof t?t:n}function i(t,n){return function(l,i,u){l.type===n&&t.call(this,l,i,u)}}function u(n,l){var i=l.structure,u=[];for(var o in i)if(!1!==t.call(i,o)){var c=i[o],f={name:o,type:!1,nullable:!1};Array.isArray(i[o])||(c=[i[o]]);for(var s=0;s\";",groups:["CSS Charsets"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@charset"},"@counter-style":{syntax:"@counter-style {\n [ system: ; ] ||\n [ symbols: ; ] ||\n [ additive-symbols: ; ] ||\n [ negative: ; ] ||\n [ prefix: ; ] ||\n [ suffix: ; ] ||\n [ range: ; ] ||\n [ pad: ; ] ||\n [ speak-as: ; ] ||\n [ fallback: ; ]\n}",interfaces:["CSSCounterStyleRule"],groups:["CSS Counter Styles"],descriptors:{"additive-symbols":{syntax:"[ && ]#",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},fallback:{syntax:"",media:"all",initial:"decimal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},negative:{syntax:" ?",media:"all",initial:"\"-\" hyphen-minus",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},pad:{syntax:" && ",media:"all",initial:"0 \"\"",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},prefix:{syntax:"",media:"all",initial:"\"\"",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},range:{syntax:"[ [ | infinite ]{2} ]# | auto",media:"all",initial:"auto",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"speak-as":{syntax:"auto | bullets | numbers | words | spell-out | ",media:"all",initial:"auto",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},suffix:{syntax:"",media:"all",initial:"\". \"",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},symbols:{syntax:"+",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},system:{syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed ? ] | [ extends ]",media:"all",initial:"symbolic",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"},"@document":{syntax:"@document [ | url-prefix() | domain() | media-document() | regexp() ]# {\n \n}",interfaces:["CSSGroupingRule","CSSConditionRule"],groups:["CSS Conditional Rules"],status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@document"},"@font-face":{syntax:"@font-face {\n [ font-family: ; ] ||\n [ src: ; ] ||\n [ unicode-range: ; ] ||\n [ font-variant: ; ] ||\n [ font-feature-settings: ; ] ||\n [ font-variation-settings: ; ] ||\n [ font-stretch: ; ] ||\n [ font-weight: ; ] ||\n [ font-style: ; ]\n}",interfaces:["CSSFontFaceRule"],groups:["CSS Fonts"],descriptors:{"font-display":{syntax:"[ auto | block | swap | fallback | optional ]",media:"visual",percentages:"no",initial:"auto",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},"font-family":{syntax:"",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-feature-settings":{syntax:"normal | #",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"font-variation-settings":{syntax:"normal | [ ]#",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"font-stretch":{syntax:"{1,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-style":{syntax:"normal | italic | oblique {0,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-weight":{syntax:"{1,2}",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"font-variant":{syntax:"normal | none | [ || || || || stylistic() || historical-forms || styleset(#) || character-variant(#) || swash() || ornaments() || annotation() || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || || || || ordinal || slashed-zero || || || ruby ]",media:"all",initial:"normal",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},src:{syntax:"[ [ format( # ) ]? | local( ) ]#",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},"unicode-range":{syntax:"#",media:"all",initial:"U+0-10FFFF",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"},"@font-feature-values":{syntax:"@font-feature-values # {\n \n}",interfaces:["CSSFontFeatureValuesRule"],groups:["CSS Fonts"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"},"@import":{syntax:"@import [ | ] [ ]?;",groups:["Media Queries"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@import"},"@keyframes":{syntax:"@keyframes {\n \n}",interfaces:["CSSKeyframeRule","CSSKeyframesRule"],groups:["CSS Animations"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"},"@media":{syntax:"@media {\n \n}",interfaces:["CSSGroupingRule","CSSConditionRule","CSSMediaRule","CSSCustomMediaRule"],groups:["CSS Conditional Rules","Media Queries"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@media"},"@namespace":{syntax:"@namespace ? [ | ];",groups:["CSS Namespaces"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"},"@page":{syntax:"@page {\n \n}",interfaces:["CSSPageRule"],groups:["CSS Pages"],descriptors:{bleed:{syntax:"auto | ",media:["visual","paged"],initial:"auto",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},marks:{syntax:"none | [ crop || cross ]",media:["visual","paged"],initial:"none",percentages:"no",computed:"asSpecified",order:"orderOfAppearance",status:"standard"},size:{syntax:"{1,2} | auto | [ || [ portrait | landscape ] ]",media:["visual","paged"],initial:"auto",percentages:"no",computed:"asSpecifiedRelativeToAbsoluteLengths",order:"orderOfAppearance",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@page"},"@property":{syntax:"@property {\n \n}",interfaces:["CSS","CSSPropertyRule"],groups:["CSS Houdini"],descriptors:{syntax:{syntax:"",media:"all",percentages:"no",initial:"n/a (required)",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},inherits:{syntax:"true | false",media:"all",percentages:"no",initial:"auto",computed:"asSpecified",order:"uniqueOrder",status:"experimental"},"initial-value":{syntax:"",media:"all",initial:"n/a (required)",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"experimental"}},status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@property"},"@supports":{syntax:"@supports {\n \n}",interfaces:["CSSGroupingRule","CSSConditionRule","CSSSupportsRule"],groups:["CSS Conditional Rules"],status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@supports"},"@viewport":{syntax:"@viewport {\n \n}",interfaces:["CSSViewportRule"],groups:["CSS Device Adaptation"],descriptors:{height:{syntax:"{1,2}",media:["visual","continuous"],initial:["min-height","max-height"],percentages:["min-height","max-height"],computed:["min-height","max-height"],order:"orderOfAppearance",status:"standard"},"max-height":{syntax:"",media:["visual","continuous"],initial:"auto",percentages:"referToHeightOfInitialViewport",computed:"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto",order:"uniqueOrder",status:"standard"},"max-width":{syntax:"",media:["visual","continuous"],initial:"auto",percentages:"referToWidthOfInitialViewport",computed:"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto",order:"uniqueOrder",status:"standard"},"max-zoom":{syntax:"auto | | ",media:["visual","continuous"],initial:"auto",percentages:"the zoom factor itself",computed:"autoNonNegativeOrPercentage",order:"uniqueOrder",status:"standard"},"min-height":{syntax:"",media:["visual","continuous"],initial:"auto",percentages:"referToHeightOfInitialViewport",computed:"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto",order:"uniqueOrder",status:"standard"},"min-width":{syntax:"",media:["visual","continuous"],initial:"auto",percentages:"referToWidthOfInitialViewport",computed:"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto",order:"uniqueOrder",status:"standard"},"min-zoom":{syntax:"auto | | ",media:["visual","continuous"],initial:"auto",percentages:"the zoom factor itself",computed:"autoNonNegativeOrPercentage",order:"uniqueOrder",status:"standard"},orientation:{syntax:"auto | portrait | landscape",media:["visual","continuous"],initial:"auto",percentages:"referToSizeOfBoundingBox",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"user-zoom":{syntax:"zoom | fixed",media:["visual","continuous"],initial:"zoom",percentages:"referToSizeOfBoundingBox",computed:"asSpecified",order:"uniqueOrder",status:"standard"},"viewport-fit":{syntax:"auto | contain | cover",media:["visual","continuous"],initial:"auto",percentages:"no",computed:"asSpecified",order:"uniqueOrder",status:"standard"},width:{syntax:"{1,2}",media:["visual","continuous"],initial:["min-width","max-width"],percentages:["min-width","max-width"],computed:["min-width","max-width"],order:"orderOfAppearance",status:"standard"},zoom:{syntax:"auto | | ",media:["visual","continuous"],initial:"auto",percentages:"the zoom factor itself",computed:"autoNonNegativeOrPercentage",order:"uniqueOrder",status:"standard"}},status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/@viewport"}}}),782,[]); -__d((function(e,t,i,o,r,a,n){r.exports={"--*":{syntax:"",media:"all",inherited:!0,animationType:"discrete",percentages:"no",groups:["CSS Variables"],initial:"seeProse",appliesto:"allElements",computed:"asSpecifiedWithVarsSubstituted",order:"perGrammar",status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/--*"},"-ms-accelerator":{syntax:"false | true",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"false",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-accelerator"},"-ms-block-progression":{syntax:"tb | rl | bt | lr",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"tb",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-block-progression"},"-ms-content-zoom-chaining":{syntax:"none | chained",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-chaining"},"-ms-content-zooming":{syntax:"none | zoom",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"zoomForTheTopLevelNoneForTheRest",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zooming"},"-ms-content-zoom-limit":{syntax:"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",media:"interactive",inherited:!1,animationType:"discrete",percentages:["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],groups:["Microsoft Extensions"],initial:["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],appliesto:"nonReplacedBlockAndInlineBlockElements",computed:["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit"},"-ms-content-zoom-limit-max":{syntax:"",media:"interactive",inherited:!1,animationType:"discrete",percentages:"maxZoomFactor",groups:["Microsoft Extensions"],initial:"400%",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-max"},"-ms-content-zoom-limit-min":{syntax:"",media:"interactive",inherited:!1,animationType:"discrete",percentages:"minZoomFactor",groups:["Microsoft Extensions"],initial:"100%",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-min"},"-ms-content-zoom-snap":{syntax:"<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],appliesto:"nonReplacedBlockAndInlineBlockElements",computed:["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap"},"-ms-content-zoom-snap-points":{syntax:"snapInterval( , ) | snapList( # )",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"snapInterval(0%, 100%)",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-points"},"-ms-content-zoom-snap-type":{syntax:"none | proximity | mandatory",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-type"},"-ms-filter":{syntax:"",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"\"\"",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-filter"},"-ms-flow-from":{syntax:"[ none | ]#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"nonReplacedElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-from"},"-ms-flow-into":{syntax:"[ none | ]#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"iframeElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-into"},"-ms-grid-columns":{syntax:"none | | ",media:"visual",inherited:!1,animationType:"simpleListOfLpcDifferenceLpc",percentages:"referToDimensionOfContentArea",groups:["CSS Grid Layout"],initial:"none",appliesto:"gridContainers",computed:"asSpecifiedRelativeToAbsoluteLengths",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-columns"},"-ms-grid-rows":{syntax:"none | | ",media:"visual",inherited:!1,animationType:"simpleListOfLpcDifferenceLpc",percentages:"referToDimensionOfContentArea",groups:["CSS Grid Layout"],initial:"none",appliesto:"gridContainers",computed:"asSpecifiedRelativeToAbsoluteLengths",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-rows"},"-ms-high-contrast-adjust":{syntax:"auto | none",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"auto",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-high-contrast-adjust"},"-ms-hyphenate-limit-chars":{syntax:"auto | {1,3}",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"auto",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-chars"},"-ms-hyphenate-limit-lines":{syntax:"no-limit | ",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"no-limit",appliesto:"blockContainerElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-lines"},"-ms-hyphenate-limit-zone":{syntax:" | ",media:"visual",inherited:!0,animationType:"discrete",percentages:"referToLineBoxWidth",groups:["Microsoft Extensions"],initial:"0",appliesto:"blockContainerElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-zone"},"-ms-ime-align":{syntax:"auto | after",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"auto",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-ime-align"},"-ms-overflow-style":{syntax:"auto | none | scrollbar | -ms-autohiding-scrollbar",media:"interactive",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"auto",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-overflow-style"},"-ms-scrollbar-3dlight-color":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"dependsOnUserAgent",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-3dlight-color"},"-ms-scrollbar-arrow-color":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"ButtonText",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-arrow-color"},"-ms-scrollbar-base-color":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"dependsOnUserAgent",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-base-color"},"-ms-scrollbar-darkshadow-color":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"ThreeDDarkShadow",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-darkshadow-color"},"-ms-scrollbar-face-color":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"ThreeDFace",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-face-color"},"-ms-scrollbar-highlight-color":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"ThreeDHighlight",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-highlight-color"},"-ms-scrollbar-shadow-color":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"ThreeDDarkShadow",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-shadow-color"},"-ms-scrollbar-track-color":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"Scrollbar",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"},"-ms-scroll-chaining":{syntax:"chained | none",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"chained",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-chaining"},"-ms-scroll-limit":{syntax:"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],appliesto:"nonReplacedBlockAndInlineBlockElements",computed:["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit"},"-ms-scroll-limit-x-max":{syntax:"auto | ",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"auto",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-max"},"-ms-scroll-limit-x-min":{syntax:"",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"0",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-min"},"-ms-scroll-limit-y-max":{syntax:"auto | ",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"auto",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-max"},"-ms-scroll-limit-y-min":{syntax:"",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"0",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-min"},"-ms-scroll-rails":{syntax:"none | railed",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"railed",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-rails"},"-ms-scroll-snap-points-x":{syntax:"snapInterval( , ) | snapList( # )",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"snapInterval(0px, 100%)",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-x"},"-ms-scroll-snap-points-y":{syntax:"snapInterval( , ) | snapList( # )",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"snapInterval(0px, 100%)",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-y"},"-ms-scroll-snap-type":{syntax:"none | proximity | mandatory",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"nonReplacedBlockAndInlineBlockElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-type"},"-ms-scroll-snap-x":{syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],appliesto:"nonReplacedBlockAndInlineBlockElements",computed:["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-x"},"-ms-scroll-snap-y":{syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],appliesto:"nonReplacedBlockAndInlineBlockElements",computed:["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-y"},"-ms-scroll-translation":{syntax:"none | vertical-to-horizontal",media:"interactive",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-translation"},"-ms-text-autospace":{syntax:"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-text-autospace"},"-ms-touch-select":{syntax:"grippers | none",media:"interactive",inherited:!0,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"grippers",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-touch-select"},"-ms-user-select":{syntax:"none | element | text",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"text",appliesto:"nonReplacedElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-user-select"},"-ms-wrap-flow":{syntax:"auto | both | start | end | maximum | clear",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"auto",appliesto:"blockLevelElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-flow"},"-ms-wrap-margin":{syntax:"",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"0",appliesto:"exclusionElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-margin"},"-ms-wrap-through":{syntax:"wrap | none",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Microsoft Extensions"],initial:"wrap",appliesto:"blockLevelElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-through"},"-moz-appearance":{syntax:"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions","WebKit Extensions"],initial:"noneButOverriddenInUserAgentCSS",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-moz-binding":{syntax:" | none",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"none",appliesto:"allElementsExceptGeneratedContentOrPseudoElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-binding"},"-moz-border-bottom-colors":{syntax:"+ | none",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-border-bottom-colors"},"-moz-border-left-colors":{syntax:"+ | none",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-border-left-colors"},"-moz-border-right-colors":{syntax:"+ | none",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-border-right-colors"},"-moz-border-top-colors":{syntax:"+ | none",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-border-top-colors"},"-moz-context-properties":{syntax:"none | [ fill | fill-opacity | stroke | stroke-opacity ]#",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"none",appliesto:"allElementsThatCanReferenceImages",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"},"-moz-float-edge":{syntax:"border-box | content-box | margin-box | padding-box",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"content-box",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"},"-moz-force-broken-image-icon":{syntax:"",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"0",appliesto:"images",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"},"-moz-image-region":{syntax:" | auto",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"auto",appliesto:"xulImageElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"},"-moz-orient":{syntax:"inline | block | horizontal | vertical",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"inline",appliesto:"anyElementEffectOnProgressAndMeter",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"},"-moz-outline-radius":{syntax:"{1,4} [ / {1,4} ]?",media:"visual",inherited:!1,animationType:["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],percentages:["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],groups:["Mozilla Extensions"],initial:["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],appliesto:"allElements",computed:["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"},"-moz-outline-radius-bottomleft":{syntax:"",media:"visual",inherited:!1,animationType:"lpc",percentages:"referToDimensionOfBorderBox",groups:["Mozilla Extensions"],initial:"0",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"},"-moz-outline-radius-bottomright":{syntax:"",media:"visual",inherited:!1,animationType:"lpc",percentages:"referToDimensionOfBorderBox",groups:["Mozilla Extensions"],initial:"0",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"},"-moz-outline-radius-topleft":{syntax:"",media:"visual",inherited:!1,animationType:"lpc",percentages:"referToDimensionOfBorderBox",groups:["Mozilla Extensions"],initial:"0",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"},"-moz-outline-radius-topright":{syntax:"",media:"visual",inherited:!1,animationType:"lpc",percentages:"referToDimensionOfBorderBox",groups:["Mozilla Extensions"],initial:"0",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"},"-moz-stack-sizing":{syntax:"ignore | stretch-to-fit",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"stretch-to-fit",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-stack-sizing"},"-moz-text-blink":{syntax:"none | blink",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-text-blink"},"-moz-user-focus":{syntax:"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none",media:"interactive",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"},"-moz-user-input":{syntax:"auto | none | enabled | disabled",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"auto",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"},"-moz-user-modify":{syntax:"read-only | read-write | write-only",media:"interactive",inherited:!0,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"read-only",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-modify"},"-moz-window-dragging":{syntax:"drag | no-drag",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"drag",appliesto:"allElementsCreatingNativeWindows",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-window-dragging"},"-moz-window-shadow":{syntax:"default | menu | tooltip | sheet | none",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["Mozilla Extensions"],initial:"default",appliesto:"allElementsCreatingNativeWindows",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-moz-window-shadow"},"-webkit-appearance":{syntax:"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"noneButOverriddenInUserAgentCSS",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-webkit-border-before":{syntax:"<'border-width'> || <'border-style'> || <'color'>",media:"visual",inherited:!0,animationType:"discrete",percentages:["-webkit-border-before-width"],groups:["WebKit Extensions"],initial:["border-width","border-style","color"],appliesto:"allElements",computed:["border-width","border-style","color"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"},"-webkit-border-before-color":{syntax:"<'color'>",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"currentcolor",appliesto:"allElements",computed:"computedColor",order:"uniqueOrder",status:"nonstandard"},"-webkit-border-before-style":{syntax:"<'border-style'>",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard"},"-webkit-border-before-width":{syntax:"<'border-width'>",media:"visual",inherited:!0,animationType:"discrete",percentages:"logicalWidthOfContainingBlock",groups:["WebKit Extensions"],initial:"medium",appliesto:"allElements",computed:"absoluteLengthZeroIfBorderStyleNoneOrHidden",order:"uniqueOrder",status:"nonstandard"},"-webkit-box-reflect":{syntax:"[ above | below | right | left ]? ? ?",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"},"-webkit-line-clamp":{syntax:"none | ",media:"visual",inherited:!1,animationType:"byComputedValueType",percentages:"no",groups:["WebKit Extensions","CSS Overflow"],initial:"none",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"},"-webkit-mask":{syntax:"[ || [ / ]? || || [ | border | padding | content | text ] || [ | border | padding | content ] ]#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],appliesto:"allElements",computed:["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/mask"},"-webkit-mask-attachment":{syntax:"#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"scroll",appliesto:"allElements",computed:"asSpecified",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"},"-webkit-mask-clip":{syntax:"[ | border | padding | content | text ]#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"border",appliesto:"allElements",computed:"asSpecified",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/mask-clip"},"-webkit-mask-composite":{syntax:"#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"source-over",appliesto:"allElements",computed:"asSpecified",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"},"-webkit-mask-image":{syntax:"#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"none",appliesto:"allElements",computed:"absoluteURIOrNone",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/mask-image"},"-webkit-mask-origin":{syntax:"[ | border | padding | content ]#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"padding",appliesto:"allElements",computed:"asSpecified",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/mask-origin"},"-webkit-mask-position":{syntax:"#",media:"visual",inherited:!1,animationType:"discrete",percentages:"referToSizeOfElement",groups:["WebKit Extensions"],initial:"0% 0%",appliesto:"allElements",computed:"absoluteLengthOrPercentage",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/mask-position"},"-webkit-mask-position-x":{syntax:"[ | left | center | right ]#",media:"visual",inherited:!1,animationType:"discrete",percentages:"referToSizeOfElement",groups:["WebKit Extensions"],initial:"0%",appliesto:"allElements",computed:"absoluteLengthOrPercentage",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"},"-webkit-mask-position-y":{syntax:"[ | top | center | bottom ]#",media:"visual",inherited:!1,animationType:"discrete",percentages:"referToSizeOfElement",groups:["WebKit Extensions"],initial:"0%",appliesto:"allElements",computed:"absoluteLengthOrPercentage",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"},"-webkit-mask-repeat":{syntax:"#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"repeat",appliesto:"allElements",computed:"asSpecified",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"},"-webkit-mask-repeat-x":{syntax:"repeat | no-repeat | space | round",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"repeat",appliesto:"allElements",computed:"asSpecified",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"},"-webkit-mask-repeat-y":{syntax:"repeat | no-repeat | space | round",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"repeat",appliesto:"allElements",computed:"absoluteLengthOrPercentage",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"},"-webkit-mask-size":{syntax:"#",media:"visual",inherited:!1,animationType:"discrete",percentages:"relativeToBackgroundPositioningArea",groups:["WebKit Extensions"],initial:"auto auto",appliesto:"allElements",computed:"asSpecified",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/mask-size"},"-webkit-overflow-scrolling":{syntax:"auto | touch",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"auto",appliesto:"scrollingBoxes",computed:"asSpecified",order:"orderOfAppearance",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"},"-webkit-tap-highlight-color":{syntax:"",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"black",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"},"-webkit-text-fill-color":{syntax:"",media:"visual",inherited:!0,animationType:"color",percentages:"no",groups:["WebKit Extensions"],initial:"currentcolor",appliesto:"allElements",computed:"computedColor",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"},"-webkit-text-stroke":{syntax:" || ",media:"visual",inherited:!0,animationType:["-webkit-text-stroke-width","-webkit-text-stroke-color"],percentages:"no",groups:["WebKit Extensions"],initial:["-webkit-text-stroke-width","-webkit-text-stroke-color"],appliesto:"allElements",computed:["-webkit-text-stroke-width","-webkit-text-stroke-color"],order:"canonicalOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"},"-webkit-text-stroke-color":{syntax:"",media:"visual",inherited:!0,animationType:"color",percentages:"no",groups:["WebKit Extensions"],initial:"currentcolor",appliesto:"allElements",computed:"computedColor",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"},"-webkit-text-stroke-width":{syntax:"",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"0",appliesto:"allElements",computed:"absoluteLength",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"},"-webkit-touch-callout":{syntax:"default | none",media:"visual",inherited:!0,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"default",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"},"-webkit-user-modify":{syntax:"read-only | read-write | read-write-plaintext-only",media:"interactive",inherited:!0,animationType:"discrete",percentages:"no",groups:["WebKit Extensions"],initial:"read-only",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"nonstandard"},"align-content":{syntax:"normal | | | ? ",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["CSS Box Alignment"],initial:"normal",appliesto:"multilineFlexContainers",computed:"asSpecified",order:"uniqueOrder",status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/align-content"},"align-items":{syntax:"normal | stretch | | [ ? ]",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["CSS Box Alignment"],initial:"normal",appliesto:"allElements",computed:"asSpecified",order:"uniqueOrder",status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/align-items"},"align-self":{syntax:"auto | normal | stretch | | ? ",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["CSS Box Alignment"],initial:"auto",appliesto:"flexItemsGridItemsAndAbsolutelyPositionedBoxes",computed:"autoOnAbsolutelyPositionedElementsValueOfAlignItemsOnParent",order:"uniqueOrder",status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/align-self"},"align-tracks":{syntax:"[ normal | | | ? ]#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["CSS Grid Layout"],initial:"normal",appliesto:"gridContainersWithMasonryLayoutInTheirBlockAxis",computed:"asSpecified",order:"uniqueOrder",status:"experimental",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/align-tracks"},all:{syntax:"initial | inherit | unset | revert",media:"noPracticalMedia",inherited:!1,animationType:"eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection",percentages:"no",groups:["CSS Miscellaneous"],initial:"noPracticalInitialValue",appliesto:"allElements",computed:"asSpecifiedAppliesToEachProperty",order:"uniqueOrder",status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/all"},animation:{syntax:"#",media:"visual",inherited:!1,animationType:"discrete",percentages:"no",groups:["CSS Animations"],initial:["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"],appliesto:"allElementsAndPseudos",computed:["animation-name","animation-duration","animation-timing-function","animation-delay","animation-direction","animation-iteration-count","animation-fill-mode","animation-play-state"],order:"orderOfAppearance",status:"standard",mdn_url:"https://developer.mozilla.org/docs/Web/CSS/animation"},"animation-delay":{syntax:"