PageSourceSearch

https://staticassets.gocement.com/live/0be52d1.js

js gocement.com collected 2026-09-24 13:24:28 UTC 62,199 bytes, 2 lines download raw bytes

1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[91,63],{944:function(t,e,n){var r;window,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var c=256,h=function(){function t(t){void 0===t&&(t="="),this._paddingCharacter=t}return t.prototype.encodedLength=function(t){return this._paddingCharacter?(t+2)/3*4|0:(8*t+5)/6|0},t.prototype.encode=function(data){for(var t="",i=0;i<data.length-2;i+=3){var e=data[i]<<16|data[i+1]<<8|data[i+2];t+=this._encodeByte(e>>>18&63),t+=this._encodeByte(e>>>12&63),t+=this._encodeByte(e>>>6&63),t+=this._encodeByte(e>>>0&63)}var n=data.length-i;return n>0&&(e=data[i]<<16|(2===n?data[i+1]<<8:0),t+=this._encodeByte(e>>>18&63),t+=this._encodeByte(e>>>12&63),t+=2===n?this._encodeByte(e>>>6&63):this._paddingCharacter||"",t+=this._paddingCharacter||""),t},t.prototype.maxDecodedLength=function(t){return this._paddingCharacter?t/4*3|0:(6*t+7)/8|0},t.prototype.decodedLength=function(s){return this.maxDecodedLength(s.length-this._getPaddingLength(s))},t.prototype.decode=function(s){if(0===s.length)return new Uint8Array(0);for(var t=this._getPaddingLength(s),e=s.length-t,n=new Uint8Array(this.maxDecodedLength(e)),r=0,i=0,o=0,h=0,l=0,d=0,f=0;i<e-4;i+=4)h=this._decodeChar(s.charCodeAt(i+0)),l=this._decodeChar(s.charCodeAt(i+1)),d=this._decodeChar(s.charCodeAt(i+2)),f=this._decodeChar(s.charCodeAt(i+3)),n[r++]=h<<2|l>>>4,n[r++]=l<<4|d>>>2,n[r++]=d<<6|f,o|=h&c,o|=l&c,o|=d&c,o|=f&c;if(i<e-1&&(h=this._decodeChar(s.charCodeAt(i)),l=this._decodeChar(s.charCodeAt(i+1)),n[r++]=h<<2|l>>>4,o|=h&c,o|=l&c),i<e-2&&(d=this._decodeChar(s.charCodeAt(i+2)),n[r++]=l<<4|d>>>2,o|=d&c),i<e-3&&(f=this._decodeChar(s.charCodeAt(i+3)),n[r++]=d<<6|f,o|=f&c),0!==o)throw new Error("Base64Coder: incorrect characters for decoding");return n},t.prototype._encodeByte=function(b){var t=b;return t+=65,t+=25-b>>>8&6,t+=51-b>>>8&-75,t+=61-b>>>8&-15,t+=62-b>>>8&3,String.fromCharCode(t)},t.prototype._decodeChar=function(t){var e=c;return e+=(42-t&t-44)>>>8&-256+t-43+62,e+=(46-t&t-48)>>>8&-256+t-47+63,e+=(47-t&t-58)>>>8&-256+t-48+52,e+=(64-t&t-91)>>>8&-256+t-65+0,e+=(96-t&t-123)>>>8&-256+t-97+26},t.prototype._getPaddingLength=function(s){var t=0;if(this._paddingCharacter){for(var i=s.length-1;i>=0&&s[i]===this._paddingCharacter;i--)t++;if(s.length<4||t>2)throw new Error("Base64Coder: incorrect padding")}return t},t}();e.Coder=h;var l=new h;e.encode=function(data){return l.encode(data)},e.decode=function(s){return l.decode(s)};var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._encodeByte=function(b){var t=b;return t+=65,t+=25-b>>>8&6,t+=51-b>>>8&-75,t+=61-b>>>8&-13,t+=62-b>>>8&49,String.fromCharCode(t)},e.prototype._decodeChar=function(t){var e=c;return e+=(44-t&t-46)>>>8&-256+t-45+62,e+=(94-t&t-96)>>>8&-256+t-95+63,e+=(47-t&t-58)>>>8&-256+t-48+52,e+=(64-t&t-91)>>>8&-256+t-65+0,e+=(96-t&t-123)>>>8&-256+t-97+26},e}(h);e.URLSafeCoder=d;var f=new d;
2e.encodeURLSafe=function(data){return f.encode(data)},e.decodeURLSafe=function(s){return f.decode(s)},e.encodedLength=function(t){return l.encodedLength(t)},e.maxDecodedLength=function(t){return l.maxDecodedLength(t)},e.decodedLength=function(s){return l.decodedLength(s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="utf8: invalid string",o="utf8: invalid source encoding";function c(s){for(var t=0,i=0;i<s.length;i++){var e=s.charCodeAt(i);if(e<128)t+=1;else if(e<2048)t+=2;else if(e<55296)t+=3;else{if(!(e<=57343))throw new Error(r);if(i>=s.length-1)throw new Error(r);i++,t+=4}}return t}e.encode=function(s){for(var t=new Uint8Array(c(s)),e=0,i=0;i<s.length;i++){var n=s.charCodeAt(i);n<128?t[e++]=n:n<2048?(t[e++]=192|n>>6,t[e++]=128|63&n):n<55296?(t[e++]=224|n>>12,t[e++]=128|n>>6&63,t[e++]=128|63&n):(i++,n=(1023&n)<<10,n|=1023&s.charCodeAt(i),n+=65536,t[e++]=240|n>>18,t[e++]=128|n>>12&63,t[e++]=128|n>>6&63,t[e++]=128|63&n)}return t},e.encodedLength=c,e.decode=function(t){for(var e=[],i=0;i<t.length;i++){var b=t[i];if(128&b){var n=void 0;if(b<224){if(i>=t.length)throw new Error(o);if(128!=(192&(r=t[++i])))throw new Error(o);b=(31&b)<<6|63&r,n=128}else if(b<240){if(i>=t.length-1)throw new Error(o);var r=t[++i],c=t[++i];if(128!=(192&r)||128!=(192&c))throw new Error(o);b=(15&b)<<12|(63&r)<<6|63&c,n=2048}else{if(!(b<248))throw new Error(o);if(i>=t.length-2)throw new Error(o);r=t[++i],c=t[++i];var h=t[++i];if(128!=(192&r)||128!=(192&c)||128!=(192&h))throw new Error(o);b=(15&b)<<18|(63&r)<<12|(63&c)<<6|63&h,n=65536}if(b<n||b>=55296&&b<=57343)throw new Error(o);if(b>=65536){if(b>1114111)throw new Error(o);b-=65536,e.push(String.fromCharCode(55296|b>>10)),b=56320|1023&b}}e.push(String.fromCharCode(b))}return e.join("")}},function(t,e,n){t.exports=n(3).default},function(t,e,n){"use strict";n.r(e);class r{constructor(t,e){this.lastId=0,this.prefix=t,this.name=e}create(t){this.lastId++;var e=this.lastId,n=this.prefix+e,r=this.name+"["+e+"]",o=!1,c=function(){o||(t.apply(null,arguments),o=!0)};return this[e]=c,{number:e,id:n,name:r,callback:c}}remove(t){delete this[t.number]}}var o=new r("_pusher_script_","Pusher.ScriptReceivers"),c={VERSION:"8.3.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},h=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),l=new class{constructor(t){this.options=t,this.receivers=t.receivers||o,this.loading={}}load(t,e,n){var r=this;if(r.loading[t]&&r.loading[t].length>0)r.loading[t].push(n);else{r.loading[t]=[n];var o=ve.createScriptRequest(r.getPath(t,e)),c=r.receivers.create((function(e){if(r.receivers.remove(c),r.loading[t]){var n=r.loading[t];delete r.loading[t];for(var h=function(t){t||o.cleanup()},i=0;i<n.length;i++)n[i](e,h)}}));o.send(c)}}getRoot(t){var e=ve.getDocument().location.protocol;return(t&&t.useTLS||"https:"===e?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}getPath(t,e){return this.getRoot(e)+"/"+t+this.options.suffix+".js"}}({cdn_http:c.cdn_http,cdn_https:c.cdn_https,version:c.VERSION,suffix:c.dependency_suffix,receivers:h});const d={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var f,m=function(t){const e=d.urls[t];if(!e)return"";let n;return e.fullUrl?n=e.fullUrl:e.path&&(n=d.baseUrl+e.path),n?`See: ${n}`:""};!function(t){t.UserAuthentication="user-authentication",t.ChannelAuthorization="channel-authorization"}(f||(f={}));
vendor: 1,376 bytes, line 2
2class v extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class S extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(t,e){super(e),this.status=t,Object.setPrototypeOf(this,new.target.prototype)}}for(var E=function(t,e,n,r,o){const c=ve.createXHR();for(var h in c.open("POST",n.endpoint,!0),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.headers)c.setRequestHeader(h,n.headers[h]);if(null!=n.headersProvider){let t=n.headersProvider();for(var h in t)c.setRequestHeader(h,t[h])}return c.onreadystatechange=function(){if(4===c.readyState)if(200===c.status){let data,t=!1;try{data=JSON.parse(c.responseText),t=!0}catch(t){o(new P(200,`JSON returned from ${r.toString()}
2 endpoint was invalid, yet status code was 200. Data was: ${c.responseText}`),null)}t&&o(null,data)}else{let t="";switch(r){case f.UserAuthentication:t=m("authenticationEndpoint");break;case f.ChannelAuthorization:t=`Clients must be authorized to join private or presence channels. ${m("authorizationEndpoint")}`}o(new P(c.status,`Unable to retrieve auth string from ${r.toString()} endpoint - received status: ${c.status} from ${n.endpoint}. ${t}`),null)}},c.send(e),c},O=String.fromCharCode,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L={},A=0;A<64;A++)L[x.charAt(A)]=A;var R=function(t){var e=t.charCodeAt(0);return e<128?t:e<2048?O(192|e>>>6)+O(128|63&e):O(224|e>>>12&15)+O(128|e>>>6&63)+O(128|63&e)},I=function(u){return u.replace(/[^\x00-\x7F]/g,R)},D=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[x.charAt(n>>>18),x.charAt(n>>>12&63),e>=2?"=":x.charAt(n>>>6&63),e>=1?"=":x.charAt(63&n)].join("")},j=window.btoa||function(b){return b.replace(/[\s\S]{1,3}/g,D)},N=class{constructor(t,e,n,r){this.clear=e,this.timer=t((()=>{this.timer&&(this.timer=r(this.timer))}),n)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}};function H(t){window.clearTimeout(t)}function U(t){window.clearInterval(t)}class M extends N{constructor(t,e){super(setTimeout,H,t,(function(t){return e(),null}))}}class z extends N{constructor(t,e){super(setInterval,U,t,(function(t){return e(),t}))}}var B={now:()=>Date.now?Date.now():(new Date).valueOf(),defer:t=>new M(0,t),method(t,...e){var n=Array.prototype.slice.call(arguments,1);return function(object){return object[t].apply(object,n.concat(arguments))}}},$=B;function F(t,...e){for(var i=0;i<e.length;i++){var n=e[i];for(var r in n)n[r]&&n[r].constructor&&n[r].constructor===Object?t[r]=F(t[r]||{},n[r]):t[r]=n[r]}return t}function J(){for(var t=["Pusher"],i=0;i<arguments.length;i++)"string"==typeof arguments[i]?t.push(arguments[i]):t.push(tt(arguments[i]));return t.join(" : ")}function X(t,e){var n=Array.prototype.indexOf;if(null===t)return-1;if(n&&t.indexOf===n)return t.indexOf(e);for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}function W(object,t){for(var e in object)Object.prototype.hasOwnProperty.call(object,e)&&t(object[e],e,object)}function G(object){var t=[];return W(object,(function(e,n){t.push(n)})),t}function V(t,e,n){for(var i=0;i<t.length;i++)e.call(n||window,t[i],i,t)}function map(t,e){for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i,t,n));return n}function filter(t,e){e=e||function(t){return!!t};for(var n=[],i=0;i<t.length;i++)e(t[i],i,t,n)&&n.push(t[i]);return n}function Y(object,t){var e={};return W(object,(function(n,r){(t&&t(n,r,object,e)||Boolean(n))&&(e[r]=n)})),e}function Q(t,e){for(var i=0;i<t.length;i++)if(e(t[i],i,t))return!0;return!1}function K(data){return t=function(t){return"object"==typeof t&&(t=tt(t)),encodeURIComponent((s=t.toString(),j(I(s))));var s},e={},W(data,(function(n,r){e[r]=t(n)})),e;var t,e}function Z(data){var object,t,e=Y(data,(function(t){return void 0!==t}));return map((object=K(e),t=[],W(object,(function(e,n){t.push([n,e])})),t),$.method("join","=")).join("&")}function tt(source){try{return JSON.stringify(source)}catch(n){return JSON.stringify((t=[],e=[],function n(r,path){var i,o,c;switch(typeof r){case"object":if(!r)return null;for(i=0;i<t.length;i+=1)if(t[i]===r)return{$ref:e[i]};if(t.push(r),e.push(path),"[object Array]"===Object.prototype.toString.apply(r))for(c=[],i=0;i<r.length;i+=1)c[i]=n(r[i],path+"["+i+"]");else for(o in c={},r)Object.prototype.hasOwnProperty.call(r,o)&&(c[o]=n(r[o],path+"["+JSON.stringify(o)+"]"));return c;case"number":case"string":case"boolean":return r}}(source,"$")))}var t,e}var et=new class{constructor(){this.globalLog=t=>{window.console&&window.console.log&&window.console.log(t)}}debug(...t){this.log(this.globalLog,t)}warn(...t){this.log(this.globalLogWarn,t)}error(...t){this.log(this.globalLogError,t)}globalLogWarn(t){window.console&&window.console.warn?window.console.warn(t):this.globalLog(t)}globalLogError(t){window.console&&window.console.error?window.console.error(t):this.globalLogWarn(t)}log(t,...e){var n=J.apply(this,arguments);Me.log?Me.log(n):Me.logToConsole&&t.bind(this)(n)}},nt=function(t,e,n,r,o){void 0===n.headers&&null==n.headersProvider||et.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);var c=t.nextAuthCallbackID.toString();t.nextAuthCallbackID++;var h=t.getDocument(),script=h.createElement("script");t.auth_callbacks[c]=function(data){o(null,data)};var l="Pusher.auth_callbacks['"+c+"']";script.src=n.endpoint+"?callback="+encodeURIComponent(l)+"&"+e;var head=h.getElementsByTagName("head")[0]||h.documentElement;head.insertBefore(script,head.firstChild)};class it{constructor(t){this.src=t}send(t){var e=this,n="Error loading "+e.src;e.script=document.createElement("script"),e.script.id=t.id,e.script.src=e.src,e.script.type="text/javascript",e.script.charset="UTF-8",e.script.addEventListener?(e.script.onerror=function(){t.callback(n)},e.script.onload=function(){t.callback(null)}):e.script.onreadystatechange=function(){"loaded"!==e.script.readyState&&"complete"!==e.script.readyState||t.callback(null)},void 0===e.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(e.errorScript=document.createElement("script"),e.errorScript.id=t.id+"_error",e.errorScript.text=t.name+"('"+n+"');",e.script.async=e.errorScript.async=!1):e.script.async=!0;var head=document.getElementsByTagName("head")[0];head.insertBefore(e.script,head.firstChild),e.errorScript&&head.insertBefore(e.errorScript,e.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class st{constructor(t,data){this.url=t,this.data=data}send(t){if(!this.request){var e=Z(this.data),n=this.url+"/"+t.number+"?"+e;this.request=ve.createScriptRequest(n),this.request.send(t)}}cleanup(){this.request&&this.request.cleanup()}}var ot={name:"jsonp",getAgent:function(t,e){return function(data,n){var r="http"+(e?"s":"")+"://"+(t.host||t.options.host)+t.options.path,c=ve.createJSONPRequest(r,data),h=ve.ScriptReceivers.create((function(e,r){o.remove(h),c.cleanup(),r&&r.host&&(t.host=r.host),n&&n(e,r)}));c.send(h)}}};function at(t,e,path){return t+(e.useTLS?"s":"")+"://"+(e.useTLS?e.hostTLS:e.hostNonTLS)+path}function ct(t,e){return"/app/"+t+"?protocol="+c.PROTOCOL+"&client=js&ver
2sion="+c.VERSION+(e?"&"+e:"")}var ht={getInitial:function(t,e){return at("ws",e,(e.httpPath||"")+ct(t,"flash=false"))}},ut={getInitial:function(t,e){return at("http",e,(e.httpPath||"/pusher")+ct(t))}},lt={getInitial:function(t,e){return at("http",e,e.httpPath||"/pusher")},getPath:function(t,e){return ct(t)}};class pt{constructor(){this._callbacks={}}get(t){return this._callbacks[ft(t)]}add(t,e,n){var r=ft(t);this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:e,context:n})}remove(t,e,n){if(t||e||n){var r=t?[ft(t)]:G(this._callbacks);e||n?this.removeCallback(r,e,n):this.removeAllCallbacks(r)}else this._callbacks={}}removeCallback(t,e,n){V(t,(function(t){this._callbacks[t]=filter(this._callbacks[t]||[],(function(t){return e&&e!==t.fn||n&&n!==t.context})),0===this._callbacks[t].length&&delete this._callbacks[t]}),this)}removeAllCallbacks(t){V(t,(function(t){delete this._callbacks[t]}),this)}}function ft(t){return"_"+t}class gt{constructor(t){this.callbacks=new pt,this.global_callbacks=[],this.failThrough=t}bind(t,e,n){return this.callbacks.add(t,e,n),this}bind_global(t){return this.global_callbacks.push(t),this}unbind(t,e,n){return this.callbacks.remove(t,e,n),this}unbind_global(t){return t?(this.global_callbacks=filter(this.global_callbacks||[],(e=>e!==t)),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(t,data,e){for(var i=0;i<this.global_callbacks.length;i++)this.global_callbacks[i](t,data);var n=this.callbacks.get(t),r=[];if(e?r.push(data,e):data&&r.push(data),n&&n.length>0)for(i=0;i<n.length;i++)n[i].fn.apply(n[i].context||window,r);else this.failThrough&&this.failThrough(t,data);return this}}class mt extends gt{constructor(t,e,n,r,o){super(),this.initialize=ve.transportConnectionInitializer,this.hooks=t,this.name=e,this.priority=n,this.key=r,this.options=o,this.state="new",this.timeline=o.timeline,this.activityTimeout=o.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return Boolean(this.hooks.handlesActivityChecks)}supportsPing(){return Boolean(this.hooks.supportsPing)}connect(){if(this.socket||"initialized"!==this.state)return!1;var t=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(t,this.options)}catch(t){return $.defer((()=>{this.onError(t),this.changeState("closed")})),!1}return this.bindListeners(),et.debug("Connecting",{transport:this.name,url:t}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(data){return"open"===this.state&&($.defer((()=>{this.socket&&this.socket.send(data)})),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(t){this.emit("error",{type:"WebSocketError",error:t}),this.timeline.error(this.buildTimelineMessage({error:t.toString()}))}onClose(t){t?this.changeState("closed",{code:t.code,reason:t.reason,wasClean:t.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(t){this.emit("message",t)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=t=>{this.onError(t)},this.socket.onclose=t=>{this.onClose(t)},this.socket.onmessage=t=>{this.onMessage(t)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(t,e){this.state=t,this.timeline.info(this.buildTimelineMessage({state:t,params:e})),this.emit(t,e)}buildTimelineMessage(t){return F({cid:this.id},t)}}class bt{constructor(t){this.hooks=t}isSupported(t){return this.hooks.isSupported(t)}createConnection(t,e,n,r){return new mt(this.hooks,t,e,n,r)}}var vt=new bt({urls:ht,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(ve.getWebSocketAPI())},isSupported:function(){return Boolean(ve.getWebSocketAPI())},getSocket:function(t){return ve.createWebSocket(t)}}),yt={urls:ut,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},wt=F({getSocket:function(t){return ve.HTTPFactory.createStreamingSocket(t)}},yt),St=F({getSocket:function(t){return ve.HTTPFactory.createPollingSocket(t)}},yt),_t={isSupported:function(){return ve.isXHRSupported()}},kt={ws:vt,xhr_streaming:new bt(F({},wt,_t)),xhr_polling:new bt(F({},St,_t))},Ct=new bt({file:"sockjs",urls:lt,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(t,e){return new window.SockJS(t,null,{js_path:l.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(t,path){t.send(JSON.stringify({path:path}))}}),Tt={isSupported:function(t){return ve.isXDRSupported(t.useTLS)}},Pt=new bt(F({},wt,Tt)),Et=new bt(F({},St,Tt));kt.xdr_streaming=Pt,kt.xdr_polling=Et,kt.sockjs=Ct;var Ot=kt,xt=new class extends gt{constructor(){super();var t=this;void 0!==window.addEventListener&&(window.addEventListener("online",(function(){t.emit("online")}),!1),window.addEventListener("offline",(function(){t.emit("offline")}),!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}};class Lt{constructor(t,e,n){this.manager=t,this.transport=e,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}createConnection(t,e,n,r){r=F({},r,{activityTimeout:this.pingDelay});var o=this.transport.createConnection(t,e,n,r),c=null,h=function(){o.unbind("open",h),o.bind("closed",l),c=$.now()},l=t=>{if(o.unbind("closed",l),1002===t.code||1003===t.code)this.manager.reportDeath();else if(!t.wasClean&&c){var e=$.now()-c;e<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(e/2,this.minPingDelay))}};return o.bind("open",h),o}isSupported(t){return this.manager.isAlive()&&this.transport.isSupported(t)}}const At={decodeMessage:function(t){try{var e=JSON.parse(t.data),n=e.data;if("string"==typeof n)try{n=JSON.parse(e.data)}catch(t){}var r={event:e.event,channel:e.channel,data:n};return e.user_id&&(r.user_id=e.user_id),r}catch(e){throw{type:"MessageParseError",error:e,data:t.data}}},encodeMessage:function(t){return JSON.stringify(t)},processHandshake:function(t){var e=At.decodeMessage(t);if("pusher:connection_established"===e.event){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";
vendor: 5,429 bytes, line 2
2return{action:"connected",id:e.data.socket_id,activityTimeout:1e3*e.data.activity_timeout}}if("pusher:error"===e.event)return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"},getCloseAction:function(t){return t.code<4e3?t.code>=1002&&t.code<=1004?"backoff":null:4e3===t.code?"tls_only":t.code<4100?"refused":t.code<4200?"backoff":t.code<4300?"retry":"refused"},getCloseError:function(t){return 1e3!==t.code&&1001!==t.code?{type:"PusherError",data:{code:t.code,message:t.reason||t.message}}:null}};var Rt=At;class It extends gt{constructor(t,e){super(),this.id=t,this.transport=e,this.activityTimeout=e.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(data){return this.transport.send(data)}send_event(t,data,e){var n={event:t,data:data};return e&&(n.channel=e),et.debug("Event sent",n),this.send(Rt.encodeMessage(n))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var t={message:t=>{var e;try{e=Rt.decodeMessage(t)}catch(e){this.emit("error",{type:"MessageParseError",error:e,data:t.data})}if(void 0!==e){switch(et.debug("Event recd",e),e.event){case"pusher:error":this.emit("error",{type:"PusherError",data:e.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong")}this.emit("message",e)}},activity:()=>{this.emit("activity")},error:t=>{this.emit("error",t)},closed:t=>{e(),t&&t.code&&this.handleCloseEvent(t),this.transport=null,this.emit("closed")}},e=()=>{W(t,((t,e)=>{this.transport.unbind(e,t)}))};W(t,((t,e)=>{this.transport.bind(e,t)}))}handleCloseEvent(t){var e=Rt.getCloseAction(t),n=Rt.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})}}class Dt{constructor(t,e){this.transport=t,this.callback=e,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=t=>{var e;this.unbindListeners();try{e=Rt.processHandshake(t)}catch(t){return this.finish("error",{error:t}),void this.transport.close()}"connected"===e.action?this.finish("connected",{connection:new It(e.id,this.transport),activityTimeout:e.activityTimeout}):(this.finish(e.action,{error:e.error}),this.transport.close())},this.onClosed=t=>{this.unbindListeners();var e=Rt.getCloseAction(t)||"backoff",n=Rt.getCloseError(t);this.finish(e,{error:n})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(t,e){this.callback(F({transport:this.transport,action:t},e))}}class jt{constructor(t,e){this.timeline=t,this.options=e||{}}send(t,e){this.timeline.isEmpty()||this.timeline.send(ve.TimelineTransport.getAgent(this,t),e)}}class Nt extends gt{constructor(t,e){super((function(e,data){et.debug("No callbacks on "+t+" for "+e)})),this.name=t,this.pusher=e,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(t,e){return e(null,{auth:""})}trigger(t,data){if(0!==t.indexOf("client-"))throw new v("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var e=m("triggeringClientEvents");et.warn(`Client event triggered before channel 'subscription_succeeded' event . ${e}`)}return this.pusher.send_event(t,data,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(t){var e=t.event,data=t.data;"pusher_internal:subscription_succeeded"===e?this.handleSubscriptionSucceededEvent(t):"pusher_internal:subscription_count"===e?this.handleSubscriptionCountEvent(t):0!==e.indexOf("pusher_internal:")&&this.emit(e,data,{})}handleSubscriptionSucceededEvent(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",t.data)}handleSubscriptionCountEvent(t){t.data.subscription_count&&(this.subscriptionCount=t.data.subscription_count),this.emit("pusher:subscription_count",t.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,((t,data)=>{t?(this.subscriptionPending=!1,et.error(t.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:t.message},t instanceof P?{status:t.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:data.auth,channel_data:data.channel_data,channel:this.name})})))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class Ht extends Nt{authorize(t,e){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:t},e)}}class Ut{constructor(){this.reset()}get(t){return Object.prototype.hasOwnProperty.call(this.members,t)?{id:t,info:this.members[t]}:null}each(t){W(this.members,((e,n)=>{t(this.get(n))}))}setMyID(t){this.myID=t}onSubscription(t){this.members=t.presence.hash,this.count=t.presence.count,this.me=this.get(this.myID)}addMember(t){return null===this.get(t.user_id)&&this.count++,this.members[t.user_id]=t.user_info,this.get(t.user_id)}removeMember(t){var e=this.get(t.user_id);return e&&(delete this.members[t.user_id],this.count--),e}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}
2var Mt=function(t,e,n,r){return new(n||(n=Promise))((function(o,c){function h(t){try{d(r.next(t))}catch(t){c(t)}}function l(t){try{d(r.throw(t))}catch(t){c(t)}}function d(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(h,l)}d((r=r.apply(t,e||[])).next())}))};class zt extends Ht{constructor(t,e){super(t,e),this.members=new Ut}authorize(t,e){super.authorize(t,((t,n)=>Mt(this,void 0,void 0,(function*(){if(!t)if(null!=n.channel_data){var r=JSON.parse(n.channel_data);this.members.setMyID(r.user_id)}else{if(yield this.pusher.user.signinDonePromise,null==this.pusher.user.user_data){let t=m("authorizationEndpoint");return et.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${t}, or the user should be signed in.`),void e("Invalid auth response")}this.members.setMyID(this.pusher.user.user_data.id)}e(t,n)}))))}handleEvent(t){var e=t.event;if(0===e.indexOf("pusher_internal:"))this.handleInternalEvent(t);else{var data=t.data,n={};t.user_id&&(n.user_id=t.user_id),this.emit(e,data,n)}}handleInternalEvent(t){var e=t.event,data=t.data;switch(e){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(t);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(t);break;case"pusher_internal:member_added":var n=this.members.addMember(data);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var r=this.members.removeMember(data);r&&this.emit("pusher:member_removed",r)}}handleSubscriptionSucceededEvent(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(t.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var qt=n(1),Bt=n(0);class $t extends Ht{constructor(t,e,n){super(t,e),this.key=null,this.nacl=n}authorize(t,e){super.authorize(t,((t,n)=>{if(t)return void e(t,n);let r=n.shared_secret;r?(this.key=Object(Bt.decode)(r),delete n.shared_secret,e(null,n)):e(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)}))}trigger(t,data){throw new k("Client events are not currently supported for encrypted channels")}handleEvent(t){var e=t.event,data=t.data;0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")?this.handleEncryptedEvent(e,data):super.handleEvent(t)}handleEncryptedEvent(t,data){if(!this.key)return void et.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!data.ciphertext||!data.nonce)return void et.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+data);let e=Object(Bt.decode)(data.ciphertext);if(e.length<this.nacl.secretbox.overheadLength)return void et.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${e.length}`);let n=Object(Bt.decode)(data.nonce);if(n.length<this.nacl.secretbox.nonceLength)return void et.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${n.length}`);let r=this.nacl.secretbox.open(e,n,this.key);if(null===r)return et.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,((o,c)=>{o?et.error(`Failed to make a request to the authEndpoint: ${c}. Unable to fetch new key, so dropping encrypted event`):(r=this.nacl.secretbox.open(e,n,this.key),null!==r?this.emit(t,this.getDataToEmit(r)):et.error("Failed to decrypt event with new key. Dropping encrypted event"))}));this.emit(t,this.getDataToEmit(r))}getDataToEmit(t){let e=Object(qt.decode)(t);try{return JSON.parse(e)}catch(t){return e}}}class Ft extends gt{constructor(t,e){super(),this.state="initialized",this.connection=null,this.key=t,this.options=e,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var n=ve.getNetwork();n.bind("online",(()=>{this.timeline.info({netinfo:"online"}),"connecting"!==this.state&&"unavailable"!==this.state||this.retryIn(0)})),n.bind("offline",(()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()})),this.updateStrategy()}connect(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}send(data){return!!this.connection&&this.connection.send(data)}send_event(t,data,e){return!!this.connection&&this.connection.send_event(t,data,e)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var t=(e,n)=>{e?this.runner=this.strategy.connect(0,t):"error"===n.action?(this.emit
2("error",{type:"HandshakeError",error:n.error}),this.timeline.error({handshakeError:n.error})):(this.abortConnecting(),this.handshakeCallbacks[n.action](n))};this.runner=this.strategy.connect(0,t)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(t){this.timeline.info({action:"retry",delay:t}),t>0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new M(t||0,(()=>{this.disconnectInternally(),this.connect()}))}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new M(this.options.unavailableTimeout,(()=>{this.updateState("unavailable")}))}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new M(this.options.pongTimeout,(()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)}))}
2resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new M(this.activityTimeout,(()=>{this.sendActivityCheck()})))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(t){return F({},t,{message:t=>{this.resetActivityCheck(),this.emit("message",t)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:t=>{this.emit("error",t)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(t){return F({},t,{connected:t=>{this.activityTimeout=Math.min(this.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(t.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let t=t=>e=>{e.error&&this.emit("error",{type:"WebSocketError",error:e.error}),t(e)};return{tls_only:t((()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)})),refused:t((()=>{this.disconnect()})),backoff:t((()=>{this.retryIn(1e3)})),retry:t((()=>{this.retryIn(0)}))}}setConnection(t){for(var e in this.connection=t,this.connectionCallbacks)this.connection.bind(e,this.connectionCallbacks[e]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var t in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(t,this.connectionCallbacks[t]);var e=this.connection;return this.connection=null,e}}updateState(t,data){var e=this.state;if(this.state=t,e!==t){var n=t;"connected"===n&&(n+=" with new socket ID "+data.socket_id),et.debug("State changed",e+" -> "+n),this.timeline.info({state:t,params:data}),this.emit("state_change",{previous:e,current:t}),this.emit(t,data)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class Jt{constructor(){this.channels={}}add(t,e){return this.channels[t]||(this.channels[t]=function(t,e){if(0===t.indexOf("private-encrypted-")){if(e.config.nacl)return Xt.createEncryptedChannel(t,e,e.config.nacl);let n="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",r=m("encryptedChannelSupport");throw new k(`${n}. ${r}`)}if(0===t.indexOf("private-"))return Xt.createPrivateChannel(t,e);if(0===t.indexOf("presence-"))return Xt.createPresenceChannel(t,e);if(0===t.indexOf("#"))throw new y('Cannot create a channel with name "'+t+'".');return Xt.createChannel(t,e)}(t,e)),this.channels[t]}all(){return function(object){var t=[];return W(object,(function(e){t.push(e)})),t}(this.channels)}find(t){return this.channels[t]}remove(t){var e=this.channels[t];return delete this.channels[t],e}disconnect(){W(this.channels,(function(t){t.disconnect()}))}}var Xt={createChannels:()=>new Jt,createConnectionManager:(t,e)=>new Ft(t,e),createChannel:(t,e)=>new Nt(t,e),createPrivateChannel:(t,e)=>new Ht(t,e),createPresenceChannel:(t,e)=>new zt(t,e),createEncryptedChannel:(t,e,n)=>new $t(t,e,n),createTimelineSender:(t,e)=>new jt(t,e),createHandshake:(t,e)=>new Dt(t,e),createAssistantToTheTransportManager:(t,e,n)=>new Lt(t,e,n)};class Wt{constructor(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}getAssistant(t){return Xt.createAssistantToTheTransportManager(this,t,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Gt{constructor(t,e){this.strategies=t,this.loop=Boolean(e.loop),this.failFast=Boolean(e.failFast),this.timeout=e.timeout,this.timeoutLimit=e.timeoutLimit}isSupported(){return Q(this.strategies,$.method("isSupported"))}connect(t,e){var n=this.strategies,r=0,o=this.timeout,c=null,h=(l,d)=>{d?e(null,d):(r+=1,this.loop&&(r%=n.length),r<n.length?(o&&(o*=2,this.timeoutLimit&&(o=Math.min(o,this.timeoutLimit))),c=this.tryStrategy(n[r],t,{timeout:o,failFast:this.failFast},h)):e(!0))};return c=this.tryStrategy(n[r],t,{timeout:o,failFast:this.failFast},h),{abort:function(){c.abort()},forceMinPriority:function(p){t=p,c&&c.forceMinPriority(p)}}}tryStrategy(t,e,n,r){var o=null,c=null;return n.timeout>0&&(o=new M(n.timeout,(function(){c.abort(),r(!0)}))),c=t.connect(e,(function(t,e){t&&o&&o.isRunning()&&!n.failFast||(o&&o.ensureAborted(),r(t,e))})),{abort:function(){o&&o.ensureAborted(),c.abort()},forceMinPriority:function(p){c.forceMinPriority(p)}}}}class Vt{constructor(t){this.strategies=t}isSupported(){return Q(this.strategies,$.method("isSupported"))}connect(t,e){return function(t,e,n){var r=map(t,(function(t,i,r,o){return t.connect(e,n(i,o))}));return{abort:function(){V(r,Yt)},forceMinPriority:function(p){V(r,(function(t){t.forceMinPriority(p)}
2))}}}(this.strategies,t,(function(i,t){return function(n,r){t[i].error=n,n?function(t){return function(t,e){for(var i=0;i<t.length;i++)if(!e(t[i],i,t))return!1;return!0}(t,(function(t){return Boolean(t.error)}))}(t)&&e(!0):(V(t,(function(t){t.forceMinPriority(r.transport.priority)})),e(null,r))}}))}}function Yt(t){t.error||t.aborted||(t.abort(),t.aborted=!0)}class Qt{constructor(t,e,n){this.strategy=t,this.transports=e,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}isSupported(){return this.strategy.isSupported()}connect(t,e){var n=this.usingTLS,r=function(t){var e=ve.getLocalStorage();if(e)try{var n=e[Kt(t)];if(n)return JSON.parse(n)}catch(e){Zt(t)}return null}(n),o=r&&r.cacheSkipCount?r.cacheSkipCount:0,c=[this.strategy];if(r&&r.timestamp+this.ttl>=$.now()){var h=this.transports[r.transport];h&&(["ws","wss"].includes(r.transport)||o>3?(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),c.push(new Gt([h],{timeout:2*r.latency+1e3,failFast:!0}))):o++)}var l=$.now(),d=c.pop().connect(t,(function r(h,f){h?(Zt(n),c.length>0?(l=$.now(),d=c.pop().connect(t,r)):e(h)):(function(t,e,n,r){var o=ve.getLocalStorage();if(o)try{o[Kt(t)]=tt({timestamp:$.now(),transport:e,latency:n,cacheSkipCount:r})}catch(t){}}(n,f.transport.name,$.now()-l,o),e(null,f))}));return{abort:function(){d.abort()},forceMinPriority:function(p){t=p,d&&d.forceMinPriority(p)}}}}function Kt(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function Zt(t){var e=ve.getLocalStorage();if(e)try{delete e[Kt(t)]}catch(t){}}class te{constructor(t,{delay:e}){this.strategy=t,this.options={delay:e}}isSupported(){return this.strategy.isSupported()}connect(t,e){var n,r=this.strategy,o=new M(this.options.delay,(function(){n=r.connect(t,e)}));return{abort:function(){o.ensureAborted(),n&&n.abort()},forceMinPriority:function(p){t=p,n&&n.forceMinPriority(p)}}}}class ee{constructor(t,e,n){this.test=t,this.trueBranch=e,this.falseBranch=n}isSupported(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}connect(t,e){return(this.test()?this.trueBranch:this.falseBranch).connect(t,e)}}class ne{constructor(t){this.strategy=t}isSupported(){return this.strategy.isSupported()}connect(t,e){var n=this.strategy.connect(t,(function(t,r){r&&n.abort(),e(t,r)}));return n}}function ie(t){return function(){return t.isSupported()}}var re,se=function(t,e,n){var r={};function o(e,o,c,h,l){var d=n(t,e,o,c,h,l);return r[e]=d,d}var c,h=Object.assign({},e,{hostNonTLS:t.wsHost+":"+t.wsPort,hostTLS:t.wsHost+":"+t.wssPort,httpPath:t.wsPath}),l=Object.assign({},h,{useTLS:!0}),d=Object.assign({},e,{hostNonTLS:t.httpHost+":"+t.httpPort,hostTLS:t.httpHost+":"+t.httpsPort,httpPath:t.httpPath}),f={loop:!0,timeout:15e3,timeoutLimit:6e4},m=new Wt({minPingDelay:1e4,maxPingDelay:t.activityTimeout}),v=new Wt({lives:2,minPingDelay:1e4,maxPingDelay:t.activityTimeout}),y=o("ws","ws",3,h,m),w=o("wss","ws",3,l,m),S=o("sockjs","sockjs",1,d),_=o("xhr_streaming","xhr_streaming",1,d,v),k=o("xdr_streaming","xdr_streaming",1,d,v),C=o("xhr_polling","xhr_polling",1,d),T=o("xdr_polling","xdr_polling",1,d),P=new Gt([y],f),E=new Gt([w],f),O=new Gt([S],f),x=new Gt([new ee(ie(_),_,k)],f),L=new Gt([new ee(ie(C),C,T)],f),A=new Gt([new ee(ie(x),new Vt([x,new te(L,{delay:4e3})]),L)],f),R=new ee(ie(A),A,O);return c=e.useTLS?new Vt([P,new te(R,{delay:2e3})]):new Vt([P,new te(E,{delay:2e3}),new te(R,{delay:5e3})]),new Qt(new ne(new ee(ie(y),c,R)),r,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},oe={getRequest:function(t){var e=new window.XDomainRequest;return e.ontimeout=function(){t.emit("error",new w),t.close()},e.onerror=function(e){t.emit("error",e),t.close()},e.onprogress=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText),t.emit("finished",200),t.close()},e},abortRequest:function(t){t.ontimeout=t.onerror=t.onprogress=t.onload=null,t.abort()}};class ae extends gt{constructor(t,e,n){super(),this.hooks=t,this.method=e,this.url=n}
2start(t){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},ve.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(t)}close(){this.unloader&&(ve.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(t,data){for(;;){var e=this.advanceBuffer(data);if(!e)break;this.emit("chunk",{status:t,data:e})}this.isBufferTooLong(data)&&this.emit("buffer_too_long")}advanceBuffer(t){var e=t.slice(this.position),n=e.indexOf("\n");return-1!==n?(this.position+=n+1,e.slice(0,n)):null}isBufferTooLong(t){return this.position===t.length&&t.length>262144}}!function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSED=3]="CLOSED"}(re||(re={}));var ce=re,he=1;function ue(t){var e=-1===t.indexOf("?")?"?":"&";return t+e+"t="+ +new Date+"&n="+he++}function le(t){return ve.randomInt(t)}var de,pe=class{constructor(t,e){this.hooks=t,this.session=le(1e3)+"/"+function(t){for(var e=[],i=0;i<t;i++)e.push(le(32).toString(32));return e.join("")}(8),this.location=function(t){var e=/([^\?]*)\/*(\??.*)/.exec(t);return{base:e[1],queryString:e[2]}}(e),this.readyState=ce.CONNECTING,this.openStream()}send(t){return this.sendRaw(JSON.stringify([t]))}ping(){this.hooks.sendHeartbeat(this)}close(code,t){this.onClose(code,t,!0)}sendRaw(t){if(this.readyState!==ce.OPEN)return!1;try{return ve.createSocketRequest("POST",ue((e=this.location,n=this.session,e.base+"/"+n+"/xhr_send"))).start(t),!0}catch(t){return!1}var e,n}reconnect(){this.closeStream(),this.openStream()}onClose(code,t,e){this.closeStream(),this.readyState=ce.CLOSED,this.onclose&&this.onclose({code:code,reason:t,wasClean:e})}onChunk(t){var e;if(200===t.status)switch(this.readyState===ce.OPEN&&this.onActivity(),t.data.slice(0,1)){case"o":e=JSON.parse(t.data.slice(1)||"{}"),this.onOpen(e);break;case"a":e=JSON.parse(t.data.slice(1)||"[]");for(var i=0;i<e.length;i++)this.onEvent(e[i]);break;case"m":e=JSON.parse(t.data.slice(1)||"null"),this.onEvent(e);break;case"h":this.hooks.onHeartbeat(this);break;case"c":e=JSON.parse(t.data.slice(1)||"[]"),this.onClose(e[0],e[1],!0)}}onOpen(t){var e,n,r;this.readyState===ce.CONNECTING?(t&&t.hostname&&(this.location.base=(e=this.location.base,n=t.hostname,(r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e))[1]+n+r[3])),this.readyState=ce.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(t){this.readyState===ce.OPEN&&this.onmessage&&this.onmessage({data:t})}onActivity(){this.onactivity&&this.onactivity()}onError(t){this.onerror&&this.onerror(t)}openStream(){this.stream=ve.createSocketRequest("POST",ue(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",(t=>{this.onChunk(t)})),this.stream.bind("finished",(t=>{this.hooks.onFinished(this,t)})),this.stream.bind("buffer_too_long",(()=>{this.reconnect()}));try{this.stream.start()}catch(t){$.defer((()=>{this.onError(t),this.onClose(1006,"Could not start streaming",!1)}))}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}},fe={getReceiveURL:function(t,e){return t.base+"/"+e+"/xhr_streaming"+t.queryString},onHeartbeat:function(t){t.sendRaw("[]")},sendHeartbeat:function(t){t.sendRaw("[]")},onFinished:function(t,e){t.onClose(1006,"Connection interrupted ("+e+")",!1)}},ge={getReceiveURL:function(t,e){return t.base+"/"+e+"/xhr"+t.queryString},onHeartbeat:function(){},sendHeartbeat:function(t){t.sendRaw("[]")},onFinished:function(t,e){200===e?t.reconnect():t.onClose(1006,"Connection interrupted ("+e+")",!1)}},me={getRequest:function(t){var e=new(ve.getXHRAPI());return e.onreadystatechange=e.onprogress=function(){switch(e.readyState){case 3:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText),t.emit("finished",e.status),t.close()}},e},abortRequest:function(t){t.onreadystatechange=null,t.abort()}},be={createStreamingSocket(t){return this.createSocket(fe,t)},createPollingSocket(t){return this.createSocket(ge,t)},createSocket:(t,e)=>new pe(t,e),createXHR(t,e){return this.createRequest(me,t,e)},createRequest:(t,e,n)=>new ae(t,e,n),createXDR:function(t,e){return this.createRequest(oe,t,e)}},ve={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:o,DependenciesReceivers:h,getDefaultStrategy:se,Transports:Ot,transportConnectionInitializer:function(){var t=this;t.timeline.info(t.buildTimelineMessage({transport:t.name+(t.options.useTLS?"s":"")})),t.hooks.isInitialized()?t.changeState("initialized"):t.hooks.file?(t.changeState("initializing"),l.load(t.hooks.file,{useTLS:t.options.useTLS},(function(e,n){t.hooks.isInitialized()?(t.changeState("initialized"),n(!0)):(e&&t.onError(e),t.onClose(),n(!1))}))):t.onClose()},HTTPFactory:be,TimelineTransport:ot,getXHRAPI:()=>window.XMLHttpRequest,getWebSocketAPI:()=>window.WebSocket||window.MozWebSocket,setup(t){window.Pusher=t;var e=()=>{this.onDocumentBody(t.ready)};window.JSON?e():l.load("json2",{},e)},getDocument:()=>document,getProtocol(){return this.getDocument().location.protocol},getAuthorizers:()=>({ajax:E,jsonp:nt}),onDocumentBody(t){document.body?t():setTimeout((()=>{this.onDocumentBody(t)}),0)},createJSONPRequest:(t,data)=>new st(t,data),createScriptRequest:t=>new it(t),getLocalStorage(){try{return window.localStorage}catch(t){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){return new(this.getXHRAPI())},createMicrosoftXHR:()=>new ActiveXObject("Microsoft.XMLHTTP"),getNetwork:()=>xt,createWebSocket(t){return new(this.getWebSocketAPI())(t)}
2,createSocketRequest(t,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(t,e);if(this.isXDRSupported(0===e.indexOf("https:")))return this.HTTPFactory.createXDR(t,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var t=this.getXHRAPI();return Boolean(t)&&void 0!==(new t).withCredentials},isXDRSupported(t){var e=t?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===e},addUnloadListener(t){void 0!==window.addEventListener?window.addEventListener("unload",t,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",t)},removeUnloadListener(t){void 0!==window.addEventListener?window.removeEventListener("unload",t,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",t)},randomInt:t=>Math.floor((window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*t)};!function(t){t[t.ERROR=3]="ERROR",t[t.INFO=6]="INFO",t[t.DEBUG=7]="DEBUG"}(de||(de={}));var ye=de;class we{constructor(t,e,n){this.key=t,this.session=e,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}log(t,e){t<=this.options.level&&(this.events.push(F({},e,{timestamp:$.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(t){this.log(ye.ERROR,t)}info(t){this.log(ye.INFO,t)}debug(t){this.log(ye.DEBUG,t)}isEmpty(){return 0===this.events.length}send(t,e){var data=F({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],t(data,((t,n)=>{t||this.sent++,e&&e(t,n)})),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Se{constructor(t,e,n,r){this.name=t,this.priority=e,this.transport=n,this.options=r||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(t,e){if(!this.isSupported())return _e(new T,e);if(this.priority<t)return _e(new S,e);var n=!1,r=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),o=null,c=function(){r.unbind("initialized",c),r.connect()},h=function(){o=Xt.createHandshake(r,(function(t){n=!0,f(),e(null,t)}))},l=function(t){f(),e(t)},d=function(){var t;f(),t=tt(r),e(new _(t))},f=function(){r.unbind("initialized",c),r.unbind("open",h),r.unbind("error",l),r.unbind("closed",d)};return r.bind("initialized",c),r.bind("open",h),r.bind("error",l),r.bind("closed",d),r.initialize(),{abort:()=>{n||(f(),o?o.close():r.close())},forceMinPriority:p=>{n||this.priority<p&&(o?o.close():r.close())}}}}function _e(t,e){return $.defer((function(){e(t)})),{abort:function(){},forceMinPriority:function(){}}}const{Transports:ke}=ve;var Ce=function(t,e,n,r,o,c){var h,l=ke[n];if(!l)throw new C(n);return t.enabledTransports&&-1===X(t.enabledTransports,e)||t.disabledTransports&&-1!==X(t.disabledTransports,e)?h=Te:(o=Object.assign({ignoreNullOrigin:t.ignoreNullOrigin},o),h=new Se(e,r,c?c.getAssistant(l):l,o)),h},Te={isSupported:function(){return!1},connect:function(t,e){var n=$.defer((function(){e(new T)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}},Pe=t=>{if(void 0===ve.getAuthorizers()[t.transport])throw`'${t.transport}' is not a recognized auth transport`;return(e,n)=>{const r=((t,e)=>{var n="socket_id="+encodeURIComponent(t.socketId);for(var r in e.params)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e.params[r]);if(null!=e.paramsProvider){let t=e.paramsProvider();for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r])}return n})(e,t);ve.getAuthorizers()[t.transport](ve,r,t,f.UserAuthentication,n)}},Ee=t=>{if(void 0===ve.getAuthorizers()[t.transport])throw`'${t.transport}' is not a recognized auth transport`;return(e,n)=>{const r=((t,e)=>{var n="socket_id="+encodeURIComponent(t.socketId);for(var r in n+="&channel_name="+encodeURIComponent(t.channelName),e.params)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e.params[r]);if(null!=e.paramsProvider){let t=e.paramsProvider();for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r])}return n})(e,t);ve.getAuthorizers()[t.transport](ve,r,t,f.ChannelAuthorization,n)}};const Oe=(t,e,n)=>{const r={authTransport:e.transport,authEndpoint:e.endpoint,auth:{params:e.params,headers:e.headers}};return(e,o)=>{const c=t.channel(e.channelName);n(c,r).authorize(e.socketId,o)}};function xe(t){return t.httpHost?t.httpHost:t.cluster?`sockjs-${t.cluster}.pusher.com`:c.httpHost}function Le(t){return t.wsHost?t.wsHost:`ws-${t.cluster}.pusher.com`}function Ae(t){return"https:"===ve.getProtocol()||!1!==t.forceTLS}function Re(t){return"enableStats"in t?t.enableStats:"disableStats"in t&&!t.disableStats}function Ie(t){const e=Object.assign(Object.assign({},c.userAuthentication),t.userAuthentication);return"customHandler"in e&&null!=e.customHandler?e.customHandler:Pe(e)}function De(t,e){const n=function(t,e){let n;return"channelAuthorization"in t?n=Object.assign(Object.assign({},c.channelAuthorization),t.channelAuthorization):(n={transport:t.authTransport||c.authTransport,endpoint:t.authEndpoint||c.authEndpoint},"auth"in t&&("params"in t.auth&&(n.params=t.auth.params),"headers"in t.auth&&(n.headers=t.auth.headers)),"authorizer"in t&&(n.customHandler=Oe(e,n,t.authorizer))),n}(t,e);return"customHandler"in n&&null!=n.customHandler?n.customHandler:Ee(n)}class je extends gt{constructor(t){super((function(t,data){et.debug(`No callbacks on watchlist events for ${t}`)})),this.pusher=t,this.bindWatchlistInternalEvent()}
2handleEvent(t){t.data.events.forEach((t=>{this.emit(t.name,t)}))}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",(t=>{"pusher_internal:watchlist_events"===t.event&&this.handleEvent(t)}))}}var Ne=function(){let t,e;return{promise:new Promise(((n,r)=>{t=n,e=r})),resolve:t,reject:e}};class He extends gt{constructor(t){super((function(t,data){et.debug("No callbacks on user for "+t)})),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(t,e)=>{if(t)return et.warn(`Error during signin: ${t}`),void this._cleanup();this.pusher.send_event("pusher:signin",{auth:e.auth,user_data:e.user_data})},this.pusher=t,this.pusher.connection.bind("state_change",(({previous:t,current:e})=>{"connected"!==t&&"connected"===e&&this._signin(),"connected"===t&&"connected"!==e&&(this._cleanup(),this._newSigninPromiseIfNeeded())})),this.watchlist=new je(t),this.pusher.connection.bind("message",(t=>{"pusher:signin_success"===t.event&&this._onSigninSuccess(t.data),this.serverToUserChannel&&this.serverToUserChannel.name===t.channel&&this.serverToUserChannel.handleEvent(t)}))}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(data){try{this.user_data=JSON.parse(data.user_data)}catch(t){return et.error(`Failed parsing user data after signin: ${data.user_data}`),void this._cleanup()}if("string"!=typeof this.user_data.id||""===this.user_data.id)return et.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){this.serverToUserChannel=new Nt(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global(((t,data)=>{0!==t.indexOf("pusher_internal:")&&0!==t.indexOf("pusher:")&&this.emit(t,data)})),(t=>{t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.pusher.connection.state||t.subscribe()})(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested)return;if(this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:t,resolve:e,reject:n}=Ne();t.done=!1;const r=()=>{t.done=!0};t.then(r).catch(r),this.signinDonePromise=t,this._signinDoneResolve=e}}class Ue{static ready(){Ue.isReady=!0;for(var i=0,t=Ue.instances.length;i<t;i++)Ue.instances[i].connect()}static getClientFeatures(){return G(Y({ws:ve.Transports.ws},(function(t){return t.isSupported({})})))}constructor(t,e){!function(t){if(null==t)throw"You must pass your app key when you instantiate Pusher."}(t),function(t){if(null==t)throw"You must pass an options object";if(null==t.cluster)throw"Options object must provide a cluster";"disableStats"in t&&et.warn("The disableStats option is deprecated in favor of enableStats")}(e),this.key=t,this.config=function(t,e){let n={activityTimeout:t.activityTimeout||c.activityTimeout,cluster:t.cluster,httpPath:t.httpPath||c.httpPath,httpPort:t.httpPort||c.httpPort,httpsPort:t.httpsPort||c.httpsPort,pongTimeout:t.pongTimeout||c.pongTimeout,statsHost:t.statsHost||c.stats_host,unavailableTimeout:t.unavailableTimeout||c.unavailableTimeout,wsPath:t.wsPath||c.wsPath,wsPort:t.wsPort||c.wsPort,wssPort:t.wssPort||c.wssPort,enableStats:Re(t),httpHost:xe(t),useTLS:Ae(t),wsHost:Le(t),userAuthenticator:Ie(t),channelAuthorizer:De(t,e)};return"disabledTransports"in t&&(n.disabledTransports=t.disabledTransports),"enabledTransports"in t&&(n.enabledTransports=t.enabledTransports),"ignoreNullOrigin"in t&&(n.ignoreNullOrigin=t.ignoreNullOrigin),"timelineParams"in t&&(n.timelineParams=t.timelineParams),"nacl"in t&&(n.nacl=t.nacl),n}(e,this),this.channels=Xt.createChannels(),this.global_emitter=new gt,this.sessionID=ve.randomInt(1e9),this.timeline=new we(this.key,this.sessionID,{cluster:this.config.cluster,features:Ue.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:ye.INFO,version:c.VERSION}),this.config.enableStats&&(this.timelineSender=Xt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+ve.TimelineTransport.name})),this.connection=Xt.createConnectionManager(this.key,{getStrategy:t=>ve.getDefaultStrategy(this.config,t,Ce),timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",(()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())})),this.connection.bind("message",(t=>{var e=0===t.event.indexOf("pusher_internal:");if(t.channel){var n=this.channel(t.channel);n&&n.handleEvent(t)}e||this.global_emitter.emit(t.event,t.data)})),this.connection.bind("connecting",(()=>{this.channels.disconnect()})),this.connection.bind("disconnected",(()=>{this.channels.disconnect()})),this.connection.bind("error",(t=>{et.warn(t)})),Ue.instances.push(this),this.timeline.info({instances:Ue.instances.length}),this.user=new He(this),Ue.isReady&&this.connect()}channel(t){return this.channels.find(t)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var t=this.connection.isUsingTLS(),e=this.timelineSender;this.timelineSenderTimer=new z(6e4,(function(){e.send(t)}))}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(t,e,n){return this.global_emitter.bind(t,e,n),this}unbind(t,e,n){return this.global_emitter.unbind(t,e,n),this}bind_global(t){return this.global_emitter.bind_global(t),this}unbind_global(t){return this.global_emitter.unbind_global(t),this}unbind_all(t){return this.global_emitter.unbind_all(),this}subscribeAll(){var t;for(t in this.channels.channels)this.channels.channels.hasOwnProperty(t)&&this.subscribe(t)}subscribe(t){var e=this.channels.add(t,this);return e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.connection.state||e.subscribe(),e}
2unsubscribe(t){var e=this.channels.find(t);e&&e.subscriptionPending?e.cancelSubscription():(e=this.channels.remove(t))&&e.subscribed&&e.unsubscribe()}send_event(t,data,e){return this.connection.send_event(t,data,e)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Ue.instances=[],Ue.isReady=!1,Ue.logToConsole=!1,Ue.Runtime=ve,Ue.ScriptReceivers=ve.ScriptReceivers,Ue.DependenciesReceivers=ve.DependenciesReceivers,Ue.auth_callbacks=ve.auth_callbacks;var Me=e.default=Ue;ve.setup(Ue)}])},t.exports=r()}}]);

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.