swfobject-0.2.min.js
25.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
var swfobject=function(){function l(){if(!x){try{var a=h.getElementsByTagName("body")[0].appendChild(h.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}x=!0;for(var a=B.length,c=0;c<a;c++)B[c]()}}function c(a){x?a():B[B.length]=a}function d(a){if("undefined"!=typeof p.addEventListener)p.addEventListener("load",a,!1);else if("undefined"!=typeof h.addEventListener)h.addEventListener("load",a,!1);else if("undefined"!=typeof p.attachEvent)R(p,"onload",a);else if("function"==typeof p.onload){var b=
p.onload;p.onload=function(){b();a()}}else p.onload=a}function f(){var b=h.getElementsByTagName("body")[0],u=h.createElement("object");u.setAttribute("type","application/x-shockwave-flash");var c=b.appendChild(u);if(c){var v=0;(function(){if("undefined"!=typeof c.GetVariable){var g=c.GetVariable("$version");g&&(g=g.split(" ")[1].split(","),e.pv=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)])}else if(10>v){v++;setTimeout(arguments.callee,10);return}b.removeChild(u);c=null;a()})()}else a()}
function a(){var a=t.length;if(0<a)for(var u=0;u<a;u++){var c=t[u].id,v=t[u].callbackFn,g={success:!1,id:c};if(0<e.pv[0]){var d=q(c);if(d)if(!C(t[u].swfVersion)||e.wk&&312>e.wk)if(t[u].expressInstall&&k()){g={};g.data=t[u].expressInstall;g.width=d.getAttribute("width")||"0";g.height=d.getAttribute("height")||"0";d.getAttribute("class")&&(g.styleclass=d.getAttribute("class"));d.getAttribute("align")&&(g.align=d.getAttribute("align"));for(var h={},d=d.getElementsByTagName("param"),f=d.length,n=0;n<
f;n++)"movie"!=d[n].getAttribute("name").toLowerCase()&&(h[d[n].getAttribute("name")]=d[n].getAttribute("value"));G(g,h,c,v)}else S(d),v&&v(g);else y(c,!0),v&&(g.success=!0,g.ref=b(c),v(g))}else y(c,!0),v&&((c=b(c))&&"undefined"!=typeof c.SetVariable&&(g.success=!0,g.ref=c),v(g))}}function b(a){var b=null;(a=q(a))&&"OBJECT"==a.nodeName&&("undefined"!=typeof a.SetVariable?b=a:(a=a.getElementsByTagName("object")[0])&&(b=a));return b}function k(){return!D&&C("6.0.65")&&(e.win||e.mac)&&!(e.wk&&312>e.wk)}
function G(a,b,c,d){D=!0;H=d||null;L={success:!1,id:c};var g=q(c);if(g){"OBJECT"==g.nodeName?(A=I(g),E=null):(A=g,E=c);a.id="SWFObjectExprInst";if("undefined"==typeof a.width||!/%$/.test(a.width)&&310>parseInt(a.width,10))a.width="310";if("undefined"==typeof a.height||!/%$/.test(a.height)&&137>parseInt(a.height,10))a.height="137";h.title=h.title.slice(0,47)+" - Flash Player Installation";d=e.ie&&e.win?"ActiveX":"PlugIn";d="MMredirectURL="+p.location.toString().replace(/&/g,"%26")+"&MMplayerType="+
d+"&MMdoctitle="+h.title;b.flashvars="undefined"!=typeof b.flashvars?b.flashvars+("&"+d):d;e.ie&&e.win&&4!=g.readyState&&(d=h.createElement("div"),c+="SWFObjectNew",d.setAttribute("id",c),g.parentNode.insertBefore(d,g),g.style.display="none",function(){4==g.readyState?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}());J(a,b,c)}}function S(a){if(e.ie&&e.win&&4!=a.readyState){var b=h.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(I(a),b);a.style.display="none";
(function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(I(a),a)}function I(a){var b=h.createElement("div");if(e.win&&e.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName("object")[0])if(a=a.childNodes)for(var c=a.length,d=0;d<c;d++)1==a[d].nodeType&&"PARAM"==a[d].nodeName||8==a[d].nodeType||b.appendChild(a[d].cloneNode(!0));return b}function J(a,b,c){var d,g=q(c);if(e.wk&&312>e.wk)return d;if(g)if("undefined"==typeof a.id&&
(a.id=c),e.ie&&e.win){var f="",m;for(m in a)a[m]!=Object.prototype[m]&&("data"==m.toLowerCase()?b.movie=a[m]:"styleclass"==m.toLowerCase()?f+=' class="'+a[m]+'"':"classid"!=m.toLowerCase()&&(f+=" "+m+'="'+a[m]+'"'));m="";for(var k in b)b[k]!=Object.prototype[k]&&(m+='<param name="'+k+'" value="'+b[k]+'" />');g.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+m+"</object>";F[F.length]=a.id;d=q(a.id)}else{k=h.createElement("object");k.setAttribute("type","application/x-shockwave-flash");
for(var n in a)a[n]!=Object.prototype[n]&&("styleclass"==n.toLowerCase()?k.setAttribute("class",a[n]):"classid"!=n.toLowerCase()&&k.setAttribute(n,a[n]));for(f in b)b[f]!=Object.prototype[f]&&"movie"!=f.toLowerCase()&&(a=k,m=f,n=b[f],c=h.createElement("param"),c.setAttribute("name",m),c.setAttribute("value",n),a.appendChild(c));g.parentNode.replaceChild(k,g);d=k}return d}function M(a){var b=q(a);b&&"OBJECT"==b.nodeName&&(e.ie&&e.win?(b.style.display="none",function(){if(4==b.readyState){var c=q(a);
if(c){for(var d in c)"function"==typeof c[d]&&(c[d]=null);c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function q(a){var b=null;try{b=h.getElementById(a)}catch(c){}return b}function R(a,b,c){a.attachEvent(b,c);z[z.length]=[a,b,c]}function C(a){var b=e.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1}function N(a,b,c,d){if(!e.ie||
!e.mac){var g=h.getElementsByTagName("head")[0];g&&(c=c&&"string"==typeof c?c:"screen",d&&(K=r=null),r&&K==c||(d=h.createElement("style"),d.setAttribute("type","text/css"),d.setAttribute("media",c),r=g.appendChild(d),e.ie&&e.win&&"undefined"!=typeof h.styleSheets&&0<h.styleSheets.length&&(r=h.styleSheets[h.styleSheets.length-1]),K=c),e.ie&&e.win?r&&"object"==typeof r.addRule&&r.addRule(a,b):r&&"undefined"!=typeof h.createTextNode&&r.appendChild(h.createTextNode(a+" {"+b+"}")))}}function y(a,b){if(O){var c=
b?"visible":"hidden";x&&q(a)?q(a).style.visibility=c:N("#"+a,"visibility:"+c)}}function P(a){return null!=/[\\\"<>\.;]/.exec(a)&&"undefined"!=typeof encodeURIComponent?encodeURIComponent(a):a}var p=window,h=document,w=navigator,Q=!1,B=[function(){Q?f():a()}],t=[],F=[],z=[],A,E,H,L,x=!1,D=!1,r,K,O=!0,e=function(){var a="undefined"!=typeof h.getElementById&&"undefined"!=typeof h.getElementsByTagName&&"undefined"!=typeof h.createElement,b=w.userAgent.toLowerCase(),c=w.platform.toLowerCase(),d=c?/win/.test(c):
/win/.test(b),c=c?/mac/.test(c):/mac/.test(b),b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!+"\v1",e=[0,0,0],f=null;if("undefined"!=typeof w.plugins&&"object"==typeof w.plugins["Shockwave Flash"])!(f=w.plugins["Shockwave Flash"].description)||"undefined"!=typeof w.mimeTypes&&w.mimeTypes["application/x-shockwave-flash"]&&!w.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(Q=!0,g=!1,f=f.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),e[0]=parseInt(f.replace(/^(.*)\..*$/,
"$1"),10),e[1]=parseInt(f.replace(/^.*\.(.*)\s.*$/,"$1"),10),e[2]=/[a-zA-Z]/.test(f)?parseInt(f.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if("undefined"!=typeof p.ActiveXObject)try{var k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");k&&(f=k.GetVariable("$version"))&&(g=!0,f=f.split(" ")[1].split(","),e=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)])}catch(n){}return{w3:a,pv:e,wk:b,ie:g,win:d,mac:c}}();(function(){e.w3&&(("undefined"!=typeof h.readyState&&"complete"==h.readyState||
"undefined"==typeof h.readyState&&(h.getElementsByTagName("body")[0]||h.body))&&l(),x||("undefined"!=typeof h.addEventListener&&h.addEventListener("DOMContentLoaded",l,!1),e.ie&&e.win&&(h.attachEvent("onreadystatechange",function(){"complete"==h.readyState&&(h.detachEvent("onreadystatechange",arguments.callee),l())}),p==top&&function(){if(!x){try{h.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}l()}}()),e.wk&&function(){x||(/loaded|complete/.test(h.readyState)?l():
setTimeout(arguments.callee,0))}(),d(l)))})();(function(){e.ie&&e.win&&window.attachEvent("onunload",function(){for(var a=z.length,b=0;b<a;b++)z[b][0].detachEvent(z[b][1],z[b][2]);a=F.length;for(b=0;b<a;b++)M(F[b]);for(var c in e)e[c]=null;e=null;for(var d in swfobject)swfobject[d]=null;swfobject=null})})();return{registerObject:function(a,b,c,d){if(e.w3&&a&&b){var g={};g.id=a;g.swfVersion=b;g.expressInstall=c;g.callbackFn=d;t[t.length]=g;y(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(e.w3)return b(a)},
embedSWF:function(a,b,d,f,g,h,m,l,n,p){var q={success:!1,id:b};e.w3&&!(e.wk&&312>e.wk)&&a&&b&&d&&f&&g?(y(b,!1),c(function(){d+="";f+="";var c={};if(n&&"object"===typeof n)for(var e in n)c[e]=n[e];c.data=a;c.width=d;c.height=f;e={};if(l&&"object"===typeof l)for(var r in l)e[r]=l[r];if(m&&"object"===typeof m)for(var t in m)e.flashvars="undefined"!=typeof e.flashvars?e.flashvars+("&"+t+"="+m[t]):t+"="+m[t];if(C(g))r=J(c,e,b),c.id==b&&y(b,!0),q.success=!0,q.ref=r;else{if(h&&k()){c.data=h;G(c,e,b,p);return}y(b,
!0)}p&&p(q)})):p&&p(q)},switchOffAutoHideShow:function(){O=!1},ua:e,getFlashPlayerVersion:function(){return{major:e.pv[0],minor:e.pv[1],release:e.pv[2]}},hasFlashPlayerVersion:C,createSWF:function(a,b,c){if(e.w3)return J(a,b,c)},showExpressInstall:function(a,b,c,d){e.w3&&k()&&G(a,b,c,d)},removeSWF:function(a){e.w3&&M(a)},createCSS:function(a,b,c,d){e.w3&&N(a,b,c,d)},addDomLoadEvent:c,addLoadEvent:d,getQueryParamValue:function(a){var b=h.location.search||h.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);
if(null==a)return P(b);for(var b=b.split("&"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return P(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(D){var a=q("SWFObjectExprInst");a&&A&&(a.parentNode.replaceChild(A,a),E&&(y(E,!0),e.ie&&e.win&&(A.style.display="block")),H&&H(L));D=!1}}}}();
(function(){if(!window.WEB_SOCKET_FORCE_FLASH){if(window.WebSocket)return;if(window.MozWebSocket){window.WebSocket=MozWebSocket;return}}var l;l=window.WEB_SOCKET_LOGGER?WEB_SOCKET_LOGGER:window.console&&window.console.log&&window.console.error?window.console:{log:function(){},error:function(){}};10>swfobject.getFlashPlayerVersion().major?l.error("Flash Player >= 10.0.0 is required."):("file:"==location.protocol&&l.error("WARNING: web-socket-js doesn't work in file:///... URL unless you set Flash Security Settings properly. Open the page via Web server i.e. http://..."),
window.WebSocket=function(c,d,f,a,b){var k=this;k.__id=WebSocket.__nextId++;WebSocket.__instances[k.__id]=k;k.readyState=WebSocket.CONNECTING;k.bufferedAmount=0;k.__events={};d?"string"==typeof d&&(d=[d]):d=[];k.__createTask=setTimeout(function(){WebSocket.__addTask(function(){k.__createTask=null;WebSocket.__flash.create(k.__id,c,d,f||null,a||0,b||null)})},0)},WebSocket.prototype.send=function(c){if(this.readyState==WebSocket.CONNECTING)throw"INVALID_STATE_ERR: Web Socket connection has not been established";
c=WebSocket.__flash.send(this.__id,encodeURIComponent(c));if(0>c)return!0;this.bufferedAmount+=c;return!1},WebSocket.prototype.close=function(){this.__createTask?(clearTimeout(this.__createTask),this.__createTask=null,this.readyState=WebSocket.CLOSED):this.readyState!=WebSocket.CLOSED&&this.readyState!=WebSocket.CLOSING&&(this.readyState=WebSocket.CLOSING,WebSocket.__flash.close(this.__id))},WebSocket.prototype.addEventListener=function(c,d,f){c in this.__events||(this.__events[c]=[]);this.__events[c].push(d)},
WebSocket.prototype.removeEventListener=function(c,d,f){if(c in this.__events)for(c=this.__events[c],f=c.length-1;0<=f;--f)if(c[f]===d){c.splice(f,1);break}},WebSocket.prototype.dispatchEvent=function(c){for(var d=this.__events[c.type]||[],f=0;f<d.length;++f)d[f](c);(d=this["on"+c.type])&&d.apply(this,[c])},WebSocket.prototype.__handleEvent=function(c){"readyState"in c&&(this.readyState=c.readyState);"protocol"in c&&(this.protocol=c.protocol);var d;if("open"==c.type||"error"==c.type)d=this.__createSimpleEvent(c.type);
else if("close"==c.type)d=this.__createSimpleEvent("close"),d.wasClean=c.wasClean?!0:!1,d.code=c.code,d.reason=c.reason;else if("message"==c.type)c=decodeURIComponent(c.message),d=this.__createMessageEvent("message",c);else throw"unknown event type: "+c.type;this.dispatchEvent(d)},WebSocket.prototype.__createSimpleEvent=function(c){if(document.createEvent&&window.Event){var d=document.createEvent("Event");d.initEvent(c,!1,!1);return d}return{type:c,bubbles:!1,cancelable:!1}},WebSocket.prototype.__createMessageEvent=
function(c,d){if(window.MessageEvent&&"function"==typeof MessageEvent&&!window.opera)return new MessageEvent("message",{view:window,bubbles:!1,cancelable:!1,data:d});if(document.createEvent&&window.MessageEvent&&!window.opera){var f=document.createEvent("MessageEvent");f.initMessageEvent("message",!1,!1,d,null,null,window,null);return f}return{type:c,data:d,bubbles:!1,cancelable:!1}},WebSocket.CONNECTING=0,WebSocket.OPEN=1,WebSocket.CLOSING=2,WebSocket.CLOSED=3,WebSocket.__isFlashImplementation=!0,
WebSocket.__initialized=!1,WebSocket.__flash=null,WebSocket.__instances={},WebSocket.__tasks=[],WebSocket.__nextId=0,WebSocket.loadFlashPolicyFile=function(){WebSocket.__addTask(function(){"RongBrIdge"in window?WebSocket.__flash.loadManualPolicyFile("xmlsocket://"+RongBrIdge._client.constructor.Endpoint.host.replace(/\d+?$/,"8300")):WebSocket.__flash.loadManualPolicyFile("xmlsocket://"+RongBinaryHelper.__host.replace(/\d+?$/,"8300"))})},WebSocket.Serialize=function(c,d){return WebSocket.__flash.proBufEncode(c,
d)},WebSocket.deSerialize=function(c,d){return WebSocket.__flash.proBufDecode(c,d)},WebSocket.__initialize=function(){"undefined"!=typeof window&&(window.WEB_SOCKET_SWF_LOCATION="http://res.websdk.rongcloud.cn/WebSocketMainInsecure-0.2.swf?v=20150430",window.WEB_SOCKET_DEBUG=0);if(!WebSocket.__initialized)if(WebSocket.__initialized=!0,WebSocket.__swfLocation&&(window.WEB_SOCKET_SWF_LOCATION=WebSocket.__swfLocation),window.WEB_SOCKET_SWF_LOCATION){if(!window.WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR&&
!WEB_SOCKET_SWF_LOCATION.match(/(^|\/)WebSocketMainInsecure-0\.2\.swf(\?.*)?$/)&&WEB_SOCKET_SWF_LOCATION.match(/^\w+:\/\/([^\/]+)/)){var c=RegExp.$1;location.host!=c&&l.error("[WebSocket] You must host HTML and WebSocketMain.swf in the same host ('"+location.host+"' != '"+c+"'). See also 'How to host HTML file and SWF file in different domains' section in README.md. If you use WebSocketMainInsecure.swf, you can suppress this message by WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR = true;")}c=document.createElement("div");
c.id="webSocketContainer";c.style.position="absolute";WebSocket.__isFlashLite()?(c.style.left="0px",c.style.top="0px"):(c.style.left="-100px",c.style.top="-100px");var d=document.createElement("div");d.id="webSocketFlash";c.appendChild(d);document.body.appendChild(c);swfobject.embedSWF(WEB_SOCKET_SWF_LOCATION,"webSocketFlash","1","1","10.0.0",null,null,{hasPriority:!0,swliveconnect:!0,allowScriptAccess:"always"},null,function(c){c.success||l.error("[WebSocket] swfobject.embedSWF failed")})}else l.error("[WebSocket] set WEB_SOCKET_SWF_LOCATION to location of WebSocketMain.swf")},
WebSocket.__onFlashInitialized=function(){setTimeout(function(){WebSocket.__flash=document.getElementById("webSocketFlash");WebSocket.__flash.setCallerUrl(location.href);WebSocket.__flash.setDebug(!!window.WEB_SOCKET_DEBUG);for(var c=0;c<WebSocket.__tasks.length;++c)WebSocket.__tasks[c]();WebSocket.__tasks=[]},0)},WebSocket.__onFlashEvent=function(){setTimeout(function(){try{for(var c=WebSocket.__flash.receiveEvents(),d=0;d<c.length;++d)WebSocket.__instances[c[d].webSocketId].__handleEvent(c[d])}catch(f){l.error(f)}},
0);return!0},WebSocket.__log=function(c){l.log(decodeURIComponent(c))},WebSocket.__error=function(c){l.error(decodeURIComponent(c))},WebSocket.__addTask=function(c){WebSocket.__flash?c():WebSocket.__tasks.push(c)},WebSocket.__isFlashLite=function(){if(!window.navigator||!window.navigator.mimeTypes)return!1;var c=window.navigator.mimeTypes["application/x-shockwave-flash"];return c&&c.enabledPlugin&&c.enabledPlugin.filename?c.enabledPlugin.filename.match(/flashlite/i)?!0:!1:!1},window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION||
swfobject.addDomLoadEvent(function(){WebSocket.__initialize()}))})();
(function(l){function c(a){a=parseInt(a).toString(16);if(11!=a.length)return"0";var b=a.slice(a.length-8);return a.slice(0,3)+""+b}var d={NotifyMsg:function(){var a={};this.setType=function(b){a.type=b};this.setTime=function(b){a.time=c(b)};this.toArrayBuffer=function(){return WebSocket.Serialize("NotifyMsg",a)}},SyncRequestMsg:function(){var a={};this.setSyncTime=function(b){a.syncTime=c(b)};this.setIspolling=function(b){a.ispolling=!!b};this.toArrayBuffer=function(){return WebSocket.Serialize("SyncRequestMsg",
a)}},UpStreamMessage:function(){var a={};this.setSessionId=function(b){a.sessionId=b};this.setClassname=function(b){a.classname=b};this.setContent=function(b){b&&(a.content=window.RongBinaryHelper?window.RongBinaryHelper.writeUTF(b,!0).toString():"")};this.setPushText=function(b){a.pushText=b};this.toArrayBuffer=function(){return WebSocket.Serialize("UpStreamMessage",a)}},DownStreamMessages:function(){var a={};this.setList=function(b){a.list=b};this.setSyncTime=function(b){a.syncTime=c(b)};this.toArrayBuffer=
function(){return WebSocket.Serialize("DownStreamMessages",a)}},DownStreamMessage:function(){var a={};this.setFromUserId=function(b){a.fromUserId=b};this.setType=function(b){a.type=b};this.setGroupId=function(b){a.groupId=b};this.setClassname=function(b){a.classname=b};this.setContent=function(b){b&&(a.content=window.RongBinaryHelper?window.RongBinaryHelper.writeUTF(b,!0).toString():"")};this.setDataTime=function(b){a.dataTime=c(b)};this.setStatus=function(b){a.status=c(b)};this.toArrayBuffer=function(){return WebSocket.Serialize("DownStreamMessage",
a)}},CreateDiscussionInput:function(){var a={};this.setName=function(b){a.name=b};this.toArrayBuffer=function(){return WebSocket.Serialize("CreateDiscussionInput",a)}},CreateDiscussionOutput:function(){var a={};this.setId=function(b){a.id=b};this.toArrayBuffer=function(){return WebSocket.Serialize("CreateDiscussionOutput",a)}},ChannelInvitationInput:function(){var a={};this.setUsers=function(b){a.users=b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChannelInvitationInput",a)}},LeaveChannelInput:function(){var a=
{};this.setNothing=function(b){a.nothing=b};this.toArrayBuffer=function(){return WebSocket.Serialize("LeaveChannelInput",a)}},ChannelEvictionInput:function(){var a={};this.setUser=function(b){a.user=b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChannelEvictionInput",a)}},RenameChannelInput:function(){var a={};this.setName=function(b){a.name=b};this.toArrayBuffer=function(){return WebSocket.Serialize("RenameChannelInput",a)}},ChannelInfoInput:function(){var a={};this.setNothing=function(b){a.nothing=
b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChannelInfoInput",a)}},ChannelInfoOutput:function(){var a={};this.setType=function(b){a.type=b};this.setChannelId=function(b){a.channelId=b};this.setChannelName=function(b){a.channelName=b};this.setAdminUserId=function(b){a.adminUserId=b};this.setFirstTenUserIds=function(b){a.firstTenUserIds=b};this.setOpenStatus=function(b){a.openStatus=b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChannelInfoOutput",a)}},ChannelInfosInput:function(){var a=
{};this.setPage=function(b){a.page=b};this.setNumber=function(b){a.number=b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChannelInfosOutput",a)}},ChannelInfosOutput:function(){var a={};this.setChannels=function(b){a.channels=b};this.setTotal=function(b){a.total=b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChannelInfosOutput",a)}},MemberInfo:function(){var a={};this.setUserId=function(b){a.userId=b};this.setUserName=function(b){a.userName=b};this.setUserPortrait=function(b){a.userPortrait=
b};this.setExtension=function(b){a.extension=b};this.toArrayBuffer=function(){return WebSocket.Serialize("MemberInfo",a)}},GroupMembersInput:function(){var a={};this.setPage=function(b){a.page=b};this.setNumber=function(b){a.number=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GroupMembersInput",a)}},GroupMembersOutput:function(){var a={};this.setMembers=function(b){a.members=b};this.setTotal=function(b){a.total=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GroupMembersOutput",
a)}},GetUserInfoInput:function(){var a={};this.setNothing=function(b){a.nothing=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GetUserInfoInput",a)}},GetUserInfoOutput:function(){var a={};this.setUserId=function(b){a.userId=b};this.setUserName=function(b){a.userName=b};this.setUserPortrait=function(b){a.userPortrait=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GetUserInfoOutput",a)}},GetSessionIdInput:function(){var a={};this.setNothing=function(b){a.nothing=b};this.toArrayBuffer=
function(){return WebSocket.Serialize("GetSessionIdInput",a)}},GetSessionIdOutput:function(){var a={};this.setSessionId=function(b){a.sessionId=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GetSessionIdOutput",a)}},GetQNupTokenInput:function(){var a={};this.setType=function(b){a.type=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GetQNupTokenInput",a)}},GetQNupTokenOutput:function(){var a={};this.setDeadline=function(b){a.deadline=c(b)};this.setToken=function(b){a.token=
b};this.toArrayBuffer=function(){return WebSocket.Serialize("GetQNupTokenOutput",a)}},GetQNdownloadUrlInput:function(){var a={};this.setType=function(b){a.type=b};this.setKey=function(b){a.key=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GetQNdownloadUrlInput",a)}},GetQNdownloadUrlOutput:function(){var a={};this.setDownloadUrl=function(b){a.downloadUrl=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GetQNdownloadUrlOutput",a)}},Add2BlackListInput:function(){var a={};this.setUserId=
function(b){a.userId=b};this.toArrayBuffer=function(){return WebSocket.Serialize("Add2BlackListInput",a)}},RemoveFromBlackListInput:function(){var a={};this.setUserId=function(b){a.userId=b};this.toArrayBuffer=function(){return WebSocket.Serialize("RemoveFromBlackListInput",a)}},QueryBlackListInput:function(){var a={};this.setNothing=function(b){a.nothing=b};this.toArrayBuffer=function(){return WebSocket.Serialize("QueryBlackListInput",a)}},QueryBlackListOutput:function(){var a={};this.setUserIds=
function(b){a.userIds=b};this.toArrayBuffer=function(){return WebSocket.Serialize("QueryBlackListOutput",a)}},BlackListStatusInput:function(){var a={};this.setUserId=function(b){a.userId=b};this.toArrayBuffer=function(){return WebSocket.Serialize("BlackListStatusInput",a)}},BlockPushInput:function(){var a={};this.setBlockeeId=function(b){a.blockeeId=b};this.toArrayBuffer=function(){return WebSocket.Serialize("BlockPushInput",a)}},ModifyPermissionInput:function(){var a={};this.setOpenStatus=function(b){a.openStatus=
b};this.toArrayBuffer=function(){return WebSocket.Serialize("ModifyPermissionInput",a)}},GroupInput:function(){var a={};this.setGroupInfo=function(b){for(var c=0,d=[];c<b.length;c++)d.push({id:b[c].getContent().id,name:b[c].getContent().name});a.groupInfo=d};this.toArrayBuffer=function(){return WebSocket.Serialize("GroupInput",a)}},GroupOutput:function(){var a={};this.setNothing=function(b){a.nothing=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GroupOutput",a)}},GroupInfo:function(){var a=
{};this.setId=function(b){a.id=b};this.setName=function(b){a.name=b};this.getContent=function(){return a};this.toArrayBuffer=function(){return WebSocket.Serialize("GroupInfo",a)}},GroupHashInput:function(){var a={};this.setUserId=function(b){a.userId=b};this.setGroupHashCode=function(b){a.groupHashCode=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GroupHashInput",a)}},GroupHashOutput:function(){var a={};this.setResult=function(b){a.result=b};this.toArrayBuffer=function(){return WebSocket.Serialize("GroupHashOutput",
a)}},ChrmInput:function(){var a={};this.setNothing=function(b){a.nothing=b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChrmInput",a)}},ChrmOutput:function(){var a={};this.setNothing=function(b){a.nothing=b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChrmOutput",a)}},ChrmPullMsg:function(){var a={};this.setSyncTime=function(b){a.syncTime=c(b)};this.setCount=function(b){a.count=b};this.toArrayBuffer=function(){return WebSocket.Serialize("ChrmPullMsg",a)}},RelationsInput:function(){var a=
{};this.setType=function(b){a.type=b};this.toArrayBuffer=function(){return WebSocket.Serialize("RelationsInput",a)}},RelationsOutput:function(){var a={};this.setInfo=function(b){a.info=b};this.toArrayBuffer=function(){return WebSocket.Serialize("RelationsOutput",a)}},RelationInfo:function(){var a={};this.setType=function(b){a.type=b};this.setUserId=function(b){a.userId=b};this.toArrayBuffer=function(){return WebSocket.Serialize("RelationInfo",a)}},HistoryMessageInput:function(){var a={};this.setTargetId=
function(b){a.targetId=b};this.setDataTime=function(b){a.dataTime=c(b)};this.setSize=function(b){a.size=b};this.toArrayBuffer=function(){return WebSocket.Serialize("HistoryMessageInput",a)}},HistoryMessagesOuput:function(){var a={};this.setList=function(b){a.list=b};this.setSyncTime=function(b){a.syncTime=c(b)};this.setHasMsg=function(b){a.hasMsg=b};this.toArrayBuffer=function(){return WebSocket.Serialize("HistoryMessagesOuput",a)}}},f;for(f in d)d[f].decode=function(a){return function(b){b=WebSocket.deSerialize(a,
b);var c={},d;for(d in b)c[d]=b[d],c["get"+d.charAt(0).toUpperCase()+d.slice(1)]=function(){return b[d]};return c}}(f);l.Modules=d})(window);(function(l){l.RongIMClient?RongIMClient.connect.token&&RongIMClient.getInstance().connect(RongIMClient.connect.token,RongIMClient.connect.callback):require(["RongIMClient"],function(c){c.connect.token&&c.getInstance().connect(c.connect.token,c.connect.callback)})})(this);