UNPKG

@getontime/cli

Version:

Time keeping for live events

2 lines 37.8 kB
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`f14ad0099eab1969fdd065b56af5fdd3cf530de6`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d5ed7aec-275f-4348-9ea0-ab7b76665ced`,e._sentryDebugIdIdentifier=`sentry-dbid-d5ed7aec-275f-4348-9ea0-ab7b76665ced`)}catch{}})();import{a as e,n as t,r as n}from"./jsx-runtime-BNC90REB.js";import{An as r,Bn as i,Cn as a,Dn as o,E as s,En as c,F as l,H as u,Hn as d,Ln as f,Mn as p,Nn as ee,On as te,Pn as m,Rn as ne,S as re,Sn as ie,Tn as ae,Un as oe,Vn as h,_ as se,_n as ce,c as le,d as ue,h as de,jn as fe,kn as pe,l as me,m as he,p as ge,r as _e,s as ve,v as ye,wn as be,xn as xe,y as Se,zn as g}from"./constants-8b9Q9Bj6.js";var Ce=n((e=>{var n=t();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.7`})),we=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ce()})),Te=n((e=>{var n=t();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=n.useSyncExternalStore===void 0?f:n.useSyncExternalStore})),Ee=n(((e,t)=>{t.exports=Te()})),De=n((e=>{var n=t(),r=Ee();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=n.useRef,c=n.useEffect,l=n.useMemo,u=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Oe=n(((e,t)=>{t.exports=De()})),ke,_,v,y,b,Ae=(ke=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakSet,class extends a{constructor(e){super(),ie(this,b),d(this,ke,void 0),d(this,_,void 0),d(this,v,void 0),d(this,y,void 0),i(ke,this,e.client),this.mutationId=e.mutationId,i(v,this,e.mutationCache),i(_,this,[]),this.state=e.state||je(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){g(_,this).includes(e)||(g(_,this).push(e),this.clearGcTimeout(),g(v,this).notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){i(_,this,g(_,this).filter(t=>t!==e)),this.scheduleGc(),g(v,this).notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){g(_,this).length||(this.state.status===`pending`?this.scheduleGc():g(v,this).remove(this))}continue(){return g(y,this)?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{h(b,this,x).call(this,{type:`continue`})},n={client:g(ke,this),meta:this.options.meta,mutationKey:this.options.mutationKey};i(y,this,be({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{h(b,this,x).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{h(b,this,x).call(this,{type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>g(v,this).canRun(this)}));let r=this.state.status===`pending`,a=!g(y,this).canStart();try{if(r)t();else{h(b,this,x).call(this,{type:`pending`,variables:e,isPaused:a}),g(v,this).config.onMutate&&await g(v,this).config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&h(b,this,x).call(this,{type:`pending`,context:t,variables:e,isPaused:a})}let i=await g(y,this).start();return await g(v,this).config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await g(v,this).config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),h(b,this,x).call(this,{type:`success`,data:i}),i}catch(t){try{await g(v,this).config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await g(v,this).config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw h(b,this,x).call(this,{type:`error`,error:t}),t}finally{g(v,this).runNext(this)}}});function x(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),c.batch(()=>{g(_,this).forEach(t=>{t.onMutationUpdate(e)}),g(v,this).notify({mutation:this,type:`updated`,action:e})})}function je(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var S,C,w,Me=(S=new WeakMap,C=new WeakMap,w=new WeakMap,class extends oe{constructor(e={}){super(),d(this,S,void 0),d(this,C,void 0),d(this,w,void 0),this.config=e,i(S,this,new Set),i(C,this,new Map),i(w,this,0)}build(e,t,n){var r;let a=new Ae({client:e,mutationCache:this,mutationId:i(w,this,(r=g(w,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){g(S,this).add(e);let t=Ne(e);if(typeof t==`string`){let n=g(C,this).get(t);n?n.push(e):g(C,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(g(S,this).delete(e)){let t=Ne(e);if(typeof t==`string`){let n=g(C,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&g(C,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ne(e);if(typeof t==`string`){let n=g(C,this).get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Ne(e);return typeof t==`string`?(g(C,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){c.batch(()=>{g(S,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),g(S,this).clear(),g(C,this).clear()})}getAll(){return Array.from(g(S,this))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>r(t,e))}findAll(e={}){return this.getAll().filter(t=>r(e,t))}notify(e){c.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return c.batch(()=>Promise.all(e.map(e=>e.continue().catch(p))))}});function Ne(e){return e.options.scope?.id}var T,Pe=(T=new WeakMap,class extends oe{constructor(e={}){super(),d(this,T,void 0),this.config=e,i(T,this,new Map)}build(e,t,n){let r=t.queryKey,i=t.queryHash??pe(r,t),a=this.get(i);return a||(a=new xe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){g(T,this).has(e.queryHash)||(g(T,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=g(T,this).get(e.queryHash);t&&(e.destroy(),t===e&&g(T,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){c.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return g(T,this).get(e)}getAll(){return[...g(T,this).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>fe(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>fe(e,t)):t}notify(e){c.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){c.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){c.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),E,D,O,k,A,j,M,N,Fe=(E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakMap,j=new WeakMap,M=new WeakMap,N=new WeakMap,class{constructor(e={}){d(this,E,void 0),d(this,D,void 0),d(this,O,void 0),d(this,k,void 0),d(this,A,void 0),d(this,j,void 0),d(this,M,void 0),d(this,N,void 0),i(E,this,e.queryCache||new Pe),i(D,this,e.mutationCache||new Me),i(O,this,e.defaultOptions||{}),i(k,this,new Map),i(A,this,new Map),i(j,this,0)}mount(){var e;i(j,this,(e=g(j,this),e++,e)),g(j,this)===1&&(i(M,this,ne.subscribe(async e=>{e&&(await this.resumePausedMutations(),g(E,this).onFocus())})),i(N,this,ae.subscribe(async e=>{e&&(await this.resumePausedMutations(),g(E,this).onOnline())})))}unmount(){var e;i(j,this,(e=g(j,this),e--,e)),g(j,this)===0&&(g(M,this)?.call(this),i(M,this,void 0),g(N,this)?.call(this),i(N,this,void 0))}isFetching(e){return g(E,this).findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return g(D,this).findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return g(E,this).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=g(E,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(m(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return g(E,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=g(E,this).get(r.queryHash)?.state.data,a=o(t,i);if(a!==void 0)return g(E,this).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return c.batch(()=>g(E,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return g(E,this).get(t.queryHash)?.state}removeQueries(e){let t=g(E,this);c.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=g(E,this);return c.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=c.batch(()=>g(E,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(p).catch(p)}invalidateQueries(e,t={}){return c.batch(()=>(g(E,this).findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=c.batch(()=>g(E,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(p)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(p)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=g(E,this).build(this,t);return n.isStaleByTime(m(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(p).catch(p)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(p).catch(p)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ae.isOnline()?g(D,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return g(E,this)}getMutationCache(){return g(D,this)}getDefaultOptions(){return g(O,this)}setDefaultOptions(e){i(O,this,e)}setQueryDefaults(e,t){g(k,this).set(te(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...g(k,this).values()],n={};return t.forEach(t=>{ee(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){g(A,this).set(te(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...g(A,this).values()],n={};return t.forEach(t=>{ee(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...g(O,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pe(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===f&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...g(O,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){g(E,this).clear(),g(D,this).clear()}}),Ie=function(e){return e.LoadNext=`load-next`,e.None=`none`,e.PlayNext=`play-next`,e}({}),P=function(e){return e.Event=`event`,e.Delay=`delay`,e.Group=`group`,e.Milestone=`milestone`,e}({}),Le=function(e){return e.LockEnd=`lock-end`,e.LockDuration=`lock-duration`,e}({}),F=function(e){return e.CountDown=`count-down`,e.CountUp=`count-up`,e.Clock=`clock`,e.None=`none`,e}({}),Re=[`aux1-start`,`aux1-stop`,`aux1-pause`,`aux2-start`,`aux2-stop`,`aux2-pause`,`aux3-start`,`aux3-stop`,`aux3-pause`],ze=[`aux1-set`,`aux2-set`,`aux3-set`],Be=[`playback-start`,`playback-stop`,`playback-pause`,`playback-roll`];[...Re,...Be,...ze];var Ve=function(e){return e.Editor=`editor`,e.Cuesheet=`cuesheet`,e.Operator=`op`,e.Timer=`timer`,e.Backstage=`backstage`,e.Timeline=`timeline`,e.StudioClock=`studio`,e.Countdown=`countdown`,e.ProjectInfo=`info`,e.Teleprompter=`teleprompter`,e}({}),I=function(e){return e.Ping=`ping`,e.Pong=`pong`,e.ClientInit=`client-init`,e.ClientSet=`client-set`,e.ClientSetPath=`client-set-path`,e.ClientRename=`client-rename`,e.ClientRedirect=`client-redirect`,e.ClientList=`client-list`,e.Dialog=`dialog`,e.Log=`log`,e.RuntimeData=`runtime-data`,e.Refetch=`refetch`,e}({}),L=function(e){return e.All=`all`,e.CustomFields=`custom-fields`,e.ProjectData=`project-data`,e.ProjectRundowns=`project-rundowns`,e.Report=`report`,e.Rundown=`rundown`,e.UrlPresets=`url-presets`,e.ViewSettings=`view-settings`,e.CssOverride=`css-override`,e.Translation=`translation`,e.Settings=`settings`,e}({}),He=function(e){return e.Info=`INFO`,e.Warn=`WARN`,e.Error=`ERROR`,e.Severe=`SEVERE`,e}({}),Ue=function(e){return e.Client=`CLIENT`,e.Playback=`PLAYBACK`,e.Rx=`RX`,e.Server=`SERVER`,e.Tx=`TX`,e.User=`USER`,e}({}),We=function(e){return e.Roll=`roll`,e.Play=`play`,e.Pause=`pause`,e.Stop=`stop`,e.Armed=`armed`,e}({}),Ge=function(e){return e.onLoad=`onLoad`,e.onStart=`onStart`,e.onPause=`onPause`,e.onStop=`onStop`,e.onClock=`onClock`,e.onUpdate=`onUpdate`,e.onFinish=`onFinish`,e.onWarning=`onWarning`,e.onDanger=`onDanger`,e}({}),R=function(e){return e.Absolute=`absolute`,e.Relative=`relative`,e}({}),z=function(e){return e.Start=`start`,e.Pause=`pause`,e.Stop=`stop`,e}({}),Ke=function(e){return e.CountUp=`count-up`,e.CountDown=`count-down`,e}({}),qe=function(e){return e.None=`none`,e.Default=`default`,e.Warning=`warning`,e.Danger=`danger`,e.Overtime=`overtime`,e.Pending=`pending`,e}({}),Je={clock:0,timer:{addedTime:0,current:null,duration:null,elapsed:null,expectedFinish:null,phase:qe.None,playback:We.Stop,secondaryTimer:null,startedAt:null},message:{timer:{text:``,visible:!1,blink:!1,blackout:!1,secondarySource:null},secondary:``},rundown:{selectedEventIndex:null,numEvents:0,plannedStart:0,plannedEnd:0,actualStart:null,actualGroupStart:null,currentDay:null},offset:{absolute:0,relative:0,mode:R.Absolute,expectedFlagStart:null,expectedGroupEnd:null,expectedRundownEnd:null},groupNow:null,eventNow:null,eventNext:null,eventFlag:null,auxtimer1:{current:0,direction:Ke.CountUp,duration:0,playback:z.Stop},auxtimer2:{current:0,direction:Ke.CountUp,duration:0,playback:z.Stop},auxtimer3:{current:0,direction:Ke.CountUp,duration:0,playback:z.Stop},ping:1};function Ye(e){return e?.type===P.Event}function Xe(e){return!e.skip}function Ze(e){return e?.type===P.Delay}function Qe(e){return e?.type===P.Group}function $e(e){return e?.type===P.Milestone}function et(e,t){return e in t}function tt(e){return e.type===`osc`}function nt(e){return e.type===`http`}function rt(e){return e.type===`ontime`}var it={"common.expected_finish":`Expected Finish`,"common.minutes":`min`,"common.seconds":`sec`,"common.now":`Now`,"common.next":`Next`,"common.scheduled_start":`Scheduled start`,"common.scheduled_end":`Scheduled end`,"common.expected_start":`Expected start`,"common.expected_end":`Expected end`,"common.timer_message":`Timer message`,"common.secondary_message":`Secondary message`,"common.stage_timer":`Stage Timer`,"common.started_at":`Started At`,"common.time_now":`Time now`,"common.no_data":`No data`,"countdown.ended":`Event ended at`,"countdown.running":`Event running`,"countdown.group_running":`Event in group running`,"countdown.loaded":`Event loaded`,"countdown.select_event":`Select an event to follow`,"countdown.to_start":`Time to start`,"countdown.waiting":`Waiting for event start`,"countdown.overtime":`in overtime`,"countdown.all_have_finished":`All selected events have finished`,"timeline.live":`live`,"timeline.done":`done`,"timeline.due":`due`,"timeline.followedby":`Followed by`,"timeline.standby":`Standby`,"project.title":`Title`,"project.description":`Description`,"project.info":`Project Info`,"project.url":`Project URL`},at=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},ot=(e=>e?at(e):at),B=e(t(),1),st=e=>e;function ct(e,t=st){let n=B.useSyncExternalStore(e.subscribe,B.useCallback(()=>t(e.getState()),[e,t]),B.useCallback(()=>t(e.getInitialState()),[e,t]));return B.useDebugValue(n),n}var lt=e=>{let t=ot(e),n=e=>ct(t,e);return Object.assign(n,t),n},ut=(e=>e?lt(e):lt),V=1e3,H=1e3*60,U=1e3*60*60,W=864e5;W-V;function dt(e,t=F.CountDown){if(e===null)return 0;let n=0;return t===F.CountDown&&(n=Math.ceil(e/V)),t===F.CountUp&&(n=Math.floor(e/V)),n===0?0:n}function ft(e){return Math.floor(e/60)}function pt(e){return Math.floor(e/3600)}function mt(e){return e?Math.floor(e%H/V):0}var ht=e=>crypto.getRandomValues(new Uint8Array(e)),gt=(e,t,n)=>{let r=256-256%e.length;if(r===256){let r=e.length-1;return(i=t)=>{if(!i)return``;let a=``;for(;;){let t=n(i),o=i;for(;o--;)if(a+=e[t[o]&r],a.length>=i)return a}}}let i=Math.ceil(1.6*256*t/r);return(a=t)=>{if(!a)return``;let o=``;for(;;){let t=n(i),s=i;for(;s--;)if(t[s]<r&&(o+=e[t[s]%e.length],o.length>=a))return o}}},_t=((e,t=21)=>gt(e,t|0,ht))(`1234567890abcdef`,6),vt=()=>_t();function yt(e){return String(e).padStart(2,`0`)}function bt(e,t){if(e==null)return t?.fallback??`...`;let n=e<0,r=Math.abs(dt(e,t?.direction)),i=r%60,a=ft(r)%60,o=pt(r);return`${n?`-`:``}${[o,a,i].map(yt).join(`:`)}`}function xt(e){return e.startsWith(`00:0`)?e.slice(4):e.startsWith(`00:`)?e.slice(3):e.startsWith(`-00:0`)?`-${e.slice(5)}`:e.startsWith(`-00:`)?`-${e.slice(4)}`:e}function St(e){return e.endsWith(`:00`)?e.slice(0,-3):e}function Ct(e){return e.slice(0,-3)}function wt(e,t){if(e<0)return;let n=new Date(e),r=n.getUTCHours().toString().padStart(2,`0`),i=n.getUTCHours().toString(),a=n.getUTCMinutes().toString().padStart(2,`0`),o=n.getUTCMinutes().toString(),s=n.getUTCSeconds().toString().padStart(2,`0`),c=n.getUTCSeconds().toString(),l=n.getUTCMilliseconds().toString().padStart(3,`0`),u=(n.getUTCHours()%12||12).toString();return Tt(t,{HH:r,H:i,hh:u.padStart(2,`0`),h:u,mm:a,m:o,ss:s,s:c,S:l,a:n.getUTCHours()>=12?`PM`:`AM`})}function Tt(e,t){return Object.keys(t).reduce((e,n)=>{let r=RegExp(`\\b${n}\\b`,`g`);return e.replace(r,t[n])},e)}function Et(e,t){let{timeStart:n,dayOffset:r,delay:i}=e,{currentDay:a,totalGap:o,isLinkedToLoaded:s,offset:c,mode:l,actualStart:u,plannedStart:d}=t,f=r-a,p=Math.max(0,n+i)+f*W,ee=0;l===R.Relative&&(ee=(u??0)+a*W-(d??0));let te=p+ee,m=te+c;return s?m:o>c?te:m-o}function Dt(e,t,n){if(e.countToEnd){let r=e.dayOffset-n,i=e.timeStart+e.duration+r*W;return Math.max(t,i)}return t+e.duration}var Ot=[{url:`timer`,label:`Timer`},{url:`backstage`,label:`Backstage`},{url:`timeline`,label:`Timeline`},{url:`studio`,label:`Studio Clock`},{url:`countdown`,label:`Countdown`},{url:`teleprompter`,label:`Teleprompter`},{url:`info`,label:`Project Info`}],kt=`h:mm:ss a`,At=`HH:mm:ss`;function jt(e,t){let n=localStorage.getItem(e);return n?n===`true`:(localStorage.setItem(e,String(t)),t)}function Mt(e){return s?`${s}-${e}`:e}var Nt=Mt(`client-name`);function Pt(e){localStorage.setItem(Nt,e)}var G=ut(e=>({name:localStorage.getItem(Nt)??void 0,setName:t=>e(()=>(Pt(t),{name:t})),id:``,setId:t=>e({id:t}),redirect:``,setRedirect:t=>e({redirect:t}),clients:{},setClients:t=>e({clients:t})}));function Ft(){return G.getState().name}function It(e){G.getState().setName(e)}function Lt(e){G.getState().setId(e)}function Rt(){return G.getState().id}function zt(e){G.getState().setRedirect(e)}function Bt(e){return G.getState().setClients(e)}var Vt=n(((e,t)=>{var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}})),{useSyncExternalStoreWithSelector:Ht}=e(Oe(),1).default,Ut=e=>e;function Wt(e,t=Ut,n){let r=Ht(e.subscribe,e.getState,e.getInitialState,t,n);return B.useDebugValue(r),r}var Gt=(e,t)=>{let n=ot(e),r=(e,r=t)=>Wt(n,e,r);return Object.assign(r,n),r},Kt=((e,t)=>e?Gt(e,t):Gt),qt=e(Vt(),1),Jt=(e,t)=>(0,qt.default)(e,t),K=Kt(()=>({...Je}),Jt),Yt=e=>Wt(K,e,Jt);function Xt(e,t){let n=K.getState();n[e]=t,K.setState({...n})}function Zt(e){let t=K.getState();K.setState({...t,...e})}var q=new Fe({defaultOptions:{queries:{gcTime:10*H,networkMode:l?`online`:`always`,refetchOnWindowFocus:!1,retry:(e,t)=>ce.isCancel(t)?!1:e<5,retryDelay:e=>Math.min(1e3*2**e,5e3)},mutations:{networkMode:l?`online`:`always`,retry:0}}});function Qt(){let e=new Date,t=e.getHours()*U;return t+=e.getMinutes()*H,t+=e.getSeconds()*V,t+=e.getMilliseconds(),t}function $t(e){let t=e%W;return t<0?t+W:t}function en(){return new URL(document.location.href).searchParams.get(`timeformat`)}function tn(){return q.getQueryData(_e)?.timeFormat??`24`}function nn(e,t=kt,n=At){return e===`12`?t:n}function rn(e,t){return en()||(tn()===`12`?e:t)}var an=(e,t,n=rn)=>{if(e===null)return`...`;let r=t?.override??n(t?.format12??`h:mm:ss a`,t?.format24??`HH:mm:ss`),i=wt(Math.abs(e),r);return`${e<0?`-`:``}${i}`};function on(e,t=!0){if(e<=0)return`0m`;let n=Math.floor(e/U),r=Math.floor(e%U/H),i=``;if(n>0&&(i+=`${n}h`),r>0&&(i+=`${r}m`),!t){let t=e%H/V,n=Math.min(59,Math.ceil(t));n>0&&(i+=`${n}s`)}return i}function sn(e,t){let{offset:n,currentDay:r,mode:i,actualStart:a,plannedStart:o,clock:s}=qn();return e===null?0:Et({...e},{...t,currentDay:r,offset:n,mode:i,actualStart:a,plannedStart:o})-s}function cn(e,t){if(e===null)return{expectedStart:0,timeToStart:0,expectedEnd:0,plannedEnd:0};let n=Et({timeStart:e.timeStart,delay:e.delay,dayOffset:e.dayOffset},{totalGap:e.totalGap,isLinkedToLoaded:e.isLinkedToLoaded,...t}),r=Dt(e,n,t.currentDay),i=e.timeStart+e.duration+e.delay;return{expectedStart:n,timeToStart:n-t.clock,expectedEnd:r,plannedEnd:i}}var ln=ot(()=>({logs:[]})),un=()=>ct(ln),dn=e=>ln.setState(t=>({logs:[e,...t.logs]})),fn=()=>ln.setState({logs:[]});function pn(e){if(ce.isAxiosError(e)){let t=e.response?.statusText??``,n=e.response?.data??``;return typeof n==`object`&&(n=`message`in n?JSON.stringify(n.message):JSON.stringify(n)),`${t}: ${n}`}else if(e instanceof Error)return e.message;else return typeof e==`string`?e:JSON.stringify(e)}function mn(e){return e instanceof Error?e.message:typeof e==`string`?e:JSON.stringify(e)}function hn(e,t){let n=`${e}: ${pn(t)}`;dn({id:vt(),origin:`SERVER`,time:bt(Qt()),level:He.Error,text:n})}async function gn(){await q.invalidateQueries()}function _n(e,t){return new Blob([e],{type:t})}function vn(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.setAttribute(`href`,n),r.setAttribute(`download`,t),document.body.appendChild(r),r.click(),URL.revokeObjectURL(n)}var yn=ut(e=>({showDialog:null,clearDialog:()=>e({showDialog:null}),setDialog:t=>e({showDialog:t})}));function bn(e){yn.getState().setDialog(e)}var J=null,Y=null,X={reconnectBaseInterval:1e3,reconnectMaxInterval:3e4,reconnectMinInterval:500,reconnectJitter:.25,offlineAttemptsThreshold:2},xn=()=>Cn,Sn=()=>Z,Cn=!1,Z=0,wn=()=>{J=new WebSocket(u);let e=Ft();J.onopen=()=>{let t=Cn;Y&&(clearTimeout(Y),Y=null),Cn=!0,Z=0,Q(I.ClientSet,{type:`ontime`,origin:window.location.origin,path:window.location.pathname+window.location.search,name:e}),t&&gn(),En(!0)},J.onclose=()=>{console.warn(`WebSocket disconnected`),Y&&(clearTimeout(Y),Y=null);let e=Math.min(X.reconnectBaseInterval*2**Z,X.reconnectMaxInterval),t=e*X.reconnectJitter*(Math.random()*2-1),n=Math.max(X.reconnectMinInterval,Math.round(e+t));Y=setTimeout(()=>{Y=null,Z>X.offlineAttemptsThreshold&&En(!1),console.warn(`WebSocket: reconnecting now (#${Z+1}, waited ${n}ms)`),J&&J.readyState===WebSocket.CLOSED&&(Z+=1,wn())},n)},J.onerror=e=>{console.error(`WebSocket error:`,e)},J.onmessage=async t=>{try{let{tag:n,payload:r}=JSON.parse(t.data);if(!n)return;switch(n){case I.Pong:Xt(`ping`,(new Date().getTime()-new Date(r).getTime())*.5);break;case I.ClientInit:Lt(r.clientId),e||It(r.clientName);break;case I.ClientRename:{let e=Rt();r.target===e&&It(r.name);break}case I.ClientRedirect:{let e=Rt();r.target===e&&zt(r.path);break}case I.ClientList:Bt(r);break;case I.Dialog:r.dialog===`welcome`&&bn(`welcome`);break;case I.Log:dn(r);break;case I.RuntimeData:Zt(r);break;case I.Refetch:{let{target:e,revision:t,rundownId:n}=r;switch(e){case L.All:gn();break;case L.CustomFields:q.invalidateQueries({queryKey:me});break;case L.ProjectData:q.invalidateQueries({queryKey:ue});break;case L.Report:q.invalidateQueries({queryKey:he});break;case L.Rundown:Tn(t,n);break;case L.UrlPresets:q.invalidateQueries({queryKey:ye});break;case L.ViewSettings:q.invalidateQueries({queryKey:Se});break;case L.CssOverride:q.invalidateQueries({queryKey:ve});break;case L.Translation:q.invalidateQueries({queryKey:se});break;case L.Settings:q.invalidateQueries({queryKey:_e});break;case L.ProjectRundowns:q.invalidateQueries({queryKey:ge});break;default:break}break}default:break}}catch{}}};function Tn(e,t){if(!t){q.invalidateQueries({queryKey:de}),q.invalidateQueries({queryKey:le,exact:!0});return}let n=re(t);if(e===q.getQueryData(n)?.revision)return;q.invalidateQueries({queryKey:n,exact:!0});let r=q.getQueryData(ge)?.loaded;(!r||r===t)&&q.invalidateQueries({queryKey:le,exact:!0})}function Q(e,t){J&&J.readyState===WebSocket.OPEN&&J.send(JSON.stringify({tag:e,payload:t}))}function En(e){Xt(`ping`,e?1:-1)}var $=e=>()=>Yt(e),Dn={setIdentify:e=>Q(`client`,e),setRedirect:e=>{Q(`client`,e)},setClientName:e=>Q(`client`,e)},On=$(e=>({playback:e.timer.playback,selectedEventId:e.eventNow?.id??null,nextEventId:e.eventNext?.id??null})),kn=$(e=>({blackout:e.message.timer.blackout,blink:e.message.timer.blink,secondarySource:e.message.timer.secondarySource})),An=$(e=>({text:e.message.timer.text,visible:e.message.timer.visible})),jn=$(e=>({text:e.message.secondary,visible:e.message.timer.secondarySource===`secondary`})),Mn=$(e=>({blink:e.message.timer.blink,blackout:e.message.timer.blackout,phase:e.timer.phase,secondarySource:e.message.timer.secondarySource,showTimerMessage:e.message.timer.visible&&!!e.message.timer.text,timerType:e.eventNow?.timerType??null,countToEnd:e.eventNow?.countToEnd??!1})),Nn={timerText:e=>Q(`message`,{timer:{text:e}}),timerVisible:e=>Q(`message`,{timer:{visible:e}}),secondaryMessage:e=>Q(`message`,{secondary:e}),timerBlink:e=>Q(`message`,{timer:{blink:e}}),timerBlackout:e=>Q(`message`,{timer:{blackout:e}}),timerSecondarySource:e=>Q(`message`,{timer:{secondarySource:e}})},Pn=$(e=>({playback:e.timer.playback,selectedEventIndex:e.rundown.selectedEventIndex,numEvents:e.rundown.numEvents,timerPhase:e.timer.phase})),Fn={start:()=>Q(`start`,void 0),pause:()=>Q(`pause`,void 0),roll:()=>Q(`roll`,void 0),startNext:()=>Q(`start`,`next`),previous:()=>{Q(`load`,`previous`)},next:()=>{Q(`load`,`next`)},stop:()=>{Q(`stop`,void 0)},reload:()=>{Q(`reload`,void 0)},addTime:e=>{Q(`addtime`,e)}},In=$(e=>({aux1:e.auxtimer1.current,aux2:e.auxtimer2.current,aux3:e.auxtimer3.current})),Ln=e=>$(t=>e===1?t.auxtimer1.current:e===2?t.auxtimer2.current:t.auxtimer3.current)(),Rn=e=>$(t=>e===1?{playback:t.auxtimer1.playback,direction:t.auxtimer1.direction}:e===2?{playback:t.auxtimer2.playback,direction:t.auxtimer2.direction}:{playback:t.auxtimer3.playback,direction:t.auxtimer3.direction})(),zn={start:e=>Q(`auxtimer`,{[e]:z.Start}),pause:e=>Q(`auxtimer`,{[e]:z.Pause}),stop:e=>Q(`auxtimer`,{[e]:z.Stop}),setDirection:(e,t)=>Q(`auxtimer`,{[e]:{direction:t}}),setDuration:(e,t)=>Q(`auxtimer`,{[e]:{duration:t}})},Bn=$(e=>e.eventNow?.id??null),Vn=$(e=>e.groupNow?.id??null),Hn={loadEvent:e=>Q(`load`,{id:e}),startEvent:e=>Q(`start`,{id:e}),start:()=>Q(`start`,void 0),pause:()=>Q(`pause`,void 0)},Un=$(e=>({playback:e.timer.playback,phase:e.timer.phase,addedTime:e.timer.addedTime,secondaryTimer:e.timer.secondaryTimer,current:e.timer.current,expectedFinish:e.timer.expectedFinish,startedAt:e.timer.startedAt,isCountToEnd:e.eventNow?.countToEnd??!1})),Wn=$(e=>({...e.timer})),Gn=$(e=>({id:e.eventFlag?.id??null,expectedStart:e.offset.expectedFlagStart})),Kn=$(e=>({current:e.timer.current,duration:e.timer.duration,eventId:e.eventNow?.id??null,timeWarning:e.eventNow?.timeWarning??null,timeDanger:e.eventNow?.timeDanger??null})),qn=$(e=>({offset:e.offset.mode===R.Absolute?e.offset.absolute:e.offset.relative,mode:e.offset.mode,currentDay:e.rundown.currentDay??0,actualStart:e.rundown.actualStart,plannedStart:e.rundown.plannedStart,clock:e.clock})),Jn=$(e=>e.ping),Yn=$(e=>e.ping>0),Xn=$(e=>e.offset.mode),Zn=e=>Q(`offsetmode`,e),Qn=$(e=>e.timer.playback),$n=$(e=>({plannedStart:e.rundown.plannedStart,actualStart:e.rundown.actualStart,plannedEnd:e.rundown.plannedEnd})),er=$(e=>e.offset.expectedRundownEnd),tr=$(e=>({numEvents:e.rundown.numEvents,selectedEventIndex:e.rundown.selectedEventIndex})),nr=$(e=>({offset:e.offset.mode===R.Absolute?e.offset.absolute:e.offset.relative,playback:e.timer.playback})),rr=$(e=>({clock:e.clock,mode:e.offset.mode,groupExpectedEnd:e.offset.expectedGroupEnd,actualGroupStart:e.rundown.actualGroupStart,currentDay:e.rundown.currentDay??0,playback:e.timer.playback,phase:e.timer.phase})),ir=$(e=>({clock:e.clock,mode:e.offset.mode,actualStart:e.rundown.actualStart,plannedStart:e.rundown.plannedStart,currentDay:e.rundown.currentDay??0,playback:e.timer.playback,phase:e.timer.phase})),ar=$(e=>({eventNext:e.eventNext,eventNow:e.eventNow,message:e.message,time:e.timer,clock:e.clock,timerTypeNow:e.eventNow?.timerType??F.CountDown,countToEndNow:e.eventNow?.countToEnd??!1,auxTimer:{aux1:e.auxtimer1.current,aux2:e.auxtimer2.current,aux3:e.auxtimer3.current}})),or=$(e=>({playback:e.timer.playback,current:e.timer.current,clock:e.clock})),sr=$(e=>({eventNext:e.eventNext,eventNow:e.eventNow,rundown:e.rundown,selectedEventId:e.eventNow?.id??null,time:e.timer})),cr=$(e=>({clock:e.clock,playback:e.timer.playback})),lr=$(e=>({eventNext:e.eventNext,eventNow:e.eventNow,message:e.message,time:e.timer,offset:e.offset.mode===R.Absolute?e.offset.absolute:e.offset.relative,rundown:e.rundown,expectedRundownEnd:e.offset.expectedRundownEnd}));export{an as $,Ee as $t,$n as A,et as At,Sn as B,z as Bt,Qn as C,H as Ct,On as D,ut as Dt,tr as E,mt as Et,Un as F,Qe as Ft,vn as G,I as Gt,bn as H,Ge as Ht,ar as I,$e as It,pn as J,Le as Jt,gn as K,Ve as Kt,kn as L,Xe as Lt,lr as M,rt as Mt,Wn as N,Ze as Nt,er as O,it as Ot,An as P,Ye as Pt,on as Q,Oe as Qt,wn as R,qe as Rt,Jn as S,U as St,Kn as T,W as Tt,yn as U,We as Ut,Q as V,R as Vt,_n as W,Ue as Wt,fn as X,Ie as Xt,mn as Y,P as Yt,un as Z,je as Zt,Yn as _,bt as _t,Zn as a,q as at,Xn as b,St as bt,Ln as c,G as ct,or as d,kt as dt,we as en,nn as et,Vn as f,At as ft,rr as g,wt as gt,ir as h,Et as ht,Nn as i,sn as it,cr as j,tt as jt,Bn as k,nt as kt,In as l,jt as lt,jn as m,Dt as mt,Dn as n,tn as nt,Fn as o,K as ot,qn as p,Ot as pt,hn as q,F as qt,Hn as r,$t as rt,Rn as s,Yt as st,zn as t,cn as tt,sr as u,Mt as ut,Mn as v,xt as vt,Pn as w,V as wt,nr as x,vt as xt,Gn as y,Ct as yt,xn as z,Ke as zt}; //# sourceMappingURL=useSocket-B9-0Z7zf.js.map