lightstreamer-jms-client
Version:
This package includes the resources needed to write a client for Lightstreamer JMS Extender.
116 lines • 229 kB
JavaScript
/*
* LIGHTSTREAMER - www.lightstreamer.com
* Lightstreamer JMS Extender JavaScript Client
* Version 6.2.7 build 1679.2
* Copyright (c) 2004-2015 Weswit Srl. All Rights Reserved.
* CommonJS
*/
function define(a,c,e){define.a[a]={e:c,d:e}}define.a={};define.b=function(a,c,e){for(var g=[],f=0;f<a.length;f++){var d=define.a[a[f]];if(!d)throw"All the modules must already be 'defined' Async load not supported: use a full-featured AMD loader like requirejs";d.c||define.b(d.e,d.d,a[f]);g.push(d.c)}a=c.apply(null,g);if(e)define.a[e].c=a};function oneRequire(a,c){define.b(a,c,null)};(function(){function u(){return function(h){return h}}function E(){return function(){}}function G(h){return function(f){this[h]=f}}function L(h){return function(){return this[h]}}function V(h){return function(){return h}}
define("IllegalStateException",[],function(){function h(f){this.name="IllegalStateException";this.message=f}h.prototype={toString:function(){return["[",this.name,this.message,"]"].join("|")}};return h});
define("Environment",["IllegalStateException"],function(h){var f="undefined"!==typeof window&&"undefined"!==typeof navigator&&"undefined"!==typeof document,e="undefined"!==typeof importScripts,d="object"==typeof process&&(/node(\.exe)?$/.test(process.execPath)||process.node&&process.v8||process.versions&&process.versions.node&&process.versions.v8);if(f&&!document.getElementById)throw new h("Not supported browser");var b={isBrowserDocument:function(){return f},isBrowser:function(){return!d&&(f||e)},
isNodeJS:function(){return!f&&d},isWebWorker:function(){return!f&&!d&&e},jy:function(){return!f&&!d&&!e},browserDocumentOrDie:function(){if(!this.isBrowserDocument())throw new h("Trying to load a browser-only module on non-browser environment");}};b.isBrowserDocument=b.isBrowserDocument;b.isBrowser=b.isBrowser;b.isNodeJS=b.isNodeJS;b.isWebWorker=b.isWebWorker;b.browserDocumentOrDie=b.browserDocumentOrDie;return b});
define("Helpers",["Environment"],function(h){var f=/^\s*([\s\S]*?)\s*$/,e=/,/,d=/\./,b={getTimeStamp:function(){return(new Date).getTime()},randomG:function(b){return Math.round(Math.random()*(b||1E3))},trim:function(b){return b.replace(f,"$1")},getNumber:function(b,a){if(b){if(!b.replace)return b;a?(b=b.replace(d,""),b=b.replace(e,".")):b=b.replace(e,"");return new Number(b)}return 0},isArray:function(b){return b.join&&"function"==typeof b.join},addEvent:function(b,a,d){if(!h.isBrowserDocument())return!1;
"undefined"!=typeof b.addEventListener?b.addEventListener(a,d,!1):"undefined"!=typeof b.attachEvent&&b.attachEvent("on"+a,d);return!0},removeEvent:function(b,a,d){if(!h.isBrowserDocument())return!1;"undefined"!=typeof b.removeEventListener?b.removeEventListener(a,d,!1):"undefined"!=typeof b.detachEvent&&b.detachEvent("on"+a,d);return!0}};b.getTimeStamp=b.getTimeStamp;b.randomG=b.randomG;b.trim=b.trim;b.getNumber=b.getNumber;b.isArray=b.isArray;b.addEvent=b.addEvent;b.removeEvent=b.removeEvent;return b});
define("BrowserDetection",["Environment"],function(h){function f(b){var c=a;return function(){null===c&&(c=-1<g.indexOf(b));return c}}function e(b){var c=a;return function(){if(null===c){c=!0;for(var a=0;a<b.length;a++)c=c&&b[a]()}return c}}function d(b,c){var d=a,e=a;return function(a,g){null===d&&(e=(d=b())?c():null);return d?a&&e?!0===g?e<=a:!1===g?e>=a:e==a:!0:!1}}function b(a){return function(){var b=a.exec(g);return b&&2<=b.length?b[1]:null}}function c(a){return function(){return!a()}}var a=
h.isBrowser()?null:!1,g=h.isBrowser()?navigator.userAgent.toLowerCase():null,l=a;h={isProbablyRekonq:f("rekonq"),isProbablyAWebkit:f("webkit"),isProbablyPlaystation:f("playstation 3"),isProbablyChrome:d(f("chrome/"),b(RegExp("chrome/([0-9]+)","g"))),isProbablyAKhtml:function(){null===l&&(l=document.childNodes&&!document.all&&!navigator.RC&&!navigator.JC);return l},isProbablyKonqueror:d(f("konqueror"),b(RegExp("konqueror/([0-9.]+)","g"))),isProbablyIE:d(f("msie"),b(RegExp("msie\\s([0-9]+)[.;]","g"))),
isProbablyFX:d(f("firefox"),b(/firefox\/(\d+\.?\d*)/)),isProbablyOldOpera:d(function(){return"undefined"!=typeof opera},function(){if(opera.version){var a=opera.version(),a=a.replace(RegExp("[^0-9.]+","g"),"");return parseInt(a)}return 7})};h.isProbablyAndroidBrowser=e([f("android"),h.isProbablyAWebkit,c(h.isProbablyChrome)]);h.isProbablyOperaMobile=e([h.isProbablyOldOpera,f("opera mobi")]);h.isProbablyApple=d(e([f("safari"),function(b){var c=a;return function(){if(null===c){c=!1;for(var a=0;a<b.length;a++)c=
c||b[a]()}return c}}([f("ipad"),f("iphone"),f("ipod"),e([c(h.isProbablyAndroidBrowser),c(h.isProbablyChrome),c(h.isProbablyRekonq)])])]),b(/version\/(\d+\.?\d*)/));h.isProbablyRekonq=h.isProbablyRekonq;h.isProbablyChrome=h.isProbablyChrome;h.isProbablyAWebkit=h.isProbablyAWebkit;h.isProbablyPlaystation=h.isProbablyPlaystation;h.isProbablyAndroidBrowser=h.isProbablyAndroidBrowser;h.isProbablyOperaMobile=h.isProbablyOperaMobile;h.isProbablyApple=h.isProbablyApple;h.isProbablyAKhtml=h.isProbablyAKhtml;
h.isProbablyKonqueror=h.isProbablyKonqueror;h.isProbablyIE=h.isProbablyIE;h.isProbablyFX=h.isProbablyFX;h.isProbablyOldOpera=h.isProbablyOldOpera;return h});
define("List",[],function(){function h(){this.data=[]}h.prototype={add:function(f){this.data.push(f)},remove:function(f){f=this.find(f);if(0>f)return!1;this.data.splice(f,1);return!0},contains:function(f){return 0<=this.find(f)},find:function(f){for(var e=0;e<this.data.length;e++)if(this.data[e]===f)return e;return-1},forEach:function(f){for(var e=0;e<this.data.length;e++)f(this.data[e])},asArray:function(){return[].concat(this.data)},clean:function(){this.data=[]}};h.prototype.add=h.prototype.add;
h.prototype.remove=h.prototype.remove;h.prototype.forEach=h.prototype.forEach;h.prototype.asArray=h.prototype.asArray;h.prototype.clean=h.prototype.clean;return h});
define("EnvironmentStatus",["Helpers","BrowserDetection","Environment","List"],function(h,f,e,d){function b(a,b,c,d,e){return function(){a[b]||(a[c]=!0,d.forEach(function(a){try{if(a[e])a[e]();else a()}catch(b){}}),"preunloading"!=b&&d.clean(),a[b]=!0,a[c]=!1)}}function c(a,b){setTimeout(function(){if(a[b])a[b]();else a()},0)}function a(a,b,c,d){setTimeout(function(){c?d?a.apply(c,d):a.apply(c):d?a.apply(null,d):a()},b)}function g(){m=!0}var l=new d,n=new d,k=new d,m=!1,p={vh:"onloadDone",Gs:"onloadInprogress",
ci:"unloaded",Qo:"unloading",Ps:"preunloading"};d={};for(var q in p)d[p[q]]=q;q={vh:!1,Gs:!1,ci:!1,Qo:!1,Ps:!1,isLoaded:L("vh"),isUnloaded:L("ci"),isUnloading:L("Qo"),addOnloadHandler:function(a){this.ly()?n.add(a):c(a,"onloadEvent")},addUnloadHandler:function(a){this.my()?l.add(a):c(a,"unloadEvent")},addBeforeUnloadHandler:function(a){k.add(a);this.Ps&&c(a,"preUnloadEvent")},removeOnloadHandler:function(a){n.remove(a)},removeUnloadHandler:function(a){l.remove(a)},removeBeforeUnloadHandler:function(a){k.remove(a)},
ly:function(){return!(this.vh||this.Gs)},my:function(){return!(this.ci||this.Qo)},Ou:function(){h.addEvent(window,"unload",this.ov);h.addEvent(window,"beforeunload",this.Qu);if(document&&"undefined"!=typeof document.readyState){if("COMPLETE"==document.readyState.toUpperCase()){this.qi();return}a(this.eq,1E3,this)}else if(this.Br()){this.qi();return}if(!h.addEvent(window,"load",this.dk))this.qi();else if(f.isProbablyOldOpera()){var b=!1;f.isProbablyOldOpera(9,!1)&&(b=!0,h.addEvent(document,"DOMContentLoaded",
g));a(this.dq,1E3,this,[b])}},qi:function(){a(this.dk,0)},eq:function(){this.vh||("COMPLETE"==document.readyState.toUpperCase()?this.dk():a(this.eq,1E3,this))},dq:function(b){this.vh||(m||!b&&this.Br()?this.dk():a(this.dq,1E3,this,[b]))},Br:function(){return"undefined"!=typeof document.getElementsByTagName&&"undefined"!=typeof document.getElementById&&(null!=document.getElementsByTagName("body")[0]||null!=document.body)}};q.dk=b(q,d.onloadDone,d.onloadInprogress,n,"onloadEvent");q.ov=b(q,d.unloaded,
d.unloading,l,"unloadEvent");q.Qu=b(q,d.preunloading,d.preunloading,k,"preUnloadEvent");e.isBrowserDocument()?q.Ou():q.qi();q.addOnloadHandler=q.addOnloadHandler;q.addUnloadHandler=q.addUnloadHandler;q.addBeforeUnloadHandler=q.addBeforeUnloadHandler;q.removeOnloadHandler=q.removeOnloadHandler;q.removeUnloadHandler=q.removeUnloadHandler;q.removeBeforeUnloadHandler=q.removeBeforeUnloadHandler;q.isLoaded=q.isLoaded;q.isUnloaded=q.isUnloaded;q.isUnloading=q.isUnloading;return q});
define("Global",["EnvironmentStatus","Environment"],function(h,f){var e={Wt:h,toString:function(){return"[Lightstreamer javascript client version "+this.version+" build "+this.build+"]"},xa:function(d,b,c,a){d=(a||"_")+d;this[d]||(this[d]={});this[d][b]=c;return"Lightstreamer."+d+"."+b},Mx:function(d,b,c){d=(c||"_")+d;return this[d]&&this[d][b]},Kl:function(d,b,c){d=(c||"_")+d;if(this[d]&&this[d][b]){delete this[d][b];for(var a in this[d])return;delete this[d]}},fv:function(d,b){var c=(b||"_")+d;
this[c]&&delete this[c]},uj:{},Cu:function(d){var b=this.uj,c=d.nf;b[c]||(b[c]=[]);b[c].push(d)},xA:function(d){var b=d.nf,c=this.uj[b];if(c){for(var a=0;a<c.length;a++)c[a]==d&&c.splice(a,1);0==c.length&&delete c[b]}},sx:function(d){return this.uj[d]&&(d=this.uj[d])&&0<d.length?d[0]:null}};f.isBrowserDocument()&&(window.OpenAjax&&OpenAjax.hub&&OpenAjax.hub.registerLibrary("Lightstreamer","http://www.lightstreamer.com/",e.version),window.Lightstreamer=e);e.version="6.2.7";e.build="1679.2";return e});
define("Lightstreamer",["Global"],u());
define("LoggerProxy",["Helpers"],function(h){function f(b){this.no(b)}function e(){return!1}var d={error:e,warn:e,info:e,debug:e,fatal:e,isDebugEnabled:e,isInfoEnabled:e,isWarnEnabled:e,isErrorEnabled:e,isFatalEnabled:e};f.prototype={no:function(b){this.Qa=b||d},logFatal:function(b){this.dy()&&(b+=this.we(arguments,1),this.fatal(b))},fatal:function(b,c){this.Qa.fatal(b,c)},dy:function(){return!this.Qa.isFatalEnabled||this.Qa.isFatalEnabled()},logError:function(b){this.Ar()&&(b+=this.we(arguments,
1),this.error(b))},logErrorExc:function(b,c){this.Ar()&&(c+=this.we(arguments,2),this.error(c,b))},error:function(b,c){this.Qa.error(b,c)},Ar:function(){return!this.Qa.isErrorEnabled||this.Qa.isErrorEnabled()},logWarn:function(b){this.yy()&&(b+=this.we(arguments,1),this.warn(b))},warn:function(b,c){this.Qa.warn(b,c)},yy:function(){return!this.Qa.isWarnEnabled||this.Qa.isWarnEnabled()},logInfo:function(b){this.isInfoLogEnabled()&&(b+=this.we(arguments,1),this.info(b))},info:function(b,c){this.Qa.info(b,
c)},isInfoLogEnabled:function(){return!this.Qa.isInfoEnabled||this.Qa.isInfoEnabled()},logDebug:function(b){this.isDebugLogEnabled()&&(b+=this.we(arguments,1),this.debug(b))},debug:function(b,c){this.Qa.debug(b,c)},isDebugLogEnabled:function(){return!this.Qa.isDebugEnabled||this.Qa.isDebugEnabled()},we:function(b,c){for(var a=" {",d=c?c:0;d<b.length;d++)try{var e=b[d];null===e?a+="NULL":0>e.length?a+="*":null!=e.charAt?a+=e:e.message?(a+=e.message,e.stack&&(a+="\n"+e.stack+"\n")):e[0]==e?a+=e:h.isArray(e)?
(a+="(",a+=this.we(e),a+=")"):a+=e;a+=" "}catch(f){a+="missing-parameter "}return a+"}"}};f.prototype.debug=f.prototype.debug;f.prototype.isDebugLogEnabled=f.prototype.isDebugLogEnabled;f.prototype.logDebug=f.prototype.logDebug;f.prototype.info=f.prototype.info;f.prototype.isInfoLogEnabled=f.prototype.isInfoLogEnabled;f.prototype.logInfo=f.prototype.logInfo;f.prototype.warn=f.prototype.warn;f.prototype.isWarnEnabled=f.prototype.isWarnEnabled;f.prototype.logWarn=f.prototype.logWarn;f.prototype.error=
f.prototype.error;f.prototype.isErrorEnabled=f.prototype.isErrorEnabled;f.prototype.logError=f.prototype.logError;f.prototype.logErrorExc=f.prototype.logErrorExc;f.prototype.fatal=f.prototype.fatal;f.prototype.isFatalEnabled=f.prototype.isFatalEnabled;f.prototype.logFatal=f.prototype.logFatal;return f});
define("IllegalArgumentException",[],function(){function h(f){this.name="IllegalArgumentException";this.message=f}h.prototype={toString:function(){return["[",this.name,this.message,"]"].join("|")}};return h});
define("LoggerManager",["LoggerProxy","IllegalArgumentException"],function(h,f){var e={},d=null,b={setLoggerProvider:function(b){if(b&&!b.getLogger)throw new f("The given object is not a LoggerProvider");d=b;for(var a in e)d?e[a].no(d.getLogger(a)):e[a].no(null)},getLoggerProxy:function(b){e[b]||(e[b]=d?new h(d.getLogger(b)):new h);return e[b]},resolve:u()};b.setLoggerProvider=b.setLoggerProvider;b.getLoggerProxy=b.getLoggerProxy;b.resolve=b.resolve;return b});
define("lscA",["Environment"],function(h){return{Xd:1E3,pp:200,lp:1,Bc:0,mp:2,dp:3,op:4,cl:"1679.2",wg:!h.isBrowserDocument()||"http:"!=document.location.protocol&&"https:"!=document.location.protocol?"file:":document.location.protocol,eb:"lightstreamer.stream",Te:"lightstreamer.protocol",Yd:"lightstreamer.session",zg:"lightstreamer.subscriptions",bl:"lightstreamer.actions",Ra:"lightstreamer.sharing",kp:"lightstreamer.flash",FC:"lightstreamer.stats",Zd:"Lightstreamer_",gl:"lightstreamer",Cc:"UNORDERED_MESSAGES",
Ag:{length:-1,toString:V("[UNCHANGED]")},CONNECTING:"CONNECTING",Ib:"CONNECTED:",yg:"STREAM-SENSING",fi:"WS-STREAMING",vg:"HTTP-STREAMING",Ve:"STALLED",Cg:"WS-POLLING",Wd:"HTTP-POLLING",ec:"DISCONNECTED",Bg:"DISCONNECTED:WILL-RETRY",kl:"WS",ei:"HTTP",il:"RAW",el:"DISTINCT",ug:"COMMAND",hl:"MERGE"}});
define("lscF",["LoggerManager","Helpers","lscA"],function(h,f,e){function d(a){this.Ha=null;this.vt(a)}function b(a,g){return"var callFun \x3d "+function(a,g){window.name!=a||(window!=top||window.Lightstreamer&&window.Lightstreamer.Wt)||(window.name=g,window.close())}.toString()+"; callFun('"+a+"', '"+g+"');"}function c(a,g,b,c){this.log=a;this.Jy=g;this.Uh=b;this.iq=c}var a=0,g=0,l=!1,n=!1,k=h.getLoggerProxy(e.Ra),m=[];d.prototype={vt:function(a){k.logDebug(h.resolve(3));this.Ha=a;this.EA()||
this.Zb()},Zb:function(){k.logDebug(h.resolve(4));this.Ha=null;delete m[this.aA]},EA:function(){try{return this.Ha?!0:!1}catch(a){return!1}},Xh:function(){return this.hC()},hC:function(){k.logDebug(h.resolve(5));var a=1;try{if(null==this.Ha)return a=2,new c("null",a,!1,!0);if(this.Ha.closed)return a=3,this.Zb(),new c("closed",a,!1,!0);if(!this.Ha.Lightstreamer)return a=4,this.Zb(),new c("not global",a,!1,!1);a=5;return new c("OK",a,!0,!1)}catch(g){return this.Zb(),new c("exception "+a+" "+g,6,!1,
!0)}},gn:function(c,d,e){var t=null;try{m[c]&&(t=m[c])}catch(r){t=null}if(t&&(delete m[c],this.Rr(t,c,d)))return!0;a:{var t="javascript:"+('eval("'+b(c,c+"__TRASH")+'; ")'),D=null;k.logDebug(h.resolve(1));if(n)t=!1;else{try{var z;if(window.GC){var y=!0;-5>g-a&&(y=!1);window.gu&&y?(a++,z=e>f.getTimeStamp()?window.gu(t,c,"height\x3d100,width\x3d100",!0):!1):(l||(l=!0,k.logWarn(h.resolve(0))),a=0,z=null)}else z=e>f.getTimeStamp()?window.open(t,c,"height\x3d100,width\x3d100",!0):!1;D=z}catch(w){k.logDebug(h.resolve(2),
w);t=!1;break a}if(D)try{g++}catch(x){n=!0}t=D}}if(!1===t)return k.logDebug(h.resolve(6)),!1;if(!t)return k.logDebug(h.resolve(7)),!0;k.logDebug(h.resolve(8));this.Rr(t,c,d);return!0},Rr:function(a,g,c){try{k.logDebug(h.resolve(9));if(a.closed)return k.logDebug(h.resolve(10)),!1;var b=a;if(c){if(a==a.top&&!a.Lightstreamer){k.logDebug(h.resolve(11));try{c=trashName,a.name!=g&&a.name!=c||a.close()}catch(d){k.logDebug(h.resolve(12),d)}return!1}b=a.parent;if(null==b)return k.logDebug(h.resolve(13)),!1}if(!b.Lightstreamer)return k.logDebug(h.resolve(14)),
!1;if(!b.Lightstreamer.Wt)return k.logDebug(h.resolve(15)),!1;k.logDebug(h.resolve(16));this.Ha=b;this.aA=g;m[g]=a}catch(e){return k.logDebug(h.resolve(17),e),!1}return!0}};c.prototype.toString=function(){return["[|TestResult",this.log,this.Jy,this.Uh,this.iq,"]"].join("|")};d.hu=c;return d});
define("Executor",["Helpers","EnvironmentStatus","Environment"],function(h,f,e){function d(){}function b(a,b){return a.time===b.time?a.Ln-b.Ln:a.time-b.time}function c(){y=!1;g()}function a(){if(t)clearInterval(t);else if(e.isBrowserDocument()&&"undefined"!=typeof postMessage){z=function(){window.postMessage("Lightstreamer.run",D)};var a=function(a){("Lightstreamer.run"==a.data&&"*"==D||a.origin==D)&&c()};h.addEvent(window,"message",a);y||(y=!0,z());!1==y&&(h.removeEvent(window,"message",a),z=d)}else e.isNodeJS()&&
("undefined"!=typeof process&&process.nextTick)&&(z=function(){process.nextTick(c)});t=setInterval(g,l)}function g(){if(f.ci)clearInterval(t);else{m=h.getTimeStamp();if(0<k.length){n&&(k.sort(b),n=!1);for(var a;0<k.length&&k[0].time<=m&&!f.ci;)a=k.shift(),a.rf&&(w.executeTask(a),a.step&&s.push(a))}for(0>=k.length&&(r=0);0<s.length;)a=s.shift(),a.step&&(a.Ln=r++,w.addPackedTimedTask(a,a.step,!0));m>=q&&(q=m+p,k=[].concat(k))}}var l=50,n=!1,k=[],m=h.getTimeStamp(),p=108E5,q=m+p,s=[],t=null,r=0,D=!e.isBrowserDocument()||
"http:"!=document.location.protocol&&"https:"!=document.location.protocol?"*":document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""),z=d,y=!1,w={toString:function(){return["[|Executor",l,k.length,"]"].join("|")},getQueueLength:function(){return k.length},packTask:function(a,b,c){return{rf:a,Zl:b||null,De:c||null,Ln:r++}},addPackedTimedTask:function(a,b,c){a.step=c?b:null;a.time=m+parseInt(b);if(isNaN(a.time))try{throw Error();}catch(d){throw a=
"Executor error for time: "+b,d.stack&&(a+=" "+d.stack),a;}k.push(a);n=!0},addRepetitiveTask:function(a,b,c,d){return this.addTimedTask(a,b,c,d,!0)},stopRepetitiveTask:function(a){a&&(a.rf=null,a.step=null)},addTimedTask:function(a,b,c,d,e){a=this.packTask(a,c,d);this.addPackedTimedTask(a,b,e);0!=b||y||(y=!0,z());return a},modifyTaskParam:function(a,b,c){a.De[b]=c},modifyAllTaskParams:function(a,b){a.De=b},delayTask:function(a,b){a.time+=b;n=!0},executeTask:function(a,b){try{var c=b||a.De;a.Zl?c?
a.rf.apply(a.Zl,c):a.rf.apply(a.Zl):c?a.rf.apply(null,c):a.rf()}catch(d){}}};e.isWebWorker()?setTimeout(a,1):a();w.getQueueLength=w.getQueueLength;w.packTask=w.packTask;w.addPackedTimedTask=w.addPackedTimedTask;w.addRepetitiveTask=w.addRepetitiveTask;w.stopRepetitiveTask=w.stopRepetitiveTask;w.addTimedTask=w.addTimedTask;w.modifyTaskParam=w.modifyTaskParam;w.modifyAllTaskParams=w.modifyAllTaskParams;w.delayTask=w.delayTask;w.executeTask=w.executeTask;return w});
define("Inheritance",["IllegalStateException"],function(h){function f(d,b,c){if(b)return c?b.apply(d,c):b.apply(d)}var e={au:function(d,b,c,a){for(var g in b.prototype)if(!d.prototype[g])d.prototype[g]=b.prototype[g];else if(a){var f;a:{f=b.prototype;var n=void 0;for(n in f)if(f[g]==f[n]&&g!=n){f=n;break a}f=null}if(f){if(d.prototype[f]&&d.prototype[f]!==d.prototype[g]&&b.prototype[f]!==b.prototype[f])throw new h("Can't solve alias collision, try to minify the classes again ("+f+", "+g+")");d.prototype[f]=
d.prototype[g]}}c||(d.prototype._super_=b,d.prototype._callSuperConstructor=e._callSuperConstructor,d.prototype._callSuperMethod=e._callSuperMethod)},_callSuperMethod:function(d,b,c){return f(this,d.prototype._super_.prototype[b],c)},_callSuperConstructor:function(d,b){f(this,d.prototype._super_,b)}};return e.au});
define("CookieManager",["Helpers","Environment"],function(h,f){var e=!1,d={areCookiesEnabled:function(){return e},getAllCookiesAsSingleString:function(){return this.areCookiesEnabled()?document.cookie.toString():null},writeCookie:function(b,c){this.Vt(b,c,"")},Vt:function(b,c,a){this.areCookiesEnabled()&&(document.cookie=encodeURIComponent(b)+"\x3d"+c+"; "+a+"path\x3d/;")},readCookie:function(b){if(!this.areCookiesEnabled())return null;b=encodeURIComponent(b)+"\x3d";for(var c=this.getAllCookiesAsSingleString(),
c=c.split(";"),a=0;a<c.length;a++)if(c[a]=h.trim(c[a]),0==c[a].indexOf(b))return c[a].substring(b.length,c[a].length);return null},removeCookie:function(b){if(this.areCookiesEnabled()){var c=new Date;c.setTime(c.getTime()-864E5);this.Vt(b,"deleting","expires\x3d"+c.toGMTString()+"; ")}},bv:function(){if(f.isBrowserDocument()&&("http:"==document.location.protocol||"https:"==document.location.protocol)){e=!0;var b="LS__cookie_test"+h.randomG();this.writeCookie(b,"testing");var c=this.readCookie(b);
if("testing"==c&&(this.removeCookie(b),c=this.readCookie(b),null==c))return;e=!1}}};d.bv();d.areCookiesEnabled=d.areCookiesEnabled;d.getAllCookiesAsSingleString=d.getAllCookiesAsSingleString;d.writeCookie=d.writeCookie;d.removeCookie=d.removeCookie;d.readCookie=d.readCookie;return d});
define("lscG",["Environment"],function(h){var f=RegExp("\\.","g"),e=RegExp("-","g"),d={".":!0," ":!0,0:!0},b={Dr:function(){return h.isBrowser()?!1===navigator.onLine:!1},Np:function(){try{return"undefined"!=typeof localStorage&&null!==localStorage&&localStorage.getItem&&localStorage.setItem}catch(b){return!1}},qc:function(){try{return document.domain}catch(b){return""}},Pm:function(){if(!h.isBrowserDocument())return!0;try{return-1<document.location.host.indexOf("[")?!0:b.qc()==document.location.hostname}catch(c){return!1}},
ef:function(b){if("undefined"!=typeof b){if(!0===b||!1===b)return!0===b;if(null!=b)return isNaN(b)||""==b?(b||""==b)&&b.toString?b.toString():isNaN(b)?NaN:b:b.charAt&&b.charAt(0)in d&&b.toString?b.toString():parseFloat(b,10)}return null},Ij:function(b){return require.Ij?require.Ij(b):require(b)},ca:function(b,a){b=b||{};if(a)for(var g in a)b[g]=a[g];return b},nk:function(b){return b.replace(f,"_").replace(e,"__")},getReverse:function(b){var a={},g;for(g in b)a[b[g]]=g;return a}};return b});
define("lscAZ",["lscA"],function(h){function f(e,d,b){this.id=e;this.U=d;this.status=b}f.prototype={yb:L("status")};return{$f:function(e,d){return this.Un(d+"_"+e)},zC:function(e,d,b){b=b.join("|");this.write(h.Zd+d+"_"+e,b)},Ll:function(e,d){this.clean(h.Zd+d+"_"+e)},ck:function(e){return this.Un(e)},nA:function(e){e=this.Un(e);if(!e)return null;for(var d=[],b=0;b<e.length;b++){var c=e[b].split("_");if(2==c.length){var a=this.$f(c[1],c[0]);null!=a&&d.push(new f(c[0],c[1],a))}}return d},
ql:function(e,d,b){e=h.Zd+e;d+=b?"_"+b:"";b=this.bk(e);if(!b)b="|";else if(-1<b.indexOf("|"+d+"|"))return!1;this.write(e,b+(d+"|"));return!0},Gh:function(e,d,b){e=h.Zd+e;d+=b?"_"+b:"";if(b=this.bk(e))d="|"+d+"|",-1<b.indexOf(d)&&(b=b.replace(d,"|"),"|"==b?this.clean(e):this.write(e,b))},sw:function(){for(var e=this.keys(),d=[],b=0;b<e.length;b++)0==e[b].indexOf(h.Zd)&&(e[b]=e[b].substring(h.Zd.length),d.push(e[b]));return d},Un:function(e){e=h.Zd+e;e=this.bk(e);if(!e)return null;e=e.split("|");""==
e[0]&&e.shift();""==e[e.length-1]&&e.pop();return 0<e.length?e:null}}});define("lscAa",["lscG","lscAZ"],function(h,f){return h.ca({bk:function(e){return localStorage.getItem(e)},write:function(e,d){localStorage.setItem(e,d)},clean:function(e){localStorage.removeItem(e)},keys:function(){for(var e=[],d=0;d<localStorage.length;d++)e.push(localStorage.key(d));return e}},f)});
define("lscAX",["CookieManager","lscAZ","lscG","Helpers"],function(h,f,e,d){return e.ca({bk:function(b){return h.readCookie(b)},write:function(b,c){h.writeCookie(b,c)},clean:function(b){h.removeCookie(b)},keys:function(){for(var b=[],b=h.getAllCookiesAsSingleString().split(";"),c=0;c<b.length;c++)b[c]=d.trim(b[c]),b[c]=b[c].substring(0,b[c].indexOf("\x3d")),b[c]=decodeURIComponent(b[c]);return b}},f)});
define("Dismissable",["Executor"],function(h){function f(){this.initTouches()}f.prototype={clean:E(),initTouches:function(e){this.Jo=this.vf=0;this.timeout=e||5E3},uC:function(e){e==this.Jo&&0>=this.vf&&this.clean()},dismiss:function(){this.vf--;0>=this.vf&&h.addTimedTask(this.uC,this.timeout,this,[this.Jo])},touch:function(){this.Jo++;0>this.vf&&(this.vf=0);this.vf++}};f.prototype.touch=f.prototype.touch;f.prototype.dismiss=f.prototype.dismiss;f.prototype.clean=f.prototype.clean;f.prototype.initTouches=
f.prototype.initTouches;return f});define("lscAW","lscAa lscAX Executor Dismissable Inheritance lscA Helpers lscG".split(" "),function(h,f,e,d,b,c,a,g){function l(a){this._callSuperConstructor(l);this.fa=a;this.Ok=null}var n=[],k=c.Xd+c.pp,m=6E4;l.prototype={start:function(){this.Ok&&e.stopRepetitiveTask(this.Ok);this.Ok=e.addRepetitiveTask(this.$p,m,this);e.addTimedTask(this.$p,0,this)},clean:function(){e.stopRepetitiveTask(this.Ok);for(var a=0;a<n.length;a++)if(n[a]==this){n.splice(a,1);
break}},$p:function(){for(var b=a.getTimeStamp(),g=this.fa.sw(),c=0;c<g.length;c++)0<g[c].indexOf("_")&&this.rd(g[c],null,b);for(c=0;c<g.length;c++)-1>=g[c].indexOf("_")&&this.cv(g[c])},rd:function(a,b,g){if(!b){b=a.split("_");if(2!=b.length)return!1;a=b[0];b=b[1]}var d=this.fa.$f(b,a);return d?g?g-d[c.Bc]>k?(this.fa.Ll(b,a),!1):!0:!0:!1},cv:function(a){for(var b=this.fa.ck(a),g=0;g<b.length;g++)0<b[g].indexOf("_")?this.rd(b[g])||this.fa.Gh(a,b[g]):this.rd(b[g],a)||this.fa.Gh(a,b[g])}};b(l,d,!1,!0);
h=new l(h);var p=new l(f),q=g.Np()?h:p;return{start:function(a){a=a?p:q;for(var b=0;b<n.length;b++)if(n[b]==a){a.touch();return}n.push(a);a.touch();a.start()},stop:function(a){a=a?p:q;for(var b=0;b<n.length;b++)n[b]==a&&a.dismiss()},KC:function(a){m=a;for(a=0;a<n.length;a++)n[a].start()}}});
define("IFrameHandler",["BrowserDetection","EnvironmentStatus","Environment"],function(h,f,e){var d=h.isProbablyAWebkit()&&h.isProbablyChrome(32,!0)?null:"about:blank",b={},c={createFrame:function(a,c){if(!e.isBrowserDocument())return null;var f=document.getElementsByTagName("BODY")[0];if(!f)return null;c=c||d;var n=document.createElement("iframe");n.style.visibility="hidden";n.style.height="0px";n.style.width="0px";n.style.display="none";n.name=a;n.id=a;h.isProbablyIE()||h.isProbablyOldOpera()?(n.src=
c,f.appendChild(n)):(f.appendChild(n),n.src=c);try{if(n.contentWindow){try{n.contentWindow.name=a}catch(k){}b[a]=n.contentWindow;return b[a]}return document.frames&&document.frames[a]?(b[a]=document.frames[a],b[a]):null}catch(m){return null}},getFrameWindow:function(a,c,d){c&&!b[a]&&this.createFrame(a,d);return b[a]||null},disposeFrame:function(a){if(b[a]){try{document.getElementsByTagName("BODY")[0].removeChild(document.getElementById(a))}catch(c){}delete b[a]}},removeFrames:function(){for(var a in b)try{document.getElementsByTagName("BODY")[0].removeChild(document.getElementById(a))}catch(c){}b=
{}}};c.createFrame=c.createFrame;c.getFrameWindow=c.getFrameWindow;c.disposeFrame=c.disposeFrame;c.removeFrames=c.removeFrames;f.addUnloadHandler(c.removeFrames);return c});
define("lscAY","Executor lscA lscAW lscAa lscAX Helpers EnvironmentStatus IFrameHandler LoggerManager lscG Environment".split(" "),function(h,f,e,d,b,c,a,g,l,n,k){function m(a,g,c){k.browserDocumentOrDie();this.U=a;this.rj=this.id=null;this.Bk=500;this.Bo=g;this.hf=null;this.host=location.host;this.Pc=null;this.Bh=!1;this.Nq=0;c?(this.fa=b,e.start(!0)):(this.fa=q,e.start());this.iw=c;this.Io=this.Fk=null;this.ea();this.Ss();this.Tq();this.uh={};p.logInfo(l.resolve(19),
this)}var p=l.getLoggerProxy(f.Ra),q=n.Np()?d:b,s=c.randomG(),t=f.Bc;m.Jm=function(){return q};m.prototype={toString:function(){return["[SharedStatus",this.id,this.U,"]"].join("|")},ea:function(){this.id=s++;this.fa.ql(this.U,this.id)?this.fa.$f(this.U,this.id)?this.ea():(this.Pc=this.ow(),a.addBeforeUnloadHandler(this),a.addUnloadHandler(this)):this.ea()},start:function(){this.Io=h.addRepetitiveTask(this.qA,f.Xd,this);p.logInfo(l.resolve(20),this)},Tq:function(){g.getFrameWindow(this.Pc,!0)?(this.Bk=
500,this.Fk=h.addTimedTask(this.start,0,this)):(this.Fk=h.addTimedTask(this.Tq,this.Bk,this),this.Bk*=2)},da:L("id"),vu:function(a){a!=this.hf&&(this.hf=a,this.fa.ql(a,this.id,this.U))},Vs:function(a){this.hf!=a?p.logError(l.resolve(18),this.hf,a):this.hf=null;this.fa.Gh(a,this.id,this.U)},fx:function(a){a=this.fa.nA(a);if(!a)return 0;for(var b=0,g=0;g<a.length;g++)c.getTimeStamp()-a[g].yb()[t]>f.Xd||b++;return b},Ss:function(){this.rj=c.getTimeStamp()+this.Nq;this.fa.zC(this.U,this.id,[this.rj,this.Pc,
this.host,f.cl,f.wg])},qA:function(){if(this.Bh)p.logDebug(l.resolve(23)),this.Bh=!1;else{var a=!1;if(this.Bo){p.logDebug(l.resolve(24),this);var b=this.fa.ck(this.U);if(b){p.logDebug(l.resolve(26),this.U);for(var g=0;g<b.length;g++)if(b[g]!=this.id){var d=this.fa.$f(this.U,b[g]);d?d[f.dp]!=f.cl||d[f.op]!=f.wg?p.logDebug(l.resolve(28),b[g]):(d[t]==this.rj&&(this.Nq=c.randomG(5)),d[t]>this.rj?a|=this.Vy(b[g],d[t]):this.uh[b[g]]&&delete this.uh[b[g]]):p.logDebug(l.resolve(27),b[g])}}else p.logDebug(l.resolve(25),
this)}a||(p.logDebug(l.resolve(29)),this.fa.ql(this.U,this.id),this.Ss())}},Vy:function(a,b){p.logDebug(l.resolve(30),a,b);if(this.uh[a])if(this.uh[a]!=b)p.logInfo(l.resolve(21)),this.Si();else return!1;this.uh[a]=b;return!0},ow:function(){return n.nk("LSF__"+n.qc()+"_"+this.id+"_"+this.U)},Si:function(){this.clean();this.Bo&&h.executeTask(this.Bo)},Pr:function(){this.fa.Ll(this.U,this.id);this.fa.Gh(this.U,this.id);this.Bh=!0},clean:function(){p.logInfo(l.resolve(22),this);h.stopRepetitiveTask(this.Io);
h.stopRepetitiveTask(this.Fk);g.disposeFrame(this.Pc);this.Pc=this.Fk=this.Io=null;this.Vs(this.hf);this.Pr()},unloadEvent:function(){this.clean()},preUnloadEvent:function(){this.Pr()},ka:function(){this.clean();a.removeBeforeUnloadHandler(this);a.removeUnloadHandler(this);e.stop(this.iw)}};m.prototype.unloadEvent=m.prototype.unloadEvent;m.prototype.preUnloadEvent=m.prototype.preUnloadEvent;return m});
define("lscAR","lscF Executor LoggerManager BrowserDetection Inheritance CookieManager lscAY Helpers lscA lscG".split(" "),function(h,f,e,d,b,c,a,g,l,n){function k(a,b,g,d,e){this._callSuperConstructor(k,[a]);this.appName=b;this.ul=this.th=this.fe=null;this.ro=!0;this.Vf={};this.Yc={};this.tn=0;this.Kc=e||5E3;this.ee=null;this.No=!1;this.Uk=this.Qk=0;this.Mo=!1;this.yC=g;this.og=d;c.areCookiesEnabled()&&f.addRepetitiveTask(this.hv,6E4,this)}function m(a){for(var b in a)return b}
var p=m({Zb:!0}),q=m({gn:!0}),s=m({Xh:!0}),t=e.getLoggerProxy(l.Ra),r=h.hu;k.prototype={Zb:function(){this._callSuperMethod(k,p);this.th=this.fe=null},tf:function(){return null!=this.Ha?(this.It(),null!==this.Ha?this.Ha:null):null},Qv:function(a){this.ro=!a},FA:function(a,b){var g=null;if((this.Mo||null==a)&&this.yC)t.logDebug(e.resolve(31)),g=this.cw(),this.Mo=!1;else if(null!=a)t.logDebug(e.resolve(32)),this.vt(a),this.Mo=!0;else return 10==this.tn&&t.logDebug(e.resolve(33)),10>=this.tn&&this.tn++,
null;t.logDebug(e.resolve(34));var c=this.It();t.logDebug(e.resolve(35),c);if(null!=this.Ha){t.logDebug(e.resolve(36));this.Uk=0;try{return this.Vf["LS6__"+n.qc()+"_"+this.fe+"_"+this.appName]="OK",this.Ha}catch(k){t.logDebug(e.resolve(37))}}if(d.isProbablyOldOpera()&&b&&g&&"null"==g.log)return t.logDebug(e.resolve(38)),f.executeTask(b),null;this.Uk++;10<=this.Uk&&(this.Uk=0,b&&this.ty()?(t.logDebug(e.resolve(39)),f.executeTask(b)):(t.logDebug(e.resolve(40)),this.No=!0));return null},gn:function(a,
b,g){return!1===this._callSuperMethod(k,q,[a,!0,b])?!1:this.Jt(g)},ty:function(){if(this.Ev)return t.logDebug(e.resolve(41)),!0;if(d.isProbablyOldOpera())return t.logDebug(e.resolve(42)),!0;if(d.isProbablyChrome())return t.logDebug(e.resolve(43)),!0;if(d.isProbablyApple(7,!1))return t.logDebug(e.resolve(44)),!0},Jw:function(){if(!c.areCookiesEnabled())return null;this.ul=null;var b=l.Xd+(this.ro?l.pp:0),d=a.Jm(),k=d.ck(this.appName);if(!k)return t.logDebug(e.resolve(45)),null;for(var s=0;s<k.length;s++){var r=
k[s]+"_"+this.appName,h=d.$f(this.appName,k[s]);if(h)if(this.Vf[h[l.lp]])t.logDebug(e.resolve(47),r);else if(h[l.dp]!=l.cl||h[l.op]!=l.wg)t.logDebug(e.resolve(48),h);else{var n=g.getTimeStamp(),q=n-parseInt(h[l.Bc]),p=1E3-q;if(q>b)this.Yc[r]?q>2*l.Xd?(this.Yc[r]=null,t.logDebug(e.resolve(49),r)):(this.Yc[r]=h[l.Bc],this.og&&f.executeTask(this.og,[p]),t.logDebug(e.resolve(50),r)):t.logDebug(e.resolve(51),r);else{if(this.ro)if(!this.Yc[r]){t.logDebug(e.resolve(52),r);this.Yc[r]=h[l.Bc];this.og&&f.executeTask(this.og,
[p]);continue}else if(this.Yc[r]==h[l.Bc]){t.logDebug(e.resolve(53),r);this.og&&f.executeTask(this.og,[p]);continue}this.ul=n+l.Xd-q;t.logDebug(e.resolve(54),r);return{L:h,id:k[s]}}}else t.logDebug(e.resolve(46),r)}return null},cw:function(){var a=this.Jw();if(!a)return!1;var b=a.L,g=b[l.lp],a=this.gn(g,this.ul,a.id);this.Vf[g]=!1===a||!a.Uh&&!1==a.iq?!1:a.log?a.log:"unknown";b[l.mp]&&b[l.mp]!=location.host&&(this.Ev=!0);return a},Xh:function(){var a=this._callSuperMethod(k,s);a.Uh||(this.fe=null);
return a},It:function(){return this.fe?this.Jt(this.fe):this.gC()},Jt:function(a){var b=this.Xh();if(!b.Uh)return b;t.logDebug(e.resolve(55));b=0;try{var g=this.Ha.Lightstreamer["_"+a];if(!g)return b=6,t.logDebug(e.resolve(56),a),this.Zb(),new r(a+" not IN global",b,!1,!1);if(!g.lsEngine)return b=7,t.logDebug(e.resolve(57),a),this.Zb(),new r(a+" not IN ITS global",b,!1,!1);this.fe=a;this.th=g.lsEngine;b=8;return new r("OK",b,!0,!1)}catch(c){return t.logDebug(e.resolve(58),b,c),this.Zb(),new r("exception "+
b+" "+c,9,!1,!0)}},gC:function(){var a=this.Xh();if(!a.Uh)return a;t.logDebug(e.resolve(59));try{var b=this.Ha.Lightstreamer,g;for(g in b)try{if(0==g.indexOf("_")&&b[g].lsEngine&&b[g].lsEngine.nf==this.appName)return this.th=b[g].lsEngine,this.fe=this.th.fh(),new r("OK",10,!0,!1)}catch(c){}}catch(d){return t.logDebug(e.resolve(60),d),this.Zb(),new r("exception "+d,11,!1,!0)}},ot:function(a){this.Kc=a;this.Ci&&(a=this.ee,this.zt(),this.yt(a))},yt:function(a){this.Ci||(t.logDebug(e.resolve(61)),this.ee=
a,this.Ci=f.addRepetitiveTask(this.rd,this.Kc,this))},zt:function(){t.logDebug(e.resolve(62));f.stopRepetitiveTask(this.Ci);delete this.ee;delete this.Ci},rd:function(){null===this.tf()&&this.ee&&f.executeTask(this.ee,[!1]);this.ee&&f.executeTask(this.ee,[!0])},hv:function(){var a=document.cookie.toString();this.gv(a);this.lv(a)},gv:function(a){var b=this.Vf;this.Vf={};for(var g in b)b[g]&&-1<a.indexOf(g)&&(this.Vf[g]=b[g])},lv:function(a){var b=this.Yc;this.Yc={};for(var g in b)b[g]&&-1<a.indexOf(g)&&
(this.Yc[g]=b[g])},pC:function(a){this.No=!1;f.addTimedTask(this.oC,2E4,this,[new Number(++this.Qk),a])},oC:function(a,b){this.No&&a==this.Qk&&(f.executeTask(b),this.Qk++)},Su:function(){this.Qk++}};b(k,h);return k});
define("Setter",["IllegalArgumentException"],function(h){function f(){}f.prototype.checkPositiveNumber=function(e,d,b){var c=new Number(e);if(isNaN(c))throw new h("The given value is not valid. Use a number");if(!b&&c!=Math.round(c))throw new h("The given value is not valid. Use an integer");if(d){if(0>e)throw new h("The given value is not valid. Use a positive number or 0");}else if(0>=e)throw new h("The given value is not valid. Use a positive number");return c};f.prototype.checkBool=function(e,
d){if(!0===e||!1===e||d&&!e)return!0===e;throw new h("The given value is not valid. Use true or false");};return f});define("lscH",["LoggerManager","lscG","Inheritance","Setter","lscA"],function(h,f,e,d,b){function c(a){this.Q="lscH";this.parent=null;this.Kp=!1;a&&this.Hi(a)}var a=h.getLoggerProxy(b.bl),g=h.getLoggerProxy(b.Ra);c.prototype={ej:function(a){return this.Wk[a]},P:function(b,g){var c=this.ej(b),d=this[c];this[c]=f.ef(g);a.logDebug(h.resolve(64),this.parent,b,this.hj(c));this.parent&&this.Kp&&this.af(b);d!=this[c]&&this.bs(b)},hj:function(a){return this.tq&&this.tq[a]?"[...]":this[a]},r:function(b,
g){var c=this.ej(b);g!=this[c]&&(this[c]=g,a.logInfo(h.resolve(63),b,this.hj(c)),this.af(b),this.bs(b))},hg:function(a,b){this.parent=a;this.Kp=b},af:function(a){var b=this.ej(a);g.logDebug(h.resolve(65),a,this.hj(b));return this.parent&&this.parent.af&&!this.parent.af(this.Q,a,f.ef(this[b]))?!1:!0},bs:function(b){var g=this.ej(b);!this.parent||!this.parent.ds||this.$r&&this.$r[g]||(a.logDebug(h.resolve(66),b,this.hj(g)),this.parent.ds(b,this))},Hi:function(a){var b=this.Wk,g;for(g in b)this.P(g,
a[b[g]])}};e(c,d,!1,!0);return c});define("lscJ",["lscH","Inheritance","lscG"],function(h,f,e){function d(a){this.Xm=null;this.Qg=!1;this.$r=b;this.Wk=c;this._callSuperConstructor(d,arguments);this.Q="lscJ"}var b={Xm:!0,Qg:!0},c={Qg:"connectionRequested",Xm:"isLocalEngine"},c=e.getReverse(c);f(d,h);return d});
define("lscL","IllegalArgumentException lscA lscH Inheritance Global Environment lscG".split(" "),function(h,f,e,d,b,c,a){function g(){this.Yl=2E6;this.lj=19E3;this.Fd=this.Tc=this.Bf=0;this.Hd=3E3;this.Ek=2E3;this.df=4E3;this.jk=5E3;this.vm=100;this.so=!0;this.zm=null;this.gq=this.ho=!1;this.kk=0;this.km=!0;this.to=5E3;this.mh=this.Dk=null;this.kj=!1;this.Ii=this.Zo=!0;this.Yi=2E3;this.Do=4E3;this.Wk=n;this._callSuperConstructor(g,arguments);this.Q="lscL"}var l={};
l[f.vg]=!0;l[f.Cg]=!0;l[f.Wd]=!0;l[f.fi]=!0;l[f.kl]=!0;l[f.ei]=!0;var n={Yl:"contentLength",lj:"idleMillis",Bf:"keepaliveMillis",Tc:"maxBandwidth",Fd:"pollingMillis",Hd:"reconnectTimeout",Ek:"stalledTimeout",df:"connectTimeout",jk:"retryDelay",vm:"firstRetryMaxDelay",so:"slowingEnabled",zm:"forcedTransport",ho:"serverInstanceAddressIgnored",gq:"cookieHandlingRequired",kk:"reverseHeartbeatMillis",km:"earlyWSOpenEnabled",to:"spinFixTimeout",Dk:"spinFixEnabled",Zo:"xDomainStreamingEnabled",Ii:"corsXHREnabled",
Yi:"forceBindTimeout",Do:"switchCheckTimeout",mh:"httpExtraHeaders",kj:"httpExtraHeadersOnSessionCreationOnly"},n=a.getReverse(n);g.prototype={XA:function(a){this.r("contentLength",this.checkPositiveNumber(a))},Ew:L("Yl"),fB:function(a){this.r("idleMillis",this.checkPositiveNumber(a,!0))},Tw:L("lj"),hB:function(a){this.r("keepaliveMillis",this.checkPositiveNumber(a,!0))},Ww:L("Bf"),jB:function(a){a="unlimited"==(new String(a)).toLowerCase()?0:this.checkPositiveNumber(a,!1,!0);this.r("maxBandwidth",
a)},Yw:function(){return 0>=this.Tc?"unlimited":this.Tc},oB:function(a){this.r("pollingMillis",this.checkPositiveNumber(a,!0))},gx:L("Fd"),kx:L("Hd"),AB:function(a){this.r("stalledTimeout",this.checkPositiveNumber(a))},nr:L("Ek"),VA:function(a){this.r("connectTimeout",this.checkPositiveNumber(a))},Bw:L("df"),st:function(a){this.r("retryDelay",this.checkPositiveNumber(a))},kr:L("jk"),aB:function(a){this.r("firstRetryMaxDelay",this.checkPositiveNumber(a))},Mw:L("vm"),wB:function(a){this.r("slowingEnabled",
this.checkBool(a))},ry:L("so"),cB:function(a){if(null!==a&&!l[a])throw new h("The given value is not valid. Use one of: HTTP-STREAMING, HTTP-POLLING, WS-STREAMING, WS-POLLING, WS, HTTP or null");this.r("forcedTransport",a)},Rw:L("zm"),uB:function(a){this.r("serverInstanceAddressIgnored",this.checkBool(a))},qy:L("ho"),YA:function(a){if(a&&!c.isBrowser())throw new h("cookieHandlingRequired is only supported on Browsers");this.r("cookieHandlingRequired",this.checkBool(a))},Tb:L("gq"),$A:function(a){this.r("earlyWSOpenEnabled",
this.checkBool(a))},by:L("km"),rB:function(a){this.r("reverseHeartbeatMillis",this.checkPositiveNumber(a,!0))},ox:L("kk"),dB:function(a){if(a){var b="",g;for(g in a)b+=g+"\n"+a[g]+"\n";this.r("httpExtraHeaders",b)}else this.r("httpExtraHeaders",null)},er:function(){if(!this.mh)return this.mh;for(var a={},b=this.mh.split("\n"),g=0;g<b.length-1;g+=2)a[b[g]]=b[g+1];return a},eB:function(a){this.r("httpExtraHeadersOnSessionCreationOnly",this.checkBool(a))},fy:L("kj"),lh:function(a){return this.mh?a?!0:
!this.kj:!1},Yg:function(a){return!a&&this.kj?null:this.er()},EB:function(a){this.r("xDomainStreamingEnabled",this.checkBool(a))},zy:L("Zo"),ZA:function(a){this.r("corsXHREnabled",this.checkBool(a))},Zx:L("Ii"),bB:function(a){this.r("forceBindTimeout",this.checkPositiveNumber(a))},Pw:L("Yi"),BB:function(a){this.r("switchCheckTimeout",this.checkPositiveNumber(a))},yx:L("Do"),zB:function(a){this.r("spinFixTimeout",this.checkPositiveNumber(a))},wx:L("to"),yB:function(a){this.r("spinFixTimeout",null===
this.IC?null:this.checkBool(a))},vx:L("Dk")};g.prototype.setContentLength=g.prototype.XA;g.prototype.getContentLength=g.prototype.Ew;g.prototype.setIdleMillis=g.prototype.fB;g.prototype.getIdleMillis=g.prototype.Tw;g.prototype.setKeepaliveMillis=g.prototype.hB;g.prototype.getKeepaliveMillis=g.prototype.Ww;g.prototype.setMaxBandwidth=g.prototype.jB;g.prototype.getMaxBandwidth=g.prototype.Yw;g.prototype.setPollingMillis=g.prototype.oB;g.prototype.getPollingMillis=g.prototype.gx;g.prototype.setReconnectTimeout=
g.prototype.nr;g.prototype.getReconnectTimeout=g.prototype.kx;g.prototype.setStalledTimeout=g.prototype.AB;g.prototype.getStalledTimeout=g.prototype.nr;g.prototype.setConnectTimeout=g.prototype.VA;g.prototype.getConnectTimeout=g.prototype.Bw;g.prototype.setRetryDelay=g.prototype.st;g.prototype.getRetryDelay=g.prototype.kr;g.prototype.setFirstRetryMaxDelay=g.prototype.aB;g.prototype.getFirstRetryMaxDelay=g.prototype.Mw;g.prototype.setSlowingEnabled=g.prototype.wB;g.prototype.isSlowingEnabled=g.prototype.ry;
g.prototype.setForcedTransport=g.prototype.cB;g.prototype.getForcedTransport=g.prototype.Rw;g.prototype.setServerInstanceAddressIgnored=g.prototype.uB;g.prototype.isServerInstanceAddressIgnored=g.prototype.qy;g.prototype.setCookieHandlingRequired=g.prototype.YA;g.prototype.isCookieHandlingRequired=g.prototype.Tb;g.prototype.setEarlyWSOpenEnabled=g.prototype.$A;g.prototype.isEarlyWSOpenEnabled=g.prototype.by;g.prototype.setReverseHeartbeatMillis=g.prototype.rB;g.prototype.getReverseHeartbeatMillis=
g.prototype.ox;g.prototype.setHttpExtraHeaders=g.prototype.dB;g.prototype.getHttpExtraHeaders=g.prototype.er;g.prototype.setHttpExtraHeadersOnSessionCreationOnly=g.prototype.eB;g.prototype.isHttpExtraHeadersOnSessionCreationOnly=g.prototype.fy;g.prototype.setXDomainStreamingEnabled=g.prototype.EB;g.prototype.isXDomainStreamingEnabled=g.prototype.zy;g.prototype.setCorsXHREnabled=g.prototype.ZA;g.prototype.isCorsXHREnabled=g.prototype.Zx;g.prototype.setForceBindTimeout=g.prototype.bB;g.prototype.getForceBindTimeout=
g.prototype.Pw;g.prototype.setSwitchCheckTimeout=g.prototype.BB;g.prototype.getSwitchCheckTimeout=g.prototype.yx;g.prototype.setSpinFixTimeout=g.prototype.zB;g.prototype.getSpinFixTimeout=g.prototype.wx;g.prototype.setSpinFixEnabled=g.prototype.yB;g.prototype.getSpinFixEnabled=g.prototype.vx;g.prototype.setRetryTimeout=g.prototype.st;g.prototype.getRetryTimeout=g.prototype.kr;d(g,e);return g});
define("lscB",[],function(){return{OC:function(){var h=3,f,e=6,d="",b;b="document".toString();var c=0;f=b.length;for(var a=0;a<f;a++)c+=b.charCodeAt(a);b=parseInt(c);if(0<b)for(c=0;184>=e+h-c;c+=3)f=c,f=parseInt("2844232422362353182342452312352492633183053182412392513042362492412532492362342352342462472452423042312312313182482393182292342362492382392362383182422532332342512492422422492342402770".substring(c,h-1))-parseInt("2844232422362353182342452312352492633183053182412392513042362492412532492362342352342462472452423042312312313182482393182292342362492382392362383182422532332342512492422422492342402770".substring(f,
f+2))+350-parseInt("2844232422362353182342452312352492633183053182412392513042362492412532492362342352342462472452423042312312313182482393182292342362492382392362383182422532332342512492422422492342402770".substring(e,e+h-c)),d=unescape("%"+f.toString(16))+d,h+=3,e+=3,b+=f;return d}}});
define("ASSERT",["LoggerManager"],function(h){var f=h.getLoggerProxy("weswit.test"),e=0,d={},b={VOID:d,getFailures:function(){return e},compareArrays:function(b,a,d){if(b.length!=a.length)return this.Ob(),f.logError(h.resolve(486),b,a),!1;if(d)for(e=0;e<b.length;e++){if(b[e]!=a[e])return f.logError(h.resolve(489),b[e],a[e]),this.Ob(),!1}else{d={};for(var e=0;e<b.length;e++)d[b[e]]=1;for(e=0;e<a.length;e++)if(d[a[e]])d[a[e]]++;else return f.logError(h.resolve(487),a[e]),this.Ob(),!1;for(e in d)if(1==
d[e])return f.logError(h.resolve(488),d[e]),this.Ob(),!1}return!0},verifySuccess:function(b,a,d,e,f){return this.di(b,a,d,e,!1,f)},verifyException:function(b,a,d){return this.di(b,a,d,null,!0)},verifyNotNull:function(b){return null===b?(this.Ob(),f.logError(h.resolve(490),b),!1):!0},verifyValue:function(b,a,d){var e=!1;!0===d?e=b===a:d?e=d(b,a):isNaN(b)?e=b==a:(d=b&&b.charAt?b.charAt(0):null,e=a&&a.charAt?a.charAt(0):null,e="."==d||" "==d||"0"==d||"."==e||" "==e||"0"==e?String(b)==String(a):b==a);
return e?!0:(this.Ob(),f.logError(h.resolve(491),b,a),!1)},verifyDiffValue:function(b,a,d){return(d?b===a:b==a)?(this.Ob(),f.logError(h.resolve(492),b,a),!1):!0},verifyOk:function(b){return b?!0:(this.Ob(),f.logError(h.resolve(493)),!1)},verifyNotOk:function(b){return b?(this.Ob(),f.logError(h.resolve(494)),!1):!0},fail:function(){f.logError(h.resolve(495));this.Ob();return!1},Ob:function(){e++},di:function(b,a,e,l,n,k){var m=!1,p=null,q=null;try{p=e!==d?b[a].apply(b,e):b[a]()}catch(s){m=!0,q=s}b=
n?"succes":"failure";return n!=m?(this.Ob(),f.logError(h.resolve(496),b,"for",a,e,l,q),!1):n||l===d?!0:this.verifyValue(p,l,k)}};b.getFailures=b.getFailures;b.fail=b.fail;b.verifyNotOk=b.verifyNotOk;b.verifyOk=b.verifyOk;b.verifyDiffValue=b.verifyDiffValue;b.verifyNotNull=b.verifyNotNull;b.verifyValue=b.verifyValue;b.verifyException=b.verifyException;b.verifySuccess=b.verifySuccess;b.compareArrays=b.compareArrays;return b});
define("lscq","LoggerManager lscG lscB Environment ASSERT lscA".split(" "),function(h,f,e,d,b,c){var a=h.getLoggerProxy(c.Te),g=/^[a-z][a-z0-9-]+$/,l=/^((?:[a-z][a-z.0-9-]+).(?:[a-z][a-z-]+))(?![\w.])/,n=/^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))(?![d])/,k=/^[a-f0-9:]+$/;return{tC:function(a){a=a.toLowerCase();var b=0==a.indexOf("http://")?7:0==a.indexOf("https://")?8:-1;if(-1==b)return"The given server address has not a valid scheme";
var c=a.lastIndexOf(":"),c=c>b?c:a.length,d=this.Iq(a,a.indexOf("://"));if(null!=d&&isNaN(d.substring(1)))return"The given server address has not a valid port";d=a.indexOf("/",b);d=d<c?d:c;if("["==a.charAt(b)){if(a=a.substring(b+1,a.lastIndexOf("]")),!k.test(a))return"The given server address is not a valid IPv6"}else if(a=a.substring(b,d),-1<a.indexOf(".")){if(!l.test(a)&&!n.test(a))return"The given server address is not a valid URL"}else if(!g.test(a))return"The given server address is not a valid machine name";
return!0},Iq:function(a,b){var g=a.indexOf(":",b+1);if(-1>=g)return null;if(-1<a.indexOf("]")){g=a.indexOf("]:");if(-1>=g)return null;g+=1}else if(g!=a.lastIndexOf(":"))return null;var c=a.indexOf("/",b+3);return-1<c?a.substring(g,c):a.substring(g)},pv:function(a,b){var g=this.Iq(a,a.indexOf("://"));if(g){var c=b.indexOf("/");b=-1>=c?b+g:b.substring(0,c)+g+b.substring(c)}b=0==a.toLowerCase().indexOf("https://")?"https://"+b:"http://"+b;"/"!=b.substr(b.length-1)&&(b+="/");return b},hx:function(g,c,
e,l,k,r,n,z,y,w,x){x=x&&d.isBrowserDocument()&&!f.Pm()?"LS_domain\x3d"+f.qc()+"\x26":"";g="LS_phase\x3d"+g+"\x26"+x+(z?"LS_cause\x3d"+z+"\x26":"");k||r?(g+="LS_polling\x3dtrue\x26",z=w=0,r&&(w=Number(e.Fd),null==y||isNaN(y)||(w+=y),z=e.lj),isNaN(w)||(g+="LS_polling_millis\x3d"+w+"\x26"),isNaN(z)||(g+="LS_idle_millis\x3d"+z+"\x26")):(0<e.Bf&&(g+="LS_keepalive_millis\x3d"+e.Bf+"\x26"),w&&(g+="LS_content_length\x3d"+e.Yl+"\x26"));if(k)return c="",0<e.Tc&&(c+="LS_requested_max_bandwidth\x3d"+e.Tc+"\x26"),
null!=l.mi&&(c+="LS_adapter_set\x3d"+encodeURIComponent(l.mi)+"\x26"),null!=l.Vk&&(c+="LS_user\x3d"+encodeURIComponent(l.Vk)+"\x26"),e="LS_op2\x3dcreate\x26"+g+"LS_cid\x3dpcYgxn8m8 feOojyA1S681m3g2.pz478mF4Dy\x26"+c,n&&(e+="LS_old_session\x3d"+n+"\x26"),a.logDebug(h.resolve(69),e),null!=l.Tj&&(e+="LS_password\x3d"+encodeURIComponent(l.Tj)+"\x26"),e;b.verifyOk(c)||a.logError(h.resolve(67));l="LS_session\x3d"+c+"\x26"+g;a.logDebug(h.resolve(68),l);return l},Iw:function(b,g){var c={LS_op:"destroy",LS_session:b};
g&&(c.LS_cause=g);a.logDebug(h.resolve(70));return c},Qw:function(b,g){var c={LS_op:"force_rebind"};b&&(c.LS_cause=b);null==g||isNaN(g)||(c.LS_polling_millis=g);a.logDebug(h.resolve(71));return c},Xw:function(a,b,g){b.LS_build=g;b.LS_phase=a;return b},Cw:function(a){return{LS_op:"constrain",LS_requested_max_bandwidth:0<a.Tc?a.Tc:0}},jr:function(b,g,c){b=g||".js"==c||""==c?(b?this.Bm()+"create_session":"bind_session")+c:(b?this.Bm():"")+"STREAMING_IN_PROGRESS";a.logDebug(h.resolve(72),b);return b},
Bm:V("")}});
define("lscK","IllegalArgumentException lscH Inheritance Environment Global lscq lscG".split(" "),function(h,f,e,d,b,c,a){function g(){this.Lh=k;this.Ia=this.kt=this.jt=this.Tj=this.Vk=this.mi=null;this.tq=n;this.Wk=l;this._callSuperConstructor(g,arguments);this.Q="lscK"}var l={Lh:"serverAddress",mi:"adapterSet",Vk:"user",Tj:"password",jt:"serverInstanceAddress",kt:"serverSocketName",Ia:"sessionId"},l=a.getReverse(l),n={Tj:!0},k=!d.isBrowser()||"http:"!=location.protocol&&
"https:"!=location.protocol?null:location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/";g.prototype={tt:function(a){if(null===a)a=k;else{"/"!=a.substr(a.length-1)&&(a+="/");var b=c.tC(a);if(!0!==b)throw new h(b);}this.r("serverAddress",a)},lr:L("Lh"),mt:function(a){this.r("adapterSet",a)},qw:L("mi"),DB:function(a){this.r("user",a)},Fx:L("Vk"),lB:function(a){this.r("password",a)},qx:L("jt"),rx:L("kt"),pe:L("Ia")};g.prototype.setServerAddress=g.prototype.tt;g.prototype.getServerAddress=
g.prototype.lr;g.prototype.setAdapterSet=g.prototype.mt;g.prototype.getAdapterSet=g.prototype.qw;g.prototype.setUser=g.prototype.DB;g.prototype.getUser=g.prototype.Fx;g.prototype.setPassword=g.prototype.lB;g.prototype.getServerInstanceAddress=g.prototype.qx;g.prototype.getServerSocketName=g.prototype.rx;g.prototype.getSessionId=g.prototype.pe;e(g,f);return g});
define("lscAQ",["LoggerManager","EnvironmentStatus","ASSERT","lscA"],function(h,f,e,d){function b(a){this.v=null;this.qb=!1;this.q=null;this.c=a;f.addUnloadHandler(this)}var c=h.getLoggerProxy(d.Ra);b.prototype={vc:function(){c.logInfo(h.resolve(73));this.qb=!0;this.c.PA()},Wc:function(){c.logInfo(h.resolve(74));this.qb=!1;this.c.io()},ja:function(a){return a==this.v},uk:function(a){e.verifyNotOk(this.qb);this.v=a;this.vc()},lt:function(a){this.v=a;this.qb&&this.Wc()},Gk:function(a){this.c.Lg(a)},
xe:function(a){this.c.Aq(a);this.Wc()},unloadEvent:function(){this.un()},ka:function(){f.removeUnloadHandler(this)}};b.prototype.unloadEvent=b.prototype.unloadEvent;return b});
define("lscAV","lscAQ Inheritance LoggerManager lscG Executor ASSERT lscA Helpers".split(" "),function(h,f,e,d,b,c,a,g){function l(a,b){this._callSuperConstructor(l,[a]);this.Xk=2E3;this.ea();this.Sn=b;this.od=null}var n={Uy:"newPage",Rv:"engineConfiguration",Bv:"deleteP