144 lines
572 KiB
JavaScript
144 lines
572 KiB
JavaScript
|
import{d3 as t,dM as e,dN as n,d4 as o,dO as s,dP as r,db as a,df as h,dQ as l,dR as d,_ as c,n as u,t as p,cW as m,b as f,a as g,x as v,cR as y,dS as b,dh as w,l as _,cV as x,dT as k,dU as S,dV as D,c$ as C,dW as T,dg as E,dX as O,da as M,d6 as P,d8 as I,cI as A,dn as N,dY as R,dZ as F,i as L,s as j,r as Y}from"./card-45855f1f.js";import{s as z,e as H}from"./startOfHour-5e3c525d.js";import{e as G}from"./endOfDay-24d35e3f.js";import"./date-picker-40111fdc.js";var W={exports:{}};!function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}W.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}();var B=e(W.exports);
|
||
|
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
||
|
* http://naver.github.io/egjs
|
||
|
*
|
||
|
* Forked By Naver egjs
|
||
|
* Copyright (c) hammerjs
|
||
|
* Licensed under the MIT license */
|
||
|
function V(){return V=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},V.apply(this,arguments)}function U(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function $(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var q,X="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign,Q=["","webkit","Moz","MS","ms","o"],Z="undefined"==typeof document?{style:{}}:document.createElement("div"),K=Math.round,J=Math.abs,tt=Date.now;function et(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),s=0;s<Q.length;){if((n=(i=Q[s])?i+o:e)in t)return n;s++}}q="undefined"==typeof window?{}:window;var it=et(Z.style,"touchAction"),nt=void 0!==it;var ot="compute",st="auto",rt="manipulation",at="none",ht="pan-x",lt="pan-y",dt=function(){if(!nt)return!1;var t={},e=q.CSS&&q.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||q.CSS.supports("touch-action",i)})),t}(),ct="ontouchstart"in q,ut=void 0!==et(q,"PointerEvent"),pt=ct&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),mt="touch",ft="mouse",gt=25,vt=1,yt=4,bt=8,wt=1,_t=2,xt=4,kt=8,St=16,Dt=_t|xt,Ct=kt|St,Tt=Dt|Ct,Et=["x","y"],Ot=["clientX","clientY"];function Mt(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function Pt(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function It(t,e){return t.indexOf(e)>-1}var At=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===ot&&(t=this.compute()),nt&&this.manager.element.style&&dt[t]&&(this.manager.element.style[it]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Mt(this.manager.recognizers,(function(e){Pt(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(It(t,at))return at;var e=It(t,ht),i=It(t,lt);return e&&i?at:e||i?e?ht:lt:It(t,rt)?rt:st}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=It(n,at)&&!dt[at],s=It(n,lt)&&!dt[lt],r=It(n,ht)&&!dt[ht];if(o){var a=1===t.pointers.length,h=t.distance<2,l=t.deltaTime<250;if(a&&h&&l)return}if(!r||!s)return o||s&&i&Dt||r&&i&Ct?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Nt(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Rt(t){var e=t.length;if(1===e)return{x:K(t[0].clientX),y:K(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:K(i/e),y:K(n/e)}}function Ft(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:K(t.pointers[i].clientX),clientY:K(t.pointers[i].clientY)},i++;return{timeStamp:tt(),pointers:e,center:Rt(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Lt(t,e,i){i||(i=Et);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function jt(t,e,i){i||(i=Et);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function Yt(t,e){return t===e?wt:J(t)>=J(e)?t<0?_t:xt:e<0?kt:St}function zt(t,e,i){return{x:e/t||0,y:i/t||0}}function Ht(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Ft(e)),o>1&&!i.firstMultiple?i.firstMultiple=Ft(e):1===o&&(i.firstMultiple=!1);var s=i.firstInput,r=i.firstMultiple,a=r?r.center:s.center,h=e.center=Rt(n);e.timeStamp=tt(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=jt(a,h),e.distance=Lt(a,h),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},s=t.prevInput||{};e.eventType!==vt&&s.eventTy
|
||
|
/**
|
||
|
* vis-util
|
||
|
* https://github.com/visjs/vis-util
|
||
|
*
|
||
|
* utilitie collection for visjs
|
||
|
*
|
||
|
* @version 5.0.7
|
||
|
* @date 2023-11-20T09:06:51.067Z
|
||
|
*
|
||
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
||
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
||
|
*
|
||
|
* @license
|
||
|
* vis.js is dual licensed under both
|
||
|
*
|
||
|
* 1. The Apache 2.0 License
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* and
|
||
|
*
|
||
|
* 2. The MIT License
|
||
|
* http://opensource.org/licenses/MIT
|
||
|
*
|
||
|
* vis.js may be distributed under either license.
|
||
|
*/const ze=Symbol("DELETE");function He(t,...e){return Ge({},t,...e)}function Ge(...t){const e=We(...t);return Ve(e),e}function We(...t){if(t.length<2)return t[0];if(t.length>2)return We(Ge(t[0],t[1]),...t.slice(2));const e=t[0],i=t[1];if(e instanceof Date&&i instanceof Date)return e.setTime(i.getTime()),e;for(const t of Reflect.ownKeys(i))Object.prototype.propertyIsEnumerable.call(i,t)&&(i[t]===ze?delete e[t]:null===e[t]||null===i[t]||"object"!=typeof e[t]||"object"!=typeof i[t]||Array.isArray(e[t])||Array.isArray(i[t])?e[t]=Be(i[t]):e[t]=We(e[t],i[t]));return e}function Be(t){return Array.isArray(t)?t.map((t=>Be(t))):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):We({},t):t}function Ve(t){for(const e of Object.keys(t))t[e]===ze?delete t[e]:"object"==typeof t[e]&&null!==t[e]&&Ve(t[e])}const Ue="undefined"!=typeof window?window.Hammer||Ye:function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function $e(t){this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)}));const e=Ue(this._dom.overlay);e.on("tap",this._onTapOverlay.bind(this)),this._cleanupQueue.push((()=>{e.destroy()}));["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach((t=>{e.on(t,(t=>{t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=e=>{(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((()=>{document.body.removeEventListener("click",this._onClick)}))),this._escListener=t=>{("key"in t?"Escape"===t.key:27===t.keyCode)&&this.deactivate()}}B($e.prototype),$e.current=null,$e.prototype.destroy=function(){this.deactivate();for(const t of this._cleanupQueue.splice(0).reverse())t()},$e.prototype.activate=function(){$e.current&&$e.current.deactivate(),$e.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},$e.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},$e.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};const qe=/^\/?Date\((-?\d+)/i,Xe=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Qe=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Ze=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Ke=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Je(t){return t instanceof Number||"number"==typeof t}function ti(t){return t instanceof String||"string"==typeof t}function ei(t){return"object"==typeof t&&null!==t}function ii(t,e,i,n){let o=!1;!0===n&&(o=null===e[i]&&void 0!==t[i]),o?delete t[i]:t[i]=e[i]}const ni=Object.assign;function oi(t,e,i=!1,n=!1){for(const o in e)(Object.prototype.hasOwnProperty.call(e,o)||!0===i)&&("object"==typeof e[o]&&null!==e[o]&&Object.getPrototypeOf(e[o])===Object.prototype?void 0===t[o]?t[o]=oi({},e[o],i):"object"==typeof t[o]&&null!==t[o]&&Object.getPrototypeOf(t[o])===Object.prototype?oi(t[o],e[o],i):ii(t,e,o,n):Array.isArray(e[o])?t[o]=e[o].slice():ii(t,e,o,n));return t}function si(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Array.isArray(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function ri(t,e){return[...t,e]}function ai(t){return t.slice()}const hi=Object
|
||
|
/**
|
||
|
* vis-data
|
||
|
* http://visjs.org/
|
||
|
*
|
||
|
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
||
|
*
|
||
|
* @version 7.1.9
|
||
|
* @date 2023-11-24T17:53:34.179Z
|
||
|
*
|
||
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
||
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
||
|
*
|
||
|
* @license
|
||
|
* vis.js is dual licensed under both
|
||
|
*
|
||
|
* 1. The Apache 2.0 License
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* and
|
||
|
*
|
||
|
* 2. The MIT License
|
||
|
* http://opensource.org/licenses/MIT
|
||
|
*
|
||
|
* vis.js may be distributed under either license.
|
||
|
*/class Bi{_source;_transformers;_target;_listeners={add:this._add.bind(this),remove:this._remove.bind(this),update:this._update.bind(this)};constructor(t,e,i){this._source=t,this._transformers=e,this._target=i}all(){return this._target.update(this._transformItems(this._source.get())),this}start(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}stop(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}_transformItems(t){return this._transformers.reduce(((t,e)=>e(t)),t)}_add(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}_update(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}_remove(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}class Vi{_source;_transformers=[];constructor(t){this._source=t}filter(t){return this._transformers.push((e=>e.filter(t))),this}map(t){return this._transformers.push((e=>e.map(t))),this}flatMap(t){return this._transformers.push((e=>e.flatMap(t))),this}to(t){return new Bi(this._source,this._transformers,t)}}function Ui(t){return"string"==typeof t||"number"==typeof t}class $i{delay;max;_queue=[];_timeout=null;_extended=null;constructor(t){this.delay=null,this.max=1/0,this.setOptions(t)}setOptions(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}static extend(t,e){const i=new $i(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=()=>{i.flush()};const n=[{name:"flush",original:void 0}];if(e&&e.replace)for(let o=0;o<e.replace.length;o++){const s=e.replace[o];n.push({name:s,original:t[s]}),i.replace(t,s)}return i._extended={object:t,methods:n},i}destroy(){if(this.flush(),this._extended){const t=this._extended.object,e=this._extended.methods;for(let i=0;i<e.length;i++){const n=e[i];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}replace(t,e){const i=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(...t){i.queue({args:t,fn:n,context:this})}}queue(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}_flushIfNeeded(){this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=setTimeout((()=>{this.flush()}),this.delay))}flush(){this._queue.splice(0).forEach((t=>{t.fn.apply(t.context||t.fn,t.args||[])}))}}class qi{_subscribers={"*":[],add:[],remove:[],update:[]};_trigger(t,e,i){if("*"===t)throw new Error("Cannot trigger event *");[...this._subscribers[t],...this._subscribers["*"]].forEach((n=>{n(t,e,null!=i?i:null)}))}on(t,e){"function"==typeof e&&this._subscribers[t].push(e)}off(t,e){this._subscribers[t]=this._subscribers[t].filter((t=>t!==e))}subscribe=qi.prototype.on;unsubscribe=qi.prototype.off}class Xi{_pairs;constructor(t){this._pairs=t}*[Symbol.iterator](){for(const[t,e]of this._pairs)yield[t,e]}*entries(){for(const[t,e]of this._pairs)yield[t,e]}*keys(){for(const[t]of this._pairs)yield t}*values(){for(const[,t]of this._pairs)yield t}toIdArray(){return[...this._pairs].map((t=>t[0]))}toItemArray(){return[...this._pairs].map((t=>t[1]))}toEntryArray(){return[...this._pairs]}toObjectMap(){const t=Object.create(null);for(const[e,i]of this._pairs)t[e]=i;return t}toMap(){return new Map(this._pairs)}toIdSet(){return new Set(this.toIdArray())}toItemSet(){return new Set(this.toItemArray())}cache(){return new Xi([...this._pairs])}distinct(t){const e=new Set;for(const[i,n]of this._pairs)e.add(t(n,i));return e}filter(t){const e=this._pairs;return new Xi({*[Symbol.iterator](){for(const[i,n]of e)t(n,i)&&(yield[i,n])}})}forEach(t){for(const[e,i]of this._pairs)t(i,e)}map(t){const e=this._pairs;return new Xi({*[Symbol.iterator](){for(const[i,n]of e)yield[i,t(n,i)]}})}max(t){const e=this._pairs[Symbol.iterator]();let i=e.next();if(i
|
||
|
//! moment.js
|
||
|
i.version="2.30.1",n($i),i.fn=ds,i.min=Zi,i.max=tn,i.now=en,i.utc=p,i.unix=cs,i.months=ys,i.isDate=d,i.locale=pi,i.invalid=v,i.duration=On,i.isMoment=x,i.weekdays=ws,i.parseZone=us,i.localeData=gi,i.isDuration=hn,i.monthsShort=bs,i.weekdaysMin=xs,i.defineLocale=mi,i.updateLocale=fi,i.locales=vi,i.weekdaysShort=_s,i.normalizeUnits=et,i.relativeTimeRounding=sr,i.relativeTimeThreshold=rr,i.calendarFormat=Gn,i.prototype=ds,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}();var en=e(tn.exports),nn={exports:{}},on={},sn={exports:{}},rn={};function an(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-g
|
||
|
/**
|
||
|
* vis-timeline and vis-graph2d
|
||
|
* https://visjs.github.io/vis-timeline/
|
||
|
*
|
||
|
* Create a fully customizable, interactive timeline with items and ranges.
|
||
|
*
|
||
|
* @version 7.7.3
|
||
|
* @date 2023-10-27T17:57:57.604Z
|
||
|
*
|
||
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
||
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
||
|
*
|
||
|
* @license
|
||
|
* vis.js is dual licensed under both
|
||
|
*
|
||
|
* 1. The Apache 2.0 License
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* and
|
||
|
*
|
||
|
* 2. The MIT License
|
||
|
* http://opensource.org/licenses/MIT
|
||
|
*
|
||
|
* vis.js may be distributed under either license.
|
||
|
*/
|
||
|
function ao(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ho=ao("undefined"!=typeof window&&window.moment||en);function lo(t){if(!t)return!1;let e=t.idProp??t._idProp;return!!e&&function(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof e.forEach&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof e.map&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&function(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof e.forEach&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof e.map&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}(t,e.getDataSet())}(e,t)}const co=/^\/?Date\((-?\d+)/i,uo=/^\d+$/;function po(t,e){let i;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return ti(t)&&!isNaN(Date.parse(t))?en(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":try{return po(t,"Moment").toDate()}catch(i){throw i instanceof TypeError?new TypeError("Cannot convert object of type "+si(t)+" to type "+e):i}case"Moment":if(Je(t))return en(t);if(t instanceof Date)return en(t.valueOf());if(en.isMoment(t))return en(t);if(ti(t))return i=co.exec(t),i?en(Number(i[1])):(i=uo.exec(t),en(i?Number(t):t));throw new TypeError("Cannot convert object of type "+si(t)+" to type "+e);case"ISODate":if(Je(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(en.isMoment(t))return t.toDate().toISOString();if(ti(t))return i=co.exec(t),i?new Date(Number(i[1])).toISOString():en(t).format();throw new Error("Cannot convert object of type "+si(t)+" to type ISODate");case"ASPDate":if(Je(t))return"/Date("+t+")/";if(t instanceof Date||en.isMoment(t))return"/Date("+t.valueOf()+")/";if(ti(t)){let e;return i=co.exec(t),e=i?new Date(Number(i[1])).valueOf():new Date(t).valueOf(),"/Date("+e+")/"}throw new Error("Cannot convert object of type "+si(t)+" to type ASPDate");default:throw new Error(`Unknown type ${e}`)}}}function mo(t,e={start:"Date",end:"Date"}){const i=t._idProp,n=new Qi({fieldId:i}),o=(s=t,new Vi(s)).map((t=>Object.keys(t).reduce(((i,n)=>(i[n]=po(t[n],e[n]),i)),{}))).to(n);var s;return o.all().start(),{add:(...e)=>t.getDataSet().add(...e),remove:(...e)=>t.getDataSet().remove(...e),update:(...e)=>t.getDataSet().update(...e),updateOnly:(...e)=>t.getDataSet().updateOnly(...e),clear:(...e)=>t.getDataSet().clear(...e),forEach:n.forEach.bind(n),get:n.get.bind(n),getIds:n.getIds.bind(n),off:n.off.bind(n),on:n.on.bind(n),get length(){return n.length},idProp:i,type:e,rawDS:t,coercedDS:n,dispose:()=>o.stop()}}const fo=t=>{const e=new so.FilterXSS(t);return t=>e.process(t)},go=t=>t;let vo=fo();const yo={...Fi,convert:po,setupXSSProtection:t=>{t&&(!0===t.disabled?(vo=go,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(vo=fo(t.filterOptions)))}};Object.defineProperty(yo,"xss",{get:function(){return vo}});class bo{constructor(t,e){this.options=null,this.props=null}setOptions(t){t&&yo.extend(this.options,t)}redraw(){return!1}destroy(){}_isResized(){const t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}function wo(t,e,i){if(i&&!Array.isArray(i))return wo(t,e,[i]);if(e.hiddenDates=[],i&&1==Array.isArray(i)){for(let n=0;n<i.length;n++)if(void 0===i[n].repeat){const o={};
|
||
|
/**
|
||
|
* vis-data
|
||
|
* http://visjs.org/
|
||
|
*
|
||
|
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
||
|
*
|
||
|
* @version 7.1.9
|
||
|
* @date 2023-11-24T17:53:34.179Z
|
||
|
*
|
||
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
||
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
||
|
*
|
||
|
* @license
|
||
|
* vis.js is dual licensed under both
|
||
|
*
|
||
|
* 1. The Apache 2.0 License
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* and
|
||
|
*
|
||
|
* 2. The MIT License
|
||
|
* http://opensource.org/licenses/MIT
|
||
|
*
|
||
|
* vis.js may be distributed under either license.
|
||
|
*/!function(t){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var s={exports:{}},r=function(t){return t&&t.Math===Math&&t},a=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},l=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=l,c=Function.prototype,u=c.apply,p=c.call,m="object"==typeof Reflect&&Reflect.apply||(d?p.bind(u):function(){return p.apply(u,arguments)}),f=l,g=Function.prototype,v=g.call,y=f&&g.bind.bind(v,v),b=f?y:function(t){return function(){return v.apply(t,arguments)}},w=b,_=w({}.toString),x=w("".slice),k=function(t){return x(_(t),8,-1)},S=k,D=b,C=function(t){if("Function"===S(t))return D(t)},T="object"==typeof document&&document.all,E={all:T,IS_HTMLDDA:void 0===T&&void 0!==T},O=E.all,M=E.IS_HTMLDDA?function(t){return"function"==typeof t||t===O}:function(t){return"function"==typeof t},P={},I=!h((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=l,N=Function.prototype.call,R=A?N.bind(N):function(){return N.apply(N,arguments)},F={},L={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,Y=j&&!L.call({1:2},1);F.f=Y?function(t){var e=j(this,t);return!!e&&e.enumerable}:L;var z,H,G=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},W=h,B=k,V=Object,U=b("".split),$=W((function(){return!V("z").propertyIsEnumerable(0)}))?function(t){return"String"===B(t)?U(t,""):V(t)}:V,q=function(t){return null==t},X=q,Q=TypeError,Z=function(t){if(X(t))throw new Q("Can't call method on "+t);return t},K=$,J=Z,tt=function(t){return K(J(t))},et=M,it=E.all,nt=E.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:et(t)||t===it}:function(t){return"object"==typeof t?null!==t:et(t)},ot={},st=ot,rt=a,at=M,ht=function(t){return at(t)?t:void 0},lt=function(t,e){return arguments.length<2?ht(st[t])||ht(rt[t]):st[t]&&st[t][e]||rt[t]&&rt[t][e]},dt=b({}.isPrototypeOf),ct="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ut=a,pt=ct,mt=ut.process,ft=ut.Deno,gt=mt&&mt.versions||ft&&ft.version,vt=gt&>.v8;vt&&(H=(z=vt.split("."))[0]>0&&z[0]<4?1:+(z[0]+z[1])),!H&&pt&&(!(z=pt.match(/Edge\/(\d+)/))||z[1]>=74)&&(z=pt.match(/Chrome\/(\d+)/))&&(H=+z[1]);var yt=H,bt=yt,wt=h,_t=a.String,xt=!!Object.getOwnPropertySymbols&&!wt((function(){var t=Symbol("symbol detection");return!_t(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&bt&&bt<41})),kt=xt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=lt,Dt=M,Ct=dt,Tt=Object,Et=kt?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return Dt(e)&&Ct(e.prototype,Tt(t))},Ot=String,Mt=function(t){try{return Ot(t)}catch(t){return"Object"}},Pt=M,It=Mt,At=TypeError,Nt=function(t){if(Pt(t))return t;throw new At(It(t)+" is not a function")},Rt=Nt,Ft=q,Lt=function(t,e){var i=t[e];return Ft(i)?void 0:Rt(i)},jt=R,Yt=M,zt=nt,Ht=TypeError,Gt={exports:{}},Wt=a,Bt=Object.defineProperty,Vt=function(t,e){try{Bt(Wt,t,{value:e,configurable:!0,writable:!0})}catch(i){Wt[t]=e}return e},Ut="__core-js_shared__",$t=a[Ut]||Vt(Ut,{}),qt=$t;(Gt.exports=function(t,e){return qt[t]||(qt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Xt=Gt.exports,Qt=Z,Zt=Object,Kt=function(t){return Zt(Qt(t))},Jt=Kt,te=b({}.hasOwnProperty),ee=Object.hasOwn||function(t,e){return te(Jt(t),e)},ie=b,ne=0,oe=Math.random(),se=ie(1..toString),re=function(t){return"Symbol("+(void 0===t?"":t)+")_"+se(++ne+oe,36)},ae=Xt,he=ee,le=re,de=xt,ce=kt,ue=a.Symbol,p
|
||
|
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
||
|
* http://naver.github.io/egjs
|
||
|
*
|
||
|
* Forked By Naver egjs
|
||
|
* Copyright (c) hammerjs
|
||
|
* Licensed under the MIT license */function Ff(){return Ff=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Ff.apply(this,arguments)}function Lf(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function jf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Nf="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign;var Yf,zf=Nf,Hf=["","webkit","Moz","MS","ms","o"],Gf="undefined"==typeof document?{style:{}}:document.createElement("div"),Wf=Math.round,Bf=Math.abs,Vf=Date.now;function Uf(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),s=0;s<Hf.length;){if((n=(i=Hf[s])?i+o:e)in t)return n;s++}}Yf="undefined"==typeof window?{}:window;var $f=Uf(Gf.style,"touchAction"),qf=void 0!==$f,Xf="compute",Qf="auto",Zf="manipulation",Kf="none",Jf="pan-x",tg="pan-y",eg=function(){if(!qf)return!1;var t={},e=Yf.CSS&&Yf.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||Yf.CSS.supports("touch-action",i)})),t}(),ig="ontouchstart"in Yf,ng=void 0!==Uf(Yf,"PointerEvent"),og=ig&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),sg="touch",rg="mouse",ag=25,hg=1,lg=4,dg=8,cg=1,ug=2,pg=4,mg=8,fg=16,gg=ug|pg,vg=mg|fg,yg=gg|vg,bg=["x","y"],wg=["clientX","clientY"];function _g(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function xg(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function kg(t,e){return t.indexOf(e)>-1}var Sg=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Xf&&(t=this.compute()),qf&&this.manager.element.style&&eg[t]&&(this.manager.element.style[$f]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return _g(this.manager.recognizers,(function(e){xg(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(kg(t,Kf))return Kf;var e=kg(t,Jf),i=kg(t,tg);return e&&i?Kf:e||i?e?Jf:tg:kg(t,Zf)?Zf:Qf}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=kg(n,Kf)&&!eg[Kf],s=kg(n,tg)&&!eg[tg],r=kg(n,Jf)&&!eg[Jf];if(o){var a=1===t.pointers.length,h=t.distance<2,l=t.deltaTime<250;if(a&&h&&l)return}if(!r||!s)return o||s&&i&gg||r&&i&vg?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Dg(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Cg(t){var e=t.length;if(1===e)return{x:Wf(t[0].clientX),y:Wf(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:Wf(i/e),y:Wf(n/e)}}function Tg(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:Wf(t.pointers[i].clientX),clientY:Wf(t.pointers[i].clientY)},i++;return{timeStamp:Vf(),pointers:e,center:Cg(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Eg(t,e,i){i||(i=bg);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function Og(t,e,i){i||(i=bg);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function Mg(t,e){return t===e?cg:Bf(t)>=Bf(e)?t<0?ug:pg:e<0?mg:fg}function Pg(t,e,i){return{x:e/t||0,y:i/t||0}}function Ig(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Tg(e)),o>1&&!i.firstMultiple?i.firstMultiple=Tg(e):1===o&&(i.firstMultiple=!1);var s=i.firstInput,r=i.firstMultiple,a=r?r.center:s.center,h=e.center=Cg(n);e.timeStamp=Vf(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=Og(a,h),e.distance=Eg(a,h),function(t,e){var i=e.center,n=t.offsetDelt
|
||
|
.hass=${t.hass}
|
||
|
.cameraManager=${t.cameraManager}
|
||
|
.media=${t.media}
|
||
|
.viewManagerEpoch=${t.viewManagerEpoch}
|
||
|
?details=${this.details}
|
||
|
>
|
||
|
</frigate-card-thumbnail>`:v``}};c([u({attribute:!0})],xr.prototype,"item",void 0),c([u({attribute:!0,type:Boolean})],xr.prototype,"details",void 0),xr=c([p("frigate-card-timeline-thumbnail")],xr);let kr=class extends g{constructor(){super(...arguments),this.mini=!1,this._panMode=null,this._targetBarVisible=!1,this._refDatePicker=y(),this._refTimeline=y(),this._timelineSource=null,this._pointerHeld=null,this._ignoreClick=!1,this._isHoverableDevice=b(),this._throttledSetViewDuringRangeChange=w(this._setViewDuringRangeChange.bind(this),100)}_getTooltip(t){return this._isHoverableDevice?`\n <frigate-card-timeline-thumbnail\n item='${t.id}'\n ${this.thumbnailConfig?.show_details?"details":""}\n >\n </frigate-card-timeline-thumbnail>`:""}_handleThumbnailDataRequest(t){const e=t.detail.item,i=this._timelineSource?.dataset.get(e)?.media,n=i?this.cameraManager?.getStore().getCameraConfigForMedia(i)??void 0:void 0;t.detail.hass=this.hass,t.detail.cameraConfig=n,t.detail.cameraManager=this.cameraManager,t.detail.media=i,t.detail.viewManagerEpoch=this.viewManagerEpoch}render(){if(!this.hass||!this.timelineConfig||!this.cameraIDs?.size)return;const t=this._getEffectivePanMode(),e=_("pan"===t?"config.common.controls.timeline.pan_modes.pan":"seek"===t?"config.common.controls.timeline.pan_modes.seek":"seek-in-media"===t?"config.common.controls.timeline.pan_modes.seek-in-media":"config.common.controls.timeline.pan_modes.seek-in-camera"),i="pan"===t?"mdi:pan-horizontal":"seek"===t?"mdi:filmstrip-box-multiple":"seek-in-media"===t?"mdi:play-box-lock":"mdi:camera-lock";return v` <div
|
||
|
@frigate-card:timeline:thumbnail-data-request=${this._handleThumbnailDataRequest.bind(this)}
|
||
|
class="timeline"
|
||
|
${x(this._refTimeline)}
|
||
|
>
|
||
|
<div class="timeline-tools">
|
||
|
${this._shouldSupportSeeking()?v` <ha-icon
|
||
|
.icon=${i}
|
||
|
@click=${()=>{this._panMode="pan"===t?"seek":"seek"===t?"seek-in-media":"seek-in-media"===t?"seek-in-camera":"pan"}}
|
||
|
aria-label="${e}"
|
||
|
title="${e}"
|
||
|
>
|
||
|
</ha-icon>`:""}
|
||
|
<frigate-card-date-picker
|
||
|
${x(this._refDatePicker)}
|
||
|
@frigate-card:date-picker:change=${t=>{t.detail.date&&this._timeline?.moveTo(t.detail.date)}}
|
||
|
>
|
||
|
</frigate-card-date-picker>
|
||
|
</div>
|
||
|
</div>`}_timelineRangeChangeHandler(t){if(this._pointerHeld&&(this._ignoreClick=!0),this._shouldSupportSeeking()&&this._timeline&&t.byUser&&"wheel"!==t.event.type&&"pinchin"!==t.event.additionalEvent&&"pinchout"!==t.event.additionalEvent){const e=this._pointerHeld?.window?l(t.start,{seconds:(this._pointerHeld.time.getTime()-this._pointerHeld.window.start.getTime())/1e3}):t.end;this._pointerHeld&&this._setTargetBarAppropriately(e),this._throttledSetViewDuringRangeChange(e,t)}}_shouldSupportSeeking(){return this.mini}_setTargetBarAppropriately(t){if(!this._timeline)return;this.viewManagerEpoch?.manager.getView();const e=this._getEffectivePanMode();if(this._shouldSupportSeeking()&&("seek"===e||("seek-in-camera"===e||"seek-in-media"===e)&&this._timeline.getSelection().some((i=>{const n=this._timelineSource?.dataset?.get(i);return"seek-in-camera"!==e||n?.media?.getCameraID(),n&&n.start&&n.end&&t.getTime()>=n.start&&t.getTime()<=n.end})))){this._targetBarVisible?this._timeline?.setCustomTime(t,_r):(this._timeline?.addCustomTime(t,_r),this._targetBarVisible=!0);const e=this._timeline.getWindow(),i=(t.getTime()-e.start.getTime())/(e.end.getTime()-e.start.getTime());this.setAttribute("target-bar-marker-direction",i<.25?"right":i>.75?"left":"center"),this._timeline?.setCustomTimeMarker?.(k(t,!0),_r)}else this._removeTargetBar()}_removeTargetBar(){this.removeAttribute("target-bar-direction"),this._targetBarVisible&&(this._timeline?.removeCustomTime(_r),this._targetBarVisible=!1)}async _setViewDuringRangeChange(t,e){const i=this.viewManagerEpoch?.manager.getView(),n=i?.queryResults,o=n?.getResults(),s=this._getEffectivePanMode();if(!(o&&n&&this._timeline&&i&&this.hass&&this.cameraManager&&"pan"!==s))return;const r=this._shouldSupportSeeking();let a=null;"seek"===s?a=n.clone().resetSelectedResult().selectBestResult((e=>S(e,t,i?.camera)),{allCameras:!0,main:!0}):"seek-in-camera"===s?a=n.clone().resetSelectedResult().selectBestResult((e=>S(e,t)),{cameraID:i.camera}).promoteCameraSelectionToMainSelection(i.camera):"seek-in-media"===s&&(a=n);const h=this.mini?t>=new Date?"live":"media":i.view,l=a?.getSelectedResult()?.getCameraID();this.viewManagerEpoch?.manager.setViewByParameters({params:{...l&&{camera:l},view:h,queryResults:a},modifiers:[new D({...r&&{mediaViewer:{seek:t}},...this._getTimelineContext({start:e.start,end:e.end})})]})}_getEffectivePanMode(){return this._panMode??this.timelineConfig?.pan_mode??"pan"}async _timelineClickHandler(t){(this._ignoreClick||t.what&&["item","background","group-label","axis"].includes(t.what))&&C(t.event);const e=this.viewManagerEpoch?.manager.getView();if(this._ignoreClick||!e||!this.viewManagerEpoch||!this._timelineSource||!t.what)return;let i="close";if(this.timelineConfig?.show_recordings&&t.time&&["background","axis"].includes(t.what)){const i=this._createMediaQueries("recording");i&&await(this.viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({baseView:e,params:{view:"recording",query:i},queryExecutorOptions:{selectResult:{time:{time:t.time}}}}))}else if(t.item&&"item"===t.what){const n=String(t.group),o=String(t.item),s={main:!0,...n&&e.isGrid()&&{cameraID:n}},r=e.queryResults?.clone().resetSelectedResult().selectResultIfFound((e=>e.getID()===t.item),s),a=T(this._getTimelineContext(),{mediaViewer:{seek:t.time}});if(r&&r.hasSelectedResult())this.viewManagerEpoch.manager.setViewByParameters({params:{queryResults:r,view:"play"===this.itemClickAction?"media":e.view},modifiers:[new D(a)]});else{const t=this._createMediaQueries("event");t&&await(this.viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({params:{view:"media",query:t},queryExecutorOptions:{selectResult:{id:o},rejectResults:t=>!t.hasResults()},modifiers:[new D(a)]}))}"select"===this.itemClickAction&&(i="open")}E(this,`thumbnails:${i}`),this._ignoreClick=!1}_getPrefetchWindow(t){const e=O(t.end,t.start);return{start:h(t.start,{seconds:e}),end:l(t.end,{seconds:e})}}async _timelineRangeChangedHandler(t){this._removeTargetBar();const e=this.viewManagerEpoch?.manager.getView();if(!this._timeline||!e||this.mini&
|