From 5e8abeeb8276af47a995cb87aa21d279053cf0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mads=20R=C3=B8skar?= Date: Tue, 24 May 2022 12:23:45 +0200 Subject: [PATCH] chore: rename master to main (#1364) --- .github/workflows/changelog-preview.yml | 2 +- .github/workflows/check-pr.yml | 2 +- .github/workflows/docusaurus.yml | 4 +- .github/workflows/release.yml | 4 +- README.md | 6 +-- RELEASE_PROCESS.md | 14 +++---- docs/build/bundle.38535de9.js | 2 +- docs/build/bundle.38535de9.js.LICENSE.txt | 4 +- docs/v3/build/bundle.a39375a1.js | 2 +- docs/v3/build/bundle.a39375a1.js.LICENSE.txt | 4 +- .../docs/reactnative/basics/translations.mdx | 2 +- .../image-gallery-context/set_images.mdx | 6 +-- .../props/empty_state_indicator.mdx | 6 +-- .../props/footer_loading_indicator.mdx | 6 +-- .../props/header_error_indicator.mdx | 6 +-- .../props/header_network_down_indicator.mdx | 6 +-- .../props/loading_error_indicator.mdx | 6 +-- .../channel-list/props/loading_indicator.mdx | 6 +-- .../channel-list/props/skeleton.mdx | 6 +-- .../channel/props/attachment_actions.mdx | 6 +-- .../channel/props/date_header.mdx | 6 +-- .../channel/props/empty_state_indicator.mdx | 6 +-- .../channel/props/inline_date_separator.mdx | 6 +-- .../channel/props/inline_unread_indicator.mdx | 6 +-- .../channel/props/loading_indicator.mdx | 6 +-- .../channel/props/message_actions.mdx | 6 +-- .../channel/props/message_text.mdx | 6 +-- .../channel/props/network_down_indicator.mdx | 6 +-- .../props/typing_indicator_container.mdx | 6 +-- .../props/upload_progress_indicator.mdx | 6 +-- .../attachment_picker_bottom_sheet_handle.mdx | 6 +-- .../props/attachment_picker_error.mdx | 6 +-- .../props/attachment_picker_error_image.mdx | 6 +-- .../props/camera_selector_icon.mdx | 6 +-- .../props/file_selector_icon.mdx | 6 +-- .../props/image_gallery_custom_components.mdx | 8 ++-- .../image_overlay_selected_component.mdx | 6 +-- .../props/image_selector_icon.mdx | 6 +-- .../props/message_action_list.mdx | 6 +-- .../props/message_action_list_item.mdx | 6 +-- .../props/format_latest_message_date.mdx | 2 +- .../contexts/image_gallery_context.mdx | 14 +++---- .../reactnative/contexts/message_context.mdx | 2 +- .../reactnative/contexts/theme_context.mdx | 2 +- .../reactnative/core-components/channel.mdx | 18 ++++----- .../reactnative/customization/theming.mdx | 8 ++-- .../reactnative/customization/typescript.mdx | 2 +- .../guides/livestream_messagelist.mdx | 4 +- .../guides/message_customizations.mdx | 20 +++++----- .../guides/message_input_customization.mdx | 4 +- .../guides/push_notifications_v1.mdx | 4 +- .../ui-components/message_list.mdx | 12 +++--- .../ui-components/typing_indicator.mdx | 2 +- .../version-3.x.x/basics/translations.mdx | 2 +- .../props/empty_state_indicator.mdx | 6 +-- .../props/footer_loading_indicator.mdx | 6 +-- .../props/header_error_indicator.mdx | 6 +-- .../props/header_network_down_indicator.mdx | 6 +-- .../props/loading_error_indicator.mdx | 6 +-- .../channel-list/props/loading_indicator.mdx | 6 +-- .../channel-list/props/skeleton.mdx | 6 +-- .../channel/props/attachment_actions.mdx | 6 +-- .../channel/props/date_header.mdx | 6 +-- .../channel/props/empty_state_indicator.mdx | 6 +-- .../channel/props/inline_date_separator.mdx | 6 +-- .../channel/props/inline_unread_indicator.mdx | 6 +-- .../channel/props/loading_indicator.mdx | 6 +-- .../channel/props/message_actions.mdx | 6 +-- .../channel/props/message_text.mdx | 6 +-- .../channel/props/network_down_indicator.mdx | 6 +-- .../props/typing_indicator_container.mdx | 6 +-- .../props/upload_progress_indicator.mdx | 6 +-- .../attachment_picker_bottom_sheet_handle.mdx | 6 +-- .../props/attachment_picker_error.mdx | 6 +-- .../props/attachment_picker_error_image.mdx | 6 +-- .../props/camera_selector_icon.mdx | 6 +-- .../props/file_selector_icon.mdx | 6 +-- .../props/image_gallery_custom_components.mdx | 8 ++-- .../image_overlay_selected_component.mdx | 6 +-- .../props/image_selector_icon.mdx | 6 +-- .../props/format_latest_message_date.mdx | 2 +- .../contexts/image_gallery_context.mdx | 14 +++---- .../contexts/message_context.mdx | 2 +- .../version-3.x.x/contexts/theme_context.mdx | 2 +- .../version-3.x.x/core-components/channel.mdx | 18 ++++----- .../customization/native_handlers.mdx | 2 +- .../version-3.x.x/customization/theming.mdx | 8 ++-- .../customization/typescript.mdx | 2 +- .../guides/livestream_messagelist.mdx | 4 +- .../guides/message_customizations.mdx | 20 +++++----- .../guides/message_input_customization.mdx | 4 +- .../guides/push_notifications.mdx | 4 +- .../ui-components/message_list.mdx | 12 +++--- .../ui-components/typing_indicator.mdx | 2 +- examples/SampleApp/README.md | 2 +- package/CHANGELOG.md | 4 +- .../AttachmentPicker/AttachmentPicker.tsx | 12 +++--- package/src/components/Channel/Channel.tsx | 4 +- package/src/components/Chat/Chat.tsx | 2 +- package/src/components/Message/Message.tsx | 4 +- .../Message/MessageSimple/utils/renderText.md | 2 +- .../AttachmentPickerContext.tsx | 12 +++--- .../contexts/channelContext/ChannelContext.md | 2 +- .../channelContext/ChannelContext.tsx | 4 +- .../channelsContext/ChannelsContext.md | 2 +- .../channelsContext/ChannelsContext.tsx | 12 +++--- .../src/contexts/chatContext/ChatContext.md | 2 +- .../ImageGalleryContext.md | 2 +- .../keyboardContext/KeyboardContext.md | 2 +- .../contexts/messageContext/MessageContext.md | 2 +- .../messageContext/MessageContext.tsx | 4 +- .../MessageInputContext.md | 2 +- .../MessageInputContext.tsx | 12 +++--- .../MessageOverlayContext.tsx | 12 +++--- .../messagesContext/MessagesContext.md | 2 +- .../messagesContext/MessagesContext.tsx | 40 +++++++++---------- .../contexts/overlayContext/OverlayContext.md | 2 +- .../PaginatedMessageListContext.md | 2 +- .../suggestionsContext/SuggestionsContext.md | 2 +- .../src/contexts/themeContext/utils/theme.ts | 2 +- .../contexts/typingContext/TypingContext.md | 2 +- package/src/i18n/en.json | 6 +-- package/src/i18n/fr.json | 6 +-- package/src/i18n/hi.json | 6 +-- package/src/i18n/it.json | 6 +-- package/src/i18n/nl.json | 6 +-- package/src/i18n/ru.json | 6 +-- package/src/i18n/tr.json | 6 +-- release/next.js | 2 +- release/prod.js | 4 +- 130 files changed, 386 insertions(+), 386 deletions(-) diff --git a/.github/workflows/changelog-preview.yml b/.github/workflows/changelog-preview.yml index 204446d1f6..8b96d48ac7 100644 --- a/.github/workflows/changelog-preview.yml +++ b/.github/workflows/changelog-preview.yml @@ -3,7 +3,7 @@ name: Changelog preview on: pull_request: branches: - - master + - main types: [opened, synchronize] jobs: diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index ec21f94e37..9bb07123d1 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -4,7 +4,7 @@ on: pull_request: branches: - develop - - master + - main - 'v[0-9]+.[0-9]+.[0-9]+*beta*' types: [opened, synchronize] diff --git a/.github/workflows/docusaurus.yml b/.github/workflows/docusaurus.yml index 97d0305da2..f1985cda36 100644 --- a/.github/workflows/docusaurus.yml +++ b/.github/workflows/docusaurus.yml @@ -3,7 +3,7 @@ name: docusaurus on: push: branches: - - master # default branch name for each repo that docs should be push from + - main # default branch name for each repo that docs should be push from - develop paths: - docusaurus/** @@ -15,6 +15,6 @@ jobs: - name: push uses: GetStream/push-stream-chat-docusaurus-action@main with: - target-branch: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }} + target-branch: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }} env: DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa731b5c1b..e811fc877a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: branches: - - master + - main jobs: publish-release: @@ -42,5 +42,5 @@ jobs: git stash git checkout develop git pull origin develop - git merge master -m "chore: merge back release [skip ci]" + git merge main -m "chore: merge back release [skip ci]" git push origin develop diff --git a/README.md b/README.md index a43b31bef2..92315fc752 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Official React Native SDK for Stream Chat

- react native chat + react native chat

> The official React Native and Expo components for Stream Chat, a service for @@ -9,7 +9,7 @@ [![NPM](https://img.shields.io/npm/v/stream-chat-react-native.svg)](https://www.npmjs.com/package/stream-chat-react-native) -[![Build Status](https://github.com/GetStream/stream-chat-react-native/workflows/test/badge.svg?branch=master)](https://github.com/GetStream/stream-chat-react-native/actions) +[![Build Status](https://github.com/GetStream/stream-chat-react-native/workflows/test/badge.svg?branch=main)](https://github.com/GetStream/stream-chat-react-native/actions) [![Component Reference](https://img.shields.io/badge/docs-component%20reference-blue.svg)](https://getstream.io/chat/docs/sdk/reactnative) @@ -68,7 +68,7 @@ We welcome code changes that improve this library or fix a problem, and please m ## Git flow & Release process -We enforce conventional commits and have an automated releasing process using workspaces and semantic-release. Read our [git flow & release process guide](https://github.com/GetStream/stream-chat-react-native/blob/master/RELEASE_PROCESS.md) for more information +We enforce conventional commits and have an automated releasing process using workspaces and semantic-release. Read our [git flow & release process guide](https://github.com/GetStream/stream-chat-react-native/blob/main/RELEASE_PROCESS.md) for more information ## We are hiring diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index 391a2fe237..f8cb0282d9 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -21,9 +21,9 @@ Please have in mind that the only line you have to add is the selected one. Gith If you've released something you were not supposed to and want to remove that release from npm, remove the git tag and then rollback the changes, you have a few options: -### Reset master branch +### Reset main branch -Cleanest way is to just reset the master branch and remove the last few commits, so the ideal is just do reset and force-push. +Cleanest way is to just reset the main branch and remove the last few commits, so the ideal is just do reset and force-push. ### Revert unwanted commits @@ -35,15 +35,15 @@ If you want some of the newest commits but want to remove older ones you can jus All pull requests should point to the `develop` branch. Everytime it is updated, a new `next` version is created and released to npm using the latest commit sha. -### master & release candidates +### main & release candidates -Everytime we want to push things to master, we should create a pull request from develop to master. When that PR is opened/updated, a comment will be +Everytime we want to push things to main, we should create a pull request from develop to main. When that PR is opened/updated, a comment will be added/updated containing the changelog that will be generated by merging that PR. This is useful for knowing whats going to be released if we decide to -press the merge button. By doing that, a release candidate tag is created and flagged with the `rc` tag on npm. Also, a `merge back pull request` is created from master to develop. +press the merge button. By doing that, a release candidate tag is created and flagged with the `rc` tag on npm. Also, a `merge back pull request` is created from main to develop. ## Graduating release candidates to production Once the release candidate is well tested and approved, the manual release workflow can be triggered through the Github actions UI. It should always be pointed -to master and it will `graduate the latest release candidate` to an actual release, flagging it with the `latest` tag on npm. Also, a `merge back pull request` -is created from master to develop. +to main and it will `graduate the latest release candidate` to an actual release, flagging it with the `latest` tag on npm. Also, a `merge back pull request` +is created from main to develop. diff --git a/docs/build/bundle.38535de9.js b/docs/build/bundle.38535de9.js index 599b8de46c..3b8879c189 100644 --- a/docs/build/bundle.38535de9.js +++ b/docs/build/bundle.38535de9.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.38535de9.js.LICENSE.txt */ -!function(y){var w={};function __webpack_require__(E){if(w[E])return w[E].exports;var q=w[E]={i:E,l:!1,exports:{}};return y[E].call(q.exports,q,q.exports,__webpack_require__),q.l=!0,q.exports}__webpack_require__.m=y,__webpack_require__.c=w,__webpack_require__.d=function(y,w,E){__webpack_require__.o(y,w)||Object.defineProperty(y,w,{enumerable:!0,get:E})},__webpack_require__.r=function(y){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},__webpack_require__.t=function(y,w){if(1&w&&(y=__webpack_require__(y)),8&w)return y;if(4&w&&"object"==typeof y&&y&&y.__esModule)return y;var E=Object.create(null);if(__webpack_require__.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:y}),2&w&&"string"!=typeof y)for(var q in y)__webpack_require__.d(E,q,function(w){return y[w]}.bind(null,q));return E},__webpack_require__.n=function(y){var w=y&&y.__esModule?function getDefault(){return y.default}:function getModuleExports(){return y};return __webpack_require__.d(w,"a",w),w},__webpack_require__.o=function(y,w){return Object.prototype.hasOwnProperty.call(y,w)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=575)}([function(y,w,E){"use strict";y.exports=E(764)},function(y,w,E){(function(y,q){var ne;!function(ie){var oe=w,se=(y&&y.exports,"object"==typeof q&&q);se.global!==se&&se.window;var le="A range’s `stop` value must be greater than or equal to the `start` value.",pe="Invalid code point value. Code points range from U+000000 to U+10FFFF.",ge=55296,he=56319,me=56320,ve=57343,ye=/\\x00([^0123456789]|$)/g,Re={},we=Re.hasOwnProperty,forEach=function(y,w){for(var E=-1,q=y.length;++E=E&&wE)return y;if(w<=q&&E>=ne)y.splice(ie,2);else{if(w>=q&&E=q&&w<=ne)y[ie+1]=w;else if(E>=q&&E<=ne)return y[ie]=E+1,y;ie+=2}}return y},dataAdd=function(y,w){var E,q,ne=0,ie=null,oe=y.length;if(w<0||w>1114111)throw RangeError(pe);for(;ne=E&&ww)return y.splice(null!=ie?ie+2:0,0,w,w+1),y;if(w==q)return w+1==y[ne+2]?(y.splice(ne,4,E,y[ne+3]),y):(y[ne+1]=w+1,y);ie=ne,ne+=2}return y.push(w,w+1),y},dataAddData=function(y,w){for(var E,q,ne=0,ie=y.slice(),oe=w.length;ne1114111||E<0||E>1114111)throw RangeError(pe);for(var q,ne,ie=0,oe=!1,se=y.length;ieE)return y;q>=w&&q<=E&&(ne>w&&ne-1<=E?(y.splice(ie,2),ie-=2):(y.splice(ie-1,2),ie-=2))}else{if(q==E+1||q==E)return y[ie]=w,y;if(q>E)return y.splice(ie,0,w,E+1),y;if(w>=q&&w=q&&w=ne&&(y[ie]=w,y[ie+1]=E+1,oe=!0)}ie+=2}return oe||y.push(w,E+1),y},dataContains=function(y,w){var E=0,q=y.length,ne=y[E],ie=y[q-1];if(q>=2&&(wie))return!1;for(;E=ne&&w=40&&y<=43||46==y||47==y||63==y||y>=91&&y<=94||y>=123&&y<=125?"\\"+ke(y):y>=32&&y<=126?ke(y):y<=255?"\\x"+pad(hex(y),2):"\\u"+pad(hex(y),4)},codePointToStringUnicode=function(y){return y<=65535?codePointToString(y):"\\u{"+y.toString(16).toUpperCase()+"}"},symbolToCodePoint=function(y){var w,E=y.length,q=y.charCodeAt(0);return q>=ge&&q<=he&&E>1?(w=y.charCodeAt(1),1024*(q-ge)+w-me+65536):q},createBMPCharacterClasses=function(y){var w,E,q="",ne=0,ie=y.length;if(dataIsSingleton(y))return codePointToString(y[0]);for(;ne=ge&&E<=he&&(ie.push(w,ge),q.push(ge,E+1)),E>=me&&E<=ve&&(ie.push(w,ge),q.push(ge,56320),ne.push(me,E+1)),E>ve&&(ie.push(w,ge),q.push(ge,56320),ne.push(me,57344),E<=65535?ie.push(57344,E+1):(ie.push(57344,65536),oe.push(65536,E+1)))):w>=ge&&w<=he?(E>=ge&&E<=he&&q.push(w,E+1),E>=me&&E<=ve&&(q.push(w,56320),ne.push(me,E+1)),E>ve&&(q.push(w,56320),ne.push(me,57344),E<=65535?ie.push(57344,E+1):(ie.push(57344,65536),oe.push(65536,E+1)))):w>=me&&w<=ve?(E>=me&&E<=ve&&ne.push(w,E+1),E>ve&&(ne.push(w,57344),E<=65535?ie.push(57344,E+1):(ie.push(57344,65536),oe.push(65536,E+1)))):w>ve&&w<=65535?E<=65535?ie.push(w,E+1):(ie.push(w,65536),oe.push(65536,E+1)):oe.push(w,E+1),se+=2;return{loneHighSurrogates:q,loneLowSurrogates:ne,bmp:ie,astral:oe}}(y),ie=ne.loneHighSurrogates,oe=ne.loneLowSurrogates,se=ne.bmp,le=ne.astral,pe=!dataIsEmpty(ie),ye=!dataIsEmpty(oe),Re=surrogateSet(le);return w&&(se=dataAddData(se,ie),pe=!1,se=dataAddData(se,oe),ye=!1),dataIsEmpty(se)||q.push(createBMPCharacterClasses(se)),Re.length&&q.push(function(y){var w=[];return forEach(y,(function(y){var E=y[0],q=y[1];w.push(createBMPCharacterClasses(E)+createBMPCharacterClasses(q))})),w.join("|")}(Re)),pe&&q.push(createBMPCharacterClasses(ie)+"(?![\\uDC00-\\uDFFF])"),ye&&q.push("(?:[^\\uD800-\\uDBFF]|^)"+createBMPCharacterClasses(oe)),q.join("|")},regenerate=function(y){return arguments.length>1&&(y=Me.call(arguments)),this instanceof regenerate?(this.data=[],y?this.add(y):this):(new regenerate).add(y)};regenerate.version="1.4.1";var Ae=regenerate.prototype;!function(y,w){var E;for(E in w)we.call(w,E)&&(y[E]=w[E])}(Ae,{add:function(y){var w=this;return null==y?w:y instanceof regenerate?(w.data=dataAddData(w.data,y.data),w):(arguments.length>1&&(y=Me.call(arguments)),isArray(y)?(forEach(y,(function(y){w.add(y)})),w):(w.data=dataAdd(w.data,isNumber(y)?y:symbolToCodePoint(y)),w))},remove:function(y){var w=this;return null==y?w:y instanceof regenerate?(w.data=dataRemoveData(w.data,y.data),w):(arguments.length>1&&(y=Me.call(arguments)),isArray(y)?(forEach(y,(function(y){w.remove(y)})),w):(w.data=dataRemove(w.data,isNumber(y)?y:symbolToCodePoint(y)),w))},addRange:function(y,w){var E=this;return E.data=dataAddRange(E.data,isNumber(y)?y:symbolToCodePoint(y),isNumber(w)?w:symbolToCodePoint(w)),E},removeRange:function(y,w){var E=this,q=isNumber(y)?y:symbolToCodePoint(y),ne=isNumber(w)?w:symbolToCodePoint(w);return E.data=dataRemoveRange(E.data,q,ne),E},intersection:function(y){var w=this,E=y instanceof regenerate?dataToArray(y.data):y;return w.data=function(y,w){for(var E,q=0,ne=w.length,ie=[];q2?E-2:0),ne=2;ne0?ne(q(y),9007199254740991):0}},function(y,w,E){"use strict";var q=E(179),ne=E(292),ie=E(0),oe=E.n(ie);w.a=function createElement(y,w){var E;y&&y.constructor===String&&(E=q.a.propsToAccessibilityComponent(w));for(var ie=E||y,se=Object(ne.a)(ie,w),le=arguments.length,pe=new Array(le>2?le-2:0),ge=2;ge=w.length)break;ie=w[q++]}else{if((q=w.next()).done)break;ie=q.value}var oe=ie;oe.__makeNative(),ne.a.API.connectAnimatedNodes(this.__getNativeTag(),oe.__getNativeTag())}}y.prototype.__makeNative.call(this)},w.__addChild=function __addChild(y){0===this._children.length&&this.__attach(),this._children.push(y),this.__isNative&&(y.__makeNative(),ne.a.API.connectAnimatedNodes(this.__getNativeTag(),y.__getNativeTag()))},w.__removeChild=function __removeChild(y){var w=this._children.indexOf(y);-1!==w?(this.__isNative&&y.__isNative&&ne.a.API.disconnectAnimatedNodes(this.__getNativeTag(),y.__getNativeTag()),this._children.splice(w,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")},w.__getChildren=function __getChildren(){return this._children},w.__callListeners=function __callListeners(w){if(y.prototype.__callListeners.call(this,w),!this.__isNative){var E=this._children,q=Array.isArray(E),ne=0;for(E=q?E:E[Symbol.iterator]();;){var ie;if(q){if(ne>=E.length)break;ie=E[ne++]}else{if((ne=E.next()).done)break;ie=ne.value}var oe=ie;oe.__getValue&&oe.__callListeners(oe.__getValue())}}},AnimatedWithChildren}(q.a);w.a=ie},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.withTranslationContext=w.useTranslationContext=w.TranslationProvider=w.TranslationContext=w.isDayOrMoment=void 0;var ie=ne(E(25)),oe=q(E(0)),se=ne(E(99)),le=E(109);w.isDayOrMoment=function isDayOrMoment(y){return null!=y.isSame};var pe=oe.default.createContext({t:function t(y){return y},tDateTimeParser:function tDateTimeParser(y){return(0,se.default)(y)}});w.TranslationContext=pe;w.TranslationProvider=function TranslationProvider(y){var w=y.children,E=y.value;return oe.default.createElement(pe.Provider,{value:E},w)};var ge=function useTranslationContext(){return(0,oe.useContext)(pe)};w.useTranslationContext=ge;w.withTranslationContext=function withTranslationContext(y){var w=function WithTranslationContextComponent(w){var E=ge();return oe.default.createElement(y,(0,ie.default)({},w,E))};return w.displayName="WithTranslationContext"+(0,le.getDisplayName)(y),w}},function(y,w){var E=y.exports={version:"2.6.11"};"number"==typeof __e&&(__e=E)},function(y,w,E){var q=E(807),ne=E(808),ie=E(436),oe=E(809);y.exports=function _slicedToArray(y,w){return q(y)||ne(y,w)||ie(y,w)||oe()}},function(y,w,E){"use strict";E.d(w,"a",(function(){return oe})),E.d(w,"b",(function(){return useStyleGuideContext}));var q=E(0),ne=E.n(q),ie=ne.a.createContext({codeRevision:0,cssRevision:"0",config:{},slots:{},displayMode:"collapse"}),oe=ie;function useStyleGuideContext(){return ne.a.useContext(ie)}},function(y,w,E){y.exports=!E(21)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(y,w,E){var q=E(22),ne=E(399),ie=E(120),oe=Object.defineProperty;w.f=E(41)?Object.defineProperty:function defineProperty(y,w,E){if(q(y),w=ie(w,!0),q(E),ne)try{return oe(y,w,E)}catch(y){}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(y[w]=E.value),y}},function(y,w,E){var q=E(53),ne=E(372).f,ie=E(149),oe=E(167),se=E(374),le=E(514),pe=E(518);y.exports=function(y,w){var E,ge,he,me,ve,ye=y.target,Re=y.global,we=y.stat;if(E=Re?q:we?q[ye]||se(ye,{}):(q[ye]||{}).prototype)for(ge in w){if(me=w[ge],he=y.noTargetGet?(ve=ne(E,ge))&&ve.value:E[ge],!pe(Re?ge:ye+(we?".":"#")+ge,y.forced)&&void 0!==he){if(typeof me==typeof he)continue;le(me,he)}(y.sham||he&&he.sham)&&ie(me,"sham",!0),oe(E,ge,me,y)}}},function(y,w,E){"use strict";var q=E(43),ne=E(215).map,ie=E(382),oe=E(216),se=ie("map"),le=oe("map");q({target:"Array",proto:!0,forced:!se||!le},{map:function map(y){return ne(this,y,arguments.length>1?arguments[1]:void 0)}})},function(y,w,E){var q=E(795),ne=E(796),ie=E(436),oe=E(797);y.exports=function _toConsumableArray(y){return q(y)||ne(y)||ie(y)||oe()}},function(y,w,E){Object.defineProperty(w,"__esModule",{value:!0}),w.MessageMock=w.users=w.messages=w.threadMessages=w.thread=w.messageWithUrlPreview=w.messageWithImages=w.message=w.channels=w.suggestionsContext=w.translationContext=w.channelContext=w.channel=w.client=void 0;var q=E(345).StreamChat,ne=E(99),ie=new q("qk4nn7rpcn75");w.client=ie,ie.setUser({id:"John"},"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiSm9obiIsImlhdCI6MTU0ODI5ODUxN30.hyonbQnOLuFsr15mdmc_JF4sBOm2SURK4eBvTOx3ZIg");var oe=ie.channel("messaging","general",{image:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_01_green.jpg",name:"Talk about the documentation"});w.channel=oe;var se={client:ie,channel:oe};w.channelContext=se;var le={t:function t(y){return y},tDateTimeParser:function tDateTimeParser(y){return ne(y)}};w.translationContext=le;w.suggestionsContext={openSuggestions:function openSuggestions(){},closeSuggestions:function closeSuggestions(){},setInputBoxContainerRef:function setInputBoxContainerRef(){},updateSuggestions:function updateSuggestions(){}};var pe=ie.queryChannels({type:"team",example:1},{last_message_at:-1},{subscribe:!0});w.channels=pe;w.message={attachments:[],command:"",created_at:"2019-01-25T00:18:59.675Z",html:'

https://unsplash.com/photos/lxuB4abGzXc

\n',own_reactions:[{created_at:"2019-01-25T16:24:00.173967Z",id:142,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"love",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}},{created_at:"2019-01-25T16:23:58.939438Z",id:141,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"like",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}}],reaction_counts:{like:1,love:1},reactions:[{created_at:"2019-01-25T16:24:00.173967Z",id:142,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"love",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}},{created_at:"2019-01-25T16:23:58.939438Z",id:141,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"like",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}}],reply_count:0,text:"Hey this is getstream message",id:"thierry-e298f569-8745-407f-a02b-f75c0206612f",type:"regular",updated_at:"2019-01-25T16:24:00.181Z",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",image:"https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"},__html:'

https://unsplash.com/photos/lxuB4abGzXc

\n',status:"received"};w.messageWithImages={attachments:[{image_url:"https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9",thumb_url:"https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9",type:"image"},{image_url:"https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG",thumb_url:"https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG",type:"image"},{image_url:"https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg",thumb_url:"https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg",type:"image"},{image_url:"https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg",thumb_url:"https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg",type:"image"}],command:"",created_at:"2019-01-25T00:18:59.675Z",html:"",own_reactions:[{created_at:"2019-01-25T16:24:00.173967Z",id:142,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"love",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}},{created_at:"2019-01-25T16:23:58.939438Z",id:141,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"like",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}}],reaction_counts:{like:1,love:1},reactions:[{created_at:"2019-01-25T16:24:00.173967Z",id:142,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"love",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}},{created_at:"2019-01-25T16:23:58.939438Z",id:141,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"like",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}}],reply_count:0,text:"This message contains images",id:"thierry-e298f569-8745-407f-a02b-f75c0206612f",type:"regular",updated_at:"2019-01-25T16:24:00.181Z",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",image:"https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"},__html:'

https://unsplash.com/photos/lxuB4abGzXc

\n',status:"received"};w.messageWithUrlPreview={attachments:[{image_url:"https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9",og_scrape_url:"https://unsplash.com/photos/lxuB4abGzXc",text:"Download this photo in Addu City, Maldives by Ibrahim Shabil (@shabilphotos)",thumb_url:"https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9",title:"Cosmic Home photo by Ibrahim Shabil (@shabilphotos) on Unsplash",title_link:"https://unsplash.com/photos/lxuB4abGzXc",type:"image"}],command:"",created_at:"2019-01-25T00:18:59.675Z",html:'

https://unsplash.com/photos/lxuB4abGzXc

\n',own_reactions:[{created_at:"2019-01-25T16:24:00.173967Z",id:142,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"love",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}},{created_at:"2019-01-25T16:23:58.939438Z",id:141,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"like",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}}],reaction_counts:{like:1,love:1},reactions:[{created_at:"2019-01-25T16:24:00.173967Z",id:142,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"love",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}},{created_at:"2019-01-25T16:23:58.939438Z",id:141,message_id:"d46540e6-fb54-42bf-9de1-654c866cf587",type:"like",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"}}],reply_count:0,text:"https://unsplash.com/photos/lxuB4abGzXc",id:"thierry-e298f569-8745-407f-a02b-f75c0206612f",type:"regular",updated_at:"2019-01-25T16:24:00.181Z",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",image:"https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png",last_active:"2019-01-25T09:23:47.108127-07:00",online:!0,role:"user",updated_at:"2019-01-25T16:23:47.052538Z"},__html:'

https://unsplash.com/photos/lxuB4abGzXc

\n',status:"received"};w.thread={attachments:[{image_url:"https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9",og_scrape_url:"https://unsplash.com/photos/f3hDGOHptrM",text:"Download this photo by Sandra Seitamaa (@seitamaaphotography)",thumb_url:"https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9",title:"Plant, tree, nature and river HD photo by Sandra Seitamaa (@seitamaaphotography) on Unsplash",title_link:"https://unsplash.com/photos/f3hDGOHptrM",type:"image"}],command:"",created_at:"2019-01-25T21:25:45.306Z",html:'

this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM

\n',own_reactions:[],reaction_counts:null,reactions:[],reply_count:2,text:"this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM",id:"thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5",type:"regular",updated_at:"2019-01-25T21:25:45.306Z",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",online:!0,role:"user",updated_at:"2019-01-25T21:27:39.606466Z"},__html:'

this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM

\n',status:"received"};var ge=[{attachments:[],command:"",created_at:new Date("2019-01-25T21:26:06.346Z"),html:"

whow, where is that?

\n",own_reactions:[],parent_id:"6312fb0b-0c94-4107-a036-376ac5ab650b",reaction_counts:null,reactions:[],reply_count:0,text:"whow, where is that?",id:"thierry-97a02ade-3a38-4400-9377-001c10fc2663",type:"reply",updated_at:"2019-01-25T21:26:06.346Z",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",invisible:!1,last_active:"0001-01-01T00:00:00Z",mutes:[],online:!1,role:"user",updated_at:"2019-01-25T21:27:39.606466Z"},__html:"

whow, where is that?

\n",status:"received"},{attachments:[],command:"",created_at:new Date("2019-01-25T21:26:11.863Z"),html:"

it’s soo green, amazing

\n",own_reactions:[],parent_id:"6312fb0b-0c94-4107-a036-376ac5ab650b",reaction_counts:null,reactions:[],reply_count:0,text:"it's soo green, amazing",id:"thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa",type:"reply",updated_at:"2019-01-25T21:26:11.863Z",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",invisible:!1,last_active:"0001-01-01T00:00:00Z",mutes:[],online:!1,role:"user",updated_at:"2019-01-25T21:27:39.606466Z"},__html:"

it’s soo green, amazing

\n",status:"received"}];w.threadMessages=ge;var he=[{attachments:[],command:"",created_at:new Date("2019-01-25T21:26:06.346Z"),html:"

whow, where is that?

\n",own_reactions:[],parent_id:"6312fb0b-0c94-4107-a036-376ac5ab650b",reaction_counts:null,reactions:[],reply_count:0,text:"whow, where is that?",id:"thierry-97a02ade-3a38-4400-9377-001c10fc2663",type:"reply",updated_at:"2019-01-25T21:26:06.346Z",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",invisible:!1,last_active:"0001-01-01T00:00:00Z",mutes:[],online:!1,role:"user",updated_at:"2019-01-25T21:27:39.606466Z"},__html:"

whow, where is that?

\n",status:"received"},{attachments:[],command:"",created_at:new Date("2019-01-25T21:26:11.863Z"),html:"

it’s soo green, amazing

\n",own_reactions:[],parent_id:"6312fb0b-0c94-4107-a036-376ac5ab650b",reaction_counts:null,reactions:[],reply_count:0,text:"it's soo green, amazing",id:"thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa",type:"reply",updated_at:"2019-01-25T21:26:11.863Z",user:{created_at:"2019-01-22T16:35:18.417456Z",id:"thierry",invisible:!1,last_active:"0001-01-01T00:00:00Z",mutes:[],online:!1,role:"user",updated_at:"2019-01-25T21:27:39.606466Z"},__html:"

it’s soo green, amazing

\n",status:"received"}];w.messages=he;w.users=[{created_at:"2019-01-28T16:03:25.619982Z",id:"thierry",last_active:"2019-01-28T15:07:32.314676-07:00",online:!0,role:"user",updated_at:"2019-01-28T22:07:32.297119Z"}];var me={handleFlag:console.log,handleMute:console.log,handleEdit:console.log,handleDelete:console.log,canDeleteMessage:function canDeleteMessage(){return!0},canEditMessage:function canEditMessage(){return!0}};w.MessageMock=me,function dynamicallyLoadScript(y){return new Promise((function(w,E){var q=document.createElement("script");q.src=y,q.onload=w,q.onerror=function(){return E(new Error("Error when loading "+y+"!"))},document.body.appendChild(q)}))}("https://snack.expo.io/embed.js")},function(y,w,E){"use strict";E.d(w,"a",(function(){return useMergeRefs}));var q=E(0),ne=E(294);function useMergeRefs(){for(var y=arguments.length,w=new Array(y),E=0;E=2,"Bad output range"),function checkPattern(y){for(var w=y[0].replace(ge,""),E=1;E=2,"inputRange must have at least 2 elements");for(var w=1;w=y[w-1],"inputRange must be monotonically non-decreasing "+y)}(E),oe()(E.length===w.length,"inputRange ("+E.length+") and outputRange ("+w.length+") must have the same length");var q=y.easing||pe,ne="extend";void 0!==y.extrapolateLeft?ne=y.extrapolateLeft:void 0!==y.extrapolate&&(ne=y.extrapolate);var ie="extend";return void 0!==y.extrapolateRight?ie=y.extrapolateRight:void 0!==y.extrapolate&&(ie=y.extrapolate),function(y){oe()("number"==typeof y,"Cannot interpolation an input which is not a number");var se=function findRange(y,w){var E;for(E=1;E=y);++E);return E-1}(y,E);return function interpolate(y,w,E,q,ne,ie,oe,se){var le=y;if(leE){if("identity"===se)return le;"clamp"===se&&(le=E)}if(q===ne)return q;if(w===E)return y<=w?q:ne;w===-1/0?le=-le:E===1/0?le-=w:le=(le-w)/(E-w);le=ie(le),q===-1/0?le=-le:ne===1/0?le+=q:le=le*(ne-q)+q;return le}(y,E[se],E[se+1],w[se],w[se+1],q,ne,ie)}}function colorToRgba(y){var w=le()(y);return null===w?y:"rgba("+((4278190080&(w=w||0))>>>24)+", "+((16711680&w)>>>16)+", "+((65280&w)>>>8)+", "+(255&w)/255+")"}var ge=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function checkInfiniteRange(y,w){oe()(w.length>=2,y+" must have at least 2 elements"),oe()(2!==w.length||w[0]!==-1/0||w[1]!==1/0,y+"cannot be ]-infinity;+infinity[ "+w)}var he=function(y){function AnimatedInterpolation(w,E){var q;return(q=y.call(this)||this)._parent=w,q._config=E,q._interpolation=createInterpolation(E),q}!function _inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(AnimatedInterpolation,y);var w=AnimatedInterpolation.prototype;return w.__makeNative=function __makeNative(){this._parent.__makeNative(),y.prototype.__makeNative.call(this)},w.__getValue=function __getValue(){var y=this._parent.__getValue();return oe()("number"==typeof y,"Cannot interpolate an input which is not a number."),this._interpolation(y)},w.interpolate=function interpolate(y){return new AnimatedInterpolation(this,y)},w.__attach=function __attach(){this._parent.__addChild(this)},w.__detach=function __detach(){this._parent.__removeChild(this),y.prototype.__detach.call(this)},w.__transformDataType=function __transformDataType(y){return y.map(ne.a.transformDataType)},w.__getNativeConfig=function __getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}},AnimatedInterpolation}(q.a);he.__createInterpolation=createInterpolation,w.a=he},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return pe}));var q=E(14),ne=E(5),ie=E.n(ne),oe=q.canUseDOM?window:{devicePixelRatio:void 0,innerHeight:void 0,innerWidth:void 0,screen:{height:void 0,width:void 0}},se={},le={},pe=function(){function Dimensions(){}return Dimensions.get=function get(y){return ie()(se[y],"No dimension set for key "+y),se[y]},Dimensions.set=function set(y){y&&(q.canUseDOM?ie()(!1,"Dimensions cannot be set in the browser"):(se.screen=y.screen,se.window=y.window))},Dimensions._update=function _update(){se.window={fontScale:1,height:oe.innerHeight,scale:oe.devicePixelRatio||1,width:oe.innerWidth},se.screen={fontScale:1,height:oe.screen.height,scale:oe.devicePixelRatio||1,width:oe.screen.width},Array.isArray(le.change)&&le.change.forEach((function(y){return y(se)}))},Dimensions.addEventListener=function addEventListener(y,w){le[y]=le[y]||[],le[y].push(w)},Dimensions.removeEventListener=function removeEventListener(y,w){Array.isArray(le[y])&&(le[y]=le[y].filter((function(y){return y!==w})))},Dimensions}();pe._update(),q.canUseDOM&&window.addEventListener("resize",pe._update,!1)},function(y,w,E){"use strict";E.d(w,"b",(function(){return q})),E.d(w,"c",(function(){return ne})),E.d(w,"d",(function(){return ie})),E.d(w,"a",(function(){return oe})),E.d(w,"e",(function(){return se}));var q="react-native-stylesheet",ne={reset:0,modality:.1,classicReset:.5,classic:1,atomic:2.2,custom:{borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,marginHorizontal:2.1,marginVertical:2.1,paddingHorizontal:2.1,paddingVertical:2.1}},ie={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],margin:["marginTop","marginRight","marginBottom","marginLeft"],marginHorizontal:["marginRight","marginLeft"],marginVertical:["marginTop","marginBottom"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"],paddingHorizontal:["paddingRight","paddingLeft"],paddingVertical:["paddingTop","paddingBottom"]},oe="monospace,monospace",se='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif'},function(y,w,E){var q=E(107);y.exports=function(y){return Object(q(y))}},function(y,w,E){(function(w){var check=function(y){return y&&y.Math==Math&&y};y.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof w&&w)||Function("return this")()}).call(this,E(65))},function(y,w){y.exports=function(y){return"object"==typeof y?null!==y:"function"==typeof y}},function(y,w,E){"use strict";E.r(w);var q=E(48);w.default=function findNodeHandle(y){var w;try{w=Object(q.findDOMNode)(y)}catch(y){}return w}},function(y,w,E){y.exports=E(331)},function(y,w){function asyncGeneratorStep(y,w,E,q,ne,ie,oe){try{var se=y[ie](oe),le=se.value}catch(y){return void E(y)}se.done?w(le):Promise.resolve(le).then(q,ne)}y.exports=function _asyncToGenerator(y){return function(){var w=this,E=arguments;return new Promise((function(q,ne){var ie=y.apply(w,E);function _next(y){asyncGeneratorStep(ie,q,ne,_next,_throw,"next",y)}function _throw(y){asyncGeneratorStep(ie,q,ne,_next,_throw,"throw",y)}_next(void 0)}))}}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.makeImageCompatibleUrl=w.MESSAGE_ACTIONS=w.ACITriggerSettings=w.isMentionTrigger=w.queryMembersDebounced=w.ProgressIndicatorTypes=w.FileState=w.emojiData=void 0;var ne=q(E(56)),ie=q(E(57)),oe=q(E(45)),se=q(E(218));w.emojiData=[{icon:"👍",id:"like"},{icon:"❤️️",id:"love"},{icon:"😂",id:"haha"},{icon:"😮",id:"wow"},{icon:"😔",id:"sad"},{icon:"😠",id:"angry"}];var le=Object.freeze({FINISHED:"finished",NO_FILE:"no_file",UPLOAD_FAILED:"upload_failed",UPLOADED:"uploaded",UPLOADING:"uploading"});w.FileState=le;var pe=Object.freeze({IN_PROGRESS:"in_progress",RETRY:"retry"});w.ProgressIndicatorTypes=pe;var ge=function isUserResponse(y){return void 0!==y},he=function getMembersAndWatchers(y){var w=[].concat((0,oe.default)(function getMembers(y){var w=y.state.members;return w&&Object.values(w).length?Object.values(w).filter((function(y){return y.user})).map((function(y){return y.user})):[]}(y)),(0,oe.default)(function getWatchers(y){var w=y.state.watchers;return w&&Object.values(w).length?(0,oe.default)(Object.values(w)):[]}(y)));return Object.values(w.reduce((function(y,w){return y[w.id]||(y[w.id]=w),y}),{}))},me=function(){var y=(0,ie.default)(ne.default.mark((function _callee(y,w,E){var q,ie;return ne.default.wrap((function _callee$(ne){for(;;)switch(ne.prev=ne.next){case 0:if("string"!=typeof w){ne.next=7;break}return ne.next=3,y.queryMembers({name:{$autocomplete:w}});case 3:q=ne.sent,ie=[],q.members.forEach((function(y){return ge(y.user)&&ie.push(y.user)})),E&&ie&&E(ie);case 7:case"end":return ne.stop()}}),_callee)})));return function queryMembers(w,E,q){return y.apply(this,arguments)}}(),ve=(0,se.default)(me,200,{leading:!1,trailing:!0});w.queryMembersDebounced=ve;w.isMentionTrigger=function isMentionTrigger(y){return"@"===y};w.ACITriggerSettings=function ACITriggerSettings(y){var w=y.channel,E=y.onMentionSelectItem,q=y.t,ne=void 0===q?function(y){return y}:q,ie=y.autocompleteSuggestionsLimit,oe=void 0===ie?10:ie;return{"/":{component:"CommandsItem",dataProvider:function dataProvider(y,E,q){if(0!==E.indexOf("/"))return[];var ne=function getCommands(y){var w;return(null==(w=y.getConfig())?void 0:w.commands)||[]}(w).filter((function(w){var E;return y&&-1!==(null==(E=w.name)?void 0:E.indexOf(y))}));ne.sort((function(w,E){var q,ne,ie=(null==(q=w.name)?void 0:q.toLowerCase())||"",oe=(null==(ne=E.name)?void 0:ne.toLowerCase())||"";return y&&0===ie.indexOf(y)&&(ie="0"+ie),y&&0===oe.indexOf(y)&&(oe="0"+oe),ieoe?1:0}));var ie=ne.slice(0,oe);return q&&q(ie,y),ie},output:function output(y){return{caretPosition:"next",key:""+y.name,text:"/"+y.name}},title:ne("Commands")},"@":{callback:function callback(y){E(y)},component:"MentionsItem",dataProvider:function dataProvider(y,E,q){var ne=w.state.members;if(!y||Object.values(ne).length<100){var ie=he(w).filter((function(w){var E;return!y||(-1!==(null==(E=w.name)?void 0:E.toLowerCase().indexOf(y.toLowerCase()))||-1!==w.id.toLowerCase().indexOf(y.toLowerCase()))})).slice(0,oe);return q&&q(ie,y),ie}return ve(w,y,(function(w){q&&q(w,y)}))},output:function output(y){return{caretPosition:"next",key:y.id,text:"@"+(y.name||y.id)}},title:ne("Searching for people")}}};w.MESSAGE_ACTIONS={delete:"delete",edit:"edit",reactions:"reactions",reply:"reply"};w.makeImageCompatibleUrl=function makeImageCompatibleUrl(y){return(0===y.indexOf("//")?"https:"+y:y).trim()}},function(y,w,E){var q=E(54);y.exports=function(y){if(!q(y))throw TypeError(String(y)+" is not an object");return y}},function(y,w,E){"use strict";var q=E(43),ne=E(280);q({target:"RegExp",proto:!0,forced:/./.exec!==ne},{exec:ne})},function(y,w,E){"use strict";E.d(w,"a",(function(){return normalizeValueWithProperty}));var q=E(226),ne=E(303),ie={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function normalizeValueWithProperty(y,w){var E=y;return null!=w&&q.a[w]||"number"!=typeof y?null!=w&&ie[w]&&(E=Object(ne.a)(y)):E=y+"px",E}},function(y,w,E){"use strict";function _defineProperties(y,w){for(var E=0;E"+ne+""};y.exports=function(y,w){var E={};E[y]=w(createHTML),q(q.P+q.F*ne((function(){var w=""[y]('"');return w!==w.toLowerCase()||w.split('"').length>3})),"String",E)}},function(y,w){var E;E=function(){return this}();try{E=E||new Function("return this")()}catch(y){"object"==typeof window&&(E=window)}y.exports=E},function(y,w){y.exports=function isObject(y){var w=typeof y;return null!=y&&("object"==w||"function"==w)}},function(y,w,E){"use strict";var q=E(446),ne=Object.prototype.toString;function isArray(y){return"[object Array]"===ne.call(y)}function isUndefined(y){return void 0===y}function isObject(y){return null!==y&&"object"==typeof y}function isPlainObject(y){if("[object Object]"!==ne.call(y))return!1;var w=Object.getPrototypeOf(y);return null===w||w===Object.prototype}function isFunction(y){return"[object Function]"===ne.call(y)}function forEach(y,w){if(null!=y)if("object"!=typeof y&&(y=[y]),isArray(y))for(var E=0,q=y.length;E=y.length?{done:!0}:{done:!1,value:y[q++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(E=y["function"==typeof Symbol?Symbol.iterator:"@@iterator"]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);E0&&Object.keys(E).forEach((function(q){y.find((function(y){return y.id===q}))&&(w+=E[q])})),w},handleAction:lt,handleDelete:it,handleEdit:function handleEdit(){return Oe(_e)},handleFlag:ot,handleMute:st,handleReaction:ut,handleRetry:pt,isAdmin:tt,isModerator:nt,isMyMessage:et,message:_e,Message:Se,onPress:mt,openReactionPicker:ct,reactionPickerVisible:$e,setActionSheetVisible:Ne,showActionSheet:dt})))}),(function areEqual(y,w){var E,q,ne=y.lastReceivedId,ie=y.message,oe=y.readBy,se=w.lastReceivedId,le=w.message,pe=w.readBy,ge=ie.updated_at===le.updated_at,he=ne===se||ne!==le.id&&se!==le.id&&ne!==ie.id&&se!==ie.id,me=(null==(E=ie.latest_reactions)?void 0:E.length)===(null==(q=le.latest_reactions)?void 0:q.length),ve=ie.reply_count===le.reply_count;return ge&&me&&ve&&he&&oe===pe}));w.Message=function Message(y){var w=(0,Re.useChannelContext)(),E=w.channel,q=w.disabled,ne=(0,we.useChatContext)().client,oe=(0,_e.useKeyboardContext)().dismissKeyboard,se=(0,Me.useMessagesContext)(),le=se.emojiData,pe=se.removeMessage,ge=se.retrySendMessage,me=se.setEditingState,ve=se.updateMessage;return he.default.createElement(Se,(0,ie.default)({},y,{channel:E,client:ne,disabled:q,dismissKeyboard:oe,emojiData:le,removeMessage:pe,retrySendMessage:ge,setEditingState:me,updateMessage:ve}))}},function(y,w,E){var q=E(31);y.exports=!q((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(y,w,E){var q=E(78),ne=E(509),ie=E(59),oe=E(274),se=Object.defineProperty;w.f=q?se:function defineProperty(y,w,E){if(ie(y),w=oe(w,!0),ie(E),ne)try{return se(y,w,E)}catch(y){}if("get"in E||"set"in E)throw TypeError("Accessors not supported");return"value"in E&&(y[w]=E.value),y}},function(y,w,E){"use strict";var q=E(43),ne=E(31),ie=E(381),oe=E(54),se=E(125),le=E(169),pe=E(1027),ge=E(522),he=E(382),me=E(69),ve=E(523),ye=me("isConcatSpreadable"),Re=9007199254740991,we="Maximum allowed index exceeded",_e=ve>=51||!ne((function(){var y=[];return y[ye]=!1,y.concat()[0]!==y})),Me=he("concat"),isConcatSpreadable=function(y){if(!oe(y))return!1;var w=y[ye];return void 0!==w?!!w:ie(y)};q({target:"Array",proto:!0,forced:!_e||!Me},{concat:function concat(y){var w,E,q,ne,ie,oe=se(this),he=ge(oe,0),me=0;for(w=-1,q=arguments.length;wRe)throw TypeError(we);for(E=0;E=Re)throw TypeError(we);pe(he,me++,ie)}return he.length=me,he}})},function(y,w,E){"use strict";var q=E(43),ne=E(384);q({target:"String",proto:!0,forced:E(385)("small")},{small:function small(){return ne(this,"small","","")}})},function(y,w,E){"use strict";E.r(w),E.d(w,"unstable_createElement",(function(){return q.a})),E.d(w,"findNodeHandle",(function(){return ne.default})),E.d(w,"processColor",(function(){return ie.a})),E.d(w,"render",(function(){return se})),E.d(w,"unmountComponentAtNode",(function(){return le})),E.d(w,"NativeModules",(function(){return ge})),E.d(w,"AccessibilityInfo",(function(){return Re})),E.d(w,"Alert",(function(){return we})),E.d(w,"Animated",(function(){return _e.default})),E.d(w,"Appearance",(function(){return ke})),E.d(w,"AppRegistry",(function(){return et})),E.d(w,"AppState",(function(){return tt.default})),E.d(w,"BackHandler",(function(){return rt})),E.d(w,"Clipboard",(function(){return it})),E.d(w,"DeviceInfo",(function(){return st})),E.d(w,"Dimensions",(function(){return ot.default})),E.d(w,"Easing",(function(){return dt.default})),E.d(w,"I18nManager",(function(){return ct.a})),E.d(w,"Keyboard",(function(){return ut.default})),E.d(w,"InteractionManager",(function(){return lt.a})),E.d(w,"LayoutAnimation",(function(){return pt.default})),E.d(w,"Linking",(function(){return gt.default})),E.d(w,"NativeEventEmitter",(function(){return ht})),E.d(w,"PanResponder",(function(){return _t})),E.d(w,"PixelRatio",(function(){return Mt.a})),E.d(w,"Platform",(function(){return St.default})),E.d(w,"Share",(function(){return kt})),E.d(w,"StyleSheet",(function(){return Te.default})),E.d(w,"UIManager",(function(){return pe.a})),E.d(w,"Vibration",(function(){return At})),E.d(w,"ActivityIndicator",(function(){return Dt.default})),E.d(w,"Button",(function(){return Lt})),E.d(w,"CheckBox",(function(){return Ft})),E.d(w,"FlatList",(function(){return Bt.default})),E.d(w,"Image",(function(){return Vt.default})),E.d(w,"ImageBackground",(function(){return Ut})),E.d(w,"KeyboardAvoidingView",(function(){return Gt})),E.d(w,"Modal",(function(){return qt.default})),E.d(w,"Picker",(function(){return Xt})),E.d(w,"Pressable",(function(){return Kn})),E.d(w,"ProgressBar",(function(){return Jn})),E.d(w,"RefreshControl",(function(){return Zn.a})),E.d(w,"SafeAreaView",(function(){return ia})),E.d(w,"ScrollView",(function(){return sa.a})),E.d(w,"SectionList",(function(){return da.a})),E.d(w,"StatusBar",(function(){return la.default})),E.d(w,"Switch",(function(){return va})),E.d(w,"Text",(function(){return Pt.default})),E.d(w,"TextInput",(function(){return ya.default})),E.d(w,"Touchable",(function(){return vr})),E.d(w,"TouchableHighlight",(function(){return br})),E.d(w,"TouchableNativeFeedback",(function(){return _r})),E.d(w,"TouchableOpacity",(function(){return Ot.default})),E.d(w,"TouchableWithoutFeedback",(function(){return Er})),E.d(w,"View",(function(){return je.default})),E.d(w,"VirtualizedList",(function(){return Ar})),E.d(w,"YellowBox",(function(){return Dr})),E.d(w,"DrawerLayoutAndroid",(function(){return Or})),E.d(w,"InputAccessoryView",(function(){return Pr})),E.d(w,"ToastAndroid",(function(){return Ir})),E.d(w,"PermissionsAndroid",(function(){return Tr})),E.d(w,"Settings",(function(){return Lr})),E.d(w,"Systrace",(function(){return jr})),E.d(w,"TVEventHandler",(function(){return zr})),E.d(w,"DeviceEventEmitter",(function(){return Fr})),E.d(w,"useColorScheme",(function(){return useColorScheme})),E.d(w,"useWindowDimensions",(function(){return useWindowDimensions}));var q=E(35),ne=E(55),ie=E(288),oe=E(48),se=oe.render,le=oe.unmountComponentAtNode,pe=E(32),ge={UIManager:pe.a},he=E(14);function isScreenReaderEnabled(){return new Promise((function(y,w){y(!0)}))}var me=he.canUseDOM?window.matchMedia("(prefers-reduced-motion: reduce)"):null;var ve={},ye={isScreenReaderEnabled:isScreenReaderEnabled,isReduceMotionEnabled:function isReduceMotionEnabled(){return new Promise((function(y,w){y(!me||me.matches)}))},fetch:isScreenReaderEnabled,addEventListener:function addEventListener(y,w){if("reduceMotionChanged"===y){if(!me)return;var E=function listener(y){w(y.matches)};me.addEventListener("change",E),ve[w]=E}return{remove:function remove(){return ye.removeEventListener(y,w)}}},setAccessibilityFocus:function setAccessibilityFocus(y){},announceForAccessibility:function announceForAccessibility(y){},removeEventListener:function removeEventListener(y,w){if("reduceMotionChanged"===y){var E=ve[w];if(!E||!me)return;me.removeEventListener("change",E)}}},Re=ye,we=function(){function Alert(){}return Alert.alert=function alert(){},Alert}(),_e=E(286);var Me=function getQuery(){return he.canUseDOM&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null}(),Se=new WeakMap,ke={getColorScheme:function getColorScheme(){return Me&&Me.matches?"dark":"light"},addChangeListener:function addChangeListener(y){var w=Se.get(y);w||(w=function mappedListener(w){var E=w.matches;y({colorScheme:E?"dark":"light"})},Se.set(y,w)),Me&&Me.addListener(w)},removeChangeListener:function removeChangeListener(y){var w=Se.get(y);w&&(Me&&Me.removeListener(w),Se.delete(y))}},Ae=E(5),Oe=E.n(Ae),Te=E(10),je=E(9),Fe=E(0),Be=E.n(Fe),Ve=Object(Fe.createContext)(null);function AppContainer(y){var w=y.children,E=y.WrapperComponent,q=Be.a.createElement(je.default,{children:w,key:1,pointerEvents:"box-none",style:Ne.appContainer});return E&&(q=Be.a.createElement(E,null,q)),Be.a.createElement(Ve.Provider,{value:y.rootTag},Be.a.createElement(je.default,{pointerEvents:"box-none",style:Ne.appContainer},q))}var Ne=Te.default.create({appContainer:{flex:1}}),Ue=E(176);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;ww&&(ie+=q&&E?se.currentPageX:q&&!E?se.currentPageY:!q&&E?se.previousPageX:se.previousPageY,oe=1);else for(var le=0;le=w){ie+=q&&E?pe.currentPageX:q&&!E?pe.currentPageY:!q&&E?pe.previousPageX:pe.previousPageY,oe++}}return oe>0?ie/oe:ft.noCentroid},currentCentroidXOfTouchesChangedAfter:function currentCentroidXOfTouchesChangedAfter(y,w){return ft.centroidDimension(y,w,!0,!0)},currentCentroidYOfTouchesChangedAfter:function currentCentroidYOfTouchesChangedAfter(y,w){return ft.centroidDimension(y,w,!1,!0)},previousCentroidXOfTouchesChangedAfter:function previousCentroidXOfTouchesChangedAfter(y,w){return ft.centroidDimension(y,w,!0,!1)},previousCentroidYOfTouchesChangedAfter:function previousCentroidYOfTouchesChangedAfter(y,w){return ft.centroidDimension(y,w,!1,!1)},currentCentroidX:function currentCentroidX(y){return ft.centroidDimension(y,0,!0,!0)},currentCentroidY:function currentCentroidY(y){return ft.centroidDimension(y,0,!1,!0)},noCentroid:-1},mt=ft,vt=mt.currentCentroidXOfTouchesChangedAfter,yt=mt.currentCentroidYOfTouchesChangedAfter,Rt=mt.previousCentroidXOfTouchesChangedAfter,bt=mt.previousCentroidYOfTouchesChangedAfter,xt=mt.currentCentroidX,wt=mt.currentCentroidY,Ct={_initializeGestureState:function _initializeGestureState(y){y.moveX=0,y.moveY=0,y.x0=0,y.y0=0,y.dx=0,y.dy=0,y.vx=0,y.vy=0,y.numberActiveTouches=0,y._accountsForMovesUpTo=0},_updateGestureStateOnMove:function _updateGestureStateOnMove(y,w){y.numberActiveTouches=w.numberActiveTouches,y.moveX=vt(w,y._accountsForMovesUpTo),y.moveY=yt(w,y._accountsForMovesUpTo);var E=y._accountsForMovesUpTo,q=Rt(w,E),ne=vt(w,E),ie=bt(w,E),oe=yt(w,E),se=y.dx+(ne-q),le=y.dy+(oe-ie),pe=w.mostRecentTimeStamp-y._accountsForMovesUpTo;y.vx=(se-y.dx)/pe,y.vy=(le-y.dy)/pe,y.dx=se,y.dy=le,y._accountsForMovesUpTo=w.mostRecentTimeStamp},create:function create(y){var w={handle:null},E={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:function onStartShouldSetResponder(w){return null!=y.onStartShouldSetPanResponder&&y.onStartShouldSetPanResponder(w,E)},onMoveShouldSetResponder:function onMoveShouldSetResponder(w){return null!=y.onMoveShouldSetPanResponder&&y.onMoveShouldSetPanResponder(w,E)},onStartShouldSetResponderCapture:function onStartShouldSetResponderCapture(w){return 1===w.nativeEvent.touches.length&&Ct._initializeGestureState(E),E.numberActiveTouches=w.touchHistory.numberActiveTouches,null!=y.onStartShouldSetPanResponderCapture&&y.onStartShouldSetPanResponderCapture(w,E)},onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(w){var q=w.touchHistory;return E._accountsForMovesUpTo!==q.mostRecentTimeStamp&&(Ct._updateGestureStateOnMove(E,q),!!y.onMoveShouldSetPanResponderCapture&&y.onMoveShouldSetPanResponderCapture(w,E))},onResponderGrant:function onResponderGrant(q){return w.handle||(w.handle=lt.a.createInteractionHandle()),E.x0=xt(q.touchHistory),E.y0=wt(q.touchHistory),E.dx=0,E.dy=0,y.onPanResponderGrant&&y.onPanResponderGrant(q,E),null==y.onShouldBlockNativeResponder||y.onShouldBlockNativeResponder(q,E)},onResponderReject:function onResponderReject(q){clearInteractionHandle(w,y.onPanResponderReject,q,E)},onResponderRelease:function onResponderRelease(q){clearInteractionHandle(w,y.onPanResponderRelease,q,E),Ct._initializeGestureState(E)},onResponderStart:function onResponderStart(w){var q=w.touchHistory;E.numberActiveTouches=q.numberActiveTouches,y.onPanResponderStart&&y.onPanResponderStart(w,E)},onResponderMove:function onResponderMove(w){var q=w.touchHistory;E._accountsForMovesUpTo!==q.mostRecentTimeStamp&&(Ct._updateGestureStateOnMove(E,q),y.onPanResponderMove&&y.onPanResponderMove(w,E))},onResponderEnd:function onResponderEnd(q){var ne=q.touchHistory;E.numberActiveTouches=ne.numberActiveTouches,clearInteractionHandle(w,y.onPanResponderEnd,q,E)},onResponderTerminate:function onResponderTerminate(q){clearInteractionHandle(w,y.onPanResponderTerminate,q,E),Ct._initializeGestureState(E)},onResponderTerminationRequest:function onResponderTerminationRequest(w){return null==y.onPanResponderTerminationRequest||y.onPanResponderTerminationRequest(w,E)}},getInteractionHandle:function getInteractionHandle(){return w.handle}}}};function clearInteractionHandle(y,w,E,q){y.handle&&(lt.a.clearInteractionHandle(y.handle),y.handle=null),w&&w(E,q)}var _t=Ct,Mt=E(290),St=E(102);function _defineProperties(y,w){for(var E=0;E=0||(ne[E]=y[E]);return ne}(y,["color","disabled","onChange","onValueChange","style","value"]);var ge=Fe.createElement(je.default,{style:[zt.fakeControl,le&&zt.fakeControlChecked,le&&E&&{backgroundColor:E,borderColor:E},ne&&zt.fakeControlDisabled,le&&ne&&zt.fakeControlCheckedAndDisabled]}),he=Object(q.a)("input",{checked:le,disabled:ne,onChange:function handleChange(y){var w=y.nativeEvent.target.checked;y.nativeEvent.value=w,ie&&ie(y),oe&&oe(w)},ref:w,style:[zt.nativeControl,zt.cursorInherit],type:"checkbox"});return Fe.createElement(je.default,CheckBox_extends({},pe,{style:[zt.root,se,ne&&zt.cursorDefault]}),ge,he)}));jt.displayName="CheckBox";var zt=Te.default.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:function CheckBox_objectSpread(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["children","style","imageStyle","imageRef"]),le=Te.default.flatten(ne),pe=le.height,ge=le.width;return Fe.createElement(je.default,{ref:w,style:ne},Fe.createElement(Vt.default,ImageBackground_extends({},se,{ref:oe,style:[Te.default.absoluteFill,{width:ge,height:pe,zIndex:-1},ie]})),E)}));Nt.displayName="ImageBackground";var Ut=Nt;function KeyboardAvoidingView_extends(){return(KeyboardAvoidingView_extends=Object.assign||function(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["behavior","contentContainerStyle","keyboardVerticalOffset"]));return Be.a.createElement(je.default,KeyboardAvoidingView_extends({onLayout:this.onLayout},w))},KeyboardAvoidingView}(Be.a.Component),qt=E(287),Wt=E(47),$t=E(130);function Picker_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function Picker_defineProperty(y,w,E){return w in y?Object.defineProperty(y,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[w]=E,y}var Kt=Object(Fe.forwardRef)((function(y,w){var E=y.children,ne=y.enabled,ie=y.onValueChange,oe=y.selectedValue,se=y.style,le=y.testID,pe=(y.itemStyle,y.mode,y.prompt,function Picker_objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,q,ne={},ie=Object.keys(y);for(q=0;q=0||(ne[E]=y[E]);return ne}(y,["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"])),ge=Object(Fe.useRef)(null);var he=function Picker_objectSpread(y){for(var w=1;w1&&(an=!1),void(tn!==cn&&(nn=cn,tn=cn,callListeners()));w!==un&&w!==gn&&w!==yn&&w!==vn&&w!==Rn&&w!==bn||(an=!1)}}function callListeners(){var y={activeModality:tn,modality:nn};rn.forEach((function(w){w(y)}))}he.canUseDOM&&(_n(window,(function onBlurWindow(){Qt=nn,en=tn,tn=sn,nn=sn,callListeners(),an=!1})),Mn(window,(function onFocusWindow(){restoreModality()})),kn(document,(function onKeyDown(y){y.metaKey||y.altKey||y.ctrlKey||nn!==sn&&(nn=sn,tn=sn,callListeners())})),En(document,onPointerish),An(document,onPointerish),Sn(document,(function onVisibilityChange(){"hidden"!==document.visibilityState&&restoreModality()})),Dn(document,onPointerish),On(document,onPointerish),Pn(document,onPointerish),In(document,onPointerish),jn(document,onPointerish),zn(document,onPointerish),Fn(document,onPointerish),Ln(document,onPointerish),Tn(document,onPointerish));var Bn=E(118),Vn="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function useStable(y){var w=Fe.useRef(Vn);return w.current===Vn&&(w.current=y()),w.current}function useEvent(y,w){var E=useStable((function(){return new Map})),q=useStable((function(){var q=createEventHandle(y,w);return function(y,w){var ne=E.get(y);null!=ne&&ne(),null==w&&E.delete(y);var ie=q(y,w);return E.set(y,ie),ie}}));return Object(Bn.a)((function(){return function(){null!=q&&(E.forEach((function(y){y()})),E.clear()),q=null}}),[q]),q}var Hn={},Nn={passive:!0},Un="react-gui:hover:lock",Gn="react-gui:hover:unlock";function dispatchCustomEvent(y,w,E){var q=document.createEvent("CustomEvent"),ne=E||Hn,ie=ne.bubbles,oe=void 0===ie||ie,se=ne.cancelable,le=void 0===se||se,pe=ne.detail;q.initCustomEvent(w,oe,le,pe),y.dispatchEvent(q)}function getPointerType(y){var w=y.pointerType;return null!=w?w:function getModality(){return nn}()}function useHover(y,w){var E=w.contain,q=w.disabled,ne=w.onHoverStart,ie=w.onHoverChange,oe=w.onHoverUpdate,se=w.onHoverEnd,le=function supportsPointerEvent(){return!("undefined"==typeof window||null==window.PointerEvent)}(),pe=useEvent(le?"pointermove":"mousemove",Nn),ge=useEvent(le?"pointerenter":"mouseenter",Nn),he=useEvent(le?"pointerleave":"mouseleave",Nn),me=useEvent(Un,Nn),ve=useEvent(Gn,Nn);Object(Bn.a)((function(){var w=y.current;if(null!==w){var le=function hoverEnd(y){null!=se&&se(y),null!=ie&&ie(!1),pe(w,null),he(w,null)},ye=function leaveListener(w){var q=y.current;null!=q&&"touch"!==getPointerType(w)&&(E&&dispatchCustomEvent(q,Gn),le(w))},Re=function moveListener(y){"touch"!==getPointerType(y)&&null!=oe&&(null==y.x&&(y.x=y.clientX),null==y.y&&(y.y=y.clientY),oe(y))},we=function hoverStart(y){null!=ne&&ne(y),null!=ie&&ie(!0),null!=oe&&pe(w,q?null:Re),he(w,q?null:ye)};ge(w,q?null:function enterListener(w){var ne=y.current;if(null!=ne&&"touch"!==getPointerType(w)){E&&dispatchCustomEvent(ne,Un),we(w);me(ne,q?null:function lockListener(y){y.target!==ne&&le(w)}),ve(ne,q?null:function unlockListener(y){y.target!==ne&&we(w)})}})}}),[ge,pe,he,me,ve,E,q,ne,ie,oe,se,y])}var qn=E(131);function Pressable_extends(){return(Pressable_extends=Object.assign||function(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["accessible","children","delayLongPress","delayPressIn","delayPressOut","disabled","focusable","onBlur","onFocus","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","testOnly_pressed"]),Se=useForceableState(!1),ke=Se[0],Ae=Se[1],Oe=useForceableState(!1),Te=Oe[0],Be=Oe[1],Ve=useForceableState(!0===_e),Ne=Ve[0],Ue=Ve[1],We=Object(Fe.useRef)(null),$e=Object(Wt.a)(w,We),Ye=Object(Fe.useMemo)((function(){return{delayLongPress:ne,delayPressStart:ie,delayPressEnd:oe,disabled:se,onLongPress:he,onPress:me,onPressChange:Ue,onPressStart:ye,onPressMove:ve,onPressEnd:Re}}),[ne,ie,oe,se,he,me,ye,ve,Re,Ue]),Xe=Object(qn.a)(We,Ye);useHover(We,{contain:!0,disabled:se,onHoverChange:Ae});var et=function Pressable_objectSpread(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["color","indeterminate","progress","trackColor","style"]),me=100*se,ve=Object(Fe.useRef)(null);return Object(Fe.useEffect)((function(){var y=ie?"25%":me+"%";null!=ve.current&&ve.current.setNativeProps({style:{width:y}})}),[ie,me,ve]),Be.a.createElement(je.default,ProgressBar_extends({},he,{accessibilityRole:"progressbar",accessibilityValue:{max:100,min:0,now:ie?null:me},ref:w,style:[Xn.track,ge,{backgroundColor:pe}]}),Be.a.createElement(je.default,{ref:ve,style:[Xn.progress,ie&&Xn.animation,{backgroundColor:q}]}))}));Yn.displayName="ProgressBar";var Xn=Te.default.create({track:{height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:[{translateX:"-100%"}]},"100%":{transform:[{translateX:"400%"}]}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}}),Jn=Yn,Zn=E(289);function SafeAreaView_extends(){return(SafeAreaView_extends=Object.assign||function(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["style"]);return Be.a.createElement(je.default,SafeAreaView_extends({},q,{ref:w,style:Te.default.compose(na.root,E)}))}));ta.displayName="SafeAreaView";var na=Te.default.create({root:{paddingTop:Qn+"(safe-area-inset-top)",paddingRight:Qn+"(safe-area-inset-right)",paddingBottom:Qn+"(safe-area-inset-bottom)",paddingLeft:Qn+"(safe-area-inset-left)"}}),ia=ta,sa=E(128),da=E(291),la=E(339),pa=E(181);function Switch_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function Switch_objectSpread(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"]),ke=Object(Fe.useRef)(null);function handleFocusState(y){var w="focus"===y.nativeEvent.type?"0px 1px 3px rgba(0,0,0,0.5), 0 0 0 10px rgba(0,0,0,0.1)":ha;null!=ke.current&&(ke.current.style.boxShadow=w)}var Ae=Te.default.flatten(me),Oe=Ae.height,Be=Ae.width,Ve=Oe||20,Ne=Object(pa.a)(Ve,2),Ue=Be>Ne?Be:Ne,We=Object(pa.a)(Ve,.5),$e=!0===Me?null!=we&&"object"==typeof we?we.true:se:null!=we&&"object"==typeof we?we.false:we,Ye=Me?ie:ye,Xe=Ve,et=Xe,tt=[ma.root,me,pe&&ma.cursorDefault,{height:Ve,width:Ue}],nt=[ma.track,{backgroundColor:pe?"#D5D5D5":$e,borderRadius:We}],rt=[ma.thumb,Me&&ma.thumbActive,{backgroundColor:pe?"#BDBDBD":Ye,height:Xe,marginStart:Me?Object(pa.a)(et,-1):0,width:et}],it=Object(q.a)("input",{accessibilityLabel:E,checked:Me,disabled:pe,onBlur:handleFocusState,onChange:function handleChange(y){null!=ge&&ge(y.nativeEvent.target.checked)},onFocus:handleFocusState,ref:w,style:[ma.nativeControl,ma.cursorInherit],type:"checkbox"});return Fe.createElement(je.default,Switch_extends({},Se,{style:tt}),Fe.createElement(je.default,{style:nt}),Fe.createElement(je.default,{ref:ke,style:rt}),it)}));fa.displayName="Switch";var ma=Te.default.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:Switch_objectSpread({},Te.default.absoluteFillObject,{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{alignSelf:"flex-start",borderRadius:"100%",boxShadow:ha,start:"0%",transform:[{translateZ:0}],transitionDuration:"0.1s"},thumbActive:{start:"100%"},nativeControl:Switch_objectSpread({},Te.default.absoluteFillObject,{height:"100%",margin:0,opacity:0,padding:0,width:"100%"})}),va=fa,ya=E(340),wa=E(179),_a=function twoArgumentPooler(y,w){var E=this;if(E.instancePool.length){var q=E.instancePool.pop();return E.call(q,y,w),q}return new E(y,w)},Aa=function standardReleaser(y){var w=this;y.destructor(),w.instancePool.length0,ne=E&&E.length>0;return!q&&ne?E[0]:q?w[0]:y},$a="NOT_RESPONDER",Ka="RESPONDER_INACTIVE_PRESS_IN",Ya="RESPONDER_INACTIVE_PRESS_OUT",Ja="RESPONDER_ACTIVE_PRESS_IN",Za="RESPONDER_ACTIVE_PRESS_OUT",Qa="RESPONDER_ACTIVE_LONG_PRESS_IN",er="RESPONDER_ACTIVE_LONG_PRESS_OUT",tr="ERROR",nr={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},ar=Touchable_objectSpread({},nr,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),rr=Touchable_objectSpread({},nr,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),ir=Touchable_objectSpread({},nr,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),or="DELAY",sr="RESPONDER_GRANT",dr="RESPONDER_RELEASE",cr="RESPONDER_TERMINATED",ur="ENTER_PRESS_RECT",lr="LEAVE_PRESS_RECT",pr="LONG_PRESS_DETECTED",gr={NOT_RESPONDER:{DELAY:tr,RESPONDER_GRANT:Ka,RESPONDER_RELEASE:tr,RESPONDER_TERMINATED:tr,ENTER_PRESS_RECT:tr,LEAVE_PRESS_RECT:tr,LONG_PRESS_DETECTED:tr},RESPONDER_INACTIVE_PRESS_IN:{DELAY:Ja,RESPONDER_GRANT:tr,RESPONDER_RELEASE:$a,RESPONDER_TERMINATED:$a,ENTER_PRESS_RECT:Ka,LEAVE_PRESS_RECT:Ya,LONG_PRESS_DETECTED:tr},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:Za,RESPONDER_GRANT:tr,RESPONDER_RELEASE:$a,RESPONDER_TERMINATED:$a,ENTER_PRESS_RECT:Ka,LEAVE_PRESS_RECT:Ya,LONG_PRESS_DETECTED:tr},RESPONDER_ACTIVE_PRESS_IN:{DELAY:tr,RESPONDER_GRANT:tr,RESPONDER_RELEASE:$a,RESPONDER_TERMINATED:$a,ENTER_PRESS_RECT:Ja,LEAVE_PRESS_RECT:Za,LONG_PRESS_DETECTED:Qa},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:tr,RESPONDER_GRANT:tr,RESPONDER_RELEASE:$a,RESPONDER_TERMINATED:$a,ENTER_PRESS_RECT:Ja,LEAVE_PRESS_RECT:Za,LONG_PRESS_DETECTED:tr},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:tr,RESPONDER_GRANT:tr,RESPONDER_RELEASE:$a,RESPONDER_TERMINATED:$a,ENTER_PRESS_RECT:Qa,LEAVE_PRESS_RECT:er,LONG_PRESS_DETECTED:Qa},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:tr,RESPONDER_GRANT:tr,RESPONDER_RELEASE:$a,RESPONDER_TERMINATED:$a,ENTER_PRESS_RECT:Qa,LEAVE_PRESS_RECT:er,LONG_PRESS_DETECTED:tr},error:{DELAY:$a,RESPONDER_GRANT:Ka,RESPONDER_RELEASE:$a,RESPONDER_TERMINATED:$a,ENTER_PRESS_RECT:$a,LEAVE_PRESS_RECT:$a,LONG_PRESS_DETECTED:$a}},hr={componentDidMount:function componentDidMount(){var y=this;this._touchableNode=Object(ne.default)(this),this._touchableNode&&this._touchableNode.addEventListener&&(this._touchableBlurListener=function(w){y._isTouchableKeyboardActive&&(y.state.touchable.touchState&&y.state.touchable.touchState!==$a&&y.touchableHandleResponderTerminate({nativeEvent:w}),y._isTouchableKeyboardActive=!1)},this._touchableNode.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function componentWillUnmount(){this._touchableNode&&this._touchableNode.addEventListener&&this._touchableNode.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function touchableGetInitialState(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function touchableHandleResponderTerminationRequest(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function touchableHandleStartShouldSetResponder(){return!this.props.disabled},touchableLongPressCancelsPress:function touchableLongPressCancelsPress(){return!0},touchableHandleResponderGrant:function touchableHandleResponderGrant(y){var w=y.currentTarget;y.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=$a,this.state.touchable.responderID=w,this._receiveSignal(sr,y);var E=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(E=isNaN(E)?130:E)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,y),E):this._handleDelay(y);var q=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;q=isNaN(q)?370:q,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,y),q+E)},touchableHandleResponderRelease:function touchableHandleResponderRelease(y){this.pressInLocation=null,this._receiveSignal(dr,y)},touchableHandleResponderTerminate:function touchableHandleResponderTerminate(y){this.pressInLocation=null,this._receiveSignal(cr,y)},touchableHandleResponderMove:function touchableHandleResponderMove(y){if(this.state.touchable.positionOnActivate){var w=this.state.touchable.positionOnActivate,E=this.state.touchable.dimensionsOnActivate,q=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},ne=q.left,ie=q.top,oe=q.right,se=q.bottom,le=this.touchableGetHitSlop?this.touchableGetHitSlop():null;le&&(ne+=le.left||0,ie+=le.top||0,oe+=le.right||0,se+=le.bottom||0);var pe=Wa(y.nativeEvent),ge=pe&&pe.pageX,he=pe&&pe.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(ge,he,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(ge>w.left-ne&&he>w.top-ie&&ge=0||(ne[E]=y[E]);return ne}(hr,["touchableHandleFocus","touchableHandleBlur"]));hr.withoutDefaultFocusAndBlur=fr;var mr={Mixin:hr,TOUCH_TARGET_DEBUG:!1,renderDebugView:function renderDebugView(y){var w=y.color,E=y.hitSlop;if(!mr.TOUCH_TARGET_DEBUG)return null;var q={};for(var ne in E=E||{top:0,bottom:0,left:0,right:0})q[ne]=-E[ne];var ie=Na()(w);if("number"!=typeof ie)return null;var oe="#"+("00000000"+ie.toString(16)).substr(-8);return Be.a.createElement(je.default,{pointerEvents:"none",style:Touchable_objectSpread({position:"absolute",borderColor:oe.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:oe.slice(0,-2)+"0F"},q)})}},vr=mr;function TouchableHighlight_extends(){return(TouchableHighlight_extends=Object.assign||function(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["accessible","activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"]),Ae=Object(Fe.useRef)(null),Oe=Object(Wt.a)(w,Ae),Be=Object(Fe.useState)(!0===Me?createExtraStyles(q,Se):null),Ve=Be[0],Ne=Be[1],Ue=Object(Fe.useCallback)((function(){hasPressHandler(y)&&(Ne(createExtraStyles(q,Se)),null!=Re&&Re())}),[q,Re,y,Se]),We=Object(Fe.useCallback)((function(){!0!==Me&&hasPressHandler(y)&&(Ne(null),null!=ge&&ge())}),[ge,y,Me]),$e=Object(Fe.useMemo)((function(){return{cancelable:!we,disabled:le,delayLongPress:se,delayPressStart:ie,delayPressEnd:oe,onLongPress:he,onPress:me,onPressStart:function onPressStart(y){Ue(),null!=ve&&ve(y)},onPressEnd:function onPressEnd(y){We(),null!=ye&&ye(y)}}}),[se,ie,oe,le,he,me,ve,ye,we,Ue,We]),Ye=Object(qn.a)(Ae,$e),Xe=Fe.Children.only(ne);return Fe.createElement(je.default,TouchableHighlight_extends({},ke,Ye,{accessibilityState:TouchableHighlight_objectSpread({disabled:le},y.accessibilityState),accessible:!1!==E,focusable:!1!==pe&&void 0!==me,ref:Oe,style:[yr.root,_e,!le&&yr.actionable,Ve&&Ve.underlay]}),Fe.cloneElement(Xe,{style:Te.default.compose(Xe.props.style,Ve&&Ve.child)}))})));Rr.displayName="TouchableHighlight";var br=Rr;var xr=function(y){function UnimplementedView(){return y.apply(this,arguments)||this}!function UnimplementedView_inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(UnimplementedView,y);var w=UnimplementedView.prototype;return w.setNativeProps=function setNativeProps(){},w.render=function render(){return Be.a.createElement(je.default,{style:[wr,this.props.style]},this.props.children)},UnimplementedView}(Be.a.Component),wr={},Cr=xr,_r=Cr,Mr=E(129);function TouchableWithoutFeedback_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function TouchableWithoutFeedback_defineProperty(y,w,E){return w in y?Object.defineProperty(y,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[w]=E,y}var Sr={accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,accessible:!0,children:!0,disabled:!0,focusable:!0,importantForAccessibility:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0};var kr=Fe.memo(Fe.forwardRef((function TouchableWithoutFeedback(y,w){var E=y.accessible,q=y.delayPressIn,ne=y.delayPressOut,ie=y.delayLongPress,oe=y.disabled,se=y.focusable,le=y.onLongPress,pe=y.onPress,ge=y.onPressIn,he=y.onPressOut,me=y.rejectResponderTermination,ve=Object(Fe.useRef)(null),ye=Object(Fe.useMemo)((function(){return{cancelable:!me,disabled:oe,delayLongPress:ie,delayPressStart:q,delayPressEnd:ne,onLongPress:le,onPress:pe,onPressStart:ge,onPressEnd:he}}),[oe,q,ne,ie,le,pe,ge,he,me]),Re=Object(qn.a)(ve,ye),we=Fe.Children.only(y.children),_e=[we.props.children],Me=function pickProps(y){return Object(Mr.a)(y,Sr)}(y);Me.accessible=!1!==E,Me.accessibilityState=function TouchableWithoutFeedback_objectSpread(y){for(var w=1;w1?arguments[1]:void 0)}})},function(y,w,E){"use strict";E.r(w);var q=E(0),ne=E(35),ie=E(103),oe=E(129),se=E(170),le=E(47),pe=E(130),ge=E(177),he=E(10),me=E(151),ve={accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,accessible:!0,children:!0,classList:!0,dir:!0,importantForAccessibility:!0,lang:!0,nativeID:!0,onBlur:!0,onClick:!0,onClickCapture:!0,onContextMenu:!0,onFocus:!0,onKeyDown:!0,onKeyUp:!0,onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0,pointerEvents:!0,ref:!0,style:!0,testID:!0,dataSet:!0,onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0,onScroll:!0,onWheel:!0,href:!0,rel:!0,target:!0},ye=Object(q.forwardRef)((function(y,w){var E=y.dir,ie=y.numberOfLines,he=y.onClick,ye=y.onLayout,_e=y.onPress,Me=y.onMoveShouldSetResponder,Se=y.onMoveShouldSetResponderCapture,ke=y.onResponderEnd,Ae=y.onResponderGrant,Oe=y.onResponderMove,Te=y.onResponderReject,je=y.onResponderRelease,Fe=y.onResponderStart,Be=y.onResponderTerminate,Ve=y.onResponderTerminationRequest,Ne=y.onScrollShouldSetResponder,Ue=y.onScrollShouldSetResponderCapture,We=y.onSelectionChangeShouldSetResponder,$e=y.onSelectionChangeShouldSetResponderCapture,Ye=y.onStartShouldSetResponder,Xe=y.onStartShouldSetResponderCapture,et=y.selectable,tt=Object(q.useContext)(me.a),nt=Object(q.useRef)(null),rt=[Re.text,!0===tt&&Re.textHasAncestor,1===ie&&Re.textOneLine,null!=ie&&ie>1&&Re.textMultiLine],it=[y.style,null!=ie&&ie>1&&{WebkitLineClamp:ie},!0===et&&we.selectable,!1===et&&we.notSelectable,_e&&we.pressable];Object(se.a)(nt,ye),Object(ge.a)(nt,{onMoveShouldSetResponder:Me,onMoveShouldSetResponderCapture:Se,onResponderEnd:ke,onResponderGrant:Ae,onResponderMove:Oe,onResponderReject:Te,onResponderRelease:je,onResponderStart:Fe,onResponderTerminate:Be,onResponderTerminationRequest:Ve,onScrollShouldSetResponder:Ne,onScrollShouldSetResponderCapture:Ue,onSelectionChangeShouldSetResponder:We,onSelectionChangeShouldSetResponderCapture:$e,onStartShouldSetResponder:Ye,onStartShouldSetResponderCapture:Xe});var ot=tt?"span":"div",st=function pickProps(y){return Object(oe.a)(y,ve)}(y);st.classList=rt,st.dir=E,tt||(st.dir=null!=E?E:"auto"),st.onClick=function handleClick(y){null!=he&&he(y),null==he&&null!=_e&&(y.stopPropagation(),_e(y))},st.style=it;var dt=Object(pe.a)(st),ct=Object(le.a)(nt,dt,w);st.ref=ct;var ut=Object(ne.a)(ot,st);return tt?ut:q.createElement(me.a.Provider,{value:!0},ut)}));ye.displayName="Text";var Re=ie.a.create({text:{border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",margin:0,padding:0,whiteSpace:"pre-wrap",wordWrap:"break-word"},textHasAncestor:{color:"inherit",font:"inherit",whiteSpace:"inherit"},textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"}}),we=he.default.create({notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});w.default=ye},function(y,w,E){"use strict";E.d(w,"a",(function(){return ge}));E(90),E(28),E(115),E(81);var q=E(0),ne=E.n(q),ie=E(2),oe=E.n(ie),se=E(26),le=E(8);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["classes","semantic","size","color","underlined","children"]),he=q||"span",me=Object(se.a)(E.text,E[ie+"Size"],E[oe+"Color"],((w={})[E[he]]=!!q,w[E.isUnderlined]=le,w));return ne.a.createElement(he,_extends({},ge,{className:me}),pe)};pe.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,semantic:oe.a.oneOf(["em","strong"]),size:oe.a.oneOf(["inherit","small","base","text"]),color:oe.a.oneOf(["base","light"]),underlined:oe.a.bool,children:oe.a.node.isRequired},pe.defaultProps={size:"inherit",color:"base",underlined:!1};var ge=Object(le.default)((function styles(y){var w=y.fontFamily,E=y.fontSize,q=y.color;return{text:{fontFamily:w.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:E.small},baseSize:{fontSize:E.base},textSize:{fontSize:E.text},baseColor:{color:q.base},lightColor:{color:q.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",q.lightest]]}}}))(pe)},function(y,w,E){var q=E(94);y.exports=function(y,w,E){if(q(y),void 0===w)return y;switch(E){case 1:return function(E){return y.call(w,E)};case 2:return function(E,q){return y.call(w,E,q)};case 3:return function(E,q,ne){return y.call(w,E,q,ne)}}return function(){return y.apply(w,arguments)}}},function(y,w){y.exports=function(y){if("function"!=typeof y)throw TypeError(y+" is not a function!");return y}},function(y,w){var E=Math.ceil,q=Math.floor;y.exports=function(y){return isNaN(y=+y)?0:(y>0?q:E)(y)}},function(y,w,E){var q=E(186),ne=E(134),ie=E(73),oe=E(120),se=E(71),le=E(399),pe=Object.getOwnPropertyDescriptor;w.f=E(41)?pe:function getOwnPropertyDescriptor(y,w){if(y=ie(y),w=oe(w,!0),le)try{return pe(y,w)}catch(y){}if(se(y,w))return ne(!q.f.call(y,w),y[w])}},function(y,w,E){var q=E(6),ne=E(38),ie=E(21);y.exports=function(y,w){var E=(ne.Object||{})[y]||Object[y],oe={};oe[y]=w(E),q(q.S+q.F*ie((function(){E(1)})),"Object",oe)}},function(y,w,E){var q=E(93),ne=E(185),ie=E(52),oe=E(34),se=E(415);y.exports=function(y,w){var E=1==y,le=2==y,pe=3==y,ge=4==y,he=6==y,me=5==y||he,ve=w||se;return function(w,se,ye){for(var Re,we,_e=ie(w),Me=ne(_e),Se=q(se,ye,3),ke=oe(Me.length),Ae=0,Oe=E?ve(w,ke):le?ve(w,0):void 0;ke>Ae;Ae++)if((me||Ae in Me)&&(we=Se(Re=Me[Ae],Ae,_e),y))if(E)Oe[Ae]=we;else if(we)switch(y){case 3:return!0;case 5:return Re;case 6:return Ae;case 2:Oe.push(Re)}else if(ge)return!1;return he?-1:pe||ge?ge:Oe}}},function(y,w,E){y.exports=function(){"use strict";var y="millisecond",w="second",E="minute",q="hour",ne="day",ie="week",oe="month",se="quarter",le="year",pe="date",ge=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,he=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,me={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(y,w,E){var q=String(y);return!q||q.length>=w?y:""+Array(w+1-q.length).join(E)+y},ve={s:$,z:function(y){var w=-y.utcOffset(),E=Math.abs(w),q=Math.floor(E/60),ne=E%60;return(w<=0?"+":"-")+$(q,2,"0")+":"+$(ne,2,"0")},m:function t(y,w){if(y.date()ImageUriCache._maximumEntries&&(q.forEach((function(q){var ne=E[q];(!w||ne.lastUsedTimestamp1){var ne=ve.a.get();q=E.scales.reduce((function(y,w){return Math.abs(w-ne)=0||(ne[E]=y[E]);return ne}(y,["accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"]);var Ue=Object(_e.useState)((function(){var y=resolveAssetUri(Te);if(null!=y&&me.has(y))return Se;return"IDLE"})),We=Ue[0],$e=Ue[1],Ye=Object(_e.useState)({}),Xe=Ye[0],et=Ye[1],tt=Object(_e.useContext)(Re.a),nt=Object(_e.useRef)(null),rt=Object(_e.useRef)(Ae++),it=Object(_e.useRef)(null),ot=We===Se||We===ke&&null==ie,st=function getFlatStyle(y,w,E){var q=_objectSpread({},ye.default.flatten(y)),ne=q.filter,ie=q.resizeMode,se=q.shadowOffset,le=q.tintColor,pe=[],ge=null;if(ne&&pe.push(ne),w&&pe.push("blur("+w+"px)"),se){var he=Object(oe.a)(q);he&&pe.push("drop-shadow("+he+")")}return le&&null!=E&&pe.push("url(#tint-"+E+")"),pe.length>0&&(ge=pe.join(" ")),delete q.shadowColor,delete q.shadowOpacity,delete q.shadowOffset,delete q.shadowRadius,delete q.tintColor,delete q.overlayColor,delete q.resizeMode,[q,ie,ge,le]}(Ve,ne,rt.current),dt=st[0],ct=st[1],ut=st[2],lt=st[3],pt=y.resizeMode||ct||"cover",gt=ot?Te:ie,ht=resolveAssetUri(gt),ft=function resolveAssetDimensions(y){if("number"==typeof y){var w=getAssetByID(y);return{height:w.height,width:w.width}}if(null!=y&&!Array.isArray(y)&&"object"==typeof y)return{height:y.height,width:y.width}}(gt),mt=ht?'url("'+ht+'")':null,vt=function getBackgroundSize(){if(null!=nt.current&&("center"===pt||"repeat"===pt)){var y=nt.current,w=y.naturalHeight,E=y.naturalWidth,q=Xe.height,ne=Xe.width;if(w&&E&&q&&ne){var ie=Math.min(1,ne/E,q/w),oe=Math.ceil(ie*E),se=Math.ceil(ie*w);return oe+"px "+se+"px"}}}(),yt=ht?Object(q.a)("img",{alt:E||"",classList:[je.accessibilityImage],draggable:se||!1,ref:nt,src:ht}):null;return Object(_e.useEffect)((function(){abortPendingRequest();var y=resolveAssetUri(Te);function abortPendingRequest(){null!=it.current&&(me.abort(it.current),it.current=null)}return null!=y&&($e(ke),ve&&ve(),it.current=me.load(y,(function load(y){$e(Se),ge&&ge(y),he&&he()}),(function error(){$e("ERRORED"),le&&le({nativeEvent:{error:"Failed to load resource "+y+" (404)"}}),he&&he()}))),abortPendingRequest}),[Te,it,$e,le,ge,he,ve]),Me.a.createElement(we.default,_extends({},Ne,{accessibilityLabel:E,onLayout:function handleLayout(y){if("center"===pt||"repeat"===pt||pe){var w=y.nativeEvent.layout;pe&&pe(y),et(w)}},pointerEvents:Oe,ref:w,style:[Fe.root,tt&&Fe.inline,ft,dt]}),Me.a.createElement(we.default,{style:[Fe.image,Be[pt],{backgroundImage:mt,filter:ut},null!=vt&&{backgroundSize:vt}],suppressHydrationWarning:!0}),yt,function createTintColorSVG(y,w){return y&&null!=w?Me.a.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},Me.a.createElement("defs",null,Me.a.createElement("filter",{id:"tint-"+w,suppressHydrationWarning:!0},Me.a.createElement("feFlood",{floodColor:""+y,key:y}),Me.a.createElement("feComposite",{in2:"SourceAlpha",operator:"atop"})))):null}(lt,rt.current))}));Te.displayName="Image",Te.getSize=function(y,w,E){me.getSize(y,w,E)},Te.prefetch=function(y){return me.prefetch(y)},Te.queryCache=function(y){return me.queryCache(y)};var je=ne.a.create({accessibilityImage:_objectSpread({},ye.default.absoluteFillObject,{height:"100%",opacity:0,width:"100%",zIndex:-1})}),Fe=ye.default.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},image:_objectSpread({},ye.default.absoluteFillObject,{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1})}),Be=ye.default.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0 0",backgroundSize:"auto"},repeat:{backgroundPosition:"0 0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});w.default=Te},function(y,w,E){"use strict";E.r(w),function(y){var E={OS:"web",select:function select(y){return"web"in y?y.web:y.default},get isTesting(){return"test"===y.env.NODE_DEV}};w.default=E}.call(this,E(144))},function(y,w,E){"use strict";var q=E(176),ne={create:function create(y,w){return q.a.createCSS(y,w)}};w.a=ne},function(y,w,E){"use strict";var q=E(5),ne=E.n(q),ie=E(14).canUseDOM&&void 0!==window.requestIdleCallback,oe=ie?window.requestIdleCallback:function _requestIdleCallback(y,w){return setTimeout((function(){var w=Date.now();y({didTimeout:!1,timeRemaining:function timeRemaining(){return Math.max(0,50-(Date.now()-w))}})}),1)},se=ie?window.cancelIdleCallback:function _cancelIdleCallback(y){clearTimeout(y)},le=oe,pe={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions:function runAfterInteractions(y){var w,E=new Promise((function(E){w=le((function(){y?E(y()):E()}))}));return{then:E.then.bind(E),done:E.then.bind(E),cancel:function cancel(){se(w)}}},createInteractionHandle:function createInteractionHandle(){return 1},clearInteractionHandle:function clearInteractionHandle(y){ne()(!!y,"Must provide a handle to clear.")},addListener:function addListener(){}};w.a=pe},function(y,w,E){"use strict";var q=E(14),ne=E.n(q),ie=!0,oe=!1,se=!0,le=!1,pe=function isRTL(){return!!le||se&&oe},ge=function onDirectionChange(){ne.a.canUseDOM&&document.documentElement&&document.documentElement.setAttribute&&document.documentElement.setAttribute("dir",pe()?"rtl":"ltr")},he={allowRTL:function allowRTL(y){se=y,ge()},forceRTL:function forceRTL(y){le=y,ge()},setPreferredLanguageRTL:function setPreferredLanguageRTL(y){oe=y,ge()},swapLeftAndRightInRTL:function swapLeftAndRightInRTL(y){ie=y},get doLeftAndRightSwapInRTL(){return ie},get isRTL(){return pe()}};w.a=he},function(y,w){var E={}.toString;y.exports=function(y){return E.call(y).slice(8,-1)}},function(y,w){y.exports=function(y){if(null==y)throw TypeError("Can't call method on "+y);return y}},function(y,w,E){"use strict";if(E(41)){var q=E(136),ne=E(20),ie=E(21),oe=E(6),se=E(241),le=E(330),pe=E(93),ge=E(158),he=E(134),me=E(72),ve=E(159),ye=E(95),Re=E(34),we=E(426),_e=E(138),Me=E(120),Se=E(71),ke=E(187),Ae=E(23),Oe=E(52),Te=E(322),je=E(139),Fe=E(141),Be=E(140).f,Ve=E(324),Ne=E(135),Ue=E(30),We=E(98),$e=E(231),Ye=E(188),Xe=E(326),et=E(156),tt=E(234),nt=E(157),rt=E(325),it=E(417),ot=E(42),st=E(96),dt=ot.f,ct=st.f,ut=ne.RangeError,lt=ne.TypeError,pt=ne.Uint8Array,gt="ArrayBuffer",ht="SharedArrayBuffer",ft="BYTES_PER_ELEMENT",mt=Array.prototype,vt=le.ArrayBuffer,yt=le.DataView,Rt=We(0),bt=We(2),xt=We(3),wt=We(4),Ct=We(5),_t=We(6),Mt=$e(!0),St=$e(!1),kt=Xe.values,Et=Xe.keys,At=Xe.entries,Dt=mt.lastIndexOf,Ot=mt.reduce,Pt=mt.reduceRight,It=mt.join,Tt=mt.sort,Lt=mt.slice,jt=mt.toString,zt=mt.toLocaleString,Ft=Ue("iterator"),Bt=Ue("toStringTag"),Vt=Ne("typed_constructor"),Ht=Ne("def_constructor"),Nt=se.CONSTR,Ut=se.TYPED,Gt=se.VIEW,qt="Wrong length!",Wt=We(1,(function(y,w){return allocate(Ye(y,y[Ht]),w)})),$t=ie((function(){return 1===new pt(new Uint16Array([1]).buffer)[0]})),Kt=!!pt&&!!pt.prototype.set&&ie((function(){new pt(1).set({})})),toOffset=function(y,w){var E=ye(y);if(E<0||E%w)throw ut("Wrong offset!");return E},validate=function(y){if(Ae(y)&&Ut in y)return y;throw lt(y+" is not a typed array!")},allocate=function(y,w){if(!Ae(y)||!(Vt in y))throw lt("It is not a typed array constructor!");return new y(w)},speciesFromList=function(y,w){return fromList(Ye(y,y[Ht]),w)},fromList=function(y,w){for(var E=0,q=w.length,ne=allocate(y,q);q>E;)ne[E]=w[E++];return ne},addGetter=function(y,w,E){dt(y,w,{get:function(){return this._d[E]}})},Yt=function from(y){var w,E,q,ne,ie,oe,se=Oe(y),le=arguments.length,ge=le>1?arguments[1]:void 0,he=void 0!==ge,me=Ve(se);if(null!=me&&!Te(me)){for(oe=me.call(se),q=[],w=0;!(ie=oe.next()).done;w++)q.push(ie.value);se=q}for(he&&le>2&&(ge=pe(ge,arguments[2],2)),w=0,E=Re(se.length),ne=allocate(this,E);E>w;w++)ne[w]=he?ge(se[w],w):se[w];return ne},Xt=function of(){for(var y=0,w=arguments.length,E=allocate(this,w);w>y;)E[y]=arguments[y++];return E},Jt=!!pt&&ie((function(){zt.call(new pt(1))})),Zt=function toLocaleString(){return zt.apply(Jt?Lt.call(validate(this)):validate(this),arguments)},Qt={copyWithin:function copyWithin(y,w){return it.call(validate(this),y,w,arguments.length>2?arguments[2]:void 0)},every:function every(y){return wt(validate(this),y,arguments.length>1?arguments[1]:void 0)},fill:function fill(y){return rt.apply(validate(this),arguments)},filter:function filter(y){return speciesFromList(this,bt(validate(this),y,arguments.length>1?arguments[1]:void 0))},find:function find(y){return Ct(validate(this),y,arguments.length>1?arguments[1]:void 0)},findIndex:function findIndex(y){return _t(validate(this),y,arguments.length>1?arguments[1]:void 0)},forEach:function forEach(y){Rt(validate(this),y,arguments.length>1?arguments[1]:void 0)},indexOf:function indexOf(y){return St(validate(this),y,arguments.length>1?arguments[1]:void 0)},includes:function includes(y){return Mt(validate(this),y,arguments.length>1?arguments[1]:void 0)},join:function join(y){return It.apply(validate(this),arguments)},lastIndexOf:function lastIndexOf(y){return Dt.apply(validate(this),arguments)},map:function map(y){return Wt(validate(this),y,arguments.length>1?arguments[1]:void 0)},reduce:function reduce(y){return Ot.apply(validate(this),arguments)},reduceRight:function reduceRight(y){return Pt.apply(validate(this),arguments)},reverse:function reverse(){for(var y,w=this,E=validate(w).length,q=Math.floor(E/2),ne=0;ne1?arguments[1]:void 0)},sort:function sort(y){return Tt.call(validate(this),y)},subarray:function subarray(y,w){var E=validate(this),q=E.length,ne=_e(y,q);return new(Ye(E,E[Ht]))(E.buffer,E.byteOffset+ne*E.BYTES_PER_ELEMENT,Re((void 0===w?q:_e(w,q))-ne))}},en=function slice(y,w){return speciesFromList(this,Lt.call(validate(this),y,w))},tn=function set(y){validate(this);var w=toOffset(arguments[1],1),E=this.length,q=Oe(y),ne=Re(q.length),ie=0;if(ne+w>E)throw ut(qt);for(;ie255?255:255&q),ne.v[ve](E*w+ne.o,q,$t)}(this,E,y)},enumerable:!0})};Se?(ye=E((function(y,E,q,ne){ge(y,ye,pe,"_d");var ie,oe,se,le,he=0,ve=0;if(Ae(E)){if(!(E instanceof vt||(le=ke(E))==gt||le==ht))return Ut in E?fromList(ye,E):Yt.call(ye,E);ie=E,ve=toOffset(q,w);var _e=E.byteLength;if(void 0===ne){if(_e%w)throw ut(qt);if((oe=_e-ve)<0)throw ut(qt)}else if((oe=Re(ne)*w)+ve>_e)throw ut(qt);se=oe/w}else se=we(E),ie=new vt(oe=se*w);for(me(y,"_d",{b:ie,o:ve,l:oe,e:se,v:new yt(ie)});heie;)ne.push(arguments[ie++]);if(q=w,(ve(w)||void 0!==y)&&!St(y))return me(w)||(w=function(y,w){if("function"==typeof q&&(w=q.call(this,y,w)),!St(w))return w}),ne[1]=w,gt.apply(null,ne)}});pt.prototype[dt]||Ve(pt.prototype,dt,pt.prototype.valueOf),nt(pt,st),$e[ot]=!0},function(y,w,E){"use strict";var q=E(43),ne=E(78),ie=E(53),oe=E(68),se=E(54),le=E(79).f,pe=E(514),ge=ie.Symbol;if(ne&&"function"==typeof ge&&(!("description"in ge.prototype)||void 0!==ge().description)){var he={},me=function Symbol(){var y=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),w=this instanceof me?new ge(y):void 0===y?ge():ge(y);return""===y&&(he[w]=!0),w};pe(me,ge);var ve=me.prototype=ge.prototype;ve.constructor=me;var ye=ve.toString,Re="Symbol(test)"==String(ge("test")),we=/^Symbol\((.*)\)[^)]+$/;le(ve,"description",{configurable:!0,get:function description(){var y=se(this)?this.valueOf():this,w=ye.call(y);if(oe(he,y))return"";var E=Re?w.slice(7,-1):w.replace(we,"$1");return""===E?void 0:E}}),q({global:!0,forced:!0},{Symbol:me})}},function(y,w,E){var q=E(43),ne=E(125),ie=E(279);q({target:"Object",stat:!0,forced:E(31)((function(){ie(1)}))},{keys:function keys(y){return ie(ne(y))}})},function(y,w,E){"use strict";var q=E(43),ne=E(215).filter,ie=E(382),oe=E(216),se=ie("filter"),le=oe("filter");q({target:"Array",proto:!0,forced:!se||!le},{filter:function filter(y){return ne(this,y,arguments.length>1?arguments[1]:void 0)}})},function(y,w,E){"use strict";E.r(w);var q=function deepDiffer(y,w,E){if(void 0===E&&(E=-1),0===E)return!0;if(y===w)return!1;if("function"==typeof y&&"function"==typeof w)return!1;if("object"!=typeof y||null===y)return y!==w;if("object"!=typeof w||null===w)return!0;if(y.constructor!==w.constructor)return!0;if(Array.isArray(y)){var q=y.length;if(w.length!==q)return!0;for(var ne=0;ne1){for(var ne=[],ie=0;ie1?(pe()(Array.isArray(y),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",ie),y.map((function(y,E){return ne(y,w*ie+E)})).join(":")):ne(y,w)},E._renderItem=function(y){var w=E.props,q=w.renderItem,se=w.numColumns,le=w.columnWrapperStyle;if(se>1){var ge=y.item,he=y.index;return pe()(Array.isArray(ge),"Expected array of items with numColumns > 1"),ne.createElement(oe.default,{style:ie.default.compose(me.row,le)},ge.map((function(w,E){var ie=q({item:w,index:he*se+E,separators:y.separators});return null!=ie?ne.createElement(ne.Fragment,{key:E},ie):null})))}return q(y)},E._checkProps(E.props),E.props.viewabilityConfigCallbackPairs?E._virtualizedListPairs=E.props.viewabilityConfigCallbackPairs.map((function(y){return{viewabilityConfig:y.viewabilityConfig,onViewableItemsChanged:E._createOnViewableItemsChanged(y.onViewableItemsChanged)}})):E.props.onViewableItemsChanged&&E._virtualizedListPairs.push({viewabilityConfig:E.props.viewabilityConfig,onViewableItemsChanged:E._createOnViewableItemsChanged(E.props.onViewableItemsChanged)}),E}return w.scrollToEnd=function scrollToEnd(y){this._listRef&&this._listRef.scrollToEnd(y)},w.scrollToIndex=function scrollToIndex(y){this._listRef&&this._listRef.scrollToIndex(y)},w.scrollToItem=function scrollToItem(y){this._listRef&&this._listRef.scrollToItem(y)},w.scrollToOffset=function scrollToOffset(y){this._listRef&&this._listRef.scrollToOffset(y)},w.recordInteraction=function recordInteraction(){this._listRef&&this._listRef.recordInteraction()},w.flashScrollIndicators=function flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()},w.getScrollResponder=function getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()},w.getNativeScrollRef=function getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()},w.getScrollableNode=function getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()},w.setNativeProps=function setNativeProps(y){this._listRef&&this._listRef.setNativeProps(y)},w.componentDidUpdate=function componentDidUpdate(y){pe()(y.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."),pe()(y.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),pe()(!q(y.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),pe()(y.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,"Changing viewabilityConfigCallbackPairs on the fly is not supported"),this._checkProps(this.props)},w._checkProps=function _checkProps(y){var w=y.getItem,E=y.getItemCount,q=y.horizontal,ne=y.numColumns,ie=y.columnWrapperStyle,oe=y.onViewableItemsChanged,se=y.viewabilityConfigCallbackPairs;pe()(!w&&!E,"FlatList does not support custom data formats."),ne>1?pe()(!q,"numColumns does not support horizontal."):pe()(!ie,"columnWrapperStyle not supported for single column lists"),pe()(!(oe&&se),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")},w._pushMultiColumnViewable=function _pushMultiColumnViewable(y,w){var E=this.props,q=E.numColumns,ne=E.keyExtractor;w.item.forEach((function(E,ie){pe()(null!=w.index,"Missing index!");var oe=w.index*q+ie;y.push(_objectSpread({},w,{item:E,key:ne(E,oe),index:oe}))}))},w._createOnViewableItemsChanged=function _createOnViewableItemsChanged(y){var w=this;return function(E){var q=w.props.numColumns;if(y)if(q>1){var ne=[],ie=[];E.viewableItems.forEach((function(y){return w._pushMultiColumnViewable(ie,y)})),E.changed.forEach((function(y){return w._pushMultiColumnViewable(ne,y)})),y({viewableItems:ie,changed:ne})}else y(E)}},w.render=function render(){return ne.createElement(se.a,_extends({},this.props,{renderItem:this._renderItem,getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs}))},FlatList}(ne.PureComponent);he.defaultProps=ge;var me=ie.default.create({row:{flexDirection:"row"}}),ve=he;w.default=ve},function(y,w,E){"use strict";var q=E(14),ne=E(0),ie=q.canUseDOM?ne.useLayoutEffect:ne.useEffect;w.a=ie},function(y,w,E){"use strict";E.d(w,"c",(function(){return unquote})),E.d(w,"a",(function(){return getType})),E.d(w,"b",(function(){return showSpaces}));E(1055),E(19),E(28),E(60),E(126);function unquote(y){return y&&y.replace(/^['"]|['"]$/g,"")}function getType(y){return y.flowType?"union"===y.flowType.name&&y.flowType.elements.every((function(y){return"literal"===y.name}))?Object.assign({},y.flowType,{name:"enum",value:y.flowType.elements}):y.flowType:y.tsType?y.tsType:y.type}function showSpaces(y){return y&&y.replace(/^\s|\s$/g,"␣")}},function(y,w,E){var q=E(23);y.exports=function(y,w){if(!q(y))return y;var E,ne;if(w&&"function"==typeof(E=y.toString)&&!q(ne=E.call(y)))return ne;if("function"==typeof(E=y.valueOf)&&!q(ne=E.call(y)))return ne;if(!w&&"function"==typeof(E=y.toString)&&!q(ne=E.call(y)))return ne;throw TypeError("Can't convert object to primitive value")}},function(y,w,E){var q=E(135)("meta"),ne=E(23),ie=E(71),oe=E(42).f,se=0,le=Object.isExtensible||function(){return!0},pe=!E(21)((function(){return le(Object.preventExtensions({}))})),setMeta=function(y){oe(y,q,{value:{i:"O"+ ++se,w:{}}})},ge=y.exports={KEY:q,NEED:!1,fastKey:function(y,w){if(!ne(y))return"symbol"==typeof y?y:("string"==typeof y?"S":"P")+y;if(!ie(y,q)){if(!le(y))return"F";if(!w)return"E";setMeta(y)}return y[q].i},getWeak:function(y,w){if(!ie(y,q)){if(!le(y))return!0;if(!w)return!1;setMeta(y)}return y[q].w},onFreeze:function(y){return pe&&ge.NEED&&le(y)&&!ie(y,q)&&setMeta(y),y}}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.Attachment=void 0;var ne=q(E(25)),ie=q(E(0)),oe=q(E(9)),se=E(160),le=E(191),pe=E(193),ge=E(245),he=E(161);w.Attachment=function Attachment(y){var w,E=y.actionHandler,q=y.alignment,me=void 0===q?"right":q,ve=y.attachment,ye=y.AttachmentActions,Re=void 0===ye?se.AttachmentActions:ye,we=y.AttachmentFileIcon,_e=void 0===we?ge.FileIcon:we,Me=y.Card,Se=void 0===Me?le.Card:Me,ke=y.CardCover,Ae=y.CardFooter,Oe=y.CardHeader,Te=y.FileAttachment,je=void 0===Te?pe.FileAttachment:Te,Fe=y.Gallery,Be=void 0===Fe?he.Gallery:Fe,Ve=y.Giphy,Ne=y.groupStyle,Ue=y.UrlPreview;if(!ve)return null;var We=Ve||Se,$e=Ue||Se,Ye={Cover:ke||void 0,Footer:Ae||void 0,Header:Oe||void 0},Xe=!!(null==(w=ve.actions)?void 0:w.length);return"giphy"===ve.type||"imgur"===ve.type?Xe?ie.default.createElement(oe.default,null,ie.default.createElement(We,(0,ne.default)({alignment:me},ve,Ye)),ie.default.createElement(Re,(0,ne.default)({actionHandler:E,key:"key-actions-"+ve.id},ve))):ie.default.createElement(We,(0,ne.default)({alignment:me},ve,Ye)):(ve.title_link||ve.og_scrape_url)&&(ve.image_url||ve.thumb_url)?ie.default.createElement($e,(0,ne.default)({alignment:me},ve,Ye)):"image"===ve.type?ie.default.createElement(ie.default.Fragment,null,ie.default.createElement(Be,{alignment:me,images:[ve]}),Xe&&ie.default.createElement(Re,(0,ne.default)({actionHandler:E,key:"key-actions-"+ve.id},ve))):"file"===ve.type||"audio"===ve.type?ie.default.createElement(je,{actionHandler:E,alignment:me,attachment:ve,AttachmentActions:Re,AttachmentFileIcon:_e,groupStyle:Ne}):"video"===ve.type&&ve.asset_url&&ve.image_url?ie.default.createElement(Se,(0,ne.default)({alignment:me},ve,Ye)):Xe?ie.default.createElement(oe.default,null,ie.default.createElement(Se,(0,ne.default)({alignment:me},ve,Ye)),ie.default.createElement(Re,(0,ne.default)({actionHandler:E,key:"key-actions-"+ve.id},ve))):ie.default.createElement(Se,(0,ne.default)({alignment:me},ve))}},function(y,w){y.exports=function isObjectLike(y){return null!=y&&"object"==typeof y}},function(y,w,E){var q=E(355),ne=E(358);y.exports=function isArrayLike(y){return null!=y&&ne(y.length)&&!q(y)}},function(y,w,E){var q=E(110);y.exports=function(y){return Object(q(y))}},function(y,w,E){"use strict";var q=E(281),ne=E(59),ie=E(125),oe=E(169),se=E(278),le=E(110),pe=E(386),ge=E(282),he=Math.max,me=Math.min,ve=Math.floor,ye=/\$([$&'`]|\d\d?|<[^>]*>)/g,Re=/\$([$&'`]|\d\d?)/g;q("replace",2,(function(y,w,E,q){var we=q.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,_e=q.REPLACE_KEEPS_$0,Me=we?"$":"$0";return[function replace(E,q){var ne=le(this),ie=null==E?void 0:E[y];return void 0!==ie?ie.call(E,ne,q):w.call(String(ne),E,q)},function(y,q){if(!we&&_e||"string"==typeof q&&-1===q.indexOf(Me)){var ie=E(w,y,this,q);if(ie.done)return ie.value}var le=ne(y),ve=String(this),ye="function"==typeof q;ye||(q=String(q));var Re=le.global;if(Re){var Se=le.unicode;le.lastIndex=0}for(var ke=[];;){var Ae=ge(le,ve);if(null===Ae)break;if(ke.push(Ae),!Re)break;""===String(Ae[0])&&(le.lastIndex=pe(ve,oe(le.lastIndex),Se))}for(var Oe,Te="",je=0,Fe=0;Fe=je&&(Te+=ve.slice(je,Ve)+Ye,je=Ve+Be.length)}return Te+ve.slice(je)}];function getSubstitution(y,E,q,ne,oe,se){var le=q+y.length,pe=ne.length,ge=Re;return void 0!==oe&&(oe=ie(oe),ge=ye),w.call(se,ge,(function(w,ie){var se;switch(ie.charAt(0)){case"$":return"$";case"&":return y;case"`":return E.slice(0,q);case"'":return E.slice(le);case"<":se=oe[ie.slice(1,-1)];break;default:var ge=+ie;if(0===ge)return w;if(ge>pe){var he=ve(ge/10);return 0===he?w:he<=pe?void 0===ne[he-1]?ie.charAt(1):ne[he-1]+ie.charAt(1):w}se=ne[ge-1]}return void 0===se?"":se}))}}))},function(y,w,E){"use strict";E.r(w);var q=E(0),ne=E(47),ie=E(131),oe=E(10),se=E(9);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["accessible","activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"]),Ae=Object(q.useRef)(null),Oe=Object(ne.a)(w,Ae),Te=Object(q.useState)("0s"),je=Te[0],Fe=Te[1],Be=Object(q.useState)(null),Ve=Be[0],Ne=Be[1],Ue=Object(q.useCallback)((function(y,w){Ne(y),Fe(w?w/1e3+"s":"0s")}),[Ne,Fe]),We=Object(q.useCallback)((function(y){Ue(null!=oe?oe:.2,y)}),[oe,Ue]),$e=Object(q.useCallback)((function(y){Ue(null,y)}),[Ue]),Ye=Object(q.useMemo)((function(){return{cancelable:!Me,disabled:me,delayLongPress:he,delayPressStart:pe,delayPressEnd:ge,onLongPress:ye,onPress:Re,onPressStart:function onPressStart(y){We("onResponderGrant"===y.dispatchConfig.registrationName?0:150),null!=we&&we(y)},onPressEnd:function onPressEnd(y){$e(250),null!=_e&&_e(y)}}}),[he,pe,ge,me,ye,Re,we,_e,Me,We,$e]),Xe=Object(ie.a)(Ae,Ye);return q.createElement(se.default,_extends({},ke,Xe,{accessibilityState:_objectSpread({disabled:me},y.accessibilityState),accessible:!1!==E,focusable:!1!==ve&&void 0!==Re,ref:Oe,style:[le.root,!me&&le.actionable,Se,null!=Ve&&{opacity:Ve},{transitionDuration:je}]}))})));pe.displayName="TouchableOpacity",w.default=pe},function(y,w,E){"use strict";var q=E(554),ne=E.n(q),ie=E(298),oe=E(5),se=E.n(oe),le=E(50),pe=E(55),ge=E(102),he=E(83),me=E(32),ve=E(174),ye=E.n(ve),Re={},we={Mixin:{scrollResponderMixinGetInitialState:function scrollResponderMixinGetInitialState(){return{isTouching:!1,lastMomentumScrollBeginTime:0,lastMomentumScrollEndTime:0,observedScrollSinceBecomingResponder:!1,becameResponderWhileAnimating:!1}},scrollResponderHandleScrollShouldSetResponder:function scrollResponderHandleScrollShouldSetResponder(){return this.state.isTouching},scrollResponderHandleStartShouldSetResponder:function scrollResponderHandleStartShouldSetResponder(){return!1},scrollResponderHandleStartShouldSetResponderCapture:function scrollResponderHandleStartShouldSetResponderCapture(y){return this.scrollResponderIsAnimating()},scrollResponderHandleResponderReject:function scrollResponderHandleResponderReject(){ye()(!1,"ScrollView doesn't take rejection well - scrolls anyway")},scrollResponderHandleTerminationRequest:function scrollResponderHandleTerminationRequest(){return!this.state.observedScrollSinceBecomingResponder},scrollResponderHandleTouchEnd:function scrollResponderHandleTouchEnd(y){var w=y.nativeEvent;this.state.isTouching=0!==w.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(y)},scrollResponderHandleResponderRelease:function scrollResponderHandleResponderRelease(y){this.props.onResponderRelease&&this.props.onResponderRelease(y);var w=he.a.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==w||y.target===w||this.state.observedScrollSinceBecomingResponder||this.state.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(y),he.a.blurTextInput(w))},scrollResponderHandleScroll:function scrollResponderHandleScroll(y){this.state.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(y)},scrollResponderHandleResponderGrant:function scrollResponderHandleResponderGrant(y){this.state.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(y),this.state.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},scrollResponderHandleScrollBeginDrag:function scrollResponderHandleScrollBeginDrag(y){this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(y)},scrollResponderHandleScrollEndDrag:function scrollResponderHandleScrollEndDrag(y){this.props.onScrollEndDrag&&this.props.onScrollEndDrag(y)},scrollResponderHandleMomentumScrollBegin:function scrollResponderHandleMomentumScrollBegin(y){this.state.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(y)},scrollResponderHandleMomentumScrollEnd:function scrollResponderHandleMomentumScrollEnd(y){this.state.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(y)},scrollResponderHandleTouchStart:function scrollResponderHandleTouchStart(y){this.state.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(y)},scrollResponderHandleTouchMove:function scrollResponderHandleTouchMove(y){this.props.onTouchMove&&this.props.onTouchMove(y)},scrollResponderIsAnimating:function scrollResponderIsAnimating(){return Date.now()-this.state.lastMomentumScrollEndTime<16||this.state.lastMomentumScrollEndTime0&&E>=w}(Fe.current.scrollLastTick,we)&&function handleScrollTick(y){Fe.current.scrollLastTick=Date.now(),pe&&pe(normalizeScrollEvent(y))}(y):function handleScrollStart(y){Fe.current.isScrolling=!0,Fe.current.scrollLastTick=Date.now()}()},onTouchMove:createPreventableScrollHandler(ge),onWheel:createPreventableScrollHandler(he),pointerEvents:me,ref:w,style:[Ae,!ye&&Oe.scrollDisabled,Ve&&Oe.hideScrollbar],testID:je})})),Oe=Se.default.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}}),Te=Ae;function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _objectSpread(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","keyboardDismissMode","onScroll"])),pe={};q&&(pe={onLayout:this._handleContentOnLayout});var ge=!E&&Array.isArray(ie),he=ge||oe?Me.a.Children.map(this.props.children,(function(y,w){var E=ge&&ie.indexOf(w)>-1;return null!=y&&(E||oe)?Me.a.createElement(ke.default,{style:Se.default.compose(E&&Ve.stickyHeader,oe&&Ve.pagingEnabledChild)},y):y})):this.props.children,me=Me.a.createElement(ke.default,_extends({},pe,{children:he,collapsable:!1,ref:this._setInnerViewRef,style:Se.default.compose(E&&Ve.contentContainerHorizontal,w)})),ve=E?Ve.baseHorizontal:Ve.baseVertical,ye=E?Ve.pagingEnabledHorizontal:Ve.pagingEnabledVertical,Re=_objectSpread({},le,{style:[ve,oe&&ye,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),we=Te;return se()(void 0!==we,"ScrollViewClass must not be undefined"),ne?Me.a.cloneElement(ne,{style:Re.style},Me.a.createElement(we,_extends({},Re,{ref:this._setScrollNodeRef,style:ve}),me)):Me.a.createElement(we,_extends({},Re,{ref:this._setScrollNodeRef}),me)},_handleContentOnLayout:function _handleContentOnLayout(y){var w=y.nativeEvent.layout,E=w.width,q=w.height;this.props.onContentSizeChange(E,q)},_handleScroll:function _handleScroll(y){"on-drag"===this.props.keyboardDismissMode&&Object(ie.a)(),this.scrollResponderHandleScroll(y)},_setInnerViewRef:function _setInnerViewRef(y){this._innerViewRef=y},_setScrollNodeRef:function _setScrollNodeRef(y){this._scrollNodeRef=y}}),Be={flexGrow:1,flexShrink:1,transform:[{translateZ:0}],WebkitOverflowScrolling:"touch"},Ve=Se.default.create({baseVertical:_objectSpread({},Be,{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:_objectSpread({},Be,{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}});w.a=Fe},function(y,w,E){"use strict";function pick(y,w){var E={};for(var q in y)y.hasOwnProperty(q)&&(!0!==w[q]&&0!==q.indexOf("aria-")||(E[q]=y[q]));return E}E.d(w,"a",(function(){return pick}))},function(y,w,E){"use strict";E.d(w,"a",(function(){return usePlatformMethods}));var q=E(32),ne=E(292),ie=E(0);function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _defineProperty(y,w,E){return w in y?Object.defineProperty(y,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[w]=E,y}function setNativeProps(y,w,E,ie,oe,se){if(null!=y&&w){var le=Object(ne.a)(null,function _objectSpread(y){for(var w=1;w0?y._pressDelayTimeout=setTimeout((function(){y._receiveSignal(q,w)}),ne):y._receiveSignal(q,w);var ie=normalizeDelay(y._config.delayLongPress,10,450);y._longPressDelayTimeout=setTimeout((function(){y._handleLongPress(w)}),ie+ne)},E=function end(w){y._receiveSignal(ge,w)},ne=function keyupHandler(w){y._touchState!==oe&&(E(w),document.removeEventListener("keyup",keyupHandler))};return{onStartShouldSetResponder:function onStartShouldSetResponder(){var w=y._config.disabled;return null==w||!w},onKeyDown:function onKeyDown(E){(function isValidKeyPress(y){var w=y.key,E=y.currentTarget.getAttribute("role"),q=" "===w||"Spacebar"===w;return!y.repeat&&("Enter"===w||q&&("button"===E||"menuitem"===E))})(E)&&(y._touchState===oe&&(w(E,!1),document.addEventListener("keyup",ne)),E.stopPropagation())},onResponderGrant:function onResponderGrant(y){return w(y)},onResponderMove:function onResponderMove(w){null!=y._config.onPressMove&&y._config.onPressMove(w);var E=getTouchFromResponderEvent(w);if(null!=y._touchActivatePosition){var q=y._touchActivatePosition.pageX-E.pageX,ne=y._touchActivatePosition.pageY-E.pageY;Math.hypot(q,ne)>10&&y._cancelLongPressDelayTimeout()}},onResponderRelease:function onResponderRelease(y){return E(y)},onResponderTerminate:function onResponderTerminate(w){"selectionchange"===w.nativeEvent.type&&(y._selectionTerminated=!0),y._receiveSignal(he,w)},onResponderTerminationRequest:function onResponderTerminationRequest(w){var E=y._config,q=E.cancelable,ne=E.disabled,ie=E.onLongPress;return!(!ne&&null!=ie&&y._isPointerTouch&&"contextmenu"===w.nativeEvent.type)&&(null==q||q)},onClick:function onClick(w){var E=y._config,q=E.disabled,ne=E.onPress;q||(y._longPressDispatched||y._selectionTerminated?w.preventDefault():null!=ne&&!1===w.ctrlKey&&!1===w.altKey&&ne(w)),w.stopPropagation()},onContextMenu:function onContextMenu(w){var E=y._config,q=E.disabled,ne=E.onLongPress;q||null==ne||!y._isPointerTouch||w.defaultPrevented||w.preventDefault(),w.stopPropagation()}}},y._receiveSignal=function _receiveSignal(y,w){var E=this._touchState,q=null;null!=me[E]&&(q=me[E][y]),null==this._responder&&y===ge||(null==q||q===ne?console.error("PressResponder: Invalid signal "+y+" for state "+E+" on responder"):E!==q&&(this._performTransitionSideEffects(E,q,y,w),this._touchState=q))},y._performTransitionSideEffects=function _performTransitionSideEffects(y,w,E,q){if(function isTerminalSignal(y){return y===he||y===ge}(E)&&(this._isPointerTouch=!1,this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),ye(y)&&E===ie){var ne=this._config.onLongPress;null!=ne&&null==q.nativeEvent.key&&(ne(q),this._longPressDispatched=!0)}var oe=ve(y),le=ve(w);if(!oe&&le?this._activate(q):oe&&!le&&this._deactivate(q),ye(y)&&E===ge){var pe=this._config,me=pe.onLongPress;if(null!=pe.onPress)null!=me&&y===se||le||oe||(this._activate(q),this._deactivate(q))}this._cancelPressDelayTimeout()},y._activate=function _activate(y){var w=this._config,E=w.onPressChange,q=w.onPressStart,ne=getTouchFromResponderEvent(y);this._touchActivatePosition={pageX:ne.pageX,pageY:ne.pageY},null!=q&&q(y),null!=E&&E(!0)},y._deactivate=function _deactivate(y){var w=this._config,E=w.onPressChange,q=w.onPressEnd;function end(){null!=q&&q(y),null!=E&&E(!1)}var ne=normalizeDelay(this._config.delayPressEnd);ne>0?this._pressOutDelayTimeout=setTimeout((function(){end()}),ne):end()},y._handleLongPress=function _handleLongPress(y){this._touchState!==le&&this._touchState!==se||this._receiveSignal(ie,y)},y._cancelLongPressDelayTimeout=function _cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)},y._cancelPressDelayTimeout=function _cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)},y._cancelPressOutDelayTimeout=function _cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)},PressResponder}();function normalizeDelay(y,w,E){return void 0===w&&(w=0),void 0===E&&(E=0),Math.max(w,null!=y?y:E)}function getTouchFromResponderEvent(y){var w=y.nativeEvent,E=w.changedTouches,q=w.touches;return null!=q&&q.length>0?q[0]:null!=E&&E.length>0?E[0]:y.nativeEvent}var we=E(0);function usePressEvents(y,w){var E=Object(we.useRef)(null);null==E.current&&(E.current=new Re(w));var q=E.current;return Object(we.useEffect)((function(){q.configure(w)}),[w,q]),Object(we.useEffect)((function(){return function(){q.reset()}}),[q]),Object(we.useDebugValue)(w),q.getEventHandlers()}},function(y,w,E){"use strict";var q=E(104),ne=function(){function Batchinator(y,w){this._delay=w,this._callback=y}var y=Batchinator.prototype;return y.dispose=function dispose(y){void 0===y&&(y={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),y.abort||this._callback(),this._taskHandle=null)},y.schedule=function schedule(){var y=this;if(!this._taskHandle){var w=setTimeout((function(){y._taskHandle=q.a.runAfterInteractions((function(){y._taskHandle=null,y._callback()}))}),this._delay);this._taskHandle={cancel:function cancel(){return clearTimeout(w)}}}},Batchinator}(),ie=E(305),oe=E.n(ie),se=E(174),le=E.n(se);function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _defineProperty(y,w,E){return w in y?Object.defineProperty(y,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[w]=E,y}var pe=function Info(){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},ge=[],he=10,me=null,ve=function(){function FillRateHelper(y){this._anyBlankStartTime=null,this._enabled=!1,this._info=new pe,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=y,this._enabled=(me||0)>Math.random(),this._resetData()}FillRateHelper.addListener=function addListener(y){return le()(null!==me,"Call `FillRateHelper.setSampleRate` before `addListener`."),ge.push(y),{remove:function remove(){ge=ge.filter((function(w){return y!==w}))}}},FillRateHelper.setSampleRate=function setSampleRate(y){me=y},FillRateHelper.setMinSampleCount=function setMinSampleCount(y){he=y};var y=FillRateHelper.prototype;return y.activate=function activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=oe()())},y.deactivateAndFlush=function deactivateAndFlush(){if(this._enabled){var y=this._samplesStartTime;if(null!=y)if(this._info.sample_count0&&(ge=Math.min(se,Math.max(0,me.offset-ne)));for(var ve=0,ye=w.last,Re=this._getFrameMetrics(ye);ye>=w.first&&(!Re||!Re.inLayout);)Re=this._getFrameMetrics(ye),ye--;if(Re&&ye0?(this._anyBlankStartTime=pe,this._info.any_blank_speed_sum+=le,this._info.any_blank_count++,this._info.pixels_blank+=_e,Me>.5&&(this._mostlyBlankStartTime=pe,this._info.mostly_blank_count++)):(le<.01||Math.abs(q)<1)&&this.deactivateAndFlush(),Me},y.enabled=function enabled(){return this._enabled},y._resetData=function _resetData(){this._anyBlankStartTime=null,this._info=new pe,this._mostlyBlankStartTime=null,this._samplesStartTime=null},FillRateHelper}(),ye=E(2),Re=E.n(ye),we=E(0),_e=E(289),Me=E(128),Se=E(10),ke=E(9),Ae=E(5),Oe=E.n(Ae);function ViewabilityHelper_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function ViewabilityHelper_objectSpread(y){for(var w=1;w=0&&w<=E&&w>y}(E,q,ne))return!0;var oe=function _getPixelsVisible(y,w,E){var q=Math.min(w,E)-Math.max(y,0);return Math.max(0,q)}(E,q,ne);return 100*(y?oe/ne:oe/ie)>=w}var Te=function(){function ViewabilityHelper(y){void 0===y&&(y={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=y}var y=ViewabilityHelper.prototype;return y.dispose=function dispose(){this._timers.forEach(clearTimeout)},y.computeViewableItems=function computeViewableItems(y,w,E,q,ne){var ie=this._config,oe=ie.itemVisiblePercentThreshold,se=ie.viewAreaCoveragePercentThreshold,le=null!=se,pe=le?se:oe;Oe()(null!=pe&&null!=oe!=(null!=se),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var ge=[];if(0===y)return ge;var he=-1,me=ne||{first:0,last:y-1},ve=me.first,ye=me.last;if(ye>=y)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:ne,itemCount:y})),[];for(var Re=ve;Re<=ye;Re++){var we=q(Re);if(we){var _e=we.offset-w,Me=_e+we.length;if(_e0)he=Re,_isViewable(le,pe,_e,Me,E,we.length)&&ge.push(Re);else if(he>=0)break}}return ge},y.onUpdate=function onUpdate(y,w,E,q,ne,ie,oe){var se=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==y&&q(0)){var le=[];if(y&&(le=this.computeViewableItems(y,w,E,q,oe)),this._viewableIndices.length!==le.length||!this._viewableIndices.every((function(y,w){return y===le[w]})))if(this._viewableIndices=le,this._config.minimumViewTime){var pe=setTimeout((function(){se._timers.delete(pe),se._onUpdateSync(le,ie,ne)}),this._config.minimumViewTime);this._timers.add(pe)}else this._onUpdateSync(le,ie,ne)}},y.resetViewableIndices=function resetViewableIndices(){this._viewableIndices=[]},y.recordInteraction=function recordInteraction(){this._hasInteracted=!0},y._onUpdateSync=function _onUpdateSync(y,w,E){var q=this;y=y.filter((function(y){return q._viewableIndices.includes(y)}));var ne=this._viewableItems,ie=new Map(y.map((function(y){var w=E(y,!0);return[w.key,w]}))),oe=[],se=ie,le=Array.isArray(se),pe=0;for(se=le?se:se[Symbol.iterator]();;){var ge;if(le){if(pe>=se.length)break;ge=se[pe++]}else{if((pe=se.next()).done)break;ge=pe.value}var he=ge,me=he[0],ve=he[1];ne.has(me)||oe.push(ve)}var ye=ne,Re=Array.isArray(ye),we=0;for(ye=Re?ye:ye[Symbol.iterator]();;){var _e;if(Re){if(we>=ye.length)break;_e=ye[we++]}else{if((we=ye.next()).done)break;_e=we.value}var Me=_e,Se=Me[0],ke=Me[1];ie.has(Se)||oe.push(ViewabilityHelper_objectSpread({},ke,{isViewable:!1}))}oe.length>0&&(this._viewableItems=ie,w({viewableItems:Array.from(ie.values()),changed:oe,viewabilityConfig:this._config}))},ViewabilityHelper}(),je=E(55);var Fe=function infoLog(){var y;return(y=console).log.apply(y,arguments)};function elementsThatOverlapOffsets(y,w,E){for(var q=[],ne=0,ie=0;ie=y[le]&&(q[le]=ie,ne++,le===y.length-1))return Oe()(ne===y.length,"bad offsets input, should be in increasing order: %s",JSON.stringify(y)),q;return q}function newRangeCount(y,w){return w.last-w.first+1-Math.max(0,1+Math.min(w.last,y.last)-Math.max(w.first,y.first))}function computeWindowedRenderLimits(y,w,E,q){var ne=y.data,ie=y.getItemCount,oe=y.maxToRenderPerBatch,se=y.windowSize,le=ie(ne);if(0===le)return w;var pe=q.offset,ge=q.velocity,he=q.visibleLength,me=Math.max(0,pe),ve=me+he,ye=(se-1)*he,Re=ge>1?"after":ge<-1?"before":"none",we=Math.max(0,me-.5*ye),_e=Math.max(0,ve+.5*ye);if(E(le-1).offset=Oe);){var Fe=je>=oe,Be=ke<=w.first||ke>w.last,Ve=ke>Se&&(!Fe||!Be),Ne=Ae>=w.last||Ae=ke&&ke>=0&&Ae=Se&&Ae<=Oe&&ke<=Te.first&&Ae>=Te.last))throw new Error("Bad window calculation "+JSON.stringify({first:ke,last:Ae,itemCount:le,overscanFirst:Se,overscanLast:Oe,visible:Te}));return{first:ke,last:Ae}}function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w0&&w>0&&null!=q.props.initialScrollIndex&&q.props.initialScrollIndex>0&&!q._hasDoneInitialScroll&&(q.scrollToIndex({animated:!1,index:q.props.initialScrollIndex}),q._hasDoneInitialScroll=!0),q.props.onContentSizeChange&&q.props.onContentSizeChange(y,w),q._scrollMetrics.contentLength=q._selectLength({height:w,width:y}),q._scheduleCellsToRenderUpdate(),q._maybeCallOnEndReached()},q._convertParentScrollMetrics=function(y){var w=y.offset-q._offsetFromParentVirtualizedList,E=y.visibleLength,ne=w-q._scrollMetrics.offset;return{visibleLength:E,contentLength:q._scrollMetrics.contentLength,offset:w,dOffset:ne}},q._onScroll=function(y){q._nestedChildLists.forEach((function(w){w.ref&&w.ref._onScroll(y)})),q.props.onScroll&&q.props.onScroll(y);var w=y.timeStamp,E=q._selectLength(y.nativeEvent.layoutMeasurement),ne=q._selectLength(y.nativeEvent.contentSize),ie=q._selectOffset(y.nativeEvent.contentOffset),oe=ie-q._scrollMetrics.offset;if(q._isNestedWithSameOrientation()){if(0===q._scrollMetrics.contentLength)return;var se=q._convertParentScrollMetrics({visibleLength:E,offset:ie});E=se.visibleLength,ne=se.contentLength,ie=se.offset,oe=se.dOffset}var le=q._scrollMetrics.timestamp?Math.max(1,w-q._scrollMetrics.timestamp):1,pe=oe/le;le>500&&q._scrollMetrics.dt>500&&ne>5*E&&!q._hasWarned.perf&&(Fe("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:le,prevDt:q._scrollMetrics.dt,contentLength:ne}),q._hasWarned.perf=!0),q._scrollMetrics={contentLength:ne,dt:le,dOffset:oe,offset:ie,timestamp:w,velocity:pe,visibleLength:E},q._updateViewableItems(q.props.data),q.props&&(q._maybeCallOnEndReached(),0!==pe&&q._fillRateHelper.activate(),q._computeBlankness(),q._scheduleCellsToRenderUpdate())},q._onScrollBeginDrag=function(y){q._nestedChildLists.forEach((function(w){w.ref&&w.ref._onScrollBeginDrag(y)})),q._viewabilityTuples.forEach((function(y){y.viewabilityHelper.recordInteraction()})),q._hasInteracted=!0,q.props.onScrollBeginDrag&&q.props.onScrollBeginDrag(y)},q._onScrollEndDrag=function(y){var w=y.nativeEvent.velocity;w&&(q._scrollMetrics.velocity=q._selectOffset(w)),q._computeBlankness(),q.props.onScrollEndDrag&&q.props.onScrollEndDrag(y)},q._onMomentumScrollEnd=function(y){q._scrollMetrics.velocity=0,q._computeBlankness(),q.props.onMomentumScrollEnd&&q.props.onMomentumScrollEnd(y)},q._updateCellsToRender=function(){var y=q.props,w=y.data,E=y.getItemCount,ne=y.onEndReachedThreshold,ie=q._isVirtualizationDisabled();q._updateViewableItems(w),w&&q.setState((function(y){var oe;if(ie){var se=q._scrollMetrics,le=se.contentLength,pe=se.offset,ge=se.visibleLength,he=le-ge-pe0)for(var me=oe.first,ve=oe.last,ye=me;ye<=ve;ye++){var Re=q._indicesToKeys.get(ye),we=Re&&q._cellKeysToChildListKeys.get(Re);if(we){var _e=!1,Me=we,Se=Array.isArray(Me),ke=0;for(Me=Se?Me:Me[Symbol.iterator]();;){var Ae;if(Se){if(ke>=Me.length)break;Ae=Me[ke++]}else{if((ke=Me.next()).done)break;Ae=ke.value}var Oe=Ae,Te=q._nestedChildLists.get(Oe);if(Te&&Te.ref&&Te.ref.hasMore()){_e=!0;break}}if(_e){oe.last=ye;break}}}return oe}))},q._createViewToken=function(y,w){var E=q.props,ne=E.data,ie=E.getItem,oe=E.keyExtractor,se=ie(ne,y);return{index:y,item:se,key:oe(se,y),isViewable:w}},q._getFrameMetricsApprox=function(y){var w=q._getFrameMetrics(y);if(w&&w.index===y)return w;var E=q.props.getItemLayout;return Oe()(!E,"Should not have to estimate frames when a measurement metrics function is provided"),{length:q._averageCellLength,offset:q._averageCellLength*y}},q._getFrameMetrics=function(y){var w=q.props,E=w.data,ne=w.getItem,ie=w.getItemCount,oe=w.getItemLayout,se=w.keyExtractor;Oe()(ie(E)>y,"Tried to get frame for out of range index "+y);var le=ne(E,y),pe=le&&q._frames[se(le,y)];pe&&pe.index===y||oe&&(pe=oe(E,y));return pe},Oe()(!w.onScroll||!w.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),Oe()(w.windowSize>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),q._fillRateHelper=new ve(q._getFrameMetrics),q._updateCellsToRenderBatcher=new ne(q._updateCellsToRender,q.props.updateCellsBatchingPeriod),q.props.viewabilityConfigCallbackPairs?q._viewabilityTuples=q.props.viewabilityConfigCallbackPairs.map((function(y){return{viewabilityHelper:new Te(y.viewabilityConfig),onViewableItemsChanged:y.onViewableItemsChanged}})):q.props.onViewableItemsChanged&&q._viewabilityTuples.push({viewabilityHelper:new Te(q.props.viewabilityConfig),onViewableItemsChanged:q.props.onViewableItemsChanged});var ie={first:q.props.initialScrollIndex||0,last:Math.min(q.props.getItemCount(q.props.data),(q.props.initialScrollIndex||0)+q.props.initialNumToRender)-1};if(q._isNestedWithSameOrientation()){var oe=q.context.virtualizedList.getNestedChildState(q.props.listKey||q._getCellKey());oe&&(ie=oe,q.state=oe,q._frames=oe.frames)}return q.state=ie,q}return w.scrollToEnd=function scrollToEnd(y){var w=!y||y.animated,E=this.props.getItemCount(this.props.data)-1,q=this._getFrameMetricsApprox(E),ne=Math.max(0,q.offset+q.length+this._footerLength-this._scrollMetrics.visibleLength);this._scrollRef.scrollTo(this.props.horizontal?{x:ne,animated:w}:{y:ne,animated:w})},w.scrollToIndex=function scrollToIndex(y){var w=this.props,E=w.data,q=w.horizontal,ne=w.getItemCount,ie=w.getItemLayout,oe=w.onScrollToIndexFailed,se=y.animated,le=y.index,pe=y.viewOffset,ge=y.viewPosition;if(Oe()(le>=0&&lethis._highestMeasuredFrameIndex)return Oe()(!!oe,"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 oe({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:le});var he=this._getFrameMetricsApprox(le),me=Math.max(0,he.offset-(ge||0)*(this._scrollMetrics.visibleLength-he.length))-(pe||0);this._scrollRef.scrollTo(q?{x:me,animated:se}:{y:me,animated:se})},w.scrollToItem=function scrollToItem(y){for(var w=y.item,E=this.props,q=E.data,ne=E.getItem,ie=(0,E.getItemCount)(q),oe=0;oe0){Be=!1,Ve="";var Re=se?"width":"height",_e=this.props.initialScrollIndex?-1:this.props.initialNumToRender-1,Me=this.state,Ae=Me.first,Oe=Me.last;this._pushCells(ge,me,he,0,_e,pe);var Te=Math.max(_e+1,Ae);if(!le&&Ae>_e+1){var je=!1;if(he.size>0)for(var Fe=ne?1:0,Ne=Te-1;Ne>_e;Ne--)if(he.has(Ne+Fe)){var Ue,Ye,Xe=this._getFrameMetricsApprox(_e),et=this._getFrameMetricsApprox(Ne),tt=et.offset-Xe.offset-(this.props.initialScrollIndex?0:Xe.length);ge.push(we.createElement(ke.default,{key:"$sticky_lead",style:(Ue={},Ue[Re]=tt,Ue)})),this._pushCells(ge,me,he,Ne,Ne,pe);var nt=this._getFrameMetricsApprox(Ae).offset-(et.offset+et.length);ge.push(we.createElement(ke.default,{key:"$sticky_trail",style:(Ye={},Ye[Re]=nt,Ye)})),je=!0;break}if(!je){var rt,it=this._getFrameMetricsApprox(_e),ot=this._getFrameMetricsApprox(Ae).offset-(it.offset+it.length);ge.push(we.createElement(ke.default,{key:"$lead_spacer",style:(rt={},rt[Re]=ot,rt)}))}}if(this._pushCells(ge,me,he,Te,Oe,pe),!this._hasWarned.keys&&Be&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",Ve),this._hasWarned.keys=!0),!le&&Oe=se.length)break;ge=se[pe++]}else{if((pe=se.next()).done)break;ge=pe.value}var he=ge,me=this._nestedChildLists.get(he);me&&me.ref&&me.ref.measureLayoutRelativeToContainingList()}}this._computeBlankness(),this._updateViewableItems(this.props.data)},w.measureLayoutRelativeToContainingList=function measureLayoutRelativeToContainingList(){var y=this;try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.virtualizedList.getOutermostParentListRef().getScrollRef().getNativeScrollRef(),(function(w,E,q,ne){y._offsetFromParentVirtualizedList=y._selectOffset({x:w,y:E}),y._scrollMetrics.contentLength=y._selectLength({width:q,height:ne});var ie=y._convertParentScrollMetrics(y.context.virtualizedList.getScrollMetrics());y._scrollMetrics.visibleLength=ie.visibleLength,y._scrollMetrics.offset=ie.offset}),(function(y){console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")}))}catch(y){console.warn("measureLayoutRelativeToContainingList threw an error",y.stack)}},w._renderDebugOverlay=function _renderDebugOverlay(){for(var y=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),w=[],E=this.props.getItemCount(this.props.data),q=0;q0){var ge=ne-this._getFrameMetricsApprox(w).offset;le=le||ge<0||oe<-2&&ge2&&hedocument.F=Object<\/script>"),y.close(),createDict=y.F;q--;)delete createDict.prototype[ie[q]];return createDict()};y.exports=Object.create||function create(y,w){var E;return null!==y?(Empty.prototype=q(y),E=new Empty,Empty.prototype=null,E[oe]=y):E=createDict(),void 0===w?E:ne(E,w)}},function(y,w,E){var q=E(401),ne=E(309).concat("length","prototype");w.f=Object.getOwnPropertyNames||function getOwnPropertyNames(y){return q(y,ne)}},function(y,w,E){var q=E(71),ne=E(52),ie=E(308)("IE_PROTO"),oe=Object.prototype;y.exports=Object.getPrototypeOf||function(y){return y=ne(y),q(y,ie)?y[ie]:"function"==typeof y.constructor&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?oe:null}},function(y,w,E){var q=E(30)("unscopables"),ne=Array.prototype;null==ne[q]&&E(72)(ne,q,{}),y.exports=function(y){ne[q][y]=!0}},function(y,w,E){var q=E(23);y.exports=function(y,w){if(!q(y)||y._t!==w)throw TypeError("Incompatible receiver, "+w+" required!");return y}},function(y,w){var E,q,ne=y.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(y){if(E===setTimeout)return setTimeout(y,0);if((E===defaultSetTimout||!E)&&setTimeout)return E=setTimeout,setTimeout(y,0);try{return E(y,0)}catch(w){try{return E.call(null,y,0)}catch(w){return E.call(this,y,0)}}}!function(){try{E="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(y){E=defaultSetTimout}try{q="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(y){q=defaultClearTimeout}}();var ie,oe=[],se=!1,le=-1;function cleanUpNextTick(){se&&ie&&(se=!1,ie.length?oe=ie.concat(oe):le=-1,oe.length&&drainQueue())}function drainQueue(){if(!se){var y=runTimeout(cleanUpNextTick);se=!0;for(var w=oe.length;w;){for(ie=oe,oe=[];++le1)for(var E=1;E=y.length?{done:!0}:{done:!1,value:y[q++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(E=y["function"==typeof Symbol?Symbol.iterator:"@@iterator"]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);E=_t)){w.next=2;break}return w.abrupt("return");case 2:return w.next=4,(0,Ye.pickDocument)({maxNumberOfFiles:_t-un});case 4:!(y=w.sent).cancelled&&y.docs&&y.docs.forEach((function(y){var w=(0,we.lookup)(y.name);w&&(null==w?void 0:w.startsWith("image/"))?Vn(y):Bn(y)}));case 6:case"end":return w.stop()}}),_callee)})));return function pickFile(){return y.apply(this,arguments)}}(),kn=function(){var y=(0,le.default)(se.default.mark((function _callee2(){var y;return se.default.wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:if(!(_t&&un>=_t)){w.next=2;break}return w.abrupt("return");case 2:return w.next=4,(0,Ye.pickImage)({compressImageQuality:Xe,maxNumberOfFiles:_t-un});case 4:!(y=w.sent).cancelled&&y.images&&y.images.forEach((function(y){Vn(y)}));case 6:case"end":return w.stop()}}),_callee2)})));return function pickImage(){return y.apply(this,arguments)}}(),En=function removeFile(y){sn.some((function(w){return w.id===y}))&&(ln((function(w){return w.filter((function(w){return w.id!==y}))})),hn((function(y){return y-1})))},An=function removeImage(y){dn.some((function(w){return w.id===y}))&&(pn((function(w){return w.filter((function(w){return w.id!==y}))})),hn((function(y){return y-1})))},Dn=function(){var y=(0,le.default)(se.default.mark((function _callee3(){return se.default.wrap((function _callee3$(y){for(;;)switch(y.prev=y.next){case 0:if(!(_t&&un>=_t||un>=10)){y.next=2;break}return y.abrupt("return");case 2:if(!mt){y.next=12;break}if(!ht){y.next=9;break}return y.next=6,ve.default.dismiss();case 6:(null==$t?void 0:$t.current)&&$t.current.show(),y.next=10;break;case 9:kn();case 10:y.next=13;break;case 12:ht&&Sn();case 13:case"end":return y.stop()}}),_callee3)})));return function handleOnPress(){return y.apply(this,arguments)}}(),On=function renderInputContainer(){var y=_objectSpread({editable:!Ft&&void 0},ne),w=It?(0,et.ACITriggerSettings)({autocompleteSuggestionsLimit:xt,channel:It,onMentionSelectItem:Mn,t:Wt}):{};return me.default.createElement(nt,{imageUploads:dn},sn&&me.default.createElement(pt,{AttachmentFileIcon:ye,fileUploads:sn,removeFile:En,retryUpload:zn}),dn&&me.default.createElement(yt,{imageUploads:dn,removeImage:An,retryUpload:Fn}),me.default.createElement(E,{closeAttachActionSheet:bn,pickFile:Sn,pickImage:kn,setAttachActionSheetRef:Tn,styles:q}),me.default.createElement(st,{ref:qt},wt?me.default.createElement(wt,{_pickFile:Sn,_pickImage:kn,_removeFile:En,_removeImage:An,_uploadFile:zn,_uploadImage:Fn,additionalTextInputProps:y,appendText:Rn,closeAttachActionSheet:bn,disabled:Ft,getUsers:xn,handleOnPress:Dn,isValidMessage:Cn,onChange:_n,onSelectItem:Mn,sendMessage:In,setInputBoxContainerRef:qt,setInputBoxRef:Ln,triggerSettings:w,updateMessage:jn,uploadNewFile:Bn,uploadNewImage:Vn,value:vn}):me.default.createElement(me.default.Fragment,null,(mt||ht)&&me.default.createElement(he,{disabled:Ft,handleOnPress:Dn}),me.default.createElement(Fe.AutoCompleteInput,{additionalTextInputProps:ne||{},onChange:_n,setInputBoxRef:Ln,triggerSettings:w,value:vn}),me.default.createElement(Et,{disabled:Ft||Yt.current||!Cn(),sendMessage:In}))))},Pn=function resetInput(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];ln([]),pn([]),gn([]),hn((function(w){return w-((null==y?void 0:y.length)||0)})),mn("")},In=function(){var y=(0,le.default)(se.default.mark((function _callee4(){var y,w,E,q,ne,oe,le,ge,he,me,ve,ye;return se.default.wrap((function _callee4$(se){for(;;)switch(se.prev=se.next){case 0:if(!Yt.current){se.next=2;break}return se.abrupt("return");case 2:return Yt.current=!0,y=vn,se.next=6,mn("");case 6:Kt.current&&Kt.current.clear(),w=[],E=function _loop(E){if(!E||E.state===et.FileState.UPLOAD_FAILED)return"continue";if(E.state===et.FileState.UPLOADING){if(!Dt)return Yt.current=!1,{v:mn(y)};Qt((function(y){return[].concat((0,pe.default)(y),[E.id])}))}E.state!==et.FileState.UPLOADED&&E.state!==et.FileState.FINISHED||w.push({fallback:E.file.name,image_url:E.url,type:"image"})},q=_createForOfIteratorHelperLoose(dn);case 10:if((ne=q()).done){se.next=19;break}if(oe=ne.value,"continue"!==(le=E(oe))){se.next=15;break}return se.abrupt("continue",17);case 15:if("object"!==(0,ie.default)(le)){se.next=17;break}return se.abrupt("return",le.v);case 17:se.next=10;break;case 19:ge=_createForOfIteratorHelperLoose(sn);case 20:if((he=ge()).done){se.next=30;break}if((me=he.value)&&me.state!==et.FileState.UPLOAD_FAILED){se.next=24;break}return se.abrupt("continue",28);case 24:if(me.state!==et.FileState.UPLOADING){se.next=27;break}return Yt.current=!1,se.abrupt("return");case 27:me.state!==et.FileState.UPLOADED&&me.state!==et.FileState.FINISHED||w.push({asset_url:me.url,file_size:me.file.size,mime_type:me.file.type,title:me.file.name,type:"file"});case 28:se.next=20;break;case 30:if(y||0!==w.length){se.next=33;break}return Yt.current=!1,se.abrupt("return");case 33:if(Nt&&!(0,Ue.isEditingBoolean)(Nt))ve=_objectSpread(_objectSpread({},Nt),{},{attachments:w,mentioned_users:cn,text:y}),Ht(),ye=Ut(ve).then(Ht),Pn(w),(0,_e.logChatPromiseExecution)(ye,"update message"),Yt.current=!1;else try{Gt({attachments:w,mentioned_users:(0,Re.default)(cn),parent_id:St,text:y}),Yt.current=!1,Pn(w)}catch(w){Yt.current=!1,mn(y),console.log("Failed to send message")}case 34:case"end":return se.stop()}}),_callee4)})));return function sendMessage(){return y.apply(this,arguments)}}(),Tn=function setAttachActionSheetRef(y){$t.current=y},Ln=function setInputBoxRef(y){Kt.current=y,Ot&&Ot(y)},jn=function(){var y=(0,le.default)(se.default.mark((function _callee5(){return se.default.wrap((function _callee5$(y){for(;;)switch(y.prev=y.next){case 0:if(y.prev=0,(0,Ue.isEditingBoolean)(Nt)){y.next=4;break}return y.next=4,Bt.updateMessage(_objectSpread(_objectSpread({},Nt),{},{text:vn}));case 4:Pn(),Ht(),y.next=11;break;case 8:y.prev=8,y.t0=y.catch(0),console.log(y.t0);case 11:case"end":return y.stop()}}),_callee5,null,[[0,8]])})));return function updateMessage(){return y.apply(this,arguments)}}(),zn=function(){var y=(0,le.default)(se.default.mark((function _callee6(y){var w,E,q,ne;return se.default.wrap((function _callee6$(ie){for(;;)switch(ie.prev=ie.next){case 0:if(w=y.newFile){ie.next=3;break}return ie.abrupt("return");case 3:return E=w.file,q=w.id,ie.next=6,ln((function(y){return y.map((function(y){return y.id===q?_objectSpread(_objectSpread({},y),{},{state:et.FileState.UPLOADING}):y}))}));case 6:if(ne={},ie.prev=7,!ct){ie.next=14;break}return ie.next=11,ct(E,It);case 11:ne=ie.sent,ie.next=18;break;case 14:if(!It||!E.uri){ie.next=18;break}return ie.next=17,It.sendFile(E.uri,E.name,E.type);case 17:ne=ie.sent;case 18:ie.next=25;break;case 20:return ie.prev=20,ie.t0=ie.catch(7),console.warn(ie.t0),w?(ln((function(y){return y.map((function(y){return y.id===q?_objectSpread(_objectSpread({},y),{},{state:et.FileState.UPLOAD_FAILED}):y}))})),hn((function(y){return y-1}))):hn((function(y){return y-1})),ie.abrupt("return");case 25:ln((function(y){return y.map((function(y){return y.id===q?_objectSpread(_objectSpread({},y),{},{state:et.FileState.UPLOADED,url:ne.file}):y}))}));case 26:case"end":return ie.stop()}}),_callee6,null,[[7,20]])})));return function uploadFile(w){return y.apply(this,arguments)}}(),Fn=function(){var y=(0,le.default)(se.default.mark((function _callee7(y){var w,E,q,ne,ie,oe,le;return se.default.wrap((function _callee7$(se){for(;;)switch(se.prev=se.next){case 0:if(w=y.newImage,q=(E=w||{}).file,ne=E.id,q){se.next=4;break}return se.abrupt("return");case 4:if(ie={},oe=(q.name||q.uri||"").replace(/^(file:\/\/|content:\/\/)/,""),le=(0,we.lookup)(oe)||"multipart/form-data",se.prev=7,!ut){se.next=14;break}return se.next=11,ut(q,It);case 11:ie=se.sent,se.next=22;break;case 14:if(!q.uri||!It){se.next=22;break}if(!Dt){se.next=19;break}It.sendImage(q.uri,void 0,le).then((function(y){Zt.includes(ne)?an((function(w){return w[ne]=_objectSpread(_objectSpread({},w[ne]),{},{state:et.FileState.UPLOADED,url:y.file}),w})):pn((function(w){return w.map((function(w){return w.id===ne?_objectSpread(_objectSpread({},w),{},{state:et.FileState.UPLOADED,url:y.file}):w}))}))})),se.next=22;break;case 19:return se.next=21,It.sendImage(q.uri,void 0,le);case 21:ie=se.sent;case 22:Object.keys(ie).length&&pn((function(y){return y.map((function(y){return y.id===ne?_objectSpread(_objectSpread({},y),{},{state:et.FileState.UPLOADED,url:ie.file}):y}))})),se.next=31;break;case 25:return se.prev=25,se.t0=se.catch(7),console.warn(se.t0),w&&pn((function(y){return y.map((function(y){return y.id===ne?_objectSpread(_objectSpread({},y),{},{state:et.FileState.UPLOAD_FAILED}):y}))})),hn((function(y){return y-1})),se.abrupt("return");case 31:case"end":return se.stop()}}),_callee7,null,[[7,25]])})));return function uploadImage(w){return y.apply(this,arguments)}}(),Bn=function(){var y=(0,le.default)(se.default.mark((function _callee8(y){var w,E,q;return se.default.wrap((function _callee8$(ne){for(;;)switch(ne.prev=ne.next){case 0:return w=(0,je.generateRandomId)(),E=(0,we.lookup)(y.name),q={file:_objectSpread(_objectSpread({},y),{},{type:E||(null==y?void 0:y.type)}),id:w,state:et.FileState.UPLOADING},ne.next=5,Promise.all([ln((function(y){return y.concat([q])})),hn((function(y){return y+1}))]);case 5:zn({newFile:q});case 6:case"end":return ne.stop()}}),_callee8)})));return function uploadNewFile(w){return y.apply(this,arguments)}}(),Vn=function(){var y=(0,le.default)(se.default.mark((function _callee9(y){var w,E;return se.default.wrap((function _callee9$(q){for(;;)switch(q.prev=q.next){case 0:return w=(0,je.generateRandomId)(),E={file:y,id:w,state:et.FileState.UPLOADING},q.next=4,Promise.all([pn((function(y){return y.concat([E])})),hn((function(y){return y+1}))]);case 4:Fn({newImage:E});case 5:case"end":return q.stop()}}),_callee9)})));return function uploadNewImage(w){return y.apply(this,arguments)}}();return Nt?me.default.createElement(rt,{testID:"editing"},me.default.createElement(it,null,me.default.createElement(ot,null,Wt("Editing Message")),me.default.createElement(Be.IconSquare,{icon:tt,onPress:function onPress(){Pn(),Ht()}})),On()):On()}},function(y,w,E){var q=E(78),ne=E(79),ie=E(272);y.exports=q?function(y,w,E){return ne.f(y,w,ie(1,E))}:function(y,w,E){return y[w]=E,y}},function(y,w,E){"use strict";E.r(w),E.d(w,"Node",(function(){return pt})),E.d(w,"Parser",(function(){return Ue})),E.d(w,"Position",(function(){return Be})),E.d(w,"SourceLocation",(function(){return Ve})),E.d(w,"TokContext",(function(){return ht})),E.d(w,"Token",(function(){return kt})),E.d(w,"TokenType",(function(){return ve})),E.d(w,"defaultOptions",(function(){return Ne})),E.d(w,"getLineInfo",(function(){return getLineInfo})),E.d(w,"isIdentifierChar",(function(){return isIdentifierChar})),E.d(w,"isIdentifierStart",(function(){return isIdentifierStart})),E.d(w,"isNewLine",(function(){return isNewLine})),E.d(w,"keywordTypes",(function(){return we})),E.d(w,"lineBreak",(function(){return Me})),E.d(w,"lineBreakG",(function(){return Se})),E.d(w,"nonASCIIwhitespace",(function(){return ke})),E.d(w,"parse",(function(){return parse})),E.d(w,"parseExpressionAt",(function(){return parseExpressionAt})),E.d(w,"tokContexts",(function(){return ft})),E.d(w,"tokTypes",(function(){return _e})),E.d(w,"tokenizer",(function(){return tokenizer})),E.d(w,"version",(function(){return Dt}));var q={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ne="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ie={5:ne,"5module":ne+" export import",6:ne+" const class extends export import super"},oe=/^in(stanceof)?$/,se="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",le="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",pe=new RegExp("["+se+"]"),ge=new RegExp("["+se+le+"]");se=le=null;var he=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],me=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(y,w){for(var E=65536,q=0;qy)return!1;if((E+=w[q+1])>=y)return!0}}function isIdentifierStart(y,w){return y<65?36===y:y<91||(y<97?95===y:y<123||(y<=65535?y>=170&&pe.test(String.fromCharCode(y)):!1!==w&&isInAstralSet(y,he)))}function isIdentifierChar(y,w){return y<48?36===y:y<58||!(y<65)&&(y<91||(y<97?95===y:y<123||(y<=65535?y>=170&&ge.test(String.fromCharCode(y)):!1!==w&&(isInAstralSet(y,he)||isInAstralSet(y,me)))))}var ve=function TokenType(y,w){void 0===w&&(w={}),this.label=y,this.keyword=w.keyword,this.beforeExpr=!!w.beforeExpr,this.startsExpr=!!w.startsExpr,this.isLoop=!!w.isLoop,this.isAssign=!!w.isAssign,this.prefix=!!w.prefix,this.postfix=!!w.postfix,this.binop=w.binop||null,this.updateContext=null};function binop(y,w){return new ve(y,{beforeExpr:!0,binop:w})}var ye={beforeExpr:!0},Re={startsExpr:!0},we={};function kw(y,w){return void 0===w&&(w={}),w.keyword=y,we[y]=new ve(y,w)}var _e={num:new ve("num",Re),regexp:new ve("regexp",Re),string:new ve("string",Re),name:new ve("name",Re),eof:new ve("eof"),bracketL:new ve("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ve("]"),braceL:new ve("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ve("}"),parenL:new ve("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ve(")"),comma:new ve(",",ye),semi:new ve(";",ye),colon:new ve(":",ye),dot:new ve("."),question:new ve("?",ye),arrow:new ve("=>",ye),template:new ve("template"),invalidTemplate:new ve("invalidTemplate"),ellipsis:new ve("...",ye),backQuote:new ve("`",Re),dollarBraceL:new ve("${",{beforeExpr:!0,startsExpr:!0}),eq:new ve("=",{beforeExpr:!0,isAssign:!0}),assign:new ve("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ve("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ve("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new ve("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new ve("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",ye),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",ye),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",ye),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",Re),_if:kw("if"),_return:kw("return",ye),_switch:kw("switch"),_throw:kw("throw",ye),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",Re),_super:kw("super",Re),_class:kw("class",Re),_extends:kw("extends",ye),_export:kw("export"),_import:kw("import",Re),_null:kw("null",Re),_true:kw("true",Re),_false:kw("false",Re),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Me=/\r\n?|\n|\u2028|\u2029/,Se=new RegExp(Me.source,"g");function isNewLine(y,w){return 10===y||13===y||!w&&(8232===y||8233===y)}var ke=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ae=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Oe=Object.prototype,Te=Oe.hasOwnProperty,je=Oe.toString;function has(y,w){return Te.call(y,w)}var Fe=Array.isArray||function(y){return"[object Array]"===je.call(y)};function wordsRegexp(y){return new RegExp("^(?:"+y.replace(/ /g,"|")+")$")}var Be=function Position(y,w){this.line=y,this.column=w};Be.prototype.offset=function offset(y){return new Be(this.line,this.column+y)};var Ve=function SourceLocation(y,w,E){this.start=w,this.end=E,null!==y.sourceFile&&(this.source=y.sourceFile)};function getLineInfo(y,w){for(var E=1,q=0;;){Se.lastIndex=q;var ne=Se.exec(y);if(!(ne&&ne.index=2015&&(w.ecmaVersion-=2009),null==w.allowReserved&&(w.allowReserved=w.ecmaVersion<5),Fe(w.onToken)){var q=w.onToken;w.onToken=function(y){return q.push(y)}}return Fe(w.onComment)&&(w.onComment=function pushComment(y,w){return function(E,q,ne,ie,oe,se){var le={type:E?"Block":"Line",value:q,start:ne,end:ie};y.locations&&(le.loc=new Ve(this,oe,se)),y.ranges&&(le.range=[ne,ie]),w.push(le)}}(w,w.onComment)),w}function functionFlags(y,w){return 2|(y?4:0)|(w?8:0)}var Ue=function Parser(y,w,E){this.options=y=getOptions(y),this.sourceFile=y.sourceFile,this.keywords=wordsRegexp(ie[y.ecmaVersion>=6?6:"module"===y.sourceType?"5module":5]);var ne="";if(!0!==y.allowReserved){for(var oe=y.ecmaVersion;!(ne=q[oe]);oe--);"module"===y.sourceType&&(ne+=" await")}this.reservedWords=wordsRegexp(ne);var se=(ne?ne+" ":"")+q.strict;this.reservedWordsStrict=wordsRegexp(se),this.reservedWordsStrictBind=wordsRegexp(se+" "+q.strictBind),this.input=String(w),this.containsEsc=!1,E?(this.pos=E,this.lineStart=this.input.lastIndexOf("\n",E-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Me).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=_e.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===y.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&y.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},We={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Ue.prototype.parse=function parse(){var y=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(y)},We.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},We.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},We.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},We.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},We.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},We.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ue.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Ue.extend=function extend(){for(var y=[],w=arguments.length;w--;)y[w]=arguments[w];for(var E=this,q=0;q-1&&this.raiseRecoverable(y.trailingComma,"Comma is not permitted after the rest element");var E=w?y.parenthesizedAssign:y.parenthesizedBind;E>-1&&this.raiseRecoverable(E,"Parenthesized pattern")}},$e.checkExpressionErrors=function(y,w){if(!y)return!1;var E=y.shorthandAssign,q=y.doubleProto;if(!w)return E>=0||q>=0;E>=0&&this.raise(E,"Shorthand property assignments are valid only in destructuring patterns"),q>=0&&this.raiseRecoverable(q,"Redefinition of __proto__ property")},$e.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(ie,!1,!y);case _e._class:return y&&this.unexpected(),this.parseClass(ie,!0);case _e._if:return this.parseIfStatement(ie);case _e._return:return this.parseReturnStatement(ie);case _e._switch:return this.parseSwitchStatement(ie);case _e._throw:return this.parseThrowStatement(ie);case _e._try:return this.parseTryStatement(ie);case _e._const:case _e._var:return q=q||this.value,y&&"var"!==q&&this.unexpected(),this.parseVarStatement(ie,q);case _e._while:return this.parseWhileStatement(ie);case _e._with:return this.parseWithStatement(ie);case _e.braceL:return this.parseBlock(!0,ie);case _e.semi:return this.parseEmptyStatement(ie);case _e._export:case _e._import:if(this.options.ecmaVersion>10&&ne===_e._import){Ae.lastIndex=this.pos;var oe=Ae.exec(this.input),se=this.pos+oe[0].length;if(40===this.input.charCodeAt(se))return this.parseExpressionStatement(ie,this.parseExpression())}return this.options.allowImportExportEverywhere||(w||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),ne===_e._import?this.parseImport(ie):this.parseExport(ie,E);default:if(this.isAsyncFunction())return y&&this.unexpected(),this.next(),this.parseFunctionStatement(ie,!0,!y);var le=this.value,pe=this.parseExpression();return ne===_e.name&&"Identifier"===pe.type&&this.eat(_e.colon)?this.parseLabeledStatement(ie,le,pe,y):this.parseExpressionStatement(ie,pe)}},Xe.parseBreakContinueStatement=function(y,w){var E="break"===w;this.next(),this.eat(_e.semi)||this.insertSemicolon()?y.label=null:this.type!==_e.name?this.unexpected():(y.label=this.parseIdent(),this.semicolon());for(var q=0;q=6?this.eat(_e.semi):this.semicolon(),this.finishNode(y,"DoWhileStatement")},Xe.parseForStatement=function(y){this.next();var w=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(et),this.enterScope(0),this.expect(_e.parenL),this.type===_e.semi)return w>-1&&this.unexpected(w),this.parseFor(y,null);var E=this.isLet();if(this.type===_e._var||this.type===_e._const||E){var q=this.startNode(),ne=E?"let":this.value;return this.next(),this.parseVar(q,!0,ne),this.finishNode(q,"VariableDeclaration"),(this.type===_e._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===q.declarations.length?(this.options.ecmaVersion>=9&&(this.type===_e._in?w>-1&&this.unexpected(w):y.await=w>-1),this.parseForIn(y,q)):(w>-1&&this.unexpected(w),this.parseFor(y,q))}var ie=new DestructuringErrors,oe=this.parseExpression(!0,ie);return this.type===_e._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===_e._in?w>-1&&this.unexpected(w):y.await=w>-1),this.toAssignable(oe,!1,ie),this.checkLVal(oe),this.parseForIn(y,oe)):(this.checkExpressionErrors(ie,!0),w>-1&&this.unexpected(w),this.parseFor(y,oe))},Xe.parseFunctionStatement=function(y,w,E){return this.next(),this.parseFunction(y,rt|(E?0:it),!1,w)},Xe.parseIfStatement=function(y){return this.next(),y.test=this.parseParenExpression(),y.consequent=this.parseStatement("if"),y.alternate=this.eat(_e._else)?this.parseStatement("if"):null,this.finishNode(y,"IfStatement")},Xe.parseReturnStatement=function(y){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(_e.semi)||this.insertSemicolon()?y.argument=null:(y.argument=this.parseExpression(),this.semicolon()),this.finishNode(y,"ReturnStatement")},Xe.parseSwitchStatement=function(y){var w;this.next(),y.discriminant=this.parseParenExpression(),y.cases=[],this.expect(_e.braceL),this.labels.push(tt),this.enterScope(0);for(var E=!1;this.type!==_e.braceR;)if(this.type===_e._case||this.type===_e._default){var q=this.type===_e._case;w&&this.finishNode(w,"SwitchCase"),y.cases.push(w=this.startNode()),w.consequent=[],this.next(),q?w.test=this.parseExpression():(E&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),E=!0,w.test=null),this.expect(_e.colon)}else w||this.unexpected(),w.consequent.push(this.parseStatement(null));return this.exitScope(),w&&this.finishNode(w,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(y,"SwitchStatement")},Xe.parseThrowStatement=function(y){return this.next(),Me.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),y.argument=this.parseExpression(),this.semicolon(),this.finishNode(y,"ThrowStatement")};var nt=[];Xe.parseTryStatement=function(y){if(this.next(),y.block=this.parseBlock(),y.handler=null,this.type===_e._catch){var w=this.startNode();if(this.next(),this.eat(_e.parenL)){w.param=this.parseBindingAtom();var E="Identifier"===w.param.type;this.enterScope(E?32:0),this.checkLVal(w.param,E?4:2),this.expect(_e.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),w.param=null,this.enterScope(0);w.body=this.parseBlock(!1),this.exitScope(),y.handler=this.finishNode(w,"CatchClause")}return y.finalizer=this.eat(_e._finally)?this.parseBlock():null,y.handler||y.finalizer||this.raise(y.start,"Missing catch or finally clause"),this.finishNode(y,"TryStatement")},Xe.parseVarStatement=function(y,w){return this.next(),this.parseVar(y,!1,w),this.semicolon(),this.finishNode(y,"VariableDeclaration")},Xe.parseWhileStatement=function(y){return this.next(),y.test=this.parseParenExpression(),this.labels.push(et),y.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(y,"WhileStatement")},Xe.parseWithStatement=function(y){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),y.object=this.parseParenExpression(),y.body=this.parseStatement("with"),this.finishNode(y,"WithStatement")},Xe.parseEmptyStatement=function(y){return this.next(),this.finishNode(y,"EmptyStatement")},Xe.parseLabeledStatement=function(y,w,E,q){for(var ne=0,ie=this.labels;ne=0;se--){var le=this.labels[se];if(le.statementStart!==y.start)break;le.statementStart=this.start,le.kind=oe}return this.labels.push({name:w,kind:oe,statementStart:this.start}),y.body=this.parseStatement(q?-1===q.indexOf("label")?q+"label":q:"label"),this.labels.pop(),y.label=E,this.finishNode(y,"LabeledStatement")},Xe.parseExpressionStatement=function(y,w){return y.expression=w,this.semicolon(),this.finishNode(y,"ExpressionStatement")},Xe.parseBlock=function(y,w){for(void 0===y&&(y=!0),void 0===w&&(w=this.startNode()),w.body=[],this.expect(_e.braceL),y&&this.enterScope(0);!this.eat(_e.braceR);){var E=this.parseStatement(null);w.body.push(E)}return y&&this.exitScope(),this.finishNode(w,"BlockStatement")},Xe.parseFor=function(y,w){return y.init=w,this.expect(_e.semi),y.test=this.type===_e.semi?null:this.parseExpression(),this.expect(_e.semi),y.update=this.type===_e.parenR?null:this.parseExpression(),this.expect(_e.parenR),y.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(y,"ForStatement")},Xe.parseForIn=function(y,w){var E=this.type===_e._in;return this.next(),"VariableDeclaration"===w.type&&null!=w.declarations[0].init&&(!E||this.options.ecmaVersion<8||this.strict||"var"!==w.kind||"Identifier"!==w.declarations[0].id.type)?this.raise(w.start,(E?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===w.type&&this.raise(w.start,"Invalid left-hand side in for-loop"),y.left=w,y.right=E?this.parseExpression():this.parseMaybeAssign(),this.expect(_e.parenR),y.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(y,E?"ForInStatement":"ForOfStatement")},Xe.parseVar=function(y,w,E){for(y.declarations=[],y.kind=E;;){var q=this.startNode();if(this.parseVarId(q,E),this.eat(_e.eq)?q.init=this.parseMaybeAssign(w):"const"!==E||this.type===_e._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===q.id.type||w&&(this.type===_e._in||this.isContextual("of"))?q.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),y.declarations.push(this.finishNode(q,"VariableDeclarator")),!this.eat(_e.comma))break}return y},Xe.parseVarId=function(y,w){y.id=this.parseBindingAtom(),this.checkLVal(y.id,"var"===w?1:2,!1)};var rt=1,it=2;Xe.parseFunction=function(y,w,E,q){this.initFunction(y),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!q)&&(this.type===_e.star&&w&it&&this.unexpected(),y.generator=this.eat(_e.star)),this.options.ecmaVersion>=8&&(y.async=!!q),w&rt&&(y.id=4&w&&this.type!==_e.name?null:this.parseIdent(),!y.id||w&it||this.checkLVal(y.id,this.strict||y.generator||y.async?this.treatFunctionsAsVar?1:2:3));var ne=this.yieldPos,ie=this.awaitPos,oe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(y.async,y.generator)),w&rt||(y.id=this.type===_e.name?this.parseIdent():null),this.parseFunctionParams(y),this.parseFunctionBody(y,E,!1),this.yieldPos=ne,this.awaitPos=ie,this.awaitIdentPos=oe,this.finishNode(y,w&rt?"FunctionDeclaration":"FunctionExpression")},Xe.parseFunctionParams=function(y){this.expect(_e.parenL),y.params=this.parseBindingList(_e.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Xe.parseClass=function(y,w){this.next();var E=this.strict;this.strict=!0,this.parseClassId(y,w),this.parseClassSuper(y);var q=this.startNode(),ne=!1;for(q.body=[],this.expect(_e.braceL);!this.eat(_e.braceR);){var ie=this.parseClassElement(null!==y.superClass);ie&&(q.body.push(ie),"MethodDefinition"===ie.type&&"constructor"===ie.kind&&(ne&&this.raise(ie.start,"Duplicate constructor in the same class"),ne=!0))}return y.body=this.finishNode(q,"ClassBody"),this.strict=E,this.finishNode(y,w?"ClassDeclaration":"ClassExpression")},Xe.parseClassElement=function(y){var w=this;if(this.eat(_e.semi))return null;var E=this.startNode(),tryContextual=function(y,q){void 0===q&&(q=!1);var ne=w.start,ie=w.startLoc;return!!w.eatContextual(y)&&(!(w.type===_e.parenL||q&&w.canInsertSemicolon())||(E.key&&w.unexpected(),E.computed=!1,E.key=w.startNodeAt(ne,ie),E.key.name=y,w.finishNode(E.key,"Identifier"),!1))};E.kind="method",E.static=tryContextual("static");var q=this.eat(_e.star),ne=!1;q||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(ne=!0,q=this.options.ecmaVersion>=9&&this.eat(_e.star)):tryContextual("get")?E.kind="get":tryContextual("set")&&(E.kind="set")),E.key||this.parsePropertyName(E);var ie=E.key,oe=!1;return E.computed||E.static||!("Identifier"===ie.type&&"constructor"===ie.name||"Literal"===ie.type&&"constructor"===ie.value)?E.static&&"Identifier"===ie.type&&"prototype"===ie.name&&this.raise(ie.start,"Classes may not have a static property named prototype"):("method"!==E.kind&&this.raise(ie.start,"Constructor can't have get/set modifier"),q&&this.raise(ie.start,"Constructor can't be a generator"),ne&&this.raise(ie.start,"Constructor can't be an async method"),E.kind="constructor",oe=y),this.parseClassMethod(E,q,ne,oe),"get"===E.kind&&0!==E.value.params.length&&this.raiseRecoverable(E.value.start,"getter should have no params"),"set"===E.kind&&1!==E.value.params.length&&this.raiseRecoverable(E.value.start,"setter should have exactly one param"),"set"===E.kind&&"RestElement"===E.value.params[0].type&&this.raiseRecoverable(E.value.params[0].start,"Setter cannot use rest params"),E},Xe.parseClassMethod=function(y,w,E,q){return y.value=this.parseMethod(w,E,q),this.finishNode(y,"MethodDefinition")},Xe.parseClassId=function(y,w){this.type===_e.name?(y.id=this.parseIdent(),w&&this.checkLVal(y.id,2,!1)):(!0===w&&this.unexpected(),y.id=null)},Xe.parseClassSuper=function(y){y.superClass=this.eat(_e._extends)?this.parseExprSubscripts():null},Xe.parseExport=function(y,w){if(this.next(),this.eat(_e.star))return this.expectContextual("from"),this.type!==_e.string&&this.unexpected(),y.source=this.parseExprAtom(),this.semicolon(),this.finishNode(y,"ExportAllDeclaration");if(this.eat(_e._default)){var E;if(this.checkExport(w,"default",this.lastTokStart),this.type===_e._function||(E=this.isAsyncFunction())){var q=this.startNode();this.next(),E&&this.next(),y.declaration=this.parseFunction(q,4|rt,!1,E)}else if(this.type===_e._class){var ne=this.startNode();y.declaration=this.parseClass(ne,"nullableID")}else y.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(y,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())y.declaration=this.parseStatement(null),"VariableDeclaration"===y.declaration.type?this.checkVariableExport(w,y.declaration.declarations):this.checkExport(w,y.declaration.id.name,y.declaration.id.start),y.specifiers=[],y.source=null;else{if(y.declaration=null,y.specifiers=this.parseExportSpecifiers(w),this.eatContextual("from"))this.type!==_e.string&&this.unexpected(),y.source=this.parseExprAtom();else{for(var ie=0,oe=y.specifiers;ie=6&&y)switch(y.type){case"Identifier":this.inAsync&&"await"===y.name&&this.raise(y.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":y.type="ObjectPattern",E&&this.checkPatternErrors(E,!0);for(var q=0,ne=y.properties;q=8&&!ie&&"async"===oe.name&&!this.canInsertSemicolon()&&this.eat(_e._function))return this.parseFunction(this.startNodeAt(q,ne),0,!1,!0);if(E&&!this.canInsertSemicolon()){if(this.eat(_e.arrow))return this.parseArrowExpression(this.startNodeAt(q,ne),[oe],!1);if(this.options.ecmaVersion>=8&&"async"===oe.name&&this.type===_e.name&&!ie)return oe=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(_e.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(q,ne),[oe],!0)}return oe;case _e.regexp:var se=this.value;return(w=this.parseLiteral(se.value)).regex={pattern:se.pattern,flags:se.flags},w;case _e.num:case _e.string:return this.parseLiteral(this.value);case _e._null:case _e._true:case _e._false:return(w=this.startNode()).value=this.type===_e._null?null:this.type===_e._true,w.raw=this.type.keyword,this.next(),this.finishNode(w,"Literal");case _e.parenL:var le=this.start,pe=this.parseParenAndDistinguishExpression(E);return y&&(y.parenthesizedAssign<0&&!this.isSimpleAssignTarget(pe)&&(y.parenthesizedAssign=le),y.parenthesizedBind<0&&(y.parenthesizedBind=le)),pe;case _e.bracketL:return w=this.startNode(),this.next(),w.elements=this.parseExprList(_e.bracketR,!0,!0,y),this.finishNode(w,"ArrayExpression");case _e.braceL:return this.parseObj(!1,y);case _e._function:return w=this.startNode(),this.next(),this.parseFunction(w,0);case _e._class:return this.parseClass(this.startNode(),!1);case _e._new:return this.parseNew();case _e.backQuote:return this.parseTemplate();case _e._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},st.parseDynamicImport=function(){var y=this.startNode();return this.next(),this.type!==_e.parenL&&this.unexpected(),this.finishNode(y,"Import")},st.parseLiteral=function(y){var w=this.startNode();return w.value=y,w.raw=this.input.slice(this.start,this.end),110===w.raw.charCodeAt(w.raw.length-1)&&(w.bigint=w.raw.slice(0,-1)),this.next(),this.finishNode(w,"Literal")},st.parseParenExpression=function(){this.expect(_e.parenL);var y=this.parseExpression();return this.expect(_e.parenR),y},st.parseParenAndDistinguishExpression=function(y){var w,E=this.start,q=this.startLoc,ne=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var ie,oe=this.start,se=this.startLoc,le=[],pe=!0,ge=!1,he=new DestructuringErrors,me=this.yieldPos,ve=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==_e.parenR;){if(pe?pe=!1:this.expect(_e.comma),ne&&this.afterTrailingComma(_e.parenR,!0)){ge=!0;break}if(this.type===_e.ellipsis){ie=this.start,le.push(this.parseParenItem(this.parseRestBinding())),this.type===_e.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}le.push(this.parseMaybeAssign(!1,he,this.parseParenItem))}var ye=this.start,Re=this.startLoc;if(this.expect(_e.parenR),y&&!this.canInsertSemicolon()&&this.eat(_e.arrow))return this.checkPatternErrors(he,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=me,this.awaitPos=ve,this.parseParenArrowList(E,q,le);le.length&&!ge||this.unexpected(this.lastTokStart),ie&&this.unexpected(ie),this.checkExpressionErrors(he,!0),this.yieldPos=me||this.yieldPos,this.awaitPos=ve||this.awaitPos,le.length>1?((w=this.startNodeAt(oe,se)).expressions=le,this.finishNodeAt(w,"SequenceExpression",ye,Re)):w=le[0]}else w=this.parseParenExpression();if(this.options.preserveParens){var we=this.startNodeAt(E,q);return we.expression=w,this.finishNode(we,"ParenthesizedExpression")}return w},st.parseParenItem=function(y){return y},st.parseParenArrowList=function(y,w,E){return this.parseArrowExpression(this.startNodeAt(y,w),E)};var dt=[];st.parseNew=function(){var y=this.startNode(),w=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(_e.dot)){y.meta=w;var E=this.containsEsc;return y.property=this.parseIdent(!0),("target"!==y.property.name||E)&&this.raiseRecoverable(y.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(y.start,"new.target can only be used in functions"),this.finishNode(y,"MetaProperty")}var q=this.start,ne=this.startLoc;return y.callee=this.parseSubscripts(this.parseExprAtom(),q,ne,!0),this.options.ecmaVersion>10&&"Import"===y.callee.type&&this.raise(y.callee.start,"Cannot use new with import(...)"),this.eat(_e.parenL)?y.arguments=this.parseExprList(_e.parenR,this.options.ecmaVersion>=8&&"Import"!==y.callee.type,!1):y.arguments=dt,this.finishNode(y,"NewExpression")},st.parseTemplateElement=function(y){var w=y.isTagged,E=this.startNode();return this.type===_e.invalidTemplate?(w||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),E.value={raw:this.value,cooked:null}):E.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),E.tail=this.type===_e.backQuote,this.finishNode(E,"TemplateElement")},st.parseTemplate=function(y){void 0===y&&(y={});var w=y.isTagged;void 0===w&&(w=!1);var E=this.startNode();this.next(),E.expressions=[];var q=this.parseTemplateElement({isTagged:w});for(E.quasis=[q];!q.tail;)this.type===_e.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(_e.dollarBraceL),E.expressions.push(this.parseExpression()),this.expect(_e.braceR),E.quasis.push(q=this.parseTemplateElement({isTagged:w}));return this.next(),this.finishNode(E,"TemplateLiteral")},st.isAsyncProp=function(y){return!y.computed&&"Identifier"===y.key.type&&"async"===y.key.name&&(this.type===_e.name||this.type===_e.num||this.type===_e.string||this.type===_e.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===_e.star)&&!Me.test(this.input.slice(this.lastTokEnd,this.start))},st.parseObj=function(y,w){var E=this.startNode(),q=!0,ne={};for(E.properties=[],this.next();!this.eat(_e.braceR);){if(q)q=!1;else if(this.expect(_e.comma),this.afterTrailingComma(_e.braceR))break;var ie=this.parseProperty(y,w);y||this.checkPropClash(ie,ne,w),E.properties.push(ie)}return this.finishNode(E,y?"ObjectPattern":"ObjectExpression")},st.parseProperty=function(y,w){var E,q,ne,ie,oe=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(_e.ellipsis))return y?(oe.argument=this.parseIdent(!1),this.type===_e.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(oe,"RestElement")):(this.type===_e.parenL&&w&&(w.parenthesizedAssign<0&&(w.parenthesizedAssign=this.start),w.parenthesizedBind<0&&(w.parenthesizedBind=this.start)),oe.argument=this.parseMaybeAssign(!1,w),this.type===_e.comma&&w&&w.trailingComma<0&&(w.trailingComma=this.start),this.finishNode(oe,"SpreadElement"));this.options.ecmaVersion>=6&&(oe.method=!1,oe.shorthand=!1,(y||w)&&(ne=this.start,ie=this.startLoc),y||(E=this.eat(_e.star)));var se=this.containsEsc;return this.parsePropertyName(oe),!y&&!se&&this.options.ecmaVersion>=8&&!E&&this.isAsyncProp(oe)?(q=!0,E=this.options.ecmaVersion>=9&&this.eat(_e.star),this.parsePropertyName(oe,w)):q=!1,this.parsePropertyValue(oe,y,E,q,ne,ie,w,se),this.finishNode(oe,"Property")},st.parsePropertyValue=function(y,w,E,q,ne,ie,oe,se){if((E||q)&&this.type===_e.colon&&this.unexpected(),this.eat(_e.colon))y.value=w?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,oe),y.kind="init";else if(this.options.ecmaVersion>=6&&this.type===_e.parenL)w&&this.unexpected(),y.kind="init",y.method=!0,y.value=this.parseMethod(E,q);else if(w||se||!(this.options.ecmaVersion>=5)||y.computed||"Identifier"!==y.key.type||"get"!==y.key.name&&"set"!==y.key.name||this.type===_e.comma||this.type===_e.braceR)this.options.ecmaVersion>=6&&!y.computed&&"Identifier"===y.key.type?((E||q)&&this.unexpected(),this.checkUnreserved(y.key),"await"!==y.key.name||this.awaitIdentPos||(this.awaitIdentPos=ne),y.kind="init",w?y.value=this.parseMaybeDefault(ne,ie,y.key):this.type===_e.eq&&oe?(oe.shorthandAssign<0&&(oe.shorthandAssign=this.start),y.value=this.parseMaybeDefault(ne,ie,y.key)):y.value=y.key,y.shorthand=!0):this.unexpected();else{(E||q)&&this.unexpected(),y.kind=y.key.name,this.parsePropertyName(y),y.value=this.parseMethod(!1);var le="get"===y.kind?0:1;if(y.value.params.length!==le){var pe=y.value.start;"get"===y.kind?this.raiseRecoverable(pe,"getter should have no params"):this.raiseRecoverable(pe,"setter should have exactly one param")}else"set"===y.kind&&"RestElement"===y.value.params[0].type&&this.raiseRecoverable(y.value.params[0].start,"Setter cannot use rest params")}},st.parsePropertyName=function(y){if(this.options.ecmaVersion>=6){if(this.eat(_e.bracketL))return y.computed=!0,y.key=this.parseMaybeAssign(),this.expect(_e.bracketR),y.key;y.computed=!1}return y.key=this.type===_e.num||this.type===_e.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},st.initFunction=function(y){y.id=null,this.options.ecmaVersion>=6&&(y.generator=y.expression=!1),this.options.ecmaVersion>=8&&(y.async=!1)},st.parseMethod=function(y,w,E){var q=this.startNode(),ne=this.yieldPos,ie=this.awaitPos,oe=this.awaitIdentPos;return this.initFunction(q),this.options.ecmaVersion>=6&&(q.generator=y),this.options.ecmaVersion>=8&&(q.async=!!w),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(w,q.generator)|(E?128:0)),this.expect(_e.parenL),q.params=this.parseBindingList(_e.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(q,!1,!0),this.yieldPos=ne,this.awaitPos=ie,this.awaitIdentPos=oe,this.finishNode(q,"FunctionExpression")},st.parseArrowExpression=function(y,w,E){var q=this.yieldPos,ne=this.awaitPos,ie=this.awaitIdentPos;return this.enterScope(16|functionFlags(E,!1)),this.initFunction(y),this.options.ecmaVersion>=8&&(y.async=!!E),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,y.params=this.toAssignableList(w,!0),this.parseFunctionBody(y,!0,!1),this.yieldPos=q,this.awaitPos=ne,this.awaitIdentPos=ie,this.finishNode(y,"ArrowFunctionExpression")},st.parseFunctionBody=function(y,w,E){var q=w&&this.type!==_e.braceL,ne=this.strict,ie=!1;if(q)y.body=this.parseMaybeAssign(),y.expression=!0,this.checkParams(y,!1);else{var oe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(y.params);ne&&!oe||(ie=this.strictDirective(this.end))&&oe&&this.raiseRecoverable(y.start,"Illegal 'use strict' directive in function with non-simple parameter list");var se=this.labels;this.labels=[],ie&&(this.strict=!0),this.checkParams(y,!ne&&!ie&&!w&&!E&&this.isSimpleParamList(y.params)),y.body=this.parseBlock(!1),y.expression=!1,this.adaptDirectivePrologue(y.body.body),this.labels=se}this.exitScope(),this.strict&&y.id&&this.checkLVal(y.id,5),this.strict=ne},st.isSimpleParamList=function(y){for(var w=0,E=y;w-1||ne.functions.indexOf(y)>-1||ne.var.indexOf(y)>-1,ne.lexical.push(y),this.inModule&&1&ne.flags&&delete this.undefinedExports[y]}else if(4===w){this.currentScope().lexical.push(y)}else if(3===w){var ie=this.currentScope();q=this.treatFunctionsAsVar?ie.lexical.indexOf(y)>-1:ie.lexical.indexOf(y)>-1||ie.var.indexOf(y)>-1,ie.functions.push(y)}else for(var oe=this.scopeStack.length-1;oe>=0;--oe){var se=this.scopeStack[oe];if(se.lexical.indexOf(y)>-1&&!(32&se.flags&&se.lexical[0]===y)||!this.treatFunctionsAsVarInScope(se)&&se.functions.indexOf(y)>-1){q=!0;break}if(se.var.push(y),this.inModule&&1&se.flags&&delete this.undefinedExports[y],3&se.flags)break}q&&this.raiseRecoverable(E,"Identifier '"+y+"' has already been declared")},ut.checkLocalExport=function(y){-1===this.scopeStack[0].lexical.indexOf(y.name)&&-1===this.scopeStack[0].var.indexOf(y.name)&&(this.undefinedExports[y.name]=y)},ut.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ut.currentVarScope=function(){for(var y=this.scopeStack.length-1;;y--){var w=this.scopeStack[y];if(3&w.flags)return w}},ut.currentThisScope=function(){for(var y=this.scopeStack.length-1;;y--){var w=this.scopeStack[y];if(3&w.flags&&!(16&w.flags))return w}};var pt=function Node(y,w,E){this.type="",this.start=w,this.end=0,y.options.locations&&(this.loc=new Ve(y,E)),y.options.directSourceFile&&(this.sourceFile=y.options.directSourceFile),y.options.ranges&&(this.range=[w,0])},gt=Ue.prototype;function finishNodeAt(y,w,E,q){return y.type=w,y.end=E,this.options.locations&&(y.loc.end=q),this.options.ranges&&(y.range[1]=E),y}gt.startNode=function(){return new pt(this,this.start,this.startLoc)},gt.startNodeAt=function(y,w){return new pt(this,y,w)},gt.finishNode=function(y,w){return finishNodeAt.call(this,y,w,this.lastTokEnd,this.lastTokEndLoc)},gt.finishNodeAt=function(y,w,E,q){return finishNodeAt.call(this,y,w,E,q)};var ht=function TokContext(y,w,E,q,ne){this.token=y,this.isExpr=!!w,this.preserveSpace=!!E,this.override=q,this.generator=!!ne},ft={b_stat:new ht("{",!1),b_expr:new ht("{",!0),b_tmpl:new ht("${",!1),p_stat:new ht("(",!1),p_expr:new ht("(",!0),q_tmpl:new ht("`",!0,!0,(function(y){return y.tryReadTemplateToken()})),f_stat:new ht("function",!1),f_expr:new ht("function",!0),f_expr_gen:new ht("function",!0,!1,null,!0),f_gen:new ht("function",!1,!1,null,!0)},mt=Ue.prototype;mt.initialContext=function(){return[ft.b_stat]},mt.braceIsBlock=function(y){var w=this.curContext();return w===ft.f_expr||w===ft.f_stat||(y!==_e.colon||w!==ft.b_stat&&w!==ft.b_expr?y===_e._return||y===_e.name&&this.exprAllowed?Me.test(this.input.slice(this.lastTokEnd,this.start)):y===_e._else||y===_e.semi||y===_e.eof||y===_e.parenR||y===_e.arrow||(y===_e.braceL?w===ft.b_stat:y!==_e._var&&y!==_e._const&&y!==_e.name&&!this.exprAllowed):!w.isExpr)},mt.inGeneratorContext=function(){for(var y=this.context.length-1;y>=1;y--){var w=this.context[y];if("function"===w.token)return w.generator}return!1},mt.updateContext=function(y){var w,E=this.type;E.keyword&&y===_e.dot?this.exprAllowed=!1:(w=E.updateContext)?w.call(this,y):this.exprAllowed=E.beforeExpr},_e.parenR.updateContext=_e.braceR.updateContext=function(){if(1!==this.context.length){var y=this.context.pop();y===ft.b_stat&&"function"===this.curContext().token&&(y=this.context.pop()),this.exprAllowed=!y.isExpr}else this.exprAllowed=!0},_e.braceL.updateContext=function(y){this.context.push(this.braceIsBlock(y)?ft.b_stat:ft.b_expr),this.exprAllowed=!0},_e.dollarBraceL.updateContext=function(){this.context.push(ft.b_tmpl),this.exprAllowed=!0},_e.parenL.updateContext=function(y){var w=y===_e._if||y===_e._for||y===_e._with||y===_e._while;this.context.push(w?ft.p_stat:ft.p_expr),this.exprAllowed=!0},_e.incDec.updateContext=function(){},_e._function.updateContext=_e._class.updateContext=function(y){!y.beforeExpr||y===_e.semi||y===_e._else||y===_e._return&&Me.test(this.input.slice(this.lastTokEnd,this.start))||(y===_e.colon||y===_e.braceL)&&this.curContext()===ft.b_stat?this.context.push(ft.f_stat):this.context.push(ft.f_expr),this.exprAllowed=!1},_e.backQuote.updateContext=function(){this.curContext()===ft.q_tmpl?this.context.pop():this.context.push(ft.q_tmpl),this.exprAllowed=!1},_e.star.updateContext=function(y){if(y===_e._function){var w=this.context.length-1;this.context[w]===ft.f_expr?this.context[w]=ft.f_expr_gen:this.context[w]=ft.f_gen}this.exprAllowed=!0},_e.name.updateContext=function(y){var w=!1;this.options.ecmaVersion>=6&&y!==_e.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(w=!0),this.exprAllowed=w};var vt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",yt=vt+" Extended_Pictographic",Rt={9:vt,10:yt,11:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic"},bt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",xt="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",wt=xt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ct={9:xt,10:wt,11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},_t={};function buildUnicodeData(y){var w=_t[y]={binary:wordsRegexp(Rt[y]+" "+bt),nonBinary:{General_Category:wordsRegexp(bt),Script:wordsRegexp(Ct[y])}};w.nonBinary.Script_Extensions=w.nonBinary.Script,w.nonBinary.gc=w.nonBinary.General_Category,w.nonBinary.sc=w.nonBinary.Script,w.nonBinary.scx=w.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var Mt=Ue.prototype,St=function RegExpValidationState(y){this.parser=y,this.validFlags="gim"+(y.options.ecmaVersion>=6?"uy":"")+(y.options.ecmaVersion>=9?"s":""),this.unicodeProperties=_t[y.options.ecmaVersion>=11?11:y.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(y){return y<=65535?String.fromCharCode(y):(y-=65536,String.fromCharCode(55296+(y>>10),56320+(1023&y)))}function isSyntaxCharacter(y){return 36===y||y>=40&&y<=43||46===y||63===y||y>=91&&y<=94||y>=123&&y<=125}function isControlLetter(y){return y>=65&&y<=90||y>=97&&y<=122}function isUnicodePropertyNameCharacter(y){return isControlLetter(y)||95===y}function isUnicodePropertyValueCharacter(y){return isUnicodePropertyNameCharacter(y)||isDecimalDigit(y)}function isDecimalDigit(y){return y>=48&&y<=57}function isHexDigit(y){return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102}function hexToInt(y){return y>=65&&y<=70?y-65+10:y>=97&&y<=102?y-97+10:y-48}function isOctalDigit(y){return y>=48&&y<=55}St.prototype.reset=function reset(y,w,E){var q=-1!==E.indexOf("u");this.start=0|y,this.source=w+"",this.flags=E,this.switchU=q&&this.parser.options.ecmaVersion>=6,this.switchN=q&&this.parser.options.ecmaVersion>=9},St.prototype.raise=function raise(y){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+y)},St.prototype.at=function at(y){var w=this.source,E=w.length;if(y>=E)return-1;var q=w.charCodeAt(y);if(!this.switchU||q<=55295||q>=57344||y+1>=E)return q;var ne=w.charCodeAt(y+1);return ne>=56320&&ne<=57343?(q<<10)+ne-56613888:q},St.prototype.nextIndex=function nextIndex(y){var w=this.source,E=w.length;if(y>=E)return E;var q,ne=w.charCodeAt(y);return!this.switchU||ne<=55295||ne>=57344||y+1>=E||(q=w.charCodeAt(y+1))<56320||q>57343?y+1:y+2},St.prototype.current=function current(){return this.at(this.pos)},St.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},St.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},St.prototype.eat=function eat(y){return this.current()===y&&(this.advance(),!0)},Mt.validateRegExpFlags=function(y){for(var w=y.validFlags,E=y.flags,q=0;q-1&&this.raise(y.start,"Duplicate regular expression flag")}},Mt.validateRegExpPattern=function(y){this.regexp_pattern(y),!y.switchN&&this.options.ecmaVersion>=9&&y.groupNames.length>0&&(y.switchN=!0,this.regexp_pattern(y))},Mt.regexp_pattern=function(y){y.pos=0,y.lastIntValue=0,y.lastStringValue="",y.lastAssertionIsQuantifiable=!1,y.numCapturingParens=0,y.maxBackReference=0,y.groupNames.length=0,y.backReferenceNames.length=0,this.regexp_disjunction(y),y.pos!==y.source.length&&(y.eat(41)&&y.raise("Unmatched ')'"),(y.eat(93)||y.eat(125))&&y.raise("Lone quantifier brackets")),y.maxBackReference>y.numCapturingParens&&y.raise("Invalid escape");for(var w=0,E=y.backReferenceNames;w=9&&(E=y.eat(60)),y.eat(61)||y.eat(33))return this.regexp_disjunction(y),y.eat(41)||y.raise("Unterminated group"),y.lastAssertionIsQuantifiable=!E,!0}return y.pos=w,!1},Mt.regexp_eatQuantifier=function(y,w){return void 0===w&&(w=!1),!!this.regexp_eatQuantifierPrefix(y,w)&&(y.eat(63),!0)},Mt.regexp_eatQuantifierPrefix=function(y,w){return y.eat(42)||y.eat(43)||y.eat(63)||this.regexp_eatBracedQuantifier(y,w)},Mt.regexp_eatBracedQuantifier=function(y,w){var E=y.pos;if(y.eat(123)){var q=0,ne=-1;if(this.regexp_eatDecimalDigits(y)&&(q=y.lastIntValue,y.eat(44)&&this.regexp_eatDecimalDigits(y)&&(ne=y.lastIntValue),y.eat(125)))return-1!==ne&&ne=9?this.regexp_groupSpecifier(y):63===y.current()&&y.raise("Invalid group"),this.regexp_disjunction(y),y.eat(41))return y.numCapturingParens+=1,!0;y.raise("Unterminated group")}return!1},Mt.regexp_eatExtendedAtom=function(y){return y.eat(46)||this.regexp_eatReverseSolidusAtomEscape(y)||this.regexp_eatCharacterClass(y)||this.regexp_eatUncapturingGroup(y)||this.regexp_eatCapturingGroup(y)||this.regexp_eatInvalidBracedQuantifier(y)||this.regexp_eatExtendedPatternCharacter(y)},Mt.regexp_eatInvalidBracedQuantifier=function(y){return this.regexp_eatBracedQuantifier(y,!0)&&y.raise("Nothing to repeat"),!1},Mt.regexp_eatSyntaxCharacter=function(y){var w=y.current();return!!isSyntaxCharacter(w)&&(y.lastIntValue=w,y.advance(),!0)},Mt.regexp_eatPatternCharacters=function(y){for(var w=y.pos,E=0;-1!==(E=y.current())&&!isSyntaxCharacter(E);)y.advance();return y.pos!==w},Mt.regexp_eatExtendedPatternCharacter=function(y){var w=y.current();return!(-1===w||36===w||w>=40&&w<=43||46===w||63===w||91===w||94===w||124===w)&&(y.advance(),!0)},Mt.regexp_groupSpecifier=function(y){if(y.eat(63)){if(this.regexp_eatGroupName(y))return-1!==y.groupNames.indexOf(y.lastStringValue)&&y.raise("Duplicate capture group name"),void y.groupNames.push(y.lastStringValue);y.raise("Invalid group")}},Mt.regexp_eatGroupName=function(y){if(y.lastStringValue="",y.eat(60)){if(this.regexp_eatRegExpIdentifierName(y)&&y.eat(62))return!0;y.raise("Invalid capture group name")}return!1},Mt.regexp_eatRegExpIdentifierName=function(y){if(y.lastStringValue="",this.regexp_eatRegExpIdentifierStart(y)){for(y.lastStringValue+=codePointToString(y.lastIntValue);this.regexp_eatRegExpIdentifierPart(y);)y.lastStringValue+=codePointToString(y.lastIntValue);return!0}return!1},Mt.regexp_eatRegExpIdentifierStart=function(y){var w=y.pos,E=y.current();return y.advance(),92===E&&this.regexp_eatRegExpUnicodeEscapeSequence(y)&&(E=y.lastIntValue),function isRegExpIdentifierStart(y){return isIdentifierStart(y,!0)||36===y||95===y}(E)?(y.lastIntValue=E,!0):(y.pos=w,!1)},Mt.regexp_eatRegExpIdentifierPart=function(y){var w=y.pos,E=y.current();return y.advance(),92===E&&this.regexp_eatRegExpUnicodeEscapeSequence(y)&&(E=y.lastIntValue),function isRegExpIdentifierPart(y){return isIdentifierChar(y,!0)||36===y||95===y||8204===y||8205===y}(E)?(y.lastIntValue=E,!0):(y.pos=w,!1)},Mt.regexp_eatAtomEscape=function(y){return!!(this.regexp_eatBackReference(y)||this.regexp_eatCharacterClassEscape(y)||this.regexp_eatCharacterEscape(y)||y.switchN&&this.regexp_eatKGroupName(y))||(y.switchU&&(99===y.current()&&y.raise("Invalid unicode escape"),y.raise("Invalid escape")),!1)},Mt.regexp_eatBackReference=function(y){var w=y.pos;if(this.regexp_eatDecimalEscape(y)){var E=y.lastIntValue;if(y.switchU)return E>y.maxBackReference&&(y.maxBackReference=E),!0;if(E<=y.numCapturingParens)return!0;y.pos=w}return!1},Mt.regexp_eatKGroupName=function(y){if(y.eat(107)){if(this.regexp_eatGroupName(y))return y.backReferenceNames.push(y.lastStringValue),!0;y.raise("Invalid named reference")}return!1},Mt.regexp_eatCharacterEscape=function(y){return this.regexp_eatControlEscape(y)||this.regexp_eatCControlLetter(y)||this.regexp_eatZero(y)||this.regexp_eatHexEscapeSequence(y)||this.regexp_eatRegExpUnicodeEscapeSequence(y)||!y.switchU&&this.regexp_eatLegacyOctalEscapeSequence(y)||this.regexp_eatIdentityEscape(y)},Mt.regexp_eatCControlLetter=function(y){var w=y.pos;if(y.eat(99)){if(this.regexp_eatControlLetter(y))return!0;y.pos=w}return!1},Mt.regexp_eatZero=function(y){return 48===y.current()&&!isDecimalDigit(y.lookahead())&&(y.lastIntValue=0,y.advance(),!0)},Mt.regexp_eatControlEscape=function(y){var w=y.current();return 116===w?(y.lastIntValue=9,y.advance(),!0):110===w?(y.lastIntValue=10,y.advance(),!0):118===w?(y.lastIntValue=11,y.advance(),!0):102===w?(y.lastIntValue=12,y.advance(),!0):114===w&&(y.lastIntValue=13,y.advance(),!0)},Mt.regexp_eatControlLetter=function(y){var w=y.current();return!!isControlLetter(w)&&(y.lastIntValue=w%32,y.advance(),!0)},Mt.regexp_eatRegExpUnicodeEscapeSequence=function(y){var w=y.pos;if(y.eat(117)){if(this.regexp_eatFixedHexDigits(y,4)){var E=y.lastIntValue;if(y.switchU&&E>=55296&&E<=56319){var q=y.pos;if(y.eat(92)&&y.eat(117)&&this.regexp_eatFixedHexDigits(y,4)){var ne=y.lastIntValue;if(ne>=56320&&ne<=57343)return y.lastIntValue=1024*(E-55296)+(ne-56320)+65536,!0}y.pos=q,y.lastIntValue=E}return!0}if(y.switchU&&y.eat(123)&&this.regexp_eatHexDigits(y)&&y.eat(125)&&function isValidUnicode(y){return y>=0&&y<=1114111}(y.lastIntValue))return!0;y.switchU&&y.raise("Invalid unicode escape"),y.pos=w}return!1},Mt.regexp_eatIdentityEscape=function(y){if(y.switchU)return!!this.regexp_eatSyntaxCharacter(y)||!!y.eat(47)&&(y.lastIntValue=47,!0);var w=y.current();return!(99===w||y.switchN&&107===w)&&(y.lastIntValue=w,y.advance(),!0)},Mt.regexp_eatDecimalEscape=function(y){y.lastIntValue=0;var w=y.current();if(w>=49&&w<=57){do{y.lastIntValue=10*y.lastIntValue+(w-48),y.advance()}while((w=y.current())>=48&&w<=57);return!0}return!1},Mt.regexp_eatCharacterClassEscape=function(y){var w=y.current();if(function isCharacterClassEscape(y){return 100===y||68===y||115===y||83===y||119===y||87===y}(w))return y.lastIntValue=-1,y.advance(),!0;if(y.switchU&&this.options.ecmaVersion>=9&&(80===w||112===w)){if(y.lastIntValue=-1,y.advance(),y.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(y)&&y.eat(125))return!0;y.raise("Invalid property name")}return!1},Mt.regexp_eatUnicodePropertyValueExpression=function(y){var w=y.pos;if(this.regexp_eatUnicodePropertyName(y)&&y.eat(61)){var E=y.lastStringValue;if(this.regexp_eatUnicodePropertyValue(y)){var q=y.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(y,E,q),!0}}if(y.pos=w,this.regexp_eatLoneUnicodePropertyNameOrValue(y)){var ne=y.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(y,ne),!0}return!1},Mt.regexp_validateUnicodePropertyNameAndValue=function(y,w,E){has(y.unicodeProperties.nonBinary,w)||y.raise("Invalid property name"),y.unicodeProperties.nonBinary[w].test(E)||y.raise("Invalid property value")},Mt.regexp_validateUnicodePropertyNameOrValue=function(y,w){y.unicodeProperties.binary.test(w)||y.raise("Invalid property name")},Mt.regexp_eatUnicodePropertyName=function(y){var w=0;for(y.lastStringValue="";isUnicodePropertyNameCharacter(w=y.current());)y.lastStringValue+=codePointToString(w),y.advance();return""!==y.lastStringValue},Mt.regexp_eatUnicodePropertyValue=function(y){var w=0;for(y.lastStringValue="";isUnicodePropertyValueCharacter(w=y.current());)y.lastStringValue+=codePointToString(w),y.advance();return""!==y.lastStringValue},Mt.regexp_eatLoneUnicodePropertyNameOrValue=function(y){return this.regexp_eatUnicodePropertyValue(y)},Mt.regexp_eatCharacterClass=function(y){if(y.eat(91)){if(y.eat(94),this.regexp_classRanges(y),y.eat(93))return!0;y.raise("Unterminated character class")}return!1},Mt.regexp_classRanges=function(y){for(;this.regexp_eatClassAtom(y);){var w=y.lastIntValue;if(y.eat(45)&&this.regexp_eatClassAtom(y)){var E=y.lastIntValue;!y.switchU||-1!==w&&-1!==E||y.raise("Invalid character class"),-1!==w&&-1!==E&&w>E&&y.raise("Range out of order in character class")}}},Mt.regexp_eatClassAtom=function(y){var w=y.pos;if(y.eat(92)){if(this.regexp_eatClassEscape(y))return!0;if(y.switchU){var E=y.current();(99===E||isOctalDigit(E))&&y.raise("Invalid class escape"),y.raise("Invalid escape")}y.pos=w}var q=y.current();return 93!==q&&(y.lastIntValue=q,y.advance(),!0)},Mt.regexp_eatClassEscape=function(y){var w=y.pos;if(y.eat(98))return y.lastIntValue=8,!0;if(y.switchU&&y.eat(45))return y.lastIntValue=45,!0;if(!y.switchU&&y.eat(99)){if(this.regexp_eatClassControlLetter(y))return!0;y.pos=w}return this.regexp_eatCharacterClassEscape(y)||this.regexp_eatCharacterEscape(y)},Mt.regexp_eatClassControlLetter=function(y){var w=y.current();return!(!isDecimalDigit(w)&&95!==w)&&(y.lastIntValue=w%32,y.advance(),!0)},Mt.regexp_eatHexEscapeSequence=function(y){var w=y.pos;if(y.eat(120)){if(this.regexp_eatFixedHexDigits(y,2))return!0;y.switchU&&y.raise("Invalid escape"),y.pos=w}return!1},Mt.regexp_eatDecimalDigits=function(y){var w=y.pos,E=0;for(y.lastIntValue=0;isDecimalDigit(E=y.current());)y.lastIntValue=10*y.lastIntValue+(E-48),y.advance();return y.pos!==w},Mt.regexp_eatHexDigits=function(y){var w=y.pos,E=0;for(y.lastIntValue=0;isHexDigit(E=y.current());)y.lastIntValue=16*y.lastIntValue+hexToInt(E),y.advance();return y.pos!==w},Mt.regexp_eatLegacyOctalEscapeSequence=function(y){if(this.regexp_eatOctalDigit(y)){var w=y.lastIntValue;if(this.regexp_eatOctalDigit(y)){var E=y.lastIntValue;w<=3&&this.regexp_eatOctalDigit(y)?y.lastIntValue=64*w+8*E+y.lastIntValue:y.lastIntValue=8*w+E}else y.lastIntValue=w;return!0}return!1},Mt.regexp_eatOctalDigit=function(y){var w=y.current();return isOctalDigit(w)?(y.lastIntValue=w-48,y.advance(),!0):(y.lastIntValue=0,!1)},Mt.regexp_eatFixedHexDigits=function(y,w){var E=y.pos;y.lastIntValue=0;for(var q=0;q>10),56320+(1023&y)))}Et.next=function(){this.options.onToken&&this.options.onToken(new kt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Et.getToken=function(){return this.next(),new kt(this)},"undefined"!=typeof Symbol&&(Et[Symbol.iterator]=function(){var y=this;return{next:function(){var w=y.getToken();return{done:w.type===_e.eof,value:w}}}}),Et.curContext=function(){return this.context[this.context.length-1]},Et.nextToken=function(){var y=this.curContext();return y&&y.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(_e.eof):y.override?y.override(this):void this.readToken(this.fullCharCodeAtPos())},Et.readToken=function(y){return isIdentifierStart(y,this.options.ecmaVersion>=6)||92===y?this.readWord():this.getTokenFromCode(y)},Et.fullCharCodeAtPos=function(){var y=this.input.charCodeAt(this.pos);return y<=55295||y>=57344?y:(y<<10)+this.input.charCodeAt(this.pos+1)-56613888},Et.skipBlockComment=function(){var y,w=this.options.onComment&&this.curPosition(),E=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(-1===q&&this.raise(this.pos-2,"Unterminated comment"),this.pos=q+2,this.options.locations)for(Se.lastIndex=E;(y=Se.exec(this.input))&&y.index8&&y<14||y>=5760&&ke.test(String.fromCharCode(y))))break e;++this.pos}}},Et.finishToken=function(y,w){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var E=this.type;this.type=y,this.value=w,this.updateContext(E)},Et.readToken_dot=function(){var y=this.input.charCodeAt(this.pos+1);if(y>=48&&y<=57)return this.readNumber(!0);var w=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===y&&46===w?(this.pos+=3,this.finishToken(_e.ellipsis)):(++this.pos,this.finishToken(_e.dot))},Et.readToken_slash=function(){var y=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===y?this.finishOp(_e.assign,2):this.finishOp(_e.slash,1)},Et.readToken_mult_modulo_exp=function(y){var w=this.input.charCodeAt(this.pos+1),E=1,q=42===y?_e.star:_e.modulo;return this.options.ecmaVersion>=7&&42===y&&42===w&&(++E,q=_e.starstar,w=this.input.charCodeAt(this.pos+2)),61===w?this.finishOp(_e.assign,E+1):this.finishOp(q,E)},Et.readToken_pipe_amp=function(y){var w=this.input.charCodeAt(this.pos+1);return w===y?this.finishOp(124===y?_e.logicalOR:_e.logicalAND,2):61===w?this.finishOp(_e.assign,2):this.finishOp(124===y?_e.bitwiseOR:_e.bitwiseAND,1)},Et.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(_e.assign,2):this.finishOp(_e.bitwiseXOR,1)},Et.readToken_plus_min=function(y){var w=this.input.charCodeAt(this.pos+1);return w===y?45!==w||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Me.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(_e.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===w?this.finishOp(_e.assign,2):this.finishOp(_e.plusMin,1)},Et.readToken_lt_gt=function(y){var w=this.input.charCodeAt(this.pos+1),E=1;return w===y?(E=62===y&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+E)?this.finishOp(_e.assign,E+1):this.finishOp(_e.bitShift,E)):33!==w||60!==y||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===w&&(E=2),this.finishOp(_e.relational,E)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Et.readToken_eq_excl=function(y){var w=this.input.charCodeAt(this.pos+1);return 61===w?this.finishOp(_e.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===y&&62===w&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(_e.arrow)):this.finishOp(61===y?_e.eq:_e.prefix,1)},Et.getTokenFromCode=function(y){switch(y){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(_e.parenL);case 41:return++this.pos,this.finishToken(_e.parenR);case 59:return++this.pos,this.finishToken(_e.semi);case 44:return++this.pos,this.finishToken(_e.comma);case 91:return++this.pos,this.finishToken(_e.bracketL);case 93:return++this.pos,this.finishToken(_e.bracketR);case 123:return++this.pos,this.finishToken(_e.braceL);case 125:return++this.pos,this.finishToken(_e.braceR);case 58:return++this.pos,this.finishToken(_e.colon);case 63:return++this.pos,this.finishToken(_e.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(_e.backQuote);case 48:var w=this.input.charCodeAt(this.pos+1);if(120===w||88===w)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===w||79===w)return this.readRadixNumber(8);if(98===w||66===w)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(y);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(y);case 124:case 38:return this.readToken_pipe_amp(y);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(y);case 60:case 62:return this.readToken_lt_gt(y);case 61:case 33:return this.readToken_eq_excl(y);case 126:return this.finishOp(_e.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(y)+"'")},Et.finishOp=function(y,w){var E=this.input.slice(this.pos,this.pos+w);return this.pos+=w,this.finishToken(y,E)},Et.readRegexp=function(){for(var y,w,E=this.pos;;){this.pos>=this.input.length&&this.raise(E,"Unterminated regular expression");var q=this.input.charAt(this.pos);if(Me.test(q)&&this.raise(E,"Unterminated regular expression"),y)y=!1;else{if("["===q)w=!0;else if("]"===q&&w)w=!1;else if("/"===q&&!w)break;y="\\"===q}++this.pos}var ne=this.input.slice(E,this.pos);++this.pos;var ie=this.pos,oe=this.readWord1();this.containsEsc&&this.unexpected(ie);var se=this.regexpState||(this.regexpState=new St(this));se.reset(E,ne,oe),this.validateRegExpFlags(se),this.validateRegExpPattern(se);var le=null;try{le=new RegExp(ne,oe)}catch(y){}return this.finishToken(_e.regexp,{pattern:ne,flags:oe,value:le})},Et.readInt=function(y,w){for(var E=this.pos,q=0,ne=0,ie=null==w?1/0:w;ne=97?oe-97+10:oe>=65?oe-65+10:oe>=48&&oe<=57?oe-48:1/0)>=y)break;++this.pos,q=q*y+se}return this.pos===E||null!=w&&this.pos-E!==w?null:q},Et.readRadixNumber=function(y){var w=this.pos;this.pos+=2;var E=this.readInt(y);return null==E&&this.raise(this.start+2,"Expected number in radix "+y),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(E="undefined"!=typeof BigInt?BigInt(this.input.slice(w,this.pos)):null,++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_e.num,E)},Et.readNumber=function(y){var w=this.pos;y||null!==this.readInt(10)||this.raise(w,"Invalid number");var E=this.pos-w>=2&&48===this.input.charCodeAt(w);E&&this.strict&&this.raise(w,"Invalid number"),E&&/[89]/.test(this.input.slice(w,this.pos))&&(E=!1);var q=this.input.charCodeAt(this.pos);if(!E&&!y&&this.options.ecmaVersion>=11&&110===q){var ne=this.input.slice(w,this.pos),ie="undefined"!=typeof BigInt?BigInt(ne):null;return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_e.num,ie)}46!==q||E||(++this.pos,this.readInt(10),q=this.input.charCodeAt(this.pos)),69!==q&&101!==q||E||(43!==(q=this.input.charCodeAt(++this.pos))&&45!==q||++this.pos,null===this.readInt(10)&&this.raise(w,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var oe=this.input.slice(w,this.pos),se=E?parseInt(oe,8):parseFloat(oe);return this.finishToken(_e.num,se)},Et.readCodePoint=function(){var y;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var w=++this.pos;y=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,y>1114111&&this.invalidStringToken(w,"Code point out of bounds")}else y=this.readHexChar(4);return y},Et.readString=function(y){for(var w="",E=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var q=this.input.charCodeAt(this.pos);if(q===y)break;92===q?(w+=this.input.slice(E,this.pos),w+=this.readEscapedChar(!1),E=this.pos):(isNewLine(q,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return w+=this.input.slice(E,this.pos++),this.finishToken(_e.string,w)};var At={};Et.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(y){if(y!==At)throw y;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Et.invalidStringToken=function(y,w){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw At;this.raise(y,w)},Et.readTmplToken=function(){for(var y="",w=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var E=this.input.charCodeAt(this.pos);if(96===E||36===E&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==_e.template&&this.type!==_e.invalidTemplate?(y+=this.input.slice(w,this.pos),this.finishToken(_e.template,y)):36===E?(this.pos+=2,this.finishToken(_e.dollarBraceL)):(++this.pos,this.finishToken(_e.backQuote));if(92===E)y+=this.input.slice(w,this.pos),y+=this.readEscapedChar(!0),w=this.pos;else if(isNewLine(E)){switch(y+=this.input.slice(w,this.pos),++this.pos,E){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:y+="\n";break;default:y+=String.fromCharCode(E)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),w=this.pos}else++this.pos}},Et.readInvalidTemplateToken=function(){for(;this.pos=48&&w<=55){var E=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],q=parseInt(E,8);return q>255&&(E=E.slice(0,-1),q=parseInt(E,8)),this.pos+=E.length-1,w=this.input.charCodeAt(this.pos),"0"===E&&56!==w&&57!==w||!this.strict&&!y||this.invalidStringToken(this.pos-1-E.length,y?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(q)}return isNewLine(w)?"":String.fromCharCode(w)}},Et.readHexChar=function(y){var w=this.pos,E=this.readInt(16,y);return null===E&&this.invalidStringToken(w,"Bad character escape sequence"),E},Et.readWord1=function(){this.containsEsc=!1;for(var y="",w=!0,E=this.pos,q=this.options.ecmaVersion>=6;this.pos=4?E.message.gallery.doubleSize:3===w?E.message.gallery.halfSize:E.message.gallery.size}),(function(y){return y.theme.message.gallery.width}),(function(y){return y.theme.message.gallery.galleryContainer.css})),je=ke.styled.TouchableOpacity(_templateObject3(),(function(y){var w=y.length,E=y.theme;return 3!==w?E.message.gallery.size:E.message.gallery.halfSize}),(function(y){var w=y.length,E=y.theme;return 3!==w?E.message.gallery.size:E.message.gallery.halfSize}),(function(y){return y.theme.message.gallery.imageContainer.css})),Fe=ke.styled.View(_templateObject4(),(function(y){return y.theme.message.gallery.header.container.css})),Be=ke.styled.TouchableOpacity(_templateObject5(),(function(y){return y.theme.message.gallery.header.button.css})),Ve=function GalleryHeader(y){var w=y.handleDismiss;return(0,le.useEffect)((function(){return he.default.setHidden(!0),function(){return he.default.setHidden(!1)}}),[]),le.default.createElement(Fe,null,le.default.createElement(Be,{onPress:w},le.default.createElement(_e.CloseButton,null)))};w.Gallery=function Gallery(y){var w=y.alignment,E=y.images,q=(0,Me.useMessageContentContext)(),ne=q.additionalTouchableProps,se=q.onLongPress,he=(0,Se.useTranslationContext)().t,_e=(0,le.useState)(0),ke=(0,oe.default)(_e,2),Fe=ke[0],Be=ke[1],Ne=(0,le.useState)(!1),Ue=(0,oe.default)(Ne,2),We=Ue[0],$e=Ue[1];if(!(null==E?void 0:E.length))return null;var Ye=E.reduce((function(y,w){var E=w.image_url||w.thumb_url;return E&&y.push({url:(0,Ae.makeImageCompatibleUrl)(E)}),y}),[]),Xe=[];return Ye.forEach((function(y){var w=(0,we.isImmutable)(y)?y.asMutable():y;Xe.push(w)})),1===Xe.length?le.default.createElement(le.default.Fragment,null,le.default.createElement(Oe,(0,ie.default)({alignment:w,onLongPress:se,onPress:function onPress(){return $e(!0)},testID:"image-attachment-single"},ne),le.default.createElement(pe.default,{resizeMode:"cover",source:{uri:Xe[0].url},style:{flex:1}})),We&&le.default.createElement(ge.default,{onRequestClose:function onRequestClose(){return $e(!1)},transparent:!0,visible:!0},le.default.createElement(Re.default,{enableSwipeDown:!0,imageUrls:Xe,onCancel:function onCancel(){return $e(!1)},renderHeader:function renderHeader(){return le.default.createElement(Ve,{handleDismiss:function handleDismiss(){return $e(!1)}})},saveToLocalByLongPress:!1,useNativeDriver:!0}))):le.default.createElement(le.default.Fragment,null,le.default.createElement(Te,{alignment:w,length:Xe.length,testID:"image-multiple-container"},Xe.slice(0,4).map((function(y,w){return le.default.createElement(je,(0,ie.default)({activeOpacity:.8,key:"gallery-item-"+w,length:Xe.length,onLongPress:se,onPress:function onPress(){$e(!0),Be(w)},testID:"image-multiple"},ne),3===w&&Xe.length>4?le.default.createElement(ye.default,{style:{flex:1}},le.default.createElement(pe.default,{resizeMode:"cover",source:{uri:Xe[w].url},style:{flex:1,opacity:.5}}),le.default.createElement(ye.default,{style:[me.default.absoluteFillObject,{alignItems:"center",justifyContent:"center"}]},le.default.createElement(ye.default,{style:{alignItems:"center",backgroundColor:"#000000B0",borderRadius:20,height:"40%",justifyContent:"center",width:"90%"}},le.default.createElement(ve.default,{style:{color:"#fff",fontSize:20,fontWeight:"700"}},"+",he("{{ imageCount }} more",{imageCount:Xe.length-w}))))):le.default.createElement(pe.default,{resizeMode:"cover",source:{uri:null==y?void 0:y.url},style:{flex:1}}))}))),We&&le.default.createElement(ge.default,{onRequestClose:function onRequestClose(){return $e(!1)},transparent:!0,visible:!0},le.default.createElement(Re.default,{enableSwipeDown:!0,imageUrls:Xe,index:Fe,onCancel:function onCancel(){return $e(!1)},renderHeader:function renderHeader(){return le.default.createElement(Ve,{handleDismiss:function handleDismiss(){return $e(!1)}})},saveToLocalByLongPress:!1,useNativeDriver:!0})))}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.Channel=void 0;var ie=ne(E(25)),oe=ne(E(344)),se=ne(E(56)),le=ne(E(57)),pe=ne(E(45)),ge=ne(E(86)),he=ne(E(39)),me=q(E(0)),ve=ne(E(91)),ye=ne(E(218)),Re=ne(E(816)),we=ne(E(33)),_e=E(345),Me=E(346),Se=E(347),ke=E(163),Ae=E(348),Oe=E(75),Te=E(29),je=E(87),Fe=E(194),Be=E(165),Ve=E(37),Ne=E(58),Ue=E(247);function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _objectSpread(y){for(var w=1;w0&&Vn())},Nn=function addToEventHistory(y){var w=an.length?an[an.length-1].id:"none";w&&Tt((function(E){return E[w]?_objectSpread(_objectSpread({},E),{},(0,ge.default)({},w,[].concat((0,pe.default)(E[w]),[y]))):_objectSpread(_objectSpread({},E),{},(0,ge.default)({},w,[y]))}))},Un=(0,Re.default)((function handleEventStateChange(y){rn(y.messages),un(y.read),On(y.typing),Ln(y.watcher_count),Bn(y.watchers)}),500,{leading:!0,trailing:!0}),Gn=function handleEvent(y){var w;if(gn){var E=gn.id&&$e&&$e.state.threads[gn.id]||Sn;kn(E)}if($e&&gn&&(null==(w=y.message)?void 0:w.id)===gn.id){var q=$e.state.messageToImmutable(y.message);hn(q)}"member.added"===y.type&&Nn(y),"member.removed"===y.type&&Nn(y),$e&&Un($e.state)},qn=function listenToChanges(){xt.on("connection.recovered",Gn),null==$e||$e.on(Gn)},Wn=function(){var y=(0,le.default)(se.default.mark((function _callee(){var y;return se.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:if(y=!1,Dt(!1),Wt(!0),!$e||$e.initialized||!$e.cid){w.next=14;break}return w.prev=4,w.next=7,$e.watch();case 7:w.next=14;break;case 9:w.prev=9,w.t0=w.catch(4),Dt(w.t0),Wt(!1),y=!0;case 14:Nt(new Date),y||(Hn(),qn());case 16:case"end":return w.stop()}}),_callee,null,[[4,9]])})));return function initChannel(){return y.apply(this,arguments)}}(),$n=function updateMessage(y){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e&&($e.state.addMessageSorted(y,!0),gn&&y.parent_id&&(w.threadMessages=$e.state.threads[y.parent_id]||[],kn(w.threadMessages)),rn($e.state.messages))},Kn=function createMessagePreview(y){var w=y.attachments,E=y.mentioned_users,q=y.parent_id,ne=y.text,ie=(0,oe.default)(y,["attachments","mentioned_users","parent_id","text"]);return _objectSpread({__html:ne,attachments:w,created_at:new Date,html:ne,id:xt.userID+"-"+(0,Ue.generateRandomId)(),mentioned_users:(null==E?void 0:E.map((function(y){return{id:y}})))||[],parent_id:q,reactions:[],status:"sending",text:ne,type:"regular",user:_objectSpread({id:xt.userID},xt.user)},ie)},Yn=function(){var y=(0,le.default)(se.default.mark((function _callee2(y){var w,E,q,ne,ie,le,pe,ge;return se.default.wrap((function _callee2$(se){for(;;)switch(se.prev=se.next){case 0:if(y.__html,w=y.attachments,y.created_at,y.html,E=y.id,q=y.mentioned_users,ne=y.parent_id,y.reactions,y.status,ie=y.text,y.type,y.updated_at,y.user,le=(0,oe.default)(y,["__html","attachments","created_at","html","id","mentioned_users","parent_id","reactions","status","text","type","updated_at","user"]),pe=_objectSpread({attachments:w,id:E,mentioned_users:(null==q?void 0:q.map((function(y){return y.id})))||[],parent_id:ne,text:ie},le),se.prev=2,ge={},!it){se.next=10;break}return se.next=7,it((null==$e?void 0:$e.cid)||"",pe);case 7:ge=se.sent,se.next=14;break;case 10:if(!$e){se.next=14;break}return se.next=13,$e.sendMessage(pe);case 13:ge=se.sent;case 14:ge.message&&(ge.message.status="received",$n(ge.message)),se.next=22;break;case 17:se.prev=17,se.t0=se.catch(2),console.log(se.t0),y.status="failed",$n(y);case 22:case"end":return se.stop()}}),_callee2,null,[[2,17]])})));return function sendMessageRequest(w){return y.apply(this,arguments)}}(),Xn=function(){var y=(0,le.default)(se.default.mark((function _callee3(y){var w,E;return se.default.wrap((function _callee3$(q){for(;;)switch(q.prev=q.next){case 0:return(null==$e||null==(w=$e.state)?void 0:w.filterErrorMessages)&&$e.state.filterErrorMessages(),E=Kn(_objectSpread(_objectSpread({},y),{},{attachments:y.attachments||[]})),$n(E,{commands:[],messageInput:""}),q.next=5,Yn(E);case 5:case"end":return q.stop()}}),_callee3)})));return function sendMessage(w){return y.apply(this,arguments)}}(),Jn=function(){var y=(0,le.default)(se.default.mark((function _callee4(y){return se.default.wrap((function _callee4$(w){for(;;)switch(w.prev=w.next){case 0:return y=_objectSpread(_objectSpread({},y),{},{status:"sending"}),$n(y),w.next=4,Yn(y);case 4:case"end":return w.stop()}}),_callee4)})));return function retrySendMessage(w){return y.apply(this,arguments)}}(),Zn=(0,ye.default)((function loadMoreFinished(y,w){Xt(!1),Ft(y),rn(w)}),2e3,{leading:!0,trailing:!0}),Qn=function(){var y=(0,le.default)(se.default.mark((function _callee5(){var y,w,E,q,ne;return se.default.wrap((function _callee5$(ie){for(;;)switch(ie.prev=ie.next){case 0:if(!Yt&&!1!==zt){ie.next=2;break}return ie.abrupt("return");case 2:if(Xt(!0),an.length){ie.next=5;break}return ie.abrupt("return",Xt(!1));case 5:if(!(y=an&&an[0])||"received"===y.status){ie.next=8;break}return ie.abrupt("return",Xt(!1));case 8:if(w=y&&y.id,E=100,ie.prev=10,!$e){ie.next=17;break}return ie.next=14,$e.query({messages:{id_lt:w,limit:E}});case 14:q=ie.sent,ne=q.messages.length===E,Zn(ne,$e.state.messages);case 17:ie.next=23;break;case 19:return ie.prev=19,ie.t0=ie.catch(10),console.warn("Message pagination request failed with error",ie.t0),ie.abrupt("return",Xt(!1));case 23:case"end":return ie.stop()}}),_callee5,null,[[10,19]])})));return function loadMore(){return y.apply(this,arguments)}}(),ta=(0,Re.default)(Qn,2e3,{leading:!0,trailing:!0}),na=(0,ye.default)((function loadMoreThreadFinished(y,w){Rn(y),Cn(!1),kn(w)}),2e3,{leading:!0,trailing:!0}),ia=function(){var y=(0,le.default)(se.default.mark((function _callee6(){var y,w,E,q,ne,ie,oe,le;return se.default.wrap((function _callee6$(se){for(;;)switch(se.prev=se.next){case 0:if(!wn&&(null==gn?void 0:gn.id)){se.next=2;break}return se.abrupt("return");case 2:if(Cn(!0),!$e){se.next=14;break}return w=gn.id,E=$e.state.threads[w]||[],q=null==E||null==(y=E[0])?void 0:y.id,ne=50,se.next=10,$e.getReplies(w,{id_lt:q,limit:ne});case 10:ie=se.sent,oe=ie.messages.length===ne,le=$e.state.threads[w]||[],na(oe,le);case 14:case"end":return se.stop()}}),_callee6)})));return function loadMoreThread(){return y.apply(this,arguments)}}(),sa={channel:$e,disabled:(null==$e||null==(q=$e.data)?void 0:q.frozen)&&et,EmptyStateIndicator:ut,error:At,eventHistory:It,lastRead:Ht,loading:qt,LoadingIndicator:yt,markRead:Vn,members:Qt,read:cn,setLastRead:Nt,typing:Dn,watcherCount:Tn,watchers:Fn},da={Attachment:We,clearEditingState:function clearEditingState(){return St(!1)},editing:Mt,editMessage:function editMessage(y){return ot?ot((null==$e?void 0:$e.cid)||"",y):xt.updateMessage(y)},emojiData:dt,hasMore:zt,loadingMore:Yt,loadMore:ta,Message:Rt,messages:an,removeMessage:function removeMessage(y){$e&&($e.state.removeMessage(y),rn($e.state.messages))},retrySendMessage:Jn,sendMessage:Xn,setEditingState:function setEditingState(y){St(y)},updateMessage:$n},la={closeThread:function closeThread(){hn(null),kn((0,we.default)([]))},loadMoreThread:ia,openThread:function openThread(y){var w,E=(null==y?void 0:y.id)&&(null==$e||null==(w=$e.state)?void 0:w.threads[y.id])||(0,we.default)([]);hn(y),kn(E)},thread:gn,threadHasMore:yn,threadLoadingMore:wn,threadMessages:Sn};return!$e||At?me.default.createElement(mt,{error:At,listType:"message",retry:function retry(){ta()}}):(null==$e?void 0:$e.cid)&&$e.watch?me.default.createElement(gt,(0,ie.default)({behavior:lt,enabled:!nt,keyboardVerticalOffset:ht},ne),me.default.createElement(Oe.ChannelProvider,{value:sa},me.default.createElement(je.MessagesProvider,{value:da},me.default.createElement(Be.ThreadProvider,{value:la},me.default.createElement(Fe.SuggestionsProvider,null,Ye))))):me.default.createElement(ve.default,{style:{fontWeight:"bold",padding:16},testID:"no-channel"},wt("Please select a channel first"))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.LoadingIndicator=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(164),se=E(37),le=E(15);function _templateObject2(){var y=(0,ne.default)(["\n font-size: 14px;\n font-weight: 600;\n margin-top: 20px;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n height: 100%;\n justify-content: center;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var pe=le.styled.View(_templateObject(),(function(y){return y.theme.loadingIndicator.container.css})),ge=le.styled.Text(_templateObject2(),(function(y){return y.theme.loadingIndicator.loadingText.css})),he=function LoadingIndicatorWrapper(y){var w=y.text;return ie.default.createElement(pe,null,ie.default.createElement(oe.Spinner,null),ie.default.createElement(ge,{testID:"loading"},w))};w.LoadingIndicator=function LoadingIndicator(y){var w=y.listType,E=y.loadingText,q=(0,se.useTranslationContext)().t;if(E)return ie.default.createElement(he,{text:E});switch(w){case"channel":return ie.default.createElement(he,{text:q("Loading channels ...")});case"message":return ie.default.createElement(he,{text:q("Loading messages ...")});default:return ie.default.createElement(he,{text:q("Loading ...")})}}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.Spinner=void 0;var ie=ne(E(16)),oe=q(E(0)),se=ne(E(286)),le=ne(E(337)),pe=E(15);function _templateObject(){var y=(0,ie.default)(["\n border-color: ",";\n border-radius: 30px;\n border-right-color: transparent;\n border-width: 2px;\n height: 30px;\n justify-content: center;\n margin: 5px;\n width: 30px;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var ge=se.default.createAnimatedComponent(se.default.View),he=(0,pe.styled)(ge)(_templateObject(),(function(y){return y.theme.colors.primary}),(function(y){return y.theme.spinner.css}));w.Spinner=function Spinner(){var y=(0,oe.useRef)(new se.default.Value(0)),w=se.default.loop(se.default.timing(y.current,{duration:800,easing:le.default.linear,toValue:1,useNativeDriver:!0}));return(0,oe.useEffect)((function(){return w.start(),w.stop})),oe.default.createElement(he,{style:{transform:[{rotate:y.current.interpolate({inputRange:[0,1],outputRange:["0deg","360deg"]})}]}})}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.withThreadContext=w.useThreadContext=w.ThreadProvider=w.ThreadContext=void 0;var ie=ne(E(25)),oe=q(E(0)),se=E(109),le=oe.default.createContext({});w.ThreadContext=le;w.ThreadProvider=function ThreadProvider(y){var w=y.children,E=y.value;return oe.default.createElement(le.Provider,{value:E},w)};var pe=function useThreadContext(){return(0,oe.useContext)(le)};w.useThreadContext=pe;w.withThreadContext=function withThreadContext(y){var w=function WithThreadContextComponent(w){var E=pe();return oe.default.createElement(y,(0,ie.default)({},w,E))};return w.displayName="WithThreadContext"+(0,se.getDisplayName)(y),w}},function(y,w,E){var q=E(273),ne=E(110);y.exports=function(y){return q(ne(y))}},function(y,w,E){var q=E(53),ne=E(149),ie=E(68),oe=E(374),se=E(511),le=E(375),pe=le.get,ge=le.enforce,he=String(String).split("String");(y.exports=function(y,w,E,se){var le=!!se&&!!se.unsafe,pe=!!se&&!!se.enumerable,me=!!se&&!!se.noTargetGet;"function"==typeof E&&("string"!=typeof w||ie(E,"name")||ne(E,"name",w),ge(E).source=he.join("string"==typeof w?w:"")),y!==q?(le?!me&&y[w]&&(pe=!0):delete y[w],pe?y[w]=E:ne(y,w,E)):pe?y[w]=E:oe(w,E)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&pe(this).source||se(this)}))},function(y,w,E){var q=E(515),ne=E(53),aFunction=function(y){return"function"==typeof y?y:void 0};y.exports=function(y,w){return arguments.length<2?aFunction(q[y])||aFunction(ne[y]):q[y]&&q[y][w]||ne[y]&&ne[y][w]}},function(y,w,E){var q=E(278),ne=Math.min;y.exports=function(y){return y>0?ne(q(y),9007199254740991):0}},function(y,w,E){"use strict";E.d(w,"a",(function(){return useElementLayout}));var q=E(14),ne=E(118),ie=E(32),oe=(q.canUseDOM,null);function useElementLayout(y,w){var E=function getResizeObserver(){return q.canUseDOM&&void 0!==window.ResizeObserver&&null==oe&&(oe=new window.ResizeObserver((function(y){y.forEach((function(y){var w=y.target,E=w.__reactLayoutHandler;"function"==typeof E&&ie.a.measure(w,(function(w,q,ne,ie,oe,se){var le={nativeEvent:{layout:{x:w,y:q,width:ne,height:ie,left:oe,top:se}},timeStamp:Date.now()};Object.defineProperty(le.nativeEvent,"target",{enumerable:!0,get:function get(){return y.target}}),E(le)}))}))}))),oe}();Object(ne.a)((function(){var E=y.current;null!=E&&(E.__reactLayoutHandler=w)}),[y,w]),Object(ne.a)((function(){var w=y.current;return null!=w&&null!=E&&("function"==typeof w.__reactLayoutHandler?E.observe(w):E.unobserve(w)),function(){null!=w&&null!=E&&E.unobserve(w)}}),[y,E])}},function(y,w,E){"use strict";E.r(w);var q=/[A-Z]/g,ne=/^ms-/,ie={};function toHyphenLower(y){return"-"+y.toLowerCase()}w.default=function hyphenateStyleName(y){if(ie.hasOwnProperty(y))return ie[y];var w=y.replace(q,toHyphenLower);return ie[y]=ne.test(w)?"-"+w:w}},function(y,w){function normalizeColor(y){var w;return"number"==typeof y?y>>>0===y&&y>=0&&y<=4294967295?y:null:(w=ne.hex6.exec(y))?parseInt(w[1]+"ff",16)>>>0:ie.hasOwnProperty(y)?ie[y]:(w=ne.rgb.exec(y))?(parse255(w[1])<<24|parse255(w[2])<<16|parse255(w[3])<<8|255)>>>0:(w=ne.rgba.exec(y))?(parse255(w[1])<<24|parse255(w[2])<<16|parse255(w[3])<<8|parse1(w[4]))>>>0:(w=ne.hex3.exec(y))?parseInt(w[1]+w[1]+w[2]+w[2]+w[3]+w[3]+"ff",16)>>>0:(w=ne.hex8.exec(y))?parseInt(w[1],16)>>>0:(w=ne.hex4.exec(y))?parseInt(w[1]+w[1]+w[2]+w[2]+w[3]+w[3]+w[4]+w[4],16)>>>0:(w=ne.hsl.exec(y))?(255|hslToRgb(parse360(w[1]),parsePercentage(w[2]),parsePercentage(w[3])))>>>0:(w=ne.hsla.exec(y))?(hslToRgb(parse360(w[1]),parsePercentage(w[2]),parsePercentage(w[3]))|parse1(w[4]))>>>0:null}function hue2rgb(y,w,E){return E<0&&(E+=1),E>1&&(E-=1),E<1/6?y+6*(w-y)*E:E<.5?w:E<2/3?y+(w-y)*(2/3-E)*6:y}function hslToRgb(y,w,E){var q=E<.5?E*(1+w):E+w-E*w,ne=2*E-q,ie=hue2rgb(ne,q,y+1/3),oe=hue2rgb(ne,q,y),se=hue2rgb(ne,q,y-1/3);return Math.round(255*ie)<<24|Math.round(255*oe)<<16|Math.round(255*se)<<8}var E="[-+]?\\d*\\.?\\d+",q=E+"%";function toArray(y){return Array.prototype.slice.call(y,0)}function call(){return"\\(\\s*("+toArray(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var ne={rgb:new RegExp("rgb"+call(E,E,E)),rgba:new RegExp("rgba"+call(E,E,E,E)),hsl:new RegExp("hsl"+call(E,q,q)),hsla:new RegExp("hsla"+call(E,q,q,E)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/};function parse255(y){var w=parseInt(y,10);return w<0?0:w>255?255:w}function parse360(y){return(parseFloat(y)%360+360)%360/360}function parse1(y){var w=parseFloat(y);return w<0?0:w>1?255:Math.round(255*w)}function parsePercentage(y){var w=parseFloat(y,10);return w<0?0:w>100?1:w/100}var ie={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};normalizeColor.rgba=function rgba(y){return{r:Math.round((4278190080&y)>>>24),g:Math.round((16711680&y)>>>16),b:Math.round((65280&y)>>>8),a:((255&y)>>>0)/255}},y.exports=normalizeColor},function(y,w,E){"use strict";var q=E(17),ne=function(){function Animation(){}var y=Animation.prototype;return y.start=function start(y,w,E,q,ne){},y.stop=function stop(){this.__nativeId&&q.a.API.stopAnimation(this.__nativeId)},y.__getNativeAnimationConfig=function __getNativeAnimationConfig(){throw new Error("This animation type cannot be offloaded to native")},y.__debouncedOnEnd=function __debouncedOnEnd(y){var w=this.__onEnd;this.__onEnd=null,w&&w(y)},y.__startNativeAnimation=function __startNativeAnimation(y){q.a.API.enableQueue(),y.__makeNative(),q.a.API.disableQueue(),this.__nativeId=q.a.generateNewAnimationId(),q.a.API.startAnimatingNode(this.__nativeId,y.__getNativeTag(),this.__getNativeAnimationConfig(),this.__debouncedOnEnd.bind(this))},Animation}();w.a=ne},function(y,w,E){"use strict";var q=E(790);y.exports=q},function(y,w,E){"use strict";w.__esModule=!0,w.DOCS_THIRDPARTIES=w.DOCS_DOCUMENTING=w.DOCS_WEBPACK=w.DOCS_COMPONENTS=w.DOCS_CONFIG=w.BUGS=w.HOMEPAGE=void 0;w.HOMEPAGE="https://react-styleguidist.js.org/";w.BUGS="https://github.com/styleguidist/react-styleguidist/issues";w.DOCS_CONFIG="https://react-styleguidist.js.org/docs/configuration";w.DOCS_COMPONENTS="https://react-styleguidist.js.org/docs/components";w.DOCS_WEBPACK="https://react-styleguidist.js.org/docs/webpack";w.DOCS_DOCUMENTING="https://react-styleguidist.js.org/docs/documenting";w.DOCS_THIRDPARTIES="https://react-styleguidist.js.org/docs/thirdparties"},function(y,w,E){"use strict";var q=E(14);var ne=E(61),ie=E(293);var oe={height:0,width:0};var se=function createCompileableStyle(y){var w=y.shadowColor,E=y.shadowOffset,q=y.shadowOpacity,se=y.shadowRadius,le=y.textShadowColor,pe=y.textShadowOffset,ge=y.textShadowRadius,he=function _objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,q,ne={},ie=Object.keys(y);for(q=0;q=0||(ne[E]=y[E]);return ne}(y,["shadowColor","shadowOffset","shadowOpacity","shadowRadius","textShadowColor","textShadowOffset","textShadowRadius"]);return null==w&&null==E&&null==q&&null==se||function boxShadowReducer(y,w){var E=w.boxShadow,q=Object(ie.a)(w);null!=q&&(y.boxShadow=E?E+", "+q:q)}(he,y),null==le&&null==pe&&null==ge||function textShadowReducer(y,w){var E=w.textShadowColor,q=w.textShadowOffset,ie=w.textShadowRadius,se=q||oe,le=se.height,pe=se.width,ge=ie||0,he=Object(ne.a)(pe),me=Object(ne.a)(le),ve=Object(ne.a)(ge),ye=Object(ne.a)(E,"textShadowColor");!ye||0===le&&0===pe&&0===ge||null==he||null==me||null==ve||(y.textShadow=he+" "+me+" "+ve+" "+ye)}(he,y),he},le=Array.prototype.slice;function createOrderedCSSStyleSheet(y){var w,E={},q={};null!=y&&le.call(y.cssRules).forEach((function(y,ne){var ie=y.cssText;if(ie.indexOf("stylesheet-group")>-1)w=function decodeGroupRule(y){return Number(y.selectorText.split(/["']/)[1])}(y),E[w]={start:ne,rules:[ie]};else{var oe=getSelectorText(ie);null!=oe&&(q[oe]=!0,E[w].rules.push(ie))}}));function sheetInsert(y,w,q){var ne=getOrderedGroups(E),ie=ne.indexOf(w)+1,oe=ne[ie],se=null!=oe&&null!=E[oe].start?E[oe].start:y.cssRules.length,le=function insertRuleAt(y,w,E){try{return y.insertRule(w,E),!0}catch(y){return!1}}(y,q,se);if(le){null==E[w].start&&(E[w].start=se);for(var pe=ie;pew?1:-1}))}var pe=/\s*([,])\s*/g;function getSelectorText(y){var w=y.split("{")[0].trim();return""!==w?w.replace(pe,"$1"):null}var ge=function flattenArray(y){return function flattenDown(y,w){for(var E=0;E0?(w.flexGrow=q,w.flexShrink=1):0===q?(w.flexGrow=0,w.flexShrink=0):-1===q&&(w.flexGrow=0,w.flexShrink=1);break;case"font":w[E]=q.replace("System",nt.e);break;case"fontFamily":if(q.indexOf("System")>-1){var ie=q.split(/,\s*/);ie[ie.indexOf("System")]=nt.e,w[E]=ie.join(",")}else w[E]="monospace"===q?nt.a:q;break;case"fontVariant":Array.isArray(q)&&q.length>0&&(w.fontVariant=q.join(" "));break;case"textAlignVertical":w.verticalAlign="center"===q?"middle":q;break;case"textDecorationLine":it?w.textDecorationLine=q:w.textDecoration=q;break;case"transform":case"transformMatrix":!function resolveTransform(y,w){var E=w.transform;Array.isArray(w.transform)?E=w.transform.map(ot).join(" "):w.transformMatrix&&(E=function convertTransformMatrix(y){return"matrix3d("+y.join(",")+")"}(w.transformMatrix)),y.transform=E}(w,y);break;case"writingDirection":w.direction=q;break;default:var oe=nt.d[E];oe?oe.forEach((function(E,ne){void 0===y[E]&&(w[E]=q)})):w[E]=Array.isArray(q)?q.join(","):q}})),w};var dt=function hash(y){return function murmurhash2_32_gc(y,w){for(var E,q=y.length,ne=w^q,ie=0;q>=4;)E=1540483477*(65535&(E=255&y.charCodeAt(ie)|(255&y.charCodeAt(++ie))<<8|(255&y.charCodeAt(++ie))<<16|(255&y.charCodeAt(++ie))<<24))+((1540483477*(E>>>16)&65535)<<16),ne=1540483477*(65535&ne)+((1540483477*(ne>>>16)&65535)<<16)^(E=1540483477*(65535&(E^=E>>>24))+((1540483477*(E>>>16)&65535)<<16)),q-=4,++ie;switch(q){case 3:ne^=(255&y.charCodeAt(ie+2))<<16;case 2:ne^=(255&y.charCodeAt(ie+1))<<8;case 1:ne=1540483477*(65535&(ne^=255&y.charCodeAt(ie)))+((1540483477*(ne>>>16)&65535)<<16)}return ne=1540483477*(65535&(ne^=ne>>>13))+((1540483477*(ne>>>16)&65535)<<16),(ne^=ne>>>15)>>>0}(y,1).toString(36)},ct=E(171),ut=E(537),lt=E.n(ut),pt=E(538),gt=E.n(pt),ht=E(539),ft=E.n(ht),mt=E(540),vt=E.n(mt),yt=E(541),Rt=E.n(yt),bt=E(542),xt=E.n(bt),wt=E(543),Ct=E.n(wt),_t=E(544),Mt=E.n(_t),St=E(545),kt=E.n(St),Et=E(546),At=E.n(Et),Dt=E(547),Ot=E.n(Dt),Pt=E(548),It=E.n(Pt),Tt=E(549),Lt=E.n(Tt),jt=E(550),zt=E.n(jt),Ft=E(551),Bt=E.n(Ft),Vt=["Webkit"],Ht=["Moz"],Nt=["ms"],Ut=["Webkit","Moz"],Gt=["Webkit","ms"],qt=["Webkit","Moz","ms"],Wt={plugins:[gt.a,ft.a,vt.a,Rt.a,xt.a,Ct.a,Mt.a,kt.a,At.a,Ot.a,It.a,Lt.a,zt.a,Bt.a],prefixMap:{animation:Vt,animationDelay:Vt,animationDirection:Vt,animationFillMode:Vt,animationDuration:Vt,animationIterationCount:Vt,animationName:Vt,animationPlayState:Vt,animationTimingFunction:Vt,appearance:Ut,userSelect:qt,textEmphasisPosition:Vt,textEmphasis:Vt,textEmphasisStyle:Vt,textEmphasisColor:Vt,boxDecorationBreak:Vt,clipPath:Vt,maskImage:Vt,maskMode:Vt,maskRepeat:Vt,maskPosition:Vt,maskClip:Vt,maskOrigin:Vt,maskSize:Vt,maskComposite:Vt,mask:Vt,maskBorderSource:Vt,maskBorderMode:Vt,maskBorderSlice:Vt,maskBorderWidth:Vt,maskBorderOutset:Vt,maskBorderRepeat:Vt,maskBorder:Vt,maskType:Vt,textDecorationStyle:Vt,textDecorationSkip:Vt,textDecorationLine:Vt,textDecorationColor:Vt,filter:Vt,fontFeatureSettings:Vt,breakAfter:qt,breakBefore:qt,breakInside:qt,columnCount:Ut,columnFill:Ut,columnGap:Ut,columnRule:Ut,columnRuleColor:Ut,columnRuleStyle:Ut,columnRuleWidth:Ut,columns:Ut,columnSpan:Ut,columnWidth:Ut,writingMode:Gt,flex:Gt,flexBasis:Vt,flexDirection:Gt,flexGrow:Vt,flexFlow:Gt,flexShrink:Vt,flexWrap:Gt,alignContent:Vt,alignItems:Vt,alignSelf:Vt,justifyContent:Vt,order:Vt,transform:Vt,transformOrigin:Vt,transformOriginX:Vt,transformOriginY:Vt,backfaceVisibility:Vt,perspective:Vt,perspectiveOrigin:Vt,transformStyle:Vt,transformOriginZ:Vt,backdropFilter:Vt,fontKerning:Vt,scrollSnapType:Gt,scrollSnapPointsX:Gt,scrollSnapPointsY:Gt,scrollSnapDestination:Gt,scrollSnapCoordinate:Gt,shapeImageThreshold:Vt,shapeImageMargin:Vt,shapeImageOutside:Vt,hyphens:qt,flowInto:Gt,flowFrom:Gt,regionFragment:Gt,textOrientation:Vt,textAlignLast:Ht,tabSize:Ht,wrapFlow:Nt,wrapThrough:Nt,wrapMargin:Nt,touchAction:Nt,textSizeAdjust:["ms","Webkit"],borderImage:Vt,borderImageOutset:Vt,borderImageRepeat:Vt,borderImageSlice:Vt,borderImageSource:Vt,borderImageWidth:Vt,transitionDelay:Vt,transitionDuration:Vt,transitionProperty:Vt,transitionTimingFunction:Vt}},$t=lt()(Wt),Kt=$t;function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _defineProperty(y,w,E){return w in y?Object.defineProperty(y,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[w]=E,y}var Yt={get:function get(y,w){if(null!=Yt[y]&&Yt[y].hasOwnProperty(w)&&null!=Yt[y][w])return Yt[y][w]},set:function set(y,w,E){return null==Yt[y]&&(Yt[y]={}),Yt[y][w]=E}};function atomic(y){return Object.keys(y).sort().reduce((function(w,E){var q=y[E];if(null!=q){var ne=stringifyValueWithProperty(q,E),ie=Yt.get(E,ne);if(null!=ie){w[ie.identifier]=ie}else{var oe=createIdentifier("r",E,q),se=function createAtomicRules(y,w,E){var q=[],ne="."+y;switch(w){case"animationKeyframes":var ie=processKeyframesValue(E),oe=ie.animationNames,se=ie.rules,le=createDeclarationBlock({animationName:oe.join(",")});q.push.apply(q,[""+ne+le].concat(se));break;case"placeholderTextColor":var pe=createDeclarationBlock({color:E,opacity:1});q.push(ne+"::-webkit-input-placeholder"+pe,ne+"::-moz-placeholder"+pe,ne+":-ms-input-placeholder"+pe,ne+"::placeholder"+pe);break;case"pointerEvents":var ge,he=E;if("auto"===E||"box-only"===E){if(he="auto!important","box-only"===E){var me,ve=createDeclarationBlock(((me={})[w]="none",me));q.push(ne+">*"+ve)}}else if(("none"===E||"box-none"===E)&&(he="none!important","box-none"===E)){var ye,Re=createDeclarationBlock(((ye={})[w]="auto",ye));q.push(ne+">*"+Re)}var we=createDeclarationBlock(((ge={})[w]=he,ge));q.push(""+ne+we);break;case"scrollbarWidth":var _e;"none"===E&&q.push(ne+"::-webkit-scrollbar{display:none}");var Me=createDeclarationBlock(((_e={})[w]=E,_e));q.push(""+ne+Me);break;default:var Se,ke=createDeclarationBlock(((Se={})[w]=E,Se));q.push(""+ne+ke)}return q}(oe,E,q),le=Yt.set(E,ne,{property:E,value:stringifyValueWithProperty(q,E),identifier:oe,rules:se});w[oe]=le}}return w}),{})}function classic(y,w){var E,q,ne=createIdentifier("css",w,y),ie=y.animationKeyframes,oe=function compile_objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,q,ne={},ie=Object.keys(y);for(q=0;q=0||(ne[E]=y[E]);return ne}(y,["animationKeyframes"]),se=[],le="."+ne;if(null!=ie){var pe=processKeyframesValue(ie),ge=pe.animationNames,he=pe.rules;q=ge.join(","),se.push.apply(se,he)}var me=createDeclarationBlock(function _objectSpread(y){for(var w=1;w20&&(y+=" (original size: "+oe.length+")"),y}var le={recordTouchTrack:function recordTouchTrack(y,w){if(isMoveish(y))w.changedTouches.forEach(recordTouchMove);else if(isStartish(y))w.changedTouches.forEach(recordTouchStart),se.numberActiveTouches=w.touches.length,1===se.numberActiveTouches&&(se.indexOfSingleActiveTouch=w.touches[0].identifier);else if(isEndish(y)){if(w.changedTouches.forEach(recordTouchEnd),se.numberActiveTouches=w.touches.length,1===se.numberActiveTouches)for(var E=0;E20?y%20:y}function createResponderEvent(y){var w,E,q,ne=!1,oe=y.changedTouches,se=y.type,me=!0===y.metaKey,ve=!0===y.shiftKey,ye=oe&&oe[0].force||0,Re=normalizeIdentifier(oe&&oe[0].identifier||0),we=oe&&oe[0].clientX||y.clientX,_e=oe&&oe[0].clientY||y.clientY,Me=oe&&oe[0].pageX||y.pageX,Se=oe&&oe[0].pageY||y.pageY,ke="function"==typeof y.preventDefault?y.preventDefault.bind(y):pe,Ae=y.timeStamp;function normalizeTouches(y){return Array.prototype.slice.call(y).map((function(y){return{force:y.force,identifier:normalizeIdentifier(y.identifier),get locationX(){return locationX(y.clientX)},get locationY(){return locationY(y.clientY)},pageX:y.pageX,pageY:y.pageY,target:y.target,timestamp:Ae}}))}if(null!=oe)E=normalizeTouches(oe),q=normalizeTouches(y.touches);else{var Oe=[{force:ye,identifier:Re,get locationX(){return locationX(we)},get locationY(){return locationY(_e)},pageX:Me,pageY:Se,target:y.target,timestamp:Ae}];E=Oe,q="mouseup"===se||"dragstart"===se?he:Oe}var Te={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:y.defaultPrevented,dispatchConfig:ge,eventPhase:y.eventPhase,isDefaultPrevented:function isDefaultPrevented(){return y.defaultPrevented},isPropagationStopped:function isPropagationStopped(){return ne},isTrusted:y.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:me,shiftKey:ve,changedTouches:E,force:ye,identifier:Re,get locationX(){return locationX(we)},get locationY(){return locationY(_e)},pageX:Me,pageY:Se,target:y.target,timestamp:Ae,touches:q,type:se},persist:pe,preventDefault:ke,stopPropagation:function stopPropagation(){ne=!0},target:y.target,timeStamp:Ae,touchHistory:le.touchHistory};function locationX(y){if(w=w||Object(ie.a)(Te.currentTarget))return y-w.left}function locationY(y){if(w=w||Object(ie.a)(Te.currentTarget))return y-w.top}return Te}var me="__reactResponderId";function composedPathFallback(y){for(var w=[];null!=y&&y!==document.body;)w.push(y),y=y.parentNode;return w}function getResponderId(y){return null!=y?y[me]:null}function getResponderPaths(y){for(var w=[],E=[],q=function getEventPath(y){return"selectionchange"===y.type?composedPathFallback(window.getSelection().anchorNode):null!=y.composedPath?y.composedPath():composedPathFallback(y.target)}(y),ne=0;ne=1&&"\n"!==w&&ne}():"select"===y.type}var ve={},ye=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],Re=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],we={touchstart:ye,mousedown:ye,touchmove:Re,mousemove:Re,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},_e={id:null,idPath:null,node:null},Me=new Map,Se=!1,ke=0,Ae={id:null,node:null,idPath:null};function changeCurrentResponder(y){Ae=y}function getResponderConfig(y){var w=Me.get(y);return null!=w?w:ve}function eventListener(y){var w=y.type,E=y.target;if("touchstart"===w&&(Se=!0),("touchmove"===w||ke>1)&&(Se=!1),!("mousedown"===w&&Se||"mousemove"===w&&Se||"mousemove"===w&&ke<1))if(Se&&"mouseup"===w)0===ke&&(Se=!1);else{var q=isStartish(w)&&function isPrimaryPointerDown(y){var w=y.altKey,E=y.button,q=y.buttons,ne=y.ctrlKey,ie=y.type,oe=!1===w&&!1===ne;return!!("touchstart"===ie||"touchmove"===ie||"mousedown"===ie&&(0===E||1===q)&&oe||"mousemove"===ie&&1===q&&oe)}(y),ne=isMoveish(w),ie=isEndish(w),oe=function isScroll(y){return"scroll"===y}(w),se=function isSelectionChange(y){return"select"===y||"selectionchange"===y}(w),pe=createResponderEvent(y);(q||ne||ie)&&(y.touches?ke=y.touches.length:q?ke=1:ie&&(ke=0),le.recordTouchTrack(w,pe.nativeEvent));var ge,he=getResponderPaths(y),me=!1;if(q||ne||oe&&ke>0){var ve=Ae.idPath,ye=he.idPath;if(null!=ve&&null!=ye){var Re=function getLowestCommonAncestor(y,w){var E=y.length,q=w.length;if(0===E||0===q||y[E-1]!==w[q-1])return null;var ne=y[0],ie=0,oe=w[0],se=0;E-q>0&&(ne=y[ie=E-q],E=q),q-E>0&&(oe=w[se=q-E],q=E);for(var le=E;le--;){if(ne===oe)return ne;ne=y[ie++],oe=w[se++]}return null}(ve,ye);if(null!=Re){var Me=ye.indexOf(Re)+(Re===Ae.id?1:0);he={idPath:ye.slice(Me),nodePath:he.nodePath.slice(Me)}}else he=null}null!=he&&null!=(ge=function findWantsResponder(y,w,E){var q=we[w.type];if(null!=q){for(var ne=y.idPath,ie=y.nodePath,oe=q[0],se=q[1],le=q[2].bubbles,pe=function check(y,w,q){var ie=getResponderConfig(y)[q];if(null!=ie&&!0===ie(E))return{id:y,node:w,idPath:ne}},ge=ne.length-1;ge>=0;ge--){var he=pe(ne[ge],ie[ge],oe);if(null!=he)return he;if(!0===E.isPropagationStopped())return}if(le)for(var me=0;me-1},propsToAccessibilityComponent:function propsToAccessibilityComponent(y){if(void 0===y&&(y=oe),"label"===y.accessibilityRole)return"label";var w=ne(y);if(w){if("heading"===w){var E=y["aria-level"];return null!=E?"h"+E:"h1"}return ie[w]}},propsToAriaRole:ne};w.a=se},function(y,w,E){"use strict";w.a=function getBoundingClientRect(y){if(null!=y&&(1===y.nodeType&&"function"==typeof y.getBoundingClientRect))return y.getBoundingClientRect()}},function(y,w,E){"use strict";var q=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;w.a=function multiplyStyleLengthValue(y,w){return"string"==typeof y?""+parseFloat(y)*w+function getUnit(y){return y.match(q)[1]}(y):function isNumeric(y){return!isNaN(parseFloat(y))&&isFinite(y)}(y)?y*w:void 0}},function(y,w,E){var q=E(474),ne=E(476),ie=E(253),oe=E(88),se=E(124),le=E(254),pe=E(257),ge=E(256),he=Object.prototype.hasOwnProperty;y.exports=function isEmpty(y){if(null==y)return!0;if(se(y)&&(oe(y)||"string"==typeof y||"function"==typeof y.splice||le(y)||ge(y)||ie(y)))return!y.length;var w=ne(y);if("[object Map]"==w||"[object Set]"==w)return!y.size;if(pe(y))return!q(y).length;for(var E in y)if(he.call(y,E))return!1;return!0}},function(y,w){function _extends(){return y.exports=_extends=Object.assign||function(y){for(var w=1;w0?ie.default.createElement(ye,{fileUploadsLength:q.length},ie.default.createElement(oe.default,{data:q,keyExtractor:function keyExtractor(y){return y.id},renderItem:function renderItem(y){var w=y.item;return ie.default.createElement(ie.default.Fragment,null,ie.default.createElement(se.UploadProgressIndicator,{action:function action(){pe&&pe({newFile:w})},active:w.state!==ge.FileState.UPLOADED,type:w.state===ge.FileState.UPLOADING?ge.ProgressIndicatorTypes.IN_PROGRESS:w.state===ge.FileState.UPLOAD_FAILED?ge.ProgressIndicatorTypes.RETRY:void 0},ie.default.createElement(me,null,ie.default.createElement(ve,null,ie.default.createElement(E,{mimeType:w.file.type,size:20}),ie.default.createElement(_e,null,w.file.name?w.file.name.length>35?w.file.name.substring(0,35).concat("..."):w.file.name:"")))),ie.default.createElement(Re,{onPress:function onPress(){ne&&ne(w.id)},testID:"remove-file-upload-preview"},ie.default.createElement(we,{source:he})))},style:{flex:1}})):null}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.UploadProgressIndicator=void 0;var ne=q(E(16)),ie=q(E(0)),oe=q(E(338)),se=q(E(101)),le=q(E(9)),pe=E(15),ge=E(58);function _templateObject4(){var y=(0,ne.default)(["\n align-items: center;\n bottom: 0;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"]);return _templateObject4=function _templateObject4(){return y},y}function _templateObject3(){var y=(0,ne.default)(["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.3);\n height: 100%;\n justify-content: center;\n opacity: 0;\n position: absolute;\n width: 100%;\n ",";\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n align-items: center;\n background-color: rgba(255, 255, 255, 0);\n height: 100%;\n justify-content: center;\n position: absolute;\n width: 100%;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n bottom: 0;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"]);return _templateObject=function _templateObject(){return y},y}var he=E(999),me=pe.styled.View(_templateObject()),ve=pe.styled.View(_templateObject2(),(function(y){return y.theme.messageInput.uploadProgressIndicator.container.css})),ye=pe.styled.View(_templateObject3(),(function(y){return y.theme.messageInput.uploadProgressIndicator.overlay.css})),Re=pe.styled.TouchableOpacity(_templateObject4());w.UploadProgressIndicator=function UploadProgressIndicator(y){var w=y.action,E=y.active,q=y.children,ne=y.type;return E?ie.default.createElement(le.default,{testID:"active-upload-progress-indicator"},q,ie.default.createElement(ye,null),ie.default.createElement(ve,null,ne===ge.ProgressIndicatorTypes.IN_PROGRESS&&ie.default.createElement(me,null,ie.default.createElement(oe.default,{color:"grey",testID:"upload-progress-indicator"})),ne===ge.ProgressIndicatorTypes.RETRY&&ie.default.createElement(Re,{onPress:w},ie.default.createElement(se.default,{source:he,style:{height:18,width:18},testID:"retry-upload-progress-indicator"})))):ie.default.createElement(le.default,{testID:"inactive-upload-progress-indicator"},q)}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageUploadPreview=void 0;var ne=q(E(16)),ie=q(E(0)),oe=q(E(117)),se=E(207),le=E(15),pe=E(58);function _templateObject5(){var y=(0,ne.default)(["\n border-radius: 10px;\n height: 50px;\n width: 50px;\n ",";\n"]);return _templateObject5=function _templateObject5(){return y},y}function _templateObject4(){var y=(0,ne.default)(["\n align-items: flex-start;\n flex-direction: row;\n height: 50px;\n margin-left: 5px;\n ",";\n"]);return _templateObject4=function _templateObject4(){return y},y}function _templateObject3(){var y=(0,ne.default)(["\n height: 10px;\n width: 10px;\n ",";\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n align-items: center;\n background-color: #fff;\n border-radius: 20px;\n height: 20px;\n justify-content: center;\n position: absolute;\n right: 5px;\n top: 5px;\n width: 20px;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n height: 70px;\n padding: 10px;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var ge=E(342),he=le.styled.View(_templateObject(),(function(y){return y.theme.messageInput.imageUploadPreview.container.css})),me=le.styled.TouchableOpacity(_templateObject2(),(function(y){return y.theme.messageInput.imageUploadPreview.dismiss.css})),ve=le.styled.Image(_templateObject3(),(function(y){return y.theme.messageInput.imageUploadPreview.dismissImage.css})),ye=le.styled.View(_templateObject4(),(function(y){return y.theme.messageInput.imageUploadPreview.itemContainer.css})),Re=le.styled.Image(_templateObject5(),(function(y){return y.theme.messageInput.imageUploadPreview.upload.css}));w.ImageUploadPreview=function ImageUploadPreview(y){var w=y.imageUploads,E=y.removeImage,q=y.retryUpload;return(null==w?void 0:w.length)>0?ie.default.createElement(he,null,ie.default.createElement(oe.default,{data:w,horizontal:!0,keyExtractor:function keyExtractor(y){return y.id},renderItem:function renderItem(y){var w=y.item;return ie.default.createElement(ye,null,ie.default.createElement(se.UploadProgressIndicator,{action:function action(){q&&q({newImage:w})},active:w.state!==pe.FileState.UPLOADED,type:w.state===pe.FileState.UPLOADING?pe.ProgressIndicatorTypes.IN_PROGRESS:w.state===pe.FileState.UPLOAD_FAILED?pe.ProgressIndicatorTypes.RETRY:void 0},ie.default.createElement(Re,{resizeMode:"cover",source:{uri:w.file.uri||w.url}})),ie.default.createElement(me,{onPress:function onPress(){E&&E(w.id)},testID:"remove-image-upload-preview"},ie.default.createElement(ve,{source:ge})))},style:{flex:1}})):null}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.SendButton=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(87),se=E(15);function _templateObject2(){var y=(0,ne.default)(["\n height: 15px;\n width: 15px;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n margin-left: 8px;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var le=E(1005),pe=E(1006),ge=se.styled.TouchableOpacity(_templateObject(),(function(y){return y.theme.messageInput.sendButton.css})),he=se.styled.Image(_templateObject2(),(function(y){return y.theme.messageInput.sendButtonIcon.css}));w.SendButton=function SendButton(y){var w=y.disabled,E=void 0!==w&&w,q=y.sendMessage,ne=(0,oe.useMessagesContext)().editing;return ie.default.createElement(ge,{disabled:E,onPress:q,testID:"send-button"},ie.default.createElement(he,{source:ne?le:pe}))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.DateSeparator=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(37),se=E(15);function _templateObject4(){var y=(0,ne.default)(["\n background-color: ",";\n flex: 1;\n height: 0.5px;\n ","\n"]);return _templateObject4=function _templateObject4(){return y},y}function _templateObject3(){var y=(0,ne.default)(["\n font-size: 10px;\n margin-horizontal: 5px;\n opacity: 0.8;\n text-align: center;\n text-transform: uppercase;\n ","\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n font-size: 10px;\n font-weight: 700;\n opacity: 0.8;\n text-transform: uppercase;\n ","\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n flex-direction: row;\n justify-content: center;\n margin-vertical: 20px;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var le=se.styled.View(_templateObject(),(function(y){return y.theme.messageList.dateSeparator.container.css})),pe=se.styled.Text(_templateObject2(),(function(y){return y.theme.messageList.dateSeparator.date.css})),ge=se.styled.Text(_templateObject3(),(function(y){return y.theme.messageList.dateSeparator.dateText.css})),he=se.styled.View(_templateObject4(),(function(y){return y.theme.colors.light}),(function(y){return y.theme.messageList.dateSeparator.line.css}));w.DateSeparator=function DateSeparator(y){var w=y.formatDate,E=y.message,q=(0,oe.useTranslationContext)().tDateTimeParser,ne=w?w(E.date):q(E.date);return ie.default.createElement(le,{testID:"date-separator"},ie.default.createElement(he,null),ie.default.createElement(ge,null,w?ne:ie.default.createElement(pe,null,(0,oe.isDayOrMoment)(ne)?ne.calendar():ne)),ie.default.createElement(he,null))}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageNotification=void 0;var ie=ne(E(16)),oe=q(E(0)),se=ne(E(286)),le=E(37),pe=E(15);function _templateObject2(){var y=(0,ie.default)(["\n color: white;\n font-size: 12px;\n font-weight: 600;\n ","\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ie.default)(["\n align-items: center;\n background-color: ",";\n border-radius: 13px;\n height: 27px;\n justify-content: center;\n transform: translateY(9px);\n width: 112px;\n z-index: 10;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var ge=pe.styled.TouchableOpacity(_templateObject(),(function(y){return y.theme.colors.primary}),(function(y){return y.theme.messageList.messageNotification.container.css})),he=pe.styled.Text(_templateObject2(),(function(y){return y.theme.messageList.messageNotification.text.css}));w.MessageNotification=function MessageNotification(y){var w=y.onPress,E=y.showNotification,q=void 0===E||E,ne=(0,le.useTranslationContext)().t,ie=(0,oe.useRef)(new se.default.Value(0)).current;return(0,oe.useEffect)((function(){se.default.timing(ie,{duration:500,toValue:q?1:0,useNativeDriver:!0}).start()}),[q]),q?oe.default.createElement(se.default.View,{style:{bottom:0,opacity:ie,position:"absolute"},testID:"message-notification"},oe.default.createElement(ge,{onPress:w},oe.default.createElement(he,null,ne("New Messages")))):null}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.insertDates=w.isDateSeparator=void 0;var ne=q(E(39));function _createForOfIteratorHelperLoose(y,w){var E;if("undefined"==typeof Symbol||null==y["function"==typeof Symbol?Symbol.iterator:"@@iterator"]){if(Array.isArray(y)||(E=function _unsupportedIterableToArray(y,w){if(!y)return;if("string"==typeof y)return _arrayLikeToArray(y,w);var E=Object.prototype.toString.call(y).slice(8,-1);"Object"===E&&y.constructor&&(E=y.constructor.name);if("Map"===E||"Set"===E)return Array.from(y);if("Arguments"===E||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return _arrayLikeToArray(y,w)}(y))||w&&y&&"number"==typeof y.length){E&&(y=E);var q=0;return function(){return q>=y.length?{done:!0}:{done:!1,value:y[q++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(E=y["function"==typeof Symbol?Symbol.iterator:"@@iterator"]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);ETe;Te++)if((me||Te in ke)&&(Me=Ae(_e=ke[Te],Te,Se),y))if(w)Fe[Te]=Me;else if(Me)switch(y){case 3:return!0;case 5:return _e;case 6:return Te;case 2:le.call(Fe,_e)}else if(ge)return!1;return he?-1:pe||ge?ge:Fe}};y.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6)}},function(y,w,E){var q=E(78),ne=E(31),ie=E(68),oe=Object.defineProperty,se={},thrower=function(y){throw y};y.exports=function(y,w){if(ie(se,y))return se[y];w||(w={});var E=[][y],le=!!ie(w,"ACCESSORS")&&w.ACCESSORS,pe=ie(w,0)?w[0]:thrower,ge=ie(w,1)?w[1]:void 0;return se[y]=!!E&&!ne((function(){if(le&&!q)return!0;var y={length:-1};le?oe(y,1,{enumerable:!0,get:thrower}):y[1]=1,E.call(y,pe,ge)}))}},function(y,w,E){"use strict";var q=E(43),ne=E(273),ie=E(166),oe=E(285),se=[].join,le=ne!=Object,pe=oe("join",",");q({target:"Array",proto:!0,forced:le||!pe},{join:function join(y){return se.call(ie(this),void 0===y?",":y)}})},function(y,w,E){var q=E(66),ne=E(798),ie=E(438),oe=Math.max,se=Math.min;y.exports=function debounce(y,w,E){var le,pe,ge,he,me,ve,ye=0,Re=!1,we=!1,_e=!0;if("function"!=typeof y)throw new TypeError("Expected a function");function invokeFunc(w){var E=le,q=pe;return le=pe=void 0,ye=w,he=y.apply(q,E)}function leadingEdge(y){return ye=y,me=setTimeout(timerExpired,w),Re?invokeFunc(y):he}function shouldInvoke(y){var E=y-ve;return void 0===ve||E>=w||E<0||we&&y-ye>=ge}function timerExpired(){var y=ne();if(shouldInvoke(y))return trailingEdge(y);me=setTimeout(timerExpired,function remainingWait(y){var E=w-(y-ve);return we?se(E,ge-(y-ye)):E}(y))}function trailingEdge(y){return me=void 0,_e&&le?invokeFunc(y):(le=pe=void 0,he)}function debounced(){var y=ne(),E=shouldInvoke(y);if(le=arguments,pe=this,ve=y,E){if(void 0===me)return leadingEdge(ve);if(we)return clearTimeout(me),me=setTimeout(timerExpired,w),invokeFunc(ve)}return void 0===me&&(me=setTimeout(timerExpired,w)),he}return w=ie(w)||0,q(E)&&(Re=!!E.leading,ge=(we="maxWait"in E)?oe(ie(E.maxWait)||0,w):ge,_e="trailing"in E?!!E.trailing:_e),debounced.cancel=function cancel(){void 0!==me&&clearTimeout(me),ye=0,le=ve=pe=me=void 0},debounced.flush=function flush(){return void 0===me?he:trailingEdge(ne())},debounced}},function(y,w,E){var q=E(480);y.exports=function get(y,w,E){var ne=null==y?void 0:q(y,w);return void 0===ne?E:ne}},function(y,w,E){"use strict";var q=E(27),ne=E(36),ie=E(5),oe=E.n(ie);var se=1,le=function(y){function AnimatedValueXY(w){var E;E=y.call(this)||this;var ne=w||{x:0,y:0};return"number"==typeof ne.x&&"number"==typeof ne.y?(E.x=new q.a(ne.x),E.y=new q.a(ne.y)):(oe()(ne.x instanceof q.a&&ne.y instanceof q.a,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),E.x=ne.x,E.y=ne.y),E._listeners={},E}!function _inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(AnimatedValueXY,y);var w=AnimatedValueXY.prototype;return w.setValue=function setValue(y){this.x.setValue(y.x),this.y.setValue(y.y)},w.setOffset=function setOffset(y){this.x.setOffset(y.x),this.y.setOffset(y.y)},w.flattenOffset=function flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()},w.extractOffset=function extractOffset(){this.x.extractOffset(),this.y.extractOffset()},w.__getValue=function __getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}},w.resetAnimation=function resetAnimation(y){this.x.resetAnimation(),this.y.resetAnimation(),y&&y(this.__getValue())},w.stopAnimation=function stopAnimation(y){this.x.stopAnimation(),this.y.stopAnimation(),y&&y(this.__getValue())},w.addListener=function addListener(y){var w=this,E=String(se++),q=function jointCallback(E){E.value;y(w.__getValue())};return this._listeners[E]={x:this.x.addListener(q),y:this.y.addListener(q)},E},w.removeListener=function removeListener(y){this.x.removeListener(this._listeners[y].x),this.y.removeListener(this._listeners[y].y),delete this._listeners[y]},w.removeAllListeners=function removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}},w.getLayout=function getLayout(){return{left:this.x,top:this.y}},w.getTranslateTransform=function getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]},AnimatedValueXY}(ne.a);w.a=le},function(y,w,E){var q=E(951),ne=E(965)((function(y,w,E){q(y,w,E)}));y.exports=ne},function(y,w,E){"use strict";E(28);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w<+~=|^:(),"'`\s])/g,ge="undefined"!=typeof CSS&&CSS.escape,jss_esm_escape=function(y){return ge?ge(y):y.replace(pe,"\\$1")},he=function(){function BaseStyleRule(y,w,E){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var q=E.sheet,ne=E.Renderer;this.key=y,this.options=E,this.style=w,q?this.renderer=q.renderer:ne&&(this.renderer=new ne)}return BaseStyleRule.prototype.prop=function prop(y,w,E){if(void 0===w)return this.style[y];var q=!!E&&E.force;if(!q&&this.style[y]===w)return this;var ne=w;E&&!1===E.process||(ne=this.options.jss.plugins.onChangeValue(w,y,this));var ie=null==ne||!1===ne,oe=y in this.style;if(ie&&!oe&&!q)return this;var se=ie&&oe;if(se?delete this.style[y]:this.style[y]=ne,this.renderable&&this.renderer)return se?this.renderer.removeProperty(this.renderable,y):this.renderer.setProperty(this.renderable,y,ne),this;var le=this.options.sheet;return le&&le.attached,this},BaseStyleRule}(),me=function(y){function StyleRule(w,E,q){var ne;(ne=y.call(this,w,E,q)||this).selectorText=void 0,ne.id=void 0,ne.renderable=void 0;var ie=q.selector,se=q.scoped,le=q.sheet,pe=q.generateId;return ie?ne.selectorText=ie:!1!==se&&(ne.id=pe(Object(oe.a)(Object(oe.a)(ne)),le),ne.selectorText="."+jss_esm_escape(ne.id)),ne}_inheritsLoose(StyleRule,y);var w=StyleRule.prototype;return w.applyTo=function applyTo(y){var w=this.renderer;if(w){var E=this.toJSON();for(var q in E)w.setProperty(y,q,E[q])}return this},w.toJSON=function toJSON(){var y={};for(var w in this.style){var E=this.style[w];"object"!=typeof E?y[w]=E:Array.isArray(E)&&(y[w]=toCssValue(E))}return y},w.toString=function toString(y){var w=this.options.sheet,E=!!w&&w.options.link?_extends({},y,{allowEmpty:!0}):y;return toCss(this.selectorText,this.style,E)},Object(ie.a)(StyleRule,[{key:"selector",set:function set(y){if(y!==this.selectorText){this.selectorText=y;var w=this.renderer,E=this.renderable;if(E&&w)w.setSelector(E,y)||w.replaceRule(E,this)}},get:function get(){return this.selectorText}}]),StyleRule}(he),ve={onCreateRule:function onCreateRule(y,w,E){return"@"===y[0]||E.parent&&"keyframes"===E.parent.type?null:new me(y,w,E)}},ye={indent:1,children:!0},Re=/@([\w-]+)/,we=function(){function ConditionalRule(y,w,E){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=y,this.query=E.name;var q=y.match(Re);for(var ne in this.at=q?q[1]:"unknown",this.options=E,this.rules=new ot(_extends({},E,{parent:this})),w)this.rules.add(ne,w[ne]);this.rules.process()}var y=ConditionalRule.prototype;return y.getRule=function getRule(y){return this.rules.get(y)},y.indexOf=function indexOf(y){return this.rules.indexOf(y)},y.addRule=function addRule(y,w,E){var q=this.rules.add(y,w,E);return q?(this.options.jss.plugins.onProcessRule(q),q):null},y.toString=function toString(y){if(void 0===y&&(y=ye),null==y.indent&&(y.indent=ye.indent),null==y.children&&(y.children=ye.children),!1===y.children)return this.query+" {}";var w=this.rules.toString(y);return w?this.query+" {\n"+w+"\n}":""},ConditionalRule}(),_e=/@media|@supports\s+/,Me={onCreateRule:function onCreateRule(y,w,E){return _e.test(y)?new we(y,w,E):null}},Se={indent:1,children:!0},ke=/@keyframes\s+([\w-]+)/,Ae=function(){function KeyframesRule(y,w,E){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var q=y.match(ke);q&&q[1]?this.name=q[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=E;var ne=E.scoped,ie=E.sheet,oe=E.generateId;for(var se in this.id=!1===ne?this.name:jss_esm_escape(oe(this,ie)),this.rules=new ot(_extends({},E,{parent:this})),w)this.rules.add(se,w[se],_extends({},E,{parent:this}));this.rules.process()}return KeyframesRule.prototype.toString=function toString(y){if(void 0===y&&(y=Se),null==y.indent&&(y.indent=Se.indent),null==y.children&&(y.children=Se.children),!1===y.children)return this.at+" "+this.id+" {}";var w=this.rules.toString(y);return w&&(w="\n"+w+"\n"),this.at+" "+this.id+" {"+w+"}"},KeyframesRule}(),Oe=/@keyframes\s+/,Te=/\$([\w-]+)/g,je=function findReferencedKeyframe(y,w){return"string"==typeof y?y.replace(Te,(function(y,E){return E in w?w[E]:y})):y},Fe=function replaceRef(y,w,E){var q=y[w],ne=je(q,E);ne!==q&&(y[w]=ne)},Be={onCreateRule:function onCreateRule(y,w,E){return"string"==typeof y&&Oe.test(y)?new Ae(y,w,E):null},onProcessStyle:function onProcessStyle(y,w,E){return"style"===w.type&&E?("animation-name"in y&&Fe(y,"animation-name",E.keyframes),"animation"in y&&Fe(y,"animation",E.keyframes),y):y},onChangeValue:function onChangeValue(y,w,E){var q=E.options.sheet;if(!q)return y;switch(w){case"animation":case"animation-name":return je(y,q.keyframes);default:return y}}},Ve=function(y){function KeyframeRule(){for(var w,E=arguments.length,q=new Array(E),ne=0;ne=this.index)w.push(y);else for(var q=0;qE)return void w.splice(q,0,y)},y.reset=function reset(){this.registry=[]},y.remove=function remove(y){var w=this.registry.indexOf(y);this.registry.splice(w,1)},y.toString=function toString(y){for(var w=void 0===y?{}:y,E=w.attached,q=function _objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,q,ne={},ie=Object.keys(y);for(q=0;q=0||(ne[E]=y[E]);return ne}(w,["attached"]),ne="",ie=0;ie0){var E=function findHigherSheet(y,w){for(var E=0;Ew.index&&q.options.insertionPoint===w.insertionPoint)return q}return null}(w,y);if(E&&E.renderer)return{parent:E.renderer.element.parentNode,node:E.renderer.element};if((E=function findHighestSheet(y,w){for(var E=y.length-1;E>=0;E--){var q=y[E];if(q.attached&&q.options.insertionPoint===w.insertionPoint)return q}return null}(w,y))&&E.renderer)return{parent:E.renderer.element.parentNode,node:E.renderer.element.nextSibling}}var q=y.insertionPoint;if(q&&"string"==typeof q){var ne=function findCommentNode(y){for(var w=ft(),E=0;Eq)&&(E=q);try{if("insertRule"in y)y.insertRule(w,E);else if("appendRule"in y){y.appendRule(w)}}catch(y){return!1}return y.cssRules[E]},yt=function(){function DomRenderer(y){this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,y&&ct.add(y),this.sheet=y;var w=this.sheet?this.sheet.options:{},E=w.media,q=w.meta,ne=w.element;this.element=ne||function createStyle(){var y=document.createElement("style");return y.textContent="\n",y}(),this.element.setAttribute("data-jss",""),E&&this.element.setAttribute("media",E),q&&this.element.setAttribute("data-meta",q);var ie=mt();ie&&this.element.setAttribute("nonce",ie)}var y=DomRenderer.prototype;return y.attach=function attach(){if(!this.element.parentNode&&this.sheet){!function insertStyle(y,w){var E=w.insertionPoint,q=findPrevNode(w);if(!1!==q&&q.parent)q.parent.insertBefore(y,q.node);else if(E&&"number"==typeof E.nodeType){var ne=E,ie=ne.parentNode;ie&&ie.insertBefore(y,ne.nextSibling)}else ft().appendChild(y)}(this.element,this.sheet.options);var y=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&y&&(this.hasInsertedRules=!1,this.deploy())}},y.detach=function detach(){var y=this.element.parentNode;y&&y.removeChild(this.element)},y.deploy=function deploy(){var y=this.sheet;y&&(y.options.link?this.insertRules(y.rules):this.element.textContent="\n"+y.toString()+"\n")},y.insertRules=function insertRules(y,w){for(var E=0;E-1)return registerClass(y,w.split(" "));var q=y.options.parent;if("$"===w[0]){var ne=q.getRule(w.substr(1));return!!ne&&(ne!==y&&(q.classes[y.key]+=" "+q.classes[ne.key],!0))}return q.classes[y.key]+=" "+w,!0}var Gt=function jssCompose(){return{onProcessStyle:function onProcessStyle(y,w){return"composes"in y?(registerClass(w,y.composes),delete y.composes,y):y}}},qt=wt({createGenerateId:function createGenerateId(){var y=0;return function(w){return"rsg--"+w.key+"-"+y++}},plugins:[Et(),Pt({reset:Object.assign({},{animation:"none 0s ease 0s 1 normal none running","backface-visibility":"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor","border-image":"none","border-radius":"0",bottom:"auto","box-shadow":"none",clear:"none",clip:"auto",columns:"auto","column-count":"auto","column-fill":"balance","column-gap":"normal","column-rule":"medium none currentColor","column-span":"1","column-width":"auto",content:"normal","counter-increment":"none","counter-reset":"none",float:"none",height:"auto",hyphens:"none",left:"auto",margin:"0","max-height":"none","max-width":"none","min-height":"0","min-width":"0",opacity:"1",outline:"medium none invert",overflow:"visible","overflow-x":"visible","overflow-y":"visible",padding:"0","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto",perspective:"none","perspective-origin":"50% 50%",position:"static",right:"auto","table-layout":"auto","text-decoration":"none",top:"auto",transform:"none","transform-origin":"50% 50% 0","transform-style":"flat",transition:"none 0s ease 0s","unicode-bidi":"normal","vertical-align":"baseline",width:"auto","z-index":"auto"},{boxSizing:"border-box",color:"inherit",font:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"})}),jt(),Ft(),Ut(),Gt()]});w.a=qt},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return ge}));E(90),E(28),E(115),E(284);var q=E(0),ne=E.n(q),ie=E(2),oe=E.n(ie),se=E(26),le=E(8);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w=0||(ne[E]=y[E]);return ne}(y,["classes","children"]);return ne.a.createElement("a",_extends({},q,{className:Object(se.a)(w.link,q.className)}),E)};pe.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,children:oe.a.node,className:oe.a.string,href:oe.a.string};var ge=Object(le.default)((function styles(y){var w=y.color;return{link:{"&, &:link, &:visited":{fontSize:"inherit",color:w.link,textDecoration:"none"},"&:hover, &:active":{isolate:!1,color:w.linkHover,cursor:"pointer"}}}}))(pe)},function(y,w,E){"use strict";E.d(w,"a",(function(){return se}));var q={},ne={},ie=1,oe=function createKey(y){return"r-"+y},se=function(){function ReactNativePropRegistry(){}return ReactNativePropRegistry.register=function register(y){var w=ie++;var E=oe(w);return ne[E]=y,w},ReactNativePropRegistry.getByID=function getByID(y){if(!y)return q;var w=oe(y),E=ne[w];return E||(console.warn("Invalid style with id `"+y+"`. Skipping ..."),q)},ReactNativePropRegistry}()},function(y,w,E){"use strict";var q=E(224);E(5);w.a=function flattenStyle(y){if(y){if(!Array.isArray(y))return function getStyle(y){return"number"==typeof y?q.a.getByID(y):y}(y);for(var w={},E=0,ne=y.length;E0?1:0},Easing.step1=function step1(y){return y>=1?1:0},Easing.linear=function linear(y){return y},Easing.ease=function ease(y){return q||(q=Easing.bezier(.42,0,1,1)),q(y)},Easing.quad=function quad(y){return y*y},Easing.cubic=function cubic(y){return y*y*y},Easing.poly=function poly(y){return function(w){return Math.pow(w,y)}},Easing.sin=function sin(y){return 1-Math.cos(y*Math.PI/2)},Easing.circle=function circle(y){return 1-Math.sqrt(1-y*y)},Easing.exp=function exp(y){return Math.pow(2,10*(y-1))},Easing.elastic=function elastic(y){void 0===y&&(y=1);var w=y*Math.PI;return function(y){return 1-Math.pow(Math.cos(y*Math.PI/2),3)*Math.cos(y*w)}},Easing.back=function back(y){return void 0===y&&(y=1.70158),function(w){return w*w*((y+1)*w-y)}},Easing.bounce=function bounce(y){if(y<1/2.75)return 7.5625*y*y;if(y<2/2.75){var w=y-1.5/2.75;return 7.5625*w*w+.75}if(y<2.5/2.75){var E=y-2.25/2.75;return 7.5625*E*E+.9375}var q=y-2.625/2.75;return 7.5625*q*q+.984375},Easing.bezier=function bezier(y,w,E,q){return ie()(y,w,E,q)},Easing.in=function _in(y){return y},Easing.out=function out(y){return function(w){return 1-y(1-w)}},Easing.inOut=function inOut(y){return function(w){return w<.5?y(2*w)/2:1-y(2*(1-w))/2}},Easing}();w.a=oe},function(y,w,E){var q=E(0),ne=E(2);function Group(y){var w=q.Children.toArray(y.children).filter(Boolean);if(1===w.length)return w;var E=y.separator,ne=q.isValidElement(E),ie=[w.shift()];return w.forEach((function(y,w){if(ne){var oe="separator-"+(y.key||w);E=q.cloneElement(E,{key:oe})}ie.push(E,y)})),ie}Group.propTypes={children:ne.node,separator:ne.node},Group.defaultProps={separator:" "},y.exports=Group},function(y,w,E){var q=E(820),ne=E(821),ie=E(445),oe=E(822);y.exports=function _toConsumableArray(y){return q(y)||ne(y)||ie(y)||oe()}},function(y,w,E){var q=E(38),ne=E(20),ie="__core-js_shared__",oe=ne[ie]||(ne[ie]={});(y.exports=function(y,w){return oe[y]||(oe[y]=void 0!==w?w:{})})("versions",[]).push({version:q.version,mode:E(136)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(y,w,E){var q=E(73),ne=E(34),ie=E(138);y.exports=function(y){return function(w,E,oe){var se,le=q(w),pe=ne(le.length),ge=ie(oe,pe);if(y&&E!=E){for(;pe>ge;)if((se=le[ge++])!=se)return!0}else for(;pe>ge;ge++)if((y||ge in le)&&le[ge]===E)return y||ge||0;return!y&&-1}}},function(y,w){w.f=Object.getOwnPropertySymbols},function(y,w,E){var q=E(106);y.exports=Array.isArray||function isArray(y){return"Array"==q(y)}},function(y,w,E){var q=E(30)("iterator"),ne=!1;try{var ie=[7][q]();ie.return=function(){ne=!0},Array.from(ie,(function(){throw 2}))}catch(y){}y.exports=function(y,w){if(!w&&!ne)return!1;var E=!1;try{var ie=[7],oe=ie[q]();oe.next=function(){return{done:E=!0}},ie[q]=function(){return oe},y(ie)}catch(y){}return E}},function(y,w,E){"use strict";var q=E(22);y.exports=function(){var y=q(this),w="";return y.global&&(w+="g"),y.ignoreCase&&(w+="i"),y.multiline&&(w+="m"),y.unicode&&(w+="u"),y.sticky&&(w+="y"),w}},function(y,w,E){"use strict";var q=E(187),ne=RegExp.prototype.exec;y.exports=function(y,w){var E=y.exec;if("function"==typeof E){var ie=E.call(y,w);if("object"!=typeof ie)throw new TypeError("RegExp exec method returned something other than an Object or null");return ie}if("RegExp"!==q(y))throw new TypeError("RegExp#exec called on incompatible receiver");return ne.call(y,w)}},function(y,w,E){"use strict";E(419);var q=E(63),ne=E(72),ie=E(21),oe=E(107),se=E(30),le=E(327),pe=se("species"),ge=!ie((function(){var y=/./;return y.exec=function(){var y=[];return y.groups={a:"7"},y},"7"!=="".replace(y,"$")})),he=function(){var y=/(?:)/,w=y.exec;y.exec=function(){return w.apply(this,arguments)};var E="ab".split(y);return 2===E.length&&"a"===E[0]&&"b"===E[1]}();y.exports=function(y,w,E){var me=se(y),ve=!ie((function(){var w={};return w[me]=function(){return 7},7!=""[y](w)})),ye=ve?!ie((function(){var w=!1,E=/a/;return E.exec=function(){return w=!0,null},"split"===y&&(E.constructor={},E.constructor[pe]=function(){return E}),E[me](""),!w})):void 0;if(!ve||!ye||"replace"===y&&!ge||"split"===y&&!he){var Re=/./[me],we=E(oe,me,""[y],(function maybeCallNative(y,w,E,q,ne){return w.exec===le?ve&&!ne?{done:!0,value:Re.call(w,E,q)}:{done:!0,value:y.call(E,w,q)}:{done:!1}})),_e=we[0],Me=we[1];q(String.prototype,y,_e),ne(RegExp.prototype,me,2==w?function(y,w){return Me.call(y,this,w)}:function(y){return Me.call(y,this)})}}},function(y,w,E){var q=E(93),ne=E(414),ie=E(322),oe=E(22),se=E(34),le=E(324),pe={},ge={};(w=y.exports=function(y,w,E,he,me){var ve,ye,Re,we,_e=me?function(){return y}:le(y),Me=q(E,he,w?2:1),Se=0;if("function"!=typeof _e)throw TypeError(y+" is not iterable!");if(ie(_e)){for(ve=se(y.length);ve>Se;Se++)if((we=w?Me(oe(ye=y[Se])[0],ye[1]):Me(y[Se]))===pe||we===ge)return we}else for(Re=_e.call(y);!(ye=Re.next()).done;)if((we=ne(Re,Me,ye.value,w))===pe||we===ge)return we}).BREAK=pe,w.RETURN=ge},function(y,w,E){var q=E(20).navigator;y.exports=q&&q.userAgent||""},function(y,w,E){"use strict";var q=E(20),ne=E(6),ie=E(63),oe=E(159),se=E(121),le=E(238),pe=E(158),ge=E(23),he=E(21),me=E(234),ve=E(154),ye=E(313);y.exports=function(y,w,E,Re,we,_e){var Me=q[y],Se=Me,ke=we?"set":"add",Ae=Se&&Se.prototype,Oe={},fixMethod=function(y){var w=Ae[y];ie(Ae,y,"delete"==y?function(y){return!(_e&&!ge(y))&&w.call(this,0===y?0:y)}:"has"==y?function has(y){return!(_e&&!ge(y))&&w.call(this,0===y?0:y)}:"get"==y?function get(y){return _e&&!ge(y)?void 0:w.call(this,0===y?0:y)}:"add"==y?function add(y){return w.call(this,0===y?0:y),this}:function set(y,E){return w.call(this,0===y?0:y,E),this})};if("function"==typeof Se&&(_e||Ae.forEach&&!he((function(){(new Se).entries().next()})))){var Te=new Se,je=Te[ke](_e?{}:-0,1)!=Te,Fe=he((function(){Te.has(1)})),Be=me((function(y){new Se(y)})),Ve=!_e&&he((function(){for(var y=new Se,w=5;w--;)y[ke](w,w);return!y.has(-0)}));Be||((Se=w((function(w,E){pe(w,Se,y);var q=ye(new Me,w,Se);return null!=E&&le(E,we,q[ke],q),q}))).prototype=Ae,Ae.constructor=Se),(Fe||Ve)&&(fixMethod("delete"),fixMethod("has"),we&&fixMethod("get")),(Ve||je)&&fixMethod(ke),_e&&Ae.clear&&delete Ae.clear}else Se=Re.getConstructor(w,y,we,ke),oe(Se.prototype,E),se.NEED=!0;return ve(Se,y),Oe[y]=Se,ne(ne.G+ne.W+ne.F*(Se!=Me),Oe),_e||Re.setStrong(Se,y,we),Se}},function(y,w,E){for(var q,ne=E(20),ie=E(72),oe=E(135),se=oe("typed_array"),le=oe("view"),pe=!(!ne.ArrayBuffer||!ne.DataView),ge=pe,he=0,me="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");he<9;)(q=ne[me[he++]])?(ie(q.prototype,se,!0),ie(q.prototype,le,!0)):ge=!1;y.exports={ABV:pe,CONSTR:ge,TYPED:se,VIEW:le}},function(y,w,E){"use strict";var q=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function toObject(y){if(null==y)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(y)}y.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var y=new String("abc");if(y[5]="de","5"===Object.getOwnPropertyNames(y)[0])return!1;for(var w={},E=0;E<10;E++)w["_"+String.fromCharCode(E)]=E;if("0123456789"!==Object.getOwnPropertyNames(w).map((function(y){return w[y]})).join(""))return!1;var q={};return"abcdefghijklmnopqrst".split("").forEach((function(y){q[y]=y})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},q)).join("")}catch(y){return!1}}()?Object.assign:function(y,w){for(var E,oe,se=toObject(y),le=1;le0?"middle":ie===le.length-1?"bottom":"single";return ne.default.createElement(oe.Attachment,{actionHandler:pe,alignment:w,attachment:y,AttachmentActions:E,AttachmentFileIcon:q,FileAttachment:se,groupStyle:he,key:ge+"-"+ie})})))}},function(y,w){Object.defineProperty(w,"__esModule",{value:!0}),w.generateRandomId=void 0;w.generateRandomId=function generateRandomId(){return E()+E()+"-"+E()+"-"+E()+"-"+E()+"-"+E()+E()+E()};var E=function S4(){return(65536*(1+Math.random())|0).toString(16).substring(1)}},function(y,w,E){var q=E(864),ne=E(865),ie=E(866),oe=E(867),se=E(868);function ListCache(y){var w=-1,E=null==y?0:y.length;for(this.clear();++w-1&&y%1==0&&y0&&y.ReactionList?["bottom"]:ne});return oe.default.createElement(me,{alignment:Fe,hasMarginBottom:Ve,isVeryLastMessage:Be,testID:"message-simple-wrapper"},"right"===Fe?oe.default.createElement(oe.default.Fragment,null,oe.default.createElement(we,Ne),oe.default.createElement(ye,Ne),Oe&&oe.default.createElement(Me,Ne)):oe.default.createElement(oe.default.Fragment,null,oe.default.createElement(ye,Ne),oe.default.createElement(we,Ne)))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageAvatar=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(100),se=E(15);function _templateObject2(){var y=(0,ne.default)(["\n height: 28px;\n width: 32px;\n ","\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n margin-left: ","px;\n margin-right: ","px;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var le=se.styled.View(_templateObject(),(function(y){return"right"===y.alignment?8:0}),(function(y){return"left"===y.alignment?8:0}),(function(y){return y.theme.message.avatarWrapper.container.css})),pe=se.styled.View(_templateObject2(),(function(y){return y.theme.message.avatarWrapper.spacer.css}));w.MessageAvatar=function MessageAvatar(y){var w,E,q,ne=y.alignment,se=y.groupStyles,ge=y.message,he=y.showAvatar,me="boolean"==typeof he?he:"single"===se[0]||"bottom"===se[0];return ie.default.createElement(le,{alignment:ne,testID:"message-avatar"},me?ie.default.createElement(oe.Avatar,{image:null==(w=ge.user)?void 0:w.image,name:(null==(E=ge.user)?void 0:E.name)||(null==(q=ge.user)?void 0:q.id)}):ie.default.createElement(pe,{testID:"spacer"}))}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageContent=void 0;var ie=ne(E(25)),oe=ne(E(86)),se=ne(E(16)),le=q(E(0)),pe=E(366),ge=E(263),he=E(264),me=E(122),ve=E(193),ye=E(246),Re=E(161),we=E(204),_e=E(369),Me=E(75),Se=E(192),ke=E(87),Ae=E(165),Oe=E(37),Te=E(15),je=E(58);function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _templateObject7(){var y=(0,se.default)(["\n color: ",";\n font-size: 11px;\n text-align: ",";\n ",";\n"]);return _templateObject7=function _templateObject7(){return y},y}function _templateObject6(){var y=(0,se.default)(["\n margin-top: 2px;\n ",";\n"]);return _templateObject6=function _templateObject6(){return y},y}function _templateObject5(){var y=(0,se.default)(["\n color: #a4a4a4;\n margin-right: 5px;\n"]);return _templateObject5=function _templateObject5(){return y},y}function _templateObject4(){var y=(0,se.default)(["\n color: #a4a4a4;\n font-size: 15px;\n line-height: 20px;\n ",";\n"]);return _templateObject4=function _templateObject4(){return y},y}function _templateObject3(){var y=(0,se.default)(["\n align-items: ",";\n justify-content: ",";\n max-width: 250px;\n padding: 5px;\n ",";\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,se.default)(["\n align-items: ",";\n ","\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,se.default)(["\n align-items: ",";\n background-color: ",";\n border-bottom-left-radius: ","px;\n border-bottom-right-radius: ","px;\n border-top-left-radius: ","px;\n border-top-right-radius: ","px;\n justify-content: ",";\n max-width: 250px;\n padding: ","px;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var Fe=Te.styled.TouchableOpacity(_templateObject(),(function(y){return"left"===y.alignment?"flex-start":"flex-end"}),(function(y){var w=y.error,E=y.theme;return w?E.message.content.errorContainer.backgroundColor:E.colors.transparent}),(function(y){var w=y.alignment,E=y.theme;return"left"===w?E.message.content.container.borderRadiusS:E.message.content.container.borderRadiusL}),(function(y){var w=y.alignment,E=y.theme;return"left"===w?E.message.content.container.borderRadiusL:E.message.content.container.borderRadiusS}),(function(y){return y.theme.message.content.container.borderRadiusL}),(function(y){return y.theme.message.content.container.borderRadiusL}),(function(y){return"left"===y.alignment?"flex-start":"flex-end"}),(function(y){return y.error?5:0}),(function(y){return y.theme.message.content.container.css})),Be=Te.styled.View(_templateObject2(),(function(y){return"left"===y.alignment?"flex-start":"flex-end"}),(function(y){return y.theme.message.content.containerInner.css})),Ve=Te.styled.View(_templateObject3(),(function(y){return"left"===y.alignment?"flex-start":"flex-end"}),(function(y){return"left"===y.alignment?"flex-start":"flex-end"}),(function(y){return y.theme.message.content.deletedContainer.css})),Ne=Te.styled.Text(_templateObject4(),(function(y){return y.theme.message.content.deletedText.css})),Ue=Te.styled.Text(_templateObject5()),We=Te.styled.View(_templateObject6(),(function(y){return y.theme.message.content.metaContainer.css})),$e=Te.styled.Text(_templateObject7(),(function(y){return y.theme.colors.textGrey}),(function(y){return y.alignment}),(function(y){return y.theme.message.content.metaText.css}));w.MessageContent=function MessageContent(y){var w=y.ActionSheet,E=void 0===w?pe.MessageActionSheet:w,q=y.Attachment,ne=y.AttachmentActions,se=y.AttachmentFileIcon,Te=y.Card,Ye=y.CardCover,Xe=y.CardFooter,et=y.CardHeader,tt=y.FileAttachment,nt=void 0===tt?ve.FileAttachment:tt,rt=y.FileAttachmentGroup,it=void 0===rt?ye.FileAttachmentGroup:rt,ot=y.Gallery,st=void 0===ot?Re.Gallery:ot,dt=y.Giphy,ct=y.MessageFooter,ut=y.MessageHeader,lt=y.MessageReplies,pt=void 0===lt?ge.MessageReplies:lt,gt=y.MessageText,ht=y.ReactionList,ft=void 0===ht?we.ReactionList:ht,mt=y.UrlPreview,vt=y.actionSheetStyles,yt=y.actionSheetVisible,Rt=y.additionalTouchableProps,bt=y.alignment,xt=y.canDeleteMessage,wt=y.canEditMessage,Ct=y.customMessageContent,_t=y.dismissReactionPicker,Mt=y.enableLongPress,St=void 0===Mt||Mt,kt=y.formatDate,Et=y.getTotalReactionCount,At=y.groupStyles,Dt=y.handleAction,Ot=y.handleDelete,Pt=y.handleEdit,It=y.handleReaction,Tt=y.hideReactionCount,Lt=void 0!==Tt&&Tt,jt=y.hideReactionOwners,zt=void 0!==jt&&jt,Ft=y.isMyMessage,Bt=y.markdownRules,Vt=y.message,Ht=y.messageActions,Nt=y.onLongPress,Ut=y.onPress,Gt=y.onThreadSelect,qt=y.openReactionPicker,Wt=y.reactionPickerVisible,$t=y.reactionsEnabled,Kt=void 0===$t||$t,Yt=y.repliesEnabled,Xt=void 0===Yt||Yt,Jt=y.setActionSheetVisible,Zt=y.showActionSheet,Qt=y.supportedReactions,en=void 0===Qt?je.emojiData:Qt,tn=y.threadList,nn=y.textBeforeAttachments,an=void 0!==nn&&nn,rn=y.disabled,sn=(0,Me.useChannelContext)().disabled,dn=rn||sn,cn=(0,ke.useMessagesContext)(),un=cn.Attachment,ln=cn.Message,pn=cn.retrySendMessage,gn=(0,Ae.useThreadContext)().openThread,hn=(0,Oe.useTranslationContext)(),mn=hn.t,vn=hn.tDateTimeParser,yn=q||un||me.Attachment,Rn=(0,le.useRef)(),bn=function onOpenThread(){Gt?Gt(Vt):gn&&gn(Vt)};(0,le.useEffect)((function(){yt&&Rn.current&&setTimeout((function(){var y;null==(y=Rn.current)||null==y.show||y.show()}),Ct?10:0)}),[yt]);var xn="single"===At[0]||"bottom"===At[0],wn=Kt&&Vt.latest_reactions&&Vt.latest_reactions.length>0,Cn=Array.isArray(Vt.attachments)&&Vt.attachments.filter((function(y){return"image"===y.type&&!y.title_link&&!y.og_scrape_url}))||[],_n=Array.isArray(Vt.attachments)&&Vt.attachments.filter((function(y){return"file"===y.type}))||[];if(Vt.deleted_at)return le.default.createElement(Ve,{alignment:bt},le.default.createElement(Ne,{testID:"message-deleted"},mn("This message was deleted ...")));var Mn=function _objectSpread(y){for(var w=1;w0&&le.default.createElement(it,{alignment:bt,AttachmentActions:ne,AttachmentFileIcon:se,FileAttachment:nt,files:_n,handleAction:Dt,messageId:Vt.id}),Cn.length>0&&le.default.createElement(st,{alignment:bt,images:Cn}))};return le.default.createElement(Se.MessageContentProvider,{value:Sn},le.default.createElement(Fe,(0,ie.default)({},Mn,{error:"error"===Vt.type||"failed"===Vt.status,testID:"message-content-wrapper"}),"error"===Vt.type&&le.default.createElement(Ue,{testID:"message-error"},mn("ERROR · UNSENT")),"failed"===Vt.status&&le.default.createElement(Ue,{testID:"message-failed"},mn("Message failed - try again")),Kt&&ft&&le.default.createElement(_e.ReactionPickerWrapper,{alignment:bt,customMessageContent:Ct,dismissReactionPicker:_t,handleReaction:It,hideReactionCount:Lt,hideReactionOwners:zt,message:Vt,offset:{left:10,right:10,top:0},openReactionPicker:qt,reactionPickerVisible:Wt,supportedReactions:en},Vt.latest_reactions&&Vt.latest_reactions.length>0&&le.default.createElement(ft,{alignment:bt,getTotalReactionCount:Et,latestReactions:Vt.latest_reactions,supportedReactions:en,visible:!Wt})),ut&&le.default.createElement(ut,(0,ie.default)({testID:"message-header"},y)),le.default.createElement(Be,{alignment:bt,collapsable:!1},!an&&kn(),le.default.createElement(he.MessageTextContainer,{alignment:bt,disabled:"failed"===Vt.status||"error"===Vt.type,groupStyles:At,handleReaction:It,isMyMessage:Ft,markdownRules:Bt,message:Vt,Message:ln,MessageText:gt,openThread:bn}),an&&kn()),Xt&&le.default.createElement(pt,{alignment:bt,isThreadList:!!tn,message:Vt,openThread:bn}),ct&&le.default.createElement(ct,(0,ie.default)({testID:"message-footer"},y,{supportedReactions:en})),!ct&&xn&&le.default.createElement(We,{testID:"show-time"},le.default.createElement($e,{alignment:bt},function getDateText(y){return Vt.created_at?y?"string"==typeof Vt.created_at?y(Vt.created_at):y(Vt.created_at.asMutable()):(w="string"==typeof Vt.created_at?vn(Vt.created_at):vn(Vt.created_at.asMutable()),(0,Oe.isDayOrMoment)(w)?w.format("LT"):Vt.created_at):"";var w}(kt))),yt&&St&&le.default.createElement(E,{actionSheetStyles:vt,canDeleteMessage:xt,canEditMessage:wt,handleDelete:Ot,handleEdit:Pt,handleReaction:It,message:Vt,messageActions:Ht,openReactionPicker:qt,openThread:bn,reactionsEnabled:Kt,ref:Rn,repliesEnabled:Xt,setActionSheetVisible:Jt,supportedReactions:je.emojiData,threadList:tn})))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageReplies=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(37),se=E(15);function _templateObject3(){var y=(0,ne.default)(["\n color: ",";\n font-size: 12px;\n font-weight: 700;\n ","\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n transform: ",";\n ","\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n flex-direction: row;\n padding: 5px;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var le=E(980),pe=se.styled.TouchableOpacity(_templateObject(),(function(y){return y.theme.message.replies.container.css})),ge=se.styled.Image(_templateObject2(),(function(y){return"left"===y.alignment?"rotateY(0deg)":"rotateY(180deg)"}),(function(y){return y.theme.message.replies.image.css})),he=se.styled.Text(_templateObject3(),(function(y){return y.theme.colors.primary}),(function(y){return y.theme.message.replies.messageRepliesText.css}));w.MessageReplies=function MessageReplies(y){var w=y.alignment,E=y.isThreadList,q=y.message,ne=y.openThread,se=(0,oe.useTranslationContext)().t;return E||!q.reply_count?null:ie.default.createElement(pe,{onPress:ne,testID:"message-replies"},"left"===w&&ie.default.createElement(ge,{alignment:w,source:le,testID:"message-replies-left"}),ie.default.createElement(he,null,1===q.reply_count?se("1 reply"):se("{{ replyCount }} replies",{replyCount:q.reply_count})),"right"===w&&ie.default.createElement(ge,{alignment:w,source:le,testID:"message-replies-right"}))}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageTextContainer=void 0;var ie=ne(E(25)),oe=ne(E(16)),se=q(E(0)),le=E(981),pe=E(500),ge=E(15);function _templateObject(){var y=(0,oe.default)(["\n align-self: ",";\n background-color: ",";\n border-bottom-left-radius: ","px;\n border-bottom-right-radius: ","px;\n border-color: ",";\n border-top-left-radius: ","px;\n border-top-right-radius: ","px;\n border-width: ","px;\n margin-top: 2px;\n padding-horizontal: 8px;\n padding-vertical: 5px;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var he=ge.styled.View(_templateObject(),(function(y){return"left"===y.alignment?"flex-start":"flex-end"}),(function(y){var w=y.alignment,E=y.status,q=y.theme,ne=y.type;return"left"===w||"error"===ne||"failed"===E?q.colors.transparent:q.colors.light}),(function(y){var w=y.groupStyle,E=y.theme;return-1!==w.indexOf("left")?E.message.content.textContainer.borderRadiusS:E.message.content.textContainer.borderRadiusL}),(function(y){var w=y.groupStyle,E=y.theme;return-1!==w.indexOf("right")?E.message.content.textContainer.borderRadiusS:E.message.content.textContainer.borderRadiusL}),(function(y){var w=y.alignment,E=y.theme;return"left"===w?E.message.content.textContainer.leftBorderColor:E.message.content.textContainer.rightBorderColor}),(function(y){var w=y.groupStyle,E=y.theme;return"leftBottom"===w||"leftMiddle"===w?E.message.content.textContainer.borderRadiusS:E.message.content.textContainer.borderRadiusL}),(function(y){var w=y.groupStyle,E=y.theme;return"rightBottom"===w||"rightMiddle"===w?E.message.content.textContainer.borderRadiusS:E.message.content.textContainer.borderRadiusL}),(function(y){var w=y.alignment,E=y.theme;return"left"===w?E.message.content.textContainer.leftBorderWidth:E.message.content.textContainer.rightBorderWidth}),(function(y){return y.theme.message.content.textContainer.css}));w.MessageTextContainer=function MessageTextContainer(y){var w=y.alignment,E=y.groupStyles,q=void 0===E?["bottom"]:E,ne=y.markdownRules,oe=void 0===ne?{}:ne,me=y.message,ve=y.MessageText,ye=y.onLink,Re=(0,se.useContext)(ge.ThemeContext);if(!me.text)return null;var we=w+(0,le.capitalize)(Array.isArray(me.attachments)&&me.attachments.length>0?"bottom":q[0]),_e=Re?Re.message.content.markdown:{};return se.default.createElement(he,{alignment:w,groupStyle:we,status:me.status,testID:"message-text-container",type:me.type},ve?se.default.createElement(ve,(0,ie.default)({},y,{renderText:pe.renderText,theme:Re})):(0,pe.renderText)({markdownRules:oe,markdownStyles:_e,message:me,onLink:ye}))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageStatus=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(100),se=E(29),le=E(15);function _templateObject8(){var y=(0,ne.default)(["\n flex-direction: row;\n justify-content: center;\n width: 20px;\n"]);return _templateObject8=function _templateObject8(){return y},y}function _templateObject7(){var y=(0,ne.default)(["\n height: 10px;\n"]);return _templateObject7=function _templateObject7(){return y},y}function _templateObject6(){var y=(0,ne.default)(["\n height: 10px;\n width: 10px;\n ",";\n"]);return _templateObject6=function _templateObject6(){return y},y}function _templateObject5(){var y=(0,ne.default)(["\n align-items: center;\n ",";\n"]);return _templateObject5=function _templateObject5(){return y},y}function _templateObject4(){var y=(0,ne.default)(["\n align-items: center;\n flex-direction: row;\n ",";\n"]);return _templateObject4=function _templateObject4(){return y},y}function _templateObject3(){var y=(0,ne.default)(["\n align-items: center;\n height: 20px;\n ",";\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n align-items: center;\n background-color: ",";\n border-radius: 16px;\n height: 16px;\n justify-content: center;\n padding: 6px;\n width: 16px;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n height: 6px;\n width: 8px;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var pe=E(994),ge=E(995),he=le.styled.Image(_templateObject(),(function(y){return y.theme.message.status.checkMark.css})),me=le.styled.View(_templateObject2(),(function(y){return y.theme.colors.primary}),(function(y){return y.theme.message.status.deliveredCircle.css})),ve=le.styled.View(_templateObject3(),(function(y){return y.theme.message.status.deliveredContainer.css})),ye=le.styled.View(_templateObject4(),(function(y){return y.theme.message.status.readByContainer.css})),Re=le.styled.View(_templateObject5(),(function(y){return y.theme.message.status.sendingContainer.css})),we=le.styled.Image(_templateObject6(),(function(y){return y.theme.message.status.sendingImage.css})),_e=le.styled.View(_templateObject7()),Me=le.styled.View(_templateObject8());w.MessageStatus=function MessageStatus(y){var w,E=y.lastReceivedId,q=y.message,ne=y.readBy,le=void 0===ne?[]:ne,Se=y.threadList,ke=(0,se.useChatContext)().client,Ae=1===le.length&&le[0].id===(null==(w=ke.user)?void 0:w.id);if("sending"===q.status)return ie.default.createElement(Me,null,ie.default.createElement(Re,{testID:"sending-container"},ie.default.createElement(we,{source:ge})));if(0!==le.length&&!Se&&!Ae){var Oe=le.filter((function(y){var w;return y.id!==(null==(w=ke.user)?void 0:w.id)}))[0];return ie.default.createElement(Me,null,ie.default.createElement(ye,{testID:"read-by-container"},ie.default.createElement(oe.Avatar,{image:Oe.image,name:Oe.name||Oe.id,size:16})))}return"received"!==q.status||"ephemeral"===q.type||q.id!==E||Se?ie.default.createElement(Me,null,ie.default.createElement(_e,{testID:"spacer"})):ie.default.createElement(Me,null,ie.default.createElement(ve,{testID:"delivered-container"},ie.default.createElement(me,null,ie.default.createElement(he,{source:pe}))))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.ActionSheetAttachment=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(499),se=E(267),le=E(37),pe=E(15);function _templateObject4(){var y=(0,ne.default)(["\n font-weight: bold;\n ",";\n"]);return _templateObject4=function _templateObject4(){return y},y}function _templateObject3(){var y=(0,ne.default)(["\n align-items: center;\n flex-direction: row;\n height: 100%;\n justify-content: space-between;\n padding-horizontal: 20px;\n width: 100%;\n ",";\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n flex-direction: row;\n justify-content: flex-start;\n padding-left: 20px;\n width: 100%;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var ge=E(996),he=E(507),me=E(997),ve=pe.styled.View(_templateObject(),(function(y){return y.theme.messageInput.actionSheet.buttonContainer.css})),ye=pe.styled.Text(_templateObject2(),(function(y){return y.theme.messageInput.actionSheet.buttonText.css})),Re=pe.styled.View(_templateObject3(),(function(y){return y.theme.messageInput.actionSheet.titleContainer.css})),we=pe.styled.Text(_templateObject4(),(function(y){return y.theme.messageInput.actionSheet.titleText.css})),_e=function AttachmentActionSheetItem(y){var w=y.icon,E=y.key,q=y.testID,ne=y.text;return ie.default.createElement(ve,{key:E,testID:q},ie.default.createElement(se.IconSquare,{icon:w}),ie.default.createElement(ye,null,ne))};w.ActionSheetAttachment=function ActionSheetAttachment(y){var w=y.closeAttachActionSheet,E=y.pickFile,q=y.pickImage,ne=y.setAttachActionSheetRef,pe=y.styles,ve=(0,le.useTranslationContext)().t;return ie.default.createElement(oe.ActionSheetCustom,{onPress:function onPress(y){setTimeout((function(){switch(y){case 0:q();break;case 1:E()}}),201)},options:[ie.default.createElement(_e,{icon:ge,key:"upload-photo-item",testID:"upload-photo-item",text:ve("Upload a photo")}),ie.default.createElement(_e,{icon:me,key:"upload-file-item",testID:"upload-file-item",text:ve("Upload a file")})],ref:ne,styles:pe,title:ie.default.createElement(Re,null,ie.default.createElement(we,null,ve("Add a file")),ie.default.createElement(se.IconSquare,{icon:he,onPress:w}))})}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.IconSquare=void 0;var ne=q(E(16)),ie=q(E(0)),oe=q(E(101)),se=E(15);function _templateObject2(){var y=(0,ne.default)(["\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 5px;\n padding: 5px;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 5px;\n padding: 5px;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var le=se.styled.TouchableOpacity(_templateObject(),(function(y){return y.theme.iconSquare.container.css})),pe=se.styled.View(_templateObject2(),(function(y){return y.theme.iconSquare.container.css}));w.IconSquare=function IconSquare(y){var w=y.icon,E=y.onPress;return E?ie.default.createElement(le,{onPress:E,testID:"icon-square"},ie.default.createElement(oe.default,{source:w,style:{height:15,width:15}})):ie.default.createElement(pe,{testID:"icon-square"},ie.default.createElement(oe.default,{source:w,style:{height:15,width:15}}))}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageList=void 0;var ie=ne(E(25)),oe=ne(E(39)),se=ne(E(16)),le=q(E(0)),pe=ne(E(117)),ge=ne(E(127)),he=ne(E(9)),me=E(210),ve=E(211),ye=E(269),Re=E(270),we=E(271),_e=E(1009),Me=E(1012),Se=E(212),ke=E(77),Ae=E(75),Oe=E(29),Te=E(87),je=E(165),Fe=E(15),Be=E(1013),Ve=E(247);function _templateObject(){var y=(0,se.default)(["\n flex: 1;\n padding-horizontal: 10px;\n width: 100%;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var Ne=(0,Fe.styled)(pe.default)(_templateObject(),(function(y){return y.theme.messageList.listContainer.css})),Ue=function keyExtractor(y){return(0,Se.isDateSeparator)(y)?y.date&&"string"!=typeof y.date?y.date.toISOString():(0,Ve.generateRandomId)():y.id||(y.created_at?"string"==typeof y.created_at?y.created_at:y.created_at.toISOString():(0,Ve.generateRandomId)())};w.MessageList=function MessageList(y){var w,E=y.actionSheetStyles,q=y.additionalFlatListProps,ne=y.AttachmentFileIcon,se=y.DateSeparator,pe=void 0===se?me.DateSeparator:se,Fe=y.disableWhileEditing,Ve=void 0===Fe||Fe,We=y.dismissKeyboardOnMessageTouch,$e=void 0===We||We,Ye=y.FooterComponent,Xe=y.HeaderComponent,et=y.inverted,tt=void 0===et||et,nt=y.Message,rt=y.MessageNotification,it=void 0===rt?ve.MessageNotification:rt,ot=y.MessageSystem,st=void 0===ot?ye.MessageSystem:ot,dt=y.messageActions,ct=y.noGroupByUser,ut=y.onListScroll,lt=y.onThreadSelect,pt=y.setFlatListRef,gt=y.threadList,ht=y.NetworkDownIndicator,ft=void 0===ht?Be.NetworkDownIndicator:ht,mt=y.TypingIndicator,vt=void 0===mt?Re.TypingIndicator:mt,yt=(0,Ae.useChannelContext)(),Rt=yt.channel,bt=yt.disabled,xt=yt.EmptyStateIndicator,wt=yt.loading,Ct=yt.LoadingIndicator,_t=yt.markRead,Mt=(0,Oe.useChatContext)(),St=Mt.client,kt=Mt.isOnline,Et=(0,Te.useMessagesContext)(),At=Et.clearEditingState,Dt=Et.editing,Ot=Et.loadMore,Pt=Et.Message,It=(0,je.useThreadContext)().loadMoreThread,Tt=(0,_e.useMessageList)({inverted:tt,noGroupByUser:ct,threadList:gt}),Lt=(0,le.useRef)(null),jt=(0,le.useRef)(0),zt=(0,le.useState)(null==(w=(0,Me.getLastReceivedMessage)(Tt))?void 0:w.id),Ft=(0,oe.default)(zt,2),Bt=Ft[0],Vt=Ft[1],Ht=(0,le.useState)(!1),Nt=(0,oe.default)(Ht,2),Ut=Nt[0],Gt=Nt[1],qt=(0,le.useState)(!1),Wt=(0,oe.default)(qt,2),$t=Wt[0],Kt=Wt[1];(0,le.useEffect)((function(){Kt(!!wt)}),[wt]),(0,le.useEffect)((function(){var y=(0,Me.getLastReceivedMessage)(Tt);if(y){var w=y.id;if(w){var E,q=Bt!==w,ne=jt.current>0,ie=y&&St&&(null==(E=y.user)?void 0:E.id)===St.userID,oe=q&&(ie||!ne);oe||!q||Ut||Gt(!0),oe&&Lt.current&&(Lt.current.scrollToIndex({index:0}),Gt(!1)),q&&Vt(w)}}}),[Tt]);var Yt=gt?It:Ot,Xt=nt||Pt;return 0!==Tt.length||gt?le.default.createElement(le.default.Fragment,null,le.default.createElement(he.default,{collapsable:!1,style:{alignItems:"center",flex:1,width:"100%"}},le.default.createElement(Ne,(0,ie.default)({data:Tt,extraData:bt,inverted:tt,keyboardShouldPersistTaps:"always",keyExtractor:Ue,ListFooterComponent:Ye,ListHeaderComponent:Xe,maintainVisibleContentPosition:{autoscrollToTopThreshold:10,minIndexForVisible:1},onEndReached:Yt,onScroll:function handleScroll(y){var w=y.nativeEvent.contentOffset.y,E=w<=0;!gt&&E&&Rt&&Rt.countUnread()>0&&_t(),jt.current=w,E&&Gt(!1),ut&&ut(y)},ref:function ref(y){Lt.current=y,pt&&pt(y)},renderItem:function renderItem(y){return function renderItem(y){return(0,Se.isDateSeparator)(y)?le.default.createElement(pe,{message:y}):"system"===y.type?le.default.createElement(st,{message:y}):"message.read"!==y.type?le.default.createElement(ke.Message,{actionSheetStyles:E,AttachmentFileIcon:ne,dismissKeyboardOnMessageTouch:$e,groupStyles:y.groupStyles,lastReceivedId:Bt===y.id?Bt:void 0,Message:Xt,message:y,messageActions:dt,onThreadSelect:lt,readBy:y.readBy||[],threadList:gt}):null}(y.item)},testID:"message-flat-list"},q)),vt&&le.default.createElement(we.TypingIndicatorContainer,null,le.default.createElement(vt,null)),Ut&&le.default.createElement(it,{onPress:function goToNewMessages(){Lt.current&&(Lt.current.scrollToIndex({index:0}),Gt(!1),gt||_t())},showNotification:Ut}),!kt&&le.default.createElement(ft,null)),Dt&&Ve&&le.default.createElement(ge.default,{onPress:At,style:{backgroundColor:"black",height:"100%",opacity:.4,position:"absolute",width:"100%",zIndex:100}})):$t?le.default.createElement(Ct,{listType:"message"}):le.default.createElement(he.default,{style:{flex:1},testID:"empty-state"},le.default.createElement(xt,{listType:"message"}))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageSystem=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(37),se=E(15);function _templateObject5(){var y=(0,ne.default)(["\n flex: 3;\n margin-top: 10px;\n ","\n"]);return _templateObject5=function _templateObject5(){return y},y}function _templateObject4(){var y=(0,ne.default)(["\n color: rgba(0, 0, 0, 0.5);\n font-size: 10px;\n font-weight: bold;\n text-align: center;\n ","\n"]);return _templateObject4=function _templateObject4(){return y},y}function _templateObject3(){var y=(0,ne.default)(["\n background-color: ",";\n flex: 1;\n height: 0.5px;\n ","\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n color: rgba(0, 0, 0, 0.5);\n font-size: 10px;\n font-weight: bold;\n text-align: center;\n ","\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n flex-direction: row;\n justify-content: center;\n margin-bottom: 10px;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var le=se.styled.View(_templateObject(),(function(y){return y.theme.messageList.messageSystem.container.css})),pe=se.styled.Text(_templateObject2(),(function(y){return y.theme.messageList.messageSystem.dateText.css})),ge=se.styled.View(_templateObject3(),(function(y){return y.theme.colors.light}),(function(y){return y.theme.messageList.messageSystem.line.css})),he=se.styled.Text(_templateObject4(),(function(y){return y.theme.messageList.messageSystem.text.css})),me=se.styled.View(_templateObject5(),(function(y){return y.theme.messageList.messageSystem.textContainer.css}));w.MessageSystem=function MessageSystem(y){var w,E=y.formatDate,q=y.message,ne=(0,oe.useTranslationContext)().tDateTimeParser,se=q.created_at,ve=ne(se),ye=E&&se?E(se):ve&&(0,oe.isDayOrMoment)(ve)?ve.calendar().toUpperCase():ve;return ie.default.createElement(le,{testID:"message-system"},ie.default.createElement(ge,null),ie.default.createElement(me,null,ie.default.createElement(he,null,(null==(w=q.text)?void 0:w.toUpperCase())||""),ie.default.createElement(pe,null,ye)),ie.default.createElement(ge,null))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.TypingIndicator=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(1008),se=E(100),le=E(75),pe=E(29),ge=E(15);function _templateObject2(){var y=(0,ne.default)(["\n color: ",";\n font-size: ","px;\n margin-left: 10px;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: flex-end;\n flex-direction: row;\n justify-content: flex-start;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var he=ge.styled.View(_templateObject(),(function(y){return y.theme.typingIndicator.container.css})),me=ge.styled.Text(_templateObject2(),(function(y){return y.theme.typingIndicator.text.color}),(function(y){return y.theme.typingIndicator.text.fontSize}),(function(y){return y.theme.typingIndicator.text.css}));w.TypingIndicator=function TypingIndicator(y){var w=y.Avatar,E=void 0===w?se.Avatar:w,q=(0,le.useChannelContext)().typing,ne=(0,pe.useChatContext)().client,ge=(0,oe.useTypingString)(),ve=Object.values(q);return ie.default.createElement(he,{testID:"typing-indicator"},ve.filter((function(y){var w,E=y.user;return!!E&&E.id!==(null==ne||null==(w=ne.user)?void 0:w.id)})).map((function(y,w){var q=y.user;return ie.default.createElement(E,{image:q.image,key:""+q.id+w,name:q.name||q.id,size:20,testID:"typing-avatar-"+w})})),ie.default.createElement(me,null,ge))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.TypingIndicatorContainer=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(75),se=E(29);function _templateObject(){var y=(0,ne.default)(["\n bottom: 0px;\n height: 30px;\n padding-left: 16px;\n padding-vertical: 3px;\n position: absolute;\n width: 100%;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var le=E(15).styled.View(_templateObject(),(function(y){return y.theme.messageList.typingIndicatorContainer.css}));w.TypingIndicatorContainer=function TypingIndicatorContainer(y){var w,E,q=y.children,ne=(0,oe.useChannelContext)().typing,pe=(0,se.useChatContext)().client,ge=Object.values(ne);return!ge.length||1===ge.length&&(null==(w=ge[0].user)?void 0:w.id)===(null==pe||null==(E=pe.user)?void 0:E.id)?null:ie.default.createElement(le,{testID:"typing-indicator-container"},q)}},function(y,w){y.exports=function(y,w){return{enumerable:!(1&y),configurable:!(2&y),writable:!(4&y),value:w}}},function(y,w,E){var q=E(31),ne=E(213),ie="".split;y.exports=q((function(){return!Object("z").propertyIsEnumerable(0)}))?function(y){return"String"==ne(y)?ie.call(y,""):Object(y)}:Object},function(y,w,E){var q=E(54);y.exports=function(y,w){if(!q(y))return y;var E,ne;if(w&&"function"==typeof(E=y.toString)&&!q(ne=E.call(y)))return ne;if("function"==typeof(E=y.valueOf)&&!q(ne=E.call(y)))return ne;if(!w&&"function"==typeof(E=y.toString)&&!q(ne=E.call(y)))return ne;throw TypeError("Can't convert object to primitive value")}},function(y,w,E){var q=E(376),ne=E(276),ie=q("keys");y.exports=function(y){return ie[y]||(ie[y]=ne(y))}},function(y,w){var E=0,q=Math.random();y.exports=function(y){return"Symbol("+String(void 0===y?"":y)+")_"+(++E+q).toString(36)}},function(y,w,E){var q=E(516),ne=E(377).concat("length","prototype");w.f=Object.getOwnPropertyNames||function getOwnPropertyNames(y){return q(y,ne)}},function(y,w){var E=Math.ceil,q=Math.floor;y.exports=function(y){return isNaN(y=+y)?0:(y>0?q:E)(y)}},function(y,w,E){var q=E(516),ne=E(377);y.exports=Object.keys||function keys(y){return q(y,ne)}},function(y,w,E){"use strict";var q,ne,ie=E(379),oe=E(519),se=RegExp.prototype.exec,le=String.prototype.replace,pe=se,ge=(q=/a/,ne=/b*/g,se.call(q,"a"),se.call(ne,"a"),0!==q.lastIndex||0!==ne.lastIndex),he=oe.UNSUPPORTED_Y||oe.BROKEN_CARET,me=void 0!==/()??/.exec("")[1];(ge||me||he)&&(pe=function exec(y){var w,E,q,ne,oe=this,pe=he&&oe.sticky,ve=ie.call(oe),ye=oe.source,Re=0,we=y;return pe&&(-1===(ve=ve.replace("y","")).indexOf("g")&&(ve+="g"),we=String(y).slice(oe.lastIndex),oe.lastIndex>0&&(!oe.multiline||oe.multiline&&"\n"!==y[oe.lastIndex-1])&&(ye="(?: "+ye+")",we=" "+we,Re++),E=new RegExp("^(?:"+ye+")",ve)),me&&(E=new RegExp("^"+ye+"$(?!\\s)",ve)),ge&&(w=oe.lastIndex),q=se.call(pe?E:oe,we),pe?q?(q.input=q.input.slice(Re),q[0]=q[0].slice(Re),q.index=oe.lastIndex,oe.lastIndex+=q[0].length):oe.lastIndex=0:ge&&q&&(oe.lastIndex=oe.global?q.index+q[0].length:w),me&&q&&q.length>1&&le.call(q[0],E,(function(){for(ne=1;ne")})),ge="$0"==="a".replace(/./,"$0"),he=ie("replace"),me=!!/./[he]&&""===/./[he]("a","$0"),ve=!ne((function(){var y=/(?:)/,w=y.exec;y.exec=function(){return w.apply(this,arguments)};var E="ab".split(y);return 2!==E.length||"a"!==E[0]||"b"!==E[1]}));y.exports=function(y,w,E,he){var ye=ie(y),Re=!ne((function(){var w={};return w[ye]=function(){return 7},7!=""[y](w)})),we=Re&&!ne((function(){var w=!1,E=/a/;return"split"===y&&((E={}).constructor={},E.constructor[le]=function(){return E},E.flags="",E[ye]=/./[ye]),E.exec=function(){return w=!0,null},E[ye](""),!w}));if(!Re||!we||"replace"===y&&(!pe||!ge||me)||"split"===y&&!ve){var _e=/./[ye],Me=E(ye,""[y],(function(y,w,E,q,ne){return w.exec===oe?Re&&!ne?{done:!0,value:_e.call(w,E,q)}:{done:!0,value:y.call(E,w,q)}:{done:!1}}),{REPLACE_KEEPS_$0:ge,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:me}),Se=Me[0],ke=Me[1];q(String.prototype,y,Se),q(RegExp.prototype,ye,2==w?function(y,w){return ke.call(y,this,w)}:function(y){return ke.call(y,this)})}he&&se(RegExp.prototype[ye],"sham",!0)}},function(y,w,E){var q=E(213),ne=E(280);y.exports=function(y,w){var E=y.exec;if("function"==typeof E){var ie=E.call(y,w);if("object"!=typeof ie)throw TypeError("RegExp exec method returned something other than an Object or null");return ie}if("RegExp"!==q(y))throw TypeError("RegExp#exec called on incompatible receiver");return ne.call(y,w)}},function(y,w){y.exports=function(y){if("function"!=typeof y)throw TypeError(String(y)+" is not a function");return y}},function(y,w,E){"use strict";var q=E(43),ne=E(384);q({target:"String",proto:!0,forced:E(385)("link")},{link:function link(y){return ne(this,"a","href",y)}})},function(y,w,E){"use strict";var q=E(31);y.exports=function(y,w){var E=[][y];return!!E&&q((function(){E.call(null,w||function(){throw 1},1)}))}},function(y,w,E){"use strict";E.r(w);var q=E(27),ne=E(17),ie=E(55),oe=E(5),se=E.n(oe),le=ne.a.shouldUseNativeDriver;function attachNativeEvent(y,w,E){var oe=[];se()(E[0]&&E[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),function traverse(y,w){if(y instanceof q.a)y.__makeNative(),oe.push({nativeEventPath:w,animatedValueTag:y.__getNativeTag()});else if("object"==typeof y)for(var E in y)traverse(y[E],w.concat(E))}(E[0].nativeEvent,[]);var le=Object(ie.default)(y);return oe.forEach((function(y){ne.a.API.addAnimatedEventToView(le,w,y)})),{detach:function detach(){oe.forEach((function(y){ne.a.API.removeAnimatedEventFromView(le,w,y.animatedValueTag)}))}}}var pe=function(){function AnimatedEvent(y,w){void 0===w&&(w={}),this._listeners=[],this._argMapping=y,w.listener&&this.__addListener(w.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=le(w)}var y=AnimatedEvent.prototype;return y.__addListener=function __addListener(y){this._listeners.push(y)},y.__removeListener=function __removeListener(y){this._listeners=this._listeners.filter((function(w){return w!==y}))},y.__attach=function __attach(y,w){se()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=attachNativeEvent(y,w,this._argMapping)},y.__detach=function __detach(y,w){se()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()},y.__getHandler=function __getHandler(){var y=this;return this.__isNative?this._callListeners:function(){for(var w=arguments.length,E=new Array(w),ne=0;ne>"),y})})),w}!function createAnimatedComponent_inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(AnimatedComponent,E);var q=AnimatedComponent.prototype;return q.componentWillUnmount=function componentWillUnmount(){this._propsAnimated&&this._propsAnimated.__detach(),this._detachNativeEvents()},q.UNSAFE_componentWillMount=function UNSAFE_componentWillMount(){this._attachProps(this.props)},q.componentDidMount=function componentDidMount(){this._invokeAnimatedPropsCallbackOnMount&&(this._invokeAnimatedPropsCallbackOnMount=!1,this._animatedPropsCallback()),this._propsAnimated.setNativeView(this._component),this._attachNativeEvents()},q._attachNativeEvents=function _attachNativeEvents(){var y=this,w=this._component&&this._component.getScrollableNode?this._component.getScrollableNode():this._component,E=function _loop(E){var q=y.props[E];q instanceof pe&&q.__isNative&&(q.__attach(w,E),y._eventDetachers.push((function(){return q.__detach(w,E)})))};for(var q in this.props)E(q)},q._detachNativeEvents=function _detachNativeEvents(){this._eventDetachers.forEach((function(y){return y()})),this._eventDetachers=[]},q._attachProps=function _attachProps(y){var w=this._propsAnimated;this._propsAnimated=new Ae(y,this._animatedPropsCallback),w&&w.__detach()},q.UNSAFE_componentWillReceiveProps=function UNSAFE_componentWillReceiveProps(y){this._attachProps(y)},q.componentDidUpdate=function componentDidUpdate(y){this._component!==this._prevComponent&&this._propsAnimated.setNativeView(this._component),this._component===this._prevComponent&&y===this.props||(this._detachNativeEvents(),this._attachNativeEvents())},q.render=function render(){var E=this._propsAnimated.__getValue();return Ue.a.createElement(y,_extends({},w,E,{ref:this._setComponentRef,collapsable:!1}))},AnimatedComponent}(Ue.a.Component);return E.__skipSetNativeProps_FOR_TESTS_ONLY=!1,y.propTypes,Ue.a.forwardRef((function AnimatedComponentWrapper(y,w){return Ue.a.createElement(E,_extends({},y,null==w?null:{forwardedRef:w}))}))};function AnimatedImplementation_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function AnimatedImplementation_objectSpread(y){for(var w=1;w=0;w--){var E=y.childNodes[w];if(attemptFocus(E)||focusLastDescendant(E))return!0}return!1}var Te=function ModalFocusTrap(y){var w=y.active,E=y.children,oe=Object(q.useRef)(),se=Object(q.useRef)({trapFocusInProgress:!1,lastFocusedElement:null});return Object(q.useEffect)((function(){if(ie.canUseDOM){var y=function trapFocus(){if(null!=oe.current&&!se.current.trapFocusInProgress&&w){try{if(se.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!oe.current.contains(document.activeElement)){var y=focusFirstDescendant(oe.current);se.current.lastFocusedElement===document.activeElement&&(y=focusLastDescendant(oe.current)),!y&&null!=oe.current&&document.activeElement&&Ae.a.focus(oe.current)}}finally{se.current.trapFocusInProgress=!1}se.current.lastFocusedElement=document.activeElement}};return y(),document.addEventListener("focus",y,!0),function(){return document.removeEventListener("focus",y,!0)}}}),[w]),ne.a.createElement(ne.a.Fragment,null,ne.a.createElement(Oe,null),ne.a.createElement(_e.default,{ref:oe},E),ne.a.createElement(Oe,null))},je=pe.default.create({focusBracket:{outlineStyle:"none"}}),Fe=0,Be=[],Ve={};function notifyActiveModalListeners(){if(0!==Be.length){var y=Be[Be.length-1];Be.forEach((function(w){w in Ve&&Ve[w](w===y)}))}}function removeActiveModal(y){y in Ve&&(Ve[y](!1),delete Ve[y]);var w=Be.indexOf(y);-1!==w&&(Be.splice(w,1),notifyActiveModalListeners())}var Ne=Object(q.forwardRef)((function(y,w){var E=y.animationType,ie=y.children,oe=y.onDismiss,se=y.onRequestClose,pe=y.onShow,ge=y.transparent,he=y.visible,me=void 0===he||he,ve=Object(q.useMemo)((function(){return Fe++}),[]),ye=Object(q.useState)(!1),Re=ye[0],_e=ye[1],Me=Object(q.useCallback)((function(){removeActiveModal(ve),oe&&oe()}),[ve,oe]),Se=Object(q.useCallback)((function(){!function addActiveModal(y,w){removeActiveModal(y),Be.push(y),Ve[y]=w,notifyActiveModalListeners()}(ve,_e),pe&&pe()}),[ve,pe]);return Object(q.useEffect)((function(){return function(){return removeActiveModal(ve)}}),[ve]),ne.a.createElement(le,null,ne.a.createElement(we,{animationType:E,onDismiss:Me,onShow:Se,visible:me},ne.a.createElement(Te,{active:Re},ne.a.createElement(ke,{active:Re,onRequestClose:se,ref:w,transparent:ge},ie))))}));w.default=Ne},function(y,w,E){"use strict";var q=E(172),ne=E.n(q);w.a=function processColor(y){if(null==y)return y;var w=ne()(y);return null!=w?w=(w<<24|w>>>8)>>>0:void 0}},function(y,w,E){"use strict";var q=E(9),ne=E(0),ie=E.n(ne);w.a=function RefreshControl(y){y.colors,y.enabled,y.onRefresh,y.progressBackgroundColor,y.progressViewOffset,y.refreshing,y.size,y.tintColor,y.title,y.titleColor;var w=function _objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,q,ne={},ie=Object.keys(y);for(q=0;q=0||(ne[E]=y[E]);return ne}(y,["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"]);return ie.a.createElement(q.default,w)}},function(y,w,E){"use strict";E.d(w,"a",(function(){return ne}));var q=E(50),ne=function(){function PixelRatio(){}return PixelRatio.get=function get(){return q.default.get("window").scale},PixelRatio.getFontScale=function getFontScale(){return q.default.get("window").fontScale||PixelRatio.get()},PixelRatio.getPixelSizeForLayoutSize=function getPixelSizeForLayoutSize(y){return Math.round(y*PixelRatio.get())},PixelRatio.roundToNearestPixel=function roundToNearestPixel(y){var w=PixelRatio.get();return Math.round(y*w)/w},PixelRatio}()},function(y,w,E){"use strict";var q=E(102),ne=E(0),ie=E(9),oe=E(132),se=E(5),le=E.n(se);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w0&&this.props.stickySectionHeadersEnabled&&(q=this._listRef._getFrameMetricsApprox(w-y.itemIndex).length);var ne=_objectSpread({},y,{viewOffset:q,index:w});this._listRef.scrollToIndex(ne)},w.getListRef=function getListRef(){return this._listRef},w.UNSAFE_componentWillReceiveProps=function UNSAFE_componentWillReceiveProps(y){this.setState(this._computeState(y))},w._computeState=function _computeState(y){var w=y.ListHeaderComponent?1:0,E=[],q=y.sections?y.sections.reduce((function(q,ne){return E.push(q+w),q+y.getItemCount(ne.data)+2}),0):0;return{childProps:_objectSpread({},y,{renderItem:this._renderItem,ItemSeparatorComponent:void 0,data:y.sections,getItemCount:function getItemCount(){return q},getItem:function getItem(w,E){return function _getItem(y,w,E){if(!w)return null;for(var q=E-1,ne=0;ne=ne(pe)+1))return-1===w?{section:le,key:ge+":header",index:null,header:!0,trailingSection:oe[se+1]}:w===ne(pe)?{section:le,key:ge+":footer",index:null,header:!1,trailingSection:oe[se+1]}:{section:le,key:ge+":"+(le.keyExtractor||ie)(q(pe,w),w),index:w,leadingItem:q(pe,w-1),leadingSection:oe[se-1],trailingItem:q(pe,w+1),trailingSection:oe[se+1]};w-=ne(pe)+1}},w._getSeparatorComponent=function _getSeparatorComponent(y,w){if(!(w=w||this._subExtractor(y)))return null;var E=w.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,q=this.props.SectionSeparatorComponent,ne=y===this.state.childProps.getItemCount()-1,ie=w.index===this.props.getItemCount(w.section.data)-1;return q&&ie?q:!E||ie||ne?null:E},VirtualizedSectionList}(ne.PureComponent);pe.defaultProps=_objectSpread({},oe.a.defaultProps,{data:[]});var ge=function(y){function ItemWithSeparator(){for(var w,E=arguments.length,q=new Array(E),ne=0;ne=0||(ne[E]=y[E]);return ne}(E,["accessibilityLabel","accessibilityLiveRegion","accessibilityState","accessibilityValue","accessible","classList","dataSet","disabled","importantForAccessibility","nativeID","pointerEvents","style","testID","accessibilityRole"])),je=null!=me&&!0===me.disabled||_e,Fe=q.a.propsToAriaRole(w),Be="link"===Fe||"a"===y||"button"===y||"input"===y||"select"===y||"textarea"===y||null!=Te.contentEditable;if(null!=we)for(var Ve in we)if(pe.call(we,Ve)){var Ne=we[Ve];null!=Ne&&(Te["data-"+Ve]=Ne)}if(null!=ne&&(Te["aria-label"]=ne),null!=se&&(Te["aria-live"]="none"===se?"off":se),null!=Fe&&(Te.role=Fe),null!=me)for(var Ue in me){var We=me[Ue];null!=We&&("disabled"===Ue||"hidden"===Ue?!0===We&&(Te["aria-"+Ue]=We,Te[Ue]=We):Te["aria-"+Ue]=We)}if(null!=ve)for(var $e in ve){var Ye=ve[$e];null!=Ye&&(Te["aria-value"+$e]=Ye)}"no-hide-descendants"===Me&&(Te["aria-hidden"]=!0),!0===je&&(Te["aria-disabled"]=!0,Te.disabled=!0);var Xe=!je&&"no"!==Me&&"no-hide-descendants"!==Me;Be?!1!==ye&&Xe?Te["data-focusable"]=!0:Te.tabIndex="-1":"button"===Fe||"menuitem"===Fe||"textbox"===Fe?!1!==ye&&Xe&&(Te["data-focusable"]=!0,Te.tabIndex="0"):!0===ye&&Xe&&(Te["data-focusable"]=!0,Te.tabIndex="0");var et=ie.default.compose(ke&&he[ke],Ae),tt=("button"===Fe||"link"===Fe)&&!je,nt=[("a"===y||"button"===y||"li"===y||"ul"===y||"heading"===Fe)&&ge.reset,tt&&ge.cursor,Re],rt=oe.a.resolve(et,nt),it=rt.className,ot=rt.style;if(null!=it&&""!==it&&(Te.className=it),ot&&(Te.style=ot),null!=Se&&(Te.id=Se),"a"===y&&"_blank"===Te.target&&(Te.rel=(Te.rel||"")+" noopener noreferrer"),null!=Oe&&(Te["data-testid"]=Oe),Te["data-focusable"]){var st=Te.onClick;if(null!=st)if(je)Te.onClick=function(y){y.stopPropagation()};else if(!Be){var dt=Te.onKeyDown;Te.onKeyDown=function(y){var w=y.key,E=y.repeat,q=" "===w||"Spacebar"===w,ne="button"===Fe||"menuitem"===Fe;null!=dt&&dt(y),E||"Enter"!==w?q&&ne&&(E||st(y),y.preventDefault()):st(y)}}}return Te}},function(y,w,E){"use strict";var q=E(303),ne=E(61),ie={height:0,width:0};w.a=function resolveShadowValue(y){var w=y.shadowColor,E=y.shadowOffset,oe=y.shadowOpacity,se=y.shadowRadius,le=E||ie,pe=le.height,ge=le.width,he=Object(ne.a)(ge),me=Object(ne.a)(pe),ve=Object(ne.a)(se||0),ye=Object(q.a)(w||"black",oe);if(null!=ye&&null!=he&&null!=me&&null!=ve)return he+" "+me+" "+ve+" "+ye}},function(y,w,E){"use strict";E.d(w,"a",(function(){return mergeRefs}));E(0);function mergeRefs(){for(var y=arguments.length,w=new Array(y),E=0;E-1)return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__.a,null,defaultValueString);if("func"===propName||"function"===propName)return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:defaultValueString},"Function");if("shape"===propName||"object"===propName)try{var object=eval("("+prop.defaultValue.value+")");return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:JSON.stringify(object,null,2)},"Shape")}catch(y){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:prop.defaultValue.value},"Shape")}}return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__.a,null,defaultValueString)}return prop.required?react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light"},"Required"):""}},function(y,w,E){var q=E(1481)(E(1482));y.exports=q},function(y,w,E){"use strict";var q=function(y){function EmitterSubscription(w,E,q,ne){var ie;return(ie=y.call(this,E)||this).emitter=w,ie.listener=q,ie.context=ne,ie}return function _inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(EmitterSubscription,y),EmitterSubscription.prototype.remove=function remove(){this.emitter.removeSubscription(this)},EmitterSubscription}(function(){function EventSubscription(y){this.subscriber=y}return EventSubscription.prototype.remove=function remove(){this.subscriber.removeSubscription(this)},EventSubscription}()),ne=E(297),ie=E(5),oe=E.n(ie),se=function sparseFilterPredicate(){return!0},le=function(){function EventEmitter(y){this._subscriber=y||new ne.a}var y=EventEmitter.prototype;return y.addListener=function addListener(y,w,E){return this._subscriber.addSubscription(y,new q(this,this._subscriber,w,E))},y.once=function once(y,w,E){var q=this;return this.addListener(y,(function(){q.removeCurrentListener();for(var y=arguments.length,ne=new Array(y),ie=0;ie>16&255)+","+(E>>8&255)+","+(255&E)+","+((E>>24&255)/255*w).toFixed(2)+")"}}},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return ge}));E(81);var q=E(0),ne=E.n(q),ie=E(2),oe=E.n(ie),se=E(8),le=E(26),pe=function ToolbarButtonRenderer(y){var w,E=y.classes,q=y.className,ie=y.onClick,oe=y.href,se=y.title,pe=y.small,ge=y.testId,he=y.children,me=Object(le.a)(E.button,q,((w={})[E.isSmall]=pe,w));return void 0!==oe?ne.a.createElement("a",{href:oe,title:se,className:me,"aria-label":se,"data-testid":ge},he):ne.a.createElement("button",{type:"button",onClick:ie,title:se,className:me,"aria-label":se},he)};pe.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,className:oe.a.string,href:oe.a.string,onClick:oe.a.func,title:oe.a.string,small:oe.a.bool,testId:oe.a.string,children:oe.a.node};var ge=Object(se.default)((function styles(y){var w=y.space,E=y.color;return{button:{padding:2,color:E.light,background:"transparent",transition:"color 750ms ease-out",cursor:"pointer","&:hover, &:focus":{isolate:!1,color:E.linkHover,transition:"color 150ms ease-in"},"&:focus":{isolate:!1,outline:[[1,"dotted",E.linkHover]]},"& + &":{isolate:!1,marginLeft:w[1]},"& svg":{width:w[3],height:w[3],color:"currentColor",cursor:"inherit"}},isSmall:{"& svg":{width:14,height:14}}}}))(pe)},function(y,w,E){"use strict";var q,ne=E(794);q=ne.now?function performanceNow(){return ne.now()}:function performanceNow(){return Date.now()},y.exports=q},function(y,w,E){var q=E(23),ne=E(20).document,ie=q(ne)&&q(ne.createElement);y.exports=function(y){return ie?ne.createElement(y):{}}},function(y,w,E){w.f=E(30)},function(y,w,E){var q=E(230)("keys"),ne=E(135);y.exports=function(y){return q[y]||(q[y]=ne(y))}},function(y,w){y.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(y,w,E){var q=E(20).document;y.exports=q&&q.documentElement},function(y,w,E){var q=E(23),ne=E(22),check=function(y,w){if(ne(y),!q(w)&&null!==w)throw TypeError(w+": can't set as prototype!")};y.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(y,w,q){try{(q=E(93)(Function.call,E(96).f(Object.prototype,"__proto__").set,2))(y,[]),w=!(y instanceof Array)}catch(y){w=!0}return function setPrototypeOf(y,E){return check(y,E),w?y.__proto__=E:q(y,E),y}}({},!1):void 0),check:check}},function(y,w){y.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(y,w,E){var q=E(23),ne=E(311).set;y.exports=function(y,w,E){var ie,oe=w.constructor;return oe!==E&&"function"==typeof oe&&(ie=oe.prototype)!==E.prototype&&q(ie)&&ne&&ne(y,ie),y}},function(y,w,E){"use strict";var q=E(95),ne=E(107);y.exports=function repeat(y){var w=String(ne(this)),E="",ie=q(y);if(ie<0||ie==1/0)throw RangeError("Count can't be negative");for(;ie>0;(ie>>>=1)&&(w+=w))1&ie&&(E+=w);return E}},function(y,w){y.exports=Math.sign||function sign(y){return 0==(y=+y)||y!=y?y:y<0?-1:1}},function(y,w){var E=Math.expm1;y.exports=!E||E(10)>22025.465794806718||E(10)<22025.465794806718||-2e-17!=E(-2e-17)?function expm1(y){return 0==(y=+y)?y:y>-1e-6&&y<1e-6?y+y*y/2:Math.exp(y)-1}:E},function(y,w,E){var q=E(95),ne=E(107);y.exports=function(y){return function(w,E){var ie,oe,se=String(ne(w)),le=q(E),pe=se.length;return le<0||le>=pe?y?"":void 0:(ie=se.charCodeAt(le))<55296||ie>56319||le+1===pe||(oe=se.charCodeAt(le+1))<56320||oe>57343?y?se.charAt(le):ie:y?se.slice(le,le+2):oe-56320+(ie-55296<<10)+65536}}},function(y,w,E){"use strict";var q=E(136),ne=E(6),ie=E(63),oe=E(72),se=E(156),le=E(413),pe=E(154),ge=E(141),he=E(30)("iterator"),me=!([].keys&&"next"in[].keys()),ve="keys",ye="values",returnThis=function(){return this};y.exports=function(y,w,E,Re,we,_e,Me){le(E,w,Re);var Se,ke,Ae,getMethod=function(y){if(!me&&y in Fe)return Fe[y];switch(y){case ve:return function keys(){return new E(this,y)};case ye:return function values(){return new E(this,y)}}return function entries(){return new E(this,y)}},Oe=w+" Iterator",Te=we==ye,je=!1,Fe=y.prototype,Be=Fe[he]||Fe["@@iterator"]||we&&Fe[we],Ve=Be||getMethod(we),Ne=we?Te?getMethod("entries"):Ve:void 0,Ue="Array"==w&&Fe.entries||Be;if(Ue&&(Ae=ge(Ue.call(new y)))!==Object.prototype&&Ae.next&&(pe(Ae,Oe,!0),q||"function"==typeof Ae[he]||oe(Ae,he,returnThis)),Te&&Be&&Be.name!==ye&&(je=!0,Ve=function values(){return Be.call(this)}),q&&!Me||!me&&!je&&Fe[he]||oe(Fe,he,Ve),se[w]=Ve,se[Oe]=returnThis,we)if(Se={values:Te?Ve:getMethod(ye),keys:_e?Ve:getMethod(ve),entries:Ne},Me)for(ke in Se)ke in Fe||ie(Fe,ke,Se[ke]);else ne(ne.P+ne.F*(me||je),w,Se);return Se}},function(y,w,E){var q=E(320),ne=E(107);y.exports=function(y,w,E){if(q(w))throw TypeError("String#"+E+" doesn't accept regex!");return String(ne(y))}},function(y,w,E){var q=E(23),ne=E(106),ie=E(30)("match");y.exports=function(y){var w;return q(y)&&(void 0!==(w=y[ie])?!!w:"RegExp"==ne(y))}},function(y,w,E){var q=E(30)("match");y.exports=function(y){var w=/./;try{"/./"[y](w)}catch(E){try{return w[q]=!1,!"/./"[y](w)}catch(y){}}return!0}},function(y,w,E){var q=E(156),ne=E(30)("iterator"),ie=Array.prototype;y.exports=function(y){return void 0!==y&&(q.Array===y||ie[ne]===y)}},function(y,w,E){"use strict";var q=E(42),ne=E(134);y.exports=function(y,w,E){w in y?q.f(y,w,ne(0,E)):y[w]=E}},function(y,w,E){var q=E(187),ne=E(30)("iterator"),ie=E(156);y.exports=E(38).getIteratorMethod=function(y){if(null!=y)return y[ne]||y["@@iterator"]||ie[q(y)]}},function(y,w,E){"use strict";var q=E(52),ne=E(138),ie=E(34);y.exports=function fill(y){for(var w=q(this),E=ie(w.length),oe=arguments.length,se=ne(oe>1?arguments[1]:void 0,E),le=oe>2?arguments[2]:void 0,pe=void 0===le?E:ne(le,E);pe>se;)w[se++]=y;return w}},function(y,w,E){"use strict";var q=E(142),ne=E(418),ie=E(156),oe=E(73);y.exports=E(318)(Array,"Array",(function(y,w){this._t=oe(y),this._i=0,this._k=w}),(function(){var y=this._t,w=this._k,E=this._i++;return!y||E>=y.length?(this._t=void 0,ne(1)):ne(0,"keys"==w?E:"values"==w?y[E]:[E,y[E]])}),"values"),ie.Arguments=ie.Array,q("keys"),q("values"),q("entries")},function(y,w,E){"use strict";var q,ne,ie=E(235),oe=RegExp.prototype.exec,se=String.prototype.replace,le=oe,pe=(q=/a/,ne=/b*/g,oe.call(q,"a"),oe.call(ne,"a"),0!==q.lastIndex||0!==ne.lastIndex),ge=void 0!==/()??/.exec("")[1];(pe||ge)&&(le=function exec(y){var w,E,q,ne,le=this;return ge&&(E=new RegExp("^"+le.source+"$(?!\\s)",ie.call(le))),pe&&(w=le.lastIndex),q=oe.call(le,y),pe&&q&&(le.lastIndex=le.global?q.index+q[0].length:w),ge&&q&&q.length>1&&se.call(q[0],E,(function(){for(ne=1;neE;)w.push(arguments[E++]);return _e[++we]=function(){se("function"==typeof y?y:Function(y),w)},q(we),we},ve=function clearImmediate(y){delete _e[y]},"process"==E(106)(he)?q=function(y){he.nextTick(oe(run,y,1))}:Re&&Re.now?q=function(y){Re.now(oe(run,y,1))}:ye?(ie=(ne=new ye).port2,ne.port1.onmessage=listener,q=oe(ie.postMessage,ie,1)):ge.addEventListener&&"function"==typeof postMessage&&!ge.importScripts?(q=function(y){ge.postMessage(y+"","*")},ge.addEventListener("message",listener,!1)):q=Me in pe("script")?function(y){le.appendChild(pe("script")).onreadystatechange=function(){le.removeChild(this),run.call(y)}}:function(y){setTimeout(oe(run,y,1),0)}),y.exports={set:me,clear:ve}},function(y,w,E){"use strict";var q=E(20),ne=E(41),ie=E(136),oe=E(241),se=E(72),le=E(159),pe=E(21),ge=E(158),he=E(95),me=E(34),ve=E(426),ye=E(140).f,Re=E(42).f,we=E(325),_e=E(154),Me="ArrayBuffer",Se="DataView",ke="Wrong index!",Ae=q.ArrayBuffer,Oe=q.DataView,Te=q.Math,je=q.RangeError,Fe=q.Infinity,Be=Ae,Ve=Te.abs,Ne=Te.pow,Ue=Te.floor,We=Te.log,$e=Te.LN2,Ye="buffer",Xe="byteLength",et="byteOffset",tt=ne?"_b":Ye,nt=ne?"_l":Xe,rt=ne?"_o":et;function packIEEE754(y,w,E){var q,ne,ie,oe=new Array(E),se=8*E-w-1,le=(1<>1,ge=23===w?Ne(2,-24)-Ne(2,-77):0,he=0,me=y<0||0===y&&1/y<0?1:0;for((y=Ve(y))!=y||y===Fe?(ne=y!=y?1:0,q=le):(q=Ue(We(y)/$e),y*(ie=Ne(2,-q))<1&&(q--,ie*=2),(y+=q+pe>=1?ge/ie:ge*Ne(2,1-pe))*ie>=2&&(q++,ie/=2),q+pe>=le?(ne=0,q=le):q+pe>=1?(ne=(y*ie-1)*Ne(2,w),q+=pe):(ne=y*Ne(2,pe-1)*Ne(2,w),q=0));w>=8;oe[he++]=255&ne,ne/=256,w-=8);for(q=q<0;oe[he++]=255&q,q/=256,se-=8);return oe[--he]|=128*me,oe}function unpackIEEE754(y,w,E){var q,ne=8*E-w-1,ie=(1<>1,se=ne-7,le=E-1,pe=y[le--],ge=127&pe;for(pe>>=7;se>0;ge=256*ge+y[le],le--,se-=8);for(q=ge&(1<<-se)-1,ge>>=-se,se+=w;se>0;q=256*q+y[le],le--,se-=8);if(0===ge)ge=1-oe;else{if(ge===ie)return q?NaN:pe?-Fe:Fe;q+=Ne(2,w),ge-=oe}return(pe?-1:1)*q*Ne(2,ge-w)}function unpackI32(y){return y[3]<<24|y[2]<<16|y[1]<<8|y[0]}function packI8(y){return[255&y]}function packI16(y){return[255&y,y>>8&255]}function packI32(y){return[255&y,y>>8&255,y>>16&255,y>>24&255]}function packF64(y){return packIEEE754(y,52,8)}function packF32(y){return packIEEE754(y,23,4)}function addGetter(y,w,E){Re(y.prototype,w,{get:function(){return this[E]}})}function get(y,w,E,q){var ne=ve(+E);if(ne+w>y[nt])throw je(ke);var ie=y[tt]._b,oe=ne+y[rt],se=ie.slice(oe,oe+w);return q?se:se.reverse()}function set(y,w,E,q,ne,ie){var oe=ve(+E);if(oe+w>y[nt])throw je(ke);for(var se=y[tt]._b,le=oe+y[rt],pe=q(+ne),ge=0;gedt;)(it=st[dt++])in Ae||se(Ae,it,Be[it]);ie||(ot.constructor=Ae)}var ct=new Oe(new Ae(2)),ut=Oe.prototype.setInt8;ct.setInt8(0,2147483648),ct.setInt8(1,2147483649),!ct.getInt8(0)&&ct.getInt8(1)||le(Oe.prototype,{setInt8:function setInt8(y,w){ut.call(this,y,w<<24>>24)},setUint8:function setUint8(y,w){ut.call(this,y,w<<24>>24)}},!0)}else Ae=function ArrayBuffer(y){ge(this,Ae,Me);var w=ve(y);this._b=we.call(new Array(w),0),this[nt]=w},Oe=function DataView(y,w,E){ge(this,Oe,Se),ge(y,Ae,Se);var q=y[nt],ne=he(w);if(ne<0||ne>q)throw je("Wrong offset!");if(ne+(E=void 0===E?q-ne:me(E))>q)throw je("Wrong length!");this[tt]=y,this[rt]=ne,this[nt]=E},ne&&(addGetter(Ae,Xe,"_l"),addGetter(Oe,Ye,"_b"),addGetter(Oe,Xe,"_l"),addGetter(Oe,et,"_o")),le(Oe.prototype,{getInt8:function getInt8(y){return get(this,1,y)[0]<<24>>24},getUint8:function getUint8(y){return get(this,1,y)[0]},getInt16:function getInt16(y){var w=get(this,2,y,arguments[1]);return(w[1]<<8|w[0])<<16>>16},getUint16:function getUint16(y){var w=get(this,2,y,arguments[1]);return w[1]<<8|w[0]},getInt32:function getInt32(y){return unpackI32(get(this,4,y,arguments[1]))},getUint32:function getUint32(y){return unpackI32(get(this,4,y,arguments[1]))>>>0},getFloat32:function getFloat32(y){return unpackIEEE754(get(this,4,y,arguments[1]),23,4)},getFloat64:function getFloat64(y){return unpackIEEE754(get(this,8,y,arguments[1]),52,8)},setInt8:function setInt8(y,w){set(this,1,y,packI8,w)},setUint8:function setUint8(y,w){set(this,1,y,packI8,w)},setInt16:function setInt16(y,w){set(this,2,y,packI16,w,arguments[2])},setUint16:function setUint16(y,w){set(this,2,y,packI16,w,arguments[2])},setInt32:function setInt32(y,w){set(this,4,y,packI32,w,arguments[2])},setUint32:function setUint32(y,w){set(this,4,y,packI32,w,arguments[2])},setFloat32:function setFloat32(y,w){set(this,4,y,packF32,w,arguments[2])},setFloat64:function setFloat64(y,w){set(this,8,y,packF64,w,arguments[2])}});_e(Ae,Me),_e(Oe,Se),se(Oe.prototype,oe.VIEW,!0),w.ArrayBuffer=Ae,w.DataView=Oe},function(y,w,E){var q=function(y){"use strict";var w,E=Object.prototype,q=E.hasOwnProperty,ne="function"==typeof Symbol?Symbol:{},ie=ne.iterator||"@@iterator",oe=ne.asyncIterator||"@@asyncIterator",se=ne.toStringTag||"@@toStringTag";function define(y,w,E){return Object.defineProperty(y,w,{value:E,enumerable:!0,configurable:!0,writable:!0}),y[w]}try{define({},"")}catch(y){define=function(y,w,E){return y[w]=E}}function wrap(y,w,E,q){var ne=w&&w.prototype instanceof Generator?w:Generator,ie=Object.create(ne.prototype),oe=new Context(q||[]);return ie._invoke=function makeInvokeMethod(y,w,E){var q=le;return function invoke(ne,ie){if(q===ge)throw new Error("Generator is already running");if(q===he){if("throw"===ne)throw ie;return doneResult()}for(E.method=ne,E.arg=ie;;){var oe=E.delegate;if(oe){var se=maybeInvokeDelegate(oe,E);if(se){if(se===me)continue;return se}}if("next"===E.method)E.sent=E._sent=E.arg;else if("throw"===E.method){if(q===le)throw q=he,E.arg;E.dispatchException(E.arg)}else"return"===E.method&&E.abrupt("return",E.arg);q=ge;var ve=tryCatch(y,w,E);if("normal"===ve.type){if(q=E.done?he:pe,ve.arg===me)continue;return{value:ve.arg,done:E.done}}"throw"===ve.type&&(q=he,E.method="throw",E.arg=ve.arg)}}}(y,E,oe),ie}function tryCatch(y,w,E){try{return{type:"normal",arg:y.call(w,E)}}catch(y){return{type:"throw",arg:y}}}y.wrap=wrap;var le="suspendedStart",pe="suspendedYield",ge="executing",he="completed",me={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var ve={};ve[ie]=function(){return this};var ye=Object.getPrototypeOf,Re=ye&&ye(ye(values([])));Re&&Re!==E&&q.call(Re,ie)&&(ve=Re);var we=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(ve);function defineIteratorMethods(y){["next","throw","return"].forEach((function(w){define(y,w,(function(y){return this._invoke(w,y)}))}))}function AsyncIterator(y,w){function invoke(E,ne,ie,oe){var se=tryCatch(y[E],y,ne);if("throw"!==se.type){var le=se.arg,pe=le.value;return pe&&"object"==typeof pe&&q.call(pe,"__await")?w.resolve(pe.__await).then((function(y){invoke("next",y,ie,oe)}),(function(y){invoke("throw",y,ie,oe)})):w.resolve(pe).then((function(y){le.value=y,ie(le)}),(function(y){return invoke("throw",y,ie,oe)}))}oe(se.arg)}var E;this._invoke=function enqueue(y,q){function callInvokeWithMethodAndArg(){return new w((function(w,E){invoke(y,q,w,E)}))}return E=E?E.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(y,E){var q=y.iterator[E.method];if(q===w){if(E.delegate=null,"throw"===E.method){if(y.iterator.return&&(E.method="return",E.arg=w,maybeInvokeDelegate(y,E),"throw"===E.method))return me;E.method="throw",E.arg=new TypeError("The iterator does not provide a 'throw' method")}return me}var ne=tryCatch(q,y.iterator,E.arg);if("throw"===ne.type)return E.method="throw",E.arg=ne.arg,E.delegate=null,me;var ie=ne.arg;return ie?ie.done?(E[y.resultName]=ie.value,E.next=y.nextLoc,"return"!==E.method&&(E.method="next",E.arg=w),E.delegate=null,me):ie:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,me)}function pushTryEntry(y){var w={tryLoc:y[0]};1 in y&&(w.catchLoc=y[1]),2 in y&&(w.finallyLoc=y[2],w.afterLoc=y[3]),this.tryEntries.push(w)}function resetTryEntry(y){var w=y.completion||{};w.type="normal",delete w.arg,y.completion=w}function Context(y){this.tryEntries=[{tryLoc:"root"}],y.forEach(pushTryEntry,this),this.reset(!0)}function values(y){if(y){var E=y[ie];if(E)return E.call(y);if("function"==typeof y.next)return y;if(!isNaN(y.length)){var ne=-1,oe=function next(){for(;++ne=0;--ne){var ie=this.tryEntries[ne],oe=ie.completion;if("root"===ie.tryLoc)return handle("end");if(ie.tryLoc<=this.prev){var se=q.call(ie,"catchLoc"),le=q.call(ie,"finallyLoc");if(se&&le){if(this.prev=0;--E){var ne=this.tryEntries[E];if(ne.tryLoc<=this.prev&&q.call(ne,"finallyLoc")&&this.prev=0;--w){var E=this.tryEntries[w];if(E.finallyLoc===y)return this.complete(E.completion,E.afterLoc),resetTryEntry(E),me}},catch:function(y){for(var w=this.tryEntries.length-1;w>=0;--w){var E=this.tryEntries[w];if(E.tryLoc===y){var q=E.completion;if("throw"===q.type){var ne=q.arg;resetTryEntry(E)}return ne}}throw new Error("illegal catch attempt")},delegateYield:function(y,E,q){return this.delegate={iterator:values(y),resultName:E,nextLoc:q},"next"===this.method&&(this.arg=w),me}},y}(y.exports);try{regeneratorRuntime=q}catch(y){Function("r","regeneratorRuntime = r")(q)}},function(y,w){var E=y.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=E)},function(y,w){y.exports=function(y){return"object"==typeof y?null!==y:"function"==typeof y}},function(y,w,E){y.exports=!E(431)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(y,w){function _typeof(w){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?y.exports=_typeof=function _typeof(y){return typeof y}:y.exports=_typeof=function _typeof(y){return y&&"function"==typeof Symbol&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_typeof(w)}y.exports=_typeof},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return Re}));var q=E(14),ne=E(555),ie=E.n(ne),oe=E(5),se=E.n(oe);function _defineProperties(y,w){for(var E=0;E=0||(ne[E]=y[E]);return ne}(y,["animating","color","hidesWhenStopped","size","style"]),Me=oe.a.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},le({stroke:pe,opacity:.2}),le({stroke:pe,strokeDasharray:80,strokeDashoffset:60}));return oe.a.createElement(ne.default,_extends({},_e,{accessibilityRole:"progressbar",accessibilityValue:se,ref:w,style:[ge.container,we]}),oe.a.createElement(ne.default,{children:Me,style:["number"==typeof Re?{height:Re,width:Re}:he[Re],ge.animation,!q&&ge.animationPause,!q&&ve&&ge.hidesWhenStopped]}))}));pe.displayName="ActivityIndicator";var ge=q.default.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:[{rotate:"0deg"}]},"100%":{transform:[{rotate:"360deg"}]}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),he=q.default.create({small:{width:20,height:20},large:{width:36,height:36}});w.default=pe},function(y,w,E){"use strict";E.r(w);var q=function emptyFunction(){};function StatusBar(){return null}StatusBar.setBackgroundColor=q,StatusBar.setBarStyle=q,StatusBar.setHidden=q,StatusBar.setNetworkActivityIndicatorVisible=q,StatusBar.setTranslucent=q,w.default=StatusBar},function(y,w,E){"use strict";E.r(w);var q=E(0),ne=E(35),ie=E(103),oe=E(129),se=E(170),le=E(118),pe=E(47),ge=E(130),he=E(177),me=E(10),ve=E(83),ye={accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,accessible:!0,autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,children:!0,classList:!0,defaultValue:!0,dir:!0,disabled:!0,importantForAccessibility:!0,maxLength:!0,nativeID:!0,onBlur:!0,onChange:!0,onClick:!0,onClickCapture:!0,onContextMenu:!0,onFocus:!0,onScroll:!0,onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,ref:!0,rows:!0,spellCheck:!0,style:!0,value:!0,testID:!0,type:!0,dataSet:!0,onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0};var Re=Object(q.forwardRef)((function(y,w){var E,ie,Re=y.autoCapitalize,_e=void 0===Re?"sentences":Re,Me=y.autoComplete,Se=y.autoCompleteType,ke=y.autoCorrect,Ae=void 0===ke||ke,Oe=y.blurOnSubmit,Te=y.clearTextOnFocus,je=y.dir,Fe=y.editable,Be=void 0===Fe||Fe,Ve=y.keyboardType,Ne=void 0===Ve?"default":Ve,Ue=y.multiline,We=void 0!==Ue&&Ue,$e=y.numberOfLines,Ye=void 0===$e?1:$e,Xe=y.onBlur,et=y.onChange,tt=y.onChangeText,nt=y.onContentSizeChange,rt=y.onFocus,it=y.onKeyPress,ot=y.onLayout,st=y.onMoveShouldSetResponder,dt=y.onMoveShouldSetResponderCapture,ct=y.onResponderEnd,ut=y.onResponderGrant,lt=y.onResponderMove,pt=y.onResponderReject,gt=y.onResponderRelease,ht=y.onResponderStart,ft=y.onResponderTerminate,mt=y.onResponderTerminationRequest,vt=y.onScrollShouldSetResponder,yt=y.onScrollShouldSetResponderCapture,Rt=y.onSelectionChange,bt=y.onSelectionChangeShouldSetResponder,xt=y.onSelectionChangeShouldSetResponderCapture,wt=y.onStartShouldSetResponder,Ct=y.onStartShouldSetResponderCapture,_t=y.onSubmitEditing,Mt=y.placeholderTextColor,St=y.returnKeyType,kt=y.secureTextEntry,Et=void 0!==kt&&kt,At=y.selection,Dt=y.selectTextOnFocus,Ot=y.spellCheck;switch(Ne){case"email-address":E="email";break;case"number-pad":case"numeric":ie="numeric";break;case"decimal-pad":ie="decimal";break;case"phone-pad":E="tel";break;case"search":case"web-search":E="search";break;case"url":E="url";break;default:E="text"}Et&&(E="password");var Pt=Object(q.useRef)({height:null,width:null}),It=Object(q.useRef)(null),Tt=Object(q.useCallback)((function(){var y=It.current;if(We&&nt&&null!=y){var w=y.scrollHeight,E=y.scrollWidth;w===Pt.current.height&&E===Pt.current.width||(Pt.current.height=w,Pt.current.width=E,nt({nativeEvent:{contentSize:{height:Pt.current.height,width:Pt.current.width}}}))}}),[It,We,nt]),Lt=Object(q.useMemo)((function(){return function(y){null!=y&&(y.clear=function(){null!=y&&(y.value="")},y.isFocused=function(){return null!=y&&ve.a.currentlyFocusedField()===y},Tt())}}),[Tt]);Object(le.a)((function(){var y=It.current;null!=y&&null!=At&&function setSelection(y,w){if(function isSelectionStale(y,w){var E=y.selectionEnd,q=y.selectionStart,ne=w.start,ie=w.end;return ne!==q||ie!==E}(y,w)){var E=w.start,q=w.end;try{y.setSelectionRange(E,q||E)}catch(y){}}}(y,At),document.activeElement===y&&(ve.a._currentlyFocusedNode=y)}),[It,At]);var jt=We?"textarea":"input",zt=[we.textinput],Ft=me.default.compose(y.style,Mt&&{placeholderTextColor:Mt});Object(se.a)(It,ot),Object(he.a)(It,{onMoveShouldSetResponder:st,onMoveShouldSetResponderCapture:dt,onResponderEnd:ct,onResponderGrant:ut,onResponderMove:lt,onResponderReject:pt,onResponderRelease:gt,onResponderStart:ht,onResponderTerminate:ft,onResponderTerminationRequest:mt,onScrollShouldSetResponder:vt,onScrollShouldSetResponderCapture:yt,onSelectionChangeShouldSetResponder:bt,onSelectionChangeShouldSetResponderCapture:xt,onStartShouldSetResponder:wt,onStartShouldSetResponderCapture:Ct});var Bt=function pickProps(y){return Object(oe.a)(y,ye)}(y);Bt.autoCapitalize=_e,Bt.autoComplete=Me||Se||"on",Bt.autoCorrect=Ae?"on":"off",Bt.classList=zt,Bt.dir=void 0!==je?je:"auto",Bt.enterkeyhint=St,Bt.onBlur=function handleBlur(y){ve.a._currentlyFocusedNode=null,Xe&&(y.nativeEvent.text=y.target.value,Xe(y))},Bt.onChange=function handleChange(y){var w=y.target.value;y.nativeEvent.text=w,Tt(),et&&et(y),tt&&tt(w)},Bt.onFocus=function handleFocus(y){var w=It.current;null!=w&&(ve.a._currentlyFocusedNode=w,rt&&(y.nativeEvent.text=y.target.value,rt(y)),Te&&(w.value=""),Dt&&w.select())},Bt.onKeyDown=function handleKeyDown(y){y.stopPropagation();var w=null==Oe?!We:Oe,E=y.nativeEvent,q=function isEventComposing(y){return y.isComposing||229===y.keyCode}(E);it&&it(y),"Enter"!==y.key||y.shiftKey||q||y.isDefaultPrevented()||(!Oe&&We||!_t||(y.preventDefault(),E.text=y.target.value,_t(y)),w&&null!=It.current&&It.current.blur())},Bt.onSelect=function handleSelectionChange(y){if(Rt)try{var w=y.target,E=w.selectionStart,q=w.selectionEnd;y.nativeEvent.selection={start:E,end:q},y.nativeEvent.text=y.target.value,Rt(y)}catch(y){}},Bt.readOnly=!Be,Bt.rows=We?Ye:void 0,Bt.spellCheck=null!=Ot?Ot:Ae,Bt.style=Ft,Bt.type=We?void 0:E,Bt.inputMode=ie;var Vt=Object(ge.a)(Bt),Ht=Object(pe.a)(It,Vt,Lt,w);return Bt.ref=Ht,Object(ne.a)(jt,Bt)}));Re.displayName="TextInput",Re.State=ve.a;var we=ie.a.create({textinput:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"}});w.default=Re},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.CloseButton=void 0;var ne=q(E(16)),ie=q(E(0)),oe=q(E(101));function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n background-color: white;\n border-color: rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n border-style: solid;\n border-width: 1px;\n height: 30px;\n justify-content: center;\n width: 30px;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var se=E(15).styled.View(_templateObject(),(function(y){return y.theme.closeButton.container.css}));w.CloseButton=function CloseButton(){return ie.default.createElement(se,null,ie.default.createElement(oe.default,{source:E(342),testID:"close-button"}))}},function(y,w,E){"use strict";E.r(w),w.default=E.p+"build/images/1d961efb24a1d0727c9fc7b7331a6e70.png"},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.AutoCompleteInput=void 0;var ie=ne(E(25)),oe=ne(E(56)),se=ne(E(57)),le=ne(E(16)),pe=q(E(0)),ge=ne(E(340)),he=E(194),me=E(37),ve=E(15),ye=E(58);function _templateObject(){var y=(0,le.default)(["\n flex: 1;\n margin: -5px;\n max-height: 60px;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var Re=(0,ve.styled)(ge.default)(_templateObject(),(function(y){return y.theme.messageInput.inputBox.css})),we=function isCommand(y){return"/"===y[0]&&y.split(" ").length<=1};w.AutoCompleteInput=function AutoCompleteInput(y){var w=y.additionalTextInputProps,E=y.onChange,q=y.setInputBoxRef,ne=y.triggerSettings,le=y.value,ge=(0,he.useSuggestionsContext)(),ve=ge.closeSuggestions,_e=ge.openSuggestions,Me=ge.updateSuggestions,Se=(0,me.useTranslationContext)().t,ke=(0,pe.useRef)(!1),Ae=(0,pe.useRef)(0),Oe=function handleChange(y){var w=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w?Ue(y):E(y)};(0,pe.useEffect)((function(){Oe(le,!0)}),[le]);var Te=function startTracking(y){ke.current=!0;var w=ne[y],E=w.component,q=w.title;_e(q,"string"==typeof E?E:pe.default.createElement(E,null))},je=function stopTracking(){ke.current=!1,ve()},Fe=function(){var y=(0,se.default)(oe.default.mark((function _callee(y){var w,E;return oe.default.wrap((function _callee$(q){for(;;)switch(q.prev=q.next){case 0:if(w=y.query,E=y.trigger,!(0,ye.isMentionTrigger)(E)){q.next=6;break}return q.next=4,ne[E].dataProvider(w,le,(function(y,q){w===q&&Me({data:y,onSelect:function onSelect(y){return Be({item:y,trigger:E})}})}));case 4:q.next=8;break;case 6:return q.next=8,ne[E].dataProvider(w,le,(function(y,q){w===q&&Me({data:y,onSelect:function onSelect(y){return Be({item:y,trigger:E})}})}));case 8:case"end":return q.stop()}}),_callee)})));return function updateSuggestions(w){return y.apply(this,arguments)}}(),Be=function onSelectSuggestion(y){var w=y.item,q=y.trigger;if(q){var ie="";(0,ye.isMentionTrigger)(q)?(0,he.isSuggestionUser)(w)&&(ie=ne[q].output(w).text+" "):(0,he.isSuggestionUser)(w)||(ie=ne[q].output(w).text+" ");var oe=le.slice(0,Ae.current),se=oe.search(new RegExp("\\"+q+"[^\\"+q+"\\s]*$")),pe=function computeCaretPosition(y,w){return w+y.length}(ie,se),ge=""+oe.substring(0,se)+ie;je(),E(le.replace(oe,ge)),Ae.current=pe||0,(0,ye.isMentionTrigger)(q)&&(0,he.isSuggestionUser)(w)&&ne[q].callback(w)}},Ve=function(){var y=(0,se.default)(oe.default.mark((function _callee2(y){var w;return oe.default.wrap((function _callee2$(E){for(;;)switch(E.prev=E.next){case 0:if(we(y)){E.next=2;break}return E.abrupt("return",!1);case 2:return ke.current||Te("/"),w=y.trim().slice(1),E.next=6,Fe({query:w,trigger:"/"});case 6:return E.abrupt("return",!0);case 7:case"end":return E.stop()}}),_callee2)})));return function handleCommand(w){return y.apply(this,arguments)}}(),Ne=function handleMentions(y){var w=y.selectionEnd,E=y.text.slice(0,w).match(/(?!^|\W)?[:@][^\s]*\s?[^\s]*$/g),q=E&&E[E.length-1].trim(),ie=q&&Object.keys(ne).find((function(y){return y===q[0]}))||null;if(!q||q.length<=0)je();else{var oe=q.slice(1);ie&&(ke.current||Te("@"),Fe({query:oe,trigger:"@"}))}},Ue=function handleSuggestions(y){setTimeout((0,se.default)(oe.default.mark((function _callee3(){return oe.default.wrap((function _callee3$(w){for(;;)switch(w.prev=w.next){case 0:if(" "!==y.slice(Ae.current-1,Ae.current)||ke.current){w.next=4;break}je(),w.next=8;break;case 4:return w.next=6,Ve(y);case 6:if(w.sent){w.next=8;break}Ne({selectionEnd:Ae.current,text:y});case 8:case"end":return w.stop()}}),_callee3)}))),100)};return pe.default.createElement(Re,(0,ie.default)({multiline:!0,onChangeText:function onChangeText(y){Oe(y)},onSelectionChange:function handleSelectionChange(y){var w=y.nativeEvent.selection.end;Ae.current=w},placeholder:Se("Write your message"),ref:q,testID:"auto-complete-text-input",value:le},w))}},function(y,w,E){var q=E(815);y.exports=function _objectWithoutProperties(y,w){if(null==y)return{};var E,ne,ie=q(y,w);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(y);for(ne=0;ne=0||Object.prototype.propertyIsEnumerable.call(y,E)&&(ie[E]=y[E])}return ie}},function(y,w,E){"use strict";E.r(w),function(y,q){E.d(w,"Allow",(function(){return ft})),E.d(w,"AllowAll",(function(){return wt})),E.d(w,"AnyResource",(function(){return vt})),E.d(w,"AnyRole",(function(){return yt})),E.d(w,"BuiltinPermissions",(function(){return Mt})),E.d(w,"BuiltinRoles",(function(){return _t})),E.d(w,"Channel",(function(){return dt})),E.d(w,"ChannelState",(function(){return tt})),E.d(w,"CheckSignature",(function(){return CheckSignature})),E.d(w,"ClientState",(function(){return ct})),E.d(w,"Deny",(function(){return mt})),E.d(w,"DenyAll",(function(){return Ct})),E.d(w,"DevToken",(function(){return DevToken})),E.d(w,"EVENT_MAP",(function(){return nt})),E.d(w,"JWTServerToken",(function(){return JWTServerToken})),E.d(w,"JWTUserToken",(function(){return JWTUserToken})),E.d(w,"MaxPriority",(function(){return Rt})),E.d(w,"MinPriority",(function(){return bt})),E.d(w,"Permission",(function(){return xt})),E.d(w,"StableWSConnection",(function(){return pt})),E.d(w,"StreamChat",(function(){return ht})),E.d(w,"TokenManager",(function(){return gt})),E.d(w,"UserFromToken",(function(){return UserFromToken})),E.d(w,"chatCodes",(function(){return st})),E.d(w,"decodeBase64",(function(){return et})),E.d(w,"encodeBase64",(function(){return Xe})),E.d(w,"isValidEventType",(function(){return it})),E.d(w,"logChatPromiseExecution",(function(){return logChatPromiseExecution}));var ne=E(392),ie=E(183),oe=E.n(ie),se=E(153),le=E.n(se),pe=E(556),ge=E.n(pe),he=E(229),me=E.n(he),ve=E(3),ye=E.n(ve),Re=E(11),we=E.n(Re),_e=E(133),Me=E.n(_e),Se=E(184),ke=E.n(Se),Ae=E(4),Oe=E.n(Ae),Te=E(557),je=E.n(Te),Fe=E(33),Be=E.n(Fe),Ve=E(397),Ne=E.n(Ve),Ue=E(558),We=E.n(Ue),$e=E(559),Ye=E.n($e);function isString(y){return"string"==typeof y}function isMapStringCallback(y,w){return w&&isString(y)}var Xe=function encodeBase64(y){return Object(ne.fromByteArray)(new Uint8Array(function map(y,w){var E=[];if(isString(y)&&isMapStringCallback(y,w)){for(var q=0,ne=y.length;q=8;)((q=se>>>(le-=8)&255)||E1&&void 0!==arguments[1]&&arguments[1];return this.addMessagesSorted([y],w)}},{key:"messageToImmutable",value:function messageToImmutable(y){return Be()(_objectSpread(_objectSpread({},y),{},{__html:y.html,created_at:y.created_at?new Date(y.created_at):new Date,updated_at:y.updated_at?new Date(y.updated_at):new Date,status:y.status||"received"}))}},{key:"addMessagesSorted",value:function addMessagesSorted(y){for(var w=arguments.length>1&&void 0!==arguments[1]&&arguments[1],E=arguments.length>2&&void 0!==arguments[2]&&arguments[2],q=0;qthis.last_message_at.getTime()&&(this.last_message_at=new Date(ne.created_at.getTime()));var ie=ne.parent_id;if(ie&&!ne.show_in_channel||(this.messages=this._addToMessageList(this.messages,ne,w)),ie){var oe=this.threads[ie]||Be()([]),se=this._addToMessageList(oe,ne,w);this.threads=this.threads.set(ie,se)}}}},{key:"addReaction",value:function addReaction(y,w){var E=this.messages;if(w){var q=w.parent_id,ne=w.show_in_channel;if(q&&this.threads[q])for(var ie=this.threads[q],oe=0;oe2&&void 0!==arguments[2]&&arguments[2],q=y;if(E&&(q=q.filter((function(y){return!(y.id&&w.id===y.id)}))),0===q.length)return q.concat(w);var ne=w.created_at.getTime();if(q[q.length-1].created_at.getTime()7e3&&(this.typing=this.typing.without(ne),this._channel.getClient().dispatchEvent({type:"typing.stop",user:{id:ne},cid:this._channel.cid}))}}},{key:"clearMessages",value:function clearMessages(){this.messages=Be()([])}}]),ChannelState}();function ownKeys$1(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _objectSpread$1(y){for(var w=1;w=y.length?{done:!0}:{done:!1,value:y[q++]}},e:function e(y){throw y},f:ne}}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 ie,oe=!0,se=!1;return{s:function s(){E=y[Symbol.iterator]()},n:function n(){var y=E.next();return oe=y.done,y},e:function e(y){se=!0,ie=y},f:function f(){try{oe||null==E.return||E.return()}finally{if(se)throw ie}}}}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);E1&&console.warn("client._buildSort() - multiple fields in a single sort object detected. Object's field order is not guaranteed");for(var oe=0,se=ie;oe=y.length?{done:!0}:{done:!1,value:y[q++]}},e:function e(y){throw y},f:ne}}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 ie,oe=!0,se=!1;return{s:function s(){E=y[Symbol.iterator]()},n:function n(){var y=E.next();return oe=y.done,y},e:function e(y){se=!0,ie=y},f:function f(){try{oe||null==E.return||E.return()}finally{if(se)throw ie}}}}function _arrayLikeToArray$1(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);E1&&void 0!==q[1]?q[1]:{},E=_objectSpread$2({filter_conditions:{cid:this.cid}},w),"string"!=typeof y){ne.next=6;break}E.query=y,ne.next=11;break;case 6:if("object"!==le()(y)){ne.next=10;break}E.message_filter_conditions=y,ne.next=11;break;case 10:throw Error("Invalid type ".concat(le()(y)," for query parameter"));case 11:return ne.next=13,this.getClient().wsPromise;case 13:return ne.next=15,this.getClient().get(this.getClient().baseURL+"/search",{payload:E});case 15:return ne.abrupt("return",ne.sent);case 16:case"end":return ne.stop()}}),_callee4,this)}))),function search(y){return st.apply(this,arguments)})},{key:"queryMembers",value:(ot=we()(ye.a.mark((function _callee5(y){var w,E,q,ne,ie,oe,se=arguments;return ye.a.wrap((function _callee5$(le){for(;;)switch(le.prev=le.next){case 0:return E=se.length>1&&void 0!==se[1]?se[1]:[],q=se.length>2&&void 0!==se[2]?se[2]:{},ie=this.type,this.id?ne=this.id:(null===(w=this.data)||void 0===w?void 0:w.members)&&Array.isArray(this.data.members)&&(oe=this.data.members),le.next=6,this.getClient().get(this.getClient().baseURL+"/members",{payload:_objectSpread$2({type:ie,id:ne,members:oe,sort:normalizeQuerySort(E),filter_conditions:y},q)});case 6:return le.abrupt("return",le.sent);case 7:case"end":return le.stop()}}),_callee5,this)}))),function queryMembers(y){return ot.apply(this,arguments)})},{key:"sendReaction",value:(rt=we()(ye.a.mark((function _callee6(y,w,E){var q;return ye.a.wrap((function _callee6$(ne){for(;;)switch(ne.prev=ne.next){case 0:if(y){ne.next=2;break}throw Error("Message id is missing");case 2:if(w&&0!==Object.keys(w).length){ne.next=4;break}throw Error("Reaction object is missing");case 4:return q={reaction:w},null!=E&&(q.reaction=_objectSpread$2(_objectSpread$2({},w),{},{user:{id:E}})),ne.next=8,this.getClient().post(this.getClient().baseURL+"/messages/".concat(y,"/reaction"),q);case 8:return ne.abrupt("return",ne.sent);case 9:case"end":return ne.stop()}}),_callee6,this)}))),function sendReaction(y,w,E){return rt.apply(this,arguments)})},{key:"deleteReaction",value:function deleteReaction(y,w,E){if(this._checkInitialized(),!w||!y)throw Error("Deleting a reaction requires specifying both the message and reaction type");var q=this.getClient().baseURL+"/messages/".concat(y,"/reaction/").concat(w);return E?this.getClient().delete(q,{user_id:E}):this.getClient().delete(q,{})}},{key:"update",value:(nt=we()(ye.a.mark((function _callee7(){var y,w,E,q=arguments;return ye.a.wrap((function _callee7$(ne){for(;;)switch(ne.prev=ne.next){case 0:return y=q.length>0&&void 0!==q[0]?q[0]:{},w=q.length>1?q[1]:void 0,["config","cid","created_by","id","member_count","type","created_at","updated_at","last_message_at"].forEach((function(w){delete y[w]})),ne.next=6,this.getClient().post(this._channelURL(),{message:w,data:y});case 6:return E=ne.sent,this.data=E.channel,ne.abrupt("return",E);case 9:case"end":return ne.stop()}}),_callee7,this)}))),function update(){return nt.apply(this,arguments)})},{key:"enableSlowMode",value:(et=we()(ye.a.mark((function _callee8(y){var w;return ye.a.wrap((function _callee8$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.getClient().post(this._channelURL(),{cooldown:y});case 2:return w=E.sent,this.data=w.channel,E.abrupt("return",w);case 5:case"end":return E.stop()}}),_callee8,this)}))),function enableSlowMode(y){return et.apply(this,arguments)})},{key:"disableSlowMode",value:(Xe=we()(ye.a.mark((function _callee9(){var y;return ye.a.wrap((function _callee9$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getClient().post(this._channelURL(),{cooldown:0});case 2:return y=w.sent,this.data=y.channel,w.abrupt("return",y);case 5:case"end":return w.stop()}}),_callee9,this)}))),function disableSlowMode(){return Xe.apply(this,arguments)})},{key:"delete",value:(Ye=we()(ye.a.mark((function _callee10(){return ye.a.wrap((function _callee10$(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,this.getClient().delete(this._channelURL(),{});case 2:return y.abrupt("return",y.sent);case 3:case"end":return y.stop()}}),_callee10,this)}))),function _delete(){return Ye.apply(this,arguments)})},{key:"truncate",value:($e=we()(ye.a.mark((function _callee11(){return ye.a.wrap((function _callee11$(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,this.getClient().post(this._channelURL()+"/truncate",{});case 2:return y.abrupt("return",y.sent);case 3:case"end":return y.stop()}}),_callee11,this)}))),function truncate(){return $e.apply(this,arguments)})},{key:"acceptInvite",value:(We=we()(ye.a.mark((function _callee12(){var y,w,E=arguments;return ye.a.wrap((function _callee12$(q){for(;;)switch(q.prev=q.next){case 0:return y=E.length>0&&void 0!==E[0]?E[0]:{},q.next=3,this.getClient().post(this._channelURL(),_objectSpread$2({accept_invite:!0},y));case 3:return w=q.sent,this.data=w.channel,q.abrupt("return",w);case 6:case"end":return q.stop()}}),_callee12,this)}))),function acceptInvite(){return We.apply(this,arguments)})},{key:"rejectInvite",value:(Ue=we()(ye.a.mark((function _callee13(){var y,w,E=arguments;return ye.a.wrap((function _callee13$(q){for(;;)switch(q.prev=q.next){case 0:return y=E.length>0&&void 0!==E[0]?E[0]:{},q.next=3,this.getClient().post(this._channelURL(),_objectSpread$2({reject_invite:!0},y));case 3:return w=q.sent,this.data=w.channel,q.abrupt("return",w);case 6:case"end":return q.stop()}}),_callee13,this)}))),function rejectInvite(){return Ue.apply(this,arguments)})},{key:"addMembers",value:(Ne=we()(ye.a.mark((function _callee14(y,w){var E;return ye.a.wrap((function _callee14$(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,this.getClient().post(this._channelURL(),{add_members:y,message:w});case 2:return E=q.sent,this.data=E.channel,q.abrupt("return",E);case 5:case"end":return q.stop()}}),_callee14,this)}))),function addMembers(y,w){return Ne.apply(this,arguments)})},{key:"addModerators",value:(Ve=we()(ye.a.mark((function _callee15(y,w){var E;return ye.a.wrap((function _callee15$(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,this.getClient().post(this._channelURL(),{add_moderators:y,message:w});case 2:return E=q.sent,this.data=E.channel,q.abrupt("return",E);case 5:case"end":return q.stop()}}),_callee15,this)}))),function addModerators(y,w){return Ve.apply(this,arguments)})},{key:"inviteMembers",value:(Fe=we()(ye.a.mark((function _callee16(y,w){var E;return ye.a.wrap((function _callee16$(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,this.getClient().post(this._channelURL(),{invites:y,message:w});case 2:return E=q.sent,this.data=E.channel,q.abrupt("return",E);case 5:case"end":return q.stop()}}),_callee16,this)}))),function inviteMembers(y,w){return Fe.apply(this,arguments)})},{key:"removeMembers",value:(je=we()(ye.a.mark((function _callee17(y,w){var E;return ye.a.wrap((function _callee17$(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,this.getClient().post(this._channelURL(),{remove_members:y,message:w});case 2:return E=q.sent,this.data=E.channel,q.abrupt("return",E);case 5:case"end":return q.stop()}}),_callee17,this)}))),function removeMembers(y,w){return je.apply(this,arguments)})},{key:"demoteModerators",value:(Te=we()(ye.a.mark((function _callee18(y,w){var E;return ye.a.wrap((function _callee18$(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,this.getClient().post(this._channelURL(),{demote_moderators:y,message:w});case 2:return E=q.sent,this.data=E.channel,q.abrupt("return",E);case 5:case"end":return q.stop()}}),_callee18,this)}))),function demoteModerators(y,w){return Te.apply(this,arguments)})},{key:"mute",value:(Ae=we()(ye.a.mark((function _callee19(){var y,w=arguments;return ye.a.wrap((function _callee19$(E){for(;;)switch(E.prev=E.next){case 0:return y=w.length>0&&void 0!==w[0]?w[0]:{},E.next=3,this.getClient().post(this.getClient().baseURL+"/moderation/mute/channel",_objectSpread$2({channel_cid:this.cid},y));case 3:return E.abrupt("return",E.sent);case 4:case"end":return E.stop()}}),_callee19,this)}))),function mute(){return Ae.apply(this,arguments)})},{key:"unmute",value:(Se=we()(ye.a.mark((function _callee20(){var y,w=arguments;return ye.a.wrap((function _callee20$(E){for(;;)switch(E.prev=E.next){case 0:return y=w.length>0&&void 0!==w[0]?w[0]:{},E.next=3,this.getClient().post(this.getClient().baseURL+"/moderation/unmute/channel",_objectSpread$2({channel_cid:this.cid},y));case 3:return E.abrupt("return",E.sent);case 4:case"end":return E.stop()}}),_callee20,this)}))),function unmute(){return Se.apply(this,arguments)})},{key:"muteStatus",value:function muteStatus(){return this._checkInitialized(),this.getClient()._muteStatus(this.cid)}},{key:"sendAction",value:function sendAction(y,w){if(this._checkInitialized(),!y)throw Error("Message id is missing");return this.getClient().post(this.getClient().baseURL+"/messages/".concat(y,"/action"),{message_id:y,form_data:w,id:this.id,type:this.type})}},{key:"keystroke",value:(_e=we()(ye.a.mark((function _callee21(y){var w,E,q;return ye.a.wrap((function _callee21$(ne){for(;;)switch(ne.prev=ne.next){case 0:if(null===(w=this.getConfig())||void 0===w?void 0:w.typing_events){ne.next=2;break}return ne.abrupt("return");case 2:if(E=new Date,q=this.lastTypingEvent&&E.getTime()-this.lastTypingEvent.getTime(),this.lastKeyStroke=E,this.isTyping=!0,!(null===q||q>2e3)){ne.next=10;break}return this.lastTypingEvent=new Date,ne.next=10,this.sendEvent({type:"typing.start",parent_id:y});case 10:case"end":return ne.stop()}}),_callee21,this)}))),function keystroke(y){return _e.apply(this,arguments)})},{key:"stopTyping",value:(Re=we()(ye.a.mark((function _callee22(y){var w;return ye.a.wrap((function _callee22$(E){for(;;)switch(E.prev=E.next){case 0:if(null===(w=this.getConfig())||void 0===w?void 0:w.typing_events){E.next=2;break}return E.abrupt("return");case 2:return this.lastTypingEvent=null,this.isTyping=!1,E.next=6,this.sendEvent({type:"typing.stop",parent_id:y});case 6:case"end":return E.stop()}}),_callee22,this)}))),function stopTyping(y){return Re.apply(this,arguments)})},{key:"lastMessage",value:function lastMessage(){var y=this.state.messages.length-5;y<0&&(y=0);var lastMessage,w=this.state.messages.length+1,E=this.state.messages.slice(y,w).asMutable();return E.sort((function(y,w){return w.created_at.getTime()-y.created_at.getTime()})),E.length>0&&(lastMessage=E[0]),lastMessage}},{key:"markRead",value:(ve=we()(ye.a.mark((function _callee23(){var y,w,E=arguments;return ye.a.wrap((function _callee23$(q){for(;;)switch(q.prev=q.next){case 0:if(w=E.length>0&&void 0!==E[0]?E[0]:{},this._checkInitialized(),null===(y=this.getConfig())||void 0===y?void 0:y.read_events){q.next=4;break}return q.abrupt("return",Promise.resolve(null));case 4:return q.next=6,this.getClient().post(this._channelURL()+"/read",_objectSpread$2({},w));case 6:return q.abrupt("return",q.sent);case 7:case"end":return q.stop()}}),_callee23,this)}))),function markRead(){return ve.apply(this,arguments)})},{key:"clean",value:function clean(){this.lastKeyStroke&&((new Date).getTime()-this.lastKeyStroke.getTime()>1e3&&this.isTyping&&logChatPromiseExecution(this.stopTyping(),"stop typing event"));this.state.clean()}},{key:"watch",value:(he=we()(ye.a.mark((function _callee24(y){var w,E,q;return ye.a.wrap((function _callee24$(ne){for(;;)switch(ne.prev=ne.next){case 0:return w={state:!0,watch:!0,presence:!1},ne.next=3,this.getClient().wsPromise;case 3:return this.getClient()._hasConnectionID()||(w.watch=!1),E=_objectSpread$2(_objectSpread$2({},w),y),ne.next=7,this.query(E);case 7:return q=ne.sent,this.initialized=!0,this.data=q.channel,this._client.logger("info","channel:watch() - started watching channel ".concat(this.cid),{tags:["channel"],channel:this}),ne.abrupt("return",q);case 12:case"end":return ne.stop()}}),_callee24,this)}))),function watch(y){return he.apply(this,arguments)})},{key:"stopWatching",value:(ge=we()(ye.a.mark((function _callee25(){var y;return ye.a.wrap((function _callee25$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getClient().post(this._channelURL()+"/stop-watching",{});case 2:return y=w.sent,this._client.logger("info","channel:watch() - stopped watching channel ".concat(this.cid),{tags:["channel"],channel:this}),w.abrupt("return",y);case 5:case"end":return w.stop()}}),_callee25,this)}))),function stopWatching(){return ge.apply(this,arguments)})},{key:"getReplies",value:(pe=we()(ye.a.mark((function _callee26(y,w){var E;return ye.a.wrap((function _callee26$(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,this.getClient().get(this.getClient().baseURL+"/messages/".concat(y,"/replies"),_objectSpread$2({},w));case 2:return(E=q.sent).messages&&this.state.addMessagesSorted(E.messages),q.abrupt("return",E);case 5:case"end":return q.stop()}}),_callee26,this)}))),function getReplies(y,w){return pe.apply(this,arguments)})},{key:"getReactions",value:function getReactions(y,w){return this.getClient().get(this.getClient().baseURL+"/messages/".concat(y,"/reactions"),_objectSpread$2({},w))}},{key:"getMessagesById",value:function getMessagesById(y){return this.getClient().get(this._channelURL()+"/messages",{ids:y.join(",")})}},{key:"lastRead",value:function lastRead(){this._checkInitialized();var y=this.getClient().userID;if(y)return this.state.read[y]?this.state.read[y].last_read:null}},{key:"_countMessageAsUnread",value:function _countMessageAsUnread(y){var w,E;return!y.shadowed&&(!y.silent&&((null===(w=y.user)||void 0===w?void 0:w.id)!==this.getClient().userID&&(!(null===(E=y.user)||void 0===E?void 0:E.id)||!this.getClient().userMuteStatus(y.user.id))))}},{key:"countUnread",value:function countUnread(y){if(!y)return this.state.unreadCount;for(var w=0,E=0;Ey&&this._countMessageAsUnread(q)&&w++}return w}},{key:"countUnreadMentions",value:function countUnreadMentions(){for(var y=this.lastRead(),w=this.getClient().userID,E=0,q=0;qy)&&(null===(ne=ie.mentioned_users)||void 0===ne?void 0:ne.find((function(y){return y.id===w})))&&E++}return E}},{key:"query",value:(se=we()(ye.a.mark((function _callee27(y){var w,E;return ye.a.wrap((function _callee27$(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,this.getClient().wsPromise;case 2:return w="".concat(this.getClient().baseURL,"/channels/").concat(this.type),this.id&&(w+="/".concat(this.id)),q.next=6,this.getClient().post(w+"/query",_objectSpread$2({data:this._data,state:!0},y));case 6:return E=q.sent,this.id||(this.id=E.channel.id,this.cid=E.channel.cid,this.cid in this.getClient().activeChannels||(this.getClient().activeChannels[this.cid]=this)),this.getClient()._addChannelConfig(E),this._initializeState(E),q.abrupt("return",E);case 11:case"end":return q.stop()}}),_callee27,this)}))),function query(y){return se.apply(this,arguments)})},{key:"banUser",value:(ie=we()(ye.a.mark((function _callee28(y,w){return ye.a.wrap((function _callee28$(E){for(;;)switch(E.prev=E.next){case 0:return this._checkInitialized(),E.next=3,this.getClient().banUser(y,_objectSpread$2(_objectSpread$2({},w),{},{type:this.type,id:this.id}));case 3:return E.abrupt("return",E.sent);case 4:case"end":return E.stop()}}),_callee28,this)}))),function banUser(y,w){return ie.apply(this,arguments)})},{key:"hide",value:(ne=we()(ye.a.mark((function _callee29(){var y,w,E=arguments;return ye.a.wrap((function _callee29$(q){for(;;)switch(q.prev=q.next){case 0:return y=E.length>0&&void 0!==E[0]?E[0]:null,w=E.length>1&&void 0!==E[1]&&E[1],this._checkInitialized(),q.next=5,this.getClient().post("".concat(this._channelURL(),"/hide"),{user_id:y,clear_history:w});case 5:return q.abrupt("return",q.sent);case 6:case"end":return q.stop()}}),_callee29,this)}))),function hide(){return ne.apply(this,arguments)})},{key:"show",value:(q=we()(ye.a.mark((function _callee30(){var y,w=arguments;return ye.a.wrap((function _callee30$(E){for(;;)switch(E.prev=E.next){case 0:return y=w.length>0&&void 0!==w[0]?w[0]:null,this._checkInitialized(),E.next=4,this.getClient().post("".concat(this._channelURL(),"/show"),{user_id:y});case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}}),_callee30,this)}))),function show(){return q.apply(this,arguments)})},{key:"unbanUser",value:(E=we()(ye.a.mark((function _callee31(y){return ye.a.wrap((function _callee31$(w){for(;;)switch(w.prev=w.next){case 0:return this._checkInitialized(),w.next=3,this.getClient().unbanUser(y,{type:this.type,id:this.id});case 3:return w.abrupt("return",w.sent);case 4:case"end":return w.stop()}}),_callee31,this)}))),function unbanUser(y){return E.apply(this,arguments)})},{key:"shadowBan",value:(w=we()(ye.a.mark((function _callee32(y,w){return ye.a.wrap((function _callee32$(E){for(;;)switch(E.prev=E.next){case 0:return this._checkInitialized(),E.next=3,this.getClient().shadowBan(y,_objectSpread$2(_objectSpread$2({},w),{},{type:this.type,id:this.id}));case 3:return E.abrupt("return",E.sent);case 4:case"end":return E.stop()}}),_callee32,this)}))),function shadowBan(y,E){return w.apply(this,arguments)})},{key:"removeShadowBan",value:(y=we()(ye.a.mark((function _callee33(y){return ye.a.wrap((function _callee33$(w){for(;;)switch(w.prev=w.next){case 0:return this._checkInitialized(),w.next=3,this.getClient().removeShadowBan(y,{type:this.type,id:this.id});case 3:return w.abrupt("return",w.sent);case 4:case"end":return w.stop()}}),_callee33,this)}))),function removeShadowBan(w){return y.apply(this,arguments)})},{key:"on",value:function on(y,w){var E=w?y:"all";if(!it(E))throw Error("Invalid event type ".concat(E));var q=w||y;E in this.listeners||(this.listeners[E]=[]),this._client.logger("info","Attaching listener for ".concat(E," event on channel ").concat(this.cid),{tags:["event","channel"],channel:this}),this.listeners[E].push(q)}},{key:"off",value:function off(y,w){var E=w?y:"all";if(!it(E))throw Error("Invalid event type ".concat(E));var q=w||y;E in this.listeners||(this.listeners[E]=[]),this._client.logger("info","Removing listener for ".concat(E," event from channel ").concat(this.cid),{tags:["event","channel"],channel:this}),this.listeners[E]=this.listeners[E].filter((function(y){return y!==q}))}},{key:"_handleChannelEvent",value:function _handleChannelEvent(y){var w,E,q,ne,ie,oe,se,le=this;this._client.logger("info","channel:_handleChannelEvent - Received event of type { ".concat(y.type," } on ").concat(this.cid),{tags:["event","channel"],channel:this});var pe=le.state;switch(y.type){case"typing.start":(null===(w=y.user)||void 0===w?void 0:w.id)&&(pe.typing=pe.typing.set(y.user.id,Be()(y)));break;case"typing.stop":(null===(E=y.user)||void 0===E?void 0:E.id)&&(pe.typing=pe.typing.without(y.user.id));break;case"message.read":var ge,he;if(null===(q=y.user)||void 0===q?void 0:q.id)pe.read=pe.read.set(y.user.id,Be()({user:_objectSpread$2({},y.user),last_read:y.received_at})),(null===(ge=y.user)||void 0===ge?void 0:ge.id)===(null===(he=this.getClient().user)||void 0===he?void 0:he.id)&&(pe.unreadCount=0);break;case"user.watching.start":case"user.updated":(null===(ne=y.user)||void 0===ne?void 0:ne.id)&&(pe.watchers=pe.watchers.set(y.user.id,Be()(y.user)));break;case"user.watching.stop":(null===(ie=y.user)||void 0===ie?void 0:ie.id)&&(pe.watchers=pe.watchers.without(y.user.id));break;case"message.deleted":y.message&&(y.hard_delete?pe.removeMessage(y.message):pe.addMessageSorted(y.message));break;case"message.new":if(y.message){var me,ve,ye=(null===(me=y.user)||void 0===me?void 0:me.id)===(null===(ve=this.getClient().user)||void 0===ve?void 0:ve.id);pe.addMessageSorted(y.message,ye),ye?pe.unreadCount=0:this._countMessageAsUnread(y.message)&&(pe.unreadCount=pe.unreadCount+1)}break;case"message.updated":y.message&&pe.addMessageSorted(y.message);break;case"channel.truncated":pe.clearMessages(),pe.unreadCount=0;break;case"member.added":case"member.updated":var Re;if(null===(oe=y.member)||void 0===oe?void 0:oe.user_id)pe.members=pe.members.set(null===(Re=y.member)||void 0===Re?void 0:Re.user_id,Be()(y.member));break;case"member.removed":(null===(se=y.user)||void 0===se?void 0:se.id)&&(pe.members=pe.members.without(y.user.id));break;case"channel.updated":y.channel&&(le.data=Be()(y.channel));break;case"reaction.new":y.reaction&&pe.addReaction(y.reaction,y.message);break;case"reaction.deleted":y.reaction&&pe.removeReaction(y.reaction,y.message);break;case"channel.hidden":y.clear_history&&pe.clearMessages()}void 0!==y.watcher_count&&(le.state.watcher_count=y.watcher_count)}},{key:"_checkInitialized",value:function _checkInitialized(){if(!this.initialized&&!this.getClient()._isUsingServerAuth())throw Error("Channel ".concat(this.cid," hasn't been initialized yet. Make sure to call .watch() and wait for it to resolve"))}},{key:"_initializeState",value:function _initializeState(y){if(y.members){var w,E=_createForOfIteratorHelper$1(y.members);try{for(E.s();!(w=E.n()).done;){var q=w.value;q.user&&this.getClient().state.updateUserReference(q.user,this.cid)}}catch(y){E.e(y)}finally{E.f()}}this.state.membership=Be()(y.membership?y.membership:{});var ne=y.messages||[];if(this.state.messages||(this.state.messages=Be()([])),this.state.addMessagesSorted(ne,!1,!0),this.state.watcher_count=y.watcher_count?y.watcher_count:0,y.watchers){var ie,se=_createForOfIteratorHelper$1(y.watchers);try{for(se.s();!(ie=se.n()).done;){var le=ie.value;le&&(this.getClient().state.updateUserReference(le,this.cid),this.state.watchers=this.state.watchers.set(le.id,le))}}catch(y){se.e(y)}finally{se.f()}}if(null!=this.getClient().userID){var pe=null!=this.state.last_message_at?this.state.last_message_at:new Date,ge=this.getClient().user;ge&&(this.state.read=this.state.read.set(ge.id,{user:this.getClient().user,last_read:pe}))}if(y.read){var he,me=_createForOfIteratorHelper$1(y.read);try{for(me.s();!(he=me.n()).done;){var ve,ye=he.value,Re=oe()(_objectSpread$2({},ye));Re.last_read=new Date(ye.last_read),this.state.read=this.state.read.set(ye.user.id,Re),ye.user.id===(null===(ve=this.getClient().user)||void 0===ve?void 0:ve.id)&&(this.state.unreadCount=Re.unread_messages)}}catch(y){me.e(y)}finally{me.f()}}if(y.members){var we,_e=_createForOfIteratorHelper$1(y.members);try{for(_e.s();!(we=_e.n()).done;){var Me=we.value;Me.user&&(this.state.members=this.state.members.set(Me.user.id,Me))}}catch(y){_e.e(y)}finally{_e.f()}}}},{key:"_disconnect",value:function _disconnect(){this._client.logger("info","channel:disconnect() - Disconnecting the channel ".concat(this.cid),{tags:["connection","channel"],channel:this}),this.disconnected=!0}}]),Channel}();function _createForOfIteratorHelper$2(y,w){var E;if("undefined"==typeof Symbol||null==y[Symbol.iterator]){if(Array.isArray(y)||(E=function _unsupportedIterableToArray$2(y,w){if(!y)return;if("string"==typeof y)return _arrayLikeToArray$2(y,w);var E=Object.prototype.toString.call(y).slice(8,-1);"Object"===E&&y.constructor&&(E=y.constructor.name);if("Map"===E||"Set"===E)return Array.from(y);if("Arguments"===E||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return _arrayLikeToArray$2(y,w)}(y))||w&&y&&"number"==typeof y.length){E&&(y=E);var q=0,ne=function F(){};return{s:ne,n:function n(){return q>=y.length?{done:!0}:{done:!1,value:y[q++]}},e:function e(y){throw y},f:ne}}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 ie,oe=!0,se=!1;return{s:function s(){E=y[Symbol.iterator]()},n:function n(){var y=E.next();return oe=y.done,y},e:function e(y){se=!0,ie=y},f:function f(){try{oe||null==E.return||E.return()}finally{if(se)throw ie}}}}function _arrayLikeToArray$2(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);E1&&void 0!==arguments[1])||arguments[1];ut(y)&&(E=y.code,q="unknown",ne=y.reason),lt(y)&&(E=y.error.code,q=y.error.StatusCode,ne=y.error.message),w.logger("warn","connection:_errorFromWSEvent() - WS failed with code ".concat(E),{tags:["connection"],event:y});var oe=new Error("WS failed with code ".concat(E," and reason - ").concat(ne));return oe.code=E,oe.StatusCode=q,oe.isWSFailure=ie,oe})),Oe()(this,"_listenForConnectionChanges",(function(){"undefined"!=typeof window&&null!=window&&null!=window.addEventListener&&(window.addEventListener("offline",w.onlineStatusChanged),window.addEventListener("online",w.onlineStatusChanged))})),Oe()(this,"_removeConnectionListeners",(function(){"undefined"!=typeof window&&null!=window&&null!=window.addEventListener&&(window.removeEventListener("offline",w.onlineStatusChanged),window.removeEventListener("online",w.onlineStatusChanged))})),Oe()(this,"_retryInterval",(function(){var y=Math.min(500+2e3*w.consecutiveFailures,25e3),E=Math.min(Math.max(250,2e3*(w.consecutiveFailures-1)),25e3);return Math.floor(Math.random()*(y-E)+E)})),Oe()(this,"_setupConnectionPromise",(function(){var y=w;w.isResolved=!1,w.connectionOpen=new Promise((function(w,E){y.resolvePromise=w,y.rejectPromise=E})).then((function(y){if(y.data&&"string"==typeof y.data){var w=JSON.parse(y.data);if(w&&null!=w.error)throw new Error(JSON.stringify(w.error));return w}}),(function(y){throw y}))})),this.wsBaseURL=ve,this.clientID=ne,this.userID=me,this.user=ge,this.authType=q,this.userAgent=he,this.apiKey=E,this.tokenManager=pe,this.consecutiveFailures=0,this.totalFailures=0,this.isConnecting=!1,this.isHealthy=!1,this.recoverCallback=le,this.messageCallback=se,this.eventCallback=ie,this.logger=oe,this.wsID=1,this.lastEvent=null,this.healthCheckInterval=3e4,this.monitorInterval=1e3,this._listenForConnectionChanges()}var y,w,E;return ke()(StableWSConnection,[{key:"connect",value:(E=we()(ye.a.mark((function _callee(){var y;return ye.a.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:if(!this.isConnecting){w.next=2;break}throw Error("You've called connect twice, can only attempt 1 connection at the time");case 2:return w.prev=2,this.isConnecting=!0,w.next=6,this._connect();case 6:return y=w.sent,this.isConnecting=!1,this.consecutiveFailures=0,this._startMonitor(),this._startHealthCheck(),this.logger("info","connection:connect() - Established ws connection with healthcheck: ".concat(y),{tags:["connection"]}),w.abrupt("return",y);case 15:if(w.prev=15,w.t0=w.catch(2),this.isConnecting=!1,this.isHealthy=!1,this.consecutiveFailures+=1,w.t0.code!==st.TOKEN_EXPIRED||this.tokenManager.isStatic()){w.next=23;break}return this.logger("info","connection:connect() - WS failure due to expired token, so going to try to reload token and reconnect",{tags:["connection"]}),w.abrupt("return",this._reconnect({refreshToken:!0}));case 23:if(w.t0.isWSFailure){w.next=25;break}throw new Error(JSON.stringify({code:w.t0.code,StatusCode:w.t0.StatusCode,message:w.t0.message,isWSFailure:w.t0.isWSFailure}));case 25:case"end":return w.stop()}}),_callee,this,[[2,15]])}))),function connect(){return E.apply(this,arguments)})},{key:"disconnect",value:function disconnect(y){var w,E=this;this.logger("info","connection:disconnect() - Closing the websocket connection for wsID ".concat(this.wsID),{tags:["connection"]}),this.wsID+=1,this.healthCheckIntervalRef&&clearInterval(this.healthCheckIntervalRef),this.monitorIntervalRef&&clearInterval(this.monitorIntervalRef),this._removeConnectionListeners(),this.isHealthy=!1,this.ws&&this.ws.removeAllListeners&&this.ws.removeAllListeners();var q=this.ws;return q&&q.close&&q.readyState===q.OPEN?(w=new Promise((function(w){var ne=function onclose(y){E.logger("info","connection:disconnect() - resolving isClosedPromise ".concat(y?"with":"without"," close frame"),{tags:["connection"],event:y}),w()};q.onclose=ne,setTimeout(ne,null!=y?y:1e3)})),this.logger("info","connection:disconnect() - Manually closed connection by calling client.disconnect()",{tags:["connection"]}),q.close(st.WS_CLOSED_SUCCESS,"Manually closed connection by calling client.disconnect()")):(this.logger("info","connection:disconnect() - ws connection doesn't exist or it is already closed.",{tags:["connection"]}),w=Promise.resolve()),delete this.ws,w}},{key:"_connect",value:(w=we()(ye.a.mark((function _callee2(){var y,w;return ye.a.wrap((function _callee2$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.tokenManager.tokenReady();case 2:return this._setupConnectionPromise(),y=this._buildUrl(),this.ws=new Ye.a(y),this.ws.onopen=this.onopen.bind(this,this.wsID),this.ws.onclose=this.onclose.bind(this,this.wsID),this.ws.onerror=this.onerror.bind(this,this.wsID),this.ws.onmessage=this.onmessage.bind(this,this.wsID),E.next=11,this.connectionOpen;case 11:if(!(w=E.sent)){E.next=15;break}return this.connectionID=w.connection_id,E.abrupt("return",w);case 15:return E.abrupt("return",void 0);case 16:case"end":return E.stop()}}),_callee2,this)}))),function _connect(){return w.apply(this,arguments)})},{key:"_reconnect",value:(y=we()(ye.a.mark((function _callee3(){var y,w,E,q=arguments;return ye.a.wrap((function _callee3$(ne){for(;;)switch(ne.prev=ne.next){case 0:if(y=q.length>0&&void 0!==q[0]?q[0]:{},this.logger("info","connection:_reconnect() - Initiating the reconnect",{tags:["connection"]}),!this.isConnecting&&!this.isHealthy){ne.next=5;break}return this.logger("info","connection:_reconnect() - Abort (1) since already connecting or healthy",{tags:["connection"]}),ne.abrupt("return");case 5:return(w=y.interval)||(w=this._retryInterval()),ne.next=9,ot(w);case 9:if(!this.isConnecting&&!this.isHealthy){ne.next=12;break}return this.logger("info","connection:_reconnect() - Abort (2) since already connecting or healthy",{tags:["connection"]}),ne.abrupt("return");case 12:if(this.isConnecting=!0,this.logger("info","connection:_reconnect() - Destroying current WS connection",{tags:["connection"]}),this._destroyCurrentWSConnection(),!y.refreshToken){ne.next=18;break}return ne.next=18,this.tokenManager.loadToken();case 18:return ne.prev=18,ne.next=21,this._connect();case 21:if(E=ne.sent,!this.recoverCallback){ne.next=27;break}return this.logger("info","connection:_reconnect() - Waiting for recoverCallBack",{tags:["connection"]}),ne.next=26,this.recoverCallback(E);case 26:this.logger("info","connection:_reconnect() - Finished recoverCallBack",{tags:["connection"]});case 27:this.isConnecting=!1,this.consecutiveFailures=0,ne.next=40;break;case 31:if(ne.prev=31,ne.t0=ne.catch(18),this.isConnecting=!1,this.isHealthy=!1,this.consecutiveFailures+=1,ne.t0.code!==st.TOKEN_EXPIRED||this.tokenManager.isStatic()){ne.next=39;break}return this.logger("info","connection:_reconnect() - WS failure due to expired token, so going to try to reload token and reconnect",{tags:["connection"]}),ne.abrupt("return",this._reconnect({refreshToken:!0}));case 39:ne.t0.isWSFailure&&(this.logger("info","connection:_reconnect() - WS failure, so going to try to reconnect",{tags:["connection"]}),this._reconnect());case 40:this.logger("info","connection:_reconnect() - == END ==",{tags:["connection"]});case 41:case"end":return ne.stop()}}),_callee3,this,[[18,31]])}))),function _reconnect(){return y.apply(this,arguments)})},{key:"_destroyCurrentWSConnection",value:function _destroyCurrentWSConnection(){this.wsID+=1;try{this.ws&&this.ws.removeAllListeners&&this.ws.removeAllListeners(),this.ws&&this.ws.close&&this.ws.close()}catch(y){}}},{key:"_startHealthCheck",value:function _startHealthCheck(){var y=this;this.healthCheckIntervalRef=setInterval((function(){var w=[{type:"health.check",client_id:y.clientID,user_id:y.userID}];try{var E;null===(E=y.ws)||void 0===E||E.send(JSON.stringify(w))}catch(y){}}),y.healthCheckInterval)}},{key:"_startMonitor",value:function _startMonitor(){var y=this,w=this;this.monitorIntervalRef=setInterval((function(){var E=new Date;w.lastEvent&&E.getTime()-w.lastEvent.getTime()>y.healthCheckInterval+1e4&&(y.logger("info","connection:_startMonitor - going to reconnect",{tags:["connection"]}),w._setHealth(!1),w._reconnect())}),w.monitorInterval)}}]),StableWSConnection}();function ownKeys$3(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _objectSpread$3(y){for(var w=1;w2&&void 0!==arguments[2]?arguments[2]:{};if("string"!=typeof w)throw new TypeError("userId should be a string");_objectSpread$3({user_id:w},E);throw Error("Unable to find jwt crypto, if you are getting this error is probably because you are trying to generate tokens on browser or React Native (or other environment where crypto functions are not available). Please Note: token should only be generated server-side.")}function JWTServerToken(y){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},E={server:!0},q=oe()({algorithm:"HS256",noTimestamp:!0},w);return null.sign(E,y,q)}function UserFromToken(y){var w=y.split(".");if(3!==w.length)return"";var E=w[1],q=et(E);return JSON.parse(q).user_id}function DevToken(y){return["eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",Xe(JSON.stringify({user_id:y})),"devtoken"].join(".")}function CheckSignature(w,E,q){var ne=y.from(E,"ascii");return null.createHmac("sha256",ne).update(w).digest("hex")===q}var gt=function TokenManager(y){var w=this;Me()(this,TokenManager),Oe()(this,"loadTokenPromise",void 0),Oe()(this,"type",void 0),Oe()(this,"secret",void 0),Oe()(this,"token",void 0),Oe()(this,"tokenProvider",void 0),Oe()(this,"user",void 0),Oe()(this,"setTokenOrProvider",function(){var y=we()(ye.a.mark((function _callee(y,E){return ye.a.wrap((function _callee$(q){for(;;)switch(q.prev=q.next){case 0:return w.validateToken(y,E),w.user=E,isFunction(y)&&(w.tokenProvider=y,w.type="provider"),"string"==typeof y&&(w.token=y,w.type="static"),!y&&w.user&&w.secret&&(w.token=JWTUserToken(w.secret,E.id,{},{}),w.type="static"),q.next=7,w.loadToken();case 7:case"end":return q.stop()}}),_callee)})));return function(w,E){return y.apply(this,arguments)}}()),Oe()(this,"reset",(function(){w.token=void 0,w.user=void 0,w.loadTokenPromise=null})),Oe()(this,"validateToken",(function(y,E){if(!E||!E.anon||y){if(!w.secret&&!y)throw new Error("User token can not be empty");if(y&&"string"!=typeof y&&!isFunction(y))throw new Error("user token should either be a string or a function");if("string"==typeof y){if(E.anon&&""===y)return;var q=UserFromToken(y);if(null!=y&&(null==q||""===q||q!==E.id))throw new Error("userToken does not have a user_id or is not matching with user.id")}}})),Oe()(this,"tokenReady",(function(){return w.loadTokenPromise})),Oe()(this,"loadToken",(function(){return w.loadTokenPromise=new Promise(function(){var y=we()(ye.a.mark((function _callee2(y){return ye.a.wrap((function _callee2$(E){for(;;)switch(E.prev=E.next){case 0:if("static"!==w.type){E.next=2;break}return E.abrupt("return",y(w.token));case 2:if(!w.tokenProvider||"string"==typeof w.tokenProvider){E.next=7;break}return E.next=5,w.tokenProvider();case 5:w.token=E.sent,y(w.token);case 7:case"end":return E.stop()}}),_callee2)})));return function(w){return y.apply(this,arguments)}}()),w.loadTokenPromise})),Oe()(this,"getToken",(function(){if(w.token)return w.token;if(w.user&&w.user.anon&&!w.token)return w.token;if(w.secret)return JWTServerToken(w.secret);throw new Error("Both secret and user tokens are not set. Either client.setUser wasn't called or client.disconnect was called")})),Oe()(this,"isStatic",(function(){return"static"===w.type})),this.loadTokenPromise=null,y&&(this.secret=y),this.type="static",this.secret&&(this.token=JWTServerToken(this.secret))};function _createForOfIteratorHelper$3(y,w){var E;if("undefined"==typeof Symbol||null==y[Symbol.iterator]){if(Array.isArray(y)||(E=function _unsupportedIterableToArray$3(y,w){if(!y)return;if("string"==typeof y)return _arrayLikeToArray$3(y,w);var E=Object.prototype.toString.call(y).slice(8,-1);"Object"===E&&y.constructor&&(E=y.constructor.name);if("Map"===E||"Set"===E)return Array.from(y);if("Arguments"===E||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return _arrayLikeToArray$3(y,w)}(y))||w&&y&&"number"==typeof y.length){E&&(y=E);var q=0,ne=function F(){};return{s:ne,n:function n(){return q>=y.length?{done:!0}:{done:!1,value:y[q++]}},e:function e(y){throw y},f:ne}}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 ie,oe=!0,se=!1;return{s:function s(){E=y[Symbol.iterator]()},n:function n(){var y=E.next();return oe=y.done,y},e:function e(y){se=!0,ie=y},f:function f(){try{oe||null==E.return||E.return()}finally{if(se)throw ie}}}}function _arrayLikeToArray$3(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);E3&&void 0!==se[3]?se[3]:{},le.next=3,ne.tokenManager.tokenReady();case 3:ie=ne._enrichAxiosOptions(q),le.prev=4,ne._logApiRequest(y,w,E,ie),le.t0=y,le.next="get"===le.t0?9:"delete"===le.t0?13:"post"===le.t0?17:"put"===le.t0?21:"patch"===le.t0?25:"options"===le.t0?29:33;break;case 9:return le.next=11,ne.axiosInstance.get(w,ie);case 11:return oe=le.sent,le.abrupt("break",34);case 13:return le.next=15,ne.axiosInstance.delete(w,ie);case 15:return oe=le.sent,le.abrupt("break",34);case 17:return le.next=19,ne.axiosInstance.post(w,E,ie);case 19:return oe=le.sent,le.abrupt("break",34);case 21:return le.next=23,ne.axiosInstance.put(w,E,ie);case 23:return oe=le.sent,le.abrupt("break",34);case 25:return le.next=27,ne.axiosInstance.patch(w,E,ie);case 27:return oe=le.sent,le.abrupt("break",34);case 29:return le.next=31,ne.axiosInstance.options(w,ie);case 31:return oe=le.sent,le.abrupt("break",34);case 33:throw new Error("Invalid request type");case 34:return ne._logApiResponse(y,w,oe),le.abrupt("return",ne.handleResponse(oe));case 38:if(le.prev=38,le.t1=le.catch(4),ne._logApiError(y,w,le.t1),!le.t1.response){le.next=50;break}if(le.t1.response.data.code!==st.TOKEN_EXPIRED||ne.tokenManager.isStatic()){le.next=47;break}return ne.tokenManager.loadToken(),le.next=46,ne.doAxiosRequest(y,w,E,q);case 46:return le.abrupt("return",le.sent);case 47:return le.abrupt("return",ne.handleResponse(le.t1.response));case 50:throw le.t1;case 51:case"end":return le.stop()}}),_callee,null,[[4,38]])})));return function(w,E,q){return y.apply(this,arguments)}}()),Oe()(this,"dispatchEvent",(function(y){ne._handleClientEvent(y);var w=y.cid,E=w?ne.activeChannels[w]:void 0;E&&E._handleChannelEvent(y),ne._callClientListeners(y),E&&E._callChannelListeners(y)})),Oe()(this,"handleEvent",(function(y){var w=y.data,E=JSON.parse(w);E.received_at=new Date,ne.dispatchEvent(E)})),Oe()(this,"_callClientListeners",(function(y){var w=ne,E=[];w.listeners.all&&E.push.apply(E,me()(w.listeners.all)),w.listeners[y.type]&&E.push.apply(E,me()(w.listeners[y.type]));for(var q=0,ie=E;q1&&void 0!==E[1]?E[1]:{},q.next=3,this.post(this.baseURL+"/check_push",_objectSpread$4(_objectSpread$4(_objectSpread$4(_objectSpread$4({user_id:y},w.messageID?{message_id:w.messageID}:{}),w.apnTemplate?{apn_template:w.apnTemplate}:{}),w.firebaseTemplate?{firebase_template:w.firebaseTemplate}:{}),w.firebaseDataTemplate?{firebase_data_template:w.firebaseDataTemplate}:{}));case 3:return q.abrupt("return",q.sent);case 4:case"end":return q.stop()}}),_callee5,this)}))),function testPushSettings(y){return mt.apply(this,arguments)})},{key:"disconnect",value:function disconnect(y){this.logger("info","client:disconnect() - Disconnecting the client",{tags:["connection","client"]}),delete this.user,delete this._user,delete this.userID,null!=this.cleaningIntervalRef&&(clearInterval(this.cleaningIntervalRef),this.cleaningIntervalRef=void 0),this.anonymous=!1,this.connectionEstablishedCount=0;for(var w=0,E=Object.values(this.activeChannels);w status ").concat(E.status),{tags:["api","api_response","client"],url:w,response:E})}},{key:"_logApiError",value:function _logApiError(y,w,E){this.logger("error","client:".concat(y," - Error - url: ").concat(w),{tags:["api","api_response","client"],url:w,error:E})}},{key:"get",value:function get(y,w){return this.doAxiosRequest("get",y,null,{params:w})}},{key:"put",value:function put(y,w){return this.doAxiosRequest("put",y,w)}},{key:"post",value:function post(y,w){return this.doAxiosRequest("post",y,w)}},{key:"patch",value:function patch(y,w){return this.doAxiosRequest("patch",y,w)}},{key:"delete",value:function _delete(y,w){return this.doAxiosRequest("delete",y,null,{params:w})}},{key:"sendFile",value:function sendFile(y,w,E,q,ne){var ie=addFileToFormData(w,E,q);return null!=ne&&ie.append("user",JSON.stringify(ne)),this.doAxiosRequest("post",y,ie,{headers:ie.getHeaders?ie.getHeaders():{},config:{timeout:0,maxContentLength:1/0,maxBodyLength:1/0}})}},{key:"errorFromResponse",value:function errorFromResponse(y){var w;return w=new Error("StreamChat error HTTP code: ".concat(y.status)),y.data&&y.data.code&&((w=new Error("StreamChat error code ".concat(y.data.code,": ").concat(y.data.message))).code=y.data.code),w.response=y,w.status=y.status,w}},{key:"handleResponse",value:function handleResponse(y){var w=y.data;if("2"!==(y.status+"")[0])throw this.errorFromResponse(y);return w}},{key:"_handleClientEvent",value:function _handleClientEvent(y){var w,E,q,ne=this;(this.logger("info","client:_handleClientEvent - Received event of type { ".concat(y.type," }"),{tags:["event","client"],event:y}),!y.user||"user.presence.changed"!==y.type&&"user.updated"!==y.type)||((null===(q=y.user)||void 0===q?void 0:q.id)===this.userID&&(this.user=this.user&&_objectSpread$4(_objectSpread$4({},this.user),y.user),Object.keys(y.user).forEach((function(w){ne._user&&w in ne._user&&(ne._user[w]=y.user[w])}))),ne.state.updateUser(y.user),ne._updateUserReferences(y.user));"health.check"===y.type&&y.me&&(ne.user=y.me,ne.state.updateUser(y.me),ne.mutedChannels=y.me.channel_mutes,ne.mutedUsers=y.me.mutes),y.channel&&"notification.message_new"===y.type&&(this.configs[y.channel.type]=y.channel.config),"notification.channel_mutes_updated"===y.type&&(null===(w=y.me)||void 0===w?void 0:w.channel_mutes)&&(this.mutedChannels=y.me.channel_mutes),"notification.mutes_updated"===y.type&&(null===(E=y.me)||void 0===E?void 0:E.mutes)&&(this.mutedUsers=y.me.mutes)}},{key:"_muteStatus",value:function _muteStatus(y){var w;return this.mutedChannels.forEach((function(E){var q;if((null===(q=E.channel)||void 0===q?void 0:q.cid)===y){var ne=!0;E.expires&&(ne=new Date(E.expires).getTime()>(new Date).getTime()),w={muted:ne,createdAt:E.created_at?new Date(E.created_at):new Date,expiresAt:E.expires?new Date(E.expires):null}}})),w||{muted:!1,createdAt:null,expiresAt:null}}},{key:"_updateUserReferences",value:function _updateUserReferences(y){for(var w=this.state.userChannelReferences[y.id]||{},E=0,q=Object.keys(w);E1&&void 0!==ie[1]?ie[1]:[],E=ie.length>2&&void 0!==ie[2]?ie[2]:{},q={presence:!1},oe.next=5,this.setUserPromise;case 5:return this._hasConnectionID()||(q.presence=!1),oe.next=8,this.get(this.baseURL+"/users",{payload:_objectSpread$4(_objectSpread$4({filter_conditions:y,sort:normalizeQuerySort(w)},q),E)});case 8:return ne=oe.sent,this.state.updateUsers(ne.users),oe.abrupt("return",ne);case 11:case"end":return oe.stop()}}),_callee8,this)}))),function queryUsers(y){return lt.apply(this,arguments)})},{key:"queryChannels",value:(ut=we()(ye.a.mark((function _callee9(y){var w,E,q,ne,ie,oe,se,le,pe,ge,he,me,ve,Re=arguments;return ye.a.wrap((function _callee9$(ye){for(;;)switch(ye.prev=ye.next){case 0:return w=Re.length>1&&void 0!==Re[1]?Re[1]:[],E=Re.length>2&&void 0!==Re[2]?Re[2]:{},q={state:!0,watch:!0,presence:!1},ye.next=5,this.setUserPromise;case 5:return this._hasConnectionID()||(q.watch=!1),ne=_objectSpread$4(_objectSpread$4({filter_conditions:y,sort:normalizeQuerySort(w),user_details:this._user},q),E),ye.next=9,this.get(this.baseURL+"/channels",{payload:ne});case 9:ie=ye.sent,oe=[],se=_createForOfIteratorHelper$3(ie.channels);try{for(se.s();!(le=se.n()).done;)pe=le.value,this._addChannelConfig(pe)}catch(y){se.e(y)}finally{se.f()}ge=_createForOfIteratorHelper$3(ie.channels);try{for(ge.s();!(he=ge.n()).done;)me=he.value,(ve=this.channel(me.channel.type,me.channel.id)).data=me.channel,ve.initialized=!0,ve._initializeState(me),oe.push(ve)}catch(y){ge.e(y)}finally{ge.f()}return ye.abrupt("return",oe);case 16:case"end":return ye.stop()}}),_callee9,this)}))),function queryChannels(y){return ut.apply(this,arguments)})},{key:"search",value:(ot=we()(ye.a.mark((function _callee10(y,w){var E,q,ne=arguments;return ye.a.wrap((function _callee10$(ie){for(;;)switch(ie.prev=ie.next){case 0:if(E=ne.length>2&&void 0!==ne[2]?ne[2]:{},q=_objectSpread$4({filter_conditions:y},E),"string"!=typeof w){ie.next=6;break}q.query=w,ie.next=11;break;case 6:if("object"!==le()(w)){ie.next=10;break}q.message_filter_conditions=w,ie.next=11;break;case 10:throw Error("Invalid type ".concat(le()(w)," for query parameter"));case 11:return ie.next=13,this.setUserPromise;case 13:return ie.next=15,this.get(this.baseURL+"/search",{payload:q});case 15:return ie.abrupt("return",ie.sent);case 16:case"end":return ie.stop()}}),_callee10,this)}))),function search(y,w){return ot.apply(this,arguments)})},{key:"addDevice",value:(rt=we()(ye.a.mark((function _callee11(y,w,E){return ye.a.wrap((function _callee11$(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,this.post(this.baseURL+"/devices",_objectSpread$4({id:y,push_provider:w},null!=E?{user_id:E}:{}));case 2:return q.abrupt("return",q.sent);case 3:case"end":return q.stop()}}),_callee11,this)}))),function addDevice(y,w,E){return rt.apply(this,arguments)})},{key:"getDevices",value:(nt=we()(ye.a.mark((function _callee12(y){return ye.a.wrap((function _callee12$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.get(this.baseURL+"/devices",y?{user_id:y}:{});case 2:return w.abrupt("return",w.sent);case 3:case"end":return w.stop()}}),_callee12,this)}))),function getDevices(y){return nt.apply(this,arguments)})},{key:"removeDevice",value:(tt=we()(ye.a.mark((function _callee13(y,w){return ye.a.wrap((function _callee13$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.delete(this.baseURL+"/devices",_objectSpread$4({id:y},w?{user_id:w}:{}));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee13,this)}))),function removeDevice(y,w){return tt.apply(this,arguments)})},{key:"_addChannelConfig",value:function _addChannelConfig(y){this.configs[y.channel.type]=y.channel.config}},{key:"channel",value:function channel(y,w){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.userID&&!this._isUsingServerAuth())throw Error("Call setUser or setAnonymousUser before creating a channel");if(~y.indexOf(":"))throw Error("Invalid channel group ".concat(y,", can't contain the : character"));if(null==w||""===w)return new dt(this,y,void 0,E);if("object"===le()(w))return new dt(this,y,void 0,w);if("string"==typeof w&&~w.indexOf(":"))throw Error("Invalid channel id ".concat(w,", can't contain the : character"));var q="".concat(y,":").concat(w);if(q in this.activeChannels){var ne=this.activeChannels[q];return Object.keys(E).length>0&&(ne.data=E,ne._data=E),ne}var channel=new dt(this,y,w,E);return this.activeChannels[channel.cid]=channel,channel}},{key:"updateUser",value:(et=we()(ye.a.mark((function _callee14(y){return ye.a.wrap((function _callee14$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.upsertUsers([y]);case 2:return w.abrupt("return",w.sent);case 3:case"end":return w.stop()}}),_callee14,this)}))),function updateUser(y){return et.apply(this,arguments)})},{key:"partialUpdateUser",value:(Xe=we()(ye.a.mark((function _callee15(y){return ye.a.wrap((function _callee15$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.partialUpdateUsers([y]);case 2:return w.abrupt("return",w.sent);case 3:case"end":return w.stop()}}),_callee15,this)}))),function partialUpdateUser(y){return Xe.apply(this,arguments)})},{key:"upsertUsers",value:(Ye=we()(ye.a.mark((function _callee16(y){var w,E,q,ne;return ye.a.wrap((function _callee16$(ie){for(;;)switch(ie.prev=ie.next){case 0:w={},E=_createForOfIteratorHelper$3(y),ie.prev=2,E.s();case 4:if((q=E.n()).done){ie.next=11;break}if((ne=q.value).id){ie.next=8;break}throw Error("User ID is required when updating a user");case 8:w[ne.id]=ne;case 9:ie.next=4;break;case 11:ie.next=16;break;case 13:ie.prev=13,ie.t0=ie.catch(2),E.e(ie.t0);case 16:return ie.prev=16,E.f(),ie.finish(16);case 19:return ie.next=21,this.post(this.baseURL+"/users",{users:w});case 21:return ie.abrupt("return",ie.sent);case 22:case"end":return ie.stop()}}),_callee16,this,[[2,13,16,19]])}))),function upsertUsers(y){return Ye.apply(this,arguments)})},{key:"upsertUser",value:function upsertUser(y){return this.upsertUsers([y])}},{key:"updateUsers",value:function updateUsers(y){return this.upsertUsers(y)}},{key:"partialUpdateUsers",value:($e=we()(ye.a.mark((function _callee17(y){var w,E;return ye.a.wrap((function _callee17$(q){for(;;)switch(q.prev=q.next){case 0:w=_createForOfIteratorHelper$3(y),q.prev=1,w.s();case 3:if((E=w.n()).done){q.next=9;break}if(E.value.id){q.next=7;break}throw Error("User ID is required when updating a user");case 7:q.next=3;break;case 9:q.next=14;break;case 11:q.prev=11,q.t0=q.catch(1),w.e(q.t0);case 14:return q.prev=14,w.f(),q.finish(14);case 17:return q.next=19,this.patch(this.baseURL+"/users",{users:y});case 19:return q.abrupt("return",q.sent);case 20:case"end":return q.stop()}}),_callee17,this,[[1,11,14,17]])}))),function partialUpdateUsers(y){return $e.apply(this,arguments)})},{key:"deleteUser",value:(We=we()(ye.a.mark((function _callee18(y,w){return ye.a.wrap((function _callee18$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.delete(this.baseURL+"/users/".concat(y),w);case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee18,this)}))),function deleteUser(y,w){return We.apply(this,arguments)})},{key:"reactivateUser",value:(Ue=we()(ye.a.mark((function _callee19(y,w){return ye.a.wrap((function _callee19$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.post(this.baseURL+"/users/".concat(y,"/reactivate"),_objectSpread$4({},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee19,this)}))),function reactivateUser(y,w){return Ue.apply(this,arguments)})},{key:"deactivateUser",value:(Ne=we()(ye.a.mark((function _callee20(y,w){return ye.a.wrap((function _callee20$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.post(this.baseURL+"/users/".concat(y,"/deactivate"),_objectSpread$4({},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee20,this)}))),function deactivateUser(y,w){return Ne.apply(this,arguments)})},{key:"exportUser",value:(Ve=we()(ye.a.mark((function _callee21(y,w){return ye.a.wrap((function _callee21$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.get(this.baseURL+"/users/".concat(y,"/export"),_objectSpread$4({},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee21,this)}))),function exportUser(y,w){return Ve.apply(this,arguments)})},{key:"banUser",value:(Be=we()(ye.a.mark((function _callee22(y,w){return ye.a.wrap((function _callee22$(E){for(;;)switch(E.prev=E.next){case 0:return void 0!==(null==w?void 0:w.user_id)&&(w.banned_by_id=w.user_id,delete w.user_id,console.warn("banUser: 'user_id' is deprecated, please consider switching to 'banned_by_id'")),void 0!==(null==w?void 0:w.user)&&(w.banned_by=w.user,delete w.user,console.warn("banUser: 'user' is deprecated, please consider switching to 'banned_by'")),E.next=4,this.post(this.baseURL+"/moderation/ban",_objectSpread$4({target_user_id:y},w));case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}}),_callee22,this)}))),function banUser(y,w){return Be.apply(this,arguments)})},{key:"unbanUser",value:(Fe=we()(ye.a.mark((function _callee23(y,w){return ye.a.wrap((function _callee23$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.delete(this.baseURL+"/moderation/ban",_objectSpread$4({target_user_id:y},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee23,this)}))),function unbanUser(y,w){return Fe.apply(this,arguments)})},{key:"shadowBan",value:(Te=we()(ye.a.mark((function _callee24(y,w){return ye.a.wrap((function _callee24$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.banUser(y,_objectSpread$4({shadow:!0},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee24,this)}))),function shadowBan(y,w){return Te.apply(this,arguments)})},{key:"removeShadowBan",value:(Ae=we()(ye.a.mark((function _callee25(y,w){return ye.a.wrap((function _callee25$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.unbanUser(y,_objectSpread$4({shadow:!0},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee25,this)}))),function removeShadowBan(y,w){return Ae.apply(this,arguments)})},{key:"muteUser",value:(Se=we()(ye.a.mark((function _callee26(y,w){var E,q=arguments;return ye.a.wrap((function _callee26$(ne){for(;;)switch(ne.prev=ne.next){case 0:return E=q.length>2&&void 0!==q[2]?q[2]:{},ne.next=3,this.post(this.baseURL+"/moderation/mute",_objectSpread$4(_objectSpread$4({target_id:y},w?{user_id:w}:{}),E));case 3:return ne.abrupt("return",ne.sent);case 4:case"end":return ne.stop()}}),_callee26,this)}))),function muteUser(y,w){return Se.apply(this,arguments)})},{key:"unmuteUser",value:(_e=we()(ye.a.mark((function _callee27(y,w){return ye.a.wrap((function _callee27$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.post(this.baseURL+"/moderation/unmute",_objectSpread$4({target_id:y},w?{user_id:w}:{}));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee27,this)}))),function unmuteUser(y,w){return _e.apply(this,arguments)})},{key:"userMuteStatus",value:function userMuteStatus(y){if(!this.user||!this.wsPromise)throw new Error("Make sure to await setUser() first.");for(var w=0;w1&&void 0!==E[1]?E[1]:{},q.next=3,this.post(this.baseURL+"/moderation/flag",_objectSpread$4({target_message_id:y},w));case 3:return q.abrupt("return",q.sent);case 4:case"end":return q.stop()}}),_callee28,this)}))),function flagMessage(y){return Re.apply(this,arguments)})},{key:"flagUser",value:(ve=we()(ye.a.mark((function _callee29(y){var w,E=arguments;return ye.a.wrap((function _callee29$(q){for(;;)switch(q.prev=q.next){case 0:return w=E.length>1&&void 0!==E[1]?E[1]:{},q.next=3,this.post(this.baseURL+"/moderation/flag",_objectSpread$4({target_user_id:y},w));case 3:return q.abrupt("return",q.sent);case 4:case"end":return q.stop()}}),_callee29,this)}))),function flagUser(y){return ve.apply(this,arguments)})},{key:"unflagMessage",value:(he=we()(ye.a.mark((function _callee30(y){var w,E=arguments;return ye.a.wrap((function _callee30$(q){for(;;)switch(q.prev=q.next){case 0:return w=E.length>1&&void 0!==E[1]?E[1]:{},q.next=3,this.post(this.baseURL+"/moderation/unflag",_objectSpread$4({target_message_id:y},w));case 3:return q.abrupt("return",q.sent);case 4:case"end":return q.stop()}}),_callee30,this)}))),function unflagMessage(y){return he.apply(this,arguments)})},{key:"unflagUser",value:(pe=we()(ye.a.mark((function _callee31(y){var w,E=arguments;return ye.a.wrap((function _callee31$(q){for(;;)switch(q.prev=q.next){case 0:return w=E.length>1&&void 0!==E[1]?E[1]:{},q.next=3,this.post(this.baseURL+"/moderation/unflag",_objectSpread$4({target_user_id:y},w));case 3:return q.abrupt("return",q.sent);case 4:case"end":return q.stop()}}),_callee31,this)}))),function unflagUser(y){return pe.apply(this,arguments)})},{key:"markAllRead",value:(se=we()(ye.a.mark((function _callee32(){var y,w=arguments;return ye.a.wrap((function _callee32$(E){for(;;)switch(E.prev=E.next){case 0:return y=w.length>0&&void 0!==w[0]?w[0]:{},E.next=3,this.post(this.baseURL+"/channels/read",_objectSpread$4({},y));case 3:case"end":return E.stop()}}),_callee32,this)}))),function markAllRead(){return se.apply(this,arguments)})},{key:"createCommand",value:function createCommand(y){return this.post(this.baseURL+"/commands",y)}},{key:"getCommand",value:function getCommand(y){return this.get(this.baseURL+"/commands/".concat(y))}},{key:"updateCommand",value:function updateCommand(y,w){return this.put(this.baseURL+"/commands/".concat(y),w)}},{key:"deleteCommand",value:function deleteCommand(y){return this.delete(this.baseURL+"/commands/".concat(y))}},{key:"listCommands",value:function listCommands(){return this.get(this.baseURL+"/commands")}},{key:"createChannelType",value:function createChannelType(y){var w=oe()({},{commands:["all"]},y);return this.post(this.baseURL+"/channeltypes",w)}},{key:"getChannelType",value:function getChannelType(y){return this.get(this.baseURL+"/channeltypes/".concat(y))}},{key:"updateChannelType",value:function updateChannelType(y,w){return this.put(this.baseURL+"/channeltypes/".concat(y),w)}},{key:"deleteChannelType",value:function deleteChannelType(y){return this.delete(this.baseURL+"/channeltypes/".concat(y))}},{key:"listChannelTypes",value:function listChannelTypes(){return this.get(this.baseURL+"/channeltypes")}},{key:"translateMessage",value:(ie=we()(ye.a.mark((function _callee33(y,w){return ye.a.wrap((function _callee33$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.post(this.baseURL+"/messages/".concat(y,"/translate"),{language:w});case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee33,this)}))),function translateMessage(y,w){return ie.apply(this,arguments)})},{key:"updateMessage",value:(ne=we()(ye.a.mark((function _callee34(y,w){var E;return ye.a.wrap((function _callee34$(q){for(;;)switch(q.prev=q.next){case 0:if(y.id){q.next=2;break}throw Error("Please specify the message id when calling updateMessage");case 2:return delete(E=oe()({},y)).id,["command","created_at","html","latest_reactions","own_reactions","reaction_counts","reply_count","type","updated_at","user"].forEach((function(y){null!=E[y]&&delete E[y]})),null!=w&&(isString$1(w)?E.user_id=w:E.user={id:w.id}),q.next=9,this.post(this.baseURL+"/messages/".concat(y.id),{message:E});case 9:return q.abrupt("return",q.sent);case 10:case"end":return q.stop()}}),_callee34,this)}))),function updateMessage(y,w){return ne.apply(this,arguments)})},{key:"deleteMessage",value:(E=we()(ye.a.mark((function _callee35(y,w){var E;return ye.a.wrap((function _callee35$(q){for(;;)switch(q.prev=q.next){case 0:return E={},w&&(E={hard:!0}),q.next=4,this.delete(this.baseURL+"/messages/".concat(y),E);case 4:return q.abrupt("return",q.sent);case 5:case"end":return q.stop()}}),_callee35,this)}))),function deleteMessage(y,w){return E.apply(this,arguments)})},{key:"getMessage",value:(w=we()(ye.a.mark((function _callee36(y){return ye.a.wrap((function _callee36$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.get(this.baseURL+"/messages/".concat(y));case 2:return w.abrupt("return",w.sent);case 3:case"end":return w.stop()}}),_callee36,this)}))),function getMessage(y){return w.apply(this,arguments)})},{key:"_userAgent",value:function _userAgent(){return this.getUserAgent()}},{key:"getUserAgent",value:function getUserAgent(){return this.userAgent||"stream-chat-javascript-client-".concat(this.node?"node":"browser","-","2.9.0")}},{key:"setUserAgent",value:function setUserAgent(y){this.userAgent=y}},{key:"_enrichAxiosOptions",value:function _enrichAxiosOptions(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{params:{},headers:{},config:{}},w=this._getToken();return _objectSpread$4({params:_objectSpread$4(_objectSpread$4({user_id:this.userID},y.params),{},{api_key:this.key,connection_id:this.connectionID}),headers:_objectSpread$4({Authorization:w,"stream-auth-type":this.getAuthType(),"x-stream-client":this._userAgent()},y.headers)},y.config)}},{key:"_getToken",value:function _getToken(){return!this.tokenManager||this.anonymous?null:this.tokenManager.getToken()}},{key:"_startCleaning",value:function _startCleaning(){var y=this;null==this.cleaningIntervalRef&&(this.cleaningIntervalRef=setInterval((function(){for(var w=0,E=Object.values(y.activeChannels);w2&&void 0!==arguments[2]?arguments[2]:vt,q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:yt,ne=arguments.length>4&&void 0!==arguments[4]&&arguments[4],ie=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ft;Me()(this,Permission),Oe()(this,"name",void 0),Oe()(this,"action",void 0),Oe()(this,"owner",void 0),Oe()(this,"priority",void 0),Oe()(this,"resources",void 0),Oe()(this,"roles",void 0),this.name=y,this.action=ie,this.owner=ne,this.priority=w,this.resources=E,this.roles=q},wt=new xt("Allow all",Rt,vt,yt,!1,ft),Ct=new xt("Deny all",bt,vt,yt,!1,mt),_t={Admin:"admin",Anonymous:"anonymous",ChannelMember:"channel_member",ChannelModerator:"channel_moderator",Guest:"guest",User:"user"},Mt={AddLinks:"Add Links",BanUser:"Ban User",CreateChannel:"Create Channel",CreateMessage:"Create Message",CreateReaction:"Create Reaction",DeleteAnyAttachment:"Delete Any Attachment",DeleteAnyChannel:"Delete Any Channel",DeleteAnyMessage:"Delete Any Message",DeleteAnyReaction:"Delete Any Reaction",DeleteOwnAttachment:"Delete Own Attachment",DeleteOwnChannel:"Delete Own Channel",DeleteOwnMessage:"Delete Own Message",DeleteOwnReaction:"Delete Own Reaction",ReadAnyChannel:"Read Any Channel",ReadOwnChannel:"Read Own Channel",RunMessageAction:"Run Message Action",UpdateAnyChannel:"Update Any Channel",UpdateAnyMessage:"Update Any Message",UpdateMembersAnyChannel:"Update Members Any Channel",UpdateMembersOwnChannel:"Update Members Own Channel",UpdateOwnChannel:"Update Own Channel",UpdateOwnMessage:"Update Own Message",UploadAttachment:"Upload Attachment",UseFrozenChannel:"Send messages and reactions to frozen channels"}}.call(this,E(443).Buffer,E(144))},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.EmptyStateIndicator=void 0;var ne=q(E(0)),ie=q(E(91));w.EmptyStateIndicator=function EmptyStateIndicator(y){switch(y.listType){case"channel":return ne.default.createElement(ie.default,{testID:"empty-channel-state"},"You have no channels currently");case"message":return null;default:return ne.default.createElement(ie.default,null,"No items exist")}}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.LoadingErrorIndicator=void 0;var ne=q(E(16)),ie=q(E(0)),oe=E(37),se=E(15);function _templateObject3(){var y=(0,ne.default)(["\n font-size: 30px;\n font-weight: 600;\n ",";\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n font-size: 14px;\n font-weight: 600;\n margin-top: 20px;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n height: 100%;\n justify-content: center;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var le=se.styled.TouchableOpacity(_templateObject(),(function(y){return y.theme.loadingErrorIndicator.container.css})),pe=se.styled.Text(_templateObject2(),(function(y){return y.theme.loadingErrorIndicator.errorText.css})),ge=se.styled.Text(_templateObject3(),(function(y){return y.theme.loadingErrorIndicator.retryText.css})),he=function LoadingErrorWrapper(y){var w=y.children,E=y.onPress,q=y.text;return ie.default.createElement(le,{onPress:E},ie.default.createElement(pe,{testID:"loading-error"},q),w)};w.LoadingErrorIndicator=function LoadingErrorIndicator(y){var w=y.listType,E=y.retry,q=void 0===E?function(){return null}:E,ne=(0,oe.useTranslationContext)().t;switch(w){case"channel":return ie.default.createElement(he,{onPress:q,text:ne("Error loading channel list ...")},ie.default.createElement(ge,null,"⟳"));case"message":return ie.default.createElement(he,{onPress:q,text:ne("Error loading messages for this channel ...")});default:return ie.default.createElement(he,{text:ne("Error loading")})}}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.KeyboardCompatibleView=void 0;var ne=q(E(25)),ie=q(E(344)),oe=q(E(454)),se=q(E(455)),le=q(E(842)),pe=q(E(844)),ge=q(E(846)),he=q(E(0)),me=q(E(336)),ve=q(E(145)),ye=q(E(391)),Re=q(E(102)),we=q(E(10)),_e=q(E(9)),Me=E(349);function _createSuper(y){var w=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(y){return!1}}();return function _createSuperInternal(){var E,q=(0,ge.default)(y);if(w){var ne=(0,ge.default)(this).constructor;E=Reflect.construct(q,arguments,ne)}else E=q.apply(this,arguments);return(0,pe.default)(this,E)}}var Se=function(y){(0,le.default)(KeyboardCompatibleView,y);var w=_createSuper(KeyboardCompatibleView);function KeyboardCompatibleView(y){var E;return(0,oe.default)(this,KeyboardCompatibleView),(E=w.call(this,y))._frame=null,E._keyboardEvent=null,E._subscriptions=[],E._initialFrameHeight=0,E._onKeyboardChange=function(y){E._keyboardEvent=y,E._updateBottomIfNecessary()},E._onLayout=function(y){E._frame=y.nativeEvent.layout,E._initialFrameHeight||(E._initialFrameHeight=E._frame.height),E._updateBottomIfNecessary()},E._updateBottomIfNecessary=function(){if(null!==E._keyboardEvent){var y=E._keyboardEvent,w=y.duration,q=y.easing,ne=y.endCoordinates,ie=E._relativeKeyboardHeight(ne);E.state.bottom!==ie&&(w&&q&&ye.default.configureNext({duration:w>10?w:10,update:{duration:w>10?w:10,type:ye.default.Types[q]||"keyboard"}}),E.setState({bottom:ie}))}else E.setState({bottom:0})},E._handleAppStateChange=function(y){E.state.appState.match(/inactive|background/)&&"active"===y&&E.setKeyboardListeners(),y.match(/inactive|background/)&&E.unsetKeyboardListeners(),E.setState({appState:y})},E.setKeyboardListeners=function(){"ios"===Re.default.OS?E._subscriptions=[ve.default.addListener("keyboardWillChangeFrame",E._onKeyboardChange)]:E._subscriptions=[ve.default.addListener("keyboardDidHide",E._onKeyboardChange),ve.default.addListener("keyboardDidShow",E._onKeyboardChange)],E._subscriptions.push(ve.default.addListener("keyboardDidHide",(function(){E.setState({isKeyboardOpen:!1})})),ve.default.addListener("keyboardDidShow",(function(){E.setState({isKeyboardOpen:!0})})))},E.unsetKeyboardListeners=function(){E._subscriptions=E._subscriptions.filter((function(y){return y.remove(),!1}))},E.dismissKeyboard=function(){if(E.state.isKeyboardOpen)return new Promise((function(y){var w=ve.default.addListener("keyboardDidHide",(function(){y(),w.remove()}));ve.default.dismiss()}))},E.state={appState:me.default.currentState,bottom:0,isKeyboardOpen:!1},E.viewRef=he.default.createRef(),E}return(0,se.default)(KeyboardCompatibleView,[{key:"_relativeKeyboardHeight",value:function _relativeKeyboardHeight(y){var w=this._frame;if(!w||!y)return 0;var E=y.screenY-this.props.keyboardVerticalOffset;return Math.max(w.y+w.height-E,0)}},{key:"componentDidMount",value:function componentDidMount(){me.default.addEventListener("change",this._handleAppStateChange),this.setKeyboardListeners()}},{key:"componentWillUnmount",value:function componentWillUnmount(){me.default.removeEventListener("change",this._handleAppStateChange),this.unsetKeyboardListeners()}},{key:"render",value:function render(){var y=this.props,w=y.behavior,E=y.children,q=y.contentContainerStyle,oe=y.enabled,se=y.style,le=(0,ie.default)(y,["behavior","children","contentContainerStyle","enabled","style"]),pe=oe?this.state.bottom:0;switch(w){case"height":var ge;return null!==this._frame&&this.state.bottom>0&&(ge={flex:0,height:this._initialFrameHeight-pe}),he.default.createElement(Me.KeyboardProvider,{value:{dismissKeyboard:this.dismissKeyboard}},he.default.createElement(_e.default,(0,ne.default)({onLayout:this._onLayout,ref:this.viewRef,style:we.default.compose(se,ge)},le),E));case"position":return he.default.createElement(Me.KeyboardProvider,{value:{dismissKeyboard:this.dismissKeyboard}},he.default.createElement(_e.default,(0,ne.default)({onLayout:this._onLayout,ref:this.viewRef,style:se},le),he.default.createElement(_e.default,{style:we.default.compose(q,{bottom:pe})},E)));case"padding":return he.default.createElement(Me.KeyboardProvider,{value:{dismissKeyboard:this.dismissKeyboard}},he.default.createElement(_e.default,(0,ne.default)({onLayout:this._onLayout,ref:this.viewRef,style:we.default.compose(se,{paddingBottom:pe})},le),E));default:return he.default.createElement(Me.KeyboardProvider,{value:{dismissKeyboard:this.dismissKeyboard}},he.default.createElement(_e.default,(0,ne.default)({onLayout:this._onLayout,ref:this.viewRef,style:se},le),E))}}}]),KeyboardCompatibleView}(he.default.Component);w.KeyboardCompatibleView=Se,Se.defaultProps={behavior:"ios"===Re.default.OS?"padding":"position",enabled:!0,keyboardVerticalOffset:"ios"===Re.default.OS?86.5:-300}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.withKeyboardContext=w.useKeyboardContext=w.KeyboardProvider=w.KeyboardContext=void 0;var ie=ne(E(25)),oe=q(E(0)),se=ne(E(145)),le=E(109),pe=oe.default.createContext({dismissKeyboard:se.default.dismiss});w.KeyboardContext=pe;w.KeyboardProvider=function KeyboardProvider(y){var w=y.children,E=y.value;return oe.default.createElement(pe.Provider,{value:E},w)};var ge=function useKeyboardContext(){return(0,oe.useContext)(pe)};w.useKeyboardContext=ge;w.withKeyboardContext=function withKeyboardContext(y){var w=function WithKeyboardContextComponent(w){var E=ge();return oe.default.createElement(y,(0,ie.default)({},w,E))};return w.displayName="WithKeyboardContext"+(0,le.getDisplayName)(y),w}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.ChannelPreview=void 0;var ie=ne(E(25)),oe=ne(E(39)),se=q(E(0)),le=E(199),pe=E(860),ge=E(29),he=se.default.memo((function UnMemoizedChannelPreview(y){var w=y.channel,E=y.forceUpdate,q=y.Preview,ne=void 0===q?le.ChannelPreviewMessenger:q,he=(0,ge.useChatContext)().client,me=(0,se.useState)(),ve=(0,oe.default)(me,2),ye=ve[0],Re=ve[1],we=(0,se.useState)(w.countUnread()),_e=(0,oe.default)(we,2),Me=_e[0],Se=_e[1],ke=(0,pe.useLatestMessagePreview)(w,ye);return(0,se.useEffect)((function(){var y=function handleEvent(y){y.message&&Re(y.message),"message.new"===y.type&&Se(w.countUnread())};return w.on("message.new",y),w.on("message.updated",y),w.on("message.deleted",y),function(){w.off("message.new",y),w.off("message.updated",y),w.off("message.deleted",y)}}),[]),(0,se.useEffect)((function(){Se(w.countUnread())}),[E]),(0,se.useEffect)((function(){var y=function handleReadEvent(y){var w;(null==(w=y.user)?void 0:w.id)===he.userID&&Se(0)};return w.on("message.read",y),function(){return w.off("message.read",y)}}),[]),se.default.createElement(ne,(0,ie.default)({},y,{lastMessage:ye,latestMessagePreview:ke,unread:Me}))}),(function areEqual(y,w){return y.channel.state.last_message_at===w.channel.state.last_message_at&&y.forceUpdate===w.forceUpdate}));w.ChannelPreview=he},function(y,w){var E=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");y.exports=function hasUnicode(y){return E.test(y)}},function(y,w,E){var q=E(460);y.exports=function toString(y){return null==y?"":q(y)}},function(y,w,E){var q=E(248),ne=E(869),ie=E(870),oe=E(871),se=E(872),le=E(873);function Stack(y){var w=this.__data__=new q(y);this.size=w.size}Stack.prototype.clear=ne,Stack.prototype.delete=ie,Stack.prototype.get=oe,Stack.prototype.has=se,Stack.prototype.set=le,y.exports=Stack},function(y,w,E){var q=E(147)(E(74),"Map");y.exports=q},function(y,w,E){var q=E(146),ne=E(66);y.exports=function isFunction(y){if(!ne(y))return!1;var w=q(y);return"[object Function]"==w||"[object GeneratorFunction]"==w||"[object AsyncFunction]"==w||"[object Proxy]"==w}},function(y,w,E){var q=E(878),ne=E(885),ie=E(887),oe=E(888),se=E(889);function MapCache(y){var w=-1,E=null==y?0:y.length;for(this.clear();++w-1&&y%1==0&&y<=9007199254740991}},function(y,w,E){var q=E(88),ne=E(360),ie=E(913),oe=E(352);y.exports=function castPath(y,w){return q(y)?y:ne(y,w)?[y]:ie(oe(y))}},function(y,w,E){var q=E(88),ne=E(243),ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oe=/^\w*$/;y.exports=function isKey(y,w){if(q(y))return!1;var E=typeof y;return!("number"!=E&&"symbol"!=E&&"boolean"!=E&&null!=y&&!ne(y))||(oe.test(y)||!ie.test(y)||null!=w&&y in Object(w))}},function(y,w){y.exports=function identity(y){return y}},function(y,w){Object.defineProperty(w,"__esModule",{value:!0}),w.registerNativeHandlers=w.pickDocument=w.pickImage=w.NetInfo=void 0;var E=function fail(){throw Error("Native handler was not registered, you should import stream-chat-expo or stream-chat-react-native")},q={addEventListener:E,fetch:E};w.NetInfo=q;var ne=E;w.pickImage=ne;var ie=E;w.pickDocument=ie;w.registerNativeHandlers=function registerNativeHandlers(y){y.NetInfo&&(w.NetInfo=q=y.NetInfo),y.pickImage&&(w.pickImage=ne=y.pickImage),y.pickDocument&&(w.pickDocument=ie=y.pickDocument)}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.ThemeProvider=void 0;var ne=q(E(0)),ie=q(E(221)),oe=E(974),se=E(15),le=E(365),pe=E(976);w.ThemeProvider=function ThemeProvider(y){var w=y.children,E=y.style,q=(0,se.useTheme)()||le.defaultTheme;if(E){var ge=(0,oe.replaceCssShorthand)(E),he=(0,pe.formatDotNotation)({formattedStyle:ge,modifiedTheme:q});(0,ie.default)(q,he)}return ne.default.createElement(se.StyledComponentsThemeProvider,{theme:q},w)}},function(y,w,E){var q=E(146),ne=E(494),ie=E(123),oe=Function.prototype,se=Object.prototype,le=oe.toString,pe=se.hasOwnProperty,ge=le.call(Object);y.exports=function isPlainObject(y){if(!ie(y)||"[object Object]"!=q(y))return!1;var w=ne(y);if(null===w)return!0;var E=pe.call(w,"constructor")&&w.constructor;return"function"==typeof E&&E instanceof E&&le.call(E)==ge}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.defaultTheme=w.Colors=w.BASE_FONT_SIZE=void 0;var ne=q(E(86));function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}w.BASE_FONT_SIZE=16;var ie={danger:"#EDD8DD",light:"#EBEBEB",primary:"#006cff",secondary:"#111",textDark:"rgba(0,0,0,1)",textGrey:"rgba(0,0,0,0.5)",textLight:"white",transparent:"transparent"};w.Colors=ie;var oe={avatar:{container:{},fallback:{},image:{},text:{}},channelListFooterLoadingIndicator:{container:{}},channelListHeaderErrorIndicator:{container:{},errorText:{}},channelListHeaderNetworkDownIndicator:{container:{},errorText:{}},channelPreview:{container:{},date:{},details:{},detailsTop:{},message:{color:"#767676",fontWeight:"normal",unreadColor:"#000",unreadFontWeight:"bold"},title:{}},closeButton:{container:{}},colors:function _objectSpread(y){for(var w=1;w-1&&y.splice(1,0,{id:ye.MESSAGE_ACTIONS.reactions,title:Ue("Add Reaction")}),Be&&Oe.indexOf(ye.MESSAGE_ACTIONS.reply)>-1&&!Ne&&y.splice(1,0,{id:ye.MESSAGE_ACTIONS.reply,title:Ue("Reply")}),Oe.indexOf(ye.MESSAGE_ACTIONS.edit)>-1&&(null==ne?void 0:ne())&&y.splice(1,0,{id:ye.MESSAGE_ACTIONS.edit,title:Ue("Edit Message")}),Oe.indexOf(ye.MESSAGE_ACTIONS.delete)>-1&&(null==q?void 0:q())&&y.splice(1,0,{id:ye.MESSAGE_ACTIONS.delete,title:Ue("Delete Message")})),Xe((function(w){return[].concat((0,se.default)(w),y)}))}),[]);var et=function(){var y=(0,oe.default)(ie.default.mark((function _callee(y){return ie.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:w.t0=y,w.next=w.t0===ye.MESSAGE_ACTIONS.edit?3:w.t0===ye.MESSAGE_ACTIONS.delete?5:w.t0===ye.MESSAGE_ACTIONS.reply?8:w.t0===ye.MESSAGE_ACTIONS.reactions?10:12;break;case 3:return ve(),w.abrupt("break",13);case 5:return w.next=7,pe();case 7:return w.abrupt("break",13);case 8:return je(),w.abrupt("break",13);case 10:return Te(),w.abrupt("break",13);case 12:return w.abrupt("break",13);case 13:Ve(!1);case 14:case"end":return w.stop()}}),_callee)})));return function onActionPress(w){return y.apply(this,arguments)}}();return ge.default.createElement(he.ActionSheetCustom,{cancelButtonIndex:0,destructiveButtonIndex:0,onPress:function onPress(y){return et(Ye[y].id)},options:Ye.map((function(y,w){return 0===w?ge.default.createElement(_e,{testID:"cancel-button"},ge.default.createElement(Me,null,Ue("Cancel"))):ge.default.createElement(Re,{key:y.title,testID:"action-sheet-item-"+y.title},ge.default.createElement(we,null,y.title))})),ref:w,styles:E,title:ge.default.createElement(Se,{testID:"action-sheet-container"},ge.default.createElement(ke,null,Ue("Choose an action")))})}));w.MessageActionSheet=Ae,Ae.displayName="messageActionSheet"},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.defaultOptions=function defaultOptions(y){return y||(y={attributes:[],ips:!0,emails:!0,urls:!0,files:!0,truncate:1/0,defaultProtocol:"http://",list:!1}),"object"!=typeof y.attributes&&(y.attributes=[]),"boolean"!=typeof y.ips&&(y.ips=!0),"boolean"!=typeof y.emails&&(y.emails=!0),"boolean"!=typeof y.urls&&(y.urls=!0),"boolean"!=typeof y.files&&(y.files=!0),"boolean"!=typeof y.list&&(y.list=!1),"string"!=typeof y.defaultProtocol&&"function"!=typeof y.defaultProtocol&&(y.defaultProtocol="http://"),"number"==typeof y.truncate||"object"==typeof y.truncate&&null!==y.truncate||(y.truncate=1/0),y},w.isPort=function isPort(y){return!isNaN(Number(y))&&!(Number(y)>65535)}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.tlds=["com","org","net","uk","gov","edu","io","cc","co","aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","active","actor","ad","adac","ads","adult","ae","aeg","aero","aetna","af","afamilycompany","afl","africa","ag","agakhan","agency","ai","aig","aigo","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blanco","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnl","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","boots","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","budapest","bugatti","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","cartier","casa","case","caseih","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cd","ceb","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","chase","chat","cheap","chintai","chloe","christmas","chrome","chrysler","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","coach","codes","coffee","college","cologne","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dodge","dog","doha","domains","dot","download","drive","dtv","dubai","duck","dunlop","duns","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epost","epson","equipment","er","ericsson","erni","es","esq","estate","esurance","et","eu","eurovision","eus","events","everbank","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fujixerox","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glade","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodhands","goodyear","goog","google","gop","got","gp","gq","gr","grainger","graphics","gratis","green","gripe","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","honeywell","horse","hospital","host","hosting","hot","hoteles","hotmail","house","how","hr","hsbc","ht","htc","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","industries","infiniti","info","ing","ink","institute","insurance","insure","int","intel","international","intuit","investments","ipiranga","iq","ir","irish","is","iselect","ismaili","ist","istanbul","it","itau","itv","iveco","iwc","jaguar","java","jcb","jcp","je","jeep","jetzt","jewelry","jio","jlc","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","ladbrokes","lamborghini","lamer","lancaster","lancia","lancome","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","liaison","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","lk","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","lupin","luxe","luxury","lv","ly","ma","macys","madrid","maif","maison","makeup","man","management","mango","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mcd","mcdonalds","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","meo","metlife","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","mobily","moda","moe","moi","mom","monash","money","monster","montblanc","mopar","mormon","mortgage","moscow","moto","motorcycles","mov","movie","movistar","mp","mq","mr","ms","msd","mt","mtn","mtpc","mtr","mu","museum","mutual","mv","mw","mx","my","mz","na","nab","nadex","nagoya","name","nationwide","natura","navy","nba","nc","ne","nec","netbank","netflix","network","neustar","new","newholland","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","onyourside","ooo","open","oracle","orange","organic","orientexpress","origins","osaka","otsuka","ott","ovh","pa","page","pamperedchef","panasonic","panerai","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","philips","phone","photo","photography","photos","physio","piaget","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","qvc","racing","radio","raid","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","rightathome","ril","rio","rip","rmit","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sapo","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scor","scot","sd","se","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","shriram","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","space","spiegel","spot","spreadbetting","sr","srl","srt","st","stada","staples","star","starhub","statebank","statefarm","statoil","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiftcover","swiss","sx","sy","sydney","symantec","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","telecity","telefonica","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","uconnect","ug","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","vista","vistaprint","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","warman","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xn--11b4c3d","xn--1ck2e1b","xn--1qqw23a","xn--30rr7y","xn--3bst00m","xn--3ds443g","xn--3e0b707e","xn--3oq18vl8pn36a","xn--3pxu8k","xn--42c2d9a","xn--45brj9c","xn--45q11c","xn--4gbrim","xn--54b7fta0cc","xn--55qw42g","xn--55qx5d","xn--5su34j936bgsg","xn--5tzm5g","xn--6frz82g","xn--6qq986b3xl","xn--80adxhks","xn--80ao21a","xn--80aqecdr1a","xn--80asehdb","xn--80aswg","xn--8y0a063a","xn--90a3ac","xn--90ae","xn--90ais","xn--9dbq2a","xn--9et52u","xn--9krt00a","xn--b4w605ferd","xn--bck1b9a5dre4c","xn--c1avg","xn--c2br7g","xn--cck2b3b","xn--cg4bki","xn--clchc0ea0b2g2a9gcd","xn--czr694b","xn--czrs0t","xn--czru2d","xn--d1acj3b","xn--d1alf","xn--e1a4c","xn--eckvdtc9d","xn--efvy88h","xn--estv75g","xn--fct429k","xn--fhbei","xn--fiq228c5hs","xn--fiq64b","xn--fiqs8s","xn--fiqz9s","xn--fjq720a","xn--flw351e","xn--fpcrj9c3d","xn--fzc2c9e2c","xn--fzys8d69uvgm","xn--g2xx48c","xn--gckr3f0f","xn--gecrj9c","xn--gk3at1e","xn--h2brj9c","xn--hxt814e","xn--i1b6b1a6a2e","xn--imr513n","xn--io0a7i","xn--j1aef","xn--j1amh","xn--j6w193g","xn--jlq61u9w7b","xn--jvr189m","xn--kcrx77d1x4a","xn--kprw13d","xn--kpry57d","xn--kpu716f","xn--kput3i","xn--l1acc","xn--lgbbat1ad8j","xn--mgb9awbf","xn--mgba3a3ejt","xn--mgba3a4f16a","xn--mgba7c0bbn0a","xn--mgbaam7a8h","xn--mgbab2bd","xn--mgbai9azgqp6j","xn--mgbayh7gpa","xn--mgbb9fbpob","xn--mgbbh1a71e","xn--mgbc0a9azcg","xn--mgbca7dzdo","xn--mgberp4a5d4ar","xn--mgbi4ecexp","xn--mgbpl2fh","xn--mgbt3dhd","xn--mgbtx2b","xn--mgbx4cd0ab","xn--mix891f","xn--mk1bu44c","xn--mxtq1m","xn--ngbc5azd","xn--ngbe9e0a","xn--node","xn--nqv7f","xn--nqv7fs00ema","xn--nyqy26a","xn--o3cw4h","xn--ogbpf8fl","xn--p1acf","xn--p1ai","xn--pbt977c","xn--pgbs0dh","xn--pssy2u","xn--q9jyb4c","xn--qcka1pmc","xn--qxam","xn--rhqv96g","xn--rovu88b","xn--s9brj9c","xn--ses554g","xn--t60b56a","xn--tckwe","xn--tiq49xqyj","xn--unup4y","xn--vermgensberater-ctb","xn--vermgensberatung-pwb","xn--vhquv","xn--vuq861b","xn--w4r85el8fhu5dnra","xn--w4rs40l","xn--wgbh1c","xn--wgbl6a","xn--xhq521b","xn--xkc2al3hye2a","xn--xkc2dl3a5ee0h","xn--y9a3aq","xn--yfro4i67o","xn--ygbi2ammx","xn--zfr164b","xperia","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zippo","zm","zone","zuerich","zw"],w.htmlAttrs=["src=","data=","href=","cite=","formaction=","icon=","manifest=","poster=","codebase=","background=","profile=","usemap="]},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.ReactionPickerWrapper=void 0;var ie=ne(E(25)),oe=ne(E(39)),se=q(E(0)),le=ne(E(50)),pe=ne(E(127)),ge=E(370),he=E(58);w.ReactionPickerWrapper=function ReactionPickerWrapper(y){var w=y.alignment,E=y.children,q=y.customMessageContent,ne=y.dismissReactionPicker,me=y.emojiData,ve=void 0===me?he.emojiData:me,ye=y.handleReaction,Re=y.hideReactionCount,we=void 0!==Re&&Re,_e=y.hideReactionOwners,Me=void 0!==_e&&_e,Se=y.message,ke=y.offset,Ae=void 0===ke?{left:30,right:10,top:40}:ke,Oe=y.openReactionPicker,Te=y.ReactionPicker,je=void 0===Te?ge.ReactionPicker:Te,Fe=y.reactionPickerVisible,Be=y.supportedReactions,Ve=void 0===Be?he.emojiData:Be,Ne=(0,se.useRef)(null),Ue=(0,se.useState)(),We=(0,oe.default)(Ue,2),$e=We[0],Ye=We[1],Xe=(0,se.useState)(),et=(0,oe.default)(Xe,2),tt=et[0],nt=et[1],rt=(0,se.useState)(),it=(0,oe.default)(rt,2),ot=it[0],st=it[1];(0,se.useEffect)((function(){Fe&&dt()}),[Fe]);var dt=function setReactionPickerPosition(){setTimeout((function(){Ne.current&&Ne.current.measureInWindow((function(y,E,q){Ye("left"===w?y-10+Ae.left:void 0),nt("right"===w?Math.round(le.default.get("window").width)-(y+q+Ae.right):void 0),st(E-60+Ae.top)}))}),q?10:0)};return se.default.createElement(pe.default,{onPress:Oe,ref:Ne,testID:"reaction-picker-wrapper"},E,se.default.createElement(je,(0,ie.default)({},y,{handleDismiss:ne,handleReaction:ye,hideReactionCount:we,hideReactionOwners:Me,latestReactions:Se.latest_reactions,reactionCounts:Se.reaction_counts,reactionPickerVisible:Fe,rpLeft:$e,rpRight:tt,rpTop:ot,supportedReactions:Ve||ve})))}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.ReactionPicker=void 0;var ne=q(E(16)),ie=q(E(0)),oe=q(E(287)),se=q(E(9)),le=E(100),pe=E(15),ge=E(58);function _templateObject5(){var y=(0,ne.default)(["\n color: white;\n font-size: 10px;\n font-weight: bold;\n ","\n"]);return _templateObject5=function _templateObject5(){return y},y}function _templateObject4(){var y=(0,ne.default)(["\n font-size: 20px;\n margin-vertical: 5px;\n ","\n"]);return _templateObject4=function _templateObject4(){return y},y}function _templateObject3(){var y=(0,ne.default)(["\n align-items: center;\n margin-top: -5px;\n ","\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n background-color: black;\n border-radius: 30px;\n flex-direction: row;\n height: 60px;\n padding-horizontal: 20px;\n ","\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: ",";\n flex: 1;\n ","\n"]);return _templateObject=function _templateObject(){return y},y}var he=pe.styled.TouchableOpacity(_templateObject(),(function(y){return y.leftAlign?"flex-start":"flex-end"}),(function(y){return y.theme.message.reactionPicker.container.css})),me=pe.styled.View(_templateObject2(),(function(y){return y.theme.message.reactionPicker.containerView.css})),ve=pe.styled.View(_templateObject3(),(function(y){return y.theme.message.reactionPicker.column.css})),ye=pe.styled.Text(_templateObject4(),(function(y){return y.theme.message.reactionPicker.emoji.css})),Re=pe.styled.Text(_templateObject5(),(function(y){return y.theme.message.reactionPicker.text.css}));w.ReactionPicker=function ReactionPicker(y){var w=y.handleDismiss,E=y.handleReaction,q=y.hideReactionCount,ne=void 0!==q&&q,pe=y.hideReactionOwners,we=void 0!==pe&&pe,_e=y.latestReactions,Me=y.reactionCounts,Se=y.reactionPickerVisible,ke=y.rpLeft,Ae=y.rpRight,Oe=y.rpTop,Te=void 0===Oe?40:Oe,je=y.supportedReactions,Fe=void 0===je?ge.emojiData:je;return Se?ie.default.createElement(oe.default,{animationType:"fade",onRequestClose:w,testID:"reaction-picker",transparent:!0,visible:!0},ie.default.createElement(he,{activeOpacity:1,leftAlign:Boolean(ke),onPress:w},ie.default.createElement(me,{style:{marginLeft:ke,marginRight:Ae,marginTop:Te}},Fe.map((function(y){var w=y.icon,q=y.id,oe=(null==Me?void 0:Me[q])||0,pe=function getLatestUser(y,w){var E,q=null==w?void 0:w.filter((function(w){return w.type===y}));if(null==q||null==(E=q[0])?void 0:E.user)return q[0].user}(q,_e);return ie.default.createElement(ve,{key:q,testID:q},pe&&!we?ie.default.createElement(le.Avatar,{image:pe.image,name:pe.name||pe.id,size:18}):!we&&ie.default.createElement(se.default,{style:{height:18,width:18}}),ie.default.createElement(ye,{onPress:function onPress(){return E(q)},testID:q+"-reaction"},w),!ne&&ie.default.createElement(Re,{testID:q+"-"+(oe||"count")},oe>0?oe:""))}))))):null}},function(y,w,E){var q=E(24),ne=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.Thread=void 0;var ie=ne(E(25)),oe=ne(E(56)),se=ne(E(57)),le=ne(E(16)),pe=q(E(0)),ge=E(77),he=E(148),me=E(268),ve=E(75),ye=E(87),Re=E(165),we=E(37),_e=E(15);function _templateObject2(){var y=(0,le.default)(["\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,le.default)(["\n align-items: center;\n background-color: #f4f9ff;\n border-radius: 4px;\n margin: 10px;\n padding: 8px;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var Me=_e.styled.View(_templateObject(),(function(y){return y.theme.thread.newThread.css})),Se=_e.styled.Text(_templateObject2(),(function(y){return y.theme.thread.newThread.text.css}));w.Thread=function Thread(y){var w=y.additionalMessageInputProps,E=y.additionalMessageListProps,q=y.additionalParentMessageProps,ne=y.autoFocus,le=void 0===ne||ne,_e=y.disabled,ke=y.Message,Ae=y.MessageInput,Oe=void 0===Ae?he.MessageInput:Ae,Te=y.MessageList,je=void 0===Te?me.MessageList:Te,Fe=(0,ve.useChannelContext)().channel,Be=(0,ye.useMessagesContext)().Message,Ve=(0,Re.useThreadContext)(),Ne=Ve.loadMoreThread,Ue=Ve.thread,We=(0,we.useTranslationContext)().t;if((0,pe.useEffect)((function(){var y=function(){var y=(0,se.default)(oe.default.mark((function _callee(){return oe.default.wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,Ne();case 2:case"end":return y.stop()}}),_callee)})));return function loadMoreThreadAsync(){return y.apply(this,arguments)}}();(null==Ue?void 0:Ue.id)&&Ue.reply_count&&y()}),[]),!Ue)return null;var $e=ke||Be,Ye=pe.default.createElement(pe.default.Fragment,null,pe.default.createElement(ge.Message,(0,ie.default)({groupStyles:["single"],message:Ue,Message:$e,threadList:!0},q)),pe.default.createElement(Me,null,pe.default.createElement(Se,null,We("Start of a new thread"))));return pe.default.createElement(pe.default.Fragment,{key:"thread-"+Ue.id+"-"+((null==Fe?void 0:Fe.cid)||"")},pe.default.createElement(je,(0,ie.default)({FooterComponent:Ye,Message:$e,threadList:!0},E)),pe.default.createElement(Oe,(0,ie.default)({additionalTextInputProps:{autoFocus:le,editable:!_e},parent_id:Ue.id},w)))}},function(y,w,E){var q=E(78),ne=E(373),ie=E(272),oe=E(166),se=E(274),le=E(68),pe=E(509),ge=Object.getOwnPropertyDescriptor;w.f=q?ge:function getOwnPropertyDescriptor(y,w){if(y=oe(y),w=se(w,!0),pe)try{return ge(y,w)}catch(y){}if(le(y,w))return ie(!ne.f.call(y,w),y[w])}},function(y,w,E){"use strict";var q={}.propertyIsEnumerable,ne=Object.getOwnPropertyDescriptor,ie=ne&&!q.call({1:2},1);w.f=ie?function propertyIsEnumerable(y){var w=ne(this,y);return!!w&&w.enumerable}:q},function(y,w,E){var q=E(53),ne=E(149);y.exports=function(y,w){try{ne(q,y,w)}catch(E){q[y]=w}return w}},function(y,w,E){var q,ne,ie,oe=E(1021),se=E(53),le=E(54),pe=E(149),ge=E(68),he=E(275),me=E(214),ve=se.WeakMap;if(oe){var ye=new ve,Re=ye.get,we=ye.has,_e=ye.set;q=function(y,w){return _e.call(ye,y,w),w},ne=function(y){return Re.call(ye,y)||{}},ie=function(y){return we.call(ye,y)}}else{var Me=he("state");me[Me]=!0,q=function(y,w){return pe(y,Me,w),w},ne=function(y){return ge(y,Me)?y[Me]:{}},ie=function(y){return ge(y,Me)}}y.exports={set:q,get:ne,has:ie,enforce:function(y){return ie(y)?ne(y):q(y,{})},getterFor:function(y){return function(w){var E;if(!le(w)||(E=ne(w)).type!==y)throw TypeError("Incompatible receiver, "+y+" required");return E}}}},function(y,w,E){var q=E(513),ne=E(512);(y.exports=function(y,w){return ne[y]||(ne[y]=void 0!==w?w:{})})("versions",[]).push({version:"3.6.5",mode:q?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(y,w){y.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(y,w){w.f=Object.getOwnPropertySymbols},function(y,w,E){"use strict";var q=E(59);y.exports=function(){var y=q(this),w="";return y.global&&(w+="g"),y.ignoreCase&&(w+="i"),y.multiline&&(w+="m"),y.dotAll&&(w+="s"),y.unicode&&(w+="u"),y.sticky&&(w+="y"),w}},function(y,w,E){var q=E(31);y.exports=!!Object.getOwnPropertySymbols&&!q((function(){return!String(Symbol())}))},function(y,w,E){var q=E(213);y.exports=Array.isArray||function isArray(y){return"Array"==q(y)}},function(y,w,E){var q=E(31),ne=E(69),ie=E(523),oe=ne("species");y.exports=function(y){return ie>=51||!q((function(){var w=[];return(w.constructor={})[oe]=function(){return{foo:1}},1!==w[y](Boolean).foo}))}},function(y,w,E){var q={};q[E(69)("toStringTag")]="z",y.exports="[object z]"===String(q)},function(y,w,E){var q=E(110),ne=/"/g;y.exports=function(y,w,E,ie){var oe=String(q(y)),se="<"+w;return""!==E&&(se+=" "+E+'="'+String(ie).replace(ne,""")+'"'),se+">"+oe+""}},function(y,w,E){var q=E(31);y.exports=function(y){return q((function(){var w=""[y]('"');return w!==w.toLowerCase()||w.split('"').length>3}))}},function(y,w,E){"use strict";var q=E(1035).charAt;y.exports=function(y,w,E){return w+(E?q(y,w).length:1)}},function(y,w,E){"use strict";var q=E(281),ne=E(531),ie=E(59),oe=E(110),se=E(1061),le=E(386),pe=E(169),ge=E(282),he=E(280),me=E(31),ve=[].push,ye=Math.min,Re=4294967295,we=!me((function(){return!RegExp(Re,"y")}));q("split",2,(function(y,w,E){var q;return q="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(y,E){var q=String(oe(this)),ie=void 0===E?Re:E>>>0;if(0===ie)return[];if(void 0===y)return[q];if(!ne(y))return w.call(q,y,ie);for(var se,le,pe,ge=[],me=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(y.sticky?"y":""),ye=0,we=new RegExp(y.source,me+"g");(se=he.call(we,q))&&!((le=we.lastIndex)>ye&&(ge.push(q.slice(ye,se.index)),se.length>1&&se.index=ie));)we.lastIndex===se.index&&we.lastIndex++;return ye===q.length?!pe&&we.test("")||ge.push(""):ge.push(q.slice(ye)),ge.length>ie?ge.slice(0,ie):ge}:"0".split(void 0,0).length?function(y,E){return void 0===y&&0===E?[]:w.call(this,y,E)}:w,[function split(w,E){var ne=oe(this),ie=null==w?void 0:w[y];return void 0!==ie?ie.call(w,ne,E):q.call(String(ne),w,E)},function(y,ne){var oe=E(q,y,this,ne,q!==w);if(oe.done)return oe.value;var he=ie(y),me=String(this),ve=se(he,RegExp),_e=he.unicode,Me=(he.ignoreCase?"i":"")+(he.multiline?"m":"")+(he.unicode?"u":"")+(we?"y":"g"),Se=new ve(we?he:"^(?:"+he.source+")",Me),ke=void 0===ne?Re:ne>>>0;if(0===ke)return[];if(0===me.length)return null===ge(Se,me)?[me]:[];for(var Ae=0,Oe=0,Te=[];Oe0?oe-4:oe;for(E=0;E>16&255,le[pe++]=w>>8&255,le[pe++]=255&w;2===se&&(w=ne[y.charCodeAt(E)]<<2|ne[y.charCodeAt(E+1)]>>4,le[pe++]=255&w);1===se&&(w=ne[y.charCodeAt(E)]<<10|ne[y.charCodeAt(E+1)]<<4|ne[y.charCodeAt(E+2)]>>2,le[pe++]=w>>8&255,le[pe++]=255&w);return le},w.fromByteArray=function fromByteArray(y){for(var w,E=y.length,ne=E%3,ie=[],oe=16383,se=0,le=E-ne;sele?le:se+oe));1===ne?(w=y[E-1],ie.push(q[w>>2]+q[w<<4&63]+"==")):2===ne&&(w=(y[E-2]<<8)+y[E-1],ie.push(q[w>>10]+q[w>>4&63]+q[w<<2&63]+"="));return ie.join("")};for(var q=[],ne=[],ie="undefined"!=typeof Uint8Array?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=0,le=oe.length;se0)throw new Error("Invalid string. Length must be a multiple of 4");var E=y.indexOf("=");return-1===E&&(E=w),[E,E===w?0:4-E%4]}function encodeChunk(y,w,E){for(var ne,ie,oe=[],se=w;se>18&63]+q[ie>>12&63]+q[ie>>6&63]+q[63&ie]);return oe.join("")}ne["-".charCodeAt(0)]=62,ne["_".charCodeAt(0)]=63},function(y,w,E){var q=E(356);function memoize(y,w){if("function"!=typeof y||null!=w&&"function"!=typeof w)throw new TypeError("Expected a function");var memoized=function(){var E=arguments,q=w?w.apply(this,E):E[0],ne=memoized.cache;if(ne.has(q))return ne.get(q);var ie=y.apply(this,E);return memoized.cache=ne.set(q,ie)||ne,ie};return memoized.cache=new(memoize.Cache||q),memoized}memoize.Cache=q,y.exports=memoize},function(y,w,E){"use strict";(function(y){var q=E(173),ne=E(395),ie=E(5),oe=E.n(ie),se=E(17);var le=function(w){function SpringAnimation(y){var E,q,ie,le,pe,ge,he,me,ve,ye,Re,we;if((ve=w.call(this)||this)._overshootClamping=null!==(E=y.overshootClamping)&&void 0!==E&&E,ve._restDisplacementThreshold=null!==(q=y.restDisplacementThreshold)&&void 0!==q?q:.001,ve._restSpeedThreshold=null!==(ie=y.restSpeedThreshold)&&void 0!==ie?ie:.001,ve._initialVelocity=null!==(le=y.velocity)&&void 0!==le?le:0,ve._lastVelocity=null!==(pe=y.velocity)&&void 0!==pe?pe:0,ve._toValue=y.toValue,ve._delay=null!==(ge=y.delay)&&void 0!==ge?ge:0,ve._useNativeDriver=Object(se.c)(y),ve.__isInteraction=null!==(he=y.isInteraction)&&void 0!==he?he:!ve._useNativeDriver,ve.__iterations=null!==(me=y.iterations)&&void 0!==me?me:1,void 0!==y.stiffness||void 0!==y.damping||void 0!==y.mass)oe()(void 0===y.bounciness&&void 0===y.speed&&void 0===y.tension&&void 0===y.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),ve._stiffness=null!==(ye=y.stiffness)&&void 0!==ye?ye:100,ve._damping=null!==(Re=y.damping)&&void 0!==Re?Re:10,ve._mass=null!==(we=y.mass)&&void 0!==we?we:1;else if(void 0!==y.bounciness||void 0!==y.speed){var _e,Me;oe()(void 0===y.tension&&void 0===y.friction&&void 0===y.stiffness&&void 0===y.damping&&void 0===y.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var Se=ne.a.fromBouncinessAndSpeed(null!==(_e=y.bounciness)&&void 0!==_e?_e:8,null!==(Me=y.speed)&&void 0!==Me?Me:12);ve._stiffness=Se.stiffness,ve._damping=Se.damping,ve._mass=1}else{var ke,Ae,Oe=ne.a.fromOrigamiTensionAndFriction(null!==(ke=y.tension)&&void 0!==ke?ke:40,null!==(Ae=y.friction)&&void 0!==Ae?Ae:7);ve._stiffness=Oe.stiffness,ve._damping=Oe.damping,ve._mass=1}return oe()(ve._stiffness>0,"Stiffness value must be greater than 0"),oe()(ve._damping>0,"Damping value must be greater than 0"),oe()(ve._mass>0,"Mass value must be greater than 0"),ve}!function _inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(SpringAnimation,w);var E=SpringAnimation.prototype;return E.__getNativeAnimationConfig=function __getNativeAnimationConfig(){var y;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(y=this._initialVelocity)&&void 0!==y?y:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations}},E.start=function start(y,w,E,q,ne){var ie=this;if(this.__active=!0,this._startPosition=y,this._lastPosition=this._startPosition,this._onUpdate=w,this.__onEnd=E,this._lastTime=Date.now(),this._frameTime=0,q instanceof SpringAnimation){var oe=q.getInternalState();this._lastPosition=oe.lastPosition,this._lastVelocity=oe.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=oe.lastTime}var start=function start(){ie._useNativeDriver?ie.__startNativeAnimation(ne):ie.onUpdate()};this._delay?this._timeout=setTimeout(start,this._delay):start()},E.getInternalState=function getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}},E.onUpdate=function onUpdate(){var y=Date.now();y>this._lastTime+64&&(y=this._lastTime+64);var w=(y-this._lastTime)/1e3;this._frameTime+=w;var E=this._damping,q=this._mass,ne=this._stiffness,ie=-this._initialVelocity,oe=E/(2*Math.sqrt(ne*q)),se=Math.sqrt(ne/q),le=se*Math.sqrt(1-oe*oe),pe=this._toValue-this._startPosition,ge=0,he=0,me=this._frameTime;if(oe<1){var ve=Math.exp(-oe*se*me);ge=this._toValue-ve*((ie+oe*se*pe)/le*Math.sin(le*me)+pe*Math.cos(le*me)),he=oe*se*ve*(Math.sin(le*me)*(ie+oe*se*pe)/le+pe*Math.cos(le*me))-ve*(Math.cos(le*me)*(ie+oe*se*pe)-le*pe*Math.sin(le*me))}else{var ye=Math.exp(-se*me);ge=this._toValue-ye*(pe+(ie+se*pe)*me),he=ye*(ie*(me*se-1)+me*pe*(se*se))}if(this._lastTime=y,this._lastPosition=ge,this._lastVelocity=he,this._onUpdate(ge),this.__active){var Re=!1;this._overshootClamping&&0!==this._stiffness&&(Re=this._startPositionthis._toValue:ge18&&y<=44?function b3Friction2(y){return 44e-6*Math.pow(y,3)-.006*Math.pow(y,2)+.36*y+2}(y):function b3Friction3(y){return 45e-8*Math.pow(y,3)-332e-6*Math.pow(y,2)+.1078*y+5.84}(y)}(q),.01);return{stiffness:stiffnessFromOrigamiValue(q),damping:dampingFromOrigamiValue(ne)}}}},function(y,w,E){"use strict";(function(y){var q,ne=E(173),ie=E(227),oe=E(17);var se=function(w){function TimingAnimation(y){var E,ne,se,le,pe,ge;return(ge=w.call(this)||this)._toValue=y.toValue,ge._easing=null!==(E=y.easing)&&void 0!==E?E:function easeInOut(){return q||(q=ie.a.inOut(ie.a.ease)),q}(),ge._duration=null!==(ne=y.duration)&&void 0!==ne?ne:500,ge._delay=null!==(se=y.delay)&&void 0!==se?se:0,ge.__iterations=null!==(le=y.iterations)&&void 0!==le?le:1,ge._useNativeDriver=Object(oe.c)(y),ge.__isInteraction=null!==(pe=y.isInteraction)&&void 0!==pe?pe:!ge._useNativeDriver,ge}!function _inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(TimingAnimation,w);var E=TimingAnimation.prototype;return E.__getNativeAnimationConfig=function __getNativeAnimationConfig(){for(var y=[],w=0;w=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((y-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))},E.stop=function stop(){w.prototype.stop.call(this),this.__active=!1,clearTimeout(this._timeout),y.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})},TimingAnimation}(ne.a);w.a=se}).call(this,E(65))},function(y,w,E){var q=E(839),ne=E(840),ie=E(445),oe=E(841);y.exports=function _slicedToArray(y,w){return q(y)||ne(y,w)||ie(y,w)||oe()}},function(y,w,E){(function(w){var E=function(y){var w=/\blang(?:uage)?-([\w-]+)\b/i,E=0,q={manual:y.Prism&&y.Prism.manual,disableWorkerMessageHandler:y.Prism&&y.Prism.disableWorkerMessageHandler,util:{encode:function encode(y){return y instanceof Token?new Token(y.type,encode(y.content),y.alias):Array.isArray(y)?y.map(encode):y.replace(/&/g,"&").replace(/=oe.reach);Se+=Me.value.length,Me=Me.next){var ke=Me.value;if(w.length>y.length)return;if(!(ke instanceof Token)){var Ae=1;if(ve&&Me!=w.tail.prev){if(_e.lastIndex=Se,!(Be=_e.exec(y)))break;var Oe=Be.index+(me&&Be[1]?Be[1].length:0),Te=Be.index+Be[0].length,je=Se;for(je+=Me.value.length;Oe>=je;)je+=(Me=Me.next).value.length;if(Se=je-=Me.value.length,Me.value instanceof Token)continue;for(var Fe=Me;Fe!==w.tail&&(jeoe.reach&&(oe.reach=We);var $e=Me.prev;Ne&&($e=addAfter(w,$e,Ne),Se+=Ne.length),removeRange(w,$e,Ae),Me=addAfter(w,$e,new Token(se,he?q.tokenize(Ve,he):Ve,Re,Ve)),Ue&&addAfter(w,Me,Ue),Ae>1&&matchGrammar(y,w,E,Me.prev,Se,{cause:se+","+pe,reach:We})}}}}}}function LinkedList(){var y={value:null,prev:null,next:null},w={value:null,prev:y,next:null};y.next=w,this.head=y,this.tail=w,this.length=0}function addAfter(y,w,E){var q=w.next,ne={value:E,prev:w,next:q};return w.next=ne,q.prev=ne,y.length++,ne}function removeRange(y,w,E){for(var q=w.next,ne=0;ne"+ne.content+""},!y.document)return y.addEventListener?(q.disableWorkerMessageHandler||y.addEventListener("message",(function(w){var E=JSON.parse(w.data),ne=E.language,ie=E.code,oe=E.immediateClose;y.postMessage(q.highlight(ie,q.languages[ne],ne)),oe&&y.close()}),!1),q):q;var ne=q.util.currentScript();function highlightAutomaticallyCallback(){q.manual||q.highlightAll()}if(ne&&(q.filename=ne.src,ne.hasAttribute("data-manual")&&(q.manual=!0)),!q.manual){var ie=document.readyState;"loading"===ie||"interactive"===ie&&ne&&ne.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return q}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});y.exports&&(y.exports=E),void 0!==w&&(w.Prism=E),E.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},E.languages.markup.tag.inside["attr-value"].inside.entity=E.languages.markup.entity,E.languages.markup.doctype.inside["internal-subset"].inside=E.languages.markup,E.hooks.add("wrap",(function(y){"entity"===y.type&&(y.attributes.title=y.content.replace(/&/,"&"))})),Object.defineProperty(E.languages.markup.tag,"addInlined",{value:function addInlined(y,w){var q={};q["language-"+w]={pattern:/(^$)/i,lookbehind:!0,inside:E.languages[w]},q.cdata=/^$/i;var ne={"included-cdata":{pattern://i,inside:q}};ne["language-"+w]={pattern:/[\s\S]+/,inside:E.languages[w]};var ie={};ie[y]={pattern:RegExp(/(<__[\s\S]*?>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return y})),"i"),lookbehind:!0,greedy:!0,inside:ne},E.languages.insertBefore("markup","cdata",ie)}}),E.languages.html=E.languages.markup,E.languages.mathml=E.languages.markup,E.languages.svg=E.languages.markup,E.languages.xml=E.languages.extend("markup",{}),E.languages.ssml=E.languages.xml,E.languages.atom=E.languages.xml,E.languages.rss=E.languages.xml,function(y){var w=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;y.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+w.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+w.source+"$"),alias:"url"}}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+w.source+")*?(?=\\s*\\{)"),string:{pattern:w,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},y.languages.css.atrule.inside.rest=y.languages.css;var E=y.languages.markup;E&&(E.tag.addInlined("style","css"),y.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:E.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:y.languages.css}},alias:"language-css"}},E.tag))}(E),E.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},E.languages.javascript=E.languages.extend("clike",{"class-name":[E.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),E.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,E.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:E.languages.regex},"regex-flags":/[a-z]+$/,"regex-delimiter":/^\/|\/$/}},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:E.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:E.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:E.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:E.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),E.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:E.languages.javascript}},string:/[\s\S]+/}}}),E.languages.markup&&E.languages.markup.tag.addInlined("script","javascript"),E.languages.js=E.languages.javascript,function(){if("undefined"!=typeof self&&self.Prism&&self.document){var y=window.Prism,w={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},E="data-src-status",q="loading",ne="loaded",ie='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',oe=/\blang(?:uage)?-([\w-]+)\b/i;y.hooks.add("before-highlightall",(function(y){y.selector+=", "+ie})),y.hooks.add("before-sanity-check",(function(oe){var se=oe.element;if(se.matches(ie)){oe.code="",se.setAttribute(E,q);var le=se.appendChild(document.createElement("CODE"));le.textContent="Loading…";var pe=se.getAttribute("data-src"),ge=oe.language;if("none"===ge){var he=(/\.(\w+)$/.exec(pe)||[,"none"])[1];ge=w[he]||he}setLanguageClass(le,ge),setLanguageClass(se,ge);var me=y.plugins.autoloader;me&&me.loadLanguages(ge);var ve=new XMLHttpRequest;ve.open("GET",pe,!0),ve.onreadystatechange=function(){var w,q;4==ve.readyState&&(ve.status<400&&ve.responseText?(se.setAttribute(E,ne),le.textContent=ve.responseText,y.highlightElement(le)):(se.setAttribute(E,"failed"),ve.status>=400?le.textContent=(w=ve.status,q=ve.statusText,"✖ Error "+w+" while fetching file: "+q):le.textContent="✖ Error: File does not exist or is empty"))},ve.send(null)}})),y.plugins.fileHighlight={highlight:function highlight(w){for(var E,q=(w||document).querySelectorAll(ie),ne=0;E=q[ne++];)y.highlightElement(E)}};var se=!1;y.fileHighlight=function(){se||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),se=!0),y.plugins.fileHighlight.highlight.apply(this,arguments)}}function setLanguageClass(y,w){var E=y.className;E=E.replace(oe," ")+" language-"+w,y.className=E.replace(/\s+/g," ").trim()}}()}).call(this,E(65))},function(y,w,E){y.exports=!E(41)&&!E(21)((function(){return 7!=Object.defineProperty(E(306)("div"),"a",{get:function(){return 7}}).a}))},function(y,w,E){var q=E(20),ne=E(38),ie=E(136),oe=E(307),se=E(42).f;y.exports=function(y){var w=ne.Symbol||(ne.Symbol=ie?{}:q.Symbol||{});"_"==y.charAt(0)||y in w||se(w,y,{value:oe.f(y)})}},function(y,w,E){var q=E(71),ne=E(73),ie=E(231)(!1),oe=E(308)("IE_PROTO");y.exports=function(y,w){var E,se=ne(y),le=0,pe=[];for(E in se)E!=oe&&q(se,E)&&pe.push(E);for(;w.length>le;)q(se,E=w[le++])&&(~ie(pe,E)||pe.push(E));return pe}},function(y,w,E){var q=E(42),ne=E(22),ie=E(137);y.exports=E(41)?Object.defineProperties:function defineProperties(y,w){ne(y);for(var E,oe=ie(w),se=oe.length,le=0;se>le;)q.f(y,E=oe[le++],w[E]);return y}},function(y,w,E){var q=E(73),ne=E(140).f,ie={}.toString,oe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];y.exports.f=function getOwnPropertyNames(y){return oe&&"[object Window]"==ie.call(y)?function(y){try{return ne(y)}catch(y){return oe.slice()}}(y):ne(q(y))}},function(y,w,E){"use strict";var q=E(41),ne=E(137),ie=E(232),oe=E(186),se=E(52),le=E(185),pe=Object.assign;y.exports=!pe||E(21)((function(){var y={},w={},E=Symbol(),q="abcdefghijklmnopqrst";return y[E]=7,q.split("").forEach((function(y){w[y]=y})),7!=pe({},y)[E]||Object.keys(pe({},w)).join("")!=q}))?function assign(y,w){for(var E=se(y),pe=arguments.length,ge=1,he=ie.f,me=oe.f;pe>ge;)for(var ve,ye=le(arguments[ge++]),Re=he?ne(ye).concat(he(ye)):ne(ye),we=Re.length,_e=0;we>_e;)ve=Re[_e++],q&&!me.call(ye,ve)||(E[ve]=ye[ve]);return E}:pe},function(y,w){y.exports=Object.is||function is(y,w){return y===w?0!==y||1/y==1/w:y!=y&&w!=w}},function(y,w,E){"use strict";var q=E(94),ne=E(23),ie=E(407),oe=[].slice,se={},construct=function(y,w,E){if(!(w in se)){for(var q=[],ne=0;ne>>0||(oe.test(E)?16:10))}:q},function(y,w,E){var q=E(20).parseFloat,ne=E(155).trim;y.exports=1/q(E(312)+"-0")!=-1/0?function parseFloat(y){var w=ne(String(y),3),E=q(w);return 0===E&&"-"==w.charAt(0)?-0:E}:q},function(y,w,E){var q=E(106);y.exports=function(y,w){if("number"!=typeof y&&"Number"!=q(y))throw TypeError(w);return+y}},function(y,w,E){var q=E(23),ne=Math.floor;y.exports=function isInteger(y){return!q(y)&&isFinite(y)&&ne(y)===y}},function(y,w){y.exports=Math.log1p||function log1p(y){return(y=+y)>-1e-8&&y<1e-8?y-y*y/2:Math.log(1+y)}},function(y,w,E){"use strict";var q=E(139),ne=E(134),ie=E(154),oe={};E(72)(oe,E(30)("iterator"),(function(){return this})),y.exports=function(y,w,E){y.prototype=q(oe,{next:ne(1,E)}),ie(y,w+" Iterator")}},function(y,w,E){var q=E(22);y.exports=function(y,w,E,ne){try{return ne?w(q(E)[0],E[1]):w(E)}catch(w){var ie=y.return;throw void 0!==ie&&q(ie.call(y)),w}}},function(y,w,E){var q=E(670);y.exports=function(y,w){return new(q(y))(w)}},function(y,w,E){var q=E(94),ne=E(52),ie=E(185),oe=E(34);y.exports=function(y,w,E,se,le){q(w);var pe=ne(y),ge=ie(pe),he=oe(pe.length),me=le?he-1:0,ve=le?-1:1;if(E<2)for(;;){if(me in ge){se=ge[me],me+=ve;break}if(me+=ve,le?me<0:he<=me)throw TypeError("Reduce of empty array with no initial value")}for(;le?me>=0:he>me;me+=ve)me in ge&&(se=w(se,ge[me],me,pe));return se}},function(y,w,E){"use strict";var q=E(52),ne=E(138),ie=E(34);y.exports=[].copyWithin||function copyWithin(y,w){var E=q(this),oe=ie(E.length),se=ne(y,oe),le=ne(w,oe),pe=arguments.length>2?arguments[2]:void 0,ge=Math.min((void 0===pe?oe:ne(pe,oe))-le,oe-se),he=1;for(le0;)le in E?E[se]=E[le]:delete E[se],se+=he,le+=he;return E}},function(y,w){y.exports=function(y,w){return{value:w,done:!!y}}},function(y,w,E){"use strict";var q=E(327);E(6)({target:"RegExp",proto:!0,forced:q!==/./.exec},{exec:q})},function(y,w,E){E(41)&&"g"!=/./g.flags&&E(42).f(RegExp.prototype,"flags",{configurable:!0,get:E(235)})},function(y,w,E){"use strict";var q,ne,ie,oe,se=E(136),le=E(20),pe=E(93),ge=E(187),he=E(6),me=E(23),ve=E(94),ye=E(158),Re=E(238),we=E(188),_e=E(329).set,Me=E(690)(),Se=E(422),ke=E(691),Ae=E(239),Oe=E(423),Te="Promise",je=le.TypeError,Fe=le.process,Be=Fe&&Fe.versions,Ve=Be&&Be.v8||"",Ne=le.Promise,Ue="process"==ge(Fe),empty=function(){},We=ne=Se.f,$e=!!function(){try{var y=Ne.resolve(1),w=(y.constructor={})[E(30)("species")]=function(y){y(empty,empty)};return(Ue||"function"==typeof PromiseRejectionEvent)&&y.then(empty)instanceof w&&0!==Ve.indexOf("6.6")&&-1===Ae.indexOf("Chrome/66")}catch(y){}}(),isThenable=function(y){var w;return!(!me(y)||"function"!=typeof(w=y.then))&&w},notify=function(y,w){if(!y._n){y._n=!0;var E=y._c;Me((function(){for(var q=y._v,ne=1==y._s,ie=0,run=function(w){var E,ie,oe,se=ne?w.ok:w.fail,le=w.resolve,pe=w.reject,ge=w.domain;try{se?(ne||(2==y._h&&onHandleUnhandled(y),y._h=1),!0===se?E=q:(ge&&ge.enter(),E=se(q),ge&&(ge.exit(),oe=!0)),E===w.promise?pe(je("Promise-chain cycle")):(ie=isThenable(E))?ie.call(E,le,pe):le(E)):pe(q)}catch(y){ge&&!oe&&ge.exit(),pe(y)}};E.length>ie;)run(E[ie++]);y._c=[],y._n=!1,w&&!y._h&&onUnhandled(y)}))}},onUnhandled=function(y){_e.call(le,(function(){var w,E,q,ne=y._v,ie=isUnhandled(y);if(ie&&(w=ke((function(){Ue?Fe.emit("unhandledRejection",ne,y):(E=le.onunhandledrejection)?E({promise:y,reason:ne}):(q=le.console)&&q.error&&q.error("Unhandled promise rejection",ne)})),y._h=Ue||isUnhandled(y)?2:1),y._a=void 0,ie&&w.e)throw w.v}))},isUnhandled=function(y){return 1!==y._h&&0===(y._a||y._c).length},onHandleUnhandled=function(y){_e.call(le,(function(){var w;Ue?Fe.emit("rejectionHandled",y):(w=le.onrejectionhandled)&&w({promise:y,reason:y._v})}))},$reject=function(y){var w=this;w._d||(w._d=!0,(w=w._w||w)._v=y,w._s=2,w._a||(w._a=w._c.slice()),notify(w,!0))},$resolve=function(y){var w,E=this;if(!E._d){E._d=!0,E=E._w||E;try{if(E===y)throw je("Promise can't be resolved itself");(w=isThenable(y))?Me((function(){var q={_w:E,_d:!1};try{w.call(y,pe($resolve,q,1),pe($reject,q,1))}catch(y){$reject.call(q,y)}})):(E._v=y,E._s=1,notify(E,!1))}catch(y){$reject.call({_w:E,_d:!1},y)}}};$e||(Ne=function Promise(y){ye(this,Ne,Te,"_h"),ve(y),q.call(this);try{y(pe($resolve,this,1),pe($reject,this,1))}catch(y){$reject.call(this,y)}},(q=function Promise(y){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=E(159)(Ne.prototype,{then:function then(y,w){var E=We(we(this,Ne));return E.ok="function"!=typeof y||y,E.fail="function"==typeof w&&w,E.domain=Ue?Fe.domain:void 0,this._c.push(E),this._a&&this._a.push(E),this._s&¬ify(this,!1),E.promise},catch:function(y){return this.then(void 0,y)}}),ie=function(){var y=new q;this.promise=y,this.resolve=pe($resolve,y,1),this.reject=pe($reject,y,1)},Se.f=We=function(y){return y===Ne||y===oe?new ie(y):ne(y)}),he(he.G+he.W+he.F*!$e,{Promise:Ne}),E(154)(Ne,Te),E(157)(Te),oe=E(38).Promise,he(he.S+he.F*!$e,Te,{reject:function reject(y){var w=We(this);return(0,w.reject)(y),w.promise}}),he(he.S+he.F*(se||!$e),Te,{resolve:function resolve(y){return Oe(se&&this===oe?Ne:this,y)}}),he(he.S+he.F*!($e&&E(234)((function(y){Ne.all(y).catch(empty)}))),Te,{all:function all(y){var w=this,E=We(w),q=E.resolve,ne=E.reject,ie=ke((function(){var E=[],ie=0,oe=1;Re(y,!1,(function(y){var se=ie++,le=!1;E.push(void 0),oe++,w.resolve(y).then((function(y){le||(le=!0,E[se]=y,--oe||q(E))}),ne)})),--oe||q(E)}));return ie.e&&ne(ie.v),E.promise},race:function race(y){var w=this,E=We(w),q=E.reject,ne=ke((function(){Re(y,!1,(function(y){w.resolve(y).then(E.resolve,q)}))}));return ne.e&&q(ne.v),E.promise}})},function(y,w,E){"use strict";var q=E(94);function PromiseCapability(y){var w,E;this.promise=new y((function(y,q){if(void 0!==w||void 0!==E)throw TypeError("Bad Promise constructor");w=y,E=q})),this.resolve=q(w),this.reject=q(E)}y.exports.f=function(y){return new PromiseCapability(y)}},function(y,w,E){var q=E(22),ne=E(23),ie=E(422);y.exports=function(y,w){if(q(y),ne(w)&&w.constructor===y)return w;var E=ie.f(y);return(0,E.resolve)(w),E.promise}},function(y,w,E){"use strict";var q=E(42).f,ne=E(139),ie=E(159),oe=E(93),se=E(158),le=E(238),pe=E(318),ge=E(418),he=E(157),me=E(41),ve=E(121).fastKey,ye=E(143),Re=me?"_s":"size",getEntry=function(y,w){var E,q=ve(w);if("F"!==q)return y._i[q];for(E=y._f;E;E=E.n)if(E.k==w)return E};y.exports={getConstructor:function(y,w,E,pe){var ge=y((function(y,q){se(y,ge,w,"_i"),y._t=w,y._i=ne(null),y._f=void 0,y._l=void 0,y[Re]=0,null!=q&&le(q,E,y[pe],y)}));return ie(ge.prototype,{clear:function clear(){for(var y=ye(this,w),E=y._i,q=y._f;q;q=q.n)q.r=!0,q.p&&(q.p=q.p.n=void 0),delete E[q.i];y._f=y._l=void 0,y[Re]=0},delete:function(y){var E=ye(this,w),q=getEntry(E,y);if(q){var ne=q.n,ie=q.p;delete E._i[q.i],q.r=!0,ie&&(ie.n=ne),ne&&(ne.p=ie),E._f==q&&(E._f=ne),E._l==q&&(E._l=ie),E[Re]--}return!!q},forEach:function forEach(y){ye(this,w);for(var E,q=oe(y,arguments.length>1?arguments[1]:void 0,3);E=E?E.n:this._f;)for(q(E.v,E.k,this);E&&E.r;)E=E.p},has:function has(y){return!!getEntry(ye(this,w),y)}}),me&&q(ge.prototype,"size",{get:function(){return ye(this,w)[Re]}}),ge},def:function(y,w,E){var q,ne,ie=getEntry(y,w);return ie?ie.v=E:(y._l=ie={i:ne=ve(w,!0),k:w,v:E,p:q=y._l,n:void 0,r:!1},y._f||(y._f=ie),q&&(q.n=ie),y[Re]++,"F"!==ne&&(y._i[ne]=ie)),y},getEntry:getEntry,setStrong:function(y,w,E){pe(y,w,(function(y,E){this._t=ye(y,w),this._k=E,this._l=void 0}),(function(){for(var y=this,w=y._k,E=y._l;E&&E.r;)E=E.p;return y._t&&(y._l=E=E?E.n:y._t._f)?ge(0,"keys"==w?E.k:"values"==w?E.v:[E.k,E.v]):(y._t=void 0,ge(1))}),E?"entries":"values",!E,!0),he(w)}}},function(y,w,E){"use strict";var q=E(159),ne=E(121).getWeak,ie=E(22),oe=E(23),se=E(158),le=E(238),pe=E(98),ge=E(71),he=E(143),me=pe(5),ve=pe(6),ye=0,uncaughtFrozenStore=function(y){return y._l||(y._l=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.a=[]},findUncaughtFrozen=function(y,w){return me(y.a,(function(y){return y[0]===w}))};UncaughtFrozenStore.prototype={get:function(y){var w=findUncaughtFrozen(this,y);if(w)return w[1]},has:function(y){return!!findUncaughtFrozen(this,y)},set:function(y,w){var E=findUncaughtFrozen(this,y);E?E[1]=w:this.a.push([y,w])},delete:function(y){var w=ve(this.a,(function(w){return w[0]===y}));return~w&&this.a.splice(w,1),!!~w}},y.exports={getConstructor:function(y,w,E,ie){var pe=y((function(y,q){se(y,pe,w,"_i"),y._t=w,y._i=ye++,y._l=void 0,null!=q&&le(q,E,y[ie],y)}));return q(pe.prototype,{delete:function(y){if(!oe(y))return!1;var E=ne(y);return!0===E?uncaughtFrozenStore(he(this,w)).delete(y):E&&ge(E,this._i)&&delete E[this._i]},has:function has(y){if(!oe(y))return!1;var E=ne(y);return!0===E?uncaughtFrozenStore(he(this,w)).has(y):E&&ge(E,this._i)}}),pe},def:function(y,w,E){var q=ne(ie(w),!0);return!0===q?uncaughtFrozenStore(y).set(w,E):q[y._i]=E,y},ufstore:uncaughtFrozenStore}},function(y,w,E){var q=E(95),ne=E(34);y.exports=function(y){if(void 0===y)return 0;var w=q(y),E=ne(w);if(w!==E)throw RangeError("Wrong length!");return E}},function(y,w,E){var q=E(140),ne=E(232),ie=E(22),oe=E(20).Reflect;y.exports=oe&&oe.ownKeys||function ownKeys(y){var w=q.f(ie(y)),E=ne.f;return E?w.concat(E(y)):w}},function(y,w,E){var q=E(34),ne=E(314),ie=E(107);y.exports=function(y,w,E,oe){var se=String(ie(y)),le=se.length,pe=void 0===E?" ":String(E),ge=q(w);if(ge<=le||""==pe)return se;var he=ge-le,me=ne.call(pe,Math.ceil(he/pe.length));return me.length>he&&(me=me.slice(0,he)),oe?me+se:se+me}},function(y,w,E){var q=E(41),ne=E(137),ie=E(73),oe=E(186).f;y.exports=function(y){return function(w){for(var E,se=ie(w),le=ne(se),pe=le.length,ge=0,he=[];pe>ge;)E=le[ge++],q&&!oe.call(se,E)||he.push(y?[E,se[E]]:se[E]);return he}}},function(y,w){var E=y.exports={version:"2.6.11"};"number"==typeof __e&&(__e=E)},function(y,w){y.exports=function(y){try{return!!y()}catch(y){return!0}}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=function capitalizeString(y){return y.charAt(0).toUpperCase()+y.slice(1)}},function(y,w,E){"use strict";(function(y){function _interopDefault(y){return y&&"object"==typeof y&&"default"in y?y.default:y}Object.defineProperty(w,"__esModule",{value:!0});var q=_interopDefault(E(770)),ne=E(434),ie=E(0),oe=_interopDefault(ie);E(780);var se=_interopDefault(E(781)),le=_interopDefault(E(782)),pe=_interopDefault(E(783)),ge=_interopDefault(E(784)),he=/(a)(d)/gi,me=function getAlphabeticChar(y){return String.fromCharCode(y+(y>25?39:97))};var ve=function phash(y,w){for(var E=w.length;E;)y=33*y^w.charCodeAt(--E);return y},generateComponentId=function(y){return function generateAlphabeticName(y){var w,E="";for(w=Math.abs(y);w>52;w=w/52|0)E=me(w%52)+E;return(me(w%52)+E).replace(he,"$1-$2")}(function hash(y){return ve(5381,y)}(y)>>>0)};function getComponentName(y){return y.displayName||y.name||"Component"}function isFunction(y){return"function"==typeof y}var isPlainObject=function(y){return null!==y&&"object"==typeof y&&"[object Object]"===(y.toString?y.toString():Object.prototype.toString.call(y))&&!ne.typeOf(y)};function isStyledComponent(y){return y&&"string"==typeof y.styledComponentId}function _defineProperties(y,w){for(var E=0;E=0||(ne[E]=y[E]);return ne}var ye=void 0!==y&&(y.env.REACT_APP_SC_ATTR||y.env.SC_ATTR)||"data-styled",Re="active",we="data-styled-version",_e="5.2.0",Me="/*!sc*/\n",Se="undefined"!=typeof window&&"HTMLElement"in window,ke="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==y&&(y.env.REACT_APP_SC_DISABLE_SPEEDY||y.env.SC_DISABLE_SPEEDY)||!1;function throwStyledComponentsError(y){for(var w=arguments.length,E=new Array(w>1?w-1:0),q=1;q0?" Args: "+E.join(", "):""))}var Ae=function makeStyleTag(y){var w=document.head,q=y||w,ne=document.createElement("style"),ie=function findLastStyleTag(y){for(var w=y.childNodes,E=w.length;E>=0;E--){var q=w[E];if(q&&1===q.nodeType&&q.hasAttribute(ye))return q}}(q),oe=void 0!==ie?ie.nextSibling:null;ne.setAttribute(ye,Re),ne.setAttribute(we,_e);var se=function getNonce(){return E.nc}();return se&&ne.setAttribute("nonce",se),q.insertBefore(ne,oe),ne},Oe=function(){function CSSOMTag(y){var w=this.element=Ae(y);w.appendChild(document.createTextNode("")),this.sheet=function getSheet(y){if(y.sheet)return y.sheet;for(var w=document.styleSheets,E=0,q=w.length;E=0){var E=document.createTextNode(w),q=this.nodes[y];return this.element.insertBefore(E,q||null),this.length++,!0}return!1},y.deleteRule=function deleteRule(y){this.element.removeChild(this.nodes[y]),this.length--},y.getRule=function getRule(y){return y=this.groupSizes.length){for(var E=this.groupSizes,q=E.length,ne=q;y>=ne;)(ne<<=1)<0&&throwStyledComponentsError(16,""+y);this.groupSizes=new Uint32Array(ne),this.groupSizes.set(E),this.length=ne;for(var ie=q;ie=this.length||0===this.groupSizes[y])return w;for(var E=this.groupSizes[y],q=this.indexOfGroup(y),ne=q+E,ie=q;ie=Ne&&(Ne=w+1),Be.set(y,w),Ve.set(w,y)},Ye="style["+ye+"]["+we+'="'+'5.2.0"]',Xe=new RegExp("^"+ye+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),et=function rehydrateNamesFromContent(y,w,E){for(var q,ne=E.split(","),ie=0,oe=ne.length;ie0&&(pe+=y+",")})),q+=""+se+le+'{content:"'+pe+'"}'+Me}}}return q}(this)},StyleSheet}(),ot=Object.freeze([]),st=Object.freeze({});var dt=/^\s*\/\/.*$/gm,ct=[":","[",".","#"];oe.createContext().Consumer,oe.createContext().Consumer,new it;var ut=function createStylisInstance(y){var w,E,q,ne,ie=void 0===y?st:y,oe=ie.options,le=void 0===oe?st:oe,pe=ie.plugins,ge=void 0===pe?ot:pe,he=new se(le),me=[],ye=function insertRulePlugin(y){var w="/*|*/";function toSheet(w){if(w)try{y(w+"}")}catch(y){}}return function ruleSheet(E,q,ne,ie,oe,se,le,pe,ge,he){switch(E){case 1:if(0===ge&&64===q.charCodeAt(0))return y(q+";"),"";break;case 2:if(0===pe)return q+w;break;case 3:switch(pe){case 102:case 112:return y(ne[0]+q),"";default:return q+(0===he?w:"")}case-2:q.split("/*|*/}").forEach(toSheet)}}}((function(y){me.push(y)})),Re=function selfReferenceReplacer(y,q,ie){return 0===q&&ct.includes(ie[E.length])||ie.match(ne)?y:"."+w};function stringifyRules(y,ie,oe,se){void 0===se&&(se="&");var le=y.replace(dt,""),pe=ie&&oe?oe+" "+ie+" { "+le+" }":le;return w=se,E=ie,q=new RegExp("\\"+E+"\\b","g"),ne=new RegExp("(\\"+E+"\\b){2,}"),he(oe||!ie?"":ie,pe)}return he.use([].concat(ge,[function selfReferenceReplacementPlugin(y,w,ne){2===y&&ne.length&&ne[0].lastIndexOf(E)>0&&(ne[0]=ne[0].replace(q,Re))},ye,function returnRulesPlugin(y){if(-2===y){var w=me;return me=[],w}}])),stringifyRules.hash=ge.length?ge.reduce((function(y,w){return w.name||throwStyledComponentsError(15),ve(y,w.name)}),5381).toString():"",stringifyRules}(),lt=function(){function Keyframes(y,w){var E=this;this.inject=function(y,w){void 0===w&&(w=ut);var q=E.name+w.hash;y.hasNameForId(E.id,q)||y.insertRules(E.id,q,w(E.rules,q,"@keyframes"))},this.toString=function(){return throwStyledComponentsError(12,String(E.name))},this.name=y,this.id="sc-keyframes-"+y,this.rules=w}return Keyframes.prototype.getName=function getName(y){return void 0===y&&(y=ut),this.name+y.hash},Keyframes}(),pt=/([A-Z])/,gt=new RegExp(pt,"g"),ht=/^ms-/,ft=function prefixAndLowerCase(y){return"-"+y.toLowerCase()};function hyphenateStyleName(y){return pt.test(y)?y.replace(gt,ft).replace(ht,"-ms-"):y}var mt=function isFalsish(y){return null==y||!1===y||""===y},vt=function objToCssArray(y,w){var E,q,ne=[];for(var ie in y)y.hasOwnProperty(ie)&&!mt(y[ie])&&(isPlainObject(y[ie])?ne.push.apply(ne,objToCssArray(y[ie],ie)):isFunction(y[ie])?ne.push(hyphenateStyleName(ie)+":",y[ie],";"):ne.push(hyphenateStyleName(ie)+": "+(E=ie,(null==(q=y[ie])||"boolean"==typeof q||""===q?"":"number"!=typeof q||0===q||E in le?String(q).trim():q+"px")+";")));return w?[w+" {"].concat(ne,["}"]):ne};function flatten(y,w,E,q){if(Array.isArray(y)){for(var ne,ie=[],oe=0,se=y.length;oe0?(pe=ke+oe,ge=q-ie[oe].length):(pe=ke,ge=Se),Re.push(["string",we.slice(Ae,q+1),ke,Ae-Se,pe,q-ge]),Se=ge,ke=pe,Ae=q;break;case zt:Ft.lastIndex=Ae+1,Ft.test(we),q=0===Ft.lastIndex?we.length-1:Ft.lastIndex-2,Re.push(["at-word",we.slice(Ae,q+1),ke,Ae-Se,ke,q-Se]),Ae=q;break;case xt:for(q=Ae,le=!0;we.charCodeAt(q+1)===xt;)q+=1,le=!le;E=we.charCodeAt(q+1),le&&E!==wt&&E!==_t&&E!==Ct&&E!==St&&E!==kt&&E!==Mt&&(q+=1),Re.push(["word",we.slice(Ae,q+1),ke,Ae-Se,ke,q-Se]),Ae=q;break;default:E===wt&&we.charCodeAt(Ae+1)===Lt?(0===(q=we.indexOf("*/",Ae+2)+1)&&(_e?q=we.length:unclosed("comment")),(oe=(ie=(se=we.slice(Ae,q+1)).split("\n")).length-1)>0?(pe=ke+oe,ge=q-ie[oe].length):(pe=ke,ge=Se),Re.push(["comment",se,ke,Ae-Se,pe,q-ge]),Se=ge,ke=pe,Ae=q):(Bt.lastIndex=Ae+1,Bt.test(we),q=0===Bt.lastIndex?we.length-1:Bt.lastIndex-2,Re.push(["word",we.slice(Ae,q+1),ke,Ae-Se,ke,q-Se]),Ae=q)}Ae++}return Re}var Ht={brackets:[36,39],string:[31,39],"at-word":[31,39],comment:[90,39],"{":[32,39],"}":[32,39],":":[1,22],";":[1,22],"(":[1,22],")":[1,22]};function code(y){return"["+y+"m"}var Nt=function(){function CssSyntaxError(y,w,E,q,ne,ie){this.name="CssSyntaxError",this.reason=y,ne&&(this.file=ne),q&&(this.source=q),ie&&(this.plugin=ie),void 0!==w&&void 0!==E&&(this.line=w,this.column=E),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,CssSyntaxError)}var y=CssSyntaxError.prototype;return y.setMessage=function setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},y.showSourceCode=function showSourceCode(y){var w=this;if(!this.source)return"";var E=this.source;void 0===y&&(y=pe),y&&(E=function terminalHighlight(y){var w=tokenize(new dn(y),{ignoreErrors:!0}),E=[];return w.forEach((function(y){var w=Ht[y[0]];w?E.push(y[1].split(/\r?\n/).map((function(y){return code(w[0])+y+code(w[1])})).join("\n")):E.push(y[1])})),E.join("")}(E));var q=E.split(/\r?\n/),ne=Math.max(this.line-3,0),ie=Math.min(this.line+2,q.length),oe=String(ie).length;return q.slice(ne,ie).map((function(y,E){var q=ne+1+E,ie=" "+(" "+q).slice(-oe)+" | ";if(q===w.line){var se=ie.replace(/\d/g," ")+y.slice(0,w.column-1).replace(/[^\t]/g," ");return">"+ie+y+"\n "+se+"^"}return" "+ie+y})).join("\n")},y.toString=function toString(){var y=this.showSourceCode();return y&&(y="\n\n"+y+"\n"),this.name+": "+this.message+y},_createClass(CssSyntaxError,[{key:"generated",get:function get(){return warnOnce("CssSyntaxError#generated is deprecated. Use input instead."),this.input}}]),CssSyntaxError}(),Ut={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "};var Gt=function(){function Stringifier(y){this.builder=y}var y=Stringifier.prototype;return y.stringify=function stringify(y,w){this[y.type](y,w)},y.root=function root(y){this.body(y),y.raws.after&&this.builder(y.raws.after)},y.comment=function comment(y){var w=this.raw(y,"left","commentLeft"),E=this.raw(y,"right","commentRight");this.builder("/*"+w+y.text+E+"*/",y)},y.decl=function decl(y,w){var E=this.raw(y,"between","colon"),q=y.prop+E+this.rawValue(y,"value");y.important&&(q+=y.raws.important||" !important"),w&&(q+=";"),this.builder(q,y)},y.rule=function rule(y){this.block(y,this.rawValue(y,"selector"))},y.atrule=function atrule(y,w){var E="@"+y.name,q=y.params?this.rawValue(y,"params"):"";if(void 0!==y.raws.afterName?E+=y.raws.afterName:q&&(E+=" "),y.nodes)this.block(y,E+q);else{var ne=(y.raws.between||"")+(w?";":"");this.builder(E+q+ne,y)}},y.body=function body(y){for(var w=y.nodes.length-1;w>0&&"comment"===y.nodes[w].type;)w-=1;for(var E=this.raw(y,"semicolon"),q=0;q0&&void 0!==y.raws.after)return-1!==(w=y.raws.after).indexOf("\n")&&(w=w.replace(/[^\n]+$/,"")),!1})),w},y.rawBeforeOpen=function rawBeforeOpen(y){var w;return y.walk((function(y){if("decl"!==y.type&&void 0!==(w=y.raws.between))return!1})),w},y.rawColon=function rawColon(y){var w;return y.walkDecls((function(y){if(void 0!==y.raws.between)return w=y.raws.between.replace(/[^\s:]/g,""),!1})),w},y.beforeAfter=function beforeAfter(y,w){var E;E="decl"===y.type?this.raw(y,null,"beforeDecl"):"comment"===y.type?this.raw(y,null,"beforeComment"):"before"===w?this.raw(y,null,"beforeRule"):this.raw(y,null,"beforeClose");for(var q=y.parent,ne=0;q&&"root"!==q.type;)ne+=1,q=q.parent;if(-1!==E.indexOf("\n")){var ie=this.raw(y,null,"indent");if(ie.length)for(var oe=0;oe0&&this.unclosedBracket(ne),w&&q){for(;this.pos>oe&&("space"===(y=this.tokens[this.pos][0])||"comment"===y);)this.pos-=1;this.decl(this.tokens.slice(oe,this.pos+1))}else this.unknownWord(oe)},y.rule=function rule(y){y.pop();var w=new Qt;this.init(w,y[0][2],y[0][3]),w.raws.between=this.spacesFromEnd(y),this.raw(w,"selector",y),this.current=w},y.decl=function decl(y){var w=new $t;this.init(w);var E,q=y[y.length-1];for(";"===q[0]&&(this.semicolon=!0,y.pop()),q[4]?w.source.end={line:q[4],column:q[5]}:w.source.end={line:q[2],column:q[3]};"word"!==y[0][0];)w.raws.before+=y.shift()[1];for(w.source.start={line:y[0][2],column:y[0][3]},w.prop="";y.length;){var ne=y[0][0];if(":"===ne||"space"===ne||"comment"===ne)break;w.prop+=y.shift()[1]}for(w.raws.between="";y.length;){if(":"===(E=y.shift())[0]){w.raws.between+=E[1];break}w.raws.between+=E[1]}"_"!==w.prop[0]&&"*"!==w.prop[0]||(w.raws.before+=w.prop[0],w.prop=w.prop.slice(1)),w.raws.between+=this.spacesFromStart(y),this.precheckMissedSemicolon(y);for(var ie=y.length-1;ie>0;ie--){if("!important"===(E=y[ie])[1]){w.important=!0;var oe=this.stringFrom(y,ie);" !important"!==(oe=this.spacesFromEnd(y)+oe)&&(w.raws.important=oe);break}if("important"===E[1]){for(var se=y.slice(0),le="",pe=ie;pe>0;pe--){var ge=se[pe][0];if(0===le.trim().indexOf("!")&&"space"!==ge)break;le=se.pop()[1]+le}0===le.trim().indexOf("!")&&(w.important=!0,w.raws.important=le,y=se)}if("space"!==E[0]&&"comment"!==E[0])break}this.raw(w,"value",y),-1!==w.value.indexOf(":")&&this.checkMissedSemicolon(y)},y.atrule=function atrule(y){var w=new Jt;w.name=y[1].slice(1),""===w.name&&this.unnamedAtrule(w,y),this.init(w,y[2],y[3]);var E=!1,q=!1,ne=[];for(this.pos+=1;this.pos=0&&("space"===(E=y[ne])[0]||2!==(q+=1));ne--);throw this.input.error("Missed semicolon",E[2],E[3])}},Parser}();function parse(y,w){if(w&&w.safe)throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');var E=new dn(y,w),q=new Yt(E);try{q.tokenize(),q.loop()}catch(y){throw"CssSyntaxError"===y.name&&w&&w.from&&(/\.scss$/i.test(w.from)?y.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.less$/i.test(w.from)&&(y.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),y}return q.root}function cleanSource(y){return y.map((function(y){return y.nodes&&(y.nodes=cleanSource(y.nodes)),delete y.source,y}))}var Xt=function(y){function Container(){return y.apply(this,arguments)||this}_inheritsLoose(Container,y);var w=Container.prototype;return w.push=function push(y){return y.parent=this,this.nodes.push(y),this},w.each=function each(y){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var w=this.lastEach;if(this.indexes[w]=0,this.nodes){for(var E,q;this.indexes[w]=y&&(this.indexes[E]=w-1);return this},w.removeAll=function removeAll(){return this.nodes.forEach((function(y){return y.parent=void 0})),this.nodes=[],this},w.replaceValues=function replaceValues(y,w,E){return E||(E=w,w={}),this.walkDecls((function(q){w.props&&-1===w.props.indexOf(q.prop)||w.fast&&-1===q.value.indexOf(w.fast)||(q.value=q.value.replace(y,E))})),this},w.every=function every(y){return this.nodes.every(y)},w.some=function some(y){return this.nodes.some(y)},w.index=function index(y){return"number"==typeof y?y:this.nodes.indexOf(y)},w.normalize=function normalize(y,w){var E=this;if("string"==typeof y)y=cleanSource(parse(y).nodes);else if(!Array.isArray(y))if("root"===y.type)y=y.nodes;else if(y.type)y=[y];else if(y.prop){if(void 0===y.value)throw new Error("Value field is missed in node creation");"string"!=typeof y.value&&(y.value=String(y.value)),y=[new $t(y)]}else if(y.selector)y=[new Qt(y)];else if(y.name)y=[new Jt(y)];else{if(!y.text)throw new Error("Unknown node type in node creation");y=[new Kt(y)]}return y.map((function(y){return void 0===y.raws&&(y=E.rebuild(y)),y.parent&&(y=y.clone()),void 0===y.raws.before&&w&&void 0!==w.raws.before&&(y.raws.before=w.raws.before.replace(/[^\s]/g,"")),y.parent=E,y}))},w.rebuild=function rebuild(y,w){var E,q=this;for(var ne in"root"===y.type?E=new rn:"atrule"===y.type?E=new Jt:"rule"===y.type?E=new Qt:"decl"===y.type?E=new $t:"comment"===y.type&&(E=new Kt),y)"nodes"===ne?E.nodes=y.nodes.map((function(y){return q.rebuild(y,E)})):"parent"===ne&&w?E.parent=w:y.hasOwnProperty(ne)&&(E[ne]=y[ne]);return E},w.eachInside=function eachInside(y){return warnOnce("Container#eachInside is deprecated. Use Container#walk instead."),this.walk(y)},w.eachDecl=function eachDecl(y,w){return warnOnce("Container#eachDecl is deprecated. Use Container#walkDecls instead."),this.walkDecls(y,w)},w.eachRule=function eachRule(y,w){return warnOnce("Container#eachRule is deprecated. Use Container#walkRules instead."),this.walkRules(y,w)},w.eachAtRule=function eachAtRule(y,w){return warnOnce("Container#eachAtRule is deprecated. Use Container#walkAtRules instead."),this.walkAtRules(y,w)},w.eachComment=function eachComment(y){return warnOnce("Container#eachComment is deprecated. Use Container#walkComments instead."),this.walkComments(y)},_createClass(Container,[{key:"first",get:function get(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function get(){if(this.nodes)return this.nodes[this.nodes.length-1]}},{key:"semicolon",get:function get(){return warnOnce("Node#semicolon is deprecated. Use Node#raws.semicolon"),this.raws.semicolon},set:function set(y){warnOnce("Node#semicolon is deprecated. Use Node#raws.semicolon"),this.raws.semicolon=y}},{key:"after",get:function get(){return warnOnce("Node#after is deprecated. Use Node#raws.after"),this.raws.after},set:function set(y){warnOnce("Node#after is deprecated. Use Node#raws.after"),this.raws.after=y}}]),Container}(Wt),Jt=function(y){function AtRule(w){var E;return(E=y.call(this,w)||this).type="atrule",E}_inheritsLoose(AtRule,y);var w=AtRule.prototype;return w.append=function append(){var w;this.nodes||(this.nodes=[]);for(var E=arguments.length,q=new Array(E),ne=0;ne0&&(ie-=1):0===ie&&-1!==w.indexOf(pe)&&(split=!0),split?(""!==ne&&q.push(ne.trim()),ne="",split=!1):ne+=pe}return(E||""!==ne)&&q.push(ne.trim()),q},space:function space(y){return Zt.split(y,[" ","\n","\t"])},comma:function comma(y){return Zt.split(y,[","],!0)}},Qt=function(y){function Rule(w){var E;return(E=y.call(this,w)||this).type="rule",E.nodes||(E.nodes=[]),E}return _inheritsLoose(Rule,y),_createClass(Rule,[{key:"selectors",get:function get(){return Zt.comma(this.selector)},set:function set(y){var w=this.selector?this.selector.match(/,\s*/):null,E=w?w[0]:","+this.raw("between","beforeOpen");this.selector=y.join(E)}},{key:"_selector",get:function get(){return warnOnce("Rule#_selector is deprecated. Use Rule#raws.selector"),this.raws.selector},set:function set(y){warnOnce("Rule#_selector is deprecated. Use Rule#raws.selector"),this.raws.selector=y}}]),Rule}(Xt),en=function(){function Warning(y,w){if(void 0===w&&(w={}),this.type="warning",this.text=y,w.node&&w.node.source){var E=w.node.positionBy(w);this.line=E.line,this.column=E.column}for(var q in w)this[q]=w[q]}return Warning.prototype.toString=function toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},Warning}(),tn=function(){function Result(y,w,E){this.processor=y,this.messages=[],this.root=w,this.opts=E,this.css=void 0,this.map=void 0}var y=Result.prototype;return y.toString=function toString(){return this.css},y.warn=function warn(y,w){void 0===w&&(w={}),w.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(w.plugin=this.lastPlugin.postcssPlugin);var E=new en(y,w);return this.messages.push(E),E},y.warnings=function warnings(){return this.messages.filter((function(y){return"warning"===y.type}))},_createClass(Result,[{key:"content",get:function get(){return this.css}}]),Result}();function isPromise(y){return"object"==typeof y&&"function"==typeof y.then}var nn=function(){function LazyResult(y,w,E){var q;if(this.stringified=!1,this.processed=!1,"object"==typeof w&&"root"===w.type)q=w;else if(w instanceof LazyResult||w instanceof tn)q=w.root,w.map&&(void 0===E.map&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=w.map);else{var ne=parse;E.syntax&&(ne=E.syntax.parse),E.parser&&(ne=E.parser),ne.parse&&(ne=ne.parse);try{q=ne(w,E)}catch(y){this.error=y}}this.result=new tn(y,q,E)}var y=LazyResult.prototype;return y.warnings=function warnings(){return this.sync().warnings()},y.toString=function toString(){return this.css},y.then=function then(y,w){return this.async().then(y,w)},y.catch=function _catch(y){return this.async().catch(y)},y.handleError=function handleError(y,w){try{if(this.error=y,"CssSyntaxError"!==y.name||y.plugin){if(w.postcssVersion){var E=w.postcssPlugin,q=w.postcssVersion,ne=this.result.processor.version,ie=q.split("."),oe=ne.split(".");(ie[0]!==oe[0]||parseInt(ie[1])>parseInt(oe[1]))&&warnOnce("Your current PostCSS version is "+ne+", but "+E+" uses "+q+". Perhaps this is the source of the error below.")}}else y.plugin=w.postcssPlugin,y.setMessage()}catch(y){console&&console.error&&console.error(y)}},y.asyncTick=function asyncTick(y,w){var E=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,y();try{var q=this.processor.plugins[this.plugin],ne=this.run(q);this.plugin+=1,isPromise(ne)?ne.then((function(){E.asyncTick(y,w)})).catch((function(y){E.handleError(y,q),E.processed=!0,w(y)})):this.asyncTick(y,w)}catch(y){this.processed=!0,w(y)}},y.async=function async(){var y=this;return this.processed?new Promise((function(w,E){y.error?E(y.error):w(y.stringify())})):(this.processing||(this.processing=new Promise((function(w,E){if(y.error)return E(y.error);y.plugin=0,y.asyncTick(w,E)})).then((function(){return y.processed=!0,y.stringify()}))),this.processing)},y.sync=function sync(){var y=this;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;return this.result.processor.plugins.forEach((function(w){if(isPromise(y.run(w)))throw new Error("Use process(css).then(cb) to work with async plugins")})),this.result},y.run=function run(y){this.result.lastPlugin=y;try{return y(this.result.root,this.result)}catch(w){throw this.handleError(w,y),w}},y.stringify=function stringify$1(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var y=this.result.opts,w=stringify;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);var E="";return w(this.root,(function(y){E+=y})),this.result.css=E,this.result},_createClass(LazyResult,[{key:"processor",get:function get(){return this.result.processor}},{key:"opts",get:function get(){return this.result.opts}},{key:"css",get:function get(){return this.stringify().css}},{key:"content",get:function get(){return this.stringify().content}},{key:"map",get:function get(){return this.stringify().map}},{key:"root",get:function get(){return this.sync().root}},{key:"messages",get:function get(){return this.sync().messages}}]),LazyResult}(),an=function(){function Processor(y){void 0===y&&(y=[]),this.version="5.2.0",this.plugins=this.normalize(y)}var y=Processor.prototype;return y.use=function use(y){return this.plugins=this.plugins.concat(this.normalize([y])),this},y.process=function process(y,w){return void 0===w&&(w={}),new nn(this,y,w)},y.normalize=function normalize(y){var w=[];return y.forEach((function(y){if(y.postcss&&(y=y.postcss),"object"==typeof y&&Array.isArray(y.plugins))w=w.concat(y.plugins);else{if("function"!=typeof y)throw new Error(y+" is not a PostCSS plugin");w.push(y)}})),w},Processor}(),rn=function(y){function Root(w){var E;return(E=y.call(this,w)||this).type="root",E.nodes||(E.nodes=[]),E}_inheritsLoose(Root,y);var w=Root.prototype;return w.removeChild=function removeChild(w){return 0===(w=this.index(w))&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[w].raws.before),y.prototype.removeChild.call(this,w)},w.normalize=function normalize(w,E,q){var ne=y.prototype.normalize.call(this,w);return E&&("prepend"===q?this.nodes.length>1?E.raws.before=this.nodes[1].raws.before:delete E.raws.before:this.first!==E&&ne.forEach((function(y){y.raws.before=E.raws.before}))),ne},w.toResult=function toResult(y){return void 0===y&&(y={}),new nn(new an,this,y).stringify()},w.remove=function remove(y){warnOnce("Root#remove is deprecated. Use Root#removeChild"),this.removeChild(y)},w.prevMap=function prevMap(){return warnOnce("Root#prevMap is deprecated. Use Root#source.input.map"),this.source.input.map},Root}(Xt),sn=0,dn=function(){function Input(y,w){void 0===w&&(w={}),this.css=y.toString(),"\ufeff"!==this.css[0]&&"￾"!==this.css[0]||(this.css=this.css.slice(1)),w.from&&(/^\w+:\/\//.test(w.from)?this.file=w.from:this.file=path.resolve(w.from)),this.file||(sn+=1,this.id=""),this.map&&(this.map.file=this.from)}var y=Input.prototype;return y.error=function error(y,w,E,q){var ne;void 0===q&&(q={});var ie=this.origin(w,E);return(ne=ie?new Nt(y,ie.line,ie.column,ie.source,ie.file,q.plugin):new Nt(y,w,E,this.css,this.file,q.plugin)).input={line:w,column:E,source:this.css},this.file&&(ne.input.file=this.file),ne},y.origin=function origin(y,w){if(!this.map)return!1;var E=this.map.consumer(),q=E.originalPositionFor({line:y,column:w});if(!q.source)return!1;var ne={file:this.mapResolve(q.source),line:q.line,column:q.column},ie=E.sourceContentFor(q.source);return ie&&(ne.source=ie),ne},y.mapResolve=function mapResolve(y){return/^\w+:\/\//.test(y)?y:path.resolve(this.map.consumer().sourceRoot||".",y)},_createClass(Input,[{key:"from",get:function get(){return this.file||this.id}}]),Input}(),cn=function(y){function SafeParser(){return y.apply(this,arguments)||this}_inheritsLoose(SafeParser,y);var w=SafeParser.prototype;return w.tokenize=function tokenize$1(){this.tokens=tokenize(this.input,{ignoreErrors:!0})},w.comment=function comment(y){var w=new Kt;this.init(w,y[2],y[3]),w.source.end={line:y[4],column:y[5]};var E=y[1].slice(2);if("*/"===E.slice(-2)&&(E=E.slice(0,-2)),/^\s*$/.test(E))w.text="",w.raws.left=E,w.raws.right="";else{var q=E.match(/^(\s*)([^]*[^\s])(\s*)$/);w.text=q[2],w.raws.left=q[1],w.raws.right=q[3]}},w.unclosedBracket=function unclosedBracket(){},w.unknownWord=function unknownWord(y){var w=this.tokens.slice(y,this.pos+1);this.spaces+=w.map((function(y){return y[1]})).join("")},w.unexpectedClose=function unexpectedClose(){this.current.raws.after+="}"},w.doubleColon=function doubleColon(){},w.unnamedAtrule=function unnamedAtrule(y){y.name=""},w.precheckMissedSemicolon=function precheckMissedSemicolon(y){var w=this.colon(y);if(!1!==w){var E;for(E=w-1;E>=0&&"word"!==y[E][0];E--);for(E-=1;E>=0;E--)if("space"!==y[E][0]){E+=1;break}var q=y.splice(E,y.length-E);this.decl(q)}},w.checkMissedSemicolon=function checkMissedSemicolon(){},w.endFile=function endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after=""},SafeParser}(Yt);var un={},ln=function isObject(y){return"function"==typeof y||"object"==typeof y&&null!==y&&!Array.isArray(y)},pn=function isValidKey(y){return"__proto__"!==y&&"constructor"!==y&&"prototype"!==y};function mixin(y,w,E){var q=y[E];ln(w)&&ln(q)?mixinDeep(q,w):y[E]=w}function mixinDeep(y){for(var w=arguments.length,E=new Array(w>1?w-1:0),q=1;q1?w-1:0),q=1;qy.length)&&(w=y.length);for(var E=0,q=new Array(w);E=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|y}function byteLength(y,w){if(Buffer.isBuffer(y))return y.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(y)||y instanceof ArrayBuffer))return y.byteLength;"string"!=typeof y&&(y=""+y);var E=y.length;if(0===E)return 0;for(var q=!1;;)switch(w){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":case void 0:return utf8ToBytes(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*E;case"hex":return E>>>1;case"base64":return base64ToBytes(y).length;default:if(q)return utf8ToBytes(y).length;w=(""+w).toLowerCase(),q=!0}}function slowToString(y,w,E){var q=!1;if((void 0===w||w<0)&&(w=0),w>this.length)return"";if((void 0===E||E>this.length)&&(E=this.length),E<=0)return"";if((E>>>=0)<=(w>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return hexSlice(this,w,E);case"utf8":case"utf-8":return utf8Slice(this,w,E);case"ascii":return asciiSlice(this,w,E);case"latin1":case"binary":return latin1Slice(this,w,E);case"base64":return base64Slice(this,w,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,w,E);default:if(q)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),q=!0}}function swap(y,w,E){var q=y[w];y[w]=y[E],y[E]=q}function bidirectionalIndexOf(y,w,E,q,ne){if(0===y.length)return-1;if("string"==typeof E?(q=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,isNaN(E)&&(E=ne?0:y.length-1),E<0&&(E=y.length+E),E>=y.length){if(ne)return-1;E=y.length-1}else if(E<0){if(!ne)return-1;E=0}if("string"==typeof w&&(w=Buffer.from(w,q)),Buffer.isBuffer(w))return 0===w.length?-1:arrayIndexOf(y,w,E,q,ne);if("number"==typeof w)return w&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?ne?Uint8Array.prototype.indexOf.call(y,w,E):Uint8Array.prototype.lastIndexOf.call(y,w,E):arrayIndexOf(y,[w],E,q,ne);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(y,w,E,q,ne){var ie,oe=1,se=y.length,le=w.length;if(void 0!==q&&("ucs2"===(q=String(q).toLowerCase())||"ucs-2"===q||"utf16le"===q||"utf-16le"===q)){if(y.length<2||w.length<2)return-1;oe=2,se/=2,le/=2,E/=2}function read(y,w){return 1===oe?y[w]:y.readUInt16BE(w*oe)}if(ne){var pe=-1;for(ie=E;iese&&(E=se-le),ie=E;ie>=0;ie--){for(var ge=!0,he=0;hene&&(q=ne):q=ne;var ie=w.length;if(ie%2!=0)throw new TypeError("Invalid hex string");q>ie/2&&(q=ie/2);for(var oe=0;oe>8,ne=E%256,ie.push(ne),ie.push(q);return ie}(w,y.length-E),y,E,q)}function base64Slice(y,w,E){return 0===w&&E===y.length?q.fromByteArray(y):q.fromByteArray(y.slice(w,E))}function utf8Slice(y,w,E){E=Math.min(y.length,E);for(var q=[],ne=w;ne239?4:ge>223?3:ge>191?2:1;if(ne+me<=E)switch(me){case 1:ge<128&&(he=ge);break;case 2:128==(192&(ie=y[ne+1]))&&(pe=(31&ge)<<6|63&ie)>127&&(he=pe);break;case 3:ie=y[ne+1],se=y[ne+2],128==(192&ie)&&128==(192&se)&&(pe=(15&ge)<<12|(63&ie)<<6|63&se)>2047&&(pe<55296||pe>57343)&&(he=pe);break;case 4:ie=y[ne+1],se=y[ne+2],le=y[ne+3],128==(192&ie)&&128==(192&se)&&128==(192&le)&&(pe=(15&ge)<<18|(63&ie)<<12|(63&se)<<6|63&le)>65535&&pe<1114112&&(he=pe)}null===he?(he=65533,me=1):he>65535&&(he-=65536,q.push(he>>>10&1023|55296),he=56320|1023&he),q.push(he),ne+=me}return function decodeCodePointsArray(y){var w=y.length;if(w<=oe)return String.fromCharCode.apply(String,y);var E="",q=0;for(;q0&&(y=this.toString("hex",0,E).match(/.{2}/g).join(" "),this.length>E&&(y+=" ... ")),""},Buffer.prototype.compare=function compare(y,w,E,q,ne){if(!Buffer.isBuffer(y))throw new TypeError("Argument must be a Buffer");if(void 0===w&&(w=0),void 0===E&&(E=y?y.length:0),void 0===q&&(q=0),void 0===ne&&(ne=this.length),w<0||E>y.length||q<0||ne>this.length)throw new RangeError("out of range index");if(q>=ne&&w>=E)return 0;if(q>=ne)return-1;if(w>=E)return 1;if(this===y)return 0;for(var ie=(ne>>>=0)-(q>>>=0),oe=(E>>>=0)-(w>>>=0),se=Math.min(ie,oe),le=this.slice(q,ne),pe=y.slice(w,E),ge=0;gene)&&(E=ne),y.length>0&&(E<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");for(var ie=!1;;)switch(q){case"hex":return hexWrite(this,y,w,E);case"utf8":case"utf-8":return utf8Write(this,y,w,E);case"ascii":return asciiWrite(this,y,w,E);case"latin1":case"binary":return latin1Write(this,y,w,E);case"base64":return base64Write(this,y,w,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,y,w,E);default:if(ie)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),ie=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var oe=4096;function asciiSlice(y,w,E){var q="";E=Math.min(y.length,E);for(var ne=w;neq)&&(E=q);for(var ne="",ie=w;ieE)throw new RangeError("Trying to access beyond buffer length")}function checkInt(y,w,E,q,ne,ie){if(!Buffer.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>ne||wy.length)throw new RangeError("Index out of range")}function objectWriteUInt16(y,w,E,q){w<0&&(w=65535+w+1);for(var ne=0,ie=Math.min(y.length-E,2);ne>>8*(q?ne:1-ne)}function objectWriteUInt32(y,w,E,q){w<0&&(w=4294967295+w+1);for(var ne=0,ie=Math.min(y.length-E,4);ne>>8*(q?ne:3-ne)&255}function checkIEEE754(y,w,E,q,ne,ie){if(E+q>y.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function writeFloat(y,w,E,q,ie){return ie||checkIEEE754(y,0,E,4),ne.write(y,w,E,q,23,4),E+4}function writeDouble(y,w,E,q,ie){return ie||checkIEEE754(y,0,E,8),ne.write(y,w,E,q,52,8),E+8}Buffer.prototype.slice=function slice(y,w){var E,q=this.length;if((y=~~y)<0?(y+=q)<0&&(y=0):y>q&&(y=q),(w=void 0===w?q:~~w)<0?(w+=q)<0&&(w=0):w>q&&(w=q),w0&&(ne*=256);)q+=this[y+--w]*ne;return q},Buffer.prototype.readUInt8=function readUInt8(y,w){return w||checkOffset(y,1,this.length),this[y]},Buffer.prototype.readUInt16LE=function readUInt16LE(y,w){return w||checkOffset(y,2,this.length),this[y]|this[y+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(y,w){return w||checkOffset(y,2,this.length),this[y]<<8|this[y+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(y,w){return w||checkOffset(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+16777216*this[y+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(y,w){return w||checkOffset(y,4,this.length),16777216*this[y]+(this[y+1]<<16|this[y+2]<<8|this[y+3])},Buffer.prototype.readIntLE=function readIntLE(y,w,E){y|=0,w|=0,E||checkOffset(y,w,this.length);for(var q=this[y],ne=1,ie=0;++ie=(ne*=128)&&(q-=Math.pow(2,8*w)),q},Buffer.prototype.readIntBE=function readIntBE(y,w,E){y|=0,w|=0,E||checkOffset(y,w,this.length);for(var q=w,ne=1,ie=this[y+--q];q>0&&(ne*=256);)ie+=this[y+--q]*ne;return ie>=(ne*=128)&&(ie-=Math.pow(2,8*w)),ie},Buffer.prototype.readInt8=function readInt8(y,w){return w||checkOffset(y,1,this.length),128&this[y]?-1*(255-this[y]+1):this[y]},Buffer.prototype.readInt16LE=function readInt16LE(y,w){w||checkOffset(y,2,this.length);var E=this[y]|this[y+1]<<8;return 32768&E?4294901760|E:E},Buffer.prototype.readInt16BE=function readInt16BE(y,w){w||checkOffset(y,2,this.length);var E=this[y+1]|this[y]<<8;return 32768&E?4294901760|E:E},Buffer.prototype.readInt32LE=function readInt32LE(y,w){return w||checkOffset(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(y,w){return w||checkOffset(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},Buffer.prototype.readFloatLE=function readFloatLE(y,w){return w||checkOffset(y,4,this.length),ne.read(this,y,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(y,w){return w||checkOffset(y,4,this.length),ne.read(this,y,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(y,w){return w||checkOffset(y,8,this.length),ne.read(this,y,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(y,w){return w||checkOffset(y,8,this.length),ne.read(this,y,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(y,w,E,q){(y=+y,w|=0,E|=0,q)||checkInt(this,y,w,E,Math.pow(2,8*E)-1,0);var ne=1,ie=0;for(this[w]=255&y;++ie=0&&(ie*=256);)this[w+ne]=y/ie&255;return w+E},Buffer.prototype.writeUInt8=function writeUInt8(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(y=Math.floor(y)),this[w]=255&y,w+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[w]=255&y,this[w+1]=y>>>8):objectWriteUInt16(this,y,w,!0),w+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[w]=y>>>8,this[w+1]=255&y):objectWriteUInt16(this,y,w,!1),w+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=255&y):objectWriteUInt32(this,y,w,!0),w+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=255&y):objectWriteUInt32(this,y,w,!1),w+4},Buffer.prototype.writeIntLE=function writeIntLE(y,w,E,q){if(y=+y,w|=0,!q){var ne=Math.pow(2,8*E-1);checkInt(this,y,w,E,ne-1,-ne)}var ie=0,oe=1,se=0;for(this[w]=255&y;++ie>0)-se&255;return w+E},Buffer.prototype.writeIntBE=function writeIntBE(y,w,E,q){if(y=+y,w|=0,!q){var ne=Math.pow(2,8*E-1);checkInt(this,y,w,E,ne-1,-ne)}var ie=E-1,oe=1,se=0;for(this[w+ie]=255&y;--ie>=0&&(oe*=256);)y<0&&0===se&&0!==this[w+ie+1]&&(se=1),this[w+ie]=(y/oe>>0)-se&255;return w+E},Buffer.prototype.writeInt8=function writeInt8(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(y=Math.floor(y)),y<0&&(y=255+y+1),this[w]=255&y,w+1},Buffer.prototype.writeInt16LE=function writeInt16LE(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[w]=255&y,this[w+1]=y>>>8):objectWriteUInt16(this,y,w,!0),w+2},Buffer.prototype.writeInt16BE=function writeInt16BE(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[w]=y>>>8,this[w+1]=255&y):objectWriteUInt16(this,y,w,!1),w+2},Buffer.prototype.writeInt32LE=function writeInt32LE(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[w]=255&y,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24):objectWriteUInt32(this,y,w,!0),w+4},Buffer.prototype.writeInt32BE=function writeInt32BE(y,w,E){return y=+y,w|=0,E||checkInt(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),Buffer.TYPED_ARRAY_SUPPORT?(this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=255&y):objectWriteUInt32(this,y,w,!1),w+4},Buffer.prototype.writeFloatLE=function writeFloatLE(y,w,E){return writeFloat(this,y,w,!0,E)},Buffer.prototype.writeFloatBE=function writeFloatBE(y,w,E){return writeFloat(this,y,w,!1,E)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(y,w,E){return writeDouble(this,y,w,!0,E)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(y,w,E){return writeDouble(this,y,w,!1,E)},Buffer.prototype.copy=function copy(y,w,E,q){if(E||(E=0),q||0===q||(q=this.length),w>=y.length&&(w=y.length),w||(w=0),q>0&&q=this.length)throw new RangeError("sourceStart out of bounds");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),y.length-w=0;--ne)y[ne+w]=this[ne+E];else if(ie<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(ne=0;ne>>=0,E=void 0===E?this.length:E>>>0,y||(y=0),"number"==typeof y)for(ie=w;ie55295&&E<57344){if(!ne){if(E>56319){(w-=3)>-1&&ie.push(239,191,189);continue}if(oe+1===q){(w-=3)>-1&&ie.push(239,191,189);continue}ne=E;continue}if(E<56320){(w-=3)>-1&&ie.push(239,191,189),ne=E;continue}E=65536+(ne-55296<<10|E-56320)}else ne&&(w-=3)>-1&&ie.push(239,191,189);if(ne=null,E<128){if((w-=1)<0)break;ie.push(E)}else if(E<2048){if((w-=2)<0)break;ie.push(E>>6|192,63&E|128)}else if(E<65536){if((w-=3)<0)break;ie.push(E>>12|224,E>>6&63|128,63&E|128)}else{if(!(E<1114112))throw new Error("Invalid code point");if((w-=4)<0)break;ie.push(E>>18|240,E>>12&63|128,E>>6&63|128,63&E|128)}}return ie}function base64ToBytes(y){return q.toByteArray(function base64clean(y){if((y=function stringtrim(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}(y).replace(se,"")).length<2)return"";for(;y.length%4!=0;)y+="=";return y}(y))}function blitBuffer(y,w,E,q){for(var ne=0;ne=w.length||ne>=y.length);++ne)w[ne+E]=y[ne];return ne}}).call(this,E(65))},function(y,w){y.exports=function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);E=200&&y<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};q.forEach(["delete","get","head"],(function forEachMethodNoData(y){oe.headers[y]={}})),q.forEach(["post","put","patch"],(function forEachMethodWithData(y){oe.headers[y]=q.merge(ie)})),y.exports=oe}).call(this,E(144))},function(y,w,E){"use strict";var q=E(67),ne=E(829),ie=E(831),oe=E(447),se=E(832),le=E(835),pe=E(836),ge=E(451);y.exports=function xhrAdapter(y){return new Promise((function dispatchXhrRequest(w,E){var he=y.data,me=y.headers;q.isFormData(he)&&delete me["Content-Type"];var ve=new XMLHttpRequest;if(y.auth){var ye=y.auth.username||"",Re=y.auth.password?unescape(encodeURIComponent(y.auth.password)):"";me.Authorization="Basic "+btoa(ye+":"+Re)}var we=se(y.baseURL,y.url);if(ve.open(y.method.toUpperCase(),oe(we,y.params,y.paramsSerializer),!0),ve.timeout=y.timeout,ve.onreadystatechange=function handleLoad(){if(ve&&4===ve.readyState&&(0!==ve.status||ve.responseURL&&0===ve.responseURL.indexOf("file:"))){var q="getAllResponseHeaders"in ve?le(ve.getAllResponseHeaders()):null,ie={data:y.responseType&&"text"!==y.responseType?ve.response:ve.responseText,status:ve.status,statusText:ve.statusText,headers:q,config:y,request:ve};ne(w,E,ie),ve=null}},ve.onabort=function handleAbort(){ve&&(E(ge("Request aborted",y,"ECONNABORTED",ve)),ve=null)},ve.onerror=function handleError(){E(ge("Network Error",y,null,ve)),ve=null},ve.ontimeout=function handleTimeout(){var w="timeout of "+y.timeout+"ms exceeded";y.timeoutErrorMessage&&(w=y.timeoutErrorMessage),E(ge(w,y,"ECONNABORTED",ve)),ve=null},q.isStandardBrowserEnv()){var _e=(y.withCredentials||pe(we))&&y.xsrfCookieName?ie.read(y.xsrfCookieName):void 0;_e&&(me[y.xsrfHeaderName]=_e)}if("setRequestHeader"in ve&&q.forEach(me,(function setRequestHeader(y,w){void 0===he&&"content-type"===w.toLowerCase()?delete me[w]:ve.setRequestHeader(w,y)})),q.isUndefined(y.withCredentials)||(ve.withCredentials=!!y.withCredentials),y.responseType)try{ve.responseType=y.responseType}catch(w){if("json"!==y.responseType)throw w}"function"==typeof y.onDownloadProgress&&ve.addEventListener("progress",y.onDownloadProgress),"function"==typeof y.onUploadProgress&&ve.upload&&ve.upload.addEventListener("progress",y.onUploadProgress),y.cancelToken&&y.cancelToken.promise.then((function onCanceled(y){ve&&(ve.abort(),E(y),ve=null)})),he||(he=null),ve.send(he)}))}},function(y,w,E){"use strict";var q=E(830);y.exports=function createError(y,w,E,ne,ie){var oe=new Error(y);return q(oe,w,E,ne,ie)}},function(y,w,E){"use strict";var q=E(67);y.exports=function mergeConfig(y,w){w=w||{};var E={},ne=["url","method","data"],ie=["headers","auth","proxy","params"],oe=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],se=["validateStatus"];function getMergedValue(y,w){return q.isPlainObject(y)&&q.isPlainObject(w)?q.merge(y,w):q.isPlainObject(w)?q.merge({},w):q.isArray(w)?w.slice():w}function mergeDeepProperties(ne){q.isUndefined(w[ne])?q.isUndefined(y[ne])||(E[ne]=getMergedValue(void 0,y[ne])):E[ne]=getMergedValue(y[ne],w[ne])}q.forEach(ne,(function valueFromConfig2(y){q.isUndefined(w[y])||(E[y]=getMergedValue(void 0,w[y]))})),q.forEach(ie,mergeDeepProperties),q.forEach(oe,(function defaultToConfig2(ne){q.isUndefined(w[ne])?q.isUndefined(y[ne])||(E[ne]=getMergedValue(void 0,y[ne])):E[ne]=getMergedValue(void 0,w[ne])})),q.forEach(se,(function merge(q){q in w?E[q]=getMergedValue(y[q],w[q]):q in y&&(E[q]=getMergedValue(void 0,y[q]))}));var le=ne.concat(ie).concat(oe).concat(se),pe=Object.keys(y).concat(Object.keys(w)).filter((function filterAxiosKeys(y){return-1===le.indexOf(y)}));return q.forEach(pe,mergeDeepProperties),E}},function(y,w,E){"use strict";function Cancel(y){this.message=y}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,y.exports=Cancel},function(y,w){y.exports=function _classCallCheck(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}},function(y,w){function _defineProperties(y,w){for(var E=0;E=Re)return y;var _e=E-le(ve);if(_e<1)return ve;var Me=we?ne(we,0,_e).join(""):y.slice(0,_e);if(void 0===ye)return Me+ve;if(we&&(_e+=Me.length-_e),se(ye)){if(y.slice(_e).search(ye)){var Se,ke=Me;for(ye.global||(ye=RegExp(ye.source,he(me.exec(ye))+"g")),ye.lastIndex=0;Se=ye.exec(ke);)var Ae=Se.index;Me=Me.slice(0,void 0===Ae?_e:Ae)}}else if(y.indexOf(q(ye),_e)!=_e){var Oe=Me.lastIndexOf(ye);Oe>-1&&(Me=Me.slice(0,Oe))}return Me+ve}},function(y,w,E){var q=E(244),ne=E(461),ie=E(88),oe=E(243),se=q?q.prototype:void 0,le=se?se.toString:void 0;y.exports=function baseToString(y){if("string"==typeof y)return y;if(ie(y))return ne(y,baseToString)+"";if(oe(y))return le?le.call(y):"";var w=y+"";return"0"==w&&1/y==-Infinity?"-0":w}},function(y,w){y.exports=function arrayMap(y,w){for(var E=-1,q=null==y?0:y.length,ne=Array(q);++Ege))return!1;var me=le.get(y),ve=le.get(w);if(me&&ve)return me==w&&ve==y;var ye=-1,Re=!0,we=2&E?new q:void 0;for(le.set(y,w),le.set(w,y);++ye=200){var Re=w?null:se(y);if(Re)return le(Re);me=!1,ge=oe,ye=new q}else ye=w?[]:ve;e:for(;++pe=10?y:y+12:"शाम"===w?y+12:y},meridiemParse:/रात|सुबह|दोपहर|शाम/}),pe.default.updateLocale("fr",{calendar:{lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",sameDay:"[Aujourd’hui à] LT",sameElse:"L"}}),pe.default.updateLocale("tr",{calendar:{lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",sameDay:"[bugün saat] LT",sameElse:"L"}}),pe.default.updateLocale("ru",{calendar:{lastDay:"[Вчера, в] LT",nextDay:"[Завтра, в] LT",sameDay:"[Сегодня, в] LT"}});var Fe={formats:{},months:["January","February","March","April","May","June","July","August","September","October","November","December"],relativeTime:{},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Be=function isDayJs(y){return void 0!==y.extend},Ve={DateTimeParser:pe.default,dayjsLocaleConfigForLanguage:null,debug:!1,disableDateTimeTranslations:!1,language:"en",logger:function logger(y){return console.warn(y)}},Ne=function(){function Streami18n(){var y=this,w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,se.default)(this,Streami18n),this.i18nInstance=Re.default.createInstance(),this.Dayjs=null,this.setLanguageCallback=function(){return null},this.initialized=!1,this.t=function(y){return y},this.translations={en:(0,oe.default)({},Te,we.default),fr:(0,oe.default)({},Te,_e.default),hi:(0,oe.default)({},Te,Me.default),it:(0,oe.default)({},Te,Se.default),nl:(0,oe.default)({},Te,ke.default),ru:(0,oe.default)({},Te,Ae.default),tr:(0,oe.default)({},Te,Oe.default)},this.dayjsLocales={},this.localeExists=function(w){return!!y.isCustomDateTimeParser||Object.keys(pe.default.Ls).indexOf(w)>-1},this.validateCurrentLanguage=function(){-1===Object.keys(y.translations).indexOf(y.currentLanguage)&&(y.logger("Streami18n: '"+y.currentLanguage+"' language is not registered. Please make sure to call streami18n.registerTranslation('"+y.currentLanguage+"', {...}) or use one the built-in supported languages - "+y.getAvailableLanguages()),y.currentLanguage=je)},this.geti18Instance=function(){return y.i18nInstance},this.getAvailableLanguages=function(){return Object.keys(y.translations)},this.getTranslations=function(){return y.translations};var E=_objectSpread(_objectSpread({},Ve),w);this.logger=E.logger,this.currentLanguage=E.language,this.DateTimeParser=E.DateTimeParser;try{this.DateTimeParser&&Be(this.DateTimeParser)&&(this.DateTimeParser.extend(me.default),this.DateTimeParser.extend(ge.default),this.DateTimeParser.extend(he.default),this.DateTimeParser.extend(ve.default))}catch(y){throw new Error("Streami18n: Looks like you wanted to provide a Dayjs instance but something went wrong while adding plugins"+JSON.stringify(y))}this.isCustomDateTimeParser=!!w.DateTimeParser;var q=E.translationsForLanguage;q&&(this.translations[this.currentLanguage]=(0,oe.default)({},Te,q)),this.translations[this.currentLanguage]||(this.translations[this.currentLanguage]=(0,oe.default)({},Te,{})),this.i18nextConfig={debug:E.debug,fallbackLng:!1,interpolation:{escapeValue:!1},keySeparator:!1,lng:this.currentLanguage,nsSeparator:!1,parseMissingKeyHandler:function parseMissingKeyHandler(w){return y.logger("Streami18n: Missing translation for key: "+w),w}},this.validateCurrentLanguage();var ne=E.dayjsLocaleConfigForLanguage;ne?this.addOrUpdateLocale(this.currentLanguage,_objectSpread({},ne)):this.localeExists(this.currentLanguage)||this.logger("Streami18n: Streami18n(...) - Locale config for "+this.currentLanguage+" does not exist in momentjs.Please import the locale file using \"import 'moment/locale/"+this.currentLanguage+"';\" in your app or register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)"),this.tDateTimeParser=function(w){return E.disableDateTimeTranslations||!y.localeExists(y.currentLanguage)?(Be(y.DateTimeParser),y.DateTimeParser(w).locale(je)):(Be(y.DateTimeParser),y.DateTimeParser(w).locale(y.currentLanguage))}}var y,w,E;return(0,le.default)(Streami18n,[{key:"init",value:(E=(0,ie.default)(ne.default.mark((function _callee(){return ne.default.wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:return this.validateCurrentLanguage(),y.prev=1,y.next=4,this.i18nInstance.init(_objectSpread(_objectSpread({},this.i18nextConfig),{},{lng:this.currentLanguage,resources:this.translations}));case 4:this.t=y.sent,this.initialized=!0,y.next=11;break;case 8:y.prev=8,y.t0=y.catch(1),this.logger("Something went wrong with init:"+JSON.stringify(y.t0));case 11:return y.abrupt("return",{t:this.t,tDateTimeParser:this.tDateTimeParser});case 12:case"end":return y.stop()}}),_callee,this,[[1,8]])}))),function init(){return E.apply(this,arguments)})},{key:"getTranslators",value:(w=(0,ie.default)(ne.default.mark((function _callee2(){return ne.default.wrap((function _callee2$(y){for(;;)switch(y.prev=y.next){case 0:if(this.initialized){y.next=7;break}return this.dayjsLocales[this.currentLanguage]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),y.next=4,this.init();case 4:return y.abrupt("return",y.sent);case 7:return y.abrupt("return",{t:this.t,tDateTimeParser:this.tDateTimeParser});case 8:case"end":return y.stop()}}),_callee2,this)}))),function getTranslators(){return w.apply(this,arguments)})},{key:"registerTranslation",value:function registerTranslation(y,w,E){w?(this.translations[y]?this.translations[y][Te]=w:this.translations[y]=(0,oe.default)({},Te,w),E?this.dayjsLocales[y]=_objectSpread({},E):this.localeExists(y)||this.logger("Streami18n: registerTranslation(language, translation, customDayjsLocale) - Locale config for "+y+" does not exist in Dayjs.Please import the locale file using \"import 'dayjs/locale/"+y+"';\" in your app or register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)"),this.initialized&&this.i18nInstance.addResources(y,Te,w)):this.logger("Streami18n: registerTranslation(language, translation, customDayjsLocale) called without translation")}},{key:"addOrUpdateLocale",value:function addOrUpdateLocale(y,w){this.localeExists(y)?pe.default.updateLocale(y,_objectSpread({},w)):pe.default.locale(_objectSpread(_objectSpread({name:y},Fe),w),void 0,!0)}},{key:"setLanguage",value:(y=(0,ie.default)(ne.default.mark((function _callee3(y){var w;return ne.default.wrap((function _callee3$(E){for(;;)switch(E.prev=E.next){case 0:if(this.currentLanguage=y,this.initialized){E.next=3;break}return E.abrupt("return");case 3:return E.prev=3,E.next=6,this.i18nInstance.changeLanguage(y);case 6:return w=E.sent,this.dayjsLocales[y]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),this.setLanguageCallback(w),E.abrupt("return",w);case 12:return E.prev=12,E.t0=E.catch(3),this.logger("Failed to set language:"+JSON.stringify(E.t0)),E.abrupt("return",this.t);case 16:case"end":return E.stop()}}),_callee3,this,[[3,12]])}))),function setLanguage(w){return y.apply(this,arguments)})},{key:"registerSetLanguageCallback",value:function registerSetLanguageCallback(y){this.setLanguageCallback=y}}]),Streami18n}();w.Streami18n=Ne},function(y){y.exports=JSON.parse('{"1 reply":"1 reply","Add Reaction":"Add Reaction","Add a file":"Add a file","Cancel":"Cancel","Choose an action":"Choose an action","Commands":"Commands","Connection failure, reconnecting now ...":"Connection failure, reconnecting now ...","Delete Message":"Delete Message","ERROR · UNSENT":"ERROR · UNSENT","Edit Message":"Edit Message","Editing Message":"Editing Message","Empty message...":"Empty message...","Error loading":"Error loading","Error loading channel list ...":"Error loading channel list ...","Error loading messages for this channel ...":"Error loading messages for this channel ...","Error while loading, please reload/refresh":"Error while loading, please reload/refresh","Loading ...":"Loading ...","Loading channels ...":"Loading channels ...","Loading messages ...":"Loading messages ...","Message deleted":"Message deleted","Message failed - try again":"Message failed - try again","New Messages":"New Messages","Nothing yet...":"Nothing yet...","Please select a channel first":"Please select a channel first","Reply":"Reply","Searching for people":"Searching for people","Start of a new thread":"Start of a new thread","This message was deleted ...":"This message was deleted ...","Upload a file":"Upload a file","Upload a photo":"Upload a photo","Write your message":"Write your message","{{ commaSeparatedUsers }} and {{ lastUser }} are typing...":"{{ commaSeparatedUsers }} and {{ lastUser }} are typing...","{{ firstUser }} and {{ secondUser }} are typing...":"{{ firstUser }} and {{ secondUser }} are typing...","{{ imageCount }} more":"{{ imageCount }} more","{{ replyCount }} replies":"{{ replyCount }} replies","{{ user }} is typing...":"{{ user }} is typing...","🏙 Attachment...":"🏙 Attachment..."}')},function(y){y.exports=JSON.parse('{"1 reply":"1 réponse","Add Reaction":"Ajouter une réaction","Add a file":"Ajouter un fichier","Cancel":"Annuler","Choose an action":"Choisissez un action","Commands":"Commandes","Connection failure, reconnecting now ...":"Echec de la connexion, reconnexion en cours","Delete Message":"Supprimer un message","ERROR · UNSENT":"ERREUR - NON ENVOYÉ","Edit Message":"Éditer un message","Editing Message":"Édite un message","Empty message...":"Message vide...","Error loading":"Erreur lors du chargement","Error loading channel list ...":"Erreur lors du chargement de la liste de canaux","Error loading messages for this channel ...":"Erreur lors du chargement des messages de ce canal","Error while loading, please reload/refresh":"Erreur lors du chargement, veuillez recharger/rafraîchir","Loading ...":"Chargement ...","Loading channels ...":"Chargement des canaux ...","Loading messages ...":"Chargement des messages ...","Message deleted":"Message supprimé","Message failed - try again":"Echec de l\'envoi du message - réessayer","New Messages":"Nouveau Messages","Nothing yet...":"Aucun message...","Please select a channel first":"Veuillez d\'abord selectionnez un canal","Reply":"Répondre","Searching for people":"Recherche de contacts","Start of a new thread":"Début d\'un nouveau fil de discussion","This message was deleted ...":"Ce message a été supprimé","Upload a file":"Charger un fichier","Upload a photo":"Charger une photo","Write your message":"Rédigez votre message","{{ commaSeparatedUsers }} and {{ lastUser }} are typing...":"{{ commaSeparatedUsers }} et {{ lastUser }} sont en train d\'écrire...","{{ firstUser }} and {{ secondUser }} are typing...":"{{ firstUser }} et {{ secondUser }} sont en train d\'écrire...","{{ imageCount }} more":"{{ imageCount }} supplémentaires","{{ replyCount }} replies":"{{ replyCount }} réponses","{{ user }} is typing...":"{{ user }} est en train d\'écrire...","🏙 Attachment...":"🏙 Pièce jointe..."}')},function(y){y.exports=JSON.parse('{"1 reply":"1 रिप्लाई","Add Reaction":"मैसेज पे रिएक्शन डाले","Add a file":"फाइल जोडें","Cancel":"रद्द करें","Choose an action":"एक क्रिया चुनें","Commands":"कमांड","Connection failure, reconnecting now ...":"कनेक्शन विफल रहा, अब पुनः कनेक्ट हो रहा है ...","Delete Message":"मैसेज को डिलीट करे","ERROR · UNSENT":"त्रुटि - नहीं भेजे गए","Edit Message":"मैसेज में बदलाव करे","Editing Message":"मैसेज बदला जा रहा है","Empty message...":"खाली संदेश ...","Error loading":"लोड होने मे त्रुटि","Error loading channel list ...":"चैनल सूची लोड करने में त्रुटि ...","Error loading messages for this channel ...":"इस चैनल के लिए मेसेजेस लोड करने में त्रुटि हुई ...","Error while loading, please reload/refresh":"एरर, रिफ्रेश करे","Loading ...":"लोड हो रहा है ...","Loading channels ...":"चैनल लोड हो रहे हैं ...","Loading messages ...":"मेसेजस लोड हो रहे हैं ...","Message deleted":"मैसेज हटा दिया गया","Message failed - try again":"पुनः प्रयास करें","New Messages":"नए मेसेजस","Nothing yet...":"कोई मैसेज नहीं है","Please select a channel first":"कृपया पहले एक चैनल चुनें","Reply":"मैसेज को रिप्लाई करे","Searching for people":"यूजर की सूचि","Start of a new thread":"एक नए थ्रेड की शुरुआत","This message was deleted ...":"यह मैसेज हटा दिया गया है","Upload a file":"फाइल अपलोड करें","Upload a photo":"फोटो अपलोड करो","Write your message":"अपना मैसेज लिखें","{{ commaSeparatedUsers }} and {{ lastUser }} are typing...":"{{ commaSeparatedUsers }} और {{ secondUser }} टाइप कर रहे हैं...","{{ firstUser }} and {{ secondUser }} are typing...":"{{ firstUser }} और {{ secondUser }} टाइप कर रहे हैं...","{{ imageCount }} more":"{{ imageCount }} और","{{ replyCount }} replies":"{{ replyCount }} रिप्लाई","{{ user }} is typing...":"{{ user }} टाइप कर रहा है...","🏙 Attachment...":"🏙 अटैचमेंट"}')},function(y){y.exports=JSON.parse('{"1 reply":"Una risposta","Add Reaction":"Aggiungi reazione","Add a file":"Aggiungi un file","Cancel":"Annulla","Choose an action":"Scegli una azione","Commands":"Comandi","Connection failure, reconnecting now ...":"Connessione interrotta, riconnessione in corso ...","Delete Message":"Cancella il messaggio","ERROR · UNSENT":"Errore · non inviato","Edit Message":"Modifica messaggio","Editing Message":"Modificando il messaggio","Empty message...":"Message vuoto...","Error loading":"Errore di caricamento","Error loading channel list ...":"Errore durante il caricamento dei canali ...","Error loading messages for this channel ...":"Errore durante il caricamento dei messaggi ...","Error while loading, please reload/refresh":"Errore durante il caricamento, trascina per ricaricare","Loading ...":"Caricamento ...","Loading channels ...":"Caricamento canali in corso ...","Loading messages ...":"Caricamento messaggi ...","Message deleted":"Messaggio cancellato","Message failed - try again":"Invio messaggio fallito - riprova","New Messages":"Ci sono nuovi messaggi","Nothing yet...":"Ancora niente...","Please select a channel first":"Seleziona un canale","Reply":"Rispondere","Searching for people":"Ricerca persone in corso","Start of a new thread":"Inizia un nuovo thread","This message was deleted ...":"Questo messaggio é stato cancellato","Upload a file":"Carica un file","Upload a photo":"Carica una foto","Write your message":"Scrivi un messaggio","{{ commaSeparatedUsers }} and {{ lastUser }} are typing...":"{{ commaSeparatedUsers }} e {{ lastUser }} stanno scrivendo...","{{ firstUser }} and {{ secondUser }} are typing...":"{{ firstUser }} e {{ secondUser }} stanno scrivendo...","{{ imageCount }} more":"+ {{ imageCount }}","{{ replyCount }} replies":"{{ replyCount }} risposte","{{ user }} is typing...":"{{ user }} sta scrivendo...","🏙 Attachment...":"🏙 Allegato..."}')},function(y){y.exports=JSON.parse('{"1 reply":"1 antwoord","Add Reaction":"Voeg reactie toe","Add a file":"Voeg een bestand toe","Cancel":"Annuleer","Choose an action":"Kies een actie","Commands":"Commando\'s","Connection failure, reconnecting now ...":"Verbinding mislukt, nu opnieuw aan het verbinden ...","Delete Message":"Verwijder bericht","ERROR · UNSENT":"ERROR · NIET VERZONDEN","Edit Message":"Pas bericht aan","Editing Message":"Bericht aanpassen","Empty message...":"Leeg bericht...","Error loading":"Probleem bij het laden","Error loading channel list ...":"Probleem bij het laden van de kanalen","Error loading messages for this channel ...":"Probleem bij het laden van de berichten in dit kanaal","Error while loading, please reload/refresh":"Probleem bij het laden, probeer opnieuw","Loading ...":"Aan het laden ...","Loading channels ...":"Kanalen aan het laden ...","Loading messages ...":"Berichten aan het laden ...","Message deleted":"Bericht verwijderd","Message failed - try again":"Bericht mislukt - probeer opnieuw","New Messages":"Nieuwe Berichten","Nothing yet...":"Nog niets ...","Please select a channel first":"Selecteer eerst een kanaal","Reply":"Antwoord","Searching for people":"Zoeken naar gebruikers","Start of a new thread":"Begin van een nieuwe thread","This message was deleted ...":"Dit bericht is verwijderd","Upload a file":"Upload een bestand","Upload a photo":"Upload een foto","Write your message":"Schrijf je bericht","{{ commaSeparatedUsers }} and {{ lastUser }} are typing...":"{{ commaSeparatedUsers }} en {{ lastUser }} zijn aan het typen ...","{{ firstUser }} and {{ secondUser }} are typing...":"{{ firstUser }} en {{ secondUser }} zijn aan het typen ...","{{ imageCount }} more":"+{{ imageCount }}","{{ replyCount }} replies":"{{ replyCount }} antwoorden","{{ user }} is typing...":"{{ user }} is aan het typen...","🏙 Attachment...":"🏙 Bijlage..."}')},function(y){y.exports=JSON.parse('{"1 reply":"1 ответ","Add Reaction":"Добавить реакцию","Add a file":"Добавить файл","Cancel":"Отмена","Choose an action":"Выберите действие","Commands":"Команды","Connection failure, reconnecting now ...":"Обрыв соединения, пересоединяюсь...","Delete Message":"Удалить сообщение","ERROR · UNSENT":"ОШИБКА · НЕ ОТПРАВЛЕНО","Edit Message":"Редактировать сообщение","Editing Message":"Редактирование сообщения","Empty message...":"Пустое сообщение...","Error loading":"Ошибка при загрузке","Error loading channel list ...":"Ошибка загрузки списка каналов ...","Error loading messages for this channel ...":"Ошибка загрузки сообщений для этого канала ...","Error while loading, please reload/refresh":"Ошибка загрузки, пожалуйста перезагрузите или обновите","Loading ...":"Загружаю...","Loading channels ...":"Загружаю каналы ...","Loading messages ...":"Загружаю сообщения ...","Message deleted":"Сообщение удалено","Message failed - try again":"Отправка сообщения провалена - попробуйте ещё раз","New Messages":"Новое сообщение","Nothing yet...":"Пока ничего нет...","Please select a channel first":"Пожалуйста, сначала выберите канал","Reply":"Ответить","Searching for people":"Идёт поиск пользователей","Start of a new thread":"Начало новой ветки","This message was deleted ...":"Это сообщение было удалено ...","Upload a file":"Отправить файл","Upload a photo":"Отправить фото","Write your message":"Напишите сообщение","{{ commaSeparatedUsers }} and {{ lastUser }} are typing...":"{{ commaSeparatedUsers }} и {{ lastUser }} пишут...","{{ firstUser }} and {{ secondUser }} are typing...":"{{ firstUser }} и {{ secondUser }} пишут...","{{ imageCount }} more":"Ещё {{ imageCount }}","{{ replyCount }} replies":"{{ replyCount }} ответов","{{ user }} is typing...":"{{ user }} пишет...","🏙 Attachment...":"🏙 Вложение..."}')},function(y){y.exports=JSON.parse('{"1 reply":"1 cevap","Add Reaction":"Reaksiyon Ekle","Add a file":"Dosya ekle","Cancel":"İptal","Choose an action":"Bir eylem seçin","Commands":"Komutlar","Connection failure, reconnecting now ...":"Bağlantı hatası, tekrar bağlanılıyor ...","Delete Message":"Mesajı Sil","ERROR · UNSENT":"HATA · GÖNDERİLEMEDİ","Edit Message":"Mesajı Düzenle","Editing Message":"Mesaj Düzenleniyor","Empty message...":"Boş mesaj...","Error loading":"Yükleme hatası","Error loading channel list ...":"Kanal listesi yüklenirken hata oluştu ...","Error loading messages for this channel ...":"Bu kanal için mesajlar yüklenirken hata oluştu ...","Error while loading, please reload/refresh":"Yüklenirken hata oluştu, lütfen tekrar deneyin","Loading ...":"Yükleniyor ...","Loading channels ...":"Kanallar yükleniyor ...","Loading messages ...":"Mesajlar yükleniyor ...","Message deleted":"Mesaj silindi","Message failed - try again":"Mesaj başarısız oldu - tekrar deneyin","New Messages":"Yeni mesajlar","Nothing yet...":"Şimdilik hiçbir şey...","Please select a channel first":"Lütfen önce bir kanal seçin","Reply":"Cevapla","Searching for people":"Kişi aranıyor","Start of a new thread":"Yeni konunun başı","This message was deleted ...":"Bu mesaj silindi ...","Upload a file":"Dosya yükle","Upload a photo":"Fotoğraf yükle","Write your message":"Yeni mesaj yaz","{{ commaSeparatedUsers }} and {{ lastUser }} are typing...":"{{ commaSeparatedUsers }} ve {{ lastUser }} yazıyor...","{{ firstUser }} and {{ secondUser }} are typing...":"{{ firstUser }} ve {{ secondUser }} yazıyor...","{{ imageCount }} more":"{{ imageCount }} adet daha","{{ replyCount }} replies":"{{ replyCount }} cevaplar","{{ user }} is typing...":"{{ user }} yazıyor...","🏙 Attachment...":"🏙 Ek..."}')},function(y,w,E){var q=E(259),ne=E(202);y.exports=function assignMergeValue(y,w,E){(void 0!==E&&!ne(y[w],E)||void 0===E&&!(w in y))&&q(y,w,E)}},function(y,w,E){var q=E(147),ne=function(){try{var y=q(Object,"defineProperty");return y({},"",{}),y}catch(y){}}();y.exports=ne},function(y,w,E){var q=E(952)();y.exports=q},function(y,w,E){var q=E(475)(Object.getPrototypeOf,Object);y.exports=q},function(y,w){y.exports=function safeGet(y,w){if(("constructor"!==w||"function"!=typeof y[w])&&"__proto__"!=w)return y[w]}},function(y,w,E){var q=E(259),ne=E(202),ie=Object.prototype.hasOwnProperty;y.exports=function assignValue(y,w,E){var oe=y[w];ie.call(y,w)&&ne(oe,E)&&(void 0!==E||w in y)||q(y,w,E)}},function(y,w,E){var q=E(473),ne=E(963),ie=E(124);y.exports=function keysIn(y){return ie(y)?q(y,!0):ne(y)}},function(y,w,E){var q=E(493),ne=E(252);y.exports=function baseForOwn(y,w){return y&&q(y,w,ne)}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.ActionSheetCustom=void 0;var ne=q(E(0));w.ActionSheetCustom=function ActionSheetCustom(){return ne.default.createElement(ne.default.Fragment,null)}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.renderText=void 0;var ne=q(E(25)),ie=q(E(86)),oe=q(E(0)),se=q(E(190)),le=q(E(91)),pe=q(E(982)),ge=q(E(459)),he=q(E(986)),me=E(987);function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(y);w&&(q=q.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,q)}return E}function _objectSpread(y){for(var w=1;w=y.length?{done:!0}:{done:!1,value:y[q++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(E=y["function"==typeof Symbol?Symbol.iterator:"@@iterator"]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,q=new Array(w);E]/g,"\\$&");var Te=_objectSpread(_objectSpread(_objectSpread({},ve),E),{},{autolink:_objectSpread(_objectSpread({},ve.autolink),null==E?void 0:E.autolink),inlineCode:_objectSpread(_objectSpread({},ve.inlineCode),null==E?void 0:E.inlineCode),mentions:_objectSpread(_objectSpread({},ve.mentions),null==E?void 0:E.mentions),text:_objectSpread(_objectSpread({},ve.text),null==E?void 0:E.text)}),je=function onLink(y){return ie?ie(y):se.default.canOpenURL(y).then((function(w){return w&&se.default.openURL(y)}))},Fe=Array.isArray(we)?we.reduce((function(y,w){var E=w.name||w.id||"";return E&&(y+=(y.length?"|":"")+"@"+E),y}),""):"",Be=new RegExp("^\\B("+Fe+")","g"),Ve=_objectSpread({link:{react:function react(y,w,E){var q=(0,ne.default)({},E);q.withinLink=!0;var ie=oe.default.createElement(le.default,{key:q.key,onPress:function onPress(){return je(y.target)},style:Te.autolink,suppressHighlighting:!0},w(y.content,q));return q.withinLink=!1,ie}},reflink:{match:function match(){return null}}},Fe?{mentions:{match:function match(y){return Be.exec(y)},order:me.defaultRules.text.order-.5,parse:ye,react:function mentionsReact(y,w,E){var q,ie=(0,ne.default)({},E);return oe.default.createElement(le.default,{key:ie.key,style:Te.mentions},Array.isArray(y.content)?(null==(q=y.content[0])?void 0:q.content)||"":w(y.content,ie))}}}:{});return oe.default.createElement(he.default,{onLink:je,rules:_objectSpread(_objectSpread({},Ve),w),styles:Te},Se)}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var q=E(368),ne=/^[a-z0-9!#$%&'*+\-/=?^_`{|}~.]+@([a-z0-9%\-]+\.){1,}([a-z0-9\-]+)?$/i,ie=[/^[!#$%&'*+\-/=?^_`{|}~.]/,/[.]{2,}[a-z0-9!#$%&'*+\-/=?^_`{|}~.]+@/i,/\.@/];w.default=function default_1(y){var w=y.match(ne);if(null===w)return!1;for(var E=ie.length-1;E>=0;E--)if(ie[E].test(y))return!1;var oe=w[2];return!!oe&&-1!==q.tlds.indexOf(oe)}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var q=E(367),ne=/^(\d{1,3}\.){3}\d{1,3}(:\d{1,5})?(\/([a-z0-9\-._~:\/\?#\[\]@!$&'\(\)\*\+,;=%]+)?)?$/i;w.default=function default_1(y){if(!ne.test(y))return!1;var w=y.split("."),E=Number(w[0]);if(isNaN(E)||E>255||E<0)return!1;var ie=Number(w[1]);if(isNaN(ie)||ie>255||ie<0)return!1;var oe=Number(w[2]);if(isNaN(oe)||oe>255||oe<0)return!1;var se=Number((w[3].match(/^\d+/)||[])[0]);if(isNaN(se)||se>255||se<0)return!1;var le=(w[3].match(/(^\d+)(:)(\d+)/)||[])[3];return!(le&&!q.isPort(le))}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var q=E(367),ne=E(368),ie=/^(https?:\/\/|ftps?:\/\/)?([a-z0-9%\-]+\.){1,}([a-z0-9\-]+)?(:(\d{1,5}))?(\/([a-z0-9\-._~:\/\?#\[\]@!$&'\(\)\*\+,;=%]+)?)?$/i;w.default=function default_1(y){var w=y.match(ie);return null!==w&&("string"==typeof w[3]&&(-1!==ne.tlds.indexOf(w[3].toLowerCase())&&!(w[5]&&!q.isPort(w[5]))))}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var q=E(984);w.separate=function separate(y){var w=y.replace(/([\s\(\)\[\]<>"'])/g,"\0$1\0").replace(/([?;:,.!]+)(?=(\0|$|\s))/g,"\0$1\0").split("\0");return q.default(w)},w.deSeparate=function deSeparate(y){return y.join("")}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=function default_1(y){return 0===(y=y.toLowerCase()).indexOf("http://")?"http://":0===y.indexOf("https://")?"https://":0===y.indexOf("ftp://")?"ftp://":0===y.indexOf("ftps://")?"ftps://":0===y.indexOf("file:///")?"file:///":0===y.indexOf("mailto:")&&"mailto:"}},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.renderReactions=void 0;var ne=q(E(45)),ie=q(E(0)),oe=q(E(91));w.renderReactions=function renderReactions(y,w){var E={};null==y||y.map((function(y){return E[y.type]?E[y.type]=[].concat((0,ne.default)(E[y.type]),[y]):E[y.type]=[y]}));var q={},se=w.map((function(y){return q[y.id]=y,y.id}));return Object.keys(E).map((function(y){return se.indexOf(y)>-1?ie.default.createElement(oe.default,{key:y,testID:y},q[y].icon):null}))}},function(y,w,E){"use strict";E.r(w),w.default=E.p+"build/images/37d72518f278425518bb8a5070e47d9b.png"},function(y,w,E){var q=E(7);Object.defineProperty(w,"__esModule",{value:!0}),w.IconBadge=void 0;var ne=q(E(16)),ie=q(E(0)),oe=q(E(9)),se=E(15);function _templateObject3(){var y=(0,ne.default)(["\n color: #ffffff;\n font-size: 10px;\n ",";\n"]);return _templateObject3=function _templateObject3(){return y},y}function _templateObject2(){var y=(0,ne.default)(["\n align-items: center;\n align-self: flex-start;\n background-color: green;\n border-radius: 20px;\n height: 15px;\n justify-content: center;\n min-width: 15px;\n padding-horizontal: 3px;\n ",";\n"]);return _templateObject2=function _templateObject2(){return y},y}function _templateObject(){var y=(0,ne.default)(["\n align-items: center;\n align-self: center;\n border-radius: 20px;\n justify-content: center;\n padding-top: 5px;\n ",";\n"]);return _templateObject=function _templateObject(){return y},y}var le=se.styled.View(_templateObject(),(function(y){return y.theme.iconBadge.icon.css})),pe=se.styled.View(_templateObject2(),(function(y){return y.theme.iconBadge.iconInner.css})),ge=se.styled.Text(_templateObject3(),(function(y){return y.theme.iconBadge.unreadCount.css}));w.IconBadge=function IconBadge(y){var w=y.children,E=y.showNumber,q=y.unread;return ie.default.createElement(oe.default,null,w,q>0&&ie.default.createElement(le,null,ie.default.createElement(pe,null,E&&ie.default.createElement(ge,null,q))))}},function(y,w,E){var q=E(78),ne=E(31),ie=E(510);y.exports=!q&&!ne((function(){return 7!=Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a}))},function(y,w,E){var q=E(53),ne=E(54),ie=q.document,oe=ne(ie)&&ne(ie.createElement);y.exports=function(y){return oe?ie.createElement(y):{}}},function(y,w,E){var q=E(512),ne=Function.toString;"function"!=typeof q.inspectSource&&(q.inspectSource=function(y){return ne.call(y)}),y.exports=q.inspectSource},function(y,w,E){var q=E(53),ne=E(374),ie="__core-js_shared__",oe=q[ie]||ne(ie,{});y.exports=oe},function(y,w){y.exports=!1},function(y,w,E){var q=E(68),ne=E(1022),ie=E(372),oe=E(79);y.exports=function(y,w){for(var E=ne(w),se=oe.f,le=ie.f,pe=0;pele;)q(se,E=w[le++])&&(~ie(pe,E)||pe.push(E));return pe}},function(y,w,E){var q=E(166),ne=E(169),ie=E(1023),createMethod=function(y){return function(w,E,oe){var se,le=q(w),pe=ne(le.length),ge=ie(oe,pe);if(y&&E!=E){for(;pe>ge;)if((se=le[ge++])!=se)return!0}else for(;pe>ge;ge++)if((y||ge in le)&&le[ge]===E)return y||ge||0;return!y&&-1}};y.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},function(y,w,E){var q=E(31),ne=/#|\.prototype\./,isForced=function(y,w){var E=oe[ie(y)];return E==le||E!=se&&("function"==typeof w?q(w):!!w)},ie=isForced.normalize=function(y){return String(y).replace(ne,".").toLowerCase()},oe=isForced.data={},se=isForced.NATIVE="N",le=isForced.POLYFILL="P";y.exports=isForced},function(y,w,E){"use strict";var q=E(31);function RE(y,w){return RegExp(y,w)}w.UNSUPPORTED_Y=q((function(){var y=RE("a","y");return y.lastIndex=2,null!=y.exec("abcd")})),w.BROKEN_CARET=q((function(){var y=RE("^r","gy");return y.lastIndex=2,null!=y.exec("str")}))},function(y,w,E){"use strict";var q=E(281),ne=E(59),ie=E(110),oe=E(1025),se=E(282);q("search",1,(function(y,w,E){return[function search(w){var E=ie(this),q=null==w?void 0:w[y];return void 0!==q?q.call(w,E):new RegExp(w)[y](String(E))},function(y){var q=E(w,y,this);if(q.done)return q.value;var ie=ne(y),le=String(this),pe=ie.lastIndex;oe(pe,0)||(ie.lastIndex=0);var ge=se(ie,le);return oe(ie.lastIndex,pe)||(ie.lastIndex=pe),null===ge?-1:ge.index}]}))},function(y,w,E){var q=E(380);y.exports=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(y,w,E){var q=E(54),ne=E(381),ie=E(69)("species");y.exports=function(y,w){var E;return ne(y)&&("function"!=typeof(E=y.constructor)||E!==Array&&!ne(E.prototype)?q(E)&&null===(E=E[ie])&&(E=void 0):E=void 0),new(void 0===E?Array:E)(0===w?0:w)}},function(y,w,E){var q,ne,ie=E(53),oe=E(1028),se=ie.process,le=se&&se.versions,pe=le&&le.v8;pe?ne=(q=pe.split("."))[0]+q[1]:oe&&(!(q=oe.match(/Edge\/(\d+)/))||q[1]>=74)&&(q=oe.match(/Chrome\/(\d+)/))&&(ne=q[1]),y.exports=ne&&+ne},function(y,w,E){var q=E(31);y.exports=!q((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},function(y,w,E){var q,ne=E(59),ie=E(1032),oe=E(377),se=E(214),le=E(1033),pe=E(510),ge=E(275),he=ge("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(y){return"