=u.length;return y=!y&&A.isArray(v)?v.length:y,N?(A.hasOwnProp(v,y)?v[y]=[v[y],d]:v[y]=d,!I):((!v[y]||!A.isObject(v[y]))&&(v[y]=[]),p(u,d,v[y],b)&&A.isArray(v[y])&&(v[y]=__(v[y])),!I)}if(A.isFormData(f)&&A.isFunction(f.entries)){const u={};return A.forEachEntry(f,(d,v)=>{p(v_(d),v,u,0)}),u}return null}function y_(f,p,u){const d=u.config.validateStatus;!u.status||!d||d(u.status)?f(u):p(new it("Request failed with status code "+u.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}const m_=We.isStandardBrowserEnv?function(){return{write:function(u,d,v,b,y,I){const N=[];N.push(u+"="+encodeURIComponent(d)),A.isNumber(v)&&N.push("expires="+new Date(v).toGMTString()),A.isString(b)&&N.push("path="+b),A.isString(y)&&N.push("domain="+y),I===!0&&N.push("secure"),document.cookie=N.join("; ")},read:function(u){const d=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return d?decodeURIComponent(d[3]):null},remove:function(u){this.write(u,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function b_(f){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(f)}function w_(f,p){return p?f.replace(/\/+$/,"")+"/"+p.replace(/^\/+/,""):f}function wf(f,p){return f&&!b_(p)?w_(f,p):p}const S_=We.isStandardBrowserEnv?function(){const p=/(msie|trident)/i.test(navigator.userAgent),u=document.createElement("a");let d;function v(b){let y=b;return p&&(u.setAttribute("href",y),y=u.href),u.setAttribute("href",y),{href:u.href,protocol:u.protocol?u.protocol.replace(/:$/,""):"",host:u.host,search:u.search?u.search.replace(/^\?/,""):"",hash:u.hash?u.hash.replace(/^#/,""):"",hostname:u.hostname,port:u.port,pathname:u.pathname.charAt(0)==="/"?u.pathname:"/"+u.pathname}}return d=v(window.location.href),function(y){const I=A.isString(y)?v(y):y;return I.protocol===d.protocol&&I.host===d.host}}():function(){return function(){return!0}}();function si(f,p,u){it.call(this,f==null?"canceled":f,it.ERR_CANCELED,p,u),this.name="CanceledError"}A.inherits(si,it,{__CANCEL__:!0});function T_(f){const p=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f);return p&&p[1]||""}const x_=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C_=f=>{const p={};let u,d,v;return f&&f.split(`
+`).forEach(function(y){v=y.indexOf(":"),u=y.substring(0,v).trim().toLowerCase(),d=y.substring(v+1).trim(),!(!u||p[u]&&x_[u])&&(u==="set-cookie"?p[u]?p[u].push(d):p[u]=[d]:p[u]=p[u]?p[u]+", "+d:d)}),p},$c=Symbol("internals"),Sf=Symbol("defaults");function ri(f){return f&&String(f).trim().toLowerCase()}function Lo(f){return f===!1||f==null?f:A.isArray(f)?f.map(Lo):String(f)}function E_(f){const p=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let d;for(;d=u.exec(f);)p[d[1]]=d[2];return p}function Vc(f,p,u,d){if(A.isFunction(d))return d.call(this,p,u);if(!!A.isString(p)){if(A.isString(d))return p.indexOf(d)!==-1;if(A.isRegExp(d))return d.test(p)}}function A_(f){return f.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(p,u,d)=>u.toUpperCase()+d)}function O_(f,p){const u=A.toCamelCase(" "+p);["get","set","has"].forEach(d=>{Object.defineProperty(f,d+u,{value:function(v,b,y){return this[d].call(this,p,v,b,y)},configurable:!0})})}function ni(f,p){p=p.toLowerCase();const u=Object.keys(f);let d=u.length,v;for(;d-- >0;)if(v=u[d],p===v.toLowerCase())return v;return null}function le(f,p){f&&this.set(f),this[Sf]=p||null}Object.assign(le.prototype,{set:function(f,p,u){const d=this;function v(b,y,I){const N=ri(y);if(!N)throw new Error("header name must be a non-empty string");const O=ni(d,N);O&&I!==!0&&(d[O]===!1||I===!1)||(d[O||y]=Lo(b))}return A.isPlainObject(f)?A.forEach(f,(b,y)=>{v(b,y,p)}):v(p,f,u),this},get:function(f,p){if(f=ri(f),!f)return;const u=ni(this,f);if(u){const d=this[u];if(!p)return d;if(p===!0)return E_(d);if(A.isFunction(p))return p.call(this,d,u);if(A.isRegExp(p))return p.exec(d);throw new TypeError("parser must be boolean|regexp|function")}},has:function(f,p){if(f=ri(f),f){const u=ni(this,f);return!!(u&&(!p||Vc(this,this[u],u,p)))}return!1},delete:function(f,p){const u=this;let d=!1;function v(b){if(b=ri(b),b){const y=ni(u,b);y&&(!p||Vc(u,u[y],y,p))&&(delete u[y],d=!0)}}return A.isArray(f)?f.forEach(v):v(f),d},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(f){const p=this,u={};return A.forEach(this,(d,v)=>{const b=ni(u,v);if(b){p[b]=Lo(d),delete p[v];return}const y=f?A_(v):String(v).trim();y!==v&&delete p[v],p[y]=Lo(d),u[y]=!0}),this},toJSON:function(f){const p=Object.create(null);return A.forEach(Object.assign({},this[Sf]||null,this),(u,d)=>{u==null||u===!1||(p[d]=f&&A.isArray(u)?u.join(", "):u)}),p}});Object.assign(le,{from:function(f){return A.isString(f)?new this(C_(f)):f instanceof this?f:new this(f)},accessor:function(f){const u=(this[$c]=this[$c]={accessors:{}}).accessors,d=this.prototype;function v(b){const y=ri(b);u[y]||(O_(d,b),u[y]=!0)}return A.isArray(f)?f.forEach(v):v(f),this}});le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);A.freezeMethods(le.prototype);A.freezeMethods(le);function P_(f,p){f=f||10;const u=new Array(f),d=new Array(f);let v=0,b=0,y;return p=p!==void 0?p:1e3,function(N){const O=Date.now(),H=d[b];y||(y=O),u[v]=N,d[v]=O;let z=b,j=0;for(;z!==v;)j+=u[z++],z=z%f;if(v=(v+1)%f,v===b&&(b=(b+1)%f),O-y{const b=v.loaded,y=v.lengthComputable?v.total:void 0,I=b-u,N=d(I),O=b<=y;u=b;const H={loaded:b,total:y,progress:y?b/y:void 0,bytes:I,rate:N||void 0,estimated:N&&y&&O?(y-b)/N:void 0};H[p?"download":"upload"]=!0,f(H)}}function Zc(f){return new Promise(function(u,d){let v=f.data;const b=le.from(f.headers).normalize(),y=f.responseType;let I;function N(){f.cancelToken&&f.cancelToken.unsubscribe(I),f.signal&&f.signal.removeEventListener("abort",I)}A.isFormData(v)&&We.isStandardBrowserEnv&&b.setContentType(!1);let O=new XMLHttpRequest;if(f.auth){const B=f.auth.username||"",U=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";b.set("Authorization","Basic "+btoa(B+":"+U))}const H=wf(f.baseURL,f.url);O.open(f.method.toUpperCase(),yf(H,f.params,f.paramsSerializer),!0),O.timeout=f.timeout;function z(){if(!O)return;const B=le.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),F={data:!y||y==="text"||y==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:B,config:f,request:O};y_(function(L){u(L),N()},function(L){d(L),N()},F),O=null}if("onloadend"in O?O.onloadend=z:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(z)},O.onabort=function(){!O||(d(new it("Request aborted",it.ECONNABORTED,f,O)),O=null)},O.onerror=function(){d(new it("Network Error",it.ERR_NETWORK,f,O)),O=null},O.ontimeout=function(){let U=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const F=f.transitional||mf;f.timeoutErrorMessage&&(U=f.timeoutErrorMessage),d(new it(U,F.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,f,O)),O=null},We.isStandardBrowserEnv){const B=(f.withCredentials||S_(H))&&f.xsrfCookieName&&m_.read(f.xsrfCookieName);B&&b.set(f.xsrfHeaderName,B)}v===void 0&&b.setContentType(null),"setRequestHeader"in O&&A.forEach(b.toJSON(),function(U,F){O.setRequestHeader(F,U)}),A.isUndefined(f.withCredentials)||(O.withCredentials=!!f.withCredentials),y&&y!=="json"&&(O.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&O.addEventListener("progress",Yc(f.onDownloadProgress,!0)),typeof f.onUploadProgress=="function"&&O.upload&&O.upload.addEventListener("progress",Yc(f.onUploadProgress)),(f.cancelToken||f.signal)&&(I=B=>{!O||(d(!B||B.type?new si(null,f,O):B),O.abort(),O=null)},f.cancelToken&&f.cancelToken.subscribe(I),f.signal&&(f.signal.aborted?I():f.signal.addEventListener("abort",I)));const j=T_(H);if(j&&We.protocols.indexOf(j)===-1){d(new it("Unsupported protocol "+j+":",it.ERR_BAD_REQUEST,f));return}O.send(v||null)})}const Qc={http:Zc,xhr:Zc},tf={getAdapter:f=>{if(A.isString(f)){const p=Qc[f];if(!f)throw Error(A.hasOwnProp(f)?`Adapter '${f}' is not available in the build`:`Can not resolve adapter '${f}'`);return p}if(!A.isFunction(f))throw new TypeError("adapter is not a function");return f},adapters:Qc},R_={"Content-Type":"application/x-www-form-urlencoded"};function k_(){let f;return typeof XMLHttpRequest<"u"?f=tf.getAdapter("xhr"):typeof process<"u"&&A.kindOf(process)==="process"&&(f=tf.getAdapter("http")),f}function L_(f,p,u){if(A.isString(f))try{return(p||JSON.parse)(f),A.trim(f)}catch(d){if(d.name!=="SyntaxError")throw d}return(u||JSON.stringify)(f)}const Zn={transitional:mf,adapter:k_(),transformRequest:[function(p,u){const d=u.getContentType()||"",v=d.indexOf("application/json")>-1,b=A.isObject(p);if(b&&A.isHTMLForm(p)&&(p=new FormData(p)),A.isFormData(p))return v&&v?JSON.stringify(bf(p)):p;if(A.isArrayBuffer(p)||A.isBuffer(p)||A.isStream(p)||A.isFile(p)||A.isBlob(p))return p;if(A.isArrayBufferView(p))return p.buffer;if(A.isURLSearchParams(p))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),p.toString();let I;if(b){if(d.indexOf("application/x-www-form-urlencoded")>-1)return g_(p,this.formSerializer).toString();if((I=A.isFileList(p))||d.indexOf("multipart/form-data")>-1){const N=this.env&&this.env.FormData;return Bo(I?{"files[]":p}:p,N&&new N,this.formSerializer)}}return b||v?(u.setContentType("application/json",!1),L_(p)):p}],transformResponse:[function(p){const u=this.transitional||Zn.transitional,d=u&&u.forcedJSONParsing,v=this.responseType==="json";if(p&&A.isString(p)&&(d&&!this.responseType||v)){const y=!(u&&u.silentJSONParsing)&&v;try{return JSON.parse(p)}catch(I){if(y)throw I.name==="SyntaxError"?it.from(I,it.ERR_BAD_RESPONSE,this,null,this.response):I}}return p}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(p){return p>=200&&p<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};A.forEach(["delete","get","head"],function(p){Zn.headers[p]={}});A.forEach(["post","put","patch"],function(p){Zn.headers[p]=A.merge(R_)});function Wu(f,p){const u=this||Zn,d=p||u,v=le.from(d.headers);let b=d.data;return A.forEach(f,function(I){b=I.call(u,b,v.normalize(),p?p.status:void 0)}),v.normalize(),b}function Tf(f){return!!(f&&f.__CANCEL__)}function zu(f){if(f.cancelToken&&f.cancelToken.throwIfRequested(),f.signal&&f.signal.aborted)throw new si}function ef(f){return zu(f),f.headers=le.from(f.headers),f.data=Wu.call(f,f.transformRequest),(f.adapter||Zn.adapter)(f).then(function(d){return zu(f),d.data=Wu.call(f,f.transformResponse,d),d.headers=le.from(d.headers),d},function(d){return Tf(d)||(zu(f),d&&d.response&&(d.response.data=Wu.call(f,f.transformResponse,d.response),d.response.headers=le.from(d.response.headers))),Promise.reject(d)})}function ii(f,p){p=p||{};const u={};function d(O,H){return A.isPlainObject(O)&&A.isPlainObject(H)?A.merge(O,H):A.isPlainObject(H)?A.merge({},H):A.isArray(H)?H.slice():H}function v(O){if(A.isUndefined(p[O])){if(!A.isUndefined(f[O]))return d(void 0,f[O])}else return d(f[O],p[O])}function b(O){if(!A.isUndefined(p[O]))return d(void 0,p[O])}function y(O){if(A.isUndefined(p[O])){if(!A.isUndefined(f[O]))return d(void 0,f[O])}else return d(void 0,p[O])}function I(O){if(O in p)return d(f[O],p[O]);if(O in f)return d(void 0,f[O])}const N={url:b,method:b,data:b,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:I};return A.forEach(Object.keys(f).concat(Object.keys(p)),function(H){const z=N[H]||v,j=z(H);A.isUndefined(j)&&z!==I||(u[H]=j)}),u}const xf="1.1.3",ea={};["object","boolean","number","function","string","symbol"].forEach((f,p)=>{ea[f]=function(d){return typeof d===f||"a"+(p<1?"n ":" ")+f}});const nf={};ea.transitional=function(p,u,d){function v(b,y){return"[Axios v"+xf+"] Transitional option '"+b+"'"+y+(d?". "+d:"")}return(b,y,I)=>{if(p===!1)throw new it(v(y," has been removed"+(u?" in "+u:"")),it.ERR_DEPRECATED);return u&&!nf[y]&&(nf[y]=!0,console.warn(v(y," has been deprecated since v"+u+" and will be removed in the near future"))),p?p(b,y,I):!0}};function I_(f,p,u){if(typeof f!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const d=Object.keys(f);let v=d.length;for(;v-- >0;){const b=d[v],y=p[b];if(y){const I=f[b],N=I===void 0||y(I,b,f);if(N!==!0)throw new it("option "+b+" must be "+N,it.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new it("Unknown option "+b,it.ERR_BAD_OPTION)}}const Ku={assertOptions:I_,validators:ea},nn=Ku.validators;class Tn{constructor(p){this.defaults=p,this.interceptors={request:new Kc,response:new Kc}}request(p,u){typeof p=="string"?(u=u||{},u.url=p):u=p||{},u=ii(this.defaults,u);const{transitional:d,paramsSerializer:v}=u;d!==void 0&&Ku.assertOptions(d,{silentJSONParsing:nn.transitional(nn.boolean),forcedJSONParsing:nn.transitional(nn.boolean),clarifyTimeoutError:nn.transitional(nn.boolean)},!1),v!==void 0&&Ku.assertOptions(v,{encode:nn.function,serialize:nn.function},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();const b=u.headers&&A.merge(u.headers.common,u.headers[u.method]);b&&A.forEach(["delete","get","head","post","put","patch","common"],function(U){delete u.headers[U]}),u.headers=new le(u.headers,b);const y=[];let I=!0;this.interceptors.request.forEach(function(U){typeof U.runWhen=="function"&&U.runWhen(u)===!1||(I=I&&U.synchronous,y.unshift(U.fulfilled,U.rejected))});const N=[];this.interceptors.response.forEach(function(U){N.push(U.fulfilled,U.rejected)});let O,H=0,z;if(!I){const B=[ef.bind(this),void 0];for(B.unshift.apply(B,y),B.push.apply(B,N),z=B.length,O=Promise.resolve(u);H{if(!d._listeners)return;let b=d._listeners.length;for(;b-- >0;)d._listeners[b](v);d._listeners=null}),this.promise.then=v=>{let b;const y=new Promise(I=>{d.subscribe(I),b=I}).then(v);return y.cancel=function(){d.unsubscribe(b)},y},p(function(b,y,I){d.reason||(d.reason=new si(b,y,I),u(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(p){if(this.reason){p(this.reason);return}this._listeners?this._listeners.push(p):this._listeners=[p]}unsubscribe(p){if(!this._listeners)return;const u=this._listeners.indexOf(p);u!==-1&&this._listeners.splice(u,1)}static source(){let p;return{token:new na(function(v){p=v}),cancel:p}}}function N_(f){return function(u){return f.apply(null,u)}}function D_(f){return A.isObject(f)&&f.isAxiosError===!0}function Cf(f){const p=new Tn(f),u=af(Tn.prototype.request,p);return A.extend(u,Tn.prototype,p,{allOwnKeys:!0}),A.extend(u,p,null,{allOwnKeys:!0}),u.create=function(v){return Cf(ii(f,v))},u}const Gt=Cf(Zn);Gt.Axios=Tn;Gt.CanceledError=si;Gt.CancelToken=na;Gt.isCancel=Tf;Gt.VERSION=xf;Gt.toFormData=Bo;Gt.AxiosError=it;Gt.Cancel=Gt.CanceledError;Gt.all=function(p){return Promise.all(p)};Gt.spread=N_;Gt.isAxiosError=D_;Gt.formToJSON=f=>bf(A.isHTMLForm(f)?new FormData(f):f);function $u(f){return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},$u(f)}function Et(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function rf(f,p){for(var u=0;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function F_(f,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B_(f)}function ne(f){var p=U_();return function(){var d=Io(f),v;if(p){var b=Io(this).constructor;v=Reflect.construct(d,arguments,b)}else v=d.apply(this,arguments);return F_(this,v)}}var ra=function(){function f(){Et(this,f)}return At(f,[{key:"listenForWhisper",value:function(u,d){return this.listen(".client-"+u,d)}},{key:"notification",value:function(u){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",u)}},{key:"stopListeningForWhisper",value:function(u,d){return this.stopListening(".client-"+u,d)}}]),f}(),Ef=function(){function f(p){Et(this,f),this.setNamespace(p)}return At(f,[{key:"format",value:function(u){return u.charAt(0)==="."||u.charAt(0)==="\\"?u.substr(1):(this.namespace&&(u=this.namespace+"."+u),u.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(u){this.namespace=u}}]),f}(),Fo=function(f){ee(u,f);var p=ne(u);function u(d,v,b){var y;return Et(this,u),y=p.call(this),y.name=v,y.pusher=d,y.options=b,y.eventFormatter=new Ef(y.options.namespace),y.subscribe(),y}return At(u,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(v,b){return this.on(this.eventFormatter.format(v),b),this}},{key:"listenToAll",value:function(v){var b=this;return this.subscription.bind_global(function(y,I){if(!y.startsWith("pusher:")){var N=b.options.namespace.replace(/\./g,"\\"),O=y.startsWith(N)?y.substring(N.length+1):"."+y;v(O,I)}}),this}},{key:"stopListening",value:function(v,b){return b?this.subscription.unbind(this.eventFormatter.format(v),b):this.subscription.unbind(this.eventFormatter.format(v)),this}},{key:"stopListeningToAll",value:function(v){return v?this.subscription.unbind_global(v):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(v){return this.on("pusher:subscription_succeeded",function(){v()}),this}},{key:"error",value:function(v){return this.on("pusher:subscription_error",function(b){v(b)}),this}},{key:"on",value:function(v,b){return this.subscription.bind(v,b),this}}]),u}(ra),M_=function(f){ee(u,f);var p=ne(u);function u(){return Et(this,u),p.apply(this,arguments)}return At(u,[{key:"whisper",value:function(v,b){return this.pusher.channels.channels[this.name].trigger("client-".concat(v),b),this}}]),u}(Fo),H_=function(f){ee(u,f);var p=ne(u);function u(){return Et(this,u),p.apply(this,arguments)}return At(u,[{key:"whisper",value:function(v,b){return this.pusher.channels.channels[this.name].trigger("client-".concat(v),b),this}}]),u}(Fo),q_=function(f){ee(u,f);var p=ne(u);function u(){return Et(this,u),p.apply(this,arguments)}return At(u,[{key:"here",value:function(v){return this.on("pusher:subscription_succeeded",function(b){v(Object.keys(b.members).map(function(y){return b.members[y]}))}),this}},{key:"joining",value:function(v){return this.on("pusher:member_added",function(b){v(b.info)}),this}},{key:"leaving",value:function(v){return this.on("pusher:member_removed",function(b){v(b.info)}),this}},{key:"whisper",value:function(v,b){return this.pusher.channels.channels[this.name].trigger("client-".concat(v),b),this}}]),u}(Fo),Af=function(f){ee(u,f);var p=ne(u);function u(d,v,b){var y;return Et(this,u),y=p.call(this),y.events={},y.listeners={},y.name=v,y.socket=d,y.options=b,y.eventFormatter=new Ef(y.options.namespace),y.subscribe(),y}return At(u,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(v,b){return this.on(this.eventFormatter.format(v),b),this}},{key:"stopListening",value:function(v,b){return this.unbindEvent(this.eventFormatter.format(v),b),this}},{key:"subscribed",value:function(v){return this.on("connect",function(b){v(b)}),this}},{key:"error",value:function(v){return this}},{key:"on",value:function(v,b){var y=this;return this.listeners[v]=this.listeners[v]||[],this.events[v]||(this.events[v]=function(I,N){y.name===I&&y.listeners[v]&&y.listeners[v].forEach(function(O){return O(N)})},this.socket.on(v,this.events[v])),this.listeners[v].push(b),this}},{key:"unbind",value:function(){var v=this;Object.keys(this.events).forEach(function(b){v.unbindEvent(b)})}},{key:"unbindEvent",value:function(v,b){this.listeners[v]=this.listeners[v]||[],b&&(this.listeners[v]=this.listeners[v].filter(function(y){return y!==b})),(!b||this.listeners[v].length===0)&&(this.events[v]&&(this.socket.removeListener(v,this.events[v]),delete this.events[v]),delete this.listeners[v])}}]),u}(ra),Of=function(f){ee(u,f);var p=ne(u);function u(){return Et(this,u),p.apply(this,arguments)}return At(u,[{key:"whisper",value:function(v,b){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(v),data:b}),this}}]),u}(Af),W_=function(f){ee(u,f);var p=ne(u);function u(){return Et(this,u),p.apply(this,arguments)}return At(u,[{key:"here",value:function(v){return this.on("presence:subscribed",function(b){v(b.map(function(y){return y.user_info}))}),this}},{key:"joining",value:function(v){return this.on("presence:joining",function(b){return v(b.user_info)}),this}},{key:"leaving",value:function(v){return this.on("presence:leaving",function(b){return v(b.user_info)}),this}}]),u}(Of),No=function(f){ee(u,f);var p=ne(u);function u(){return Et(this,u),p.apply(this,arguments)}return At(u,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(v,b){return this}},{key:"stopListening",value:function(v,b){return this}},{key:"subscribed",value:function(v){return this}},{key:"error",value:function(v){return this}},{key:"on",value:function(v,b){return this}}]),u}(ra),z_=function(f){ee(u,f);var p=ne(u);function u(){return Et(this,u),p.apply(this,arguments)}return At(u,[{key:"whisper",value:function(v,b){return this}}]),u}(No),j_=function(f){ee(u,f);var p=ne(u);function u(){return Et(this,u),p.apply(this,arguments)}return At(u,[{key:"here",value:function(v){return this}},{key:"joining",value:function(v){return this}},{key:"leaving",value:function(v){return this}},{key:"whisper",value:function(v,b){return this}}]),u}(No),ia=function(){function f(p){Et(this,f),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(p),this.connect()}return At(f,[{key:"setOptions",value:function(u){this.options=Vu(this._defaultOptions,u);var d=this.csrfToken();return d&&(this.options.auth.headers["X-CSRF-TOKEN"]=d,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=d),d=this.options.bearerToken,d&&(this.options.auth.headers.Authorization="Bearer "+d,this.options.userAuthentication.headers.Authorization="Bearer "+d),u}},{key:"csrfToken",value:function(){var u;return typeof window<"u"&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:typeof document<"u"&&typeof document.querySelector=="function"&&(u=document.querySelector('meta[name="csrf-token"]'))?u.getAttribute("content"):null}}]),f}(),J_=function(f){ee(u,f);var p=ne(u);function u(){var d;return Et(this,u),d=p.apply(this,arguments),d.channels={},d}return At(u,[{key:"connect",value:function(){typeof this.options.client<"u"?this.pusher=this.options.client:this.pusher=new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(v,b,y){return this.channel(v).listen(b,y)}},{key:"channel",value:function(v){return this.channels[v]||(this.channels[v]=new Fo(this.pusher,v,this.options)),this.channels[v]}},{key:"privateChannel",value:function(v){return this.channels["private-"+v]||(this.channels["private-"+v]=new M_(this.pusher,"private-"+v,this.options)),this.channels["private-"+v]}},{key:"encryptedPrivateChannel",value:function(v){return this.channels["private-encrypted-"+v]||(this.channels["private-encrypted-"+v]=new H_(this.pusher,"private-encrypted-"+v,this.options)),this.channels["private-encrypted-"+v]}},{key:"presenceChannel",value:function(v){return this.channels["presence-"+v]||(this.channels["presence-"+v]=new q_(this.pusher,"presence-"+v,this.options)),this.channels["presence-"+v]}},{key:"leave",value:function(v){var b=this,y=[v,"private-"+v,"private-encrypted-"+v,"presence-"+v];y.forEach(function(I,N){b.leaveChannel(I)})}},{key:"leaveChannel",value:function(v){this.channels[v]&&(this.channels[v].unsubscribe(),delete this.channels[v])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),u}(ia),X_=function(f){ee(u,f);var p=ne(u);function u(){var d;return Et(this,u),d=p.apply(this,arguments),d.channels={},d}return At(u,[{key:"connect",value:function(){var v=this,b=this.getSocketIO();return this.socket=b(this.options.host,this.options),this.socket.on("reconnect",function(){Object.values(v.channels).forEach(function(y){y.subscribe()})}),this.socket}},{key:"getSocketIO",value:function(){if(typeof this.options.client<"u")return this.options.client;if(typeof io<"u")return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(v,b,y){return this.channel(v).listen(b,y)}},{key:"channel",value:function(v){return this.channels[v]||(this.channels[v]=new Af(this.socket,v,this.options)),this.channels[v]}},{key:"privateChannel",value:function(v){return this.channels["private-"+v]||(this.channels["private-"+v]=new Of(this.socket,"private-"+v,this.options)),this.channels["private-"+v]}},{key:"presenceChannel",value:function(v){return this.channels["presence-"+v]||(this.channels["presence-"+v]=new W_(this.socket,"presence-"+v,this.options)),this.channels["presence-"+v]}},{key:"leave",value:function(v){var b=this,y=[v,"private-"+v,"presence-"+v];y.forEach(function(I){b.leaveChannel(I)})}},{key:"leaveChannel",value:function(v){this.channels[v]&&(this.channels[v].unsubscribe(),delete this.channels[v])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),u}(ia),G_=function(f){ee(u,f);var p=ne(u);function u(){var d;return Et(this,u),d=p.apply(this,arguments),d.channels={},d}return At(u,[{key:"connect",value:function(){}},{key:"listen",value:function(v,b,y){return new No}},{key:"channel",value:function(v){return new No}},{key:"privateChannel",value:function(v){return new z_}},{key:"presenceChannel",value:function(v){return new j_}},{key:"leave",value:function(v){}},{key:"leaveChannel",value:function(v){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),u}(ia),K_=function(){function f(p){Et(this,f),this.options=p,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return At(f,[{key:"channel",value:function(u){return this.connector.channel(u)}},{key:"connect",value:function(){this.options.broadcaster=="pusher"?this.connector=new J_(this.options):this.options.broadcaster=="socket.io"?this.connector=new X_(this.options):this.options.broadcaster=="null"?this.connector=new G_(this.options):typeof this.options.broadcaster=="function"&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(u){return this.connector.presenceChannel(u)}},{key:"leave",value:function(u){this.connector.leave(u)}},{key:"leaveChannel",value:function(u){this.connector.leaveChannel(u)}},{key:"listen",value:function(u,d,v){return this.connector.listen(u,d,v)}},{key:"private",value:function(u){return this.connector.privateChannel(u)}},{key:"encryptedPrivate",value:function(u){return this.connector.encryptedPrivateChannel(u)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){typeof Vue=="function"&&Vue.http&&this.registerVueRequestInterceptor(),typeof axios=="function"&&this.registerAxiosRequestInterceptor(),typeof jQuery=="function"&&this.registerjQueryAjaxSetup(),(typeof Turbo>"u"?"undefined":$u(Turbo))==="object"&&this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var u=this;Vue.http.interceptors.push(function(d,v){u.socketId()&&d.headers.set("X-Socket-ID",u.socketId()),v()})}},{key:"registerAxiosRequestInterceptor",value:function(){var u=this;axios.interceptors.request.use(function(d){return u.socketId()&&(d.headers["X-Socket-Id"]=u.socketId()),d})}},{key:"registerjQueryAjaxSetup",value:function(){var u=this;typeof jQuery.ajax<"u"&&jQuery.ajaxPrefilter(function(d,v,b){u.socketId()&&b.setRequestHeader("X-Socket-Id",u.socketId())})}},{key:"registerTurboRequestInterceptor",value:function(){var u=this;document.addEventListener("turbo:before-fetch-request",function(d){d.detail.fetchOptions.headers["X-Socket-Id"]=u.socketId()})}}]),f}(),Pf={exports:{}};/*!
+ * Pusher JavaScript Library v7.5.0
+ * https://pusher.com/
+ *
+ * Copyright 2020, Pusher
+ * Released under the MIT licence.
+ */(function(f,p){(function(d,v){f.exports=v()})(window,function(){return function(u){var d={};function v(b){if(d[b])return d[b].exports;var y=d[b]={i:b,l:!1,exports:{}};return u[b].call(y.exports,y,y.exports,v),y.l=!0,y.exports}return v.m=u,v.c=d,v.d=function(b,y,I){v.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:I})},v.r=function(b){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},v.t=function(b,y){if(y&1&&(b=v(b)),y&8||y&4&&typeof b=="object"&&b&&b.__esModule)return b;var I=Object.create(null);if(v.r(I),Object.defineProperty(I,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var N in b)v.d(I,N,function(O){return b[O]}.bind(null,N));return I},v.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return v.d(y,"a",y),y},v.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},v.p="",v(v.s=2)}([function(u,d,v){var b=this&&this.__extends||function(){var F=function(P,L){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,Z){J.__proto__=Z}||function(J,Z){for(var ht in Z)Z.hasOwnProperty(ht)&&(J[ht]=Z[ht])},F(P,L)};return function(P,L){F(P,L);function J(){this.constructor=P}P.prototype=L===null?Object.create(L):(J.prototype=L.prototype,new J)}}();Object.defineProperty(d,"__esModule",{value:!0});var y=256,I=function(){function F(P){P===void 0&&(P="="),this._paddingCharacter=P}return F.prototype.encodedLength=function(P){return this._paddingCharacter?(P+2)/3*4|0:(P*8+5)/6|0},F.prototype.encode=function(P){for(var L="",J=0;J>>3*6&63),L+=this._encodeByte(Z>>>2*6&63),L+=this._encodeByte(Z>>>1*6&63),L+=this._encodeByte(Z>>>0*6&63)}var ht=P.length-J;if(ht>0){var Z=P[J]<<16|(ht===2?P[J+1]<<8:0);L+=this._encodeByte(Z>>>3*6&63),L+=this._encodeByte(Z>>>2*6&63),ht===2?L+=this._encodeByte(Z>>>1*6&63):L+=this._paddingCharacter||"",L+=this._paddingCharacter||""}return L},F.prototype.maxDecodedLength=function(P){return this._paddingCharacter?P/4*3|0:(P*6+7)/8|0},F.prototype.decodedLength=function(P){return this.maxDecodedLength(P.length-this._getPaddingLength(P))},F.prototype.decode=function(P){if(P.length===0)return new Uint8Array(0);for(var L=this._getPaddingLength(P),J=P.length-L,Z=new Uint8Array(this.maxDecodedLength(J)),ht=0,ft=0,Tt=0,bt=0,Ot=0,kt=0,re=0;ft>>4,Z[ht++]=Ot<<4|kt>>>2,Z[ht++]=kt<<6|re,Tt|=bt&y,Tt|=Ot&y,Tt|=kt&y,Tt|=re&y;if(ft>>4,Tt|=bt&y,Tt|=Ot&y),ft>>2,Tt|=kt&y),ft>>8&0-65-26+97,L+=51-P>>>8&26-97-52+48,L+=61-P>>>8&52-48-62+43,L+=62-P>>>8&62-43-63+47,String.fromCharCode(L)},F.prototype._decodeChar=function(P){var L=y;return L+=(42-P&P-44)>>>8&-y+P-43+62,L+=(46-P&P-48)>>>8&-y+P-47+63,L+=(47-P&P-58)>>>8&-y+P-48+52,L+=(64-P&P-91)>>>8&-y+P-65+0,L+=(96-P&P-123)>>>8&-y+P-97+26,L},F.prototype._getPaddingLength=function(P){var L=0;if(this._paddingCharacter){for(var J=P.length-1;J>=0&&P[J]===this._paddingCharacter;J--)L++;if(P.length<4||L>2)throw new Error("Base64Coder: incorrect padding")}return L},F}();d.Coder=I;var N=new I;function O(F){return N.encode(F)}d.encode=O;function H(F){return N.decode(F)}d.decode=H;var z=function(F){b(P,F);function P(){return F!==null&&F.apply(this,arguments)||this}return P.prototype._encodeByte=function(L){var J=L;return J+=65,J+=25-L>>>8&0-65-26+97,J+=51-L>>>8&26-97-52+48,J+=61-L>>>8&52-48-62+45,J+=62-L>>>8&62-45-63+95,String.fromCharCode(J)},P.prototype._decodeChar=function(L){var J=y;return J+=(44-L&L-46)>>>8&-y+L-45+62,J+=(94-L&L-96)>>>8&-y+L-95+63,J+=(47-L&L-58)>>>8&-y+L-48+52,J+=(64-L&L-91)>>>8&-y+L-65+0,J+=(96-L&L-123)>>>8&-y+L-97+26,J},P}(I);d.URLSafeCoder=z;var j=new z;function B(F){return j.encode(F)}d.encodeURLSafe=B;function U(F){return j.decode(F)}d.decodeURLSafe=U,d.encodedLength=function(F){return N.encodedLength(F)},d.maxDecodedLength=function(F){return N.maxDecodedLength(F)},d.decodedLength=function(F){return N.decodedLength(F)}},function(u,d,v){Object.defineProperty(d,"__esModule",{value:!0});var b="utf8: invalid string",y="utf8: invalid source encoding";function I(H){for(var z=new Uint8Array(N(H)),j=0,B=0;B>6,z[j++]=128|U&63):U<55296?(z[j++]=224|U>>12,z[j++]=128|U>>6&63,z[j++]=128|U&63):(B++,U=(U&1023)<<10,U|=H.charCodeAt(B)&1023,U+=65536,z[j++]=240|U>>18,z[j++]=128|U>>12&63,z[j++]=128|U>>6&63,z[j++]=128|U&63)}return z}d.encode=I;function N(H){for(var z=0,j=0;j=H.length-1)throw new Error(b);j++,z+=4}else throw new Error(b)}return z}d.encodedLength=N;function O(H){for(var z=[],j=0;j=H.length)throw new Error(y);var F=H[++j];if((F&192)!==128)throw new Error(y);B=(B&31)<<6|F&63,U=128}else if(B<240){if(j>=H.length-1)throw new Error(y);var F=H[++j],P=H[++j];if((F&192)!==128||(P&192)!==128)throw new Error(y);B=(B&15)<<12|(F&63)<<6|P&63,U=2048}else if(B<248){if(j>=H.length-2)throw new Error(y);var F=H[++j],P=H[++j],L=H[++j];if((F&192)!==128||(P&192)!==128||(L&192)!==128)throw new Error(y);B=(B&15)<<18|(F&63)<<12|(P&63)<<6|L&63,U=65536}else throw new Error(y);if(B=55296&&B<=57343)throw new Error(y);if(B>=65536){if(B>1114111)throw new Error(y);B-=65536,z.push(String.fromCharCode(55296|B>>10)),B=56320|B&1023}}z.push(String.fromCharCode(B))}return z.join("")}d.decode=O},function(u,d,v){u.exports=v(3).default},function(u,d,v){v.r(d);var b=function(){function i(r,o){this.lastId=0,this.prefix=r,this.name=o}return i.prototype.create=function(r){this.lastId++;var o=this.lastId,s=this.prefix+o,c=this.name+"["+o+"]",l=!1,S=function(){l||(r.apply(null,arguments),l=!0)};return this[o]=S,{number:o,id:s,name:c,callback:S}},i.prototype.remove=function(r){delete this[r.number]},i}(),y=new b("_pusher_script_","Pusher.ScriptReceivers"),I={VERSION:"7.5.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,cluster:"mt1",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:""},N=I,O=function(){function i(r){this.options=r,this.receivers=r.receivers||y,this.loading={}}return i.prototype.load=function(r,o,s){var c=this;if(c.loading[r]&&c.loading[r].length>0)c.loading[r].push(s);else{c.loading[r]=[s];var l=$.createScriptRequest(c.getPath(r,o)),S=c.receivers.create(function(x){if(c.receivers.remove(S),c.loading[r]){var D=c.loading[r];delete c.loading[r];for(var k=function(pt){pt||l.cleanup()},q=0;q>>6)+je(128|r&63):je(224|r>>>12&15)+je(128|r>>>6&63)+je(128|r&63)},Oe=function(i){return i.replace(/[^\x00-\x7F]/g,Wo)},ye=function(i){var r=[0,2,1][i.length%3],o=i.charCodeAt(0)<<16|(i.length>1?i.charCodeAt(1):0)<<8|(i.length>2?i.charCodeAt(2):0),s=[xn.charAt(o>>>18),xn.charAt(o>>>12&63),r>=2?"=":xn.charAt(o>>>6&63),r>=1?"=":xn.charAt(o&63)];return s.join("")},zo=window.btoa||function(i){return i.replace(/[\s\S]{1,3}/g,ye)},Cn=function(){function i(r,o,s,c){var l=this;this.clear=o,this.timer=r(function(){l.timer&&(l.timer=c(l.timer))},s)}return i.prototype.isRunning=function(){return this.timer!==null},i.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},i}(),Kt=Cn,ui=function(){var i=function(r,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var l in c)c.hasOwnProperty(l)&&(s[l]=c[l])},i(r,o)};return function(r,o){i(r,o);function s(){this.constructor=r}r.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}();function jo(i){window.clearTimeout(i)}function Jo(i){window.clearInterval(i)}var Ft=function(i){ui(r,i);function r(o,s){return i.call(this,setTimeout,jo,o,function(c){return s(),null})||this}return r}(Kt),En=function(i){ui(r,i);function r(o,s){return i.call(this,setInterval,Jo,o,function(c){return s(),c})||this}return r}(Kt),Xo={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(i){return new Ft(0,i)},method:function(i){var r=Array.prototype.slice.call(arguments,1);return function(o){return o[i].apply(o,r.concat(arguments))}}},gt=Xo;function mt(i){for(var r=[],o=1;o0)for(var c=0;c=1002&&i.code<=1004?"backoff":null:i.code===4e3?"tls_only":i.code<4100?"refused":i.code<4200?"backoff":i.code<4300?"retry":"refused"},getCloseError:function(i){return i.code!==1e3&&i.code!==1001?{type:"PusherError",data:{code:i.code,message:i.reason||i.message}}:null}},Pe=yi,ls=function(){var i=function(r,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var l in c)c.hasOwnProperty(l)&&(s[l]=c[l])},i(r,o)};return function(r,o){i(r,o);function s(){this.constructor=r}r.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}(),mi=function(i){ls(r,i);function r(o,s){var c=i.call(this)||this;return c.id=o,c.transport=s,c.activityTimeout=s.activityTimeout,c.bindListeners(),c}return r.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},r.prototype.send=function(o){return this.transport.send(o)},r.prototype.send_event=function(o,s,c){var l={event:o,data:s};return c&&(l.channel=c),ot.debug("Event sent",l),this.send(Pe.encodeMessage(l))},r.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},r.prototype.close=function(){this.transport.close()},r.prototype.bindListeners=function(){var o=this,s={message:function(l){var S;try{S=Pe.decodeMessage(l)}catch(x){o.emit("error",{type:"MessageParseError",error:x,data:l.data})}if(S!==void 0){switch(ot.debug("Event recd",S),S.event){case"pusher:error":o.emit("error",{type:"PusherError",data:S.data});break;case"pusher:ping":o.emit("ping");break;case"pusher:pong":o.emit("pong");break}o.emit("message",S)}},activity:function(){o.emit("activity")},error:function(l){o.emit("error",l)},closed:function(l){c(),l&&l.code&&o.handleCloseEvent(l),o.transport=null,o.emit("closed")}},c=function(){Mt(s,function(l,S){o.transport.unbind(S,l)})};Mt(s,function(l,S){o.transport.bind(S,l)})},r.prototype.handleCloseEvent=function(o){var s=Pe.getCloseAction(o),c=Pe.getCloseError(o);c&&this.emit("error",c),s&&this.emit(s,{action:s,error:c})},r}(ie),bi=mi,wi=function(){function i(r,o){this.transport=r,this.callback=o,this.bindListeners()}return i.prototype.close=function(){this.unbindListeners(),this.transport.close()},i.prototype.bindListeners=function(){var r=this;this.onMessage=function(o){r.unbindListeners();var s;try{s=Pe.processHandshake(o)}catch(c){r.finish("error",{error:c}),r.transport.close();return}s.action==="connected"?r.finish("connected",{connection:new bi(s.id,r.transport),activityTimeout:s.activityTimeout}):(r.finish(s.action,{error:s.error}),r.transport.close())},this.onClosed=function(o){r.unbindListeners();var s=Pe.getCloseAction(o)||"backoff",c=Pe.getCloseError(o);r.finish(s,{error:c})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},i.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},i.prototype.finish=function(r,o){this.callback(mt({transport:this.transport,action:r},o))},i}(),hs=wi,ps=function(){function i(r,o){this.timeline=r,this.options=o||{}}return i.prototype.send=function(r,o){this.timeline.isEmpty()||this.timeline.send($.TimelineTransport.getAgent(this,r),o)},i}(),ds=ps,gs=function(){var i=function(r,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var l in c)c.hasOwnProperty(l)&&(s[l]=c[l])},i(r,o)};return function(r,o){i(r,o);function s(){this.constructor=r}r.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}(),Si=function(i){gs(r,i);function r(o,s){var c=i.call(this,function(l,S){ot.debug("No callbacks on "+o+" for "+l)})||this;return c.name=o,c.pusher=s,c.subscribed=!1,c.subscriptionPending=!1,c.subscriptionCancelled=!1,c}return r.prototype.authorize=function(o,s){return s(null,{auth:""})},r.prototype.trigger=function(o,s){if(o.indexOf("client-")!==0)throw new J("Event '"+o+"' does not start with 'client-'");if(!this.subscribed){var c=F.buildLogSuffix("triggeringClientEvents");ot.warn("Client event triggered before channel 'subscription_succeeded' event . "+c)}return this.pusher.send_event(o,s,this.name)},r.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},r.prototype.handleEvent=function(o){var s=o.event,c=o.data;if(s==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(o);else if(s==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(o);else if(s.indexOf("pusher_internal:")!==0){var l={};this.emit(s,c,l)}},r.prototype.handleSubscriptionSucceededEvent=function(o){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",o.data)},r.prototype.handleSubscriptionCountEvent=function(o){o.data.subscription_count&&(this.subscriptionCount=o.data.subscription_count),this.emit("pusher:subscription_count",o.data)},r.prototype.subscribe=function(){var o=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(s,c){s?(o.subscriptionPending=!1,ot.error(s.toString()),o.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:s.message},s instanceof re?{status:s.status}:{}))):o.pusher.send_event("pusher:subscribe",{auth:c.auth,channel_data:c.channel_data,channel:o.name})}))},r.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},r.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},r.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},r}(ie),Ln=Si,Ti=function(){var i=function(r,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var l in c)c.hasOwnProperty(l)&&(s[l]=c[l])},i(r,o)};return function(r,o){i(r,o);function s(){this.constructor=r}r.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}(),gr=function(i){Ti(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.authorize=function(o,s){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:o},s)},r}(Ln),vr=gr,xi=function(){function i(){this.reset()}return i.prototype.get=function(r){return Object.prototype.hasOwnProperty.call(this.members,r)?{id:r,info:this.members[r]}:null},i.prototype.each=function(r){var o=this;Mt(this.members,function(s,c){r(o.get(c))})},i.prototype.setMyID=function(r){this.myID=r},i.prototype.onSubscription=function(r){this.members=r.presence.hash,this.count=r.presence.count,this.me=this.get(this.myID)},i.prototype.addMember=function(r){return this.get(r.user_id)===null&&this.count++,this.members[r.user_id]=r.user_info,this.get(r.user_id)},i.prototype.removeMember=function(r){var o=this.get(r.user_id);return o&&(delete this.members[r.user_id],this.count--),o},i.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},i}(),In=xi,Ci=function(){var i=function(r,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var l in c)c.hasOwnProperty(l)&&(s[l]=c[l])},i(r,o)};return function(r,o){i(r,o);function s(){this.constructor=r}r.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}(),vs=function(i,r,o,s){function c(l){return l instanceof o?l:new o(function(S){S(l)})}return new(o||(o=Promise))(function(l,S){function x(q){try{k(s.next(q))}catch(pt){S(pt)}}function D(q){try{k(s.throw(q))}catch(pt){S(pt)}}function k(q){q.done?l(q.value):c(q.value).then(x,D)}k((s=s.apply(i,r||[])).next())})},Ei=function(i,r){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,c,l,S;return S={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function x(k){return function(q){return D([k,q])}}function D(k){if(s)throw new TypeError("Generator is already executing.");for(;o;)try{if(s=1,c&&(l=k[0]&2?c.return:k[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,k[1])).done)return l;switch(c=0,l&&(k=[k[0]&2,l.value]),k[0]){case 0:case 1:l=k;break;case 4:return o.label++,{value:k[1],done:!1};case 5:o.label++,c=k[1],k=[0];continue;case 7:k=o.ops.pop(),o.trys.pop();continue;default:if(l=o.trys,!(l=l.length>0&&l[l.length-1])&&(k[0]===6||k[0]===2)){o=0;continue}if(k[0]===3&&(!l||k[1]>l[0]&&k[1]0&&this.emit("connecting_in",Math.round(o/1e3)),this.retryTimer=new Ft(o||0,function(){s.disconnectInternally(),s.connect()})},r.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},r.prototype.setUnavailableTimer=function(){var o=this;this.unavailableTimer=new Ft(this.options.unavailableTimeout,function(){o.updateState("unavailable")})},r.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},r.prototype.sendActivityCheck=function(){var o=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Ft(this.options.pongTimeout,function(){o.timeline.error({pong_timed_out:o.options.pongTimeout}),o.retryIn(0)})},r.prototype.resetActivityCheck=function(){var o=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Ft(this.activityTimeout,function(){o.sendActivityCheck()}))},r.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},r.prototype.buildConnectionCallbacks=function(o){var s=this;return mt({},o,{message:function(c){s.resetActivityCheck(),s.emit("message",c)},ping:function(){s.send_event("pusher:pong",{})},activity:function(){s.resetActivityCheck()},error:function(c){s.emit("error",c)},closed:function(){s.abandonConnection(),s.shouldRetry()&&s.retryIn(1e3)}})},r.prototype.buildHandshakeCallbacks=function(o){var s=this;return mt({},o,{connected:function(c){s.activityTimeout=Math.min(s.options.activityTimeout,c.activityTimeout,c.connection.activityTimeout||1/0),s.clearUnavailableTimer(),s.setConnection(c.connection),s.socket_id=s.connection.id,s.updateState("connected",{socket_id:s.socket_id})}})},r.prototype.buildErrorCallbacks=function(){var o=this,s=function(c){return function(l){l.error&&o.emit("error",{type:"WebSocketError",error:l.error}),c(l)}};return{tls_only:s(function(){o.usingTLS=!0,o.updateStrategy(),o.retryIn(0)}),refused:s(function(){o.disconnect()}),backoff:s(function(){o.retryIn(1e3)}),retry:s(function(){o.retryIn(0)})}},r.prototype.setConnection=function(o){this.connection=o;for(var s in this.connectionCallbacks)this.connection.bind(s,this.connectionCallbacks[s]);this.resetActivityCheck()},r.prototype.abandonConnection=function(){if(!!this.connection){this.stopActivityCheck();for(var o in this.connectionCallbacks)this.connection.unbind(o,this.connectionCallbacks[o]);var s=this.connection;return this.connection=null,s}},r.prototype.updateState=function(o,s){var c=this.state;if(this.state=o,c!==o){var l=o;l==="connected"&&(l+=" with new socket ID "+s.socket_id),ot.debug("State changed",c+" -> "+l),this.timeline.info({state:o,params:s}),this.emit("state_change",{previous:c,current:o}),this.emit(o,s)}},r.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},r}(ie),ys=Pi,Ri=function(){function i(){this.channels={}}return i.prototype.add=function(r,o){return this.channels[r]||(this.channels[r]=Li(r,o)),this.channels[r]},i.prototype.all=function(){return $t(this.channels)},i.prototype.find=function(r){return this.channels[r]},i.prototype.remove=function(r){var o=this.channels[r];return delete this.channels[r],o},i.prototype.disconnect=function(){Mt(this.channels,function(r){r.disconnect()})},i}(),ki=Ri;function Li(i,r){if(i.indexOf("private-encrypted-")===0){if(r.config.nacl)return de.createEncryptedChannel(i,r,r.config.nacl);var o="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",s=F.buildLogSuffix("encryptedChannelSupport");throw new bt(o+". "+s)}else{if(i.indexOf("private-")===0)return de.createPrivateChannel(i,r);if(i.indexOf("presence-")===0)return de.createPresenceChannel(i,r);if(i.indexOf("#")===0)throw new Z('Cannot create a channel with name "'+i+'".');return de.createChannel(i,r)}}var Ii={createChannels:function(){return new ki},createConnectionManager:function(i,r){return new ys(i,r)},createChannel:function(i,r){return new Ln(i,r)},createPrivateChannel:function(i,r){return new vr(i,r)},createPresenceChannel:function(i,r){return new _r(i,r)},createEncryptedChannel:function(i,r,o){return new Xe(i,r,o)},createTimelineSender:function(i,r){return new ds(i,r)},createHandshake:function(i,r){return new hs(i,r)},createAssistantToTheTransportManager:function(i,r,o){return new kn(i,r,o)}},de=Ii,ms=function(){function i(r){this.options=r||{},this.livesLeft=this.options.lives||1/0}return i.prototype.getAssistant=function(r){return de.createAssistantToTheTransportManager(this,r,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},i.prototype.isAlive=function(){return this.livesLeft>0},i.prototype.reportDeath=function(){this.livesLeft-=1},i}(),Ni=ms,Di=function(){function i(r,o){this.strategies=r,this.loop=Boolean(o.loop),this.failFast=Boolean(o.failFast),this.timeout=o.timeout,this.timeoutLimit=o.timeoutLimit}return i.prototype.isSupported=function(){return Ht(this.strategies,gt.method("isSupported"))},i.prototype.connect=function(r,o){var s=this,c=this.strategies,l=0,S=this.timeout,x=null,D=function(k,q){q?o(null,q):(l=l+1,s.loop&&(l=l%c.length),l0&&(l=new Ft(s.timeout,function(){S.abort(),c(!0)})),S=r.connect(o,function(x,D){x&&l&&l.isRunning()&&!s.failFast||(l&&l.ensureAborted(),c(x,D))}),{abort:function(){l&&l.ensureAborted(),S.abort()},forceMinPriority:function(x){S.forceMinPriority(x)}}},i}(),Re=Di,bs=function(){function i(r){this.strategies=r}return i.prototype.isSupported=function(){return Ht(this.strategies,gt.method("isSupported"))},i.prototype.connect=function(r,o){return ws(this.strategies,r,function(s,c){return function(l,S){if(c[s].error=l,l){wr(c)&&o(!0);return}he(c,function(x){x.forceMinPriority(S.transport.priority)}),o(null,S)}})},i}(),br=bs;function ws(i,r,o){var s=ai(i,function(c,l,S,x){return c.connect(r,o(l,x))});return{abort:function(){he(s,Ss)},forceMinPriority:function(c){he(s,function(l){l.forceMinPriority(c)})}}}function wr(i){return sn(i,function(r){return Boolean(r.error)})}function Ss(i){!i.error&&!i.aborted&&(i.abort(),i.aborted=!0)}var Ts=function(){function i(r,o,s){this.strategy=r,this.transports=o,this.ttl=s.ttl||1800*1e3,this.usingTLS=s.useTLS,this.timeline=s.timeline}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(r,o){var s=this.usingTLS,c=Cs(s),l=[this.strategy];if(c&&c.timestamp+this.ttl>=gt.now()){var S=this.transports[c.transport];S&&(this.timeline.info({cached:!0,transport:c.transport,latency:c.latency}),l.push(new Re([S],{timeout:c.latency*2+1e3,failFast:!0})))}var x=gt.now(),D=l.pop().connect(r,function k(q,pt){q?(at(s),l.length>0?(x=gt.now(),D=l.pop().connect(r,k)):o(q)):(ct(s,pt.transport.name,gt.now()-x),o(null,pt))});return{abort:function(){D.abort()},forceMinPriority:function(k){r=k,D&&D.forceMinPriority(k)}}},i}(),xs=Ts;function Sr(i){return"pusherTransport"+(i?"TLS":"NonTLS")}function Cs(i){var r=$.getLocalStorage();if(r)try{var o=r[Sr(i)];if(o)return JSON.parse(o)}catch{at(i)}return null}function ct(i,r,o){var s=$.getLocalStorage();if(s)try{s[Sr(i)]=On({timestamp:gt.now(),transport:r,latency:o})}catch{}}function at(i){var r=$.getLocalStorage();if(r)try{delete r[Sr(i)]}catch{}}var Es=function(){function i(r,o){var s=o.delay;this.strategy=r,this.options={delay:s}}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(r,o){var s=this.strategy,c,l=new Ft(this.options.delay,function(){c=s.connect(r,o)});return{abort:function(){l.ensureAborted(),c&&c.abort()},forceMinPriority:function(S){r=S,c&&c.forceMinPriority(S)}}},i}(),Dn=Es,As=function(){function i(r,o,s){this.test=r,this.trueBranch=o,this.falseBranch=s}return i.prototype.isSupported=function(){var r=this.test()?this.trueBranch:this.falseBranch;return r.isSupported()},i.prototype.connect=function(r,o){var s=this.test()?this.trueBranch:this.falseBranch;return s.connect(r,o)},i}(),cn=As,Os=function(){function i(r){this.strategy=r}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(r,o){var s=this.strategy.connect(r,function(c,l){l&&s.abort(),o(c,l)});return s},i}(),Ps=Os;function Ge(i){return function(){return i.isSupported()}}var Rs=function(i,r,o){var s={};function c(dn,xe,qn,Qi,Wn){var Hr=o(i,dn,xe,qn,Qi,Wn);return s[dn]=Hr,Hr}var l=Object.assign({},r,{hostNonTLS:i.wsHost+":"+i.wsPort,hostTLS:i.wsHost+":"+i.wssPort,httpPath:i.wsPath}),S=Object.assign({},l,{useTLS:!0}),x=Object.assign({},r,{hostNonTLS:i.httpHost+":"+i.httpPort,hostTLS:i.httpHost+":"+i.httpsPort,httpPath:i.httpPath}),D={loop:!0,timeout:15e3,timeoutLimit:6e4},k=new Ni({lives:2,minPingDelay:1e4,maxPingDelay:i.activityTimeout}),q=new Ni({lives:2,minPingDelay:1e4,maxPingDelay:i.activityTimeout}),pt=c("ws","ws",3,l,k),oe=c("wss","ws",3,S,k),Wt=c("sockjs","sockjs",1,x),ln=c("xhr_streaming","xhr_streaming",1,x,q),Gs=c("xdr_streaming","xdr_streaming",1,x,q),Le=c("xhr_polling","xhr_polling",1,x),Hn=c("xdr_polling","xdr_polling",1,x),hn=new Re([pt],D),st=new Re([oe],D),Ks=new Re([Wt],D),Br=new Re([new cn(Ge(ln),ln,Gs)],D),pn=new Re([new cn(Ge(Le),Le,Hn)],D),Zi=new Re([new cn(Ge(Br),new br([Br,new Dn(pn,{delay:4e3})]),pn)],D),Fr=new cn(Ge(Zi),Zi,Ks),Mr;return r.useTLS?Mr=new br([hn,new Dn(Fr,{delay:2e3})]):Mr=new br([hn,new Dn(st,{delay:2e3}),new Dn(Fr,{delay:5e3})]),new xs(new Ps(new cn(Ge(pt),Mr,Fr)),s,{ttl:18e5,timeline:r.timeline,useTLS:r.useTLS})},wt=Rs,Tr=function(){var i=this;i.timeline.info(i.buildTimelineMessage({transport:i.name+(i.options.useTLS?"s":"")})),i.hooks.isInitialized()?i.changeState("initialized"):i.hooks.file?(i.changeState("initializing"),j.load(i.hooks.file,{useTLS:i.options.useTLS},function(r,o){i.hooks.isInitialized()?(i.changeState("initialized"),o(!0)):(r&&i.onError(r),i.onClose(),o(!1))})):i.onClose()},ke={getRequest:function(i){var r=new window.XDomainRequest;return r.ontimeout=function(){i.emit("error",new ht),i.close()},r.onerror=function(o){i.emit("error",o),i.close()},r.onprogress=function(){r.responseText&&r.responseText.length>0&&i.onChunk(200,r.responseText)},r.onload=function(){r.responseText&&r.responseText.length>0&&i.onChunk(200,r.responseText),i.emit("finished",200),i.close()},r},abortRequest:function(i){i.ontimeout=i.onerror=i.onprogress=i.onload=null,i.abort()}},Ui=ke,xr=function(){var i=function(r,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var l in c)c.hasOwnProperty(l)&&(s[l]=c[l])},i(r,o)};return function(r,o){i(r,o);function s(){this.constructor=r}r.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}(),qt=256*1024,Bi=function(i){xr(r,i);function r(o,s,c){var l=i.call(this)||this;return l.hooks=o,l.method=s,l.url=c,l}return r.prototype.start=function(o){var s=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){s.close()},$.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(o)},r.prototype.close=function(){this.unloader&&($.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},r.prototype.onChunk=function(o,s){for(;;){var c=this.advanceBuffer(s);if(c)this.emit("chunk",{status:o,data:c});else break}this.isBufferTooLong(s)&&this.emit("buffer_too_long")},r.prototype.advanceBuffer=function(o){var s=o.slice(this.position),c=s.indexOf(`
+`);return c!==-1?(this.position+=c+1,s.slice(0,c)):null},r.prototype.isBufferTooLong=function(o){return this.position===o.length&&o.length>qt},r}(ie),Fi=Bi,Un;(function(i){i[i.CONNECTING=0]="CONNECTING",i[i.OPEN=1]="OPEN",i[i.CLOSED=3]="CLOSED"})(Un||(Un={}));var me=Un,Mi=1,Hi=function(){function i(r,o){this.hooks=r,this.session=Cr(1e3)+"/"+be(8),this.location=Lt(o),this.readyState=me.CONNECTING,this.openStream()}return i.prototype.send=function(r){return this.sendRaw(JSON.stringify([r]))},i.prototype.ping=function(){this.hooks.sendHeartbeat(this)},i.prototype.close=function(r,o){this.onClose(r,o,!0)},i.prototype.sendRaw=function(r){if(this.readyState===me.OPEN)try{return $.createSocketRequest("POST",It(ks(this.location,this.session))).start(r),!0}catch{return!1}else return!1},i.prototype.reconnect=function(){this.closeStream(),this.openStream()},i.prototype.onClose=function(r,o,s){this.closeStream(),this.readyState=me.CLOSED,this.onclose&&this.onclose({code:r,reason:o,wasClean:s})},i.prototype.onChunk=function(r){if(r.status===200){this.readyState===me.OPEN&&this.onActivity();var o,s=r.data.slice(0,1);switch(s){case"o":o=JSON.parse(r.data.slice(1)||"{}"),this.onOpen(o);break;case"a":o=JSON.parse(r.data.slice(1)||"[]");for(var c=0;c0&&i.onChunk(o.status,o.responseText);break;case 4:o.responseText&&o.responseText.length>0&&i.onChunk(o.status,o.responseText),i.emit("finished",o.status),i.close();break}},o},abortRequest:function(i){i.onreadystatechange=null,i.abort()}},Or=Is,Ns={createStreamingSocket:function(i){return this.createSocket(lt,i)},createPollingSocket:function(i){return this.createSocket(Ar,i)},createSocket:function(i,r){return new Bn(i,r)},createXHR:function(i,r){return this.createRequest(Or,i,r)},createRequest:function(i,r,o){return new Fi(i,r,o)}},qi=Ns;qi.createXDR=function(i,r){return this.createRequest(Ui,i,r)};var Ds=qi,Wi={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:y,DependenciesReceivers:z,getDefaultStrategy:wt,Transports:us,transportConnectionInitializer:Tr,HTTPFactory:Ds,TimelineTransport:cr,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(i){var r=this;window.Pusher=i;var o=function(){r.onDocumentBody(i.ready)};window.JSON?o():j.load("json2",{},o)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:Ho,jsonp:nr}},onDocumentBody:function(i){var r=this;document.body?i():setTimeout(function(){r.onDocumentBody(i)},0)},createJSONPRequest:function(i,r){return new sr(i,r)},createScriptRequest:function(i){return new ir(i)},getLocalStorage:function(){try{return window.localStorage}catch{return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){var i=this.getXHRAPI();return new i},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return Rn},createWebSocket:function(i){var r=this.getWebSocketAPI();return new r(i)},createSocketRequest:function(i,r){if(this.isXHRSupported())return this.HTTPFactory.createXHR(i,r);if(this.isXDRSupported(r.indexOf("https:")===0))return this.HTTPFactory.createXDR(i,r);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var i=this.getXHRAPI();return Boolean(i)&&new i().withCredentials!==void 0},isXDRSupported:function(i){var r=i?"https:":"http:",o=this.getProtocol();return Boolean(window.XDomainRequest)&&o===r},addUnloadListener:function(i){window.addEventListener!==void 0?window.addEventListener("unload",i,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",i)},removeUnloadListener:function(i){window.addEventListener!==void 0?window.removeEventListener("unload",i,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",i)},randomInt:function(i){var r=function(){var o=window.crypto||window.msCrypto,s=o.getRandomValues(new Uint32Array(1))[0];return s/Math.pow(2,32)};return Math.floor(r()*i)}},$=Wi,Se;(function(i){i[i.ERROR=3]="ERROR",i[i.INFO=6]="INFO",i[i.DEBUG=7]="DEBUG"})(Se||(Se={}));var Fn=Se,zi=function(){function i(r,o,s){this.key=r,this.session=o,this.events=[],this.options=s||{},this.sent=0,this.uniqueID=0}return i.prototype.log=function(r,o){r<=this.options.level&&(this.events.push(mt({},o,{timestamp:gt.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},i.prototype.error=function(r){this.log(Fn.ERROR,r)},i.prototype.info=function(r){this.log(Fn.INFO,r)},i.prototype.debug=function(r){this.log(Fn.DEBUG,r)},i.prototype.isEmpty=function(){return this.events.length===0},i.prototype.send=function(r,o){var s=this,c=mt({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=[],r(c,function(l,S){l||s.sent++,o&&o(l,S)}),!0},i.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},i}(),ji=zi,Pr=function(){function i(r,o,s,c){this.name=r,this.priority=o,this.transport=s,this.options=c||{}}return i.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},i.prototype.connect=function(r,o){var s=this;if(this.isSupported()){if(this.priority"u")throw"'"+i.transport+"' is not a recognized auth transport";return function(r,o){var s=Bs(r,i);$.getAuthorizers()[i.transport]($,s,i,P.UserAuthentication,o)}},Nt=Ji,Nr=function(i,r){var o="socket_id="+encodeURIComponent(i.socketId);o+="&channel_name="+encodeURIComponent(i.channelName);for(var s in r.params)o+="&"+encodeURIComponent(s)+"="+encodeURIComponent(r.params[s]);return o},fn=function(i){if(typeof $.getAuthorizers()[i.transport]>"u")throw"'"+i.transport+"' is not a recognized auth transport";return function(r,o){var s=Nr(r,i);$.getAuthorizers()[i.transport]($,s,i,P.ChannelAuthorization,o)}},Xi=fn,Gi=function(i,r,o){var s={authTransport:r.transport,authEndpoint:r.endpoint,auth:{params:r.params,headers:r.headers}};return function(c,l){var S=i.channel(c.channelName),x=o(S,s);x.authorize(c.socketId,l)}},Ke=function(){return Ke=Object.assign||function(i){for(var r,o=1,s=arguments.length;o