@autoafleveren/ui 1.5.6 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +112 -112
- package/dist/types/composables/useContextMenu/index.d.ts +3 -0
- package/dist/ui-storybook.css +1 -1
- package/dist/ui.cjs +31 -31
- package/dist/ui.js +450 -445
- package/package.json +1 -1
- package/src/modules/components/AppActionBar/AppActionBar.vue +1 -1
- package/src/modules/components/AppActionBar/AppActionBarItem.vue +1 -1
- package/src/modules/components/AppActionBar/AppActionBarSubMenu.vue +1 -1
- package/src/modules/components/AppContextMenu/AppContextMenu.vue +2 -2
- package/src/modules/composables/useContextMenu/index.ts +10 -1
- package/src/modules/composables/useFocusTrap/index.d.ts +2 -0
- package/src/modules/composables/useFocusTrap/index.ts +2 -2
package/dist/icons.cjs
CHANGED
|
@@ -565,7 +565,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
565
565
|
* Copyright 2020, Pusher
|
|
566
566
|
* Released under the MIT licence.
|
|
567
567
|
*/var A3;function bh(){return A3||(A3=1,function(t,n){(function(a,o){t.exports=o()})(window,function(){return function(r){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return r[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=r,o.c=a,o.d=function(i,s,h){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:h})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(s&1&&(i=o(i)),s&8||s&4&&typeof i=="object"&&i&&i.__esModule)return i;var h=Object.create(null);if(o.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:i}),s&2&&typeof i!="string")for(var d in i)o.d(h,d,(function(v){return i[v]}).bind(null,d));return h},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=2)}([function(r,a,o){var i=this&&this.__extends||function(){var x=function(y,C){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,M){_.__proto__=M}||function(_,M){for(var E in M)M.hasOwnProperty(E)&&(_[E]=M[E])},x(y,C)};return function(y,C){x(y,C);function _(){this.constructor=y}y.prototype=C===null?Object.create(C):(_.prototype=C.prototype,new _)}}();Object.defineProperty(a,"__esModule",{value:!0});var s=256,h=function(){function x(y){y===void 0&&(y="="),this._paddingCharacter=y}return x.prototype.encodedLength=function(y){return this._paddingCharacter?(y+2)/3*4|0:(y*8+5)/6|0},x.prototype.encode=function(y){for(var C="",_=0;_<y.length-2;_+=3){var M=y[_]<<16|y[_+1]<<8|y[_+2];C+=this._encodeByte(M>>>18&63),C+=this._encodeByte(M>>>12&63),C+=this._encodeByte(M>>>6&63),C+=this._encodeByte(M>>>0&63)}var E=y.length-_;if(E>0){var M=y[_]<<16|(E===2?y[_+1]<<8:0);C+=this._encodeByte(M>>>18&63),C+=this._encodeByte(M>>>12&63),E===2?C+=this._encodeByte(M>>>6&63):C+=this._paddingCharacter||"",C+=this._paddingCharacter||""}return C},x.prototype.maxDecodedLength=function(y){return this._paddingCharacter?y/4*3|0:(y*6+7)/8|0},x.prototype.decodedLength=function(y){return this.maxDecodedLength(y.length-this._getPaddingLength(y))},x.prototype.decode=function(y){if(y.length===0)return new Uint8Array(0);for(var C=this._getPaddingLength(y),_=y.length-C,M=new Uint8Array(this.maxDecodedLength(_)),E=0,$=0,L=0,A=0,X=0,R=0,z=0;$<_-4;$+=4)A=this._decodeChar(y.charCodeAt($+0)),X=this._decodeChar(y.charCodeAt($+1)),R=this._decodeChar(y.charCodeAt($+2)),z=this._decodeChar(y.charCodeAt($+3)),M[E++]=A<<2|X>>>4,M[E++]=X<<4|R>>>2,M[E++]=R<<6|z,L|=A&s,L|=X&s,L|=R&s,L|=z&s;if($<_-1&&(A=this._decodeChar(y.charCodeAt($)),X=this._decodeChar(y.charCodeAt($+1)),M[E++]=A<<2|X>>>4,L|=A&s,L|=X&s),$<_-2&&(R=this._decodeChar(y.charCodeAt($+2)),M[E++]=X<<4|R>>>2,L|=R&s),$<_-3&&(z=this._decodeChar(y.charCodeAt($+3)),M[E++]=R<<6|z,L|=z&s),L!==0)throw new Error("Base64Coder: incorrect characters for decoding");return M},x.prototype._encodeByte=function(y){var C=y;return C+=65,C+=25-y>>>8&6,C+=51-y>>>8&-75,C+=61-y>>>8&-15,C+=62-y>>>8&3,String.fromCharCode(C)},x.prototype._decodeChar=function(y){var C=s;return C+=(42-y&y-44)>>>8&-s+y-43+62,C+=(46-y&y-48)>>>8&-s+y-47+63,C+=(47-y&y-58)>>>8&-s+y-48+52,C+=(64-y&y-91)>>>8&-s+y-65+0,C+=(96-y&y-123)>>>8&-s+y-97+26,C},x.prototype._getPaddingLength=function(y){var C=0;if(this._paddingCharacter){for(var _=y.length-1;_>=0&&y[_]===this._paddingCharacter;_--)C++;if(y.length<4||C>2)throw new Error("Base64Coder: incorrect padding")}return C},x}();a.Coder=h;var d=new h;function v(x){return d.encode(x)}a.encode=v;function p(x){return d.decode(x)}a.decode=p;var m=function(x){i(y,x);function y(){return x!==null&&x.apply(this,arguments)||this}return y.prototype._encodeByte=function(C){var _=C;return _+=65,_+=25-C>>>8&6,_+=51-C>>>8&-75,_+=61-C>>>8&-13,_+=62-C>>>8&49,String.fromCharCode(_)},y.prototype._decodeChar=function(C){var _=s;return _+=(44-C&C-46)>>>8&-s+C-45+62,_+=(94-C&C-96)>>>8&-s+C-95+63,_+=(47-C&C-58)>>>8&-s+C-48+52,_+=(64-C&C-91)>>>8&-s+C-65+0,_+=(96-C&C-123)>>>8&-s+C-97+26,_},y}(h);a.URLSafeCoder=m;var g=new m;function V(x){return g.encode(x)}a.encodeURLSafe=V;function H(x){return g.decode(x)}a.decodeURLSafe=H,a.encodedLength=function(x){return d.encodedLength(x)},a.maxDecodedLength=function(x){return d.maxDecodedLength(x)},a.decodedLength=function(x){return d.decodedLength(x)}},function(r,a,o){Object.defineProperty(a,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function h(p){for(var m=new Uint8Array(d(p)),g=0,V=0;V<p.length;V++){var H=p.charCodeAt(V);H<128?m[g++]=H:H<2048?(m[g++]=192|H>>6,m[g++]=128|H&63):H<55296?(m[g++]=224|H>>12,m[g++]=128|H>>6&63,m[g++]=128|H&63):(V++,H=(H&1023)<<10,H|=p.charCodeAt(V)&1023,H+=65536,m[g++]=240|H>>18,m[g++]=128|H>>12&63,m[g++]=128|H>>6&63,m[g++]=128|H&63)}return m}a.encode=h;function d(p){for(var m=0,g=0;g<p.length;g++){var V=p.charCodeAt(g);if(V<128)m+=1;else if(V<2048)m+=2;else if(V<55296)m+=3;else if(V<=57343){if(g>=p.length-1)throw new Error(i);g++,m+=4}else throw new Error(i)}return m}a.encodedLength=d;function v(p){for(var m=[],g=0;g<p.length;g++){var V=p[g];if(V&128){var H=void 0;if(V<224){if(g>=p.length)throw new Error(s);var x=p[++g];if((x&192)!==128)throw new Error(s);V=(V&31)<<6|x&63,H=128}else if(V<240){if(g>=p.length-1)throw new Error(s);var x=p[++g],y=p[++g];if((x&192)!==128||(y&192)!==128)throw new Error(s);V=(V&15)<<12|(x&63)<<6|y&63,H=2048}else if(V<248){if(g>=p.length-2)throw new Error(s);var x=p[++g],y=p[++g],C=p[++g];if((x&192)!==128||(y&192)!==128||(C&192)!==128)throw new Error(s);V=(V&15)<<18|(x&63)<<12|(y&63)<<6|C&63,H=65536}else throw new Error(s);if(V<H||V>=55296&&V<=57343)throw new Error(s);if(V>=65536){if(V>1114111)throw new Error(s);V-=65536,m.push(String.fromCharCode(55296|V>>10)),V=56320|V&1023}}m.push(String.fromCharCode(V))}return m.join("")}a.decode=v},function(r,a,o){r.exports=o(3).default},function(r,a,o){o.r(a);class i{constructor(l,c){this.lastId=0,this.prefix=l,this.name=c}create(l){this.lastId++;var c=this.lastId,w=this.prefix+c,b=this.name+"["+c+"]",q=!1,ue=function(){q||(l.apply(null,arguments),q=!0)};return this[c]=ue,{number:c,id:w,name:b,callback:ue}}remove(l){delete this[l.number]}}var s=new i("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.4.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:""},d=h;class v{constructor(l){this.options=l,this.receivers=l.receivers||s,this.loading={}}load(l,c,w){var b=this;if(b.loading[l]&&b.loading[l].length>0)b.loading[l].push(w);else{b.loading[l]=[w];var q=Ae.createScriptRequest(b.getPath(l,c)),ue=b.receivers.create(function(Ce){if(b.receivers.remove(ue),b.loading[l]){var Be=b.loading[l];delete b.loading[l];for(var Te=function(at){at||q.cleanup()},Ie=0;Ie<Be.length;Ie++)Be[Ie](Ce,Te)}});q.send(ue)}}getRoot(l){var c,w=Ae.getDocument().location.protocol;return l&&l.useTLS||w==="https:"?c=this.options.cdn_https:c=this.options.cdn_http,c.replace(/\/*$/,"")+"/"+this.options.version}getPath(l,c){return this.getRoot(c)+"/"+l+this.options.suffix+".js"}}var p=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),m=new v({cdn_http:d.cdn_http,cdn_https:d.cdn_https,version:d.VERSION,suffix:d.dependency_suffix,receivers:p});const g={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 H={buildLogSuffix:function(u){const l="See:",c=g.urls[u];if(!c)return"";let w;return c.fullUrl?w=c.fullUrl:c.path&&(w=g.baseUrl+c.path),w?`${l} ${w}`:""}},x;(function(u){u.UserAuthentication="user-authentication",u.ChannelAuthorization="channel-authorization"})(x||(x={}));class y extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class M extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class E extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class $ extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class L extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class A extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class X extends Error{constructor(l,c){super(c),this.status=l,Object.setPrototypeOf(this,new.target.prototype)}}var z=function(u,l,c,w,b){const q=Ae.createXHR();q.open("POST",c.endpoint,!0),q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var ue in c.headers)q.setRequestHeader(ue,c.headers[ue]);if(c.headersProvider!=null){let Ce=c.headersProvider();for(var ue in Ce)q.setRequestHeader(ue,Ce[ue])}return q.onreadystatechange=function(){if(q.readyState===4)if(q.status===200){let Ce,Be=!1;try{Ce=JSON.parse(q.responseText),Be=!0}catch{b(new X(200,`JSON returned from ${w.toString()} endpoint was invalid, yet status code was 200. Data was: ${q.responseText}`),null)}Be&&b(null,Ce)}else{let Ce="";switch(w){case x.UserAuthentication:Ce=H.buildLogSuffix("authenticationEndpoint");break;case x.ChannelAuthorization:Ce=`Clients must be authorized to join private or presence channels. ${H.buildLogSuffix("authorizationEndpoint")}`;break}b(new X(q.status,`Unable to retrieve auth string from ${w.toString()} endpoint - received status: ${q.status} from ${c.endpoint}. ${Ce}`),null)}},q.send(l),q};function de(u){return G(Z(u))}var pe=String.fromCharCode,ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=function(u){var l=u.charCodeAt(0);return l<128?u:l<2048?pe(192|l>>>6)+pe(128|l&63):pe(224|l>>>12&15)+pe(128|l>>>6&63)+pe(128|l&63)},Z=function(u){return u.replace(/[^\x00-\x7F]/g,S)},N=function(u){var l=[0,2,1][u.length%3],c=u.charCodeAt(0)<<16|(u.length>1?u.charCodeAt(1):0)<<8|(u.length>2?u.charCodeAt(2):0),w=[ne.charAt(c>>>18),ne.charAt(c>>>12&63),l>=2?"=":ne.charAt(c>>>6&63),l>=1?"=":ne.charAt(c&63)];return w.join("")},G=window.btoa||function(u){return u.replace(/[\s\S]{1,3}/g,N)};class ae{constructor(l,c,w,b){this.clear=c,this.timer=l(()=>{this.timer&&(this.timer=b(this.timer))},w)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var Y=ae;function J(u){window.clearTimeout(u)}function O(u){window.clearInterval(u)}class fe extends Y{constructor(l,c){super(setTimeout,J,l,function(w){return c(),null})}}class B extends Y{constructor(l,c){super(setInterval,O,l,function(w){return c(),w})}}var I={now(){return Date.now?Date.now():new Date().valueOf()},defer(u){return new fe(0,u)},method(u,...l){var c=Array.prototype.slice.call(arguments,1);return function(w){return w[u].apply(w,c.concat(arguments))}}},j=I;function U(u,...l){for(var c=0;c<l.length;c++){var w=l[c];for(var b in w)w[b]&&w[b].constructor&&w[b].constructor===Object?u[b]=U(u[b]||{},w[b]):u[b]=w[b]}return u}function f(){for(var u=["Pusher"],l=0;l<arguments.length;l++)typeof arguments[l]=="string"?u.push(arguments[l]):u.push(P(arguments[l]));return u.join(" : ")}function D(u,l){var c=Array.prototype.indexOf;if(u===null)return-1;if(c&&u.indexOf===c)return u.indexOf(l);for(var w=0,b=u.length;w<b;w++)if(u[w]===l)return w;return-1}function te(u,l){for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&l(u[c],c,u)}function Se(u){var l=[];return te(u,function(c,w){l.push(w)}),l}function F(u){var l=[];return te(u,function(c){l.push(c)}),l}function be(u,l,c){for(var w=0;w<u.length;w++)l.call(c||window,u[w],w,u)}function Q(u,l){for(var c=[],w=0;w<u.length;w++)c.push(l(u[w],w,u,c));return c}function le(u,l){var c={};return te(u,function(w,b){c[b]=l(w)}),c}function k(u,l){l=l||function(b){return!!b};for(var c=[],w=0;w<u.length;w++)l(u[w],w,u,c)&&c.push(u[w]);return c}function re(u,l){var c={};return te(u,function(w,b){(l&&l(w,b,u,c)||w)&&(c[b]=w)}),c}function se(u){var l=[];return te(u,function(c,w){l.push([w,c])}),l}function ie(u,l){for(var c=0;c<u.length;c++)if(l(u[c],c,u))return!0;return!1}function Ee(u,l){for(var c=0;c<u.length;c++)if(!l(u[c],c,u))return!1;return!0}function xe(u){return le(u,function(l){return typeof l=="object"&&(l=P(l)),encodeURIComponent(de(l.toString()))})}function Pe(u){var l=re(u,function(w){return w!==void 0}),c=Q(se(xe(l)),j.method("join","=")).join("&");return c}function Re(u){var l=[],c=[];return function w(b,q){var ue,Ce,Be;switch(typeof b){case"object":if(!b)return null;for(ue=0;ue<l.length;ue+=1)if(l[ue]===b)return{$ref:c[ue]};if(l.push(b),c.push(q),Object.prototype.toString.apply(b)==="[object Array]")for(Be=[],ue=0;ue<b.length;ue+=1)Be[ue]=w(b[ue],q+"["+ue+"]");else{Be={};for(Ce in b)Object.prototype.hasOwnProperty.call(b,Ce)&&(Be[Ce]=w(b[Ce],q+"["+JSON.stringify(Ce)+"]"))}return Be;case"number":case"string":case"boolean":return b}}(u,"$")}function P(u){try{return JSON.stringify(u)}catch{return JSON.stringify(Re(u))}}class ce{constructor(){this.globalLog=l=>{window.console&&window.console.log&&window.console.log(l)}}debug(...l){this.log(this.globalLog,l)}warn(...l){this.log(this.globalLogWarn,l)}error(...l){this.log(this.globalLogError,l)}globalLogWarn(l){window.console&&window.console.warn?window.console.warn(l):this.globalLog(l)}globalLogError(l){window.console&&window.console.error?window.console.error(l):this.globalLogWarn(l)}log(l,...c){var w=f.apply(this,arguments);xn.log?xn.log(w):xn.logToConsole&&l.bind(this)(w)}}var ve=new ce,Ge=function(u,l,c,w,b){(c.headers!==void 0||c.headersProvider!=null)&&ve.warn(`To send headers with the ${w.toString()} request, you must use AJAX, rather than JSONP.`);var q=u.nextAuthCallbackID.toString();u.nextAuthCallbackID++;var ue=u.getDocument(),Ce=ue.createElement("script");u.auth_callbacks[q]=function(Ie){b(null,Ie)};var Be="Pusher.auth_callbacks['"+q+"']";Ce.src=c.endpoint+"?callback="+encodeURIComponent(Be)+"&"+l;var Te=ue.getElementsByTagName("head")[0]||ue.documentElement;Te.insertBefore(Ce,Te.firstChild)},mt=Ge;class ge{constructor(l){this.src=l}send(l){var c=this,w="Error loading "+c.src;c.script=document.createElement("script"),c.script.id=l.id,c.script.src=c.src,c.script.type="text/javascript",c.script.charset="UTF-8",c.script.addEventListener?(c.script.onerror=function(){l.callback(w)},c.script.onload=function(){l.callback(null)}):c.script.onreadystatechange=function(){(c.script.readyState==="loaded"||c.script.readyState==="complete")&&l.callback(null)},c.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(c.errorScript=document.createElement("script"),c.errorScript.id=l.id+"_error",c.errorScript.text=l.name+"('"+w+"');",c.script.async=c.errorScript.async=!1):c.script.async=!0;var b=document.getElementsByTagName("head")[0];b.insertBefore(c.script,b.firstChild),c.errorScript&&b.insertBefore(c.errorScript,c.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 je{constructor(l,c){this.url=l,this.data=c}send(l){if(!this.request){var c=Pe(this.data),w=this.url+"/"+l.number+"?"+c;this.request=Ae.createScriptRequest(w),this.request.send(l)}}cleanup(){this.request&&this.request.cleanup()}}var kt=function(u,l){return function(c,w){var b="http"+(l?"s":"")+"://",q=b+(u.host||u.options.host)+u.options.path,ue=Ae.createJSONPRequest(q,c),Ce=Ae.ScriptReceivers.create(function(Be,Te){s.remove(Ce),ue.cleanup(),Te&&Te.host&&(u.host=Te.host),w&&w(Be,Te)});ue.send(Ce)}},M1={name:"jsonp",getAgent:kt},ct=M1;function bt(u,l,c){var w=u+(l.useTLS?"s":""),b=l.useTLS?l.hostTLS:l.hostNonTLS;return w+"://"+b+c}function xt(u,l){var c="/app/"+u,w="?protocol="+d.PROTOCOL+"&client=js&version="+d.VERSION+(l?"&"+l:"");return c+w}var At={getInitial:function(u,l){var c=(l.httpPath||"")+xt(u,"flash=false");return bt("ws",l,c)}},St={getInitial:function(u,l){var c=(l.httpPath||"/pusher")+xt(u);return bt("http",l,c)}},Nt={getInitial:function(u,l){return bt("http",l,l.httpPath||"/pusher")},getPath:function(u,l){return xt(u)}};class T{constructor(){this._callbacks={}}get(l){return this._callbacks[ee(l)]}add(l,c,w){var b=ee(l);this._callbacks[b]=this._callbacks[b]||[],this._callbacks[b].push({fn:c,context:w})}remove(l,c,w){if(!l&&!c&&!w){this._callbacks={};return}var b=l?[ee(l)]:Se(this._callbacks);c||w?this.removeCallback(b,c,w):this.removeAllCallbacks(b)}removeCallback(l,c,w){be(l,function(b){this._callbacks[b]=k(this._callbacks[b]||[],function(q){return c&&c!==q.fn||w&&w!==q.context}),this._callbacks[b].length===0&&delete this._callbacks[b]},this)}removeAllCallbacks(l){be(l,function(c){delete this._callbacks[c]},this)}}function ee(u){return"_"+u}class we{constructor(l){this.callbacks=new T,this.global_callbacks=[],this.failThrough=l}bind(l,c,w){return this.callbacks.add(l,c,w),this}bind_global(l){return this.global_callbacks.push(l),this}unbind(l,c,w){return this.callbacks.remove(l,c,w),this}unbind_global(l){return l?(this.global_callbacks=k(this.global_callbacks||[],c=>c!==l),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(l,c,w){for(var b=0;b<this.global_callbacks.length;b++)this.global_callbacks[b](l,c);var q=this.callbacks.get(l),ue=[];if(w?ue.push(c,w):c&&ue.push(c),q&&q.length>0)for(var b=0;b<q.length;b++)q[b].fn.apply(q[b].context||window,ue);else this.failThrough&&this.failThrough(l,c);return this}}class He extends we{constructor(l,c,w,b,q){super(),this.initialize=Ae.transportConnectionInitializer,this.hooks=l,this.name=c,this.priority=w,this.key=b,this.options=q,this.state="new",this.timeline=q.timeline,this.activityTimeout=q.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var l=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(l,this.options)}catch(c){return j.defer(()=>{this.onError(c),this.changeState("closed")}),!1}return this.bindListeners(),ve.debug("Connecting",{transport:this.name,url:l}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(l){return this.state==="open"?(j.defer(()=>{this.socket&&this.socket.send(l)}),!0):!1}ping(){this.state==="open"&&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(l){this.emit("error",{type:"WebSocketError",error:l}),this.timeline.error(this.buildTimelineMessage({error:l.toString()}))}onClose(l){l?this.changeState("closed",{code:l.code,reason:l.reason,wasClean:l.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(l){this.emit("message",l)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=l=>{this.onError(l)},this.socket.onclose=l=>{this.onClose(l)},this.socket.onmessage=l=>{this.onMessage(l)},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(l,c){this.state=l,this.timeline.info(this.buildTimelineMessage({state:l,params:c})),this.emit(l,c)}buildTimelineMessage(l){return U({cid:this.id},l)}}class W{constructor(l){this.hooks=l}isSupported(l){return this.hooks.isSupported(l)}createConnection(l,c,w,b){return new He(this.hooks,l,c,w,b)}}var he=new W({urls:At,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!Ae.getWebSocketAPI()},isSupported:function(){return!!Ae.getWebSocketAPI()},getSocket:function(u){return Ae.createWebSocket(u)}}),me={urls:St,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},vt=U({getSocket:function(u){return Ae.HTTPFactory.createStreamingSocket(u)}},me),ut=U({getSocket:function(u){return Ae.HTTPFactory.createPollingSocket(u)}},me),_t={isSupported:function(){return Ae.isXHRSupported()}},yt=new W(U({},vt,_t)),i1=new W(U({},ut,_t)),n2={ws:he,xhr_streaming:yt,xhr_polling:i1},b1=n2,wn=new W({file:"sockjs",urls:Nt,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(u,l){return new window.SockJS(u,null,{js_path:m.getPath("sockjs",{useTLS:l.useTLS}),ignore_null_origin:l.ignoreNullOrigin})},beforeOpen:function(u,l){u.send(JSON.stringify({path:l}))}}),S2={isSupported:function(u){var l=Ae.isXDRSupported(u.useTLS);return l}},N2=new W(U({},vt,S2)),ye=new W(U({},ut,S2));b1.xdr_streaming=N2,b1.xdr_polling=ye,b1.sockjs=wn;var Vt=b1;class ke extends we{constructor(){super();var l=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){l.emit("online")},!1),window.addEventListener("offline",function(){l.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var ot=new ke;class We{constructor(l,c,w){this.manager=l,this.transport=c,this.minPingDelay=w.minPingDelay,this.maxPingDelay=w.maxPingDelay,this.pingDelay=void 0}createConnection(l,c,w,b){b=U({},b,{activityTimeout:this.pingDelay});var q=this.transport.createConnection(l,c,w,b),ue=null,Ce=function(){q.unbind("open",Ce),q.bind("closed",Be),ue=j.now()},Be=Te=>{if(q.unbind("closed",Be),Te.code===1002||Te.code===1003)this.manager.reportDeath();else if(!Te.wasClean&&ue){var Ie=j.now()-ue;Ie<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(Ie/2,this.minPingDelay))}};return q.bind("open",Ce),q}isSupported(l){return this.manager.isAlive()&&this.transport.isSupported(l)}}const L2={decodeMessage:function(u){try{var l=JSON.parse(u.data),c=l.data;if(typeof c=="string")try{c=JSON.parse(l.data)}catch{}var w={event:l.event,channel:l.channel,data:c};return l.user_id&&(w.user_id=l.user_id),w}catch(b){throw{type:"MessageParseError",error:b,data:u.data}}},encodeMessage:function(u){return JSON.stringify(u)},processHandshake:function(u){var l=L2.decodeMessage(u);if(l.event==="pusher:connection_established"){if(!l.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:l.data.socket_id,activityTimeout:l.data.activity_timeout*1e3}}else{if(l.event==="pusher:error")return{action:this.getCloseAction(l.data),error:this.getCloseError(l.data)};throw"Invalid handshake"}},getCloseAction:function(u){return u.code<4e3?u.code>=1002&&u.code<=1004?"backoff":null:u.code===4e3?"tls_only":u.code<4100?"refused":u.code<4200?"backoff":u.code<4300?"retry":"refused"},getCloseError:function(u){return u.code!==1e3&&u.code!==1001?{type:"PusherError",data:{code:u.code,message:u.reason||u.message}}:null}};var jt=L2;class R5 extends we{constructor(l,c){super(),this.id=l,this.transport=c,this.activityTimeout=c.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(l){return this.transport.send(l)}send_event(l,c,w){var b={event:l,data:c};return w&&(b.channel=w),ve.debug("Event sent",b),this.send(jt.encodeMessage(b))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var l={message:w=>{var b;try{b=jt.decodeMessage(w)}catch(q){this.emit("error",{type:"MessageParseError",error:q,data:w.data})}if(b!==void 0){switch(ve.debug("Event recd",b),b.event){case"pusher:error":this.emit("error",{type:"PusherError",data:b.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",b)}},activity:()=>{this.emit("activity")},error:w=>{this.emit("error",w)},closed:w=>{c(),w&&w.code&&this.handleCloseEvent(w),this.transport=null,this.emit("closed")}},c=()=>{te(l,(w,b)=>{this.transport.unbind(b,w)})};te(l,(w,b)=>{this.transport.bind(b,w)})}handleCloseEvent(l){var c=jt.getCloseAction(l),w=jt.getCloseError(l);w&&this.emit("error",w),c&&this.emit(c,{action:c,error:w})}}class j5{constructor(l,c){this.transport=l,this.callback=c,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=l=>{this.unbindListeners();var c;try{c=jt.processHandshake(l)}catch(w){this.finish("error",{error:w}),this.transport.close();return}c.action==="connected"?this.finish("connected",{connection:new R5(c.id,this.transport),activityTimeout:c.activityTimeout}):(this.finish(c.action,{error:c.error}),this.transport.close())},this.onClosed=l=>{this.unbindListeners();var c=jt.getCloseAction(l)||"backoff",w=jt.getCloseError(l);this.finish(c,{error:w})},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(l,c){this.callback(U({transport:this.transport,action:l},c))}}class F5{constructor(l,c){this.timeline=l,this.options=c||{}}send(l,c){this.timeline.isEmpty()||this.timeline.send(Ae.TimelineTransport.getAgent(this,l),c)}}class gn extends we{constructor(l,c){super(function(w,b){ve.debug("No callbacks on "+l+" for "+w)}),this.name=l,this.pusher=c,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(l,c){return c(null,{auth:""})}trigger(l,c){if(l.indexOf("client-")!==0)throw new y("Event '"+l+"' does not start with 'client-'");if(!this.subscribed){var w=H.buildLogSuffix("triggeringClientEvents");ve.warn(`Client event triggered before channel 'subscription_succeeded' event . ${w}`)}return this.pusher.send_event(l,c,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(l){var c=l.event,w=l.data;if(c==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(l);else if(c==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(l);else if(c.indexOf("pusher_internal:")!==0){var b={};this.emit(c,w,b)}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",l.data)}handleSubscriptionCountEvent(l){l.data.subscription_count&&(this.subscriptionCount=l.data.subscription_count),this.emit("pusher:subscription_count",l.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(l,c)=>{l?(this.subscriptionPending=!1,ve.error(l.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:l.message},l instanceof X?{status:l.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:c.auth,channel_data:c.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 Cn extends gn{authorize(l,c){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:l},c)}}class Y5{constructor(){this.reset()}get(l){return Object.prototype.hasOwnProperty.call(this.members,l)?{id:l,info:this.members[l]}:null}each(l){te(this.members,(c,w)=>{l(this.get(w))})}setMyID(l){this.myID=l}onSubscription(l){this.members=l.presence.hash,this.count=l.presence.count,this.me=this.get(this.myID)}addMember(l){return this.get(l.user_id)===null&&this.count++,this.members[l.user_id]=l.user_info,this.get(l.user_id)}removeMember(l){var c=this.get(l.user_id);return c&&(delete this.members[l.user_id],this.count--),c}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var U5=function(u,l,c,w){function b(q){return q instanceof c?q:new c(function(ue){ue(q)})}return new(c||(c=Promise))(function(q,ue){function Ce(Ie){try{Te(w.next(Ie))}catch(at){ue(at)}}function Be(Ie){try{Te(w.throw(Ie))}catch(at){ue(at)}}function Te(Ie){Ie.done?q(Ie.value):b(Ie.value).then(Ce,Be)}Te((w=w.apply(u,l||[])).next())})};class W5 extends Cn{constructor(l,c){super(l,c),this.members=new Y5}authorize(l,c){super.authorize(l,(w,b)=>U5(this,void 0,void 0,function*(){if(!w)if(b=b,b.channel_data!=null){var q=JSON.parse(b.channel_data);this.members.setMyID(q.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let ue=H.buildLogSuffix("authorizationEndpoint");ve.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${ue}, or the user should be signed in.`),c("Invalid auth response");return}c(w,b)}))}handleEvent(l){var c=l.event;if(c.indexOf("pusher_internal:")===0)this.handleInternalEvent(l);else{var w=l.data,b={};l.user_id&&(b.user_id=l.user_id),this.emit(c,w,b)}}handleInternalEvent(l){var c=l.event,w=l.data;switch(c){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(l);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(l);break;case"pusher_internal:member_added":var b=this.members.addMember(w);this.emit("pusher:member_added",b);break;case"pusher_internal:member_removed":var q=this.members.removeMember(w);q&&this.emit("pusher:member_removed",q);break}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(l.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var q5=o(1),kn=o(0);class G5 extends Cn{constructor(l,c,w){super(l,c),this.key=null,this.nacl=w}authorize(l,c){super.authorize(l,(w,b)=>{if(w){c(w,b);return}let q=b.shared_secret;if(!q){c(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(kn.decode)(q),delete b.shared_secret,c(null,b)})}trigger(l,c){throw new $("Client events are not currently supported for encrypted channels")}handleEvent(l){var c=l.event,w=l.data;if(c.indexOf("pusher_internal:")===0||c.indexOf("pusher:")===0){super.handleEvent(l);return}this.handleEncryptedEvent(c,w)}handleEncryptedEvent(l,c){if(!this.key){ve.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!c.ciphertext||!c.nonce){ve.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+c);return}let w=Object(kn.decode)(c.ciphertext);if(w.length<this.nacl.secretbox.overheadLength){ve.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${w.length}`);return}let b=Object(kn.decode)(c.nonce);if(b.length<this.nacl.secretbox.nonceLength){ve.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${b.length}`);return}let q=this.nacl.secretbox.open(w,b,this.key);if(q===null){ve.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(ue,Ce)=>{if(ue){ve.error(`Failed to make a request to the authEndpoint: ${Ce}. Unable to fetch new key, so dropping encrypted event`);return}if(q=this.nacl.secretbox.open(w,b,this.key),q===null){ve.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(l,this.getDataToEmit(q))});return}this.emit(l,this.getDataToEmit(q))}getDataToEmit(l){let c=Object(q5.decode)(l);try{return JSON.parse(c)}catch{return c}}}class X5 extends we{constructor(l,c){super(),this.state="initialized",this.connection=null,this.key=l,this.options=c,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 w=Ae.getNetwork();w.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),w.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(l){return this.connection?this.connection.send(l):!1}send_event(l,c,w){return this.connection?this.connection.send_event(l,c,w):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var l=(c,w)=>{c?this.runner=this.strategy.connect(0,l):w.action==="error"?(this.emit("error",{type:"HandshakeError",error:w.error}),this.timeline.error({handshakeError:w.error})):(this.abortConnecting(),this.handshakeCallbacks[w.action](w))};this.runner=this.strategy.connect(0,l)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var l=this.abandonConnection();l.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(l){this.timeline.info({action:"retry",delay:l}),l>0&&this.emit("connecting_in",Math.round(l/1e3)),this.retryTimer=new fe(l||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new fe(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new fe(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new fe(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(l){return U({},l,{message:c=>{this.resetActivityCheck(),this.emit("message",c)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:c=>{this.emit("error",c)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(l){return U({},l,{connected:c=>{this.activityTimeout=Math.min(this.options.activityTimeout,c.activityTimeout,c.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(c.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let l=c=>w=>{w.error&&this.emit("error",{type:"WebSocketError",error:w.error}),c(w)};return{tls_only:l(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:l(()=>{this.disconnect()}),backoff:l(()=>{this.retryIn(1e3)}),retry:l(()=>{this.retryIn(0)})}}setConnection(l){this.connection=l;for(var c in this.connectionCallbacks)this.connection.bind(c,this.connectionCallbacks[c]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var l in this.connectionCallbacks)this.connection.unbind(l,this.connectionCallbacks[l]);var c=this.connection;return this.connection=null,c}}updateState(l,c){var w=this.state;if(this.state=l,w!==l){var b=l;b==="connected"&&(b+=" with new socket ID "+c.socket_id),ve.debug("State changed",w+" -> "+b),this.timeline.info({state:l,params:c}),this.emit("state_change",{previous:w,current:l}),this.emit(l,c)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Q5{constructor(){this.channels={}}add(l,c){return this.channels[l]||(this.channels[l]=K5(l,c)),this.channels[l]}all(){return F(this.channels)}find(l){return this.channels[l]}remove(l){var c=this.channels[l];return delete this.channels[l],c}disconnect(){te(this.channels,function(l){l.disconnect()})}}function K5(u,l){if(u.indexOf("private-encrypted-")===0){if(l.config.nacl)return Qt.createEncryptedChannel(u,l,l.config.nacl);let c="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",w=H.buildLogSuffix("encryptedChannelSupport");throw new $(`${c}. ${w}`)}else{if(u.indexOf("private-")===0)return Qt.createPrivateChannel(u,l);if(u.indexOf("presence-")===0)return Qt.createPresenceChannel(u,l);if(u.indexOf("#")===0)throw new C('Cannot create a channel with name "'+u+'".');return Qt.createChannel(u,l)}}var J5={createChannels(){return new Q5},createConnectionManager(u,l){return new X5(u,l)},createChannel(u,l){return new gn(u,l)},createPrivateChannel(u,l){return new Cn(u,l)},createPresenceChannel(u,l){return new W5(u,l)},createEncryptedChannel(u,l,c){return new G5(u,l,c)},createTimelineSender(u,l){return new F5(u,l)},createHandshake(u,l){return new j5(u,l)},createAssistantToTheTransportManager(u,l,c){return new We(u,l,c)}},Qt=J5;class sr{constructor(l){this.options=l||{},this.livesLeft=this.options.lives||1/0}getAssistant(l){return Qt.createAssistantToTheTransportManager(this,l,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class x1{constructor(l,c){this.strategies=l,this.loop=!!c.loop,this.failFast=!!c.failFast,this.timeout=c.timeout,this.timeoutLimit=c.timeoutLimit}isSupported(){return ie(this.strategies,j.method("isSupported"))}connect(l,c){var w=this.strategies,b=0,q=this.timeout,ue=null,Ce=(Be,Te)=>{Te?c(null,Te):(b=b+1,this.loop&&(b=b%w.length),b<w.length?(q&&(q=q*2,this.timeoutLimit&&(q=Math.min(q,this.timeoutLimit))),ue=this.tryStrategy(w[b],l,{timeout:q,failFast:this.failFast},Ce)):c(!0))};return ue=this.tryStrategy(w[b],l,{timeout:q,failFast:this.failFast},Ce),{abort:function(){ue.abort()},forceMinPriority:function(Be){l=Be,ue&&ue.forceMinPriority(Be)}}}tryStrategy(l,c,w,b){var q=null,ue=null;return w.timeout>0&&(q=new fe(w.timeout,function(){ue.abort(),b(!0)})),ue=l.connect(c,function(Ce,Be){Ce&&q&&q.isRunning()&&!w.failFast||(q&&q.ensureAborted(),b(Ce,Be))}),{abort:function(){q&&q.ensureAborted(),ue.abort()},forceMinPriority:function(Ce){ue.forceMinPriority(Ce)}}}}class yn{constructor(l){this.strategies=l}isSupported(){return ie(this.strategies,j.method("isSupported"))}connect(l,c){return e4(this.strategies,l,function(w,b){return function(q,ue){if(b[w].error=q,q){t4(b)&&c(!0);return}be(b,function(Ce){Ce.forceMinPriority(ue.transport.priority)}),c(null,ue)}})}}function e4(u,l,c){var w=Q(u,function(b,q,ue,Ce){return b.connect(l,c(q,Ce))});return{abort:function(){be(w,n4)},forceMinPriority:function(b){be(w,function(q){q.forceMinPriority(b)})}}}function t4(u){return Ee(u,function(l){return!!l.error})}function n4(u){!u.error&&!u.aborted&&(u.abort(),u.aborted=!0)}class a4{constructor(l,c,w){this.strategy=l,this.transports=c,this.ttl=w.ttl||1800*1e3,this.usingTLS=w.useTLS,this.timeline=w.timeline}isSupported(){return this.strategy.isSupported()}connect(l,c){var w=this.usingTLS,b=r4(w),q=b&&b.cacheSkipCount?b.cacheSkipCount:0,ue=[this.strategy];if(b&&b.timestamp+this.ttl>=j.now()){var Ce=this.transports[b.transport];Ce&&(["ws","wss"].includes(b.transport)||q>3?(this.timeline.info({cached:!0,transport:b.transport,latency:b.latency}),ue.push(new x1([Ce],{timeout:b.latency*2+1e3,failFast:!0}))):q++)}var Be=j.now(),Te=ue.pop().connect(l,function Ie(at,T2){at?(cr(w),ue.length>0?(Be=j.now(),Te=ue.pop().connect(l,Ie)):c(at)):(o4(w,T2.transport.name,j.now()-Be,q),c(null,T2))});return{abort:function(){Te.abort()},forceMinPriority:function(Ie){l=Ie,Te&&Te.forceMinPriority(Ie)}}}}function Vn(u){return"pusherTransport"+(u?"TLS":"NonTLS")}function r4(u){var l=Ae.getLocalStorage();if(l)try{var c=l[Vn(u)];if(c)return JSON.parse(c)}catch{cr(u)}return null}function o4(u,l,c,w){var b=Ae.getLocalStorage();if(b)try{b[Vn(u)]=P({timestamp:j.now(),transport:l,latency:c,cacheSkipCount:w})}catch{}}function cr(u){var l=Ae.getLocalStorage();if(l)try{delete l[Vn(u)]}catch{}}class Z2{constructor(l,{delay:c}){this.strategy=l,this.options={delay:c}}isSupported(){return this.strategy.isSupported()}connect(l,c){var w=this.strategy,b,q=new fe(this.options.delay,function(){b=w.connect(l,c)});return{abort:function(){q.ensureAborted(),b&&b.abort()},forceMinPriority:function(ue){l=ue,b&&b.forceMinPriority(ue)}}}}class a2{constructor(l,c,w){this.test=l,this.trueBranch=c,this.falseBranch=w}isSupported(){var l=this.test()?this.trueBranch:this.falseBranch;return l.isSupported()}connect(l,c){var w=this.test()?this.trueBranch:this.falseBranch;return w.connect(l,c)}}class l4{constructor(l){this.strategy=l}isSupported(){return this.strategy.isSupported()}connect(l,c){var w=this.strategy.connect(l,function(b,q){q&&w.abort(),c(b,q)});return w}}function r2(u){return function(){return u.isSupported()}}var i4=function(u,l,c){var w={};function b(kr,ll,il,sl,cl){var yr=c(u,kr,ll,il,sl,cl);return w[kr]=yr,yr}var q=Object.assign({},l,{hostNonTLS:u.wsHost+":"+u.wsPort,hostTLS:u.wsHost+":"+u.wssPort,httpPath:u.wsPath}),ue=Object.assign({},q,{useTLS:!0}),Ce=Object.assign({},l,{hostNonTLS:u.httpHost+":"+u.httpPort,hostTLS:u.httpHost+":"+u.httpsPort,httpPath:u.httpPath}),Be={loop:!0,timeout:15e3,timeoutLimit:6e4},Te=new sr({minPingDelay:1e4,maxPingDelay:u.activityTimeout}),Ie=new sr({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),at=b("ws","ws",3,q,Te),T2=b("wss","ws",3,ue,Te),tl=b("sockjs","sockjs",1,Ce),pr=b("xhr_streaming","xhr_streaming",1,Ce,Ie),nl=b("xdr_streaming","xdr_streaming",1,Ce,Ie),mr=b("xhr_polling","xhr_polling",1,Ce),al=b("xdr_polling","xdr_polling",1,Ce),vr=new x1([at],Be),rl=new x1([T2],Be),ol=new x1([tl],Be),wr=new x1([new a2(r2(pr),pr,nl)],Be),gr=new x1([new a2(r2(mr),mr,al)],Be),Cr=new x1([new a2(r2(wr),new yn([wr,new Z2(gr,{delay:4e3})]),gr)],Be),_n=new a2(r2(Cr),Cr,ol),Hn;return l.useTLS?Hn=new yn([vr,new Z2(_n,{delay:2e3})]):Hn=new yn([vr,new Z2(rl,{delay:2e3}),new Z2(_n,{delay:5e3})]),new a4(new l4(new a2(r2(at),Hn,_n)),w,{ttl:18e5,timeline:l.timeline,useTLS:l.useTLS})},s4=i4,c4=function(){var u=this;u.timeline.info(u.buildTimelineMessage({transport:u.name+(u.options.useTLS?"s":"")})),u.hooks.isInitialized()?u.changeState("initialized"):u.hooks.file?(u.changeState("initializing"),m.load(u.hooks.file,{useTLS:u.options.useTLS},function(l,c){u.hooks.isInitialized()?(u.changeState("initialized"),c(!0)):(l&&u.onError(l),u.onClose(),c(!1))})):u.onClose()},u4={getRequest:function(u){var l=new window.XDomainRequest;return l.ontimeout=function(){u.emit("error",new _),u.close()},l.onerror=function(c){u.emit("error",c),u.close()},l.onprogress=function(){l.responseText&&l.responseText.length>0&&u.onChunk(200,l.responseText)},l.onload=function(){l.responseText&&l.responseText.length>0&&u.onChunk(200,l.responseText),u.emit("finished",200),u.close()},l},abortRequest:function(u){u.ontimeout=u.onerror=u.onprogress=u.onload=null,u.abort()}},d4=u4;const h4=256*1024;class f4 extends we{constructor(l,c,w){super(),this.hooks=l,this.method=c,this.url=w}start(l){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Ae.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(l)}close(){this.unloader&&(Ae.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(l,c){for(;;){var w=this.advanceBuffer(c);if(w)this.emit("chunk",{status:l,data:w});else break}this.isBufferTooLong(c)&&this.emit("buffer_too_long")}advanceBuffer(l){var c=l.slice(this.position),w=c.indexOf(`
|
|
568
|
-
`);return w!==-1?(this.position+=w+1,c.slice(0,w)):null}isBufferTooLong(l){return this.position===l.length&&l.length>h4}}var Mn;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(Mn||(Mn={}));var _1=Mn,p4=1;class m4{constructor(l,c){this.hooks=l,this.session=dr(1e3)+"/"+C4(8),this.location=v4(c),this.readyState=_1.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,c){this.onClose(l,c,!0)}sendRaw(l){if(this.readyState===_1.OPEN)try{return Ae.createSocketRequest("POST",ur(w4(this.location,this.session))).start(l),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,c,w){this.closeStream(),this.readyState=_1.CLOSED,this.onclose&&this.onclose({code:l,reason:c,wasClean:w})}onChunk(l){if(l.status===200){this.readyState===_1.OPEN&&this.onActivity();var c,w=l.data.slice(0,1);switch(w){case"o":c=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(c);break;case"a":c=JSON.parse(l.data.slice(1)||"[]");for(var b=0;b<c.length;b++)this.onEvent(c[b]);break;case"m":c=JSON.parse(l.data.slice(1)||"null"),this.onEvent(c);break;case"h":this.hooks.onHeartbeat(this);break;case"c":c=JSON.parse(l.data.slice(1)||"[]"),this.onClose(c[0],c[1],!0);break}}}onOpen(l){this.readyState===_1.CONNECTING?(l&&l.hostname&&(this.location.base=g4(this.location.base,l.hostname)),this.readyState=_1.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===_1.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=Ae.createSocketRequest("POST",ur(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){j.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function v4(u){var l=/([^\?]*)\/*(\??.*)/.exec(u);return{base:l[1],queryString:l[2]}}function w4(u,l){return u.base+"/"+l+"/xhr_send"}function ur(u){var l=u.indexOf("?")===-1?"?":"&";return u+l+"t="+ +new Date+"&n="+p4++}function g4(u,l){var c=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(u);return c[1]+l+c[3]}function dr(u){return Ae.randomInt(u)}function C4(u){for(var l=[],c=0;c<u;c++)l.push(dr(32).toString(32));return l.join("")}var k4=m4,y4={getReceiveURL:function(u,l){return u.base+"/"+l+"/xhr_streaming"+u.queryString},onHeartbeat:function(u){u.sendRaw("[]")},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,l){u.onClose(1006,"Connection interrupted ("+l+")",!1)}},V4=y4,M4={getReceiveURL:function(u,l){return u.base+"/"+l+"/xhr"+u.queryString},onHeartbeat:function(){},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,l){l===200?u.reconnect():u.onClose(1006,"Connection interrupted ("+l+")",!1)}},b4=M4,x4={getRequest:function(u){var l=Ae.getXHRAPI(),c=new l;return c.onreadystatechange=c.onprogress=function(){switch(c.readyState){case 3:c.responseText&&c.responseText.length>0&&u.onChunk(c.status,c.responseText);break;case 4:c.responseText&&c.responseText.length>0&&u.onChunk(c.status,c.responseText),u.emit("finished",c.status),u.close();break}},c},abortRequest:function(u){u.onreadystatechange=null,u.abort()}},_4=x4,H4={createStreamingSocket(u){return this.createSocket(V4,u)},createPollingSocket(u){return this.createSocket(b4,u)},createSocket(u,l){return new k4(u,l)},createXHR(u,l){return this.createRequest(_4,u,l)},createRequest(u,l,c){return new f4(u,l,c)}},hr=H4;hr.createXDR=function(u,l){return this.createRequest(d4,u,l)};var B4=hr,E4={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:p,getDefaultStrategy:s4,Transports:Vt,transportConnectionInitializer:c4,HTTPFactory:B4,TimelineTransport:ct,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(u){window.Pusher=u;var l=()=>{this.onDocumentBody(u.ready)};window.JSON?l():m.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:z,jsonp:mt}},onDocumentBody(u){document.body?u():setTimeout(()=>{this.onDocumentBody(u)},0)},createJSONPRequest(u,l){return new je(u,l)},createScriptRequest(u){return new ge(u)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var u=this.getXHRAPI();return new u},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return ot},createWebSocket(u){var l=this.getWebSocketAPI();return new l(u)},createSocketRequest(u,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(u,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(u,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var u=this.getXHRAPI();return!!u&&new u().withCredentials!==void 0},isXDRSupported(u){var l=u?"https:":"http:",c=this.getProtocol();return!!window.XDomainRequest&&c===l},addUnloadListener(u){window.addEventListener!==void 0?window.addEventListener("unload",u,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",u)},removeUnloadListener(u){window.addEventListener!==void 0?window.removeEventListener("unload",u,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",u)},randomInt(u){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*u)}},Ae=E4,bn;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(bn||(bn={}));var P2=bn;class A4{constructor(l,c,w){this.key=l,this.session=c,this.events=[],this.options=w||{},this.sent=0,this.uniqueID=0}log(l,c){l<=this.options.level&&(this.events.push(U({},c,{timestamp:j.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(P2.ERROR,l)}info(l){this.log(P2.INFO,l)}debug(l){this.log(P2.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,c){var w=U({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=[],l(w,(b,q)=>{b||this.sent++,c&&c(b,q)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class S4{constructor(l,c,w,b){this.name=l,this.priority=c,this.transport=w,this.options=b||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,c){if(this.isSupported()){if(this.priority<l)return fr(new M,c)}else return fr(new A,c);var w=!1,b=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),q=null,ue=function(){b.unbind("initialized",ue),b.connect()},Ce=function(){q=Qt.createHandshake(b,function(at){w=!0,Ie(),c(null,at)})},Be=function(at){Ie(),c(at)},Te=function(){Ie();var at;at=P(b),c(new E(at))},Ie=function(){b.unbind("initialized",ue),b.unbind("open",Ce),b.unbind("error",Be),b.unbind("closed",Te)};return b.bind("initialized",ue),b.bind("open",Ce),b.bind("error",Be),b.bind("closed",Te),b.initialize(),{abort:()=>{w||(Ie(),q?q.close():b.close())},forceMinPriority:at=>{w||this.priority<at&&(q?q.close():b.close())}}}}function fr(u,l){return j.defer(function(){l(u)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:N4}=Ae;var L4=function(u,l,c,w,b,q){var ue=N4[c];if(!ue)throw new L(c);var Ce=(!u.enabledTransports||D(u.enabledTransports,l)!==-1)&&(!u.disabledTransports||D(u.disabledTransports,l)===-1),Be;return Ce?(b=Object.assign({ignoreNullOrigin:u.ignoreNullOrigin},b),Be=new S4(l,w,q?q.getAssistant(ue):ue,b)):Be=Z4,Be},Z4={isSupported:function(){return!1},connect:function(u,l){var c=j.defer(function(){l(new A)});return{abort:function(){c.ensureAborted()},forceMinPriority:function(){}}}};function P4(u){if(u==null)throw"You must pass an options object";if(u.cluster==null)throw"Options object must provide a cluster";"disableStats"in u&&ve.warn("The disableStats option is deprecated in favor of enableStats")}const T4=(u,l)=>{var c="socket_id="+encodeURIComponent(u.socketId);for(var w in l.params)c+="&"+encodeURIComponent(w)+"="+encodeURIComponent(l.params[w]);if(l.paramsProvider!=null){let b=l.paramsProvider();for(var w in b)c+="&"+encodeURIComponent(w)+"="+encodeURIComponent(b[w])}return c};var $4=u=>{if(typeof Ae.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(l,c)=>{const w=T4(l,u);Ae.getAuthorizers()[u.transport](Ae,w,u,x.UserAuthentication,c)}};const I4=(u,l)=>{var c="socket_id="+encodeURIComponent(u.socketId);c+="&channel_name="+encodeURIComponent(u.channelName);for(var w in l.params)c+="&"+encodeURIComponent(w)+"="+encodeURIComponent(l.params[w]);if(l.paramsProvider!=null){let b=l.paramsProvider();for(var w in b)c+="&"+encodeURIComponent(w)+"="+encodeURIComponent(b[w])}return c};var D4=u=>{if(typeof Ae.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(l,c)=>{const w=I4(l,u);Ae.getAuthorizers()[u.transport](Ae,w,u,x.ChannelAuthorization,c)}};const O4=(u,l,c)=>{const w={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(b,q)=>{const ue=u.channel(b.channelName);c(ue,w).authorize(b.socketId,q)}};function z4(u,l){let c={activityTimeout:u.activityTimeout||d.activityTimeout,cluster:u.cluster,httpPath:u.httpPath||d.httpPath,httpPort:u.httpPort||d.httpPort,httpsPort:u.httpsPort||d.httpsPort,pongTimeout:u.pongTimeout||d.pongTimeout,statsHost:u.statsHost||d.stats_host,unavailableTimeout:u.unavailableTimeout||d.unavailableTimeout,wsPath:u.wsPath||d.wsPath,wsPort:u.wsPort||d.wsPort,wssPort:u.wssPort||d.wssPort,enableStats:U4(u),httpHost:R4(u),useTLS:Y4(u),wsHost:j4(u),userAuthenticator:W4(u),channelAuthorizer:G4(u,l)};return"disabledTransports"in u&&(c.disabledTransports=u.disabledTransports),"enabledTransports"in u&&(c.enabledTransports=u.enabledTransports),"ignoreNullOrigin"in u&&(c.ignoreNullOrigin=u.ignoreNullOrigin),"timelineParams"in u&&(c.timelineParams=u.timelineParams),"nacl"in u&&(c.nacl=u.nacl),c}function R4(u){return u.httpHost?u.httpHost:u.cluster?`sockjs-${u.cluster}.pusher.com`:d.httpHost}function j4(u){return u.wsHost?u.wsHost:F4(u.cluster)}function F4(u){return`ws-${u}.pusher.com`}function Y4(u){return Ae.getProtocol()==="https:"?!0:u.forceTLS!==!1}function U4(u){return"enableStats"in u?u.enableStats:"disableStats"in u?!u.disableStats:!1}function W4(u){const l=Object.assign(Object.assign({},d.userAuthentication),u.userAuthentication);return"customHandler"in l&&l.customHandler!=null?l.customHandler:$4(l)}function q4(u,l){let c;return"channelAuthorization"in u?c=Object.assign(Object.assign({},d.channelAuthorization),u.channelAuthorization):(c={transport:u.authTransport||d.authTransport,endpoint:u.authEndpoint||d.authEndpoint},"auth"in u&&("params"in u.auth&&(c.params=u.auth.params),"headers"in u.auth&&(c.headers=u.auth.headers)),"authorizer"in u&&(c.customHandler=O4(l,c,u.authorizer))),c}function G4(u,l){const c=q4(u,l);return"customHandler"in c&&c.customHandler!=null?c.customHandler:D4(c)}class X4 extends we{constructor(l){super(function(c,w){ve.debug(`No callbacks on watchlist events for ${c}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(c=>{this.emit(c.name,c)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var c=l.event;c==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function Q4(){let u,l;return{promise:new Promise((w,b)=>{u=w,l=b}),resolve:u,reject:l}}var K4=Q4;class J4 extends we{constructor(l){super(function(c,w){ve.debug("No callbacks on user for "+c)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(c,w)=>{if(c){ve.warn(`Error during signin: ${c}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:w.auth,user_data:w.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:c,current:w})=>{c!=="connected"&&w==="connected"&&this._signin(),c==="connected"&&w!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new X4(l),this.pusher.connection.bind("message",c=>{var w=c.event;w==="pusher:signin_success"&&this._onSigninSuccess(c.data),this.serverToUserChannel&&this.serverToUserChannel.name===c.channel&&this.serverToUserChannel.handleEvent(c)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(l){try{this.user_data=JSON.parse(l.user_data)}catch{ve.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){ve.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=c=>{c.subscriptionPending&&c.subscriptionCancelled?c.reinstateSubscription():!c.subscriptionPending&&this.pusher.connection.state==="connected"&&c.subscribe()};this.serverToUserChannel=new gn(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((c,w)=>{c.indexOf("pusher_internal:")===0||c.indexOf("pusher:")===0||this.emit(c,w)}),l(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||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:l,resolve:c}=K4();l.done=!1;const w=()=>{l.done=!0};l.then(w).catch(w),this.signinDonePromise=l,this._signinDoneResolve=c}}class st{static ready(){st.isReady=!0;for(var l=0,c=st.instances.length;l<c;l++)st.instances[l].connect()}static getClientFeatures(){return Se(re({ws:Ae.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,c){el(l),P4(c),this.key=l,this.config=z4(c,this),this.channels=Qt.createChannels(),this.global_emitter=new we,this.sessionID=Ae.randomInt(1e9),this.timeline=new A4(this.key,this.sessionID,{cluster:this.config.cluster,features:st.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:P2.INFO,version:d.VERSION}),this.config.enableStats&&(this.timelineSender=Qt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Ae.TimelineTransport.name}));var w=b=>Ae.getDefaultStrategy(this.config,b,L4);this.connection=Qt.createConnectionManager(this.key,{getStrategy:w,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",b=>{var q=b.event,ue=q.indexOf("pusher_internal:")===0;if(b.channel){var Ce=this.channel(b.channel);Ce&&Ce.handleEvent(b)}ue||this.global_emitter.emit(b.event,b.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",b=>{ve.warn(b)}),st.instances.push(this),this.timeline.info({instances:st.instances.length}),this.user=new J4(this),st.isReady&&this.connect()}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),c=this.timelineSender;this.timelineSenderTimer=new B(6e4,function(){c.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,c,w){return this.global_emitter.bind(l,c,w),this}unbind(l,c,w){return this.global_emitter.unbind(l,c,w),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var c=this.channels.add(l,this);return c.subscriptionPending&&c.subscriptionCancelled?c.reinstateSubscription():!c.subscriptionPending&&this.connection.state==="connected"&&c.subscribe(),c}unsubscribe(l){var c=this.channels.find(l);c&&c.subscriptionPending?c.cancelSubscription():(c=this.channels.remove(l),c&&c.subscribed&&c.unsubscribe())}send_event(l,c,w){return this.connection.send_event(l,c,w)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}st.instances=[],st.isReady=!1,st.logToConsole=!1,st.Runtime=Ae,st.ScriptReceivers=Ae.ScriptReceivers,st.DependenciesReceivers=Ae.DependenciesReceivers,st.auth_callbacks=Ae.auth_callbacks;var xn=a.default=st;function el(u){if(u==null)throw"You must pass your app key when you instantiate Pusher."}Ae.setup(st)}])})}(Xn)),Xn.exports}bh();e.ref([]),e.ref([]);e.ref([]),e.ref([]),e.ref();const xh={width:"224",height:"377",viewBox:"0 0 224 377",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_h=["fill"],Hh=["fill"],Bh=["fill"],Eh=["fill"],Ah=["fill"],Sh=["fill"],Nh=["fill"],Lh=["fill"],Zh=["fill"],Ph=e.defineComponent({__name:"HeroGirlIcon",props:{primaryColor:{},secondaryColor:{}},setup(t){const n=t,{colors:r}=C2(),a=e.computed(()=>n.primaryColor??r.primaryColor.value),o=e.computed(()=>n.secondaryColor??r.primaryColorActive.value);return(i,s)=>(e.openBlock(),e.createElementBlock("svg",xh,[e.createElementVNode("path",{fill:o.value,d:`M68.8749 328.38C72.723 330.19 80.9125 335.257 83.6113 337.77C97.8265 324.35 108.84 309.191 108.84
|
|
568
|
+
`);return w!==-1?(this.position+=w+1,c.slice(0,w)):null}isBufferTooLong(l){return this.position===l.length&&l.length>h4}}var Mn;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(Mn||(Mn={}));var _1=Mn,p4=1;class m4{constructor(l,c){this.hooks=l,this.session=dr(1e3)+"/"+C4(8),this.location=v4(c),this.readyState=_1.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,c){this.onClose(l,c,!0)}sendRaw(l){if(this.readyState===_1.OPEN)try{return Ae.createSocketRequest("POST",ur(w4(this.location,this.session))).start(l),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,c,w){this.closeStream(),this.readyState=_1.CLOSED,this.onclose&&this.onclose({code:l,reason:c,wasClean:w})}onChunk(l){if(l.status===200){this.readyState===_1.OPEN&&this.onActivity();var c,w=l.data.slice(0,1);switch(w){case"o":c=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(c);break;case"a":c=JSON.parse(l.data.slice(1)||"[]");for(var b=0;b<c.length;b++)this.onEvent(c[b]);break;case"m":c=JSON.parse(l.data.slice(1)||"null"),this.onEvent(c);break;case"h":this.hooks.onHeartbeat(this);break;case"c":c=JSON.parse(l.data.slice(1)||"[]"),this.onClose(c[0],c[1],!0);break}}}onOpen(l){this.readyState===_1.CONNECTING?(l&&l.hostname&&(this.location.base=g4(this.location.base,l.hostname)),this.readyState=_1.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===_1.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=Ae.createSocketRequest("POST",ur(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){j.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function v4(u){var l=/([^\?]*)\/*(\??.*)/.exec(u);return{base:l[1],queryString:l[2]}}function w4(u,l){return u.base+"/"+l+"/xhr_send"}function ur(u){var l=u.indexOf("?")===-1?"?":"&";return u+l+"t="+ +new Date+"&n="+p4++}function g4(u,l){var c=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(u);return c[1]+l+c[3]}function dr(u){return Ae.randomInt(u)}function C4(u){for(var l=[],c=0;c<u;c++)l.push(dr(32).toString(32));return l.join("")}var k4=m4,y4={getReceiveURL:function(u,l){return u.base+"/"+l+"/xhr_streaming"+u.queryString},onHeartbeat:function(u){u.sendRaw("[]")},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,l){u.onClose(1006,"Connection interrupted ("+l+")",!1)}},V4=y4,M4={getReceiveURL:function(u,l){return u.base+"/"+l+"/xhr"+u.queryString},onHeartbeat:function(){},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,l){l===200?u.reconnect():u.onClose(1006,"Connection interrupted ("+l+")",!1)}},b4=M4,x4={getRequest:function(u){var l=Ae.getXHRAPI(),c=new l;return c.onreadystatechange=c.onprogress=function(){switch(c.readyState){case 3:c.responseText&&c.responseText.length>0&&u.onChunk(c.status,c.responseText);break;case 4:c.responseText&&c.responseText.length>0&&u.onChunk(c.status,c.responseText),u.emit("finished",c.status),u.close();break}},c},abortRequest:function(u){u.onreadystatechange=null,u.abort()}},_4=x4,H4={createStreamingSocket(u){return this.createSocket(V4,u)},createPollingSocket(u){return this.createSocket(b4,u)},createSocket(u,l){return new k4(u,l)},createXHR(u,l){return this.createRequest(_4,u,l)},createRequest(u,l,c){return new f4(u,l,c)}},hr=H4;hr.createXDR=function(u,l){return this.createRequest(d4,u,l)};var B4=hr,E4={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:p,getDefaultStrategy:s4,Transports:Vt,transportConnectionInitializer:c4,HTTPFactory:B4,TimelineTransport:ct,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(u){window.Pusher=u;var l=()=>{this.onDocumentBody(u.ready)};window.JSON?l():m.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:z,jsonp:mt}},onDocumentBody(u){document.body?u():setTimeout(()=>{this.onDocumentBody(u)},0)},createJSONPRequest(u,l){return new je(u,l)},createScriptRequest(u){return new ge(u)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var u=this.getXHRAPI();return new u},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return ot},createWebSocket(u){var l=this.getWebSocketAPI();return new l(u)},createSocketRequest(u,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(u,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(u,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var u=this.getXHRAPI();return!!u&&new u().withCredentials!==void 0},isXDRSupported(u){var l=u?"https:":"http:",c=this.getProtocol();return!!window.XDomainRequest&&c===l},addUnloadListener(u){window.addEventListener!==void 0?window.addEventListener("unload",u,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",u)},removeUnloadListener(u){window.addEventListener!==void 0?window.removeEventListener("unload",u,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",u)},randomInt(u){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*u)}},Ae=E4,bn;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(bn||(bn={}));var P2=bn;class A4{constructor(l,c,w){this.key=l,this.session=c,this.events=[],this.options=w||{},this.sent=0,this.uniqueID=0}log(l,c){l<=this.options.level&&(this.events.push(U({},c,{timestamp:j.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(P2.ERROR,l)}info(l){this.log(P2.INFO,l)}debug(l){this.log(P2.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,c){var w=U({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=[],l(w,(b,q)=>{b||this.sent++,c&&c(b,q)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class S4{constructor(l,c,w,b){this.name=l,this.priority=c,this.transport=w,this.options=b||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,c){if(this.isSupported()){if(this.priority<l)return fr(new M,c)}else return fr(new A,c);var w=!1,b=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),q=null,ue=function(){b.unbind("initialized",ue),b.connect()},Ce=function(){q=Qt.createHandshake(b,function(at){w=!0,Ie(),c(null,at)})},Be=function(at){Ie(),c(at)},Te=function(){Ie();var at;at=P(b),c(new E(at))},Ie=function(){b.unbind("initialized",ue),b.unbind("open",Ce),b.unbind("error",Be),b.unbind("closed",Te)};return b.bind("initialized",ue),b.bind("open",Ce),b.bind("error",Be),b.bind("closed",Te),b.initialize(),{abort:()=>{w||(Ie(),q?q.close():b.close())},forceMinPriority:at=>{w||this.priority<at&&(q?q.close():b.close())}}}}function fr(u,l){return j.defer(function(){l(u)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:N4}=Ae;var L4=function(u,l,c,w,b,q){var ue=N4[c];if(!ue)throw new L(c);var Ce=(!u.enabledTransports||D(u.enabledTransports,l)!==-1)&&(!u.disabledTransports||D(u.disabledTransports,l)===-1),Be;return Ce?(b=Object.assign({ignoreNullOrigin:u.ignoreNullOrigin},b),Be=new S4(l,w,q?q.getAssistant(ue):ue,b)):Be=Z4,Be},Z4={isSupported:function(){return!1},connect:function(u,l){var c=j.defer(function(){l(new A)});return{abort:function(){c.ensureAborted()},forceMinPriority:function(){}}}};function P4(u){if(u==null)throw"You must pass an options object";if(u.cluster==null)throw"Options object must provide a cluster";"disableStats"in u&&ve.warn("The disableStats option is deprecated in favor of enableStats")}const T4=(u,l)=>{var c="socket_id="+encodeURIComponent(u.socketId);for(var w in l.params)c+="&"+encodeURIComponent(w)+"="+encodeURIComponent(l.params[w]);if(l.paramsProvider!=null){let b=l.paramsProvider();for(var w in b)c+="&"+encodeURIComponent(w)+"="+encodeURIComponent(b[w])}return c};var $4=u=>{if(typeof Ae.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(l,c)=>{const w=T4(l,u);Ae.getAuthorizers()[u.transport](Ae,w,u,x.UserAuthentication,c)}};const I4=(u,l)=>{var c="socket_id="+encodeURIComponent(u.socketId);c+="&channel_name="+encodeURIComponent(u.channelName);for(var w in l.params)c+="&"+encodeURIComponent(w)+"="+encodeURIComponent(l.params[w]);if(l.paramsProvider!=null){let b=l.paramsProvider();for(var w in b)c+="&"+encodeURIComponent(w)+"="+encodeURIComponent(b[w])}return c};var D4=u=>{if(typeof Ae.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(l,c)=>{const w=I4(l,u);Ae.getAuthorizers()[u.transport](Ae,w,u,x.ChannelAuthorization,c)}};const O4=(u,l,c)=>{const w={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(b,q)=>{const ue=u.channel(b.channelName);c(ue,w).authorize(b.socketId,q)}};function z4(u,l){let c={activityTimeout:u.activityTimeout||d.activityTimeout,cluster:u.cluster,httpPath:u.httpPath||d.httpPath,httpPort:u.httpPort||d.httpPort,httpsPort:u.httpsPort||d.httpsPort,pongTimeout:u.pongTimeout||d.pongTimeout,statsHost:u.statsHost||d.stats_host,unavailableTimeout:u.unavailableTimeout||d.unavailableTimeout,wsPath:u.wsPath||d.wsPath,wsPort:u.wsPort||d.wsPort,wssPort:u.wssPort||d.wssPort,enableStats:U4(u),httpHost:R4(u),useTLS:Y4(u),wsHost:j4(u),userAuthenticator:W4(u),channelAuthorizer:G4(u,l)};return"disabledTransports"in u&&(c.disabledTransports=u.disabledTransports),"enabledTransports"in u&&(c.enabledTransports=u.enabledTransports),"ignoreNullOrigin"in u&&(c.ignoreNullOrigin=u.ignoreNullOrigin),"timelineParams"in u&&(c.timelineParams=u.timelineParams),"nacl"in u&&(c.nacl=u.nacl),c}function R4(u){return u.httpHost?u.httpHost:u.cluster?`sockjs-${u.cluster}.pusher.com`:d.httpHost}function j4(u){return u.wsHost?u.wsHost:F4(u.cluster)}function F4(u){return`ws-${u}.pusher.com`}function Y4(u){return Ae.getProtocol()==="https:"?!0:u.forceTLS!==!1}function U4(u){return"enableStats"in u?u.enableStats:"disableStats"in u?!u.disableStats:!1}function W4(u){const l=Object.assign(Object.assign({},d.userAuthentication),u.userAuthentication);return"customHandler"in l&&l.customHandler!=null?l.customHandler:$4(l)}function q4(u,l){let c;return"channelAuthorization"in u?c=Object.assign(Object.assign({},d.channelAuthorization),u.channelAuthorization):(c={transport:u.authTransport||d.authTransport,endpoint:u.authEndpoint||d.authEndpoint},"auth"in u&&("params"in u.auth&&(c.params=u.auth.params),"headers"in u.auth&&(c.headers=u.auth.headers)),"authorizer"in u&&(c.customHandler=O4(l,c,u.authorizer))),c}function G4(u,l){const c=q4(u,l);return"customHandler"in c&&c.customHandler!=null?c.customHandler:D4(c)}class X4 extends we{constructor(l){super(function(c,w){ve.debug(`No callbacks on watchlist events for ${c}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(c=>{this.emit(c.name,c)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var c=l.event;c==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function Q4(){let u,l;return{promise:new Promise((w,b)=>{u=w,l=b}),resolve:u,reject:l}}var K4=Q4;class J4 extends we{constructor(l){super(function(c,w){ve.debug("No callbacks on user for "+c)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(c,w)=>{if(c){ve.warn(`Error during signin: ${c}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:w.auth,user_data:w.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:c,current:w})=>{c!=="connected"&&w==="connected"&&this._signin(),c==="connected"&&w!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new X4(l),this.pusher.connection.bind("message",c=>{var w=c.event;w==="pusher:signin_success"&&this._onSigninSuccess(c.data),this.serverToUserChannel&&this.serverToUserChannel.name===c.channel&&this.serverToUserChannel.handleEvent(c)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(l){try{this.user_data=JSON.parse(l.user_data)}catch{ve.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){ve.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=c=>{c.subscriptionPending&&c.subscriptionCancelled?c.reinstateSubscription():!c.subscriptionPending&&this.pusher.connection.state==="connected"&&c.subscribe()};this.serverToUserChannel=new gn(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((c,w)=>{c.indexOf("pusher_internal:")===0||c.indexOf("pusher:")===0||this.emit(c,w)}),l(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||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:l,resolve:c}=K4();l.done=!1;const w=()=>{l.done=!0};l.then(w).catch(w),this.signinDonePromise=l,this._signinDoneResolve=c}}class st{static ready(){st.isReady=!0;for(var l=0,c=st.instances.length;l<c;l++)st.instances[l].connect()}static getClientFeatures(){return Se(re({ws:Ae.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,c){el(l),P4(c),this.key=l,this.config=z4(c,this),this.channels=Qt.createChannels(),this.global_emitter=new we,this.sessionID=Ae.randomInt(1e9),this.timeline=new A4(this.key,this.sessionID,{cluster:this.config.cluster,features:st.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:P2.INFO,version:d.VERSION}),this.config.enableStats&&(this.timelineSender=Qt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Ae.TimelineTransport.name}));var w=b=>Ae.getDefaultStrategy(this.config,b,L4);this.connection=Qt.createConnectionManager(this.key,{getStrategy:w,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",b=>{var q=b.event,ue=q.indexOf("pusher_internal:")===0;if(b.channel){var Ce=this.channel(b.channel);Ce&&Ce.handleEvent(b)}ue||this.global_emitter.emit(b.event,b.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",b=>{ve.warn(b)}),st.instances.push(this),this.timeline.info({instances:st.instances.length}),this.user=new J4(this),st.isReady&&this.connect()}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),c=this.timelineSender;this.timelineSenderTimer=new B(6e4,function(){c.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,c,w){return this.global_emitter.bind(l,c,w),this}unbind(l,c,w){return this.global_emitter.unbind(l,c,w),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var c=this.channels.add(l,this);return c.subscriptionPending&&c.subscriptionCancelled?c.reinstateSubscription():!c.subscriptionPending&&this.connection.state==="connected"&&c.subscribe(),c}unsubscribe(l){var c=this.channels.find(l);c&&c.subscriptionPending?c.cancelSubscription():(c=this.channels.remove(l),c&&c.subscribed&&c.unsubscribe())}send_event(l,c,w){return this.connection.send_event(l,c,w)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}st.instances=[],st.isReady=!1,st.logToConsole=!1,st.Runtime=Ae,st.ScriptReceivers=Ae.ScriptReceivers,st.DependenciesReceivers=Ae.DependenciesReceivers,st.auth_callbacks=Ae.auth_callbacks;var xn=a.default=st;function el(u){if(u==null)throw"You must pass your app key when you instantiate Pusher."}Ae.setup(st)}])})}(Xn)),Xn.exports}bh();e.ref([]),e.ref([]);e.ref([]),e.ref([]),e.ref(),e.shallowRef(void 0);const xh={width:"224",height:"377",viewBox:"0 0 224 377",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_h=["fill"],Hh=["fill"],Bh=["fill"],Eh=["fill"],Ah=["fill"],Sh=["fill"],Nh=["fill"],Lh=["fill"],Zh=["fill"],Ph=e.defineComponent({__name:"HeroGirlIcon",props:{primaryColor:{},secondaryColor:{}},setup(t){const n=t,{colors:r}=C2(),a=e.computed(()=>n.primaryColor??r.primaryColor.value),o=e.computed(()=>n.secondaryColor??r.primaryColorActive.value);return(i,s)=>(e.openBlock(),e.createElementBlock("svg",xh,[e.createElementVNode("path",{fill:o.value,d:`M68.8749 328.38C72.723 330.19 80.9125 335.257 83.6113 337.77C97.8265 324.35 108.84 309.191 108.84
|
|
569
569
|
309.191L111.739 177.741C103.755 218.297 89.5533 293.528 68.8749 328.38Z`},null,8,_h),s[0]||(s[0]=e.createElementVNode("path",{d:`M59.4618 340.771L70.0941 348.965C70.6665 348.565 71.2295 348.17 71.7832 347.756C68.661 346.076
|
|
570
570
|
63.3471 342.13 60.6669 339.58C60.2668 339.994 59.8713 340.394 59.4618 340.776V340.771Z`,fill:"white"},null,-1)),e.createElementVNode("path",{fill:o.value,d:`M60.6632 339.576C63.3434 342.13 68.6572 346.071 71.7794 347.751C72.8264 348.323 73.6221 348.635 73.9943
|
|
571
571
|
348.556C75.9393 348.123 84.622 340.795 84.4917 338.924C84.4731 338.673 84.152 338.277 83.6076 337.765C80.9088
|