6 lines
254 KiB
Plaintext
6 lines
254 KiB
Plaintext
/*! For license information please see 97704.41f5a7ff.js.LICENSE.txt */
|
|
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?t():"function"==typeof define&&define.amd?define([],t):(e="undefined"!=typeof globalThis?globalThis:e||self)&&t()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).xss={})}(this,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function n(e,t,n){if(n||2==arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var o=/[^a-zA-Z0-9\\_:.-]/gim,r=/</g,i=/>/g,s=/&#([a-zA-Z0-9]*);?/gim,a=/"/g,c=/:?/gim,_=/&newline;?/gim,l=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,u=/u\s*r\s*l\s*\(.*/gi,p=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,d=/"/g,f=function(e){return e.replace(r,"<").replace(i,">")},y={indexOf:function(e,t){var n,o;for(n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return -1},forEach:function(e,t,n){var o,r;for(o=0,r=e.length;o<r;o++)t.call(n,e[o],o,e)},some:function(e,t,n){var o,r;for(o=0,r=e.length;o<r;o++)if(t.call(n,e[o],o,e))return!0;return!1},trim:function(e){return e.replace(/(^\s*)|(\s*$)/g,"")},includes:function(e,t){if("string"==typeof e)return -1!==e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1},uniq:function(e){for(var t={},n=[],o=0;o<e.length;o++)t[e[o]]||(n.push(e[o]),t[e[o]]=!0);return n},from:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},keys:function(e){var t=[];for(var n in e)t.push(n);return t}};function g(e){return null==e}function h(e){var t;return'"'===(t=e)[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]?e.substr(1,e.length-2):e}function v(e){var t,n,o,r,i,s,a,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_="",l=0;for(e=function(e){e=e.replace(/rn/g,"n");for(var t="",n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t+=String.fromCharCode(o):o>127&&o<2048?t+=String.fromCharCode(o>>6|192)+String.fromCharCode(63&o|128):t+=String.fromCharCode(o>>12|224)+String.fromCharCode(o>>6&63|128)+String.fromCharCode(63&o|128)}return t}(e);l<e.length;)r=(t=e.charCodeAt(l++))>>2,i=(3&t)<<4|(n=e.charCodeAt(l++))>>4,s=(15&n)<<2|(o=e.charCodeAt(l++))>>6,a=63&o,isNaN(n)?s=a=64:isNaN(o)&&(a=64),_=_+c.charAt(r)+c.charAt(i)+c.charAt(s)+c.charAt(a);return _}function b(e){var t,n,o,r,i,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",_=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");_<e.length;)t=a.indexOf(e.charAt(_++))<<2|(r=a.indexOf(e.charAt(_++)))>>4,n=(15&r)<<4|(i=a.indexOf(e.charAt(_++)))>>2,o=(3&i)<<6|(s=a.indexOf(e.charAt(_++))),c+=String.fromCharCode(t),64!==i&&(c+=String.fromCharCode(n)),64!==s&&(c+=String.fromCharCode(o));return function(e){for(var t="",n=0,o=0,r=0,i=0;n<e.length;)(o=e.charCodeAt(n))<128?(t+=String.fromCharCode(o),n++):o>191&&o<224?(t+=String.fromCharCode((31&o)<<6|63&(i=e.charCodeAt(n+1))),n+=2):(i=e.charCodeAt(n+1),t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&(r=e.charCodeAt(n+2))),n+=3);return t}(c)}function m(e,t,n){var o="",r=0,i=!1,s=!1,a=0,c=e.length,_="",l="";e:for(a=0;a<c;a++){var u=e.charAt(a);if(!1===i){if("<"===u){i=a;continue}}else if(!1===s){if("<"===u){o+=n(e.slice(r,a)),i=a,r=a;continue}if(">"===u||a===c-1){o+=n(e.slice(r,i)),_=function(e){var t,n=y.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=y.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(l=e.slice(i,a+1)),o+=t(i,o.length,_,l,"</"===l.slice(0,2)),r=a+1,i=!1;continue}if('"'===u||"'"===u)for(var p=1,d=e.charAt(a-p);""===d.trim()||"="===d;){if("="===d){s=u;continue e}d=e.charAt(a-++p)}}else if(u===s){s=!1;continue}}return r<c&&(o+=n(e.substr(r))),o}function O(e,t){var n=0,r=0,i=[],s=!1,a=e.length;function c(e,n){if(!((e=(e=y.trim(e)).replace(o,"").toLowerCase()).length<1)){var r=t(e,n||"");r&&i.push(r)}}for(var _=0;_<a;_++){var l=e.charAt(_),u=void 0;if(!1!==s||"="!==l){if(!1===s||_!==r){if(/\s|\n|\t/.test(l)){if(e=e.replace(/\s|\n|\t/g," "),!1===s){if(-1===(u=function(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,_))){c(y.trim(e.slice(n,_))),s=!1,n=_+1;continue}_=u-1;continue}if(-1===(u=function(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,_-1))){c(s,h(y.trim(e.slice(n,_)))),s=!1,n=_+1;continue}}}else{if(-1===(u=e.indexOf(l,_+1)))break;c(s,y.trim(e.slice(r+1,u))),s=!1,n=(_=u)+1}}else s=e.slice(n,_),n=_+1,r='"'===e.charAt(n)||"'"===e.charAt(n)?n:function(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}return -1}(e,_+1)}return n<e.length&&(!1===s?c(e.slice(n)):c(s,h(y.trim(e.slice(n))))),y.trim(i.join(" "))}function k(e,t,n){if(n=function(e){return e=function(e){for(var t="",n=0,o=e.length;n<o;n++)t+=32>e.charCodeAt(n)?" ":e.charAt(n);return y.trim(t)}(e=(e=(e=e.replace(a,'"')).replace(s,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})).replace(c,":").replace(_," "))}(n),"href"===t||"src"===t){if("#"===(n=y.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(l.lastIndex=0,l.test(n))return""}else if("style"===t&&(p.lastIndex=0,p.test(n)||(u.lastIndex=0,u.test(n)&&(l.lastIndex=0,l.test(n)))))return"";return n=function(e){return e=f(e=e.replace(d,"""))}(n)}var w=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},P=function(){function e(e){var t=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{});t.stripIgnoreTag&&(t.onIgnoreTag,t.onIgnoreTag=function(){return""}),t.whiteList={},t.onTag=function(){},t.onTagAttr=function(){},t.onIgnoreTag=function(){},t.onIgnoreTagAttr=function(){},t.safeAttrValue=k,t.escapeHtml=f,this.options=Object.assign(t,e)}return e.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t,n,o,r,i,s,a=this.options,c=a.whiteList,_=a.onTag,l=a.onIgnoreTag,u=a.onTagAttr,p=a.onIgnoreTagAttr,d=a.safeAttrValue,f=a.escapeHtml;a.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),a.allowCommentTag||(e=function(e){for(var t="",n=0;n<e.length;){var o=e.indexOf("\x3c!--",n);if(-1===o){t+=e.slice(n);break}t+=e.slice(n,o);var r=e.indexOf("--\x3e",o);if(-1===r)break;n=r+3}return t}(e));var g=!1;a.stripIgnoreTagBody&&(n=a.stripIgnoreTagBody,"function"!=typeof(o=l)&&(o=function(){}),r=!Array.isArray(n),i=[],s=!1,l=(g={onIgnoreTag:function(e,t,a){var c;if(c=e,r||-1!==y.indexOf(n,c)){if(a.isClosing){var _="[/removed]",l=a.position+_.length;return i.push([!1!==s?s:a.position,l]),s=!1,_}return s||(s=a.position),"[removed]"}return o(e,t,a)},remove:function(e){var t="",n=0;return y.forEach(i,function(o){t+=e.slice(n,o[0]),n=o[1]}),t+=e.slice(n)}}).onIgnoreTag);var h=m(e,function(e,t,n,o,r){var i={sourcePosition:e,position:t,isClosing:r,isWhite:Object.prototype.hasOwnProperty.call(c,n)},s=_(n,o,i);if(null!=s)return s;if(i.isWhite){if(i.isClosing)return"</".concat(n,">");var a=function(e){var t=y.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=y.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=y.trim(e.slice(0,-1))),{html:e,closing:n}}(o),g=c[n],h=O(a.html,function(e,t){var o=-1!==y.indexOf(g,e),r=u(n,e,t,o);return null==r?o?(t=d(n,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(r=p(n,e,t,o))?void 0:r:r});return o="<".concat(n),h&&(o+=" ".concat(h)),a.closing&&(o+=" /"),o+=">"}return null==(s=l(n,o,i))?f(o):s},f);return g&&(h=g.remove(h)),h},e}(),R=Function("\nvar _checkXSS = function (it) {\n return it && it.Math == Math && it;\n};\nreturn _checkXSS(typeof globalThis === 'object' && globalThis) ||\n_checkXSS(typeof window === 'object' && window) ||\n_checkXSS(typeof self === 'object' && self) ||\n_checkXSS(typeof global === 'object' && global) ||\nFunction('return this')();\n")(),j=new(function(){function e(){var e=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var t,n,o="douyin_web";if(!y.includes(o,"bid"))return o;if(e.config&&e.config.bid)return e.config.bid;if(R&&R._xssBid)return R._xssBid;if(R&&R.slardar&&"function"==typeof R.slardar.config){var r=(R.slardar.config()||{}).bid;if(r)return r}if(R&&R.Slardar&&"function"==typeof R.Slardar.config){var i=(R.Slardar.config()||{}).bid;if(i)return i}return(null===(n=null===(t=null==R?void 0:R.Slardar)||void 0===t?void 0:t._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var t;return y.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==R?void 0:R.gfdatav1)||void 0===t?void 0:t.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var t={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[e.getConfigRegion()];if(t)return t+e.getSlardarBid()}}return e.prototype.setConfig=function(e){this.config=e},e.prototype.upload=function(){var e=this,t=this.gerReportUrl();!this.lock&&t&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var n=e.batchData.slice(0,100);e.batchData=e.batchData.slice(100),R.fetch(t,{method:"post",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}).catch(function(e){}),e.lock=!1,e.upload()},this.timeout))},e.prototype.generateKey=function(e){return e.collectKey?[e.collectMode,e.collectKey].join("___"):""},e.prototype.push=function(e){this.batchData.push(e),this.upload()},e.prototype.report=function(e){var t=this.generateKey(e);if(R.fetch&&e.collectKey){var n="object"==typeof window?window.location.href:"SSR";e.documentUrl=n;var o={age:Math.floor(Date.now()),type:"xss",url:n,body:e,"user-agent":""};"enforce"===e.disposition&&"SSR"!==n||(o.url=t),"SSR"===n&&(o.url="SSR___".concat(o.url),o.body.ssr=!0),this.push(o)}},e}()),x=function(e){for(var t=0,n=function(n){Array.isArray(e[n])?0===e[n].length?delete e[n]:(e[n]=y.from(y.uniq(e[n])),t+=e[n].length):0===y.keys(e[n]).length?delete e[n]:y.keys(e[n]).forEach(function(o){e[n][o]=y.from(y.uniq(e[n][o])),t+=e[n][o].length})},o=0,r=y.keys(e);o<r.length;o++)n(r[o]);return{count:t,ret:e}};function C(e,t){return j.setConfig(t),new P(t).process(e)}function E(e){var t,n=(t=/\s|\n|\t/.exec(e))?t.index:-1;if(-1===n)return{html:"",closing:"/"===e[e.length-2]};var o="/"===(e=e.slice(n+1,-1).trim())[e.length-1];return o&&(e=e.slice(0,-1).trim()),{html:e,closing:o}}var I=function(e){return -1===(e=(e=(e=(e=e.replace(/:/gi,":")).replace(/&tab;/gi,"")).replace(/&newline;/gi,"")).replace(/(\t|\n|\r)/g,"")).indexOf("&#")?e.trim().toLowerCase():e.trim().replace(/&#(?:(x)([0-9a-f]+)|([0-9]+));?/gi,function(e,t,n,o){return String.fromCharCode(t?parseInt(n,16):parseInt(o))}).replace(/(\t|\n|\r)/g,"").toLowerCase()};function B(e,t){if(void 0===e&&(e=""),"string"!=typeof e)return!0;if(e=I(e),y.includes(e,"base64")&&!function(e){if(""===e||""===e.trim())return!0;try{return!y.includes(e,"data:text/html;base64")}catch(e){return!0}}(e))return t&&t("data:text/html;base64"),!1;var n=["expression(","behavior:","view-source:"];if(y.some(n,function(t){return -1!==e.indexOf(t)}))return y.forEach(n,function(n){-1!==e.indexOf(n)&&t&&t(n)}),!1;var o=["data:application","data:javascript","data:text/html","data:texthtml"];if(y.some(o,function(t){return -1!==e.indexOf(t)}))return y.forEach(o,function(n){-1!==e.indexOf(n)&&t&&t(n)}),!1;if(e.indexOf("javascript:")>0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var r=e.slice(11).replace(/\s/g,"").trim();return!!y.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===r})||(t&&t("javascript:"),!1)}return!0}var T=function(e,t){var n,o,r="<%= isSaveValidUrl =>";if("string"!=typeof e||(o=Number("<%= urlLimit =>"),void 0!==n&&(o=n),"NaN"!==e.toString()&&-1!==o&&e.length>=o)||B(e,t))return e;try{if(!0===(r=JSON.parse(r))||"true"===r){var i=new URL(e);return i.origin+i.pathname}}catch(e){}return"#"};function L(e,t,o){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!B(e=I(e)))return!1;var r,i={url:(r=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:r[1],slash:r[2],host:r[3],port:r[4],path:r[5],query:r[6],hash:r[7]},s=i.scheme,a=i.host;return o?!!o(e):!(!s||!a)&&(!y.includes(["http","https","file"],s)||("object"==typeof window&&window&&(t=n(n([],t,!0),[location.host],!1)),y.some(t,function(e){return!!(e instanceof RegExp&&e.test(a))||e===a})))}var S={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},A={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=x(this.collect),t=e.count,n=e.ret;return this.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"white"}},onIgnoreTagAttr:function(e,t,o){return e&&y.indexOf(["href","src"],t)>-1?A.domainWhiteList&&Array.isArray(A.domainWhiteList)&&A.domainWhiteList.length>0&&!L(o,n([],A.domainWhiteList,!0))?"":"".concat(t,'="').concat(T(o,function(e){var t;null===(t=A.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(y.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(o,'"'):(A.collect.whiteList[e]=A.collect.whiteList[e]||[],void A.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;m(t,function(e,t,n,o){O(E(o).html.replace("/",""),function(e){A.collect.whiteList[n]=A.collect.whiteList[n]||[],A.collect.whiteList[n].push(e)})},f)},whiteList:S,mergeWhiteList:function(e){for(var t,n={},o=0,r=y.keys(S);o<r.length;o++)n[t=r[o]]=y.from(S[t]);for(var i=0,s=y.keys(e);i<s.length;i++)n[t=s[i]]=t in S?S[t].concat(e[t]):y.from(e[t]);return n},setWhiteList:function(e){for(var t=0,n=y.keys(e);t<n.length;t++){var o=n[t];this.whiteList[o]=o in S?S[o].concat(e[o]):y.from(e[o])}}};try{var M={},N="merge";y.includes(N,"override")&&(A.whiteList=M.whiteList),y.includes(N,"merge")&&A.setWhiteList(M.whiteList)}catch(e){}var G=function(e,t){for(var n={},o=0,r=y.keys(e);o<r.length;o++){var i=r[o];Array.isArray(e[i])?n[i]=y.from(e[i]):n[i]=G({},e[i])}for(var s=0,a=y.keys(t);s<a.length;s++)(i=a[s])in e?Array.isArray(e[i])?n[i]=e[i].concat(t[i]):n[i]=G(e[i],t[i]):Array.isArray(t[i])?n[i]=y.from(t[i]):n[i]=G({},t[i]);return n},q={blackList:{a:["folder"],meta:["content"],iframe:["srcdoc"],input:["pattern"],vmlframe:["xmlns"]},blackTags:["script","xml","embed","isindex","object","base","set","handler","animate","payload","import"],blackAttrs:["charset","ns","namespace","formaction","xlink:href","xmlns:xlink","handler","repeat","repeat-start","repeat-end"],blackAttrRegExps:[/^on/],filterList:{param:["value"],video:["poster"],form:["action"]},filterAttrs:["href","src","background","style","dynsrc","lowsrc","content"]};try{var V={};V.blackAttrRegExps&&(V.blackAttrRegExps=V.blackAttrRegExps.map(function(e){return new RegExp(e.toString().slice(1,e.toString().length-1))}));var D="merge";y.includes(D,"override")&&(q=V),y.includes(D,"merge")&&(q=G(q,V))}catch(e){}var U={mode:"black",whiteList:{},blackConfig:q,collect:null,initCollect:function(){U.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var e=x(U.collect),t=e.count,n=e.ret;return U.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"black"}},onIgnoreTag:function(e,t){var n;if(!y.includes(q.blackTags,e))return m(t,function(e,t,n,o,r){if(-1!==n.indexOf("/"))return f(o);if(r)return"</".concat(n,">");var i=E(o),s=O(i.html,function(e,t){var o,r=0;if(q.blackList[n]&&y.includes(q.blackList[n],e)&&(U.collect.blackList[n]=U.collect.blackList[n]||[],U.collect.blackList[n].push(e),r++),q.blackAttrRegExps.length&&q.blackAttrRegExps.some(function(t){return t.test(e)})&&y.forEach(q.blackAttrRegExps,function(t){t.test(e)&&(U.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),r++)}),q.blackAttrs.length&&y.includes(q.blackAttrs,e)&&(q.blackAttrs.push(e),r++),!r){if(q.filterList&&q.filterList[n]&&y.includes(q.filterList[n],e)){var i=T(t,function(e){var t;null===(t=U.collect)||void 0===t||t.filterProtocol.push(e)});return i!==t&&(U.collect.filterList[n]=U.collect.filterList[n]||[],U.collect.filterList[n].push(e)),t?"".concat(e,"='").concat(i,"'"):e}return q.filterAttrs&&y.includes(q.filterAttrs,e)?((i=T(t,function(e){var t;null===(t=U.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(o=U.collect)||void 0===o||o.filterAttrs.push(e)),t?"".concat(e,"='").concat(i,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return o="<".concat(n),s&&(o+=" ".concat(s)),i.closing&&(o+=" /"),o+=">"},f);null===(n=U.collect)||void 0===n||n.blackTags.push(e)}},Y=function(e){var t=e.reportOnly,n=void 0===t||t,o=e.block;return n&&"all"===n?"report":("string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1)),o?"enforce":n?"report":"enforce")},F=function(e){return function(n,o,r){if(!n||"string"!=typeof n)return n;var i=o;e===C&&(i=A).initCollect();var s=e(n,i);if(w(s)===w(n))return n;if(!r)return s;var a=r.logType,c=Y(r),_=i.removeCollect();return j.report(t(t({type:a,disposition:c},_),{sourceText:v(n),filterText:v(s)})),"enforce"===c?s:n}},K=F(function(e,t){return void 0===t&&(t={}),t&&t.whiteList||(t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}),new P(t).process(e)}),H=F(C),W=function(e,t,n){var o=[],r=T(e,function(e){o.push(e)});if(r===e)return e;o=y.from(y.uniq(o));var i=t||n||{};if(!i)return r;var s=i.logType,a=Y(n);return j.report({type:s,disposition:a,collectKey:o.join("___"),collectData:JSON.stringify(o),collectMode:"black",sourceText:v(e),filterText:v(r)}),"enforce"===a?r:e},z=R._xssProject||{},X=R.xssNamespace||{},Z="3.0.26",J={FilterXSS:P,version:Z,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:K,_filterXSS:H,filterUrl:W,Config:A,BlackConfig:U,project:z,setProjectName:function(e){z[e]=this,R._xssProjectName=e}};X.douyin_web=J,R.xssNamespace=X,R.Math&&!R.Math.xssNamespace&&(R.Math.xssNamespace=X),z[Z]=J,R.globalThis=R,R.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:J},R.xss=J,R.isSafeUrl=L,R.isSafeDomain=L,R.isSafeProtocol=B,R._xssProject=z,R._xssProjectName&&(z[R._xssProjectName]=J);var $=J.setProjectName.bind(J);e.BlackConfig=U,e.Config=A,e.FilterXSS=P,e._filterXSS=H,e.filterUrl=W,e.filterXSS=K,e.isSafeDomain=L,e.isSafeProtocol=B,e.isSafeUrl=L,e.project=z,e.setProjectName=$,e.setXssNamespace=function(e){var t=e.appId,n=e.bid,o=e.region;X[t]=J;A.bid=n,A.region=o,A.enabled=!0},e.xssNamespace=X,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["97704"],{720709:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var o=n(587934),r=n(361073),i=n.n(r);o.util.Long=i(),o.configure();let s=o.Reader,a=o.Writer,c=o.util,_=o.roots.default||(o.roots.default={}),l=_.im_proto=(()=>{let e={};return e.Frame=function(){function e(e){if(this.headers=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seqid=c.Long?c.Long.fromBits(0,0,!0):0,e.prototype.logid=c.Long?c.Long.fromBits(0,0,!0):0,e.prototype.service=0,e.prototype.method=0,e.prototype.headers=c.emptyArray,e.prototype.payload_encoding="",e.prototype.payload_type="",e.prototype.payload=c.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).uint64(e.seqid),t.uint32(16).uint64(e.logid),t.uint32(24).int32(e.service),t.uint32(32).int32(e.method),null!=e.headers&&e.headers.length)for(var n=0;n<e.headers.length;++n)_.im_proto.Frame.ExtendedEntry.encode(e.headers[n],t.uint32(42).fork()).ldelim();return null!=e.payload_encoding&&Object.hasOwnProperty.call(e,"payload_encoding")&&t.uint32(50).string(e.payload_encoding),null!=e.payload_type&&Object.hasOwnProperty.call(e,"payload_type")&&t.uint32(58).string(e.payload_type),null!=e.payload&&Object.hasOwnProperty.call(e,"payload")&&t.uint32(66).bytes(e.payload),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.Frame;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.seqid=e.uint64();break;case 2:o.logid=e.uint64();break;case 3:o.service=e.int32();break;case 4:o.method=e.int32();break;case 5:!(o.headers&&o.headers.length)&&(o.headers=[]),o.headers.push(_.im_proto.Frame.ExtendedEntry.decode(e,e.uint32()));break;case 6:o.payload_encoding=e.string();break;case 7:o.payload_type=e.string();break;case 8:o.payload=e.bytes();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("seqid"))throw c.ProtocolError("missing required 'seqid'",{instance:o});if(!o.hasOwnProperty("logid"))throw c.ProtocolError("missing required 'logid'",{instance:o});if(!o.hasOwnProperty("service"))throw c.ProtocolError("missing required 'service'",{instance:o});if(!o.hasOwnProperty("method"))throw c.ProtocolError("missing required 'method'",{instance:o});return o},e.ExtendedEntry=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.key="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),t.uint32(10).string(e.key),t.uint32(18).string(e.value),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.Frame.ExtendedEntry;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.key=e.string();break;case 2:o.value=e.string();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("key"))throw c.ProtocolError("missing required 'key'",{instance:o});if(!o.hasOwnProperty("value"))throw c.ProtocolError("missing required 'value'",{instance:o});return o},e}(),e}(),e.IMCMD=function(){let e={},t=Object.create(e);return t[e[100]="SEND_MESSAGE"]=100,t[e[200]="GET_MESSAGES_BY_USER"]=200,t[e[203]="GET_MESSAGES_BY_USER_INIT_V2"]=203,t[e[211]="GET_MESSAGE_INFO_BY_SERVER_ID"]=211,t[e[301]="GET_MESSAGES_BY_CONVERSATION"]=301,t[e[302]="GET_MESSAGES_CHECKINFO_IN_CONVERSATION"]=302,t[e[410]="SEND_USER_ACTION"]=410,t[e[411]="SEND_INPUT_STATUS"]=411,t[e[500]="NEW_MSG_NOTIFY"]=500,t[e[504]="NEW_P2P_MSG_NOTIFY"]=504,t[e[505]="NEW_BROADCAST_MSG_NOTIFY"]=505,t[e[603]="MARK_CONVERSATION_DELETE"]=603,t[e[609]="CREATE_CONVERSATION_V2"]=609,t[e[610]="GET_CONVERSATION_INFO_LIST_V2"]=610,t[e[611]="GET_CONVERSATION_INFO_LIST_BY_FAVORITE_V2"]=611,t[e[612]="GET_CONVERSATION_INFO_LIST_BY_TOP_V2"]=612,t[e[614]="DISSOLVE_CONVERSATION"]=614,t[e[615]="GET_CONVERSATIONS_CHECKINFO"]=615,t[e[605]="CONVERSATION_PARTICIPANTS_LIST"]=605,t[e[650]="ADD_CONVERSATION_PARTICIPANTS"]=650,t[e[651]="REMOVE_CONVERSATION_PARTICIPANTS"]=651,t[e[652]="LEAVE_CONVERSATION"]=652,t[e[654]="MGET_CONVERSATION_PARTICIPANTS"]=654,t[e[655]="UPDATE_CONVERSATION_PARTICIPANT"]=655,t[e[670]="ADD_CONVERSATION_BOTS"]=670,t[e[671]="REMOVE_CONVERSATION_BOTS"]=671,t[e[701]="DELETE_MESSAGE"]=701,t[e[702]="RECALL_MESSAGE"]=702,t[e[705]="SET_MESSAGE_PROPERTY"]=705,t[e[901]="GET_CONVERSATION_CORE_INFO"]=901,t[e[902]="SET_CONVERSATION_CORE_INFO"]=902,t[e[904]="UPSERT_CONVERSATION_CORE_EXT_INFO"]=904,t[e[921]="SET_CONVERSATION_SETTING_INFO"]=921,t[e[922]="UPSERT_CONVERSATION_SETTING_EXT_INFO"]=922,t[e[1001]="GET_STRANGER_CONVERSATION_LIST"]=1001,t[e[1002]="GET_STRANGER_MESSAGES_IN_CONVERSATION"]=1002,t[e[1003]="DELETE_STRANGER_MESSAGE"]=1003,t[e[1004]="DELETE_STRANGER_CONVERSATION"]=1004,t[e[1005]="DELETE_ALL_STRANGER_CONVERSATIONS"]=1005,t[e[1006]="MARK_STRANGER_CONVERSATION_READ"]=1006,t[e[1007]="MARK_ALL_STRANGER_CONVERSATIONS_READ"]=1007,t[e[1099]="STRANGER_NEW_MSG_NOTIFY"]=1099,t[e[2e3]="GET_CONVERSATION_PARTICIPANTS_READ_INDEX_V3"]=2e3,t[e[2001]="GET_CONVERSATION_PARTICIPANTS_MIN_INDEX_V3"]=2001,t[e[2002]="MARK_CONVERSATION_READ_V3"]=2002,t[e[2003]="GET_MEDIA_UPLOAD_TOKEN"]=2003,t[e[2004]="GET_MEDIA_URLS"]=2004,t[e[2005]="GET_TICKET"]=2005,t[e[2006]="GET_USER_CONVERSATION_LIST"]=2006,t[e[2007]="BROADCAST_SEND_MESSAGE"]=2007,t[e[2008]="BROADCAST_RECV_MESSAGE"]=2008,t[e[2009]="BROADCAST_USER_COUNTER"]=2009,t[e[2010]="CLIENT_ACK"]=2010,t[e[2011]="CREATE_VOIP"]=2011,t[e[2012]="CALL_VOIP"]=2012,t[e[2013]="UPDATE_VOIP"]=2013,t[e[2014]="HEARTBEAT_CHANNEL"]=2014,t[e[2015]="PROFILE_GET_INFO"]=2015,t[e[2016]="REPORT_CLIENT_METRICS"]=2016,t[e[2017]="GET_CONFIGS"]=2017,t[e[2021]="MODIFY_MESSAGE_EXT"]=2021,t[e[2018]="UNREAD_COUNT_REPORT"]=2018,t[e[2019]="BLOCK_MEMBERS"]=2019,t[e[2020]="BLOCK_CONVERSATION"]=2020,t[e[2030]="GET_UNREAD_COUNT"]=2030,t[e[2031]="SEND_MESSAGE_P2P"]=2031,t[e[2032]="GET_BLOCKLIST"]=2032,t[e[2033]="SET_BLOCKLIST"]=2033,t[e[2034]="CHECK_IN_BLOCKLIST"]=2034,t[e[2036]="MARK_MESSAGE"]=2036,t[e[2037]="PULL_MARK_MESSAGE"]=2037,t[e[2038]="BATCH_GAT_CONVERSATION_PARTICIPANTS_READINDEX"]=2038,t[e[2043]="GET_MESSAGE_BY_INIT"]=2043,t[e[2048]="GET_USER_MESSAGE"]=2048,t[e[2054]="MARK_MSG_UNREAD_COUNT_REPORT"]=2054,t[e[2055]="MARK_MSG_GET_UNREAD_COUNT"]=2055,t[e[2056]="BATCH_UNMARK_MESSAGE"]=2056,t[e[2057]="CLIENT_BATCH_ACK"]=2057,t[e[2059]="AUDIO_RECOGNITION"]=2059,t[e[2105]="BATCH_MARK_CONVERSATION_READ_V3"]=2105,t[e[2200]="GET_TAG_META_INFO"]=2200,t[e[2201]="SET_CONVERSATION_TAG"]=2201,t[e[2202]="MANAGE_TAG_META_INFO"]=2202,t[e[2203]="GET_CONVERSATIONS_BY_TAG"]=2203,t}(),e.StatusCode=function(){let e={},t=Object.create(e);return t[e[0]="OK"]=0,t[e[1]="INVALID_TOKEN"]=1,t[e[100]="EXPIRED_TOKEN"]=100,t[e[2]="INVALID_TICKET"]=2,t[e[4]="INVALID_REQUEST"]=4,t[e[5]="INVALID_CMD"]=5,t[e[6]="SERVER_ERR"]=6,t[e[11]="USER_FORBIDDEN"]=11,t[e[500]="INTERNAL_ERROR"]=500,t[e[15]="MESSAGE_TARGET_CONVERSATION_NOT_EXIST"]=15,t[e[16]="DEGRADATION_ERROR"]=16,t[e[17]="RECALL_TIMEOUT"]=17,t[e[19]="CALLBACK_DENY"]=19,t}(),e.SendMessageStatus=function(){let e={},t=Object.create(e);return t[e[0]="SEND_SUCCEED"]=0,t[e[1]="USER_NOT_IN_CONVERSATION"]=1,t[e[2]="CHECK_CONV_NOT_PASS"]=2,t[e[3]="CHECK_MSG_NOT_PASS"]=3,t[e[4]="CHECK_MSG_NOT_PASS_BUT_SELF_VISIBLE"]=4,t}(),e.Refer=function(){let e={},t=Object.create(e);return t[e[1]="ANDROID"]=1,t[e[2]="IOS"]=2,t[e[3]="PC"]=3,t[e[4]="SERVER"]=4,t}(),e.ConversationType=function(){let e={},t=Object.create(e);return t[e[1]="ONE_TO_ONE_CHAT"]=1,t[e[2]="GROUP_CHAT"]=2,t[e[3]="LIVE_CHAT"]=3,t[e[4]="BROADCAST_CHAT"]=4,t[e[17]="AI_DOUBLE_CHAT"]=17,t}(),e.MessageType=function(){let e={},t=Object.create(e);return t[e[1]="LEGACY_MESSAGE_TYPE_SYSTEM"]=1,t[e[2]="LEGACY_MESSAGE_TYPE_IMAGE"]=2,t[e[3]="LEGACY_MESSAGE_TYPE_AUDIO"]=3,t[e[4]="LEGACY_MESSAGE_TYPE_VIDEO"]=4,t[e[5]="LEGACY_MESSAGE_TYPE_EMOJI"]=5,t[e[6]="LEGACY_MESSAGE_TYPE_FILE"]=6,t[e[7]="LEGACY_MESSAGE_TYPE_TEXT"]=7,t[e[8]="LEGACY_MESSAGE_TYPE_USER_CARD"]=8,t[e[9]="LEGACY_MESSAGE_TYPE_TOAST"]=9,t[e[10]="LEGACY_MESSAGE_TYPE_GROUP_CARD"]=10,t[e[10001]="MESSAGE_TYPE_TEXT"]=10001,t[e[10002]="MESSAGE_TYPE_STICKER"]=10002,t[e[10003]="MESSAGE_TYPE_IMAGE"]=10003,t[e[10004]="MESSAGE_TYPE_VIDEO"]=10004,t[e[10005]="MESSAGE_TYPE_FILE"]=10005,t[e[10006]="MESSAGE_TYPE_AUDIO"]=10006,t[e[10007]="MESSAGE_TYPE_LOCATION"]=10007,t[e[10008]="MESSAGE_TYPE_SYSTEM"]=10008,t[e[10009]="MESSAGE_TYPE_LINK"]=10009,t[e[50001]="MESSAGE_TYPE_COMMAND"]=50001,t[e[50002]="MESSAGE_TYPE_UPDATE_MESSAGE_EXT"]=50002,t[e[50010]="MESSAGE_TYPE_MODE_CHANGE"]=50010,t[e[50003]="MESSAGE_TYPE_UPDATE_MIN_INDEX"]=50003,t[e[50004]="MESSAGE_TYPE_USER_ACTION"]=50004,t[e[50005]="MESSAGE_TYPE_CONVERSATION_DESTROY"]=50005,t[e[50011]="MESSAGE_TYPE_BLOCK_COMMAND"]=50011,t[e[50012]="MESSAGE_TYPE_MARK_COMMAND"]=50012,t[e[50013]="MESSAGE_TYPE_READ_COMMAND"]=50013,t[e[50016]="MESSAGE_TYPE_BATCH_UNMARK_COMMAND"]=50016,t[e[50017]="MESSAGE_TYPE_VISIBLE_MESSAGE_COMMAND"]=50017,t[e[50022]="MESSAGE_TYPE_NOTIFY_USER_CUSTOM_CONVERSATION_TAG_UPDATE_COMMAND"]=50022,t[e[60001]="MESSAGE_TYPE_NOTIFY_COMMAND"]=60001,t[e[70001]="MESSAGE_TYPE_MESSAGE_PROPERTY"]=70001,t[e[70002]="MESSAGE_TYPE_UPDATE_MESSAGE_PROPERTY"]=70002,t[e[80001]="MESSAGE_TYPE_VOIP_COMMAND"]=80001,t[e[80002]="MESSAGE_TYPE_VOIP_CARD_COMMAND"]=80002,t[e[80003]="MESSAGE_TYPE_VOIP_SINGLE_CHAT_STATUS_COMMAND"]=80003,t[e[80004]="MESSAGE_TYPE_VOIP_CALLEE_LIST_UPDATE_NOTIFY"]=80004,t}(),e.GroupRole=function(){let e={},t=Object.create(e);return t[e[0]="ORDINARY"]=0,t[e[1]="OWNER"]=1,t[e[2]="MANAGER"]=2,t[e[3]="VISITOR"]=3,t}(),e.TicketType=function(){let e={},t=Object.create(e);return t[e[1]="TICKET_TYPE_APP"]=1,t[e[2]="TICKET_TYPE_PC"]=2,t[e[3]="TICKET_TYPE_WEB"]=3,t}(),e.MuteMessageType=function(){let e={},t=Object.create(e);return t[e[50]="TYPE_PART_MUTE"]=50,t}(),e.MuteBadgeCountInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.message_type=50,e.prototype.badge_count=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),t.uint32(8).int32(e.message_type),t.uint32(16).int32(e.badge_count),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MuteBadgeCountInfo;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.message_type=e.int32();break;case 2:o.badge_count=e.int32();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("message_type"))throw c.ProtocolError("missing required 'message_type'",{instance:o});if(!o.hasOwnProperty("badge_count"))throw c.ProtocolError("missing required 'badge_count'",{instance:o});return o},e}(),e.PropertyItem=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uid=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sec_uid="",e.prototype.create_time=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.idempotent_id="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.uid&&Object.hasOwnProperty.call(e,"uid")&&t.uint32(8).int64(e.uid),null!=e.sec_uid&&Object.hasOwnProperty.call(e,"sec_uid")&&t.uint32(18).string(e.sec_uid),null!=e.create_time&&Object.hasOwnProperty.call(e,"create_time")&&t.uint32(24).int64(e.create_time),null!=e.idempotent_id&&Object.hasOwnProperty.call(e,"idempotent_id")&&t.uint32(34).string(e.idempotent_id),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(42).string(e.value),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.PropertyItem;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.uid=e.int64();break;case 2:o.sec_uid=e.string();break;case 3:o.create_time=e.int64();break;case 4:o.idempotent_id=e.string();break;case 5:o.value=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.PropertyItemList=function(){function e(e){if(this.Items=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.Items=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.Items&&e.Items.length)for(var n=0;n<e.Items.length;++n)_.im_proto.PropertyItem.encode(e.Items[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.PropertyItemList;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.Items&&o.Items.length)&&(o.Items=[]),o.Items.push(_.im_proto.PropertyItem.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.MessageBody=function(){function e(e){if(this.ext={},this.property_list={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_type=0,e.prototype.server_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.index_in_conversation=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.message_type=0,e.prototype.sender=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.content="",e.prototype.ext=c.emptyObject,e.prototype.create_time=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.status=0,e.prototype.order_in_conversation=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sec_sender="",e.prototype.property_list=c.emptyObject,e.prototype.index_in_conversation_v2=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.reference_info=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.server_message_id&&Object.hasOwnProperty.call(e,"server_message_id")&&t.uint32(24).int64(e.server_message_id),null!=e.index_in_conversation&&Object.hasOwnProperty.call(e,"index_in_conversation")&&t.uint32(32).int64(e.index_in_conversation),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(40).int64(e.conversation_short_id),null!=e.message_type&&Object.hasOwnProperty.call(e,"message_type")&&t.uint32(48).int32(e.message_type),null!=e.sender&&Object.hasOwnProperty.call(e,"sender")&&t.uint32(56).int64(e.sender),null!=e.content&&Object.hasOwnProperty.call(e,"content")&&t.uint32(66).string(e.content),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(74).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();if(null!=e.create_time&&Object.hasOwnProperty.call(e,"create_time")&&t.uint32(80).int64(e.create_time),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(88).int64(e.version),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(96).int32(e.status),null!=e.order_in_conversation&&Object.hasOwnProperty.call(e,"order_in_conversation")&&t.uint32(104).int64(e.order_in_conversation),null!=e.sec_sender&&Object.hasOwnProperty.call(e,"sec_sender")&&t.uint32(114).string(e.sec_sender),null!=e.property_list&&Object.hasOwnProperty.call(e,"property_list"))for(var n=Object.keys(e.property_list),o=0;o<n.length;++o)t.uint32(122).fork().uint32(10).string(n[o]),_.im_proto.PropertyItemList.encode(e.property_list[n[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.index_in_conversation_v2&&Object.hasOwnProperty.call(e,"index_in_conversation_v2")&&t.uint32(136).int64(e.index_in_conversation_v2),null!=e.reference_info&&Object.hasOwnProperty.call(e,"reference_info")&&_.im_proto.ReferenceInfo.encode(e.reference_info,t.uint32(146).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.MessageBody;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_type=e.int32();break;case 3:i.server_message_id=e.int64();break;case 4:i.index_in_conversation=e.int64();break;case 5:i.conversation_short_id=e.int64();break;case 6:i.message_type=e.int32();break;case 7:i.sender=e.int64();break;case 8:i.content=e.string();break;case 9:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;case 10:i.create_time=e.int64();break;case 11:i.version=e.int64();break;case 12:i.status=e.int32();break;case 13:i.order_in_conversation=e.int64();break;case 14:i.sec_sender=e.string();break;case 15:i.property_list===c.emptyObject&&(i.property_list={});var l=e.uint32()+e.pos;for(n="",o=null;e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=_.im_proto.PropertyItemList.decode(e,e.uint32());break;default:e.skipType(7&u)}}i.property_list[n]=o;break;case 17:i.index_in_conversation_v2=e.int64();break;case 18:i.reference_info=_.im_proto.ReferenceInfo.decode(e,e.uint32());break;default:e.skipType(7&a)}}return i},e}(),e.ReferenceInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.referenced_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.hint="",e.prototype.ref_message_type=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.referenced_message_status=0,e.prototype.root_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.root_message_conv_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.referenced_message_id),t.uint32(18).string(e.hint),t.uint32(24).int64(e.ref_message_type),t.uint32(32).int32(e.referenced_message_status),null!=e.root_message_id&&Object.hasOwnProperty.call(e,"root_message_id")&&t.uint32(40).int64(e.root_message_id),null!=e.root_message_conv_index&&Object.hasOwnProperty.call(e,"root_message_conv_index")&&t.uint32(48).int64(e.root_message_conv_index),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(58).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.ReferenceInfo;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.referenced_message_id=e.int64();break;case 2:i.hint=e.string();break;case 3:i.ref_message_type=e.int64();break;case 4:i.referenced_message_status=e.int32();break;case 5:i.root_message_id=e.int64();break;case 6:i.root_message_conv_index=e.int64();break;case 7:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("referenced_message_id"))throw c.ProtocolError("missing required 'referenced_message_id'",{instance:i});if(!i.hasOwnProperty("hint"))throw c.ProtocolError("missing required 'hint'",{instance:i});if(!i.hasOwnProperty("ref_message_type"))throw c.ProtocolError("missing required 'ref_message_type'",{instance:i});if(!i.hasOwnProperty("referenced_message_status"))throw c.ProtocolError("missing required 'referenced_message_status'",{instance:i});return i},e}(),e.ParticipantRole=function(){let e={},t=Object.create(e);return t[e[0]="PARTICIPANT_ROLE_NORMAL"]=0,t[e[1]="PARTICIPANT_ROLE_OWNER"]=1,t[e[2]="PARTICIPANT_ROLE_ADMIN"]=2,t[e[3]="PARTICIPANT_ROLE_VISITOR"]=3,t}(),e.Participant=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.user_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sort_order=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.role=0,e.prototype.alias="",e.prototype.sec_uid="",e.prototype.blocked=0,e.prototype.left_block_time=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.user_id&&Object.hasOwnProperty.call(e,"user_id")&&t.uint32(8).int64(e.user_id),null!=e.sort_order&&Object.hasOwnProperty.call(e,"sort_order")&&t.uint32(16).int64(e.sort_order),null!=e.role&&Object.hasOwnProperty.call(e,"role")&&t.uint32(24).int32(e.role),null!=e.alias&&Object.hasOwnProperty.call(e,"alias")&&t.uint32(34).string(e.alias),null!=e.sec_uid&&Object.hasOwnProperty.call(e,"sec_uid")&&t.uint32(42).string(e.sec_uid),null!=e.blocked&&Object.hasOwnProperty.call(e,"blocked")&&t.uint32(48).int32(e.blocked),null!=e.left_block_time&&Object.hasOwnProperty.call(e,"left_block_time")&&t.uint32(56).int64(e.left_block_time),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(66).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.Participant;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.user_id=e.int64();break;case 2:i.sort_order=e.int64();break;case 3:i.role=e.int32();break;case 4:i.alias=e.string();break;case 5:i.sec_uid=e.string();break;case 6:i.blocked=e.int32();break;case 7:i.left_block_time=e.int64();break;case 8:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.ParticipantsPage=function(){function e(e){if(this.participants=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.participants=c.emptyArray,e.prototype.has_more=!1,e.prototype.cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.participants&&e.participants.length)for(var n=0;n<e.participants.length;++n)_.im_proto.Participant.encode(e.participants[n],t.uint32(10).fork()).ldelim();return null!=e.has_more&&Object.hasOwnProperty.call(e,"has_more")&&t.uint32(16).bool(e.has_more),null!=e.cursor&&Object.hasOwnProperty.call(e,"cursor")&&t.uint32(24).int64(e.cursor),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ParticipantsPage;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.participants&&o.participants.length)&&(o.participants=[]),o.participants.push(_.im_proto.Participant.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.cursor=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationInfoV2=function(){function e(e){if(this.mute_badge_count_infos=[],this.bots=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.ticket="",e.prototype.first_page_participants=null,e.prototype.participants_count=0,e.prototype.is_participant=!1,e.prototype.inbox_type=0,e.prototype.badge_count=0,e.prototype.mute_badge_count_infos=c.emptyArray,e.prototype.user_info=null,e.prototype.conversation_core_info=null,e.prototype.conversation_setting_info=null,e.prototype.bots=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.ticket&&Object.hasOwnProperty.call(e,"ticket")&&t.uint32(34).string(e.ticket),null!=e.first_page_participants&&Object.hasOwnProperty.call(e,"first_page_participants")&&_.im_proto.ParticipantsPage.encode(e.first_page_participants,t.uint32(50).fork()).ldelim(),null!=e.participants_count&&Object.hasOwnProperty.call(e,"participants_count")&&t.uint32(56).int32(e.participants_count),null!=e.is_participant&&Object.hasOwnProperty.call(e,"is_participant")&&t.uint32(64).bool(e.is_participant),null!=e.inbox_type&&Object.hasOwnProperty.call(e,"inbox_type")&&t.uint32(72).int32(e.inbox_type),null!=e.badge_count&&Object.hasOwnProperty.call(e,"badge_count")&&t.uint32(80).int32(e.badge_count),null!=e.mute_badge_count_infos&&e.mute_badge_count_infos.length)for(var n=0;n<e.mute_badge_count_infos.length;++n)_.im_proto.MuteBadgeCountInfo.encode(e.mute_badge_count_infos[n],t.uint32(90).fork()).ldelim();if(null!=e.user_info&&Object.hasOwnProperty.call(e,"user_info")&&_.im_proto.Participant.encode(e.user_info,t.uint32(162).fork()).ldelim(),null!=e.conversation_core_info&&Object.hasOwnProperty.call(e,"conversation_core_info")&&_.im_proto.ConversationCoreInfo.encode(e.conversation_core_info,t.uint32(402).fork()).ldelim(),null!=e.conversation_setting_info&&Object.hasOwnProperty.call(e,"conversation_setting_info")&&_.im_proto.ConversationSettingInfo.encode(e.conversation_setting_info,t.uint32(410).fork()).ldelim(),null!=e.bots&&e.bots.length)for(var n=0;n<e.bots.length;++n)_.im_proto.RobotInfo.encode(e.bots[n],t.uint32(482).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationInfoV2;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.ticket=e.string();break;case 6:o.first_page_participants=_.im_proto.ParticipantsPage.decode(e,e.uint32());break;case 7:o.participants_count=e.int32();break;case 8:o.is_participant=e.bool();break;case 9:o.inbox_type=e.int32();break;case 10:o.badge_count=e.int32();break;case 11:!(o.mute_badge_count_infos&&o.mute_badge_count_infos.length)&&(o.mute_badge_count_infos=[]),o.mute_badge_count_infos.push(_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32()));break;case 20:o.user_info=_.im_proto.Participant.decode(e,e.uint32());break;case 50:o.conversation_core_info=_.im_proto.ConversationCoreInfo.decode(e,e.uint32());break;case 51:o.conversation_setting_info=_.im_proto.ConversationSettingInfo.decode(e,e.uint32());break;case 60:!(o.bots&&o.bots.length)&&(o.bots=[]),o.bots.push(_.im_proto.RobotInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.RobotInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.user_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sec_uid="",e.prototype.ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.user_id&&Object.hasOwnProperty.call(e,"user_id")&&t.uint32(8).int64(e.user_id),null!=e.sec_uid&&Object.hasOwnProperty.call(e,"sec_uid")&&t.uint32(18).string(e.sec_uid),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(794).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.RobotInfo;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.user_id=e.int64();break;case 2:i.sec_uid=e.string();break;case 99:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.ConversationCoreInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.info_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.name="",e.prototype.desc="",e.prototype.icon="",e.prototype.inbox_type=0,e.prototype.notice="",e.prototype.ext=c.emptyObject,e.prototype.owner=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sec_owner="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.info_version&&Object.hasOwnProperty.call(e,"info_version")&&t.uint32(32).int64(e.info_version),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(42).string(e.name),null!=e.desc&&Object.hasOwnProperty.call(e,"desc")&&t.uint32(50).string(e.desc),null!=e.icon&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(58).string(e.icon),null!=e.inbox_type&&Object.hasOwnProperty.call(e,"inbox_type")&&t.uint32(64).int32(e.inbox_type),null!=e.notice&&Object.hasOwnProperty.call(e,"notice")&&t.uint32(74).string(e.notice),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(90).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return null!=e.owner&&Object.hasOwnProperty.call(e,"owner")&&t.uint32(96).int64(e.owner),null!=e.sec_owner&&Object.hasOwnProperty.call(e,"sec_owner")&&t.uint32(106).string(e.sec_owner),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.ConversationCoreInfo;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_short_id=e.int64();break;case 3:i.conversation_type=e.int32();break;case 4:i.info_version=e.int64();break;case 5:i.name=e.string();break;case 6:i.desc=e.string();break;case 7:i.icon=e.string();break;case 8:i.inbox_type=e.int32();break;case 9:i.notice=e.string();break;case 11:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;case 12:i.owner=e.int64();break;case 13:i.sec_owner=e.string();break;default:e.skipType(7&a)}}return i},e}(),e.ConversationSettingInfo=function(){function e(e){if(this.ext={},this.mute_read_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.min_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.read_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.mute=0,e.prototype.stick_on_top=0,e.prototype.inbox_type=0,e.prototype.ext=c.emptyObject,e.prototype.setting_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.favorite=0,e.prototype.set_top_time=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.set_favorite_time=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.read_index_v2=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.min_index_v2=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.read_badge_count=0,e.prototype.mute_read_badge_count_infos=c.emptyArray,e.prototype.push_status=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.min_index&&Object.hasOwnProperty.call(e,"min_index")&&t.uint32(32).int64(e.min_index),null!=e.read_index&&Object.hasOwnProperty.call(e,"read_index")&&t.uint32(40).int64(e.read_index),null!=e.mute&&Object.hasOwnProperty.call(e,"mute")&&t.uint32(48).int32(e.mute),null!=e.stick_on_top&&Object.hasOwnProperty.call(e,"stick_on_top")&&t.uint32(56).int32(e.stick_on_top),null!=e.inbox_type&&Object.hasOwnProperty.call(e,"inbox_type")&&t.uint32(64).int32(e.inbox_type),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(74).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();if(null!=e.setting_version&&Object.hasOwnProperty.call(e,"setting_version")&&t.uint32(80).int64(e.setting_version),null!=e.favorite&&Object.hasOwnProperty.call(e,"favorite")&&t.uint32(88).int32(e.favorite),null!=e.set_top_time&&Object.hasOwnProperty.call(e,"set_top_time")&&t.uint32(96).int64(e.set_top_time),null!=e.set_favorite_time&&Object.hasOwnProperty.call(e,"set_favorite_time")&&t.uint32(104).int64(e.set_favorite_time),null!=e.read_index_v2&&Object.hasOwnProperty.call(e,"read_index_v2")&&t.uint32(112).int64(e.read_index_v2),null!=e.min_index_v2&&Object.hasOwnProperty.call(e,"min_index_v2")&&t.uint32(120).int64(e.min_index_v2),null!=e.read_badge_count&&Object.hasOwnProperty.call(e,"read_badge_count")&&t.uint32(128).int32(e.read_badge_count),null!=e.mute_read_badge_count_infos&&e.mute_read_badge_count_infos.length)for(var o=0;o<e.mute_read_badge_count_infos.length;++o)_.im_proto.MuteReadBadgeCountInfo.encode(e.mute_read_badge_count_infos[o],t.uint32(138).fork()).ldelim();return null!=e.push_status&&Object.hasOwnProperty.call(e,"push_status")&&t.uint32(240).int32(e.push_status),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.ConversationSettingInfo;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_short_id=e.int64();break;case 3:i.conversation_type=e.int32();break;case 4:i.min_index=e.int64();break;case 5:i.read_index=e.int64();break;case 6:i.mute=e.int32();break;case 7:i.stick_on_top=e.int32();break;case 8:i.inbox_type=e.int32();break;case 9:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;case 10:i.setting_version=e.int64();break;case 11:i.favorite=e.int32();break;case 12:i.set_top_time=e.int64();break;case 13:i.set_favorite_time=e.int64();break;case 14:i.read_index_v2=e.int64();break;case 15:i.min_index_v2=e.int64();break;case 16:i.read_badge_count=e.int32();break;case 17:!(i.mute_read_badge_count_infos&&i.mute_read_badge_count_infos.length)&&(i.mute_read_badge_count_infos=[]),i.mute_read_badge_count_infos.push(_.im_proto.MuteReadBadgeCountInfo.decode(e,e.uint32()));break;case 30:i.push_status=e.int32();break;default:e.skipType(7&a)}}return i},e}(),e.MessagesPerUserRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.limit=50,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.cursor&&Object.hasOwnProperty.call(e,"cursor")&&t.uint32(8).int64(e.cursor),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(16).int32(e.limit),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessagesPerUserRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.cursor=e.int64();break;case 2:o.limit=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.MessagesPerUserResponseBody=function(){function e(e){if(this.messages=[],this.conversation_badge_count=[],this.hasmore_message_conv_list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=c.emptyArray,e.prototype.next_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.has_more=!1,e.prototype.next_interval=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.next_conversation_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_badge_count=c.emptyArray,e.prototype.next_cmd_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.hasmore_message_conv_list=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.MessageBody.encode(e.messages[n],t.uint32(10).fork()).ldelim();if(null!=e.next_cursor&&Object.hasOwnProperty.call(e,"next_cursor")&&t.uint32(16).int64(e.next_cursor),null!=e.has_more&&Object.hasOwnProperty.call(e,"has_more")&&t.uint32(24).bool(e.has_more),null!=e.next_interval&&Object.hasOwnProperty.call(e,"next_interval")&&t.uint32(32).int64(e.next_interval),null!=e.next_conversation_version&&Object.hasOwnProperty.call(e,"next_conversation_version")&&t.uint32(40).int64(e.next_conversation_version),null!=e.conversation_badge_count&&e.conversation_badge_count.length)for(var n=0;n<e.conversation_badge_count.length;++n)_.im_proto.ConversationBadgeCountInfo.encode(e.conversation_badge_count[n],t.uint32(50).fork()).ldelim();if(null!=e.next_cmd_index&&Object.hasOwnProperty.call(e,"next_cmd_index")&&t.uint32(56).int64(e.next_cmd_index),null!=e.hasmore_message_conv_list&&e.hasmore_message_conv_list.length)for(var n=0;n<e.hasmore_message_conv_list.length;++n)t.uint32(64).int64(e.hasmore_message_conv_list[n]);return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessagesPerUserResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:o.next_cursor=e.int64();break;case 3:o.has_more=e.bool();break;case 4:o.next_interval=e.int64();break;case 5:o.next_conversation_version=e.int64();break;case 6:!(o.conversation_badge_count&&o.conversation_badge_count.length)&&(o.conversation_badge_count=[]),o.conversation_badge_count.push(_.im_proto.ConversationBadgeCountInfo.decode(e,e.uint32()));break;case 7:o.next_cmd_index=e.int64();break;case 8:if(!(o.hasmore_message_conv_list&&o.hasmore_message_conv_list.length)&&(o.hasmore_message_conv_list=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.hasmore_message_conv_list.push(e.int64())}else o.hasmore_message_conv_list.push(e.int64());break;default:e.skipType(7&r)}}return o},e}(),e.ConversationBadgeCountInfo=function(){function e(e){if(this.mute_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.badge_count=0,e.prototype.conversation_index_v2=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_id="",e.prototype.mute_badge_count_infos=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.conversation_short_id),t.uint32(16).int32(e.badge_count),t.uint32(24).int64(e.conversation_index_v2),t.uint32(34).string(e.conversation_id),null!=e.mute_badge_count_infos&&e.mute_badge_count_infos.length)for(var n=0;n<e.mute_badge_count_infos.length;++n)_.im_proto.MuteBadgeCountInfo.encode(e.mute_badge_count_infos[n],t.uint32(42).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationBadgeCountInfo;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.badge_count=e.int32();break;case 3:o.conversation_index_v2=e.int64();break;case 4:o.conversation_id=e.string();break;case 5:!(o.mute_badge_count_infos&&o.mute_badge_count_infos.length)&&(o.mute_badge_count_infos=[]),o.mute_badge_count_infos.push(_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("conversation_short_id"))throw c.ProtocolError("missing required 'conversation_short_id'",{instance:o});if(!o.hasOwnProperty("badge_count"))throw c.ProtocolError("missing required 'badge_count'",{instance:o});if(!o.hasOwnProperty("conversation_index_v2"))throw c.ProtocolError("missing required 'conversation_index_v2'",{instance:o});if(!o.hasOwnProperty("conversation_id"))throw c.ProtocolError("missing required 'conversation_id'",{instance:o});return o},e}(),e.MessagesPerUserInitV2RequestBody=function(){function e(e){if(this.biz_tag_ids=[],this.user_custom_tag_ids=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.new_user=0,e.prototype.init_sub_type=0,e.prototype.conv_limit=0,e.prototype.msg_limit=0,e.prototype.biz_tag_ids=c.emptyArray,e.prototype.user_custom_tag_ids=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.cursor&&Object.hasOwnProperty.call(e,"cursor")&&t.uint32(8).int64(e.cursor),null!=e.new_user&&Object.hasOwnProperty.call(e,"new_user")&&t.uint32(16).int32(e.new_user),null!=e.init_sub_type&&Object.hasOwnProperty.call(e,"init_sub_type")&&t.uint32(24).int32(e.init_sub_type),null!=e.conv_limit&&Object.hasOwnProperty.call(e,"conv_limit")&&t.uint32(32).int32(e.conv_limit),null!=e.msg_limit&&Object.hasOwnProperty.call(e,"msg_limit")&&t.uint32(40).int32(e.msg_limit),null!=e.biz_tag_ids&&e.biz_tag_ids.length)for(var n=0;n<e.biz_tag_ids.length;++n)t.uint32(56).int64(e.biz_tag_ids[n]);if(null!=e.user_custom_tag_ids&&e.user_custom_tag_ids.length)for(var n=0;n<e.user_custom_tag_ids.length;++n)t.uint32(64).int64(e.user_custom_tag_ids[n]);return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessagesPerUserInitV2RequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.cursor=e.int64();break;case 2:o.new_user=e.int32();break;case 3:o.init_sub_type=e.int32();break;case 4:o.conv_limit=e.int32();break;case 5:o.msg_limit=e.int32();break;case 7:if(!(o.biz_tag_ids&&o.biz_tag_ids.length)&&(o.biz_tag_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.biz_tag_ids.push(e.int64())}else o.biz_tag_ids.push(e.int64());break;case 8:if(!(o.user_custom_tag_ids&&o.user_custom_tag_ids.length)&&(o.user_custom_tag_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.user_custom_tag_ids.push(e.int64())}else o.user_custom_tag_ids.push(e.int64());break;default:e.skipType(7&r)}}return o},e}(),e.MessagesPerUserInitV2ResponseBody=function(){function e(e){if(this.messages=[],this.conversations=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=c.emptyArray,e.prototype.conversations=c.emptyArray,e.prototype.per_user_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.next_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.has_more=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.MessageBody.encode(e.messages[n],t.uint32(10).fork()).ldelim();if(null!=e.conversations&&e.conversations.length)for(var n=0;n<e.conversations.length;++n)_.im_proto.ConversationInfoV2.encode(e.conversations[n],t.uint32(18).fork()).ldelim();return null!=e.per_user_cursor&&Object.hasOwnProperty.call(e,"per_user_cursor")&&t.uint32(24).int64(e.per_user_cursor),null!=e.next_cursor&&Object.hasOwnProperty.call(e,"next_cursor")&&t.uint32(32).int64(e.next_cursor),null!=e.has_more&&Object.hasOwnProperty.call(e,"has_more")&&t.uint32(40).bool(e.has_more),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessagesPerUserInitV2ResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:!(o.conversations&&o.conversations.length)&&(o.conversations=[]),o.conversations.push(_.im_proto.ConversationInfoV2.decode(e,e.uint32()));break;case 3:o.per_user_cursor=e.int64();break;case 4:o.next_cursor=e.int64();break;case 5:o.has_more=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.MessageDirection=function(){let e={},t=Object.create(e);return t[e[1]="OLDER"]=1,t[e[2]="NEWER"]=2,t[e[3]="FROM_LATEST"]=3,t}(),e.MessagesInConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_type=0,e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.direction=1,e.prototype.anchor_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.limit=50,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(24).int64(e.conversation_short_id),null!=e.direction&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(32).int32(e.direction),null!=e.anchor_index&&Object.hasOwnProperty.call(e,"anchor_index")&&t.uint32(40).int64(e.anchor_index),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(48).int32(e.limit),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessagesInConversationRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_short_id=e.int64();break;case 4:o.direction=e.int32();break;case 5:o.anchor_index=e.int64();break;case 6:o.limit=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.MessagesInConversationResponseBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=c.emptyArray,e.prototype.next_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.has_more=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.MessageBody.encode(e.messages[n],t.uint32(10).fork()).ldelim();return null!=e.next_cursor&&Object.hasOwnProperty.call(e,"next_cursor")&&t.uint32(16).int64(e.next_cursor),null!=e.has_more&&Object.hasOwnProperty.call(e,"has_more")&&t.uint32(24).bool(e.has_more),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessagesInConversationResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:o.next_cursor=e.int64();break;case 3:o.has_more=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.CreateConversationV2RequestBody=function(){function e(e){if(this.participants=[],this.biz_ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_type=0,e.prototype.participants=c.emptyArray,e.prototype.persistent=!1,e.prototype.idempotent_id="",e.prototype.name="",e.prototype.avatar_url="",e.prototype.description="",e.prototype.biz_ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(8).int32(e.conversation_type),null!=e.participants&&e.participants.length)for(var n=0;n<e.participants.length;++n)t.uint32(16).int64(e.participants[n]);if(null!=e.persistent&&Object.hasOwnProperty.call(e,"persistent")&&t.uint32(24).bool(e.persistent),null!=e.idempotent_id&&Object.hasOwnProperty.call(e,"idempotent_id")&&t.uint32(34).string(e.idempotent_id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(50).string(e.name),null!=e.avatar_url&&Object.hasOwnProperty.call(e,"avatar_url")&&t.uint32(58).string(e.avatar_url),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(66).string(e.description),null!=e.biz_ext&&Object.hasOwnProperty.call(e,"biz_ext"))for(var o=Object.keys(e.biz_ext),n=0;n<o.length;++n)t.uint32(90).fork().uint32(10).string(o[n]).uint32(18).string(e.biz_ext[o[n]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.CreateConversationV2RequestBody;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.conversation_type=e.int32();break;case 2:if(!(i.participants&&i.participants.length)&&(i.participants=[]),(7&a)==2){for(var l=e.uint32()+e.pos;e.pos<l;)i.participants.push(e.int64())}else i.participants.push(e.int64());break;case 3:i.persistent=e.bool();break;case 4:i.idempotent_id=e.string();break;case 6:i.name=e.string();break;case 7:i.avatar_url=e.string();break;case 8:i.description=e.string();break;case 11:i.biz_ext===c.emptyObject&&(i.biz_ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.biz_ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.CreateConversationV2ResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation=null,e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.prototype.extra_info="",e.prototype.status=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation&&Object.hasOwnProperty.call(e,"conversation")&&_.im_proto.ConversationInfoV2.encode(e.conversation,t.uint32(10).fork()).ldelim(),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(16).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(26).string(e.check_message),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(34).string(e.extra_info),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(40).int32(e.status),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.CreateConversationV2ResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation=_.im_proto.ConversationInfoV2.decode(e,e.uint32());break;case 2:o.check_code=e.int64();break;case 3:o.check_message=e.string();break;case 4:o.extra_info=e.string();break;case 5:o.status=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.UserActionType=function(){let e={},t=Object.create(e);return t[e[1]="ENTER_CONVERSATION"]=1,t[e[2]="EXIT_CONVERSATION"]=2,t}(),e.InputStatus=function(){let e={},t=Object.create(e);return t[e[3]="TYPING"]=3,t[e[4]="CLEAR_INPUT"]=4,t}(),e.DeleteConversationRequestBody=function(){function e(e){if(this.mute_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.last_message_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.badge_count=0,e.prototype.mute_badge_count_infos=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.last_message_index&&Object.hasOwnProperty.call(e,"last_message_index")&&t.uint32(32).int64(e.last_message_index),null!=e.badge_count&&Object.hasOwnProperty.call(e,"badge_count")&&t.uint32(48).int32(e.badge_count),null!=e.mute_badge_count_infos&&e.mute_badge_count_infos.length)for(var n=0;n<e.mute_badge_count_infos.length;++n)_.im_proto.MuteBadgeCountInfo.encode(e.mute_badge_count_infos[n],t.uint32(58).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.DeleteConversationRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.last_message_index=e.int64();break;case 6:o.badge_count=e.int32();break;case 7:!(o.mute_badge_count_infos&&o.mute_badge_count_infos.length)&&(o.mute_badge_count_infos=[]),o.mute_badge_count_infos.push(_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.DissolveConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.DissolveConversationRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.DeleteMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.message_id&&Object.hasOwnProperty.call(e,"message_id")&&t.uint32(32).int64(e.message_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.DeleteMessageRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.message_id=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.MarkConversationReadRequestBody=function(){function e(e){if(this.mute_read_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.read_message_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conv_unread_count=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.total_unread_count=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.read_message_index_v2=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.read_badge_count=0,e.prototype.mute_read_badge_count_infos=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.read_message_index&&Object.hasOwnProperty.call(e,"read_message_index")&&t.uint32(32).int64(e.read_message_index),null!=e.conv_unread_count&&Object.hasOwnProperty.call(e,"conv_unread_count")&&t.uint32(40).int64(e.conv_unread_count),null!=e.total_unread_count&&Object.hasOwnProperty.call(e,"total_unread_count")&&t.uint32(48).int64(e.total_unread_count),null!=e.read_message_index_v2&&Object.hasOwnProperty.call(e,"read_message_index_v2")&&t.uint32(56).int64(e.read_message_index_v2),null!=e.read_badge_count&&Object.hasOwnProperty.call(e,"read_badge_count")&&t.uint32(64).int32(e.read_badge_count),null!=e.mute_read_badge_count_infos&&e.mute_read_badge_count_infos.length)for(var n=0;n<e.mute_read_badge_count_infos.length;++n)_.im_proto.MuteReadBadgeCountInfo.encode(e.mute_read_badge_count_infos[n],t.uint32(90).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MarkConversationReadRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.read_message_index=e.int64();break;case 5:o.conv_unread_count=e.int64();break;case 6:o.total_unread_count=e.int64();break;case 7:o.read_message_index_v2=e.int64();break;case 8:o.read_badge_count=e.int32();break;case 11:!(o.mute_read_badge_count_infos&&o.mute_read_badge_count_infos.length)&&(o.mute_read_badge_count_infos=[]),o.mute_read_badge_count_infos.push(_.im_proto.MuteReadBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.MuteReadBadgeCountInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.message_type=50,e.prototype.read_badge_count=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),t.uint32(8).int32(e.message_type),t.uint32(16).int32(e.read_badge_count),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MuteReadBadgeCountInfo;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.message_type=e.int32();break;case 2:o.read_badge_count=e.int32();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("message_type"))throw c.ProtocolError("missing required 'message_type'",{instance:o});if(!o.hasOwnProperty("read_badge_count"))throw c.ProtocolError("missing required 'read_badge_count'",{instance:o});return o},e}(),e.BatchMarkConversationReadRequestBody=function(){function e(e){if(this.mark_read_requests=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.mark_read_requests=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.mark_read_requests&&e.mark_read_requests.length)for(var n=0;n<e.mark_read_requests.length;++n)_.im_proto.MarkConversationReadRequestBody.encode(e.mark_read_requests[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.BatchMarkConversationReadRequestBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.mark_read_requests&&o.mark_read_requests.length)&&(o.mark_read_requests=[]),o.mark_read_requests.push(_.im_proto.MarkConversationReadRequestBody.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.GetConversationParticipantsReadIndexV3RequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.conversation_id="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(8).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(26).string(e.conversation_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationParticipantsReadIndexV3RequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_id=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationParticipantsReadIndexV3ResponseBody=function(){function e(e){if(this.indexes=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.indexes=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.indexes&&e.indexes.length)for(var n=0;n<e.indexes.length;++n)_.im_proto.ParticipantReadIndex.encode(e.indexes[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationParticipantsReadIndexV3ResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.indexes&&o.indexes.length)&&(o.indexes=[]),o.indexes.push(_.im_proto.ParticipantReadIndex.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.ParticipantReadIndex=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.user_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sec_uid="",e.prototype.index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.index_v2=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.index_min=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.user_id&&Object.hasOwnProperty.call(e,"user_id")&&t.uint32(8).int64(e.user_id),null!=e.sec_uid&&Object.hasOwnProperty.call(e,"sec_uid")&&t.uint32(18).string(e.sec_uid),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(24).int64(e.index),null!=e.index_v2&&Object.hasOwnProperty.call(e,"index_v2")&&t.uint32(32).int64(e.index_v2),null!=e.index_min&&Object.hasOwnProperty.call(e,"index_min")&&t.uint32(40).int64(e.index_min),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ParticipantReadIndex;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.user_id=e.int64();break;case 2:o.sec_uid=e.string();break;case 3:o.index=e.int64();break;case 4:o.index_v2=e.int64();break;case 5:o.index_min=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.BatchGetConversationParticipantsReadIndexRequestBody=function(){function e(e){if(this.conversation_id=[],this.conversation_short_id=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id=c.emptyArray,e.prototype.conversation_short_id=c.emptyArray,e.prototype.request_from="",e.prototype.min_index_required=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&e.conversation_id.length)for(var n=0;n<e.conversation_id.length;++n)t.uint32(10).string(e.conversation_id[n]);if(null!=e.conversation_short_id&&e.conversation_short_id.length)for(var n=0;n<e.conversation_short_id.length;++n)t.uint32(16).int64(e.conversation_short_id[n]);return null!=e.request_from&&Object.hasOwnProperty.call(e,"request_from")&&t.uint32(26).string(e.request_from),null!=e.min_index_required&&Object.hasOwnProperty.call(e,"min_index_required")&&t.uint32(32).bool(e.min_index_required),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.BatchGetConversationParticipantsReadIndexRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.conversation_id&&o.conversation_id.length)&&(o.conversation_id=[]),o.conversation_id.push(e.string());break;case 2:if(!(o.conversation_short_id&&o.conversation_short_id.length)&&(o.conversation_short_id=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.conversation_short_id.push(e.int64())}else o.conversation_short_id.push(e.int64());break;case 3:o.request_from=e.string();break;case 4:o.min_index_required=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.BatchGetConversationParticipantsReadIndexResponseBody=function(){function e(e){if(this.conversationParticipantsReadIndex=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversationParticipantsReadIndex=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversationParticipantsReadIndex&&e.conversationParticipantsReadIndex.length)for(var n=0;n<e.conversationParticipantsReadIndex.length;++n)_.im_proto.ConversationParticipantReadIndex.encode(e.conversationParticipantsReadIndex[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.BatchGetConversationParticipantsReadIndexResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.conversationParticipantsReadIndex&&o.conversationParticipantsReadIndex.length)&&(o.conversationParticipantsReadIndex=[]),o.conversationParticipantsReadIndex.push(_.im_proto.ConversationParticipantReadIndex.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.ConversationParticipantReadIndex=function(){function e(e){if(this.participantReadIndex=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.participantReadIndex=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.participantReadIndex&&e.participantReadIndex.length)for(var n=0;n<e.participantReadIndex.length;++n)_.im_proto.ParticipantReadIndex.encode(e.participantReadIndex[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationParticipantReadIndex;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:!(o.participantReadIndex&&o.participantReadIndex.length)&&(o.participantReadIndex=[]),o.participantReadIndex.push(_.im_proto.ParticipantReadIndex.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationParticipantsMinIndexV3RequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.conversation_id="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(8).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(26).string(e.conversation_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationParticipantsMinIndexV3RequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_id=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationParticipantsMinIndexV3ResponseBody=function(){function e(e){if(this.indexes=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.indexes=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.indexes&&e.indexes.length)for(var n=0;n<e.indexes.length;++n)_.im_proto.ParticipantMinIndex.encode(e.indexes[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationParticipantsMinIndexV3ResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.indexes&&o.indexes.length)&&(o.indexes=[]),o.indexes.push(_.im_proto.ParticipantMinIndex.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.ParticipantMinIndex=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.user_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sec_uid="",e.prototype.index=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.user_id&&Object.hasOwnProperty.call(e,"user_id")&&t.uint32(8).int64(e.user_id),null!=e.sec_uid&&Object.hasOwnProperty.call(e,"sec_uid")&&t.uint32(18).string(e.sec_uid),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(24).int64(e.index),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ParticipantMinIndex;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.user_id=e.int64();break;case 2:o.sec_uid=e.string();break;case 3:o.index=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.SendMessageRequestBody=function(){function e(e){if(this.ext={},this.mentioned_users=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_type=0,e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.content="",e.prototype.ext=c.emptyObject,e.prototype.message_type=0,e.prototype.ticket="",e.prototype.client_message_id="",e.prototype.mentioned_users=c.emptyArray,e.prototype.ignore_badge_count=!1,e.prototype.ref_msg_info=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(24).int64(e.conversation_short_id),null!=e.content&&Object.hasOwnProperty.call(e,"content")&&t.uint32(34).string(e.content),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(42).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();if(null!=e.message_type&&Object.hasOwnProperty.call(e,"message_type")&&t.uint32(48).int32(e.message_type),null!=e.ticket&&Object.hasOwnProperty.call(e,"ticket")&&t.uint32(58).string(e.ticket),null!=e.client_message_id&&Object.hasOwnProperty.call(e,"client_message_id")&&t.uint32(66).string(e.client_message_id),null!=e.mentioned_users&&e.mentioned_users.length)for(var o=0;o<e.mentioned_users.length;++o)t.uint32(72).int64(e.mentioned_users[o]);return null!=e.ignore_badge_count&&Object.hasOwnProperty.call(e,"ignore_badge_count")&&t.uint32(80).bool(e.ignore_badge_count),null!=e.ref_msg_info&&Object.hasOwnProperty.call(e,"ref_msg_info")&&_.im_proto.ReferencedMessageInfo.encode(e.ref_msg_info,t.uint32(90).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.SendMessageRequestBody;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_type=e.int32();break;case 3:i.conversation_short_id=e.int64();break;case 4:i.content=e.string();break;case 5:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;case 6:i.message_type=e.int32();break;case 7:i.ticket=e.string();break;case 8:i.client_message_id=e.string();break;case 9:if(!(i.mentioned_users&&i.mentioned_users.length)&&(i.mentioned_users=[]),(7&a)==2){for(var l=e.uint32()+e.pos;e.pos<l;)i.mentioned_users.push(e.int64())}else i.mentioned_users.push(e.int64());break;case 10:i.ignore_badge_count=e.bool();break;case 11:i.ref_msg_info=_.im_proto.ReferencedMessageInfo.decode(e,e.uint32());break;default:e.skipType(7&a)}}return i},e}(),e.ReferencedMessageInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.referenced_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.hint="",e.prototype.root_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.root_message_conv_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.referenced_message_id),t.uint32(18).string(e.hint),null!=e.root_message_id&&Object.hasOwnProperty.call(e,"root_message_id")&&t.uint32(24).int64(e.root_message_id),null!=e.root_message_conv_index&&Object.hasOwnProperty.call(e,"root_message_conv_index")&&t.uint32(32).int64(e.root_message_conv_index),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(42).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.ReferencedMessageInfo;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.referenced_message_id=e.int64();break;case 2:i.hint=e.string();break;case 3:i.root_message_id=e.int64();break;case 4:i.root_message_conv_index=e.int64();break;case 5:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("referenced_message_id"))throw c.ProtocolError("missing required 'referenced_message_id'",{instance:i});if(!i.hasOwnProperty("hint"))throw c.ProtocolError("missing required 'hint'",{instance:i});return i},e}(),e.SendMessageResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.server_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.extra_info="",e.prototype.status=0,e.prototype.client_message_id="",e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.server_message_id&&Object.hasOwnProperty.call(e,"server_message_id")&&t.uint32(8).int64(e.server_message_id),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(18).string(e.extra_info),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(24).int32(e.status),null!=e.client_message_id&&Object.hasOwnProperty.call(e,"client_message_id")&&t.uint32(34).string(e.client_message_id),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(40).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(50).string(e.check_message),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.SendMessageResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.server_message_id=e.int64();break;case 2:o.extra_info=e.string();break;case 3:o.status=e.int32();break;case 4:o.client_message_id=e.string();break;case 5:o.check_code=e.int64();break;case 6:o.check_message=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.NewMessageNotifyType=function(){let e={},t=Object.create(e);return t[e[1]="PER_USER"]=1,t[e[2]="PER_CONVERSATION"]=2,t}(),e.MsgTracePath=function(){let e={},t=Object.create(e);return t[e[0]="FROM_UNKNOWN"]=0,t[e[1]="FROM_FRONTIER"]=1,t[e[2]="FROM_HTTP"]=2,t[e[3]="FROM_SERVER"]=3,t}(),e.MsgTrace=function(){function e(e){if(this.metrics={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.metrics=c.emptyObject,e.prototype.path=0,e.prototype.connStatus=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.metrics&&Object.hasOwnProperty.call(e,"metrics"))for(var n=Object.keys(e.metrics),o=0;o<n.length;++o)t.uint32(10).fork().uint32(8).int32(n[o]).uint32(16).int64(e.metrics[n[o]]).ldelim();return null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(16).int32(e.path),null!=e.connStatus&&Object.hasOwnProperty.call(e,"connStatus")&&t.uint32(24).int32(e.connStatus),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.MsgTrace;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.metrics===c.emptyObject&&(i.metrics={});var l=e.uint32()+e.pos;for(n=0,o=0;e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.int32();break;case 2:o=e.int64();break;default:e.skipType(7&u)}}i.metrics[n]=o;break;case 2:i.path=e.int32();break;case 3:i.connStatus=e.int32();break;default:e.skipType(7&a)}}return i},e}(),e.NewMessageNotify=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_type=0,e.prototype.notify_type=1,e.prototype.message=null,e.prototype.previous_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.next_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.index_in_conversation=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.index_in_conversation_v2=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.previous_conversation_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.cmd_message_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.badge_count=0,e.prototype.trace=null,e.prototype.ref_msg_info=null,e.prototype.previous_msg_index_in_conv=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.readconv_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.pre_readconv_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.mute_badge_count_info=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(18).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.notify_type&&Object.hasOwnProperty.call(e,"notify_type")&&t.uint32(32).int32(e.notify_type),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&_.im_proto.MessageBody.encode(e.message,t.uint32(42).fork()).ldelim(),null!=e.previous_cursor&&Object.hasOwnProperty.call(e,"previous_cursor")&&t.uint32(48).int64(e.previous_cursor),null!=e.next_cursor&&Object.hasOwnProperty.call(e,"next_cursor")&&t.uint32(56).int64(e.next_cursor),null!=e.index_in_conversation&&Object.hasOwnProperty.call(e,"index_in_conversation")&&t.uint32(64).int64(e.index_in_conversation),null!=e.index_in_conversation_v2&&Object.hasOwnProperty.call(e,"index_in_conversation_v2")&&t.uint32(72).int64(e.index_in_conversation_v2),null!=e.conversation_version&&Object.hasOwnProperty.call(e,"conversation_version")&&t.uint32(80).int64(e.conversation_version),null!=e.previous_conversation_version&&Object.hasOwnProperty.call(e,"previous_conversation_version")&&t.uint32(88).int64(e.previous_conversation_version),null!=e.cmd_message_index&&Object.hasOwnProperty.call(e,"cmd_message_index")&&t.uint32(96).int64(e.cmd_message_index),null!=e.badge_count&&Object.hasOwnProperty.call(e,"badge_count")&&t.uint32(104).int32(e.badge_count),null!=e.trace&&Object.hasOwnProperty.call(e,"trace")&&_.im_proto.MsgTrace.encode(e.trace,t.uint32(114).fork()).ldelim(),null!=e.ref_msg_info&&Object.hasOwnProperty.call(e,"ref_msg_info")&&_.im_proto.ReferenceInfo.encode(e.ref_msg_info,t.uint32(122).fork()).ldelim(),null!=e.previous_msg_index_in_conv&&Object.hasOwnProperty.call(e,"previous_msg_index_in_conv")&&t.uint32(128).int64(e.previous_msg_index_in_conv),null!=e.readconv_version&&Object.hasOwnProperty.call(e,"readconv_version")&&t.uint32(136).int64(e.readconv_version),null!=e.pre_readconv_version&&Object.hasOwnProperty.call(e,"pre_readconv_version")&&t.uint32(144).int64(e.pre_readconv_version),null!=e.mute_badge_count_info&&Object.hasOwnProperty.call(e,"mute_badge_count_info")&&_.im_proto.MuteBadgeCountInfo.encode(e.mute_badge_count_info,t.uint32(154).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.NewMessageNotify;e.pos<n;){var r=e.uint32();switch(r>>>3){case 2:o.conversation_id=e.string();break;case 3:o.conversation_type=e.int32();break;case 4:o.notify_type=e.int32();break;case 5:o.message=_.im_proto.MessageBody.decode(e,e.uint32());break;case 6:o.previous_cursor=e.int64();break;case 7:o.next_cursor=e.int64();break;case 8:o.index_in_conversation=e.int64();break;case 9:o.index_in_conversation_v2=e.int64();break;case 10:o.conversation_version=e.int64();break;case 11:o.previous_conversation_version=e.int64();break;case 12:o.cmd_message_index=e.int64();break;case 13:o.badge_count=e.int32();break;case 14:o.trace=_.im_proto.MsgTrace.decode(e,e.uint32());break;case 15:o.ref_msg_info=_.im_proto.ReferenceInfo.decode(e,e.uint32());break;case 16:o.previous_msg_index_in_conv=e.int64();break;case 17:o.readconv_version=e.int64();break;case 18:o.pre_readconv_version=e.int64();break;case 19:o.mute_badge_count_info=_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationInfoV2RequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationInfoV2RequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationInfoListV2RequestBody=function(){function e(e){if(this.conversation_info_list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_info_list=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_info_list&&e.conversation_info_list.length)for(var n=0;n<e.conversation_info_list.length;++n)_.im_proto.GetConversationInfoV2RequestBody.encode(e.conversation_info_list[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationInfoListV2RequestBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.conversation_info_list&&o.conversation_info_list.length)&&(o.conversation_info_list=[]),o.conversation_info_list.push(_.im_proto.GetConversationInfoV2RequestBody.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.GetConversationInfoListV2ResponseBody=function(){function e(e){if(this.conversation_info_list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_info_list=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_info_list&&e.conversation_info_list.length)for(var n=0;n<e.conversation_info_list.length;++n)_.im_proto.ConversationInfoV2.encode(e.conversation_info_list[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationInfoListV2ResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.conversation_info_list&&o.conversation_info_list.length)&&(o.conversation_info_list=[]),o.conversation_info_list.push(_.im_proto.ConversationInfoV2.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.RecallMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.server_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.server_message_id&&Object.hasOwnProperty.call(e,"server_message_id")&&t.uint32(32).int64(e.server_message_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.RecallMessageRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.server_message_id=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationAddParticipantsRequestBody=function(){function e(e){if(this.participants=[],this.biz_ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.participants=c.emptyArray,e.prototype.biz_ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.participants&&e.participants.length)for(var n=0;n<e.participants.length;++n)t.uint32(32).int64(e.participants[n]);if(null!=e.biz_ext&&Object.hasOwnProperty.call(e,"biz_ext"))for(var o=Object.keys(e.biz_ext),n=0;n<o.length;++n)t.uint32(42).fork().uint32(10).string(o[n]).uint32(18).string(e.biz_ext[o[n]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.ConversationAddParticipantsRequestBody;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_short_id=e.int64();break;case 3:i.conversation_type=e.int32();break;case 4:if(!(i.participants&&i.participants.length)&&(i.participants=[]),(7&a)==2){for(var l=e.uint32()+e.pos;e.pos<l;)i.participants.push(e.int64())}else i.participants.push(e.int64());break;case 5:i.biz_ext===c.emptyObject&&(i.biz_ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.biz_ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.SecUidPair=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uid=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sec_uid="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.uid&&Object.hasOwnProperty.call(e,"uid")&&t.uint32(8).int64(e.uid),null!=e.sec_uid&&Object.hasOwnProperty.call(e,"sec_uid")&&t.uint32(18).string(e.sec_uid),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.SecUidPair;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.uid=e.int64();break;case 2:o.sec_uid=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationAddParticipantsResponseBody=function(){function e(e){if(this.success_participants=[],this.failed_participants=[],this.sec_success_participants=[],this.sec_failed_participants=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.success_participants=c.emptyArray,e.prototype.failed_participants=c.emptyArray,e.prototype.status=0,e.prototype.extra_info="",e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.prototype.sec_success_participants=c.emptyArray,e.prototype.sec_failed_participants=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.success_participants&&e.success_participants.length)for(var n=0;n<e.success_participants.length;++n)t.uint32(8).int64(e.success_participants[n]);if(null!=e.failed_participants&&e.failed_participants.length)for(var n=0;n<e.failed_participants.length;++n)t.uint32(16).int64(e.failed_participants[n]);if(null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(24).int32(e.status),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(34).string(e.extra_info),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(40).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(50).string(e.check_message),null!=e.sec_success_participants&&e.sec_success_participants.length)for(var n=0;n<e.sec_success_participants.length;++n)_.im_proto.SecUidPair.encode(e.sec_success_participants[n],t.uint32(58).fork()).ldelim();if(null!=e.sec_failed_participants&&e.sec_failed_participants.length)for(var n=0;n<e.sec_failed_participants.length;++n)_.im_proto.SecUidPair.encode(e.sec_failed_participants[n],t.uint32(66).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationAddParticipantsResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:if(!(o.success_participants&&o.success_participants.length)&&(o.success_participants=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.success_participants.push(e.int64())}else o.success_participants.push(e.int64());break;case 2:if(!(o.failed_participants&&o.failed_participants.length)&&(o.failed_participants=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.failed_participants.push(e.int64())}else o.failed_participants.push(e.int64());break;case 3:o.status=e.int32();break;case 4:o.extra_info=e.string();break;case 5:o.check_code=e.int64();break;case 6:o.check_message=e.string();break;case 7:!(o.sec_success_participants&&o.sec_success_participants.length)&&(o.sec_success_participants=[]),o.sec_success_participants.push(_.im_proto.SecUidPair.decode(e,e.uint32()));break;case 8:!(o.sec_failed_participants&&o.sec_failed_participants.length)&&(o.sec_failed_participants=[]),o.sec_failed_participants.push(_.im_proto.SecUidPair.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.ConversationRemoveParticipantsResponseBody=function(){function e(e){if(this.failed_participants=[],this.failed_sec_participants=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.failed_participants=c.emptyArray,e.prototype.status=0,e.prototype.extra_info="",e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.prototype.failed_sec_participants=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.failed_participants&&e.failed_participants.length)for(var n=0;n<e.failed_participants.length;++n)t.uint32(8).int64(e.failed_participants[n]);if(null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(16).int32(e.status),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(26).string(e.extra_info),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(32).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(42).string(e.check_message),null!=e.failed_sec_participants&&e.failed_sec_participants.length)for(var n=0;n<e.failed_sec_participants.length;++n)_.im_proto.SecUidPair.encode(e.failed_sec_participants[n],t.uint32(50).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationRemoveParticipantsResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:if(!(o.failed_participants&&o.failed_participants.length)&&(o.failed_participants=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.failed_participants.push(e.int64())}else o.failed_participants.push(e.int64());break;case 2:o.status=e.int32();break;case 3:o.extra_info=e.string();break;case 4:o.check_code=e.int64();break;case 5:o.check_message=e.string();break;case 6:!(o.failed_sec_participants&&o.failed_sec_participants.length)&&(o.failed_sec_participants=[]),o.failed_sec_participants.push(_.im_proto.SecUidPair.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.ConversationLeaveRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationLeaveRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationParticipantsListRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.limit=100,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.cursor&&Object.hasOwnProperty.call(e,"cursor")&&t.uint32(32).int64(e.cursor),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(40).int32(e.limit),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationParticipantsListRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.cursor=e.int64();break;case 5:o.limit=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationParticipantsListResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.participants_page=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.participants_page&&Object.hasOwnProperty.call(e,"participants_page")&&_.im_proto.ParticipantsPage.encode(e.participants_page,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationParticipantsListResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)o.participants_page=_.im_proto.ParticipantsPage.decode(e,e.uint32());else e.skipType(7&r)}return o},e}(),e.MgetConversationParticipantsRequestBody=function(){function e(e){if(this.participants=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.participants=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.participants&&e.participants.length)for(var n=0;n<e.participants.length;++n)t.uint32(32).int64(e.participants[n]);return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MgetConversationParticipantsRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:if(!(o.participants&&o.participants.length)&&(o.participants=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.participants.push(e.int64())}else o.participants.push(e.int64());break;default:e.skipType(7&r)}}return o},e}(),e.MgetConversationParticipantsResponseBody=function(){function e(e){if(this.participants=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.participants=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.participants&&e.participants.length)for(var n=0;n<e.participants.length;++n)_.im_proto.Participant.encode(e.participants[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MgetConversationParticipantsResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.participants&&o.participants.length)&&(o.participants=[]),o.participants.push(_.im_proto.Participant.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.UpdateConversationParticipantResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.participant=null,e.prototype.status=0,e.prototype.extra_info="",e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.participant&&Object.hasOwnProperty.call(e,"participant")&&_.im_proto.Participant.encode(e.participant,t.uint32(10).fork()).ldelim(),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(16).int32(e.status),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(26).string(e.extra_info),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(32).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(42).string(e.check_message),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.UpdateConversationParticipantResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.participant=_.im_proto.Participant.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.extra_info=e.string();break;case 4:o.check_code=e.int64();break;case 5:o.check_message=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationCoreInfoRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationCoreInfoRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationCoreInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_core_info=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_core_info&&Object.hasOwnProperty.call(e,"conversation_core_info")&&_.im_proto.ConversationCoreInfo.encode(e.conversation_core_info,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationCoreInfoResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)o.conversation_core_info=_.im_proto.ConversationCoreInfo.decode(e,e.uint32());else e.skipType(7&r)}return o},e}(),e.SetConversationCoreInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_core_info=null,e.prototype.status=0,e.prototype.extra_info="",e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_core_info&&Object.hasOwnProperty.call(e,"conversation_core_info")&&_.im_proto.ConversationCoreInfo.encode(e.conversation_core_info,t.uint32(10).fork()).ldelim(),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(16).int32(e.status),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(26).string(e.extra_info),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(32).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(42).string(e.check_message),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.SetConversationCoreInfoResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_core_info=_.im_proto.ConversationCoreInfo.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.extra_info=e.string();break;case 4:o.check_code=e.int64();break;case 5:o.check_message=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.UpsertConversationCoreExtInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.core_info=null,e.prototype.status=0,e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.prototype.extra_info="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.core_info&&Object.hasOwnProperty.call(e,"core_info")&&_.im_proto.ConversationCoreInfo.encode(e.core_info,t.uint32(10).fork()).ldelim(),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(16).int32(e.status),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(24).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(34).string(e.check_message),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(42).string(e.extra_info),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.UpsertConversationCoreExtInfoResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.core_info=_.im_proto.ConversationCoreInfo.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.check_code=e.int64();break;case 4:o.check_message=e.string();break;case 5:o.extra_info=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.SetConversationSettingInfoRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.set_stick_on_top=!1,e.prototype.set_mute=!1,e.prototype.set_favorite=!1,e.prototype.push_status=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.set_stick_on_top&&Object.hasOwnProperty.call(e,"set_stick_on_top")&&t.uint32(32).bool(e.set_stick_on_top),null!=e.set_mute&&Object.hasOwnProperty.call(e,"set_mute")&&t.uint32(40).bool(e.set_mute),null!=e.set_favorite&&Object.hasOwnProperty.call(e,"set_favorite")&&t.uint32(48).bool(e.set_favorite),null!=e.push_status&&Object.hasOwnProperty.call(e,"push_status")&&t.uint32(56).int32(e.push_status),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.SetConversationSettingInfoRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.set_stick_on_top=e.bool();break;case 5:o.set_mute=e.bool();break;case 6:o.set_favorite=e.bool();break;case 7:o.push_status=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.SetConversationSettingInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.setting_info=null,e.prototype.status=0,e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.prototype.extra_info="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.setting_info&&Object.hasOwnProperty.call(e,"setting_info")&&_.im_proto.ConversationSettingInfo.encode(e.setting_info,t.uint32(10).fork()).ldelim(),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(16).int32(e.status),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(24).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(34).string(e.check_message),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(42).string(e.extra_info),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.SetConversationSettingInfoResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.setting_info=_.im_proto.ConversationSettingInfo.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.check_code=e.int64();break;case 4:o.check_message=e.string();break;case 5:o.extra_info=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.UpsertConversationSettingExtInfoRequestBody=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(34).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.UpsertConversationSettingExtInfoRequestBody;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_short_id=e.int64();break;case 3:i.conversation_type=e.int32();break;case 4:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.UpsertConversationSettingExtInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.setting_info=null,e.prototype.status=0,e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.prototype.extra_info="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.setting_info&&Object.hasOwnProperty.call(e,"setting_info")&&_.im_proto.ConversationSettingInfo.encode(e.setting_info,t.uint32(10).fork()).ldelim(),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(16).int32(e.status),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(24).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(34).string(e.check_message),null!=e.extra_info&&Object.hasOwnProperty.call(e,"extra_info")&&t.uint32(42).string(e.extra_info),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.UpsertConversationSettingExtInfoResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.setting_info=_.im_proto.ConversationSettingInfo.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.check_code=e.int64();break;case 4:o.check_message=e.string();break;case 5:o.extra_info=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.StrangerConversation=function(){function e(e){if(this.participants=[],this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.unread=0,e.prototype.last_message=null,e.prototype.conversation_id="",e.prototype.participants=c.emptyArray,e.prototype.ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(8).int64(e.conversation_short_id),null!=e.unread&&Object.hasOwnProperty.call(e,"unread")&&t.uint32(16).int32(e.unread),null!=e.last_message&&Object.hasOwnProperty.call(e,"last_message")&&_.im_proto.MessageBody.encode(e.last_message,t.uint32(26).fork()).ldelim(),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(34).string(e.conversation_id),null!=e.participants&&e.participants.length)for(var n=0;n<e.participants.length;++n)_.im_proto.Participant.encode(e.participants[n],t.uint32(42).fork()).ldelim();if(null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var o=Object.keys(e.ext),n=0;n<o.length;++n)t.uint32(58).fork().uint32(10).string(o[n]).uint32(18).string(e.ext[o[n]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.StrangerConversation;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.conversation_short_id=e.int64();break;case 2:i.unread=e.int32();break;case 3:i.last_message=_.im_proto.MessageBody.decode(e,e.uint32());break;case 4:i.conversation_id=e.string();break;case 5:!(i.participants&&i.participants.length)&&(i.participants=[]),i.participants.push(_.im_proto.Participant.decode(e,e.uint32()));break;case 7:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.GetStrangerConversationListRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.count=c.Long?c.Long.fromBits(50,0,!1):50,e.prototype.show_total_unread=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.cursor&&Object.hasOwnProperty.call(e,"cursor")&&t.uint32(8).int64(e.cursor),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(16).int64(e.count),null!=e.show_total_unread&&Object.hasOwnProperty.call(e,"show_total_unread")&&t.uint32(24).bool(e.show_total_unread),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetStrangerConversationListRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.cursor=e.int64();break;case 2:o.count=e.int64();break;case 3:o.show_total_unread=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.GetStrangerConversationListResponseBody=function(){function e(e){if(this.conversation_list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.next_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.has_more=!1,e.prototype.total_unread=0,e.prototype.conversation_list=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.next_cursor&&Object.hasOwnProperty.call(e,"next_cursor")&&t.uint32(8).int64(e.next_cursor),null!=e.has_more&&Object.hasOwnProperty.call(e,"has_more")&&t.uint32(16).bool(e.has_more),null!=e.total_unread&&Object.hasOwnProperty.call(e,"total_unread")&&t.uint32(24).int32(e.total_unread),null!=e.conversation_list&&e.conversation_list.length)for(var n=0;n<e.conversation_list.length;++n)_.im_proto.StrangerConversation.encode(e.conversation_list[n],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetStrangerConversationListResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.next_cursor=e.int64();break;case 2:o.has_more=e.bool();break;case 3:o.total_unread=e.int32();break;case 4:!(o.conversation_list&&o.conversation_list.length)&&(o.conversation_list=[]),o.conversation_list.push(_.im_proto.StrangerConversation.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.GetStrangerMessagesRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.reset_unread_count=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(8).int64(e.conversation_short_id),null!=e.reset_unread_count&&Object.hasOwnProperty.call(e,"reset_unread_count")&&t.uint32(16).bool(e.reset_unread_count),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetStrangerMessagesRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.reset_unread_count=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.GetStrangerMessagesResponseBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.MessageBody.encode(e.messages[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetStrangerMessagesResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==3)!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.DeleteStrangerMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.server_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.server_message_id&&Object.hasOwnProperty.call(e,"server_message_id")&&t.uint32(8).int64(e.server_message_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.DeleteStrangerMessageRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.server_message_id=e.int64();break;case 2:o.conversation_short_id=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.DeleteStrangerConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(8).int64(e.conversation_short_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.DeleteStrangerConversationRequestBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)o.conversation_short_id=e.int64();else e.skipType(7&r)}return o},e}(),e.DeleteStrangerAllConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.DeleteStrangerAllConversationRequestBody;e.pos<n;){var r=e.uint32();e.skipType(7&r)}return o},e}(),e.MarkStrangerConversationReadRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(8).int64(e.conversation_short_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MarkStrangerConversationReadRequestBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)o.conversation_short_id=e.int64();else e.skipType(7&r)}return o},e}(),e.MarkStrangerAllConversationReadRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MarkStrangerAllConversationReadRequestBody;e.pos<n;){var r=e.uint32();e.skipType(7&r)}return o},e}(),e.OPERATION_TYPE=function(){let e={},t=Object.create(e);return t[e[0]="ADD_PROPERTY_ITEM"]=0,t[e[1]="REMOVE_PROPERTY_ITEM"]=1,t[e[2]="SET_PROPERTY"]=2,t[e[3]="DEL_PROPERTY"]=3,t}(),e.ModifyPropertyContent=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.operation=0,e.prototype.key="",e.prototype.value="",e.prototype.idempotent_id="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.operation&&Object.hasOwnProperty.call(e,"operation")&&t.uint32(8).int32(e.operation),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(18).string(e.key),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(26).string(e.value),null!=e.idempotent_id&&Object.hasOwnProperty.call(e,"idempotent_id")&&t.uint32(34).string(e.idempotent_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ModifyPropertyContent;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.operation=e.int32();break;case 2:o.key=e.string();break;case 3:o.value=e.string();break;case 4:o.idempotent_id=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.ModifyPropertyBody=function(){function e(e){if(this.modify_property_content=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_type=0,e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.server_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.client_message_id="",e.prototype.modify_property_content=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(24).int64(e.conversation_short_id),null!=e.server_message_id&&Object.hasOwnProperty.call(e,"server_message_id")&&t.uint32(32).int64(e.server_message_id),null!=e.client_message_id&&Object.hasOwnProperty.call(e,"client_message_id")&&t.uint32(42).string(e.client_message_id),null!=e.modify_property_content&&e.modify_property_content.length)for(var n=0;n<e.modify_property_content.length;++n)_.im_proto.ModifyPropertyContent.encode(e.modify_property_content[n],t.uint32(50).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ModifyPropertyBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_short_id=e.int64();break;case 4:o.server_message_id=e.int64();break;case 5:o.client_message_id=e.string();break;case 6:!(o.modify_property_content&&o.modify_property_content.length)&&(o.modify_property_content=[]),o.modify_property_content.push(_.im_proto.ModifyPropertyContent.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.ModifyMessagePropertyRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.property_list=null,e.prototype.ticket="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.property_list&&Object.hasOwnProperty.call(e,"property_list")&&_.im_proto.ModifyPropertyBody.encode(e.property_list,t.uint32(10).fork()).ldelim(),null!=e.ticket&&Object.hasOwnProperty.call(e,"ticket")&&t.uint32(18).string(e.ticket),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ModifyMessagePropertyRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.property_list=_.im_proto.ModifyPropertyBody.decode(e,e.uint32());break;case 2:o.ticket=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.ModifyMessagePropertyStatus=function(){let e={},t=Object.create(e);return t[e[0]="MODIFY_PROPERTY_SUCCESS"]=0,t[e[1]="MODIFY_PROPERTY_REPEAT_REQUEST"]=1,t[e[2]="MODIFY_PROPERTY_INVALID_LENGTH"]=2,t[e[3]="MODIFY_PROPERTY_INVALID_REQUEST"]=3,t[e[4]="MODIFY_PROPERTY_CALLBACK_ERROR"]=4,t[e[500]="MODIFY_PROPERTY_INTERNAL_ERROR"]=500,t}(),e.ModifyMessagePropertyResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.status=0,e.prototype.version=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(8).int32(e.status),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(16).int64(e.version),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ModifyMessagePropertyResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.status=e.int32();break;case 2:o.version=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.MediaType=function(){let e={},t=Object.create(e);return t[e[1]="IMG"]=1,t[e[2]="VIDEO"]=2,t[e[3]="AUDIO"]=3,t[e[4]="FILE"]=4,t[e[10]="OTHER"]=10,t}(),e.MediaTokenType=function(){let e={},t=Object.create(e);return t[e[1]="VSDK"]=1,t[e[2]="IMAGEX"]=2,t[e[3]="VSDK_V5"]=3,t[e[4]="IMAGEX_V5"]=4,t}(),e.ReadURLFrom=function(){let e={},t=Object.create(e);return t[e[1]="URL_VSDK"]=1,t[e[2]="URL_IMAGEX"]=2,t}(),e.GetTicketRequestBody=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.ticket_type=1,e.prototype.conversation_type=1,e.prototype.to_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.ticket_type&&Object.hasOwnProperty.call(e,"ticket_type")&&t.uint32(8).int32(e.ticket_type),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.to_id&&Object.hasOwnProperty.call(e,"to_id")&&t.uint32(32).int64(e.to_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(40).int64(e.conversation_short_id),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(82).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.GetTicketRequestBody;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.ticket_type=e.int32();break;case 2:i.conversation_type=e.int32();break;case 4:i.to_id=e.int64();break;case 5:i.conversation_short_id=e.int64();break;case 10:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.GetTicketResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.ticket="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.ticket&&Object.hasOwnProperty.call(e,"ticket")&&t.uint32(10).string(e.ticket),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetTicketResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)o.ticket=e.string();else e.skipType(7&r)}return o},e}(),e.SortType=function(){let e={},t=Object.create(e);return t[e[1]="JOIN_TIME"]=1,t[e[2]="CREATED_TIME"]=2,t[e[3]="GROUP_NAME"]=3,t[e[4]="ACTIVE_TIME"]=4,t}(),e.GetUserConversationListRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sort_type=1,e.prototype.cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.con_type=1,e.prototype.limit=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.include_role=0,e.prototype.exclude_role=0,e.prototype.with_cold=!1,e.prototype.push_status=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.sort_type&&Object.hasOwnProperty.call(e,"sort_type")&&t.uint32(8).int32(e.sort_type),null!=e.cursor&&Object.hasOwnProperty.call(e,"cursor")&&t.uint32(16).int64(e.cursor),null!=e.con_type&&Object.hasOwnProperty.call(e,"con_type")&&t.uint32(24).int32(e.con_type),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(32).int64(e.limit),null!=e.include_role&&Object.hasOwnProperty.call(e,"include_role")&&t.uint32(40).int32(e.include_role),null!=e.exclude_role&&Object.hasOwnProperty.call(e,"exclude_role")&&t.uint32(48).int32(e.exclude_role),null!=e.with_cold&&Object.hasOwnProperty.call(e,"with_cold")&&t.uint32(64).bool(e.with_cold),null!=e.push_status&&Object.hasOwnProperty.call(e,"push_status")&&t.uint32(80).int32(e.push_status),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetUserConversationListRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.sort_type=e.int32();break;case 2:o.cursor=e.int64();break;case 3:o.con_type=e.int32();break;case 4:o.limit=e.int64();break;case 5:o.include_role=e.int32();break;case 6:o.exclude_role=e.int32();break;case 8:o.with_cold=e.bool();break;case 10:o.push_status=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetUserConversationListResponseBody=function(){function e(e){if(this.list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.list=c.emptyArray,e.prototype.has_more=!1,e.prototype.next_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.list&&e.list.length)for(var n=0;n<e.list.length;++n)_.im_proto.ConversationInfoV2.encode(e.list[n],t.uint32(10).fork()).ldelim();return null!=e.has_more&&Object.hasOwnProperty.call(e,"has_more")&&t.uint32(16).bool(e.has_more),null!=e.next_cursor&&Object.hasOwnProperty.call(e,"next_cursor")&&t.uint32(24).int64(e.next_cursor),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetUserConversationListResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.list&&o.list.length)&&(o.list=[]),o.list.push(_.im_proto.ConversationInfoV2.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_cursor=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.RequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.send_message_body=null,e.prototype.messages_per_user_body=null,e.prototype.messages_per_user_init_v2_body=null,e.prototype.get_message_by_id_body=null,e.prototype.messages_in_conversation_body=null,e.prototype.get_messages_checkinfo_in_conversation_body=null,e.prototype.delete_conversation_body=null,e.prototype.mark_conversation_read_body=null,e.prototype.conversation_participants_body=null,e.prototype.batch_mark_read_body=null,e.prototype.dissolve_conversation_body=null,e.prototype.create_conversation_v2_body=null,e.prototype.get_conversation_info_list_v2_body=null,e.prototype.conversation_add_participants_body=null,e.prototype.leave_conversation_body=null,e.prototype.mget_conversation_participants_body=null,e.prototype.delete_message_body=null,e.prototype.recall_message_body=null,e.prototype.modify_message_property_body=null,e.prototype.get_conversation_core_info_body=null,e.prototype.set_conversation_setting_info_body=null,e.prototype.upsert_conversation_setting_ext_info_body=null,e.prototype.get_stranger_conversation_body=null,e.prototype.get_stranger_messages_body=null,e.prototype.delete_stranger_message_body=null,e.prototype.delete_stranger_conversation_body=null,e.prototype.delete_stranger_all_conversation_body=null,e.prototype.mark_stranger_conversation_read_body=null,e.prototype.mark_stranger_all_conversation_read_body=null,e.prototype.participants_read_index_body=null,e.prototype.participants_min_index_body=null,e.prototype.get_ticket_body=null,e.prototype.get_conversation_list_body=null,e.prototype.broadcast_recv_message_body=null,e.prototype.client_ack_body=null,e.prototype.get_configs_body=null,e.prototype.unread_count_report_body=null,e.prototype.batch_get_conversation_participants_readindex=null,e.prototype.message_by_init=null,e.prototype.get_user_message=null,e.prototype.client_batch_ack_body=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.send_message_body&&Object.hasOwnProperty.call(e,"send_message_body")&&_.im_proto.SendMessageRequestBody.encode(e.send_message_body,t.uint32(802).fork()).ldelim(),null!=e.messages_per_user_body&&Object.hasOwnProperty.call(e,"messages_per_user_body")&&_.im_proto.MessagesPerUserRequestBody.encode(e.messages_per_user_body,t.uint32(1602).fork()).ldelim(),null!=e.messages_per_user_init_v2_body&&Object.hasOwnProperty.call(e,"messages_per_user_init_v2_body")&&_.im_proto.MessagesPerUserInitV2RequestBody.encode(e.messages_per_user_init_v2_body,t.uint32(1626).fork()).ldelim(),null!=e.get_message_by_id_body&&Object.hasOwnProperty.call(e,"get_message_by_id_body")&&_.im_proto.GetMessageByIdRequestBody.encode(e.get_message_by_id_body,t.uint32(1690).fork()).ldelim(),null!=e.messages_in_conversation_body&&Object.hasOwnProperty.call(e,"messages_in_conversation_body")&&_.im_proto.MessagesInConversationRequestBody.encode(e.messages_in_conversation_body,t.uint32(2410).fork()).ldelim(),null!=e.get_messages_checkinfo_in_conversation_body&&Object.hasOwnProperty.call(e,"get_messages_checkinfo_in_conversation_body")&&_.im_proto.GetMessagesCheckInfoInConversationRequestBody.encode(e.get_messages_checkinfo_in_conversation_body,t.uint32(2418).fork()).ldelim(),null!=e.delete_conversation_body&&Object.hasOwnProperty.call(e,"delete_conversation_body")&&_.im_proto.DeleteConversationRequestBody.encode(e.delete_conversation_body,t.uint32(4826).fork()).ldelim(),null!=e.mark_conversation_read_body&&Object.hasOwnProperty.call(e,"mark_conversation_read_body")&&_.im_proto.MarkConversationReadRequestBody.encode(e.mark_conversation_read_body,t.uint32(4834).fork()).ldelim(),null!=e.conversation_participants_body&&Object.hasOwnProperty.call(e,"conversation_participants_body")&&_.im_proto.ConversationParticipantsListRequestBody.encode(e.conversation_participants_body,t.uint32(4842).fork()).ldelim(),null!=e.create_conversation_v2_body&&Object.hasOwnProperty.call(e,"create_conversation_v2_body")&&_.im_proto.CreateConversationV2RequestBody.encode(e.create_conversation_v2_body,t.uint32(4874).fork()).ldelim(),null!=e.get_conversation_info_list_v2_body&&Object.hasOwnProperty.call(e,"get_conversation_info_list_v2_body")&&_.im_proto.GetConversationInfoListV2RequestBody.encode(e.get_conversation_info_list_v2_body,t.uint32(4882).fork()).ldelim(),null!=e.batch_mark_read_body&&Object.hasOwnProperty.call(e,"batch_mark_read_body")&&_.im_proto.BatchMarkConversationReadRequestBody.encode(e.batch_mark_read_body,t.uint32(4906).fork()).ldelim(),null!=e.dissolve_conversation_body&&Object.hasOwnProperty.call(e,"dissolve_conversation_body")&&_.im_proto.DissolveConversationRequestBody.encode(e.dissolve_conversation_body,t.uint32(4914).fork()).ldelim(),null!=e.conversation_add_participants_body&&Object.hasOwnProperty.call(e,"conversation_add_participants_body")&&_.im_proto.ConversationAddParticipantsRequestBody.encode(e.conversation_add_participants_body,t.uint32(5202).fork()).ldelim(),null!=e.leave_conversation_body&&Object.hasOwnProperty.call(e,"leave_conversation_body")&&_.im_proto.ConversationLeaveRequestBody.encode(e.leave_conversation_body,t.uint32(5218).fork()).ldelim(),null!=e.mget_conversation_participants_body&&Object.hasOwnProperty.call(e,"mget_conversation_participants_body")&&_.im_proto.MgetConversationParticipantsRequestBody.encode(e.mget_conversation_participants_body,t.uint32(5234).fork()).ldelim(),null!=e.delete_message_body&&Object.hasOwnProperty.call(e,"delete_message_body")&&_.im_proto.DeleteMessageRequestBody.encode(e.delete_message_body,t.uint32(5610).fork()).ldelim(),null!=e.recall_message_body&&Object.hasOwnProperty.call(e,"recall_message_body")&&_.im_proto.RecallMessageRequestBody.encode(e.recall_message_body,t.uint32(5618).fork()).ldelim(),null!=e.modify_message_property_body&&Object.hasOwnProperty.call(e,"modify_message_property_body")&&_.im_proto.ModifyMessagePropertyRequestBody.encode(e.modify_message_property_body,t.uint32(5642).fork()).ldelim(),null!=e.get_conversation_core_info_body&&Object.hasOwnProperty.call(e,"get_conversation_core_info_body")&&_.im_proto.GetConversationCoreInfoRequestBody.encode(e.get_conversation_core_info_body,t.uint32(7210).fork()).ldelim(),null!=e.set_conversation_setting_info_body&&Object.hasOwnProperty.call(e,"set_conversation_setting_info_body")&&_.im_proto.SetConversationSettingInfoRequestBody.encode(e.set_conversation_setting_info_body,t.uint32(7370).fork()).ldelim(),null!=e.upsert_conversation_setting_ext_info_body&&Object.hasOwnProperty.call(e,"upsert_conversation_setting_ext_info_body")&&_.im_proto.UpsertConversationSettingExtInfoRequestBody.encode(e.upsert_conversation_setting_ext_info_body,t.uint32(7378).fork()).ldelim(),null!=e.get_stranger_conversation_body&&Object.hasOwnProperty.call(e,"get_stranger_conversation_body")&&_.im_proto.GetStrangerConversationListRequestBody.encode(e.get_stranger_conversation_body,t.uint32(8002).fork()).ldelim(),null!=e.get_stranger_messages_body&&Object.hasOwnProperty.call(e,"get_stranger_messages_body")&&_.im_proto.GetStrangerMessagesRequestBody.encode(e.get_stranger_messages_body,t.uint32(8010).fork()).ldelim(),null!=e.delete_stranger_message_body&&Object.hasOwnProperty.call(e,"delete_stranger_message_body")&&_.im_proto.DeleteStrangerMessageRequestBody.encode(e.delete_stranger_message_body,t.uint32(8018).fork()).ldelim(),null!=e.delete_stranger_conversation_body&&Object.hasOwnProperty.call(e,"delete_stranger_conversation_body")&&_.im_proto.DeleteStrangerConversationRequestBody.encode(e.delete_stranger_conversation_body,t.uint32(8026).fork()).ldelim(),null!=e.delete_stranger_all_conversation_body&&Object.hasOwnProperty.call(e,"delete_stranger_all_conversation_body")&&_.im_proto.DeleteStrangerAllConversationRequestBody.encode(e.delete_stranger_all_conversation_body,t.uint32(8034).fork()).ldelim(),null!=e.mark_stranger_conversation_read_body&&Object.hasOwnProperty.call(e,"mark_stranger_conversation_read_body")&&_.im_proto.MarkStrangerConversationReadRequestBody.encode(e.mark_stranger_conversation_read_body,t.uint32(8042).fork()).ldelim(),null!=e.mark_stranger_all_conversation_read_body&&Object.hasOwnProperty.call(e,"mark_stranger_all_conversation_read_body")&&_.im_proto.MarkStrangerAllConversationReadRequestBody.encode(e.mark_stranger_all_conversation_read_body,t.uint32(8050).fork()).ldelim(),null!=e.participants_read_index_body&&Object.hasOwnProperty.call(e,"participants_read_index_body")&&_.im_proto.GetConversationParticipantsReadIndexV3RequestBody.encode(e.participants_read_index_body,t.uint32(16002).fork()).ldelim(),null!=e.participants_min_index_body&&Object.hasOwnProperty.call(e,"participants_min_index_body")&&_.im_proto.GetConversationParticipantsMinIndexV3RequestBody.encode(e.participants_min_index_body,t.uint32(16010).fork()).ldelim(),null!=e.get_ticket_body&&Object.hasOwnProperty.call(e,"get_ticket_body")&&_.im_proto.GetTicketRequestBody.encode(e.get_ticket_body,t.uint32(16042).fork()).ldelim(),null!=e.get_conversation_list_body&&Object.hasOwnProperty.call(e,"get_conversation_list_body")&&_.im_proto.GetUserConversationListRequestBody.encode(e.get_conversation_list_body,t.uint32(16050).fork()).ldelim(),null!=e.broadcast_recv_message_body&&Object.hasOwnProperty.call(e,"broadcast_recv_message_body")&&_.im_proto.BroadcastRecvMessageRequestBody.encode(e.broadcast_recv_message_body,t.uint32(16066).fork()).ldelim(),null!=e.client_ack_body&&Object.hasOwnProperty.call(e,"client_ack_body")&&_.im_proto.ClientACKRequestBody.encode(e.client_ack_body,t.uint32(16082).fork()).ldelim(),null!=e.get_configs_body&&Object.hasOwnProperty.call(e,"get_configs_body")&&_.im_proto.GetConfigsRequestBody.encode(e.get_configs_body,t.uint32(16138).fork()).ldelim(),null!=e.unread_count_report_body&&Object.hasOwnProperty.call(e,"unread_count_report_body")&&_.im_proto.UnReadCountReportRequestBody.encode(e.unread_count_report_body,t.uint32(16146).fork()).ldelim(),null!=e.batch_get_conversation_participants_readindex&&Object.hasOwnProperty.call(e,"batch_get_conversation_participants_readindex")&&_.im_proto.BatchGetConversationParticipantsReadIndexRequestBody.encode(e.batch_get_conversation_participants_readindex,t.uint32(16306).fork()).ldelim(),null!=e.message_by_init&&Object.hasOwnProperty.call(e,"message_by_init")&&_.im_proto.MessageByInitRequestBody.encode(e.message_by_init,t.uint32(16346).fork()).ldelim(),null!=e.get_user_message&&Object.hasOwnProperty.call(e,"get_user_message")&&_.im_proto.GetUserMessageRequestBody.encode(e.get_user_message,t.uint32(16386).fork()).ldelim(),null!=e.client_batch_ack_body&&Object.hasOwnProperty.call(e,"client_batch_ack_body")&&_.im_proto.ClientBatchACKRequestBody.encode(e.client_batch_ack_body,t.uint32(16458).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.RequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 100:o.send_message_body=_.im_proto.SendMessageRequestBody.decode(e,e.uint32());break;case 200:o.messages_per_user_body=_.im_proto.MessagesPerUserRequestBody.decode(e,e.uint32());break;case 203:o.messages_per_user_init_v2_body=_.im_proto.MessagesPerUserInitV2RequestBody.decode(e,e.uint32());break;case 211:o.get_message_by_id_body=_.im_proto.GetMessageByIdRequestBody.decode(e,e.uint32());break;case 301:o.messages_in_conversation_body=_.im_proto.MessagesInConversationRequestBody.decode(e,e.uint32());break;case 302:o.get_messages_checkinfo_in_conversation_body=_.im_proto.GetMessagesCheckInfoInConversationRequestBody.decode(e,e.uint32());break;case 603:o.delete_conversation_body=_.im_proto.DeleteConversationRequestBody.decode(e,e.uint32());break;case 604:o.mark_conversation_read_body=_.im_proto.MarkConversationReadRequestBody.decode(e,e.uint32());break;case 605:o.conversation_participants_body=_.im_proto.ConversationParticipantsListRequestBody.decode(e,e.uint32());break;case 613:o.batch_mark_read_body=_.im_proto.BatchMarkConversationReadRequestBody.decode(e,e.uint32());break;case 614:o.dissolve_conversation_body=_.im_proto.DissolveConversationRequestBody.decode(e,e.uint32());break;case 609:o.create_conversation_v2_body=_.im_proto.CreateConversationV2RequestBody.decode(e,e.uint32());break;case 610:o.get_conversation_info_list_v2_body=_.im_proto.GetConversationInfoListV2RequestBody.decode(e,e.uint32());break;case 650:o.conversation_add_participants_body=_.im_proto.ConversationAddParticipantsRequestBody.decode(e,e.uint32());break;case 652:o.leave_conversation_body=_.im_proto.ConversationLeaveRequestBody.decode(e,e.uint32());break;case 654:o.mget_conversation_participants_body=_.im_proto.MgetConversationParticipantsRequestBody.decode(e,e.uint32());break;case 701:o.delete_message_body=_.im_proto.DeleteMessageRequestBody.decode(e,e.uint32());break;case 702:o.recall_message_body=_.im_proto.RecallMessageRequestBody.decode(e,e.uint32());break;case 705:o.modify_message_property_body=_.im_proto.ModifyMessagePropertyRequestBody.decode(e,e.uint32());break;case 901:o.get_conversation_core_info_body=_.im_proto.GetConversationCoreInfoRequestBody.decode(e,e.uint32());break;case 921:o.set_conversation_setting_info_body=_.im_proto.SetConversationSettingInfoRequestBody.decode(e,e.uint32());break;case 922:o.upsert_conversation_setting_ext_info_body=_.im_proto.UpsertConversationSettingExtInfoRequestBody.decode(e,e.uint32());break;case 1e3:o.get_stranger_conversation_body=_.im_proto.GetStrangerConversationListRequestBody.decode(e,e.uint32());break;case 1001:o.get_stranger_messages_body=_.im_proto.GetStrangerMessagesRequestBody.decode(e,e.uint32());break;case 1002:o.delete_stranger_message_body=_.im_proto.DeleteStrangerMessageRequestBody.decode(e,e.uint32());break;case 1003:o.delete_stranger_conversation_body=_.im_proto.DeleteStrangerConversationRequestBody.decode(e,e.uint32());break;case 1004:o.delete_stranger_all_conversation_body=_.im_proto.DeleteStrangerAllConversationRequestBody.decode(e,e.uint32());break;case 1005:o.mark_stranger_conversation_read_body=_.im_proto.MarkStrangerConversationReadRequestBody.decode(e,e.uint32());break;case 1006:o.mark_stranger_all_conversation_read_body=_.im_proto.MarkStrangerAllConversationReadRequestBody.decode(e,e.uint32());break;case 2e3:o.participants_read_index_body=_.im_proto.GetConversationParticipantsReadIndexV3RequestBody.decode(e,e.uint32());break;case 2001:o.participants_min_index_body=_.im_proto.GetConversationParticipantsMinIndexV3RequestBody.decode(e,e.uint32());break;case 2005:o.get_ticket_body=_.im_proto.GetTicketRequestBody.decode(e,e.uint32());break;case 2006:o.get_conversation_list_body=_.im_proto.GetUserConversationListRequestBody.decode(e,e.uint32());break;case 2008:o.broadcast_recv_message_body=_.im_proto.BroadcastRecvMessageRequestBody.decode(e,e.uint32());break;case 2010:o.client_ack_body=_.im_proto.ClientACKRequestBody.decode(e,e.uint32());break;case 2017:o.get_configs_body=_.im_proto.GetConfigsRequestBody.decode(e,e.uint32());break;case 2018:o.unread_count_report_body=_.im_proto.UnReadCountReportRequestBody.decode(e,e.uint32());break;case 2038:o.batch_get_conversation_participants_readindex=_.im_proto.BatchGetConversationParticipantsReadIndexRequestBody.decode(e,e.uint32());break;case 2043:o.message_by_init=_.im_proto.MessageByInitRequestBody.decode(e,e.uint32());break;case 2048:o.get_user_message=_.im_proto.GetUserMessageRequestBody.decode(e,e.uint32());break;case 2057:o.client_batch_ack_body=_.im_proto.ClientBatchACKRequestBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.Request=function(){function e(e){if(this.headers={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cmd=0,e.prototype.sequence_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sdk_version="",e.prototype.token="",e.prototype.refer=1,e.prototype.inbox_type=0,e.prototype.build_number="",e.prototype.body=null,e.prototype.device_id="",e.prototype.channel="",e.prototype.device_platform="",e.prototype.device_type="",e.prototype.os_version="",e.prototype.version_code="",e.prototype.headers=c.emptyObject,e.prototype.config_id=0,e.prototype.token_info=null,e.prototype.auth_type=0,e.prototype.biz="",e.prototype.access="",e.prototype.ts_sign="",e.prototype.sdk_cert="",e.prototype.reuqest_sign="",e.prototype.iter_version="",e.prototype.timestamp=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.pdes_version=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.cmd&&Object.hasOwnProperty.call(e,"cmd")&&t.uint32(8).int32(e.cmd),null!=e.sequence_id&&Object.hasOwnProperty.call(e,"sequence_id")&&t.uint32(16).int64(e.sequence_id),null!=e.sdk_version&&Object.hasOwnProperty.call(e,"sdk_version")&&t.uint32(26).string(e.sdk_version),null!=e.token&&Object.hasOwnProperty.call(e,"token")&&t.uint32(34).string(e.token),null!=e.refer&&Object.hasOwnProperty.call(e,"refer")&&t.uint32(40).int32(e.refer),null!=e.inbox_type&&Object.hasOwnProperty.call(e,"inbox_type")&&t.uint32(48).int32(e.inbox_type),null!=e.build_number&&Object.hasOwnProperty.call(e,"build_number")&&t.uint32(58).string(e.build_number),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&_.im_proto.RequestBody.encode(e.body,t.uint32(66).fork()).ldelim(),null!=e.device_id&&Object.hasOwnProperty.call(e,"device_id")&&t.uint32(74).string(e.device_id),null!=e.channel&&Object.hasOwnProperty.call(e,"channel")&&t.uint32(82).string(e.channel),null!=e.device_platform&&Object.hasOwnProperty.call(e,"device_platform")&&t.uint32(90).string(e.device_platform),null!=e.device_type&&Object.hasOwnProperty.call(e,"device_type")&&t.uint32(98).string(e.device_type),null!=e.os_version&&Object.hasOwnProperty.call(e,"os_version")&&t.uint32(106).string(e.os_version),null!=e.version_code&&Object.hasOwnProperty.call(e,"version_code")&&t.uint32(114).string(e.version_code),null!=e.headers&&Object.hasOwnProperty.call(e,"headers"))for(var n=Object.keys(e.headers),o=0;o<n.length;++o)t.uint32(122).fork().uint32(10).string(n[o]).uint32(18).string(e.headers[n[o]]).ldelim();return null!=e.config_id&&Object.hasOwnProperty.call(e,"config_id")&&t.uint32(128).int32(e.config_id),null!=e.token_info&&Object.hasOwnProperty.call(e,"token_info")&&_.im_proto.TokenInfo.encode(e.token_info,t.uint32(138).fork()).ldelim(),null!=e.auth_type&&Object.hasOwnProperty.call(e,"auth_type")&&t.uint32(144).int32(e.auth_type),null!=e.biz&&Object.hasOwnProperty.call(e,"biz")&&t.uint32(170).string(e.biz),null!=e.access&&Object.hasOwnProperty.call(e,"access")&&t.uint32(178).string(e.access),null!=e.ts_sign&&Object.hasOwnProperty.call(e,"ts_sign")&&t.uint32(186).string(e.ts_sign),null!=e.sdk_cert&&Object.hasOwnProperty.call(e,"sdk_cert")&&t.uint32(194).string(e.sdk_cert),null!=e.reuqest_sign&&Object.hasOwnProperty.call(e,"reuqest_sign")&&t.uint32(202).string(e.reuqest_sign),null!=e.iter_version&&Object.hasOwnProperty.call(e,"iter_version")&&t.uint32(826).string(e.iter_version),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&t.uint32(832).int64(e.timestamp),null!=e.pdes_version&&Object.hasOwnProperty.call(e,"pdes_version")&&t.uint32(880).int32(e.pdes_version),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.Request;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.cmd=e.int32();break;case 2:i.sequence_id=e.int64();break;case 3:i.sdk_version=e.string();break;case 4:i.token=e.string();break;case 5:i.refer=e.int32();break;case 6:i.inbox_type=e.int32();break;case 7:i.build_number=e.string();break;case 8:i.body=_.im_proto.RequestBody.decode(e,e.uint32());break;case 9:i.device_id=e.string();break;case 10:i.channel=e.string();break;case 11:i.device_platform=e.string();break;case 12:i.device_type=e.string();break;case 13:i.os_version=e.string();break;case 14:i.version_code=e.string();break;case 15:i.headers===c.emptyObject&&(i.headers={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.headers[n]=o;break;case 16:i.config_id=e.int32();break;case 17:i.token_info=_.im_proto.TokenInfo.decode(e,e.uint32());break;case 18:i.auth_type=e.int32();break;case 21:i.biz=e.string();break;case 22:i.access=e.string();break;case 23:i.ts_sign=e.string();break;case 24:i.sdk_cert=e.string();break;case 25:i.reuqest_sign=e.string();break;case 103:i.iter_version=e.string();break;case 104:i.timestamp=e.int64();break;case 110:i.pdes_version=e.int32();break;default:e.skipType(7&a)}}return i},e}(),e.AuthType=function(){let e={},t=Object.create(e);return t[e[0]="UNKNOWN_AUTH"]=0,t[e[1]="SESSION_AUTH"]=1,t[e[2]="TOKEN_AUTH"]=2,t[e[3]="CERT_AUTH"]=3,t[e[4]="PASSPORT_CERT_AUTH"]=4,t}(),e.TokenType=function(){let e={},t=Object.create(e);return t[e[0]="DEFAULT_TOKEN"]=0,t[e[1]="APP_TOKEN"]=1,t[e[2]="SERVER_TOKEN"]=2,t}(),e.TokenInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.mark_id=0,e.prototype.type=0,e.prototype.app_id=0,e.prototype.user_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.timestamp=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.mark_id&&Object.hasOwnProperty.call(e,"mark_id")&&t.uint32(8).int32(e.mark_id),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.app_id&&Object.hasOwnProperty.call(e,"app_id")&&t.uint32(24).int32(e.app_id),null!=e.user_id&&Object.hasOwnProperty.call(e,"user_id")&&t.uint32(32).int64(e.user_id),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&t.uint32(40).int64(e.timestamp),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.TokenInfo;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.mark_id=e.int32();break;case 2:o.type=e.int32();break;case 3:o.app_id=e.int32();break;case 4:o.user_id=e.int64();break;case 5:o.timestamp=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.SendType=function(){let e={},t=Object.create(e);return t[e[0]="BY_CONVERSATION"]=0,t[e[1]="BY_USER"]=1,t}(),e.NewP2PMessageNotify=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.send_type=0,e.prototype.sender=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.sec_sender="",e.prototype.conversation_id="",e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=0,e.prototype.message_type=0,e.prototype.content="",e.prototype.ext=c.emptyObject,e.prototype.create_time=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.send_type&&Object.hasOwnProperty.call(e,"send_type")&&t.uint32(8).int32(e.send_type),null!=e.sender&&Object.hasOwnProperty.call(e,"sender")&&t.uint32(16).int64(e.sender),null!=e.sec_sender&&Object.hasOwnProperty.call(e,"sec_sender")&&t.uint32(26).string(e.sec_sender),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(34).string(e.conversation_id),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(40).int64(e.conversation_short_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(48).int32(e.conversation_type),null!=e.message_type&&Object.hasOwnProperty.call(e,"message_type")&&t.uint32(56).int32(e.message_type),null!=e.content&&Object.hasOwnProperty.call(e,"content")&&t.uint32(66).string(e.content),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(74).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return null!=e.create_time&&Object.hasOwnProperty.call(e,"create_time")&&t.uint32(80).int64(e.create_time),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.NewP2PMessageNotify;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.send_type=e.int32();break;case 2:i.sender=e.int64();break;case 3:i.sec_sender=e.string();break;case 4:i.conversation_id=e.string();break;case 5:i.conversation_short_id=e.int64();break;case 6:i.conversation_type=e.int32();break;case 7:i.message_type=e.int32();break;case 8:i.content=e.string();break;case 9:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;case 10:i.create_time=e.int64();break;default:e.skipType(7&a)}}return i},e}(),e.MessageInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.status=0,e.prototype.body=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(8).int32(e.status),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&_.im_proto.MessageBody.encode(e.body,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessageInfo;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.status=e.int32();break;case 2:o.body=_.im_proto.MessageBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.GetMessageByIdRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_type=0,e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.server_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(24).int64(e.conversation_short_id),null!=e.server_message_id&&Object.hasOwnProperty.call(e,"server_message_id")&&t.uint32(32).int64(e.server_message_id),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetMessageByIdRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_short_id=e.int64();break;case 4:o.server_message_id=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.GetMessageByIdResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.msg_info=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.msg_info&&Object.hasOwnProperty.call(e,"msg_info")&&_.im_proto.MessageInfo.encode(e.msg_info,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetMessageByIdResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)o.msg_info=_.im_proto.MessageInfo.decode(e,e.uint32());else e.skipType(7&r)}return o},e}(),e.ResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.send_message_body=null,e.prototype.messages_per_user_body=null,e.prototype.messages_per_user_init_v2_body=null,e.prototype.get_message_by_id_body=null,e.prototype.messages_in_conversation_body=null,e.prototype.get_messages_checkinfo_in_conversation_body=null,e.prototype.has_new_message_notify=null,e.prototype.has_new_p2p_message_notify=null,e.prototype.get_conversations_checkinfo_body=null,e.prototype.create_conversation_v2_body=null,e.prototype.get_conversation_info_list_v2_body=null,e.prototype.conversation_participants_body=null,e.prototype.conversation_add_participants_body=null,e.prototype.mget_conversation_participants_body=null,e.prototype.modify_message_property_body=null,e.prototype.get_conversation_core_info_body=null,e.prototype.set_conversation_setting_info_body=null,e.prototype.upsert_conversation_setting_ext_info_body=null,e.prototype.get_stranger_conversation_body=null,e.prototype.get_stranger_messages_body=null,e.prototype.participants_read_index_body=null,e.prototype.participants_min_index_body=null,e.prototype.batch_get_conversation_participants_readindex=null,e.prototype.get_ticket_body=null,e.prototype.get_conversation_list_body=null,e.prototype.broadcast_recv_message_body=null,e.prototype.get_configs_body=null,e.prototype.unread_count_report_body=null,e.prototype.message_by_init=null,e.prototype.get_user_message=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.send_message_body&&Object.hasOwnProperty.call(e,"send_message_body")&&_.im_proto.SendMessageResponseBody.encode(e.send_message_body,t.uint32(802).fork()).ldelim(),null!=e.messages_per_user_body&&Object.hasOwnProperty.call(e,"messages_per_user_body")&&_.im_proto.MessagesPerUserResponseBody.encode(e.messages_per_user_body,t.uint32(1602).fork()).ldelim(),null!=e.messages_per_user_init_v2_body&&Object.hasOwnProperty.call(e,"messages_per_user_init_v2_body")&&_.im_proto.MessagesPerUserInitV2ResponseBody.encode(e.messages_per_user_init_v2_body,t.uint32(1626).fork()).ldelim(),null!=e.get_message_by_id_body&&Object.hasOwnProperty.call(e,"get_message_by_id_body")&&_.im_proto.GetMessageByIdResponseBody.encode(e.get_message_by_id_body,t.uint32(1690).fork()).ldelim(),null!=e.messages_in_conversation_body&&Object.hasOwnProperty.call(e,"messages_in_conversation_body")&&_.im_proto.MessagesInConversationResponseBody.encode(e.messages_in_conversation_body,t.uint32(2410).fork()).ldelim(),null!=e.get_messages_checkinfo_in_conversation_body&&Object.hasOwnProperty.call(e,"get_messages_checkinfo_in_conversation_body")&&_.im_proto.GetMessagesCheckInfoInConversationResponseBody.encode(e.get_messages_checkinfo_in_conversation_body,t.uint32(2418).fork()).ldelim(),null!=e.has_new_message_notify&&Object.hasOwnProperty.call(e,"has_new_message_notify")&&_.im_proto.NewMessageNotify.encode(e.has_new_message_notify,t.uint32(4002).fork()).ldelim(),null!=e.has_new_p2p_message_notify&&Object.hasOwnProperty.call(e,"has_new_p2p_message_notify")&&_.im_proto.NewP2PMessageNotify.encode(e.has_new_p2p_message_notify,t.uint32(4034).fork()).ldelim(),null!=e.conversation_participants_body&&Object.hasOwnProperty.call(e,"conversation_participants_body")&&_.im_proto.ConversationParticipantsListResponseBody.encode(e.conversation_participants_body,t.uint32(4842).fork()).ldelim(),null!=e.create_conversation_v2_body&&Object.hasOwnProperty.call(e,"create_conversation_v2_body")&&_.im_proto.CreateConversationV2ResponseBody.encode(e.create_conversation_v2_body,t.uint32(4874).fork()).ldelim(),null!=e.get_conversation_info_list_v2_body&&Object.hasOwnProperty.call(e,"get_conversation_info_list_v2_body")&&_.im_proto.GetConversationInfoListV2ResponseBody.encode(e.get_conversation_info_list_v2_body,t.uint32(4882).fork()).ldelim(),null!=e.get_conversations_checkinfo_body&&Object.hasOwnProperty.call(e,"get_conversations_checkinfo_body")&&_.im_proto.GetConversationsCheckInfoResponseBody.encode(e.get_conversations_checkinfo_body,t.uint32(4922).fork()).ldelim(),null!=e.conversation_add_participants_body&&Object.hasOwnProperty.call(e,"conversation_add_participants_body")&&_.im_proto.ConversationAddParticipantsResponseBody.encode(e.conversation_add_participants_body,t.uint32(5202).fork()).ldelim(),null!=e.mget_conversation_participants_body&&Object.hasOwnProperty.call(e,"mget_conversation_participants_body")&&_.im_proto.MgetConversationParticipantsResponseBody.encode(e.mget_conversation_participants_body,t.uint32(5234).fork()).ldelim(),null!=e.modify_message_property_body&&Object.hasOwnProperty.call(e,"modify_message_property_body")&&_.im_proto.ModifyMessagePropertyResponseBody.encode(e.modify_message_property_body,t.uint32(5642).fork()).ldelim(),null!=e.get_conversation_core_info_body&&Object.hasOwnProperty.call(e,"get_conversation_core_info_body")&&_.im_proto.GetConversationCoreInfoResponseBody.encode(e.get_conversation_core_info_body,t.uint32(7210).fork()).ldelim(),null!=e.set_conversation_setting_info_body&&Object.hasOwnProperty.call(e,"set_conversation_setting_info_body")&&_.im_proto.SetConversationSettingInfoResponseBody.encode(e.set_conversation_setting_info_body,t.uint32(7370).fork()).ldelim(),null!=e.upsert_conversation_setting_ext_info_body&&Object.hasOwnProperty.call(e,"upsert_conversation_setting_ext_info_body")&&_.im_proto.UpsertConversationSettingExtInfoResponseBody.encode(e.upsert_conversation_setting_ext_info_body,t.uint32(7378).fork()).ldelim(),null!=e.get_stranger_conversation_body&&Object.hasOwnProperty.call(e,"get_stranger_conversation_body")&&_.im_proto.GetStrangerConversationListResponseBody.encode(e.get_stranger_conversation_body,t.uint32(8002).fork()).ldelim(),null!=e.get_stranger_messages_body&&Object.hasOwnProperty.call(e,"get_stranger_messages_body")&&_.im_proto.GetStrangerMessagesResponseBody.encode(e.get_stranger_messages_body,t.uint32(8010).fork()).ldelim(),null!=e.participants_read_index_body&&Object.hasOwnProperty.call(e,"participants_read_index_body")&&_.im_proto.GetConversationParticipantsReadIndexV3ResponseBody.encode(e.participants_read_index_body,t.uint32(16002).fork()).ldelim(),null!=e.participants_min_index_body&&Object.hasOwnProperty.call(e,"participants_min_index_body")&&_.im_proto.GetConversationParticipantsMinIndexV3ResponseBody.encode(e.participants_min_index_body,t.uint32(16010).fork()).ldelim(),null!=e.get_ticket_body&&Object.hasOwnProperty.call(e,"get_ticket_body")&&_.im_proto.GetTicketResponseBody.encode(e.get_ticket_body,t.uint32(16042).fork()).ldelim(),null!=e.get_conversation_list_body&&Object.hasOwnProperty.call(e,"get_conversation_list_body")&&_.im_proto.GetUserConversationListResponseBody.encode(e.get_conversation_list_body,t.uint32(16050).fork()).ldelim(),null!=e.broadcast_recv_message_body&&Object.hasOwnProperty.call(e,"broadcast_recv_message_body")&&_.im_proto.BroadcastRecvMessageResponseBody.encode(e.broadcast_recv_message_body,t.uint32(16066).fork()).ldelim(),null!=e.get_configs_body&&Object.hasOwnProperty.call(e,"get_configs_body")&&_.im_proto.GetConfigsResponseBody.encode(e.get_configs_body,t.uint32(16138).fork()).ldelim(),null!=e.unread_count_report_body&&Object.hasOwnProperty.call(e,"unread_count_report_body")&&_.im_proto.UnReadCountReportResponseBody.encode(e.unread_count_report_body,t.uint32(16146).fork()).ldelim(),null!=e.batch_get_conversation_participants_readindex&&Object.hasOwnProperty.call(e,"batch_get_conversation_participants_readindex")&&_.im_proto.BatchGetConversationParticipantsReadIndexResponseBody.encode(e.batch_get_conversation_participants_readindex,t.uint32(16306).fork()).ldelim(),null!=e.message_by_init&&Object.hasOwnProperty.call(e,"message_by_init")&&_.im_proto.MessageByInitResponseBody.encode(e.message_by_init,t.uint32(16346).fork()).ldelim(),null!=e.get_user_message&&Object.hasOwnProperty.call(e,"get_user_message")&&_.im_proto.GetUserMessageResponseBody.encode(e.get_user_message,t.uint32(16386).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 100:o.send_message_body=_.im_proto.SendMessageResponseBody.decode(e,e.uint32());break;case 200:o.messages_per_user_body=_.im_proto.MessagesPerUserResponseBody.decode(e,e.uint32());break;case 203:o.messages_per_user_init_v2_body=_.im_proto.MessagesPerUserInitV2ResponseBody.decode(e,e.uint32());break;case 211:o.get_message_by_id_body=_.im_proto.GetMessageByIdResponseBody.decode(e,e.uint32());break;case 301:o.messages_in_conversation_body=_.im_proto.MessagesInConversationResponseBody.decode(e,e.uint32());break;case 302:o.get_messages_checkinfo_in_conversation_body=_.im_proto.GetMessagesCheckInfoInConversationResponseBody.decode(e,e.uint32());break;case 500:o.has_new_message_notify=_.im_proto.NewMessageNotify.decode(e,e.uint32());break;case 504:o.has_new_p2p_message_notify=_.im_proto.NewP2PMessageNotify.decode(e,e.uint32());break;case 615:o.get_conversations_checkinfo_body=_.im_proto.GetConversationsCheckInfoResponseBody.decode(e,e.uint32());break;case 609:o.create_conversation_v2_body=_.im_proto.CreateConversationV2ResponseBody.decode(e,e.uint32());break;case 610:o.get_conversation_info_list_v2_body=_.im_proto.GetConversationInfoListV2ResponseBody.decode(e,e.uint32());break;case 605:o.conversation_participants_body=_.im_proto.ConversationParticipantsListResponseBody.decode(e,e.uint32());break;case 650:o.conversation_add_participants_body=_.im_proto.ConversationAddParticipantsResponseBody.decode(e,e.uint32());break;case 654:o.mget_conversation_participants_body=_.im_proto.MgetConversationParticipantsResponseBody.decode(e,e.uint32());break;case 705:o.modify_message_property_body=_.im_proto.ModifyMessagePropertyResponseBody.decode(e,e.uint32());break;case 901:o.get_conversation_core_info_body=_.im_proto.GetConversationCoreInfoResponseBody.decode(e,e.uint32());break;case 921:o.set_conversation_setting_info_body=_.im_proto.SetConversationSettingInfoResponseBody.decode(e,e.uint32());break;case 922:o.upsert_conversation_setting_ext_info_body=_.im_proto.UpsertConversationSettingExtInfoResponseBody.decode(e,e.uint32());break;case 1e3:o.get_stranger_conversation_body=_.im_proto.GetStrangerConversationListResponseBody.decode(e,e.uint32());break;case 1001:o.get_stranger_messages_body=_.im_proto.GetStrangerMessagesResponseBody.decode(e,e.uint32());break;case 2e3:o.participants_read_index_body=_.im_proto.GetConversationParticipantsReadIndexV3ResponseBody.decode(e,e.uint32());break;case 2001:o.participants_min_index_body=_.im_proto.GetConversationParticipantsMinIndexV3ResponseBody.decode(e,e.uint32());break;case 2038:o.batch_get_conversation_participants_readindex=_.im_proto.BatchGetConversationParticipantsReadIndexResponseBody.decode(e,e.uint32());break;case 2005:o.get_ticket_body=_.im_proto.GetTicketResponseBody.decode(e,e.uint32());break;case 2006:o.get_conversation_list_body=_.im_proto.GetUserConversationListResponseBody.decode(e,e.uint32());break;case 2008:o.broadcast_recv_message_body=_.im_proto.BroadcastRecvMessageResponseBody.decode(e,e.uint32());break;case 2017:o.get_configs_body=_.im_proto.GetConfigsResponseBody.decode(e,e.uint32());break;case 2018:o.unread_count_report_body=_.im_proto.UnReadCountReportResponseBody.decode(e,e.uint32());break;case 2043:o.message_by_init=_.im_proto.MessageByInitResponseBody.decode(e,e.uint32());break;case 2048:o.get_user_message=_.im_proto.GetUserMessageResponseBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.Response=function(){function e(e){if(this.headers={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cmd=0,e.prototype.sequence_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.status_code=0,e.prototype.error_desc="",e.prototype.inbox_type=0,e.prototype.body=null,e.prototype.log_id="",e.prototype.headers=c.emptyObject,e.prototype.start_time_stamp=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.request_arrived_time=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.server_execution_end_time=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.pdes_key="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.cmd&&Object.hasOwnProperty.call(e,"cmd")&&t.uint32(8).int32(e.cmd),null!=e.sequence_id&&Object.hasOwnProperty.call(e,"sequence_id")&&t.uint32(16).int64(e.sequence_id),null!=e.status_code&&Object.hasOwnProperty.call(e,"status_code")&&t.uint32(24).int32(e.status_code),null!=e.error_desc&&Object.hasOwnProperty.call(e,"error_desc")&&t.uint32(34).string(e.error_desc),null!=e.inbox_type&&Object.hasOwnProperty.call(e,"inbox_type")&&t.uint32(40).int32(e.inbox_type),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&_.im_proto.ResponseBody.encode(e.body,t.uint32(50).fork()).ldelim(),null!=e.log_id&&Object.hasOwnProperty.call(e,"log_id")&&t.uint32(58).string(e.log_id),null!=e.headers&&Object.hasOwnProperty.call(e,"headers"))for(var n=Object.keys(e.headers),o=0;o<n.length;++o)t.uint32(66).fork().uint32(10).string(n[o]).uint32(18).string(e.headers[n[o]]).ldelim();return null!=e.start_time_stamp&&Object.hasOwnProperty.call(e,"start_time_stamp")&&t.uint32(72).int64(e.start_time_stamp),null!=e.request_arrived_time&&Object.hasOwnProperty.call(e,"request_arrived_time")&&t.uint32(80).int64(e.request_arrived_time),null!=e.server_execution_end_time&&Object.hasOwnProperty.call(e,"server_execution_end_time")&&t.uint32(88).int64(e.server_execution_end_time),null!=e.pdes_key&&Object.hasOwnProperty.call(e,"pdes_key")&&t.uint32(882).string(e.pdes_key),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.Response;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.cmd=e.int32();break;case 2:i.sequence_id=e.int64();break;case 3:i.status_code=e.int32();break;case 4:i.error_desc=e.string();break;case 5:i.inbox_type=e.int32();break;case 6:i.body=_.im_proto.ResponseBody.decode(e,e.uint32());break;case 7:i.log_id=e.string();break;case 8:i.headers===c.emptyObject&&(i.headers={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.headers[n]=o;break;case 9:i.start_time_stamp=e.int64();break;case 10:i.request_arrived_time=e.int64();break;case 11:i.server_execution_end_time=e.int64();break;case 110:i.pdes_key=e.string();break;default:e.skipType(7&a)}}return i},e}(),e.BroadcastRecvMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_id="",e.prototype.conversation_type=0,e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.limit=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.reverse=!1,e.prototype.pull_type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(10).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(16).int32(e.conversation_type),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(24).int64(e.conversation_short_id),null!=e.cursor&&Object.hasOwnProperty.call(e,"cursor")&&t.uint32(32).int64(e.cursor),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(40).int64(e.limit),null!=e.reverse&&Object.hasOwnProperty.call(e,"reverse")&&t.uint32(48).bool(e.reverse),null!=e.pull_type&&Object.hasOwnProperty.call(e,"pull_type")&&t.uint32(56).int32(e.pull_type),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.BroadcastRecvMessageRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_short_id=e.int64();break;case 4:o.cursor=e.int64();break;case 5:o.limit=e.int64();break;case 6:o.reverse=e.bool();break;case 7:o.pull_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.BroadcastRecvMessageResponseBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=c.emptyArray,e.prototype.has_more=!1,e.prototype.next_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.MessageBody.encode(e.messages[n],t.uint32(10).fork()).ldelim();return null!=e.has_more&&Object.hasOwnProperty.call(e,"has_more")&&t.uint32(16).bool(e.has_more),null!=e.next_cursor&&Object.hasOwnProperty.call(e,"next_cursor")&&t.uint32(24).int64(e.next_cursor),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.BroadcastRecvMessageResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_cursor=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.NetworkType=function(){let e={},t=Object.create(e);return t[e[0]="UNKNOWN"]=0,t[e[1]="WIFI"]=1,t[e[2]="MOBILE_2G"]=2,t[e[3]="MOBILE_3G"]=3,t[e[4]="MOBILE_4G"]=4,t[e[5]="MOBILE_5G"]=5,t}(),e.MsgReportType=function(){let e={},t=Object.create(e);return t[e[0]="NOT_USE"]=0,t[e[1]="MSG_RECEIVE_BY_WS"]=1,t[e[2]="MSG_RECEIVE_BY_USER"]=2,t[e[3]="MSG_RECEIVE_BY_INIT"]=3,t[e[4]="MSG_RECEIVE_BY_LOAD_HISTORY"]=4,t[e[5]="MSG_RECEIVE_BY_LOAD_NEWER"]=5,t[e[6]="MSG_RECEIVE_BY_CHECK_MSG_V1"]=6,t[e[7]="MSG_RECEIVE_BY_CHECK_MSG_V2"]=7,t[e[8]="MSG_RECEIVE_BY_STRANGER"]=8,t[e[9]="MSG_SHOW"]=9,t}(),e.ClientACKRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.start_time_stamp=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.cmd=0,e.prototype.network_type=0,e.prototype.logid="",e.prototype.client_time_stamp=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.server_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),t.uint32(8).int64(e.start_time_stamp),t.uint32(16).int32(e.cmd),null!=e.network_type&&Object.hasOwnProperty.call(e,"network_type")&&t.uint32(24).int32(e.network_type),null!=e.logid&&Object.hasOwnProperty.call(e,"logid")&&t.uint32(34).string(e.logid),null!=e.client_time_stamp&&Object.hasOwnProperty.call(e,"client_time_stamp")&&t.uint32(40).int64(e.client_time_stamp),null!=e.server_message_id&&Object.hasOwnProperty.call(e,"server_message_id")&&t.uint32(48).int64(e.server_message_id),t.uint32(56).int32(e.type),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ClientACKRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.start_time_stamp=e.int64();break;case 2:o.cmd=e.int32();break;case 3:o.network_type=e.int32();break;case 4:o.logid=e.string();break;case 5:o.client_time_stamp=e.int64();break;case 6:o.server_message_id=e.int64();break;case 7:o.type=e.int32();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("start_time_stamp"))throw c.ProtocolError("missing required 'start_time_stamp'",{instance:o});if(!o.hasOwnProperty("cmd"))throw c.ProtocolError("missing required 'cmd'",{instance:o});if(!o.hasOwnProperty("type"))throw c.ProtocolError("missing required 'type'",{instance:o});return o},e}(),e.ClientBatchACKRequestBody=function(){function e(e){if(this.ack_list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.ack_list=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.ack_list&&e.ack_list.length)for(var n=0;n<e.ack_list.length;++n)_.im_proto.ClientACKRequestBody.encode(e.ack_list[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ClientBatchACKRequestBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.ack_list&&o.ack_list.length)&&(o.ack_list=[]),o.ack_list.push(_.im_proto.ClientACKRequestBody.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.VoipMode=function(){let e={},t=Object.create(e);return t[e[0]="VOIP_MODE_DOUBLE"]=0,t[e[1]="VOIP_MODE_MULTIPLAYER"]=1,t}(),e.VoipStatusCode=function(){let e={},t=Object.create(e);return t[e[0]="SUCCESS"]=0,t[e[4]="VOIP_PARAMS_ERROR"]=4,t[e[18]="VOIP_STATUS_ERROR"]=18,t[e[19]="VOIP_CANCEL_ERROR"]=19,t[e[20]="VOIP_OTHER_RESPONSE_ERROR"]=20,t[e[21]="VOIP_CALLBACK_ERROR"]=21,t}(),e.VoipStatus=function(){let e={},t=Object.create(e);return t[e[0]="IDLE"]=0,t[e[1]="CALLING"]=1,t[e[2]="RINGING"]=2,t[e[3]="ACCEPTED"]=3,t[e[4]="ONTHECALL"]=4,t[e[101]="TERMINATED"]=101,t[e[102]="OCCUPIED"]=102,t[e[103]="REFUSED"]=103,t[e[104]="CANCELLED"]=104,t[e[105]="UNAVAILABLE"]=105,t[e[106]="RTCERROR"]=106,t[e[107]="RTC_ENGINE_MISMATCH"]=107,t}(),e.VoipType=function(){let e={},t=Object.create(e);return t[e[0]="VOIP_TYPE_NOT_USED"]=0,t[e[1]="VOIP_TYPE_ALL"]=1,t[e[2]="VOIP_TYPE_VIDEOONLY"]=2,t[e[3]="VOIP_TYPE_AUDIOONLY"]=3,t}(),e.ChannelStatus=function(){let e={},t=Object.create(e);return t[e[0]="CHANNEL_STATUS_NOT_USED"]=0,t[e[1]="ONLINE"]=1,t[e[2]="OFFLINE"]=2,t}(),e.ClientMetricType=function(){let e={},t=Object.create(e);return t[e[0]="COUNTER"]=0,t[e[1]="TIMER"]=1,t}(),e.GetConfigsRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConfigsRequestBody;e.pos<n;){var r=e.uint32();e.skipType(7&r)}return o},e}(),e.GetConfigsResponseBody=function(){function e(e){if(this.configs=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.version=0,e.prototype.configs=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(8).int32(e.version),null!=e.configs&&e.configs.length)for(var n=0;n<e.configs.length;++n)_.im_proto.Config.encode(e.configs[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConfigsResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.version=e.int32();break;case 2:!(o.configs&&o.configs.length)&&(o.configs=[]),o.configs.push(_.im_proto.Config.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.Config=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conf_name="",e.prototype.conf_value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conf_name&&Object.hasOwnProperty.call(e,"conf_name")&&t.uint32(10).string(e.conf_name),null!=e.conf_value&&Object.hasOwnProperty.call(e,"conf_value")&&t.uint32(18).string(e.conf_value),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.Config;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conf_name=e.string();break;case 2:o.conf_value=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.ConvCountReport=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conv_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.unread_count=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_type=1,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conv_short_id&&Object.hasOwnProperty.call(e,"conv_short_id")&&t.uint32(8).int64(e.conv_short_id),null!=e.unread_count&&Object.hasOwnProperty.call(e,"unread_count")&&t.uint32(16).int64(e.unread_count),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConvCountReport;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conv_short_id=e.int64();break;case 2:o.unread_count=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.UnReadCountReportRequestBody=function(){function e(e){if(this.conv_unread_count=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.total_unread_count=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conv_unread_count=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.total_unread_count&&Object.hasOwnProperty.call(e,"total_unread_count")&&t.uint32(8).int64(e.total_unread_count),null!=e.conv_unread_count&&e.conv_unread_count.length)for(var n=0;n<e.conv_unread_count.length;++n)_.im_proto.ConvCountReport.encode(e.conv_unread_count[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.UnReadCountReportRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.total_unread_count=e.int64();break;case 2:!(o.conv_unread_count&&o.conv_unread_count.length)&&(o.conv_unread_count=[]),o.conv_unread_count.push(_.im_proto.ConvCountReport.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.UnReadCountReportResponseBody=function(){function e(e){if(this.failed_conv_list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.set_total_status=!1,e.prototype.failed_conv_list=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).bool(e.set_total_status),null!=e.failed_conv_list&&e.failed_conv_list.length)for(var n=0;n<e.failed_conv_list.length;++n)t.uint32(16).int64(e.failed_conv_list[n]);return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.UnReadCountReportResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.set_total_status=e.bool();break;case 2:if(!(o.failed_conv_list&&o.failed_conv_list.length)&&(o.failed_conv_list=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.failed_conv_list.push(e.int64())}else o.failed_conv_list.push(e.int64());break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("set_total_status"))throw c.ProtocolError("missing required 'set_total_status'",{instance:o});return o},e}(),e.BlockStatus=function(){let e={},t=Object.create(e);return t[e[0]="UNBLOCK"]=0,t[e[1]="BLOCK"]=1,t}(),e.GetMessagesCheckInfoInConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_id="",e.prototype.conversation_type=0,e.prototype.cursor_reverse_begin=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.cursor_reverse_end=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.expect_msg_total_count=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(16).int64(e.conversation_short_id),null!=e.cursor_reverse_begin&&Object.hasOwnProperty.call(e,"cursor_reverse_begin")&&t.uint32(24).int64(e.cursor_reverse_begin),null!=e.expect_msg_total_count&&Object.hasOwnProperty.call(e,"expect_msg_total_count")&&t.uint32(32).int32(e.expect_msg_total_count),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(42).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(48).int32(e.conversation_type),null!=e.cursor_reverse_end&&Object.hasOwnProperty.call(e,"cursor_reverse_end")&&t.uint32(56).int64(e.cursor_reverse_end),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetMessagesCheckInfoInConversationRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 2:o.conversation_short_id=e.int64();break;case 5:o.conversation_id=e.string();break;case 6:o.conversation_type=e.int32();break;case 3:o.cursor_reverse_begin=e.int64();break;case 7:o.cursor_reverse_end=e.int64();break;case 4:o.expect_msg_total_count=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.MessagesCheckInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.head_msg_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.tail_msg_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.msg_count=0,e.prototype.indexes_checksum=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.head_msg_index&&Object.hasOwnProperty.call(e,"head_msg_index")&&t.uint32(8).int64(e.head_msg_index),null!=e.tail_msg_index&&Object.hasOwnProperty.call(e,"tail_msg_index")&&t.uint32(16).int64(e.tail_msg_index),null!=e.msg_count&&Object.hasOwnProperty.call(e,"msg_count")&&t.uint32(24).int32(e.msg_count),null!=e.indexes_checksum&&Object.hasOwnProperty.call(e,"indexes_checksum")&&t.uint32(32).uint32(e.indexes_checksum),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessagesCheckInfo;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.head_msg_index=e.int64();break;case 2:o.tail_msg_index=e.int64();break;case 3:o.msg_count=e.int32();break;case 4:o.indexes_checksum=e.uint32();break;default:e.skipType(7&r)}}return o},e}(),e.GetMessagesCheckInfoInConversationResponseBody=function(){function e(e){if(this.msgs_checkinfo_list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.msgs_checkinfo_list=c.emptyArray,e.prototype.real_msg_total_count=0,e.prototype.cursor_reverse_next=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.msgs_checkinfo_list&&e.msgs_checkinfo_list.length)for(var n=0;n<e.msgs_checkinfo_list.length;++n)_.im_proto.MessagesCheckInfo.encode(e.msgs_checkinfo_list[n],t.uint32(10).fork()).ldelim();return null!=e.real_msg_total_count&&Object.hasOwnProperty.call(e,"real_msg_total_count")&&t.uint32(16).int32(e.real_msg_total_count),null!=e.cursor_reverse_next&&Object.hasOwnProperty.call(e,"cursor_reverse_next")&&t.uint32(32).int64(e.cursor_reverse_next),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetMessagesCheckInfoInConversationResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.msgs_checkinfo_list&&o.msgs_checkinfo_list.length)&&(o.msgs_checkinfo_list=[]),o.msgs_checkinfo_list.push(_.im_proto.MessagesCheckInfo.decode(e,e.uint32()));break;case 2:o.real_msg_total_count=e.int32();break;case 4:o.cursor_reverse_next=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationCheckInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.conversation_id="",e.prototype.conversation_type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.conversation_short_id&&Object.hasOwnProperty.call(e,"conversation_short_id")&&t.uint32(8).int64(e.conversation_short_id),null!=e.conversation_id&&Object.hasOwnProperty.call(e,"conversation_id")&&t.uint32(18).string(e.conversation_id),null!=e.conversation_type&&Object.hasOwnProperty.call(e,"conversation_type")&&t.uint32(24).int32(e.conversation_type),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationCheckInfo;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.conversation_id=e.string();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationsCheckInfoResponseBody=function(){function e(e){if(this.conversation_checkinfo_list=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_checkinfo_list=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.conversation_checkinfo_list&&e.conversation_checkinfo_list.length)for(var n=0;n<e.conversation_checkinfo_list.length;++n)_.im_proto.ConversationCheckInfo.encode(e.conversation_checkinfo_list[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetConversationsCheckInfoResponseBody;e.pos<n;){var r=e.uint32();if(r>>>3==1)!(o.conversation_checkinfo_list&&o.conversation_checkinfo_list.length)&&(o.conversation_checkinfo_list=[]),o.conversation_checkinfo_list.push(_.im_proto.ConversationCheckInfo.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.ActionType=function(){let e={},t=Object.create(e);return t[e[0]="UNKNOWN_ACTION"]=0,t[e[1]="FAVORITE"]=1,t[e[2]="PIN"]=2,t[e[3]="UNREAD"]=3,t[e[4]="CONV_TOP_MSG"]=4,t}(),e.MessageByInitRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.page=0,e.prototype.conv_limit=0,e.prototype.msg_limit=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(8).int64(e.version),null!=e.page&&Object.hasOwnProperty.call(e,"page")&&t.uint32(16).int32(e.page),null!=e.conv_limit&&Object.hasOwnProperty.call(e,"conv_limit")&&t.uint32(24).int32(e.conv_limit),null!=e.msg_limit&&Object.hasOwnProperty.call(e,"msg_limit")&&t.uint32(32).int32(e.msg_limit),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessageByInitRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.version=e.int64();break;case 2:o.page=e.int32();break;case 3:o.conv_limit=e.int32();break;case 4:o.msg_limit=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.MessageByInitResponseBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=c.emptyArray,e.prototype.has_more=!1,e.prototype.next_init_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.user_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.cmd_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.readconv_version=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.ConversationMessage.encode(e.messages[n],t.uint32(10).fork()).ldelim();return t.uint32(16).bool(e.has_more),t.uint32(24).int64(e.next_init_version),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(32).int64(e.version),null!=e.user_cursor&&Object.hasOwnProperty.call(e,"user_cursor")&&t.uint32(40).int64(e.user_cursor),null!=e.cmd_index&&Object.hasOwnProperty.call(e,"cmd_index")&&t.uint32(48).int64(e.cmd_index),null!=e.readconv_version&&Object.hasOwnProperty.call(e,"readconv_version")&&t.uint32(56).int64(e.readconv_version),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.MessageByInitResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.ConversationMessage.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_init_version=e.int64();break;case 4:o.version=e.int64();break;case 5:o.user_cursor=e.int64();break;case 6:o.cmd_index=e.int64();break;case 7:o.readconv_version=e.int64();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("has_more"))throw c.ProtocolError("missing required 'has_more'",{instance:o});if(!o.hasOwnProperty("next_init_version"))throw c.ProtocolError("missing required 'next_init_version'",{instance:o});return o},e}(),e.ConversationMessage=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversations=null,e.prototype.messages=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),_.im_proto.ConversationInfoV2.encode(e.conversations,t.uint32(10).fork()).ldelim(),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.MessageBody.encode(e.messages[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationMessage;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversations=_.im_proto.ConversationInfoV2.decode(e,e.uint32());break;case 2:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("conversations"))throw c.ProtocolError("missing required 'conversations'",{instance:o});return o},e}(),e.MessageStatus=function(){let e={},t=Object.create(e);return t[e[0]="AVAILABLE"]=0,t[e[1]="NOT_EXIST"]=1,t[e[2]="INVISIBLE"]=2,t[e[3]="RECALLED"]=3,t[e[4]="DELETED"]=4,t}(),e.BatchUnmarkMessageResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.server_message_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_code=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.check_message="",e.prototype.status=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.server_message_id&&Object.hasOwnProperty.call(e,"server_message_id")&&t.uint32(8).int64(e.server_message_id),null!=e.check_code&&Object.hasOwnProperty.call(e,"check_code")&&t.uint32(16).int64(e.check_code),null!=e.check_message&&Object.hasOwnProperty.call(e,"check_message")&&t.uint32(26).string(e.check_message),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(32).int32(e.status),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.BatchUnmarkMessageResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.server_message_id=e.int64();break;case 2:o.check_code=e.int64();break;case 3:o.check_message=e.string();break;case 4:o.status=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.TagMetaInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.tag_name="",e.prototype.status=0,e.prototype.ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.tag_id),t.uint32(18).string(e.tag_name),t.uint32(24).int32(e.status),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(34).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.TagMetaInfo;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.tag_id=e.int64();break;case 2:i.tag_name=e.string();break;case 3:i.status=e.int32();break;case 4:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("tag_id"))throw c.ProtocolError("missing required 'tag_id'",{instance:i});if(!i.hasOwnProperty("tag_name"))throw c.ProtocolError("missing required 'tag_name'",{instance:i});if(!i.hasOwnProperty("status"))throw c.ProtocolError("missing required 'status'",{instance:i});return i},e}(),e.SetConversationTagResponseBody=function(){function e(e){if(this.failed_conv_short_ids=[],this.settings=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.failed_conv_short_ids=c.emptyArray,e.prototype.settings=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.failed_conv_short_ids&&e.failed_conv_short_ids.length)for(var n=0;n<e.failed_conv_short_ids.length;++n)t.uint32(8).int64(e.failed_conv_short_ids[n]);if(null!=e.settings&&e.settings.length)for(var n=0;n<e.settings.length;++n)_.im_proto.ConversationSettingInfo.encode(e.settings[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.SetConversationTagResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:if(!(o.failed_conv_short_ids&&o.failed_conv_short_ids.length)&&(o.failed_conv_short_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.failed_conv_short_ids.push(e.int64())}else o.failed_conv_short_ids.push(e.int64());break;case 2:!(o.settings&&o.settings.length)&&(o.settings=[]),o.settings.push(_.im_proto.ConversationSettingInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.GetUserMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.cmd_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.stranger_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.read_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.source="",e.prototype.consult_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.notify_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.get_recent_conv_and_msg=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(8).int64(e.version),null!=e.cmd_index&&Object.hasOwnProperty.call(e,"cmd_index")&&t.uint32(16).int64(e.cmd_index),null!=e.stranger_version&&Object.hasOwnProperty.call(e,"stranger_version")&&t.uint32(24).int64(e.stranger_version),null!=e.read_version&&Object.hasOwnProperty.call(e,"read_version")&&t.uint32(32).int64(e.read_version),null!=e.source&&Object.hasOwnProperty.call(e,"source")&&t.uint32(42).string(e.source),null!=e.consult_version&&Object.hasOwnProperty.call(e,"consult_version")&&t.uint32(48).int64(e.consult_version),null!=e.notify_version&&Object.hasOwnProperty.call(e,"notify_version")&&t.uint32(136).int64(e.notify_version),null!=e.get_recent_conv_and_msg&&Object.hasOwnProperty.call(e,"get_recent_conv_and_msg")&&_.im_proto.GetRecentConvAndMsgRequestBody.encode(e.get_recent_conv_and_msg,t.uint32(146).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetUserMessageRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.version=e.int64();break;case 2:o.cmd_index=e.int64();break;case 3:o.stranger_version=e.int64();break;case 4:o.read_version=e.int64();break;case 5:o.source=e.string();break;case 6:o.consult_version=e.int64();break;case 17:o.notify_version=e.int64();break;case 18:o.get_recent_conv_and_msg=_.im_proto.GetRecentConvAndMsgRequestBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.GetRecentConvAndMsgRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.left_side=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.right_side=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.direction=1,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.left_side&&Object.hasOwnProperty.call(e,"left_side")&&t.uint32(8).int64(e.left_side),null!=e.right_side&&Object.hasOwnProperty.call(e,"right_side")&&t.uint32(16).int64(e.right_side),null!=e.direction&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(24).int32(e.direction),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetRecentConvAndMsgRequestBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.left_side=e.int64();break;case 2:o.right_side=e.int64();break;case 3:o.direction=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetUserMessageResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=null,e.prototype.cmd_messages=null,e.prototype.has_stranger_message=!1,e.prototype.read_info=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.messages&&Object.hasOwnProperty.call(e,"messages")&&_.im_proto.GetRecentMessageRespBody.encode(e.messages,t.uint32(10).fork()).ldelim(),null!=e.cmd_messages&&Object.hasOwnProperty.call(e,"cmd_messages")&&_.im_proto.GetCmdMessageRespBody.encode(e.cmd_messages,t.uint32(18).fork()).ldelim(),null!=e.has_stranger_message&&Object.hasOwnProperty.call(e,"has_stranger_message")&&t.uint32(24).bool(e.has_stranger_message),null!=e.read_info&&Object.hasOwnProperty.call(e,"read_info")&&_.im_proto.ConversationReadInfoRespBody.encode(e.read_info,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetUserMessageResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.messages=_.im_proto.GetRecentMessageRespBody.decode(e,e.uint32());break;case 2:o.cmd_messages=_.im_proto.GetCmdMessageRespBody.decode(e,e.uint32());break;case 3:o.has_stranger_message=e.bool();break;case 4:o.read_info=_.im_proto.ConversationReadInfoRespBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.GetRecentMessageRespBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.next_conversation_version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.messages=c.emptyArray,e.prototype.has_more=!1,e.prototype.range=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.next_conversation_version),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.ConversationRecentMessage.encode(e.messages[n],t.uint32(18).fork()).ldelim();return t.uint32(24).bool(e.has_more),null!=e.range&&Object.hasOwnProperty.call(e,"range")&&_.im_proto.GetRecentMsgVersionRange.encode(e.range,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetRecentMessageRespBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.next_conversation_version=e.int64();break;case 2:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.ConversationRecentMessage.decode(e,e.uint32()));break;case 3:o.has_more=e.bool();break;case 4:o.range=_.im_proto.GetRecentMsgVersionRange.decode(e,e.uint32());break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("next_conversation_version"))throw c.ProtocolError("missing required 'next_conversation_version'",{instance:o});if(!o.hasOwnProperty("has_more"))throw c.ProtocolError("missing required 'has_more'",{instance:o});return o},e}(),e.GetCmdMessageRespBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=c.emptyArray,e.prototype.has_more=!1,e.prototype.next_cmd_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.next_user_message_cursor=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.readconv_version=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.MessageBody.encode(e.messages[n],t.uint32(10).fork()).ldelim();return t.uint32(16).bool(e.has_more),null!=e.next_cmd_index&&Object.hasOwnProperty.call(e,"next_cmd_index")&&t.uint32(24).int64(e.next_cmd_index),null!=e.next_user_message_cursor&&Object.hasOwnProperty.call(e,"next_user_message_cursor")&&t.uint32(32).int64(e.next_user_message_cursor),null!=e.readconv_version&&Object.hasOwnProperty.call(e,"readconv_version")&&t.uint32(40).int64(e.readconv_version),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetCmdMessageRespBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_cmd_index=e.int64();break;case 4:o.next_user_message_cursor=e.int64();break;case 5:o.readconv_version=e.int64();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("has_more"))throw c.ProtocolError("missing required 'has_more'",{instance:o});return o},e}(),e.ConversationReadInfoRespBody=function(){function e(e){if(this.read_info=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.read_info=c.emptyArray,e.prototype.has_more=!1,e.prototype.next_version=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.read_info&&e.read_info.length)for(var n=0;n<e.read_info.length;++n)_.im_proto.ConversationReadInfo.encode(e.read_info[n],t.uint32(10).fork()).ldelim();return t.uint32(16).bool(e.has_more),t.uint32(24).int64(e.next_version),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationReadInfoRespBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.read_info&&o.read_info.length)&&(o.read_info=[]),o.read_info.push(_.im_proto.ConversationReadInfo.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_version=e.int64();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("has_more"))throw c.ProtocolError("missing required 'has_more'",{instance:o});if(!o.hasOwnProperty("next_version"))throw c.ProtocolError("missing required 'next_version'",{instance:o});return o},e}(),e.ConversationRecentMessage=function(){function e(e){if(this.messages=[],this.ext_messages=[],this.mute_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.conversation_short_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.messages=c.emptyArray,e.prototype.version=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.badge_count=0,e.prototype.conversation_id="",e.prototype.ext_messages=c.emptyArray,e.prototype.mute_badge_count_infos=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.conversation_short_id),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)_.im_proto.MessageBody.encode(e.messages[n],t.uint32(18).fork()).ldelim();if(t.uint32(24).int64(e.version),null!=e.badge_count&&Object.hasOwnProperty.call(e,"badge_count")&&t.uint32(32).int32(e.badge_count),t.uint32(42).string(e.conversation_id),null!=e.ext_messages&&e.ext_messages.length)for(var n=0;n<e.ext_messages.length;++n)_.im_proto.MessageBody.encode(e.ext_messages[n],t.uint32(50).fork()).ldelim();if(null!=e.mute_badge_count_infos&&e.mute_badge_count_infos.length)for(var n=0;n<e.mute_badge_count_infos.length;++n)_.im_proto.MuteBadgeCountInfo.encode(e.mute_badge_count_infos[n],t.uint32(74).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationRecentMessage;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.conversation_short_id=e.int64();break;case 2:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 3:o.version=e.int64();break;case 4:o.badge_count=e.int32();break;case 5:o.conversation_id=e.string();break;case 6:!(o.ext_messages&&o.ext_messages.length)&&(o.ext_messages=[]),o.ext_messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 9:!(o.mute_badge_count_infos&&o.mute_badge_count_infos.length)&&(o.mute_badge_count_infos=[]),o.mute_badge_count_infos.push(_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("conversation_short_id"))throw c.ProtocolError("missing required 'conversation_short_id'",{instance:o});if(!o.hasOwnProperty("version"))throw c.ProtocolError("missing required 'version'",{instance:o});if(!o.hasOwnProperty("conversation_id"))throw c.ProtocolError("missing required 'conversation_id'",{instance:o});return o},e}(),e.GetRecentMsgVersionRange=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.left_side=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.right_side=c.Long?c.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return!t&&(t=a.create()),null!=e.left_side&&Object.hasOwnProperty.call(e,"left_side")&&t.uint32(8).int64(e.left_side),null!=e.right_side&&Object.hasOwnProperty.call(e,"right_side")&&t.uint32(16).int64(e.right_side),t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.GetRecentMsgVersionRange;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.left_side=e.int64();break;case 2:o.right_side=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationReadInfo=function(){function e(e){if(this.mute_read_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.read_index=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.read_badge_count=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.read_index_v2=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.ConversationShortId=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.ConversationId="",e.prototype.mute_read_badge_count_infos=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.read_index),t.uint32(16).int64(e.read_badge_count),t.uint32(24).int64(e.read_index_v2),t.uint32(32).int64(e.ConversationShortId),null!=e.ConversationId&&Object.hasOwnProperty.call(e,"ConversationId")&&t.uint32(42).string(e.ConversationId),null!=e.mute_read_badge_count_infos&&e.mute_read_badge_count_infos.length)for(var n=0;n<e.mute_read_badge_count_infos.length;++n)_.im_proto.MuteReadBadgeCountInfo.encode(e.mute_read_badge_count_infos[n],t.uint32(50).fork()).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ConversationReadInfo;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.read_index=e.int64();break;case 2:o.read_badge_count=e.int64();break;case 3:o.read_index_v2=e.int64();break;case 4:o.ConversationShortId=e.int64();break;case 5:o.ConversationId=e.string();break;case 6:!(o.mute_read_badge_count_infos&&o.mute_read_badge_count_infos.length)&&(o.mute_read_badge_count_infos=[]),o.mute_read_badge_count_infos.push(_.im_proto.MuteReadBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("read_index"))throw c.ProtocolError("missing required 'read_index'",{instance:o});if(!o.hasOwnProperty("read_badge_count"))throw c.ProtocolError("missing required 'read_badge_count'",{instance:o});if(!o.hasOwnProperty("read_index_v2"))throw c.ProtocolError("missing required 'read_index_v2'",{instance:o});if(!o.hasOwnProperty("ConversationShortId"))throw c.ProtocolError("missing required 'ConversationShortId'",{instance:o});return o},e}(),e.AddUserCustomTagMetaInfo=function(){function e(e){if(this.ext={},this.init_conv_short_ids=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag_name="",e.prototype.ext=c.emptyObject,e.prototype.init_conv_short_ids=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(10).string(e.tag_name),null!=e.ext&&Object.hasOwnProperty.call(e,"ext"))for(var n=Object.keys(e.ext),o=0;o<n.length;++o)t.uint32(18).fork().uint32(10).string(n[o]).uint32(18).string(e.ext[n[o]]).ldelim();if(null!=e.init_conv_short_ids&&e.init_conv_short_ids.length)for(var o=0;o<e.init_conv_short_ids.length;++o)t.uint32(24).int64(e.init_conv_short_ids[o]);return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.AddUserCustomTagMetaInfo;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.tag_name=e.string();break;case 2:i.ext===c.emptyObject&&(i.ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.ext[n]=o;break;case 3:if(!(i.init_conv_short_ids&&i.init_conv_short_ids.length)&&(i.init_conv_short_ids=[]),(7&a)==2){for(var l=e.uint32()+e.pos;e.pos<l;)i.init_conv_short_ids.push(e.int64())}else i.init_conv_short_ids.push(e.int64());break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("tag_name"))throw c.ProtocolError("missing required 'tag_name'",{instance:i});return i},e}(),e.AddUserCustomTagMetaInfoResult=function(){function e(e){if(this.failed_conversation_ids=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.failed_conversation_ids=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.tag_id),null!=e.failed_conversation_ids&&e.failed_conversation_ids.length)for(var n=0;n<e.failed_conversation_ids.length;++n)t.uint32(16).int64(e.failed_conversation_ids[n]);return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.AddUserCustomTagMetaInfoResult;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:o.tag_id=e.int64();break;case 2:if(!(o.failed_conversation_ids&&o.failed_conversation_ids.length)&&(o.failed_conversation_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.failed_conversation_ids.push(e.int64())}else o.failed_conversation_ids.push(e.int64());break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("tag_id"))throw c.ProtocolError("missing required 'tag_id'",{instance:o});return o},e}(),e.UpdateUserCustomTagMetaInfo=function(){function e(e){if(this.upsert_ext={},this.delete_ext={},e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag_id=c.Long?c.Long.fromBits(0,0,!1):0,e.prototype.tag_name="",e.prototype.upsert_ext=c.emptyObject,e.prototype.delete_ext=c.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),t.uint32(8).int64(e.tag_id),null!=e.tag_name&&Object.hasOwnProperty.call(e,"tag_name")&&t.uint32(18).string(e.tag_name),null!=e.upsert_ext&&Object.hasOwnProperty.call(e,"upsert_ext"))for(var n=Object.keys(e.upsert_ext),o=0;o<n.length;++o)t.uint32(26).fork().uint32(10).string(n[o]).uint32(18).string(e.upsert_ext[n[o]]).ldelim();if(null!=e.delete_ext&&Object.hasOwnProperty.call(e,"delete_ext"))for(var n=Object.keys(e.delete_ext),o=0;o<n.length;++o)t.uint32(34).fork().uint32(10).string(n[o]).uint32(18).string(e.delete_ext[n[o]]).ldelim();return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n,o,r=void 0===t?e.len:e.pos+t,i=new _.im_proto.UpdateUserCustomTagMetaInfo;e.pos<r;){var a=e.uint32();switch(a>>>3){case 1:i.tag_id=e.int64();break;case 2:i.tag_name=e.string();break;case 3:i.upsert_ext===c.emptyObject&&(i.upsert_ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.upsert_ext[n]=o;break;case 4:i.delete_ext===c.emptyObject&&(i.delete_ext={});var l=e.uint32()+e.pos;for(n="",o="";e.pos<l;){var u=e.uint32();switch(u>>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.delete_ext[n]=o;break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("tag_id"))throw c.ProtocolError("missing required 'tag_id'",{instance:i});return i},e}(),e.ManageTagMetaInfoResponseBody=function(){function e(e){if(this.add_results=[],this.delete_failed_tag_ids=[],this.update_failed_tag_ids=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.add_results=c.emptyArray,e.prototype.delete_failed_tag_ids=c.emptyArray,e.prototype.update_failed_tag_ids=c.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(!t&&(t=a.create()),null!=e.add_results&&e.add_results.length)for(var n=0;n<e.add_results.length;++n)_.im_proto.AddUserCustomTagMetaInfoResult.encode(e.add_results[n],t.uint32(10).fork()).ldelim();if(null!=e.delete_failed_tag_ids&&e.delete_failed_tag_ids.length)for(var n=0;n<e.delete_failed_tag_ids.length;++n)t.uint32(16).int64(e.delete_failed_tag_ids[n]);if(null!=e.update_failed_tag_ids&&e.update_failed_tag_ids.length)for(var n=0;n<e.update_failed_tag_ids.length;++n)t.uint32(24).int64(e.update_failed_tag_ids[n]);return t},e.decode=function(e,t){!(e instanceof s)&&(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new _.im_proto.ManageTagMetaInfoResponseBody;e.pos<n;){var r=e.uint32();switch(r>>>3){case 1:!(o.add_results&&o.add_results.length)&&(o.add_results=[]),o.add_results.push(_.im_proto.AddUserCustomTagMetaInfoResult.decode(e,e.uint32()));break;case 2:if(!(o.delete_failed_tag_ids&&o.delete_failed_tag_ids.length)&&(o.delete_failed_tag_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.delete_failed_tag_ids.push(e.int64())}else o.delete_failed_tag_ids.push(e.int64());break;case 3:if(!(o.update_failed_tag_ids&&o.update_failed_tag_ids.length)&&(o.update_failed_tag_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos<i;)o.update_failed_tag_ids.push(e.int64())}else o.update_failed_tag_ids.push(e.int64());break;default:e.skipType(7&r)}}return o},e}(),e})()},163417:function(e,t,n){"use strict";function o(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}n.d(t,{Z:function(){return o}})},827595:function(e,t,n){var o=n(812958),r=n(861577),i=n(931178),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=r(e),n=[];for(var a in e)!("constructor"==a&&(t||!s.call(e,a)))&&n.push(a);return n}},866276:function(e){e.exports=function(e,t){for(var n,o=-1,r=e.length;++o<r;){var i=t(e[o]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},992977:function(e){e.exports=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return -1}},701821:function(e,t,n){var o=n(169434),r=n(167970),i=n(71079);e.exports=function(e){return r(e)?i(e):o(e)}},656367:function(e,t,n){var o=n(562641),r=n(146004),i=n(55607),s=n(746170);e.exports=function(e){return i(e)?o(s(e)):r(e)}},904708:function(e,t,n){"use strict";n(932651),n(706056),n(490629);var o=n(795233),r=n.n(o),i=n(876553),s=n.n(i),a=n(101199),c=n(622689),_=n.n(c),l=n(469935),u=n.n(l),p=n(45637),d=n(130847),f=n(932083),y=n(155553),g=n(426337),h=n(180007),v=n(619050),b=n(975044),m=n(111748),O=n(559963),k=n(182811);n(148539);var w=n(890710),P=n(678503);let R=p.U.PREFIX,j=p.j.SIZE,x=p.j.POSITION,C=p.j.STATUS;class E extends g.Z{get adapter(){return Object.assign(Object.assign(Object.assign({},super.adapter),{registerKeyDown:e=>{this.setState({keyboardEventSet:{onKeyDown:e}})},unregisterKeyDown:e=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:e=>{this.setState({focusIndex:e})},updateScrollTop:e=>{let t;t=`.${R}-option-selected`,void 0!==e&&(t=`.${R}-option:nth-child(${e+1})`);let n=document.querySelector(`#${R}-${this.optionListId} ${t}`);if(Array.isArray(n)&&(n=n[0]),n){let e=n.parentNode;e.scrollTop=n.offsetTop-e.offsetTop-e.clientHeight/2+n.clientHeight/2}}}),{getTriggerWidth:()=>{let e=this.triggerRef.current;return e&&e.getBoundingClientRect().width},setOptionWrapperWidth:e=>{this.setState({dropdownMinWidth:e})},updateInputValue:e=>{this.setState({inputValue:e})},toggleListVisible:e=>{this.setState({visible:e})},updateOptionList:e=>{this.setState({options:e})},updateSelection:e=>{this.setState({selection:e})},notifySearch:e=>{this.props.onSearch(e)},notifyChange:e=>{this.props.onChange(e)},notifySelect:e=>{this.props.onSelect(e)},notifyDropdownVisibleChange:e=>{this.props.onDropdownVisibleChange(e)},notifyClear:()=>{this.props.onClear()},notifyFocus:e=>{this.props.onFocus(e)},notifyBlur:e=>{this.props.onBlur(e)},notifyKeyDown:e=>{this.props.onKeyDown(e)},rePositionDropdown:()=>{let{rePosKey:e}=this.state;e+=1,this.setState({rePosKey:e})},registerClickOutsideHandler:e=>{let t=t=>{let n=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,r=w.findDOMNode(n),i=t.target,s=t.composedPath&&t.composedPath()||[i];r&&(!r.contains(i)||!r.contains(i.parentNode))&&o&&!o.contains(i)&&!(s.includes(o)||s.includes(r))&&e(t)};this.clickOutsideHandler=t,document.addEventListener("mousedown",t,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init(),this.optionListId=(0,y.Ms)()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){!s()(this.props.data,e.data)&&this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){let{size:e,prefix:t,insetLabel:n,insetLabelId:o,suffix:r,placeholder:i,style:s,className:c,showClear:_,disabled:l,triggerRender:p,validateStatus:d,autoFocus:f,value:y,id:g,clearIcon:h}=this.props,{inputValue:v,keyboardEventSet:O,selection:k}=this.state,w=Object.assign(Object.assign(Object.assign({style:s,className:"function"==typeof p?u()(c):u()({[R]:!0,[`${R}-disabled`]:l},c),onClick:this.handleInputClick,ref:this.triggerRef,id:g},O),{tabIndex:-1}),this.getDataAttr(this.props)),P={disabled:l,placeholder:i,autoFocus:f,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:r,prefix:t||n,insetLabelId:o,showClear:_,validateStatus:d,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:h};return a.createElement("div",Object.assign({},w),"function"==typeof p?a.createElement(m.Z,Object.assign({},P,{inputValue:void 0!==y?y:v,value:Array.from(k.values()),triggerRender:p,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):a.createElement(b.Z,Object.assign({},P,{value:void 0!==y?y:v})))}renderLoading(){let e=`${R}-loading-wrapper`;return a.createElement("div",{className:e},a.createElement(h.Z,null))}renderOption(e,t){let{focusIndex:n}=this.state;return a.createElement(O.Z,Object.assign({showTick:!1,onSelect:(e,n)=>this.onSelect(e,t,n),focused:t===n,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){let e;let{maxHeight:t,dropdownStyle:n,dropdownClassName:o,loading:r,emptyContent:i}=this.props,{options:s,dropdownMinWidth:c}=this.state,_=u()({[`${R}-option-list`]:!0},o);e=0===s.length?i:s.filter(e=>e.show).map((e,t)=>this.renderOption(e,t));let l=Object.assign({maxHeight:t,minWidth:c},n);return a.createElement("div",{className:_,role:"listbox",style:l,id:`${R}-${this.optionListId}`},r?this.renderLoading():e)}render(){let{position:e,motion:t,zIndex:n,mouseEnterDelay:o,mouseLeaveDelay:r,autoAdjustOverflow:i,stopPropagation:s,getPopupContainer:c}=this.props,{visible:_,rePosKey:l}=this.state,u=this.renderInput(),p=this.renderOptionList();return a.createElement(v.Z,{mouseEnterDelay:o,mouseLeaveDelay:r,autoAdjustOverflow:i,trigger:"custom",motion:t,visible:_,content:p,position:e,ref:this.optionsRef,zIndex:n,stopPropagation:s,getPopupContainer:c,rePosKey:l},u)}constructor(e){super(e),this.onSelect=(e,t,n)=>{this.foundation.handleSelect(e,t)},this.onSearch=e=>{this.foundation.handleSearch(e)},this.onBlur=e=>this.foundation.handleBlur(e),this.onFocus=e=>this.foundation.handleFocus(e),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=e=>this.foundation.handleInputClick(e),this.foundation=new d.Z(this.adapter);this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:1},this.triggerRef=a.createRef(),this.optionsRef=a.createRef(),this.clickOutsideHandler=null,this.optionListId="",(0,k.Z)("triggerRender"in this.props&&"function"==typeof this.props.triggerRender,`[Semi AutoComplete]
|
|
- If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size',
|
|
please notice that they will be removed in the next major version.
|
|
Please use 'componentProps' to retrieve these props instead.
|
|
- If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}}E.propTypes={"aria-label":_().string,"aria-labelledby":_().string,"aria-invalid":_().bool,"aria-errormessage":_().string,"aria-describedby":_().string,"aria-required":_().bool,autoFocus:_().bool,autoAdjustOverflow:_().bool,className:_().string,clearIcon:_().node,children:_().node,data:_().array,defaultOpen:_().bool,defaultValue:_().oneOfType([_().string,_().number]),defaultActiveFirstOption:_().bool,disabled:_().bool,dropdownMatchSelectWidth:_().bool,dropdownClassName:_().string,dropdownStyle:_().object,emptyContent:_().node,id:_().string,insetLabel:_().node,insetLabelId:_().string,onSearch:_().func,onSelect:_().func,onClear:_().func,onBlur:_().func,onFocus:_().func,onChange:_().func,onKeyDown:_().func,position:_().oneOf(x),placeholder:_().string,prefix:_().node,onChangeWithObject:_().bool,onSelectWithObject:_().bool,renderItem:_().func,renderSelectedItem:_().func,suffix:_().node,showClear:_().bool,size:_().oneOf(j),style:_().object,stopPropagation:_().oneOfType([_().bool,_().string]),maxHeight:_().oneOfType([_().string,_().number]),mouseEnterDelay:_().number,mouseLeaveDelay:_().number,motion:_().oneOfType([_().bool,_().func,_().object]),getPopupContainer:_().func,triggerRender:_().func,value:_().oneOfType([_().string,_().number]),validateStatus:_().oneOf(C),zIndex:_().number},E.Option=O.Z,E.__SemiComponentName__="AutoComplete",E.defaultProps=(0,P.GW)(E.__SemiComponentName__,{stopPropagation:!0,motion:!0,zIndex:f.KT.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:r(),onSearch:r(),onClear:r(),onBlur:r(),onSelect:r(),onChange:r(),onSelectWithObject:!1,onDropdownVisibleChange:r(),defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:r()}),t.Z=E},964609:function(e,t,n){"use strict";n(932651);var o=n(198412),r=n.n(o),i=n(812958),s=n.n(i),a=n(856445),c=n(70106);class _ extends a.Z{setForcePlay(e){this._forcePlay=e}play(e){this._interval&&clearInterval(this._interval),this._interval=setInterval(()=>{this.next()},e)}stop(){this._interval&&clearInterval(this._interval)}goTo(e){let{activeIndex:t}=this.getStates(),n=this.getValidIndex(e);this._adapter.setIsReverse(t>n),this.getIsControlledComponent()?this._notifyChange(n):(this._notifyChange(n),this.handleNewActiveIndex(n))}next(){this.stop();let{activeIndex:e}=this.getStates(),t=this.getValidIndex(e+1);this._adapter.setIsReverse(!1),this.getIsControlledComponent()?this._notifyChange(t):(this._notifyChange(t),this.handleNewActiveIndex(t)),this.handleAutoPlay()}prev(){this.stop();let{activeIndex:e}=this.getStates(),t=this.getValidIndex(e-1);this._adapter.setIsReverse(!0),this.getIsControlledComponent()?this._notifyChange(t):(this._notifyChange(t),this.handleNewActiveIndex(t)),this.handleAutoPlay()}destroy(){this._unregisterInterval()}_unregisterInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_notifyChange(e){let{activeIndex:t,isInit:n}=this.getStates();n&&this._adapter.setIsInit(!1),t!==e&&(this._adapter.setPreActiveIndex(t),this._adapter.notifyChange(e,t))}getValidIndex(e){let t=this._adapter.getChildren();return(e+t.length)%t.length}getSwitchingTime(){let{autoPlay:e,speed:t}=this.getProps();return"boolean"==typeof e?c.KT.DEFAULT_INTERVAL+t:s()(e)?r()(e,"interval",c.KT.DEFAULT_INTERVAL)+t:t}getIsControlledComponent(){return this._isInProps("activeIndex")}handleAutoPlay(){let{autoPlay:e}=this.getProps();this._adapter.getChildren().length>1&&(!0===e||s()(e)||this._forcePlay)&&this.play(this.getSwitchingTime())}handleKeyDown(e){"ArrowLeft"===e.key&&this.prev(),"ArrowRight"===e.key&&this.next()}onIndicatorChange(e){let{activeIndex:t}=this.getStates();this._adapter.setIsReverse(t>e),this._notifyChange(e),!this.getIsControlledComponent()&&this.handleNewActiveIndex(e)}handleNewActiveIndex(e){let{activeIndex:t}=this.getStates();t!==e&&this._adapter.setNewActiveIndex(e)}getDefaultActiveIndex(){let e;let t=this.getProps();return"activeIndex"in t?e=t.activeIndex:"defaultActiveIndex"in t&&(e=t.defaultActiveIndex),e}constructor(e){super(Object.assign({},e)),this._interval=null,this._forcePlay=!1}}t.Z=_},365211:function(e,t,n){"use strict";n(706056),n(932651);var o=n(856445),r=n(779778),i=n(182811);class s extends o.Z{init(){let{children:e,extra:t,extraId:n,addonId:o}=this.getProps();e&&!o&&this._adapter.setAddonId(),t&&!n&&this._adapter.setExtraId()}notifyChange(e,t){let n=this._adapter.generateEvent(e,t);this._adapter.notifyChange(n)}handleChange(e){if(this.getProp("disabled"))return;if((null==e?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){!this._adapter.getGroupDisabled()&&this.handleChangeInGroup(e);return}let t=!this.getState("checked");this._isControlledComponent("checked")||this.setChecked(t),this.notifyChange(t,e)}handleChangeInGroup(e){let{value:t}=this.getProps(),n=this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(!n,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){(0,r.Z)(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=e=>{let{target:t}=e;try{if(this.clickState){this.clickState=!1;return}t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch(e){(0,i.Z)(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}}t.Z=s},261341:function(e,t,n){"use strict";n.d(t,{UX:function(){return r},j2:function(){return i}});var o=n(707852);let r={PREFIX:`${o.T}-tree`,PREFIX_OPTION:`${o.T}-tree-option`},i={EXPAND_ACTION:[!1,"click","doubleClick"],JSON_KEY_SPLIT:"_SEMI_TREE_SPLIT_"}},642911:function(e,t,n){"use strict";n.d(t,{KT:function(){return p},UX:function(){return c},j2:function(){return u}});var o=n(707852),r=n(601820);let i=`${o.T}-upload`,s="picture",a="list",c={PREFIX:i,LIST:`${i}-list`},_="auto",l="custom",u={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:s,FILE_LIST_DEFAULT:a,LIST_TYPE:[s,a],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:_,TRIGGER_CUSTOM:l,UPLOAD_TRIGGER:[_,l],VALIDATE_STATUS:r.L,PROMPT_POSITION:["left","right","bottom"]},p={PROGRESS_COEFFICIENT:.95}},769007:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});var o=n(368183);function r(e,t,n,r,i,s){let a;let c=this,_=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(s),l};function l(p){return _>999||null===p||91===p||93===p&&!a||94===p&&!_&&"_hiddenFootnoteSupport"in c.parser.constructs?n(p):93===p?(e.exit(s),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(0,o.Ch)(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(t){return null===t||91===t||93===t||(0,o.Ch)(t)||_++>999?(e.exit("chunkString"),l(t)):(e.consume(t),!a&&(a=!(0,o.xz)(t)),92===t?p:u)}function p(t){return 91===t||92===t||93===t?(e.consume(t),_++,u):u(t)}}},314228:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(586597);function r(e){return function(t){return(0,o.M)(t,e)}}}}]); |