if(typeof(jqac) === 'undefined') { jqac = jQuery; } if (c_push_engine == "1") { jqac("
").attr("pub-key", c_push_publish).attr("sub-key", c_push_subscribe).attr("ssl", "off").attr("origin", "pubsub.pubnub.com").attr("id", "pubnub").appendTo(jqac('body')); } /** * jQuery idleTimer plugin version 0.9.100511 * http://github.com/paulirish/yui-misc/tree/ */ if(!jqac.idleTimer) { (function($){$.idleTimer=function(newTimeout,elem){var idle=false,enabled=true,timeout=30000,events='mousemove keydown DOMMouseScroll mousewheel mousedown';elem=elem||document;var toggleIdleState=function(myelem){if(typeof myelem=='number')myelem=undefined;var obj=$.data(myelem||elem,'idleTimerObj');obj.idle=!obj.idle;obj.olddate=+new Date;var event=jqac.Event($.data(elem,'idleTimer',obj.idle?"idle":"active")+'.idleTimer');event.stopPropagation();$(elem).trigger(event)},stop=function(elem){var obj=$.data(elem,'idleTimerObj');obj.enabled=false;clearTimeout(obj.tId);$(elem).unbind('.idleTimer')},handleUserEvent=function(){var obj=$.data(this,'idleTimerObj');clearTimeout(obj.tId);if(obj.enabled){if(obj.idle){toggleIdleState(this)}obj.tId=setTimeout(toggleIdleState,obj.timeout)}};var obj=$.data(elem,'idleTimerObj')||new function(){};obj.olddate=obj.olddate||+new Date;if(typeof newTimeout=="number"){timeout=newTimeout}else if(newTimeout==='destroy'){stop(elem);return this}else if(newTimeout==='getElapsedTime'){return(+new Date)-obj.olddate}$(elem).bind($.trim((events+' ').split(' ').join('.idleTimer ')),handleUserEvent);obj.idle=idle;obj.enabled=enabled;obj.timeout=timeout;obj.tId=setTimeout(toggleIdleState,obj.timeout);$.data(elem,'idleTimer',"active");$.data(elem,'idleTimerObj',obj)};$.fn.idleTimer=function(newTimeout){this[0]&&$.idleTimer(newTimeout,this[0]);return this}})(jqac); } /** * jQuery Cookie Plugin v1.4.0 * https://github.com/carhartl/jquery-cookie */ (function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else{factory(jqac);}}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s);} function decode(s){return config.raw?s:decodeURIComponent(s);} function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value));} function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\');} try{s=decodeURIComponent(s.replace(pluses,' '));}catch(e){return;} try{return config.json?JSON.parse(s):s;}catch(e){}} function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value;} var config=$.cookie=function(key,value,options){if(value!==undefined&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);} return(document.cookie=[encode(key),'=',stringifyCookieValue(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));} var result=key?undefined:{};var cookies=document.cookie?document.cookie.split('; '):[];for(var i=0,l=cookies.length;i=b?this.clear():("function"===typeof this.source.start?this.source.start(0,a,b):this.source.noteOn(0,a,b),this.playing=!0,this.paused=!1,this.time_started=(new Date).valueOf())},stop:function(){this.playing&&this.source&& ("function"===typeof this.source.stop?this.source.stop(0):this.source.noteOff(0));this.clear()},pause:function(){this.paused?this.play():this.playing&&(this.source&&this.source.stop(0),this.paused=!0)},ended:function(){this.playing=!1;this.time_ended=(new Date).valueOf();this.time_played=(this.time_ended-this.time_started)/1E3;this.time_offset+=this.time_played;if(this.time_offset>=this.end||.015>this.end-this.time_offset)this._ended(),this.clear(),this.loop&&(this.loop--,this.play())},_ended:function(){var a= {name:this.name,alias:this.alias,part:this.sprite_part,start:this.start,duration:this.end};this.ended_callback&&"function"===typeof this.ended_callback&&this.ended_callback.call(this.scope,a)},clear:function(){this.time_offset=this.time_played=0;this.playing=this.paused=!1},setVolume:function(a){this.volume=a.volume;this.gain&&(this.gain.gain.value=this.volume)}};h||(function(){var a=new Audio,b=a.canPlayType("audio/mpeg"),e=a.canPlayType("audio/ogg"),a=a.canPlayType('audio/mp4; codecs="mp4a.40.2"'), d,f;for(f=0;f=this.end&&this.playing&&(this.stop(),this._ended())},ended:function(){this.playing&&(this.stop(),this._ended())},_ended:function(){this.playing= !1;var a={name:this.name,alias:this.alias,part:this.sprite_part,start:this.start,duration:this.end};this.ended_callback&&"function"===typeof this.ended_callback&&this.ended_callback.call(this.scope,a);this.loop&&setTimeout(this.looper.bind(this),15)},looper:function(){this.loop--;this.play()},clear:function(){this.paused_time=this.played_time=this.start_time=0},setVolume:function(a){this.volume=a.volume;this.sound&&(this.sound.volume=this.volume)}})}}})(window,navigator,window.jqac||window.$); /* * Slimbox v2.05 - The ultimate lightweight Lightbox clone for jQuery **/ (function(w){var E=w(window),u,f,F=-1,n,x,D,v,y,L,r,m=!window.XMLHttpRequest,s=[],l=document.documentElement,k={},t=new Image(),J=new Image(),H,a,g,p,I,d,G,c,A,K;w(function(){w("body").append(w([H=w('').click(C)[0],a=w('')[0],G=w('')[0]]).css("display","none"));g=w('').appendTo(a).append(p=w('').append([I=w('').click(B)[0],d=w('').click(e)[0]])[0])[0];c=w('').appendTo(G).append([w('').click(C)[0],A=w('')[0],K=w('')[0],w('')[0]])[0]});w.slimbox=function(O,N,M){u=w.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},M);if(typeof O=="string"){O=[[O,N]];N=0}y=E.scrollTop()+(E.height()/2);L=u.initialWidth;r=u.initialHeight;w(a).css({top:Math.max(0,y-(r/2)),width:L,height:r,marginLeft:-L/2}).show();v=m||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(v){H.style.position="absolute"}w(H).css("opacity",u.overlayOpacity).fadeIn(u.overlayFadeDuration);z();j(1);f=O;u.loop=u.loop&&(f.length>1);return b(N)};w.fn.slimbox=function(M,P,O){P=P||function(Q){return[Q.href,Q.title]};O=O||function(){return true};var N=this;return N.unbind("click").click(function(){var S=this,U=0,T,Q=0,R;T=w.grep(N,function(W,V){return O.call(S,W,V)});for(R=T.length;Q =0)?C():(M(N,u.nextKeys)>=0)?e():(M(N,u.previousKeys)>=0)?B():null}function B(){return b(x)}function e(){return b(D)}function b(M){if(M>=0){F=M;n=f[F][0];x=(F||(u.loop?f.length:0))-1;D=((F+1)%f.length)||(u.loop?0:-1);q();a.className="lbLoading";k=new Image();k.onload=i;k.src=n}return false}function i(){a.className="";var winWidth=window.innerWidth-20;var winHeight=window.innerHeight-120;if(winWidth>winHeight){var maxSize=winHeight;}else{var maxSize=winWidth;} var my_w=k.width;var my_h=k.height;if(my_w>my_h){my_h=maxSize*my_h/my_w;my_w=maxSize;}else{my_w=maxSize*my_w/my_h;my_h=maxSize;} if(k.width>my_w||k.height>my_h){w(g).css({backgroundImage:"url("+n+")",backgroundSize:""+my_w+"px "+my_h+"px",visibility:"hidden",display:""});w(p).width(my_w);w([p,I,d]).height(my_h);} else{w(g).css({backgroundImage:"url("+n+")",backgroundSize:"",visibility:"hidden",display:""});w(p).width(k.width);w([p,I,d]).height(k.height);}w(A).html(f[F][1]||"");w(K).html((((f.length>1)&&u.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,f.length));if(x>=0){t.src=f[x][0]}if(D>=0){J.src=f[D][0]}L=g.offsetWidth;r=g.offsetHeight;var M=Math.max(0,y-(r/2));if(a.offsetHeight!=r){w(a).animate({height:r,top:M},u.resizeDuration,u.resizeEasing)}if(a.offsetWidth!=L){w(a).animate({width:L,marginLeft:-L/2},u.resizeDuration,u.resizeEasing)}w(a).queue(function(){w(G).css({width:L,top:M+r,marginLeft:-L/2,visibility:"hidden",display:""});w(g).css({display:"none",visibility:"",opacity:""}).fadeIn(u.imageFadeDuration,h)})}function h(){if(x>=0){w(I).show()}if(D>=0){w(d).show()}w(c).css("marginTop",-c.offsetHeight).animate({marginTop:0},u.captionAnimationDuration);G.style.visibility=""}function q(){k.onload=null;k.src=t.src=J.src=n;w([a,g,c]).stop(true);w([I,d,g,G]).hide()}function C(){if(F>=0){q();F=x=D=-1;w(a).hide();w(H).stop().fadeOut(u.overlayFadeDuration,j)}return false}})(jqac); if (c_push_engine == "1") { /** * ArrowPush v3.7.2 */ (function(){ var aa=void 0,v=!0,z=null,A=!1;function C(){return function(){}} window.JSON&&window.JSON.stringify||function(){function a(){try{return this.valueOf()}catch(a){return z}}function d(a){c.lastIndex=0;return c.test(a)?'"'+a.replace(c,function(a){var b=q[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function b(c,q){var s,r,f,h,j,m=e,l=q[c];l&&"object"===typeof l&&(l=a.call(l));"function"===typeof g&&(l=g.call(q,c,l));switch(typeof l){case "string":return d(l);case "number":return isFinite(l)?String(l):"null";case "boolean":case "null":return String(l); case "object":if(!l)return"null";e+=p;j=[];if("[object Array]"===Object.prototype.toString.apply(l)){h=l.length;for(s=0;s ++pa?pa:pa=1))||a}; function ra(a,d){var b=a.join(ja),c=[];if(!d)return b;H(d,function(a,b){var d="object"==typeof b?JSON.stringify(b):b;"undefined"!=typeof b&&(b!=z&&0 E()?(clearTimeout(c),c=setTimeout(b,d)):(e=E(),a())}var c,e=0;return b}function ta(a,d){var b=[];H(a||[],function(a){d(a)&&b.push(a)});return b}function ua(a,d){return a.replace(la,function(a,c){return d[c]||a})} function qa(a){var d="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=16*Math.random()|0;return("x"==a?c:c&3|8).toString(16)});a&&a(d);return d}function H(a,d){if(a&&d)if(a&&Array.isArray&&Array.isArray(a))for(var b=0,c=a.length;b a.search("-pnpres")&&e.h&&b.push(a):e.h&&b.push(a)});return b.sort()}function xa(a,d){var b=[];H(a,function(a,e){d?0>channel.search("-pnpres")&&e.h&&b.push(a):e.h&&b.push(a)});return b.sort()}function ya(){setTimeout(function(){ea||(ea=1,H(ha,function(a){a()}))},D)}var L,R=14,S=8,za=A; function Ba(a,d){var b="",c,e;if(d){c=a[15];if(16 e;e++)b+=String.fromCharCode(a[e]);return b}function Ca(a,d){var b=[],c;if(!d)try{a=unescape(encodeURIComponent(a))}catch(e){throw"Error on UTF-8 encode";}for(c=0;c x.length&&(r=16-x.length,s=[r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r]);for(r=0;r c;c++)b[c]=d[a[c]];return b}function Ma(a){var d=[],b=za?[0,13,10,7,4,1,14,11,8,5,2,15,12,9,6,3]:[0,5,10,15,4,9,14,3,8,13,2,7,12,1,6,11],c;for(c=0;16>c;c++)d[c]=a[b[c]];return d} function Na(a){var d=[],b;if(za)for(b=0;4>b;b++)d[4*b]=Qa[a[4*b]]^Sa[a[1+4*b]]^Ta[a[2+4*b]]^Ua[a[3+4*b]],d[1+4*b]=Ua[a[4*b]]^Qa[a[1+4*b]]^Sa[a[2+4*b]]^Ta[a[3+4*b]],d[2+4*b]=Ta[a[4*b]]^Ua[a[1+4*b]]^Qa[a[2+4*b]]^Sa[a[3+4*b]],d[3+4*b]=Sa[a[4*b]]^Ta[a[1+4*b]]^Ua[a[2+4*b]]^Qa[a[3+4*b]];else for(b=0;4>b;b++)d[4*b]=Va[a[4*b]]^bb[a[1+4*b]]^a[2+4*b]^a[3+4*b],d[1+4*b]=a[4*b]^Va[a[1+4*b]]^bb[a[2+4*b]]^a[3+4*b],d[2+4*b]=a[4*b]^a[1+4*b]^Va[a[2+4*b]]^bb[a[3+4*b]],d[3+4*b]=bb[a[4*b]]^a[1+4*b]^a[2+4*b]^Va[a[3+4* b]];return d}function Ka(a,d,b){var c=[],e;for(e=0;16>e;e++)c[e]=a[e]^d[b][e];return c}function Ga(a,d){var b=[],c;for(c=0;16>c;c++)b[c]=a[c]^d[c];return b} function Fa(a){var d=[],b=[],c,e,p=[];for(c=0;c a;a++)b[a]=d[c-1][a];if(0===c%S){a=b[0];e=aa;for(e=0;4>e;e++)b[e]=b[e+1];b[3]=a;b=cb(b);b[0]^=db[c/S-1]}else 6a;a++)d[c][a]=d[c-S][a]^b[a]}for(c=0;cb;b++)p[c].push(d[4*c+b][0],d[4*c+b][1],d[4*c+b][2],d[4*c+b][3])}return p}function cb(a){for(var d=0;4>d;d++)a[d]=Pa[a[d]];return a} function eb(a,d){var b=[];for(i=0;i b;b++){for(var c=a,e=b,p=aa,q=aa,p=q=0;8>p;p++)q=1==(e&1)?q^c:q,c=127 >>=1;d[b]=q}return d} var Pa=eb("637c777bf26b6fc53001672bfed7ab76ca82c97dfa5947f0add4a2af9ca472c0b7fd9326363ff7cc34a5e5f171d8311504c723c31896059a071280e2eb27b27509832c1a1b6e5aa0523bd6b329e32f8453d100ed20fcb15b6acbbe394a4c58cfd0efaafb434d338545f9027f503c9fa851a3408f929d38f5bcb6da2110fff3d2cd0c13ec5f974417c4a77e3d645d197360814fdc222a908846eeb814de5e0bdbe0323a0a4906245cc2d3ac629195e479e7c8376d8dd54ea96c56f4ea657aae08ba78252e1ca6b4c6e8dd741f4bbd8b8a703eb5664803f60e613557b986c11d9ee1f8981169d98e949b1e87e9ce5528df8ca1890dbfe6426841992d0fb054bb16",2), Oa,gb=Pa,hb=[];for(i=0;i >2],b+=lb[(d[c]&3)<<4|d[c+1]>>4],b=d[c+1]!==aa?b+lb[(d[c+1]&15)<<2|d[c+2]>>6]:b+"=",b=d[c+2]!==aa?b+lb[d[c+2]&63]:b+"=";a=b.slice(0,64);for(c=1;c >4,c[1]=(b[1]&15)<<4|b[2]>>2,c[2]=(b[2]&3)<<6|b[3],d.push(c[0],c[1],c[2]);return d=d.slice(0,d.length-d.length%16)}}; L={size:function(a){switch(a){case 128:R=10;S=4;break;case 192:R=12;S=6;break;case 256:R=14;S=8;break;default:throw"Invalid Key Size Specified:"+a;}},h2a:function(a){var d=[];a.replace(/(..)/g,function(a){d.push(parseInt(a,16))});return d},expandKey:Fa,encryptBlock:Ha,decryptBlock:Ja,Decrypt:za,s2a:Ca,rawEncrypt:Ea,rawDecrypt:Ia,dec:function(a,d,b){var a=ib.ja(a),c=a.slice(8,16),c=Da(Ca(d,b),c),d=c.key,c=c.J,a=a.slice(16,a.length);return a=Ia(a,d,c,b)},openSSLKey:Da,a2h:function(a){var d="",b;for(b= 0;b a[b]?"0":"")+a[b].toString(16);return d},enc:function(a,d,b){var c;c=[];var e;for(e=0;8>e;e++)c=c.concat(Math.floor(256*Math.random()));e=Da(Ca(d,b),c);d=e.key;e=e.J;c=[[83,97,108,116,101,100,95,95].concat(c)];a=Ca(a,b);a=Ea(a,d,e);a=c.concat(a);return ib.ka(a)},Hash:{MD5:function(a){function d(a,b){var d,c,e,f,g;e=a&2147483648;f=b&2147483648;d=a&1073741824;c=b&1073741824;g=(a&1073741823)+(b&1073741823);return d&c?g^2147483648^e^f:d|c?g&1073741824?g^3221225472^e^f:g^1073741824^ e^f:g^e^f}function b(a,b,c,e,f,g,l){a=d(a,d(d(b&c|~b&e,f),l));return d(a< >>32-g,b)}function c(a,b,c,e,f,g,l){a=d(a,d(d(b&e|c&~e,f),l));return d(a< >>32-g,b)}function e(a,b,c,e,g,f,l){a=d(a,d(d(b^c^e,g),l));return d(a< >>32-f,b)}function p(a,b,c,e,f,g,l){a=d(a,d(d(c^(b|~e),f),l));return d(a< >>32-g,b)}function q(a){var b,d,c=[];for(d=0;3>=d;d++)b=a>>>8*d&255,c=c.concat(b);return c}var g=[],t,x,s,r,f,h,j,m,l=eb("67452301efcdab8998badcfe10325476d76aa478e8c7b756242070dbc1bdceeef57c0faf4787c62aa8304613fd469501698098d88b44f7afffff5bb1895cd7be6b901122fd987193a679438e49b40821f61e2562c040b340265e5a51e9b6c7aad62f105d02441453d8a1e681e7d3fbc821e1cde6c33707d6f4d50d87455a14eda9e3e905fcefa3f8676f02d98d2a4c8afffa39428771f6816d9d6122fde5380ca4beea444bdecfa9f6bb4b60bebfbc70289b7ec6eaa127fad4ef308504881d05d9d4d039e6db99e51fa27cf8c4ac5665f4292244432aff97ab9423a7fc93a039655b59c38f0ccc92ffeff47d85845dd16fa87e4ffe2ce6e0a30143144e0811a1f7537e82bd3af2352ad7d2bbeb86d391", 8),g=a.length;t=g+8;x=16*((t-t%64)/64+1);s=[];for(f=r=0;f >>29;g=s;f=l[0];h=l[1];j=l[2];m=l[3];for(a=0;a M||!wa(F,v).length?ob=A:(ob=v,B.presence_heartbeat({callback:function(){Xa= setTimeout(f,M*D)},error:function(a){u&&u("Presence Heartbeat unable to reach Pubnub servers."+JSON.stringify(a));Xa=setTimeout(f,M*D)}}))}function h(a,b){return Ya.decrypt(a,b||N)||Ya.decrypt(a,N)||a}function j(a,b,d){var c=A;if("number"===typeof a)c=5 5 or x = 0). Current Value : "+(b||5)),b||5):a}function m(a){var b="",d=[];H(a,function(a){d.push(a)});var c=d.sort(),e; for(e in c){var f=c[e],b=b+(f+"="+encodeURIComponent(a[f]));e!=c.length-1&&(b+="&")}return b}function l(a){a||(a={});H($,function(b,d){b in a||(a[b]=d)});return a}function y(a){return Sb(a)}function W(a){function b(a,d){var c=(a&65535)+(d&65535);return(a>>16)+(d>>16)+(c>>16)<<16|c&65535}function d(a,b){return a>>>b|a<<32-b}var c;c=a.replace(/\r\n/g,"\n");for(var a="",e=0;e f?a+=String.fromCharCode(f):(127 f?a+=String.fromCharCode(f>>6|192):(a+=String.fromCharCode(f>> 12|224),a+=String.fromCharCode(f>>6&63|128)),a+=String.fromCharCode(f&63|128))}e=a;c=[];for(f=0;f<8*e.length;f+=8)c[f>>5]|=(e.charCodeAt(f/8)&255)<<24-f%32;var g=8*a.length,e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993, 338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],f=Array(64),l,h,j,m,p,q,r,t,u,s,w;c[g>>5]|=128<<24-g%32; c[(g+64>>9<<4)+15]=g;for(t=0;t u;u++)f[u]=16>u?c[u+t]:b(b(b(d(f[u-2],17)^d(f[u-2],19)^f[u-2]>>>10,f[u-7]),d(f[u-15],7)^d(f[u-15],18)^f[u-15]>>>3),f[u-16]),s=b(b(b(b(r,d(m,6)^d(m,11)^d(m,25)),m&p^~m&q),e[u]),f[u]),w=b(d(g,2)^d(g,13)^d(g,22),g&l^g&h^l&h),r=q,q=p,p=m,m=b(j,s),j=h,h=l,l=g,g=b(s,w);a[0]=b(g,a[0]);a[1]=b(l,a[1]);a[2]=b(h,a[2]);a[3]=b(j,a[3]);a[4]=b(m,a[4]);a[5]=b(p,a[5]);a[6]=b(q,a[6]);a[7]=b(r,a[7])}c=""; for(e=0;e<4*a.length;e++)c+="0123456789abcdef".charAt(a[e>>2]>>8*(3-e%4)+4&15)+"0123456789abcdef".charAt(a[e>>2]>>8*(3-e%4)&15);return c}a.jsonp&&(Bb=0);var T=a.subscribe_key||"";a.uuid||Hb.get(T+"uuid");var kb=a.leave_on_unload||0;a.xdr=Db;a.db=Hb;a.error=a.error||ub;a._is_online=Fb;a.jsonp_cb=Cb;a.hmac_SHA256=mb;L.size(256);var Ra=L.s2a("0123456789012345");a.crypto_obj={encrypt:function(a,b){if(!b)return a;var d=L.s2a(W(b).slice(0,32)),c=L.s2a(JSON.stringify(a)),d=L.rawEncrypt(c,d,Ra);return L.Base64.encode(d)|| a},decrypt:function(a,b){if(!b)return a;var d=L.s2a(W(b).slice(0,32));try{var c=L.Base64.decode(a),e=L.rawDecrypt(c,d,Ra,A);return JSON.parse(e)}catch(f){}}};a.params={pnsdk:"PubNub-JS-Web/3.7.2"};var lc=+a.windowing||10,mc=(+a.timeout||310)*D,Rb=(+a.keepalive||60)*D,qc=a.noleave||0,O=a.publish_key||"demo",w=a.subscribe_key||"demo",P=a.auth_key||"",Za=a.secret_key||"",Wb=a.hmac_SHA256,pb=a.ssl?"s":"",Aa=c_push_ssl==1?"https://arrowchat.pubnub.com":"http://www.arrowpushengine.com",J=na(Aa),Xb=na(Aa),Z=[],qb=v,nb=0,rb=0,Yb=0,Wa= 0,$a=a.restore||0,fa=0,sb=A,F={},da={},Q={},Xa=z,U=j(a.heartbeat||a.pnexpires||0,a.error),M=a.heartbeat_interval||U-3,ob=A,tc=a.no_wait_for_pending,uc=a["compatible_3.5"]||A,G=a.xdr,$=a.params||{},u=a.error||C(),sc=a._is_online||function(){return 1},I=a.jsonp_cb||function(){return 0},ga=a.db||{get:C(),set:C()},N=a.cipher_key,K=a.uuid||ga&&ga.get(w+"uuid")||"",ca,Y,Ya=a.crypto_obj||{encrypt:function(a){return a},decrypt:function(a){return a}},B={LEAVE:function(a,b,d,c){var e={uuid:K,auth:P},f=na(Aa), d=d||C(),h=c||C(),c=I();if(0 U&&(c.heartbeat=U);"0"!=a&&(c.callback=a);var e;e=wa(F,v).join(",");e=encodeURIComponent(e);var f=xa(da,v).join(",");e||(e=",");f&&(c["channel-group"]=f);G({c:a,data:l(c),timeout:5*D, url:[J,"v2","presence","sub-key",w,"channel",e,"heartbeat"],e:function(a){t(a,b,d)},d:function(a){g(a,d)}})},stop_timers:function(){clearTimeout(ca);clearTimeout(Y)},xdr:G,ready:ya,db:ga,uuid:qa,map:va,each:H,"each-channel":x,grep:ta,offline:function(){c(1,{message:"Offline. Please check your network settings."})},supplant:ua,now:E,unique:ma,updater:sa};K||(K=B.uuid());ga.set(w+"uuid",K);ca=setTimeout(p,D);Y=setTimeout(e,Rb);Xa=setTimeout(r,(M-3)*D);b();var T=B,ab;for(ab in T)T.hasOwnProperty(ab)&& (y[ab]=T[ab]);y.css=zb;y.$=tb;y.create=Ab;y.bind=wb;y.head=xb;y.search=vb;y.attr=yb;y.events=Pb;y.init=y;y.secure=y;wb("beforeunload",window,function(){if(kb)y["each-channel"](function(a){y.LEAVE(a.name,0)});return v});if(a.notest)return y;wb("offline",window,y.offline);wb("offline",document,y.offline);return y};Sb.init=Sb;Sb.secure=Sb;"complete"===document.readyState?setTimeout(ya,0):wb("load",window,function(){setTimeout(ya,0)});var Tb=Qb||{};PUBNUB=Sb({notest:1,publish_key:yb(Tb,"pub-key"),subscribe_key:yb(Tb, "sub-key"),ssl:!document.location.href.indexOf("https")||"on"==yb(Tb,"ssl"),origin:yb(Tb,"origin"),uuid:yb(Tb,"uuid")});window.jQuery&&(window.jQuery.PUBNUB=Sb);"undefined"!==typeof module&&(module.exports=PUBNUB)&&ya();var Gb=tb("pubnubs")||0;if(Qb){zb(Qb,{position:"absolute",top:-D});if("opera"in window||yb(Qb,"flash"))Qb.innerHTML=""; PUBNUB.rdx=function(a,d){if(!d)return X[a].onerror();X[a].responseText=unescape(d);X[a].onload()};X.id=D}} var Ub=PUBNUB.ws=function(a,d){if(!(this instanceof Ub))return new Ub(a,d);var b=this,a=b.url=a||"";b.protocol=d||"Sec-WebSocket-Protocol";var c=a.split("/"),c={ssl:"wss:"===c[0],origin:c[2],publish_key:c[3],subscribe_key:c[4],channel:c[5]};b.CONNECTING=0;b.OPEN=1;b.CLOSING=2;b.CLOSED=3;b.CLOSE_NORMAL=1E3;b.CLOSE_GOING_AWAY=1001;b.CLOSE_PROTOCOL_ERROR=1002;b.CLOSE_UNSUPPORTED=1003;b.CLOSE_TOO_LARGE=1004;b.CLOSE_NO_STATUS=1005;b.CLOSE_ABNORMAL=1006;b.onclose=b.onerror=b.onmessage=b.onopen=b.onsend= C();b.binaryType="";b.extensions="";b.bufferedAmount=0;b.trasnmitting=A;b.buffer=[];b.readyState=b.CONNECTING;if(!a)return b.readyState=b.CLOSED,b.onclose({code:b.CLOSE_ABNORMAL,reason:"Missing URL",wasClean:v}),b;b.o=PUBNUB.init(c);b.o.M=c;b.M=c;b.o.subscribe({restore:A,channel:c.channel,disconnect:b.onerror,reconnect:b.onopen,error:function(){b.onclose({code:b.CLOSE_ABNORMAL,reason:"Missing URL",wasClean:A})},callback:function(a){b.onmessage({data:a})},connect:function(){b.readyState=b.OPEN;b.onopen()}})}; Ub.prototype.send=function(a){var d=this;d.o.publish({channel:d.o.M.channel,message:a,callback:function(a){d.onsend({data:a})}})};var Vb; if(!(Vb=V)){var Zb=Math,$b={},ac=$b.t={},bc=C(),cc=ac.O={extend:function(a){bc.prototype=this;var d=new bc;a&&d.da(a);d.hasOwnProperty("init")||(d.a=function(){d.N.a.apply(this,arguments)});d.a.prototype=d;d.N=this;return d},create:function(){var a=this.extend();a.a.apply(a,arguments);return a},a:C(),da:function(a){for(var d in a)a.hasOwnProperty(d)&&(this[d]=a[d]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},g:function(){return this.a.prototype.extend(this)}},ec=ac.u=cc.extend({a:function(a, d){a=this.f=a||[];this.b=d!=aa?d:4*a.length},toString:function(a){return(a||dc).stringify(this)},concat:function(a){var d=this.f,b=a.f,c=this.b,a=a.b;this.s();if(c%4)for(var e=0;e>>2]|=(b[e>>>2]>>>24-8*(e%4)&255)<<24-8*((c+e)%4);else if(65535 >>2]=b[e>>>2];else d.push.apply(d,b);this.b+=a;return this},s:function(){var a=this.f,d=this.b;a[d>>>2]&=4294967295<<32-8*(d%4);a.length=Zb.ceil(d/4)},g:function(){var a=cc.g.call(this);a.f=this.f.slice(0);return a}, random:function(a){for(var d=[],b=0;b>>2]>>>24-8*(c%4)&255;b.push((e>>>4).toString(16));b.push((e&15).toString(16))}return b.join("")},parse:function(a){for(var d=a.length,b=[],c=0;c >>3]|=parseInt(a.substr(c,2),16)<<24-4*(c%8);return new ec.a(b,d/2)}},gc=fc.ia={stringify:function(a){for(var d=a.f,a=a.b,b=[],c=0;c>> 2]>>>24-8*(c%4)&255));return b.join("")},parse:function(a){for(var d=a.length,b=[],c=0;c >>2]|=(a.charCodeAt(c)&255)<<24-8*(c%4);return new ec.a(b,d)}},hc=fc.U={stringify:function(a){try{return decodeURIComponent(escape(gc.stringify(a)))}catch(d){throw Error("Malformed UTF-8 data");}},parse:function(a){return gc.parse(unescape(encodeURIComponent(a)))}},ic=ac.fa=cc.extend({reset:function(){this.k=new ec.a;this.q=0},v:function(a){"string"==typeof a&&(a=hc.parse(a));this.k.concat(a);this.q+= a.b},A:function(a){var d=this.k,b=d.f,c=d.b,e=this.C,p=c/(4*e),p=a?Zb.ceil(p):Zb.max((p|0)-this.ba,0),a=p*e,c=Zb.min(4*a,c);if(a){for(var q=0;qxc;){var yc;a:{yc=wc;for(var zc=kc.sqrt(yc),Ac=2;Ac<=zc;Ac++)if(!(yc%Ac)){yc=A;break a}yc=v}yc&&(8>xc&&(rc[xc]=4294967296*(kc.pow(wc,0.5)-(kc.pow(wc,0.5)|0))|0),vc[xc]=4294967296*(kc.pow(wc,1/3)-(kc.pow(wc,1/3)|0))|0,xc++);wc++} var Bc=[],nc=nc.T=pc.extend({Z:function(){this.n=new oc.a(rc.slice(0))},Y:function(a,d){for(var b=this.n.f,c=b[0],e=b[1],p=b[2],q=b[3],g=b[4],t=b[5],x=b[6],s=b[7],r=0;64>r;r++){if(16>r)Bc[r]=a[d+r]|0;else{var f=Bc[r-15],h=Bc[r-2];Bc[r]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+Bc[r-7]+((h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10)+Bc[r-16]}f=s+((g<<26|g>>>6)^(g<<21|g>>>11)^(g<<7|g>>>25))+(g&t^~g&x)+vc[r]+Bc[r];h=((c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22))+(c&e^c&p^e&p);s=x;x=t;t=g;g=q+f|0;q=p;p=e;e=c;c=f+h| 0}b[0]=b[0]+c|0;b[1]=b[1]+e|0;b[2]=b[2]+p|0;b[3]=b[3]+q|0;b[4]=b[4]+g|0;b[5]=b[5]+t|0;b[6]=b[6]+x|0;b[7]=b[7]+s|0},X:function(){var a=this.k,d=a.f,b=8*this.q,c=8*a.b;d[c>>>5]|=128<<24-c%32;d[(c+64>>>9<<4)+14]=kc.floor(b/4294967296);d[(c+64>>>9<<4)+15]=b;a.b=4*d.length;this.A();return this.n},g:function(){var a=pc.g.call(this);a.n=this.n.g();return a}});V.T=pc.V(nc);V.ha=pc.W(nc);var Cc=V.I.U; V.B.P=V.t.O.extend({a:function(a,d){a=this.p=new a.a;"string"==typeof d&&(d=Cc.parse(d));var b=a.C,c=4*b;d.b>c&&(d=a.j(d));d.s();for(var e=this.ca=d.g(),p=this.aa=d.g(),q=e.f,g=p.f,t=0;t>>2]>>>24-8*(e%4)&255)<<16|(d[e+1>>>2]>>>24-8*((e+1)%4)&255)<<8|d[e+2>>>2]>>>24-8*((e+2)%4)&255,q=0;4>q&&e+0.75*q>>6*(3-q)&63));if(d=c.charAt(64))for(;a.length%4;)a.push(d);return a.join("")},parse:function(a){var d=a.length,b=this.z,c=b.charAt(64);c&&(c=a.indexOf(c),-1!=c&&(d=c));for(var c=[],e=0,p=0;p >>2]|=(b.indexOf(a.charAt(p-1))<<2*(p%4)|b.indexOf(a.charAt(p))>>> 6-2*(p%4))<<24-8*(e%4),e++);return Dc.create(c,e)},z:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}; })(); } /** * Anchorme.js 0.6.0 */ !function(e){"use strict";String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var n=i.indexOf(e,t);return-1!==n&&n===t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e});var t={};t.occurrences=function(e,t,i){if(e+="",t+="",t.length<=0)return e.length+1;for(var n=0,r=0,a=i?1:t.length;;){if(r=e.indexOf(t,r),!(r>=0))break;n++,r+=a}return n},t.dontbreakHTML=function(e){for(var t=["src","href","cite","formaction","icon","manifest","poster","codebase","background","profile","usemap"],i=t.length;i--;){var n=[t[i]+'=" ',t[i]+"=' "],r=[t[i]+'="',t[i]+"='"];e=e.split(n[0]).join(r[0]),e=e.split(n[1]).join(r[1])}return e},t.removeCharifItEndsWithIt=function(e,i){return e.endsWith(i)?(e=e.substring(0,e.length-1),t.removeCharifItEndsWithIt(e,i)):e},t.TLDs=[".com",".org",".edu",".gov",".uk",".net",".ca",".de",".jp",".fr",".au",".us",".ru",".ch",".it",".nl",".se",".no",".es",".io",".aero"],t.checks={},t.checks.ip=function(e){if(t.occurrences(e,".")>2){var i=e.split("."),n=i[0],r=i[1],a=i[2];if(i[3].indexOf(":")>0)var s=i[3].indexOf(":"),o=i[3].substring(0,s),l=i[3].substring(s);else if(i[3].indexOf("/")>0)var c=i[3].indexOf("/"),o=i[3].substring(0,c),l=i[3].substring(c);else var o=i[3],l=!1;return(l===!1||"/"===l.charAt(0)||":"===l.charAt(0))&&!isNaN(n)&&!isNaN(r)&&!isNaN(a)&&!isNaN(o)&&254>=n-1&&254>=r-1&&254>=a-1&&254>=o-1&&n.length>0&&r.length>0&&a.length>0&&o.length>0?!0:!1}return!1},t.checks.email=function(e,i){if(e=e.toLowerCase(),1==t.occurrences(e,"@")){e=t.removeCharifItEndsWithIt(e,"."),e=t.removeCharifItEndsWithIt(e,","),e=t.removeCharifItEndsWithIt(e,";");for(var n=e.indexOf("@"),r=e.substring(0,n),a=e.substring(n+1,e.length),s=!0,o=0;o ")>-1||e.indexOf("o;o++){var u=t.TLDs[o];e.endsWith(u)&&(o=t.TLDs.length,d=!0)}return d===!0?!0:!1}return!1}return!1},t.checks.url=function(e,i){if(e=e.toLowerCase(),e.indexOf(".")>0&&(e.indexOf("/")>3||e.indexOf("/")<0)){if(e=t.removeCharifItEndsWithIt(e,"."),e=t.removeCharifItEndsWithIt(e,","),e=t.removeCharifItEndsWithIt(e,";"),1==t.occurrences(e,".")&&e.indexOf(".")===e.length-1)return!1;var n=!0;if(e.indexOf("/")>3){var r=e.indexOf("/"),a=e.substring(0,r);if(a.indexOf("..")>-1)return!1;for(var s=0;s -1)return!1;for(var s=0;s s;s++){var l=t.TLDs[s];if(e.endsWith(l)||e.indexOf(l+"/")>-1||e.indexOf(l+":")>-1)return s=t.TLDs.length,!0}return!1}return!1}return!1},t.order=function(e,i){var n=e.split(" "),r=function(e){for(var t=0;t -1&&""!==e[t])||"("===e[t-1]&&")"===e[t+1]||"("!==e[t+1]&&")"!==e[t+1]||(e[t]=e[t]+e[t+1],"string"==typeof e[t+2]&&(e[t]=e[t]+e[t+2]),"string"==typeof e[t+3]&&(e[t]=e[t]+e[t+3]),"string"==typeof e[t+4]&&(e[t]=e[t]+e[t+4]),e.splice(t+1,4),r(e))},a=function(e){for(var t=0;t -1&&""!==e[t])||"["===e[t-1]&&"]"===e[t+1]||"["!==e[t+1]&&"]"!==e[t+1]||(e[t]=e[t]+e[t+1],"string"==typeof e[t+2]&&(e[t]=e[t]+e[t+2]),"string"==typeof e[t+3]&&(e[t]=e[t]+e[t+3]),"string"==typeof e[t+4]&&(e[t]=e[t]+e[t+4]),e.splice(t+1,4),r(e))};r(n),a(n);for(var s=0;s 0&&(">"!==n[l]||"/a"!==n[l-1]||"<"!==n[l-2]);l--)if("a"===n[l]&&"<"===n[l-1]){o=!0;break}if(!o){var c=n[s],d=!1,u=!1;if(c.indexOf(".")>-1){for(var f=!0,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=%",g=0;g 0?(d=!0,u=i.defaultProtocol):t.checks.email(c,i.TLDs)&&i.emails&&c.indexOf(".")>-1&&c.indexOf("@")>-1?(d=!0,u="mailto:"):t.checks.url(c,i.TLDs)&&i.urls&&(d=!0,u=i.defaultProtocol),d)){var p=u?u+c:c;p=t.removeCharifItEndsWithIt(p,"."),p=t.removeCharifItEndsWithIt(p,","),p=t.removeCharifItEndsWithIt(p,";");var b=i.truncate<=1?c:c.substring(0,i.truncate)+"...";if(i.attributes){n[s]=""+b+""}else n[s]=""+b+""}}}}return n.join(" ")},t.js=function(e,i){"object"!=typeof i?i={attributes:!1,html:!0,ips:!0,emails:!0,urls:!0,TLDs:20,truncate:0,defaultProtocol:"http://"}:("object"!=typeof i.attributes&&(i.attributes=!1),"boolean"!=typeof i.html&&(i.html=!0),"boolean"!=typeof i.ips&&(i.ips=!0),"boolean"!=typeof i.emails&&(i.emails=!0),"boolean"!=typeof i.urls&&(i.urls=!0),"number"!=typeof i.TLDs&&(i.TLDs=20),"string"!=typeof i.defaultProtocol&&(i.defaultProtocol="http://"),"number"!=typeof i.truncate&&(i.truncate=0)),i.html&&(e.indexOf(" -1||e.indexOf("
-1||e.indexOf("-1||e.indexOf("