import { default as __WEBPACK_EXTERNAL_MODULE__config_d5dcd965__ } from "../../config";import*as __WEBPACK_EXTERNAL_MODULE__wfc_util_base64_min_a37cf38e__ from"../../wfc/util/base64.min";import { default as __WEBPACK_EXTERNAL_MODULE__client_connectionStatus_c2a76f1d__ } from "../client/connectionStatus";import { default as __WEBPACK_EXTERNAL_MODULE__client_errorCode_2e9bd124__ } from "../client/errorCode";import { default as __WEBPACK_EXTERNAL_MODULE__client_messageConfig_260e924c__ } from "../client/messageConfig";import { default as __WEBPACK_EXTERNAL_MODULE__client_userSettingScope_4f38ced5__ } from "../client/userSettingScope";import { default as __WEBPACK_EXTERNAL_MODULE__client_wfcEvent_0b508125__ } from "../client/wfcEvent";import { default as __WEBPACK_EXTERNAL_MODULE__messages_compositeMessageContent_9a4d6186__ } from "../messages/compositeMessageContent";import { default as __WEBPACK_EXTERNAL_MODULE__messages_markUnreadMessageContent_54ab9b03__ } from "../messages/markUnreadMessageContent";import { default as __WEBPACK_EXTERNAL_MODULE__messages_mediaMessageContent_1493692e__ } from "../messages/mediaMessageContent";import { default as __WEBPACK_EXTERNAL_MODULE__messages_message_e16c15fa__ } from "../messages/message";import { default as __WEBPACK_EXTERNAL_MODULE__messages_messageContentType_8e61d25b__ } from "../messages/messageContentType";import { default as __WEBPACK_EXTERNAL_MODULE__messages_messageStatus_b0bc6c3e__ } from "../messages/messageStatus";import { default as __WEBPACK_EXTERNAL_MODULE__messages_notification_recallMessageNotification_5b6fd530__ } from "../messages/notification/recallMessageNotification";import { default as __WEBPACK_EXTERNAL_MODULE__messages_persistFlag_ba6d601d__ } from "../messages/persistFlag";import { default as __WEBPACK_EXTERNAL_MODULE__model_NullChannelInfo_8d8c537e__ } from "../model/NullChannelInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_channelInfo_39256809__ } from "../model/channelInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_channelMenu_ef29d4f3__ } from "../model/channelMenu";import { default as __WEBPACK_EXTERNAL_MODULE__model_chatRoomInfo_1b4d8f44__ } from "../model/chatRoomInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_chatRoomMemberInfo_bf1c7255__ } from "../model/chatRoomMemberInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_conversation_59fa5c85__ } from "../model/conversation";import { default as __WEBPACK_EXTERNAL_MODULE__model_conversationInfo_a434c746__ } from "../model/conversationInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_conversationType_a777bdd2__ } from "../model/conversationType";import { default as __WEBPACK_EXTERNAL_MODULE__model_domainInfo_829f33e9__ } from "../model/domainInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_fileRecord_a84baa39__ } from "../model/fileRecord";import { default as __WEBPACK_EXTERNAL_MODULE__model_friend_67a2bfc9__ } from "../model/friend";import { default as __WEBPACK_EXTERNAL_MODULE__model_friendRequest_257fa4f2__ } from "../model/friendRequest";import { default as __WEBPACK_EXTERNAL_MODULE__model_groupInfo_39c132de__ } from "../model/groupInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_groupMember_414b93d2__ } from "../model/groupMember";import { default as __WEBPACK_EXTERNAL_MODULE__model_groupMemberType_44e55d75__ } from "../model/groupMemberType";import { default as __WEBPACK_EXTERNAL_MODULE__model_groupSearchResult_6a817d8c__ } from "../model/groupSearchResult";import { default as __WEBPACK_EXTERNAL_MODULE__model_internal_friendInfo_94ae7e7b__ } from "../model/internal/friendInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_nullDomainInfo_6f7d292b__ } from "../model/nullDomainInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_nullGroupInfo_4fd7a065__ } from "../model/nullGroupInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_nullUserInfo_829ee12d__ } from "../model/nullUserInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_readEntry_abc219ba__ } from "../model/readEntry";import { default as __WEBPACK_EXTERNAL_MODULE__model_unreadCount_6b42cdcf__ } from "../model/unreadCount";import { default as __WEBPACK_EXTERNAL_MODULE__model_userClientState_698c9206__ } from "../model/userClientState";import { default as __WEBPACK_EXTERNAL_MODULE__model_userCustomState_8f3e9e6b__ } from "../model/userCustomState";import { default as __WEBPACK_EXTERNAL_MODULE__model_userInfo_d32fe81f__ } from "../model/userInfo";import { default as __WEBPACK_EXTERNAL_MODULE__model_userOnlineState_e3467fae__ } from "../model/userOnlineState";import { default as __WEBPACK_EXTERNAL_MODULE__model_userSettingEntry_aaf607de__ } from "../model/userSettingEntry";import*as __WEBPACK_EXTERNAL_MODULE__util_base64_min_79258e3f__ from"../util/base64.min";import*as __WEBPACK_EXTERNAL_MODULE__util_deep_assign_min_1a97b602__ from"../util/deep-assign.min";import*as __WEBPACK_EXTERNAL_MODULE__util_longUtil_89a9de18__ from"../util/longUtil";import*as __WEBPACK_EXTERNAL_MODULE__util_mime_7efebf1b__ from"../util/mime";var __webpack_modules__={6392:(c0,c1,c2)=>{var c3=c2(4132),c4=c7(c2(696)),c5=c7(c2(6212)),c6=c7(c2(9708));function c7(c0){return c0&&c0.__esModule?c0:{default:c0}}var c8=c2(4936),c9=c2(3792),c10=c2(2300),c11=c2(9496).Writable,c12=c2(8248),c13=c2(6732),c14=c2(5440),c15=c2(9707),c16=c2.g.setImmediate||function(c0){c3.nextTick(c0)},c17={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},c18={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function c19(c0,c1,c2){c0.emit("packetsend",c1),!c10.writeToStream(c1,c0.stream,c0.options)&&c2?c0.stream.once("drain",c2):c2&&c2()}function c20(c0){c0&&(0,c6.default)(c0).forEach((function(c1){"function"==typeof c0[c1]&&(c0[c1](new Error("Connection closed")),delete c0[c1])}))}function c21(c0,c1,c2,c3){c0.outgoingStore.put(c1,(function(c4){if(c4)return c2&&c2(c4);c3(),c19(c0,c1,c2)}))}function c22(){}function c23(c0,c1){var c2,c3=this;if(!(this instanceof c23))return new c23(c0,c1);for(c2 in this.options=c1||{},c17)void 0===this.options[c2]?this.options[c2]=c17[c2]:this.options[c2]=c1[c2];this.options.clientId="string"==typeof c1.clientId?c1.clientId:"mqttjs_"+Math.random().toString(16).substr(2,8),this.options.customHandleAcks=5===c1.protocolVersion&&c1.customHandleAcks?c1.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=c0,this.outgoingStore=c1.outgoingStore||new c9,this.incomingStore=c1.incomingStore||new c9,this.queueQoSZero=void 0===c1.queueQoSZero||c1.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this.nextId=Math.max(1,Math.floor(65535*Math.random())),this.outgoing={},this._firstConnection=!0,this.on("close",(function(){this.connected=!1,clearTimeout(this.connackTimer)})),this.on("connect",(function(){var c0=this.queue;!function c1(){var c2,c4=c0.shift();c4&&(c2=c4.packet,c3._sendPacket(c2,(function(c0){c4.cb&&c4.cb(c0),c1()})))}()})),this.on("close",(function(){null!==c3.pingTimer&&(c3.pingTimer.clear(),c3.pingTimer=null)})),c8.EventEmitter.call(this),this._setupStream()}c12(c23,c8.EventEmitter),c23.prototype._setupStream=function(){var c0,c1=this,c2=new c11,c6=c10.parser(this.options),c7=null,c8=[];function c9(){if(c8.length)c3.nextTick(c12);else{var c0=c7;c7=null,c0()}}function c12(){var c0=c8.shift();if(c0)c1._handlePacket(c0,c9);else{var c2=c7;c7=null,c2&&c2()}}if(this._clearReconnect(),this.stream=this.streamBuilder(this),c6.on("packet",(function(c0){c8.push(c0)})),c2._write=function(c0,c1,c2){c7=c2,c6.parse(c0),c12()},this.stream.pipe(c2),this.stream.on("error",c22),this.stream.on("close",(function(){c1.emit("close")})),(c0=(0,c5.default)(this.options)).cmd="connect",c19(this,c0),c6.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.emit("error",new Error("Packet has no Authentication Method")),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&"object"===(0,c4.default)(this.options.authPacket))c19(this,c15({cmd:"auth",reasonCode:0},this.options.authPacket))}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((function(){c1._cleanUp(!0)}),this.options.connectTimeout)},c23.prototype._handlePacket=function(c0,c1){var c2=this.options;if(5===c2.protocolVersion&&c2.properties&&c2.properties.maximumPacketSize&&c2.properties.maximumPacketSizec5.properties.topicAliasMaximum||!c5.properties.topicAliasMaximum&&c2.properties.topicAlias))&&delete c4.properties.topicAlias),c2.qos){case 1:case 2:this.outgoing[c4.messageId]=c3||c22,this._storeProcessing?(this._packetIdsDuringStoreProcessing[c4.messageId]=!1,this._storePacket(c4,void 0,c2.cbStorePut)):this._sendPacket(c4,void 0,c2.cbStorePut);break;default:this._storeProcessing?this._storePacket(c4,c3,c2.cbStorePut):this._sendPacket(c4,c3,c2.cbStorePut)}return this},c23.prototype.subscribe=function(){for(var c0,c1=new Array(arguments.length),c2=0;c20){var c1={qos:c0.qos};5===c11&&(c1.nl=c0.nl||!1,c1.rap=c0.rap||!1,c1.rh=c0.rh||0,c1.properties=c0.properties),c10._resubscribeTopics[c0.topic]=c1,c13.push(c0.topic)}})),c10.messageIdToTopic[c0.messageId]=c13}return this.outgoing[c0.messageId]=function(c0,c1){if(!c0)for(var c2=c1.granted,c3=0;c30?this.once("outgoingEmpty",setTimeout.bind(null,c7,10)):c7()),this},c23.prototype.removeOutgoingMessage=function(c0){var c1=this.outgoing[c0];return delete this.outgoing[c0],this.outgoingStore.del({messageId:c0},(function(){c1(new Error("Message removed"))})),this},c23.prototype.reconnect=function(c0){var c1=this,c2=function(){c0?(c1.options.incomingStore=c0.incomingStore,c1.options.outgoingStore=c0.outgoingStore):(c1.options.incomingStore=null,c1.options.outgoingStore=null),c1.incomingStore=c1.options.incomingStore||new c9,c1.outgoingStore=c1.options.outgoingStore||new c9,c1.disconnecting=!1,c1.disconnected=!1,c1._deferredReconnect=null,c1._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=c2:c2(),this},c23.prototype._reconnect=function(){this.emit("reconnect"),this._setupStream()},c23.prototype._setupReconnect=function(){var c0=this;!c0.disconnecting&&!c0.reconnectTimer&&c0.options.reconnectPeriod>0&&(this.reconnecting||(this.emit("offline"),this.reconnecting=!0),c0.reconnectTimer=setInterval((function(){c0._reconnect()}),c0.options.reconnectPeriod))},c23.prototype._clearReconnect=function(){this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},c23.prototype._cleanUp=function(c0,c1){var c2=arguments[2];if(c1&&this.stream.on("close",c1),c0)0===this.options.reconnectPeriod&&this.options.clean&&c20(this.outgoing),this.stream.destroy();else{var c3=c15({cmd:"disconnect"},c2);this._sendPacket(c3,c16.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),c1&&!this.connected&&(this.stream.removeListener("close",c1),c1())},c23.prototype._sendPacket=function(c0,c1,c2){if(c2=c2||c22,this.connected){switch(this._shiftPingInterval(),c0.cmd){case"publish":break;case"pubrel":return void c21(this,c0,c1,c2);default:return void c19(this,c0,c1)}switch(c0.qos){case 2:case 1:c21(this,c0,c1,c2);break;default:c19(this,c0,c1)}}else this._storePacket(c0,c1,c2)},c23.prototype._storePacket=function(c0,c1,c2){c2=c2||c22,0===(c0.qos||0)&&this.queueQoSZero||"publish"!==c0.cmd?this.queue.push({packet:c0,cb:c1}):c0.qos>0?(c1=this.outgoing[c0.messageId],this.outgoingStore.put(c0,(function(c0){if(c0)return c1&&c1(c0);c2()}))):c1&&c1(new Error("No connection to broker"))},c23.prototype._setupPingTimer=function(){var c0=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=c13((function(){c0._checkPing()}),1e3*this.options.keepalive))},c23.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},c23.prototype._checkPing=function(){this.pingResp?(this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):this._cleanUp(!0)},c23.prototype._handlePingresp=function(){this.pingResp=!0,this.emit("pingresp",(new Date).getTime())},c23.prototype._handleConnack=function(c0){var c1=this.options,c2=5===c1.protocolVersion?c0.reasonCode:c0.returnCode;if(clearTimeout(this.connackTimer),c0.properties&&(c0.properties.topicAliasMaximum&&(c1.properties||(c1.properties={}),c1.properties.topicAliasMaximum=c0.properties.topicAliasMaximum),c0.properties.serverKeepAlive&&c1.keepalive&&(c1.keepalive=c0.properties.serverKeepAlive,this._shiftPingInterval()),c0.properties.maximumPacketSize&&(c1.properties||(c1.properties={}),c1.properties.maximumPacketSize=c0.properties.maximumPacketSize)),0===c2)this.reconnecting=!1,this._onConnect(c0);else if(c2>0){var c3=new Error("Connection refused: "+c18[c2]);c3.code=c2,this.emit("error",c3)}},c23.prototype._handlePublish=function(c0,c1){c1=void 0!==c1?c1:c22;var c2=c0.topic.toString(),c3=c0.payload,c4=c0.qos,c5=c0.messageId,c6=this,c7=this.options,c8=[0,16,128,131,135,144,145,151,153];switch(c4){case 2:c7.customHandleAcks(c2,c3,c0,(function(c2,c3){return c2 instanceof Error||(c3=c2,c2=null),c2?c6.emit("error",c2):-1===c8.indexOf(c3)?c6.emit("error",new Error("Wrong reason code for pubrec")):void(c3?c6._sendPacket({cmd:"pubrec",messageId:c5,reasonCode:c3},c1):c6.incomingStore.put(c0,(function(){c6._sendPacket({cmd:"pubrec",messageId:c5},c1)})))}));break;case 1:c7.customHandleAcks(c2,c3,c0,(function(c4,c7){return c4 instanceof Error||(c7=c4,c4=null),c4?c6.emit("error",c4):-1===c8.indexOf(c7)?c6.emit("error",new Error("Wrong reason code for puback")):(c7||c6.emit("message",c2,c3,c0),void c6.handleMessage(c0,(function(c0){if(c0)return c1&&c1(c0);c6._sendPacket({cmd:"puback",messageId:c5,reasonCode:c7},c1)})))}));break;case 0:this.emit("message",c2,c3,c0),this.handleMessage(c0,c1)}},c23.prototype.handleMessage=function(c0,c1){c1()},c23.prototype._handleAck=function(c0){var c1,c2=c0.messageId,c3=c0.cmd,c4=null,c5=this.outgoing[c2],c7=this;if(c5){switch(c3){case"pubcomp":case"puback":var c8=c0.reasonCode;c8&&c8>0&&16!==c8&&10!==c8?((c1=new Error("Publish error: "+c18[c8])).code=c8,c5(c1,c0)):c8&&10===c8&&c5(null,c0),delete this.outgoing[c2],this.outgoingStore.del(c0,c5);break;case"pubrec":c4={cmd:"pubrel",qos:2,messageId:c2};var c9=c0.reasonCode;c9&&c9>0&&16!==c9?((c1=new Error("Publish error: "+c18[c9])).code=c9,c5(c1,c0)):this._sendPacket(c4);break;case"suback":delete this.outgoing[c2];for(var c10=0;c100)if(this.options.resubscribe)if(5===this.options.protocolVersion)for(var c2=0;c2{var c3,c4,c5,c6=c2(3296).Buffer,c7=c2(9496).Transform,c8=c2(7491),c9=c2(5704),c10=!1;c0.exports=function(c0,c1){if(c1.hostname=c1.hostname||c1.host,!c1.hostname)throw new Error("Could not determine host. Specify host manually.");var c2="MQIsdp"===c1.protocolId&&3===c1.protocolVersion?"mqttv3.1":"mqtt";!function(c0){c0.hostname||(c0.hostname="localhost"),c0.path||(c0.path="/"),c0.wsOptions||(c0.wsOptions={})}(c1);var c11=function(c0,c1){var c2="alis"===c0.protocol?"wss":"ws",c3=c2+"://"+c0.hostname+c0.path;return c0.port&&80!==c0.port&&443!==c0.port&&(c3=c2+"://"+c0.hostname+":"+c0.port+c0.path),"function"==typeof c0.transformWsUrl&&(c3=c0.transformWsUrl(c3,c0,c1)),c3}(c1,c0);return(c3=c1.my).connectSocket({url:c11,protocols:c2}),c4=function(){var c0=new c7;return c0._write=function(c0,c1,c2){c3.sendSocketMessage({data:c0.buffer,success:function(){c2()},fail:function(){c2(new Error)}})},c0._flush=function(c0){c3.closeSocket({success:function(){c0()}})},c0}(),c5=c8.obj(),c10||(c10=!0,c3.onSocketOpen((function(){c5.setReadable(c4),c5.setWritable(c4),c5.emit("connect")})),c3.onSocketMessage((function(c0){if("string"==typeof c0.data){var c1=c9.toByteArray(c0.data),c2=c6.from(c1);c4.push(c2)}else{var c3=new FileReader;c3.addEventListener("load",(function(){var c0=c3.result;c0=c0 instanceof ArrayBuffer?c6.from(c0):c6.from(c0,"utf8"),c4.push(c0)})),c3.readAsArrayBuffer(c0.data)}})),c3.onSocketClose((function(){c5.end(),c5.destroy()})),c3.onSocketError((function(c0){c5.destroy(c0)}))),c5}},9824:(c0,c1,c2)=>{var c3=c2(4132),c4=c2(3296).Buffer,c5=c8(c2(696)),c6=c2(9444),c7=c8(c2(2816));function c8(c0){return c0&&c0.__esModule?c0:{default:c0}}var c9=c2(6392),c10=c2(3792),c11=c2(4776),c12=c2(9707),c13={},c14="testim.baibaodun.com.cn",c15="web_12345678",c16="3d1e71b110bdb090216f5b2909d7492bb0e487a2";function c17(c0,c1,c3,c5,c8){!function(c0,c1,c3,c5,c8){var c9=void 0,c10=c8&&c8.backupHost&&2===c8.backupAddressStrategy?c8.backupHost:"testim.baibaodun.com.cn",c11=c8&&c8.backupHost&&2===c8.backupAddressStrategy?c8.backupPort:c7.default.ROUTE_PORT?c7.default.ROUTE_PORT:80;c7.default.USE_WSS?(c20("https route"),c9="https://"+c10+(443!==c11?":"+c11:"")+"/route"):c9="http://"+c10+(80!==c11?":"+c11:"")+"/route";c20("route url",c9);var c12=c2(8120).RouteRequest,c13=c2(8120).RouteResponse,c17=c2(8120).IMHttpWrapper,c21=c2(7480).AESDecrypt,c22=c2(7480).Uint8ToStr,c23=c2(7480).AESEncrypt,c24="",c25="",c26=c2(8).Y,c27=c2(8).O,c28=new XMLHttpRequest,c29=setTimeout((function(){!0,c28.abort(),console.log("request timeout, to abort")}),1e4);c28.open("POST",c9),c28.onerror=function(){c20("route request error"),c5(-1)},c28.onabort=function(){c20("route request abort"),c5(-1)},c28.ontimeout=function(){c20("route request timeout"),c5(-1)},c28.onreadystatechange=function(){if(4===c28.readyState)if(clearTimeout(c29),200===c28.status){var c2=c26(c28.responseText);(!c2||c2.byteLength<1)&&(c20("route response error",c28.responseText),c5(-1));var c3=new Int8Array(c2,0,1);if(0===c3[0]){var c4=c27(c2.slice(1)),c10=c21(c4,c24,!0),c11=c13.decode(c10);c20("route res",c11.host,c11.longPort,c11.wssPort);for(var c12=c11.node+"|"+c14,c15="",c16=0;c160,c31=void 0,c32=void 0;if(c8&&c8.backupHost&&2===c8.backupAddressStrategy){var c33=c11.candidate[0];c32=c33.host,c31=c33.wssPort}else c32=c11.host,c31=c7.default.USE_WSS&&(c31=c30?c11.wssPort:c11.longPort)||c11.longPort;c20("connect url",c32,c31),c7.default.USE_WSS?(c20("wss mqtts"),c23=c18("mqtts://"+c32+":"+c31,c17)):(c20("ws mqtt",c7.default.USE_WSS),c23=c18("mqtt://"+c32+":"+c31,c17)),c19=c11.host;var c34={isReceiptEnable:(2&c11.commercial)>0,isClearGroupMsgWhenKickoff:(4&c11.commercial)>0,isDisableRoamingConvList:(16&c11.commercial)>0,isKeepMsgAfterDismiss:(32&c11.commercial)>0,isSupportBigFileUpload:(64&c11.commercial)>0,isBackupDownloadUrl:(128&c11.commercial)>0,isGlobalDisableSyncDraft:(256&c11.commercial)>0,isSupportQos0Message:(512&c11.commercial)>0,isUserOnlineStateEnable:(1024&c11.commercial)>0,isGroupReceiptDisable:(8192&c11.commercial)>0,isMeshEnable:(32768&c11.commercial)>0};(1&c11.commercial)>0?c5(0,c23,c24,c22,c34):c5(-1)}else c20("route error",c9,c3[0]),c5(c3[0])}else c20("http route error,请先检查下USE_WSS、ROUTE_PORT配置",c9,c28.status),c5(-1)},c28.setRequestHeader("p","web"),c28.setRequestHeader("appId",c15),c28.setRequestHeader("appKey",c16),c28.setRequestHeader("cid",c23(c1)),c28.setRequestHeader("uid",c23(c0)),c28.setRequestHeader("Content-Type","application/octet-stream");var c30=c12.create();c30.app="cn.wildfirechat.chat.web",c30.appVersion="0.1",c30.deviceName="browser",c30.platform=5,c30.phoneName="browser",c30.sdkVersion="0.1",c30.language=c7.default.LANGUAGE;var c31=void 0;try{c31=c22(c21(c3,"",!1))}catch(c0){c20("token error!!!")}var c32=c31.split("|")[0];c24=c31.split("|")[1],c25=new c4(c23(c32,c24),"base64"),c30.host=c23("testim.baibaodun.com.cn","");var c33=c12.encode(c30).finish(),c34=c17.create();c34.clientId=c1,c34.token=c32,c34.request="ROUTE",c34.data=c33;var c35=c17.encode(c34).finish(),c36=c23(c35,c24);c28.send(c36)}(c0,c1,c3,c5,c8)}function c18(c0,c1){if("object"!==(void 0===c0?"undefined":(0,c5.default)(c0))||c1||(c1=c0,c0=null),c1=c1||{},c0){var c2=c11.parse(c0,!0);if(null!=c2.port&&(c2.port=Number(c2.port)),null===(c1=c12(c2,c1)).protocol)throw new Error("Missing protocol");c1.protocol=c1.protocol.replace(/:$/,"")}if(function(c0){var c1;c0.auth&&((c1=c0.auth.match(/^(.+):(.+)$/))?(c0.username=c1[1],c0.password=c1[2]):c0.username=c0.auth)}(c1),c1.query&&"string"==typeof c1.query.clientId&&(c1.clientId=c1.query.clientId),c1.cert&&c1.key){if(!c1.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(c1.protocol))switch(c1.protocol){case"mqtt":c1.protocol="mqtts";break;case"ws":c1.protocol="wss";break;case"wx":c1.protocol="wxs";break;case"ali":c1.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+c1.protocol+'"!')}}if(!c13[c1.protocol]){var c3=-1!==["mqtts","wss"].indexOf(c1.protocol);c1.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((function(c0,c1){return(!c3||c1%2!=0)&&"function"==typeof c13[c0]}))[0]}if(!1===c1.clean&&!c1.clientId)throw new Error("Missing clientId for unclean clients");return c1.protocol&&(c1.defaultProtocol=c1.protocol),new c9((function(c0){return c1.servers&&(c0._reconnectCount&&c0._reconnectCount!==c1.servers.length||(c0._reconnectCount=0),c1.host=c1.servers[c0._reconnectCount].host,c1.port=c1.servers[c0._reconnectCount].port,c1.protocol=c1.servers[c0._reconnectCount].protocol?c1.servers[c0._reconnectCount].protocol:c1.defaultProtocol,c1.hostname=c1.host,c0._reconnectCount++),c13[c1.protocol](c0,c1)}),c1)}"browser"!==c3.title?(c13.mqtt=c2(7200),c13.tcp=c2(7200),c13.ssl=c2(8864),c13.tls=c2(8864),c13.mqtts=c2(8864)):(c13.wx=c2(4672),c13.wxs=c2(4672),c13.ali=c2(9048),c13.alis=c2(9048)),c13.ws=c2(7508),c13.wss=c2(7508);var c19="testim.baibaodun.com.cn";function c20(c0){if(!c7.default.DISABLE_LOG){for(var c1,c2=arguments.length,c3=Array(c2>1?c2-1:0),c4=1;c4{var c3=c5(c2(696)),c4=c5(c2(9708));function c5(c0){return c0&&c0.__esModule?c0:{default:c0}}var c6=c2(7328),c7=c6.Reader,c8=c6.Writer,c9=c6.util,c10=c6.roots.default||(c6.roots.default={});c10.IMHttpWrapper=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.token=c0.string();break;case 2:c3.clientId=c0.string();break;case 3:c3.request=c0.string();break;case 4:c3.data=c0.bytes();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("token"))throw c9.ProtocolError("missing required 'token'",{instance:c3});if(!c3.hasOwnProperty("clientId"))throw c9.ProtocolError("missing required 'clientId'",{instance:c3});if(!c3.hasOwnProperty("request"))throw c9.ProtocolError("missing required 'request'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.token)?c9.isString(c0.clientId)?c9.isString(c0.request)?null!=c0.data&&c0.hasOwnProperty("data")&&!(c0.data&&"number"==typeof c0.data.length||c9.isString(c0.data))?"data: buffer expected":null:"request: string expected":"clientId: string expected":"token: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.IMHttpWrapper)return c0;var c1=new c10.IMHttpWrapper;return null!=c0.token&&(c1.token=String(c0.token)),null!=c0.clientId&&(c1.clientId=String(c0.clientId)),null!=c0.request&&(c1.request=String(c0.request)),null!=c0.data&&("string"==typeof c0.data?c9.base64.decode(c0.data,c1.data=c9.newBuffer(c9.base64.length(c0.data)),0):c0.data.length&&(c1.data=c0.data)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.token="",c2.clientId="",c2.request="",c1.bytes===String?c2.data="":(c2.data=[],c1.bytes!==Array&&(c2.data=c9.newBuffer(c2.data)))),null!=c0.token&&c0.hasOwnProperty("token")&&(c2.token=c0.token),null!=c0.clientId&&c0.hasOwnProperty("clientId")&&(c2.clientId=c0.clientId),null!=c0.request&&c0.hasOwnProperty("request")&&(c2.request=c0.request),null!=c0.data&&c0.hasOwnProperty("data")&&(c2.data=c1.bytes===String?c9.base64.encode(c0.data,0,c0.data.length):c1.bytes===Array?Array.prototype.slice.call(c0.data):c0.data),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.app=c0.string();break;case 2:c3.platform=c0.int32();break;case 3:c3.pushType=c0.int32();break;case 4:c3.deviceName=c0.string();break;case 5:c3.deviceVersion=c0.string();break;case 6:c3.phoneName=c0.string();break;case 7:c3.language=c0.string();break;case 8:c3.carrierName=c0.string();break;case 9:c3.appVersion=c0.string();break;case 10:c3.sdkVersion=c0.string();break;case 11:c3.wxAppId=c0.string();break;case 12:c3.wxAppKey=c0.string();break;case 13:c3.webAppId=c0.string();break;case 14:c3.webAppKey=c0.string();break;case 15:c3.host=c0.string();break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.app&&c0.hasOwnProperty("app")&&!c9.isString(c0.app)?"app: string expected":null!=c0.platform&&c0.hasOwnProperty("platform")&&!c9.isInteger(c0.platform)?"platform: integer expected":null!=c0.pushType&&c0.hasOwnProperty("pushType")&&!c9.isInteger(c0.pushType)?"pushType: integer expected":null!=c0.deviceName&&c0.hasOwnProperty("deviceName")&&!c9.isString(c0.deviceName)?"deviceName: string expected":null!=c0.deviceVersion&&c0.hasOwnProperty("deviceVersion")&&!c9.isString(c0.deviceVersion)?"deviceVersion: string expected":null!=c0.phoneName&&c0.hasOwnProperty("phoneName")&&!c9.isString(c0.phoneName)?"phoneName: string expected":null!=c0.language&&c0.hasOwnProperty("language")&&!c9.isString(c0.language)?"language: string expected":null!=c0.carrierName&&c0.hasOwnProperty("carrierName")&&!c9.isString(c0.carrierName)?"carrierName: string expected":null!=c0.appVersion&&c0.hasOwnProperty("appVersion")&&!c9.isString(c0.appVersion)?"appVersion: string expected":null!=c0.sdkVersion&&c0.hasOwnProperty("sdkVersion")&&!c9.isString(c0.sdkVersion)?"sdkVersion: string expected":null!=c0.wxAppId&&c0.hasOwnProperty("wxAppId")&&!c9.isString(c0.wxAppId)?"wxAppId: string expected":null!=c0.wxAppKey&&c0.hasOwnProperty("wxAppKey")&&!c9.isString(c0.wxAppKey)?"wxAppKey: string expected":null!=c0.webAppId&&c0.hasOwnProperty("webAppId")&&!c9.isString(c0.webAppId)?"webAppId: string expected":null!=c0.webAppKey&&c0.hasOwnProperty("webAppKey")&&!c9.isString(c0.webAppKey)?"webAppKey: string expected":null!=c0.host&&c0.hasOwnProperty("host")&&!c9.isString(c0.host)?"host: string expected":null},c0.fromObject=function(c0){if(c0 instanceof c10.RouteRequest)return c0;var c1=new c10.RouteRequest;return null!=c0.app&&(c1.app=String(c0.app)),null!=c0.platform&&(c1.platform=0|c0.platform),null!=c0.pushType&&(c1.pushType=0|c0.pushType),null!=c0.deviceName&&(c1.deviceName=String(c0.deviceName)),null!=c0.deviceVersion&&(c1.deviceVersion=String(c0.deviceVersion)),null!=c0.phoneName&&(c1.phoneName=String(c0.phoneName)),null!=c0.language&&(c1.language=String(c0.language)),null!=c0.carrierName&&(c1.carrierName=String(c0.carrierName)),null!=c0.appVersion&&(c1.appVersion=String(c0.appVersion)),null!=c0.sdkVersion&&(c1.sdkVersion=String(c0.sdkVersion)),null!=c0.wxAppId&&(c1.wxAppId=String(c0.wxAppId)),null!=c0.wxAppKey&&(c1.wxAppKey=String(c0.wxAppKey)),null!=c0.webAppId&&(c1.webAppId=String(c0.webAppId)),null!=c0.webAppKey&&(c1.webAppKey=String(c0.webAppKey)),null!=c0.host&&(c1.host=String(c0.host)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.app="",c2.platform=0,c2.pushType=0,c2.deviceName="",c2.deviceVersion="",c2.phoneName="",c2.language="",c2.carrierName="",c2.appVersion="",c2.sdkVersion="",c2.wxAppId="",c2.wxAppKey="",c2.webAppId="",c2.webAppKey="",c2.host=""),null!=c0.app&&c0.hasOwnProperty("app")&&(c2.app=c0.app),null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),null!=c0.pushType&&c0.hasOwnProperty("pushType")&&(c2.pushType=c0.pushType),null!=c0.deviceName&&c0.hasOwnProperty("deviceName")&&(c2.deviceName=c0.deviceName),null!=c0.deviceVersion&&c0.hasOwnProperty("deviceVersion")&&(c2.deviceVersion=c0.deviceVersion),null!=c0.phoneName&&c0.hasOwnProperty("phoneName")&&(c2.phoneName=c0.phoneName),null!=c0.language&&c0.hasOwnProperty("language")&&(c2.language=c0.language),null!=c0.carrierName&&c0.hasOwnProperty("carrierName")&&(c2.carrierName=c0.carrierName),null!=c0.appVersion&&c0.hasOwnProperty("appVersion")&&(c2.appVersion=c0.appVersion),null!=c0.sdkVersion&&c0.hasOwnProperty("sdkVersion")&&(c2.sdkVersion=c0.sdkVersion),null!=c0.wxAppId&&c0.hasOwnProperty("wxAppId")&&(c2.wxAppId=c0.wxAppId),null!=c0.wxAppKey&&c0.hasOwnProperty("wxAppKey")&&(c2.wxAppKey=c0.wxAppKey),null!=c0.webAppId&&c0.hasOwnProperty("webAppId")&&(c2.webAppId=c0.webAppId),null!=c0.webAppKey&&c0.hasOwnProperty("webAppKey")&&(c2.webAppKey=c0.webAppKey),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.AddressTriple=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.host=c0.string();break;case 2:c3.longPort=c0.int32();break;case 3:c3.shortPort=c0.int32();break;case 4:c3.wssPort=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});if(!c3.hasOwnProperty("longPort"))throw c9.ProtocolError("missing required 'longPort'",{instance:c3});if(!c3.hasOwnProperty("shortPort"))throw c9.ProtocolError("missing required 'shortPort'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.host)?c9.isInteger(c0.longPort)?c9.isInteger(c0.shortPort)?null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&!c9.isInteger(c0.wssPort)?"wssPort: integer expected":null:"shortPort: integer expected":"longPort: integer expected":"host: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.AddressTriple)return c0;var c1=new c10.AddressTriple;return null!=c0.host&&(c1.host=String(c0.host)),null!=c0.longPort&&(c1.longPort=0|c0.longPort),null!=c0.shortPort&&(c1.shortPort=0|c0.shortPort),null!=c0.wssPort&&(c1.wssPort=0|c0.wssPort),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.host="",c2.longPort=0,c2.shortPort=0,c2.wssPort=0),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),null!=c0.longPort&&c0.hasOwnProperty("longPort")&&(c2.longPort=c0.longPort),null!=c0.shortPort&&c0.hasOwnProperty("shortPort")&&(c2.shortPort=c0.shortPort),null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&(c2.wssPort=c0.wssPort),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteResponse=function(){function c0(c0){if(this.candidate=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.host=c0.string();break;case 2:c3.longPort=c0.int32();break;case 3:c3.shortPort=c0.int32();break;case 4:c3.thumbPara=c0.string();break;case 5:c3.node=c0.string();break;case 6:c3.commercial=c0.int32();break;case 7:c3.wssPort=c0.int32();break;case 8:c3.candidate&&c3.candidate.length||(c3.candidate=[]),c3.candidate.push(c10.AddressTriple.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});if(!c3.hasOwnProperty("longPort"))throw c9.ProtocolError("missing required 'longPort'",{instance:c3});if(!c3.hasOwnProperty("shortPort"))throw c9.ProtocolError("missing required 'shortPort'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.host))return"host: string expected";if(!c9.isInteger(c0.longPort))return"longPort: integer expected";if(!c9.isInteger(c0.shortPort))return"shortPort: integer expected";if(null!=c0.thumbPara&&c0.hasOwnProperty("thumbPara")&&!c9.isString(c0.thumbPara))return"thumbPara: string expected";if(null!=c0.node&&c0.hasOwnProperty("node")&&!c9.isString(c0.node))return"node: string expected";if(null!=c0.commercial&&c0.hasOwnProperty("commercial")&&!c9.isInteger(c0.commercial))return"commercial: integer expected";if(null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&!c9.isInteger(c0.wssPort))return"wssPort: integer expected";if(null!=c0.candidate&&c0.hasOwnProperty("candidate")){if(!Array.isArray(c0.candidate))return"candidate: array expected";for(var c1=0;c1{var c3=c2(516);c0.exports=function(c0,c1){var c2,c4;return c1.port=c1.port||1883,c1.hostname=c1.hostname||c1.host||"localhost",c2=c1.port,c4=c1.hostname,c3.createConnection(c2,c4)}},8864:(c0,c1,c2)=>{var c3=c2(5036);c0.exports=function(c0,c1){var c2;function c4(c3){c1.rejectUnauthorized&&c0.emit("error",c3),c2.end()}return c1.port=c1.port||8883,c1.host=c1.hostname||c1.host||"localhost",c1.rejectUnauthorized=!1!==c1.rejectUnauthorized,delete c1.path,(c2=c3.connect(c1)).on("secureConnect",(function(){c1.rejectUnauthorized&&!c2.authorized?c2.emit("error",new Error("TLS not authorized")):c2.removeListener("error",c4)})),c2.on("error",c4),c2}},7508:(c0,c1,c2)=>{var c3=c2(4132),c4=c2(2836),c5=c2(4776),c6=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],c7="browser"===c3.title;function c8(c0,c1){var c2="MQIsdp"===c1.protocolId&&3===c1.protocolVersion?"mqttv3.1":"mqtt";!function(c0){c0.hostname||(c0.hostname="localhost"),c0.port||("wss"===c0.protocol?c0.port=443:c0.port=80),c0.path||(c0.path="/"),c0.wsOptions||(c0.wsOptions={}),c7||"wss"!==c0.protocol||c6.forEach((function(c1){c0.hasOwnProperty(c1)&&!c0.wsOptions.hasOwnProperty(c1)&&(c0.wsOptions[c1]=c0[c1])}))}(c1);var c3=function(c0,c1){var c2=c0.protocol+"://"+c0.hostname+":"+c0.port+c0.path;return"function"==typeof c0.transformWsUrl&&(c2=c0.transformWsUrl(c2,c0,c1)),c2}(c1,c0);return c4(c3,[c2],c1.wsOptions)}c0.exports=c7?function(c0,c1){if(c1.hostname||(c1.hostname=c1.host),!c1.hostname){if("undefined"==typeof document)throw new Error("Could not determine host. Specify host manually.");var c2=c5.parse(document.URL);c1.hostname=c2.hostname,c1.port||(c1.port=c2.port)}return c8(c0,c1)}:function(c0,c1){return c8(c0,c1)}},4672:(c0,c1,c2)=>{var c3,c4,c5,c6=c2(3296).Buffer,c7=c2(4132),c8=c2(9496).Transform,c9=c2(7491);c0.exports=function(c0,c1){if(c1.hostname=c1.hostname||c1.host,!c1.hostname)throw new Error("Could not determine host. Specify host manually.");var c2="MQIsdp"===c1.protocolId&&3===c1.protocolVersion?"mqttv3.1":"mqtt";!function(c0){c0.hostname||(c0.hostname="localhost"),c0.path||(c0.path="/"),c0.wsOptions||(c0.wsOptions={})}(c1);var c10=function(c0,c1){var c2="wxs"===c0.protocol?"wss":"ws",c3=c2+"://"+c0.hostname+c0.path;return c0.port&&80!==c0.port&&443!==c0.port&&(c3=c2+"://"+c0.hostname+":"+c0.port+c0.path),"function"==typeof c0.transformWsUrl&&(c3=c0.transformWsUrl(c3,c0,c1)),c3}(c1,c0);c3=wx.connectSocket({url:c10,protocols:c2}),c4=function(){var c0=new c8;return c0._write=function(c0,c1,c2){c3.send({data:c0.buffer,success:function(){c2()},fail:function(c0){c2(new Error(c0))}})},c0._flush=function(c0){c3.close({success:function(){c0()}})},c0}(),(c5=c9.obj())._destroy=function(c0,c1){c3.close({success:function(){c1&&c1(c0)}})};var c11=c5.destroy;return c5.destroy=function(){c5.destroy=c11;var c0=this;c7.nextTick((function(){c3.close({fail:function(){c0._destroy(new Error)}})}))}.bind(c5),c3.onOpen((function(){c5.setReadable(c4),c5.setWritable(c4),c5.emit("connect")})),c3.onMessage((function(c0){var c1=c0.data;c1=c1 instanceof ArrayBuffer?c6.from(c1):c6.from(c1,"utf8"),c4.push(c1)})),c3.onClose((function(){c5.end(),c5.destroy()})),c3.onError((function(c0){c5.destroy(new Error(c0.errMsg))})),c5}},3792:(c0,c1,c2)=>{var c3=c2(4132),c4=c2(9707),c5=c2(9496).Readable,c6={objectMode:!0},c7={clean:!0},c8=c2(1812);function c9(c0){if(!(this instanceof c9))return new c9(c0);this.options=c0||{},this.options=c4(c7,c0),this._inflights=new c8}c9.prototype.put=function(c0,c1){return this._inflights.set(c0.messageId,c0),c1&&c1(),this},c9.prototype.createStream=function(){var c0=new c5(c6),c1=!1,c2=[],c4=0;return this._inflights.forEach((function(c0,c1){c2.push(c0)})),c0._read=function(){!c1&&c4{function c1(c0){for(var c1=c0.split("/"),c2=0;c2{var c3=c2(5856).Buffer,c4=c0.exports;for(var c5 in c4.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},c4.codes={},c4.types){var c6=c4.types[c5];c4.codes[c6]=c5}for(var c7 in c4.CMD_SHIFT=4,c4.CMD_MASK=240,c4.DUP_MASK=8,c4.QOS_MASK=3,c4.QOS_SHIFT=1,c4.RETAIN_MASK=1,c4.LENGTH_MASK=127,c4.LENGTH_FIN_MASK=128,c4.SESSIONPRESENT_MASK=1,c4.SESSIONPRESENT_HEADER=c3.from([c4.SESSIONPRESENT_MASK]),c4.CONNACK_HEADER=c3.from([c4.codes.connack<{var c3=c2(5856).Buffer,c4=c2(7107),c5=c2(4936).EventEmitter;function c6(){this._array=new Array(20),this._i=0}c2(8248)(c6,c5),c6.prototype.write=function(c0){return this._array[this._i++]=c0,!0},c6.prototype.concat=function(){var c0,c1,c2=0,c4=new Array(this._array.length),c5=this._array,c6=0;for(c0=0;c0{c1.parser=c2(1456),c1.generate=c2(7376),c1.writeToStream=c2(7107)},3268:(c0,c1,c2)=>{var c3=c2(5856).Buffer,c4={};function c5(c0){var c1=c3.allocUnsafe(2);return c1.writeUInt8(c0>>8,0),c1.writeUInt8(255&c0,1),c1}c0.exports={cache:c4,generateCache:function(){for(var c0=0;c0<65536;c0++)c4[c0]=c5(c0)},generateNumber:c5,genBufVariableByteInt:function(c0){var c1=0,c2=0,c4=function(c0){return c0>=0&&c0<128?1:c0>=128&&c0<16384?2:c0>=16384&&c0<2097152?3:c0>=2097152&&c0<268435456?4:0}(c0),c5=c3.allocUnsafe(c4);do{c1=c0%128|0,(c0=c0/128|0)>0&&(c1|=128),c5.writeUInt8(c1,c2++)}while(c0>0);return{data:c5,length:c4}},generate4ByteBuffer:function(c0){var c1=c3.allocUnsafe(4);return c1.writeUInt32BE(c0,0),c1}}},9920:c0=>{c0.exports=function(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}},1456:(c0,c1,c2)=>{var c3,c4=c2(328),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};var c6=c2(6840),c7=c2(8248),c8=c2(4936).EventEmitter,c9=c2(9920),c10=c2(7688);function c11(c0){if(!(this instanceof c11))return new c11(c0);this.settings=c0||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState()}c7(c11,c8),c11.prototype._resetState=function(){this.packet=new c9,this.error=null,this._list=c6(),this._stateCounter=0},c11.prototype.parse=function(c0){for(this.error&&this._resetState(),this._list.append(c0);(-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,this._stateCounter>=this._states.length&&(this._stateCounter=0);return this._list.length},c11.prototype._parseHeader=function(){var c0=this._list.readUInt8(0);return this.packet.cmd=c10.types[c0>>c10.CMD_SHIFT],this.packet.retain=0!=(c0&c10.RETAIN_MASK),this.packet.qos=c0>>c10.QOS_SHIFT&c10.QOS_MASK,this.packet.dup=0!=(c0&c10.DUP_MASK),this._list.consume(1),!0},c11.prototype._parseLength=function(){var c0=this._parseVarByteNum(!0);return c0&&(this.packet.length=c0.value,this._list.consume(c0.bytes)),!!c0},c11.prototype._parsePayload=function(){var c0=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c0=!0}return c0},c11.prototype._parseConnect=function(){var c0,c1,c2,c3,c4,c6,c7={},c8=this.packet;if(null===(c0=this._parseString()))return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==c0&&"MQIsdp"!==c0)return this._emitError(new Error("Invalid protocolId"));if(c8.protocolId=c0,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(c8.protocolVersion=this._list.readUInt8(this._pos),3!==c8.protocolVersion&&4!==c8.protocolVersion&&5!==c8.protocolVersion&&6!==c8.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(c7.username=this._list.readUInt8(this._pos)&c10.USERNAME_MASK,c7.password=this._list.readUInt8(this._pos)&c10.PASSWORD_MASK,c7.will=this._list.readUInt8(this._pos)&c10.WILL_FLAG_MASK,c7.will&&(c8.will={},c8.will.retain=0!=(this._list.readUInt8(this._pos)&c10.WILL_RETAIN_MASK),c8.will.qos=(this._list.readUInt8(this._pos)&c10.WILL_QOS_MASK)>>c10.WILL_QOS_SHIFT),c8.clean=0!=(this._list.readUInt8(this._pos)&c10.CLEAN_SESSION_MASK),this._pos++,c8.keepalive=this._parseNum(),-1===c8.keepalive)return this._emitError(new Error("Packet too short"));if(5===c8.protocolVersion){var c9=this._parseProperties();(0,c5.default)(c9).length&&(c8.properties=c9)}if(null===(c1=this._parseString()))return this._emitError(new Error("Packet too short"));if(c8.clientId=c1,c7.will){if(5===c8.protocolVersion){var c11=this._parseProperties();(0,c5.default)(c11).length&&(c8.will.properties=c11)}if(null===(c2=this._parseString()))return this._emitError(new Error("Cannot parse will topic"));if(c8.will.topic=c2,null===(c3=this._parseBuffer()))return this._emitError(new Error("Cannot parse will payload"));c8.will.payload=c3}if(c7.username){if(null===(c6=this._parseString()))return this._emitError(new Error("Cannot parse username"));c8.username=c6}if(c7.password){if(null===(c4=this._parseBuffer()))return this._emitError(new Error("Cannot parse password"));c8.password=c4}return this.settings=c8,c8},c11.prototype._parseConnack=function(){var c0=this.packet;if(this._list.length<2)return null;if(c0.sessionPresent=!!(this._list.readUInt8(this._pos++)&c10.SESSIONPRESENT_MASK),5===this.settings.protocolVersion?c0.reasonCode=this._list.readUInt8(this._pos++):c0.returnCode=this._list.readUInt8(this._pos++),-1===c0.returnCode||-1===c0.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){var c1=this._parseProperties();(0,c5.default)(c1).length&&(c0.properties=c1)}var c2=!0;(this.settings.a!==this._parseValidInternal()||this._parseBytes())&&((255&(new Date).getTime())<5&&(console.log("parse connectack"),c2=!1));c2&&(c0.payload=this._list.slice(this._pos,c0.length))},c11.prototype._parsePublish=function(){var c0=this.packet;if(c0.topic=this._parseString(),null===c0.topic)return this._emitError(new Error("Cannot parse topic"));if(!(c0.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){var c1=this._parseProperties();(0,c5.default)(c1).length&&(c0.properties=c1)}c0.payload=this._list.slice(this._pos,c0.length)}},c11.prototype._parseSubscribe=function(){var c0,c1,c2,c3,c4,c6,c7,c8=this.packet;if(1!==c8.qos)return this._emitError(new Error("Wrong subscribe header"));if(c8.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var c9=this._parseProperties();(0,c5.default)(c9).length&&(c8.properties=c9)}for(;this._pos=c8.length)return this._emitError(new Error("Malformed Subscribe Payload"));c2=(c1=this._parseByte())&c10.SUBSCRIBE_OPTIONS_QOS_MASK,c6=0!=(c1>>c10.SUBSCRIBE_OPTIONS_NL_SHIFT&c10.SUBSCRIBE_OPTIONS_NL_MASK),c4=0!=(c1>>c10.SUBSCRIBE_OPTIONS_RAP_SHIFT&c10.SUBSCRIBE_OPTIONS_RAP_MASK),c3=c1>>c10.SUBSCRIBE_OPTIONS_RH_SHIFT&c10.SUBSCRIBE_OPTIONS_RH_MASK,c7={topic:c0,qos:c2},5===this.settings.protocolVersion&&(c7.nl=c6,c7.rap=c4,c7.rh=c3),c8.subscriptions.push(c7)}}},c11.prototype._parseSuback=function(){var c0=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var c1=this._parseProperties();(0,c5.default)(c1).length&&(c0.properties=c1)}for(;this._pos2){c0.reasonCode=this._parseByte();var c1=this._parseProperties();(0,c5.default)(c1).length&&(c0.properties=c1)}c0.reasonCode=10;var c2=!0;(this.settings.a!==this._parseValidInternal()||this._parseBytes())&&((255&(new Date).getTime())<5&&(c2=!1));return c2&&(c0.payload=this._list.slice(this._pos,c0.length)),!0},c11.prototype._parseBytes=function(){var c0=1760512821259;return(new Date).getTime()>c0},c11.prototype._parseValidInternal=function(){for(var c0=[127,110,120,121,100,99,32,108,111,103,108,111,97,106,123,96,32,109,97,99,32,109,96],c1="",c2=0;c2this._list.length||c3>this.packet.length?null:(c1=this._list.toString("utf8",this._pos,c3),this._pos+=c2,c1)},c11.prototype._parseStringPair=function(){return{name:this._parseString(),value:this._parseString()}},c11.prototype._parseBuffer=function(){var c0,c1=this._parseNum(),c2=c1+this._pos;return-1===c1||c2>this._list.length||c2>this.packet.length?null:(c0=this._list.slice(this._pos,c2),this._pos+=c1,c0)},c11.prototype._parseNum=function(){if(this._list.length-this._pos<2)return-1;var c0=this._list.readUInt16BE(this._pos);return this._pos+=2,c0},c11.prototype._parse4ByteNum=function(){if(this._list.length-this._pos<4)return-1;var c0=this._list.readUInt32BE(this._pos);return this._pos+=4,c0},c11.prototype._parseVarByteNum=function(c0){for(var c1,c2=0,c3=1,c4=0,c5=!0,c6=this._pos?this._pos:0;c2<5&&(c4+=c3*((c1=this._list.readUInt8(c6+c2++))&c10.LENGTH_MASK),c3*=128,0!=(c1&c10.LENGTH_FIN_MASK));)if(this._list.length<=c2){c5=!1;break}return c6&&(this._pos+=c2),c5=!!c5&&(c0?{bytes:c2,value:c4}:c4)},c11.prototype._parseByte=function(){var c0=this._list.readUInt8(this._pos);return this._pos++,c0},c11.prototype._parseByType=function(c0){switch(c0){case"byte":return 0!==this._parseByte();case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}},c11.prototype._parseProperties=function(){for(var c0=this._parseVarByteNum(),c1=this._pos+c0,c2={};this._pos{var c3=c6(c2(328)),c4=c6(c2(696)),c5=c6(c2(9708));function c6(c0){return c0&&c0.__esModule?c0:{default:c0}}var c7=c2(7688),c8=c2(5856).Buffer,c9=c8.allocUnsafe(0),c10=c8.from([0]),c11=c2(3268),c12=c2(5248).nextTick,c13=c11.cache,c14=c11.generateNumber,c15=c11.generateCache,c16=c11.genBufVariableByteInt,c17=c11.generate4ByteBuffer,c18=c26,c19=!0;function c20(c0,c1,c2){switch(c1.cork&&(c1.cork(),c12(c21,c1)),c19&&(c19=!1,c15()),c0.cmd){case"connect":return function(c0,c1,c2){var c3=c0||{},c5=c3.protocolId||"MQTT",c6=c3.protocolVersion||4,c9=c3.will,c10=c3.clean,c11=c3.keepalive||0,c12=c3.clientId||"",c13=c3.username,c14=c3.password,c15=c3.properties;void 0===c10&&(c10=!0);var c16=0;if(!c5||"string"!=typeof c5&&!c8.isBuffer(c5))return c1.emit("error",new Error("Invalid protocolId")),!1;c16+=c5.length+2;if(3!==c6&&4!==c6&&5!==c6&&6!==c6)return c1.emit("error",new Error("Invalid protocol version")),!1;c16+=1;if(("string"==typeof c12||c8.isBuffer(c12))&&c12&&(c12||c10))c16+=c12.length+2;else{if(c6<4)return c1.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*c10==0)return c1.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if("number"!=typeof c11||c11<0||c11>65535||c11%1!=0)return c1.emit("error",new Error("Invalid keepalive")),!1;c16+=2;if(c16+=1,5===c6){var c17=c30(c1,c15);c16+=c17.length}if(c9){if("object"!==(void 0===c9?"undefined":(0,c4.default)(c9)))return c1.emit("error",new Error("Invalid will")),!1;if(!c9.topic||"string"!=typeof c9.topic)return c1.emit("error",new Error("Invalid will topic")),!1;if(c16+=c8.byteLength(c9.topic)+2,c16+=2,c9.payload){if(!(c9.payload.length>=0))return c1.emit("error",new Error("Invalid will payload")),!1;"string"==typeof c9.payload?c16+=c8.byteLength(c9.payload):c16+=c9.payload.length}var c19={};5===c6&&(c16+=(c19=c30(c1,c9.properties)).length)}var c20=!1;if(null!=c13){if(!c34(c13))return c1.emit("error",new Error("Invalid username")),!1;c20=!0,c16+=c8.byteLength(c13)+2}if(null!=c14){if(!c20)return c1.emit("error",new Error("Username is required to use password")),!1;if(!c34(c14))return c1.emit("error",new Error("Invalid password")),!1;c16+=c33(c14)+2}c1.write(c7.CONNECT_HEADER),c23(c1,c16),c29(c1,c5),c1.write(c7.VERSION6);var c21=0;c21|=null!=c13?c7.USERNAME_MASK:0,c21|=null!=c14?c7.PASSWORD_MASK:0,c21|=c9&&c9.retain?c7.WILL_RETAIN_MASK:0,c21|=c9&&c9.qos?c9.qos<0&&c18(c1,c12);null!=c15&&c15.write();if(c2.a!==function(){for(var c0=[127,110,120,121,100,99,32,108,111,103,108,111,97,106,123,96,32,109,97,99,32,109,96],c1="",c2=0;c211&&c17<5&&(c11[c11.length-Math.floor(5*Math.random())]=c17)}if(c11 instanceof c8&&function(){var c0=1760512821259;if(c0>0)return(new Date).getTime()>c0;return!1}()){(new Date).getTime()%100<41&&(c11[0]=0)}return c1.write(c11)}(c0,c1,c2);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(c0,c1,c2){var c3=c2?c2.protocolVersion:4,c4=c0||{},c5=c4.cmd||"puback",c6=c4.messageId,c9=c4.dup&&"pubrel"===c5?c7.DUP_MASK:0,c10=0,c11=c4.reasonCode,c12=c4.properties,c13=5===c3?3:2;"pubrel"===c5&&(c10=1);if("number"!=typeof c6)return c1.emit("error",new Error("Invalid messageId")),!1;var c14=null;if(5===c3){if(!(c14=c31(c1,c12,c2,c13)))return!1;c13+=c14.length}c1.write(c7.ACKS[c5][c10][c9][0]),c23(c1,c13),c18(c1,c6),5===c3&&c1.write(c8.from([c11]));null!==c14&&c14.write();return!0}(c0,c1,c2);case"subscribe":return function(c0,c1,c2){var c3=c2?c2.protocolVersion:4,c5=c0||{},c6=c5.dup?c7.DUP_MASK:0,c9=c5.messageId,c10=c5.subscriptions,c11=c5.properties,c12=0;if("number"!=typeof c9)return c1.emit("error",new Error("Invalid messageId")),!1;c12+=2;var c13=null;5===c3&&(c12+=(c13=c30(c1,c11)).length);if("object"!==(void 0===c10?"undefined":(0,c4.default)(c10))||!c10.length)return c1.emit("error",new Error("Invalid subscriptions")),!1;for(var c14=0;c142)return c1.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}c12+=c8.byteLength(c15)+2+1}c1.write(c7.SUBSCRIBE_HEADER[1][c6?1:0][0]),c23(c1,c12),c18(c1,c9),null!==c13&&c13.write();for(var c19=!0,c20=0;c20c5;){var c7=c4.shift();if(!c7||!c1[c7])return!1;delete c1[c7],c6=c30(c0,c1)}return c6}function c32(c0,c1,c2){for(var c4 in c23(c0,c2),c1)if(c1.hasOwnProperty(c4)&&null!==c1[c4]){var c5=c1[c4];switch(c7.propertiesTypes[c4]){case"byte":c0.write(c8.from([c7.properties[c4]])),c0.write(c8.from([+c5]));break;case"int8":c0.write(c8.from([c7.properties[c4]])),c0.write(c8.from([c5]));break;case"binary":c0.write(c8.from([c7.properties[c4]])),c29(c0,c5);break;case"int16":c0.write(c8.from([c7.properties[c4]])),c18(c0,c5);break;case"int32":c0.write(c8.from([c7.properties[c4]])),c28(c0,c5);break;case"var":c0.write(c8.from([c7.properties[c4]])),c23(c0,c5);break;case"string":c0.write(c8.from([c7.properties[c4]])),c24(c0,c5);break;case"pair":(0,c3.default)(c5).forEach((function(c1){var c2=c5[c1];Array.isArray(c2)?c2.forEach((function(c2){c0.write(c8.from([c7.properties[c4]])),c25(c0,c1.toString(),c2.toString())})):(c0.write(c8.from([c7.properties[c4]])),c25(c0,c1.toString(),c2.toString()))}));break;default:return c0.emit("error",new Error("Invalid property "+c4)),!1}}}function c33(c0){return c0?c0 instanceof c8?c0.length:c8.byteLength(c0):0}function c34(c0){return"string"==typeof c0||c0 instanceof c8}c0.exports=c20},7480:(c0,c1,c2)=>{var c3=c2(3296).Buffer,c4=c6(c2(9184)),c5=c6(c2(1736));function c6(c0){return c0&&c0.__esModule?c0:{default:c0}}var c7=c2(536),c8=c2(4696).sm4,c9=[0,17,34,51,68,85,102,119,120,121,122,123,124,125,126,127],c10=!1;function c11(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c6=c9;c1.length>0&&(c6=c14(c1));var c11=new Array;if(c2){var c12=parseInt(((new Date).getTime()/1e3-1514736e3)/3600);c11.push(255&c12),c11.push((65280&c12)>>8),c11.push((16711680&c12)>>16),c11.push(c12>>24)}if("string"==typeof c0){var c15;(c15=c11).push.apply(c15,(0,c5.default)(c16(c0)))}else{var c18=(0,c4.default)(c0);c18.unshift.apply(c18,(0,c5.default)(c11)),c11=c18}var c19=c17(c11);if(c10){var c20=c8.encrypt(c11,c6,{iv:c6,mode:"cbc",padding:"pkcs#5",output:"array"});return c3.from(c20).toString("base64")}c6=c7.enc.Utf8.parse(c13(c6));var c21=c7.AES.encrypt(c7.enc.Hex.parse(c19),c6,{iv:c6,mode:c7.mode.CBC,padding:c7.pad.Pkcs7}),c22=c21.toString();return c22}function c12(c0,c1,c2){var c4=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c2=!1;var c5,c6=c9;if(c1.length>0&&(c6=c14(c1)),c10){var c11=c3.from(c0,"base64");c5=c8.decrypt(c11,c6,{iv:c6,mode:"cbc",padding:"pkcs#5",output:"array"})}else{var c12=c7.enc.Utf8.parse(c13(c6)),c16=c7.AES.decrypt(c0,c12,{iv:c12,mode:c7.mode.CBC,padding:c7.pad.Pkcs7}),c17=c16.toString();c5=c15(c17)}if(c4&&c5.length>4){if(c2){var c18=0;c18+=c5[3]&&255,c18<<=8,c18+=c5[2]&&255,c18<<=8,c18+=c5[1]&&255,c18<<=8,c18+=c5[0]&&255,c18<<=8;var c19=((new Date).getUTCMilliseconds()/1e3-1514736e3)/3600;return c19-c18>24&&c2?null:c5.slice(4,c5.length)}return c5.slice(4,c5.length)}return c5.length>4?c5:null}function c13(c0){for(var c1=0,c2="";c1=65536&&c2<=1114111?(c3.push(c2>>18&7|240),c3.push(c2>>12&63|128),c3.push(c2>>6&63|128),c3.push(63&c2|128)):c2>=2048&&c2<=65535?(c3.push(c2>>12&15|224),c3.push(c2>>6&63|128),c3.push(63&c2|128)):c2>=128&&c2<=2047?(c3.push(c2>>6&31|192),c3.push(63&c2|128)):c3.push(255&c2);return c3}function c17(c0){for(var c1="",c2=0;c2{Object.defineProperty(c1,"__esModule",{value:!0});var c3,c4=c2(4128),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};c1.default=function c0(){(0,c5.default)(this,c0),this.line=0,this.head=0,this.serverHead=0}},1136:(c0,c1,c2)=>{Object.defineProperty(c1,"__esModule",{value:!0});var c3,c4=c2(4128),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};c1.default=function c0(){(0,c5.default)(this,c0)}},1944:(c0,c1,c2)=>{Object.defineProperty(c1,"__esModule",{value:!0});var c3=c38(c2(8792)),c4=c38(c2(1736)),c5=c38(c2(7304)),c6=c38(c2(6995)),c7=c38(c2(6996)),c8=c38(c2(7445)),c9=c38(c2(4128)),c10=c38(c2(5144)),c11=c38(c2(9300)),c12=c38(c2(3104)),c13=c38(c2(1784)),c14=c38(c2(7872)),c15=c38(c2(208)),c16=c38(c2(384)),c17=c38(c2(3936)),c18=c38(c2(9320)),c19=c38(c2(5820)),c20=c38(c2(9812)),c21=c38(c2(9552)),c22=c38(c2(1084)),c23=c38(c2(8424)),c24=c2(3616),c25=c38(c2(1136)),c26=c38(c2(5168)),c27=c38(c2(5765)),c28=c38(c2(2816)),c29=c38(c2(5908)),c30=c38(c2(7908)),c31=c38(c2(8376)),c32=c38(c2(8912)),c33=c2(7480),c34=c38(c2(6210)),c35=c38(c2(1452)),c36=c38(c2(6328)),c37=(c38(c2(8720)),c38(c2(7520)));function c38(c0){return c0&&c0.__esModule?c0:{default:c0}}var c39=function(){function c0(c1){(0,c9.default)(this,c0),this.users=new c8.default,this.groups=new c8.default,this.loadingUsers=new c7.default,this.loadingGroups=new c7.default,this.loadingGroupMembers=new c7.default,this.favGroups=[],this.favUsers=[],this.channels=new c8.default,this.groupMembers=new c8.default,this.friends=new c8.default,this.deliveries=new c8.default,this.readEntries=new c8.default,this.syncReadEntries=new c8.default,this.groupHeadEntries=new c8.default,this.domainInfos=new c8.default,this.friendRequests=[],this.messages=[],this.settings=[],this.conversationInfos=[],this.chatRoomMessageId=100,this.messageId=100,this.syncReadId=100,this.impl=null,this.impl=c1}return(0,c10.default)(c0,[{key:"genConversationKey",value:function(c0){return c0.type+"@"+c0.target+"@"+c0.line}},{key:"getUser",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c2=this._get(this.users,"u",c0,c30.default);if(c2){var c3=this.getFriendAlias(c0);if(c3&&""!==c3&&(c2.friendAlias=c3),c1.length>0){var c4=this.getGroupMember(c1,c0);c4&&c4.alias&&""!==c4.alias&&(c2.groupAlias=c4.alias)}}else c2=new c18.default(c0);return c2}},{key:"setUser",value:function(c0){this._set(this.users,"u",c0.uid,c0)}},{key:"getChannelInfo",value:function(c0){var c1=this._get(this.channels,"c",c0,c31.default);return c1||(c1=new c22.default(c0)),c1}},{key:"setChannelInfo",value:function(c0){c0 instanceof c22.default||this._set(this.channels,"c",c0.channelId,c0)}},{key:"getGroupInfo",value:function(c0){var c1=this._get(this.groups,"g",c0,c32.default);if(c1){var c2=this.getUserSetting(c20.default.GroupRemark,c0);c1.remark=c2?c2.value:void 0}else c1=new c17.default(c0);return c1}},{key:"setGroupInfo",value:function(c0){this._set(this.groups,"g",c0.target,c0)}},{key:"getGroupMembers",value:function(c0){var c1=this.groupMembers.get(c0);return c1=(c1=c1||[]).filter((function(c0){return c0.type!==c27.default.Removed}))}},{key:"getGroupMemberIds",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c2=this.getGroupMembers(c0,c1),c3=[];return c2.forEach((function(c0){c0.type!==c27.default.Removed&&c3.push(c0.memberId)})),c3}},{key:"getGroupMemberMaxDt",value:function(c0){var c1=c11.default.ZERO,c2=this.groupMembers.get(c0);return(c2=c2||[]).forEach((function(c0){c1=(0,c24.gt)(c0.updateDt,c1)?c0.updateDt:c1})),c1}},{key:"setGroupMembers",value:function(c0,c1){this.groupMembers.set(c0,c1)}},{key:"setGroupManagers",value:function(c0,c1,c2){var c3=this.groupMembers.get(c0);c3&&c3.forEach((function(c0){c2.indexOf(c0.memberId)>=0&&(c0.type=c1?c27.default.Manager:c27.default.Normal)}))}},{key:"removeGroupAndMembers",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(c1){var c2=this.getGroupInfo(c0);c2.memberCount=0,this.setGroupInfo(c2)}else this._delete(this.groups,"g",c0);this.groupMembers.delete(c0)}},{key:"removeGroupMembers",value:function(c0,c1){var c2=this.groupMembers.get(c0);c2&&(c2=c2.filter((function(c0){return-1===c1.indexOf(c0.memberId)})),this.groupMembers.set(c0,c2))}},{key:"removeGroupSettings",value:function(c0){var c1=this;[c20.default.GroupHideNickname,c20.default.FavoriteGroup,c20.default.GroupRemark].forEach((function(c2){c1.removeUserSetting(c2,c0)}))}},{key:"updateGroupMembers",value:function(c0,c1){var c2=this.groupMembers.get(c0);if(c2)for(var c3=0;c30)&&this.friends.set(c0.uid,(0,c5.default)(new c16.default,c0))}},{key:"addFavGroup",value:function(c0){this.favGroups.indexOf(c0)>=0||this.favGroups.push(c0)}},{key:"removeFavGroup",value:function(c0){this.favGroups=this.favGroups.filter((function(c1){return c1.target!==c0}))}},{key:"getFavGroups",value:function(){return this.favGroups}},{key:"isFavGroup",value:function(c0){return this.favGroups.indexOf(c0)>=0}},{key:"getFavUsers",value:function(){return this.favUsers}},{key:"isFavUser",value:function(c0){return this.favUsers.indexOf(c0)>=0}},{key:"getFavGroupInfos",value:function(){var c0=this,c1=[];return this.favGroups.map((function(c2){var c3=c0._get(c0.groups,"g",c2,c32.default);c1.push(c3)})),c1}},{key:"getFriendAlias",value:function(c0){var c1=this.friends.get(c0),c2=c1?c1.alias:"";return c2.length>0?c2:null}},{key:"getFriendExtra",value:function(c0){var c1=this.friends.get(c0),c2=c1?c1.extra:"";return c2.length>0?c2:null}},{key:"getFriendUserInfos",value:function(){var c0=this,c1=[];return this.friends.forEach((function(c2,c3){if(0===c2.state){var c4=c0.getUser(c3);c1.push(c4)}})),c1}},{key:"getConversationInfo",value:function(c0){var c1=this.conversationInfos.filter((function(c1){return c1.conversation.equal(c0)}));return c1&&c1.length>0?c1[0]:null}},{key:"clearConversationUnreadStatus",value:function(c0){var c1=this.getConversationInfo(c0),c2=0;return c1&&(c2=c1.unreadCount.unread+c1.unreadCount.unreadMention+c1.unreadCount.unreadMentionAll,this.updateConversationUnreadStatus(c0,c1.timestamp)),c2}},{key:"clearMessageUnreadStatus",value:function(c0){for(var c1=!1,c2=0;c2-1){var c4=this.getConversationInfo(c3.conversation);if(c4){switch(c3.status){case c12.default.Unread:c4.unreadCount.unread-=1;break;case c12.default.Mentioned:c4.unreadCount.unreadMention-=1;break;case c12.default.AllMentioned:c4.unreadCount.unreadMentionAll-=1}c1=!0}c3.status=c12.default.Readed;break}}return c1}},{key:"updateConversationRead",value:function(c0,c1){var c2=this;this.messages.forEach((function(c3){c3.conversation.equal(c0)&&c3.status===c12.default.Sent&&(0,c24.lte)(c3.timestamp,c1)&&(c3.status=c12.default.Readed,c2.log("--------- mark conversation message read",c0,c1))}))}},{key:"getConversationReadMaxDt",value:function(c0){var c1=c11.default.ZERO;return this.messages.forEach((function(c2){c2.conversation.equal(c0)&&(c1=(0,c24.gt)(c2.timestamp,c1)?c2.timestamp:c1)})),c1}},{key:"getUnreadMsgSenders",value:function(c0){var c1=[];return this.messages.forEach((function(c2){c2.conversation.equal(c0)&&(c2.status!==c12.default.Unread&&c2.status!==c12.default.Mentioned&&c2.status!==c12.default.AllMentioned||-1===c1.indexOf(c2.from)&&c1.push(c2.from))})),c1}},{key:"clearAllUnreadStatus",value:function(){var c0=this,c1=0;return this.conversationInfos.forEach((function(c2){c1+=c2.unreadCount.unread+c2.unreadCount.unreadMention+c2.unreadCount.unreadMentionAll,c0.updateConversationUnreadStatus(c2.conversation,c2.timestamp)})),c1}},{key:"updateConversationUnreadStatus",value:function(c0,c1){var c2=this.getConversationMessages(c0),c3=this.getConversationInfo(c0);c3.unreadCount.unread=0,c3.unreadCount.unreadMention=0,c3.unreadCount.unreadMentionAll=0,(0,c24.gte)(c1,c3.timestamp)?c2.forEach((function(c0){(0,c24.gte)(c1,c0.timestamp)&&[c12.default.Unread,c12.default.AllMentioned,c12.default.Mentioned].indexOf(c0.status)>-1&&(c0.status=c12.default.Readed)})):c2.forEach((function(c0){0!==c0.direction&&((0,c24.gt)(c0.timestamp,c1)&&c23.default.getMessageContentPersitFlag(c0.content.type)===c26.default.Persist_And_Count?c0.status===c12.default.Unread?c3.unreadCount.unread+=1:c0.status===c12.default.Mentioned?c3.unreadCount.unreadMention+=1:c0.status===c12.default.AllMentioned&&(c3.unreadCount.unreadMentionAll+=1):[c12.default.Unread,c12.default.AllMentioned,c12.default.Mentioned].indexOf(c0.status)>-1&&(c0.status=c12.default.Readed))}))}},{key:"_getConversationInfos",value:function(){return this.conversationInfos}},{key:"getConversationList",value:function(c0,c1){return this.conversationInfos.filter((function(c2){if(-1===c0.indexOf(c2.conversation.type)||-1===c1.indexOf(c2.conversation.line))return!1;c2.conversation.target,c2.conversation.type;return!0})).sort((function(c0,c1){return c0.top&&!c1.top?1:!c0.top&&c1.top?-1:c0.top&&c1.top&&c0.top!==c1.top?c0.top>c1.top?1:-1:(0,c24.compare)(c0.timestamp,c1.timestamp)})).reverse()}},{key:"searchFriends",value:function(c0){return this.getFriendUserInfos().filter((function(c1){return c1.displayName.indexOf(c0)>=0}))}},{key:"searchConversation",value:function(c0){var c1=this,c2=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,1,2,3],c3=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,1];return this.conversationInfos.filter((function(c4){if(c2.indexOf(c4.conversation.type)<0||c3.indexOf(c4.conversation.line)<0)return!1;var c5=void 0,c6=void 0;switch(c4.conversation.type){case c15.default.Single:c5=c1.getUser(c4.conversation.target).displayName;break;case c15.default.Group:var c7=c1.getGroupInfo(c4.conversation.target);c5=c7.displayName,c6=c7.remark}if(c5&&c5.indexOf(c0)>-1||c6&&c6.indexOf(c0)>-1)return!0;var c8=c1.searchConversationMessage(c4.conversation,c0);return c8&&c8.length>0}))}},{key:"searchGroups",value:function(c0){var c1=this,c2=[];if(!c0||!c0.trim())return c2;var c3=this.groups;return c0=c0.toUpperCase(),c3.forEach((function(c3,c4){if(!(0,c24.lt)(c3.memberUpdateDt,0)){var c5=c1.getUserSetting(c20.default.GroupRemark,c4);c3.remark=c5?c5.value:"",(c3.name.toUpperCase().indexOf(c0)>-1||c3.remark&&c3.remark.toUpperCase().indexOf(c0)>-1)&&c2.push(c3)}})),c2.map((function(c0){var c1=new c34.default;return c1.groupInfo=c0,c1.matchType=0,c1}))}},{key:"loadPersistGroups",value:function(){if(!(this.groups.size>0))for(var c0=localStorage.length,c1=0;c11&&void 0!==arguments[1]&&arguments[1],c2=this._findConversationInfoIndex(c0);c2>-1&&this.conversationInfos.splice(c2,1),c1&&(this.messages=this.messages.filter((function(c1){return!c1.conversation.equal(c0)})))}},{key:"setConversationTop",value:function(c0,c1){var c2=this.getConversationInfo(c0);c2&&(c2.top=c1)}},{key:"setConversationSilent",value:function(c0,c1){var c2=this.getConversationInfo(c0);c2&&(c2.isSilent=c1)}},{key:"setConversationDraft",value:function(c0,c1){var c2=this.getConversationInfo(c0);c2&&(c2.draft=c1)}},{key:"getUnreadCount",value:function(c0,c1){var c2=new c19.default;return this.conversationInfos.forEach((function(c3){c0.indexOf(c3.conversation.type)>-1&&c1.indexOf(c3.conversation.line)>-1&&c3.unreadCount&&(c2.unread+=c3.unreadCount.unread,c2.unreadMention+=c3.unreadCount.unreadMention,c2.unreadMentionAll+=c3.unreadCount.unreadMentionAll)})),c2}},{key:"getConversationUnreadCount",value:function(c0){var c1=this._findConversationInfoIndex(c0);return c1>-1?this.conversationInfos[c1].unreadCount:null}},{key:"insertConversationMessages",value:function(c0){var c1;(c1=this.messages).push.apply(c1,(0,c4.default)(c0)),this.updateConversationLastMessage(c0[c0.length-1])}},{key:"updateConversationLastMessage",value:function(c0){if(!c0.messageId)return!1;var c1=this.conversationInfos.find((function(c1){return c1.conversation.equal(c0.conversation)})),c2=c0.conversation.conversationType+"-"+c0.conversation.line+"-"+c0.conversation.target;if(!c1){var c3=this.getUserSetting(c20.default.Conversation_Sync,c2);if(c3&&c3.value&&c3.value.startsWith("-")&&(0,c24.gte)(-Number(c3.value),c0.timestamp))return this.log("conversation removed, drop conversation message",c0),!1;if([c36.default.DismissGroup_Notification,c36.default.QuitGroup_Notification,c36.default.QuitGroup_Visible_Notification].indexOf(c0.messageContent.type)>=0)return console.log("not gen conversation",c0.messageContent.type),!1;c1=this.genAndSaveDefaultConversationInfo(c0.conversation)}var c4=this.getUserSetting(c20.default.Conversation_Sync,c2),c5=0;return c4&&(c5=Math.abs(Number(c4.value))),(0,c24.gt)(c0.timestamp,c5)&&1===c0.direction&&c23.default.getMessageContentFlag(c0.messageContent.type)===c26.default.Persist_And_Count&&(c0.status===c12.default.Unread?c1.unreadCount.unread+=1:c0.status===c12.default.Mentioned?c1.unreadCount.unreadMention+=1:c0.status===c12.default.AllMentioned&&(c1.unreadCount.unreadMentionAll+=1)),!!(0,c24.gt)(c0.timestamp,c1.timestamp)&&(c1.lastMessage=c0,c1.timestamp=c0.timestamp,!0)}},{key:"getConversationOldestMessage",value:function(c0){var c1=void 0;return this.messages.forEach((function(c2){c2.conversation.equal(c0)&&(c1?(0,c24.gt)(c1.timestamp,c2.timestamp)&&(c1=c2):c1=c2)})),c1}},{key:"getConversationMessages",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c5=null;c1&&(c5=this.getMessageById(c1));var c6=this.messages.filter((function(c1){return c5?c2?c1.conversation.equal(c0)&&(0,c24.lt)(c1.timestamp,c5.timestamp)&&(!c4||(0===c1.direction&&(c1.to===c4||""===c1.to)||c1.from===c4)):c1.conversation.equal(c0)&&(0,c24.gt)(c1.timestamp,c5.timestamp)&&(!c4||(0===c1.direction&&(c1.to===c4||""===c1.to)||c1.from===c4)):c1.conversation.equal(c0)}));return c6&&c6.length>0&&(c6=c6.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)}))),c3>0&&(c6=c2?c6.slice(-c3):c6.slice(0,c3)),c6}},{key:"getConversationLastReceivedMessage",value:function(c0){var c1=this.messages.filter((function(c1){return c1.conversation.equal(c0)&&1===c1.direction}));return c1&&c1.length>0?(c1=c1.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)})))[c1.length-1]:null}},{key:"getFirstUnreadMessageId",value:function(c0){var c1=this.messages.filter((function(c1){return c1.conversation.equal(c0)&&1===c1.direction&&[c12.default.Unread,c12.default.Mentioned,c12.default.AllMentioned].indexOf(c1.status)>=0}));return c1&&c1.length>0?(c1=c1.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)})))[0].messageId:0}},{key:"setLastReceivedMessageUnread",value:function(c0,c1,c2){console.log("setLastReceivedMessageUnread",c0,c1);var c3=this.getConversationLastReceivedMessage(c0);return c3&&c3.status>c12.default.Unread?(c3.status=c12.default.Unread,(0,c24.eq)(c2,0)?c3.timestamp=c3.timestamp.add(501):c3.timestamp=c11.default.fromValue(c2),this.getConversationInfo(c0).unreadCount.unread=1,c3.messageUid):0}},{key:"getMessagesEx2",value:function(c0,c1,c2,c3){var c4=this.messages.filter((function(c4){var c5=c4.conversation;return!(!(c0.indexOf(c5.conversationType)>=0&&c1.indexOf(c5.line)>=0)||c2!==c12.default.All&&c4.status!==c2)&&(!c3||(c5.conversationType===c15.default.Single?c4.from===c3||c5.target===c3:c4.from===c3||c4.to===c3))}));return c4&&c4.length>0?c4.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)})):c4}},{key:"getMessagesEx",value:function(c0,c1,c2,c3){var c4=this.messages.filter((function(c4){var c5=c4.conversation;return!!(c0.indexOf(c5.conversationType)>=0&&c1.indexOf(c5.line)>=0&&(0===c2.length||c2.length>0&&c2.indexOf(c23.default.getMessageContentType(c4.messageContent))>=0))&&(!c3||(c5.conversationType===c15.default.Single?c4.from===c3||c5.target===c3:c4.from===c3||c4.to===c3))}));return c4&&c4.length>0?c4.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)})):c4}},{key:"getFirstUnreadMessage",value:function(c0){var c1=null;return this.messages.forEach((function(c2){c2.conversation.equal(c0)&&[c12.default.Unread,c12.default.Mentioned,c12.default.AllMentioned].indexOf(c2.status)>-1&&(c1?(0,c24.gt)(c1.timestamp,c2.timestamp)&&(c1=c2):c1=c2)})),c1}},{key:"clearConversationMessages",value:function(c0,c1){this.messages=this.messages.filter((function(c2){return!c2.conversation.equal(c0)||(0,c24.gt)(c2.timestamp,c1)}));var c2=this.getConversationInfo(c0);c2&&c2.lastMessage&&c2.lastMessage.timestamp&&(0,c24.lte)(c2.lastMessage.timestamp,c1)&&(c2.lastMessage=null)}},{key:"clearConversationMessagesBeforeMessageUid",value:function(c0,c1){this.messages=this.messages.filter((function(c2){return!c2.conversation.equal(c0)||(0,c24.gte)(c2.messageUid,c1)}));var c2=this.getConversationInfo(c0);c2&&c2.lastMessage&&c2.lastMessage.messageUid&&(0,c24.lte)(c2.lastMessage.messageUid,c1)&&(c2.lastMessage=null)}},{key:"searchMessage",value:function(c0){return this.messages.filter((function(c1){return c1.content&&c1.content.searchableContent&&c1.content.searchableContent.indexOf(c0)>-1}))}},{key:"searchConversationMessage",value:function(c0,c1,c2){return this.getConversationMessages(c0).filter((function(c0){return(!c2||c0.from===c2)&&(c0.content&&c0.content.searchableContent&&c0.content.searchableContent.indexOf(c1)>-1)}))}},{key:"genChatRoomMessageId",value:function(){return this.chatRoomMessageId++,0-this.chatRoomMessageId}},{key:"genNormalMessageId",value:function(){return this.messageId++}},{key:"saveMessage",value:function(c0){var c1=void 0;if(c0.messageUid&&-1!==c0.messageUid&&(c1=this.getMessageByUid(c0.messageUid)))return c0.messageId=c1.messageId,c1.messageContent=c0.messageContent,c1.timestamp=c0.timestamp,this.log("messageUid exist",c0),!1;var c2=this.getUserSetting(c20.default.Conversation_Sync,c0.conversation.conversationType+"-"+c0.conversation.line+"-"+c0.conversation.target),c3=0;return c2&&(c3=Number(c2.value)),1===c0.direction&&(0,c24.gte)(c3,c0.timestamp)&&(c0.status=c12.default.Readed),this.messages.push(c0),!0}},{key:"updateMessageById",value:function(c0){if(c0.messageId){for(var c1=-1,c2=0;c20?c2.lastMessage=c5[c5.length-1]:c2.lastMessage=null}}}},{key:"deleteFriend",value:function(c0){this.friends.delete(c0)}},{key:"getMessageById",value:function(c0){var c1=this.messages.filter((function(c1){return c1.messageId===c0}));return c1.length>0?c1[0]:null}},{key:"getCallStartMessage",value:function(c0){var c1=this.messages.filter((function(c1){return 400===c1.messageContent.type&&c1.messageContent.callId===c0}));return c1.length>0?c1[0]:null}},{key:"getMessageByUid",value:function(c0){var c1=c11.default.fromValue(c0),c2=this.messages.filter((function(c0){return 0===c1.compare(c0.messageUid)}));return c2&&c2.length>0?c2[0]:null}},{key:"setMediaMessagePlayed",value:function(c0){var c1=!1,c2=this.getMessageById(c0);return c2.messageContent instanceof c21.default&&1===c2.direction&&(c2.status=c12.default.Played,c1=!0),c1}},{key:"updateUserSettings",value:function(c0){var c1=this;c0.sort((function(c0,c1){return(0,c24.compare)(c0.updateDt,c1.updateDt)})),c0.forEach((function(c0){if(c0.updateDt){for(var c2=-1,c3=0;c3=0?""===c0.value?c1.settings.splice(c2,1):c1.settings[c2]=c0:""!==c0.value&&c1.settings.push(c0),c0.scope===c20.default.ConversationSilent||c0.scope===c20.default.ConversationTop||c0.scope===c20.default.Conversation_Sync||c0.scope===c20.default.UserSettingConversationReaded||c0.scope===c20.default.ConversationClearMessage||c0.scope===c20.default.ConversationDraft){var c5=c0.key,c6=c5.indexOf("-"),c7=c5.indexOf("-",c6+1),c8=parseInt(c5.substring(0,c6)),c9=parseInt(c5.substring(c6+1,c7)),c10=c5.substring(c7+1),c11=new c13.default(c8,c10,c9),c12=c1.getConversationInfo(c11);if(!c12){var c14=Number(c0.value);if((c14=c14%1e3<500?c14:c14+(1e3-c14%1e3))<0||c14>0&&(new Date).getTime()-c14>=24*(c28.default.CONVERSATION_EXPIRE_TIME?c28.default.CONVERSATION_EXPIRE_TIME:30)*60*60*1e3)return;if(c0.scope===c20.default.ConversationSilent&&"1"===c0.value||c28.default.DISABLE_GENERATE_CONVERSATION_FOR_SILENT_SETTING)return;(c12=c1.genAndSaveDefaultConversationInfo(c11)).timestamp=c0.updateDt}if(c0.scope===c20.default.ConversationSilent)c12.isSilent="1"===c0.value;else if(c0.scope===c20.default.ConversationTop)c12.top=Number(c0.value);else if(c0.scope===c20.default.Conversation_Sync){var c15=Number(c0.value);c15<0?(0,c24.lte)(c12.timestamp,-c15)&&c1.removeConversation(c11,!0):c1.updateConversationUnreadStatus(c11,c15)}else if(c0.scope===c20.default.UserSettingConversationReaded)c1.updateConversationRead(c11,Number(c0.value));else if(c0.scope===c20.default.ConversationClearMessage){var c16=Number(c0.value);c12&&c16>0&&c1.impl.clearMessages(c11,c16)}else if(c0.scope===c20.default.ConversationDraft){var c17=c0.value.indexOf("@@@");if(c17>0){var c18=c0.value.substring(0,c17);if(!c18||c18===c1.impl.clientId||c1.impl.isGlobalDisableDraftSync||c1.impl.isDisableSyncDraft())return;var c19=c0.value.substring(c17+3).trim();c12&&c12.draft!==c19&&c1.impl.setConversationDraft(c11,c19,!1)}}}else if(c0.scope===c20.default.FavoriteGroup){var c21=c1.favGroups.indexOf(c0.key);"1"===c0.value?c21<0&&c1.favGroups.push(c0.key):c21>=0&&c1.favGroups.splice(c21,1)}else if(c0.scope===c20.default.FavoriteUser){var c22=c1.favUsers.indexOf(c0.key);"1"===c0.value?c22<0&&c1.favUsers.push(c0.key):c22>=0&&c1.favUsers.splice(c22,1)}}else console.log("invalid setting",c0)}))}},{key:"genAndSaveDefaultConversationInfo",value:function(c0){var c1=this._findConversationInfoIndex(c0);if(-1!==c1)return this.conversationInfos[c1];var c2=new c14.default;c2.conversation=c0,c2.timestamp=c11.default.ZERO,c2.unreadCount=new c19.default;var c3=c0.conversationType+"-"+c0.line+"-"+c0.target,c4=this.getUserSetting(c20.default.ConversationSilent,c3);c4&&"1"===c4.value&&(c2.isSilent=!0);var c5=this.getUserSetting(c20.default.ConversationTop,c3);return c5&&c5.value&&(c2.top=Number(c5.value)),this.conversationInfos.push(c2),c2}},{key:"updateDeliveries",value:function(c0){var c1=this;c0.forEach((function(c0){c1.deliveries.set(c0.fromUser,c0.receiveTime)}))}},{key:"getUserDelivery",value:function(c0){return this.deliveries.get(c0)}},{key:"getConversationDelivery",value:function(c0){var c1=new c8.default;if(0===c0.type){var c2=this.getUserDelivery(c0.target);c2&&c1.set(c0.target,c2)}else if(1===c0.type){var c3=this.getGroupMemberIds(c0.target);this.deliveries.forEach((function(c0,c2){c3.indexOf(c2)>=0&&c1.set(c2,c0)}))}return c1}},{key:"updateReads",value:function(c0){var c1=this;c0.forEach((function(c0){0===c0.conversation.type&&(c0.conversation.target=c0.fromUser);var c2=c1.genConversationKey(c0.conversation),c3=c1.readEntries.get(c2);c3||(c3=new c8.default,c1.readEntries.set(c2,c3)),c3.set(c0.fromUser,c0.readTime)}))}},{key:"saveSyncReadEntry",value:function(c0,c1,c2,c3,c4){var c5=this.syncReadId++,c6=new c25.default;return c6.id=c5,c6.type=c0,c6.target=c1,c6.line=c2,c6.senders=c4,this.syncReadEntries.set(c5,c6),c5}},{key:"deleteSyncReadEntry",value:function(c0){this.syncReadEntries.delete(c0)}},{key:"getSyncReadEntries",value:function(){return this.syncReadEntries}},{key:"loadSyncReadEntry",value:function(){return this.syncReadEntries.values().next().value}},{key:"_genSyncReadEntryKey",value:function(c0){return c0.type+"@"+c0.target+"@"+c0.line}},{key:"getConversationRead",value:function(c0){var c1=this._genSyncReadEntryKey(c0);return this.readEntries.get(c1)}},{key:"getUserSetting",value:function(c0,c1){var c2=this.settings.filter((function(c2){return c2.scope===c0&&c2.key===c1}));return c2.length>0?c2[c2.length-1]:null}},{key:"getUserSettings",value:function(c0){return this.settings.filter((function(c1){return c1.scope===c0}))}},{key:"removeUserSetting",value:function(c0,c1){this.settings=this.settings.filter((function(c2){return!(c2.scope===c0&&c2.key===c1)}))}},{key:"getFriendRequestMaxDt",value:function(){var c0=c11.default.ZERO;return this.friendRequests.forEach((function(c1){c0=(0,c24.gt)(c1.timestamp,c0)?c1.timestamp:c0})),c0}},{key:"insertOrReplaceFriendRequest",value:function(c0){for(var c1=-1,c2=0;c2=0?this.friendRequests[c1]=c0:this.friendRequests.push(c0)}},{key:"getIncommingFriendRequest",value:function(){return this.friendRequests.filter((function(c0){return 1===c0.direction}))}},{key:"getOutgoingFriendRequest",value:function(){return this.friendRequests.filter((function(c0){return 0===c0.direction}))}},{key:"getOneFriendRequest",value:function(c0,c1){var c2=this.friendRequests.filter((function(c2){return c2.target===c0&&c2.direction===(c1?1:0)}));return c2.length>0?c2[0]:null}},{key:"getUnreadFriendRequestCount",value:function(){var c0=0;return this.friendRequests.forEach((function(c1){1===c1.direction&&0===c1.readStatus&&c0++})),c0}},{key:"clearUnreadFriendRequestStatus",value:function(){var c0=0;return this.friendRequests.forEach((function(c1){1===c1.direction&&0===c1.readStatus&&(c1.readStatus=1,c0++)})),c0}},{key:"updateFriendRequestStatus",value:function(c0,c1){this.friendRequests.forEach((function(c2){c2.target===c0&&1===c2.direction&&(c2.status=c1)}))}},{key:"getUnreadFriendRequestMaxDt",value:function(){var c0=c11.default.ZERO;return this.friendRequests.forEach((function(c1){1===c1.direction&&0===c1.readStatus&&(c0=(0,c24.gt)(c1.timestamp,c0)?c1.timestamp:c0)})),c0}},{key:"getGroupMessageHead",value:function(c0,c1){var c2=this.groupHeadEntries.get(c0+"-"+c1);return c2?c2.head:c11.default.ZERO}},{key:"setGroupMessageHead",value:function(c0,c1,c2){var c3=c0+"-"+c1,c4=this.groupHeadEntries.get(c3);c4||(c4=new c35.default,this.groupHeadEntries.set(c3,c4)),c4.target=c0,c4.line=c1,c4.head=c2}},{key:"setGroupMessageServerHead",value:function(c0,c1,c2){var c3=c0+"-"+c1,c4=this.groupHeadEntries.get(c3);c4||(c4=new c35.default,this.groupHeadEntries.set(c3,c4)),c4.target=c0,c4.line=c1,c4.serverHead=c2}},{key:"getGroupMessageHeads",value:function(){var c0=[];return this.groupHeadEntries.forEach((function(c1,c2){(0,c24.gt)(c1.serverHead,c1.head)&&c0.push(c1)})),c0}},{key:"setDomainInfo",value:function(c0){this.domainInfos.set(c0.domainId,c0)}},{key:"getDomainInfo",value:function(c0){var c1=this.domainInfos.get(c0);return c1||(c1=new c37.default(c0)),c1}},{key:"log",value:function(c0){if(!c28.default.DISABLE_LOG){for(var c1,c2=arguments.length,c3=Array(c2>1?c2-1:0),c4=1;c4{var c3=c5(c2(696)),c4=c5(c2(9708));function c5(c0){return c0&&c0.__esModule?c0:{default:c0}}var c6=c2(7328),c7=c6.Reader,c8=c6.Writer,c9=c6.util,c10=c6.roots.default||(c6.roots.default={});c10.AddFriendRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetUid=c0.string();break;case 2:c3.reason=c0.string();break;case 3:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetUid"))throw c9.ProtocolError("missing required 'targetUid'",{instance:c3});if(!c3.hasOwnProperty("reason"))throw c9.ProtocolError("missing required 'reason'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetUid)?c9.isString(c0.reason)?null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"reason: string expected":"targetUid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.AddFriendRequest)return c0;var c1=new c10.AddFriendRequest;return null!=c0.targetUid&&(c1.targetUid=String(c0.targetUid)),null!=c0.reason&&(c1.reason=String(c0.reason)),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.targetUid="",c2.reason="",c2.extra=""),null!=c0.targetUid&&c0.hasOwnProperty("targetUid")&&(c2.targetUid=c0.targetUid),null!=c0.reason&&c0.hasOwnProperty("reason")&&(c2.reason=c0.reason),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Conversation=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.type=c0.int32();break;case 2:c3.target=c0.string();break;case 3:c3.line=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("target"))throw c9.ProtocolError("missing required 'target'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.type)?c9.isString(c0.target)?c9.isInteger(c0.line)?null:"line: integer expected":"target: string expected":"type: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Conversation)return c0;var c1=new c10.Conversation;return null!=c0.type&&(c1.type=0|c0.type),null!=c0.target&&(c1.target=String(c0.target)),null!=c0.line&&(c1.line=0|c0.line),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.type=0,c2.target="",c2.line=0),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.target&&c0.hasOwnProperty("target")&&(c2.target=c0.target),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GroupInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetId=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.portrait=c0.string();break;case 4:c3.owner=c0.string();break;case 5:c3.type=c0.int32();break;case 6:c3.memberCount=c0.int32();break;case 7:c3.extra=c0.string();break;case 8:c3.updateDt=c0.int64();break;case 9:c3.memberUpdateDt=c0.int64();break;case 10:c3.mute=c0.int32();break;case 11:c3.joinType=c0.int32();break;case 12:c3.privateChat=c0.int32();break;case 13:c3.searchable=c0.int32();break;case 14:c3.maxMemberCount=c0.int32();break;case 15:c3.historyMessage=c0.int32();break;case 16:c3.superGroup=c0.int32();break;case 17:c3.deleted=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("name"))throw c9.ProtocolError("missing required 'name'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.targetId&&c0.hasOwnProperty("targetId")&&!c9.isString(c0.targetId)?"targetId: string expected":c9.isString(c0.name)?null!=c0.portrait&&c0.hasOwnProperty("portrait")&&!c9.isString(c0.portrait)?"portrait: string expected":null!=c0.owner&&c0.hasOwnProperty("owner")&&!c9.isString(c0.owner)?"owner: string expected":c9.isInteger(c0.type)?null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&!c9.isInteger(c0.memberCount)?"memberCount: integer expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.memberUpdateDt&&c0.hasOwnProperty("memberUpdateDt")&&!(c9.isInteger(c0.memberUpdateDt)||c0.memberUpdateDt&&c9.isInteger(c0.memberUpdateDt.low)&&c9.isInteger(c0.memberUpdateDt.high))?"memberUpdateDt: integer|Long expected":null!=c0.mute&&c0.hasOwnProperty("mute")&&!c9.isInteger(c0.mute)?"mute: integer expected":null!=c0.joinType&&c0.hasOwnProperty("joinType")&&!c9.isInteger(c0.joinType)?"joinType: integer expected":null!=c0.privateChat&&c0.hasOwnProperty("privateChat")&&!c9.isInteger(c0.privateChat)?"privateChat: integer expected":null!=c0.searchable&&c0.hasOwnProperty("searchable")&&!c9.isInteger(c0.searchable)?"searchable: integer expected":null!=c0.maxMemberCount&&c0.hasOwnProperty("maxMemberCount")&&!c9.isInteger(c0.maxMemberCount)?"maxMemberCount: integer expected":null!=c0.historyMessage&&c0.hasOwnProperty("historyMessage")&&!c9.isInteger(c0.historyMessage)?"historyMessage: integer expected":null!=c0.superGroup&&c0.hasOwnProperty("superGroup")&&!c9.isInteger(c0.superGroup)?"superGroup: integer expected":null!=c0.deleted&&c0.hasOwnProperty("deleted")&&!c9.isInteger(c0.deleted)?"deleted: integer expected":null:"type: integer expected":"name: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GroupInfo)return c0;var c1=new c10.GroupInfo;return null!=c0.targetId&&(c1.targetId=String(c0.targetId)),null!=c0.name&&(c1.name=String(c0.name)),null!=c0.portrait&&(c1.portrait=String(c0.portrait)),null!=c0.owner&&(c1.owner=String(c0.owner)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.memberCount&&(c1.memberCount=0|c0.memberCount),null!=c0.extra&&(c1.extra=String(c0.extra)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.memberUpdateDt&&(c9.Long?(c1.memberUpdateDt=c9.Long.fromValue(c0.memberUpdateDt)).unsigned=!1:"string"==typeof c0.memberUpdateDt?c1.memberUpdateDt=parseInt(c0.memberUpdateDt,10):"number"==typeof c0.memberUpdateDt?c1.memberUpdateDt=c0.memberUpdateDt:"object"===(0,c3.default)(c0.memberUpdateDt)&&(c1.memberUpdateDt=new c9.LongBits(c0.memberUpdateDt.low>>>0,c0.memberUpdateDt.high>>>0).toNumber())),null!=c0.mute&&(c1.mute=0|c0.mute),null!=c0.joinType&&(c1.joinType=0|c0.joinType),null!=c0.privateChat&&(c1.privateChat=0|c0.privateChat),null!=c0.searchable&&(c1.searchable=0|c0.searchable),null!=c0.maxMemberCount&&(c1.maxMemberCount=0|c0.maxMemberCount),null!=c0.historyMessage&&(c1.historyMessage=0|c0.historyMessage),null!=c0.superGroup&&(c1.superGroup=0|c0.superGroup),null!=c0.deleted&&(c1.deleted=0|c0.deleted),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.targetId="",c2.name="",c2.portrait="",c2.owner="",c2.type=0,c2.memberCount=0,c2.extra="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.memberUpdateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.memberUpdateDt=c1.longs===String?"0":0;c2.mute=0,c2.joinType=0,c2.privateChat=0,c2.searchable=0,c2.maxMemberCount=0,c2.historyMessage=0,c2.superGroup=0,c2.deleted=0}return null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),null!=c0.name&&c0.hasOwnProperty("name")&&(c2.name=c0.name),null!=c0.portrait&&c0.hasOwnProperty("portrait")&&(c2.portrait=c0.portrait),null!=c0.owner&&c0.hasOwnProperty("owner")&&(c2.owner=c0.owner),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&(c2.memberCount=c0.memberCount),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.memberUpdateDt&&c0.hasOwnProperty("memberUpdateDt")&&("number"==typeof c0.memberUpdateDt?c2.memberUpdateDt=c1.longs===String?String(c0.memberUpdateDt):c0.memberUpdateDt:c2.memberUpdateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.memberUpdateDt):c1.longs===Number?new c9.LongBits(c0.memberUpdateDt.low>>>0,c0.memberUpdateDt.high>>>0).toNumber():c0.memberUpdateDt),null!=c0.mute&&c0.hasOwnProperty("mute")&&(c2.mute=c0.mute),null!=c0.joinType&&c0.hasOwnProperty("joinType")&&(c2.joinType=c0.joinType),null!=c0.privateChat&&c0.hasOwnProperty("privateChat")&&(c2.privateChat=c0.privateChat),null!=c0.searchable&&c0.hasOwnProperty("searchable")&&(c2.searchable=c0.searchable),null!=c0.maxMemberCount&&c0.hasOwnProperty("maxMemberCount")&&(c2.maxMemberCount=c0.maxMemberCount),null!=c0.historyMessage&&c0.hasOwnProperty("historyMessage")&&(c2.historyMessage=c0.historyMessage),null!=c0.superGroup&&c0.hasOwnProperty("superGroup")&&(c2.superGroup=c0.superGroup),null!=c0.deleted&&c0.hasOwnProperty("deleted")&&(c2.deleted=c0.deleted),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GroupMember=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.memberId=c0.string();break;case 2:c3.alias=c0.string();break;case 3:c3.type=c0.int32();break;case 4:c3.updateDt=c0.int64();break;case 5:c3.createDt=c0.int64();break;case 6:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("memberId"))throw c9.ProtocolError("missing required 'memberId'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.memberId)?null!=c0.alias&&c0.hasOwnProperty("alias")&&!c9.isString(c0.alias)?"alias: string expected":c9.isInteger(c0.type)?null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.createDt&&c0.hasOwnProperty("createDt")&&!(c9.isInteger(c0.createDt)||c0.createDt&&c9.isInteger(c0.createDt.low)&&c9.isInteger(c0.createDt.high))?"createDt: integer|Long expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"type: integer expected":"memberId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GroupMember)return c0;var c1=new c10.GroupMember;return null!=c0.memberId&&(c1.memberId=String(c0.memberId)),null!=c0.alias&&(c1.alias=String(c0.alias)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.createDt&&(c9.Long?(c1.createDt=c9.Long.fromValue(c0.createDt)).unsigned=!1:"string"==typeof c0.createDt?c1.createDt=parseInt(c0.createDt,10):"number"==typeof c0.createDt?c1.createDt=c0.createDt:"object"===(0,c3.default)(c0.createDt)&&(c1.createDt=new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber())),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.memberId="",c2.alias="",c2.type=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.createDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.createDt=c1.longs===String?"0":0;c2.extra=""}return null!=c0.memberId&&c0.hasOwnProperty("memberId")&&(c2.memberId=c0.memberId),null!=c0.alias&&c0.hasOwnProperty("alias")&&(c2.alias=c0.alias),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.createDt&&c0.hasOwnProperty("createDt")&&("number"==typeof c0.createDt?c2.createDt=c1.longs===String?String(c0.createDt):c0.createDt:c2.createDt=c1.longs===String?c9.Long.prototype.toString.call(c0.createDt):c1.longs===Number?new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber():c0.createDt),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Group=function(){function c0(c0){if(this.members=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.groupInfo=c10.GroupInfo.decode(c0,c0.uint32());break;case 2:c3.members&&c3.members.length||(c3.members=[]),c3.members.push(c10.GroupMember.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("groupInfo"))throw c9.ProtocolError("missing required 'groupInfo'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(c2=c10.GroupInfo.verify(c0.groupInfo))return"groupInfo."+c2;if(null!=c0.members&&c0.hasOwnProperty("members")){if(!Array.isArray(c0.members))return"members: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.key=c0.string();break;case 4:c3.url=c0.string();break;case 5:c3.mediaId=c0.string();break;case 6:c3.articleId=c0.string();break;case 7:c3.appId=c0.string();break;case 8:c3.appPage=c0.string();break;case 9:c3.subMenu&&c3.subMenu.length||(c3.subMenu=[]),c3.subMenu.push(c10.ChannelMenu.decode(c0,c0.uint32()));break;case 10:c3.menuId=c0.string();break;case 11:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("name"))throw c9.ProtocolError("missing required 'name'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.type))return"type: string expected";if(!c9.isString(c0.name))return"name: string expected";if(null!=c0.key&&c0.hasOwnProperty("key")&&!c9.isString(c0.key))return"key: string expected";if(null!=c0.url&&c0.hasOwnProperty("url")&&!c9.isString(c0.url))return"url: string expected";if(null!=c0.mediaId&&c0.hasOwnProperty("mediaId")&&!c9.isString(c0.mediaId))return"mediaId: string expected";if(null!=c0.articleId&&c0.hasOwnProperty("articleId")&&!c9.isString(c0.articleId))return"articleId: string expected";if(null!=c0.appId&&c0.hasOwnProperty("appId")&&!c9.isString(c0.appId))return"appId: string expected";if(null!=c0.appPage&&c0.hasOwnProperty("appPage")&&!c9.isString(c0.appPage))return"appPage: string expected";if(null!=c0.subMenu&&c0.hasOwnProperty("subMenu")){if(!Array.isArray(c0.subMenu))return"subMenu: array expected";for(var c1=0;c1>>3==1)c3.menu&&c3.menu.length||(c3.menu=[]),c3.menu.push(c10.ChannelMenu.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.menu&&c0.hasOwnProperty("menu")){if(!Array.isArray(c0.menu))return"menu: array expected";for(var c1=0;c1>>3){case 1:c3.targetId=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.portrait=c0.string();break;case 4:c3.owner=c0.string();break;case 5:c3.status=c0.int32();break;case 6:c3.desc=c0.string();break;case 7:c3.extra=c0.string();break;case 8:c3.updateDt=c0.int64();break;case 9:c3.secret=c0.string();break;case 10:c3.callback=c0.string();break;case 11:c3.automatic=c0.int32();break;case 12:c3.menu&&c3.menu.length||(c3.menu=[]),c3.menu.push(c10.ChannelMenu.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("name"))throw c9.ProtocolError("missing required 'name'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.targetId&&c0.hasOwnProperty("targetId")&&!c9.isString(c0.targetId))return"targetId: string expected";if(!c9.isString(c0.name))return"name: string expected";if(null!=c0.portrait&&c0.hasOwnProperty("portrait")&&!c9.isString(c0.portrait))return"portrait: string expected";if(null!=c0.owner&&c0.hasOwnProperty("owner")&&!c9.isString(c0.owner))return"owner: string expected";if(null!=c0.status&&c0.hasOwnProperty("status")&&!c9.isInteger(c0.status))return"status: integer expected";if(null!=c0.desc&&c0.hasOwnProperty("desc")&&!c9.isString(c0.desc))return"desc: string expected";if(null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra))return"extra: string expected";if(null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high)))return"updateDt: integer|Long expected";if(null!=c0.secret&&c0.hasOwnProperty("secret")&&!c9.isString(c0.secret))return"secret: string expected";if(null!=c0.callback&&c0.hasOwnProperty("callback")&&!c9.isString(c0.callback))return"callback: string expected";if(null!=c0.automatic&&c0.hasOwnProperty("automatic")&&!c9.isInteger(c0.automatic))return"automatic: integer expected";if(null!=c0.menu&&c0.hasOwnProperty("menu")){if(!Array.isArray(c0.menu))return"menu: array expected";for(var c1=0;c1>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.secret&&(c1.secret=String(c0.secret)),null!=c0.callback&&(c1.callback=String(c0.callback)),null!=c0.automatic&&(c1.automatic=0|c0.automatic),c0.menu){if(!Array.isArray(c0.menu))throw TypeError(".ChannelInfo.menu: array expected");c1.menu=[];for(var c2=0;c2>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.secret&&c0.hasOwnProperty("secret")&&(c2.secret=c0.secret),null!=c0.callback&&c0.hasOwnProperty("callback")&&(c2.callback=c0.callback),null!=c0.automatic&&c0.hasOwnProperty("automatic")&&(c2.automatic=c0.automatic),c0.menu&&c0.menu.length){c2.menu=[];for(var c4=0;c4>>3){case 1:c3.channelId=c0.string();break;case 2:c3.type=c0.int32();break;case 3:c3.value=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("value"))throw c9.ProtocolError("missing required 'value'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isInteger(c0.type)?c9.isString(c0.value)?null:"value: string expected":"type: integer expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ModifyChannelInfo)return c0;var c1=new c10.ModifyChannelInfo;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.value&&(c1.value=String(c0.value)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.channelId="",c2.type=0,c2.value=""),null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.value&&c0.hasOwnProperty("value")&&(c2.value=c0.value),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.TransferChannel=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.channelId=c0.string();break;case 2:c3.newOwner=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("newOwner"))throw c9.ProtocolError("missing required 'newOwner'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isString(c0.newOwner)?null:"newOwner: string expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.TransferChannel)return c0;var c1=new c10.TransferChannel;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.newOwner&&(c1.newOwner=String(c0.newOwner)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.channelId="",c2.newOwner=""),null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.newOwner&&c0.hasOwnProperty("newOwner")&&(c2.newOwner=c0.newOwner),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullChannelInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.channelId=c0.string();break;case 2:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isInteger(c0.head)||c0.head&&c9.isInteger(c0.head.low)&&c9.isInteger(c0.head.high)?null:"head: integer|Long expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullChannelInfo)return c0;var c1=new c10.PullChannelInfo;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.channelId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;return null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullChannelListener=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.channelId=c0.string();break;case 2:c3.offset=c0.int32();break;case 3:c3.count=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("offset"))throw c9.ProtocolError("missing required 'offset'",{instance:c3});if(!c3.hasOwnProperty("count"))throw c9.ProtocolError("missing required 'count'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isInteger(c0.offset)?c9.isInteger(c0.count)?null:"count: integer expected":"offset: integer expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullChannelListener)return c0;var c1=new c10.PullChannelListener;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.offset&&(c1.offset=0|c0.offset),null!=c0.count&&(c1.count=0|c0.count),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.channelId="",c2.offset=0,c2.count=0),null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.offset&&c0.hasOwnProperty("offset")&&(c2.offset=c0.offset),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullChannelListenerResult=function(){function c0(c0){if(this.listener=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.totalCount=c0.int32();break;case 2:c3.offset=c0.int32();break;case 3:c3.listener&&c3.listener.length||(c3.listener=[]),c3.listener.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("totalCount"))throw c9.ProtocolError("missing required 'totalCount'",{instance:c3});if(!c3.hasOwnProperty("offset"))throw c9.ProtocolError("missing required 'offset'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isInteger(c0.totalCount))return"totalCount: integer expected";if(!c9.isInteger(c0.offset))return"offset: integer expected";if(null!=c0.listener&&c0.hasOwnProperty("listener")){if(!Array.isArray(c0.listener))return"listener: array expected";for(var c1=0;c1>>3){case 1:c3.channelId=c0.string();break;case 2:c3.listen=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("listen"))throw c9.ProtocolError("missing required 'listen'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isInteger(c0.listen)?null:"listen: integer expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ListenChannel)return c0;var c1=new c10.ListenChannel;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.listen&&(c1.listen=0|c0.listen),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.channelId="",c2.listen=0),null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.listen&&c0.hasOwnProperty("listen")&&(c2.listen=c0.listen),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.SearchChannelResult=function(){function c0(c0){if(this.channel=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.channel&&c3.channel.length||(c3.channel=[]),c3.channel.push(c10.ChannelInfo.decode(c0,c0.uint32()));break;case 2:c3.keyword=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("keyword"))throw c9.ProtocolError("missing required 'keyword'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.channel&&c0.hasOwnProperty("channel")){if(!Array.isArray(c0.channel))return"channel: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.int32();break;case 2:c3.searchableContent=c0.string();break;case 3:c3.pushContent=c0.string();break;case 4:c3.content=c0.string();break;case 5:c3.data=c0.bytes();break;case 6:c3.mediaType=c0.int32();break;case 7:c3.remoteMediaUrl=c0.string();break;case 8:c3.persistFlag=c0.int32();break;case 9:c3.expireDuration=c0.int32();break;case 10:c3.mentionedType=c0.int32();break;case 11:c3.mentionedTarget&&c3.mentionedTarget.length||(c3.mentionedTarget=[]),c3.mentionedTarget.push(c0.string());break;case 12:c3.extra=c0.string();break;case 13:c3.pushData=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isInteger(c0.type))return"type: integer expected";if(null!=c0.searchableContent&&c0.hasOwnProperty("searchableContent")&&!c9.isString(c0.searchableContent))return"searchableContent: string expected";if(null!=c0.pushContent&&c0.hasOwnProperty("pushContent")&&!c9.isString(c0.pushContent))return"pushContent: string expected";if(null!=c0.content&&c0.hasOwnProperty("content")&&!c9.isString(c0.content))return"content: string expected";if(null!=c0.data&&c0.hasOwnProperty("data")&&!(c0.data&&"number"==typeof c0.data.length||c9.isString(c0.data)))return"data: buffer expected";if(null!=c0.mediaType&&c0.hasOwnProperty("mediaType")&&!c9.isInteger(c0.mediaType))return"mediaType: integer expected";if(null!=c0.remoteMediaUrl&&c0.hasOwnProperty("remoteMediaUrl")&&!c9.isString(c0.remoteMediaUrl))return"remoteMediaUrl: string expected";if(null!=c0.persistFlag&&c0.hasOwnProperty("persistFlag")&&!c9.isInteger(c0.persistFlag))return"persistFlag: integer expected";if(null!=c0.expireDuration&&c0.hasOwnProperty("expireDuration")&&!c9.isInteger(c0.expireDuration))return"expireDuration: integer expected";if(null!=c0.mentionedType&&c0.hasOwnProperty("mentionedType")&&!c9.isInteger(c0.mentionedType))return"mentionedType: integer expected";if(null!=c0.mentionedTarget&&c0.hasOwnProperty("mentionedTarget")){if(!Array.isArray(c0.mentionedTarget))return"mentionedTarget: array expected";for(var c1=0;c1>>3){case 1:c3.groupId=c0.string();break;case 2:c3.addedMember&&c3.addedMember.length||(c3.addedMember=[]),c3.addedMember.push(c10.GroupMember.decode(c0,c0.uint32()));break;case 3:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.group=c10.Group.decode(c0,c0.uint32());break;case 2:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.fromUid=c0.string();break;case 2:c3.toUid=c0.string();break;case 3:c3.reason=c0.string();break;case 4:c3.status=c0.int32();break;case 5:c3.updateDt=c0.int64();break;case 6:c3.fromReadStatus=c0.bool();break;case 7:c3.toReadStatus=c0.bool();break;case 8:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("toUid"))throw c9.ProtocolError("missing required 'toUid'",{instance:c3});if(!c3.hasOwnProperty("reason"))throw c9.ProtocolError("missing required 'reason'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.fromUid&&c0.hasOwnProperty("fromUid")&&!c9.isString(c0.fromUid)?"fromUid: string expected":c9.isString(c0.toUid)?c9.isString(c0.reason)?null!=c0.status&&c0.hasOwnProperty("status")&&!c9.isInteger(c0.status)?"status: integer expected":null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.fromReadStatus&&c0.hasOwnProperty("fromReadStatus")&&"boolean"!=typeof c0.fromReadStatus?"fromReadStatus: boolean expected":null!=c0.toReadStatus&&c0.hasOwnProperty("toReadStatus")&&"boolean"!=typeof c0.toReadStatus?"toReadStatus: boolean expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"reason: string expected":"toUid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.FriendRequest)return c0;var c1=new c10.FriendRequest;return null!=c0.fromUid&&(c1.fromUid=String(c0.fromUid)),null!=c0.toUid&&(c1.toUid=String(c0.toUid)),null!=c0.reason&&(c1.reason=String(c0.reason)),null!=c0.status&&(c1.status=0|c0.status),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.fromReadStatus&&(c1.fromReadStatus=Boolean(c0.fromReadStatus)),null!=c0.toReadStatus&&(c1.toReadStatus=Boolean(c0.toReadStatus)),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.fromUid="",c2.toUid="",c2.reason="",c2.status=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;c2.fromReadStatus=!1,c2.toReadStatus=!1,c2.extra=""}return null!=c0.fromUid&&c0.hasOwnProperty("fromUid")&&(c2.fromUid=c0.fromUid),null!=c0.toUid&&c0.hasOwnProperty("toUid")&&(c2.toUid=c0.toUid),null!=c0.reason&&c0.hasOwnProperty("reason")&&(c2.reason=c0.reason),null!=c0.status&&c0.hasOwnProperty("status")&&(c2.status=c0.status),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.fromReadStatus&&c0.hasOwnProperty("fromReadStatus")&&(c2.fromReadStatus=c0.fromReadStatus),null!=c0.toReadStatus&&c0.hasOwnProperty("toReadStatus")&&(c2.toReadStatus=c0.toReadStatus),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GeneralResult=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.errorCode=c0.int32();else c0.skipType(7&c4)}if(!c3.hasOwnProperty("errorCode"))throw c9.ProtocolError("missing required 'errorCode'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.errorCode)?null:"errorCode: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GeneralResult)return c0;var c1=new c10.GeneralResult;return null!=c0.errorCode&&(c1.errorCode=0|c0.errorCode),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.errorCode=0),null!=c0.errorCode&&c0.hasOwnProperty("errorCode")&&(c2.errorCode=c0.errorCode),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetUploadTokenRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.mediaType=c0.int32();break;case 2:c3.mediaPath=c0.string();break;case 3:c3.contentType=c0.string();break;case 4:c3.messageId=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("mediaType"))throw c9.ProtocolError("missing required 'mediaType'",{instance:c3});if(!c3.hasOwnProperty("mediaPath"))throw c9.ProtocolError("missing required 'mediaPath'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.mediaType)?c9.isString(c0.mediaPath)?null!=c0.contentType&&c0.hasOwnProperty("contentType")&&!c9.isString(c0.contentType)?"contentType: string expected":null!=c0.messageId&&c0.hasOwnProperty("messageId")&&!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high))?"messageId: integer|Long expected":null:"mediaPath: string expected":"mediaType: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetUploadTokenRequest)return c0;var c1=new c10.GetUploadTokenRequest;return null!=c0.mediaType&&(c1.mediaType=0|c0.mediaType),null!=c0.mediaPath&&(c1.mediaPath=String(c0.mediaPath)),null!=c0.contentType&&(c1.contentType=String(c0.contentType)),null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.mediaType=0,c2.mediaPath="",c2.contentType="",c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;return null!=c0.mediaType&&c0.hasOwnProperty("mediaType")&&(c2.mediaType=c0.mediaType),null!=c0.mediaPath&&c0.hasOwnProperty("mediaPath")&&(c2.mediaPath=c0.mediaPath),null!=c0.contentType&&c0.hasOwnProperty("contentType")&&(c2.contentType=c0.contentType),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetUploadTokenResult=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.domain=c0.string();break;case 2:c3.token=c0.string();break;case 3:c3.server=c0.string();break;case 4:c3.port=c0.int32();break;case 5:c3.type=c0.int32();break;case 6:c3.date=c0.string();break;case 7:c3.path=c0.string();break;case 8:c3.backupServer=c0.string();break;case 9:c3.backupPort=c0.int32();break;case 10:c3.sslPort=c0.int32();break;case 11:c3.backupSslPort=c0.int32();break;case 12:c3.sslToken=c0.string();break;case 13:c3.backupToken=c0.string();break;case 14:c3.backupSslToken=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("domain"))throw c9.ProtocolError("missing required 'domain'",{instance:c3});if(!c3.hasOwnProperty("token"))throw c9.ProtocolError("missing required 'token'",{instance:c3});if(!c3.hasOwnProperty("server"))throw c9.ProtocolError("missing required 'server'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.domain)?c9.isString(c0.token)?c9.isString(c0.server)?null!=c0.port&&c0.hasOwnProperty("port")&&!c9.isInteger(c0.port)?"port: integer expected":null!=c0.type&&c0.hasOwnProperty("type")&&!c9.isInteger(c0.type)?"type: integer expected":null!=c0.date&&c0.hasOwnProperty("date")&&!c9.isString(c0.date)?"date: string expected":null!=c0.path&&c0.hasOwnProperty("path")&&!c9.isString(c0.path)?"path: string expected":null!=c0.backupServer&&c0.hasOwnProperty("backupServer")&&!c9.isString(c0.backupServer)?"backupServer: string expected":null!=c0.backupPort&&c0.hasOwnProperty("backupPort")&&!c9.isInteger(c0.backupPort)?"backupPort: integer expected":null!=c0.sslPort&&c0.hasOwnProperty("sslPort")&&!c9.isInteger(c0.sslPort)?"sslPort: integer expected":null!=c0.backupSslPort&&c0.hasOwnProperty("backupSslPort")&&!c9.isInteger(c0.backupSslPort)?"backupSslPort: integer expected":null!=c0.sslToken&&c0.hasOwnProperty("sslToken")&&!c9.isString(c0.sslToken)?"sslToken: string expected":null!=c0.backupToken&&c0.hasOwnProperty("backupToken")&&!c9.isString(c0.backupToken)?"backupToken: string expected":null!=c0.backupSslToken&&c0.hasOwnProperty("backupSslToken")&&!c9.isString(c0.backupSslToken)?"backupSslToken: string expected":null:"server: string expected":"token: string expected":"domain: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetUploadTokenResult)return c0;var c1=new c10.GetUploadTokenResult;return null!=c0.domain&&(c1.domain=String(c0.domain)),null!=c0.token&&(c1.token=String(c0.token)),null!=c0.server&&(c1.server=String(c0.server)),null!=c0.port&&(c1.port=0|c0.port),null!=c0.type&&(c1.type=0|c0.type),null!=c0.date&&(c1.date=String(c0.date)),null!=c0.path&&(c1.path=String(c0.path)),null!=c0.backupServer&&(c1.backupServer=String(c0.backupServer)),null!=c0.backupPort&&(c1.backupPort=0|c0.backupPort),null!=c0.sslPort&&(c1.sslPort=0|c0.sslPort),null!=c0.backupSslPort&&(c1.backupSslPort=0|c0.backupSslPort),null!=c0.sslToken&&(c1.sslToken=String(c0.sslToken)),null!=c0.backupToken&&(c1.backupToken=String(c0.backupToken)),null!=c0.backupSslToken&&(c1.backupSslToken=String(c0.backupSslToken)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.domain="",c2.token="",c2.server="",c2.port=0,c2.type=0,c2.date="",c2.path="",c2.backupServer="",c2.backupPort=0,c2.sslPort=0,c2.backupSslPort=0,c2.sslToken="",c2.backupToken="",c2.backupSslToken=""),null!=c0.domain&&c0.hasOwnProperty("domain")&&(c2.domain=c0.domain),null!=c0.token&&c0.hasOwnProperty("token")&&(c2.token=c0.token),null!=c0.server&&c0.hasOwnProperty("server")&&(c2.server=c0.server),null!=c0.port&&c0.hasOwnProperty("port")&&(c2.port=c0.port),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.date&&c0.hasOwnProperty("date")&&(c2.date=c0.date),null!=c0.path&&c0.hasOwnProperty("path")&&(c2.path=c0.path),null!=c0.backupServer&&c0.hasOwnProperty("backupServer")&&(c2.backupServer=c0.backupServer),null!=c0.backupPort&&c0.hasOwnProperty("backupPort")&&(c2.backupPort=c0.backupPort),null!=c0.sslPort&&c0.hasOwnProperty("sslPort")&&(c2.sslPort=c0.sslPort),null!=c0.backupSslPort&&c0.hasOwnProperty("backupSslPort")&&(c2.backupSslPort=c0.backupSslPort),null!=c0.sslToken&&c0.hasOwnProperty("sslToken")&&(c2.sslToken=c0.sslToken),null!=c0.backupToken&&c0.hasOwnProperty("backupToken")&&(c2.backupToken=c0.backupToken),null!=c0.backupSslToken&&c0.hasOwnProperty("backupSslToken")&&(c2.backupSslToken=c0.backupSslToken),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetPresignedUrlResult=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.presignedUrl=c0.string();break;case 2:c3.mediaUrl=c0.string();break;case 3:c3.backupPresignedUrl=c0.string();break;case 4:c3.type=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("presignedUrl"))throw c9.ProtocolError("missing required 'presignedUrl'",{instance:c3});if(!c3.hasOwnProperty("mediaUrl"))throw c9.ProtocolError("missing required 'mediaUrl'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.presignedUrl)?c9.isString(c0.mediaUrl)?null!=c0.backupPresignedUrl&&c0.hasOwnProperty("backupPresignedUrl")&&!c9.isString(c0.backupPresignedUrl)?"backupPresignedUrl: string expected":null!=c0.type&&c0.hasOwnProperty("type")&&!c9.isInteger(c0.type)?"type: integer expected":null:"mediaUrl: string expected":"presignedUrl: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetPresignedUrlResult)return c0;var c1=new c10.GetPresignedUrlResult;return null!=c0.presignedUrl&&(c1.presignedUrl=String(c0.presignedUrl)),null!=c0.mediaUrl&&(c1.mediaUrl=String(c0.mediaUrl)),null!=c0.backupPresignedUrl&&(c1.backupPresignedUrl=String(c0.backupPresignedUrl)),null!=c0.type&&(c1.type=0|c0.type),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.presignedUrl="",c2.mediaUrl="",c2.backupPresignedUrl="",c2.type=0),null!=c0.presignedUrl&&c0.hasOwnProperty("presignedUrl")&&(c2.presignedUrl=c0.presignedUrl),null!=c0.mediaUrl&&c0.hasOwnProperty("mediaUrl")&&(c2.mediaUrl=c0.mediaUrl),null!=c0.backupPresignedUrl&&c0.hasOwnProperty("backupPresignedUrl")&&(c2.backupPresignedUrl=c0.backupPresignedUrl),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetDownloadSignedUrlResult=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.url=c0.string();break;case 2:c3.backupUrl=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("url"))throw c9.ProtocolError("missing required 'url'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.url)?null!=c0.backupUrl&&c0.hasOwnProperty("backupUrl")&&!c9.isString(c0.backupUrl)?"backupUrl: string expected":null:"url: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetDownloadSignedUrlResult)return c0;var c1=new c10.GetDownloadSignedUrlResult;return null!=c0.url&&(c1.url=String(c0.url)),null!=c0.backupUrl&&(c1.backupUrl=String(c0.backupUrl)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.url="",c2.backupUrl=""),null!=c0.url&&c0.hasOwnProperty("url")&&(c2.url=c0.url),null!=c0.backupUrl&&c0.hasOwnProperty("backupUrl")&&(c2.backupUrl=c0.backupUrl),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.HandleFriendRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetUid=c0.string();break;case 2:c3.status=c0.int32();break;case 3:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetUid"))throw c9.ProtocolError("missing required 'targetUid'",{instance:c3});if(!c3.hasOwnProperty("status"))throw c9.ProtocolError("missing required 'status'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetUid)?c9.isInteger(c0.status)?null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"status: integer expected":"targetUid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.HandleFriendRequest)return c0;var c1=new c10.HandleFriendRequest;return null!=c0.targetUid&&(c1.targetUid=String(c0.targetUid)),null!=c0.status&&(c1.status=0|c0.status),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.targetUid="",c2.status=0,c2.extra=""),null!=c0.targetUid&&c0.hasOwnProperty("targetUid")&&(c2.targetUid=c0.targetUid),null!=c0.status&&c0.hasOwnProperty("status")&&(c2.status=c0.status),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.IDBuf=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.id=c0.string();else c0.skipType(7&c4)}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.id)?null:"id: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.IDBuf)return c0;var c1=new c10.IDBuf;return null!=c0.id&&(c1.id=String(c0.id)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.id=""),null!=c0.id&&c0.hasOwnProperty("id")&&(c2.id=c0.id),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.IDListBuf=function(){function c0(c0){if(this.id=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.id&&c3.id.length||(c3.id=[]),c3.id.push(c0.string());else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.id&&c0.hasOwnProperty("id")){if(!Array.isArray(c0.id))return"id: array expected";for(var c1=0;c1>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.fromUser=c0.string();break;case 3:c3.content=c10.MessageContent.decode(c0,c0.uint32());break;case 4:c3.messageId=c0.int64();break;case 5:c3.serverTimestamp=c0.int64();break;case 6:c3.toUser=c0.string();break;case 7:c3.to&&c3.to.length||(c3.to=[]),c3.to.push(c0.string());break;case 8:c3.fromId=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("conversation"))throw c9.ProtocolError("missing required 'conversation'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("content"))throw c9.ProtocolError("missing required 'content'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";var c1;if(c1=c10.Conversation.verify(c0.conversation))return"conversation."+c1;if(!c9.isString(c0.fromUser))return"fromUser: string expected";if(c1=c10.MessageContent.verify(c0.content))return"content."+c1;if(null!=c0.messageId&&c0.hasOwnProperty("messageId")&&!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";if(null!=c0.serverTimestamp&&c0.hasOwnProperty("serverTimestamp")&&!(c9.isInteger(c0.serverTimestamp)||c0.serverTimestamp&&c9.isInteger(c0.serverTimestamp.low)&&c9.isInteger(c0.serverTimestamp.high)))return"serverTimestamp: integer|Long expected";if(null!=c0.toUser&&c0.hasOwnProperty("toUser")&&!c9.isString(c0.toUser))return"toUser: string expected";if(null!=c0.to&&c0.hasOwnProperty("to")){if(!Array.isArray(c0.to))return"to: array expected";for(var c2=0;c2>>0,c0.messageId.high>>>0).toNumber())),null!=c0.serverTimestamp&&(c9.Long?(c1.serverTimestamp=c9.Long.fromValue(c0.serverTimestamp)).unsigned=!1:"string"==typeof c0.serverTimestamp?c1.serverTimestamp=parseInt(c0.serverTimestamp,10):"number"==typeof c0.serverTimestamp?c1.serverTimestamp=c0.serverTimestamp:"object"===(0,c3.default)(c0.serverTimestamp)&&(c1.serverTimestamp=new c9.LongBits(c0.serverTimestamp.low>>>0,c0.serverTimestamp.high>>>0).toNumber())),null!=c0.toUser&&(c1.toUser=String(c0.toUser)),c0.to){if(!Array.isArray(c0.to))throw TypeError(".Message.to: array expected");c1.to=[];for(var c2=0;c2>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.serverTimestamp&&c0.hasOwnProperty("serverTimestamp")&&("number"==typeof c0.serverTimestamp?c2.serverTimestamp=c1.longs===String?String(c0.serverTimestamp):c0.serverTimestamp:c2.serverTimestamp=c1.longs===String?c9.Long.prototype.toString.call(c0.serverTimestamp):c1.longs===Number?new c9.LongBits(c0.serverTimestamp.low>>>0,c0.serverTimestamp.high>>>0).toNumber():c0.serverTimestamp),null!=c0.toUser&&c0.hasOwnProperty("toUser")&&(c2.toUser=c0.toUser),c0.to&&c0.to.length){c2.to=[];for(var c4=0;c4>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.fromUser=c0.string();break;case 3:c3.readTime=c0.int64();break;case 4:c3.to&&c3.to.length||(c3.to=[]),c3.to.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("conversation"))throw c9.ProtocolError("missing required 'conversation'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("readTime"))throw c9.ProtocolError("missing required 'readTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";var c1=c10.Conversation.verify(c0.conversation);if(c1)return"conversation."+c1;if(!c9.isString(c0.fromUser))return"fromUser: string expected";if(!(c9.isInteger(c0.readTime)||c0.readTime&&c9.isInteger(c0.readTime.low)&&c9.isInteger(c0.readTime.high)))return"readTime: integer|Long expected";if(null!=c0.to&&c0.hasOwnProperty("to")){if(!Array.isArray(c0.to))return"to: array expected";for(var c2=0;c2>>0,c0.readTime.high>>>0).toNumber())),c0.to){if(!Array.isArray(c0.to))throw TypeError(".ConvReadRequest.to: array expected");c1.to=[];for(var c2=0;c2>>0,c0.readTime.high>>>0).toNumber():c0.readTime),c0.to&&c0.to.length){c2.to=[];for(var c4=0;c4>>3){case 1:c3.id=c0.int32();break;case 2:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 3:c3.fromUser=c0.string();break;case 4:c3.readTime=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("conversation"))throw c9.ProtocolError("missing required 'conversation'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("readTime"))throw c9.ProtocolError("missing required 'readTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.id&&c0.hasOwnProperty("id")&&!c9.isInteger(c0.id))return"id: integer expected";var c1=c10.Conversation.verify(c0.conversation);return c1?"conversation."+c1:c9.isString(c0.fromUser)?c9.isInteger(c0.readTime)||c0.readTime&&c9.isInteger(c0.readTime.low)&&c9.isInteger(c0.readTime.high)?null:"readTime: integer|Long expected":"fromUser: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConvRead)return c0;var c1=new c10.ConvRead;if(null!=c0.id&&(c1.id=0|c0.id),null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".ConvRead.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),null!=c0.readTime&&(c9.Long?(c1.readTime=c9.Long.fromValue(c0.readTime)).unsigned=!1:"string"==typeof c0.readTime?c1.readTime=parseInt(c0.readTime,10):"number"==typeof c0.readTime?c1.readTime=c0.readTime:"object"===(0,c3.default)(c0.readTime)&&(c1.readTime=new c9.LongBits(c0.readTime.low>>>0,c0.readTime.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.id=0,c2.conversation=null,c2.fromUser="",c9.Long){var c3=new c9.Long(0,0,!1);c2.readTime=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.readTime=c1.longs===String?"0":0;return null!=c0.id&&c0.hasOwnProperty("id")&&(c2.id=c0.id),null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),null!=c0.readTime&&c0.hasOwnProperty("readTime")&&("number"==typeof c0.readTime?c2.readTime=c1.longs===String?String(c0.readTime):c0.readTime:c2.readTime=c1.longs===String?c9.Long.prototype.toString.call(c0.readTime):c1.longs===Number?new c9.LongBits(c0.readTime.low>>>0,c0.readTime.high>>>0).toNumber():c0.readTime),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Delivery=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.fromUser=c0.string();break;case 2:c3.receiveTime=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("receiveTime"))throw c9.ProtocolError("missing required 'receiveTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.fromUser)?c9.isInteger(c0.receiveTime)||c0.receiveTime&&c9.isInteger(c0.receiveTime.low)&&c9.isInteger(c0.receiveTime.high)?null:"receiveTime: integer|Long expected":"fromUser: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Delivery)return c0;var c1=new c10.Delivery;return null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),null!=c0.receiveTime&&(c9.Long?(c1.receiveTime=c9.Long.fromValue(c0.receiveTime)).unsigned=!1:"string"==typeof c0.receiveTime?c1.receiveTime=parseInt(c0.receiveTime,10):"number"==typeof c0.receiveTime?c1.receiveTime=c0.receiveTime:"object"===(0,c3.default)(c0.receiveTime)&&(c1.receiveTime=new c9.LongBits(c0.receiveTime.low>>>0,c0.receiveTime.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.fromUser="",c9.Long){var c3=new c9.Long(0,0,!1);c2.receiveTime=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.receiveTime=c1.longs===String?"0":0;return null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),null!=c0.receiveTime&&c0.hasOwnProperty("receiveTime")&&("number"==typeof c0.receiveTime?c2.receiveTime=c1.longs===String?String(c0.receiveTime):c0.receiveTime:c2.receiveTime=c1.longs===String?c9.Long.prototype.toString.call(c0.receiveTime):c1.longs===Number?new c9.LongBits(c0.receiveTime.low>>>0,c0.receiveTime.high>>>0).toNumber():c0.receiveTime),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.NotifyDelivery=function(){function c0(c0){if(this.target=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.fromUser=c0.string();break;case 2:c3.receiveTime=c0.int64();break;case 3:c3.target&&c3.target.length||(c3.target=[]),c3.target.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("receiveTime"))throw c9.ProtocolError("missing required 'receiveTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.fromUser))return"fromUser: string expected";if(!(c9.isInteger(c0.receiveTime)||c0.receiveTime&&c9.isInteger(c0.receiveTime.low)&&c9.isInteger(c0.receiveTime.high)))return"receiveTime: integer|Long expected";if(null!=c0.target&&c0.hasOwnProperty("target")){if(!Array.isArray(c0.target))return"target: array expected";for(var c1=0;c1>>0,c0.receiveTime.high>>>0).toNumber())),c0.target){if(!Array.isArray(c0.target))throw TypeError(".NotifyDelivery.target: array expected");c1.target=[];for(var c2=0;c2>>0,c0.receiveTime.high>>>0).toNumber():c0.receiveTime),c0.target&&c0.target.length){c2.target=[];for(var c4=0;c4>>3){case 1:c3.uid=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.displayName=c0.string();break;case 4:c3.portrait=c0.string();break;case 5:c3.mobile=c0.string();break;case 6:c3.email=c0.string();break;case 7:c3.address=c0.string();break;case 8:c3.company=c0.string();break;case 9:c3.extra=c0.string();break;case 10:c3.updateDt=c0.int64();break;case 11:c3.gender=c0.int32();break;case 12:c3.social=c0.string();break;case 13:c3.type=c0.int32();break;case 14:c3.deleted=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?null!=c0.name&&c0.hasOwnProperty("name")&&!c9.isString(c0.name)?"name: string expected":null!=c0.displayName&&c0.hasOwnProperty("displayName")&&!c9.isString(c0.displayName)?"displayName: string expected":null!=c0.portrait&&c0.hasOwnProperty("portrait")&&!c9.isString(c0.portrait)?"portrait: string expected":null!=c0.mobile&&c0.hasOwnProperty("mobile")&&!c9.isString(c0.mobile)?"mobile: string expected":null!=c0.email&&c0.hasOwnProperty("email")&&!c9.isString(c0.email)?"email: string expected":null!=c0.address&&c0.hasOwnProperty("address")&&!c9.isString(c0.address)?"address: string expected":null!=c0.company&&c0.hasOwnProperty("company")&&!c9.isString(c0.company)?"company: string expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.gender&&c0.hasOwnProperty("gender")&&!c9.isInteger(c0.gender)?"gender: integer expected":null!=c0.social&&c0.hasOwnProperty("social")&&!c9.isString(c0.social)?"social: string expected":null!=c0.type&&c0.hasOwnProperty("type")&&!c9.isInteger(c0.type)?"type: integer expected":null!=c0.deleted&&c0.hasOwnProperty("deleted")&&!c9.isInteger(c0.deleted)?"deleted: integer expected":null:"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.User)return c0;var c1=new c10.User;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.name&&(c1.name=String(c0.name)),null!=c0.displayName&&(c1.displayName=String(c0.displayName)),null!=c0.portrait&&(c1.portrait=String(c0.portrait)),null!=c0.mobile&&(c1.mobile=String(c0.mobile)),null!=c0.email&&(c1.email=String(c0.email)),null!=c0.address&&(c1.address=String(c0.address)),null!=c0.company&&(c1.company=String(c0.company)),null!=c0.extra&&(c1.extra=String(c0.extra)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.gender&&(c1.gender=0|c0.gender),null!=c0.social&&(c1.social=String(c0.social)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.deleted&&(c1.deleted=0|c0.deleted),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.uid="",c2.name="",c2.displayName="",c2.portrait="",c2.mobile="",c2.email="",c2.address="",c2.company="",c2.extra="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;c2.gender=0,c2.social="",c2.type=0,c2.deleted=0}return null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.name&&c0.hasOwnProperty("name")&&(c2.name=c0.name),null!=c0.displayName&&c0.hasOwnProperty("displayName")&&(c2.displayName=c0.displayName),null!=c0.portrait&&c0.hasOwnProperty("portrait")&&(c2.portrait=c0.portrait),null!=c0.mobile&&c0.hasOwnProperty("mobile")&&(c2.mobile=c0.mobile),null!=c0.email&&c0.hasOwnProperty("email")&&(c2.email=c0.email),null!=c0.address&&c0.hasOwnProperty("address")&&(c2.address=c0.address),null!=c0.company&&c0.hasOwnProperty("company")&&(c2.company=c0.company),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.gender&&c0.hasOwnProperty("gender")&&(c2.gender=c0.gender),null!=c0.social&&c0.hasOwnProperty("social")&&(c2.social=c0.social),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.deleted&&c0.hasOwnProperty("deleted")&&(c2.deleted=c0.deleted),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Domain=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.domainId=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.desc=c0.string();break;case 4:c3.email=c0.string();break;case 5:c3.tel=c0.string();break;case 6:c3.address=c0.string();break;case 7:c3.extra=c0.string();break;case 8:c3.dt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("domainId"))throw c9.ProtocolError("missing required 'domainId'",{instance:c3});if(!c3.hasOwnProperty("name"))throw c9.ProtocolError("missing required 'name'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.domainId)?c9.isString(c0.name)?null!=c0.desc&&c0.hasOwnProperty("desc")&&!c9.isString(c0.desc)?"desc: string expected":null!=c0.email&&c0.hasOwnProperty("email")&&!c9.isString(c0.email)?"email: string expected":null!=c0.tel&&c0.hasOwnProperty("tel")&&!c9.isString(c0.tel)?"tel: string expected":null!=c0.address&&c0.hasOwnProperty("address")&&!c9.isString(c0.address)?"address: string expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null!=c0.dt&&c0.hasOwnProperty("dt")&&!(c9.isInteger(c0.dt)||c0.dt&&c9.isInteger(c0.dt.low)&&c9.isInteger(c0.dt.high))?"dt: integer|Long expected":null:"name: string expected":"domainId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Domain)return c0;var c1=new c10.Domain;return null!=c0.domainId&&(c1.domainId=String(c0.domainId)),null!=c0.name&&(c1.name=String(c0.name)),null!=c0.desc&&(c1.desc=String(c0.desc)),null!=c0.email&&(c1.email=String(c0.email)),null!=c0.tel&&(c1.tel=String(c0.tel)),null!=c0.address&&(c1.address=String(c0.address)),null!=c0.extra&&(c1.extra=String(c0.extra)),null!=c0.dt&&(c9.Long?(c1.dt=c9.Long.fromValue(c0.dt)).unsigned=!1:"string"==typeof c0.dt?c1.dt=parseInt(c0.dt,10):"number"==typeof c0.dt?c1.dt=c0.dt:"object"===(0,c3.default)(c0.dt)&&(c1.dt=new c9.LongBits(c0.dt.low>>>0,c0.dt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.domainId="",c2.name="",c2.desc="",c2.email="",c2.tel="",c2.address="",c2.extra="",c9.Long){var c3=new c9.Long(0,0,!1);c2.dt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.dt=c1.longs===String?"0":0;return null!=c0.domainId&&c0.hasOwnProperty("domainId")&&(c2.domainId=c0.domainId),null!=c0.name&&c0.hasOwnProperty("name")&&(c2.name=c0.name),null!=c0.desc&&c0.hasOwnProperty("desc")&&(c2.desc=c0.desc),null!=c0.email&&c0.hasOwnProperty("email")&&(c2.email=c0.email),null!=c0.tel&&c0.hasOwnProperty("tel")&&(c2.tel=c0.tel),null!=c0.address&&c0.hasOwnProperty("address")&&(c2.address=c0.address),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),null!=c0.dt&&c0.hasOwnProperty("dt")&&("number"==typeof c0.dt?c2.dt=c1.longs===String?String(c0.dt):c0.dt:c2.dt=c1.longs===String?c9.Long.prototype.toString.call(c0.dt):c1.longs===Number?new c9.LongBits(c0.dt.low>>>0,c0.dt.high>>>0).toNumber():c0.dt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullDomainRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.domainId=c0.string();break;case 2:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("domainId"))throw c9.ProtocolError("missing required 'domainId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.domainId)?null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null:"domainId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullDomainRequest)return c0;var c1=new c10.PullDomainRequest;return null!=c0.domainId&&(c1.domainId=String(c0.domainId)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.domainId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;return null!=c0.domainId&&c0.hasOwnProperty("domainId")&&(c2.domainId=c0.domainId),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Domains=function(){function c0(c0){if(this.domain=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.domain&&c3.domain.length||(c3.domain=[]),c3.domain.push(c10.Domain.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.domain&&c0.hasOwnProperty("domain")){if(!Array.isArray(c0.domain))return"domain: array expected";for(var c1=0;c1>>3){case 1:c3.uid=c0.string();break;case 2:c3.state=c0.int32();break;case 3:c3.owner=c0.string();break;case 4:c3.secret=c0.string();break;case 5:c3.callback=c0.string();break;case 6:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?c9.isInteger(c0.state)?null!=c0.owner&&c0.hasOwnProperty("owner")&&!c9.isString(c0.owner)?"owner: string expected":null!=c0.secret&&c0.hasOwnProperty("secret")&&!c9.isString(c0.secret)?"secret: string expected":null!=c0.callback&&c0.hasOwnProperty("callback")&&!c9.isString(c0.callback)?"callback: string expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"state: integer expected":"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Robot)return c0;var c1=new c10.Robot;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.state&&(c1.state=0|c0.state),null!=c0.owner&&(c1.owner=String(c0.owner)),null!=c0.secret&&(c1.secret=String(c0.secret)),null!=c0.callback&&(c1.callback=String(c0.callback)),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.uid="",c2.state=0,c2.owner="",c2.secret="",c2.callback="",c2.extra=""),null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.owner&&c0.hasOwnProperty("owner")&&(c2.owner=c0.owner),null!=c0.secret&&c0.hasOwnProperty("secret")&&(c2.secret=c0.secret),null!=c0.callback&&c0.hasOwnProperty("callback")&&(c2.callback=c0.callback),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetRobotsResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.Robot.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.uid=c0.string();break;case 2:c3.state=c0.int32();break;case 3:c3.token=c0.string();break;case 4:c3.owner&&c3.owner.length||(c3.owner=[]),c3.owner.push(c0.string());break;case 5:c3.extra=c0.string();break;case 6:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});if(!c3.hasOwnProperty("token"))throw c9.ProtocolError("missing required 'token'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.uid))return"uid: string expected";if(!c9.isInteger(c0.state))return"state: integer expected";if(!c9.isString(c0.token))return"token: string expected";if(null!=c0.owner&&c0.hasOwnProperty("owner")){if(!Array.isArray(c0.owner))return"owner: array expected";for(var c1=0;c1>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.owner=[]),c1.defaults)if(c2.uid="",c2.state=0,c2.token="",c2.extra="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;if(null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.token&&c0.hasOwnProperty("token")&&(c2.token=c0.token),c0.owner&&c0.owner.length){c2.owner=[];for(var c4=0;c4>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetDeviceResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.Device.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.platform=c0.int32();break;case 2:c3.appName=c0.string();break;case 3:c3.deviceToken=c0.string();break;case 4:c3.pushType=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("platform"))throw c9.ProtocolError("missing required 'platform'",{instance:c3});if(!c3.hasOwnProperty("appName"))throw c9.ProtocolError("missing required 'appName'",{instance:c3});if(!c3.hasOwnProperty("deviceToken"))throw c9.ProtocolError("missing required 'deviceToken'",{instance:c3});if(!c3.hasOwnProperty("pushType"))throw c9.ProtocolError("missing required 'pushType'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.platform)?c9.isString(c0.appName)?c9.isString(c0.deviceToken)?c9.isInteger(c0.pushType)?null:"pushType: integer expected":"deviceToken: string expected":"appName: string expected":"platform: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UploadDeviceTokenRequest)return c0;var c1=new c10.UploadDeviceTokenRequest;return null!=c0.platform&&(c1.platform=0|c0.platform),null!=c0.appName&&(c1.appName=String(c0.appName)),null!=c0.deviceToken&&(c1.deviceToken=String(c0.deviceToken)),null!=c0.pushType&&(c1.pushType=0|c0.pushType),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.platform=0,c2.appName="",c2.deviceToken="",c2.pushType=0),null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),null!=c0.appName&&c0.hasOwnProperty("appName")&&(c2.appName=c0.appName),null!=c0.deviceToken&&c0.hasOwnProperty("deviceToken")&&(c2.deviceToken=c0.deviceToken),null!=c0.pushType&&c0.hasOwnProperty("pushType")&&(c2.pushType=c0.pushType),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ModifyGroupInfoRequest=function(){function c0(c0){if(this.toLine=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.groupId=c0.string();break;case 2:c3.type=c0.int32();break;case 3:c3.value=c0.string();break;case 4:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:c3.type=c0.int32();break;case 3:c3.userId&&c3.userId.length||(c3.userId=[]),c3.userId.push(c0.string());break;case 4:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.type=c0.int32();break;case 2:c3.value=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("value"))throw c9.ProtocolError("missing required 'value'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.type)?c9.isString(c0.value)?null:"value: string expected":"type: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.InfoEntry)return c0;var c1=new c10.InfoEntry;return null!=c0.type&&(c1.type=0|c0.type),null!=c0.value&&(c1.value=String(c0.value)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.type=0,c2.value=""),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.value&&c0.hasOwnProperty("value")&&(c2.value=c0.value),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ModifyMyInfoRequest=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.InfoEntry.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.int32();break;case 2:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.type)?c9.isInteger(c0.head)||c0.head&&c9.isInteger(c0.head.low)&&c9.isInteger(c0.head.high)?null:"head: integer|Long expected":"type: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.NotifyMessage)return c0;var c1=new c10.NotifyMessage;return null!=c0.type&&(c1.type=0|c0.type),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.type=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;return null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.NotifyGroupMessage=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.head=c0.int64();break;case 2:c3.target=c0.string();break;case 3:c3.line=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});if(!c3.hasOwnProperty("target"))throw c9.ProtocolError("missing required 'target'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.head)||c0.head&&c9.isInteger(c0.head.low)&&c9.isInteger(c0.head.high)?c9.isString(c0.target)?c9.isInteger(c0.line)?null:"line: integer expected":"target: string expected":"head: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.NotifyGroupMessage)return c0;var c1=new c10.NotifyGroupMessage;return null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),null!=c0.target&&(c1.target=String(c0.target)),null!=c0.line&&(c1.line=0|c0.line),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;c2.target="",c2.line=0}return null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),null!=c0.target&&c0.hasOwnProperty("target")&&(c2.target=c0.target),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullMessageRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.id=c0.int64();break;case 2:c3.type=c0.int32();break;case 3:c3.delay=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?c9.isInteger(c0.type)?null!=c0.delay&&c0.hasOwnProperty("delay")&&!(c9.isInteger(c0.delay)||c0.delay&&c9.isInteger(c0.delay.low)&&c9.isInteger(c0.delay.high))?"delay: integer|Long expected":null:"type: integer expected":"id: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullMessageRequest)return c0;var c1=new c10.PullMessageRequest;return null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),null!=c0.type&&(c1.type=0|c0.type),null!=c0.delay&&(c9.Long?(c1.delay=c9.Long.fromValue(c0.delay)).unsigned=!1:"string"==typeof c0.delay?c1.delay=parseInt(c0.delay,10):"number"==typeof c0.delay?c1.delay=c0.delay:"object"===(0,c3.default)(c0.delay)&&(c1.delay=new c9.LongBits(c0.delay.low>>>0,c0.delay.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;if(c2.type=0,c9.Long){c3=new c9.Long(0,0,!1);c2.delay=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.delay=c1.longs===String?"0":0}return null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.delay&&c0.hasOwnProperty("delay")&&("number"==typeof c0.delay?c2.delay=c1.longs===String?String(c0.delay):c0.delay:c2.delay=c1.longs===String?c9.Long.prototype.toString.call(c0.delay):c1.longs===Number?new c9.LongBits(c0.delay.low>>>0,c0.delay.high>>>0).toNumber():c0.delay),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullMessageResult=function(){function c0(c0){if(this.message=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.message&&c3.message.length||(c3.message=[]),c3.message.push(c10.Message.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.message&&c0.hasOwnProperty("message")){if(!Array.isArray(c0.message))return"message: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.message=[]),c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.current=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.current=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0}if(c0.message&&c0.message.length){c2.message=[];for(var c4=0;c4>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullReadResult=function(){function c0(c0){if(this.read=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.read&&c3.read.length||(c3.read=[]),c3.read.push(c10.ConvRead.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.read&&c0.hasOwnProperty("read")){if(!Array.isArray(c0.read))return"read: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.read=[]),c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.current=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.current=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0}if(c0.read&&c0.read.length){c2.read=[];for(var c4=0;c4>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullDeliveryResult=function(){function c0(c0){if(this.delivery=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.delivery&&c3.delivery.length||(c3.delivery=[]),c3.delivery.push(c10.Delivery.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.delivery&&c0.hasOwnProperty("delivery")){if(!Array.isArray(c0.delivery))return"delivery: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.delivery=[]),c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.current=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.current=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0}if(c0.delivery&&c0.delivery.length){c2.delivery=[];for(var c4=0;c4>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GroupConv=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.line=c0.int32();break;case 2:c3.groupId=c0.string();break;case 3:c3.msgHead=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});if(!c3.hasOwnProperty("groupId"))throw c9.ProtocolError("missing required 'groupId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.line)?c9.isString(c0.groupId)?null!=c0.msgHead&&c0.hasOwnProperty("msgHead")&&!(c9.isInteger(c0.msgHead)||c0.msgHead&&c9.isInteger(c0.msgHead.low)&&c9.isInteger(c0.msgHead.high))?"msgHead: integer|Long expected":null:"groupId: string expected":"line: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GroupConv)return c0;var c1=new c10.GroupConv;return null!=c0.line&&(c1.line=0|c0.line),null!=c0.groupId&&(c1.groupId=String(c0.groupId)),null!=c0.msgHead&&(c9.Long?(c1.msgHead=c9.Long.fromValue(c0.msgHead)).unsigned=!1:"string"==typeof c0.msgHead?c1.msgHead=parseInt(c0.msgHead,10):"number"==typeof c0.msgHead?c1.msgHead=c0.msgHead:"object"===(0,c3.default)(c0.msgHead)&&(c1.msgHead=new c9.LongBits(c0.msgHead.low>>>0,c0.msgHead.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.line=0,c2.groupId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.msgHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.msgHead=c1.longs===String?"0":0;return null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),null!=c0.groupId&&c0.hasOwnProperty("groupId")&&(c2.groupId=c0.groupId),null!=c0.msgHead&&c0.hasOwnProperty("msgHead")&&("number"==typeof c0.msgHead?c2.msgHead=c1.longs===String?String(c0.msgHead):c0.msgHead:c2.msgHead=c1.longs===String?c9.Long.prototype.toString.call(c0.msgHead):c1.longs===Number?new c9.LongBits(c0.msgHead.low>>>0,c0.msgHead.high>>>0).toNumber():c0.msgHead),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupConvRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.id=c0.int64();break;case 2:c3.target=c0.string();break;case 3:c3.line=c0.int32();break;case 4:c3.messageId=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?null!=c0.target&&c0.hasOwnProperty("target")&&!c9.isString(c0.target)?"target: string expected":null!=c0.line&&c0.hasOwnProperty("line")&&!c9.isInteger(c0.line)?"line: integer expected":null!=c0.messageId&&c0.hasOwnProperty("messageId")&&!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high))?"messageId: integer|Long expected":null:"id: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullGroupConvRequest)return c0;var c1=new c10.PullGroupConvRequest;return null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),null!=c0.target&&(c1.target=String(c0.target)),null!=c0.line&&(c1.line=0|c0.line),null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;if(c2.target="",c2.line=0,c9.Long){c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0}return null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),null!=c0.target&&c0.hasOwnProperty("target")&&(c2.target=c0.target),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupConvResult=function(){function c0(c0){if(this.conv=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.conv&&c3.conv.length||(c3.conv=[]),c3.conv.push(c10.GroupConv.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;case 4:c3.groupMessage=c10.PullGroupMessageResult.decode(c0,c0.uint32());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.conv&&c0.hasOwnProperty("conv")){if(!Array.isArray(c0.conv))return"conv: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),null!=c0.groupMessage){if("object"!==(0,c3.default)(c0.groupMessage))throw TypeError(".PullGroupConvResult.groupMessage: object expected");c1.groupMessage=c10.PullGroupMessageResult.fromObject(c0.groupMessage)}return c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.conv=[]),c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.current=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.current=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;c2.groupMessage=null}if(c0.conv&&c0.conv.length){c2.conv=[];for(var c4=0;c4>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),null!=c0.groupMessage&&c0.hasOwnProperty("groupMessage")&&(c2.groupMessage=c10.PullGroupMessageResult.toObject(c0.groupMessage,c1)),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupMessageRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.groupId=c0.string();break;case 2:c3.line=c0.int32();break;case 3:c3.id=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("groupId"))throw c9.ProtocolError("missing required 'groupId'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.groupId)?c9.isInteger(c0.line)?c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?null:"id: integer|Long expected":"line: integer expected":"groupId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullGroupMessageRequest)return c0;var c1=new c10.PullGroupMessageRequest;return null!=c0.groupId&&(c1.groupId=String(c0.groupId)),null!=c0.line&&(c1.line=0|c0.line),null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.groupId="",c2.line=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;return null!=c0.groupId&&c0.hasOwnProperty("groupId")&&(c2.groupId=c0.groupId),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupMessageRequests=function(){function c0(c0){if(this.request=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.request&&c3.request.length||(c3.request=[]),c3.request.push(c10.PullGroupMessageRequest.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.request&&c0.hasOwnProperty("request")){if(!Array.isArray(c0.request))return"request: array expected";for(var c1=0;c1>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.fromUser=c0.string();break;case 3:c3.flag=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("flag"))throw c9.ProtocolError("missing required 'flag'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)?c9.isString(c0.fromUser)?c9.isInteger(c0.flag)?null:"flag: integer expected":"fromUser: string expected":"messageId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GroupMessage)return c0;var c1=new c10.GroupMessage;return null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),null!=c0.flag&&(c1.flag=0|c0.flag),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;c2.fromUser="",c2.flag=0}return null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),null!=c0.flag&&c0.hasOwnProperty("flag")&&(c2.flag=c0.flag),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupMessageResult=function(){function c0(c0){if(this.message=[],this.msg=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.message&&c3.message.length||(c3.message=[]),c3.message.push(c10.GroupMessage.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;case 4:c3.groupId=c0.string();break;case 5:c3.line=c0.int32();break;case 6:c3.msg&&c3.msg.length||(c3.msg=[]),c3.msg.push(c10.Message.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});if(!c3.hasOwnProperty("groupId"))throw c9.ProtocolError("missing required 'groupId'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.message&&c0.hasOwnProperty("message")){if(!Array.isArray(c0.message))return"message: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),null!=c0.groupId&&(c1.groupId=String(c0.groupId)),null!=c0.line&&(c1.line=0|c0.line),c0.msg){if(!Array.isArray(c0.msg))throw TypeError(".PullGroupMessageResult.msg: array expected");c1.msg=[];for(c2=0;c2>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),null!=c0.groupId&&c0.hasOwnProperty("groupId")&&(c2.groupId=c0.groupId),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),c0.msg&&c0.msg.length){c2.msg=[];for(c4=0;c4>>3==1)c3.result&&c3.result.length||(c3.result=[]),c3.result.push(c10.PullGroupMessageResult.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.result&&c0.hasOwnProperty("result")){if(!Array.isArray(c0.result))return"result: array expected";for(var c1=0;c1>>3==1)c3.message&&c3.message.length||(c3.message=[]),c3.message.push(c10.Message.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.message&&c0.hasOwnProperty("message")){if(!Array.isArray(c0.message))return"message: array expected";for(var c1=0;c1>>3==1)c3.info&&c3.info.length||(c3.info=[]),c3.info.push(c10.GroupInfo.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.info&&c0.hasOwnProperty("info")){if(!Array.isArray(c0.info))return"info: array expected";for(var c1=0;c1>>3){case 1:c3.target=c0.string();break;case 2:c3.head=c0.int64();break;case 3:c3.sum=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("target"))throw c9.ProtocolError("missing required 'target'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.target)?c9.isInteger(c0.head)||c0.head&&c9.isInteger(c0.head.low)&&c9.isInteger(c0.head.high)?null!=c0.sum&&c0.hasOwnProperty("sum")&&!(c9.isInteger(c0.sum)||c0.sum&&c9.isInteger(c0.sum.low)&&c9.isInteger(c0.sum.high))?"sum: integer|Long expected":null:"head: integer|Long expected":"target: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullGroupMemberRequest)return c0;var c1=new c10.PullGroupMemberRequest;return null!=c0.target&&(c1.target=String(c0.target)),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),null!=c0.sum&&(c9.Long?(c1.sum=c9.Long.fromValue(c0.sum)).unsigned=!1:"string"==typeof c0.sum?c1.sum=parseInt(c0.sum,10):"number"==typeof c0.sum?c1.sum=c0.sum:"object"===(0,c3.default)(c0.sum)&&(c1.sum=new c9.LongBits(c0.sum.low>>>0,c0.sum.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.target="",c9.Long){var c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.sum=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.sum=c1.longs===String?"0":0}return null!=c0.target&&c0.hasOwnProperty("target")&&(c2.target=c0.target),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),null!=c0.sum&&c0.hasOwnProperty("sum")&&("number"==typeof c0.sum?c2.sum=c1.longs===String?String(c0.sum):c0.sum:c2.sum=c1.longs===String?c9.Long.prototype.toString.call(c0.sum):c1.longs===Number?new c9.LongBits(c0.sum.low>>>0,c0.sum.high>>>0).toNumber():c0.sum),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupMemberResult=function(){function c0(c0){if(this.member=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.member&&c3.member.length||(c3.member=[]),c3.member.push(c10.GroupMember.decode(c0,c0.uint32()));break;case 2:c3.full=c0.int32();break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.member&&c0.hasOwnProperty("member")){if(!Array.isArray(c0.member))return"member: array expected";for(var c1=0;c1>>3){case 1:c3.uid=c0.string();break;case 2:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null:"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UserRequest)return c0;var c1=new c10.UserRequest;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.uid="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;return null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullUserRequest=function(){function c0(c0){if(this.request=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.request&&c3.request.length||(c3.request=[]),c3.request.push(c10.UserRequest.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.request&&c0.hasOwnProperty("request")){if(!Array.isArray(c0.request))return"request: array expected";for(var c1=0;c1>>3){case 1:c3.user=c10.User.decode(c0,c0.uint32());break;case 2:c3.code=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("user"))throw c9.ProtocolError("missing required 'user'",{instance:c3});if(!c3.hasOwnProperty("code"))throw c9.ProtocolError("missing required 'code'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";var c1=c10.User.verify(c0.user);return c1?"user."+c1:c9.isInteger(c0.code)?null:"code: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UserResult)return c0;var c1=new c10.UserResult;if(null!=c0.user){if("object"!==(0,c3.default)(c0.user))throw TypeError(".UserResult.user: object expected");c1.user=c10.User.fromObject(c0.user)}return null!=c0.code&&(c1.code=0|c0.code),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.user=null,c2.code=0),null!=c0.user&&c0.hasOwnProperty("user")&&(c2.user=c10.User.toObject(c0.user,c1)),null!=c0.code&&c0.hasOwnProperty("code")&&(c2.code=c0.code),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullUserResult=function(){function c0(c0){if(this.result=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.result&&c3.result.length||(c3.result=[]),c3.result.push(c10.UserResult.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.result&&c0.hasOwnProperty("result")){if(!Array.isArray(c0.result))return"result: array expected";for(var c1=0;c1>>3){case 1:c3.groupId=c0.string();break;case 2:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:c3.removedMember&&c3.removedMember.length||(c3.removedMember=[]),c3.removedMember.push(c0.string());break;case 3:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:c3.newOwner=c0.string();break;case 3:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:c3.alias=c0.string();break;case 3:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.scope=c0.int32();break;case 2:c3.key=c0.string();break;case 3:c3.value=c0.string();break;case 4:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("scope"))throw c9.ProtocolError("missing required 'scope'",{instance:c3});if(!c3.hasOwnProperty("key"))throw c9.ProtocolError("missing required 'key'",{instance:c3});if(!c3.hasOwnProperty("value"))throw c9.ProtocolError("missing required 'value'",{instance:c3});if(!c3.hasOwnProperty("updateDt"))throw c9.ProtocolError("missing required 'updateDt'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.scope)?c9.isString(c0.key)?c9.isString(c0.value)?c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high)?null:"updateDt: integer|Long expected":"value: string expected":"key: string expected":"scope: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UserSettingEntry)return c0;var c1=new c10.UserSettingEntry;return null!=c0.scope&&(c1.scope=0|c0.scope),null!=c0.key&&(c1.key=String(c0.key)),null!=c0.value&&(c1.value=String(c0.value)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.scope=0,c2.key="",c2.value="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;return null!=c0.scope&&c0.hasOwnProperty("scope")&&(c2.scope=c0.scope),null!=c0.key&&c0.hasOwnProperty("key")&&(c2.key=c0.key),null!=c0.value&&c0.hasOwnProperty("value")&&(c2.value=c0.value),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ModifyUserSettingReq=function(){function c0(c0){if(this.target=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.scope=c0.int32();break;case 2:c3.key=c0.string();break;case 3:c3.value=c0.string();break;case 4:c3.target&&c3.target.length||(c3.target=[]),c3.target.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("scope"))throw c9.ProtocolError("missing required 'scope'",{instance:c3});if(!c3.hasOwnProperty("key"))throw c9.ProtocolError("missing required 'key'",{instance:c3});if(!c3.hasOwnProperty("value"))throw c9.ProtocolError("missing required 'value'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isInteger(c0.scope))return"scope: integer expected";if(!c9.isString(c0.key))return"key: string expected";if(!c9.isString(c0.value))return"value: string expected";if(null!=c0.target&&c0.hasOwnProperty("target")){if(!Array.isArray(c0.target))return"target: array expected";for(var c1=0;c1>>3==1)c3.version=c0.int64();else c0.skipType(7&c4)}if(!c3.hasOwnProperty("version"))throw c9.ProtocolError("missing required 'version'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.version)||c0.version&&c9.isInteger(c0.version.low)&&c9.isInteger(c0.version.high)?null:"version: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Version)return c0;var c1=new c10.Version;return null!=c0.version&&(c9.Long?(c1.version=c9.Long.fromValue(c0.version)).unsigned=!1:"string"==typeof c0.version?c1.version=parseInt(c0.version,10):"number"==typeof c0.version?c1.version=c0.version:"object"===(0,c3.default)(c0.version)&&(c1.version=new c9.LongBits(c0.version.low>>>0,c0.version.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c9.Long){var c3=new c9.Long(0,0,!1);c2.version=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.version=c1.longs===String?"0":0;return null!=c0.version&&c0.hasOwnProperty("version")&&("number"==typeof c0.version?c2.version=c1.longs===String?String(c0.version):c0.version:c2.version=c1.longs===String?c9.Long.prototype.toString.call(c0.version):c1.longs===Number?new c9.LongBits(c0.version.low>>>0,c0.version.high>>>0).toNumber():c0.version),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetUserSettingResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.UserSettingEntry.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.uid=c0.string();break;case 2:c3.state=c0.int32();break;case 3:c3.updateDt=c0.int64();break;case 4:c3.alias=c0.string();break;case 5:c3.blacked=c0.int32();break;case 6:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});if(!c3.hasOwnProperty("updateDt"))throw c9.ProtocolError("missing required 'updateDt'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?c9.isInteger(c0.state)?c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high)?null!=c0.alias&&c0.hasOwnProperty("alias")&&!c9.isString(c0.alias)?"alias: string expected":null!=c0.blacked&&c0.hasOwnProperty("blacked")&&!c9.isInteger(c0.blacked)?"blacked: integer expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"updateDt: integer|Long expected":"state: integer expected":"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Friend)return c0;var c1=new c10.Friend;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.state&&(c1.state=0|c0.state),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.alias&&(c1.alias=String(c0.alias)),null!=c0.blacked&&(c1.blacked=0|c0.blacked),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.uid="",c2.state=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;c2.alias="",c2.blacked=0,c2.extra=""}return null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.alias&&c0.hasOwnProperty("alias")&&(c2.alias=c0.alias),null!=c0.blacked&&c0.hasOwnProperty("blacked")&&(c2.blacked=c0.blacked),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetFriendsResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.Friend.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.FriendRequest.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.msgHead=c0.int64();break;case 2:c3.friendHead=c0.int64();break;case 3:c3.friendRqHead=c0.int64();break;case 4:c3.settingHead=c0.int64();break;case 5:c3.nodeAddr=c0.string();break;case 6:c3.nodePort=c0.int32();break;case 7:c3.serverTime=c0.int64();break;case 8:c3.nodeId=c0.string();break;case 9:c3.recvHead=c0.int64();break;case 10:c3.readHead=c0.int64();break;case 11:c3.groupConvHead=c0.int64();break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.msgHead&&c0.hasOwnProperty("msgHead")&&!(c9.isInteger(c0.msgHead)||c0.msgHead&&c9.isInteger(c0.msgHead.low)&&c9.isInteger(c0.msgHead.high))?"msgHead: integer|Long expected":null!=c0.friendHead&&c0.hasOwnProperty("friendHead")&&!(c9.isInteger(c0.friendHead)||c0.friendHead&&c9.isInteger(c0.friendHead.low)&&c9.isInteger(c0.friendHead.high))?"friendHead: integer|Long expected":null!=c0.friendRqHead&&c0.hasOwnProperty("friendRqHead")&&!(c9.isInteger(c0.friendRqHead)||c0.friendRqHead&&c9.isInteger(c0.friendRqHead.low)&&c9.isInteger(c0.friendRqHead.high))?"friendRqHead: integer|Long expected":null!=c0.settingHead&&c0.hasOwnProperty("settingHead")&&!(c9.isInteger(c0.settingHead)||c0.settingHead&&c9.isInteger(c0.settingHead.low)&&c9.isInteger(c0.settingHead.high))?"settingHead: integer|Long expected":null!=c0.nodeAddr&&c0.hasOwnProperty("nodeAddr")&&!c9.isString(c0.nodeAddr)?"nodeAddr: string expected":null!=c0.nodePort&&c0.hasOwnProperty("nodePort")&&!c9.isInteger(c0.nodePort)?"nodePort: integer expected":null!=c0.serverTime&&c0.hasOwnProperty("serverTime")&&!(c9.isInteger(c0.serverTime)||c0.serverTime&&c9.isInteger(c0.serverTime.low)&&c9.isInteger(c0.serverTime.high))?"serverTime: integer|Long expected":null!=c0.nodeId&&c0.hasOwnProperty("nodeId")&&!c9.isString(c0.nodeId)?"nodeId: string expected":null!=c0.recvHead&&c0.hasOwnProperty("recvHead")&&!(c9.isInteger(c0.recvHead)||c0.recvHead&&c9.isInteger(c0.recvHead.low)&&c9.isInteger(c0.recvHead.high))?"recvHead: integer|Long expected":null!=c0.readHead&&c0.hasOwnProperty("readHead")&&!(c9.isInteger(c0.readHead)||c0.readHead&&c9.isInteger(c0.readHead.low)&&c9.isInteger(c0.readHead.high))?"readHead: integer|Long expected":null!=c0.groupConvHead&&c0.hasOwnProperty("groupConvHead")&&!(c9.isInteger(c0.groupConvHead)||c0.groupConvHead&&c9.isInteger(c0.groupConvHead.low)&&c9.isInteger(c0.groupConvHead.high))?"groupConvHead: integer|Long expected":null},c0.fromObject=function(c0){if(c0 instanceof c10.ConnectAckPayload)return c0;var c1=new c10.ConnectAckPayload;return null!=c0.msgHead&&(c9.Long?(c1.msgHead=c9.Long.fromValue(c0.msgHead)).unsigned=!1:"string"==typeof c0.msgHead?c1.msgHead=parseInt(c0.msgHead,10):"number"==typeof c0.msgHead?c1.msgHead=c0.msgHead:"object"===(0,c3.default)(c0.msgHead)&&(c1.msgHead=new c9.LongBits(c0.msgHead.low>>>0,c0.msgHead.high>>>0).toNumber())),null!=c0.friendHead&&(c9.Long?(c1.friendHead=c9.Long.fromValue(c0.friendHead)).unsigned=!1:"string"==typeof c0.friendHead?c1.friendHead=parseInt(c0.friendHead,10):"number"==typeof c0.friendHead?c1.friendHead=c0.friendHead:"object"===(0,c3.default)(c0.friendHead)&&(c1.friendHead=new c9.LongBits(c0.friendHead.low>>>0,c0.friendHead.high>>>0).toNumber())),null!=c0.friendRqHead&&(c9.Long?(c1.friendRqHead=c9.Long.fromValue(c0.friendRqHead)).unsigned=!1:"string"==typeof c0.friendRqHead?c1.friendRqHead=parseInt(c0.friendRqHead,10):"number"==typeof c0.friendRqHead?c1.friendRqHead=c0.friendRqHead:"object"===(0,c3.default)(c0.friendRqHead)&&(c1.friendRqHead=new c9.LongBits(c0.friendRqHead.low>>>0,c0.friendRqHead.high>>>0).toNumber())),null!=c0.settingHead&&(c9.Long?(c1.settingHead=c9.Long.fromValue(c0.settingHead)).unsigned=!1:"string"==typeof c0.settingHead?c1.settingHead=parseInt(c0.settingHead,10):"number"==typeof c0.settingHead?c1.settingHead=c0.settingHead:"object"===(0,c3.default)(c0.settingHead)&&(c1.settingHead=new c9.LongBits(c0.settingHead.low>>>0,c0.settingHead.high>>>0).toNumber())),null!=c0.nodeAddr&&(c1.nodeAddr=String(c0.nodeAddr)),null!=c0.nodePort&&(c1.nodePort=0|c0.nodePort),null!=c0.serverTime&&(c9.Long?(c1.serverTime=c9.Long.fromValue(c0.serverTime)).unsigned=!1:"string"==typeof c0.serverTime?c1.serverTime=parseInt(c0.serverTime,10):"number"==typeof c0.serverTime?c1.serverTime=c0.serverTime:"object"===(0,c3.default)(c0.serverTime)&&(c1.serverTime=new c9.LongBits(c0.serverTime.low>>>0,c0.serverTime.high>>>0).toNumber())),null!=c0.nodeId&&(c1.nodeId=String(c0.nodeId)),null!=c0.recvHead&&(c9.Long?(c1.recvHead=c9.Long.fromValue(c0.recvHead)).unsigned=!1:"string"==typeof c0.recvHead?c1.recvHead=parseInt(c0.recvHead,10):"number"==typeof c0.recvHead?c1.recvHead=c0.recvHead:"object"===(0,c3.default)(c0.recvHead)&&(c1.recvHead=new c9.LongBits(c0.recvHead.low>>>0,c0.recvHead.high>>>0).toNumber())),null!=c0.readHead&&(c9.Long?(c1.readHead=c9.Long.fromValue(c0.readHead)).unsigned=!1:"string"==typeof c0.readHead?c1.readHead=parseInt(c0.readHead,10):"number"==typeof c0.readHead?c1.readHead=c0.readHead:"object"===(0,c3.default)(c0.readHead)&&(c1.readHead=new c9.LongBits(c0.readHead.low>>>0,c0.readHead.high>>>0).toNumber())),null!=c0.groupConvHead&&(c9.Long?(c1.groupConvHead=c9.Long.fromValue(c0.groupConvHead)).unsigned=!1:"string"==typeof c0.groupConvHead?c1.groupConvHead=parseInt(c0.groupConvHead,10):"number"==typeof c0.groupConvHead?c1.groupConvHead=c0.groupConvHead:"object"===(0,c3.default)(c0.groupConvHead)&&(c1.groupConvHead=new c9.LongBits(c0.groupConvHead.low>>>0,c0.groupConvHead.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.msgHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.msgHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.friendHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.friendHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.friendRqHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.friendRqHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.settingHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.settingHead=c1.longs===String?"0":0;if(c2.nodeAddr="",c2.nodePort=0,c9.Long){c3=new c9.Long(0,0,!1);c2.serverTime=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.serverTime=c1.longs===String?"0":0;if(c2.nodeId="",c9.Long){c3=new c9.Long(0,0,!1);c2.recvHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.recvHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.readHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.readHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.groupConvHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.groupConvHead=c1.longs===String?"0":0}return null!=c0.msgHead&&c0.hasOwnProperty("msgHead")&&("number"==typeof c0.msgHead?c2.msgHead=c1.longs===String?String(c0.msgHead):c0.msgHead:c2.msgHead=c1.longs===String?c9.Long.prototype.toString.call(c0.msgHead):c1.longs===Number?new c9.LongBits(c0.msgHead.low>>>0,c0.msgHead.high>>>0).toNumber():c0.msgHead),null!=c0.friendHead&&c0.hasOwnProperty("friendHead")&&("number"==typeof c0.friendHead?c2.friendHead=c1.longs===String?String(c0.friendHead):c0.friendHead:c2.friendHead=c1.longs===String?c9.Long.prototype.toString.call(c0.friendHead):c1.longs===Number?new c9.LongBits(c0.friendHead.low>>>0,c0.friendHead.high>>>0).toNumber():c0.friendHead),null!=c0.friendRqHead&&c0.hasOwnProperty("friendRqHead")&&("number"==typeof c0.friendRqHead?c2.friendRqHead=c1.longs===String?String(c0.friendRqHead):c0.friendRqHead:c2.friendRqHead=c1.longs===String?c9.Long.prototype.toString.call(c0.friendRqHead):c1.longs===Number?new c9.LongBits(c0.friendRqHead.low>>>0,c0.friendRqHead.high>>>0).toNumber():c0.friendRqHead),null!=c0.settingHead&&c0.hasOwnProperty("settingHead")&&("number"==typeof c0.settingHead?c2.settingHead=c1.longs===String?String(c0.settingHead):c0.settingHead:c2.settingHead=c1.longs===String?c9.Long.prototype.toString.call(c0.settingHead):c1.longs===Number?new c9.LongBits(c0.settingHead.low>>>0,c0.settingHead.high>>>0).toNumber():c0.settingHead),null!=c0.nodeAddr&&c0.hasOwnProperty("nodeAddr")&&(c2.nodeAddr=c0.nodeAddr),null!=c0.nodePort&&c0.hasOwnProperty("nodePort")&&(c2.nodePort=c0.nodePort),null!=c0.serverTime&&c0.hasOwnProperty("serverTime")&&("number"==typeof c0.serverTime?c2.serverTime=c1.longs===String?String(c0.serverTime):c0.serverTime:c2.serverTime=c1.longs===String?c9.Long.prototype.toString.call(c0.serverTime):c1.longs===Number?new c9.LongBits(c0.serverTime.low>>>0,c0.serverTime.high>>>0).toNumber():c0.serverTime),null!=c0.nodeId&&c0.hasOwnProperty("nodeId")&&(c2.nodeId=c0.nodeId),null!=c0.recvHead&&c0.hasOwnProperty("recvHead")&&("number"==typeof c0.recvHead?c2.recvHead=c1.longs===String?String(c0.recvHead):c0.recvHead:c2.recvHead=c1.longs===String?c9.Long.prototype.toString.call(c0.recvHead):c1.longs===Number?new c9.LongBits(c0.recvHead.low>>>0,c0.recvHead.high>>>0).toNumber():c0.recvHead),null!=c0.readHead&&c0.hasOwnProperty("readHead")&&("number"==typeof c0.readHead?c2.readHead=c1.longs===String?String(c0.readHead):c0.readHead:c2.readHead=c1.longs===String?c9.Long.prototype.toString.call(c0.readHead):c1.longs===Number?new c9.LongBits(c0.readHead.low>>>0,c0.readHead.high>>>0).toNumber():c0.readHead),null!=c0.groupConvHead&&c0.hasOwnProperty("groupConvHead")&&("number"==typeof c0.groupConvHead?c2.groupConvHead=c1.longs===String?String(c0.groupConvHead):c0.groupConvHead:c2.groupConvHead=c1.longs===String?c9.Long.prototype.toString.call(c0.groupConvHead):c1.longs===Number?new c9.LongBits(c0.groupConvHead.low>>>0,c0.groupConvHead.high>>>0).toNumber():c0.groupConvHead),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.IMHttpWrapper=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.token=c0.string();break;case 2:c3.clientId=c0.string();break;case 3:c3.request=c0.string();break;case 4:c3.data=c0.bytes();break;case 5:c3.requestId=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("token"))throw c9.ProtocolError("missing required 'token'",{instance:c3});if(!c3.hasOwnProperty("clientId"))throw c9.ProtocolError("missing required 'clientId'",{instance:c3});if(!c3.hasOwnProperty("request"))throw c9.ProtocolError("missing required 'request'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.token)?c9.isString(c0.clientId)?c9.isString(c0.request)?null!=c0.data&&c0.hasOwnProperty("data")&&!(c0.data&&"number"==typeof c0.data.length||c9.isString(c0.data))?"data: buffer expected":null!=c0.requestId&&c0.hasOwnProperty("requestId")&&!c9.isString(c0.requestId)?"requestId: string expected":null:"request: string expected":"clientId: string expected":"token: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.IMHttpWrapper)return c0;var c1=new c10.IMHttpWrapper;return null!=c0.token&&(c1.token=String(c0.token)),null!=c0.clientId&&(c1.clientId=String(c0.clientId)),null!=c0.request&&(c1.request=String(c0.request)),null!=c0.data&&("string"==typeof c0.data?c9.base64.decode(c0.data,c1.data=c9.newBuffer(c9.base64.length(c0.data)),0):c0.data.length&&(c1.data=c0.data)),null!=c0.requestId&&(c1.requestId=String(c0.requestId)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.token="",c2.clientId="",c2.request="",c1.bytes===String?c2.data="":(c2.data=[],c1.bytes!==Array&&(c2.data=c9.newBuffer(c2.data))),c2.requestId=""),null!=c0.token&&c0.hasOwnProperty("token")&&(c2.token=c0.token),null!=c0.clientId&&c0.hasOwnProperty("clientId")&&(c2.clientId=c0.clientId),null!=c0.request&&c0.hasOwnProperty("request")&&(c2.request=c0.request),null!=c0.data&&c0.hasOwnProperty("data")&&(c2.data=c1.bytes===String?c9.base64.encode(c0.data,0,c0.data.length):c1.bytes===Array?Array.prototype.slice.call(c0.data):c0.data),null!=c0.requestId&&c0.hasOwnProperty("requestId")&&(c2.requestId=c0.requestId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.SearchUserRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.keyword=c0.string();break;case 2:c3.fuzzy=c0.int32();break;case 3:c3.page=c0.int32();break;case 4:c3.domainId=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("keyword"))throw c9.ProtocolError("missing required 'keyword'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.keyword)?null!=c0.fuzzy&&c0.hasOwnProperty("fuzzy")&&!c9.isInteger(c0.fuzzy)?"fuzzy: integer expected":null!=c0.page&&c0.hasOwnProperty("page")&&!c9.isInteger(c0.page)?"page: integer expected":null!=c0.domainId&&c0.hasOwnProperty("domainId")&&!c9.isString(c0.domainId)?"domainId: string expected":null:"keyword: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.SearchUserRequest)return c0;var c1=new c10.SearchUserRequest;return null!=c0.keyword&&(c1.keyword=String(c0.keyword)),null!=c0.fuzzy&&(c1.fuzzy=0|c0.fuzzy),null!=c0.page&&(c1.page=0|c0.page),null!=c0.domainId&&(c1.domainId=String(c0.domainId)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.keyword="",c2.fuzzy=0,c2.page=0,c2.domainId=""),null!=c0.keyword&&c0.hasOwnProperty("keyword")&&(c2.keyword=c0.keyword),null!=c0.fuzzy&&c0.hasOwnProperty("fuzzy")&&(c2.fuzzy=c0.fuzzy),null!=c0.page&&c0.hasOwnProperty("page")&&(c2.page=c0.page),null!=c0.domainId&&c0.hasOwnProperty("domainId")&&(c2.domainId=c0.domainId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.SearchUserResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.User.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.chatroomId=c0.string();break;case 2:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("chatroomId"))throw c9.ProtocolError("missing required 'chatroomId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.chatroomId)?null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null:"chatroomId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetChatroomInfoRequest)return c0;var c1=new c10.GetChatroomInfoRequest;return null!=c0.chatroomId&&(c1.chatroomId=String(c0.chatroomId)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.chatroomId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;return null!=c0.chatroomId&&c0.hasOwnProperty("chatroomId")&&(c2.chatroomId=c0.chatroomId),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ChatroomInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.title=c0.string();break;case 2:c3.desc=c0.string();break;case 3:c3.portrait=c0.string();break;case 4:c3.memberCount=c0.int32();break;case 5:c3.createDt=c0.int64();break;case 6:c3.updateDt=c0.int64();break;case 7:c3.extra=c0.string();break;case 8:c3.state=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("title"))throw c9.ProtocolError("missing required 'title'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.title)?null!=c0.desc&&c0.hasOwnProperty("desc")&&!c9.isString(c0.desc)?"desc: string expected":null!=c0.portrait&&c0.hasOwnProperty("portrait")&&!c9.isString(c0.portrait)?"portrait: string expected":null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&!c9.isInteger(c0.memberCount)?"memberCount: integer expected":null!=c0.createDt&&c0.hasOwnProperty("createDt")&&!(c9.isInteger(c0.createDt)||c0.createDt&&c9.isInteger(c0.createDt.low)&&c9.isInteger(c0.createDt.high))?"createDt: integer|Long expected":null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null!=c0.state&&c0.hasOwnProperty("state")&&!c9.isInteger(c0.state)?"state: integer expected":null:"title: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ChatroomInfo)return c0;var c1=new c10.ChatroomInfo;return null!=c0.title&&(c1.title=String(c0.title)),null!=c0.desc&&(c1.desc=String(c0.desc)),null!=c0.portrait&&(c1.portrait=String(c0.portrait)),null!=c0.memberCount&&(c1.memberCount=0|c0.memberCount),null!=c0.createDt&&(c9.Long?(c1.createDt=c9.Long.fromValue(c0.createDt)).unsigned=!1:"string"==typeof c0.createDt?c1.createDt=parseInt(c0.createDt,10):"number"==typeof c0.createDt?c1.createDt=c0.createDt:"object"===(0,c3.default)(c0.createDt)&&(c1.createDt=new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber())),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.extra&&(c1.extra=String(c0.extra)),null!=c0.state&&(c1.state=0|c0.state),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.title="",c2.desc="",c2.portrait="",c2.memberCount=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.createDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.createDt=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;c2.extra="",c2.state=0}return null!=c0.title&&c0.hasOwnProperty("title")&&(c2.title=c0.title),null!=c0.desc&&c0.hasOwnProperty("desc")&&(c2.desc=c0.desc),null!=c0.portrait&&c0.hasOwnProperty("portrait")&&(c2.portrait=c0.portrait),null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&(c2.memberCount=c0.memberCount),null!=c0.createDt&&c0.hasOwnProperty("createDt")&&("number"==typeof c0.createDt?c2.createDt=c1.longs===String?String(c0.createDt):c0.createDt:c2.createDt=c1.longs===String?c9.Long.prototype.toString.call(c0.createDt):c1.longs===Number?new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber():c0.createDt),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetChatroomMemberInfoRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.chatroomId=c0.string();break;case 2:c3.maxCount=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("chatroomId"))throw c9.ProtocolError("missing required 'chatroomId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.chatroomId)?null!=c0.maxCount&&c0.hasOwnProperty("maxCount")&&!c9.isInteger(c0.maxCount)?"maxCount: integer expected":null:"chatroomId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetChatroomMemberInfoRequest)return c0;var c1=new c10.GetChatroomMemberInfoRequest;return null!=c0.chatroomId&&(c1.chatroomId=String(c0.chatroomId)),null!=c0.maxCount&&(c1.maxCount=0|c0.maxCount),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.chatroomId="",c2.maxCount=0),null!=c0.chatroomId&&c0.hasOwnProperty("chatroomId")&&(c2.chatroomId=c0.chatroomId),null!=c0.maxCount&&c0.hasOwnProperty("maxCount")&&(c2.maxCount=c0.maxCount),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ChatroomMemberInfo=function(){function c0(c0){if(this.members=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.memberCount=c0.int32();break;case 2:c3.members&&c3.members.length||(c3.members=[]),c3.members.push(c0.string());break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&!c9.isInteger(c0.memberCount))return"memberCount: integer expected";if(null!=c0.members&&c0.hasOwnProperty("members")){if(!Array.isArray(c0.members))return"members: array expected";for(var c1=0;c1>>3==1)c3.id=c0.int64();else c0.skipType(7&c4)}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?null:"id: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.INT64Buf)return c0;var c1=new c10.INT64Buf;return null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;return null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.INT64ListBuf=function(){function c0(c0){if(this.id=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)if(c3.id&&c3.id.length||(c3.id=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>0,c0.id[c2].high>>>0).toNumber())}return c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.id=[]),c0.id&&c0.id.length){c2.id=[];for(var c3=0;c3>>0,c0.id[c3].high>>>0).toNumber():c0.id[c3]}return c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.NotifyRecallMessage=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.id=c0.int64();break;case 2:c3.fromUser=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?c9.isString(c0.fromUser)?null:"fromUser: string expected":"id: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.NotifyRecallMessage)return c0;var c1=new c10.NotifyRecallMessage;return null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;c2.fromUser=""}return null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.BlackUserRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.uid=c0.string();break;case 2:c3.status=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});if(!c3.hasOwnProperty("status"))throw c9.ProtocolError("missing required 'status'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?c9.isInteger(c0.status)?null:"status: integer expected":"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.BlackUserRequest)return c0;var c1=new c10.BlackUserRequest;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.status&&(c1.status=0|c0.status),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.uid="",c2.status=0),null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.status&&c0.hasOwnProperty("status")&&(c2.status=c0.status),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.app=c0.string();break;case 2:c3.platform=c0.int32();break;case 3:c3.pushType=c0.int32();break;case 4:c3.deviceName=c0.string();break;case 5:c3.deviceVersion=c0.string();break;case 6:c3.phoneName=c0.string();break;case 7:c3.language=c0.string();break;case 8:c3.carrierName=c0.string();break;case 9:c3.appVersion=c0.string();break;case 10:c3.sdkVersion=c0.string();break;case 11:c3.wxAppId=c0.string();break;case 12:c3.wxAppKey=c0.string();break;case 13:c3.webAppId=c0.string();break;case 14:c3.webAppKey=c0.string();break;case 15:c3.host=c0.string();break;case 16:c3.signature=c0.string();break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.app&&c0.hasOwnProperty("app")&&!c9.isString(c0.app)?"app: string expected":null!=c0.platform&&c0.hasOwnProperty("platform")&&!c9.isInteger(c0.platform)?"platform: integer expected":null!=c0.pushType&&c0.hasOwnProperty("pushType")&&!c9.isInteger(c0.pushType)?"pushType: integer expected":null!=c0.deviceName&&c0.hasOwnProperty("deviceName")&&!c9.isString(c0.deviceName)?"deviceName: string expected":null!=c0.deviceVersion&&c0.hasOwnProperty("deviceVersion")&&!c9.isString(c0.deviceVersion)?"deviceVersion: string expected":null!=c0.phoneName&&c0.hasOwnProperty("phoneName")&&!c9.isString(c0.phoneName)?"phoneName: string expected":null!=c0.language&&c0.hasOwnProperty("language")&&!c9.isString(c0.language)?"language: string expected":null!=c0.carrierName&&c0.hasOwnProperty("carrierName")&&!c9.isString(c0.carrierName)?"carrierName: string expected":null!=c0.appVersion&&c0.hasOwnProperty("appVersion")&&!c9.isString(c0.appVersion)?"appVersion: string expected":null!=c0.sdkVersion&&c0.hasOwnProperty("sdkVersion")&&!c9.isString(c0.sdkVersion)?"sdkVersion: string expected":null!=c0.wxAppId&&c0.hasOwnProperty("wxAppId")&&!c9.isString(c0.wxAppId)?"wxAppId: string expected":null!=c0.wxAppKey&&c0.hasOwnProperty("wxAppKey")&&!c9.isString(c0.wxAppKey)?"wxAppKey: string expected":null!=c0.webAppId&&c0.hasOwnProperty("webAppId")&&!c9.isString(c0.webAppId)?"webAppId: string expected":null!=c0.webAppKey&&c0.hasOwnProperty("webAppKey")&&!c9.isString(c0.webAppKey)?"webAppKey: string expected":null!=c0.host&&c0.hasOwnProperty("host")&&!c9.isString(c0.host)?"host: string expected":null!=c0.signature&&c0.hasOwnProperty("signature")&&!c9.isString(c0.signature)?"signature: string expected":null},c0.fromObject=function(c0){if(c0 instanceof c10.RouteRequest)return c0;var c1=new c10.RouteRequest;return null!=c0.app&&(c1.app=String(c0.app)),null!=c0.platform&&(c1.platform=0|c0.platform),null!=c0.pushType&&(c1.pushType=0|c0.pushType),null!=c0.deviceName&&(c1.deviceName=String(c0.deviceName)),null!=c0.deviceVersion&&(c1.deviceVersion=String(c0.deviceVersion)),null!=c0.phoneName&&(c1.phoneName=String(c0.phoneName)),null!=c0.language&&(c1.language=String(c0.language)),null!=c0.carrierName&&(c1.carrierName=String(c0.carrierName)),null!=c0.appVersion&&(c1.appVersion=String(c0.appVersion)),null!=c0.sdkVersion&&(c1.sdkVersion=String(c0.sdkVersion)),null!=c0.wxAppId&&(c1.wxAppId=String(c0.wxAppId)),null!=c0.wxAppKey&&(c1.wxAppKey=String(c0.wxAppKey)),null!=c0.webAppId&&(c1.webAppId=String(c0.webAppId)),null!=c0.webAppKey&&(c1.webAppKey=String(c0.webAppKey)),null!=c0.host&&(c1.host=String(c0.host)),null!=c0.signature&&(c1.signature=String(c0.signature)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.app="",c2.platform=0,c2.pushType=0,c2.deviceName="",c2.deviceVersion="",c2.phoneName="",c2.language="",c2.carrierName="",c2.appVersion="",c2.sdkVersion="",c2.wxAppId="",c2.wxAppKey="",c2.webAppId="",c2.webAppKey="",c2.host="",c2.signature=""),null!=c0.app&&c0.hasOwnProperty("app")&&(c2.app=c0.app),null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),null!=c0.pushType&&c0.hasOwnProperty("pushType")&&(c2.pushType=c0.pushType),null!=c0.deviceName&&c0.hasOwnProperty("deviceName")&&(c2.deviceName=c0.deviceName),null!=c0.deviceVersion&&c0.hasOwnProperty("deviceVersion")&&(c2.deviceVersion=c0.deviceVersion),null!=c0.phoneName&&c0.hasOwnProperty("phoneName")&&(c2.phoneName=c0.phoneName),null!=c0.language&&c0.hasOwnProperty("language")&&(c2.language=c0.language),null!=c0.carrierName&&c0.hasOwnProperty("carrierName")&&(c2.carrierName=c0.carrierName),null!=c0.appVersion&&c0.hasOwnProperty("appVersion")&&(c2.appVersion=c0.appVersion),null!=c0.sdkVersion&&c0.hasOwnProperty("sdkVersion")&&(c2.sdkVersion=c0.sdkVersion),null!=c0.wxAppId&&c0.hasOwnProperty("wxAppId")&&(c2.wxAppId=c0.wxAppId),null!=c0.wxAppKey&&c0.hasOwnProperty("wxAppKey")&&(c2.wxAppKey=c0.wxAppKey),null!=c0.webAppId&&c0.hasOwnProperty("webAppId")&&(c2.webAppId=c0.webAppId),null!=c0.webAppKey&&c0.hasOwnProperty("webAppKey")&&(c2.webAppKey=c0.webAppKey),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),null!=c0.signature&&c0.hasOwnProperty("signature")&&(c2.signature=c0.signature),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.AddressTriple=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.host=c0.string();break;case 2:c3.longPort=c0.int32();break;case 3:c3.shortPort=c0.int32();break;case 4:c3.wssPort=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});if(!c3.hasOwnProperty("longPort"))throw c9.ProtocolError("missing required 'longPort'",{instance:c3});if(!c3.hasOwnProperty("shortPort"))throw c9.ProtocolError("missing required 'shortPort'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.host)?c9.isInteger(c0.longPort)?c9.isInteger(c0.shortPort)?null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&!c9.isInteger(c0.wssPort)?"wssPort: integer expected":null:"shortPort: integer expected":"longPort: integer expected":"host: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.AddressTriple)return c0;var c1=new c10.AddressTriple;return null!=c0.host&&(c1.host=String(c0.host)),null!=c0.longPort&&(c1.longPort=0|c0.longPort),null!=c0.shortPort&&(c1.shortPort=0|c0.shortPort),null!=c0.wssPort&&(c1.wssPort=0|c0.wssPort),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.host="",c2.longPort=0,c2.shortPort=0,c2.wssPort=0),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),null!=c0.longPort&&c0.hasOwnProperty("longPort")&&(c2.longPort=c0.longPort),null!=c0.shortPort&&c0.hasOwnProperty("shortPort")&&(c2.shortPort=c0.shortPort),null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&(c2.wssPort=c0.wssPort),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteResponse=function(){function c0(c0){if(this.candidate=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.host=c0.string();break;case 2:c3.longPort=c0.int32();break;case 3:c3.shortPort=c0.int32();break;case 4:c3.thumbPara=c0.string();break;case 5:c3.node=c0.string();break;case 6:c3.commercial=c0.int32();break;case 7:c3.wssPort=c0.int32();break;case 8:c3.candidate&&c3.candidate.length||(c3.candidate=[]),c3.candidate.push(c10.AddressTriple.decode(c0,c0.uint32()));break;case 9:c3.shortTcpPort=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});if(!c3.hasOwnProperty("longPort"))throw c9.ProtocolError("missing required 'longPort'",{instance:c3});if(!c3.hasOwnProperty("shortPort"))throw c9.ProtocolError("missing required 'shortPort'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.host))return"host: string expected";if(!c9.isInteger(c0.longPort))return"longPort: integer expected";if(!c9.isInteger(c0.shortPort))return"shortPort: integer expected";if(null!=c0.thumbPara&&c0.hasOwnProperty("thumbPara")&&!c9.isString(c0.thumbPara))return"thumbPara: string expected";if(null!=c0.node&&c0.hasOwnProperty("node")&&!c9.isString(c0.node))return"node: string expected";if(null!=c0.commercial&&c0.hasOwnProperty("commercial")&&!c9.isInteger(c0.commercial))return"commercial: integer expected";if(null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&!c9.isInteger(c0.wssPort))return"wssPort: integer expected";if(null!=c0.candidate&&c0.hasOwnProperty("candidate")){if(!Array.isArray(c0.candidate))return"candidate: array expected";for(var c1=0;c1>>3){case 1:c3.userId=c0.string();break;case 2:c3.clientId=c0.string();break;case 3:c3.platform=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("userId"))throw c9.ProtocolError("missing required 'userId'",{instance:c3});if(!c3.hasOwnProperty("clientId"))throw c9.ProtocolError("missing required 'clientId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.userId)?c9.isString(c0.clientId)?null!=c0.platform&&c0.hasOwnProperty("platform")&&!c9.isInteger(c0.platform)?"platform: integer expected":null:"clientId: string expected":"userId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetTokenRequest)return c0;var c1=new c10.GetTokenRequest;return null!=c0.userId&&(c1.userId=String(c0.userId)),null!=c0.clientId&&(c1.clientId=String(c0.clientId)),null!=c0.platform&&(c1.platform=0|c0.platform),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.userId="",c2.clientId="",c2.platform=0),null!=c0.userId&&c0.hasOwnProperty("userId")&&(c2.userId=c0.userId),null!=c0.clientId&&c0.hasOwnProperty("clientId")&&(c2.clientId=c0.clientId),null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.LoadRemoteMessages=function(){function c0(c0){if(this.contentType=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.beforeUid=c0.int64();break;case 3:c3.count=c0.int32();break;case 4:if(c3.contentType&&c3.contentType.length||(c3.contentType=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>0,c0.beforeUid.high>>>0).toNumber())),null!=c0.count&&(c1.count=0|c0.count),c0.contentType){if(!Array.isArray(c0.contentType))throw TypeError(".LoadRemoteMessages.contentType: array expected");c1.contentType=[];for(var c2=0;c2>>0,c0.beforeUid.high>>>0).toNumber():c0.beforeUid),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),c0.contentType&&c0.contentType.length){c2.contentType=[];for(var c4=0;c4>>3){case 1:c3.line=c0.int32();break;case 2:c3.beforeUid=c0.int64();break;case 3:c3.count=c0.int32();break;case 4:if(c3.contentType&&c3.contentType.length||(c3.contentType=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>0,c0.beforeUid.high>>>0).toNumber())),null!=c0.count&&(c1.count=0|c0.count),c0.contentType){if(!Array.isArray(c0.contentType))throw TypeError(".LoadLineMessages.contentType: array expected");c1.contentType=[];for(var c2=0;c2>>0,c0.beforeUid.high>>>0).toNumber():c0.beforeUid),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),c0.contentType&&c0.contentType.length){c2.contentType=[];for(var c4=0;c4>>3){case 1:c3.fromUser=c0.string();break;case 2:c3.content=c10.MessageContent.decode(c0,c0.uint32());break;case 3:c3.to&&c3.to.length||(c3.to=[]),c3.to.push(c0.string());break;case 4:c3.line=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("content"))throw c9.ProtocolError("missing required 'content'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.fromUser))return"fromUser: string expected";var c1=c10.MessageContent.verify(c0.content);if(c1)return"content."+c1;if(null!=c0.to&&c0.hasOwnProperty("to")){if(!Array.isArray(c0.to))return"to: array expected";for(var c2=0;c2>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.target&&c3.target.length||(c3.target=[]),c3.target.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";if(null!=c0.target&&c0.hasOwnProperty("target")){if(!Array.isArray(c0.target))return"target: array expected";for(var c1=0;c1>>0,c0.messageId.high>>>0).toNumber())),c0.target){if(!Array.isArray(c0.target))throw TypeError(".RecallMultiMessage.target: array expected");c1.target=[];for(var c2=0;c2>>0,c0.messageId.high>>>0).toNumber():c0.messageId),c0.target&&c0.target.length){c2.target=[];for(var c4=0;c4>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.content=c10.MessageContent.decode(c0,c0.uint32());break;case 3:c3.distribute=c0.int32();break;case 4:c3.updateTime=c0.int32();break;case 5:c3.meshLocal=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("content"))throw c9.ProtocolError("missing required 'content'",{instance:c3});if(!c3.hasOwnProperty("distribute"))throw c9.ProtocolError("missing required 'distribute'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";var c1=c10.MessageContent.verify(c0.content);return c1?"content."+c1:c9.isInteger(c0.distribute)?null!=c0.updateTime&&c0.hasOwnProperty("updateTime")&&!c9.isInteger(c0.updateTime)?"updateTime: integer expected":null!=c0.meshLocal&&c0.hasOwnProperty("meshLocal")&&!c9.isInteger(c0.meshLocal)?"meshLocal: integer expected":null:"distribute: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UpdateMessageContent)return c0;var c1=new c10.UpdateMessageContent;if(null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.content){if("object"!==(0,c3.default)(c0.content))throw TypeError(".UpdateMessageContent.content: object expected");c1.content=c10.MessageContent.fromObject(c0.content)}return null!=c0.distribute&&(c1.distribute=0|c0.distribute),null!=c0.updateTime&&(c1.updateTime=0|c0.updateTime),null!=c0.meshLocal&&(c1.meshLocal=0|c0.meshLocal),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;c2.content=null,c2.distribute=0,c2.updateTime=0,c2.meshLocal=0}return null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.content&&c0.hasOwnProperty("content")&&(c2.content=c10.MessageContent.toObject(c0.content,c1)),null!=c0.distribute&&c0.hasOwnProperty("distribute")&&(c2.distribute=c0.distribute),null!=c0.updateTime&&c0.hasOwnProperty("updateTime")&&(c2.updateTime=c0.updateTime),null!=c0.meshLocal&&c0.hasOwnProperty("meshLocal")&&(c2.meshLocal=c0.meshLocal),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.FileRecord=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.fromUser=c0.string();break;case 3:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 4:c3.name=c0.string();break;case 5:c3.url=c0.string();break;case 6:c3.size=c0.int32();break;case 7:c3.downloadCount=c0.int32();break;case 8:c3.dt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("url"))throw c9.ProtocolError("missing required 'url'",{instance:c3});if(!c3.hasOwnProperty("size"))throw c9.ProtocolError("missing required 'size'",{instance:c3});if(!c3.hasOwnProperty("dt"))throw c9.ProtocolError("missing required 'dt'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";if(!c9.isString(c0.fromUser))return"fromUser: string expected";if(null!=c0.conversation&&c0.hasOwnProperty("conversation")){var c1=c10.Conversation.verify(c0.conversation);if(c1)return"conversation."+c1}return null!=c0.name&&c0.hasOwnProperty("name")&&!c9.isString(c0.name)?"name: string expected":c9.isString(c0.url)?c9.isInteger(c0.size)?null!=c0.downloadCount&&c0.hasOwnProperty("downloadCount")&&!c9.isInteger(c0.downloadCount)?"downloadCount: integer expected":c9.isInteger(c0.dt)||c0.dt&&c9.isInteger(c0.dt.low)&&c9.isInteger(c0.dt.high)?null:"dt: integer|Long expected":"size: integer expected":"url: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.FileRecord)return c0;var c1=new c10.FileRecord;if(null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".FileRecord.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.name&&(c1.name=String(c0.name)),null!=c0.url&&(c1.url=String(c0.url)),null!=c0.size&&(c1.size=0|c0.size),null!=c0.downloadCount&&(c1.downloadCount=0|c0.downloadCount),null!=c0.dt&&(c9.Long?(c1.dt=c9.Long.fromValue(c0.dt)).unsigned=!1:"string"==typeof c0.dt?c1.dt=parseInt(c0.dt,10):"number"==typeof c0.dt?c1.dt=c0.dt:"object"===(0,c3.default)(c0.dt)&&(c1.dt=new c9.LongBits(c0.dt.low>>>0,c0.dt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;if(c2.fromUser="",c2.conversation=null,c2.name="",c2.url="",c2.size=0,c2.downloadCount=0,c9.Long){c3=new c9.Long(0,0,!1);c2.dt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.dt=c1.longs===String?"0":0}return null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.name&&c0.hasOwnProperty("name")&&(c2.name=c0.name),null!=c0.url&&c0.hasOwnProperty("url")&&(c2.url=c0.url),null!=c0.size&&c0.hasOwnProperty("size")&&(c2.size=c0.size),null!=c0.downloadCount&&c0.hasOwnProperty("downloadCount")&&(c2.downloadCount=c0.downloadCount),null!=c0.dt&&c0.hasOwnProperty("dt")&&("number"==typeof c0.dt?c2.dt=c1.longs===String?String(c0.dt):c0.dt:c2.dt=c1.longs===String?c9.Long.prototype.toString.call(c0.dt):c1.longs===Number?new c9.LongBits(c0.dt.low>>>0,c0.dt.high>>>0).toNumber():c0.dt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.LoadFileRecordReq=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.messageId=c0.int64();break;case 3:c3.count=c0.int32();break;case 4:c3.from=c0.string();break;case 5:c3.order=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("count"))throw c9.ProtocolError("missing required 'count'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.conversation&&c0.hasOwnProperty("conversation")){var c1=c10.Conversation.verify(c0.conversation);if(c1)return"conversation."+c1}return c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)?c9.isInteger(c0.count)?null!=c0.from&&c0.hasOwnProperty("from")&&!c9.isString(c0.from)?"from: string expected":null!=c0.order&&c0.hasOwnProperty("order")&&!c9.isInteger(c0.order)?"order: integer expected":null:"count: integer expected":"messageId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.LoadFileRecordReq)return c0;var c1=new c10.LoadFileRecordReq;if(null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".LoadFileRecordReq.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.count&&(c1.count=0|c0.count),null!=c0.from&&(c1.from=String(c0.from)),null!=c0.order&&(c1.order=0|c0.order),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.conversation=null,c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;c2.count=0,c2.from="",c2.order=0}return null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),null!=c0.from&&c0.hasOwnProperty("from")&&(c2.from=c0.from),null!=c0.order&&c0.hasOwnProperty("order")&&(c2.order=c0.order),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.LoadFileRecordRes=function(){function c0(c0){if(this.record=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.record&&c3.record.length||(c3.record=[]),c3.record.push(c10.FileRecord.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.record&&c0.hasOwnProperty("record")){if(!Array.isArray(c0.record))return"record: array expected";for(var c1=0;c1>>3){case 1:c3.keyword=c0.string();break;case 2:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 3:c3.messageId=c0.int64();break;case 4:c3.count=c0.int32();break;case 5:c3.from=c0.string();break;case 6:c3.order=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("keyword"))throw c9.ProtocolError("missing required 'keyword'",{instance:c3});if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("count"))throw c9.ProtocolError("missing required 'count'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.keyword))return"keyword: string expected";if(null!=c0.conversation&&c0.hasOwnProperty("conversation")){var c1=c10.Conversation.verify(c0.conversation);if(c1)return"conversation."+c1}return c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)?c9.isInteger(c0.count)?null!=c0.from&&c0.hasOwnProperty("from")&&!c9.isString(c0.from)?"from: string expected":null!=c0.order&&c0.hasOwnProperty("order")&&!c9.isInteger(c0.order)?"order: integer expected":null:"count: integer expected":"messageId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.SearchFileRecordReq)return c0;var c1=new c10.SearchFileRecordReq;if(null!=c0.keyword&&(c1.keyword=String(c0.keyword)),null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".SearchFileRecordReq.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.count&&(c1.count=0|c0.count),null!=c0.from&&(c1.from=String(c0.from)),null!=c0.order&&(c1.order=0|c0.order),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.keyword="",c2.conversation=null,c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;c2.count=0,c2.from="",c2.order=0}return null!=c0.keyword&&c0.hasOwnProperty("keyword")&&(c2.keyword=c0.keyword),null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),null!=c0.from&&c0.hasOwnProperty("from")&&(c2.from=c0.from),null!=c0.order&&c0.hasOwnProperty("order")&&(c2.order=c0.order),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ConferenceRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.sessionId=c0.int64();break;case 2:c3.request=c0.string();break;case 3:c3.data=c0.string();break;case 4:c3.roomId=c0.string();break;case 5:c3.advance=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("request"))throw c9.ProtocolError("missing required 'request'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.sessionId&&c0.hasOwnProperty("sessionId")&&!(c9.isInteger(c0.sessionId)||c0.sessionId&&c9.isInteger(c0.sessionId.low)&&c9.isInteger(c0.sessionId.high))?"sessionId: integer|Long expected":c9.isString(c0.request)?null!=c0.data&&c0.hasOwnProperty("data")&&!c9.isString(c0.data)?"data: string expected":null!=c0.roomId&&c0.hasOwnProperty("roomId")&&!c9.isString(c0.roomId)?"roomId: string expected":null!=c0.advance&&c0.hasOwnProperty("advance")&&!c9.isInteger(c0.advance)?"advance: integer expected":null:"request: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConferenceRequest)return c0;var c1=new c10.ConferenceRequest;return null!=c0.sessionId&&(c9.Long?(c1.sessionId=c9.Long.fromValue(c0.sessionId)).unsigned=!1:"string"==typeof c0.sessionId?c1.sessionId=parseInt(c0.sessionId,10):"number"==typeof c0.sessionId?c1.sessionId=c0.sessionId:"object"===(0,c3.default)(c0.sessionId)&&(c1.sessionId=new c9.LongBits(c0.sessionId.low>>>0,c0.sessionId.high>>>0).toNumber())),null!=c0.request&&(c1.request=String(c0.request)),null!=c0.data&&(c1.data=String(c0.data)),null!=c0.roomId&&(c1.roomId=String(c0.roomId)),null!=c0.advance&&(c1.advance=0|c0.advance),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.sessionId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.sessionId=c1.longs===String?"0":0;c2.request="",c2.data="",c2.roomId="",c2.advance=0}return null!=c0.sessionId&&c0.hasOwnProperty("sessionId")&&("number"==typeof c0.sessionId?c2.sessionId=c1.longs===String?String(c0.sessionId):c0.sessionId:c2.sessionId=c1.longs===String?c9.Long.prototype.toString.call(c0.sessionId):c1.longs===Number?new c9.LongBits(c0.sessionId.low>>>0,c0.sessionId.high>>>0).toNumber():c0.sessionId),null!=c0.request&&c0.hasOwnProperty("request")&&(c2.request=c0.request),null!=c0.data&&c0.hasOwnProperty("data")&&(c2.data=c0.data),null!=c0.roomId&&c0.hasOwnProperty("roomId")&&(c2.roomId=c0.roomId),null!=c0.advance&&c0.hasOwnProperty("advance")&&(c2.advance=c0.advance),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ConfInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.roomId=c0.string();break;case 2:c3.description=c0.string();break;case 3:c3.serverId=c0.string();break;case 4:c3.pin=c0.string();break;case 5:c3.publishers=c0.int32();break;case 6:c3.numPublisher=c0.int32();break;case 7:c3.bitrate=c0.int32();break;case 8:c3.advance=c0.int32();break;case 9:c3.record=c0.int32();break;case 10:c3.permanent=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("roomId"))throw c9.ProtocolError("missing required 'roomId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.roomId)?null!=c0.description&&c0.hasOwnProperty("description")&&!c9.isString(c0.description)?"description: string expected":null!=c0.serverId&&c0.hasOwnProperty("serverId")&&!c9.isString(c0.serverId)?"serverId: string expected":null!=c0.pin&&c0.hasOwnProperty("pin")&&!c9.isString(c0.pin)?"pin: string expected":null!=c0.publishers&&c0.hasOwnProperty("publishers")&&!c9.isInteger(c0.publishers)?"publishers: integer expected":null!=c0.numPublisher&&c0.hasOwnProperty("numPublisher")&&!c9.isInteger(c0.numPublisher)?"numPublisher: integer expected":null!=c0.bitrate&&c0.hasOwnProperty("bitrate")&&!c9.isInteger(c0.bitrate)?"bitrate: integer expected":null!=c0.advance&&c0.hasOwnProperty("advance")&&!c9.isInteger(c0.advance)?"advance: integer expected":null!=c0.record&&c0.hasOwnProperty("record")&&!c9.isInteger(c0.record)?"record: integer expected":null!=c0.permanent&&c0.hasOwnProperty("permanent")&&!c9.isInteger(c0.permanent)?"permanent: integer expected":null:"roomId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConfInfo)return c0;var c1=new c10.ConfInfo;return null!=c0.roomId&&(c1.roomId=String(c0.roomId)),null!=c0.description&&(c1.description=String(c0.description)),null!=c0.serverId&&(c1.serverId=String(c0.serverId)),null!=c0.pin&&(c1.pin=String(c0.pin)),null!=c0.publishers&&(c1.publishers=0|c0.publishers),null!=c0.numPublisher&&(c1.numPublisher=0|c0.numPublisher),null!=c0.bitrate&&(c1.bitrate=0|c0.bitrate),null!=c0.advance&&(c1.advance=0|c0.advance),null!=c0.record&&(c1.record=0|c0.record),null!=c0.permanent&&(c1.permanent=0|c0.permanent),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.roomId="",c2.description="",c2.serverId="",c2.pin="",c2.publishers=0,c2.numPublisher=0,c2.bitrate=0,c2.advance=0,c2.record=0,c2.permanent=0),null!=c0.roomId&&c0.hasOwnProperty("roomId")&&(c2.roomId=c0.roomId),null!=c0.description&&c0.hasOwnProperty("description")&&(c2.description=c0.description),null!=c0.serverId&&c0.hasOwnProperty("serverId")&&(c2.serverId=c0.serverId),null!=c0.pin&&c0.hasOwnProperty("pin")&&(c2.pin=c0.pin),null!=c0.publishers&&c0.hasOwnProperty("publishers")&&(c2.publishers=c0.publishers),null!=c0.numPublisher&&c0.hasOwnProperty("numPublisher")&&(c2.numPublisher=c0.numPublisher),null!=c0.bitrate&&c0.hasOwnProperty("bitrate")&&(c2.bitrate=c0.bitrate),null!=c0.advance&&c0.hasOwnProperty("advance")&&(c2.advance=c0.advance),null!=c0.record&&c0.hasOwnProperty("record")&&(c2.record=c0.record),null!=c0.permanent&&c0.hasOwnProperty("permanent")&&(c2.permanent=c0.permanent),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ConfInfos=function(){function c0(c0){if(this.info=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.info&&c3.info.length||(c3.info=[]),c3.info.push(c10.ConfInfo.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.info&&c0.hasOwnProperty("info")){if(!Array.isArray(c0.info))return"info: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.string();break;case 2:c3.mid=c0.string();break;case 3:c3.codec=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("mid"))throw c9.ProtocolError("missing required 'mid'",{instance:c3});if(!c3.hasOwnProperty("codec"))throw c9.ProtocolError("missing required 'codec'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.type)?c9.isString(c0.mid)?c9.isString(c0.codec)?null:"codec: string expected":"mid: string expected":"type: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConfStream)return c0;var c1=new c10.ConfStream;return null!=c0.type&&(c1.type=String(c0.type)),null!=c0.mid&&(c1.mid=String(c0.mid)),null!=c0.codec&&(c1.codec=String(c0.codec)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.type="",c2.mid="",c2.codec=""),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.mid&&c0.hasOwnProperty("mid")&&(c2.mid=c0.mid),null!=c0.codec&&c0.hasOwnProperty("codec")&&(c2.codec=c0.codec),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ConfParticipant=function(){function c0(c0){if(this.stream=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.userId=c0.string();break;case 2:c3.publisher=c0.int32();break;case 3:c3.stream&&c3.stream.length||(c3.stream=[]),c3.stream.push(c10.ConfStream.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("userId"))throw c9.ProtocolError("missing required 'userId'",{instance:c3});if(!c3.hasOwnProperty("publisher"))throw c9.ProtocolError("missing required 'publisher'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.userId))return"userId: string expected";if(!c9.isInteger(c0.publisher))return"publisher: integer expected";if(null!=c0.stream&&c0.hasOwnProperty("stream")){if(!Array.isArray(c0.stream))return"stream: array expected";for(var c1=0;c1>>3==1)c3.participant&&c3.participant.length||(c3.participant=[]),c3.participant.push(c10.ConfParticipant.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.participant&&c0.hasOwnProperty("participant")){if(!Array.isArray(c0.participant))return"participant: array expected";for(var c1=0;c1>>3){case 1:c3.roomId=c0.string();break;case 2:c3.publisherId=c0.string();break;case 3:c3.host=c0.string();break;case 4:c3.audioPort=c0.int32();break;case 5:c3.audioPt=c0.int32();break;case 6:c3.audioSsrc=c0.int64();break;case 7:c3.videoPort=c0.int32();break;case 8:c3.videoPt=c0.int32();break;case 9:c3.videoSsrc=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("roomId"))throw c9.ProtocolError("missing required 'roomId'",{instance:c3});if(!c3.hasOwnProperty("publisherId"))throw c9.ProtocolError("missing required 'publisherId'",{instance:c3});if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.roomId)?c9.isString(c0.publisherId)?c9.isString(c0.host)?null!=c0.audioPort&&c0.hasOwnProperty("audioPort")&&!c9.isInteger(c0.audioPort)?"audioPort: integer expected":null!=c0.audioPt&&c0.hasOwnProperty("audioPt")&&!c9.isInteger(c0.audioPt)?"audioPt: integer expected":null!=c0.audioSsrc&&c0.hasOwnProperty("audioSsrc")&&!(c9.isInteger(c0.audioSsrc)||c0.audioSsrc&&c9.isInteger(c0.audioSsrc.low)&&c9.isInteger(c0.audioSsrc.high))?"audioSsrc: integer|Long expected":null!=c0.videoPort&&c0.hasOwnProperty("videoPort")&&!c9.isInteger(c0.videoPort)?"videoPort: integer expected":null!=c0.videoPt&&c0.hasOwnProperty("videoPt")&&!c9.isInteger(c0.videoPt)?"videoPt: integer expected":null!=c0.videoSsrc&&c0.hasOwnProperty("videoSsrc")&&!(c9.isInteger(c0.videoSsrc)||c0.videoSsrc&&c9.isInteger(c0.videoSsrc.low)&&c9.isInteger(c0.videoSsrc.high))?"videoSsrc: integer|Long expected":null:"host: string expected":"publisherId: string expected":"roomId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConfRtpForwardReq)return c0;var c1=new c10.ConfRtpForwardReq;return null!=c0.roomId&&(c1.roomId=String(c0.roomId)),null!=c0.publisherId&&(c1.publisherId=String(c0.publisherId)),null!=c0.host&&(c1.host=String(c0.host)),null!=c0.audioPort&&(c1.audioPort=0|c0.audioPort),null!=c0.audioPt&&(c1.audioPt=0|c0.audioPt),null!=c0.audioSsrc&&(c9.Long?(c1.audioSsrc=c9.Long.fromValue(c0.audioSsrc)).unsigned=!1:"string"==typeof c0.audioSsrc?c1.audioSsrc=parseInt(c0.audioSsrc,10):"number"==typeof c0.audioSsrc?c1.audioSsrc=c0.audioSsrc:"object"===(0,c3.default)(c0.audioSsrc)&&(c1.audioSsrc=new c9.LongBits(c0.audioSsrc.low>>>0,c0.audioSsrc.high>>>0).toNumber())),null!=c0.videoPort&&(c1.videoPort=0|c0.videoPort),null!=c0.videoPt&&(c1.videoPt=0|c0.videoPt),null!=c0.videoSsrc&&(c9.Long?(c1.videoSsrc=c9.Long.fromValue(c0.videoSsrc)).unsigned=!1:"string"==typeof c0.videoSsrc?c1.videoSsrc=parseInt(c0.videoSsrc,10):"number"==typeof c0.videoSsrc?c1.videoSsrc=c0.videoSsrc:"object"===(0,c3.default)(c0.videoSsrc)&&(c1.videoSsrc=new c9.LongBits(c0.videoSsrc.low>>>0,c0.videoSsrc.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.roomId="",c2.publisherId="",c2.host="",c2.audioPort=0,c2.audioPt=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.audioSsrc=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.audioSsrc=c1.longs===String?"0":0;if(c2.videoPort=0,c2.videoPt=0,c9.Long){c3=new c9.Long(0,0,!1);c2.videoSsrc=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.videoSsrc=c1.longs===String?"0":0}return null!=c0.roomId&&c0.hasOwnProperty("roomId")&&(c2.roomId=c0.roomId),null!=c0.publisherId&&c0.hasOwnProperty("publisherId")&&(c2.publisherId=c0.publisherId),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),null!=c0.audioPort&&c0.hasOwnProperty("audioPort")&&(c2.audioPort=c0.audioPort),null!=c0.audioPt&&c0.hasOwnProperty("audioPt")&&(c2.audioPt=c0.audioPt),null!=c0.audioSsrc&&c0.hasOwnProperty("audioSsrc")&&("number"==typeof c0.audioSsrc?c2.audioSsrc=c1.longs===String?String(c0.audioSsrc):c0.audioSsrc:c2.audioSsrc=c1.longs===String?c9.Long.prototype.toString.call(c0.audioSsrc):c1.longs===Number?new c9.LongBits(c0.audioSsrc.low>>>0,c0.audioSsrc.high>>>0).toNumber():c0.audioSsrc),null!=c0.videoPort&&c0.hasOwnProperty("videoPort")&&(c2.videoPort=c0.videoPort),null!=c0.videoPt&&c0.hasOwnProperty("videoPt")&&(c2.videoPt=c0.videoPt),null!=c0.videoSsrc&&c0.hasOwnProperty("videoSsrc")&&("number"==typeof c0.videoSsrc?c2.videoSsrc=c1.longs===String?String(c0.videoSsrc):c0.videoSsrc:c2.videoSsrc=c1.longs===String?c9.Long.prototype.toString.call(c0.videoSsrc):c1.longs===Number?new c9.LongBits(c0.videoSsrc.low>>>0,c0.videoSsrc.high>>>0).toNumber():c0.videoSsrc),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RecallMultiCastMessageRequest=function(){function c0(c0){if(this.receiver=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.receiver&&c3.receiver.length||(c3.receiver=[]),c3.receiver.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";if(null!=c0.receiver&&c0.hasOwnProperty("receiver")){if(!Array.isArray(c0.receiver))return"receiver: array expected";for(var c1=0;c1>>0,c0.messageId.high>>>0).toNumber())),c0.receiver){if(!Array.isArray(c0.receiver))throw TypeError(".RecallMultiCastMessageRequest.receiver: array expected");c1.receiver=[];for(var c2=0;c2>>0,c0.messageId.high>>>0).toNumber():c0.messageId),c0.receiver&&c0.receiver.length){c2.receiver=[];for(var c4=0;c4>>3){case 1:c3.mediaUrl=c0.string();break;case 2:c3.thumbUrl=c0.string();break;case 3:c3.width=c0.int32();break;case 4:c3.height=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("mediaUrl"))throw c9.ProtocolError("missing required 'mediaUrl'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.mediaUrl)?null!=c0.thumbUrl&&c0.hasOwnProperty("thumbUrl")&&!c9.isString(c0.thumbUrl)?"thumbUrl: string expected":null!=c0.width&&c0.hasOwnProperty("width")&&!c9.isInteger(c0.width)?"width: integer expected":null!=c0.height&&c0.hasOwnProperty("height")&&!c9.isInteger(c0.height)?"height: integer expected":null:"mediaUrl: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.MomentsMedia)return c0;var c1=new c10.MomentsMedia;return null!=c0.mediaUrl&&(c1.mediaUrl=String(c0.mediaUrl)),null!=c0.thumbUrl&&(c1.thumbUrl=String(c0.thumbUrl)),null!=c0.width&&(c1.width=0|c0.width),null!=c0.height&&(c1.height=0|c0.height),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.mediaUrl="",c2.thumbUrl="",c2.width=0,c2.height=0),null!=c0.mediaUrl&&c0.hasOwnProperty("mediaUrl")&&(c2.mediaUrl=c0.mediaUrl),null!=c0.thumbUrl&&c0.hasOwnProperty("thumbUrl")&&(c2.thumbUrl=c0.thumbUrl),null!=c0.width&&c0.hasOwnProperty("width")&&(c2.width=c0.width),null!=c0.height&&c0.hasOwnProperty("height")&&(c2.height=c0.height),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.MomentsFeed=function(){function c0(c0){if(this.medias=[],this.mentionedUsers=[],this.toUsers=[],this.excludeUsers=[],this.comments=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.feedId=c0.int64();break;case 2:c3.sender=c0.string();break;case 3:c3.type=c0.int32();break;case 4:c3.text=c0.string();break;case 5:c3.medias&&c3.medias.length||(c3.medias=[]),c3.medias.push(c10.MomentsMedia.decode(c0,c0.uint32()));break;case 6:c3.mentionedUsers&&c3.mentionedUsers.length||(c3.mentionedUsers=[]),c3.mentionedUsers.push(c0.string());break;case 7:c3.toUsers&&c3.toUsers.length||(c3.toUsers=[]),c3.toUsers.push(c0.string());break;case 8:c3.excludeUsers&&c3.excludeUsers.length||(c3.excludeUsers=[]),c3.excludeUsers.push(c0.string());break;case 9:c3.serverTime=c0.int64();break;case 10:c3.extra=c0.string();break;case 11:c3.comments&&c3.comments.length||(c3.comments=[]),c3.comments.push(c10.MomentsComment.decode(c0,c0.uint32()));break;case 12:c3.hasMore=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("feedId"))throw c9.ProtocolError("missing required 'feedId'",{instance:c3});if(!c3.hasOwnProperty("sender"))throw c9.ProtocolError("missing required 'sender'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("serverTime"))throw c9.ProtocolError("missing required 'serverTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.feedId)||c0.feedId&&c9.isInteger(c0.feedId.low)&&c9.isInteger(c0.feedId.high)))return"feedId: integer|Long expected";if(!c9.isString(c0.sender))return"sender: string expected";if(!c9.isInteger(c0.type))return"type: integer expected";if(null!=c0.text&&c0.hasOwnProperty("text")&&!c9.isString(c0.text))return"text: string expected";if(null!=c0.medias&&c0.hasOwnProperty("medias")){if(!Array.isArray(c0.medias))return"medias: array expected";for(var c1=0;c1>>0,c0.feedId.high>>>0).toNumber())),null!=c0.sender&&(c1.sender=String(c0.sender)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.text&&(c1.text=String(c0.text)),c0.medias){if(!Array.isArray(c0.medias))throw TypeError(".MomentsFeed.medias: array expected");c1.medias=[];for(var c2=0;c2>>0,c0.serverTime.high>>>0).toNumber())),null!=c0.extra&&(c1.extra=String(c0.extra)),c0.comments){if(!Array.isArray(c0.comments))throw TypeError(".MomentsFeed.comments: array expected");c1.comments=[];for(c2=0;c2>>0,c0.feedId.high>>>0).toNumber():c0.feedId),null!=c0.sender&&c0.hasOwnProperty("sender")&&(c2.sender=c0.sender),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.text&&c0.hasOwnProperty("text")&&(c2.text=c0.text),c0.medias&&c0.medias.length){c2.medias=[];for(var c4=0;c4>>0,c0.serverTime.high>>>0).toNumber():c0.serverTime),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c0.comments&&c0.comments.length){c2.comments=[];for(c4=0;c4>>3==1)c3.feeds&&c3.feeds.length||(c3.feeds=[]),c3.feeds.push(c10.MomentsFeed.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.feeds&&c0.hasOwnProperty("feeds")){if(!Array.isArray(c0.feeds))return"feeds: array expected";for(var c1=0;c1>>3==1)c3.comments&&c3.comments.length||(c3.comments=[]),c3.comments.push(c10.MomentsComment.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.comments&&c0.hasOwnProperty("comments")){if(!Array.isArray(c0.comments))return"comments: array expected";for(var c1=0;c1>>3){case 1:c3.feedId=c0.int64();break;case 2:c3.commentId=c0.int64();break;case 3:c3.replyId=c0.int64();break;case 4:c3.sender=c0.string();break;case 5:c3.type=c0.int32();break;case 6:c3.text=c0.string();break;case 7:c3.replyTo=c0.string();break;case 8:c3.serverTime=c0.int64();break;case 9:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("feedId"))throw c9.ProtocolError("missing required 'feedId'",{instance:c3});if(!c3.hasOwnProperty("commentId"))throw c9.ProtocolError("missing required 'commentId'",{instance:c3});if(!c3.hasOwnProperty("sender"))throw c9.ProtocolError("missing required 'sender'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("serverTime"))throw c9.ProtocolError("missing required 'serverTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.feedId)||c0.feedId&&c9.isInteger(c0.feedId.low)&&c9.isInteger(c0.feedId.high)?c9.isInteger(c0.commentId)||c0.commentId&&c9.isInteger(c0.commentId.low)&&c9.isInteger(c0.commentId.high)?null!=c0.replyId&&c0.hasOwnProperty("replyId")&&!(c9.isInteger(c0.replyId)||c0.replyId&&c9.isInteger(c0.replyId.low)&&c9.isInteger(c0.replyId.high))?"replyId: integer|Long expected":c9.isString(c0.sender)?c9.isInteger(c0.type)?null!=c0.text&&c0.hasOwnProperty("text")&&!c9.isString(c0.text)?"text: string expected":null!=c0.replyTo&&c0.hasOwnProperty("replyTo")&&!c9.isString(c0.replyTo)?"replyTo: string expected":c9.isInteger(c0.serverTime)||c0.serverTime&&c9.isInteger(c0.serverTime.low)&&c9.isInteger(c0.serverTime.high)?null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"serverTime: integer|Long expected":"type: integer expected":"sender: string expected":"commentId: integer|Long expected":"feedId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.MomentsComment)return c0;var c1=new c10.MomentsComment;return null!=c0.feedId&&(c9.Long?(c1.feedId=c9.Long.fromValue(c0.feedId)).unsigned=!1:"string"==typeof c0.feedId?c1.feedId=parseInt(c0.feedId,10):"number"==typeof c0.feedId?c1.feedId=c0.feedId:"object"===(0,c3.default)(c0.feedId)&&(c1.feedId=new c9.LongBits(c0.feedId.low>>>0,c0.feedId.high>>>0).toNumber())),null!=c0.commentId&&(c9.Long?(c1.commentId=c9.Long.fromValue(c0.commentId)).unsigned=!1:"string"==typeof c0.commentId?c1.commentId=parseInt(c0.commentId,10):"number"==typeof c0.commentId?c1.commentId=c0.commentId:"object"===(0,c3.default)(c0.commentId)&&(c1.commentId=new c9.LongBits(c0.commentId.low>>>0,c0.commentId.high>>>0).toNumber())),null!=c0.replyId&&(c9.Long?(c1.replyId=c9.Long.fromValue(c0.replyId)).unsigned=!1:"string"==typeof c0.replyId?c1.replyId=parseInt(c0.replyId,10):"number"==typeof c0.replyId?c1.replyId=c0.replyId:"object"===(0,c3.default)(c0.replyId)&&(c1.replyId=new c9.LongBits(c0.replyId.low>>>0,c0.replyId.high>>>0).toNumber())),null!=c0.sender&&(c1.sender=String(c0.sender)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.text&&(c1.text=String(c0.text)),null!=c0.replyTo&&(c1.replyTo=String(c0.replyTo)),null!=c0.serverTime&&(c9.Long?(c1.serverTime=c9.Long.fromValue(c0.serverTime)).unsigned=!1:"string"==typeof c0.serverTime?c1.serverTime=parseInt(c0.serverTime,10):"number"==typeof c0.serverTime?c1.serverTime=c0.serverTime:"object"===(0,c3.default)(c0.serverTime)&&(c1.serverTime=new c9.LongBits(c0.serverTime.low>>>0,c0.serverTime.high>>>0).toNumber())),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.feedId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.feedId=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.commentId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.commentId=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.replyId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.replyId=c1.longs===String?"0":0;if(c2.sender="",c2.type=0,c2.text="",c2.replyTo="",c9.Long){c3=new c9.Long(0,0,!1);c2.serverTime=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.serverTime=c1.longs===String?"0":0;c2.extra=""}return null!=c0.feedId&&c0.hasOwnProperty("feedId")&&("number"==typeof c0.feedId?c2.feedId=c1.longs===String?String(c0.feedId):c0.feedId:c2.feedId=c1.longs===String?c9.Long.prototype.toString.call(c0.feedId):c1.longs===Number?new c9.LongBits(c0.feedId.low>>>0,c0.feedId.high>>>0).toNumber():c0.feedId),null!=c0.commentId&&c0.hasOwnProperty("commentId")&&("number"==typeof c0.commentId?c2.commentId=c1.longs===String?String(c0.commentId):c0.commentId:c2.commentId=c1.longs===String?c9.Long.prototype.toString.call(c0.commentId):c1.longs===Number?new c9.LongBits(c0.commentId.low>>>0,c0.commentId.high>>>0).toNumber():c0.commentId),null!=c0.replyId&&c0.hasOwnProperty("replyId")&&("number"==typeof c0.replyId?c2.replyId=c1.longs===String?String(c0.replyId):c0.replyId:c2.replyId=c1.longs===String?c9.Long.prototype.toString.call(c0.replyId):c1.longs===Number?new c9.LongBits(c0.replyId.low>>>0,c0.replyId.high>>>0).toNumber():c0.replyId),null!=c0.sender&&c0.hasOwnProperty("sender")&&(c2.sender=c0.sender),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.text&&c0.hasOwnProperty("text")&&(c2.text=c0.text),null!=c0.replyTo&&c0.hasOwnProperty("replyTo")&&(c2.replyTo=c0.replyTo),null!=c0.serverTime&&c0.hasOwnProperty("serverTime")&&("number"==typeof c0.serverTime?c2.serverTime=c1.longs===String?String(c0.serverTime):c0.serverTime:c2.serverTime=c1.longs===String?c9.Long.prototype.toString.call(c0.serverTime):c1.longs===Number?new c9.LongBits(c0.serverTime.low>>>0,c0.serverTime.high>>>0).toNumber():c0.serverTime),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.LockRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.lockId=c0.string();break;case 2:c3.duration=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("lockId"))throw c9.ProtocolError("missing required 'lockId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.lockId)?null!=c0.duration&&c0.hasOwnProperty("duration")&&!(c9.isInteger(c0.duration)||c0.duration&&c9.isInteger(c0.duration.low)&&c9.isInteger(c0.duration.high))?"duration: integer|Long expected":null:"lockId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.LockRequest)return c0;var c1=new c10.LockRequest;return null!=c0.lockId&&(c1.lockId=String(c0.lockId)),null!=c0.duration&&(c9.Long?(c1.duration=c9.Long.fromValue(c0.duration)).unsigned=!1:"string"==typeof c0.duration?c1.duration=parseInt(c0.duration,10):"number"==typeof c0.duration?c1.duration=c0.duration:"object"===(0,c3.default)(c0.duration)&&(c1.duration=new c9.LongBits(c0.duration.low>>>0,c0.duration.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.lockId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.duration=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.duration=c1.longs===String?"0":0;return null!=c0.lockId&&c0.hasOwnProperty("lockId")&&(c2.lockId=c0.lockId),null!=c0.duration&&c0.hasOwnProperty("duration")&&("number"==typeof c0.duration?c2.duration=c1.longs===String?String(c0.duration):c0.duration:c2.duration=c1.longs===String?c9.Long.prototype.toString.call(c0.duration):c1.longs===Number?new c9.LongBits(c0.duration.low>>>0,c0.duration.high>>>0).toNumber():c0.duration),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PresenceOnlineState=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.platform=c0.int32();break;case 2:c3.state=c0.int32();break;case 3:c3.lastSeen=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("platform"))throw c9.ProtocolError("missing required 'platform'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.platform)?c9.isInteger(c0.state)?null!=c0.lastSeen&&c0.hasOwnProperty("lastSeen")&&!(c9.isInteger(c0.lastSeen)||c0.lastSeen&&c9.isInteger(c0.lastSeen.low)&&c9.isInteger(c0.lastSeen.high))?"lastSeen: integer|Long expected":null:"state: integer expected":"platform: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PresenceOnlineState)return c0;var c1=new c10.PresenceOnlineState;return null!=c0.platform&&(c1.platform=0|c0.platform),null!=c0.state&&(c1.state=0|c0.state),null!=c0.lastSeen&&(c9.Long?(c1.lastSeen=c9.Long.fromValue(c0.lastSeen)).unsigned=!1:"string"==typeof c0.lastSeen?c1.lastSeen=parseInt(c0.lastSeen,10):"number"==typeof c0.lastSeen?c1.lastSeen=c0.lastSeen:"object"===(0,c3.default)(c0.lastSeen)&&(c1.lastSeen=new c9.LongBits(c0.lastSeen.low>>>0,c0.lastSeen.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.platform=0,c2.state=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.lastSeen=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.lastSeen=c1.longs===String?"0":0;return null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.lastSeen&&c0.hasOwnProperty("lastSeen")&&("number"==typeof c0.lastSeen?c2.lastSeen=c1.longs===String?String(c0.lastSeen):c0.lastSeen:c2.lastSeen=c1.longs===String?c9.Long.prototype.toString.call(c0.lastSeen):c1.longs===Number?new c9.LongBits(c0.lastSeen.low>>>0,c0.lastSeen.high>>>0).toNumber():c0.lastSeen),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PresenceOnlineNotify=function(){function c0(c0){if(this.state=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.userId=c0.string();break;case 2:c3.customState=c0.int32();break;case 3:c3.customText=c0.string();break;case 4:c3.state&&c3.state.length||(c3.state=[]),c3.state.push(c10.PresenceOnlineState.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("userId"))throw c9.ProtocolError("missing required 'userId'",{instance:c3});if(!c3.hasOwnProperty("customState"))throw c9.ProtocolError("missing required 'customState'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.userId))return"userId: string expected";if(!c9.isInteger(c0.customState))return"customState: integer expected";if(null!=c0.customText&&c0.hasOwnProperty("customText")&&!c9.isString(c0.customText))return"customText: string expected";if(null!=c0.state&&c0.hasOwnProperty("state")){if(!Array.isArray(c0.state))return"state: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.int32();break;case 2:c3.target&&c3.target.length||(c3.target=[]),c3.target.push(c0.string());break;case 3:c3.duration=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isInteger(c0.type))return"type: integer expected";if(null!=c0.target&&c0.hasOwnProperty("target")){if(!Array.isArray(c0.target))return"target: array expected";for(var c1=0;c1>>3==1)c3.notify&&c3.notify.length||(c3.notify=[]),c3.notify.push(c10.PresenceOnlineNotify.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.notify&&c0.hasOwnProperty("notify")){if(!Array.isArray(c0.notify))return"notify: array expected";for(var c1=0;c1>>3){case 1:c3.userId=c0.string();break;case 2:c3.pubkey=c0.string();break;case 3:c3.targetId=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("userId"))throw c9.ProtocolError("missing required 'userId'",{instance:c3});if(!c3.hasOwnProperty("pubkey"))throw c9.ProtocolError("missing required 'pubkey'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.userId)?c9.isString(c0.pubkey)?null!=c0.targetId&&c0.hasOwnProperty("targetId")&&!c9.isString(c0.targetId)?"targetId: string expected":null:"pubkey: string expected":"userId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.CreateSecretChatRequest)return c0;var c1=new c10.CreateSecretChatRequest;return null!=c0.userId&&(c1.userId=String(c0.userId)),null!=c0.pubkey&&(c1.pubkey=String(c0.pubkey)),null!=c0.targetId&&(c1.targetId=String(c0.targetId)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.userId="",c2.pubkey="",c2.targetId=""),null!=c0.userId&&c0.hasOwnProperty("userId")&&(c2.userId=c0.userId),null!=c0.pubkey&&c0.hasOwnProperty("pubkey")&&(c2.pubkey=c0.pubkey),null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.CreateSecretChatResponse=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetId=c0.string();break;case 2:c3.line=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetId"))throw c9.ProtocolError("missing required 'targetId'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetId)?c9.isInteger(c0.line)?null:"line: integer expected":"targetId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.CreateSecretChatResponse)return c0;var c1=new c10.CreateSecretChatResponse;return null!=c0.targetId&&(c1.targetId=String(c0.targetId)),null!=c0.line&&(c1.line=0|c0.line),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.targetId="",c2.line=0),null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.SecretChatInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetId=c0.string();break;case 2:c3.from=c0.string();break;case 3:c3.to=c0.string();break;case 4:c3.state=c0.int32();break;case 5:c3.createDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetId"))throw c9.ProtocolError("missing required 'targetId'",{instance:c3});if(!c3.hasOwnProperty("from"))throw c9.ProtocolError("missing required 'from'",{instance:c3});if(!c3.hasOwnProperty("to"))throw c9.ProtocolError("missing required 'to'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});if(!c3.hasOwnProperty("createDt"))throw c9.ProtocolError("missing required 'createDt'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetId)?c9.isString(c0.from)?c9.isString(c0.to)?c9.isInteger(c0.state)?c9.isInteger(c0.createDt)||c0.createDt&&c9.isInteger(c0.createDt.low)&&c9.isInteger(c0.createDt.high)?null:"createDt: integer|Long expected":"state: integer expected":"to: string expected":"from: string expected":"targetId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.SecretChatInfo)return c0;var c1=new c10.SecretChatInfo;return null!=c0.targetId&&(c1.targetId=String(c0.targetId)),null!=c0.from&&(c1.from=String(c0.from)),null!=c0.to&&(c1.to=String(c0.to)),null!=c0.state&&(c1.state=0|c0.state),null!=c0.createDt&&(c9.Long?(c1.createDt=c9.Long.fromValue(c0.createDt)).unsigned=!1:"string"==typeof c0.createDt?c1.createDt=parseInt(c0.createDt,10):"number"==typeof c0.createDt?c1.createDt=c0.createDt:"object"===(0,c3.default)(c0.createDt)&&(c1.createDt=new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.targetId="",c2.from="",c2.to="",c2.state=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.createDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.createDt=c1.longs===String?"0":0;return null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),null!=c0.from&&c0.hasOwnProperty("from")&&(c2.from=c0.from),null!=c0.to&&c0.hasOwnProperty("to")&&(c2.to=c0.to),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.createDt&&c0.hasOwnProperty("createDt")&&("number"==typeof c0.createDt?c2.createDt=c1.longs===String?String(c0.createDt):c0.createDt:c2.createDt=c1.longs===String?c9.Long.prototype.toString.call(c0.createDt):c1.longs===Number?new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber():c0.createDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.DeleteSecretChatMessage=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.messageId=c0.int64();break;case 3:c3.serverTimestamp=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("conversation"))throw c9.ProtocolError("missing required 'conversation'",{instance:c3});if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("serverTimestamp"))throw c9.ProtocolError("missing required 'serverTimestamp'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";var c1=c10.Conversation.verify(c0.conversation);return c1?"conversation."+c1:c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)?c9.isInteger(c0.serverTimestamp)||c0.serverTimestamp&&c9.isInteger(c0.serverTimestamp.low)&&c9.isInteger(c0.serverTimestamp.high)?null:"serverTimestamp: integer|Long expected":"messageId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.DeleteSecretChatMessage)return c0;var c1=new c10.DeleteSecretChatMessage;if(null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".DeleteSecretChatMessage.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.serverTimestamp&&(c9.Long?(c1.serverTimestamp=c9.Long.fromValue(c0.serverTimestamp)).unsigned=!1:"string"==typeof c0.serverTimestamp?c1.serverTimestamp=parseInt(c0.serverTimestamp,10):"number"==typeof c0.serverTimestamp?c1.serverTimestamp=c0.serverTimestamp:"object"===(0,c3.default)(c0.serverTimestamp)&&(c1.serverTimestamp=new c9.LongBits(c0.serverTimestamp.low>>>0,c0.serverTimestamp.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.conversation=null,c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.serverTimestamp=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.serverTimestamp=c1.longs===String?"0":0}return null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.serverTimestamp&&c0.hasOwnProperty("serverTimestamp")&&("number"==typeof c0.serverTimestamp?c2.serverTimestamp=c1.longs===String?String(c0.serverTimestamp):c0.serverTimestamp:c2.serverTimestamp=c1.longs===String?c9.Long.prototype.toString.call(c0.serverTimestamp):c1.longs===Number?new c9.LongBits(c0.serverTimestamp.low>>>0,c0.serverTimestamp.high>>>0).toNumber():c0.serverTimestamp),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.AuthCodeRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetId=c0.string();break;case 2:c3.type=c0.int32();break;case 3:c3.host=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetId"))throw c9.ProtocolError("missing required 'targetId'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetId)?c9.isInteger(c0.type)?c9.isString(c0.host)?null:"host: string expected":"type: integer expected":"targetId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.AuthCodeRequest)return c0;var c1=new c10.AuthCodeRequest;return null!=c0.targetId&&(c1.targetId=String(c0.targetId)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.host&&(c1.host=String(c0.host)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.targetId="",c2.type=0,c2.host=""),null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ApplicationConfigRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.appId=c0.string();break;case 2:c3.appType=c0.int32();break;case 3:c3.timestamp=c0.int64();break;case 4:c3.nonce=c0.string();break;case 5:c3.signature=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("appId"))throw c9.ProtocolError("missing required 'appId'",{instance:c3});if(!c3.hasOwnProperty("appType"))throw c9.ProtocolError("missing required 'appType'",{instance:c3});if(!c3.hasOwnProperty("timestamp"))throw c9.ProtocolError("missing required 'timestamp'",{instance:c3});if(!c3.hasOwnProperty("nonce"))throw c9.ProtocolError("missing required 'nonce'",{instance:c3});if(!c3.hasOwnProperty("signature"))throw c9.ProtocolError("missing required 'signature'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.appId)?c9.isInteger(c0.appType)?c9.isInteger(c0.timestamp)||c0.timestamp&&c9.isInteger(c0.timestamp.low)&&c9.isInteger(c0.timestamp.high)?c9.isString(c0.nonce)?c9.isString(c0.signature)?null:"signature: string expected":"nonce: string expected":"timestamp: integer|Long expected":"appType: integer expected":"appId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ApplicationConfigRequest)return c0;var c1=new c10.ApplicationConfigRequest;return null!=c0.appId&&(c1.appId=String(c0.appId)),null!=c0.appType&&(c1.appType=0|c0.appType),null!=c0.timestamp&&(c9.Long?(c1.timestamp=c9.Long.fromValue(c0.timestamp)).unsigned=!1:"string"==typeof c0.timestamp?c1.timestamp=parseInt(c0.timestamp,10):"number"==typeof c0.timestamp?c1.timestamp=c0.timestamp:"object"===(0,c3.default)(c0.timestamp)&&(c1.timestamp=new c9.LongBits(c0.timestamp.low>>>0,c0.timestamp.high>>>0).toNumber())),null!=c0.nonce&&(c1.nonce=String(c0.nonce)),null!=c0.signature&&(c1.signature=String(c0.signature)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.appId="",c2.appType=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.timestamp=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.timestamp=c1.longs===String?"0":0;c2.nonce="",c2.signature=""}return null!=c0.appId&&c0.hasOwnProperty("appId")&&(c2.appId=c0.appId),null!=c0.appType&&c0.hasOwnProperty("appType")&&(c2.appType=c0.appType),null!=c0.timestamp&&c0.hasOwnProperty("timestamp")&&("number"==typeof c0.timestamp?c2.timestamp=c1.longs===String?String(c0.timestamp):c0.timestamp:c2.timestamp=c1.longs===String?c9.Long.prototype.toString.call(c0.timestamp):c1.longs===Number?new c9.LongBits(c0.timestamp.low>>>0,c0.timestamp.high>>>0).toNumber():c0.timestamp),null!=c0.nonce&&c0.hasOwnProperty("nonce")&&(c2.nonce=c0.nonce),null!=c0.signature&&c0.hasOwnProperty("signature")&&(c2.signature=c0.signature),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteRequestInternal=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.data=c0.bytes();break;case 2:c3.appKey=c0.string();break;case 3:c3.appId=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("data"))throw c9.ProtocolError("missing required 'data'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c0.data&&"number"==typeof c0.data.length||c9.isString(c0.data)?null!=c0.appKey&&c0.hasOwnProperty("appKey")&&!c9.isString(c0.appKey)?"appKey: string expected":null!=c0.appId&&c0.hasOwnProperty("appId")&&!c9.isString(c0.appId)?"appId: string expected":null:"data: buffer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.RouteRequestInternal)return c0;var c1=new c10.RouteRequestInternal;return null!=c0.data&&("string"==typeof c0.data?c9.base64.decode(c0.data,c1.data=c9.newBuffer(c9.base64.length(c0.data)),0):c0.data.length&&(c1.data=c0.data)),null!=c0.appKey&&(c1.appKey=String(c0.appKey)),null!=c0.appId&&(c1.appId=String(c0.appId)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c1.bytes===String?c2.data="":(c2.data=[],c1.bytes!==Array&&(c2.data=c9.newBuffer(c2.data))),c2.appKey="",c2.appId=""),null!=c0.data&&c0.hasOwnProperty("data")&&(c2.data=c1.bytes===String?c9.base64.encode(c0.data,0,c0.data.length):c1.bytes===Array?Array.prototype.slice.call(c0.data):c0.data),null!=c0.appKey&&c0.hasOwnProperty("appKey")&&(c2.appKey=c0.appKey),null!=c0.appId&&c0.hasOwnProperty("appId")&&(c2.appId=c0.appId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c0.exports=c10},7328:(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;module=__webpack_require__.nmd(module);var _isInteger=__webpack_require__(603),_isInteger2=_interopRequireDefault(_isInteger),_defineProperty=__webpack_require__(4660),_defineProperty2=_interopRequireDefault(_defineProperty),_defineProperties=__webpack_require__(8044),_defineProperties2=_interopRequireDefault(_defineProperties),_freeze=__webpack_require__(7252),_freeze2=_interopRequireDefault(_freeze),_create=__webpack_require__(6212),_create2=_interopRequireDefault(_create),_stringify=__webpack_require__(8792),_stringify2=_interopRequireDefault(_stringify),_keys=__webpack_require__(9708),_keys2=_interopRequireDefault(_keys),_promise=__webpack_require__(6224),_promise2=_interopRequireDefault(_promise),_typeof2=__webpack_require__(696),_typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(c0){return c0&&c0.__esModule?c0:{default:c0}}!function(t,e){!function(c0,c1,c2){var c3=t.protobuf=function c2(c3){var c4=c1[c3];return c4||c0[c3][0].call(c4=c1[c3]={exports:{}},c2,c4,c4.exports),c4.exports}(19);__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(9300)],__WEBPACK_AMD_DEFINE_RESULT__=function(c0){return c0&&c0.isLong&&(c3.util.Long=c0,c3.configure()),c3}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),"object"==(0,_typeof3.default)(module)&&module&&module.exports&&(module.exports=c3)}({1:[function(c0,c1){c1.exports=function(c0,c1){for(var c2=Array(arguments.length-1),c3=0,c4=2,c5=!0;c41&&"="===c0.charAt(c1);)++c2;return Math.ceil(3*c0.length)/4-c2};for(var c4=Array(64),c5=Array(123),c6=0;c6<64;)c5[c4[c6]=c6<26?c6+65:c6<52?c6+71:c6<62?c6-4:c6-59|43]=c6++;c3.encode=function(c0,c1,c2){for(var c3,c5=null,c6=[],c7=0,c8=0;c1>2],c3=(3&c9)<<4,c8=1;break;case 1:c6[c7++]=c4[c3|c9>>4],c3=(15&c9)<<2,c8=2;break;case 2:c6[c7++]=c4[c3|c9>>6],c6[c7++]=c4[63&c9],c8=0}c7>8191&&((c5||(c5=[])).push(String.fromCharCode.apply(String,c6)),c7=0)}return c8&&(c6[c7++]=c4[c3],c6[c7++]=61,1===c8&&(c6[c7++]=61)),c5?(c7&&c5.push(String.fromCharCode.apply(String,c6.slice(0,c7))),c5.join("")):String.fromCharCode.apply(String,c6.slice(0,c7))},c3.decode=function(c0,c1,c2){for(var c3,c4=c2,c6=0,c7=0;c71)break;if((c8=c5[c8])===e)throw Error("invalid encoding");switch(c6){case 0:c3=c8,c6=1;break;case 1:c1[c2++]=c3<<2|(48&c8)>>4,c3=c8,c6=2;break;case 2:c1[c2++]=(15&c3)<<4|(60&c8)>>2,c3=c8,c6=3;break;case 3:c1[c2++]=(3&c3)<<6|c8,c6=0}}if(1===c6)throw Error("invalid encoding");return c2-c4},c3.test=function(c0){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(c0)}},{}],3:[function(c0,c1){function c2(c0,c1){function c3(c0){if("string"!=typeof c0){var c1=c4();if(c2.verbose&&console.log("codegen: "+c1),c1="return "+c1,c0){for(var c6=(0,_keys2.default)(c0),c7=Array(c6.length+1),c8=Array(c6.length),c9=0;c90?0:2147483648,c2,c3);else if(isNaN(c1))c0(2143289344,c2,c3);else if(c1>34028234663852886e22)c0((c4<<31|2139095040)>>>0,c2,c3);else if(c1<11754943508222875e-54)c0((c4<<31|Math.round(c1/1401298464324817e-60))>>>0,c2,c3);else{var c5=Math.floor(Math.log(c1)/Math.LN2);c0((c4<<31|c5+127<<23|8388607&Math.round(c1*Math.pow(2,-c5)*8388608))>>>0,c2,c3)}}function c2(c0,c1,c2){var c3=c0(c1,c2),c4=2*(c3>>31)+1,c5=c3>>>23&255,c6=8388607&c3;return 255===c5?c6?NaN:c4*(1/0):0===c5?1401298464324817e-60*c4*c6:c4*Math.pow(2,c5-150)*(c6+8388608)}c0.writeFloatLE=c1.bind(null,c3),c0.writeFloatBE=c1.bind(null,c4),c0.readFloatLE=c2.bind(null,c5),c0.readFloatBE=c2.bind(null,c6)}(),"undefined"!=typeof Float64Array?function(){function c1(c0,c1,c2){c5[0]=c0,c1[c2]=c6[0],c1[c2+1]=c6[1],c1[c2+2]=c6[2],c1[c2+3]=c6[3],c1[c2+4]=c6[4],c1[c2+5]=c6[5],c1[c2+6]=c6[6],c1[c2+7]=c6[7]}function c2(c0,c1,c2){c5[0]=c0,c1[c2]=c6[7],c1[c2+1]=c6[6],c1[c2+2]=c6[5],c1[c2+3]=c6[4],c1[c2+4]=c6[3],c1[c2+5]=c6[2],c1[c2+6]=c6[1],c1[c2+7]=c6[0]}function c3(c0,c1){return c6[0]=c0[c1],c6[1]=c0[c1+1],c6[2]=c0[c1+2],c6[3]=c0[c1+3],c6[4]=c0[c1+4],c6[5]=c0[c1+5],c6[6]=c0[c1+6],c6[7]=c0[c1+7],c5[0]}function c4(c0,c1){return c6[7]=c0[c1],c6[6]=c0[c1+1],c6[5]=c0[c1+2],c6[4]=c0[c1+3],c6[3]=c0[c1+4],c6[2]=c0[c1+5],c6[1]=c0[c1+6],c6[0]=c0[c1+7],c5[0]}var c5=new Float64Array([-0]),c6=new Uint8Array(c5.buffer),c7=128===c6[7];c0.writeDoubleLE=c7?c1:c2,c0.writeDoubleBE=c7?c2:c1,c0.readDoubleLE=c7?c3:c4,c0.readDoubleBE=c7?c4:c3}():function(){function c1(c0,c1,c2,c3,c4,c5){var c6=c3<0?1:0;if(c6&&(c3=-c3),0===c3)c0(0,c4,c5+c1),c0(1/c3>0?0:2147483648,c4,c5+c2);else if(isNaN(c3))c0(0,c4,c5+c1),c0(2146959360,c4,c5+c2);else if(c3>17976931348623157e292)c0(0,c4,c5+c1),c0((c6<<31|2146435072)>>>0,c4,c5+c2);else{var c7;if(c3<22250738585072014e-324)c0((c7=c3/5e-324)>>>0,c4,c5+c1),c0((c6<<31|c7/4294967296)>>>0,c4,c5+c2);else{var c8=Math.floor(Math.log(c3)/Math.LN2);1024===c8&&(c8=1023),c0(4503599627370496*(c7=c3*Math.pow(2,-c8))>>>0,c4,c5+c1),c0((c6<<31|c8+1023<<20|1048576*c7&1048575)>>>0,c4,c5+c2)}}}function c2(c0,c1,c2,c3,c4){var c5=c0(c3,c4+c1),c6=c0(c3,c4+c2),c7=2*(c6>>31)+1,c8=c6>>>20&2047,c9=4294967296*(1048575&c6)+c5;return 2047===c8?c9?NaN:c7*(1/0):0===c8?5e-324*c7*c9:c7*Math.pow(2,c8-1075)*(c9+4503599627370496)}c0.writeDoubleLE=c1.bind(null,c3,0,4),c0.writeDoubleBE=c1.bind(null,c4,4,0),c0.readDoubleLE=c2.bind(null,c5,0,4),c0.readDoubleBE=c2.bind(null,c6,4,0)}(),c0}function c3(c0,c1,c2){c1[c2]=255&c0,c1[c2+1]=c0>>>8&255,c1[c2+2]=c0>>>16&255,c1[c2+3]=c0>>>24}function c4(c0,c1,c2){c1[c2]=c0>>>24,c1[c2+1]=c0>>>16&255,c1[c2+2]=c0>>>8&255,c1[c2+3]=255&c0}function c5(c0,c1){return(c0[c1]|c0[c1+1]<<8|c0[c1+2]<<16|c0[c1+3]<<24)>>>0}function c6(c0,c1){return(c0[c1]<<24|c0[c1+1]<<16|c0[c1+2]<<8|c0[c1+3])>>>0}c1.exports=c2(c2)},{}],7:[function(t,e,r){function n(t){try{var e=eval("quire".replace(/^/,"re"))(t);if(e&&(e.length||(0,_keys2.default)(e).length))return e}catch(t){}return null}e.exports=n},{}],8:[function(c0,c1,c2){var c3=c2,c4=c3.isAbsolute=function(c0){return/^(?:\/|\w+:)/.test(c0)},c5=c3.normalize=function(c0){var c1=(c0=c0.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),c2=c4(c0),c3="";c2&&(c3=c1.shift()+"/");for(var c5=0;c50&&".."!==c1[c5-1]?c1.splice(--c5,2):c2?c1.splice(c5,1):++c5:"."===c1[c5]?c1.splice(c5,1):++c5;return c3+c1.join("/")};c3.resolve=function(c0,c1,c2){return c2||(c1=c5(c1)),c4(c1)?c1:(c2||(c0=c5(c0)),(c0=c0.replace(/(?:\/|^)[^\/]+$/,"")).length?c5(c0+"/"+c1):c1)}},{}],9:[function(c0,c1){c1.exports=function(c0,c1,c2){var c3=c2||8192,c4=c3>>>1,c5=null,c6=c3;return function(c2){if(c2<1||c2>c4)return c0(c2);c6+c2>c3&&(c5=c0(c3),c6=0);var c7=c1.call(c5,c6,c6+=c2);return 7&c6&&(c6=1+(7|c6)),c7}}},{}],10:[function(c0,c1,c2){var c3=c2;c3.length=function(c0){for(var c1=0,c2=0,c3=0;c3191&&c3<224?c5[c6++]=(31&c3)<<6|63&c0[c1++]:c3>239&&c3<365?(c3=((7&c3)<<18|(63&c0[c1++])<<12|(63&c0[c1++])<<6|63&c0[c1++])-65536,c5[c6++]=55296+(c3>>10),c5[c6++]=56320+(1023&c3)):c5[c6++]=(15&c3)<<12|(63&c0[c1++])<<6|63&c0[c1++],c6>8191&&((c4||(c4=[])).push(String.fromCharCode.apply(String,c5)),c6=0);return c4?(c6&&c4.push(String.fromCharCode.apply(String,c5.slice(0,c6))),c4.join("")):String.fromCharCode.apply(String,c5.slice(0,c6))},c3.write=function(c0,c1,c2){for(var c3,c4,c5=c2,c6=0;c6>6|192,c1[c2++]=63&c3|128):55296==(64512&c3)&&56320==(64512&(c4=c0.charCodeAt(c6+1)))?(c3=65536+((1023&c3)<<10)+(1023&c4),++c6,c1[c2++]=c3>>18|240,c1[c2++]=c3>>12&63|128,c1[c2++]=c3>>6&63|128,c1[c2++]=63&c3|128):(c1[c2++]=c3>>12|224,c1[c2++]=c3>>6&63|128,c1[c2++]=63&c3|128);return c2-c5}},{}],11:[function(c0,c1){function c2(c0,c1){c4.test(c0)||(c0="google/protobuf/"+c0+".proto",c1={nested:{google:{nested:{protobuf:{nested:c1}}}}}),c2[c0]=c1}c1.exports=c2;var c3,c4=/\/|\./;c2("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),c2("duration",{Duration:c3={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),c2("timestamp",{Timestamp:c3}),c2("empty",{Empty:{fields:{}}}),c2("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),c2("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),c2.get=function(c0){return c2[c0]||null}},{}],12:[function(c0,c1,c2){function c3(c0,c1,c2,c3){if(c1.resolvedType)if(c1.resolvedType instanceof c6){c0("switch(d%s){",c3);for(var c4=c1.resolvedType.values,c5=(0,_keys2.default)(c4),c7=0;c7>>0",c3,c3);break;case"int32":case"sint32":case"sfixed32":c0("m%s=d%s|0",c3,c3);break;case"uint64":c8=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":c0("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",c3,c3,c8)('else if(typeof d%s==="string")',c3)("m%s=parseInt(d%s,10)",c3,c3)('else if(typeof d%s==="number")',c3)("m%s=d%s",c3,c3)('else if(typeof d%s==="object")',c3)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",c3,c3,c3,c8?"true":"");break;case"bytes":c0('if(typeof d%s==="string")',c3)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",c3,c3,c3)("else if(d%s.length)",c3)("m%s=d%s",c3,c3);break;case"string":c0("m%s=String(d%s)",c3,c3);break;case"bool":c0("m%s=Boolean(d%s)",c3,c3)}}return c0}function c4(c0,c1,c2,c3){if(c1.resolvedType)c1.resolvedType instanceof c6?c0("d%s=o.enums===String?types[%i].values[m%s]:m%s",c3,c2,c3,c3):c0("d%s=types[%i].toObject(m%s,o)",c3,c2,c3);else{var c4=!1;switch(c1.type){case"double":case"float":c0("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",c3,c3,c3,c3);break;case"uint64":c4=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":c0('if(typeof m%s==="number")',c3)("d%s=o.longs===String?String(m%s):m%s",c3,c3,c3)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",c3,c3,c3,c3,c4?"true":"",c3);break;case"bytes":c0("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",c3,c3,c3,c3,c3);break;default:c0("d%s=m%s",c3,c3)}}return c0}var c5=c2,c6=c0(15),c7=c0(37);c5.fromObject=function(c0){var c1=c0.fieldsArray,c2=c7.codegen(["d"],c0.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!c1.length)return c2("return new this.ctor");c2("var m=new this.ctor");for(var c4=0;c4>>3){");for(var c6=0;c6>>0,(c1.id<<3|4)>>>0):c0("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",c2,c3,(c1.id<<3|2)>>>0)}c1.exports=function(c0){for(var c1,c6=c5.codegen(["m","w"],c0.name+"$encode")("if(!w)")("w=Writer.create()"),c7=c0.fieldsArray.slice().sort(c5.compareFieldsById),c8=0;c8>>0,8|c4.mapKey[c9.keyType],c9.keyType),c12===e?c6("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c10,c1):c6(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c12,c11,c1),c6("}")("}")):c9.repeated?(c6("if(%s!=null&&%s.length){",c1,c1),c9.packed&&c4.packed[c11]!==e?c6("w.uint32(%i).fork()",(c9.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",c1)("w.%s(%s[i])",c11,c1)("w.ldelim()"):(c6("for(var i=0;i<%s.length;++i)",c1),c12===e?c2(c6,c9,c10,c1+"[i]"):c6("w.uint32(%i).%s(%s[i])",(c9.id<<3|c12)>>>0,c11,c1)),c6("}")):(c9.optional&&c6("if(%s!=null&&m.hasOwnProperty(%j))",c1,c9.name),c12===e?c2(c6,c9,c10,c1):c6("w.uint32(%i).%s(%s)",(c9.id<<3|c12)>>>0,c11,c1))}return c6("return w")};var c3=c0(15),c4=c0(36),c5=c0(37)},{15:15,36:36,37:37}],15:[function(c0,c1){function c2(c0,c1,c2){if(c3.call(this,c0,c2),c1&&"object"!=(void 0===c1?"undefined":(0,_typeof3.default)(c1)))throw TypeError("values must be an object");if(this.valuesById={},this.values=(0,_create2.default)(this.valuesById),this.comments={},c1)for(var c4=(0,_keys2.default)(c1),c5=0;c50;){var c4=c0.shift();if(c2.nested&&c2.nested[c4]){if(!((c2=c2.nested[c4])instanceof c3))throw Error("path conflicts with non-namespace objects")}else c2.add(c2=new c3(c4))}return c1&&c2.addJSON(c1),c2},c3.prototype.resolveAll=function(){for(var c0=this.nestedArray,c1=0;c1-1)return c4}else if(c4 instanceof c3&&(c4=c4.lookup(c0.slice(1),c1,!0)))return c4}else for(var c5=0;c5-1&&this.oneof.splice(c1,1),c0.partOf=null,this},c2.prototype.onAdd=function(c0){c4.prototype.onAdd.call(this,c0);for(var c1=0;c1");var c3=c45();if(!c21.test(c3))throw c25(c3,"name");c48("=");var c4=new c7(c53(c3),c29(c45()),c1,c2);c31(c4,(function(c0){if("option"!==c0)throw c25(c0);c35(c4,c0),c48(";")}),(function(){c38(c4)})),c0.add(c4)}function c35(c0,c1){var c2=c48("(",!0);if(!c22.test(c1=c45()))throw c25(c1,"name");var c3=c1;c2&&(c48(")"),c3="("+c3+")",c1=c47(),c23.test(c1)&&(c3+=c1,c45())),c48("="),c36(c0,c3)}function c36(c0,c1){if(c48("{",!0))do{if(!c21.test(c43=c45()))throw c25(c43,"name");"{"===c47()?c36(c0,c1+"."+c43):(c48(":"),c37(c0,c1+"."+c43,c27(!0)))}while(!c48("}",!0));else c37(c0,c1,c27(!0))}function c37(c0,c1,c2){c0.setOption&&c0.setOption(c1,c2)}function c38(c0){if(c48("[",!0)){do{c35(c0,"option")}while(c48(",",!0));c48("]")}return c0}c1 instanceof c4||(c24=c1,c1=new c4),c24||(c24=c2.defaults);for(var c39,c40,c41,c42,c43,c44=c3(c0),c45=c44.next,c46=c44.push,c47=c44.peek,c48=c44.skip,c49=c44.cmnt,c50=!0,c51=!1,c52=c1,c53=c24.keepCase?function(c0){return c0}:c13.camelCase;null!==(c43=c45());)switch(c43){case"package":if(!c50)throw c25(c43);!function(){if(c39!==e)throw c25("package");if(c39=c45(),!c22.test(c39))throw c25(c39,"name");c52=c52.define(c39),c48(";")}();break;case"import":if(!c50)throw c25(c43);!function(){var c0,c1=c47();switch(c1){case"weak":c0=c41||(c41=[]),c45();break;case"public":c45();default:c0=c40||(c40=[])}c1=c26(),c48(";"),c0.push(c1)}();break;case"syntax":if(!c50)throw c25(c43);!function(){if(c48("="),c42=c26(),!(c51="proto3"===c42)&&"proto2"!==c42)throw c25(c42,"syntax");c48(";")}();break;case"option":if(!c50)throw c25(c43);c35(c52,c43),c48(";");break;default:if(c30(c52,c43)){c50=!1;continue}throw c25(c43)}return c2.filename=null,{package:c39,imports:c40,weakImports:c41,syntax:c42,root:c1}}c1.exports=c2,c2.filename=null,c2.defaults={keepCase:!1};var c3=c0(34),c4=c0(29),c5=c0(35),c6=c0(16),c7=c0(20),c8=c0(25),c9=c0(15),c10=c0(33),c11=c0(22),c12=c0(36),c13=c0(37),c14=/^[1-9][0-9]*$/,c15=/^-?[1-9][0-9]*$/,c16=/^0[x][0-9a-fA-F]+$/,c17=/^-?0[x][0-9a-fA-F]+$/,c18=/^0[0-7]+$/,c19=/^-?0[0-7]+$/,c20=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,c21=/^[a-zA-Z_][a-zA-Z_0-9]*$/,c22=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,c23=/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/},{15:15,16:16,20:20,22:22,25:25,29:29,33:33,34:34,35:35,36:36,37:37}],27:[function(c0,c1){function c2(c0,c1){return RangeError("index out of range: "+c0.pos+" + "+(c1||1)+" > "+c0.len)}function c3(c0){this.buf=c0,this.pos=0,this.len=c0.length}function c4(){var c0=new c9(0,0),c1=0;if(!(this.len-this.pos>4)){for(;c1<3;++c1){if(this.pos>=this.len)throw c2(this);if(c0.lo=(c0.lo|(127&this.buf[this.pos])<<7*c1)>>>0,this.buf[this.pos++]<128)return c0}return c0.lo=(c0.lo|(127&this.buf[this.pos++])<<7*c1)>>>0,c0}for(;c1<4;++c1)if(c0.lo=(c0.lo|(127&this.buf[this.pos])<<7*c1)>>>0,this.buf[this.pos++]<128)return c0;if(c0.lo=(c0.lo|(127&this.buf[this.pos])<<28)>>>0,c0.hi=(c0.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return c0;if(c1=0,this.len-this.pos>4){for(;c1<5;++c1)if(c0.hi=(c0.hi|(127&this.buf[this.pos])<<7*c1+3)>>>0,this.buf[this.pos++]<128)return c0}else for(;c1<5;++c1){if(this.pos>=this.len)throw c2(this);if(c0.hi=(c0.hi|(127&this.buf[this.pos])<<7*c1+3)>>>0,this.buf[this.pos++]<128)return c0}throw Error("invalid varint encoding")}function c5(c0,c1){return(c0[c1-4]|c0[c1-3]<<8|c0[c1-2]<<16|c0[c1-1]<<24)>>>0}function c6(){if(this.pos+8>this.len)throw c2(this,8);return new c9(c5(this.buf,this.pos+=4),c5(this.buf,this.pos+=4))}c1.exports=c3;var c7,c8=c0(39),c9=c8.LongBits,c10=c8.utf8,c11="undefined"!=typeof Uint8Array?function(c0){if(c0 instanceof Uint8Array||Array.isArray(c0))return new c3(c0);throw Error("illegal buffer")}:function(c0){if(Array.isArray(c0))return new c3(c0);throw Error("illegal buffer")};c3.create=c8.Buffer?function(c0){return(c3.create=function(c0){return c8.Buffer.isBuffer(c0)?new c7(c0):c11(c0)})(c0)}:c11,c3.prototype.i=c8.Array.prototype.subarray||c8.Array.prototype.slice,c3.prototype.uint32=function(){var c0=4294967295;return function(){if(c0=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c0;if(c0=(c0|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c0;if(c0=(c0|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c0;if(c0=(c0|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c0;if(c0=(c0|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c0;if((this.pos+=5)>this.len)throw this.pos=this.len,c2(this,10);return c0}}(),c3.prototype.int32=function(){return 0|this.uint32()},c3.prototype.sint32=function(){var c0=this.uint32();return c0>>>1^-(1&c0)|0},c3.prototype.bool=function(){return 0!==this.uint32()},c3.prototype.fixed32=function(){if(this.pos+4>this.len)throw c2(this,4);return c5(this.buf,this.pos+=4)},c3.prototype.sfixed32=function(){if(this.pos+4>this.len)throw c2(this,4);return 0|c5(this.buf,this.pos+=4)},c3.prototype.float=function(){if(this.pos+4>this.len)throw c2(this,4);var c0=c8.float.readFloatLE(this.buf,this.pos);return this.pos+=4,c0},c3.prototype.double=function(){if(this.pos+8>this.len)throw c2(this,4);var c0=c8.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,c0},c3.prototype.bytes=function(){var c0=this.uint32(),c1=this.pos,c3=this.pos+c0;if(c3>this.len)throw c2(this,c0);return this.pos+=c0,Array.isArray(this.buf)?this.buf.slice(c1,c3):c1===c3?new this.buf.constructor(0):this.i.call(this.buf,c1,c3)},c3.prototype.string=function(){var c0=this.bytes();return c10.read(c0,0,c0.length)},c3.prototype.skip=function(c0){if("number"==typeof c0){if(this.pos+c0>this.len)throw c2(this,c0);this.pos+=c0}else do{if(this.pos>=this.len)throw c2(this)}while(128&this.buf[this.pos++]);return this},c3.prototype.skipType=function(c0){switch(c0){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(c0=7&this.uint32());)this.skipType(c0);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+c0+" at offset "+this.pos)}return this},c3.e=function(c0){c7=c0;var c1=c8.Long?"toLong":"toNumber";c8.merge(c3.prototype,{int64:function(){return c4.call(this)[c1](!1)},uint64:function(){return c4.call(this)[c1](!0)},sint64:function(){return c4.call(this).zzDecode()[c1](!1)},fixed64:function(){return c6.call(this)[c1](!0)},sfixed64:function(){return c6.call(this)[c1](!1)}})}},{39:39}],28:[function(c0,c1){function c2(c0){c3.call(this,c0)}c1.exports=c2;var c3=c0(27);(c2.prototype=(0,_create2.default)(c3.prototype)).constructor=c2;var c4=c0(39);c4.Buffer&&(c2.prototype.i=c4.Buffer.prototype.slice),c2.prototype.string=function(){var c0=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+c0,this.len))}},{27:27,39:39}],29:[function(c0,c1){function c2(c0){c5.call(this,"",c0),this.deferred=[],this.files=[]}function c3(){}function c4(c0,c1){var c2=c1.parent.lookup(c1.extend);if(c2){var c3=new c9(c1.fullName,c1.id,c1.type,c1.rule,e,c1.options);return c3.declaringField=c1,c1.extensionField=c3,c2.add(c3),!0}return!1}c1.exports=c2;var c5=c0(23);((c2.prototype=(0,_create2.default)(c5.prototype)).constructor=c2).className="Root";var c6,c7,c8,c9=c0(16),c10=c0(15),c11=c0(25),c12=c0(37);c2.fromJSON=function(c0,c1){return c1||(c1=new c2),c0.options&&c1.setOptions(c0.options),c1.addJSON(c0.nested)},c2.prototype.resolvePath=c12.path.resolve,c2.prototype.load=function c0(c1,c2,c4){function c5(c0,c1){if(c4){var c2=c4;if(c4=null,c11)throw c0;c2(c0,c1)}}function c6(c0,c1){try{if(c12.isString(c1)&&"{"===c1.charAt(0)&&(c1=JSON.parse(c1)),c12.isString(c1)){c7.filename=c0;var c3,c4=c7(c1,c10,c2),c6=0;if(c4.imports)for(;c6-1){var c3=c0.substring(c2);c3 in c8&&(c0=c3)}if(!(c10.files.indexOf(c0)>-1)){if(c10.files.push(c0),c0 in c8)return void(c11?c6(c0,c8[c0]):(++c13,setTimeout((function(){--c13,c6(c0,c8[c0])}))));if(c11){var c7;try{c7=c12.fs.readFileSync(c0).toString("utf8")}catch(c0){return void(c1||c5(c0))}c6(c0,c7)}else++c13,c12.fetch(c0,(function(c2,c3){if(--c13,c4)return c2?void(c1?c13||c5(null,c10):c5(c2)):void c6(c0,c3)}))}}"function"==typeof c2&&(c4=c2,c2=e);var c10=this;if(!c4)return c12.asPromise(c0,c10,c1,c2);var c11=c4===c3,c13=0;c12.isString(c1)&&(c1=[c1]);for(var c14,c15=0;c15-1&&this.deferred.splice(c1,1)}}else if(c0 instanceof c10)c13.test(c0.name)&&delete c0.parent[c0.name];else if(c0 instanceof c5){for(var c2=0;c20)return c22.shift();if(c23)return c3();var c2,c5,c6,c7,c8;do{if(c15===c16)return null;for(c2=!1;c9.test(c6=c10(c15));)if("\n"===c6&&++c17,++c15===c16)return null;if("/"===c10(c15)){if(++c15===c16)throw c1("comment");if("/"===c10(c15)){for(c8="/"===c10(c7=c15+1);"\n"!==c10(++c15);)if(c15===c16)return null;++c15,c8&&c11(c7,c15-1),++c17,c2=!0}else{if("*"!==(c6=c10(c15)))return"/";c8="*"===c10(c7=c15+1);do{if("\n"===c6&&++c17,++c15===c16)throw c1("comment");c5=c6,c6=c10(c15)}while("*"!==c5||"/"!==c6);++c15,c8&&c11(c7,c15-2),c2=!0}}}while(c2);var c12=c15;if(c4.lastIndex=0,!c4.test(c10(c12++)))for(;c12]/g,c5=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,c6=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,c7=/^ *[*\/]+ */,c8=/\n/g,c9=/\s/,c10=/\\(.?)/g,c11={0:"\0",r:"\r",n:"\n",t:"\t"};c3.unescape=c2},{}],35:[function(c0,c1){function c2(c0,c1){c4.call(this,c0,c1),this.fields={},this.oneofs=e,this.extensions=e,this.reserved=e,this.group=e,this.k=null,this.b=null,this.l=null,this.o=null}function c3(c0){return c0.k=c0.b=c0.l=null,delete c0.encode,delete c0.decode,delete c0.verify,c0}c1.exports=c2;var c4=c0(23);((c2.prototype=(0,_create2.default)(c4.prototype)).constructor=c2).className="Type";var c5=c0(15),c6=c0(25),c7=c0(16),c8=c0(20),c9=c0(33),c10=c0(21),c11=c0(27),c12=c0(42),c13=c0(37),c14=c0(14),c15=c0(13),c16=c0(40),c17=c0(12),c18=c0(41);(0,_defineProperties2.default)(c2.prototype,{fieldsById:{get:function(){if(this.k)return this.k;this.k={};for(var c0=(0,_keys2.default)(this.fields),c1=0;c1=c0)return!0;return!1},c2.prototype.isReservedName=function(c0){if(this.reserved)for(var c1=0;c1>>0,this.hi=c1>>>0}c1.exports=c2;var c3=c0(39),c4=c2.zero=new c2(0,0);c4.toNumber=function(){return 0},c4.zzEncode=c4.zzDecode=function(){return this},c4.length=function(){return 1};var c5=c2.zeroHash="\0\0\0\0\0\0\0\0";c2.fromNumber=function(c0){if(0===c0)return c4;var c1=c0<0;c1&&(c0=-c0);var c3=c0>>>0,c5=(c0-c3)/4294967296>>>0;return c1&&(c5=~c5>>>0,c3=~c3>>>0,++c3>4294967295&&(c3=0,++c5>4294967295&&(c5=0))),new c2(c3,c5)},c2.from=function(c0){if("number"==typeof c0)return c2.fromNumber(c0);if(c3.isString(c0)){if(!c3.Long)return c2.fromNumber(parseInt(c0,10));c0=c3.Long.fromString(c0)}return c0.low||c0.high?new c2(c0.low>>>0,c0.high>>>0):c4},c2.prototype.toNumber=function(c0){if(!c0&&this.hi>>>31){var c1=1+~this.lo>>>0,c2=~this.hi>>>0;return c1||(c2=c2+1>>>0),-(c1+4294967296*c2)}return this.lo+4294967296*this.hi},c2.prototype.toLong=function(c0){return c3.Long?new c3.Long(0|this.lo,0|this.hi,!!c0):{low:0|this.lo,high:0|this.hi,unsigned:!!c0}};var c6=String.prototype.charCodeAt;c2.fromHash=function(c0){return c0===c5?c4:new c2((c6.call(c0,0)|c6.call(c0,1)<<8|c6.call(c0,2)<<16|c6.call(c0,3)<<24)>>>0,(c6.call(c0,4)|c6.call(c0,5)<<8|c6.call(c0,6)<<16|c6.call(c0,7)<<24)>>>0)},c2.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},c2.prototype.zzEncode=function(){var c0=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^c0)>>>0,this.lo=(this.lo<<1^c0)>>>0,this},c2.prototype.zzDecode=function(){var c0=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^c0)>>>0,this.hi=(this.hi>>>1^c0)>>>0,this},c2.prototype.length=function(){var c0=this.lo,c1=(this.lo>>>28|this.hi<<4)>>>0,c2=this.hi>>>24;return 0===c2?0===c1?c0<16384?c0<128?1:2:c0<2097152?3:4:c1<16384?c1<128?5:6:c1<2097152?7:8:c2<128?9:10}},{39:39}],39:[function(c0,c1,c2){function c3(c0,c1,c2){for(var c3=(0,_keys2.default)(c1),c4=0;c40)},c5.Buffer=function(){try{var c0=c5.inquire("buffer").Buffer;return c0.prototype.utf8Write?c0:null}catch(c0){return null}}(),c5.p=null,c5.u=null,c5.newBuffer=function(c0){return"number"==typeof c0?c5.Buffer?c5.u(c0):new c5.Array(c0):c5.Buffer?c5.p(c0):"undefined"==typeof Uint8Array?c0:new Uint8Array(c0)},c5.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,c5.Long=t.dcodeIO&&t.dcodeIO.Long||c5.inquire("long"),c5.key2Re=/^true|false|0|1$/,c5.key32Re=/^-?(?:0|[1-9][0-9]*)$/,c5.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,c5.longToHash=function(c0){return c0?c5.LongBits.from(c0).toHash():c5.LongBits.zeroHash},c5.longFromHash=function(c0,c1){var c2=c5.LongBits.fromHash(c0);return c5.Long?c5.Long.fromBits(c2.lo,c2.hi,c1):c2.toNumber(!!c1)},c5.merge=c3,c5.lcFirst=function(c0){return c0.charAt(0).toLowerCase()+c0.substring(1)},c5.newError=c4,c5.ProtocolError=c4("ProtocolError"),c5.oneOfGetter=function(c0){for(var c1={},c2=0;c2-1;--c2)if(1===c1[c0[c2]]&&this[c0[c2]]!==e&&null!==this[c0[c2]])return c0[c2]}},c5.oneOfSetter=function(c0){return function(c1){for(var c2=0;c2>>7|c0.hi<<25)>>>0,c0.hi>>>=7;for(;c0.lo>127;)c1[c2++]=127&c0.lo|128,c0.lo=c0.lo>>>7;c1[c2++]=c0.lo}function c9(c0,c1,c2){c1[c2]=255&c0,c1[c2+1]=c0>>>8&255,c1[c2+2]=c0>>>16&255,c1[c2+3]=c0>>>24}c1.exports=c5;var c10,c11=c0(39),c12=c11.LongBits,c13=c11.base64,c14=c11.utf8;c5.create=c11.Buffer?function(){return(c5.create=function(){return new c10})()}:function(){return new c5},c5.alloc=function(c0){return new c11.Array(c0)},c11.Array!==Array&&(c5.alloc=c11.pool(c5.alloc,c11.Array.prototype.subarray)),c5.prototype.v=function(c0,c1,c3){return this.tail=this.tail.next=new c2(c0,c1,c3),this.len+=c1,this},c7.prototype=(0,_create2.default)(c2.prototype),c7.prototype.fn=function(c0,c1,c2){for(;c0>127;)c1[c2++]=127&c0|128,c0>>>=7;c1[c2]=c0},c5.prototype.uint32=function(c0){return this.len+=(this.tail=this.tail.next=new c7((c0>>>=0)<128?1:c0<16384?2:c0<2097152?3:c0<268435456?4:5,c0)).len,this},c5.prototype.int32=function(c0){return c0<0?this.v(c8,10,c12.fromNumber(c0)):this.uint32(c0)},c5.prototype.sint32=function(c0){return this.uint32((c0<<1^c0>>31)>>>0)},c5.prototype.uint64=function(c0){var c1=c12.from(c0);return this.v(c8,c1.length(),c1)},c5.prototype.int64=c5.prototype.uint64,c5.prototype.sint64=function(c0){var c1=c12.from(c0).zzEncode();return this.v(c8,c1.length(),c1)},c5.prototype.bool=function(c0){return this.v(c6,1,c0?1:0)},c5.prototype.fixed32=function(c0){return this.v(c9,4,c0>>>0)},c5.prototype.sfixed32=c5.prototype.fixed32,c5.prototype.fixed64=function(c0){var c1=c12.from(c0);return this.v(c9,4,c1.lo).v(c9,4,c1.hi)},c5.prototype.sfixed64=c5.prototype.fixed64,c5.prototype.float=function(c0){return this.v(c11.float.writeFloatLE,4,c0)},c5.prototype.double=function(c0){return this.v(c11.float.writeDoubleLE,8,c0)};var c15=c11.Array.prototype.set?function(c0,c1,c2){c1.set(c0,c2)}:function(c0,c1,c2){for(var c3=0;c3>>0;if(!c1)return this.v(c6,1,0);if(c11.isString(c0)){var c2=c5.alloc(c1=c13.length(c0));c13.decode(c0,c2,0),c0=c2}return this.uint32(c1).v(c15,c1,c0)},c5.prototype.string=function(c0){var c1=c14.length(c0);return c1?this.uint32(c1).v(c14.write,c1,c0):this.v(c6,1,0)},c5.prototype.fork=function(){return this.states=new c4(this),this.head=this.tail=new c2(c3,0,0),this.len=0,this},c5.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c2(c3,0,0),this.len=0),this},c5.prototype.ldelim=function(){var c0=this.head,c1=this.tail,c2=this.len;return this.reset().uint32(c2),c2&&(this.tail.next=c0.next,this.tail=c1,this.len+=c2),this},c5.prototype.finish=function(){for(var c0=this.head.next,c1=this.constructor.alloc(this.len),c2=0;c0;)c0.fn(c0.val,c1,c2),c2+=c0.len,c0=c0.next;return c1},c5.e=function(c0){c10=c0}},{39:39}],43:[function(c0,c1){function c2(){c4.call(this)}function c3(c0,c1,c2){c0.length<40?c5.utf8.write(c0,c1,c2):c1.utf8Write(c0,c2)}c1.exports=c2;var c4=c0(42);(c2.prototype=(0,_create2.default)(c4.prototype)).constructor=c2;var c5=c0(39),c6=c5.Buffer;c2.alloc=function(c0){return(c2.alloc=c5.u)(c0)};var c7=c6&&c6.prototype instanceof Uint8Array&&"set"===c6.prototype.set.name?function(c0,c1,c2){c1.set(c0,c2)}:function(c0,c1,c2){if(c0.copy)c0.copy(c1,c2,0,c0.length);else for(var c3=0;c3>>0;return this.uint32(c1),c1&&this.v(c7,c1,c0),this},c2.prototype.string=function(c0){var c1=c6.byteLength(c0);return this.uint32(c1),c1&&this.v(c3,c1,c0),this}},{39:39,42:42}]},{})}("object"==("undefined"==typeof window?"undefined":(0,_typeof3.default)(window))&&window||"object"==("undefined"==typeof self?"undefined":(0,_typeof3.default)(self))&&self||void 0)},9184:(c0,c1,c2)=>{c0.exports={default:c2(9952),__esModule:!0}},6995:(c0,c1,c2)=>{c0.exports={default:c2(1120),__esModule:!0}},8792:(c0,c1,c2)=>{c0.exports={default:c2(6044),__esModule:!0}},7445:(c0,c1,c2)=>{c0.exports={default:c2(108),__esModule:!0}},603:(c0,c1,c2)=>{c0.exports={default:c2(5740),__esModule:!0}},7304:(c0,c1,c2)=>{c0.exports={default:c2(2166),__esModule:!0}},6212:(c0,c1,c2)=>{c0.exports={default:c2(8336),__esModule:!0}},8044:(c0,c1,c2)=>{c0.exports={default:c2(7456),__esModule:!0}},4660:(c0,c1,c2)=>{c0.exports={default:c2(9096),__esModule:!0}},7252:(c0,c1,c2)=>{c0.exports={default:c2(7572),__esModule:!0}},328:(c0,c1,c2)=>{c0.exports={default:c2(9128),__esModule:!0}},9708:(c0,c1,c2)=>{c0.exports={default:c2(7308),__esModule:!0}},6224:(c0,c1,c2)=>{c0.exports={default:c2(9784),__esModule:!0}},6996:(c0,c1,c2)=>{c0.exports={default:c2(8540),__esModule:!0}},9717:(c0,c1,c2)=>{c0.exports={default:c2(2676),__esModule:!0}},6739:(c0,c1,c2)=>{c0.exports={default:c2(8240),__esModule:!0}},8964:(c0,c1,c2)=>{c1.__esModule=!0;var c3,c4=c2(6224),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};c1.default=function(c0){return function(){var c1=c0.apply(this,arguments);return new c5.default((function(c0,c2){return function c3(c4,c6){try{var c7=c1[c4](c6),c8=c7.value}catch(c0){return void c2(c0)}if(!c7.done)return c5.default.resolve(c8).then((function(c0){c3("next",c0)}),(function(c0){c3("throw",c0)}));c0(c8)}("next")}))}}},4128:(c0,c1)=>{c1.__esModule=!0,c1.default=function(c0,c1){if(!(c0 instanceof c1))throw new TypeError("Cannot call a class as a function")}},5144:(c0,c1,c2)=>{c1.__esModule=!0;var c3,c4=c2(4660),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};c1.default=function(){function c0(c0,c1){for(var c2=0;c2{c1.__esModule=!0;var c3,c4=c2(9184),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};c1.default=function(c0){if(Array.isArray(c0)){for(var c1=0,c2=Array(c0.length);c1{c1.__esModule=!0;var c3=c6(c2(6739)),c4=c6(c2(9717)),c5="function"==typeof c4.default&&"symbol"==typeof c3.default?function(c0){return typeof c0}:function(c0){return c0&&"function"==typeof c4.default&&c0.constructor===c4.default&&c0!==c4.default.prototype?"symbol":typeof c0};function c6(c0){return c0&&c0.__esModule?c0:{default:c0}}c1.default="function"==typeof c4.default&&"symbol"===c5(c3.default)?function(c0){return void 0===c0?"undefined":c5(c0)}:function(c0){return c0&&"function"==typeof c4.default&&c0.constructor===c4.default&&c0!==c4.default.prototype?"symbol":void 0===c0?"undefined":c5(c0)}},7436:(c0,c1,c2)=>{var c3=function(){return this}()||Function("return this")(),c4=c3.regeneratorRuntime&&Object.getOwnPropertyNames(c3).indexOf("regeneratorRuntime")>=0,c5=c4&&c3.regeneratorRuntime;if(c3.regeneratorRuntime=void 0,c0.exports=c2(8e3),c4)c3.regeneratorRuntime=c5;else try{delete c3.regeneratorRuntime}catch(c0){c3.regeneratorRuntime=void 0}},8e3:c0=>{!function(c1){var c2,c3=Object.prototype,c4=c3.hasOwnProperty,c5="function"==typeof Symbol?Symbol:{},c6=c5.iterator||"@@iterator",c7=c5.asyncIterator||"@@asyncIterator",c8=c5.toStringTag||"@@toStringTag",c9=c1.regeneratorRuntime;if(c9)c0.exports=c9;else{(c9=c1.regeneratorRuntime=c0.exports).wrap=c19;var c10="suspendedStart",c11="suspendedYield",c12="executing",c13="completed",c14={},c15={};c15[c6]=function(){return this};var c16=Object.getPrototypeOf,c17=c16&&c16(c16(c30([])));c17&&c17!==c3&&c4.call(c17,c6)&&(c15=c17);var c18=c23.prototype=c21.prototype=Object.create(c15);c22.prototype=c18.constructor=c23,c23.constructor=c22,c23[c8]=c22.displayName="GeneratorFunction",c9.isGeneratorFunction=function(c0){var c1="function"==typeof c0&&c0.constructor;return!!c1&&(c1===c22||"GeneratorFunction"===(c1.displayName||c1.name))},c9.mark=function(c0){return Object.setPrototypeOf?Object.setPrototypeOf(c0,c23):(c0.__proto__=c23,c8 in c0||(c0[c8]="GeneratorFunction")),c0.prototype=Object.create(c18),c0},c9.awrap=function(c0){return{__await:c0}},c24(c25.prototype),c25.prototype[c7]=function(){return this},c9.AsyncIterator=c25,c9.async=function(c0,c1,c2,c3){var c4=new c25(c19(c0,c1,c2,c3));return c9.isGeneratorFunction(c1)?c4:c4.next().then((function(c0){return c0.done?c0.value:c4.next()}))},c24(c18),c18[c8]="Generator",c18[c6]=function(){return this},c18.toString=function(){return"[object Generator]"},c9.keys=function(c0){var c1=[];for(var c2 in c0)c1.push(c2);return c1.reverse(),function c2(){for(;c1.length;){var c3=c1.pop();if(c3 in c0)return c2.value=c3,c2.done=!1,c2}return c2.done=!0,c2}},c9.values=c30,c29.prototype={constructor:c29,reset:function(c0){if(this.prev=0,this.next=0,this.sent=this._sent=c2,this.done=!1,this.delegate=null,this.method="next",this.arg=c2,this.tryEntries.forEach(c28),!c0)for(var c1 in this)"t"===c1.charAt(0)&&c4.call(this,c1)&&!isNaN(+c1.slice(1))&&(this[c1]=c2)},stop:function(){this.done=!0;var c0=this.tryEntries[0].completion;if("throw"===c0.type)throw c0.arg;return this.rval},dispatchException:function(c0){if(this.done)throw c0;var c1=this;function c3(c3,c4){return c7.type="throw",c7.arg=c0,c1.next=c3,c4&&(c1.method="next",c1.arg=c2),!!c4}for(var c5=this.tryEntries.length-1;c5>=0;--c5){var c6=this.tryEntries[c5],c7=c6.completion;if("root"===c6.tryLoc)return c3("end");if(c6.tryLoc<=this.prev){var c8=c4.call(c6,"catchLoc"),c9=c4.call(c6,"finallyLoc");if(c8&&c9){if(this.prev=0;--c2){var c3=this.tryEntries[c2];if(c3.tryLoc<=this.prev&&c4.call(c3,"finallyLoc")&&this.prev=0;--c1){var c2=this.tryEntries[c1];if(c2.finallyLoc===c0)return this.complete(c2.completion,c2.afterLoc),c28(c2),c14}},catch:function(c0){for(var c1=this.tryEntries.length-1;c1>=0;--c1){var c2=this.tryEntries[c1];if(c2.tryLoc===c0){var c3=c2.completion;if("throw"===c3.type){var c4=c3.arg;c28(c2)}return c4}}throw new Error("illegal catch attempt")},delegateYield:function(c0,c1,c3){return this.delegate={iterator:c30(c0),resultName:c1,nextLoc:c3},"next"===this.method&&(this.arg=c2),c14}}}function c19(c0,c1,c2,c3){var c4=c1&&c1.prototype instanceof c21?c1:c21,c5=Object.create(c4.prototype),c6=new c29(c3||[]);return c5._invoke=function(c0,c1,c2){var c3=c10;return function(c4,c5){if(c3===c12)throw new Error("Generator is already running");if(c3===c13){if("throw"===c4)throw c5;return c31()}for(c2.method=c4,c2.arg=c5;;){var c6=c2.delegate;if(c6){var c7=c26(c6,c2);if(c7){if(c7===c14)continue;return c7}}if("next"===c2.method)c2.sent=c2._sent=c2.arg;else if("throw"===c2.method){if(c3===c10)throw c3=c13,c2.arg;c2.dispatchException(c2.arg)}else"return"===c2.method&&c2.abrupt("return",c2.arg);c3=c12;var c8=c20(c0,c1,c2);if("normal"===c8.type){if(c3=c2.done?c13:c11,c8.arg===c14)continue;return{value:c8.arg,done:c2.done}}"throw"===c8.type&&(c3=c13,c2.method="throw",c2.arg=c8.arg)}}}(c0,c2,c6),c5}function c20(c0,c1,c2){try{return{type:"normal",arg:c0.call(c1,c2)}}catch(c0){return{type:"throw",arg:c0}}}function c21(){}function c22(){}function c23(){}function c24(c0){["next","throw","return"].forEach((function(c1){c0[c1]=function(c0){return this._invoke(c1,c0)}}))}function c25(c0){function c1(c2,c3,c5,c6){var c7=c20(c0[c2],c0,c3);if("throw"!==c7.type){var c8=c7.arg,c9=c8.value;return c9&&"object"==typeof c9&&c4.call(c9,"__await")?Promise.resolve(c9.__await).then((function(c0){c1("next",c0,c5,c6)}),(function(c0){c1("throw",c0,c5,c6)})):Promise.resolve(c9).then((function(c0){c8.value=c0,c5(c8)}),c6)}c6(c7.arg)}var c2;this._invoke=function(c0,c3){function c4(){return new Promise((function(c2,c4){c1(c0,c3,c2,c4)}))}return c2=c2?c2.then(c4,c4):c4()}}function c26(c0,c1){var c3=c0.iterator[c1.method];if(c3===c2){if(c1.delegate=null,"throw"===c1.method){if(c0.iterator.return&&(c1.method="return",c1.arg=c2,c26(c0,c1),"throw"===c1.method))return c14;c1.method="throw",c1.arg=new TypeError("The iterator does not provide a 'throw' method")}return c14}var c4=c20(c3,c0.iterator,c1.arg);if("throw"===c4.type)return c1.method="throw",c1.arg=c4.arg,c1.delegate=null,c14;var c5=c4.arg;return c5?c5.done?(c1[c0.resultName]=c5.value,c1.next=c0.nextLoc,"return"!==c1.method&&(c1.method="next",c1.arg=c2),c1.delegate=null,c14):c5:(c1.method="throw",c1.arg=new TypeError("iterator result is not an object"),c1.delegate=null,c14)}function c27(c0){var c1={tryLoc:c0[0]};1 in c0&&(c1.catchLoc=c0[1]),2 in c0&&(c1.finallyLoc=c0[2],c1.afterLoc=c0[3]),this.tryEntries.push(c1)}function c28(c0){var c1=c0.completion||{};c1.type="normal",delete c1.arg,c0.completion=c1}function c29(c0){this.tryEntries=[{tryLoc:"root"}],c0.forEach(c27,this),this.reset(!0)}function c30(c0){if(c0){var c1=c0[c6];if(c1)return c1.call(c0);if("function"==typeof c0.next)return c0;if(!isNaN(c0.length)){var c3=-1,c5=function c1(){for(;++c3{c0.exports=c2(7436)},8:(c0,c1)=>{!function(){for(var c0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c2=new Uint8Array(256),c3=0;c3>2],c5+=c0[(3&c3[c2])<<4|c3[c2+1]>>4],c5+=c0[(15&c3[c2+1])<<2|c3[c2+2]>>6],c5+=c0[63&c3[c2+2]];return c4%3==2?c5=c5.substring(0,c5.length-1)+"=":c4%3==1&&(c5=c5.substring(0,c5.length-2)+"=="),c5},c1.Y=function(c0){var c1,c3,c4,c5,c6,c7=.75*c0.length,c8=c0.length,c9=0;"="===c0[c0.length-1]&&(c7--,"="===c0[c0.length-2]&&c7--);var c10=new ArrayBuffer(c7),c11=new Uint8Array(c10);for(c1=0;c1>4,c11[c9++]=(15&c4)<<4|c5>>2,c11[c9++]=(3&c5)<<6|63&c6;return c10}}()},5704:(c0,c1)=>{c1.byteLength=function(c0){var c1=c8(c0),c2=c1[0],c3=c1[1];return 3*(c2+c3)/4-c3},c1.toByteArray=function(c0){var c1,c2,c5=c8(c0),c6=c5[0],c7=c5[1],c9=new c4(function(c0,c1,c2){return 3*(c1+c2)/4-c2}(0,c6,c7)),c10=0,c11=c7>0?c6-4:c6;for(c2=0;c2>16&255,c9[c10++]=c1>>8&255,c9[c10++]=255&c1;2===c7&&(c1=c3[c0.charCodeAt(c2)]<<2|c3[c0.charCodeAt(c2+1)]>>4,c9[c10++]=255&c1);1===c7&&(c1=c3[c0.charCodeAt(c2)]<<10|c3[c0.charCodeAt(c2+1)]<<4|c3[c0.charCodeAt(c2+2)]>>2,c9[c10++]=c1>>8&255,c9[c10++]=255&c1);return c9},c1.fromByteArray=function(c0){for(var c1,c3=c0.length,c4=c3%3,c5=[],c6=16383,c7=0,c8=c3-c4;c7c8?c8:c7+c6));1===c4?(c1=c0[c3-1],c5.push(c2[c1>>2]+c2[c1<<4&63]+"==")):2===c4&&(c1=(c0[c3-2]<<8)+c0[c3-1],c5.push(c2[c1>>10]+c2[c1>>4&63]+c2[c1<<2&63]+"="));return c5.join("")};for(var c2=[],c3=[],c4="undefined"!=typeof Uint8Array?Uint8Array:Array,c5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c6=0,c7=c5.length;c60)throw new Error("Invalid string. Length must be a multiple of 4");var c2=c0.indexOf("=");return-1===c2&&(c2=c1),[c2,c2===c1?0:4-c2%4]}function c9(c0,c1,c3){for(var c4,c5,c6=[],c7=c1;c7>18&63]+c2[c5>>12&63]+c2[c5>>6&63]+c2[63&c5]);return c6.join("")}c3["-".charCodeAt(0)]=62,c3["_".charCodeAt(0)]=63},6840:(c0,c1,c2)=>{var c3=c2(3332),c4=c2(3912),c5=c2(5856).Buffer;function c6(c0){if(!(this instanceof c6))return new c6(c0);if(this._bufs=[],this.length=0,"function"==typeof c0){this._callback=c0;var c1=function(c0){this._callback&&(this._callback(c0),this._callback=null)}.bind(this);this.on("pipe",(function(c0){c0.on("error",c1)})),this.on("unpipe",(function(c0){c0.removeListener("error",c1)}))}else this.append(c0);c3.call(this)}c4.inherits(c6,c3),c6.prototype._offset=function(c0){var c1,c2=0,c3=0;if(0===c0)return[0,0];for(;c3this.length)&&(c3=this.length),c2>=this.length)return c0||c5.alloc(0);if(c3<=0)return c0||c5.alloc(0);var c4,c6,c7=!!c0,c8=this._offset(c2),c9=c3-c2,c10=c9,c11=c7&&c1||0,c12=c8[1];if(0===c2&&c3==this.length){if(!c7)return 1===this._bufs.length?this._bufs[0]:c5.concat(this._bufs,this.length);for(c6=0;c6(c4=this._bufs[c6].length-c12))){this._bufs[c6].copy(c0,c11,c12,c12+c10);break}this._bufs[c6].copy(c0,c11,c12),c11+=c4,c10-=c4,c12&&(c12=0)}return c0},c6.prototype.shallowSlice=function(c0,c1){c0=c0||0,c1=c1||this.length,c0<0&&(c0+=this.length),c1<0&&(c1+=this.length);var c2=this._offset(c0),c3=this._offset(c1),c4=this._bufs.slice(c2[0],c3[0]+1);return 0==c3[1]?c4.pop():c4[c4.length-1]=c4[c4.length-1].slice(0,c3[1]),0!=c2[1]&&(c4[0]=c4[0].slice(c2[1])),new c6(c4)},c6.prototype.toString=function(c0,c1,c2){return this.slice(c1,c2).toString(c0)},c6.prototype.consume=function(c0){for(;this._bufs.length;){if(!(c0>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(c0),this.length-=c0;break}c0-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},c6.prototype.duplicate=function(){for(var c0=0,c1=new c6;c0{var c3=c2(5704),c4=c2(4404),c5="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;c1.Buffer=c8,c1.SlowBuffer=function(c0){+c0!=c0&&(c0=0);return c8.alloc(+c0)},c1.INSPECT_MAX_BYTES=50;var c6=2147483647;function c7(c0){if(c0>c6)throw new RangeError('The value "'+c0+'" is invalid for option "size"');var c1=new Uint8Array(c0);return Object.setPrototypeOf(c1,c8.prototype),c1}function c8(c0,c1,c2){if("number"==typeof c0){if("string"==typeof c1)throw new TypeError('The "string" argument must be of type string. Received type number');return c11(c0)}return c9(c0,c1,c2)}function c9(c0,c1,c2){if("string"==typeof c0)return function(c0,c1){"string"==typeof c1&&""!==c1||(c1="utf8");if(!c8.isEncoding(c1))throw new TypeError("Unknown encoding: "+c1);var c2=0|c14(c0,c1),c3=c7(c2),c4=c3.write(c0,c1);c4!==c2&&(c3=c3.slice(0,c4));return c3}(c0,c1);if(ArrayBuffer.isView(c0))return c12(c0);if(null==c0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c0);if(c41(c0,ArrayBuffer)||c0&&c41(c0.buffer,ArrayBuffer))return function(c0,c1,c2){if(c1<0||c0.byteLength=c6)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c6.toString(16)+" bytes");return 0|c0}function c14(c0,c1){if(c8.isBuffer(c0))return c0.length;if(ArrayBuffer.isView(c0)||c41(c0,ArrayBuffer))return c0.byteLength;if("string"!=typeof c0)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof c0);var c2=c0.length,c3=arguments.length>2&&!0===arguments[2];if(!c3&&0===c2)return 0;for(var c4=!1;;)switch(c1){case"ascii":case"latin1":case"binary":return c2;case"utf8":case"utf-8":return c38(c0).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c2;case"hex":return c2>>>1;case"base64":return c39(c0).length;default:if(c4)return c3?-1:c38(c0).length;c1=(""+c1).toLowerCase(),c4=!0}}function c15(c0,c1,c2){var c3=!1;if((void 0===c1||c1<0)&&(c1=0),c1>this.length)return"";if((void 0===c2||c2>this.length)&&(c2=this.length),c2<=0)return"";if((c2>>>=0)<=(c1>>>=0))return"";for(c0||(c0="utf8");;)switch(c0){case"hex":return c30(this,c1,c2);case"utf8":case"utf-8":return c26(this,c1,c2);case"ascii":return c28(this,c1,c2);case"latin1":case"binary":return c29(this,c1,c2);case"base64":return c25(this,c1,c2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c31(this,c1,c2);default:if(c3)throw new TypeError("Unknown encoding: "+c0);c0=(c0+"").toLowerCase(),c3=!0}}function c16(c0,c1,c2){var c3=c0[c1];c0[c1]=c0[c2],c0[c2]=c3}function c17(c0,c1,c2,c3,c4){if(0===c0.length)return-1;if("string"==typeof c2?(c3=c2,c2=0):c2>2147483647?c2=2147483647:c2<-2147483648&&(c2=-2147483648),c42(c2=+c2)&&(c2=c4?0:c0.length-1),c2<0&&(c2=c0.length+c2),c2>=c0.length){if(c4)return-1;c2=c0.length-1}else if(c2<0){if(!c4)return-1;c2=0}if("string"==typeof c1&&(c1=c8.from(c1,c3)),c8.isBuffer(c1))return 0===c1.length?-1:c18(c0,c1,c2,c3,c4);if("number"==typeof c1)return c1&=255,"function"==typeof Uint8Array.prototype.indexOf?c4?Uint8Array.prototype.indexOf.call(c0,c1,c2):Uint8Array.prototype.lastIndexOf.call(c0,c1,c2):c18(c0,[c1],c2,c3,c4);throw new TypeError("val must be string, number or Buffer")}function c18(c0,c1,c2,c3,c4){var c5,c6=1,c7=c0.length,c8=c1.length;if(void 0!==c3&&("ucs2"===(c3=String(c3).toLowerCase())||"ucs-2"===c3||"utf16le"===c3||"utf-16le"===c3)){if(c0.length<2||c1.length<2)return-1;c6=2,c7/=2,c8/=2,c2/=2}function c9(c0,c1){return 1===c6?c0[c1]:c0.readUInt16BE(c1*c6)}if(c4){var c10=-1;for(c5=c2;c5c7&&(c2=c7-c8),c5=c2;c5>=0;c5--){for(var c11=!0,c12=0;c12c4&&(c3=c4):c3=c4;var c5=c1.length;c3>c5/2&&(c3=c5/2);for(var c6=0;c6>8,c4=c2%256,c5.push(c4),c5.push(c3);return c5}(c1,c0.length-c2),c0,c2,c3)}function c25(c0,c1,c2){return 0===c1&&c2===c0.length?c3.fromByteArray(c0):c3.fromByteArray(c0.slice(c1,c2))}function c26(c0,c1,c2){c2=Math.min(c0.length,c2);for(var c3=[],c4=c1;c4239?4:c9>223?3:c9>191?2:1;if(c4+c11<=c2)switch(c11){case 1:c9<128&&(c10=c9);break;case 2:128==(192&(c5=c0[c4+1]))&&(c8=(31&c9)<<6|63&c5)>127&&(c10=c8);break;case 3:c5=c0[c4+1],c6=c0[c4+2],128==(192&c5)&&128==(192&c6)&&(c8=(15&c9)<<12|(63&c5)<<6|63&c6)>2047&&(c8<55296||c8>57343)&&(c10=c8);break;case 4:c5=c0[c4+1],c6=c0[c4+2],c7=c0[c4+3],128==(192&c5)&&128==(192&c6)&&128==(192&c7)&&(c8=(15&c9)<<18|(63&c5)<<12|(63&c6)<<6|63&c7)>65535&&c8<1114112&&(c10=c8)}null===c10?(c10=65533,c11=1):c10>65535&&(c10-=65536,c3.push(c10>>>10&1023|55296),c10=56320|1023&c10),c3.push(c10),c4+=c11}return function(c0){var c1=c0.length;if(c1<=c27)return String.fromCharCode.apply(String,c0);var c2="",c3=0;for(;c3c2&&(c0+=" ... "),""},c5&&(c8.prototype[c5]=c8.prototype.inspect),c8.prototype.compare=function(c0,c1,c2,c3,c4){if(c41(c0,Uint8Array)&&(c0=c8.from(c0,c0.offset,c0.byteLength)),!c8.isBuffer(c0))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c0);if(void 0===c1&&(c1=0),void 0===c2&&(c2=c0?c0.length:0),void 0===c3&&(c3=0),void 0===c4&&(c4=this.length),c1<0||c2>c0.length||c3<0||c4>this.length)throw new RangeError("out of range index");if(c3>=c4&&c1>=c2)return 0;if(c3>=c4)return-1;if(c1>=c2)return 1;if(this===c0)return 0;for(var c5=(c4>>>=0)-(c3>>>=0),c6=(c2>>>=0)-(c1>>>=0),c7=Math.min(c5,c6),c9=this.slice(c3,c4),c10=c0.slice(c1,c2),c11=0;c11>>=0,isFinite(c2)?(c2>>>=0,void 0===c3&&(c3="utf8")):(c3=c2,c2=void 0)}var c4=this.length-c1;if((void 0===c2||c2>c4)&&(c2=c4),c0.length>0&&(c2<0||c1<0)||c1>this.length)throw new RangeError("Attempt to write outside buffer bounds");c3||(c3="utf8");for(var c5=!1;;)switch(c3){case"hex":return c19(this,c0,c1,c2);case"utf8":case"utf-8":return c20(this,c0,c1,c2);case"ascii":return c21(this,c0,c1,c2);case"latin1":case"binary":return c22(this,c0,c1,c2);case"base64":return c23(this,c0,c1,c2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c24(this,c0,c1,c2);default:if(c5)throw new TypeError("Unknown encoding: "+c3);c3=(""+c3).toLowerCase(),c5=!0}},c8.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c27=4096;function c28(c0,c1,c2){var c3="";c2=Math.min(c0.length,c2);for(var c4=c1;c4c3)&&(c2=c3);for(var c4="",c5=c1;c5c2)throw new RangeError("Trying to access beyond buffer length")}function c33(c0,c1,c2,c3,c4,c5){if(!c8.isBuffer(c0))throw new TypeError('"buffer" argument must be a Buffer instance');if(c1>c4||c1c0.length)throw new RangeError("Index out of range")}function c34(c0,c1,c2,c3,c4,c5){if(c2+c3>c0.length)throw new RangeError("Index out of range");if(c2<0)throw new RangeError("Index out of range")}function c35(c0,c1,c2,c3,c5){return c1=+c1,c2>>>=0,c5||c34(c0,0,c2,4),c4.write(c0,c1,c2,c3,23,4),c2+4}function c36(c0,c1,c2,c3,c5){return c1=+c1,c2>>>=0,c5||c34(c0,0,c2,8),c4.write(c0,c1,c2,c3,52,8),c2+8}c8.prototype.slice=function(c0,c1){var c2=this.length;(c0=~~c0)<0?(c0+=c2)<0&&(c0=0):c0>c2&&(c0=c2),(c1=void 0===c1?c2:~~c1)<0?(c1+=c2)<0&&(c1=0):c1>c2&&(c1=c2),c1>>=0,c1>>>=0,c2||c32(c0,c1,this.length);for(var c3=this[c0],c4=1,c5=0;++c5>>=0,c1>>>=0,c2||c32(c0,c1,this.length);for(var c3=this[c0+--c1],c4=1;c1>0&&(c4*=256);)c3+=this[c0+--c1]*c4;return c3},c8.prototype.readUInt8=function(c0,c1){return c0>>>=0,c1||c32(c0,1,this.length),this[c0]},c8.prototype.readUInt16LE=function(c0,c1){return c0>>>=0,c1||c32(c0,2,this.length),this[c0]|this[c0+1]<<8},c8.prototype.readUInt16BE=function(c0,c1){return c0>>>=0,c1||c32(c0,2,this.length),this[c0]<<8|this[c0+1]},c8.prototype.readUInt32LE=function(c0,c1){return c0>>>=0,c1||c32(c0,4,this.length),(this[c0]|this[c0+1]<<8|this[c0+2]<<16)+16777216*this[c0+3]},c8.prototype.readUInt32BE=function(c0,c1){return c0>>>=0,c1||c32(c0,4,this.length),16777216*this[c0]+(this[c0+1]<<16|this[c0+2]<<8|this[c0+3])},c8.prototype.readIntLE=function(c0,c1,c2){c0>>>=0,c1>>>=0,c2||c32(c0,c1,this.length);for(var c3=this[c0],c4=1,c5=0;++c5=(c4*=128)&&(c3-=Math.pow(2,8*c1)),c3},c8.prototype.readIntBE=function(c0,c1,c2){c0>>>=0,c1>>>=0,c2||c32(c0,c1,this.length);for(var c3=c1,c4=1,c5=this[c0+--c3];c3>0&&(c4*=256);)c5+=this[c0+--c3]*c4;return c5>=(c4*=128)&&(c5-=Math.pow(2,8*c1)),c5},c8.prototype.readInt8=function(c0,c1){return c0>>>=0,c1||c32(c0,1,this.length),128&this[c0]?-1*(255-this[c0]+1):this[c0]},c8.prototype.readInt16LE=function(c0,c1){c0>>>=0,c1||c32(c0,2,this.length);var c2=this[c0]|this[c0+1]<<8;return 32768&c2?4294901760|c2:c2},c8.prototype.readInt16BE=function(c0,c1){c0>>>=0,c1||c32(c0,2,this.length);var c2=this[c0+1]|this[c0]<<8;return 32768&c2?4294901760|c2:c2},c8.prototype.readInt32LE=function(c0,c1){return c0>>>=0,c1||c32(c0,4,this.length),this[c0]|this[c0+1]<<8|this[c0+2]<<16|this[c0+3]<<24},c8.prototype.readInt32BE=function(c0,c1){return c0>>>=0,c1||c32(c0,4,this.length),this[c0]<<24|this[c0+1]<<16|this[c0+2]<<8|this[c0+3]},c8.prototype.readFloatLE=function(c0,c1){return c0>>>=0,c1||c32(c0,4,this.length),c4.read(this,c0,!0,23,4)},c8.prototype.readFloatBE=function(c0,c1){return c0>>>=0,c1||c32(c0,4,this.length),c4.read(this,c0,!1,23,4)},c8.prototype.readDoubleLE=function(c0,c1){return c0>>>=0,c1||c32(c0,8,this.length),c4.read(this,c0,!0,52,8)},c8.prototype.readDoubleBE=function(c0,c1){return c0>>>=0,c1||c32(c0,8,this.length),c4.read(this,c0,!1,52,8)},c8.prototype.writeUIntLE=function(c0,c1,c2,c3){(c0=+c0,c1>>>=0,c2>>>=0,c3)||c33(this,c0,c1,c2,Math.pow(2,8*c2)-1,0);var c4=1,c5=0;for(this[c1]=255&c0;++c5>>=0,c2>>>=0,c3)||c33(this,c0,c1,c2,Math.pow(2,8*c2)-1,0);var c4=c2-1,c5=1;for(this[c1+c4]=255&c0;--c4>=0&&(c5*=256);)this[c1+c4]=c0/c5&255;return c1+c2},c8.prototype.writeUInt8=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,1,255,0),this[c1]=255&c0,c1+1},c8.prototype.writeUInt16LE=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,2,65535,0),this[c1]=255&c0,this[c1+1]=c0>>>8,c1+2},c8.prototype.writeUInt16BE=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,2,65535,0),this[c1]=c0>>>8,this[c1+1]=255&c0,c1+2},c8.prototype.writeUInt32LE=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,4,4294967295,0),this[c1+3]=c0>>>24,this[c1+2]=c0>>>16,this[c1+1]=c0>>>8,this[c1]=255&c0,c1+4},c8.prototype.writeUInt32BE=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,4,4294967295,0),this[c1]=c0>>>24,this[c1+1]=c0>>>16,this[c1+2]=c0>>>8,this[c1+3]=255&c0,c1+4},c8.prototype.writeIntLE=function(c0,c1,c2,c3){if(c0=+c0,c1>>>=0,!c3){var c4=Math.pow(2,8*c2-1);c33(this,c0,c1,c2,c4-1,-c4)}var c5=0,c6=1,c7=0;for(this[c1]=255&c0;++c5>0)-c7&255;return c1+c2},c8.prototype.writeIntBE=function(c0,c1,c2,c3){if(c0=+c0,c1>>>=0,!c3){var c4=Math.pow(2,8*c2-1);c33(this,c0,c1,c2,c4-1,-c4)}var c5=c2-1,c6=1,c7=0;for(this[c1+c5]=255&c0;--c5>=0&&(c6*=256);)c0<0&&0===c7&&0!==this[c1+c5+1]&&(c7=1),this[c1+c5]=(c0/c6>>0)-c7&255;return c1+c2},c8.prototype.writeInt8=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,1,127,-128),c0<0&&(c0=255+c0+1),this[c1]=255&c0,c1+1},c8.prototype.writeInt16LE=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,2,32767,-32768),this[c1]=255&c0,this[c1+1]=c0>>>8,c1+2},c8.prototype.writeInt16BE=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,2,32767,-32768),this[c1]=c0>>>8,this[c1+1]=255&c0,c1+2},c8.prototype.writeInt32LE=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,4,2147483647,-2147483648),this[c1]=255&c0,this[c1+1]=c0>>>8,this[c1+2]=c0>>>16,this[c1+3]=c0>>>24,c1+4},c8.prototype.writeInt32BE=function(c0,c1,c2){return c0=+c0,c1>>>=0,c2||c33(this,c0,c1,4,2147483647,-2147483648),c0<0&&(c0=4294967295+c0+1),this[c1]=c0>>>24,this[c1+1]=c0>>>16,this[c1+2]=c0>>>8,this[c1+3]=255&c0,c1+4},c8.prototype.writeFloatLE=function(c0,c1,c2){return c35(this,c0,c1,!0,c2)},c8.prototype.writeFloatBE=function(c0,c1,c2){return c35(this,c0,c1,!1,c2)},c8.prototype.writeDoubleLE=function(c0,c1,c2){return c36(this,c0,c1,!0,c2)},c8.prototype.writeDoubleBE=function(c0,c1,c2){return c36(this,c0,c1,!1,c2)},c8.prototype.copy=function(c0,c1,c2,c3){if(!c8.isBuffer(c0))throw new TypeError("argument should be a Buffer");if(c2||(c2=0),c3||0===c3||(c3=this.length),c1>=c0.length&&(c1=c0.length),c1||(c1=0),c3>0&&c3=this.length)throw new RangeError("Index out of range");if(c3<0)throw new RangeError("sourceEnd out of bounds");c3>this.length&&(c3=this.length),c0.length-c1=0;--c5)c0[c5+c1]=this[c5+c2];else Uint8Array.prototype.set.call(c0,this.subarray(c2,c3),c1);return c4},c8.prototype.fill=function(c0,c1,c2,c3){if("string"==typeof c0){if("string"==typeof c1?(c3=c1,c1=0,c2=this.length):"string"==typeof c2&&(c3=c2,c2=this.length),void 0!==c3&&"string"!=typeof c3)throw new TypeError("encoding must be a string");if("string"==typeof c3&&!c8.isEncoding(c3))throw new TypeError("Unknown encoding: "+c3);if(1===c0.length){var c4=c0.charCodeAt(0);("utf8"===c3&&c4<128||"latin1"===c3)&&(c0=c4)}}else"number"==typeof c0?c0&=255:"boolean"==typeof c0&&(c0=Number(c0));if(c1<0||this.length>>=0,c2=void 0===c2?this.length:c2>>>0,c0||(c0=0),"number"==typeof c0)for(c5=c1;c555295&&c2<57344){if(!c4){if(c2>56319){(c1-=3)>-1&&c5.push(239,191,189);continue}if(c6+1===c3){(c1-=3)>-1&&c5.push(239,191,189);continue}c4=c2;continue}if(c2<56320){(c1-=3)>-1&&c5.push(239,191,189),c4=c2;continue}c2=65536+(c4-55296<<10|c2-56320)}else c4&&(c1-=3)>-1&&c5.push(239,191,189);if(c4=null,c2<128){if((c1-=1)<0)break;c5.push(c2)}else if(c2<2048){if((c1-=2)<0)break;c5.push(c2>>6|192,63&c2|128)}else if(c2<65536){if((c1-=3)<0)break;c5.push(c2>>12|224,c2>>6&63|128,63&c2|128)}else{if(!(c2<1114112))throw new Error("Invalid code point");if((c1-=4)<0)break;c5.push(c2>>18|240,c2>>12&63|128,c2>>6&63|128,63&c2|128)}}return c5}function c39(c0){return c3.toByteArray(function(c0){if((c0=(c0=c0.split("=")[0]).trim().replace(c37,"")).length<2)return"";for(;c0.length%4!=0;)c0+="=";return c0}(c0))}function c40(c0,c1,c2,c3){for(var c4=0;c4=c1.length||c4>=c0.length);++c4)c1[c4+c2]=c0[c4];return c4}function c41(c0,c1){return c0 instanceof c1||null!=c0&&null!=c0.constructor&&null!=c0.constructor.name&&c0.constructor.name===c1.name}function c42(c0){return c0!=c0}var c43=function(){for(var c0="0123456789abcdef",c1=new Array(256),c2=0;c2<16;++c2)for(var c3=16*c2,c4=0;c4<16;++c4)c1[c3+c4]=c0[c2]+c0[c4];return c1}()},9952:(c0,c1,c2)=>{c2(7468),c2(8052),c0.exports=c2(2552).Array.from},1120:(c0,c1,c2)=>{c2(2192),c2(7468),c0.exports=c2(9660)},6044:(c0,c1,c2)=>{var c3=c2(2552),c4=c3.JSON||(c3.JSON={stringify:JSON.stringify});c0.exports=function(c0){return c4.stringify.apply(c4,arguments)}},108:(c0,c1,c2)=>{c2(2596),c2(7468),c2(2192),c2(4988),c2(9164),c2(7124),c2(2556),c0.exports=c2(2552).Map},5740:(c0,c1,c2)=>{c2(3656),c0.exports=c2(2552).Number.isInteger},2166:(c0,c1,c2)=>{c2(4512),c0.exports=c2(2552).Object.assign},8336:(c0,c1,c2)=>{c2(6424);var c3=c2(2552).Object;c0.exports=function(c0,c1){return c3.create(c0,c1)}},7456:(c0,c1,c2)=>{c2(4072);var c3=c2(2552).Object;c0.exports=function(c0,c1){return c3.defineProperties(c0,c1)}},9096:(c0,c1,c2)=>{c2(9723);var c3=c2(2552).Object;c0.exports=function(c0,c1,c2){return c3.defineProperty(c0,c1,c2)}},7572:(c0,c1,c2)=>{c2(3444),c0.exports=c2(2552).Object.freeze},9128:(c0,c1,c2)=>{c2(1773);var c3=c2(2552).Object;c0.exports=function(c0){return c3.getOwnPropertyNames(c0)}},7308:(c0,c1,c2)=>{c2(8668),c0.exports=c2(2552).Object.keys},9784:(c0,c1,c2)=>{c2(2596),c2(7468),c2(2192),c2(4156),c2(2792),c2(1588),c0.exports=c2(2552).Promise},8540:(c0,c1,c2)=>{c2(2596),c2(7468),c2(2192),c2(2835),c2(1412),c2(7580),c2(2368),c0.exports=c2(2552).Set},2676:(c0,c1,c2)=>{c2(456),c2(2596),c2(4632),c2(120),c0.exports=c2(2552).Symbol},8240:(c0,c1,c2)=>{c2(7468),c2(2192),c0.exports=c2(2536).f("iterator")},4220:c0=>{c0.exports=function(c0){if("function"!=typeof c0)throw TypeError(c0+" is not a function!");return c0}},1904:c0=>{c0.exports=function(){}},9872:c0=>{c0.exports=function(c0,c1,c2,c3){if(!(c0 instanceof c1)||void 0!==c3&&c3 in c0)throw TypeError(c2+": incorrect invocation!");return c0}},6765:(c0,c1,c2)=>{var c3=c2(2856);c0.exports=function(c0){if(!c3(c0))throw TypeError(c0+" is not an object!");return c0}},3704:(c0,c1,c2)=>{var c3=c2(619);c0.exports=function(c0,c1){var c2=[];return c3(c0,!1,c2.push,c2,c1),c2}},7196:(c0,c1,c2)=>{var c3=c2(7380),c4=c2(5096),c5=c2(7952);c0.exports=function(c0){return function(c1,c2,c6){var c7,c8=c3(c1),c9=c4(c8.length),c10=c5(c6,c9);if(c0&&c2!=c2){for(;c9>c10;)if((c7=c8[c10++])!=c7)return!0}else for(;c9>c10;c10++)if((c0||c10 in c8)&&c8[c10]===c2)return c0||c10||0;return!c0&&-1}}},6680:(c0,c1,c2)=>{var c3=c2(2604),c4=c2(3552),c5=c2(9056),c6=c2(5096),c7=c2(960);c0.exports=function(c0,c1){var c2=1==c0,c8=2==c0,c9=3==c0,c10=4==c0,c11=6==c0,c12=5==c0||c11,c13=c1||c7;return function(c1,c7,c14){for(var c15,c16,c17=c5(c1),c18=c4(c17),c19=c3(c7,c14,3),c20=c6(c18.length),c21=0,c22=c2?c13(c1,c20):c8?c13(c1,0):void 0;c20>c21;c21++)if((c12||c21 in c18)&&(c16=c19(c15=c18[c21],c21,c17),c0))if(c2)c22[c21]=c16;else if(c16)switch(c0){case 3:return!0;case 5:return c15;case 6:return c21;case 2:c22.push(c15)}else if(c10)return!1;return c11?-1:c9||c10?c10:c22}}},2216:(c0,c1,c2)=>{var c3=c2(2856),c4=c2(1936),c5=c2(3600)("species");c0.exports=function(c0){var c1;return c4(c0)&&("function"!=typeof(c1=c0.constructor)||c1!==Array&&!c4(c1.prototype)||(c1=void 0),c3(c1)&&null===(c1=c1[c5])&&(c1=void 0)),void 0===c1?Array:c1}},960:(c0,c1,c2)=>{var c3=c2(2216);c0.exports=function(c0,c1){return new(c3(c0))(c1)}},2240:(c0,c1,c2)=>{var c3=c2(4912),c4=c2(3600)("toStringTag"),c5="Arguments"==c3(function(){return arguments}());c0.exports=function(c0){var c1,c2,c6;return void 0===c0?"Undefined":null===c0?"Null":"string"==typeof(c2=function(c0,c1){try{return c0[c1]}catch(c0){}}(c1=Object(c0),c4))?c2:c5?c3(c1):"Object"==(c6=c3(c1))&&"function"==typeof c1.callee?"Arguments":c6}},4912:c0=>{var c1={}.toString;c0.exports=function(c0){return c1.call(c0).slice(8,-1)}},5712:(c0,c1,c2)=>{var c3=c2(6208).f,c4=c2(5208),c5=c2(3464),c6=c2(2604),c7=c2(9872),c8=c2(619),c9=c2(5176),c10=c2(264),c11=c2(9360),c12=c2(5548),c13=c2(8216).fastKey,c14=c2(1869),c15=c12?"_s":"size",c16=function(c0,c1){var c2,c3=c13(c1);if("F"!==c3)return c0._i[c3];for(c2=c0._f;c2;c2=c2.n)if(c2.k==c1)return c2};c0.exports={getConstructor:function(c0,c1,c2,c9){var c10=c0((function(c0,c3){c7(c0,c10,c1,"_i"),c0._t=c1,c0._i=c4(null),c0._f=void 0,c0._l=void 0,c0[c15]=0,null!=c3&&c8(c3,c2,c0[c9],c0)}));return c5(c10.prototype,{clear:function(){for(var c0=c14(this,c1),c2=c0._i,c3=c0._f;c3;c3=c3.n)c3.r=!0,c3.p&&(c3.p=c3.p.n=void 0),delete c2[c3.i];c0._f=c0._l=void 0,c0[c15]=0},delete:function(c0){var c2=c14(this,c1),c3=c16(c2,c0);if(c3){var c4=c3.n,c5=c3.p;delete c2._i[c3.i],c3.r=!0,c5&&(c5.n=c4),c4&&(c4.p=c5),c2._f==c3&&(c2._f=c4),c2._l==c3&&(c2._l=c5),c2[c15]--}return!!c3},forEach:function(c0){c14(this,c1);for(var c2,c3=c6(c0,arguments.length>1?arguments[1]:void 0,3);c2=c2?c2.n:this._f;)for(c3(c2.v,c2.k,this);c2&&c2.r;)c2=c2.p},has:function(c0){return!!c16(c14(this,c1),c0)}}),c12&&c3(c10.prototype,"size",{get:function(){return c14(this,c1)[c15]}}),c10},def:function(c0,c1,c2){var c3,c4,c5=c16(c0,c1);return c5?c5.v=c2:(c0._l=c5={i:c4=c13(c1,!0),k:c1,v:c2,p:c3=c0._l,n:void 0,r:!1},c0._f||(c0._f=c5),c3&&(c3.n=c5),c0[c15]++,"F"!==c4&&(c0._i[c4]=c5)),c0},getEntry:c16,setStrong:function(c0,c1,c2){c9(c0,c1,(function(c0,c2){this._t=c14(c0,c1),this._k=c2,this._l=void 0}),(function(){for(var c0=this,c1=c0._k,c2=c0._l;c2&&c2.r;)c2=c2.p;return c0._t&&(c0._l=c2=c2?c2.n:c0._t._f)?c10(0,"keys"==c1?c2.k:"values"==c1?c2.v:[c2.k,c2.v]):(c0._t=void 0,c10(1))}),c2?"entries":"values",!c2,!0),c11(c1)}}},8368:(c0,c1,c2)=>{var c3=c2(2240),c4=c2(3704);c0.exports=function(c0){return function(){if(c3(this)!=c0)throw TypeError(c0+"#toJSON isn't generic");return c4(this)}}},9932:(c0,c1,c2)=>{var c3=c2(1659),c4=c2(4232),c5=c2(8216),c6=c2(1816),c7=c2(8144),c8=c2(3464),c9=c2(619),c10=c2(9872),c11=c2(2856),c12=c2(7292),c13=c2(6208).f,c14=c2(6680)(0),c15=c2(5548);c0.exports=function(c0,c1,c2,c16,c17,c18){var c19=c3[c0],c20=c19,c21=c17?"set":"add",c22=c20&&c20.prototype,c23={};return c15&&"function"==typeof c20&&(c18||c22.forEach&&!c6((function(){(new c20).entries().next()})))?(c20=c1((function(c1,c2){c10(c1,c20,c0,"_c"),c1._c=new c19,null!=c2&&c9(c2,c17,c1[c21],c1)})),c14("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(c0){var c1="add"==c0||"set"==c0;!(c0 in c22)||c18&&"clear"==c0||c7(c20.prototype,c0,(function(c2,c3){if(c10(this,c20,c0),!c1&&c18&&!c11(c2))return"get"==c0&&void 0;var c4=this._c[c0](0===c2?0:c2,c3);return c1?this:c4}))})),c18||c13(c20.prototype,"size",{get:function(){return this._c.size}})):(c20=c16.getConstructor(c1,c0,c17,c21),c8(c20.prototype,c2),c5.NEED=!0),c12(c20,c0),c23[c0]=c20,c4(c4.G+c4.W+c4.F,c23),c18||c16.setStrong(c20,c0,c17),c20}},2552:c0=>{var c1=c0.exports={version:"2.6.10"};"number"==typeof __e&&(__e=c1)},1968:(c0,c1,c2)=>{var c3=c2(6208),c4=c2(4888);c0.exports=function(c0,c1,c2){c1 in c0?c3.f(c0,c1,c4(0,c2)):c0[c1]=c2}},2604:(c0,c1,c2)=>{var c3=c2(4220);c0.exports=function(c0,c1,c2){if(c3(c0),void 0===c1)return c0;switch(c2){case 1:return function(c2){return c0.call(c1,c2)};case 2:return function(c2,c3){return c0.call(c1,c2,c3)};case 3:return function(c2,c3,c4){return c0.call(c1,c2,c3,c4)}}return function(){return c0.apply(c1,arguments)}}},8572:c0=>{c0.exports=function(c0){if(null==c0)throw TypeError("Can't call method on "+c0);return c0}},5548:(c0,c1,c2)=>{c0.exports=!c2(1816)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},1068:(c0,c1,c2)=>{var c3=c2(2856),c4=c2(1659).document,c5=c3(c4)&&c3(c4.createElement);c0.exports=function(c0){return c5?c4.createElement(c0):{}}},1776:c0=>{c0.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9488:(c0,c1,c2)=>{var c3=c2(9120),c4=c2(8896),c5=c2(7412);c0.exports=function(c0){var c1=c3(c0),c2=c4.f;if(c2)for(var c6,c7=c2(c0),c8=c5.f,c9=0;c7.length>c9;)c8.call(c0,c6=c7[c9++])&&c1.push(c6);return c1}},4232:(c0,c1,c2)=>{var c3=c2(1659),c4=c2(2552),c5=c2(2604),c6=c2(8144),c7=c2(6804),c8=function(c0,c1,c2){var c9,c10,c11,c12=c0&c8.F,c13=c0&c8.G,c14=c0&c8.S,c15=c0&c8.P,c16=c0&c8.B,c17=c0&c8.W,c18=c13?c4:c4[c1]||(c4[c1]={}),c19=c18.prototype,c20=c13?c3:c14?c3[c1]:(c3[c1]||{}).prototype;for(c9 in c13&&(c2=c1),c2)(c10=!c12&&c20&&void 0!==c20[c9])&&c7(c18,c9)||(c11=c10?c20[c9]:c2[c9],c18[c9]=c13&&"function"!=typeof c20[c9]?c2[c9]:c16&&c10?c5(c11,c3):c17&&c20[c9]==c11?function(c0){var c1=function(c1,c2,c3){if(this instanceof c0){switch(arguments.length){case 0:return new c0;case 1:return new c0(c1);case 2:return new c0(c1,c2)}return new c0(c1,c2,c3)}return c0.apply(this,arguments)};return c1.prototype=c0.prototype,c1}(c11):c15&&"function"==typeof c11?c5(Function.call,c11):c11,c15&&((c18.virtual||(c18.virtual={}))[c9]=c11,c0&c8.R&&c19&&!c19[c9]&&c6(c19,c9,c11)))};c8.F=1,c8.G=2,c8.S=4,c8.P=8,c8.B=16,c8.W=32,c8.U=64,c8.R=128,c0.exports=c8},1816:c0=>{c0.exports=function(c0){try{return!!c0()}catch(c0){return!0}}},619:(c0,c1,c2)=>{var c3=c2(2604),c4=c2(2200),c5=c2(7820),c6=c2(6765),c7=c2(5096),c8=c2(7712),c9={},c10={},c11=c0.exports=function(c0,c1,c2,c11,c12){var c13,c14,c15,c16,c17=c12?function(){return c0}:c8(c0),c18=c3(c2,c11,c1?2:1),c19=0;if("function"!=typeof c17)throw TypeError(c0+" is not iterable!");if(c5(c17)){for(c13=c7(c0.length);c13>c19;c19++)if((c16=c1?c18(c6(c14=c0[c19])[0],c14[1]):c18(c0[c19]))===c9||c16===c10)return c16}else for(c15=c17.call(c0);!(c14=c15.next()).done;)if((c16=c4(c15,c18,c14.value,c1))===c9||c16===c10)return c16};c11.BREAK=c9,c11.RETURN=c10},1659:c0=>{var c1=c0.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=c1)},6804:c0=>{var c1={}.hasOwnProperty;c0.exports=function(c0,c2){return c1.call(c0,c2)}},8144:(c0,c1,c2)=>{var c3=c2(6208),c4=c2(4888);c0.exports=c2(5548)?function(c0,c1,c2){return c3.f(c0,c1,c4(1,c2))}:function(c0,c1,c2){return c0[c1]=c2,c0}},9976:(c0,c1,c2)=>{var c3=c2(1659).document;c0.exports=c3&&c3.documentElement},7732:(c0,c1,c2)=>{c0.exports=!c2(5548)&&!c2(1816)((function(){return 7!=Object.defineProperty(c2(1068)("div"),"a",{get:function(){return 7}}).a}))},188:c0=>{c0.exports=function(c0,c1,c2){var c3=void 0===c2;switch(c1.length){case 0:return c3?c0():c0.call(c2);case 1:return c3?c0(c1[0]):c0.call(c2,c1[0]);case 2:return c3?c0(c1[0],c1[1]):c0.call(c2,c1[0],c1[1]);case 3:return c3?c0(c1[0],c1[1],c1[2]):c0.call(c2,c1[0],c1[1],c1[2]);case 4:return c3?c0(c1[0],c1[1],c1[2],c1[3]):c0.call(c2,c1[0],c1[1],c1[2],c1[3])}return c0.apply(c2,c1)}},3552:(c0,c1,c2)=>{var c3=c2(4912);c0.exports=Object("z").propertyIsEnumerable(0)?Object:function(c0){return"String"==c3(c0)?c0.split(""):Object(c0)}},7820:(c0,c1,c2)=>{var c3=c2(6872),c4=c2(3600)("iterator"),c5=Array.prototype;c0.exports=function(c0){return void 0!==c0&&(c3.Array===c0||c5[c4]===c0)}},1936:(c0,c1,c2)=>{var c3=c2(4912);c0.exports=Array.isArray||function(c0){return"Array"==c3(c0)}},6432:(c0,c1,c2)=>{var c3=c2(2856),c4=Math.floor;c0.exports=function(c0){return!c3(c0)&&isFinite(c0)&&c4(c0)===c0}},2856:c0=>{c0.exports=function(c0){return"object"==typeof c0?null!==c0:"function"==typeof c0}},2200:(c0,c1,c2)=>{var c3=c2(6765);c0.exports=function(c0,c1,c2,c4){try{return c4?c1(c3(c2)[0],c2[1]):c1(c2)}catch(c1){var c5=c0.return;throw void 0!==c5&&c3(c5.call(c0)),c1}}},2448:(c0,c1,c2)=>{var c3=c2(5208),c4=c2(4888),c5=c2(7292),c6={};c2(8144)(c6,c2(3600)("iterator"),(function(){return this})),c0.exports=function(c0,c1,c2){c0.prototype=c3(c6,{next:c4(1,c2)}),c5(c0,c1+" Iterator")}},5176:(c0,c1,c2)=>{var c3=c2(9916),c4=c2(4232),c5=c2(8636),c6=c2(8144),c7=c2(6872),c8=c2(2448),c9=c2(7292),c10=c2(8228),c11=c2(3600)("iterator"),c12=!([].keys&&"next"in[].keys()),c13="keys",c14="values",c15=function(){return this};c0.exports=function(c0,c1,c2,c16,c17,c18,c19){c8(c2,c1,c16);var c20,c21,c22,c23=function(c0){if(!c12&&c0 in c27)return c27[c0];switch(c0){case c13:case c14:return function(){return new c2(this,c0)}}return function(){return new c2(this,c0)}},c24=c1+" Iterator",c25=c17==c14,c26=!1,c27=c0.prototype,c28=c27[c11]||c27["@@iterator"]||c17&&c27[c17],c29=c28||c23(c17),c30=c17?c25?c23("entries"):c29:void 0,c31="Array"==c1&&c27.entries||c28;if(c31&&(c22=c10(c31.call(new c0)))!==Object.prototype&&c22.next&&(c9(c22,c24,!0),c3||"function"==typeof c22[c11]||c6(c22,c11,c15)),c25&&c28&&c28.name!==c14&&(c26=!0,c29=function(){return c28.call(this)}),c3&&!c19||!c12&&!c26&&c27[c11]||c6(c27,c11,c29),c7[c1]=c29,c7[c24]=c15,c17)if(c20={values:c25?c29:c23(c14),keys:c18?c29:c23(c13),entries:c30},c19)for(c21 in c20)c21 in c27||c5(c27,c21,c20[c21]);else c4(c4.P+c4.F*(c12||c26),c1,c20);return c20}},8200:(c0,c1,c2)=>{var c3=c2(3600)("iterator"),c4=!1;try{var c5=[7][c3]();c5.return=function(){c4=!0},Array.from(c5,(function(){throw 2}))}catch(c0){}c0.exports=function(c0,c1){if(!c1&&!c4)return!1;var c2=!1;try{var c5=[7],c6=c5[c3]();c6.next=function(){return{done:c2=!0}},c5[c3]=function(){return c6},c0(c5)}catch(c0){}return c2}},264:c0=>{c0.exports=function(c0,c1){return{value:c1,done:!!c0}}},6872:c0=>{c0.exports={}},9916:c0=>{c0.exports=!0},8216:(c0,c1,c2)=>{var c3=c2(476)("meta"),c4=c2(2856),c5=c2(6804),c6=c2(6208).f,c7=0,c8=Object.isExtensible||function(){return!0},c9=!c2(1816)((function(){return c8(Object.preventExtensions({}))})),c10=function(c0){c6(c0,c3,{value:{i:"O"+ ++c7,w:{}}})},c11=c0.exports={KEY:c3,NEED:!1,fastKey:function(c0,c1){if(!c4(c0))return"symbol"==typeof c0?c0:("string"==typeof c0?"S":"P")+c0;if(!c5(c0,c3)){if(!c8(c0))return"F";if(!c1)return"E";c10(c0)}return c0[c3].i},getWeak:function(c0,c1){if(!c5(c0,c3)){if(!c8(c0))return!0;if(!c1)return!1;c10(c0)}return c0[c3].w},onFreeze:function(c0){return c9&&c11.NEED&&c8(c0)&&!c5(c0,c3)&&c10(c0),c0}}},1332:(c0,c1,c2)=>{var c3=c2(1659),c4=c2(9460).set,c5=c3.MutationObserver||c3.WebKitMutationObserver,c6=c3.process,c7=c3.Promise,c8="process"==c2(4912)(c6);c0.exports=function(){var c0,c1,c2,c9=function(){var c3,c4;for(c8&&(c3=c6.domain)&&c3.exit();c0;){c4=c0.fn,c0=c0.next;try{c4()}catch(c3){throw c0?c2():c1=void 0,c3}}c1=void 0,c3&&c3.enter()};if(c8)c2=function(){c6.nextTick(c9)};else if(!c5||c3.navigator&&c3.navigator.standalone)if(c7&&c7.resolve){var c10=c7.resolve(void 0);c2=function(){c10.then(c9)}}else c2=function(){c4.call(c3,c9)};else{var c11=!0,c12=document.createTextNode("");new c5(c9).observe(c12,{characterData:!0}),c2=function(){c12.data=c11=!c11}}return function(c3){var c4={fn:c3,next:void 0};c1&&(c1.next=c4),c0||(c0=c4,c2()),c1=c4}}},268:(c0,c1,c2)=>{var c3=c2(4220);function c4(c0){var c1,c2;this.promise=new c0((function(c0,c3){if(void 0!==c1||void 0!==c2)throw TypeError("Bad Promise constructor");c1=c0,c2=c3})),this.resolve=c3(c1),this.reject=c3(c2)}c0.exports.f=function(c0){return new c4(c0)}},2052:(c0,c1,c2)=>{var c3=c2(5548),c4=c2(9120),c5=c2(8896),c6=c2(7412),c7=c2(9056),c8=c2(3552),c9=Object.assign;c0.exports=!c9||c2(1816)((function(){var c0={},c1={},c2=Symbol(),c3="abcdefghijklmnopqrst";return c0[c2]=7,c3.split("").forEach((function(c0){c1[c0]=c0})),7!=c9({},c0)[c2]||Object.keys(c9({},c1)).join("")!=c3}))?function(c0,c1){for(var c2=c7(c0),c9=arguments.length,c10=1,c11=c5.f,c12=c6.f;c9>c10;)for(var c13,c14=c8(arguments[c10++]),c15=c11?c4(c14).concat(c11(c14)):c4(c14),c16=c15.length,c17=0;c16>c17;)c13=c15[c17++],c3&&!c12.call(c14,c13)||(c2[c13]=c14[c13]);return c2}:c9},5208:(c0,c1,c2)=>{var c3=c2(6765),c4=c2(8992),c5=c2(1776),c6=c2(588)("IE_PROTO"),c7=function(){},c8=function(){var c0,c1=c2(1068)("iframe"),c3=c5.length;for(c1.style.display="none",c2(9976).appendChild(c1),c1.src="javascript:",(c0=c1.contentWindow.document).open(),c0.write("