-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.js
1 lines (1 loc) · 57.8 KB
/
index.js
1
import{i as e,a as n,_ as r,b as i,C as o,c as a,E as c,A as u,d,e as l,u as h,f,g as v,h as g,U as m,j as _,P as b,k as y,l as w,m as k,n as I,S as T,L as N,o as A,p as M,V as z,q as j,r as x,v as W,s as V,t as Z,w as X,x as Y,y as $,z as ee,B as te,D as ne,F as re,G as ie,H as se,I as oe,J as ce,K as ue,M as de,W as le,N as he,O as fe,Q as pe,R as ve,T as ge,X as me,Y as _e,Z as be,$ as ye,a0 as we,a1 as ke,a2 as Ce,a3 as Se,a4 as Ie,a5 as Ee,a6 as Te,a7 as Pe,a8 as De}from"./lib/__bundle-558e2a0e.js";export{a9 as AppInfo,ab as CachedChannelInfo,ac as CachedDataClearOrder,C as ChannelType,aa as CollectionEventSource,s as ConnectionState,a5 as DeviceOsPlatform,ad as LastMessageThreadingPolicy,L as LocalCacheConfig,ae as NotificationInfo,a8 as PushTemplate,a3 as PushTokenRegistrationState,P as PushTokenType,a7 as PushTriggerOption,af as ReportCategoryInfo,ag as Role,S as SendbirdChatOptions,t as SendbirdError,D as SendbirdErrorCode,al as SendbirdPlatform,ak as SendbirdProduct,ah as UIKitConfigInfo,ai as UnreadCountThreadingPolicy,U as User,aj as UserOnlineState}from"./lib/__bundle-558e2a0e.js";import{L as Ue,N as Oe,a as Ne,b as Ae,c as Me,g as Le,M as Re,d as ze,e as Qe,f as je,h as Fe,i as xe,j as qe,k as Ke,l as He,m as We,n as Ge,o as Be,p as Ve,q as Je,r as Ze,A as Xe,I as Ye,s as $e,U as et,C as tt,t as nt,B as rt,F as it,u as st,S as ot,v as at,w as ct,x as ut,y as dt,z as lt}from"./lib/__bundle-b8a1b0b5.js";export{t as ApplicationUserListQuery,D as BannedUserListQuery,E as BaseChannel,B as BlockedUserListQuery,C as ConnectionHandler,F as FriendListQuery,p as LogLevel,q as MemoryStore,G as MutedUserListQuery,O as OperatorListQuery,P as Participant,H as Plugin,R as ReportCategory,J as RestrictedUser,K as RestrictionInfo,Q as RestrictionType,S as SessionHandler,U as UserEventHandler}from"./lib/__bundle-b8a1b0b5.js";import{PollModule as ht}from"./poll.js";import{g as ft,G as pt,A as vt,U as gt,a as mt,b as _t,S as bt,c as yt,d as wt,D as kt,R as Ct}from"./lib/__bundle-741e2fc5.js";import{g as St,N as It}from"./lib/__bundle-1ae85146.js";import"./lib/__bundle-acd77193.js";var Et=function(e){this.key=e.key,this.url=e.url},Tt=function(e){this.id=e.id,this.name=e.name,this.url=e.url,this.emojis=e.emojis?e.emojis.map((function(e){return new Et(e)})):[]},Pt=function(e){this.emojiHash=e.emoji_hash||"",this.emojiCategories=e.emoji_categories?e.emoji_categories.map((function(e){return new Tt(e)})):[]},Dt={profileImage:void 0,profileUrl:void 0,nickname:void 0},Ut=function(e){return{v2:function(){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,e.commitSchema([{collectionName:Ne,keyName:Ae,index:[ft(pt.LATEST_LAST_MESSAGE),ft(pt.CHRONOLOGICAL),ft(pt.CHANNEL_NAME_ALPHABETICAL)]},{collectionName:Oe,keyName:Me,index:[Le(Re.CHANNEL_LATEST),Le(Re.NEWEST_CHILD_MESSAGE)]},{collectionName:ze,keyName:Qe,index:[Le(Re.CHANNEL_LATEST),Le(Re.NEWEST_CHILD_MESSAGE)]},{collectionName:je,keyName:Fe}])];case 1:return[2,t.sent()]}}))}))},v3:function(){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,e.commitSchema([{collectionName:xe,keyName:qe,index:[St("latest_last_message")]}])];case 1:return[2,t.sent()]}}))}))},v4:function(){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,e.commitSchema([{collectionName:Ke,keyName:He,index:[We()]}])];case 1:return[2,t.sent()]}}))}))},v5:function(){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,e.commitSchema([{collectionName:Ge,keyName:Be,index:[["-userId","-updatedAt"]]}])];case 1:return[2,t.sent()]}}))}))}}},Ot=function(e){var t=new Ue;return function(n,s){return r(void 0,void 0,void 0,(function(){var r,a,c,u;return i(this,(function(i){switch(i.label){case 0:switch(n){case 1:case 2:case 3:case 4:return[3,1];case 5:return[3,2];case 6:return[3,4];case 7:return[3,11]}return[3,15];case 1:return s(),[3,16];case 2:return[4,e.reset()];case 3:return i.sent(),s(),[3,16];case 4:return i.trys.push([4,9,,10]),r=Ut(e),a=r.v2,c=r.v3,u=r.v4,[4,a()];case 5:return i.sent(),[4,c()];case 6:return i.sent(),[4,u()];case 7:return i.sent(),[4,e.collection(Oe).removeIf({where:{channelType:o.OPEN}})];case 8:return i.sent(),[3,10];case 9:return i.sent(),t.warn("Failed to migrate to v2, v3, v4"),[3,10];case 10:return s(),[3,16];case 11:return i.trys.push([11,13,,14]),[4,(0,Ut(e).v5)()];case 12:return i.sent(),[3,14];case 13:return i.sent(),t.warn("Failed to migrate to v5"),[3,14];case 14:return s(),[3,16];case 15:s(),i.label=16;case 16:return[2]}}))}))}},Nt=function(){return"undefined"!=typeof document?document.visibilityState:"visible"},At=function(e){function t(t){var n=t.getVisibilityState,r=void 0===n?Nt:n,i=t.initialState,s=void 0===i?"visible":i,o=t.isEnabled,a=void 0===o||o,c=t.pauseCheckDelay,u=void 0===c?3e4:c,d=e.call(this)||this;return d._pauseCheckDelay=3e4,d._currentState="visible",d._getVisibilityState=r,d._pauseCheckDelay=u,d._currentState=s,d._isEnabled=a,d._boundToggleState=d._toggleState.bind(d),d}return a(t,e),Object.defineProperty(t.prototype,"currentState",{get:function(){return this._currentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAvailable",{get:function(){return"undefined"!=typeof window&&!!window.addEventListener&&!!window.removeEventListener},enumerable:!1,configurable:!0}),t.prototype._toggleState=function(){var e=this,t=this._getVisibilityState();"hidden"!==t?"hidden"===this._currentState&&(this._pauseDelayTimer&&(clearTimeout(this._pauseDelayTimer),this._pauseDelayTimer=void 0),this.dispatch("resume")):"hidden"!==this._currentState&&(this._pauseDelayTimer=setTimeout((function(){e._pauseDelayTimer=void 0,e.dispatch("pause")}),this._pauseCheckDelay)),this._currentState=t},t.prototype.start=function(){this._isEnabled&&this.isAvailable&&(this._boundToggleState=this._toggleState.bind(this),window.addEventListener("visibilitychange",this._boundToggleState,{capture:!0}))},t.prototype.stop=function(){this._isEnabled&&this.isAvailable&&this._boundToggleState&&window.removeEventListener("visibilitychange",this._boundToggleState,{capture:!0})},t}(c),Mt=function(){function e(e){var t=e.logger,n=e.connectionDelegate,r=void 0===n?null:n,i=this;this._onlineWorker=function(){var e;return null===(e=i.connectionDelegate)||void 0===e?void 0:e.reconnect()},this._offlineWorker=function(){var e;return null===(e=i.connectionDelegate)||void 0===e?void 0:e.disconnect()},this.unsubscribes=[],this._onlineListener=function(e){if(i.isAvailableOnWeb)return window.addEventListener("online",e),function(){return window.removeEventListener("online",e,!1)}},this._offlineListener=function(e){if(i.isAvailableOnWeb)return window.addEventListener("offline",e),function(){return window.removeEventListener("offline",e,!1)}},this.logger=t,r&&(this.connectionDelegate=r)}return Object.defineProperty(e.prototype,"isAvailableOnWeb",{get:function(){return"undefined"!=typeof window&&!!window.addEventListener&&"ononline"in window&&"onoffline"in window&&"undefined"!=typeof navigator&&void 0!==navigator.onLine},enumerable:!1,configurable:!0}),e.prototype.setOnlineListener=function(e){Boolean(e)&&"function"==typeof e&&(this._onlineListener=e)},e.prototype.setOfflineListener=function(e){Boolean(e)&&"function"==typeof e&&(this._offlineListener=e)},e.prototype.start=function(){this.unsubscribes=[this._onlineListener(this._onlineWorker),this._offlineListener(this._offlineWorker)]},e.prototype.stop=function(){var e=this;this.unsubscribes.forEach((function(t){try{null==t||t()}catch(t){e.logger.warn(t.message)}})),this.unsubscribes=[]},e.prototype.isOnline=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return this.isAvailableOnWeb?[2,navigator.onLine]:[2,new Promise((function(e){fetch("https://www.google.com",{method:u.GET,mode:"no-cors"}).then((function(){return e(!0)})).catch((function(){return e(!1)}))}))]}))}))},e}(),Lt=function(e){function t(t){var n,r=this;return(r=e.call(this)||this).method=u.GET,r.path=d,r.params=l(h({ts:"number"==typeof t.token?t.token:void 0,token:"string"==typeof t.token?t.token:void 0,limit:null!==(n=t.limit)&&void 0!==n?n:100})),r}return a(t,e),t}(f),Rt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.configs=n.configs,r.hasMore=n.has_more,r.nextToken=n.next,r.ts=n.ts,r}return a(t,e),t}(v),zt=function(e){function t(t){var n=t.userId,r=t.nickname,i=t.profileUrl,s=t.profileImage,o=t.preferredLanguages,a=e.call(this)||this;return a.method=u.PUT,a.path="".concat(g,"/").concat(encodeURIComponent(n)),a.params=l(h({nickname:r,profile_url:i,profile_file:s,preferred_languages:o})),a}return a(t,e),t}(f),Qt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.user=new m(t,_({},n)),r}return a(t,e),t}(v),jt=function(e){function t(t){var n=t.userId,r=t.token,i=t.deviceOS,s=t.deviceManufacturer,o=t.systemPushEnabled,a=e.call(this)||this;return a.method=u.POST,a.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/apns"),a.params=l({apns_device_token:r,always_push:!0,device_os:i,device_manufacturer:s,system_push_enabled:o}),a}return a(t,e),t}(f);!function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.token,r.type=n.type?b[n.type.toLowerCase()]:b.UNKNOWN,r.user=new m(t,n.user),r}a(t,e)}(v);var Ft=function(e){function t(t){var n=t.userId,r=t.token,i=t.deviceOS,s=t.deviceManufacturer,o=t.systemPushEnabled,a=e.call(this)||this;return a.method=u.POST,a.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/gcm"),a.params=l({gcm_reg_token:r,always_push:!0,device_os:i,device_manufacturer:s,system_push_enabled:o}),a}return a(t,e),t}(f);!function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.token,r.type=n.type?b[n.type.toLowerCase()]:b.UNKNOWN,r.user=new m(t,n.user),r}a(t,e)}(v);var xt=function(e){function t(t){var n=t.userId,r=t.token,i=e.call(this)||this;return i.method=u.DELETE,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/apns/").concat(encodeURIComponent(r)),i}return a(t,e),t}(f);!function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.token,r.user=new m(t,n.user),r.lastDeletedAt=n.device_token_last_deleted_at,r}a(t,e)}(v);var qt=function(e){function t(t){var n=t.userId,r=t.token,i=e.call(this)||this;return i.method=u.DELETE,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/gcm/").concat(encodeURIComponent(r)),i}return a(t,e),t}(f);!function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.token,r.user=new m(t,n.user),r.lastDeletedAt=n.device_token_last_deleted_at,r}a(t,e)}(v);var Kt=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=u.DELETE,r.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/apns"),r}return a(t,e),t}(f);!function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type=n.type?b[n.type.toLowerCase()]:b.UNKNOWN,r.user=new m(t,n.user),r.lastDeletedAt=n.device_token_last_deleted_at,r}a(t,e)}(v);var Ht=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=u.DELETE,r.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/gcm"),r}return a(t,e),t}(f);!function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type=n.type?b[n.type.toLowerCase()]:b.UNKNOWN,r.user=new m(t,n.user),r.lastDeletedAt=n.device_token_last_deleted_at,r}a(t,e)}(v);var Wt=function(e){function t(t){var n=t.userId,r=t.type,i=t.token,s=t.ts,o=e.call(this)||this;return o.method=u.GET,o.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/").concat(encodeURIComponent(r),"/device_tokens"),o.params={created_ts:s,token:i},o}return a(t,e),t}(f),Gt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.pushTokens={type:n.type?b[n.type.toLowerCase()]:b.UNKNOWN,deviceTokens:n.device_tokens,hasMore:n.has_more,token:n.token},r}return a(t,e),t}(v),Bt=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=u.GET,r.path="".concat(g,"/").concat(encodeURIComponent(n),"/channel_invitation_preference"),r}return a(t,e),t}(f),Vt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.autoAccept=n.auto_accept,r}return a(t,e),t}(v),Jt=function(e){function t(t){var n=t.userId,r=t.willAutoAccept,i=e.call(this)||this;return i.method=u.PUT,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/channel_invitation_preference"),i.params={auto_accept:r},i}return a(t,e),t}(f),Zt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.autoAccept=n.auto_accept,r}return a(t,e),t}(v),Xt=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=u.GET,r.path="".concat(g,"/").concat(encodeURIComponent(n),"/push_preference"),r}return a(t,e),t}(f),Yt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.preference={doNotDisturbOn:n.do_not_disturb,startHour:n.start_hour,startMin:n.start_min,endHour:n.end_hour,endMin:n.end_min,timezone:n.timezone},r}return a(t,e),t}(v),$t=function(e){function t(t){var n=t.userId,r=t.doNotDisturbOn,i=t.startHour,s=t.startMin,o=t.endHour,a=t.endMin,c=t.timezone,d=e.call(this)||this;return d.method=u.PUT,d.path="".concat(g,"/").concat(encodeURIComponent(n),"/push_preference"),d.params={do_not_disturb:r,start_hour:i,start_min:s,end_hour:o,end_min:a,timezone:c},d}return a(t,e),t}(f),en=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.preference={doNotDisturbOn:n.do_not_disturb,startHour:n.start_hour,startMin:n.start_min,endHour:n.end_hour,endMin:n.end_min,timezone:n.timezone},r}return a(t,e),t}(v),tn=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=u.GET,r.path="".concat(g,"/").concat(encodeURIComponent(n),"/push_preference"),r}return a(t,e),t}(f),nn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.snoozePeriod={isSnoozeOn:n.snooze_enabled},"number"==typeof n.snooze_start_ts&&(r.snoozePeriod.startTs=n.snooze_start_ts),"number"==typeof n.snooze_end_ts&&(r.snoozePeriod.endTs=n.snooze_end_ts),r}return a(t,e),t}(v),rn=function(e){function t(t){var n=t.userId,r=t.snoozeOn,i=t.startTs,s=t.endTs,o=e.call(this)||this;return o.method=u.PUT,o.path="".concat(g,"/").concat(encodeURIComponent(n),"/push_preference"),o.params={snooze_enabled:r,snooze_start_ts:i,snooze_end_ts:s},o}return a(t,e),t}(f),sn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.snoozePeriod={isSnoozeOn:n.snooze_enabled},"number"==typeof n.snooze_start_ts&&(r.snoozePeriod.startTs=n.snooze_start_ts),"number"==typeof n.snooze_end_ts&&(r.snoozePeriod.endTs=n.snooze_end_ts),r}return a(t,e),t}(v),on=function(e){function t(t){var n=t.userId,r=t.blockedUserId,i=e.call(this)||this;return i.method=u.POST,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/block"),i.params={target_id:r},i}return a(t,e),t}(f);!function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.user=new m(t,n),r}a(t,e)}(v);var an=function(e){function t(t){var n=t.userId,r=t.unblockedUserId,i=e.call(this)||this;return i.method=u.DELETE,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/block/").concat(encodeURIComponent(r)),i}return a(t,e),t}(f);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a(t,e)}(v);var cn=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=u.GET,r.path="".concat(g,"/").concat(encodeURIComponent(n),"/push_preference"),r}return a(t,e),t}(f),un=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.pushTriggerOption=n.push_trigger_option,r}return a(t,e),t}(v),dn=function(e){function t(t){var n=t.userId,r=t.pushTriggerOption,i=e.call(this)||this;return i.method=u.PUT,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/push_preference"),i.params={push_trigger_option:r},i}return a(t,e),t}(f),ln=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.pushTriggerOption=n.push_trigger_option,r}return a(t,e),t}(v),hn=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=u.GET,r.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/template"),r}return a(t,e),t}(f),fn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.name=n.name,r}return a(t,e),t}(v),pn=function(e){function t(t){var n=t.userId,r=t.templateName,i=e.call(this)||this;return i.method=u.PUT,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/push/template"),i.params={name:r},i}return a(t,e),t}(f),vn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.name=n.name,r}return a(t,e),t}(v),gn=function(e){function t(t){var n=t.userId,r=t.token,i=e.call(this)||this;return i.method=u.GET,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/friends/changelogs"),i.params={token:r},i}return a(t,e),t}(f),mn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.changelogs={addedUsers:n.added.map((function(e){return new m(t,e)})),updatedUsers:n.updated.map((function(e){return new m(t,e)})),deletedUserIds:n.deleted,hasMore:n.has_more,token:n.next},r}return a(t,e),t}(v),_n=function(e){function t(t){var n=t.userId,r=t.discoveries,i=e.call(this)||this;return i.method=u.PUT,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/friend_discoveries"),i.params={friend_discoveries:r.map((function(e){return{friend_discovery_key:e.friendDiscoveryKey,friend_name:e.friendName}}))},i}return a(t,e),t}(f),bn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.friendDiscoveryRequestId=n.friend_discovery_request_id,r}return a(t,e),t}(v),yn=function(e){function t(t){var n=t.userId,r=t.discoveryKeys,i=e.call(this)||this;return i.method=u.DELETE,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/friend_discoveries"),i.params={friend_discovery_keys:r},i}return a(t,e),t}(f);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a(t,e)}(v);var wn=function(e){function t(t){var n=t.userId,r=t.userIds,i=e.call(this)||this;return i.method=u.POST,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/friends"),i.params={user_ids:r},i}return a(t,e),t}(f),kn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.users=n.users.map((function(e){return new m(t,e)})),r}return a(t,e),t}(v),Cn=function(e){function t(t){var n=t.userId,r=t.userIds,i=e.call(this)||this;return i.method=u.DELETE,i.path="".concat(g,"/").concat(encodeURIComponent(n),"/friends"),i.params={user_ids:r},i}return a(t,e),t}(f);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a(t,e)}(v);var Sn=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=u.GET,r.path="".concat(g,"/").concat(n,"/allow_friend_discovery"),r.params={},r}return a(t,e),t}(f),In=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.allowFriendDiscovery=n.allow_friend_discovery,r}return a(t,e),t}(v),En=function(e){function t(t){var n=t.userId,r=t.allowFriendDiscovery,i=e.call(this)||this;return i.method=u.PUT,i.path="".concat(g,"/").concat(n,"/allow_friend_discovery"),i.params={allow_friend_discovery:r},i}return a(t,e),t}(f);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}a(t,e)}(v);var Tn,Pn=function(e){function t(){var t=e.call(this)||this;return t.method=u.GET,t.path=y,t}return a(t,e),t}(f),Dn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.emojiContainer=new Pt(n),r}return a(t,e),t}(v),Un=function(e){function t(t){var n=t.categoryId,r=e.call(this)||this;return r.method=u.GET,r.path="".concat(y,"/").concat(n),r}return a(t,e),t}(f),On=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.emojiCategory=new Tt(n),r}return a(t,e),t}(v),Nn=function(e){function t(t){var n=t.key,r=e.call(this)||this;return r.method=u.GET,r.path="".concat(w,"/").concat(n),r}return a(t,e),t}(f),An=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.emoji=new Et(n),r}return a(t,e),t}(v),Mn=function(e){function t(){var t=e.call(this)||this;return t.method=u.GET,t.path="".concat(k),t}return a(t,e),t}(f),Ln=function(e){function t(t,n){var r,i=this,s=null!=n?n:{};return(i=e.call(this,t,n)||this).uikitConfiguration={string:JSON.stringify(s),json:s},i.updatedAt=null!==(r=null==n?void 0:n.updated_at)&&void 0!==r?r:0,i}return a(t,e),t}(v);!function(e){e.DELIVERED="DELIVERED",e.CLICKED="CLICKED"}(Tn||(Tn={}));var Rn,zn=function(e){function t(t){var n=t.deviceToken,r=t.pushTrackingId,i=t.messageId,s=t.allowedPushNotification,o=t.channelKey,a=t.templateKey,c=t.eventType,d=t.notificationEventDeadline,h=e.call(this)||this;return h.method=u.POST,h.path=I,h.params=l({device_token:n,push_tracking_id:r,message_id:i,allowed_push_notification:s,channel_key:o,template_key:a,event_type:c,notification_event_deadline:d}),h}return a(t,e),t}(f);var Qn=function(){function t(e,t,n){var s=this;this._storeInitialized=!1,this._iid=e,this.options=t;var o=z.of(e),a=o.sdkState,c=o.cacheContext,u=o.dispatcher,d=o.sessionManager,l=o.requestQueue,h=o.logger,f=o.userEventHandlers,p=o.appStateToggleEnabled;this._onlineDetector=new Mt({logger:h,connectionDelegate:{reconnect:function(){return r(s,void 0,void 0,(function(){var t,n,r,s,o,a;return i(this,(function(i){switch(i.label){case 0:if(t=z.of(e),n=t.sdkState,r=t.connectionManager,(s=t.sessionManager).session.hasSession)return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.connect(s.session.authToken)];case 2:return i.sent(),[3,4];case 3:if(o=i.sent(),we(o))throw o;return h.debug("connect failed by reconnect event = ",o),[3,4];case 4:return[3,9];case 5:if("foreground"!==n.appState)return[3,9];i.label=6;case 6:return i.trys.push([6,8,,9]),[4,r.resetAndReconnect()];case 7:return i.sent(),[3,9];case 8:if(a=i.sent(),we(a))throw a;return h.debug("resetAndReconnect failed by reconnect event = ",a),[3,9];case 9:return u.dispatch(new It),[2]}}))}))},disconnect:function(){ce((function(){return r(s,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return t=z.of(e),n=t.connectionManager,r=t.dispatcher,[4,n.disconnect()];case 1:return i.sent(),r.dispatch(new $(new ee({type:te.WEBSOCKET_DISCONNECT,data:{success:!0,error_code:ne.NETWORK_ERROR,error_description:"cause=network_closed"}}))),[2]}}))}))}))}}});var v=new vt(e,{localCacheEnabled:c.localCacheEnabled,enableAutoResend:c.localCacheConfig.enableAutoResend,dispatcher:u,sdkState:a,logger:h});n.forEach((function(t){t.init(e,{sdkState:a,cacheContext:c,dispatcher:u,sessionManager:d,requestQueue:l,logger:h,onlineDetector:s._onlineDetector}),s[t.name]=t})),this._appStateChangeDetector=new At({isEnabled:p}),this._appStateChangeDetector.on("resume",(function(){h.debug("the page resumes from freeze"),s.setForegroundState()})).on("pause",(function(){h.debug("the page freezes"),s.setBackgroundState()})),u.on((function(t){var n;if(t instanceof ue){if(t.stateType===de.CONNECTED)v.processNonAutoResendRegisteredPendingMessages()}else if(t instanceof le){if("USEV"===t.code){var o=t.as(gt).event;if(o.category===mt.FRIEND_DISCOVERED){var u=_t.getDataAsFriendDiscoveredEvent(e,o).friendDiscoveries;he((function(){return r(s,void 0,void 0,(function(){return i(this,(function(e){return[2,f.forEach((function(e){e.onFriendsDiscovered&&e.onFriendsDiscovered(u)}))]}))}))}))}}}else if(t instanceof fe){var d=z.of(s._iid).subscribedUnreadMessageCount,l=!1,p=t.ts;"number"==typeof p&&p>d.ts&&(d.all!==t.all&&(l=!0),d.all=t.all>=0?t.all:0,t.customTypes&&Object.keys(t.customTypes).forEach((function(e){d.customTypes[e]!==t.customTypes[e]&&(l=!0),d.customTypes[e]=t.customTypes[e]})),l=l&&d.ts>0,d.ts=p),l&&he((function(){return r(s,void 0,void 0,(function(){return i(this,(function(e){return[2,f.forEach((function(e){e.onTotalUnreadMessageCountChanged&&e.onTotalUnreadMessageCountChanged({groupChannelCount:d.all,feedChannelCount:d.feed,customTypeUnreadCount:d.customTypes}),e.onTotalUnreadMessageCountUpdated&&e.onTotalUnreadMessageCountUpdated(d.all,d.customTypes)}))]}))}))}))}else t instanceof pe?(c.preference.set(s._getUserProfileCacheKey(a.userId),ve.payloadify(t.userProfile)),(null===(n=t.userProfile.appInfo.notificationInfo)||void 0===n?void 0:n.isEnabled)&&c.preference.set(ge(s.appId),{value:!0})):t instanceof me?t.configSyncNeeded&&ce((function(){return r(s,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this._getAppConfigsInfo()];case 1:return e.sent(),[2]}}))}))})):t instanceof bt?c.preference.set(_e(s.appId),{configTs:t.configTs}):t instanceof be&&t.error&&t.error.isSessionInvalidatedError&&(h.debug("session revoked."),s._internalDisconnect(t.error))}))}return t.init=function(e){var n=e.appId,r=e.appVersion,i=e.modules,s=void 0===i?[]:i,o=e.options,a=void 0===o?new T:o,c=e.debugMode,u=void 0!==c&&c,d=e.customApiHost,l=e.customWebSocketHost,h=e.newInstance,f=void 0!==h&&h,p=e.logLevel,v=e.localCacheEnabled,g=void 0!==v&&v,m=e.localCacheConfig,_=void 0===m?new N:m,b=e.localCacheEncryption,y=e.useAsyncStorageStore,w=void 0===y?null:y,k=e.useMMKVStorageStore,C=void 0===k?null:k,S=e.appStateToggleEnabled,I=void 0===S||S;if(!Rn||f){var E="su-".concat(A()),P=null!=b?b:{encrypt:function(e){return e},decrypt:function(e){return e}},D=new Ue;D.level=null!=p?p:Ve.WARN;var U=new Je({encryption:P});u||(M()?C?U=new Ze({MMKV:C,encryption:P}):w&&(U=new Xe({AsyncStorage:w,encryption:P}),D.warn("AsyncStorage store is deprecated due to the small size limit. Please use MMKVStorage store instead.")):U=new Ye({encryption:P})),new z(E,{appId:n,appVersion:r,options:a,apiHost:null!=d?d:"https://api-".concat(n,".sendbird.com"),websocketHost:null!=l?l:"wss://ws-".concat(n,".sendbird.com"),store:U,encryption:P,logger:D,localCacheEnabled:g,localCacheConfig:_,debugMode:u,appStateToggleEnabled:I});var O=[new $e,new ht],L=new t(E,a,j(j([],x(s),!1),x(O),!1));return Rn||(Rn=L),L}return Rn},Object.defineProperty(t,"instance",{get:function(){return Rn},enumerable:!1,configurable:!0}),Object.defineProperty(t,"version",{get:function(){return W},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"appId",{get:function(){return z.of(this._iid).sdkState.appId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"appInfo",{get:function(){var e=z.of(this._iid).appInfo;return null!=e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"appVersion",{get:function(){var e;return null!==(e=z.of(this._iid).sdkState.appVersion)&&void 0!==e?e:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugMode",{get:function(){return!!z.of(this._iid).debugMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logLevel",{get:function(){return z.of(this._iid).logger.level},set:function(e){z.of(this._iid).logger.level=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCacheEnabled",{get:function(){return z.of(this._iid).cacheContext.localCacheEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localCacheConfig",{get:function(){var e=z.of(this._iid).cacheContext;return e.localCacheEnabled?e.localCacheConfig:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ekey",{get:function(){return z.of(this._iid).sessionManager.ekey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentUser",{get:function(){var e;return null!==(e=z.of(this._iid).sessionManager.currentUser)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"connectionState",{get:function(){var e=z.of(this._iid).connectionManager;return e.isConnected?V.OPEN:e.isConnecting?V.CONNECTING:V.CLOSED},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastConnectedAt",{get:function(){var e=z.of(this._iid),t=e.connectedAt;return e.connectionManager.isConnected?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fcmPushToken",{get:function(){var e;return null!==(e=this._fcmPushToken)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"apnsPushToken",{get:function(){var e;return null!==(e=this._apnsPushToken)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),t.prototype._getNestDBVersion=function(){return 8},t.prototype._getPreferenceVersion=function(){return 9},t.prototype._getPreferenceCacheKey=function(e){return"sendbird@".concat(this.appId,"/").concat(e,".pref")},t.prototype._getUserProfileCacheKey=function(e){return"sendbird@".concat(this.appId,"/").concat(e,".profile")},t.prototype._internalDisconnect=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return t=z.of(this._iid),n=t.connectionManager,r=t.sdkState,s=t.requestQueue,this._appStateChangeDetector.stop(),this._onlineDetector.stop(),s.cancelAll(),[4,n.logout(e)];case 1:return i.sent(),[4,this.clearCachedData()];case 2:return i.sent(),r.appState="foreground",[2]}}))}))},t.prototype._getAppConfigsInfo=function(){return r(this,void 0,void 0,(function(){var e,t,n,s,o,a,c,u,d=this;return i(this,(function(l){switch(l.label){case 0:return e=z.of(this._iid),t=e.requestQueue,n=e.dispatcher,s=e.cacheContext,o=e.sdkState,a={},[4,s.preference.get(_e(o.appId))];case 1:return(u=l.sent())&&(c=u.configTs),new yt("appConfigsInfo",(function(e){return r(d,void 0,void 0,(function(){var r,s,o,c,u,d,l,h;return i(this,(function(i){switch(i.label){case 0:return r={hasNext:!0,nextToken:e},s=new Lt({token:e}),[4,t.send(s)];case 1:return o=i.sent(),c=o.as(Rt),u=c.configs,d=c.hasMore,l=c.nextToken,h=c.ts,Object.keys(u).forEach((function(e){a[e]=u[e]})),r.hasNext=d,r.nextToken=l,d||n.dispatch(new wt({appConfigsInfo:a,configTs:h})),[2,r]}}))}))})).start(c),[2]}}))}))},t.prototype.getMemoryStoreForDebugging=function(){var e=z.of(this._iid),t=e.debugMode,n=e.cacheContext;if(t)return n.store instanceof Je?n.store:null;throw Z.debugModeRequired},t.prototype.addExtension=function(e,t){var n=z.of(this._iid).sdkState;["sb_uikit","sb_syncmanager","device-os-platform"].indexOf(e)>-1&&n.extensions&&(n.extensions[e]=t)},t.prototype.addSendbirdExtensions=function(e,t,n){var r,i,s=z.of(this._iid),o=s.logger,a=s.sdkState,c=new RegExp(ye);if(0===e.length)return o.debug("sb.addSendbirdExtensions() has failed because the given sendbirdExtensions is empty."),!1;if(e.find((function(e){return!c.test(e.version)})))return o.debug("sb.addSendbirdExtensions() has failed because the given version did not satisfy the SemVer specification."),!1;if(n)try{for(var u=X(Object.entries(n)),d=u.next();!d.done;d=u.next()){var l=x(d.value,2),h=l[0],f=l[1];if(/&|=/.test(h)||/&|=/.test(f))return o.debug("sb.addSendbirdExtensions() has failed because the given customData includes at least one invalid character: = or &."),!1}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return a.sendbirdRuntimeEnvironment={sendbirdExtensions:e,deviceOS:t,customData:n},!0},t.prototype.setOnlineListener=function(e){this._onlineDetector.setOnlineListener(e)},t.prototype.setOfflineListener=function(e){this._onlineDetector.setOfflineListener(e)},t.prototype._safeInitializeStore=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:t=z.of(this._iid).cacheContext,n.label=1;case 1:return n.trys.push([1,3,,5]),[4,t.store.init(e)];case 2:return n.sent(),this._storeInitialized=!0,[3,5];case 3:return n.sent(),t.replaceStore(new Je),[4,this._safeInitializeStore(e)];case 4:return n.sent(),[3,5];case 5:return[2]}}))}))},t.prototype.setLocaleForChatbot=function(e){var t=z.of(this._iid).sdkState,n=function(e){return e.replace(/[^a-zA-Z-_.]/g,"")}(e.trim());n&&(t.localeForChatbot=n)},t.prototype.initializeCache=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s,o,a,c,u,d;return i(this,(function(i){switch(i.label){case 0:if(t=z.of(this._iid),n=t.sdkState,r=t.cacheContext,s=t.dispatcher,o=t.logger,n.userId&&n.userId===e)return[3,13];a="sendbird@".concat(n.appId,"/").concat(e,".db"),i.label=1;case 1:return i.trys.push([1,9,11,13]),r.localCacheEnabled?r.nestdb&&r.nestdb.state!==ut.CLOSED&&r.nestdb.name===a?[3,3]:(c="sendbird@".concat(n.appId,"/").concat(e,".db"),(u=r.nestdb=new dt({name:c,version:this._getNestDBVersion(),store:r.store,config:new lt({dbname:c,itemSizeLimit:61440})})).on("upgrade",Ot(u)),u.on("storeReplaced",(function(e){r.replaceStore(e),r.localCacheEnabled=!1,u.on("upgrade",Ot(u))})),[4,u.open()]):[3,6];case 2:return i.sent(),this._storeInitialized=!0,s.dispatch(new kt(this._iid,{userId:e})),[3,5];case 3:return[4,this._safeInitializeStore(a)];case 4:i.sent(),i.label=5;case 5:return n.userId=e,[3,8];case 6:return[4,this._safeInitializeStore(a)];case 7:i.sent(),n.userId=e,i.label=8;case 8:return[3,13];case 9:return d=i.sent(),o.warn("Nest DB Open Failed. ",d),r.store instanceof Je||(r.replaceStore(new Je),r.localCacheEnabled=!1),[4,this._safeInitializeStore(a)];case 10:throw i.sent(),n.userId=e,Z.databaseError;case 11:return[4,this._setupPreference(e)];case 12:return i.sent(),[7];case 13:return[2]}}))}))},t.prototype.getCacheDataSize=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return(e=z.of(this._iid).cacheContext).localCacheEnabled&&e.nestdb?[4,e.nestdb.estimateUsage()]:[3,2];case 1:return[2,t.sent()];case 2:return[2,0]}}))}))},t.prototype.clearCachedData=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return(e=z.of(this._iid).cacheContext).localCacheEnabled&&e.nestdb?[4,e.nestdb.clear()]:[3,2];case 1:t.sent(),t.label=2;case 2:return this._storeInitialized?[4,e.preference.clear()]:[3,4];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},t.prototype.clearCachedMessages=function(e){return r(this,void 0,void 0,(function(){var t,n,s=this;return i(this,(function(o){switch(o.label){case 0:return re(ke("string",e)).throw(Z.invalidParameters),t=at.of(this._iid),n=ct.of(this._iid),t&&n?[4,Promise.all(e.map((function(e){return r(s,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,t.removeMessagesOfChannel(e)];case 1:return r.sent(),[4,n.removeMessagesOfChannel(e)];case 2:return r.sent(),[2]}}))}))})))]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype._setupPreference=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s,o;return i(this,(function(i){switch(i.label){case 0:return t=z.of(this._iid),n=t.sdkState,r=t.cacheContext,s=t.statManager,[4,r.preference.init(this._getPreferenceCacheKey(e),this._getPreferenceVersion())];case 1:return i.sent(),[4,r.preference.get(this._getUserProfileCacheKey(e))];case 2:return(o=i.sent())&&new ve(this._iid,o).apply(),[4,s.init("sendbird@".concat(n.appId,"/").concat(e,".statlog"))];case 3:return i.sent(),[2]}}))}))},t.prototype._ready=function(e,t,s){return void 0===s&&(s={}),r(this,void 0,void 0,(function(){var r,o,a,c,u,d;return i(this,(function(i){switch(i.label){case 0:return re(n("string",e)&&n("string",t,!0)).throw(Z.invalidParameters),r=z.of(this._iid),o=r.sdkState,a=r.cacheContext,c=r.connectionManager,u=s.errorForOtherUser,o.userId&&o.userId!==e?u?[3,2]:[4,c.logout()]:[3,3];case 1:return i.sent(),[3,3];case 2:throw u;case 3:return i.trys.push([3,5,,6]),[4,this.initializeCache(e)];case 4:return i.sent(),z.of(this._iid).dispatcher.dispatch(new Ct),[3,6];case 5:return i.sent(),d=z.of(this._iid).logger,a.localCacheEnabled=!1,d.warn("Cache initialization failed - cache is not available."),[3,6];case 6:return[2]}}))}))},t.prototype.authenticateFeed=function(e,t){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,this.authenticate(e,t)];case 1:return[2,n.sent()]}}))}))},t.prototype.authenticate=function(e,t,n){var s;return void 0===n&&(n=Y.SESSION_TOKEN),r(this,void 0,void 0,(function(){var r,o,a;return i(this,(function(i){switch(i.label){case 0:return r=z.of(this._iid),o=r.sessionManager,a=r.connectionManager,[4,this._ready(e,t,{errorForOtherUser:a.isConnected?Z.alreadyConnectedAsAnotherUser:void 0})];case 1:return i.sent(),(null===(s=o.session.services)||void 0===s?void 0:s.includes(Ce.CHAT))?[3,3]:(o.handler||t&&n!==Y.ACCESS_TOKEN||this.setSessionHandler(new ot),[4,o.authenticate(e,t)]);case 2:i.sent(),i.label=3;case 3:return[2,this.currentUser]}}))}))},t.prototype.connect=function(e,t){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,this._ready(e,t)];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,,4,5]),[4,z.of(this._iid).connectionManager.connect(t)];case 3:return n.sent(),[3,5];case 4:return this._onlineDetector.start(),this._appStateChangeDetector.start(),[7];case 5:return[2,this.currentUser]}}))}))},t.prototype.reconnect=function(){var e=z.of(this._iid),t=e.connectionManager,n=e.sdkState,r=e.sessionManager,i=e.dispatcher,s=r.session.hasSession;return s&&(i.dispatch(new $(new ee({type:te.WEBSOCKET_DISCONNECT,data:{success:!0,error_code:0,error_description:"cause=explicit_reconnect"}}))),this._appStateChangeDetector.start(),this._onlineDetector.start(),t.resetAndReconnect().then((function(){n.appState="foreground"})).catch((function(){}))),s},t.prototype.disconnect=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this._internalDisconnect()];case 1:return e.sent(),[2]}}))}))},t.prototype.disconnectWebSocket=function(){return r(this,void 0,void 0,(function(){var e,t,n;return i(this,(function(r){switch(r.label){case 0:return e=z.of(this._iid),t=e.connectionManager,n=e.requestQueue,e.dispatcher.dispatch(new $(new ee({type:te.WEBSOCKET_DISCONNECT,data:{success:!0,error_code:0,error_description:"cause=explicit_disconnect_websocket"}}))),this._appStateChangeDetector.stop(),this._onlineDetector.stop(),n.cancelAll(),[4,t.disconnectWebSocket(!0)];case 1:return r.sent(),[2]}}))}))},t.prototype.setBackgroundState=function(){var e=z.of(this._iid),t=e.connectionManager,n=e.sdkState,r=e.logger,i=e.dispatcher;"foreground"===n.appState&&(n.appState="background",r.debug("going background state"),i.dispatch(new $(new ee({type:te.WEBSOCKET_DISCONNECT,data:{success:!0,error_code:ne.WEBSOCKET_CONNECTION_CLOSED,error_description:"cause=background"}}))),t.background().catch((function(e){r.debug("setBackgroundState error = ",e)})))},t.prototype.setForegroundState=function(){var e=z.of(this._iid),t=e.connectionManager,n=e.sdkState,r=e.dispatcher,i=e.logger;"background"===n.appState&&(n.appState="foreground",i.debug("going foreground state"),t.resetAndReconnect().catch((function(e){i.debug("setForgroundState error = ",e)})),r.dispatch(new It))},t.prototype.setSessionHandler=function(e){re(e instanceof ot).throw(Z.invalidParameters),z.of(this._iid).sessionManager.handler=e},t.prototype.addUserEventHandler=function(e,t){re(n("string",e)&&t instanceof et).throw(Z.invalidParameters),z.of(this._iid).userEventHandlers.set(e,t)},t.prototype.removeUserEventHandler=function(e){z.of(this._iid).userEventHandlers.delete(e)},t.prototype.removeAllUserEventHandler=function(){z.of(this._iid).userEventHandlers.clear()},t.prototype.addConnectionHandler=function(e,t){re(n("string",e)&&t instanceof tt).throw(Z.invalidParameters),z.of(this._iid).connectionHandlers.set(e,t)},t.prototype.removeConnectionHandler=function(e){z.of(this._iid).connectionHandlers.delete(e)},t.prototype.removeAllConnectionHandler=function(){z.of(this._iid).connectionHandlers.clear()},t.prototype.createApplicationUserListQuery=function(e){return void 0===e&&(e={}),new nt(this._iid,e)},t.prototype.createBlockedUserListQuery=function(e){return void 0===e&&(e={}),new rt(this._iid,e)},t.prototype.createFriendListQuery=function(e){return void 0===e&&(e={}),new it(this._iid,e)},t.prototype.createMessageSearchQuery=function(e){return new st(this._iid,e)},t.prototype.createPollListQuery=function(e){return new ie(this._iid,_({},e))},t.prototype.createPollVoterListQuery=function(e){return new se(this._iid,_({},e))},t.prototype.buildUserFromSerializedData=function(e){var t=oe(e);return new m(this._iid,m.payloadify(t))},t.prototype.updateCurrentUserInfo=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){var r,s,o,a,c,u,d;return i(this,(function(i){switch(i.label){case 0:return r=_(_({},Dt),t),re(function(t){return e(t.profileImage,!0)&&n("string",t.profileUrl,!0)&&n("string",t.nickname,!0)}(r)).throw(Z.invalidParameters),this.currentUser?(s=z.of(this._iid),o=s.sdkState,a=s.requestQueue,c=new zt(_({userId:o.userId},r)),[4,a.send(c)]):[3,2];case 1:return u=i.sent(),d=u.as(Qt).user,this.currentUser&&(r.nickname&&(this.currentUser.nickname=d.nickname),(r.profileUrl||r.profileImage)&&(this.currentUser.plainProfileUrl=d.profileUrl)),[2,d];case 2:throw Z.connectionRequired}}))}))},t.prototype.updateCurrentUserInfoWithPreferredLanguages=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s,o,a;return i(this,(function(i){switch(i.label){case 0:return re(ke("string",e)).throw(Z.invalidParameters),this.currentUser?(t=z.of(this._iid),n=t.sdkState,r=t.requestQueue,s=new zt({userId:n.userId,preferredLanguages:e}),[4,r.send(s)]):[3,2];case 1:return o=i.sent(),a=o.as(Qt).user,this.currentUser&&(this.currentUser.preferredLanguages=a.preferredLanguages),[2,a];case 2:throw Z.connectionRequired}}))}))},t.prototype.registerFCMPushTokenForCurrentUser=function(e,t){var s,o;return r(this,void 0,void 0,(function(){var a,c,u,d,l,h,f=this;return i(this,(function(p){switch(p.label){case 0:if(re(n("string",e)&&n("string",null==t?void 0:t.deviceManufacturer,!0)).throw(Z.invalidParameters),(null==t?void 0:t.deviceOS)&&re(Ie(Ee,t.deviceOS.platform,!0)&&n("string",t.deviceOS.version,!0)).throw(Z.invalidParameters),!this.currentUser)return[3,6];a={deviceOS:"".concat((null===(s=null==t?void 0:t.deviceOS)||void 0===s?void 0:s.platform)||Ee.ANDROID,"-").concat((null===(o=null==t?void 0:t.deviceOS)||void 0===o?void 0:o.version)||"unknown"),deviceManufacturer:null==t?void 0:t.deviceManufacturer,systemPushEnabled:null==t?void 0:t.systemPushEnabled},p.label=1;case 1:return p.trys.push([1,4,,5]),c=z.of(this._iid),u=c.sessionManager,d=c.sdkState,l=c.requestQueue,u.hasDeviceToken(b.FCM,e)?[2,Se.SUCCESS]:(h=new Ft({userId:d.userId,token:e,deviceOS:a.deviceOS,deviceManufacturer:a.deviceManufacturer,systemPushEnabled:a.systemPushEnabled}),[4,l.send(h)]);case 2:return p.sent(),[4,ce((function(){return r(f,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return u.setDeviceToken(b.FCM,e,a),[4,u.saveDeviceToken()];case 1:return t.sent(),[2]}}))}))}))];case 3:return p.sent(),this._fcmPushToken="",[2,Se.SUCCESS];case 4:return p.sent(),[2,Se.ERROR];case 5:return[3,7];case 6:return this._fcmPushToken=e,[2,Se.PENDING];case 7:return[2]}}))}))},t.prototype.unregisterFCMPushTokenForCurrentUser=function(e){return r(this,void 0,void 0,(function(){var t,s,o,a,c,u,d=this;return i(this,(function(l){switch(l.label){case 0:if(re(n("string",e)).throw(Z.invalidParameters),!this.currentUser)return[3,6];l.label=1;case 1:return l.trys.push([1,4,,5]),t=z.of(this._iid),s=t.sessionManager,o=t.sdkState,a=t.requestQueue,c=new qt({userId:o.userId,token:e}),[4,a.send(c)];case 2:return u=l.sent().lastDeletedAt,[4,ce((function(){return r(d,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return s.unsetDeviceToken(b.FCM,e),s.setDeviceTokenDeletedAt(u),[4,s.saveDeviceToken()];case 1:return t.sent(),[2]}}))}))}))];case 3:return l.sent(),this._fcmPushToken="",[2,Se.SUCCESS];case 4:return l.sent(),[2,Se.ERROR];case 5:return[3,7];case 6:return this._fcmPushToken=e,[2,Se.PENDING];case 7:return[2]}}))}))},t.prototype.unregisterFCMPushTokenAllForCurrentUser=function(){return r(this,void 0,void 0,(function(){var e,t,n,s,o,a,c=this;return i(this,(function(u){switch(u.label){case 0:return this.currentUser?(e=z.of(this._iid),t=e.sessionManager,n=e.sdkState,s=e.requestQueue,o=new Ht({userId:n.userId}),[4,s.send(o)]):[3,3];case 1:return a=u.sent().lastDeletedAt,[4,ce((function(){return r(c,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return t.unsetDeviceTokens(b.FCM),t.setDeviceTokenDeletedAt(a),[4,t.saveDeviceToken()];case 1:return e.sent(),[2]}}))}))}))];case 2:u.sent(),u.label=3;case 3:return[2]}}))}))},t.prototype.registerAPNSPushTokenForCurrentUser=function(e,t){var s,o;return r(this,void 0,void 0,(function(){var a,c,u,d,l,h,f=this;return i(this,(function(p){switch(p.label){case 0:if(re(n("string",e)&&n("string",null==t?void 0:t.deviceManufacturer,!0)).throw(Z.invalidParameters),(null==t?void 0:t.deviceOS)&&re(Ie(Ee,t.deviceOS.platform,!0)&&n("string",t.deviceOS.version,!0)).throw(Z.invalidParameters),!this.currentUser)return[3,6];a={deviceOS:"".concat((null===(s=null==t?void 0:t.deviceOS)||void 0===s?void 0:s.platform)||Ee.IOS,"-").concat((null===(o=null==t?void 0:t.deviceOS)||void 0===o?void 0:o.version)||"unknown"),deviceManufacturer:null==t?void 0:t.deviceManufacturer,systemPushEnabled:null==t?void 0:t.systemPushEnabled},p.label=1;case 1:return p.trys.push([1,4,,5]),c=z.of(this._iid),u=c.sessionManager,d=c.sdkState,l=c.requestQueue,u.hasDeviceToken(b.APNS,e)?[2,Se.SUCCESS]:(h=new jt({userId:d.userId,token:e,deviceOS:a.deviceOS,deviceManufacturer:a.deviceManufacturer,systemPushEnabled:a.systemPushEnabled}),[4,l.send(h)]);case 2:return p.sent(),[4,ce((function(){return r(f,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return u.setDeviceToken(b.APNS,e,a),[4,u.saveDeviceToken()];case 1:return t.sent(),[2]}}))}))}))];case 3:return p.sent(),this._apnsPushToken="",[2,Se.SUCCESS];case 4:return p.sent(),[2,Se.ERROR];case 5:return[3,7];case 6:return this._apnsPushToken=e,[2,Se.PENDING];case 7:return[2]}}))}))},t.prototype.unregisterAPNSPushTokenForCurrentUser=function(e){return r(this,void 0,void 0,(function(){var t,s,o,a,c,u,d=this;return i(this,(function(l){switch(l.label){case 0:if(re(n("string",e)).throw(Z.invalidParameters),!this.currentUser)return[3,6];l.label=1;case 1:return l.trys.push([1,4,,5]),t=z.of(this._iid),s=t.sessionManager,o=t.sdkState,a=t.requestQueue,c=new xt({userId:o.userId,token:e}),[4,a.send(c)];case 2:return u=l.sent().lastDeletedAt,[4,ce((function(){return r(d,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return s.unsetDeviceToken(b.APNS,e),s.setDeviceTokenDeletedAt(u),[4,s.saveDeviceToken()];case 1:return t.sent(),[2]}}))}))}))];case 3:return l.sent(),this._apnsPushToken="",[2,Se.SUCCESS];case 4:return l.sent(),[2,Se.ERROR];case 5:return[3,7];case 6:return this._apnsPushToken=e,[2,Se.PENDING];case 7:return[2]}}))}))},t.prototype.unregisterAPNSPushTokenAllForCurrentUser=function(){return r(this,void 0,void 0,(function(){var e,t,n,s,o,a,c=this;return i(this,(function(u){switch(u.label){case 0:return this.currentUser?(e=z.of(this._iid),t=e.sessionManager,n=e.sdkState,s=e.requestQueue,o=new Kt({userId:n.userId}),[4,s.send(o)]):[3,3];case 1:return a=u.sent().lastDeletedAt,[4,ce((function(){return r(c,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return t.unsetDeviceTokens(b.APNS),t.setDeviceTokenDeletedAt(a),[4,t.saveDeviceToken()];case 1:return e.sent(),[2]}}))}))}))];case 2:u.sent(),u.label=3;case 3:return[2]}}))}))},t.prototype.markPushNotificationAsDelivered=function(e,t){var n;return void 0===t&&(t=!0),r(this,void 0,void 0,(function(){var r,s,o,a,c,u,d,l,h,f,p,v,g,m,_,b,y,w,k;return i(this,(function(i){switch(i.label){case 0:if(r=z.of(this._iid),s=r.logger,o=r.sessionManager,a=r.requestQueue,c=r.pushNotificationAckManager,s.debug("markPushNotificationAsDelivered:",e),u=Tn.DELIVERED,d=c.parseData(e),l=d.pushTrackingId,h=d.sessionTopics,f=d.sessionKey,p=d.messageId,v=d.channelKey,g=d.templateKey,m=d.notificationEventDeadline,!f)throw s.info("Can't use markPushNotificationAsDelivered() feature."),Z.malformedDataError;if(!h.includes(Te.PUSH_ACKNOWLEDGEMENT))throw s.info("Can't use markPushNotificationAsDelivered() feature."),Z.malformedDataError;if(c.isAcked(l,u))return s.info("already delivered push notification:",l),[2];_=Boolean(v),b=t&&_,y=null===(n=o.deviceTokens[0])||void 0===n?void 0:n.token,w=new zn({deviceToken:null!=y?y:"",pushTrackingId:l,eventType:u,messageId:p,channelKey:v,templateKey:g,notificationEventDeadline:m,allowedPushNotification:b}),f&&(w.headers["Session-Key"]=f),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,a.send(w)];case 2:return i.sent(),c.markAsAcked(l,u),[3,4];case 3:throw k=i.sent(),s.debug("failed to mark push notification as delivered. push tracking id: ".concat(l,". error: ").concat(k)),k;case 4:return[2]}}))}))},t.prototype.markPushNotificationAsClicked=function(e){var t;return r(this,void 0,void 0,(function(){var n,r,s,o,a,c,u,d,l,h,f,p,v,g,m,_,b;return i(this,(function(i){switch(i.label){case 0:if(n=z.of(this._iid),r=n.logger,s=n.sessionManager,o=n.requestQueue,a=n.pushNotificationAckManager,r.debug("markPushNotificationAsClicked:",e),c=Tn.CLICKED,u=a.parseData(e),d=u.pushTrackingId,l=u.sessionTopics,h=u.sessionKey,f=u.messageId,p=u.channelKey,v=u.templateKey,g=u.notificationEventDeadline,!h)throw r.info("Can't use markPushNotificationAsClicked() feature."),Z.malformedDataError;if(!l.includes(Te.PUSH_ACKNOWLEDGEMENT))throw r.info("Can't use markPushNotificationAsClicked() feature."),Z.malformedDataError;if(a.isAcked(d,c))return r.info("already clicked push notification:",d),[2];m=null===(t=s.deviceTokens[0])||void 0===t?void 0:t.token,_=new zn({deviceToken:null!=m?m:"",pushTrackingId:d,eventType:c,messageId:f,channelKey:p,templateKey:v,notificationEventDeadline:g}),h&&(_.headers["Session-Key"]=h),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,o.send(_)];case 2:return i.sent(),a.markAsAcked(d,c),[3,4];case 3:throw b=i.sent(),r.debug("failed to mark push notification as clicked. push tracking id: ".concat(d,". error: ").concat(b)),b;case 4:return[2]}}))}))},t.prototype.getChannelInvitationPreference=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return e=z.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new Bt({userId:t.userId}),[4,n.send(r)];case 1:return s=i.sent(),[2,{autoAccept:s.as(Vt).autoAccept}]}}))}))},t.prototype.setChannelInvitationPreference=function(e){return r(this,void 0,void 0,(function(){var t,r,s,o,a;return i(this,(function(i){switch(i.label){case 0:return re(n("boolean",e)).throw(Z.invalidParameters),t=z.of(this._iid),r=t.sdkState,s=t.requestQueue,o=new Jt({userId:r.userId,willAutoAccept:e}),[4,s.send(o)];case 1:return a=i.sent(),[2,{autoAccept:a.as(Zt).autoAccept}]}}))}))},t.prototype.getDoNotDisturb=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return e=z.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new Xt({userId:t.userId}),[4,n.send(r)];case 1:return s=i.sent(),[2,s.as(Yt).preference]}}))}))},t.prototype.setDoNotDisturb=function(e,t,s,o,a,c){return void 0===t&&(t=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===c&&(c=""),r(this,void 0,void 0,(function(){var r,u,d,l,h;return i(this,(function(i){switch(i.label){case 0:return re(n("boolean",e)&&n("number",t)&&n("number",s)&&n("number",o)&&n("number",a)&&n("string",c)).throw(Z.invalidParameters),r=z.of(this._iid),u=r.sdkState,d=r.requestQueue,l=new $t({userId:u.userId,doNotDisturbOn:e,startHour:t,startMin:s,endHour:o,endMin:a,timezone:c}),[4,d.send(l)];case 1:return h=i.sent(),[2,h.as(en).preference]}}))}))},t.prototype.getSnoozePeriod=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return e=z.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new tn({userId:t.userId}),[4,n.send(r)];case 1:return s=i.sent(),[2,s.as(nn).snoozePeriod]}}))}))},t.prototype.setSnoozePeriod=function(e,t,s){return void 0===t&&(t=0),void 0===s&&(s=0),r(this,void 0,void 0,(function(){var r,o,a,c,u;return i(this,(function(i){switch(i.label){case 0:return re(n("boolean",e)&&n("number",t)&&n("number",s)).throw(Z.invalidParameters),r=z.of(this._iid),o=r.sdkState,a=r.requestQueue,c=new rn({userId:o.userId,snoozeOn:e,startTs:t,endTs:s}),[4,a.send(c)];case 1:return u=i.sent(),[2,u.as(sn).snoozePeriod]}}))}))},t.prototype.getMyPushTokensByToken=function(e,t){return r(this,void 0,void 0,(function(){var r,s,o,a,c,u,d,l,h,f,p,v;return i(this,(function(i){switch(i.label){case 0:return re(n("string",e)&&Ie(b,t)).throw(Z.invalidParameters),r=z.of(this._iid),s=r.sdkState,o=r.requestQueue,a=r.sessionManager,c=new Wt({userId:s.userId,type:t,token:e}),[4,o.send(c)];case 1:u=i.sent(),d=u.as(Gt).pushTokens;try{for(l=X(d.deviceTokens),h=l.next();!h.done;h=l.next())f=h.value,a.setDeviceToken(d.type,f)}catch(e){p={error:e}}finally{try{h&&!h.done&&(v=l.return)&&v.call(l)}finally{if(p)throw p.error}}return[4,a.saveDeviceToken()];case 2:return i.sent(),[2,d]}}))}))},t.prototype.getPushTriggerOption=function(){return r(this,void 0,void 0,(function(){var e,t,n,r;return i(this,(function(i){switch(i.label){case 0:return e=z.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new cn({userId:t.userId}),[4,n.send(r)];case 1:return[2,i.sent().as(un).pushTriggerOption]}}))}))},t.prototype.setPushTriggerOption=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return re(Ie(Pe,e)).throw(Z.invalidParameters),t=z.of(this._iid),n=t.sdkState,r=t.requestQueue,s=new dn({userId:n.userId,pushTriggerOption:e}),[4,r.send(s)];case 1:return[2,i.sent().as(ln).pushTriggerOption]}}))}))},t.prototype.getPushTemplate=function(){return r(this,void 0,void 0,(function(){var e,t,n,r;return i(this,(function(i){switch(i.label){case 0:return e=z.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new hn({userId:t.userId}),[4,n.send(r)];case 1:return[2,i.sent().as(fn).name]}}))}))},t.prototype.setPushTemplate=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return re(Ie(De,e)).throw(Z.invalidParameters),t=z.of(this._iid),n=t.sdkState,r=t.requestQueue,s=new pn({userId:n.userId,templateName:e}),[4,r.send(s)];case 1:return[2,i.sent().as(vn).name]}}))}))},t.prototype.blockUser=function(e){return r(this,void 0,void 0,(function(){var t,r,s,o;return i(this,(function(i){switch(i.label){case 0:return re(e instanceof m||n("string",e)).throw(Z.invalidParameters),t=z.of(this._iid),r=t.sdkState,s=t.requestQueue,o=new on({userId:r.userId,blockedUserId:e instanceof m?e.userId:e}),[4,s.send(o)];case 1:return i.sent(),[2]}}))}))},t.prototype.blockUserWithUserId=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.blockUser(e)]}))}))},t.prototype.unblockUser=function(e){return r(this,void 0,void 0,(function(){var t,r,s,o;return i(this,(function(i){switch(i.label){case 0:return re(e instanceof m||n("string",e)).throw(Z.invalidParameters),t=z.of(this._iid),r=t.sdkState,s=t.requestQueue,o=new an({userId:r.userId,unblockedUserId:e instanceof m?e.userId:e}),[4,s.send(o)];case 1:return i.sent(),[2]}}))}))},t.prototype.unblockUserWithUserId=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.unblockUser(e)]}))}))},t.prototype.getFriendChangeLogsByToken=function(e){return r(this,void 0,void 0,(function(){var t,r,s,o,a;return i(this,(function(i){switch(i.label){case 0:return re(n("string",e)).throw(Z.invalidParameters),t=z.of(this._iid),r=t.sdkState,s=t.requestQueue,o=new gn({userId:r.userId,token:e}),[4,s.send(o)];case 1:return a=i.sent(),[2,a.as(mn).changelogs]}}))}))},t.prototype.getAllowFriendDiscovery=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return e=z.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new Sn({userId:t.userId}),[4,n.send(r)];case 1:return s=i.sent(),[2,s.as(In).allowFriendDiscovery]}}))}))},t.prototype.setAllowFriendDiscovery=function(e){return r(this,void 0,void 0,(function(){var t,r,s,o;return i(this,(function(i){switch(i.label){case 0:return re(n("boolean",e)).throw(Z.invalidParameters),t=z.of(this._iid),r=t.sdkState,s=t.requestQueue,o=new En({userId:r.userId,allowFriendDiscovery:e}),[4,s.send(o)];case 1:return i.sent(),[2,e]}}))}))},t.prototype.uploadFriendDiscoveries=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s,o;return i(this,(function(i){switch(i.label){case 0:return t=z.of(this._iid),n=t.sdkState,r=t.requestQueue,s=new _n({userId:n.userId,discoveries:e}),[4,r.send(s)];case 1:return o=i.sent(),[2,o.as(bn).friendDiscoveryRequestId]}}))}))},t.prototype.deleteFriendDiscovery=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.deleteFriendDiscoveries([e])]}))}))},t.prototype.deleteFriendDiscoveries=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return re(ke("string",e)).throw(Z.invalidParameters),t=z.of(this._iid),n=t.sdkState,r=t.requestQueue,s=new yn({userId:n.userId,discoveryKeys:e}),[4,r.send(s)];case 1:return i.sent(),[2]}}))}))},t.prototype.addFriends=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s,o;return i(this,(function(i){switch(i.label){case 0:return re(ke("string",e)).throw(Z.invalidParameters),t=z.of(this._iid),n=t.sdkState,r=t.requestQueue,s=new wn({userId:n.userId,userIds:e}),[4,r.send(s)];case 1:return o=i.sent(),[2,o.as(kn).users]}}))}))},t.prototype.deleteFriend=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.deleteFriends([e])]}))}))},t.prototype.deleteFriends=function(e){return r(this,void 0,void 0,(function(){var t,n,r,s;return i(this,(function(i){switch(i.label){case 0:return re(ke("string",e)).throw(Z.invalidParameters),t=z.of(this._iid),n=t.sdkState,r=t.requestQueue,s=new Cn({userId:n.userId,userIds:e}),[4,r.send(s)];case 1:return i.sent(),[2]}}))}))},t.prototype.getAllEmoji=function(){return r(this,void 0,void 0,(function(){var e,t,n;return i(this,(function(r){switch(r.label){case 0:return e=z.of(this._iid).requestQueue,t=new Pn,[4,e.send(t)];case 1:return n=r.sent(),[2,n.as(Dn).emojiContainer]}}))}))},t.prototype.getEmojiCategory=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return t=z.of(this._iid).requestQueue,n=new Un({categoryId:e}),[4,t.send(n)];case 1:return r=i.sent(),[2,r.as(On).emojiCategory]}}))}))},t.prototype.getEmoji=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return t=z.of(this._iid).requestQueue,n=new Nn({key:e}),[4,t.send(n)];case 1:return r=i.sent(),[2,r.as(An).emoji]}}))}))},t.prototype.getUIKitConfiguration=function(){return r(this,void 0,void 0,(function(){var e,t,n,r;return i(this,(function(i){switch(i.label){case 0:return e=z.of(this._iid),re(e.hasExtension("sb_uikit")).throw(Z.notSupportedError),t=e.requestQueue,n=new Mn,[4,t.send(n)];case 1:return r=i.sent(),[2,r.as(Ln).uikitConfiguration]}}))}))},t.prototype.getReportCategoryInfoList=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,z.of(this._iid).reportCategoryManager.categories()];case 1:return[2,e.sent()]}}))}))},t}();export{Et as Emoji,Tt as EmojiCategory,Pt as EmojiContainer,Qn as default};