1"use strict";(self.webpackChunkhost=self.webpackChunkhost||[]).push([[7429,2322,7285,5393,8865,1451,4147],{27429:(e,t,r)=>{r.r(t),r.d(t,{DEFAULT_EVENTS:()=>R,IdleTimerComponent:()=>v,IdleTimerConsumer:()=>j,IdleTimerContext:()=>_,IdleTimerProvider:()=>x,createMocks:()=>E,useIdleTimer:()=>N,useIdleTimerContext:()=>D,withIdleTimer:()=>p,workerTimers:()=>b});var n,s,i=r(77285),o=r(52322),a=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,h=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,m=(n=(e,t)=>{var n,s;n=e,s=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=536870912,s=2*n,i=new WeakMap,o=function(e,t){return function(i){var o=t.get(i),a=void 0===o?i.size:o<s?o+1:0;if(!i.has(a))return e(i,a);if(i.size<n){for(;i.has(a);)a=Math.floor(Math.random()*s);return e(i,a)}if(i.size>r)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;i.has(a);)a=Math.floor(Math.random()*r);return e(i,a)}}((t=i,function(e,r){return t.set(e,r),r}),i),a=function(e){return function(t){var r=e(t);return t.add(r),r}}(o);e.addUniqueNumber=a,e.generateUniqueNumber=o},"object"==typeof e&&typeof t<"u"?s(e):"function"==typeof define&&r.amdO?define(["exports"],s):s((n=typeof globalThis<"u"?globalThis:n||self).fastUniqueNumbers={})},()=>(s||n((s={exports:{}}).exports,s),s.exports));function p(e){return(0,i.forwardRef)((function(t,r){let n=N({...t});return"function"==typeof r?r(n):r&&(r.current=n),(0,o.jsx)(e,{...t,...n})}))}var f=class extends i.Component{},v=class extends f{constructor(e){super(e),this.onPresenceChange&&e.setOnPresenceChange(this.onPresenceChange.bind(this)),this.onPrompt&&e.setOnPrompt(this.onPrompt.bind(this)),this.onIdle&&e.setOnIdle(this.onIdle.bind(this)),this.onActive&&e.setOnActive(this.onActive.bind(this)),this.onAction&&e.setOnAction(this.onAction.bind(this)),this.onMessage&&e.setOnMessage(this.onMessage.bind(this))}},g=((e,t,r)=>(r=null!=e?a(h(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of l(t))!d.call(e,s)&&s!==r&&u(e,s,{get:()=>t[s],enumerable:!(n=c(t,s))||n.enumerable});return e})(!t&&e&&e.__esModule?r:u(r,"default",{value:e,enumerable:!0}),e)))(m()),w=((e,t)=>{let r=null;return()=>{if(null!==r)return r;let n=new Blob([t],{type:"application/javascript; charset=utf-8"}),s=URL.createObjectURL(n);return r=e(s),setTimeout((()=>URL.revokeObjectURL(s))),r}})((e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,s=new Worker(e);return s.addEventListener("message",(({data:e})=>{if((e=>void 0!==e.method&&"call"===e.method)(e)){let{params:{timerId:s,timerType:i}}=e;if("interval"===i){let e=t.get(s);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==s||t.timerType!==i)throw new Error("The timer is in an undefined state.")}else{if(!(typeof e<"u"))throw new Error("The timer is in an undefined state.");e()}}else if("timeout"===i){let e=r.get(s);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==s||t.timerType!==i)throw new Error("The timer is in an undefined state.")}else{if(!(typeof e<"u"))throw new Error("The timer is in an undefined state.");e(),r.delete(s)}}}else{if(!(e=>null===e.error&&"number"==typeof e.id)(e)){let{error:{message:t}}=e;throw new Error(t)}{let{id:s}=e,i=n.get(s);if(void 0===i)throw new Error("The timer is in an undefined state.");let{timerId:o,timerType:a}=i;n.delete(s),"interval"===a?t.delete(o):r.delete(o)}}})),{clearInterval:e=>{let r=(0,g.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),s.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,g.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),s.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,g.generateUniqueNumber)(t);return t.set(n,(()=>{e(),"function"==typeof t.get(n)&&s.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}
1)),s.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,g.generateUniqueNumber)(r);return r.set(n,e),s.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}}),'(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'),y="object"==(typeof window>"u"?"undefined":typeof window),T={setTimeout:y?setTimeout.bind(window):setTimeout,clearTimeout:y?clearTimeout.bind(window):clearTimeout,setInterval:y?setInterval.bind(window):setInterval,clearInterval:y?clearInterval.bind(window):clearInterval},b={setTimeout:(e,t)=>w().setTimeout(e,t),clearTimeout:e=>w().clearTimeout(e),setInterval:(e,t)=>w().setInterval(e,t),clearInterval:e=>w().clearInterval(e)};function E(){T.setTimeout=setTimeout,T.clearTimeout=clearTimeout,T.setInterval=setInterval,T.clearInterval=clearInterval,b.setTimeout=setTimeout,b.clearTimeout=clearTimeout,b.setInterval=setInterval,b.clearInterval=clearInterval}var I={},k=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,I[e]=I[e]||[],I[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),T.setTimeout((()=>{window.localStorage.removeItem(r)}),500),I[this.name].forEach((e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))}))}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=I[this.name].indexOf(this);I[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}};function M(){return Math.random().toString(36).substring(2)}var L=class{options;channel;token=M();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise((t=>T.setTimeout(t,e)))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise((r=>{let n=()=>
1{if(e)return;e=!0;try{T.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",s),r()};t=T.setInterval((()=>{this.apply().then((()=>{this.isLeader&&n()}))}),this.options.fallbackInterval),this.intervals.push(t);let s=e=>{let{action:t}=e.data;2===t&&this.apply().then((()=>{this.isLeader&&n()}))};this.channel.addEventListener("message",s)}))}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach((e=>this.channel.removeEventListener("message",e))),this.intervals.forEach((e=>T.clearInterval(e)))}catch{}}}},A=class{channel;options;elector;token=M();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;if(this.options=e,this.channel=new k(t),this.registry.set(this.token,1),e.leaderElection){let e={fallbackInterval:2e3,responseTime:100};this.elector=new L(this.channel,e),this.elector.waitForLeadership()}this.channel.addEventListener("message",(e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}})),this.send(3)}get isLeader(){if(!this.elector)throw new Error('\u274c Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every((e=>0===e));e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every((e=>2===e));e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some((e=>1===e));e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},O=y?document:null,R=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function C(e,t){let r=0;return function(...n){let s=(new Date).getTime();if(!(s-r<t))return r=s,e(...n)}}var S=()=>Date.now(),P=2147483647;function N({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:r=0,element:n=O,events:s=R,timers:o,immediateEvents:a=[],onPresenceChange:u=()=>{},onPrompt:c=()=>{},onIdle:l=()=>{},onActive:h=()=>{},onAction:d=()=>{},onMessage:m=()=>{},debounce:p=0,throttle:f=0,eventsThrottle:v=200,startOnMount:g=!0,startManually:w=!1,stopOnIdle:b=!1,crossTab:E=!1,name:I="idle-timer",syncTimers:k=0,leaderElection:M=!1,disabled:L=!1}={}){let N=(0,i.useRef)(S()),_=(0,i.useRef)(S()),x=(0,i.useRef)(null),j=(0,i.useRef)(null),D=(0,i.useRef)(0),U=(0,i.useRef)(0),B=(0,i.useRef)(0),$=(0,i.useRef)(0),q=(0,i.useRef)(!1),F=(0,i.useRef)(!1),J=(0,i.useRef)(!1),z=(0,i.useRef)(!0),V=(0,i.useRef)(!1),W=(0,i.useRef)(null),G=(0,i.useRef)(null),X=(0,i.useRef)(e),Y=(0,i.useRef)(0);(0,i.useEffect)((()=>
1{if(t&&console.warn("\u26a0\ufe0f IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&t)throw new Error("\u274c Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=P)throw new Error(`\u274c The value for the timeout property must fit in a 32 bit signed integer, ${P}.`);if(t>=P)throw new Error(`\u274c The value for the promptTimeout property must fit in a 32 bit signed integer, ${P}.`);if(r>=P)throw new Error(`\u274c The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${P}.`);if(r>=e)throw new Error(`\u274c The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?(X.current=e-r,Y.current=r):(X.current=e,Y.current=t),!z.current){if(w||L)return;q.current&&(se.current(null,Be),G.current&&G.current.active()),ye()}}),[e,t,r,w,L]);let H=(0,i.useRef)(b);(0,i.useEffect)((()=>{H.current=b}),[b]);let K=(0,i.useRef)(a),Q=(0,i.useRef)(n),Z=(0,i.useRef)([...new Set([...s,...a]).values()]),ee=(0,i.useRef)(L);(0,i.useEffect)((()=>{ee.current=L,!z.current&&(L?Ee():w||ye())}),[L]);let te=(0,i.useRef)(u);(0,i.useEffect)((()=>{te.current=u}),[u]);let re=(0,i.useRef)(c);(0,i.useEffect)((()=>{re.current=c}),[c]);let ne=(0,i.useRef)(l);(0,i.useEffect)((()=>{ne.current=l}),[l]);let se=(0,i.useRef)(h);(0,i.useEffect)((()=>{se.current=h}),[h]);let ie=(0,i.useRef)(d);(0,i.useEffect)((()=>{ie.current=d}),[d]);let oe=(0,i.useRef)(m);(0,i.useEffect)((()=>{oe.current=m}),[m]);let ae=(0,i.useMemo)((()=>{let e=(e,t)=>ie.current(e,t);return p>0?function(e,t){let r;function n(...n){r&&clearTimeout(r),r=setTimeout((()=>{e(...n),r=null}),t)}return n.cancel=function(){clearTimeout(r)},n}(e,p):f>0?C(e,f):e}),[f,p]),ue=(0,i.useRef)();(0,i.useEffect)((()=>{E&&k&&(ue.current=C((()=>{G.current.active()}),k))}),[E,k]);let ce=()=>{null!==W.current&&(T.clearTimeout(W.current),W.current=null)},le=(e,t=!0)=>{ce(),W.current=T.setTimeout(pe,e||X.current),t&&(j.current=S())},he=e=>{!F.current&&!q.current&&(re.current(e,Be),te.current({type:"active",prompted:!0},Be)),$.current=0,B.current=S(),F.current=!0,le(Y.current,!1)},de=()=>{ce(),q.current||(ne.current(null,Be),te.current({type:"idle"},Be)),q.current=!0,x.current=S(),H.current?we():F.current&&(B.current=0,F.current=!1)},me=e=>{ce(),(q.current||F.current)&&(se.current(e,Be),te.current({type:"active",prompted:!1},Be)),F.current=!1,B.current=0,q.current=!1,D.current+=S()-x.current,U.current+=S()-x.current,ge(),le()},pe=e=>{if(!q.current){ae.cancel&&ae.cancel();let t=S()-j.current;return X.current+Y.current<t||!(Y.current>0)||F.current?void(G.current?G.current.idle():de()):void(G.current?G.current.prompt():he(e))}G.current?G.current.active():me(e)},fe=e=>{if(!g&&!j.current&&(j.current=S(),se.current(null,Be)),ae(e,Be),F.current)return;if(ce(),!q.current&&K.current.includes(e.type))return void pe(e);let t=S()-j.current;q.current&&!b||!q.current&&t>=X.current?pe(e):(J.current=!1,$.current=0,B.current=0,le(),E&&k&&ue.current())},ve=(0,i.useRef)(fe);(0,i.useEffect)((()=>{let e=V.current;e&&we(),ve.current=v>0?C(fe,v):fe,e&&ge()}),[v,f,p,ie,E,k]);let ge=()=>{y&&Q.current&&(V.current||(Z.current.forEach((e=>{Q.current.addEventListener(e,ve.current,{capture:!0,passive:!0})})),V.current=!0))},we=(e=!1)=>{y&&Q.current&&(V.current||e)&&(Z.current.forEach((e=>{Q.current.removeEventListener(e,ve.current,{capture:!0})})),V.current=!1)},ye=(0,i.useCallback)((e=>!ee.current&&(ce(),ge(),q.current=!1,F.current=!1,J.current=!1,$.current=0,B.current=0,G.current&&!e&&G.current.start(),le(),!0)),[W,q,ee,X,G]),Te=(0,i.useCallback)((e=>!ee.current&&(ce(),ge(),_.current=S(),D.current+=S()-x.current,U.current+=S()-x.current,D.current=0,q.current=!1,F.current=!1,J.current=!1,$.current=0,B.current=0,G.current&&!e&&G.current.reset(),w||le(),!0)),[W,q,X,w,ee,G]),be=(0,i.useCallback)((e=>!ee.current&&(ce(),ge(),(q.current||F.current)&&me(),q.current=!1,F.current=!1,J.current=!1,$.current=0,B.current=0,_.current=S(),G.current&&!e&&G.current.activate(),le(),!0)),[W,q,F,ee,X,G]),Ee=(0,i.useCallback)(((e=!1)=>!ee.current&&!J.current&&($.current=Ce(),J.current=!0,we(),ce(),G.current&&!e&&G.current.pause(),!0)),[W,ee,G]),Ie=(0,i.useCallback)(((e=!1)=>!(ee.current||!J.current)&&(J.current=!1,F.current||ge(),q.current||le($.current),B.current&&(B.current=S()),G.current&&!e&&G.current.resume(),!0)),[W,X,ee,$,G]),ke=(0,i.useCallback)(((e,t)=>(G.current?(t&&oe.current(e,Be),G.current.message(e)):t&&oe.current(e,Be),!0)),[m]),Me=(0,i.useCallback)((()=>q.current),[q]),Le=(0,i.useCallback)((()=>F.current),[F]),Ae=(0,i.useCallback)((()=>G.current?G.current.isLeader:null),[G]),Oe=(0,i.useCallback)((()=>G.current?G.current.isLastActive:null),[G]),Re=(0,i.useCallback)((()=>G.current?G.current.token:null),[G]),Ce=(0,i.useCallback)((()=>
1{if(J.current)return $.current;let e=$.current?$.current:Y.current+X.current,t=j.current?S()-j.current:0,r=Math.floor(e-t);return r<0?0:Math.abs(r)}),[X,Y,F,$,j]),Se=(0,i.useCallback)((()=>Math.round(S()-_.current)),[_]),Pe=(0,i.useCallback)((()=>Math.round(S()-N.current)),[N]),Ne=(0,i.useCallback)((()=>x.current?new Date(x.current):null),[x]),_e=(0,i.useCallback)((()=>j.current?new Date(j.current):null),[j]),xe=(0,i.useCallback)((()=>q.current?Math.round(S()-x.current+D.current):Math.round(D.current)),[x,D]),je=(0,i.useCallback)((()=>q.current?Math.round(S()-x.current+U.current):Math.round(U.current)),[x,U]),De=(0,i.useCallback)((()=>{let e=Math.round(Se()-xe());return e>=0?e:0}),[x,D]),Ue=(0,i.useCallback)((()=>{let e=Math.round(Pe()-je());return e>=0?e:0}),[x,D]);(0,i.useEffect)((()=>{if(p>0&&f>0)throw new Error("\u274c onAction can either be throttled or debounced, not both.");o&&function(e){T.setTimeout=e.setTimeout,T.clearTimeout=e.clearTimeout,T.setInterval=e.setInterval,T.clearInterval=e.clearInterval}(o);let e=()=>{G.current&&G.current.close(),ae.cancel&&ae.cancel(),ce(),we(!0)};return y&&window.addEventListener("beforeunload",e),()=>{y&&window.removeEventListener("beforeunload",e),G.current&&G.current.close(),ae.cancel&&ae.cancel(),ce(),we(!0)}}),[]),(0,i.useEffect)((()=>{G.current&&G.current.close(),G.current=E?new A({channelName:I,leaderElection:M,onPrompt:()=>{he()},onIdle:()=>{de()},onActive:()=>{me()},onMessage:e=>{oe.current(e,Be)},start:ye,reset:Te,activate:be,pause:Ee,resume:Ie}):null}),[E,I,M,re,ne,se,oe,ye,Te,Ee,Ie]),(0,i.useEffect)((()=>{z.current||(ce(),we(!0)),!w&&!L&&(g?ye():ge())}),[w,g,L,z]),(0,i.useEffect)((()=>{if(!z.current){let e=[...new Set([...s,...a]).values()];if(we(),Z.current=e,Q.current=n,K.current=a,w||L)return;g?ye():ge()}}),[n,JSON.stringify(s),JSON.stringify(a),z,L,w,g]),(0,i.useEffect)((()=>{z.current&&(z.current=!1)}),[z]);let Be={message:ke,start:ye,reset:Te,activate:be,pause:Ee,resume:Ie,isIdle:Me,isPrompted:Le,isLeader:Ae,isLastActiveTab:Oe,getTabId:Re,getRemainingTime:Ce,getElapsedTime:Se,getTotalElapsedTime:Pe,getLastIdleTime:Ne,getLastActiveTime:_e,getIdleTime:xe,getTotalIdleTime:je,getActiveTime:De,getTotalActiveTime:Ue,setOnPresenceChange:e=>{u=e,te.current=e},setOnPrompt:e=>{c=e,re.current=e},setOnIdle:e=>{l=e,ne.current=e},setOnActive:e=>{h=e,se.current=e},setOnAction:e=>{d=e,ie.current=e},setOnMessage:e=>{m=e,oe.current=e}};return Be}var _=(0,i.createContext)(null);function x(e){let t=N(e);return(0,o.jsx)(_.Provider,{value:t,children:e.children})}var j=_.Consumer;function D(){return(0,i.useContext)(_)}},11837:(e,t,r)=>{var n=r(77285),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)o.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:s,type:e,key:c,ref:l,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},52322:(e,t,r)=>{e.exports=r(11837)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.