diff --git a/.detoxrc.json b/.detoxrc.json deleted file mode 100644 index 2e09984b9c..0000000000 --- a/.detoxrc.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "testRunner": "jest", - "runnerConfig": "e2e/config.json", - "skipLegacyWorkersInjection": true, - "apps": { - "ios.sample.debug": { - "name": "iOS SampleApp Debug", - "type": "ios.app", - "binaryPath": "examples/SampleApp/ios/build/Build/Products/Debug-iphonesimulator/SampleApp.app", - "build": "cd examples/SampleApp && xcodebuild -workspace ios/SampleApp.xcworkspace -scheme SampleApp -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build" - }, - "ios.sample.release": { - "name": "iOS SampleApp Release", - "type": "ios.app", - "binaryPath": "examples/SampleApp/ios/build/Build/Products/Release-iphonesimulator/SampleApp.app", - "build": "cd examples/SampleApp && xcodebuild -workspace ios/SampleApp.xcworkspace -scheme SampleApp -configuration Release -sdk iphonesimulator -derivedDataPath ios/build" - }, - "android.sample.debug": { - "name": "Android SampleApp Debug", - "type": "android.apk", - "binaryPath": "examples/SampleApp/android/app/build/outputs/apk/debug/app-debug.apk", - "build": "cd examples/SampleApp/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug" - }, - "android.sample.release": { - "name": "Android SampleApp Release", - "type": "android.apk", - "binaryPath": "examples/SampleApp/android/app/build/outputs/apk/release/app-release.apk", - "build": "cd examples/SampleApp/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release" - } - }, - "devices": { - "simulator": { - "type": "ios.simulator", - "device": { - "type": "iPhone 12" - } - }, - "emulator": { - "type": "android.emulator", - "device": { - "avdName": "Pixel_29_AOSP" - } - } - }, - "configurations": { - "ios.sample.debug": { - "device": "simulator", - "app": "ios.sample.debug" - }, - "ios.sample.release": { - "device": "simulator", - "app": "ios.sample.release" - }, - "android.sample.debug": { - "device": "emulator", - "app": "android.sample.debug" - }, - "android.sample.release": { - "device": "emulator", - "app": "android.sample.release" - } - } -} diff --git a/.github/workflows/sample-distribution.yml b/.github/workflows/sample-distribution.yml index 366b4f25af..8540967277 100644 --- a/.github/workflows/sample-distribution.yml +++ b/.github/workflows/sample-distribution.yml @@ -33,7 +33,9 @@ jobs: ${{ runner.os }}-pods- - name: iOS Pods setup working-directory: examples/SampleApp/ios - run: bundle exec pod install + run: | + pod update hermes-engine --no-repo-update + bundle exec pod install - name: Build and release Testflight QA working-directory: examples/SampleApp run: bundle exec fastlane deploy_to_testflight_qa deploy:${{ github.ref == 'refs/heads/develop' }}; diff --git a/.styles/Vocab/Base/accept.txt b/.styles/Vocab/Base/accept.txt index be8a7c04e1..544011f063 100644 --- a/.styles/Vocab/Base/accept.txt +++ b/.styles/Vocab/Base/accept.txt @@ -43,6 +43,10 @@ CDNs haptics async Podfile +pickFile +onChange +pressable +Pressable boolean Async subscribable @@ -55,3 +59,6 @@ loadMore pollAnswers enum SendMessage +interop +bridgeless +resizer \ No newline at end of file diff --git a/README.md b/README.md index c5cf201bba..ff87161d98 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ > The official React Native and Expo components for Stream Chat, a service for > building chat applications. - [![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/actions/workflows/release.yml/badge.svg)](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) diff --git a/docs/Poweredby_100px-White_VertText.png b/docs/Poweredby_100px-White_VertText.png deleted file mode 100644 index 629da47542..0000000000 Binary files a/docs/Poweredby_100px-White_VertText.png and /dev/null differ diff --git a/docs/build/bundle.38535de9.js b/docs/build/bundle.38535de9.js deleted file mode 100644 index 3b8879c189..0000000000 --- a/docs/build/bundle.38535de9.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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" - - diff --git a/docs/splash.png b/docs/splash.png deleted file mode 100644 index 4f9ade699a..0000000000 Binary files a/docs/splash.png and /dev/null differ diff --git a/docs/v3/build/bundle.a39375a1.js b/docs/v3/build/bundle.a39375a1.js deleted file mode 100644 index 9abfb1fb5d..0000000000 --- a/docs/v3/build/bundle.a39375a1.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see bundle.a39375a1.js.LICENSE.txt */ -!function(y){var w={};function __webpack_require__(E){if(w[E])return w[E].exports;var P=w[E]={i:E,l:!1,exports:{}};return y[E].call(P.exports,P,P.exports,__webpack_require__),P.l=!0,P.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 P in y)__webpack_require__.d(E,P,function(w){return y[w]}.bind(null,P));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=698)}([function(y,w,E){"use strict";y.exports=E(887)},function(y,w,E){(function(y,P){var q;!function(ne){var oe=w,ie=(y&&y.exports,"object"==typeof P&&P);ie.global!==ie&&ie.window;var se="A range’s `stop` value must be greater than or equal to the `start` value.",le="Invalid code point value. Code points range from U+000000 to U+10FFFF.",pe=55296,ge=56319,me=56320,he=57343,ve=/\\x00([^0123456789]|$)/g,ye={},_e=ye.hasOwnProperty,forEach=function(y,w){for(var E=-1,P=y.length;++E=E&&wE)return y;if(w<=P&&E>=q)y.splice(ne,2);else{if(w>=P&&E=P&&w<=q)y[ne+1]=w;else if(E>=P&&E<=q)return y[ne]=E+1,y;ne+=2}}return y},dataAdd=function(y,w){var E,P,q=0,ne=null,oe=y.length;if(w<0||w>1114111)throw RangeError(le);for(;q=E&&ww)return y.splice(null!=ne?ne+2:0,0,w,w+1),y;if(w==P)return w+1==y[q+2]?(y.splice(q,4,E,y[q+3]),y):(y[q+1]=w+1,y);ne=q,q+=2}return y.push(w,w+1),y},dataAddData=function(y,w){for(var E,P,q=0,ne=y.slice(),oe=w.length;q1114111||E<0||E>1114111)throw RangeError(le);for(var P,q,ne=0,oe=!1,ie=y.length;neE)return y;P>=w&&P<=E&&(q>w&&q-1<=E?(y.splice(ne,2),ne-=2):(y.splice(ne-1,2),ne-=2))}else{if(P==E+1||P==E)return y[ne]=w,y;if(P>E)return y.splice(ne,0,w,E+1),y;if(w>=P&&w=P&&w=q&&(y[ne]=w,y[ne+1]=E+1,oe=!0)}ne+=2}return oe||y.push(w,E+1),y},dataContains=function(y,w){var E=0,P=y.length,q=y[E],ne=y[P-1];if(P>=2&&(wne))return!1;for(;E=q&&w=40&&y<=43||46==y||47==y||63==y||y>=91&&y<=94||y>=123&&y<=125?"\\"+Me(y):y>=32&&y<=126?Me(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,P=y.charCodeAt(0);return P>=pe&&P<=ge&&E>1?(w=y.charCodeAt(1),1024*(P-pe)+w-me+65536):P},createBMPCharacterClasses=function(y){var w,E,P="",q=0,ne=y.length;if(dataIsSingleton(y))return codePointToString(y[0]);for(;q=pe&&E<=ge&&(ne.push(w,pe),P.push(pe,E+1)),E>=me&&E<=he&&(ne.push(w,pe),P.push(pe,56320),q.push(me,E+1)),E>he&&(ne.push(w,pe),P.push(pe,56320),q.push(me,57344),E<=65535?ne.push(57344,E+1):(ne.push(57344,65536),oe.push(65536,E+1)))):w>=pe&&w<=ge?(E>=pe&&E<=ge&&P.push(w,E+1),E>=me&&E<=he&&(P.push(w,56320),q.push(me,E+1)),E>he&&(P.push(w,56320),q.push(me,57344),E<=65535?ne.push(57344,E+1):(ne.push(57344,65536),oe.push(65536,E+1)))):w>=me&&w<=he?(E>=me&&E<=he&&q.push(w,E+1),E>he&&(q.push(w,57344),E<=65535?ne.push(57344,E+1):(ne.push(57344,65536),oe.push(65536,E+1)))):w>he&&w<=65535?E<=65535?ne.push(w,E+1):(ne.push(w,65536),oe.push(65536,E+1)):oe.push(w,E+1),ie+=2;return{loneHighSurrogates:P,loneLowSurrogates:q,bmp:ne,astral:oe}}(y),ne=q.loneHighSurrogates,oe=q.loneLowSurrogates,ie=q.bmp,se=q.astral,le=!dataIsEmpty(ne),ve=!dataIsEmpty(oe),ye=surrogateSet(se);return w&&(ie=dataAddData(ie,ne),le=!1,ie=dataAddData(ie,oe),ve=!1),dataIsEmpty(ie)||P.push(createBMPCharacterClasses(ie)),ye.length&&P.push(function(y){var w=[];return forEach(y,(function(y){var E=y[0],P=y[1];w.push(createBMPCharacterClasses(E)+createBMPCharacterClasses(P))})),w.join("|")}(ye)),le&&P.push(createBMPCharacterClasses(ne)+"(?![\\uDC00-\\uDFFF])"),ve&&P.push("(?:[^\\uD800-\\uDBFF]|^)"+createBMPCharacterClasses(oe)),P.join("|")},regenerate=function(y){return arguments.length>1&&(y=we.call(arguments)),this instanceof regenerate?(this.data=[],y?this.add(y):this):(new regenerate).add(y)};regenerate.version="1.4.2";var Se=regenerate.prototype;!function(y,w){var E;for(E in w)_e.call(w,E)&&(y[E]=w[E])}(Se,{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=we.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=we.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,P=isNumber(y)?y:symbolToCodePoint(y),q=isNumber(w)?w:symbolToCodePoint(w);return E.data=dataRemoveRange(E.data,P,q),E},intersection:function(y){var w=this,E=y instanceof regenerate?dataToArray(y.data):y;return w.data=function(y,w){for(var E,P=0,q=w.length,ne=[];P2?E-2:0),q=2;q1&&ye.textMultiLine],rt=[y.style,null!=ne&&ne>1&&{WebkitLineClamp:ne},!0===Xe&&_e.selectable,!1===Xe&&_e.notSelectable,Re&&_e.pressable];Object(ie.a)(tt,ve),Object(pe.a)(tt,{onMoveShouldSetResponder:we,onMoveShouldSetResponderCapture:ke,onResponderEnd:Me,onResponderGrant:Se,onResponderMove:Ae,onResponderReject:Te,onResponderRelease:Oe,onResponderStart:Fe,onResponderTerminate:je,onResponderTerminationRequest:Be,onScrollShouldSetResponder:Ve,onScrollShouldSetResponderCapture:Ne,onSelectionChangeShouldSetResponder:Ue,onSelectionChangeShouldSetResponderCapture:We,onStartShouldSetResponder:$e,onStartShouldSetResponderCapture:Ye});var ot=et?"span":"div",it=function pickProps(y){return Object(oe.a)(y,he)}(y);it.classList=nt,it.dir=E,et||(it.dir=null!=E?E:"auto"),it.onClick=function handleClick(y){null!=ge&&ge(y),null==ge&&null!=Re&&(y.stopPropagation(),Re(y))},it.style=rt;var st=Object(le.a)(it),dt=Object(se.a)(tt,st,w);it.ref=dt;var ct=Object(q.default)(ot,it);return et?ct:P.createElement(me.a.Provider,{value:!0},ct)}));ve.displayName="Text";var ye=ne.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"}}),_e=ge.default.create({notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});w.default=ve},function(y,w,E){"use strict";E.d(w,"b",(function(){return generateNewAnimationId})),E.d(w,"c",(function(){return shouldUseNativeDriver}));var P=E(294),q=E(9),ne=E.n(q);var oe,ie=null,se=1,le=1,pe=!1,ge=[],me={opacity:!0,transform:!0,borderRadius:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},he={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,perspective:!0},ve={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function generateNewAnimationId(){return le++}function shouldUseNativeDriver(y){return(!0!==y.useNativeDriver||ie)&&y.useNativeDriver||!1}var ye={API:{enableQueue:function enableQueue(){pe=!0},disableQueue:function disableQueue(){ne()(ie,"Native animated module is not available"),pe=!1;for(var y=0,w=ge.length;yoe?1:0}));var ne=q.slice(0,10);return P&&P(ne,y),ne},output:function output(y){return{caretPosition:"next",key:""+y.name,text:"/"+y.name}}},":":{component:"EmojisItem",dataProvider:function dataProvider(y,w,E){if(!y)return[];var P=me.compiledEmojis.emojiArray.reduce((function(w,E){if(w.length>=10)return w;if(E.names.some((function(w){return w.includes(y)}))){var P=me.compiledEmojis.emojiLib[E.name];P.skin_variations?(w.push((0,q.default)({},P,{name:P.name+"-tone-1",skin_variations:void 0})),P.skin_variations.forEach((function(y,E){return w.push((0,q.default)({},P,{name:P.name+"-tone-"+(E+2),skin_variations:void 0,unicode:y}))}))):w.push(P)}return w}),[]);return E&&E(P,y),P},output:function output(y){return{caretPosition:"next",key:y.name,text:y.unicode}}},"@":{callback:function callback(y){E(y)},component:"MentionsItem",dataProvider:function dataProvider(y,E,P){if(!y||Object.values(w.state.members).length<100){var q=Re(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,10);return P&&P(q,y),q}return we(w,y,(function(w){P&&P(w,y)}))},output:function output(y){return{caretPosition:"next",key:y.id,text:"@"+(y.name||y.id)}}}}};w.makeImageCompatibleUrl=function makeImageCompatibleUrl(y){return(0===y.indexOf("//")?"https:"+y:y).trim()};w.vw=function vw(y){var w=arguments.length>1&&void 0!==arguments[1]&&arguments[1],E=le.default.get("window").width*(y/100);return w?Math.round(E):E};w.vh=function vh(y){var w=arguments.length>1&&void 0!==arguments[1]&&arguments[1],E=le.default.get("window").height-("android"===pe.default.OS&&ge.default.currentHeight?ge.default.currentHeight:0),P=E*(y/100);return w?Math.round(P):P};w.generateRandomId=function generateRandomId(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y?((Number(y)^16*Math.random())>>Number(y)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,generateRandomId)};w.emojiRegex=/^(\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83E\uDDD1(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB-\uDFFE])|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83E\uDDD1(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])?|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#*0-9]\uFE0F\u20E3|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])+$/},function(y,w,E){"use strict";function toVal(y){var w,E,P="";if("string"==typeof y||"number"==typeof y)P+=y;else if("object"==typeof y)if(Array.isArray(y))for(w=0;w=0||(q[E]=y[E]);return q}(y,["accessible","activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"]),Se=Object(P.useRef)(null),Ae=Object(q.a)(w,Se),Te=Object(P.useState)("0s"),Oe=Te[0],Fe=Te[1],je=Object(P.useState)(null),Be=je[0],Ve=je[1],Ne=Object(P.useCallback)((function(y,w){Ve(y),Fe(w?w/1e3+"s":"0s")}),[Ve,Fe]),Ue=Object(P.useCallback)((function(y){Ne(null!=oe?oe:.2,y)}),[oe,Ne]),We=Object(P.useCallback)((function(y){Ne(null,y)}),[Ne]),$e=Object(P.useMemo)((function(){return{cancelable:!we,disabled:me,delayLongPress:ge,delayPressStart:le,delayPressEnd:pe,onLongPress:ve,onPress:ye,onPressStart:function onPressStart(y){var w=null!=y.dispatchConfig?"onResponderGrant"===y.dispatchConfig.registrationName:"keydown"===y.type;Ue(w?0:150),null!=_e&&_e(y)},onPressEnd:function onPressEnd(y){We(250),null!=Re&&Re(y)}}}),[ge,le,pe,me,ve,ye,_e,Re,we,Ue,We]),Ye=Object(ne.a)(Se,$e);return P.createElement(ie.default,_extends({},Me,Ye,{accessibilityState:_objectSpread({disabled:me},y.accessibilityState),accessible:!1!==E,focusable:!1!==he&&void 0!==ye,ref:Ae,style:[se.root,!me&&se.actionable,ke,null!=Be&&{opacity:Be},{transitionDuration:Oe}]}))})));le.displayName="TouchableOpacity",w.default=le},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return Sn}));E(31);var P=E(0),q=E.n(P),ne=E(2),oe=E.n(ne),ie=E(685),se=E.n(ie),le=Object.assign||function(y){for(var w,E=1;E",lt:"<",nbsp:" ",quot:"“"},he=["style","script"],ve=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,ye=/mailto:/i,_e=/\n{2,}$/,Re=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,we=/^ *> ?/gm,ke=/^ {2,}\n/,Me=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,Se=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,Ae=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Te=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Oe=/^(?:\n *)*\n/,Fe=/\r\n?/g,je=/^\[\^([^\]]+)](:.*)\n/,Be=/^\[\^([^\]]+)]/,Ve=/\f/g,Ne=/^\s*?\[(x|\s)\]/,Ue=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,We=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$e=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,Ye=/&([a-z]+);/g,Xe=/^/,et=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,tt=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,nt=/^\{.*\}$/,rt=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ot=/^<([^ >]+@[^ >]+)>/,it=/^<([^ >]+:\/[^ >]+)>/,st=/ *\n+$/,dt=/(?:^|\n)( *)$/,ct=/-([a-z])?/gi,lt=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,ut=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,pt=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,gt=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,mt=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ht=/(\[|\])/g,ft=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,vt=/\t/g,yt=/^ *\| */,bt=/(^ *\||\| *$)/g,_t=/ *$/,Rt=/^ *:-+: *$/,xt=/^ *:-+ *$/,Ct=/^ *-+: *$/,wt=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,kt=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,Mt=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,St=/^\\([^0-9A-Za-z\s])/,Et=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Dt=/(^\n+|\n+$|\s+$)/g,At=/^([ \t]*)/,Pt=/\\([^0-9A-Z\s])/gi,Tt=/^( *)((?:[*+-]|\d+\.)) +/,Lt=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,It=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,Ot=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,Ft=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,zt=[Re,Ae,Se,Ue,We,$e,Xe,tt,Lt,It,lt,ut];function slugify(y){return y.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function parseTableAlignCapture(y){return Ct.test(y)?"right":Rt.test(y)?"center":xt.test(y)?"left":null}function parseTableRow(y,w,E){var P=E.inTable;E.inTable=!0;var q=w(y.trim(),E);E.inTable=P;var ne=[[]];return q.forEach((function(y,w){"tableSeparator"===y.type?0!==w&&w!==q.length-1&&ne.push([]):("text"===y.type&&(null==q[w+1]||"tableSeparator"===q[w+1].type)&&(y.content=y.content.replace(_t,"")),ne[ne.length-1].push(y))})),ne}function parseTable(y,w,E){E.inline=!0;var P=parseTableRow(y[1],w,E),q=function parseTableAlign(y){return y.replace(bt,"").split("|").map(parseTableAlignCapture)}(y[2]),ne=function parseTableCells(y,w,E){return y.trim().split("\n").map((function(y){return parseTableRow(y,w,E)}))}(y[3],w,E);return E.inline=!1,{align:q,cells:ne,header:P,type:"table"}}function getTableStyle(y,w){return null==y.align[w]?{}:{textAlign:y.align[w]}}function parserFor(y){function b(E,P){for(var q=[],ne="";E;)for(var oe=0;oe2?ne-2:0),ie=2;ie1?q=d(E?"span":"div",{key:"outer"},P):1===P.length?"string"==typeof(q=P[0])&&(q=d("span",{key:"outer"},q)):q=d("span",{key:"outer"}),q}function e(y){var w=y.match(ve);return w?w.reduce((function(y,w,E){var P=w.indexOf("=");if(-1!==P){var ne=function normalizeAttributeKey(y){return-1!==y.indexOf("-")&&null===y.match(et)&&(y=y.replace(ct,(function(y,w){return w.toUpperCase()}))),y}(w.slice(0,P)).trim(),oe=se()(w.slice(P+1).trim()),ie=ge[ne]||ne,le=y[ie]=function attributeValueToJSXPropValue(y,w){return"style"===y?w.split(/;\s?/).reduce((function(y,w){var E=w.slice(0,w.indexOf(":")),P=E.replace(/(-[a-z])/g,(function(y){return y[1].toUpperCase()}));return y[P]=w.slice(E.length+1).trim(),y}),{}):"href"===y?sanitizeUrl(w):(w.match(nt)&&(w=w.slice(1,w.length-1)),"true"===w||"false"!==w&&w)}(ne,oe);($e.test(le)||tt.test(le))&&(y[ie]=q.a.cloneElement(c(le.trim()),{key:E}))}else"style"!==w&&(y[ge[w]||w]=!0);return y}),{}):void 0}(w=w||{}).overrides=w.overrides||{},w.slugify=w.slugify||slugify,w.namedCodesToUnicode=w.namedCodesToUnicode?le({},me,w.namedCodesToUnicode):me;var E=w.createElement||q.a.createElement;var P=[],ne={},oe={blockQuote:{match:blockRegex(Re),order:2,parse:function d(y,w,E){return{content:w(y[0].replace(we,""),E)}},react:function e(y,w,E){return d("blockquote",{key:E.key},w(y.content,E))}},breakLine:{match:anyScopeRegex(ke),order:2,parse:captureNothing,react:function e(y,w,E){return d("br",{key:E.key})}},breakThematic:{match:blockRegex(Me),order:2,parse:captureNothing,react:function e(y,w,E){return d("hr",{key:E.key})}},codeBlock:{match:blockRegex(Ae),order:1,parse:function c(y){return{content:y[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function e(y,w,E){return d("pre",{key:E.key},d("code",{className:y.lang?"lang-"+y.lang:""},y.content))}},codeFenced:{match:blockRegex(Se),order:1,parse:function b(y){return{content:y[3],lang:y[2]||void 0,type:"codeBlock"}}},codeInline:{match:simpleInlineRegex(Te),order:4,parse:function b(y){return{content:y[2]}},react:function e(y,w,E){return d("code",{key:E.key},y.content)}},footnote:{match:blockRegex(je),order:1,parse:function b(y){return P.push({footnote:y[2],identifier:y[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(Be),order:2,parse:function c(y){return{content:y[1],target:"#"+w.slugify(y[1])}},react:function e(y,w,E){return d("a",{key:E.key,href:sanitizeUrl(y.target)},d("sup",{key:E.key},y.content))}},gfmTask:{match:inlineRegex(Ne),order:2,parse:function b(y){return{completed:"x"===y[1].toLowerCase()}},react:function e(y,w,E){return d("input",{checked:y.completed,key:E.key,readOnly:!0,type:"checkbox"})}},heading:{match:blockRegex(Ue),order:2,parse:function e(y,E,P){return{content:parseInline(E,y[2],P),id:w.slugify(y[2]),level:y[1].length}},react:function f(y,w,E){return d("h"+y.level,{id:y.id,key:E.key},w(y.content,E))}},headingSetext:{match:blockRegex(We),order:1,parse:function d(y,w,E){return{content:parseInline(w,y[1],E),level:"="===y[2]?1:2,type:"heading"}}},htmlComment:{match:anyScopeRegex(Xe),order:2,parse:function a(){return{}},react:renderNothing},image:{match:simpleInlineRegex(Ft),order:2,parse:function b(y){return{alt:y[1],target:unescapeUrl(y[2]),title:y[3]}},react:function e(y,w,E){return d("img",{key:E.key,alt:y.alt||void 0,title:y.title||void 0,src:sanitizeUrl(y.target)})}},link:{match:inlineRegex(Ot),order:4,parse:function d(y,w,E){return{content:parseSimpleInline(w,y[1],E),target:unescapeUrl(y[2]),title:y[3]}},react:function e(y,w,E){return d("a",{key:E.key,href:sanitizeUrl(y.target),title:y.title},w(y.content,E))}},linkAngleBraceStyleDetector:{match:inlineRegex(it),order:1,parse:function b(y){return{content:[{content:y[1],type:"text"}],target:y[1],type:"link"}}},linkBareUrlDetector:{match:inlineRegex(rt),order:1,parse:function b(y){return{content:[{content:y[1],type:"text"}],target:y[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:inlineRegex(ot),order:1,parse:function d(y){var w=y[1],E=y[1];return ye.test(E)||(E="mailto:"+E),{content:[{content:w.replace("mailto:",""),type:"text"}],target:E,type:"link"}}},list:{match:function f(y,w,E){var P=dt.exec(E),q=w._list||!w.inline;return P&&q?(y=P[1]+y,It.exec(y)):null},order:2,parse:function j(y,w,E){var P=y[2],q=P.length>1,ne=q?+P:void 0,oe=y[0].replace(_e,"\n").match(Lt),ie=!1;return{items:oe.map((function(y,P){var q=Tt.exec(y)[0].length,ne=new RegExp("^ {1,"+q+"}","gm"),se=y.replace(ne,"").replace(Tt,""),le=P===oe.length-1,pe=-1!==se.indexOf("\n\n")||le&&ie;ie=pe;var ge,me=E.inline,he=E._list;E._list=!0,pe?(E.inline=!1,ge=se.replace(st,"\n\n")):(E.inline=!0,ge=se.replace(st,""));var ve=w(ge,E);return E.inline=me,E._list=he,ve})),ordered:q,start:ne}},react:function f(y,w,E){return d(y.ordered?"ol":"ul",{key:E.key,start:y.start},y.items.map((function(y,P){return d("li",{key:P},w(y,E))})))}},newlineCoalescer:{match:blockRegex(Oe),order:4,parse:captureNothing,react:function a(){return"\n"}},paragraph:{match:blockRegex(ut),order:4,parse:parseCaptureInline,react:function e(y,w,E){return d("p",{key:E.key},w(y.content,E))}},ref:{match:inlineRegex(pt),order:1,parse:function b(y){return ne[y[1]]={target:y[2],title:y[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(gt),order:1,parse:function b(y){return{alt:y[1]||void 0,ref:y[2]}},react:function e(y,w,E){return d("img",{key:E.key,alt:y.alt,src:sanitizeUrl(ne[y.ref].target),title:ne[y.ref].title})}},refLink:{match:inlineRegex(mt),order:1,parse:function d(y,w,E){return{content:w(y[1],E),fallbackContent:w(y[0].replace(ht,"\\$1"),E),ref:y[2]}},react:function e(y,w,E){return ne[y.ref]?d("a",{key:E.key,href:sanitizeUrl(ne[y.ref].target),title:ne[y.ref].title},w(y.content,E)):d("span",{key:E.key},w(y.fallbackContent,E))}},table:{match:blockRegex(lt),order:2,parse:parseTable,react:function f(y,w,E){return d("table",{key:E.key},d("thead",null,d("tr",null,y.header.map((function(P,q){return d("th",{key:q,style:getTableStyle(y,q)},w(P,E))})))),d("tbody",null,y.cells.map((function(P,q){return d("tr",{key:q},P.map((function(P,q){return d("td",{key:q,style:getTableStyle(y,q)},w(P,E))})))}))))}},tableSeparator:{match:function c(y,w){return w.inTable?yt.exec(y):null},order:2,parse:function a(){return{type:"tableSeparator"}},react:function a(){return" | "}},text:{match:anyScopeRegex(Et),order:5,parse:function c(y){return{content:y[0].replace(Ye,(function(y,E){return w.namedCodesToUnicode[E]?w.namedCodesToUnicode[E]:y}))}},react:function b(y){return y.content}},textBolded:{match:simpleInlineRegex(wt),order:3,parse:function d(y,w,E){return{content:w(y[2],E)}},react:function e(y,w,E){return d("strong",{key:E.key},w(y.content,E))}},textEmphasized:{match:simpleInlineRegex(kt),order:4,parse:function d(y,w,E){return{content:w(y[2],E)}},react:function e(y,w,E){return d("em",{key:E.key},w(y.content,E))}},textEscaped:{match:simpleInlineRegex(St),order:2,parse:function b(y){return{content:y[1],type:"text"}}},textStrikethroughed:{match:simpleInlineRegex(Mt),order:4,parse:parseCaptureInline,react:function e(y,w,E){return d("del",{key:E.key},w(y.content,E))}}};!0!==w.disableParsingRawHTML&&(oe.htmlBlock={match:anyScopeRegex($e),order:2,parse:function l(y,w,E){var P=y[3].match(At)[1],q=new RegExp("^"+P,"gm"),ne=y[3].replace(q,""),oe=function containsBlockSyntax(y){return zt.some((function(w){return w.test(y)}))}(ne)?parseBlock:parseInline,ie=y[1].toLowerCase(),se=-1!==he.indexOf(ie);return{attrs:e(y[2]),content:se?y[3]:oe(w,ne,E),noInnerParse:se,tag:se?ie:y[1]}},react:function e(y,w,E){return d(y.tag,le({key:E.key},y.attrs),y.noInnerParse?y.content:w(y.content,E))}},oe.htmlSelfClosing={match:anyScopeRegex(tt),order:2,parse:function b(y){return{attrs:e(y[2]||""),tag:y[1]}},react:function e(y,w,E){return d(y.tag,le({},y.attrs,{key:E.key}))}});var ie=parserFor(oe),pe=function reactFor(y){return function b(w,E){if(E=E||{},Array.isArray(w)){for(var P=E.key,q=[],ne=!1,oe=0;oe)/g,"")}(y));return P.length&&Fe.props.children.push(d("footer",{key:"footer"},P.map((function(y){return d("div",{id:w.slugify(y.identifier),key:y.identifier},y.identifier,pe(ie(y.footnote,{inline:!0})))})))),Fe}var jt=E(686),Bt=E.n(jt),Vt=E(222),Nt=E(99),Ht=E(223),Ut=E(12),Gt=E(161),qt=function MarkdownHeadingRenderer(y){var w=y.classes,E=y.level,P=y.children,ne=y.id;return q.a.createElement("div",{className:w.spacing},q.a.createElement(Gt.default,{level:E,id:ne},P))};qt.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,level:oe.a.oneOf([1,2,3,4,5,6]).isRequired,children:oe.a.node,id:oe.a.string};var Wt=Object(Ut.default)((function styles(y){return{spacing:{marginBottom:y.space[2]}}}))(qt),Kt=(E(55),E(28)),$t=function ListRenderer(y){var w=y.classes,E=y.ordered,ne=y.children,oe=E?"ol":"ul",ie=Object(Kt.a)(w.list,E&&w.ordered);return q.a.createElement(oe,{className:ie},P.Children.map(ne,(function(y){return q.a.isValidElement(y)?Object(P.cloneElement)(y,{className:w.li}):y})))};$t.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,ordered:oe.a.bool,children:oe.a.node.isRequired},$t.defaultProps={ordered:!1};var Yt=Object(Ut.default)((function styles(y){var w=y.space,E=y.color,P=y.fontFamily;return{list:{marginTop:0,marginBottom:w[2],paddingLeft:w[3],fontSize:"inherit"},ordered:{listStyleType:"decimal"},li:{color:E.base,fontFamily:P.base,fontSize:"inherit",lineHeight:1.5,listStyleType:"inherit"}}}))($t),Xt=function BlockquoteRenderer(y){var w=y.classes,E=y.className,P=y.children,ne=Object(Kt.a)(w.blockquote,E);return q.a.createElement("blockquote",{className:ne},P)};Xt.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,className:oe.a.string,children:oe.a.node.isRequired};var Jt=Object(Ut.default)((function styles(y){var w=y.space,E=y.color,P=y.fontSize,q=y.fontFamily;return{blockquote:{margin:[[w[2],w[4]]],padding:0,color:E.base,fontFamily:q.base,fontSize:P.base,lineHeight:1.5}}}))(Xt),Qt=(E(98),E(97),E(78),E(87),E(299)),Zt=function PreRenderer(y){var w=y.classes,E=y.className,P=y.children,ne=Object(Kt.a)(E,w.pre);return E&&-1!==E.indexOf("lang-")&&P?q.a.createElement("pre",{className:ne,dangerouslySetInnerHTML:{__html:P.toString()}}):q.a.createElement("pre",{className:ne},P)};Zt.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,className:oe.a.string,children:oe.a.node.isRequired};var en=Object(Ut.default)((function styles(y){var w=y.space,E=y.color,P=y.fontSize,q=y.fontFamily,ne=y.borderRadius;return{pre:Object.assign({fontFamily:q.monospace,fontSize:P.small,lineHeight:1.5,color:E.base,whiteSpace:"pre-wrap",wordWrap:"normal",tabSize:2,hyphens:"none",backgroundColor:E.codeBackground,padding:[[w[1],w[2]]],border:[[1,E.codeBackground,"solid"]],borderRadius:ne,marginTop:0,marginBottom:w[2],overflow:"auto"},Object(Qt.a)({color:E}))}}))(Zt),tn=E(163);E(121);function CheckboxRenderer_extends(){return(CheckboxRenderer_extends=Object.assign||function(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["classes"]);return q.a.createElement("input",CheckboxRenderer_extends({},E,{type:"checkbox",className:w.input}))};nn.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired};var an=Object(Ut.default)((function styles(){return{input:{isolate:!1,display:"inline-block",verticalAlign:"middle"}}}))(nn),rn=function HrRenderer(y){var w=y.classes;return q.a.createElement("hr",{className:w.hr})};rn.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired};var sn=Object(Ut.default)((function styles(y){var w=y.space;return{hr:{borderBottom:[[1,y.color.border,"solid"]],marginTop:0,marginBottom:w[2]}}}))(rn),dn=function DetailsRenderer(y){var w=y.classes,E=y.children;return q.a.createElement("details",{className:w.details},E)};dn.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,children:oe.a.node.isRequired};var cn=Object(Ut.default)((function styles(y){var w=y.space,E=y.color,P=y.fontSize,q=y.fontFamily;return{details:{marginBottom:w[2],fontFamily:q.base,fontSize:P.base,color:E.base}}}))(dn),ln=function DetailsSummaryRenderer(y){var w=y.classes,E=y.children;return q.a.createElement("summary",{className:w.summary},E)};ln.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,children:oe.a.node.isRequired};var un=Object(Ut.default)((function styles(y){var w=y.space,E=y.color,P=y.fontSize,q=y.fontFamily;return{summary:{marginBottom:w[1],fontFamily:q.base,fontSize:P.base,color:E.base,cursor:"pointer","&:focus":{isolate:!1,outline:[[1,"dotted",E.linkHover]],outlineOffset:2}}}}))(ln),pn=function TableRenderer(y){var w=y.classes,E=y.children;return q.a.createElement("table",{className:w.table},E)};pn.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,children:oe.a.node.isRequired};var gn=Object(Ut.default)((function styles(y){return{table:{marginTop:0,marginBottom:y.space[2],borderCollapse:"collapse"}}}))(pn),mn=function TableHeadRenderer(y){var w=y.classes,E=y.children;return q.a.createElement("thead",{className:w.thead},E)};mn.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,children:oe.a.node.isRequired};var hn=Object(Ut.default)((function styles(y){return{thead:{borderBottom:[[1,y.color.border,"solid"]]}}}))(mn),vn=function TableBodyRenderer(y){var w=y.children;return q.a.createElement("tbody",null,w)};vn.propTypes={children:oe.a.node.isRequired};var yn=vn,bn=function TableRowRenderer(y){var w=y.children;return q.a.createElement("tr",null,w)};bn.propTypes={children:oe.a.node.isRequired};var _n=bn,Rn=function TableCellRenderer(y){var w=y.classes,E=y.header,P=y.children;return E?q.a.createElement("th",{className:w.th},P):q.a.createElement("td",{className:w.td},P)};Rn.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,header:oe.a.bool,children:oe.a.node.isRequired},Rn.defaultProps={header:!1};var xn=Object(Ut.default)((function styles(y){var w=y.space,E=y.color,P=y.fontSize,q=y.fontFamily;return{td:{padding:[[w[0],w[2],w[0],0]],fontFamily:q.base,fontSize:P.base,color:E.base,lineHeight:1.5},th:{composes:"$td",fontWeight:"bold"}}}))(Rn),Cn=function Pre(y){return Object(P.isValidElement)(y.children)?q.a.createElement(en,y.children.props):q.a.createElement(en,y)};Cn.propTypes={children:oe.a.node};var wn={a:{component:Vt.default},h1:{component:Wt,props:{level:1}},h2:{component:Wt,props:{level:2}},h3:{component:Wt,props:{level:3}},h4:{component:Wt,props:{level:4}},h5:{component:Wt,props:{level:5}},h6:{component:Wt,props:{level:6}},p:{component:Ht.default,props:{semantic:"p"}},em:{component:Nt.a,props:{semantic:"em"}},strong:{component:Nt.a,props:{semantic:"strong"}},ul:{component:Yt},ol:{component:Yt,props:{ordered:!0}},blockquote:{component:Jt},code:{component:tn.a},pre:{component:Cn},input:{component:an},hr:{component:sn},table:{component:gn},thead:{component:hn},th:{component:xn,props:{header:!0}},tbody:{component:yn},tr:{component:_n},td:{component:xn},details:{component:cn},summary:{component:un}},kn=Object.assign({},wn,{p:{component:Nt.a}}),Mn=function Markdown(y){var w=y.text,E=y.inline?kn:wn;return compiler(Bt()(w),{overrides:E,forceBlock:!0})};Mn.propTypes={text:oe.a.string.isRequired,inline:oe.a.bool};var Sn=Mn},function(y,w,E){"use strict";E.r(w);var P=E(192),q=E(290),ne=E(0),oe=E.n(ne);w.default=function createElement(y,w){var E;y&&y.constructor===String&&(E=P.a.propsToAccessibilityComponent(w));for(var ne=E||y,ie=Object(q.a)(ne,w),se=arguments.length,le=new Array(se>2?se-2:0),pe=2;pe0?q(P(y),9007199254740991):0}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withMessagesContext=w.useMessagesContext=w.MessagesProvider=w.MessagesContext=void 0;var ne=q(E(5)),oe=P(E(0)),ie=E(54),se=oe.default.createContext({});w.MessagesContext=se;w.MessagesProvider=function MessagesProvider(y){var w=y.children,E=y.value;return oe.default.createElement(se.Provider,{value:E},w)};var le=function useMessagesContext(){return(0,oe.useContext)(se)};w.useMessagesContext=le;w.withMessagesContext=function withMessagesContext(y){var w=function WithMessagesContextComponent(w){var E=le();return oe.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithMessagesContext"+(0,ie.getDisplayName)(y),w}},function(y,w,E){"use strict";var P=E(20),q=E(18);var ne=function(y){function AnimatedWithChildren(){var w;return(w=y.call(this)||this)._children=[],w}!function _inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(AnimatedWithChildren,y);var w=AnimatedWithChildren.prototype;return w.__makeNative=function __makeNative(){if(!this.__isNative){this.__isNative=!0;var w=this._children,E=Array.isArray(w),P=0;for(w=E?w:w[Symbol.iterator]();;){var ne;if(E){if(P>=w.length)break;ne=w[P++]}else{if((P=w.next()).done)break;ne=P.value}var oe=ne;oe.__makeNative(),q.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(),q.a.API.connectAnimatedNodes(this.__getNativeTag(),y.__getNativeTag()))},w.__removeChild=function __removeChild(y){var w=this._children.indexOf(y);-1!==w?(this.__isNative&&y.__isNative&&q.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,P=Array.isArray(E),q=0;for(E=P?E:E[Symbol.iterator]();;){var ne;if(P){if(q>=E.length)break;ne=E[q++]}else{if((q=E.next()).done)break;ne=q.value}var oe=ne;oe.__getValue&&oe.__callListeners(oe.__getValue())}}},AnimatedWithChildren}(P.a);w.a=ne},function(y,w,E){Object.defineProperty(w,"__esModule",{value:!0});var P=E(14);Object.keys(P).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===P[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return P[y]}}))}));var q=E(972);Object.keys(q).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===q[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return q[y]}}))}));var ne=E(512);Object.keys(ne).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ne[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ne[y]}}))}));var oe=E(513);Object.keys(oe).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===oe[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return oe[y]}}))}));var ie=E(492);Object.keys(ie).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ie[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ie[y]}}))}));var se=E(973);Object.keys(se).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===se[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return se[y]}}))}));var le=E(514);Object.keys(le).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===le[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return le[y]}}))}));var pe=E(515);Object.keys(pe).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===pe[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return pe[y]}}))}));var ge=E(974);Object.keys(ge).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ge[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ge[y]}}))}));var me=E(975);Object.keys(me).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===me[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return me[y]}}))}));var he=E(349);Object.keys(he).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===he[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return he[y]}}))}));var ve=E(976);Object.keys(ve).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ve[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ve[y]}}))}));var ye=E(493);Object.keys(ye).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ye[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ye[y]}}))}));var _e=E(977);Object.keys(_e).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===_e[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return _e[y]}}))}));var Re=E(978);Object.keys(Re).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Re[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Re[y]}}))}));var we=E(494);Object.keys(we).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===we[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return we[y]}}))}));var ke=E(495);Object.keys(ke).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ke[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ke[y]}}))}));var Me=E(979);Object.keys(Me).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Me[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Me[y]}}))}));var Se=E(980);Object.keys(Se).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Se[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Se[y]}}))}));var Ae=E(981);Object.keys(Ae).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ae[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ae[y]}}))}));var Te=E(982);Object.keys(Te).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Te[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Te[y]}}))}));var Oe=E(983);Object.keys(Oe).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Oe[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Oe[y]}}))}));var Fe=E(984);Object.keys(Fe).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Fe[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Fe[y]}}))}));var je=E(985);Object.keys(je).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===je[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return je[y]}}))}));var Be=E(986);Object.keys(Be).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Be[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Be[y]}}))}));var Ve=E(496);Object.keys(Ve).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ve[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ve[y]}}))}));var Ne=E(987);Object.keys(Ne).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ne[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ne[y]}}))}));var Ue=E(988);Object.keys(Ue).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ue[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ue[y]}}))}));var We=E(989);Object.keys(We).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===We[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return We[y]}}))}));var $e=E(497);Object.keys($e).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===$e[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return $e[y]}}))}));var Ye=E(990);Object.keys(Ye).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ye[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ye[y]}}))}));var Xe=E(486);Object.keys(Xe).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Xe[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Xe[y]}}))}));var et=E(259);Object.keys(et).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===et[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return et[y]}}))}));var tt=E(991);Object.keys(tt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===tt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return tt[y]}}))}));var nt=E(516);Object.keys(nt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===nt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return nt[y]}}))}));var rt=E(992);Object.keys(rt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===rt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return rt[y]}}))}));var ot=E(993);Object.keys(ot).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ot[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ot[y]}}))}));var it=E(994);Object.keys(it).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===it[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return it[y]}}))}));var st=E(995);Object.keys(st).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===st[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return st[y]}}))}));var dt=E(498);Object.keys(dt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===dt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return dt[y]}}))}));var ct=E(996);Object.keys(ct).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ct[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ct[y]}}))}));var lt=E(997);Object.keys(lt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===lt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return lt[y]}}))}));var ut=E(998);Object.keys(ut).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ut[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ut[y]}}))}));var pt=E(517);Object.keys(pt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===pt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return pt[y]}}))}));var gt=E(999);Object.keys(gt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===gt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return gt[y]}}))}));var mt=E(1e3);Object.keys(mt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===mt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return mt[y]}}))}));var ht=E(499);Object.keys(ht).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ht[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ht[y]}}))}));var ft=E(500);Object.keys(ft).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===ft[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return ft[y]}}))}));var vt=E(1001);Object.keys(vt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===vt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return vt[y]}}))}));var yt=E(501);Object.keys(yt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===yt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return yt[y]}}))}));var bt=E(502);Object.keys(bt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===bt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return bt[y]}}))}));var _t=E(503);Object.keys(_t).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===_t[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return _t[y]}}))}));var Rt=E(1002);Object.keys(Rt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Rt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Rt[y]}}))}));var xt=E(491);Object.keys(xt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===xt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return xt[y]}}))}));var Ct=E(504);Object.keys(Ct).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ct[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ct[y]}}))}));var wt=E(518);Object.keys(wt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===wt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return wt[y]}}))}));var kt=E(519);Object.keys(kt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===kt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return kt[y]}}))}));var Mt=E(520);Object.keys(Mt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Mt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Mt[y]}}))}));var St=E(505);Object.keys(St).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===St[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return St[y]}}))}));var Et=E(1003);Object.keys(Et).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Et[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Et[y]}}))}));var Dt=E(1004);Object.keys(Dt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Dt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Dt[y]}}))}));var At=E(521);Object.keys(At).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===At[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return At[y]}}))}));var Pt=E(1005);Object.keys(Pt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Pt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Pt[y]}}))}));var Tt=E(506);Object.keys(Tt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Tt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Tt[y]}}))}));var Lt=E(1006);Object.keys(Lt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Lt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Lt[y]}}))}));var It=E(1007);Object.keys(It).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===It[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return It[y]}}))}));var Ot=E(1008);Object.keys(Ot).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ot[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ot[y]}}))}));var Ft=E(522);Object.keys(Ft).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ft[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ft[y]}}))}));var zt=E(507);Object.keys(zt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===zt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return zt[y]}}))}));var jt=E(523);Object.keys(jt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===jt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return jt[y]}}))}));var Bt=E(1009);Object.keys(Bt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Bt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Bt[y]}}))}));var Vt=E(1010);Object.keys(Vt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Vt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Vt[y]}}))}));var Nt=E(1011);Object.keys(Nt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Nt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Nt[y]}}))}));var Ht=E(1012);Object.keys(Ht).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ht[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ht[y]}}))}));var Ut=E(1013);Object.keys(Ut).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Ut[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Ut[y]}}))}));var Gt=E(508);Object.keys(Gt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Gt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Gt[y]}}))}));var qt=E(509);Object.keys(qt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===qt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return qt[y]}}))}));var Wt=E(510);Object.keys(Wt).forEach((function(y){"default"!==y&&"__esModule"!==y&&(y in w&&w[y]===Wt[y]||Object.defineProperty(w,y,{enumerable:!0,get:function get(){return Wt[y]}}))}))},function(y,w){var E=y.exports={version:"2.6.12"};"number"==typeof __e&&(__e=E)},function(y,w,E){"use strict";E.d(w,"a",(function(){return oe})),E.d(w,"b",(function(){return useStyleGuideContext}));var P=E(0),q=E.n(P),ne=q.a.createContext({codeRevision:0,cssRevision:"0",config:{},slots:{},displayMode:"collapse"}),oe=ne;function useStyleGuideContext(){return q.a.useContext(ne)}},function(y,w,E){y.exports=!E(23)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(y,w,E){var P=E(24),q=E(434),ne=E(127),oe=Object.defineProperty;w.f=E(45)?Object.defineProperty:function defineProperty(y,w,E){if(P(y),w=ne(w,!0),P(E),q)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){y.exports=E(331)},function(y,w){function asyncGeneratorStep(y,w,E,P,q,ne,oe){try{var ie=y[ne](oe),se=ie.value}catch(y){return void E(y)}ie.done?w(se):Promise.resolve(se).then(P,q)}y.exports=function _asyncToGenerator(y){return function(){var w=this,E=arguments;return new Promise((function(P,q){var ne=y.apply(w,E);function _next(y){asyncGeneratorStep(ne,P,q,_next,_throw,"next",y)}function _throw(y){asyncGeneratorStep(ne,P,q,_next,_throw,"throw",y)}_next(void 0)}))}}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.default=w.Pattern=w.Marker=w.ForeignObject=w.Mask=w.Use=w.TextPath=w.TSpan=w.Text=w.Symbol=w.Svg=w.Stop=w.Rect=w.RadialGradient=w.Polyline=w.Polygon=w.Path=w.LinearGradient=w.Line=w.Image=w.G=w.Ellipse=w.Defs=w.ClipPath=w.Circle=w.WebShape=void 0;var ne=q(E(155)),oe=q(E(156)),ie=q(E(487)),se=q(E(488)),le=q(E(489)),pe=q(E(490)),ge=q(E(5)),me=q(E(92)),he=P(E(0)),ve=q(E(38)),ye=q(E(959)),_e=E(963);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,P=(0,pe.default)(y);if(w){var q=(0,pe.default)(this).constructor;E=Reflect.construct(P,arguments,q)}else E=P.apply(this,arguments);return(0,le.default)(this,E)}}var Re=ve.default||ve.default,we=function prepare(y){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.props,E=w.translate,P=w.scale,q=w.rotation,ne=w.skewX,oe=w.skewY,ie=w.originX,se=w.originY,le=w.fontFamily,pe=w.fontSize,he=w.fontWeight,ve=w.fontStyle,ye=w.style,Re=w.forwardedRef,we=w.onPress,ke=w.onPressIn,Me=w.onPressOut,Se=w.onLongPress,Ae=(0,me.default)(w,["translate","scale","rotation","skewX","skewY","originX","originY","fontFamily","fontSize","fontWeight","fontStyle","style","forwardedRef","onPress","onPressIn","onPressOut","onLongPress"]),Te=we||ke||Me||Se,Oe=(0,ge.default)({},Te?{onStartShouldSetResponder:y.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:y.touchableHandleResponderTerminationRequest,onResponderGrant:y.touchableHandleResponderGrant,onResponderMove:y.touchableHandleResponderMove,onResponderRelease:y.touchableHandleResponderRelease,onResponderTerminate:y.touchableHandleResponderTerminate}:null,Ae),Fe=[];null==ie&&null==se||Fe.push("translate("+(ie||0)+", "+(se||0)+")"),null!=E&&Fe.push("translate("+E+")"),null!=P&&Fe.push("scale("+P+")"),null!=q&&Fe.push("rotate("+q+")"),null!=ne&&Fe.push("skewX("+ne+")"),null!=oe&&Fe.push("skewY("+oe+")"),null==ie&&null==se||Fe.push("translate("+(-ie||0)+", "+(-se||0)+")"),Fe.length&&(Oe.transform=Fe.join(" ")),Re&&(Oe.ref=Re);var je={};return null!=le&&(je.fontFamily=le),null!=pe&&(je.fontSize=pe),null!=he&&(je.fontWeight=he),null!=ve&&(je.fontStyle=ve),Oe.style=(0,_e.resolve)(ye,je),Oe},ke=function getBoundingClientRect(y){if(y&&(1===y.nodeType&&"function"==typeof y.getBoundingClientRect))return y.getBoundingClientRect()};function remeasure(){var y=this.state.touchable.responderID;null!=y&&function measureLayout(y,w){var E=y&&y.parentNode;E&&setTimeout((function(){var P=ke(E),q=ke(y),ne=q.height,oe=q.left,ie=q.top,se=q.width,le=oe-P.left,pe=ie-P.top;w(le,pe,se,ne,oe,ie)}),0)}(y,this._handleQueryLayout)}var Me=function(y){(0,se.default)(WebShape,y);var w=_createSuper(WebShape);function WebShape(y,E){var P;return(0,oe.default)(this,WebShape),P=w.call(this,y,E),(0,ye.default)((0,ie.default)(P)),P._remeasureMetricsOnActivation=remeasure.bind((0,ie.default)(P)),P}return WebShape}(he.Component);w.WebShape=Me;var Se=function(y){(0,se.default)(Circle,y);var w=_createSuper(Circle);function Circle(){return(0,oe.default)(this,Circle),w.apply(this,arguments)}return(0,ne.default)(Circle,[{key:"render",value:function render(){return Re("circle",we(this))}}]),Circle}(Me);w.Circle=Se;var Ae=function(y){(0,se.default)(ClipPath,y);var w=_createSuper(ClipPath);function ClipPath(){return(0,oe.default)(this,ClipPath),w.apply(this,arguments)}return(0,ne.default)(ClipPath,[{key:"render",value:function render(){return Re("clipPath",we(this))}}]),ClipPath}(Me);w.ClipPath=Ae;var Te=function(y){(0,se.default)(Defs,y);var w=_createSuper(Defs);function Defs(){return(0,oe.default)(this,Defs),w.apply(this,arguments)}return(0,ne.default)(Defs,[{key:"render",value:function render(){return Re("defs",we(this))}}]),Defs}(Me);w.Defs=Te;var Oe=function(y){(0,se.default)(Ellipse,y);var w=_createSuper(Ellipse);function Ellipse(){return(0,oe.default)(this,Ellipse),w.apply(this,arguments)}return(0,ne.default)(Ellipse,[{key:"render",value:function render(){return Re("ellipse",we(this))}}]),Ellipse}(Me);w.Ellipse=Oe;var Fe=function(y){(0,se.default)(G,y);var w=_createSuper(G);function G(){return(0,oe.default)(this,G),w.apply(this,arguments)}return(0,ne.default)(G,[{key:"render",value:function render(){var y=this.props,w=y.x,E=y.y,P=(0,me.default)(y,["x","y"]);return!w&&!E||P.translate||(P.translate=(w||0)+", "+(E||0)),Re("g",we(this,P))}}]),G}(Me);w.G=Fe;var je=function(y){(0,se.default)(Image,y);var w=_createSuper(Image);function Image(){return(0,oe.default)(this,Image),w.apply(this,arguments)}return(0,ne.default)(Image,[{key:"render",value:function render(){return Re("image",we(this))}}]),Image}(Me);w.Image=je;var Be=function(y){(0,se.default)(Line,y);var w=_createSuper(Line);function Line(){return(0,oe.default)(this,Line),w.apply(this,arguments)}return(0,ne.default)(Line,[{key:"render",value:function render(){return Re("line",we(this))}}]),Line}(Me);w.Line=Be;var Ve=function(y){(0,se.default)(LinearGradient,y);var w=_createSuper(LinearGradient);function LinearGradient(){return(0,oe.default)(this,LinearGradient),w.apply(this,arguments)}return(0,ne.default)(LinearGradient,[{key:"render",value:function render(){return Re("linearGradient",we(this))}}]),LinearGradient}(Me);w.LinearGradient=Ve;var Ne=function(y){(0,se.default)(Path,y);var w=_createSuper(Path);function Path(){return(0,oe.default)(this,Path),w.apply(this,arguments)}return(0,ne.default)(Path,[{key:"render",value:function render(){return Re("path",we(this))}}]),Path}(Me);w.Path=Ne;var Ue=function(y){(0,se.default)(Polygon,y);var w=_createSuper(Polygon);function Polygon(){return(0,oe.default)(this,Polygon),w.apply(this,arguments)}return(0,ne.default)(Polygon,[{key:"render",value:function render(){return Re("polygon",we(this))}}]),Polygon}(Me);w.Polygon=Ue;var We=function(y){(0,se.default)(Polyline,y);var w=_createSuper(Polyline);function Polyline(){return(0,oe.default)(this,Polyline),w.apply(this,arguments)}return(0,ne.default)(Polyline,[{key:"render",value:function render(){return Re("polyline",we(this))}}]),Polyline}(Me);w.Polyline=We;var $e=function(y){(0,se.default)(RadialGradient,y);var w=_createSuper(RadialGradient);function RadialGradient(){return(0,oe.default)(this,RadialGradient),w.apply(this,arguments)}return(0,ne.default)(RadialGradient,[{key:"render",value:function render(){return Re("radialGradient",we(this))}}]),RadialGradient}(Me);w.RadialGradient=$e;var Ye=function(y){(0,se.default)(Rect,y);var w=_createSuper(Rect);function Rect(){return(0,oe.default)(this,Rect),w.apply(this,arguments)}return(0,ne.default)(Rect,[{key:"render",value:function render(){return Re("rect",we(this))}}]),Rect}(Me);w.Rect=Ye;var Xe=function(y){(0,se.default)(Stop,y);var w=_createSuper(Stop);function Stop(){return(0,oe.default)(this,Stop),w.apply(this,arguments)}return(0,ne.default)(Stop,[{key:"render",value:function render(){return Re("stop",we(this))}}]),Stop}(Me);w.Stop=Xe;var et=function(y){(0,se.default)(Svg,y);var w=_createSuper(Svg);function Svg(){return(0,oe.default)(this,Svg),w.apply(this,arguments)}return(0,ne.default)(Svg,[{key:"render",value:function render(){return Re("svg",we(this))}}]),Svg}(Me);w.Svg=et;var tt=function(y){(0,se.default)(_Symbol,y);var w=_createSuper(_Symbol);function _Symbol(){return(0,oe.default)(this,_Symbol),w.apply(this,arguments)}return(0,ne.default)(_Symbol,[{key:"render",value:function render(){return Re("symbol",we(this))}}]),_Symbol}(Me);w.Symbol=tt;var nt=function(y){(0,se.default)(Text,y);var w=_createSuper(Text);function Text(){return(0,oe.default)(this,Text),w.apply(this,arguments)}return(0,ne.default)(Text,[{key:"render",value:function render(){return Re("text",we(this))}}]),Text}(Me);w.Text=nt;var rt=function(y){(0,se.default)(TSpan,y);var w=_createSuper(TSpan);function TSpan(){return(0,oe.default)(this,TSpan),w.apply(this,arguments)}return(0,ne.default)(TSpan,[{key:"render",value:function render(){return Re("tspan",we(this))}}]),TSpan}(Me);w.TSpan=rt;var ot=function(y){(0,se.default)(TextPath,y);var w=_createSuper(TextPath);function TextPath(){return(0,oe.default)(this,TextPath),w.apply(this,arguments)}return(0,ne.default)(TextPath,[{key:"render",value:function render(){return Re("textPath",we(this))}}]),TextPath}(Me);w.TextPath=ot;var it=function(y){(0,se.default)(Use,y);var w=_createSuper(Use);function Use(){return(0,oe.default)(this,Use),w.apply(this,arguments)}return(0,ne.default)(Use,[{key:"render",value:function render(){return Re("use",we(this))}}]),Use}(Me);w.Use=it;var st=function(y){(0,se.default)(Mask,y);var w=_createSuper(Mask);function Mask(){return(0,oe.default)(this,Mask),w.apply(this,arguments)}return(0,ne.default)(Mask,[{key:"render",value:function render(){return Re("mask",we(this))}}]),Mask}(Me);w.Mask=st;var dt=function(y){(0,se.default)(ForeignObject,y);var w=_createSuper(ForeignObject);function ForeignObject(){return(0,oe.default)(this,ForeignObject),w.apply(this,arguments)}return(0,ne.default)(ForeignObject,[{key:"render",value:function render(){return Re("foreignObject",we(this))}}]),ForeignObject}(Me);w.ForeignObject=dt;var ct=function(y){(0,se.default)(Marker,y);var w=_createSuper(Marker);function Marker(){return(0,oe.default)(this,Marker),w.apply(this,arguments)}return(0,ne.default)(Marker,[{key:"render",value:function render(){return Re("marker",we(this))}}]),Marker}(Me);w.Marker=ct;var lt=function(y){(0,se.default)(Pattern,y);var w=_createSuper(Pattern);function Pattern(){return(0,oe.default)(this,Pattern),w.apply(this,arguments)}return(0,ne.default)(Pattern,[{key:"render",value:function render(){return Re("pattern",we(this))}}]),Pattern}(Me);w.Pattern=lt;var ut=et;w.default=ut},function(y,w,E){var P=E(64),q=E(402).f,ne=E(158),oe=E(179),ie=E(404),se=E(638),le=E(642);y.exports=function(y,w){var E,pe,ge,me,he,ve=y.target,ye=y.global,_e=y.stat;if(E=ye?P:_e?P[ve]||ie(ve,{}):(P[ve]||{}).prototype)for(pe in w){if(me=w[pe],ge=y.noTargetGet?(he=q(E,pe))&&he.value:E[pe],!le(ye?pe:ve+(_e?".":"#")+pe,y.forced)&&void 0!==ge){if(typeof me==typeof ge)continue;se(me,ge)}(y.sham||ge&&ge.sham)&&ne(me,"sham",!0),oe(E,pe,me,y)}}},function(y,w,E){"use strict";function requireInRuntime(y,w){if(!(w in y))throw new Error("import or require() statements can be added only by editing a Markdown example file: "+w);return y[w]}E.r(w),E.d(w,"default",(function(){return requireInRuntime}))},function(y,w,E){"use strict";function evalInContext(y,w,E){return new Function("require","state","setState",y+"\n{"+E+"}").bind(null,w)}E.r(w),E.d(w,"default",(function(){return evalInContext}))},function(y,w,E){"use strict";E.d(w,"a",(function(){return useMergeRefs}));var P=E(0),q=E(292);function useMergeRefs(){for(var y=arguments.length,w=new Array(y),E=0;E1?arguments[1]:void 0)}})},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(171))},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withMessageContext=w.useMessageContext=w.MessageProvider=w.MessageContext=void 0;var ne=q(E(5)),oe=P(E(0)),ie=E(54),se=oe.default.createContext({});w.MessageContext=se;w.MessageProvider=function MessageProvider(y){var w=y.children,E=y.value;return oe.default.createElement(se.Provider,{value:E},w)};var le=function useMessageContext(){return(0,oe.useContext)(se)};w.useMessageContext=le;w.withMessageContext=function withMessageContext(y){var w=function WithMessageContextComponent(w){var E=le();return oe.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithMessageContext"+(0,ie.getDisplayName)(y),w}},function(y,w,E){(function(y){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var q=P(E(19)),ne=new(P(E(969)).default);y._frameTimestamp=null,y._updatePropsJS=function(y,w,E,P){if(P.current&&P.current._component){var ne=Object.keys(E).reduce((function(y,w){var P=E[w];return y["function"==typeof P?1:0][w]=P,y}),[{},{}]),oe=(0,q.default)(ne,1)[0];P.current._component.setNativeProps({style:oe})}},y._globalSetter=function(w,E){y[w]=E};var oe=ne;w.default=oe}).call(this,E(67))},function(y,w,E){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(y){console.error(y)}}(),y.exports=E(960)},function(y,w,E){"use strict";var P=E(41),q=E(18),ne=E(9),oe=E.n(ne),ie=E(185),se=E.n(ie);function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}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 le=function linear(y){return y};function createInterpolation(y){if(y.outputRange&&"string"==typeof y.outputRange[0])return function createInterpolationFromStringOutputRange(y){var w=y.outputRange;oe()(w.length>=2,"Bad output range"),function checkPattern(y){for(var w=y[0].replace(pe,""),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 P=y.easing||le,q="extend";void 0!==y.extrapolateLeft?q=y.extrapolateLeft:void 0!==y.extrapolate&&(q=y.extrapolate);var ne="extend";return void 0!==y.extrapolateRight?ne=y.extrapolateRight:void 0!==y.extrapolate&&(ne=y.extrapolate),function(y){oe()("number"==typeof y,"Cannot interpolation an input which is not a number");var ie=function findRange(y,w){var E;for(E=1;E=y);++E);return E-1}(y,E);return function interpolate(y,w,E,P,q,ne,oe,ie){var se=y;if(seE){if("identity"===ie)return se;"clamp"===ie&&(se=E)}if(P===q)return P;if(w===E)return y<=w?P:q;w===-1/0?se=-se:E===1/0?se-=w:se=(se-w)/(E-w);se=ne(se),P===-1/0?se=-se:q===1/0?se+=P:se=se*(q-P)+P;return se}(y,E[ie],E[ie+1],w[ie],w[ie+1],P,q,ne)}}function colorToRgba(y){var w=se()(y);return null===w?y:"rgba("+((4278190080&(w=w||0))>>>24)+", "+((16711680&w)>>>16)+", "+((65280&w)>>>8)+", "+(255&w)/255+")"}var pe=/[+-]?(?:\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 ge=function(y){function AnimatedInterpolation(w,E){var P;return(P=y.call(this)||this)._parent=w,P._config=E,P._interpolation=createInterpolation(E),P}!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(q.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}(P.a);ge.__createInterpolation=createInterpolation,w.a=ge},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return le}));var P=E(15),q=E(9),ne=E.n(q),oe=P.canUseDOM?window:{devicePixelRatio:void 0,innerHeight:void 0,innerWidth:void 0,screen:{height:void 0,width:void 0}},ie={},se={},le=function(){function Dimensions(){}return Dimensions.get=function get(y){return ne()(ie[y],"No dimension set for key "+y),ie[y]},Dimensions.set=function set(y){y&&(P.canUseDOM?ne()(!1,"Dimensions cannot be set in the browser"):(ie.screen=y.screen,ie.window=y.window))},Dimensions._update=function _update(){ie.window={fontScale:1,height:oe.innerHeight,scale:oe.devicePixelRatio||1,width:oe.innerWidth},ie.screen={fontScale:1,height:oe.screen.height,scale:oe.devicePixelRatio||1,width:oe.screen.width},Array.isArray(se.change)&&se.change.forEach((function(y){return y(ie)}))},Dimensions.addEventListener=function addEventListener(y,w){se[y]=se[y]||[],se[y].push(w)},Dimensions.removeEventListener=function removeEventListener(y,w){Array.isArray(se[y])&&(se[y]=se[y].filter((function(y){return y!==w})))},Dimensions}();le._update(),P.canUseDOM&&window.addEventListener("resize",le._update,!1)},function(y,w,E){"use strict";E.d(w,"b",(function(){return P})),E.d(w,"c",(function(){return q})),E.d(w,"d",(function(){return ne})),E.d(w,"a",(function(){return oe})),E.d(w,"e",(function(){return ie}));var P="react-native-stylesheet",q={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}},ne={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",ie='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif'},function(y,w,E){var P=E(114);y.exports=function(y){return Object(P(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}()||Function("return this")()}).call(this,E(67))},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 P=E(38),q=E(109),ne=[];function getAssetByID(y){return ne[y-1]}var oe=E(291),ie=/^data:/,se=function(){function ImageUriCache(){}return ImageUriCache.has=function has(y){var w=ImageUriCache._entries;return ie.test(y)||Boolean(w[y])},ImageUriCache.add=function add(y){var w=ImageUriCache._entries,E=Date.now();w[y]?(w[y].lastUsedTimestamp=E,w[y].refCount+=1):w[y]={lastUsedTimestamp:E,refCount:1}},ImageUriCache.remove=function remove(y){var w=ImageUriCache._entries;w[y]&&(w[y].refCount-=1),ImageUriCache._cleanUpIfNeeded()},ImageUriCache._cleanUpIfNeeded=function _cleanUpIfNeeded(){var y,w,E=ImageUriCache._entries,P=Object.keys(E);P.length+1>ImageUriCache._maximumEntries&&(P.forEach((function(P){var q=E[P];(!w||q.lastUsedTimestamp1){var q=he.default.get();P=E.scales.reduce((function(y,w){return Math.abs(w-q)=0||(q[E]=y[E]);return q}(y,["accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"]);var Ne=Object(Re.useState)((function(){var y=resolveAssetUri(Te);if(null!=y&&me.has(y))return ke;return"IDLE"})),Ue=Ne[0],We=Ne[1],$e=Object(Re.useState)({}),Ye=$e[0],Xe=$e[1],et=Object(Re.useContext)(ye.a),tt=Object(Re.useRef)(null),nt=Object(Re.useRef)(Se++),rt=Object(Re.useRef)(null),ot=Ue===ke||Ue===Me&&null==ne,it=function getFlatStyle(y,w,E){var P=_objectSpread({},ve.default.flatten(y)),q=P.filter,ne=P.resizeMode,ie=P.shadowOffset,se=P.tintColor,le=[],pe=null;if(q&&le.push(q),w&&le.push("blur("+w+"px)"),ie){var ge=Object(oe.a)(P);ge&&le.push("drop-shadow("+ge+")")}return se&&null!=E&&le.push("url(#tint-"+E+")"),le.length>0&&(pe=le.join(" ")),delete P.blurRadius,delete P.shadowColor,delete P.shadowOpacity,delete P.shadowOffset,delete P.shadowRadius,delete P.tintColor,delete P.overlayColor,delete P.resizeMode,[P,ne,pe,se]}(Be,q,nt.current),st=it[0],dt=it[1],ct=it[2],lt=it[3],ut=y.resizeMode||dt||"cover",pt=ot?Te:ne,gt=resolveAssetUri(pt),mt=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}}(pt),ht=gt?'url("'+gt+'")':null,ft=function getBackgroundSize(){if(null!=tt.current&&("center"===ut||"repeat"===ut)){var y=tt.current,w=y.naturalHeight,E=y.naturalWidth,P=Ye.height,q=Ye.width;if(w&&E&&P&&q){var ne=Math.min(1,q/E,P/w),oe=Math.ceil(ne*E),ie=Math.ceil(ne*w);return oe+"px "+ie+"px"}}}(),vt=gt?Object(P.default)("img",{alt:E||"",classList:[Oe.accessibilityImage],draggable:ie||!1,ref:tt,src:gt}):null;var yt=resolveAssetUri(Te);return Object(Re.useEffect)((function(){function abortPendingRequest(){null!=rt.current&&(me.abort(rt.current),rt.current=null)}return abortPendingRequest(),null!=yt&&(We(Me),he&&he(),rt.current=me.load(yt,(function load(y){We(ke),pe&&pe(y),ge&&ge()}),(function error(){We("ERRORED"),se&&se({nativeEvent:{error:"Failed to load resource "+yt+" (404)"}}),ge&&ge()}))),abortPendingRequest}),[yt,rt,We,se,pe,ge,he]),we.a.createElement(_e.default,_extends({},Ve,{accessibilityLabel:E,onLayout:function handleLayout(y){if("center"===ut||"repeat"===ut||le){var w=y.nativeEvent.layout;le&&le(y),Xe(w)}},pointerEvents:Ae,ref:w,style:[Fe.root,et&&Fe.inline,mt,st]}),we.a.createElement(_e.default,{style:[Fe.image,je[ut],{backgroundImage:ht,filter:ct},null!=ft&&{backgroundSize:ft}],suppressHydrationWarning:!0}),vt,function createTintColorSVG(y,w){return y&&null!=w?we.a.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},we.a.createElement("defs",null,we.a.createElement("filter",{id:"tint-"+w,suppressHydrationWarning:!0},we.a.createElement("feFlood",{floodColor:""+y,key:y}),we.a.createElement("feComposite",{in2:"SourceAlpha",operator:"atop"})))):null}(lt,nt.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 Oe=q.a.create({accessibilityImage:_objectSpread({},ve.default.absoluteFillObject,{height:"100%",opacity:0,width:"100%",zIndex:-1})}),Fe=ve.default.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},image:_objectSpread({},ve.default.absoluteFillObject,{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1})}),je=ve.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){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,E){var P=E(65);y.exports=function(y){if(!P(y))throw TypeError(String(y)+" is not an object");return y}},function(y,w,E){"use strict";var P=E(50),q=E(283);P({target:"RegExp",proto:!0,forced:/./.exec!==q},{exec:q})},function(y,w,E){"use strict";var P=E(59);w.a=function findNodeHandle(y){var w;try{w=Object(P.findDOMNode)(y)}catch(y){}return w}},function(y,w,E){"use strict";E.d(w,"a",(function(){return normalizeValueWithProperty}));var P=E(226),q=E(304),ne={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&&P.a[w]||"number"!=typeof y?null!=w&&ne[w]&&(E=Object(q.a)(y)):E=y+"px",E}},function(y,w,E){"use strict";function _defineProperties(y,w){for(var E=0;E"+q+""};y.exports=function(y,w){var E={};E[y]=w(createHTML),P(P.P+P.F*q((function(){var w=""[y]('"');return w!==w.toLowerCase()||w.split('"').length>3})),"String",E)}},function(y,w,E){"use strict";var P=E(533),q=Object.prototype.toString;function isArray(y){return"[object Array]"===q.call(y)}function isUndefined(y){return void 0===y}function isObject(y){return null!==y&&"object"==typeof y}function isPlainObject(y){if("[object Object]"!==q.call(y))return!1;var w=Object.getPrototypeOf(y);return null===w||w===Object.prototype}function isFunction(y){return"[object Function]"===q.call(y)}function forEach(y,w){if(null!=y)if("object"!=typeof y&&(y=[y]),isArray(y))for(var E=0,P=y.length;E>"),y})})),w}!function createAnimatedComponent_inheritsLoose(y,w){y.prototype=Object.create(w.prototype),y.prototype.constructor=y,y.__proto__=w}(AnimatedComponent,E);var P=AnimatedComponent.prototype;return P.componentWillUnmount=function componentWillUnmount(){this._propsAnimated&&this._propsAnimated.__detach(),this._detachNativeEvents()},P.UNSAFE_componentWillMount=function UNSAFE_componentWillMount(){this._attachProps(this.props)},P.componentDidMount=function componentDidMount(){this._invokeAnimatedPropsCallbackOnMount&&(this._invokeAnimatedPropsCallbackOnMount=!1,this._animatedPropsCallback()),this._propsAnimated.setNativeView(this._component),this._attachNativeEvents()},P._attachNativeEvents=function _attachNativeEvents(){var y=this,w=this._component&&this._component.getScrollableNode?this._component.getScrollableNode():this._component,E=function _loop(E){var P=y.props[E];P instanceof Te&&P.__isNative&&(P.__attach(w,E),y._eventDetachers.push((function(){return P.__detach(w,E)})))};for(var P in this.props)E(P)},P._detachNativeEvents=function _detachNativeEvents(){this._eventDetachers.forEach((function(y){return y()})),this._eventDetachers=[]},P._attachProps=function _attachProps(y){var w=this._propsAnimated;this._propsAnimated=new tt(y,this._animatedPropsCallback),w&&w.__detach()},P.UNSAFE_componentWillReceiveProps=function UNSAFE_componentWillReceiveProps(y){this._attachProps(y)},P.componentDidUpdate=function componentDidUpdate(y){this._component!==this._prevComponent&&this._propsAnimated.setNativeView(this._component),this._component===this._prevComponent&&y===this.props||(this._detachNativeEvents(),this._attachNativeEvents())},P.render=function render(){var E=this._propsAnimated.__getValue();return lt.a.createElement(y,_extends({},w,E,{ref:this._setComponentRef}))},AnimatedComponent}(lt.a.Component);return E.__skipSetNativeProps_FOR_TESTS_ONLY=!1,y.propTypes,lt.a.forwardRef((function AnimatedComponentWrapper(y,w){return lt.a.createElement(E,_extends({},y,null==w?null:{forwardedRef:w}))}))};function AnimatedImplementation_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}return E}function AnimatedImplementation_objectSpread(y){for(var w=1;w0&&this.props.stickySectionHeadersEnabled&&(P=this._listRef._getFrameMetricsApprox(w-y.itemIndex).length);var q=VirtualizedSectionList_objectSpread({},y,{viewOffset:P,index:w});this._listRef.scrollToIndex(q)},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=[],P=y.sections?y.sections.reduce((function(P,q){return E.push(P+w),P+y.getItemCount(q.data)+2}),0):0;return{childProps:VirtualizedSectionList_objectSpread({},y,{renderItem:this._renderItem,ItemSeparatorComponent:void 0,data:y.sections,getItemCount:function getItemCount(){return P},getItem:function getItem(w,E){return function _getItem(y,w,E){if(!w)return null;for(var P=E-1,q=0;q=q(le)+1))return-1===w?{section:se,key:pe+":header",index:null,header:!0,trailingSection:oe[ie+1]}:w===q(le)?{section:se,key:pe+":footer",index:null,header:!1,trailingSection:oe[ie+1]}:{section:se,key:pe+":"+(se.keyExtractor||ne)(P(le,w),w),index:w,leadingItem:P(le,w-1),leadingSection:oe[ie-1],trailingItem:P(le,w+1),trailingSection:oe[ie+1]};w-=q(le)+1}},w._getSeparatorComponent=function _getSeparatorComponent(y,w){if(!(w=w||this._subExtractor(y)))return null;var E=w.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,P=this.props.SectionSeparatorComponent,q=y===this.state.childProps.getItemCount()-1,ne=w.index===this.props.getItemCount(w.section.data)-1;return P&&ne?P:!E||ne||q?null:E},VirtualizedSectionList}(ct.PureComponent);kt.defaultProps=VirtualizedSectionList_objectSpread({},wt.a.defaultProps,{data:[]});var Mt=function(y){function ItemWithSeparator(){for(var w,E=arguments.length,P=new Array(E),q=0;qw&&(ne+=P&&E?ie.currentPageX:P&&!E?ie.currentPageY:!P&&E?ie.previousPageX:ie.previousPageY,oe=1);else for(var se=0;se=w){ne+=P&&E?le.currentPageX:P&&!E?le.currentPageY:!P&&E?le.previousPageX:le.previousPageY,oe++}}return oe>0?ne/oe:an.noCentroid},currentCentroidXOfTouchesChangedAfter:function currentCentroidXOfTouchesChangedAfter(y,w){return an.centroidDimension(y,w,!0,!0)},currentCentroidYOfTouchesChangedAfter:function currentCentroidYOfTouchesChangedAfter(y,w){return an.centroidDimension(y,w,!1,!0)},previousCentroidXOfTouchesChangedAfter:function previousCentroidXOfTouchesChangedAfter(y,w){return an.centroidDimension(y,w,!0,!1)},previousCentroidYOfTouchesChangedAfter:function previousCentroidYOfTouchesChangedAfter(y,w){return an.centroidDimension(y,w,!1,!1)},currentCentroidX:function currentCentroidX(y){return an.centroidDimension(y,0,!0,!0)},currentCentroidY:function currentCentroidY(y){return an.centroidDimension(y,0,!1,!0)},noCentroid:-1},rn=an,sn=rn.currentCentroidXOfTouchesChangedAfter,dn=rn.currentCentroidYOfTouchesChangedAfter,cn=rn.previousCentroidXOfTouchesChangedAfter,ln=rn.previousCentroidYOfTouchesChangedAfter,un=rn.currentCentroidX,pn=rn.currentCentroidY,gn={_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=sn(w,y._accountsForMovesUpTo),y.moveY=dn(w,y._accountsForMovesUpTo);var E=y._accountsForMovesUpTo,P=cn(w,E),q=sn(w,E),ne=ln(w,E),oe=dn(w,E),ie=y.dx+(q-P),se=y.dy+(oe-ne),le=w.mostRecentTimeStamp-y._accountsForMovesUpTo;y.vx=(ie-y.dx)/le,y.vy=(se-y.dy)/le,y.dx=ie,y.dy=se,y._accountsForMovesUpTo=w.mostRecentTimeStamp},create:function create(y){var w={handle:null,shouldCancelClick:!1,timeout: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&&gn._initializeGestureState(E),E.numberActiveTouches=w.touchHistory.numberActiveTouches,null!=y.onStartShouldSetPanResponderCapture&&y.onStartShouldSetPanResponderCapture(w,E)},onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(w){var P=w.touchHistory;return gn._updateGestureStateOnMove(E,P),!!y.onMoveShouldSetPanResponderCapture&&y.onMoveShouldSetPanResponderCapture(w,E)},onResponderGrant:function onResponderGrant(P){return w.handle||(w.handle=Zt.a.createInteractionHandle()),w.timeout&&function clearInteractionTimeout(y){clearTimeout(y.timeout)}(w),w.shouldCancelClick=!0,E.x0=un(P.touchHistory),E.y0=pn(P.touchHistory),E.dx=0,E.dy=0,y.onPanResponderGrant&&y.onPanResponderGrant(P,E),null==y.onShouldBlockNativeResponder||y.onShouldBlockNativeResponder(P,E)},onResponderReject:function onResponderReject(P){clearInteractionHandle(w,y.onPanResponderReject,P,E)},onResponderRelease:function onResponderRelease(P){clearInteractionHandle(w,y.onPanResponderRelease,P,E),setInteractionTimeout(w),gn._initializeGestureState(E)},onResponderStart:function onResponderStart(w){var P=w.touchHistory;E.numberActiveTouches=P.numberActiveTouches,y.onPanResponderStart&&y.onPanResponderStart(w,E)},onResponderMove:function onResponderMove(w){var P=w.touchHistory;gn._updateGestureStateOnMove(E,P),y.onPanResponderMove&&y.onPanResponderMove(w,E)},onResponderEnd:function onResponderEnd(P){var q=P.touchHistory;E.numberActiveTouches=q.numberActiveTouches,clearInteractionHandle(w,y.onPanResponderEnd,P,E)},onResponderTerminate:function onResponderTerminate(P){clearInteractionHandle(w,y.onPanResponderTerminate,P,E),setInteractionTimeout(w),gn._initializeGestureState(E)},onResponderTerminationRequest:function onResponderTerminationRequest(w){return null==y.onPanResponderTerminationRequest||y.onPanResponderTerminationRequest(w,E)},onClickCapture:function onClickCapture(y){!0===w.shouldCancelClick&&(y.stopPropagation(),y.preventDefault())}},getInteractionHandle:function getInteractionHandle(){return w.handle}}}};function clearInteractionHandle(y,w,E,P){y.handle&&(Zt.a.clearInteractionHandle(y.handle),y.handle=null),w&&w(E,P)}function setInteractionTimeout(y){y.timeout=setTimeout((function(){y.shouldCancelClick=!1}),250)}var mn=gn,hn=E(136);function _defineProperties(y,w){for(var E=0;E=0||(q[E]=y[E]);return q}(y,["color","disabled","onChange","onValueChange","style","value"]);var pe=ct.createElement(Ct.default,{style:[Mn.fakeControl,se&&Mn.fakeControlChecked,se&&E&&{backgroundColor:E,borderColor:E},q&&Mn.fakeControlDisabled,se&&q&&Mn.fakeControlCheckedAndDisabled]}),ge=Object(P.default)("input",{checked:se,disabled:q,onChange:function handleChange(y){var w=y.nativeEvent.target.checked;y.nativeEvent.value=w,ne&&ne(y),oe&&oe(w)},ref:w,style:[Mn.nativeControl,Mn.cursorInherit],type:"checkbox"});return ct.createElement(Ct.default,CheckBox_extends({},le,{style:[Mn.root,ie,q&&Mn.cursorDefault]}),pe,ge)}));kn.displayName="CheckBox";var Mn=Ye.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||(q[E]=y[E]);return q}(y,["behavior","contentContainerStyle","keyboardVerticalOffset"]));return lt.a.createElement(Ct.default,KeyboardAvoidingView_extends({onLayout:this.onLayout},w))},KeyboardAvoidingView}(lt.a.Component);var An=function ModalPortal(y){var w=y.children,E=Object(ct.useRef)(null);if(me.canUseDOM&&!E.current){var P=document.createElement("div");P&&document.body&&(document.body.appendChild(P),E.current=P)}return Object(ct.useEffect)((function(){if(me.canUseDOM)return function(){document.body&&E.current&&(document.body.removeChild(E.current),E.current=null)}}),[]),E.current&&me.canUseDOM?ie.a.createPortal(w,E.current):null};function getAnimationStyle(y,w){return"slide"===y?w?Tn:Ln:"fade"===y?w?In:On:w?Pn.container:Pn.hidden}var Pn=Ye.default.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"300ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:"300ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:[{translateY:"0%"}],animationKeyframes:{"0%":{transform:[{translateY:"100%"}]},"100%":{transform:[{translateY:"0%"}]}}},slideOut:{transform:[{translateY:"100%"}],animationKeyframes:{"0%":{transform:[{translateY:"0%"}]},"100%":{transform:[{translateY:"100%"}]}}},hidden:{opacity:0}}),Tn=[Pn.container,Pn.animatedIn,Pn.slideIn],Ln=[Pn.container,Pn.animatedOut,Pn.slideOut],In=[Pn.container,Pn.animatedIn,Pn.fadeIn],On=[Pn.container,Pn.animatedOut,Pn.fadeOut],Fn=function ModalAnimation(y){var w=y.animationType,E=y.children,q=y.onDismiss,ne=y.onShow,oe=y.visible,ie=Object(ct.useState)(!1),se=ie[0],le=ie[1],pe=Object(ct.useRef)(!1),ge=w&&"none"!==w,me=Object(ct.useCallback)((function(y){y&&y.currentTarget!==y.target||(oe?ne&&ne():(le(!1),q&&q()))}),[q,ne,oe]);return Object(ct.useEffect)((function(){oe&&le(!0),oe===pe.current||ge||me(),pe.current=oe}),[ge,oe,me]),se||oe?Object(P.default)("div",{style:se?getAnimationStyle(w,oe):Pn.hidden,onAnimationEnd:me,children:E}):null},zn=Object(ct.forwardRef)((function(y,w){var E=y.active,P=y.children,q=y.onRequestClose,ne=y.transparent;Object(ct.useEffect)((function(){if(me.canUseDOM){var y=function closeOnEscape(y){E&&"Escape"===y.key&&(y.stopPropagation(),q&&q())};return document.addEventListener("keyup",y,!1),function(){return document.removeEventListener("keyup",y,!1)}}}),[E,q]);var oe=Object(ct.useMemo)((function(){return[jn.modal,ne?jn.modalTransparent:jn.modalOpaque]}),[ne]);return lt.a.createElement(Ct.default,{accessibilityRole:E?"dialog":null,"aria-modal":!0,ref:w,style:oe},lt.a.createElement(Ct.default,{style:jn.container},P))})),jn=Ye.default.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}}),Bn=zn,Vn=function FocusBracket(){return Object(P.default)("div",{accessibilityRole:"none",tabIndex:0,style:Hn.focusBracket})};function attemptFocus(y){if(!me.canUseDOM)return!1;try{y.focus()}catch(y){}return document.activeElement===y}function focusFirstDescendant(y){for(var w=0;w=0;w--){var E=y.childNodes[w];if(attemptFocus(E)||focusLastDescendant(E))return!0}return!1}var Nn=function ModalFocusTrap(y){var w=y.active,E=y.children,P=Object(ct.useRef)(),q=Object(ct.useRef)({trapFocusInProgress:!1,lastFocusedElement:null});return Object(ct.useEffect)((function(){if(me.canUseDOM){var y=function trapFocus(){if(null!=P.current&&!q.current.trapFocusInProgress&&w){try{if(q.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!P.current.contains(document.activeElement)){var y=focusFirstDescendant(P.current);q.current.lastFocusedElement===document.activeElement&&(y=focusLastDescendant(P.current)),!y&&null!=P.current&&document.activeElement&&pe.a.focus(P.current)}}finally{q.current.trapFocusInProgress=!1}q.current.lastFocusedElement=document.activeElement}};return y(),document.addEventListener("focus",y,!0),function(){return document.removeEventListener("focus",y,!0)}}}),[w]),Object(ct.useEffect)((function(){if(me.canUseDOM){var y=document.activeElement;return function(){y&&document.contains(y)&&pe.a.focus(y)}}}),[]),lt.a.createElement(lt.a.Fragment,null,lt.a.createElement(Vn,null),lt.a.createElement(Ct.default,{ref:P},E),lt.a.createElement(Vn,null))},Hn=Ye.default.create({focusBracket:{outlineStyle:"none"}}),Un=0,Gn=[],qn={};function notifyActiveModalListeners(){if(0!==Gn.length){var y=Gn[Gn.length-1];Gn.forEach((function(w){w in qn&&qn[w](w===y)}))}}function removeActiveModal(y){y in qn&&(qn[y](!1),delete qn[y]);var w=Gn.indexOf(y);-1!==w&&(Gn.splice(w,1),notifyActiveModalListeners())}var Wn=Object(ct.forwardRef)((function(y,w){var E=y.animationType,P=y.children,q=y.onDismiss,ne=y.onRequestClose,oe=y.onShow,ie=y.transparent,se=y.visible,le=void 0===se||se,pe=Object(ct.useMemo)((function(){return Un++}),[]),ge=Object(ct.useState)(!1),me=ge[0],he=ge[1],ve=Object(ct.useCallback)((function(){removeActiveModal(pe),q&&q()}),[pe,q]),ye=Object(ct.useCallback)((function(){!function addActiveModal(y,w){removeActiveModal(y),Gn.push(y),qn[y]=w,notifyActiveModalListeners()}(pe,he),oe&&oe()}),[pe,oe]);return Object(ct.useEffect)((function(){return function(){return removeActiveModal(pe)}}),[pe]),lt.a.createElement(An,null,lt.a.createElement(Fn,{animationType:E,onDismiss:ve,onShow:ye,visible:le},lt.a.createElement(Nn,{active:me},lt.a.createElement(Bn,{active:me,onRequestClose:ne,ref:w,transparent:ie},P))))})),Kn=E(53),$n=E(139);function Picker_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}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 Yn=Object(ct.forwardRef)((function(y,w){var E=y.children,q=y.enabled,ne=y.onValueChange,oe=y.selectedValue,ie=y.style,se=y.testID,le=(y.itemStyle,y.mode,y.prompt,function Picker_objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,P,q={},ne=Object.keys(y);for(P=0;P=0||(q[E]=y[E]);return q}(y,["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"])),pe=Object(ct.useRef)(null);var ge=function Picker_objectSpread(y){for(var w=1;w1&&(sa=!1),void(na!==ga&&(ia=ga,na=ga,callListeners()));w!==ma&&w!==va&&w!==Aa&&w!==wa&&w!==Pa&&w!==Ia||(sa=!1)}}function callListeners(){var y={activeModality:na,modality:ia};da.forEach((function(w){w(y)}))}me.canUseDOM&&(Na(window,(function onBlurWindow(){ea=ia,ta=na,na=la,ia=la,callListeners(),sa=!1})),Ua(window,(function onFocusWindow(){restoreModality()})),Wa(document,(function onKeyDown(y){y.metaKey||y.altKey||y.ctrlKey||ia!==la&&(ia=la,na=la,callListeners())})),Ka(document,onPointerish),$a(document,onPointerish),qa(document,(function onVisibilityChange(){"hidden"!==document.visibilityState&&restoreModality()})),Ya(document,onPointerish),Ja(document,onPointerish),Qa(document,onPointerish),Za(document,onPointerish),nr(document,onPointerish),ar(document,onPointerish),rr(document,onPointerish),tr(document,onPointerish),er(document,onPointerish));var or=E(124),ir=E(227);function useEvent(y,w){var E=Object(ir.a)((function(){return new Map})),P=Object(ir.a)((function(){var P=createEventHandle(y,w);return function(y,w){var q=E.get(y);null!=q&&q(),null==w&&E.delete(y);var ne=P(y,w);return E.set(y,ne),ne}}));return Object(or.a)((function(){return function(){null!=P&&(E.forEach((function(y){y()})),E.clear()),P=null}}),[P]),P}var sr={},dr={passive:!0},cr="react-gui:hover:lock",lr="react-gui:hover:unlock";function dispatchCustomEvent(y,w,E){var P=document.createEvent("CustomEvent"),q=E||sr,ne=q.bubbles,oe=void 0===ne||ne,ie=q.cancelable,se=void 0===ie||ie,le=q.detail;P.initCustomEvent(w,oe,se,le),y.dispatchEvent(P)}function getPointerType(y){var w=y.pointerType;return null!=w?w:function getModality(){return ia}()}function useHover(y,w){var E=w.contain,P=w.disabled,q=w.onHoverStart,ne=w.onHoverChange,oe=w.onHoverUpdate,ie=w.onHoverEnd,se=function supportsPointerEvent(){return!("undefined"==typeof window||null==window.PointerEvent)}(),le=useEvent(se?"pointermove":"mousemove",dr),pe=useEvent(se?"pointerenter":"mouseenter",dr),ge=useEvent(se?"pointerleave":"mouseleave",dr),me=useEvent(cr,dr),he=useEvent(lr,dr);Object(or.a)((function(){var w=y.current;if(null!==w){var se=function hoverEnd(y){null!=ie&&ie(y),null!=ne&&ne(!1),le(w,null),ge(w,null)},ve=function leaveListener(w){var P=y.current;null!=P&&"touch"!==getPointerType(w)&&(E&&dispatchCustomEvent(P,lr),se(w))},ye=function moveListener(y){"touch"!==getPointerType(y)&&null!=oe&&(null==y.x&&(y.x=y.clientX),null==y.y&&(y.y=y.clientY),oe(y))},_e=function hoverStart(y){null!=q&&q(y),null!=ne&&ne(!0),null!=oe&&le(w,P?null:ye),ge(w,P?null:ve)};pe(w,P?null:function enterListener(w){var q=y.current;if(null!=q&&"touch"!==getPointerType(w)){E&&dispatchCustomEvent(q,cr),_e(w);me(q,P?null:function lockListener(y){y.target!==q&&se(w)}),he(q,P?null:function unlockListener(y){y.target!==q&&_e(w)})}})}}),[pe,le,ge,me,he,E,P,q,ne,oe,ie,y])}var ur=E(140);function Pressable_extends(){return(Pressable_extends=Object.assign||function(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["accessible","children","delayLongPress","delayPressIn","delayPressOut","disabled","focusable","onBlur","onFocus","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","testOnly_pressed"]),ke=useForceableState(!1),Me=ke[0],Se=ke[1],Ae=useForceableState(!1),Te=Ae[0],Oe=Ae[1],Fe=useForceableState(!0===Re),je=Fe[0],Be=Fe[1],Ve=Object(ct.useRef)(null),Ne=Object(Kn.a)(w,Ve),Ue=Object(ct.useMemo)((function(){return{delayLongPress:q,delayPressStart:ne,delayPressEnd:oe,disabled:ie,onLongPress:ge,onPress:me,onPressChange:Be,onPressStart:ve,onPressMove:he,onPressEnd:ye}}),[q,ne,oe,ie,ge,me,ve,he,ye,Be]),We=Object(ur.a)(Ve,Ue);useHover(Ve,{contain:!0,disabled:ie,onHoverChange:Se});var $e=function Pressable_objectSpread(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["color","indeterminate","progress","trackColor","style"]),me=100*ie,he=Object(ct.useRef)(null);return Object(ct.useEffect)((function(){var y=ne?"25%":me+"%";null!=he.current&&he.current.setNativeProps({style:{width:y}})}),[ne,me,he]),lt.a.createElement(Ct.default,ProgressBar_extends({},ge,{accessibilityRole:"progressbar",accessibilityValue:{max:100,min:0,now:ne?null:me},ref:w,style:[fr.track,pe,{backgroundColor:le}]}),lt.a.createElement(Ct.default,{ref:he,style:[fr.progress,ne&&fr.animation,{backgroundColor:P}]}))}));hr.displayName="ProgressBar";var fr=Ye.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"}}),vr=hr,yr=E(218),br=E(208),_r=E(343),Rr=E(194);function Switch_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}return E}function Switch_objectSpread(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"]),Me=Object(ct.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)":Cr;null!=Me.current&&(Me.current.style.boxShadow=w)}var Se=Ye.default.flatten(me),Ae=Se.height,Te=Se.width,Oe=Ae||20,Fe=Object(Rr.a)(Oe,2),je=Te>Fe?Te:Fe,Be=Object(Rr.a)(Oe,.5),Ve=!0===we?null!=_e&&"object"==typeof _e?_e.true:ie:null!=_e&&"object"==typeof _e?_e.false:_e,Ne=we?ne:ve,Ue=Oe,We=Ue,$e=[kr.root,me,le&&kr.cursorDefault,{height:Oe,width:je}],Xe=[kr.track,{backgroundColor:le?"#D5D5D5":Ve,borderRadius:Be}],et=[kr.thumb,we&&kr.thumbActive,{backgroundColor:le?"#BDBDBD":Ne,height:Ue,marginStart:we?Object(Rr.a)(We,-1):0,width:We}],tt=Object(P.default)("input",{accessibilityLabel:E,checked:we,disabled:le,onBlur:handleFocusState,onChange:function handleChange(y){null!=pe&&pe(y.nativeEvent.target.checked)},onFocus:handleFocusState,ref:w,style:[kr.nativeControl,kr.cursorInherit],type:"checkbox",role:"switch"});return ct.createElement(Ct.default,Switch_extends({},ke,{style:$e}),ct.createElement(Ct.default,{style:Xe}),ct.createElement(Ct.default,{ref:Me,style:et}),tt)}));wr.displayName="Switch";var kr=Ye.default.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:Switch_objectSpread({},Ye.default.absoluteFillObject,{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{alignSelf:"flex-start",borderRadius:"100%",boxShadow:Cr,start:"0%",transform:[{translateZ:0}],transitionDuration:"0.1s"},thumbActive:{start:"100%"},nativeControl:Switch_objectSpread({},Ye.default.absoluteFillObject,{height:"100%",margin:0,opacity:0,padding:0,width:"100%"})}),Mr=wr,Sr=E(357),Er=E(422);function TouchableHighlight_extends(){return(TouchableHighlight_extends=Object.assign||function(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["accessible","activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"]),Se=Object(ct.useRef)(null),Ae=Object(Kn.a)(w,Se),Te=Object(ct.useState)(!0===we?createExtraStyles(P,ke):null),Oe=Te[0],Fe=Te[1],je=Object(ct.useCallback)((function(){hasPressHandler(y)&&(Fe(createExtraStyles(P,ke)),null!=ye&&ye())}),[P,ye,y,ke]),Be=Object(ct.useCallback)((function(){!0!==we&&hasPressHandler(y)&&(Fe(null),null!=pe&&pe())}),[pe,y,we]),Ve=Object(ct.useMemo)((function(){return{cancelable:!_e,disabled:se,delayLongPress:ie,delayPressStart:ne,delayPressEnd:oe,onLongPress:ge,onPress:me,onPressStart:function onPressStart(y){je(),null!=he&&he(y)},onPressEnd:function onPressEnd(y){Be(),null!=ve&&ve(y)}}}),[ie,ne,oe,se,ge,me,he,ve,_e,je,Be]),Ne=Object(ur.a)(Se,Ve),Ue=ct.Children.only(q);return ct.createElement(Ct.default,TouchableHighlight_extends({},Me,Ne,{accessibilityState:TouchableHighlight_objectSpread({disabled:se},y.accessibilityState),accessible:!1!==E,focusable:!1!==le&&void 0!==me,ref:Ae,style:[Dr.root,Re,!se&&Dr.actionable,Oe&&Oe.underlay]}),ct.cloneElement(Ue,{style:Ye.default.compose(Ue.props.style,Oe&&Oe.child)}))})));Ar.displayName="TouchableHighlight";var Pr=Ar;var Tr=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 lt.a.createElement(Ct.default,{style:[Lr,this.props.style]},this.props.children)},UnimplementedView}(lt.a.Component),Lr={},Ir=Tr,Or=Ir,Fr=E(138);function TouchableWithoutFeedback_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}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 zr={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 jr=ct.memo(ct.forwardRef((function TouchableWithoutFeedback(y,w){var E=y.accessible,P=y.delayPressIn,q=y.delayPressOut,ne=y.delayLongPress,oe=y.disabled,ie=y.focusable,se=y.onLongPress,le=y.onPress,pe=y.onPressIn,ge=y.onPressOut,me=y.rejectResponderTermination,he=Object(ct.useRef)(null),ve=Object(ct.useMemo)((function(){return{cancelable:!me,disabled:oe,delayLongPress:ne,delayPressStart:P,delayPressEnd:q,onLongPress:se,onPress:le,onPressStart:pe,onPressEnd:ge}}),[oe,P,q,ne,se,le,pe,ge,me]),ye=Object(ur.a)(he,ve),_e=ct.Children.only(y.children),Re=[_e.props.children],we=function pickProps(y){return Object(Fr.a)(y,zr)}(y);we.accessible=!1!==E,we.accessibilityState=function TouchableWithoutFeedback_objectSpread(y){for(var w=1;w=0||Object.prototype.propertyIsEnumerable.call(y,E)&&(ne[E]=y[E])}return ne}},function(y,w){var E=Array.isArray;y.exports=E},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withMessageInputContext=w.useMessageInputContext=w.MessageInputProvider=w.MessageInputContext=void 0;var ne=q(E(245)),oe=q(E(5)),ie=q(E(47)),se=q(E(48)),le=q(E(34)),pe=q(E(19)),ge=P(E(0)),me=q(E(116)),he=q(E(1014)),ve=E(1024),ye=E(529),_e=E(541),Re=E(542),we=E(117),ke=E(30),Me=E(95),Se=E(108),Ae=E(54),Te=E(27),Oe=E(84);function _createForOfIteratorHelperLoose(y,w){var E;if("undefined"==typeof Symbol||null==y[Symbol.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 P=0;return function(){return P>=y.length?{done:!0}:{done:!1,value:y[P++]}}}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[Symbol.iterator]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E=E.maxNumberOfFiles)){w.next=2;break}return w.abrupt("return");case 2:return w.next=4,(0,Oe.pickDocument)({maxNumberOfFiles:E.maxNumberOfFiles-Mt});case 4:!(y=w.sent).cancelled&&y.docs&&y.docs.forEach((function(y){var w=(0,ve.lookup)(y.name);w&&null!=w&&w.startsWith("image/")?$t(y):Kt(y)}));case 6:case"end":return w.stop()}}),_callee)})));return function pickFile(){return y.apply(this,arguments)}}(),Nt=function resetInput(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];St([]),pt(!1),Et([]),Dt([]),At((function(w){return w-((null==y?void 0:y.length)||0)})),Tt("")},Ht=function(){var y=(0,se.default)(ie.default.mark((function _callee2(){var y,w,P,q,se,pe,ge,me,ve,_e,we,ke;return ie.default.wrap((function _callee2$(ie){for(;;)switch(ie.prev=ie.next){case 0:if(!Xe.current){ie.next=2;break}return ie.abrupt("return");case 2:return Xe.current=!0,y=We&&ut?"/giphy "+It:It,ie.next=6,Tt("");case 6:Ye.current&&Ye.current.clear(),w=[],P=function _loop(P){if(!P||P.state===Te.FileState.UPLOAD_FAILED)return"continue";if(P.state===Te.FileState.UPLOADING){if(!E.sendImageAsync)return Xe.current=!1,{v:Tt(y)};rt((function(y){return[].concat((0,le.default)(y),[P.id])}))}P.state!==Te.FileState.UPLOADED&&P.state!==Te.FileState.FINISHED||w.push({fallback:P.file.name,image_url:P.url,type:"image"})},q=_createForOfIteratorHelperLoose(wt);case 10:if((se=q()).done){ie.next=19;break}if(pe=se.value,"continue"!==(ge=P(pe))){ie.next=15;break}return ie.abrupt("continue",17);case 15:if("object"!==(0,ne.default)(ge)){ie.next=17;break}return ie.abrupt("return",ge.v);case 17:ie.next=10;break;case 19:me=_createForOfIteratorHelperLoose(Ct);case 20:if((ve=me()).done){ie.next=30;break}if((_e=ve.value)&&_e.state!==Te.FileState.UPLOAD_FAILED){ie.next=24;break}return ie.abrupt("continue",28);case 24:if(_e.state!==Te.FileState.UPLOADING){ie.next=27;break}return Xe.current=!1,ie.abrupt("return");case 27:_e.state!==Te.FileState.UPLOADED&&_e.state!==Te.FileState.FINISHED||w.push({asset_url:_e.url,file_size:_e.file.size,mime_type:_e.file.type,title:_e.file.name,type:"file"});case 28:ie.next=20;break;case 30:if(y||0!==w.length){ie.next=33;break}return Xe.current=!1,ie.abrupt("return");case 33:if(E.editing&&!(0,Re.isEditingBoolean)(E.editing))we=(0,oe.default)({},E.editing,{attachments:w,mentioned_users:kt,quoted_message:void 0,text:y}),E.clearEditingState(),ke=E.editMessage(we).then(E.clearEditingState),Nt(w),(0,ye.logChatPromiseExecution)(ke,"update message"),Xe.current=!1;else try{E.sendMessage({attachments:w,mentioned_users:(0,he.default)(kt),parent_id:null==$e?void 0:$e.id,quoted_message_id:"boolean"==typeof E.quotedMessage?void 0:E.quotedMessage.id,show_in_channel:ht||void 0,text:y}).then(E.clearQuotedMessageState),Xe.current=!1,Nt(w)}catch(w){Xe.current=!1,Tt(y.slice(We&&ut?7:0)),console.log("Failed to send message")}case 34:case"end":return ie.stop()}}),_callee2)})));return function sendMessage(){return y.apply(this,arguments)}}(),Ut=Ue?E.autoCompleteTriggerSettings?E.autoCompleteTriggerSettings({channel:Ue,onMentionSelectItem:Bt}):(0,Te.ACITriggerSettings)({channel:Ue,onMentionSelectItem:Bt}):{},Gt=function(){var y=(0,se.default)(ie.default.mark((function _callee3(){return ie.default.wrap((function _callee3$(y){for(;;)switch(y.prev=y.next){case 0:if(y.prev=0,(0,Re.isEditingBoolean)(E.editing)){y.next=4;break}return y.next=4,Ve.updateMessage((0,oe.default)({},E.editing,{quoted_message:void 0,text:We&&ut?"/giphy "+It:It}));case 4:Nt(),E.clearEditingState(),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()}}),_callee3,null,[[0,8]])})));return function updateMessage(){return y.apply(this,arguments)}}(),qt=function(){var y=(0,se.default)(ie.default.mark((function _callee4(y){var w,P,q,ne;return ie.default.wrap((function _callee4$(ie){for(;;)switch(ie.prev=ie.next){case 0:if(w=y.newFile){ie.next=3;break}return ie.abrupt("return");case 3:return P=w.file,q=w.id,ie.next=6,St((function(y){return y.map((function(y){return y.id===q?(0,oe.default)({},y,{state:Te.FileState.UPLOADING}):y}))}));case 6:if(ne={},ie.prev=7,!E.doDocUploadRequest){ie.next=14;break}return ie.next=11,E.doDocUploadRequest(P,Ue);case 11:ne=ie.sent,ie.next=18;break;case 14:if(!Ue||!P.uri){ie.next=18;break}return ie.next=17,Ue.sendFile(P.uri,P.name,P.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?(St((function(y){return y.map((function(y){return y.id===q?(0,oe.default)({},y,{state:Te.FileState.UPLOAD_FAILED}):y}))})),At((function(y){return y-1}))):At((function(y){return y-1})),ie.abrupt("return");case 25:St((function(y){return y.map((function(y){return y.id===q?(0,oe.default)({},y,{state:Te.FileState.UPLOADED,url:ne.file}):y}))}));case 26:case"end":return ie.stop()}}),_callee4,null,[[7,20]])})));return function uploadFile(w){return y.apply(this,arguments)}}(),Wt=function(){var y=(0,se.default)(ie.default.mark((function _callee5(y){var w,P,q,ne,se,le,pe,ge,me,he,ye;return ie.default.wrap((function _callee5$(ie){for(;;)switch(ie.prev=ie.next){case 0:if(w=y.newImage,q=(P=w||{}).file,ne=P.id,q){ie.next=4;break}return ie.abrupt("return");case 4:if(se={},ie.prev=5,!q.id){ie.next=12;break}return ie.next=9,(0,Oe.getLocalAssetUri)(q.id);case 9:ie.t0=ie.sent,ie.next=20;break;case 12:if(null==(le=q.uri)||!le.match(/assets-library/)){ie.next=18;break}return ie.next=15,(0,Oe.getLocalAssetUri)(q.uri);case 15:ie.t1=ie.sent,ie.next=19;break;case 18:ie.t1=q.uri;case 19:ie.t0=ie.t1;case 20:return pe=ie.t0,ge=q.name||pe||"",ie.next=24,"camera"!==q.source&&q.height&&q.width&&"number"==typeof E.compressImageQuality&&1!==E.compressImageQuality?(0,Oe.compressImage)({compressImageQuality:E.compressImageQuality,height:q.height,uri:ge,width:q.width}):ge;case 24:if(me=ie.sent,he=ge.replace(/^(file:\/\/|content:\/\/|assets-library:\/\/)/,""),ye=(0,ve.lookup)(he)||"multipart/form-data",!E.doImageUploadRequest){ie.next=33;break}return ie.next=30,E.doImageUploadRequest(q,Ue);case 30:se=ie.sent,ie.next=41;break;case 33:if(!me||!Ue){ie.next=41;break}if(!E.sendImageAsync){ie.next=38;break}Ue.sendImage(me,void 0,ye).then((function(y){nt.includes(ne)?dt((function(w){return w[ne]=(0,oe.default)({},w[ne],{state:Te.FileState.UPLOADED,url:y.file}),w})):Et((function(w){return w.map((function(w){return w.id===ne?(0,oe.default)({},w,{state:Te.FileState.UPLOADED,url:y.file}):w}))}))})),ie.next=41;break;case 38:return ie.next=40,Ue.sendImage(me,void 0,ye);case 40:se=ie.sent;case 41:Object.keys(se).length&&Et((function(y){return y.map((function(y){return y.id===ne?(0,oe.default)({},y,{state:Te.FileState.UPLOADED,url:se.file}):y}))})),ie.next=50;break;case 44:return ie.prev=44,ie.t2=ie.catch(5),console.warn(ie.t2),w&&Et((function(y){return y.map((function(y){return y.id===ne?(0,oe.default)({},y,{state:Te.FileState.UPLOAD_FAILED}):y}))})),At((function(y){return y-1})),ie.abrupt("return");case 50:case"end":return ie.stop()}}),_callee5,null,[[5,44]])})));return function uploadImage(w){return y.apply(this,arguments)}}(),Kt=function(){var y=(0,se.default)(ie.default.mark((function _callee6(y){var w,E,P;return ie.default.wrap((function _callee6$(q){for(;;)switch(q.prev=q.next){case 0:return w=(0,Te.generateRandomId)(),E=(0,ve.lookup)(y.name),P={file:(0,oe.default)({},y,{type:E||(null==y?void 0:y.type)}),id:w,state:Te.FileState.UPLOADING},q.next=5,Promise.all([St((function(y){return y.concat([P])})),At((function(y){return y+1}))]);case 5:qt({newFile:P});case 6:case"end":return q.stop()}}),_callee6)})));return function uploadNewFile(w){return y.apply(this,arguments)}}(),$t=function(){var y=(0,se.default)(ie.default.mark((function _callee7(y){var w,E;return ie.default.wrap((function _callee7$(P){for(;;)switch(P.prev=P.next){case 0:return w=(0,Te.generateRandomId)(),E={file:y,id:w,state:Te.FileState.UPLOADING},P.next=4,Promise.all([Et((function(y){return y.concat([E])})),At((function(y){return y+1}))]);case 4:Wt({newImage:E});case 5:case"end":return P.stop()}}),_callee7)})));return function uploadNewImage(w){return y.apply(this,arguments)}}(),Yt=(0,_e.useCreateMessageInputContext)((0,oe.default)({appendText:Ft,asyncIds:nt,asyncUploads:st,closeAttachmentPicker:jt,fileUploads:Ct,giphyActive:ut,imageUploads:wt,inputBoxRef:Ye,isValidMessage:function isValidMessage(){if(It&&It.trim())return!0;for(var y,w=_createForOfIteratorHelperLoose(wt);!(y=w()).done;){var E=y.value;if(E&&E.state!==Te.FileState.UPLOAD_FAILED)return E.state!==Te.FileState.UPLOADING}for(var P,q=_createForOfIteratorHelperLoose(Ct);!(P=q()).done;){var ne=P.value;if(ne&&ne.state!==Te.FileState.UPLOAD_FAILED)return ne.state!==Te.FileState.UPLOADING}return!1},mentionedUsers:kt,numberOfUploads:Mt,onChange:function onChange(y){Xe.current||(Tt(y),y&&Ue&&(0,ye.logChatPromiseExecution)(Ue.keystroke(),"start typing event"),E.onChangeText&&E.onChangeText(y))},onSelectItem:Bt,openAttachmentPicker:zt,openCommandsPicker:function openCommandsPicker(){Ft("/"),Ye.current&&Ye.current.focus()},openFilePicker:Vt,openMentionsPicker:function openMentionsPicker(){Ft("@"),Ye.current&&Ye.current.focus()},pickFile:Vt,removeFile:function removeFile(y){Ct.some((function(w){return w.id===y}))&&(St((function(w){return w.filter((function(w){return w.id!==y}))})),At((function(y){return y-1})))},removeImage:function removeImage(y){wt.some((function(w){return w.id===y}))&&(Et((function(w){return w.filter((function(w){return w.id!==y}))})),At((function(y){return y-1})))},resetInput:Nt,selectedPicker:je,sending:Xe,sendMessageAsync:function sendMessageAsync(y){var w=st[y];if(w&&w.state!==Te.FileState.UPLOAD_FAILED&&(w.state===Te.FileState.UPLOADED||w.state===Te.FileState.FINISHED)){var P=[{image_url:w.url,type:"image"}];try{E.sendMessage({attachments:P,mentioned_users:[],parent_id:null==$e?void 0:$e.id,quoted_message_id:"boolean"==typeof E.quotedMessage?void 0:E.quotedMessage.id,show_in_channel:ht||void 0,text:""}),rt((function(w){return w.splice(w.indexOf(y),1)})),dt((function(w){return delete w[y],w})),At((function(y){return y-1}))}catch(y){console.log("Failed")}}},sendThreadMessageInChannel:ht,setAsyncIds:rt,setAsyncUploads:dt,setFileUploads:St,setGiphyActive:pt,setImageUploads:Et,setInputBoxRef:function setInputBoxRef(y){Ye.current=y,E.setInputRef&&E.setInputRef(y)},setMentionedUsers:Dt,setNumberOfUploads:At,setSendThreadMessageInChannel:ft,setShowMoreOptions:Pt,setText:Tt,showMoreOptions:Lt,text:It,thread:$e,toggleAttachmentPicker:function toggleAttachmentPicker(){je?jt():zt()},triggerSettings:Ut,updateMessage:Gt,uploadFile:qt,uploadImage:Wt,uploadNewFile:Kt,uploadNewImage:$t},E,{sendMessage:Ht}));return ge.default.createElement(Fe.Provider,{value:Yt},w)};var je=function useMessageInputContext(){return(0,ge.useContext)(Fe)};w.useMessageInputContext=je;w.withMessageInputContext=function withMessageInputContext(y){var w=function WithMessageInputContextComponent(w){var E=je();return ge.default.createElement(y,(0,oe.default)({},w,E))};return w.displayName="WithMessageInputContext"+(0,Ae.getDisplayName)(y),w}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withChannelContext=w.useChannelContext=w.ChannelProvider=w.ChannelContext=void 0;var ne=q(E(5)),oe=P(E(0)),ie=E(54),se=oe.default.createContext({});w.ChannelContext=se;w.ChannelProvider=function ChannelProvider(y){var w=y.children,E=y.value;return oe.default.createElement(se.Provider,{value:E},w)};var le=function useChannelContext(){return(0,oe.useContext)(se)};w.useChannelContext=le;w.withChannelContext=function withChannelContext(y){var w=function WithChannelContextComponent(w){var E=le();return oe.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithChannelContext"+(0,ie.getDisplayName)(y),w}},function(y,w,E){"use strict";var P=E(50),q=E(35),ne=E(412),oe=E(65),ie=E(132),se=E(181),le=E(1132),pe=E(646),ge=E(413),me=E(77),he=E(647),ve=me("isConcatSpreadable"),ye=9007199254740991,_e="Maximum allowed index exceeded",Re=he>=51||!q((function(){var y=[];return y[ve]=!1,y.concat()[0]!==y})),we=ge("concat"),isConcatSpreadable=function(y){if(!oe(y))return!1;var w=y[ve];return void 0!==w?!!w:ne(y)};P({target:"Array",proto:!0,forced:!Re||!we},{concat:function concat(y){var w,E,P,q,ne,oe=ie(this),ge=pe(oe,0),me=0;for(w=-1,P=arguments.length;wye)throw TypeError(_e);for(E=0;E=ye)throw TypeError(_e);le(ge,me++,ne)}return ge.length=me,ge}})},function(y,w,E){var P=E(414),q=E(179),ne=E(1135);P||q(Object.prototype,"toString",ne,{unsafe:!0})},function(y,w,E){"use strict";var P=E(50),q=E(641).indexOf,ne=E(288),oe=E(215),ie=[].indexOf,se=!!ie&&1/[1].indexOf(1,-0)<0,le=ne("indexOf"),pe=oe("indexOf",{ACCESSORS:!0,1:0});P({target:"Array",proto:!0,forced:se||!le||!pe},{indexOf:function indexOf(y){return se?ie.apply(this,arguments)||0:q(this,y,arguments.length>1?arguments[1]:void 0)}})},function(y,w,E){"use strict";E.d(w,"a",(function(){return pe}));E(98),E(31),E(121),E(87);var P=E(0),q=E.n(P),ne=E(2),oe=E.n(ne),ie=E(28),se=E(12);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["classes","semantic","size","color","underlined","children"]),ge=P||"span",me=Object(ie.a)(E.text,E[ne+"Size"],E[oe+"Color"],((w={})[E[ge]]=!!P,w[E.isUnderlined]=se,w));return q.a.createElement(ge,_extends({},pe,{className:me}),le)};le.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},le.defaultProps={size:"inherit",color:"base",underlined:!1};var pe=Object(se.default)((function styles(y){var w=y.fontFamily,E=y.fontSize,P=y.color;return{text:{fontFamily:w.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:E.small},baseSize:{fontSize:E.base},textSize:{fontSize:E.text},baseColor:{color:P.base},lightColor:{color:P.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",P.lightest]]}}}))(le)},function(y,w,E){var P=E(101);y.exports=function(y,w,E){if(P(y),void 0===w)return y;switch(E){case 1:return function(E){return y.call(w,E)};case 2:return function(E,P){return y.call(w,E,P)};case 3:return function(E,P,q){return y.call(w,E,P,q)}}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,P=Math.floor;y.exports=function(y){return isNaN(y=+y)?0:(y>0?P:E)(y)}},function(y,w,E){var P=E(198),q=E(143),ne=E(81),oe=E(127),ie=E(79),se=E(434),le=Object.getOwnPropertyDescriptor;w.f=E(45)?le:function getOwnPropertyDescriptor(y,w){if(y=ne(y),w=oe(w,!0),se)try{return le(y,w)}catch(y){}if(ie(y,w))return q(!P.f.call(y,w),y[w])}},function(y,w,E){var P=E(10),q=E(43),ne=E(23);y.exports=function(y,w){var E=(q.Object||{})[y]||Object[y],oe={};oe[y]=w(E),P(P.S+P.F*ne((function(){E(1)})),"Object",oe)}},function(y,w,E){var P=E(100),q=E(197),ne=E(63),oe=E(39),ie=E(450);y.exports=function(y,w){var E=1==y,se=2==y,le=3==y,pe=4==y,ge=6==y,me=5==y||ge,he=w||ie;return function(w,ie,ve){for(var ye,_e,Re=ne(w),we=q(Re),ke=P(ie,ve,3),Me=oe(we.length),Se=0,Ae=E?he(w,Me):se?he(w,0):void 0;Me>Se;Se++)if((me||Se in we)&&(_e=ke(ye=we[Se],Se,Re),y))if(E)Ae[Se]=_e;else if(_e)switch(y){case 3:return!0;case 5:return ye;case 6:return Se;case 2:Ae.push(ye)}else if(pe)return!1;return ge?-1:le||pe?pe:Ae}}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withOverlayContext=w.useOverlayContext=w.OverlayContext=void 0;var ne=q(E(5)),oe=P(E(0)),ie=E(54),se=oe.default.createContext({});w.OverlayContext=se;var le=function useOverlayContext(){return(0,oe.useContext)(se)};w.useOverlayContext=le;w.withOverlayContext=function withOverlayContext(y){var w=function WithOverlayContextComponent(w){var E=le();return oe.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithOverlayContext"+(0,ie.getDisplayName)(y),w}},function(y,w,E){y.exports=function(){"use strict";var y="millisecond",w="second",E="minute",P="hour",q="day",ne="week",oe="month",ie="quarter",se="year",le="date",pe=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ge=/\[([^\]]+)]|Y{1,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 P=String(y);return!P||P.length>=w?y:""+Array(w+1-P.length).join(E)+y},he={s:$,z:function(y){var w=-y.utcOffset(),E=Math.abs(w),P=Math.floor(E/60),q=E%60;return(w<=0?"+":"-")+$(P,2,"0")+":"+$(q,2,"0")},m:function t(y,w){if(y.date()E;)q[E]=w[E++];return q},addGetter=function(y,w,E){st(y,w,{get:function(){return this._d[E]}})},$t=function from(y){var w,E,P,q,ne,oe,ie=Ae(y),se=arguments.length,pe=se>1?arguments[1]:void 0,ge=void 0!==pe,me=Be(ie);if(null!=me&&!Te(me)){for(oe=me.call(ie),P=[],w=0;!(ne=oe.next()).done;w++)P.push(ne.value);ie=P}for(ge&&se>2&&(pe=le(pe,arguments[2],2)),w=0,E=ye(ie.length),q=allocate(this,E);E>w;w++)q[w]=ge?pe(ie[w],w):ie[w];return q},Yt=function of(){for(var y=0,w=arguments.length,E=allocate(this,w);w>y;)E[y]=arguments[y++];return E},Xt=!!ut&&ne((function(){Ft.call(new ut(1))})),Jt=function toLocaleString(){return Ft.apply(Xt?It.call(validate(this)):validate(this),arguments)},Qt={copyWithin:function copyWithin(y,w){return rt.call(validate(this),y,w,arguments.length>2?arguments[2]:void 0)},every:function every(y){return Rt(validate(this),y,arguments.length>1?arguments[1]:void 0)},fill:function fill(y){return nt.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 xt(validate(this),y,arguments.length>1?arguments[1]:void 0)},findIndex:function findIndex(y){return Ct(validate(this),y,arguments.length>1?arguments[1]:void 0)},forEach:function forEach(y){yt(validate(this),y,arguments.length>1?arguments[1]:void 0)},indexOf:function indexOf(y){return kt(validate(this),y,arguments.length>1?arguments[1]:void 0)},includes:function includes(y){return wt(validate(this),y,arguments.length>1?arguments[1]:void 0)},join:function join(y){return Tt.apply(validate(this),arguments)},lastIndexOf:function lastIndexOf(y){return Dt.apply(validate(this),arguments)},map:function map(y){return qt(validate(this),y,arguments.length>1?arguments[1]:void 0)},reduce:function reduce(y){return At.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,P=Math.floor(E/2),q=0;q1?arguments[1]:void 0)},sort:function sort(y){return Lt.call(validate(this),y)},subarray:function subarray(y,w){var E=validate(this),P=E.length,q=Re(y,P);return new($e(E,E[Vt]))(E.buffer,E.byteOffset+q*E.BYTES_PER_ELEMENT,ye((void 0===w?P:Re(w,P))-q))}},Zt=function slice(y,w){return speciesFromList(this,It.call(validate(this),y,w))},en=function set(y){validate(this);var w=toOffset(arguments[1],1),E=this.length,P=Ae(y),q=ye(P.length),ne=0;if(q+w>E)throw ct(Gt);for(;ne255?255:255&P),q.v[he](E*w+q.o,P,Wt)}(this,E,y)},enumerable:!0})};ke?(ve=E((function(y,E,P,q){pe(y,ve,le,"_d");var ne,oe,ie,se,ge=0,he=0;if(Se(E)){if(!(E instanceof ft||(se=Me(E))==pt||se==gt))return Ht in E?fromList(ve,E):$t.call(ve,E);ne=E,he=toOffset(P,w);var Re=E.byteLength;if(void 0===q){if(Re%w)throw ct(Gt);if((oe=Re-he)<0)throw ct(Gt)}else if((oe=ye(q)*w)+he>Re)throw ct(Gt);ie=oe/w}else ie=_e(E),ne=new ft(oe=ie*w);for(me(y,"_d",{b:ne,o:he,l:oe,e:ie,v:new vt(ne)});ge1?arguments[1]:void 0)}})},function(y,w,E){"use strict";E.r(w);var P=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 P=y.length;if(w.length!==P)return!0;for(var q=0;q1){for(var q=[],ne=0;ne1?(le()(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.",ne),y.map((function(y,E){return q(y,w*ne+E)})).join(":")):q(y,w)},E._renderItem=function(y){var w=E.props,P=w.renderItem,ie=w.numColumns,se=w.columnWrapperStyle;if(ie>1){var pe=y.item,ge=y.index;return le()(Array.isArray(pe),"Expected array of items with numColumns > 1"),q.createElement(oe.default,{style:ne.default.compose(me.row,se)},pe.map((function(w,E){var ne=P({item:w,index:ge*ie+E,separators:y.separators});return null!=ne?q.createElement(q.Fragment,{key:E},ne):null})))}return P(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){le()(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."),le()(y.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),le()(!P(y.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),le()(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,P=y.horizontal,q=y.numColumns,ne=y.columnWrapperStyle,oe=y.onViewableItemsChanged,ie=y.viewabilityConfigCallbackPairs;le()(!w&&!E,"FlatList does not support custom data formats."),q>1?le()(!P,"numColumns does not support horizontal."):le()(!ne,"columnWrapperStyle not supported for single column lists"),le()(!(oe&&ie),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")},w._pushMultiColumnViewable=function _pushMultiColumnViewable(y,w){var E=this.props,P=E.numColumns,q=E.keyExtractor;w.item.forEach((function(E,ne){le()(null!=w.index,"Missing index!");var oe=w.index*P+ne;y.push(_objectSpread({},w,{item:E,key:q(E,oe),index:oe}))}))},w._createOnViewableItemsChanged=function _createOnViewableItemsChanged(y){var w=this;return function(E){var P=w.props.numColumns;if(y)if(P>1){var q=[],ne=[];E.viewableItems.forEach((function(y){return w._pushMultiColumnViewable(ne,y)})),E.changed.forEach((function(y){return w._pushMultiColumnViewable(q,y)})),y({viewableItems:ne,changed:q})}else y(E)}},w.render=function render(){return q.createElement(ie.a,_extends({},this.props,{renderItem:this._renderItem,getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs}))},FlatList}(q.PureComponent);ge.defaultProps=pe;var me=ne.default.create({row:{flexDirection:"row"}}),he=ge;w.default=he},function(y,w,E){"use strict";var P=E(15),q=E(0),ne=P.canUseDOM?q.useLayoutEffect:q.useEffect;w.a=ne},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(1164),E(21),E(31),E(69),E(133);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 P=E(1031),q=E(1032),ne=E(532),oe=E(1033);y.exports=function _toConsumableArray(y){return P(y)||q(y)||ne(y)||oe()},y.exports.default=y.exports,y.exports.__esModule=!0},function(y,w,E){var P=E(25);y.exports=function(y,w){if(!P(y))return y;var E,q;if(w&&"function"==typeof(E=y.toString)&&!P(q=E.call(y)))return q;if("function"==typeof(E=y.valueOf)&&!P(q=E.call(y)))return q;if(!w&&"function"==typeof(E=y.toString)&&!P(q=E.call(y)))return q;throw TypeError("Can't convert object to primitive value")}},function(y,w,E){var P=E(144)("meta"),q=E(25),ne=E(79),oe=E(46).f,ie=0,se=Object.isExtensible||function(){return!0},le=!E(23)((function(){return se(Object.preventExtensions({}))})),setMeta=function(y){oe(y,P,{value:{i:"O"+ ++ie,w:{}}})},pe=y.exports={KEY:P,NEED:!1,fastKey:function(y,w){if(!q(y))return"symbol"==typeof y?y:("string"==typeof y?"S":"P")+y;if(!ne(y,P)){if(!se(y))return"F";if(!w)return"E";setMeta(y)}return y[P].i},getWeak:function(y,w){if(!ne(y,P)){if(!se(y))return!0;if(!w)return!1;setMeta(y)}return y[P].w},onFreeze:function(y){return le&&pe.NEED&&se(y)&&!ne(y,P)&&setMeta(y),y}}},function(y,w){y.exports=function isObjectLike(y){return null!=y&&"object"==typeof y}},function(y,w,E){var P=E(337),q=E(340);y.exports=function isArrayLike(y){return null!=y&&q(y.length)&&!P(y)}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Avatar=void 0;var ne=q(E(5)),oe=q(E(19)),ie=P(E(0)),se=q(E(66)),le=q(E(136)),pe=q(E(7)),ge=q(E(8)),me=P(E(49)),he=E(11),ve="https://getstream.io/random_png/",ye=pe.default.create({container:{alignItems:"center",justifyContent:"center",overflow:"hidden"},presenceIndicatorContainer:{height:12,position:"absolute",right:0,top:0,width:12}}),_e=function getInitials(y){return y.split(" ").slice(0,2).map((function(y){return y.charAt(0)})).join(" ")},Re=function Avatar(y){var w=y.containerStyle,E=y.image,P=y.imageStyle,q=y.name,pe=y.online,Re=y.presenceIndicator,we=y.presenceIndicatorContainerStyle,ke=y.size,Me=y.testID,Se=(0,he.useTheme)().theme,Ae=Se.avatar,Te=Ae.container,Oe=Ae.image,Fe=Ae.presenceIndicator,je=Ae.presenceIndicatorContainer,Be=Se.colors,Ve=Be.accent_green,Ne=Be.white,Ue=(0,ie.useState)(!1),We=(0,oe.default)(Ue,2),$e=We[0],Ye=We[1];return ie.default.createElement(ge.default,null,ie.default.createElement(ge.default,{style:[ye.container,{borderRadius:ke/2,height:ke,width:ke},Te,w]},ie.default.createElement(se.default,{accessibilityLabel:Me||"avatar-image",onError:function onError(){return Ye(!0)},source:{uri:$e||!E||E.includes(ve)||E.includes("https://getstream.io/random_svg/")?null!=E&&E.includes("stream-io-cdn.com")?E:ve+(q?"?name="+_e(q)+"&size="+ke:""):E.replace("h=%2A","h="+le.default.getPixelSizeForLayoutSize(ke))},style:[Oe,ke?{borderRadius:ke/2,height:ke,width:ke}:{},P],testID:Me||"avatar-image"})),pe&&ie.default.createElement(ge.default,{style:[ye.presenceIndicatorContainer,je,we]},ie.default.createElement(me.default,null,ie.default.createElement(me.Circle,(0,ne.default)({fill:Ve,stroke:Ne},Fe,Re)))))};w.Avatar=Re,Re.displayName="Avatar{avatar}"},function(y,w,E){var P=E(118);y.exports=function(y){return Object(P(y))}},function(y,w,E){"use strict";var P=E(284),q=E(68),ne=E(181),oe=E(281),ie=E(118),se=E(417),le=E(1141),pe=E(285),ge=Math.max,me=Math.min;P("replace",2,(function(y,w,E,P){var he=P.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,ve=P.REPLACE_KEEPS_$0,ye=he?"$":"$0";return[function replace(E,P){var q=ie(this),ne=null==E?void 0:E[y];return void 0!==ne?ne.call(E,q,P):w.call(String(q),E,P)},function(y,P){if(!he&&ve||"string"==typeof P&&-1===P.indexOf(ye)){var ie=E(w,y,this,P);if(ie.done)return ie.value}var _e=q(y),Re=String(this),we="function"==typeof P;we||(P=String(P));var ke=_e.global;if(ke){var Me=_e.unicode;_e.lastIndex=0}for(var Se=[];;){var Ae=pe(_e,Re);if(null===Ae)break;if(Se.push(Ae),!ke)break;""===String(Ae[0])&&(_e.lastIndex=se(Re,ne(_e.lastIndex),Me))}for(var Te,Oe="",Fe=0,je=0;je=Fe&&(Oe+=Re.slice(Fe,Ve)+Ye,Fe=Ve+Be.length)}return Oe+Re.slice(Fe)}]}))},function(y,w,E){"use strict";var P=E(50),q=E(64),ne=E(180),oe=E(637),ie=E(85),se=E(411),le=E(645),pe=E(35),ge=E(76),me=E(412),he=E(65),ve=E(68),ye=E(132),_e=E(178),Re=E(277),we=E(275),ke=E(649),Me=E(282),Se=E(280),Ae=E(1147),Te=E(409),Oe=E(402),Fe=E(86),je=E(403),Be=E(158),Ve=E(179),Ne=E(407),Ue=E(278),We=E(213),$e=E(279),Ye=E(77),Xe=E(651),et=E(1148),tt=E(1149),nt=E(406),rt=E(214).forEach,ot=Ue("hidden"),it="Symbol",st=Ye("toPrimitive"),dt=nt.set,ct=nt.getterFor(it),lt=Object.prototype,ut=q.Symbol,pt=ne("JSON","stringify"),gt=Oe.f,mt=Fe.f,ht=Ae.f,ft=je.f,vt=Ne("symbols"),yt=Ne("op-symbols"),bt=Ne("string-to-symbol-registry"),_t=Ne("symbol-to-string-registry"),Rt=Ne("wks"),xt=q.QObject,Ct=!xt||!xt.prototype||!xt.prototype.findChild,wt=ie&&pe((function(){return 7!=ke(mt({},"a",{get:function(){return mt(this,"a",{value:7}).a}})).a}))?function(y,w,E){var P=gt(lt,w);P&&delete lt[w],mt(y,w,E),P&&y!==lt&&mt(lt,w,P)}:mt,wrap=function(y,w){var E=vt[y]=ke(ut.prototype);return dt(E,{type:it,tag:y,description:w}),ie||(E.description=w),E},kt=le?function(y){return"symbol"==typeof y}:function(y){return Object(y)instanceof ut},Mt=function defineProperty(y,w,E){y===lt&&Mt(yt,w,E),ve(y);var P=Re(w,!0);return ve(E),ge(vt,P)?(E.enumerable?(ge(y,ot)&&y[ot][P]&&(y[ot][P]=!1),E=ke(E,{enumerable:we(0,!1)})):(ge(y,ot)||mt(y,ot,we(1,{})),y[ot][P]=!0),wt(y,P,E)):mt(y,P,E)},St=function defineProperties(y,w){ve(y);var E=_e(w),P=Me(E).concat(Pt(E));return rt(P,(function(w){ie&&!Et.call(E,w)||Mt(y,w,E[w])})),y},Et=function propertyIsEnumerable(y){var w=Re(y,!0),E=ft.call(this,w);return!(this===lt&&ge(vt,w)&&!ge(yt,w))&&(!(E||!ge(this,w)||!ge(vt,w)||ge(this,ot)&&this[ot][w])||E)},Dt=function getOwnPropertyDescriptor(y,w){var E=_e(y),P=Re(w,!0);if(E!==lt||!ge(vt,P)||ge(yt,P)){var q=gt(E,P);return!q||!ge(vt,P)||ge(E,ot)&&E[ot][P]||(q.enumerable=!0),q}},At=function getOwnPropertyNames(y){var w=ht(_e(y)),E=[];return rt(w,(function(y){ge(vt,y)||ge(We,y)||E.push(y)})),E},Pt=function getOwnPropertySymbols(y){var w=y===lt,E=ht(w?yt:_e(y)),P=[];return rt(E,(function(y){!ge(vt,y)||w&&!ge(lt,y)||P.push(vt[y])})),P};(se||(Ve((ut=function Symbol(){if(this instanceof ut)throw TypeError("Symbol is not a constructor");var y=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,w=$e(y),setter=function(y){this===lt&&setter.call(yt,y),ge(this,ot)&&ge(this[ot],w)&&(this[ot][w]=!1),wt(this,w,we(1,y))};return ie&&Ct&&wt(lt,w,{configurable:!0,set:setter}),wrap(w,y)}).prototype,"toString",(function toString(){return ct(this).tag})),Ve(ut,"withoutSetter",(function(y){return wrap($e(y),y)})),je.f=Et,Fe.f=Mt,Oe.f=Dt,Se.f=Ae.f=At,Te.f=Pt,Xe.f=function(y){return wrap(Ye(y),y)},ie&&(mt(ut.prototype,"description",{configurable:!0,get:function description(){return ct(this).description}}),oe||Ve(lt,"propertyIsEnumerable",Et,{unsafe:!0}))),P({global:!0,wrap:!0,forced:!se,sham:!se},{Symbol:ut}),rt(Me(Rt),(function(y){et(y)})),P({target:it,stat:!0,forced:!se},{for:function(y){var w=String(y);if(ge(bt,w))return bt[w];var E=ut(w);return bt[w]=E,_t[E]=w,E},keyFor:function keyFor(y){if(!kt(y))throw TypeError(y+" is not a symbol");if(ge(_t,y))return _t[y]},useSetter:function(){Ct=!0},useSimple:function(){Ct=!1}}),P({target:"Object",stat:!0,forced:!se,sham:!ie},{create:function create(y,w){return void 0===w?ke(y):St(ke(y),w)},defineProperty:Mt,defineProperties:St,getOwnPropertyDescriptor:Dt}),P({target:"Object",stat:!0,forced:!se},{getOwnPropertyNames:At,getOwnPropertySymbols:Pt}),P({target:"Object",stat:!0,forced:pe((function(){Te.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(y){return Te.f(ye(y))}}),pt)&&P({target:"JSON",stat:!0,forced:!se||pe((function(){var y=ut();return"[null]"!=pt([y])||"{}"!=pt({a:y})||"{}"!=pt(Object(y))}))},{stringify:function stringify(y,w,E){for(var P,q=[y],ne=1;arguments.length>ne;)q.push(arguments[ne++]);if(P=w,(he(w)||void 0!==y)&&!kt(y))return me(w)||(w=function(y,w){if("function"==typeof P&&(w=P.call(this,y,w)),!kt(w))return w}),q[1]=w,pt.apply(null,q)}});ut.prototype[st]||Be(ut.prototype,st,ut.prototype.valueOf),tt(ut,it),We[ot]=!0},function(y,w,E){"use strict";var P=E(50),q=E(85),ne=E(64),oe=E(76),ie=E(65),se=E(86).f,le=E(638),pe=ne.Symbol;if(q&&"function"==typeof pe&&(!("description"in pe.prototype)||void 0!==pe().description)){var ge={},me=function Symbol(){var y=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),w=this instanceof me?new pe(y):void 0===y?pe():pe(y);return""===y&&(ge[w]=!0),w};le(me,pe);var he=me.prototype=pe.prototype;he.constructor=me;var ve=he.toString,ye="Symbol(test)"==String(pe("test")),_e=/^Symbol\((.*)\)[^)]+$/;se(he,"description",{configurable:!0,get:function description(){var y=ie(this)?this.valueOf():this,w=ve.call(y);if(oe(ge,y))return"";var E=ye?w.slice(7,-1):w.replace(_e,"$1");return""===E?void 0:E}}),P({global:!0,forced:!0},{Symbol:me})}},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return q}));var P=E(61),q=function(){function PixelRatio(){}return PixelRatio.get=function get(){return P.default.get("window").scale},PixelRatio.getFontScale=function getFontScale(){return P.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 P=E(677),q=E.n(P),ne=E(293),oe=E(9),ie=E.n(oe),se=E(61),le=E(70),pe=E(56),ge=E(89),me=E(32),he=E(186),ve=E.n(he),ye={},_e={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(){ve()(!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=ge.a.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==w||y.target===w||this.state.observedScrollSinceBecomingResponder||this.state.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(y),ge.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}(je.current.scrollLastTick,_e)&&handleScrollTick(y):function handleScrollStart(y){je.current.isScrolling=!0,handleScrollTick(y)}(y))},onTouchMove:createPreventableScrollHandler(pe),onWheel:createPreventableScrollHandler(ge),pointerEvents:me,ref:Object(Se.a)(Ve,w),style:[Ae,!ve&&Te.scrollDisabled,Ne&&Te.hideScrollbar],testID:Fe})})),Te=ke.default.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}}),Oe=Ae;function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}return E}function _objectSpread(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","keyboardDismissMode","onScroll"])),le={};P&&(le={onLayout:this._handleContentOnLayout});var pe=!E&&Array.isArray(ne),ge=pe||oe?we.a.Children.map(this.props.children,(function(y,w){var E=pe&&ne.indexOf(w)>-1;return null!=y&&(E||oe)?we.a.createElement(Me.default,{style:ke.default.compose(E&&Ve.stickyHeader,oe&&Ve.pagingEnabledChild)},y):y})):this.props.children,me=we.a.createElement(Me.default,_extends({},le,{children:ge,collapsable:!1,ref:this._setInnerViewRef,style:ke.default.compose(E&&Ve.contentContainerHorizontal,w)})),he=E?Ve.baseHorizontal:Ve.baseVertical,ve=E?Ve.pagingEnabledHorizontal:Ve.pagingEnabledVertical,ye=_objectSpread({},se,{style:[he,oe&&ve,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}),_e=Oe;return ie()(void 0!==_e,"ScrollViewClass must not be undefined"),q?we.a.cloneElement(q,{style:ye.style},we.a.createElement(_e,_extends({},ye,{ref:this._setScrollNodeRef,style:he}),me)):we.a.createElement(_e,_extends({},ye,{ref:this._setScrollNodeRef}),me)},_handleContentOnLayout:function _handleContentOnLayout(y){var w=y.nativeEvent.layout,E=w.width,P=w.height;this.props.onContentSizeChange(E,P)},_handleScroll:function _handleScroll(y){"on-drag"===this.props.keyboardDismissMode&&Object(ne.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=ke.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=je},function(y,w,E){"use strict";function pick(y,w){var E={};for(var P in y)y.hasOwnProperty(P)&&(!0!==w[P]&&0!==P.indexOf("aria-")||(E[P]=y[P]));return E}E.d(w,"a",(function(){return pick}))},function(y,w,E){"use strict";E.d(w,"a",(function(){return usePlatformMethods}));var P=E(32),q=E(290),ne=E(227),oe=E(0);function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}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 ie={};function setNativeProps(y,w,E,ne,oe,ie){if(null!=y&&w){var se=Object(q.a)(null,function _objectSpread(y){for(var w=1;w0?y._pressDelayTimeout=setTimeout((function(){y._receiveSignal(P,w)}),q):y._receiveSignal(P,w);var ne=normalizeDelay(y._config.delayLongPress,10,450);y._longPressDelayTimeout=setTimeout((function(){y._handleLongPress(w)}),ne+q)},E=function end(w){y._receiveSignal(pe,w)},q=function keyupHandler(w){y._touchState!==oe&&(E(w),document.removeEventListener("keyup",keyupHandler))};return{onStartShouldSetResponder:function onStartShouldSetResponder(w){var E=y._config.disabled;return E&&ve(w.currentTarget)&&w.stopPropagation(),null==E||!E},onKeyDown:function onKeyDown(E){(function isValidKeyPress(y){var w=y.key,E=y.currentTarget.getAttribute("role"),P=" "===w||"Spacebar"===w;return!y.repeat&&("Enter"===w||P&&("button"===E||"menuitem"===E))})(E)&&(y._touchState===oe&&(w(E,!1),document.addEventListener("keyup",q)),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 P=y._touchActivatePosition.pageX-E.pageX,q=y._touchActivatePosition.pageY-E.pageY;Math.hypot(P,q)>10&&y._cancelLongPressDelayTimeout()}},onResponderRelease:function onResponderRelease(y){return E(y)},onResponderTerminate:function onResponderTerminate(w){"selectionchange"===w.nativeEvent.type&&(y._selectionTerminated=!0),y._receiveSignal(ge,w)},onResponderTerminationRequest:function onResponderTerminationRequest(w){var E=y._config,P=E.cancelable,q=E.disabled,ne=E.onLongPress;return!(!q&&null!=ne&&y._isPointerTouch&&"contextmenu"===w.nativeEvent.type)&&(null==P||P)},onClick:function onClick(w){var E=y._config,P=E.disabled,q=E.onPress;P?ve(w.currentTarget)&&w.stopPropagation():(w.stopPropagation(),y._longPressDispatched||y._selectionTerminated?w.preventDefault():null!=q&&!1===w.ctrlKey&&!1===w.altKey&&q(w))},onContextMenu:function onContextMenu(w){var E=y._config,P=E.disabled,q=E.onLongPress;P?ve(w.currentTarget)&&w.stopPropagation():null!=q&&y._isPointerTouch&&!w.defaultPrevented&&(w.preventDefault(),w.stopPropagation())}}},y._receiveSignal=function _receiveSignal(y,w){var E=this._touchState,P=null;null!=me[E]&&(P=me[E][y]),null==this._responder&&y===pe||(null==P||P===q?console.error("PressResponder: Invalid signal "+y+" for state "+E+" on responder"):E!==P&&(this._performTransitionSideEffects(E,P,y,w),this._touchState=P))},y._performTransitionSideEffects=function _performTransitionSideEffects(y,w,E,P){if(function isTerminalSignal(y){return y===ge||y===pe}(E)&&(this._isPointerTouch=!1,this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),ye(y)&&E===ne){var q=this._config.onLongPress;null!=q&&null==P.nativeEvent.key&&(q(P),this._longPressDispatched=!0)}var oe=he(y),se=he(w);if(!oe&&se?this._activate(P):oe&&!se&&this._deactivate(P),ye(y)&&E===pe){var le=this._config,me=le.onLongPress;if(null!=le.onPress)null!=me&&y===ie||se||oe||(this._activate(P),this._deactivate(P))}this._cancelPressDelayTimeout()},y._activate=function _activate(y){var w=this._config,E=w.onPressChange,P=w.onPressStart,q=getTouchFromResponderEvent(y);this._touchActivatePosition={pageX:q.pageX,pageY:q.pageY},null!=P&&P(y),null!=E&&E(!0)},y._deactivate=function _deactivate(y){var w=this._config,E=w.onPressChange,P=w.onPressEnd;function end(){null!=P&&P(y),null!=E&&E(!1)}var q=normalizeDelay(this._config.delayPressEnd);q>0?this._pressOutDelayTimeout=setTimeout((function(){end()}),q):end()},y._handleLongPress=function _handleLongPress(y){this._touchState!==se&&this._touchState!==ie||this._receiveSignal(ne,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,P=w.touches;return null!=P&&P.length>0?P[0]:null!=E&&E.length>0?E[0]:y.nativeEvent}var Re=E(0);function usePressEvents(y,w){var E=Object(Re.useRef)(null);null==E.current&&(E.current=new _e(w));var P=E.current;return Object(Re.useEffect)((function(){P.configure(w)}),[w,P]),Object(Re.useEffect)((function(){return function(){P.reset()}}),[P]),Object(Re.useDebugValue)(w),P.getEventHandlers()}},function(y,w,E){"use strict";var P=E(110),q=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=P.a.runAfterInteractions((function(){y._taskHandle=null,y._callback()}))}),this._delay);this._taskHandle={cancel:function cancel(){return clearTimeout(w)}}}},Batchinator}(),ne=E(305),oe=E.n(ne),ie=E(186),se=E.n(ie);function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}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 le=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},pe=[],ge=10,me=null,he=function(){function FillRateHelper(y){this._anyBlankStartTime=null,this._enabled=!1,this._info=new le,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=y,this._enabled=(me||0)>Math.random(),this._resetData()}FillRateHelper.addListener=function addListener(y){return se()(null!==me,"Call `FillRateHelper.setSampleRate` before `addListener`."),pe.push(y),{remove:function remove(){pe=pe.filter((function(w){return y!==w}))}}},FillRateHelper.setSampleRate=function setSampleRate(y){me=y},FillRateHelper.setMinSampleCount=function setMinSampleCount(y){ge=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&&(pe=Math.min(ie,Math.max(0,me.offset-q)));for(var he=0,ve=w.last,ye=this._getFrameMetrics(ve);ve>=w.first&&(!ye||!ye.inLayout);)ye=this._getFrameMetrics(ve),ve--;if(ye&&ve0?(this._anyBlankStartTime=le,this._info.any_blank_speed_sum+=se,this._info.any_blank_count++,this._info.pixels_blank+=Re,we>.5&&(this._mostlyBlankStartTime=le,this._info.mostly_blank_count++)):(se<.01||Math.abs(P)<1)&&this.deactivateAndFlush(),we},y.enabled=function enabled(){return this._enabled},y._resetData=function _resetData(){this._anyBlankStartTime=null,this._info=new le,this._mostlyBlankStartTime=null,this._samplesStartTime=null},FillRateHelper}(),ve=E(2),ye=E.n(ve),_e=E(0),Re=E(218),we=E(137),ke=E(7),Me=E(8),Se=E(9),Ae=E.n(Se);function ViewabilityHelper_ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}return E}function ViewabilityHelper_objectSpread(y){for(var w=1;w=0&&w<=E&&w>y}(E,P,q))return!0;var oe=function _getPixelsVisible(y,w,E){var P=Math.min(w,E)-Math.max(y,0);return Math.max(0,P)}(E,P,q);return 100*(y?oe/q:oe/ne)>=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,P,q){var ne=this._config,oe=ne.itemVisiblePercentThreshold,ie=ne.viewAreaCoveragePercentThreshold,se=null!=ie,le=se?ie:oe;Ae()(null!=le&&null!=oe!=(null!=ie),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var pe=[];if(0===y)return pe;var ge=-1,me=q||{first:0,last:y-1},he=me.first,ve=me.last;if(ve>=y)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:q,itemCount:y})),[];for(var ye=he;ye<=ve;ye++){var _e=P(ye);if(_e){var Re=_e.offset-w,we=Re+_e.length;if(Re0)ge=ye,_isViewable(se,le,Re,we,E,_e.length)&&pe.push(ye);else if(ge>=0)break}}return pe},y.onUpdate=function onUpdate(y,w,E,P,q,ne,oe){var ie=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==y&&P(0)){var se=[];if(y&&(se=this.computeViewableItems(y,w,E,P,oe)),this._viewableIndices.length!==se.length||!this._viewableIndices.every((function(y,w){return y===se[w]})))if(this._viewableIndices=se,this._config.minimumViewTime){var le=setTimeout((function(){ie._timers.delete(le),ie._onUpdateSync(se,ne,q)}),this._config.minimumViewTime);this._timers.add(le)}else this._onUpdateSync(se,ne,q)}},y.resetViewableIndices=function resetViewableIndices(){this._viewableIndices=[]},y.recordInteraction=function recordInteraction(){this._hasInteracted=!0},y._onUpdateSync=function _onUpdateSync(y,w,E){var P=this;y=y.filter((function(y){return P._viewableIndices.includes(y)}));var q=this._viewableItems,ne=new Map(y.map((function(y){var w=E(y,!0);return[w.key,w]}))),oe=[],ie=ne,se=Array.isArray(ie),le=0;for(ie=se?ie:ie[Symbol.iterator]();;){var pe;if(se){if(le>=ie.length)break;pe=ie[le++]}else{if((le=ie.next()).done)break;pe=le.value}var ge=pe,me=ge[0],he=ge[1];q.has(me)||oe.push(he)}var ve=q,ye=Array.isArray(ve),_e=0;for(ve=ye?ve:ve[Symbol.iterator]();;){var Re;if(ye){if(_e>=ve.length)break;Re=ve[_e++]}else{if((_e=ve.next()).done)break;Re=_e.value}var we=Re,ke=we[0],Me=we[1];ne.has(ke)||oe.push(ViewabilityHelper_objectSpread({},Me,{isViewable:!1}))}oe.length>0&&(this._viewableItems=ne,w({viewableItems:Array.from(ne.values()),changed:oe,viewabilityConfig:this._config}))},ViewabilityHelper}(),Oe=E(70);var Fe=function infoLog(){var y;return(y=console).log.apply(y,arguments)};function elementsThatOverlapOffsets(y,w,E){for(var P=[],q=0,ne=0;ne=y[se]&&(P[se]=ne,q++,se===y.length-1))return Ae()(q===y.length,"bad offsets input, should be in increasing order: %s",JSON.stringify(y)),P;return P}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,P){var q=y.data,ne=y.getItemCount,oe=y.maxToRenderPerBatch,ie=y.windowSize,se=ne(q);if(0===se)return w;var le=P.offset,pe=P.velocity,ge=P.visibleLength,me=Math.max(0,le),he=me+ge,ve=(ie-1)*ge,ye=pe>1?"after":pe<-1?"before":"none",_e=Math.max(0,me-.5*ve),Re=Math.max(0,he+.5*ve);if(E(se-1).offset<_e)return{first:Math.max(0,se-1-oe),last:se-1};var we=elementsThatOverlapOffsets([_e,me,he,Re],y.getItemCount(y.data),E),ke=we[0],Me=we[1],Se=we[2],Ae=we[3];ke=null==ke?0:ke,Ae=null==Ae?se-1:Ae;for(var Te={first:Me=null==Me?Math.max(0,ke):Me,last:Se=null==Se?Math.min(Ae,Me+oe-1):Se},Oe=newRangeCount(w,Te);!(Me<=ke&&Se>=Ae);){var Fe=Oe>=oe,je=Me<=w.first||Me>w.last,Be=Me>ke&&(!Fe||!je),Ve=Se>=w.last||Se=Me&&Me>=0&&Se=ke&&Se<=Ae&&Me<=Te.first&&Se>=Te.last))throw new Error("Bad window calculation "+JSON.stringify({first:Me,last:Se,itemCount:se,overscanFirst:ke,overscanLast:Ae,visible:Te}));return{first:Me,last:Se}}function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w0&&w>0&&null!=P.props.initialScrollIndex&&P.props.initialScrollIndex>0&&!P._hasDoneInitialScroll&&(P.scrollToIndex({animated:!1,index:P.props.initialScrollIndex}),P._hasDoneInitialScroll=!0),P.props.onContentSizeChange&&P.props.onContentSizeChange(y,w),P._scrollMetrics.contentLength=P._selectLength({height:w,width:y}),P._scheduleCellsToRenderUpdate(),P._maybeCallOnEndReached()},P._convertParentScrollMetrics=function(y){var w=y.offset-P._offsetFromParentVirtualizedList,E=y.visibleLength,q=w-P._scrollMetrics.offset;return{visibleLength:E,contentLength:P._scrollMetrics.contentLength,offset:w,dOffset:q}},P._onScroll=function(y){P._nestedChildLists.forEach((function(w){w.ref&&w.ref._onScroll(y)})),P.props.onScroll&&P.props.onScroll(y);var w=y.timeStamp,E=P._selectLength(y.nativeEvent.layoutMeasurement),q=P._selectLength(y.nativeEvent.contentSize),ne=P._selectOffset(y.nativeEvent.contentOffset),oe=ne-P._scrollMetrics.offset;if(P._isNestedWithSameOrientation()){if(0===P._scrollMetrics.contentLength)return;var ie=P._convertParentScrollMetrics({visibleLength:E,offset:ne});E=ie.visibleLength,q=ie.contentLength,ne=ie.offset,oe=ie.dOffset}var se=P._scrollMetrics.timestamp?Math.max(1,w-P._scrollMetrics.timestamp):1,le=oe/se;se>500&&P._scrollMetrics.dt>500&&q>5*E&&!P._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:se,prevDt:P._scrollMetrics.dt,contentLength:q}),P._hasWarned.perf=!0),P._scrollMetrics={contentLength:q,dt:se,dOffset:oe,offset:ne,timestamp:w,velocity:le,visibleLength:E},P._updateViewableItems(P.props.data),P.props&&(P._maybeCallOnEndReached(),0!==le&&P._fillRateHelper.activate(),P._computeBlankness(),P._scheduleCellsToRenderUpdate())},P._onScrollBeginDrag=function(y){P._nestedChildLists.forEach((function(w){w.ref&&w.ref._onScrollBeginDrag(y)})),P._viewabilityTuples.forEach((function(y){y.viewabilityHelper.recordInteraction()})),P._hasInteracted=!0,P.props.onScrollBeginDrag&&P.props.onScrollBeginDrag(y)},P._onScrollEndDrag=function(y){var w=y.nativeEvent.velocity;w&&(P._scrollMetrics.velocity=P._selectOffset(w)),P._computeBlankness(),P.props.onScrollEndDrag&&P.props.onScrollEndDrag(y)},P._onMomentumScrollEnd=function(y){P._scrollMetrics.velocity=0,P._computeBlankness(),P.props.onMomentumScrollEnd&&P.props.onMomentumScrollEnd(y)},P._updateCellsToRender=function(){var y=P.props,w=y.data,E=y.getItemCount,q=y.onEndReachedThreshold,ne=P._isVirtualizationDisabled();P._updateViewableItems(w),w&&P.setState((function(y){var oe;if(ne){var ie=P._scrollMetrics,se=ie.contentLength,le=ie.offset,pe=ie.visibleLength,ge=se-pe-le0)for(var me=oe.first,he=oe.last,ve=me;ve<=he;ve++){var ye=P._indicesToKeys.get(ve),_e=ye&&P._cellKeysToChildListKeys.get(ye);if(_e){var Re=!1,we=_e,ke=Array.isArray(we),Me=0;for(we=ke?we:we[Symbol.iterator]();;){var Se;if(ke){if(Me>=we.length)break;Se=we[Me++]}else{if((Me=we.next()).done)break;Se=Me.value}var Ae=Se,Te=P._nestedChildLists.get(Ae);if(Te&&Te.ref&&Te.ref.hasMore()){Re=!0;break}}if(Re){oe.last=ve;break}}}return oe}))},P._createViewToken=function(y,w){var E=P.props,q=E.data,ne=E.getItem,oe=E.keyExtractor,ie=ne(q,y);return{index:y,item:ie,key:oe(ie,y),isViewable:w}},P._getFrameMetricsApprox=function(y){var w=P._getFrameMetrics(y);if(w&&w.index===y)return w;var E=P.props.getItemLayout;return Ae()(!E,"Should not have to estimate frames when a measurement metrics function is provided"),{length:P._averageCellLength,offset:P._averageCellLength*y}},P._getFrameMetrics=function(y){var w=P.props,E=w.data,q=w.getItem,ne=w.getItemCount,oe=w.getItemLayout,ie=w.keyExtractor;Ae()(ne(E)>y,"Tried to get frame for out of range index "+y);var se=q(E,y),le=se&&P._frames[ie(se,y)];le&&le.index===y||oe&&(le=oe(E,y));return le},Ae()(!w.onScroll||!w.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),Ae()(w.windowSize>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),P._fillRateHelper=new he(P._getFrameMetrics),P._updateCellsToRenderBatcher=new q(P._updateCellsToRender,P.props.updateCellsBatchingPeriod),P.props.viewabilityConfigCallbackPairs?P._viewabilityTuples=P.props.viewabilityConfigCallbackPairs.map((function(y){return{viewabilityHelper:new Te(y.viewabilityConfig),onViewableItemsChanged:y.onViewableItemsChanged}})):P.props.onViewableItemsChanged&&P._viewabilityTuples.push({viewabilityHelper:new Te(P.props.viewabilityConfig),onViewableItemsChanged:P.props.onViewableItemsChanged});var ne={first:P.props.initialScrollIndex||0,last:Math.min(P.props.getItemCount(P.props.data),(P.props.initialScrollIndex||0)+P.props.initialNumToRender)-1};if(P._isNestedWithSameOrientation()){var oe=P.context.virtualizedList.getNestedChildState(P.props.listKey||P._getCellKey());oe&&(ne=oe,P.state=oe,P._frames=oe.frames)}return P.state=ne,P}return w.scrollToEnd=function scrollToEnd(y){var w=!y||y.animated,E=this.props.getItemCount(this.props.data)-1,P=this._getFrameMetricsApprox(E),q=Math.max(0,P.offset+P.length+this._footerLength-this._scrollMetrics.visibleLength);this._scrollRef.scrollTo(this.props.horizontal?{x:q,animated:w}:{y:q,animated:w})},w.scrollToIndex=function scrollToIndex(y){var w=this.props,E=w.data,P=w.horizontal,q=w.getItemCount,ne=w.getItemLayout,oe=w.onScrollToIndexFailed,ie=y.animated,se=y.index,le=y.viewOffset,pe=y.viewPosition;if(Ae()(se>=0&&sethis._highestMeasuredFrameIndex)return Ae()(!!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:se});var ge=this._getFrameMetricsApprox(se),me=Math.max(0,ge.offset-(pe||0)*(this._scrollMetrics.visibleLength-ge.length))-(le||0);this._scrollRef.scrollTo(P?{x:me,animated:ie}:{y:me,animated:ie})},w.scrollToItem=function scrollToItem(y){for(var w=y.item,E=this.props,P=E.data,q=E.getItem,ne=(0,E.getItemCount)(P),oe=0;oe0){je=!1,Be="";var ye=ie?"width":"height",Re=this.props.initialScrollIndex?-1:this.props.initialNumToRender-1,we=this.state,Se=we.first,Ae=we.last;this._pushCells(pe,me,ge,0,Re,le);var Te=Math.max(Re+1,Se);if(!se&&Se>Re+1){var Oe=!1;if(ge.size>0)for(var Fe=q?1:0,Ve=Te-1;Ve>Re;Ve--)if(ge.has(Ve+Fe)){var Ne,$e,Ye=this._getFrameMetricsApprox(Re),Xe=this._getFrameMetricsApprox(Ve),et=Xe.offset-Ye.offset-(this.props.initialScrollIndex?0:Ye.length);pe.push(_e.createElement(Me.default,{key:"$sticky_lead",style:(Ne={},Ne[ye]=et,Ne)})),this._pushCells(pe,me,ge,Ve,Ve,le);var tt=this._getFrameMetricsApprox(Se).offset-(Xe.offset+Xe.length);pe.push(_e.createElement(Me.default,{key:"$sticky_trail",style:($e={},$e[ye]=tt,$e)})),Oe=!0;break}if(!Oe){var nt,rt=this._getFrameMetricsApprox(Re),ot=this._getFrameMetricsApprox(Se).offset-(rt.offset+rt.length);pe.push(_e.createElement(Me.default,{key:"$lead_spacer",style:(nt={},nt[ye]=ot,nt)}))}}if(this._pushCells(pe,me,ge,Te,Ae,le),!this._hasWarned.keys&&je&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",Be),this._hasWarned.keys=!0),!se&&Ae=ie.length)break;pe=ie[le++]}else{if((le=ie.next()).done)break;pe=le.value}var ge=pe,me=this._nestedChildLists.get(ge);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,P,q){y._offsetFromParentVirtualizedList=y._selectOffset({x:w,y:E}),y._scrollMetrics.contentLength=y._selectLength({width:P,height:q});var ne=y._convertParentScrollMetrics(y.context.virtualizedList.getScrollMetrics());y._scrollMetrics.visibleLength=ne.visibleLength,y._scrollMetrics.offset=ne.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),P=0;P0){var pe=q-this._getFrameMetricsApprox(w).offset;se=se||pe<0||oe<-2&&pe2&&gedocument.F=Object<\/script>"),y.close(),createDict=y.F;P--;)delete createDict.prototype[ne[P]];return createDict()};y.exports=Object.create||function create(y,w){var E;return null!==y?(Empty.prototype=P(y),E=new Empty,Empty.prototype=null,E[oe]=y):E=createDict(),void 0===w?E:q(E,w)}},function(y,w,E){var P=E(436),q=E(309).concat("length","prototype");w.f=Object.getOwnPropertyNames||function getOwnPropertyNames(y){return P(y,q)}},function(y,w,E){var P=E(79),q=E(63),ne=E(308)("IE_PROTO"),oe=Object.prototype;y.exports=Object.getPrototypeOf||function(y){return y=q(y),P(y,ne)?y[ne]:"function"==typeof y.constructor&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?oe:null}},function(y,w,E){var P=E(33)("unscopables"),q=Array.prototype;null==q[P]&&E(80)(q,P,{}),y.exports=function(y){q[P][y]=!0}},function(y,w,E){var P=E(25);y.exports=function(y,w){if(!P(y)||y._t!==w)throw TypeError("Incompatible receiver, "+w+" required!");return y}},function(y,w,E){var P=E(905),q=E(910);y.exports=function getNative(y,w){var E=q(y,w);return P(E)?E:void 0}},function(y,w,E){var P=E(248),q=E(906),ne=E(907),oe=P?P.toStringTag:void 0;y.exports=function baseGetTag(y){return null==y?void 0===y?"[object Undefined]":"[object Null]":oe&&oe in Object(y)?q(y):ne(y)}},function(y,w){function _defineProperties(y,w){for(var E=0;Ey)return!1;if((E+=w[P+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&&le.test(String.fromCharCode(y)):!1!==w&&isInAstralSet(y,ge)))}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&&pe.test(String.fromCharCode(y)):!1!==w&&(isInAstralSet(y,ge)||isInAstralSet(y,me)))))}var he=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 he(y,{beforeExpr:!0,binop:w})}var ve={beforeExpr:!0},ye={startsExpr:!0},_e={};function kw(y,w){return void 0===w&&(w={}),w.keyword=y,_e[y]=new he(y,w)}var Re={num:new he("num",ye),regexp:new he("regexp",ye),string:new he("string",ye),name:new he("name",ye),eof:new he("eof"),bracketL:new he("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new he("]"),braceL:new he("{",{beforeExpr:!0,startsExpr:!0}),braceR:new he("}"),parenL:new he("(",{beforeExpr:!0,startsExpr:!0}),parenR:new he(")"),comma:new he(",",ve),semi:new he(";",ve),colon:new he(":",ve),dot:new he("."),question:new he("?",ve),arrow:new he("=>",ve),template:new he("template"),invalidTemplate:new he("invalidTemplate"),ellipsis:new he("...",ve),backQuote:new he("`",ye),dollarBraceL:new he("${",{beforeExpr:!0,startsExpr:!0}),eq:new he("=",{beforeExpr:!0,isAssign:!0}),assign:new he("_=",{beforeExpr:!0,isAssign:!0}),incDec:new he("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new he("!/~",{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 he("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new he("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",ve),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",ve),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",ve),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",ye),_if:kw("if"),_return:kw("return",ve),_switch:kw("switch"),_throw:kw("throw",ve),_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",ye),_super:kw("super",ye),_class:kw("class",ye),_extends:kw("extends",ve),_export:kw("export"),_import:kw("import",ye),_null:kw("null",ye),_true:kw("true",ye),_false:kw("false",ye),_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})},we=/\r\n?|\n|\u2028|\u2029/,ke=new RegExp(we.source,"g");function isNewLine(y,w){return 10===y||13===y||!w&&(8232===y||8233===y)}var Me=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Se=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ae=Object.prototype,Te=Ae.hasOwnProperty,Oe=Ae.toString;function has(y,w){return Te.call(y,w)}var Fe=Array.isArray||function(y){return"[object Array]"===Oe.call(y)};function wordsRegexp(y){return new RegExp("^(?:"+y.replace(/ /g,"|")+")$")}var je=function Position(y,w){this.line=y,this.column=w};je.prototype.offset=function offset(y){return new je(this.line,this.column+y)};var Be=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,P=0;;){ke.lastIndex=P;var q=ke.exec(y);if(!(q&&q.index=2015&&(w.ecmaVersion-=2009),null==w.allowReserved&&(w.allowReserved=w.ecmaVersion<5),Fe(w.onToken)){var P=w.onToken;w.onToken=function(y){return P.push(y)}}return Fe(w.onComment)&&(w.onComment=function pushComment(y,w){return function(E,P,q,ne,oe,ie){var se={type:E?"Block":"Line",value:P,start:q,end:ne};y.locations&&(se.loc=new Be(this,oe,ie)),y.ranges&&(se.range=[q,ne]),w.push(se)}}(w,w.onComment)),w}function functionFlags(y,w){return 2|(y?4:0)|(w?8:0)}var Ne=function Parser(y,w,E){this.options=y=getOptions(y),this.sourceFile=y.sourceFile,this.keywords=wordsRegexp(ne[y.ecmaVersion>=6?6:"module"===y.sourceType?"5module":5]);var q="";if(!0!==y.allowReserved){for(var oe=y.ecmaVersion;!(q=P[oe]);oe--);"module"===y.sourceType&&(q+=" await")}this.reservedWords=wordsRegexp(q);var ie=(q?q+" ":"")+P.strict;this.reservedWordsStrict=wordsRegexp(ie),this.reservedWordsStrictBind=wordsRegexp(ie+" "+P.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(we).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Re.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},Ue={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Ne.prototype.parse=function parse(){var y=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(y)},Ue.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ue.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ue.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ue.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Ue.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ue.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ne.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Ne.extend=function extend(){for(var y=[],w=arguments.length;w--;)y[w]=arguments[w];for(var E=this,P=0;P-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")}},We.checkExpressionErrors=function(y,w){if(!y)return!1;var E=y.shorthandAssign,P=y.doubleProto;if(!w)return E>=0||P>=0;E>=0&&this.raise(E,"Shorthand property assignments are valid only in destructuring patterns"),P>=0&&this.raiseRecoverable(P,"Redefinition of __proto__ property")},We.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(ne,!1,!y);case Re._class:return y&&this.unexpected(),this.parseClass(ne,!0);case Re._if:return this.parseIfStatement(ne);case Re._return:return this.parseReturnStatement(ne);case Re._switch:return this.parseSwitchStatement(ne);case Re._throw:return this.parseThrowStatement(ne);case Re._try:return this.parseTryStatement(ne);case Re._const:case Re._var:return P=P||this.value,y&&"var"!==P&&this.unexpected(),this.parseVarStatement(ne,P);case Re._while:return this.parseWhileStatement(ne);case Re._with:return this.parseWithStatement(ne);case Re.braceL:return this.parseBlock(!0,ne);case Re.semi:return this.parseEmptyStatement(ne);case Re._export:case Re._import:if(this.options.ecmaVersion>10&&q===Re._import){Se.lastIndex=this.pos;var oe=Se.exec(this.input),ie=this.pos+oe[0].length;if(40===this.input.charCodeAt(ie))return this.parseExpressionStatement(ne,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'")),q===Re._import?this.parseImport(ne):this.parseExport(ne,E);default:if(this.isAsyncFunction())return y&&this.unexpected(),this.next(),this.parseFunctionStatement(ne,!0,!y);var se=this.value,le=this.parseExpression();return q===Re.name&&"Identifier"===le.type&&this.eat(Re.colon)?this.parseLabeledStatement(ne,se,le,y):this.parseExpressionStatement(ne,le)}},Ye.parseBreakContinueStatement=function(y,w){var E="break"===w;this.next(),this.eat(Re.semi)||this.insertSemicolon()?y.label=null:this.type!==Re.name?this.unexpected():(y.label=this.parseIdent(),this.semicolon());for(var P=0;P=6?this.eat(Re.semi):this.semicolon(),this.finishNode(y,"DoWhileStatement")},Ye.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(Xe),this.enterScope(0),this.expect(Re.parenL),this.type===Re.semi)return w>-1&&this.unexpected(w),this.parseFor(y,null);var E=this.isLet();if(this.type===Re._var||this.type===Re._const||E){var P=this.startNode(),q=E?"let":this.value;return this.next(),this.parseVar(P,!0,q),this.finishNode(P,"VariableDeclaration"),(this.type===Re._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===P.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Re._in?w>-1&&this.unexpected(w):y.await=w>-1),this.parseForIn(y,P)):(w>-1&&this.unexpected(w),this.parseFor(y,P))}var ne=new DestructuringErrors,oe=this.parseExpression(!0,ne);return this.type===Re._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Re._in?w>-1&&this.unexpected(w):y.await=w>-1),this.toAssignable(oe,!1,ne),this.checkLVal(oe),this.parseForIn(y,oe)):(this.checkExpressionErrors(ne,!0),w>-1&&this.unexpected(w),this.parseFor(y,oe))},Ye.parseFunctionStatement=function(y,w,E){return this.next(),this.parseFunction(y,nt|(E?0:rt),!1,w)},Ye.parseIfStatement=function(y){return this.next(),y.test=this.parseParenExpression(),y.consequent=this.parseStatement("if"),y.alternate=this.eat(Re._else)?this.parseStatement("if"):null,this.finishNode(y,"IfStatement")},Ye.parseReturnStatement=function(y){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Re.semi)||this.insertSemicolon()?y.argument=null:(y.argument=this.parseExpression(),this.semicolon()),this.finishNode(y,"ReturnStatement")},Ye.parseSwitchStatement=function(y){var w;this.next(),y.discriminant=this.parseParenExpression(),y.cases=[],this.expect(Re.braceL),this.labels.push(et),this.enterScope(0);for(var E=!1;this.type!==Re.braceR;)if(this.type===Re._case||this.type===Re._default){var P=this.type===Re._case;w&&this.finishNode(w,"SwitchCase"),y.cases.push(w=this.startNode()),w.consequent=[],this.next(),P?w.test=this.parseExpression():(E&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),E=!0,w.test=null),this.expect(Re.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")},Ye.parseThrowStatement=function(y){return this.next(),we.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 tt=[];Ye.parseTryStatement=function(y){if(this.next(),y.block=this.parseBlock(),y.handler=null,this.type===Re._catch){var w=this.startNode();if(this.next(),this.eat(Re.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(Re.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(Re._finally)?this.parseBlock():null,y.handler||y.finalizer||this.raise(y.start,"Missing catch or finally clause"),this.finishNode(y,"TryStatement")},Ye.parseVarStatement=function(y,w){return this.next(),this.parseVar(y,!1,w),this.semicolon(),this.finishNode(y,"VariableDeclaration")},Ye.parseWhileStatement=function(y){return this.next(),y.test=this.parseParenExpression(),this.labels.push(Xe),y.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(y,"WhileStatement")},Ye.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")},Ye.parseEmptyStatement=function(y){return this.next(),this.finishNode(y,"EmptyStatement")},Ye.parseLabeledStatement=function(y,w,E,P){for(var q=0,ne=this.labels;q=0;ie--){var se=this.labels[ie];if(se.statementStart!==y.start)break;se.statementStart=this.start,se.kind=oe}return this.labels.push({name:w,kind:oe,statementStart:this.start}),y.body=this.parseStatement(P?-1===P.indexOf("label")?P+"label":P:"label"),this.labels.pop(),y.label=E,this.finishNode(y,"LabeledStatement")},Ye.parseExpressionStatement=function(y,w){return y.expression=w,this.semicolon(),this.finishNode(y,"ExpressionStatement")},Ye.parseBlock=function(y,w){for(void 0===y&&(y=!0),void 0===w&&(w=this.startNode()),w.body=[],this.expect(Re.braceL),y&&this.enterScope(0);!this.eat(Re.braceR);){var E=this.parseStatement(null);w.body.push(E)}return y&&this.exitScope(),this.finishNode(w,"BlockStatement")},Ye.parseFor=function(y,w){return y.init=w,this.expect(Re.semi),y.test=this.type===Re.semi?null:this.parseExpression(),this.expect(Re.semi),y.update=this.type===Re.parenR?null:this.parseExpression(),this.expect(Re.parenR),y.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(y,"ForStatement")},Ye.parseForIn=function(y,w){var E=this.type===Re._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(Re.parenR),y.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(y,E?"ForInStatement":"ForOfStatement")},Ye.parseVar=function(y,w,E){for(y.declarations=[],y.kind=E;;){var P=this.startNode();if(this.parseVarId(P,E),this.eat(Re.eq)?P.init=this.parseMaybeAssign(w):"const"!==E||this.type===Re._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===P.id.type||w&&(this.type===Re._in||this.isContextual("of"))?P.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),y.declarations.push(this.finishNode(P,"VariableDeclarator")),!this.eat(Re.comma))break}return y},Ye.parseVarId=function(y,w){y.id=this.parseBindingAtom(),this.checkLVal(y.id,"var"===w?1:2,!1)};var nt=1,rt=2;Ye.parseFunction=function(y,w,E,P){this.initFunction(y),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!P)&&(this.type===Re.star&&w&rt&&this.unexpected(),y.generator=this.eat(Re.star)),this.options.ecmaVersion>=8&&(y.async=!!P),w&nt&&(y.id=4&w&&this.type!==Re.name?null:this.parseIdent(),!y.id||w&rt||this.checkLVal(y.id,this.strict||y.generator||y.async?this.treatFunctionsAsVar?1:2:3));var q=this.yieldPos,ne=this.awaitPos,oe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(y.async,y.generator)),w&nt||(y.id=this.type===Re.name?this.parseIdent():null),this.parseFunctionParams(y),this.parseFunctionBody(y,E,!1),this.yieldPos=q,this.awaitPos=ne,this.awaitIdentPos=oe,this.finishNode(y,w&nt?"FunctionDeclaration":"FunctionExpression")},Ye.parseFunctionParams=function(y){this.expect(Re.parenL),y.params=this.parseBindingList(Re.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ye.parseClass=function(y,w){this.next();var E=this.strict;this.strict=!0,this.parseClassId(y,w),this.parseClassSuper(y);var P=this.startNode(),q=!1;for(P.body=[],this.expect(Re.braceL);!this.eat(Re.braceR);){var ne=this.parseClassElement(null!==y.superClass);ne&&(P.body.push(ne),"MethodDefinition"===ne.type&&"constructor"===ne.kind&&(q&&this.raise(ne.start,"Duplicate constructor in the same class"),q=!0))}return y.body=this.finishNode(P,"ClassBody"),this.strict=E,this.finishNode(y,w?"ClassDeclaration":"ClassExpression")},Ye.parseClassElement=function(y){var w=this;if(this.eat(Re.semi))return null;var E=this.startNode(),tryContextual=function(y,P){void 0===P&&(P=!1);var q=w.start,ne=w.startLoc;return!!w.eatContextual(y)&&(!(w.type===Re.parenL||P&&w.canInsertSemicolon())||(E.key&&w.unexpected(),E.computed=!1,E.key=w.startNodeAt(q,ne),E.key.name=y,w.finishNode(E.key,"Identifier"),!1))};E.kind="method",E.static=tryContextual("static");var P=this.eat(Re.star),q=!1;P||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(q=!0,P=this.options.ecmaVersion>=9&&this.eat(Re.star)):tryContextual("get")?E.kind="get":tryContextual("set")&&(E.kind="set")),E.key||this.parsePropertyName(E);var ne=E.key,oe=!1;return E.computed||E.static||!("Identifier"===ne.type&&"constructor"===ne.name||"Literal"===ne.type&&"constructor"===ne.value)?E.static&&"Identifier"===ne.type&&"prototype"===ne.name&&this.raise(ne.start,"Classes may not have a static property named prototype"):("method"!==E.kind&&this.raise(ne.start,"Constructor can't have get/set modifier"),P&&this.raise(ne.start,"Constructor can't be a generator"),q&&this.raise(ne.start,"Constructor can't be an async method"),E.kind="constructor",oe=y),this.parseClassMethod(E,P,q,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},Ye.parseClassMethod=function(y,w,E,P){return y.value=this.parseMethod(w,E,P),this.finishNode(y,"MethodDefinition")},Ye.parseClassId=function(y,w){this.type===Re.name?(y.id=this.parseIdent(),w&&this.checkLVal(y.id,2,!1)):(!0===w&&this.unexpected(),y.id=null)},Ye.parseClassSuper=function(y){y.superClass=this.eat(Re._extends)?this.parseExprSubscripts():null},Ye.parseExport=function(y,w){if(this.next(),this.eat(Re.star))return this.expectContextual("from"),this.type!==Re.string&&this.unexpected(),y.source=this.parseExprAtom(),this.semicolon(),this.finishNode(y,"ExportAllDeclaration");if(this.eat(Re._default)){var E;if(this.checkExport(w,"default",this.lastTokStart),this.type===Re._function||(E=this.isAsyncFunction())){var P=this.startNode();this.next(),E&&this.next(),y.declaration=this.parseFunction(P,4|nt,!1,E)}else if(this.type===Re._class){var q=this.startNode();y.declaration=this.parseClass(q,"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!==Re.string&&this.unexpected(),y.source=this.parseExprAtom();else{for(var ne=0,oe=y.specifiers;ne=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 P=0,q=y.properties;P=8&&!ne&&"async"===oe.name&&!this.canInsertSemicolon()&&this.eat(Re._function))return this.parseFunction(this.startNodeAt(P,q),0,!1,!0);if(E&&!this.canInsertSemicolon()){if(this.eat(Re.arrow))return this.parseArrowExpression(this.startNodeAt(P,q),[oe],!1);if(this.options.ecmaVersion>=8&&"async"===oe.name&&this.type===Re.name&&!ne)return oe=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Re.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(P,q),[oe],!0)}return oe;case Re.regexp:var ie=this.value;return(w=this.parseLiteral(ie.value)).regex={pattern:ie.pattern,flags:ie.flags},w;case Re.num:case Re.string:return this.parseLiteral(this.value);case Re._null:case Re._true:case Re._false:return(w=this.startNode()).value=this.type===Re._null?null:this.type===Re._true,w.raw=this.type.keyword,this.next(),this.finishNode(w,"Literal");case Re.parenL:var se=this.start,le=this.parseParenAndDistinguishExpression(E);return y&&(y.parenthesizedAssign<0&&!this.isSimpleAssignTarget(le)&&(y.parenthesizedAssign=se),y.parenthesizedBind<0&&(y.parenthesizedBind=se)),le;case Re.bracketL:return w=this.startNode(),this.next(),w.elements=this.parseExprList(Re.bracketR,!0,!0,y),this.finishNode(w,"ArrayExpression");case Re.braceL:return this.parseObj(!1,y);case Re._function:return w=this.startNode(),this.next(),this.parseFunction(w,0);case Re._class:return this.parseClass(this.startNode(),!1);case Re._new:return this.parseNew();case Re.backQuote:return this.parseTemplate();case Re._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},it.parseDynamicImport=function(){var y=this.startNode();return this.next(),this.type!==Re.parenL&&this.unexpected(),this.finishNode(y,"Import")},it.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")},it.parseParenExpression=function(){this.expect(Re.parenL);var y=this.parseExpression();return this.expect(Re.parenR),y},it.parseParenAndDistinguishExpression=function(y){var w,E=this.start,P=this.startLoc,q=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var ne,oe=this.start,ie=this.startLoc,se=[],le=!0,pe=!1,ge=new DestructuringErrors,me=this.yieldPos,he=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Re.parenR;){if(le?le=!1:this.expect(Re.comma),q&&this.afterTrailingComma(Re.parenR,!0)){pe=!0;break}if(this.type===Re.ellipsis){ne=this.start,se.push(this.parseParenItem(this.parseRestBinding())),this.type===Re.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}se.push(this.parseMaybeAssign(!1,ge,this.parseParenItem))}var ve=this.start,ye=this.startLoc;if(this.expect(Re.parenR),y&&!this.canInsertSemicolon()&&this.eat(Re.arrow))return this.checkPatternErrors(ge,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=me,this.awaitPos=he,this.parseParenArrowList(E,P,se);se.length&&!pe||this.unexpected(this.lastTokStart),ne&&this.unexpected(ne),this.checkExpressionErrors(ge,!0),this.yieldPos=me||this.yieldPos,this.awaitPos=he||this.awaitPos,se.length>1?((w=this.startNodeAt(oe,ie)).expressions=se,this.finishNodeAt(w,"SequenceExpression",ve,ye)):w=se[0]}else w=this.parseParenExpression();if(this.options.preserveParens){var _e=this.startNodeAt(E,P);return _e.expression=w,this.finishNode(_e,"ParenthesizedExpression")}return w},it.parseParenItem=function(y){return y},it.parseParenArrowList=function(y,w,E){return this.parseArrowExpression(this.startNodeAt(y,w),E)};var st=[];it.parseNew=function(){var y=this.startNode(),w=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Re.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 P=this.start,q=this.startLoc;return y.callee=this.parseSubscripts(this.parseExprAtom(),P,q,!0),this.options.ecmaVersion>10&&"Import"===y.callee.type&&this.raise(y.callee.start,"Cannot use new with import(...)"),this.eat(Re.parenL)?y.arguments=this.parseExprList(Re.parenR,this.options.ecmaVersion>=8&&"Import"!==y.callee.type,!1):y.arguments=st,this.finishNode(y,"NewExpression")},it.parseTemplateElement=function(y){var w=y.isTagged,E=this.startNode();return this.type===Re.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===Re.backQuote,this.finishNode(E,"TemplateElement")},it.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 P=this.parseTemplateElement({isTagged:w});for(E.quasis=[P];!P.tail;)this.type===Re.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Re.dollarBraceL),E.expressions.push(this.parseExpression()),this.expect(Re.braceR),E.quasis.push(P=this.parseTemplateElement({isTagged:w}));return this.next(),this.finishNode(E,"TemplateLiteral")},it.isAsyncProp=function(y){return!y.computed&&"Identifier"===y.key.type&&"async"===y.key.name&&(this.type===Re.name||this.type===Re.num||this.type===Re.string||this.type===Re.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Re.star)&&!we.test(this.input.slice(this.lastTokEnd,this.start))},it.parseObj=function(y,w){var E=this.startNode(),P=!0,q={};for(E.properties=[],this.next();!this.eat(Re.braceR);){if(P)P=!1;else if(this.expect(Re.comma),this.afterTrailingComma(Re.braceR))break;var ne=this.parseProperty(y,w);y||this.checkPropClash(ne,q,w),E.properties.push(ne)}return this.finishNode(E,y?"ObjectPattern":"ObjectExpression")},it.parseProperty=function(y,w){var E,P,q,ne,oe=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Re.ellipsis))return y?(oe.argument=this.parseIdent(!1),this.type===Re.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(oe,"RestElement")):(this.type===Re.parenL&&w&&(w.parenthesizedAssign<0&&(w.parenthesizedAssign=this.start),w.parenthesizedBind<0&&(w.parenthesizedBind=this.start)),oe.argument=this.parseMaybeAssign(!1,w),this.type===Re.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)&&(q=this.start,ne=this.startLoc),y||(E=this.eat(Re.star)));var ie=this.containsEsc;return this.parsePropertyName(oe),!y&&!ie&&this.options.ecmaVersion>=8&&!E&&this.isAsyncProp(oe)?(P=!0,E=this.options.ecmaVersion>=9&&this.eat(Re.star),this.parsePropertyName(oe,w)):P=!1,this.parsePropertyValue(oe,y,E,P,q,ne,w,ie),this.finishNode(oe,"Property")},it.parsePropertyValue=function(y,w,E,P,q,ne,oe,ie){if((E||P)&&this.type===Re.colon&&this.unexpected(),this.eat(Re.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===Re.parenL)w&&this.unexpected(),y.kind="init",y.method=!0,y.value=this.parseMethod(E,P);else if(w||ie||!(this.options.ecmaVersion>=5)||y.computed||"Identifier"!==y.key.type||"get"!==y.key.name&&"set"!==y.key.name||this.type===Re.comma||this.type===Re.braceR)this.options.ecmaVersion>=6&&!y.computed&&"Identifier"===y.key.type?((E||P)&&this.unexpected(),this.checkUnreserved(y.key),"await"!==y.key.name||this.awaitIdentPos||(this.awaitIdentPos=q),y.kind="init",w?y.value=this.parseMaybeDefault(q,ne,y.key):this.type===Re.eq&&oe?(oe.shorthandAssign<0&&(oe.shorthandAssign=this.start),y.value=this.parseMaybeDefault(q,ne,y.key)):y.value=y.key,y.shorthand=!0):this.unexpected();else{(E||P)&&this.unexpected(),y.kind=y.key.name,this.parsePropertyName(y),y.value=this.parseMethod(!1);var se="get"===y.kind?0:1;if(y.value.params.length!==se){var le=y.value.start;"get"===y.kind?this.raiseRecoverable(le,"getter should have no params"):this.raiseRecoverable(le,"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")}},it.parsePropertyName=function(y){if(this.options.ecmaVersion>=6){if(this.eat(Re.bracketL))return y.computed=!0,y.key=this.parseMaybeAssign(),this.expect(Re.bracketR),y.key;y.computed=!1}return y.key=this.type===Re.num||this.type===Re.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},it.initFunction=function(y){y.id=null,this.options.ecmaVersion>=6&&(y.generator=y.expression=!1),this.options.ecmaVersion>=8&&(y.async=!1)},it.parseMethod=function(y,w,E){var P=this.startNode(),q=this.yieldPos,ne=this.awaitPos,oe=this.awaitIdentPos;return this.initFunction(P),this.options.ecmaVersion>=6&&(P.generator=y),this.options.ecmaVersion>=8&&(P.async=!!w),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(w,P.generator)|(E?128:0)),this.expect(Re.parenL),P.params=this.parseBindingList(Re.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(P,!1,!0),this.yieldPos=q,this.awaitPos=ne,this.awaitIdentPos=oe,this.finishNode(P,"FunctionExpression")},it.parseArrowExpression=function(y,w,E){var P=this.yieldPos,q=this.awaitPos,ne=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=P,this.awaitPos=q,this.awaitIdentPos=ne,this.finishNode(y,"ArrowFunctionExpression")},it.parseFunctionBody=function(y,w,E){var P=w&&this.type!==Re.braceL,q=this.strict,ne=!1;if(P)y.body=this.parseMaybeAssign(),y.expression=!0,this.checkParams(y,!1);else{var oe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(y.params);q&&!oe||(ne=this.strictDirective(this.end))&&oe&&this.raiseRecoverable(y.start,"Illegal 'use strict' directive in function with non-simple parameter list");var ie=this.labels;this.labels=[],ne&&(this.strict=!0),this.checkParams(y,!q&&!ne&&!w&&!E&&this.isSimpleParamList(y.params)),y.body=this.parseBlock(!1),y.expression=!1,this.adaptDirectivePrologue(y.body.body),this.labels=ie}this.exitScope(),this.strict&&y.id&&this.checkLVal(y.id,5),this.strict=q},it.isSimpleParamList=function(y){for(var w=0,E=y;w-1||q.functions.indexOf(y)>-1||q.var.indexOf(y)>-1,q.lexical.push(y),this.inModule&&1&q.flags&&delete this.undefinedExports[y]}else if(4===w){this.currentScope().lexical.push(y)}else if(3===w){var ne=this.currentScope();P=this.treatFunctionsAsVar?ne.lexical.indexOf(y)>-1:ne.lexical.indexOf(y)>-1||ne.var.indexOf(y)>-1,ne.functions.push(y)}else for(var oe=this.scopeStack.length-1;oe>=0;--oe){var ie=this.scopeStack[oe];if(ie.lexical.indexOf(y)>-1&&!(32&ie.flags&&ie.lexical[0]===y)||!this.treatFunctionsAsVarInScope(ie)&&ie.functions.indexOf(y)>-1){P=!0;break}if(ie.var.push(y),this.inModule&&1&ie.flags&&delete this.undefinedExports[y],3&ie.flags)break}P&&this.raiseRecoverable(E,"Identifier '"+y+"' has already been declared")},ct.checkLocalExport=function(y){-1===this.scopeStack[0].lexical.indexOf(y.name)&&-1===this.scopeStack[0].var.indexOf(y.name)&&(this.undefinedExports[y.name]=y)},ct.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ct.currentVarScope=function(){for(var y=this.scopeStack.length-1;;y--){var w=this.scopeStack[y];if(3&w.flags)return w}},ct.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 ut=function Node(y,w,E){this.type="",this.start=w,this.end=0,y.options.locations&&(this.loc=new Be(y,E)),y.options.directSourceFile&&(this.sourceFile=y.options.directSourceFile),y.options.ranges&&(this.range=[w,0])},pt=Ne.prototype;function finishNodeAt(y,w,E,P){return y.type=w,y.end=E,this.options.locations&&(y.loc.end=P),this.options.ranges&&(y.range[1]=E),y}pt.startNode=function(){return new ut(this,this.start,this.startLoc)},pt.startNodeAt=function(y,w){return new ut(this,y,w)},pt.finishNode=function(y,w){return finishNodeAt.call(this,y,w,this.lastTokEnd,this.lastTokEndLoc)},pt.finishNodeAt=function(y,w,E,P){return finishNodeAt.call(this,y,w,E,P)};var gt=function TokContext(y,w,E,P,q){this.token=y,this.isExpr=!!w,this.preserveSpace=!!E,this.override=P,this.generator=!!q},mt={b_stat:new gt("{",!1),b_expr:new gt("{",!0),b_tmpl:new gt("${",!1),p_stat:new gt("(",!1),p_expr:new gt("(",!0),q_tmpl:new gt("`",!0,!0,(function(y){return y.tryReadTemplateToken()})),f_stat:new gt("function",!1),f_expr:new gt("function",!0),f_expr_gen:new gt("function",!0,!1,null,!0),f_gen:new gt("function",!1,!1,null,!0)},ht=Ne.prototype;ht.initialContext=function(){return[mt.b_stat]},ht.braceIsBlock=function(y){var w=this.curContext();return w===mt.f_expr||w===mt.f_stat||(y!==Re.colon||w!==mt.b_stat&&w!==mt.b_expr?y===Re._return||y===Re.name&&this.exprAllowed?we.test(this.input.slice(this.lastTokEnd,this.start)):y===Re._else||y===Re.semi||y===Re.eof||y===Re.parenR||y===Re.arrow||(y===Re.braceL?w===mt.b_stat:y!==Re._var&&y!==Re._const&&y!==Re.name&&!this.exprAllowed):!w.isExpr)},ht.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},ht.updateContext=function(y){var w,E=this.type;E.keyword&&y===Re.dot?this.exprAllowed=!1:(w=E.updateContext)?w.call(this,y):this.exprAllowed=E.beforeExpr},Re.parenR.updateContext=Re.braceR.updateContext=function(){if(1!==this.context.length){var y=this.context.pop();y===mt.b_stat&&"function"===this.curContext().token&&(y=this.context.pop()),this.exprAllowed=!y.isExpr}else this.exprAllowed=!0},Re.braceL.updateContext=function(y){this.context.push(this.braceIsBlock(y)?mt.b_stat:mt.b_expr),this.exprAllowed=!0},Re.dollarBraceL.updateContext=function(){this.context.push(mt.b_tmpl),this.exprAllowed=!0},Re.parenL.updateContext=function(y){var w=y===Re._if||y===Re._for||y===Re._with||y===Re._while;this.context.push(w?mt.p_stat:mt.p_expr),this.exprAllowed=!0},Re.incDec.updateContext=function(){},Re._function.updateContext=Re._class.updateContext=function(y){!y.beforeExpr||y===Re.semi||y===Re._else||y===Re._return&&we.test(this.input.slice(this.lastTokEnd,this.start))||(y===Re.colon||y===Re.braceL)&&this.curContext()===mt.b_stat?this.context.push(mt.f_stat):this.context.push(mt.f_expr),this.exprAllowed=!1},Re.backQuote.updateContext=function(){this.curContext()===mt.q_tmpl?this.context.pop():this.context.push(mt.q_tmpl),this.exprAllowed=!1},Re.star.updateContext=function(y){if(y===Re._function){var w=this.context.length-1;this.context[w]===mt.f_expr?this.context[w]=mt.f_expr_gen:this.context[w]=mt.f_gen}this.exprAllowed=!0},Re.name.updateContext=function(y){var w=!1;this.options.ecmaVersion>=6&&y!==Re.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(w=!0),this.exprAllowed=w};var ft="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",vt=ft+" Extended_Pictographic",yt={9:ft,10:vt,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",_t="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",Rt=_t+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",xt={9:_t,10:Rt,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"},Ct={};function buildUnicodeData(y){var w=Ct[y]={binary:wordsRegexp(yt[y]+" "+bt),nonBinary:{General_Category:wordsRegexp(bt),Script:wordsRegexp(xt[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 wt=Ne.prototype,kt=function RegExpValidationState(y){this.parser=y,this.validFlags="gim"+(y.options.ecmaVersion>=6?"uy":"")+(y.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Ct[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}kt.prototype.reset=function reset(y,w,E){var P=-1!==E.indexOf("u");this.start=0|y,this.source=w+"",this.flags=E,this.switchU=P&&this.parser.options.ecmaVersion>=6,this.switchN=P&&this.parser.options.ecmaVersion>=9},kt.prototype.raise=function raise(y){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+y)},kt.prototype.at=function at(y){var w=this.source,E=w.length;if(y>=E)return-1;var P=w.charCodeAt(y);if(!this.switchU||P<=55295||P>=57344||y+1>=E)return P;var q=w.charCodeAt(y+1);return q>=56320&&q<=57343?(P<<10)+q-56613888:P},kt.prototype.nextIndex=function nextIndex(y){var w=this.source,E=w.length;if(y>=E)return E;var P,q=w.charCodeAt(y);return!this.switchU||q<=55295||q>=57344||y+1>=E||(P=w.charCodeAt(y+1))<56320||P>57343?y+1:y+2},kt.prototype.current=function current(){return this.at(this.pos)},kt.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},kt.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},kt.prototype.eat=function eat(y){return this.current()===y&&(this.advance(),!0)},wt.validateRegExpFlags=function(y){for(var w=y.validFlags,E=y.flags,P=0;P-1&&this.raise(y.start,"Duplicate regular expression flag")}},wt.validateRegExpPattern=function(y){this.regexp_pattern(y),!y.switchN&&this.options.ecmaVersion>=9&&y.groupNames.length>0&&(y.switchN=!0,this.regexp_pattern(y))},wt.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},wt.regexp_eatQuantifier=function(y,w){return void 0===w&&(w=!1),!!this.regexp_eatQuantifierPrefix(y,w)&&(y.eat(63),!0)},wt.regexp_eatQuantifierPrefix=function(y,w){return y.eat(42)||y.eat(43)||y.eat(63)||this.regexp_eatBracedQuantifier(y,w)},wt.regexp_eatBracedQuantifier=function(y,w){var E=y.pos;if(y.eat(123)){var P=0,q=-1;if(this.regexp_eatDecimalDigits(y)&&(P=y.lastIntValue,y.eat(44)&&this.regexp_eatDecimalDigits(y)&&(q=y.lastIntValue),y.eat(125)))return-1!==q&&q=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},wt.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)},wt.regexp_eatInvalidBracedQuantifier=function(y){return this.regexp_eatBracedQuantifier(y,!0)&&y.raise("Nothing to repeat"),!1},wt.regexp_eatSyntaxCharacter=function(y){var w=y.current();return!!isSyntaxCharacter(w)&&(y.lastIntValue=w,y.advance(),!0)},wt.regexp_eatPatternCharacters=function(y){for(var w=y.pos,E=0;-1!==(E=y.current())&&!isSyntaxCharacter(E);)y.advance();return y.pos!==w},wt.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)},wt.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")}},wt.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},wt.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},wt.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)},wt.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)},wt.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)},wt.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},wt.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},wt.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)},wt.regexp_eatCControlLetter=function(y){var w=y.pos;if(y.eat(99)){if(this.regexp_eatControlLetter(y))return!0;y.pos=w}return!1},wt.regexp_eatZero=function(y){return 48===y.current()&&!isDecimalDigit(y.lookahead())&&(y.lastIntValue=0,y.advance(),!0)},wt.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)},wt.regexp_eatControlLetter=function(y){var w=y.current();return!!isControlLetter(w)&&(y.lastIntValue=w%32,y.advance(),!0)},wt.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 P=y.pos;if(y.eat(92)&&y.eat(117)&&this.regexp_eatFixedHexDigits(y,4)){var q=y.lastIntValue;if(q>=56320&&q<=57343)return y.lastIntValue=1024*(E-55296)+(q-56320)+65536,!0}y.pos=P,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},wt.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)},wt.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},wt.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},wt.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 P=y.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(y,E,P),!0}}if(y.pos=w,this.regexp_eatLoneUnicodePropertyNameOrValue(y)){var q=y.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(y,q),!0}return!1},wt.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")},wt.regexp_validateUnicodePropertyNameOrValue=function(y,w){y.unicodeProperties.binary.test(w)||y.raise("Invalid property name")},wt.regexp_eatUnicodePropertyName=function(y){var w=0;for(y.lastStringValue="";isUnicodePropertyNameCharacter(w=y.current());)y.lastStringValue+=codePointToString(w),y.advance();return""!==y.lastStringValue},wt.regexp_eatUnicodePropertyValue=function(y){var w=0;for(y.lastStringValue="";isUnicodePropertyValueCharacter(w=y.current());)y.lastStringValue+=codePointToString(w),y.advance();return""!==y.lastStringValue},wt.regexp_eatLoneUnicodePropertyNameOrValue=function(y){return this.regexp_eatUnicodePropertyValue(y)},wt.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},wt.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")}}},wt.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 P=y.current();return 93!==P&&(y.lastIntValue=P,y.advance(),!0)},wt.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)},wt.regexp_eatClassControlLetter=function(y){var w=y.current();return!(!isDecimalDigit(w)&&95!==w)&&(y.lastIntValue=w%32,y.advance(),!0)},wt.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},wt.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},wt.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},wt.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},wt.regexp_eatOctalDigit=function(y){var w=y.current();return isOctalDigit(w)?(y.lastIntValue=w-48,y.advance(),!0):(y.lastIntValue=0,!1)},wt.regexp_eatFixedHexDigits=function(y,w){var E=y.pos;y.lastIntValue=0;for(var P=0;P>10),56320+(1023&y)))}St.next=function(){this.options.onToken&&this.options.onToken(new Mt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},St.getToken=function(){return this.next(),new Mt(this)},"undefined"!=typeof Symbol&&(St[Symbol.iterator]=function(){var y=this;return{next:function(){var w=y.getToken();return{done:w.type===Re.eof,value:w}}}}),St.curContext=function(){return this.context[this.context.length-1]},St.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(Re.eof):y.override?y.override(this):void this.readToken(this.fullCharCodeAtPos())},St.readToken=function(y){return isIdentifierStart(y,this.options.ecmaVersion>=6)||92===y?this.readWord():this.getTokenFromCode(y)},St.fullCharCodeAtPos=function(){var y=this.input.charCodeAt(this.pos);return y<=55295||y>=57344?y:(y<<10)+this.input.charCodeAt(this.pos+1)-56613888},St.skipBlockComment=function(){var y,w=this.options.onComment&&this.curPosition(),E=this.pos,P=this.input.indexOf("*/",this.pos+=2);if(-1===P&&this.raise(this.pos-2,"Unterminated comment"),this.pos=P+2,this.options.locations)for(ke.lastIndex=E;(y=ke.exec(this.input))&&y.index8&&y<14||y>=5760&&Me.test(String.fromCharCode(y))))break e;++this.pos}}},St.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)},St.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(Re.ellipsis)):(++this.pos,this.finishToken(Re.dot))},St.readToken_slash=function(){var y=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===y?this.finishOp(Re.assign,2):this.finishOp(Re.slash,1)},St.readToken_mult_modulo_exp=function(y){var w=this.input.charCodeAt(this.pos+1),E=1,P=42===y?Re.star:Re.modulo;return this.options.ecmaVersion>=7&&42===y&&42===w&&(++E,P=Re.starstar,w=this.input.charCodeAt(this.pos+2)),61===w?this.finishOp(Re.assign,E+1):this.finishOp(P,E)},St.readToken_pipe_amp=function(y){var w=this.input.charCodeAt(this.pos+1);return w===y?this.finishOp(124===y?Re.logicalOR:Re.logicalAND,2):61===w?this.finishOp(Re.assign,2):this.finishOp(124===y?Re.bitwiseOR:Re.bitwiseAND,1)},St.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Re.assign,2):this.finishOp(Re.bitwiseXOR,1)},St.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&&!we.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Re.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===w?this.finishOp(Re.assign,2):this.finishOp(Re.plusMin,1)},St.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(Re.assign,E+1):this.finishOp(Re.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(Re.relational,E)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},St.readToken_eq_excl=function(y){var w=this.input.charCodeAt(this.pos+1);return 61===w?this.finishOp(Re.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===y&&62===w&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Re.arrow)):this.finishOp(61===y?Re.eq:Re.prefix,1)},St.getTokenFromCode=function(y){switch(y){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Re.parenL);case 41:return++this.pos,this.finishToken(Re.parenR);case 59:return++this.pos,this.finishToken(Re.semi);case 44:return++this.pos,this.finishToken(Re.comma);case 91:return++this.pos,this.finishToken(Re.bracketL);case 93:return++this.pos,this.finishToken(Re.bracketR);case 123:return++this.pos,this.finishToken(Re.braceL);case 125:return++this.pos,this.finishToken(Re.braceR);case 58:return++this.pos,this.finishToken(Re.colon);case 63:return++this.pos,this.finishToken(Re.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Re.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(Re.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(y)+"'")},St.finishOp=function(y,w){var E=this.input.slice(this.pos,this.pos+w);return this.pos+=w,this.finishToken(y,E)},St.readRegexp=function(){for(var y,w,E=this.pos;;){this.pos>=this.input.length&&this.raise(E,"Unterminated regular expression");var P=this.input.charAt(this.pos);if(we.test(P)&&this.raise(E,"Unterminated regular expression"),y)y=!1;else{if("["===P)w=!0;else if("]"===P&&w)w=!1;else if("/"===P&&!w)break;y="\\"===P}++this.pos}var q=this.input.slice(E,this.pos);++this.pos;var ne=this.pos,oe=this.readWord1();this.containsEsc&&this.unexpected(ne);var ie=this.regexpState||(this.regexpState=new kt(this));ie.reset(E,q,oe),this.validateRegExpFlags(ie),this.validateRegExpPattern(ie);var se=null;try{se=new RegExp(q,oe)}catch(y){}return this.finishToken(Re.regexp,{pattern:q,flags:oe,value:se})},St.readInt=function(y,w){for(var E=this.pos,P=0,q=0,ne=null==w?1/0:w;q=97?oe-97+10:oe>=65?oe-65+10:oe>=48&&oe<=57?oe-48:1/0)>=y)break;++this.pos,P=P*y+ie}return this.pos===E||null!=w&&this.pos-E!==w?null:P},St.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(Re.num,E)},St.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 P=this.input.charCodeAt(this.pos);if(!E&&!y&&this.options.ecmaVersion>=11&&110===P){var q=this.input.slice(w,this.pos),ne="undefined"!=typeof BigInt?BigInt(q):null;return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Re.num,ne)}46!==P||E||(++this.pos,this.readInt(10),P=this.input.charCodeAt(this.pos)),69!==P&&101!==P||E||(43!==(P=this.input.charCodeAt(++this.pos))&&45!==P||++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),ie=E?parseInt(oe,8):parseFloat(oe);return this.finishToken(Re.num,ie)},St.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},St.readString=function(y){for(var w="",E=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var P=this.input.charCodeAt(this.pos);if(P===y)break;92===P?(w+=this.input.slice(E,this.pos),w+=this.readEscapedChar(!1),E=this.pos):(isNewLine(P,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return w+=this.input.slice(E,this.pos++),this.finishToken(Re.string,w)};var Et={};St.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(y){if(y!==Et)throw y;this.readInvalidTemplateToken()}this.inTemplateElement=!1},St.invalidStringToken=function(y,w){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Et;this.raise(y,w)},St.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!==Re.template&&this.type!==Re.invalidTemplate?(y+=this.input.slice(w,this.pos),this.finishToken(Re.template,y)):36===E?(this.pos+=2,this.finishToken(Re.dollarBraceL)):(++this.pos,this.finishToken(Re.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}},St.readInvalidTemplateToken=function(){for(;this.pos=48&&w<=55){var E=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],P=parseInt(E,8);return P>255&&(E=E.slice(0,-1),P=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(P)}return isNewLine(w)?"":String.fromCharCode(w)}},St.readHexChar=function(y){var w=this.pos,E=this.readInt(16,y);return null===E&&this.invalidStringToken(w,"Bad character escape sequence"),E},St.readWord1=function(){this.containsEsc=!1;for(var y="",w=!0,E=this.pos,P=this.options.ecmaVersion>=6;this.pos=0||(q[E]=y[E]);return q}(y,["classes","level","children"]),oe="h"+E,se=Object(ie.a)(w.heading,w["heading"+E]);return q.a.createElement(oe,_extends({},ne,{className:se}),P)};le.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,level:oe.a.oneOf([1,2,3,4,5,6]).isRequired,children:oe.a.node};var pe=Object(se.default)((function styles(y){var w=y.color,E=y.fontFamily,P=y.fontSize;return{heading:{margin:0,color:w.base,fontFamily:E.base,fontWeight:"normal"},heading1:{fontSize:P.h1},heading2:{fontSize:P.h2},heading3:{fontSize:P.h3},heading4:{fontSize:P.h4},heading5:{fontSize:P.h5,fontWeight:"bold"},heading6:{fontSize:P.h6,fontStyle:"italic"}}}))(le)},function(y,w,E){"use strict";var P=E(0),q=Object(P.createContext)(!1);w.a=q},function(y,w,E){"use strict";E.d(w,"a",(function(){return le}));var P=E(0),q=E.n(P),ne=E(2),oe=E.n(ne),ie=E(12),se=function CodeRenderer(y){var w=y.classes,E=y.children;return q.a.createElement("code",{className:w.code},E)};se.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,children:oe.a.node.isRequired};var le=Object(ie.default)((function styles(y){return{code:{fontFamily:y.fontFamily.monospace,fontSize:"inherit",color:"inherit",background:"transparent",whiteSpace:"inherit"}}}))(se)},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.default=y.exports,y.exports.__esModule=!0):(y.exports=_typeof=function _typeof(y){return y&&"function"==typeof Symbol&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},y.exports.default=y.exports,y.exports.__esModule=!0),_typeof(w)}y.exports=_typeof,y.exports.default=y.exports,y.exports.__esModule=!0},function(y,w,E){var P=E(46).f,q=E(79),ne=E(33)("toStringTag");y.exports=function(y,w,E){y&&!q(y=E?y:y.prototype,ne)&&P(y,ne,{configurable:!0,value:w})}},function(y,w,E){var P=E(10),q=E(114),ne=E(23),oe=E(312),ie="["+oe+"]",se=RegExp("^"+ie+ie+"*"),le=RegExp(ie+ie+"*$"),exporter=function(y,w,E){var q={},ie=ne((function(){return!!oe[y]()||"​…"!="​…"[y]()})),se=q[y]=ie?w(pe):oe[y];E&&(q[E]=se),P(P.P+P.F*ie,"String",q)},pe=exporter.trim=function(y,w){return y=String(q(y)),1&w&&(y=y.replace(se,"")),2&w&&(y=y.replace(le,"")),y};y.exports=exporter},function(y,w){y.exports={}},function(y,w,E){"use strict";var P=E(22),q=E(46),ne=E(45),oe=E(33)("species");y.exports=function(y){var w=P[y];ne&&w&&!w[oe]&&q.f(w,oe,{configurable:!0,get:function(){return this}})}},function(y,w){y.exports=function(y,w,E,P){if(!(y instanceof w)||void 0!==P&&P in y)throw TypeError(E+": incorrect invocation!");return y}},function(y,w,E){var P=E(73);y.exports=function(y,w,E){for(var q in w)P(y,q,w[q],E);return y}},function(y,w){var E,P,q=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{P="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(y){P=defaultClearTimeout}}();var ne,oe=[],ie=!1,se=-1;function cleanUpNextTick(){ie&&ne&&(ie=!1,ne.length?oe=ne.concat(oe):se=-1,oe.length&&drainQueue())}function drainQueue(){if(!ie){var y=runTimeout(cleanUpNextTick);ie=!0;for(var w=oe.length;w;){for(ne=oe,oe=[];++se1)for(var E=1;E=0||(q[E]=y[E]);return q}(y,["animating","color","hidesWhenStopped","size","style"]),we=oe.a.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},se({stroke:le,opacity:.2}),se({stroke:le,strokeDasharray:80,strokeDashoffset:60}));return oe.a.createElement(q.default,_extends({},Re,{accessibilityRole:"progressbar",accessibilityValue:ie,ref:w,style:[pe.container,_e]}),oe.a.createElement(q.default,{children:we,style:["number"==typeof ye?{height:ye,width:ye}:ge[ye],pe.animation,!P&&pe.animationPause,!P&&he&&pe.hidesWhenStopped]}))}));le.displayName="ActivityIndicator";var pe=P.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"}}),ge=P.default.create({small:{width:20,height:20},large:{width:36,height:36}});w.default=le},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withPaginatedMessageListContext=w.usePaginatedMessageListContext=w.PaginatedMessageListProvider=w.PaginatedMessageListContext=void 0;var ne=q(E(5)),oe=P(E(0)),ie=E(54),se=oe.default.createContext({});w.PaginatedMessageListContext=se;w.PaginatedMessageListProvider=function PaginatedMessageListProvider(y){var w=y.children,E=y.value;return oe.default.createElement(se.Provider,{value:E},w)};var le=function usePaginatedMessageListContext(){return(0,oe.useContext)(se)};w.usePaginatedMessageListContext=le;w.withPaginatedMessageListContext=function withPaginatedMessageListContext(y){var w=function WithPaginatedMessageListContextComponent(w){var E=le();return oe.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithPaginatedMessageListContext"+(0,ie.getDisplayName)(y),w}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withMessageOverlayContext=w.useMessageOverlayContext=w.MessageOverlayProvider=w.MessageOverlayContext=void 0;var ne=q(E(5)),oe=q(E(19)),ie=P(E(0)),se=E(54),le=ie.default.createContext({});w.MessageOverlayContext=le;w.MessageOverlayProvider=function MessageOverlayProvider(y){var w=y.children,E=y.value,P=(0,ie.useState)(null==E?void 0:E.data),q=(0,oe.default)(P,2),ne=q[0],se=q[1],pe={data:ne,reset:function reset(){se(null==E?void 0:E.data)},setData:se};return ie.default.createElement(le.Provider,{value:pe},w)};var pe=function useMessageOverlayContext(){return(0,ie.useContext)(le)};w.useMessageOverlayContext=pe;w.withMessageOverlayContext=function withMessageOverlayContext(y){var w=function WithMessageOverlayContextComponent(w){var E=pe();return ie.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithMessageOverlayContext"+(0,se.getDisplayName)(y),w}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withChannelsContext=w.useChannelsContext=w.ChannelsProvider=w.ChannelsContext=void 0;var ne=q(E(5)),oe=P(E(0)),ie=E(54),se=oe.default.createContext({});w.ChannelsContext=se;w.ChannelsProvider=function ChannelsProvider(y){var w=y.children,E=y.value;return oe.default.createElement(se.Provider,{value:E},w)};var le=function useChannelsContext(){return(0,oe.useContext)(se)};w.useChannelsContext=le;w.withChannelsContext=function withChannelsContext(y){var w=function WithChannelsContextComponent(w){var E=le();return oe.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithChannelsContext"+(0,ie.getDisplayName)(y),w}},function(y,w,E){var P=E(276),q=E(118);y.exports=function(y){return P(q(y))}},function(y,w,E){var P=E(64),q=E(158),ne=E(76),oe=E(404),ie=E(636),se=E(406),le=se.get,pe=se.enforce,ge=String(String).split("String");(y.exports=function(y,w,E,ie){var se,le=!!ie&&!!ie.unsafe,me=!!ie&&!!ie.enumerable,he=!!ie&&!!ie.noTargetGet;"function"==typeof E&&("string"!=typeof w||ne(E,"name")||q(E,"name",w),(se=pe(E)).source||(se.source=ge.join("string"==typeof w?w:""))),y!==P?(le?!he&&y[w]&&(me=!0):delete y[w],me?y[w]=E:q(y,w,E)):me?y[w]=E:oe(w,E)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&le(this).source||ie(this)}))},function(y,w,E){var P=E(639),q=E(64),aFunction=function(y){return"function"==typeof y?y:void 0};y.exports=function(y,w){return arguments.length<2?aFunction(P[y])||aFunction(q[y]):P[y]&&P[y][w]||q[y]&&q[y][w]}},function(y,w,E){var P=E(281),q=Math.min;y.exports=function(y){return y>0?q(P(y),9007199254740991):0}},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return Re})),E.d(w,"styles",(function(){return ye})),E.d(w,"ArgumentRenderer",(function(){return _e}));E(134),E(135),E(98),E(21),E(121);var P=E(0),q=E.n(P),ne=E(2),oe=E.n(ne),ie=E(12),se=E(37),le=E(160),pe=E(112),ge=E(228),me=E.n(ge),he=E(687),ve=E.n(he);var ye=function styles(y){return{block:{marginBottom:y.space[2]}}},_e=function ArgumentRenderer(y){var w=y.classes,E=y.name,P=y.type,ne=y.description,oe=y.returns,ie=y.block,ge=function _objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,P,q={},ne=Object.keys(y);for(P=0;P=0||(q[E]=y[E]);return q}(y,["classes","name","type","description","returns","block"]),he=P&&"OptionalType"===P.type,ye=ge.default;he&&(P=P.expression);var _e=P?ve.a.type.stringify(P):"",Re=q.a.createElement(me.a,null,oe&&"Returns",E&&q.a.createElement("span",null,q.a.createElement(le.default,null,E),P&&":"),P&&q.a.createElement(pe.a,null,_e,he&&"?",!!ye&&"="+ye),P&&ne&&"—",ne&&q.a.createElement(se.default,{text:""+ne,inline:!0}));return ie?q.a.createElement("div",{className:w.block},Re):Re};_e.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,name:oe.a.string,type:oe.a.object,default:oe.a.string,description:oe.a.string,returns:oe.a.bool,block:oe.a.bool};var Re=Object(ie.default)(ye)(_e)},function(y,w,E){"use strict";E.d(w,"a",(function(){return useElementLayout}));var P=E(15),q=E(124),ne=E(32),oe=(P.canUseDOM,null);function useElementLayout(y,w){var E=function getResizeObserver(){return P.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&&ne.a.measure(w,(function(w,P,q,ne,oe,ie){var se={nativeEvent:{layout:{x:w,y:P,width:q,height:ne,left:oe,top:ie}},timeStamp:Date.now()};Object.defineProperty(se.nativeEvent,"target",{enumerable:!0,get:function get(){return y.target}}),E(se)}))}))}))),oe}();Object(q.a)((function(){var E=y.current;null!=E&&(E.__reactLayoutHandler=w)}),[y,w]),Object(q.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 P=/[A-Z]/g,q=/^ms-/,ne={};function toHyphenLower(y){return"-"+y.toLowerCase()}w.default=function hyphenateStyleName(y){if(ne.hasOwnProperty(y))return ne[y];var w=y.replace(P,toHyphenLower);return ne[y]=q.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=q.hex6.exec(y))?parseInt(w[1]+"ff",16)>>>0:ne.hasOwnProperty(y)?ne[y]:(w=q.rgb.exec(y))?(parse255(w[1])<<24|parse255(w[2])<<16|parse255(w[3])<<8|255)>>>0:(w=q.rgba.exec(y))?(parse255(w[1])<<24|parse255(w[2])<<16|parse255(w[3])<<8|parse1(w[4]))>>>0:(w=q.hex3.exec(y))?parseInt(w[1]+w[1]+w[2]+w[2]+w[3]+w[3]+"ff",16)>>>0:(w=q.hex8.exec(y))?parseInt(w[1],16)>>>0:(w=q.hex4.exec(y))?parseInt(w[1]+w[1]+w[2]+w[2]+w[3]+w[3]+w[4]+w[4],16)>>>0:(w=q.hsl.exec(y))?(255|hslToRgb(parse360(w[1]),parsePercentage(w[2]),parsePercentage(w[3])))>>>0:(w=q.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 P=E<.5?E*(1+w):E+w-E*w,q=2*E-P,ne=hue2rgb(q,P,y+1/3),oe=hue2rgb(q,P,y),ie=hue2rgb(q,P,y-1/3);return Math.round(255*ne)<<24|Math.round(255*oe)<<16|Math.round(255*ie)<<8}var E="[-+]?\\d*\\.?\\d+",P=E+"%";function toArray(y){return Array.prototype.slice.call(y,0)}function call(){return"\\(\\s*("+toArray(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var q={rgb:new RegExp("rgb"+call(E,E,E)),rgba:new RegExp("rgba"+call(E,E,E,E)),hsl:new RegExp("hsl"+call(E,P,P)),hsla:new RegExp("hsla"+call(E,P,P,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 ne={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 P=E(966);y.exports=P},function(y,w,E){"use strict";var P=E(18),q=function(){function Animation(){}var y=Animation.prototype;return y.start=function start(y,w,E,P,q){},y.stop=function stop(){this.__nativeId&&P.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){P.a.API.enableQueue(),y.__makeNative(),P.a.API.disableQueue(),this.__nativeId=P.a.generateNewAnimationId(),P.a.API.startAnimatingNode(this.__nativeId,y.__getNativeTag(),this.__getNativeAnimationConfig(),this.__debouncedOnEnd.bind(this))},Animation}();w.a=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 P=E(15);var q=E(71),ne=E(291);var oe={height:0,width:0};var ie=function createCompileableStyle(y){var w=y.shadowColor,E=y.shadowOffset,P=y.shadowOpacity,ie=y.shadowRadius,se=y.textShadowColor,le=y.textShadowOffset,pe=y.textShadowRadius,ge=function _objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,P,q={},ne=Object.keys(y);for(P=0;P=0||(q[E]=y[E]);return q}(y,["shadowColor","shadowOffset","shadowOpacity","shadowRadius","textShadowColor","textShadowOffset","textShadowRadius"]);return null==w&&null==E&&null==P&&null==ie||function boxShadowReducer(y,w){var E=w.boxShadow,P=Object(ne.a)(w);null!=P&&(y.boxShadow=E?E+", "+P:P)}(ge,y),null==se&&null==le&&null==pe||function textShadowReducer(y,w){var E=w.textShadowColor,P=w.textShadowOffset,ne=w.textShadowRadius,ie=P||oe,se=ie.height,le=ie.width,pe=ne||0,ge=Object(q.a)(le),me=Object(q.a)(se),he=Object(q.a)(pe),ve=Object(q.a)(E,"textShadowColor");!ve||0===se&&0===le&&0===pe||null==ge||null==me||null==he||(y.textShadow=ge+" "+me+" "+he+" "+ve)}(ge,y),ge},se=Array.prototype.slice;function createOrderedCSSStyleSheet(y){var w,E={},P={};null!=y&&se.call(y.cssRules).forEach((function(y,q){var ne=y.cssText;if(ne.indexOf("stylesheet-group")>-1)w=function decodeGroupRule(y){return Number(y.selectorText.split(/["']/)[1])}(y),E[w]={start:q,rules:[ne]};else{var oe=getSelectorText(ne);null!=oe&&(P[oe]=!0,E[w].rules.push(ne))}}));function sheetInsert(y,w,P){var q=getOrderedGroups(E),ne=q.indexOf(w)+1,oe=q[ne],ie=null!=oe&&null!=E[oe].start?E[oe].start:y.cssRules.length,se=function insertRuleAt(y,w,E){try{return y.insertRule(w,E),!0}catch(y){return!1}}(y,P,ie);if(se){null==E[w].start&&(E[w].start=ie);for(var le=ne;lew?1:-1}))}var le=/\s*([,])\s*/g;function getSelectorText(y){var w=y.split("{")[0].trim();return""!==w?w.replace(le,"$1"):null}var pe=function flattenArray(y){return function flattenDown(y,w){for(var E=0;E-1){var ne=P.split(/,\s*/);ne[ne.indexOf("System")]=tt.e,w[E]=ne.join(",")}else w[E]="monospace"===P?tt.a:P;break;case"fontVariant":Array.isArray(P)&&P.length>0&&(w.fontVariant=P.join(" "));break;case"textAlignVertical":w.verticalAlign="center"===P?"middle":P;break;case"textDecorationLine":rt?w.textDecorationLine=P:w.textDecoration=P;break;case"transform":case"transformMatrix":!function resolveTransform(y,w){var E=w.transform;Array.isArray(w.transform)&&(E=w.transform.map(ot).join(" ")),y.transform=E}(w,y);break;case"writingDirection":w.direction=P;break;default:var oe=tt.d[E];oe?oe.forEach((function(E,q){void 0===y[E]&&(w[E]=P)})):w[E]=Array.isArray(P)?P.join(","):P}})),w};var st=function hash(y){return function murmurhash2_32_gc(y,w){for(var E,P=y.length,q=w^P,ne=0;P>=4;)E=1540483477*(65535&(E=255&y.charCodeAt(ne)|(255&y.charCodeAt(++ne))<<8|(255&y.charCodeAt(++ne))<<16|(255&y.charCodeAt(++ne))<<24))+((1540483477*(E>>>16)&65535)<<16),q=1540483477*(65535&q)+((1540483477*(q>>>16)&65535)<<16)^(E=1540483477*(65535&(E^=E>>>24))+((1540483477*(E>>>16)&65535)<<16)),P-=4,++ne;switch(P){case 3:q^=(255&y.charCodeAt(ne+2))<<16;case 2:q^=(255&y.charCodeAt(ne+1))<<8;case 1:q=1540483477*(65535&(q^=255&y.charCodeAt(ne)))+((1540483477*(q>>>16)&65535)<<16)}return q=1540483477*(65535&(q^=q>>>13))+((1540483477*(q>>>16)&65535)<<16),(q^=q>>>15)>>>0}(y,1).toString(36)},dt=E(184),ct=E(662),lt=E.n(ct),ut=E(663),pt=E.n(ut),gt=E(664),mt=E.n(gt),ht=E(665),ft=E.n(ht),vt=E(666),yt=E.n(vt),bt=E(667),_t=E.n(bt),Rt=E(668),xt=E.n(Rt),Ct=E(669),wt=E.n(Ct),kt=E(670),Mt=E.n(kt),St=E(671),Et=E.n(St),Dt=E(672),At=E.n(Dt),Pt=E(673),Tt=E.n(Pt),Lt=E(674),It=E.n(Lt),Ot=E(675),Ft=E.n(Ot),zt=E(676),jt=E.n(zt),Bt=["Webkit"],Vt=["Moz"],Nt=["ms"],Ht=["Webkit","Moz"],Ut=["Webkit","ms"],Gt=["Webkit","Moz","ms"],qt={plugins:[pt.a,mt.a,ft.a,yt.a,_t.a,xt.a,wt.a,Mt.a,Et.a,At.a,Tt.a,It.a,Ft.a,jt.a],prefixMap:{animation:Bt,animationDelay:Bt,animationDirection:Bt,animationFillMode:Bt,animationDuration:Bt,animationIterationCount:Bt,animationName:Bt,animationPlayState:Bt,animationTimingFunction:Bt,appearance:Ht,userSelect:Gt,textEmphasisPosition:Bt,textEmphasis:Bt,textEmphasisStyle:Bt,textEmphasisColor:Bt,boxDecorationBreak:Bt,clipPath:Bt,maskImage:Bt,maskMode:Bt,maskRepeat:Bt,maskPosition:Bt,maskClip:Bt,maskOrigin:Bt,maskSize:Bt,maskComposite:Bt,mask:Bt,maskBorderSource:Bt,maskBorderMode:Bt,maskBorderSlice:Bt,maskBorderWidth:Bt,maskBorderOutset:Bt,maskBorderRepeat:Bt,maskBorder:Bt,maskType:Bt,textDecorationStyle:Bt,textDecorationSkip:Bt,textDecorationLine:Bt,textDecorationColor:Bt,filter:Bt,fontFeatureSettings:Bt,breakAfter:Gt,breakBefore:Gt,breakInside:Gt,columnCount:Ht,columnFill:Ht,columnGap:Ht,columnRule:Ht,columnRuleColor:Ht,columnRuleStyle:Ht,columnRuleWidth:Ht,columns:Ht,columnSpan:Ht,columnWidth:Ht,writingMode:Ut,flex:Ut,flexBasis:Bt,flexDirection:Ut,flexGrow:Bt,flexFlow:Ut,flexShrink:Bt,flexWrap:Ut,alignContent:Bt,alignItems:Bt,alignSelf:Bt,justifyContent:Bt,order:Bt,transform:Bt,transformOrigin:Bt,transformOriginX:Bt,transformOriginY:Bt,backfaceVisibility:Bt,perspective:Bt,perspectiveOrigin:Bt,transformStyle:Bt,transformOriginZ:Bt,backdropFilter:Bt,fontKerning:Bt,scrollSnapType:Ut,scrollSnapPointsX:Ut,scrollSnapPointsY:Ut,scrollSnapDestination:Ut,scrollSnapCoordinate:Ut,shapeImageThreshold:Bt,shapeImageMargin:Bt,shapeImageOutside:Bt,hyphens:Gt,flowInto:Ut,flowFrom:Ut,regionFragment:Ut,textOrientation:Bt,textAlignLast:Vt,tabSize:Vt,wrapFlow:Nt,wrapThrough:Nt,wrapMargin:Nt,touchAction:Nt,textSizeAdjust:["ms","Webkit"],borderImage:Bt,borderImageOutset:Bt,borderImageRepeat:Bt,borderImageSlice:Bt,borderImageSource:Bt,borderImageWidth:Bt,transitionDelay:Bt,transitionDuration:Bt,transitionProperty:Bt,transitionTimingFunction:Bt}},Wt=lt()(qt),Kt=Wt;function ownKeys(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}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 $t={get:function get(y,w){if(null!=$t[y]&&$t[y].hasOwnProperty(w)&&null!=$t[y][w])return $t[y][w]},set:function set(y,w,E){return null==$t[y]&&($t[y]={}),$t[y][w]=E}};function atomic(y){return Object.keys(y).sort().reduce((function(w,E){var P=y[E];if(null!=P){var q=stringifyValueWithProperty(P,E),ne=$t.get(E,q);if(null!=ne){w[ne.identifier]=ne}else{var oe=createIdentifier("r",E,P),ie=function createAtomicRules(y,w,E){var P=[],q="."+y;switch(w){case"animationKeyframes":var ne=processKeyframesValue(E),oe=ne.animationNames,ie=ne.rules,se=createDeclarationBlock({animationName:oe.join(",")});P.push.apply(P,[""+q+se].concat(ie));break;case"placeholderTextColor":var le=createDeclarationBlock({color:E,opacity:1});P.push(q+"::-webkit-input-placeholder"+le,q+"::-moz-placeholder"+le,q+":-ms-input-placeholder"+le,q+"::placeholder"+le);break;case"pointerEvents":var pe,ge=E;if("auto"===E||"box-only"===E){if(ge="auto!important","box-only"===E){var me,he=createDeclarationBlock(((me={})[w]="none",me));P.push(q+">*"+he)}}else if(("none"===E||"box-none"===E)&&(ge="none!important","box-none"===E)){var ve,ye=createDeclarationBlock(((ve={})[w]="auto",ve));P.push(q+">*"+ye)}var _e=createDeclarationBlock(((pe={})[w]=ge,pe));P.push(""+q+_e);break;case"scrollbarWidth":var Re;"none"===E&&P.push(q+"::-webkit-scrollbar{display:none}");var we=createDeclarationBlock(((Re={})[w]=E,Re));P.push(""+q+we);break;default:var ke,Me=createDeclarationBlock(((ke={})[w]=E,ke));P.push(""+q+Me)}return P}(oe,E,P),se=$t.set(E,q,{property:E,value:stringifyValueWithProperty(P,E),identifier:oe,rules:ie});w[oe]=se}}return w}),{})}function classic(y,w){var E,P,q=createIdentifier("css",w,y),ne=y.animationKeyframes,oe=function compile_objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,P,q={},ne=Object.keys(y);for(P=0;P=0||(q[E]=y[E]);return q}(y,["animationKeyframes"]),ie=[],se="."+q;if(null!=ne){var le=processKeyframesValue(ne),pe=le.animationNames,ge=le.rules;P=pe.join(","),ie.push.apply(ie,ge)}var me=createDeclarationBlock(function _objectSpread(y){for(var w=1;w20&&(y+=" (original size: "+oe.length+")"),y}var se={recordTouchTrack:function recordTouchTrack(y,w){if(isMoveish(y))w.changedTouches.forEach(recordTouchMove);else if(isStartish(y))w.changedTouches.forEach(recordTouchStart),ie.numberActiveTouches=w.touches.length,1===ie.numberActiveTouches&&(ie.indexOfSingleActiveTouch=w.touches[0].identifier);else if(isEndish(y)){if(w.changedTouches.forEach(recordTouchEnd),ie.numberActiveTouches=w.touches.length,1===ie.numberActiveTouches)for(var E=0;E20?y%20:y}function createResponderEvent(y){var w,E,P,q=!1,oe=y.changedTouches,ie=y.type,me=!0===y.metaKey,he=!0===y.shiftKey,ve=oe&&oe[0].force||0,ye=normalizeIdentifier(oe&&oe[0].identifier||0),_e=oe&&oe[0].clientX||y.clientX,Re=oe&&oe[0].clientY||y.clientY,we=oe&&oe[0].pageX||y.pageX,ke=oe&&oe[0].pageY||y.pageY,Me="function"==typeof y.preventDefault?y.preventDefault.bind(y):le,Se=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:Se}}))}if(null!=oe)E=normalizeTouches(oe),P=normalizeTouches(y.touches);else{var Ae=[{force:ve,identifier:ye,get locationX(){return locationX(_e)},get locationY(){return locationY(Re)},pageX:we,pageY:ke,target:y.target,timestamp:Se}];E=Ae,P="mouseup"===ie||"dragstart"===ie?ge:Ae}var Te={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:y.defaultPrevented,dispatchConfig:pe,eventPhase:y.eventPhase,isDefaultPrevented:function isDefaultPrevented(){return y.defaultPrevented},isPropagationStopped:function isPropagationStopped(){return q},isTrusted:y.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:me,shiftKey:he,changedTouches:E,force:ve,identifier:ye,get locationX(){return locationX(_e)},get locationY(){return locationY(Re)},pageX:we,pageY:ke,target:y.target,timestamp:Se,touches:P,type:ie},persist:le,preventDefault:Me,stopPropagation:function stopPropagation(){q=!0},target:y.target,timeStamp:Se,touchHistory:se.touchHistory};function locationX(y){if(w=w||Object(ne.a)(Te.currentTarget))return y-w.left}function locationY(y){if(w=w||Object(ne.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=[],P=function getEventPath(y){return"selectionchange"===y.type?composedPathFallback(window.getSelection().anchorNode):null!=y.composedPath?y.composedPath():composedPathFallback(y.target)}(y),q=0;q=1&&"\n"!==w&&q}():"select"===y.type}var he={},ve=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],ye=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],_e={touchstart:ve,mousedown:ve,touchmove:ye,mousemove:ye,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},Re={id:null,idPath:null,node:null},we=new Map,ke=!1,Me=0,Se={id:null,node:null,idPath:null};function changeCurrentResponder(y){Se=y}function getResponderConfig(y){var w=we.get(y);return null!=w?w:he}function eventListener(y){var w=y.type,E=y.target;if("touchstart"===w&&(ke=!0),("touchmove"===w||Me>1)&&(ke=!1),!("mousedown"===w&&ke||"mousemove"===w&&ke||"mousemove"===w&&Me<1))if(ke&&"mouseup"===w)0===Me&&(ke=!1);else{var P=isStartish(w)&&function isPrimaryPointerDown(y){var w=y.altKey,E=y.button,P=y.buttons,q=y.ctrlKey,ne=y.type,oe=!1===w&&!1===q;return!!("touchstart"===ne||"touchmove"===ne||"mousedown"===ne&&(0===E||1===P)&&oe||"mousemove"===ne&&1===P&&oe)}(y),q=isMoveish(w),ne=isEndish(w),oe=function isScroll(y){return"scroll"===y}(w),ie=function isSelectionChange(y){return"select"===y||"selectionchange"===y}(w),le=createResponderEvent(y);(P||q||ne)&&(y.touches?Me=y.touches.length:P?Me=1:ne&&(Me=0),se.recordTouchTrack(w,le.nativeEvent));var pe,ge=getResponderPaths(y),me=!1;if(P||q||oe&&Me>0){var he=Se.idPath,ve=ge.idPath;if(null!=he&&null!=ve){var ye=function getLowestCommonAncestor(y,w){var E=y.length,P=w.length;if(0===E||0===P||y[E-1]!==w[P-1])return null;var q=y[0],ne=0,oe=w[0],ie=0;E-P>0&&(q=y[ne=E-P],E=P),P-E>0&&(oe=w[ie=P-E],P=E);for(var se=E;se--;){if(q===oe)return q;q=y[ne++],oe=w[ie++]}return null}(he,ve);if(null!=ye){var we=ve.indexOf(ye)+(ye===Se.id?1:0);ge={idPath:ve.slice(we),nodePath:ge.nodePath.slice(we)}}else ge=null}null!=ge&&null!=(pe=function findWantsResponder(y,w,E){var P=_e[w.type];if(null!=P){for(var q=y.idPath,ne=y.nodePath,oe=P[0],ie=P[1],se=P[2].bubbles,le=function check(y,w,P){var ne=getResponderConfig(y)[P];if(null!=ne&&(E.currentTarget=w,!0===ne(E)))return{id:y,node:w,idPath:q.slice(q.indexOf(y))}},pe=q.length-1;pe>=0;pe--){var ge=le(q[pe],ne[pe],oe);if(null!=ge)return ge;if(!0===E.isPropagationStopped())return}if(se)for(var me=0;me-1},propsToAccessibilityComponent:function propsToAccessibilityComponent(y){if(void 0===y&&(y=oe),"label"===y.accessibilityRole)return"label";var w=q(y);if(w){if("heading"===w){var E=y["aria-level"];return null!=E?"h"+E:"h1"}return ne[w]}},propsToAriaRole:q};w.a=ie},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 P=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;w.a=function multiplyStyleLengthValue(y,w){return"string"==typeof y?""+parseFloat(y)*w+function getUnit(y){return y.match(P)[1]}(y):function isNumeric(y){return!isNaN(parseFloat(y))&&isFinite(y)}(y)?y*w:void 0}},function(y,w,E){var P=E(590),q=E(591),ne=E(252),oe=E(93),ie=E(130),se=E(253),le=E(251),pe=E(254),ge=Object.prototype.hasOwnProperty;y.exports=function isEmpty(y){if(null==y)return!0;if(ie(y)&&(oe(y)||"string"==typeof y||"function"==typeof y.splice||se(y)||pe(y)||ne(y)))return!y.length;var w=q(y);if("[object Map]"==w||"[object Set]"==w)return!y.size;if(le(y))return!P(y).length;for(var E in y)if(ge.call(y,E))return!1;return!0}},function(y,w){function _defineProperties(y,w){for(var E=0;E=0||(q[E]=y[E]);return q}(y,["style"]);return ie.a.createElement(ne.default,_extends({},P,{ref:w,style:q.default.compose(pe.root,E)}))}));le.displayName="SafeAreaView";var pe=q.default.create({root:{paddingTop:se+"(safe-area-inset-top)",paddingRight:se+"(safe-area-inset-right)",paddingBottom:se+"(safe-area-inset-bottom)",paddingLeft:se+"(safe-area-inset-left)"}});w.default=le},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useMessageList=w.isMessageWithStylesReadByAndDateSeparator=void 0;var q=P(E(5)),ne=E(555),oe=E(556),ie=E(557),se=E(30),le=E(95),pe=E(175),ge=E(108);w.isMessageWithStylesReadByAndDateSeparator=function isMessageWithStylesReadByAndDateSeparator(y){return void 0!==y.readBy};w.useMessageList=function useMessageList(y){var w=y.inverted,E=y.noGroupByUser,P=y.threadList,me=(0,se.useChatContext)().client,he=(0,le.useChannelContext)(),ve=he.hideDateSeparators,ye=he.maxTimeBetweenGroupedMessages,_e=he.read,Re=(0,pe.usePaginatedMessageListContext)().messages,we=(0,ge.useThreadContext)().threadMessages,ke=P?we:Re,Me=P?void 0:_e,Se=(0,ne.getDateSeparators)({hideDateSeparators:ve,messages:ke,userId:me.userID}),Ae=(0,oe.getGroupStyles)({dateSeparators:Se,hideDateSeparators:ve,maxTimeBetweenGroupedMessages:ye,messages:ke,noGroupByUser:E,userId:me.userID}),Te=(0,ie.getReadStates)(me.userID,ke,Me),Oe=ke.filter((function(y){var w;return!y.deleted_at||(null==(w=y.user)?void 0:w.id)===me.userID})).map((function(y){return(0,q.default)({},y,{dateSeparator:Se[y.id]||void 0,groupStyles:Ae[y.id]||[],readBy:y.id&&Te[y.id]||!1})}));return w?Oe.reverse():Oe}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageTextContainer=void 0;var q=P(E(5)),ne=P(E(92)),oe=P(E(0)),ie=P(E(7)),se=P(E(8)),le=E(558),pe=E(57),ge=E(40),me=E(11),he=ie.default.create({textContainer:{maxWidth:250,paddingHorizontal:16}}),ve=oe.default.memo((function MessageTextContainerWithContext(y){var w=(0,me.useTheme)(),E=y.markdownRules,P=y.markdownStyles,ie=void 0===P?{}:P,pe=y.message,ge=y.MessageText,ve=y.onLongPress,ye=y.onlyEmojis,_e=y.onPress,Re=y.styles,we=void 0===Re?{}:Re,ke=w.theme,Me=ke.colors,Se=ke.messageSimple.content,Ae=Se.markdown,Te=Se.textContainer,Oe=Te.onlyEmojiMarkdown,Fe=(0,ne.default)(Te,["onlyEmojiMarkdown"]);if(!pe.text)return null;var je=(0,q.default)({},Ae,ie);return oe.default.createElement(se.default,{style:[he.textContainer,Fe,we.textContainer],testID:"message-text-container"},ge?oe.default.createElement(ge,(0,q.default)({},y,{renderText:le.renderText,theme:w})):(0,le.renderText)({colors:Me,markdownRules:E,markdownStyles:(0,q.default)({},je,ye?Oe:{}),message:pe,onLongPress:ve,onlyEmojis:ye,onPress:_e}))}),(function areEqual(y,w){var E,P,q,ne,oe,ie=y.message,se=y.onlyEmojis,le=w.message,pe=w.onlyEmojis;return ie.text===le.text&&(se===pe&&!((null==(E=ie.mentioned_users)?void 0:E.length)!==(null==(P=le.mentioned_users)?void 0:P.length)||!(0===(null==(q=le.mentioned_users)?void 0:q.length)||(null==(ne=ie.mentioned_users)?void 0:ne.length)&&(null==(oe=le.mentioned_users)?void 0:oe.length)&&ie.mentioned_users[0].name===le.mentioned_users[0].name)))})),ye=function MessageTextContainer(y){var w=(0,pe.useMessageContext)(),E=w.message,P=w.onLongPress,ne=w.onlyEmojis,ie=w.onPress,se=(0,ge.useMessagesContext)(),le=se.markdownRules,me=se.MessageText;return oe.default.createElement(ve,(0,q.default)({markdownRules:le,message:E,MessageText:me,onLongPress:P,onlyEmojis:ne,onPress:ie},y))};w.MessageTextContainer=ye,ye.displayName="MessageTextContainer{messageSimple{content}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.UploadProgressIndicator=void 0;var q=P(E(0)),ne=P(E(174)),oe=P(E(7)),ie=P(E(36)),se=P(E(8)),le=E(11),pe=E(42),ge=E(27),me=oe.default.create({activityIndicatorContainer:{alignItems:"center",bottom:0,justifyContent:"center",left:0,position:"absolute",right:0,top:0},container:{alignItems:"center",height:"100%",justifyContent:"center",position:"absolute",width:"100%"},overflowHidden:{overflow:"hidden"},overlay:{alignItems:"center",height:"100%",justifyContent:"center",opacity:0,position:"absolute",width:"100%"},retryButtonContainer:{alignItems:"center",bottom:0,justifyContent:"center",left:0,position:"absolute",right:0,top:0}}),he=function UploadProgressIndicator(y){var w=y.action,E=y.active,P=y.children,oe=y.style,he=y.type,ve=(0,le.useTheme)().theme,ye=ve.colors,_e=ye.overlay,Re=ye.white_smoke,we=ve.messageInput.uploadProgressIndicator,ke=we.container,Me=we.overlay;return E?q.default.createElement(se.default,{style:[me.overflowHidden,oe],testID:"active-upload-progress-indicator"},P,q.default.createElement(se.default,{style:[me.overlay,{backgroundColor:_e},Me]}),q.default.createElement(se.default,{style:[me.container,{backgroundColor:_e},ke]},he===ge.ProgressIndicatorTypes.IN_PROGRESS&&q.default.createElement(se.default,{style:me.activityIndicatorContainer},q.default.createElement(ne.default,{color:Re,testID:"upload-progress-indicator"})),he===ge.ProgressIndicatorTypes.RETRY&&q.default.createElement(ie.default,{onPress:w,style:me.retryButtonContainer},q.default.createElement(pe.Refresh,{height:18,pathFill:Re,testID:"retry-upload-progress-indicator",width:18})))):q.default.createElement(se.default,{style:[me.overflowHidden,oe],testID:"inactive-upload-progress-indicator"},P)};w.UploadProgressIndicator=he,he.displayName="UploadProgressIndicator{messageInput{uploadProgressIndicator}}"},function(y,w){var E={}.toString;y.exports=function(y){return E.call(y).slice(8,-1)}},function(y,w){y.exports={}},function(y,w,E){var P=E(1150),q=E(276),ne=E(132),oe=E(181),ie=E(646),se=[].push,createMethod=function(y){var w=1==y,E=2==y,le=3==y,pe=4==y,ge=6==y,me=7==y,he=5==y||ge;return function(ve,ye,_e,Re){for(var we,ke,Me=ne(ve),Se=q(Me),Ae=P(ye,_e,3),Te=oe(Se.length),Oe=0,Fe=Re||ie,je=w?Fe(ve,Te):E||me?Fe(ve,0):void 0;Te>Oe;Oe++)if((he||Oe in Se)&&(ke=Ae(we=Se[Oe],Oe,Me),y))if(w)je[Oe]=ke;else if(ke)switch(y){case 3:return!0;case 5:return we;case 6:return Oe;case 2:se.call(je,we)}else switch(y){case 4:return!1;case 7:se.call(je,we)}return ge?-1:le||pe?pe:je}};y.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterOut:createMethod(7)}},function(y,w,E){var P=E(85),q=E(35),ne=E(76),oe=Object.defineProperty,ie={},thrower=function(y){throw y};y.exports=function(y,w){if(ne(ie,y))return ie[y];w||(w={});var E=[][y],se=!!ne(w,"ACCESSORS")&&w.ACCESSORS,le=ne(w,0)?w[0]:thrower,pe=ne(w,1)?w[1]:void 0;return ie[y]=!!E&&!q((function(){if(se&&!P)return!0;var y={length:-1};se?oe(y,1,{enumerable:!0,get:thrower}):y[1]=1,E.call(y,le,pe)}))}},function(y,w,E){"use strict";var P=E(50),q=E(276),ne=E(178),oe=E(288),ie=[].join,se=q!=Object,le=oe("join",",");P({target:"Array",proto:!0,forced:se||!le},{join:function join(y){return ie.call(ne(this),void 0===y?",":y)}})},function(y,w,E){var P=E(83),q=E(954),ne=E(484),oe=Math.max,ie=Math.min;y.exports=function debounce(y,w,E){var se,le,pe,ge,me,he,ve=0,ye=!1,_e=!1,Re=!0;if("function"!=typeof y)throw new TypeError("Expected a function");function invokeFunc(w){var E=se,P=le;return se=le=void 0,ve=w,ge=y.apply(P,E)}function leadingEdge(y){return ve=y,me=setTimeout(timerExpired,w),ye?invokeFunc(y):ge}function shouldInvoke(y){var E=y-he;return void 0===he||E>=w||E<0||_e&&y-ve>=pe}function timerExpired(){var y=q();if(shouldInvoke(y))return trailingEdge(y);me=setTimeout(timerExpired,function remainingWait(y){var E=w-(y-he);return _e?ie(E,pe-(y-ve)):E}(y))}function trailingEdge(y){return me=void 0,Re&&se?invokeFunc(y):(se=le=void 0,ge)}function debounced(){var y=q(),E=shouldInvoke(y);if(se=arguments,le=this,he=y,E){if(void 0===me)return leadingEdge(he);if(_e)return clearTimeout(me),me=setTimeout(timerExpired,w),invokeFunc(he)}return void 0===me&&(me=setTimeout(timerExpired,w)),ge}return w=ne(w)||0,P(E)&&(ye=!!E.leading,pe=(_e="maxWait"in E)?oe(ne(E.maxWait)||0,w):pe,Re="trailing"in E?!!E.trailing:Re),debounced.cancel=function cancel(){void 0!==me&&clearTimeout(me),ve=0,se=he=le=me=void 0},debounced.flush=function flush(){return void 0===me?ge:trailingEdge(q())},debounced}},function(y,w,E){"use strict";E.r(w);var P=E(8),q=E(0),ne=E.n(q);w.default=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,P,q={},ne=Object.keys(y);for(P=0;P=0||(q[E]=y[E]);return q}(y,["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"]);return ne.a.createElement(P.default,w)}},function(y,w,E){var P=E(894),q=E(942)((function(y,w,E){P(y,w,E)}));y.exports=q},function(y,w,E){"use strict";var P=E(29),q=E(41),ne=E(9),oe=E.n(ne);var ie=1,se=function(y){function AnimatedValueXY(w){var E;E=y.call(this)||this;var q=w||{x:0,y:0};return"number"==typeof q.x&&"number"==typeof q.y?(E.x=new P.a(q.x),E.y=new P.a(q.y)):(oe()(q.x instanceof P.a&&q.y instanceof P.a,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),E.x=q.x,E.y=q.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(ie++),P=function jointCallback(E){E.value;y(w.__getValue())};return this._listeners[E]={x:this.x.addListener(P),y:this.y.addListener(P)},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}(q.a);w.a=se},function(y,w,E){"use strict";E(31);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w<+~=|^:(),"'`\s])/g,me="undefined"!=typeof CSS&&CSS.escape,jss_esm_escape=function(y){return me?me(y):y.replace(ge,"\\$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 P=E.sheet,q=E.Renderer;this.key=y,this.options=E,this.style=w,P?this.renderer=P.renderer:q&&(this.renderer=new q)}return BaseStyleRule.prototype.prop=function prop(y,w,E){if(void 0===w)return this.style[y];var P=!!E&&E.force;if(!P&&this.style[y]===w)return this;var q=w;E&&!1===E.process||(q=this.options.jss.plugins.onChangeValue(w,y,this));var ne=null==q||!1===q,oe=y in this.style;if(ne&&!oe&&!P)return this;var ie=ne&&oe;if(ie?delete this.style[y]:this.style[y]=q,this.renderable&&this.renderer)return ie?this.renderer.removeProperty(this.renderable,y):this.renderer.setProperty(this.renderable,y,q),this;var se=this.options.sheet;return se&&se.attached,this},BaseStyleRule}(),ve=function(y){function StyleRule(w,E,P){var q;(q=y.call(this,w,E,P)||this).selectorText=void 0,q.id=void 0,q.renderable=void 0;var ne=P.selector,oe=P.scoped,se=P.sheet,le=P.generateId;return ne?q.selectorText=ne:!1!==oe&&(q.id=le(Object(ie.a)(Object(ie.a)(q)),se),q.selectorText="."+jss_esm_escape(q.id)),q}_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 P in E)w.setProperty(y,P,E[P])}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]=pe(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(ne.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),ye={onCreateRule:function onCreateRule(y,w,E){return"@"===y[0]||E.parent&&"keyframes"===E.parent.type?null:new ve(y,w,E)}},_e={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;var P=y.match(Re);for(var q in this.at=P?P[1]:"unknown",this.query=E.name||"@"+this.at,this.options=E,this.rules=new st(_extends({},E,{parent:this})),w)this.rules.add(q,w[q]);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 P=this.rules.add(y,w,E);return P?(this.options.jss.plugins.onProcessRule(P),P):null},y.toString=function toString(y){if(void 0===y&&(y=_e),null==y.indent&&(y.indent=_e.indent),null==y.children&&(y.children=_e.children),!1===y.children)return this.query+" {}";var w=this.rules.toString(y);return w?this.query+" {\n"+w+"\n}":""},ConditionalRule}(),ke=/@media|@supports\s+/,Me={onCreateRule:function onCreateRule(y,w,E){return ke.test(y)?new we(y,w,E):null}},Se={indent:1,children:!0},Ae=/@keyframes\s+([\w-]+)/,Te=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 P=y.match(Ae);P&&P[1]?this.name=P[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=E;var q=E.scoped,ne=E.sheet,oe=E.generateId;for(var ie in this.id=!1===q?this.name:jss_esm_escape(oe(this,ne)),this.rules=new st(_extends({},E,{parent:this})),w)this.rules.add(ie,w[ie],_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+/,Fe=/\$([\w-]+)/g,je=function findReferencedKeyframe(y,w){return"string"==typeof y?y.replace(Fe,(function(y,E){return E in w?w[E]:y})):y},Be=function replaceRef(y,w,E){var P=y[w],q=je(P,E);q!==P&&(y[w]=q)},Ve={onCreateRule:function onCreateRule(y,w,E){return"string"==typeof y&&Oe.test(y)?new Te(y,w,E):null},onProcessStyle:function onProcessStyle(y,w,E){return"style"===w.type&&E?("animation-name"in y&&Be(y,"animation-name",E.keyframes),"animation"in y&&Be(y,"animation",E.keyframes),y):y},onChangeValue:function onChangeValue(y,w,E){var P=E.options.sheet;if(!P)return y;switch(w){case"animation":case"animation-name":return je(y,P.keyframes);default:return y}}},Ne=function(y){function KeyframeRule(){for(var w,E=arguments.length,P=new Array(E),q=0;q=this.index)w.push(y);else for(var P=0;PE)return void w.splice(P,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,P=function _objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,P,q={},ne=Object.keys(y);for(P=0;P=0||(q[E]=y[E]);return q}(w,["attached"]),q="",ne=0;ne0){var E=function findHigherSheet(y,w){for(var E=0;Ew.index&&P.options.insertionPoint===w.insertionPoint)return P}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 P=y[E];if(P.attached&&P.options.insertionPoint===w.insertionPoint)return P}return null}(w,y))&&E.renderer)return{parent:E.renderer.element.parentNode,node:E.renderer.element.nextSibling}}var P=y.insertionPoint;if(P&&"string"==typeof P){var q=function findCommentNode(y){for(var w=_t(),E=0;EE?E:w},wt=function(){function DomRenderer(y){this.getPropertyValue=ft,this.setProperty=vt,this.removeProperty=yt,this.setSelector=bt,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],y&<.add(y),this.sheet=y;var w=this.sheet?this.sheet.options:{},E=w.media,P=w.meta,q=w.element;this.element=q||function createStyle(){var y=document.createElement("style");return y.textContent="\n",y}(),this.element.setAttribute("data-jss",""),E&&this.element.setAttribute("media",E),P&&this.element.setAttribute("data-meta",P);var ne=Rt();ne&&this.element.setAttribute("nonce",ne)}var y=DomRenderer.prototype;return y.attach=function attach(){if(!this.element.parentNode&&this.sheet){!function insertStyle(y,w){var E=w.insertionPoint,P=findPrevNode(w);if(!1!==P&&P.parent)P.parent.insertBefore(y,P.node);else if(E&&"number"==typeof E.nodeType){var q=E,ne=q.parentNode;ne&&ne.insertBefore(y,q.nextSibling)}else _t().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(){if(this.sheet){var y=this.element.parentNode;y&&y.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},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 P=y.options.parent;if("$"===w[0]){var q=P.getRule(w.substr(1));return!!q&&(q!==y&&(P.classes[y.key]+=" "+P.classes[q.key],!0))}return P.classes[y.key]+=" "+w,!0}var Xt=function jssCompose(){return{onProcessStyle:function onProcessStyle(y,w){return"composes"in y?(registerClass(w,y.composes),delete y.composes,y):y}}},Jt=Et({createGenerateId:function createGenerateId(){var y=0;return function(w){return"rsg--"+w.key+"-"+y++}},plugins:[It(),jt({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"})}),Ht(),Gt(),Yt(),Xt()]});w.a=Jt},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return pe}));E(98),E(31),E(121),E(287);var P=E(0),q=E.n(P),ne=E(2),oe=E.n(ne),ie=E(28),se=E(12);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["classes","children"]);return q.a.createElement("a",_extends({},P,{className:Object(ie.a)(w.link,P.className)}),E)};le.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,children:oe.a.node,className:oe.a.string,href:oe.a.string};var pe=Object(se.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"}}}}))(le)},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return le}));var P=E(0),q=E.n(P),ne=E(2),oe=E.n(ne),ie=E(12),se=function ParaRenderer(y){var w=y.classes,E=y.semantic,P=y.children,ne=E||"div";return q.a.createElement(ne,{className:w.para},P)};se.propTypes={classes:oe.a.objectOf(oe.a.string.isRequired).isRequired,semantic:oe.a.oneOf(["p"]),children:oe.a.node.isRequired};var le=Object(ie.default)((function styles(y){var w=y.space,E=y.color,P=y.fontFamily,q=y.fontSize;return{para:{marginTop:0,marginBottom:w[2],color:E.base,fontFamily:P.base,fontSize:q.text,lineHeight:1.5}}}))(se)},function(y,w,E){"use strict";E.d(w,"a",(function(){return ie}));var P={},q={},ne=1,oe=function createKey(y){return"r-"+y},ie=function(){function ReactNativePropRegistry(){}return ReactNativePropRegistry.register=function register(y){var w=ne++;var E=oe(w);return q[E]=y,w},ReactNativePropRegistry.getByID=function getByID(y){if(!y)return P;var w=oe(y),E=q[w];return E||(console.warn("Invalid style with id `"+y+"`. Skipping ..."),P)},ReactNativePropRegistry}()},function(y,w,E){"use strict";var P=E(224);E(9);w.a=function flattenStyle(y){if(y){if(!Array.isArray(y))return function getStyle(y){return"number"==typeof y?P.a.getByID(y):y}(y);for(var w={},E=0,q=y.length;E=0&&y<=1&&E>=0&&E<=1))throw new Error("bezier x values must be in [0, 1] range");var oe=ne?new Float32Array(11):new Array(11);if(y!==w||E!==P)for(var ie=0;ie<11;++ie)oe[ie]=calcBezier(ie*q,y,E);function getTForX(w){for(var P=0,ne=1;10!==ne&&oe[ne]<=w;++ne)P+=q;--ne;var ie=P+(w-oe[ne])/(oe[ne+1]-oe[ne])*q,se=getSlope(ie,y,E);return se>=.001?function newtonRaphsonIterate(y,w,E,P){for(var q=w,ne=0;ne<4;++ne){var oe=getSlope(q,E,P);if(0===oe)return q;q-=(calcBezier(q,E,P)-y)/oe}return q}(w,ie,y,E):0===se?ie:function binarySubdivide(y,w,E,P,q){var ne,oe,ie=0,se=w,le=E;do{(ne=calcBezier(oe=se+(le-se)/2,P,q)-y)>0?le=oe:se=oe}while(Math.abs(ne)>1e-7&&++ie<10);return oe}(w,P,P+q,y,E)}return function BezierEasing(q){return y===w&&E===P?q:0===q?0:1===q?1:calcBezier(getTForX(q),w,P)}}var oe=function(){function Easing(){}return Easing.step0=function step0(y){return y>0?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 P||(P=Easing.bezier(.42,0,1,1)),P(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 P=y-2.625/2.75;return 7.5625*P*P+.984375},Easing.bezier=function bezier(y,w,E,P){return bezier_bezier(y,w,E,P)},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){function _extends(){return y.exports=_extends=Object.assign||function(y){for(var w=1;wpe;)if((ie=se[pe++])!=ie)return!0}else for(;le>pe;pe++)if((y||pe in se)&&se[pe]===E)return y||pe||0;return!y&&-1}}},function(y,w){w.f=Object.getOwnPropertySymbols},function(y,w,E){var P=E(113);y.exports=Array.isArray||function isArray(y){return"Array"==P(y)}},function(y,w,E){var P=E(33)("iterator"),q=!1;try{var ne=[7][P]();ne.return=function(){q=!0},Array.from(ne,(function(){throw 2}))}catch(y){}y.exports=function(y,w){if(!w&&!q)return!1;var E=!1;try{var ne=[7],oe=ne[P]();oe.next=function(){return{done:E=!0}},ne[P]=function(){return oe},y(ne)}catch(y){}return E}},function(y,w,E){"use strict";var P=E(24);y.exports=function(){var y=P(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 P=E(199),q=RegExp.prototype.exec;y.exports=function(y,w){var E=y.exec;if("function"==typeof E){var ne=E.call(y,w);if("object"!=typeof ne)throw new TypeError("RegExp exec method returned something other than an Object or null");return ne}if("RegExp"!==P(y))throw new TypeError("RegExp#exec called on incompatible receiver");return q.call(y,w)}},function(y,w,E){"use strict";E(454);var P=E(73),q=E(80),ne=E(23),oe=E(114),ie=E(33),se=E(327),le=ie("species"),pe=!ne((function(){var y=/./;return y.exec=function(){var y=[];return y.groups={a:"7"},y},"7"!=="".replace(y,"$")})),ge=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=ie(y),he=!ne((function(){var w={};return w[me]=function(){return 7},7!=""[y](w)})),ve=he?!ne((function(){var w=!1,E=/a/;return E.exec=function(){return w=!0,null},"split"===y&&(E.constructor={},E.constructor[le]=function(){return E}),E[me](""),!w})):void 0;if(!he||!ve||"replace"===y&&!pe||"split"===y&&!ge){var ye=/./[me],_e=E(oe,me,""[y],(function maybeCallNative(y,w,E,P,q){return w.exec===se?he&&!q?{done:!0,value:ye.call(w,E,P)}:{done:!0,value:y.call(E,w,P)}:{done:!1}})),Re=_e[0],we=_e[1];P(String.prototype,y,Re),q(RegExp.prototype,me,2==w?function(y,w){return we.call(y,this,w)}:function(y){return we.call(y,this)})}}},function(y,w,E){var P=E(100),q=E(449),ne=E(322),oe=E(24),ie=E(39),se=E(324),le={},pe={};(w=y.exports=function(y,w,E,ge,me){var he,ve,ye,_e,Re=me?function(){return y}:se(y),we=P(E,ge,w?2:1),ke=0;if("function"!=typeof Re)throw TypeError(y+" is not iterable!");if(ne(Re)){for(he=ie(y.length);he>ke;ke++)if((_e=w?we(oe(ve=y[ke])[0],ve[1]):we(y[ke]))===le||_e===pe)return _e}else for(ye=Re.call(y);!(ve=ye.next()).done;)if((_e=q(ye,we,ve.value,w))===le||_e===pe)return _e}).BREAK=le,w.RETURN=pe},function(y,w,E){var P=E(22).navigator;y.exports=P&&P.userAgent||""},function(y,w,E){"use strict";var P=E(22),q=E(10),ne=E(73),oe=E(170),ie=E(128),se=E(239),le=E(169),pe=E(25),ge=E(23),me=E(235),he=E(165),ve=E(313);y.exports=function(y,w,E,ye,_e,Re){var we=P[y],ke=we,Me=_e?"set":"add",Se=ke&&ke.prototype,Ae={},fixMethod=function(y){var w=Se[y];ne(Se,y,"delete"==y?function(y){return!(Re&&!pe(y))&&w.call(this,0===y?0:y)}:"has"==y?function has(y){return!(Re&&!pe(y))&&w.call(this,0===y?0:y)}:"get"==y?function get(y){return Re&&!pe(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 ke&&(Re||Se.forEach&&!ge((function(){(new ke).entries().next()})))){var Te=new ke,Oe=Te[Me](Re?{}:-0,1)!=Te,Fe=ge((function(){Te.has(1)})),je=me((function(y){new ke(y)})),Be=!Re&&ge((function(){for(var y=new ke,w=5;w--;)y[Me](w,w);return!y.has(-0)}));je||((ke=w((function(w,E){le(w,ke,y);var P=ve(new we,w,ke);return null!=E&&se(E,_e,P[Me],P),P}))).prototype=Se,Se.constructor=ke),(Fe||Be)&&(fixMethod("delete"),fixMethod("has"),_e&&fixMethod("get")),(Be||Oe)&&fixMethod(Me),Re&&Se.clear&&delete Se.clear}else ke=ye.getConstructor(w,y,_e,Me),oe(ke.prototype,E),ie.NEED=!0;return he(ke,y),Ae[y]=ke,q(q.G+q.W+q.F*(ke!=we),Ae),Re||ye.setStrong(ke,y,_e),ke}},function(y,w,E){for(var P,q=E(22),ne=E(80),oe=E(144),ie=oe("typed_array"),se=oe("view"),le=!(!q.ArrayBuffer||!q.DataView),pe=le,ge=0,me="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");ge<9;)(P=q[me[ge++]])?(ne(P.prototype,ie,!0),ne(P.prototype,se,!0)):pe=!1;y.exports={ABV:le,CONSTR:pe,TYPED:ie,VIEW:se}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Attachment=void 0;var q=P(E(5)),ne=P(E(0)),oe=E(201),ie=E(256),se=E(257),le=E(258),pe=E(206),ge=E(40),me=ne.default.memo((function AttachmentWithContext(y){var w,E=y.attachment,P=y.AttachmentActions,oe=y.Card,ie=y.FileAttachment,se=y.Gallery,le=y.Giphy,pe=y.UrlPreview,ge=!(null==(w=E.actions)||!w.length);return"giphy"===E.type||"imgur"===E.type?ne.default.createElement(le,{attachment:E}):(E.title_link||E.og_scrape_url)&&(E.image_url||E.thumb_url)?ne.default.createElement(pe,E):"image"===E.type?ne.default.createElement(ne.default.Fragment,null,ne.default.createElement(se,{images:[E]}),ge&&ne.default.createElement(P,(0,q.default)({key:"key-actions-"+E.id},E))):"file"===E.type||"audio"===E.type?ne.default.createElement(ie,{attachment:E}):"video"===E.type&&E.asset_url&&E.image_url?ne.default.createElement(oe,E):ge?ne.default.createElement(ne.default.Fragment,null,ne.default.createElement(oe,E),ne.default.createElement(P,(0,q.default)({key:"key-actions-"+E.id},E))):ne.default.createElement(oe,E)}),(function areEqual(y,w){var E,P,q=y.attachment,ne=w.attachment;return(null==(E=q.actions)?void 0:E.length)===(null==(P=ne.actions)?void 0:P.length)&&q.image_url===ne.image_url&&q.thumb_url===ne.thumb_url}));w.Attachment=function Attachment(y){var w=y.attachment,E=y.AttachmentActions,P=y.Card,q=y.FileAttachment,he=y.Gallery,ve=y.Giphy,ye=y.UrlPreview,_e=(0,ge.useMessagesContext)(),Re=_e.AttachmentActions,we=_e.Card,ke=_e.FileAttachment,Me=_e.Gallery,Se=_e.Giphy,Ae=_e.UrlPreview;if(!w)return null;var Te=E||Re||oe.AttachmentActions,Oe=P||we||ie.Card,Fe=q||ke||pe.FileAttachment,je=he||Me||se.Gallery,Be=ve||Se||le.Giphy,Ve=ye||Ae||ie.Card;return ne.default.createElement(me,{attachment:w,AttachmentActions:Te,Card:Oe,FileAttachment:Fe,Gallery:je,Giphy:Be,UrlPreview:Ve})}},function(y,w,E){"use strict";var P=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,ne=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 P={};return"abcdefghijklmnopqrst".split("").forEach((function(y){P[y]=y})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},P)).join("")}catch(y){return!1}}()?Object.assign:function(y,w){for(var E,oe,ie=toObject(y),se=1;se3?le.default.createElement(ye.default,{style:[me.default.absoluteFillObject,Te.moreImagesContainer,{backgroundColor:Ne},nt]},le.default.createElement(he.default,{style:[Te.moreImagesText,rt]},"+"+(se.length-3))):null)})))})))}),(function areEqual(y,w){var E=y.groupStyles,P=y.hasThreadReplies,q=y.images,ne=y.messageText,oe=w.groupStyles,ie=w.hasThreadReplies,se=w.images;return ne===w.messageText&&(E.length===oe.length&&E[0]===oe[0]&&(P===ie&&!(q.length!==se.length||!q.every((function(y,w){return y.image_url===se[w].image_url&&y.thumb_url===se[w].thumb_url})))))})),Fe=function Gallery(y){var w=y.additionalTouchableProps,E=y.alignment,P=y.groupStyles,q=y.hasThreadReplies,ne=y.images,oe=y.messageId,ie=y.messageText,se=y.onLongPress,pe=y.onPress,ge=y.onPressIn,me=y.preventPress,he=y.setBlurType,ve=y.setImage,ye=y.setOverlay,Me=y.threadList,Se=(0,_e.useImageGalleryContext)().setImage,Ae=(0,Re.useMessageContext)(),Te=Ae.alignment,Fe=Ae.groupStyles,je=Ae.images,Be=Ae.message,Ve=Ae.onLongPress,Ne=Ae.onPress,Ue=Ae.onPressIn,We=Ae.threadList,$e=(0,we.useMessagesContext)().additionalTouchableProps,Ye=(0,ke.useOverlayContext)(),Xe=Ye.setBlurType,et=Ye.setOverlay,tt=ne||je;if(!tt.length)return null;var nt=w||$e,rt=E||Te,ot=P||Fe,it=se||Ve,st=ge||Ue,dt=pe||Ne,ct=he||Xe,lt=ve||Se,ut=ye||et,pt=Me||We;return le.default.createElement(Oe,{additionalTouchableProps:nt,alignment:rt,groupStyles:ot,hasThreadReplies:q||!(null==Be||!Be.reply_count),images:tt,messageId:oe||(null==Be?void 0:Be.id),messageText:ie||(null==Be?void 0:Be.text),onLongPress:it,onPress:dt,onPressIn:st,preventPress:me,setBlurType:ct,setImage:lt,setOverlay:ut,threadList:pt})};w.Gallery=Fe,Fe.displayName="Gallery{messageSimple{gallery}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Giphy=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(66)),ie=P(E(7)),se=P(E(17)),le=P(E(36)),pe=P(E(8)),ge=E(57),me=E(40),he=E(11),ve=E(486),ye=E(259),_e=E(491),Re=E(27),we=ie.default.create({cancel:{fontSize:14,fontWeight:"600",paddingVertical:16},cancelContainer:{alignItems:"center",borderRightWidth:1,flex:1,justifyContent:"center"},container:{overflow:"hidden",width:256},giphy:{borderTopLeftRadius:8,borderTopRightRadius:8,height:140},giphyContainer:{alignItems:"center",borderRadius:12,flexDirection:"row",height:24,justifyContent:"center",width:68},giphyMask:{bottom:8,left:8,position:"absolute"},giphyText:{fontSize:11,fontWeight:"600"},margin:{margin:8},row:{flexDirection:"row"},selectionContainer:{borderRadius:8,borderWidth:1,overflow:"hidden",width:250},selector:{alignItems:"center",borderBottomWidth:1,flexDirection:"row",justifyContent:"space-between",paddingBottom:8,paddingHorizontal:8},send:{fontSize:14,fontWeight:"600",paddingVertical:16},sendContainer:{alignItems:"center",flex:1,justifyContent:"center"},shuffleButton:{alignItems:"center",borderRadius:16,borderWidth:1,height:32,justifyContent:"center",width:32},title:{fontSize:14,fontStyle:"italic",fontWeight:"500"}}),ke=ne.default.memo((function GiphyWithContext(y){var w=y.additionalTouchableProps,E=y.attachment,P=y.handleAction,ie=y.onLongPress,ge=y.onPress,me=y.onPressIn,ke=E.actions,Me=E.image_url,Se=E.thumb_url,Ae=E.title,Te=E.type,Oe=(0,he.useTheme)().theme,Fe=Oe.colors,je=Fe.accent_blue,Be=Fe.black,Ve=Fe.border,Ne=Fe.grey,Ue=Fe.overlay_dark,We=Fe.white,$e=Oe.messageSimple.giphy,Ye=$e.cancel,Xe=$e.cancelContainer,et=$e.container,tt=$e.giphy,nt=$e.giphyContainer,rt=$e.giphyMask,ot=$e.giphyText,it=$e.selectionContainer,st=$e.selector,dt=$e.send,ct=$e.sendContainer,lt=$e.shuffleButton,ut=$e.title,pt=Me||Se;return pt?ke?ne.default.createElement(pe.default,{style:[we.selectionContainer,{backgroundColor:We,borderColor:Be+"0D"},it]},ne.default.createElement(pe.default,{style:we.margin},ne.default.createElement(oe.default,{resizeMode:"cover",source:{uri:(0,Re.makeImageCompatibleUrl)(pt)},style:[we.giphy,tt]}),ne.default.createElement(pe.default,{style:[we.giphyMask,rt]},ne.default.createElement(pe.default,{style:[we.giphyContainer,{backgroundColor:Ue},nt]},ne.default.createElement(ye.Lightning,{height:16,pathFill:We,width:16}),ne.default.createElement(se.default,{style:[we.giphyText,{color:We},ot]},null==Te?void 0:Te.toUpperCase())))),ne.default.createElement(pe.default,null,ne.default.createElement(pe.default,{style:[we.selector,{borderBottomColor:Ve},st]},ne.default.createElement(le.default,{onPress:function onPress(){return P("image_action","shuffle")},style:[we.shuffleButton,{borderColor:Ve},lt]},ne.default.createElement(ve.Left,null)),ne.default.createElement(se.default,{style:[we.title,{color:Be},ut]},'"'+Ae+'"'),ne.default.createElement(le.default,{onPress:function onPress(){null!=ke&&ke[1].name&&null!=ke&&ke[1].value&&P&&P(ke[1].name,ke[1].value)},style:[we.shuffleButton,lt]},ne.default.createElement(_e.Right,null))),ne.default.createElement(pe.default,{style:we.row},ne.default.createElement(le.default,{onPress:function onPress(){null!=ke&&ke[2].name&&null!=ke&&ke[2].value&&P&&P(ke[2].name,ke[2].value)},style:[we.cancelContainer,{borderRightColor:Ve},Xe]},ne.default.createElement(se.default,{style:[we.cancel,{color:Ne},Ye]},null==ke?void 0:ke[2].text)),ne.default.createElement(le.default,{onPress:function onPress(){null!=ke&&ke[0].name&&null!=ke&&ke[0].value&&P&&P(ke[0].name,ke[0].value)},style:[we.sendContainer,ct]},ne.default.createElement(se.default,{style:[we.send,{color:je},dt]},null==ke?void 0:ke[0].text))))):ne.default.createElement(le.default,(0,q.default)({onLongPress:function onLongPress(y){ie({emitter:"giphy",event:y})},onPress:function onPress(y){ge({emitter:"giphy",event:y})},onPressIn:function onPressIn(y){null==me||me({emitter:"giphy",event:y})},style:[we.container,et],testID:"giphy-attachment"},w),ne.default.createElement(pe.default,null,ne.default.createElement(oe.default,{resizeMode:"cover",source:{uri:(0,Re.makeImageCompatibleUrl)(pt)},style:[we.giphy,tt]}),ne.default.createElement(pe.default,{style:[we.giphyMask,rt]},ne.default.createElement(pe.default,{style:[we.giphyContainer,{backgroundColor:Ue},nt]},ne.default.createElement(ye.Lightning,{height:16,pathFill:We,width:16}),ne.default.createElement(se.default,{style:[we.giphyText,{color:We},ot]},null==Te?void 0:Te.toUpperCase()))))):null}),(function areEqual(y,w){var E=y.attachment,P=E.actions,q=E.image_url,ne=E.thumb_url,oe=w.attachment,ie=oe.actions,se=oe.image_url,le=oe.thumb_url;return q===se&&(ne===le&&!(Array.isArray(P)!==Array.isArray(ie)||!(Array.isArray(P)&&Array.isArray(ie)&&P.length===ie.length||P===ie)))})),Me=function Giphy(y){var w=(0,ge.useMessageContext)(),E=w.handleAction,P=w.onLongPress,oe=w.onPress,ie=w.onPressIn,se=(0,me.useMessagesContext)().additionalTouchableProps;return ne.default.createElement(ke,(0,q.default)({additionalTouchableProps:se,handleAction:E,onLongPress:P,onPress:oe,onPressIn:ie},y))};w.Giphy=Me,Me.displayName="Giphy{messageSimple{giphy}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Lightning=void 0;var q=P(E(5)),ne=P(E(0)),oe=E(14);w.Lightning=function Lightning(y){return ne.default.createElement(oe.RootSvg,y,ne.default.createElement(oe.RootPath,(0,q.default)({d:"M11.636 4H16l-2.91 5.818H16L10.546 20l1.09-7.273H8L11.636 4z"},y)))}},function(y,w,E){"use strict";function emptyFunction(){}E.r(w);var P={exitApp:emptyFunction,addEventListener:function addEventListener(){return{remove:emptyFunction}},removeEventListener:emptyFunction};w.default=P},function(y,w,E){"use strict";E.r(w);var P=E(0),q=E(66),ne=E(7),oe=E(8);function _extends(){return(_extends=Object.assign||function(y){for(var w=1;w=0||(q[E]=y[E]);return q}(y,["children","style","imageStyle","imageRef"]),he=ne.default.flatten(le),ve=he.height,ye=he.width;return P.createElement(oe.default,{ref:w,style:le},P.createElement(q.default,_extends({},me,{ref:ge,style:[ne.default.absoluteFill,{width:ye,height:ve,zIndex:-1},pe]})),E)}));se.displayName="ImageBackground",w.default=se},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.BottomSheet=void 0;var q=P(E(0));w.BottomSheet=function BottomSheet(){return q.default.createElement(q.default.Fragment,null)}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.EmptyStateIndicator=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(11),le=E(517),pe=E(27),ge=(0,pe.vw)(33),me=ne.default.create({channelContainer:{alignItems:"center",flex:1,justifyContent:"center"},channelDetails:{fontSize:14,textAlign:"center",width:(0,pe.vw)(66)},channelTitle:{fontSize:16,paddingBottom:8,paddingTop:16}});w.EmptyStateIndicator=function EmptyStateIndicator(y){var w=y.listType,E=(0,se.useTheme)().theme,P=E.colors,ne=P.black,pe=P.grey,he=P.grey_gainsboro,ve=E.emptyStateIndicator,ye=ve.channelContainer,_e=ve.channelDetails,Re=ve.channelTitle;switch(w){case"channel":return q.default.createElement(ie.default,{style:[me.channelContainer,ye]},q.default.createElement(le.MessageIcon,{height:ge,pathFill:he,width:ge}),q.default.createElement(oe.default,{style:[me.channelTitle,{color:ne},Re],testID:"empty-channel-state-title"},"Let's start chatting!"),q.default.createElement(oe.default,{style:[me.channelDetails,{color:pe},_e],testID:"empty-channel-state-details"},"How about sending your first message to a friend?"));case"message":return null;default:return q.default.createElement(oe.default,{style:{color:ne}},"No items exist")}}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.LoadingErrorIndicator=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(36)),se=E(11),le=E(26),pe=ne.default.create({container:{alignItems:"center",height:"100%",justifyContent:"center",width:"100%"},errorText:{fontSize:14,fontWeight:"600",marginTop:20},retryText:{fontSize:30,fontWeight:"600"}}),ge=function LoadingErrorWrapper(y){var w=y.children,E=y.onPress,P=y.text,ne=(0,se.useTheme)().theme,le=ne.colors.accent_red,ge=ne.loadingErrorIndicator,me=ge.container,he=ge.errorText;return q.default.createElement(ie.default,{onPress:E,style:[pe.container,me]},q.default.createElement(oe.default,{style:[pe.errorText,{color:le},he],testID:"loading-error"},P),w)},me=function LoadingErrorIndicator(y){var w=y.listType,E=y.retry,P=void 0===E?function(){return null}:E,ne=(0,se.useTheme)().theme,ie=ne.colors.black,me=ne.loadingErrorIndicator.retryText,he=(0,le.useTranslationContext)().t;switch(w){case"channel":return q.default.createElement(ge,{onPress:P,text:he("Error loading channel list...")},q.default.createElement(oe.default,{style:[pe.retryText,{color:ie},me]},"⟳"));case"message":return q.default.createElement(ge,{text:he("Error loading messages for this channel...")});default:return q.default.createElement(ge,{text:he("Error loading")})}};w.LoadingErrorIndicator=me,me.displayName="LoadingErrorIndicator{loadingErrorIndicator}"},function(y,w,E){"use strict";E.r(w),E.d(w,"default",(function(){return ye}));var P=E(15),q=E(682),ne=E.n(q),oe=E(9),ie=E.n(oe);function _defineProperties(y,w){for(var E=0;E0&&void 0!==arguments[0]?arguments[0]:"error"===Ct.type||"failed"===Ct.status;je&&he.default.dismiss();var w=Ct.quoted_message;y?ea(!1,!0):w&&In(w)},Fn=!rt||"left"!==rt&&"right"!==rt?Pn?"right":"left":rt,zn=!Ct.deleted_at&&Array.isArray(Ct.attachments)?Ct.attachments.reduce((function(y,w){return"file"===w.type?(y.files.push(w),y.other=[]):"image"!==w.type||w.title_link||w.og_scrape_url?y.files.length||y.images.length||y.other.push(w):(w.image_url||w.thumb_url)&&(y.images.push(w),y.other=[]),y}),{files:[],images:[],other:[]}):{files:[],images:[],other:[]},jn=!Ct.deleted_at&&Array.isArray(Ct.attachments)&&Ct.attachments.some((function(y){return y.actions&&y.actions.length})),Bn=zn.images.length;(0,le.useEffect)((function(){Bn&&zn.images.slice(0,4).forEach((function(y,w){var E=y.image_url||y.thumb_url;E&&et(Bn<=2||3===Bn&&0===w?{height:xn||200,url:E}:{height:Rn||100,url:E})}))}),[Bn]);var Vn=kt.filter((function(y){switch(y){case"attachments":return!!zn.other.length;case"files":return!!zn.files.length;case"gallery":return!!zn.images.length;case"text":default:return!!Ct.text}})),Nn=!zn.files.length&&!zn.images.length&&!zn.other.length&&!!Ct.text&&Xe.emojiRegex.test(Ct.text),Hn=function onOpenThread(){Ft&&Ft(Ct),zt&&zt(Ct)},Un=!!Vt&&!Ct.deleted_at&&!!Ct.latest_reactions&&Ct.latest_reactions.length>0,Gn=ve.userID,qn=Un?nn.reduce((function(y,w){var E,P=w.type,q=null==(E=Ct.latest_reactions)?void 0:E.filter((function(y){return y.type===P}));if(null!=q&&q.length){var ne=q.some((function(y){return y.user_id===Gn}));y.push({own:ne,type:P})}return y}),[]):[],Wn=function(){var y=(0,se.default)(oe.default.mark((function _callee2(y){var w,E;return oe.default.wrap((function _callee2$(P){for(;;)switch(P.prev=P.next){case 0:if(w=Ct.id,E=!!qn.find((function(w){return w.own&&w.type===y})),P.prev=2,!me||!w){P.next=11;break}if(!E){P.next=9;break}return P.next=7,me.deleteReaction(w,y);case 7:P.next=11;break;case 9:return P.next=11,me.sendReaction(w,{type:y},{enforce_unique:We});case 11:P.next=16;break;case 13:P.prev=13,P.t0=P.catch(2),console.log(P.t0);case 16:case"end":return P.stop()}}),_callee2,null,[[2,13]])})));return function handleToggleReaction(w){return y.apply(this,arguments)}}(),Kn=function handleResendMessage(){var y=(0,Me.removeReservedFields)(Ct);return Wt(y)},$n=function handleReplyMessage(){Jt(Ct)},Yn=(ve.mutedUsers||[]).some((function(y){var w;return y.user.id===ve.userID&&y.target.id===(null==(w=Ct.user)?void 0:w.id)})),Xn=function(){var y=(0,se.default)(oe.default.mark((function _callee3(){var y;return oe.default.wrap((function _callee3$(w){for(;;)switch(w.prev=w.next){case 0:if(null!=(y=Ct.user)&&y.id){w.next=2;break}return w.abrupt("return");case 2:if(!Yn){w.next=7;break}return w.next=5,ve.unmuteUser(Ct.user.id);case 5:w.next=9;break;case 7:return w.next=9,ve.muteUser(Ct.user.id);case 9:case"end":return w.stop()}}),_callee3)})));return function handleToggleMuteUser(){return y.apply(this,arguments)}}(),Jn=function(){var y=(0,se.default)(oe.default.mark((function _callee4(){var y;return oe.default.wrap((function _callee4$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,ve.deleteMessage(Ct.id);case 2:y=w.sent,ln(y.message);case 4:case"end":return w.stop()}}),_callee4)})));return function handleDeleteMessage(){return y.apply(this,arguments)}}(),Qn=function handleEditMessage(){Yt(Ct)},Zn=function(){var y=(0,se.default)(oe.default.mark((function _callee5(){var y;return oe.default.wrap((function _callee5$(w){for(;;)switch(w.prev=w.next){case 0:if(y=Ct.user){w.next=3;break}return w.abrupt("return");case 3:if(!y.banned){w.next=8;break}return w.next=6,ve.unbanUser(y.id);case 6:w.next=10;break;case 8:return w.next=10,ve.banUser(y.id);case 10:case"end":return w.stop()}}),_callee5)})));return function handleToggleBanUser(){return y.apply(this,arguments)}}(),ea=function(){var y=(0,se.default)(oe.default.mark((function _callee12(){var y,w,E,P,ie,me,he,ye,_e,Re,we,ke,Te,Fe,je,Ve=arguments;return oe.default.wrap((function _callee12$(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return w=Ve.length>0&&void 0!==Ve[0]&&Ve[0],E=Ve.length>1&&void 0!==Ve[1]?Ve[1]:"error"===Ct.type||"failed"===Ct.status,Ne.next=4,Oe();case 4:P=q?q(Ct):null===q?null:{action:function action(){return(0,se.default)(oe.default.mark((function _callee6(){var y;return oe.default.wrap((function _callee6$(w){for(;;)switch(w.prev=w.next){case 0:if(Xt("none"),null==(y=Ct.user)||!y.id){w.next=5;break}return dt&&dt(Ct),w.next=5,Zn();case 5:case"end":return w.stop()}}),_callee6)})))},icon:le.default.createElement($e.UserDelete,{pathFill:vn}),title:null!=(y=Ct.user)&&y.banned?an("Unblock User"):an("Block User")},ie=Se?Se(Ct):null===Se?null:{action:function action(){Xt("none"),ct&&ct(Ct),ge.default.setString(Ct.text||"")},icon:le.default.createElement($e.Copy,{pathFill:vn}),title:an("Copy Message")},me=Ae?Ae(Ct):null===Ae?null:{action:function action(){var y;Xt("alert"),Ct.id&&pe.default.alert(an("Delete Message"),an("Are you sure you want to permanently delete this message?"),[{onPress:function onPress(){return Xt("none")},text:an("Cancel")},{onPress:(y=(0,se.default)(oe.default.mark((function _callee7(){return oe.default.wrap((function _callee7$(y){for(;;)switch(y.prev=y.next){case 0:return Xt("none"),lt&<(Ct),y.next=4,Jn();case 4:case"end":return y.stop()}}),_callee7)}))),function onPress(){return y.apply(this,arguments)}),style:"destructive",text:an("Delete")}],{cancelable:!1})},icon:le.default.createElement($e.Delete,{pathFill:mn}),title:an("Delete Message"),titleStyle:{color:mn}},he=Be?Be(Ct):null===Be?null:{action:function action(){Xt("none"),ut&&ut(Ct),Qn()},icon:le.default.createElement($e.Edit,{pathFill:vn}),title:an("Edit Message")},ye=tt?tt(Ct):null===tt?null:{action:function action(){var y;Xt("alert"),Ct.id&&pe.default.alert(an("Flag Message"),an("Do you want to send a copy of this message to a moderator for further investigation?"),[{onPress:function onPress(){return Xt("none")},text:an("Cancel")},{onPress:(y=(0,se.default)(oe.default.mark((function _callee8(){return oe.default.wrap((function _callee8$(y){for(;;)switch(y.prev=y.next){case 0:return y.prev=0,pt&&pt(Ct),y.next=4,ve.flagMessage(Ct.id);case 4:pe.default.alert(an("Message flagged"),an("The message has been reported to a moderator."),[{onPress:function onPress(){return Xt("none")},text:an("Dismiss")}]),y.next=10;break;case 7:y.prev=7,y.t0=y.catch(0),pe.default.alert(an("Something went wrong"),an("The operation couldn't be completed."),[{onPress:function onPress(){return Xt("none")},text:an("Dismiss")}]);case 10:case"end":return y.stop()}}),_callee8,null,[[0,7]])}))),function onPress(){return y.apply(this,arguments)}),text:an("Flag")}],{cancelable:!1})},icon:le.default.createElement($e.MessageFlag,{pathFill:vn}),title:an("Flag Message")},_e=E?void 0:Kt?Kt(Ct):function(){var y=(0,se.default)(oe.default.mark((function _callee9(y){return oe.default.wrap((function _callee9$(w){for(;;)switch(w.prev=w.next){case 0:return mt&&mt(Ct,y),w.next=3,Wn(y);case 3:case"end":return w.stop()}}),_callee9)})));return function(w){return y.apply(this,arguments)}}(),Re=Et?Et(Ct):null===Et?null:{action:function(){var y=(0,se.default)(oe.default.mark((function _callee10(){var y;return oe.default.wrap((function _callee10$(w){for(;;)switch(w.prev=w.next){case 0:if(Xt("none"),null==(y=Ct.user)||!y.id){w.next=5;break}return gt&>(Ct),w.next=5,Xn();case 5:case"end":return w.stop()}}),_callee10)})));return function action(){return y.apply(this,arguments)}}(),icon:le.default.createElement($e.Mute,{pathFill:vn}),title:an(Yn?"Unmute User":"Mute User")},we=Gt?Gt(Ct):null===Gt?null:{action:function action(){Xt("none"),ht&&ht(Ct),$n()},icon:le.default.createElement($e.CurveLineLeftUp,{pathFill:vn}),title:an("Reply")},ke=qt?qt(Ct):null===qt?null:{action:function(){var y=(0,se.default)(oe.default.mark((function _callee11(){var y;return oe.default.wrap((function _callee11$(w){for(;;)switch(w.prev=w.next){case 0:return Xt("none"),y=(0,Me.removeReservedFields)(Ct),ft&&ft(y),w.next=5,Kn();case 5:case"end":return w.stop()}}),_callee11)})));return function action(){return y.apply(this,arguments)}}(),icon:le.default.createElement($e.SendUp,{pathFill:gn}),title:an("Resend")},Te=cn?cn(Ct):null===cn?null:{action:function action(){Xt("none"),vt&&vt(Ct),Hn()},icon:le.default.createElement($e.ThreadReply,{pathFill:vn}),title:an("Thread Reply")},Fe=dn||!!Ct.parent_id,je="function"==typeof wt?wt({blockUser:P,canModifyMessage:Tn,copyMessage:ie,deleteMessage:me,editMessage:he,error:E,flagMessage:ye,isMyMessage:Pn,isThreadMessage:Fe,message:Ct,messageReactions:w,muteUser:Re,repliesEnabled:Ut,reply:we,retry:ke,threadReply:Te}):wt||(E&&Pn?[ke,he,me]:w?void 0:Tn?Fe?Ct.text?Pn?[he,ie,me]:[ie,ye]:Pn?[he,me]:[ye]:Ct.text?Ut?Pn?[we,Te,he,ie,me]:[we,Te,ie,ye]:Pn?[he,ie,me]:[ie]:Ut?Pn?[we,Te,he,me]:[we,Te,ye]:Pn?[he,me]:[ye]:Fe?Ct.text?Pn?[ie,me]:[ie,Re,ye,P]:Pn?[me]:[Re,P,ye]:Ct.text?Ut?Pn?[we,Te,ie,me]:[we,Te,ie,Re,ye,P]:Pn?[ie,me]:[ie,Re,ye,P]:Ut?Pn?[we,Te,me]:[we,Te,Re,P]:Pn?[me]:[Re,P]),$t({alignment:Fn,clientId:ve.userID,files:zn.files,groupStyles:st,handleReaction:Vt?_e:void 0,images:zn.images,message:Ct,messageActions:null==je?void 0:je.filter(Boolean),messageReactionTitle:!E&&w?an("Message Reactions"):void 0,messagesContext:(0,ne.default)({},Mt,{messageContentOrder:Vn}),onlyEmojis:Nn,otherAttachments:zn.other,OverlayReactionList:jt,supportedReactions:nn,threadList:dn}),Xt("message");case 18:case"end":return Ne.stop()}}),_callee12)})));return function showMessageOverlay(){return y.apply(this,arguments)}}(),ta={deleteMessage:Jn,editMessage:Qn,reply:$n,resendMessage:Kn,showMessageOverlay:ea,toggleBanUser:Zn,toggleMuteUser:Xn,toggleReaction:Wn},na=Te||jn?function(){return null}:Pt?function(y){return Pt({actionHandlers:ta,defaultHandler:(null==y?void 0:y.defaultHandler)||ea,emitter:(null==y?void 0:y.emitter)||"message",event:null==y?void 0:y.event,message:Ct})}:At?function(y){return At({actionHandlers:ta,defaultHandler:(null==y?void 0:y.defaultHandler)||ea,emitter:(null==y?void 0:y.emitter)||"message",event:null==y?void 0:y.event})}:Ue?function(){return ea(!1)}:function(){return null},ia=function onDoubleTapMessage(){Dt&&Dt({actionHandlers:ta,message:Ct})},sa=(0,ke.useCreateMessageContext)({actionsEnabled:An,alignment:Fn,canModifyMessage:Tn,channel:me,disabled:Te,files:zn.files,groupStyles:st,handleAction:Ln,handleDeleteMessage:Jn,handleEditMessage:Qn,handleReplyMessage:$n,handleResendMessage:Kn,handleToggleBanUser:Zn,handleToggleMuteUser:Xn,handleToggleReaction:Wn,hasReactions:Un,images:zn.images,isMyMessage:Pn,lastGroupMessage:"single"===(null==st?void 0:st[0])||"bottom"===(null==st?void 0:st[0]),lastReceivedId:Rt,members:xt,message:Ct,messageContentOrder:Vn,onLongPress:P?function(){return null}:na,onlyEmojis:Nn,onOpenThread:Hn,onPress:function onPress(y){Tt?Tt({actionHandlers:ta,defaultHandler:y.defaultHandler||On,emitter:y.emitter||"message",event:y.event,message:Ct}):Lt?Lt({actionHandlers:ta,defaultHandler:y.defaultHandler||On,emitter:y.emitter||"message",event:y.event,message:Ct}):y.defaultHandler?y.defaultHandler():On()},onPressIn:It||Ot?function(y){It?It({actionHandlers:ta,defaultHandler:y.defaultHandler,emitter:y.emitter||"message",event:y.event,message:Ct}):Ot&&Ot({actionHandlers:ta,defaultHandler:y.defaultHandler,emitter:y.emitter||"message",event:y.event,message:Ct})}:null,otherAttachments:zn.other,preventPress:Bt,reactions:qn,readEventsEnabled:Nt,showAvatar:Qt,showMessageOverlay:ea,showMessageStatus:"boolean"==typeof Zt?Zt:Pn,threadList:dn}),da=(0,we.useAnimatedGestureHandler)({onFinish:function onFinish(){kn.value=!1,(0,we.cancelAnimation)(Mn),Mn.value=(0,we.withTiming)(1,{duration:100})},onStart:function onStart(){kn.value=!0,(0,we.cancelAnimation)(Mn),Mn.value=(0,we.withSequence)((0,we.withTiming)(1,{duration:100}),(0,we.withTiming)(.98,{duration:400},(function(){kn.value&&((0,we.runOnJS)(na)(),(0,we.runOnJS)(Ye.triggerHaptic)("impactMedium"))})),(0,we.withTiming)(1.02,{duration:100}),(0,we.withTiming)(1,{duration:300}))}},[na]),la=(0,we.useAnimatedGestureHandler)({onActive:function onActive(){kn.value=!1,(0,we.cancelAnimation)(Mn),Mn.value=(0,we.withTiming)(1,{duration:100}),(0,we.runOnJS)(ia)()}},[ia]);return Ct.deleted_at||Vn.length?le.default.createElement(Re.TapGestureHandler,{enabled:P,maxDeltaX:8,maxDurationMs:3e3,onGestureEvent:P?da:void 0,waitFor:wn},le.default.createElement(we.default.View,null,le.default.createElement(Re.TapGestureHandler,{numberOfTaps:2,onGestureEvent:la,ref:wn},le.default.createElement(we.default.View,{style:[tn,{backgroundColor:en?hn:void 0},Sn]},le.default.createElement(we.default.View,{style:[_e.default.absoluteFillObject,Cn,{backgroundColor:yn},Dn]}),le.default.createElement(Fe.MessageProvider,{value:sa},le.default.createElement(St,null)))))):null}),(function areEqual(y,w){var E,P,q=y.channel,ne=y.lastReceivedId,oe=y.message,ie=y.showUnreadUnderlay,se=y.t,le=y.targetedMessage,pe=w.channel,ge=w.lastReceivedId,me=w.message,he=w.showUnreadUnderlay,ve=w.t,ye=w.targetedMessage;if(!(oe.reply_count===me.reply_count))return!1;if(ne!==ge&&(ne===oe.id||ne===me.id||ge===oe.id||ge===me.id))return!1;if(!(oe.deleted_at===me.deleted_at&&((0,Se.isMessageWithStylesReadByAndDateSeparator)(oe)&&oe.readBy)===((0,Se.isMessageWithStylesReadByAndDateSeparator)(me)&&me.readBy)&&oe.status===me.status&&oe.type===me.type&&oe.text===me.text&&oe.updated_at===me.updated_at))return!1;if(!((null==(E=oe.user)?void 0:E.banned)===(null==(P=me.user)?void 0:P.banned)))return!1;var _e=oe.attachments,Re=me.attachments;return!!(Array.isArray(_e)&&Array.isArray(Re)&&_e.length===Re.length&&_e.every((function(y,w){return"image"===y.type?y.image_url===Re[w].image_url&&y.thumb_url===Re[w].thumb_url:y.type===Re[w].type}))||_e===Re)&&(!!(Array.isArray(oe.latest_reactions)&&Array.isArray(me.latest_reactions)?oe.latest_reactions.length===me.latest_reactions.length&&oe.latest_reactions.every((function(y,w){var E;return y.type===(null==(E=me.latest_reactions)?void 0:E[w].type)})):oe.latest_reactions===me.latest_reactions)&&(!(!q||!pe||q.state.mutedUsers.length!==pe.state.mutedUsers.length)&&(ie===he&&(se===ve&&!(le!==ye)))))}));w.Message=function Message(y){var w=(0,Ae.useChannelContext)(),E=w.channel,P=w.disabled,q=w.enforceUniqueReaction,oe=w.isAdmin,ie=w.isModerator,se=w.isOwner,pe=w.members,ge=w.readEventsEnabled,me=(0,Te.useChatContext)().client,he=(0,Oe.useKeyboardContext)().dismissKeyboard,ve=(0,je.useMessageOverlayContext)().setData,ye=(0,Be.useMessagesContext)(),_e=(0,Ve.useOverlayContext)().setOverlay,Re=(0,Ue.useThreadContext)().openThread,we=(0,We.useTranslationContext)().t;return le.default.createElement(tt,(0,ne.default)({},ye,{channel:E,client:me,disabled:P,dismissKeyboard:he,enforceUniqueReaction:q,isAdmin:oe,isModerator:ie,isOwner:se,members:pe,messagesContext:ye,openThread:Re,readEventsEnabled:ge,setData:ve,setOverlay:_e,t:we},y))}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageAvatar=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(8)),ie=E(131),se=E(57),le=E(11),pe=ne.default.memo((function MessageAvatarWithContext(y){var w,E,P,q=y.alignment,se=y.lastGroupMessage,pe=y.message,ge=y.showAvatar,me=y.size,he=(0,le.useTheme)().theme,ve=he.avatar.BASE_AVATAR_SIZE,ye=he.messageSimple.avatarWrapper,_e=ye.container,Re=ye.leftAlign,we=ye.rightAlign,ke=ye.spacer,Me="boolean"==typeof ge?ge:se;return ne.default.createElement(oe.default,{style:["left"===q?Re:we,_e],testID:"message-avatar"},Me?ne.default.createElement(ie.Avatar,{image:null==(w=pe.user)?void 0:w.image,name:(null==(E=pe.user)?void 0:E.name)||(null==(P=pe.user)?void 0:P.id),size:me||ve}):ne.default.createElement(oe.default,{style:ke,testID:"spacer"}))}),(function areEqual(y,w){var E,P,q,ne,oe,ie,se=y.lastGroupMessage,le=y.message,pe=w.lastGroupMessage,ge=w.message;return se===pe&&!((null==(E=le.user)?void 0:E.image)!==(null==(P=ge.user)?void 0:P.image)||(null==(q=le.user)?void 0:q.name)!==(null==(ne=ge.user)?void 0:ne.name)||(null==(oe=le.user)?void 0:oe.id)!==(null==(ie=ge.user)?void 0:ie.id))})),ge=function MessageAvatar(y){var w=(0,se.useMessageContext)(),E=w.alignment,P=w.lastGroupMessage,oe=w.message,ie=w.showAvatar;return ne.default.createElement(pe,(0,q.default)({alignment:E,lastGroupMessage:P,message:oe,showAvatar:ie},y))};w.MessageAvatar=ge,ge.displayName="MessageAvatar{messageSimple{avatarWrapper}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withTypingContext=w.useTypingContext=w.TypingProvider=w.TypingContext=void 0;var ne=q(E(5)),oe=P(E(0)),ie=E(54),se=oe.default.createContext({});w.TypingContext=se;w.TypingProvider=function TypingProvider(y){var w=y.children,E=y.value;return oe.default.createElement(se.Provider,{value:E},w)};var le=function useTypingContext(){return(0,oe.useContext)(se)};w.useTypingContext=le;w.withTypingContext=function withTypingContext(y){var w=function WithTypingContextComponent(w){var E=le();return oe.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithTypingContext"+(0,ie.getDisplayName)(y),w}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.OverlayReactionList=w.ReactionButton=void 0;var ne=q(E(5)),oe=q(E(0)),ie=q(E(7)),se=q(E(157)),le=q(E(8)),pe=E(88),ge=P(E(58)),me=P(E(49)),he=E(176),ve=E(40),ye=E(106),_e=E(11),Re=E(42),we=E(84),ke=ge.default.createAnimatedComponent?ge.default.createAnimatedComponent(me.Circle):me.Circle,Me=ie.default.create({notLastReaction:{marginRight:16},reactionList:{alignItems:"center",borderRadius:24,flexDirection:"row",justifyContent:"center",paddingHorizontal:16,paddingVertical:12,position:"absolute"},selectedIcon:{position:"absolute"}}),Se=[{Icon:Re.LoveReaction,type:"love"},{Icon:Re.ThumbsUpReaction,type:"like"},{Icon:Re.ThumbsDownReaction,type:"sad"},{Icon:Re.LOLReaction,type:"haha"},{Icon:Re.WutReaction,type:"wow"}],Ae=function ReactionButton(y){var w=y.handleReaction,E=y.Icon,P=y.index,q=y.numberOfReactions,ne=y.ownReactionTypes,ie=y.setOverlay,se=y.showScreen,le=y.type,me=(0,_e.useTheme)().theme,he=me.colors,ve=he.accent_blue,ye=he.grey,Re=me.overlay.reactionsList.reaction,ke=ne.includes(le),Se=(0,ge.useSharedValue)(0),Ae=(0,ge.useSharedValue)(0),Te=(0,ge.useSharedValue)(1),Oe=(0,ge.useSharedValue)(ke?1:0),Fe=(0,ge.useAnimatedGestureHandler)({onEnd:function onEnd(){(0,ge.runOnJS)(we.triggerHaptic)("impactLight"),Oe.value=(0,ge.withTiming)(ke?0:1,{duration:250},(function(){w&&(0,ge.runOnJS)(w)(le),(0,ge.runOnJS)(ie)("none")}))},onFinish:function onFinish(){(0,ge.cancelAnimation)(Te),Te.value=(0,ge.withTiming)(1,{duration:100})},onStart:function onStart(){(0,ge.cancelAnimation)(Te),Te.value=(0,ge.withTiming)(1.5,{duration:100})}},[w,ke,ie,le]);(0,ge.useAnimatedReaction)((function(){return se.value>.8&&0===Ae.value?1:0}),(function(y){0===Ae.value&&0!==y&&(Ae.value=1,Se.value=(0,ge.withSequence)((0,ge.withDelay)(60*(q-(P+1)),(0,ge.withTiming)(1.5,{duration:300})),(0,ge.withTiming)(1,{duration:200})))}),[P,q]);var je=(0,ge.useAnimatedStyle)((function(){return{transform:[{scale:Se.value},{scale:Te.value}]}}),[]),Be=(0,ge.useAnimatedStyle)((function(){return{opacity:Oe.value}}));return oe.default.createElement(pe.TapGestureHandler,{hitSlop:{bottom:Number(Re.paddingVertical||0)||Number(Re.paddingBottom||0)||Me.reactionList.paddingVertical,left:(Number(Re.paddingHorizontal||0)||Number(Re.paddingLeft||0)||Me.notLastReaction.marginRight)/2,right:(Number(Re.paddingHorizontal||0)||Number(Re.paddingRight||0)||Me.notLastReaction.marginRight)/2,top:Number(Re.paddingVertical||0)||Number(Re.paddingTop||0)||Me.reactionList.paddingVertical},maxDurationMs:3e3,onHandlerStateChange:Fe},oe.default.createElement(ge.default.View,{style:[P!==q-1?Me.notLastReaction:{},Re,je]},oe.default.createElement(E,{pathFill:ye}),oe.default.createElement(ge.default.View,{style:[Me.selectedIcon,Be]},oe.default.createElement(E,{pathFill:ve}))))};w.ReactionButton=Ae;var Te=oe.default.memo((function OverlayReactionListWithContext(y){var w=y.alignment,E=y.fill,P=y.handleReaction,q=y.messageLayout,ne=y.ownReactionTypes,pe=y.reactionListHeight,he=y.showScreen,ve=y.setOverlay,ye=y.supportedReactions,Re=void 0===ye?Se:ye,we=(0,_e.useTheme)().theme,Te=we.colors.white_snow,Oe=we.overlay,Fe=Oe.padding,je=Oe.reactionsList,Be=je.radius,Ve=je.reactionList,Ne=(0,ge.useSharedValue)(0),Ue=(0,ge.useSharedValue)({height:0,width:0},!1),We=(0,se.default)().width,$e=(0,ge.useAnimatedStyle)((function(){var y=Ve.borderRadius||Me.reactionList.borderRadius,w=q.value.x-Ue.value.width+y>Fe,E=q.value.x+y0?P:E)(y)}},function(y,w,E){var P=E(640),q=E(408);y.exports=Object.keys||function keys(y){return P(y,q)}},function(y,w,E){"use strict";var P,q,ne=E(410),oe=E(643),ie=RegExp.prototype.exec,se=String.prototype.replace,le=ie,pe=(P=/a/,q=/b*/g,ie.call(P,"a"),ie.call(q,"a"),0!==P.lastIndex||0!==q.lastIndex),ge=oe.UNSUPPORTED_Y||oe.BROKEN_CARET,me=void 0!==/()??/.exec("")[1];(pe||me||ge)&&(le=function exec(y){var w,E,P,q,oe=this,le=ge&&oe.sticky,he=ne.call(oe),ve=oe.source,ye=0,_e=y;return le&&(-1===(he=he.replace("y","")).indexOf("g")&&(he+="g"),_e=String(y).slice(oe.lastIndex),oe.lastIndex>0&&(!oe.multiline||oe.multiline&&"\n"!==y[oe.lastIndex-1])&&(ve="(?: "+ve+")",_e=" "+_e,ye++),E=new RegExp("^(?:"+ve+")",he)),me&&(E=new RegExp("^"+ve+"$(?!\\s)",he)),pe&&(w=oe.lastIndex),P=ie.call(le?E:oe,_e),le?P?(P.input=P.input.slice(ye),P[0]=P[0].slice(ye),P.index=oe.lastIndex,oe.lastIndex+=P[0].length):oe.lastIndex=0:pe&&P&&(oe.lastIndex=oe.global?P.index+P[0].length:w),me&&P&&P.length>1&&se.call(P[0],E,(function(){for(q=1;q")})),pe="$0"==="a".replace(/./,"$0"),ge=ne("replace"),me=!!/./[ge]&&""===/./[ge]("a","$0"),he=!q((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,ge){var ve=ne(y),ye=!q((function(){var w={};return w[ve]=function(){return 7},7!=""[y](w)})),_e=ye&&!q((function(){var w=!1,E=/a/;return"split"===y&&((E={}).constructor={},E.constructor[se]=function(){return E},E.flags="",E[ve]=/./[ve]),E.exec=function(){return w=!0,null},E[ve](""),!w}));if(!ye||!_e||"replace"===y&&(!le||!pe||me)||"split"===y&&!he){var Re=/./[ve],we=E(ve,""[y],(function(y,w,E,P,q){return w.exec===oe?ye&&!q?{done:!0,value:Re.call(w,E,P)}:{done:!0,value:y.call(E,w,P)}:{done:!1}}),{REPLACE_KEEPS_$0:pe,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:me}),ke=we[0],Me=we[1];P(String.prototype,y,ke),P(RegExp.prototype,ve,2==w?function(y,w){return Me.call(y,this,w)}:function(y){return Me.call(y,this)})}ge&&ie(RegExp.prototype[ve],"sham",!0)}},function(y,w,E){var P=E(212),q=E(283);y.exports=function(y,w){var E=y.exec;if("function"==typeof E){var ne=E.call(y,w);if("object"!=typeof ne)throw TypeError("RegExp exec method returned something other than an Object or null");return ne}if("RegExp"!==P(y))throw TypeError("RegExp#exec called on incompatible receiver");return q.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 P=E(50),q=E(415);P({target:"String",proto:!0,forced:E(416)("link")},{link:function link(y){return q(this,"a","href",y)}})},function(y,w,E){"use strict";var P=E(35);y.exports=function(y,w){var E=[][y];return!!E&&P((function(){E.call(null,w||function(){throw 1},1)}))}},function(y,w,E){"use strict";var P=E(185),q=E.n(P);w.a=function processColor(y){if(null==y)return y;var w=q()(y);return null!=w?w=(w<<24|w>>>8)>>>0:void 0}},function(y,w,E){"use strict";var P=E(192),q=E(109),ne=E(7),oe=E(189),ie=E(62);var se={},le=Object.prototype.hasOwnProperty,pe=q.a.create({reset:{backgroundColor:"transparent",color:"inherit",font:"inherit",listStyle:"none",margin:0,textAlign:"inherit",textDecoration:"none"},cursor:{cursor:"pointer"}},ie.c.classicReset),ge=ne.default.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});w.a=function createDOMProps(y,w){w||(w=se);var E=w,q=E.accessibilityLabel,ie=E.accessibilityLiveRegion,me=E.accessibilityState,he=E.accessibilityValue,ve=E.accessible,ye=E.classList,_e=E.dataSet,Re=E.disabled,we=E.importantForAccessibility,ke=E.nativeID,Me=E.pointerEvents,Se=E.style,Ae=E.testID,Te=(E.accessibilityRole,function _objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,P,q={},ne=Object.keys(y);for(P=0;P=0||(q[E]=y[E]);return q}(E,["accessibilityLabel","accessibilityLiveRegion","accessibilityState","accessibilityValue","accessible","classList","dataSet","disabled","importantForAccessibility","nativeID","pointerEvents","style","testID","accessibilityRole"])),Oe=null!=me&&!0===me.disabled||Re,Fe=P.a.propsToAriaRole(w),je="link"===Fe||"a"===y||"button"===y||"input"===y||"select"===y||"textarea"===y||null!=Te.contentEditable;if(null!=_e)for(var Be in _e)if(le.call(_e,Be)){var Ve=_e[Be];null!=Ve&&(Te["data-"+Be]=Ve)}if(null!=q&&(Te["aria-label"]=q),null!=ie&&(Te["aria-live"]="none"===ie?"off":ie),null!=Fe&&(Te.role=Fe),null!=me)for(var Ne in me){var Ue=me[Ne];null!=Ue&&("disabled"===Ne||"hidden"===Ne?!0===Ue&&(Te["aria-"+Ne]=Ue,Te[Ne]=Ue):Te["aria-"+Ne]=Ue)}if(null!=he)for(var We in he){var $e=he[We];null!=$e&&(Te["aria-value"+We]=$e)}"no-hide-descendants"===we&&(Te["aria-hidden"]=!0),!0===Oe&&(Te["aria-disabled"]=!0,Te.disabled=!0);var Ye=!Oe&&"no"!==we&&"no-hide-descendants"!==we;je?!1!==ve&&Ye?Te["data-focusable"]=!0:Te.tabIndex="-1":"button"===Fe||"menuitem"===Fe||"textbox"===Fe?!1!==ve&&Ye&&(Te["data-focusable"]=!0,Te.tabIndex="0"):!0===ve&&Ye&&(Te["data-focusable"]=!0,Te.tabIndex="0");var Xe=ne.default.compose(Me&&ge[Me],Se),et=("button"===Fe||"link"===Fe)&&!Oe,tt=[("a"===y||"button"===y||"li"===y||"ul"===y||"heading"===Fe)&&pe.reset,et&&pe.cursor,ye],nt=oe.a.resolve(Xe,tt),rt=nt.className,ot=nt.style;if(null!=rt&&""!==rt&&(Te.className=rt),ot&&(Te.style=ot),null!=ke&&(Te.id=ke),"a"===y&&"_blank"===Te.target&&(Te.rel=(Te.rel||"")+" noopener noreferrer"),null!=Ae&&(Te["data-testid"]=Ae),je||"button"===Fe||"menuitem"===Fe||!0===ve&&Ye){var it=Te.onClick;if(null!=it)if(Oe)Te.onClick=function(y){y.stopPropagation()};else if(!je){var st=Te.onKeyDown;Te.onKeyDown=function(y){var w=y.key,E=y.repeat,P=" "===w||"Spacebar"===w,q="button"===Fe||"menuitem"===Fe;null!=st&&st(y),E||"Enter"!==w?P&&q&&(E||it(y),y.preventDefault()):it(y)}}}return Te}},function(y,w,E){"use strict";var P=E(304),q=E(71),ne={height:0,width:0};w.a=function resolveShadowValue(y){var w=y.shadowColor,E=y.shadowOffset,oe=y.shadowOpacity,ie=y.shadowRadius,se=E||ne,le=se.height,pe=se.width,ge=Object(q.a)(pe),me=Object(q.a)(le),he=Object(q.a)(ie||0),ve=Object(P.a)(w||"black",oe);if(null!=ve&&null!=ge&&null!=me&&null!=he)return ge+" "+me+" "+he+" "+ve}},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=0?y.ownerDocument.body:isHTMLElement(y)&&isScrollParent(y)?y:getScrollParent(getParentNode(y))}function listScrollParents(y,w){void 0===w&&(w=[]);var E=getScrollParent(y),P="body"===getNodeName(E),q=getWindow(E),ne=P?[q].concat(q.visualViewport||[],isScrollParent(E)?E:[]):E,oe=w.concat(ne);return P?oe:oe.concat(listScrollParents(getParentNode(ne)))}function isTableElement(y){return["table","td","th"].indexOf(getNodeName(y))>=0}function getTrueOffsetParent(y){if(!isHTMLElement(y)||"fixed"===getComputedStyle(y).position)return null;var w=y.offsetParent;if(w){var E=getDocumentElement(w);if("body"===getNodeName(w)&&"static"===getComputedStyle(w).position&&"static"!==getComputedStyle(E).position)return E}return w}function getOffsetParent(y){for(var w=getWindow(y),E=getTrueOffsetParent(y);E&&isTableElement(E)&&"static"===getComputedStyle(E).position;)E=getTrueOffsetParent(E);return E&&"body"===getNodeName(E)&&"static"===getComputedStyle(E).position?w:E||function getContainingBlock(y){for(var w=getParentNode(y);isHTMLElement(w)&&["html","body"].indexOf(getNodeName(w))<0;){var E=getComputedStyle(w);if("none"!==E.transform||"none"!==E.perspective||E.willChange&&"auto"!==E.willChange)return w;w=w.parentNode}return null}(y)||w}var le="top",pe="bottom",ge="right",me="left",he="auto",ve=[le,pe,ge,me],ye="start",_e="end",Re="viewport",we="popper",ke=ve.reduce((function(y,w){return y.concat([w+"-"+ye,w+"-"+_e])}),[]),Me=[].concat(ve,[he]).reduce((function(y,w){return y.concat([w,w+"-"+ye,w+"-"+_e])}),[]),Se=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function order(y){var w=new Map,E=new Set,P=[];function sort(y){E.add(y.name),[].concat(y.requires||[],y.requiresIfExists||[]).forEach((function(y){if(!E.has(y)){var P=w.get(y);P&&sort(P)}})),P.push(y)}return y.forEach((function(y){w.set(y.name,y)})),y.forEach((function(y){E.has(y.name)||sort(y)})),P}var Ae={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var y=arguments.length,w=new Array(y),E=0;E=0?"x":"y"}function computeOffsets(y){var w,E=y.reference,P=y.element,q=y.placement,ne=q?getBasePlacement(q):null,oe=q?getVariation(q):null,ie=E.x+E.width/2-P.width/2,se=E.y+E.height/2-P.height/2;switch(ne){case le:w={x:ie,y:E.y-P.height};break;case pe:w={x:ie,y:E.y+E.height};break;case ge:w={x:E.x+E.width,y:se};break;case me:w={x:E.x-P.width,y:se};break;default:w={x:E.x,y:E.y}}var he=ne?getMainAxisFromPlacement(ne):null;if(null!=he){var ve="y"===he?"height":"width";switch(oe){case ye:w[he]=w[he]-(E[ve]/2-P[ve]/2);break;case _e:w[he]=w[he]+(E[ve]/2-P[ve]/2)}}return w}var Oe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(y){var w,E=y.popper,P=y.popperRect,q=y.placement,ne=y.offsets,oe=y.position,ie=y.gpuAcceleration,se=y.adaptive,he=y.roundOffsets?function roundOffsetsByDPR(y){var w=y.x,E=y.y,P=window.devicePixelRatio||1;return{x:Math.round(w*P)/P||0,y:Math.round(E*P)/P||0}}(ne):ne,ve=he.x,ye=void 0===ve?0:ve,_e=he.y,Re=void 0===_e?0:_e,we=ne.hasOwnProperty("x"),ke=ne.hasOwnProperty("y"),Me=me,Se=le,Ae=window;if(se){var Te=getOffsetParent(E);Te===getWindow(E)&&(Te=getDocumentElement(E)),q===le&&(Se=pe,Re-=Te.clientHeight-P.height,Re*=ie?1:-1),q===me&&(Me=ge,ye-=Te.clientWidth-P.width,ye*=ie?1:-1)}var Fe,je=Object.assign({position:oe},se&&Oe);return ie?Object.assign(Object.assign({},je),{},((Fe={})[Se]=ke?"0":"",Fe[Me]=we?"0":"",Fe.transform=(Ae.devicePixelRatio||1)<2?"translate("+ye+"px, "+Re+"px)":"translate3d("+ye+"px, "+Re+"px, 0)",Fe)):Object.assign(Object.assign({},je),{},((w={})[Se]=ke?Re+"px":"",w[Me]=we?ye+"px":"",w.transform="",w))}var Fe={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(y){return y.replace(/left|right|bottom|top/g,(function(y){return Fe[y]}))}var je={start:"end",end:"start"};function getOppositeVariationPlacement(y){return y.replace(/start|end/g,(function(y){return je[y]}))}function contains(y,w){var E=w.getRootNode&&w.getRootNode();if(y.contains(w))return!0;if(E&&function isShadowRoot(y){return y instanceof getWindow(y).ShadowRoot||y instanceof ShadowRoot}(E)){var P=w;do{if(P&&y.isSameNode(P))return!0;P=P.parentNode||P.host}while(P)}return!1}function rectToClientRect(y){return Object.assign(Object.assign({},y),{},{left:y.x,top:y.y,right:y.x+y.width,bottom:y.y+y.height})}function getClientRectFromMixedType(y,w){return w===Re?rectToClientRect(function getViewportRect(y){var w=getWindow(y),E=getDocumentElement(y),P=w.visualViewport,q=E.clientWidth,ne=E.clientHeight,oe=0,ie=0;return P&&(q=P.width,ne=P.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(oe=P.offsetLeft,ie=P.offsetTop)),{width:q,height:ne,x:oe+getWindowScrollBarX(y),y:ie}}(y)):isHTMLElement(w)?function getInnerBoundingClientRect(y){var w=getBoundingClientRect(y);return w.top=w.top+y.clientTop,w.left=w.left+y.clientLeft,w.bottom=w.top+y.clientHeight,w.right=w.left+y.clientWidth,w.width=y.clientWidth,w.height=y.clientHeight,w.x=w.left,w.y=w.top,w}(w):rectToClientRect(function getDocumentRect(y){var w=getDocumentElement(y),E=getWindowScroll(y),P=y.ownerDocument.body,q=Math.max(w.scrollWidth,w.clientWidth,P?P.scrollWidth:0,P?P.clientWidth:0),ne=Math.max(w.scrollHeight,w.clientHeight,P?P.scrollHeight:0,P?P.clientHeight:0),oe=-E.scrollLeft+getWindowScrollBarX(y),ie=-E.scrollTop;return"rtl"===getComputedStyle(P||w).direction&&(oe+=Math.max(w.clientWidth,P?P.clientWidth:0)-q),{width:q,height:ne,x:oe,y:ie}}(getDocumentElement(y)))}function getClippingRect(y,w,E){var P="clippingParents"===w?function getClippingParents(y){var w=listScrollParents(getParentNode(y)),E=["absolute","fixed"].indexOf(getComputedStyle(y).position)>=0&&isHTMLElement(y)?getOffsetParent(y):y;return isElement(E)?w.filter((function(y){return isElement(y)&&contains(y,E)&&"body"!==getNodeName(y)})):[]}(y):[].concat(w),q=[].concat(P,[E]),ne=q[0],oe=q.reduce((function(w,E){var P=getClientRectFromMixedType(y,E);return w.top=Math.max(P.top,w.top),w.right=Math.min(P.right,w.right),w.bottom=Math.min(P.bottom,w.bottom),w.left=Math.max(P.left,w.left),w}),getClientRectFromMixedType(y,ne));return oe.width=oe.right-oe.left,oe.height=oe.bottom-oe.top,oe.x=oe.left,oe.y=oe.top,oe}function mergePaddingObject(y){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),y)}function expandToHashMap(y,w){return w.reduce((function(w,E){return w[E]=y,w}),{})}function detectOverflow(y,w){void 0===w&&(w={});var E=w,P=E.placement,q=void 0===P?y.placement:P,ne=E.boundary,oe=void 0===ne?"clippingParents":ne,ie=E.rootBoundary,se=void 0===ie?Re:ie,me=E.elementContext,he=void 0===me?we:me,ye=E.altBoundary,_e=void 0!==ye&&ye,ke=E.padding,Me=void 0===ke?0:ke,Se=mergePaddingObject("number"!=typeof Me?Me:expandToHashMap(Me,ve)),Ae=he===we?"reference":we,Te=y.elements.reference,Oe=y.rects.popper,Fe=y.elements[_e?Ae:he],je=getClippingRect(isElement(Fe)?Fe:Fe.contextElement||getDocumentElement(y.elements.popper),oe,se),Be=getBoundingClientRect(Te),Ve=computeOffsets({reference:Be,element:Oe,strategy:"absolute",placement:q}),Ne=rectToClientRect(Object.assign(Object.assign({},Oe),Ve)),Ue=he===we?Ne:Be,We={top:je.top-Ue.top+Se.top,bottom:Ue.bottom-je.bottom+Se.bottom,left:je.left-Ue.left+Se.left,right:Ue.right-je.right+Se.right},$e=y.modifiersData.offset;if(he===we&&$e){var Ye=$e[q];Object.keys(We).forEach((function(y){var w=[ge,pe].indexOf(y)>=0?1:-1,E=[le,pe].indexOf(y)>=0?"y":"x";We[y]+=Ye[E]*w}))}return We}function within(y,w,E){return Math.max(y,Math.min(w,E))}function getSideOffsets(y,w,E){return void 0===E&&(E={x:0,y:0}),{top:y.top-w.height-E.y,right:y.right-w.width+E.x,bottom:y.bottom-w.height+E.y,left:y.left-w.width-E.x}}function isAnySideFullyClipped(y){return[le,ge,pe,me].some((function(w){return y[w]>=0}))}var Be=popperGenerator({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function effect(y){var w=y.state,E=y.instance,P=y.options,q=P.scroll,ne=void 0===q||q,oe=P.resize,ie=void 0===oe||oe,se=getWindow(w.elements.popper),le=[].concat(w.scrollParents.reference,w.scrollParents.popper);return ne&&le.forEach((function(y){y.addEventListener("scroll",E.update,Te)})),ie&&se.addEventListener("resize",E.update,Te),function(){ne&&le.forEach((function(y){y.removeEventListener("scroll",E.update,Te)})),ie&&se.removeEventListener("resize",E.update,Te)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets_popperOffsets(y){var w=y.state,E=y.name;w.modifiersData[E]=computeOffsets({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(y){var w=y.state,E=y.options,P=E.gpuAcceleration,q=void 0===P||P,ne=E.adaptive,oe=void 0===ne||ne,ie=E.roundOffsets,se=void 0===ie||ie,le={placement:getBasePlacement(w.placement),popper:w.elements.popper,popperRect:w.rects.popper,gpuAcceleration:q};null!=w.modifiersData.popperOffsets&&(w.styles.popper=Object.assign(Object.assign({},w.styles.popper),mapToStyles(Object.assign(Object.assign({},le),{},{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:oe,roundOffsets:se})))),null!=w.modifiersData.arrow&&(w.styles.arrow=Object.assign(Object.assign({},w.styles.arrow),mapToStyles(Object.assign(Object.assign({},le),{},{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:se})))),w.attributes.popper=Object.assign(Object.assign({},w.attributes.popper),{},{"data-popper-placement":w.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(y){var w=y.state;Object.keys(w.elements).forEach((function(y){var E=w.styles[y]||{},P=w.attributes[y]||{},q=w.elements[y];isHTMLElement(q)&&getNodeName(q)&&(Object.assign(q.style,E),Object.keys(P).forEach((function(y){var w=P[y];!1===w?q.removeAttribute(y):q.setAttribute(y,!0===w?"":w)})))}))},effect:function applyStyles_effect(y){var w=y.state,E={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,E.popper),w.elements.arrow&&Object.assign(w.elements.arrow.style,E.arrow),function(){Object.keys(w.elements).forEach((function(y){var P=w.elements[y],q=w.attributes[y]||{},ne=Object.keys(w.styles.hasOwnProperty(y)?w.styles[y]:E[y]).reduce((function(y,w){return y[w]="",y}),{});isHTMLElement(P)&&getNodeName(P)&&(Object.assign(P.style,ne),Object.keys(q).forEach((function(y){P.removeAttribute(y)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset_offset(y){var w=y.state,E=y.options,P=y.name,q=E.offset,ne=void 0===q?[0,0]:q,oe=Me.reduce((function(y,E){return y[E]=function distanceAndSkiddingToXY(y,w,E){var P=getBasePlacement(y),q=[me,le].indexOf(P)>=0?-1:1,ne="function"==typeof E?E(Object.assign(Object.assign({},w),{},{placement:y})):E,oe=ne[0],ie=ne[1];return oe=oe||0,ie=(ie||0)*q,[me,ge].indexOf(P)>=0?{x:ie,y:oe}:{x:oe,y:ie}}(E,w.rects,ne),y}),{}),ie=oe[w.placement],se=ie.x,pe=ie.y;null!=w.modifiersData.popperOffsets&&(w.modifiersData.popperOffsets.x+=se,w.modifiersData.popperOffsets.y+=pe),w.modifiersData[P]=oe}},{name:"flip",enabled:!0,phase:"main",fn:function flip(y){var w=y.state,E=y.options,P=y.name;if(!w.modifiersData[P]._skip){for(var q=E.mainAxis,ne=void 0===q||q,oe=E.altAxis,ie=void 0===oe||oe,se=E.fallbackPlacements,_e=E.padding,Re=E.boundary,we=E.rootBoundary,Se=E.altBoundary,Ae=E.flipVariations,Te=void 0===Ae||Ae,Oe=E.allowedAutoPlacements,Fe=w.options.placement,je=getBasePlacement(Fe),Be=se||(je===Fe||!Te?[getOppositePlacement(Fe)]:function getExpandedFallbackPlacements(y){if(getBasePlacement(y)===he)return[];var w=getOppositePlacement(y);return[getOppositeVariationPlacement(y),w,getOppositeVariationPlacement(w)]}(Fe)),Ve=[Fe].concat(Be).reduce((function(y,E){return y.concat(getBasePlacement(E)===he?function computeAutoPlacement(y,w){void 0===w&&(w={});var E=w,P=E.placement,q=E.boundary,ne=E.rootBoundary,oe=E.padding,ie=E.flipVariations,se=E.allowedAutoPlacements,le=void 0===se?Me:se,pe=getVariation(P),ge=pe?ie?ke:ke.filter((function(y){return getVariation(y)===pe})):ve,me=ge.filter((function(y){return le.indexOf(y)>=0}));0===me.length&&(me=ge);var he=me.reduce((function(w,E){return w[E]=detectOverflow(y,{placement:E,boundary:q,rootBoundary:ne,padding:oe})[getBasePlacement(E)],w}),{});return Object.keys(he).sort((function(y,w){return he[y]-he[w]}))}(w,{placement:E,boundary:Re,rootBoundary:we,padding:_e,flipVariations:Te,allowedAutoPlacements:Oe}):E)}),[]),Ne=w.rects.reference,Ue=w.rects.popper,We=new Map,$e=!0,Ye=Ve[0],Xe=0;Xe=0,ot=rt?"width":"height",it=detectOverflow(w,{placement:et,boundary:Re,rootBoundary:we,altBoundary:Se,padding:_e}),st=rt?nt?ge:me:nt?pe:le;Ne[ot]>Ue[ot]&&(st=getOppositePlacement(st));var dt=getOppositePlacement(st),ct=[];if(ne&&ct.push(it[tt]<=0),ie&&ct.push(it[st]<=0,it[dt]<=0),ct.every((function(y){return y}))){Ye=et,$e=!1;break}We.set(et,ct)}if($e)for(var lt=function _loop(y){var w=Ve.find((function(w){var E=We.get(w);if(E)return E.slice(0,y).every((function(y){return y}))}));if(w)return Ye=w,"break"},ut=Te?3:1;ut>0;ut--){if("break"===lt(ut))break}w.placement!==Ye&&(w.modifiersData[P]._skip=!0,w.placement=Ye,w.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(y){var w=y.state,E=y.options,P=y.name,q=E.mainAxis,ne=void 0===q||q,oe=E.altAxis,ie=void 0!==oe&&oe,se=E.boundary,he=E.rootBoundary,ve=E.altBoundary,_e=E.padding,Re=E.tether,we=void 0===Re||Re,ke=E.tetherOffset,Me=void 0===ke?0:ke,Se=detectOverflow(w,{boundary:se,rootBoundary:he,padding:_e,altBoundary:ve}),Ae=getBasePlacement(w.placement),Te=getVariation(w.placement),Oe=!Te,Fe=getMainAxisFromPlacement(Ae),je=function getAltAxis(y){return"x"===y?"y":"x"}(Fe),Be=w.modifiersData.popperOffsets,Ve=w.rects.reference,Ne=w.rects.popper,Ue="function"==typeof Me?Me(Object.assign(Object.assign({},w.rects),{},{placement:w.placement})):Me,We={x:0,y:0};if(Be){if(ne){var $e="y"===Fe?le:me,Ye="y"===Fe?pe:ge,Xe="y"===Fe?"height":"width",et=Be[Fe],tt=Be[Fe]+Se[$e],nt=Be[Fe]-Se[Ye],rt=we?-Ne[Xe]/2:0,ot=Te===ye?Ve[Xe]:Ne[Xe],it=Te===ye?-Ne[Xe]:-Ve[Xe],st=w.elements.arrow,dt=we&&st?getLayoutRect(st):{width:0,height:0},ct=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},lt=ct[$e],ut=ct[Ye],pt=within(0,Ve[Xe],dt[Xe]),gt=Oe?Ve[Xe]/2-rt-pt-lt-Ue:ot-pt-lt-Ue,mt=Oe?-Ve[Xe]/2+rt+pt+ut+Ue:it+pt+ut+Ue,ht=w.elements.arrow&&getOffsetParent(w.elements.arrow),ft=ht?"y"===Fe?ht.clientTop||0:ht.clientLeft||0:0,vt=w.modifiersData.offset?w.modifiersData.offset[w.placement][Fe]:0,yt=Be[Fe]+gt-vt-ft,bt=Be[Fe]+mt-vt,_t=within(we?Math.min(tt,yt):tt,et,we?Math.max(nt,bt):nt);Be[Fe]=_t,We[Fe]=_t-et}if(ie){var Rt="x"===Fe?le:me,xt="x"===Fe?pe:ge,Ct=Be[je],wt=within(Ct+Se[Rt],Ct,Ct-Se[xt]);Be[je]=wt,We[je]=wt-Ct}w.modifiersData[P]=We}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function arrow_arrow(y){var w,E=y.state,P=y.name,q=E.elements.arrow,ne=E.modifiersData.popperOffsets,oe=getBasePlacement(E.placement),ie=getMainAxisFromPlacement(oe),se=[me,ge].indexOf(oe)>=0?"height":"width";if(q&&ne){var he=E.modifiersData[P+"#persistent"].padding,ve=getLayoutRect(q),ye="y"===ie?le:me,_e="y"===ie?pe:ge,Re=E.rects.reference[se]+E.rects.reference[ie]-ne[ie]-E.rects.popper[se],we=ne[ie]-E.rects.reference[ie],ke=getOffsetParent(q),Me=ke?"y"===ie?ke.clientHeight||0:ke.clientWidth||0:0,Se=Re/2-we/2,Ae=he[ye],Te=Me-ve[se]-he[_e],Oe=Me/2-ve[se]/2+Se,Fe=within(Ae,Oe,Te),je=ie;E.modifiersData[P]=((w={})[je]=Fe,w.centerOffset=Fe-Oe,w)}},effect:function arrow_effect(y){var w=y.state,E=y.options,P=y.name,q=E.element,ne=void 0===q?"[data-popper-arrow]":q,oe=E.padding,ie=void 0===oe?0:oe;null!=ne&&("string"!=typeof ne||(ne=w.elements.popper.querySelector(ne)))&&contains(w.elements.popper,ne)&&(w.elements.arrow=ne,w.modifiersData[P+"#persistent"]={padding:mergePaddingObject("number"!=typeof ie?ie:expandToHashMap(ie,ve))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide_hide(y){var w=y.state,E=y.name,P=w.rects.reference,q=w.rects.popper,ne=w.modifiersData.preventOverflow,oe=detectOverflow(w,{elementContext:"reference"}),ie=detectOverflow(w,{altBoundary:!0}),se=getSideOffsets(oe,P),le=getSideOffsets(ie,q,ne),pe=isAnySideFullyClipped(se),ge=isAnySideFullyClipped(le);w.modifiersData[E]={referenceClippingOffsets:se,popperEscapeOffsets:le,isReferenceHidden:pe,hasPopperEscaped:ge},w.attributes.popper=Object.assign(Object.assign({},w.attributes.popper),{},{"data-popper-reference-hidden":pe,"data-popper-escaped":ge})}}]}),Ve="tippy-content",Ne="tippy-backdrop",Ue="tippy-arrow",We="tippy-svg-arrow",$e={passive:!0,capture:!0};function getValueAtIndexOrReturn(y,w,E){if(Array.isArray(y)){var P=y[w];return null==P?Array.isArray(E)?E[w]:E:P}return y}function isType(y,w){var E={}.toString.call(y);return 0===E.indexOf("[object")&&E.indexOf(w+"]")>-1}function invokeWithArgsOrReturn(y,w){return"function"==typeof y?y.apply(void 0,w):y}function tippy_esm_debounce(y,w){return 0===w?y:function(P){clearTimeout(E),E=setTimeout((function(){y(P)}),w)};var E}function normalizeToArray(y){return[].concat(y)}function pushIfUnique(y,w){-1===y.indexOf(w)&&y.push(w)}function tippy_esm_getBasePlacement(y){return y.split("-")[0]}function arrayFrom(y){return[].slice.call(y)}function div(){return document.createElement("div")}function tippy_esm_isElement(y){return["Element","Fragment"].some((function(w){return isType(y,w)}))}function isMouseEvent(y){return isType(y,"MouseEvent")}function isReferenceElement(y){return!(!y||!y._tippy||y._tippy.reference!==y)}function getArrayOfElements(y){return tippy_esm_isElement(y)?[y]:function isNodeList(y){return isType(y,"NodeList")}(y)?arrayFrom(y):Array.isArray(y)?y:arrayFrom(document.querySelectorAll(y))}function setTransitionDuration(y,w){y.forEach((function(y){y&&(y.style.transitionDuration=w+"ms")}))}function setVisibilityState(y,w){y.forEach((function(y){y&&y.setAttribute("data-state",w)}))}function getOwnerDocument(y){var w=normalizeToArray(y)[0];return w&&w.ownerDocument||document}function updateTransitionEndListener(y,w,E){var P=w+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(w){y[P](w,E)}))}var Ye={isTouch:!1},Xe=0;function onDocumentTouchStart(){Ye.isTouch||(Ye.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var y=performance.now();y-Xe<20&&(Ye.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),Xe=y}function onWindowBlur(){var y=document.activeElement;if(isReferenceElement(y)){var w=y._tippy;y.blur&&!w.state.isVisible&&y.blur()}}var et="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",tt=/MSIE |Trident\//.test(et);var nt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},rt=Object.assign({appendTo:function appendTo(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function onAfterUpdate(){},onBeforeUpdate:function onBeforeUpdate(){},onCreate:function onCreate(){},onDestroy:function onDestroy(){},onHidden:function onHidden(){},onHide:function onHide(){},onMount:function onMount(){},onShow:function onShow(){},onShown:function onShown(){},onTrigger:function onTrigger(){},onUntrigger:function onUntrigger(){},onClickOutside:function onClickOutside(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},nt,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),ot=Object.keys(rt);function getExtendedPassedProps(y){var w=(y.plugins||[]).reduce((function(w,E){var P=E.name,q=E.defaultValue;return P&&(w[P]=void 0!==y[P]?y[P]:q),w}),{});return Object.assign({},y,{},w)}function evaluateProps(y,w){var E=Object.assign({},w,{content:invokeWithArgsOrReturn(w.content,[y])},w.ignoreAttributes?{}:function getDataAttributeProps(y,w){return(w?Object.keys(getExtendedPassedProps(Object.assign({},rt,{plugins:w}))):ot).reduce((function(w,E){var P=(y.getAttribute("data-tippy-"+E)||"").trim();if(!P)return w;if("content"===E)w[E]=P;else try{w[E]=JSON.parse(P)}catch(y){w[E]=P}return w}),{})}(y,w.plugins));return E.aria=Object.assign({},rt.aria,{},E.aria),E.aria={expanded:"auto"===E.aria.expanded?w.interactive:E.aria.expanded,content:"auto"===E.aria.content?w.interactive?null:"describedby":E.aria.content},E}function dangerouslySetInnerHTML(y,w){y.innerHTML=w}function createArrowElement(y){var w=div();return!0===y?w.className=Ue:(w.className=We,tippy_esm_isElement(y)?w.appendChild(y):dangerouslySetInnerHTML(w,y)),w}function tippy_esm_setContent(y,w){tippy_esm_isElement(w.content)?(dangerouslySetInnerHTML(y,""),y.appendChild(w.content)):"function"!=typeof w.content&&(w.allowHTML?dangerouslySetInnerHTML(y,w.content):y.textContent=w.content)}function getChildren(y){var w=y.firstElementChild,E=arrayFrom(w.children);return{box:w,content:E.find((function(y){return y.classList.contains(Ve)})),arrow:E.find((function(y){return y.classList.contains(Ue)||y.classList.contains(We)})),backdrop:E.find((function(y){return y.classList.contains(Ne)}))}}function tippy_esm_render(y){var w=div(),E=div();E.className="tippy-box",E.setAttribute("data-state","hidden"),E.setAttribute("tabindex","-1");var P=div();function onUpdate(E,P){var q=getChildren(w),ne=q.box,oe=q.content,ie=q.arrow;P.theme?ne.setAttribute("data-theme",P.theme):ne.removeAttribute("data-theme"),"string"==typeof P.animation?ne.setAttribute("data-animation",P.animation):ne.removeAttribute("data-animation"),P.inertia?ne.setAttribute("data-inertia",""):ne.removeAttribute("data-inertia"),ne.style.maxWidth="number"==typeof P.maxWidth?P.maxWidth+"px":P.maxWidth,P.role?ne.setAttribute("role",P.role):ne.removeAttribute("role"),E.content===P.content&&E.allowHTML===P.allowHTML||tippy_esm_setContent(oe,y.props),P.arrow?ie?E.arrow!==P.arrow&&(ne.removeChild(ie),ne.appendChild(createArrowElement(P.arrow))):ne.appendChild(createArrowElement(P.arrow)):ie&&ne.removeChild(ie)}return P.className=Ve,P.setAttribute("data-state","hidden"),tippy_esm_setContent(P,y.props),w.appendChild(E),E.appendChild(P),onUpdate(y.props,y.props),{popper:w,onUpdate:onUpdate}}tippy_esm_render.$$tippy=!0;var it=1,st=[],dt=[];function createTippy(y,w){var E,P,q,ne,oe,ie,se,le=evaluateProps(y,Object.assign({},rt,{},getExtendedPassedProps(function removeUndefinedProps(y){return Object.keys(y).reduce((function(w,E){return void 0!==y[E]&&(w[E]=y[E]),w}),{})}(w)))),pe=!1,ge=!1,me=!1,he=!1,ve=[],ye=tippy_esm_debounce(onMouseMove,le.interactiveDebounce),_e=it++,Re=function unique(y){return y.filter((function(w,E){return y.indexOf(w)===E}))}(le.plugins),we={id:_e,reference:y,popper:div(),popperInstance:null,props:le,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Re,clearDelayTimeouts:function clearDelayTimeouts(){clearTimeout(E),clearTimeout(P),cancelAnimationFrame(q)},setProps:function setProps(w){0;if(we.state.isDestroyed)return;invokeHook("onBeforeUpdate",[we,w]),removeListeners();var E=we.props,P=evaluateProps(y,Object.assign({},we.props,{},w,{ignoreAttributes:!0}));we.props=P,addListeners(),E.interactiveDebounce!==P.interactiveDebounce&&(cleanupInteractiveMouseListeners(),ye=tippy_esm_debounce(onMouseMove,P.interactiveDebounce));E.triggerTarget&&!P.triggerTarget?normalizeToArray(E.triggerTarget).forEach((function(y){y.removeAttribute("aria-expanded")})):P.triggerTarget&&y.removeAttribute("aria-expanded");handleAriaExpandedAttribute(),handleStyles(),Se&&Se(E,P);we.popperInstance&&(createPopperInstance(),getNestedPopperTree().forEach((function(y){requestAnimationFrame(y._tippy.popperInstance.forceUpdate)})));invokeHook("onAfterUpdate",[we,w])},setContent:function setContent(y){we.setProps({content:y})},show:function show(){0;var y=we.state.isVisible,w=we.state.isDestroyed,E=!we.state.isEnabled,P=Ye.isTouch&&!we.props.touch,q=getValueAtIndexOrReturn(we.props.duration,0,rt.duration);if(y||w||E||P)return;if(getCurrentTarget().hasAttribute("disabled"))return;if(invokeHook("onShow",[we],!1),!1===we.props.onShow(we))return;we.state.isVisible=!0,getIsDefaultRenderFn()&&(Me.style.visibility="visible");handleStyles(),addDocumentPress(),we.state.isMounted||(Me.style.transition="none");if(getIsDefaultRenderFn()){var ne=getDefaultTemplateChildren(),oe=ne.box,se=ne.content;setTransitionDuration([oe,se],0)}ie=function onFirstUpdate(){if(we.state.isVisible&&!he){if(he=!0,Me.offsetHeight,Me.style.transition=we.props.moveTransition,getIsDefaultRenderFn()&&we.props.animation){var y=getDefaultTemplateChildren(),w=y.box,E=y.content;setTransitionDuration([w,E],q),setVisibilityState([w,E],"visible")}handleAriaContentAttribute(),handleAriaExpandedAttribute(),pushIfUnique(dt,we),we.state.isMounted=!0,invokeHook("onMount",[we]),we.props.animation&&getIsDefaultRenderFn()&&function onTransitionedIn(y,w){onTransitionEnd(y,w)}(q,(function(){we.state.isShown=!0,invokeHook("onShown",[we])}))}},function mount(){var y,w=we.props.appendTo,E=getCurrentTarget();y=we.props.interactive&&w===rt.appendTo||"parent"===w?E.parentNode:invokeWithArgsOrReturn(w,[E]);y.contains(Me)||y.appendChild(Me);createPopperInstance(),!1}()},hide:function hide(){0;var y=!we.state.isVisible,w=we.state.isDestroyed,E=!we.state.isEnabled,P=getValueAtIndexOrReturn(we.props.duration,1,rt.duration);if(y||w||E)return;if(invokeHook("onHide",[we],!1),!1===we.props.onHide(we))return;we.state.isVisible=!1,we.state.isShown=!1,he=!1,pe=!1,getIsDefaultRenderFn()&&(Me.style.visibility="hidden");if(cleanupInteractiveMouseListeners(),removeDocumentPress(),handleStyles(),getIsDefaultRenderFn()){var q=getDefaultTemplateChildren(),ne=q.box,oe=q.content;we.props.animation&&(setTransitionDuration([ne,oe],P),setVisibilityState([ne,oe],"hidden"))}handleAriaContentAttribute(),handleAriaExpandedAttribute(),we.props.animation?getIsDefaultRenderFn()&&function onTransitionedOut(y,w){onTransitionEnd(y,(function(){!we.state.isVisible&&Me.parentNode&&Me.parentNode.contains(Me)&&w()}))}(P,we.unmount):we.unmount()},hideWithInteractivity:function hideWithInteractivity(y){0;getDocument().addEventListener("mousemove",ye),pushIfUnique(st,ye),ye(y)},enable:function enable(){we.state.isEnabled=!0},disable:function disable(){we.hide(),we.state.isEnabled=!1},unmount:function unmount(){0;we.state.isVisible&&we.hide();if(!we.state.isMounted)return;destroyPopperInstance(),getNestedPopperTree().forEach((function(y){y._tippy.unmount()})),Me.parentNode&&Me.parentNode.removeChild(Me);dt=dt.filter((function(y){return y!==we})),we.state.isMounted=!1,invokeHook("onHidden",[we])},destroy:function destroy(){0;if(we.state.isDestroyed)return;we.clearDelayTimeouts(),we.unmount(),removeListeners(),delete y._tippy,we.state.isDestroyed=!0,invokeHook("onDestroy",[we])}};if(!le.render)return we;var ke=le.render(we),Me=ke.popper,Se=ke.onUpdate;Me.setAttribute("data-tippy-root",""),Me.id="tippy-"+we.id,we.popper=Me,y._tippy=we,Me._tippy=we;var Ae=Re.map((function(y){return y.fn(we)})),Te=y.hasAttribute("aria-expanded");return addListeners(),handleAriaExpandedAttribute(),handleStyles(),invokeHook("onCreate",[we]),le.showOnCreate&&scheduleShow(),Me.addEventListener("mouseenter",(function(){we.props.interactive&&we.state.isVisible&&we.clearDelayTimeouts()})),Me.addEventListener("mouseleave",(function(y){we.props.interactive&&we.props.trigger.indexOf("mouseenter")>=0&&(getDocument().addEventListener("mousemove",ye),ye(y))})),we;function getNormalizedTouchSettings(){var y=we.props.touch;return Array.isArray(y)?y:[y,0]}function getIsCustomTouchBehavior(){return"hold"===getNormalizedTouchSettings()[0]}function getIsDefaultRenderFn(){var y;return!!(null==(y=we.props.render)?void 0:y.$$tippy)}function getCurrentTarget(){return se||y}function getDocument(){var y=getCurrentTarget().parentNode;return y?getOwnerDocument(y):document}function getDefaultTemplateChildren(){return getChildren(Me)}function getDelay(y){return we.state.isMounted&&!we.state.isVisible||Ye.isTouch||ne&&"focus"===ne.type?0:getValueAtIndexOrReturn(we.props.delay,y?0:1,rt.delay)}function handleStyles(){Me.style.pointerEvents=we.props.interactive&&we.state.isVisible?"":"none",Me.style.zIndex=""+we.props.zIndex}function invokeHook(y,w,E){var P;(void 0===E&&(E=!0),Ae.forEach((function(E){E[y]&&E[y].apply(void 0,w)})),E)&&(P=we.props)[y].apply(P,w)}function handleAriaContentAttribute(){var w=we.props.aria;if(w.content){var E="aria-"+w.content,P=Me.id;normalizeToArray(we.props.triggerTarget||y).forEach((function(y){var w=y.getAttribute(E);if(we.state.isVisible)y.setAttribute(E,w?w+" "+P:P);else{var q=w&&w.replace(P,"").trim();q?y.setAttribute(E,q):y.removeAttribute(E)}}))}}function handleAriaExpandedAttribute(){!Te&&we.props.aria.expanded&&normalizeToArray(we.props.triggerTarget||y).forEach((function(y){we.props.interactive?y.setAttribute("aria-expanded",we.state.isVisible&&y===getCurrentTarget()?"true":"false"):y.removeAttribute("aria-expanded")}))}function cleanupInteractiveMouseListeners(){getDocument().removeEventListener("mousemove",ye),st=st.filter((function(y){return y!==ye}))}function onDocumentPress(y){if(!(Ye.isTouch&&(me||"mousedown"===y.type)||we.props.interactive&&Me.contains(y.target))){if(getCurrentTarget().contains(y.target)){if(Ye.isTouch)return;if(we.state.isVisible&&we.props.trigger.indexOf("click")>=0)return}else invokeHook("onClickOutside",[we,y]);!0===we.props.hideOnClick&&(we.clearDelayTimeouts(),we.hide(),ge=!0,setTimeout((function(){ge=!1})),we.state.isMounted||removeDocumentPress())}}function onTouchMove(){me=!0}function onTouchStart(){me=!1}function addDocumentPress(){var y=getDocument();y.addEventListener("mousedown",onDocumentPress,!0),y.addEventListener("touchend",onDocumentPress,$e),y.addEventListener("touchstart",onTouchStart,$e),y.addEventListener("touchmove",onTouchMove,$e)}function removeDocumentPress(){var y=getDocument();y.removeEventListener("mousedown",onDocumentPress,!0),y.removeEventListener("touchend",onDocumentPress,$e),y.removeEventListener("touchstart",onTouchStart,$e),y.removeEventListener("touchmove",onTouchMove,$e)}function onTransitionEnd(y,w){var E=getDefaultTemplateChildren().box;function listener(y){y.target===E&&(updateTransitionEndListener(E,"remove",listener),w())}if(0===y)return w();updateTransitionEndListener(E,"remove",oe),updateTransitionEndListener(E,"add",listener),oe=listener}function on(w,E,P){void 0===P&&(P=!1),normalizeToArray(we.props.triggerTarget||y).forEach((function(y){y.addEventListener(w,E,P),ve.push({node:y,eventType:w,handler:E,options:P})}))}function addListeners(){getIsCustomTouchBehavior()&&(on("touchstart",onTrigger,{passive:!0}),on("touchend",onMouseLeave,{passive:!0})),function splitBySpaces(y){return y.split(/\s+/).filter(Boolean)}(we.props.trigger).forEach((function(y){if("manual"!==y)switch(on(y,onTrigger),y){case"mouseenter":on("mouseleave",onMouseLeave);break;case"focus":on(tt?"focusout":"blur",onBlurOrFocusOut);break;case"focusin":on("focusout",onBlurOrFocusOut)}}))}function removeListeners(){ve.forEach((function(y){var w=y.node,E=y.eventType,P=y.handler,q=y.options;w.removeEventListener(E,P,q)})),ve=[]}function onTrigger(y){var w,E=!1;if(we.state.isEnabled&&!isEventListenerStopped(y)&&!ge){var P="focus"===(null==(w=ne)?void 0:w.type);ne=y,se=y.currentTarget,handleAriaExpandedAttribute(),!we.state.isVisible&&isMouseEvent(y)&&st.forEach((function(w){return w(y)})),"click"===y.type&&(we.props.trigger.indexOf("mouseenter")<0||pe)&&!1!==we.props.hideOnClick&&we.state.isVisible?E=!0:scheduleShow(y),"click"===y.type&&(pe=!E),E&&!P&&scheduleHide(y)}}function onMouseMove(y){var w=y.target,E=getCurrentTarget().contains(w)||Me.contains(w);"mousemove"===y.type&&E||function isCursorOutsideInteractiveBorder(y,w){var E=w.clientX,P=w.clientY;return y.every((function(y){var w=y.popperRect,q=y.popperState,ne=y.props.interactiveBorder,oe=tippy_esm_getBasePlacement(q.placement),ie=q.modifiersData.offset;if(!ie)return!0;var se="bottom"===oe?ie.top.y:0,le="top"===oe?ie.bottom.y:0,pe="right"===oe?ie.left.x:0,ge="left"===oe?ie.right.x:0,me=w.top-P+se>ne,he=P-w.bottom-le>ne,ve=w.left-E+pe>ne,ye=E-w.right-ge>ne;return me||he||ve||ye}))}(getNestedPopperTree().concat(Me).map((function(y){var w,E=null==(w=y._tippy.popperInstance)?void 0:w.state;return E?{popperRect:y.getBoundingClientRect(),popperState:E,props:le}:null})).filter(Boolean),y)&&(cleanupInteractiveMouseListeners(),scheduleHide(y))}function onMouseLeave(y){isEventListenerStopped(y)||we.props.trigger.indexOf("click")>=0&&pe||(we.props.interactive?we.hideWithInteractivity(y):scheduleHide(y))}function onBlurOrFocusOut(y){we.props.trigger.indexOf("focusin")<0&&y.target!==getCurrentTarget()||we.props.interactive&&y.relatedTarget&&Me.contains(y.relatedTarget)||scheduleHide(y)}function isEventListenerStopped(y){return!!Ye.isTouch&&getIsCustomTouchBehavior()!==y.type.indexOf("touch")>=0}function createPopperInstance(){destroyPopperInstance();var w=we.props,E=w.popperOptions,P=w.placement,q=w.offset,ne=w.getReferenceClientRect,oe=w.moveTransition,se=getIsDefaultRenderFn()?getChildren(Me).arrow:null,le=ne?{getBoundingClientRect:ne,contextElement:ne.contextElement||getCurrentTarget()}:y,pe=[{name:"offset",options:{offset:q}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!oe}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function fn(y){var w=y.state;if(getIsDefaultRenderFn()){var E=getDefaultTemplateChildren().box;["placement","reference-hidden","escaped"].forEach((function(y){"placement"===y?E.setAttribute("data-placement",w.placement):w.attributes.popper["data-popper-"+y]?E.setAttribute("data-"+y,""):E.removeAttribute("data-"+y)})),w.attributes.popper={}}}}];getIsDefaultRenderFn()&&se&&pe.push({name:"arrow",options:{element:se,padding:3}}),pe.push.apply(pe,(null==E?void 0:E.modifiers)||[]),we.popperInstance=Be(le,Me,Object.assign({},E,{placement:P,onFirstUpdate:ie,modifiers:pe}))}function destroyPopperInstance(){we.popperInstance&&(we.popperInstance.destroy(),we.popperInstance=null)}function getNestedPopperTree(){return arrayFrom(Me.querySelectorAll("[data-tippy-root]"))}function scheduleShow(y){we.clearDelayTimeouts(),y&&invokeHook("onTrigger",[we,y]),addDocumentPress();var w=getDelay(!0),P=getNormalizedTouchSettings(),q=P[0],ne=P[1];Ye.isTouch&&"hold"===q&&ne&&(w=ne),w?E=setTimeout((function(){we.show()}),w):we.show()}function scheduleHide(y){if(we.clearDelayTimeouts(),invokeHook("onUntrigger",[we,y]),we.state.isVisible){if(!(we.props.trigger.indexOf("mouseenter")>=0&&we.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(y.type)>=0&&pe)){var w=getDelay(!1);w?P=setTimeout((function(){we.state.isVisible&&we.hide()}),w):q=requestAnimationFrame((function(){we.hide()}))}}else removeDocumentPress()}}function tippy_esm_tippy(y,w){void 0===w&&(w={});var E=rt.plugins.concat(w.plugins||[]);(function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,$e),window.addEventListener("blur",onWindowBlur)})();var P=Object.assign({},w,{plugins:E}),q=getArrayOfElements(y).reduce((function(y,w){var E=w&&createTippy(w,P);return E&&y.push(E),y}),[]);return tippy_esm_isElement(y)?q[0]:q}tippy_esm_tippy.defaultProps=rt,tippy_esm_tippy.setDefaultProps=function setDefaultProps(y){Object.keys(y).forEach((function(w){rt[w]=y[w]}))},tippy_esm_tippy.currentInput=Ye;tippy_esm_tippy.setDefaultProps({render:tippy_esm_render});var ct=tippy_esm_tippy,lt=E(59);function _objectWithoutPropertiesLoose(y,w){if(null==y)return{};var E,P,q={},ne=Object.keys(y);for(P=0;P=0||(q[E]=y[E]);return q}var ut="undefined"!=typeof window&&"undefined"!=typeof document;function preserveRef(y,w){y&&("function"==typeof y&&y(w),{}.hasOwnProperty.call(y,"current")&&(y.current=w))}function ssrSafeCreateDiv(){return ut&&document.createElement("div")}function deepPreserveProps(y,w){var E,P;return Object.assign({},w,{popperOptions:Object.assign({},y.popperOptions,w.popperOptions,{modifiers:[].concat(((null==(E=y.popperOptions)?void 0:E.modifiers)||[]).filter((function(y){return y.name.indexOf("tippy")>=0})),(null==(P=w.popperOptions)?void 0:P.modifiers)||[])})})}var pt=ut?P.useLayoutEffect:P.useEffect;function useMutableBox(y){var w=Object(P.useRef)();return w.current||(w.current="function"==typeof y?y():y),w.current}function updateClassName(y,w,E){E.split(/\s+/).forEach((function(E){E&&y.classList[w](E)}))}var gt={name:"className",defaultValue:"",fn:function fn(y){var w=y.popper.firstElementChild,E=function isDefaultRenderFn(){var w;return!!(null==(w=y.props.render)?void 0:w.$$tippy)};function add(){y.props.className&&!E()||updateClassName(w,"add",y.props.className)}return{onCreate:add,onBeforeUpdate:function remove(){E()&&updateClassName(w,"remove",y.props.className)},onAfterUpdate:add}}};function TippyGenerator(y){return function Tippy(w){var E=w.children,ne=w.content,oe=w.visible,ie=w.singleton,se=w.render,le=w.reference,pe=w.disabled,ge=void 0!==pe&&pe,me=w.ignoreAttributes,he=void 0===me||me,ve=(w.__source,w.__self,_objectWithoutPropertiesLoose(w,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),ye=void 0!==oe,_e=void 0!==ie,Re=Object(P.useState)(!1),we=Re[0],ke=Re[1],Me=Object(P.useState)({}),Se=Me[0],Ae=Me[1],Te=Object(P.useState)(),Oe=Te[0],Fe=Te[1],je=useMutableBox((function(){return{container:ssrSafeCreateDiv(),renders:1}})),Be=Object.assign({ignoreAttributes:he},ve,{content:je.container});ye&&(Be.trigger="manual",Be.hideOnClick=!1),_e&&(ge=!0);var Ve=Be,Ne=Be.plugins||[];se&&(Ve=Object.assign({},Be,{plugins:_e?[].concat(Ne,[{fn:function fn(){return{onTrigger:function onTrigger(y,w){var E=ie.data.children.find((function(y){return y.instance.reference===w.currentTarget})).content;Fe(E)}}}}]):Ne,render:function render(){return{popper:je.container}}}));var Ue=[le].concat(E?[E.type]:[]);return pt((function(){var w=le;le&&le.hasOwnProperty("current")&&(w=le.current);var E=y(w||je.ref||ssrSafeCreateDiv(),Object.assign({},Ve,{plugins:[gt].concat(Be.plugins||[])}));return je.instance=E,ge&&E.disable(),oe&&E.show(),_e&&ie.hook({instance:E,content:ne,props:Ve}),ke(!0),function(){E.destroy(),null==ie||ie.cleanup(E)}}),Ue),pt((function(){if(1!==je.renders){var y=je.instance;y.setProps(deepPreserveProps(y.props,Ve)),ge?y.disable():y.enable(),ye&&(oe?y.show():y.hide()),_e&&ie.hook({instance:y,content:ne,props:Ve})}else je.renders++})),pt((function(){var y;if(se){var w=je.instance;w.setProps({popperOptions:Object.assign({},w.props.popperOptions,{modifiers:[].concat((null==(y=w.props.popperOptions)?void 0:y.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function fn(y){var w,E=y.state,P=null==(w=E.modifiersData)?void 0:w.hide;Se.placement===E.placement&&Se.referenceHidden===(null==P?void 0:P.isReferenceHidden)&&Se.escaped===(null==P?void 0:P.hasPopperEscaped)||Ae({placement:E.placement,referenceHidden:null==P?void 0:P.isReferenceHidden,escaped:null==P?void 0:P.hasPopperEscaped}),E.attributes.popper={}}}])})})}}),[Se.placement,Se.referenceHidden,Se.escaped].concat(Ue)),q.a.createElement(q.a.Fragment,null,E?Object(P.cloneElement)(E,{ref:function ref(y){je.ref=y,preserveRef(E.ref,y)}}):null,we&&Object(lt.createPortal)(se?se(function toDataAttributes(y){var w={"data-placement":y.placement};return y.referenceHidden&&(w["data-reference-hidden"]=""),y.escaped&&(w["data-escaped"]=""),w}(Se),Oe):ne,je.container))}}var forwardRef=function(y,w){return Object(P.forwardRef)((function TippyWrapper(E,ne){var oe=E.children,ie=_objectWithoutPropertiesLoose(E,["children"]);return q.a.createElement(y,Object.assign({},w,ie),oe?Object(P.cloneElement)(oe,{ref:function ref(y){preserveRef(ne,y),preserveRef(oe.ref,y)}}):null)}))},mt=forwardRef(TippyGenerator(ct));var ht=Object(oe.default)((function styles(y){var w=y.space,E=y.color,P=y.borderRadius,q=y.fontSize;return{tooltip:{"&.tippy-box":{transitionProperty:[["opacity"]],'&[data-state="hidden"]':{opacity:0}},"& .tippy-content":{padding:w[0],border:"1px "+E.border+" solid",borderRadius:P,background:E.baseBackground,boxShadow:[[0,2,4,"rgba(0,0,0,.15)"]],fontSize:q.small,color:E.type}}}}))((function TooltipRenderer(y){var w=y.classes,E=y.children,P=y.content,ne=y.placement,oe=void 0===ne?"top":ne;return q.a.createElement(mt,{content:P,className:w.tooltip,interactive:!0,placement:oe,trigger:"click mouseenter focus",arrow:!1},q.a.createElement("span",{role:"button",tabIndex:0},E))}));var ft=Object(oe.default)((function styles(y){return{complexType:{alignItems:"center",display:"inline-flex"},name:{flexShrink:0},icon:{marginLeft:y.space[0],flexShrink:0}}}))((function ComplexTypeRenderer(y){var w=y.classes,E=y.name,P=y.raw;return q.a.createElement(ht,{placement:"right",content:P},q.a.createElement("span",{className:w.complexType},q.a.createElement("span",{className:w.name},q.a.createElement(se.a,null,E)),q.a.createElement(ie.MdInfoOutline,{className:w.icon})))})),vt=E(125);function renderType(y){if(!y)return"unknown";var w=y.name;switch(w){case"arrayOf":return y.value.name+"[]";case"objectOf":return"{"+renderType(y.value)+"}";case"instanceOf":return y.value;default:return w}}function renderTypeColumn(y){var w=Object(vt.a)(y);return w?y.flowType||y.tsType?function renderAdvancedType(y){switch(y.name){case"enum":return q.a.createElement(ne.a,null,y.name);case"literal":return q.a.createElement(ne.a,null,y.value);case"signature":return q.a.createElement(ft,{name:y.type,raw:y.raw});case"union":case"tuple":return q.a.createElement(ft,{name:y.name,raw:y.raw});default:return q.a.createElement(ne.a,null,y.raw||y.name)}}(w):q.a.createElement(ne.a,null,renderType(w)):null}},function(y,w,E){"use strict";var P=function(y){function EmitterSubscription(w,E,P,q){var ne;return(ne=y.call(this,E)||this).emitter=w,ne.listener=P,ne.context=q,ne}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}()),q=E(296),ne=E(9),oe=E.n(ne),ie=function sparseFilterPredicate(){return!0},se=function(){function EventEmitter(y){this._subscriber=y||new q.a}var y=EventEmitter.prototype;return y.addListener=function addListener(y,w,E){return this._subscriber.addSubscription(y,new P(this,this._subscriber,w,E))},y.once=function once(y,w,E){var P=this;return this.addListener(y,(function(){P.removeCurrentListener();for(var y=arguments.length,q=new Array(y),ne=0;ne>16&255)+","+(E>>8&255)+","+(255&E)+","+((E>>24&255)/255*w).toFixed(2)+")"}}},function(y,w,E){"use strict";var P,q=E(968);P=q.now?function performanceNow(){return q.now()}:function performanceNow(){return Date.now()},y.exports=P},function(y,w,E){var P=E(25),q=E(22).document,ne=P(q)&&P(q.createElement);y.exports=function(y){return ne?q.createElement(y):{}}},function(y,w,E){w.f=E(33)},function(y,w,E){var P=E(231)("keys"),q=E(144);y.exports=function(y){return P[y]||(P[y]=q(y))}},function(y,w){y.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(y,w,E){var P=E(22).document;y.exports=P&&P.documentElement},function(y,w,E){var P=E(25),q=E(24),check=function(y,w){if(q(y),!P(w)&&null!==w)throw TypeError(w+": can't set as prototype!")};y.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(y,w,P){try{(P=E(100)(Function.call,E(103).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:P(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 P=E(25),q=E(311).set;y.exports=function(y,w,E){var ne,oe=w.constructor;return oe!==E&&"function"==typeof oe&&(ne=oe.prototype)!==E.prototype&&P(ne)&&q&&q(y,ne),y}},function(y,w,E){"use strict";var P=E(102),q=E(114);y.exports=function repeat(y){var w=String(q(this)),E="",ne=P(y);if(ne<0||ne==1/0)throw RangeError("Count can't be negative");for(;ne>0;(ne>>>=1)&&(w+=w))1&ne&&(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 P=E(102),q=E(114);y.exports=function(y){return function(w,E){var ne,oe,ie=String(q(w)),se=P(E),le=ie.length;return se<0||se>=le?y?"":void 0:(ne=ie.charCodeAt(se))<55296||ne>56319||se+1===le||(oe=ie.charCodeAt(se+1))<56320||oe>57343?y?ie.charAt(se):ne:y?ie.slice(se,se+2):oe-56320+(ne-55296<<10)+65536}}},function(y,w,E){"use strict";var P=E(145),q=E(10),ne=E(73),oe=E(80),ie=E(167),se=E(448),le=E(165),pe=E(150),ge=E(33)("iterator"),me=!([].keys&&"next"in[].keys()),he="keys",ve="values",returnThis=function(){return this};y.exports=function(y,w,E,ye,_e,Re,we){se(E,w,ye);var ke,Me,Se,getMethod=function(y){if(!me&&y in Fe)return Fe[y];switch(y){case he:return function keys(){return new E(this,y)};case ve:return function values(){return new E(this,y)}}return function entries(){return new E(this,y)}},Ae=w+" Iterator",Te=_e==ve,Oe=!1,Fe=y.prototype,je=Fe[ge]||Fe["@@iterator"]||_e&&Fe[_e],Be=je||getMethod(_e),Ve=_e?Te?getMethod("entries"):Be:void 0,Ne="Array"==w&&Fe.entries||je;if(Ne&&(Se=pe(Ne.call(new y)))!==Object.prototype&&Se.next&&(le(Se,Ae,!0),P||"function"==typeof Se[ge]||oe(Se,ge,returnThis)),Te&&je&&je.name!==ve&&(Oe=!0,Be=function values(){return je.call(this)}),P&&!we||!me&&!Oe&&Fe[ge]||oe(Fe,ge,Be),ie[w]=Be,ie[Ae]=returnThis,_e)if(ke={values:Te?Be:getMethod(ve),keys:Re?Be:getMethod(he),entries:Ve},we)for(Me in ke)Me in Fe||ne(Fe,Me,ke[Me]);else q(q.P+q.F*(me||Oe),w,ke);return ke}},function(y,w,E){var P=E(320),q=E(114);y.exports=function(y,w,E){if(P(w))throw TypeError("String#"+E+" doesn't accept regex!");return String(q(y))}},function(y,w,E){var P=E(25),q=E(113),ne=E(33)("match");y.exports=function(y){var w;return P(y)&&(void 0!==(w=y[ne])?!!w:"RegExp"==q(y))}},function(y,w,E){var P=E(33)("match");y.exports=function(y){var w=/./;try{"/./"[y](w)}catch(E){try{return w[P]=!1,!"/./"[y](w)}catch(y){}}return!0}},function(y,w,E){var P=E(167),q=E(33)("iterator"),ne=Array.prototype;y.exports=function(y){return void 0!==y&&(P.Array===y||ne[q]===y)}},function(y,w,E){"use strict";var P=E(46),q=E(143);y.exports=function(y,w,E){w in y?P.f(y,w,q(0,E)):y[w]=E}},function(y,w,E){var P=E(199),q=E(33)("iterator"),ne=E(167);y.exports=E(43).getIteratorMethod=function(y){if(null!=y)return y[q]||y["@@iterator"]||ne[P(y)]}},function(y,w,E){"use strict";var P=E(63),q=E(147),ne=E(39);y.exports=function fill(y){for(var w=P(this),E=ne(w.length),oe=arguments.length,ie=q(oe>1?arguments[1]:void 0,E),se=oe>2?arguments[2]:void 0,le=void 0===se?E:q(se,E);le>ie;)w[ie++]=y;return w}},function(y,w,E){"use strict";var P=E(151),q=E(453),ne=E(167),oe=E(81);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,q(1)):q(0,"keys"==w?E:"values"==w?y[E]:[E,y[E]])}),"values"),ne.Arguments=ne.Array,P("keys"),P("values"),P("entries")},function(y,w,E){"use strict";var P,q,ne=E(236),oe=RegExp.prototype.exec,ie=String.prototype.replace,se=oe,le=(P=/a/,q=/b*/g,oe.call(P,"a"),oe.call(q,"a"),0!==P.lastIndex||0!==q.lastIndex),pe=void 0!==/()??/.exec("")[1];(le||pe)&&(se=function exec(y){var w,E,P,q,se=this;return pe&&(E=new RegExp("^"+se.source+"$(?!\\s)",ne.call(se))),le&&(w=se.lastIndex),P=oe.call(se,y),le&&P&&(se.lastIndex=se.global?P.index+P[0].length:w),pe&&P&&P.length>1&&ie.call(P[0],E,(function(){for(q=1;qE;)w.push(arguments[E++]);return Re[++_e]=function(){ie("function"==typeof y?y:Function(y),w)},P(_e),_e},he=function clearImmediate(y){delete Re[y]},"process"==E(113)(ge)?P=function(y){ge.nextTick(oe(run,y,1))}:ye&&ye.now?P=function(y){ye.now(oe(run,y,1))}:ve?(ne=(q=new ve).port2,q.port1.onmessage=listener,P=oe(ne.postMessage,ne,1)):pe.addEventListener&&"function"==typeof postMessage&&!pe.importScripts?(P=function(y){pe.postMessage(y+"","*")},pe.addEventListener("message",listener,!1)):P=we in le("script")?function(y){se.appendChild(le("script")).onreadystatechange=function(){se.removeChild(this),run.call(y)}}:function(y){setTimeout(oe(run,y,1),0)}),y.exports={set:me,clear:he}},function(y,w,E){"use strict";var P=E(22),q=E(45),ne=E(145),oe=E(242),ie=E(80),se=E(170),le=E(23),pe=E(169),ge=E(102),me=E(39),he=E(461),ve=E(149).f,ye=E(46).f,_e=E(325),Re=E(165),we="ArrayBuffer",ke="DataView",Me="Wrong index!",Se=P.ArrayBuffer,Ae=P.DataView,Te=P.Math,Oe=P.RangeError,Fe=P.Infinity,je=Se,Be=Te.abs,Ve=Te.pow,Ne=Te.floor,Ue=Te.log,We=Te.LN2,$e="buffer",Ye="byteLength",Xe="byteOffset",et=q?"_b":$e,tt=q?"_l":Ye,nt=q?"_o":Xe;function packIEEE754(y,w,E){var P,q,ne,oe=new Array(E),ie=8*E-w-1,se=(1<>1,pe=23===w?Ve(2,-24)-Ve(2,-77):0,ge=0,me=y<0||0===y&&1/y<0?1:0;for((y=Be(y))!=y||y===Fe?(q=y!=y?1:0,P=se):(P=Ne(Ue(y)/We),y*(ne=Ve(2,-P))<1&&(P--,ne*=2),(y+=P+le>=1?pe/ne:pe*Ve(2,1-le))*ne>=2&&(P++,ne/=2),P+le>=se?(q=0,P=se):P+le>=1?(q=(y*ne-1)*Ve(2,w),P+=le):(q=y*Ve(2,le-1)*Ve(2,w),P=0));w>=8;oe[ge++]=255&q,q/=256,w-=8);for(P=P<0;oe[ge++]=255&P,P/=256,ie-=8);return oe[--ge]|=128*me,oe}function unpackIEEE754(y,w,E){var P,q=8*E-w-1,ne=(1<>1,ie=q-7,se=E-1,le=y[se--],pe=127≤for(le>>=7;ie>0;pe=256*pe+y[se],se--,ie-=8);for(P=pe&(1<<-ie)-1,pe>>=-ie,ie+=w;ie>0;P=256*P+y[se],se--,ie-=8);if(0===pe)pe=1-oe;else{if(pe===ne)return P?NaN:le?-Fe:Fe;P+=Ve(2,w),pe-=oe}return(le?-1:1)*P*Ve(2,pe-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){ye(y.prototype,w,{get:function(){return this[E]}})}function get(y,w,E,P){var q=he(+E);if(q+w>y[tt])throw Oe(Me);var ne=y[et]._b,oe=q+y[nt],ie=ne.slice(oe,oe+w);return P?ie:ie.reverse()}function set(y,w,E,P,q,ne){var oe=he(+E);if(oe+w>y[tt])throw Oe(Me);for(var ie=y[et]._b,se=oe+y[nt],le=P(+q),pe=0;pest;)(rt=it[st++])in Se||ie(Se,rt,je[rt]);ne||(ot.constructor=Se)}var dt=new Ae(new Se(2)),ct=Ae.prototype.setInt8;dt.setInt8(0,2147483648),dt.setInt8(1,2147483649),!dt.getInt8(0)&&dt.getInt8(1)||se(Ae.prototype,{setInt8:function setInt8(y,w){ct.call(this,y,w<<24>>24)},setUint8:function setUint8(y,w){ct.call(this,y,w<<24>>24)}},!0)}else Se=function ArrayBuffer(y){pe(this,Se,we);var w=he(y);this._b=_e.call(new Array(w),0),this[tt]=w},Ae=function DataView(y,w,E){pe(this,Ae,ke),pe(y,Se,ke);var P=y[tt],q=ge(w);if(q<0||q>P)throw Oe("Wrong offset!");if(q+(E=void 0===E?P-q:me(E))>P)throw Oe("Wrong length!");this[et]=y,this[nt]=q,this[tt]=E},q&&(addGetter(Se,Ye,"_l"),addGetter(Ae,$e,"_b"),addGetter(Ae,Ye,"_l"),addGetter(Ae,Xe,"_o")),se(Ae.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])}});Re(Se,we),Re(Ae,ke),ie(Ae.prototype,oe.VIEW,!0),w.ArrayBuffer=Se,w.DataView=Ae},function(y,w,E){var P=function(y){"use strict";var w,E=Object.prototype,P=E.hasOwnProperty,q="function"==typeof Symbol?Symbol:{},ne=q.iterator||"@@iterator",oe=q.asyncIterator||"@@asyncIterator",ie=q.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,P){var q=w&&w.prototype instanceof Generator?w:Generator,ne=Object.create(q.prototype),oe=new Context(P||[]);return ne._invoke=function makeInvokeMethod(y,w,E){var P=se;return function invoke(q,ne){if(P===pe)throw new Error("Generator is already running");if(P===ge){if("throw"===q)throw ne;return doneResult()}for(E.method=q,E.arg=ne;;){var oe=E.delegate;if(oe){var ie=maybeInvokeDelegate(oe,E);if(ie){if(ie===me)continue;return ie}}if("next"===E.method)E.sent=E._sent=E.arg;else if("throw"===E.method){if(P===se)throw P=ge,E.arg;E.dispatchException(E.arg)}else"return"===E.method&&E.abrupt("return",E.arg);P=pe;var he=tryCatch(y,w,E);if("normal"===he.type){if(P=E.done?ge:le,he.arg===me)continue;return{value:he.arg,done:E.done}}"throw"===he.type&&(P=ge,E.method="throw",E.arg=he.arg)}}}(y,E,oe),ne}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 se="suspendedStart",le="suspendedYield",pe="executing",ge="completed",me={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var he={};he[ne]=function(){return this};var ve=Object.getPrototypeOf,ye=ve&&ve(ve(values([])));ye&&ye!==E&&P.call(ye,ne)&&(he=ye);var _e=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(he);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,q,ne,oe){var ie=tryCatch(y[E],y,q);if("throw"!==ie.type){var se=ie.arg,le=se.value;return le&&"object"==typeof le&&P.call(le,"__await")?w.resolve(le.__await).then((function(y){invoke("next",y,ne,oe)}),(function(y){invoke("throw",y,ne,oe)})):w.resolve(le).then((function(y){se.value=y,ne(se)}),(function(y){return invoke("throw",y,ne,oe)}))}oe(ie.arg)}var E;this._invoke=function enqueue(y,P){function callInvokeWithMethodAndArg(){return new w((function(w,E){invoke(y,P,w,E)}))}return E=E?E.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(y,E){var P=y.iterator[E.method];if(P===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 q=tryCatch(P,y.iterator,E.arg);if("throw"===q.type)return E.method="throw",E.arg=q.arg,E.delegate=null,me;var ne=q.arg;return ne?ne.done?(E[y.resultName]=ne.value,E.next=y.nextLoc,"return"!==E.method&&(E.method="next",E.arg=w),E.delegate=null,me):ne:(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[ne];if(E)return E.call(y);if("function"==typeof y.next)return y;if(!isNaN(y.length)){var q=-1,oe=function next(){for(;++q=0;--q){var ne=this.tryEntries[q],oe=ne.completion;if("root"===ne.tryLoc)return handle("end");if(ne.tryLoc<=this.prev){var ie=P.call(ne,"catchLoc"),se=P.call(ne,"finallyLoc");if(ie&&se){if(this.prev=0;--E){var q=this.tryEntries[E];if(q.tryLoc<=this.prev&&P.call(q,"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 P=E.completion;if("throw"===P.type){var q=P.arg;resetTryEntry(E)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(y,E,P){return this.delegate={iterator:values(y),resultName:E,nextLoc:P},"next"===this.method&&(this.arg=w),me}},y}(y.exports);try{regeneratorRuntime=P}catch(y){Function("r","regeneratorRuntime = r")(P)}},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(466)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(y,w,E){var P=E(246),q=E(900),ne=E(901),oe=E(902),ie=E(903),se=E(904);function Stack(y){var w=this.__data__=new P(y);this.size=w.size}Stack.prototype.clear=q,Stack.prototype.delete=ne,Stack.prototype.get=oe,Stack.prototype.has=ie,Stack.prototype.set=se,y.exports=Stack},function(y,w,E){var P=E(153)(E(82),"Map");y.exports=P},function(y,w,E){var P=E(154),q=E(83);y.exports=function isFunction(y){if(!q(y))return!1;var w=P(y);return"[object Function]"==w||"[object GeneratorFunction]"==w||"[object AsyncFunction]"==w||"[object Proxy]"==w}},function(y,w,E){var P=E(911),q=E(918),ne=E(920),oe=E(921),ie=E(922);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){var E=/^(?:0|[1-9]\d*)$/;y.exports=function isIndex(y,w){var P=typeof y;return!!(w=null==w?9007199254740991:w)&&("number"==P||"symbol"!=P&&E.test(y))&&y>-1&&y%1==0&&y=q?y:[].concat((0,se.default)(y),[E])})},selected:oe,uri:E.uri})},Fe=le.default.forwardRef((function(y,w){var E=y.AttachmentPickerBottomSheetHandle,P=y.attachmentPickerBottomSheetHandleHeight,q=y.attachmentPickerBottomSheetHeight,ge=y.AttachmentPickerError,ve=y.attachmentPickerErrorButtonText,ye=y.AttachmentPickerErrorImage,Me=y.attachmentPickerErrorText,Te=y.ImageOverlaySelectedComponent,Fe=y.numberOfAttachmentImagesToLoadPerCall,je=y.numberOfAttachmentPickerImageColumns,Be=(0,we.useTheme)().theme,Ve=Be.attachmentPicker.bottomSheetContentContainer,Ne=Be.colors.white,Ue=(0,Re.useAttachmentPickerContext)(),We=Ue.closePicker,$e=Ue.maxNumberOfFiles,Ye=Ue.selectedImages,Xe=Ue.selectedPicker,et=Ue.setSelectedImages,tt=Ue.setSelectedPicker,nt=Ue.topInset,rt=(0,le.useState)(-1),ot=(0,ie.default)(rt,2),it=ot[0],st=ot[1],dt=(0,le.useState)(),ct=(0,ie.default)(dt,2),lt=ct[0],ut=ct[1],pt=(0,le.useState)(!1),gt=(0,ie.default)(pt,2),mt=gt[0],ht=gt[1],ft=(0,le.useState)(!0),vt=(0,ie.default)(ft,2),yt=vt[0],bt=vt[1],_t=(0,le.useState)(!1),Rt=(0,ie.default)(_t,2),xt=Rt[0],Ct=Rt[1],wt=(0,le.useState)([]),kt=(0,ie.default)(wt,2),Mt=kt[0],St=kt[1],Et=function hideAttachmentPicker(){tt(void 0),null!=w&&w.current&&w.current.close()},Dt=function(){var y=(0,oe.default)(ne.default.mark((function _callee(){var y;return ne.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:if(!(yt&&!xt&&it>-1&&"images"===Xe)){w.next=16;break}return Ct(!0),w.prev=2,w.next=5,(0,ke.getPhotos)({after:lt,first:null!=Fe?Fe:60});case 5:y=w.sent,St(lt?[].concat((0,se.default)(Mt),(0,se.default)(y.assets)):y.assets),ut(y.endCursor),bt(y.hasNextPage||!1),w.next=15;break;case 11:w.prev=11,w.t0=w.catch(2),console.log(w.t0),ht(!0);case 15:Ct(!1);case 16:case"end":return w.stop()}}),_callee,null,[[2,11]])})));return function getMorePhotos(){return y.apply(this,arguments)}}();(0,le.useEffect)((function(){var y=pe.default.addEventListener("hardwareBackPress",(function backAction(){return!!Xe&&(tt(void 0),We(),!0)}));return function(){return y.remove()}}),[Xe]),(0,le.useEffect)((function(){return"ios"===he.default.OS?me.default.addListener("keyboardWillShow",Et):me.default.addListener("keyboardDidShow",Et),function(){"ios"===he.default.OS?me.default.removeListener("keyboardWillShow",Et):me.default.removeListener("keyboardDidShow",Et)}}),[]),(0,le.useEffect)((function(){it<0&&(tt(void 0),xt||(ut(void 0),bt(!0)))}),[it]),(0,le.useEffect)((function(){"images"===Xe&&void 0===lt&&it>-1&&!xt&&(ht(!1),Dt())}),[it,Xe]);var At=Mt.map((function(y){return{asset:y,ImageOverlaySelectedComponent:Te,maxNumberOfFiles:$e,numberOfAttachmentPickerImageColumns:je,selected:Ye.some((function(w){return w.uri===y.uri})),setSelectedImages:et}}));return void 0===nt?null:le.default.createElement(le.default.Fragment,null,le.default.createElement(_e.default,{handleComponent:mt?function(){return null}:E,handleHeight:P||20,initialSnapIndex:-1,onChange:function onChange(y){return st(y)},ref:w,snapPoints:[null!=q?q:308,Ae-nt],style:{opacity:mt?0:1}},le.default.createElement(_e.BottomSheetFlatList,{contentContainerStyle:[Se.container,{backgroundColor:Ne},Ve,{opacity:mt?0:1}],data:At,keyExtractor:function keyExtractor(y){return y.asset.uri},numColumns:null!=je?je:3,onEndReached:Dt,renderItem:Oe})),"images"===Xe&&mt&&le.default.createElement(ge,{attachmentPickerBottomSheetHeight:q,attachmentPickerErrorButtonText:ve,AttachmentPickerErrorImage:ye,attachmentPickerErrorText:Me}))}));w.AttachmentPicker=Fe,Fe.displayName="AttachmentPicker"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.AttachmentPickerBottomSheetHandle=void 0;var ne=q(E(0)),oe=q(E(7)),ie=q(E(8)),se=P(E(58)),le=E(11),pe=oe.default.create({container:{alignItems:"center",height:20,justifyContent:"center"},handle:{borderRadius:2,height:4,width:40}});w.AttachmentPickerBottomSheetHandle=function AttachmentPickerBottomSheetHandle(y){var w=y.animatedPositionIndex,E=(0,le.useTheme)().theme.colors,P=E.black,q=E.white,oe=(0,se.useAnimatedStyle)((function(){return{borderTopLeftRadius:w.value>0?16-16*w.value:16,borderTopRightRadius:w.value>0?16-16*w.value:16}}));return ne.default.createElement(se.default.View,{style:[pe.container,{backgroundColor:q},oe]},ne.default.createElement(ie.default,{style:[pe.handle,{backgroundColor:P+"1A"}]}))}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.AttachmentPickerError=void 0;var q=P(E(47)),ne=P(E(48)),oe=P(E(0)),ie=P(E(172)),se=P(E(7)),le=P(E(17)),pe=P(E(8)),ge=E(117),me=E(11),he=E(26),ve=se.default.create({errorButtonText:{fontSize:14,fontWeight:"600",marginHorizontal:24,marginTop:16,textAlign:"center"},errorContainer:{alignItems:"center",bottom:0,left:0,paddingTop:16,position:"absolute",right:0},errorText:{fontSize:14,marginHorizontal:24,marginTop:16,textAlign:"center"}});w.AttachmentPickerError=function AttachmentPickerError(y){var w=y.attachmentPickerBottomSheetHeight,E=y.attachmentPickerErrorButtonText,P=y.AttachmentPickerErrorImage,se=y.attachmentPickerErrorText,ye=(0,me.useTheme)().theme,_e=ye.attachmentPicker,Re=_e.errorButtonText,we=_e.errorContainer,ke=_e.errorText,Me=ye.colors,Se=Me.accent_blue,Ae=Me.grey,Te=Me.white_smoke,Oe=(0,he.useTranslationContext)().t,Fe=(0,ge.useAttachmentPickerContext)(),je=Fe.closePicker,Be=Fe.setSelectedPicker,Ve=function(){var y=(0,ne.default)(q.default.mark((function _callee(){return q.default.wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:return y.prev=0,Be(void 0),je(),y.next=5,ie.default.openSettings();case 5:y.next=10;break;case 7:y.prev=7,y.t0=y.catch(0),console.log(y.t0);case 10:case"end":return y.stop()}}),_callee,null,[[0,7]])})));return function openSettings(){return y.apply(this,arguments)}}();return oe.default.createElement(pe.default,{style:[ve.errorContainer,{backgroundColor:Te,height:null!=w?w:308},we]},oe.default.createElement(P,null),oe.default.createElement(le.default,{style:[ve.errorText,{color:Ae},ke]},se||Oe("Please enable access to your photos and videos so you can share them.")),oe.default.createElement(le.default,{onPress:Ve,style:[ve.errorButtonText,{color:Se},Re],suppressHighlighting:!0},E||Oe("Allow access to your Gallery")))}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.AttachmentPickerErrorImage=void 0;var q=P(E(0)),ne=E(11),oe=E(42);w.AttachmentPickerErrorImage=function AttachmentPickerErrorImage(){var y=(0,ne.useTheme)().theme.colors.grey_gainsboro;return q.default.createElement(oe.Picture,{height:140,pathFill:y,width:140})}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Close=void 0;var q=P(E(5)),ne=P(E(0)),oe=E(14);w.Close=function Close(y){return ne.default.createElement(oe.RootSvg,y,ne.default.createElement(oe.RootPath,(0,q.default)({d:"M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"},y)))}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.AttachmentSelectionBar=void 0;var q=P(E(47)),ne=P(E(34)),oe=P(E(48)),ie=P(E(0)),se=P(E(7)),le=P(E(36)),pe=P(E(8)),ge=E(117),me=E(94),he=E(11),ve=E(84),ye=se.default.create({container:{alignItems:"center",flexDirection:"row",paddingHorizontal:6},icon:{marginHorizontal:12}});w.AttachmentSelectionBar=function AttachmentSelectionBar(){var y=(0,ge.useAttachmentPickerContext)(),w=y.attachmentSelectionBarHeight,E=y.CameraSelectorIcon,P=y.closePicker,se=y.FileSelectorIcon,_e=y.ImageSelectorIcon,Re=y.selectedPicker,we=y.setSelectedImages,ke=y.setSelectedPicker,Me=(0,me.useMessageInputContext)(),Se=Me.compressImageQuality,Ae=Me.hasFilePicker,Te=Me.imageUploads,Oe=Me.pickFile,Fe=(0,he.useTheme)().theme.attachmentSelectionBar,je=Fe.container,Be=Fe.icon,Ve=function(){var y=(0,oe.default)(q.default.mark((function _callee(){var y;return q.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return ke(void 0),P(),w.next=4,(0,ve.takePhoto)({compressImageQuality:Se});case 4:(y=w.sent).cancelled||we((function(w){return[].concat((0,ne.default)(w),[y])}));case 6:case"end":return w.stop()}}),_callee)})));return function takeAndUploadImage(){return y.apply(this,arguments)}}();return ie.default.createElement(pe.default,{style:[ye.container,je,{height:null!=w?w:52}]},ie.default.createElement(le.default,{hitSlop:{bottom:15,top:15},onPress:function onPress(){return function setPicker(y){Re===y?(ke(void 0),P()):ke(y)}("images")}},ie.default.createElement(pe.default,{style:[ye.icon,Be]},ie.default.createElement(_e,{numberOfImageUploads:Te.length,selectedPicker:Re}))),Ae&&ie.default.createElement(le.default,{disabled:Te.length>0,hitSlop:{bottom:15,top:15},onPress:function openFilePicker(){ke(void 0),P(),Oe()}},ie.default.createElement(pe.default,{style:[ye.icon,Be]},ie.default.createElement(se,{numberOfImageUploads:Te.length,selectedPicker:Re}))),ie.default.createElement(le.default,{hitSlop:{bottom:15,top:15},onPress:Ve},ie.default.createElement(pe.default,{style:[ye.icon,Be]},ie.default.createElement(E,{numberOfImageUploads:Te.length,selectedPicker:Re}))))}},function(y,w){y.exports=function setToArray(y){var w=-1,E=Array(y.size);return y.forEach((function(y){E[++w]=y})),E}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.CameraSelectorIcon=void 0;var q=P(E(0)),ne=E(11),oe=E(42);w.CameraSelectorIcon=function CameraSelectorIcon(){var y=(0,ne.useTheme)().theme.colors.grey;return q.default.createElement(oe.Camera,{pathFill:y})}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.FileSelectorIcon=void 0;var q=P(E(0)),ne=E(11),oe=E(42);w.FileSelectorIcon=function FileSelectorIcon(y){var w=y.numberOfImageUploads,E=(0,ne.useTheme)().theme.colors,P=E.grey,ie=E.grey_gainsboro;return q.default.createElement(oe.Folder,{pathFill:0===w?P:ie})}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageOverlaySelectedComponent=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(8)),ie=E(11),se=E(42),le=ne.default.create({check:{borderRadius:12,height:24,marginRight:8,marginTop:8,width:24}}),pe=function ImageOverlaySelectedComponent(){var y=(0,ie.useTheme)().theme,w=y.attachmentPicker.imageOverlaySelectedComponent.check,E=y.colors.white;return q.default.createElement(oe.default,{style:[le.check,{backgroundColor:E},w]},q.default.createElement(se.Check,null))};w.ImageOverlaySelectedComponent=pe,pe.displayName="ImageOverlaySelectedComponent{attachmentPicker{imageOverlaySelectedComponent}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageSelectorIcon=void 0;var q=P(E(0)),ne=E(11),oe=E(42);w.ImageSelectorIcon=function ImageSelectorIcon(y){var w=y.selectedPicker,E=(0,ne.useTheme)().theme.colors,P=E.accent_blue,ie=E.grey;return q.default.createElement(oe.Picture,{pathFill:"images"===w?P:ie})}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.AutoCompleteInput=void 0;var ne=q(E(5)),oe=q(E(47)),ie=q(E(48)),se=q(E(19)),le=P(E(0)),pe=q(E(7)),ge=q(E(357)),me=q(E(543)),he=E(358),ve=E(359),ye=E(95),_e=E(94),Re=E(173),we=E(11),ke=E(26),Me=E(27),Se=pe.default.create({inputBox:{flex:1,fontSize:14,includeFontPadding:!1,padding:0,paddingTop:0,textAlignVertical:"center"}}),Ae=function isCommand(y){return"/"===y[0]&&y.split(" ").length<=1},Te=le.default.memo((function AutoCompleteInputWithContext(y){var w=y.additionalTextInputProps,E=y.closeSuggestions,P=y.giphyActive,q=y.giphyEnabled,pe=y.maxMessageLength,ye=y.numberOfLines,_e=y.onChange,ke=y.openSuggestions,Te=y.setGiphyActive,Oe=y.setInputBoxRef,Fe=y.setShowMoreOptions,je=y.t,Be=y.text,Ve=y.triggerSettings,Ne=y.updateSuggestions,Ue=(0,le.useRef)(!1),We=(0,le.useRef)(0),$e=(0,le.useState)(0),Ye=(0,se.default)($e,2),Xe=Ye[0],et=Ye[1],tt=(0,we.useTheme)().theme,nt=tt.colors,rt=nt.black,ot=nt.grey,it=tt.messageInput.inputBox,st=function handleChange(y){var w=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w?ft(y):_e(y)};(0,le.useEffect)((function(){st(Be,!0)}),[Be]);var dt=function startTracking(y){var w=Ve[y];if(w){Ue.current=!0;var E=w.component;ke("string"==typeof E?E:le.default.createElement(E,null),":"===y?le.default.createElement(ve.EmojisHeader,{title:""}):"/"===y?le.default.createElement(he.CommandsHeader,null):void 0)}},ct=function stopTracking(){Ue.current=!1,E()},lt=function(){var y=(0,ie.default)(oe.default.mark((function _callee(y){var w,E,P,q,ne;return oe.default.wrap((function _callee$(oe){for(;;)switch(oe.prev=oe.next){case 0:if(w=y.query,E=y.trigger,!(0,Me.isMentionTrigger)(E)){oe.next=8;break}if(!(P=Ve[E])){oe.next=6;break}return oe.next=6,P.dataProvider(w,Be,(function(y,P){w===P&&Ne({data:y,onSelect:function onSelect(y){return ut({item:y,trigger:E})}})}));case 6:oe.next=19;break;case 8:if(!(0,Me.isCommandTrigger)(E)){oe.next=15;break}if(!(q=Ve[E])){oe.next=13;break}return oe.next=13,q.dataProvider(w,Be,(function(y,P){w===P&&Ne({data:y,onSelect:function onSelect(y){return ut({item:y,trigger:E})}})}));case 13:oe.next=19;break;case 15:if(!(ne=Ve[E])){oe.next=19;break}return oe.next=19,ne.dataProvider(w,Be,(function(y,P){w===P&&Ne({data:y,onSelect:function onSelect(y){return ut({item:y,trigger:E})}},le.default.createElement(ve.EmojisHeader,{title:w}))}));case 19:case"end":return oe.stop()}}),_callee)})));return function updateSuggestions(w){return y.apply(this,arguments)}}(),ut=function onSelectSuggestion(y){var w=y.item,E=y.trigger;if(E&&Ve[E]){var P="";if((0,Me.isCommandTrigger)(E)&&(0,Re.isSuggestionCommand)(w)){var ne=Ve[E];ne&&(P=ne.output(w).text+" ")}if((0,Me.isEmojiTrigger)(E)&&(0,Re.isSuggestionEmoji)(w)){var oe=Ve[E];oe&&(P=oe.output(w).text+" ")}if((0,Me.isMentionTrigger)(E)&&(0,Re.isSuggestionUser)(w)){var ie=Ve[E];ie&&(P=ie.output(w).text+" ")}var se=Be.slice(0,We.current),le=se.search(new RegExp("\\"+E+"[^\\"+E+"\\s]*$")),pe=function computeCaretPosition(y,w){return w+y.length}(P,le),ge=""+se.substring(0,le)+P;ct();var me=Be.replace(se,ge);if(q&&me.startsWith("/giphy ")?(_e(me.slice(7)),Te(!0)):_e(me),We.current=pe||0,(0,Me.isMentionTrigger)(E)&&(0,Re.isSuggestionUser)(w)){var he=Ve[E];he&&he.callback(w)}}},pt=function(){var y=(0,ie.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(Ae(y)){E.next=2;break}return E.abrupt("return",!1);case 2:return Ue.current||dt("/"),w=y.trim().slice(1),E.next=6,lt({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)}}(),gt=function handleMentions(y){var w=y.tokenMatch,E=null==w?void 0:w[w.length-1].trim(),P=E&&Object.keys(Ve).find((function(y){return y===E[0]}))||null;if(!E||E.length<=0)ct();else{var q=E.slice(1);P&&(Ue.current||dt("@"),lt({query:q,trigger:"@"}))}},mt=function handleEmojis(y){var w=y.tokenMatch,E=null==w?void 0:w[w.length-1].trim(),P=E&&Object.keys(Ve).find((function(y){return y===E[0]}))||null;if(!E||E.length<=0)ct();else{var q=E.slice(1);P&&(Ue.current||dt(":"),lt({query:q,trigger:":"}))}},ht=function(){var y=(0,ie.default)(oe.default.mark((function _callee3(y){var w,E;return oe.default.wrap((function _callee3$(P){for(;;)switch(P.prev=P.next){case 0:if(!/\s/.test(y.slice(We.current-1,We.current))||!Ue.current){P.next=4;break}ct(),P.next=12;break;case 4:if(P.t0=q,!P.t0){P.next=9;break}return P.next=8,pt(y);case 8:P.t0=!P.sent;case 9:if(!P.t0){P.next=12;break}(w=y.slice(0,We.current).match(/(?!^|\W)?@[^\s]*\s?[^\s]*$/g))?gt({tokenMatch:w}):(E=y.slice(0,We.current).match(/(?!^|\W)?:\w{2,}[^\s]*\s?[^\s]*$/g),mt({tokenMatch:E}));case 12:case"end":return P.stop()}}),_callee3)})));return function handleSuggestions(w){return y.apply(this,arguments)}}(),ft=(0,me.default)(ht,100,{leading:!1});return le.default.createElement(ge.default,(0,ne.default)({maxLength:pe,multiline:!0,onChangeText:function onChangeText(y){q&&y.startsWith("/giphy ")?(st(y.slice(7)),Te(!0)):st(y)},onContentSizeChange:function onContentSizeChange(y){var w=y.nativeEvent.contentSize.height;Xe||et(w)},onSelectionChange:function handleSelectionChange(y){var w=y.nativeEvent.selection.end;We.current=w},placeholder:je(P?"Search GIFs":"Send a message"),placeholderTextColor:ot,ref:Oe,style:[Se.inputBox,{color:rt,maxHeight:(Xe||17)*ye},it],testID:"auto-complete-text-input",value:Be},w,{onBlur:function onBlur(y){null!=w&&w.onBlur&&(null==w||w.onBlur(y)),Fe(!0)}}))}),(function areEqual(y,w){var E=y.giphyActive,P=y.t,q=y.text,ne=w.giphyActive,oe=w.t,ie=w.text;return E===ne&&(P===oe&&!(q!==ie))})),Oe=function AutoCompleteInput(y){var w=(0,ye.useChannelContext)().giphyEnabled,E=(0,_e.useMessageInputContext)(),P=E.additionalTextInputProps,q=E.giphyActive,oe=E.maxMessageLength,ie=E.numberOfLines,se=E.onChange,pe=E.setGiphyActive,ge=E.setInputBoxRef,me=E.setShowMoreOptions,he=E.text,ve=E.triggerSettings,we=(0,Re.useSuggestionsContext)(),Me=we.closeSuggestions,Se=we.openSuggestions,Ae=we.updateSuggestions,Oe=(0,ke.useTranslationContext)().t;return le.default.createElement(Te,(0,ne.default)({additionalTextInputProps:P,closeSuggestions:Me,giphyActive:q,giphyEnabled:w,maxMessageLength:oe,numberOfLines:ie,onChange:se,openSuggestions:Se,setGiphyActive:pe,setInputBoxRef:ge,setShowMoreOptions:me,t:Oe,text:he,triggerSettings:ve,updateSuggestions:Ae},y))};w.AutoCompleteInput=Oe,Oe.displayName="AutoCompleteInput{messageInput{inputBox}}"},function(y,w,E){"use strict";E.r(w);var P=E(0),q=E(38),ne=E(109),oe=E(138),ie=E(183),se=E(124),le=E(53),pe=E(139),ge=E(190),me=E(7),he=E(89),ve={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 ye=Object(P.forwardRef)((function(y,w){var E,ne,ye=y.autoCapitalize,Re=void 0===ye?"sentences":ye,we=y.autoComplete,ke=y.autoCompleteType,Me=y.autoCorrect,Se=void 0===Me||Me,Ae=y.blurOnSubmit,Te=y.clearTextOnFocus,Oe=y.dir,Fe=y.editable,je=void 0===Fe||Fe,Be=y.keyboardType,Ve=void 0===Be?"default":Be,Ne=y.multiline,Ue=void 0!==Ne&&Ne,We=y.numberOfLines,$e=void 0===We?1:We,Ye=y.onBlur,Xe=y.onChange,et=y.onChangeText,tt=y.onContentSizeChange,nt=y.onFocus,rt=y.onKeyPress,ot=y.onLayout,it=y.onMoveShouldSetResponder,st=y.onMoveShouldSetResponderCapture,dt=y.onResponderEnd,ct=y.onResponderGrant,lt=y.onResponderMove,ut=y.onResponderReject,pt=y.onResponderRelease,gt=y.onResponderStart,mt=y.onResponderTerminate,ht=y.onResponderTerminationRequest,ft=y.onScrollShouldSetResponder,vt=y.onScrollShouldSetResponderCapture,yt=y.onSelectionChange,bt=y.onSelectionChangeShouldSetResponder,_t=y.onSelectionChangeShouldSetResponderCapture,Rt=y.onStartShouldSetResponder,xt=y.onStartShouldSetResponderCapture,Ct=y.onSubmitEditing,wt=y.placeholderTextColor,kt=y.returnKeyType,Mt=y.secureTextEntry,St=void 0!==Mt&&Mt,Et=y.selection,Dt=y.selectTextOnFocus,At=y.spellCheck;switch(Ve){case"email-address":E="email";break;case"number-pad":case"numeric":ne="numeric";break;case"decimal-pad":ne="decimal";break;case"phone-pad":E="tel";break;case"search":case"web-search":E="search";break;case"url":E="url";break;default:E="text"}St&&(E="password");var Pt=Object(P.useRef)({height:null,width:null}),Tt=Object(P.useRef)(null),Lt=Object(P.useCallback)((function(){var y=Tt.current;if(Ue&&tt&&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,tt({nativeEvent:{contentSize:{height:Pt.current.height,width:Pt.current.width}}}))}}),[Tt,Ue,tt]),It=Object(P.useMemo)((function(){return function(y){null!=y&&(y.clear=function(){null!=y&&(y.value="")},y.isFocused=function(){return null!=y&&he.a.currentlyFocusedField()===y},Lt())}}),[Lt]);Object(se.a)((function(){var y=Tt.current;null!=y&&null!=Et&&function setSelection(y,w){if(function isSelectionStale(y,w){var E=y.selectionEnd,P=y.selectionStart,q=w.start,ne=w.end;return q!==P||ne!==E}(y,w)){var E=w.start,P=w.end;try{y.setSelectionRange(E,P||E)}catch(y){}}}(y,Et),document.activeElement===y&&(he.a._currentlyFocusedNode=y)}),[Tt,Et]);var Ot=Ue?"textarea":"input",Ft=[_e.textinput],zt=me.default.compose(y.style,wt&&{placeholderTextColor:wt});Object(ie.a)(Tt,ot),Object(ge.a)(Tt,{onMoveShouldSetResponder:it,onMoveShouldSetResponderCapture:st,onResponderEnd:dt,onResponderGrant:ct,onResponderMove:lt,onResponderReject:ut,onResponderRelease:pt,onResponderStart:gt,onResponderTerminate:mt,onResponderTerminationRequest:ht,onScrollShouldSetResponder:ft,onScrollShouldSetResponderCapture:vt,onSelectionChangeShouldSetResponder:bt,onSelectionChangeShouldSetResponderCapture:_t,onStartShouldSetResponder:Rt,onStartShouldSetResponderCapture:xt});var jt=function pickProps(y){return Object(oe.a)(y,ve)}(y);jt.autoCapitalize=Re,jt.autoComplete=we||ke||"on",jt.autoCorrect=Se?"on":"off",jt.classList=Ft,jt.dir=void 0!==Oe?Oe:"auto",jt.enterkeyhint=kt,jt.onBlur=function handleBlur(y){he.a._currentlyFocusedNode=null,Ye&&(y.nativeEvent.text=y.target.value,Ye(y))},jt.onChange=function handleChange(y){var w=y.target.value;y.nativeEvent.text=w,Lt(),Xe&&Xe(y),et&&et(w)},jt.onFocus=function handleFocus(y){var w=Tt.current;null!=w&&(he.a._currentlyFocusedNode=w,nt&&(y.nativeEvent.text=y.target.value,nt(y)),Te&&(w.value=""),Dt&&setTimeout((function(){w.select()}),0))},jt.onKeyDown=function handleKeyDown(y){y.stopPropagation();var w=null==Ae?!Ue:Ae,E=y.nativeEvent,P=function isEventComposing(y){return y.isComposing||229===y.keyCode}(E);rt&&rt(y),"Enter"!==y.key||y.shiftKey||P||y.isDefaultPrevented()||(!Ae&&Ue||!Ct||(y.preventDefault(),E.text=y.target.value,Ct(y)),w&&null!=Tt.current&&Tt.current.blur())},jt.onSelect=function handleSelectionChange(y){if(yt)try{var w=y.target,E=w.selectionStart,P=w.selectionEnd;y.nativeEvent.selection={start:E,end:P},y.nativeEvent.text=y.target.value,yt(y)}catch(y){}},jt.readOnly=!je,jt.rows=Ue?$e:void 0,jt.spellCheck=null!=At?At:Se,jt.style=zt,jt.type=Ue?void 0:E,jt.inputMode=ne;var Bt=Object(pe.a)(jt),Vt=Object(le.a)(Tt,Bt,It,w);return jt.ref=Vt,Object(q.default)(Ot,jt)}));ye.displayName="TextInput",ye.State=he.a;var _e=ne.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=ye},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.CommandsHeader=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(11),le=E(26),pe=E(259),ge=ne.default.create({container:{alignItems:"center",flexDirection:"row",padding:8},title:{fontSize:14,paddingLeft:8}}),me=function CommandsHeader(){var y=(0,se.useTheme)().theme,w=y.colors,E=w.accent_blue,P=w.grey,ne=y.messageInput.suggestions.commandsHeader,me=ne.container,he=ne.title,ve=(0,le.useTranslationContext)().t;return q.default.createElement(ie.default,{style:[ge.container,me]},q.default.createElement(pe.Lightning,{pathFill:E}),q.default.createElement(oe.default,{style:[ge.title,{color:P},he],testID:"commands-header-title"},ve("Instant Commands")))};w.CommandsHeader=me,me.displayName="CommandsHeader{messageInput{suggestions{commandsHeader}}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.EmojisHeader=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(11),le=E(26),pe=E(521),ge=ne.default.create({container:{alignItems:"center",flexDirection:"row",padding:8},title:{fontSize:14,paddingLeft:8}}),me=function EmojisHeader(y){var w=y.title,E=void 0===w?"":w,P=(0,se.useTheme)().theme,ne=P.colors,me=ne.accent_blue,he=ne.grey,ve=P.messageInput.suggestions.emojisHeader,ye=ve.container,_e=ve.title,Re=(0,le.useTranslationContext)().t;return q.default.createElement(ie.default,{style:[ge.container,ye]},q.default.createElement(pe.Smile,{pathFill:me}),q.default.createElement(oe.default,{style:[ge.title,{color:he},_e],testID:"emojis-header-title"},Re("Emoji matching")+' "'+E+'"'))};w.EmojisHeader=me,me.displayName="EmojisHeader{messageInput{suggestions{emojisHeader}}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.CommandsItem=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(11),le=E(42),pe=ne.default.create({args:{fontSize:14},container:{alignItems:"center",flexDirection:"row",paddingHorizontal:16,paddingVertical:8},iconContainer:{alignItems:"center",borderRadius:12,height:24,justifyContent:"center",marginRight:8,width:24},title:{fontSize:14,fontWeight:"bold",paddingRight:8}}),ge=function Icon(y){var w=y.name,E=(0,se.useTheme)().theme,P=E.colors,ne=P.accent_blue,oe=P.white,ge=E.messageInput.suggestions.command.iconContainer;switch(w){case"ban":return q.default.createElement(ie.default,{style:[pe.iconContainer,{backgroundColor:ne},ge]},q.default.createElement(le.UserDelete,{height:16,pathFill:oe,width:16}));case"flag":return q.default.createElement(ie.default,{style:[pe.iconContainer,{backgroundColor:ne},ge]},q.default.createElement(le.Flag,{pathFill:oe}));case"giphy":return q.default.createElement(ie.default,{style:[pe.iconContainer,{backgroundColor:ne},ge]},q.default.createElement(le.GiphyIcon,null));case"imgur":return q.default.createElement(ie.default,{style:[pe.iconContainer,{backgroundColor:ne},ge]},q.default.createElement(le.Imgur,null));case"mute":return q.default.createElement(ie.default,{style:[pe.iconContainer,{backgroundColor:ne},ge]},q.default.createElement(le.Mute,{height:16,pathFill:oe,width:16}));case"unban":return q.default.createElement(ie.default,{style:[pe.iconContainer,{backgroundColor:ne},ge]},q.default.createElement(le.UserAdd,{height:16,pathFill:oe,width:16}));case"unmute":return q.default.createElement(ie.default,{style:[pe.iconContainer,{backgroundColor:ne},ge]},q.default.createElement(le.Sound,{pathFill:oe}));default:return q.default.createElement(ie.default,{style:[pe.iconContainer,{backgroundColor:ne},ge]},q.default.createElement(le.Lightning,{height:16,pathFill:oe,width:16}))}},me=function CommandsItem(y){var w=y.item,E=w.args,P=w.name,ne=(0,se.useTheme)().theme,le=ne.colors,me=le.black,he=le.grey,ve=ne.messageInput.suggestions.command,ye=ve.args,_e=ve.container,Re=ve.title;return q.default.createElement(ie.default,{style:[pe.container,_e]},q.default.createElement(ge,{name:P}),q.default.createElement(oe.default,{style:[pe.title,{color:me},Re],testID:"commands-item-title"},(P||"").replace(/^\w/,(function(y){return y.toUpperCase()}))),q.default.createElement(oe.default,{style:[pe.args,{color:he},ye],testID:"commands-item-args"},"/"+P+" "+E))};w.CommandsItem=me,me.displayName="CommandsItem{messageInput{suggestions{command}}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.EmojisItem=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(11),le=ne.default.create({container:{alignItems:"center",flexDirection:"row",paddingHorizontal:10},text:{fontSize:14}}),pe=function EmojisItem(y){var w=y.item,E=w.name,P=w.unicode,ne=(0,se.useTheme)().theme,pe=ne.colors.black,ge=ne.messageInput.suggestions.emoji,me=ge.container,he=ge.text;return q.default.createElement(ie.default,{style:[le.container,me]},q.default.createElement(oe.default,{style:[le.text,{color:pe},he],testID:"emojis-item-unicode"},P),q.default.createElement(oe.default,{style:[le.text,{color:pe},he],testID:"emojis-item-name"}," "+E))};w.EmojisItem=pe,pe.displayName="EmojisItem{messageInput{suggestions{emoji}}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MentionsItem=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(131),le=E(11),pe=E(512),ge=ne.default.create({column:{flex:1,justifyContent:"space-evenly",paddingLeft:8},container:{alignItems:"center",flexDirection:"row",paddingHorizontal:16,paddingVertical:8},name:{fontSize:14,fontWeight:"bold",paddingBottom:2},tag:{fontSize:12,fontWeight:"600"}}),me=function MentionsItem(y){var w=y.item,E=w.id,P=w.image,ne=w.name,me=w.online,he=(0,le.useTheme)().theme,ve=he.colors,ye=ve.accent_blue,_e=ve.black,Re=ve.grey,we=he.messageInput.suggestions.mention,ke=we.avatarSize,Me=we.column,Se=we.container,Ae=we.name,Te=we.tag;return q.default.createElement(ie.default,{style:[ge.container,Se]},q.default.createElement(se.Avatar,{image:P,name:ne,online:me,size:ke}),q.default.createElement(ie.default,{style:[ge.column,Me]},q.default.createElement(oe.default,{style:[ge.name,{color:_e},Ae],testID:"mentions-item-name"},ne||E),q.default.createElement(oe.default,{style:[ge.tag,{color:Re},Te]},"@"+E)),q.default.createElement(pe.AtMentions,{pathFill:ye}))};w.MentionsItem=me,me.displayName="MentionsItem{messageInput{suggestions{mention}}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.SuggestionsList=void 0;var q=P(E(92)),ne=P(E(0)),oe=P(E(123)),ie=P(E(7)),se=P(E(36)),le=E(360),pe=E(361),ge=E(362),me=E(173),he=E(11),ve=ie.default.create({emojiItem:{paddingVertical:10}}),ye=function SuggestionsItem(y){var w=y.children,E=(0,q.default)(y,["children"]);return ne.default.createElement(se.default,E,w)};ye.displayName="SuggestionsHeader{messageInput{suggestions}}";var _e=function SuggestionsList(y){var w=y.active,E=y.componentType,P=y.suggestions,q=P.data,ie=P.onSelect,se=y.suggestionsTitle,_e=(0,he.useTheme)().theme.messageInput.suggestions,Re=_e.container.maxHeight,we=_e.item;return w&&0!==q.length?ne.default.createElement(oe.default,{data:q,keyboardShouldPersistTaps:"always",keyExtractor:function keyExtractor(y,w){return""+(y.name||((0,me.isSuggestionUser)(y)?y.id:""))+w},ListHeaderComponent:se||void 0,renderItem:function renderItem(y){var w=y.index,P=y.item;if(function isString(y){return"string"==typeof y}(E))switch(E){case"MentionsItem":return(0,me.isSuggestionUser)(P)?ne.default.createElement(ye,{onPress:function onPress(){return ie(P)},style:[{paddingBottom:w===q.length-1?8:0,paddingTop:0===w?8:0},we]},ne.default.createElement(ge.MentionsItem,{item:P})):null;case"CommandsItem":return(0,me.isSuggestionCommand)(P)?ne.default.createElement(ye,{onPress:function onPress(){return ie(P)},style:[we]},ne.default.createElement(le.CommandsItem,{item:P})):null;case"EmojisItem":return(0,me.isSuggestionEmoji)(P)?ne.default.createElement(ye,{onPress:function onPress(){return ie(P)},style:[ve.emojiItem,we]},ne.default.createElement(pe.EmojisItem,{item:P})):null;default:return null}return ne.default.createElement(ye,{onPress:function onPress(){return ie(P)}},ne.default.cloneElement(E,{item:P}))},style:{maxHeight:Re}}):null};w.SuggestionsList=_e,_e.displayName="SuggestionsList{messageInput{suggestions}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.GroupAvatar=void 0;var ne=q(E(34)),oe=q(E(19)),ie=P(E(0)),se=q(E(66)),le=q(E(136)),pe=q(E(7)),ge=q(E(8)),me=E(11),he="https://getstream.io/random_png/",ve=pe.default.create({container:{overflow:"hidden"},flex:{flex:1}}),ye=function getInitials(y){return y.split(" ").slice(0,2).map((function(y){return y.charAt(0)})).join(" ")},_e=function GroupAvatar(y){var w=y.containerStyle,E=y.images,P=y.names,q=y.size,pe=y.testID,_e=(0,me.useTheme)().theme.groupAvatar,Re=_e.container,we=_e.image,ke=(0,ie.useState)(!1),Me=(0,oe.default)(ke,2),Se=Me[0],Ae=Me[1],Te=E||P||[],Oe=Te.slice(0,4).reduce((function(y,w,E){var oe=w.startsWith("http")?w:he+(P?"?name="+ye(P[E])+"&size="+(Te.length<=2?q:q/2):"");return Te.length<=2?(se.default.prefetch(Se?oe:oe.replace("h=%2A","h="+le.default.getPixelSizeForLayoutSize(Te.length<=2?q:q/2))).catch((function(){})),y[0]=[].concat((0,ne.default)(y[0]||[]),[{height:1===Te.length?q:q/2,name:P?P[E]:"",url:oe,width:q}])):(se.default.prefetch(Se?oe:oe.replace("h=%2A","h="+le.default.getPixelSizeForLayoutSize(q/2))).catch((function(){})),E<2?y[0]=[].concat((0,ne.default)(y[0]||[]),[{height:q/2,name:P?P[E]:"",url:oe,width:q/2}]):y[1]=[].concat((0,ne.default)(y[1]||[]),[{height:q/2,name:P?P[E]:"",url:oe,width:3===Te.length?q:q/2}])),y}),[]);return ie.default.createElement(ge.default,{style:[ve.container,{borderRadius:q/2,height:q,width:q},Re,w],testID:pe||"group-avatar"},Oe.map((function(y,w){return ie.default.createElement(ge.default,{key:"avatar-column-"+w,style:[ve.flex,{flexDirection:2===Te.length?"column":"row"}]},y.map((function(y,E){var P=y.height,ne=y.name,oe=y.url,ge=y.width;return ie.default.createElement(se.default,{accessibilityLabel:pe||"avatar-image",key:"avatar-"+oe+"-"+E,onError:function onError(){return Ae(!0)},source:{uri:Se||oe.includes("https://getstream.io/random_svg/")?oe.includes("stream-io-cdn.com")?oe:he+(ne?"?name="+ye(ne)+"&size="+P:""):oe.replace("h=%2A","h="+le.default.getPixelSizeForLayoutSize(P))},style:[we,q?{height:P,width:ge}:{}],testID:"group-avatar-image-"+w+"-"+E})})))})))};w.GroupAvatar=_e,_e.displayName="GroupAvatar{groupAvatar}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Channel=w.reactionData=void 0;var ne=q(E(92)),oe=q(E(47)),ie=q(E(48)),se=q(E(34)),le=q(E(5)),pe=q(E(19)),ge=P(E(0)),me=q(E(7)),he=q(E(17)),ve=q(E(8)),ye=E(529),_e=E(544),Re=E(545),we=E(546),ke=E(547),Me=E(548),Se=E(549),Ae=E(550),Te=E(1054),Oe=E(1055),Fe=E(243),je=E(201),Be=E(256),Ve=E(206),Ne=E(344),Ue=E(207),We=E(257),$e=E(258),Ye=E(263),Xe=E(264),et=E(366),tt=E(551),nt=E(552),rt=E(266),ot=E(267),it=E(371),st=E(568),dt=E(376),ct=E(569),lt=E(377),ut=E(378),pt=E(570),gt=E(379),mt=E(380),ht=E(571),ft=E(381),vt=E(1075),yt=E(382),bt=E(383),_t=E(384),Rt=E(211),xt=E(572),Ct=E(573),wt=E(574),kt=E(385),Mt=E(386),St=E(387),Et=E(388),Dt=E(389),At=E(269),Pt=E(390),Tt=E(95),Lt=E(30),It=E(94),Ot=E(40),Ft=E(175),zt=E(173),jt=E(11),Bt=E(108),Vt=E(26),Nt=E(268),Ht=E(42),Ut=E(84),Gt=E(27),qt=me.default.create({selectChannel:{fontWeight:"bold",padding:16}}),Wt=[{Icon:Ht.LoveReaction,type:"love"},{Icon:Ht.ThumbsUpReaction,type:"like"},{Icon:Ht.ThumbsDownReaction,type:"sad"},{Icon:Ht.LOLReaction,type:"haha"},{Icon:Ht.WutReaction,type:"wow"}];w.reactionData=Wt;var Kt=function ChannelWithContext(y){var w,E,P,q,me,Lt,Vt=y.additionalKeyboardAvoidingViewProps,Ht=y.additionalTextInputProps,Kt=y.animatedLongPress,$t=y.additionalTouchableProps,Yt=y.allowThreadMessagesInChannel,Xt=void 0===Yt||Yt,Jt=y.AttachButton,Qt=void 0===Jt?gt.AttachButton:Jt,Zt=y.Attachment,en=void 0===Zt?Fe.Attachment:Zt,tn=y.AttachmentActions,nn=void 0===tn?je.AttachmentActions:tn,an=y.FileAttachmentIcon,rn=void 0===an?Ue.FileIcon:an,sn=y.autoCompleteTriggerSettings,dn=y.blockUser,cn=y.Card,ln=void 0===cn?Be.Card:cn,un=y.CardCover,pn=y.CardFooter,gn=y.CardHeader,mn=y.channel,hn=y.children,vn=y.client,yn=y.closeSuggestions,bn=y.CommandsButton,_n=void 0===bn?mt.CommandsButton:bn,Rn=y.compressImageQuality,xn=y.copyMessage,Cn=y.DateHeader,wn=void 0===Cn?xt.DateHeader:Cn,kn=y.deleteMessage,Mn=y.disableIfFrozenChannel,Sn=void 0===Mn||Mn,En=y.disableKeyboardCompatibleView,Dn=void 0!==En&&En,An=y.disableTypingIndicator,Pn=y.dismissKeyboardOnMessageTouch,Tn=void 0===Pn||Pn,Ln=y.doDocUploadRequest,In=y.doImageUploadRequest,On=y.doMarkReadRequest,Fn=y.doSendMessageRequest,zn=y.doUpdateMessageRequest,jn=y.editMessage,Bn=y.EmptyStateIndicator,Vn=void 0===Bn?Ye.EmptyStateIndicator:Bn,Nn=y.enforceUniqueReaction,Hn=void 0!==Nn&&Nn,Un=y.FileAttachment,Gn=void 0===Un?Ve.FileAttachment:Un,qn=y.FileAttachmentGroup,Wn=void 0===qn?Ne.FileAttachmentGroup:qn,Kn=y.FileUploadPreview,$n=void 0===Kn?ht.FileUploadPreview:Kn,Yn=y.flagMessage,Xn=y.FlatList,Jn=void 0===Xn?Ut.FlatList:Xn,Qn=y.forceAlignMessages,Zn=y.formatDate,ea=y.Gallery,ta=void 0===ea?We.Gallery:ea,na=y.Giphy,ia=void 0===na?$e.Giphy:na,sa=y.giphyEnabled,da=y.globalUnreadCountLimit,la=void 0===da?255:da,pa=y.handleBlock,ga=y.handleCopy,ma=y.handleDelete,ha=y.handleEdit,fa=y.handleFlag,va=y.handleMute,ya=y.handleReaction,_a=y.handleReply,wa=y.handleRetry,Aa=y.handleThreadReply,Pa=y.hasCommands,Ia=void 0===Pa||Pa,Oa=y.hasFilePicker,za=void 0===Oa||Oa,Ba=y.hasImagePicker,Na=void 0===Ba||Ba,Ua=y.hideDateSeparators,qa=void 0!==Ua&&Ua,Wa=y.ImageUploadPreview,Ka=void 0===Wa?ft.ImageUploadPreview:Wa,$a=y.initialScrollToFirstUnreadMessage,Ya=void 0!==$a&&$a,Ja=y.initialValue,Qa=y.InlineDateSeparator,Za=void 0===Qa?Ct.InlineDateSeparator:Qa,er=y.InlineUnreadIndicator,tr=void 0===er?wt.InlineUnreadIndicator:er,nr=y.Input,ar=y.InputButtons,rr=void 0===ar?vt.InputButtons:ar,or=y.keyboardBehavior,ir=y.KeyboardCompatibleView,sr=void 0===ir?nt.KeyboardCompatibleView:ir,dr=y.keyboardVerticalOffset,cr=y.LoadingErrorIndicator,lr=void 0===cr?Xe.LoadingErrorIndicator:cr,ur=y.LoadingIndicator,pr=void 0===ur?et.LoadingIndicator:ur,gr=y.loadingMore,mr=y.loadingMoreRecent,hr=y.markdownRules,fr=y.messageId,vr=y.maxNumberOfFiles,yr=void 0===vr?10:vr,br=y.maxTimeBetweenGroupedMessages,_r=y.Message,Rr=void 0===_r?rt.Message:_r,xr=y.messageActions,Cr=y.MessageAvatar,wr=void 0===Cr?ot.MessageAvatar:Cr,kr=y.MessageContent,Mr=void 0===kr?it.MessageContent:kr,Sr=y.messageContentOrder,Er=void 0===Sr?["gallery","files","text","attachments"]:Sr,Dr=y.MessageFooter,Ar=void 0===Dr?st.MessageFooter:Dr,Pr=y.MessageHeader,Tr=y.MessageList,Lr=void 0===Tr?kt.MessageList:Tr,Ir=y.messages,Or=y.muteUser,Fr=y.myMessageTheme,zr=y.NetworkDownIndicator,jr=void 0===zr?tt.NetworkDownIndicator:zr,Br=y.ScrollToBottomButton,Vr=void 0===Br?St.ScrollToBottomButton:Br,Nr=y.MessageReplies,Hr=void 0===Nr?dt.MessageReplies:Nr,Ur=y.MessageRepliesAvatars,Gr=void 0===Ur?ct.MessageRepliesAvatars:Ur,qr=y.MessageSimple,Wr=void 0===qr?lt.MessageSimple:qr,Kr=y.MessageStatus,$r=void 0===Kr?ut.MessageStatus:Kr,Yr=y.MessageSystem,Xr=void 0===Yr?Mt.MessageSystem:Yr,Jr=y.MessageText,Qr=y.MoreOptionsButton,Zr=void 0===Qr?yt.MoreOptionsButton:Qr,eo=y.numberOfLines,to=void 0===eo?5:eo,no=y.onChangeText,ao=y.onDoubleTapMessage,ro=y.onLongPressMessage,oo=y.onPressMessage,io=y.onPressInMessage,so=y.openSuggestions,co=y.OverlayReactionList,lo=void 0===co?At.OverlayReactionList:co,uo=y.ReactionList,po=void 0===uo?pt.ReactionList:uo,go=y.Reply,mo=void 0===go?Pt.Reply:go,ho=y.reply,fo=y.retry,vo=y.selectReaction,yo=y.SendButton,bo=void 0===yo?bt.SendButton:yo,_o=y.sendImageAsync,Ro=void 0!==_o&&_o,xo=y.setInputRef,Co=y.ShowThreadMessageInChannelButton,wo=void 0===Co?_t.ShowThreadMessageInChannelButton:Co,ko=y.StickyHeader,Mo=y.supportedReactions,So=void 0===Mo?Wt:Mo,Eo=y.t,Do=y.thread,Ao=y.threadReply,Po=y.TypingIndicator,To=void 0===Po?Et.TypingIndicator:Po,Lo=y.TypingIndicatorContainer,Io=void 0===Lo?Dt.TypingIndicatorContainer:Lo,Oo=y.updateSuggestions,Fo=y.UploadProgressIndicator,zo=void 0===Fo?Rt.UploadProgressIndicator:Fo,jo=y.UrlPreview,Bo=void 0===jo?Be.Card:jo,Vo=(0,jt.useTheme)().theme,No=Vo.channel.selectChannel,Ho=Vo.colors.black,Uo=(0,ge.useState)(!1),Go=(0,pe.default)(Uo,2),qo=Go[0],Wo=Go[1],Ko=(0,ge.useState)(!1),$o=(0,pe.default)(Ko,2),Yo=$o[0],Xo=$o[1],Jo=(0,ge.useState)(!0),Qo=(0,pe.default)(Jo,2),Zo=Qo[0],ti=Qo[1],ni=(0,ge.useState)(),oi=(0,pe.default)(ni,2),ii=oi[0],ui=oi[1],pi=(0,ge.useState)(!0),vi=(0,pe.default)(pi,2),_i=vi[0],wi=vi[1],Ti=(0,ge.useState)(!1),Li=(0,pe.default)(Ti,2),Bi=Li[0],qi=Li[1],Wi=(0,ge.useState)(!1),Yi=(0,pe.default)(Wi,2),Zi=Yi[0],es=Yi[1],ts=(0,ge.useState)([]),ns=(0,pe.default)(ts,2),as=ns[0],rs=ns[1],os=(0,ge.useState)({}),ss=(0,pe.default)(os,2),ds=ss[0],cs=ss[1],ls=(0,ge.useState)(!1),us=(0,pe.default)(ls,2),ps=us[0],gs=us[1],ms=(0,ge.useState)({}),hs=(0,pe.default)(ms,2),fs=hs[0],vs=hs[1],ys=(0,ge.useState)(Do||null),bs=(0,pe.default)(ys,2),_s=bs[0],Rs=bs[1],xs=(0,ge.useState)(!0),Cs=(0,pe.default)(xs,2),ws=Cs[0],ks=Cs[1],Ms=(0,ge.useState)(!1),Ss=(0,pe.default)(Ms,2),Es=Ss[0],Ds=Ss[1],As=(0,ge.useState)((null==Do?void 0:Do.id)&&(null==mn||null==(w=mn.state)||null==(E=w.threads)?void 0:E[Do.id])||[]),Ps=(0,pe.default)(As,2),Ts=Ps[0],Ls=Ps[1],Is=(0,ge.useState)({}),Os=(0,pe.default)(Is,2),Fs=Os[0],zs=Os[1],js=(0,ge.useState)(),Bs=(0,pe.default)(js,2),Vs=Bs[0],Ns=Bs[1],Hs=(0,ge.useState)({}),Us=(0,pe.default)(Hs,2),Gs=Us[0],qs=Us[1],Ws=(0,Ae.useTargetedMessage)(fr),Ks=Ws.setTargetedMessage,$s=Ws.targetedMessage,Ys=(null==mn?void 0:mn.id)||"";(0,ge.useEffect)((function(){return function initChannel(){mn&&(mn.initialized?fr?Md({messageId:fr}):Ya&&mn.countUnread()>4?kd():Ed():Ed())}(),function(){cd.cancel(),dd.cancel(),nd.cancel(),Cc.cancel(),Ac.cancel()}}),[Ys,fr]);var Xs=!!Do;(0,ge.useEffect)((function(){var y;Do?(Rs(Do),mn&&null!=Do&&Do.id&&Ls((null==(y=mn.state.threads)?void 0:y[Do.id])||[])):Rs(null)}),[Xs]);var Js="admin"===(null==vn||null==(P=vn.user)?void 0:P.role)||"admin"===(null==mn?void 0:mn.state.membership.role),Qs="channel_moderator"===(null==mn?void 0:mn.state.membership.role)||"moderator"===(null==mn?void 0:mn.state.membership.role),Zs="owner"===(null==mn?void 0:mn.state.membership.role),ed=(0,Oe.lightThrottle)((function(){var y;null!=mn&&mn.disconnected||null==mn||null==mn.getConfig||null==(y=mn.getConfig())||!y.read_events||(On?On(mn):(0,ye.logChatPromiseExecution)(mn.markRead(),"mark read"))})),nd=(0,Oe.lightThrottle)((function(){mn&&zs((0,le.default)({},mn.state.typing))})),dd=(0,Oe.lightThrottle)((function(){mn&&vs((0,le.default)({},mn.state.read))})),cd=(0,Oe.lightThrottle)((function(){wi(!1),mn&&(cs((0,le.default)({},mn.state.members)),rs((0,se.default)(mn.state.messages)),vs((0,le.default)({},mn.state.read)),zs((0,le.default)({},mn.state.typing)),Ns(mn.state.watcher_count),qs((0,le.default)({},mn.state.watchers)))})),fd=function connectionRecoveredHandler(){mn&&cd()},bd=function connectionChangedHandler(y){y.online&&Dd()},_d=function handleEvent(y){var w;if(_s){var E=_s.id&&mn&&mn.state.threads[_s.id]||Ts;Ls(E)}if(mn&&_s&&(null==(w=y.message)?void 0:w.id)===_s.id){var P=mn.state.formatMessage(y.message);Rs(P)}"typing.start"===y.type||"typing.stop"===y.type?nd():"message.read"===y.type?dd():mn&&cd()};(0,ge.useEffect)((function(){return vn.on("connection.recovered",fd),vn.on("connection.changed",bd),null==mn||mn.on(_d),function(){vn.off("connection.recovered",fd),vn.off("connection.changed",bd),null==mn||mn.off(_d)}}),[Ys]);var Cd=function(){var y=(0,ie.default)(oe.default.mark((function _callee(){var y,w=arguments;return oe.default.wrap((function _callee$(E){for(;;)switch(E.prev=E.next){case 0:return y=w.length>0&&void 0!==w[0]?w[0]:function(){return null},Xo(!1),wi(!0),E.prev=3,E.next=6,y();case 6:ui(new Date),cd(),E.next=15;break;case 10:E.prev=10,E.t0=E.catch(3),Xo(E.t0),wi(!1),ui(new Date);case 15:case"end":return E.stop()}}),_callee,null,[[3,10]])})));return function channelQueryCall(){return y.apply(this,arguments)}}(),kd=function loadChannelAtFirstUnreadMessage(){if(mn){var y=mn.countUnread();if(!(y<=4))return mn.state.clearMessages(),mn.state.setIsUpToDate(!1),Cd((0,ie.default)(oe.default.mark((function _callee2(){var w,E,P;return oe.default.wrap((function _callee2$(q){for(;;)switch(q.prev=q.next){case 0:if(!(y0)){q.next=19;break}return P=mn.state.messages[mn.state.messages.length-1],q.next=17,Od(P.id,5);case 17:q.next=21;break;case 19:return q.next=21,mn.query({messages:{created_at_after:mn.lastRead()||new Date(0),limit:10}});case 21:case"end":return q.stop()}}),_callee2)}))))}},Md=function loadChannelAtMessage(y){var w=y.after,E=void 0===w?2:w,P=y.before,q=void 0===P?30:P,ne=y.messageId;return Cd((0,ie.default)(oe.default.mark((function _callee3(){return oe.default.wrap((function _callee3$(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,Ld({after:E,before:q,messageId:ne});case 2:ne&&Ks(ne);case 3:case"end":return y.stop()}}),_callee3)}))))},Ed=function loadChannel(){return Cd((0,ie.default)(oe.default.mark((function _callee4(){return oe.default.wrap((function _callee4$(y){for(;;)switch(y.prev=y.next){case 0:if(null!=mn&&mn.initialized&&mn.state.isUpToDate){y.next=4;break}return y.next=3,null==mn?void 0:mn.watch();case 3:null==mn||mn.state.setIsUpToDate(!0);case 4:return y.abrupt("return");case 5:case"end":return y.stop()}}),_callee4)}))))},Dd=function reloadChannel(){return null==mn||mn.state.clearMessages(),Ed()},Ad=function(){var y=(0,ie.default)(oe.default.mark((function _callee5(){var y,w,E=arguments;return oe.default.wrap((function _callee5$(P){for(;;)switch(P.prev=P.next){case 0:if(y=E.length>0&&void 0!==E[0]?E[0]:0,w=E.length>1&&void 0!==E[1]?E[1]:30,mn){P.next=4;break}return P.abrupt("return");case 4:return mn.state.clearMessages(),P.next=7,mn.query({messages:{limit:w,offset:y},watch:!0});case 7:mn.state.setIsUpToDate(0===y);case 8:case"end":return P.stop()}}),_callee5)})));return function query(){return y.apply(this,arguments)}}(),Ld=function(){var y=(0,ie.default)(oe.default.mark((function _callee6(y){var w,E,P,q,ne;return oe.default.wrap((function _callee6$(oe){for(;;)switch(oe.prev=oe.next){case 0:if(w=y.after,E=void 0===w?10:w,P=y.before,q=void 0===P?10:P,ne=y.messageId,mn){oe.next=3;break}return oe.abrupt("return");case 3:if(mn.state.setIsUpToDate(!1),mn.state.clearMessages(),rs((0,se.default)(mn.state.messages)),ne){oe.next=11;break}return oe.next=9,mn.query({messages:{limit:q},watch:!0});case 9:return mn.state.setIsUpToDate(!0),oe.abrupt("return");case 11:return oe.next=13,Id(ne,q);case 13:return oe.next=15,Od(ne,E);case 15:case"end":return oe.stop()}}),_callee6)})));return function queryAtMessage(w){return y.apply(this,arguments)}}(),Id=function(){var y=(0,ie.default)(oe.default.mark((function _callee7(y){var w,E=arguments;return oe.default.wrap((function _callee7$(P){for(;;)switch(P.prev=P.next){case 0:if(w=E.length>1&&void 0!==E[1]?E[1]:5,mn){P.next=3;break}return P.abrupt("return");case 3:return P.next=5,mn.query({messages:{id_lt:y,limit:w},watch:!0});case 5:mn.state.setIsUpToDate(!1);case 6:case"end":return P.stop()}}),_callee7)})));return function queryBeforeMessage(w){return y.apply(this,arguments)}}(),Od=function(){var y=(0,ie.default)(oe.default.mark((function _callee8(y){var w,E=arguments;return oe.default.wrap((function _callee8$(P){for(;;)switch(P.prev=P.next){case 0:if(w=E.length>1&&void 0!==E[1]?E[1]:5,mn){P.next=3;break}return P.abrupt("return");case 3:return P.next=5,mn.query({messages:{id_gte:y,limit:w},watch:!0});case 5:P.sent.messages.length1&&void 0!==arguments[1]?arguments[1]:{};mn&&(mn.state.addMessageSorted(y,!0),_s&&y.parent_id&&(w.threadMessages=mn.state.threads[y.parent_id]||[],Ls(w.threadMessages)),rs((0,se.default)(mn.state.messages)))},yc=function createMessagePreview(y){var w=y.attachments,E=y.mentioned_users,P=y.parent_id,q=y.text,oe=(0,ne.default)(y,["attachments","mentioned_users","parent_id","text"]),ie=(0,le.default)({__html:q,attachments:w,created_at:new Date,html:q,id:vn.userID+"-"+(0,Gt.generateRandomId)(),mentioned_users:(null==E?void 0:E.map((function(y){return{id:y}})))||[],parent_id:P,reactions:[],status:"sending",text:q,type:"regular",user:(0,le.default)({id:vn.userID},vn.user)},oe);if(ie.quoted_message_id){var se=as.find((function(y){return y.id===ie.quoted_message_id}));ie.quoted_message=se}return ie},bc=function(){var y=(0,ie.default)(oe.default.mark((function _callee9(y){var w,E,P,q,ie,se,pe,ge;return oe.default.wrap((function _callee9$(oe){for(;;)switch(oe.prev=oe.next){case 0:if(y.__html,w=y.attachments,y.created_at,y.html,E=y.id,P=y.mentioned_users,q=y.parent_id,y.quoted_message,y.reactions,y.status,ie=y.text,y.type,y.updated_at,y.user,se=(0,ne.default)(y,["__html","attachments","created_at","html","id","mentioned_users","parent_id","quoted_message","reactions","status","text","type","updated_at","user"]),pe=(0,le.default)({attachments:w,id:E,mentioned_users:(null==P?void 0:P.map((function(y){return y.id})))||[],parent_id:q,text:ie},se),oe.prev=2,ge={},!Fn){oe.next=10;break}return oe.next=7,Fn((null==mn?void 0:mn.cid)||"",pe);case 7:ge=oe.sent,oe.next=14;break;case 10:if(!mn){oe.next=14;break}return oe.next=13,mn.sendMessage(pe);case 13:ge=oe.sent;case 14:ge.message&&(ge.message.status="received",pc(ge.message)),oe.next=22;break;case 17:oe.prev=17,oe.t0=oe.catch(2),console.log(oe.t0),y.status="failed",pc(y);case 22:case"end":return oe.stop()}}),_callee9,null,[[2,17]])})));return function sendMessageRequest(w){return y.apply(this,arguments)}}(),_c=function(){var y=(0,ie.default)(oe.default.mark((function _callee10(y){var w,E;return oe.default.wrap((function _callee10$(P){for(;;)switch(P.prev=P.next){case 0:if(null!=mn&&null!=(w=mn.state)&&w.filterErrorMessages&&mn.state.filterErrorMessages(),E=yc((0,le.default)({},y,{attachments:y.attachments||[]})),null!=mn&&mn.state.isUpToDate){P.next=5;break}return P.next=5,Dd();case 5:return pc(E,{commands:[],messageInput:""}),P.next=8,bc(E);case 8:case"end":return P.stop()}}),_callee10)})));return function sendMessage(w){return y.apply(this,arguments)}}(),xc=function(){var y=(0,ie.default)(oe.default.mark((function _callee11(y){return oe.default.wrap((function _callee11$(w){for(;;)switch(w.prev=w.next){case 0:return y=(0,le.default)({},y,{status:"sending"}),pc(y),w.next=4,bc(y);case 4:case"end":return w.stop()}}),_callee11)})));return function retrySendMessage(w){return y.apply(this,arguments)}}(),Cc=(0,Te.heavyDebounce)((function(y,w){qi(!1),ti(y),rs(w)})),wc=function(){var y=(0,ie.default)(oe.default.mark((function _callee12(){var y,w,E,P,q;return oe.default.wrap((function _callee12$(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!Bi&&!1!==Zo){ne.next=2;break}return ne.abrupt("return");case 2:if(qi(!0),as.length){ne.next=5;break}return ne.abrupt("return",qi(!1));case 5:if(!(y=as&&as[0])||"received"===y.status){ne.next=8;break}return ne.abrupt("return",qi(!1));case 8:if(w=y&&y.id,E=20,ne.prev=10,!mn){ne.next=17;break}return ne.next=14,mn.query({messages:{id_lt:w,limit:E}});case 14:P=ne.sent,q=P.messages.length===E,Cc(q,mn.state.messages);case 17:ne.next=23;break;case 19:return ne.prev=19,ne.t0=ne.catch(10),console.warn("Message pagination request failed with error",ne.t0),ne.abrupt("return",qi(!1));case 23:case"end":return ne.stop()}}),_callee12,null,[[10,19]])})));return function loadMore(){return y.apply(this,arguments)}}(),kc=function(){var y=(0,ie.default)(oe.default.mark((function _callee13(){var y;return oe.default.wrap((function _callee13$(w){for(;;)switch(w.prev=w.next){case 0:if(null==mn||!mn.state.isUpToDate){w.next=2;break}return w.abrupt("return");case 2:if(es(!0),"received"===(null==(y=as[as.length-1])?void 0:y.status)){w.next=7;break}return es(!1),w.abrupt("return");case 7:if(w.prev=7,!mn){w.next=12;break}return w.next=11,Od(y.id);case 11:Ec(mn.state.messages);case 12:w.next=19;break;case 14:return w.prev=14,w.t0=w.catch(7),console.warn("Message pagination request failed with error",w.t0),es(!1),w.abrupt("return");case 19:case"end":return w.stop()}}),_callee13,null,[[7,14]])})));return function loadMoreRecent(){return y.apply(this,arguments)}}(),Ec=(0,Te.heavyDebounce)((function(y){es(!1),rs(y)})),Dc=(0,ge.useCallback)((function(){Rs(null),Ls([])}),[Rs,Ls]),Ac=(0,Te.heavyDebounce)((function(y,w){ks(y),Ds(!1),Ls(w)})),Ic=function(){var y=(0,ie.default)(oe.default.mark((function _callee14(){var y,w,E,P,q,ne,ie,se;return oe.default.wrap((function _callee14$(oe){for(;;)switch(oe.prev=oe.next){case 0:if(!Es&&null!=_s&&_s.id){oe.next=2;break}return oe.abrupt("return");case 2:if(Ds(!0),!mn){oe.next=14;break}return w=_s.id,E=mn.state.threads[w]||[],P=null==E||null==(y=E[0])?void 0:y.id,q=50,oe.next=10,mn.getReplies(w,{id_lt:P,limit:q});case 10:ne=oe.sent,ie=ne.messages.length===q,se=mn.state.threads[w]||[],Ac(ie,se);case 14:case"end":return oe.stop()}}),_callee14)})));return function loadMoreThread(){return y.apply(this,arguments)}}(),Fc=(0,_e.useCreateChannelContext)((0,le.default)({},jd,{channel:mn,disabled:!(null==mn||null==(q=mn.data)||!q.frozen)&&Sn,EmptyStateIndicator:Vn,enforceUniqueReaction:Hn,error:Yo,giphyEnabled:null!=sa?sa:!(null==(me=(null==mn||null==mn.getConfig||null==(Lt=mn.getConfig())?void 0:Lt.commands)||[])||!me.some((function(y){return"giphy"===y.name}))),hideDateSeparators:qa,isAdmin:Js,isModerator:Qs,isOwner:Zs,lastRead:ii,loadChannelAtMessage:Md,loading:_i,LoadingIndicator:pr,markRead:ed,maxTimeBetweenGroupedMessages:br,members:ds,NetworkDownIndicator:jr,read:fs,reloadChannel:Dd,scrollToFirstUnreadThreshold:4,setLastRead:ui,setTargetedMessage:Ks,StickyHeader:ko,targetedMessage:$s,watcherCount:Vs,watchers:Gs})),zc=(0,Re.useCreateInputMessageInputContext)((0,le.default)({},Bd,{additionalTextInputProps:Ht,AttachButton:Qt,autoCompleteTriggerSettings:sn,channelId:Ys,clearEditingState:function clearEditingState(){return Wo(!1)},clearQuotedMessageState:function clearQuotedMessageState(){return gs(!1)},CommandsButton:_n,compressImageQuality:Rn,doDocUploadRequest:Ln,doImageUploadRequest:In,editing:qo,editMessage:function editMessage(y){return zn?zn((null==mn?void 0:mn.cid)||"",y):vn.updateMessage(y)},FileUploadPreview:$n,hasCommands:Ia,hasFilePicker:za,hasImagePicker:Na,ImageUploadPreview:Ka,initialValue:Ja,Input:nr,InputButtons:rr,maxNumberOfFiles:yr,MoreOptionsButton:Zr,numberOfLines:to,onChangeText:no,quotedMessage:ps,SendButton:bo,sendImageAsync:Ro,sendMessage:_c,setInputRef:xo,ShowThreadMessageInChannelButton:wo,UploadProgressIndicator:zo})),Bc=(0,ke.useCreatePaginatedMessageListContext)({channelId:Ys,hasMore:Zo,loadingMore:void 0!==gr?gr:Bi,loadingMoreRecent:void 0!==mr?mr:Zi,loadMore:wc,loadMoreRecent:kc,messages:Ir||as,setLoadingMore:qi,setLoadingMoreRecent:es}),Hc=(0,we.useCreateMessagesContext)((0,le.default)({},zd,{additionalTouchableProps:$t,animatedLongPress:Kt,Attachment:en,AttachmentActions:nn,blockUser:dn,Card:ln,CardCover:un,CardFooter:pn,CardHeader:gn,channelId:Ys,copyMessage:xn,DateHeader:wn,deleteMessage:kn,disableTypingIndicator:An,dismissKeyboardOnMessageTouch:Tn,editMessage:jn,FileAttachment:Gn,FileAttachmentGroup:Wn,FileAttachmentIcon:rn,flagMessage:Yn,FlatList:Jn,forceAlignMessages:Qn,formatDate:Zn,Gallery:ta,Giphy:ia,handleBlock:pa,handleCopy:ga,handleDelete:ma,handleEdit:ha,handleFlag:fa,handleMute:va,handleReaction:ya,handleReply:_a,handleRetry:wa,handleThreadReply:Aa,initialScrollToFirstUnreadMessage:Ya,InlineDateSeparator:Za,InlineUnreadIndicator:tr,markdownRules:hr,Message:Rr,messageActions:xr,MessageAvatar:wr,MessageContent:Mr,messageContentOrder:Er,MessageFooter:Ar,MessageHeader:Pr,MessageList:Lr,MessageReplies:Hr,MessageRepliesAvatars:Gr,MessageSimple:Wr,MessageStatus:$r,MessageSystem:Xr,MessageText:Jr,muteUser:Or,myMessageTheme:Fr,onDoubleTapMessage:ao,onLongPressMessage:ro,onPressInMessage:io,onPressMessage:oo,OverlayReactionList:lo,ReactionList:po,removeMessage:function removeMessage(y){mn&&(mn.state.removeMessage(y),rs(mn.state.messages))},Reply:mo,reply:ho,retry:fo,retrySendMessage:xc,ScrollToBottomButton:Vr,selectReaction:vo,setEditingState:function setEditingState(y){Wo(y)},setQuotedMessageState:function setQuotedMessageState(y){gs(y)},supportedReactions:So,threadReply:Ao,TypingIndicator:To,TypingIndicatorContainer:Io,updateMessage:pc,UrlPreview:Bo})),Gc={closeSuggestions:yn,openSuggestions:so,updateSuggestions:Oo},Wc=(0,Me.useCreateThreadContext)({allowThreadMessagesInChannel:Xt,closeThread:Dc,loadMoreThread:Ic,openThread:function openThread(y){var w,E=null!=y&&y.id&&(null==mn||null==(w=mn.state)?void 0:w.threads[y.id])||[];Rs(y),Ls(E)},setThreadLoadingMore:Ds,thread:_s,threadHasMore:ws,threadLoadingMore:Es,threadMessages:Ts}),$c=(0,Se.useCreateTypingContext)({typing:Fs});return!mn||Yo?ge.default.createElement(lr,{error:Yo,listType:"message",retry:function retry(){wc()}}):null!=mn&&mn.cid&&mn.watch?ge.default.createElement(sr,(0,le.default)({behavior:or,enabled:!Dn,keyboardVerticalOffset:dr},Vt),ge.default.createElement(Tt.ChannelProvider,{value:Fc},ge.default.createElement(Nt.TypingProvider,{value:$c},ge.default.createElement(Ft.PaginatedMessageListProvider,{value:Bc},ge.default.createElement(Ot.MessagesProvider,{value:Hc},ge.default.createElement(Bt.ThreadProvider,{value:Wc},ge.default.createElement(zt.SuggestionsProvider,{value:Gc},ge.default.createElement(It.MessageInputProvider,{value:zc},ge.default.createElement(ve.default,{style:{height:"100%"}},hn))))))))):ge.default.createElement(he.default,{style:[qt.selectChannel,{color:Ho},No],testID:"no-channel"},Eo("Please select a channel first"))};w.Channel=function Channel(y){var w=(0,Lt.useChatContext)().client,E=(0,Vt.useTranslationContext)().t;return ge.default.createElement(Kt,(0,le.default)({client:w,t:E},y))}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.LoadingIndicator=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(367),le=E(11),pe=E(26),ge=ne.default.create({container:{alignItems:"center",flex:1,justifyContent:"center"},loadingText:{fontSize:14,fontWeight:"600",marginTop:20}}),me=function LoadingIndicatorWrapper(y){var w=y.text,E=(0,le.useTheme)().theme,P=E.colors.black,ne=E.loadingIndicator,pe=ne.container,me=ne.loadingText;return q.default.createElement(ie.default,{style:[ge.container,pe]},q.default.createElement(se.Spinner,null),q.default.createElement(oe.default,{style:[ge.loadingText,{color:P},me],testID:"loading"},w))},he=function LoadingIndicator(y){var w=y.listType,E=y.loadingText,P=(0,pe.useTranslationContext)().t;if(E)return q.default.createElement(me,{text:E});switch(w){case"channel":return q.default.createElement(me,{text:P("Loading channels...")});case"message":return q.default.createElement(me,{text:P("Loading messages...")});default:return q.default.createElement(me,{text:P("Loading...")})}};w.LoadingIndicator=he,he.displayName="LoadingIndicator{loadingIndicator}"},function(y,w,E){var P=E(3),q=E(16);Object.defineProperty(w,"__esModule",{value:!0}),w.Spinner=void 0;var ne=q(E(0)),oe=P(E(7)),ie=q(E(58)),se=E(11),le=E(516),pe=oe.default.create({spinner:{height:16,justifyContent:"center",margin:5,width:16}}),ge=function Spinner(){var y=(0,ie.useSharedValue)(0),w=(0,se.useTheme)().theme,E=w.colors.accent_blue,P=w.spinner,q=(0,ie.useAnimatedStyle)((function(){return{transform:[{rotate:y.value+"deg"}]}}));return(0,ne.useEffect)((function(){y.value=(0,ie.withRepeat)((0,ie.withTiming)(360,{duration:800,easing:ie.Easing.linear}),-1)}),[]),ne.default.createElement(ie.default.View,{style:[pe.spinner,q,P]},ne.default.createElement(le.Loading,{stopColor:E}))};w.Spinner=ge,ge.displayName="Spinner{spinner}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.withKeyboardContext=w.useKeyboardContext=w.KeyboardProvider=w.KeyboardContext=void 0;var ne=q(E(5)),oe=P(E(0)),ie=q(E(116)),se=E(54),le=oe.default.createContext({dismissKeyboard:ie.default.dismiss});w.KeyboardContext=le;w.KeyboardProvider=function KeyboardProvider(y){var w=y.children,E=y.value;return oe.default.createElement(le.Provider,{value:E},w)};var pe=function useKeyboardContext(){return(0,oe.useContext)(le)};w.useKeyboardContext=pe;w.withKeyboardContext=function withKeyboardContext(y){var w=function WithKeyboardContextComponent(w){var E=pe();return oe.default.createElement(y,(0,ne.default)({},w,E))};return w.displayName="WithKeyboardContext"+(0,se.getDisplayName)(y),w}},function(y,w,E){"use strict";E.r(w);var P=function(){function Alert(){}return Alert.alert=function alert(){},Alert}();w.default=P},function(y,w,E){"use strict";var P;E.r(w),E.d(w,"default",(function(){return q}));var q=function(){function Clipboard(){}return Clipboard.isAvailable=function isAvailable(){return void 0===P&&(P="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),P},Clipboard.getString=function getString(){return Promise.resolve("")},Clipboard.setString=function setString(y){var w=!1,E=document.body;if(E){var P=document.createElement("span");P.textContent=y,P.style.opacity="0",P.style.position="absolute",P.style.whiteSpace="pre-wrap",P.style.userSelect="auto",E.appendChild(P);var q=window.getSelection();q.removeAllRanges();var ne=document.createRange();ne.selectNodeContents(P),q.addRange(ne);try{document.execCommand("copy"),w=!0}catch(y){}q.removeAllRanges(),E.removeChild(P)}return w},Clipboard}()},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageContent=void 0;var q=P(E(5)),ne=P(E(92)),oe=P(E(0)),ie=P(E(7)),se=P(E(36)),le=P(E(8)),pe=P(E(219)),ge=E(210),me=E(57),he=E(40),ve=E(11),ye=E(26),_e=E(42),Re=E(27),we=ie.default.create({containerInner:{borderTopLeftRadius:16,borderTopRightRadius:16,borderWidth:1,overflow:"hidden"},leftAlignContent:{justifyContent:"flex-start"},leftAlignItems:{alignItems:"flex-start"},replyBorder:{borderLeftWidth:1,bottom:0,position:"absolute"},replyContainer:{flexDirection:"row",paddingHorizontal:8,paddingTop:8},rightAlignContent:{justifyContent:"flex-end"},rightAlignItems:{alignItems:"flex-end"}}),ke=oe.default.memo((function MessageContentWithContext(y){var w,E=y.additionalTouchableProps,P=y.alignment,me=y.Attachment,he=y.disabled,ke=y.FileAttachmentGroup,Me=y.formatDate,Se=y.Gallery,Ae=y.groupStyles,Te=y.hasReactions,Oe=y.isMyMessage,Fe=y.lastGroupMessage,je=y.members,Be=y.message,Ve=y.messageContentOrder,Ne=y.MessageFooter,Ue=y.MessageHeader,We=y.MessageReplies,$e=y.MessageStatus,Ye=y.onLongPress,Xe=y.onlyEmojis,et=y.onPress,tt=y.onPressIn,nt=y.otherAttachments,rt=y.preventPress,ot=y.repliesEnabled,it=y.Reply,st=y.setMessageContentWidth,dt=y.showMessageStatus,ct=y.tDateTimeParser,lt=y.threadList,ut=(0,ve.useTheme)().theme,pt=ut.colors,gt=pt.accent_red,mt=pt.blue_alice,ht=pt.grey,ft=pt.grey_gainsboro,vt=pt.grey_whisper,yt=pt.transparent,bt=ut.messageSimple,_t=bt.content,Rt=_t.container,xt=Rt.borderRadiusL,Ct=Rt.borderRadiusS,wt=(0,ne.default)(Rt,["borderRadiusL","borderRadiusS"]),kt=_t.containerInner,Mt=_t.deletedContainer,St=_t.deletedContainerInner,Et=_t.deletedText,Dt=_t.errorContainer,At=_t.errorIcon,Pt=_t.errorIconContainer,Tt=_t.replyBorder,Lt=_t.replyContainer,It=_t.wrapper,Ot=bt.reactionList,Ft=Ot.radius,zt=Ot.reactionSize,jt=function getDateText(y){if(!Be.created_at)return"";if(y)return y(Be.created_at);var w=ct(Be.created_at);return(0,ye.isDayOrMoment)(w)?w.format("LT"):Be.created_at},Bt=function onLayout(y){var w=y.nativeEvent.layout.width;st(w)},Vt="error"===Be.type||"failed"===Be.status,Nt=P+"_"+(null==Ae||null==(w=Ae[0])||null==w.toLowerCase?void 0:w.toLowerCase()),Ht=!(null==Be||!Be.reply_count),Ut=Xe&&!Be.quoted_message||!!nt.length;if(Be.deleted_at)return oe.default.createElement(le.default,{onLayout:Bt,style:["left"===P?we.leftAlignItems:we.rightAlignItems,Mt]},oe.default.createElement(le.default,{style:[we.containerInner,{backgroundColor:vt,borderBottomLeftRadius:"left_bottom"===Nt||"left_single"===Nt?Ct:xt,borderBottomRightRadius:"right_bottom"===Nt||"right_single"===Nt?Ct:xt,borderColor:vt},Ut?{borderWidth:0}:{},St],testID:"message-content-wrapper"},oe.default.createElement(ge.MessageTextContainer,{markdownStyles:(0,pe.default)({em:{color:ht}},Et),message:(0,q.default)({},Be,{text:"_Message deleted_"})})),oe.default.createElement(Ne,{alignment:P,formattedDate:jt(Me),isDeleted:!0,members:je,message:Be,MessageStatus:$e,otherAttachments:nt,showMessageStatus:dt,testID:"message-footer"}));var Gt=Xe&&!Be.quoted_message?yt:nt.length?"giphy"===nt[0].type?yt:mt:"left"===P||Vt?yt:ft,qt=Oe&&!Vt?Gt:vt;return oe.default.createElement(se.default,(0,q.default)({activeOpacity:.7,disabled:he,onLongPress:function onLongPress(y){Ye({emitter:"messageContent",event:y})},onPress:function onPress(y){et({emitter:"messageContent",event:y})},onPressIn:function onPressIn(y){null==tt||tt({emitter:"messageContent",event:y})}},E,{style:["left"===P?we.leftAlignItems:we.rightAlignItems,{paddingTop:Te?zt/2+Ft:2},Vt?Dt:{},wt]}),Ue&&oe.default.createElement(Ue,{alignment:P,formattedDate:jt(Me),isDeleted:!!Be.deleted_at,lastGroupMessage:Fe,members:je,message:Be,MessageStatus:$e,otherAttachments:nt,showMessageStatus:dt,testID:"message-header"}),oe.default.createElement(le.default,{onLayout:Bt,style:It},Ht&&!lt&&ot&&!Ut&&oe.default.createElement(le.default,{style:[we.replyBorder,{borderColor:qt,height:xt,left:"left"===P?0:void 0,right:"right"===P?0:void 0},Tt]}),oe.default.createElement(le.default,{style:[we.containerInner,{backgroundColor:Gt,borderBottomLeftRadius:"left_bottom"!==Nt&&"left_single"!==Nt||Ht&&!lt?xt:Ct,borderBottomRightRadius:"right_bottom"!==Nt&&"right_single"!==Nt||Ht&&!lt?xt:Ct,borderColor:Oe&&!Vt?Gt:vt},Ut?{borderWidth:0}:{},kt],testID:"message-content-wrapper"},Be.quoted_message&&oe.default.createElement(le.default,{style:[we.replyContainer,Lt]},oe.default.createElement(it,{styles:{messageContainer:{maxWidth:(0,Re.vw)(60)}}})),Ve.map((function(y,w){switch(y){case"attachments":return nt.map((function(y,w){return oe.default.createElement(me,{attachment:y,key:Be.id+"-"+w})}));case"files":return oe.default.createElement(ke,{key:"file_attachment_group_"+w,messageId:Be.id});case"gallery":return oe.default.createElement(Se,{key:"gallery_"+w,preventPress:rt});case"text":default:return nt.length&&nt[0].actions?null:oe.default.createElement(ge.MessageTextContainer,{key:"message_text_container_"+w})}}))),Vt&&oe.default.createElement(le.default,{style:ie.default.absoluteFill},oe.default.createElement(le.default,{style:Pt},oe.default.createElement(_e.Error,(0,q.default)({pathFill:gt},At))))),ot&&oe.default.createElement(We,{noBorder:Ut,repliesCurveColor:qt}),oe.default.createElement(Ne,{alignment:P,formattedDate:jt(Me),lastGroupMessage:Fe,members:je,message:Be,MessageStatus:$e,otherAttachments:nt,showMessageStatus:dt,testID:"message-footer"}))}),(function areEqual(y,w){var E,P,q,ne,oe=y.groupStyles,ie=y.hasReactions,se=y.lastGroupMessage,le=y.members,pe=y.message,ge=y.messageContentOrder,me=y.onlyEmojis,he=y.otherAttachments,ve=y.t,ye=y.tDateTimeParser,_e=w.groupStyles,Re=w.hasReactions,we=w.lastGroupMessage,ke=w.members,Me=w.message,Se=w.messageContentOrder,Ae=w.onlyEmojis,Te=w.otherAttachments,Oe=w.t,Fe=w.tDateTimeParser;if(!(ie===Re))return!1;if(!(se===we))return!1;if(!(me===Ae))return!1;if(!(he.length===Te.length&&(null==he||null==(E=he[0])||null==(P=E.actions)?void 0:P.length)===(null==Te||null==(q=Te[0])||null==(ne=q.actions)?void 0:ne.length)))return!1;if(!(Object.keys(le).length===Object.keys(ke).length))return!1;if(!(oe.length===_e.length&&(null==oe?void 0:oe[0])===(null==_e?void 0:_e[0])))return!1;if(!(pe.deleted_at===Me.deleted_at&&pe.reply_count===Me.reply_count&&pe.status===Me.status&&pe.type===Me.type&&pe.text===Me.text))return!1;var je=pe.attachments,Be=Me.attachments;return!!(Array.isArray(je)&&Array.isArray(Be)?je.length===Be.length&&je.every((function(y,w){return y.image_url===Be[w].image_url&&y.og_scrape_url===Be[w].og_scrape_url&&y.thumb_url===Be[w].thumb_url})):je===Be)&&(!!(Array.isArray(pe.latest_reactions)&&Array.isArray(Me.latest_reactions)?pe.latest_reactions.length===Me.latest_reactions.length&&pe.latest_reactions.every((function(y,w){var E;return y.type===(null==(E=Me.latest_reactions)?void 0:E[w].type)})):pe.latest_reactions===Me.latest_reactions)&&(!(ge.length!==Se.length||!ge.every((function(y,w){return y===Se[w]})))&&(ve===Oe&&!(ye!==Fe))))})),Me=function MessageContent(y){var w=(0,me.useMessageContext)(),E=w.alignment,P=w.disabled,ne=w.groupStyles,ie=w.hasReactions,se=w.isMyMessage,le=w.lastGroupMessage,pe=w.members,ge=w.message,ve=w.messageContentOrder,_e=w.onLongPress,Re=w.onlyEmojis,we=w.onPress,Me=w.onPressIn,Se=w.otherAttachments,Ae=w.preventPress,Te=w.showMessageStatus,Oe=w.threadList,Fe=(0,he.useMessagesContext)(),je=Fe.additionalTouchableProps,Be=Fe.Attachment,Ve=Fe.FileAttachmentGroup,Ne=Fe.formatDate,Ue=Fe.Gallery,We=Fe.MessageFooter,$e=Fe.MessageHeader,Ye=Fe.MessageReplies,Xe=Fe.MessageStatus,et=Fe.repliesEnabled,tt=Fe.Reply,nt=(0,ye.useTranslationContext)(),rt=nt.t,ot=nt.tDateTimeParser;return oe.default.createElement(ke,(0,q.default)({additionalTouchableProps:je,alignment:E,Attachment:Be,disabled:P,FileAttachmentGroup:Ve,formatDate:Ne,Gallery:Ue,groupStyles:ne,hasReactions:ie,isMyMessage:se,lastGroupMessage:le,members:pe,message:ge,messageContentOrder:ve,MessageFooter:We,MessageHeader:$e,MessageReplies:Ye,MessageStatus:Xe,onLongPress:_e,onlyEmojis:Re,onPress:we,onPressIn:Me,otherAttachments:Se,preventPress:Ae,repliesEnabled:et,Reply:tt,showMessageStatus:Te,t:rt,tDateTimeParser:ot,threadList:Oe},y))};w.MessageContent=Me,Me.displayName="MessageContent{messageSimple{content}}"},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){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 P=E(564);y.exports=function toString(y){return null==y?"":P(y)}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageReplies=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(56)),ie=P(E(7)),se=P(E(17)),le=P(E(36)),pe=P(E(8)),ge=E(57),me=E(40),he=E(11),ve=E(26),ye=ie.default.create({container:{alignItems:"center",flexDirection:"row",marginTop:8},curveContainer:{flexDirection:"row"},leftMessageRepliesCurve:(0,q.default)({borderBottomLeftRadius:16,borderRightColor:"transparent"},oe.default.select({android:{borderRightWidth:0}})),messageRepliesCurve:{borderTopColor:"transparent",borderTopWidth:0,borderWidth:1,height:16,width:16},messageRepliesText:{fontSize:12,fontWeight:"700",paddingBottom:5,paddingLeft:8},rightMessageRepliesCurve:(0,q.default)({borderBottomRightRadius:16,borderLeftColor:"transparent"},oe.default.select({android:{borderLeftWidth:0}}))}),_e=ne.default.memo((function MessageRepliesWithContext(y){var w=y.alignment,E=y.message,P=y.MessageRepliesAvatars,q=y.noBorder,oe=y.onLongPress,ie=y.onOpenThread,ge=y.onPress,me=y.repliesCurveColor,ve=y.t,_e=y.threadList,Re=(0,he.useTheme)().theme,we=Re.colors.accent_blue,ke=Re.messageSimple.replies,Me=ke.container,Se=ke.leftCurve,Ae=ke.messageRepliesText,Te=ke.rightCurve;return _e||!E.reply_count?null:ne.default.createElement(pe.default,{style:ye.curveContainer},"left"===w&&ne.default.createElement(ne.default.Fragment,null,!q&&ne.default.createElement(pe.default,{style:[{borderColor:me},ye.messageRepliesCurve,ye.leftMessageRepliesCurve,Se]}),ne.default.createElement(P,{alignment:w,message:E})),ne.default.createElement(le.default,{onLongPress:function onLongPress(y){oe({emitter:"messageReplies",event:y})},onPress:function onPress(y){ge({defaultHandler:ie,emitter:"messageReplies",event:y})},style:[ye.container,Me],testID:"message-replies"},ne.default.createElement(se.default,{style:[ye.messageRepliesText,{color:we},Ae]},1===E.reply_count?ve("1 Thread Reply"):ve("{{ replyCount }} Thread Replies",{replyCount:E.reply_count}))),"right"===w&&ne.default.createElement(ne.default.Fragment,null,ne.default.createElement(P,{alignment:w,message:E}),!q&&ne.default.createElement(pe.default,{style:[{borderColor:me},ye.messageRepliesCurve,ye.rightMessageRepliesCurve,Te]})))}),(function areEqual(y,w){var E=y.message,P=y.noBorder,q=y.t,ne=y.threadList,oe=w.message,ie=w.noBorder,se=w.t;return ne===w.threadList&&(E.reply_count===oe.reply_count&&(P===ie&&!(q!==se)))})),Re=function MessageReplies(y){var w=(0,ge.useMessageContext)(),E=w.alignment,P=w.message,oe=w.onLongPress,ie=w.onOpenThread,se=w.onPress,le=w.threadList,pe=(0,me.useMessagesContext)().MessageRepliesAvatars,he=(0,ve.useTranslationContext)().t;return ne.default.createElement(_e,(0,q.default)({alignment:E,message:P,MessageRepliesAvatars:pe,onLongPress:oe,onOpenThread:ie,onPress:se,t:he,threadList:le},y))};w.MessageReplies=Re,Re.displayName="MessageReplies{messageSimple{replies}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageSimple=void 0;var ne=q(E(5)),oe=q(E(19)),ie=P(E(0)),se=q(E(7)),le=q(E(8)),pe=E(57),ge=E(40),me=E(11),he=se.default.create({container:{alignItems:"flex-end",flexDirection:"row"}}),ve=ie.default.memo((function MessageSimpleWithContext(y){var w,E=y.alignment,P=y.channel,q=y.groupStyles,ne=y.hasReactions,se=y.message,pe=y.MessageAvatar,ge=y.MessageContent,ve=y.ReactionList,ye=(0,me.useTheme)().theme.messageSimple.container,_e=(0,ie.useState)(0),Re=(0,oe.default)(_e,2),we=Re[0],ke=Re[1],Me=(null==P||null==(w=P.state.messages[(null==P?void 0:P.state.messages.length)-1])?void 0:w.id)===se.id,Se=q.includes("single")||q.includes("bottom"),Ae=ne&&ve;return ie.default.createElement(le.default,{style:[he.container,{justifyContent:"left"===E?"flex-start":"flex-end",marginBottom:Se?Me?30:8:0,marginTop:Ae?2:0},ye],testID:"message-simple-wrapper"},"left"===E&&ie.default.createElement(pe,null),ie.default.createElement(ge,{setMessageContentWidth:ke}),Ae&&ie.default.createElement(ve,{messageContentWidth:we}))}),(function areEqual(y,w){var E=y.channel,P=y.groupStyles,q=y.hasReactions,ne=y.message,oe=w.channel,ie=w.groupStyles,se=w.hasReactions,le=w.message;if(!(q===se))return!1;if(!(ne.reply_count===le.reply_count))return!1;if(!(JSON.stringify(P)===JSON.stringify(ie)))return!1;if(!(ne.deleted_at===le.deleted_at&&ne.status===le.status&&ne.type===le.type&&ne.text===le.text))return!1;if(!((null==E?void 0:E.state.messages.length)===(null==oe?void 0:oe.state.messages.length)))return!1;var pe=ne.attachments,ge=le.attachments;return!!(Array.isArray(pe)&&Array.isArray(ge)?pe.length===ge.length&&pe.every((function(y,w){return y.image_url===ge[w].image_url&&y.og_scrape_url===ge[w].og_scrape_url&&y.thumb_url===ge[w].thumb_url})):pe===ge)&&!!(Array.isArray(ne.latest_reactions)&&Array.isArray(le.latest_reactions)?ne.latest_reactions.length===le.latest_reactions.length&&ne.latest_reactions.every((function(y,w){var E;return y.type===(null==(E=le.latest_reactions)?void 0:E[w].type)})):ne.latest_reactions===le.latest_reactions)})),ye=function MessageSimple(y){var w=(0,pe.useMessageContext)(),E=w.alignment,P=w.channel,q=w.groupStyles,oe=w.hasReactions,se=w.message,le=(0,ge.useMessagesContext)(),me=le.MessageAvatar,he=le.MessageContent,ye=le.ReactionList;return ie.default.createElement(ve,(0,ne.default)({alignment:E,channel:P,groupStyles:q,hasReactions:oe,message:se,MessageAvatar:me,MessageContent:he,ReactionList:ye},y))};w.MessageSimple=ye,ye.displayName="MessageSimple{messageSimple{container}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageStatus=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(7)),ie=P(E(17)),se=P(E(8)),le=E(209),pe=E(57),ge=E(11),me=E(514),he=E(515),ve=E(522),ye=oe.default.create({readByCount:{fontSize:11,fontWeight:"700",paddingRight:3},statusContainer:{alignItems:"flex-end",flexDirection:"row",justifyContent:"center",paddingRight:3}}),_e=ne.default.memo((function MessageStatusWithContext(y){var w=y.message,E=y.readEventsEnabled,P=y.threadList,oe=(0,ge.useTheme)().theme,pe=oe.colors.accent_blue,_e=oe.messageSimple.status,Re=_e.checkAllIcon,we=_e.checkIcon,ke=_e.readByCount,Me=_e.statusContainer,Se=_e.timeIcon;return"sending"===w.status?ne.default.createElement(se.default,{style:[ye.statusContainer,Me]},ne.default.createElement(ve.Time,we)):(0,le.isMessageWithStylesReadByAndDateSeparator)(w)&&!P&&!1!==E?ne.default.createElement(se.default,{style:[ye.statusContainer,Me]},"number"==typeof w.readBy?ne.default.createElement(ie.default,{style:[ye.readByCount,{color:pe},ke]},w.readBy):null,ne.default.createElement(he.CheckAll,(0,q.default)({pathFill:pe},Re))):"received"!==w.status||"ephemeral"===w.type||P?null:ne.default.createElement(se.default,{style:[ye.statusContainer,Me]},ne.default.createElement(me.Check,Se))}),(function areEqual(y,w){var E=y.message,P=y.readEventsEnabled,q=y.threadList,ne=w.message,oe=w.readEventsEnabled;return q===w.threadList&&(P===oe&&!(E.status!==ne.status||E.type!==ne.type||((0,le.isMessageWithStylesReadByAndDateSeparator)(E)&&E.readBy)!==((0,le.isMessageWithStylesReadByAndDateSeparator)(ne)&&ne.readBy)))})),Re=function MessageStatus(y){var w=(0,pe.useMessageContext)(),E=w.message,P=w.readEventsEnabled,oe=w.threadList;return ne.default.createElement(_e,(0,q.default)({message:E,readEventsEnabled:P,threadList:oe},y))};w.MessageStatus=Re,Re.displayName="MessageStatus{messageSimple{status}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.AttachButton=void 0;var q=P(E(5)),ne=P(E(0)),oe=E(88),ie=E(117),se=E(95),le=E(11),pe=E(513),ge=ne.default.memo((function AttachButtonWithContext(y){var w=y.disabled,E=y.handleOnPress,P=y.selectedPicker,q=(0,le.useTheme)().theme,ie=q.colors,se=ie.accent_blue,ge=ie.grey,me=q.messageInput.attachButton;return ne.default.createElement(oe.TouchableOpacity,{disabled:w,hitSlop:{bottom:15,left:15,right:5,top:15},onPress:E,style:[me],testID:"attach-button"},ne.default.createElement(pe.Attach,{pathFill:"images"===P?se:ge}))}),(function areEqual(y,w){var E=y.disabled,P=y.handleOnPress,q=y.selectedPicker,ne=w.disabled,oe=w.handleOnPress,ie=w.selectedPicker;return E===ne&&(P===oe&&!(q!==ie))})),me=function AttachButton(y){var w=(0,se.useChannelContext)().disabled,E=void 0!==w&&w,P=(0,ie.useAttachmentPickerContext)().selectedPicker;return ne.default.createElement(ge,(0,q.default)({disabled:E,selectedPicker:P},y))};w.AttachButton=me,me.displayName="AttachButton{messageInput}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.CommandsButton=void 0;var q=P(E(5)),ne=P(E(0)),oe=E(88),ie=E(95),se=E(173),le=E(11),pe=E(259),ge=ne.default.memo((function CommandsButtonWithContext(y){var w=y.disabled,E=y.handleOnPress,P=y.suggestions,q=(0,le.useTheme)().theme,ie=q.colors,ge=ie.accent_blue,me=ie.grey,he=q.messageInput.commandsButton;return ne.default.createElement(oe.TouchableOpacity,{disabled:w,hitSlop:{bottom:15,left:5,right:15,top:15},onPress:E,style:[he],testID:"commands-button"},ne.default.createElement(pe.Lightning,{pathFill:P&&P.data.some((function(y){return(0,se.isSuggestionCommand)(y)}))?ge:me}))}),(function areEqual(y,w){var E=y.disabled,P=y.suggestions,q=w.disabled,ne=w.suggestions;return E===q&&!(!!P!=!!ne)})),me=function CommandsButton(y){var w=(0,ie.useChannelContext)().disabled,E=void 0!==w&&w,P=(0,se.useSuggestionsContext)().suggestions;return ne.default.createElement(ge,(0,q.default)({disabled:E,suggestions:P},y))};w.CommandsButton=me,me.displayName="CommandsButton{messageInput}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageUploadPreview=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(123)),ie=P(E(66)),se=P(E(7)),le=P(E(36)),pe=P(E(8)),ge=E(211),me=E(94),he=E(11),ve=E(349),ye=E(27),_e=100,Re=se.default.create({dismiss:{borderRadius:24,position:"absolute",right:8,top:8},flatList:{paddingBottom:12},itemContainer:{flexDirection:"row",height:_e,marginLeft:8},upload:{borderRadius:10,height:_e,width:_e}}),we=ne.default.memo((function ImageUploadPreviewWithContext(y){var w=y.imageUploads,E=y.removeImage,P=y.uploadImage,q=(0,he.useTheme)().theme,se=q.colors,me=se.overlay_dark,_e=se.white,we=q.messageInput.imageUploadPreview,ke=we.dismiss,Me=we.flatList,Se=we.itemContainer,Ae=we.upload;return w.length>0?ne.default.createElement(oe.default,{data:w,getItemLayout:function getItemLayout(y,w){return{index:w,length:108,offset:108*w}},horizontal:!0,keyExtractor:function keyExtractor(y){return y.id},renderItem:function renderItem(y){var q=y.index,oe=y.item;return ne.default.createElement(pe.default,{style:[Re.itemContainer,q===w.length-1?{marginRight:8}:{},Se]},ne.default.createElement(ge.UploadProgressIndicator,{action:function action(){P({newImage:oe})},active:oe.state!==ye.FileState.UPLOADED&&oe.state!==ye.FileState.FINISHED,style:Re.upload,type:oe.state===ye.FileState.UPLOADING?ye.ProgressIndicatorTypes.IN_PROGRESS:oe.state===ye.FileState.UPLOAD_FAILED?ye.ProgressIndicatorTypes.RETRY:void 0},ne.default.createElement(ie.default,{resizeMode:"cover",source:{uri:oe.file.uri||oe.url},style:[Re.upload,Ae]})),ne.default.createElement(le.default,{onPress:function onPress(){E(oe.id)},style:[Re.dismiss,{backgroundColor:me},ke],testID:"remove-image-upload-preview"},ne.default.createElement(ve.Close,{pathFill:_e})))},style:[Re.flatList,Me]}):null}),(function areEqual(y,w){var E=y.imageUploads,P=w.imageUploads;return E.length===P.length&&E.every((function(y,w){return y.state===P[w].state}))})),ke=function ImageUploadPreview(y){var w=(0,me.useMessageInputContext)(),E=w.imageUploads,P=w.removeImage,oe=w.uploadImage;return ne.default.createElement(we,(0,q.default)({imageUploads:E,removeImage:P,uploadImage:oe},y))};w.ImageUploadPreview=ke,ke.displayName="ImageUploadPreview{messageInput{imageUploadPreview}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MoreOptionsButton=void 0;var q=P(E(5)),ne=P(E(0)),oe=E(88),ie=E(95),se=E(11),le=E(1076),pe=ne.default.memo((function MoreOptionsButtonWithContext(y){var w=y.disabled,E=y.handleOnPress,P=(0,se.useTheme)().theme,q=P.colors.accent_blue,ie=P.messageInput.moreOptionsButton;return ne.default.createElement(oe.TouchableOpacity,{disabled:w,hitSlop:{bottom:15,left:15,right:15,top:15},onPress:E,style:[ie],testID:"more-options-button"},ne.default.createElement(le.CircleRight,{pathFill:q}))}),(function areEqual(y,w){var E=y.disabled,P=y.handleOnPress,q=w.disabled,ne=w.handleOnPress;return E===q&&!(P!==ne)})),ge=function MoreOptionsButton(y){var w=(0,ie.useChannelContext)().disabled,E=void 0!==w&&w;return ne.default.createElement(pe,(0,q.default)({disabled:E},y))};w.MoreOptionsButton=ge,ge.displayName="MoreOptionsButton{messageInput}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.SendButton=void 0;var q=P(E(5)),ne=P(E(0)),oe=E(88),ie=E(94),se=E(11),le=E(518),pe=E(519),ge=E(520),me=ne.default.memo((function SendButtonWithContext(y){var w=y.disabled,E=void 0!==w&&w,P=y.giphyActive,q=y.sendMessage,ie=(0,se.useTheme)().theme,me=ie.colors,he=me.accent_blue,ve=me.grey_gainsboro,ye=ie.messageInput.sendButton;return ne.default.createElement(oe.TouchableOpacity,{disabled:E,onPress:q,style:[ye],testID:"send-button"},P&&ne.default.createElement(le.Search,{pathFill:he}),!P&&E&&ne.default.createElement(pe.SendRight,{pathFill:ve}),!P&&!E&&ne.default.createElement(ge.SendUp,{pathFill:he}))}),(function areEqual(y,w){var E=y.disabled,P=y.giphyActive,q=y.sendMessage,ne=w.disabled,oe=w.giphyActive,ie=w.sendMessage;return E===ne&&(P===oe&&!(q!==ie))})),he=function SendButton(y){var w=(0,ie.useMessageInputContext)(),E=w.giphyActive,P=w.sendMessage;return ne.default.createElement(me,(0,q.default)({giphyActive:E,sendMessage:P},y,{disabled:y.disabled||!1}))};w.SendButton=he,he.displayName="SendButton{messageInput}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ShowThreadMessageInChannelButton=w.ShowThreadMessageInChannelButtonWithContext=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(7)),ie=P(E(17)),se=P(E(36)),le=P(E(8)),pe=E(42),ge=E(94),me=E(11),he=E(108),ve=E(26),ye=oe.default.create({checkBox:{alignItems:"center",borderRadius:3,borderWidth:2,height:16,justifyContent:"center",width:16},container:{flexDirection:"row",marginHorizontal:2,marginTop:8},innerContainer:{flexDirection:"row"},text:{fontSize:13,marginLeft:12}}),_e=function ShowThreadMessageInChannelButtonWithContext(y){var w=y.allowThreadMessagesInChannel,E=y.sendThreadMessageInChannel,P=y.setSendThreadMessageInChannel,oe=y.t,ge=y.threadList,he=(0,me.useTheme)().theme,ve=he.colors,_e=ve.accent_blue,Re=ve.grey,we=ve.white,ke=he.messageInput.showThreadMessageInChannelButton,Me=ke.check,Se=ke.checkBoxActive,Ae=ke.checkBoxInactive,Te=ke.container,Oe=ke.innerContainer,Fe=ke.text;return ge&&w?ne.default.createElement(le.default,{style:[ye.container,Te]},ne.default.createElement(se.default,{onPress:function onPress(){return P((function(y){return!y}))}},ne.default.createElement(le.default,{style:[ye.innerContainer,Oe]},ne.default.createElement(le.default,{style:[ye.checkBox,E?(0,q.default)({backgroundColor:_e,borderColor:_e},Se):(0,q.default)({borderColor:Re},Ae)]},E&&ne.default.createElement(pe.Check,(0,q.default)({height:16,pathFill:we,width:16},Me))),ne.default.createElement(ie.default,{style:[ye.text,{color:Re},Fe]},oe("Also send to channel"))))):null};w.ShowThreadMessageInChannelButtonWithContext=_e;var Re=ne.default.memo(_e,(function areEqual(y,w){var E=y.allowThreadMessagesInChannel,P=y.sendThreadMessageInChannel,q=y.t,ne=y.threadList,oe=w.allowThreadMessagesInChannel,ie=w.sendThreadMessageInChannel,se=w.t,le=w.threadList;return q===se&&(P===ie&&(ne===le&&!(E!==oe)))})),we=function ShowThreadMessageInChannelButton(y){var w=(0,ve.useTranslationContext)().t,E=(0,he.useThreadContext)().allowThreadMessagesInChannel,P=(0,ge.useMessageInputContext)(),oe=P.sendThreadMessageInChannel,ie=P.setSendThreadMessageInChannel;return ne.default.createElement(Re,(0,q.default)({allowThreadMessagesInChannel:E,sendThreadMessageInChannel:oe,setSendThreadMessageInChannel:ie,t:w},y))};w.ShowThreadMessageInChannelButton=we,we.displayName="ShowThreadMessageInChannelButton{messageInput{showThreadMessageInChannelButton}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageList=void 0;var ne=q(E(5)),oe=q(E(47)),ie=q(E(48)),se=q(E(19)),le=P(E(0)),pe=q(E(56)),ge=q(E(7)),me=q(E(8)),he=E(209),ve=E(575),ye=E(576),_e=E(577),Re=E(578),we=E(117),ke=E(95),Me=E(30),Se=E(205),Ae=E(40),Te=E(106),Oe=E(175),Fe=E(108),je=E(11),Be=E(26),Ve=ge.default.create({container:{alignItems:"center",flex:1,width:"100%"},contentContainer:{flexGrow:1,paddingBottom:4},flex:{flex:1},invert:{transform:[{scaleY:-1}]},listContainer:{flex:1,width:"100%"},messagePadding:{paddingHorizontal:8},stickyHeader:{position:"absolute",top:0}}),Ne=function keyExtractor(y){return y.id||(y.created_at?"string"==typeof y.created_at?y.created_at:y.created_at.toISOString():Date.now().toString())},Ue={viewAreaCoveragePercentThreshold:1},We=function MessageListWithContext(y){var w,E=y.threadList?_e.InlineLoadingMoreThreadIndicator:ve.InlineLoadingMoreIndicator,P=y.additionalFlatListProps,q=y.channel,ge=y.client,we=y.closePicker,ke=y.DateHeader,Me=y.disabled,Se=y.disableTypingIndicator,Ae=y.EmptyStateIndicator,Te=y.FlatList,Oe=y.FooterComponent,Fe=void 0===Oe?E:Oe,We=y.HeaderComponent,$e=void 0===We?ye.InlineLoadingMoreRecentIndicator:We,Ye=y.initialScrollToFirstUnreadMessage,Xe=y.InlineDateSeparator,et=y.InlineUnreadIndicator,tt=y.inverted,nt=void 0===tt||tt,rt=y.isOnline,ot=y.loadChannelAtMessage,it=y.loading,st=y.LoadingIndicator,dt=y.loadMore,ct=y.loadMoreRecent,lt=y.loadMoreThread,ut=y.markRead,pt=y.Message,gt=y.MessageSystem,mt=y.myMessageTheme,ht=y.NetworkDownIndicator,ft=y.noGroupByUser,vt=y.onListScroll,yt=y.onThreadSelect,bt=y.overlay,_t=y.reloadChannel,Rt=y.ScrollToBottomButton,xt=y.scrollToFirstUnreadThreshold,Ct=y.selectedPicker,wt=y.setFlatListRef,kt=y.setImages,Mt=y.setSelectedPicker,St=y.setTargetedMessage,Et=y.StickyHeader,Dt=y.targetedMessage,At=y.tDateTimeParser,Pt=y.thread,Tt=y.threadList,Lt=void 0!==Tt&&Tt,It=y.typingEventsEnabled,Ot=y.TypingIndicator,Ft=y.TypingIndicatorContainer,zt=(0,je.useTheme)().theme,jt=zt.colors.white_snow,Bt=zt.messageList,Vt=Bt.container,Nt=Bt.contentContainer,Ht=Bt.listContainer,Ut=(0,le.useMemo)((function(){return(0,je.mergeThemes)({style:mt,theme:zt})}),[mt,zt]),Gt=(0,he.useMessageList)({inverted:nt,noGroupByUser:ft,threadList:Lt}),qt=Gt.length,Wt=(0,le.useState)(!1),Kt=(0,se.default)(Wt,2),$t=Kt[0],Yt=Kt[1],Xt=(0,le.useRef)({}),Jt=(0,le.useRef)({}),Qt=(0,le.useRef)(null),Zt=(0,le.useRef)(null),en=(0,le.useRef)(null),tn=(0,le.useRef)(!1),nn=(0,le.useState)(!1),an=(0,se.default)(nn,2),rn=an[0],sn=an[1],dn=(0,le.useState)(null==(w=(0,Re.getLastReceivedMessage)(Gt))?void 0:w.id),cn=(0,se.default)(dn,2),ln=cn[0],un=cn[1],pn=(0,le.useState)(!1),gn=(0,se.default)(pn,2),mn=gn[0],hn=gn[1],vn=(0,le.useState)(new Date),yn=(0,se.default)(vn,2),bn=yn[0],_n=yn[1],Rn=(0,le.useRef)(new Date),xn=function getLastReadSafely(){return null!=q&&q.initialized?q.lastRead():void 0},Cn=(0,le.useRef)(Gt[qt-1]||void 0),wn=(0,le.useRef)(xn()),kn=function isUnreadMessage(y,w){return y&&w&&y.created_at&&w0&&ut(),ne&&!mn?hn(!0):!ne&&mn&&hn(!1),vt&&vt(y)}},onScrollBeginDrag:function onScrollBeginDrag(){return!rn&&Ct&&sn(!0)},onScrollEndDrag:function onScrollEndDrag(){return rn&&Ct&&sn(!1)},onTouchEnd:function dismissImagePicker(){!rn&&Ct&&(Mt(void 0),we())},onViewableItemsChanged:Mn.current,ref:function refCallback(y){en.current=y,wt&&wt(y)},renderItem:function renderItem(y){var w,E=y.index,P=y.item;if(!q||!q.initialized)return null;var ne=xn(),oe=null==Gt?void 0:Gt[E+1],ie=!!kn(P,ne)&&mn,se=ie&&!kn(oe,ne);return"system"===P.type?le.default.createElement(le.default.Fragment,null,le.default.createElement(gt,{message:P,style:Ve.messagePadding}),se&&le.default.createElement(et,null)):ge.userID===(null==(w=P.user)?void 0:w.id)&&!!mt?le.default.createElement(le.default.Fragment,null,le.default.createElement(je.ThemeProvider,{mergedStyle:Ut},le.default.createElement(pt,{goToMessage:En,groupStyles:(0,he.isMessageWithStylesReadByAndDateSeparator)(P)?P.groupStyles:[],lastReceivedId:ln===P.id?ln:void 0,message:P,onThreadSelect:yt,showUnreadUnderlay:ie,style:Ve.messagePadding,targetedMessage:Dt===P.id,threadList:Lt})),(0,he.isMessageWithStylesReadByAndDateSeparator)(P)&&P.dateSeparator&&le.default.createElement(Xe,{date:P.dateSeparator}),se&&le.default.createElement(et,null)):le.default.createElement(le.default.Fragment,null,le.default.createElement(pt,{goToMessage:En,groupStyles:(0,he.isMessageWithStylesReadByAndDateSeparator)(P)?P.groupStyles:[],lastReceivedId:ln===P.id?ln:void 0,message:P,onThreadSelect:yt,showUnreadUnderlay:ie,style:Ve.messagePadding,targetedMessage:Dt===P.id,threadList:Lt}),(0,he.isMessageWithStylesReadByAndDateSeparator)(P)&&P.dateSeparator&&le.default.createElement(Xe,{date:P.dateSeparator}),se&&le.default.createElement(et,null))},scrollEnabled:"none"===bt,style:[Ve.listContainer,Ht],testID:"message-flat-list",viewabilityConfig:Ue},P)),!it&&le.default.createElement(le.default.Fragment,null,le.default.createElement(me.default,{style:Ve.stickyHeader},Et?le.default.createElement(Et,{dateString:On}):qt?le.default.createElement(ke,{dateString:On}):null),!Se&&Ot&&!1!==It&&le.default.createElement(Ft,null,le.default.createElement(Ot,null)),le.default.createElement(Rt,{onPress:Sn,showNotification:mn,unreadCount:null==q?void 0:q.countUnread()})),!rt&&le.default.createElement(ht,null)):null};w.MessageList=function MessageList(y){var w=(0,we.useAttachmentPickerContext)(),E=w.closePicker,P=w.selectedPicker,q=w.setSelectedPicker,oe=(0,ke.useChannelContext)(),ie=oe.channel,se=oe.disabled,pe=oe.EmptyStateIndicator,ge=oe.loadChannelAtMessage,me=oe.loading,he=oe.LoadingIndicator,ve=oe.markRead,ye=oe.NetworkDownIndicator,_e=oe.reloadChannel,Re=oe.scrollToFirstUnreadThreshold,je=oe.setTargetedMessage,Ve=oe.StickyHeader,Ne=oe.targetedMessage,Ue=oe.typingEventsEnabled,$e=(0,Me.useChatContext)(),Ye=$e.client,Xe=$e.isOnline,et=(0,Se.useImageGalleryContext)().setImages,tt=(0,Ae.useMessagesContext)(),nt=tt.DateHeader,rt=tt.disableTypingIndicator,ot=tt.FlatList,it=tt.initialScrollToFirstUnreadMessage,st=tt.InlineDateSeparator,dt=tt.InlineUnreadIndicator,ct=tt.Message,lt=tt.MessageSystem,ut=tt.myMessageTheme,pt=tt.ScrollToBottomButton,gt=tt.TypingIndicator,mt=tt.TypingIndicatorContainer,ht=(0,Oe.usePaginatedMessageListContext)(),ft=ht.loadMore,vt=ht.loadMoreRecent,yt=(0,Te.useOverlayContext)().overlay,bt=(0,Fe.useThreadContext)(),_t=bt.loadMoreThread,Rt=bt.thread,xt=(0,Be.useTranslationContext)(),Ct=xt.t,wt=xt.tDateTimeParser;return le.default.createElement(We,(0,ne.default)({channel:ie,client:Ye,closePicker:E,DateHeader:nt,disabled:se,disableTypingIndicator:rt,EmptyStateIndicator:pe,FlatList:ot,initialScrollToFirstUnreadMessage:it,InlineDateSeparator:st,InlineUnreadIndicator:dt,isOnline:Xe,loadChannelAtMessage:ge,loading:me,LoadingIndicator:he,loadMore:ft,loadMoreRecent:vt,loadMoreThread:_t,markRead:ve,Message:ct,MessageSystem:lt,myMessageTheme:ut,NetworkDownIndicator:ye,overlay:yt,reloadChannel:_e,ScrollToBottomButton:pt,scrollToFirstUnreadThreshold:Re,selectedPicker:P,setImages:et,setSelectedPicker:q,setTargetedMessage:je,StickyHeader:Ve,t:Ct,targetedMessage:Ne,tDateTimeParser:wt,thread:Rt,typingEventsEnabled:Ue,TypingIndicator:gt,TypingIndicatorContainer:mt},y))}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageSystem=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(11),le=E(26),pe=ne.default.create({container:{alignItems:"center",flexDirection:"row",justifyContent:"center",marginBottom:10},line:{flex:1,height:.5},text:{fontSize:10,fontWeight:"bold",textAlign:"center"},textContainer:{flex:3,marginTop:10}}),ge=function MessageSystem(y){var w,E=y.formatDate,P=y.message,ne=y.style,ge=(0,se.useTheme)().theme,me=ge.colors,he=me.grey,ve=me.grey_whisper,ye=ge.messageList.messageSystem,_e=ye.container,Re=ye.dateText,we=ye.line,ke=ye.text,Me=ye.textContainer,Se=(0,le.useTranslationContext)().tDateTimeParser,Ae=P.created_at,Te=Se(Ae),Oe=E&&Ae?E(Ae):Te&&(0,le.isDayOrMoment)(Te)?Te.calendar().toUpperCase():Te;return q.default.createElement(ie.default,{style:[pe.container,ne,_e],testID:"message-system"},q.default.createElement(ie.default,{style:[pe.line,{backgroundColor:ve},we]}),q.default.createElement(ie.default,{style:[pe.textContainer,Me]},q.default.createElement(oe.default,{style:[pe.text,{color:he},ke]},(null==(w=P.text)?void 0:w.toUpperCase())||""),q.default.createElement(oe.default,{style:[pe.text,{color:he},Re]},Oe)),q.default.createElement(ie.default,{style:[pe.line,{backgroundColor:ve},we]}))};w.MessageSystem=ge,ge.displayName="MessageSystem{messageList{messageSystem}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ScrollToBottomButton=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(36)),se=P(E(8)),le=E(11),pe=E(42),ge=ne.default.create({container:{alignItems:"center",borderRadius:20,elevation:5,height:40,justifyContent:"center",shadowOffset:{height:2,width:0},shadowOpacity:.25,shadowRadius:4,width:40},touchable:{bottom:20,position:"absolute",right:20},unreadCountNotificationContainer:{alignItems:"center",borderRadius:10,elevation:6,height:20,justifyContent:"center",minWidth:20,paddingHorizontal:4,position:"absolute",top:0},unreadCountNotificationText:{fontSize:11,textAlign:"center",textAlignVertical:"center"},wrapper:{alignItems:"center",height:50,justifyContent:"flex-end"}}),me=function ScrollToBottomButton(y){var w=y.onPress,E=y.showNotification,P=void 0===E||E,ne=y.unreadCount,me=(0,le.useTheme)().theme,he=me.colors,ve=he.accent_blue,ye=he.black,_e=he.white,Re=me.messageList.scrollToBottomButton,we=Re.container,ke=Re.touchable,Me=Re.unreadCountNotificationContainer,Se=Re.unreadCountNotificationText,Ae=Re.wrapper;return P?q.default.createElement(ie.default,{onPress:w,style:[ge.touchable,ke]},q.default.createElement(se.default,{style:[ge.wrapper,Ae]},q.default.createElement(se.default,{style:[ge.container,{backgroundColor:_e,shadowColor:ye},we]},q.default.createElement(pe.Down,null)),!!ne&&q.default.createElement(se.default,{style:[ge.unreadCountNotificationContainer,{backgroundColor:ve},Me]},q.default.createElement(oe.default,{style:[ge.unreadCountNotificationText,{color:_e},Se]},ne)))):null};w.ScrollToBottomButton=me,me.displayName="ScrollToBottomButton{messageList{scrollToBottomButton}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.TypingIndicator=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(579),le=E(580),pe=E(11),ge=ne.default.create({container:{alignItems:"center",flexDirection:"row",height:24,justifyContent:"flex-start"},loadingDots:{marginLeft:8},typingText:{marginLeft:8}}),me=function TypingIndicator(){var y=(0,pe.useTheme)().theme,w=y.colors,E=w.grey,P=w.white_snow,ne=y.typingIndicator,me=ne.container,he=ne.text,ve=(0,se.useTypingString)();return q.default.createElement(ie.default,{style:[ge.container,{backgroundColor:P+"E6"},me],testID:"typing-indicator"},q.default.createElement(le.LoadingDots,{style:ge.loadingDots}),q.default.createElement(oe.default,{style:[ge.typingText,{color:E},he]},ve))};w.TypingIndicator=me,me.displayName="TypingIndicator{typingIndicator}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.TypingIndicatorContainer=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(7)),ie=P(E(8)),se=E(30),le=E(11),pe=E(268),ge=oe.default.create({container:{bottom:0,position:"absolute",width:"100%"}}),me=function TypingIndicatorContainerWithContext(y){var w,E,P=y.children,q=y.client,oe=y.typing,se=(0,le.useTheme)().theme.messageList.typingIndicatorContainer,pe=Object.values(oe);return!pe.length||1===pe.length&&(null==(w=pe[0].user)?void 0:w.id)===(null==q||null==(E=q.user)?void 0:E.id)?null:ne.default.createElement(ie.default,{style:[ge.container,se],testID:"typing-indicator-container"},P)},he=function TypingIndicatorContainer(y){var w=(0,pe.useTypingContext)().typing,E=(0,se.useChatContext)().client;return ne.default.createElement(me,(0,q.default)({client:E,typing:w},y))};w.TypingIndicatorContainer=he,he.displayName="TypingIndicatorContainer{messageList{typingIndicatorContainer}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Reply=void 0;var ne=q(E(5)),oe=q(E(19)),ie=P(E(0)),se=q(E(66)),le=q(E(7)),pe=q(E(8)),ge=E(207),me=E(267),he=E(210),ve=E(57),ye=E(40),_e=E(94),Re=E(26),we=E(11),ke=E(27),Me=le.default.create({container:{alignItems:"flex-end",flexDirection:"row"},fileAttachmentContainer:{paddingLeft:8,paddingVertical:8},imageAttachment:{borderRadius:8,height:32,marginLeft:8,marginVertical:8,width:32},messageContainer:{alignItems:"flex-start",borderBottomLeftRadius:0,borderBottomRightRadius:12,borderTopLeftRadius:12,borderTopRightRadius:12,flexDirection:"row",flexGrow:1,flexShrink:1},text:{fontSize:12},textContainer:{maxWidth:void 0,paddingHorizontal:8}}),Se=ie.default.memo((function ReplyWithContext(y){var w,E,P,q,le=y.FileAttachmentIcon,ge=y.attachmentSize,me=void 0===ge?40:ge,ve=y.MessageAvatar,ye=y.quotedMessage,_e=y.styles,Re=void 0===_e?{}:_e,Se=y.t,Ae=(0,ie.useState)(!1),Te=(0,oe.default)(Ae,2),Oe=Te[0],Fe=Te[1],je=(0,we.useTheme)().theme,Be=je.colors,Ve=Be.blue_alice,Ne=Be.border,Ue=Be.transparent,We=Be.white,$e=je.reply,Ye=$e.container,Xe=$e.fileAttachmentContainer,et=$e.imageAttachment,tt=$e.markdownStyles,nt=$e.messageContainer,rt=$e.textContainer;if("boolean"==typeof ye)return null;var ot=null==(w=ye.attachments)?void 0:w.slice(-1)[0],it=ot?"file"===ot.type||"audio"===ot.type?"file":"image"!==ot.type||ot.title_link||ot.og_scrape_url?"giphy"===ot.type||"imgur"===ot.type?"giphy":"other":ot.image_url||ot.thumb_url?"image":void 0:void 0,st=!Oe&&ot&&"file"!==it&&(ot.image_url||ot.thumb_url||ot.og_scrape_url),dt=!ot&&!!ye.text&&ke.emojiRegex.test(ye.text);return ie.default.createElement(pe.default,{style:[Me.container,Ye,Re.container]},ie.default.createElement(ve,{alignment:"left",lastGroupMessage:!0,message:ye,size:24}),ie.default.createElement(pe.default,{style:[Me.messageContainer,{backgroundColor:"other"===it?Ve:"giphy"===it?Ue:We,borderColor:Ne,borderWidth:"other"===it?0:1},nt,Re.messageContainer]},!Oe&&ot?"file"===it?ie.default.createElement(pe.default,{style:[Me.fileAttachmentContainer,Xe,Re.fileAttachmentContainer]},ie.default.createElement(le,{mimeType:ot.mime_type,size:me})):st?ie.default.createElement(se.default,{onError:function onError(){return Fe(!0)},source:{uri:ot.image_url||ot.thumb_url||ot.og_scrape_url},style:[Me.imageAttachment,et,Re.imageAttachment]}):null:null,ie.default.createElement(he.MessageTextContainer,{markdownStyles:(0,ne.default)({text:Me.text},tt),message:(0,ne.default)({},ye,{text:ye.text?ye.text.length>170?ye.text.slice(0,170)+"...":ye.text:"image"===it?Se("Photo"):"file"===it&&(null==ot?void 0:ot.title)||""}),onlyEmojis:dt,styles:{textContainer:[{marginRight:st?Number((null==(E=Re.imageAttachment)?void 0:E.height)||et.height||Me.imageAttachment.height)+Number((null==(P=Re.imageAttachment)?void 0:P.marginLeft)||et.marginLeft||Me.imageAttachment.marginLeft):"file"===it?me+Number((null==(q=Re.fileAttachmentContainer)?void 0:q.paddingLeft)||Xe.paddingLeft||Me.fileAttachmentContainer.paddingLeft):void 0},Me.textContainer,rt,Re.textContainer]}})))}),(function areEqual(y,w){var E=y.quotedMessage,P=w.quotedMessage;return!!(E&&P&&"boolean"!=typeof E&&"boolean"!=typeof P?E.id===P.id:!!E==!!P)})),Ae=function Reply(y){var w=(0,ve.useMessageContext)().message,E=(0,ye.useMessagesContext)(),P=E.FileAttachmentIcon,q=void 0===P?ge.FileIcon:P,oe=E.MessageAvatar,se=void 0===oe?me.MessageAvatar:oe,le=(0,_e.useMessageInputContext)(),pe=le.editing,he=le.quotedMessage,we="boolean"!=typeof pe&&(null==pe?void 0:pe.quoted_message)||!1,ke=(0,Re.useTranslationContext)().t;return ie.default.createElement(Se,(0,ne.default)({FileAttachmentIcon:q,MessageAvatar:se,quotedMessage:w?w.quoted_message:he||we,t:ke},y))};w.Reply=Ae,Ae.displayName="Reply{reply}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ChannelList=void 0;var ne=q(E(19)),oe=P(E(0)),ie=E(582),se=E(583),le=E(584),pe=E(1077),ge=E(270),me=E(586),he=E(596),ve=E(597),ye=E(598),_e=E(599),Re=E(600),we=E(601),ke=E(602),Me=E(603),Se=E(604),Ae=E(605),Te=E(606),Oe=E(607),Fe=E(394),je=E(263),Be=E(264),Ve=E(177),Ne={},Ue={},We={};w.ChannelList=function ChannelList(y){var w=y.additionalFlatListProps,E=void 0===w?{}:w,P=y.EmptyStateIndicator,q=void 0===P?je.EmptyStateIndicator:P,$e=y.FooterLoadingIndicator,Ye=void 0===$e?se.ChannelListFooterLoadingIndicator:$e,Xe=y.filters,et=void 0===Xe?Ne:Xe,tt=y.HeaderErrorIndicator,nt=void 0===tt?ie.ChannelListHeaderErrorIndicator:tt,rt=y.HeaderNetworkDownIndicator,ot=void 0===rt?le.ChannelListHeaderNetworkDownIndicator:rt,it=y.List,st=void 0===it?ge.ChannelListMessenger:it,dt=y.ListHeaderComponent,ct=y.LoadingErrorIndicator,lt=void 0===ct?Be.LoadingErrorIndicator:ct,ut=y.LoadingIndicator,pt=void 0===ut?pe.ChannelListLoadingIndicator:ut,gt=y.loadMoreThreshold,mt=void 0===gt?2:gt,ht=y.lockChannelOrder,ft=void 0!==ht&&ht,vt=y.maxUnreadCount,yt=void 0===vt?255:vt,bt=y.numberOfSkeletons,_t=void 0===bt?6:bt,Rt=y.onAddedToChannel,xt=y.onChannelDeleted,Ct=y.onChannelHidden,wt=y.onChannelTruncated,kt=y.onChannelUpdated,Mt=y.onMessageNew,St=y.onRemovedFromChannel,Et=y.onSelect,Dt=y.options,At=void 0===Dt?Ue:Dt,Pt=y.Preview,Tt=void 0===Pt?Fe.ChannelPreviewMessenger:Pt,Lt=y.PreviewAvatar,It=y.PreviewMessage,Ot=y.PreviewStatus,Ft=y.PreviewTitle,zt=y.PreviewUnreadCount,jt=y.setFlatListRef,Bt=y.Skeleton,Vt=void 0===Bt?Oe.Skeleton:Bt,Nt=y.sort,Ht=void 0===Nt?We:Nt,Ut=(0,oe.useState)(0),Gt=(0,ne.default)(Ut,2),qt=Gt[0],Wt=Gt[1],Kt=(0,Se.usePaginatedChannels)({filters:et,options:At,sort:Ht}),$t=Kt.channels,Yt=Kt.error,Xt=Kt.hasNextPage,Jt=Kt.loadingChannels,Qt=Kt.loadingNextPage,Zt=Kt.loadNextPage,en=Kt.refreshing,tn=Kt.refreshList,nn=Kt.reloadList,an=Kt.setChannels;(0,me.useAddedToChannelNotification)({onAddedToChannel:Rt,setChannels:an}),(0,he.useChannelDeleted)({onChannelDeleted:xt,setChannels:an}),(0,ve.useChannelHidden)({onChannelHidden:Ct,setChannels:an}),(0,ye.useChannelTruncated)({onChannelTruncated:wt,refreshList:tn,setChannels:an,setForceUpdate:Wt}),(0,_e.useChannelUpdated)({onChannelUpdated:kt,setChannels:an}),(0,Re.useConnectionRecovered)({refreshList:tn,setForceUpdate:Wt}),(0,we.useNewMessage)({lockChannelOrder:ft,setChannels:an}),(0,ke.useNewMessageNotification)({onMessageNew:Mt,setChannels:an}),(0,Ae.useRemovedFromChannelNotification)({onRemovedFromChannel:St,setChannels:an}),(0,Te.useUserPresence)({setChannels:an});var rn=(0,Me.useCreateChannelsContext)({additionalFlatListProps:E,channels:$t,EmptyStateIndicator:q,error:Yt,FooterLoadingIndicator:Ye,forceUpdate:qt,hasNextPage:Xt,HeaderErrorIndicator:nt,HeaderNetworkDownIndicator:ot,ListHeaderComponent:dt,loadingChannels:Jt,LoadingErrorIndicator:lt,LoadingIndicator:pt,loadingNextPage:Qt,loadMoreThreshold:mt,loadNextPage:Zt,maxUnreadCount:yt,numberOfSkeletons:_t,onSelect:Et,Preview:Tt,PreviewAvatar:Lt,PreviewMessage:It,PreviewStatus:Ot,PreviewTitle:Ft,PreviewUnreadCount:zt,refreshing:en,refreshList:tn,reloadList:nn,setFlatListRef:function setFlatListRef(y){jt&&jt(y)},Skeleton:Vt});return oe.default.createElement(Ve.ChannelsProvider,{value:rn},oe.default.createElement(st,null))}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ChannelPreview=void 0;var ne=q(E(5)),oe=q(E(19)),ie=P(E(0)),se=E(585),le=E(30),pe=E(177),ge=function ChannelPreviewWithContext(y){var w=y.channel,E=y.client,P=y.Preview,q=(0,ie.useState)(w.state.messages[w.state.messages.length-1]),ne=(0,oe.default)(q,2),le=ne[0],pe=ne[1],ge=(0,ie.useState)(0),me=(0,oe.default)(ge,2),he=me[0],ve=me[1],ye=(0,ie.useState)(w.countUnread()),_e=(0,oe.default)(ye,2),Re=_e[0],we=_e[1],ke=(0,se.useLatestMessagePreview)(w,he,le),Me=w.lastMessage(),Se=""+(null==Me?void 0:Me.id)+(null==Me?void 0:Me.updated_at);return(0,ie.useEffect)((function(){!Me||Me.id===(null==le?void 0:le.id)&&Me.updated_at===(null==le?void 0:le.updated_at)||pe(Me);var y=w.countUnread();y!==Re&&we(y)}),[Se]),(0,ie.useEffect)((function(){var y=function handleEvent(y){y.message&&pe(y.message),"message.new"===y.type&&we(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,ie.useEffect)((function(){var y=function handleReadEvent(y){var w,P;(null==(w=y.user)?void 0:w.id)===E.userID?we(0):null!=(P=y.user)&&P.id&&ve((function(y){return y+1}))};return w.on("message.read",y),function(){return w.off("message.read",y)}}),[]),ie.default.createElement(P,{channel:w,latestMessagePreview:ke,unread:Re})};w.ChannelPreview=function ChannelPreview(y){var w=(0,le.useChatContext)().client,E=(0,pe.useChannelsContext)().Preview;return ie.default.createElement(ge,(0,ne.default)({client:w,Preview:E},y))}},function(y,w,E){var P=E(93),q=E(255),ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oe=/^\w*$/;y.exports=function isKey(y,w){if(P(y))return!1;var E=typeof y;return!("number"!=E&&"symbol"!=E&&"boolean"!=E&&null!=y&&!q(y))||(oe.test(y)||!ne.test(y)||null!=w&&y in Object(w))}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ChannelPreviewMessenger=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(7)),ie=P(E(8)),se=E(88),le=E(608),pe=E(611),ge=E(177),me=E(11),he=E(27),ve=E(612),ye=E(613),_e=E(614),Re=E(1104),we=oe.default.create({container:{borderBottomWidth:1,flex:1,flexDirection:"row",paddingHorizontal:8,paddingVertical:12},contentContainer:{flex:1},row:{alignItems:"center",flex:1,flexDirection:"row",justifyContent:"space-between",paddingLeft:8},title:{fontSize:14,fontWeight:"700"}}),ke=(0,he.vw)(80)-16-40,Me=ne.default.memo((function ChannelPreviewMessengerWithContext(y){var w=y.channel,E=y.formatLatestMessageDate,P=y.latestMessagePreview,q=y.maxUnreadCount,oe=y.onSelect,ge=y.PreviewAvatar,he=void 0===ge?le.ChannelAvatar:ge,Me=y.PreviewMessage,Se=void 0===Me?ye.ChannelPreviewMessage:Me,Ae=y.PreviewStatus,Te=void 0===Ae?_e.ChannelPreviewStatus:Ae,Oe=y.PreviewTitle,Fe=void 0===Oe?ve.ChannelPreviewTitle:Oe,je=y.PreviewUnreadCount,Be=void 0===je?Re.ChannelPreviewUnreadCount:je,Ve=y.unread,Ne=(0,me.useTheme)().theme,Ue=Ne.channelPreview,We=Ue.container,$e=Ue.contentContainer,Ye=Ue.row,Xe=Ue.title,et=Ne.colors,tt=et.border,nt=et.white_snow,rt=(0,pe.useChannelPreviewDisplayName)(w,Math.floor(ke/((Xe.fontSize||we.title.fontSize)/2)));return ne.default.createElement(se.TouchableOpacity,{onPress:function onPress(){oe&&oe(w)},style:[we.container,{backgroundColor:nt,borderBottomColor:tt},We],testID:"channel-preview-button"},ne.default.createElement(he,{channel:w}),ne.default.createElement(ie.default,{style:[we.contentContainer,$e]},ne.default.createElement(ie.default,{style:[we.row,Ye]},ne.default.createElement(Fe,{channel:w,displayName:rt}),ne.default.createElement(Be,{channel:w,maxUnreadCount:q,unread:Ve})),ne.default.createElement(ie.default,{style:[we.row,Ye]},ne.default.createElement(Se,{latestMessagePreview:P}),ne.default.createElement(Te,{channel:w,formatLatestMessageDate:E,latestMessagePreview:P}))))})),Se=function ChannelPreviewMessenger(y){var w=(0,ge.useChannelsContext)(),E=w.maxUnreadCount,P=w.onSelect,oe=w.PreviewAvatar,ie=w.PreviewMessage,se=w.PreviewStatus,le=w.PreviewTitle,pe=w.PreviewUnreadCount;return ne.default.createElement(Me,(0,q.default)({maxUnreadCount:E,onSelect:P,PreviewAvatar:oe,PreviewMessage:ie,PreviewStatus:se,PreviewTitle:le,PreviewUnreadCount:pe},y))};w.ChannelPreviewMessenger=Se,Se.displayName="ChannelPreviewMessenger{channelPreview}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useStreami18n=void 0;var q=P(E(5)),ne=P(E(19)),oe=E(0),ie=E(618);w.useStreami18n=function useStreami18n(y){var w=y.i18nInstance,E=y.setTranslators,P=(0,oe.useState)(!0),se=(0,ne.default)(P,2),le=se[0],pe=se[1],ge=!!w;return(0,oe.useEffect)((function(){var y;(y=w instanceof ie.Streami18n?w:new ie.Streami18n({language:"en"})).registerSetLanguageCallback((function(y){return E((function(w){return(0,q.default)({},w,{t:y})}))})),y.getTranslators().then((function(y){y&&E(y)})),pe(!1)}),[ge]),le}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.clamp=w.ImageGallery=w.IsSwiping=w.HasPinched=void 0;var ne,oe,ie=q(E(5)),se=q(E(34)),le=q(E(19)),pe=P(E(0)),ge=q(E(66)),me=q(E(116)),he=q(E(56)),ve=q(E(7)),ye=q(E(262)),_e=E(88),Re=P(E(58)),we=E(626),ke=E(627),Me=E(628),Se=E(629),Ae=E(630),Te=E(631),Oe=E(205),Fe=E(106),je=E(11),Be=E(84),Ve=E(27),Ne="android"===he.default.OS,Ue=(0,Ve.vh)(100),We=(0,Ve.vh)(50),$e=(0,Ve.vh)(25),Ye=(0,Ve.vw)(100),Xe=(0,Ve.vw)(50);w.HasPinched=ne,function(y){y[y.FALSE=0]="FALSE",y[y.TRUE=1]="TRUE"}(ne||(w.HasPinched=ne={})),w.IsSwiping=oe,function(y){y[y.UNDETERMINED=0]="UNDETERMINED",y[y.TRUE=1]="TRUE",y[y.FALSE=2]="FALSE"}(oe||(w.IsSwiping=oe={}));var et=function ImageGallery(y){var w,E=y.imageGalleryCustomComponents,P=y.imageGalleryGridHandleHeight,q=y.imageGalleryGridSnapPoints,he=y.numberOfImageGalleryGridColumns,et=y.overlayOpacity,rt=y.visible,ot=(0,je.useTheme)().theme,it=ot.colors.white_snow,st=ot.imageGallery.backgroundColor,dt=(0,Fe.useOverlayContext)(),ct=dt.overlay,lt=dt.setBlurType,ut=dt.setOverlay,pt=(0,Oe.useImageGalleryContext)(),gt=pt.image,mt=pt.images,ht=pt.setImage,ft=(0,pe.useRef)(null),vt=(0,pe.useState)(0),yt=(0,le.default)(vt,2),bt=yt[0],_t=yt[1],Rt=(0,Re.useSharedValue)(0),xt=(0,Re.useSharedValue)(0);(0,pe.useEffect)((function(){rt&&me.default.dismiss(),function fadeScreen(y){xt.value=(0,Re.withTiming)(y?1:0,{duration:250,easing:Re.Easing.out(Re.Easing.ease)})}(rt)}),[rt]);var Ct=(0,pe.useState)((0,Ve.vh)(100)),wt=(0,le.default)(Ct,2),kt=wt[0],Mt=wt[1],St=(0,pe.useState)(0),Et=(0,le.default)(St,2),Dt=Et[0],At=Et[1],Pt=(0,Re.useSharedValue)(0),Tt=(0,Re.useSharedValue)(1),Lt=(0,Re.useSharedValue)(1),It=(0,Re.useSharedValue)(0),Ot=(0,pe.useRef)(null),Ft=(0,pe.useRef)(null),zt=(0,pe.useRef)(null),jt=(0,pe.useRef)(null),Bt=(0,Re.useSharedValue)(0),Vt=(0,Re.useSharedValue)(0),Nt=(0,Re.useSharedValue)(0),Ht=(0,Re.useSharedValue)(0),Ut=(0,Re.useSharedValue)(1),Gt=(0,Re.useSharedValue)(1),qt=(0,Re.useSharedValue)(0),Wt=(0,Re.useSharedValue)(0),Kt=(0,Re.useSharedValue)(0),$t=(0,Re.useSharedValue)(0),Yt=(0,Re.useSharedValue)(0),Xt=(0,Re.useSharedValue)(0),Jt=(0,Re.useSharedValue)(0),Qt=(0,Re.useSharedValue)(0),Zt=(0,Re.useSharedValue)(0),en=(0,Re.useSharedValue)(0),tn=(0,Re.useSharedValue)(0),nn=(0,Re.useSharedValue)(0),an=(0,Re.useSharedValue)(0),rn=(0,Re.useSharedValue)(0),sn=(0,Re.useSharedValue)(0),dn=(0,Re.useSharedValue)(!1),cn=(0,Re.useSharedValue)(0),ln=function resetTouchValues(){$t.value=0,Yt.value=0,Xt.value=0,Jt.value=0,Wt.value=0,Kt.value=0,Qt.value=0,Zt.value=0,rn.value=0,dn.value=!1,sn.value=oe.UNDETERMINED},un=function resetMovementValues(){Nt.value=0,Ht.value=0,Gt.value=1,Ut.value=1},pn=function resetVisibleValues(){ln(),un(),Tt.value=1,Bt.value=0,Vt.value=0,en.value=0,tn.value=0,nn.value=0,an.value=0};(0,pe.useEffect)((function(){rt||pn()}),[rt]);var gn=mt.reduce((function(y,w){var E,P=((null==(E=w.attachments)?void 0:E.filter((function(y){return"image"===y.type&&!y.title_link&&!y.og_scrape_url&&(y.image_url||y.thumb_url)})))||[]).map((function(y){return{created_at:w.created_at,id:"photoId-"+w.id+"-"+(y.image_url||y.thumb_url),messageId:w.id,uri:y.image_url||y.thumb_url||"",user:w.user,user_id:w.user_id}}));return[].concat((0,se.default)(y),(0,se.default)(P))}),[]),mn=gn.length;(0,pe.useEffect)((function(){var y=gn.findIndex((function(y){return y.messageId===(null==gt?void 0:gt.messageId)&&y.uri===(null==gt?void 0:gt.url)}));y>-1&&(Pt.value=y,qt.value=-(Ye+32)*y,At(y))}),[gt,mn]);var hn=null==(w=gn[Dt])?void 0:w.uri;(0,pe.useEffect)((function(){var y;Mt((0,Ve.vh)(100)),null!=(y=gn[Pt.value])&&y.uri&&ge.default.getSize(gn[Pt.value].uri,(function(y,w){var E=Math.floor(w*(Ye/y));Mt(E>Ue?Ue:E)}))}),[hn]);var vn=(0,Re.useAnimatedGestureHandler)({onActive:function onActive(y){if(1===y.numberOfPointers&&!dn.value){if(Ne&&cn.value===ne.TRUE&&(cn.value=ne.FALSE,sn.value,oe.FALSE,Bt.value=Nt.value+y.translationX,Vt.value=Ht.value-y.translationY),sn.value===oe.UNDETERMINED){var w=Ne?1:.25;Math.abs(y.translationX/y.translationY)>w&&(Math.abs(-Xe*(Gt.value-1)-Bt.value)<3||Math.abs(Xe*(Gt.value-1)-Bt.value)<3)&&(sn.value=oe.TRUE),Math.abs(y.translationY)>25&&(sn.value=oe.FALSE)}var E=Gt.value/Ut.value;Nt.value=Gt.value!==Ut.value?Bt.value*E-y.translationX:Bt.value-y.translationX,Ht.value=sn.value!==oe.TRUE?Gt.value!==Ut.value?Vt.value*E+y.translationY:Vt.value+y.translationY:Ht.value,Gt.value=kt*Ut.value0?Ut.value*(1-1/3*(Ht.value/Ue)):kt*Ut.value>Ue&&Ht.value>kt/2*Ut.value-We?Ut.value*(1-1/3*((Ht.value-(kt/2*Ut.value-We))/Ue)):Gt.value,et.value=E}},onFinish:function onFinish(y){if(!dn.value&&y.numberOfPointers<2){var w=y.translationX-.3*y.velocityX,E=y.translationY+.1*y.velocityY;Pt.value0&&Math.abs(-Xe*(Gt.value-1)+Bt.value)<3&&Nt.value>0&&w>Xe&&sn.value===oe.TRUE&&((0,Re.cancelAnimation)(qt),qt.value=(0,Re.withTiming)(-(Ye+32)*(Pt.value-1),{duration:200,easing:Re.Easing.out(Re.Easing.ease)},(function(){un(),Pt.value=Pt.value-1,(0,Re.runOnJS)(At)(Pt.value)}))),Nt.value=Gt.value<1?(0,Re.withTiming)(0):Nt.value>Xe*(Gt.value-1)?(0,Re.withTiming)(Xe*(Gt.value-1),{duration:200}):Nt.value<-Xe*(Gt.value-1)?(0,Re.withTiming)(-Xe*(Gt.value-1),{duration:200}):(0,Re.withDecay)({clamp:[-Xe*(Gt.value-1),Xe*(Gt.value-1)],deceleration:.99,velocity:-y.velocityX}),Ht.value=kt*Gt.valuekt/2*Gt.value-We?(0,Re.withTiming)(kt/2*Gt.value-We):Ht.value<-kt/2*Gt.value+We?(0,Re.withTiming)(-kt/2*Gt.value+We):(0,Re.withDecay)({clamp:[-kt/2*Gt.value+We,kt/2*Gt.value-We],deceleration:.99,velocity:y.velocityY}),ln(),Gt.value=Gt.value!==Ut.value?(0,Re.withTiming)(Ut.value):Ut.value,!(E>We&&Vt.value+8>=kt/2*Gt.value-We&&sn.value!==oe.TRUE&&0!==Ht.value)||Math.abs(Xe*(Gt.value-1)+Bt.value)<3&&Nt.value<0&&w<-Xe||Math.abs(-Xe*(Gt.value-1)+Bt.value)<3&&Nt.value>0&&w>Xe||((0,Re.cancelAnimation)(Nt),(0,Re.cancelAnimation)(Ht),(0,Re.cancelAnimation)(Gt),et.value=(0,Re.withTiming)(0,{duration:200,easing:Re.Easing.out(Re.Easing.ease)},(function(){xt.value=0,(0,Re.runOnJS)(ut)("none"),(0,Re.runOnJS)(lt)(void 0)})),Gt.value=(0,Re.withTiming)(.6,{duration:200,easing:Re.Easing.out(Re.Easing.ease)}),Ht.value=y.velocityY>1e3?(0,Re.withDecay)({velocity:y.velocityY}):(0,Re.withTiming)(We+kt/2*Gt.value,{duration:200,easing:Re.Easing.out(Re.Easing.ease)}),Nt.value=(0,Re.withDecay)({velocity:-y.velocityX}))}},onStart:function onStart(){dn.value||((0,Re.cancelAnimation)(Nt),(0,Re.cancelAnimation)(Ht),(0,Re.cancelAnimation)(Gt),Bt.value=Nt.value,Vt.value=Ht.value),cn.value=ne.FALSE}},[kt,mn]),yn=(0,Re.useAnimatedGestureHandler)({onActive:function onActive(y){!dn.value&&Ne&&(cn.value=ne.TRUE,(0,Re.cancelAnimation)(Nt),(0,Re.cancelAnimation)(Ht),(0,Re.cancelAnimation)(Gt),sn.value=oe.UNDETERMINED,rn.value=y.numberOfPointers,Bt.value=Nt.value,Vt.value=Ht.value,en.value=y.focalX-(Xe-Bt.value),tn.value=y.focalY-(We+Vt.value),Wt.value=en.value,Kt.value=tn.value,Ut.value=Gt.value),dn.value=!0,Gt.value=tt(Ut.value*y.scale,1,8);var w=Gt.value/Ut.value;8!==Gt.value&&1!==Gt.value?(It.value=0,Lt.value=0):8===Gt.value&&0===It.value?(It.value=1,(0,Re.runOnJS)(Be.triggerHaptic)("impactLight")):1===Gt.value&&0===Lt.value&&(Lt.value=1,(0,Re.runOnJS)(Be.triggerHaptic)("impactLight")),en.value=y.focalX-(Xe-Bt.value),tn.value=y.focalY-(We+Vt.value),rn.value!==y.numberOfPointers&&(rn.value=y.numberOfPointers,1===y.numberOfPointers?(Qt.value=Xt.value-en.value,Zt.value=Jt.value-tn.value):rn.value>1&&(Wt.value=Wt.value-(Xt.value/w-en.value/w),Kt.value=Kt.value-(Jt.value/w-tn.value/w))),1===rn.value?(Xt.value=en.value+Qt.value,Jt.value=tn.value+Zt.value,Nt.value=Bt.value-Xt.value+w*Wt.value,Ht.value=Vt.value+Jt.value-w*Kt.value):rn.value>1&&(Xt.value=en.value,Jt.value=tn.value,Nt.value=Bt.value-en.value+w*Wt.value,Ht.value=Vt.value+tn.value-w*Kt.value)},onFinish:function onFinish(){dn.value&&(Nt.value=Gt.value<1?(0,Re.withTiming)(0):Nt.value>Xe*(Gt.value-1)?(0,Re.withTiming)(Xe*(Gt.value-1)):Nt.value<-Xe*(Gt.value-1)?(0,Re.withTiming)(-Xe*(Gt.value-1)):Nt.value,Ht.value=kt*Gt.valuekt/2*Gt.value-Ue/2?(0,Re.withTiming)(kt/2*Gt.value-Ue/2):Ht.value<-kt/2*Gt.value+Ue/2?(0,Re.withTiming)(-kt/2*Gt.value+Ue/2):Ht.value,Ut.value=Gt.value<1?1:Gt.value,Gt.value=Gt.value<1?(0,Re.withTiming)(1):Gt.value,ln())},onStart:function onStart(y){Ne||((0,Re.cancelAnimation)(Nt),(0,Re.cancelAnimation)(Ht),(0,Re.cancelAnimation)(Gt),dn.value=!0,sn.value=oe.UNDETERMINED,rn.value=y.numberOfPointers,Bt.value=Nt.value,Vt.value=Ht.value,en.value=y.focalX-(Xe-Bt.value),tn.value=y.focalY-(We+Vt.value),Wt.value=en.value,Kt.value=tn.value,Ut.value=Gt.value),cn.value=ne.FALSE}},[kt]),bn=(0,Re.useAnimatedGestureHandler)({onActive:function onActive(){(0,Re.cancelAnimation)(Tt),Tt.value=Tt.value>0?(0,Re.withTiming)(0):(0,Re.withTiming)(1)}}),_n=(0,Re.useAnimatedGestureHandler)({onActive:function onActive(y){if(Math.abs(nn.value-y.absoluteX)<64&&Math.abs(an.value-y.absoluteY)<64)if(1===Ut.value&&0===Bt.value&&0===Vt.value){if(Ut.value=2,Gt.value=(0,Re.withTiming)(2,{duration:200,easing:Re.Easing.out(Re.Easing.ease)}),Nt.value=(0,Re.withTiming)(y.absoluteX-Xe,{duration:200,easing:Re.Easing.out(Re.Easing.ease)}),2*kt>Ue){var w=y.absoluteY>We?-(2*kt-Ue)/2:(2*kt-Ue)/2;Ht.value=(0,Re.withTiming)(w,{duration:200,easing:Re.Easing.out(Re.Easing.ease)})}}else Ut.value=1,Gt.value=(0,Re.withTiming)(1,{duration:200,easing:Re.Easing.out(Re.Easing.ease)}),Bt.value=0,Vt.value=0,Nt.value=(0,Re.withTiming)(0,{duration:200,easing:Re.Easing.out(Re.Easing.ease)}),Ht.value=(0,Re.withTiming)(0,{duration:200,easing:Re.Easing.out(Re.Easing.ease)}),0!==Tt.value&&((0,Re.cancelAnimation)(Tt),Tt.value=(0,Re.withTiming)(0))},onStart:function onStart(y){nn.value=y.absoluteX,an.value=y.absoluteY}}),Rn=(0,Re.useDerivedValue)((function(){return kt*Gt.value0?1-Ht.value/$e:kt*Gt.value>Ue&&Ht.value>kt/2*Gt.value-We?1-(Ht.value-(kt/2*Gt.value-We))/$e:1}),[kt]),xn=(0,Re.useAnimatedStyle)((function(){return{transform:[{scaleX:-1},{translateX:qt.value}]}}),[rt]),Cn=(0,Re.useAnimatedStyle)((function(){return{backgroundColor:st||it,opacity:Rn.value}}),[Rn]),wn=(0,Re.useAnimatedStyle)((function(){return{opacity:(0,Re.interpolate)(xt.value,[0,.01,1],[0,1,1]),transform:[{translateY:(0,Re.interpolate)(xt.value,[0,1],[Ue,0])}]}}),[]),kn=function closeGridView(){ft.current&&ft.current.close()};return pe.default.createElement(Re.default.View,{pointerEvents:rt?"auto":"none",style:[ve.default.absoluteFillObject,wn]},pe.default.createElement(Re.default.View,{style:[ve.default.absoluteFillObject,Cn]}),pe.default.createElement(_e.TapGestureHandler,{minPointers:1,numberOfTaps:1,onGestureEvent:bn,ref:jt,waitFor:[Ft,zt,Ot]},pe.default.createElement(Re.default.View,{style:ve.default.absoluteFillObject},pe.default.createElement(_e.TapGestureHandler,{maxDeltaX:8,maxDeltaY:8,maxDist:8,minPointers:1,numberOfTaps:2,onGestureEvent:_n,ref:Ot},pe.default.createElement(Re.default.View,{style:ve.default.absoluteFillObject},pe.default.createElement(_e.PinchGestureHandler,{onGestureEvent:yn,ref:zt,simultaneousHandlers:[Ft]},pe.default.createElement(Re.default.View,{style:ve.default.absoluteFill},pe.default.createElement(_e.PanGestureHandler,{enabled:"gallery"===ct,maxPointers:Ne?void 0:1,minDist:10,onGestureEvent:vn,ref:Ft,simultaneousHandlers:[zt]},pe.default.createElement(Re.default.View,{style:ve.default.absoluteFill},pe.default.createElement(Re.default.View,{style:[nt.animatedContainer,xn,{transform:[{scaleX:-1},{translateX:qt.value}]}]},gn.map((function(y,w){return pe.default.createElement(we.AnimatedGalleryImage,{index:w,key:y.uri+"-"+w,offsetScale:Ut,photo:y,previous:Dt>w,scale:Gt,selected:Dt===w,shouldRender:Math.abs(Dt-w)<4,style:{height:8*Ue,marginRight:32,width:8*Ye},translateX:Nt,translateY:Ht})}))))))))))),pe.default.createElement(Me.ImageGalleryHeader,(0,ie.default)({opacity:Rn,photo:gn[Dt],visible:Tt},null==E?void 0:E.header)),pe.default.createElement(ke.ImageGalleryFooter,(0,ie.default)({opacity:Rn,openGridView:function openGridView(){ft.current&&ft.current.snapTo(1)},photo:gn[Dt],photoLength:mn,selectedIndex:Dt,visible:Tt},null==E?void 0:E.footer)),pe.default.createElement(Se.ImageGalleryOverlay,{animatedBottomSheetIndex:Rt,closeGridView:kn,currentBottomSheetIndex:bt}),pe.default.createElement(ye.default,{animatedPositionIndex:Rt,handleComponent:function handleComponent(){return pe.default.createElement(Te.ImageGridHandle,(0,ie.default)({closeGridView:kn},null==E?void 0:E.gridHandle))},handleHeight:null!=P?P:40,initialSnapIndex:0,onChange:function onChange(y){return _t(y)},ref:ft,snapPoints:q||[0,(0,Ve.vh)(90)]},pe.default.createElement(Ae.ImageGrid,(0,ie.default)({closeGridView:kn,numberOfImageGalleryGridColumns:he,photos:gn,resetVisibleValues:pn,setImage:ht},null==E?void 0:E.grid))))};w.ImageGallery=et;var tt=function clamp(y,w,E){return Math.min(Math.max(w,y),E)};w.clamp=tt;var nt=ve.default.create({animatedContainer:{alignItems:"center",flexDirection:"row"}});et.displayName="ImageGallery{imageGallery}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageInput=void 0;var ne=q(E(5)),oe=q(E(34)),ie=q(E(19)),se=P(E(0)),le=q(E(7)),pe=q(E(17)),ge=q(E(36)),me=q(E(8)),he=E(350),ve=E(356),ye=E(363),_e=E(117),Re=E(95),we=E(94),ke=E(40),Me=E(173),Se=E(11),Ae=E(26),Te=E(42);function _createForOfIteratorHelperLoose(y,w){var E;if("undefined"==typeof Symbol||null==y[Symbol.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 P=0;return function(){return P>=y.length?{done:!0}:{done:!1,value:y[P++]}}}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[Symbol.iterator]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);Etn)Xt.filter((function(y){return!Ve.find((function(w){return w.file.uri===y.uri||w.url===y.uri}))})).forEach((function(y){return ft(y)}));else if(enen&&Zt(Ve.map((function(y){return{height:y.file.height,source:y.file.source,uri:y.url,width:y.file.width}})).filter(Boolean))}),[tn]);var nn=!!Me;(0,se.useEffect)((function(){Me&&Ue.current&&Ue.current.focus(),!Me&&(je||Fe.length>0||et.length>0||Ve.length>0||tt>0)&&it()}),[nn]);var an=E.join(),rn=Object.values(P).map((function(y){return""+y.state+y.url})).join();(0,se.useEffect)((function(){Object.keys(P).length&&(dt.current=!0,E.forEach((function(y){return ct(y)})),dt.current=!1)}),[an,rn,ct]);var sn=function getWatchers(){var y=[];return vt&&Object.values(vt).length&&y.push.apply(y,(0,oe.default)(Object.values(vt))),y},dn=(0,ne.default)({editable:!ke&&void 0},w);return se.default.createElement(se.default.Fragment,null,se.default.createElement(me.default,{onLayout:function onLayout(y){var w=y.nativeEvent.layout.height;return Rt(w)},style:[Oe.container,{backgroundColor:At,borderColor:Mt},Ft]},(Me||nt)&&se.default.createElement(me.default,{style:[Oe.editingBoxHeader,zt]},Me?se.default.createElement(Te.Edit,{pathFill:Et}):se.default.createElement(Te.CurveLineLeftUp,{pathFill:Et}),se.default.createElement(pe.default,{style:[Oe.editingBoxHeaderTitle,{color:kt},jt]},mt(Me?"Editing Message":"Reply to Message")),se.default.createElement(ge.default,{disabled:ke,onPress:function onPress(){it(),Me&&q(),nt&&le(),Ue.current&&Ue.current.blur()},testID:"close-button"},se.default.createElement(Te.CircleClose,{pathFill:St}))),se.default.createElement(me.default,{style:[Oe.composerContainer,Ot]},Ne?se.default.createElement(Ne,{additionalTextInputProps:dn,getUsers:function getUsers(){for(var y,w={},E=_createForOfIteratorHelperLoose([].concat((0,oe.default)(function getMembers(){var y=[];return Xe&&Object.values(Xe).length&&Object.values(Xe).forEach((function(w){w.user&&y.push(w.user)})),y}()),(0,oe.default)(sn())));!(y=E()).done;){var P=y.value;P&&!w[P.id]&&(w[P.id]=P)}return Object.values(w)}}):se.default.createElement(se.default.Fragment,null,se.default.createElement(me.default,{style:[Oe.optionsContainer,Ht]},We&&se.default.createElement(We,null)),se.default.createElement(me.default,{style:[Oe.inputBoxContainer,{borderColor:Dt,paddingVertical:je?8:12},Nt]},("boolean"!=typeof Me&&(null==Me?void 0:Me.quoted_message)||nt)&&se.default.createElement(me.default,{style:[Oe.replyContainer,Ut]},se.default.createElement(ot,null)),Fe.length?se.default.createElement(Ae,null):null,Ve.length?se.default.createElement(Be,null):null,se.default.createElement(me.default,{style:[Oe.autoCompleteInputContainer,{paddingLeft:je?8:16,paddingRight:je?10:16},It]},je&&se.default.createElement(me.default,{style:[Oe.giphyContainer,{backgroundColor:wt},Bt]},se.default.createElement(Te.Lightning,{height:16,pathFill:At,width:16}),se.default.createElement(pe.default,{style:[Oe.giphyText,{color:At},Vt]},"GIPHY")),se.default.createElement(ve.AutoCompleteInput,{additionalTextInputProps:w}),je&&se.default.createElement(ge.default,{disabled:ke,onPress:function onPress(){lt(!1)},testID:"close-button"},se.default.createElement(Te.CircleClose,{height:20,pathFill:St,width:20})))),se.default.createElement(me.default,{style:[Oe.sendButtonContainer,Gt]},se.default.createElement(st,{disabled:ke||dt.current||!$e()})))),se.default.createElement(ut,{threadList:ht})),we&&pt?se.default.createElement(me.default,{style:[Oe.suggestionsListContainer,{backgroundColor:At,bottom:_t},qt]},se.default.createElement(ye.SuggestionsList,{active:!!pt,componentType:we,suggestions:pt,suggestionsTitle:gt})):null,Jt&&se.default.createElement(me.default,{style:[{backgroundColor:Pt,height:(Kt?Kt+(null!=$t?$t:52):360)-(null!=Yt?Yt:0)},Lt]},se.default.createElement(he.AttachmentSelectionBar,null)))}),(function areEqual(y,w){var E=y.asyncUploads,P=y.disabled,q=y.editing,ne=y.fileUploads,oe=y.giphyActive,ie=y.imageUploads,se=y.isValidMessage,le=y.mentionedUsers,pe=y.quotedMessage,ge=y.sending,me=y.showMoreOptions,he=y.suggestions,ve=y.suggestionsTitle,ye=y.t,_e=y.threadList,Re=w.asyncUploads,we=w.disabled,ke=w.editing,Me=w.fileUploads,Se=w.giphyActive,Ae=w.imageUploads,Te=w.isValidMessage,Oe=w.mentionedUsers,Fe=w.quotedMessage,je=w.sending,Be=w.showMoreOptions,Ve=w.suggestions,Ne=w.suggestionsTitle,Ue=w.t,We=w.threadList;return ye===Ue&&(P===we&&(!!q==!!ke&&(ie.length===Ae.length&&(oe===Se&&((pe&&Fe&&"boolean"!=typeof pe&&"boolean"!=typeof Fe?pe.id===Fe.id:!!pe==!!Fe)&&(ge.current===je.current&&(me===Be&&(se()===Te()&&(!!Object.keys(E).every((function(y){return E[y].state===Re[y].state&&E[y].url===Re[y].url}))&&(ne.length===Me.length&&(le.length===Oe.length&&(!!(null!=he&&he.data&&null!=Ve&&Ve.data?he.data.length===Ve.data.length&&he.data.every((function(y,w){return y.name===Ve.data[w].name})):!!he==!!Ve)&&(ve===Ne&&!(_e!==We))))))))))))))})),je=function MessageInput(y){var w=(0,Re.useChannelContext)(),E=w.disabled,P=void 0!==E&&E,q=w.members,oe=w.watchers,ie=(0,we.useMessageInputContext)(),le=ie.additionalTextInputProps,pe=ie.asyncIds,ge=ie.asyncUploads,me=ie.clearEditingState,he=ie.clearQuotedMessageState,ve=ie.closeAttachmentPicker,ye=ie.editing,_e=ie.FileUploadPreview,Se=ie.fileUploads,Te=ie.giphyActive,Oe=ie.ImageUploadPreview,je=ie.imageUploads,Be=ie.Input,Ve=ie.inputBoxRef,Ne=ie.InputButtons,Ue=ie.isValidMessage,We=ie.maxNumberOfFiles,$e=ie.mentionedUsers,Ye=ie.numberOfUploads,Xe=ie.quotedMessage,et=ie.removeImage,tt=ie.resetInput,nt=ie.SendButton,rt=ie.sending,ot=ie.sendMessageAsync,it=ie.setGiphyActive,st=ie.showMoreOptions,dt=ie.ShowThreadMessageInChannelButton,ct=ie.uploadNewImage,lt=(0,ke.useMessagesContext)().Reply,ut=(0,Me.useSuggestionsContext)(),pt=ut.componentType,gt=ut.suggestions,mt=ut.suggestionsTitle,ht=(0,Ae.useTranslationContext)().t;return se.default.createElement(Fe,(0,ne.default)({additionalTextInputProps:le,asyncIds:pe,asyncUploads:ge,clearEditingState:me,clearQuotedMessageState:he,closeAttachmentPicker:ve,componentType:pt,disabled:P,editing:ye,FileUploadPreview:_e,fileUploads:Se,giphyActive:Te,ImageUploadPreview:Oe,imageUploads:je,Input:Be,inputBoxRef:Ve,InputButtons:Ne,isValidMessage:Ue,maxNumberOfFiles:We,members:q,mentionedUsers:$e,numberOfUploads:Ye,quotedMessage:Xe,removeImage:et,Reply:lt,resetInput:tt,SendButton:nt,sending:rt,sendMessageAsync:ot,setGiphyActive:it,showMoreOptions:st,ShowThreadMessageInChannelButton:dt,suggestions:gt,suggestionsTitle:mt,t:ht,uploadNewImage:ct,watchers:oe},y))};w.MessageInput=je,je.displayName="MessageInput{messageInput}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageActions=void 0;var ne=q(E(5)),oe=q(E(0)),ie=q(E(7)),se=q(E(17)),le=E(88),pe=P(E(58)),ge=E(176),me=E(11),he=E(27),ve=ie.default.create({bottomBorder:{borderBottomWidth:1},container:{borderRadius:16,marginTop:8,maxWidth:275},row:{alignItems:"center",flexDirection:"row",justifyContent:"flex-start",minWidth:(0,he.vw)(65),paddingHorizontal:20,paddingVertical:10},titleStyle:{paddingLeft:20}}),ye=oe.default.memo((function MessageAction(y){var w=y.action,E=y.icon,P=y.index,q=y.length,ie=y.title,ge=y.titleStyle,he=(0,me.useTheme)().theme.colors,ye=he.black,_e=he.border,Re=(0,pe.useSharedValue)(1),we=(0,pe.useAnimatedGestureHandler)({onEnd:function onEnd(){(0,pe.runOnJS)(w)()},onFinish:function onFinish(){Re.value=1},onStart:function onStart(){Re.value=.2}},[w]),ke=(0,pe.useAnimatedStyle)((function(){return{opacity:Re.value}}));return oe.default.createElement(le.TapGestureHandler,{onHandlerStateChange:we},oe.default.createElement(pe.default.View,{style:[ve.row,P!==q-1?(0,ne.default)({},ve.bottomBorder,{borderBottomColor:_e}):{},ke]},E,oe.default.createElement(se.default,{style:[ve.titleStyle,{color:ye},ge]},ie)))}),(function messageActionIsEqual(y,w){return y.length===w.length})),_e=oe.default.memo((function MessageActionsWithContext(y){var w=y.alignment,E=y.messageActions,P=y.showScreen,q=(0,me.useTheme)().theme.colors.white_snow,ie=(0,pe.useSharedValue)(0),se=(0,pe.useSharedValue)(0),le=(0,pe.useAnimatedStyle)((function(){return{transform:[{translateY:(0,pe.interpolate)(P.value,[0,1],[-ie.value/2,0])},{translateX:(0,pe.interpolate)(P.value,[0,1],["left"===w?-se.value/2:se.value/2,0])},{scale:P.value}]}}),[w]);return oe.default.createElement(pe.default.View,{onLayout:function onLayout(y){var w=y.nativeEvent.layout;se.value=w.width,ie.value=w.height},style:[ve.container,{backgroundColor:q},le]},null==E?void 0:E.map((function(y,w){return oe.default.createElement(ye,(0,ne.default)({key:y.title},(0,ne.default)({},y,{index:w,length:E.length})))})))}),(function areEqual(y,w){var E=y.messageActions,P=w.messageActions;return(null==E?void 0:E.length)===(null==P?void 0:P.length)}));w.MessageActions=function MessageActions(y){var w=(0,ge.useMessageOverlayContext)().data||{},E=w.alignment,P=w.messageActions;return oe.default.createElement(_e,(0,ne.default)({alignment:E,messageActions:P},y))}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageOverlay=void 0;var ne=q(E(5)),oe=q(E(19)),ie=P(E(0)),se=q(E(116)),le=q(E(56)),pe=q(E(208)),ge=q(E(7)),me=q(E(8)),he=P(E(58)),ve=E(88),ye=E(269),_e=E(210),Re=E(398),we=E(400),ke=E(176),Me=E(40),Se=E(106),Ae=E(11),Te=E(27),Oe=ge.default.create({alignEnd:{alignItems:"flex-end"},alignStart:{alignItems:"flex-start"},center:{flexGrow:1,justifyContent:"center"},containerInner:{borderTopLeftRadius:16,borderTopRightRadius:16,borderWidth:1,overflow:"hidden"},flex:{flex:1},overlayPadding:{padding:8},replyContainer:{flexDirection:"row",paddingHorizontal:8,paddingTop:8},row:{flexDirection:"row"},scrollView:{overflow:"ios"===le.default.OS?"visible":"scroll"}}),Fe=(0,Te.vh)(100),je=(0,Te.vh)(50),Be=ie.default.memo((function MessageOverlayWithContext(y){var w,E,P,q=y.alignment,ne=y.clientId,le=y.files,ke=y.groupStyles,Se=y.handleReaction,Be=y.images,Ve=y.message,Ne=y.messageActions,Ue=y.MessageActions,We=void 0===Ue?Re.MessageActions:Ue,$e=y.messageReactionTitle,Ye=y.messagesContext,Xe=y.onlyEmojis,et=y.otherAttachments,tt=y.overlay,nt=y.overlayOpacity,rt=y.OverlayReactionList,ot=void 0===rt?ye.OverlayReactionList:rt,it=y.OverlayReactions,st=void 0===it?we.OverlayReactions:it,dt=y.reset,ct=y.setOverlay,lt=y.threadList,ut=y.visible,pt=(0,Ae.useTheme)().theme,gt=pt.colors,mt=gt.blue_alice,ht=gt.grey_gainsboro,ft=gt.grey_whisper,vt=gt.transparent,yt=gt.white_smoke,bt=pt.messageSimple.content,_t=bt.container,Rt=_t.borderRadiusL,xt=_t.borderRadiusS,Ct=bt.containerInner,wt=bt.replyContainer,kt=null==Ye?void 0:Ye.myMessageTheme,Mt=(0,ie.useState)(JSON.stringify(kt)),St=(0,oe.default)(Mt,2),Et=St[0],Dt=St[1];(0,ie.useEffect)((function(){kt&&Dt(JSON.stringify(kt))}),[kt]);var At=(0,ie.useMemo)((function(){return(0,Ae.mergeThemes)({style:kt,theme:pt})}),[Et,pt]),Pt=(0,ie.useRef)(null),Tt=(0,he.useSharedValue)(0),Lt=(0,he.useSharedValue)({x:0,y:0},!1),It=(0,he.useSharedValue)(0),Ot=(0,he.useSharedValue)(0),Ft=(0,he.useSharedValue)(0),zt=(0,he.useSharedValue)(0),jt=(0,he.useSharedValue)(1),Bt=(0,he.useSharedValue)(0);(0,ie.useEffect)((function(){ut&&se.default.dismiss(),function fadeScreen(y){y&&(Ft.value=0,zt.value=0,jt.value=1),Bt.value=y?(0,he.withSpring)(1,{damping:600,mass:.5,restDisplacementThreshold:.01,restSpeedThreshold:.01,stiffness:200,velocity:32}):(0,he.withTiming)(0,{duration:150,easing:he.Easing.out(he.Easing.ease)},(function(){y||(0,he.runOnJS)(dt)()}))}(!!ut)}),[ut]);var Vt=(0,he.useAnimatedGestureHandler)({onActive:function onActive(y){zt.value=Ft.value+y.translationY,nt.value=(0,he.interpolate)(zt.value,[0,je],[1,.75],he.Extrapolate.CLAMP),jt.value=(0,he.interpolate)(zt.value,[0,je],[1,.85],he.Extrapolate.CLAMP)},onFinish:function onFinish(y){y.translationY+.1*y.velocityY>je&&zt.value>0?((0,he.cancelAnimation)(zt),nt.value=(0,he.withTiming)(0,{duration:200,easing:he.Easing.out(he.Easing.ease)},(function(){(0,he.runOnJS)(ct)("none")})),zt.value=y.velocityY>1e3?(0,he.withDecay)({velocity:y.velocityY}):(0,he.withTiming)(Fe,{duration:200,easing:he.Easing.out(he.Easing.ease)})):(zt.value=(0,he.withTiming)(0),jt.value=(0,he.withTiming)(1),nt.value=(0,he.withTiming)(1))},onStart:function onStart(){(0,he.cancelAnimation)(zt),Ft.value=zt.value}}),Nt=(0,he.useAnimatedStyle)((function(){return{transform:[{translateY:zt.value},{scale:jt.value}]}})),Ht=(0,he.useAnimatedStyle)((function(){return{transform:[{translateY:(0,he.interpolate)(Bt.value,[0,1],[Tt.value/2,0])},{translateX:(0,he.interpolate)(Bt.value,[0,1],["left"===q?-It.value/2:It.value/2,0])},{scale:Bt.value}]}}),[q]),Ut=q+"_"+((null==ke?void 0:ke[0])||"bottom").toLowerCase(),Gt=!(null==Ve||!Ve.reply_count),qt=Ye||{},Wt=qt.Attachment,Kt=qt.FileAttachmentGroup,$t=qt.Gallery,Yt=qt.MessageAvatar,Xt=qt.Reply,Jt=ne===(null==Ve||null==(w=Ve.user)?void 0:w.id)&&!!kt;return ie.default.createElement(Me.MessagesProvider,{value:Ye},ie.default.createElement(Ae.ThemeProvider,{mergedStyle:Jt?At:pt},ie.default.createElement(he.default.View,{pointerEvents:ut?"auto":"none",style:ge.default.absoluteFillObject},ie.default.createElement(ve.PanGestureHandler,{enabled:"message"===tt,maxPointers:1,minDist:10,onGestureEvent:Vt,waitFor:Pt},ie.default.createElement(he.default.View,{style:[ge.default.absoluteFillObject]},ie.default.createElement(pe.default,{style:Oe.flex},ie.default.createElement(ve.ScrollView,{alwaysBounceVertical:!1,contentContainerStyle:[Oe.center,{paddingTop:Ot.value}],ref:Pt,showsVerticalScrollIndicator:!1,style:[Oe.flex,Oe.scrollView]},ie.default.createElement(ve.TapGestureHandler,{maxDist:32,onHandlerStateChange:function onHandlerStateChange(y){y.nativeEvent.state===ve.State.END&&ct("none")},waitFor:Pt},ie.default.createElement(he.default.View,{style:[Oe.flex,Nt]},Ve&&ie.default.createElement(me.default,{style:[Oe.center,Oe.overlayPadding,"left"===q?Oe.alignStart:Oe.alignEnd]},Se?ie.default.createElement(ot,{messageLayout:Lt,ownReactionTypes:(null==Ve||null==(E=Ve.own_reactions)?void 0:E.map((function(y){return y.type})))||[],reactionListHeight:Ot,showScreen:Bt}):null,ie.default.createElement(he.default.View,{onLayout:function onLayout(y){var w=y.nativeEvent.layout,E=w.height,P=w.width,ne=w.x,oe=w.y;Lt.value={x:"left"===q?ne+P:ne,y:oe},It.value=P,Tt.value=E},style:[Oe.alignEnd,Oe.row,Ht]},"left"===q&&Yt&&ie.default.createElement(Yt,{alignment:q,message:Ve,showAvatar:!0}),ie.default.createElement(me.default,{style:[Oe.containerInner,{backgroundColor:Xe&&!Ve.quoted_message?vt:null!=et&&et.length?"giphy"===et[0].type?vt:mt:"left"===q?yt:ht,borderBottomLeftRadius:"left_bottom"!==Ut&&"left_single"!==Ut||Gt&&!lt?Rt:xt,borderBottomRightRadius:"right_bottom"!==Ut&&"right_single"!==Ut||Gt&&!lt?Rt:xt,borderColor:ft},Xe&&!Ve.quoted_message||null!=et&&et.length?{borderWidth:0}:{},Ct]},Ve.quoted_message&&Xt&&ie.default.createElement(me.default,{style:[Oe.replyContainer,wt]},ie.default.createElement(Xt,{quotedMessage:Ve.quoted_message,styles:{messageContainer:{maxWidth:(0,Te.vw)(60)}}})),null==Ye||null==(P=Ye.messageContentOrder)?void 0:P.map((function(y,w){switch(y){case"attachments":return null==et?void 0:et.map((function(y,w){return Wt&&ie.default.createElement(Wt,{attachment:y,key:Ve.id+"-"+w})}));case"files":return Kt&&ie.default.createElement(Kt,{files:le,key:"file_attachment_group_"+w,messageId:Ve.id});case"gallery":return $t&&ie.default.createElement($t,{alignment:q,groupStyles:ke,hasThreadReplies:!(null==Ve||!Ve.reply_count),images:Be,key:"gallery_"+w,messageId:Ve.id,messageText:Ve.text,preventPress:!0,threadList:lt});case"text":default:return null!=et&&et.length&&et[0].actions?null:ie.default.createElement(_e.MessageTextContainer,{key:"message_text_container_"+w,message:Ve,onlyEmojis:Xe})}})))),Ne&&ie.default.createElement(We,{showScreen:Bt}),$e&&Ve.latest_reactions&&Ve.latest_reactions.length>0?ie.default.createElement(st,{alignment:q,reactions:Ve.latest_reactions.map((function(y){var w,E,P;return{alignment:ne&&ne===(null==(w=y.user)?void 0:w.id)?"right":"left",image:null==y||null==(E=y.user)?void 0:E.image,name:(null==y||null==(P=y.user)?void 0:P.name)||y.user_id||"",type:y.type}})),showScreen:Bt,title:$e}):null))))))))))}),(function areEqual(y,w){var E=y.alignment,P=y.message,q=y.messageReactionTitle,ne=y.visible,oe=w.alignment,ie=w.message,se=w.messageReactionTitle;return ne===w.visible&&(E===oe&&(q===se&&!!(Array.isArray(null==P?void 0:P.latest_reactions)&&Array.isArray(null==ie?void 0:ie.latest_reactions)?(null==P?void 0:P.latest_reactions.length)===(null==ie?void 0:ie.latest_reactions.length)&&(null==P?void 0:P.latest_reactions.every((function(y,w){var E;return y.type===(null==ie||null==(E=ie.latest_reactions)?void 0:E[w].type)}))):(null==P?void 0:P.latest_reactions)===(null==ie?void 0:ie.latest_reactions))))}));w.MessageOverlay=function MessageOverlay(y){var w=(0,ke.useMessageOverlayContext)(),E=w.data,P=w.MessageActions,q=w.OverlayReactionList,oe=w.OverlayReactions,se=w.reset,le=(0,Se.useOverlayContext)(),pe=le.overlay,ge=le.setOverlay,me={MessageActions:y.MessageActions||P,OverlayReactionList:y.OverlayReactionList||q||(null==E?void 0:E.OverlayReactionList),OverlayReactions:y.OverlayReactions||oe};return ie.default.createElement(Be,(0,ne.default)({},E||{},{overlay:pe,reset:se,setOverlay:ge},y,me))}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.OverlayReactions=void 0;var ne=q(E(0)),oe=q(E(123)),ie=q(E(7)),se=q(E(17)),le=q(E(157)),pe=q(E(8)),ge=P(E(58)),me=P(E(49)),he=E(131),ve=E(42),ye=E(11),_e=ie.default.create({avatarContainer:{padding:8},avatarInnerContainer:{alignSelf:"center"},avatarName:{fontSize:12,fontWeight:"700",paddingTop:6,textAlign:"center"},container:{alignItems:"center",borderRadius:16,marginTop:8,width:"100%"},flatListContainer:{paddingHorizontal:12,paddingVertical:8},reactionBubble:{alignItems:"center",borderRadius:24,justifyContent:"center",position:"absolute"},reactionBubbleBackground:{borderRadius:24,height:24,position:"absolute",width:24},title:{fontSize:16,fontWeight:"700",paddingTop:16}}),Re=[{Icon:ve.LoveReaction,type:"love"},{Icon:ve.ThumbsUpReaction,type:"like"},{Icon:ve.ThumbsDownReaction,type:"sad"},{Icon:ve.LOLReaction,type:"haha"},{Icon:ve.WutReaction,type:"wow"}],we=function ReactionIcon(y){var w,E=y.pathFill,P=y.size,q=y.supportedReactions,oe=y.type,ie=(null==(w=q.find((function(y){return y.type===oe})))?void 0:w.Icon)||ve.Unknown;return ne.default.createElement(ie,{height:P,pathFill:E,width:P})},ke=function OverlayReactions(y){var w=y.alignment,E=y.reactions,P=y.supportedReactions,q=void 0===P?Re:P,ve=y.showScreen,ke=y.title,Me=(0,ge.useSharedValue)(0),Se=(0,ge.useSharedValue)(0),Ae=(0,ye.useTheme)().theme,Te=Ae.colors,Oe=Te.accent_blue,Fe=Te.black,je=Te.grey_gainsboro,Be=Te.white,Ve=Ae.overlay,Ne=Ve.padding,Ue=Ve.reactions,We=Ue.avatarContainer,$e=Ue.avatarName,Ye=Ue.avatarSize,Xe=Ue.container,et=Ue.flatListContainer,tt=Ue.radius,nt=Ue.reactionBubble,rt=Ue.reactionBubbleBackground,ot=Ue.title,it=(0,le.default)().width,st=Math.floor((it-2*Ne-2*((Number(et.paddingHorizontal||0)||_e.flatListContainer.paddingHorizontal)+(Number(We.padding||0)||_e.avatarContainer.padding)))/(Ye+2*(Number(We.padding||0)||_e.avatarContainer.padding))),dt=(0,ge.useAnimatedStyle)((function(){return{transform:[{translateY:(0,ge.interpolate)(ve.value,[0,1],[-Me.value/2,0])},{translateX:(0,ge.interpolate)(ve.value,[0,1],["left"===w?-Se.value/2:Se.value/2,0])},{scale:ve.value}]}}),[w]);return ne.default.createElement(ge.default.View,{onLayout:function onLayout(y){var w=y.nativeEvent.layout;Se.value=w.width,Me.value=w.height},style:[_e.container,{backgroundColor:Be},Xe,dt]},ne.default.createElement(se.default,{style:[_e.title,{color:Fe},ot]},ke),ne.default.createElement(oe.default,{data:E,keyExtractor:function keyExtractor(y,w){return y.name+"_"+w},numColumns:st,renderItem:function renderItem(y){var w=y.item,E=w.alignment,P=void 0===E?"left":E,oe=w.image,le=w.name,ge=w.type,ve=Ye/2-Ye/(4*tt)*("left"===P?1:-1),ye=Ye-tt,Re="left"===P?ve-(Number(rt.width||0)||_e.reactionBubbleBackground.width)+tt:ve-tt,ke=ye-tt-(Number(rt.height||0)||_e.reactionBubbleBackground.height);return ne.default.createElement(pe.default,{style:[_e.avatarContainer,We]},ne.default.createElement(pe.default,{style:_e.avatarInnerContainer},ne.default.createElement(he.Avatar,{image:oe,name:le,size:Ye}),ne.default.createElement(pe.default,{style:[ie.default.absoluteFill]},ne.default.createElement(me.default,null,ne.default.createElement(me.Circle,{cx:ve-(2*tt-tt/4)*("left"===P?1:-1),cy:ye-2*tt-tt/4,fill:"left"===P?je:Be,r:2*tt,stroke:"left"===P?Be:je,strokeWidth:tt/2}),ne.default.createElement(me.Circle,{cx:ve,cy:ye,fill:"left"===P?je:Be,r:tt,stroke:"left"===P?Be:je,strokeWidth:tt/2})),ne.default.createElement(pe.default,{style:[_e.reactionBubbleBackground,{backgroundColor:"left"===P?je:Be,borderColor:"left"===P?Be:je,borderWidth:tt/2,left:Re,top:ke},rt]}),ne.default.createElement(pe.default,{style:[ie.default.absoluteFill]},ne.default.createElement(me.default,null,ne.default.createElement(me.Circle,{cx:ve-(2*tt-tt/4)*("left"===P?1:-1),cy:ye-2*tt-tt/4,fill:"left"===P?je:Be,r:2*tt-tt/2}))),ne.default.createElement(pe.default,{style:[_e.reactionBubble,{backgroundColor:"left"===P?je:Be,height:(nt.borderRadius||_e.reactionBubble.borderRadius)-tt/2,left:Re,top:ke,width:(nt.borderRadius||_e.reactionBubble.borderRadius)-tt/2},nt]},ne.default.createElement(we,{pathFill:Oe,size:(nt.borderRadius||_e.reactionBubble.borderRadius)/2,supportedReactions:q,type:ge})))),ne.default.createElement(se.default,{style:[_e.avatarName,{color:Fe},$e]},le))},style:[_e.flatListContainer,et]}))};w.OverlayReactions=ke,ke.displayName="OverlayReactions{overlay{reactions}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.OverlayProvider=void 0;var ne=q(E(5)),oe=q(E(19)),ie=P(E(0)),se=q(E(260)),le=q(E(7)),pe=q(E(157)),ge=q(E(107)),me=P(E(58)),he=E(117),ve=E(205),ye=E(176),_e=E(11),Re=E(26),we=E(345),ke=E(347),Me=E(346),Se=E(348),Ae=E(352),Te=E(353),Oe=E(354),Fe=E(355),je=E(396),Be=E(399),Ve=E(84),Ne=E(395),Ue=E(106);w.OverlayProvider=function OverlayProvider(y){var w=y.AttachmentPickerBottomSheetHandle,E=void 0===w?Me.AttachmentPickerBottomSheetHandle:w,P=y.attachmentPickerBottomSheetHandleHeight,q=y.attachmentPickerBottomSheetHeight,We=y.AttachmentPickerError,$e=void 0===We?ke.AttachmentPickerError:We,Ye=y.attachmentPickerErrorButtonText,Xe=y.AttachmentPickerErrorImage,et=void 0===Xe?Se.AttachmentPickerErrorImage:Xe,tt=y.attachmentPickerErrorText,nt=y.attachmentSelectionBarHeight,rt=y.bottomInset,ot=y.CameraSelectorIcon,it=void 0===ot?Ae.CameraSelectorIcon:ot,st=y.children,dt=y.closePicker,ct=void 0===dt?function(y){y.current&&y.current.close()}:dt,lt=y.FileSelectorIcon,ut=void 0===lt?Te.FileSelectorIcon:lt,pt=y.i18nInstance,gt=y.imageGalleryCustomComponents,mt=y.imageGalleryGridHandleHeight,ht=y.imageGalleryGridSnapPoints,ft=y.ImageOverlaySelectedComponent,vt=void 0===ft?Oe.ImageOverlaySelectedComponent:ft,yt=y.ImageSelectorIcon,bt=void 0===yt?Fe.ImageSelectorIcon:yt,_t=y.MessageActions,Rt=y.numberOfAttachmentImagesToLoadPerCall,xt=y.numberOfAttachmentPickerImageColumns,Ct=y.numberOfImageGalleryGridColumns,wt=y.openPicker,kt=void 0===wt?function(y){y.current?y.current.snapTo(0):console.warn("bottom and top insets must be set for the image picker to work correctly")}:wt,Mt=y.topInset,St=y.OverlayReactionList,Et=y.OverlayReactions,Dt=y.value,At={AttachmentPickerBottomSheetHandle:E,attachmentPickerBottomSheetHandleHeight:P,attachmentPickerBottomSheetHeight:q,AttachmentPickerError:$e,attachmentPickerErrorButtonText:Ye,AttachmentPickerErrorImage:et,attachmentPickerErrorText:tt,attachmentSelectionBarHeight:nt,ImageOverlaySelectedComponent:vt,numberOfAttachmentImagesToLoadPerCall:Rt,numberOfAttachmentPickerImageColumns:xt},Pt=(0,ie.useRef)(null),Tt=(0,ie.useState)({t:function t(y){return y},tDateTimeParser:function tDateTimeParser(y){return(0,ge.default)(y)}}),Lt=(0,oe.default)(Tt,2),It=Lt[0],Ot=Lt[1],Ft=(0,ie.useState)(),zt=(0,oe.default)(Ft,2),jt=zt[0],Bt=zt[1],Vt=(0,ie.useState)((null==Dt?void 0:Dt.overlay)||"none"),Nt=(0,oe.default)(Vt,2),Ht=Nt[0],Ut=Nt[1],Gt=(0,me.useSharedValue)(0),qt=(0,pe.default)(),Wt=qt.height,Kt=qt.width,$t=(0,Ne.useStreami18n)({i18nInstance:pt,setTranslators:Ot});(0,ie.useEffect)((function(){var y=se.default.addEventListener("hardwareBackPress",(function backAction(){return"none"!==Ht&&(Bt(void 0),Ut("none"),!0)}));return function(){return y.remove()}}),[Ht]),(0,ie.useEffect)((function(){Pt.current&&Pt.current.close(),(0,me.cancelAnimation)(Gt),Gt.value="none"!==Ht?(0,me.withTiming)(1):(0,me.withTiming)(0)}),[Ht]),(0,Ne.useStreami18n)({i18nInstance:pt,setTranslators:Ot});var Yt={attachmentPickerBottomSheetHeight:q,attachmentSelectionBarHeight:nt,bottomInset:rt,CameraSelectorIcon:it,closePicker:function closePicker(){return ct(Pt)},FileSelectorIcon:ut,ImageSelectorIcon:bt,openPicker:function openPicker(){return kt(Pt)},topInset:Mt},Xt=(0,me.useAnimatedStyle)((function(){return{opacity:Gt.value}}),[]),Jt={overlay:Ht,setBlurType:Bt,setOverlay:Ut,style:null==Dt?void 0:Dt.style};return $t?null:ie.default.createElement(Re.TranslationProvider,{value:It},ie.default.createElement(Ue.OverlayContext.Provider,{value:Jt},ie.default.createElement(ye.MessageOverlayProvider,null,ie.default.createElement(he.AttachmentPickerProvider,{value:Yt},ie.default.createElement(ve.ImageGalleryProvider,null,st,ie.default.createElement(_e.ThemeProvider,{style:Jt.style},ie.default.createElement(me.default.View,{pointerEvents:"none"===Ht?"none":"auto",style:[le.default.absoluteFill,Xt]},ie.default.createElement(Ve.BlurView,{blurType:jt,style:[le.default.absoluteFill,{height:Wt,width:Kt}]})),ie.default.createElement(Be.MessageOverlay,{MessageActions:_t,overlayOpacity:Gt,OverlayReactionList:St,OverlayReactions:Et,visible:"message"===Ht}),ie.default.createElement(je.ImageGallery,{imageGalleryCustomComponents:gt,imageGalleryGridHandleHeight:mt,imageGalleryGridSnapPoints:ht,numberOfImageGalleryGridColumns:Ct,overlayOpacity:Gt,visible:"gallery"===Ht}),ie.default.createElement(we.AttachmentPicker,(0,ne.default)({ref:Pt},At))))))))}},function(y,w,E){var P=E(85),q=E(403),ne=E(275),oe=E(178),ie=E(277),se=E(76),le=E(634),pe=Object.getOwnPropertyDescriptor;w.f=P?pe:function getOwnPropertyDescriptor(y,w){if(y=oe(y),w=ie(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){"use strict";var P={}.propertyIsEnumerable,q=Object.getOwnPropertyDescriptor,ne=q&&!P.call({1:2},1);w.f=ne?function propertyIsEnumerable(y){var w=q(this,y);return!!w&&w.enumerable}:P},function(y,w,E){var P=E(64),q=E(158);y.exports=function(y,w){try{q(P,y,w)}catch(E){P[y]=w}return w}},function(y,w,E){var P=E(64),q=E(404),ne="__core-js_shared__",oe=P[ne]||q(ne,{});y.exports=oe},function(y,w,E){var P,q,ne,oe=E(1126),ie=E(64),se=E(65),le=E(158),pe=E(76),ge=E(405),me=E(278),he=E(213),ve=ie.WeakMap;if(oe){var ye=ge.state||(ge.state=new ve),_e=ye.get,Re=ye.has,we=ye.set;P=function(y,w){return w.facade=y,we.call(ye,y,w),w},q=function(y){return _e.call(ye,y)||{}},ne=function(y){return Re.call(ye,y)}}else{var ke=me("state");he[ke]=!0,P=function(y,w){return w.facade=y,le(y,ke,w),w},q=function(y){return pe(y,ke)?y[ke]:{}},ne=function(y){return pe(y,ke)}}y.exports={set:P,get:q,has:ne,enforce:function(y){return ne(y)?q(y):P(y,{})},getterFor:function(y){return function(w){var E;if(!se(w)||(E=q(w)).type!==y)throw TypeError("Incompatible receiver, "+y+" required");return E}}}},function(y,w,E){var P=E(637),q=E(405);(y.exports=function(y,w){return q[y]||(q[y]=void 0!==w?w:{})})("versions",[]).push({version:"3.8.3",mode:P?"pure":"global",copyright:"© 2021 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 P=E(68);y.exports=function(){var y=P(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 P=E(35);y.exports=!!Object.getOwnPropertySymbols&&!P((function(){return!String(Symbol())}))},function(y,w,E){var P=E(212);y.exports=Array.isArray||function isArray(y){return"Array"==P(y)}},function(y,w,E){var P=E(35),q=E(77),ne=E(647),oe=q("species");y.exports=function(y){return ne>=51||!P((function(){var w=[];return(w.constructor={})[oe]=function(){return{foo:1}},1!==w[y](Boolean).foo}))}},function(y,w,E){var P={};P[E(77)("toStringTag")]="z",y.exports="[object z]"===String(P)},function(y,w,E){var P=E(118),q=/"/g;y.exports=function(y,w,E,ne){var oe=String(P(y)),ie="<"+w;return""!==E&&(ie+=" "+E+'="'+String(ne).replace(q,""")+'"'),ie+">"+oe+""}},function(y,w,E){var P=E(35);y.exports=function(y){return P((function(){var w=""[y]('"');return w!==w.toLowerCase()||w.split('"').length>3}))}},function(y,w,E){"use strict";var P=E(1140).charAt;y.exports=function(y,w,E){return w+(E?P(y,w).length:1)}},function(y,w,E){"use strict";var P=E(284),q=E(656),ne=E(68),oe=E(118),ie=E(1171),se=E(417),le=E(181),pe=E(285),ge=E(283),me=E(35),he=[].push,ve=Math.min,ye=4294967295,_e=!me((function(){return!RegExp(ye,"y")}));P("split",2,(function(y,w,E){var P;return P="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 P=String(oe(this)),ne=void 0===E?ye:E>>>0;if(0===ne)return[];if(void 0===y)return[P];if(!q(y))return w.call(P,y,ne);for(var ie,se,le,pe=[],me=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(y.sticky?"y":""),ve=0,_e=new RegExp(y.source,me+"g");(ie=ge.call(_e,P))&&!((se=_e.lastIndex)>ve&&(pe.push(P.slice(ve,ie.index)),ie.length>1&&ie.index=ne));)_e.lastIndex===ie.index&&_e.lastIndex++;return ve===P.length?!le&&_e.test("")||pe.push(""):pe.push(P.slice(ve)),pe.length>ne?pe.slice(0,ne):pe}:"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 q=oe(this),ne=null==w?void 0:w[y];return void 0!==ne?ne.call(w,q,E):P.call(String(q),w,E)},function(y,q){var oe=E(P,y,this,q,P!==w);if(oe.done)return oe.value;var ge=ne(y),me=String(this),he=ie(ge,RegExp),Re=ge.unicode,we=(ge.ignoreCase?"i":"")+(ge.multiline?"m":"")+(ge.unicode?"u":"")+(_e?"y":"g"),ke=new he(_e?ge:"^(?:"+ge.source+")",we),Me=void 0===q?ye:q>>>0;if(0===Me)return[];if(0===me.length)return null===pe(ke,me)?[me]:[];for(var Se=0,Ae=0,Te=[];Ae0,q=E&&E.length>0;return!P&&q?E[0]:P?w[0]:y},Me="NOT_RESPONDER",Se="RESPONDER_INACTIVE_PRESS_IN",Ae="RESPONDER_INACTIVE_PRESS_OUT",Te="RESPONDER_ACTIVE_PRESS_IN",Oe="RESPONDER_ACTIVE_PRESS_OUT",Fe="RESPONDER_ACTIVE_LONG_PRESS_IN",je="RESPONDER_ACTIVE_LONG_PRESS_OUT",Be="ERROR",Ve={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},Ne=_objectSpread({},Ve,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Ue=_objectSpread({},Ve,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),We=_objectSpread({},Ve,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),$e="DELAY",Ye="RESPONDER_GRANT",Xe="RESPONDER_RELEASE",et="RESPONDER_TERMINATED",tt="ENTER_PRESS_RECT",nt="LEAVE_PRESS_RECT",rt="LONG_PRESS_DETECTED",ot={NOT_RESPONDER:{DELAY:Be,RESPONDER_GRANT:Se,RESPONDER_RELEASE:Be,RESPONDER_TERMINATED:Be,ENTER_PRESS_RECT:Be,LEAVE_PRESS_RECT:Be,LONG_PRESS_DETECTED:Be},RESPONDER_INACTIVE_PRESS_IN:{DELAY:Te,RESPONDER_GRANT:Be,RESPONDER_RELEASE:Me,RESPONDER_TERMINATED:Me,ENTER_PRESS_RECT:Se,LEAVE_PRESS_RECT:Ae,LONG_PRESS_DETECTED:Be},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:Oe,RESPONDER_GRANT:Be,RESPONDER_RELEASE:Me,RESPONDER_TERMINATED:Me,ENTER_PRESS_RECT:Se,LEAVE_PRESS_RECT:Ae,LONG_PRESS_DETECTED:Be},RESPONDER_ACTIVE_PRESS_IN:{DELAY:Be,RESPONDER_GRANT:Be,RESPONDER_RELEASE:Me,RESPONDER_TERMINATED:Me,ENTER_PRESS_RECT:Te,LEAVE_PRESS_RECT:Oe,LONG_PRESS_DETECTED:Fe},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:Be,RESPONDER_GRANT:Be,RESPONDER_RELEASE:Me,RESPONDER_TERMINATED:Me,ENTER_PRESS_RECT:Te,LEAVE_PRESS_RECT:Oe,LONG_PRESS_DETECTED:Be},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:Be,RESPONDER_GRANT:Be,RESPONDER_RELEASE:Me,RESPONDER_TERMINATED:Me,ENTER_PRESS_RECT:Fe,LEAVE_PRESS_RECT:je,LONG_PRESS_DETECTED:Fe},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:Be,RESPONDER_GRANT:Be,RESPONDER_RELEASE:Me,RESPONDER_TERMINATED:Me,ENTER_PRESS_RECT:Fe,LEAVE_PRESS_RECT:je,LONG_PRESS_DETECTED:Be},error:{DELAY:Me,RESPONDER_GRANT:Se,RESPONDER_RELEASE:Me,RESPONDER_TERMINATED:Me,ENTER_PRESS_RECT:Me,LEAVE_PRESS_RECT:Me,LONG_PRESS_DETECTED:Me}},it={componentDidMount:function componentDidMount(){var y=this;this._touchableNode=Object(pe.a)(this),this._touchableNode&&this._touchableNode.addEventListener&&(this._touchableBlurListener=function(w){y._isTouchableKeyboardActive&&(y.state.touchable.touchState&&y.state.touchable.touchState!==Me&&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=Me,this.state.touchable.responderID=w,this._receiveSignal(Ye,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 P=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;P=isNaN(P)?370:P,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,y),P+E)},touchableHandleResponderRelease:function touchableHandleResponderRelease(y){this.pressInLocation=null,this._receiveSignal(Xe,y)},touchableHandleResponderTerminate:function touchableHandleResponderTerminate(y){this.pressInLocation=null,this._receiveSignal(et,y)},touchableHandleResponderMove:function touchableHandleResponderMove(y){if(this.state.touchable.positionOnActivate){var w=this.state.touchable.positionOnActivate,E=this.state.touchable.dimensionsOnActivate,P=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},q=P.left,ne=P.top,oe=P.right,ie=P.bottom,se=this.touchableGetHitSlop?this.touchableGetHitSlop():null;se&&(q+=se.left||0,ne+=se.top||0,oe+=se.right||0,ie+=se.bottom||0);var le=ke(y.nativeEvent),pe=le&&le.pageX,ge=le&&le.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(pe,ge,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(pe>w.left-q&&ge>w.top-ne&&pe=0||(q[E]=y[E]);return q}(it,["touchableHandleFocus","touchableHandleBlur"]));it.withoutDefaultFocusAndBlur=st;var dt={Mixin:it,TOUCH_TARGET_DEBUG:!1,renderDebugView:function renderDebugView(y){var w=y.color,E=y.hitSlop;if(!dt.TOUCH_TARGET_DEBUG)return null;var P={};for(var q in E=E||{top:0,bottom:0,left:0,right:0})P[q]=-E[q];var ne=me()(w);if("number"!=typeof ne)return null;var oe="#"+("00000000"+ne.toString(16)).substr(-8);return _e.a.createElement(we.default,{pointerEvents:"none",style:_objectSpread({position:"absolute",borderColor:oe.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:oe.slice(0,-2)+"0F"},P)})}};w.default=dt},function(y,w,E){"use strict";E.r(w);var P=E(56),q=E(32);function configureNext(y,w){P.default.isTesting||q.a.configureNextLayoutAnimation(y,null!=w?w:function(){},(function(){}))}function create(y,w,E){return{duration:y,create:{type:w,property:E},update:{type:w},delete:{type:w,property:E}}}var ne={easeInEaseOut:create(300,"easeInEaseOut","opacity"),linear:create(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}},oe={configureNext:configureNext,create:create,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig:function checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:ne,easeInEaseOut:configureNext.bind(null,ne.easeInEaseOut),linear:configureNext.bind(null,ne.linear),spring:configureNext.bind(null,ne.spring)};w.default=oe},function(y,w,E){"use strict";w.byteLength=function byteLength(y){var w=getLens(y),E=w[0],P=w[1];return 3*(E+P)/4-P},w.toByteArray=function toByteArray(y){var w,E,P=getLens(y),oe=P[0],ie=P[1],se=new ne(function _byteLength(y,w,E){return 3*(w+E)/4-E}(0,oe,ie)),le=0,pe=ie>0?oe-4:oe;for(E=0;E>16&255,se[le++]=w>>8&255,se[le++]=255&w;2===ie&&(w=q[y.charCodeAt(E)]<<2|q[y.charCodeAt(E+1)]>>4,se[le++]=255&w);1===ie&&(w=q[y.charCodeAt(E)]<<10|q[y.charCodeAt(E+1)]<<4|q[y.charCodeAt(E+2)]>>2,se[le++]=w>>8&255,se[le++]=255&w);return se},w.fromByteArray=function fromByteArray(y){for(var w,E=y.length,q=E%3,ne=[],oe=16383,ie=0,se=E-q;iese?se:ie+oe));1===q?(w=y[E-1],ne.push(P[w>>2]+P[w<<4&63]+"==")):2===q&&(w=(y[E-2]<<8)+y[E-1],ne.push(P[w>>10]+P[w>>4&63]+P[w<<2&63]+"="));return ne.join("")};for(var P=[],q=[],ne="undefined"!=typeof Uint8Array?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=0,se=oe.length;ie0)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 q,ne,oe=[],ie=w;ie>18&63]+P[ne>>12&63]+P[ne>>6&63]+P[63&ne]);return oe.join("")}q["-".charCodeAt(0)]=62,q["_".charCodeAt(0)]=63},function(y,w,E){var P=E(594);y.exports=function get(y,w,E){var q=null==y?void 0:P(y,w);return void 0===q?E:q}},function(y,w,E){var P=E(338);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,P=w?w.apply(this,E):E[0],q=memoized.cache;if(q.has(P))return q.get(P);var ne=y.apply(this,E);return memoized.cache=q.set(P,ne)||q,ne};return memoized.cache=new(memoize.Cache||P),memoized}memoize.Cache=P,y.exports=memoize},function(y,w,E){var P=E(565),q=E(271),ne=E(1160),oe=E(93);y.exports=function map(y,w){return(oe(y)?P:ne)(y,q(w,3))}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",(function(){return renderDefault}));var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(98),core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(21),core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(99),rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(163),_util__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(125),defaultValueBlacklist=["null","undefined"];function renderDefault(prop){if(prop.defaultValue){var defaultValueString=Object(_util__WEBPACK_IMPORTED_MODULE_5__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_5__.c)(String(prop.defaultValue.value)));if(prop.type||prop.flowType||prop.tsType){var propName=prop.type?prop.type.name:prop.flowType?prop.flowType.type:prop.tsType&&prop.tsType.type;if(defaultValueBlacklist.indexOf(prop.defaultValue.value)>-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 P=E(1051),q=E(1052),ne=E(532),oe=E(1053);y.exports=function _slicedToArray(y,w){return P(y)||q(y,w)||ne(y,w)||oe()},y.exports.default=y.exports,y.exports.__esModule=!0},function(y,w,E){"use strict";(function(y){var P=E(187),q=E(431),ne=E(9),oe=E.n(ne),ie=E(18);var se=function(w){function SpringAnimation(y){var E,P,ne,se,le,pe,ge,me,he,ve,ye,_e;if((he=w.call(this)||this)._overshootClamping=null!==(E=y.overshootClamping)&&void 0!==E&&E,he._restDisplacementThreshold=null!==(P=y.restDisplacementThreshold)&&void 0!==P?P:.001,he._restSpeedThreshold=null!==(ne=y.restSpeedThreshold)&&void 0!==ne?ne:.001,he._initialVelocity=null!==(se=y.velocity)&&void 0!==se?se:0,he._lastVelocity=null!==(le=y.velocity)&&void 0!==le?le:0,he._toValue=y.toValue,he._delay=null!==(pe=y.delay)&&void 0!==pe?pe:0,he._useNativeDriver=Object(ie.c)(y),he.__isInteraction=null!==(ge=y.isInteraction)&&void 0!==ge?ge:!he._useNativeDriver,he.__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"),he._stiffness=null!==(ve=y.stiffness)&&void 0!==ve?ve:100,he._damping=null!==(ye=y.damping)&&void 0!==ye?ye:10,he._mass=null!==(_e=y.mass)&&void 0!==_e?_e:1;else if(void 0!==y.bounciness||void 0!==y.speed){var Re,we;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 ke=q.a.fromBouncinessAndSpeed(null!==(Re=y.bounciness)&&void 0!==Re?Re:8,null!==(we=y.speed)&&void 0!==we?we:12);he._stiffness=ke.stiffness,he._damping=ke.damping,he._mass=1}else{var Me,Se,Ae=q.a.fromOrigamiTensionAndFriction(null!==(Me=y.tension)&&void 0!==Me?Me:40,null!==(Se=y.friction)&&void 0!==Se?Se:7);he._stiffness=Ae.stiffness,he._damping=Ae.damping,he._mass=1}return oe()(he._stiffness>0,"Stiffness value must be greater than 0"),oe()(he._damping>0,"Damping value must be greater than 0"),oe()(he._mass>0,"Mass value must be greater than 0"),he}!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,P,q){var ne=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,P instanceof SpringAnimation){var oe=P.getInternalState();this._lastPosition=oe.lastPosition,this._lastVelocity=oe.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=oe.lastTime}var start=function start(){ne._useNativeDriver?ne.__startNativeAnimation(q):ne.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,P=this._mass,q=this._stiffness,ne=-this._initialVelocity,oe=E/(2*Math.sqrt(q*P)),ie=Math.sqrt(q/P),se=ie*Math.sqrt(1-oe*oe),le=this._toValue-this._startPosition,pe=0,ge=0,me=this._frameTime;if(oe<1){var he=Math.exp(-oe*ie*me);pe=this._toValue-he*((ne+oe*ie*le)/se*Math.sin(se*me)+le*Math.cos(se*me)),ge=oe*ie*he*(Math.sin(se*me)*(ne+oe*ie*le)/se+le*Math.cos(se*me))-he*(Math.cos(se*me)*(ne+oe*ie*le)-se*le*Math.sin(se*me))}else{var ve=Math.exp(-ie*me);pe=this._toValue-ve*(le+(ne+ie*le)*me),ge=ve*(ne*(me*ie-1)+me*le*(ie*ie))}if(this._lastTime=y,this._lastPosition=pe,this._lastVelocity=ge,this._onUpdate(pe),this.__active){var ye=!1;this._overshootClamping&&0!==this._stiffness&&(ye=this._startPositionthis._toValue:pe18&&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)}(P),.01);return{stiffness:stiffnessFromOrigamiValue(P),damping:dampingFromOrigamiValue(q)}}}},function(y,w,E){"use strict";(function(y){var P,q=E(187),ne=E(229),oe=E(18);var ie=function(w){function TimingAnimation(y){var E,q,ie,se,le,pe;return(pe=w.call(this)||this)._toValue=y.toValue,pe._easing=null!==(E=y.easing)&&void 0!==E?E:function easeInOut(){return P||(P=ne.a.inOut(ne.a.ease)),P}(),pe._duration=null!==(q=y.duration)&&void 0!==q?q:500,pe._delay=null!==(ie=y.delay)&&void 0!==ie?ie:0,pe.__iterations=null!==(se=y.iterations)&&void 0!==se?se:1,pe._useNativeDriver=Object(oe.c)(y),pe.__isInteraction=null!==(le=y.isInteraction)&&void 0!==le?le:!pe._useNativeDriver,pe}!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}(q.a);w.a=ie}).call(this,E(67))},function(y,w,E){(function(w){var E=function(y){var w=/\blang(?:uage)?-([\w-]+)\b/i,E=0,P={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);we+=Re.value.length,Re=Re.next){var ke=Re.value;if(w.length>y.length)return;if(!(ke instanceof Token)){var Me,Se=1;if(he){if(!(Me=matchPattern(_e,we,y,me)))break;var Ae=Me.index,Te=Me.index+Me[0].length,Oe=we;for(Oe+=Re.value.length;Ae>=Oe;)Oe+=(Re=Re.next).value.length;if(we=Oe-=Re.value.length,Re.value instanceof Token)continue;for(var Fe=Re;Fe!==w.tail&&(Oeoe.reach&&(oe.reach=Ne);var Ue=Re.prev;Be&&(Ue=addAfter(w,Ue,Be),we+=Be.length),removeRange(w,Ue,Se),Re=addAfter(w,Ue,new Token(ie,ge?P.tokenize(je,ge):je,ve,je)),Ve&&addAfter(w,Re,Ve),Se>1&&matchGrammar(y,w,E,Re.prev,we,{cause:ie+","+le,reach:Ne})}}}}}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 P=w.next,q={value:E,prev:w,next:P};return w.next=q,P.prev=q,y.length++,q}function removeRange(y,w,E){for(var P=w.next,q=0;q"+q.content+""},!y.document)return y.addEventListener?(P.disableWorkerMessageHandler||y.addEventListener("message",(function(w){var E=JSON.parse(w.data),q=E.language,ne=E.code,oe=E.immediateClose;y.postMessage(P.highlight(ne,P.languages[q],q)),oe&&y.close()}),!1),P):P;var q=P.util.currentScript();function highlightAutomaticallyCallback(){P.manual||P.highlightAll()}if(q&&(P.filename=q.src,q.hasAttribute("data-manual")&&(P.manual=!0)),!P.manual){var ne=document.readyState;"loading"===ne||"interactive"===ne&&q&&q.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return P}("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 P={};P["language-"+w]={pattern:/(^$)/i,lookbehind:!0,inside:E.languages[w]},P.cdata=/^$/i;var q={"included-cdata":{pattern://i,inside:P}};q["language-"+w]={pattern:/[\s\S]+/,inside:E.languages[w]};var ne={};ne[y]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return y})),"i"),lookbehind:!0,greedy:!0,inside:q},E.languages.insertBefore("markup","cdata",ne)}}),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{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\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](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+w.source+")*(?=\\s*\\{)"),string:{pattern:w,greedy:!0},property:/(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\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*(?:"[^"]*"|'[^']*')/i,lookbehind:!0,inside:{"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{style:{pattern:/(["'])[\s\S]+(?=["']$)/,lookbehind:!0,alias:"language-css",inside:y.languages.css},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},"attr-name":/^style/i}}},E.tag))}(E),E.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!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])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\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}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,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)?)+)?/,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:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:E.languages.javascript},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,inside:E.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\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]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\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){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);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",P="loading",q="loaded",ne='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+=", "+ne})),y.hooks.add("before-sanity-check",(function(oe){var ie=oe.element;if(ie.matches(ne)){oe.code="",ie.setAttribute(E,P);var se=ie.appendChild(document.createElement("CODE"));se.textContent="Loading…";var le=ie.getAttribute("data-src"),pe=oe.language;if("none"===pe){var ge=(/\.(\w+)$/.exec(le)||[,"none"])[1];pe=w[ge]||ge}setLanguageClass(se,pe),setLanguageClass(ie,pe);var me=y.plugins.autoloader;me&&me.loadLanguages(pe);var he=new XMLHttpRequest;he.open("GET",le,!0),he.onreadystatechange=function(){var w,P;4==he.readyState&&(he.status<400&&he.responseText?(ie.setAttribute(E,q),se.textContent=he.responseText,y.highlightElement(se)):(ie.setAttribute(E,"failed"),he.status>=400?se.textContent=(w=he.status,P=he.statusText,"✖ Error "+w+" while fetching file: "+P):se.textContent="✖ Error: File does not exist or is empty"))},he.send(null)}})),y.plugins.fileHighlight={highlight:function highlight(w){for(var E,P=(w||document).querySelectorAll(ne),q=0;E=P[q++];)y.highlightElement(E)}};var ie=!1;y.fileHighlight=function(){ie||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),ie=!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(67))},function(y,w,E){y.exports=!E(45)&&!E(23)((function(){return 7!=Object.defineProperty(E(306)("div"),"a",{get:function(){return 7}}).a}))},function(y,w,E){var P=E(22),q=E(43),ne=E(145),oe=E(307),ie=E(46).f;y.exports=function(y){var w=q.Symbol||(q.Symbol=ne?{}:P.Symbol||{});"_"==y.charAt(0)||y in w||ie(w,y,{value:oe.f(y)})}},function(y,w,E){var P=E(79),q=E(81),ne=E(232)(!1),oe=E(308)("IE_PROTO");y.exports=function(y,w){var E,ie=q(y),se=0,le=[];for(E in ie)E!=oe&&P(ie,E)&&le.push(E);for(;w.length>se;)P(ie,E=w[se++])&&(~ne(le,E)||le.push(E));return le}},function(y,w,E){var P=E(46),q=E(24),ne=E(146);y.exports=E(45)?Object.defineProperties:function defineProperties(y,w){q(y);for(var E,oe=ne(w),ie=oe.length,se=0;ie>se;)P.f(y,E=oe[se++],w[E]);return y}},function(y,w,E){var P=E(81),q=E(149).f,ne={}.toString,oe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];y.exports.f=function getOwnPropertyNames(y){return oe&&"[object Window]"==ne.call(y)?function(y){try{return q(y)}catch(y){return oe.slice()}}(y):q(P(y))}},function(y,w,E){"use strict";var P=E(45),q=E(146),ne=E(233),oe=E(198),ie=E(63),se=E(197),le=Object.assign;y.exports=!le||E(23)((function(){var y={},w={},E=Symbol(),P="abcdefghijklmnopqrst";return y[E]=7,P.split("").forEach((function(y){w[y]=y})),7!=le({},y)[E]||Object.keys(le({},w)).join("")!=P}))?function assign(y,w){for(var E=ie(y),le=arguments.length,pe=1,ge=ne.f,me=oe.f;le>pe;)for(var he,ve=se(arguments[pe++]),ye=ge?q(ve).concat(ge(ve)):q(ve),_e=ye.length,Re=0;_e>Re;)he=ye[Re++],P&&!me.call(ve,he)||(E[he]=ve[he]);return E}:le},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 P=E(101),q=E(25),ne=E(442),oe=[].slice,ie={},construct=function(y,w,E){if(!(w in ie)){for(var P=[],q=0;q>>0||(oe.test(E)?16:10))}:P},function(y,w,E){var P=E(22).parseFloat,q=E(166).trim;y.exports=1/P(E(312)+"-0")!=-1/0?function parseFloat(y){var w=q(String(y),3),E=P(w);return 0===E&&"-"==w.charAt(0)?-0:E}:P},function(y,w,E){var P=E(113);y.exports=function(y,w){if("number"!=typeof y&&"Number"!=P(y))throw TypeError(w);return+y}},function(y,w,E){var P=E(25),q=Math.floor;y.exports=function isInteger(y){return!P(y)&&isFinite(y)&&q(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 P=E(148),q=E(143),ne=E(165),oe={};E(80)(oe,E(33)("iterator"),(function(){return this})),y.exports=function(y,w,E){y.prototype=P(oe,{next:q(1,E)}),ne(y,w+" Iterator")}},function(y,w,E){var P=E(24);y.exports=function(y,w,E,q){try{return q?w(P(E)[0],E[1]):w(E)}catch(w){var ne=y.return;throw void 0!==ne&&P(ne.call(y)),w}}},function(y,w,E){var P=E(793);y.exports=function(y,w){return new(P(y))(w)}},function(y,w,E){var P=E(101),q=E(63),ne=E(197),oe=E(39);y.exports=function(y,w,E,ie,se){P(w);var le=q(y),pe=ne(le),ge=oe(le.length),me=se?ge-1:0,he=se?-1:1;if(E<2)for(;;){if(me in pe){ie=pe[me],me+=he;break}if(me+=he,se?me<0:ge<=me)throw TypeError("Reduce of empty array with no initial value")}for(;se?me>=0:ge>me;me+=he)me in pe&&(ie=w(ie,pe[me],me,le));return ie}},function(y,w,E){"use strict";var P=E(63),q=E(147),ne=E(39);y.exports=[].copyWithin||function copyWithin(y,w){var E=P(this),oe=ne(E.length),ie=q(y,oe),se=q(w,oe),le=arguments.length>2?arguments[2]:void 0,pe=Math.min((void 0===le?oe:q(le,oe))-se,oe-ie),ge=1;for(se0;)se in E?E[ie]=E[se]:delete E[ie],ie+=ge,se+=ge;return E}},function(y,w){y.exports=function(y,w){return{value:w,done:!!y}}},function(y,w,E){"use strict";var P=E(327);E(10)({target:"RegExp",proto:!0,forced:P!==/./.exec},{exec:P})},function(y,w,E){E(45)&&"g"!=/./g.flags&&E(46).f(RegExp.prototype,"flags",{configurable:!0,get:E(236)})},function(y,w,E){"use strict";var P,q,ne,oe,ie=E(145),se=E(22),le=E(100),pe=E(199),ge=E(10),me=E(25),he=E(101),ve=E(169),ye=E(239),_e=E(200),Re=E(329).set,we=E(813)(),ke=E(457),Me=E(814),Se=E(240),Ae=E(458),Te="Promise",Oe=se.TypeError,Fe=se.process,je=Fe&&Fe.versions,Be=je&&je.v8||"",Ve=se.Promise,Ne="process"==pe(Fe),empty=function(){},Ue=q=ke.f,We=!!function(){try{var y=Ve.resolve(1),w=(y.constructor={})[E(33)("species")]=function(y){y(empty,empty)};return(Ne||"function"==typeof PromiseRejectionEvent)&&y.then(empty)instanceof w&&0!==Be.indexOf("6.6")&&-1===Se.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;we((function(){for(var P=y._v,q=1==y._s,ne=0,run=function(w){var E,ne,oe,ie=q?w.ok:w.fail,se=w.resolve,le=w.reject,pe=w.domain;try{ie?(q||(2==y._h&&onHandleUnhandled(y),y._h=1),!0===ie?E=P:(pe&&pe.enter(),E=ie(P),pe&&(pe.exit(),oe=!0)),E===w.promise?le(Oe("Promise-chain cycle")):(ne=isThenable(E))?ne.call(E,se,le):se(E)):le(P)}catch(y){pe&&!oe&&pe.exit(),le(y)}};E.length>ne;)run(E[ne++]);y._c=[],y._n=!1,w&&!y._h&&onUnhandled(y)}))}},onUnhandled=function(y){Re.call(se,(function(){var w,E,P,q=y._v,ne=isUnhandled(y);if(ne&&(w=Me((function(){Ne?Fe.emit("unhandledRejection",q,y):(E=se.onunhandledrejection)?E({promise:y,reason:q}):(P=se.console)&&P.error&&P.error("Unhandled promise rejection",q)})),y._h=Ne||isUnhandled(y)?2:1),y._a=void 0,ne&&w.e)throw w.v}))},isUnhandled=function(y){return 1!==y._h&&0===(y._a||y._c).length},onHandleUnhandled=function(y){Re.call(se,(function(){var w;Ne?Fe.emit("rejectionHandled",y):(w=se.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 Oe("Promise can't be resolved itself");(w=isThenable(y))?we((function(){var P={_w:E,_d:!1};try{w.call(y,le($resolve,P,1),le($reject,P,1))}catch(y){$reject.call(P,y)}})):(E._v=y,E._s=1,notify(E,!1))}catch(y){$reject.call({_w:E,_d:!1},y)}}};We||(Ve=function Promise(y){ve(this,Ve,Te,"_h"),he(y),P.call(this);try{y(le($resolve,this,1),le($reject,this,1))}catch(y){$reject.call(this,y)}},(P=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(170)(Ve.prototype,{then:function then(y,w){var E=Ue(_e(this,Ve));return E.ok="function"!=typeof y||y,E.fail="function"==typeof w&&w,E.domain=Ne?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)}}),ne=function(){var y=new P;this.promise=y,this.resolve=le($resolve,y,1),this.reject=le($reject,y,1)},ke.f=Ue=function(y){return y===Ve||y===oe?new ne(y):q(y)}),ge(ge.G+ge.W+ge.F*!We,{Promise:Ve}),E(165)(Ve,Te),E(168)(Te),oe=E(43).Promise,ge(ge.S+ge.F*!We,Te,{reject:function reject(y){var w=Ue(this);return(0,w.reject)(y),w.promise}}),ge(ge.S+ge.F*(ie||!We),Te,{resolve:function resolve(y){return Ae(ie&&this===oe?Ve:this,y)}}),ge(ge.S+ge.F*!(We&&E(235)((function(y){Ve.all(y).catch(empty)}))),Te,{all:function all(y){var w=this,E=Ue(w),P=E.resolve,q=E.reject,ne=Me((function(){var E=[],ne=0,oe=1;ye(y,!1,(function(y){var ie=ne++,se=!1;E.push(void 0),oe++,w.resolve(y).then((function(y){se||(se=!0,E[ie]=y,--oe||P(E))}),q)})),--oe||P(E)}));return ne.e&&q(ne.v),E.promise},race:function race(y){var w=this,E=Ue(w),P=E.reject,q=Me((function(){ye(y,!1,(function(y){w.resolve(y).then(E.resolve,P)}))}));return q.e&&P(q.v),E.promise}})},function(y,w,E){"use strict";var P=E(101);function PromiseCapability(y){var w,E;this.promise=new y((function(y,P){if(void 0!==w||void 0!==E)throw TypeError("Bad Promise constructor");w=y,E=P})),this.resolve=P(w),this.reject=P(E)}y.exports.f=function(y){return new PromiseCapability(y)}},function(y,w,E){var P=E(24),q=E(25),ne=E(457);y.exports=function(y,w){if(P(y),q(w)&&w.constructor===y)return w;var E=ne.f(y);return(0,E.resolve)(w),E.promise}},function(y,w,E){"use strict";var P=E(46).f,q=E(148),ne=E(170),oe=E(100),ie=E(169),se=E(239),le=E(318),pe=E(453),ge=E(168),me=E(45),he=E(128).fastKey,ve=E(152),ye=me?"_s":"size",getEntry=function(y,w){var E,P=he(w);if("F"!==P)return y._i[P];for(E=y._f;E;E=E.n)if(E.k==w)return E};y.exports={getConstructor:function(y,w,E,le){var pe=y((function(y,P){ie(y,pe,w,"_i"),y._t=w,y._i=q(null),y._f=void 0,y._l=void 0,y[ye]=0,null!=P&&se(P,E,y[le],y)}));return ne(pe.prototype,{clear:function clear(){for(var y=ve(this,w),E=y._i,P=y._f;P;P=P.n)P.r=!0,P.p&&(P.p=P.p.n=void 0),delete E[P.i];y._f=y._l=void 0,y[ye]=0},delete:function(y){var E=ve(this,w),P=getEntry(E,y);if(P){var q=P.n,ne=P.p;delete E._i[P.i],P.r=!0,ne&&(ne.n=q),q&&(q.p=ne),E._f==P&&(E._f=q),E._l==P&&(E._l=ne),E[ye]--}return!!P},forEach:function forEach(y){ve(this,w);for(var E,P=oe(y,arguments.length>1?arguments[1]:void 0,3);E=E?E.n:this._f;)for(P(E.v,E.k,this);E&&E.r;)E=E.p},has:function has(y){return!!getEntry(ve(this,w),y)}}),me&&P(pe.prototype,"size",{get:function(){return ve(this,w)[ye]}}),pe},def:function(y,w,E){var P,q,ne=getEntry(y,w);return ne?ne.v=E:(y._l=ne={i:q=he(w,!0),k:w,v:E,p:P=y._l,n:void 0,r:!1},y._f||(y._f=ne),P&&(P.n=ne),y[ye]++,"F"!==q&&(y._i[q]=ne)),y},getEntry:getEntry,setStrong:function(y,w,E){le(y,w,(function(y,E){this._t=ve(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)?pe(0,"keys"==w?E.k:"values"==w?E.v:[E.k,E.v]):(y._t=void 0,pe(1))}),E?"entries":"values",!E,!0),ge(w)}}},function(y,w,E){"use strict";var P=E(170),q=E(128).getWeak,ne=E(24),oe=E(25),ie=E(169),se=E(239),le=E(105),pe=E(79),ge=E(152),me=le(5),he=le(6),ve=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=he(this.a,(function(w){return w[0]===y}));return~w&&this.a.splice(w,1),!!~w}},y.exports={getConstructor:function(y,w,E,ne){var le=y((function(y,P){ie(y,le,w,"_i"),y._t=w,y._i=ve++,y._l=void 0,null!=P&&se(P,E,y[ne],y)}));return P(le.prototype,{delete:function(y){if(!oe(y))return!1;var E=q(y);return!0===E?uncaughtFrozenStore(ge(this,w)).delete(y):E&&pe(E,this._i)&&delete E[this._i]},has:function has(y){if(!oe(y))return!1;var E=q(y);return!0===E?uncaughtFrozenStore(ge(this,w)).has(y):E&&pe(E,this._i)}}),le},def:function(y,w,E){var P=q(ne(w),!0);return!0===P?uncaughtFrozenStore(y).set(w,E):P[y._i]=E,y},ufstore:uncaughtFrozenStore}},function(y,w,E){var P=E(102),q=E(39);y.exports=function(y){if(void 0===y)return 0;var w=P(y),E=q(w);if(w!==E)throw RangeError("Wrong length!");return E}},function(y,w,E){var P=E(149),q=E(233),ne=E(24),oe=E(22).Reflect;y.exports=oe&&oe.ownKeys||function ownKeys(y){var w=P.f(ne(y)),E=q.f;return E?w.concat(E(y)):w}},function(y,w,E){var P=E(39),q=E(314),ne=E(114);y.exports=function(y,w,E,oe){var ie=String(ne(y)),se=ie.length,le=void 0===E?" ":String(E),pe=P(w);if(pe<=se||""==le)return ie;var ge=pe-se,me=q.call(le,Math.ceil(ge/le.length));return me.length>ge&&(me=me.slice(0,ge)),oe?me+ie:ie+me}},function(y,w,E){var P=E(45),q=E(146),ne=E(81),oe=E(198).f;y.exports=function(y){return function(w){for(var E,ie=ne(w),se=q(ie),le=se.length,pe=0,ge=[];le>pe;)E=se[pe++],P&&!oe.call(ie,E)||ge.push(y?[E,ie[E]]:ie[E]);return ge}}},function(y,w){var E=y.exports={version:"2.6.12"};"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){(function(w){var E="object"==typeof w&&w&&w.Object===Object&&w;y.exports=E}).call(this,E(67))},function(y,w){var E=Function.prototype.toString;y.exports=function toSource(y){if(null!=y){try{return E.call(y)}catch(y){}try{return y+""}catch(y){}}return""}},function(y,w,E){var P=E(339),q=E(203);y.exports=function assignMergeValue(y,w,E){(void 0!==E&&!q(y[w],E)||void 0===E&&!(w in y))&&P(y,w,E)}},function(y,w,E){var P=E(153),q=function(){try{var y=P(Object,"defineProperty");return y({},"",{}),y}catch(y){}}();y.exports=q},function(y,w,E){var P=E(923)();y.exports=P},function(y,w,E){var P=E(82).Uint8Array;y.exports=P},function(y,w,E){var P=E(475)(Object.getPrototypeOf,Object);y.exports=P},function(y,w){y.exports=function overArg(y,w){return function(E){return y(w(E))}}},function(y,w){y.exports=function baseUnary(y){return function(w){return y(w)}}},function(y,w,E){(function(y){var P=E(468),q=w&&!w.nodeType&&w,ne=q&&"object"==typeof y&&y&&!y.nodeType&&y,oe=ne&&ne.exports===q&&P.process,ie=function(){try{var y=ne&&ne.require&&ne.require("util").types;return y||oe&&oe.binding&&oe.binding("util")}catch(y){}}();y.exports=ie}).call(this,E(204)(y))},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 P=E(480),q=E(940),ne=E(130);y.exports=function keysIn(y){return ne(y)?P(y,!0):q(y)}},function(y,w,E){var P=E(939),q=E(252),ne=E(93),oe=E(253),ie=E(341),se=E(254),le=Object.prototype.hasOwnProperty;y.exports=function arrayLikeKeys(y,w){var E=ne(y),pe=!E&&q(y),ge=!E&&!pe&&oe(y),me=!E&&!pe&&!ge&&se(y),he=E||pe||ge||me,ve=he?P(y.length,String):[],ye=ve.length;for(var _e in y)!w&&!le.call(y,_e)||he&&("length"==_e||ge&&("offset"==_e||"parent"==_e)||me&&("buffer"==_e||"byteLength"==_e||"byteOffset"==_e)||ie(_e,ye))||ve.push(_e);return ve}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.defaultTheme=w.Colors=w.DEFAULT_STATUS_ICON_SIZE=void 0;var q=P(E(5)),ne=E(27),oe=16;w.DEFAULT_STATUS_ICON_SIZE=oe;var ie={accent_blue:"#005FFF",accent_green:"#20E070",accent_red:"#FF3742",bg_gradient_end:"#F7F7F7",bg_gradient_start:"#FCFCFC",black:"#000000",blue_alice:"#E9F2FF",border:"#00000014",grey:"#7A7A7A",grey_gainsboro:"#DBDBDB",grey_whisper:"#ECEBEB",icon_background:"#FFFFFF",modal_shadow:"#00000099",overlay:"#00000033",overlay_dark:"#00000099",shadow_icon:"#00000040",targetedMessageBackground:"#FBF4DD",transparent:"transparent",white:"#FFFFFF",white_smoke:"#F2F2F2",white_snow:"#FCFCFC"};w.Colors=ie;var se={attachmentPicker:{bottomSheetContentContainer:{},errorButtonText:{},errorContainer:{},errorText:{},image:{},imageOverlay:{},imageOverlaySelectedComponent:{check:{}}},attachmentSelectionBar:{container:{},icon:{}},avatar:{BASE_AVATAR_SIZE:32,container:{},image:{borderRadius:16,height:32,width:32},presenceIndicator:{cx:6,cy:6,r:5,strokeWidth:2},presenceIndicatorContainer:{}},channel:{selectChannel:{}},channelListFooterLoadingIndicator:{container:{}},channelListHeaderErrorIndicator:{container:{},errorText:{}},channelListMessenger:{flatList:{},flatListContent:{}},channelListSkeleton:{animationTime:1800,background:{},container:{},gradientStart:{stopOpacity:0},gradientStop:{stopOpacity:.5},height:64},channelPreview:{checkAllIcon:{height:oe,width:oe},checkIcon:{height:oe,width:oe},container:{},contentContainer:{},date:{},message:{fontWeight:"400"},row:{},title:{},unreadContainer:{},unreadText:{}},colors:(0,q.default)({},ie),dateHeader:{container:{},text:{}},emptyStateIndicator:{channelContainer:{},channelDetails:{},channelTitle:{}},groupAvatar:{container:{},image:{resizeMode:"cover"}},iconBadge:{icon:{},iconInner:{},unreadCount:{}},iconSquare:{container:{},image:{}},imageGallery:{blurType:"light",footer:{centerContainer:{},container:{},imageCountText:{},innerContainer:{},leftContainer:{},rightContainer:{}},grid:{contentContainer:{},gridAvatar:{},gridAvatarWrapper:{},gridImage:{},handle:{},handleText:{},overlay:{}},header:{centerContainer:{},container:{},dateText:{},innerContainer:{},leftContainer:{},rightContainer:{},usernameText:{}}},inlineDateSeparator:{container:{},text:{}},loadingDots:{container:{},loadingDot:{},spacing:4},loadingErrorIndicator:{container:{},errorText:{},retryText:{}},loadingIndicator:{container:{},loadingText:{}},messageInput:{attachButton:{},attachButtonContainer:{},attachmentSelectionBar:{},autoCompleteInputContainer:{},commandsButton:{},commandsButtonContainer:{},composerContainer:{},container:{},editingBoxContainer:{},editingBoxHeader:{},editingBoxHeaderTitle:{},fileUploadPreview:{dismiss:{},fileContainer:{},fileContentContainer:{},filenameText:{},fileSizeText:{},fileTextContainer:{},flatList:{}},giphyContainer:{},giphyText:{},imageUploadPreview:{dismiss:{},flatList:{},itemContainer:{},upload:{}},inputBox:{},inputBoxContainer:{},moreOptionsButton:{},optionsContainer:{},replyContainer:{},sendButton:{},sendButtonContainer:{},showThreadMessageInChannelButton:{check:{},checkBoxActive:{},checkBoxInactive:{},container:{},innerContainer:{},text:{}},suggestions:{command:{args:{},container:{},iconContainer:{},title:{}},commandsHeader:{container:{},title:{}},container:{maxHeight:(0,ne.vh)(25)},emoji:{container:{},text:{}},emojisHeader:{container:{},title:{}},item:{},mention:{avatarSize:40,column:{},container:{},name:{},tag:{}}},suggestionsListContainer:{},uploadProgressIndicator:{container:{},overlay:{}}},messageList:{container:{},contentContainer:{},errorNotification:{},errorNotificationText:{},inlineUnreadIndicator:{container:{},text:{}},listContainer:{},messageSystem:{container:{},dateText:{},line:{},text:{},textContainer:{}},scrollToBottomButton:{container:{},touchable:{},unreadCountNotificationContainer:{},unreadCountNotificationText:{},wrapper:{}},typingIndicatorContainer:{}},messageSimple:{actions:{button:{},buttonText:{},container:{}},avatarWrapper:{container:{},leftAlign:{marginRight:8},rightAlign:{marginLeft:8},spacer:{height:28,width:32}},card:{authorName:{},authorNameContainer:{},authorNameFooter:{},authorNameFooterContainer:{},authorNameMask:{},container:{},cover:{},footer:{description:{},title:{fontWeight:"700"}},noURI:{borderLeftWidth:2,paddingLeft:8}},container:{},content:{container:{borderRadiusL:16,borderRadiusS:0},containerInner:{},deletedContainer:{},deletedContainerInner:{},deletedMetaText:{paddingHorizontal:10},deletedText:{em:{fontSize:15,fontStyle:"italic",fontWeight:"400"}},errorContainer:{paddingRight:12,paddingTop:0},errorIcon:{height:20,width:20},errorIconContainer:{bottom:-2,position:"absolute",right:-12},eyeIcon:{height:16,width:16},markdown:{},messageUser:{fontSize:12,fontWeight:"700",paddingRight:6},metaContainer:{flexDirection:"row",marginTop:4},metaText:{fontSize:12},replyBorder:{},replyContainer:{},textContainer:{onlyEmojiMarkdown:{text:{fontSize:50}}},wrapper:{}},file:{container:{},details:{},fileSize:{},icon:{},title:{}},fileAttachmentGroup:{container:{}},gallery:{galleryContainer:{},galleryItemColumn:{},halfSize:100,image:{},imageContainer:{},moreImagesContainer:{},moreImagesText:{},size:200,width:250},giphy:{cancel:{},cancelContainer:{},container:{},giphy:{},giphyContainer:{},giphyMask:{},giphyText:{},selectionContainer:{},selector:{},send:{},sendContainer:{},shuffleButton:{},title:{}},reactionList:{container:{},middleIcon:{},radius:2,reactionBubble:{},reactionBubbleBackground:{},reactionSize:24,strokeSize:1},replies:{avatar:{},avatarContainerMultiple:{},avatarContainerSingle:{},container:{},leftAvatarsContainer:{},leftCurve:{},messageRepliesText:{},rightAvatarsContainer:{},rightCurve:{}},status:{checkAllIcon:{height:oe,width:oe},checkIcon:{height:oe,width:oe},readByCount:{},statusContainer:{},timeIcon:{height:oe,width:oe}},targetedMessageUnderlay:{}},overlay:{padding:8,reactions:{avatarContainer:{},avatarName:{},avatarSize:64,container:{},flatListContainer:{},radius:2,reactionBubble:{},reactionBubbleBackground:{},title:{}},reactionsList:{radius:2.5,reaction:{},reactionList:{}}},reply:{container:{},fileAttachmentContainer:{},imageAttachment:{},markdownStyles:{},messageContainer:{},textContainer:{}},screenPadding:8,spinner:{},thread:{newThread:{text:{}}},typingIndicator:{container:{},text:{fontSize:14}}};w.defaultTheme=se},function(y,w){y.exports=function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E=200){var ye=w?null:ie(y);if(ye)return se(ye);me=!1,pe=oe,ve=new P}else ve=w?[]:he;e:for(;++le=8;)((P=ie>>>(se-=8)&255)||E1&&void 0!==arguments[1]&&arguments[1];return this.addMessagesSorted([y],w)}},{key:"formatMessage",value:function formatMessage(y){return _objectSpread$4(_objectSpread$4({},y),{},{__html:y.html,pinned_at:y.pinned_at?new Date(y.pinned_at):null,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],P=0;Pthis.last_message_at.getTime()&&(this.last_message_at=new Date(q.created_at.getTime()));var ne=q.parent_id;if(ne&&!q.show_in_channel||(this.messages=this._addToMessageList(this.messages,q,w)),ne){var oe=this.threads[ne]||[],ie=this._addToMessageList(oe,q,w);this.threads[ne]=ie}}}},{key:"addPinnedMessages",value:function addPinnedMessages(y){for(var w=0;w2&&void 0!==arguments[2]&&arguments[2],P=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"created_at",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[P].getTime();if(q[q.length-1][P].getTime()7e3&&(delete this.typing[q],this._channel.getClient().dispatchEvent({cid:this._channel.cid,type:"typing.stop",user:{id:q}}))}}},{key:"clearMessages",value:function clearMessages(){this.messages=[]}}]),ChannelState}();function ownKeys$3(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}return E}function _objectSpread$3(y){for(var w=1;w=y.length?{done:!0}:{done:!1,value:y[P++]}},e:function e(y){throw y},f: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.")}var ne,oe=!0,ie=!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){ie=!0,ne=y},f:function f(){try{oe||null==E.return||E.return()}finally{if(ie)throw ne}}}}function _arrayLikeToArray$3(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=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,ie=ne;oe=y.length?{done:!0}:{done:!1,value:y[P++]}},e:function e(y){throw y},f: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.")}var ne,oe=!0,ie=!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){ie=!0,ne=y},f:function f(){try{oe||null==E.return||E.return()}finally{if(ie)throw ne}}}}function _arrayLikeToArray$2(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E1&&void 0!==P[1]?P[1]:{},E=_objectSpread$2({filter_conditions:{cid:this.cid}},w),"string"!=typeof y){q.next=6;break}E.query=y,q.next=11;break;case 6:if("object"!==se()(y)){q.next=10;break}E.message_filter_conditions=y,q.next=11;break;case 10:throw Error("Invalid type ".concat(se()(y)," for query parameter"));case 11:return q.next=13,this.getClient().wsPromise;case 13:return q.next=15,this.getClient().get(this.getClient().baseURL+"/search",{payload:E});case 15:return q.abrupt("return",q.sent);case 16:case"end":return q.stop()}}),_callee4,this)}))),function search(y){return ot.apply(this,arguments)})},{key:"queryMembers",value:(rt=ve()(Ae.a.mark((function _callee5(y){var w,E,P,q,ne,oe,ie=arguments;return Ae.a.wrap((function _callee5$(se){for(;;)switch(se.prev=se.next){case 0:return E=ie.length>1&&void 0!==ie[1]?ie[1]:[],P=ie.length>2&&void 0!==ie[2]?ie[2]:{},ne=this.type,this.id?q=this.id:null!==(w=this.data)&&void 0!==w&&w.members&&Array.isArray(this.data.members)&&(oe=this.data.members),se.next=6,this.getClient().get(this.getClient().baseURL+"/members",{payload:_objectSpread$2({type:ne,id:q,members:oe,sort:normalizeQuerySort(E),filter_conditions:y},P)});case 6:return se.abrupt("return",se.sent);case 7:case"end":return se.stop()}}),_callee5,this)}))),function queryMembers(y){return rt.apply(this,arguments)})},{key:"sendReaction",value:(nt=ve()(Ae.a.mark((function _callee6(y,w,E){return Ae.a.wrap((function _callee6$(P){for(;;)switch(P.prev=P.next){case 0:if(y){P.next=2;break}throw Error("Message id is missing");case 2:if(w&&0!==Object.keys(w).length){P.next=4;break}throw Error("Reaction object is missing");case 4:return P.next=6,this.getClient().post(this.getClient().baseURL+"/messages/".concat(y,"/reaction"),_objectSpread$2({reaction:w},E));case 6:return P.abrupt("return",P.sent);case 7:case"end":return P.stop()}}),_callee6,this)}))),function sendReaction(y,w,E){return nt.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 P=this.getClient().baseURL+"/messages/".concat(y,"/reaction/").concat(w);return E?this.getClient().delete(P,{user_id:E}):this.getClient().delete(P,{})}},{key:"update",value:(et=ve()(Ae.a.mark((function _callee7(){var y,w,E,P,q=arguments;return Ae.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,E=q.length>2?q[2]: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=7,this.getClient().post(this._channelURL(),_objectSpread$2({message:w,data:y},E));case 7:return P=ne.sent,this.data=P.channel,ne.abrupt("return",P);case 10:case"end":return ne.stop()}}),_callee7,this)}))),function update(){return et.apply(this,arguments)})},{key:"updatePartial",value:(Xe=ve()(Ae.a.mark((function _callee8(y){return Ae.a.wrap((function _callee8$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getClient().patch(this._channelURL(),y);case 2:return w.abrupt("return",w.sent);case 3:case"end":return w.stop()}}),_callee8,this)}))),function updatePartial(y){return Xe.apply(this,arguments)})},{key:"enableSlowMode",value:($e=ve()(Ae.a.mark((function _callee9(y){var w;return Ae.a.wrap((function _callee9$(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()}}),_callee9,this)}))),function enableSlowMode(y){return $e.apply(this,arguments)})},{key:"disableSlowMode",value:(We=ve()(Ae.a.mark((function _callee10(){var y;return Ae.a.wrap((function _callee10$(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()}}),_callee10,this)}))),function disableSlowMode(){return We.apply(this,arguments)})},{key:"delete",value:(Ue=ve()(Ae.a.mark((function _callee11(){return Ae.a.wrap((function _callee11$(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()}}),_callee11,this)}))),function _delete(){return Ue.apply(this,arguments)})},{key:"truncate",value:(Ne=ve()(Ae.a.mark((function _callee12(){return Ae.a.wrap((function _callee12$(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()}}),_callee12,this)}))),function truncate(){return Ne.apply(this,arguments)})},{key:"acceptInvite",value:(Ve=ve()(Ae.a.mark((function _callee13(){var y,w,E=arguments;return Ae.a.wrap((function _callee13$(P){for(;;)switch(P.prev=P.next){case 0:return y=E.length>0&&void 0!==E[0]?E[0]:{},P.next=3,this.getClient().post(this._channelURL(),_objectSpread$2({accept_invite:!0},y));case 3:return w=P.sent,this.data=w.channel,P.abrupt("return",w);case 6:case"end":return P.stop()}}),_callee13,this)}))),function acceptInvite(){return Ve.apply(this,arguments)})},{key:"rejectInvite",value:(Be=ve()(Ae.a.mark((function _callee14(){var y,w,E=arguments;return Ae.a.wrap((function _callee14$(P){for(;;)switch(P.prev=P.next){case 0:return y=E.length>0&&void 0!==E[0]?E[0]:{},P.next=3,this.getClient().post(this._channelURL(),_objectSpread$2({reject_invite:!0},y));case 3:return w=P.sent,this.data=w.channel,P.abrupt("return",w);case 6:case"end":return P.stop()}}),_callee14,this)}))),function rejectInvite(){return Be.apply(this,arguments)})},{key:"addMembers",value:(je=ve()(Ae.a.mark((function _callee15(y,w){var E;return Ae.a.wrap((function _callee15$(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this.getClient().post(this._channelURL(),{add_members:y,message:w});case 2:return E=P.sent,this.data=E.channel,P.abrupt("return",E);case 5:case"end":return P.stop()}}),_callee15,this)}))),function addMembers(y,w){return je.apply(this,arguments)})},{key:"addModerators",value:(Fe=ve()(Ae.a.mark((function _callee16(y,w){var E;return Ae.a.wrap((function _callee16$(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this.getClient().post(this._channelURL(),{add_moderators:y,message:w});case 2:return E=P.sent,this.data=E.channel,P.abrupt("return",E);case 5:case"end":return P.stop()}}),_callee16,this)}))),function addModerators(y,w){return Fe.apply(this,arguments)})},{key:"inviteMembers",value:(Oe=ve()(Ae.a.mark((function _callee17(y,w){var E;return Ae.a.wrap((function _callee17$(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this.getClient().post(this._channelURL(),{invites:y,message:w});case 2:return E=P.sent,this.data=E.channel,P.abrupt("return",E);case 5:case"end":return P.stop()}}),_callee17,this)}))),function inviteMembers(y,w){return Oe.apply(this,arguments)})},{key:"removeMembers",value:(Te=ve()(Ae.a.mark((function _callee18(y,w){var E;return Ae.a.wrap((function _callee18$(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this.getClient().post(this._channelURL(),{remove_members:y,message:w});case 2:return E=P.sent,this.data=E.channel,P.abrupt("return",E);case 5:case"end":return P.stop()}}),_callee18,this)}))),function removeMembers(y,w){return Te.apply(this,arguments)})},{key:"demoteModerators",value:(Se=ve()(Ae.a.mark((function _callee19(y,w){var E;return Ae.a.wrap((function _callee19$(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this.getClient().post(this._channelURL(),{demote_moderators:y,message:w});case 2:return E=P.sent,this.data=E.channel,P.abrupt("return",E);case 5:case"end":return P.stop()}}),_callee19,this)}))),function demoteModerators(y,w){return Se.apply(this,arguments)})},{key:"mute",value:(ke=ve()(Ae.a.mark((function _callee20(){var y,w=arguments;return Ae.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/mute/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 mute(){return ke.apply(this,arguments)})},{key:"unmute",value:(Re=ve()(Ae.a.mark((function _callee21(){var y,w=arguments;return Ae.a.wrap((function _callee21$(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()}}),_callee21,this)}))),function unmute(){return Re.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:(ye=ve()(Ae.a.mark((function _callee22(y){var w,E,P;return Ae.a.wrap((function _callee22$(q){for(;;)switch(q.prev=q.next){case 0:if(null!==(w=this.getConfig())&&void 0!==w&&w.typing_events){q.next=2;break}return q.abrupt("return");case 2:if(E=new Date,P=this.lastTypingEvent&&E.getTime()-this.lastTypingEvent.getTime(),this.lastKeyStroke=E,this.isTyping=!0,!(null===P||P>2e3)){q.next=10;break}return this.lastTypingEvent=new Date,q.next=10,this.sendEvent({type:"typing.start",parent_id:y});case 10:case"end":return q.stop()}}),_callee22,this)}))),function keystroke(y){return ye.apply(this,arguments)})},{key:"stopTyping",value:(he=ve()(Ae.a.mark((function _callee23(y){var w;return Ae.a.wrap((function _callee23$(E){for(;;)switch(E.prev=E.next){case 0:if(null!==(w=this.getConfig())&&void 0!==w&&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()}}),_callee23,this)}))),function stopTyping(y){return he.apply(this,arguments)})},{key:"lastMessage",value:function lastMessage(){var y=this.state.messages.length-5;y<0&&(y=0);var w=this.state.messages.length+1,E=this.state.messages.slice(y,w);return E.sort((function(y,w){return w.created_at.getTime()-y.created_at.getTime()})),E[0]}},{key:"markRead",value:(ge=ve()(Ae.a.mark((function _callee24(){var y,w,E=arguments;return Ae.a.wrap((function _callee24$(P){for(;;)switch(P.prev=P.next){case 0:if(w=E.length>0&&void 0!==E[0]?E[0]:{},this._checkInitialized(),null!==(y=this.getConfig())&&void 0!==y&&y.read_events){P.next=4;break}return P.abrupt("return",Promise.resolve(null));case 4:return P.next=6,this.getClient().post(this._channelURL()+"/read",_objectSpread$2({},w));case 6:return P.abrupt("return",P.sent);case 7:case"end":return P.stop()}}),_callee24,this)}))),function markRead(){return ge.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:(pe=ve()(Ae.a.mark((function _callee25(y){var w,E,P;return Ae.a.wrap((function _callee25$(q){for(;;)switch(q.prev=q.next){case 0:return w={state:!0,watch:!0,presence:!1},q.next=3,this.getClient().wsPromise;case 3:return this.getClient()._hasConnectionID()||(w.watch=!1),E=_objectSpread$2(_objectSpread$2({},w),y),q.next=7,this.query(E);case 7:return P=q.sent,this.initialized=!0,this.data=P.channel,this._client.logger("info","channel:watch() - started watching channel ".concat(this.cid),{tags:["channel"],channel:this}),q.abrupt("return",P);case 12:case"end":return q.stop()}}),_callee25,this)}))),function watch(y){return pe.apply(this,arguments)})},{key:"stopWatching",value:(le=ve()(Ae.a.mark((function _callee26(){var y;return Ae.a.wrap((function _callee26$(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()}}),_callee26,this)}))),function stopWatching(){return le.apply(this,arguments)})},{key:"getReplies",value:(ie=ve()(Ae.a.mark((function _callee27(y,w){var E;return Ae.a.wrap((function _callee27$(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this.getClient().get(this.getClient().baseURL+"/messages/".concat(y,"/replies"),_objectSpread$2({},w));case 2:return(E=P.sent).messages&&this.state.addMessagesSorted(E.messages),P.abrupt("return",E);case 5:case"end":return P.stop()}}),_callee27,this)}))),function getReplies(y,w){return ie.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||!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(P)&&w++}return w}},{key:"countUnreadMentions",value:function countUnreadMentions(){for(var y=this.lastRead(),w=this.getClient().userID,E=0,P=0;Py)&&null!==(q=ne.mentioned_users)&&void 0!==q&&q.some((function(y){return y.id===w}))&&E++}return E}},{key:"query",value:(oe=ve()(Ae.a.mark((function _callee28(y){var w,E,P,q;return Ae.a.wrap((function _callee28$(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,this.getClient().wsPromise;case 2:return w="".concat(this.getClient().baseURL,"/channels/").concat(this.type),this.id&&(w+="/".concat(this.id)),ne.next=6,this.getClient().post(w+"/query",_objectSpread$2({data:this._data,state:!0},y));case 6:return E=ne.sent,this.id||(this.id=E.channel.id,this.cid=E.channel.cid,P=E.members.map((function(y){var w;return y.user_id||(null===(w=y.user)||void 0===w?void 0:w.id)})).sort().join(","),(q="".concat(this.type,":!members-").concat(P))in this.getClient().activeChannels&&delete this.getClient().activeChannels[q],this.cid in this.getClient().activeChannels||(this.getClient().activeChannels[this.cid]=this)),this.getClient()._addChannelConfig(E),this._initializeState(E),ne.abrupt("return",E);case 11:case"end":return ne.stop()}}),_callee28,this)}))),function query(y){return oe.apply(this,arguments)})},{key:"banUser",value:(ne=ve()(Ae.a.mark((function _callee29(y,w){return Ae.a.wrap((function _callee29$(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()}}),_callee29,this)}))),function banUser(y,w){return ne.apply(this,arguments)})},{key:"hide",value:(q=ve()(Ae.a.mark((function _callee30(){var y,w,E=arguments;return Ae.a.wrap((function _callee30$(P){for(;;)switch(P.prev=P.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(),P.next=5,this.getClient().post("".concat(this._channelURL(),"/hide"),{user_id:y,clear_history:w});case 5:return P.abrupt("return",P.sent);case 6:case"end":return P.stop()}}),_callee30,this)}))),function hide(){return q.apply(this,arguments)})},{key:"show",value:(P=ve()(Ae.a.mark((function _callee31(){var y,w=arguments;return Ae.a.wrap((function _callee31$(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()}}),_callee31,this)}))),function show(){return P.apply(this,arguments)})},{key:"unbanUser",value:(E=ve()(Ae.a.mark((function _callee32(y){return Ae.a.wrap((function _callee32$(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()}}),_callee32,this)}))),function unbanUser(y){return E.apply(this,arguments)})},{key:"shadowBan",value:(w=ve()(Ae.a.mark((function _callee33(y,w){return Ae.a.wrap((function _callee33$(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()}}),_callee33,this)}))),function shadowBan(y,E){return w.apply(this,arguments)})},{key:"removeShadowBan",value:(y=ve()(Ae.a.mark((function _callee34(y){return Ae.a.wrap((function _callee34$(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()}}),_callee34,this)}))),function removeShadowBan(w){return y.apply(this,arguments)})},{key:"on",value:function on(y,w){var E=w?y:"all";if(!tt(E))throw Error("Invalid event type ".concat(E));var P=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(P)}},{key:"off",value:function off(y,w){var E=w?y:"all";if(!tt(E))throw Error("Invalid event type ".concat(E));var P=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!==P}))}},{key:"_handleChannelEvent",value:function _handleChannelEvent(y){var w,E,P,q,ne,oe,ie,se=this;this._client.logger("info","channel:_handleChannelEvent - Received event of type { ".concat(y.type," } on ").concat(this.cid),{tags:["event","channel"],channel:this});var le=se.state;switch(y.type){case"typing.start":null!==(w=y.user)&&void 0!==w&&w.id&&(le.typing[y.user.id]=y);break;case"typing.stop":null!==(E=y.user)&&void 0!==E&&E.id&&delete le.typing[y.user.id];break;case"message.read":var pe,ge;if(null!==(P=y.user)&&void 0!==P&&P.id)le.read[y.user.id]={last_read:y.received_at,user:y.user},(null===(pe=y.user)||void 0===pe?void 0:pe.id)===(null===(ge=this.getClient().user)||void 0===ge?void 0:ge.id)&&(le.unreadCount=0);break;case"user.watching.start":case"user.updated":null!==(q=y.user)&&void 0!==q&&q.id&&(le.watchers[y.user.id]=y.user);break;case"user.watching.stop":null!==(ne=y.user)&&void 0!==ne&&ne.id&&delete le.watchers[y.user.id];break;case"message.deleted":y.message&&(y.hard_delete?le.removeMessage(y.message):le.addMessageSorted(y.message),y.message.pinned&&le.removePinnedMessage(y.message));break;case"message.new":if(y.message){var me,he,ve,ye=(null===(me=y.user)||void 0===me?void 0:me.id)===(null===(he=this.getClient().user)||void 0===he?void 0:he.id),_e=y.message.parent_id&&!y.message.show_in_channel;(this.state.isUpToDate||_e)&&le.addMessageSorted(y.message,ye),y.message.pinned&&le.addPinnedMessage(y.message),ye&&null!==(ve=y.user)&&void 0!==ve&&ve.id?(le.unreadCount=0,le.read[y.user.id]={last_read:new Date(y.created_at),user:y.user}):this._countMessageAsUnread(y.message)&&(le.unreadCount=le.unreadCount+1)}break;case"message.updated":y.message&&(le.addMessageSorted(y.message),y.message.pinned?le.addPinnedMessage(y.message):le.removePinnedMessage(y.message));break;case"channel.truncated":le.clearMessages(),le.unreadCount=0;break;case"member.added":case"member.updated":null!==(oe=y.member)&&void 0!==oe&&oe.user_id&&(le.members[y.member.user_id]=y.member);break;case"member.removed":null!==(ie=y.user)&&void 0!==ie&&ie.id&&delete le.members[y.user.id];break;case"channel.updated":y.channel&&(se.data=y.channel);break;case"reaction.new":y.message&&y.reaction&&(y.message=le.addReaction(y.reaction,y.message));break;case"reaction.deleted":y.reaction&&(y.message=le.removeReaction(y.reaction,y.message));break;case"reaction.updated":y.reaction&&(y.message=le.addReaction(y.reaction,y.message,!0));break;case"channel.hidden":y.clear_history&&le.clearMessages()}void 0!==y.watcher_count&&(se.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){var w=this.getClient(),E=w.state,P=w.user,q=w.userID;if(y.members){var ne,oe=_createForOfIteratorHelper$2(y.members);try{for(oe.s();!(ne=oe.n()).done;){var ie=ne.value;ie.user&&E.updateUserReference(ie.user,this.cid)}}catch(y){oe.e(y)}finally{oe.f()}}this.state.membership=y.membership||{};var se=y.messages||[];if(this.state.messages||(this.state.messages=[]),this.state.addMessagesSorted(se,!1,!0),this.state.pinnedMessages||(this.state.pinnedMessages=[]),this.state.addPinnedMessages(y.pinned_messages||[]),this.state.watcher_count=y.watcher_count||0,y.watchers){var le,pe=_createForOfIteratorHelper$2(y.watchers);try{for(pe.s();!(le=pe.n()).done;){var ge=le.value;ge&&(E.updateUserReference(ge,this.cid),this.state.watchers[ge.id]=ge)}}catch(y){pe.e(y)}finally{pe.f()}}if(null!=q){var me=this.state.last_message_at||new Date;P&&(this.state.read[P.id]={user:P,last_read:me})}if(y.read){var he,ve=_createForOfIteratorHelper$2(y.read);try{for(ve.s();!(he=ve.n()).done;){var ye=he.value,_e=_objectSpread$2(_objectSpread$2({},ye),{},{last_read:new Date(ye.last_read)});this.state.read[ye.user.id]=_e,ye.user.id===(null==P?void 0:P.id)&&"number"==typeof _e.unread_messages&&(this.state.unreadCount=_e.unread_messages)}}catch(y){ve.e(y)}finally{ve.f()}}if(y.members){var Re,we=_createForOfIteratorHelper$2(y.members);try{for(we.s();!(Re=we.n()).done;){var ke=Re.value;ke.user&&(this.state.members[ke.user.id]=ke)}}catch(y){we.e(y)}finally{we.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,this.state.setIsUpToDate(!1)}}]),Channel}();function _createForOfIteratorHelper$1(y,w){var E;if("undefined"==typeof Symbol||null==y[Symbol.iterator]){if(Array.isArray(y)||(E=function _unsupportedIterableToArray$1(y,w){if(!y)return;if("string"==typeof y)return _arrayLikeToArray$1(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$1(y,w)}(y))||w&&y&&"number"==typeof y.length){E&&(y=E);var P=0,q=function F(){};return{s:q,n:function n(){return P>=y.length?{done:!0}:{done:!1,value:y[P++]}},e:function e(y){throw y},f: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.")}var ne,oe=!0,ie=!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){ie=!0,ne=y},f:function f(){try{oe||null==E.return||E.return()}finally{if(ie)throw ne}}}}function _arrayLikeToArray$1(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E1&&void 0!==arguments[1])||arguments[1];st(y)&&(E=y.code,P="unknown",q=y.reason),dt(y)&&(E=y.error.code,P=y.error.StatusCode,q=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(q));return oe.code=E,oe.StatusCode=P,oe.isWSFailure=ne,oe})),Me()(this,"_listenForConnectionChanges",(function(){"undefined"!=typeof window&&null!=window&&null!=window.addEventListener&&(window.addEventListener("offline",w.onlineStatusChanged),window.addEventListener("online",w.onlineStatusChanged))})),Me()(this,"_removeConnectionListeners",(function(){"undefined"!=typeof window&&null!=window&&null!=window.addEventListener&&(window.removeEventListener("offline",w.onlineStatusChanged),window.removeEventListener("online",w.onlineStatusChanged))})),Me()(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)})),Me()(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=he,this.clientID=q,this.userID=me,this.user=pe,this.authType=P,this.userAgent=ge,this.apiKey=E,this.tokenManager=le,this.consecutiveFailures=0,this.totalFailures=0,this.isConnecting=!1,this.isHealthy=!1,this.recoverCallback=se,this.messageCallback=ie,this.eventCallback=ne,this.logger=oe,this.wsID=1,this.lastEvent=null,this.healthCheckInterval=3e4,this.monitorInterval=1e3,this._listenForConnectionChanges()}var y,w,E;return we()(StableWSConnection,[{key:"connect",value:(E=ve()(Ae.a.mark((function _callee(){var y;return Ae.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!==rt.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 P=this.ws;return P&&P.close&&P.readyState===P.OPEN?(w=new Promise((function(w){var q=function onclose(y){E.logger("info","connection:disconnect() - resolving isClosedPromise ".concat(y?"with":"without"," close frame"),{tags:["connection"],event:y}),w()};P.onclose=q,setTimeout(q,null!=y?y:1e3)})),this.logger("info","connection:disconnect() - Manually closed connection by calling client.disconnect()",{tags:["connection"]}),P.close(rt.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=ve()(Ae.a.mark((function _callee2(){var y,w;return Ae.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 Ue.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=ve()(Ae.a.mark((function _callee3(){var y,w,E,P=arguments;return Ae.a.wrap((function _callee3$(q){for(;;)switch(q.prev=q.next){case 0:if(y=P.length>0&&void 0!==P[0]?P[0]:{},this.logger("info","connection:_reconnect() - Initiating the reconnect",{tags:["connection"]}),!this.isConnecting&&!this.isHealthy){q.next=5;break}return this.logger("info","connection:_reconnect() - Abort (1) since already connecting or healthy",{tags:["connection"]}),q.abrupt("return");case 5:return(w=y.interval)||(w=this._retryInterval()),q.next=9,nt(w);case 9:if(!this.isConnecting&&!this.isHealthy){q.next=12;break}return this.logger("info","connection:_reconnect() - Abort (2) since already connecting or healthy",{tags:["connection"]}),q.abrupt("return");case 12:if(this.isConnecting=!0,this.logger("info","connection:_reconnect() - Destroying current WS connection",{tags:["connection"]}),this._destroyCurrentWSConnection(),!y.refreshToken){q.next=18;break}return q.next=18,this.tokenManager.loadToken();case 18:return q.prev=18,q.next=21,this._connect();case 21:if(E=q.sent,!this.recoverCallback){q.next=27;break}return this.logger("info","connection:_reconnect() - Waiting for recoverCallBack",{tags:["connection"]}),q.next=26,this.recoverCallback(E);case 26:this.logger("info","connection:_reconnect() - Finished recoverCallBack",{tags:["connection"]});case 27:this.isConnecting=!1,this.consecutiveFailures=0,q.next=40;break;case 31:if(q.prev=31,q.t0=q.catch(18),this.isConnecting=!1,this.isHealthy=!1,this.consecutiveFailures+=1,q.t0.code!==rt.TOKEN_EXPIRED||this.tokenManager.isStatic()){q.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"]}),q.abrupt("return",this._reconnect({refreshToken:!0}));case 39:q.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 q.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$1(y,w){var E=Object.keys(y);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(y);w&&(P=P.filter((function(w){return Object.getOwnPropertyDescriptor(y,w).enumerable}))),E.push.apply(E,P)}return E}function _objectSpread$1(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$1({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},P=oe()({algorithm:"HS256",noTimestamp:!0},w);return null.sign(E,y,P)}function UserFromToken(y){var w=y.split(".");if(3!==w.length)return"";var E=w[1],P=$e(E);return JSON.parse(P).user_id}function DevToken(y){return["eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",We(JSON.stringify({user_id:y})),"devtoken"].join(".")}function CheckSignature(w,E,P){var q=y.from(E,"ascii");return null.createHmac("sha256",q).update(w).digest("hex")===P}var lt=function TokenManager(y){var w=this;_e()(this,TokenManager),Me()(this,"loadTokenPromise",void 0),Me()(this,"type",void 0),Me()(this,"secret",void 0),Me()(this,"token",void 0),Me()(this,"tokenProvider",void 0),Me()(this,"user",void 0),Me()(this,"setTokenOrProvider",function(){var y=ve()(Ae.a.mark((function _callee(y,E){return Ae.a.wrap((function _callee$(P){for(;;)switch(P.prev=P.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"),P.next=7,w.loadToken();case 7:case"end":return P.stop()}}),_callee)})));return function(w,E){return y.apply(this,arguments)}}()),Me()(this,"reset",(function(){w.token=void 0,w.user=void 0,w.loadTokenPromise=null})),Me()(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 P=UserFromToken(y);if(null!=y&&(null==P||""===P||P!==E.id))throw new Error("userToken does not have a user_id or is not matching with user.id")}}})),Me()(this,"tokenReady",(function(){return w.loadTokenPromise})),Me()(this,"loadToken",(function(){return w.loadTokenPromise=new Promise(function(){var y=ve()(Ae.a.mark((function _callee2(y){return Ae.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})),Me()(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.connectUser wasn't called or client.disconnect was called")})),Me()(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(y,w){var E;if("undefined"==typeof Symbol||null==y[Symbol.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 P=0,q=function F(){};return{s:q,n:function n(){return P>=y.length?{done:!0}:{done:!1,value:y[P++]}},e:function e(y){throw y},f: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.")}var ne,oe=!0,ie=!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){ie=!0,ne=y},f:function f(){try{oe||null==E.return||E.return()}finally{if(ie)throw ne}}}}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E3&&void 0!==ie[3]?ie[3]:{},se.next=3,q.tokenManager.tokenReady();case 3:ne=q._enrichAxiosOptions(P),se.prev=4,q._logApiRequest(y,w,E,ne),se.t0=y,se.next="get"===se.t0?9:"delete"===se.t0?13:"post"===se.t0?17:"put"===se.t0?21:"patch"===se.t0?25:"options"===se.t0?29:33;break;case 9:return se.next=11,q.axiosInstance.get(w,ne);case 11:return oe=se.sent,se.abrupt("break",34);case 13:return se.next=15,q.axiosInstance.delete(w,ne);case 15:return oe=se.sent,se.abrupt("break",34);case 17:return se.next=19,q.axiosInstance.post(w,E,ne);case 19:return oe=se.sent,se.abrupt("break",34);case 21:return se.next=23,q.axiosInstance.put(w,E,ne);case 23:return oe=se.sent,se.abrupt("break",34);case 25:return se.next=27,q.axiosInstance.patch(w,E,ne);case 27:return oe=se.sent,se.abrupt("break",34);case 29:return se.next=31,q.axiosInstance.options(w,ne);case 31:return oe=se.sent,se.abrupt("break",34);case 33:throw new Error("Invalid request type");case 34:return q._logApiResponse(y,w,oe),se.abrupt("return",q.handleResponse(oe));case 38:if(se.prev=38,se.t1=se.catch(4),q._logApiError(y,w,se.t1),!se.t1.response){se.next=50;break}if(se.t1.response.data.code!==rt.TOKEN_EXPIRED||q.tokenManager.isStatic()){se.next=47;break}return q.tokenManager.loadToken(),se.next=46,q.doAxiosRequest(y,w,E,P);case 46:return se.abrupt("return",se.sent);case 47:return se.abrupt("return",q.handleResponse(se.t1.response));case 50:throw se.t1;case 51:case"end":return se.stop()}}),_callee3,null,[[4,38]])})));return function(w,E,P){return y.apply(this,arguments)}}()),Me()(this,"dispatchEvent",(function(y){q._handleClientEvent(y);var w=y.cid,E=w?q.activeChannels[w]:void 0;E&&E._handleChannelEvent(y),q._callClientListeners(y),E&&E._callChannelListeners(y)})),Me()(this,"handleEvent",(function(y){var w=y.data,E=JSON.parse(w);E.received_at=new Date,q.dispatchEvent(E)})),Me()(this,"_callClientListeners",(function(y){var w=q,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 P=0,ne=E;P0&&(ne.data=E,ne._data=E),ne}var oe=new ot(q,y,w,E);return q.activeChannels[oe.cid]=oe,oe})),Me()(this,"updateUsers",this.upsertUsers),Me()(this,"updateUser",this.upsertUser),Me()(this,"_isUsingServerAuth",(function(){return!!q.secret})),this.key=y,this.listeners={},this.state=new it,this.mutedChannels=[],this.mutedUsers=[],w&&isString(w)&&(this.secret=w);var ne=E||(w&&!isString(w)?w:{});this.browser=void 0!==ne.browser?ne.browser:"undefined"!=typeof window,this.node=!this.browser,this.options=_objectSpread({timeout:3e3,withCredentials:!1,warmUp:!1,recoverStateOnReconnect:!0},ne),this.node&&(this.options.httpsAgent=new null.Agent({keepAlive:!0,keepAliveMsecs:3e3})),this.axiosInstance=Oe.a.create(this.options),this.setBaseURL(this.options.baseURL||"https://chat-us-east-1.stream-io-api.com"),void 0!==P&&P.env.STREAM_LOCAL_TEST_RUN&&this.setBaseURL("http://localhost:3030"),void 0!==P&&P.env.STREAM_LOCAL_TEST_HOST&&this.setBaseURL("http://"+P.env.STREAM_LOCAL_TEST_HOST),this.wsConnection=null,this.wsPromise=null,this.setUserPromise=null,this.activeChannels={},this.configs={},this.anonymous=!1,this.tokenManager=new lt(this.secret),this.logger=isFunction(ne.logger)?ne.logger:function(){return null},this.recoverStateOnReconnect=this.options.recoverStateOnReconnect}var w,E,q,ne,ie,le,ge,he,ye,Re,ke,Se,Te,Fe,je,Be,Ve,Ne,Ue,We,$e,Ye,Xe,et,nt,st,dt,ut,pt,gt,mt,ht,ft,vt,yt,bt;return we()(StreamChat,[{key:"devToken",value:function devToken(y){return DevToken(y)}},{key:"getAuthType",value:function getAuthType(){return this.anonymous?"anonymous":"jwt"}},{key:"setBaseURL",value:function setBaseURL(y){this.baseURL=y,this.wsBaseURL=this.baseURL.replace("http","ws")}},{key:"_setUser",value:function _setUser(y){this.user=y,this._user=_objectSpread({},y)}},{key:"updateAppSettings",value:(bt=ve()(Ae.a.mark((function _callee5(w){var E;return Ae.a.wrap((function _callee5$(P){for(;;)switch(P.prev=P.next){case 0:return null!==(E=w.apn_config)&&void 0!==E&&E.p12_cert&&(w.apn_config.p12_cert=y.from(w.apn_config.p12_cert).toString("base64")),P.next=3,this.patch(this.baseURL+"/app",w);case 3:return P.abrupt("return",P.sent);case 4:case"end":return P.stop()}}),_callee5,this)}))),function updateAppSettings(y){return bt.apply(this,arguments)})},{key:"getAppSettings",value:(yt=ve()(Ae.a.mark((function _callee6(){return Ae.a.wrap((function _callee6$(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,this.get(this.baseURL+"/app");case 2:return y.abrupt("return",y.sent);case 3:case"end":return y.stop()}}),_callee6,this)}))),function getAppSettings(){return yt.apply(this,arguments)})},{key:"testPushSettings",value:(vt=ve()(Ae.a.mark((function _callee7(y){var w,E=arguments;return Ae.a.wrap((function _callee7$(P){for(;;)switch(P.prev=P.next){case 0:return w=E.length>1&&void 0!==E[1]?E[1]:{},P.next=3,this.post(this.baseURL+"/check_push",_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({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}:{}),w.skipDevices?{skip_devices:!0}:{}));case 3:return P.abrupt("return",P.sent);case 4:case"end":return P.stop()}}),_callee7,this)}))),function testPushSettings(y){return vt.apply(this,arguments)})},{key:"testSQSSettings",value:(ft=ve()(Ae.a.mark((function _callee8(){var y,w=arguments;return Ae.a.wrap((function _callee8$(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+"/check_sqs",y);case 3:return E.abrupt("return",E.sent);case 4:case"end":return E.stop()}}),_callee8,this)}))),function testSQSSettings(){return ft.apply(this,arguments)})},{key:"setGuestUser",value:(ht=ve()(Ae.a.mark((function _callee9(y){var w,E,P;return Ae.a.wrap((function _callee9$(q){for(;;)switch(q.prev=q.next){case 0:return this.anonymous=!0,q.prev=1,q.next=4,this.post(this.baseURL+"/guest",{user:y});case 4:w=q.sent,q.next=11;break;case 7:throw q.prev=7,q.t0=q.catch(1),this.anonymous=!1,q.t0;case 11:return this.anonymous=!1,(E=w.user).created_at,E.updated_at,E.last_active,E.online,P=pe()(E,["created_at","updated_at","last_active","online"]),q.next=15,this.connectUser(P,w.access_token);case 15:return q.abrupt("return",q.sent);case 16:case"end":return q.stop()}}),_callee9,this,[[1,7]])}))),function setGuestUser(y){return ht.apply(this,arguments)})},{key:"createToken",value:function createToken(y,w){if(null==this.secret)throw Error("tokens can only be created server-side using the API Secret");var E={};return w&&(E.exp=w),JWTUserToken(this.secret,y,E,{})}},{key:"on",value:function on(y,w){var E=this,P=w?y:"all";if(!tt(P))throw Error("Invalid event type ".concat(P));var q=w||y;return P in this.listeners||(this.listeners[P]=[]),this.logger("info","Attaching listener for ".concat(P," event"),{tags:["event","client"]}),this.listeners[P].push(q),{unsubscribe:function unsubscribe(){E.listeners[P]=E.listeners[P].filter((function(y){return y!==q}))}}}},{key:"off",value:function off(y,w){var E=w?y:"all";if(!tt(E))throw Error("Invalid event type ".concat(E));var P=w||y;E in this.listeners||(this.listeners[E]=[]),this.logger("info","Removing listener for ".concat(E," event"),{tags:["event","client"]}),this.listeners[E]=this.listeners[E].filter((function(y){return y!==P}))}},{key:"_logApiRequest",value:function _logApiRequest(y,w,E,P){this.logger("info","client: ".concat(y," - Request - ").concat(w),{tags:["api","api_request","client"],url:w,payload:E,config:P})}},{key:"_logApiResponse",value:function _logApiResponse(y,w,E){this.logger("info","client:".concat(y," - Response - url: ").concat(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,P,q){var ne=addFileToFormData(w,E,P);return null!=q&&ne.append("user",JSON.stringify(q)),this.doAxiosRequest("post",y,ne,{headers:ne.getHeaders?ne.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,P,q=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===(P=y.user)||void 0===P?void 0:P.id)===this.userID&&(this.user=this.user&&_objectSpread(_objectSpread({},this.user),y.user),Object.keys(y.user).forEach((function(w){q._user&&w in q._user&&(q._user[w]=y.user[w])}))),q.state.updateUser(y.user),q._updateUserReferences(y.user));"health.check"===y.type&&y.me&&(q.user=y.me,q.state.updateUser(y.me),q.mutedChannels=y.me.channel_mutes,q.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&&w.channel_mutes&&(this.mutedChannels=y.me.channel_mutes),"notification.mutes_updated"===y.type&&null!==(E=y.me)&&void 0!==E&&E.mutes&&(this.mutedUsers=y.me.mutes)}},{key:"_muteStatus",value:function _muteStatus(y){var w;return this.mutedChannels.forEach((function(E){var P;if((null===(P=E.channel)||void 0===P?void 0:P.cid)===y){var q=!0;E.expires&&(q=new Date(E.expires).getTime()>(new Date).getTime()),w={muted:q,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,P=Object.keys(w);E1&&void 0!==ne[1]?ne[1]:[],E=ne.length>2&&void 0!==ne[2]?ne[2]:{},P={presence:!1},oe.next=5,this.setUserPromise;case 5:return this._hasConnectionID()||(P.presence=!1),oe.next=8,this.get(this.baseURL+"/users",{payload:_objectSpread(_objectSpread({filter_conditions:y,sort:normalizeQuerySort(w)},P),E)});case 8:return q=oe.sent,this.state.updateUsers(q.users),oe.abrupt("return",q);case 11:case"end":return oe.stop()}}),_callee11,this)}))),function queryUsers(y){return gt.apply(this,arguments)})},{key:"queryBannedUsers",value:(pt=ve()(Ae.a.mark((function _callee12(){var y,w,E,P=arguments;return Ae.a.wrap((function _callee12$(q){for(;;)switch(q.prev=q.next){case 0:return y=P.length>0&&void 0!==P[0]?P[0]:{},w=P.length>1&&void 0!==P[1]?P[1]:[],E=P.length>2&&void 0!==P[2]?P[2]:{},q.next=5,this.get(this.baseURL+"/query_banned_users",{payload:_objectSpread({filter_conditions:y,sort:normalizeQuerySort(w)},E)});case 5:return q.abrupt("return",q.sent);case 6:case"end":return q.stop()}}),_callee12,this)}))),function queryBannedUsers(){return pt.apply(this,arguments)})},{key:"queryChannels",value:(ut=ve()(Ae.a.mark((function _callee13(y){var w,E,P,q,ne,oe,ie,se,le,pe,ge,me,he,ve=arguments;return Ae.a.wrap((function _callee13$(ye){for(;;)switch(ye.prev=ye.next){case 0:return w=ve.length>1&&void 0!==ve[1]?ve[1]:[],E=ve.length>2&&void 0!==ve[2]?ve[2]:{},P={state:!0,watch:!0,presence:!1},ye.next=5,this.setUserPromise;case 5:return this._hasConnectionID()||(P.watch=!1),q=_objectSpread(_objectSpread({filter_conditions:y,sort:normalizeQuerySort(w)},P),E),ye.next=9,this.post(this.baseURL+"/channels",q);case 9:ne=ye.sent,oe=[],ie=_createForOfIteratorHelper(ne.channels);try{for(ie.s();!(se=ie.n()).done;)le=se.value,this._addChannelConfig(le)}catch(y){ie.e(y)}finally{ie.f()}pe=_createForOfIteratorHelper(ne.channels);try{for(pe.s();!(ge=pe.n()).done;)me=ge.value,(he=this.channel(me.channel.type,me.channel.id)).data=me.channel,he.initialized=!0,he._initializeState(me),oe.push(he)}catch(y){pe.e(y)}finally{pe.f()}return ye.abrupt("return",oe);case 16:case"end":return ye.stop()}}),_callee13,this)}))),function queryChannels(y){return ut.apply(this,arguments)})},{key:"search",value:(dt=ve()(Ae.a.mark((function _callee14(y,w){var E,P,q=arguments;return Ae.a.wrap((function _callee14$(ne){for(;;)switch(ne.prev=ne.next){case 0:if(E=q.length>2&&void 0!==q[2]?q[2]:{},P=_objectSpread({filter_conditions:y},E),"string"!=typeof w){ne.next=6;break}P.query=w,ne.next=11;break;case 6:if("object"!==se()(w)){ne.next=10;break}P.message_filter_conditions=w,ne.next=11;break;case 10:throw Error("Invalid type ".concat(se()(w)," for query parameter"));case 11:return ne.next=13,this.setUserPromise;case 13:return ne.next=15,this.get(this.baseURL+"/search",{payload:P});case 15:return ne.abrupt("return",ne.sent);case 16:case"end":return ne.stop()}}),_callee14,this)}))),function search(y,w){return dt.apply(this,arguments)})},{key:"addDevice",value:(st=ve()(Ae.a.mark((function _callee15(y,w,E){return Ae.a.wrap((function _callee15$(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this.post(this.baseURL+"/devices",_objectSpread({id:y,push_provider:w},null!=E?{user_id:E}:{}));case 2:return P.abrupt("return",P.sent);case 3:case"end":return P.stop()}}),_callee15,this)}))),function addDevice(y,w,E){return st.apply(this,arguments)})},{key:"getDevices",value:(nt=ve()(Ae.a.mark((function _callee16(y){return Ae.a.wrap((function _callee16$(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()}}),_callee16,this)}))),function getDevices(y){return nt.apply(this,arguments)})},{key:"removeDevice",value:(et=ve()(Ae.a.mark((function _callee17(y,w){return Ae.a.wrap((function _callee17$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.delete(this.baseURL+"/devices",_objectSpread({id:y},w?{user_id:w}:{}));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee17,this)}))),function removeDevice(y,w){return et.apply(this,arguments)})},{key:"getRateLimits",value:(Xe=ve()(Ae.a.mark((function _callee18(y){var w,E,P,q,ne,oe;return Ae.a.wrap((function _callee18$(ie){for(;;)switch(ie.prev=ie.next){case 0:return E=(w=y||{}).serverSide,P=w.web,q=w.android,ne=w.ios,oe=w.endpoints,ie.abrupt("return",this.get(this.baseURL+"/rate_limits",{server_side:E,web:P,android:q,ios:ne,endpoints:oe?oe.join(","):void 0}));case 2:case"end":return ie.stop()}}),_callee18,this)}))),function getRateLimits(y){return Xe.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 connectUser or connectAnonymousUser before creating a channel");if(~y.indexOf(":"))throw Error("Invalid channel group ".concat(y,", can't contain the : character"));return null==w||""===w?new ot(this,y,void 0,E):"object"===se()(w)?this.getChannelByMembers(y,w):this.getChannelById(y,w,E)}},{key:"partialUpdateUser",value:(Ye=ve()(Ae.a.mark((function _callee19(y){return Ae.a.wrap((function _callee19$(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()}}),_callee19,this)}))),function partialUpdateUser(y){return Ye.apply(this,arguments)})},{key:"upsertUsers",value:($e=ve()(Ae.a.mark((function _callee20(y){var w,E,P,q;return Ae.a.wrap((function _callee20$(ne){for(;;)switch(ne.prev=ne.next){case 0:w={},E=_createForOfIteratorHelper(y),ne.prev=2,E.s();case 4:if((P=E.n()).done){ne.next=11;break}if((q=P.value).id){ne.next=8;break}throw Error("User ID is required when updating a user");case 8:w[q.id]=q;case 9:ne.next=4;break;case 11:ne.next=16;break;case 13:ne.prev=13,ne.t0=ne.catch(2),E.e(ne.t0);case 16:return ne.prev=16,E.f(),ne.finish(16);case 19:return ne.next=21,this.post(this.baseURL+"/users",{users:w});case 21:return ne.abrupt("return",ne.sent);case 22:case"end":return ne.stop()}}),_callee20,this,[[2,13,16,19]])}))),function upsertUsers(y){return $e.apply(this,arguments)})},{key:"upsertUser",value:function upsertUser(y){return this.upsertUsers([y])}},{key:"partialUpdateUsers",value:(We=ve()(Ae.a.mark((function _callee21(y){var w,E;return Ae.a.wrap((function _callee21$(P){for(;;)switch(P.prev=P.next){case 0:w=_createForOfIteratorHelper(y),P.prev=1,w.s();case 3:if((E=w.n()).done){P.next=9;break}if(E.value.id){P.next=7;break}throw Error("User ID is required when updating a user");case 7:P.next=3;break;case 9:P.next=14;break;case 11:P.prev=11,P.t0=P.catch(1),w.e(P.t0);case 14:return P.prev=14,w.f(),P.finish(14);case 17:return P.next=19,this.patch(this.baseURL+"/users",{users:y});case 19:return P.abrupt("return",P.sent);case 20:case"end":return P.stop()}}),_callee21,this,[[1,11,14,17]])}))),function partialUpdateUsers(y){return We.apply(this,arguments)})},{key:"deleteUser",value:(Ue=ve()(Ae.a.mark((function _callee22(y,w){return Ae.a.wrap((function _callee22$(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()}}),_callee22,this)}))),function deleteUser(y,w){return Ue.apply(this,arguments)})},{key:"reactivateUser",value:(Ne=ve()(Ae.a.mark((function _callee23(y,w){return Ae.a.wrap((function _callee23$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.post(this.baseURL+"/users/".concat(y,"/reactivate"),_objectSpread({},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee23,this)}))),function reactivateUser(y,w){return Ne.apply(this,arguments)})},{key:"deactivateUser",value:(Ve=ve()(Ae.a.mark((function _callee24(y,w){return Ae.a.wrap((function _callee24$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.post(this.baseURL+"/users/".concat(y,"/deactivate"),_objectSpread({},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee24,this)}))),function deactivateUser(y,w){return Ve.apply(this,arguments)})},{key:"exportUser",value:(Be=ve()(Ae.a.mark((function _callee25(y,w){return Ae.a.wrap((function _callee25$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.get(this.baseURL+"/users/".concat(y,"/export"),_objectSpread({},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee25,this)}))),function exportUser(y,w){return Be.apply(this,arguments)})},{key:"banUser",value:(je=ve()(Ae.a.mark((function _callee26(y,w){return Ae.a.wrap((function _callee26$(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({target_user_id:y},w));case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}}),_callee26,this)}))),function banUser(y,w){return je.apply(this,arguments)})},{key:"unbanUser",value:(Fe=ve()(Ae.a.mark((function _callee27(y,w){return Ae.a.wrap((function _callee27$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.delete(this.baseURL+"/moderation/ban",_objectSpread({target_user_id:y},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee27,this)}))),function unbanUser(y,w){return Fe.apply(this,arguments)})},{key:"shadowBan",value:(Te=ve()(Ae.a.mark((function _callee28(y,w){return Ae.a.wrap((function _callee28$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.banUser(y,_objectSpread({shadow:!0},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee28,this)}))),function shadowBan(y,w){return Te.apply(this,arguments)})},{key:"removeShadowBan",value:(Se=ve()(Ae.a.mark((function _callee29(y,w){return Ae.a.wrap((function _callee29$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.unbanUser(y,_objectSpread({shadow:!0},w));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee29,this)}))),function removeShadowBan(y,w){return Se.apply(this,arguments)})},{key:"muteUser",value:(ke=ve()(Ae.a.mark((function _callee30(y,w){var E,P=arguments;return Ae.a.wrap((function _callee30$(q){for(;;)switch(q.prev=q.next){case 0:return E=P.length>2&&void 0!==P[2]?P[2]:{},q.next=3,this.post(this.baseURL+"/moderation/mute",_objectSpread(_objectSpread({target_id:y},w?{user_id:w}:{}),E));case 3:return q.abrupt("return",q.sent);case 4:case"end":return q.stop()}}),_callee30,this)}))),function muteUser(y,w){return ke.apply(this,arguments)})},{key:"unmuteUser",value:(Re=ve()(Ae.a.mark((function _callee31(y,w){return Ae.a.wrap((function _callee31$(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.post(this.baseURL+"/moderation/unmute",_objectSpread({target_id:y},w?{user_id:w}:{}));case 2:return E.abrupt("return",E.sent);case 3:case"end":return E.stop()}}),_callee31,this)}))),function unmuteUser(y,w){return Re.apply(this,arguments)})},{key:"userMuteStatus",value:function userMuteStatus(y){if(!this.user||!this.wsPromise)throw new Error("Make sure to await connectUser() first.");for(var w=0;w1&&void 0!==E[1]?E[1]:{},P.next=3,this.post(this.baseURL+"/moderation/flag",_objectSpread({target_message_id:y},w));case 3:return P.abrupt("return",P.sent);case 4:case"end":return P.stop()}}),_callee32,this)}))),function flagMessage(y){return ye.apply(this,arguments)})},{key:"flagUser",value:(he=ve()(Ae.a.mark((function _callee33(y){var w,E=arguments;return Ae.a.wrap((function _callee33$(P){for(;;)switch(P.prev=P.next){case 0:return w=E.length>1&&void 0!==E[1]?E[1]:{},P.next=3,this.post(this.baseURL+"/moderation/flag",_objectSpread({target_user_id:y},w));case 3:return P.abrupt("return",P.sent);case 4:case"end":return P.stop()}}),_callee33,this)}))),function flagUser(y){return he.apply(this,arguments)})},{key:"unflagMessage",value:(ge=ve()(Ae.a.mark((function _callee34(y){var w,E=arguments;return Ae.a.wrap((function _callee34$(P){for(;;)switch(P.prev=P.next){case 0:return w=E.length>1&&void 0!==E[1]?E[1]:{},P.next=3,this.post(this.baseURL+"/moderation/unflag",_objectSpread({target_message_id:y},w));case 3:return P.abrupt("return",P.sent);case 4:case"end":return P.stop()}}),_callee34,this)}))),function unflagMessage(y){return ge.apply(this,arguments)})},{key:"unflagUser",value:(le=ve()(Ae.a.mark((function _callee35(y){var w,E=arguments;return Ae.a.wrap((function _callee35$(P){for(;;)switch(P.prev=P.next){case 0:return w=E.length>1&&void 0!==E[1]?E[1]:{},P.next=3,this.post(this.baseURL+"/moderation/unflag",_objectSpread({target_user_id:y},w));case 3:return P.abrupt("return",P.sent);case 4:case"end":return P.stop()}}),_callee35,this)}))),function unflagUser(y){return le.apply(this,arguments)})},{key:"markAllRead",value:(ie=ve()(Ae.a.mark((function _callee36(){var y,w=arguments;return Ae.a.wrap((function _callee36$(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({},y));case 3:case"end":return E.stop()}}),_callee36,this)}))),function markAllRead(){return ie.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:(ne=ve()(Ae.a.mark((function _callee37(y,w){return Ae.a.wrap((function _callee37$(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()}}),_callee37,this)}))),function translateMessage(y,w){return ne.apply(this,arguments)})},{key:"pinMessage",value:function pinMessage(y,w){var E;if("number"==typeof w){var P=new Date;P.setSeconds(P.getSeconds()+w),E=P.toISOString()}else isString(w)?E=w:w instanceof Date&&(E=w.toISOString());return this.updateMessage(_objectSpread(_objectSpread({},y),{},{pinned:!0,pin_expires:E}))}},{key:"unpinMessage",value:function unpinMessage(y){return this.updateMessage(_objectSpread(_objectSpread({},y),{},{pinned:!1}))}},{key:"updateMessage",value:(q=ve()(Ae.a.mark((function _callee38(y,w){var E;return Ae.a.wrap((function _callee38$(P){for(;;)switch(P.prev=P.next){case 0:if(y.id){P.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","__html"].forEach((function(y){null!=E[y]&&delete E[y]})),null!=w&&(isString(w)?E.user_id=w:E.user={id:w.id}),Array.isArray(E.mentioned_users)&&!isString(E.mentioned_users[0])&&(E.mentioned_users=E.mentioned_users.map((function(y){return y.id}))),P.next=10,this.post(this.baseURL+"/messages/".concat(y.id),{message:E});case 10:return P.abrupt("return",P.sent);case 11:case"end":return P.stop()}}),_callee38,this)}))),function updateMessage(y,w){return q.apply(this,arguments)})},{key:"deleteMessage",value:(E=ve()(Ae.a.mark((function _callee39(y,w){var E;return Ae.a.wrap((function _callee39$(P){for(;;)switch(P.prev=P.next){case 0:return E={},w&&(E={hard:!0}),P.next=4,this.delete(this.baseURL+"/messages/".concat(y),E);case 4:return P.abrupt("return",P.sent);case 5:case"end":return P.stop()}}),_callee39,this)}))),function deleteMessage(y,w){return E.apply(this,arguments)})},{key:"getMessage",value:(w=ve()(Ae.a.mark((function _callee40(y){return Ae.a.wrap((function _callee40$(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()}}),_callee40,this)}))),function getMessage(y){return w.apply(this,arguments)})},{key:"getUserAgent",value:function getUserAgent(){return this.userAgent||"stream-chat-javascript-client-".concat(this.node?"node":"browser","-","3.6.2")}},{key:"setUserAgent",value:function setUserAgent(y){this.userAgent=y}},{key:"_enrichAxiosOptions",value:function _enrichAxiosOptions(){var y,w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{params:{},headers:{},config:{}},E=this._getToken();return _objectSpread({params:_objectSpread(_objectSpread({user_id:this.userID},w.params),{},{api_key:this.key,connection_id:null===(y=this.wsConnection)||void 0===y?void 0:y.connectionID}),headers:_objectSpread({Authorization:E,"stream-auth-type":this.getAuthType(),"X-Stream-Client":this.getUserAgent()},w.headers)},w.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]:mt,P=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ht,q=arguments.length>4&&void 0!==arguments[4]&&arguments[4],ne=arguments.length>5&&void 0!==arguments[5]?arguments[5]:pt;_e()(this,Permission),Me()(this,"name",void 0),Me()(this,"action",void 0),Me()(this,"owner",void 0),Me()(this,"priority",void 0),Me()(this,"resources",void 0),Me()(this,"roles",void 0),this.name=y,this.action=ne,this.owner=q,this.priority=w,this.resources=E,this.roles=P},bt=new yt("Allow all",ft,mt,ht,!1,pt),_t=new yt("Deny all",vt,mt,ht,!1,gt),Rt={Admin:"admin",Anonymous:"anonymous",ChannelMember:"channel_member",ChannelModerator:"channel_moderator",Guest:"guest",User:"user"},xt={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(530).Buffer,E(171))},function(y,w,E){"use strict";(function(y){var P=E(424),q=E(1028),ne=E(1029);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(y,w){if(kMaxLength()=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 P=!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(P)return utf8ToBytes(y).length;w=(""+w).toLowerCase(),P=!0}}function slowToString(y,w,E){var P=!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(P)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),P=!0}}function swap(y,w,E){var P=y[w];y[w]=y[E],y[E]=P}function bidirectionalIndexOf(y,w,E,P,q){if(0===y.length)return-1;if("string"==typeof E?(P=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,isNaN(E)&&(E=q?0:y.length-1),E<0&&(E=y.length+E),E>=y.length){if(q)return-1;E=y.length-1}else if(E<0){if(!q)return-1;E=0}if("string"==typeof w&&(w=Buffer.from(w,P)),Buffer.isBuffer(w))return 0===w.length?-1:arrayIndexOf(y,w,E,P,q);if("number"==typeof w)return w&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?q?Uint8Array.prototype.indexOf.call(y,w,E):Uint8Array.prototype.lastIndexOf.call(y,w,E):arrayIndexOf(y,[w],E,P,q);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(y,w,E,P,q){var ne,oe=1,ie=y.length,se=w.length;if(void 0!==P&&("ucs2"===(P=String(P).toLowerCase())||"ucs-2"===P||"utf16le"===P||"utf-16le"===P)){if(y.length<2||w.length<2)return-1;oe=2,ie/=2,se/=2,E/=2}function read(y,w){return 1===oe?y[w]:y.readUInt16BE(w*oe)}if(q){var le=-1;for(ne=E;neie&&(E=ie-se),ne=E;ne>=0;ne--){for(var pe=!0,ge=0;geq&&(P=q):P=q;var ne=w.length;if(ne%2!=0)throw new TypeError("Invalid hex string");P>ne/2&&(P=ne/2);for(var oe=0;oe>8,q=E%256,ne.push(q),ne.push(P);return ne}(w,y.length-E),y,E,P)}function base64Slice(y,w,E){return 0===w&&E===y.length?P.fromByteArray(y):P.fromByteArray(y.slice(w,E))}function utf8Slice(y,w,E){E=Math.min(y.length,E);for(var P=[],q=w;q239?4:pe>223?3:pe>191?2:1;if(q+me<=E)switch(me){case 1:pe<128&&(ge=pe);break;case 2:128==(192&(ne=y[q+1]))&&(le=(31&pe)<<6|63&ne)>127&&(ge=le);break;case 3:ne=y[q+1],ie=y[q+2],128==(192&ne)&&128==(192&ie)&&(le=(15&pe)<<12|(63&ne)<<6|63&ie)>2047&&(le<55296||le>57343)&&(ge=le);break;case 4:ne=y[q+1],ie=y[q+2],se=y[q+3],128==(192&ne)&&128==(192&ie)&&128==(192&se)&&(le=(15&pe)<<18|(63&ne)<<12|(63&ie)<<6|63&se)>65535&&le<1114112&&(ge=le)}null===ge?(ge=65533,me=1):ge>65535&&(ge-=65536,P.push(ge>>>10&1023|55296),ge=56320|1023&ge),P.push(ge),q+=me}return function decodeCodePointsArray(y){var w=y.length;if(w<=oe)return String.fromCharCode.apply(String,y);var E="",P=0;for(;P0&&(y=this.toString("hex",0,E).match(/.{2}/g).join(" "),this.length>E&&(y+=" ... ")),""},Buffer.prototype.compare=function compare(y,w,E,P,q){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===P&&(P=0),void 0===q&&(q=this.length),w<0||E>y.length||P<0||q>this.length)throw new RangeError("out of range index");if(P>=q&&w>=E)return 0;if(P>=q)return-1;if(w>=E)return 1;if(this===y)return 0;for(var ne=(q>>>=0)-(P>>>=0),oe=(E>>>=0)-(w>>>=0),ie=Math.min(ne,oe),se=this.slice(P,q),le=y.slice(w,E),pe=0;peq)&&(E=q),y.length>0&&(E<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var ne=!1;;)switch(P){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(ne)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),ne=!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 P="";E=Math.min(y.length,E);for(var q=w;qP)&&(E=P);for(var q="",ne=w;neE)throw new RangeError("Trying to access beyond buffer length")}function checkInt(y,w,E,P,q,ne){if(!Buffer.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>q||wy.length)throw new RangeError("Index out of range")}function objectWriteUInt16(y,w,E,P){w<0&&(w=65535+w+1);for(var q=0,ne=Math.min(y.length-E,2);q>>8*(P?q:1-q)}function objectWriteUInt32(y,w,E,P){w<0&&(w=4294967295+w+1);for(var q=0,ne=Math.min(y.length-E,4);q>>8*(P?q:3-q)&255}function checkIEEE754(y,w,E,P,q,ne){if(E+P>y.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function writeFloat(y,w,E,P,ne){return ne||checkIEEE754(y,0,E,4),q.write(y,w,E,P,23,4),E+4}function writeDouble(y,w,E,P,ne){return ne||checkIEEE754(y,0,E,8),q.write(y,w,E,P,52,8),E+8}Buffer.prototype.slice=function slice(y,w){var E,P=this.length;if((y=~~y)<0?(y+=P)<0&&(y=0):y>P&&(y=P),(w=void 0===w?P:~~w)<0?(w+=P)<0&&(w=0):w>P&&(w=P),w0&&(q*=256);)P+=this[y+--w]*q;return P},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 P=this[y],q=1,ne=0;++ne=(q*=128)&&(P-=Math.pow(2,8*w)),P},Buffer.prototype.readIntBE=function readIntBE(y,w,E){y|=0,w|=0,E||checkOffset(y,w,this.length);for(var P=w,q=1,ne=this[y+--P];P>0&&(q*=256);)ne+=this[y+--P]*q;return ne>=(q*=128)&&(ne-=Math.pow(2,8*w)),ne},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),q.read(this,y,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(y,w){return w||checkOffset(y,4,this.length),q.read(this,y,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(y,w){return w||checkOffset(y,8,this.length),q.read(this,y,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(y,w){return w||checkOffset(y,8,this.length),q.read(this,y,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(y,w,E,P){(y=+y,w|=0,E|=0,P)||checkInt(this,y,w,E,Math.pow(2,8*E)-1,0);var q=1,ne=0;for(this[w]=255&y;++ne=0&&(ne*=256);)this[w+q]=y/ne&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,P){if(y=+y,w|=0,!P){var q=Math.pow(2,8*E-1);checkInt(this,y,w,E,q-1,-q)}var ne=0,oe=1,ie=0;for(this[w]=255&y;++ne>0)-ie&255;return w+E},Buffer.prototype.writeIntBE=function writeIntBE(y,w,E,P){if(y=+y,w|=0,!P){var q=Math.pow(2,8*E-1);checkInt(this,y,w,E,q-1,-q)}var ne=E-1,oe=1,ie=0;for(this[w+ne]=255&y;--ne>=0&&(oe*=256);)y<0&&0===ie&&0!==this[w+ne+1]&&(ie=1),this[w+ne]=(y/oe>>0)-ie&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,P){if(E||(E=0),P||0===P||(P=this.length),w>=y.length&&(w=y.length),w||(w=0),P>0&&P=this.length)throw new RangeError("sourceStart out of bounds");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),y.length-w=0;--q)y[q+w]=this[q+E];else if(ne<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(q=0;q>>=0,E=void 0===E?this.length:E>>>0,y||(y=0),"number"==typeof y)for(ne=w;ne55295&&E<57344){if(!q){if(E>56319){(w-=3)>-1&&ne.push(239,191,189);continue}if(oe+1===P){(w-=3)>-1&&ne.push(239,191,189);continue}q=E;continue}if(E<56320){(w-=3)>-1&&ne.push(239,191,189),q=E;continue}E=65536+(q-55296<<10|E-56320)}else q&&(w-=3)>-1&&ne.push(239,191,189);if(q=null,E<128){if((w-=1)<0)break;ne.push(E)}else if(E<2048){if((w-=2)<0)break;ne.push(E>>6|192,63&E|128)}else if(E<65536){if((w-=3)<0)break;ne.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;ne.push(E>>18|240,E>>12&63|128,E>>6&63|128,63&E|128)}}return ne}function base64ToBytes(y){return P.toByteArray(function base64clean(y){if((y=function stringtrim(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}(y).replace(ie,"")).length<2)return"";for(;y.length%4!=0;)y+="=";return y}(y))}function blitBuffer(y,w,E,P){for(var q=0;q=w.length||q>=y.length);++q)w[q+E]=y[q];return q}}).call(this,E(67))},function(y,w){y.exports=function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E=200&&y<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};P.forEach(["delete","get","head"],(function forEachMethodNoData(y){oe.headers[y]={}})),P.forEach(["post","put","patch"],(function forEachMethodWithData(y){oe.headers[y]=P.merge(ne)})),y.exports=oe}).call(this,E(171))},function(y,w,E){"use strict";var P=E(75),q=E(1040),ne=E(1042),oe=E(534),ie=E(1043),se=E(1046),le=E(1047),pe=E(538);y.exports=function xhrAdapter(y){return new Promise((function dispatchXhrRequest(w,E){var ge=y.data,me=y.headers;P.isFormData(ge)&&delete me["Content-Type"];var he=new XMLHttpRequest;if(y.auth){var ve=y.auth.username||"",ye=y.auth.password?unescape(encodeURIComponent(y.auth.password)):"";me.Authorization="Basic "+btoa(ve+":"+ye)}var _e=ie(y.baseURL,y.url);if(he.open(y.method.toUpperCase(),oe(_e,y.params,y.paramsSerializer),!0),he.timeout=y.timeout,he.onreadystatechange=function handleLoad(){if(he&&4===he.readyState&&(0!==he.status||he.responseURL&&0===he.responseURL.indexOf("file:"))){var P="getAllResponseHeaders"in he?se(he.getAllResponseHeaders()):null,ne={data:y.responseType&&"text"!==y.responseType?he.response:he.responseText,status:he.status,statusText:he.statusText,headers:P,config:y,request:he};q(w,E,ne),he=null}},he.onabort=function handleAbort(){he&&(E(pe("Request aborted",y,"ECONNABORTED",he)),he=null)},he.onerror=function handleError(){E(pe("Network Error",y,null,he)),he=null},he.ontimeout=function handleTimeout(){var w="timeout of "+y.timeout+"ms exceeded";y.timeoutErrorMessage&&(w=y.timeoutErrorMessage),E(pe(w,y,"ECONNABORTED",he)),he=null},P.isStandardBrowserEnv()){var Re=(y.withCredentials||le(_e))&&y.xsrfCookieName?ne.read(y.xsrfCookieName):void 0;Re&&(me[y.xsrfHeaderName]=Re)}if("setRequestHeader"in he&&P.forEach(me,(function setRequestHeader(y,w){void 0===ge&&"content-type"===w.toLowerCase()?delete me[w]:he.setRequestHeader(w,y)})),P.isUndefined(y.withCredentials)||(he.withCredentials=!!y.withCredentials),y.responseType)try{he.responseType=y.responseType}catch(w){if("json"!==y.responseType)throw w}"function"==typeof y.onDownloadProgress&&he.addEventListener("progress",y.onDownloadProgress),"function"==typeof y.onUploadProgress&&he.upload&&he.upload.addEventListener("progress",y.onUploadProgress),y.cancelToken&&y.cancelToken.promise.then((function onCanceled(y){he&&(he.abort(),E(y),he=null)})),ge||(ge=null),he.send(ge)}))}},function(y,w,E){"use strict";var P=E(1041);y.exports=function createError(y,w,E,q,ne){var oe=new Error(y);return P(oe,w,E,q,ne)}},function(y,w,E){"use strict";var P=E(75);y.exports=function mergeConfig(y,w){w=w||{};var E={},q=["url","method","data"],ne=["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"],ie=["validateStatus"];function getMergedValue(y,w){return P.isPlainObject(y)&&P.isPlainObject(w)?P.merge(y,w):P.isPlainObject(w)?P.merge({},w):P.isArray(w)?w.slice():w}function mergeDeepProperties(q){P.isUndefined(w[q])?P.isUndefined(y[q])||(E[q]=getMergedValue(void 0,y[q])):E[q]=getMergedValue(y[q],w[q])}P.forEach(q,(function valueFromConfig2(y){P.isUndefined(w[y])||(E[y]=getMergedValue(void 0,w[y]))})),P.forEach(ne,mergeDeepProperties),P.forEach(oe,(function defaultToConfig2(q){P.isUndefined(w[q])?P.isUndefined(y[q])||(E[q]=getMergedValue(void 0,y[q])):E[q]=getMergedValue(void 0,w[q])})),P.forEach(ie,(function merge(P){P in w?E[P]=getMergedValue(y[P],w[P]):P in y&&(E[P]=getMergedValue(void 0,y[P]))}));var se=q.concat(ne).concat(oe).concat(ie),le=Object.keys(y).concat(Object.keys(w)).filter((function filterAxiosKeys(y){return-1===se.indexOf(y)}));return P.forEach(le,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,E){Object.defineProperty(w,"__esModule",{value:!0}),w.useCreateMessageInputContext=void 0;var P=E(0);w.useCreateMessageInputContext=function useCreateMessageInputContext(y){var w=y.additionalTextInputProps,E=y.appendText,q=y.asyncIds,ne=y.asyncUploads,oe=y.AttachButton,ie=y.clearEditingState,se=y.clearQuotedMessageState,le=y.closeAttachmentPicker,pe=y.CommandsButton,ge=y.compressImageQuality,me=y.doDocUploadRequest,he=y.doImageUploadRequest,ve=y.editing,ye=y.editMessage,_e=y.FileUploadPreview,Re=y.fileUploads,we=y.giphyActive,ke=y.hasCommands,Me=y.hasFilePicker,Se=y.hasImagePicker,Ae=y.ImageUploadPreview,Te=y.imageUploads,Oe=y.initialValue,Fe=y.Input,je=y.inputBoxRef,Be=y.InputButtons,Ve=y.isValidMessage,Ne=y.maxMessageLength,Ue=y.maxNumberOfFiles,We=y.mentionedUsers,$e=y.MoreOptionsButton,Ye=y.numberOfLines,Xe=y.numberOfUploads,et=y.onChange,tt=y.onChangeText,nt=y.onSelectItem,rt=y.openAttachmentPicker,ot=y.openCommandsPicker,it=y.openFilePicker,st=y.openMentionsPicker,dt=y.pickFile,ct=y.quotedMessage,lt=y.removeFile,ut=y.removeImage,pt=y.resetInput,gt=y.selectedPicker,mt=y.SendButton,ht=y.sendImageAsync,ft=y.sending,vt=y.sendMessage,yt=y.sendMessageAsync,bt=y.sendThreadMessageInChannel,_t=y.setAsyncIds,Rt=y.setAsyncUploads,xt=y.setFileUploads,Ct=y.setGiphyActive,wt=y.setImageUploads,kt=y.setInputBoxRef,Mt=y.setInputRef,St=y.setMentionedUsers,Et=y.setNumberOfUploads,Dt=y.setSendThreadMessageInChannel,At=y.setShowMoreOptions,Pt=y.setText,Tt=y.showMoreOptions,Lt=y.ShowThreadMessageInChannelButton,It=y.text,Ot=y.thread,Ft=y.toggleAttachmentPicker,zt=y.triggerSettings,jt=y.updateMessage,Bt=y.uploadFile,Vt=y.uploadImage,Nt=y.uploadNewFile,Ht=y.uploadNewImage,Ut=y.UploadProgressIndicator,Gt=y.uploadsEnabled,qt=!!ve,Wt=Re.map((function(y){return y.state})).join(),Kt=Te.map((function(y){return y.state})).join(),$t=We.length,Yt=ct?"boolean"==typeof ct?"":ct.id:"",Xt=null==Ot?void 0:Ot.id;return(0,P.useMemo)((function(){return{additionalTextInputProps:w,appendText:E,asyncIds:q,asyncUploads:ne,AttachButton:oe,clearEditingState:ie,clearQuotedMessageState:se,closeAttachmentPicker:le,CommandsButton:pe,compressImageQuality:ge,doDocUploadRequest:me,doImageUploadRequest:he,editing:ve,editMessage:ye,FileUploadPreview:_e,fileUploads:Re,giphyActive:we,hasCommands:ke,hasFilePicker:Me,hasImagePicker:Se,ImageUploadPreview:Ae,imageUploads:Te,initialValue:Oe,Input:Fe,inputBoxRef:je,InputButtons:Be,isValidMessage:Ve,maxMessageLength:Ne,maxNumberOfFiles:Ue,mentionedUsers:We,MoreOptionsButton:$e,numberOfLines:Ye,numberOfUploads:Xe,onChange:et,onChangeText:tt,onSelectItem:nt,openAttachmentPicker:rt,openCommandsPicker:ot,openFilePicker:it,openMentionsPicker:st,pickFile:dt,quotedMessage:ct,removeFile:lt,removeImage:ut,resetInput:pt,selectedPicker:gt,SendButton:mt,sendImageAsync:ht,sending:ft,sendMessage:vt,sendMessageAsync:yt,sendThreadMessageInChannel:bt,setAsyncIds:_t,setAsyncUploads:Rt,setFileUploads:xt,setGiphyActive:Ct,setImageUploads:wt,setInputBoxRef:kt,setInputRef:Mt,setMentionedUsers:St,setNumberOfUploads:Et,setSendThreadMessageInChannel:Dt,setShowMoreOptions:At,setText:Pt,showMoreOptions:Tt,ShowThreadMessageInChannelButton:Lt,text:It,toggleAttachmentPicker:Ft,triggerSettings:zt,updateMessage:jt,uploadFile:Bt,uploadImage:Vt,uploadNewFile:Nt,uploadNewImage:Ht,UploadProgressIndicator:Ut,uploadsEnabled:Gt}}),[bt,qt,Wt,we,Kt,Ne,$t,Yt,gt,Tt,It,Xt,Gt])}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useMessageDetailsForState=w.isEditingBoolean=void 0;var q=P(E(19)),ne=E(0),oe=E(27);function _createForOfIteratorHelperLoose(y,w){var E;if("undefined"==typeof Symbol||null==y[Symbol.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 P=0;return function(){return P>=y.length?{done:!0}:{done:!1,value:y[P++]}}}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[Symbol.iterator]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E10?w:10,update:{duration:w>10?w:10,type:ve.default.Types[P]||"keyboard"}}),E.setState({bottom:ne}))}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"===ye.default.OS?E._subscriptions=[he.default.addListener("keyboardWillChangeFrame",E._onKeyboardChange)]:E._subscriptions=[he.default.addListener("keyboardDidHide",E._onKeyboardChange),he.default.addListener("keyboardDidShow",E._onKeyboardChange)],E._subscriptions.push(he.default.addListener("keyboardDidHide",(function(){E.setState({isKeyboardOpen:!1})})),he.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=he.default.addListener("keyboardDidHide",(function(){y(),w.remove()}));he.default.dismiss()}))},E.state={appState:me.default.currentState,bottom:0,isKeyboardOpen:!1},E.viewRef=ge.default.createRef(),E}return(0,ie.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,P=y.contentContainerStyle,oe=y.enabled,ie=y.style,se=(0,ne.default)(y,["behavior","children","contentContainerStyle","enabled","style"]),le=oe?this.state.bottom:0;switch(w){case"height":var pe;return null!==this._frame&&this.state.bottom>0&&(pe={flex:0,height:this._initialFrameHeight-le}),ge.default.createElement(we.KeyboardProvider,{value:{dismissKeyboard:this.dismissKeyboard}},ge.default.createElement(Re.default,(0,q.default)({onLayout:this._onLayout,ref:this.viewRef,style:_e.default.compose(ie,pe)},se),E));case"position":return ge.default.createElement(we.KeyboardProvider,{value:{dismissKeyboard:this.dismissKeyboard}},ge.default.createElement(Re.default,(0,q.default)({onLayout:this._onLayout,ref:this.viewRef,style:ie},se),ge.default.createElement(Re.default,{style:_e.default.compose(P,{bottom:le})},E)));case"padding":return ge.default.createElement(we.KeyboardProvider,{value:{dismissKeyboard:this.dismissKeyboard}},ge.default.createElement(Re.default,(0,q.default)({onLayout:this._onLayout,ref:this.viewRef,style:_e.default.compose(ie,{paddingBottom:le})},se),E));default:return ge.default.createElement(we.KeyboardProvider,{value:{dismissKeyboard:this.dismissKeyboard}},ge.default.createElement(Re.default,(0,q.default)({onLayout:this._onLayout,ref:this.viewRef,style:ie},se),E))}}}]),KeyboardCompatibleView}(ge.default.Component);w.KeyboardCompatibleView=ke,ke.defaultProps={behavior:"ios"===ye.default.OS?"padding":"position",enabled:!0,keyboardVerticalOffset:"ios"===ye.default.OS?86.5:-300}},function(y,w){y.exports=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(y,w,E){Object.defineProperty(w,"__esModule",{value:!0}),w.useCreateMessageContext=void 0;var P=E(0),q=E(209);w.useCreateMessageContext=function useCreateMessageContext(y){var w=y.actionsEnabled,E=y.alignment,ne=y.canModifyMessage,oe=y.channel,ie=y.disabled,se=y.files,le=y.groupStyles,pe=y.handleAction,ge=y.handleDeleteMessage,me=y.handleEditMessage,he=y.handleReplyMessage,ve=y.handleResendMessage,ye=y.handleToggleBanUser,_e=y.handleToggleMuteUser,Re=y.handleToggleReaction,we=y.hasReactions,ke=y.images,Me=y.isMyMessage,Se=y.lastGroupMessage,Ae=y.lastReceivedId,Te=y.members,Oe=y.message,Fe=y.messageContentOrder,je=y.onLongPress,Be=y.onlyEmojis,Ve=y.onOpenThread,Ne=y.onPress,Ue=y.onPressIn,We=y.otherAttachments,$e=y.preventPress,Ye=y.reactions,Xe=y.readEventsEnabled,et=y.showAvatar,tt=y.showMessageOverlay,nt=y.showMessageStatus,rt=y.threadList,ot=le.length,it=Ye.map((function(y){return""+y.own+y.type})).join(),st=Oe.latest_reactions?Oe.latest_reactions:void 0,dt=(0,q.isMessageWithStylesReadByAndDateSeparator)(Oe)&&Oe.readBy,ct=""+(st?st.map((function(y){return y.type})).join():"")+Oe.updated_at+Oe.deleted_at+dt+Oe.status+Oe.type+Oe.text+Oe.reply_count,lt=JSON.stringify(Te);return(0,P.useMemo)((function(){return{actionsEnabled:w,alignment:E,canModifyMessage:ne,channel:oe,disabled:ie,files:se,groupStyles:le,handleAction:pe,handleDeleteMessage:ge,handleEditMessage:me,handleReplyMessage:he,handleResendMessage:ve,handleToggleBanUser:ye,handleToggleMuteUser:_e,handleToggleReaction:Re,hasReactions:we,images:ke,isMyMessage:Me,lastGroupMessage:Se,lastReceivedId:Ae,members:Te,message:Oe,messageContentOrder:Fe,onLongPress:je,onlyEmojis:Be,onOpenThread:Ve,onPress:Ne,onPressIn:Ue,otherAttachments:We,preventPress:$e,reactions:Ye,readEventsEnabled:Xe,showAvatar:et,showMessageOverlay:tt,showMessageStatus:nt,threadList:rt}}),[w,E,ie,ot,we,Se,Ae,lt,ct,it,Xe,et,nt,rt])}},function(y,w){Object.defineProperty(w,"__esModule",{value:!0}),w.getDateSeparators=void 0;w.getDateSeparators=function getDateSeparators(y){var w=y.hideDateSeparators,E=y.messages,P=y.userId,q={};if(w)return q;for(var ne=E.filter((function(y){var w;return!y.deleted_at||P===(null==(w=y.user)?void 0:w.id)})),oe=0;oeP;ke&&Re.push("top"),Me&&(ke||ye.deleted_at||"error"===ye.type?(Re.splice(0,Re.length),Re.push("single")):Re.push("bottom")),ke||Me||(ye.deleted_at||"error"===ye.type?(Re.splice(0,Re.length),Re.push("single")):(Re.splice(0,Re.length),Re.push("middle"))),ne&&(Re.splice(0,Re.length),Re.push("single")),ye.id&&(ie[ye.id]=Re)}return ie}},function(y,w){function _createForOfIteratorHelperLoose(y,w){var E;if("undefined"==typeof Symbol||null==y[Symbol.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 P=0;return function(){return P>=y.length?{done:!0}:{done:!1,value:y[P++]}}}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[Symbol.iterator]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E=y.length?{done:!0}:{done:!1,value:y[P++]}}}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[Symbol.iterator]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E]/g,"\\$&");var je=(0,q.default)({},me,P,{autolink:(0,q.default)({},me.autolink,{color:w.accent_blue},null==P?void 0:P.autolink),inlineCode:(0,q.default)({},me.inlineCode,{backgroundColor:w.white_smoke,borderColor:w.grey_gainsboro,color:w.accent_red},null==P?void 0:P.inlineCode),mentions:(0,q.default)({},me.mentions,{color:w.accent_blue},null==P?void 0:P.mentions),text:(0,q.default)({},me.text,{color:w.black},null==P?void 0:P.text)}),Be=function onLink(y){return ye?ye(y):oe.default.canOpenURL(y).then((function(w){return w&&oe.default.openURL(y)}))},Ve=Array.isArray(ke)?ke.reduce((function(y,w){var E=w.name||w.id||"";return E&&(y+=(y.length?"|":"")+"@"+E),y}),""):"",Ne=new RegExp("^\\B("+Ve+")","g"),Ue=(0,q.default)({link:{react:function react(y,w,E){var P=(0,q.default)({},E);P.withinLink=!0;var oe=ne.default.createElement(ie.default,{key:P.key,onLongPress:function onLongPress(y){null==_e||_e({emitter:"textLink",event:y})},onPress:function onPress(w){null==we||we({defaultHandler:function defaultHandler(){return Be(y.target)},emitter:"textLink",event:w})},style:je.autolink,suppressHighlighting:!0},w(y.content,P));return P.withinLink=!1,oe}},reflink:{match:function match(){return null}}},Ve?{mentions:{match:function match(y){return Ne.exec(y)},order:ge.defaultRules.text.order-.5,parse:he,react:function mentionsReact(y,w,E){var P,oe=(0,q.default)({},E);return ne.default.createElement(ie.default,{key:oe.key,onLongPress:function onLongPress(y){null==_e||_e({emitter:"textMention",event:y})},onPress:function onPress(y){null==we||we({emitter:"textMention",event:y})},style:je.mentions},Array.isArray(y.content)?(null==(P=y.content[0])?void 0:P.content)||"":w(y.content,oe))}}}:{});return ne.default.createElement(pe.default,{key:JSON.stringify(ke)+"-"+Re,onLink:Be,rules:(0,q.default)({},Ue,E),styles:je},Ae)}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var P=E(373),q=/^[a-z0-9!#$%&'*+\-/=?^_`{|}~.]+@([a-z0-9%\-]+\.){1,}([a-z0-9\-]+)?$/i,ne=[/^[!#$%&'*+\-/=?^_`{|}~.]/,/[.]{2,}[a-z0-9!#$%&'*+\-/=?^_`{|}~.]+@/i,/\.@/];w.default=function default_1(y){var w=y.match(q);if(null===w)return!1;for(var E=ne.length-1;E>=0;E--)if(ne[E].test(y))return!1;var oe=w[2];return!!oe&&-1!==P.tlds.indexOf(oe)}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var P=E(372),q=/^(\d{1,3}\.){3}\d{1,3}(:\d{1,5})?(\/([a-z0-9\-._~:\/\?#\[\]@!$&'\(\)\*\+,;=%]+)?)?$/i;w.default=function default_1(y){if(!q.test(y))return!1;var w=y.split("."),E=Number(w[0]);if(isNaN(E)||E>255||E<0)return!1;var ne=Number(w[1]);if(isNaN(ne)||ne>255||ne<0)return!1;var oe=Number(w[2]);if(isNaN(oe)||oe>255||oe<0)return!1;var ie=Number((w[3].match(/^\d+/)||[])[0]);if(isNaN(ie)||ie>255||ie<0)return!1;var se=(w[3].match(/(^\d+)(:)(\d+)/)||[])[3];return!(se&&!P.isPort(se))}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var P=E(372),q=E(373),ne=/^(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(ne);return null!==w&&("string"==typeof w[3]&&(-1!==q.tlds.indexOf(w[3].toLowerCase())&&!(w[5]&&!P.isPort(w[5]))))}},function(y,w,E){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var P=E(1059);w.separate=function separate(y){var w=y.replace(/([\s\(\)\[\]<>"'])/g,"\0$1\0").replace(/([?;:,.!]+)(?=(\0|$|\s))/g,"\0$1\0").split("\0");return P.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 P=E(248),q=E(565),ne=E(93),oe=E(255),ie=P?P.prototype:void 0,se=ie?ie.toString:void 0;y.exports=function baseToString(y){if("string"==typeof y)return y;if(ne(y))return q(y,baseToString)+"";if(oe(y))return se?se.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,P=null==y?0:y.length,q=Array(P);++E2&&"left"===E&&null!=(w=ve.user)&&w.name?ne.default.createElement(oe.default,{style:[{color:Me},Oe]},ve.user.name):null,Re&&ne.default.createElement(ye,null),ne.default.createElement(oe.default,{style:[{color:Me,textAlign:E},je]},P))}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.MessageRepliesAvatars=void 0;var q=P(E(5)),ne=P(E(0)),oe=P(E(7)),ie=P(E(8)),se=E(131),le=E(11),pe=oe.default.create({avatarContainer:{alignItems:"center",flexDirection:"row",paddingTop:2},topAvatar:{paddingTop:2,position:"absolute"}});w.MessageRepliesAvatars=function MessageRepliesAvatars(y){var w,E=y.alignment,P=y.message,oe=(0,le.useTheme)().theme,ge=oe.colors.white_snow,me=oe.messageSimple.replies,he=me.avatar,ve=me.avatarContainerMultiple,ye=me.avatarContainerSingle,_e=me.avatarSize,Re=me.leftAvatarsContainer,we=me.rightAvatarsContainer,ke=(null==(w=P.thread_participants)?void 0:w.slice(-2))||[],Me=ke.length>1;return ne.default.createElement(ie.default,{style:[pe.avatarContainer,"right"===E?(0,q.default)({marginLeft:8},we):Re]},ke.map((function(y,w){return ne.default.createElement(ie.default,{key:y.id,style:1===w?(0,q.default)({},pe.topAvatar,ye):(0,q.default)({paddingLeft:Me?8:0},ve)},ne.default.createElement(se.Avatar,{containerStyle:[1===w&&{borderColor:ge,borderWidth:1},he],image:y.image,name:y.name,size:_e||(1===w?18:16)}))})))}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ReactionList=void 0;var ne=q(E(5)),oe=P(E(0)),ie=q(E(7)),se=q(E(36)),le=q(E(157)),pe=q(E(8)),ge=P(E(58)),me=P(E(49)),he=E(57),ve=E(40),ye=E(11),_e=E(523),Re=ie.default.create({container:{left:0,position:"absolute",top:0},reactionBubble:{alignItems:"center",flexDirection:"row",justifyContent:"space-evenly",position:"absolute"},reactionBubbleBackground:{position:"absolute"}}),we=function Icon(y){var w,E=y.pathFill,P=y.size,q=y.style,ne=y.supportedReactions,ie=y.type,se=(null==(w=ne.find((function(y){return y.type===ie})))?void 0:w.Icon)||_e.Unknown,le=(0,ge.useSharedValue)(0,!1);(0,oe.useEffect)((function(){!function showReaction(){le.value=(0,ge.withSequence)((0,ge.withDelay)(250,(0,ge.withTiming)(1.5,{duration:500})),(0,ge.withTiming)(1,{duration:500}))}()}),[]);var pe=(0,ge.useAnimatedStyle)((function(){return{transform:[{scale:le.value}]}}),[]);return oe.default.createElement(ge.default.View,{style:pe},oe.default.createElement(se,{height:P,pathFill:E,style:q,width:P}))},ke=oe.default.memo((function ReactionListWithContext(y){var w=y.alignment,E=y.fill,P=y.messageContentWidth,q=y.onLongPress,ne=y.onPress,he=y.radius,ve=y.reactions,_e=y.reactionSize,ke=y.showMessageOverlay,Me=y.stroke,Se=y.strokeSize,Ae=y.supportedReactions,Te=(0,ye.useTheme)().theme,Oe=Te.colors,Fe=Oe.accent_blue,je=Oe.grey,Be=Oe.grey_gainsboro,Ve=Oe.grey_whisper,Ne=Oe.white,Ue=Te.messageSimple,We=Ue.avatarWrapper,$e=We.leftAlign,Ye=We.spacer,Xe=Ue.reactionList,et=Xe.container,tt=Xe.middleIcon,nt=Xe.radius,rt=Xe.reactionBubble,ot=Xe.reactionBubbleBackground,it=Xe.reactionSize,st=Xe.strokeSize,dt=Te.screenPadding,ct=(0,ge.useSharedValue)(0,!1),lt=(0,le.default)().width,ut=Ae.map((function(y){return y.type})),pt=ve.some((function(y){return ut.includes(y.type)}));(0,oe.useEffect)((function(){!function showReactions(y){ct.value=y?(0,ge.withDelay)(250,(0,ge.withTiming)(1,{duration:500})):0}(pt&&0!==P)}),[pt,P]);var gt=(0,ge.useAnimatedStyle)((function(){return{opacity:ct.value}}),[]);if(!pt||0===P)return null;var mt="left"===w,ht=E||mt?Be:Ve,ft=he||nt,vt=_e||it,yt=Me||Ne,bt=Se||st,_t=mt?P+(Number($e.marginRight)||0)+(Number(Ye.width)||0)-.5*ft:lt-2*dt-P,Rt=_t+2*ft*(mt?1:-1),xt=vt+2*ft,Ct=vt-ft,wt=Rt-vt*ve.length/2>dt,kt=Rt+bt+vt*ve.length/2=y.length?{done:!0}:{done:!1,value:y[P++]}}}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[Symbol.iterator]()).next.bind(E)}function _arrayLikeToArray(y,w){(null==w||w>y.length)&&(w=y.length);for(var E=0,P=new Array(w);E1?w("{{ firstUser }} and {{ nonSelfUserLength }} more are typing",{firstUser:ie[0],nonSelfUserLength:ie.length-1}):""}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.LoadingDots=void 0;var q=P(E(0)),ne=P(E(8)),oe=E(581),ie=E(11);w.LoadingDots=function LoadingDots(y){var w=y.diameter,E=void 0===w?4:w,P=y.duration,se=void 0===P?1500:P,le=y.numberOfDots,pe=void 0===le?3:le,ge=y.spacing,me=y.style,he=(0,ie.useTheme)().theme.loadingDots,ve=he.container,ye=he.spacing,_e=ge?ge/2:ye/2,Re=se/pe;return q.default.createElement(ne.default,{style:[{flexDirection:"row"},ve,me]},Array.from(Array(pe)).map((function(y,w){return q.default.createElement(oe.LoadingDot,{diameter:E,duration:se,key:w,offset:se-Re*(w+1),style:0===w?{marginRight:_e}:w===pe-1?{marginLeft:_e}:{marginHorizontal:_e}})})))}},function(y,w,E){var P=E(16);Object.defineProperty(w,"__esModule",{value:!0}),w.LoadingDot=void 0;var q=P(E(0)),ne=P(E(58)),oe=E(11);w.LoadingDot=function LoadingDot(y){var w=y.diameter,E=void 0===w?4:w,P=y.duration,ie=void 0===P?1500:P,se=y.offset,le=void 0===se?0:se,pe=y.style,ge=ie/2,me=ge-le,he=(0,oe.useTheme)().theme,ve=he.colors.black,ye=he.loadingDots.loadingDot,_e=(0,ne.useSharedValue)(me/ge);(0,q.useEffect)((function(){_e.value=(0,ne.withSequence)((0,ne.withTiming)(0,{duration:me,easing:ne.Easing.linear}),(0,ne.withRepeat)((0,ne.withSequence)((0,ne.withTiming)(1,{duration:ge,easing:ne.Easing.linear}),(0,ne.withTiming)(0,{duration:ge,easing:ne.Easing.linear})),-1))}),[]);var Re=(0,ne.useAnimatedStyle)((function(){return{opacity:_e.value}}),[]);return q.default.createElement(ne.default.View,{style:[{backgroundColor:ve,borderRadius:E/2,height:E,width:E},pe,ye,Re]})}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ChannelListHeaderErrorIndicator=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(36)),se=E(11),le=E(26),pe=ne.default.create({container:{alignItems:"center",justifyContent:"center",padding:3,width:"100%"},errorText:{fontSize:12,fontWeight:"bold",padding:3}}),ge=function ChannelListHeaderErrorIndicator(y){var w=y.onPress,E=void 0===w?function(){return null}:w,P=(0,se.useTheme)().theme,ne=P.channelListHeaderErrorIndicator,ge=ne.container,me=ne.errorText,he=P.colors,ve=he.accent_red,ye=he.grey,_e=(0,le.useTranslationContext)().t;return q.default.createElement(ie.default,{onPress:E,style:[pe.container,{backgroundColor:ye+"E6"},ge]},q.default.createElement(oe.default,{style:[pe.errorText,{color:ve},me],testID:"channel-loading-error"},_e("Error while loading, please reload/refresh")))};w.ChannelListHeaderErrorIndicator=ge,ge.displayName="ChannelListHeaderErrorIndicator{channelListHeaderErrorIndicator}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ChannelListFooterLoadingIndicator=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(8)),ie=E(367),se=E(11),le=ne.default.create({container:{alignItems:"center",justifyContent:"center",width:"100%"}}),pe=function ChannelListFooterLoadingIndicator(){var y=(0,se.useTheme)().theme.channelListFooterLoadingIndicator.container;return q.default.createElement(oe.default,{style:[le.container,y]},q.default.createElement(ie.Spinner,null))};w.ChannelListFooterLoadingIndicator=pe,pe.displayName="ChannelListFooterLoadingIndicator{channelListFooterLoadingIndicator}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ChannelListHeaderNetworkDownIndicator=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(11),le=E(26),pe=ne.default.create({container:{alignItems:"center",justifyContent:"center",padding:8,width:"100%"},errorText:{fontSize:14}}),ge=function ChannelListHeaderNetworkDownIndicator(){var y=(0,se.useTheme)().theme,w=y.channelListHeaderErrorIndicator,E=w.container,P=w.errorText,ne=y.colors,ge=ne.grey,me=ne.white,he=(0,le.useTranslationContext)().t;return q.default.createElement(ie.default,{style:[pe.container,{backgroundColor:ge+"E6"},E]},q.default.createElement(oe.default,{style:[pe.errorText,{color:me},P]},he("Reconnecting...")))};w.ChannelListHeaderNetworkDownIndicator=ge,ge.displayName="ChannelListHeaderNetworkDownIndicator{channelListHeaderErrorIndicator}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useLatestMessagePreview=void 0;var q=P(E(19)),ne=P(E(34)),oe=E(0),ie=E(30),se=E(26),le=function getLatestMessageDisplayText(y,w,E,P){var q,oe,ie,se,le;if(!E)return[{bold:!1,text:P("Nothing yet...")}];if(E.deleted_at)return[{bold:!1,text:P("Message deleted")}];var pe=w.userID,ge=null==(q=E.user)?void 0:q.id,me=Object.keys(y.state.members),he=ge===pe?P("You"):me.length>2&&((null==(oe=E.user)?void 0:oe.name)||(null==(ie=E.user)?void 0:ie.username)||(null==(se=E.user)?void 0:se.id))||"",ve=he?(he===P("You")?"":"@")+he+": ":"",ye=ve.includes("@");if(E.text){var _e=E.text.substring(0,100).replace(/\n/g," "),Re=Array.isArray(E.mentioned_users)?E.mentioned_users.reduce((function(y,w){var E=w.name||w.id||"";return E&&(y+=(y.length?"|":"")+"@"+E),y}),""):"",we=new RegExp("^("+Re+")");return[{bold:ye,text:ve}].concat((0,ne.default)(_e.split("").reduce((function(y,w,E){return"@"===w&&Re&&we.test(_e.substring(E))?y.push({bold:!0,text:w}):Re&&we.test(y[y.length-1].text)?y.push({bold:!1,text:w}):y[y.length-1].text+=w,y}),[{bold:!1,text:""}])))}return E.command?[{bold:ye,text:ve},{bold:!1,text:"/"+E.command}]:null!=(le=E.attachments)&&le.length?[{bold:ye,text:ve},{bold:!1,text:P("🏙 Attachment...")}]:[{bold:ye,text:ve},{bold:!1,text:P("Empty message...")}]},pe=function getLatestMessageDisplayDate(y,w){var E=w(null==y?void 0:y.created_at);return(0,se.isDayOrMoment)(E)?E.isSame(new Date,"day")?E.format("LT"):E.format("L"):E},ge=function getLatestMessageReadStatus(y,w,E,P){var q,ne=w.userID;if(!E||ne!==(null==(q=E.user)?void 0:q.id)||!1===P)return 0;var oe=y.state.read;ne&&delete oe[ne];var ie=E.updated_at?"string"==typeof E.updated_at?new Date(E.updated_at):E.updated_at:void 0;return Object.values(oe).some((function(y){var w=y.last_read;return ie&&iepe))return!1;var me=se.get(y),he=se.get(w);if(me&&he)return me==w&&he==y;var ve=-1,ye=!0,_e=2&E?new P:void 0;for(se.set(y,w),se.set(w,y);++ve=0&&w.splice(E,1),(0,q.default)(w)}))};return P.on("channel.deleted",y),function(){return P.off("channel.deleted",y)}}),[])}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useChannelHidden=void 0;var q=P(E(34)),ne=E(0),oe=E(30);w.useChannelHidden=function useChannelHidden(y){var w=y.onChannelHidden,E=y.setChannels,P=(0,oe.useChatContext)().client;(0,ne.useEffect)((function(){var y=function handleEvent(y){"function"==typeof w?w(E,y):E((function(w){var E=w.findIndex((function(w){var E;return w.cid===(y.cid||(null==(E=y.channel)?void 0:E.cid))}));return E>=0&&w.splice(E,1),(0,q.default)(w)}))};return P.on("channel.hidden",y),function(){return P.off("channel.hidden",y)}}),[])}},function(y,w,E){Object.defineProperty(w,"__esModule",{value:!0}),w.useChannelTruncated=void 0;var P=E(0),q=E(30);w.useChannelTruncated=function useChannelTruncated(y){var w=y.onChannelTruncated,E=y.refreshList,ne=y.setChannels,oe=y.setForceUpdate,ie=(0,q.useChatContext)().client;(0,P.useEffect)((function(){var y=function handleEvent(y){"function"==typeof w&&w(ne,y),E(),oe((function(y){return y+1}))};return ie.on("channel.truncated",y),function(){return ie.off("channel.truncated",y)}}),[])}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useChannelUpdated=void 0;var q=P(E(34)),ne=E(0),oe=E(30);w.useChannelUpdated=function useChannelUpdated(y){var w=y.onChannelUpdated,E=y.setChannels,P=(0,oe.useChatContext)().client;(0,ne.useEffect)((function(){var y=function handleEvent(y){"function"==typeof w?w(E,y):E((function(w){var E=w.findIndex((function(w){var E;return w.cid===(y.cid||(null==(E=y.channel)?void 0:E.cid))}));return E>=0&&y.channel&&(w[E].data=y.channel),(0,q.default)(w)}))};return P.on("channel.updated",y),function(){return P.off("channel.updated",y)}}),[])}},function(y,w,E){Object.defineProperty(w,"__esModule",{value:!0}),w.useConnectionRecovered=void 0;var P=E(0),q=E(30);w.useConnectionRecovered=function useConnectionRecovered(y){var w=y.refreshList,E=y.setForceUpdate,ne=(0,q.useChatContext)().client;(0,P.useEffect)((function(){var y=function handleEvent(){w(),E((function(y){return y+1}))},P=ne.on("connection.recovered",y).unsubscribe,q=ne.on("connection.changed",(function(w){w.online&&y()})).unsubscribe;return function(){P(),q()}}),[])}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useNewMessage=void 0;var q=P(E(34)),ne=E(0),oe=E(274),ie=E(30);w.useNewMessage=function useNewMessage(y){var w=y.lockChannelOrder,E=y.setChannels,P=(0,ie.useChatContext)().client;(0,ne.useEffect)((function(){var y=function handleEvent(y){E((function(E){return!w&&y.cid?(0,oe.moveChannelUp)({channels:E,cid:y.cid}):(0,q.default)(E)}))};return P.on("message.new",y),function(){return P.off("message.new",y)}}),[])}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useNewMessageNotification=void 0;var q=P(E(47)),ne=P(E(34)),oe=P(E(48)),ie=P(E(587)),se=E(0),le=E(274),pe=E(30);w.useNewMessageNotification=function useNewMessageNotification(y){var w=y.onMessageNew,E=y.setChannels,P=(0,pe.useChatContext)().client;(0,se.useEffect)((function(){var y=function(){var y=(0,oe.default)(q.default.mark((function _callee(y){var oe,se,pe;return q.default.wrap((function _callee$(q){for(;;)switch(q.prev=q.next){case 0:if("function"!=typeof w){q.next=4;break}w(E,y),q.next=9;break;case 4:if(null==(oe=y.channel)||!oe.id||null==(se=y.channel)||!se.type){q.next=9;break}return q.next=7,(0,le.getChannel)({client:P,id:y.channel.id,type:y.channel.type});case 7:pe=q.sent,E((function(y){return(0,ie.default)([pe].concat((0,ne.default)(y)),"cid")}));case 9:case"end":return q.stop()}}),_callee)})));return function handleEvent(w){return y.apply(this,arguments)}}();return P.on("notification.message_new",y),function(){return P.off("notification.message_new",y)}}),[])}},function(y,w,E){Object.defineProperty(w,"__esModule",{value:!0}),w.useCreateChannelsContext=void 0;var P=E(0);w.useCreateChannelsContext=function useCreateChannelsContext(y){var w=y.additionalFlatListProps,E=y.channels,q=y.EmptyStateIndicator,ne=y.error,oe=y.FooterLoadingIndicator,ie=y.forceUpdate,se=y.hasNextPage,le=y.HeaderErrorIndicator,pe=y.HeaderNetworkDownIndicator,ge=y.ListHeaderComponent,me=y.loadingChannels,he=y.LoadingErrorIndicator,ve=y.LoadingIndicator,ye=y.loadingNextPage,_e=y.loadMoreThreshold,Re=y.loadNextPage,we=y.maxUnreadCount,ke=y.numberOfSkeletons,Me=y.onSelect,Se=y.Preview,Ae=y.PreviewAvatar,Te=y.PreviewMessage,Oe=y.PreviewStatus,Fe=y.PreviewTitle,je=y.PreviewUnreadCount,Be=y.refreshing,Ve=y.refreshList,Ne=y.reloadList,Ue=y.setFlatListRef,We=y.Skeleton,$e=E.map((function(y){var w;return""+(null==(w=y.data)?void 0:w.name)+Object.values(y.state.members).map((function(y){var w;return null==(w=y.user)?void 0:w.online})).join()})).join();return(0,P.useMemo)((function(){return{additionalFlatListProps:w,channels:E,EmptyStateIndicator:q,error:ne,FooterLoadingIndicator:oe,forceUpdate:ie,hasNextPage:se,HeaderErrorIndicator:le,HeaderNetworkDownIndicator:pe,ListHeaderComponent:ge,loadingChannels:me,LoadingErrorIndicator:he,LoadingIndicator:ve,loadingNextPage:ye,loadMoreThreshold:_e,loadNextPage:Re,maxUnreadCount:we,numberOfSkeletons:ke,onSelect:Me,Preview:Se,PreviewAvatar:Ae,PreviewMessage:Te,PreviewStatus:Oe,PreviewTitle:Fe,PreviewUnreadCount:je,refreshing:Be,refreshList:Ve,reloadList:Ne,setFlatListRef:Ue,Skeleton:We}}),[$e,ne,ie,se,me,ye,Be])}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.usePaginatedChannels=void 0;var q=P(E(47)),ne=P(E(34)),oe=P(E(5)),ie=P(E(48)),se=P(E(19)),le=E(0),pe=E(274),ge=E(30),me=function wait(y){return new Promise((function(w){setTimeout(w,y)}))},he={message_limit:10};w.usePaginatedChannels=function usePaginatedChannels(y){var w=y.filters,E=void 0===w?{}:w,P=y.options,ve=void 0===P?he:P,ye=y.sort,_e=void 0===ye?{}:ye,Re=(0,ge.useChatContext)().client,we=(0,le.useState)([]),ke=(0,se.default)(we,2),Me=ke[0],Se=ke[1],Ae=(0,le.useState)(!1),Te=(0,se.default)(Ae,2),Oe=Te[0],Fe=Te[1],je=(0,le.useState)(!0),Be=(0,se.default)(je,2),Ve=Be[0],Ne=Be[1],Ue=(0,le.useRef)(Date.now()),We=(0,le.useState)(!1),$e=(0,se.default)(We,2),Ye=$e[0],Xe=$e[1],et=(0,le.useState)(!1),tt=(0,se.default)(et,2),nt=tt[0],rt=tt[1],ot=(0,le.useState)(0),it=(0,se.default)(ot,2),st=it[0],dt=it[1],ct=(0,le.useState)(!1),lt=(0,se.default)(ct,2),ut=lt[0],pt=lt[1],gt=function(){var y=(0,ie.default)(q.default.mark((function _callee(){var y,w,P,ie,se,le,ge=arguments;return q.default.wrap((function _callee$(q){for(;;)switch(q.prev=q.next){case 0:if(w=ge.length>0&&void 0!==ge[0]?ge[0]:"",P=ge.length>1&&void 0!==ge[1]?ge[1]:0,Re&&!Ye&&!nt&&!ut){q.next=4;break}return q.abrupt("return");case 4:return"reload"===w?Xe(!0):"refresh"===w?pt(!0):w||rt(!0),ie=(0,oe.default)({limit:null!=(y=null==ve?void 0:ve.limit)?y:pe.MAX_QUERY_CHANNELS_LIMIT,offset:"reload"===w||"refresh"===w?0:st},ve),q.prev=6,q.next=9,Re.queryChannels(E,_e,ie);case 9:se=q.sent,le="reload"===w||"refresh"===w?se:[].concat((0,ne.default)(Me),(0,ne.default)(se)),Se(le),Ne(se.length>=ie.limit),dt(le.length),Fe(!1),q.next=28;break;case 17:return q.prev=17,q.t0=q.catch(6),q.next=21,me(2e3);case 21:if(3!==P){q.next=27;break}return Xe(!1),rt(!1),pt(!1),console.warn(q.t0),q.abrupt("return",Fe(!0));case 27:return q.abrupt("return",gt(w,P+1));case 28:Xe(!1),rt(!1),pt(!1);case 31:case"end":return q.stop()}}),_callee,null,[[6,17]])})));return function queryChannels(){return y.apply(this,arguments)}}(),mt=Ve?gt:void 0,ht=function reloadList(){return gt("reload")},ft=(0,le.useMemo)((function(){return JSON.stringify(E)}),[E]);return(0,le.useEffect)((function(){ht()}),[ft]),{channels:Me,error:Oe,hasNextPage:Ve,loadingChannels:Ye,loadingNextPage:nt,loadNextPage:mt,refreshing:ut,refreshList:function refreshList(){if(!(Date.now()-Ue.current<5e3)||Oe)return Ue.current=Date.now(),gt("refresh")},reloadList:ht,setChannels:Se}}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useRemovedFromChannelNotification=void 0;var q=P(E(34)),ne=E(0),oe=E(30);w.useRemovedFromChannelNotification=function useRemovedFromChannelNotification(y){var w=y.onRemovedFromChannel,E=y.setChannels,P=(0,oe.useChatContext)().client;(0,ne.useEffect)((function(){var y=function handleEvent(y){"function"==typeof w?w(E,y):E((function(w){var E=w.filter((function(w){var E;return w.cid!==(null==(E=y.channel)?void 0:E.cid)}));return(0,q.default)(E)}))};return P.on("notification.removed_from_channel",y),function(){return P.off("notification.removed_from_channel",y)}}),[])}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useUserPresence=void 0;var q=P(E(34)),ne=E(0),oe=E(30);w.useUserPresence=function useUserPresence(y){var w=y.setChannels,E=(0,oe.useChatContext)().client;(0,ne.useEffect)((function(){var y=function handleEvent(y){w((function(w){var E=w.map((function(w){var E;return null!=(E=y.user)&&E.id&&w.state.members[y.user.id]?(w.state.members[y.user.id].user=y.user,w):w}));return(0,q.default)(E)}))};return E.on("user.presence.changed",y),E.on("user.updated",y),function(){E.off("user.presence.changed",y),E.off("user.updated",y)}}),[])}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Skeleton=void 0;var ne=q(E(5)),oe=P(E(0)),ie=q(E(7)),se=q(E(157)),le=q(E(8)),pe=P(E(58)),ge=E(49),me=E(11),he=12,ve=ie.default.create({background:{height:64,position:"absolute",width:"100%"},container:{borderBottomWidth:1,flexDirection:"row"}}),ye=function Skeleton(){var y=(0,se.default)().width,w=(0,pe.useSharedValue)(-y),E=(0,me.useTheme)().theme,P=E.channelListSkeleton,q=P.animationTime,ie=void 0===q?1800:q,ye=P.background,_e=P.container,Re=P.gradientStart,we=P.gradientStop,ke=P.height,Me=void 0===ke?64:ke,Se=E.colors,Ae=Se.border,Te=Se.grey_gainsboro,Oe=Se.white_snow;(0,oe.useEffect)((function(){w.value=(0,pe.withRepeat)((0,pe.withTiming)(y,{duration:ie,easing:pe.Easing.linear}),-1)}),[]);var Fe=(0,pe.useAnimatedStyle)((function(){return{transform:[{translateX:w.value}]}}),[]),je=(0,pe.useDerivedValue)((function(){var w=Me-24,E=(w-8)/2,P=E/2,q=w/2,ne=2*q+16,oe=y-ne;return"M0 0 h"+y+" v"+Me+" h-"+y+"z M8 "+Me/2+" a"+q+" "+q+" 0 1 0 "+2*q+" 0 a"+q+" "+q+" 0 1 0 -"+2*q+" 0z M"+(ne+P)+" "+"12 a"+P+" "+P+" 0 1 0 0 "+E+"z M"+(ne-P+.25*oe)+" "+"12 h-"+(.25*oe-2*P)+" v"+E+" h"+(.25*oe-2*P)+"z M"+(ne-P+.25*oe)+" "+(he+E)+" a"+P+" "+P+" 0 1 0 0 -"+E+"z M"+(ne+P)+" "+(he+E+8)+" a"+P+" "+P+" 0 1 0 0 "+E+"z M"+(ne+.8*oe-P)+" "+(he+E+8)+" h-"+(.8*oe-2*P)+" v"+E+" h"+(.8*oe-2*P)+"z M"+(ne+.8*oe-P)+" "+(Me-he)+" a"+P+" "+P+" 0 1 0 0 -"+E+"z M"+(ne+.8*oe+P+16)+" "+(he+E+8)+" a"+P+" "+P+" 0 1 0 0 "+E+"z M"+(y-8-P)+" "+(he+E+8)+" h-"+(y-8-P-(ne+.8*oe+P+16))+" v"+E+" h"+(y-8-P-(ne+.8*oe+P+16))+"z M"+(y-16)+" "+(Me-he)+" a"+P+" "+P+" 0 1 0 0 -"+E+"z"}),[]);return oe.default.createElement(le.default,{style:[ve.container,{borderBottomColor:Ae},_e],testID:"channel-preview-skeleton"},oe.default.createElement(le.default,{style:[ve.background,{backgroundColor:Oe},ye]}),oe.default.createElement(pe.default.View,{style:[Fe,ve.background]},oe.default.createElement(ge.Svg,{height:Me,width:y},oe.default.createElement(ge.Rect,{fill:"url(#gradient)",height:Me,width:y,x:0,y:0}),oe.default.createElement(ge.Defs,null,oe.default.createElement(ge.LinearGradient,{gradientUnits:"userSpaceOnUse",id:"gradient",x1:0,x2:y,y1:0,y2:0},oe.default.createElement(ge.Stop,(0,ne.default)({offset:1,stopColor:Te},Re)),oe.default.createElement(ge.Stop,(0,ne.default)({offset:.5,stopColor:Te},we)),oe.default.createElement(ge.Stop,(0,ne.default)({offset:0,stopColor:Te},Re)))))),oe.default.createElement(ge.Svg,{height:Me,width:y},oe.default.createElement(ge.Path,{d:je.value,fill:Oe})))};w.Skeleton=ye,ye.displayName="Skeleton{channelListSkeleton}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ChannelAvatar=void 0;var q=P(E(0)),ne=E(609),oe=E(610),ie=E(131),se=E(364);w.ChannelAvatar=function ChannelAvatar(y){var w=y.channel,E=(0,ne.useChannelPreviewDisplayAvatar)(w),P=(0,oe.useChannelPreviewDisplayPresence)(w);return E.images?q.default.createElement(se.GroupAvatar,{images:E.images,names:E.names,size:40}):q.default.createElement(ie.Avatar,{image:E.image,name:E.name,online:P,size:40})}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useChannelPreviewDisplayAvatar=w.getChannelPreviewDisplayAvatar=void 0;var q=P(E(19)),ne=E(0),oe=E(30),ie=function getChannelPreviewDisplayAvatar(y,w){var E,P=null==w||null==(E=w.user)?void 0:E.id,q=null==y?void 0:y.data,ne=null==q?void 0:q.name,oe=null==q?void 0:q.image;if(oe)return{image:oe,name:ne};if(P){var ie,se,le,pe=Object.values(null==(ie=y.state)?void 0:ie.members).filter((function(y){var w;return(null==(w=y.user)?void 0:w.id)!==P}));return 1===pe.length?{image:null==(se=pe[0].user)?void 0:se.image,name:ne||(null==(le=pe[0].user)?void 0:le.name)}:{images:pe.slice(0,4).map((function(y){var w;return(null==(w=y.user)?void 0:w.image)||""})),names:pe.slice(0,4).map((function(y){var w;return(null==(w=y.user)?void 0:w.name)||""}))}}return{name:ne}};w.getChannelPreviewDisplayAvatar=ie;w.useChannelPreviewDisplayAvatar=function useChannelPreviewDisplayAvatar(y){var w,E=(0,oe.useChatContext)().client,P=null==y?void 0:y.data,se=null==P?void 0:P.image,le=null==P?void 0:P.name,pe=null==E||null==(w=E.user)?void 0:w.id,ge=(0,ne.useState)(ie(y,E)),me=(0,q.default)(ge,2),he=me[0],ve=me[1];return(0,ne.useEffect)((function(){ve(ie(y,E))}),[pe,se,le]),he}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useChannelPreviewDisplayPresence=void 0;var q=P(E(19)),ne=E(0),oe=E(30);w.useChannelPreviewDisplayPresence=function useChannelPreviewDisplayPresence(y){var w=(0,oe.useChatContext)().client,E=w.userID,P=Object.values(y.state.members).filter((function(y){var w,P;return!(null==(w=y.user)||!w.id||!E||(null==(P=y.user)?void 0:P.id)===E)})).some((function(y){var w;return null==(w=y.user)?void 0:w.online})),ie=(0,ne.useState)(!1),se=(0,q.default)(ie,2),le=se[0],pe=se[1];return(0,ne.useEffect)((function(){pe(function getChannelPreviewDisplayPresence(y,w){var E=w.userID;if(E){var P,q=Object.values(y.state.members).filter((function(y){var w;return(null==(w=y.user)?void 0:w.id)!==E}));if(1===q.length)return!(null==(P=q[0].user)||!P.online)}return!1}(y,w))}),[P]),le}},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.useChannelPreviewDisplayName=w.getChannelPreviewDisplayName=void 0;var q=P(E(19)),ne=E(0),oe=E(30),ie=((0,E(27).vw)(100)-16)/6,se=function getChannelPreviewDisplayName(y){var w=y.channelName,E=y.currentUserId,P=y.maxCharacterLength,q=y.members;return w||Object.values(q||{}).filter((function(y){var w;return(null==(w=y.user)?void 0:w.id)!==E})).slice(0).reduce((function(y,w,E,q){var ne,oe,ie=y.length,se=(null==(ne=w.user)?void 0:ne.name)||(null==(oe=w.user)?void 0:oe.id)||"Unknown User";ie+(se.length+2)=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 je={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]:{},E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,se.default)(this,Streami18n),this.i18nInstance=_e.default.createInstance(),this.Dayjs=null,this.setLanguageCallback=function(){return null},this.initialized=!1,this.t=function(y){return y},this.translations={en:(0,ie.default)({},Oe,Re.default),fr:(0,ie.default)({},Oe,we.default),hi:(0,ie.default)({},Oe,ke.default),it:(0,ie.default)({},Oe,Me.default),nl:(0,ie.default)({},Oe,Se.default),ru:(0,ie.default)({},Oe,Ae.default),tr:(0,ie.default)({},Oe,Te.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=Fe)},this.geti18Instance=function(){return y.i18nInstance},this.getAvailableLanguages=function(){return Object.keys(y.translations)},this.getTranslations=function(){return y.translations};var P=(0,oe.default)({},Ve,w);this.logger=P.logger,this.currentLanguage=P.language,this.DateTimeParser=P.DateTimeParser;try{this.DateTimeParser&&Be(this.DateTimeParser)&&(this.DateTimeParser.extend(he.default),this.DateTimeParser.extend(ge.default),this.DateTimeParser.extend(me.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=P.translationsForLanguage;q&&(this.translations[this.currentLanguage]=(0,ie.default)({},Oe,q)),this.translations[this.currentLanguage]||(this.translations[this.currentLanguage]=(0,ie.default)({},Oe,{})),this.i18nextConfig=(0,oe.default)({debug:P.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}},E),this.validateCurrentLanguage();var ne=P.dayjsLocaleConfigForLanguage;ne?this.addOrUpdateLocale(this.currentLanguage,(0,oe.default)({},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 P.disableDateTimeTranslations||!y.localeExists(y.currentLanguage)?(Be(y.DateTimeParser),y.DateTimeParser(w).locale(Fe)):(Be(y.DateTimeParser),y.DateTimeParser(w).locale(y.currentLanguage))}}var y,w,E;return(0,le.default)(Streami18n,[{key:"init",value:(E=(0,ne.default)(q.default.mark((function _callee(){return q.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((0,oe.default)({},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,ne.default)(q.default.mark((function _callee2(){return q.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][Oe]=w:this.translations[y]=(0,ie.default)({},Oe,w),E?this.dayjsLocales[y]=(0,oe.default)({},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,Oe,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,(0,oe.default)({},w)):pe.default.locale((0,oe.default)({name:y},je,w),void 0,!0)}},{key:"setLanguage",value:(y=(0,ne.default)(q.default.mark((function _callee3(y){var w;return q.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","1 Thread Reply":"1 Thread Reply","Allow access to your Gallery":"Allow access to your Gallery","Also send to channel":"Also send to channel","Are you sure you want to permanently delete this message?":"Are you sure you want to permanently delete this message?","Block User":"Block User","Cancel":"Cancel","Copy Message":"Copy Message","Delete":"Delete","Delete Message":"Delete Message","Dismiss":"Dismiss","Do you want to send a copy of this message to a moderator for further investigation?":"Do you want to send a copy of this message to a moderator for further investigation?","Edit Message":"Edit Message","Editing Message":"Editing Message","Emoji matching":"Emoji matching","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","Flag":"Flag","Flag Message":"Flag Message","Instant Commands":"Instant Commands","Loading channels...":"Loading channels...","Loading messages...":"Loading messages...","Loading...":"Loading...","Message Reactions":"Message Reactions","Message deleted":"Message deleted","Message flagged":"Message flagged","Mute User":"Mute User","Nothing yet...":"Nothing yet...","Only visible to you":"Only visible to you","Photo":"Photo","Photos":"Photos","Please enable access to your photos and videos so you can share them.":"Please enable access to your photos and videos so you can share them.","Please select a channel first":"Please select a channel first","Reconnecting...":"Reconnecting...","Reply":"Reply","Reply to Message":"Reply to Message","Resend":"Resend","Search GIFs":"Search GIFs","Send a message":"Send a message","Something went wrong":"Something went wrong","The message has been reported to a moderator.":"The message has been reported to a moderator.","The operation couldn\'t be completed.":"The operation couldn\'t be completed.","Thread Reply":"Thread Reply","Unblock User":"Unblock User","Unknown User":"Unknown User","Unmute User":"Unmute User","Unread Messages":"Unread Messages","You":"You","{{ firstUser }} and {{ nonSelfUserLength }} more are typing":"{{ firstUser }} and {{ nonSelfUserLength }} more are typing","{{ index }} of {{ photoLength }}":"{{ index }} of {{ photoLength }}","{{ replyCount }} Replies":"{{ replyCount }} Replies","{{ replyCount }} Thread Replies":"{{ replyCount }} Thread Replies","{{ user }} is typing":"{{ user }} is typing","🏙 Attachment...":"🏙 Attachment..."}')},function(y){y.exports=JSON.parse('{"1 Reply":"1 Réponse","1 Thread Reply":"Réponse à 1 fil","Allow access to your Gallery":"Autoriser l\'accès à votre galerie","Also send to channel":"Envoyer également à la chaîne","Are you sure you want to permanently delete this message?":"Êtes-vous sûr de vouloir supprimer définitivement ce message?","Block User":"Bloquer un utilisateur","Cancel":"Annuler","Copy Message":"Copier le message","Delete":"Supprimer","Delete Message":"Supprimer un message","Dismiss":"Rejeter","Do you want to send a copy of this message to a moderator for further investigation?":"Voulez-vous envoyer une copie de ce message à un modérateur pour une enquête plus approfondie?","Edit Message":"Éditer un message","Editing Message":"Édite un message","Emoji matching":"Correspondance Emoji","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","Flag":"Signaler","Flag Message":"Signaler le message","Instant Commands":"Commandes Instantanées","Loading channels...":"Chargement des canaux...","Loading messages...":"Chargement des messages...","Loading...":"Chargement...","Message Reactions":"Réactions aux messages","Message deleted":"Message supprimé","Message flagged":"Message signalé","Mute User":"Utilisateur muet","Nothing yet...":"Aucun message...","Only visible to you":"Seulement visible par vous","Photo":"Photo","Photos":"Photos","Please enable access to your photos and videos so you can share them.":"Veuillez autoriser l\'accès à vos photos et vidéos afin de pouvoir les partager.","Please select a channel first":"Veuillez d\'abord selectionnez un canal","Reconnecting...":"Se Reconnecter...","Reply":"Répondre","Reply to Message":"Répondre au message","Resend":"Renvoyer","Search GIFs":"Rechercher des GIF","Send a message":"Envoyer un message","Something went wrong":"Un problème est survenu","The message has been reported to a moderator.":"Le message a été signalé à un modérateur.","The operation couldn\'t be completed.":"L\'opération n\'a pas pu être terminée.","Thread Reply":"Réponse à la discussion","Unblock User":"Débloquer Utilisateur","Unknown User":"Utilisateur inconnu","Unmute User":"Activer le son de Utilisateur","Unread Messages":"Messages non lus","You":"Toi","{{ firstUser }} and {{ nonSelfUserLength }} more are typing":"{{ firstUser }} et {{ nonSelfUserLength }} autres sont en train d\'écrire","{{ index }} of {{ photoLength }}":"{{ index }} sur {{ photoLength }}","{{ replyCount }} Replies":"{{ replyCount }} Réponses","{{ replyCount }} Thread Replies":"{{replyCount}} Réponses à la discussion","{{ user }} is typing":"{{ user }} est en train d\'écrire","🏙 Attachment...":"🏙 Pièce jointe..."}')},function(y){y.exports=JSON.parse('{"1 Reply":"1 रिप्लाई","1 Thread Reply":"1 धागा उत्तर","Allow access to your Gallery":"अपनी गैलरी तक पहुँचने की अनुमति दें","Also send to channel":"चैनल को भी भेजें","Are you sure you want to permanently delete this message?":"क्या आप वाकई इस संदेश को स्थायी रूप से हटाना चाहते हैं?","Block User":"उपयोगकर्ता को रोक देना, ब्लॉक यूजर","Cancel":"रद्द करें","Copy Message":"संदेश की प्रतिलिपि बनाएँ","Delete":"हटाएं","Delete Message":"मैसेज को डिलीट करे","Dismiss":"खारिज","Do you want to send a copy of this message to a moderator for further investigation?":"क्या आप इस संदेश की एक प्रति आगे की जाँच के लिए किसी मॉडरेटर को भेजना चाहते हैं?","Edit Message":"मैसेज में बदलाव करे","Editing Message":"मैसेज बदला जा रहा है","Emoji matching":"इमोजी मिलान","Empty message...":"खाली संदेश...","Error loading":"लोड होने मे त्रुटि","Error loading channel list...":"चैनल सूची लोड करने में त्रुटि...","Error loading messages for this channel...":"इस चैनल के लिए मेसेजेस लोड करने में त्रुटि हुई...","Error while loading, please reload/refresh":"एरर, रिफ्रेश करे","Flag":"झंडा","Flag Message":"झंडा संदेश","Instant Commands":"त्वरित कमांड","Loading channels...":"चैनल लोड हो रहे हैं...","Loading messages...":"मेसेजस लोड हो रहे हैं...","Loading...":"लोड हो रहा है...","Message Reactions":"संदेश प्रतिक्रियाएँ","Message deleted":"मैसेज हटा दिया गया","Message flagged":"संदेश को ध्वजांकित किया गया","Mute User":"उपयोगकर्ता को म्यूट करें","Nothing yet...":"कोई मैसेज नहीं है...","Only visible to you":"केवल आपको दिखाई दे रहा है","Photo":"तस्वीर","Photos":"तस्वीरें","Please enable access to your photos and videos so you can share them.":"कृपया अपनी फ़ोटो और वीडियो तक पहुंच सक्षम करें ताकि आप उन्हें साझा कर सकें।","Please select a channel first":"कृपया पहले एक चैनल चुनें","Reconnecting...":"पुनः कनेक्ट हो...","Reply":"मैसेज को रिप्लाई करे","Reply to Message":"संदेश का जवाब दें","Resend":"पुन: भेजें","Search GIFs":"GIF खोजें","Send a message":"एक संदेश भेजें","Something went wrong":"कुछ गलत हो गया","The message has been reported to a moderator.":"संदेश एक मॉडरेटर को सूचित किया गया है।","The operation couldn\'t be completed.":"ऑपरेशन पूरा नहीं हो सका।","Thread Reply":"धागा जवाब","Unblock User":"उपयोगकर्ता को अनब्लॉक करें","Unknown User":"अज्ञात उपयोगकर्ता","Unmute User":"उपयोगकर्ता को अनम्यूट करें","Unread Messages":"अपठित संदेश","You":"आप","{{ firstUser }} and {{ nonSelfUserLength }} more are typing":"{{ firstUser }} और {{ nonSelfUserLength }} अधिक टाइप कर रहे हैं","{{ index }} of {{ photoLength }}":"{{ index }} / {{ photoLength }}","{{ replyCount }} Replies":"{{ replyCount }} रिप्लाई","{{ replyCount }} Thread Replies":"{{ replyCount }}} थ्रेड उत्तर","{{ user }} is typing":"{{ user }} टाइप कर रहा है","🏙 Attachment...":"🏙 अटैचमेंट..."}')},function(y){y.exports=JSON.parse('{"1 Reply":"1 Risposta","1 Thread Reply":"1 Risposta alla Discussione","Allow access to your Gallery":"Consenti l\'accesso alla tua galleria","Also send to channel":"Invia anche al canale","Are you sure you want to permanently delete this message?":"Sei sicuro di voler eliminare definitivamente questo messaggio?","Block User":"Blocca Utente","Cancel":"Annulla","Copy Message":"Copia Messaggio","Delete":"Elimina","Delete Message":"Cancella il Messaggio","Dismiss":"Respingere","Do you want to send a copy of this message to a moderator for further investigation?":"Vuoi inviare una copia di questo messaggio a un moderatore per ulteriori indagini?","Edit Message":"Modifica Messaggio","Editing Message":"Modificando il Messaggio","Emoji matching":"Abbinamento emoji","Empty message...":"Message vuoto...","Error loading":"Errore di caricamento","Error loading channel list...":"Errore durante il caricamento della lista dei canali...","Error loading messages for this channel...":"Errore durante il caricamento dei messaggi per questo canale...","Error while loading, please reload/refresh":"Errore durante il caricamento, per favore ricarica la pagina","Flag":"Contrassegna","Flag Message":"Contrassegna Messaggio","Instant Commands":"Comandi Istantanei","Loading channels...":"Caricamento canali in corso...","Loading messages...":"Caricamento messaggi...","Loading...":"Caricamento...","Message Reactions":"Reazioni ai Messaggi","Message deleted":"Messaggio cancellato","Message flagged":"Messaggio contrassegnato","Mute User":"Utente Muto","Nothing yet...":"Ancora niente...","Only visible to you":"Visibile solo a te","Photo":"Foto","Photos":"Fotografie","Please enable access to your photos and videos so you can share them.":"Abilita l\'accesso alle tue foto e ai tuoi video in modo da poterli condividere.","Please select a channel first":"Seleziona un canale","Reconnecting...":"Ricollegarsi...","Reply":"Rispondi","Reply to Message":"Rispondi al messaggio","Resend":"Invia di nuovo","Search GIFs":"Cerca GIF","Send a message":"Mandare un messaggio","Something went wrong":"Qualcosa è andato storto","The message has been reported to a moderator.":"Il messaggio è stato segnalato a un moderatore.","The operation couldn\'t be completed.":"Impossibile completare l\'operazione.","Thread Reply":"Rispondi alla Discussione","Unblock User":"Sblocca utente","Unknown User":"Utente sconosciuto","Unmute User":"Riattiva utente","Unread Messages":"Messaggi non letti","You":"Tu","{{ firstUser }} and {{ nonSelfUserLength }} more are typing":"{{ firstUser }} e altri {{ nonSelfUserLength }} stanno scrivendo","{{ index }} of {{ photoLength }}":"{{ index }} di {{ photoLength }}","{{ replyCount }} Replies":"{{ replyCount }} Risposte","{{ replyCount }} Thread Replies":"{{replyCount}} Risposte alle Conversazione","{{ user }} is typing":"{{ user }} sta scrivendo","🏙 Attachment...":"🏙 Allegato..."}')},function(y){y.exports=JSON.parse('{"1 Reply":"1 Antwoord","1 Thread Reply":"1 thread antwoord","Allow access to your Gallery":"Geef toegang tot uw galerij","Also send to channel":"Stuur ook naar kanaal","Are you sure you want to permanently delete this message?":"Weet u zeker dat u dit bericht definitief wilt verwijderen?","Block User":"Blokkeer Gebruiker","Cancel":"Annuleer","Copy Message":"Bericht kopiëren","Delete":"Verwijderen","Delete Message":"Verwijder bericht","Dismiss":"Afwijzen","Do you want to send a copy of this message to a moderator for further investigation?":"Wil je een kopie van dit bericht naar een moderator sturen voor verder onderzoek?","Edit Message":"Pas bericht aan","Editing Message":"Bericht aanpassen","Emoji matching":"Emoji-overeenkomsten","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","Flag":"Markeer","Flag Message":"Markeer bericht","Instant Commands":"Directe Opdrachten","Loading channels...":"Kanalen aan het laden...","Loading messages...":"Berichten aan het laden...","Loading...":"Aan het laden...","Message Reactions":"Bericht Reacties","Message deleted":"Bericht verwijderd","Message flagged":"Bericht gemarkeerd","Mute User":"Gebruiker dempen","Nothing yet...":"Nog niets...","Only visible to you":"Alleen zichtbaar voor jou","Photo":"Foto","Photos":"Foto\'s","Please enable access to your photos and videos so you can share them.":"Schakel toegang tot uw foto\'s en video\'s in zodat u ze kunt delen.","Please select a channel first":"Selecteer eerst een kanaal","Reconnecting...":"Opnieuw Verbinding Maken...","Reply":"Antwoord","Reply to Message":"Beantwoord bericht","Resend":"Opnieuw versturen","Search GIFs":"Zoek GIF\'s","Send a message":"Stuur een bericht","Something went wrong":"Er is iets fout gegaan","The message has been reported to a moderator.":"Het bericht is gerapporteerd aan een moderator.","The operation couldn\'t be completed.":"De bewerking kan niet worden voltooid.","Thread Reply":"Discussie beantwoorden","Unblock User":"Deblokkeer gebruiker","Unknown User":"Onbekende gebruiker","Unmute User":"Dempen van gebruiker opheffen","Unread Messages":"Ongelezen Berichten","You":"U","{{ firstUser }} and {{ nonSelfUserLength }} more are typing":"{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen","{{ index }} of {{ photoLength }}":"{{ index }} van {{ photoLength }}","{{ replyCount }} Replies":"{{ replyCount }} Antwoorden","{{ replyCount }} Thread Replies":"{{replyCount}} Discussiereacties","{{ user }} is typing":"{{ user }} is aan het typen","🏙 Attachment...":"🏙 Bijlage..."}')},function(y){y.exports=JSON.parse('{"1 Reply":"1 Ответ","1 Thread Reply":"1 тема Ответить","Allow access to your Gallery":"Разрешить доступ к вашей галерее","Also send to channel":"Также отправить на канал","Are you sure you want to permanently delete this message?":"Вы действительно хотите удалить это сообщение без возможности восстановления?","Block User":"Заблокировать пользователя","Cancel":"Отмена","Copy Message":"Копировать сообщение","Delete":"удалять","Delete Message":"Удалить сообщение","Dismiss":"Отклонить","Do you want to send a copy of this message to a moderator for further investigation?":"Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?","Edit Message":"Редактировать сообщение","Editing Message":"Редактирование сообщения","Emoji matching":"Соответствие эмодзи","Empty message...":"Пустое сообщение...","Error loading":"Ошибка при загрузке","Error loading channel list...":"Ошибка загрузки списка каналов...","Error loading messages for this channel...":"Ошибка загрузки сообщений для этого канала...","Error while loading, please reload/refresh":"Ошибка загрузки, пожалуйста перезагрузите или обновите","Flag":"Пометить","Flag Message":"Пометить сообщение","Instant Commands":"Мгновенные Команды","Loading channels...":"Загружаю каналы...","Loading messages...":"Загружаю сообщения...","Loading...":"Загружаю...","Message Reactions":"Сообщения Реакции","Message deleted":"Сообщение удалено","Message flagged":"Сообщение отмечено","Mute User":"Отключить пользователя","Nothing yet...":"Пока ничего нет...","Only visible to you":"Видно только вам","Photo":"Фото","Photos":"Фото","Please enable access to your photos and videos so you can share them.":"Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.","Please select a channel first":"Пожалуйста, сначала выберите канал","Reconnecting...":"Переподключение...","Reply":"Ответить","Reply to Message":"Ответить на сообщение","Resend":"Отправить","Search GIFs":"Поиск GIF","Send a message":"Отправить сообщение","Something went wrong":"Что-то пошло не так","The message has been reported to a moderator.":"Сообщение отправлено модератору.","The operation couldn\'t be completed.":"Операция не может быть завершена.","Thread Reply":"Тема Ответить","Unblock User":"Разблокировать пользователя","Unknown User":"Неизвестный пользователь","Unmute User":"Включить микрофон","Unread Messages":"Непрочитанные Сообщения","You":"Вы","{{ firstUser }} and {{ nonSelfUserLength }} more are typing":"{{ firstUser }} и еще {{ nonSelfUserLength }} пишут","{{ index }} of {{ photoLength }}":"{{ index }} из {{ photoLength }}","{{ replyCount }} Replies":"{{ replyCount }} Ответов","{{ replyCount }} Thread Replies":"{{replyCount}} Ответы в темах","{{ user }} is typing":"{{ user }} пишет","🏙 Attachment...":"🏙 Вложение..."}')},function(y){y.exports=JSON.parse('{"1 Reply":"1 Cevap","1 Thread Reply":"1 Konu Yanıtı","Allow access to your Gallery":"Galerinize erişime izin verin","Also send to channel":"Kanala da gönder","Are you sure you want to permanently delete this message?":"Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?","Block User":"Kullanıcıyı engelle","Cancel":"İptal","Copy Message":"Mesajı Kopyala","Delete":"Sil","Delete Message":"Mesajı Sil","Dismiss":"Reddet","Do you want to send a copy of this message to a moderator for further investigation?":"Daha fazla araştırma için bu mesajın bir kopyasını bir moderatöre göndermek istiyor musunuz?","Edit Message":"Mesajı Düzenle","Editing Message":"Mesaj Düzenleniyor","Emoji matching":"Emoji eşleştirme","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","Flag":"Bayrak çekmek","Flag Message":"Mesajı İşaretle","Instant Commands":"Anında Komutlar","Loading channels...":"Kanallar yükleniyor...","Loading messages...":"Mesajlar yükleniyor...","Loading...":"Yükleniyor...","Message Reactions":"Mesaj Tepkileri","Message deleted":"Mesaj silindi","Message flagged":"Mesaj işaretlendi","Mute User":"Kullanıcının Sesini Kapat","Nothing yet...":"Şimdilik hiçbir şey...","Only visible to you":"Sadece siz görebilirsiniz","Photo":"Fotoğraf","Photos":"Fotoğraflar","Please enable access to your photos and videos so you can share them.":"Lütfen paylaşabilmek için fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.","Please select a channel first":"Lütfen önce bir kanal seçin","Reconnecting...":"Yeniden Bağlanma...","Reply":"Cevapla","Reply to Message":"Mesajı Cevapla","Resend":"Yeniden gönder","Search GIFs":"GIF ara","Send a message":"Bir mesaj göndermek","Something went wrong":"Bir şeyler yanlış gitti","The message has been reported to a moderator.":"Mesaj bir moderatöre bildirildi.","The operation couldn\'t be completed.":"İşlem tamamlanamadı.","Thread Reply":"Konu Yanıtı","Unblock User":"Kullanıcının engelini kaldır","Unknown User":"Bilinmeyen kullanıcı","Unmute User":"Kullanıcının sesini aç","Unread Messages":"Okunmamış Mesajlar","You":"Sen","{{ firstUser }} and {{ nonSelfUserLength }} more are typing":"{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor","{{ index }} of {{ photoLength }}":"{{ index }} / {{ photoLength }}","{{ replyCount }} Replies":"{{ replyCount }} Cevaplar","{{ replyCount }} Thread Replies":"{{responseCount}} Konu Cevapları","{{ user }} is typing":"{{ user }} yazıyor","🏙 Attachment...":"🏙 Ek..."}')},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.AnimatedGalleryImage=void 0;var ne=q(E(0)),oe=q(E(8)),ie=P(E(58)),se=E(27),le=(0,se.vh)(100),pe=(0,se.vw)(100),ge=(0,se.vw)(50),me=1/8,he=ne.default.memo((function(y){var w=y.index,E=y.offsetScale,P=y.photo,q=y.previous,se=y.scale,he=y.selected,ve=y.shouldRender,ye=y.style,_e=y.translateX,Re=y.translateY,we=(0,ie.useAnimatedStyle)((function(){var y=-7*pe*(.5+w),P=3.5*-le;return{transform:[{translateX:he?_e.value+y:se.value<1||se.value!==E.value?y:q?_e.value-ge*(se.value-1)+y:_e.value+ge*(se.value-1)+y},{translateY:he?Re.value+P:P},{scale:he?se.value/8:me},{scaleX:-1}]}}),[q,he]);return ve?ne.default.createElement(ie.default.Image,{resizeMode:"contain",source:{uri:P.uri},style:[ye,we,{transform:[{scaleX:-1},{translateY:3.5*-le},{translateX:-_e.value+7*pe*(.5+w)},{scale:me}]}]}):ne.default.createElement(oe.default,{style:[ye,{transform:[{scale:me}]}]})}),(function(y,w){return y.selected===w.selected&&y.shouldRender===w.shouldRender&&y.photo.uri===w.photo.uri&&y.previous===w.previous&&y.index===w.index}));w.AnimatedGalleryImage=he,he.displayName="AnimatedGalleryImage"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageGalleryFooter=void 0;var ne=q(E(47)),oe=q(E(48)),ie=q(E(19)),se=P(E(0)),le=q(E(208)),pe=q(E(7)),ge=q(E(17)),me=q(E(36)),he=q(E(8)),ve=P(E(58)),ye=E(11),_e=E(26),Re=E(42),we=E(84),ke=ve.default.createAnimatedComponent?ve.default.createAnimatedComponent(le.default):le.default,Me=pe.default.create({centerContainer:{alignItems:"center",flex:1,justifyContent:"center"},imageCountText:{fontSize:16,fontWeight:"600"},innerContainer:{flexDirection:"row",height:56},leftContainer:{flex:1,justifyContent:"center",marginLeft:8},rightContainer:{flex:1,justifyContent:"center",marginRight:8},wrapper:{bottom:0,left:0,position:"absolute",right:0}}),Se=function ImageGalleryFooter(y){var w=y.centerElement,E=y.GridIcon,P=y.leftElement,q=y.opacity,le=y.openGridView,pe=y.photo,Se=y.photoLength,Ae=y.rightElement,Te=y.selectedIndex,Oe=y.ShareIcon,Fe=y.visible,je=(0,se.useState)(200),Be=(0,ie.default)(je,2),Ve=Be[0],Ne=Be[1],Ue=(0,se.useState)(!1),We=(0,ie.default)(Ue,2),$e=We[0],Ye=We[1],Xe=(0,ye.useTheme)().theme,et=Xe.colors,tt=et.black,nt=et.white,rt=Xe.imageGallery.footer,ot=rt.centerContainer,it=rt.container,st=rt.imageCountText,dt=rt.innerContainer,ct=rt.leftContainer,lt=rt.rightContainer,ut=(0,_e.useTranslationContext)().t,pt=(0,ve.useAnimatedStyle)((function(){return{opacity:q.value,transform:[{translateY:(0,ve.interpolate)(Fe.value,[0,1],[Ve,0],ve.Extrapolate.CLAMP)}]}}),[]),gt=function(){var y=(0,oe.default)(ne.default.mark((function _callee(){var y,w;return ne.default.wrap((function _callee$(E){for(;;)switch(E.prev=E.next){case 0:return Ye(!0),E.prev=1,E.next=4,(0,we.saveFile)({fileName:((null==(y=pe.user)?void 0:y.name)||pe.user_id||"ChatPhoto")+"-"+pe.messageId+"-"+Te+".jpg",fromUrl:pe.uri});case 4:return w=E.sent,E.next=7,(0,we.shareImage)({type:"image/jpeg",url:w});case 7:return E.next=9,(0,we.deleteFile)({uri:w});case 9:E.next=14;break;case 11:E.prev=11,E.t0=E.catch(1),console.log(E.t0);case 14:Ye(!1);case 15:case"end":return E.stop()}}),_callee,null,[[1,11]])})));return function share(){return y.apply(this,arguments)}}();return se.default.createElement(ve.default.View,{onLayout:function onLayout(y){return Ne(y.nativeEvent.layout.height)},pointerEvents:"box-none",style:Me.wrapper},se.default.createElement(ke,{style:[{backgroundColor:nt},it,pt]},se.default.createElement(he.default,{style:[Me.innerContainer,dt]},P?P({openGridView:le,photo:pe,share:gt,shareMenuOpen:$e}):se.default.createElement(me.default,{disabled:$e,onPress:gt},se.default.createElement(he.default,{style:[Me.leftContainer,ct]},Oe||se.default.createElement(Re.Share,null))),w?w({openGridView:le,photo:pe,share:gt,shareMenuOpen:$e}):se.default.createElement(he.default,{style:[Me.centerContainer,ot]},se.default.createElement(ge.default,{style:[Me.imageCountText,{color:tt},st]},ut("{{ index }} of {{ photoLength }}",{index:Te+1,photoLength:Se}))),Ae?Ae({openGridView:le,photo:pe,share:gt,shareMenuOpen:$e}):se.default.createElement(me.default,{onPress:le},se.default.createElement(he.default,{style:[Me.rightContainer,lt]},E||se.default.createElement(Re.Grid,null))))))};w.ImageGalleryFooter=Se,Se.displayName="ImageGalleryFooter{imageGallery{footer}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageGalleryHeader=void 0;var ne=q(E(19)),oe=P(E(0)),ie=q(E(208)),se=q(E(7)),le=q(E(17)),pe=q(E(36)),ge=q(E(8)),me=P(E(58)),he=E(106),ve=E(11),ye=E(26),_e=E(42),Re=me.default.createAnimatedComponent?me.default.createAnimatedComponent(ie.default):ie.default,we=se.default.create({centerContainer:{alignItems:"center",flex:1,justifyContent:"center"},date:{fontSize:12,fontWeight:"500",marginTop:4,opacity:.5},innerContainer:{flexDirection:"row",height:56},leftContainer:{flex:1,justifyContent:"center",marginLeft:8},rightContainer:{marginRight:8,width:24},userName:{fontSize:16,fontWeight:"700"}}),ke=function ImageGalleryHeader(y){var w,E=y.centerElement,P=y.CloseIcon,q=y.leftElement,ie=y.opacity,se=y.photo,ke=y.rightElement,Me=y.visible,Se=(0,oe.useState)(200),Ae=(0,ne.default)(Se,2),Te=Ae[0],Oe=Ae[1],Fe=(0,ve.useTheme)().theme,je=Fe.colors,Be=je.black,Ve=je.white,Ne=Fe.imageGallery.header,Ue=Ne.centerContainer,We=Ne.container,$e=Ne.dateText,Ye=Ne.innerContainer,Xe=Ne.leftContainer,et=Ne.rightContainer,tt=Ne.usernameText,nt=(0,ye.useTranslationContext)(),rt=nt.t,ot=nt.tDateTimeParser,it=(0,he.useOverlayContext)(),st=it.setBlurType,dt=it.setOverlay,ct=ot(null==se?void 0:se.created_at),lt=ct&&(0,ye.isDayOrMoment)(ct)?ct.calendar():ct,ut=(0,me.useAnimatedStyle)((function(){return{opacity:ie.value,transform:[{translateY:(0,me.interpolate)(Me.value,[0,1],[-Te,0],me.Extrapolate.CLAMP)}]}})),pt=function hideOverlay(){dt("none"),st(void 0)};return oe.default.createElement(ge.default,{onLayout:function onLayout(y){return Oe(y.nativeEvent.layout.height)},pointerEvents:"box-none"},oe.default.createElement(Re,{style:[{backgroundColor:Ve},We,ut]},oe.default.createElement(ge.default,{style:[we.innerContainer,Ye]},q?q({hideOverlay:pt,photo:se}):oe.default.createElement(pe.default,{onPress:pt},oe.default.createElement(ge.default,{style:[we.leftContainer,Xe]},P||oe.default.createElement(_e.Close,null))),E?E({hideOverlay:pt,photo:se}):oe.default.createElement(ge.default,{style:[we.centerContainer,Ue]},oe.default.createElement(le.default,{style:[we.userName,{color:Be},tt]},(null==se||null==(w=se.user)?void 0:w.name)||rt("Unknown User")),oe.default.createElement(le.default,{style:[we.date,{color:Be},$e]},lt)),ke?ke({hideOverlay:pt,photo:se}):oe.default.createElement(ge.default,{style:[we.rightContainer,et]}))))};w.ImageGalleryHeader=ke,ke.displayName="ImageGalleryHeader{imageGallery{header}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageGalleryOverlay=void 0;var ne=q(E(19)),oe=P(E(0)),ie=q(E(7)),se=E(88),le=P(E(58)),pe=E(11),ge=function ImageGalleryOverlay(y){var w=y.animatedBottomSheetIndex,E=y.closeGridView,P=y.currentBottomSheetIndex,q=(0,pe.useTheme)().theme,ge=q.colors.overlay,me=q.imageGallery.grid.overlay,he=(0,oe.useState)(!1),ve=(0,ne.default)(he,2),ye=ve[0],_e=ve[1],Re=(0,oe.useState)(!1),we=(0,ne.default)(Re,2),ke=we[0],Me=we[1],Se=(0,le.useSharedValue)(0);(0,oe.useEffect)((function(){P>0?(_e(!0),Se.value=(0,le.withTiming)(1,{duration:200,easing:le.Easing.out(le.Easing.ease)},(function(){return(0,le.runOnJS)(Me)(!0)}))):(_e(!1),Se.value=0,Me(!1))}),[P]);var Ae=(0,le.useAnimatedStyle)((function(){return{opacity:ke?w.value:Se.value}}),[ke]);return ye?oe.default.createElement(se.TapGestureHandler,{maxDeltaX:16,maxDeltaY:16,onHandlerStateChange:function tapEvent(y){y.nativeEvent.state===se.State.END&&E()}},oe.default.createElement(le.default.View,{style:[ie.default.absoluteFillObject,{backgroundColor:ge},me,Ae]})):null};w.ImageGalleryOverlay=ge,ge.displayName="ImageGrid{imageGallery{grid{overlay}}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageGrid=void 0;var q=P(E(5)),ne=P(E(92)),oe=P(E(0)),ie=P(E(261)),se=P(E(7)),le=E(262),pe=E(131),ge=E(11),me=E(27),he=se.default.create({avatarImage:{borderRadius:22,height:22,width:22},avatarImageWrapper:{borderRadius:24,borderWidth:1,height:24,margin:8,width:24},contentContainer:{flexGrow:1},image:{margin:1}}),ve=function GridImage(y){var w=y.item,E=(0,ge.useTheme)().theme,P=E.colors.white,q=E.imageGallery.grid,se=q.gridAvatar,ve=q.gridAvatarWrapper,ye=q.gridImage,_e=w.avatarComponent,Re=w.imageComponent,we=(0,ne.default)(w,["avatarComponent","imageComponent"]),ke=we.numberOfImageGalleryGridColumns,Me=we.selectAndClose,Se=we.uri,Ae=we.user,Te=(0,me.vw)(100)/(ke||3)-2;return Re?Re({item:we}):oe.default.createElement(le.TouchableOpacity,{onPress:Me},oe.default.createElement(ie.default,{source:{uri:Se},style:[he.image,{height:Te,width:Te},ye]},_e?_e({item:we}):(null==Ae?void 0:Ae.image)&&oe.default.createElement(pe.Avatar,{containerStyle:[he.avatarImageWrapper,{backgroundColor:P},ve],image:null==Ae?void 0:Ae.image,imageStyle:se,size:22})))},ye=function renderItem(y){var w=y.item;return oe.default.createElement(ve,{item:w})},_e=function ImageGrid(y){var w=y.avatarComponent,E=y.closeGridView,P=y.imageComponent,ne=y.numberOfImageGalleryGridColumns,ie=y.photos,se=y.resetVisibleValues,pe=y.setImage,me=(0,ge.useTheme)().theme,ve=me.colors.white,_e=me.imageGallery.grid.contentContainer,Re=ie.map((function(y){return(0,q.default)({},y,{avatarComponent:w,imageComponent:P,numberOfImageGalleryGridColumns:ne,selectAndClose:function selectAndClose(){se(),pe({messageId:y.messageId,url:y.uri}),E()}})}));return oe.default.createElement(le.BottomSheetFlatList,{contentContainerStyle:[he.contentContainer,{backgroundColor:ve},_e],data:Re,keyExtractor:function keyExtractor(y,w){return y.uri+"-"+w},numColumns:ne||3,renderItem:ye})};w.ImageGrid=_e,_e.displayName="ImageGrid{imageGallery{grid}}"},function(y,w,E){var P=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ImageGridHandle=void 0;var q=P(E(0)),ne=P(E(7)),oe=P(E(17)),ie=P(E(8)),se=E(262),le=E(11),pe=E(26),ge=E(42),me=ne.default.create({closeButton:{marginRight:16},handle:{alignItems:"center",borderTopLeftRadius:16,borderTopRightRadius:16,flexDirection:"row",height:40,justifyContent:"center"},leftContainer:{marginLeft:16,width:24},text:{flex:1,fontSize:16,fontWeight:"600",textAlign:"center"}}),he=function ImageGridHandle(y){var w=y.centerComponent,E=y.closeGridView,P=y.leftComponent,ne=y.rightComponent,he=(0,le.useTheme)().theme,ve=he.colors,ye=ve.black,_e=ve.white,Re=he.imageGallery.grid,we=Re.handle,ke=Re.handleText,Me=(0,pe.useTranslationContext)().t;return q.default.createElement(ie.default,{style:[me.handle,{backgroundColor:_e},we]},P?P({closeGridView:E}):q.default.createElement(ie.default,{style:me.leftContainer}),w?w({closeGridView:E}):q.default.createElement(oe.default,{style:[me.text,{color:ye},ke]},Me("Photos")),ne?ne({closeGridView:E}):q.default.createElement(se.TouchableOpacity,{onPress:E},q.default.createElement(ge.Close,{style:me.closeButton})))};w.ImageGridHandle=he,he.displayName="ImageGridHandle{imageGallery{grid{handle}}}"},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.Thread=void 0;var ne=q(E(5)),oe=q(E(47)),ie=q(E(48)),se=P(E(0)),le=E(633),pe=E(397),ge=E(40),me=E(108),he=function ThreadWithContext(y){var w=y.additionalMessageInputProps,E=y.additionalMessageListProps,P=y.autoFocus,q=void 0===P||P,ge=y.closeThread,me=y.closeThreadOnDismount,he=void 0===me||me,ve=y.disabled,ye=y.loadMoreThread,_e=y.MessageInput,Re=void 0===_e?pe.MessageInput:_e,we=y.MessageList,ke=y.onThreadDismount,Me=y.thread;return(0,se.useEffect)((function(){var y=function(){var y=(0,ie.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,ye();case 2:case"end":return y.stop()}}),_callee)})));return function loadMoreThreadAsync(){return y.apply(this,arguments)}}();null!=Me&&Me.id&&Me.reply_count&&y()}),[]),(0,se.useEffect)((function(){return function(){he&&ge(),ke&&ke()}}),[]),Me?se.default.createElement(se.default.Fragment,{key:"thread-"+Me.id},se.default.createElement(we,(0,ne.default)({FooterComponent:le.ThreadFooterComponent,threadList:!0},E)),se.default.createElement(Re,(0,ne.default)({additionalTextInputProps:{autoFocus:q,editable:!ve},threadList:!0},w))):null};w.Thread=function Thread(y){var w=(0,ge.useMessagesContext)().MessageList,E=(0,me.useThreadContext)(),P=E.closeThread,q=E.loadMoreThread,oe=E.thread;return se.default.createElement(he,(0,ne.default)({closeThread:P,loadMoreThread:q,MessageList:w,thread:oe},y))}},function(y,w,E){var P=E(16),q=E(3);Object.defineProperty(w,"__esModule",{value:!0}),w.ThreadFooterComponent=void 0;var ne=q(E(92)),oe=q(E(0)),ie=q(E(7)),se=q(E(17)),le=q(E(8)),pe=P(E(49)),ge=E(40),me=E(11),he=E(108),ve=E(26),ye=E(27),_e=ie.default.create({absolute:{position:"absolute"},messagePadding:{paddingHorizontal:8},newThread:{alignItems:"center",height:24,justifyContent:"center",marginTop:8},text:{fontSize:12,textAlign:"center"},threadHeaderContainer:{marginVertical:8}}),Re=oe.default.memo((function ThreadFooterComponentWithContext(y){var w,E,P,q=y.Message,ie=y.thread,ge=(0,ve.useTranslationContext)().t,he=(0,me.useTheme)().theme,Re=he.colors,we=Re.bg_gradient_end,ke=Re.bg_gradient_start,Me=Re.grey,Se=he.thread.newThread,Ae=Se.backgroundGradientStart,Te=Se.backgroundGradientStop,Oe=Se.text,Fe=(0,ne.default)(Se,["backgroundGradientStart","backgroundGradientStop","text"]);if(!ie)return null;var je=ie.reply_count;return oe.default.createElement(le.default,{style:_e.threadHeaderContainer},oe.default.createElement(le.default,{style:_e.messagePadding},oe.default.createElement(q,{groupStyles:["single"],message:ie,preventPress:!0,threadList:!0})),oe.default.createElement(le.default,{style:[_e.newThread,Fe]},oe.default.createElement(pe.default,{height:null!=(w=Fe.height)?w:24,style:_e.absolute,width:(0,ye.vw)(100)},oe.default.createElement(pe.Rect,{fill:"url(#gradient)",height:null!=(E=Fe.height)?E:24,width:(0,ye.vw)(100),x:0,y:0}),oe.default.createElement(pe.Defs,null,oe.default.createElement(pe.LinearGradient,{gradientUnits:"userSpaceOnUse",id:"gradient",x1:0,x2:0,y1:0,y2:null!=(P=Fe.height)?P:24},oe.default.createElement(pe.Stop,{offset:1,stopColor:Ae||we,stopOpacity:1}),oe.default.createElement(pe.Stop,{offset:0,stopColor:Te||ke,stopOpacity:1})))),oe.default.createElement(se.default,{style:[_e.text,{color:Me},Oe]},1===je?ge("1 Reply"):ge("{{ replyCount }} Replies",{replyCount:je}))))}),(function areEqual(y,w){var E=y.thread,P=w.thread;return!((null==E?void 0:E.id)!==(null==P?void 0:P.id)||(null==E?void 0:E.text)!==(null==P?void 0:P.text)||(null==E?void 0:E.reply_count)!==(null==P?void 0:P.reply_count))}));w.ThreadFooterComponent=function ThreadFooterComponent(){var y=(0,ge.useMessagesContext)().Message,w=(0,he.useThreadContext)().thread;return oe.default.createElement(Re,{Message:y,thread:w})}},function(y,w,E){var P=E(85),q=E(35),ne=E(635);y.exports=!P&&!q((function(){return 7!=Object.defineProperty(ne("div"),"a",{get:function(){return 7}}).a}))},function(y,w,E){var P=E(64),q=E(65),ne=P.document,oe=q(ne)&&q(ne.createElement);y.exports=function(y){return oe?ne.createElement(y):{}}},function(y,w,E){var P=E(405),q=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(y){return q.call(y)}),y.exports=P.inspectSource},function(y,w){y.exports=!1},function(y,w,E){var P=E(76),q=E(1127),ne=E(402),oe=E(86);y.exports=function(y,w){for(var E=q(w),ie=oe.f,se=ne.f,le=0;lese;)P(ie,E=w[se++])&&(~ne(le,E)||le.push(E));return le}},function(y,w,E){var P=E(178),q=E(181),ne=E(1128),createMethod=function(y){return function(w,E,oe){var ie,se=P(w),le=q(se.length),pe=ne(oe,le);if(y&&E!=E){for(;le>pe;)if((ie=se[pe++])!=ie)return!0}else for(;le>pe;pe++)if((y||pe in se)&&se[pe]===E)return y||pe||0;return!y&&-1}};y.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},function(y,w,E){var P=E(35),q=/#|\.prototype\./,isForced=function(y,w){var E=oe[ne(y)];return E==se||E!=ie&&("function"==typeof w?P(w):!!w)},ne=isForced.normalize=function(y){return String(y).replace(q,".").toLowerCase()},oe=isForced.data={},ie=isForced.NATIVE="N",se=isForced.POLYFILL="P";y.exports=isForced},function(y,w,E){"use strict";var P=E(35);function RE(y,w){return RegExp(y,w)}w.UNSUPPORTED_Y=P((function(){var y=RE("a","y");return y.lastIndex=2,null!=y.exec("abcd")})),w.BROKEN_CARET=P((function(){var y=RE("^r","gy");return y.lastIndex=2,null!=y.exec("str")}))},function(y,w,E){"use strict";var P=E(284),q=E(68),ne=E(118),oe=E(1130),ie=E(285);P("search",1,(function(y,w,E){return[function search(w){var E=ne(this),P=null==w?void 0:w[y];return void 0!==P?P.call(w,E):new RegExp(w)[y](String(E))},function(y){var P=E(w,y,this);if(P.done)return P.value;var ne=q(y),se=String(this),le=ne.lastIndex;oe(le,0)||(ne.lastIndex=0);var pe=ie(ne,se);return oe(ne.lastIndex,le)||(ne.lastIndex=le),null===pe?-1:pe.index}]}))},function(y,w,E){var P=E(411);y.exports=P&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(y,w,E){var P=E(65),q=E(412),ne=E(77)("species");y.exports=function(y,w){var E;return q(y)&&("function"!=typeof(E=y.constructor)||E!==Array&&!q(E.prototype)?P(E)&&null===(E=E[ne])&&(E=void 0):E=void 0),new(void 0===E?Array:E)(0===w?0:w)}},function(y,w,E){var P,q,ne=E(64),oe=E(1133),ie=ne.process,se=ie&&ie.versions,le=se&&se.v8;le?q=(P=le.split("."))[0]+P[1]:oe&&(!(P=oe.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=oe.match(/Chrome\/(\d+)/))&&(q=P[1]),y.exports=q&&+q},function(y,w,E){var P=E(35);y.exports=!P((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},function(y,w,E){var P,q=E(68),ne=E(1137),oe=E(408),ie=E(213),se=E(1138),le=E(635),pe=E(278),ge=pe("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(y){return" - - diff --git a/docusaurus/docs/reactnative/assets/basics/migrating-from-5.x-to-6.x/message_actions.png b/docusaurus/docs/reactnative/assets/basics/migrating-from-5.x-to-6.x/message_actions.png new file mode 100644 index 0000000000..483009ba68 Binary files /dev/null and b/docusaurus/docs/reactnative/assets/basics/migrating-from-5.x-to-6.x/message_actions.png differ diff --git a/docusaurus/docs/reactnative/assets/basics/migrating-from-5.x-to-6.x/message_reactions.png b/docusaurus/docs/reactnative/assets/basics/migrating-from-5.x-to-6.x/message_reactions.png new file mode 100644 index 0000000000..fe7a8d252a Binary files /dev/null and b/docusaurus/docs/reactnative/assets/basics/migrating-from-5.x-to-6.x/message_reactions.png differ diff --git a/docusaurus/docs/reactnative/assets/guides/custom-message-actions/message_actions.png b/docusaurus/docs/reactnative/assets/guides/custom-message-actions/message_actions.png index 5629323e2c..483009ba68 100644 Binary files a/docusaurus/docs/reactnative/assets/guides/custom-message-actions/message_actions.png and b/docusaurus/docs/reactnative/assets/guides/custom-message-actions/message_actions.png differ diff --git a/docusaurus/docs/reactnative/basics/installation.mdx b/docusaurus/docs/reactnative/basics/installation.mdx index 3fab594bdd..9fc6f8bd04 100644 --- a/docusaurus/docs/reactnative/basics/installation.mdx +++ b/docusaurus/docs/reactnative/basics/installation.mdx @@ -8,13 +8,13 @@ import TabItem from '@theme/TabItem'; Installation and usage of our Stream Chat React Native SDK is simple and involves the following steps: -### Prerequisites +## Prerequisites First things first, make sure you have set up the development environment for React Native. You can find the official guide [here](https://reactnative.dev/docs/environment-setup). For Expo, you can follow [this guide](https://docs.expo.dev/get-started/installation/). -### Add Stream's Chat SDK and its peer dependencies +## Add Stream's Chat SDK and its peer dependencies In order to install the Stream Chat React Native SDK, run the following command in your terminal of choice: @@ -56,7 +56,7 @@ Stream Chat React Native SDK requires installing some peer dependencies to provi ```bash title="Terminal" -yarn add @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-fs react-native-gesture-handler react-native-image-resizer react-native-reanimated react-native-svg +yarn add @react-native-community/netinfo react-native-gesture-handler react-native-reanimated react-native-svg ``` @@ -64,7 +64,7 @@ yarn add @react-native-community/netinfo @stream-io/flat-list-mvcp react-native- ```bash title="Terminal" -npx expo install @stream-io/flat-list-mvcp @react-native-community/netinfo expo-file-system expo-image-manipulator react-native-gesture-handler react-native-reanimated react-native-svg +npx expo install @react-native-community/netinfo expo-image-manipulator react-native-gesture-handler react-native-reanimated react-native-svg ``` @@ -82,20 +82,15 @@ values={[ > -- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery. -- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support. -- [`react-native-fs`](https://github.com/itinance/react-native-fs) to perform file operations like save, delete, etc. +- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for SDK to respond to network changes. - [`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK. -- [`react-native-image-resizer`](https://github.com/bamlab/react-native-image-resizer) to compress image uploads. - [`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads. - [`react-native-svg`](https://github.com/react-native-svg/react-native-svg) for SVG support. -- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery. -- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support. -- [`expo-file-system`](https://docs.expo.dev/versions/latest/sdk/filesystem/) to perform file operations like save, delete, etc. +- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for SDK to respond to network changes. - [`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK. - [`expo-image-manipulator`](https://docs.expo.dev/versions/latest/sdk/imagemanipulator/) to compress image uploads. - [`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads. @@ -104,13 +99,69 @@ values={[ -### Optional Dependencies +## Opt-in features -:::note -Starting from `v5.35.0` the `react-native-image-crop-picker` and `expo-image-picker` is no longer a required dependency. You can use it if you want to capture images to attach them in the message else feel free to uninstall it. -::: +There are a few features that can be optionally added within the SDK, which would need additional dependencies to be installed. These features are: -There are a few optional dependencies that can be added to have more features within the SDK. +### Video playing + +Play video and audio attachments within messages in the chat. + + + + +```bash title="Terminal" +yarn add react-native-video +``` + + + + +```bash title="Terminal" +npx expo install expo-av +``` + + + + + +### Voice recording + +Record and send voice messages and play them back within the chat. + + + + +```bash title="Terminal" +yarn add react-native-audio-recorder-player react-native-blob-util +``` + + + + +```bash title="Terminal" +npx expo install expo-av +``` + + + + + +#### Configuring permissions -- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery. -- [`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker) to capture images to attach them in the message. -- [`react-native-video`](https://github.com/react-native-video/react-native-video) for Video and Audio playback support. -- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) for Audio recording and async audio messages support. -- [`react-native-share`](https://github.com/react-native-share/react-native-share) for Attachment sharing support. -- [`react-native-haptic-feedback`](https://github.com/junina-de/react-native-haptic-feedback) for user haptics feedback. -- [`@react-native-clipboard/clipboard`](https://github.com/react-native-clipboard/clipboard) for Copy message support. -- [`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker) to access device media files. -- [`react-native-quick-sqlite`](https://github.com/margelo/react-native-quick-sqlite) to enable Offline support in the app. -- [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) to use native photo picker. +- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player?tab=readme-ov-file#post-installation) for microphone access for voice recording. + +An example `AndroidManifest.xml` would look like this with permissions: + +```xml + +``` + +An example `Info.plist` would look like this with permissions: + +```xml +NSMicrophoneUsageDescription +$(PRODUCT_NAME) would like to use your microphone for voice recording. +``` -- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/) for Video and Audio playback, recording and async audio messages support. -- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery. -- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to capture images to attach them in the message. -- [`expo-sharing`](https://docs.expo.dev/versions/latest/sdk/sharing/) for Attachments sharing support. -- [`expo-haptics`](https://docs.expo.dev/versions/latest/sdk/haptics/) for user haptics support. -- [`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) for Copy message support. -- [`expo-document-picker`](https://docs.expo.dev/versions/latest/sdk/document-picker/) to access device media files. -- [`react-native-quick-sqlite`](https://github.com/margelo/react-native-quick-sqlite) to enable Offline support in the app. +- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/#configuration-in-appjsonappconfigjs) for microphone access for voice recording. + +An example `app.json` config for expo would look like this to add permissions to the `Info.plist` on iOS, using the config plugins: + +```json +{ + "expo": { + "plugins": [ + [ + "expo-av", + { + "microphonePermission": "$(PRODUCT_NAME) would like to use your microphone for voice recording." + } + ] + ] + } +} +``` + +For Android on Expo, most of the most permissions are added automatically by libraries that you use in your app either with config plugins or with a package-level `AndroidManifest.xml`. Read more [here](https://docs.expo.dev/guides/permissions/#android). -:::note -Please follow along the linked documentation of each optional dependencies so as to support them correctly in your application. -::: +### Attachment sharing -### Configuring permissions +Share attachments within the message to others. + + + -Some dependencies(if you are using them on your application), require you to add additional permissions to the `Info.plist` file in iOS and `AndroidManifest.xml` file in Android. Please follow the steps mentioned in the links below for corresponding dependencies: +```bash title="Terminal" +yarn add react-native-blob-util react-native-share +``` + + + + +```bash title="Terminal" +npx expo install expo-sharing +``` + + + + + +### Haptic feedback + +Provide haptic feedback to the user. + + + + +```bash title="Terminal" +yarn add react-native-haptic-feedback +``` + + + + +```bash title="Terminal" +npx expo install expo-haptics +``` + + + + + +### Copy message + +Copy the text message content to the clipboard. + + + + +```bash title="Terminal" +yarn add @react-native-clipboard/clipboard +``` + + + + +```bash title="Terminal" +npx expo install expo-clipboard +``` + + + + + +### Share file attachments + +Share files from the device within the chat. + + + + +```bash title="Terminal" +yarn add react-native-document-picker +``` + + + + +```bash title="Terminal" +npx expo install expo-document-picker +``` + + + + + +### Capture image and upload attachment + +Capture images from the camera and upload them as attachments in the chat. + + + + +```bash title="Terminal" +yarn add react-native-image-picker +``` + + + + + +```bash title="Terminal" +npx expo install expo-image-picker +``` + + + + + +#### Configuring permissions + + + + +- [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker?tab=readme-ov-file#post-install-steps) for camera access. + +On Android, an example `AndroidManifest.xml` would look like this with permissions: + +```xml + +``` + +On iOS, An example `Info.plist` would look like this with permissions: + +```xml +NSCameraUsageDescription +$(PRODUCT_NAME) would like to use your camera to share image in a message. +``` + + + + +- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/#configuration-in-appjsonappconfigjs) for camera access. + +An example `app.json` config for expo would look like this to add permissions to the `Info.plist` on iOS, using the config plugins: + +```json +{ + "expo": { + "plugins": [ + [ + "expo-image-picker", + { + "cameraPermission": "$(PRODUCT_NAME) would like to use your camera to share image in a message." + } + ] + ] + } +} +``` + + + + +### Pick image using Native Image Picker + +Pick gallery image using native image picker and upload them as attachments in the chat. + + + + +```bash title="Terminal" +yarn add react-native-image-picker +``` + + + + + +```bash title="Terminal" +npx expo install expo-image-picker +``` + + + + + +#### Configuring permissions + + + + +- [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker?tab=readme-ov-file#post-install-steps) for camera access. + +On android, there are no permissions required. + +On iOS, An example `Info.plist` would look like this with permissions: + +```xml +NSPhotoLibraryUsageDescription +$(PRODUCT_NAME) would like access to your photo gallery to share image in a message. +NSPhotoLibraryAddUsageDescription +$(PRODUCT_NAME) would like to save photos to your photo gallery after downloading from a message. +``` + + + + +- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/#configuration-in-appjsonappconfigjs) for camera access. + +An example `app.json` config for expo would look like this to add permissions to the `Info.plist` on iOS, using the config plugins: + +```json +{ + "expo": { + "plugins": [ + [ + "expo-image-picker", + { + "photosPermission": "$(PRODUCT_NAME) would like to use your device gallery to attach image in a message." + } + ] + ] + } +} +``` + + + + +### Built-in image media library + +Pick image using built-in media library and upload them as attachments in the chat. + + + + +```bash title="Terminal" +yarn add @react-native-camera-roll/camera-roll +``` + + + + + +```bash title="Terminal" +npx expo install expo-media-library +``` + + + + + +#### Configuring permissions - [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll?tab=readme-ov-file#permissions) for gallery/photo library access. -- [`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker?tab=readme-ov-file#step-3) for camera access. -- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player?tab=readme-ov-file#post-installation) for microphone access for voice recording. An example `AndroidManifest.xml` would look like this with permissions: ```xml - - @@ -189,18 +554,12 @@ An example `Info.plist` would look like this with permissions: $(PRODUCT_NAME) would like access to your photo gallery to share image in a message. NSPhotoLibraryAddUsageDescription $(PRODUCT_NAME) would like to save photos to your photo gallery after downloading from a message. -NSCameraUsageDescription -$(PRODUCT_NAME) would like to use your camera to share image in a message. -NSMicrophoneUsageDescription -$(PRODUCT_NAME) would like to use your microphone for voice recording. ``` - [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/#configurable-properties) for gallery/photo library access. -- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/#configuration-in-appjsonappconfigjs) for camera access. -- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/#configuration-in-appjsonappconfigjs) for microphone access for voice recording. An example `app.json` config for expo would look like this to add permissions to the `Info.plist` on iOS, using the config plugins: @@ -214,18 +573,6 @@ An example `app.json` config for expo would look like this to add permissions to "photosPermission": "$(PRODUCT_NAME) would like access to your photo gallery to share image in a message.", "savePhotosPermission": "$(PRODUCT_NAME) would like to save photos to your photo gallery after downloading from a message." } - ], - [ - "expo-image-picker", - { - "cameraPermission": "$(PRODUCT_NAME) would like to use your camera to share image in a message." - } - ], - [ - "expo-av", - { - "microphonePermission": "$(PRODUCT_NAME) would like to use your microphone for voice recording." - } ] ] } @@ -237,7 +584,79 @@ For Android on Expo, most of the most permissions are added automatically by lib -### Additional Steps +### Offline support + +Enable offline support in the app. + + + + +```bash title="Terminal" +yarn add @op-engineering/op-sqlite +``` + + + + +```bash title="Terminal" +npx expo install @op-engineering/op-sqlite +``` + + + + + +The overall installation of the optional dependencies would look like this: + + + + +- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery. +- [`react-native-video`](https://github.com/react-native-video/react-native-video) for Video and Audio playback support. +- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) for Audio recording and async audio messages support. +- [`react-native-blob-util`](https://github.com/RonRadtke/react-native-blob-util) to perform file operations like save, delete, while sharing or access the cache directory while audio recording. +- [`react-native-share`](https://github.com/react-native-share/react-native-share) for Attachment sharing support. +- [`react-native-haptic-feedback`](https://github.com/junina-de/react-native-haptic-feedback) for user haptics feedback. +- [`@react-native-clipboard/clipboard`](https://github.com/react-native-clipboard/clipboard) for Copy message support. +- [`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker) to access device media files. +- [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) to capture images to attach them in the message. +- [`@op-engineering/op-sqlite`](https://github.com/OP-Engineering/op-sqlite) to enable Offline support in the app. + + + + +- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/) for Video and Audio playback, recording and async audio messages support. +- [`expo-file-system`](https://docs.expo.dev/versions/latest/sdk/filesystem/) to perform file operations like save, delete, while sharing or access the cache directory while audio recording. +- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery. +- [`expo-sharing`](https://docs.expo.dev/versions/latest/sdk/sharing/) for Attachments sharing support. +- [`expo-haptics`](https://docs.expo.dev/versions/latest/sdk/haptics/) for user haptics support. +- [`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) for Copy message support. +- [`expo-document-picker`](https://docs.expo.dev/versions/latest/sdk/document-picker/) to access device media files. +- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to capture images to attach them in the message or use native image picker. +- [`@op-engineering/op-sqlite`](https://github.com/OP-Engineering/op-sqlite) to enable Offline support in the app. + + + + +:::note +Please follow along the linked documentation of each optional dependencies so as to support them correctly in your application. +::: + +## Additional Steps Some dependencies require us to make changes to our application for all functionalities to be available. @@ -279,8 +698,6 @@ The entry point of your app exists usually either in `index.js` or `App.tsx` fil Please also follow the steps mentioned in the links below for corresponding dependencies: - `react-native` - [additional installation steps](https://reactnative.dev/docs/image#gif-and-webp-support-on-android) -- `react-native-image-crop-picker` - [additional installation steps](https://github.com/ivpusic/react-native-image-crop-picker#step-3) -- `@react-native-camera-roll/camera-roll` - [additional installation steps](https://github.com/react-native-cameraroll/react-native-cameraroll#permissions) Now you should be able to run the app on simulator by running following command: @@ -332,7 +749,7 @@ values={[ ```bash title="Terminal" -yarn ios +yarn run ios ``` @@ -340,7 +757,7 @@ yarn ios ```bash title="Terminal" -yarn android +yarn run android ``` diff --git a/docusaurus/docs/reactnative/basics/migrating-from-5.x-to-6.x.mdx b/docusaurus/docs/reactnative/basics/migrating-from-5.x-to-6.x.mdx new file mode 100644 index 0000000000..dc847585ba --- /dev/null +++ b/docusaurus/docs/reactnative/basics/migrating-from-5.x-to-6.x.mdx @@ -0,0 +1,226 @@ +--- +id: upgrading-from-v5 +title: Migration from 5.x to 6.x +--- + +## Dependency changes + +The following are the crucial changes of the Stream Chat React Native SDK from version 5.x to 6.x: + +### Change `react-native-fs` to `react-native-blob-util` + +The `react-native-fs` package has been replaced to `react-native-blob-util` in favour of the former not being actively maintained. You can replace it by running the following commands: + +```bash +yarn remove react-native-fs +yarn add react-native-blob-util +``` + +### Remove `react-native-image-resizer` dependency + +The `react-native-image-resizer` package has been moved to the SDK so you can uninstall it from your app. + +You can remove it by running the following commands: + +```bash +yarn remove react-native-image-resizer +``` + +### Change `react-native-image-crop-picker` to `react-native-image-picker` + +The `react-native-image-crop-picker` package has been replaced with `react-native-image-picker`. This is a better alternative, and can help us with our new architecture endeavors. + +You can replace it by running the following commands: + +```bash +yarn remove react-native-image-crop-picker +yarn add react-native-image-picker +``` + +Also, the dependency is made optional now, so if you don't want to use the image picker, you can remove it from your project and the camera selector icon on the Attachment picker will be simply hidden for you. + +### Change `react-native-quick-sqlite` to `op-sqlite` + +The `react-native-quick-sqlite` package has been replaced with `op-sqlite`. This is a faster alternative, and can help us with our new architecture endeavors. + +:::note +For React Native version 0.74 and above, you need to install version `>=9.3.0` of the `op-sqlite`. +::: + +You can replace it by running the following commands: + +```bash +yarn remove react-native-quick-sqlite +yarn add op-sqlite +``` + +### Made `@stream-io/flat-list-mvcp` optional + +The dependency on `@stream-io/flat-list-mvcp` package has been made optional in favour of React Native's [`FlatList`](https://reactnative.dev/docs/flatlist) component supporting [`maintainVisibleContentPosition`](https://reactnative.dev/docs/scrollview#maintainvisiblecontentposition) from React Native version `>=0.72`. If the package is installed it takes up the package or the default React Native [`FlatList`](https://reactnative.dev/docs/flatlist). + +:::info +If you are on or above version **0.72** of React Native, please remove it. + +```bash +yarn remove @stream-io/flat-list-mvcp +``` + +::: + +## SDK changes + +### Introduce new Message Menu design + +The Message Menu design has been revamped to provide a better user experience. The new design is more intuitive and provides a better user experience. + +![Message Menu](../assets/basics/migrating-from-5.x-to-6.x/message_actions.png) + +:::note +The previous overlay design has been replaced with a bottom sheet modal design. +::: + +### Introduce new ReactionList design + +We have introduced a new ReactionList design that is more intuitive and provides a better user experience. + +![Message Menu](../assets/basics/migrating-from-5.x-to-6.x/message_reactions.png) + +You can switch to `bottom` reaction list design by setting the [`reactionListPosition`](../core-components/channel.mdx#reactionlistposition) prop to `bottom` in the `Channel` component. The Reaction list component can be completely customized by providing a custom component to the [`ReactionListTop`](../core-components/channel.mdx#reactionlisttop) prop in the `Channel` component for top reactions list and [`ReactionListBottom`](../core-components/channel.mdx#reactionlistbottom) prop for bottom reactions list. The default mode is `top` as it was in the previous version. + +#### Remove `StreamChatRN` and introduce `ChatConfigContext` + +The `StreamChatRN` global config is removed in favour of the `ChatConfigContext`. The `ChatConfigContext` is a more versatile and feature-rich context that can be used to provide any global configuration to the chat application. + +The `resizableCDNHosts` can be configured by wrapping the root of your Chat application with `ChatConfigProvider` as follows: + +```tsx +import { Chat, ChatConfigProvider, OverlayProvider } from 'stream-chat-react-native'; + +const App = () => { + return ( + + + + + + + + ); +}; +``` + +:::note +If nothing is provided, the `resizableCDNHosts` will default to `['.stream-io-cdn.com']`. +::: + +### Removed `MessageOverlayContext` and `MessageOverlayProvider` + +The `MessageOverlayContext` and `MessageOverlayProvider` have been removed. + +### Removed props from `OverlayProvider` + +The following props have been removed from the `OverlayProvider`: + +- `MessageActionList` +- `MessageActionListItem` +- `OverlayReactions` +- `OverlayReactionsAvatar` +- `OverlayReactionsItem` +- `messageTextNumberOfLines` +- `error`, `isMyMessage`, `isThreadMessage`, `message` and `messageReactions` + +### New `Channel` props + +The props from the `OverlayProvider` have been moved to the `Channel` component. The following props have been added to the `Channel` component: + +- `MessageActionList` +- `MessageActionListItem` +- `OverlayReactions` is changed to `MessageUserReactions` +- `OverlayReactionsAvatar` is changed to `MessageUserReactionsAvatar` +- `OverlayReactionsItem` is changed to `MessageUserReactionsItem` +- `messageTextNumberOfLines` + +### Removed `MessageOverlay` in favour of `MessageMenu`. + +The `MessageOverlay` component has been removed in favour of `MessageMenu`. The `MessageMenu` component is a more versatile and feature-rich component that can be used to show more than just reactions and actions. + +The `MessageOverlay` component is removed from top level `OverlayProvider` and is replaced with `MessageMenu` in the level of the `Message` component. + +#### Remove props from `Message` component. + +The following props have been removed from the `Message` component: + +- `setData` +- `setOverlay` +- `onLongPress` +- `onPress` +- `onPressIn` + +The later 3 props are removed in favour of similar props on MessagesContext and is therefore not needed. The `setData` prop is removed in favour of the removal of `MessageOverlayContext` and the `setOverlay` is not needed as we don't set the message overlay in `OverlayProvider`. + +### Removed props from `MessageContent` component + +The following props have been removed from the `MessageContent` component: + +- `hasReactions`, `lastGroupMessage`, `members`, `onlyEmojis`, `showMessageStatus` imported from the Message Context. +- `addtionalTouchableProps` is changed to `additionalPressableProps`. +- `MessageFooter`, `MessageHeader`, `MessageDeleted`, `MessagePinnedHeader`, `MessageReplies`, `MessageStatus`, `onPressInMessage` imported from the Messages Context. + +The props were redundant as per the new fixes in the Reaction Design and message simple component's improvements. + +### Add props to `MessageSimple` component + +The components from the `MessageContent` components are rendered now in `MessageSimple` component so few of the props that were removed from `MessageContent` are added to `MessageSimple` component(as mentioned above). + +- `isMyMessage`, `lastGroupMessage`, `members`, `onlyEmojis`, `otherAttachments`, `showMessageStatus` imported from the Message Context. +- `MessageDeleted`, `MessageFooter`, `MessageHeader`, `MessagePinnedHeader`, `MessageReplies`, `MessageStatus`, `ReactionListBottom`, `reactionListPosition` and `ReactionListTop` imported from the Messages Context. + +### Added `BottomSheetModal` component + +The version introduces a very basic `BottomSheetModal` component that can be used to show a modal at the bottom of the screen. This can be used to show the message actions and reactions. + +### Remove `NetInfo` from the native handlers + +The `NetInfo` package has been removed from the native handlers. This also involves not passing the `NetInfo` utility as a handler to [`registerNativeHandlers`](../customization/native-handlers.mdx#overriding-handlers) anymore. + +```tsx +import { registerNativeHandlers } from 'stream-chat-react-native'; + +registerNativeHandlers({ + // removed-line + NetInfo: NetInfo, +}); +``` + +### Change the type of `quotedMessage` in `MessageInputContext` + +The type of `quotedMessage` is changed from `MessageType | boolean` to `MessageType | undefined` for better in the `MessageInputContext`. + +### Refactor of theme object + +The color of the sender and receiver messages are now changed to `light_blue` and `light_gray` keys respectively. + +:::note +Please configure the `light_blue` and `light_gray` keys in the theme object to customize the sender and receiver messages for dark and light mode. +::: + +The default theme object has been refactored to provide a better customization experience. The theme object is now more organized and provides better control over the customization. You can check the object [here](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/themeContext/utils/theme.ts). + +### Remove the deprecated code + +- We have removed `loadChannelAtMessage` from channel context because it was no more used. +- We have removed the `handleDeleteMessage`, `handleEditMessage`, `handleQuotedReplyMessage`, `handleResendMessage`, `handleToggleBanUser` and `handleToggleMuteUser` from the message context because it was no more used. To customize the message actions follow the [customization documentation](../guides/custom-message-actions.mdx). +- Remove the `onMessageNew` prop from the [`ChannelList`](../core-components/channel-list.mdx) component. Use the [`onNewMessage`](../core-components/channel-list.mdx#onnewmessage) prop instead. +- Remove the `handleBlock` prop from the `Channel` component. Use [`handleBan`](../core-components/channel.mdx#handleban) instead. + +## Other changes + +- The `useMessageActions` hook doesn't take `setOverlay` anymore but takes in `dismissOverlay`. +- The MessageContext has a new prop - `dismissOverlay`. The definition of `showMessageOverlay` is changed to `(showMessageReactions?: boolean) => void`. +- The `isMessageActionsVisible` is changed to `showMessageReactions` in `messageAction.ts`. +- Removed the `useMessageActionAnimation` hook. +- Removed `alignment` prop from `MessagePinnedHeader` component. diff --git a/docusaurus/docs/reactnative/basics/navigation.mdx b/docusaurus/docs/reactnative/basics/navigation.mdx index 2afba8ce58..a0f1ed0c2a 100644 --- a/docusaurus/docs/reactnative/basics/navigation.mdx +++ b/docusaurus/docs/reactnative/basics/navigation.mdx @@ -8,7 +8,7 @@ import TabItem from '@theme/TabItem'; Stream Chat for React Native provides many features out of the box that require positioning the components on the screen in a certain manner to get the desired UI. -The `AttachmentPicker`, `ImageGallery`, and `MessageOverlay`, all need to be rendered in front of other components to have the desired effect. All of these elements are controlled by the `OverlayProvider`. When used together with navigation, certain steps are needed to be taken to make these components appear fluently. +The `AttachmentPicker` and  `ImageGallery`, all need to be rendered in front of other components to have the desired effect. All of these elements are controlled by the `OverlayProvider`. When used together with navigation, certain steps are needed to be taken to make these components appear fluently. The guidance provided makes the assumption you are using [React Navigation](https://reactnavigation.org/) in your app in conjunction with [`createStackNavigator`](https://reactnavigation.org/docs/stack-navigator/). diff --git a/docusaurus/docs/reactnative/basics/offline-support.mdx b/docusaurus/docs/reactnative/basics/offline-support.mdx index c41417f057..ff95d232e0 100644 --- a/docusaurus/docs/reactnative/basics/offline-support.mdx +++ b/docusaurus/docs/reactnative/basics/offline-support.mdx @@ -26,12 +26,12 @@ The following features are currently **NOT** implemented. They will be impleme First and foremost, make sure to follow all steps from [Migrating to v5](../basics/migrating-from-4.x-to-5.x.mdx) guide. To enable offline support, please follow the given steps: -#### Add `react-native-quick-sqlite` dependency. +#### Add `@op-engineering/op-sqlite` dependency. -> Contemplate our dependency version compatibility table to make sure your `react-native-quick-sqlite` version are compatible with your `stream-chat-react-native` version. +> Contemplate our dependency version compatibility table to make sure your `@op-engineering/op-sqlite` version are compatible with your `stream-chat-react-native` version. ```bash - yarn add react-native-quick-sqlite + yarn add @op-engineering/op-sqlite npx pod-install ``` diff --git a/docusaurus/docs/reactnative/basics/overview.mdx b/docusaurus/docs/reactnative/basics/overview.mdx index 8153c57128..9b38519590 100644 --- a/docusaurus/docs/reactnative/basics/overview.mdx +++ b/docusaurus/docs/reactnative/basics/overview.mdx @@ -23,7 +23,9 @@ We have component libraries available for both RN CLI and Expo. Each approach in - Offline storage - and a lot more. -Before getting started with our docs, we recommend going through our tutorials for our [**React Native SDK**](https://getstream.io/chat/react-native-chat/tutorial/). +## Where to get started? + +If you are new to our SDK, it is best to go through our [**React Native SDK**](https://getstream.io/chat/react-native-chat/tutorial/) tutorial. ## Architecture @@ -37,8 +39,8 @@ Do not install the `stream-chat` dependency externally. This may lead to problem The Stream Chat React Native SDK is segregated into two separate packages: -- `stream-chat-react-native` for RN CLI applications. -- `stream-chat-expo` for Expo CLI applications. +- `stream-chat-react-native` for **React Native CLI** applications. +- `stream-chat-expo` for **Expo CLI** applications. We recommend using the corresponding package for the respective CLI that the application uses. @@ -46,96 +48,6 @@ Our SDK components are highly customizable for both the interfaces. Unless your The UI SDKs provide both ready-made components that you can directly integrate (and customize) in your apps, or you can build your own, by reacting to the state we expose and re-using our components as building blocks, if needed. -### Dependencies - -The SDK tries to keep the list of external dependencies to a minimum, these are the dependencies currently used: - - - - -- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery. -- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support. -- [`react-native-fs`](https://github.com/itinance/react-native-fs) to perform file operations like save, delete, etc. -- [`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK. -- [`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker) to capture images to attach them in the message. -- [`react-native-image-resizer`](https://github.com/bamlab/react-native-image-resizer) to compress image uploads. -- [`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads. -- [`react-native-svg`](https://github.com/react-native-svg/react-native-svg) for SVG support. -- [`stream-chat`](https://github.com/GetStream/stream-chat-js) for Chat Client. - - - - -- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery. -- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support. -- [`expo-file-system`](https://docs.expo.dev/versions/latest/sdk/filesystem/) to perform file operations like save, delete, etc. -- [`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK. -- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to capture images to attach them in the message. -- [`expo-image-manipulator`](https://docs.expo.dev/versions/latest/sdk/imagemanipulator/) to compress image uploads. -- [`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads. -- [`react-native-svg`](https://docs.expo.dev/versions/latest/sdk/svg/) for SVG support. -- [`stream-chat`](https://github.com/GetStream/stream-chat-js) for Chat Client. - - - - -### Optional Dependencies - -There are a few optional dependencies that can be added by our users to have more features within the SDK. - - - - -- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery. -- [`react-native-video`](https://github.com/react-native-video/react-native-video) for Video and Audio playback support. -- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) for Audio recording and async audio messages support. -- [`react-native-share`](https://github.com/react-native-share/react-native-share) for Attachment sharing support. -- [`react-native-haptic-feedback`](https://github.com/junina-de/react-native-haptic-feedback) for user haptics feedback. -- [`@react-native-clipboard/clipboard`](https://github.com/react-native-clipboard/clipboard) for Copy message support. -- [`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker) to access device media files. -- [`react-native-quick-sqlite`](https://github.com/margelo/react-native-quick-sqlite) to enable Offline support in the app. -- [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) to use native photo picker. - - - - -- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/) for Video and Audio playback, recording and async audio messages support. -- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery. -- [`expo-sharing`](https://docs.expo.dev/versions/latest/sdk/sharing/) for Attachments sharing support. -- [`expo-haptics`](https://docs.expo.dev/versions/latest/sdk/haptics/) for user haptics support. -- [`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) for Copy message support. -- [`expo-document-picker`](https://docs.expo.dev/versions/latest/sdk/document-picker/) to access device media files. -- [`react-native-quick-sqlite`](https://github.com/margelo/react-native-quick-sqlite) to enable Offline support in the app. - - - - -:::note -Please follow along the linked documentation of each optional dependencies so as to support them correctly in your application. -::: - -## Choosing the Right SDK - -When integrating with our chat platform, you get to choose which SDK you would like to integrate with. - -Our best options are either the RN CLI or Expo SDKs. We suggest you choose what is closest to your current App. - -All the components exported by both the platforms are same across both the SDKs. - ## Upgrading and Versioning Strategy The Stream Chat React Native SDK adheres to the [semantic versioning](https://semver.org/) rules. diff --git a/docusaurus/docs/reactnative/basics/troubleshooting.mdx b/docusaurus/docs/reactnative/basics/troubleshooting.mdx index 8250a3c6cb..48bcf13424 100644 --- a/docusaurus/docs/reactnative/basics/troubleshooting.mdx +++ b/docusaurus/docs/reactnative/basics/troubleshooting.mdx @@ -79,7 +79,7 @@ To do this make sure your `Channel` components are always aware of the thread st ## Image gallery not full screen -If the image viewer or message overlay is not covering the full screen, for instance it is rendering below or behind a Header, it is likely the `OverlayProvider` is not setup in the correct location within the application. +If the image viewer or message menu is not covering the full screen, for instance it is rendering below or behind a Header, it is likely the `OverlayProvider` is not setup in the correct location within the application. Please refer to the [Stream Chat with Navigation](./navigation.mdx) documentation to properly place the `OverlayProvider` in relation to your navigation solution or other components. ## Image picker incorrect height @@ -295,7 +295,7 @@ This includes ensuring you import `react-native-gesture-handler` at the top of y import 'react-native-gesture-handler'; ``` -Also do not forget to wrap your component tree(probably above `OverlayProvider`) with `` or `gestureHandlerRootHOC` as mentioned in [RNGH Installation docs](https://docs.swmansion.com/react-native-gesture-handler/docs/installation#js). Not doing so, can cause unusual behaviour with the `MessageOverlay` and `Imagegallery` gestures. +Also do not forget to wrap your component tree(probably above `OverlayProvider`) with `` or `gestureHandlerRootHOC` as mentioned in [RNGH Installation docs](https://docs.swmansion.com/react-native-gesture-handler/docs/installation#js). Not doing so, can cause unusual behaviour with the `Imagegallery` gestures. ```tsx diff --git a/docusaurus/docs/reactnative/common-content/contexts/message-context/channel.mdx b/docusaurus/docs/reactnative/common-content/contexts/message-context/channel.mdx new file mode 100644 index 0000000000..5addd4bbab --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/contexts/message-context/channel.mdx @@ -0,0 +1,5 @@ +Channel instance from the StreamChat client. + +| Type | +| ------------------------------------------------------------------------------------------- | +| [Channel](https://getstream.io/chat/docs/javascript/creating_channels/?language=javascript) | diff --git a/docusaurus/docs/reactnative/common-content/contexts/message-context/go_to_message.mdx b/docusaurus/docs/reactnative/common-content/contexts/message-context/go_to_message.mdx new file mode 100644 index 0000000000..6ab1f2971f --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/contexts/message-context/go_to_message.mdx @@ -0,0 +1,5 @@ +A function that scrolls to a specific message in the chat. This function is useful when you want to scroll to a specific message in the chat. + +| Type | Default | +| ------------------------------------------- | ----------- | +| `(messageId: string) => void`\| `undefined` | `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/contexts/message-context/handle_reaction.mdx b/docusaurus/docs/reactnative/common-content/contexts/message-context/handle_reaction.mdx new file mode 100644 index 0000000000..7ed6ae5cac --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/contexts/message-context/handle_reaction.mdx @@ -0,0 +1,5 @@ +Function to handle a reaction on a message. This function is called when a user reacts to a message. The function is passed the message ID, the reaction type, and the user ID of the user who reacted to the message. The function should update the message with the reaction and update the message in the message context. + +| Type | Default | +| -------------------------------------------------------- | ----------- | +| `(reactionType: string) => Promise` \| `undefined` | `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/contexts/message-context/is_edited_message_open.mdx b/docusaurus/docs/reactnative/common-content/contexts/message-context/is_edited_message_open.mdx new file mode 100644 index 0000000000..54cbb0bb9c --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/contexts/message-context/is_edited_message_open.mdx @@ -0,0 +1,5 @@ +Boolean to check the message edited label is expanded or not. + +| Type | Default | +| ------- | ------- | +| Boolean | `false` | diff --git a/docusaurus/docs/reactnative/common-content/contexts/message-context/show_message_overlay.mdx b/docusaurus/docs/reactnative/common-content/contexts/message-context/show_message_overlay.mdx index cd85f03110..98bde0d530 100644 --- a/docusaurus/docs/reactnative/common-content/contexts/message-context/show_message_overlay.mdx +++ b/docusaurus/docs/reactnative/common-content/contexts/message-context/show_message_overlay.mdx @@ -1,5 +1,5 @@ Function to open the message action overlay. This function gets called when user long presses a message. -| Type | -| -------- | -| function | +| Type | +| ------------------------------------------ | +| `(showMessageReactions?: boolean) => void` | diff --git a/docusaurus/docs/reactnative/common-content/contexts/message-input-context/editing.mdx b/docusaurus/docs/reactnative/common-content/contexts/message-input-context/editing.mdx index 20d8625a5e..f059aa7f12 100644 --- a/docusaurus/docs/reactnative/common-content/contexts/message-input-context/editing.mdx +++ b/docusaurus/docs/reactnative/common-content/contexts/message-input-context/editing.mdx @@ -1,5 +1,5 @@ Defined with message type if the user is editing some message within `MessageInput` component else its undefined. -| Type | -| ------- | -| Boolean | +| Type | +| ----------------------- | +| `Message`\| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/contexts/message-input-context/quoted_message.mdx b/docusaurus/docs/reactnative/common-content/contexts/message-input-context/quoted_message.mdx index c3a10fcfdc..4e214bc0e5 100644 --- a/docusaurus/docs/reactnative/common-content/contexts/message-input-context/quoted_message.mdx +++ b/docusaurus/docs/reactnative/common-content/contexts/message-input-context/quoted_message.mdx @@ -1,5 +1,5 @@ Message that is quoted to the original message -| Type | -| --------------------------- | -| `Boolean` \| `Message` type | +| Type | +| ----------------------- | +| `Message`\| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/additional_pressable_props.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/additional_pressable_props.mdx new file mode 100644 index 0000000000..7594c59a52 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/additional_pressable_props.mdx @@ -0,0 +1,5 @@ +Additional props provided to the underlying [Pressable](https://reactnative.dev/docs/pressable#props) used by components within a message such as [`MessageContent`](../../../../ui-components/message-content.mdx). + +| Type | +| ------ | +| object | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/handle_reaction.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/handle_reaction.mdx index 02f30f3c5e..6e1545a25d 100644 --- a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/handle_reaction.mdx +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/handle_reaction.mdx @@ -1,4 +1,4 @@ -Function called when a reaction is selected in the message overlay, this is called on both the add and remove action. +Function called when a reaction is selected in the message menu, this is called on both the add and remove action. This function does not override the default behavior of the reaction being selected. Please refer to [the guide on customizing message actions](../../../../guides/custom-message-actions.mdx) for details. diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-action-list-item.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-action-list-item.mdx new file mode 100644 index 0000000000..cd253accc7 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-action-list-item.mdx @@ -0,0 +1,5 @@ +Component for rendering message action list items within a message action list. + +| Type | Default | +| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`MessageActionListItem`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageActionListItem.tsx) \| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-action-list.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-action-list.mdx new file mode 100644 index 0000000000..b8c7102854 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-action-list.mdx @@ -0,0 +1,5 @@ +Component for rendering a message action list within the message menu. + +| Type | Default | +| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`MessageActionList`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageActionList.tsx) \| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-menu.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-menu.mdx new file mode 100644 index 0000000000..aa10a0e01b --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-menu.mdx @@ -0,0 +1,5 @@ +Component to customize the message contextual menu which allows users to perform actions on a message and react to messages. + +| Type | Default | +| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`MessageMenu`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageMenu.tsx) \| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-reaction-picker.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-reaction-picker.mdx new file mode 100644 index 0000000000..7dad596910 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-reaction-picker.mdx @@ -0,0 +1,5 @@ +Reaction selector component displayed within the message menu when user long presses a message. + +| Type | Default | +| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`MessageReactionPicker`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/MessageMenu/MessageReactionPicker.tsx) \| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/overlay-provider/props/message_text_number_of_lines.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-text-number-of-lines.mdx similarity index 100% rename from docusaurus/docs/reactnative/common-content/ui-components/overlay-provider/props/message_text_number_of_lines.mdx rename to docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-text-number-of-lines.mdx diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions-avatar.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions-avatar.mdx new file mode 100644 index 0000000000..46d80419ef --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions-avatar.mdx @@ -0,0 +1,5 @@ +Component for rendering an avatar in the message user reactions in the message menu. + +| Type | Default | +| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`MessageUserReactionsAvatar`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/MessageMenu/MessageUserReactionsAvatar.tsx) \| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions-item.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions-item.mdx new file mode 100644 index 0000000000..f6a06ebedb --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions-item.mdx @@ -0,0 +1,5 @@ +Component prop to customize the individual user reaction item in the `MessageUserReactions` component of `MessageMenu`. This includes the avatar, reaction type, and the name of the person who has reacted, etc. + +| Type | Default | +| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`MessageUserReactionsItem`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/MessageMenu/MessageUserReactionsItem.tsx) \| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions.mdx new file mode 100644 index 0000000000..fdb7f75788 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message-user-reactions.mdx @@ -0,0 +1,5 @@ +List of reactions component within the message menu. + +| Type | Default | +| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`MessageUserReactions`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/MessageMenu/MessageUserReactions.tsx) \| `undefined` | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message.mdx new file mode 100644 index 0000000000..f46b0dd7c5 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message.mdx @@ -0,0 +1,5 @@ +Component to render a specific message bubble, within [`MessageList`](../../../../ui-components/message-list.mdx). + +| Type | Default | +| ------------- | -------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`Message`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/Message/Message.tsx) | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message_actions.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message_actions.mdx index e9587fd93c..01d1de390d 100644 --- a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message_actions.mdx +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/message_actions.mdx @@ -1,4 +1,4 @@ -An array of, or function that returns and array of, actions that can be performed on a message shown in the message overlay. +An array of, or function that returns and array of, actions that can be performed on a message shown in the message menu. Please refer to [the guide on customizing message actions](../../../../guides//custom-message-actions.mdx) for details. | Type | Default | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/on_long_press_message.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/on_long_press_message.mdx index 8f20fe2362..e29b546cc3 100644 --- a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/on_long_press_message.mdx +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/on_long_press_message.mdx @@ -1,5 +1,4 @@ -Function called when a user long presses a message. -The default opens the message actions overlay. +Function called when a user long presses a message. The default opens the message menu. | Type | | -------- | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/override_own_capabilities.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/override_own_capabilities.mdx index 65269905c0..9e1593f700 100644 --- a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/override_own_capabilities.mdx +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/override_own_capabilities.mdx @@ -15,20 +15,20 @@ For example: Available keys for the object: -- `banChannelMembers` When false, "Block User" message action won't be available within overlay. -- `deleteAnyMessage` When false, "Delete Message" action won't be available for received message within overlay. -- `deleteOwnMessage` When false, "Delete Message" action won't be available for own message within overlay. -- `flagMessage` When false, "Flag Message" message action won't be available within overlay. -- `pinMessage` When false, "Pin Message" action won't be available within overlay. -- `quoteMessage` When false, "Reply" message action won't be available within overlay. +- `banChannelMembers` When false, "Block User" message action won't be available within message menu. +- `deleteAnyMessage` When false, "Delete Message" action won't be available for received message within message menu. +- `deleteOwnMessage` When false, "Delete Message" action won't be available for own message within message menu. +- `flagMessage` When false, "Flag Message" message action won't be available within message menu. +- `pinMessage` When false, "Pin Message" action won't be available within message menu. +- `quoteMessage` When false, "Reply" message action won't be available within message menu. - `readEvents` When false, read receipts for message won't be rendered. - `sendLinks` When false, user will not be allowed to send URLs in message. - `sendMessage` When false, message input component will render `SendMessageDisallowedIndicator` instead of input box. -- `sendReaction` When false, reaction selector (`OverlayReactionList`) component won't be available within overlay. -- `sendReply` When false, "Thread Reply" message action won't be available within overlay. +- `sendReaction` When false, reaction selector (`OverlayReactionList`) component won't be available within message menu. +- `sendReply` When false, "Thread Reply" message action won't be available within message menu. - `sendTypingEvents` When false, typing events won't be sent from current user. -- `updateAnyMessage` When false, "Edit Message" action won't be available for received messages within overlay. -- `updateOwnMessage` When false, "Edit Message" action won't be available for own messages within overlay. +- `updateAnyMessage` When false, "Edit Message" action won't be available for received messages within message menu. +- `updateOwnMessage` When false, "Edit Message" action won't be available for own messages within message menu. - `uploadFile` When false, upload file button (`AttachButton`) won't be available within `MessageInput` component. | Type | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-bottom.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-bottom.mdx new file mode 100644 index 0000000000..055da4d7e4 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-bottom.mdx @@ -0,0 +1,5 @@ +Component to render list of reactions at the bottom of the message bubble. + +| Type | Default | +| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`ReactionListBottom`](https://github.com/GetStream/stream-chat-react-native/tree/develop/package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx) | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-position.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-position.mdx new file mode 100644 index 0000000000..78891c4725 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-position.mdx @@ -0,0 +1,5 @@ +The position of the reaction list in the message component. By default, the reaction list is positioned on top the message content. + +| Type | Default value | +| ----------------- | ------------- | +| `top` \| `bottom` | 'top' | diff --git a/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-top.mdx b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-top.mdx new file mode 100644 index 0000000000..63a7b95173 --- /dev/null +++ b/docusaurus/docs/reactnative/common-content/ui-components/channel/props/reaction-list-top.mdx @@ -0,0 +1,5 @@ +Component to render list of reactions at top of the message bubble. + +| Type | Default | +| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ComponentType | [`ReactionListTop`](https://github.com/GetStream/stream-chat-react-native/tree/develop/package/src/components/Message/MessageSimple/ReactionList/ReactionListTop.tsx) | diff --git a/docusaurus/docs/reactnative/contexts/channel-context.mdx b/docusaurus/docs/reactnative/contexts/channel-context.mdx index bdce6b97db..4d943b6fca 100644 --- a/docusaurus/docs/reactnative/contexts/channel-context.mdx +++ b/docusaurus/docs/reactnative/contexts/channel-context.mdx @@ -141,28 +141,6 @@ loadChannelAroundMessage({ | -------- | | function | -### loadChannelAtMessage - -Function to reload channel at particular message in history. - -:::caution - -This function is deprecated. Use [loadChannelAroundMessage](#loadchannelaroundmessage) instead. - -::: - -```tsx -loadChannelAtMessage({ - before: 10, // Number of messages to load before messageId - after: 10, // Number of messages to load after messageId - messageId, -}); -``` - -| Type | -| -------- | -| function | - ### loading True if channel is loading messages during first load. diff --git a/docusaurus/docs/reactnative/contexts/chat-context.mdx b/docusaurus/docs/reactnative/contexts/chat-context.mdx index 7e3ffbfd70..ea253c3346 100644 --- a/docusaurus/docs/reactnative/contexts/chat-context.mdx +++ b/docusaurus/docs/reactnative/contexts/chat-context.mdx @@ -61,13 +61,5 @@ Array of users muted by current user. | ----- | | array | -### `resizableCDNHosts` - -This option allows you to specify a list of CDNs that offer image resizing. - -| Type | Default | -| ---------- | ------------------------ | -| `string[]` | `['.stream-io-cdn.com']` | - diff --git a/docusaurus/docs/reactnative/contexts/message-context.mdx b/docusaurus/docs/reactnative/contexts/message-context.mdx index 9a4b509bdc..40080a4252 100644 --- a/docusaurus/docs/reactnative/contexts/message-context.mdx +++ b/docusaurus/docs/reactnative/contexts/message-context.mdx @@ -90,54 +90,6 @@ True if one of the following condition is true: -### handleDeleteMessage - -Callback function for "Delete Message" action. - -| Type | -| -------- | -| function | - -### handleEditMessage - -Callback function for "Edit Message" action. - -| Type | -| -------- | -| function | - -### handleQuotedReplyMessage - -Callback function for "Quoted Reply" action. - -| Type | -| -------- | -| function | - -### handleResendMessage - -Callback function for "Resend Message" (for failed message) action. - -| Type | -| -------- | -| function | - -### handleToggleBanUser - -Callback function for "Ban/Unban User" action. - -| Type | -| -------- | -| function | - -### handleToggleMuteUser - -Callback function for "Mute/Unmute User" action. - -| Type | -| -------- | -| function | - ### handleToggleReaction Callback function for toggling reaction from reaction selector. diff --git a/docusaurus/docs/reactnative/contexts/messages-context.mdx b/docusaurus/docs/reactnative/contexts/messages-context.mdx index 626cfb0602..ca4e831a80 100644 --- a/docusaurus/docs/reactnative/contexts/messages-context.mdx +++ b/docusaurus/docs/reactnative/contexts/messages-context.mdx @@ -3,7 +3,7 @@ id: messages-context title: MessagesContext --- -import AdditionalTouchableProps from '../common-content/ui-components/channel/props/additional_touchable_props.mdx'; +import AdditionalPressableProps from '../common-content/ui-components/channel/props/additional_pressable_props.mdx'; import Attachment from '../common-content/ui-components/channel/props/attachment.mdx'; import AttachmentActions from '../common-content/ui-components/channel/props/attachment_actions.mdx'; import AudioAttachment from '../common-content/ui-components/channel/props/audio_attachment.mdx'; @@ -26,7 +26,6 @@ import Gallery from '../common-content/ui-components/channel/props/gallery.mdx'; import Giphy from '../common-content/ui-components/channel/props/giphy.mdx'; import GiphyVersion from '../common-content/ui-components/channel/props/giphy_version.mdx'; import HandleBan from '../common-content/ui-components/channel/props/handle_ban.mdx'; -import HandleBlock from '../common-content/ui-components/channel/props/handle_block.mdx'; import HandleCopy from '../common-content/ui-components/channel/props/handle_copy.mdx'; import HandleDelete from '../common-content/ui-components/channel/props/handle_delete.mdx'; import HandleEdit from '../common-content/ui-components/channel/props/handle_edit.mdx'; @@ -41,6 +40,8 @@ import InlineDateSeparator from '../common-content/ui-components/channel/props/i import InlineUnreadIndicator from '../common-content/ui-components/channel/props/inline_unread_indicator.mdx'; import IsAttachmentEqual from '../common-content/ui-components/channel/props/is_attachment_equal.mdx'; import MarkdownRules from '../common-content/ui-components/channel/props/markdown_rules.mdx'; +import MessageActionList from '../common-content/ui-components/channel/props/message-action-list.mdx'; +import MessageActionListItem from '../common-content/ui-components/channel/props/message-action-list-item.mdx'; import MessageAvatar from '../common-content/ui-components/channel/props/message-avatar.mdx'; import MessageBounce from '../common-content/ui-components/channel/props/message-bounce.mdx'; import MessageContent from '../common-content/ui-components/channel/props/message-content.mdx'; @@ -51,18 +52,25 @@ import MessageEditedTimestamp from '../common-content/ui-components/channel/prop import MessageError from '../common-content/ui-components/channel/props/message-error.mdx'; import MessageFooter from '../common-content/ui-components/channel/props/message-footer.mdx'; import MessageHeader from '../common-content/ui-components/channel/props/message-header.mdx'; +import MessageMenu from '../common-content/ui-components/channel/props/message-menu.mdx'; import MessageReplies from '../common-content/ui-components/channel/props/message-replies.mdx'; import MessageRepliesAvatars from '../common-content/ui-components/channel/props/message-replies-avatars.mdx'; import MessageSimple from '../common-content/ui-components/channel/props/message-simple.mdx'; import MessageStatus from '../common-content/ui-components/channel/props/message-status.mdx'; import MessageSystem from '../common-content/ui-components/channel/props/message-system.mdx'; import MessageText from '../common-content/ui-components/channel/props/message-text.mdx'; +import MessageTextNumberOfLines from '../common-content/ui-components/channel/props/message-text-number-of-lines.mdx'; import MyMessageTheme from '../common-content/ui-components/channel/props/my_message_theme.mdx'; import OnLongPressMessage from '../common-content/ui-components/channel/props/on_long_press_message.mdx'; import OnPressInMessage from '../common-content/ui-components/channel/props/on_press_in_message.mdx'; import OnPressMessage from '../common-content/ui-components/channel/props/on_press_message.mdx'; -import OverlayReactionList from '../common-content/ui-components/overlay-provider/props/overlay_reaction_list.mdx'; -import ReactionList from '../common-content/ui-components/channel/props/reaction-list.mdx'; +import MessageReactionPicker from '../common-content/ui-components/channel/props/message-reaction-picker.mdx'; +import MessageUserReactionsAvatar from '../common-content/ui-components/channel/props/message-user-reactions-avatar.mdx'; +import MessageUserReactionsItem from '../common-content/ui-components/channel/props/message-user-reactions-item.mdx'; +import MessageUserReactions from '../common-content/ui-components/channel/props/message-user-reactions.mdx'; +import ReactionListBottom from '../common-content/ui-components/channel/props/reaction-list-bottom.mdx'; +import ReactionListPosition from '../common-content/ui-components/channel/props/reaction-list-position.mdx'; +import ReactionListTop from '../common-content/ui-components/channel/props/reaction-list-top.mdx'; import Reply from '../common-content/ui-components/channel/props/reply.mdx'; import ScrollToBottomButton from '../common-content/ui-components/channel/props/scroll-to-bottom-button.mdx'; import ShouldShowUnreadUnderlay from '../common-content/ui-components/channel/props/should_show_unread_underlay.mdx'; @@ -78,9 +86,9 @@ import PollContent from '../common-content/ui-components/poll/poll-content.mdx'; ## Value -###
_forwarded from [Channel](../../core-components/channel#additionaltouchableprops)_ props
additionalTouchableProps {#additionaltouchableprops} +###
_forwarded from [Channel](../../core-components/channel#additionalpressableprops)_ props
additionalPressableProps {#additionalpressableprops} - + ### `channelId` @@ -118,10 +126,6 @@ Id of current channel. -###
_forwarded from [Channel](../../core-components/channel#handleblock)_ props
`handleBlock` {#handleblock} - - - ###
_forwarded from [Channel](../../core-components/channel#handlecopy)_ props
`handleCopy` {#handlecopy} @@ -186,6 +190,10 @@ Id of current channel. +###
_forwarded from [Channel](../../core-components/channel#messagetextnumberoflines)_ props
messageTextNumberOfLines {#messagetextnumberoflines} + + + ###
_forwarded from [Channel](../../core-components/channel#onlongpressmessage)_ props
onLongPressMessage {#onlongpressmessage} @@ -198,6 +206,10 @@ Id of current channel. +###
_forwarded from [Channel](../../core-components/channel#reactionlistposition)_ props
reactionListPosition {#reactionlistposition} + + + ### `removeMessage` Function to remove message from local channel state. Please note that this function is only for updating the local state, it doesn't call the API for deleting message (`channel.deleteMessage`). @@ -342,6 +354,14 @@ Upserts a given message in local channel state. Please note that this function d --> +###
_forwarded from [Channel](../../core-components/channel#messageactionlist)_ props
MessageActionList {#messageactionlist} + + + +###
_forwarded from [Channel](../../core-components/channel#messageactionlistitem)_ props
MessageActionListItem {#messageactionlistitem} + + + ###
_forwarded from [Channel](../../core-components/channel#messageavatar)_ props
MessageAvatar {#messageavatar} @@ -374,6 +394,10 @@ Upserts a given message in local channel state. Please note that this function d +###
_forwarded from [Channel](../../core-components/channel#messagemenu)_ props
MessageMenu {#messagemenu} + + + @@ -402,13 +426,41 @@ Upserts a given message in local channel state. Please note that this function d -###
_forwarded from [Channel](../../core-components/channel#overlayreactionlist)_ props
OverlayReactionList {#overlayreactionlist} +###
_forwarded from [Channel](../../core-components/channel#messagereactionpicker)_ props
MessageReactionPicker {#messagereactionpicker} + + + +###
_forwarded from [Channel](../../core-components/channel#messageuserreactionsavatar)_ props
MessageUserReactionsAvatar {#messageuserreactionsavatar} + + + +###
_forwarded from [Channel](../../core-components/channel#messageuserreactionsitem)_ props
MessageUserReactionsItem {#messageuserreactionsitem} + + + +###
_forwarded from [Channel](../../core-components/channel#messageuserreactions)_ props
MessageUserReactions {#messageuserreactions} + + + +###
_forwarded from [Channel](../../core-components/channel#messageuserreactionsavatar)_ props
MessageUserReactionsAvatar {#messageuserreactionsavatar} + + + +###
_forwarded from [Channel](../../core-components/channel#messageuserreactionsitem)_ props
MessageUserReactionsItem {#messageuserreactionsitem} + + + +###
_forwarded from [Channel](../../core-components/channel#messageuserreactions)_ props
MessageUserReactions {#messageuserreactions} + + + +###
_forwarded from [Channel](../../core-components/channel#reactionlistbottom)_ props
ReactionListBottom {#reactionlistbottom} - + -###
_forwarded from [Channel](../../core-components/channel#reactionlist)_ props
ReactionList {#reactionlist} +###
_forwarded from [Channel](../../core-components/channel#reactionlisttop)_ props
ReactionListTop {#reactionlisttop} - + ###
_forwarded from [Channel](../../core-components/channel#scrolltobottombutton)_ props
ScrollToBottomButton {#scrolltobottombutton} diff --git a/docusaurus/docs/reactnative/contexts/overlay-context.mdx b/docusaurus/docs/reactnative/contexts/overlay-context.mdx index 53f4deae1c..a1f5f26f09 100644 --- a/docusaurus/docs/reactnative/contexts/overlay-context.mdx +++ b/docusaurus/docs/reactnative/contexts/overlay-context.mdx @@ -28,21 +28,35 @@ const { setOverlay } = useOverlayContext(); ## Value -### overlay +### `overlay` Current active overlay. Overlay gets rendered in following cases - 'alert' - For delete message confirmation alert box - 'gallery' - When image viewer/gallery is opened -- 'message' - When message overlay is opened by long pressing a message - 'none' - Default value -| Type | -| ------------------------------------------- | -| enum('alert', 'gallery', 'message', 'none') | +| Type | +| -------------------------------- | +| enum('alert', 'gallery', 'none') | ### `setOverlay` - +### `style` + +A `theme` object to customize the styles of SDK components. +Detailed information on theming can be found in the [customization documentation](../customization/theme.mdx). + +:::note + +Themes are inherited from parent providers. +A [theme provided to the `OverlayProvider`](../core-components/overlay-provider.mdx#value) will be the base theme `style` is merged into. +Themes are not hoisted though, therefore a theme provided to `Chat` will not change overlay components such as the attachment picker. + +::: + +| Type | +| ------ | +| Object | diff --git a/docusaurus/docs/reactnative/core-components/channel-list.mdx b/docusaurus/docs/reactnative/core-components/channel-list.mdx index 9e99f13625..e928500e7e 100644 --- a/docusaurus/docs/reactnative/core-components/channel-list.mdx +++ b/docusaurus/docs/reactnative/core-components/channel-list.mdx @@ -222,21 +222,6 @@ Override for the default Event Listener behavior when a channel is updated. Th | setChannels | Setter function for the internal channels state | | event | [Event Object](https://getstream.io/chat/docs/react/event_object/#event-object) corresponding to channel.deleted | -### `onMessageNew` - -Override for the default Event Listener behavior when a message is received on a channel that is not being watched. The default behavior adds the channel to the list. - -> Warning: This function is deprecated. Use **[`onNewMessageNotification`](#onNewMessageNotification)** instead. - -| Type | -| -------- | -| Function | - -| Parameter | Description | -| ----------- | ---------------------------------------------------------------------------------------------------------------- | -| setChannels | Setter function for the internal channels state | -| event | [Event Object](https://getstream.io/chat/docs/react/event_object/#event-object) corresponding to channel.deleted | - ### **`onNewMessageNotification`** Override for the default Event Listener behavior when a message is received on a channel that is not being watched. The default behavior adds the channel to the list. diff --git a/docusaurus/docs/reactnative/core-components/channel.mdx b/docusaurus/docs/reactnative/core-components/channel.mdx index 21a19744f9..037e0f01c9 100644 --- a/docusaurus/docs/reactnative/core-components/channel.mdx +++ b/docusaurus/docs/reactnative/core-components/channel.mdx @@ -25,7 +25,7 @@ import AutoCompleteSuggestionItem from '../common-content/ui-components/channel/ import AutoCompleteSuggestionList from '../common-content/ui-components/channel/props/autocomplete_suggestion_list.mdx'; import AutoCompleteSuggestionsLimit from '../common-content/ui-components/channel/props/auto_complete_suggestions_limit.mdx'; import AutoCompleteTriggerSettings from '../common-content/ui-components/channel/props/auto_complete_trigger_settings.mdx'; -import AdditionalTouchableProps from '../common-content/ui-components/channel/props/additional_touchable_props.mdx'; +import AdditionalPressableProps from '../common-content/ui-components/channel/props/additional_pressable_props.mdx'; import AttachButton from '../common-content/ui-components/channel/props/attach_button.mdx'; import Attachment from '../common-content/ui-components/channel/props/attachment.mdx'; import AttachmentActions from '../common-content/ui-components/channel/props/attachment_actions.mdx'; @@ -65,7 +65,6 @@ import GiphyEnabled from '../common-content/ui-components/channel/props/giphy_en import GiphyVersion from '../common-content/ui-components/channel/props/giphy_version.mdx'; import HandleAttachButtonPress from '../common-content/ui-components/channel/props/handle_attach_button_press.mdx'; import HandleBan from '../common-content/ui-components/channel/props/handle_ban.mdx'; -import HandleBlock from '../common-content/ui-components/channel/props/handle_block.mdx'; import HandleCopy from '../common-content/ui-components/channel/props/handle_copy.mdx'; import HandleDelete from '../common-content/ui-components/channel/props/handle_delete.mdx'; import HandleEdit from '../common-content/ui-components/channel/props/handle_edit.mdx'; @@ -101,16 +100,20 @@ import MaxMessageLength from '../common-content/ui-components/channel/props/max_ import MaxNumberOfFiles from '../common-content/ui-components/channel/props/max_number_of_files.mdx'; import MentionAllAppUsersEnabled from '../common-content/ui-components/channel/props/mention_all_app_users_enabled.mdx'; import MentionAllAppUsersQuery from '../common-content/ui-components/channel/props/mention_all_app_users_query.mdx'; +import Message from '../common-content/ui-components/channel/props/message.mdx'; +import MessageActionListItem from '../common-content/ui-components/channel/props/message-action-list-item.mdx'; +import MessageActionList from '../common-content/ui-components/channel/props/message-action-list.mdx'; +import MessageActions from '../common-content/ui-components/channel/props/message_actions.mdx'; import MessageAvatar from '../common-content/ui-components/channel/props/message-avatar.mdx'; import MessageBounce from '../common-content/ui-components/channel/props/message-bounce.mdx'; import MessageContent from '../common-content/ui-components/channel/props/message-content.mdx'; -import MessageActions from '../common-content/ui-components/channel/props/message_actions.mdx'; import MessageContentOrder from '../common-content/ui-components/channel/props/message_content_order.mdx'; import MessageDeleted from '../common-content/ui-components/channel/props/message-deleted.mdx'; import MessageEditedTimestamp from '../common-content/ui-components/channel/props/message-edited-timestamp.mdx'; import MessageError from '../common-content/ui-components/channel/props/message-error.mdx'; import MessageFooter from '../common-content/ui-components/channel/props/message-footer.mdx'; import MessageHeader from '../common-content/ui-components/channel/props/message-header.mdx'; +import MessageMenu from '../common-content/ui-components/channel/props/message-menu.mdx'; import MessagePinnedHeader from '../common-content/ui-components/channel/props/message-pinned-header.mdx'; import MessageReplies from '../common-content/ui-components/channel/props/message-replies.mdx'; import MessageRepliesAvatars from '../common-content/ui-components/channel/props/message-replies-avatars.mdx'; @@ -118,6 +121,7 @@ import MessageSimple from '../common-content/ui-components/channel/props/message import MessageStatus from '../common-content/ui-components/channel/props/message-status.mdx'; import MessageSystem from '../common-content/ui-components/channel/props/message-system.mdx'; import MessageText from '../common-content/ui-components/channel/props/message-text.mdx'; +import MessageTextNumberOfLines from '../common-content/ui-components/channel/props/message-text-number-of-lines.mdx'; import MoreOptionsButton from '../common-content/ui-components/channel/props/more-options-button.mdx'; import MyMessageTheme from '../common-content/ui-components/channel/props/my_message_theme.mdx'; import NewMessageStateUpdateThrottleInterval from '../common-content/ui-components/channel/props/new_message_state_update_throttle_interval.mdx'; @@ -126,9 +130,14 @@ import OnChangeText from '../common-content/ui-components/channel/props/on_chang import OnLongPressMessage from '../common-content/ui-components/channel/props/on_long_press_message.mdx'; import OnPressInMessage from '../common-content/ui-components/channel/props/on_press_in_message.mdx'; import OnPressMessage from '../common-content/ui-components/channel/props/on_press_message.mdx'; -import OverlayReactionList from '../common-content/ui-components/overlay-provider/props/overlay_reaction_list.mdx'; +import MessageReactionPicker from '../common-content/ui-components/channel/props/message-reaction-picker.mdx'; +import MessageUserReactionsAvatar from '../common-content/ui-components/channel/props/message-user-reactions-avatar.mdx'; +import MessageUserReactionsItem from '../common-content/ui-components/channel/props/message-user-reactions-item.mdx'; +import MessageUserReactions from '../common-content/ui-components/channel/props/message-user-reactions.mdx'; import OverrideOwnCapabilities from '../common-content/ui-components/channel/props/override_own_capabilities.mdx'; -import ReactionList from '../common-content/ui-components/channel/props/reaction-list.mdx'; +import ReactionListBottom from '../common-content/ui-components/channel/props/reaction-list-bottom.mdx'; +import ReactionListPosition from '../common-content/ui-components/channel/props/reaction-list-position.mdx'; +import ReactionListTop from '../common-content/ui-components/channel/props/reaction-list-top.mdx'; import Reply from '../common-content/ui-components/channel/props/reply.mdx'; import ScrollToBottomButton from '../common-content/ui-components/channel/props/scroll-to-bottom-button.mdx'; import SelectReaction from '../common-content/ui-components/channel/props/select_reaction.mdx'; @@ -281,9 +290,9 @@ This is often the header height. -### additionalTouchableProps +### additionalPressableProps - + ### allowThreadMessagesInChannel @@ -496,10 +505,6 @@ The max allowable is 255, which when reached displays as `255+`. -### `handleBlock` - - - ### `handleCopy` @@ -644,6 +649,10 @@ Load the channel at a specified message instead of the most recent message. +### `messageTextNumberOfLines` + + + @@ -680,6 +689,10 @@ Provide a custom array of messages to render in `MessageList`. --> +### reactionListPosition + + + ### selectReaction @@ -915,8 +928,20 @@ Component to render full screen error indicator, when channel fails to load. + + +### MessageActionList + + + +### MessageActionListItem + + + ### MessageAvatar @@ -949,6 +974,10 @@ Component to render full screen error indicator, when channel fails to load. +### MessageMenu + + + ### MessagePinnedHeader @@ -979,6 +1008,22 @@ Component to render full screen error indicator, when channel fails to load. +### MessageReactionPicker + + + +### MessageUserReactionsAvatar + + + +### MessageUserReactionsItem + + + +### MessageUserReactions + + + ### MoreOptionsButton @@ -987,13 +1032,13 @@ Component to render full screen error indicator, when channel fails to load. -### OverlayReactionList +### ReactionListBottom - + -### ReactionList +### ReactionListTop - + ### Reply diff --git a/docusaurus/docs/reactnative/core-components/chat.mdx b/docusaurus/docs/reactnative/core-components/chat.mdx index 2b71afb5cf..eeb346bb82 100644 --- a/docusaurus/docs/reactnative/core-components/chat.mdx +++ b/docusaurus/docs/reactnative/core-components/chat.mdx @@ -110,14 +110,6 @@ Themes are not hoisted though, therefore a theme provided to `Chat` will not cha | ------ | | Object | -### `resizableCDNHosts` - -This option allows you to specify a list of CDNs that offer image resizing. - -| Type | Default | -| ---------- | ------------------------ | -| `string[]` | `['.stream-io-cdn.com']` | - ## UI Component Props ### `ImageComponent` diff --git a/docusaurus/docs/reactnative/core-components/overlay-provider.mdx b/docusaurus/docs/reactnative/core-components/overlay-provider.mdx index 2add3b7ff6..daee8b4981 100644 --- a/docusaurus/docs/reactnative/core-components/overlay-provider.mdx +++ b/docusaurus/docs/reactnative/core-components/overlay-provider.mdx @@ -28,13 +28,12 @@ export const App = () => ( ## Context Providers -`OverlayProvider` contains providers for the `AttachmentPickerContext`, `ImageGalleryContext`, `MessageOverlayContext`, `OverlayContext`, `ThemeContext`, and `TranslationContext`. These can be accessed using the corresponding hooks. +`OverlayProvider` contains providers for the `AttachmentPickerContext`, `ImageGalleryContext`, `OverlayContext`, `ThemeContext`, and `TranslationContext`. These can be accessed using the corresponding hooks. | Context | Hook | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- | | [`AttachmentPickerContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx) | useAttachmentPickerContext | | [`ImageGalleryContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx) | useImageGalleryContext | -| [`MessageOverlayContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx) | useMessageOverlayContext | | [`OverlayContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/overlayContext/OverlayContext.tsx) | useOverlayContext | | [`ThemeContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/themeContext/ThemeContext.tsx) | useTheme | | [`TranslationContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/translationContext/TranslationContext.tsx) | useTranslationContext | @@ -150,14 +149,6 @@ The [`SnapPoints`](https://gorhom.github.io/react-native-bottom-sheet/props#snap | ----- | ------------------------------ | | Array | `[0, (screenHeight * 9) / 10]` | -### `messageTextNumberOfLines` - -Number of lines for the message text in the Message Overlay. - -| Type | Default | -| ------ | ------- | -| Number | 5 | - ### `numberOfAttachmentImagesToLoadPerCall` Number of images to load per call to [`CameraRoll.getPhotos`](https://github.com/react-native-cameraroll/react-native-cameraroll#getphotos). @@ -289,43 +280,3 @@ Image selector component displayed in the attachment selector bar. | Type | Default | | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ComponentType | `undefined` \| [`ImageSelectorIcon`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx) | - -### `MessageActionList` - -Component for rendering a message action list within the message overlay. - -| Type | Default | -| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ComponentType | `undefined` \| [`MessageActionList`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageOverlay/MessageActionList.tsx) | - -### `MessageActionListItem` - -Component for rendering message action list items within a message action list. - -| Type | Default | -| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ComponentType | `undefined` \| [`MessageActionListItem`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageOverlay/MessageActionListItem.tsx) | - -### `OverlayReactionList` - -Reaction selector component displayed within the message overlay when user long presses a message. - -| Type | Default | -| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| ComponentType | `undefined` \| [`OverlayReactionList`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/MessageOverlay/OverlayReactionList.tsx) | - -### `OverlayReactions` - -List of reactions component within the message overlay. - -| Type | Default | -| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| ComponentType | `undefined` \| [`OverlayReactions`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/MessageOverlay/OverlayReactions.tsx) | - -### `OverlayReactionsAvatar` - -Component for rendering an avatar in the message reaction overlay. - -| Type | Default | -| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| ComponentType | `undefined` \| [`OverlayReactionsAvatar`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/MessageOverlay/OverlayReactionsAvatar.tsx) | diff --git a/docusaurus/docs/reactnative/customization/contexts.mdx b/docusaurus/docs/reactnative/customization/contexts.mdx index ea4acfa87f..8a1df9e217 100644 --- a/docusaurus/docs/reactnative/customization/contexts.mdx +++ b/docusaurus/docs/reactnative/customization/contexts.mdx @@ -29,7 +29,6 @@ The majority of the contexts within the SDK are established in the higher level - `OverlayProvider` - [`AttachmentPickerContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx) - [`ImageGalleryContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx) - - [`MessageOverlayContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx) - [`OverlayContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/overlayContext/OverlayContext.tsx) - [`ThemeContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/themeContext/ThemeContext.tsx) - [`TranslationContext`](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/contexts/translationContext/TranslationContext.tsx) @@ -60,7 +59,6 @@ To access information from these contexts we suggest using the hooks that are pr | `KeyboardContext` | `useKeyboardContext` | | `MessageContext` | `useMessageContext` | | `MessageInputContext` | `useMessageInputContext` | -| `MessageOverlayContext` | `useMessageOverlayContext` | | `MessagesContext` | `useMessagesContext` | | `OverlayContext` | `useOverlayContext` | | `OwnCapabilitiesContext` | `useOwnCapabilitiesContext` | diff --git a/docusaurus/docs/reactnative/customization/global_config.mdx b/docusaurus/docs/reactnative/customization/global_config.mdx index 4c69112496..34efaaf67b 100644 --- a/docusaurus/docs/reactnative/customization/global_config.mdx +++ b/docusaurus/docs/reactnative/customization/global_config.mdx @@ -5,33 +5,42 @@ title: Global Config --- The core of Stream Chat for React Native is it's ability to be customized to your needs. -The new `Global Config` feature allows you to enable and disable features of the library and alter the default behavior of the SDK. - -:::info -This will be not be the recommended way of setting the config in the next major version of the SDK that is v6. - -Use the `resizableCDNHosts` prop in the [`Chat`](../core-components/chat.mdx) component instead. -::: +The new `Global Chat Config` feature allows you to enable and disable features of the library and alter the default behavior of the SDK. ## When to use global config -When you want to alter the default behavior of the SDK or it's components. -Please check the available options below to see if there is a config option that fits your needs. +When you want to alter the default behavior of the SDK such as changing the CDN hosts. ## How to use and alter the global config -Altering the global config can be done by calling the `setConfig` function on the `StreamChatRN` object. -Make sure to call this function before any other components are rendered at the root of your application (App.tsx in most cases). +The `ChatConfigProvider` is a context provider that can be used to provide global configuration to the chat application. -```tsx -import { StreamChatRN } from 'stream-chat-react-native'; +The `resizableCDNHosts` can be configured by wrapping the root of your Chat application with `ChatConfigProvider` as follows: -StreamChatRN.setConfig({ - resizableCDNHosts: ['https://my-company-cdn.com'], - // future config options -}); +```tsx +import { Chat, ChatConfigProvider, OverlayProvider } from 'stream-chat-react-native'; + +const App = () => { + return ( + + + + + + + + ); +}; ``` +:::note +If nothing is provided, the `resizableCDNHosts` will default to `['.stream-io-cdn.com']`. +::: + ## Available config features/Options ### `resizableCDNHosts` diff --git a/docusaurus/docs/reactnative/customization/native-handlers.mdx b/docusaurus/docs/reactnative/customization/native-handlers.mdx index 4ecb65cbe3..b58f399694 100644 --- a/docusaurus/docs/reactnative/customization/native-handlers.mdx +++ b/docusaurus/docs/reactnative/customization/native-handlers.mdx @@ -38,45 +38,37 @@ This should be done outside of the component lifecycle to prevent unnecessarily There are the handlers registered as they interact with different native API packages depending on if the SDK being used on Expo or React Native CLI. -### `compressImage` +### Audio -An `async` function that compresses an image and returns the local `uri` of the compressed image. +The handler used to play audio files and for voice recording. -| React Native CLI | Expo | -| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- | -| [`react-native-image-resizer`](https://github.com/bamlab/react-native-image-resizer) | [`expo-image-manipulator`](https://docs.expo.io/versions/latest/sdk/imagemanipulator/) | +| React Native CLI | Expo | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | +| [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) & [`react-native-blob-util`](https://github.com/RonRadtke/react-native-blob-util) | [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/) | -### `setClipboardString` +### `compressImage` -An function to copy strings or text in the message. +An `async` function that compresses an image and returns the local `uri` of the compressed image. -| React Native CLI | Expo | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | -| [`react-native-clipboard`](https://github.com/react-native-clipboard/clipboard) | [`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) | +| Expo | +| -------------------------------------------------------------------------------------- | +| [`expo-image-manipulator`](https://docs.expo.io/versions/latest/sdk/imagemanipulator/) | ### `deleteFile` A function that deletes a file at a given local `uri`. -| React Native CLI | Expo | -| ---------------------------------------------------------------- | -------------------------------------------------------------------------- | -| [`react-native-fs`](https://github.com/itinance/react-native-fs) | [`expo-file-system`](https://docs.expo.io/versions/latest/sdk/filesystem/) | - -### `FlatList` - -A FlatList component, on Expo the standard React Native component is used, on React Native a modified FlatList better fit for two directional scrolling is used. - -| React Native CLI | Expo | -| -------------------------------------------------------------------------- | ------------------------------------------------------- | -| [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) | [`react-native`](https://reactnative.dev/docs/flatlist) | +| React Native CLI | Expo | +| ------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| [`react-native-blob-util`](https://github.com/RonRadtke/react-native-blob-util) | [`expo-file-system`](https://docs.expo.io/versions/latest/sdk/filesystem/) | ### `getLocalAssetUri` A function that gets the local `uri` of an image or remote asset. -| React Native CLI | Expo | -| ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| [`@react-native-community/cameraroll`](https://github.com/react-native-cameraroll/react-native-cameraroll) | [`expo-media-library`](https://docs.expo.io/versions/latest/sdk/media-library/) | +| React Native CLI | Expo | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) | [`expo-media-library`](https://docs.expo.io/versions/latest/sdk/media-library/) | ### `getPhotos` @@ -86,14 +78,6 @@ A function that returns photos from the camera roll given an offset of `after` a | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) | [`expo-media-library`](https://docs.expo.io/versions/latest/sdk/media-library/) | -### `NetInfo` - -A object containing two keys, `addEventListener` and `fetch`, which are functions that allow a developer to add listeners to `NetInfo` or fetch information from `NetInfo`. - -| React Native CLI | Expo | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) | [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) | - ### `pickDocument` A function to open the document picker and return documents picked from it. @@ -114,9 +98,9 @@ A function to open the native image picker and return images picked from it. A function to save a file from a URL to local storage. -| React Native CLI | Expo | -| ---------------------------------------------------------------- | -------------------------------------------------------------------------- | -| [`react-native-fs`](https://github.com/itinance/react-native-fs) | [`expo-file-system`](https://docs.expo.io/versions/latest/sdk/filesystem/) | +| React Native CLI | Expo | +| ------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| [`react-native-blob-util`](https://github.com/RonRadtke/react-native-blob-util) | [`expo-file-system`](https://docs.expo.io/versions/latest/sdk/filesystem/) | ### SDK @@ -126,21 +110,29 @@ String identifying which package, `stream-chat-react-native` or `stream-chat-exp | -------------------------- | ------------------ | | _stream-chat-react-native_ | _stream-chat-expo_ | +### `setClipboardString` + +An function to copy strings or text in the message. + +| React Native CLI | Expo | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | +| [`react-native-clipboard`](https://github.com/react-native-clipboard/clipboard) | [`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) | + ### `shareImage` A function to provide a given image to the native sharing functionality of the OS. -| React Native CLI | Expo | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | -| [`react-native-fs`](https://github.com/itinance/react-native-fs) & [`react-native-share`](https://github.com/react-native-share/react-native-share) | [`expo-sharing`](https://docs.expo.io/versions/latest/sdk/sharing/) | +| React Native CLI | Expo | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| [`react-native-blob-util`](https://github.com/RonRadtke/react-native-blob-util) & [`react-native-share`](https://github.com/react-native-share/react-native-share) | [`expo-file-system`](https://docs.expo.io/versions/latest/sdk/filesystem/) & [`expo-sharing`](https://docs.expo.io/versions/latest/sdk/sharing/) | ### `takePhoto` A function that opens the OS specific camera and returns an image when one is taken. -| React Native CLI | Expo | -| --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| [`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker) | [`expo-image-picker`](https://docs.expo.io/versions/latest/sdk/imagepicker/) | +| React Native CLI | Expo | +| ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) | [`expo-image-picker`](https://docs.expo.io/versions/latest/sdk/imagepicker/) | ### `triggerHaptic` diff --git a/docusaurus/docs/reactnative/guides/audio-messages-support.mdx b/docusaurus/docs/reactnative/guides/audio-messages-support.mdx index b1777295c5..83ccb7790f 100644 --- a/docusaurus/docs/reactnative/guides/audio-messages-support.mdx +++ b/docusaurus/docs/reactnative/guides/audio-messages-support.mdx @@ -28,6 +28,7 @@ values={[ - [`react-native-video`](https://github.com/react-native-video/react-native-video) for Audio playback support. - [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) for Audio recording and preview. +- [`react-native-blob-util`](https://github.com/RonRadtke/react-native-blob-util) to access the cache directory while audio recording. @@ -44,7 +45,7 @@ Please follow along the linked documentation of each optional dependencies so as Also, make sure that the `minSdkVersion` is >=24, for [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) to work and the `kotlinVersion` should be `1.6.10`. ::: -## Enable Async Audio +## Enable async Audio Recording voice messages is possible by enabling audio recording on the [`Channel`](../core-components/channel.mdx#audiorecordingenabled) or the [`MessageInput`](../ui-components/message-input.mdx#audiorecordingenabled) component. diff --git a/docusaurus/docs/reactnative/guides/custom-message-actions.mdx b/docusaurus/docs/reactnative/guides/custom-message-actions.mdx index 30bfdcf0e6..6115247e60 100644 --- a/docusaurus/docs/reactnative/guides/custom-message-actions.mdx +++ b/docusaurus/docs/reactnative/guides/custom-message-actions.mdx @@ -4,27 +4,14 @@ title: Custom Message Actions --- import messageActions from '../assets/guides/custom-message-actions/message_actions.png'; -import myMessageActions from '../assets/guides/custom-message-actions/my_message_actions.png'; -Message actions pop up in message overlay, when you long-press a message. We have provided a granular control over these actions. +Message actions pop up in message menu, when you long-press a message. We have provided a granular control over these actions. By default we render the following actions (as shown in screenshots) - +
- - - - - -
- - - -
- Actions on received message - - Actions on my message +
@@ -32,7 +19,7 @@ By default we render the following actions (as shown in screenshots) Every message action that you see in UI, is represented by [`MessageAction`](#messageaction) object for that action. And `MessageAction` object provides all the necessary inputs (title, icon, action handler, `actionType`) for rendering the action button. ```tsx -type MessageAction = { +type MessageActionType = { action: () => void; actionType: enum('blockUser', 'copyMessage', 'deleteMessage', 'editMessage', 'flagMessage', 'muteUser', 'pinMessage', 'selectReaction', 'reply', 'retry', 'quotedReply', 'threadReply', 'unpinMessage') title: string; @@ -45,9 +32,9 @@ You can customize each one of the default actions using props on the [`Channel c The channel component accepts a prop called `messageActions`. You can use this prop as a callback function to render message actions selectively. -The arguments to this function is an object with all the default message actions as [`MessageAction`](#messageaction) objects. The function should return an array of MessageAction objects to render in a [MessageActionList](../core-components/overlay-provider.mdx#messageactionlist) within the message overlay, that is shown when a user long presses a message in a MessageList. +The arguments to this function is an object with all the default message actions as [`MessageAction`](#messageaction) objects. The function should return an array of MessageAction objects to render in a [MessageActionList](../core-components/channel.mdx#messageactionlist) within the message overlay, that is shown when a user long presses a message in a MessageList. -You can also customize each one of the default actions using the `messageActions` prop passed to the OverlayProvider as shown in the example below. The OverlayProvider component makes these props available in the `MessageOverlayContext` context. +You can also customize each one of the default actions using the `messageActions` prop passed to the Channel component as shown in the example below. ```tsx messageActions={({ @@ -75,7 +62,7 @@ messageActions={({ ### MessageAction -When you long press a message, it opens up a message overlay and renders all the actions available on message. MessageAction is an object consisting of all the parameters required to render a single action button, in message overlay. +When you long press a message, it opens up a message menu and renders all the actions available on message. MessageAction is an object consisting of all the parameters required to render a single action button, in message menu. #### Example @@ -130,9 +117,9 @@ Styles for underlying Text component of action title. | ------------------------------------------------------------------------- | | [`Text Style Props`](https://reactnative.dev/docs/text-style-props#props) | -### MessageTouchableHandlerPayload +### MessagePressableHandlerPayload -`MessageTouchableHandlerPayload` object is provided as parameter to callback handlers such as `onLongPressMessage`, `onPressMessage` for user interaction with message. +`MessagePressableHandlerPayload` object is provided as parameter to callback handlers such as `onLongPressMessage`, `onPressMessage` for user interaction with message. #### Example @@ -157,7 +144,7 @@ Styles for underlying Text component of action title. #### `additionalInfo` -Additional message touchable handler info. +Additional message pressable handler info. | Type | | ------ | @@ -257,9 +244,9 @@ import { messageActions as defaultMessageActions, Mute as MuteIcon } from 'strea } } }, - actionType: 'muteUser', + actionType: 'custom-mute-user', icon: , - title: isMuted ? t('Unmute User') : t('Mute User'), + title: isMuted ? t('Custom Unmute User') : t('Custom Mute User'), }); } @@ -272,7 +259,7 @@ import { messageActions as defaultMessageActions, Mute as MuteIcon } from 'strea ## How to customize message action UI -[`OverlayProvider`](../core-components/overlay-provider.mdx) component accepts props called - `MessageActionList` and `MessageActionListItem`. They both serve a different purpose. +The [`Channel`](../core-components/channel.mdx) component accepts props called - `MessageActionList` and `MessageActionListItem`. They both serve a different purpose. - `MessageActionList` - Allows full customizability of the message action list and allows users to add/define their own message action along with the style they prefer for the application. - `MessageActionListItem` - Allows customizability of an item in a message action list. @@ -282,15 +269,16 @@ import { messageActions as defaultMessageActions, Mute as MuteIcon } from 'strea An example for the usage of `MessageActionList` component is as follows. You can obviously have your own logic in the component. ```tsx -import { MessageActionListItem, OverlayProvider, useOverlayContext } from 'stream-chat-react-native'; +import { Alert } from 'react-native'; +import { Channel, MessageActionListItem, useMessageContext } from 'stream-chat-react-native'; const CustomMessageActionList = () => { - const { setOverlay } = useOverlayContext(); + const { dismissOverlay } = useMessageContext(); const messageActions = [ { action: function () { Alert.alert('Edit Message action called.'); - setOverlay('none'); + dismissOverlay(); }, actionType: 'editMessage', title: 'Edit messagee', @@ -298,7 +286,7 @@ const CustomMessageActionList = () => { { action: function () { Alert.alert('Delete message action'); - setOverlay('none'); + dismissOverlay(); }, actionType: 'deleteMessage', title: 'Delete Message', @@ -313,12 +301,12 @@ const CustomMessageActionList = () => { ); }; - - {/* Underlying Channel, MessageList and Message components */} -; + + {/* Underlying MessageList and MessageInput components */} +; ``` -Notice that the `MessageActionList` is a simple prop which just accepts your own component for the message action overlay. The content, styles and the action logic are all defined by the user itself. +Notice that the `MessageActionList` is a simple prop which just accepts your own component for the message menu. The content, styles and the action logic are all defined by the user itself. ### Customize Message Action list item @@ -347,38 +335,32 @@ You can use these props to provide your own component. An example for the `MessageActionListItem` component customization is as following: ```tsx -import { MessageActionListItem, OverlayProvider, useMessageActionAnimation } from 'stream-chat-react-native'; +import { Pressable, Text } from 'react-native'; +import { Channel, MessageActionListItem, useMessageActionAnimation } from 'stream-chat-react-native'; -const CustomMessageActionListItem = ({ action, actionType, ...rest }) => { - const { onTap } = useMessageActionAnimation({ action: action }); +const CustomMessageActionListItem = ({ action, actionType, ...rest }: MessageActionListItemProps) => { if (actionType === 'pinMessage') { return ( - - - {actionType} - - + + {actionType} + ); } else if (actionType === 'muteUser') { return ( - - - {actionType} - - + + {actionType} + ); } else { return ; } }; - - {/* Underlying Channel, MessageList and Message components */} -; + + {/* Underlying MessageList and MessageInput components */} +; ``` -Note: The `useMessageActionAnimation` hook takes in the `action` for the message action and this would give some utilities like `ontap`, `animatedStyle` and the `opacity` value which would be helpful with the Animated View which can be used in support of the package `react-native-reanimated`. - Please continue reading further to see different use cases. ## How to intercept a message action @@ -391,7 +373,6 @@ Please note that these intercepts will neither change the standard functions nor ::: - `handleBan` -- `handleBlock`(deprecated) - `handleCopy` - `handleDelete` - `handleEdit` @@ -413,7 +394,7 @@ Following example demonstrates how to add analytics tracking to "Copy Message" a To disable a particular action you can return `null` for a particular action type in the MessageActionListItem prop. An example to the situation would be as follows: ```tsx -import { MessageActionListItem, OverlayProvider, useMessageActionAnimation } from 'stream-chat-react-native'; +import { Channel, MessageActionListItem, useMessageActionAnimation } from 'stream-chat-react-native'; const CustomMessageActionListItem = ({ action, actionType, ...rest }) => { if (actionType === 'pinMessage') { @@ -423,7 +404,7 @@ const CustomMessageActionListItem = ({ action, actionType, ...rest }) => { } }; - - {/* Underlying Channel, MessageList and Message components */} -; + + {/* Underlying MessageList and MessageInput components */} +; ``` diff --git a/docusaurus/docs/reactnative/guides/custom-message-input.mdx b/docusaurus/docs/reactnative/guides/custom-message-input.mdx index 49253d9756..0408bee199 100644 --- a/docusaurus/docs/reactnative/guides/custom-message-input.mdx +++ b/docusaurus/docs/reactnative/guides/custom-message-input.mdx @@ -418,8 +418,8 @@ const CustomAttachButton = () => { ``` Now let's hook the relevant action handlers for buttons within ActionSheet. -[`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker) provides an image picker functionality -with good support for configurable compression, multiple images and cropping. And selected images from image picker or camera can be wired in +[`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) provides an image picker functionality +with good support for multiple images. And selected images from image picker or camera can be wired in with upload previews ([`ImageUploadPreview`](../ui-components/image-upload-preview.mdx)) within `MessageInput` component by using a function `uploadNewImage` provided by [`MessageInputContext`](../../contexts/message-input-context#uploadnewimage). @@ -429,15 +429,15 @@ provided by the [`MessageInputContext`](../../contexts/message-input-context#pic ```tsx {4,10,12-21,23-30,43,46,49} import { AttachButton, Channel, useMessageInputContext } from 'stream-chat-react-native'; import { ActionSheetProvider, useActionSheet } from '@expo/react-native-action-sheet'; -import ImagePicker from 'react-native-image-crop-picker'; +import ImagePicker from 'react-native-image-picker'; const CustomAttachButton = () => { const { showActionSheetWithOptions } = useActionSheet(); const { pickFile, uploadNewImage } = useMessageInputContext(); const pickImageFromGallery = () => - ImagePicker.openPicker({ - multiple: true, + ImagePicker.launchImageLibrary({ + selectionLimit: 0, }).then(images => images.forEach(image => uploadNewImage({ @@ -447,9 +447,7 @@ const CustomAttachButton = () => { ); const pickImageFromCamera = () => - ImagePicker.openCamera({ - cropping: true, - }).then(image => + ImagePicker.launchCamera({}).then(image => uploadNewImage({ uri: image.path, }), diff --git a/docusaurus/docs/reactnative/guides/live-location-sharing.mdx b/docusaurus/docs/reactnative/guides/live-location-sharing.mdx index 80b126d254..0f2c202754 100644 --- a/docusaurus/docs/reactnative/guides/live-location-sharing.mdx +++ b/docusaurus/docs/reactnative/guides/live-location-sharing.mdx @@ -341,7 +341,6 @@ import { Channel, Card as DefaultCard, useMessageContext, - useMessageOverlayContext, useOverlayContext, } from 'stream-chat-react-native'; import {useLiveLocationContext} from './LiveLocationContext'; @@ -361,9 +360,8 @@ const MapCard = ({ const {stopLiveLocation} = useLiveLocationContext(); const {isMyMessage, message} = useMessageContext(); - const {data} = useMessageOverlayContext(); const {overlay} = useOverlayContext(); - const overlayId = data?.message?.id; + const overlayId = message?.id; // is this message shown on overlay? If yes, then don't show the button const isOverlayOpen = overlay === 'message' && overlayId === message.id; const showStopSharingButton = !ended_at && isMyMessage && !isOverlayOpen; diff --git a/docusaurus/docs/reactnative/guides/new-architecture.mdx b/docusaurus/docs/reactnative/guides/new-architecture.mdx new file mode 100644 index 0000000000..a96384d3ac --- /dev/null +++ b/docusaurus/docs/reactnative/guides/new-architecture.mdx @@ -0,0 +1,44 @@ +--- +id: new-architecture +title: React Native New Architecture +--- + +Starting v6 we support the [new architecture](https://reactnative.dev/architecture/landing-page) for the React Native Chat SDK. + +To be compatible with the new architecture, it is recommended that you use React Native version `0.75.4` and above for React Native CLI and `>=51` for Expo. + +### Dependencies + +On Native CLI, we recommend you to be on the following versions or higher of the peer dependencies to be able to run the new architecture: + +| Dependencies | Versions | +| ----------------------------------- | ---------- | +| `@op-engineering/op-sqlite` | `>=9.3.0` | +| `@react-native-clipboard/clipboard` | `>=1.4.1` | +| `react-native-blob-util` | `>=0.17.0` | +| `react-native-document-picker` | `>=9.1.1` | +| `react-native-gesture-handler` | `>=2.15.0` | +| `react-native-haptic-feedback` | `>=2.2.0` | +| `react-native-image-picker` | `>=7.1.1` | +| `react-native-reanimated` | `>=3.9.0` | +| `react-native-share` | `>=10.0.2` | +| `react-native-svg` | `>=15.2.0` | + +Few of the dependencies we rely on are not fully new architecture compatible yet. + +1. `react-native-audio-recorder-player` and `react-native-video` work on interop mode. +2. `react-native-document-picker` doesn't support the bridgeless mode. Please use [`@react-native-documents/picker`](https://react-native-documents.github.io/docs/sponsor-only/intro) if you want the bridgeless mode. You can register your own native handler with us using our [Native Handler](../customization/native-handlers.mdx) guide. +3. `@react-native-camera-roll/camera-roll` doesn't work alongside the Image resizer module that we have. We recommend using the native image picker for now. You can read [the guide](./native-image-picker.mdx) here. + + :::note + Although the above dependencies are not fully compatible with the new architecture, you can still use them in your project. They doesn't stop you from building the app on both iOS and Android. + ::: + +For expo, make sure you are on the latest version of the dependencies with the current expo version you have. + +### Known issues and limitations + +- The audio recorder is not fully compatible with the new architecture, so you might face some issues while recording the audio and playing it using `react-native-audio-recorder-player`. We are working on it to fix the issues. +- The image gallery animations behaves differently and seem to lag a bit on the new architecture specially when you use the pan gesture to drag down the image. We are working on it to fix the issues. + +Please feel free to report any issues you face while using the new architecture. diff --git a/docusaurus/docs/reactnative/guides/push-notifications-v2.mdx b/docusaurus/docs/reactnative/guides/push-notifications-v2.mdx index 55d3bfcb0c..2e31174c4c 100644 --- a/docusaurus/docs/reactnative/guides/push-notifications-v2.mdx +++ b/docusaurus/docs/reactnative/guides/push-notifications-v2.mdx @@ -610,6 +610,20 @@ useEffect(() => { ## Troubleshooting +- If you have enabled offline support and have installed `op-sqlite`, the package `react-native-firebase` is not supposed to work with it, since it is loaded as a static framework because of the line `use_frameworks! :linkage => :static` on the Podfile. + To make it work, you can follow [this docs from op-sqlite](https://ospfranco.notion.site/Installation-93044890aa3d4d14b6c525ba4ba8686f#acdc7a6723234f8b8440acb1ae0e7d87). + Add the following snippet inside the `target 'Appname'` section of `Podfile`: + ```ruby + pre_install do |installer| + installer.pod_targets.each do |pod| + if pod.name.eql?('op-sqlite') + def pod.build_type + Pod::BuildType.static_library + end + end + end + end + ``` - You can check the "Webhook & Push Logs" section in the Dashboard to see if Notifications were sent by Stream. Please see the [Common Issues & FAQ](https://getstream.io/chat/docs/javascript/push_-_common_issues_and_faq/?language=javascript) to diagnose the various cases in which the Stream Chat API may not send the notifications. - Android devices can restrict your app while it's in the background to preserve battery life. This can prevent trigger notifications from being displayed. The [Notifee documentation](https://notifee.app/react-native/docs/android/background-restrictions) explains it in detail. - Additionally, suppose Stream Chat API has sent the notifications but was not displayed on the device. In that case, you can check the diagnostics steps for [Android](https://firebase.google.com/support/troubleshooter/fcm/delivery/diagnose/android) and [iOS](https://firebase.google.com/support/troubleshooter/fcm/delivery/diagnose/ios) in the Firebase cloud messaging documentation. diff --git a/docusaurus/docs/reactnative/object-types/message_action.mdx b/docusaurus/docs/reactnative/object-types/message_action.mdx index 2081a80fde..0f63ed6f08 100644 --- a/docusaurus/docs/reactnative/object-types/message_action.mdx +++ b/docusaurus/docs/reactnative/object-types/message_action.mdx @@ -3,7 +3,7 @@ id: message-action title: MessageAction --- -When you long press a message, it opens up a message overlay and renders all the actions available on message. MessageAction is an object consisting of all the parameters required to render a single action button, in message overlay. +When you long press a message, it opens up a message menu and renders all the actions available on message. MessageAction is an object consisting of all the parameters required to render a single action button, in message menu. ## Example diff --git a/docusaurus/docs/reactnative/object-types/message_pressable_handler_payload.mdx b/docusaurus/docs/reactnative/object-types/message_pressable_handler_payload.mdx new file mode 100644 index 0000000000..8eeae739fa --- /dev/null +++ b/docusaurus/docs/reactnative/object-types/message_pressable_handler_payload.mdx @@ -0,0 +1,87 @@ +--- +id: message-pressable-handler-payload +title: MessagePressableHandlerPayload +--- + +`MessagePressableHandlerPayload` object is provided as parameter to callback handlers such as `onLongPressMessage`, `onPressMessage` +for user interaction with message. + +## Example + +```tsx +{ + defaultHandler: [function], + emitter: 'giphy', + event: [Native Event Object], + actionHandlers: { + deleteMessage: [function], + editMessage: [function], + quotedReply: [function], + resendMessage: [function], + showMessageOverlay: [function], + toggleBanUser: [function], + toggleMuteUser: [function], + toggleReaction: [function], + }, + message: [message object], +} +``` + +## Keys and values + +### `defaultHandler` + +Default handler function for corresponding interaction. + +| Type | +| -------- | +| function | + +### emitter + +Location within message, where the interaction occurred. + +| Type | +| -------------------------------------------------------------------------------------------------------------------------------------------- | +| enum('card', 'fileAttachment', 'gallery', 'giphy', 'message', 'messageContent', 'messageReplies', 'reactionList', 'textLink', 'textMention') | + +### event + +Native event object which could either be coming from React Native's `Pressable` or `react-native-gesture-handler` + +| Type | +| ------ | +| object | + +### `actionHandlers` + +Set of action handler functions for various message actions. You can use these functions to perform any action when give interaction occurs. + +- `deleteMessage` +- `editMessage` +- `quotedReply` +- `resendMessage` +- `showMessageOverlay` +- `toggleBanUser` +- `toggleMuteUser` +- `toggleReaction` (takes reactionType as parameter) + +```tsx + defaultHandlers.quotedReply()} +``` + +| Type | +| ------ | +| object | + +### message + +Message object, on which interaction occurred. + +```tsx + console.log(message.id, message.text)} +``` + +| Type | +| ------ | +| object | diff --git a/docusaurus/docs/reactnative/ui-components/card.mdx b/docusaurus/docs/reactnative/ui-components/card.mdx index d4ea11824a..c6b325fd35 100644 --- a/docusaurus/docs/reactnative/ui-components/card.mdx +++ b/docusaurus/docs/reactnative/ui-components/card.mdx @@ -7,7 +7,7 @@ import OnLongPress from '../common-content/contexts/message-context/on_long_pres import OnPress from '../common-content/contexts/message-context/on_press.mdx'; import OnPressIn from '../common-content/contexts/message-context/on_press_in.mdx'; -import AdditionalTouchableProps from '../common-content/ui-components/channel/props/additional_touchable_props.mdx'; +import AdditionalPressableProps from '../common-content/ui-components/channel/props/additional_pressable_props.mdx'; import CardCover from '../common-content/ui-components/channel/props/card_cover.mdx'; import CardFooter from '../common-content/ui-components/channel/props/card_footer.mdx'; import CardHeader from '../common-content/ui-components/channel/props/card_header.mdx'; @@ -19,9 +19,9 @@ Please check the guides for [Custom Attachment](../guides/custom-attachment.mdx) ## Props -###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionaltouchableprops)_
`additionalTouchableProps` {#additionaltouchableprops} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionalpressableprops)_
`additionalPressableProps` {#additionalpressableprops} - + ### `author_name` diff --git a/docusaurus/docs/reactnative/ui-components/file-attachment.mdx b/docusaurus/docs/reactnative/ui-components/file-attachment.mdx index bc914ebad7..0a095e98fc 100644 --- a/docusaurus/docs/reactnative/ui-components/file-attachment.mdx +++ b/docusaurus/docs/reactnative/ui-components/file-attachment.mdx @@ -3,7 +3,7 @@ id: file-attachment title: FileAttachment --- -import AdditionalTouchableProps from '../common-content/ui-components/channel/props/additional_touchable_props.mdx'; +import AdditionalPressableProps from '../common-content/ui-components/channel/props/additional_pressable_props.mdx'; import AttachmentActions from '../common-content/ui-components/channel/props/attachment_actions.mdx'; import FileAttachmentIcon from '../common-content/ui-components/channel/props/file_attachment_icon.mdx'; @@ -39,9 +39,9 @@ Size of an attachment icon. This value gets passed to [`FileAttachmentIcon`](#fi | ------ | | Number | -###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionaltouchableprops)_
`additionalTouchableProps` {#additionaltouchableprops} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionalpressableprops)_
`additionalPressableProps` {#additionalpressableprops} - + ## UI Component Props diff --git a/docusaurus/docs/reactnative/ui-components/gallery.mdx b/docusaurus/docs/reactnative/ui-components/gallery.mdx index 1923d22385..0068a6269d 100644 --- a/docusaurus/docs/reactnative/ui-components/gallery.mdx +++ b/docusaurus/docs/reactnative/ui-components/gallery.mdx @@ -24,7 +24,7 @@ import Videos from '../common-content/contexts/message-context/videos.mdx'; import SetOverlay from '../common-content/contexts/overlay-context/set_overlay.mdx'; -import AdditionalTouchableProps from '../common-content/ui-components/channel/props/additional_touchable_props.mdx'; +import AdditionalPressableProps from '../common-content/ui-components/channel/props/additional_pressable_props.mdx'; import LegacyImageViewerSwipeBehaviour from '../common-content/ui-components/channel/props/legacy_image_viewer_swipe_behaviour.mdx'; import VideoThumbnail from '../common-content/ui-components/channel/props/video_thumbnail.mdx'; @@ -42,9 +42,9 @@ import { Channel, Gallery } from 'stream-chat-react-native'; ## Props -###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionaltouchableprops)_
`additionalTouchableProps` {#additionaltouchableprops} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionalpressableprops)_
`additionalPressableProps` {#additionalpressableprops} - + ###
_overrides the value from [MessageContext](../../contexts/message-context#alignment)_
`alignment` {#alignment} diff --git a/docusaurus/docs/reactnative/ui-components/giphy.mdx b/docusaurus/docs/reactnative/ui-components/giphy.mdx index 4fe0161e45..7ee806002c 100644 --- a/docusaurus/docs/reactnative/ui-components/giphy.mdx +++ b/docusaurus/docs/reactnative/ui-components/giphy.mdx @@ -10,7 +10,7 @@ import OnPressIn from '../common-content/contexts/message-context/on_press_in.md import SetSelectedMessage from '../common-content/contexts/image-gallery-context/set_selected_message.mdx'; import SetMessages from '../common-content/contexts/image-gallery-context/set_messages.mdx'; -import AdditionalTouchableProps from '../common-content/ui-components/channel/props/additional_touchable_props.mdx'; +import AdditionalPressableProps from '../common-content/ui-components/channel/props/additional_pressable_props.mdx'; import SetOverlay from '../common-content/contexts/overlay-context/set_overlay.mdx'; import ImageComponent from '../common-content/ui-components/chat/props/image_component.mdx'; @@ -29,9 +29,9 @@ Attachment object for `giphy` type attachment. | ------ | | Object | -###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionaltouchableprops)_
`additionalTouchableProps` {#additionaltouchableprops} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionalpressableprops)_
`additionalPressableProps` {#additionalpressableprops} - + ###
_overrides the value from [MessageContext](../../contexts/message-context#handleaction)_
`handleAction` {#handleaction} diff --git a/docusaurus/docs/reactnative/ui-components/message-content.mdx b/docusaurus/docs/reactnative/ui-components/message-content.mdx index 413d3b578d..f30f5dd0e3 100644 --- a/docusaurus/docs/reactnative/ui-components/message-content.mdx +++ b/docusaurus/docs/reactnative/ui-components/message-content.mdx @@ -3,35 +3,29 @@ id: message-content title: MessageContent --- -import AdditionalTouchableProps from '../common-content/ui-components/channel/props/additional_touchable_props.mdx'; +import AdditionalPressableProps from '../common-content/ui-components/channel/props/additional_pressable_props.mdx'; import Attachment from '../common-content/ui-components/channel/props/attachment.mdx'; import FileAttachmentGroup from '../common-content/ui-components/channel/props/file_attachment_group.mdx'; -import FormatDate from '../common-content/ui-components/channel/props/format_date.mdx'; import Gallery from '../common-content/ui-components/channel/props/gallery.mdx'; -import MessageDeleted from '../common-content/ui-components/channel/props/message-deleted.mdx'; +import IsAttachmentEqual from '../common-content/ui-components/channel/props/is_attachment_equal.mdx'; import MessageError from '../common-content/ui-components/channel/props/message-error.mdx'; -import MessageFooter from '../common-content/ui-components/channel/props/message-footer.mdx'; -import MessageHeader from '../common-content/ui-components/channel/props/message-header.mdx'; -import MessageReplies from '../common-content/ui-components/channel/props/message-replies.mdx'; -import MessageStatus from '../common-content/ui-components/channel/props/message-status.mdx'; +import MyMessageTheme from '../common-content/ui-components/channel/props/my_message_theme.mdx'; import Reply from '../common-content/ui-components/channel/props/reply.mdx'; import Disabled from '../common-content/contexts/channel-context/disabled.mdx'; -import Members from '../common-content/contexts/channel-context/members.mdx'; import Alignment from '../common-content/contexts/message-context/alignment.mdx'; +import GoToMessage from '../common-content/contexts/message-context/go_to_message.mdx'; import GroupStyles from '../common-content/contexts/message-context/group_styles.mdx'; -import HasReactions from '../common-content/contexts/message-context/has_reactions.mdx'; +import IsEditedMessageOpen from '../common-content/contexts/message-context/is_edited_message_open.mdx'; import IsMyMessage from '../common-content/contexts/message-context/is_my_message.mdx'; -import LastGroupMessage from '../common-content/contexts/message-context/last_group_message.mdx'; -import MessageContentOrder from '../common-content/contexts/message-context/message_content_order.mdx'; import MessageProp from '../common-content/contexts/message-context/message.mdx'; +import MessageContentOrder from '../common-content/contexts/message-context/message_content_order.mdx'; import OnLongPress from '../common-content/contexts/message-context/on_long_press.mdx'; import OnPress from '../common-content/contexts/message-context/on_press.mdx'; import OnPressIn from '../common-content/contexts/message-context/on_press_in.mdx'; -import OnlyEmojis from '../common-content/contexts/message-context/only_emojis.mdx'; import OtherAttachments from '../common-content/contexts/message-context/other_attachments.mdx'; -import ShowMessageStatus from '../common-content/contexts/message-context/show_message_status.mdx'; +import PreventPress from '../common-content/contexts/message-context/prevent_press.mdx'; import ThreadList from '../common-content/contexts/message-context/thread_list.mdx'; Component to render content of a message within the [`MessageList`](./message-list.mdx). Message avatar and reactions are not part of `MessageContent`. @@ -39,43 +33,45 @@ This is the default component provided to the prop [`MessageContent`](../../core ## Props -###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionaltouchableprops)_
`additionalTouchableProps` {#additionaltouchableprops} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#additionalpressableprops)_
`additionalPressableProps` {#additionalpressableprops} - + ###
_overrides the value from [MessageContext](../../contexts/message-context#alignment)_
`alignment` {#alignment} +### `backgroundColor` + +Background color for the message content. + +| Type | +| ----------------------- | +| `string` \| `undefined` | + ###
_overrides the value from [MessageContext](../../contexts/message-context#disabled)_
`disabled` {#disabled} -###
_overrides the value from [MessagesContext](../../contexts/messages-context#formatdate)_
`formatDate` {#formatdate} - - +###
_overrides the value from [MessageContext](../../contexts/message-context#gotomessage)_
`goToMessage` {#gotomessage} - + ###
_overrides the value from [MessageContext](../../contexts/message-context#groupstyles)_
`groupStyles` {#groupstyles} -###
_overrides the value from [MessageContext](../../contexts/message-context#hasreactions)_
`hasReactions` {#hasreactions} +###
_overrides the value from [MessageContext](../../contexts/message-context#isattachmentequal)_
`isAttachmentEqual` {#isattachmentequal} - + -###
_overrides the value from [MessageContext](../../contexts/message-context#ismymessage)_
`isMyMessage` {#ismymessage} +###
_overrides the value from [MessageContext](../../contexts/message-context#iseditedmessageopen)_
`isEditedMessageOpen` {#iseditedmessageopen} - + -###
_overrides the value from [MessageContext](../../contexts/message-context#lastgroupmessage)_
`lastGroupMessage` {#lastgroupmessage} - - - -###
_overrides the value from [MessageContext](../../contexts/message-context#members)_
`members` {#members} +###
_overrides the value from [MessageContext](../../contexts/message-context#ismymessage)_
`isMyMessage` {#ismymessage} - + ###
_overrides the value from [MessageContext](../../contexts/message-context#message)_
`message` {#message} @@ -85,13 +81,21 @@ This is the default component provided to the prop [`MessageContent`](../../core -###
_overrides the value from [MessageContext](../../contexts/message-context#onlongpress)_
`onLongPress` {#onlongpress} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#mymessagetheme)_
`MyMessageTheme` {#mymessagetheme} - + + +### `noBorder` -###
_overrides the value from [MessageContext](../../contexts/message-context#onlyemojis)_
`onlyEmojis` {#onlyemojis} +If `true`, the message content will not have a border. - +| Type | Default | +| ----------------------- | ------- | +| `Boolean`\| `undefined` | `false` | + +###
_overrides the value from [MessageContext](../../contexts/message-context#onlongpress)_
`onLongPress` {#onlongpress} + + ###
_overrides the value from [MessageContext](../../contexts/message-context#onpress)_
`onPress` {#onpress} @@ -105,11 +109,9 @@ This is the default component provided to the prop [`MessageContent`](../../core - +###
_overrides the value from [MessageContext](../../contexts/message-context#preventpress)_
`preventPress` {#preventpress} -###
_overrides the value from [MessageContext](../../contexts/message-context#showmessagestatus)_
`showMessageStatus` {#showmessagestatus} - - + ###
_overrides the value from [MessageContext](../../contexts/message-context#threadlist)_
`threadList` {#threadlist} @@ -129,30 +131,10 @@ This is the default component provided to the prop [`MessageContent`](../../core -###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagedeleted)_
`MessageDeleted` {#messagedeleted} - - - ###
_overrides the value from [MessagesContext](../../contexts/messages-context#messageerror)_
`MessageError` {#messageerror} -###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagefooter)_
`MessageFooter` {#messagefooter} - - - -###
_overrides the value from [MessagesContext](../../contexts/messages-context#messageheader)_
`MessageHeader` {#messageheader} - - - -###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagereplies)_
`MessageReplies` {#messagereplies} - - - -###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagestatus)_
`MessageStatus` {#messagestatus} - - - ###
_overrides the value from [MessagesContext](../../contexts/messages-context#reply)_
`Reply` {#reply} diff --git a/docusaurus/docs/reactnative/ui-components/message-pinned-header.mdx b/docusaurus/docs/reactnative/ui-components/message-pinned-header.mdx index 7e9d3878dc..cbceec4446 100644 --- a/docusaurus/docs/reactnative/ui-components/message-pinned-header.mdx +++ b/docusaurus/docs/reactnative/ui-components/message-pinned-header.mdx @@ -3,7 +3,6 @@ id: message-pinned-header title: MessagePinnedHeader --- -import Alignment from '../common-content/contexts/message-context/alignment.mdx'; import MessageProp from '../common-content/contexts/message-context/message.mdx'; import LastGroupMessage from '../common-content/contexts/message-context/last_group_message.mdx'; @@ -25,10 +24,6 @@ const MessagePinnedHeaderComponent = () => This component uses default values for all the following props, from [`MessageContext`](../../contexts/message-context) -###
_overrides the value from [MessageContext](../../contexts/message-context#alignment)_
`alignment` {#alignment} - - - ###
_overrides the value from [MessageContext](../../contexts/message-context#message)_
`message` {#message} diff --git a/docusaurus/docs/reactnative/ui-components/message-simple.mdx b/docusaurus/docs/reactnative/ui-components/message-simple.mdx index c270149cfc..24bab5f6be 100644 --- a/docusaurus/docs/reactnative/ui-components/message-simple.mdx +++ b/docusaurus/docs/reactnative/ui-components/message-simple.mdx @@ -4,14 +4,31 @@ title: MessageSimple --- import Alignment from '../common-content/contexts/message-context/alignment.mdx'; +import Channel from '../common-content/contexts/message-context/channel.mdx'; import GroupStyles from '../common-content/contexts/message-context/group_styles.mdx'; import HasReactions from '../common-content/contexts/message-context/has_reactions.mdx'; +import IsMyMessage from '../common-content/contexts/message-context/is_my_message.mdx'; +import LastGroupMessage from '../common-content/contexts/message-context/last_group_message.mdx'; import MessageProp from '../common-content/contexts/message-context/message.mdx'; +import OnlyEmojis from '../common-content/contexts/message-context/only_emojis.mdx'; +import OtherAttachments from '../common-content/contexts/message-context/other_attachments.mdx'; +import ShowMessageStatus from '../common-content/contexts/message-context/show_message_status.mdx'; + +import Members from '../common-content/contexts/channel-context/members.mdx'; import EnableMessageGroupingByUser from '../common-content/ui-components/channel/props/enable_message_grouping_by_user.mdx'; import MessageAvatar from '../common-content/ui-components/channel/props/message-avatar.mdx'; import MessageContent from '../common-content/ui-components/channel/props/message-content.mdx'; -import ReactionList from '../common-content/ui-components/channel/props/reaction-list.mdx'; +import MessageDeleted from '../common-content/ui-components/channel/props/message-deleted.mdx'; +import MessageFooter from '../common-content/ui-components/channel/props/message-footer.mdx'; +import MessageHeader from '../common-content/ui-components/channel/props/message-header.mdx'; +import MessagePinnedHeader from '../common-content/ui-components/channel/props/message-pinned-header.mdx'; +import MessageReplies from '../common-content/ui-components/channel/props/message-replies.mdx'; +import MessageStatus from '../common-content/ui-components/channel/props/message-status.mdx'; +import MyMessageTheme from '../common-content/ui-components/channel/props/my_message_theme.mdx'; +import ReactionListBottom from '../common-content/ui-components/channel/props/reaction-list-bottom.mdx'; +import ReactionListPosition from '../common-content/ui-components/channel/props/reaction-list-position.mdx'; +import ReactionListTop from '../common-content/ui-components/channel/props/reaction-list-top.mdx'; Component to render a message within the [`MessageList`](./message-list.mdx). This component has been well optimized to save un-necessary re-renderings. This is the default component provided to the prop [`MessageSimple`](../../core-components/channel#messagesimple) on the `Channel` component. @@ -22,6 +39,10 @@ This is the default component provided to the prop [`MessageSimple`](../../core- +###
_overrides the value from [ChannelContext](../../contexts/channel-context#channel)_
`channel` {#channel} + + + ###
_overrides the value from [MessageContext](../../contexts/message-context#enablemessagegroupingbyuser)_
`enableMessageGroupingByUser` {#enablemessagegroupingbyuser} @@ -34,20 +55,80 @@ This is the default component provided to the prop [`MessageSimple`](../../core- +###
_overrides the value from [MessageContext](../../contexts/message-context#ismymessage)_
`isMyMessage` {#ismymessage} + + + +###
_overrides the value from [MessageContext](../../contexts/message-context#lastgroupmessage)_
`lastGroupMessage` {#lastgroupmessage} + + + +###
_overrides the value from [MessageContext](../../contexts/message-context#members)_
`members` {#members} + + + ###
_overrides the value from [MessageContext](../../contexts/message-context#message)_
`message` {#message} +###
_overrides the value from [MessageContext](../../contexts/message-context#onlyemojis)_
`onlyEmojis` {#onlyEmojis} + + + +###
_overrides the value from [MessageContext](../../contexts/message-context#otherattachments)_
`otherAttachments` {#otherattachments} + + + +###
_overrides the value from [MessageContext](../../contexts/message-context#showmessagestatus)_
`showMessageStatus` {#showmessagestatus} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#mymessagetheme)_
`MyMessageTheme` {#mymessagetheme} + + + ## UI Component Props -###
_overrides the value from [MessageContext](../../contexts/message-context#messageavatar)_
`MessageAvatar` {#messageavatar} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#messageavatar)_
`MessageAvatar` {#messageavatar} -###
_overrides the value from [MessageContext](../../contexts/message-context#messagecontent)_
`MessageContent` {#messagecontent} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagecontent)_
`MessageContent` {#messagecontent} -###
_overrides the value from [MessageContext](../../contexts/message-context#reactionlist)_
`ReactionList` {#reactionlist} +###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagedeleted)_
`MessageDeleted` {#messagedeleted} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagefooter)_
`MessageFooter` {#messagefooter} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#messageheader)_
`MessageHeader` {#messageheader} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagepinnedheader)_
`MessagePinnedHeader` {#messagepinnedheader} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagereplies)_
`MessageReplies` {#messagereplies} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#messagestatus)_
`MessageStatus` {#messagestatus} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#reactionlistbottom)_
`ReactionListBottom` {#reactionlistbottom} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#reactionlistposition)_
`ReactionListPosition` {#reactionlistposition} + + + +###
_overrides the value from [MessagesContext](../../contexts/messages-context#reactionlisttop)_
`ReactionListTop` {#reactionlisttop} - + diff --git a/docusaurus/docs/reactnative/ui-components/reaction-list-bottom.mdx b/docusaurus/docs/reactnative/ui-components/reaction-list-bottom.mdx new file mode 100644 index 0000000000..47d6565e8e --- /dev/null +++ b/docusaurus/docs/reactnative/ui-components/reaction-list-bottom.mdx @@ -0,0 +1,65 @@ +--- +id: reaction-list-bottom +title: ReactionListBottom +--- + +import HandleReaction from '../common-content/contexts/message-context/handle_reaction.mdx'; +import HasReactions from '../common-content/contexts/message-context/has_reactions.mdx'; +import OnLongPress from '../common-content/contexts/message-context/on_long_press.mdx'; +import OnPress from '../common-content/contexts/message-context/on_press.mdx'; +import OnPressIn from '../common-content/contexts/message-context/on_press_in.mdx'; +import PreventPress from '../common-content/contexts/message-context/prevent_press.mdx'; +import Reactions from '../common-content/contexts/message-context/reactions.mdx'; +import ShowMessageOverlay from '../common-content/contexts/message-context/show_message_overlay.mdx'; + +import SupportedReactions from '../common-content/ui-components/channel/props/supported_reactions.mdx'; + +`ReactionList` component is used to display the reactions added to a message right on top of it. + +This is the default component provided to the prop [`ReactionList`](../../core-components/channel#reactionlist) on the `Channel` component. + +## Basic Usage + +**Use case**: Override the background color on the reaction list container. + +```tsx +import { Channel, ReactionList, ReactionListProps } from 'stream-chat-react-native'; + +const ReactionListWithCustomBackground = (props: ReactionListProps) => + + +``` + +## Props + +###
overrides the value from [MessageContext](../../contexts/message-context#handlereaction)
`handleReaction` {#handlereaction} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#hasreactions)
`hasReactions` {#hasreactions} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#onlongpress)
`onLongPress` {#onlongpress} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#onpress)
`onPress` {#onpress} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#onpressin)
`onPressIn` {#onpressin} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#preventpress)
`preventPress` {#preventpress} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#reactions)
`reactions` {#reactions} + + + +###
overrides the value from [MessagesContext](../../contexts/messages-context#supportedreactions)
`supportedReactions` {#supportedreactions} + + diff --git a/docusaurus/docs/reactnative/ui-components/reaction-list-top.mdx b/docusaurus/docs/reactnative/ui-components/reaction-list-top.mdx new file mode 100644 index 0000000000..9173b6ed13 --- /dev/null +++ b/docusaurus/docs/reactnative/ui-components/reaction-list-top.mdx @@ -0,0 +1,94 @@ +--- +id: reaction-list-top +title: ReactionListTop +--- + +import Alignment from '../common-content/contexts/message-context/alignment.mdx'; +import HasReactions from '../common-content/contexts/message-context/has_reactions.mdx'; +import OnLongPress from '../common-content/contexts/message-context/on_long_press.mdx'; +import OnPress from '../common-content/contexts/message-context/on_press.mdx'; +import OnPressIn from '../common-content/contexts/message-context/on_press_in.mdx'; +import PreventPress from '../common-content/contexts/message-context/prevent_press.mdx'; +import Reactions from '../common-content/contexts/message-context/reactions.mdx'; +import ShowMessageOverlay from '../common-content/contexts/message-context/show_message_overlay.mdx'; + +import SupportedReactions from '../common-content/ui-components/channel/props/supported_reactions.mdx'; + +`ReactionList` component is used to display the reactions added to a message right on top of it. + +This is the default component provided to the prop [`ReactionList`](../../core-components/channel#reactionlist) on the `Channel` component. + +## Basic Usage + +**Use case**: Override the background color on the reaction list container. + +```tsx +import { Channel, ReactionList, ReactionListProps } from 'stream-chat-react-native'; + +const ReactionListWithCustomBackground = (props: ReactionListProps) => + + +``` + +## Props + +###
overrides the value from [MessageContext](../../contexts/message-context#alignment)
`alignment` {#alignment} + + + +### `fill` + +Background color for reaction list container when [`alignment`](#alignment) is `left`. + +| Type | +| ------ | +| String | + +###
overrides the value from [MessageContext](../../contexts/message-context#hasreactions)
`hasReactions` {#hasreactions} + + + +###
required
`messageContentWidth` {#messagecontentwidth} + +Width of message content. This helps ReactionList align itself on the front-edge of the message content. +This value gets computed in [`MessageContent`](../message-content) once the content gets loaded. + +| Type | +| ------ | +| Number | + +###
overrides the value from [MessageContext](../../contexts/message-context#onlongpress)
`onLongPress` {#onlongpress} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#onpress)
`onPress` {#onpress} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#onpressin)
`onPressIn` {#onpressin} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#preventpress)
`preventPress` {#preventpress} + + + +###
overrides the value from [MessageContext](../../contexts/message-context#reactions)
`reactions` {#reactions} + + + +### `reactionSize` + +Dimensions for each reaction icon. + +| Type | +| ------ | +| Number | + +###
overrides the value from [MessageContext](../../contexts/message-context#showmessageoverlay)
`showMessageOverlay` {#showmessageoverlay} + + + +###
overrides the value from [MessagesContext](../../contexts/messages-context#supportedreactions)
`supportedReactions` {#supportedreactions} + + diff --git a/docusaurus/reactnative-docusaurus-dontent-docs.plugin.js b/docusaurus/reactnative-docusaurus-dontent-docs.plugin.js index 024979badf..068d07b14f 100644 --- a/docusaurus/reactnative-docusaurus-dontent-docs.plugin.js +++ b/docusaurus/reactnative-docusaurus-dontent-docs.plugin.js @@ -3,23 +3,27 @@ module.exports = { [ '@docusaurus/plugin-content-docs', { - lastVersion: 'current', + lastVersion: '5.x.x', versions: { current: { + label: 'v6', + path: 'v6', + }, + '5.x.x': { label: 'v5', }, '4.x.x': { label: 'v4', path: 'v4', - banner: 'unmaintained' + banner: 'unmaintained', }, '3.x.x': { label: 'v3', path: 'v3', - banner: 'unmaintained' - } - } - } - ] - ] -} + banner: 'unmaintained', + }, + }, + }, + ], + ], +}; diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/libraries.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/libraries.mdx new file mode 100644 index 0000000000..9b111349be --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/libraries.mdx @@ -0,0 +1,34 @@ +--- +id: libraries +sidebar_position: 2 +title: Libraries +--- + +### [React Navigation Docs](https://reactnavigation.org/docs/getting-started/) + +Our tutorials, guides and sample apps are all using React Navigation. We recommend using it in +order to provide better support for all the use cases displayed. + +### [Gesture Handler Docs](https://docs.swmansion.com/react-native-gesture-handler/docs/) + +React Native Gesture Handler is used inside of our SDK on our channels and messages lists. Also used +on our gallery, chat buttons, and reactions overlay. + +### [Markdown Lib Docs](https://github.com/andangrd/react-native-markdown-package) + +React Native Markdown Package is used to render markdown on our messages. + +### [Reanimated Lib Docs](https://docs.swmansion.com/react-native-reanimated/docs) + +React Native Reanimated is used to create our own beautiful custom animations in our gallery, attachment picker, +message actions/reactions and loading indicators/skeletons. + +### [Day.js Docs](https://day.js.org/docs/en/installation/installation) + +We are using Day.js to manipulate, customize, parse and display dates through the app. +You may want to use it when creating you own custom components. + +### [React Native SVG](https://github.com/react-native-svg/react-native-svg) + +React Native SVG is one of our peer dependencies. We use it to render icons and a couple of small indicators +through the app. diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/stream.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/stream.mdx new file mode 100644 index 0000000000..0c95c0db5d --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/stream.mdx @@ -0,0 +1,44 @@ +--- +id: stream-additional-resources +sidebar_position: 1 +title: Stream Additional Resources +--- + +### [Demos](https://github.com/GetStream/react-native-samples) + +Stream Chat for React Native has multiple examples in the repository. +In addition we have "cloned" some popular UIs to help demonstrate the flexibility of the SDK. + +### [JavaScript Client](https://getstream.io/chat/docs/javascript/?language=javascript) + +Stream Chat for React Native uses the Stream Chat JS client under the hood for most interactions with the backend. +The client documentation covers a wide range of interactions that can be performed, not all of these are used within +the Stream Chat for React Native SDK but can be integrated within your own app as required. + +### [API Tutorial](https://getstream.io/chat/get_started/) + +To help you get acquainted with the Stream Chat JS client we have an easy to follow tutorial on our website. +This is a great primer for using the client directly and can also help you understand how the Stream Chat for +React Native SDK if functioning under the hood. + +### [Stream Chat JS Basic Guide](https://github.com/GetStream/javascript-beginner-guide) + +> ### Internal Articles + +- [Stream Chat Glossary](https://getstream.zendesk.com/hc/en-us/articles/1500007212082-Stream-Chat-Glossary) + +- [Stream Chat Success Checklist](https://getstream.zendesk.com/hc/en-us/articles/1500007673721-Stream-Chat-Success-Checklist) + +- [React - Customizing Message Actions](https://getstream.zendesk.com/hc/en-us/articles/1500008025241--Customizing-Message-Actions-in-React-Chat) + +- [Stream Webhooks](https://getstream.zendesk.com/hc/en-us/articles/1500006478421-How-can-I-use-the-Stream-Webhook-to-send-customers-emails-based-on-Chat-events-) + +- [Stream Rate limits](https://getstream.zendesk.com/hc/en-us/articles/360056792833-Rate-limits-and-HTTP-429-Errors) + +- [Stream API → Client → Server](https://getstream.zendesk.com/hc/en-us/articles/360061669873-How-do-the-Chat-Client-Server-Stream-API-communicate-with-each-other-) + +- [Stream Chat Moderation](https://getstream.zendesk.com/hc/en-us/articles/360041455753) + +- [Stream User Roles and Permissions](https://getstream.zendesk.com/hc/en-us/articles/360053064274-User-Roles-and-Permission-Policies-Chat) + +- [Stream `queryChannels` filters](https://getstream.zendesk.com/hc/en-us/articles/360057461213-Filters-for-queryChannels-Chat) diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/technologies_and_techniques.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/technologies_and_techniques.mdx new file mode 100644 index 0000000000..d5262bcf21 --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/additional-resources/technologies_and_techniques.mdx @@ -0,0 +1,21 @@ +--- +id: technologies-and-techniques +sidebar_position: 3 +title: Technologies & Techniques +--- + +### [Typescript Generics](https://www.typescriptlang.org/docs/handbook/2/generics.html) + +Our SDK is written in Typescript and heavily uses generics in order to allow users to use custom data and +still have decent typing support. + +### [React Context](https://reactjs.org/docs/context.html) + +We rely on multiple contexts in our SDK to access components, functions, and data. +Context also allows you as a developer to override our defaults for many of these throughout the SDK. +Understanding how to draw upon values in context is important to customizing the SDK for your own needs. + +### [React Hooks](https://reactjs.org/docs/hooks-intro.html) + +We use/expose a bunch of our component's hooks so users can use them in order to replicate some behaviour/data +parsing when creating custom components. Understanding how to work with hooks can come in very handy. diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/channel_list.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/channel_list.png new file mode 100644 index 0000000000..48f357ee70 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/channel_list.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/message_input.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/message_input.png new file mode 100644 index 0000000000..6abb430200 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/message_input.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/message_list.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/message_list.png new file mode 100644 index 0000000000..bf1468aeb0 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/message_list.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/summary.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/summary.png new file mode 100644 index 0000000000..787c36a5ad Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/summary.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/thread.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/thread.png new file mode 100644 index 0000000000..a9ba6b8ae4 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/hello-stream-chat/thread.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_1.png new file mode 100644 index 0000000000..44917f352e Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_2.png new file mode 100644 index 0000000000..a85680b3e9 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_3.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_3.png new file mode 100644 index 0000000000..4cef17ecbe Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_after_3.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_1.png new file mode 100644 index 0000000000..da0a3f7030 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_2.png new file mode 100644 index 0000000000..2d8b3ad4d0 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_3.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_3.png new file mode 100644 index 0000000000..65fca944e2 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/gallery_before_3.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/pin_message_action.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/pin_message_action.png new file mode 100644 index 0000000000..bd2432a79b Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/pin_message_action.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/pinned_message.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/pinned_message.png new file mode 100644 index 0000000000..bb80f51969 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/pinned_message.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/scroll_view_warning.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/scroll_view_warning.png new file mode 100644 index 0000000000..3343d98c8f Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/scroll_view_warning.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/slow_mode.gif b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/slow_mode.gif new file mode 100644 index 0000000000..44bb7759a4 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/basics/upgrading-from-v3/slow_mode.gif differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/date_header.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/date_header.png new file mode 100644 index 0000000000..c0c96f8f6a Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/date_header.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/name_date_header.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/name_date_header.png new file mode 100644 index 0000000000..698cefdec6 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/name_date_header.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/new_date_header.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/new_date_header.png new file mode 100644 index 0000000000..23c892550d Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/new_date_header.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/no_date_header.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/no_date_header.png new file mode 100644 index 0000000000..c1d2655d55 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/custom-components/no_date_header.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/typescript/explicit_types.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/typescript/explicit_types.png new file mode 100644 index 0000000000..86cddca96f Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/typescript/explicit_types.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/typescript/inference.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/typescript/inference.png new file mode 100644 index 0000000000..0e39545284 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/customization/typescript/inference.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-attachment-upload-preview.jpg b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-attachment-upload-preview.jpg new file mode 100644 index 0000000000..e413b986d2 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-attachment-upload-preview.jpg differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-attachment.jpg b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-attachment.jpg new file mode 100644 index 0000000000..241a7f67e3 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-attachment.jpg differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recorder-lock-button.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recorder-lock-button.png new file mode 100644 index 0000000000..b25bb6ee9b Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recorder-lock-button.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recording-in-progress.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recording-in-progress.png new file mode 100644 index 0000000000..74b0528128 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recording-in-progress.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recording-preview.jpg b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recording-preview.jpg new file mode 100644 index 0000000000..8cdcbf458a Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/audio-recording-preview.jpg differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/start-recording.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/start-recording.png new file mode 100644 index 0000000000..d0889fde51 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/audio-support/start-recording.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/blocking-users/blocked-users-list.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/blocking-users/blocked-users-list.png new file mode 100644 index 0000000000..e58a48d243 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/blocking-users/blocked-users-list.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-channel-list/load_more_button.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-channel-list/load_more_button.png new file mode 100644 index 0000000000..38b1c04a05 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-channel-list/load_more_button.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-actions/message_actions.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-actions/message_actions.png new file mode 100644 index 0000000000..5629323e2c Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-actions/message_actions.png differ diff --git a/docusaurus/docs/reactnative/assets/guides/custom-message-actions/my_message_actions.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-actions/my_message_actions.png similarity index 100% rename from docusaurus/docs/reactnative/assets/guides/custom-message-actions/my_message_actions.png rename to docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-actions/my_message_actions.png diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-input/native_attachment_picker_step_1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-input/native_attachment_picker_step_1.png new file mode 100644 index 0000000000..02737531f0 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-input/native_attachment_picker_step_1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-input/native_attachment_picker_step_2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-input/native_attachment_picker_step_2.png new file mode 100644 index 0000000000..977c1cb408 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-message-input/native_attachment_picker_step_2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/answer-list-navigation.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/answer-list-navigation.png new file mode 100644 index 0000000000..6c549ee94c Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/answer-list-navigation.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/attachment-picker-poll-button.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/attachment-picker-poll-button.png new file mode 100644 index 0000000000..d4cf379954 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/attachment-picker-poll-button.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-answers-list.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-answers-list.png new file mode 100644 index 0000000000..0c32c8fe29 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-answers-list.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-comments-creation-1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-comments-creation-1.png new file mode 100644 index 0000000000..74c8636302 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-comments-creation-1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-comments-creation-2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-comments-creation-2.png new file mode 100644 index 0000000000..912e33fb39 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-comments-creation-2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-creation-1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-creation-1.png new file mode 100644 index 0000000000..e28a9cea0a Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-creation-1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-creation-2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-creation-2.png new file mode 100644 index 0000000000..3d4b83a614 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-creation-2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-poll-background.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-poll-background.png new file mode 100644 index 0000000000..0f06d61e27 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-poll-background.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-results-title.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-results-title.png new file mode 100644 index 0000000000..055d340abd Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-results-title.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-results.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-results.png new file mode 100644 index 0000000000..59d1a57ce7 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-results.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-step-1-1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-step-1-1.png new file mode 100644 index 0000000000..afa0f50eb5 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-step-1-1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-step-1-2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-step-1-2.png new file mode 100644 index 0000000000..1b0673793b Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/custom-step-1-2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-1.png new file mode 100644 index 0000000000..31a8eb72ae Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-2.png new file mode 100644 index 0000000000..a86a608472 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-3.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-3.png new file mode 100644 index 0000000000..59245029c9 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/default-ui-3.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/enable-polls.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/enable-polls.png new file mode 100644 index 0000000000..82fefd237f Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-poll-flow/enable-polls.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-1.png new file mode 100644 index 0000000000..3b1f5b5271 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-2.png new file mode 100644 index 0000000000..5ab05ebf3e Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-3.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-3.png new file mode 100644 index 0000000000..0b8f992959 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-3.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-4.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-4.png new file mode 100644 index 0000000000..1c1607ad86 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/custom-thread-list/custom-thread-list-step-4.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/debug-using-flipper-plugin/flipper_desktop_guide.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/debug-using-flipper-plugin/flipper_desktop_guide.png new file mode 100644 index 0000000000..ee4ae95631 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/debug-using-flipper-plugin/flipper_desktop_guide.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/debug-using-flipper-plugin/flipper_stream_chat_react_native_banner.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/debug-using-flipper-plugin/flipper_stream_chat_react_native_banner.png new file mode 100644 index 0000000000..76193de190 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/debug-using-flipper-plugin/flipper_stream_chat_react_native_banner.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/deeplinking/xcode-info-url-types.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/deeplinking/xcode-info-url-types.png new file mode 100644 index 0000000000..2f0ad2e275 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/deeplinking/xcode-info-url-types.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/deeplinking/xcode-signing-capabilitites.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/deeplinking/xcode-signing-capabilitites.png new file mode 100644 index 0000000000..2dd6c0bf85 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/deeplinking/xcode-signing-capabilitites.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/live-location-sharing/chat-screen.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/live-location-sharing/chat-screen.png new file mode 100644 index 0000000000..7448b91fde Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/live-location-sharing/chat-screen.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/live-location-sharing/detail-screen.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/live-location-sharing/detail-screen.png new file mode 100644 index 0000000000..b4fe186670 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/live-location-sharing/detail-screen.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/bounced-message-action.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/bounced-message-action.png new file mode 100644 index 0000000000..c33d3f1e1b Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/bounced-message-action.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/bounced-message.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/bounced-message.png new file mode 100644 index 0000000000..cf80581799 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/bounced-message.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/moderation-dashboard.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/moderation-dashboard.png new file mode 100644 index 0000000000..e522547097 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/moderation/moderation-dashboard.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/native-image-picker/options.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/native-image-picker/options.png new file mode 100644 index 0000000000..4ffb6726ad Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/native-image-picker/options.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/performance/channel_settings.jpeg b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/performance/channel_settings.jpeg new file mode 100644 index 0000000000..8dd27ccf42 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/performance/channel_settings.jpeg differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/push-notifications/v2/chat_overview_page.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/push-notifications/v2/chat_overview_page.png new file mode 100644 index 0000000000..9e92437dbf Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/push-notifications/v2/chat_overview_page.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/push-notifications/v2/firebase_notifications_toggle.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/push-notifications/v2/firebase_notifications_toggle.png new file mode 100644 index 0000000000..c5670d0dc2 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/guides/push-notifications/v2/firebase_notifications_toggle.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/loading_indicator.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/loading_indicator.png new file mode 100644 index 0000000000..3e7a36fd34 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/loading_indicator.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/visual_guide_1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/visual_guide_1.png new file mode 100644 index 0000000000..1a04d87bcb Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/visual_guide_1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/visual_guide_2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/visual_guide_2.png new file mode 100644 index 0000000000..f24e82df4b Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel-list/visual_guide_2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_1.png new file mode 100644 index 0000000000..6ad712098e Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_2.png new file mode 100644 index 0000000000..0dc993276c Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_3.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_3.png new file mode 100644 index 0000000000..5ad7dbca4d Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_3.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_4.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_4.png new file mode 100644 index 0000000000..8e75fa494b Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel/visual_guide_4.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel_preview_messenger.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel_preview_messenger.png new file mode 100644 index 0000000000..8b65929b46 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel_preview_messenger.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel_preview_messenger_2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel_preview_messenger_2.png new file mode 100644 index 0000000000..4788875bbb Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/channel_preview_messenger_2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_1.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_1.png new file mode 100644 index 0000000000..4e34222f36 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_1.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_2.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_2.png new file mode 100644 index 0000000000..18e38a95e0 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_2.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_3.png b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_3.png new file mode 100644 index 0000000000..a38272ef27 Binary files /dev/null and b/docusaurus/reactnative_versioned_docs/version-5.x.x/assets/ui-components/overlay-provider/visual_guide_3.png differ diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/client.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/client.mdx new file mode 100644 index 0000000000..68bc6254f7 --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/client.mdx @@ -0,0 +1,222 @@ +--- +id: client +sidebar_position: 5 +title: Client +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +Stream Chat for React Native uses the [Stream Chat client](https://github.com/GetStream/stream-chat-js) to connect to and communicate with the Stream API. + +The full [JavaScript client docs](https://getstream.io/chat/docs/javascript/?language=javascript) should be referenced for detailed information on directly using the client. + +## Setup + +To interact with the Stream Chat API you must create a client instance and connect to the API, usually as an authenticated user. + +### Instantiation + +The Stream Chat client, `StreamChat` is a dependency of `stream-chat-react-native` and can be imported from `stream-chat`. +To create a client instance you can call `getInstance` on the client and provide and API key. + +```ts +import { StreamChat } from 'stream-chat'; + +const client = StreamChat.getInstance('api_key'); +``` + +:::caution + +**Usage of `StreamChat.getInstance()` available since stream-chat@2.12.0.** + +
+This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and +retrieve it wherever you need it on your app to perform API calls. After calling it once, any following + getInstance + call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple +StreamChat instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily. +
+
+ +Stream Chat is backward compatible. Users can continue using new StreamChat() if desired. + +
+ +```ts +const client = new StreamChat('api_key'); +``` + +Calling new StreamChat() repeatedly will create new copies of the client and in turn new WebSocket connections when connectUser is called. +If you are using new StreamChat() you need to be vigilant about your use to ensure you are not creating multiple WebSocket connections unnecessarily. + +::: + +### Connecting a User + +To connect a user a the `connectUser` function should be called and provided with the user object and `user_token`. +The `user_token` is typically sent from your back end when a user is authenticated. + +```ts +await client.connectUser( + { + id: 'testUser', + name: 'Test User', + }, + 'user_token', +); +``` + +It is recommended to not repeatedly call `connectUser` unnecessarily, multiple calls to `connectUser` will result in warnings, and attempting to call `connectUser` before disconnecting a current user will throw an Error. + +## UI Components + +The Stream Chat for React Native UI components handle most interactions with the client for you after connecting with an authenticated user. + +### Providing the Client to the UI + +To provide the client to the UI components you simply provide the client instance as the prop `client` to the `Chat` component. + +```tsx +import { StreamChat } from 'stream-chat'; +import { Chat } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const Screen = () => {/** App components */}; +``` + +The Stream Chat for React Native UI components then handle interacting with the client internally by accessing the client via [`context`](https://reactjs.org/docs/context.html). + +:::note + +If you are customizing certain components or functionality you may have to interact with the client as well. +You can access the client provided to the `Chat` component internally via the `useChatContext`. + +
+ +```ts +import { useChatContext } from 'stream-chat-react-native'; + +const { client } = useChatContext(); +``` + +::: + +### Using UI Functions + +The UI provides a number of functions that interact with the client while keeping the UI state in sync using `context`. +The [contexts section](../contexts/attachment-picker-context.mdx) details what functions are accessible. +When customizing your application you should ensure you are utilizing the correct functions to keep the UI state up to date. + +The `sendMessage` function for instance, provided by `useMessageInputContext`, is not the same as the `sendMessage` function found directly on a `channel` in the client. +Therefore calling `channel.sendMessage(messageData)` will not result in a message optimistically showing in the UI, or a failed send state, instead the message will not show until it is returned by the server. + +:::caution + +You should not assume any function directly called on the client will result in a UI update. +The UI state is managed internally by the components and `context`, most client interactions require an event returned by the server to update the UI. + +::: + +## Accessing the Client Instance + +There are multiple ways to access the client instance throughout your application. +[As mentioned](#providing-the-client-to-the-ui) you can access the `client` via `useChatContext` when inside the `Chat` component. +This works well if you can wrap your entire application in a single `Chat` component and have the `StreamChat` instance provided throughout your app via the internal `context`. +But if you have multiple screens that contain `Chat` components where a client instance is necessary you will need to access the shared instance in other ways. + +You can store the client in a [`context`](https://reactjs.org/docs/context.html) you create yourself. +Create your own custom class that provides it. +Or using the Singleton structure you can call `getInstance` when required to always be returned the current instance if one exists, or create a new one otherwise. + +:::warning + +Do not create and connect multiple instances using `new StreamChat()`, this will result in multiple `StreamChat` instances and opening multiple WebSocket connections. + +::: + +## Direct Interaction + +There may be some direct interaction with the client that is required for your application. +Referring to the [full documentation](https://getstream.io/chat/docs/javascript/?language=javascript) is suggested for detailed information on client functionality. +Common interactions with the client used in conjunction with the Stream Chat for React Native components have been included for convenience. + +### Creating a Channel + +A channel must be initialized with either an `id` or a list of members for the channel. +If you provide a list of members an `id` will be auto-generated on backend for the channel. + +:::note + +You can't add or remove members from channel created using a list of members. + +::: + + + + +```ts +/** + * Channel created using a channel id + */ +const channel = client.channel(channel_type, 'channel_id', { + name: 'My New Channel', +}); +``` + + + + +```ts +/** + * Channel created using a members list + */ +const channel = client.channel(channel_type, { + members: ['userOne', 'userTwo'] + name: 'My New Channel', +}); +``` + + + + +To create a channel on the server you must call `create` or `watch` on a new channel instance. +`create` will create the channel while `watch` will both create the channel and subscribe the client to updates on the channel. + + + + +```ts +await channel.watch(); +``` + + + + +```ts +await channel.create(); +``` + + + + +### Disconnecting a User + +To disconnect a user you can call `disconnect` on the client. + +```ts +await client.disconnectUser(); +``` diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/hello_stream_chat.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/hello_stream_chat.mdx new file mode 100644 index 0000000000..59b53c2601 --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/hello_stream_chat.mdx @@ -0,0 +1,548 @@ +--- +id: hello_stream_chat +sidebar_position: 2 +title: Hello Stream Chat +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +import channelList from '../assets/basics/hello-stream-chat/channel_list.png'; +import messageInput from '../assets/basics/hello-stream-chat/message_input.png'; +import messageList from '../assets/basics/hello-stream-chat/message_list.png'; +import summary from '../assets/basics/hello-stream-chat/summary.png'; +import thread from '../assets/basics/hello-stream-chat/thread.png'; + +Adding feature rich chat to a React Native application can be quite challenging when starting from scratch. +There are many considerations, states, and edge cases that need accounting for, styling, message grouping, read states, context menus, etc. all add to the complexity of the challenge. +Stream Chat for React Native provides an easy to implement flexible solution. + +Stream Chat for React Native provides a way to add chat to an existing or new application with very little code. +The library was built with flexibility and customization in mind, starting with the out of the box form and function one would expect from a chat app you can modify the UI and UX as desired. + +Before starting make sure you have installed `stream-chat-react-native` as directed in the [getting started](/chat/docs/sdk/reactnative) guide. + +## Creating a Chat Client + +Stream Chat for React Native uses [`stream-chat`](https://github.com/GetStream/stream-chat-js), Stream's JavaScript client, to interact with Stream's chat services. +`stream-chat` is a dependency of Stream Chat for React Native so it is can be used once `stream-chat-react-native` is installed. + +To start, you can sign up for a [Free subscription](https://getstream.io/chat/pricing/) and then get your API key. + +```ts +import { StreamChat } from 'stream-chat'; + +const client = StreamChat.getInstance('api_key'); +``` + +There are multiple ways to access the client throughout your application. You can store the client in a [`context`](https://reactjs.org/docs/context.html). +Create your own class. Or using the Singleton structure you can call `getInstance` when required. + +## Connecting a User + +Tokens are used to authenticate a user. +Typically, you send this token from your backend to the client when a user registers or logs in. +See the [Tokens & Authentication](https://getstream.io/chat/docs/javascript/tokens_and_authentication/) documentation to learn more about creating tokens. +You can use a [developer token](https://getstream.io/chat/docs/javascript/tokens_and_authentication/?language=javascript#developer-tokens) if desired, but for the purpose of this guide it will be assumed you have created and retrieved a `user_token`. + +To connect a user the `connectUser` function should be called and provided with the user object and `user_token`. +Connecting a user could be done in the login flow or elsewhere in the application after the client is instantiated. + +```ts +await client.connectUser( + { + id: 'jlahey', + name: 'Jim Lahey', + image: 'https://i.imgur.com/fR9Jz14.png', + }, + 'user_token', +); +``` + +It is recommended to not repeatedly call `connectUser` unnecessarily, multiple calls to `connectUser` will result in warnings, and attempting to call `connectUser` before disconnecting a current user will throw an Error. + +To disconnect a user you can call `disconnectUser` on the client. + +```ts +await client.disconnectUser(); +``` + +## Creating a Channel + +Channels are at the core of Stream Chat, they are where messages are contained, sent, and interacted with. +Before delving into the UI components a channel is needed that can be displayed. +Let’s start by initializing one. + +A [channel type](https://getstream.io/chat/docs/javascript/creating_channels#channel-data) is required for creating a channel and controls the settings for a given channel. +There are 5 default types of channels. + +- `commerce` +- `gaming` +- `livestream` +- `messaging` +- `team` + +These five options provide you with sensible defaults for the named use cases. +You can also define custom channel types if Stream Chat defaults don’t work for your use case. + +A channel must be initialized with either an `id` or a list of members for the channel. +If you provide a list of members an `id` will be auto-generated on backend for the channel. + +:::note + +You can't add or remove members from channel created using a list of members. + +::: + +You can also add additional custom data to a channel. +You can add as many custom fields as you desire as long as the total size of the custom fields object is _less than 5KB_. + +For the purpose of this guide you should create a `channel` as you see fit utilizing either a members list that includes your user's `id`, or a channel `id`. +**This can be done once, then the code removed** as this guide will not be covering on the fly channel creation. + + + + +```ts +/** + * Channel created using a channel id + */ +const channel = client.channel('messaging', 'the_park', { + name: 'The Park', +}); +``` + + + + +```ts +/** + * Channel created using a members list + */ +const channel = client.channel('messaging', { + members: ['jlahey', 'rlafleur'], + name: 'The Park', +}); +``` + + + + +To create this channel on the server you must call `create` on the new channel instance. + +```ts +await channel.create(); +``` + +:::note + +For on the fly channel creation you would instead call the `watch` function on the channel as this both creates the channel and subscribes the client to channel updates. + +::: + +## Configuring UI Components + +Now that you have a `client` instance, a user set, and a channel created on the server you can setup your project to use the UI components. + +All major `stream-chat-react-native` components rely on `contexts` to function properly. +The UI and functionality are heavily controlled by a number of components that contain [`Providers`](https://reactjs.org/docs/context.html#contextprovider) to give access to these `contexts`. + +### Overlay Provider + +The `OverlayProvider` is the highest level of the Stream Chat components. +The `OverlayProvider` allows users to interact with messages on long press above the underlying views, use the full screen image viewer, and use the `AttachmentPicker` as a keyboard-esk view. + +The `OverlayProvider` can be used with no props provided but there are a plethora of props for customizing the components in the overlay. + +For additional information on the `OverlayProvider` check the [OverlayProvider docs](../core-components/overlay-provider.mdx) for detailed usage instructions, including how to properly use the `OverlyProvider` with [React Navigation](https://reactnavigation.org/). + +```tsx +import { OverlayProvider } from 'stream-chat-react-native'; + +export const Screen = () => {/** App components */}; +``` + +### Chat + +`Chat` is the next level down of context component from `OverlyProvider` that is required for `stream-chat-react-native` to function as designed. +You can choose to wrap your entire application in `Chat` similar to what is required for the `OverlayProvider` or you can implement `Chat` at the screen level. +`Chat` has one required prop, `client`, which is the instance of `StreamChat` [you created](#creating-a-chat-client). + +For additional information on the `Chat` component check the [Chat component docs](../core-components/chat.mdx) for detailed usage instructions, including how to provide theming and translations to the app. + + + + +```tsx {8-10} +import { StreamChat } from 'stream-chat'; +import { Chat, OverlayProvider } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const App = () => ( + + {/** App components */} + +); +``` + + + + +```tsx +import { StreamChat } from 'stream-chat'; +import { Chat } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const Screen = () => {/** App components */}; +``` + +```tsx {6} +import { OverlayProvider } from 'stream-chat-react-native'; +import { Screen } from './Screen'; + +export const App = () => ( + + + +); +``` + + + + +## Channel List + +
+
+ +Stream Chat for React Native provides a `ChannelList` component out of the box for displaying a list of channels. +`ChannelList` can be used with no props and will return all of the channels the set user has access to. +To functionally use the `ChannelList` an `onSelect` prop should be provided. +The `onSelect` function is called with the selected `Channel` instance and can then be used to react to the user interaction, for example to store the `Channel` in state and navigate to the appropriate channel screen. + +For additional information on the `ChannelList` component check the [ChannelList component docs](../core-components/channel-list.mdx), these include instructions on how to filter and sort the `ChannelList`. + +The `ChannelList` should be implemented inside of the UI components [previously configured](#configuring-ui-components) to provide the appropriate `contexts`. +For the purpose of this guide the example implementation will continue to be given in a single component with the assumption that the client has already been instantiated, a user connected, and a channel the user has access to exists. + +
+ChannelList +
+ +```tsx {9} +import { StreamChat } from 'stream-chat'; +import { ChannelList, Chat, OverlayProvider } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const App = () => ( + + + + + +); +``` + +These three components in conjunction will provide a [`FlatList`](https://reactnative.dev/docs/flatlist) of all channels available to the connected user. + +## Channel + +When creating a chat screen it is required that the `Channel` component wrap the `stream-chat-react-native` components being used. +`Channel` provides multiple `contexts` to the enclosed components and allows for modification and replacement of many of the components. +Channel is the major entry point for modifying the look and feel of your chat application. + +For additional information on the `Channel` component, how to modify various features, adjusting for keyboard offsets, and more, check the [Channel component docs.](../core-components/channel.mdx) + +The `Channel` component does not require any props, but will not function as desired without the `channel` prop being provided. +The `channel` prop expects a `StreamChat` `Channel` instance. +This can be created [as you did previously](#creating-a-channel), pulled directly from the `client.activeChannels`, or conveniently stored when a channel is selected from the `ChannelList`. + +```tsx {8,13-19} +import React, { useState } from 'react'; +import { Channel as ChannelType, StreamChat } from 'stream-chat'; +import { ChannelList, Chat, OverlayProvider } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const App = () => { + const [channel, setChannel] = useState(); + + return ( + + + {channel ? {/** App components */} : } + + + ); +}; +``` + +### Message List + +
+
+ +The `Channel` component on it's own will not provide any UI. +For this additional components are required, most notably the `MessageList` component. +`MessageList` has no required props, and when used in concert with the `Channel` component should function properly out of the box. + +For additional information on the `MessageList` component, how to pass props to the underlying [`FlatList`](https://reactnative.dev/docs/flatlist), or use the `MessageList` for threads, check the [MessageList component docs.](../ui-components/message-list.mdx) + +
+MessageList +
+ +```tsx {15} +import React, { useState } from 'react'; +import { Channel as ChannelType, StreamChat } from 'stream-chat'; +import { ChannelList, Chat, OverlayProvider } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const App = () => { + const [channel, setChannel] = useState(); + + return ( + + + {channel ? ( + + + + ) : ( + + )} + + + ); +}; +``` + +### Message Input + +
+
+ +A chat app needs to be able to send messages, and for this Stream Chat for React Native provides a `MessageInput` component. +Similar to the `MessageList` component `MessageInput` has no required props. +Adding it to the app is as simple as rendering it below the `MessageList`. + +Be sure to set the `keyboardVerticalOffset` on `Channel` to the appropriate height based off any header spacing. +As there is currently no header the `keyboardVerticalOffset` can be set to `0`. + +For additional information on the `MessageInput` component, how to modify it using `context`, or designate it for thread use via the `threadList` prop, check the [MessageInput component docs.](../ui-components/message-input.mdx) + +
+MessageInput +
+ +```tsx {14,16} +import React, { useState } from 'react'; +import { Channel as ChannelType, StreamChat } from 'stream-chat'; +import { ChannelList, Chat, OverlayProvider } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const App = () => { + const [channel, setChannel] = useState(); + + return ( + + + {channel ? ( + + + + + ) : ( + + )} + + + ); +}; +``` + +This small code snippet is enough to render a list of channels and swap them out for a functional and feature rich message list and input when one is selected. + +### Thread + +
+
+ +There is one more high level component that Stream Chat for React Native provides out of the box, and that is `Thread`. +Stream Chat supports threaded messages, and the `MessageList` supplies a UI for threads out of the box. +But as a thread on a mobile messaging app generally exists in a separate screen it is up to you to handle thread selection and subsequent navigation in your implementation. +`Thread` has no required props as it relies heavily on `context` to function. +The simple code snippet can be extended to include `Thread` and keep track of a `thread` state similarly to `channel` by utilizing the `onThreadSelect` prop on the `MessageList`. +The code snippet now has a fully functional `ChannelList`, `MessageList`, and `threadList`, although currently it provides no way to _back_ out of the sudo-navigation. + +For additional information on the `Thread` component, such as how to use `onThreadDismount` to manage your `thread` state, check the [Thread component docs.](../ui-components/thread.mdx) + +
+Thread +
+ +```tsx {9,15-24} +import React, { useState } from 'react'; +import { Channel as ChannelType, StreamChat } from 'stream-chat'; +import { ChannelList, Chat, MessageType, OverlayProvider } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const App = () => { + const [channel, setChannel] = useState(); + const [thread, setThread] = useState(); + + return ( + + + {channel ? ( + + {thread ? ( + + ) : ( + <> + + + + )} + + ) : ( + + )} + + + ); +}; +``` + +## Summary + +- You need a `client` that is an instance of `StreamChat` to provide to the UI components so they function correctly. + +- You need to connect a user via the `connectUser` call to interact with the backend properly. + To do this you need to create tokens as per the [Tokens & Authentication](https://getstream.io/chat/docs/javascript/tokens_and_authentication/) docs. + +- You need to surround your app with the `OverlayProvider` for the UI to function properly, and your app or chat screen with the `Chat` component to provide data to the UI components. + +- `ChannelList` provides access to the list of available channels in the UI, and using props, can be queried, filtered, and sorted as desired. + `ChannelList` also provides convenient functionality for implementing navigation to a selected `Channel`. + +- The `Channel` component is the functional wrapper of the `MessageList`, `MessageInput`, and `Thread` components. + It is the access point for the majority of the customization of the SDK, and controls much of the functionality. + +### Hello Stream Chat + +
+
+ +Putting everything covered together into a single functional component most of the Stream Chat for React Native SDK can be tested with a few additional setup. + +The final sample code: + +- Adds a `useEffect` to connect the user on mount and render the UI when ready. +- Adds a `back` button for sudo-navigation by resetting the states of `thread` and `channel` when appropriate. +- Adds a `View` around the `Chat` component with style `flex: 1` to allow `Chat` to adjust for the `back` button height, and an empty `Thread` component to layout properly. +- Adjusts the `topInset` and `keyboardVerticalOffset` to account for the `back` button height. + +These additions result in a small but functional chat sample app. + +
+Summary +
+ +```tsx +import React, { useEffect, useState } from 'react'; +import { View, TouchableOpacity, Text } from 'react-native'; +import { Channel as ChannelType, StreamChat } from 'stream-chat'; +import { + Channel, + ChannelList, + Chat, + MessageInput, + MessageList, + MessageType, + OverlayProvider, + Thread, +} from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); + +export const App = () => { + const [channel, setChannel] = useState(); + const [clientReady, setClientReady] = useState(false); + const [thread, setThread] = useState(); + + useEffect(() => { + const setupClient = async () => { + try { + await client.connectUser( + { + id: 'jlahey', + name: 'Jim Lahey', + image: 'https://i.imgur.com/fR9Jz14.png', + }, + 'user_token', + ); + setClientReady(true); + } catch (e) { + console.log(e); + } + }; + + setupClient(); + }, []); + + const onBackPress = () => { + if (thread) { + setThread(undefined); + } else if (channel) { + setChannel(undefined); + } + }; + + if (!clientReady) return null; + + return ( + + + {channel && Back} + + + + {channel ? ( + + {thread ? ( + + ) : ( + <> + + + + )} + + ) : ( + + )} + + + + ); +}; +``` diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/installation.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/installation.mdx new file mode 100644 index 0000000000..3fab594bdd --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/installation.mdx @@ -0,0 +1,350 @@ +--- +id: installation +title: Installation +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +Installation and usage of our Stream Chat React Native SDK is simple and involves the following steps: + +### Prerequisites + +First things first, make sure you have set up the development environment for React Native. You can find the official guide [here](https://reactnative.dev/docs/environment-setup). + +For Expo, you can follow [this guide](https://docs.expo.dev/get-started/installation/). + +### Add Stream's Chat SDK and its peer dependencies + +In order to install the Stream Chat React Native SDK, run the following command in your terminal of choice: + + + + +```bash title="Terminal" +yarn add stream-chat-react-native +``` + + + + +```bash title="Terminal" +npx expo install stream-chat-expo +``` + + + + + +Stream Chat React Native SDK requires installing some peer dependencies to provide you with a great chat experience. You can run the following command to install them: + + + + +```bash title="Terminal" +yarn add @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-fs react-native-gesture-handler react-native-image-resizer react-native-reanimated react-native-svg +``` + + + + + +```bash title="Terminal" +npx expo install @stream-io/flat-list-mvcp @react-native-community/netinfo expo-file-system expo-image-manipulator react-native-gesture-handler react-native-reanimated react-native-svg +``` + + + + +So what did we install precisely? + + + + +- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery. +- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support. +- [`react-native-fs`](https://github.com/itinance/react-native-fs) to perform file operations like save, delete, etc. +- [`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK. +- [`react-native-image-resizer`](https://github.com/bamlab/react-native-image-resizer) to compress image uploads. +- [`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads. +- [`react-native-svg`](https://github.com/react-native-svg/react-native-svg) for SVG support. + + + + +- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery. +- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support. +- [`expo-file-system`](https://docs.expo.dev/versions/latest/sdk/filesystem/) to perform file operations like save, delete, etc. +- [`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK. +- [`expo-image-manipulator`](https://docs.expo.dev/versions/latest/sdk/imagemanipulator/) to compress image uploads. +- [`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads. +- [`react-native-svg`](https://docs.expo.dev/versions/latest/sdk/svg/) for SVG support. + + + + +### Optional Dependencies + +:::note +Starting from `v5.35.0` the `react-native-image-crop-picker` and `expo-image-picker` is no longer a required dependency. You can use it if you want to capture images to attach them in the message else feel free to uninstall it. +::: + +There are a few optional dependencies that can be added to have more features within the SDK. + + + + +- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery. +- [`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker) to capture images to attach them in the message. +- [`react-native-video`](https://github.com/react-native-video/react-native-video) for Video and Audio playback support. +- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) for Audio recording and async audio messages support. +- [`react-native-share`](https://github.com/react-native-share/react-native-share) for Attachment sharing support. +- [`react-native-haptic-feedback`](https://github.com/junina-de/react-native-haptic-feedback) for user haptics feedback. +- [`@react-native-clipboard/clipboard`](https://github.com/react-native-clipboard/clipboard) for Copy message support. +- [`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker) to access device media files. +- [`react-native-quick-sqlite`](https://github.com/margelo/react-native-quick-sqlite) to enable Offline support in the app. +- [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) to use native photo picker. + + + + +- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/) for Video and Audio playback, recording and async audio messages support. +- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery. +- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to capture images to attach them in the message. +- [`expo-sharing`](https://docs.expo.dev/versions/latest/sdk/sharing/) for Attachments sharing support. +- [`expo-haptics`](https://docs.expo.dev/versions/latest/sdk/haptics/) for user haptics support. +- [`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) for Copy message support. +- [`expo-document-picker`](https://docs.expo.dev/versions/latest/sdk/document-picker/) to access device media files. +- [`react-native-quick-sqlite`](https://github.com/margelo/react-native-quick-sqlite) to enable Offline support in the app. + + + + +:::note +Please follow along the linked documentation of each optional dependencies so as to support them correctly in your application. +::: + +### Configuring permissions + +Some dependencies(if you are using them on your application), require you to add additional permissions to the `Info.plist` file in iOS and `AndroidManifest.xml` file in Android. Please follow the steps mentioned in the links below for corresponding dependencies: + + + + +- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll?tab=readme-ov-file#permissions) for gallery/photo library access. +- [`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker?tab=readme-ov-file#step-3) for camera access. +- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player?tab=readme-ov-file#post-installation) for microphone access for voice recording. + +An example `AndroidManifest.xml` would look like this with permissions: + +```xml + + + + + + +``` + +An example `Info.plist` would look like this with permissions: + +```xml +NSPhotoLibraryUsageDescription +$(PRODUCT_NAME) would like access to your photo gallery to share image in a message. +NSPhotoLibraryAddUsageDescription +$(PRODUCT_NAME) would like to save photos to your photo gallery after downloading from a message. +NSCameraUsageDescription +$(PRODUCT_NAME) would like to use your camera to share image in a message. +NSMicrophoneUsageDescription +$(PRODUCT_NAME) would like to use your microphone for voice recording. +``` + + + + +- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/#configurable-properties) for gallery/photo library access. +- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/#configuration-in-appjsonappconfigjs) for camera access. +- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/#configuration-in-appjsonappconfigjs) for microphone access for voice recording. + +An example `app.json` config for expo would look like this to add permissions to the `Info.plist` on iOS, using the config plugins: + +```json +{ + "expo": { + "plugins": [ + [ + "expo-media-library", + { + "photosPermission": "$(PRODUCT_NAME) would like access to your photo gallery to share image in a message.", + "savePhotosPermission": "$(PRODUCT_NAME) would like to save photos to your photo gallery after downloading from a message." + } + ], + [ + "expo-image-picker", + { + "cameraPermission": "$(PRODUCT_NAME) would like to use your camera to share image in a message." + } + ], + [ + "expo-av", + { + "microphonePermission": "$(PRODUCT_NAME) would like to use your microphone for voice recording." + } + ] + ] + } +} +``` + +For Android on Expo, most of the most permissions are added automatically by libraries that you use in your app either with config plugins or with a package-level `AndroidManifest.xml`. Read more [here](https://docs.expo.dev/guides/permissions/#android). + + + + +### Additional Steps + +Some dependencies require us to make changes to our application for all functionalities to be available. + +The most important steps to get started are: + +- Add the Babel plugin for [`react-native-reanimated`](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/#installation#babel-plugin) to your `babel.config.js` file in your application folder: + +```js +module.exports = { + presets: [ + ... // don't add it here :) + ], + plugins: [ + ... + // highlight-next-line + 'react-native-reanimated/plugin', + ], +}; +``` + +:::caution +`react-native-reanimated/plugin` has to be listed last. +::: + +- After installation, wrap your entry point with `` or `gestureHandlerRootHOC`: + +```js +import { GestureHandlerRootView } from 'react-native-gesture-handler'; + +export default function App() { + return {/* content */}; +} +``` + +:::note +The entry point of your app exists usually either in `index.js` or `App.tsx` file. In case of navigation with Expo Router v3.x, the entry point is inside `app/_layout.js`. +::: + +Please also follow the steps mentioned in the links below for corresponding dependencies: + +- `react-native` - [additional installation steps](https://reactnative.dev/docs/image#gif-and-webp-support-on-android) +- `react-native-image-crop-picker` - [additional installation steps](https://github.com/ivpusic/react-native-image-crop-picker#step-3) +- `@react-native-camera-roll/camera-roll` - [additional installation steps](https://github.com/react-native-cameraroll/react-native-cameraroll#permissions) + +Now you should be able to run the app on simulator by running following command: + + + + + + + +```bash title="Terminal" +npx pod-install +yarn ios +``` + + + + + +```bash title="Terminal" +yarn android +``` + + + + + + + + + + +```bash title="Terminal" +yarn ios +``` + + + + + +```bash title="Terminal" +yarn android +``` + + + + + + diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/internationalization.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/internationalization.mdx new file mode 100644 index 0000000000..0f3d41b192 --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/internationalization.mdx @@ -0,0 +1,429 @@ +--- +id: translations +title: Internationalization +--- + +# Adding Internationalization (i18n) + +If you deploy your app to users who speak another language, you'll need to internationalize it. Stream’s Chat Client provides the option to translate the user-created contents of messages in addition to the UI. The React Native SDK's UI Components are available in multiple languages out-of-the-box. At the moment we support the following languages (and more will be added in the future): + +- [English (en)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/en.json) +- [Spanish (es)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/es.json) +- [French (fr)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/fr.json) +- [Hebrew (he)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/he.json) +- [Hindi (hi)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/hi.json) +- [Italian (it)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/it.json) +- [Japanese (ja)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/ja.json) +- [Korean (ko)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/ko.json) +- [Dutch (nl)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/nl.json) +- [Russian (ru)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/ru.json) +- [Turkish (tr)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/tr.json) +- [Brazilian Portuguese (pt-BR)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/pt-BR.json) + +## Usage + +The `Streami18n` provides static translations for React Native components from the Stream Chat SDK. `Streami18n` is a class that uses a configuration of [i18next](https://www.i18next.com/) with a subset of the functionality exposed. `Streami18n` is provided by `stream-chat-react-native` and can be imported from the library. + +The only step you need to start using `Streami18n` is to create an instance of the class. + +```tsx +const streami18n = new Streami18n(); +``` + +`Streami18n` will default to English (en). If you choose to use the default English settings with Day.js you do not need to deal directly with an instance of `Streami18n`, this is taken care of for you. + +If you choose to change the language, translation, or date handling, you will need to provide your modified instance of `Streami18n` to the component library. Two components require your custom instance of `Streami18n` to properly pass your translation and time-date functions to the component library, `OverlayProvider` and `Chat`. Both components accept an instance of `Streami18n` via the prop `i18nInstance`. Providing this prop will provide your instance of `Streami18n` to all of the components via [`context`](https://react.dev/reference/react/createContext) instead of the default instance. + +```tsx +import { StreamChat }from 'stream-chat'; +import { Chat, OverlayProvider, Streami18n }from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); +const streami18n =new Streami18n(); + +exportconst App = () => ( + + + {/** App components */} + + +); +``` + +### Setting language for components + +Stream provides built in translations for some languages out-of-the-box. `Streami18n` accepts two optional parameters when being instantiated, [`options`](#options) and [`i18nextConfig`](#i18nextconfig). These parameters allow you to modify the `Streami18n` instance to your preferences. + +As an example, let's say we need to localize the UI of the application for a Dutch audience: + +```tsx +const streami18n = new Streami18n({ language: 'nl' }); // Instantiate Streami18n with Dutch strings. +``` + +Alternatively, you can also use [`setLanguage`](https://getstream.io/chat/docs/sdk/reactnative/basics/translations/#setlanguage) method on `Streami18n` class. This is useful especially if you want to build language toggle functionality within your app. + +For example, let's say an application needs to default to English but support French: + +```tsx +const streami18n = new Streami18n(); + +... +// Logic for how a user can change the language +... + +streami18n.setLanguage('fr');// The UI will change to French. +``` + +### Adding a new language + +Let's see how you can add support for additional languages in the SDK. As an example, we'll implement a custom Polish language translation: + +```tsx +const streami18n = new Streami18n(); +streami18n.registerTranslation('pl', { + 'Copy Message': 'Kopiuj wiadomość', + 'Delete Message': 'Usuń wiadomość', + '{{ firstUser }} and {{ secondUser }} are typing...': '{{ firstUser }} i {{ secondUser }} piszą...', +}); +``` + +Please take a look at all the available texts [here](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/en.json). + +### Overriding existing languages + +You can also make line item changes to the strings for existing UI components. This is useful if you want to tweak an existing language to use regional spelling variants (American English vs. UK English, for example) same process as [Adding a new language](#adding-a-new-language). As an example, we'll override the translations for Dutch language: + +```tsx +const streami18n = new Streami18n(); + +streami18n.registerTranslation('nl', { + 'Delete Message': 'Verwijder bericht', +}); +``` + +### Using device locale to set language + +[`react-native-localize`](https://github.com/zoontek/react-native-localize#-react-native-localize) package provides a toolbox for React Native app localization. You can use this package to access user preferred locale, and use it to set language for chat components: + +```tsx +import * as RNLocalize from 'react-native-localize'; +const streami18n = new Streami18n(); + +const userPreferredLocales = RNLocalize.getLocales(); + +streami18n.setLanguage(userPreferredLocales[0].languageCode); +``` + +### Overriding DateTime format + +React Native SDK uses [Day.js](https://day.js.org/en/) internally by default to format DateTime stamp. Day.js is a lightweight alternative to Moment.js with the same modern API and has [locale support](https://day.js.org/docs/en/i18n/i18n) as well. + +Day.js provides locale config for plenty of languages, you can check the whole list of locale configs [here](https://github.com/iamkun/dayjs/tree/dev/src/locale). + +You can either provide the Day.js locale config while registering language with `Streami18n` (either via constructor or `registerTranslation()`) or you can provide your own Day.js or Moment.js instance to Streami18n constructor, which will be then used internally (using the language locale) in components. + +```tsx +const i18n =new Streami18n({ + language: 'nl', + dayjsLocaleConfigForLanguage: { + months: [...], + monthsShort: [...], + calendar: { + sameDay: '...' + } + } +}); +``` + +You can add locale config for moment while registering translation via `registerTranslation` function: + +```tsx +const i18n =new Streami18n(); + +i18n.registerTranslation( + 'mr', + { + 'Nothing yet...': 'काहीही नाही ...', + '{{ firstUser }} and {{ secondUser }} are typing...': + '{{ firstUser }} आणि {{ secondUser }} टीपी करत आहेत ', + }, + { + months: [...], + monthsShort: [...], + calendar: { + sameDay: '...' + } + } +); +``` + +Alternatively, you can use a utility library to handle DateTime by providing your own [`Moment`](https://momentjs.com/) object: + +```tsx +import 'moment/locale/nl'; +import 'moment/locale/it'; +// or if you want to include all locales +import 'moment/min/locales'; + +import Moment from moment; + +const i18n =new Streami18n({ + language: 'nl', + DateTimeParser: Moment, +}); +``` + +Or by providing your own [Day.js](https://day.js.org/docs/en/installation/installation) object: + +```tsx +import Dayjs from 'dayjs'; + +import 'dayjs/locale/nl'; +import 'dayjs/locale/it'; +// or if you want to include all locales +import 'dayjs/min/locales'; + +const i18n = new Streami18n({ + language: 'nl', + DateTimeParser: Dayjs, +}); +``` + +If you would like to stick with English language for date-times in Stream components, you can set `disableDateTimeTranslations` to true. + +### Translating messages + +If your application has a user-base that speaks more than one language, Stream's Chat Client provides the option to automatically translate messages. For more information on using automatic machine translation for messages, see the [Chat Client Guide on Translation](https://getstream.io/chat/docs/react-native/translation/?language=javascript). + +### Timezone location + +To display date and time in different than machine's local timezone, you can provide the timezone parameter to the `Streami18n` constructor. The timezone value has to be a valid [timezone identifier string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If no timezone parameter is provided, then the machine's local timezone is applied. + +:::note +On our React Native SDK, the timezone is only supported through `moment-timezone` and not through the default `Dayjs`. This is because of the [following issue](https://github.com/iamkun/dayjs/issues/1377). + +So, to ensure this please pass the `moment-timezone` object to the `DateTimeParser` key of the `Streami18n` constructor. +::: + +```tsx +import { Streami18n } from 'stream-chat-react'; +import momentTimezone from 'moment-timezone'; + +const streami18n = new Streami18n({ + DateTimeParser: momentTimezone, + timezone: 'Europe/Budapest', +}); +``` + +Moment Timezone will automatically load and extend the moment module, then return the modified instance. This will also prevent multiple versions of moment being installed in a project. + +## Options + +`options` are the first optional parameter passed to `Streami18n`, it is an object with all keys being optional. + +### DateTimeParser + +Used for translating dates and times into the desired local format. Either [Day.js](https://day.js.org/) or [Moment](https://momentjs.com/) can be used. Day.js is a dependency of the repository and used by default. + +| TYPE | DEFAULT | +| ------ | ------- | ----- | +| Dayjs  |  Moment | Dayjs | + +### dayjsLocaleConfigForLanguage + +You can [customize and create](https://day.js.org/docs/en/customization/customization) new locales using Day.js. To allow accessibility to this option when using the default Day.js instance you can pass these customizations via the `dayjsLocaleConfigForLanguage` key. + +| Type | +| ------ | +| Object | + +### debug + +Enable [debug mode](https://www.i18next.com/overview/configuration-options#logging) in internal i18next instance. + +| TYPE | DEFAULT | +| ------- | ------- | +| Boolean | false | + +### disableDateTimeTranslations + +Use the default English language date-times instead of those dictated by the language set. + +| TYPE | DEFAULT | +| ------- | ------- | +| Boolean | false | + +### language + +Language code for language to be used. The following options are available: + +- English (`en`) +- Spanish (`es`) +- French (`fr`) +- Hebrew (`he`) +- Hindi (`hi`) +- Italian (`it`) +- Japanese (`ja`) +- Korean (`ko`) +- Dutch (`nl`) +- Russian (`ru`) +- Turkish (`tr`) + +| TYPE | DEFAULT | +| ------ | ------- | +| String | `en` | + +### logger + +Function to log warnings & errors from `Streami18n`. + +| TYPE | DEFAULT | +| ---------------------- | ------------ | +| (msg?: string) => void | console.warn | + +### translationsForLanguage + +Allows you to override the provided translations for given keys. + +``` +const streami18n =new Streami18n({ + language: 'nl', + translationsForLanguage: { + 'Nothing yet...': 'Nog Niet...', + '{{ firstUser }} and {{ secondUser }} are typing...': '{{ firstUser }} en {{ secondUser }} zijn aan het typen...', + }, +}); +``` + +| Type | +| ------ | +| Object | + +## I18NextConfig + +`i18NextConfig` is the second optional parameter passed to `Streami18n`, it is an object with all keys being optional. `i18nextConfig` is used in the instantiation of the i18next instance and mostly aligns with the [i18next options](https://www.i18next.com/translation-function/essentials#overview-options). + +### debug + +Enable [debug mode](https://www.i18next.com/overview/configuration-options#logging) in internal i18next instance. This overrides the [`debug key on options`](https://getstream.io/chat/docs/sdk/reactnative/basics/translations/#debug) if provided. + +| Type | +| ------- | +| Boolean | + +### `fallbackLng` + +Fallback language setting for i18next. + +| Type | +| --------------------------------------------------------------------- | +| [`FallbackLng`](https://www.i18next.com/principles/fallback#fallback) | + +### `interpolation` + +i18next interpolation setting for integrating dynamic values into translations. + +| TYPE | DEFAULT | +| ---------------------------------------------------------------------------------- | ------------------------ | +| [Object](https://www.i18next.com/translation-function/interpolation#interpolation) | `{ escapeValue: false }` | + +### `keySeparator` + +Override character to separate keys. + +| TYPE | DEFAULT | +| ----------------- | ------- | +| String \| Boolean | false | + +### `lng` + +Override language to use. + +| Type | +| ------ | +| String | + +### `nsSeparator` + +Override character to split namespace from key. + +| TYPE | DEFAULT | +| ----------------- | ------- | +| String \| boolean | false | + +### `parseMissingKeyHandler` + +Function to handle keys missing translations for the selected language. + +| TYPE | DEFAULT | +| ------------------------- | ------------ | +| `(key: string) => string` | (key) => key | + +## Methods + +### `getAvailableLanguages` + +Returns an array of language code strings corresponding to available languages. + +``` +const availableLanguages = streami18n.getAvailableLanguages(); +``` + +### `geti18Instance` + +Returns instance of i18next used within the `Streami18n` instance. + +``` +const i18n = streami18n.geti18Instance(); +``` + +### `getTranslations` + +Returns the current translations dictionaries for all languages. + +``` +const translations = streami18n.getTranslations(); +``` + +### `getTranslators` + +Asynchronous function that returns the current translator functions. + +``` +const { t, tDateTimeParser } =await streami18n.getTranslators(); +``` + +### `registerTranslation` + +Allows you to register a custom translation, this will override a translation if one already exists for the given language code. The third parameter, which is optional, is a Day.js locale, which is structured the same as [dayjsLocaleConfigForLanguage](#dayjslocaleconfigforlanguage). + +It is suggested you look at the [`enTranslations.json file`](https://github.com/GetStream/stream-chat-react/blob/master/src/i18n/en.json) exported from `stream-chat-react-native` for a current list of used translation keys. + +``` +streami18n.registerTranslation('mr', { + 'Nothing yet...': 'काहीही नाही ...', + '{{ firstUser }} and {{ secondUser }} are typing...': '{{ firstUser }} आणि {{ secondUser }} टीपी करत आहेत', +}); +``` + +#### Parameters + +| NAME | TYPE | REQUIRED | +| ------------------- | ------ | -------- | +| `language` | String | ✔️ | +| `translation` | Object | ✔️ | +| `customDayjsLocale` | Object | | + +### `setLanguage` + +Asynchronous function that changes the current language and returns the new translation function. If not initialized `undefined` will be returned. If the language fails to update the current translation function will be returned. + +``` +const t = await streami18n.setLanguage('nl'); +``` + +#### Parameters + +| NAME | TYPE | REQUIRED | +| ---------- | ------ | -------- | +| `language` | String | ✔️ | diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/limitations.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/limitations.mdx new file mode 100644 index 0000000000..81a829c205 --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/limitations.mdx @@ -0,0 +1,31 @@ +--- +id: limitations +sidebar_position: 7 +title: Limitations +--- + +Stream Chat for React Native allows for a vast a amount of customization. +The theme, components, and functionality can almost all be modified or replaced. +But it is important to remember **not all use cases are supported out of the box**. + +## Customizations + +For some use cases you will have to replace our components with ones you create yourself. +Custom UI components are mostly provided as props on the `Channel` component and propagated throughout the UI via context. +Some many need to be provided to other components such as `OverlayProvider` or `MessageList`, but `Channel` is the most common entry point for customizations. + +Most components when rendered receive very few props, instead the components operate independently of props by utilizing contexts themselves. +When creating a custom component we strongly suggest you look at the source code on GitHub for the component you are replacing. +This will not only give you a better idea of what contexts we are using to achieve the current UI, but also insight into any internal logic that may be taking place in the component that you may want to maintain. + +We use custom memoization equality checks on many components to limit unnecessary re-renders, replicating these memoization checks to fit the needs of your custom component will help in maintaining performance. +This is particularly important inside of messages as many are rendered in a single message list, a change that triggers a re-render across all messages will be computationally expensive. + +## Platforms + +It is important to remember that when using React Native that there may be platform specific differences as the platform specific SDKs are being utilized. +If you are using [Expo](https://expo.io/) there may be even more differences. +We highly suggest you test on both platforms to ensure you are seeing consistent results. + +Libraries such as [React Native Gesture Handler](https://docs.swmansion.com/react-native-gesture-handler/docs/), which we make use of, often function slightly differently on iOS and Android. +If you are creating customizations that may overlap with React Native Gesture Handler usage you should once again look at the source code on GitHub for the component you are replacing to see if you need platform specific code. diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/migrating-from-4.x-to-5.x.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/migrating-from-4.x-to-5.x.mdx new file mode 100644 index 0000000000..24d27831b5 --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/migrating-from-4.x-to-5.x.mdx @@ -0,0 +1,38 @@ +--- +id: upgrading-from-v4 +title: Migration from 4.x to 5.x +--- + +This guide highlights the changes introduced from v4 to v5. + +## Prop or Context Changes + +The following values in [`ImageGalleryContext`](https://getstream.io/chat/docs/sdk/reactnative/contexts/image-gallery-context/#value) have been renamed: + +- `image` -> `selectedMessage` +- `setImage` -> `setSelectedMessage` +- `images` -> `messages` +- `setImages` -> `setMessages` + +## Remove stream-chat dependency (when applicable) + +If you have installed `stream-chat` dependency explicitly on your application, then please make sure you remove it. Our Chat SDK (`stream-chat-react-native`) has `stream-chat` as a dependency (not peer dependency). Therefore, having `stream-chat` in your app's package.json is discouraged and will probably cause random issues that will disturb the chat functionalities. + +```bash +yarn remove stream-chat +``` + +- Replace [`@react-native-community/cameraroll`](https://github.com/react-native-cameraroll/react-native-cameraroll) dependency with [`@react-native-camera-roll/camera-roll`](https://www.npmjs.com/package/@react-native-camera-roll/camera-roll): + +```bash +yarn remove @react-native-community/cameraroll +yarn add @react-native-camera-roll/camera-roll +``` + +## Unique Chat Component Instance + +Until v4, you could provide a separate `Chat` component for each usage of `Channel` component or `ChannelList` component. But from v5, you must provide only one instance of the `Chat` component within your application. This component needs to be a parent for all the chat-related components such as `ChannelList`, `Channel` or `Thread`. + +## Enable Offline Support + +To enable offline support please check the [Offline Support](../basics/migrating-from-4.x-to-5.x.mdx) guide. diff --git a/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/navigation.mdx b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/navigation.mdx new file mode 100644 index 0000000000..2afba8ce58 --- /dev/null +++ b/docusaurus/reactnative_versioned_docs/version-5.x.x/basics/navigation.mdx @@ -0,0 +1,221 @@ +--- +id: stream_chat_with_navigation +title: Navigation +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +Stream Chat for React Native provides many features out of the box that require positioning the components on the screen in a certain manner to get the desired UI. + +The `AttachmentPicker`, `ImageGallery`, and `MessageOverlay`, all need to be rendered in front of other components to have the desired effect. All of these elements are controlled by the `OverlayProvider`. When used together with navigation, certain steps are needed to be taken to make these components appear fluently. + +The guidance provided makes the assumption you are using [React Navigation](https://reactnavigation.org/) in your app in conjunction with [`createStackNavigator`](https://reactnavigation.org/docs/stack-navigator/). + +:::note +**If you are using another navigation solution, or utilizing [`createNativeStackNavigator`](https://reactnavigation.org/docs/native-stack-navigator/), other considerations will need to be taken depending on your navigation arrangement.** + +The `createNativeStackNavigator` uses the native APIs `UINavigationController` on iOS and `Fragment` on Android. The `OverlayProvider` needs to exist in a view that can render content in front of the chat screen. Therefore, using a `fullScreenModal` with `createNativeStackNavigator`, which uses `UIModalPresentationFullScreen` on iOS and `modal` on Android, to render your chat screen will leave the `OverlayProvider` rendered behind the chat. If you are having issues, we suggest you get in touch with support, and we can find a solution to your specific navigation arrangement. +::: + +## Navigation Container + +The [`NavigationContainer`](https://reactnavigation.org/docs/navigation-container/) manages the apps state in React Navigation. Nested navigators and screens all exist within the container. To ensure the `OverlayProvider` can render content above all of these screens, headers, tab-bars, etc. the `OverlayProvider` must be rendered around them. + +The `Chat` component should ideally surround the entire application. You can choose whatever suits your needs best, theming, connection handling, and translations are all handled out of the box in the `Chat` component; and this may be a consideration in where in the app you want this component to be rendered. + +:::note +Having it higher in the *stack* helps to ensure it is not unmounted at times when a connection is present. If `Chat` is unmounted with a connection present you may have to implement some connection handling functions yourself to ensure you reconnect when the app is, for instance, reopened from the background. The WebSocket connection closes on it's own approximately 15 seconds after the app is put into background. Not handling the connection on [`appState`](https://reactnative.dev/docs/appstate) changes will also affect **[how Stream Chat handles Push Notifications](https://getstream.io/chat/docs/sdk/reactnative/guides/push-notifications-v2/)**. +::: + +```tsx +import React from 'react'; +import { NavigationContainer } from '@react-navigation/native'; +import { createStackNavigator } from '@react-navigation/stack'; +import { Chat, OverlayProvider } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); +const Stack = createStackNavigator<{ home: undefined }>(); + +export const App = () => + + + // highlight-next-line + + + {/** App components */})} name='home' /> + + // highlight-next-line + + + ; +``` + +## Keyboard + +The `Channel` component contains a `KeyboardCompatibleView` that, like [the standard React Native `KeyboardAvoidingView`](https://reactnative.dev/docs/keyboardavoidingview), needs a `keyboardVerticalOffset` to account for distance between the top of the user screen and the react native view. This height in most cases with React Navigation in conjunction with Stream Chat is the header height of React Navigation. This can be accessed from React Navigation using the `useHeaderHeight` hook from `@react-navigation/stack`, and given as a prop to `Channel`. + +```tsx +const headerHeight = useHeaderHeight(); + +const App = () => { + return {/* other components inside */}; +}; +``` + +## Attachment Picker + +The `AttachmentPicker` is a keyboard-esk view that allows a user to attach photos and files. Part of the construction of the `AttachmentPicker` is a bottom-sheet provided by the `OverlayProvider`. This bottom-sheet provides a grid of images in a scroll-able list that can be lifted up to make selecting images easier. The placement of the `AttachmentPicker` is dependent on two values, the `bottomInset` and the `topInset`. + +### Top Inset + +The `topInset` is used to determine how high the scroll-able bottom-sheet can go when opened. `topInset` defaults to 0 and covers the entire screen, or it can be set to the [top safe area inset](https://reactnavigation.org/docs/handling-safe-area/#use-the-hook-for-more-control) if desired. The most common choice when using React Navigation is to get the header height using the `useHeaderHeight` hook from `@react-navigation/stack` and set the top inset to the given height for a nice visual result where the picker opens to the header. + +```tsx +const headerHeight = useHeaderHeight(); +const { setTopInset } = useAttachmentPickerContext(); + +useEffect(() => { + setTopInset(headerHeight); +}, [headerHeight]); +``` + +:::note +The `topInset` can be set via props on the `OverlayProvider`, or set via the `setTopInset` function provided by the `useAttachmentPickerContext` hook. +::: + +### Bottom Inset + +The `bottomInset` is used to adjust the height of the `AttachmentPicker` menu to align properly with the bottom-sheet when open. This is the height between the bottom of the `MessageInput` container and the bottom of the screen. If you are displaying the chat screen without a tab-bar it is most likely the bottom inset is the [bottom safe area inset](https://reactnavigation.org/docs/handling-safe-area/#use-the-hook-for-more-control). If you are using a bottom tab-bar you can utilize the `useBottomTabBarHeight` hook from `@react-navigation/bottom-tabs` to get the appropriate height to use. + +```tsx +import React from 'react'; +import { NavigationContainer } from '@react-navigation/native'; +import { createStackNavigator } from '@react-navigation/stack'; +import { useSafeAreaInsets } from 'react-native-safe-area-context'; +import { Chat, OverlayProvider } from 'stream-chat-react-native'; + +const client = StreamChat.getInstance('api_key'); +const Stack = createStackNavigator<{ home: undefined }>(); + +export const Nav = () => { + // highlight-next-line + const { bottom } = useSafeAreaInsets(); + + return ( + + // highlight-next-line + + + + {/** App components */})} name='home' /> + + + // highlight-next-line + + + ); +}; +``` + +```tsx +import React from 'react'; +import { SafeAreaProvider } from 'react-native-safe-area-context'; +import { Nav } from './Nav'; + +export const App = () => ( + +