1"undefined"!=typeof dojo?dojo.provide("org.cometd"):(this.org=this.org||{},org.cometd={}),this.com=this.com||{},this.com.teletrader=this.com.teletrader||{},org.cometd.JSON={},org.cometd.JSON.toJSON=org.cometd.JSON.fromJSON=function(e){throw"Abstract"},org.cometd.TransportRegistry=function(){var e=[],n={};this.getTransportTypes=function(){return e.slice(0)},this.findTransportTypes=function(t,r){for(var o=[],i=0;i<e.length;++i){var s=e[i];n[s].accept(t,r)&&o.push(s)}return o},this.negotiateTransport=function(t,r,o){for(var i=0;i<e.length;++i)for(var s=e[i],c=0;c<t.length;++c)if(s==t[c]){var a=n[s];if(!0===a.accept(r,o))return a}return null},this.add=function(t,r,o){for(var i=!1,s=0;s<e.length;++s)if(e[s]==t){i=!0;break}return i||("number"!=typeof o?e.push(t):e.splice(o,0,t),n[t]=r),!i},this.remove=function(t){for(var r=0;r<e.length;++r)if(e[r]==t){e.splice(r,1);var o=n[t];return delete n[t],o}return null},this.reset=function(){for(var t=0;t<e.length;++t)n[e[t]].reset()}},org.cometd.Cometd=function(e){var n,t,r,o,s,c,a,u,l,f,h,d,g,p,m=this,v=e||"default",b=!1,y=new org.cometd.TransportRegistry,x="disconnected",T=0,w=null,S=0,k=[],q=!1,I={},E=0,R=null,L=[],O={},C=!1,F=!0;function N(e,n,t){for(var r=n||{},o=2;o<arguments.length;++o){var i=arguments[o];if(null!=i)for(var s in i){var c=i[s];c!==n&&(void 0!==c&&(r[s]=e&&"object"==typeof c&&null!==c?N(e,c instanceof Array?[]:{},c):c))}}return r}function A(e){return null!=e&&("string"==typeof e||e instanceof String)}function P(e){return null!=e&&e instanceof Array}function B(e){return null!=e&&"function"==typeof e}function J(e,n){if(window.console){var t=window.console[e];B(t)&&t.apply(window.console,n)}}function U(){"warn"!=n&&J("info",arguments)}function H(){"debug"==n&&J("debug",arguments)}function X(e){if(H("Configuring cometd object with",e),A(e)&&(e={url:e}),e||(e={}),!(t=e.url))throw"Missing required configuration parameter 'url' specifying the Bayeux server URL";r=e.maxConnections||2,o=e.backoffIncrement||1e3,s=e.maxBackoff||6e4,n=e.logLevel||"info",c=!1!==e.reverseIncomingExtensions,a=e.maxNetworkDelay||1e4,u=e.requestHeaders||{},l=!1!==e.appendMessageTypeToURL,f=!0===e.autoBatch;var i=/(^https?:)?(\/\/(([^:\/\?#]+)(:(\d+))?))?([^\?#]*)(.*)?/.exec(t);if(b=i[3]&&i[3]!=window.location.host,l)if(void 0!==i[8]&&""!==i[8])U("Appending message type to URI "+i[7]+i[8]+" is not supported, disabling 'appendMessageTypeToURL' configuration"),l=!1;else{var h=i[7].split("/"),d=h.length-1;i[7].match(/\/$/)&&(d-=1),h[d].indexOf(".")>=0&&(U("Appending message type to URI "+i[7]+" is not supported, disabling 'appendMessageTypeToURL' configuration"),l=!1)}}function j(){for(var e in I)for(var n=I[e],t=0;t<n.length;++t){var r=n[t];r&&!r.listener&&(delete n[t],H("Removed subscription",r,"for channel",e))}}function D(e){x!=e&&(H("Status",x,"->",e),x=e)}function M(){return"disconnecting"==x||"disconnected"==x}function _(e,n,t,r,o){try{return n.call(e,r)}catch(e){H("Exception during execution of extension",t,e);var i=m.onExtensionException;if(B(i)){H("Invoking extension exception callback",t,e);try{i.call(m,e,t,o,r)}catch(e){U("Exception during execution of exception callback in extension",t,e)}}return r}}function z(e){for(var n=0;n<L.length&&null!=e;++n){var t=L[n],r=t.extension.outgoing;if(B(r)){var o=_(t.extension,r,t.name,e,!0);e=void 0===o?e:o}}return e}function V(e){if(A(e))try{return org.cometd.JSON.fromJSON(e)}catch(n){throw H("Could not convert to JSON the following string",'"'+e+'"'),n}if(P(e))return e;if(null==e)return[];if(e instanceof Object)return[e];throw"Conversion Error "+e+", typeof "+typeof e}function G(e,n){var t=I[e];if(t&&t.length>0)for(var r=0;r<t.length;++r){var o=t[r];if(o)try{o.callback.call(o.scope,n)}catch(e){H("Exception during notification",o,n,e);var i=m.onListenerException;if(B(i)){H("Invoking listener exception callback",o,e);try{i.call(m,e,o.handle,o.listener,n)}catch(e){U("Exception during execution of listener callback",o,e)}}}}}function K(e,n){G(e,n);for(var t=e.split("/"),r=t.length-1,o=r;o>0;--o){var i=t.slice(0,o).join("/")+"/*";o==r&&G(i,n),G(i+="*",n)}}function Q(e,n){return setTimeout((function(){try{e()}catch(n){H("Exception invoking timed function",e,n)}}),n)}function W(){null!==R&&clearTimeout(R),R=null}function Y(e){W();var n=E;O.interval&&O.interval>0&&(n+=O.interval),R=Q(e,n)}function Z(e,n,r,o){for(var i=0;i<n.length;++i){var s=n[i];s.id=""+ ++T,w&&(s.clientId=w),null!=(s=z(s))?n[i]=s:n.splice(i--,1)}if(0!==n.length){var c=t;l&&(c.match(/\/$/)||(c+="/"),o&&(c+=o));var a={url:c,sync:e,messages:n,onSuccess:function(e,n){try{g.call(m,e,n,r)}catch(e){H("Exception during handling of response",e)}},onFailure:function(e,t,o){try{p.call(m,e,n,t,o,r)}catch(e){H("Exception during handling of failure",e)}}};H("Send, sync="+e,a),h.send(a,r)}}function ee(e){S>0||!0===q?k.push(e):Z(!1,[e],!1)}function ne(){E=0}function te(){E<s&&(E+=o)}function re(){var e=k;k=[],e.length>0&&Z(!1,e,!1)}function oe(){D("connecting"),Y((function(){!function(){if(!M()){var e={channel:"/meta/connect",connectionType:h.getType()};F||(F=!0,e.advice={timeout:0}),D("connecting"),H("Connect sent",e),Z(!1,[e],!0,"connect"),D("connected")}}()}))}function ie(e){w=null,j(),M()&&y.reset(),S=0,q=!0,d=e;var n="1.0",t=y.findTransportTypes(n,b),r=N(!1,{},d,{version:n,minimumVersion:"0.9",channel:"/meta/handshake",supportedConnectionTypes:t});H("Initial transport is",h=y.negotiateTransport(t,n,b)),D("handshaking"),H("Handshake sent",r),Z(!1,[r],!1,"handshake")}function se(){D("handshaking"),q=!0,Y((function(){ie(d)}))}
1function ce(e,n){var t={successful:!1,failure:!0,channel:"/meta/handshake",request:n,xhr:e,advice:{reconnect:"retry",interval:E}};K("/meta/handshake",t),K("/meta/unsuccessful",t),M()||("none"!=O.reconnect?(te(),se()):(ne(),D("disconnected")))}function ae(e,n){F=!1;var t={successful:!1,failure:!0,channel:"/meta/connect",request:n,xhr:e,advice:{reconnect:"retry",interval:E}};if(K("/meta/connect",t),K("/meta/unsuccessful",t),!M()){var r=O.reconnect?O.reconnect:"retry";switch(r){case"retry":te(),oe();break;case"handshake":ne(),se();break;case"none":ne(),D("disconnected");break;default:U("Unrecognized advice action",r)}}}function ue(e){W(),e&&h.abort(),w=null,D("disconnected"),S=0,k=[],ne()}function le(e,n){ue(!0);var t={successful:!1,failure:!0,channel:"/meta/disconnect",request:n,xhr:e,advice:{reconnect:"none",interval:0}};K("/meta/disconnect",t),K("/meta/unsuccessful",t)}function fe(e,n){var t={successful:!1,failure:!0,channel:"/meta/subscribe",request:n,xhr:e,advice:{reconnect:"none",interval:0}};K("/meta/subscribe",t),K("/meta/unsuccessful",t)}function he(e,n){var t={successful:!1,failure:!0,channel:"/meta/unsubscribe",request:n,xhr:e,advice:{reconnect:"none",interval:0}};K("/meta/unsubscribe",t),K("/meta/unsuccessful",t)}function de(e,n){var t={successful:!1,failure:!0,channel:n.channel,request:n,xhr:e,advice:{reconnect:"none",interval:0}};K("/meta/publish",t),K("/meta/unsuccessful",t)}function ge(e){if(null!=(e=function(e){for(var n=0;n<L.length&&null!=e;++n){var t=c?L.length-1-n:n,r=L[t],o=r.extension.incoming;if(B(o)){var i=_(r.extension,o,r.name,e,!1);e=void 0===i?e:i}}return e}(e)))switch(e.advice&&(O=e.advice),e.channel){case"/meta/handshake":!function(e){if(e.successful){w=e.clientId;var n=y.negotiateTransport(e.supportedConnectionTypes,e.version,b);if(null===n)throw"Could not negotiate transport with server; client "+y.findTransportTypes(e.version,b)+", server "+e.supportedConnectionTypes;
1h!=n&&(H("Transport",h,"->",n),h=n),q=!1,re(),e.reestablish=C,C=!0,K("/meta/handshake",e),M()||("none"!=O.reconnect?(ne(),oe()):(ne(),D("disconnected")))}else K("/meta/handshake",e),K("/meta/unsuccessful",e),M()||("none"!=O.reconnect?(te(),se()):(ne(),D("disconnected")))}(e);break;case"/meta/connect":!function(e){if(F=e.successful)K("/meta/connect",e),M()||(O.reconnect&&"retry"!=O.reconnect?(ne(),D("disconnected")):(ne(),oe()));else if(U("Connect failed:",e.error),K("/meta/connect",e),K("/meta/unsuccessful",e),!M()){var n=O.reconnect?O.reconnect:"retry";switch(n){case"retry":te(),oe();break;case"handshake":ne(),se();break;case"none":ne(),D("disconnected");break;default:U("Unrecognized advice action",n)}}}(e);break;case"/meta/disconnect":!function(e){e.successful?(ue(!1),K("/meta/disconnect",e)):(ue(!0),K("/meta/disconnect",e),K("/meta/unsuccessful",e))}(e);break;case"/meta/subscribe":!function(e){e.successful?K("/meta/subscribe",e):(U("Subscription to",e.subscription,"failed:",e.error),K("/meta/subscribe",e),K("/meta/unsuccessful",e))}(e);break;case"/meta/unsubscribe":!function(e){e.successful?K("/meta/unsubscribe",e):(U("Unsubscription to",e.subscription,"failed:",e.error),K("/meta/unsubscribe",e),K("/meta/unsuccessful",e))}(e);break;default:!function(e){void 0===e.successful?e.data?K(e.channel,e):H("Unknown message",e):e.successful?K("/meta/publish",e):(U("Publish failed:",e.error),K("/meta/publish",e),K("/meta/unsuccessful",e))}(e)}}function pe(e,n){var t={scope:e,method:n};if(B(e))t.scope=void 0,t.method=e;else if(A(n)){if(!e)throw"Invalid scope "+e;if(t.method=e[n],!B(t.method))throw"Invalid callback "+n+" for scope "+e}else if(!B(n))throw"Invalid callback "+n;return t}function me(e,n,t,r){var o=pe(n,t);H("Adding listener on",e,"with scope",o.scope,"and callback",o.method);var i={channel:e,scope:o.scope,callback:o.method,listener:r},s=I[e];s||(s=[],I[e]=s);var c=s.push(i)-1;return i.id=c,i.handle=[e,c],H("Added listener",i,"for channel",e,"having id =",c),i.handle}this._mixin=N,this._warn=function(){J("warn",arguments)}
1,this._info=U,this._debug=H,this.send=ee,this.receive=ge,g=function(e,n,t){var r=V(n);H("Received",n,"converted to",r),h.complete(e,!0,t);for(var o=0;o<r.length;++o){ge(r[o])}},p=function(e,n,t,r,o){var i=e.xhr;H("Failed",n),h.complete(e,!1,o);for(var s=0;s<n.length;++s){var c=n[s];switch(c.channel){case"/meta/handshake":ce(i,c);break;case"/meta/connect":ae(i,c);break;case"/meta/disconnect":le(i,c);break;case"/meta/subscribe":fe(i,c);break;case"/meta/unsubscribe":he(i,c);break;default:de(i,c)}}},this.registerTransport=function(e,n,t){var r=y.add(e,n,t);return r&&(H("Registered transport",e),B(n.registered)&&n.registered(e,this)),r},this.getTransportTypes=function(){return y.getTransportTypes()},this.unregisterTransport=function(e){var n=y.remove(e);return null!==n&&(H("Unregistered transport",e),B(n.unregistered)&&n.unregistered()),n},this.configure=function(e){X.call(this,e)},this.init=function(e,n){this.configure(e),this.handshake(n)},this.handshake=function(e){D("disconnected"),C=!1,ie(e)},this.disconnect=function(e,n){if(!M()){void 0===n&&"boolean"!=typeof e&&(n=e,e=!1);var t=N(!1,{},n,{channel:"/meta/disconnect"});D("disconnecting"),Z(!0===e,[t],!1,"disconnect")}},this.startBatch=function(){++S},this.endBatch=function(){!function(){if(--S<0)throw"Calls to startBatch() and endBatch() are not paired";0!==S||M()||q||re()}()},this.batch=function(e,n){var t=pe(e,n);this.startBatch();try{t.method.call(t.scope),this.endBatch()}catch(e){throw H("Exception during execution of batch",e),this.endBatch(),e}},this.addListener=function(e,n,t){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!A(e))throw"Illegal argument type: channel must be a string";return me(e,n,t,!0)},this.removeListener=function(e){if(!P(e))throw"Invalid argument: expected subscription, not "+e;!function(e){var n=I[e[0]];n&&(delete n[e[1]],H("Removed listener",e))}(e)},this.clearListeners=function(){I={}},this.subscribe=function(e,n,t,r){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!A(e))throw"Illegal argument type: channel must be a string";if(M())throw"Illegal state: already disconnected";B(n)&&(r=t,t=n,n=void 0);var o=me(e,n,t,!1);return ee(N(!1,{},r,{channel:"/meta/subscribe",subscription:e})),o},this.unsubscribe=function(e,n){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(M())throw"Illegal state: already disconnected";this.removeListener(e);var t=e[0];(function(e){var n=I[e];if(n)for(var t=0;t<n.length;++t)if(n[t])return!0;return!1})(t)||ee(N(!1,{},n,{channel:"/meta/unsubscribe",subscription:t}))},this.clearSubscriptions=function(){j()},this.publish=function(e,n,t){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(!A(e))throw"Illegal argument type: channel must be a string";if(M())throw"Illegal state: already disconnected";ee(N(!1,{},t,{channel:e,data:n}))},this.getStatus=function(){return x},this.isDisconnected=M,this.setBackoffIncrement=function(e){o=e},this.getBackoffIncrement=function(){return o},this.getBackoffPeriod=function(){return E},this.setLogLevel=function(e){n=e},this.registerExtension=function(e,n){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!A(e))throw"Illegal argument type: extension name must be a string";for(var t=!1,r=0;r<L.length;++r){if(L[r].name==e){t=!0;break}}return t?(U("Could not register extension with name",e,"since another extension with the same name already exists"),!1):(L.push({name:e,extension:n}),H("Registered extension",e),B(n.registered)&&n.registered(e,this),!0)},this.unregisterExtension=function(e){if(!A(e))throw"Illegal argument type: extension name must be a string";for(var n=!1,t=0;t<L.length;++t){var r=L[t];if(r.name==e){L.splice(t,1),n=!0,H("Unregistered extension",e);var o=r.extension;B(o.unregistered)&&o.unregistered();break}}return n},this.getExtension=function(e){for(var n=0;n<L.length;++n){var t=L[n];if(t.name==e)return t.extension}return null},this.getName=function(){return v},this.getClientId=function(){return w},this.getURL=function(){return t},this.getTransport=function(){return h}
1,org.cometd.Transport=function(){var e,n=this,t=0,o=null,i=[],s=[];function c(e,t){if(t.expired=!1,this.transportSend(e,t),!e.sync){var r=a;!0===t.longpoll&&(r+=O&&"number"==typeof O.timeout?O.timeout:0),t.timeout=Q((function(){t.expired=!0,t.xhr&&(H("Abort xhr request!"),t.xhr.abort());var o="Transport "+n.getType()+" exceeded "+r+" ms max network delay for request "+t.id;H(o),e.onFailure(t,"timeout",o)}),r)}}function u(e){if(null!==o)throw"Concurrent longpoll requests not allowed, request "+o.id+" not yet completed";var n={id:++t,longpoll:!0};c.call(this,e,n),o=n}function l(e){var n=++t,o={id:n,longpoll:!1};i.length<r-1?(H("Transport sending request",n,e),c.call(this,e,o),i.push(o)):(H("Transport queueing request",n,e),s.push([e,o]))}function h(e){var n=e.id;if(null!==o&&o!==e)throw"Longpoll request mismatch, completing request "+n;o=null}function d(e,n){var t=function(e,n){for(var t=0;t<n.length;++t)if(e==n[t])return t;return-1}(e,i);if(t>=0&&i.splice(t,1),s.length>0){var r=s.shift(),o=r[0],c=r[1];H("Transport dequeued request",c.id),n?(f&&function(e){for(;s.length>0;){var n=s[0],t=n[0],r=n[1];if(t.url!==e.url||t.sync!==e.sync)break;s.shift(),e.messages=e.messages.concat(t.messages),H("Coalesced",t.messages.length,"messages from request",r.id)}}(o),l.call(this,o),H("Transport completed request",e.id,o)):setTimeout((function(){o.onFailure(c,"error")}),0)}}this.registered=function(n,t){e=n},this.unregistered=function(){e=null},this.accept=function(e,n){throw"Abstract"},this.transportSend=function(e,n){throw"Abstract"},this.transportSuccess=function(e,n,t){n.expired||(clearTimeout(n.timeout),t&&t.length>0?e.onSuccess(n,t):e.onFailure(n,"Empty HTTP response"))},this.transportFailure=function(e,n,t,r){n.expired||(clearTimeout(n.timeout),e.onFailure(n,t,r))},this.getType=function(){return e}
1,this.send=function(e,n){n?u.call(this,e):l.call(this,e)},this.complete=function(e,n,t){t?h.call(this,e):d.call(this,e,n)},this.abort=function(){for(var e=0;e<i.length;++e){var n=i[e];H("Aborting request",n),n.xhr&&n.xhr.abort()}o&&(H("Aborting longpoll request",o),o.xhr&&o.xhr.abort()),this.reset()},this.reset=function(){o=null,i=[],s=[]},this.toString=function(){return this.getType()}},org.cometd.LongPollingTransport=function(){var e=this,n=!0;this.accept=function(e,t){return n||!t},this.xhrSend=function(e){throw"Abstract"},this.transportSend=function(t,r){try{var o=!0;r.xhr=this.xhrSend({transport:this,url:t.url,sync:t.sync,headers:u,body:org.cometd.JSON.toJSON(t.messages),onSuccess:function(o){o&&0!==o.length||(n=!1),e.transportSuccess(t,r,o)},onError:function(i,s){n=!1,o?Q((function(){e.transportFailure(t,r,i,s)}),0):e.transportFailure(t,r,i,s)}}),o=!1}catch(o){n=!1,Q((function(){e.transportFailure(t,r,"error",o)}),0)}},this.reset=function(){org.cometd.LongPollingTransport.prototype.reset(),n=!0}},org.cometd.LongPollingTransport.prototype=new org.cometd.Transport,org.cometd.LongPollingTransport.prototype.constructor=org.cometd.LongPollingTransport,org.cometd.CallbackPollingTransport=function(){var e=this,n=2e3;this.accept=function(e,n){return!0},this.jsonpSend=function(e){throw"Abstract"},this.transportSend=function(t,r){var o=org.cometd.JSON.toJSON(t.messages),i=t.url.length+encodeURI(o).length;if(i>n){var s=t.messages.length>1?"Too many bayeux messages in the same batch resulting in message too big ("+i+" bytes, max is "+n+") for transport "+this.getType():"Bayeux message too big ("+i+" bytes, max is "+n+") for transport "+this.getType();Q((function(){e.transportFailure(t,r,"error",s)}),0)}else try{var c=!0;this.jsonpSend({transport:this,url:t.url,sync:t.sync,headers:u,body:o,onSuccess:function(n){e.transportSuccess(t,r,n)},onError:function(n,o){c?Q((function(){e.transportFailure(t,r,n,o)}),0):e.transportFailure(t,r,n,o)}}),c=!1}catch(n){Q((function(){e.transportFailure(t,r,"error",n)}),0)}}},org.cometd.CallbackPollingTransport.prototype=new org.cometd.Transport,org.cometd.CallbackPollingTransport.prototype.constructor=org.cometd.CallbackPollingTransport,com.teletrader.XHRStreamingTransport=function(){var e,n,t,r,o,s=this,c="//--tt--//",a=0,l=!1,f=0,h=!1,d=!1,g=!1,p=!0,v="cometdStreamingSupported";p=null===y()||y(),m.addListener("/meta/connect",(function(e){e&&e.successful&&(!0===e.successful&&f<2?f++:!1===e.successful&&O&&O.reconnect&&"handshake"!=O.reconnect&&(O.interval=1e3,O.reconnect="retry"))}));function b(e,n){for(var t=e.responseText.indexOf(c,a);t>a;){var r=e.responseText.slice(a,t);a=t+10,n.onSuccess(r),t=e.responseText.indexOf(c,a)}}function y(e){if("boolean"!=typeof e){var n=document.cookie.split(";");for(i=0;i<n.length;i++){var t=n[i].split("=");if(2==t.length&&-1!=t[0].search(v))return-1!=t[1].search("true")}return null}document.cookie=v+"="+e}this.accept=function(e,n){return-1==navigator.appVersion.indexOf("MSIE 7.")&&!!p},this.xhrSend=function(e){throw"Abstract"},this.transportSend=function(e,n){m.addListener("/meta/handshake",(function(e){e&&e.successful&&!0===e.successful&&(f=0),d||(setTimeout((function(){H("Pedding Received: "+g),g||(p=!1,m.unregisterTransport("xhr-streaming"),setTimeout((function(){se()}),0))}),5e3),d=!0)}));try{var t=!0;"/meta/connect"==e.messages[0].channel&&(!1===l?!0:!0===l&&(l=!1)),this.xhrSend({transport:this,url:e.url,sync:e.sync,headers:u,body:org.cometd.JSON.toJSON(e.messages),onSuccess:function(t){"/meta/connect"==(t=V(t))[0].channel&&(t[0].successful&&0,!g&&t.length>1&&"/service/padding"===t[1].channel&&(g=!0)),s.transportSuccess(e,n,t)},onError:function(r,o){t?setTimeout((function(){s.transportFailure(e,n,r,o)}),0):s.transportFailure(e,n,r,o)}}),t=!1}catch(t){setTimeout((function(){s.transportFailure(e,n,"error",t)}),0)}},this.reset=function(){com.teletrader.XHRStreamingTransport.prototype.reset()},this.xhrSend=function(e){-1!=e.body.indexOf("/meta/subscribe")||function(e){return-1!=e.indexOf("/meta/unsubscribe")}(e.body)?this.xhrIframeStream(e,!1):!function(e){return-1!=e.indexOf("/meta/connect")}(e.body)?this.jsonpSend({url:e.url,sync:e.sync,body:e.body,onSuccess:e.onSuccess,onError:e.onError}):this.xhrIframeStream(e,!0)},this.xhrIframeStream=function(t,r){e=t,n=r,s.xhrStream(e,n),e=void 0,n=void 0},this.xhrStream=function(e,n){var t,r;window.XDomainRequest?(H("new XDomainRequest "+e.url),(t=new XDomainRequest).open("POST",e.url,!e.sync)):(H("new XMLHttpRequest "+e.url),(t=new XMLHttpRequest).open("POST",e.url,!e.sync),t.setRequestHeader("Content-type","application/x-www-form-urlencoded")),function(e,n){if(n)for(var t in n)"content-type"!==t.toLowerCase()&&e.setRequestHeader(t,n[t])}(t,e.headers);var o=!1,i=m.addListener("/meta/disconnect",(function(e){e.successful&&(O.interval=1e3,o=!0,t.abort(),a=0,m.removeListener(i))}));window.XDomainRequest?(t.ontimeout=function(){},t.onerror=function(){h||(l=!0,O&&(O.interval=1e3),e.onError("unexpected error",null)),n&&(a=0)},t.onload=function(){h||(-1!=t.responseText.indexOf(c)?b(t,e):e.onSuccess(t.responseText.replace(c,"")),$(document).trigger("xdr_complete"),n&&(a=0))},t.onprogress=function(){b(t,e)},t.timeout=0):(r=!1,t.onerror=function(n){h||(O&&(O.interval=0,O.reconnect="retry"),r||o||(e.onError("unexpected error",null),r=!0))},t.onabort=function(n){h||(O&&(O.interval=0,O.reconnect="retry"),r||o||(e.onError("unexpected abort",null),r=!0))},t.onload=function(e){e.target;H("xhr.onload")},t.onclose=function(e){e.target;H("xhr.onclose")},t.onreadystatechange=function(t){var i=t.target;3===i.readyState&&n?200===i.status?b(i,e):e.onError("unexpected error",null):4===i.readyState&&(200===i.status?n?(h||(l=!0,O&&(O.interval=1e3),-1!=i.responseText.indexOf(c)?b(i,e):e.onSuccess(i.responseText.replace(c,""))),a=0):e.onSuccess(i.responseText):h||(n&&(a=0),O&&(O.interval=1e3),r||o||(e.onError("unexpected error",null),r=!0)))}),setTimeout((function(){t.send(e.body)}),0),window.XDomainRequest&&$(document).bind("xdr_complete",(function(){}))},t=window,r="beforeunload",o=function(){h=!0},t.addEventListener?t.addEventListener(r,o,!1):t.attachEvent&&t.attachEvent("on"+r,o)},com.teletrader.XHRStreamingTransport.prototype=new org.cometd.Trans
1port,com.teletrader.XHRStreamingTransport.prototype.constructor=com.teletrader.XHRStreamingTransport};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.