easemob-websdk 4.1.2 → 4.1.3-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Easemob-chat.d.ts +55 -11
- package/Easemob-chat.js +1 -1
- package/chatroom/chatroom.d.ts +12 -0
- package/chatroom/chatroom.js +1 -1
- package/contact/contact.d.ts +7 -2
- package/contact/contact.js +1 -1
- package/group/group.d.ts +12 -0
- package/group/group.js +1 -1
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/presence/presence.js +1 -1
- package/silent/silent.js +1 -1
- package/thread/thread.js +1 -1
- package/translation/translation.js +1 -1
- package/types/indexApi.d.ts +12 -8
- package/uniApp/Easemob-chat.js +1 -1
package/contact/contact.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.websdk=t():e.websdk=t()}(this,(function(){return function(){var e={5491:function(e,t,r){var n,o,i;!function(a){"use strict";if(null!=t&&"number"!=typeof t.nodeType)e.exports=a();else if(null!=r.amdO)o=[],void 0===(i="function"==typeof(n=a)?n.apply(t,o):n)||(e.exports=i);else{var s=a(),c="undefined"!=typeof self?self:$.global;"function"!=typeof c.btoa&&(c.btoa=s.btoa),"function"!=typeof c.atob&&(c.atob=s.atob)}}((function(){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(e){this.message=e}return t.prototype=new Error,t.prototype.name="InvalidCharacterError",{btoa:function(r){for(var n,o,i=String(r),a=0,s=e,c="";i.charAt(0|a)||(s="=",a%1);c+=s.charAt(63&n>>8-a%1*8)){if((o=i.charCodeAt(a+=3/4))>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|o}return c},atob:function(r){var n=String(r).replace(/[=]+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,a=0,s=0,c="";i=n.charAt(s++);~i&&(o=a%4?64*o+i:i,a++%4)?c+=String.fromCharCode(255&o>>(-2*a&6)):0)i=e.indexOf(i);return c}}}))},2006:function(e,t,r){"use strict";r.d(t,{w:function(){return i}}),r(8327),r(5980);var n=r(6916),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i=e.id,a=e.payload,s=e.timestamp,c=e.to,u=a.bodies&&a.bodies.length>0?a.bodies[0]:{},l={},f={},p=a.type?a.type:c.indexOf("@conference.easemob.com")>-1?"groupChat":"singleChat";switch(u.type){case"txt":l={id:i,type:"txt",chatType:p,msg:u.msg||"",to:a.to||"",from:a.from,time:s,ext:a.ext};break;case"img":l={id:i,type:"img",chatType:p,to:a.to,from:a.from,time:s,ext:a.ext,width:(null===(t=u.size)||void 0===t?void 0:t.width)||0,height:(null===(r=u.size)||void 0===r?void 0:r.height)||0,secret:u.secret||"",url:(null==u?void 0:u.url)||"",file:{}};break;case"video":l={id:i,type:"video",chatType:p,from:a.from,to:a.to,url:(null==u?void 0:u.url)||"",secret:u.secret||"",filename:u.filename,length:u.length||0,file:{},file_length:u.fileLength||0,filetype:a.ext.file_type||"",ext:a.ext,time:s};break;case"loc":l={id:i,type:"loc",chatType:p,from:a.from,to:a.to,buildingName:u.buildingName||"",addr:u.addr,lat:u.lat,lng:u.lng,ext:a.ext,time:s};break;case"audio":l={id:i,type:"audio",chatType:p,from:a.from,to:a.to,secret:u.secret||"",ext:a.ext,time:s,url:(null==u?void 0:u.url)||"",file:{},filename:u.filename,length:a.ext.duration||0,file_length:u.fileLength||0,filetype:a.ext.file_type||""};break;case"file":l={id:i,type:"file",chatType:p,from:a.from,to:a.to,ext:a.ext,time:s,url:(null==u?void 0:u.url)||"",secret:u.secret||"",file:{},filename:u.filename||"",length:u.length||0,file_length:u.file_length||0,filetype:a.ext.file_type||""};break;case"cmd":l={id:i,type:"cmd",chatType:p,from:a.from,to:a.to,ext:a.ext,time:s,action:u.action||""};break;case"custom":l={id:i,type:"custom",chatType:p,from:a.from,to:a.to,ext:a.ext,time:s,customEvent:u.customEvent||""};break;default:n.kg.error("unexpected message: ".concat(e))}if(a.msgConfig&&(f.msgConfig=a.msgConfig),null==a?void 0:a.meta){var d=a.meta;d.thread&&(f.chatThread={messageId:d.thread.msg_parent_id,parentId:d.thread.muc_parent_id,chatThreadName:d.thread.thread_name}),d.reactions&&(f.reactions=d.reactions),d.translations&&(f.translations=d.translations)}return o(o({},l),f)}},1222:function(e,t,r){"use strict";r.d(t,{XZ:function(){return s}}),r(3786),r(1362),r(900),r(7988),r(9889),r(6619);var n=r(3365),o=r(7480);function i(){var e=this.context.appName,t=this.context.orgName;return!(!e||!t)||(this.onError&&this.onError({type:n.E.WEBIM_CONNCTION_AUTH_ERROR,message:"appName or orgName is illegal"}),!1)}function a(){var e;if(!this.context.accessToken){var t=o.Z.create({type:n.E.WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR,message:"token not assign error"});return this.onError&&this.onError(t),null===(e=this.eventHandler)||void 0===e||e.dispatch("onError",t),!1}return!0}function s(){return a.call(this)&&i.call(this)}},4306:function(e,t,r){"use strict";r.d(t,{F3:function(){return o},Nl:function(){return n}}),r(1685),r(5724),r(900),r(2486),r(4261);var n=new Map,o=(new Map,1e3)},3681:function(e,t,r){"use strict";var n,o,i,a,s,c;r.d(t,{fI:function(){return o}}),function(e){e[e.UNKNOWOPERATION=-1]="UNKNOWOPERATION",e[e.REST_GET_SESSION_LIST=1]="REST_GET_SESSION_LIST",e[e.REST_DEL_SESSION=2]="REST_DEL_SESSION",e[e.REST_GET_HISTORY_MESSAGE=3]="REST_GET_HISTORY_MESSAGE",e[e.REST_OPERATE=10]="REST_OPERATE",e[e.MSYNC_SENDMESSAGE=11]="MSYNC_SENDMESSAGE",e[e.MSYNC_RECALLMESSAGE=12]="MSYNC_RECALLMESSAGE",e[e.MSYNC_OPERATE=20]="MSYNC_OPERATE",e[e.ROSTER_ADD=21]="ROSTER_ADD",e[e.ROSTER_REMOVE=22]="ROSTER_REMOVE",e[e.ROSTER_ACCEPT=23]="ROSTER_ACCEPT",e[e.ROSTER_DECLINE=24]="ROSTER_DECLINE",e[e.ROSTER_BAN=25]="ROSTER_BAN",e[e.ROSTER_ALLOW=26]="ROSTER_ALLOW",e[e.ROSTER_BLACKLIST=27]="ROSTER_BLACKLIST",e[e.ROSTER_CONTACTS=28]="ROSTER_CONTACTS",e[e.ROSTER_OPERATE=30]="ROSTER_OPERATE",e[e.USER_LOGIN=31]="USER_LOGIN",e[e.USER_CREATE=32]="USER_CREATE",e[e.USER_UPDATE_USERINFO=33]="USER_UPDATE_USERINFO",e[e.USER_FETCH_USERINFO=34]="USER_FETCH_USERINFO",e[e.USER_UPDATE_NICK=35]="USER_UPDATE_NICK",e[e.USER_UPLOAD_PUSH_TOKEN=36]="USER_UPLOAD_PUSH_TOKEN",e[e.USER_OPERATE=40]="USER_OPERATE",e[e.GROUP_CREATEGROUP=41]="GROUP_CREATEGROUP",e[e.GROUP_BLOCK_MESSAGE=42]="GROUP_BLOCK_MESSAGE",e[e.GROUP_FETCH_PUBLICGROUPS_WITHCURSOR=43]="GROUP_FETCH_PUBLICGROUPS_WITHCURSOR",e[e.GROUP_FETCH_USERS_GROUP=44]="GROUP_FETCH_USERS_GROUP",e[e.GROUP_CHANGE_OWNER=45]="GROUP_CHANGE_OWNER",e[e.GROUP_FETCH_SPECIFICATION=46]="GROUP_FETCH_SPECIFICATION",e[e.GROUP_CHANGE_GROUPATTRIBUTE=47]="GROUP_CHANGE_GROUPATTRIBUTE",e[e.GROUP_FETCH_MEMEBERS=48]="GROUP_FETCH_MEMEBERS",e[e.GROUP_GET_ADMIN=49]="GROUP_GET_ADMIN",e[e.GROUP_SET_ADMIN=50]="GROUP_SET_ADMIN",e[e.GROUP_REMOVE_ADMIN=51]="GROUP_REMOVE_ADMIN",e[e.GROUP_DESTOTYGROUP=52]="GROUP_DESTOTYGROUP",e[e.GROUP_LEAVEGROUP=53]="GROUP_LEAVEGROUP",e[e.GROUP_INVITE_TO_GROUP=54]="GROUP_INVITE_TO_GROUP",e[e.GROUP_JOIN_PUBLICGROUP=55]="GROUP_JOIN_PUBLICGROUP",e[e.GROUP_ACCEPT_JOINPUBLICGROUPAPPL=56]="GROUP_ACCEPT_JOINPUBLICGROUPAPPL",e[e.GROUP_DECLINE_JOINPUBLICGROUPAPPL=57]="GROUP_DECLINE_JOINPUBLICGROUPAPPL",e[e.GROUP_ACCEPT_INVITATION=58]="GROUP_ACCEPT_INVITATION",e[e.GROUP_DECLINE_INVITATION=59]="GROUP_DECLINE_INVITATION",e[e.GROUP_REMOVE_MEMBER=60]="GROUP_REMOVE_MEMBER",e[e.GROUP_REMOVE_MEMBERS=61]="GROUP_REMOVE_MEMBERS",e[e.GROUP_MUTE_MEMBERS=62]="GROUP_MUTE_MEMBERS",e[e.GROUP_UNMUTE_MEMBERS=63]="GROUP_UNMUTE_MEMBERS",e[e.GROUP_FETCH_MUTES=64]="GROUP_FETCH_MUTES",e[e.GROUP_BLOCK_MEMBER=65]="GROUP_BLOCK_MEMBER",e[e.GROUP_BLOCK_MEMBERS=66]="GROUP_BLOCK_MEMBERS",e[e.GROUP_UNBLOCK_MEMBER=67]="GROUP_UNBLOCK_MEMBER",e[e.GROUP_UNBLOCK_MEMBERS=68]="GROUP_UNBLOCK_MEMBERS",e[e.GROUP_GET_BLOCK_LIST=69]="GROUP_GET_BLOCK_LIST",e[e.GROUP_MUTE_ALLMEMBERS=70]="GROUP_MUTE_ALLMEMBERS",e[e.GROUP_UNMUTE_ALLMEMBERS=71]="GROUP_UNMUTE_ALLMEMBERS",e[e.GROUP_ADD_WHITELIST=72]="GROUP_ADD_WHITELIST",e[e.GROUP_REMOVE_WHITELIST=73]="GROUP_REMOVE_WHITELIST",e[e.GROUP_FETCH_WHITELIST=74]="GROUP_FETCH_WHITELIST",e[e.GROUP_IS_IN_WHITELIST=75]="GROUP_IS_IN_WHITELIST",e[e.GROUP_GET_READ_USERS=76]="GROUP_GET_READ_USERS",e[e.GROUP_FETCH_ANNOUNCEMENT=77]="GROUP_FETCH_ANNOUNCEMENT",e[e.GROUP_UPDATE_ANNOUNCEMENT=78]="GROUP_UPDATE_ANNOUNCEMENT",e[e.GROUP_UPLOAD_SHAREDFILE=79]="GROUP_UPLOAD_SHAREDFILE",e[e.GROUP_DELETE_SHAREDFILE=80]="GROUP_DELETE_SHAREDFILE",e[e.GROUP_FETCH_SHAREDFILE=81]="GROUP_FETCH_SHAREDFILE",e[e.GROUP_DOWNLOAD_SHAREDFILE=82]="GROUP_DOWNLOAD_SHAREDFILE",e[e.GROUP_OPERATE=100]="GROUP_OPERATE",e[e.CHATROOM_FETCH_CHATROOMSWITHPAGE=101]="CHATROOM_FETCH_CHATROOMSWITHPAGE",e[e.CHATROOM_CREATECHATROOM=102]="CHATROOM_CREATECHATROOM",e[e.CHATROOM_DESTORYCHATROOM=103]="CHATROOM_DESTORYCHATROOM",e[e.CHATROOM_FETCH_SPECIFICATION=104]="CHATROOM_FETCH_SPECIFICATION",e[e.CHATROOM_CHANGE_ATTRIBUTE=105]="CHATROOM_CHANGE_ATTRIBUTE",e[e.CHATROOM_REMOVE_MEMBER=106]="CHATROOM_REMOVE_MEMBER",e[e.CHATROOM_REMOVE_MEMBERS=107]="CHATROOM_REMOVE_MEMBERS",e[e.CHATROOM_ADD_MEMBERS=108]="CHATROOM_ADD_MEMBERS",e[e.CHATROOM_JOINCAHTROOM=109]="CHATROOM_JOINCAHTROOM",e[e.CHATROOM_LEAVECAHTROOM=110]="CHATROOM_LEAVECAHTROOM",e[e.CHATROOM_FETCH_MEMBERS=111]="CHATROOM_FETCH_MEMBERS",e[e.CHATROOM_GET_ADMIN=112]="CHATROOM_GET_ADMIN",e[e.CHATROOM_SET_ADMIN=113]="CHATROOM_SET_ADMIN",e[e.CHATROOM_REMOVE_ADMIN=114]="CHATROOM_REMOVE_ADMIN",e[e.CHATROOM_MUTE_USER=115]="CHATROOM_MUTE_USER",e[e.CHATROOM_UNMUTE_USER=116]="CHATROOM_UNMUTE_USER",e[e.CHATROOM_FETCH_MUTES=117]="CHATROOM_FETCH_MUTES",e[e.CHATROOM_BLOCK_USER=118]="CHATROOM_BLOCK_USER",e[e.CHATROOM_BLOCK_USERS=119]="CHATROOM_BLOCK_USERS",e[e.CHATROOM_UNBLOCK_USER=120]="CHATROOM_UNBLOCK_USER",e[e.CHATROOM_UNBLOCK_USERS=121]="CHATROOM_UNBLOCK_USERS",e[e.CHATROOM_FETCH_BANS=122]="CHATROOM_FETCH_BANS",e[e.CHATROOM_MUTE_ALLMEMEBERS=123]="CHATROOM_MUTE_ALLMEMEBERS",e[e.CHATROOM_UNMUTE_ALLMEMEBERS=124]="CHATROOM_UNMUTE_ALLMEMEBERS",e[e.CHATROOM_ADD_WHITELIST=125]="CHATROOM_ADD_WHITELIST",e[e.CHATROOM_REMOVE_WHITELIST=126]="CHATROOM_REMOVE_WHITELIST",e[e.CHATROOM_FETCH_WHITELIST=127]="CHATROOM_FETCH_WHITELIST",e[e.CHATROOM_FETCH_MEMBERIN_WHITELIST=128]="CHATROOM_FETCH_MEMBERIN_WHITELIST",e[e.CHATROOM_FETCH_ANNOUNCEMENT=129]="CHATROOM_FETCH_ANNOUNCEMENT",e[e.CHATROOM_UPDATE_ANNOUNCEMENT=130]="CHATROOM_UPDATE_ANNOUNCEMENT",e[e.CHATROOM_REMOVE_SHARE_FILE=131]="CHATROOM_REMOVE_SHARE_FILE",e[e.CHATROOM_GET_SHARE_FILE_LIST=132]="CHATROOM_GET_SHARE_FILE_LIST",e[e.CHATROOM_UPLOAD_FILE=133]="CHATROOM_UPLOAD_FILE",e[e.CHATROOM_OPERATE=150]="CHATROOM_OPERATE"}(n||(n={})),function(e){e.SDK_INTERNAL="SDK_INTERNAL",e.LOGIN="USER_LOGIN",e.REGISTER="USER_CREATE",e.GET_CHATROOM_LIST="CHATROOM_FETCH_CHATROOMSWITHPAGE",e.CREATE_CHATROOM="CHATROOM_CREATECHATROOM",e.DESTROY_CHATROOM="CHATROOM_DESTORYCHATROOM",e.GET_CHATROOM_DETAIL="CHATROOM_FETCH_SPECIFICATION",e.MODIFY_CHATROOM="CHATROOM_CHANGE_ATTRIBUTE",e.REMOVE_CHATROOM_MEMBER="CHATROOM_REMOVE_MEMBER",e.MULTI_REMOVE_CHATROOM_MEMBER="CHATROOM_REMOVE_MEMBERS",e.ADD_USERS_TO_CHATROOM="CHATROOM_ADD_MEMBERS",e.JOIN_CHATROOM="CHATROOM_JOINCAHTROOM",e.QUIT_CHATROOM="CHATROOM_LEAVECAHTROOM",e.LIST_CHATROOM_MEMBERS="CHATROOM_FETCH_MEMBERS",e.GET_CHATROOM_ADMIN="CHATROOM_GET_ADMIN",e.SET_CHATROOM_ADMIN="CHATROOM_SET_ADMIN",e.REMOVE_CHATROOM_ADMIN="CHATROOM_REMOVE_ADMIN",e.MUTE_CHATROOM_MEMBER="CHATROOM_MUTE_USER",e.REMOVE_MUTE_CHATROOM_MEMBER="CHATROOM_UNMUTE_USER",e.GET_MUTE_CHATROOM_MEMBERS="CHATROOM_FETCH_MUTES",e.SET_CHATROOM_MEMBER_TO_BLACK="CHATROOM_BLOCK_USER",e.MULTI_SET_CHATROOM_MEMBER_TO_BLACK="CHATROOM_BLOCK_USERS",e.REMOVE_CHATROOM_MEMBER_BLACK="CHATROOM_UNBLOCK_USER",e.MULTI_REMOVE_CHATROOM_MEMBER_BLACK="CHATROOM_UNBLOCK_USERS",e.GET_CHATROOM_BLOCK_MEMBERS="CHATROOM_FETCH_BANS",e.DISABLED_CHATROOM_SEND_MSG="CHATROOM_MUTE_ALLMEMEBERS",e.ENABLE_CHATROOM_SEND_MSG="CHATROOM_UNMUTE_ALLMEMEBERS",e.ADD_CHATROOM_WHITE_USERS="CHATROOM_ADD_WHITELIST",e.REMOVE_CHATROOM_WHITE_USERS="CHATROOM_REMOVE_WHITELIST",e.GET_CHATROOM_WHITE_USERS="CHATROOM_FETCH_WHITELIST",e.CHECK_CHATROOM_WHITE_USER="CHATROOM_FETCH_MEMBERIN_WHITELIST",e.GET_CHATROOM_ANN="CHATROOM_FETCH_ANNOUNCEMENT",e.UPDATE_CHATROOM_ANN="CHATROOM_UPDATE_ANNOUNCEMENT",e.DELETE_CHATROOM_FILE="CHATROOM_REMOVE_SHARE_FILE",e.GET_CHATROOM_FILES="CHATROOM_GET_SHARE_FILE_LIST",e.UPLOAD_CHATROOM_FILE="CHATROOM_UPLOAD_FILE",e.CREATE_GROUP="GROUP_CREATEGROUP",e.BLOCK_GROUP="GROUP_BLOCK_MESSAGE",e.LIST_GROUP="GROUP_FETCH_PUBLICGROUPS_WITHCURSOR",e.GET_USER_GROUP="GROUP_FETCH_USERS_GROUP",e.CHANGE_OWNER="GROUP_CHANGE_OWNER",e.GET_GROUP_INFO="GROUP_FETCH_SPECIFICATION",e.MODIFY_GROUP="GROUP_CHANGE_GROUPATTRIBUTE",e.LIST_GROUP_MEMBER="GROUP_FETCH_MEMEBERS",e.GET_GROUP_ADMIN="GROUP_GET_ADMIN",e.SET_GROUP_ADMIN="GROUP_SET_ADMIN",e.REMOVE_GROUP_ADMIN="GROUP_REMOVE_ADMIN",e.DISSOLVE_GROUP="GROUP_DESTOTYGROUP",e.QUIT_GROUP="GROUP_LEAVEGROUP",e.INVITE_TO_GROUP="GROUP_INVITE_TO_GROUP",e.JOIN_GROUP="GROUP_JOIN_PUBLICGROUP",e.AGREE_JOIN_GROUP="GROUP_ACCEPT_JOINPUBLICGROUPAPPL",e.REJECT_JOIN_GROUP="GROUP_DECLINE_JOINPUBLICGROUPAPPL",e.AGREE_INVITE_GROUP="GROUP_ACCEPT_INVITATION",e.REJECT_INVITE_GROUP="GROUP_DECLINE_INVITATION",e.REMOVE_GROUP_MEMBER="GROUP_REMOVE_MEMBER",e.MULTI_REMOVE_GROUP_MEMBER="GROUP_REMOVE_MEMBERS",e.MUTE_GROUP_MEMBER="GROUP_MUTE_MEMBERS",e.UNMUTE_GROUP_MEMBER="GROUP_UNMUTE_MEMBERS",e.GET_GROUP_MUTE_LIST="GROUP_FETCH_MUTES",e.BLOCK_GROUP_MEMBER="GROUP_BLOCK_MEMBER",e.BLOCK_GROUP_MEMBERS="GROUP_BLOCK_MEMBERS",e.UNBLOCK_GROUP_MEMBER="GROUP_UNBLOCK_MEMBER",e.UNBLOCK_GROUP_MEMBERS="GROUP_UNBLOCK_MEMBERS",e.GET_GROUP_BLACK_LIST="GROUP_GET_BLOCK_LIST",e.DISABLED_SEND_GROUP_MSG="GROUP_MUTE_ALLMEMBERS",e.ENABLE_SEND_GROUP_MSG="GROUP_UNMUTE_ALLMEMBERS",e.ADD_USERS_TO_GROUP_WHITE="GROUP_ADD_WHITELIST",e.REMOVE_GROUP_WHITE_MEMBER="GROUP_REMOVE_WHITELIST",e.GET_GROUP_WHITE_LIST="GROUP_FETCH_WHITELIST",e.IS_IN_GROUP_WHITE_LIST="GROUP_IS_IN_WHITELIST",e.GET_GROUP_MSG_READ_USER="GROUP_GET_READ_USERS",e.GET_GROUP_ANN="GROUP_FETCH_ANNOUNCEMENT",e.UPDATE_GROUP_ANN="GROUP_UPDATE_ANNOUNCEMENT",e.UPLOAD_GROUP_FILE="GROUP_UPLOAD_SHAREDFILE",e.DELETE_GROUP_FILE="GROUP_DELETE_SHAREDFILE",e.GET_GROUP_FILE_LIST="GROUP_FETCH_SHAREDFILE",e.DOWN_GROUP_FILE="GROUP_DOWNLOAD_SHAREDFILE",e.GET_SESSION_LIST="REST_GET_SESSION_LIST",e.DELETE_SESSION="REST_DEL_SESSION",e.GET_HISTORY_MSG="REST_GET_HISTORY_MESSAGE",e.UPDATE_USER_INFO="USER_UPDATE_USERINFO",e.GET_USER_INFO="USER_FETCH_USERINFO",e.UPDATE_USER_NICK="USER_UPDATE_NICK",e.UPLOAD_PUSH_TOKEN="USER_UPLOAD_PUSH_TOKEN",e.GET_BLACK_LIST="ROSTER_BLACKLIST",e.GET_CONTACTS="ROSTER_CONTACTS",e.add="ROSTER_ADD",e.remove="ROSTER_REMOVE",e.accept="ROSTER_ACCEPT",e.decline="ROSTER_DECLINE",e.ban="ROSTER_BAN",e.allow="ROSTER_ALLOW",e.SEND_MSG="MSYNC_SENDMESSAGE",e.UPLOAD_MSG_ATTACH="UPLOAD_MSG_ATTACH",e.SEND_RECALL_MSG="MSYNC_RECALLMESSAGE"}(o||(o={})),function(e){e.GET_DNS="REST_DNSLIST",e.LOGIN_BY_AGORA_TOKEN="LOGIN_BY_AGORA_TOKEN",e.LOGIN_BY_PWD="LOGIN_BY_PWD",e.RESISTER="REGISTER"}(i||(i={})),function(e){e[e["5G"]=7]="5G",e[e["4G"]=7]="4G",e[e["3G"]=7]="3G",e[e["2G"]=7]="2G",e[e["SLOW-2G"]=7]="SLOW-2G",e[e.WIFI=2]="WIFI",e[e.LAN=1]="LAN",e[e.DISCONNECTED=0]="DISCONNECTED",e[e.NONE=0]="NONE",e[e.UNKNOWN=-1]="UNKNOWN",e[e["WEBIM UNABLE TO GET"]=-2]="WEBIM UNABLE TO GET"}(a||(a={})),function(e){e[e.success=200]="success",e[e.failed=500]="failed"}(s||(s={})),function(e){e[e.web=0]="web",e[e.native=1]="native"}(c||(c={}))},7480:function(e,t){"use strict";var r=function(){function e(e){this.type=e.type,this.message=e.message,this.data=e.data}return e.create=function(t){return new e(t)},e}();t.Z=r},983:function(e,t,r){"use strict";r(9782),r(900),r(937),r(8453),r(8668),r(1362),r(7988),r(5980),r(7095);var n=r(9168),o=r.n(n),i=r(2006),a=r(7551),s=r(6916),c=r(2591),u={0:"TEXT",1:"IMAGE",2:"VIDEO",3:"LOCATION",4:"VOICE",5:"FILE",6:"COMMAND",7:"CUSTOM"};function l(e){for(var t={},r=0;r<e.length;r++)if(8===e[r].type)t[e[r].key]=JSON.parse(e[r].stringValue);else if(7===e[r].type)t[e[r].key]=e[r].stringValue;else if(6===e[r].type)t[e[r].key]=e[r].doubleValue;else if(5===e[r].type)t[e[r].key]=e[r].floatValue;else if(1===e[r].type){var n=e[r].varintValue,i=new(o())(n.low,n.high,n.unsigned).toString();t[e[r].key]=0!==Number(i)}else 2!==e[r].type&&3!==e[r].type&&4!==e[r].type||(n=e[r].varintValue,i=new(o())(n.low,n.high,n.unsigned).toString(),t[e[r].key]=Number(i));return t}function f(e,t,r){if(this.delivery&&e!==t){var n=this.getUniqueId(),o=new c.Message("delivery",n);o.set({ackId:r,to:e}),s.kg.debug("send delivery ack"),this.send(o.body)}}t.Z=function(e,t,r,n){var c,p,d,h,E,_,O,g=new(o())(e.timestamp.low,e.timestamp.high,e.timestamp.unsigned).toString(),T=this.root.lookup("easemob.pb.MessageBody").decode(e.payload),R=1;if(e.meta&&e.meta.length)switch(a.P6.parseNotify(e.meta).is_online){case 0:R=0;break;case 1:R=1;break;default:R=2}else R=3;var v=new(o())(e.id.low,e.id.high,e.id.unsigned).toString(),y=T.ackMessageId?new(o())(T.ackMessageId.low,T.ackMessageId.high,T.ackMessageId.unsigned).toString():"",m="",I=T.from&&T.from.name,S=T.to&&T.to.name;switch(s.kg.debug("thirdMessage:",T),T.type){case 1:m="chat","agoraToken"===this.grantType&&(m="singleChat"),this.delivery&&f.call(this,I,S,v);break;case 2:m="groupchat","agoraToken"===this.grantType&&(m="groupChat");break;case 3:m="chatroom","agoraToken"===this.grantType&&(m="chatRoom"),R=1;break;case 4:m="read_ack";var N=void 0;return T.ext[0]&&JSON.parse(T.ext[0].stringValue)?(N={id:v,type:"read",from:I,to:S,mid:y,groupReadCount:T.ext[0]&&JSON.parse(T.ext[0].stringValue),ackContent:T.ackContent,onlineState:R},this.onReadMessage&&this.onReadMessage(N),void(null===(c=this.eventHandler)||void 0===c||c.dispatch("onReadMessage",N))):(N={id:v,type:"read",from:I,to:S,mid:y,onlineState:R},this.onReadMessage&&this.onReadMessage(N),void(null===(p=this.eventHandler)||void 0===p||p.dispatch("onReadMessage",N)));case 5:m="deliver_ack",this.onDeliveredMessage&&this.onDeliveredMessage({id:v,type:"delivery",from:I,to:S,mid:y,onlineState:R});var C={id:v,type:"delivery",from:I,to:S,mid:y,onlineState:R};return void(null===(d=this.eventHandler)||void 0===d||d.dispatch("onDeliveredMessage",C));case 6:m="recall";var A={id:v,from:I||"admin",to:S,mid:y,onlineState:R};return this.onRecallMessage&&this.onRecallMessage(A),void(null===(h=this.eventHandler)||void 0===h||h.dispatch("onRecallMessage",A));case 7:this.onChannelMessage&&this.onChannelMessage({id:v,type:"channel",chatType:"singleChat",from:I,to:S,time:Number(g),onlineState:R});var M={id:v,type:"channel",chatType:"singleChat",from:I,to:S,time:Number(g),onlineState:R};return void(null===(E=this.eventHandler)||void 0===E||E.dispatch("onChannelMessage",M));default:return void s.kg.error("unexpected message type: ".concat(T.type))}var U,b="normal";if("chat"===m.toLowerCase()||"singleChat"===m)U="singleChat";else if("groupchat"===m.toLowerCase()||"groupChat"===m)U="groupChat";else if(U="chatRoom",R=1,e.ext){var L=l([e.ext]);b=0===L.chatroom_msg_tag?"high":2===L.chatroom_msg_tag?"low":"normal"}for(var P=0;P<T.contents.length;P++){var x={},w={},G=t.errorCode>0,D=t.errorCode,B=t.reason,H=T.contents[P],F={},k=[],W=[],j=null,q=null,K=void 0;if(T.ext&&(F=l(T.ext)),T.meta&&"string"==typeof T.meta){var V=JSON.parse(T.meta);V.reaction&&(k=V.reaction).forEach((function(e){e.isAddedBySelf=e.state,delete e.state})),V.translations&&(W=V.translations),V.thread&&"{}"!==JSON.stringify(V.thread)&&(j={messageId:V.thread.msg_parent_id,parentId:V.thread.muc_parent_id,chatThreadName:V.thread.thread_name}),V.thread_overview&&"{}"!==JSON.stringify(V.thread_overview)&&(q={id:V.thread_overview.id,parentId:V.thread_overview.muc_parent_id,name:V.thread_overview.name,lastMessage:(0,i.w)(V.thread_overview.last_message),createTimestamp:V.thread_overview.create_timestamp,updateTimestamp:V.thread_overview.update_timestamp,messageCount:V.thread_overview.message_count})}switch(H.type){case 0:!(x={id:v,type:m,contentsType:u[H.type],from:I,to:S,data:H.text,ext:F,sourceMsg:H.text,time:g,msgConfig:T.msgConfig,onlineState:R}).msgConfig&&delete T.msgConfig,x.error=G,x.errorText=B,x.errorCode=D,!r&&this.onTextMessage&&this.onTextMessage(x);var X={id:v,type:"txt",chatType:U,msg:H.text,to:S,from:I,ext:F,time:Number(g),onlineState:R};x.msgConfig&&(X.msgConfig=x.msgConfig),k.length>0&&(X.reactions=k),j&&(X.chatThread=j),q&&(X.chatThreadOverview=q),W.length>0&&(X.translations=W),"chatRoom"===U&&(X.priority=b),w=X,!r&&this.eventHandler&&this.eventHandler.dispatch("onTextMessage",X);break;case 1:var J=(null===(_=null==H?void 0:H.size)||void 0===_?void 0:_.width)||0,z=(null===(O=null==H?void 0:H.size)||void 0===O?void 0:O.height)||0;K=this.useOwnUploadFun?H.remotePath:(H.remotePath&&this.apiUrl+H.remotePath.substr(H.remotePath.indexOf("/",9)))+"?em-redirect=true",H.secretKey&&!this.useOwnUploadFun&&(K="".concat(K,"&share-secret=").concat(H.secretKey)),!(x={id:v,type:m,contentsType:u[H.type],from:I,to:S,url:K,secret:H.secretKey,filename:H.displayName,thumb:this.useOwnUploadFun?"":"".concat(K,"&thumbnail=true"),thumb_secret:H.secretKey,file_length:H.fileLength||"",width:J,height:z,filetype:H.filetype||"",accessToken:this.token,ext:F,time:g,msgConfig:T.msgConfig,onlineState:R}).delay&&delete x.delay,!x.msgConfig&&delete T.msgConfig,x.error=G,x.errorText=B,x.errorCode=D,!r&&this.onPictureMessage&&this.onPictureMessage(x);var Z={id:v,type:"img",chatType:U,from:I,to:S,url:K||"",file:{},width:J,height:z,secret:H.secretKey||"",thumb:this.useOwnUploadFun?"":"".concat(K,"&thumbnail=true"),thumb_secret:H.secretKey,file_length:H.fileLength||0,ext:F,time:Number(g),onlineState:R};x.msgConfig&&(Z.msgConfig=x.msgConfig),k.length>0&&(Z.reactions=k),j&&(Z.chatThread=j),q&&(Z.chatThreadOverview=q),"chatRoom"===U&&(Z.priority=b),w=Z,!r&&this.eventHandler&&this.eventHandler.dispatch("onImageMessage",Z);break;case 2:K=this.useOwnUploadFun?H.remotePath:(H.remotePath&&this.apiUrl+H.remotePath.substr(H.remotePath.indexOf("/",9)))+"?em-redirect=true",H.secretKey&&!this.useOwnUploadFun&&(K="".concat(K,"&share-secret=").concat(H.secretKey)),!(x={id:v,type:m,contentsType:u[H.type],from:I,to:S,url:K,secret:H.secretKey,filename:H.displayName,length:H.duration||"",file_length:H.fileLength||"",filetype:H.filetype||"",accessToken:this.token||"",ext:F,time:g,msgConfig:T.msgConfig,onlineState:R}).delay&&delete x.delay,!x.msgConfig&&delete T.msgConfig,x.error=G,x.errorText=B,x.errorCode=D,!r&&this.onVideoMessage&&this.onVideoMessage(x);var Y={id:v,type:"video",chatType:U,from:I,to:S,url:K,secret:H.secretKey,filename:H.displayName,length:H.duration||0,file:{},file_length:H.fileLength||0,filetype:H.filetype||"",accessToken:this.token||"",ext:F,time:Number(g),onlineState:R};x.msgConfig&&(Y.msgConfig=x.msgConfig),k.length>0&&(Y.reactions=k),j&&(Y.chatThread=j),q&&(Y.chatThreadOverview=q),"chatRoom"===U&&(Y.priority=b),w=Y,!r&&this.eventHandler&&this.eventHandler.dispatch("onVideoMessage",Y);break;case 3:!(x={id:v,type:m,contentsType:u[H.type],from:I,to:S,addr:H.address,buildingName:H.buildingName,lat:H.latitude,lng:H.longitude,ext:F,time:g,msgConfig:T.msgConfig,onlineState:R}).delay&&delete x.delay,!x.msgConfig&&delete T.msgConfig,x.error=G,x.errorText=B,x.errorCode=D,!r&&this.onLocationMessage&&this.onLocationMessage(x);var Q={id:v,type:"loc",chatType:U,from:I,to:S,buildingName:H.buildingName,addr:H.address,lat:H.latitude,lng:H.longitude,ext:F,time:Number(g),onlineState:R};x.msgConfig&&(Q.msgConfig=x.msgConfig),k.length>0&&(Q.reactions=k),j&&(Q.chatThread=j),q&&(Q.chatThreadOverview=q),"chatRoom"===U&&(Q.priority=b),w=Q,!r&&this.eventHandler&&this.eventHandler.dispatch("onLocationMessage",Q);break;case 4:K=this.useOwnUploadFun?H.remotePath:(H.remotePath&&this.apiUrl+H.remotePath.substr(H.remotePath.indexOf("/",9)))+"?em-redirect=true",H.secretKey&&!this.useOwnUploadFun&&(K="".concat(K,"&share-secret=").concat(H.secretKey)),!(x={id:v,type:m,contentsType:u[H.type],from:I,to:S,url:K,secret:H.secretKey,filename:H.displayName,file_length:H.fileLength||"",accessToken:this.token||"",ext:F,length:H.duration,time:g,msgConfig:T.msgConfig,onlineState:R}).delay&&delete x.delay,!x.msgConfig&&delete T.msgConfig,x.error=G,x.errorText=B,x.errorCode=D,!r&&this.onAudioMessage&&this.onAudioMessage(x);var $={id:v,type:"audio",chatType:U,from:I,to:S,url:K,secret:H.secretKey,file:{},filename:H.displayName,length:H.duration||0,file_length:H.fileLength||0,filetype:H.filetype||"",accessToken:this.token||"",ext:F,time:Number(g),onlineState:R};x.msgConfig&&($.msgConfig=x.msgConfig),k.length>0&&($.reactions=k),j&&($.chatThread=j),q&&($.chatThreadOverview=q),"chatRoom"===U&&($.priority=b),w=$,!r&&this.eventHandler&&this.eventHandler.dispatch("onAudioMessage",$);break;case 5:K=this.useOwnUploadFun?H.remotePath:(H.remotePath&&this.apiUrl+H.remotePath.substr(H.remotePath.indexOf("/",9)))+"?em-redirect=true",H.secretKey&&!this.useOwnUploadFun&&(K="".concat(K,"&share-secret=").concat(H.secretKey)),!(x={id:v,type:m,contentsType:u[H.type],from:I,to:S,url:K,secret:H.secretKey,filename:H.displayName,file_length:H.fileLength,accessToken:this.token||"",ext:F,time:g,msgConfig:T.msgConfig,onlineState:R}).delay&&delete x.delay,!x.msgConfig&&delete T.msgConfig,x.error=G,x.errorText=B,x.errorCode=D,!r&&this.onFileMessage&&this.onFileMessage(x);var ee={id:v,type:"file",chatType:U,from:I,to:S,url:K,secret:H.secretKey,file:{},filename:H.displayName,length:H.duration||0,file_length:H.fileLength||0,filetype:H.filetype||"",accessToken:this.token||"",ext:F,time:Number(g),onlineState:R};x.msgConfig&&(ee.msgConfig=x.msgConfig),k.length>0&&(ee.reactions=k),j&&(ee.chatThread=j),q&&(ee.chatThreadOverview=q),"chatRoom"===U&&(ee.priority=b),w=ee,!r&&this.eventHandler&&this.eventHandler.dispatch("onFileMessage",ee);break;case 6:!(x={id:v,type:m,contentsType:u[H.type],from:I,to:S,action:H.action,ext:F,time:g,msgConfig:T.msgConfig,onlineState:R}).msgConfig&&delete T.msgConfig,x.error=G,x.errorText=B,x.errorCode=D,!r&&this.onCmdMessage&&this.onCmdMessage(x);var te={id:v,type:"cmd",chatType:U,from:I,to:S,action:H.action,ext:F,time:Number(g),onlineState:R};x.msgConfig&&(te.msgConfig=x.msgConfig),k.length>0&&(te.reactions=k),j&&(te.chatThread=j),q&&(te.chatThreadOverview=q),"chatRoom"===U&&(te.priority=b),w=te,!r&&this.eventHandler&&this.eventHandler.dispatch("onCmdMessage",te);break;case 7:var re={},ne={};T.contents[0].customExts&&(re=l(T.contents[0].customExts)),T.contents[0].params&&(ne=l(T.contents[0].params)),x={id:v,type:m,contentsType:u[H.type],from:I,to:S,customEvent:H.customEvent,params:ne,customExts:re,ext:F,time:g,onlineState:R},!r&&this.onCustomMessage&&this.onCustomMessage(x);var oe={id:v,type:"custom",chatType:U,from:I,to:S,customEvent:H.customEvent,params:ne,customExts:re,ext:F,time:Number(g),onlineState:R};x.msgConfig&&(oe.msgConfig=x.msgConfig),k.length>0&&(oe.reactions=k),j&&(oe.chatThread=j),q&&(oe.chatThreadOverview=q),"chatRoom"===U&&(oe.priority=b),w=oe,!r&&this.eventHandler&&this.eventHandler.dispatch("onCustomMessage",oe);break;default:s.kg.error("Unknow message type, message:",H)}return n?w:x}}},5163:function(e,t,r){"use strict";r(8668);var n,o=r(6916),i=r(4306),a=r(3681);!function(e){e[e.Add=2]="Add",e[e.Remove=3]="Remove",e[e.Accept=4]="Accept",e[e.Decline=5]="Decline",e[e.Ban=6]="Ban",e[e.Allow=7]="Allow"}(n||(n={}));var s={operatRoster:function(e,t){var r=[],s=this.root.lookup("easemob.pb.RosterBody"),c=s.decode(r);switch(t){case"add":c.operation=n.Add;break;case"remove":c.operation=n.Remove;break;case"accept":c.operation=n.Accept;break;case"decline":c.operation=n.Decline;break;case"ban":c.operation=n.Ban;break;case"allow":c.operation=n.Allow;break;default:o.kg.error("operatRoster:",t)}c.from=this.context.jid;var u=[];if("string"==typeof e.to)u.push({appKey:this.appKey||this.context.appKey,name:e.to,domain:"easemob.com"});else if(e.to instanceof Array)for(var l=0;l<e.to.length;l++)u.push({appKey:this.appKey,name:e.to[l],domain:"easemob.com"});c.to=u,c.reason=e.message||"",c=s.encode(c).finish();var f=this.root.lookup("easemob.pb.Meta").decode(r);f.id=e.id||this.getUniqueId();var p=this.dataReport.geOperateFun({operationName:a.fI[t]});i.Nl.size<=i.F3&&i.Nl.set(f.id,{rpt:p,requestName:a.fI[t]}),f.from=this.context.jid,f.to={domain:"@easemob.com"},f.ns=3,f.payload=c;var d=this.root.lookup("easemob.pb.CommSyncUL"),h=d.decode(r);h.meta=f,h=d.encode(h).finish();var E=this.root.lookup("easemob.pb.MSync"),_=E.decode(r);if(_.version=this.version,_.encryptType=[0],_.command=0,_.guid=this.jid,_.payload=h,_=E.encode(_).finish(),"miniCore"===this.name)this.sock.send(_);else{var O=this.mSync.base64transform(_);this.sock.send(O)}},handleRosterMsg:function(e){var t,r,n,i,a,s,c=this.root.lookup("easemob.pb.RosterBody").decode(e.payload),u={type:"",to:c.to[0].name,from:c.from.name,status:c.reason};switch(c.operation){case 2:u.type="subscribe",this.onContactInvited&&this.onContactInvited(u),null===(t=this.eventHandler)||void 0===t||t.dispatch("onContactInvited",u);break;case 3:u.type="unsubscribed",this.onContactDeleted&&this.onContactDeleted(u),null===(r=this.eventHandler)||void 0===r||r.dispatch("onContactDeleted",u);break;case 4:u.type="subscribed",this.onContactAdded&&this.onContactAdded(u),null===(n=this.eventHandler)||void 0===n||n.dispatch("onContactAdded",u);break;case 5:u.type="unsubscribed",this.onContactRefuse&&this.onContactRefuse(u),null===(i=this.eventHandler)||void 0===i||i.dispatch("onContactRefuse",u);break;case 6:case 7:this.getBlacklist();break;case 8:u.type="subscribed",this.onContactAgreed&&this.onContactAgreed(u),null===(a=this.eventHandler)||void 0===a||a.dispatch("onContactAgreed",u);break;case 9:u.type="unsubscribed",this.onContactRefuse&&this.onContactRefuse(u),null===(s=this.eventHandler)||void 0===s||s.dispatch("onContactRefuse",u);break;default:o.kg.error("handleRosterMsg:",c)}this.onPresence&&u.type&&this.onPresence(u)}};t.Z=s},6916:function(e,t,r){"use strict";function n(){console.log&&(console.log.apply?console.log.apply(console,Array.prototype.slice.call(arguments)):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}r.d(t,{kg:function(){return h}}),r(2657),r(7095),r(8668),r(3535),r(1685),r(900),r(2486),r(4261),r(4838),r(8385),r(7693),r(9782),r(1008),r(7461),r(1362),r(5980),r(514),r(4201),r(6864);var o="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a,s=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},c=function(){},u={};!function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(a||(a={}));var l=function(){function e(e,t,r){this.name=e||"defaultLogger",this.currentLevel=0,this.useCookiePersist=!1,this.storageLogLevelKey="loglevel",this.levels=a,this.logMethods=["trace","debug","info","warn","error"],this.methodFactory=r||this.defaultMethodFactory;var n=this._getPersistedLevel();null==n&&(n=null===t?"WARN":t),this.logs=[],this.config={useCache:!1,maxCache:3145728,color:"",background:""},this.logBytes=0,this.setLevel(n,!1,"")}return e.prototype.setConfig=function(e){this.config=e},e.prototype.getLevel=function(){return this.currentLevel},e.prototype.setLevel=function(e,t,r){if("string"==typeof e&&(e=a[e]),void 0===e&&(e=0),!("number"==typeof e&&e>=0&&e<=this.levels.SILENT))throw Error("log.setLevel() called with invalid level: "+e);if(this.currentLevel=e,!1!==t&&this._persistLevel(e),this.replaceLoggingMethods(e,r),"undefined"==typeof console&&e<a.SILENT)throw Error("No console available for logging")},e.prototype.setDefaultLevel=function(e){this._getPersistedLevel()||this.setLevel(e,!1,"")},e.prototype.enableAll=function(e){this.setLevel(this.levels.TRACE,!0,"")},e.prototype.disableAll=function(e){this.setLevel(this.levels.SILENT,!0,"")},e.prototype.getLogs=function(){return this.logs},e.prototype.download=function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var e=this.getLogs().join("\n"),t=new Blob([e],{type:"text/plain;charset=UTF-8"}),r=window.URL.createObjectURL(t),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download","sdklog"),document.body.appendChild(n),n.click()}},e.prototype._bindMethod=function(e,t,r){var n=this,o=e[t],i=this.getTime();if(r)return this._cacheLog;if("function"==typeof o.bind)return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=n.getTime();o.call.apply(o,s([e,"".concat(a," IM SDK [").concat("log"===t?"debug":t,"]: ")],r,!1)),n.onLog&&n.onLog({time:a,level:"log"===t?"debug":t,logs:r})};try{return Function.prototype.bind.call(o,e,"".concat(i," IM SDK [").concat("log"===t?"debug":t,"]: "))}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}},e.prototype.getTime=function(){var e=new Date;return e.toTimeString().split(" ")[0]+":"+e.getMilliseconds()},e.prototype._cacheLog=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(new Date).toLocaleString()+": ",n="";e.forEach((function(e){"object"===i(e)?n+=JSON.stringify(e)+" ":n+=e+" "})),this._cacheLogCall(r+n)},e.prototype._cacheLogCall=function(e){var t=f(e),r=this.logBytes+t,n=this.config.maxCache;if(!(t>=n)){if(r<n)this.logBytes+=t;else for(var o=r-n,i=0;i<o;){var a=this.logs.shift();void 0!==a&&(i+=f(a))}this.logs.push(e)}},e.prototype._getPersistedLevel=function(){var e;if("undefined"==typeof window)return 5;if("undefined"===(e=window&&window.localStorage&&window.localStorage[this.storageLogLevelKey])){var t=window.document.cookie,r=t.indexOf(encodeURIComponent(this.storageLogLevelKey));-1!==r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}return e||5},e.prototype._persistLevel=function(e){var t=this.logMethods[e]||"SILENT";"undefined"!=typeof window&&(window.localStorage&&(window.localStorage[this.storageLogLevelKey]=t),this.useCookiePersist&&(window.document.cookie=encodeURIComponent(this.storageLogLevelKey)+"="+t+";"))},e.prototype.replaceLoggingMethods=function(e,t){for(var r=0;r<this.logMethods.length;r++){var n=this.logMethods[r];this[n]=r<e?c:this.methodFactory(n,e,t)}this.log=this.debug},e.prototype.defaultMethodFactory=function(e,t,r){return this.realMethod(e)||this.enableLoggingWhenConsoleArrives.apply(this,[e,t,r])},e.prototype.realMethod=function(e){return"debug"===e&&(e="log"),"undefined"!=typeof console&&("trace"===e&&o?n:void 0!==console[e]?this._bindMethod(console,e,this.config.useCache):void 0!==console.log?this._bindMethod(console,"log",this.config.useCache):c)},e.prototype.enableLoggingWhenConsoleArrives=function(e,t,r){return function(){"undefined"!=typeof console&&(this.replaceLoggingMethods.call(this,t,r),this[e].apply(this,arguments))}.bind(this)},e}();function f(e){for(var t=e.length,r=0;r<e.length;r++)e.charCodeAt(r)>255&&t++;return t}var p=new l;p.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");return this};var d="undefined"!=typeof window?window.log:void 0;p.noConflict=function(){return"undefined"!=typeof window&&window.log===p&&(window.log=d),p},p.getLoggers=function(){return u};var h=p},2591:function(e,t,r){"use strict";r.d(t,{Message:function(){return E}});var n=r(7551),o=function(){function e(e){var t=e.id;this.id=t,this.type=e.type}return e.prototype.set=function(e){this.body={id:this.id,ackId:e.id,type:"read",to:e.to,from:e.from||"",chatType:e.chatType}},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,ackId:e.id,type:"read",to:e.to,from:e.from||"",ackContent:e.ackContent,isChatThread:e.isChatThread}},e}(),i=function(){function e(e){this.id=e.id,this.type=e.type}return e.prototype.set=function(e){this.body={id:this.id,ackId:e.ackId,type:"delivery",to:e.to,from:e.from||""}},e.create=function(e){return{id:n.P6.getUniqueId(),ackId:e.ackId,type:"delivery",to:e.to,from:e.from||"",isChatThread:e.isChatThread}},e}(),a=(r(9046),r(9782),function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"channel",to:e.to,from:e.from||"",time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),type:"channel",chatType:e.chatType||"singleChat",to:e.to,from:e.from||"",time:Date.now(),isChatThread:e.isChatThread}},e}()),s=(r(3529),function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t,this.value=""}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"txt",to:e.to,msg:e.msg,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),isChatThread:e.isChatThread},this.value=e.msg},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){var t,r;return(null===(t=e.msgConfig)||void 0===t?void 0:t.languages)&&Array.isArray(null===(r=e.msgConfig)||void 0===r?void 0:r.languages),{type:"txt",id:n.P6.getUniqueId(),msg:e.msg,to:e.to,from:e.from||"",chatType:e.chatType,ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread,priority:e.priority}},e}()),c=function(){function e(e){var t=e.type,r=e.id;this.id=r||n.P6.getUniqueId(),this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"cmd",to:e.to,action:e.action,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),type:"cmd",to:e.to,from:e.from||"",chatType:e.chatType||"singleChat",action:e.action,time:Date.now(),ext:e.ext,msgConfig:e.msgConfig,isChatThread:e.isChatThread,priority:e.priority}},e}(),u=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"custom",to:e.to,customEvent:e.customEvent,customExts:e.customExts,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"custom",to:e.to,customEvent:e.customEvent,customExts:e.customExts,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread,priority:e.priority}},e}(),l=function(){function e(e){var t=e.type,r=e.id;this.id=r||n.P6.getUniqueId(),this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"loc",to:e.to,addr:e.addr,buildingName:e.buildingName,lat:e.lat,lng:e.lng,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"loc",to:e.to,addr:e.addr,buildingName:e.buildingName,lat:e.lat,lng:e.lng,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread,priority:e.priority}},e}(),f=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"img",file:e.file,width:e.width,height:e.height,to:e.to,from:e.from||"",roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,type:"img",url:e.url,width:e.width,height:e.height,file:e.file,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,file_length:e.file_length,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,isChatThread:e.isChatThread,priority:e.priority}},e}(),p=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"audio",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,type:"audio",filename:e.filename,length:e.length,file:e.file,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,file_length:e.file_length,msgConfig:e.msgConfig,isChatThread:e.isChatThread,priority:e.priority}},e}(),d=function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"video",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),apiUrl:e.apiUrl,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"video",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,msgConfig:e.msgConfig,isChatThread:e.isChatThread,priority:e.priority}},e}(),h=function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"file",file:e.file,filename:e.filename,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"file",file:e.file,filename:e.filename,fileInputId:e.fileInputId,file_length:e.file_length,to:e.to,from:e.from||"",ext:e.ext,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread,priority:e.priority}},e}(),E=function(){function e(t,r){return this.type=t,this.id=r||n.P6.getUniqueId(),e.createOldMsg({type:t,id:this.id})}return e.createOldMsg=function(e){switch(e.type){case"read":return new o({type:"read",id:e.id});case"delivery":return new i({type:"delivery",id:e.id});case"channel":return new a({type:"channel",id:e.id});case"txt":return new s({type:"txt",id:e.id});case"cmd":return new c({type:"cmd",id:e.id});case"custom":return new u({type:"custom",id:e.id});case"loc":return new l({type:"loc",id:e.id});case"img":return new f({type:"img",id:e.id});case"audio":return new p({type:"audio",id:e.id});case"video":return new d({type:"video",id:e.id});case"file":return new h({type:"file",id:e.id})}},e.create=function(e){return"txt"!==(t=e).type||"version"in t?function(e){return"img"===e.type&&!("version"in e)}(e)?f.create(e):function(e){return"cmd"===e.type&&!("version"in e)}(e)?c.create(e):function(e){return"file"===e.type&&!("version"in e)}(e)?h.create(e):function(e){return"audio"===e.type&&!("version"in e)}(e)?p.create(e):function(e){return"video"===e.type&&!("version"in e)}(e)?d.create(e):function(e){return"custom"===e.type&&!("version"in e)}(e)?u.create(e):function(e){return"loc"===e.type&&!("version"in e)}(e)?l.create(e):function(e){return"channel"===e.type&&!("version"in e)}(e)?a.create(e):function(e){return"delivery"===e.type&&!("version"in e)}(e)?i.create(e):function(e){return"read"===e.type&&!("version"in e)}(e)?o.create(e):{}:s.create(e);var t},e.prototype.set=function(e){},e}()},3365:function(e,t,r){"use strict";var n;r.d(t,{E:function(){return n}}),function(e){e[e.REQUEST_SUCCESS=0]="REQUEST_SUCCESS",e[e.REQUEST_TIMEOUT=-1]="REQUEST_TIMEOUT",e[e.REQUEST_UNKNOWN=-2]="REQUEST_UNKNOWN",e[e.REQUEST_PARAMETER_ERROR=-3]="REQUEST_PARAMETER_ERROR",e[e.REQUEST_ABORT=-4]="REQUEST_ABORT",e[e.WEBIM_CONNCTION_USER_NOT_ASSIGN_ERROR=0]="WEBIM_CONNCTION_USER_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_OPEN_ERROR=1]="WEBIM_CONNCTION_OPEN_ERROR",e[e.WEBIM_CONNCTION_AUTH_ERROR=2]="WEBIM_CONNCTION_AUTH_ERROR",e[e.WEBIM_CONNCTION_OPEN_USERGRID_ERROR=3]="WEBIM_CONNCTION_OPEN_USERGRID_ERROR",e[e.WEBIM_CONNCTION_ATTACH_ERROR=4]="WEBIM_CONNCTION_ATTACH_ERROR",e[e.WEBIM_CONNCTION_ATTACH_USERGRID_ERROR=5]="WEBIM_CONNCTION_ATTACH_USERGRID_ERROR",e[e.WEBIM_CONNCTION_REOPEN_ERROR=6]="WEBIM_CONNCTION_REOPEN_ERROR",e[e.WEBIM_CONNCTION_SERVER_CLOSE_ERROR=7]="WEBIM_CONNCTION_SERVER_CLOSE_ERROR",e[e.WEBIM_CONNCTION_SERVER_ERROR=8]="WEBIM_CONNCTION_SERVER_ERROR",e[e.WEBIM_CONNCTION_IQ_ERROR=9]="WEBIM_CONNCTION_IQ_ERROR",e[e.WEBIM_CONNCTION_PING_ERROR=10]="WEBIM_CONNCTION_PING_ERROR",e[e.WEBIM_CONNCTION_NOTIFYVERSION_ERROR=11]="WEBIM_CONNCTION_NOTIFYVERSION_ERROR",e[e.WEBIM_CONNCTION_GETROSTER_ERROR=12]="WEBIM_CONNCTION_GETROSTER_ERROR",e[e.WEBIM_CONNCTION_CROSSDOMAIN_ERROR=13]="WEBIM_CONNCTION_CROSSDOMAIN_ERROR",e[e.WEBIM_CONNCTION_LISTENING_OUTOF_MAXRETRIES=14]="WEBIM_CONNCTION_LISTENING_OUTOF_MAXRETRIES",e[e.WEBIM_CONNCTION_RECEIVEMSG_CONTENTERROR=15]="WEBIM_CONNCTION_RECEIVEMSG_CONTENTERROR",e[e.WEBIM_CONNCTION_DISCONNECTED=16]="WEBIM_CONNCTION_DISCONNECTED",e[e.WEBIM_CONNCTION_AJAX_ERROR=17]="WEBIM_CONNCTION_AJAX_ERROR",e[e.WEBIM_CONNCTION_JOINROOM_ERROR=18]="WEBIM_CONNCTION_JOINROOM_ERROR",e[e.WEBIM_CONNCTION_GETROOM_ERROR=19]="WEBIM_CONNCTION_GETROOM_ERROR",e[e.WEBIM_CONNCTION_GETROOMINFO_ERROR=20]="WEBIM_CONNCTION_GETROOMINFO_ERROR",e[e.WEBIM_CONNCTION_GETROOMMEMBER_ERROR=21]="WEBIM_CONNCTION_GETROOMMEMBER_ERROR",e[e.WEBIM_CONNCTION_GETROOMOCCUPANTS_ERROR=22]="WEBIM_CONNCTION_GETROOMOCCUPANTS_ERROR",e[e.WEBIM_CONNCTION_LOAD_CHATROOM_ERROR=23]="WEBIM_CONNCTION_LOAD_CHATROOM_ERROR",e[e.WEBIM_CONNCTION_NOT_SUPPORT_CHATROOM_ERROR=24]="WEBIM_CONNCTION_NOT_SUPPORT_CHATROOM_ERROR",e[e.WEBIM_CONNCTION_JOINCHATROOM_ERROR=25]="WEBIM_CONNCTION_JOINCHATROOM_ERROR",e[e.WEBIM_CONNCTION_QUITCHATROOM_ERROR=26]="WEBIM_CONNCTION_QUITCHATROOM_ERROR",e[e.WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR=27]="WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR=28]="WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_SESSIONID_NOT_ASSIGN_ERROR=29]="WEBIM_CONNCTION_SESSIONID_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_RID_NOT_ASSIGN_ERROR=30]="WEBIM_CONNCTION_RID_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_CALLBACK_INNER_ERROR=31]="WEBIM_CONNCTION_CALLBACK_INNER_ERROR",e[e.WEBIM_CONNCTION_CLIENT_OFFLINE=32]="WEBIM_CONNCTION_CLIENT_OFFLINE",e[e.WEBIM_CONNCTION_CLIENT_LOGOUT=33]="WEBIM_CONNCTION_CLIENT_LOGOUT",e[e.WEBIM_CONNCTION_CLIENT_TOO_MUCH_ERROR=34]="WEBIM_CONNCTION_CLIENT_TOO_MUCH_ERROR",e[e.WEBIM_CONNECTION_ACCEPT_INVITATION_FROM_GROUP=35]="WEBIM_CONNECTION_ACCEPT_INVITATION_FROM_GROUP",e[e.WEBIM_CONNECTION_DECLINE_INVITATION_FROM_GROUP=36]="WEBIM_CONNECTION_DECLINE_INVITATION_FROM_GROUP",e[e.WEBIM_CONNECTION_ACCEPT_JOIN_GROUP=37]="WEBIM_CONNECTION_ACCEPT_JOIN_GROUP",e[e.WEBIM_CONNECTION_DECLINE_JOIN_GROUP=38]="WEBIM_CONNECTION_DECLINE_JOIN_GROUP",e[e.WEBIM_CONNECTION_CLOSED=39]="WEBIM_CONNECTION_CLOSED",e[e.WEBIM_CONNECTION_ERROR=40]="WEBIM_CONNECTION_ERROR",e[e.MAX_LIMIT=50]="MAX_LIMIT",e[e.MESSAGE_NOT_FOUND=51]="MESSAGE_NOT_FOUND",e[e.NO_PERMISSION=52]="NO_PERMISSION",e[e.OPERATION_UNSUPPORTED=53]="OPERATION_UNSUPPORTED",e[e.OPERATION_NOT_ALLOWED=54]="OPERATION_NOT_ALLOWED",e[e.WEBIM_UPLOADFILE_BROWSER_ERROR=100]="WEBIM_UPLOADFILE_BROWSER_ERROR",e[e.WEBIM_UPLOADFILE_ERROR=101]="WEBIM_UPLOADFILE_ERROR",e[e.WEBIM_UPLOADFILE_NO_LOGIN=102]="WEBIM_UPLOADFILE_NO_LOGIN",e[e.WEBIM_UPLOADFILE_NO_FILE=103]="WEBIM_UPLOADFILE_NO_FILE",e[e.WEBIM_DOWNLOADFILE_ERROR=200]="WEBIM_DOWNLOADFILE_ERROR",e[e.WEBIM_DOWNLOADFILE_NO_LOGIN=201]="WEBIM_DOWNLOADFILE_NO_LOGIN",e[e.WEBIM_DOWNLOADFILE_BROWSER_ERROR=202]="WEBIM_DOWNLOADFILE_BROWSER_ERROR",e[e.USER_NOT_FOUND=204]="USER_NOT_FOUND",e[e.MESSAGE_PARAMETER_ERROR=205]="MESSAGE_PARAMETER_ERROR",e[e.WEBIM_CONNCTION_USER_LOGIN_ANOTHER_DEVICE=206]="WEBIM_CONNCTION_USER_LOGIN_ANOTHER_DEVICE",e[e.WEBIM_CONNCTION_USER_REMOVED=207]="WEBIM_CONNCTION_USER_REMOVED",e[e.WEBIM_CONNCTION_USER_KICKED_BY_CHANGE_PASSWORD=216]="WEBIM_CONNCTION_USER_KICKED_BY_CHANGE_PASSWORD",e[e.WEBIM_CONNCTION_USER_KICKED_BY_OTHER_DEVICE=217]="WEBIM_CONNCTION_USER_KICKED_BY_OTHER_DEVICE",e[e.USER_MUTED_BY_ADMIN=219]="USER_MUTED_BY_ADMIN",e[e.USER_NOT_FRIEND=221]="USER_NOT_FRIEND",e[e.WEBIM_MESSAGE_REC_TEXT=300]="WEBIM_MESSAGE_REC_TEXT",e[e.WEBIM_MESSAGE_REC_TEXT_ERROR=301]="WEBIM_MESSAGE_REC_TEXT_ERROR",e[e.WEBIM_MESSAGE_REC_EMOTION=302]="WEBIM_MESSAGE_REC_EMOTION",e[e.WEBIM_MESSAGE_REC_PHOTO=303]="WEBIM_MESSAGE_REC_PHOTO",e[e.WEBIM_MESSAGE_REC_AUDIO=304]="WEBIM_MESSAGE_REC_AUDIO",e[e.WEBIM_MESSAGE_REC_AUDIO_FILE=305]="WEBIM_MESSAGE_REC_AUDIO_FILE",e[e.WEBIM_MESSAGE_REC_VEDIO=306]="WEBIM_MESSAGE_REC_VEDIO",e[e.WEBIM_MESSAGE_REC_VEDIO_FILE=307]="WEBIM_MESSAGE_REC_VEDIO_FILE",e[e.WEBIM_MESSAGE_REC_FILE=308]="WEBIM_MESSAGE_REC_FILE",e[e.WEBIM_MESSAGE_SED_TEXT=309]="WEBIM_MESSAGE_SED_TEXT",e[e.WEBIM_MESSAGE_SED_EMOTION=310]="WEBIM_MESSAGE_SED_EMOTION",e[e.WEBIM_MESSAGE_SED_PHOTO=311]="WEBIM_MESSAGE_SED_PHOTO",e[e.WEBIM_MESSAGE_SED_AUDIO=312]="WEBIM_MESSAGE_SED_AUDIO",e[e.WEBIM_MESSAGE_SED_AUDIO_FILE=313]="WEBIM_MESSAGE_SED_AUDIO_FILE",e[e.WEBIM_MESSAGE_SED_VEDIO=314]="WEBIM_MESSAGE_SED_VEDIO",e[e.WEBIM_MESSAGE_SED_VEDIO_FILE=315]="WEBIM_MESSAGE_SED_VEDIO_FILE",e[e.WEBIM_MESSAGE_SED_FILE=316]="WEBIM_MESSAGE_SED_FILE",e[e.WEBIM_MESSAGE_SED_ERROR=317]="WEBIM_MESSAGE_SED_ERROR",e[e.STATUS_INIT=400]="STATUS_INIT",e[e.STATUS_DOLOGIN_USERGRID=401]="STATUS_DOLOGIN_USERGRID",e[e.STATUS_DOLOGIN_IM=402]="STATUS_DOLOGIN_IM",e[e.STATUS_OPENED=403]="STATUS_OPENED",e[e.STATUS_CLOSING=404]="STATUS_CLOSING",e[e.STATUS_CLOSED=405]="STATUS_CLOSED",e[e.STATUS_ERROR=406]="STATUS_ERROR",e[e.SERVER_BUSY=500]="SERVER_BUSY",e[e.MESSAGE_INCLUDE_ILLEGAL_CONTENT=501]="MESSAGE_INCLUDE_ILLEGAL_CONTENT",e[e.MESSAGE_EXTERNAL_LOGIC_BLOCKED=502]="MESSAGE_EXTERNAL_LOGIC_BLOCKED",e[e.SERVER_UNKNOWN_ERROR=503]="SERVER_UNKNOWN_ERROR",e[e.MESSAGE_RECALL_TIME_LIMIT=504]="MESSAGE_RECALL_TIME_LIMIT",e[e.SERVICE_NOT_ENABLED=505]="SERVICE_NOT_ENABLED",e[e.SERVICE_NOT_ALLOW_MESSAGING=506]="SERVICE_NOT_ALLOW_MESSAGING",e[e.SERVICE_NOT_ALLOW_MESSAGING_MUTE=507]="SERVICE_NOT_ALLOW_MESSAGING_MUTE",e[e.MESSAGE_MODERATION_BLOCKED=508]="MESSAGE_MODERATION_BLOCKED",e[e.MESSAGE_CURRENT_LIMITING=509]="MESSAGE_CURRENT_LIMITING",e[e.MESSAGE_WEBSOCKET_DISCONNECTED=510]="MESSAGE_WEBSOCKET_DISCONNECTED",e[e.GROUP_NOT_EXIST=605]="GROUP_NOT_EXIST",e[e.GROUP_NOT_JOINED=602]="GROUP_NOT_JOINED",e[e.GROUP_MEMBERS_FULL=606]="GROUP_MEMBERS_FULL",e[e.PERMISSION_DENIED=603]="PERMISSION_DENIED",e[e.WEBIM_LOAD_MSG_ERROR=604]="WEBIM_LOAD_MSG_ERROR",e[e.GROUP_ALREADY_JOINED=601]="GROUP_ALREADY_JOINED",e[e.GROUP_MEMBERS_LIMIT=607]="GROUP_MEMBERS_LIMIT",e[e.GROUP_IS_DISABLED=608]="GROUP_IS_DISABLED",e[e.REST_PARAMS_STATUS=700]="REST_PARAMS_STATUS",e[e.CHATROOM_NOT_JOINED=702]="CHATROOM_NOT_JOINED",e[e.CHATROOM_MEMBERS_FULL=704]="CHATROOM_MEMBERS_FULL",e[e.CHATROOM_NOT_EXIST=705]="CHATROOM_NOT_EXIST",e[e.SDK_RUNTIME_ERROR=999]="SDK_RUNTIME_ERROR",e[e.PRESENCE_PARAM_EXCEED=1100]="PRESENCE_PARAM_EXCEED",e[e.REACTION_ALREADY_ADDED=1101]="REACTION_ALREADY_ADDED",e[e.REACTION_CREATING=1102]="REACTION_CREATING",e[e.REACTION_OPERATION_IS_ILLEGAL=1103]="REACTION_OPERATION_IS_ILLEGAL",e[e.TRANSLATION_NOT_VALID=1200]="TRANSLATION_NOT_VALID",e[e.TRANSLATION_TEXT_TOO_LONG=1201]="TRANSLATION_TEXT_TOO_LONG",e[e.TRANSLATION_FAILED=1204]="TRANSLATION_FAILED",e[e.THREAD_NOT_EXIST=1300]="THREAD_NOT_EXIST",e[e.THREAD_ALREADY_EXIST=1301]="THREAD_ALREADY_EXIST"}(n||(n={}))},7551:function(e,t,r){"use strict";r.d(t,{hj:function(){return u},P6:function(){return T}}),r(8327),r(900),r(3814),r(9782),r(9889),r(2657),r(5980),r(8453),r(937),r(1685),r(2486),r(4261),r(4838),r(8385),r(8668),r(1655),r(1008),r(7461),r(6619);var n=r(3365),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=r(3681),a=r(6916),s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},c=function(){};function u(e,t){var r,u=this;return _().platform===h.WEB?new Promise((function(t,i){var s=e.dataType||"text",u=e.success||c,l=e.error||c,f=new XMLHttpRequest;f.ontimeout=function(){i({type:n.E.REQUEST_TIMEOUT,message:"Request Timeout",errorType:"timeout_error",xhr:f})},f.onerror=function(){i({type:n.E.REQUEST_UNKNOWN,message:"Request Unknow Error",errorType:"onerror",xhr:f})},f.onabort=function(){i({type:n.E.REQUEST_ABORT,message:"Request Abort",errorType:"onabort",xhr:f})},f.onreadystatechange=function(){if(4===f.readyState){var e=(new Date).getTime()-r,c=f.status||0,p={elapse:e,httpCode:c};if(200===c){T.ajaxUnconventionalErrorTimes=0;try{switch(s){case"text":return u(f.responseText),void t(f.responseText);case"json":var d=JSON.parse(f.responseText);return d.extraInfo=p,u(d),void t(d);case"xml":return f.responseXML&&f.responseXML.documentElement?(u(f.responseXML.documentElement),void t(f.responseXML.documentElement)):(l({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"XHR.responseXML is null or XHR.responseXML.documentElement is null"}),void i({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"XHR.responseXML is null or XHR.responseXML.documentElement is null"}));default:l({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Invalid dataType"}),i({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Invalid dataType"})}return t(f.response||f.responseText),void u(f.response||f.responseText,f)}catch(e){i(e)}return}[400,401,403,404,429,500,503].includes(c)||(a.kg.debug("rest api request fail status:",c),T.ajaxUnconventionalErrorTimes++),function(e,t,r,i){var a,s,c,u,l,f,p,d,h,E,_,O,g,T,R,v,y,m,I,S,N=e.response;N&&"string"==typeof N&&(N=JSON.parse(N));var C=e.status,A={elapse:i,httpCode:C,errDesc:null==N?void 0:N.error_description};if(400===C){if(40002===N.error_code)return void t({type:n.E.THREAD_ALREADY_EXIST,message:null==N?void 0:N.error_description,extraInfo:A});if(40009===N.error_code)return void t({type:n.E.OPERATION_UNSUPPORTED,message:null==N?void 0:N.error_description,extraInfo:A});if(60010===N.error_code)return void t({type:n.E.NO_PERMISSION,message:null==N?void 0:N.desc});if(60011===N.error_code)return void t({type:n.E.CHATROOM_NOT_JOINED,message:null==N?void 0:N.desc});if(60012===N.error_code)return void t({type:n.E.MAX_LIMIT,message:null==N?void 0:N.desc});if(null===(a=N.error_description)||void 0===a?void 0:a.includes("are not members of this group"))return(null===(s=e.responseURL)||void 0===s?void 0:s.includes("chatgroups"))?t({type:n.E.GROUP_NOT_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):t({type:n.E.CHATROOM_NOT_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:A}),void r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==N?void 0:N.error_description,data:e.responseText,extraInfo:A});if("the app not open presence"===(null==N?void 0:N.result))return void t({type:n.E.SERVICE_NOT_ENABLED,message:null==N?void 0:N.result,extraInfo:A});switch(null==N?void 0:N.error_description){case"the user is already operation this message":t({type:n.E.REACTION_ALREADY_ADDED,message:null==N?void 0:N.error_description,extraInfo:A});break;case"The quantity has exceeded the limit!":t({type:n.E.MAX_LIMIT,message:null==N?void 0:N.error_description,extraInfo:A});break;case"The user not in this group!":t({type:n.E.GROUP_NOT_JOINED,message:null==N?void 0:N.error_description,extraInfo:A});break;case"the user operation is illegal!":t({type:n.E.REACTION_OPERATION_IS_ILLEGAL,message:null==N?void 0:N.error_description,extraInfo:A});break;case"this appKey is not open reaction service!":case"this appKey not open message roaming":t({type:n.E.SERVICE_NOT_ENABLED,message:null==N?void 0:N.error_description,extraInfo:A});break;case"this message is creating reaction, please try again.":t({type:n.E.REACTION_CREATING,message:null==N?void 0:N.error_description,extraInfo:A});break;case"groupId can not be null!":t({type:n.E.GROUP_NOT_EXIST,message:null==N?void 0:N.error_description,extraInfo:A});break;case"The input text is too long.":t({type:n.E.TRANSLATION_TEXT_TOO_LONG,message:null==N?void 0:N.error_description,extraInfo:A});break;case"The target language is not valid.":t({type:n.E.TRANSLATION_NOT_VALID,message:null==N?void 0:N.error_description,extraInfo:A});break;case"report failed, get message by id failed":t({type:n.E.MESSAGE_NOT_FOUND,message:null==N?void 0:N.error_description,extraInfo:A});break;case"ext is too big ":t({type:n.E.PRESENCE_PARAM_EXCEED,message:null==N?void 0:N.error_description,extraInfo:A});break;case"Request body not readable.Please check content type is correct!":t({type:n.E.REQUEST_PARAMETER_ERROR,message:null==N?void 0:N.error_description,extraInfo:A});break;default:t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==N?void 0:N.error_description,data:e.responseText,extraInfo:A}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==N?void 0:N.error_description,data:e.responseText,extraInfo:A})}}else if(401===C)40001===N.error_code||"Unable to authenticate (OAuth)"===N.error_description?t({type:n.E.NO_PERMISSION,message:null==N?void 0:N.error_description,extraInfo:A}):(r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:A}),t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:A}));else if(403===C)4e4===N.error_code?t({type:n.E.SERVICE_NOT_ENABLED,message:null==N?void 0:N.error_description,extraInfo:A}):40003===N.error_code||40004===N.error_code?t({type:n.E.THREAD_ALREADY_EXIST,message:null==N?void 0:N.error_description,extraInfo:A}):(40005===N.error_code||40007===N.error_code)&&t({type:n.E.MAX_LIMIT,message:null==N?void 0:N.error_description,extraInfo:A}),"group member list is full!"===N.error_description?(null===(c=e.responseURL)||void 0===c?void 0:c.includes("chatgroups"))?t({type:n.E.GROUP_MEMBERS_FULL,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):t({type:n.E.CHATROOM_MEMBERS_FULL,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):(null===(u=N.error_description)||void 0===u?void 0:u.includes(N.error_description.includes("already in group")))?(null===(l=e.responseURL)||void 0===l?void 0:l.includes("chatgroups"))&&t({type:n.E.GROUP_ALREADY_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):(null===(f=N.error_description)||void 0===f?void 0:f.includes("are not members of this group"))?(null===(p=e.responseURL)||void 0===p?void 0:p.includes("chatgroups"))?t({type:n.E.GROUP_NOT_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):t({type:n.E.CHATROOM_NOT_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):(null===(d=N.error_description)||void 0===d?void 0:d.includes("service not open!"))||(null===(h=N.error_description)||void 0===h?void 0:h.includes("message report not open"))||(null===(E=N.error_description)||void 0===E?void 0:E.includes("messageroaming function not open"))?t({type:n.E.SERVICE_NOT_ENABLED,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):(null===(_=N.error_description)||void 0===_?void 0:_.includes("members size is greater than max user size !"))?t({type:n.E.GROUP_MEMBERS_LIMIT,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):(null===(O=N.error_description)||void 0===O?void 0:O.includes("can not operate this group, reason: group is disabled"))?t({type:n.E.GROUP_IS_DISABLED,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):t({type:n.E.PERMISSION_DENIED,data:e.response||e.responseText,message:"permission denied",extraInfo:o(o({},A),{errDesc:"permission denied"})}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:A});else if(404===C)40011===N.error_code?t({type:n.E.THREAD_NOT_EXIST,message:null==N?void 0:N.error_description,extraInfo:A}):40012===N.error_code&&t({type:n.E.NO_PERMISSION,message:null==N?void 0:N.error_description,extraInfo:A}),(null===(g=N.error_description)||void 0===g?void 0:g.includes("do not find this group"))||(null===(T=N.error_description)||void 0===T?void 0:T.includes("does not exist"))?(null===(R=e.responseURL)||void 0===R?void 0:R.includes("chatgroups"))?t({type:n.E.GROUP_NOT_EXIST,data:e.response||e.responseText,message:"The chat room dose not exist.",extraInfo:o(o({},A),{errDesc:"The chat room dose not exist."})}):t({type:n.E.CHATROOM_NOT_EXIST,data:e.response||e.responseText,message:"The chat room dose not exist.",extraInfo:o(o({},A),{errDesc:"The chat room dose not exist."})}):(null===(v=N.error_description)||void 0===v?void 0:v.includes("username"))&&(null===(y=N.error_description)||void 0===y?void 0:y.includes("doesn't exist!'"))||(null===(m=N.error_description)||void 0===m?void 0:m.includes("user not found"))?t({type:n.E.USER_NOT_FOUND,data:e.response||e.responseText,message:N.error_description,extraInfo:A}):t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.response||e.responseText,message:e.responseText,extraInfo:A}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.response||e.responseText,message:e.responseText,extraInfo:A});else if(429===C||503===C){if(null===(I=N.error_description)||void 0===I?void 0:I.includes("The request has reached the maximum limit"))return void t({type:n.E.MAX_LIMIT,message:e.responseText,extraInfo:A});t({type:n.E.SERVER_BUSY,data:e.response||e.responseText,message:"Server is busy.",extraInfo:o(o({},A),{errDesc:"Server is busy."})}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"Server is busy.",extraInfo:o(o({},A),{errDesc:"Server is busy."})})}else if(500===C){if((40006===N.error_code||40008===N.error_code||40010===N.error_code)&&t({type:n.E.SERVER_UNKNOWN_ERROR,message:null==N?void 0:N.error_description,extraInfo:A}),null===(S=N.error_description)||void 0===S?void 0:S.includes("translte failed!"))return void t({type:n.E.TRANSLATION_FAILED,message:e.responseText,extraInfo:A});t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"",extraInfo:A}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"",extraInfo:A})}else t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:o(o({},A),{errDesc:"ajax error"})}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:o(o({},A),{errDesc:"ajax error"})})}(f,i,l,e)}0===f.readyState&&(l({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Request not initialized"}),i({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Request not initialized"}))},e.responseType&&f.responseType&&(f.responseType=e.responseType),e.mimeType&&f.overrideMimeType(e.mimeType);var p=e.type||"POST",d=e.data||null,h="";if("get"===p.toLowerCase()&&d){for(var E in d)d.hasOwnProperty(E)&&(h+=E+"="+d[E]+"&");h=h?h.slice(0,-1):h,e.url+=(e.url.indexOf("?")>0?"&":"?")+(h?h+"&":h)+"_v="+(new Date).getTime(),d=null,h=""}r=(new Date).getTime(),f.open(p,e.url);var _=e.headers||{};for(var O in _["Content-Type"]||(_["Content-Type"]="application/json"),_)_.hasOwnProperty(O)&&f.setRequestHeader(O,_[O]);f.send(d)})).then((function(r){return u.dataReport&&t&&t!==i.fI.SDK_INTERNAL&&u.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:s({isSuccess:1,requestUrl:e.url,requestName:t,requestMethod:e.type},g(r.extraInfo))}),t!==i.fI.SDK_INTERNAL&&delete r.extraInfo,"Object"===l(r)?s(s({},r),{type:n.E.REQUEST_SUCCESS}):{data:r,type:n.E.REQUEST_SUCCESS}})).catch((function(r){throw u.dataReport&&t&&t!==i.fI.SDK_INTERNAL&&u.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:s({isSuccess:0,requestUrl:e.url,requestName:t,requestMethod:e.type},g(r.extraInfo))}),t!==i.fI.SDK_INTERNAL&&delete r.extraInfo,r})):f.call(this,e)}function l(e){return Object.prototype.toString.call(e).slice(8,-1)}function f(e,t){var r=this;return new Promise((function(t,r){var n=e.success||c,o=e.error||c,i=e.type||"POST",a=e.data||null,s="",u=(new Date).getTime(),l=T.getEnvInfo();if("get"===i.toLowerCase()&&a){for(var f in a)a.hasOwnProperty(f)&&(s+=f+"="+a[f]+"&");s=s?s.slice(0,-1):s,e.url+=(e.url.indexOf("?")>0?"&":"?")+(s?s+"&":s)+"_v="+(new Date).getTime(),a=null,s=""}var p={url:e.url,data:e.data,method:i,headers:{},success:function(e){var i,a,s,c,l,f={elapse:(new Date).getTime()-u,httpCode:Number((null===(i=e.statusCode)||void 0===i?void 0:i.toString())||(null===(a=e.status)||void 0===a?void 0:a.toString())),errDesc:(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.error_description)||""};if("200"===(null===(c=e.statusCode)||void 0===c?void 0:c.toString())||"200"===(null===(l=e.status)||void 0===l?void 0:l.toString())){e.data.extraInfo=f;var p=e.data;n(p),t(p)}else e.extraInfo=f,o(p=e),r(p)},complete:function(){},fail:function(e){o(e),r(e)}};if("zfb"===l.platform||"dd"===l.platform?p.headers=e.headers:p.header=e.headers,"dd"===l.platform)return dd.httpRequest(p);l.global.request(p)})).then((function(o){return r.dataReport&&t&&t!==i.fI.SDK_INTERNAL&&r.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:s({isSuccess:1,requestUrl:e.url,requestName:t,requestMethod:e.type},g(o.extraInfo))}),t!==i.fI.SDK_INTERNAL&&delete o.extraInfo,"Object"===l(o)?s(s({},o),{type:n.E.REQUEST_SUCCESS}):{data:o,type:n.E.REQUEST_SUCCESS}})).catch((function(n){throw r.dataReport&&t&&t!==i.fI.SDK_INTERNAL&&r.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:s({isSuccess:0,requestUrl:e.url,requestName:t,requestMethod:e.type},g(n.extraInfo))}),t!==i.fI.SDK_INTERNAL&&delete n.extraInfo,n}))}var p,d,h,E=(p=function(e,t){var r=_();if(r.platform!==h.WEB){var n=r.global,o=function(r){r.isConnected?e():t()};n.offNetworkStatusChange&&n.offNetworkStatusChange(o),n.onNetworkStatusChange&&n.onNetworkStatusChange(o)}else"undefined"!=typeof addEventListener&&(window.addEventListener("online",e),window.addEventListener("offline",t))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!p)return d;d=p.apply(void 0,e),p=null});function _(){return"undefined"!=typeof swan&&O(swan)?{platform:h.BAIDU,global:swan}:"undefined"!=typeof tt&&O(tt)?{platform:h.TT,global:tt}:"undefined"!=typeof dd&&O(dd)?{platform:h.DD,global:dd}:"undefined"!=typeof my&&O(my)?{platform:h.ZFB,global:my}:"undefined"!=typeof wx&&O(wx)?{platform:h.WX,global:wx}:"undefined"!=typeof uni&&O(uni)?{platform:h.UNI,global:uni}:"undefined"!=typeof window&&window.WebSocket?{platform:h.WEB,global:window}:{platform:h.NODE,global:r.g||{}}}function O(e){for(var t=["canIUse","getSystemInfo"],r=0,n=t.length;r<n;r++)if(!e[t[r]])return!1;return!0}function g(e){void 0===e&&(e={});var t=e.elapse,r=void 0===t?0:t,n=e.httpCode,o=void 0===n?0:n,i=e.errDesc;return{requestElapse:r,code:o,codeDesc:void 0===i?"":i}}!function(e){e.WEB="web",e.WX="wx",e.ZFB="zfb",e.DD="dd",e.TT="tt",e.BAIDU="baidu",e.QUICK_APP="quick_app",e.UNI="uni",e.NODE="node"}(h||(h={}));var T={autoIncrement:0,ajaxUnconventionalErrorTimes:0,ajax:u,getUniqueId:function(){this.autoIncrement?this.autoIncrement++:this.autoIncrement=1;var e=new Date,t=new Date(2010,1,1);return(e.getTime()-t.getTime()+this.autoIncrement).toString()},getFileUrl:function(e){var t={url:"",filename:"",filetype:"",data:{}},r="string"==typeof e?document.getElementById(e):e;if(window.URL.createObjectURL){if(!r.files)throw Error("this is not HTMLInputElement");var n=r.files;if(n.length>0){var o=n.item(0);t.data=o,t.url=window.URL.createObjectURL(o),t.filename=(null==o?void 0:o.name)||""}}else{if("string"!=typeof e)throw Error("in IE fileInputId must be string");o=document.getElementById(e).value,t.url=o;var i=o.lastIndexOf("/"),a=o.lastIndexOf("\\"),s=Math.max(i,a);t.filename=s<0?o:o.substring(s+1)}var c=t.filename.lastIndexOf(".");return-1!==c&&(t.filetype=t.filename.substring(c+1).toLowerCase()),t},uploadFile:function(e,t){var r,o,a=this,s=(new Date).getTime(),u=e.accessToken;if(u){var l=e.appKey,f=[],p="",d="";if(l&&(p=(f=l.split("#"))[0],d=f[1]),p||d){var h=e.apiUrl,E=e.uploadUrl||h+"/"+p+"/"+d+"/chatfiles";if((null===(o=null===(r=null==e?void 0:e.file)||void 0===r?void 0:r.data)||void 0===o?void 0:o.size)<=0)e.onFileUploadError&&e.onFileUploadError({type:n.E.WEBIM_UPLOADFILE_ERROR,message:"fileSize must be greater than 0"});else{var _=new XMLHttpRequest;_.upload&&_.upload.addEventListener("progress",e.onFileUploadProgress||c,!1),_.addEventListener("abort",e.onFileUploadCanceled||c,!1),_.addEventListener("error",(function(e){g({type:n.E.WEBIM_UPLOADFILE_ERROR,data:_})}),!1),_.addEventListener("load",(function(r){try{var o=JSON.parse(_.responseText);if(400===_.status)return g({type:n.E.WEBIM_UPLOADFILE_ERROR,data:o}),!1;try{!function(r){var n=(new Date).getTime()-s;a.dataReport&&t&&[i.fI.UPLOAD_MSG_ATTACH,i.fI.UPLOAD_CHATROOM_FILE,i.fI.UPLOAD_GROUP_FILE].includes(t)&&a.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:(null==r?void 0:r.error)?0:1,requestMethod:"POST",requestName:t,requestElapse:n,requestUrl:E,code:_.status,codeDesc:(null==r?void 0:r.error_description)||""}}),e.onFileUploadComplete&&e.onFileUploadComplete(r)}(o)}catch(r){g({type:n.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,data:r})}}catch(r){g({type:n.E.WEBIM_UPLOADFILE_ERROR,data:_.responseText})}}),!1),_.open("POST",E),_.setRequestHeader("restrict-access","true"),_.setRequestHeader("Accept","*/*"),_.setRequestHeader("Authorization","Bearer "+u);var O=new FormData;O.append("file",e.file.data),_.send(O)}}else e.onFileUploadError&&e.onFileUploadError({type:n.E.WEBIM_UPLOADFILE_ERROR,message:"AppKey illegal"})}else e.onFileUploadError&&e.onFileUploadError({type:n.E.WEBIM_UPLOADFILE_NO_LOGIN,message:"AccessToken cannot be empty"});function g(r){var n=(new Date).getTime()-s;a.dataReport&&t&&[i.fI.UPLOAD_MSG_ATTACH,i.fI.UPLOAD_CHATROOM_FILE,i.fI.UPLOAD_GROUP_FILE].includes(t)&&a.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:0,requestMethod:"POST",requestName:t,requestElapse:n,requestUrl:E,code:(null==_?void 0:_.status)||0,codeDesc:"upload file error"}}),e.onFileUploadError&&e.onFileUploadError(r)}},flow:function(e){for(var t=e.length,r=t;r--;)if("function"!=typeof e[r])throw new TypeError("Expected a function");return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var o=0,i=t?e[o].apply(this,r):r[0];++o<t;)i=e[o].call(this,i);return i}},listenNetwork:E,getEnvInfo:_,wxRequest:f,parseDownloadResponse:function(e){if(!window||!window.URL)throw Error("parseDownloadResponse can be used in broswer only");return e&&e.type&&"application/json"===e.type||0>Object.prototype.toString.call(e).indexOf("Blob")?this.url+"?token=":window.URL.createObjectURL(e)},download:function(e,t){e.onFileDownloadComplete=e.onFileDownloadComplete||c,e.onFileDownloadError=e.onFileDownloadError||c;var r=(new Date).getTime(),o=new XMLHttpRequest,a=this;o.addEventListener("load",(function(n){var s=(new Date).getTime()-r;a.dataReport&&t&&t===i.fI.DOWN_GROUP_FILE&&a.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:200===o.status?1:0,requestMethod:"POST",requestName:t,requestElapse:s,requestUrl:null==e?void 0:e.url,code:o.status,codeDesc:200===o.status?"":"download file error"}}),e.onFileDownloadComplete&&e.onFileDownloadComplete(o.response)}),!1),o.addEventListener("error",(function(s){var c=(new Date).getTime()-r;a.dataReport&&t&&t===i.fI.DOWN_GROUP_FILE&&a.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:0,requestMethod:"POST",requestName:t,requestElapse:c,requestUrl:null==e?void 0:e.url,code:(null==o?void 0:o.status)||0,codeDesc:"download file error"}}),e.onFileDownloadError&&e.onFileDownloadError({type:n.E.WEBIM_DOWNLOADFILE_ERROR,id:e.id,xhr:o})}),!1);var s=e.method||"GET",u=e.responseType||"blob",l=e.mimeType||"text/plain; charset=x-user-defined";o.open(s,e.url),"undefined"!=typeof Blob?o.responseType=u:o.overrideMimeType(l);var f={"X-Requested-With":"XMLHttpRequest",Accept:"application/octet-stream","share-secret":e.secret,Authorization:"Bearer "+this.context.accessToken},p=e.headers||{};for(var d in p)f[d]=p[d];for(var d in f)f[d]&&o.setRequestHeader(d,f[d]);o.send(null)},parseNotify:function(e){for(var t="",r=0;r<e.length;r++)t+="%"+e[r].toString(16);return JSON.parse(decodeURIComponent(t))},getExtraData:g}},9181:function(e,t,r){var n=r(1045),o=r(7632),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a function")}},7345:function(e,t,r){var n=r(8297),o=r(7632),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a constructor")}},2091:function(e,t,r){var n=r(1045),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},4651:function(e,t,r){var n=r(9140),o=r(5565),i=r(4317).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},3025:function(e,t,r){"use strict";var n=r(7957).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},9112:function(e,t,r){var n=r(8931),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw o("Incorrect invocation")}},1571:function(e,t,r){var n=r(7809),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not an object")}},9042:function(e,t,r){var n=r(4141);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},4890:function(e,t,r){"use strict";var n=r(888).forEach,o=r(3070)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},1601:function(e,t,r){"use strict";var n=r(3847),o=r(9107),i=r(4569),a=r(7214),s=r(706),c=r(8297),u=r(2398),l=r(567),f=r(6151),p=r(1328),d=Array;e.exports=function(e){var t=i(e),r=c(this),h=arguments.length,E=h>1?arguments[1]:void 0,_=void 0!==E;_&&(E=n(E,h>2?arguments[2]:void 0));var O,g,T,R,v,y,m=p(t),I=0;if(!m||this===d&&s(m))for(O=u(t),g=r?new this(O):d(O);O>I;I++)y=_?E(t[I],I):t[I],l(g,I,y);else for(v=(R=f(t,m)).next,g=r?new this:[];!(T=o(v,R)).done;I++)y=_?a(R,E,[T.value,I],!0):T.value,l(g,I,y);return g.length=I,g}},7351:function(e,t,r){var n=r(4221),o=r(3943),i=r(2398),a=function(e){return function(t,r,a){var s,c=n(t),u=i(c),l=o(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},888:function(e,t,r){var n=r(3847),o=r(9720),i=r(3392),a=r(4569),s=r(2398),c=r(5508),u=o([].push),l=function(e){var t=1==e,r=2==e,o=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,E,_,O){for(var g,T,R=a(h),v=i(R),y=n(E,_),m=s(v),I=0,S=O||c,N=t?S(h,m):r||p?S(h,0):void 0;m>I;I++)if((d||I in v)&&(T=y(g=v[I],I,R),e))if(t)N[I]=T;else if(T)switch(e){case 3:return!0;case 5:return g;case 6:return I;case 2:u(N,g)}else switch(e){case 4:return!1;case 7:u(N,g)}return f?-1:o||l?l:N}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1959:function(e,t,r){"use strict";var n=r(7841),o=r(4221),i=r(152),a=r(2398),s=r(3070),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),p=l||!f;e.exports=p?function(e){if(l)return n(u,this,arguments)||0;var t=o(this),r=a(t),s=r-1;for(arguments.length>1&&(s=c(s,i(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},3933:function(e,t,r){var n=r(4141),o=r(9140),i=r(583),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},3070:function(e,t,r){"use strict";var n=r(4141);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},1208:function(e,t,r){"use strict";var n=r(2931),o=r(6833),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9730:function(e,t,r){var n=r(3943),o=r(2398),i=r(567),a=Array,s=Math.max;e.exports=function(e,t,r){for(var c=o(e),u=n(t,c),l=n(void 0===r?c:r,c),f=a(s(l-u,0)),p=0;u<l;u++,p++)i(f,p,e[u]);return f.length=p,f}},942:function(e,t,r){var n=r(9720);e.exports=n([].slice)},5416:function(e,t,r){var n=r(9730),o=Math.floor,i=function(e,t){var r=e.length,c=o(r/2);return r<8?a(e,t):s(e,i(n(e,0,c),t),i(n(e,c),t),t)},a=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},s=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e};e.exports=i},4908:function(e,t,r){var n=r(6833),o=r(8297),i=r(7809),a=r(9140)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},5508:function(e,t,r){var n=r(4908);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},7214:function(e,t,r){var n=r(1571),o=r(6186);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},3802:function(e,t,r){var n=r(9140)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},6027:function(e,t,r){var n=r(9720),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6837:function(e,t,r){var n=r(1247),o=r(1045),i=r(6027),a=r(9140)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:c?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},6675:function(e,t,r){"use strict";var n=r(4317).f,o=r(5565),i=r(4766),a=r(3847),s=r(9112),c=r(7323),u=r(5991),l=r(9719),f=r(8174),p=r(4467),d=r(2931),h=r(6811).fastKey,E=r(7417),_=E.set,O=E.getterFor;e.exports={getConstructor:function(e,t,r,l){var f=e((function(e,n){s(e,p),_(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),c(n)||u(n,e[l],{that:e,AS_ENTRIES:r})})),p=f.prototype,E=O(t),g=function(e,t,r){var n,o,i=E(e),a=T(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),d?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},T=function(e,t){var r,n=E(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(p,{clear:function(){for(var e=E(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,r=E(t),n=T(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=E(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!T(this,e)}}),i(p,r?{get:function(e){var t=T(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&n(p,"size",{get:function(){return E(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",o=O(t),i=O(n);l(e,t,(function(e,t){_(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),p(t)}}},6202:function(e,t,r){"use strict";var n=r(4866),o=r(2383),i=r(9720),a=r(1122),s=r(4405),c=r(6811),u=r(5991),l=r(9112),f=r(1045),p=r(7323),d=r(7809),h=r(4141),E=r(3802),_=r(5125),O=r(8851);e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),T=-1!==e.indexOf("Weak"),R=g?"set":"add",v=o[e],y=v&&v.prototype,m=v,I={},S=function(e){var t=i(y[e]);s(y,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(T&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return T&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(T&&!d(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!f(v)||!(T||y.forEach&&!h((function(){(new v).entries().next()})))))m=r.getConstructor(t,e,g,R),c.enable();else if(a(e,!0)){var N=new m,C=N[R](T?{}:-0,1)!=N,A=h((function(){N.has(1)})),M=E((function(e){new v(e)})),U=!T&&h((function(){for(var e=new v,t=5;t--;)e[R](t,t);return!e.has(-0)}));M||((m=t((function(e,t){l(e,y);var r=O(new v,e,m);return p(t)||u(t,r[R],{that:r,AS_ENTRIES:g}),r}))).prototype=y,y.constructor=m),(A||U)&&(S("delete"),S("has"),g&&S("get")),(U||C)&&S(R),T&&y.clear&&delete y.clear}return I[e]=m,n({global:!0,constructor:!0,forced:m!=v},I),_(m,e),T||r.setStrong(m,e,g),m}},5751:function(e,t,r){var n=r(1163),o=r(5260),i=r(9097),a=r(4317);e.exports=function(e,t,r){for(var s=o(t),c=a.f,u=i.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},7849:function(e,t,r){var n=r(9140)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},4667:function(e,t,r){var n=r(4141);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8174:function(e){e.exports=function(e,t){return{value:e,done:t}}},6493:function(e,t,r){var n=r(2931),o=r(4317),i=r(2499);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},2499:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},567:function(e,t,r){"use strict";var n=r(7277),o=r(4317),i=r(2499);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},2886:function(e,t,r){var n=r(2511),o=r(4317);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},4405:function(e,t,r){var n=r(1045),o=r(4317),i=r(2511),a=r(5784);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},4766:function(e,t,r){var n=r(4405);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},5784:function(e,t,r){var n=r(2383),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},6733:function(e,t,r){"use strict";var n=r(7632),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+n(t)+" of "+n(e))}},2931:function(e,t,r){var n=r(4141);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6459:function(e,t,r){var n=r(2383),o=r(7809),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7540:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},9286:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5977:function(e,t,r){var n=r(6459)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},5830:function(e,t,r){var n=r(3954),o=r(4368);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},3954:function(e){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},3035:function(e,t,r){var n=r(9376),o=r(2383);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==o.Pebble},7337:function(e,t,r){var n=r(9376);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},4368:function(e,t,r){var n=r(6027),o=r(2383);e.exports="process"==n(o.process)},678:function(e,t,r){var n=r(9376);e.exports=/web0s(?!.*chrome)/i.test(n)},9376:function(e,t,r){var n=r(7300);e.exports=n("navigator","userAgent")||""},583:function(e,t,r){var n,o,i=r(2383),a=r(9376),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},7414:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4866:function(e,t,r){var n=r(2383),o=r(9097).f,i=r(6493),a=r(4405),s=r(5784),c=r(5751),u=r(1122);e.exports=function(e,t){var r,l,f,p,d,h=e.target,E=e.global,_=e.stat;if(r=E?n:_?n[h]||s(h,{}):(n[h]||{}).prototype)for(l in t){if(p=t[l],f=e.dontCallGetSet?(d=o(r,l))&&d.value:r[l],!u(E?l:h+(_?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(r,l,p,e)}}},4141:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},2267:function(e,t,r){"use strict";r(1008);var n=r(9720),o=r(4405),i=r(1660),a=r(4141),s=r(9140),c=r(6493),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var p=s(e),d=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=d&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!d||!h||r){var E=n(/./[p]),_=t(p,""[e],(function(e,t,r,o,a){var s=n(e),c=t.exec;return c===i||c===l.exec?d&&!a?{done:!0,value:E(t,r,o)}:{done:!0,value:s(r,t,o)}:{done:!1}}));o(String.prototype,e,_[0]),o(l,p,_[1])}f&&c(l[p],"sham",!0)}},2693:function(e,t,r){var n=r(4141);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},7841:function(e,t,r){var n=r(1153),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},3847:function(e,t,r){var n=r(9720),o=r(9181),i=r(1153),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},1153:function(e,t,r){var n=r(4141);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8829:function(e,t,r){"use strict";var n=r(9720),o=r(9181),i=r(7809),a=r(1163),s=r(942),c=r(1153),u=Function,l=n([].concat),f=n([].join),p={},d=function(e,t,r){if(!a(p,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";p[t]=u("C,a","return new C("+f(n,",")+")")}return p[t](e,r)};e.exports=c?u.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),a=function(){var r=l(n,s(arguments));return this instanceof a?d(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},9107:function(e,t,r){var n=r(1153),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9684:function(e,t,r){var n=r(2931),o=r(1163),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},9720:function(e,t,r){var n=r(1153),o=Function.prototype,i=o.bind,a=o.call,s=n&&i.bind(a,a);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},7300:function(e,t,r){var n=r(2383),o=r(1045),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},1328:function(e,t,r){var n=r(6837),o=r(466),i=r(7323),a=r(9171),s=r(9140)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},6151:function(e,t,r){var n=r(9107),o=r(9181),i=r(1571),a=r(7632),s=r(1328),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw c(a(e)+" is not iterable")}},466:function(e,t,r){var n=r(9181),o=r(7323);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},2383:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},1163:function(e,t,r){var n=r(9720),o=r(4569),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},8164:function(e){e.exports={}},1879:function(e,t,r){var n=r(2383);e.exports=function(e,t){var r=n.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},4530:function(e,t,r){var n=r(7300);e.exports=n("document","documentElement")},688:function(e,t,r){var n=r(2931),o=r(4141),i=r(6459);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3392:function(e,t,r){var n=r(9720),o=r(4141),i=r(6027),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},8851:function(e,t,r){var n=r(1045),o=r(7809),i=r(7046);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},4554:function(e,t,r){var n=r(9720),o=r(1045),i=r(4480),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},6811:function(e,t,r){var n=r(4866),o=r(9720),i=r(8164),a=r(7809),s=r(1163),c=r(4317).f,u=r(1242),l=r(6584),f=r(1773),p=r(858),d=r(2693),h=!1,E=p("meta"),_=0,O=function(e){c(e,E,{value:{objectID:"O"+_++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},h=!0;var e=u.f,t=o([].splice),r={};r[E]=1,e(r).length&&(u.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===E){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,E)){if(!f(e))return"F";if(!t)return"E";O(e)}return e[E].objectID},getWeakData:function(e,t){if(!s(e,E)){if(!f(e))return!0;if(!t)return!1;O(e)}return e[E].weakData},onFreeze:function(e){return d&&h&&f(e)&&!s(e,E)&&O(e),e}};i[E]=!0},7417:function(e,t,r){var n,o,i,a=r(1849),s=r(2383),c=r(9720),u=r(7809),l=r(6493),f=r(1163),p=r(4480),d=r(6033),h=r(8164),E="Object already initialized",_=s.TypeError,O=s.WeakMap;if(a||p.state){var g=p.state||(p.state=new O),T=c(g.get),R=c(g.has),v=c(g.set);n=function(e,t){if(R(g,e))throw _(E);return t.facade=e,v(g,e,t),t},o=function(e){return T(g,e)||{}},i=function(e){return R(g,e)}}else{var y=d("state");h[y]=!0,n=function(e,t){if(f(e,y))throw _(E);return t.facade=e,l(e,y,t),t},o=function(e){return f(e,y)?e[y]:{}},i=function(e){return f(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=o(t)).type!==e)throw _("Incompatible receiver, "+e+" required");return r}}}},706:function(e,t,r){var n=r(9140),o=r(9171),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},6833:function(e,t,r){var n=r(6027);e.exports=Array.isArray||function(e){return"Array"==n(e)}},1045:function(e){e.exports=function(e){return"function"==typeof e}},8297:function(e,t,r){var n=r(9720),o=r(4141),i=r(1045),a=r(6837),s=r(7300),c=r(4554),u=function(){},l=[],f=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=n(p.exec),h=!p.exec(u),E=function(e){if(!i(e))return!1;try{return f(u,l,e),!0}catch(e){return!1}},_=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(p,c(e))}catch(e){return!0}};_.sham=!0,e.exports=!f||o((function(){var e;return E(E.call)||!E(Object)||!E((function(){e=!0}))||e}))?_:E},1122:function(e,t,r){var n=r(4141),o=r(1045),i=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r==l||r!=u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},7323:function(e){e.exports=function(e){return null==e}},7809:function(e,t,r){var n=r(1045),o="object"==typeof document&&document.all,i=void 0===o&&void 0!==o;e.exports=i?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},4726:function(e){e.exports=!1},3265:function(e,t,r){var n=r(7809),o=r(6027),i=r(9140)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},6894:function(e,t,r){var n=r(7300),o=r(1045),i=r(8931),a=r(2048),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},5991:function(e,t,r){var n=r(3847),o=r(9107),i=r(1571),a=r(7632),s=r(706),c=r(2398),u=r(8931),l=r(6151),f=r(1328),p=r(6186),d=TypeError,h=function(e,t){this.stopped=e,this.result=t},E=h.prototype;e.exports=function(e,t,r){var _,O,g,T,R,v,y,m=r&&r.that,I=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),N=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),A=n(t,m),M=function(e){return _&&p(_,"normal",e),new h(!0,e)},U=function(e){return I?(i(e),C?A(e[0],e[1],M):A(e[0],e[1])):C?A(e,M):A(e)};if(S)_=e.iterator;else if(N)_=e;else{if(!(O=f(e)))throw d(a(e)+" is not iterable");if(s(O)){for(g=0,T=c(e);T>g;g++)if((R=U(e[g]))&&u(E,R))return R;return new h(!1)}_=l(e,O)}for(v=S?e.next:_.next;!(y=o(v,_)).done;){try{R=U(y.value)}catch(e){p(_,"throw",e)}if("object"==typeof R&&R&&u(E,R))return R}return new h(!1)}},6186:function(e,t,r){var n=r(9107),o=r(1571),i=r(466);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},9437:function(e,t,r){"use strict";var n=r(9549).IteratorPrototype,o=r(5565),i=r(2499),a=r(5125),s=r(9171),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),a(e,l,!1,!0),s[l]=c,e}},9719:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(4726),a=r(9684),s=r(1045),c=r(9437),u=r(2573),l=r(7046),f=r(5125),p=r(6493),d=r(4405),h=r(9140),E=r(9171),_=r(9549),O=a.PROPER,g=a.CONFIGURABLE,T=_.IteratorPrototype,R=_.BUGGY_SAFARI_ITERATORS,v=h("iterator"),y="keys",m="values",I="entries",S=function(){return this};e.exports=function(e,t,r,a,h,_,N){c(r,t,a);var C,A,M,U=function(e){if(e===h&&w)return w;if(!R&&e in P)return P[e];switch(e){case y:case m:case I:return function(){return new r(this,e)}}return function(){return new r(this)}},b=t+" Iterator",L=!1,P=e.prototype,x=P[v]||P["@@iterator"]||h&&P[h],w=!R&&x||U(h),G="Array"==t&&P.entries||x;if(G&&(C=u(G.call(new e)))!==Object.prototype&&C.next&&(i||u(C)===T||(l?l(C,T):s(C[v])||d(C,v,S)),f(C,b,!0,!0),i&&(E[b]=S)),O&&h==m&&x&&x.name!==m&&(!i&&g?p(P,"name",m):(L=!0,w=function(){return o(x,this)})),h)if(A={values:U(m),keys:_?w:U(y),entries:U(I)},N)for(M in A)(R||L||!(M in P))&&d(P,M,A[M]);else n({target:t,proto:!0,forced:R||L},A);return i&&!N||P[v]===w||d(P,v,w,{name:h}),E[t]=w,A}},9549:function(e,t,r){"use strict";var n,o,i,a=r(4141),s=r(1045),c=r(7809),u=r(5565),l=r(2573),f=r(4405),p=r(9140),d=r(4726),h=p("iterator"),E=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):E=!0),!c(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:d&&(n=u(n)),s(n[h])||f(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:E}},9171:function(e){e.exports={}},2398:function(e,t,r){var n=r(2844);e.exports=function(e){return n(e.length)}},2511:function(e,t,r){var n=r(4141),o=r(1045),i=r(1163),a=r(2931),s=r(9684).CONFIGURABLE,c=r(4554),u=r(7417),l=u.enforce,f=u.get,p=Object.defineProperty,d=a&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),E=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),d&&r&&i(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=l(e);return i(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=E((function(){return o(this)&&f(this).source||c(this)}),"toString")},3709:function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5418:function(e,t,r){var n,o,i,a,s,c,u,l,f=r(2383),p=r(3847),d=r(9097).f,h=r(5515).set,E=r(7337),_=r(3035),O=r(678),g=r(4368),T=f.MutationObserver||f.WebKitMutationObserver,R=f.document,v=f.process,y=f.Promise,m=d(f,"queueMicrotask"),I=m&&m.value;I||(n=function(){var e,t;for(g&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},E||g||O||!T||!R?!_&&y&&y.resolve?((u=y.resolve(void 0)).constructor=y,l=p(u.then,u),a=function(){l(n)}):g?a=function(){v.nextTick(n)}:(h=p(h,f),a=function(){h(n)}):(s=!0,c=R.createTextNode(""),new T(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=I||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},9636:function(e,t,r){"use strict";var n=r(9181),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},1271:function(e,t,r){var n=r(3265),o=TypeError;e.exports=function(e){if(n(e))throw o("The method doesn't accept regular expressions");return e}},7411:function(e,t,r){"use strict";var n=r(2931),o=r(9720),i=r(9107),a=r(4141),s=r(3555),c=r(6920),u=r(7225),l=r(4569),f=r(3392),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||a((function(){if(n&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=p({},e)[r]||s(p({},t)).join("")!=o}))?function(e,t){for(var r=l(e),o=arguments.length,a=1,p=c.f,d=u.f;o>a;)for(var E,_=f(arguments[a++]),O=p?h(s(_),p(_)):s(_),g=O.length,T=0;g>T;)E=O[T++],n&&!i(d,_,E)||(r[E]=_[E]);return r}:p},5565:function(e,t,r){var n,o=r(1571),i=r(3633),a=r(7414),s=r(8164),c=r(4530),u=r(6459),l=r(6033)("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&n?d(n):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):d(n);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[l]=e):r=h(),void 0===t?r:i.f(r,t)}},3633:function(e,t,r){var n=r(2931),o=r(5957),i=r(4317),a=r(1571),s=r(4221),c=r(3555);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,r=o[l++],n[r]);return e}},4317:function(e,t,r){var n=r(2931),o=r(688),i=r(5957),a=r(1571),s=r(7277),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},9097:function(e,t,r){var n=r(2931),o=r(9107),i=r(7225),a=r(2499),s=r(4221),c=r(7277),u=r(1163),l=r(688),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=c(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},6584:function(e,t,r){var n=r(6027),o=r(4221),i=r(1242).f,a=r(9730),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},1242:function(e,t,r){var n=r(6984),o=r(7414).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},6920:function(e,t){t.f=Object.getOwnPropertySymbols},2573:function(e,t,r){var n=r(1163),o=r(1045),i=r(4569),a=r(6033),s=r(4667),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},1773:function(e,t,r){var n=r(4141),o=r(7809),i=r(6027),a=r(9042),s=Object.isExtensible,c=n((function(){s(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},8931:function(e,t,r){var n=r(9720);e.exports=n({}.isPrototypeOf)},6984:function(e,t,r){var n=r(9720),o=r(1163),i=r(4221),a=r(7351).indexOf,s=r(8164),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&c(l,r);for(;t.length>u;)o(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},3555:function(e,t,r){var n=r(6984),o=r(7414);e.exports=Object.keys||function(e){return n(e,o)}},7225:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7046:function(e,t,r){var n=r(9720),o=r(1571),i=r(2091);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},4757:function(e,t,r){"use strict";var n=r(1247),o=r(6837);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},8434:function(e,t,r){var n=r(9107),o=r(1045),i=r(7809),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw a("Can't convert object to primitive value")}},5260:function(e,t,r){var n=r(7300),o=r(9720),i=r(1242),a=r(6920),s=r(1571),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?c(t,r(e)):t}},5096:function(e,t,r){var n=r(2383);e.exports=n},4393:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},8583:function(e,t,r){var n=r(2383),o=r(7587),i=r(1045),a=r(1122),s=r(4554),c=r(9140),u=r(5830),l=r(3954),f=r(4726),p=r(583),d=o&&o.prototype,h=c("species"),E=!1,_=i(n.PromiseRejectionEvent),O=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===p)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(E=r.then((function(){}))instanceof n))return!0}return!t&&(u||l)&&!_}));e.exports={CONSTRUCTOR:O,REJECTION_EVENT:_,SUBCLASSING:E}},7587:function(e,t,r){var n=r(2383);e.exports=n.Promise},6401:function(e,t,r){var n=r(1571),o=r(7809),i=r(9636);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},5431:function(e,t,r){var n=r(7587),o=r(3802),i=r(8583).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},1072:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},2146:function(e,t,r){var n=r(9107),o=r(1571),i=r(1045),a=r(6027),s=r(1660),c=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return n(s,e,t);throw c("RegExp#exec called on incompatible receiver")}},1660:function(e,t,r){"use strict";var n,o,i=r(9107),a=r(9720),s=r(9274),c=r(5316),u=r(4233),l=r(6402),f=r(5565),p=r(7417).get,d=r(5629),h=r(2231),E=l("native-string-replace",String.prototype.replace),_=RegExp.prototype.exec,O=_,g=a("".charAt),T=a("".indexOf),R=a("".replace),v=a("".slice),y=(o=/b*/g,i(_,n=/a/,"a"),i(_,o,"a"),0!==n.lastIndex||0!==o.lastIndex),m=u.BROKEN_CARET,I=void 0!==/()??/.exec("")[1];(y||I||m||d||h)&&(O=function(e){var t,r,n,o,a,u,l,d=this,h=p(d),S=s(e),N=h.raw;if(N)return N.lastIndex=d.lastIndex,t=i(O,N,S),d.lastIndex=N.lastIndex,t;var C=h.groups,A=m&&d.sticky,M=i(c,d),U=d.source,b=0,L=S;if(A&&(M=R(M,"y",""),-1===T(M,"g")&&(M+="g"),L=v(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==g(S,d.lastIndex-1))&&(U="(?: "+U+")",L=" "+L,b++),r=new RegExp("^(?:"+U+")",M)),I&&(r=new RegExp("^"+U+"$(?!\\s)",M)),y&&(n=d.lastIndex),o=i(_,A?r:d,L),A?o?(o.input=v(o.input,b),o[0]=v(o[0],b),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:y&&o&&(d.lastIndex=d.global?o.index+o[0].length:n),I&&o&&o.length>1&&i(E,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&C)for(o.groups=u=f(null),a=0;a<C.length;a++)u[(l=C[a])[0]]=o[l[1]];return o}),e.exports=O},5316:function(e,t,r){"use strict";var n=r(1571);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8040:function(e,t,r){var n=r(9107),o=r(1163),i=r(8931),a=r(5316),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},4233:function(e,t,r){var n=r(4141),o=r(2383).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},5629:function(e,t,r){var n=r(4141),o=r(2383).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},2231:function(e,t,r){var n=r(4141),o=r(2383).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},6827:function(e,t,r){var n=r(7323),o=TypeError;e.exports=function(e){if(n(e))throw o("Can't call method on "+e);return e}},4467:function(e,t,r){"use strict";var n=r(7300),o=r(4317),i=r(9140),a=r(2931),s=i("species");e.exports=function(e){var t=n(e),r=o.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},5125:function(e,t,r){var n=r(4317).f,o=r(1163),i=r(9140)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},6033:function(e,t,r){var n=r(6402),o=r(858),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4480:function(e,t,r){var n=r(2383),o=r(5784),i="__core-js_shared__",a=n[i]||o(i,{});e.exports=a},6402:function(e,t,r){var n=r(4726),o=r(4480);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",source:"https://github.com/zloirock/core-js"})},543:function(e,t,r){var n=r(1571),o=r(7345),i=r(7323),a=r(9140)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},7957:function(e,t,r){var n=r(9720),o=r(152),i=r(9274),a=r(6827),s=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(a(t)),p=o(r),d=f.length;return p<0||p>=d?e?"":void 0:(n=c(f,p))<55296||n>56319||p+1===d||(l=c(f,p+1))<56320||l>57343?e?s(f,p):n:e?u(f,p,p+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},9492:function(e,t,r){"use strict";var n=r(9720),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,u=n(a.exec),l=Math.floor,f=String.fromCharCode,p=n("".charCodeAt),d=n([].join),h=n([].push),E=n("".replace),_=n("".split),O=n("".toLowerCase),g=function(e){return e+22+75*(e<26)},T=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},R=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=p(e,r++);if(o>=55296&&o<=56319&&r<n){var i=p(e,r++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),r--)}else h(t,o)}return t}(e);var r,n,i=e.length,a=128,u=0,E=72;for(r=0;r<e.length;r++)(n=e[r])<128&&h(t,f(n));var _=t.length,O=_;for(_&&h(t,"-");O<i;){var R=o;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<R&&(R=n);var v=O+1;if(R-a>l((o-u)/v))throw c(s);for(u+=(R-a)*v,a=R,r=0;r<e.length;r++){if((n=e[r])<a&&++u>o)throw c(s);if(n==a){for(var y=u,m=36;;){var I=m<=E?1:m>=E+26?26:m-E;if(y<I)break;var S=y-I,N=36-I;h(t,f(g(I+S%N))),y=l(S/N),m+=36}h(t,f(g(y))),E=T(u,v,O==_),u=0,O++}}u++,a++}return d(t,"")};e.exports=function(e){var t,r,n=[],o=_(E(O(e),a,"."),".");for(t=0;t<o.length;t++)r=o[t],h(n,u(i,r)?"xn--"+R(r):r);return d(n,".")}},3379:function(e,t,r){var n=r(9720),o=r(6827),i=r(9274),a=r(6342),s=n("".replace),c="["+a+"]",u=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),f=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,u,"")),2&e&&(r=s(r,l,"")),r}};e.exports={start:f(1),end:f(2),trim:f(3)}},5793:function(e,t,r){var n=r(583),o=r(4141);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3706:function(e,t,r){var n=r(9107),o=r(7300),i=r(9140),a=r(4405);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},6125:function(e,t,r){var n=r(5793);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},5515:function(e,t,r){var n,o,i,a,s=r(2383),c=r(7841),u=r(3847),l=r(1045),f=r(1163),p=r(4141),d=r(4530),h=r(942),E=r(6459),_=r(248),O=r(7337),g=r(4368),T=s.setImmediate,R=s.clearImmediate,v=s.process,y=s.Dispatch,m=s.Function,I=s.MessageChannel,S=s.String,N=0,C={};try{n=s.location}catch(e){}var A=function(e){if(f(C,e)){var t=C[e];delete C[e],t()}},M=function(e){return function(){A(e)}},U=function(e){A(e.data)},b=function(e){s.postMessage(S(e),n.protocol+"//"+n.host)};T&&R||(T=function(e){_(arguments.length,1);var t=l(e)?e:m(e),r=h(arguments,1);return C[++N]=function(){c(t,void 0,r)},o(N),N},R=function(e){delete C[e]},g?o=function(e){v.nextTick(M(e))}:y&&y.now?o=function(e){y.now(M(e))}:I&&!O?(a=(i=new I).port2,i.port1.onmessage=U,o=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(b)?(o=b,s.addEventListener("message",U,!1)):o="onreadystatechange"in E("script")?function(e){d.appendChild(E("script")).onreadystatechange=function(){d.removeChild(this),A(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:T,clear:R}},5890:function(e,t,r){var n=r(9720);e.exports=n(1..valueOf)},3943:function(e,t,r){var n=r(152),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},4221:function(e,t,r){var n=r(3392),o=r(6827);e.exports=function(e){return n(o(e))}},152:function(e,t,r){var n=r(3709);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},2844:function(e,t,r){var n=r(152),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},4569:function(e,t,r){var n=r(6827),o=Object;e.exports=function(e){return o(n(e))}},55:function(e,t,r){var n=r(9107),o=r(7809),i=r(6894),a=r(466),s=r(8434),c=r(9140),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},7277:function(e,t,r){var n=r(55),o=r(6894);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},1247:function(e,t,r){var n={};n[r(9140)("toStringTag")]="z",e.exports="[object z]"===String(n)},9274:function(e,t,r){var n=r(6837),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},7632:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},858:function(e,t,r){var n=r(9720),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},9677:function(e,t,r){var n=r(4141),o=r(9140),i=r(4726),a=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2048:function(e,t,r){var n=r(5793);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5957:function(e,t,r){var n=r(2931),o=r(4141);e.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},248:function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},1849:function(e,t,r){var n=r(2383),o=r(1045),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8225:function(e,t,r){var n=r(5096),o=r(1163),i=r(7216),a=r(4317).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},7216:function(e,t,r){var n=r(9140);t.f=n},9140:function(e,t,r){var n=r(2383),o=r(6402),i=r(1163),a=r(858),s=r(5793),c=r(2048),u=o("wks"),l=n.Symbol,f=l&&l.for,p=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(l,e)?u[e]=l[e]:u[e]=c&&f?f(t):p(t)}return u[e]}},6342:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},7095:function(e,t,r){"use strict";var n=r(4866),o=r(4141),i=r(6833),a=r(7809),s=r(4569),c=r(2398),u=r(7540),l=r(567),f=r(5508),p=r(3933),d=r(9140),h=r(583),E=d("isConcatSpreadable"),_=h>=51||!o((function(){var e=[];return e[E]=!1,e.concat()[0]!==e})),O=p("concat"),g=function(e){if(!a(e))return!1;var t=e[E];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!_||!O},{concat:function(e){var t,r,n,o,i,a=s(this),p=f(a,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(g(i=-1===t?a:arguments[t]))for(o=c(i),u(d+o),r=0;r<o;r++,d++)r in i&&l(p,d,i[r]);else u(d+1),l(p,d++,i);return p.length=d,p}})},1362:function(e,t,r){"use strict";var n=r(4866),o=r(4890);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},9889:function(e,t,r){"use strict";var n=r(4866),o=r(7351).includes,i=r(4141),a=r(4651);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},5980:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(7351).indexOf,a=r(3070),s=o([].indexOf),c=!!s&&1/s([1],1,-0)<0,u=a("indexOf");n({target:"Array",proto:!0,forced:c||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:i(this,e,t)}})},3529:function(e,t,r){r(4866)({target:"Array",stat:!0},{isArray:r(6833)})},1685:function(e,t,r){"use strict";var n=r(4221),o=r(4651),i=r(9171),a=r(7417),s=r(4317).f,c=r(9719),u=r(8174),l=r(4726),f=r(2931),p="Array Iterator",d=a.set,h=a.getterFor(p);e.exports=c(Array,"Array",(function(e,t){d(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var E=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==E.name)try{s(E,"name",{value:"values"})}catch(e){}},3535:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(3392),a=r(4221),s=r(3070),c=o([].join),u=i!=Object,l=s("join",",");n({target:"Array",proto:!0,forced:u||!l},{join:function(e){return c(a(this),void 0===e?",":e)}})},1655:function(e,t,r){var n=r(4866),o=r(1959);n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},8134:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(6833),a=o([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},2657:function(e,t,r){"use strict";var n=r(4866),o=r(6833),i=r(8297),a=r(7809),s=r(3943),c=r(2398),u=r(4221),l=r(567),f=r(9140),p=r(3933),d=r(942),h=p("slice"),E=f("species"),_=Array,O=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,f,p=u(this),h=c(p),g=s(e,h),T=s(void 0===t?h:t,h);if(o(p)&&(r=p.constructor,(i(r)&&(r===_||o(r.prototype))||a(r)&&null===(r=r[E]))&&(r=void 0),r===_||void 0===r))return d(p,g,T);for(n=new(void 0===r?_:r)(O(T-g,0)),f=0;g<T;g++,f++)g in p&&l(n,f,p[g]);return n.length=f,n}})},3022:function(e,t,r){"use strict";var n=r(4866),o=r(4569),i=r(3943),a=r(152),s=r(2398),c=r(1208),u=r(7540),l=r(5508),f=r(567),p=r(6733),d=r(3933)("splice"),h=Math.max,E=Math.min;n({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var r,n,d,_,O,g,T=o(this),R=s(T),v=i(e,R),y=arguments.length;for(0===y?r=n=0:1===y?(r=0,n=R-v):(r=y-2,n=E(h(a(t),0),R-v)),u(R+r-n),d=l(T,n),_=0;_<n;_++)(O=v+_)in T&&f(d,_,T[O]);if(d.length=n,r<n){for(_=v;_<R-n;_++)g=_+r,(O=_+n)in T?T[g]=T[O]:p(T,g);for(_=R;_>R-n+r;_--)p(T,_-1)}else if(r>n)for(_=R-n;_>v;_--)g=_+r-1,(O=_+n-1)in T?T[g]=T[O]:p(T,g);for(_=0;_<r;_++)T[_+v]=arguments[_+2];return c(T,R-n+r),d}})},9046:function(e,t,r){var n=r(4866),o=r(9720),i=Date,a=o(i.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return a(new i)}})},9782:function(e,t,r){var n=r(9720),o=r(4405),i=Date.prototype,a="Invalid Date",s=n(i.toString),c=n(i.getTime);String(new Date(NaN))!=a&&o(i,"toString",(function(){var e=c(this);return e==e?s(this):a}))},7693:function(e,t,r){var n=r(4866),o=r(8829);n({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},8668:function(e,t,r){var n=r(2931),o=r(9684).EXISTS,i=r(9720),a=r(4317).f,s=Function.prototype,c=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(u.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(e){return""}}})},7675:function(e,t,r){var n=r(4866),o=r(7300),i=r(7841),a=r(9107),s=r(9720),c=r(4141),u=r(6833),l=r(1045),f=r(7809),p=r(6894),d=r(942),h=r(5793),E=o("JSON","stringify"),_=s(/./.exec),O=s("".charAt),g=s("".charCodeAt),T=s("".replace),R=s(1..toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,m=/^[\uDC00-\uDFFF]$/,I=!h||c((function(){var e=o("Symbol")();return"[null]"!=E([e])||"{}"!=E({a:e})||"{}"!=E(Object(e))})),S=c((function(){return'"\\udf06\\ud834"'!==E("\udf06\ud834")||'"\\udead"'!==E("\udead")})),N=function(e,t){var r=d(arguments),n=t;if((f(t)||void 0!==e)&&!p(e))return u(t)||(t=function(e,t){if(l(n)&&(t=a(n,this,e,t)),!p(t))return t}),r[1]=t,i(E,null,r)},C=function(e,t,r){var n=O(r,t-1),o=O(r,t+1);return _(y,e)&&!_(m,o)||_(m,e)&&!_(y,n)?"\\u"+R(g(e,0),16):e};E&&n({target:"JSON",stat:!0,arity:3,forced:I||S},{stringify:function(e,t,r){var n=d(arguments),o=i(I?N:E,null,n);return S&&"string"==typeof o?T(o,v,C):o}})},5303:function(e,t,r){"use strict";r(6202)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(6675))},5724:function(e,t,r){r(5303)},8453:function(e,t,r){"use strict";var n=r(2931),o=r(2383),i=r(9720),a=r(1122),s=r(4405),c=r(1163),u=r(8851),l=r(8931),f=r(6894),p=r(55),d=r(4141),h=r(1242).f,E=r(9097).f,_=r(4317).f,O=r(5890),g=r(3379).trim,T="Number",R=o.Number,v=R.prototype,y=o.TypeError,m=i("".slice),I=i("".charCodeAt),S=function(e){var t=p(e,"number");return"bigint"==typeof t?t:N(t)},N=function(e){var t,r,n,o,i,a,s,c,u=p(e,"number");if(f(u))throw y("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=g(u),43===(t=I(u,0))||45===t){if(88===(r=I(u,2))||120===r)return NaN}else if(48===t){switch(I(u,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=m(u,2)).length,s=0;s<a;s++)if((c=I(i,s))<48||c>o)return NaN;return parseInt(i,n)}return+u};if(a(T,!R(" 0o1")||!R("0b1")||R("+0x1"))){for(var C,A=function(e){var t=arguments.length<1?0:R(S(e)),r=this;return l(v,r)&&d((function(){O(r)}))?u(Object(t),r,A):t},M=n?h(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),U=0;M.length>U;U++)c(R,C=M[U])&&!c(A,C)&&_(A,C,E(R,C));A.prototype=v,v.constructor=A,s(o,T,A,{constructor:!0})}},8327:function(e,t,r){var n=r(4866),o=r(7411);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},954:function(e,t,r){var n=r(4866),o=r(5793),i=r(4141),a=r(6920),s=r(4569);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},3786:function(e,t,r){var n=r(4866),o=r(4569),i=r(3555);n({target:"Object",stat:!0,forced:r(4141)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},900:function(e,t,r){var n=r(1247),o=r(4405),i=r(4757);n||o(Object.prototype,"toString",i,{unsafe:!0})},9273:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9181),a=r(9636),s=r(4393),c=r(5991);n({target:"Promise",stat:!0,forced:r(5431)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,l=s((function(){var r=i(t.resolve),a=[],s=0,l=1;c(e,(function(e){var i=s++,c=!1;l++,o(r,t,e).then((function(e){c||(c=!0,a[i]=e,--l||n(a))}),u)})),--l||n(a)}));return l.error&&u(l.value),r.promise}})},359:function(e,t,r){"use strict";var n=r(4866),o=r(4726),i=r(8583).CONSTRUCTOR,a=r(7587),s=r(7300),c=r(1045),u=r(4405),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(a)){var f=s("Promise").prototype.catch;l.catch!==f&&u(l,"catch",f,{unsafe:!0})}},5137:function(e,t,r){"use strict";var n,o,i,a=r(4866),s=r(4726),c=r(4368),u=r(2383),l=r(9107),f=r(4405),p=r(7046),d=r(5125),h=r(4467),E=r(9181),_=r(1045),O=r(7809),g=r(9112),T=r(543),R=r(5515).set,v=r(5418),y=r(1879),m=r(4393),I=r(1072),S=r(7417),N=r(7587),C=r(8583),A=r(9636),M="Promise",U=C.CONSTRUCTOR,b=C.REJECTION_EVENT,L=C.SUBCLASSING,P=S.getterFor(M),x=S.set,w=N&&N.prototype,G=N,D=w,B=u.TypeError,H=u.document,F=u.process,k=A.f,W=k,j=!!(H&&H.createEvent&&u.dispatchEvent),q="unhandledrejection",K=function(e){var t;return!(!O(e)||!_(t=e.then))&&t},V=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&Y(t),t.rejection=1),!0===s?r=i:(f&&f.enter(),r=s(i),f&&(f.exit(),o=!0)),r===e.promise?u(B("Promise-chain cycle")):(n=K(r))?l(n,r,c,u):c(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},X=function(e,t){e.notified||(e.notified=!0,v((function(){for(var r,n=e.reactions;r=n.get();)V(r,e);e.notified=!1,t&&!e.rejection&&z(e)})))},J=function(e,t,r){var n,o;j?((n=H.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!b&&(o=u["on"+e])?o(n):e===q&&y("Unhandled promise rejection",r)},z=function(e){l(R,u,(function(){var t,r=e.facade,n=e.value;if(Z(e)&&(t=m((function(){c?F.emit("unhandledRejection",n,r):J(q,r,n)})),e.rejection=c||Z(e)?2:1,t.error))throw t.value}))},Z=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){l(R,u,(function(){var t=e.facade;c?F.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},Q=function(e,t,r){return function(n){e(t,n,r)}},$=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,X(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw B("Promise can't be resolved itself");var n=K(t);n?v((function(){var r={done:!1};try{l(n,t,Q(ee,r,e),Q($,r,e))}catch(t){$(r,t,e)}})):(e.value=t,e.state=1,X(e,!1))}catch(t){$({done:!1},t,e)}}};if(U&&(D=(G=function(e){g(this,D),E(e),l(n,this);var t=P(this);try{e(Q(ee,t),Q($,t))}catch(e){$(t,e)}}).prototype,(n=function(e){x(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:0,value:void 0})}).prototype=f(D,"then",(function(e,t){var r=P(this),n=k(T(this,G));return r.parent=!0,n.ok=!_(e)||e,n.fail=_(t)&&t,n.domain=c?F.domain:void 0,0==r.state?r.reactions.add(n):v((function(){V(n,r)})),n.promise})),o=function(){var e=new n,t=P(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q($,t)},A.f=k=function(e){return e===G||void 0===e?new o(e):W(e)},!s&&_(N)&&w!==Object.prototype)){i=w.then,L||f(w,"then",(function(e,t){var r=this;return new G((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete w.constructor}catch(e){}p&&p(w,D)}a({global:!0,constructor:!0,wrap:!0,forced:U},{Promise:G}),d(G,M,!1,!0),h(M)},3814:function(e,t,r){r(5137),r(9273),r(359),r(5886),r(5465),r(1118)},5886:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9181),a=r(9636),s=r(4393),c=r(5991);n({target:"Promise",stat:!0,forced:r(5431)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=i(t.resolve);c(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},5465:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9636);n({target:"Promise",stat:!0,forced:r(8583).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},1118:function(e,t,r){"use strict";var n=r(4866),o=r(7300),i=r(4726),a=r(7587),s=r(8583).CONSTRUCTOR,c=r(6401),u=o("Promise"),l=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return c(l&&this===u?a:this,e)}})},1008:function(e,t,r){"use strict";var n=r(4866),o=r(1660);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},937:function(e,t,r){"use strict";var n=r(9684).PROPER,o=r(4405),i=r(1571),a=r(9274),s=r(4141),c=r(8040),u="toString",l=RegExp.prototype.toString,f=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=n&&l.name!=u;(f||p)&&o(RegExp.prototype,u,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},6619:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(1271),a=r(6827),s=r(9274),c=r(7849),u=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},2486:function(e,t,r){"use strict";var n=r(7957).charAt,o=r(9274),i=r(7417),a=r(9719),s=r(8174),c="String Iterator",u=i.set,l=i.getterFor(c);a(String,"String",(function(e){u(this,{type:c,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},7461:function(e,t,r){"use strict";var n=r(7841),o=r(9107),i=r(9720),a=r(2267),s=r(1571),c=r(7323),u=r(3265),l=r(6827),f=r(543),p=r(3025),d=r(2844),h=r(9274),E=r(466),_=r(9730),O=r(2146),g=r(1660),T=r(4233),R=r(4141),v=T.UNSUPPORTED_Y,y=4294967295,m=Math.min,I=[].push,S=i(/./.exec),N=i(I),C=i("".slice),A=!R((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));a("split",(function(e,t,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var i=h(l(this)),a=void 0===r?y:r>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var s,c,f,p=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),E=0,O=new RegExp(e.source,d+"g");(s=o(g,O,i))&&!((c=O.lastIndex)>E&&(N(p,C(i,E,s.index)),s.length>1&&s.index<i.length&&n(I,p,_(s,1)),f=s[0].length,E=c,p.length>=a));)O.lastIndex===s.index&&O.lastIndex++;return E===i.length?!f&&S(O,"")||N(p,""):N(p,C(i,E)),p.length>a?_(p,0,a):p}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:o(t,this,e,r)}:t,[function(t,r){var n=l(this),a=c(t)?void 0:E(t,e);return a?o(a,t,n,r):o(i,h(n),t,r)},function(e,n){var o=s(this),a=h(e),c=r(i,o,a,n,i!==t);if(c.done)return c.value;var u=f(o,RegExp),l=o.unicode,E=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"g":"y"),_=new u(v?"^(?:"+o.source+")":o,E),g=void 0===n?y:n>>>0;if(0===g)return[];if(0===a.length)return null===O(_,a)?[a]:[];for(var T=0,R=0,I=[];R<a.length;){_.lastIndex=v?0:R;var S,A=O(_,v?C(a,R):a);if(null===A||(S=m(d(_.lastIndex+(v?R:0)),a.length))===T)R=p(a,R,l);else{if(N(I,C(a,T,R)),I.length===g)return I;for(var M=1;M<=A.length-1;M++)if(N(I,A[M]),I.length===g)return I;R=T=S}}return N(I,C(a,T)),I}]}),!A,v)},9172:function(e,t,r){"use strict";var n=r(4866),o=r(2383),i=r(9107),a=r(9720),s=r(4726),c=r(2931),u=r(5793),l=r(4141),f=r(1163),p=r(8931),d=r(1571),h=r(4221),E=r(7277),_=r(9274),O=r(2499),g=r(5565),T=r(3555),R=r(1242),v=r(6584),y=r(6920),m=r(9097),I=r(4317),S=r(3633),N=r(7225),C=r(4405),A=r(6402),M=r(6033),U=r(8164),b=r(858),L=r(9140),P=r(7216),x=r(8225),w=r(3706),G=r(5125),D=r(7417),B=r(888).forEach,H=M("hidden"),F="Symbol",k=D.set,W=D.getterFor(F),j=Object.prototype,q=o.Symbol,K=q&&q.prototype,V=o.TypeError,X=o.QObject,J=m.f,z=I.f,Z=v.f,Y=N.f,Q=a([].push),$=A("symbols"),ee=A("op-symbols"),te=A("wks"),re=!X||!X.prototype||!X.prototype.findChild,ne=c&&l((function(){return 7!=g(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=J(j,t);n&&delete j[t],z(e,t,r),n&&e!==j&&z(j,t,n)}:z,oe=function(e,t){var r=$[e]=g(K);return k(r,{type:F,tag:e,description:t}),c||(r.description=t),r},ie=function(e,t,r){e===j&&ie(ee,t,r),d(e);var n=E(t);return d(r),f($,n)?(r.enumerable?(f(e,H)&&e[H][n]&&(e[H][n]=!1),r=g(r,{enumerable:O(0,!1)})):(f(e,H)||z(e,H,O(1,{})),e[H][n]=!0),ne(e,n,r)):z(e,n,r)},ae=function(e,t){d(e);var r=h(t),n=T(r).concat(le(r));return B(n,(function(t){c&&!i(se,r,t)||ie(e,t,r[t])})),e},se=function(e){var t=E(e),r=i(Y,this,t);return!(this===j&&f($,t)&&!f(ee,t))&&(!(r||!f(this,t)||!f($,t)||f(this,H)&&this[H][t])||r)},ce=function(e,t){var r=h(e),n=E(t);if(r!==j||!f($,n)||f(ee,n)){var o=J(r,n);return!o||!f($,n)||f(r,H)&&r[H][n]||(o.enumerable=!0),o}},ue=function(e){var t=Z(h(e)),r=[];return B(t,(function(e){f($,e)||f(U,e)||Q(r,e)})),r},le=function(e){var t=e===j,r=Z(t?ee:h(e)),n=[];return B(r,(function(e){!f($,e)||t&&!f(j,e)||Q(n,$[e])})),n};u||(q=function(){if(p(K,this))throw V("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_(arguments[0]):void 0,t=b(e),r=function(e){this===j&&i(r,ee,e),f(this,H)&&f(this[H],t)&&(this[H][t]=!1),ne(this,t,O(1,e))};return c&&re&&ne(j,t,{configurable:!0,set:r}),oe(t,e)},C(K=q.prototype,"toString",(function(){return W(this).tag})),C(q,"withoutSetter",(function(e){return oe(b(e),e)})),N.f=se,I.f=ie,S.f=ae,m.f=ce,R.f=v.f=ue,y.f=le,P.f=function(e){return oe(L(e),e)},c&&(z(K,"description",{configurable:!0,get:function(){return W(this).description}}),s||C(j,"propertyIsEnumerable",se,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),B(T(te),(function(e){x(e)})),n({target:F,stat:!0,forced:!u},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?g(e):ae(g(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ue}),w(),G(q,F),U[H]=!0},4201:function(e,t,r){"use strict";var n=r(4866),o=r(2931),i=r(2383),a=r(9720),s=r(1163),c=r(1045),u=r(8931),l=r(9274),f=r(4317).f,p=r(5751),d=i.Symbol,h=d&&d.prototype;if(o&&c(d)&&(!("description"in h)||void 0!==d().description)){var E={},_=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(E[t]=!0),t};p(_,d),_.prototype=h,h.constructor=_;var O="Symbol(test)"==String(d("test")),g=a(h.valueOf),T=a(h.toString),R=/^Symbol\((.*)\)[^)]+$/,v=a("".replace),y=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=g(this);if(s(E,e))return"";var t=T(e),r=O?y(t,7,-1):v(t,R,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:_})}},2718:function(e,t,r){var n=r(4866),o=r(7300),i=r(1163),a=r(9274),s=r(6402),c=r(6125),u=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e);if(i(u,t))return u[t];var r=o("Symbol")(t);return u[t]=r,l[r]=t,r}})},6864:function(e,t,r){r(8225)("iterator")},514:function(e,t,r){r(9172),r(2718),r(2183),r(7675),r(954)},2183:function(e,t,r){var n=r(4866),o=r(1163),i=r(6894),a=r(7632),s=r(6402),c=r(6125),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},7988:function(e,t,r){var n=r(2383),o=r(9286),i=r(5977),a=r(4890),s=r(6493),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&c(n[u]&&n[u].prototype);c(i)},4261:function(e,t,r){var n=r(2383),o=r(9286),i=r(5977),a=r(1685),s=r(6493),c=r(9140),u=c("iterator"),l=c("toStringTag"),f=a.values,p=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(t){e[u]=f}if(e[l]||s(e,l,t),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var d in o)p(n[d]&&n[d].prototype,d);p(i,"DOMTokenList")},5709:function(e,t,r){"use strict";r(1685);var n=r(4866),o=r(2383),i=r(9107),a=r(9720),s=r(2931),c=r(9677),u=r(4405),l=r(4766),f=r(5125),p=r(9437),d=r(7417),h=r(9112),E=r(1045),_=r(1163),O=r(3847),g=r(6837),T=r(1571),R=r(7809),v=r(9274),y=r(5565),m=r(2499),I=r(6151),S=r(1328),N=r(248),C=r(9140),A=r(5416),M=C("iterator"),U="URLSearchParams",b="URLSearchParamsIterator",L=d.set,P=d.getterFor(U),x=d.getterFor(b),w=Object.getOwnPropertyDescriptor,G=function(e){if(!s)return o[e];var t=w(o,e);return t&&t.value},D=G("fetch"),B=G("Request"),H=G("Headers"),F=B&&B.prototype,k=H&&H.prototype,W=o.RegExp,j=o.TypeError,q=o.decodeURIComponent,K=o.encodeURIComponent,V=a("".charAt),X=a([].join),J=a([].push),z=a("".replace),Z=a([].shift),Y=a([].splice),Q=a("".split),$=a("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=W("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return q(e)}catch(t){return e}},oe=function(e){var t=z(e,ee," "),r=4;try{return q(t)}catch(e){for(;r;)t=z(t,re(r--),ne);return t}},ie=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},ce=function(e){return z(K(e),ie,se)},ue=p((function(e,t){L(this,{type:b,iterator:I(P(e).entries),kind:t})}),"Iterator",(function(){var e=x(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===V(e,0)?$(e,1):e:v(e)))};le.prototype={type:U,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,s,c,u=S(e);if(u)for(r=(t=I(e,u)).next;!(n=i(r,t)).done;){if(a=(o=I(T(n.value))).next,(s=i(a,o)).done||(c=i(a,o)).done||!i(a,o).done)throw j("Expected sequence with length 2");J(this.entries,{key:v(s.value),value:v(c.value)})}else for(var l in e)_(e,l)&&J(this.entries,{key:l,value:v(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=Q(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=Q(t,"="),J(this.entries,{key:oe(Z(r)),value:oe(X(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],J(r,ce(e.key)+"="+ce(e.value));return X(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){h(this,pe);var e=arguments.length>0?arguments[0]:void 0;L(this,new le(e))},pe=fe.prototype;if(l(pe,{append:function(e,t){N(arguments.length,2);var r=P(this);J(r.entries,{key:v(e),value:v(t)}),r.updateURL()},delete:function(e){N(arguments.length,1);for(var t=P(this),r=t.entries,n=v(e),o=0;o<r.length;)r[o].key===n?Y(r,o,1):o++;t.updateURL()},get:function(e){N(arguments.length,1);for(var t=P(this).entries,r=v(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){N(arguments.length,1);for(var t=P(this).entries,r=v(e),n=[],o=0;o<t.length;o++)t[o].key===r&&J(n,t[o].value);return n},has:function(e){N(arguments.length,1);for(var t=P(this).entries,r=v(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){N(arguments.length,1);for(var r,n=P(this),o=n.entries,i=!1,a=v(e),s=v(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Y(o,c--,1):(i=!0,r.value=s));i||J(o,{key:a,value:s}),n.updateURL()},sort:function(){var e=P(this);A(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=P(this).entries,n=O(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(pe,M,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return P(this).serialize()}),{enumerable:!0}),f(fe,U),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:fe}),!c&&E(H)){var de=a(k.has),he=a(k.set),Ee=function(e){if(R(e)){var t,r=e.body;if(g(r)===U)return t=e.headers?new H(e.headers):new H,de(t,"content-type")||he(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),y(e,{body:m(0,v(r)),headers:m(0,t)})}return e};if(E(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?Ee(arguments[1]):{})}}),E(B)){var _e=function(e){return h(this,F),new B(e,arguments.length>1?Ee(arguments[1]):{})};F.constructor=_e,_e.prototype=F,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:_e})}}e.exports={URLSearchParams:fe,getState:P}},8385:function(e,t,r){r(5709)},1672:function(e,t,r){"use strict";r(2486);var n,o=r(4866),i=r(2931),a=r(9677),s=r(2383),c=r(3847),u=r(9720),l=r(4405),f=r(2886),p=r(9112),d=r(1163),h=r(7411),E=r(1601),_=r(9730),O=r(7957).codeAt,g=r(9492),T=r(9274),R=r(5125),v=r(248),y=r(5709),m=r(7417),I=m.set,S=m.getterFor("URL"),N=y.URLSearchParams,C=y.getState,A=s.URL,M=s.TypeError,U=s.parseInt,b=Math.floor,L=Math.pow,P=u("".charAt),x=u(/./.exec),w=u([].join),G=u(1..toString),D=u([].pop),B=u([].push),H=u("".replace),F=u([].shift),k=u("".split),W=u("".slice),j=u("".toLowerCase),q=u([].unshift),K="Invalid scheme",V="Invalid host",X="Invalid port",J=/[a-z]/i,z=/[\d+-.a-z]/i,Z=/\d/,Y=/^0x/i,Q=/^[0-7]+$/,$=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ie=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)q(t,e%256),e=b(e/256);return w(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=G(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},se=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},se,{"#":1,"?":1,"{":1,"}":1}),ue=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),le=function(e,t){var r=O(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2==e.length&&x(J,P(e,0))&&(":"==(r=P(e,1))||!t&&"|"==r)},de=function(e){var t;return e.length>1&&pe(W(e,0,2))&&(2==e.length||"/"===(t=P(e,2))||"\\"===t||"?"===t||"#"===t)},he=function(e){return"."===e||"%2e"===j(e)},Ee={},_e={},Oe={},ge={},Te={},Re={},ve={},ye={},me={},Ie={},Se={},Ne={},Ce={},Ae={},Me={},Ue={},be={},Le={},Pe={},xe={},we={},Ge=function(e,t,r){var n,o,i,a=T(e);if(t){if(o=this.parse(a))throw M(o);this.searchParams=null}else{if(void 0!==r&&(n=new Ge(r,!0)),o=this.parse(a,null,n))throw M(o);(i=C(new N)).bindURL(this),this.searchParams=i}};Ge.prototype={type:"URL",parse:function(e,t,r){var o,i,a,s,c,u=this,l=t||Ee,f=0,p="",h=!1,O=!1,g=!1;for(e=T(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=H(e,ne,"")),e=H(e,oe,""),o=E(e);f<=o.length;){switch(i=o[f],l){case Ee:if(!i||!x(J,i)){if(t)return K;l=Oe;continue}p+=j(i),l=_e;break;case _e:if(i&&(x(z,i)||"+"==i||"-"==i||"."==i))p+=j(i);else{if(":"!=i){if(t)return K;p="",l=Oe,f=0;continue}if(t&&(u.isSpecial()!=d(fe,p)||"file"==p&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=p,t)return void(u.isSpecial()&&fe[u.scheme]==u.port&&(u.port=null));p="","file"==u.scheme?l=Ae:u.isSpecial()&&r&&r.scheme==u.scheme?l=ge:u.isSpecial()?l=ye:"/"==o[f+1]?(l=Te,f++):(u.cannotBeABaseURL=!0,B(u.path,""),l=Pe)}break;case Oe:if(!r||r.cannotBeABaseURL&&"#"!=i)return K;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=_(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,l=we;break}l="file"==r.scheme?Ae:Re;continue;case ge:if("/"!=i||"/"!=o[f+1]){l=Re;continue}l=me,f++;break;case Te:if("/"==i){l=Ie;break}l=Le;continue;case Re:if(u.scheme=r.scheme,i==n)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=_(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())l=ve;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=_(r.path),u.query="",l=xe;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=_(r.path),u.path.length--,l=Le;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=_(r.path),u.query=r.query,u.fragment="",l=we}break;case ve:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,l=Le;continue}l=Ie}else l=me;break;case ye:if(l=me,"/"!=i||"/"!=P(p,f+1))continue;f++;break;case me:if("/"!=i&&"\\"!=i){l=Ie;continue}break;case Ie:if("@"==i){h&&(p="%40"+p),h=!0,a=E(p);for(var R=0;R<a.length;R++){var v=a[R];if(":"!=v||g){var y=le(v,ue);g?u.password+=y:u.username+=y}else g=!0}p=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(h&&""==p)return"Invalid authority";f-=E(p).length+1,p="",l=Se}else p+=i;break;case Se:case Ne:if(t&&"file"==u.scheme){l=Ue;continue}if(":"!=i||O){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==p)return V;if(t&&""==p&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(p))return s;if(p="",l=be,t)return;continue}"["==i?O=!0:"]"==i&&(O=!1),p+=i}else{if(""==p)return V;if(s=u.parseHost(p))return s;if(p="",l=Ce,t==Ne)return}break;case Ce:if(!x(Z,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=p){var m=U(p,10);if(m>65535)return X;u.port=u.isSpecial()&&m===fe[u.scheme]?null:m,p=""}if(t)return;l=be;continue}return X}p+=i;break;case Ae:if(u.scheme="file","/"==i||"\\"==i)l=Me;else{if(!r||"file"!=r.scheme){l=Le;continue}if(i==n)u.host=r.host,u.path=_(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=_(r.path),u.query="",l=xe;else{if("#"!=i){de(w(_(o,f),""))||(u.host=r.host,u.path=_(r.path),u.shortenPath()),l=Le;continue}u.host=r.host,u.path=_(r.path),u.query=r.query,u.fragment="",l=we}}break;case Me:if("/"==i||"\\"==i){l=Ue;break}r&&"file"==r.scheme&&!de(w(_(o,f),""))&&(pe(r.path[0],!0)?B(u.path,r.path[0]):u.host=r.host),l=Le;continue;case Ue:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&pe(p))l=Le;else if(""==p){if(u.host="",t)return;l=be}else{if(s=u.parseHost(p))return s;if("localhost"==u.host&&(u.host=""),t)return;p="",l=be}continue}p+=i;break;case be:if(u.isSpecial()){if(l=Le,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=Le,"/"!=i))continue}else u.fragment="",l=we;else u.query="",l=xe;break;case Le:if(i==n||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(c=j(c=p))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||B(u.path,"")):he(p)?"/"==i||"\\"==i&&u.isSpecial()||B(u.path,""):("file"==u.scheme&&!u.path.length&&pe(p)&&(u.host&&(u.host=""),p=P(p,0)+":"),B(u.path,p)),p="","file"==u.scheme&&(i==n||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)F(u.path);"?"==i?(u.query="",l=xe):"#"==i&&(u.fragment="",l=we)}else p+=le(i,ce);break;case Pe:"?"==i?(u.query="",l=xe):"#"==i?(u.fragment="",l=we):i!=n&&(u.path[0]+=le(i,ae));break;case xe:t||"#"!=i?i!=n&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":le(i,ae)):(u.fragment="",l=we);break;case we:i!=n&&(u.fragment+=le(i,se))}f++}},parseHost:function(e){var t,r,n;if("["==P(e,0)){if("]"!=P(e,e.length-1))return V;if(t=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,p=function(){return P(e,f)};if(":"==p()){if(":"!=P(e,1))return;f+=2,l=++u}for(;p();){if(8==u)return;if(":"!=p()){for(t=r=0;r<4&&x(ee,p());)t=16*t+U(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,u>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!x(Z,p()))return;for(;x(Z,p());){if(i=U(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c}(W(e,1,-1)),!t)return V;this.host=t}else if(this.isSpecial()){if(e=g(e),x(te,e))return V;if(t=function(e){var t,r,n,o,i,a,s,c=k(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==P(o,0)&&(i=x(Y,o)?16:8,o=W(o,8==i?1:2)),""===o)a=0;else{if(!x(10==i?$:8==i?Q:ee,o))return e;a=U(o,i)}B(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=L(256,5-t))return null}else if(a>255)return null;for(s=D(r),n=0;n<r.length;n++)s+=r[n]*L(256,3-n);return s}(e),null===t)return V;this.host=t}else{if(x(re,e))return V;for(t="",r=E(e),n=0;n<r.length;n++)t+=le(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=ie(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+w(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw M(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new De(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(T(e)+":",Ee)},getUsername:function(){return this.username},setUsername:function(e){var t=E(T(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=le(t[r],ue)}},getPassword:function(){return this.password},setPassword:function(e){var t=E(T(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=le(t[r],ue)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Se)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ne)},getPort:function(){var e=this.port;return null===e?"":T(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=T(e))?this.port=null:this.parse(e,Ce))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+w(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,be))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=T(e))?this.query=null:("?"==P(e,0)&&(e=W(e,1)),this.query="",this.parse(e,xe)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=T(e))?("#"==P(e,0)&&(e=W(e,1)),this.fragment="",this.parse(e,we)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var De=function(e){var t=p(this,Be),r=v(arguments.length,1)>1?arguments[1]:void 0,n=I(t,new Ge(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Be=De.prototype,He=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(Be,"href",He("serialize","setHref")),f(Be,"origin",He("getOrigin")),f(Be,"protocol",He("getProtocol","setProtocol")),f(Be,"username",He("getUsername","setUsername")),f(Be,"password",He("getPassword","setPassword")),f(Be,"host",He("getHost","setHost")),f(Be,"hostname",He("getHostname","setHostname")),f(Be,"port",He("getPort","setPort")),f(Be,"pathname",He("getPathname","setPathname")),f(Be,"search",He("getSearch","setSearch")),f(Be,"searchParams",He("getSearchParams")),f(Be,"hash",He("getHash","setHash"))),l(Be,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(Be,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),A){var Fe=A.createObjectURL,ke=A.revokeObjectURL;Fe&&l(De,"createObjectURL",c(Fe,A)),ke&&l(De,"revokeObjectURL",c(ke,A))}R(De,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:De})},4838:function(e,t,r){r(1672)},9168:function(e){e.exports=r;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function n(e){return!0===(e&&e.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var o={},i={};function a(e,t){var r,n,a;return t?(a=0<=(e>>>=0)&&e<256)&&(n=i[e])?n:(r=c(e,(0|e)<0?-1:0,!0),a&&(i[e]=r),r):(a=-128<=(e|=0)&&e<128)&&(n=o[e])?n:(r=c(e,e<0?-1:0,!1),a&&(o[e]=r),r)}function s(e,t){if(isNaN(e))return t?O:_;if(t){if(e<0)return O;if(e>=d)return y}else{if(e<=-h)return m;if(e+1>=h)return v}return e<0?s(-e,t).neg():c(e%p|0,e/p|0,t)}function c(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=s,r.fromBits=c;var u=Math.pow;function l(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return _;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return l(e.substring(1),t,r).neg();for(var o=s(u(r,8)),i=_,a=0;a<e.length;a+=8){var c=Math.min(8,e.length-a),f=parseInt(e.substring(a,a+c),r);if(c<8){var p=s(u(r,c));i=i.mul(p).add(s(f))}else i=(i=i.mul(o)).add(s(f))}return i.unsigned=t,i}function f(e,t){return"number"==typeof e?s(e,t):"string"==typeof e?l(e,t):c(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=l,r.fromValue=f;var p=4294967296,d=p*p,h=d/2,E=a(1<<24),_=a(0);r.ZERO=_;var O=a(0,!0);r.UZERO=O;var g=a(1);r.ONE=g;var T=a(1,!0);r.UONE=T;var R=a(-1);r.NEG_ONE=R;var v=c(-1,2147483647,!1);r.MAX_VALUE=v;var y=c(-1,-1,!0);r.MAX_UNSIGNED_VALUE=y;var m=c(0,-2147483648,!1);r.MIN_VALUE=m;var I=r.prototype;I.toInt=function(){return this.unsigned?this.low>>>0:this.low},I.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},I.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(m)){var t=s(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=s(u(e,6),this.unsigned),i=this,a="";;){var c=i.div(o),l=(i.sub(c.mul(o)).toInt()>>>0).toString(e);if((i=c).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},I.getHighBits=function(){return this.high},I.getHighBitsUnsigned=function(){return this.high>>>0},I.getLowBits=function(){return this.low},I.getLowBitsUnsigned=function(){return this.low>>>0},I.getNumBitsAbs=function(){if(this.isNegative())return this.eq(m)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},I.isZero=function(){return 0===this.high&&0===this.low},I.eqz=I.isZero,I.isNegative=function(){return!this.unsigned&&this.high<0},I.isPositive=function(){return this.unsigned||this.high>=0},I.isOdd=function(){return 1==(1&this.low)},I.isEven=function(){return 0==(1&this.low)},I.equals=function(e){return n(e)||(e=f(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},I.eq=I.equals,I.notEquals=function(e){return!this.eq(e)},I.neq=I.notEquals,I.ne=I.notEquals,I.lessThan=function(e){return this.comp(e)<0},I.lt=I.lessThan,I.lessThanOrEqual=function(e){return this.comp(e)<=0},I.lte=I.lessThanOrEqual,I.le=I.lessThanOrEqual,I.greaterThan=function(e){return this.comp(e)>0},I.gt=I.greaterThan,I.greaterThanOrEqual=function(e){return this.comp(e)>=0},I.gte=I.greaterThanOrEqual,I.ge=I.greaterThanOrEqual,I.compare=function(e){if(n(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},I.comp=I.compare,I.negate=function(){return!this.unsigned&&this.eq(m)?m:this.not().add(g)},I.neg=I.negate,I.add=function(e){n(e)||(e=f(e));var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,i=65535&this.low,a=e.high>>>16,s=65535&e.high,u=e.low>>>16,l=0,p=0,d=0,h=0;return d+=(h+=i+(65535&e.low))>>>16,p+=(d+=o+u)>>>16,l+=(p+=r+s)>>>16,l+=t+a,c((d&=65535)<<16|(h&=65535),(l&=65535)<<16|(p&=65535),this.unsigned)},I.subtract=function(e){return n(e)||(e=f(e)),this.add(e.neg())},I.sub=I.subtract,I.multiply=function(e){if(this.isZero())return _;if(n(e)||(e=f(e)),t)return c(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return _;if(this.eq(m))return e.isOdd()?m:_;if(e.eq(m))return this.isOdd()?m:_;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(E)&&e.lt(E))return s(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,o=65535&this.high,i=this.low>>>16,a=65535&this.low,u=e.high>>>16,l=65535&e.high,p=e.low>>>16,d=65535&e.low,h=0,O=0,g=0,T=0;return g+=(T+=a*d)>>>16,O+=(g+=i*d)>>>16,g&=65535,O+=(g+=a*p)>>>16,h+=(O+=o*d)>>>16,O&=65535,h+=(O+=i*p)>>>16,O&=65535,h+=(O+=a*l)>>>16,h+=r*d+o*p+i*l+a*u,c((g&=65535)<<16|(T&=65535),(h&=65535)<<16|(O&=65535),this.unsigned)},I.mul=I.multiply,I.divide=function(e){if(n(e)||(e=f(e)),e.isZero())throw Error("division by zero");var r,o,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?O:_;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return O;if(e.gt(this.shru(1)))return T;i=O}else{if(this.eq(m))return e.eq(g)||e.eq(R)?m:e.eq(m)?g:(r=this.shr(1).div(e).shl(1)).eq(_)?e.isNegative()?g:R:(o=this.sub(e.mul(r)),i=r.add(o.div(e)));if(e.eq(m))return this.unsigned?O:_;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=_}for(o=this;o.gte(e);){r=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),l=a<=48?1:u(2,a-48),p=s(r),d=p.mul(e);d.isNegative()||d.gt(o);)d=(p=s(r-=l,this.unsigned)).mul(e);p.isZero()&&(p=g),i=i.add(p),o=o.sub(d)}return i},I.div=I.divide,I.modulo=function(e){return n(e)||(e=f(e)),t?c((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},I.mod=I.modulo,I.rem=I.modulo,I.not=function(){return c(~this.low,~this.high,this.unsigned)},I.and=function(e){return n(e)||(e=f(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},I.or=function(e){return n(e)||(e=f(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},I.xor=function(e){return n(e)||(e=f(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},I.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):c(0,this.low<<e-32,this.unsigned)},I.shl=I.shiftLeft,I.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},I.shr=I.shiftRight,I.shiftRightUnsigned=function(e){if(n(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?c(this.low>>>e|t<<32-e,t>>>e,this.unsigned):c(32===e?t:t>>>e-32,0,this.unsigned)},I.shru=I.shiftRightUnsigned,I.shr_u=I.shiftRightUnsigned,I.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},I.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},I.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},I.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},I.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.amdO={},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{acceptContactInvite:function(){return B},acceptInvitation:function(){return D},addContact:function(){return x},addReaction:function(){return J},addToBlackList:function(){return k},addUsersToBlacklist:function(){return W},addUsersToBlocklist:function(){return j},declineContactInvite:function(){return F},declineInvitation:function(){return H},deleteContact:function(){return G},deleteConversation:function(){return S},deleteReaction:function(){return z},deleteSession:function(){return I},fetchHistoryMessages:function(){return b},fetchUserInfoById:function(){return A},getBlacklist:function(){return _},getBlocklist:function(){return O},getChatToken:function(){return U},getContacts:function(){return T},getConversationlist:function(){return m},getHistoryMessages:function(){return P},getReactionDetail:function(){return Q},getReactionList:function(){return Z},getReactionlist:function(){return Y},getRoster:function(){return g},getSessionList:function(){return y},recallMessage:function(){return X},removeFromBlackList:function(){return q},removeHistoryMessages:function(){return ee},removeRoster:function(){return w},removeUserFromBlackList:function(){return K},removeUserFromBlocklist:function(){return V},reportMessage:function(){return $},updateCurrentUserNick:function(){return M},updateOwnUserInfo:function(){return N},updateUserInfo:function(){return C},uploadPushToken:function(){return v},uploadToken:function(){return R}}),r(8327),r(900),r(3814),r(514),r(4201),r(6864),r(1685),r(2486),r(4261),r(1362),r(7988),r(7095),r(9889),r(3535),r(8134),r(3022),r(8668),r(9782),r(937),r(3529);var e=r(1222),t=r(3365),o=r(7480),i=r(7551),a=r(983),s=r(5163),c=r(5491),u=r.n(c),l=r(6916),f=r(3681),p=r(2006),d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)},h=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},E=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function _(r){if(!e.XZ.call(this)){var n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(n)}var a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,p={url:this.apiUrl+"/"+s+"/"+c+"/users/"+this.user+"/blocks/users",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+u},success:function(e){var t={};e.data.forEach((function(e){t[e]={name:e}})),"function"==typeof(null==r?void 0:r.success)&&r.success(e)},error:function(e){"function"==typeof(null==r?void 0:r.error)&&r.error(e)}};return l.kg.debug("Call getBlocklist"),i.hj.call(this,p,f.fI.GET_BLACK_LIST)}var O=_,g=T;function T(r){var n=this;if(!e.XZ.call(this)){var a=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(a)}var s=this.context,c=s.orgName,u=s.appName,p=s.accessToken,d={url:this.apiUrl+"/"+c+"/"+u+"/users/"+this.user+"/contacts/users",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+p},success:function(e){var t=[];e.data.forEach((function(e){t.push({name:e,subscription:"both",jid:n.context.jid})})),"function"==typeof(null==r?void 0:r.success)&&r.success(t)},error:function(e){"function"==typeof(null==r?void 0:r.error)&&r.error(e)}};return l.kg.debug("Call getContacts"),i.hj.call(this,d,f.fI.GET_CONTACTS)}function R(r){if("string"!=typeof r.deviceId||""===r.deviceId)throw Error('Invalid parameter: "deviceId"');if("string"!=typeof r.deviceToken||""===r.deviceToken)throw Error('Invalid parameter: "deviceToken"');if("string"!=typeof r.notifierName||""===r.notifierName)throw Error('Invalid parameter: "notifierName"');if(!e.XZ.call(this)){var n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(n)}var a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,p={url:"".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/users/").concat(this.user),type:"PUT",data:JSON.stringify({device_id:r.deviceId,device_token:r.deviceToken,notifier_name:r.notifierName}),dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"},success:r.success,error:r.error};return l.kg.debug("Call uploadPushToken",r),i.hj.call(this,p,f.fI.UPLOAD_PUSH_TOKEN)}var v=R;function y(r){if(!e.XZ.call(this)){var n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(n)}var a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,p={url:"".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/users/").concat(this.user,"/user_channels"),type:"GET",dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"},success:r&&(null==r?void 0:r.success),error:r&&(null==r?void 0:r.error)};return l.kg.debug("Call getSessionList"),i.hj.call(this,p,f.fI.GET_SESSION_LIST)}function m(r){if(!e.XZ.call(this)){var n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(n)}var a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,d={url:"".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/users/").concat(this.user,"/user_channels"),type:"GET",dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"},success:r&&(null==r?void 0:r.success),error:r&&(null==r?void 0:r.error)};return l.kg.debug("Call getConversationlist"),i.hj.call(this,d,f.fI.GET_SESSION_LIST).then((function(e){return function(e){var t=e.data.channel_infos;return null==t||t.forEach((function(e){e.meta&&"{}"!==JSON.stringify(e.meta)?(e.meta.payload=JSON.parse(e.meta.payload),e.lastMessage=(0,p.w)(e.meta)):e.lastMessage=e.meta,delete e.meta})),e}(e)}))}function I(r){if(r&&"string"!=typeof r.channel)throw Error("Invalid parameter channel: ".concat(r.channel));if(r&&"singleChat"!==r.chatType&&"groupChat"!==r.chatType)throw Error("Invalid parameter chatType: ".concat(r.chatType));if(r&&"boolean"!=typeof r.deleteRoam)throw Error("Invalid parameter deleteRoam: ".concat(r.deleteRoam));if(!e.XZ.call(this)){var n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(n)}var a,s=this.context,c=s.orgName,u=s.appName,p=s.accessToken;a="singleChat"===r.chatType?"chat":"groupChat";var d={url:"".concat(this.apiUrl,"/").concat(c,"/").concat(u,"/users/").concat(this.user,"/user_channel"),dataType:"json",type:"DELETE",data:JSON.stringify({channel:r.channel,type:a,delete_roam:r.deleteRoam}),headers:{Authorization:"Bearer "+p,"Content-Type":"application/json"},success:r.success,error:r.error};return l.kg.debug("Call deleteSession",r),i.hj.call(this,d,f.fI.DELETE_SESSION)}var S=I;function N(r,n){if(!e.XZ.call(this)){var a=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(a)}var s=this.context,c=s.orgName,u=s.appName,p=s.accessToken,d=["nickname","avatarurl","mail","phone","gender","sign","birth","ext"],h={};if("undefined"!=typeof wx||"undefined"!=typeof qq)if("string"==typeof r&&void 0!==n){if(!d.includes(r))throw new Error("illegal key, only these keys: nickname, avatarurl, mail, phone, gender, sign, birth, ext are allowed");h[r]=n}else{if("[object Object]"!==Object.prototype.toString.call(r))throw new Error("illegal params");d.forEach((function(e){d.includes(e)&&void 0!==r[e]&&(h[e]=r[e])}))}else if("string"==typeof r){if(!d.includes(r))throw new Error("illegal key, only these keys: nickname, avatarurl, mail, phone, gender, sign, birth, ext are allowed");h=r+"="+n}else{if("[object Object]"!==Object.prototype.toString.call(r))throw new Error("illegal params");var E=[];d.forEach((function(e){if(d.includes(e)&&void 0!==r[e]){var t=encodeURIComponent(e),n=encodeURIComponent(r[e]);E.push(t+"="+n)}})),h=E.join("&")}var _={url:"".concat(this.apiUrl,"/").concat(c,"/").concat(u,"/metadata/user/").concat(this.user),type:"PUT",data:h,dataType:"json",headers:{Authorization:"Bearer "+p,"Content-Type":"application/x-www-form-urlencoded"}};return l.kg.debug("Call updateOwnUserInfo",r),i.hj.call(this,_,f.fI.UPDATE_USER_INFO)}var C=N;function A(r,n){if(!e.XZ.call(this)){var a=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(a)}var s,c=this.context,u=c.orgName,p=c.appName,d=c.accessToken,h=[];if("string"==typeof r)h=[r];else{if("[object Array]"!==Object.prototype.toString.call(r))throw new Error("illegal params");h=r}s="string"==typeof n?[n]:n&&"[object Array]"===Object.prototype.toString.call(n)?n:["nickname","avatarurl","mail","phone","gender","sign","birth","ext"];var E={url:"".concat(this.apiUrl,"/").concat(u,"/").concat(p,"/metadata/user/get"),type:"POST",data:JSON.stringify({targets:h,properties:s}),dataType:"json",headers:{Authorization:"Bearer "+d,"Content-Type":"application/json"}};return l.kg.debug("Call fetchUserInfoById",r),i.hj.call(this,E,f.fI.GET_USER_INFO)}function M(r){if(!e.XZ.call(this)){var n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(n)}var a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,f={url:"".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/users/").concat(this.user),type:"PUT",dataType:"json",data:JSON.stringify({nickname:r}),headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}};return l.kg.debug("Call updateCurrentUserNick",r),i.hj.call(this,f)}function U(e){if("string"!=typeof e||""===e)throw Error('Invalid parameter: "agoraToken"');var t=this.context,r=t.orgName,n=t.appName,o={url:this.apiUrl+"/"+r+"/"+n+"/token",dataType:"json",type:"POST",data:JSON.stringify({grant_type:"agora"}),headers:{Authorization:"Bearer "+e,"Content-Type":"application/json"}};return l.kg.debug("Call getChatToken",e),i.hj.call(this,o,f.fI.SDK_INTERNAL)}function b(r){var n=this;return new Promise((function(i,a){if(!r.queue)throw Error('Invalid parameter: "specified"');if(!e.XZ.call(n)){var s=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(s)}(function e(t){var r=this,n=t.count||20;L.call(this,{count:n,isGroup:!!t.isGroup,queue:t.queue,start:t.start,format:t.format,success:function(o){if(o.msgs.length>=n||o.is_last){var a=o.msgs.splice(0,n).reverse();t.success&&t.success(a),i(a)}else e.call(r,d(d({},t),{start:null}))},fail:function(e){a(e),t.fail&&t.fail(e)}})}).call(n,r),l.kg.debug("Call fetchHistoryMessages",r)}))}function L(e){var r=this,n=e.queue,s=this.mr_cache[n]||(this.mr_cache[n]={msgs:[]}),c=this.context.userId,l=e.start||-1,p=e.count||20;if(s.msgs.length>=p||s.is_last)"function"==typeof e.success&&e.success(s);else{s&&s.next_key&&(l=s.next_key),e.start&&(l=e.start);var d={queue:n+(e.isGroup?"@conference.easemob.com":"@easemob.com"),start:l,end:-1},h=this.context,E=h.orgName,_=h.appName,O={url:this.apiUrl+"/"+E+"/"+_+"/users/"+c+"/messageroaming",dataType:"json",type:"POST",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"},data:JSON.stringify(d),success:function(t){var n=null==t?void 0:t.data;if(!t.data.msgs)return"function"==typeof e.success&&e.success(s),s.is_last=!0,void(s.next_key="");var o=n.msgs,i=o.length;s.is_last=n.is_last,s.next_key=n.next_key;for(var c=function(t){for(var n=[],o=0,i=(t=u().atob(t)).length;o<i;++o)n.push(t.charCodeAt(o));var s=r.context.root.lookup("easemob.pb.Meta");if(1===(s=s.decode(n)).ns)return a.Z.call(r,s,{errorCode:0,reason:""},!0,e.format)},l=0;l<i;l++){var f=c(o[l].msg);f&&s.msgs.push(f)}"function"==typeof e.success&&e.success(s)},error:function n(i){if(i.error&&i.error_description){var a=o.Z.create({type:t.E.WEBIM_CONNCTION_LOAD_CHATROOM_ERROR,message:"fetch history messages error",data:i});r.onError&&r.onError(a)}"function"==typeof e.fail&&e.fail(n)}};i.hj.call(this,O,f.fI.GET_HISTORY_MSG)}}function P(r){var n=this;return new Promise((function(s,c){if("string"!=typeof r.targetId||""===r.targetId)throw Error('"Invalid parameter": "targetId"');if(!e.XZ.call(n))return c(o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"}));var f=n.context,p=f.orgName,d=f.appName,h=f.userId,E="groupChat"===r.chatType||"chatRoom"===r.chatType?"@conference.easemob.com":"@easemob.com",_={queue:r.targetId+E,start:r.cursor||-1,pull_number:r.pageSize||20,isGroup:"groupChat"===r.chatType||"chatRoom"===r.chatType||!1,is_positive:"down"===r.searchDirection,end:-1},O={url:n.apiUrl+"/"+p+"/"+d+"/users/"+h+"/messageroaming",dataType:"json",type:"POST",headers:{Authorization:"Bearer "+n.token,"Content-Type":"application/json"},data:JSON.stringify(_),success:function(e){for(var t=null==e?void 0:e.data,r=t.msgs||[],o=function(e){for(var t=[],r=0,o=(e=u().atob(e)).length;r<o;++r)t.push(e.charCodeAt(r));var i=n.context.root.lookup("easemob.pb.Meta");if(1===(i=i.decode(t)).ns)return a.Z.call(n,i,{errorCode:0,reason:""},!0,!0)},i=[],c=0;c<r.length;c++){var l=o(r[c].msg);l&&i.push(l)}t.msgs=i;var f={cursor:t.next_key,messages:i};s(f)},error:r.fail};i.hj.call(n,O),l.kg.debug("Call getHistoryMessages",r)}))}function x(e,t){var r={id:this.getUniqueId(),to:e,message:t};s.Z.operatRoster.call(this,r,"add"),l.kg.debug("Call addContact",r)}var w=G;function G(e){var t={id:this.getUniqueId(),to:e};s.Z.operatRoster.call(this,t,"remove"),l.kg.debug("Call deleteContact",t)}function D(e){var t={id:this.getUniqueId(),to:e};s.Z.operatRoster.call(this,t,"accept"),l.kg.debug("Call acceptInvitation",t)}var B=D;function H(e){var t={id:this.getUniqueId(),to:e};s.Z.operatRoster.call(this,t,"decline"),l.kg.debug("Call declineContactInvite",t)}var F=H;function k(e){s.Z.operatRoster.call(this,{to:e.name},"ban"),l.kg.debug("Call addUsersToBlocklist",e)}var W=k,j=k;function q(e){s.Z.operatRoster.call(this,{to:e.name},"allow"),l.kg.debug("Call removeUserFromBlocklist",e)}var K=q,V=q;function X(e){var t=this.getUniqueId(),r={id:t,to:e.to};this._msgHash[t]=d({},r);var n="";void 0!==e.chatType?n=e.chatType:void 0!==e.type&&(n="chat"===e.type?"singleChat":e.type);var o={id:t,type:"recall",chatType:n,ackId:e.mid,to:e.to,isChatThread:e.isChatThread||!1,success:e.success,fail:e.fail};return l.kg.debug("Call recallMessage",e),this.mSync.send(o,this)}function J(r){return h(this,void 0,void 0,(function(){var n,a,s,c,u,l,f,p,d;return E(this,(function(h){switch(h.label){case 0:if("string"!=typeof r.messageId||!r.messageId)throw Error("Invalid parameter messageId: ".concat(r.messageId));if("string"!=typeof r.reaction||!r.reaction)throw Error("Invalid parameter reaction: ".concat(r.reaction));return e.XZ.call(this)?(a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,l=r.reaction,f=r.messageId,p={msgId:f,message:l},d={url:"".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/reaction/user/").concat(this.user),type:"POST",data:JSON.stringify(p),dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}},[4,i.hj.call(this,d)]):(n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"}),[2,Promise.reject(n)]);case 1:return h.sent(),[2]}}))}))}function z(r){return h(this,void 0,void 0,(function(){var n,a,s,c,u,l,f,p;return E(this,(function(d){switch(d.label){case 0:if("string"!=typeof r.reaction||!r.reaction)throw Error("Invalid parameter reactionId: ".concat(r.reaction));return e.XZ.call(this)?(a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,l=r.messageId,f=r.reaction,p={url:"".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/reaction/user/").concat(this.user,"?msgId=").concat(l,"&message=").concat(f),type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}},[4,i.hj.call(this,p)]):(n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"}),[2,Promise.reject(n)]);case 1:return d.sent(),[2]}}))}))}function Z(r){if("string"!=typeof r.chatType||!r.chatType)throw Error("Invalid parameter chatType: ".concat(r.chatType));if(!r.messageId)throw Error("Invalid parameter messageId: ".concat(r.messageId));if(!e.XZ.call(this)){var n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(n)}var a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,l=r.chatType,f=r.messageId,p={msgIdList:"string"==typeof f?[f]:f,msgType:"singleChat"===l?"chat":"groupchat",groupId:r.groupId||null},d={url:"".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/reaction/user/").concat(this.user),type:"GET",data:p,dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}};return i.hj.call(this,d).then((function(e){var t=e.data;return null==t||t.forEach((function(e){null==e||e.reactionList.forEach((function(e){e.isAddedBySelf=e.state,delete e.state,delete e.reactionId}))})),e}))}var Y=Z;function Q(r){if("string"!=typeof r.reaction||!r.reaction)throw Error("Invalid parameter reaction: ".concat(r.reaction));if("string"!=typeof r.messageId||!r.messageId)throw Error("Invalid parameter messageId: ".concat(r.messageId));if(!e.XZ.call(this)){var n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(n)}var a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,l=r.cursor,f=r.pageSize,p={msgId:r.messageId,message:r.reaction,currentPage:l||null,pageSize:f||20},d={url:"".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/reaction/user/").concat(this.user,"/detail"),type:"GET",data:p,dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}};return i.hj.call(this,d).then((function(e){return e.data.isAddedBySelf=e.data.state,delete e.data.state,delete e.data.reactionId,e}))}function $(r){return h(this,void 0,void 0,(function(){var n,a,s,c,u,l,f,p,d,h,_;return E(this,(function(E){switch(E.label){case 0:if("string"!=typeof r.reportType||!r.reportType)throw Error("Invalid parameter reportType: ".concat(r.reportType));if("string"!=typeof r.messageId||!r.messageId)throw Error("Invalid parameter messageId: ".concat(r.messageId));if("string"!=typeof r.reportReason||!r.reportReason)throw Error("Invalid parameter messageId: ".concat(r.reportReason));return e.XZ.call(this)?(a=this.context,s=a.orgName,c=a.appName,u=a.accessToken,l=r.reportType,f=r.reportReason,p=r.messageId,d={username:this.user,reportType:l,reportReason:f},h="".concat(this.apiUrl,"/").concat(s,"/").concat(c,"/user/").concat(this.user,"/moderation/report/message/").concat(p),_={url:h,type:"POST",data:JSON.stringify(d),dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}},[4,i.hj.call(this,_)]):(n=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"}),[2,Promise.reject(n)]);case 1:return E.sent(),[2]}}))}))}function ee(r){var n;return h(this,void 0,void 0,(function(){var a,s,c,u,f,p,d,h,_;return E(this,(function(E){switch(E.label){case 0:if("string"!=typeof r.targetId||""===r.targetId)throw Error('"Invalid parameter targetId": '+r.targetId);if(!["singleChat","groupChat"].includes(r.chatType))throw Error('"Invalid parameter chatType": '+r.chatType);if(r.beforeTimeStamp&&("number"!=typeof r.beforeTimeStamp||r.beforeTimeStamp<0||(null===(n=r.beforeTimeStamp)||void 0===n?void 0:n.toString().length)>18))throw Error('"Invalid parameter beforeTimeStamp": '+r.beforeTimeStamp);if(r.messageIds&&!(Array.isArray(r.messageIds)&&r.messageIds.length>0&&r.messageIds.length<=20))throw Error('"Invalid parameter messageIds": '+r.messageIds);if(!r.messageIds&&!r.beforeTimeStamp)throw Error("messageIds or beforeTimeStamp field is required.");return e.XZ.call(this)?(s=this.context,c=s.orgName,u=s.appName,f=s.userId,p="singleChat"===r.chatType?"userId":"groupId",d="singleChat"===r.chatType?"chat":"group",h=r.messageIds?"".concat(this.apiUrl,"/").concat(c,"/").concat(u,"/sdk/message/roaming/").concat(d,"/user/").concat(f,"?").concat(p,"=").concat(r.targetId,"&msgIdList=").concat(r.messageIds,"&resource=").concat(this.clientResource):"".concat(this.apiUrl,"/").concat(c,"/").concat(u,"/sdk/message/roaming/").concat(d,"/user/").concat(f,"/time?").concat(p,"=").concat(r.targetId,"&delTime=").concat(r.beforeTimeStamp,"&&resource=").concat(this.clientResource),_={url:h,dataType:"json",type:"DELETE",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}},l.kg.debug("Call removeHistoryMessages",r),[4,i.hj.call(this,_)]):(a=o.Z.create({type:t.E.REST_PARAMS_STATUS,message:"appkey or token error"}),[2,Promise.reject(a)]);case 1:return E.sent(),[2]}}))}))}}(),n}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.websdk=t():e.websdk=t()}(this,(function(){return(this.webpackChunkwebsdk=this.webpackChunkwebsdk||[]).push([[564],{7479:function(e,t,r){r.r(t),r.d(t,{acceptContactInvite:function(){return z},acceptInvitation:function(){return B},addContact:function(){return x},addReaction:function(){return W},addToBlackList:function(){return G},addUsersToBlacklist:function(){return q},addUsersToBlocklist:function(){return H},declineContactInvite:function(){return X},declineInvitation:function(){return L},deleteContact:function(){return M},deleteConversation:function(){return A},deleteReaction:function(){return Q},deleteSession:function(){return b},fetchHistoryMessages:function(){return U},fetchUserInfoById:function(){return C},getBlacklist:function(){return y},getBlocklist:function(){return T},getChatToken:function(){return w},getContacts:function(){return S},getConversationlist:function(){return _},getHistoryMessages:function(){return P},getReactionDetail:function(){return $},getReactionList:function(){return Y},getReactionlist:function(){return V},getRoster:function(){return v},getSessionList:function(){return k},recallMessage:function(){return F},removeFromBlackList:function(){return J},removeHistoryMessages:function(){return te},removeRoster:function(){return Z},removeUserFromBlackList:function(){return K},removeUserFromBlocklist:function(){return D},reportMessage:function(){return ee},updateCurrentUserNick:function(){return R},updateOwnUserInfo:function(){return N},updateUserInfo:function(){return j},uploadPushToken:function(){return E},uploadToken:function(){return I}}),r(9601),r(1539),r(8674),r(2526),r(1817),r(2165),r(6992),r(8783),r(3948),r(9554),r(4747),r(2222),r(6699),r(9600),r(5069),r(561),r(8309),r(3710),r(9714),r(9753);var a=r(3246),n=r(5531),o=r(7252),s=r(4370),i=r(8161),c=r(4968),u=r(4188),l=r.n(u),p=r(7360),d=r(1595),h=r(4363),f=function(){return f=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},g=function(e,t,r,a){return new(r||(r=Promise))((function(n,o){function s(e){try{c(a.next(e))}catch(e){o(e)}}function i(e){try{c(a.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((a=a.apply(e,t||[])).next())}))},m=function(e,t){var r,a,n,o,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(o){return function(i){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,a&&(n=2&o[0]?a.return:o[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,o[1])).done)return n;switch(a=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){s.label=o[1];break}if(6===o[0]&&s.label<n[1]){s.label=n[1],n=o;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(o);break}n[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],a=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}};function y(e){if(!a.XZ.call(this)){var t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l={url:this.apiUrl+"/"+i+"/"+c+"/users/"+this.user+"/blocks/users",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+u},success:function(t){var r={};t.data.forEach((function(e){r[e]={name:e}})),"function"==typeof(null==e?void 0:e.success)&&e.success(t)},error:function(t){"function"==typeof(null==e?void 0:e.error)&&e.error(t)}};return p.kg.debug("Call getBlocklist"),s.hj.call(this,l,d.fI.GET_BLACK_LIST)}var T=y,v=S;function S(e){var t=this;if(!a.XZ.call(this)){var r=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(r)}var i=this.context,c=i.orgName,u=i.appName,l=i.accessToken,h={url:this.apiUrl+"/"+c+"/"+u+"/users/"+this.user+"/contacts/users",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+l},success:function(r){var a=[];r.data.forEach((function(e){a.push({name:e,subscription:"both",jid:t.context.jid})})),"function"==typeof(null==e?void 0:e.success)&&e.success(a)},error:function(t){"function"==typeof(null==e?void 0:e.error)&&e.error(t)}};return p.kg.debug("Call getContacts"),s.hj.call(this,h,d.fI.GET_CONTACTS)}function I(e){if("string"!=typeof e.deviceId||""===e.deviceId)throw Error('Invalid parameter: "deviceId"');if("string"!=typeof e.deviceToken||""===e.deviceToken)throw Error('Invalid parameter: "deviceToken"');if("string"!=typeof e.notifierName||""===e.notifierName)throw Error('Invalid parameter: "notifierName"');if(!a.XZ.call(this)){var t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l={url:"".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/users/").concat(this.user),type:"PUT",data:JSON.stringify({device_id:e.deviceId,device_token:e.deviceToken,notifier_name:e.notifierName}),dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"},success:e.success,error:e.error};return p.kg.debug("Call uploadPushToken",e),s.hj.call(this,l,d.fI.UPLOAD_PUSH_TOKEN)}var E=I;function k(e){if(!a.XZ.call(this)){var t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l={url:"".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/users/").concat(this.user,"/user_channels"),type:"GET",dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"},success:e&&(null==e?void 0:e.success),error:e&&(null==e?void 0:e.error)};return p.kg.debug("Call getSessionList"),s.hj.call(this,l,d.fI.GET_SESSION_LIST)}function _(e){if(!a.XZ.call(this)){var t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l=!!(e&&"number"==typeof e.pageNum&&"number"==typeof e.pageSize&&e.pageNum>0&&e.pageSize>0),f={url:"".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/users/").concat(this.user,"/user_channels").concat(l?"/page":""),type:"GET",dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"},success:e&&(null==e?void 0:e.success),error:e&&(null==e?void 0:e.error)};return l&&(f.data={pageNum:e.pageNum,pageSize:e.pageSize}),p.kg.debug("Call getConversationlist"),s.hj.call(this,f,d.fI.GET_SESSION_LIST).then((function(e){return function(e){var t=e.data.channel_infos;return null==t||t.forEach((function(e){e.meta&&"{}"!==JSON.stringify(e.meta)?(e.meta.payload=JSON.parse(e.meta.payload),e.lastMessage=(0,h.w)(e.meta)):e.lastMessage=e.meta,delete e.meta})),e}(e)}))}function b(e){if(e&&"string"!=typeof e.channel)throw Error("Invalid parameter channel: ".concat(e.channel));if(e&&"singleChat"!==e.chatType&&"groupChat"!==e.chatType)throw Error("Invalid parameter chatType: ".concat(e.chatType));if(e&&"boolean"!=typeof e.deleteRoam)throw Error("Invalid parameter deleteRoam: ".concat(e.deleteRoam));if(!a.XZ.call(this)){var t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var r,i=this.context,c=i.orgName,u=i.appName,l=i.accessToken;r="singleChat"===e.chatType?"chat":"groupChat";var h={url:"".concat(this.apiUrl,"/").concat(c,"/").concat(u,"/users/").concat(this.user,"/user_channel"),dataType:"json",type:"DELETE",data:JSON.stringify({channel:e.channel,type:r,delete_roam:e.deleteRoam}),headers:{Authorization:"Bearer "+l,"Content-Type":"application/json"},success:e.success,error:e.error};return p.kg.debug("Call deleteSession",e),s.hj.call(this,h,d.fI.DELETE_SESSION)}var A=b;function N(e,t){if(!a.XZ.call(this)){var r=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(r)}var i=this.context,c=i.orgName,u=i.appName,l=i.accessToken,h=["nickname","avatarurl","mail","phone","gender","sign","birth","ext"],f={};if("undefined"!=typeof wx||"undefined"!=typeof qq)if("string"==typeof e&&void 0!==t){if(!h.includes(e))throw new Error("illegal key, only these keys: nickname, avatarurl, mail, phone, gender, sign, birth, ext are allowed");f[e]=t}else{if("[object Object]"!==Object.prototype.toString.call(e))throw new Error("illegal params");h.forEach((function(t){h.includes(t)&&void 0!==e[t]&&(f[t]=e[t])}))}else if("string"==typeof e){if(!h.includes(e))throw new Error("illegal key, only these keys: nickname, avatarurl, mail, phone, gender, sign, birth, ext are allowed");f=e+"="+t}else{if("[object Object]"!==Object.prototype.toString.call(e))throw new Error("illegal params");var g=[];h.forEach((function(t){if(h.includes(t)&&void 0!==e[t]){var r=encodeURIComponent(t),a=encodeURIComponent(e[t]);g.push(r+"="+a)}})),f=g.join("&")}var m={url:"".concat(this.apiUrl,"/").concat(c,"/").concat(u,"/metadata/user/").concat(this.user),type:"PUT",data:f,dataType:"json",headers:{Authorization:"Bearer "+l,"Content-Type":"application/x-www-form-urlencoded"}};return p.kg.debug("Call updateOwnUserInfo",e),s.hj.call(this,m,d.fI.UPDATE_USER_INFO)}var j=N;function C(e,t){if(!a.XZ.call(this)){var r=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(r)}var i,c=this.context,u=c.orgName,l=c.appName,h=c.accessToken,f=[];if("string"==typeof e)f=[e];else{if("[object Array]"!==Object.prototype.toString.call(e))throw new Error("illegal params");f=e}i="string"==typeof t?[t]:t&&"[object Array]"===Object.prototype.toString.call(t)?t:["nickname","avatarurl","mail","phone","gender","sign","birth","ext"];var g={url:"".concat(this.apiUrl,"/").concat(u,"/").concat(l,"/metadata/user/get"),type:"POST",data:JSON.stringify({targets:f,properties:i}),dataType:"json",headers:{Authorization:"Bearer "+h,"Content-Type":"application/json"}};return p.kg.debug("Call fetchUserInfoById",e),s.hj.call(this,g,d.fI.GET_USER_INFO)}function R(e){if(!a.XZ.call(this)){var t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l={url:"".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/users/").concat(this.user),type:"PUT",dataType:"json",data:JSON.stringify({nickname:e}),headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}};return p.kg.debug("Call updateCurrentUserNick",e),s.hj.call(this,l)}function w(e){if("string"!=typeof e||""===e)throw Error('Invalid parameter: "agoraToken"');var t=this.context,r=t.orgName,a=t.appName,n={url:this.apiUrl+"/"+r+"/"+a+"/token",dataType:"json",type:"POST",data:JSON.stringify({grant_type:"agora"}),headers:{Authorization:"Bearer "+e,"Content-Type":"application/json"}};return p.kg.debug("Call getChatToken",e),s.hj.call(this,n,d.fI.SDK_INTERNAL)}function U(e){var t=this;return new Promise((function(r,s){if(!e.queue)throw Error('Invalid parameter: "specified"');if(!a.XZ.call(t)){var i=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(i)}(function e(t){var a=this,n=t.count||20;O.call(this,{count:n,isGroup:!!t.isGroup,queue:t.queue,start:t.start,format:t.format,success:function(o){if(o.msgs.length>=n||o.is_last){var s=o.msgs.splice(0,n).reverse();t.success&&t.success(s),r(s)}else e.call(a,f(f({},t),{start:null}))},fail:function(e){s(e),t.fail&&t.fail(e)}})}).call(t,e),p.kg.debug("Call fetchHistoryMessages",e)}))}function O(e){var t=this,r=e.queue,a=this.mr_cache[r]||(this.mr_cache[r]={msgs:[]}),c=this.context.userId,u=e.start||-1,p=e.count||20;if(a.msgs.length>=p||a.is_last)"function"==typeof e.success&&e.success(a);else{a&&a.next_key&&(u=a.next_key),e.start&&(u=e.start);var h={queue:r+(e.isGroup?"@conference.easemob.com":"@easemob.com"),start:u,end:-1},f=this.context,g=f.orgName,m=f.appName,y={url:this.apiUrl+"/"+g+"/"+m+"/users/"+c+"/messageroaming",dataType:"json",type:"POST",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"},data:JSON.stringify(h),success:function(r){var n=null==r?void 0:r.data;if(!r.data.msgs)return"function"==typeof e.success&&e.success(a),a.is_last=!0,void(a.next_key="");var o=n.msgs,s=o.length;a.is_last=n.is_last,a.next_key=n.next_key;for(var c=function(r){for(var a=[],n=0,o=(r=l().atob(r)).length;n<o;++n)a.push(r.charCodeAt(n));var s=t.context.root.lookup("easemob.pb.Meta");if(1===(s=s.decode(a)).ns)return i.Z.call(t,s,{errorCode:0,reason:""},!0,e.format)},u=0;u<s;u++){var p=c(o[u].msg);p&&a.msgs.push(p)}"function"==typeof e.success&&e.success(a)},error:function r(a){if(a.error&&a.error_description){var s=o.Z.create({type:n.E.WEBIM_CONNCTION_LOAD_CHATROOM_ERROR,message:"fetch history messages error",data:a});t.onError&&t.onError(s)}"function"==typeof e.fail&&e.fail(r)}};s.hj.call(this,y,d.fI.GET_HISTORY_MSG)}}function P(e){var t=this;return new Promise((function(r,c){if("string"!=typeof e.targetId||""===e.targetId)throw Error('"Invalid parameter": "targetId"');if(!a.XZ.call(t))return c(o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"}));var u=t.context,d=u.orgName,h=u.appName,f=u.userId,g="groupChat"===e.chatType||"chatRoom"===e.chatType?"@conference.easemob.com":"@easemob.com",m={queue:e.targetId+g,start:e.cursor||-1,pull_number:e.pageSize||20,isGroup:"groupChat"===e.chatType||"chatRoom"===e.chatType||!1,is_positive:"down"===e.searchDirection,end:-1},y={url:t.apiUrl+"/"+d+"/"+h+"/users/"+f+"/messageroaming",dataType:"json",type:"POST",headers:{Authorization:"Bearer "+t.token,"Content-Type":"application/json"},data:JSON.stringify(m),success:function(e){for(var a=null==e?void 0:e.data,n=a.msgs||[],o=function(e){for(var r=[],a=0,n=(e=l().atob(e)).length;a<n;++a)r.push(e.charCodeAt(a));var o=t.context.root.lookup("easemob.pb.Meta");if(1===(o=o.decode(r)).ns)return i.Z.call(t,o,{errorCode:0,reason:""},!0,!0)},s=[],c=0;c<n.length;c++){var u=o(n[c].msg);u&&s.push(u)}a.msgs=s;var p={cursor:a.next_key,messages:s};r(p)},error:e.fail};s.hj.call(t,y),p.kg.debug("Call getHistoryMessages",e)}))}function x(e,t){var r={id:this.getUniqueId(),to:e,message:t};c.Z.operatRoster.call(this,r,"add"),p.kg.debug("Call addContact",r)}var Z=M;function M(e){var t={id:this.getUniqueId(),to:e};c.Z.operatRoster.call(this,t,"remove"),p.kg.debug("Call deleteContact",t)}function B(e){var t={id:this.getUniqueId(),to:e};c.Z.operatRoster.call(this,t,"accept"),p.kg.debug("Call acceptInvitation",t)}var z=B;function L(e){var t={id:this.getUniqueId(),to:e};c.Z.operatRoster.call(this,t,"decline"),p.kg.debug("Call declineContactInvite",t)}var X=L;function G(e){c.Z.operatRoster.call(this,{to:e.name},"ban"),p.kg.debug("Call addUsersToBlocklist",e)}var q=G,H=G;function J(e){c.Z.operatRoster.call(this,{to:e.name},"allow"),p.kg.debug("Call removeUserFromBlocklist",e)}var K=J,D=J;function F(e){var t=this.getUniqueId(),r={id:t,to:e.to};this._msgHash[t]=f({},r);var a="";void 0!==e.chatType?a=e.chatType:void 0!==e.type&&(a="chat"===e.type?"singleChat":e.type);var n={id:t,type:"recall",chatType:a,ackId:e.mid,to:e.to,isChatThread:e.isChatThread||!1,success:e.success,fail:e.fail};return p.kg.debug("Call recallMessage",e),this.mSync.send(n,this)}function W(e){return g(this,void 0,void 0,(function(){var t,r,i,c,u,l,p,d,h;return m(this,(function(f){switch(f.label){case 0:if("string"!=typeof e.messageId||!e.messageId)throw Error("Invalid parameter messageId: ".concat(e.messageId));if("string"!=typeof e.reaction||!e.reaction)throw Error("Invalid parameter reaction: ".concat(e.reaction));return a.XZ.call(this)?(r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l=e.reaction,p=e.messageId,d={msgId:p,message:l},h={url:"".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/reaction/user/").concat(this.user),type:"POST",data:JSON.stringify(d),dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}},[4,s.hj.call(this,h)]):(t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"}),[2,Promise.reject(t)]);case 1:return f.sent(),[2]}}))}))}function Q(e){return g(this,void 0,void 0,(function(){var t,r,i,c,u,l,p,d;return m(this,(function(h){switch(h.label){case 0:if("string"!=typeof e.reaction||!e.reaction)throw Error("Invalid parameter reactionId: ".concat(e.reaction));return a.XZ.call(this)?(r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l=e.messageId,p=e.reaction,d={url:"".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/reaction/user/").concat(this.user,"?msgId=").concat(l,"&message=").concat(p),type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}},[4,s.hj.call(this,d)]):(t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"}),[2,Promise.reject(t)]);case 1:return h.sent(),[2]}}))}))}function Y(e){if("string"!=typeof e.chatType||!e.chatType)throw Error("Invalid parameter chatType: ".concat(e.chatType));if(!e.messageId)throw Error("Invalid parameter messageId: ".concat(e.messageId));if(!a.XZ.call(this)){var t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l=e.chatType,p=e.messageId,d={msgIdList:"string"==typeof p?[p]:p,msgType:"singleChat"===l?"chat":"groupchat",groupId:e.groupId||null},h={url:"".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/reaction/user/").concat(this.user),type:"GET",data:d,dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}};return s.hj.call(this,h).then((function(e){var t=e.data;return null==t||t.forEach((function(e){null==e||e.reactionList.forEach((function(e){e.isAddedBySelf=e.state,delete e.state,delete e.reactionId}))})),e}))}var V=Y;function $(e){if("string"!=typeof e.reaction||!e.reaction)throw Error("Invalid parameter reaction: ".concat(e.reaction));if("string"!=typeof e.messageId||!e.messageId)throw Error("Invalid parameter messageId: ".concat(e.messageId));if(!a.XZ.call(this)){var t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l=e.cursor,p=e.pageSize,d={msgId:e.messageId,message:e.reaction,currentPage:l||null,pageSize:p||20},h={url:"".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/reaction/user/").concat(this.user,"/detail"),type:"GET",data:d,dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}};return s.hj.call(this,h).then((function(e){return e.data.isAddedBySelf=e.data.state,delete e.data.state,delete e.data.reactionId,e}))}function ee(e){return g(this,void 0,void 0,(function(){var t,r,i,c,u,l,p,d,h,f,g;return m(this,(function(m){switch(m.label){case 0:if("string"!=typeof e.reportType||!e.reportType)throw Error("Invalid parameter reportType: ".concat(e.reportType));if("string"!=typeof e.messageId||!e.messageId)throw Error("Invalid parameter messageId: ".concat(e.messageId));if("string"!=typeof e.reportReason||!e.reportReason)throw Error("Invalid parameter messageId: ".concat(e.reportReason));return a.XZ.call(this)?(r=this.context,i=r.orgName,c=r.appName,u=r.accessToken,l=e.reportType,p=e.reportReason,d=e.messageId,h={username:this.user,reportType:l,reportReason:p},f="".concat(this.apiUrl,"/").concat(i,"/").concat(c,"/user/").concat(this.user,"/moderation/report/message/").concat(d),g={url:f,type:"POST",data:JSON.stringify(h),dataType:"json",headers:{Authorization:"Bearer "+u,"Content-Type":"application/json"}},[4,s.hj.call(this,g)]):(t=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"}),[2,Promise.reject(t)]);case 1:return m.sent(),[2]}}))}))}function te(e){var t;return g(this,void 0,void 0,(function(){var r,i,c,u,l,d,h,f,g;return m(this,(function(m){switch(m.label){case 0:if("string"!=typeof e.targetId||""===e.targetId)throw Error('"Invalid parameter targetId": '+e.targetId);if(!["singleChat","groupChat"].includes(e.chatType))throw Error('"Invalid parameter chatType": '+e.chatType);if(e.beforeTimeStamp&&("number"!=typeof e.beforeTimeStamp||e.beforeTimeStamp<0||(null===(t=e.beforeTimeStamp)||void 0===t?void 0:t.toString().length)>18))throw Error('"Invalid parameter beforeTimeStamp": '+e.beforeTimeStamp);if(e.messageIds&&!(Array.isArray(e.messageIds)&&e.messageIds.length>0&&e.messageIds.length<=20))throw Error('"Invalid parameter messageIds": '+e.messageIds);if(!e.messageIds&&!e.beforeTimeStamp)throw Error("messageIds or beforeTimeStamp field is required.");return a.XZ.call(this)?(i=this.context,c=i.orgName,u=i.appName,l=i.userId,d="singleChat"===e.chatType?"userId":"groupId",h="singleChat"===e.chatType?"chat":"group",f=e.messageIds?"".concat(this.apiUrl,"/").concat(c,"/").concat(u,"/sdk/message/roaming/").concat(h,"/user/").concat(l,"?").concat(d,"=").concat(e.targetId,"&msgIdList=").concat(e.messageIds,"&resource=").concat(this.clientResource):"".concat(this.apiUrl,"/").concat(c,"/").concat(u,"/sdk/message/roaming/").concat(h,"/user/").concat(l,"/time?").concat(d,"=").concat(e.targetId,"&delTime=").concat(e.beforeTimeStamp,"&&resource=").concat(this.clientResource),g={url:f,dataType:"json",type:"DELETE",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}},p.kg.debug("Call removeHistoryMessages",e),[4,s.hj.call(this,g)]):(r=o.Z.create({type:n.E.REST_PARAMS_STATUS,message:"appkey or token error"}),[2,Promise.reject(r)]);case 1:return m.sent(),[2]}}))}))}},3246:function(e,t,r){r.d(t,{H7:function(){return u},XZ:function(){return i},_W:function(){return c}}),r(7941),r(9554),r(1539),r(4747),r(6699),r(2023);var a=r(5531),n=r(7252);function o(){var e=this.context.appName,t=this.context.orgName;return!(!e||!t)||(this.onError&&this.onError({type:a.E.WEBIM_CONNCTION_AUTH_ERROR,message:"appName or orgName is illegal"}),!1)}function s(){var e;if(!this.context.accessToken){var t=n.Z.create({type:a.E.WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR,message:"token not assign error"});return this.onError&&this.onError(t),null===(e=this.eventHandler)||void 0===e||e.dispatch("onError",t),!1}return!0}function i(){return s.call(this)&&o.call(this)}function c(e){var t=e.data,r=e.type;return{data:{status:Object.keys(t.errorKeys).length>0?"fail":"success",errorKeys:t.errorKeys,successKeys:t.successKeys},type:r}}function u(e){var t=e.data,r=void 0;return Object.keys(t.errorKeys).length>0&&Object.keys(t.errorKeys).forEach((function(e){var o=t.errorKeys[e];r=o.includes("is not part of you")?n.Z.create({type:a.E.NO_PERMISSION,message:o}):o.includes("size of metadata for this single chatroom exceeds the user defined limit")||o.includes("total size of chatroom metadata for this app exceeds the user defined limit")||o.includes("is exceeding maximum limit")?n.Z.create({type:a.E.MAX_LIMIT,message:o}):o.includes("is not Legal")?n.Z.create({type:a.E.REQUEST_PARAMETER_ERROR,message:o}):o.includes("Failed to update userMetadata. Concurrent updates not allowed")?n.Z.create({type:a.E.OPERATION_NOT_ALLOWED,message:o}):n.Z.create({type:a.E.WEBIM_CONNCTION_AJAX_ERROR,message:o})})),r}},5069:function(e,t,r){var a=r(2109),n=r(1702),o=r(3157),s=n([].reverse),i=[1,2];a({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})}},function(e){return 7479,e(e.s=7479)}])}));
|
package/group/group.d.ts
CHANGED
|
@@ -646,4 +646,16 @@ export interface GroupApi {
|
|
|
646
646
|
onFileDownloadComplete?: (data: Blob) => void;
|
|
647
647
|
onFileDownloadError?: (err: ErrorEvent) => void;
|
|
648
648
|
}): void;
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Check whether you are on the group mute list.
|
|
652
|
+
*
|
|
653
|
+
* ```typescript
|
|
654
|
+
* connection.isInGroupMutelist({groupId: 'groupId'})
|
|
655
|
+
* ```
|
|
656
|
+
*/
|
|
657
|
+
isInGroupMutelist(params: {
|
|
658
|
+
/** The group ID. */
|
|
659
|
+
groupId: string;
|
|
660
|
+
}): Promise<boolean>;
|
|
649
661
|
}
|