import{dU as t,eb as e,dV as n,ec as r,ed as o,ee as s,ds as a,e1 as l,ef as u,eg as c,dj as h,eh as d,ei as p,e2 as f,di as m,ej as v,s as g,ek as y,el as b,dd as w,em as _,en as k,dm as x,dL as S,eo as D,dk as T,dl as C,ep as O,i as E,d5 as M,_ as P,n as A,t as I,dA as N,a as j,x as R,d7 as F,a4 as L,l as Y,d9 as z,r as H}from"./card-b98d578d.js";import{s as G,e as B}from"./startOfHour-a87a7c0b.js";import{e as W}from"./endOfDay-8eba624c.js";import"./date-picker-a6a20636.js";var V={exports:{}};function U(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var q,X={exports:{}};function $(){return q||(q=1,(t=X).exports=function(){var e,n;function i(){return e.apply(null,arguments)}function r(t){e=t}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(a(t,e))return!1;return!0}function u(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[],r=t.length;for(n=0;n>>0;for(e=0;e0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},Y={};function z(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Y[t]=r),e&&(Y[e[0]]=function(){return j(r.apply(this,arguments),e[1],e[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function G(t){var e,n,i=t.match(R);for(e=0,n=i.length;e=0&&F.test(t);)t=t.replace(F,i),F.lastIndex=0,n-=1;return t}var V={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(R).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var X="Invalid date";function $(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function Z(t){return this._ordinal.replace("%d",t)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(t,e,n,i){var r=this._relativeTime[n];return E(r)?r(t,e,n,i):r.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return E(n)?n(e):n.replace(/%s/i,e)}var nt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function rt(t){var e,n,i={};for(n in t)a(t,n)&&(e=it(n))&&(i[e]=t[n]);return i}var ot={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function st(t){var e,n=[];for(e in t)a(t,e)&&n.push({unit:e,priority:ot[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}var at,lt=/\d/,ut=/\d\d/,ct=/\d{3}/,ht=/\d{4}/,dt=/[+-]?\d{6}/,pt=/\d\d?/,ft=/\d\d\d\d?/,mt=/\d\d\d\d\d\d?/,vt=/\d{1,3}/,gt=/\d{1,4}/,yt=/[+-]?\d{1,6}/,bt=/\d+/,wt=/[+-]?\d+/,_t=/Z|[+-]\d\d:?\d\d/gi,kt=/Z|[+-]\d\d(?::?\d\d)?/gi,xt=/[+-]?\d+(\.\d{1,3})?/,St=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Dt=/^[1-9]\d?/,Tt=/^([1-9]\d|\d)/;function Ct(t,e,n){at[t]=E(e)?e:function(t,i){return t&&n?n:e}}function Ot(t,e){return a(at,t)?at[t](e._strict,e._locale):new RegExp(Et(t))}function Et(t){return Mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r})))}function Mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function At(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=Pt(e)),n}at={};var It={};function Nt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=At(t)}),i=t.length,n=0;n68?1900:2e3)};var Xt,$t=Qt("FullYear",!0);function Kt(){return Ft(this.year())}function Qt(t,e){return function(n){return null!=n?(Jt(this,t,n),i.updateOffset(this,e),this):Zt(this,t)}}function Zt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Jt(t,e,n){var i,r,o,s,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,s=t.month(),a=29!==(a=t.date())||1!==s||Ft(o)?a:28,r?i.setUTCFullYear(o,s,a):i.setFullYear(o,s,a)}}function te(t){return E(this[t=it(t)])?this[t]():this}function ee(t,e){if("object"==typeof t){var n,i=st(t=rt(t)),r=i.length;for(n=0;n=0?(a=new Date(t+400,e,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,o,s),a}function we(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function _e(t,e,n){var i=7+e-n;return-(7+we(t,0,i).getUTCDay()-e)%7+i-1}function ke(t,e,n,i,r){var o,s,a=1+7*(e-1)+(7+n-i)%7+_e(t,i,r);return a<=0?s=qt(o=t-1)+a:a>qt(t)?(o=t+1,s=a-qt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function xe(t,e,n){var i,r,o=_e(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?i=s+Se(r=t.year()-1,e,n):s>Se(t.year(),e,n)?(i=s-Se(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Se(t,e,n){var i=_e(t,e,n),r=_e(t+1,e,n);return(qt(t)-i+r)/7}function De(t){return xe(t,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Ct("w",pt,Dt),Ct("ww",pt,ut),Ct("W",pt,Dt),Ct("WW",pt,ut),jt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=At(t)}));var Te={dow:0,doy:6};function Ce(){return this._week.dow}function Oe(){return this._week.doy}function Ee(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Me(t){var e=xe(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pe(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ie(t,e){return t.slice(e,7).concat(t.slice(0,e))}z("d",0,"do","day"),z("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),z("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),z("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Ct("d",pt),Ct("e",pt),Ct("E",pt),Ct("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Ct("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Ct("dddd",(function(t,e){return e.weekdaysRegex(t)})),jt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:v(n).invalidWeekday=t})),jt(["d","e","E"],(function(t,e,n,i){e[i]=At(t)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Re="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fe=St,Le=St,Ye=St;function ze(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ie(n,this._week.dow):t?n[t.day()]:n}function He(t){return!0===t?Ie(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ge(t){return!0===t?Ie(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Be(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Xt.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Xt.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Xt.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=Xt.call(this._weekdaysParse,s))||-1!==(r=Xt.call(this._shortWeekdaysParse,s))||-1!==(r=Xt.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Xt.call(this._shortWeekdaysParse,s))||-1!==(r=Xt.call(this._weekdaysParse,s))||-1!==(r=Xt.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Xt.call(this._minWeekdaysParse,s))||-1!==(r=Xt.call(this._weekdaysParse,s))||-1!==(r=Xt.call(this._shortWeekdaysParse,s))?r:null}function We(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Be.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Ve(t){if(!this.isValid())return null!=t?this:NaN;var e=Zt(this,"Day");return null!=t?(t=Pe(t,this.localeData()),this.add(t-e,"d")):e}function Ue(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function qe(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Xe(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Fe),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function $e(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Le),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ke(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qe(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=Mt(this.weekdaysMin(n,"")),r=Mt(this.weekdaysShort(n,"")),o=Mt(this.weekdays(n,"")),s.push(i),a.push(r),l.push(o),u.push(i),u.push(r),u.push(o);s.sort(t),a.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ze(){return this.hours()%12||12}function Je(){return this.hours()||24}function tn(t,e){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Ze),z("k",["kk",2],0,Je),z("hmm",0,0,(function(){return""+Ze.apply(this)+j(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Ze.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),tn("a",!0),tn("A",!1),Ct("a",en),Ct("A",en),Ct("H",pt,Tt),Ct("h",pt,Dt),Ct("k",pt,Dt),Ct("HH",pt,ut),Ct("hh",pt,ut),Ct("kk",pt,ut),Ct("hmm",ft),Ct("hmmss",mt),Ct("Hmm",ft),Ct("Hmmss",mt),Nt(["H","HH"],Ht),Nt(["k","kk"],(function(t,e,n){var i=At(t);e[Ht]=24===i?0:i})),Nt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Nt(["h","hh"],(function(t,e,n){e[Ht]=At(t),v(n).bigHour=!0})),Nt("hmm",(function(t,e,n){var i=t.length-2;e[Ht]=At(t.substr(0,i)),e[Gt]=At(t.substr(i)),v(n).bigHour=!0})),Nt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Ht]=At(t.substr(0,i)),e[Gt]=At(t.substr(i,2)),e[Bt]=At(t.substr(r)),v(n).bigHour=!0})),Nt("Hmm",(function(t,e,n){var i=t.length-2;e[Ht]=At(t.substr(0,i)),e[Gt]=At(t.substr(i))})),Nt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Ht]=At(t.substr(0,i)),e[Gt]=At(t.substr(i,2)),e[Bt]=At(t.substr(r))}));var rn=/[ap]\.?m?\.?/i,on=Qt("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:I,longDateFormat:V,invalidDate:X,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:J,months:re,monthsShort:oe,week:Te,weekdays:Ne,weekdaysMin:Re,weekdaysShort:je,meridiemParse:rn},un={},cn={};function hn(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0;){if(i=mn(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&hn(r,n)>=e-1)break;e--}o++}return an}function fn(t){return!(!t||!t.match("^[^/\\\\]*$"))}function mn(e){var n=null;if(void 0===un[e]&&t&&t.exports&&fn(e))try{n=an._abbr,U("./locale/"+e),vn(n)}catch(t){un[e]=null}return un[e]}function vn(t,e){var n;return t&&((n=u(e)?bn(t):gn(t,e))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),an._abbr}function gn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=un[t])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])i=un[e.parentLocale]._config;else{if(null==(n=mn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return un[t]=new A(P(i,e)),cn[t]&&cn[t].forEach((function(t){gn(t.name,t.config)})),vn(t),un[t]}return delete un[t],null}function yn(t,e){if(null!=e){var n,i,r=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(P(un[t]._config,e)):(null!=(i=mn(t))&&(r=i._config),e=P(r,e),null==i&&(e.abbr=t),(n=new A(e)).parentLocale=un[t],un[t]=n),vn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===vn()&&vn(t)):null!=un[t]&&delete un[t]);return un[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return an;if(!o(t)){if(e=mn(t))return e;t=[t]}return pn(t)}function wn(){return T(un)}function _n(t){var e,n=t._a;return n&&-2===v(t).overflow&&(e=n[Yt]<0||n[Yt]>11?Yt:n[zt]<1||n[zt]>ie(n[Lt],n[Yt])?zt:n[Ht]<0||n[Ht]>24||24===n[Ht]&&(0!==n[Gt]||0!==n[Bt]||0!==n[Wt])?Ht:n[Gt]<0||n[Gt]>59?Gt:n[Bt]<0||n[Bt]>59?Bt:n[Wt]<0||n[Wt]>999?Wt:-1,v(t)._overflowDayOfYear&&(ezt)&&(e=zt),v(t)._overflowWeeks&&-1===e&&(e=Vt),v(t)._overflowWeekday&&-1===e&&(e=Ut),v(t).overflow=e),t}var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Tn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mn(t){var e,n,i,r,o,s,a=t._i,l=kn.exec(a)||xn.exec(a),u=Dn.length,c=Tn.length;if(l){for(v(t).iso=!0,e=0,n=u;eqt(o)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=we(o,0,t._dayOfYear),t._a[Yt]=n.getUTCMonth(),t._a[zt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ht]&&0===t._a[Gt]&&0===t._a[Bt]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[Ht]=0),t._d=(t._useUTC?we:be).apply(null,s),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ht]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(v(t).weekdayMismatch=!0)}}function Hn(t){var e,n,i,r,o,s,a,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,s=4,n=Ln(e.GG,t._a[Lt],xe(Kn(),1,4).year),i=Ln(e.W,1),((r=Ln(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,u=xe(Kn(),o,s),n=Ln(e.gg,t._a[Lt],u.year),i=Ln(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),i<1||i>Se(n,o,s)?v(t)._overflowWeeks=!0:null!=l?v(t)._overflowWeekday=!0:(a=ke(n,i,r,o,s),t._a[Lt]=a.year,t._dayOfYear=a.dayOfYear)}function Gn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],v(t).empty=!0;var e,n,r,o,s,a,l,u=""+t._i,c=u.length,h=0;for(l=(r=W(t._f,t._locale).match(R)||[]).length,e=0;e0&&v(t).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),h+=n.length),Y[o]?(n?v(t).empty=!1:v(t).unusedTokens.push(o),Rt(o,n,t)):t._strict&&!n&&v(t).unusedTokens.push(o);v(t).charsLeftOver=c-h,u.length>0&&v(t).unusedInput.push(u),t._a[Ht]<=12&&!0===v(t).bigHour&&t._a[Ht]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[Ht]=Bn(t._locale,t._a[Ht],t._meridiem),null!==(a=v(t).era)&&(t._a[Lt]=t._locale.erasConvertYear(a,t._a[Lt])),zn(t),_n(t)}else Rn(t);else Mn(t)}function Bn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Wn(t){var e,n,i,r,o,s,a=!1,l=t._f.length;if(0===l)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:y()}));function Jn(t,e){var n,i;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xi(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=qn(e))._a?(t=e._isUTC?f(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&ci(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Si(){return!!this.isValid()&&!this._isUTC}function Di(){return!!this.isValid()&&this._isUTC}function Ti(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ci=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Oi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ei(t,e){var n,i,r,o=t,s=null;return li(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(s=Ci.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:At(s[zt])*n,h:At(s[Ht])*n,m:At(s[Gt])*n,s:At(s[Bt])*n,ms:At(ui(1e3*s[Wt]))*n}):(s=Oi.exec(t))?(n="-"===s[1]?-1:1,o={y:Mi(s[2],n),M:Mi(s[3],n),w:Mi(s[4],n),d:Mi(s[5],n),h:Mi(s[6],n),m:Mi(s[7],n),s:Mi(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Ai(Kn(o.from),Kn(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new ai(o),li(t)&&a(t,"_locale")&&(i._locale=t._locale),li(t)&&a(t,"_isValid")&&(i._isValid=t._isValid),i}function Mi(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Pi(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ai(t,e){var n;return t.isValid()&&e.isValid()?(e=fi(e,t),t.isBefore(e)?n=Pi(t,e):((n=Pi(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ii(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(O(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Ni(this,Ei(n,i),t),this}}function Ni(t,e,n,r){var o=e._milliseconds,s=ui(e._days),a=ui(e._months);t.isValid()&&(r=null==r||r,a&&pe(t,Zt(t,"Month")+a*n),s&&Jt(t,"Date",Zt(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,s||a))}Ei.fn=ai.prototype,Ei.invalid=si;var ji=Ii(1,"add"),Ri=Ii(-1,"subtract");function Fi(t){return"string"==typeof t||t instanceof String}function Li(t){return x(t)||h(t)||Fi(t)||c(t)||zi(t)||Yi(t)||null==t}function Yi(t){var e,n,i=s(t)&&!l(t),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(e=0;en.valueOf():n.valueOf()9999?B(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function er(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+r+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=o+'[")]',this.format(t+e+n+i)}function nr(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=B(this,t);return this.localeData().postformat(e)}function ir(t,e){return this.isValid()&&(x(t)&&t.isValid()||Kn(t).isValid())?Ei({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function rr(t){return this.from(Kn(),t)}function or(t,e){return this.isValid()&&(x(t)&&t.isValid()||Kn(t).isValid())?Ei({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function sr(t){return this.to(Kn(),t)}function ar(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ur(){return this._locale}var cr=1e3,hr=60*cr,dr=60*hr,pr=3506328*dr;function fr(t,e){return(t%e+e)%e}function mr(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pr:new Date(t,e,n).valueOf()}function vr(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pr:Date.UTC(t,e,n)}function gr(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?vr:mr,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fr(e+(this._isUTC?0:this.utcOffset()*hr),dr);break;case"minute":e=this._d.valueOf(),e-=fr(e,hr);break;case"second":e=this._d.valueOf(),e-=fr(e,cr)}return this._d.setTime(e),i.updateOffset(this,!0),this}function yr(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?vr:mr,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=dr-fr(e+(this._isUTC?0:this.utcOffset()*hr),dr)-1;break;case"minute":e=this._d.valueOf(),e+=hr-fr(e,hr)-1;break;case"second":e=this._d.valueOf(),e+=cr-fr(e,cr)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function br(){return this._d.valueOf()-6e4*(this._offset||0)}function wr(){return Math.floor(this.valueOf()/1e3)}function _r(){return new Date(this.valueOf())}function kr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function xr(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Sr(){return this.isValid()?this.toISOString():null}function Dr(){return g(this)}function Tr(){return p({},v(this))}function Cr(){return v(this).overflow}function Or(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Er(t,e){var n,r,o,s=this._eras||bn("en")._eras;for(n=0,r=s.length;n=0)return l[i]}function Pr(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n}function Ar(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t(o=Se(t,i,r))&&(e=o),Zr.call(this,t,e,n,i,r))}function Zr(t,e,n,i,r){var o=ke(t,e,n,i,r),s=we(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Jr(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Ct("N",Yr),Ct("NN",Yr),Ct("NNN",Yr),Ct("NNNN",zr),Ct("NNNNN",Hr),Nt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?v(n).era=r:v(n).invalidEra=t})),Ct("y",bt),Ct("yy",bt),Ct("yyy",bt),Ct("yyyy",bt),Ct("yo",Gr),Nt(["y","yy","yyy","yyyy"],Lt),Nt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Lt]=n._locale.eraYearOrdinalParse(t,r):e[Lt]=parseInt(t,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wr("gggg","weekYear"),Wr("ggggg","weekYear"),Wr("GGGG","isoWeekYear"),Wr("GGGGG","isoWeekYear"),Ct("G",wt),Ct("g",wt),Ct("GG",pt,ut),Ct("gg",pt,ut),Ct("GGGG",gt,ht),Ct("gggg",gt,ht),Ct("GGGGG",yt,dt),Ct("ggggg",yt,dt),jt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=At(t)})),jt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),z("Q",0,"Qo","quarter"),Ct("Q",lt),Nt("Q",(function(t,e){e[Yt]=3*(At(t)-1)})),z("D",["DD",2],"Do","date"),Ct("D",pt,Dt),Ct("DD",pt,ut),Ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Nt(["D","DD"],zt),Nt("Do",(function(t,e){e[zt]=At(t.match(pt)[0])}));var to=Qt("Date",!0);function eo(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),Ct("DDD",vt),Ct("DDDD",ct),Nt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=At(t)})),z("m",["mm",2],0,"minute"),Ct("m",pt,Tt),Ct("mm",pt,ut),Nt(["m","mm"],Gt);var no=Qt("Minutes",!1);z("s",["ss",2],0,"second"),Ct("s",pt,Tt),Ct("ss",pt,ut),Nt(["s","ss"],Bt);var io,ro,oo=Qt("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Ct("S",vt,lt),Ct("SS",vt,ut),Ct("SSS",vt,ct),io="SSSS";io.length<=9;io+="S")Ct(io,bt);function so(t,e){e[Wt]=At(1e3*("0."+t))}for(io="S";io.length<=9;io+="S")Nt(io,so);function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}ro=Qt("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var uo=k.prototype;function co(t){return Kn(1e3*t)}function ho(){return Kn.apply(null,arguments).parseZone()}function po(t){return t}uo.add=ji,uo.calendar=Bi,uo.clone=Wi,uo.diff=Qi,uo.endOf=yr,uo.format=nr,uo.from=ir,uo.fromNow=rr,uo.to=or,uo.toNow=sr,uo.get=te,uo.invalidAt=Cr,uo.isAfter=Vi,uo.isBefore=Ui,uo.isBetween=qi,uo.isSame=Xi,uo.isSameOrAfter=$i,uo.isSameOrBefore=Ki,uo.isValid=Dr,uo.lang=lr,uo.locale=ar,uo.localeData=ur,uo.max=Zn,uo.min=Qn,uo.parsingFlags=Tr,uo.set=ee,uo.startOf=gr,uo.subtract=Ri,uo.toArray=kr,uo.toObject=xr,uo.toDate=_r,uo.toISOString=tr,uo.inspect=er,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Sr,uo.toString=Ji,uo.unix=wr,uo.valueOf=br,uo.creationData=Or,uo.eraName=Ar,uo.eraNarrow=Ir,uo.eraAbbr=Nr,uo.eraYear=jr,uo.year=$t,uo.isLeapYear=Kt,uo.weekYear=Vr,uo.isoWeekYear=Ur,uo.quarter=uo.quarters=Jr,uo.month=fe,uo.daysInMonth=me,uo.week=uo.weeks=Ee,uo.isoWeek=uo.isoWeeks=Me,uo.weeksInYear=$r,uo.weeksInWeekYear=Kr,uo.isoWeeksInYear=qr,uo.isoWeeksInISOWeekYear=Xr,uo.date=to,uo.day=uo.days=Ve,uo.weekday=Ue,uo.isoWeekday=qe,uo.dayOfYear=eo,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=ro,uo.utcOffset=vi,uo.utc=yi,uo.local=bi,uo.parseZone=wi,uo.hasAlignedHourOffset=_i,uo.isDST=ki,uo.isLocal=Si,uo.isUtcOffset=Di,uo.isUtc=Ti,uo.isUTC=Ti,uo.zoneAbbr=ao,uo.zoneName=lo,uo.dates=D("dates accessor is deprecated. Use date instead.",to),uo.months=D("months accessor is deprecated. Use month instead",fe),uo.years=D("years accessor is deprecated. Use year instead",$t),uo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gi),uo.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xi);var fo=A.prototype;function mo(t,e,n,i){var r=bn(),o=f().set(i,e);return r[n](o,t)}function vo(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return mo(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=mo(t,i,n,"month");return r}function go(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,o=bn(),s=t?o._week.dow:0,a=[];if(null!=n)return mo(e,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=mo(e,(r+s)%7,i,"day");return a}function yo(t,e){return vo(t,e,"months")}function bo(t,e){return vo(t,e,"monthsShort")}function wo(t,e,n){return go(t,e,n,"weekdays")}function _o(t,e,n){return go(t,e,n,"weekdaysShort")}function ko(t,e,n){return go(t,e,n,"weekdaysMin")}fo.calendar=N,fo.longDateFormat=q,fo.invalidDate=$,fo.ordinal=Z,fo.preparse=po,fo.postformat=po,fo.relativeTime=tt,fo.pastFuture=et,fo.set=M,fo.eras=Er,fo.erasParse=Mr,fo.erasConvertYear=Pr,fo.erasAbbrRegex=Fr,fo.erasNameRegex=Rr,fo.erasNarrowRegex=Lr,fo.months=ue,fo.monthsShort=ce,fo.monthsParse=de,fo.monthsRegex=ge,fo.monthsShortRegex=ve,fo.week=De,fo.firstDayOfYear=Oe,fo.firstDayOfWeek=Ce,fo.weekdays=ze,fo.weekdaysMin=Ge,fo.weekdaysShort=He,fo.weekdaysParse=We,fo.weekdaysRegex=Xe,fo.weekdaysShortRegex=$e,fo.weekdaysMinRegex=Ke,fo.isPM=nn,fo.meridiem=sn,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===At(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=D("moment.lang is deprecated. Use moment.locale instead.",vn),i.langData=D("moment.langData is deprecated. Use moment.localeData instead.",bn);var xo=Math.abs;function So(){var t=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),t.milliseconds=xo(t.milliseconds),t.seconds=xo(t.seconds),t.minutes=xo(t.minutes),t.hours=xo(t.hours),t.months=xo(t.months),t.years=xo(t.years),this}function Do(t,e,n,i){var r=Ei(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function To(t,e){return Do(this,t,e,1)}function Co(t,e){return Do(this,t,e,-1)}function Oo(t){return t<0?Math.floor(t):Math.ceil(t)}function Eo(){var t,e,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Oo(Po(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=Pt(o/1e3),l.seconds=t%60,e=Pt(t/60),l.minutes=e%60,n=Pt(e/60),l.hours=n%24,s+=Pt(n/24),a+=r=Pt(Mo(s)),s-=Oo(Po(r)),i=Pt(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function Mo(t){return 4800*t/146097}function Po(t){return 146097*t/4800}function Ao(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Mo(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Po(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function Io(t){return function(){return this.as(t)}}var No=Io("ms"),jo=Io("s"),Ro=Io("m"),Fo=Io("h"),Lo=Io("d"),Yo=Io("w"),zo=Io("M"),Ho=Io("Q"),Go=Io("y"),Bo=No;function Wo(){return Ei(this)}function Vo(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Uo(t){return function(){return this.isValid()?this._data[t]:NaN}}var qo=Uo("milliseconds"),Xo=Uo("seconds"),$o=Uo("minutes"),Ko=Uo("hours"),Qo=Uo("days"),Zo=Uo("months"),Jo=Uo("years");function ts(){return Pt(this.days()/7)}var es=Math.round,ns={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function is(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function rs(t,e,n,i){var r=Ei(t).abs(),o=es(r.as("s")),s=es(r.as("m")),a=es(r.as("h")),l=es(r.as("d")),u=es(r.as("M")),c=es(r.as("w")),h=es(r.as("y")),d=o<=n.ss&&["s",o]||o0,d[4]=i,is.apply(null,d)}function os(t){return void 0===t?es:"function"==typeof t&&(es=t,!0)}function ss(t,e){return void 0!==ns[t]&&(void 0===e?ns[t]:(ns[t]=e,"s"===t&&(ns.ss=e-1),!0))}function as(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=ns;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},ns,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=rs(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var ls=Math.abs;function us(t){return(t>0)-(t<0)||+t}function cs(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,s,a,l=ls(this._milliseconds)/1e3,u=ls(this._days),c=ls(this._months),h=this.asSeconds();return h?(t=Pt(l/60),e=Pt(t/60),l%=60,t%=60,n=Pt(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+i+"S":"")):"P0D"}var hs=ai.prototype;return hs.isValid=oi,hs.abs=So,hs.add=To,hs.subtract=Co,hs.as=Ao,hs.asMilliseconds=No,hs.asSeconds=jo,hs.asMinutes=Ro,hs.asHours=Fo,hs.asDays=Lo,hs.asWeeks=Yo,hs.asMonths=zo,hs.asQuarters=Ho,hs.asYears=Go,hs.valueOf=Bo,hs._bubble=Eo,hs.clone=Wo,hs.get=Vo,hs.milliseconds=qo,hs.seconds=Xo,hs.minutes=$o,hs.hours=Ko,hs.days=Qo,hs.weeks=ts,hs.months=Zo,hs.years=Jo,hs.humanize=as,hs.toISOString=cs,hs.toString=cs,hs.toJSON=cs,hs.locale=ar,hs.localeData=ur,hs.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),hs.lang=lr,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Ct("x",wt),Ct("X",xt),Nt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Nt("x",(function(t,e,n){n._d=new Date(At(t))})), //! moment.js i.version="2.30.1",r(Kn),i.fn=uo,i.min=ti,i.max=ei,i.now=ni,i.utc=f,i.unix=co,i.months=yo,i.isDate=h,i.locale=vn,i.invalid=y,i.duration=Ei,i.isMoment=x,i.weekdays=wo,i.parseZone=ho,i.localeData=bn,i.isDuration=li,i.monthsShort=bo,i.weekdaysMin=ko,i.defineLocale=gn,i.updateLocale=yn,i.locales=wn,i.weekdaysShort=_o,i.normalizeUnits=it,i.relativeTimeRounding=os,i.relativeTimeThreshold=ss,i.calendarFormat=Gi,i.prototype=uo,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}()),X.exports;var t}var K,Q={exports:{}}; /** * 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 Z(){return K||(K=1,function(t){function n(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!==e?e:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var o={exports:{}},s=function(t){return t&&t.Math===Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},u=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,h=Function.prototype,d=h.apply,p=h.call,f="object"==typeof Reflect&&Reflect.apply||(c?p.bind(d):function(){return p.apply(d,arguments)}),m=u,v=Function.prototype,g=v.call,y=m&&v.bind.bind(g,g),b=m?y:function(t){return function(){return g.apply(t,arguments)}},w=b,_=w({}.toString),k=w("".slice),x=function(t){return k(_(t),8,-1)},S=x,D=b,T=function(t){if("Function"===S(t))return D(t)},C="object"==typeof document&&document.all,O=void 0===C&&void 0!==C,E={all:C,IS_HTMLDDA:O},M=E,P=M.all,A=M.IS_HTMLDDA?function(t){return"function"==typeof t||t===P}:function(t){return"function"==typeof t},I={},N=!l((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),j=u,R=Function.prototype.call,F=j?R.bind(R):function(){return R.apply(R,arguments)},L={},Y={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,H=z&&!Y.call({1:2},1);L.f=H?function(t){var e=z(this,t);return!!e&&e.enumerable}:Y;var G,B,W=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=l,U=x,q=Object,X=b("".split),$=V((function(){return!q("z").propertyIsEnumerable(0)}))?function(t){return"String"===U(t)?X(t,""):q(t)}:q,K=function(t){return null==t},Q=K,Z=TypeError,J=function(t){if(Q(t))throw new Z("Can't call method on "+t);return t},tt=$,et=J,nt=function(t){return tt(et(t))},it=A,rt=E,ot=rt.all,st=rt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:it(t)||t===ot}:function(t){return"object"==typeof t?null!==t:it(t)},at={},lt=at,ut=a,ct=A,ht=function(t){return ct(t)?t:void 0},dt=function(t,e){return arguments.length<2?ht(lt[t])||ht(ut[t]):lt[t]&<[t][e]||ut[t]&&ut[t][e]},pt=b({}.isPrototypeOf),ft="undefined"!=typeof navigator&&String(navigator.userAgent)||"",mt=a,vt=ft,gt=mt.process,yt=mt.Deno,bt=gt&>.versions||yt&&yt.version,wt=bt&&bt.v8;wt&&(B=(G=wt.split("."))[0]>0&&G[0]<4?1:+(G[0]+G[1])),!B&&vt&&(!(G=vt.match(/Edge\/(\d+)/))||G[1]>=74)&&(G=vt.match(/Chrome\/(\d+)/))&&(B=+G[1]);var _t=B,kt=_t,xt=l,St=a.String,Dt=!!Object.getOwnPropertySymbols&&!xt((function(){var t=Symbol("symbol detection");return!St(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&kt&&kt<41})),Tt=Dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ct=dt,Ot=A,Et=pt,Mt=Object,Pt=Tt?function(t){return"symbol"==typeof t}:function(t){var e=Ct("Symbol");return Ot(e)&&Et(e.prototype,Mt(t))},At=String,It=function(t){try{return At(t)}catch(t){return"Object"}},Nt=A,jt=It,Rt=TypeError,Ft=function(t){if(Nt(t))return t;throw new Rt(jt(t)+" is not a function")},Lt=Ft,Yt=K,zt=function(t,e){var n=t[e];return Yt(n)?void 0:Lt(n)},Ht=F,Gt=A,Bt=st,Wt=TypeError,Vt=function(t,e){var n,i;if("string"===e&&Gt(n=t.toString)&&!Bt(i=Ht(n,t)))return i;if(Gt(n=t.valueOf)&&!Bt(i=Ht(n,t)))return i;if("string"!==e&&Gt(n=t.toString)&&!Bt(i=Ht(n,t)))return i;throw new Wt("Can't convert object to primitive value")},Ut={exports:{}},qt=!0,Xt=a,$t=Object.defineProperty,Kt=function(t,e){try{$t(Xt,t,{value:e,configurable:!0,writable:!0})}catch(n){Xt[t]=e}return e},Qt="__core-js_shared__",Zt=a[Qt]||Kt(Qt,{}),Jt=Zt;(Ut.exports=function(t,e){return Jt[t]||(Jt[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 te=Ut.exports,ee=J,ne=Object,ie=function(t){return ne(ee(t))},re=ie,oe=b({}.hasOwnProperty),se=Object.hasOwn||function(t,e){return oe(re(t),e)},ae=b,le=0,ue=Math.random(),ce=ae(1..toString),he=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ce(++le+ue,36)},de=te,pe=se,fe=he,me=Dt,ve=Tt,ge=a.Symbol,ye=de("wks"),be=ve?ge.for||ge:ge&&ge.withoutSetter||fe,we=function(t){return pe(ye,t)||(ye[t]=me&&pe(ge,t)?ge[t]:be("Symbol."+t)),ye[t]},_e=F,ke=st,xe=Pt,Se=zt,De=Vt,Te=TypeError,Ce=we("toPrimitive"),Oe=function(t,e){if(!ke(t)||xe(t))return t;var n,i=Se(t,Ce);if(i){if(void 0===e&&(e="default"),n=_e(i,t,e),!ke(n)||xe(n))return n;throw new Te("Can't convert object to primitive value")}return void 0===e&&(e="number"),De(t,e)},Ee=Pt,Me=function(t){var e=Oe(t,"string");return Ee(e)?e:e+""},Pe=st,Ae=a.document,Ie=Pe(Ae)&&Pe(Ae.createElement),Ne=function(t){return Ie?Ae.createElement(t):{}},je=l,Re=Ne,Fe=!N&&!je((function(){return 7!==Object.defineProperty(Re("div"),"a",{get:function(){return 7}}).a})),Le=N,Ye=F,ze=L,He=W,Ge=nt,Be=Me,We=se,Ve=Fe,Ue=Object.getOwnPropertyDescriptor;I.f=Le?Ue:function(t,e){if(t=Ge(t),e=Be(e),Ve)try{return Ue(t,e)}catch(t){}if(We(t,e))return He(!Ye(ze.f,t,e),t[e])};var qe=l,Xe=A,$e=/#|\.prototype\./,Ke=function(t,e){var n=Ze[Qe(t)];return n===tn||n!==Je&&(Xe(e)?qe(e):!!e)},Qe=Ke.normalize=function(t){return String(t).replace($e,".").toLowerCase()},Ze=Ke.data={},Je=Ke.NATIVE="N",tn=Ke.POLYFILL="P",en=Ke,nn=Ft,rn=u,on=T(T.bind),sn=function(t,e){return nn(t),void 0===e?t:rn?on(t,e):function(){return t.apply(e,arguments)}},an={},ln=l,un=N&&ln((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cn=st,hn=String,dn=TypeError,pn=function(t){if(cn(t))return t;throw new dn(hn(t)+" is not an object")},fn=N,mn=Fe,vn=un,gn=pn,yn=Me,bn=TypeError,wn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,kn="enumerable",xn="configurable",Sn="writable";an.f=fn?vn?function(t,e,n){if(gn(t),e=yn(e),gn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Sn in n&&!n[Sn]){var i=_n(t,e);i&&i[Sn]&&(t[e]=n.value,n={configurable:xn in n?n[xn]:i[xn],enumerable:kn in n?n[kn]:i[kn],writable:!1})}return wn(t,e,n)}:wn:function(t,e,n){if(gn(t),e=yn(e),gn(n),mn)try{return wn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new bn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Dn=an,Tn=W,Cn=N?function(t,e,n){return Dn.f(t,e,Tn(1,n))}:function(t,e,n){return t[e]=n,t},On=a,En=f,Mn=T,Pn=A,An=I.f,In=en,Nn=at,jn=sn,Rn=Cn,Fn=se,Ln=function(t){var e=function(n,i,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,r)}return En(t,this,arguments)};return e.prototype=t.prototype,e},Yn=function(t,e){var n,i,r,o,s,a,l,u,c,h=t.target,d=t.global,p=t.stat,f=t.proto,m=d?On:p?On[h]:(On[h]||{}).prototype,v=d?Nn:Nn[h]||Rn(Nn,h,{})[h],g=v.prototype;for(o in e)i=!(n=In(d?o:h+(p?".":"#")+o,t.forced))&&m&&Fn(m,o),a=v[o],i&&(l=t.dontCallGetSet?(c=An(m,o))&&c.value:m[o]),s=i&&l?l:e[o],i&&typeof a==typeof s||(u=t.bind&&i?jn(s,On):t.wrap&&i?Ln(s):f&&Pn(s)?Mn(s):s,(t.sham||s&&s.sham||a&&a.sham)&&Rn(u,"sham",!0),Rn(v,o,u),f&&(Fn(Nn,r=h+"Prototype")||Rn(Nn,r,{}),Rn(Nn[r],o,s),t.real&&g&&(n||!g[o])&&Rn(g,o,s)))},zn=Yn,Hn=N,Gn=an.f;zn({target:"Object",stat:!0,forced:Object.defineProperty!==Gn,sham:!Hn},{defineProperty:Gn});var Bn=at.Object,Wn=o.exports=function(t,e,n){return Bn.defineProperty(t,e,n)};Bn.defineProperty.sham&&(Wn.sham=!0);var Vn=o.exports,Un=Vn,qn=r(Un),Xn=x,$n=Array.isArray||function(t){return"Array"===Xn(t)},Kn=Math.ceil,Qn=Math.floor,Zn=Math.trunc||function(t){var e=+t;return(e>0?Qn:Kn)(e)},Jn=Zn,ti=function(t){var e=+t;return e!=e||0===e?0:Jn(e)},ei=ti,ni=Math.min,ii=function(t){return t>0?ni(ei(t),9007199254740991):0},ri=function(t){return ii(t.length)},oi=TypeError,si=9007199254740991,ai=function(t){if(t>si)throw oi("Maximum allowed index exceeded");return t},li=Me,ui=an,ci=W,hi=function(t,e,n){var i=li(e);i in t?ui.f(t,i,ci(0,n)):t[i]=n},di=we("toStringTag"),pi={};pi[di]="z";var fi="[object z]"===String(pi),mi=fi,vi=A,gi=x,yi=we("toStringTag"),bi=Object,wi="Arguments"===gi(function(){return arguments}()),_i=function(t,e){try{return t[e]}catch(t){}},ki=mi?gi:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=_i(e=bi(t),yi))?n:wi?gi(e):"Object"===(i=gi(e))&&vi(e.callee)?"Arguments":i},xi=A,Si=Zt,Di=b(Function.toString);xi(Si.inspectSource)||(Si.inspectSource=function(t){return Di(t)});var Ti=Si.inspectSource,Ci=b,Oi=l,Ei=A,Mi=ki,Pi=Ti,Ai=function(){},Ii=[],Ni=dt("Reflect","construct"),ji=/^\s*(?:class|function)\b/,Ri=Ci(ji.exec),Fi=!ji.test(Ai),Li=function(t){if(!Ei(t))return!1;try{return Ni(Ai,Ii,t),!0}catch(t){return!1}},Yi=function(t){if(!Ei(t))return!1;switch(Mi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fi||!!Ri(ji,Pi(t))}catch(t){return!0}};Yi.sham=!0;var zi=!Ni||Oi((function(){var t;return Li(Li.call)||!Li(Object)||!Li((function(){t=!0}))||t}))?Yi:Li,Hi=$n,Gi=zi,Bi=st,Wi=we("species"),Vi=Array,Ui=function(t){var e;return Hi(t)&&(e=t.constructor,(Gi(e)&&(e===Vi||Hi(e.prototype))||Bi(e)&&null===(e=e[Wi]))&&(e=void 0)),void 0===e?Vi:e},qi=function(t,e){return new(Ui(t))(0===e?0:e)},Xi=l,$i=_t,Ki=we("species"),Qi=function(t){return $i>=51||!Xi((function(){var e=[];return(e.constructor={})[Ki]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Zi=Yn,Ji=l,tr=$n,er=st,nr=ie,ir=ri,rr=ai,or=hi,sr=qi,ar=Qi,lr=_t,ur=we("isConcatSpreadable"),cr=lr>=51||!Ji((function(){var t=[];return t[ur]=!1,t.concat()[0]!==t})),hr=function(t){if(!er(t))return!1;var e=t[ur];return void 0!==e?!!e:tr(t)},dr=!cr||!ar("concat");Zi({target:"Array",proto:!0,arity:1,forced:dr},{concat:function(t){var e,n,i,r,o,s=nr(this),a=sr(s,0),l=0;for(e=-1,i=arguments.length;ea;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Dr={includes:Sr(!0),indexOf:Sr(!1)},Tr={},Cr=b,Or=se,Er=nt,Mr=Dr.indexOf,Pr=Tr,Ar=Cr([].push),Ir=function(t,e){var n,i=Er(t),r=0,o=[];for(n in i)!Or(Pr,n)&&Or(i,n)&&Ar(o,n);for(;e.length>r;)Or(i,n=e[r++])&&(~Mr(o,n)||Ar(o,n));return o},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jr=Ir,Rr=Nr,Fr=Object.keys||function(t){return jr(t,Rr)},Lr=N,Yr=un,zr=an,Hr=pn,Gr=nt,Br=Fr;vr.f=Lr&&!Yr?Object.defineProperties:function(t,e){Hr(t);for(var n,i=Gr(e),r=Br(e),o=r.length,s=0;o>s;)zr.f(t,n=r[s++],i[n]);return t};var Wr,Vr=dt("document","documentElement"),Ur=he,qr=te("keys"),Xr=function(t){return qr[t]||(qr[t]=Ur(t))},$r=pn,Kr=vr,Qr=Nr,Zr=Tr,Jr=Vr,to=Ne,eo=">",no="<",io="prototype",ro="script",oo=Xr("IE_PROTO"),so=function(){},ao=function(t){return no+ro+eo+t+no+"/"+ro+eo},lo=function(t){t.write(ao("")),t.close();var e=t.parentWindow.Object;return t=null,e},uo=function(){var t,e=to("iframe"),n="java"+ro+":";return e.style.display="none",Jr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(ao("document.F=Object")),t.close(),t.F},co=function(){try{Wr=new ActiveXObject("htmlfile")}catch(t){}co="undefined"!=typeof document?document.domain&&Wr?lo(Wr):uo():lo(Wr);for(var t=Qr.length;t--;)delete co[io][Qr[t]];return co()};Zr[oo]=!0;var ho=Object.create||function(t,e){var n;return null!==t?(so[io]=$r(t),n=new so,so[io]=null,n[oo]=t):n=co(),void 0===e?n:Kr.f(n,e)},po={},fo=Ir,mo=Nr.concat("length","prototype");po.f=Object.getOwnPropertyNames||function(t){return fo(t,mo)};var vo={},go=wr,yo=ri,bo=hi,wo=Array,_o=Math.max,ko=function(t,e,n){for(var i=yo(t),r=go(e,i),o=go(void 0===n?i:n,i),s=wo(_o(o-r,0)),a=0;ry;y++)if((a||y in m)&&(p=v(d=m[y],y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:Cs(w,d)}else switch(t){case 4:return!1;case 7:Cs(w,d)}return o?-1:i||r?r:w}},Es={forEach:Os(0),map:Os(1),filter:Os(2),some:Os(3),every:Os(4),find:Os(5),findIndex:Os(6),filterReject:Os(7)},Ms=Yn,Ps=a,As=F,Is=b,Ns=N,js=Dt,Rs=l,Fs=se,Ls=pt,Ys=pn,zs=nt,Hs=Me,Gs=mr,Bs=W,Ws=ho,Vs=Fr,Us=po,qs=vo,Xs=Eo,$s=I,Ks=an,Qs=vr,Zs=L,Js=Po,ta=Io,ea=te,na=Xr,ia=Tr,ra=he,oa=we,sa=No,aa=Bo,la=Xo,ua=is,ca=_s,ha=Es.forEach,da=na("hidden"),pa="Symbol",fa="prototype",ma=ca.set,va=ca.getterFor(pa),ga=Object[fa],ya=Ps.Symbol,ba=ya&&ya[fa],wa=Ps.RangeError,_a=Ps.TypeError,ka=Ps.QObject,xa=$s.f,Sa=Ks.f,Da=qs.f,Ta=Zs.f,Ca=Is([].push),Oa=ea("symbols"),Ea=ea("op-symbols"),Ma=ea("wks"),Pa=!ka||!ka[fa]||!ka[fa].findChild,Aa=function(t,e,n){var i=xa(ga,e);i&&delete ga[e],Sa(t,e,n),i&&t!==ga&&Sa(ga,e,i)},Ia=Ns&&Rs((function(){return 7!==Ws(Sa({},"a",{get:function(){return Sa(this,"a",{value:7}).a}})).a}))?Aa:Sa,Na=function(t,e){var n=Oa[t]=Ws(ba);return ma(n,{type:pa,tag:t,description:e}),Ns||(n.description=e),n},ja=function(t,e,n){t===ga&&ja(Ea,e,n),Ys(t);var i=Hs(e);return Ys(n),Fs(Oa,i)?(n.enumerable?(Fs(t,da)&&t[da][i]&&(t[da][i]=!1),n=Ws(n,{enumerable:Bs(0,!1)})):(Fs(t,da)||Sa(t,da,Bs(1,{})),t[da][i]=!0),Ia(t,i,n)):Sa(t,i,n)},Ra=function(t,e){Ys(t);var n=zs(e),i=Vs(n).concat(Ha(n));return ha(i,(function(e){Ns&&!As(La,n,e)||ja(t,e,n[e])})),t},Fa=function(t,e){return void 0===e?Ws(t):Ra(Ws(t),e)},La=function(t){var e=Hs(t),n=As(Ta,this,e);return!(this===ga&&Fs(Oa,e)&&!Fs(Ea,e))&&(!(n||!Fs(this,e)||!Fs(Oa,e)||Fs(this,da)&&this[da][e])||n)},Ya=function(t,e){var n=zs(t),i=Hs(e);if(n!==ga||!Fs(Oa,i)||Fs(Ea,i)){var r=xa(n,i);return!r||!Fs(Oa,i)||Fs(n,da)&&n[da][i]||(r.enumerable=!0),r}},za=function(t){var e=Da(zs(t)),n=[];return ha(e,(function(t){Fs(Oa,t)||Fs(ia,t)||Ca(n,t)})),n},Ha=function(t){var e=t===ga,n=Da(e?Ea:zs(t)),i=[];return ha(n,(function(t){!Fs(Oa,t)||e&&!Fs(ga,t)||Ca(i,Oa[t])})),i};js||(ya=function(){if(Ls(ba,this))throw new _a("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Gs(arguments[0]):void 0,e=ra(t),n=function(t){var i=void 0===this?Ps:this;i===ga&&As(n,Ea,t),Fs(i,da)&&Fs(i[da],e)&&(i[da][e]=!1);var r=Bs(1,t);try{Ia(i,e,r)}catch(t){if(!(t instanceof wa))throw t;Aa(i,e,r)}};return Ns&&Pa&&Ia(ga,e,{configurable:!0,set:n}),Na(e,t)},Js(ba=ya[fa],"toString",(function(){return va(this).tag})),Js(ya,"withoutSetter",(function(t){return Na(ra(t),t)})),Zs.f=La,Ks.f=ja,Qs.f=Ra,$s.f=Ya,Us.f=qs.f=za,Xs.f=Ha,sa.f=function(t){return Na(oa(t),t)},Ns&&ta(ba,"description",{configurable:!0,get:function(){return va(this).description}})),Ms({global:!0,constructor:!0,wrap:!0,forced:!js,sham:!js},{Symbol:ya}),ha(Vs(Ma),(function(t){aa(t)})),Ms({target:pa,stat:!0,forced:!js},{useSetter:function(){Pa=!0},useSimple:function(){Pa=!1}}),Ms({target:"Object",stat:!0,forced:!js,sham:!Ns},{create:Fa,defineProperty:ja,defineProperties:Ra,getOwnPropertyDescriptor:Ya}),Ms({target:"Object",stat:!0,forced:!js},{getOwnPropertyNames:za}),la(),ua(ya,pa),ia[da]=!0;var Ga=Dt&&!!Symbol.for&&!!Symbol.keyFor,Ba=Yn,Wa=dt,Va=se,Ua=mr,qa=te,Xa=Ga,$a=qa("string-to-symbol-registry"),Ka=qa("symbol-to-string-registry");Ba({target:"Symbol",stat:!0,forced:!Xa},{for:function(t){var e=Ua(t);if(Va($a,e))return $a[e];var n=Wa("Symbol")(e);return $a[e]=n,Ka[n]=e,n}});var Qa=Yn,Za=se,Ja=Pt,tl=It,el=Ga,nl=te("symbol-to-string-registry");Qa({target:"Symbol",stat:!0,forced:!el},{keyFor:function(t){if(!Ja(t))throw new TypeError(tl(t)+" is not a symbol");if(Za(nl,t))return nl[t]}});var il=b([].slice),rl=$n,ol=A,sl=x,al=mr,ll=b([].push),ul=Yn,cl=dt,hl=f,dl=F,pl=b,fl=l,ml=A,vl=Pt,gl=il,yl=function(t){if(ol(t))return t;if(rl(t)){for(var e=t.length,n=[],i=0;i=e.length)return t.target=void 0,ic(void 0,!0);switch(t.kind){case"keys":return ic(n,!1);case"values":return ic(e[n],!1)}return ic([n,e[n]],!1)}),"values"),tc.Arguments=tc.Array;var ac={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lc=a,uc=ki,cc=Cn,hc=Ul,dc=we("toStringTag");for(var pc in ac){var fc=lc[pc],mc=fc&&fc.prototype;mc&&uc(mc)!==dc&&cc(mc,dc,pc),hc[pc]=hc.Array}var vc=Vl,gc=we,yc=an.f,bc=gc("metadata"),wc=Function.prototype;void 0===wc[bc]&&yc(wc,bc,{value:null}),Bo("asyncDispose"),Bo("dispose"),Bo("metadata");var _c=vc,kc=b,xc=dt("Symbol"),Sc=xc.keyFor,Dc=kc(xc.prototype.valueOf),Tc=xc.isRegisteredSymbol||function(t){try{return void 0!==Sc(Dc(t))}catch(t){return!1}};Yn({target:"Symbol",stat:!0},{isRegisteredSymbol:Tc});for(var Cc=te,Oc=dt,Ec=b,Mc=Pt,Pc=we,Ac=Oc("Symbol"),Ic=Ac.isWellKnownSymbol,Nc=Oc("Object","getOwnPropertyNames"),jc=Ec(Ac.prototype.valueOf),Rc=Cc("wks"),Fc=0,Lc=Nc(Ac),Yc=Lc.length;Fc=a?t?"":void 0:(i=$c(o,s))<55296||i>56319||s+1===a||(r=$c(o,s+1))<56320||r>57343?t?Xc(o,s):i:t?Kc(o,s,s+2):r-56320+(i-55296<<10)+65536}},Zc=(Qc(!1),Qc(!0)),Jc=mr,th=_s,eh=Qu,nh=Zu,ih="String Iterator",rh=th.set,oh=th.getterFor(ih);eh(String,"String",(function(t){rh(this,{type:ih,string:Jc(t),index:0})}),(function(){var t,e=oh(this),n=e.string,i=e.index;return i>=n.length?nh(void 0,!0):(t=Zc(n,i),e.index+=t.length,nh(t,!1))}));var sh=No.f("iterator"),ah=sh,lh=r(ah);function uh(t){return uh="function"==typeof Bc&&"symbol"==typeof lh?function(t){return typeof t}:function(t){return t&&"function"==typeof Bc&&t.constructor===Bc&&t!==Bc.prototype?"symbol":typeof t},uh(t)}var ch=r(No.f("toPrimitive"));function hh(t,e){if("object"!==uh(t)||null===t)return t;var n=t[ch];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==uh(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function dh(t){var e=hh(t,"string");return"symbol"===uh(e)?e:String(e)}function ph(t,e){for(var n=0;n=0:a>l;l+=u)l in s&&(r=n(r,s[l],l,o));return r}},Wh={left:Bh(!1),right:Bh(!0)},Vh=l,Uh=function(t,e){var n=[][t];return!!n&&Vh((function(){n.call(null,e||function(){return 1},1)}))},qh="process"===x(a.process),Xh=Yn,$h=Wh.left,Kh=Uh,Qh=_t,Zh=!qh&&Qh>79&&Qh<83||!Kh("reduce");Xh({target:"Array",proto:!0,forced:Zh},{reduce:function(t){var e=arguments.length;return $h(this,t,e,e>1?arguments[1]:void 0)}});var Jh=Ph("Array","reduce"),td=pt,ed=Jh,nd=Array.prototype,id=r((function(t){var e=t.reduce;return t===nd||td(nd,t)&&e===nd.reduce?ed:e})),rd=Yn,od=Es.filter,sd=Qi("filter");rd({target:"Array",proto:!0,forced:!sd},{filter:function(t){return od(this,t,arguments.length>1?arguments[1]:void 0)}});var ad=Ph("Array","filter"),ld=pt,ud=ad,cd=Array.prototype,hd=r((function(t){var e=t.filter;return t===cd||ld(cd,t)&&e===cd.filter?ud:e})),dd=Yn,pd=Es.map,fd=Qi("map");dd({target:"Array",proto:!0,forced:!fd},{map:function(t){return pd(this,t,arguments.length>1?arguments[1]:void 0)}});var md=Ph("Array","map"),vd=pt,gd=md,yd=Array.prototype,bd=r((function(t){var e=t.map;return t===yd||vd(yd,t)&&e===yd.map?gd:e})),wd=$n,_d=ri,kd=ai,xd=sn,Sd=function(t,e,n,i,r,o,s,a){for(var l,u,c=r,h=0,d=!!s&&xd(s,a);h0&&wd(l)?(u=_d(l),c=Sd(t,e,l,u,c,o-1)-1):(kd(c+1),t[c]=l),c++),h++;return c},Dd=Sd,Td=Ft,Cd=ie,Od=ri,Ed=qi;Yn({target:"Array",proto:!0},{flatMap:function(t){var e,n=Cd(this),i=Od(n);return Td(t),(e=Ed(n,0)).length=Dd(e,n,n,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var Md=Ph("Array","flatMap"),Pd=pt,Ad=Md,Id=Array.prototype,Nd=r((function(t){var e=t.flatMap;return t===Id||Pd(Id,t)&&e===Id.flatMap?Ad:e}));function jd(t){return new Fd(t)}var Rd=function(){function t(e,i,r){var o,s,a;n(this,t),mh(this,"_listeners",{add:Fh(o=this._add).call(o,this),remove:Fh(s=this._remove).call(s,this),update:Fh(a=this._update).call(a,this)}),this._source=e,this._transformers=i,this._target=r}return fh(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return id(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),Fd=function(){function t(e){n(this,t),mh(this,"_transformers",[]),this._source=e}return fh(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return hd(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return bd(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Nd(e).call(e,t)})),this}},{key:"to",value:function(t){return new Rd(this._source,this._transformers,t)}}]),t}(),Ld=F,Yd=pn,zd=zt,Hd=function(t,e,n){var i,r;Yd(t);try{if(!(i=zd(t,"return"))){if("throw"===e)throw n;return n}i=Ld(i,t)}catch(t){r=!0,i=t}if("throw"===e)throw n;if(r)throw i;return Yd(i),n},Gd=pn,Bd=Hd,Wd=function(t,e,n,i){try{return i?e(Gd(n)[0],n[1]):e(n)}catch(e){Bd(t,"throw",e)}},Vd=Ul,Ud=we("iterator"),qd=Array.prototype,Xd=function(t){return void 0!==t&&(Vd.Array===t||qd[Ud]===t)},$d=ki,Kd=zt,Qd=K,Zd=Ul,Jd=we("iterator"),tp=function(t){if(!Qd(t))return Kd(t,Jd)||Kd(t,"@@iterator")||Zd[$d(t)]},ep=F,np=Ft,ip=pn,rp=It,op=tp,sp=TypeError,ap=function(t,e){var n=arguments.length<2?op(t):e;if(np(n))return ip(ep(n,t));throw new sp(rp(t)+" is not iterable")},lp=sn,up=F,cp=ie,hp=Wd,dp=Xd,pp=zi,fp=ri,mp=hi,vp=ap,gp=tp,yp=Array,bp=function(t){var e=cp(t),n=pp(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=lp(r,i>2?arguments[2]:void 0));var s,a,l,u,c,h,d=gp(e),p=0;if(!d||this===yp&&dp(d))for(s=fp(e),a=n?new this(s):yp(s);s>p;p++)h=o?r(e[p],p):e[p],mp(a,p,h);else for(c=(u=vp(e,d)).next,a=n?new this:[];!(l=up(c,u)).done;p++)h=o?hp(u,r,[l.value,p],!0):l.value,mp(a,p,h);return a.length=p,a},wp=we("iterator"),_p=!1;try{var kp=0,xp={next:function(){return{done:!!kp++}},return:function(){_p=!0}};xp[wp]=function(){return this},Array.from(xp,(function(){throw 2}))}catch(t){}var Sp=function(t,e){try{if(!e&&!_p)return!1}catch(t){return!1}var n=!1;try{var i={};i[wp]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n},Dp=Yn,Tp=bp,Cp=!Sp((function(t){Array.from(t)}));Dp({target:"Array",stat:!0,forced:Cp},{from:Tp});var Op=at.Array.from,Ep=r(Op),Mp=tp,Pp=r(Mp),Ap=r(Mp);Yn({target:"Array",stat:!0},{isArray:$n});var Ip=at.Array.isArray,Np=r(Ip);function jp(t){if(Np(t))return t}var Rp=N,Fp=$n,Lp=TypeError,Yp=Object.getOwnPropertyDescriptor,zp=Rp&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Fp(t)&&!Yp(t,"length").writable)throw new Lp("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Hp=Yn,Gp=ie,Bp=ri,Wp=zp,Vp=ai,Up=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),qp=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},Xp=Up||!qp();Hp({target:"Array",proto:!0,arity:1,forced:Xp},{push:function(t){var e=Gp(this),n=Bp(e),i=arguments.length;Vp(n+i);for(var r=0;rt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?arguments[1]:void 0)};Yn({target:"Array",proto:!0,forced:[].forEach!==tm},{forEach:tm});var em=Ph("Array","forEach"),nm=ki,im=se,rm=pt,om=em,sm=Array.prototype,am={DOMTokenList:!0,NodeList:!0},lm=function(t){var e=t.forEach;return t===sm||rm(sm,t)&&e===sm.forEach||im(am,nm(t))?om:e},um=r(lm),cm=Yn,hm=$n,dm=b([].reverse),pm=[1,2];cm({target:"Array",proto:!0,forced:String(pm)===String(pm.reverse())},{reverse:function(){return hm(this)&&(this.length=this.length),dm(this)}});var fm=Ph("Array","reverse"),mm=pt,vm=fm,gm=Array.prototype,ym=function(t){var e=t.reverse;return t===gm||mm(gm,t)&&e===gm.reverse?vm:e},bm=r(ym),wm=It,_m=TypeError,km=function(t,e){if(!delete t[e])throw new _m("Cannot delete property "+wm(e)+" of "+wm(t))},xm=Yn,Sm=ie,Dm=wr,Tm=ti,Cm=ri,Om=zp,Em=ai,Mm=qi,Pm=hi,Am=km,Im=Qi("splice"),Nm=Math.max,jm=Math.min;xm({target:"Array",proto:!0,forced:!Im},{splice:function(t,e){var n,i,r,o,s,a,l=Sm(this),u=Cm(l),c=Dm(t,u),h=arguments.length;for(0===h?n=i=0:1===h?(n=0,i=u-c):(n=h-2,i=jm(Nm(Tm(e),0),u-c)),Em(u+n-i),r=Mm(l,i),o=0;ou-i+n;o--)Am(l,o-1)}else if(n>i)for(o=u-i;o>c;o--)a=o+n-1,(s=o+i-1)in l?l[a]=l[s]:Am(l,a);for(o=0;or;)for(var a,l=$m(arguments[r++]),u=o?Zm(Vm(l),o(l)):Vm(l),c=u.length,h=0;c>h;)a=u[h++],Hm&&!Bm(s,l,a)||(n[a]=l[a]);return n}:Km,tv=Jm;Yn({target:"Object",stat:!0,arity:2,forced:Object.assign!==tv},{assign:tv});var ev=r(at.Object.assign),nv=Yn,iv=ie,rv=uu,ov=eu,sv=l((function(){rv(1)}));nv({target:"Object",stat:!0,forced:sv,sham:!ov},{getPrototypeOf:function(t){return rv(iv(t))}});var av=at.Object.getPrototypeOf;Yn({target:"Object",stat:!0,sham:!N},{create:ho});var lv=at.Object,uv=function(t,e){return lv.create(t,e)},cv=r(uv),hv=at,dv=f;hv.JSON||(hv.JSON={stringify:JSON.stringify});var pv=function(t,e,n){return dv(hv.JSON.stringify,null,arguments)},fv=r(pv),mv="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,vv=TypeError,gv=function(t,e){if(tn,s=wv(i)?i:Dv(i),a=o?xv(arguments,n):[],l=o?function(){bv(s,this,a)}:s;return e?t(l,r):t(l)}:t},Ov=Yn,Ev=a,Mv=Cv(Ev.setInterval,!0);Ov({global:!0,bind:!0,forced:Ev.setInterval!==Mv},{setInterval:Mv});var Pv=Yn,Av=a,Iv=Cv(Av.setTimeout,!0);Pv({global:!0,bind:!0,forced:Av.setTimeout!==Iv},{setTimeout:Iv});var Nv=r(at.setTimeout),jv={exports:{}};!function(t){function e(t){if(t)return n(t);this._callbacks=new Map}function n(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...i)=>{this.off(t,n),e.apply(this,i)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,i]of n.entries())if(i===e||i.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(jv);var Rv,Fv=r(jv.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 Lv(){return Lv=Object.assign||function(t){for(var e=1;e-1}function Ag(t){if(Pg(t,ng))return ng;var e=Pg(t,ig),n=Pg(t,rg);return e&&n?ng:e||n?e?ig:rg:Pg(t,eg)?eg:tg}var Ig=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Jv&&(t=this.compute()),Qv&&this.manager.element.style&&og[t]&&(this.manager.element.style[Kv]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Eg(this.manager.recognizers,(function(e){Mg(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),Ag(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=Pg(i,ng)&&!og[ng],o=Pg(i,rg)&&!og[rg],s=Pg(i,ig)&&!og[ig];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&Sg||s&&n&Dg?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Ng(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function jg(t){var e=t.length;if(1===e)return{x:Uv(t[0].clientX),y:Uv(t[0].clientY)};for(var n=0,i=0,r=0;r=qv(e)?t<0?wg:_g:e<0?kg:xg}function zg(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==mg&&o.eventType!==gg||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function Hg(t,e,n){return{x:e/t||0,y:n/t||0}}function Gg(t,e){return Fg(e[0],e[1],Og)/Fg(t[0],t[1],Og)}function Bg(t,e){return Lg(e[1],e[0],Og)+Lg(t[1],t[0],Og)}function Wg(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==yg&&(a>fg||void 0===s.velocity)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=Hg(a,l,u);i=c.x,r=c.y,n=qv(c.x)>qv(c.y)?c.x:c.y,o=Yg(l,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function Vg(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=Rg(e)),r>1&&!n.firstMultiple?n.firstMultiple=Rg(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=e.center=jg(i);e.timeStamp=Xv(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Lg(a,l),e.distance=Fg(a,l),zg(n,e),e.offsetDirection=Yg(e.deltaX,e.deltaY);var u=Hg(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=qv(u.x)>qv(u.y)?u.x:u.y,e.scale=s?Gg(s.pointers,i):1,e.rotation=s?Bg(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,Wg(n,e);var c,h=t.element,d=e.srcEvent;Ng(c=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target,h)&&(h=c),e.target=h}function Ug(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&mg&&i-r==0,s=e&(gg|yg)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Vg(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function qg(t){return t.trim().split(/\s+/g)}function Xg(t,e,n){Eg(qg(e),(function(e){t.addEventListener(e,n,!1)}))}function $g(t,e,n){Eg(qg(e),(function(e){t.removeEventListener(e,n,!1)}))}function Kg(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Qg=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Mg(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Xg(this.element,this.evEl,this.domHandler),this.evTarget&&Xg(this.target,this.evTarget,this.domHandler),this.evWin&&Xg(Kg(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&$g(this.element,this.evEl,this.domHandler),this.evTarget&&$g(this.target,this.evTarget,this.domHandler),this.evWin&&$g(Kg(this.element),this.evWin,this.domHandler)},t}();function Zg(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]})):i.sort()),i}var sy={touchstart:mg,touchmove:vg,touchend:gg,touchcancel:yg},ay="touchstart touchmove touchend touchcancel",ly=function(t){function e(){var n;return e.prototype.evTarget=ay,(n=t.apply(this,arguments)||this).targetIds={},n}return Yv(e,t),e.prototype.handler=function(t){var e=sy[t.type],n=uy.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:cg,srcEvent:t})},e}(Qg);function uy(t,e){var n,i,r=ry(t.touches),o=this.targetIds;if(e&(mg|vg)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=ry(t.changedTouches),a=[],l=this.target;if(i=r.filter((function(t){return Ng(t.target,l)})),e===mg)for(n=0;n-1&&i.splice(t,1)};setTimeout(r,fy)}}function gy(t,e){t&mg?(this.primaryTouch=e.changedPointers[0].identifier,vy.call(this,e)):t&(gg|yg)&&vy.call(this,e)}function yy(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n=Dy&&i(e.options.event+Ay(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Oy},e.canEmit=function(){for(var t=0;te.threshold&&r&e.direction},n.attrTest=function(t){return jy.prototype.attrTest.call(this,t)&&(this.state&xy||!(this.state&xy)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Ry(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(jy),Ly=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Lv({event:"swipe",threshold:10,velocity:.3,direction:Sg|Dg,pointers:1},e))||this}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return Fy.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,i=this.options.direction;return i&(Sg|Dg)?n=e.overallVelocity:i&Sg?n=e.overallVelocityX:i&Dg&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&qv(n)>this.options.velocity&&e.eventType&gg},n.emit=function(t){var e=Ry(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(jy),Yy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Lv({event:"pinch",threshold:0,pointers:2},e))||this}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ng]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&xy)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(jy),zy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Lv({event:"rotate",threshold:0,pointers:2},e))||this}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ng]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&xy)},e}(jy),Hy=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Lv({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[tg]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distancen.time;if(this._input=t,!r||!i||t.eventType&(gg|yg)&&!o)this.reset();else if(t.eventType&mg)this.reset(),this._timer=setTimeout((function(){e.state=Ty,e.tryEmit()}),n.time);else if(t.eventType&gg)return Ty;return Oy},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){this.state===Ty&&(t&&t.eventType&gg?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Xv(),this.manager.emit(this.options.event,this._input)))},e}(Iy),Gy={domEvents:!1,touchAction:Jv,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},By=[[zy,{enable:!1}],[Yy,{enable:!1},["rotate"]],[Ly,{direction:Sg}],[Fy,{direction:Sg},["swipe"]],[Ny],[Ny,{event:"doubletap",taps:2},["tap"]],[Hy]],Wy=1,Vy=2;function Uy(t,e){var n,i=t.element;i.style&&(Eg(t.options.cssProps,(function(r,o){n=$v(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function qy(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var Xy=function(){function t(t,e){var n=this;this.options=Gv({},Gy,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=wy(this),this.touchAction=new Ig(this,this.options.touchAction),Uy(this,!0),Eg(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Gv(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?Vy:Wy},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&Ty)&&(e.curRecognizer=null,r=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),t.apply(this,arguments)}}var eb=tb((function(t,e,n){for(var i=Object.keys(e),r=0;r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ab(t,e){var n;if(t){if("string"==typeof t)return lb(t,e);var i=Yf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?lb(t,e):void 0}}function lb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?n-1:0),r=1;r2)return db.apply(void 0,Lf(i=[hb(e[0],e[1])]).call(i,Af(Yf(e).call(e,2))));var r=e[0],o=e[1];if(r instanceof Date&&o instanceof Date)return r.setTime(o.getTime()),r;var s,a=sb(Uf(o));try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===ub?delete r[l]:null===r[l]||null===o[l]||"object"!=typeof r[l]||"object"!=typeof o[l]||qf(r[l])||qf(o[l])?r[l]=pb(o[l]):r[l]=db(r[l],o[l]))}}catch(t){a.e(t)}finally{a.f()}return r}function pb(t){return qf(t)?bd(t).call(t,(function(t){return pb(t)})):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):db({},t):t}function fb(t){for(var e=0,n=Zf(t);e({set:t})}}var vb="undefined"!=typeof window?window.Hammer||ob:function(){return mb()};function gb(t){var e,n=this;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((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var i=vb(this._dom.overlay);i.on("tap",Fh(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){i.destroy()}));var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];um(r).call(r,(function(t){i.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){yb(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}function yb(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}Fv(gb.prototype),gb.current=null,gb.prototype.destroy=function(){var t,e;this.deactivate();var n,i=sb(bm(t=zm(e=this._cleanupQueue).call(e,0)).call(t));try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(t){i.e(t)}finally{i.f()}},gb.prototype.activate=function(){gb.current&&gb.current.deactivate(),gb.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)},gb.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")},gb.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var bb=zi,wb=It,_b=TypeError,kb=function(t){if(bb(t))return t;throw new _b(wb(t)+" is not a constructor")},xb=Yn,Sb=f,Db=Ch,Tb=kb,Cb=pn,Ob=st,Eb=ho,Mb=l,Pb=dt("Reflect","construct"),Ab=Object.prototype,Ib=[].push,Nb=Mb((function(){function t(){}return!(Pb((function(){}),[],t)instanceof t)})),jb=!Mb((function(){Pb((function(){}))})),Rb=Nb||jb;xb({target:"Reflect",stat:!0,forced:Rb,sham:Rb},{construct:function(t,e){Tb(t),Cb(e);var n=arguments.length<3?t:Tb(arguments[2]);if(jb&&!Nb)return Pb(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return Sb(Ib,i,e),new(Sb(Db,t,i))}var r=n.prototype,o=Eb(Ob(r)?r:Ab),s=Sb(t,o,e);return Ob(s)?s:o}});var Fb=r(at.Reflect.construct),Lb=r(at.Object.getOwnPropertySymbols),Yb={exports:{}},zb=Yn,Hb=l,Gb=nt,Bb=I.f,Wb=N,Vb=!Wb||Hb((function(){Bb(1)}));zb({target:"Object",stat:!0,forced:Vb,sham:!Wb},{getOwnPropertyDescriptor:function(t,e){return Bb(Gb(t),e)}});var Ub=at.Object,qb=Yb.exports=function(t,e){return Ub.getOwnPropertyDescriptor(t,e)};Ub.getOwnPropertyDescriptor.sham&&(qb.sham=!0);var Xb=r(Yb.exports),$b=Vf,Kb=nt,Qb=I,Zb=hi;Yn({target:"Object",stat:!0,sham:!N},{getOwnPropertyDescriptors:function(t){for(var e,n,i=Kb(t),r=Qb.f,o=$b(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&Zb(s,e,n);return s}});var Jb=r(at.Object.getOwnPropertyDescriptors),tw={exports:{}},ew=Yn,nw=N,iw=vr.f;ew({target:"Object",stat:!0,forced:Object.defineProperties!==iw,sham:!nw},{defineProperties:iw});var rw=at.Object,ow=tw.exports=function(t,e){return rw.defineProperties(t,e)};rw.defineProperties.sham&&(ow.sham=!0);var sw=r(tw.exports),aw=r(Vn);function lw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var uw=uv,cw=r(uw);Yn({target:"Object",stat:!0},{setPrototypeOf:Nu});var hw=at.Object.setPrototypeOf,dw=r(hw),pw=r(Rh);function fw(t,e){var n;return fw=dw?pw(n=dw).call(n):function(t,e){return t.__proto__=e,t},fw(t,e)}function mw(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=cw(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),qn(t,"prototype",{writable:!1}),e&&fw(t,e)}function vw(t,e){if(e&&("object"===uh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return lw(t)}var gw=av,yw=r(gw);function bw(t){var e;return bw=dw?pw(e=yw).call(e):function(t){return t.__proto__||yw(t)},bw(t)}var ww={exports:{}},_w={exports:{}};!function(t){var e=Gc,n=ah;function i(r){return t.exports=i="function"==typeof e&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,i(r)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}(_w);var kw=_w.exports,xw=lm,Sw=se,Dw=Vf,Tw=I,Cw=an,Ow=function(t,e,n){for(var i=Dw(e),r=Cw.f,o=Tw.f,s=0;so;o++)if((a=g(t[o]))&&Qw(i_,a))return a;return new n_(!1)}i=Zw(t,r)}for(l=d?t.next:i.next;!(u=Uw(l,i)).done;){try{a=g(u.value)}catch(t){t_(i,"throw",t)}if("object"==typeof a&&a&&Qw(i_,a))return a}return new n_(!1)},o_=mr,s_=function(t,e){return void 0===t?arguments.length<2?"":e:o_(t)},a_=Yn,l_=pt,u_=uu,c_=Nu,h_=Ow,d_=ho,p_=Cn,f_=W,m_=Pw,v_=Ww,g_=r_,y_=s_,b_=we("toStringTag"),w_=Error,__=[].push,k_=function(t,e){var n,i=l_(x_,this);c_?n=c_(new w_,i?u_(this):x_):(n=i?this:d_(x_),p_(n,b_,"Error")),void 0!==e&&p_(n,"message",y_(e)),v_(n,k_,n.stack,1),arguments.length>2&&m_(n,arguments[2]);var r=[];return g_(t,__,{that:r}),p_(n,"errors",r),n};c_?c_(k_,w_):h_(k_,w_,{name:!0});var x_=k_.prototype=d_(w_.prototype,{constructor:f_(1,k_),message:f_(1,""),name:f_(1,"AggregateError")});a_({global:!0,constructor:!0,arity:2},{AggregateError:k_});var S_,D_,T_,C_,O_=dt,E_=Io,M_=N,P_=we("species"),A_=function(t){var e=O_(t);M_&&e&&!e[P_]&&E_(e,P_,{configurable:!0,get:function(){return this}})},I_=pt,N_=TypeError,j_=function(t,e){if(I_(e,t))return t;throw new N_("Incorrect invocation")},R_=pn,F_=kb,L_=K,Y_=we("species"),z_=function(t,e){var n,i=R_(t).constructor;return void 0===i||L_(n=R_(i)[Y_])?e:F_(n)},H_=/(?:ipad|iphone|ipod).*applewebkit/i.test(ft),G_=a,B_=f,W_=sn,V_=A,U_=se,q_=l,X_=Vr,$_=il,K_=Ne,Q_=gv,Z_=H_,J_=qh,tk=G_.setImmediate,ek=G_.clearImmediate,nk=G_.process,ik=G_.Dispatch,rk=G_.Function,ok=G_.MessageChannel,sk=G_.String,ak=0,lk={},uk="onreadystatechange";q_((function(){S_=G_.location}));var ck=function(t){if(U_(lk,t)){var e=lk[t];delete lk[t],e()}},hk=function(t){return function(){ck(t)}},dk=function(t){ck(t.data)},pk=function(t){G_.postMessage(sk(t),S_.protocol+"//"+S_.host)};tk&&ek||(tk=function(t){Q_(arguments.length,1);var e=V_(t)?t:rk(t),n=$_(arguments,1);return lk[++ak]=function(){B_(e,void 0,n)},D_(ak),ak},ek=function(t){delete lk[t]},J_?D_=function(t){nk.nextTick(hk(t))}:ik&&ik.now?D_=function(t){ik.now(hk(t))}:ok&&!Z_?(C_=(T_=new ok).port2,T_.port1.onmessage=dk,D_=W_(C_.postMessage,C_)):G_.addEventListener&&V_(G_.postMessage)&&!G_.importScripts&&S_&&"file:"!==S_.protocol&&!q_(pk)?(D_=pk,G_.addEventListener("message",dk,!1)):D_=uk in K_("script")?function(t){X_.appendChild(K_("script"))[uk]=function(){X_.removeChild(this),ck(t)}}:function(t){setTimeout(hk(t),0)});var fk={set:tk,clear:ek},mk=function(){this.head=null,this.tail=null};mk.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var vk,gk,yk,bk,wk,_k=mk,kk=/ipad|iphone|ipod/i.test(ft)&&"undefined"!=typeof Pebble,xk=/web0s(?!.*chrome)/i.test(ft),Sk=a,Dk=sn,Tk=I.f,Ck=fk.set,Ok=_k,Ek=H_,Mk=kk,Pk=xk,Ak=qh,Ik=Sk.MutationObserver||Sk.WebKitMutationObserver,Nk=Sk.document,jk=Sk.process,Rk=Sk.Promise,Fk=Tk(Sk,"queueMicrotask"),Lk=Fk&&Fk.value;if(!Lk){var Yk=new Ok,zk=function(){var t,e;for(Ak&&(t=jk.domain)&&t.exit();e=Yk.get();)try{e()}catch(t){throw Yk.head&&vk(),t}t&&t.enter()};Ek||Ak||Pk||!Ik||!Nk?!Mk&&Rk&&Rk.resolve?((bk=Rk.resolve(void 0)).constructor=Rk,wk=Dk(bk.then,bk),vk=function(){wk(zk)}):Ak?vk=function(){jk.nextTick(zk)}:(Ck=Dk(Ck,Sk),vk=function(){Ck(zk)}):(gk=!0,yk=Nk.createTextNode(""),new Ik(zk).observe(yk,{characterData:!0}),vk=function(){yk.data=gk=!gk}),Lk=function(t){Yk.head||vk(),Yk.add(t)}}var Hk=Lk,Gk=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},Bk=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Wk=a.Promise,Vk="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Uk=qh,qk=!Vk&&!Uk&&"object"==typeof window&&"object"==typeof document,Xk=a,$k=Wk,Kk=A,Qk=en,Zk=Ti,Jk=we,tx=qk,ex=Vk,nx=_t,ix=$k&&$k.prototype,rx=Jk("species"),ox=!1,sx=Kk(Xk.PromiseRejectionEvent),ax={CONSTRUCTOR:Qk("Promise",(function(){var t=Zk($k),e=t!==String($k);if(!e&&66===nx)return!0;if(!ix.catch||!ix.finally)return!0;if(!nx||nx<51||!/native code/.test(t)){var n=new $k((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((n.constructor={})[rx]=i,!(ox=n.then((function(){}))instanceof i))return!0}return!e&&(tx||ex)&&!sx})),REJECTION_EVENT:sx,SUBCLASSING:ox},lx={},ux=Ft,cx=TypeError,hx=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw new cx("Bad Promise constructor");e=t,n=i})),this.resolve=ux(e),this.reject=ux(n)};lx.f=function(t){return new hx(t)};var dx,px,fx,mx=Yn,vx=qh,gx=a,yx=F,bx=Po,wx=is,_x=A_,kx=Ft,xx=A,Sx=st,Dx=j_,Tx=z_,Cx=fk.set,Ox=Hk,Ex=Gk,Mx=Bk,Px=_k,Ax=_s,Ix=Wk,Nx=ax,jx=lx,Rx="Promise",Fx=Nx.CONSTRUCTOR,Lx=Nx.REJECTION_EVENT,Yx=Ax.getterFor(Rx),zx=Ax.set,Hx=Ix&&Ix.prototype,Gx=Ix,Bx=Hx,Wx=gx.TypeError,Vx=gx.document,Ux=gx.process,qx=jx.f,Xx=qx,$x=!!(Vx&&Vx.createEvent&&gx.dispatchEvent),Kx="unhandledrejection",Qx="rejectionhandled",Zx=0,Jx=1,tS=2,eS=1,nS=2,iS=function(t){var e;return!(!Sx(t)||!xx(e=t.then))&&e},rS=function(t,e){var n,i,r,o=e.value,s=e.state===Jx,a=s?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{a?(s||(e.rejection===nS&&uS(e),e.rejection=eS),!0===a?n=o:(c&&c.enter(),n=a(o),c&&(c.exit(),r=!0)),n===t.promise?u(new Wx("Promise-chain cycle")):(i=iS(n))?yx(i,n,l,u):l(n)):u(o)}catch(t){c&&!r&&c.exit(),u(t)}},oS=function(t,e){t.notified||(t.notified=!0,Ox((function(){for(var n,i=t.reactions;n=i.get();)rS(n,t);t.notified=!1,e&&!t.rejection&&aS(t)})))},sS=function(t,e,n){var i,r;$x?((i=Vx.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),gx.dispatchEvent(i)):i={promise:e,reason:n},!Lx&&(r=gx["on"+t])?r(i):t===Kx&&Ex("Unhandled promise rejection",n)},aS=function(t){yx(Cx,gx,(function(){var e,n=t.facade,i=t.value;if(lS(t)&&(e=Mx((function(){vx?Ux.emit("unhandledRejection",i,n):sS(Kx,n,i)})),t.rejection=vx||lS(t)?nS:eS,e.error))throw e.value}))},lS=function(t){return t.rejection!==eS&&!t.parent},uS=function(t){yx(Cx,gx,(function(){var e=t.facade;vx?Ux.emit("rejectionHandled",e):sS(Qx,e,t.value)}))},cS=function(t,e,n){return function(i){t(e,i,n)}},hS=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=tS,oS(t,!0))},dS=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new Wx("Promise can't be resolved itself");var i=iS(e);i?Ox((function(){var n={done:!1};try{yx(i,e,cS(dS,n,t),cS(hS,n,t))}catch(e){hS(n,e,t)}})):(t.value=e,t.state=Jx,oS(t,!1))}catch(e){hS({done:!1},e,t)}}};Fx&&(Bx=(Gx=function(t){Dx(this,Bx),kx(t),yx(dx,this);var e=Yx(this);try{t(cS(dS,e),cS(hS,e))}catch(t){hS(e,t)}}).prototype,(dx=function(t){zx(this,{type:Rx,done:!1,notified:!1,parent:!1,reactions:new Px,rejection:!1,state:Zx,value:void 0})}).prototype=bx(Bx,"then",(function(t,e){var n=Yx(this),i=qx(Tx(this,Gx));return n.parent=!0,i.ok=!xx(t)||t,i.fail=xx(e)&&e,i.domain=vx?Ux.domain:void 0,n.state===Zx?n.reactions.add(i):Ox((function(){rS(i,n)})),i.promise})),px=function(){var t=new dx,e=Yx(t);this.promise=t,this.resolve=cS(dS,e),this.reject=cS(hS,e)},jx.f=qx=function(t){return t===Gx||t===fx?new px(t):Xx(t)}),mx({global:!0,constructor:!0,wrap:!0,forced:Fx},{Promise:Gx}),wx(Gx,Rx,!1,!0),_x(Rx);var pS=Wk,fS=Sp,mS=ax.CONSTRUCTOR||!fS((function(t){pS.all(t).then(void 0,(function(){}))})),vS=F,gS=Ft,yS=lx,bS=Bk,wS=r_;Yn({target:"Promise",stat:!0,forced:mS},{all:function(t){var e=this,n=yS.f(e),i=n.resolve,r=n.reject,o=bS((function(){var n=gS(e.resolve),o=[],s=0,a=1;wS(t,(function(t){var l=s++,u=!1;a++,vS(n,e,t).then((function(t){u||(u=!0,o[l]=t,--a||i(o))}),r)})),--a||i(o)}));return o.error&&r(o.value),n.promise}});var _S=Yn,kS=ax.CONSTRUCTOR,xS=Wk;xS&&xS.prototype,_S({target:"Promise",proto:!0,forced:kS,real:!0},{catch:function(t){return this.then(void 0,t)}});var SS=F,DS=Ft,TS=lx,CS=Bk,OS=r_;Yn({target:"Promise",stat:!0,forced:mS},{race:function(t){var e=this,n=TS.f(e),i=n.reject,r=CS((function(){var r=DS(e.resolve);OS(t,(function(t){SS(r,e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var ES=Yn,MS=F,PS=lx,AS=ax.CONSTRUCTOR;ES({target:"Promise",stat:!0,forced:AS},{reject:function(t){var e=PS.f(this);return MS(e.reject,void 0,t),e.promise}});var IS=pn,NS=st,jS=lx,RS=function(t,e){if(IS(t),NS(e)&&e.constructor===t)return e;var n=jS.f(t);return(0,n.resolve)(e),n.promise},FS=Yn,LS=dt,YS=qt,zS=Wk,HS=ax.CONSTRUCTOR,GS=RS,BS=LS("Promise"),WS=!HS;FS({target:"Promise",stat:!0,forced:YS},{resolve:function(t){return GS(WS&&this===BS?zS:this,t)}});var VS=F,US=Ft,qS=lx,XS=Bk,$S=r_;Yn({target:"Promise",stat:!0,forced:mS},{allSettled:function(t){var e=this,n=qS.f(e),i=n.resolve,r=n.reject,o=XS((function(){var n=US(e.resolve),r=[],o=0,s=1;$S(t,(function(t){var a=o++,l=!1;s++,VS(n,e,t).then((function(t){l||(l=!0,r[a]={status:"fulfilled",value:t},--s||i(r))}),(function(t){l||(l=!0,r[a]={status:"rejected",reason:t},--s||i(r))}))})),--s||i(r)}));return o.error&&r(o.value),n.promise}});var KS=F,QS=Ft,ZS=dt,JS=lx,tD=Bk,eD=r_,nD="No one promise resolved";Yn({target:"Promise",stat:!0,forced:mS},{any:function(t){var e=this,n=ZS("AggregateError"),i=JS.f(e),r=i.resolve,o=i.reject,s=tD((function(){var i=QS(e.resolve),s=[],a=0,l=1,u=!1;eD(t,(function(t){var c=a++,h=!1;l++,KS(i,e,t).then((function(t){h||u||(u=!0,r(t))}),(function(t){h||u||(h=!0,s[c]=t,--l||o(new n(s,nD)))}))})),--l||o(new n(s,nD))}));return s.error&&o(s.value),i.promise}});var iD=Yn,rD=Wk,oD=l,sD=dt,aD=A,lD=z_,uD=RS,cD=rD&&rD.prototype,hD=!!rD&&oD((function(){cD.finally.call({then:function(){}},(function(){}))}));iD({target:"Promise",proto:!0,real:!0,forced:hD},{finally:function(t){var e=lD(this,sD("Promise")),n=aD(t);return this.then(n?function(n){return uD(e,t()).then((function(){return n}))}:t,n?function(n){return uD(e,t()).then((function(){throw n}))}:t)}});var dD=at.Promise,pD=lx;Yn({target:"Promise",stat:!0},{withResolvers:function(){var t=pD.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var fD=dD,mD=lx,vD=Bk;Yn({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=mD.f(this),n=vD(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var gD=fD,yD=ym;!function(t){var e=kw.default,n=Un,i=Gc,r=uw,o=gw,s=xw,a=Jp,l=hw,u=gD,c=yD,h=kf;function d(){t.exports=d=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var p,f={},m=Object.prototype,v=m.hasOwnProperty,g=n||function(t,e,n){t[e]=n.value},y="function"==typeof i?i:{},b=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag";function k(t,e,i){return n(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{k({},"")}catch(p){k=function(t,e,n){return t[e]=n}}function x(t,e,n,i){var o=e&&e.prototype instanceof M?e:M,s=r(o.prototype),a=new G(i||[]);return g(s,"_invoke",{value:L(t,n,a)}),s}function S(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}f.wrap=x;var D="suspendedStart",T="suspendedYield",C="executing",O="completed",E={};function M(){}function P(){}function A(){}var I={};k(I,b,(function(){return this}));var N=o&&o(o(B([])));N&&N!==m&&v.call(N,b)&&(I=N);var j=A.prototype=M.prototype=r(I);function R(t){var e;s(e=["next","throw","return"]).call(e,(function(e){k(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,n){function i(r,o,s,a){var l=S(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==e(c)&&v.call(c,"__await")?n.resolve(c.__await).then((function(t){i("next",t,s,a)}),(function(t){i("throw",t,s,a)})):n.resolve(c).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,a)}))}a(l.arg)}var r;g(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,r){i(t,e,n,r)}))}return r=r?r.then(o,o):o()}})}function L(t,e,n){var i=D;return function(r,o){if(i===C)throw new Error("Generator is already running");if(i===O){if("throw"===r)throw o;return{value:p,done:!0}}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=Y(s,n);if(a){if(a===E)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===D)throw i=O,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=C;var l=S(t,e,n);if("normal"===l.type){if(i=n.done?O:T,l.arg===E)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=O,n.method="throw",n.arg=l.arg)}}}function Y(t,e){var n=e.method,i=t.iterator[n];if(i===p)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=p,Y(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),E;var r=S(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,E;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=p),e.delegate=null,E):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function z(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),a(e=this.tryEntries).call(e,n)}function H(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],s(t).call(t,z,this),this.reset(!0)}function B(t){if(t||""===t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=v.call(r,"catchLoc"),a=v.call(r,"finallyLoc");if(s&&a){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&v.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),H(n),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;H(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=p),E}},f}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports}(ww);var bD=(0,ww.exports)(),wD=bD;try{regeneratorRuntime=bD}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=bD:Function("r","regeneratorRuntime = r")(bD)}var _D=r(wD),kD={exports:{}},xD=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),SD=l,DD=st,TD=x,CD=xD,OD=Object.isExtensible,ED=SD((function(){OD(1)}))||CD?function(t){return!!DD(t)&&(!CD||"ArrayBuffer"!==TD(t))&&(!OD||OD(t))}:OD,MD=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),PD=Yn,AD=b,ID=Tr,ND=st,jD=se,RD=an.f,FD=po,LD=vo,YD=ED,zD=MD,HD=!1,GD=he("meta"),BD=0,WD=function(t){RD(t,GD,{value:{objectID:"O"+BD++,weakData:{}}})},VD=function(t,e){if(!ND(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!jD(t,GD)){if(!YD(t))return"F";if(!e)return"E";WD(t)}return t[GD].objectID},UD=function(t,e){if(!jD(t,GD)){if(!YD(t))return!0;if(!e)return!1;WD(t)}return t[GD].weakData},qD=function(t){return zD&&HD&&YD(t)&&!jD(t,GD)&&WD(t),t},XD=function(){$D.enable=function(){},HD=!0;var t=FD.f,e=AD([].splice),n={};n[GD]=1,t(n).length&&(FD.f=function(n){for(var i=t(n),r=0,o=i.length;r1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),yT(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),TT&&gT(o,"size",{configurable:!0,get:function(){return s(this).size}}),r},setStrong:function(t,e,n){var i=e+" Iterator",r=MT(e),o=MT(i);xT(t,e,(function(t,e){ET(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?ST("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,ST(void 0,!0))}),n?"entries":"values",!n,!0),DT(e)}};fT("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),PT);var AT=r(at.Map),IT=Yn,NT=Es.some,jT=Uh("some");IT({target:"Array",proto:!0,forced:!jT},{some:function(t){return NT(this,t,arguments.length>1?arguments[1]:void 0)}});var RT=Ph("Array","some"),FT=pt,LT=RT,YT=Array.prototype,zT=r((function(t){var e=t.some;return t===YT||FT(YT,t)&&e===YT.some?LT:e})),HT=Ph("Array","keys"),GT=ki,BT=se,WT=pt,VT=HT,UT=Array.prototype,qT={DOMTokenList:!0,NodeList:!0},XT=r((function(t){var e=t.keys;return t===UT||WT(UT,t)&&e===UT.keys||BT(qT,GT(t))?VT:e})),$T=ko,KT=Math.floor,QT=function(t,e){var n=t.length,i=KT(n/2);return n<8?ZT(t,e):JT(t,QT($T(t,0,i),e),QT($T(t,i),e),e)},ZT=function(t,e){for(var n,i,r=t.length,o=1;o0;)t[i]=t[--i];i!==o++&&(t[i]=n)}return t},JT=function(t,e,n,i){for(var r=e.length,o=n.length,s=0,a=0;s3)){if(gC)return!0;if(bC)return bC<603;var t,e,n,i,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)wC.push({k:e+i,v:n})}for(wC.sort((function(t,e){return e.v-t.v})),i=0;idC(n)?1:-1}};sC({target:"Array",proto:!0,forced:xC||!SC||!DC||!TC},{sort:function(t){void 0!==t&&lC(t);var e=uC(this);if(TC)return void 0===t?_C(e):_C(e,t);var n,i,r=[],o=cC(e);for(i=0;ithis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Nv((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;um(t=zm(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,n){var i=new t(n);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var r=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;o=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function uO(t,e){var n;if(t){if("string"==typeof t)return cO(t,e);var i=Yf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?cO(t,e):void 0}}function cO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n_D.mark((function e(){var i,r,o,s,a;return _D.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=lO(n),e.prev=1,i.s();case 3:if((r=i.n()).done){e.next=10;break}if(o=Of(r.value,2),s=o[0],a=o[1],!t(a,s)){e.next=8;break}return e.next=8,[s,a];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),i.e(e.t0);case 15:return e.prev=15,i.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))()})}},{key:"forEach",value:function(t){var e,n=lO(this._pairs);try{for(n.s();!(e=n.n()).done;){var i=Of(e.value,2),r=i[0];t(i[1],r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"map",value:function(t){var n=this._pairs;return new e({[HC]:()=>_D.mark((function e(){var i,r,o,s,a;return _D.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=lO(n),e.prev=1,i.s();case 3:if((r=i.n()).done){e.next=9;break}return o=Of(r.value,2),s=o[0],a=o[1],e.next=7,[s,t(a,s)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),i.e(e.t0);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))()})}},{key:"max",value:function(t){var e=aO(this._pairs),n=e.next();if(n.done)return null;for(var i=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Of(n.value,2),s=o[0],a=o[1],l=t(a,s);l>r&&(r=l,i=a)}return i}},{key:"min",value:function(t){var e=aO(this._pairs),n=e.next();if(n.done)return null;for(var i=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Of(n.value,2),s=o[0],a=o[1],l=t(a,s);l=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function mO(t,e){var n;if(t){if("string"==typeof t)return vO(t,e);var i=Yf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?vO(t,e):void 0}}function vO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nr?1:ir)&&(i=s,r=a)}}catch(t){o.e(t)}finally{o.f()}return i||null}},{key:"min",value:function(t){var e,n,i=null,r=null,o=fO(zC(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s[t];"number"==typeof a&&(null==r||a_D.mark((function n(){var i,r,o,s;return _D.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=fO(t),n.prev=1,i.s();case 3:if((r=i.n()).done){n.next=11;break}if(o=r.value,null==(s=e.get(o))){n.next=9;break}return n.next=9,[o,s];case 9:n.next=3;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(1),i.e(n.t0);case 16:return n.prev=16,i.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])}))()})}var n;return new hO({[HC]:Fh(n=$C(this._data)).call(n,this._data)})}}]),i}(oO);function _O(t,e){var n=void 0!==If&&Ap(t)||t["@@iterator"];if(!n){if(qf(t)||(n=kO(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function kO(t,e){var n;if(t){if("string"==typeof t)return xO(t,e);var i=Yf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?xO(t,e):void 0}}function xO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&H[0]<4?1:+(H[0]+H[1])),!G&&ft&&(!(H=ft.match(/Edge\/(\d+)/))||H[1]>=74)&&(H=ft.match(/Chrome\/(\d+)/))&&(G=+H[1]);var bt=G,wt=bt,_t=u,kt=l.String,xt=!!Object.getOwnPropertySymbols&&!_t((function(){var t=Symbol("symbol detection");return!kt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt&&wt<41})),St=xt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=ct,Tt=P,Ct=ht,Ot=Object,Et=St?function(t){return"symbol"==typeof t}:function(t){var e=Dt("Symbol");return Tt(e)&&Ct(e.prototype,Ot(t))},Mt=String,Pt=function(t){try{return Mt(t)}catch(t){return"Object"}},At=P,It=Pt,Nt=TypeError,jt=function(t){if(At(t))return t;throw new Nt(It(t)+" is not a function")},Rt=jt,Ft=$,Lt=function(t,e){var n=t[e];return Ft(n)?void 0:Rt(n)},Yt=R,zt=P,Ht=rt,Gt=TypeError,Bt={exports:{}},Wt=l,Vt=Object.defineProperty,Ut=function(t,e){try{Vt(Wt,t,{value:e,configurable:!0,writable:!0})}catch(n){Wt[t]=e}return e},qt="__core-js_shared__",Xt=l[qt]||Ut(qt,{}),$t=Xt;(Bt.exports=function(t,e){return $t[t]||($t[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Kt=Bt.exports,Qt=Z,Zt=Object,Jt=function(t){return Zt(Qt(t))},te=Jt,ee=w({}.hasOwnProperty),ne=Object.hasOwn||function(t,e){return ee(te(t),e)},ie=w,re=0,oe=Math.random(),se=ie(1..toString),ae=function(t){return"Symbol("+(void 0===t?"":t)+")_"+se(++re+oe,36)},le=Kt,ue=ne,ce=ae,he=xt,de=St,pe=l.Symbol,fe=le("wks"),me=de?pe.for||pe:pe&&pe.withoutSetter||ce,ve=function(t){return ue(fe,t)||(fe[t]=he&&ue(pe,t)?pe[t]:me("Symbol."+t)),fe[t]},ge=R,ye=rt,be=Et,we=Lt,_e=function(t,e){var n,i;if("string"===e&&zt(n=t.toString)&&!Ht(i=Yt(n,t)))return i;if(zt(n=t.valueOf)&&!Ht(i=Yt(n,t)))return i;if("string"!==e&&zt(n=t.toString)&&!Ht(i=Yt(n,t)))return i;throw new Gt("Can't convert object to primitive value")},ke=TypeError,xe=ve("toPrimitive"),Se=function(t,e){if(!ye(t)||be(t))return t;var n,i=we(t,xe);if(i){if(void 0===e&&(e="default"),n=ge(i,t,e),!ye(n)||be(n))return n;throw new ke("Can't convert object to primitive value")}return void 0===e&&(e="number"),_e(t,e)},De=Et,Te=function(t){var e=Se(t,"string");return De(e)?e:e+""},Ce=rt,Oe=l.document,Ee=Ce(Oe)&&Ce(Oe.createElement),Me=function(t){return Ee?Oe.createElement(t):{}},Pe=Me,Ae=!I&&!u((function(){return 7!==Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a})),Ie=I,Ne=R,je=F,Re=B,Fe=et,Le=Te,Ye=ne,ze=Ae,He=Object.getOwnPropertyDescriptor;A.f=Ie?He:function(t,e){if(t=Fe(t),e=Le(e),ze)try{return He(t,e)}catch(t){}if(Ye(t,e))return Re(!Ne(je.f,t,e),t[e])};var Ge=u,Be=P,We=/#|\.prototype\./,Ve=function(t,e){var n=qe[Ue(t)];return n===$e||n!==Xe&&(Be(e)?Ge(e):!!e)},Ue=Ve.normalize=function(t){return String(t).replace(We,".").toLowerCase()},qe=Ve.data={},Xe=Ve.NATIVE="N",$e=Ve.POLYFILL="P",Ke=Ve,Qe=jt,Ze=c,Je=C(C.bind),tn=function(t,e){return Qe(t),void 0===e?t:Ze?Je(t,e):function(){return t.apply(e,arguments)}},en={},nn=I&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),rn=rt,on=String,sn=TypeError,an=function(t){if(rn(t))return t;throw new sn(on(t)+" is not an object")},ln=I,un=Ae,cn=nn,hn=an,dn=Te,pn=TypeError,fn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,vn="enumerable",gn="configurable",yn="writable";en.f=ln?cn?function(t,e,n){if(hn(t),e=dn(e),hn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&yn in n&&!n[yn]){var i=mn(t,e);i&&i[yn]&&(t[e]=n.value,n={configurable:gn in n?n[gn]:i[gn],enumerable:vn in n?n[vn]:i[vn],writable:!1})}return fn(t,e,n)}:fn:function(t,e,n){if(hn(t),e=dn(e),hn(n),un)try{return fn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new pn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var bn=en,wn=B,_n=I?function(t,e,n){return bn.f(t,e,wn(1,n))}:function(t,e,n){return t[e]=n,t},kn=l,xn=m,Sn=C,Dn=P,Tn=A.f,Cn=Ke,On=ot,En=tn,Mn=_n,Pn=ne,An=function(t){var e=function(n,i,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,r)}return xn(t,this,arguments)};return e.prototype=t.prototype,e},In=function(t,e){var n,i,r,o,s,a,l,u,c,h=t.target,d=t.global,p=t.stat,f=t.proto,m=d?kn:p?kn[h]:(kn[h]||{}).prototype,v=d?On:On[h]||Mn(On,h,{})[h],g=v.prototype;for(o in e)i=!(n=Cn(d?o:h+(p?".":"#")+o,t.forced))&&m&&Pn(m,o),a=v[o],i&&(l=t.dontCallGetSet?(c=Tn(m,o))&&c.value:m[o]),s=i&&l?l:e[o],i&&typeof a==typeof s||(u=t.bind&&i?En(s,kn):t.wrap&&i?An(s):f&&Dn(s)?Sn(s):s,(t.sham||s&&s.sham||a&&a.sham)&&Mn(u,"sham",!0),Mn(v,o,u),f&&(Pn(On,r=h+"Prototype")||Mn(On,r,{}),Mn(On[r],o,s),t.real&&g&&(n||!g[o])&&Mn(g,o,s)))},Nn=w([].slice),jn=w,Rn=jt,Fn=rt,Ln=ne,Yn=Nn,zn=c,Hn=Function,Gn=jn([].concat),Bn=jn([].join),Wn={},Vn=zn?Hn.bind:function(t){var e=Rn(this),n=e.prototype,i=Yn(arguments,1),r=function(){var n=Gn(i,Yn(arguments));return this instanceof r?function(t,e,n){if(!Ln(Wn,e)){for(var i=[],r=0;r0?Si:xi)(e)},Ti=function(t){var e=+t;return e!=e||0===e?0:Di(e)},Ci=Ti,Oi=Math.max,Ei=Math.min,Mi=function(t,e){var n=Ci(t);return n<0?Oi(n+e,0):Ei(n,e)},Pi=Ti,Ai=Math.min,Ii=function(t){return t>0?Ai(Pi(t),9007199254740991):0},Ni=function(t){return Ii(t.length)},ji=et,Ri=Mi,Fi=Ni,Li=function(t){return function(e,n,i){var r,o=ji(e),s=Fi(o),a=Ri(i,s);if(t&&n!=n){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Yi={includes:Li(!0),indexOf:Li(!1)},zi={},Hi=ne,Gi=et,Bi=Yi.indexOf,Wi=zi,Vi=w([].push),Ui=function(t,e){var n,i=Gi(t),r=0,o=[];for(n in i)!Hi(Wi,n)&&Hi(i,n)&&Vi(o,n);for(;e.length>r;)Hi(i,n=e[r++])&&(~Bi(o,n)||Vi(o,n));return o},qi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xi=Ui,$i=qi,Ki=Object.keys||function(t){return Xi(t,$i)},Qi=I,Zi=nn,Ji=en,tr=an,er=et,nr=Ki;ki.f=Qi&&!Zi?Object.defineProperties:function(t,e){tr(t);for(var n,i=er(e),r=nr(e),o=r.length,s=0;o>s;)Ji.f(t,n=r[s++],i[n]);return t};var ir,rr=ct("document","documentElement"),or=ae,sr=Kt("keys"),ar=function(t){return sr[t]||(sr[t]=or(t))},lr=an,ur=ki,cr=qi,hr=zi,dr=rr,pr=Me,fr="prototype",mr="script",vr=ar("IE_PROTO"),gr=function(){},yr=function(t){return"<"+mr+">"+t+""},br=function(t){t.write(yr("")),t.close();var e=t.parentWindow.Object;return t=null,e},wr=function(){try{ir=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;wr="undefined"!=typeof document?document.domain&&ir?br(ir):(e=pr("iframe"),n="java"+mr+":",e.style.display="none",dr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(yr("document.F=Object")),t.close(),t.F):br(ir);for(var i=cr.length;i--;)delete wr[fr][cr[i]];return wr()};hr[vr]=!0;var _r=Object.create||function(t,e){var n;return null!==t?(gr[fr]=lr(t),n=new gr,gr[fr]=null,n[vr]=t):n=wr(),void 0===e?n:ur.f(n,e)},kr=In,xr=m,Sr=Vn,Dr=function(t){if(bi(t))return t;throw new _i(wi(t)+" is not a constructor")},Tr=an,Cr=rt,Or=_r,Er=u,Mr=ct("Reflect","construct"),Pr=Object.prototype,Ar=[].push,Ir=Er((function(){function t(){}return!(Mr((function(){}),[],t)instanceof t)})),Nr=!Er((function(){Mr((function(){}))})),jr=Ir||Nr;kr({target:"Reflect",stat:!0,forced:jr,sham:jr},{construct:function(t,e){Dr(t),Tr(e);var n=arguments.length<3?t:Dr(arguments[2]);if(Nr&&!Ir)return Mr(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return xr(Ar,i,e),new(xr(Sr,t,i))}var r=n.prototype,o=Or(Cr(r)?r:Pr),s=xr(t,o,e);return Cr(s)?s:o}});var Rr=s(ot.Reflect.construct);function Fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Lr={exports:{}},Yr=In,zr=I,Hr=en.f;Yr({target:"Object",stat:!0,forced:Object.defineProperty!==Hr,sham:!zr},{defineProperty:Hr});var Gr=ot.Object,Br=Lr.exports=function(t,e,n){return Gr.defineProperty(t,e,n)};Gr.defineProperty.sham&&(Br.sham=!0);var Wr=Lr.exports,Vr=s(Wr),Ur=S,qr=Array.isArray||function(t){return"Array"===Ur(t)},Xr=TypeError,$r=function(t){if(t>9007199254740991)throw Xr("Maximum allowed index exceeded");return t},Kr=Te,Qr=en,Zr=B,Jr=function(t,e,n){var i=Kr(e);i in t?Qr.f(t,i,Zr(0,n)):t[i]=n},to=qr,eo=yi,no=rt,io=ve("species"),ro=Array,oo=function(t){var e;return to(t)&&(e=t.constructor,(eo(e)&&(e===ro||to(e.prototype))||no(e)&&null===(e=e[io]))&&(e=void 0)),void 0===e?ro:e},so=function(t,e){return new(oo(t))(0===e?0:e)},ao=u,lo=bt,uo=ve("species"),co=function(t){return lo>=51||!ao((function(){var e=[];return(e.constructor={})[uo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ho=In,po=u,fo=qr,mo=rt,vo=Jt,go=Ni,yo=$r,bo=Jr,wo=so,_o=co,ko=bt,xo=ve("isConcatSpreadable"),So=ko>=51||!po((function(){var t=[];return t[xo]=!1,t.concat()[0]!==t})),Do=function(t){if(!mo(t))return!1;var e=t[xo];return void 0!==e?!!e:fo(t)};ho({target:"Array",proto:!0,arity:1,forced:!So||!_o("concat")},{concat:function(t){var e,n,i,r,o,s=vo(this),a=wo(s,0),l=0;for(e=-1,i=arguments.length;ey;y++)if((a||y in m)&&(p=v(d=m[y],y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:zs(w,d)}else switch(t){case 4:return!1;case 7:zs(w,d)}return o?-1:i||r?r:w}},Gs={forEach:Hs(0),map:Hs(1),filter:Hs(2),some:Hs(3),every:Hs(4),find:Hs(5),findIndex:Hs(6),filterReject:Hs(7)},Bs=In,Ws=l,Vs=R,Us=w,qs=I,Xs=xt,$s=u,Ks=ne,Qs=ht,Zs=an,Js=et,ta=Te,ea=Oo,na=B,ia=_r,ra=Ki,oa=Eo,sa=Ao,aa=Wo,la=A,ua=en,ca=ki,ha=F,da=Uo,pa=Xo,fa=Kt,ma=zi,va=ae,ga=ve,ya=$o,ba=rs,wa=us,_a=ys,ka=Ns,xa=Gs.forEach,Sa=ar("hidden"),Da="Symbol",Ta="prototype",Ca=ka.set,Oa=ka.getterFor(Da),Ea=Object[Ta],Ma=Ws.Symbol,Pa=Ma&&Ma[Ta],Aa=Ws.RangeError,Ia=Ws.TypeError,Na=Ws.QObject,ja=la.f,Ra=ua.f,Fa=sa.f,La=ha.f,Ya=Us([].push),za=fa("symbols"),Ha=fa("op-symbols"),Ga=fa("wks"),Ba=!Na||!Na[Ta]||!Na[Ta].findChild,Wa=function(t,e,n){var i=ja(Ea,e);i&&delete Ea[e],Ra(t,e,n),i&&t!==Ea&&Ra(Ea,e,i)},Va=qs&&$s((function(){return 7!==ia(Ra({},"a",{get:function(){return Ra(this,"a",{value:7}).a}})).a}))?Wa:Ra,Ua=function(t,e){var n=za[t]=ia(Pa);return Ca(n,{type:Da,tag:t,description:e}),qs||(n.description=e),n},qa=function(t,e,n){t===Ea&&qa(Ha,e,n),Zs(t);var i=ta(e);return Zs(n),Ks(za,i)?(n.enumerable?(Ks(t,Sa)&&t[Sa][i]&&(t[Sa][i]=!1),n=ia(n,{enumerable:na(0,!1)})):(Ks(t,Sa)||Ra(t,Sa,na(1,{})),t[Sa][i]=!0),Va(t,i,n)):Ra(t,i,n)},Xa=function(t,e){Zs(t);var n=Js(e),i=ra(n).concat(Za(n));return xa(i,(function(e){qs&&!Vs($a,n,e)||qa(t,e,n[e])})),t},$a=function(t){var e=ta(t),n=Vs(La,this,e);return!(this===Ea&&Ks(za,e)&&!Ks(Ha,e))&&(!(n||!Ks(this,e)||!Ks(za,e)||Ks(this,Sa)&&this[Sa][e])||n)},Ka=function(t,e){var n=Js(t),i=ta(e);if(n!==Ea||!Ks(za,i)||Ks(Ha,i)){var r=ja(n,i);return!r||!Ks(za,i)||Ks(n,Sa)&&n[Sa][i]||(r.enumerable=!0),r}},Qa=function(t){var e=Fa(Js(t)),n=[];return xa(e,(function(t){Ks(za,t)||Ks(ma,t)||Ya(n,t)})),n},Za=function(t){var e=t===Ea,n=Fa(e?Ha:Js(t)),i=[];return xa(n,(function(t){!Ks(za,t)||e&&!Ks(Ea,t)||Ya(i,za[t])})),i};Xs||(Ma=function(){if(Qs(Pa,this))throw new Ia("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ea(arguments[0]):void 0,e=va(t),n=function(t){this===Ea&&Vs(n,Ha,t),Ks(this,Sa)&&Ks(this[Sa],e)&&(this[Sa][e]=!1);var i=na(1,t);try{Va(this,e,i)}catch(t){if(!(t instanceof Aa))throw t;Wa(this,e,i)}};return qs&&Ba&&Va(Ea,e,{configurable:!0,set:n}),Ua(e,t)},da(Pa=Ma[Ta],"toString",(function(){return Oa(this).tag})),da(Ma,"withoutSetter",(function(t){return Ua(va(t),t)})),ha.f=$a,ua.f=qa,ca.f=Xa,la.f=Ka,oa.f=sa.f=Qa,aa.f=Za,ya.f=function(t){return Ua(ga(t),t)},qs&&pa(Pa,"description",{configurable:!0,get:function(){return Oa(this).description}})),Bs({global:!0,constructor:!0,wrap:!0,forced:!Xs,sham:!Xs},{Symbol:Ma}),xa(ra(Ga),(function(t){ba(t)})),Bs({target:Da,stat:!0,forced:!Xs},{useSetter:function(){Ba=!0},useSimple:function(){Ba=!1}}),Bs({target:"Object",stat:!0,forced:!Xs,sham:!qs},{create:function(t,e){return void 0===e?ia(t):Xa(ia(t),e)},defineProperty:qa,defineProperties:Xa,getOwnPropertyDescriptor:Ka}),Bs({target:"Object",stat:!0,forced:!Xs},{getOwnPropertyNames:Qa}),wa(),_a(Ma,Da),ma[Sa]=!0;var Ja=xt&&!!Symbol.for&&!!Symbol.keyFor,tl=In,el=ct,nl=ne,il=Oo,rl=Kt,ol=Ja,sl=rl("string-to-symbol-registry"),al=rl("symbol-to-string-registry");tl({target:"Symbol",stat:!0,forced:!ol},{for:function(t){var e=il(t);if(nl(sl,e))return sl[e];var n=el("Symbol")(e);return sl[e]=n,al[n]=e,n}});var ll=In,ul=ne,cl=Et,hl=Pt,dl=Ja,pl=Kt("symbol-to-string-registry");ll({target:"Symbol",stat:!0,forced:!dl},{keyFor:function(t){if(!cl(t))throw new TypeError(hl(t)+" is not a symbol");if(ul(pl,t))return pl[t]}});var fl=qr,ml=P,vl=S,gl=Oo,yl=w([].push),bl=In,wl=ct,_l=m,kl=R,xl=w,Sl=u,Dl=P,Tl=Et,Cl=Nn,Ol=function(t){if(ml(t))return t;if(fl(t)){for(var e=t.length,n=[],i=0;i=e.length)return t.target=void 0,ac(void 0,!0);switch(n){case"keys":return ac(i,!1);case"values":return ac(e[i],!1)}return ac([i,e[i]],!1)}),"values"),rc.Arguments=rc.Array;var hc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},dc=l,pc=ti,fc=_n,mc=Jl,vc=ve("toStringTag");for(var gc in hc){var yc=dc[gc],bc=yc&&yc.prototype;bc&&pc(bc)!==vc&&fc(bc,vc,gc),mc[gc]=mc.Array}var wc=Zl,_c=ve,kc=en.f,xc=_c("metadata"),Sc=Function.prototype;void 0===Sc[xc]&&kc(Sc,xc,{value:null}),rs("asyncDispose"),rs("dispose"),rs("metadata");var Dc=wc,Tc=w,Cc=ct("Symbol"),Oc=Cc.keyFor,Ec=Tc(Cc.prototype.valueOf),Mc=Cc.isRegisteredSymbol||function(t){try{return void 0!==Oc(Ec(t))}catch(t){return!1}};In({target:"Symbol",stat:!0},{isRegisteredSymbol:Mc});for(var Pc=Kt,Ac=ct,Ic=w,Nc=Et,jc=ve,Rc=Ac("Symbol"),Fc=Rc.isWellKnownSymbol,Lc=Ac("Object","getOwnPropertyNames"),Yc=Ic(Rc.prototype.valueOf),zc=Pc("wks"),Hc=0,Gc=Lc(Rc),Bc=Gc.length;Hc=a?t?"":void 0:(i=Zc(o,s))<55296||i>56319||s+1===a||(r=Zc(o,s+1))<56320||r>57343?t?Qc(o,s):i:t?Jc(o,s,s+2):r-56320+(i-55296<<10)+65536}},eh=(th(!1),th(!0)),nh=Oo,ih=Ns,rh=ec,oh=nc,sh="String Iterator",ah=ih.set,lh=ih.getterFor(sh);rh(String,"String",(function(t){ah(this,{type:sh,string:nh(t),index:0})}),(function(){var t,e=lh(this),n=e.string,i=e.index;return i>=n.length?oh(void 0,!0):(t=eh(n,i),e.index+=t.length,oh(t,!1))}));var uh=s($o.f("iterator"));function ch(t){return ch="function"==typeof Uc&&"symbol"==typeof uh?function(t){return typeof t}:function(t){return t&&"function"==typeof Uc&&t.constructor===Uc&&t!==Uc.prototype?"symbol":typeof t},ch(t)}var hh=s($o.f("toPrimitive"));function dh(t){var e=function(t,e){if("object"!==ch(t)||null===t)return t;var n=t[hh];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==ch(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ch(e)?e:String(e)}function ph(t,e){for(var n=0;nn,s=Uh(i)?i:Qh(i),a=o?$h(arguments,n):[],l=o?function(){Vh(s,this,a)}:s;return e?t(l,r):t(l)}:t},td=In,ed=l,nd=Jh(ed.setInterval,!0);td({global:!0,bind:!0,forced:ed.setInterval!==nd},{setInterval:nd});var id=In,rd=l,od=Jh(rd.setTimeout,!0);id({global:!0,bind:!0,forced:rd.setTimeout!==od},{setTimeout:od});var sd=s(ot.setTimeout),ad=u,ld=function(t,e){var n=[][t];return!!n&&ad((function(){n.call(null,e||function(){return 1},1)}))},ud=Gs.forEach,cd=ld("forEach")?[].forEach:function(t){return ud(this,t,arguments.length>1?arguments[1]:void 0)};In({target:"Array",proto:!0,forced:[].forEach!==cd},{forEach:cd});var hd=kh("Array").forEach,dd=ti,pd=ne,fd=ht,md=hd,vd=Array.prototype,gd={DOMTokenList:!0,NodeList:!0},yd=function(t){var e=t.forEach;return t===vd||fd(vd,t)&&e===vd.forEach||pd(gd,dd(t))?md:e},bd=s(yd),wd=s("undefined"!=typeof window&&window.moment||n),_d=s(ot.Object.getOwnPropertySymbols),kd=Gs.filter;In({target:"Array",proto:!0,forced:!co("filter")},{filter:function(t){return kd(this,t,arguments.length>1?arguments[1]:void 0)}});var xd=kh("Array").filter,Sd=ht,Dd=xd,Td=Array.prototype,Cd=function(t){var e=t.filter;return t===Td||Sd(Td,t)&&e===Td.filter?Dd:e},Od=s(Cd),Ed={exports:{}},Md=In,Pd=u,Ad=et,Id=A.f,Nd=I;Md({target:"Object",stat:!0,forced:!Nd||Pd((function(){Id(1)})),sham:!Nd},{getOwnPropertyDescriptor:function(t,e){return Id(Ad(t),e)}});var jd=ot.Object,Rd=Ed.exports=function(t,e){return jd.getOwnPropertyDescriptor(t,e)};jd.getOwnPropertyDescriptor.sham&&(Rd.sham=!0);var Fd=s(Ed.exports),Ld=ct,Yd=Eo,zd=Wo,Hd=an,Gd=w([].concat),Bd=Ld("Reflect","ownKeys")||function(t){var e=Yd.f(Hd(t)),n=zd.f;return n?Gd(e,n(t)):e},Wd=Bd,Vd=et,Ud=A,qd=Jr;In({target:"Object",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(t){for(var e,n,i=Vd(t),r=Ud.f,o=Wd(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&qd(s,e,n);return s}});var Xd=s(ot.Object.getOwnPropertyDescriptors),$d={exports:{}},Kd=In,Qd=I,Zd=ki.f;Kd({target:"Object",stat:!0,forced:Object.defineProperties!==Zd,sham:!Qd},{defineProperties:Zd});var Jd=ot.Object,tp=$d.exports=function(t,e){return Jd.defineProperties(t,e)};Jd.defineProperties.sham&&(tp.sham=!0);var ep=s($d.exports),np=Gs.map;In({target:"Array",proto:!0,forced:!co("map")},{map:function(t){return np(this,t,arguments.length>1?arguments[1]:void 0)}});var ip=kh("Array").map,rp=ht,op=ip,sp=Array.prototype,ap=function(t){var e=t.map;return t===sp||rp(sp,t)&&e===sp.map?op:e},lp=s(ap),up=jt,cp=Jt,hp=X,dp=Ni,pp=TypeError,fp=function(t){return function(e,n,i,r){up(n);var o=cp(e),s=hp(o),a=dp(o),l=t?a-1:0,u=t?-1:1;if(i<2)for(;;){if(l in s){r=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw new pp("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=u)l in s&&(r=n(r,s[l],l,o));return r}},mp={left:fp(!1),right:fp(!0)},vp="process"===S(l.process),gp=mp.left;In({target:"Array",proto:!0,forced:!vp&&bt>79&&bt<83||!ld("reduce")},{reduce:function(t){var e=arguments.length;return gp(this,t,e,e>1?arguments[1]:void 0)}});var yp=kh("Array").reduce,bp=ht,wp=yp,_p=Array.prototype,kp=function(t){var e=t.reduce;return t===_p||bp(_p,t)&&e===_p.reduce?wp:e},xp=s(kp),Sp=Jt,Dp=Ki;In({target:"Object",stat:!0,forced:u((function(){Dp(1)}))},{keys:function(t){return Dp(Sp(t))}});var Tp=s(ot.Object.keys),Cp=s(Wr),Op=R,Ep=an,Mp=Lt,Pp=function(t,e,n){var i,r;Ep(t);try{if(!(i=Mp(t,"return"))){if("throw"===e)throw n;return n}i=Op(i,t)}catch(t){r=!0,i=t}if("throw"===e)throw n;if(r)throw i;return Ep(i),n},Ap=an,Ip=Pp,Np=Jl,jp=ve("iterator"),Rp=Array.prototype,Fp=function(t){return void 0!==t&&(Np.Array===t||Rp[jp]===t)},Lp=ti,Yp=Lt,zp=$,Hp=Jl,Gp=ve("iterator"),Bp=function(t){if(!zp(t))return Yp(t,Gp)||Yp(t,"@@iterator")||Hp[Lp(t)]},Wp=R,Vp=jt,Up=an,qp=Pt,Xp=Bp,$p=TypeError,Kp=function(t,e){var n=arguments.length<2?Xp(t):e;if(Vp(n))return Up(Wp(n,t));throw new $p(qp(t)+" is not iterable")},Qp=tn,Zp=R,Jp=Jt,tf=function(t,e,n,i){try{return i?e(Ap(n)[0],n[1]):e(n)}catch(e){Ip(t,"throw",e)}},ef=Fp,nf=yi,rf=Ni,of=Jr,sf=Kp,af=Bp,lf=Array,uf=ve("iterator"),cf=!1;try{var hf=0,df={next:function(){return{done:!!hf++}},return:function(){cf=!0}};df[uf]=function(){return this},Array.from(df,(function(){throw 2}))}catch(t){}var pf=function(t){var e=Jp(t),n=nf(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=Qp(r,i>2?arguments[2]:void 0));var s,a,l,u,c,h,d=af(e),p=0;if(!d||this===lf&&ef(d))for(s=rf(e),a=n?new this(s):lf(s);s>p;p++)h=o?r(e[p],p):e[p],of(a,p,h);else for(c=(u=sf(e,d)).next,a=n?new this:[];!(l=Zp(c,u)).done;p++)h=o?tf(u,r,[l.value,p],!0):l.value,of(a,p,h);return a.length=p,a},ff=function(t,e){try{if(!e&&!cf)return!1}catch(t){return!1}var n=!1;try{var i={};i[uf]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n};In({target:"Array",stat:!0,forced:!ff((function(t){Array.from(t)}))},{from:pf});var mf=ot.Array.from,vf=s(mf),gf=Bp,yf=s(gf),bf=s(gf),wf=s(Yh),_f=I,kf=qr,xf=TypeError,Sf=Object.getOwnPropertyDescriptor,Df=_f&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(kf(t)&&!Sf(t,"length").writable)throw new xf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Tf=Jt,Cf=Ni,Of=Df,Ef=$r;In({target:"Array",proto:!0,arity:1,forced:u((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Tf(this),n=Cf(e),i=arguments.length;Ef(n+i);for(var r=0;rt.length)&&(e=t.length);for(var n=0,i=new Array(e);nu-i+n;o--)Bm(l,o-1)}else if(n>i)for(o=u-i;o>c;o--)a=o+n-1,(s=o+i-1)in l?l[a]=l[s]:Bm(l,a);for(o=0;or;)for(var a,l=av(arguments[r++]),u=o?cv(iv(l),o(l)):iv(l),c=u.length,h=0;c>h;)a=u[h++],Jm&&!ev(s,l,a)||(n[a]=l[a]);return n}:lv,dv=hv;In({target:"Object",stat:!0,arity:2,forced:Object.assign!==dv},{assign:dv});var pv=s(ot.Object.assign),fv=Yi.includes;In({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(t){return fv(this,t,arguments.length>1?arguments[1]:void 0)}});var mv=kh("Array").includes,vv=rt,gv=S,yv=ve("match"),bv=function(t){var e;return vv(t)&&(void 0!==(e=t[yv])?!!e:"RegExp"===gv(t))},wv=TypeError,_v=ve("match"),kv=In,xv=function(t){if(bv(t))throw new wv("The method doesn't accept regular expressions");return t},Sv=Z,Dv=Oo,Tv=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[_v]=!1,"/./"[t](e)}catch(t){}}return!1},Cv=w("".indexOf);kv({target:"String",proto:!0,forced:!Tv("includes")},{includes:function(t){return!!~Cv(Dv(Sv(this)),Dv(xv(t)),arguments.length>1?arguments[1]:void 0)}});var Ov=kh("String").includes,Ev=ht,Mv=mv,Pv=Ov,Av=Array.prototype,Iv=String.prototype,Nv=function(t){var e=t.includes;return t===Av||Ev(Av,t)&&e===Av.includes?Mv:"string"==typeof t||t===Iv||Ev(Iv,t)&&e===Iv.includes?Pv:e},jv=s(Nv),Rv=s(Rh),Fv=I,Lv=u,Yv=w,zv=fu,Hv=Ki,Gv=et,Bv=Yv(F.f),Wv=Yv([].push),Vv=Fv&&Lv((function(){var t=Object.create(null);return t[2]=2,!Bv(t,2)})),Uv=function(t){return function(e){for(var n,i=Gv(e),r=Hv(i),o=Vv&&null===zv(i),s=r.length,a=0,l=[];s>a;)n=r[a++],Fv&&!(o?n in i:Bv(i,n))||Wv(l,t?[n,i[n]]:i[n]);return l}},qv={entries:Uv(!0),values:Uv(!1)},Xv=qv.values;In({target:"Object",stat:!0},{values:function(t){return Xv(t)}});var $v=s(ot.Object.values),Kv="\t\n\v\f\r                 \u2028\u2029\ufeff",Qv=Z,Zv=Oo,Jv=Kv,tg=w("".replace),eg=RegExp("^["+Jv+"]+"),ng=RegExp("(^|[^"+Jv+"])["+Jv+"]+$"),ig=function(t){return function(e){var n=Zv(Qv(e));return 1&t&&(n=tg(n,eg,"")),2&t&&(n=tg(n,ng,"$1")),n}},rg={start:ig(1),end:ig(2),trim:ig(3)},og=l,sg=u,ag=w,lg=Oo,ug=rg.trim,cg=Kv,hg=og.parseInt,dg=og.Symbol,pg=dg&&dg.iterator,fg=/^[+-]?0x/i,mg=ag(fg.exec),vg=8!==hg(cg+"08")||22!==hg(cg+"0x16")||pg&&!sg((function(){hg(Object(pg))}))?function(t,e){var n=ug(lg(t));return hg(n,e>>>0||(mg(fg,n)?16:10))}:hg;In({global:!0,forced:parseInt!==vg},{parseInt:vg});var gg=s(ot.parseInt),yg=In,bg=Yi.indexOf,wg=ld,_g=C([].indexOf),kg=!!_g&&1/_g([1],1,-0)<0;yg({target:"Array",proto:!0,forced:kg||!wg("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return kg?_g(this,t,e)||0:bg(this,t,e)}});var xg=kh("Array").indexOf,Sg=ht,Dg=xg,Tg=Array.prototype,Cg=function(t){var e=t.indexOf;return t===Tg||Sg(Tg,t)&&e===Tg.indexOf?Dg:e},Og=s(Cg),Eg=qv.entries;In({target:"Object",stat:!0},{entries:function(t){return Eg(t)}});var Mg=s(ot.Object.entries),Pg=s(gh),Ag=ot,Ig=m;Ag.JSON||(Ag.JSON={stringify:JSON.stringify});var Ng=function(t,e,n){return Ig(Ag.JSON.stringify,null,arguments)},jg=s(Ng),Rg=Jt,Fg=Mi,Lg=Ni,Yg=function(t){for(var e=Rg(this),n=Lg(e),i=arguments.length,r=Fg(i>1?arguments[1]:void 0,n),o=i>2?arguments[2]:void 0,s=void 0===o?n:Fg(o,n);s>r;)e[r++]=t;return e};In({target:"Array",proto:!0},{fill:Yg});var zg=kh("Array").fill,Hg=ht,Gg=zg,Bg=Array.prototype,Wg=function(t){var e=t.fill;return t===Bg||Hg(Bg,t)&&e===Bg.fill?Gg:e},Vg=s(Wg),Ug={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.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 n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),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 n,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r-1}var Fy=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===ly&&(t=this.compute()),ay&&this.manager.element.style&&fy[t]&&(this.manager.element.style[sy]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Ny(this.manager.recognizers,(function(e){jy(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Ry(t,hy))return hy;var e=Ry(t,dy),n=Ry(t,py);return e&&n?hy:e||n?e?dy:py:Ry(t,cy)?cy:uy}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=Ry(i,hy)&&!fy[hy],o=Ry(i,py)&&!fy[py],s=Ry(i,dy)&&!fy[dy];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&Ey||s&&n&My?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Ly(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Yy(t){var e=t.length;if(1===e)return{x:ny(t[0].clientX),y:ny(t[0].clientY)};for(var n=0,i=0,r=0;r=iy(e)?t<0?Dy:Ty:e<0?Cy:Oy}function Wy(t,e,n){return{x:e/t||0,y:n/t||0}}function Vy(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=zy(e)),r>1&&!n.firstMultiple?n.firstMultiple=zy(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=e.center=Yy(i);e.timeStamp=ry(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Gy(a,l),e.distance=Hy(a,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==_y&&o.eventType!==ky||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=By(e.deltaX,e.deltaY);var u,c,h=Wy(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=iy(h.x)>iy(h.y)?h.x:h.y,e.scale=s?(u=s.pointers,Hy((c=i)[0],c[1],Iy)/Hy(u[0],u[1],Iy)):1,e.rotation=s?function(t,e){return Gy(e[1],e[0],Iy)+Gy(t[1],t[0],Iy)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==xy&&(a>wy||void 0===s.velocity)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=Wy(a,l,u);i=c.x,r=c.y,n=iy(c.x)>iy(c.y)?c.x:c.y,o=By(l,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var d,p=t.element,f=e.srcEvent;Ly(d=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=d),e.target=p}function Uy(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&_y&&i-r==0,s=e&(ky|xy)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Vy(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function qy(t){return t.trim().split(/\s+/g)}function Xy(t,e,n){Ny(qy(e),(function(e){t.addEventListener(e,n,!1)}))}function $y(t,e,n){Ny(qy(e),(function(e){t.removeEventListener(e,n,!1)}))}function Ky(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Qy=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){jy(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Xy(this.element,this.evEl,this.domHandler),this.evTarget&&Xy(this.target,this.evTarget,this.domHandler),this.evWin&&Xy(Ky(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&$y(this.element,this.evEl,this.domHandler),this.evTarget&&$y(this.target,this.evTarget,this.domHandler),this.evWin&&$y(Ky(this.element),this.evWin,this.domHandler)},t}();function Zy(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]})):i.sort()),i}var sb={touchstart:_y,touchmove:2,touchend:ky,touchcancel:xy},ab=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return Kg(e,t),e.prototype.handler=function(t){var e=sb[t.type],n=lb.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:yy,srcEvent:t})},e}(Qy);function lb(t,e){var n,i,r=rb(t.touches),o=this.targetIds;if(e&(2|_y)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=rb(t.changedTouches),a=[],l=this.target;if(i=r.filter((function(t){return Ly(t.target,l)})),e===_y)for(n=0;n-1&&i.splice(t,1)}),hb)}}function pb(t,e){t&_y?(this.primaryTouch=e.changedPointers[0].identifier,db.call(this,e)):t&(ky|xy)&&db.call(this,e)}function fb(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+wb(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+wb(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=gb},e.canEmit=function(){for(var t=0;te.threshold&&r&e.direction},n.attrTest=function(t){return xb.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Sb(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(xb),Tb=function(t){function e(e){return void 0===e&&(e={}),t.call(this,$g({event:"swipe",threshold:10,velocity:.3,direction:Ey|My,pointers:1},e))||this}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return Db.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,i=this.options.direction;return i&(Ey|My)?n=e.overallVelocity:i&Ey?n=e.overallVelocityX:i&My&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&iy(n)>this.options.velocity&&e.eventType&ky},n.emit=function(t){var e=Sb(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(xb),Cb=function(t){function e(e){return void 0===e&&(e={}),t.call(this,$g({event:"pinch",threshold:0,pointers:2},e))||this}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return[hy]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(xb),Ob=function(t){function e(e){return void 0===e&&(e={}),t.call(this,$g({event:"rotate",threshold:0,pointers:2},e))||this}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return[hy]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(xb),Eb=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,$g({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return[uy]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distancen.time;if(this._input=t,!r||!i||t.eventType&(ky|xy)&&!o)this.reset();else if(t.eventType&_y)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&ky)return 8;return gb},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&ky?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ry(),this.manager.emit(this.options.event,this._input)))},e}(_b),Mb={domEvents:!1,touchAction:ly,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Pb=[[Ob,{enable:!1}],[Cb,{enable:!1},["rotate"]],[Tb,{direction:Ey}],[Db,{direction:Ey},["swipe"]],[kb],[kb,{event:"doubletap",taps:2},["tap"]],[Eb]];function Ab(t,e){var n,i=t.element;i.style&&(Ny(t.options.cssProps,(function(r,o){n=oy(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var Ib=function(){function t(t,e){var n,i=this;this.options=Jg({},Mb,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(vy?ib:gy?ab:my?mb:cb))(n,Uy),this.touchAction=new Fy(this,this.options.touchAction),Ab(this,!0),Ny(this.options.recognizers,(function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Jg(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(e.curRecognizer=null,r=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),t.apply(this,arguments)}}var Lb=Fb((function(t,e,n){for(var i=Object.keys(e),r=0;r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Vb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n2)return Xb.apply(void 0,fm(i=[qb(e[0],e[1])]).call(i,am(mm(e).call(e,2))));var r=e[0],o=e[1];if(r instanceof Date&&o instanceof Date)return r.setTime(o.getTime()),r;var s,a=Wb(vm(o));try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===Ub?delete r[l]:null===r[l]||null===o[l]||"object"!==ch(r[l])||"object"!==ch(o[l])||zh(r[l])||zh(o[l])?r[l]=$b(o[l]):r[l]=Xb(r[l],o[l]))}}catch(t){a.e(t)}finally{a.f()}return r}function $b(t){return zh(t)?lp(t).call(t,(function(t){return $b(t)})):"object"===ch(t)&&null!==t?t instanceof Date?new Date(t.getTime()):Xb({},t):t}function Kb(t){for(var e=0,n=Tp(t);e2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===n)if("object"===ch(e[r])&&null!==e[r]&&Rv(e[r])===Object.prototype)void 0===t[r]?t[r]=uw({},e[r],n):"object"===ch(t[r])&&null!==t[r]&&Rv(t[r])===Object.prototype?uw(t[r],e[r],n):aw(t,e,r,i);else if(zh(e[r])){var o;t[r]=mm(o=e[r]).call(o)}else aw(t,e,r,i);return t}function cw(t){var e=ch(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":zh(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function hw(t,e){var n;return fm(n=[]).call(n,am(t),[e])}function dw(t){return mm(t).call(t)}var pw=$v,fw={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),ow(t)?t:rw(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function mw(t){var e;switch(t.length){case 3:case 4:return(e=ew.exec(t))?{r:gg(e[1]+e[1],16),g:gg(e[2]+e[2],16),b:gg(e[3]+e[3],16)}:null;case 6:case 7:return(e=tw.exec(t))?{r:gg(e[1],16),g:gg(e[2],16),b:gg(e[3],16)}:null;default:return null}}function vw(t,e,n){var i;return"#"+mm(i=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(i,1)}function gw(t,e,n){t/=255,e/=255,n/=255;var i=Math.min(t,Math.min(e,n)),r=Math.max(t,Math.max(e,n));return i===r?{h:0,s:0,v:i}:{h:60*((t===i?3:n===i?1:5)-(t===i?e-n:n===i?t-e:n-t)/(r-i))/360,s:(r-i)/r,v:r}}function yw(t){var e=document.createElement("div"),n={};e.style.cssText=t;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:1;Fr(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return fh(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return Tw[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,i=this._isColorString(t);if(void 0!==i&&(t=i),!0===ow(t)){if(!0===xw(t)){var r=t.substr(4).substr(0,t.length-5).split(",");n={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===Sw(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===kw(t)){var s=mw(t);n={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+jg(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=pv({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",sd((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=pv({},t)),this.color=t;var e=gw(t.r,t.g,t.b),n=2*Math.PI,i=this.r*e.s,r=this.centerCoordinates.x+i*Math.sin(n*e.h),o=this.centerCoordinates.y+i*Math.cos(n*e.h);this.colorPickerSelector.style.left=r-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=gw(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=bw(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=gw(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var i=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,i,r),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Vg(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,i;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var r=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Hh(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Hh(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Hh(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Hh(i=this._loadLast).call(i,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Qb(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,i,r,o=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,s),this.centerCoordinates={x:.5*o,y:.5*s},this.r=.49*o;var a,l=2*Math.PI/360,u=1/this.r;for(i=0;i<360;i++)for(r=0;r3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};Fr(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},pv(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Cw(r),this.wrapper=void 0}return fh(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(zh(t))this.options.filter=t.join();else if("object"===ch(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Od(t)&&(this.options.filter=Od(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Od(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Od(this.options),e=0,n=!1;for(var i in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,i)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(i,[]))||this._handleObject(this.configureOptions[i],[i],!0):!0!==t&&-1===Og(t).call(t,i)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(i),this._handleObject(this.configureOptions[i],[i])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?n-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");if(i.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;i.firstChild;)i.removeChild(i.firstChild);i.appendChild(Ow("i","b",t))}else i.innerText=t+":";return i}},{key:"_makeDropdown",value:function(t,e,n){var i=document.createElement("select");i.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==Og(t).call(t,e)&&(r=Og(t).call(t,e));for(var o=0;oo&&1!==o&&(a.max=Math.ceil(e*c),u=a.max,l="range increased"),a.value=e}else a.value=i;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=a.value;var d=this;a.onchange=function(){h.value=this.value,d._update(Number(this.value),n)},a.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),f=this._makeItem(n,p,a,h);""!==l&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,r=Od(this.options),o=!1;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){i=!0;var a=t[s],l=hw(e,s);if("function"==typeof r&&!1===(i=r(s,e))&&!zh(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,i=this._handleObject(a,l,!0),this.allowCreation=!1===n),!1!==i){o=!0;var u=this._getValue(l);if(zh(a))this._handleArray(a,u,l);else if("string"==typeof a)this._makeTextInput(a,u,l);else if("boolean"==typeof a)this._makeCheckbox(a,u,l);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){var c=hw(l,"enabled"),h=this._getValue(c);if(!0===h){var d=this._makeLabel(s,l,!0);this._makeItem(l,d),o=this._handleObject(a,l)||o}else this._makeCheckbox(a,h,l)}else{var p=this._makeLabel(s,l,!0);this._makeItem(l,p),o=this._handleObject(a,l)||o}}else console.error("dont know how to handle",a,s,l)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n;t="false"!==(t="true"===t||t)&&t;for(var r=0;rr-this.padding&&(a=!0),o=a?this.x-n:this.x,s=l?this.y-e:this.y}else(s=this.y-e)+e+this.padding>i&&(s=i-e-this.padding),sr&&(o=r-n-this.padding),os.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Tp(n))+t.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+r,Iw),Aw=!0}},{key:"findInOptions",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[],l=e.toLowerCase(),u=void 0;for(var c in n){var h=void 0;if(void 0!==n[c].__type__&&!0===r){var d=t.findInOptions(e,n[c],hw(i,c));o>d.distance&&(s=d.closestMatch,a=d.path,o=d.distance,u=d.indexMatch)}else{var p;-1!==Og(p=c.toLowerCase()).call(p,l)&&(u=c),o>(h=t.levenshteinDistance(e,c))&&(s=c,a=dw(i),o=h)}}return{closestMatch:s,path:a,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",i=0;i>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),n=t(" "),i=t(" "),r=0;r0)return"before"==i?Math.max(0,l-1):l;if(r(s,e)<0&&r(a,e)>0)return"before"==i?l:Math.min(t.length-1,l+1);r(s,e)<0?c=l+1:h=l-1,u++}return-1},bridgeObject:Dw,copyAndExtendArray:hw,copyArray:dw,deepExtend:uw,deepObjectAssign:qb,easingFunctions:{linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},equalArray:function(t,e){if(t.length!==e.length)return!1;for(var n=0,i=t.length;n2&&void 0!==arguments[2]&&arguments[2];for(var r in e)if(void 0!==n[r])if(null===n[r]||"object"!==ch(n[r]))aw(e,n,r,i);else{var o=e[r],s=n[r];sw(o)&&sw(s)&&t(o,s,i)}},forEach:function(t,e){if(zh(t))for(var n=t.length,i=0;i0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},getType:cw,hasParent:function(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},hexToHSV:_w,hexToRGB:mw,insertSort:function(t,e){for(var n=0;n0&&e(i,t[r-1])<0;r--)t[r]=t[r-1];t[r]=i}return t},isDate:function(t){if(t instanceof Date)return!0;if(ow(t)){if(Jb.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:rw,isObject:sw,isString:ow,isValidHex:kw,isValidRGB:xw,isValidRGBA:Sw,mergeOptions:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return null!=t},o=function(t){return null!==t&&"object"===ch(t)};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!r(n))throw new Error("Parameter option must have a value");if(!o(i))throw new Error("Parameter globalOptions must be an object");var s=e[n],a=o(i)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(i)?i[n]:void 0,l=a?a.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return o(t[n])||(t[n]={}),void(t[n].enabled=s);if(null===s&&!o(t[n])){if(!r(a))return;t[n]=Pg(a)}if(o(s)){var u=!0;void 0!==s.enabled?u=s.enabled:void 0!==l&&(u=a.enabled),function(t,e,n){o(t[n])||(t[n]={});var i=e[n],r=t[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}(t,e,n),t[n].enabled=u}}},option:fw,overrideOpacity:function(t,e){if(jv(t).call(t,"rgba"))return t;if(jv(t).call(t,"rgb")){var n=t.substr(Og(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var i=mw(t);return null==i?t:"rgba("+i.r+","+i.g+","+i.b+","+e+")"},parseColor:function(t,e){if(ow(t)){var n=t;if(xw(n)){var i,r=lp(i=n.substr(4).substr(0,n.length-5).split(",")).call(i,(function(t){return gg(t)}));n=vw(r[0],r[1],r[2])}if(!0===kw(n)){var o=_w(n),s={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},a={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},l=ww(a.h,a.s,a.v),u=ww(s.h,s.s,s.v);return{background:n,border:l,highlight:{background:u,border:l},hover:{background:u,border:l}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:ow(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:ow(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:ow(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:ow(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r3&&void 0!==arguments[3]&&arguments[3];if(zh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r2?n-2:0),r=2;r3&&void 0!==arguments[3]&&arguments[3];if(zh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&!jv(t).call(t,r))if(n[r]&&n[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?uw(e[r],n[r]):aw(e,n,r,i);else if(zh(n[r])){e[r]=[];for(var o=0;o/g,d_=/"/g,p_=/"/g,f_=/&#([a-zA-Z0-9]*);?/gim,m_=/:?/gim,v_=/&newline;?/gim,g_=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,y_=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,b_=/u\s*r\s*l\s*\(.*/gi;function w_(t){return t.replace(d_,""")}function __(t){return t.replace(p_,'"')}function k_(t){return t.replace(f_,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function x_(t){return t.replace(m_,":").replace(v_," ")}function S_(t){for(var e="",n=0,i=t.length;n0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}}function j_(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}C_.parseTag=function(t,e,n){var i="",r=0,o=!1,s=!1,a=0,l=t.length,u="",c="";t:for(a=0;a"===h||a===l-1){i+=n(t.slice(r,o)),u=E_(c=t.slice(o,a+1)),i+=e(o,i.length,u,c,M_(c)),r=a+1,o=!1;continue}if('"'===h||"'"===h)for(var d=1,p=t.charAt(a-d);""===p.trim()||"="===p;){if("="===p){s=h;continue t}p=t.charAt(a-++d)}}else if(h===s){s=!1;continue}}return r";var m=function(t){var e=H_.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=H_.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=H_.trim(t.slice(0,-1))),{html:t,closing:n}}(h),v=n[c],g=z_(m.html,(function(t,e){var n=-1!==H_.indexOf(v,t),i=o(c,t,e,n);return G_(i)?n?(e=a(c,t,e,u))?t+'="'+e+'"':t:G_(i=s(c,t,e,n))?void 0:i:i}));return h="<"+c,g&&(h+=" "+g),m.closing&&(h+=" /"),h+">"}return G_(f=r(c,h,p))?l(h):f}),l);return c&&(h=c.remove(h)),h};var W_=B_;!function(t,e){var n=Ww,i=C_,r=W_;function o(t,e){return new r(e).process(t)}(e=t.exports=o).filterXSS=o,e.FilterXSS=r,function(){for(var t in n)e[t]=n[t];for(var r in i)e[r]=i[r]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)}(Bw,Bw.exports);var V_=s(Bw.exports);let U_;const q_=new Uint8Array(16);function X_(){if(!U_&&(U_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!U_))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return U_(q_)}const $_=[];for(let t=0;t<256;++t)$_.push((t+256).toString(16).slice(1));var K_={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Q_(t,e,n){if(K_.randomUUID&&!e&&!t)return K_.randomUUID();const i=(t=t||{}).random||(t.rng||X_)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=i[t];return e}return function(t,e=0){return $_[t[e+0]]+$_[t[e+1]]+$_[t[e+2]]+$_[t[e+3]]+"-"+$_[t[e+4]]+$_[t[e+5]]+"-"+$_[t[e+6]]+$_[t[e+7]]+"-"+$_[t[e+8]]+$_[t[e+9]]+"-"+$_[t[e+10]]+$_[t[e+11]]+$_[t[e+12]]+$_[t[e+13]]+$_[t[e+14]]+$_[t[e+15]]}(i)}function Z_(t,e){var n=Tp(t);if(_d){var i=_d(t);e&&(i=Od(i).call(i,(function(e){return Fd(t,e).enumerable}))),n.push.apply(n,i)}return n}function J_(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"},u=t._idProp,c=new r.DataSet({fieldId:u}),h=lp(e=r.createNewDataPipeFrom(t)).call(e,(function(t){var e;return xp(e=Tp(t)).call(e,(function(e,n){return e[n]=ik(t[n],l[n]),e}),{})})).to(c);return h.all().start(),{add:function(){var e;return(e=t.getDataSet()).add.apply(e,arguments)},remove:function(){var e;return(e=t.getDataSet()).remove.apply(e,arguments)},update:function(){var e;return(e=t.getDataSet()).update.apply(e,arguments)},updateOnly:function(){var e;return(e=t.getDataSet()).updateOnly.apply(e,arguments)},clear:function(){var e;return(e=t.getDataSet()).clear.apply(e,arguments)},forEach:Hh(n=bd(c)).call(n,c),get:Hh(i=c.get).call(i,c),getIds:Hh(o=c.getIds).call(o,c),off:Hh(s=c.off).call(s,c),on:Hh(a=c.on).call(a,c),get length(){return c.length},idProp:u,type:l,rawDS:t,coercedDS:c,dispose:function(){return h.stop()}}}var ok=function(t){var e=new V_.FilterXSS(t);return function(t){return e.process(t)}},sk=function(t){return t},ak=ok(),lk=J_(J_({},Gw),{},{convert:ik,setupXSSProtection:function(t){t&&(!0===t.disabled?(ak=sk,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(ak=ok(t.filterOptions)))}});Cp(lk,"xss",{get:function(){return ak}});var uk=l,ck=u,hk=Oo,dk=rg.trim,pk=Kv,fk=w("".charAt),mk=uk.parseFloat,vk=uk.Symbol,gk=vk&&vk.iterator,yk=1/mk(pk+"-0")!=-1/0||gk&&!ck((function(){mk(Object(gk))}))?function(t){var e=dk(hk(t)),n=mk(e);return 0===n&&"-"===fk(e,0)?-0:n}:mk;In({global:!0,forced:parseFloat!==yk},{parseFloat:yk});var bk=s(ot.parseFloat),wk=function(){function t(e,n){Fr(this,t),this.options=null,this.props=null}return fh(t,[{key:"setOptions",value:function(t){t&&lk.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var 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}}]),t}(),_k=Ti,kk=Oo,xk=Z,Sk=RangeError;In({target:"String",proto:!0},{repeat:function(t){var e=kk(xk(this)),n="",i=_k(t);if(i<0||i===1/0)throw new Sk("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}});var Dk=kh("String").repeat,Tk=ht,Ck=Dk,Ok=String.prototype,Ek=function(t){var e=t.repeat;return"string"==typeof t||t===Ok||Tk(Ok,t)&&e===Ok.repeat?Ck:e},Mk=s(Ek),Pk=Lo,Ak=Math.floor,Ik=function(t,e){var n=t.length,i=Ak(n/2);return n<8?Nk(t,e):jk(t,Ik(Pk(t,0,i),e),Ik(Pk(t,i),e),e)},Nk=function(t,e){for(var n,i,r=t.length,o=1;o0;)t[i]=t[--i];i!==o++&&(t[i]=n)}return t},jk=function(t,e,n,i){for(var r=e.length,o=n.length,s=0,a=0;s3)){if(Jk)return!0;if(ex)return ex<603;var t,e,n,i,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)nx.push({k:e+i,v:n})}for(nx.sort((function(t,e){return e.v-t.v})),i=0;iXk(n)?1:-1}}(t)),n=Uk(r),i=0;i=4*o){var u=0,c=r.clone();switch(Mk(n[s])){case"daily":a.day()!=l.day()&&(u=1),a.dayOfYear(i.dayOfYear()),a.year(i.year()),a.subtract(7,"days"),l.dayOfYear(i.dayOfYear()),l.year(i.year()),l.subtract(7-u,"days"),c.add(1,"weeks");break;case"weekly":var h=l.diff(a,"days"),d=a.day();a.date(i.date()),a.month(i.month()),a.year(i.year()),l=a.clone(),a.day(d),l.day(d),l.add(h,"days"),a.subtract(1,"weeks"),l.subtract(1,"weeks"),c.add(1,"weeks");break;case"monthly":a.month()!=l.month()&&(u=1),a.month(i.month()),a.year(i.year()),a.subtract(1,"months"),l.month(i.month()),l.year(i.year()),l.subtract(1,"months"),l.add(u,"months"),c.add(1,"months");break;case"yearly":a.year()!=l.year()&&(u=1),a.year(i.year()),a.subtract(1,"years"),l.year(i.year()),l.subtract(1,"years"),l.add(u,"years"),c.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Mk(n[s]))}for(;a=n[r].start&&n[o].end<=n[r].end?n[o].remove=!0:n[o].start>=n[r].start&&n[o].start<=n[r].end?(n[r].end=n[o].end,n[o].remove=!0):n[o].end>=n[r].start&&n[o].end<=n[r].end&&(n[r].start=n[o].start,n[o].remove=!0));for(r=0;r=s&&rt.range.end){var a={start:t.range.start,end:e};return e=xx(t.options.moment,t.body.hiddenDates,a,e),i=t.range.conversion(n,o),(e.valueOf()-i.offset)*i.scale}return e=xx(t.options.moment,t.body.hiddenDates,t.range,e),i=t.range.conversion(n,o),(e.valueOf()-i.offset)*i.scale}function wx(t,e,n){if(0==t.body.hiddenDates.length){var i=t.range.conversion(n);return new Date(e/i.scale+i.offset)}var r=_x(t.body.hiddenDates,t.range.start,t.range.end),o=(t.range.end-t.range.start-r)*e/n,s=Dx(t.body.hiddenDates,t.range,o);return new Date(s+o+t.range.start)}function _x(t,e,n){for(var i=0,r=0;r=e&&s=e&&s<=n&&(i+=s-o)}return i}function xx(t,e,n,i){return(i=t(i).toDate().valueOf())-Sx(t,e,n,i)}function Sx(t,e,n,i){var r=0;i=t(i).toDate().valueOf();for(var o=0;o=n.start&&a=a&&(r+=a-s)}return r}function Dx(t,e,n){for(var i=0,r=0,o=e.start,s=0;s=e.start&&l=n)break;i+=l-a}}return i}function Tx(t,e,n,i){var r=Cx(e,t);return 1==r.hidden?n<0?1==i?r.startDate-(r.endDate-e)-1:r.startDate-1:1==i?r.endDate+(e-r.startDate)+1:r.endDate+1:e}function Cx(t,e){for(var n=0;n=i&&t1e3&&(n=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=sd(e,n)}()}},{key:"stopRolling",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(t,e,n,i,r){n||(n={}),!0!==n.byUser&&(n.byUser=!1);var o=this,s=null!=t?lk.convert(t,"Date").valueOf():null,a=null!=e?lk.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,n.animation){var l,u=this.start,c=this.end,h="object"===ch(n.animation)&&"duration"in n.animation?n.animation.duration:500,d="object"===ch(n.animation)&&"easingFunction"in n.animation?n.animation.easingFunction:"easeInOutQuad",p=lk.easingFunctions[d];if(!p)throw new Error(fm(l="Unknown easing function ".concat(jg(d),". Choose from: ")).call(l,Tp(lk.easingFunctions).join(", ")));var f=wm(),m=!1;return function t(){if(!o.props.touch.dragging){var e=wm()-f,l=p(e/h),d=e>h,g=d||null===s?s:u+(s-u)*l,y=d||null===a?a:c+(a-c)*l;v=o._applyRange(g,y),vx(o.options.moment,o.body,o.options.hiddenDates),m=m||v;var b={start:new Date(o.start),end:new Date(o.end),byUser:n.byUser,event:n.event};if(r&&r(l,v,d),v&&o.body.emitter.emit("rangechange",b),d){if(m&&(o.body.emitter.emit("rangechanged",b),i))return i()}else o.animationTimer=sd(t,20)}}()}var v=this._applyRange(s,a);if(vx(this.options.moment,this.body,this.options.hiddenDates),v){var g={start:new Date(this.start),end:new Date(this.end),byUser:n.byUser,event:n.event};if(this.body.emitter.emit("rangechange",g),clearTimeout(o.timeoutID),o.timeoutID=sd((function(){o.body.emitter.emit("rangechanged",g)}),200),i)return i()}}},{key:"getMillisecondsPerPixel",value:function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(t,e){var n,i=null!=t?lk.convert(t,"Date").valueOf():this.start,r=null!=e?lk.convert(e,"Date").valueOf():this.end,o=null!=this.options.max?lk.convert(this.options.max,"Date").valueOf():null,s=null!=this.options.min?lk.convert(this.options.min,"Date").valueOf():null;if(isNaN(i)||null===i)throw new Error('Invalid start "'.concat(t,'"'));if(isNaN(r)||null===r)throw new Error('Invalid end "'.concat(e,'"'));if(ro&&(r=o)),null!==o&&r>o&&(i-=n=r-o,r-=n,null!=s&&i=this.start-.5&&r<=this.end?(i=this.start,r=this.end):(i-=(n=a-(r-i))/2,r+=n/2))}if(null!==this.options.zoomMax){var l=bk(this.options.zoomMax);l<0&&(l=0),r-i>l&&(this.end-this.start===l&&ithis.end?(i=this.start,r=this.end):(i+=(n=r-i-l)/2,r-=n/2))}var u=this.start!=i||this.end!=r;return i>=this.start&&i<=this.end||r>=this.start&&r<=this.end||this.start>=i&&this.start<=r||this.end>=i&&this.end<=r||this.body.emitter.emit("checkRangedItems"),this.start=i,this.end=r,u}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(t,e){return n.conversion(this.start,this.end,t,e)}},{key:"_onDragStart",value:function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e=this.options.direction;Px(e);var n="horizontal"==e?t.deltaX:t.deltaY;n-=this.deltaDifference;var i=this.props.touch.end-this.props.touch.start;i-=_x(this.body.hiddenDates,this.start,this.end);var r,o="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;r=this.options.rtl?n/o*i:-n/o*i;var s=this.props.touch.start+r,a=this.props.touch.end+r,l=Tx(this.body.hiddenDates,s,this.previousDelta-n,!0),u=Tx(this.body.hiddenDates,a,this.previousDelta-n,!0);if(l!=s||u!=a)return this.deltaDifference+=n,this.props.touch.start=l,this.props.touch.end=u,void this._onDrag(t);this.previousDelta=n,this._applyRange(s,a);var c=new Date(this.start),h=new Date(this.end);this.body.emitter.emit("rangechange",{start:c,end:h,byUser:!0,event:t}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(t){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:t}))}},{key:"_onMouseWheel",value:function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail?e=-t.detail/3:t.deltaY&&(e=-t.deltaY/3),!(this.options.zoomKey&&!t[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&e){var n,i,r=this.options.zoomFriction||5;if(n=e<0?1-e/r:1/(1+e/r),this.rolling){var o=this.options.rollingMode&&this.options.rollingMode.offset||.5;i=this.start+(this.end-this.start)*o}else{var s=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);i=this._pointerToDate(s)}this.zoom(n,i,e,t),t.preventDefault()}}},{key:"_onTouch",value:function(t){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,lk.preventDefault(t)}},{key:"_onPinch",value:function(t){if(this.options.zoomable&&this.options.moveable){lk.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),n=this.props.touch.centerDate,i=_x(this.body.hiddenDates,this.start,this.end),r=Sx(this.options.moment,this.body.hiddenDates,this,n),o=i-r,s=n-r+(this.props.touch.start-(n-r))*e,a=n+o+(this.props.touch.end-(n+o))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var l=Tx(this.body.hiddenDates,s,1-e,!0),u=Tx(this.body.hiddenDates,a,e-1,!0);l==s&&u==a||(this.props.touch.start=l,this.props.touch.end=u,this.scaleOffset=1-t.scale,s=l,a=u);var c={animation:!1,byUser:!0,event:t};this.setRange(s,a,c),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(t){var e=t.center?t.center.x:t.clientX,n=this.body.dom.centerContainer.getBoundingClientRect(),i=this.options.rtl?e-n.left:n.right-e,r=this.body.util.toTime(i);return r>=this.start&&r<=this.end}},{key:"_pointerToDate",value:function(t){var e,n=this.options.direction;if(Px(n),"horizontal"==n)return this.body.util.toTime(t.x).valueOf();var i=this.body.domProps.center.height;return e=this.conversion(i),t.y/e.scale+e.offset}},{key:"getPointer",value:function(t,e){var n=e.getBoundingClientRect();return this.options.rtl?{x:n.right-t.x,y:t.y-n.top}:{x:t.x-n.left,y:t.y-n.top}}},{key:"zoom",value:function(t,e,n,i){null==e&&(e=(this.start+this.end)/2);var r=_x(this.body.hiddenDates,this.start,this.end),o=Sx(this.options.moment,this.body.hiddenDates,this,e),s=r-o,a=e-o+(this.start-(e-o))*t,l=e+s+(this.end-(e+s))*t;this.startToFront=!(n>0),this.endToFront=!(-n>0);var u=Tx(this.body.hiddenDates,a,n,!0),c=Tx(this.body.hiddenDates,l,-n,!0);u==a&&c==l||(a=u,l=c);var h={animation:!1,byUser:!0,event:i};this.setRange(a,l,h),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(t){var e=this.end-this.start,n=this.start+e*t,i=this.end+e*t;this.start=n,this.end=i}},{key:"moveTo",value:function(t){var e=(this.start+this.end)/2-t,n=this.start-e,i=this.end-e;this.setRange(n,i,{animation:!1,byUser:!0,event:null})}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(t,e,n,i){return void 0===i&&(i=0),0!=n&&e-t!=0?{offset:t,scale:n/(e-t-i)}:{offset:0,scale:1}}}]),n}(wk);function Px(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var Ax=Gs.some;In({target:"Array",proto:!0,forced:!ld("some")},{some:function(t){return Ax(this,t,arguments.length>1?arguments[1]:void 0)}});var Ix,Nx=kh("Array").some,jx=ht,Rx=Nx,Fx=Array.prototype,Lx=function(t){var e=t.some;return t===Fx||jx(Fx,t)&&e===Fx.some?Rx:e},Yx=s(Lx),zx=s(ot.setInterval),Hx=null;Ix="undefined"!=typeof window?function t(e,n){var i=n||{preventDefault:!1};if(e.Manager){var r=e,o=function(e,n){var o=Object.create(i);return n&&r.assign(o,n),t(new r(e,o),o)};return r.assign(o,r),o.Manager=function(e,n){var o=Object.create(i);return n&&r.assign(o,n),t(new r.Manager(e,o),o)},o}var s=Object.create(e),a=e.element;function l(t){return t.match(/[^ ]+/g)}function u(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var n=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof n&&(t.srcEvent.stopPropagation=function(){n(),t.stopPropagation()}),t.firstTarget=Hx;for(var i=Hx;i&&!e;){var r=i.hammer;if(r)for(var o,s=0;s0?s._handlers[t]=i:(e.off(t,u),delete s._handlers[t]))})),s},s.emit=function(t,n){Hx=n.target,e.emit(t,n)},s.destroy=function(){var t=e.element.hammer,n=t.indexOf(s);-1!==n&&t.splice(n,1),t.length||delete e.element.hammer,s._handlers={},e.destroy()},s}(window.Hammer||Bb,{preventDefault:"mouse"}):function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(e){return{set:t}}}}()};var Gx=Ix;function Bx(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)}var Wx=function(){function t(e,n,i,r,o){Fr(this,t),this.moment=o&&o.moment||wd,this.options=o||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(e,n,i),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,zh(r)?this.hiddenDates=r:this.hiddenDates=null!=r?[r]:[],this.format=t.FORMAT}return fh(t,[{key:"setMoment",value:function(t){this.moment=t,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(e){var n=lk.deepExtend({},t.FORMAT);this.format=lk.deepExtend(n,e)}},{key:"setRange",value:function(t,e,n){if(!(t instanceof Date&&e instanceof Date))throw"No legal start or end date in method setRange";this._start=null!=t?this.moment(t.valueOf()):wm(),this._end=null!=e?this.moment(e.valueOf()):wm(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch("week"==this.scale&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(1!=this.step){var t=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year")}t.isSame(this.current)||(this.current=this.moment(Tx(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var t=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!=0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(0!==this.current.weekday())this.current.weekday(0),this.current.add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current.add(this.step,"week");else{var e=this.current.clone();e.add(1,"week"),e.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year")}if(1!=this.step)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()0&&this.current.seconds()0&&this.current.minutes()0&&this.current.hours()0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){if(null!=t){var e=31104e6,n=2592e6,i=864e5,r=36e5,o=6e4,s=1e3;1e3*e>t&&(this.scale="year",this.step=1e3),500*e>t&&(this.scale="year",this.step=500),100*e>t&&(this.scale="year",this.step=100),50*e>t&&(this.scale="year",this.step=50),10*e>t&&(this.scale="year",this.step=10),5*e>t&&(this.scale="year",this.step=5),e>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),n>t&&(this.scale="month",this.step=1),6048e5>t&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>t&&(this.scale="day",this.step=2),i>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),r>t&&(this.scale="hour",this.step=1),9e5>t&&(this.scale="minute",this.step=15),6e5>t&&(this.scale="minute",this.step=10),3e5>t&&(this.scale="minute",this.step=5),o>t&&(this.scale="minute",this.step=1),15e3>t&&(this.scale="second",this.step=15),1e4>t&&(this.scale="second",this.step=10),5e3>t&&(this.scale="second",this.step=5),s>t&&(this.scale="second",this.step=1),200>t&&(this.scale="millisecond",this.step=200),100>t&&(this.scale="millisecond",this.step=100),50>t&&(this.scale="millisecond",this.step=50),10>t&&(this.scale="millisecond",this.step=10),5>t&&(this.scale="millisecond",this.step=5),1>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return 0==t.milliseconds();case"second":return 0==t.seconds();case"minute":return 0==t.hours()&&0==t.minutes();case"hour":return 0==t.hours();case"weekday":case"day":return this.options.showWeekScale?1==t.isoWeekday():1==t.date();case"week":return 1==t.date();case"month":return 0==t.month();default:return!1}}},{key:"getLabelMinor",value:function(t){if(null==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(t,this.scale,this.step);var e=this.format.minorLabels[this.scale];return"week"===this.scale&&1===t.date()&&0!==t.weekday()?"":e&&e.length>0?this.moment(t).format(e):""}},{key:"getLabelMajor",value:function(t){if(null==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(t,this.scale,this.step);var e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""}},{key:"getClassName",value:function(){var t,e=this.moment,n=this.moment(this.current),i=n.locale?n.locale("en"):n.lang("en"),r=this.step,o=[];function s(t){return t/r%2==0?" vis-even":" vis-odd"}function a(t){return t.isSame(wm(),"day")?" vis-today":t.isSame(e().add(1,"day"),"day")?" vis-tomorrow":t.isSame(e().add(-1,"day"),"day")?" vis-yesterday":""}function l(t){return t.isSame(wm(),"week")?" vis-current-week":""}function u(t){return t.isSame(wm(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":o.push(a(i)),o.push(s(i.milliseconds()));break;case"second":o.push(a(i)),o.push(s(i.seconds()));break;case"minute":o.push(a(i)),o.push(s(i.minutes()));break;case"hour":o.push(fm(t="vis-h".concat(i.hours())).call(t,4==this.step?"-h"+(i.hours()+4):"")),o.push(a(i)),o.push(s(i.hours()));break;case"weekday":o.push("vis-".concat(i.format("dddd").toLowerCase())),o.push(a(i)),o.push(l(i)),o.push(s(i.date()));break;case"day":o.push("vis-day".concat(i.date())),o.push("vis-".concat(i.format("MMMM").toLowerCase())),o.push(a(i)),o.push(u(i)),o.push(this.step<=2?a(i):""),o.push(this.step<=2?"vis-".concat(i.format("dddd").toLowerCase()):""),o.push(s(i.date()-1));break;case"week":o.push("vis-week".concat(i.format("w"))),o.push(l(i)),o.push(s(i.week()));break;case"month":o.push("vis-".concat(i.format("MMMM").toLowerCase())),o.push(u(i)),o.push(s(i.month()));break;case"year":o.push("vis-year".concat(i.year())),o.push(function(t){return t.isSame(wm(),"year")?" vis-current-year":""}(i)),o.push(s(i.year()))}return Od(o).call(o,String).join(" ")}}],[{key:"snap",value:function(t,e,n){var i=wd(t);if("year"==e){var r=i.year()+Math.round(i.month()/12);i.year(Math.round(r/n)*n),i.month(0),i.date(0),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("month"==e)i.date()>15?(i.date(1),i.add(1,"month")):i.date(1),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0);else if("week"==e)i.weekday()>2?(i.weekday(0),i.add(1,"week")):i.weekday(0),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0);else if("day"==e){switch(n){case 5:case 2:i.hours(24*Math.round(i.hours()/24));break;default:i.hours(12*Math.round(i.hours()/12))}i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("weekday"==e){switch(n){case 5:case 2:i.hours(12*Math.round(i.hours()/12));break;default:i.hours(6*Math.round(i.hours()/6))}i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("hour"==e)4===n?i.minutes(60*Math.round(i.minutes()/60)):i.minutes(30*Math.round(i.minutes()/30)),i.seconds(0),i.milliseconds(0);else if("minute"==e){switch(n){case 15:case 10:i.minutes(5*Math.round(i.minutes()/5)),i.seconds(0);break;case 5:i.seconds(60*Math.round(i.seconds()/60));break;default:i.seconds(30*Math.round(i.seconds()/30))}i.milliseconds(0)}else if("second"==e)switch(n){case 15:case 10:i.seconds(5*Math.round(i.seconds()/5)),i.milliseconds(0);break;case 5:i.milliseconds(1e3*Math.round(i.milliseconds()/1e3));break;default:i.milliseconds(500*Math.round(i.milliseconds()/500))}else if("millisecond"==e){var o=n>5?n/2:1;i.milliseconds(Math.round(i.milliseconds()/o)*o)}return i}}]),t}();function Vx(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}Wx.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}};var Ux=function(t){Ph(n,t);var e=Vx(n);function n(t,i){var r;return Fr(this,n),(r=e.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},r.props={range:{start:0,end:0,minimumStep:0},lineTop:0},r.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:lk.extend({},Wx.FORMAT),moment:wd,timeAxis:null},r.options=lk.extend({},r.defaultOptions),r.body=t,r._create(),r.setOptions(i),r}return fh(n,[{key:"setOptions",value:function(t){t&&(lk.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,t),lk.selectiveDeepExtend(["format"],this.options,t),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.axis=t.orientation:"object"===ch(t.orientation)&&"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),"locale"in t&&("function"==typeof wd.locale?wd.locale(t.locale):wd.lang(t.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var t=this.props,e=this.dom.foreground,n=this.dom.background,i="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,r=e.parentNode!==i;this._calculateCharSize();var o=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,s=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;t.minorLabelHeight=o?t.minorCharHeight:0,t.majorLabelHeight=s?t.majorCharHeight:0,t.height=t.minorLabelHeight+t.majorLabelHeight,t.width=e.offsetWidth,t.minorLineHeight=this.body.domProps.root.height-t.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),t.minorLineWidth=1,t.majorLineHeight=t.minorLineHeight+t.majorLabelHeight,t.majorLineWidth=1;var a=e.nextSibling,l=n.nextSibling;return e.parentNode&&e.parentNode.removeChild(e),n.parentNode&&n.parentNode.removeChild(n),e.style.height="".concat(this.props.height,"px"),this._repaintLabels(),a?i.insertBefore(e,a):i.appendChild(e),l?this.body.dom.backgroundVertical.insertBefore(n,l):this.body.dom.backgroundVertical.appendChild(n),this._isResized()||r}},{key:"_repaintLabels",value:function(){var t=this.options.orientation.axis,e=lk.convert(this.body.range.start,"Number"),n=lk.convert(this.body.range.end,"Number"),i=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),r=i-Sx(this.options.moment,this.body.hiddenDates,this.body.range,i);r-=this.body.util.toTime(0).valueOf();var o=new Wx(new Date(e),new Date(n),r,this.body.hiddenDates,this.options);o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var s,a,l,u,c,h,d=this.dom;d.redundant.lines=d.lines,d.redundant.majorTexts=d.majorTexts,d.redundant.minorTexts=d.minorTexts,d.lines=[],d.majorTexts=[],d.minorTexts=[];var p,f,m,v=0,g=void 0,y=0,b=1e3;for(o.start(),a=o.getCurrent(),u=this.body.util.toScreen(a);o.hasNext()&&y=.4*p,this.options.showMinorLabels&&h){var w=this._repaintMinorText(l,o.getLabelMinor(s),t,m);w.style.width="".concat(v,"px")}c&&this.options.showMajorLabels?(l>0&&(null==g&&(g=l),w=this._repaintMajorText(l,o.getLabelMajor(s),t,m)),f=this._repaintMajorLine(l,v,t,m)):h?f=this._repaintMinorLine(l,v,t,m):f&&(f.style.width="".concat(gg(f.style.width)+v,"px"))}if(y!==b||qx||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(b," lines.")),qx=!0),this.options.showMajorLabels){var _=this.body.util.toTime(0),k=o.getLabelMajor(_),x=k.length*(this.props.majorCharWidth||10)+10;(null==g||x=Math.abs(e)){var i=this.props.scrollTop,r=i+n;this.isActive()&&this._setScrollTop(r)!==i&&(this._redraw(),this.emit("scroll",t),t.preventDefault())}else if(this.options.horizontalScroll){var o=(Math.abs(e)>=Math.abs(n)?e:n)/120*(this.range.end-this.range.start)/20,s=this.range.start+o,a=this.range.end+o,l={animation:!1,byUser:!0,event:t};this.range.setRange(s,a,l),t.preventDefault()}}bd(u).call(u,(function(t){var e=function(e){o.isActive()&&o.emit(t,e)};o.hammer.on(t,e),o.timelineListeners[t]=e})),Bx(this.hammer,(function(t){o.emit("touch",t)})),a=this.hammer,(l=function(t){o.emit("release",t)}).inputHandler=function(t){t.isFinal&&l(t)},a.on("hammer.input",l.inputHandler);var h="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function d(t){if(o.options.verticalScroll&&(t.preventDefault(),o.isActive())){var e=-t.target.scrollTop;o._setScrollTop(e),o._redraw(),o.emit("scrollSide",t)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(h,Hh(c).call(c,this),!1),this.dom.top.addEventListener(h,Hh(c).call(c,this),!1),this.dom.bottom.addEventListener(h,Hh(c).call(c,this),!1),this.dom.left.parentNode.addEventListener("scroll",Hh(d).call(d,this)),this.dom.right.parentNode.addEventListener("scroll",Hh(d).call(d,this));var p=!1;function f(t){var e;if(t.preventDefault&&(o.emit("dragover",o.getEventProperties(t)),t.preventDefault()),Og(e=t.target.className).call(e,"timeline")>-1&&!p)return t.dataTransfer.dropEffect="move",p=!0,!1}function m(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData("text"));if(!e||!e.content)return}catch(t){return!1}return p=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?o.itemSet._onAddItem(t):o.itemSet._onDropObjectOnItem(t),o.emit("drop",o.getEventProperties(t)),!1}if(this.dom.center.addEventListener("dragover",Hh(f).call(f,this),!1),this.dom.center.addEventListener("drop",Hh(m).call(m,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(t){var e;if(t){if(lk.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==ch(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation={item:t.orientation,axis:t.orientation}:"object"===ch(t.orientation)&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var n=this.timeAxis2=new Ux(this.body,this.options);n.setOptions=function(t){var e=t?lk.extend({},t):{};e.orientation="top",Ux.prototype.setOptions.call(n,e)},this.components.push(n)}}else if(this.timeAxis2){var i,r,o=Og(i=this.components).call(i,this.timeAxis2);-1!==o&&Zm(r=this.components).call(r,o,1),this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&mx(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new Xx(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(bd(e=this.components).call(e,(function(e){return e.setOptions(t)})),"configure"in t){var s;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var a=lk.deepExtend({},this.options);bd(s=this.components).call(s,(function(t){lk.deepExtend(a,t.options)})),this.configurator.setModuleOptions({global:a})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var t;for(var e in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.timelineListeners)this.timelineListeners.hasOwnProperty(e)&&delete this.timelineListeners[e];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,bd(t=this.components).call(t,(function(t){return t.destroy()})),this.body=null}},{key:"setCustomTime",value:function(t,e){var n,i=Od(n=this.customTimes).call(n,(function(t){return e===t.options.id}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(jg(e)));i.length>0&&i[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var e,n=Od(e=this.customTimes).call(e,(function(e){return e.options.id===t}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(jg(t)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,e,n){var i,r=Od(i=this.customTimes).call(i,(function(t){return t.options.id===e}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(jg(e)));r.length>0&&r[0].setCustomMarker(t,n)}},{key:"setCustomTimeTitle",value:function(t,e){var n,i=Od(n=this.customTimes).call(n,(function(t){return t.options.id===e}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(jg(e)));if(i.length>0)return i[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,e){var n,i=void 0!==t?lk.convert(t,"Date"):new Date,r=Yx(n=this.customTimes).call(n,(function(t){return t.options.id===e}));if(r)throw new Error("A custom time with id ".concat(jg(e)," already exists"));var o=new hS(this.body,lk.extend({},this.options,{time:i,id:e,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(o),this.components.push(o),this._redraw(),e}},{key:"removeCustomTime",value:function(t){var e,n=this,i=Od(e=this.customTimes).call(e,(function(e){return e.options.id===t}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(jg(t)));bd(i).call(i,(function(t){var e,i,r,o;Zm(e=n.customTimes).call(e,Og(i=n.customTimes).call(i,t),1),Zm(r=n.components).call(r,Og(o=n.components).call(o,t),1),t.destroy()}))}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(t){return this.time=t,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,e){var n=this.getDataRange();if(null!==n.min||null!==n.max){var i=n.max-n.min,r=new Date(n.min.valueOf()-.01*i),o=new Date(n.max.valueOf()+.01*i),s=!t||void 0===t.animation||t.animation;this.range.setRange(r,o,{animation:s},e)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,e,n,i){var r,o;"function"==typeof arguments[2]&&(i=arguments[2],n={}),1==arguments.length?(r=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:r})):2==arguments.length&&"function"==typeof arguments[1]?(i=arguments[1],r=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:r},i)):(r=!n||void 0===n.animation||n.animation,this.range.setRange(t,e,{animation:r},i))}},{key:"moveTo",value:function(t,e,n){"function"==typeof arguments[1]&&(n=arguments[1],e={});var i=this.range.end-this.range.start,r=lk.convert(t,"Date").valueOf(),o=r-i/2,s=r+i/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(o,s,{animation:a},n)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,e,n){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(n=arguments[1],e={});var i=this.getWindow(),r=i.start.valueOf(),o=i.end.valueOf(),s=o-r,a=(s-s/(1+t))/2,l=r+a,u=o-a;this.setWindow(l,u,e,n)}}},{key:"zoomOut",value:function(t,e,n){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(n=arguments[1],e={});var i=this.getWindow(),r=i.start.valueOf(),o=i.end.valueOf(),s=o-r,a=r-s*t/2,l=o+s*t/2;this.setWindow(a,l,e,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var t;this.redrawCount++;var e=this.dom;if(e&&e.container&&0!=e.root.offsetWidth){var n=!1,i=this.options,r=this.props;vx(this.options.moment,this.body,this.options.hiddenDates),"top"==i.orientation?(lk.addClassName(e.root,"vis-top"),lk.removeClassName(e.root,"vis-bottom")):(lk.removeClassName(e.root,"vis-top"),lk.addClassName(e.root,"vis-bottom")),i.rtl?(lk.addClassName(e.root,"vis-rtl"),lk.removeClassName(e.root,"vis-ltr")):(lk.addClassName(e.root,"vis-ltr"),lk.removeClassName(e.root,"vis-rtl")),e.root.style.maxHeight=lk.option.asSize(i.maxHeight,""),e.root.style.minHeight=lk.option.asSize(i.minHeight,""),e.root.style.width=lk.option.asSize(i.width,"");var o=e.root.offsetWidth;r.border.left=1,r.border.right=1,r.border.top=1,r.border.bottom=1,r.center.height=e.center.offsetHeight,r.left.height=e.left.offsetHeight,r.right.height=e.right.offsetHeight,r.top.height=e.top.clientHeight||-r.border.top,r.bottom.height=Math.round(e.bottom.getBoundingClientRect().height)||e.bottom.clientHeight||-r.border.bottom;var s=Math.max(r.left.height,r.center.height,r.right.height),a=r.top.height+s+r.bottom.height+r.border.top+r.border.bottom;e.root.style.height=lk.option.asSize(i.height,"".concat(a,"px")),r.root.height=e.root.offsetHeight,r.background.height=r.root.height;var l=r.root.height-r.top.height-r.bottom.height;r.centerContainer.height=l,r.leftContainer.height=l,r.rightContainer.height=r.leftContainer.height,r.root.width=o,r.background.width=r.root.width,this.initialDrawDone||(r.scrollbarWidth=lk.getScrollBarWidth());var u=e.leftContainer.clientWidth,c=e.rightContainer.clientWidth;i.verticalScroll?i.rtl?(r.left.width=u||-r.border.left,r.right.width=c+r.scrollbarWidth||-r.border.right):(r.left.width=u+r.scrollbarWidth||-r.border.left,r.right.width=c||-r.border.right):(r.left.width=u||-r.border.left,r.right.width=c||-r.border.right),this._setDOM();var h=this._updateScrollTop();"top"!=i.orientation.item&&(h+=Math.max(r.centerContainer.height-r.center.height-r.border.top-r.border.bottom,0)),e.center.style.transform="translateY(".concat(h,"px)");var d=0==r.scrollTop?"hidden":"",p=r.scrollTop==r.scrollTopMin?"hidden":"";e.shadowTop.style.visibility=d,e.shadowBottom.style.visibility=p,e.shadowTopLeft.style.visibility=d,e.shadowBottomLeft.style.visibility=p,e.shadowTopRight.style.visibility=d,e.shadowBottomRight.style.visibility=p,i.verticalScroll&&(e.rightContainer.className="vis-panel vis-right vis-vertical-scroll",e.leftContainer.className="vis-panel vis-left vis-vertical-scroll",e.shadowTopRight.style.visibility="hidden",e.shadowBottomRight.style.visibility="hidden",e.shadowTopLeft.style.visibility="hidden",e.shadowBottomLeft.style.visibility="hidden",e.left.style.top="0px",e.right.style.top="0px"),(!i.verticalScroll||r.center.heightr.centerContainer.height;if(this.hammer.get("pan").set({direction:f?Gx.DIRECTION_ALL:Gx.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),bd(t=this.components).call(t,(function(t){n=t.redraw()||n})),n){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var n=t.root.width-t.left.width-t.right.width;t.center.width=n,t.centerContainer.width=n,t.top.width=n,t.bottom.width=n,e.background.style.height="".concat(t.background.height,"px"),e.backgroundVertical.style.height="".concat(t.background.height,"px"),e.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),e.centerContainer.style.height="".concat(t.centerContainer.height,"px"),e.leftContainer.style.height="".concat(t.leftContainer.height,"px"),e.rightContainer.style.height="".concat(t.rightContainer.height,"px"),e.background.style.width="".concat(t.background.width,"px"),e.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),e.backgroundHorizontal.style.width="".concat(t.background.width,"px"),e.centerContainer.style.width="".concat(t.center.width,"px"),e.top.style.width="".concat(t.top.width,"px"),e.bottom.style.width="".concat(t.bottom.width,"px"),e.background.style.left="0",e.background.style.top="0",e.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),e.backgroundVertical.style.top="0",e.backgroundHorizontal.style.left="0",e.backgroundHorizontal.style.top="".concat(t.top.height,"px"),e.centerContainer.style.left="".concat(t.left.width,"px"),e.centerContainer.style.top="".concat(t.top.height,"px"),e.leftContainer.style.left="0",e.leftContainer.style.top="".concat(t.top.height,"px"),e.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),e.rightContainer.style.top="".concat(t.top.height,"px"),e.top.style.left="".concat(t.left.width,"px"),e.top.style.top="0",e.bottom.style.left="".concat(t.left.width,"px"),e.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),e.center.style.left="0",e.left.style.left="0",e.right.style.left="0"}},{key:"setCurrentTime",value:function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(t){return wx(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return wx(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return bx(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return bx(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){if(1==t.options.autoResize){if(t.dom.root){var e=t.dom.root.offsetHeight,n=t.dom.root.offsetWidth;n==t.props.lastWidth&&e==t.props.lastHeight||(t.props.lastWidth=n,t.props.lastHeight=e,t.props.scrollbarWidth=lk.getScrollBarWidth(),t.body.emitter.emit("_change"))}}else t._stopAutoResize()},window.addEventListener("resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=zx(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(t){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(t){if(t&&this.touch.allowDragging){var e=t.deltaY,n=this._getScrollTop(),i=this._setScrollTop(this.touch.initialScrollTop+e);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),i!=n&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop1e3&&(n=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=sd(e,n)}()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(t){var e=lk.convert(t,"Date").valueOf(),n=wm();this.offset=e-n,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(wm()+this.offset)}}]),n}(wk),mS=In,vS=Gs.find,gS="find",yS=!0;gS in[]&&Array(1)[gS]((function(){yS=!1})),mS({target:"Array",proto:!0,forced:yS},{find:function(t){return vS(this,t,arguments.length>1?arguments[1]:void 0)}});var bS=kh("Array").find,wS=ht,_S=bS,kS=Array.prototype,xS=function(t){var e=t.find;return t===kS||wS(kS,t)&&e===kS.find?_S:e},SS=s(xS),DS={exports:{}},TS=u((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),CS=u,OS=rt,ES=S,MS=TS,PS=Object.isExtensible,AS=CS((function(){PS(1)}))||MS?function(t){return!!OS(t)&&(!MS||"ArrayBuffer"!==ES(t))&&(!PS||PS(t))}:PS,IS=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),NS=In,jS=w,RS=zi,FS=rt,LS=ne,YS=en.f,zS=Eo,HS=Ao,GS=AS,BS=IS,WS=!1,VS=ae("meta"),US=0,qS=function(t){YS(t,VS,{value:{objectID:"O"+US++,weakData:{}}})},XS=DS.exports={enable:function(){XS.enable=function(){},WS=!0;var t=zS.f,e=jS([].splice),n={};n[VS]=1,t(n).length&&(zS.f=function(n){for(var i=t(n),r=0,o=i.length;ro;o++)if((a=g(t[o]))&&nD(lD,a))return a;return new aD(!1)}i=iD(t,r)}for(l=d?t.next:i.next;!(u=QS(l,i)).done;){try{a=g(u.value)}catch(t){oD(i,"throw",t)}if("object"==typeof a&&a&&nD(lD,a))return a}return new aD(!1)},cD=ht,hD=TypeError,dD=function(t,e){if(cD(e,t))return t;throw new hD("Incorrect invocation")},pD=In,fD=l,mD=$S,vD=u,gD=_n,yD=uD,bD=dD,wD=P,_D=rt,kD=$,xD=ys,SD=en.f,DD=Gs.forEach,TD=I,CD=Ns.set,OD=Ns.getterFor,ED=Uo,MD=ct,PD=Xo,AD=I,ID=ve("species"),ND=_r,jD=Xo,RD=function(t,e,n){for(var i in e)n&&n.unsafe&&t[i]?t[i]=e[i]:ED(t,i,e[i],n);return t},FD=tn,LD=dD,YD=$,zD=uD,HD=ec,GD=nc,BD=function(t){var e=MD(t);AD&&e&&!e[ID]&&PD(e,ID,{configurable:!0,get:function(){return this}})},WD=I,VD=$S.fastKey,UD=Ns.set,qD=Ns.getterFor,XD={getConstructor:function(t,e,n,i){var r=t((function(t,r){LD(t,o),UD(t,{type:e,index:ND(null),first:void 0,last:void 0,size:0}),WD||(t.size=0),YD(r)||zD(r,t[i],{that:t,AS_ENTRIES:n})})),o=r.prototype,s=qD(e),a=function(t,e,n){var i,r,o=s(t),a=l(t,e);return a?a.value=n:(o.last=a={index:r=VD(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),WD?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},l=function(t,e){var n,i=s(t),r=VD(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===e)return n};return RD(o,{clear:function(){for(var t=s(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,WD?t.size=0:this.size=0},delete:function(t){var e=this,n=s(e),i=l(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first===i&&(n.first=r),n.last===i&&(n.last=o),WD?n.size--:e.size--}return!!i},forEach:function(t){for(var e,n=s(this),i=FD(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),RD(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),WD&&jD(o,"size",{configurable:!0,get:function(){return s(this).size}}),r},setStrong:function(t,e,n){var i=e+" Iterator",r=qD(e),o=qD(i);HD(t,e,(function(t,e){UD(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?GD("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,GD(void 0,!0))}),n?"entries":"values",!n,!0),BD(e)}},$D=function(t,e,n){var i,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=fD[t],l=a&&a.prototype,u={};if(TD&&wD(a)&&(o||l.forEach&&!vD((function(){(new a).entries().next()})))){var c=(i=e((function(e,n){CD(bD(e,c),{type:t,collection:new a}),kD(n)||yD(n,e[s],{that:e,AS_ENTRIES:r})}))).prototype,h=OD(t);DD(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in l)||o&&"clear"===t||gD(c,t,(function(n,i){var r=h(this).collection;if(!e&&o&&!_D(n))return"get"===t&&void 0;var s=r[t](0===n?0:n,i);return e?this:s}))})),o||SD(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else i=n.getConstructor(e,t,r,s),mD.enable();return xD(i,t,!1,!0),u[t]=i,pD({global:!0,forced:!0},u),o||n.setStrong(i,t,r),i};$D("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),XD);var KD=s(ot.Set),QD=In,ZD=Gs.findIndex,JD="findIndex",tT=!0;JD in[]&&Array(1)[JD]((function(){tT=!1})),QD({target:"Array",proto:!0,forced:tT},{findIndex:function(t){return ZD(this,t,arguments.length>1?arguments[1]:void 0)}});var eT=kh("Array").findIndex,nT=ht,iT=eT,rT=Array.prototype,oT=function(t){var e=t.findIndex;return t===rT||nT(rT,t)&&e===rT.findIndex?iT:e},sT=s(oT);function aT(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return lT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?lT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function lT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);ne.index?1:t.indexn[a].index&&(n[o].top+=n[a].height);for(var l=t[o],u=0;ue}),m),Zm(p).call(p,m,0,t),m++}};for(v.s();!(h=v.n()).done;)g()}catch(t){v.e(t)}finally{v.f()}f=null;var y=null;m=0;for(var b,w=0,_=0,k=0,x=function(){var t,n,r=d.shift();r.top=s(r);var c=l(r),h=u(r);null!==f&&ch&&(_=function(t,e,n,r){for(n||(n=0),r||(r=t.length),i=r-1;i>=n;i--)if(e(t[i]))return i;return n-1}(p,(function(t){return h+uT>=l(t)}),w,_)+1);for(var v,g,b,x=fx(t=Od(n=mm(p).call(p,w,_)).call(n,(function(t){return cl(t)}))).call(t,(function(t,e){return t.top-e.top})),S=0;Sg.top&&(r.top=D.top+D.height+e.vertical)}o(r)&&(m=yT(p,(function(t){return l(t)-uT>c}),m),Zm(p).call(p,m,0,r),m++);var T=r.top+r.height;if(T>k&&(k=T),a&&a())return{v:null}};d.length>0;)if(b=x())return b.v;return k}function yT(t,e,n){var i;n||(n=0);var r=sT(i=mm(t).call(t,n)).call(i,e);return-1===r?t.length:r+n}var bT=Object.freeze({__proto__:null,nostack:fT,orderByEnd:hT,orderByStart:cT,stack:dT,stackSubgroups:mT,stackSubgroupsWithInnerStack:vT,substack:pT}),wT="__background__",_T=function(){function t(e,n,i){var r=this;if(Fr(this,t),this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=n&&n.subgroupOrder,this.itemSet=i,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],n&&n.nestedGroups&&(this.nestedGroups=n.nestedGroups,0==n.showNested?this.showNested=!1:this.showNested=!0),n&&n.subgroupStack)if("boolean"==typeof n.subgroupStack)this.doInnerStack=n.subgroupStack,this.subgroupStackAll=n.subgroupStack;else for(var o in n.subgroupStack)this.subgroupStack[o]=n.subgroupStack[o],this.doInnerStack=this.doInnerStack||n.subgroupStack[o];n&&n.heightMode?this.heightMode=n.heightMode:this.heightMode=i.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var s=function(){r.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",s),this._disposeCallbacks.push((function(){r.itemSet.body.emitter.off("checkRangedItems",s)})),this._create(),this.setData(n)}return fh(t,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var e=document.createElement("div");e.className="vis-inner",t.appendChild(e),this.dom.inner=e;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var e,n,i;if(t&&t.subgroupVisibility)for(var r in t.subgroupVisibility)this.subgroupVisibility[r]=t.subgroupVisibility[r];if((e=this.itemSet.options&&this.itemSet.options.groupTemplate?(n=Hh(i=this.itemSet.options.groupTemplate).call(i,this))(t,this.dom.inner):t&&t.content)instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(e)}else e instanceof Object&&e.isReactComponent||(e instanceof Object?n(t,this.dom.inner):this.dom.inner.innerHTML=null!=e?lk.xss(e):lk.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?lk.removeClassName(this.dom.inner,"vis-hidden"):lk.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups?(this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),void 0===t.showNested&&void 0!==this.showNested||(0==t.showNested?this.showNested=!1:this.showNested=!0),lk.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(lk.removeClassName(this.dom.label,"collapsed"),lk.addClassName(this.dom.label,"expanded")):(lk.removeClassName(this.dom.label,"expanded"),lk.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,lk.removeClassName(this.dom.label,"collapsed"),lk.removeClassName(this.dom.label,"expanded"),lk.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(lk.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?lk.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):lk.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):lk.addClassName(this.dom.label,"vis-group-level-0");var o=t&&t.className||null;o!=this.className&&(this.className&&(lk.removeClassName(this.dom.label,this.className),lk.removeClassName(this.dom.foreground,this.className),lk.removeClassName(this.dom.background,this.className),lk.removeClassName(this.dom.axis,this.className)),lk.addClassName(this.dom.label,o),lk.addClassName(this.dom.foreground,o),lk.addClassName(this.dom.background,o),lk.addClassName(this.dom.axis,o),this.className=o),this.style&&(lk.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(lk.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var e={},n=0;if(bd(lk).call(lk,this.items,(function(t,i){t.dirty=!0,t.displayed&&(e[i]=t.redraw(!0),n=e[i].length)})),n>0)for(var i=function(t){bd(lk).call(lk,e,(function(e){e[t]()}))},r=0;rn.bailTimeMs&&(n.userBailFunction&&null==this.itemSet.userContinueNotBail?n.userBailFunction((function(e){t.itemSet.userContinueNotBail=e,i=!e})):i=0==t.itemSet.userContinueNotBail)}return i}},{key:"_redrawItems",value:function(t,e,n,i){var r=this;if(t||this.stackDirty||this.isVisible&&!e){var o,s,a,l,u,c,h={byEnd:Od(o=this.orderedItems.byEnd).call(o,(function(t){return!t.isCluster})),byStart:Od(s=this.orderedItems.byStart).call(s,(function(t){return!t.isCluster}))},d={byEnd:am(new KD(Od(a=lp(l=this.orderedItems.byEnd).call(l,(function(t){return t.cluster}))).call(a,(function(t){return!!t})))),byStart:am(new KD(Od(u=lp(c=this.orderedItems.byStart).call(c,(function(t){return t.cluster}))).call(u,(function(t){return!!t}))))},p=function(){var t,e,n,o=r._updateItemsInRange(h,Od(t=r.visibleItems).call(t,(function(t){return!t.isCluster})),i),s=r._updateClustersInRange(d,Od(e=r.visibleItems).call(e,(function(t){return t.isCluster})),i);return fm(n=[]).call(n,am(o),am(s))},f=function(t){var e={},n=function(n){var i,o=Od(i=r.visibleItems).call(i,(function(t){return t.data.subgroup===n}));e[n]=t?fx(o).call(o,(function(e,n){return t(e.data,n.data)})):o};for(var i in r.subgroups)n(i);return e};if("function"==typeof this.itemSet.options.order){var m=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups)vT(f(this.itemSet.options.order),n,this.subgroups),this.visibleItems=p(),this._updateSubGroupHeights(n);else{var v,g,y,b;this.visibleItems=p(),this._updateSubGroupHeights(n);var w=fx(v=Od(g=mm(y=this.visibleItems).call(y)).call(g,(function(t){return t.isCluster||!t.isCluster&&!t.cluster}))).call(v,(function(t,e){return m.itemSet.options.order(t.data,e.data)}));this.shouldBailStackItems=dT(w,n,!0,Hh(b=this._shouldBailItemsRedraw).call(b,this))}}else{var _;this.visibleItems=p(),this._updateSubGroupHeights(n),this.itemSet.options.stack?this.doInnerStack&&this.itemSet.options.stackSubgroups?vT(f(),n,this.subgroups):this.shouldBailStackItems=dT(this.visibleItems,n,!0,Hh(_=this._shouldBailItemsRedraw).call(_,this)):fT(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups)}for(var k=0;k0){var n=this;this._resetSubgroups(),bd(lk).call(lk,this.visibleItems,(function(i){void 0!==i.data.subgroup&&(n.subgroups[i.data.subgroup].height=Math.max(n.subgroups[i.data.subgroup].height,i.height+t.item.vertical),n.subgroups[i.data.subgroup].visible=void 0===e.subgroupVisibility[i.data.subgroup]||Boolean(e.subgroupVisibility[i.data.subgroup]))}))}}},{key:"_isGroupVisible",value:function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var e,n;if((n="fixed"===this.heightMode?lk.toArray(this.items):this.visibleItems).length>0){var i=n[0].top,r=n[0].top+n[0].height;if(bd(lk).call(lk,n,(function(t){i=Math.min(i,t.top),r=Math.max(r,t.top+t.height)})),i>t.axis){var o=i-t.axis;r-=o,bd(lk).call(lk,n,(function(t){t.top-=o}))}e=Math.ceil(r+t.item.vertical/2),"fitItems"!==this.heightMode&&(e=Math.max(e,this.props.label.height))}else e=this.props.label.height;return e}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var i=this.dom.axis;i.parentNode&&i.parentNode.removeChild(i)}},{key:"add",value:function(t){var e;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),!jv(e=this.visibleItems).call(e,t)){var n=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;null!=e&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)new Date(this.subgroups[e].end)&&(this.subgroups[e].end=n),this.subgroups[e].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var e=function(){var e,i=t.subgroups[n].items[0].data.end||t.subgroups[n].items[0].data.start,r=t.subgroups[n].items[0].data.start,o=i-1;bd(e=t.subgroups[n].items).call(e,(function(t){new Date(t.data.start)new Date(o)&&(o=e)})),t.subgroups[n].start=r,t.subgroups[n].end=new Date(o-1)};for(var n in t.subgroups)e()}}},{key:"orderSubgroups",value:function(){if(void 0!==this.subgroupOrderer){var t=[];if("string"==typeof this.subgroupOrderer){for(var e in this.subgroups)t.push({subgroup:e,sortField:this.subgroups[e].items[0].data[this.subgroupOrderer]});fx(t).call(t,(function(t,e){return t.sortField-e.sortField}))}else if("function"==typeof this.subgroupOrderer){for(var n in this.subgroups)t.push(this.subgroups[n].items[0].data);fx(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;if(null!=e){var n=this.subgroups[e];if(n){var i,r,o=Og(i=n.items).call(i,t);o>=0&&(Zm(r=n.items).call(r,o,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[e])}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=lk.toArray(this.items),e=[],n=[],i=0;i0)for(var c=0;cu})),1==this.checkRangedItems){this.checkRangedItems=!1;for(var d=0;du}))}for(var f={},m=0,v=0;v0)for(var y=function(t){bd(lk).call(lk,f,(function(e){e[t]()}))},b=0;b=0;o--){var s=e[o];if(r(s))break;s.isCluster&&!s.hasItems()||s.cluster||void 0===i[s.id]&&(i[s.id]=!0,n.push(s))}for(var a=t+1;a0)for(var o=0;o0)for(var d=0;d=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function DT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0){var e=[];if(zh(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=Tp(this.data)}var n,i=ST(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=this.data[r];null!=o?t.setAttribute("data-".concat(r),o):t.removeAttribute("data-".concat(r))}}catch(t){i.e(t)}finally{i.f()}}}},{key:"_updateStyle",value:function(t){this.style&&(lk.removeCssText(t,this.style),this.style=null),this.data.style&&(lk.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return"string"==typeof t?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&("boolean"==typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"===ch(this.options.editable)&&(this.editable={},lk.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||this.data&&("boolean"==typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:"object"===ch(this.data.editable)&&(this.editable={},lk.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){var t;return this.options.tooltip&&this.options.tooltip.template?Hh(t=this.options.tooltip.template).call(t,this)(this._getItemData(),this.data):this.data.title}}]),t}();function CT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}TT.prototype.stack=!0;var OT=function(t){Ph(n,t);var e=CT(n);function n(t,i,r){var o;if(Fr(this,n),(o=e.call(this,t,i,r)).props={dot:{width:0,height:0},line:{width:0,height:0}},t&&null==t.start)throw new Error('Property "start" missing in item '.concat(t));return o}return fh(n,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.data.align||this.options.align,n=this.width*t.getMillisecondsPerPixel();return"right"==e?this.data.start.getTime()>t.start&&this.data.start.getTime()-nt.start&&this.data.start.getTime()t.start&&this.data.start.getTime()-n/23&&void 0!==arguments[3]&&arguments[3]?-1*e:e;t.style.transform=void 0!==n?void 0!==e?fm(i="translate(".concat(r,"px, ")).call(i,n,"px)"):"translateY(".concat(n,"px)"):"translateX(".concat(r,"px)")}};e(this.dom.box,this.boxX,this.boxY,t),e(this.dom.dot,this.dotX,this.dotY,t),e(this.dom.line,this.lineX,this.lineY,t)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=void 0===this.data.align?this.options.align:this.data.align,n=this.props.line.width,i=this.props.dot.width;"right"==e?(this.boxX=t-this.width,this.lineX=t-n,this.dotX=t-n/2-i/2):"left"==e?(this.boxX=t,this.lineX=t,this.dotX=t+n/2-i/2):(this.boxX=t-this.width/2,this.lineX=this.options.rtl?t-n:t-n/2,this.dotX=t-i/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.line.style;if("top"==t){var n=this.parent.top+this.top+1;this.boxY=this.top||0,e.height="".concat(n,"px"),e.bottom="",e.top="0"}else{var i=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),e.height="".concat(i,"px"),e.top="",e.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),n}(TT);function ET(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var MT=function(t){Ph(n,t);var e=ET(n);function n(t,i,r){var o;if(Fr(this,n),(o=e.call(this,t,i,r)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},t&&null==t.start)throw new Error('Property "start" missing in item '.concat(t));return o}return fh(n,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.width*t.getMillisecondsPerPixel();return this.data.start.getTime()+e>t.start&&this.data.start3&&void 0!==arguments[3]&&arguments[3]?-1*e:e;t.style.transform=void 0!==n?void 0!==e?fm(i="translate(".concat(r,"px, ")).call(i,n,"px)"):"translateY(".concat(n,"px)"):"translateX(".concat(r,"px)")}};e(this.dom.point,this.pointX,this.pointY,t)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start);this.pointX=t,this.options.rtl?this.right=t-this.props.dot.width:this.left=t-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item;this.pointY="top"==t?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),n}(TT);function PT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var AT=function(t){Ph(n,t);var e=PT(n);function n(t,i,r){var o;if(Fr(this,n),(o=e.call(this,t,i,r)).props={content:{width:0}},o.overflow=!1,t){if(null==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(null==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return o}return fh(n,[{key:"isVisible",value:function(t){return!this.cluster&&this.data.startt.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+e,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,this.whiteSpace="nowrap"!==window.getComputedStyle(this.dom.content).whiteSpace,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(t){var e,n,i,r,o,s,a=this,l=[Hh(e=this._createDomElement).call(e,this),Hh(n=this._appendDomElement).call(n,this),Hh(i=this._updateDirtyDomComponents).call(i,this),function(){var t;a.dirty&&(o=Hh(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&Hh(t=a._updateDomComponentsSizes).call(t,a)(o)},Hh(r=this._repaintDomAdditionals).call(r,this)];return t?l:(bd(l).call(l,(function(t){s=t()})),s)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}}},{key:"repositionX",value:function(t){var e,n,i=this.parent.width,r=this.conversion.toScreen(this.data.start),o=this.conversion.toScreen(this.data.end),s=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==t&&!0!==t||(r<-i&&(r=-i),o>2*i&&(o=2*i));var a=Math.max(Math.round(1e3*(o-r))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=r:this.left=r,this.width=a+this.props.content.width,n=this.props.content.width):(this.options.rtl?this.right=r:this.left=r,this.width=a,n=Math.min(o-r,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(-1*this.right,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(a,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),s){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var l=-1*Math.max(a-n,0);this.dom.content.style.transform="translateX(".concat(l,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(a-n,0),"px)");break;case"center":if(this.options.rtl){var u=-1*Math.max((a-n)/2,0);this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((a-n)/2,0),"px)");break;default:if(e=this.overflow?o>0?Math.max(-r,0):-n:r<0?-r:0,this.options.rtl){var c=-1*e;this.dom.content.style.transform="translateX(".concat(c,"px)")}else this.dom.content.style.transform="translateX(".concat(e,"px)")}}},{key:"repositionY",value:function(){var t=this.options.orientation.item;this.dom.box.style.top="".concat("top"==t?this.top:this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var t=document.createElement("div");t.className="vis-drag-left",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var t=document.createElement("div");t.className="vis-drag-right",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),n}(TT);function IT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}AT.prototype.baseClassName="vis-item vis-range";var NT=function(t){Ph(n,t);var e=IT(n);function n(t,i,r){var o;if(Fr(this,n),(o=e.call(this,t,i,r)).props={content:{width:0}},o.overflow=!1,t){if(null==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(null==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return o}return fh(n,[{key:"isVisible",value:function(t){return this.data.startt.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+t}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(t){var e,n,i,r,o,s,a=this,l=[Hh(e=this._createDomElement).call(e,this),Hh(n=this._appendDomElement).call(n,this),Hh(i=this._updateDirtyDomComponents).call(i,this),function(){var t;a.dirty&&(o=Hh(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&Hh(t=a._updateDomComponentsSizes).call(t,a)(o)},Hh(r=this._repaintDomAdditionals).call(r,this)];return t?l:(bd(l).call(l,(function(t){s=t()})),s)}},{key:"repositionY",value:function(t){var e,n=this.options.orientation.item;if(void 0!==this.data.subgroup){var i=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[i].height,"px"),this.dom.box.style.top="".concat("top"==n?this.parent.top+this.parent.subgroups[i].top:this.parent.top+this.parent.height-this.parent.subgroups[i].top-this.parent.subgroups[i].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof xT?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==n?"0":"",this.dom.box.style.top="top"==n?"0":""):(e=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(e,"px")}}]),n}(TT);NT.prototype.baseClassName="vis-item vis-background",NT.prototype.stack=!1,NT.prototype.show=AT.prototype.show,NT.prototype.hide=AT.prototype.hide,NT.prototype.repositionX=AT.prototype.repositionX;var jT=function(){function t(e,n){Fr(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return fh(t,[{key:"setPosition",value:function(t,e){this.x=gg(t),this.y=gg(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=lk.xss(t)}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,i=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth,o=0,s=0;if("flip"==this.overflowMethod||"none"==this.overflowMethod){var a=!1,l=!0;"flip"==this.overflowMethod&&(this.y-er-this.padding&&(a=!0)),o=a?this.x-n:this.x,s=l?this.y-e:this.y}else(s=this.y-e)+e+this.padding>i&&(s=i-e-this.padding),sr&&(o=r-n-this.padding),o1?arguments[1]:void 0)}});var FT=kh("Array").every,LT=ht,YT=FT,zT=Array.prototype,HT=function(t){var e=t.every;return t===zT||LT(zT,t)&&e===zT.every?YT:e},GT=s(HT);function BT(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return WT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?WT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function WT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(t){var e,n,i,r,o,s,a,l,u=[Hh(e=this._createDomElement).call(e,this),Hh(n=this._appendDomElement).call(n,this),Hh(i=this._updateDirtyDomComponents).call(i,this),Hh(r=function(){this.dirty&&(a=this._getDomComponentsSizes())}).call(r,this),Hh(o=function(){var t;this.dirty&&Hh(t=this._updateDomComponentsSizes).call(t,this)(a)}).call(o,this),Hh(s=this._repaintDomAdditionals).call(s,this)];return t?u:(bd(u).call(u,(function(t){l=t()})),l)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.parentNode&&t.box.parentNode.removeChild(t.box),this.options.showStipes&&(t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=this.data.end?this.conversion.toScreen(this.data.end):0;if(e)this.repositionXWithRanges(t,e);else{var n=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(t,n)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(t,e))}},{key:"repositionStype",value:function(t,e){this.dom.line.style.display="block",this.dom.dot.style.display="block";var n=this.dom.line.offsetWidth,i=this.dom.dot.offsetWidth;if(e){var r=n+t+(e-t)/2,o=r-i/2,s=this.options.rtl?-1*r:r,a=this.options.rtl?-1*o:o;this.dom.line.style.transform="translateX(".concat(s,"px)"),this.dom.dot.style.transform="translateX(".concat(a,"px)")}else{var l=this.options.rtl?-1*t:t,u=this.options.rtl?-1*(t-i/2):t-i/2;this.dom.line.style.transform="translateX(".concat(l,"px)"),this.dom.dot.style.transform="translateX(".concat(u,"px)")}}},{key:"repositionXWithoutRanges",value:function(t,e){"right"==e?this.options.rtl?(this.right=t-this.width,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width,this.dom.box.style.left=this.left+"px"):"left"==e?this.options.rtl?(this.right=t,this.dom.box.style.right=this.right+"px"):(this.left=t,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=t-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(t,e){var n=Math.round(Math.max(e-t+.5,1));this.options.rtl?this.right=t:this.left=t,this.width=Math.max(n,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=n+"px"}},{key:"repositionY",value:function(){var t=this.options.orientation.item;if(this.dom.box.style.top="top"==t?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if("top"==t)this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var e=this.parent.itemSet.props.height,n=e-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=e-n+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var t,e,n=BT(this.data.uiItems);try{for(n.s();!(e=n.n()).done;)e.value.cluster=this}catch(t){n.e(t)}finally{n.f()}this.data.items=lp(t=this.data.uiItems).call(t,(function(t){return t.data})),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var e,n=BT(this.data.uiItems);try{for(n.s();!(e=n.n()).done;)delete e.value.cluster}catch(t){n.e(t)}finally{n.f()}this.attached=!1,t&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var t,e,n,i=lp(t=this.data.uiItems).call(t,(function(t){return{start:t.data.start.valueOf(),end:t.data.end?t.data.end.valueOf():t.data.start.valueOf()}}));this.data.min=Math.min.apply(Math,am(lp(i).call(i,(function(t){return Math.min(t.start,t.end||t.start)})))),this.data.max=Math.max.apply(Math,am(lp(i).call(i,(function(t){return Math.max(t.start,t.end||t.start)}))));var r=lp(e=this.data.uiItems).call(e,(function(t){return t.center})),o=xp(r).call(r,(function(t,e){return t+e}),0)/this.data.uiItems.length;Yx(n=this.data.uiItems).call(n,(function(t){return t.data.end}))?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(o),this.data.end=null)}},{key:"_getUiItems",value:function(){var t,e=this;return this.data.uiItems&&this.data.uiItems.length?Od(t=this.data.uiItems).call(t,(function(t){return t.cluster===e})):[]}},{key:"_createDomElement",value:function(){var t;this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick&&(this.dom.box.ondblclick=Hh(t=n.prototype._onDoubleClick).call(t,this)),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}var e=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");n.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+t,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var t={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(t.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},t.line={width:this.dom.line.offsetWidth}),t}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=t.box.width:this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}},{key:"_fit",value:function(){if(this.emitter){var t=this._getFitRange(),e=t.fitStart,n=t.fitEnd,i={start:new Date(e),end:new Date(n),animation:!0};this.emitter.emit("fit",i)}}},{key:"_getItemData",value:function(){return this.data}}]),n}(TT);function qT(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return XT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?XT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function XT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0){if(e>=1)return[];s=Math.abs(Math.round(Math.log(100/e)/Math.log(2))),a=Math.abs(Math.pow(2,s))}if(this.dataChanged){var l=s!=this.cacheLevel;(!this.applyOnChangedLevel||l)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=s;var u=this.cache[s];if(!u){for(var c in u=[],this.groups)if(this.groups.hasOwnProperty(c))for(var h=this.groups[c],d=h.length,p=0;p=0&&f.center-h[v].center=0&&f.center-u[y].centerr){for(var b=m-r+1,w=[],_=p;w.length'+t.length+"",f=pv({},i,this.itemSet.options),m={content:p,title:d,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(m,h,f),e&&(e.add(o),o.group=e),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}();function QT(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return ZT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ZT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ZT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0){var i,r=o.groupsData.getDataSet();bd(i=r.get()).call(i,(function(t){if(t.nestedGroups){var e;0!=t.showNested&&(t.showNested=!0);var i=[];bd(e=t.nestedGroups).call(e,(function(e){var n=r.get(e);n&&(n.nestedInGroup=t.id,0==t.showNested&&(n.visible=!1),i=fm(i).call(i,n))})),r.update(i,n)}}))}},update:function(t,e,n){o._onUpdateGroups(e.items)},remove:function(t,e,n){o._onRemoveGroups(e.items)}},r.items={},r.groups={},r.groupIds=[],r.selection=[],r.popup=null,r.popupTimer=null,r.touchParams={},r.groupTouchParams={group:null,isDragging:!1},r._create(),r.setOptions(i),r.clusters=[],r}return fh(n,[{key:"_create",value:function(){var t,e,n,i,r,o,s,a,l,u,c,h,d,p,f,m=this,v=document.createElement("div");v.className="vis-itemset",v["vis-itemset"]=this,this.dom.frame=v;var g=document.createElement("div");g.className="vis-background",v.appendChild(g),this.dom.background=g;var y=document.createElement("div");y.className="vis-foreground",v.appendChild(y),this.dom.foreground=y;var b=document.createElement("div");b.className="vis-axis",this.dom.axis=b;var w=document.createElement("div");w.className="vis-labelset",this.dom.labelSet=w,this._updateUngrouped();var _=new xT(eC,null,this);_.show(),this.groups[eC]=_,this.hammer=new Gx(this.body.dom.centerContainer),this.hammer.on("hammer.input",(function(t){t.isFirst&&m._onTouch(t)})),this.hammer.on("panstart",Hh(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",Hh(e=this._onDrag).call(e,this)),this.hammer.on("panend",Hh(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:Gx.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",Hh(i=this._onSelectItem).call(i,this)),this.hammer.on("press",Hh(r=this._onMultiSelectItem).call(r,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",Hh(o=this._onAddItem).call(o,this)),this.options.rtl?this.groupHammer=new Gx(this.body.dom.rightContainer):this.groupHammer=new Gx(this.body.dom.leftContainer),this.groupHammer.on("tap",Hh(s=this._onGroupClick).call(s,this)),this.groupHammer.on("panstart",Hh(a=this._onGroupDragStart).call(a,this)),this.groupHammer.on("panmove",Hh(l=this._onGroupDrag).call(l,this)),this.groupHammer.on("panend",Hh(u=this._onGroupDragEnd).call(u,this)),this.groupHammer.get("pan").set({threshold:5,direction:Gx.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",Hh(c=this._onMouseOver).call(c,this)),this.body.dom.centerContainer.addEventListener("mouseout",Hh(h=this._onMouseOut).call(h,this)),this.body.dom.centerContainer.addEventListener("mousemove",Hh(d=this._onMouseMove).call(d,this)),this.body.dom.centerContainer.addEventListener("contextmenu",Hh(p=this._onDragEnd).call(p,this)),this.body.dom.centerContainer.addEventListener("mousewheel",Hh(f=this._onMouseWheel).call(f,this)),this.show()}},{key:"setOptions",value:function(t){var e,n,i=this;t&&(lk.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"],this.options,t),"itemsAlwaysDraggable"in t&&("boolean"==typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===ch(t.itemsAlwaysDraggable)&&(lk.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in t&&"boolean"==typeof t.sequentialSelection&&(this.options.sequentialSelection=t.sequentialSelection),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===ch(t.orientation)&&"item"in t.orientation&&(this.options.orientation.item=t.orientation.item)),"margin"in t&&("number"==typeof t.margin?(this.options.margin.axis=t.margin,this.options.margin.item.horizontal=t.margin,this.options.margin.item.vertical=t.margin):"object"===ch(t.margin)&&(lk.selectiveExtend(["axis"],this.options.margin,t.margin),"item"in t.margin&&("number"==typeof t.margin.item?(this.options.margin.item.horizontal=t.margin.item,this.options.margin.item.vertical=t.margin.item):"object"===ch(t.margin.item)&&lk.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),bd(e=["locale","locales"]).call(e,(function(e){e in t&&(i.options[e]=t[e])})),"editable"in t&&("boolean"==typeof t.editable?(this.options.editable.updateTime=t.editable,this.options.editable.updateGroup=t.editable,this.options.editable.add=t.editable,this.options.editable.remove=t.editable,this.options.editable.overrideItems=!1):"object"===ch(t.editable)&&lk.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,t.editable)),"groupEditable"in t&&("boolean"==typeof t.groupEditable?(this.options.groupEditable.order=t.groupEditable,this.options.groupEditable.add=t.groupEditable,this.options.groupEditable.remove=t.groupEditable):"object"===ch(t.groupEditable)&&lk.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable)),bd(n=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(n,(function(e){var n=t[e];if(n){var r;if("function"!=typeof n)throw new Error(fm(r="option ".concat(e," must be a function ")).call(r,e,"(item, callback)"));i.options[e]=n}})),t.cluster?(pv(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new KT(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty())}},{key:"markDirty",value:function(t){this.groupIds=[],t&&(t.refreshItems&&bd(lk).call(lk,this.items,(function(t){t.dirty=!0,t.displayed&&t.redraw()})),t.restackGroups&&bd(lk).call(lk,this.groups,(function(t,e){e!==eC&&(t.stackDirty=!0)})))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(t){if(this.clearPopupTimer(),t){var e=this.options.tooltip.delay||"number"==typeof this.options.tooltip.delay?this.options.tooltip.delay:500;this.popupTimer=sd((function(){t.show()}),e)}}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(t){var e;null==t&&(t=[]),zh(t)||(t=[t]);var n,i=QT(Od(e=this.selection).call(e,(function(e){return-1===Og(t).call(t,e)})));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=this.getItemById(r);o&&o.unselect()}}catch(t){i.e(t)}finally{i.f()}this.selection=am(t);var s,a=QT(t);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=this.getItemById(l);u&&u.select()}}catch(t){a.e(t)}finally{a.f()}}},{key:"getSelection",value:function(){var t;return fm(t=this.selection).call(t,[])}},{key:"getVisibleItems",value:function(){var t,e,n=this.body.range.getRange();this.options.rtl?(t=this.body.util.toScreen(n.start),e=this.body.util.toScreen(n.end)):(e=this.body.util.toScreen(n.start),t=this.body.util.toScreen(n.end));var i=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var o,s=this.groups[r],a=QT(s.isVisible?s.visibleItems:[]);try{for(a.s();!(o=a.n()).done;){var l=o.value;this.options.rtl?l.rightt&&i.push(l.id):l.lefte&&i.push(l.id)}}catch(t){a.e(t)}finally{a.f()}}return i}},{key:"getItemsAtCurrentTime",value:function(t){var e,n;this.options.rtl?(e=this.body.util.toScreen(t),n=this.body.util.toScreen(t)):(n=this.body.util.toScreen(t),e=this.body.util.toScreen(t));var i=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var o,s=this.groups[r],a=QT(s.isVisible?s.visibleItems:[]);try{for(a.s();!(o=a.n()).done;){var l=o.value;this.options.rtl?l.righte&&i.push(l.id):l.leftn&&i.push(l.id)}}catch(t){a.e(t)}finally{a.f()}}return i}},{key:"getVisibleGroups",value:function(){var t=[];for(var e in this.groups)this.groups.hasOwnProperty(e)&&this.groups[e].isVisible&&t.push(e);return t}},{key:"getItemById",value:function(t){var e;return this.items[t]||SS(e=this.clusters).call(e,(function(e){return e.id===t}))}},{key:"_deselect",value:function(t){for(var e=this.selection,n=0,i=e.length;n0){for(var w={},_=function(t){bd(lk).call(lk,y,(function(e,n){w[n]=e[t]()}))},k=0;k1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&t.nestedGroups){var n=this.groupsData.getDataSet();t.showNested=null!=e?!!e:!t.showNested;var i=n.get(t.groupId);i.showNested=t.showNested;for(var r,o=t.nestedGroups,s=o;s.length>0;){var a=s;s=[];for(var l=0;l0&&(o=fm(o).call(o,s))}if(i.showNested){for(var c=n.get(i.nestedGroups),h=0;h0&&(null==d.showNested||1==d.showNested)&&c.push.apply(c,am(n.get(d.nestedGroups)))}r=lp(c).call(c,(function(t){return null==t.visible&&(t.visible=!0),t.visible=!!i.showNested,t}))}else{var p;r=lp(p=n.get(o)).call(p,(function(t){return null==t.visible&&(t.visible=!0),t.visible=!!i.showNested,t}))}n.update(fm(r).call(r,i)),i.showNested?(lk.removeClassName(t.dom.label,"collapsed"),lk.addClassName(t.dom.label,"expanded")):(lk.removeClassName(t.dom.label,"expanded"),lk.addClassName(t.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(t){t.dom.label.classList.toggle("vis-group-is-dragging"),t.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(t){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(t),this.groupTouchParams.group&&(t.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this.groupsData.getDataSet(),n=this.groupFromTarget(t);if(n&&n.height!=this.groupTouchParams.group.height){var i=n.topr)return}}if(n&&n!=this.groupTouchParams.group){var l=e.get(n.groupId),u=e.get(this.groupTouchParams.group.groupId);u&&l&&(this.options.groupOrderSwap(u,l,e),e.update(u),e.update(l));var c=e.getIds({order:this.options.groupOrder});if(!lk.equalArray(c,this.groupTouchParams.originalOrder))for(var h=this.groupTouchParams.originalOrder,d=this.groupTouchParams.group.groupId,p=Math.min(h.length,c.length),f=0,m=0,v=0;f=p)break;if(c[f+m]==d)m=1;else if(h[f+v]==d)v=1;else{var g=Og(c).call(c,h[f+v]),y=e.get(c[f+m]),b=e.get(h[f+v]);this.options.groupOrderSwap(y,b,e),e.update(y),e.update(b);var w=c[f+m];c[f+m]=h[f+v],c[g]=w,f++}}}}}},{key:"_onGroupDragEnd",value:function(t){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,n=e.groupTouchParams.group.groupId,i=e.groupsData.getDataSet(),r=lk.extend({},i.get(n));e.options.onMoveGroup(r,(function(t){if(t)t[i._idProp]=n,i.update(t);else{var r=i.getIds({order:e.options.groupOrder});if(!lk.equalArray(r,e.groupTouchParams.originalOrder))for(var o=e.groupTouchParams.originalOrder,s=Math.min(o.length,r.length),a=0;a=s)break;var l=Og(r).call(r,o[a]),u=i.get(r[a]),c=i.get(o[a]);e.options.groupOrderSwap(u,c,i),i.update(u),i.update(c);var h=r[a];r[a]=o[a],r[l]=h,a++}}})),e.body.emitter.emit("groupDragged",{groupId:n}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(t){if(this.options.selectable){var e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),n=t.srcEvent&&t.srcEvent.shiftKey;if(e||n)this._onMultiSelectItem(t);else{var i=this.getSelection(),r=this.itemFromTarget(t),o=r&&r.selectable?[r.id]:[];this.setSelection(o);var s=this.getSelection();(s.length>0||i.length>0)&&this.body.emitter.emit("select",{items:s,event:t})}}}},{key:"_onMouseOver",value:function(t){var e=this.itemFromTarget(t);if(e&&e!==this.itemFromRelatedTarget(t)){var n=e.getTitle();if(this.options.showTooltips&&n){null==this.popup&&(this.popup=new jT(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(n);var i=this.body.dom.centerContainer,r=i.getBoundingClientRect();this.popup.setPosition(t.clientX-r.left+i.offsetLeft,t.clientY-r.top+i.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}}},{key:"_onMouseOut",value:function(t){var e=this.itemFromTarget(t);e&&e!==this.itemFromRelatedTarget(t)&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t}))}},{key:"_onMouseMove",value:function(t){if(this.itemFromTarget(t)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var e=this.body.dom.centerContainer,n=e.getBoundingClientRect();this.popup.setPosition(t.clientX-n.left+e.offsetLeft,t.clientY-n.top+e.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)}},{key:"_onUpdateItem",value:function(t){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var e=this;if(t){var n=e.itemsData.get(t.id);this.options.onUpdate(n,(function(t){t&&e.itemsData.update(t)}))}}}},{key:"_onDropObjectOnItem",value:function(t){var e=this.itemFromTarget(t),n=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(n,e)}},{key:"_onAddItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e,n,i=this,r=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),s=this.options.rtl?o.right-t.center.x:t.center.x-o.left,a=this.body.util.toTime(s),l=this.body.util.getScale(),u=this.body.util.getStep();"drop"==t.type?((n=JSON.parse(t.dataTransfer.getData("text"))).content=n.content?n.content:"new item",n.start=n.start?n.start:r?r(a,l,u):a,n.type=n.type||"box",n[this.itemsData.idProp]=n.id||Q_(),"range"!=n.type||n.end||(e=this.body.util.toTime(s+this.props.width/5),n.end=r?r(e,l,u):e)):((n={start:r?r(a,l,u):a,content:"new item"})[this.itemsData.idProp]=Q_(),"range"===this.options.type&&(e=this.body.util.toTime(s+this.props.width/5),n.end=r?r(e,l,u):e));var c=this.groupFromTarget(t);c&&(n.group=c.groupId),n=this._cloneItemData(n),this.options.onAdd(n,(function(e){e&&(i.itemsData.add(e),"drop"==t.type&&i.setSelection([e.id]))}))}}},{key:"_onMultiSelectItem",value:function(t){var e=this;if(this.options.selectable){var i=this.itemFromTarget(t);if(i){var r=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||this.options.sequentialSelection)&&this.options.multiselect){var o=this.itemsData.get(i.id).group,s=void 0;this.options.multiselectPerGroup&&r.length>0&&(s=this.itemsData.get(r[0]).group),this.options.multiselectPerGroup&&null!=s&&s!=o||r.push(i.id);var a=n._getItemRange(this.itemsData.get(r));if(!this.options.multiselectPerGroup||s==o)for(var l in r=[],this.items)if(this.items.hasOwnProperty(l)){var u=this.items[l],c=u.data.start,h=void 0!==u.data.end?u.data.end:c;!(c>=a.min&&h<=a.max)||this.options.multiselectPerGroup&&s!=this.itemsData.get(u.id).group||u instanceof NT||r.push(u.id)}}else{var d=Og(r).call(r,i.id);-1==d?r.push(i.id):Zm(r).call(r,d,1)}var p=Od(r).call(r,(function(t){return e.getItemById(t).selectable}));this.setSelection(p),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}}},{key:"itemFromElement",value:function(t){for(var e=t;e;){if(e.hasOwnProperty("vis-item"))return e["vis-item"];e=e.parentNode}return null}},{key:"itemFromTarget",value:function(t){return this.itemFromElement(t.target)}},{key:"itemFromRelatedTarget",value:function(t){return this.itemFromElement(t.relatedTarget)}},{key:"groupFromTarget",value:function(t){var e=t.center?t.center.y:t.clientY,n=this.groupIds;n.length<=0&&this.groupsData&&(n=this.groupsData.getIds({order:this.options.groupOrder}));for(var i=0;i=a.top&&ea.top)return o}else if(0===i&&ee)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)})),{min:n,max:e}}},{key:"itemSetFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("vis-itemset"))return e["vis-itemset"];e=e.parentNode}return null}}]),n}(wk);nC.types={background:NT,box:OT,range:AT,point:MT},nC.prototype._onAdd=nC.prototype._onUpdate;var iC,rC=!1,oC="background: #FFeeee; color: #dd0000",sC=function(){function t(){Fr(this,t)}return fh(t,null,[{key:"validate",value:function(e,n,i){rC=!1,iC=n;var r=n;return void 0!==i&&(r=n[i]),t.parse(e,r,[]),rC}},{key:"parse",value:function(e,n,i){for(var r in e)e.hasOwnProperty(r)&&t.check(r,e,n,i)}},{key:"check",value:function(e,n,i,r){if(void 0!==i[e]||void 0!==i.__any__){var o=e,s=!0;void 0===i[e]&&void 0!==i.__any__&&(o="__any__",s="object"===t.getType(n[e]));var a=i[o];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,n,i,o,a,r)}else t.getSuggestion(e,i,r)}},{key:"checkFields",value:function(e,n,i,r,o,s){var a=function(n){console.log("%c"+n+t.printLocation(s,e),oC)},l=t.getType(n[e]),u=o[l];void 0!==u?"array"===t.getType(u)&&-1===Og(u).call(u,n[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+n[e]+'". '),rC=!0):"object"===l&&"__any__"!==r&&(s=lk.copyAndExtendArray(s,e),t.parse(n[e],i[r],s)):void 0===o.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(Tp(o))+". Received ["+l+'] "'+n[e]+'"'),rC=!0)}},{key:"getType",value:function(t){var e=ch(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":zh(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,i){var r,o=t.findInOptions(e,n,i,!1),s=t.findInOptions(e,iC,[],!0);r=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':s.distance<=4&&o.distance>s.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Tp(n))+t.printLocation(i,e),console.log('%cUnknown option detected: "'+e+'"'+r,oC),rC=!0}},{key:"findInOptions",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[],l=e.toLowerCase(),u=void 0;for(var c in n){var h=void 0;if(void 0!==n[c].__type__&&!0===r){var d=t.findInOptions(e,n[c],lk.copyAndExtendArray(i,c));o>d.distance&&(s=d.closestMatch,a=d.path,o=d.distance,u=d.indexMatch)}else{var p;-1!==Og(p=c.toLowerCase()).call(p,l)&&(u=c),o>(h=t.levenshteinDistance(e,c))&&(s=c,a=lk.copyArray(i),o=h)}}return{closestMatch:s,path:a,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",i=0;i0&&void 0!==arguments[0]?arguments[0]:1;Fr(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return fh(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return vC[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,i=this._isColorString(t);if(void 0!==i&&(t=i),!0===lk.isString(t)){if(!0===lk.isValidRGB(t)){var r=t.substr(4).substr(0,t.length-5).split(",");n={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===lk.isValidRGBA(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===lk.isValidHex(t)){var s=lk.hexToRGB(t);n={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+jg(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=lk.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",sd((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=lk.extend({},t)),this.color=t;var e=lk.RGBToHSV(t.r,t.g,t.b),n=2*Math.PI,i=this.r*e.s,r=this.centerCoordinates.x+i*Math.sin(n*e.h),o=this.centerCoordinates.y+i*Math.cos(n*e.h);this.colorPickerSelector.style.left=r-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=lk.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=lk.HSVToRGB(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=lk.RGBToHSV(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var i=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,i,r),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Vg(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,i;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var r=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=Hh(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=Hh(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=Hh(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=Hh(i=this._loadLast).call(i,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Gx(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),Bx(this.hammer,(function(e){t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,i,r,o=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,s),this.centerCoordinates={x:.5*o,y:.5*s},this.r=.49*o;var a,l=2*Math.PI/360,u=1/this.r;for(i=0;i<360;i++)for(r=0;r3&&void 0!==arguments[3]?arguments[3]:1;Fr(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},lk.extend(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new gC(r),this.wrapper=void 0}return fh(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(zh(t))this.options.filter=t.join();else if("object"===ch(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Od(t)&&(this.options.filter=Od(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Od(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Od(this.options),e=0,n=!1;for(var i in this.configureOptions)this.configureOptions.hasOwnProperty(i)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(i,[]))||this._handleObject(this.configureOptions[i],[i],!0):!0!==t&&-1===Og(t).call(t,i)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(i),this._handleObject(this.configureOptions[i],[i])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?n-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");return i.className="vis-configuration vis-config-label vis-config-s"+e.length,i.innerHTML=!0===n?lk.xss(""+t+":"):lk.xss(t+":"),i}},{key:"_makeDropdown",value:function(t,e,n){var i=document.createElement("select");i.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==Og(t).call(t,e)&&(r=Og(t).call(t,e));for(var o=0;oo&&1!==o&&(a.max=Math.ceil(e*c),u=a.max,l="range increased"),a.value=e}else a.value=i;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=Number(a.value);var d=this;a.onchange=function(){h.value=this.value,d._update(Number(this.value),n)},a.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),f=this._makeItem(n,p,a,h);""!==l&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,r=Od(this.options),o=!1;for(var s in t)if(t.hasOwnProperty(s)){i=!0;var a=t[s],l=lk.copyAndExtendArray(e,s);if("function"==typeof r&&!1===(i=r(s,e))&&!zh(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,i=this._handleObject(a,l,!0),this.allowCreation=!1===n),!1!==i){o=!0;var u=this._getValue(l);if(zh(a))this._handleArray(a,u,l);else if("string"==typeof a)this._makeTextInput(a,u,l);else if("boolean"==typeof a)this._makeCheckbox(a,u,l);else if(a instanceof Object){var c=!0;if(-1!==Og(e).call(e,"physics")&&this.moduleOptions.physics.solver!==s&&(c=!1),!0===c)if(void 0!==a.enabled){var h=lk.copyAndExtendArray(l,"enabled"),d=this._getValue(h);if(!0===d){var p=this._makeLabel(s,l,!0);this._makeItem(l,p),o=this._handleObject(a,l)||o}else this._makeCheckbox(a,d,l)}else{var f=this._makeLabel(s,l,!0);this._makeItem(l,f),o=this._handleObject(a,l)||o}}else console.error("dont know how to handle",a,s,l)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n;t="false"!==(t="true"===t||t)&&t;for(var r=0;rvar options = "+jg(t,null,2)+""}},{key:"getOptions",value:function(){for(var t={},e=0;eo)&&(o=n)})),null!==r&&null!==o){var s=this,a=this.itemSet.items[n[0]],l=-1*this._getScrollTop(),u=null,c=function(){var t=xC(s,a);t.shouldScroll&&t.itemTop!=u.itemTop&&(s._setScrollTop(-t.scrollOffset),s._redraw())},h=!e||void 0===e.zoom||e.zoom,d=(r+o)/2,p=h?1.1*(o-r):Math.max(this.range.end-this.range.start,1.1*(o-r)),f=!e||void 0===e.animation||e.animation;f||(u={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(d-p/2,d+p/2,{animation:f},(function(){c(),sd(c,100)}),(function(t,e,n){var i=xC(s,a);if(!1!==i&&(u||(u=i),u.itemTop!=i.itemTop||u.shouldScroll)){u.itemTop!=i.itemTop&&i.shouldScroll&&(u=i,l=-1*s._getScrollTop());var r=l,o=u.scrollOffset,c=n?o:r+(o-r)*t;s._setScrollTop(-c),e||s._redraw()}}))}}}},{key:"fit",value:function(t,e){var n,i=!t||void 0===t.animation||t.animation;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(n=this.getDataRange(),this.moveTo(n.min.valueOf(),{animation:i},e)):(n=this.getItemRange(),this.range.setRange(n.min,n.max,{animation:i},e))}},{key:"getItemRange",value:function(){var t=this,e=this.getDataRange(),n=null!==e.min?e.min.valueOf():null,i=null!==e.max?e.max.valueOf():null,r=null,o=null;if(null!=n&&null!=i){var s=i-n;s<=0&&(s=10);var a=s/this.props.center.width,l={},u=0;if(bd(lk).call(lk,this.itemSet.items,(function(t,e){t.groupShowing&&(l[e]=t.redraw(!0),u=l[e].length)})),u>0)for(var c=function(t){bd(lk).call(lk,l,(function(e){e[t]()}))},h=0;hi&&(i=l,o=e)})),r&&o){var d=r.getWidthLeft()+10,p=o.getWidthRight()+10,f=this.props.center.width-d-p;f>0&&(this.options.rtl?(n=_C(r)-p*s/f,i=kC(o)+d*s/f):(n=_C(r)-d*s/f,i=kC(o)+p*s/f))}}return{min:null!=n?new Date(n):null,max:null!=i?new Date(i):null}}},{key:"getDataRange",value:function(){var t,e=null,n=null;return this.itemsData&&bd(t=this.itemsData).call(t,(function(t){var i=lk.convert(t.start,"Date").valueOf(),r=lk.convert(null!=t.end?t.end:t.start,"Date").valueOf();(null===e||in)&&(n=r)})),{min:null!=e?new Date(e):null,max:null!=n?new Date(n):null}}},{key:"getEventProperties",value:function(t){var e=t.center?t.center.x:t.clientX,n=t.center?t.center.y:t.clientY,i=this.dom.centerContainer.getBoundingClientRect(),r=this.options.rtl?i.right-e:e-i.left,o=n-i.top,s=this.itemSet.itemFromTarget(t),a=this.itemSet.groupFromTarget(t),l=hS.customTimeFromTarget(t),u=this.itemSet.options.snap||null,c=this.body.util.getScale(),h=this.body.util.getStep(),d=this._toTime(r),p=u?u(d,c,h):d,f=lk.getTarget(t),m=null;return null!=s?m="item":null!=l?m="custom-time":lk.hasParent(f,this.timeAxis.dom.foreground)||this.timeAxis2&&lk.hasParent(f,this.timeAxis2.dom.foreground)?m="axis":lk.hasParent(f,this.itemSet.dom.labelSet)?m="group-label":lk.hasParent(f,this.currentTime.bar)?m="current-time":lk.hasParent(f,this.dom.center)&&(m="background"),{event:t,item:s?s.id:null,isCluster:!!s&&!!s.isCluster,items:s?s.items||[]:null,group:a?a.groupId:null,customTime:l?l.options.id:null,what:m,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:r,y:o,time:d,snappedTime:p}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(null==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){dS.prototype._redraw.call(this)}},{key:"_onFit",value:function(t){var e=t.start,n=t.end,i=t.animation;n?this.range.setRange(e,n,{animation:i}):this.moveTo(e.valueOf(),{animation:i})}}]),n}(dS);function _C(t){return lk.convert(t.data.start,"Date").valueOf()}function kC(t){var e=null!=t.data.end?t.data.end:t.data.start;return lk.convert(e,"Date").valueOf()}function xC(t,e){if(!e.parent)return!1;var n=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,i=t.props.center.height,r=e.parent,o=r.top,s=!0,a=t.timeAxis.options.orientation.axis,l=function(){return"bottom"==a?r.height-e.top-e.height:e.top},u=-1*t._getScrollTop(),c=o+l(),h=e.height;return cu+n?o+=l()+h-n+t.itemSet.options.margin.item.vertical:s=!1,{shouldScroll:s,scrollOffset:o=Math.min(o,i-n),itemTop:c}}function SC(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function DC(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var n=0;n0?(i=e[t].redundant[0],e[t].redundant.shift()):(i=document.createElementNS("http://www.w3.org/2000/svg",t),n.appendChild(i)):(i=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},n.appendChild(i)),e[t].used.push(i),i}function CC(t,e,n,i){var r;return e.hasOwnProperty(t)?e[t].redundant.length>0?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElement(t),void 0!==i?n.insertBefore(r,i):n.appendChild(r)):(r=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==i?n.insertBefore(r,i):n.appendChild(r)),e[t].used.push(r),r}function OC(t,e,n,i,r,o){var s;if("circle"==n.style?((s=TC("circle",i,r)).setAttributeNS(null,"cx",t),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*n.size)):((s=TC("rect",i,r)).setAttributeNS(null,"x",t-.5*n.size),s.setAttributeNS(null,"y",e-.5*n.size),s.setAttributeNS(null,"width",n.size),s.setAttributeNS(null,"height",n.size)),void 0!==n.styles&&s.setAttributeNS(null,"style",n.styles),s.setAttributeNS(null,"class",n.className+" vis-point"),o){var a=TC("text",i,r);o.xOffset&&(t+=o.xOffset),o.yOffset&&(e+=o.yOffset),o.content&&(a.textContent=o.content),o.className&&a.setAttributeNS(null,"class",o.className+" vis-label"),a.setAttributeNS(null,"x",t),a.setAttributeNS(null,"y",e)}return s}function EC(t,e,n,i,r,o,s,a){if(0!=i){i<0&&(e-=i*=-1);var l=TC("rect",o,s);l.setAttributeNS(null,"x",t-.5*n),l.setAttributeNS(null,"y",e),l.setAttributeNS(null,"width",n),l.setAttributeNS(null,"height",i),l.setAttributeNS(null,"class",r),a&&l.setAttributeNS(null,"style",a)}}var MC=function(){function t(e,n,i,r,o,s){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(Fr(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=o,this.majorCharHeight=s,this._start=e,this._end=n,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=a,this.autoScaleStart=i,this.autoScaleEnd=r,this.formattingFunction=l,i||r){var u=this,c=function(t){var e=t-t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>u.magnitudefactor*u.minorSteps[u.minorStepIdx]*.5?e+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:e};i&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=c(this._start)),r&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=c(this._end)),this.determineScale()}}return fh(t,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var e=this.majorCharHeight/this.scale,n=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var i=0;n<0&&(i=n);for(var r=!1,o=i;Math.abs(o)<=Math.abs(n);o++){this.magnitudefactor=Math.pow(10,o);for(var s=0;s=e){r=!0,this.minorStepIdx=s;break}if(!0===r)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var e=t.toPrecision(5);return"function"==typeof this.formattingFunction&&(e=this.formattingFunction(t)),"number"==typeof e?"".concat(e):"string"==typeof e?e:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],e=this.getStep(),n=(e-this._start%e)%e,i=this._start+n;this._end-i>1e-5;i+=e)i!=this._start&&t.push({major:this.is_major(i),y:this.convertValue(i),val:this.formatValue(i)});return t}},{key:"followScale",value:function(t){var e=this.minorStepIdx,n=this._start,i=this._end,r=this,o=function(){r.magnitudefactor*=2},s=function(){r.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdxi+1e-5)s(),u=!1;else{if(!this.autoScaleStart&&this._start=0)){s(),u=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&h=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function AC(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0&&t._redrawLabel(i-2,e.val,n,"vis-y-axis vis-major",t.props.majorCharHeight),!0===t.master&&(r?t._redrawLine(i,n,"vis-grid vis-horizontal vis-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(i,n,"vis-grid vis-horizontal vis-minor",t.options.minorLinesOffset,t.props.minorLineWidth))}));var a=0;void 0!==this.options[n].title&&void 0!==this.options[n].title.text&&(a=this.props.titleCharHeight);var l=!0===this.options.icons?Math.max(this.options.iconWidth,a)+this.options.labelOffsetX+15:a+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-l&&!0===this.options.visible?(this.width=this.maxLabelSize+l,this.options.width="".concat(this.width,"px"),DC(this.DOMelements.lines),DC(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+l),this.options.width="".concat(this.width,"px"),DC(this.DOMelements.lines),DC(this.DOMelements.labels),this.redraw(),e=!0):(DC(this.DOMelements.lines),DC(this.DOMelements.labels),e=!1),e}},{key:"convertValue",value:function(t){return this.scale.convertValue(t)}},{key:"screenToValue",value:function(t){return this.scale.screenToValue(t)}},{key:"_redrawLabel",value:function(t,e,n,i,r){var o=CC("div",this.DOMelements.labels,this.dom.frame);o.className=i,o.innerHTML=lk.xss(e),"left"===n?(o.style.left="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="right"):(o.style.right="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="left"),o.style.top="".concat(t-.5*r+this.options.labelOffsetY,"px"),e+="";var s=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize0&&(n=Math.min(n,Math.abs(e[i-1].screen_x-e[i].screen_x))),0===n&&(void 0===t[e[i].screen_x]&&(t[e[i].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[i].screen_x].amount+=1)},FC._getSafeDrawData=function(t,e,n){var i,r;return t0?(i=t0){fx(t).call(t,(function(t,e){return t.screen_x===e.screen_x?t.groupIde[o].screen_y?e[o].screen_y:i,r=rt[s].accumulatedNegative?t[s].accumulatedNegative:i)>t[s].accumulatedPositive?t[s].accumulatedPositive:i,r=(r=r0)return 1==e.options.interpolation.enabled?LC._catmullRom(t,e):LC._linear(t)},LC.drawIcon=function(t,e,n,i,r,o){var s,a,l=.5*r,u=TC("rect",o.svgElements,o.svg);u.setAttributeNS(null,"x",e),u.setAttributeNS(null,"y",n-l),u.setAttributeNS(null,"width",i),u.setAttributeNS(null,"height",2*l),u.setAttributeNS(null,"class","vis-outline"),(s=TC("path",o.svgElements,o.svg)).setAttributeNS(null,"class",t.className),void 0!==t.style&&s.setAttributeNS(null,"style",t.style),s.setAttributeNS(null,"d","M"+e+","+n+" L"+(e+i)+","+n),1==t.options.shaded.enabled&&(a=TC("path",o.svgElements,o.svg),"top"==t.options.shaded.orientation?a.setAttributeNS(null,"d","M"+e+", "+(n-l)+"L"+e+","+n+" L"+(e+i)+","+n+" L"+(e+i)+","+(n-l)):a.setAttributeNS(null,"d","M"+e+","+n+" L"+e+","+(n+l)+" L"+(e+i)+","+(n+l)+"L"+(e+i)+","+n),a.setAttributeNS(null,"class",t.className+" vis-icon-fill"),void 0!==t.options.shaded.style&&""!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style)),1==t.options.drawPoints.enabled&&OC(e+.5*i,n,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},o.svgElements,o.svg)},LC.drawShading=function(t,e,n,i){if(1==e.options.shaded.enabled){var r,o=Number(i.svg.style.height.replace("px","")),s=TC("path",i.svgElements,i.svg),a="L";1==e.options.interpolation.enabled&&(a="C");var l=0;l="top"==e.options.shaded.orientation?0:"bottom"==e.options.shaded.orientation?o:Math.min(Math.max(0,e.zeroPosition),o),r="group"==e.options.shaded.orientation&&null!=n&&null!=n?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,a,!0)+n[0][0]+","+n[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" V"+l+" H"+t[0][0]+" Z",s.setAttributeNS(null,"class",e.className+" vis-fill"),void 0!==e.options.shaded.style&&s.setAttributeNS(null,"style",e.options.shaded.style),s.setAttributeNS(null,"d",r)}},LC.draw=function(t,e,n){if(null!=t&&null!=t){var i=TC("path",n.svgElements,n.svg);i.setAttributeNS(null,"class",e.className),void 0!==e.style&&i.setAttributeNS(null,"style",e.style);var r="L";1==e.options.interpolation.enabled&&(r="C"),i.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,r,!1))}},LC.serializePath=function(t,e,n){if(t.length<2)return"";var i,r=e;if(n)for(i=t.length-2;i>0;i--)r+=t[i][0]+","+t[i][1]+" ";else for(i=1;i0&&(f=1/f),(m=3*v*(v+g))>0&&(m=1/m),a={screen_x:(-b*i.screen_x+d*r.screen_x+w*o.screen_x)*f,screen_y:(-b*i.screen_y+d*r.screen_y+w*o.screen_y)*f},l={screen_x:(y*r.screen_x+p*o.screen_x-b*s.screen_x)*m,screen_y:(y*r.screen_y+p*o.screen_y-b*s.screen_y)*m},0==a.screen_x&&0==a.screen_y&&(a=r),0==l.screen_x&&0==l.screen_y&&(l=o),k.push([a.screen_x,a.screen_y]),k.push([l.screen_x,l.screen_y]),k.push([o.screen_x,o.screen_y]);return k},LC._linear=function(t){for(var e=[],n=0;ne.x?1:-1}))):this.itemsData=[]},YC.prototype.getItems=function(){return this.itemsData},YC.prototype.setZeroPosition=function(t){this.zeroPosition=t},YC.prototype.setOptions=function(t){void 0!==t&&(lk.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),lk.mergeOptions(this.options,t,"interpolation"),lk.mergeOptions(this.options,t,"drawPoints"),lk.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==ch(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)))},YC.prototype.update=function(t){this.group=t,this.content=t.content||"graph",this.className=t.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===t.visible||t.visible,this.style=t.style,this.setOptions(t.options)},YC.prototype.getLegend=function(t,e,n,i,r){switch(null!=n&&null!=n||(n={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),null!=i&&null!=i||(i=0),null!=r&&null!=r||(r=.5*e),this.options.style){case"line":LC.drawIcon(this,i,r,t,e,n);break;case"points":case"point":jC.drawIcon(this,i,r,t,e,n);break;case"bar":FC.drawIcon(this,i,r,t,e,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOrientation}},YC.prototype.getYRange=function(t){for(var e=t[0].y,n=t[0].y,i=0;it[i].y?t[i].y:e,n=n");this.dom.textArea.innerHTML=lk.xss(o),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},zC.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=Tp(this.groups);fx(t).call(t,(function(t,e){return t0){var s={};for(this._getRelevantData(o,s,i,r),this._applySampling(o,s),e=0;e0)switch(t.options.style){case"line":l.hasOwnProperty(o[e])||(l[o[e]]=LC.calcPath(s[o[e]],t)),LC.draw(l[o[e]],t,this.framework);case"point":case"points":"point"!=t.options.style&&"points"!=t.options.style&&1!=t.options.drawPoints.enabled||jC.draw(s[o[e]],t,this.framework)}}}return DC(this.svgElements),!1},GC.prototype._stack=function(t,e){var n,i,r,o,s;n=0;for(var a=0;at[a].x){s=e[l],o=0==l?s:e[l-1],n=l;break}}void 0===s&&(o=e[e.length-1],s=e[e.length-1]),i=s.x-o.x,r=s.y-o.y,t[a].y=0==i?t[a].orginalY+s.y:t[a].orginalY+r/i*(t[a].x-o.x)+o.y}},GC.prototype._getRelevantData=function(t,e,n,i){var r,o,s,a;if(t.length>0)for(o=0;o0)for(var n=0;n0){var r,o=i.length,s=o/(this.body.util.toGlobalScreen(i[i.length-1].x)-this.body.util.toGlobalScreen(i[0].x));r=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(s)));for(var a=new Array(o),l=0;l0){for(o=0;o0&&(r=this.groups[t[o]],!0===s.stack&&"bar"===s.style?"left"===s.yAxisOrientation?a=fm(a).call(a,i):l=fm(l).call(l,i):n[t[o]]=r.getYRange(i,t[o]));FC.getStackedYRange(a,n,t,"__barStackLeft","left"),FC.getStackedYRange(l,n,t,"__barStackRight","right")}},GC.prototype._updateYAxis=function(t,e){var n,i,r=!1,o=!1,s=!1,a=1e9,l=1e9,u=-1e9,c=-1e9;if(t.length>0){for(var h=0;hn?n:a,u=un?n:l,c=co?o:t,e=null==e||e0&&u.push(c.screenToValue(r)),!h.hidden&&this.itemsData.length>0&&u.push(h.screenToValue(r)),{event:t,customTime:s?s.options.id:null,what:l,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:i,y:r,time:o,value:u}},QC.prototype._createConfigurator=function(){return new yC(this,this.dom.container,KC)};var ZC=function(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(t){return"en"}}();n.locale(ZC);var JC={Core:dS,DateUtil:Ox,Range:Mx,stack:bT,TimeStep:Wx,components:{items:{Item:TT,BackgroundItem:NT,BoxItem:OT,ClusterItem:UT,PointItem:MT,RangeItem:AT},BackgroundGroup:xT,Component:wk,CurrentTime:fS,CustomTime:hS,DataAxis:NC,DataScale:MC,GraphGroup:YC,Group:_T,ItemSet:nC,Legend:zC,LineGraph:GC,TimeAxis:Ux}};t.Graph2d=QC,t.Timeline=wC,t.timeline=JC}(V.exports,$(),Z());var J=V.exports;const tt=t=>{const e=new Date;return t>e?e:t},et=(e,i)=>{let r,o;return(e.end.getTime()-e.start.getTime())/1e3<=3600?(r=G(e.start),o=B(e.end)):(r=n(e.start),o=W(e.end)),i?.endCap&&(o=function(e){const n=t(e);return n.setSeconds(59,999),n}(tt(o))),{start:r,end:o}};var nt={exports:{}}; /** * 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 n(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!==e?e:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var o={exports:{}},s=function(t){return t&&t.Math===Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},u=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,h=Function.prototype,d=h.apply,p=h.call,f="object"==typeof Reflect&&Reflect.apply||(c?p.bind(d):function(){return p.apply(d,arguments)}),m=u,v=Function.prototype,g=v.call,y=m&&v.bind.bind(g,g),b=m?y:function(t){return function(){return g.apply(t,arguments)}},w=b,_=w({}.toString),k=w("".slice),x=function(t){return k(_(t),8,-1)},S=x,D=b,T=function(t){if("Function"===S(t))return D(t)},C="object"==typeof document&&document.all,O={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},E=O.all,M=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===E}:function(t){return"function"==typeof t},P={},A=!l((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=u,N=Function.prototype.call,j=I?N.bind(N):function(){return N.apply(N,arguments)},R={},F={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,Y=L&&!F.call({1:2},1);R.f=Y?function(t){var e=L(this,t);return!!e&&e.enumerable}:F;var z,H,G=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},B=l,W=x,V=Object,U=b("".split),q=B((function(){return!V("z").propertyIsEnumerable(0)}))?function(t){return"String"===W(t)?U(t,""):V(t)}:V,X=function(t){return null==t},$=X,K=TypeError,Q=function(t){if($(t))throw new K("Can't call method on "+t);return t},Z=q,J=Q,tt=function(t){return Z(J(t))},et=M,nt=O.all,it=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:et(t)||t===nt}:function(t){return"object"==typeof t?null!==t:et(t)},rt={},ot=rt,st=a,at=M,lt=function(t){return at(t)?t:void 0},ut=function(t,e){return arguments.length<2?lt(ot[t])||lt(st[t]):ot[t]&&ot[t][e]||st[t]&&st[t][e]},ct=b({}.isPrototypeOf),ht="undefined"!=typeof navigator&&String(navigator.userAgent)||"",dt=a,pt=ht,ft=dt.process,mt=dt.Deno,vt=ft&&ft.versions||mt&&mt.version,gt=vt&&vt.v8;gt&&(H=(z=gt.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=l,_t=a.String,kt=!!Object.getOwnPropertySymbols&&!wt((function(){var t=Symbol("symbol detection");return!_t(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&bt&&bt<41})),xt=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=ut,Dt=M,Tt=ct,Ct=Object,Ot=xt?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return Dt(e)&&Tt(e.prototype,Ct(t))},Et=String,Mt=function(t){try{return Et(t)}catch(t){return"Object"}},Pt=M,At=Mt,It=TypeError,Nt=function(t){if(Pt(t))return t;throw new It(At(t)+" is not a function")},jt=Nt,Rt=X,Ft=function(t,e){var n=t[e];return Rt(n)?void 0:jt(n)},Lt=j,Yt=M,zt=it,Ht=TypeError,Gt={exports:{}},Bt=a,Wt=Object.defineProperty,Vt=function(t,e){try{Wt(Bt,t,{value:e,configurable:!0,writable:!0})}catch(n){Bt[t]=e}return e},Ut="__core-js_shared__",qt=a[Ut]||Vt(Ut,{}),Xt=qt;(Gt.exports=function(t,e){return Xt[t]||(Xt[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 $t=Gt.exports,Kt=Q,Qt=Object,Zt=function(t){return Qt(Kt(t))},Jt=Zt,te=b({}.hasOwnProperty),ee=Object.hasOwn||function(t,e){return te(Jt(t),e)},ne=b,ie=0,re=Math.random(),oe=ne(1..toString),se=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++ie+re,36)},ae=$t,le=ee,ue=se,ce=kt,he=xt,de=a.Symbol,pe=ae("wks"),fe=he?de.for||de:de&&de.withoutSetter||ue,me=function(t){return le(pe,t)||(pe[t]=ce&&le(de,t)?de[t]:fe("Symbol."+t)),pe[t]},ve=j,ge=it,ye=Ot,be=Ft,we=function(t,e){var n,i;if("string"===e&&Yt(n=t.toString)&&!zt(i=Lt(n,t)))return i;if(Yt(n=t.valueOf)&&!zt(i=Lt(n,t)))return i;if("string"!==e&&Yt(n=t.toString)&&!zt(i=Lt(n,t)))return i;throw new Ht("Can't convert object to primitive value")},_e=TypeError,ke=me("toPrimitive"),xe=function(t,e){if(!ge(t)||ye(t))return t;var n,i=be(t,ke);if(i){if(void 0===e&&(e="default"),n=ve(i,t,e),!ge(n)||ye(n))return n;throw new _e("Can't convert object to primitive value")}return void 0===e&&(e="number"),we(t,e)},Se=Ot,De=function(t){var e=xe(t,"string");return Se(e)?e:e+""},Te=it,Ce=a.document,Oe=Te(Ce)&&Te(Ce.createElement),Ee=function(t){return Oe?Ce.createElement(t):{}},Me=Ee,Pe=!A&&!l((function(){return 7!==Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a})),Ae=A,Ie=j,Ne=R,je=G,Re=tt,Fe=De,Le=ee,Ye=Pe,ze=Object.getOwnPropertyDescriptor;P.f=Ae?ze:function(t,e){if(t=Re(t),e=Fe(e),Ye)try{return ze(t,e)}catch(t){}if(Le(t,e))return je(!Ie(Ne.f,t,e),t[e])};var He=l,Ge=M,Be=/#|\.prototype\./,We=function(t,e){var n=Ue[Ve(t)];return n===Xe||n!==qe&&(Ge(e)?He(e):!!e)},Ve=We.normalize=function(t){return String(t).replace(Be,".").toLowerCase()},Ue=We.data={},qe=We.NATIVE="N",Xe=We.POLYFILL="P",$e=We,Ke=Nt,Qe=u,Ze=T(T.bind),Je=function(t,e){return Ke(t),void 0===e?t:Qe?Ze(t,e):function(){return t.apply(e,arguments)}},tn={},en=A&&l((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),nn=it,rn=String,on=TypeError,sn=function(t){if(nn(t))return t;throw new on(rn(t)+" is not an object")},an=A,ln=Pe,un=en,cn=sn,hn=De,dn=TypeError,pn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,mn="enumerable",vn="configurable",gn="writable";tn.f=an?un?function(t,e,n){if(cn(t),e=hn(e),cn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&gn in n&&!n[gn]){var i=fn(t,e);i&&i[gn]&&(t[e]=n.value,n={configurable:vn in n?n[vn]:i[vn],enumerable:mn in n?n[mn]:i[mn],writable:!1})}return pn(t,e,n)}:pn:function(t,e,n){if(cn(t),e=hn(e),cn(n),ln)try{return pn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new dn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var yn=tn,bn=G,wn=A?function(t,e,n){return yn.f(t,e,bn(1,n))}:function(t,e,n){return t[e]=n,t},_n=a,kn=f,xn=T,Sn=M,Dn=P.f,Tn=$e,Cn=rt,On=Je,En=wn,Mn=ee,Pn=function(t){var e=function(n,i,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,r)}return kn(t,this,arguments)};return e.prototype=t.prototype,e},An=function(t,e){var n,i,r,o,s,a,l,u,c,h=t.target,d=t.global,p=t.stat,f=t.proto,m=d?_n:p?_n[h]:(_n[h]||{}).prototype,v=d?Cn:Cn[h]||En(Cn,h,{})[h],g=v.prototype;for(o in e)i=!(n=Tn(d?o:h+(p?".":"#")+o,t.forced))&&m&&Mn(m,o),a=v[o],i&&(l=t.dontCallGetSet?(c=Dn(m,o))&&c.value:m[o]),s=i&&l?l:e[o],i&&typeof a==typeof s||(u=t.bind&&i?On(s,_n):t.wrap&&i?Pn(s):f&&Sn(s)?xn(s):s,(t.sham||s&&s.sham||a&&a.sham)&&En(u,"sham",!0),En(v,o,u),f&&(Mn(Cn,r=h+"Prototype")||En(Cn,r,{}),En(Cn[r],o,s),t.real&&g&&(n||!g[o])&&En(g,o,s)))},In=An,Nn=A,jn=tn.f;In({target:"Object",stat:!0,forced:Object.defineProperty!==jn,sham:!Nn},{defineProperty:jn});var Rn=rt.Object,Fn=o.exports=function(t,e,n){return Rn.defineProperty(t,e,n)};Rn.defineProperty.sham&&(Fn.sham=!0);var Ln=o.exports,Yn=Ln,zn=r(Yn),Hn=x,Gn=Array.isArray||function(t){return"Array"===Hn(t)},Bn=Math.ceil,Wn=Math.floor,Vn=Math.trunc||function(t){var e=+t;return(e>0?Wn:Bn)(e)},Un=function(t){var e=+t;return e!=e||0===e?0:Vn(e)},qn=Un,Xn=Math.min,$n=function(t){return t>0?Xn(qn(t),9007199254740991):0},Kn=function(t){return $n(t.length)},Qn=TypeError,Zn=function(t){if(t>9007199254740991)throw Qn("Maximum allowed index exceeded");return t},Jn=De,ti=tn,ei=G,ni=function(t,e,n){var i=Jn(e);i in t?ti.f(t,i,ei(0,n)):t[i]=n},ii={};ii[me("toStringTag")]="z";var ri="[object z]"===String(ii),oi=ri,si=M,ai=x,li=me("toStringTag"),ui=Object,ci="Arguments"===ai(function(){return arguments}()),hi=oi?ai:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ui(t),li))?n:ci?ai(e):"Object"===(i=ai(e))&&si(e.callee)?"Arguments":i},di=M,pi=qt,fi=b(Function.toString);di(pi.inspectSource)||(pi.inspectSource=function(t){return fi(t)});var mi=pi.inspectSource,vi=b,gi=l,yi=M,bi=hi,wi=mi,_i=function(){},ki=[],xi=ut("Reflect","construct"),Si=/^\s*(?:class|function)\b/,Di=vi(Si.exec),Ti=!Si.test(_i),Ci=function(t){if(!yi(t))return!1;try{return xi(_i,ki,t),!0}catch(t){return!1}},Oi=function(t){if(!yi(t))return!1;switch(bi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ti||!!Di(Si,wi(t))}catch(t){return!0}};Oi.sham=!0;var Ei=!xi||gi((function(){var t;return Ci(Ci.call)||!Ci(Object)||!Ci((function(){t=!0}))||t}))?Oi:Ci,Mi=Gn,Pi=Ei,Ai=it,Ii=me("species"),Ni=Array,ji=function(t){var e;return Mi(t)&&(e=t.constructor,(Pi(e)&&(e===Ni||Mi(e.prototype))||Ai(e)&&null===(e=e[Ii]))&&(e=void 0)),void 0===e?Ni:e},Ri=function(t,e){return new(ji(t))(0===e?0:e)},Fi=l,Li=yt,Yi=me("species"),zi=function(t){return Li>=51||!Fi((function(){var e=[];return(e.constructor={})[Yi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Hi=An,Gi=l,Bi=Gn,Wi=it,Vi=Zt,Ui=Kn,qi=Zn,Xi=ni,$i=Ri,Ki=zi,Qi=yt,Zi=me("isConcatSpreadable"),Ji=Qi>=51||!Gi((function(){var t=[];return t[Zi]=!1,t.concat()[0]!==t})),tr=function(t){if(!Wi(t))return!1;var e=t[Zi];return void 0!==e?!!e:Bi(t)};Hi({target:"Array",proto:!0,arity:1,forced:!Ji||!Ki("concat")},{concat:function(t){var e,n,i,r,o,s=Vi(this),a=$i(s,0),l=0;for(e=-1,i=arguments.length;ea;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},pr={includes:dr(!0),indexOf:dr(!1)},fr={},mr=ee,vr=tt,gr=pr.indexOf,yr=fr,br=b([].push),wr=function(t,e){var n,i=vr(t),r=0,o=[];for(n in i)!mr(yr,n)&&mr(i,n)&&br(o,n);for(;e.length>r;)mr(i,n=e[r++])&&(~gr(o,n)||br(o,n));return o},_r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kr=wr,xr=_r,Sr=Object.keys||function(t){return kr(t,xr)},Dr=A,Tr=en,Cr=tn,Or=sn,Er=tt,Mr=Sr;rr.f=Dr&&!Tr?Object.defineProperties:function(t,e){Or(t);for(var n,i=Er(e),r=Mr(e),o=r.length,s=0;o>s;)Cr.f(t,n=r[s++],i[n]);return t};var Pr,Ar=ut("document","documentElement"),Ir=se,Nr=$t("keys"),jr=function(t){return Nr[t]||(Nr[t]=Ir(t))},Rr=sn,Fr=rr,Lr=_r,Yr=fr,zr=Ar,Hr=Ee,Gr="prototype",Br="script",Wr=jr("IE_PROTO"),Vr=function(){},Ur=function(t){return"<"+Br+">"+t+""},qr=function(t){t.write(Ur("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xr=function(){try{Pr=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xr="undefined"!=typeof document?document.domain&&Pr?qr(Pr):(e=Hr("iframe"),n="java"+Br+":",e.style.display="none",zr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ur("document.F=Object")),t.close(),t.F):qr(Pr);for(var i=Lr.length;i--;)delete Xr[Gr][Lr[i]];return Xr()};Yr[Wr]=!0;var $r=Object.create||function(t,e){var n;return null!==t?(Vr[Gr]=Rr(t),n=new Vr,Vr[Gr]=null,n[Wr]=t):n=Xr(),void 0===e?n:Fr.f(n,e)},Kr={},Qr=wr,Zr=_r.concat("length","prototype");Kr.f=Object.getOwnPropertyNames||function(t){return Qr(t,Zr)};var Jr={},to=lr,eo=Kn,no=ni,io=Array,ro=Math.max,oo=function(t,e,n){for(var i=eo(t),r=to(e,i),o=to(void 0===n?i:n,i),s=io(ro(o-r,0)),a=0;ry;y++)if((a||y in m)&&(p=v(d=m[y],y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:ls(w,d)}else switch(t){case 4:return!1;case 7:ls(w,d)}return o?-1:i||r?r:w}},cs={forEach:us(0),map:us(1),filter:us(2),some:us(3),every:us(4),find:us(5),findIndex:us(6),filterReject:us(7)},hs=An,ds=a,ps=j,fs=b,ms=A,vs=kt,gs=l,ys=ee,bs=ct,ws=sn,_s=tt,ks=De,xs=ir,Ss=G,Ds=$r,Ts=Sr,Cs=Kr,Os=Jr,Es=ho,Ms=P,Ps=tn,As=rr,Is=R,Ns=fo,js=vo,Rs=$t,Fs=fr,Ls=se,Ys=me,zs=go,Hs=To,Gs=Po,Bs=zo,Ws=ns,Vs=cs.forEach,Us=jr("hidden"),qs="Symbol",Xs="prototype",$s=Ws.set,Ks=Ws.getterFor(qs),Qs=Object[Xs],Zs=ds.Symbol,Js=Zs&&Zs[Xs],ta=ds.RangeError,ea=ds.TypeError,na=ds.QObject,ia=Ms.f,ra=Ps.f,oa=Os.f,sa=Is.f,aa=fs([].push),la=Rs("symbols"),ua=Rs("op-symbols"),ca=Rs("wks"),ha=!na||!na[Xs]||!na[Xs].findChild,da=function(t,e,n){var i=ia(Qs,e);i&&delete Qs[e],ra(t,e,n),i&&t!==Qs&&ra(Qs,e,i)},pa=ms&&gs((function(){return 7!==Ds(ra({},"a",{get:function(){return ra(this,"a",{value:7}).a}})).a}))?da:ra,fa=function(t,e){var n=la[t]=Ds(Js);return $s(n,{type:qs,tag:t,description:e}),ms||(n.description=e),n},ma=function(t,e,n){t===Qs&&ma(ua,e,n),ws(t);var i=ks(e);return ws(n),ys(la,i)?(n.enumerable?(ys(t,Us)&&t[Us][i]&&(t[Us][i]=!1),n=Ds(n,{enumerable:Ss(0,!1)})):(ys(t,Us)||ra(t,Us,Ss(1,{})),t[Us][i]=!0),pa(t,i,n)):ra(t,i,n)},va=function(t,e){ws(t);var n=_s(e),i=Ts(n).concat(wa(n));return Vs(i,(function(e){ms&&!ps(ga,n,e)||ma(t,e,n[e])})),t},ga=function(t){var e=ks(t),n=ps(sa,this,e);return!(this===Qs&&ys(la,e)&&!ys(ua,e))&&(!(n||!ys(this,e)||!ys(la,e)||ys(this,Us)&&this[Us][e])||n)},ya=function(t,e){var n=_s(t),i=ks(e);if(n!==Qs||!ys(la,i)||ys(ua,i)){var r=ia(n,i);return!r||!ys(la,i)||ys(n,Us)&&n[Us][i]||(r.enumerable=!0),r}},ba=function(t){var e=oa(_s(t)),n=[];return Vs(e,(function(t){ys(la,t)||ys(Fs,t)||aa(n,t)})),n},wa=function(t){var e=t===Qs,n=oa(e?ua:_s(t)),i=[];return Vs(n,(function(t){!ys(la,t)||e&&!ys(Qs,t)||aa(i,la[t])})),i};vs||(Zs=function(){if(bs(Js,this))throw new ea("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?xs(arguments[0]):void 0,e=Ls(t),n=function(t){var i=void 0===this?ds:this;i===Qs&&ps(n,ua,t),ys(i,Us)&&ys(i[Us],e)&&(i[Us][e]=!1);var r=Ss(1,t);try{pa(i,e,r)}catch(t){if(!(t instanceof ta))throw t;da(i,e,r)}};return ms&&ha&&pa(Qs,e,{configurable:!0,set:n}),fa(e,t)},Ns(Js=Zs[Xs],"toString",(function(){return Ks(this).tag})),Ns(Zs,"withoutSetter",(function(t){return fa(Ls(t),t)})),Is.f=ga,Ps.f=ma,As.f=va,Ms.f=ya,Cs.f=Os.f=ba,Es.f=wa,zs.f=function(t){return fa(Ys(t),t)},ms&&js(Js,"description",{configurable:!0,get:function(){return Ks(this).description}})),hs({global:!0,constructor:!0,wrap:!0,forced:!vs,sham:!vs},{Symbol:Zs}),Vs(Ts(ca),(function(t){Hs(t)})),hs({target:qs,stat:!0,forced:!vs},{useSetter:function(){ha=!0},useSimple:function(){ha=!1}}),hs({target:"Object",stat:!0,forced:!vs,sham:!ms},{create:function(t,e){return void 0===e?Ds(t):va(Ds(t),e)},defineProperty:ma,defineProperties:va,getOwnPropertyDescriptor:ya}),hs({target:"Object",stat:!0,forced:!vs},{getOwnPropertyNames:ba}),Gs(),Bs(Zs,qs),Fs[Us]=!0;var _a=kt&&!!Symbol.for&&!!Symbol.keyFor,ka=An,xa=ut,Sa=ee,Da=ir,Ta=$t,Ca=_a,Oa=Ta("string-to-symbol-registry"),Ea=Ta("symbol-to-string-registry");ka({target:"Symbol",stat:!0,forced:!Ca},{for:function(t){var e=Da(t);if(Sa(Oa,e))return Oa[e];var n=xa("Symbol")(e);return Oa[e]=n,Ea[n]=e,n}});var Ma=An,Pa=ee,Aa=Ot,Ia=Mt,Na=_a,ja=$t("symbol-to-string-registry");Ma({target:"Symbol",stat:!0,forced:!Na},{keyFor:function(t){if(!Aa(t))throw new TypeError(Ia(t)+" is not a symbol");if(Pa(ja,t))return ja[t]}});var Ra=b([].slice),Fa=Gn,La=M,Ya=x,za=ir,Ha=b([].push),Ga=An,Ba=ut,Wa=f,Va=j,Ua=b,qa=l,Xa=M,$a=Ot,Ka=Ra,Qa=function(t){if(La(t))return t;if(Fa(t)){for(var e=t.length,n=[],i=0;i=e.length)return t.target=void 0,Mu(void 0,!0);switch(t.kind){case"keys":return Mu(n,!1);case"values":return Mu(e[n],!1)}return Mu([n,e[n]],!1)}),"values"),Cu.Arguments=Cu.Array;var Nu={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ju=a,Ru=hi,Fu=wn,Lu=kl,Yu=me("toStringTag");for(var zu in Nu){var Hu=ju[zu],Gu=Hu&&Hu.prototype;Gu&&Ru(Gu)!==Yu&&Fu(Gu,Yu,zu),Lu[zu]=Lu.Array}var Bu=_l,Wu=me,Vu=tn.f,Uu=Wu("metadata"),qu=Function.prototype;void 0===qu[Uu]&&Vu(qu,Uu,{value:null}),To("asyncDispose"),To("dispose"),To("metadata");var Xu=Bu,$u=b,Ku=ut("Symbol"),Qu=Ku.keyFor,Zu=$u(Ku.prototype.valueOf),Ju=Ku.isRegisteredSymbol||function(t){try{return void 0!==Qu(Zu(t))}catch(t){return!1}};An({target:"Symbol",stat:!0},{isRegisteredSymbol:Ju});for(var tc=$t,ec=ut,nc=b,ic=Ot,rc=me,oc=ec("Symbol"),sc=oc.isWellKnownSymbol,ac=ec("Object","getOwnPropertyNames"),lc=nc(oc.prototype.valueOf),uc=tc("wks"),cc=0,hc=ac(oc),dc=hc.length;cc=a?t?"":void 0:(i=kc(o,s))<55296||i>56319||s+1===a||(r=kc(o,s+1))<56320||r>57343?t?_c(o,s):i:t?xc(o,s,s+2):r-56320+(i-55296<<10)+65536}},Dc=(Sc(!1),Sc(!0)),Tc=ir,Cc=ns,Oc=Su,Ec=Du,Mc="String Iterator",Pc=Cc.set,Ac=Cc.getterFor(Mc);Oc(String,"String",(function(t){Pc(this,{type:Mc,string:Tc(t),index:0})}),(function(){var t,e=Ac(this),n=e.string,i=e.index;return i>=n.length?Ec(void 0,!0):(t=Dc(n,i),e.index+=t.length,Ec(t,!1))}));var Ic=go.f("iterator"),Nc=Ic,jc=r(Nc);function Rc(t){return Rc="function"==typeof vc&&"symbol"==typeof jc?function(t){return typeof t}:function(t){return t&&"function"==typeof vc&&t.constructor===vc&&t!==vc.prototype?"symbol":typeof t},Rc(t)}var Fc=r(go.f("toPrimitive"));function Lc(t){var e=function(t,e){if("object"!==Rc(t)||null===t)return t;var n=t[Fc];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Rc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rc(e)?e:String(e)}function Yc(t,e){for(var n=0;n=0:a>l;l+=u)l in s&&(r=n(r,s[l],l,o));return r}},mh={left:fh(!1),right:fh(!0)},vh=l,gh=function(t,e){var n=[][t];return!!n&&vh((function(){n.call(null,e||function(){return 1},1)}))},yh="process"===x(a.process),bh=mh.left;An({target:"Array",proto:!0,forced:!yh&&yt>79&&yt<83||!gh("reduce")},{reduce:function(t){var e=arguments.length;return bh(this,t,e,e>1?arguments[1]:void 0)}});var wh=nh("Array","reduce"),_h=ct,kh=wh,xh=Array.prototype,Sh=r((function(t){var e=t.reduce;return t===xh||_h(xh,t)&&e===xh.reduce?kh:e})),Dh=cs.filter;An({target:"Array",proto:!0,forced:!zi("filter")},{filter:function(t){return Dh(this,t,arguments.length>1?arguments[1]:void 0)}});var Th=nh("Array","filter"),Ch=ct,Oh=Th,Eh=Array.prototype,Mh=r((function(t){var e=t.filter;return t===Eh||Ch(Eh,t)&&e===Eh.filter?Oh:e})),Ph=cs.map;An({target:"Array",proto:!0,forced:!zi("map")},{map:function(t){return Ph(this,t,arguments.length>1?arguments[1]:void 0)}});var Ah=nh("Array","map"),Ih=ct,Nh=Ah,jh=Array.prototype,Rh=r((function(t){var e=t.map;return t===jh||Ih(jh,t)&&e===jh.map?Nh:e})),Fh=Gn,Lh=Kn,Yh=Zn,zh=Je,Hh=function(t,e,n,i,r,o,s,a){for(var l,u,c=r,h=0,d=!!s&&zh(s,a);h0&&Fh(l)?(u=Lh(l),c=Hh(t,e,l,u,c,o-1)-1):(Yh(c+1),t[c]=l),c++),h++;return c},Gh=Hh,Bh=Nt,Wh=Zt,Vh=Kn,Uh=Ri;An({target:"Array",proto:!0},{flatMap:function(t){var e,n=Wh(this),i=Vh(n);return Bh(t),(e=Uh(n,0)).length=Gh(e,n,n,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var qh=nh("Array","flatMap"),Xh=ct,$h=qh,Kh=Array.prototype,Qh=r((function(t){var e=t.flatMap;return t===Kh||Xh(Kh,t)&&e===Kh.flatMap?$h:e})),Zh=function(){function t(e,i,r){var o,s,a;n(this,t),Hc(this,"_listeners",{add:lh(o=this._add).call(o,this),remove:lh(s=this._remove).call(s,this),update:lh(a=this._update).call(a,this)}),this._source=e,this._transformers=i,this._target=r}return zc(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return Sh(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),Jh=function(){function t(e){n(this,t),Hc(this,"_transformers",[]),this._source=e}return zc(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return Mh(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return Rh(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Qh(e).call(e,t)})),this}},{key:"to",value:function(t){return new Zh(this._source,this._transformers,t)}}]),t}(),td=j,ed=sn,nd=Ft,id=function(t,e,n){var i,r;ed(t);try{if(!(i=nd(t,"return"))){if("throw"===e)throw n;return n}i=td(i,t)}catch(t){r=!0,i=t}if("throw"===e)throw n;if(r)throw i;return ed(i),n},rd=sn,od=id,sd=kl,ad=me("iterator"),ld=Array.prototype,ud=function(t){return void 0!==t&&(sd.Array===t||ld[ad]===t)},cd=hi,hd=Ft,dd=X,pd=kl,fd=me("iterator"),md=function(t){if(!dd(t))return hd(t,fd)||hd(t,"@@iterator")||pd[cd(t)]},vd=j,gd=Nt,yd=sn,bd=Mt,wd=md,_d=TypeError,kd=function(t,e){var n=arguments.length<2?wd(t):e;if(gd(n))return yd(vd(n,t));throw new _d(bd(t)+" is not iterable")},xd=Je,Sd=j,Dd=Zt,Td=function(t,e,n,i){try{return i?e(rd(n)[0],n[1]):e(n)}catch(e){od(t,"throw",e)}},Cd=ud,Od=Ei,Ed=Kn,Md=ni,Pd=kd,Ad=md,Id=Array,Nd=me("iterator"),jd=!1;try{var Rd=0,Fd={next:function(){return{done:!!Rd++}},return:function(){jd=!0}};Fd[Nd]=function(){return this},Array.from(Fd,(function(){throw 2}))}catch(t){}var Ld=function(t,e){try{if(!e&&!jd)return!1}catch(t){return!1}var n=!1;try{var i={};i[Nd]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n},Yd=function(t){var e=Dd(t),n=Od(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=xd(r,i>2?arguments[2]:void 0));var s,a,l,u,c,h,d=Ad(e),p=0;if(!d||this===Id&&Cd(d))for(s=Ed(e),a=n?new this(s):Id(s);s>p;p++)h=o?r(e[p],p):e[p],Md(a,p,h);else for(c=(u=Pd(e,d)).next,a=n?new this:[];!(l=Sd(c,u)).done;p++)h=o?Td(u,r,[l.value,p],!0):l.value,Md(a,p,h);return a.length=p,a};An({target:"Array",stat:!0,forced:!Ld((function(t){Array.from(t)}))},{from:Yd});var zd=rt.Array.from,Hd=r(zd),Gd=md,Bd=r(Gd),Wd=r(Gd);An({target:"Array",stat:!0},{isArray:Gn});var Vd=rt.Array.isArray,Ud=r(Vd),qd=A,Xd=Gn,$d=TypeError,Kd=Object.getOwnPropertyDescriptor,Qd=qd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Xd(t)&&!Kd(t,"length").writable)throw new $d("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Zd=Zt,Jd=Kn,tp=Qd,ep=Zn;An({target:"Array",proto:!0,arity:1,forced:l((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Zd(this),n=Jd(e),i=arguments.length;ep(n+i);for(var r=0;rt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?arguments[1]:void 0)};An({target:"Array",proto:!0,forced:[].forEach!==Jp},{forEach:Jp});var tf=nh("Array","forEach"),ef=hi,nf=ee,rf=ct,of=tf,sf=Array.prototype,af={DOMTokenList:!0,NodeList:!0},lf=function(t){var e=t.forEach;return t===sf||rf(sf,t)&&e===sf.forEach||nf(af,ef(t))?of:e},uf=r(lf),cf=An,hf=Gn,df=b([].reverse),pf=[1,2];cf({target:"Array",proto:!0,forced:String(pf)===String(pf.reverse())},{reverse:function(){return hf(this)&&(this.length=this.length),df(this)}});var ff=nh("Array","reverse"),mf=ct,vf=ff,gf=Array.prototype,yf=function(t){var e=t.reverse;return t===gf||mf(gf,t)&&e===gf.reverse?vf:e},bf=r(yf),wf=Mt,_f=TypeError,kf=function(t,e){if(!delete t[e])throw new _f("Cannot delete property "+wf(e)+" of "+wf(t))},xf=An,Sf=Zt,Df=lr,Tf=Un,Cf=Kn,Of=Qd,Ef=Zn,Mf=Ri,Pf=ni,Af=kf,If=zi("splice"),Nf=Math.max,jf=Math.min;xf({target:"Array",proto:!0,forced:!If},{splice:function(t,e){var n,i,r,o,s,a,l=Sf(this),u=Cf(l),c=Df(t,u),h=arguments.length;for(0===h?n=i=0:1===h?(n=0,i=u-c):(n=h-2,i=jf(Nf(Tf(e),0),u-c)),Ef(u+n-i),r=Mf(l,i),o=0;ou-i+n;o--)Af(l,o-1)}else if(n>i)for(o=u-i;o>c;o--)a=o+n-1,(s=o+i-1)in l?l[a]=l[s]:Af(l,a);for(o=0;or;)for(var a,l=$f(arguments[r++]),u=o?Zf(Vf(l),o(l)):Vf(l),c=u.length,h=0;c>h;)a=u[h++],Hf&&!Bf(s,l,a)||(n[a]=l[a]);return n}:Kf,tm=Jf;An({target:"Object",stat:!0,arity:2,forced:Object.assign!==tm},{assign:tm});var em=r(rt.Object.assign),nm=Zt,im=Fl,rm=El;An({target:"Object",stat:!0,forced:l((function(){im(1)})),sham:!rm},{getPrototypeOf:function(t){return im(nm(t))}});var om=rt.Object.getPrototypeOf;An({target:"Object",stat:!0,sham:!A},{create:$r});var sm=rt.Object,am=function(t,e){return sm.create(t,e)},lm=r(am),um=rt,cm=f;um.JSON||(um.JSON={stringify:JSON.stringify});var hm=function(t,e,n){return cm(um.JSON.stringify,null,arguments)},dm=r(hm),pm="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,fm=TypeError,mm=function(t,e){if(tn,s=ym(i)?i:xm(i),a=o?_m(arguments,n):[],l=o?function(){gm(s,this,a)}:s;return e?t(l,r):t(l)}:t},Tm=An,Cm=a,Om=Dm(Cm.setInterval,!0);Tm({global:!0,bind:!0,forced:Cm.setInterval!==Om},{setInterval:Om});var Em=An,Mm=a,Pm=Dm(Mm.setTimeout,!0);Em({global:!0,bind:!0,forced:Mm.setTimeout!==Pm},{setTimeout:Pm});var Am=r(rt.setTimeout),Im={exports:{}};!function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...i)=>{this.off(t,n),e.apply(this,i)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,i]of n.entries())if(i===e||i.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(Im);var Nm,jm=r(Im.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 Rm(){return Rm=Object.assign||function(t){for(var e=1;e-1}var Sv=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===$m&&(t=this.compute()),Xm&&this.manager.element.style&&ev[t]&&(this.manager.element.style[qm]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return _v(this.manager.recognizers,(function(e){kv(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(xv(t,Zm))return Zm;var e=xv(t,Jm),n=xv(t,tv);return e&&n?Zm:e||n?e?Jm:tv:xv(t,Qm)?Qm:Km}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=xv(i,Zm)&&!ev[Zm],o=xv(i,tv)&&!ev[tv],s=xv(i,Jm)&&!ev[Jm];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&vv||s&&n&gv?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Dv(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Tv(t){var e=t.length;if(1===e)return{x:Bm(t[0].clientX),y:Bm(t[0].clientY)};for(var n=0,i=0,r=0;r=Wm(e)?t<0?dv:pv:e<0?fv:mv}function Pv(t,e,n){return{x:e/t||0,y:n/t||0}}function Av(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=Cv(e)),r>1&&!n.firstMultiple?n.firstMultiple=Cv(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=e.center=Tv(i);e.timeStamp=Vm(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Ev(a,l),e.distance=Ov(a,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==lv&&o.eventType!==uv||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=Mv(e.deltaX,e.deltaY);var u,c,h=Pv(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Wm(h.x)>Wm(h.y)?h.x:h.y,e.scale=s?(u=s.pointers,Ov((c=i)[0],c[1],wv)/Ov(u[0],u[1],wv)):1,e.rotation=s?function(t,e){return Ev(e[1],e[0],wv)+Ev(t[1],t[0],wv)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==cv&&(a>av||void 0===s.velocity)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=Pv(a,l,u);i=c.x,r=c.y,n=Wm(c.x)>Wm(c.y)?c.x:c.y,o=Mv(l,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var d,p=t.element,f=e.srcEvent;Dv(d=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=d),e.target=p}function Iv(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&lv&&i-r==0,s=e&(uv|cv)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Av(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Nv(t){return t.trim().split(/\s+/g)}function jv(t,e,n){_v(Nv(e),(function(e){t.addEventListener(e,n,!1)}))}function Rv(t,e,n){_v(Nv(e),(function(e){t.removeEventListener(e,n,!1)}))}function Fv(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Lv=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){kv(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&jv(this.element,this.evEl,this.domHandler),this.evTarget&&jv(this.target,this.evTarget,this.domHandler),this.evWin&&jv(Fv(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Rv(this.element,this.evEl,this.domHandler),this.evTarget&&Rv(this.target,this.evTarget,this.domHandler),this.evWin&&Rv(Fv(this.element),this.evWin,this.domHandler)},t}();function Yv(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]})):i.sort()),i}var qv={touchstart:lv,touchmove:2,touchend:uv,touchcancel:cv},Xv=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return Fm(e,t),e.prototype.handler=function(t){var e=qv[t.type],n=$v.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ov,srcEvent:t})},e}(Lv);function $v(t,e){var n,i,r=Vv(t.touches),o=this.targetIds;if(e&(2|lv)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=Vv(t.changedTouches),a=[],l=this.target;if(i=r.filter((function(t){return Dv(t.target,l)})),e===lv)for(n=0;n-1&&i.splice(t,1)}),Zv)}}function tg(t,e){t&lv?(this.primaryTouch=e.changedPointers[0].identifier,Jv.call(this,e)):t&(uv|cv)&&Jv.call(this,e)}function eg(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+ag(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+ag(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=rg},e.canEmit=function(){for(var t=0;te.threshold&&r&e.direction},n.attrTest=function(t){return cg.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=hg(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(cg),pg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rm({event:"swipe",threshold:10,velocity:.3,direction:vv|gv,pointers:1},e))||this}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return dg.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,i=this.options.direction;return i&(vv|gv)?n=e.overallVelocity:i&vv?n=e.overallVelocityX:i&gv&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Wm(n)>this.options.velocity&&e.eventType&uv},n.emit=function(t){var e=hg(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(cg),fg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rm({event:"pinch",threshold:0,pointers:2},e))||this}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Zm]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(cg),mg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rm({event:"rotate",threshold:0,pointers:2},e))||this}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Zm]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(cg),vg=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Rm({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Km]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distancen.time;if(this._input=t,!r||!i||t.eventType&(uv|cv)&&!o)this.reset();else if(t.eventType&lv)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&uv)return 8;return rg},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&uv?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Vm(),this.manager.emit(this.options.event,this._input)))},e}(lg),gg={domEvents:!1,touchAction:$m,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},yg=[[mg,{enable:!1}],[fg,{enable:!1},["rotate"]],[pg,{direction:vv}],[dg,{direction:vv},["swipe"]],[ug],[ug,{event:"doubletap",taps:2},["tap"]],[vg]];function bg(t,e){var n,i=t.element;i.style&&(_v(t.options.cssProps,(function(r,o){n=Um(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var wg=function(){function t(t,e){var n,i=this;this.options=zm({},gg,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(iv?Wv:rv?Xv:nv?ng:Qv))(n,Iv),this.touchAction=new Sv(this,this.options.touchAction),bg(this,!0),_v(this.options.recognizers,(function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return zm(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(e.curRecognizer=null,r=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),t.apply(this,arguments)}}var Dg=Sg((function(t,e,n){for(var i=Object.keys(e),r=0;r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Pg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n2)return Ng.apply(void 0,Yp(i=[Ig(e[0],e[1])]).call(i,Ip(zp(e).call(e,2))));var r=e[0],o=e[1];if(r instanceof Date&&o instanceof Date)return r.setTime(o.getTime()),r;var s,a=Mg(qp(o));try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===Ag?delete r[l]:null===r[l]||null===o[l]||"object"!=typeof r[l]||"object"!=typeof o[l]||Xp(r[l])||Xp(o[l])?r[l]=jg(o[l]):r[l]=Ng(r[l],o[l]))}}catch(t){a.e(t)}finally{a.f()}return r}function jg(t){return Xp(t)?Rh(t).call(t,(function(t){return jg(t)})):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):Ng({},t):t}function Rg(t){for(var e=0,n=Qp(t);e({set:t})}}()};function Lg(t){var e,n=this;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((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var i=Fg(this._dom.overlay);i.on("tap",lh(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){i.destroy()}));var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];uf(r).call(r,(function(t){i.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}jm(Lg.prototype),Lg.current=null,Lg.prototype.destroy=function(){var t,e;this.deactivate();var n,i=Mg(bf(t=zf(e=this._cleanupQueue).call(e,0)).call(t));try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(t){i.e(t)}finally{i.f()}},Lg.prototype.activate=function(){Lg.current&&Lg.current.deactivate(),Lg.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)},Lg.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")},Lg.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Yg=Ei,zg=Mt,Hg=TypeError,Gg=function(t){if(Yg(t))return t;throw new Hg(zg(t)+" is not a constructor")},Bg=An,Wg=f,Vg=Zc,Ug=Gg,qg=sn,Xg=it,$g=$r,Kg=l,Qg=ut("Reflect","construct"),Zg=Object.prototype,Jg=[].push,ty=Kg((function(){function t(){}return!(Qg((function(){}),[],t)instanceof t)})),ey=!Kg((function(){Qg((function(){}))})),ny=ty||ey;Bg({target:"Reflect",stat:!0,forced:ny,sham:ny},{construct:function(t,e){Ug(t),qg(e);var n=arguments.length<3?t:Ug(arguments[2]);if(ey&&!ty)return Qg(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return Wg(Jg,i,e),new(Wg(Vg,t,i))}var r=n.prototype,o=$g(Xg(r)?r:Zg),s=Wg(t,o,e);return Xg(s)?s:o}});var iy=r(rt.Reflect.construct),ry=r(rt.Object.getOwnPropertySymbols),oy={exports:{}},sy=An,ay=l,ly=tt,uy=P.f,cy=A;sy({target:"Object",stat:!0,forced:!cy||ay((function(){uy(1)})),sham:!cy},{getOwnPropertyDescriptor:function(t,e){return uy(ly(t),e)}});var hy=rt.Object,dy=oy.exports=function(t,e){return hy.getOwnPropertyDescriptor(t,e)};hy.getOwnPropertyDescriptor.sham&&(dy.sham=!0);var py=r(oy.exports),fy=Up,my=tt,vy=P,gy=ni;An({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(t){for(var e,n,i=my(t),r=vy.f,o=fy(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&gy(s,e,n);return s}});var yy=r(rt.Object.getOwnPropertyDescriptors),by={exports:{}},wy=An,_y=A,ky=rr.f;wy({target:"Object",stat:!0,forced:Object.defineProperties!==ky,sham:!_y},{defineProperties:ky});var xy=rt.Object,Sy=by.exports=function(t,e){return xy.defineProperties(t,e)};xy.defineProperties.sham&&(Sy.sham=!0);var Dy=r(by.exports),Ty=r(Ln);function Cy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Oy=am,Ey=r(Oy);An({target:"Object",stat:!0},{setPrototypeOf:lu});var My=rt.Object.setPrototypeOf,Py=r(My),Ay=r(ah);function Iy(t,e){var n;return Iy=Py?Ay(n=Py).call(n):function(t,e){return t.__proto__=e,t},Iy(t,e)}function Ny(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Ey(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),zn(t,"prototype",{writable:!1}),e&&Iy(t,e)}function jy(t,e){if(e&&("object"===Rc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cy(t)}var Ry=om,Fy=r(Ry);function Ly(t){var e;return Ly=Py?Ay(e=Fy).call(e):function(t){return t.__proto__||Fy(t)},Ly(t)}var Yy={exports:{}},zy={exports:{}};!function(t){var e=mc,n=Nc;function i(r){return t.exports=i="function"==typeof e&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,i(r)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}(zy);var Hy=zy.exports,Gy=lf,By=ee,Wy=Up,Vy=P,Uy=tn,qy=it,Xy=wn,$y=Error,Ky=b("".replace),Qy=String(new $y("zxcasd").stack),Zy=/\n\s*at [^:]*:[^\n]*/,Jy=Zy.test(Qy),tb=G,eb=!l((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",tb(1,7)),7!==t.stack)})),nb=wn,ib=function(t,e){if(Jy&&"string"==typeof t&&!$y.prepareStackTrace)for(;e--;)t=Ky(t,Zy,"");return t},rb=eb,ob=Error.captureStackTrace,sb=Je,ab=j,lb=sn,ub=Mt,cb=ud,hb=Kn,db=ct,pb=kd,fb=md,mb=id,vb=TypeError,gb=function(t,e){this.stopped=t,this.result=e},yb=gb.prototype,bb=function(t,e,n){var i,r,o,s,a,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),m=sb(e,c),v=function(t){return i&&mb(i,"normal",t),new gb(!0,t)},g=function(t){return h?(lb(t),f?m(t[0],t[1],v):m(t[0],t[1])):f?m(t,v):m(t)};if(d)i=t.iterator;else if(p)i=t;else{if(!(r=fb(t)))throw new vb(ub(t)+" is not iterable");if(cb(r)){for(o=0,s=hb(t);s>o;o++)if((a=g(t[o]))&&db(yb,a))return a;return new gb(!1)}i=pb(t,r)}for(l=d?t.next:i.next;!(u=ab(l,i)).done;){try{a=g(u.value)}catch(t){mb(i,"throw",t)}if("object"==typeof a&&a&&db(yb,a))return a}return new gb(!1)},wb=ir,_b=An,kb=ct,xb=Fl,Sb=lu,Db=function(t,e,n){for(var i=Wy(e),r=Uy.f,o=Vy.f,s=0;s2&&Eb(n,arguments[2]);var r=[];return Pb(t,jb,{that:r}),Cb(n,"errors",r),n};Sb?Sb(Rb,Nb):Db(Rb,Nb,{name:!0});var Fb=Rb.prototype=Tb(Nb.prototype,{constructor:Ob(1,Rb),message:Ob(1,""),name:Ob(1,"AggregateError")});_b({global:!0,constructor:!0,arity:2},{AggregateError:Rb});var Lb,Yb,zb,Hb,Gb=ut,Bb=vo,Wb=A,Vb=me("species"),Ub=function(t){var e=Gb(t);Wb&&e&&!e[Vb]&&Bb(e,Vb,{configurable:!0,get:function(){return this}})},qb=ct,Xb=TypeError,$b=function(t,e){if(qb(e,t))return t;throw new Xb("Incorrect invocation")},Kb=sn,Qb=Gg,Zb=X,Jb=me("species"),tw=function(t,e){var n,i=Kb(t).constructor;return void 0===i||Zb(n=Kb(i)[Jb])?e:Qb(n)},ew=/(?:ipad|iphone|ipod).*applewebkit/i.test(ht),nw=a,iw=f,rw=Je,ow=M,sw=ee,aw=l,lw=Ar,uw=Ra,cw=Ee,hw=mm,dw=ew,pw=yh,fw=nw.setImmediate,mw=nw.clearImmediate,vw=nw.process,gw=nw.Dispatch,yw=nw.Function,bw=nw.MessageChannel,ww=nw.String,_w=0,kw={},xw="onreadystatechange";aw((function(){Lb=nw.location}));var Sw=function(t){if(sw(kw,t)){var e=kw[t];delete kw[t],e()}},Dw=function(t){return function(){Sw(t)}},Tw=function(t){Sw(t.data)},Cw=function(t){nw.postMessage(ww(t),Lb.protocol+"//"+Lb.host)};fw&&mw||(fw=function(t){hw(arguments.length,1);var e=ow(t)?t:yw(t),n=uw(arguments,1);return kw[++_w]=function(){iw(e,void 0,n)},Yb(_w),_w},mw=function(t){delete kw[t]},pw?Yb=function(t){vw.nextTick(Dw(t))}:gw&&gw.now?Yb=function(t){gw.now(Dw(t))}:bw&&!dw?(Hb=(zb=new bw).port2,zb.port1.onmessage=Tw,Yb=rw(Hb.postMessage,Hb)):nw.addEventListener&&ow(nw.postMessage)&&!nw.importScripts&&Lb&&"file:"!==Lb.protocol&&!aw(Cw)?(Yb=Cw,nw.addEventListener("message",Tw,!1)):Yb=xw in cw("script")?function(t){lw.appendChild(cw("script"))[xw]=function(){lw.removeChild(this),Sw(t)}}:function(t){setTimeout(Dw(t),0)});var Ow={set:fw,clear:mw},Ew=function(){this.head=null,this.tail=null};Ew.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Mw,Pw,Aw,Iw,Nw,jw=Ew,Rw=/ipad|iphone|ipod/i.test(ht)&&"undefined"!=typeof Pebble,Fw=/web0s(?!.*chrome)/i.test(ht),Lw=a,Yw=Je,zw=P.f,Hw=Ow.set,Gw=jw,Bw=ew,Ww=Rw,Vw=Fw,Uw=yh,qw=Lw.MutationObserver||Lw.WebKitMutationObserver,Xw=Lw.document,$w=Lw.process,Kw=Lw.Promise,Qw=zw(Lw,"queueMicrotask"),Zw=Qw&&Qw.value;if(!Zw){var Jw=new Gw,t_=function(){var t,e;for(Uw&&(t=$w.domain)&&t.exit();e=Jw.get();)try{e()}catch(t){throw Jw.head&&Mw(),t}t&&t.enter()};Bw||Uw||Vw||!qw||!Xw?!Ww&&Kw&&Kw.resolve?((Iw=Kw.resolve(void 0)).constructor=Kw,Nw=Yw(Iw.then,Iw),Mw=function(){Nw(t_)}):Uw?Mw=function(){$w.nextTick(t_)}:(Hw=Yw(Hw,Lw),Mw=function(){Hw(t_)}):(Pw=!0,Aw=Xw.createTextNode(""),new qw(t_).observe(Aw,{characterData:!0}),Mw=function(){Aw.data=Pw=!Pw}),Zw=function(t){Jw.head||Mw(),Jw.add(t)}}var e_=Zw,n_=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},i_=a.Promise,r_="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,o_=!r_&&!yh&&"object"==typeof window&&"object"==typeof document,s_=a,a_=i_,l_=M,u_=$e,c_=mi,h_=me,d_=o_,p_=r_,f_=yt,m_=a_&&a_.prototype,v_=h_("species"),g_=!1,y_=l_(s_.PromiseRejectionEvent),b_=u_("Promise",(function(){var t=c_(a_),e=t!==String(a_);if(!e&&66===f_)return!0;if(!m_.catch||!m_.finally)return!0;if(!f_||f_<51||!/native code/.test(t)){var n=new a_((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((n.constructor={})[v_]=i,!(g_=n.then((function(){}))instanceof i))return!0}return!e&&(d_||p_)&&!y_})),w_={CONSTRUCTOR:b_,REJECTION_EVENT:y_,SUBCLASSING:g_},__={},k_=Nt,x_=TypeError,S_=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw new x_("Bad Promise constructor");e=t,n=i})),this.resolve=k_(e),this.reject=k_(n)};__.f=function(t){return new S_(t)};var D_,T_,C_=An,O_=yh,E_=a,M_=j,P_=fo,A_=zo,I_=Ub,N_=Nt,j_=M,R_=it,F_=$b,L_=tw,Y_=Ow.set,z_=e_,H_=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},G_=n_,B_=jw,W_=ns,V_=i_,U_=w_,q_=__,X_="Promise",$_=U_.CONSTRUCTOR,K_=U_.REJECTION_EVENT,Q_=W_.getterFor(X_),Z_=W_.set,J_=V_&&V_.prototype,tk=V_,ek=J_,nk=E_.TypeError,ik=E_.document,rk=E_.process,ok=q_.f,sk=ok,ak=!!(ik&&ik.createEvent&&E_.dispatchEvent),lk="unhandledrejection",uk=function(t){var e;return!(!R_(t)||!j_(e=t.then))&&e},ck=function(t,e){var n,i,r,o=e.value,s=1===e.state,a=s?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&mk(e),e.rejection=1),!0===a?n=o:(c&&c.enter(),n=a(o),c&&(c.exit(),r=!0)),n===t.promise?u(new nk("Promise-chain cycle")):(i=uk(n))?M_(i,n,l,u):l(n)):u(o)}catch(t){c&&!r&&c.exit(),u(t)}},hk=function(t,e){t.notified||(t.notified=!0,z_((function(){for(var n,i=t.reactions;n=i.get();)ck(n,t);t.notified=!1,e&&!t.rejection&&pk(t)})))},dk=function(t,e,n){var i,r;ak?((i=ik.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),E_.dispatchEvent(i)):i={promise:e,reason:n},!K_&&(r=E_["on"+t])?r(i):t===lk&&H_("Unhandled promise rejection",n)},pk=function(t){M_(Y_,E_,(function(){var e,n=t.facade,i=t.value;if(fk(t)&&(e=G_((function(){O_?rk.emit("unhandledRejection",i,n):dk(lk,n,i)})),t.rejection=O_||fk(t)?2:1,e.error))throw e.value}))},fk=function(t){return 1!==t.rejection&&!t.parent},mk=function(t){M_(Y_,E_,(function(){var e=t.facade;O_?rk.emit("rejectionHandled",e):dk("rejectionhandled",e,t.value)}))},vk=function(t,e,n){return function(i){t(e,i,n)}},gk=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,hk(t,!0))},yk=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new nk("Promise can't be resolved itself");var i=uk(e);i?z_((function(){var n={done:!1};try{M_(i,e,vk(yk,n,t),vk(gk,n,t))}catch(e){gk(n,e,t)}})):(t.value=e,t.state=1,hk(t,!1))}catch(e){gk({done:!1},e,t)}}};$_&&(ek=(tk=function(t){F_(this,ek),N_(t),M_(D_,this);var e=Q_(this);try{t(vk(yk,e),vk(gk,e))}catch(t){gk(e,t)}}).prototype,(D_=function(t){Z_(this,{type:X_,done:!1,notified:!1,parent:!1,reactions:new B_,rejection:!1,state:0,value:void 0})}).prototype=P_(ek,"then",(function(t,e){var n=Q_(this),i=ok(L_(this,tk));return n.parent=!0,i.ok=!j_(t)||t,i.fail=j_(e)&&e,i.domain=O_?rk.domain:void 0,0===n.state?n.reactions.add(i):z_((function(){ck(i,n)})),i.promise})),T_=function(){var t=new D_,e=Q_(t);this.promise=t,this.resolve=vk(yk,e),this.reject=vk(gk,e)},q_.f=ok=function(t){return t===tk||void 0===t?new T_(t):sk(t)}),C_({global:!0,constructor:!0,wrap:!0,forced:$_},{Promise:tk}),A_(tk,X_,!1,!0),I_(X_);var bk=i_,wk=w_.CONSTRUCTOR||!Ld((function(t){bk.all(t).then(void 0,(function(){}))})),_k=j,kk=Nt,xk=__,Sk=n_,Dk=bb;An({target:"Promise",stat:!0,forced:wk},{all:function(t){var e=this,n=xk.f(e),i=n.resolve,r=n.reject,o=Sk((function(){var n=kk(e.resolve),o=[],s=0,a=1;Dk(t,(function(t){var l=s++,u=!1;a++,_k(n,e,t).then((function(t){u||(u=!0,o[l]=t,--a||i(o))}),r)})),--a||i(o)}));return o.error&&r(o.value),n.promise}});var Tk=An,Ck=w_.CONSTRUCTOR;i_&&i_.prototype,Tk({target:"Promise",proto:!0,forced:Ck,real:!0},{catch:function(t){return this.then(void 0,t)}});var Ok=j,Ek=Nt,Mk=__,Pk=n_,Ak=bb;An({target:"Promise",stat:!0,forced:wk},{race:function(t){var e=this,n=Mk.f(e),i=n.reject,r=Pk((function(){var r=Ek(e.resolve);Ak(t,(function(t){Ok(r,e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var Ik=j,Nk=__;An({target:"Promise",stat:!0,forced:w_.CONSTRUCTOR},{reject:function(t){var e=Nk.f(this);return Ik(e.reject,void 0,t),e.promise}});var jk=sn,Rk=it,Fk=__,Lk=function(t,e){if(jk(t),Rk(e)&&e.constructor===t)return e;var n=Fk.f(t);return(0,n.resolve)(e),n.promise},Yk=An,zk=i_,Hk=w_.CONSTRUCTOR,Gk=Lk,Bk=ut("Promise"),Wk=!Hk;Yk({target:"Promise",stat:!0,forced:!0},{resolve:function(t){return Gk(Wk&&this===Bk?zk:this,t)}});var Vk=j,Uk=Nt,qk=__,Xk=n_,$k=bb;An({target:"Promise",stat:!0,forced:wk},{allSettled:function(t){var e=this,n=qk.f(e),i=n.resolve,r=n.reject,o=Xk((function(){var n=Uk(e.resolve),r=[],o=0,s=1;$k(t,(function(t){var a=o++,l=!1;s++,Vk(n,e,t).then((function(t){l||(l=!0,r[a]={status:"fulfilled",value:t},--s||i(r))}),(function(t){l||(l=!0,r[a]={status:"rejected",reason:t},--s||i(r))}))})),--s||i(r)}));return o.error&&r(o.value),n.promise}});var Kk=j,Qk=Nt,Zk=ut,Jk=__,tx=n_,ex=bb,nx="No one promise resolved";An({target:"Promise",stat:!0,forced:wk},{any:function(t){var e=this,n=Zk("AggregateError"),i=Jk.f(e),r=i.resolve,o=i.reject,s=tx((function(){var i=Qk(e.resolve),s=[],a=0,l=1,u=!1;ex(t,(function(t){var c=a++,h=!1;l++,Kk(i,e,t).then((function(t){h||u||(u=!0,r(t))}),(function(t){h||u||(h=!0,s[c]=t,--l||o(new n(s,nx)))}))})),--l||o(new n(s,nx))}));return s.error&&o(s.value),i.promise}});var ix=An,rx=i_,ox=l,sx=ut,ax=M,lx=tw,ux=Lk,cx=rx&&rx.prototype;ix({target:"Promise",proto:!0,real:!0,forced:!!rx&&ox((function(){cx.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=lx(this,sx("Promise")),n=ax(t);return this.then(n?function(n){return ux(e,t()).then((function(){return n}))}:t,n?function(n){return ux(e,t()).then((function(){throw n}))}:t)}});var hx=rt.Promise,dx=__;An({target:"Promise",stat:!0},{withResolvers:function(){var t=dx.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var px=hx,fx=__,mx=n_;An({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=fx.f(this),n=mx(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var vx=px,gx=yf;!function(t){var e=Hy.default,n=Yn,i=mc,r=Oy,o=Ry,s=Gy,a=sp,l=My,u=vx,c=gx,h=Cp;function d(){t.exports=d=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var p,f={},m=Object.prototype,v=m.hasOwnProperty,g=n||function(t,e,n){t[e]=n.value},y="function"==typeof i?i:{},b=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag";function k(t,e,i){return n(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{k({},"")}catch(p){k=function(t,e,n){return t[e]=n}}function x(t,e,n,i){var o=e&&e.prototype instanceof M?e:M,s=r(o.prototype),a=new G(i||[]);return g(s,"_invoke",{value:L(t,n,a)}),s}function S(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}f.wrap=x;var D="suspendedStart",T="suspendedYield",C="executing",O="completed",E={};function M(){}function P(){}function A(){}var I={};k(I,b,(function(){return this}));var N=o&&o(o(B([])));N&&N!==m&&v.call(N,b)&&(I=N);var j=A.prototype=M.prototype=r(I);function R(t){var e;s(e=["next","throw","return"]).call(e,(function(e){k(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,n){function i(r,o,s,a){var l=S(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==e(c)&&v.call(c,"__await")?n.resolve(c.__await).then((function(t){i("next",t,s,a)}),(function(t){i("throw",t,s,a)})):n.resolve(c).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,a)}))}a(l.arg)}var r;g(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,r){i(t,e,n,r)}))}return r=r?r.then(o,o):o()}})}function L(t,e,n){var i=D;return function(r,o){if(i===C)throw new Error("Generator is already running");if(i===O){if("throw"===r)throw o;return{value:p,done:!0}}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=Y(s,n);if(a){if(a===E)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===D)throw i=O,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=C;var l=S(t,e,n);if("normal"===l.type){if(i=n.done?O:T,l.arg===E)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=O,n.method="throw",n.arg=l.arg)}}}function Y(t,e){var n=e.method,i=t.iterator[n];if(i===p)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=p,Y(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),E;var r=S(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,E;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=p),e.delegate=null,E):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function z(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),a(e=this.tryEntries).call(e,n)}function H(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],s(t).call(t,z,this),this.reset(!0)}function B(t){if(t||""===t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=v.call(r,"catchLoc"),a=v.call(r,"finallyLoc");if(s&&a){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&v.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),H(n),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;H(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=p),E}},f}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports}(Yy);var yx=(0,Yy.exports)(),bx=yx;try{regeneratorRuntime=yx}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=yx:Function("r","regeneratorRuntime = r")(yx)}var wx=r(bx),_x={exports:{}},kx=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),xx=l,Sx=it,Dx=x,Tx=kx,Cx=Object.isExtensible,Ox=xx((function(){Cx(1)}))||Tx?function(t){return!!Sx(t)&&(!Tx||"ArrayBuffer"!==Dx(t))&&(!Cx||Cx(t))}:Cx,Ex=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),Mx=An,Px=b,Ax=fr,Ix=it,Nx=ee,jx=tn.f,Rx=Kr,Fx=Jr,Lx=Ox,Yx=Ex,zx=!1,Hx=se("meta"),Gx=0,Bx=function(t){jx(t,Hx,{value:{objectID:"O"+Gx++,weakData:{}}})},Wx=_x.exports={enable:function(){Wx.enable=function(){},zx=!0;var t=Rx.f,e=Px([].splice),n={};n[Hx]=1,t(n).length&&(Rx.f=function(n){for(var i=t(n),r=0,o=i.length;r1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),dS(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),wS&&hS(o,"size",{configurable:!0,get:function(){return s(this).size}}),r},setStrong:function(t,e,n){var i=e+" Iterator",r=xS(e),o=xS(i);gS(t,e,(function(t,e){kS(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?yS("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,yS(void 0,!0))}),n?"entries":"values",!n,!0),bS(e)}};lS("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),SS);var DS=r(rt.Map),TS=cs.some;An({target:"Array",proto:!0,forced:!gh("some")},{some:function(t){return TS(this,t,arguments.length>1?arguments[1]:void 0)}});var CS=nh("Array","some"),OS=ct,ES=CS,MS=Array.prototype,PS=r((function(t){var e=t.some;return t===MS||OS(MS,t)&&e===MS.some?ES:e})),AS=nh("Array","keys"),IS=hi,NS=ee,jS=ct,RS=AS,FS=Array.prototype,LS={DOMTokenList:!0,NodeList:!0},YS=r((function(t){var e=t.keys;return t===FS||jS(FS,t)&&e===FS.keys||NS(LS,IS(t))?RS:e})),zS=oo,HS=Math.floor,GS=function(t,e){var n=t.length,i=HS(n/2);return n<8?BS(t,e):WS(t,GS(zS(t,0,i),e),GS(zS(t,i),e),e)},BS=function(t,e){for(var n,i,r=t.length,o=1;o0;)t[i]=t[--i];i!==o++&&(t[i]=n)}return t},WS=function(t,e,n,i){for(var r=e.length,o=n.length,s=0,a=0;s3)){if(lD)return!0;if(cD)return cD<603;var t,e,n,i,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)hD.push({k:e+i,v:n})}for(hD.sort((function(t,e){return e.v-t.v})),i=0;iiD(n)?1:-1}}(t)),n=eD(r),i=0;ithis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Am((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;uf(t=zf(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,n){var i=new t(n);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var r=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;o=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ZD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nwx.mark((function e(){var i,r,o,s,a;return wx.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=QD(n),e.prev=1,i.s();case 3:if((r=i.n()).done){e.next=10;break}if(o=Ap(r.value,2),s=o[0],a=o[1],!t(a,s)){e.next=8;break}return e.next=8,[s,a];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),i.e(e.t0);case 15:return e.prev=15,i.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))()})}},{key:"forEach",value:function(t){var e,n=QD(this._pairs);try{for(n.s();!(e=n.n()).done;){var i=Ap(e.value,2),r=i[0];t(i[1],r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"map",value:function(t){var n=this._pairs;return new e({[PD]:()=>wx.mark((function e(){var i,r,o,s,a;return wx.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=QD(n),e.prev=1,i.s();case 3:if((r=i.n()).done){e.next=9;break}return o=Ap(r.value,2),s=o[0],a=o[1],e.next=7,[s,t(a,s)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),i.e(e.t0);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))()})}},{key:"max",value:function(t){var e=KD(this._pairs),n=e.next();if(n.done)return null;for(var i=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Ap(n.value,2),s=o[0],a=o[1],l=t(a,s);l>r&&(r=l,i=a)}return i}},{key:"min",value:function(t){var e=KD(this._pairs),n=e.next();if(n.done)return null;for(var i=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Ap(n.value,2),s=o[0],a=o[1],l=t(a,s);l=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function iT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?n-1:0),r=1;rr?1:ir)&&(i=s,r=a)}}catch(t){o.e(t)}finally{o.f()}return i||null}},{key:"min",value:function(t){var e,n,i=null,r=null,o=nT(MD(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s[t];"number"==typeof a&&(null==r||awx.mark((function n(){var i,r,o,s;return wx.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=nT(t),n.prev=1,i.s();case 3:if((r=i.n()).done){n.next=11;break}if(o=r.value,null==(s=e.get(o))){n.next=9;break}return n.next=9,[o,s];case 9:n.next=3;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(1),i.e(n.t0);case 16:return n.prev=16,i.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])}))()})}var n;return new JD({[PD]:lh(n=YD(this._data)).call(n,this._data)})}}]),i}(XD);function sT(t,e){var n=void 0!==Np&&Wd(t)||t["@@iterator"];if(!n){if(Xp(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return aT(t,e);var i=zp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Hd(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?aT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function aT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n{const n=this._cameraManager.getCameraMetadata(t);e.push({id:this._getGroupIDForCamera(t),content:n?.title??t})}));else if("folder"===t.type){const n=this._getGroupIDForFolder(t.folder);e.push({id:n,content:t.folder?.title??n})}return new it.DataSet(e)}rewriteEvent(t){const e=this._dataset.get(t);e&&(this._dataset.remove(t),this._dataset.add(e))}addEventMediaToDataset(t,e){const n=[];for(const i of t??[]){if(!a.isEvent(i))continue;const t=i.getStartTime(),r=i.getID(),o=i.getFolder(),s=i.getCameraID(),l=o?this._getGroupIDForFolder(o):s?this._getGroupIDForCamera(s):null;r&&t&&l&&n.push({id:r,group:l,content:"",media:i,start:t.getTime(),type:"range",end:i.getUsableEndTime()?.getTime(),...e&&{query:e}})}this._dataset.update(n)}async _refreshEvents(t,e){await this._refreshEventsFromCamera(t,e),await this._refreshEventsFromFolder()}async _refreshEventsFromCamera(t,e){if("camera"!==this._keys.type)return;if(this._eventRanges.hasCoverage({start:t.start,end:l(tt(t.end),{seconds:30})}))return;const n=et(t),i=this.getTimelineEventQueries(n);i&&(this.addEventMediaToDataset(await this._cameraManager.executeMediaQueries(i)),this._eventRanges.add({...n,expires:u(new Date,{seconds:30})}))}async _refreshEventsFromFolder(){if("folder"!==this._keys.type)return;const t=this.getTimelineFolderQuery();if(!t)return;const e=this._folderCache.get(t),n=new Date;e&&e>=l(n,{seconds:30})||(this.addEventMediaToDataset(await this._foldersManager.expandFolder(t,this._conditionStateManager.getState()),new c(t)),this._folderCache.set(t,n))}async refresh(t,e){try{await Promise.all([this._refreshEvents(t,e),...this._showRecordings?[this._refreshRecordings(t)]:[]])}catch(t){h(t)}}getTimelineEventQueries(t){return"camera"===this._keys.type&&this._keys.cameraIDs.size?this._cameraManager.generateDefaultEventQueries(this._keys.cameraIDs,{start:t.start,end:t.end,..."clips"===this._eventsMediaType&&{hasClip:!0},..."snapshots"===this._eventsMediaType&&{hasSnapshot:!0}}):null}getTimelineRecordingQueries(t){return"camera"===this._keys.type&&this._keys.cameraIDs.size?this._cameraManager.generateDefaultRecordingQueries(this._keys.cameraIDs,{start:t.start,end:t.end}):null}getTimelineFolderQuery(){return"folder"!==this._keys.type?null:this._foldersManager.generateDefaultFolderQuery(this._keys.folder)}async _refreshRecordings(t){const e="camera"===this._keys.type?this._keys.cameraIDs:null;if(!e?.size)return;const n=(t,e)=>({id:`recording-${t}-${e.id}`,group:this._getGroupIDForCamera(t),start:1e3*e.start_time,end:1e3*e.end_time,content:"",type:"background"}),i=t=>{const e=this._getGroupIDForCamera(t);return this._dataset.get({filter:t=>"background"===t.type&&t.group===e&&void 0!==t.end})},r=t=>{const e=this._getGroupIDForCamera(t);this._dataset.remove(this._dataset.get({filter:t=>"background"===t.type&&t.group===e}))},o=t=>{this._dataset.add(t)};if(this._recordingRanges.hasCoverage({start:t.start,end:l(tt(t.end),{seconds:30})}))return;const s=et(t),a=this._cameraManager.generateDefaultRecordingSegmentsQueries(e,{start:s.start,end:s.end});if(!a)return;const u=await this._cameraManager.getRecordingSegments(a),c=new Map;for(const[t,e]of u)for(const n of t.cameraIDs){let t=c.get(n);t||(t=[],c.set(n,t)),e.segments.forEach((e=>t?.push(e)))}for(const[t,e]of c.entries()){const s=i(t).concat(e.map((e=>n(t,e)))),a=d(s,60);r(t),o(a)}this._recordingRanges.add({start:s.start,end:s.end})}}const ot="target_bar";class st{constructor(t){this._timelineElement=null,this._source=null,this._timeline=null,this._hass=null,this._cameraManager=null,this._viewItemManager=null,this._viewManagerEpoch=null,this._timelineConfig=null,this._mini=!1,this._panMode=null,this._targetBarVisible=!1,this._itemClickAction="play",this._thumbnailConfig=null,this._isHoverableDevice=p(),this._throttledSetViewDuringRangeChange=f(this._setViewDuringRangeChange.bind(this),100),this._pointerHeld=null,this._ignoreClick=!1,this.handleThumbnailDataRequest=t=>{const e=t.detail.item,n=this._source?.dataset.get(e)?.media,i=n?this._cameraManager?.getStore().getCameraConfigForMedia(n)??void 0:void 0;t.detail.hass=this._hass??void 0,t.detail.cameraConfig=i,t.detail.cameraManager=this._cameraManager??void 0,t.detail.viewItemManager=this._viewItemManager??void 0,t.detail.media=n,t.detail.viewManagerEpoch=this._viewManagerEpoch??void 0},this._timelineRangeChangedHandler=async t=>{this._removeTargetBar();const e=this._viewManagerEpoch?.manager.getView();if(!this._timeline||!e||this._mini&&!t.byUser)return;await(this._source?.refresh(this._getPrefetchWindow(t),{view:e}));const n=m.getQueryType(e.query);if(!n)return;const i=this._createQuery(n);i&&!this._alreadyHasAcceptableMediaQuery(i)&&await(this._viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({params:{query:i},queryExecutorOptions:{selectResult:{id:this._viewManagerEpoch?.manager.getView()?.queryResults?.getSelectedResult()?.getID()??void 0}},modifiers:[new v(this._getTimelineContext())]}))},this._host=t}setHass(t){this._hass=t}destroyTimeline(){this._timeline?.destroy(),this._timeline=null,this._targetBarVisible=!1,this._pointerHeld=null}setOptions(t){this.destroyTimeline(),t.keys&&t.cameraManager&&t.foldersManager&&t.conditionStateManager&&t.timelineConfig?this._source=new rt(t.cameraManager,t.foldersManager,t.conditionStateManager,t.keys,t.timelineConfig.events_media_type,t.timelineConfig.show_recordings):this._source=null,this._thumbnailConfig!==(t.thumbnailConfig??null)&&(t.thumbnailConfig?this._host.style.setProperty("--advanced-camera-card-thumbnail-size",`${t?.thumbnailConfig.size}px`):this._host.style.removeProperty("--advanced-camera-card-thumbnail-size")),this._timelineConfig!==(t.timelineConfig??null)&&(this._timelineConfig=t?.timelineConfig??null,g(this._host,!!this._timelineConfig?.show_recordings,"recordings"),g(this._host,"ribbon"===this._timelineConfig?.style,"ribbon"),g(this._host,"stack"===this._timelineConfig?.style,"stack")),this._thumbnailConfig=t?.thumbnailConfig??null,this._cameraManager=t?.cameraManager??null,this._viewItemManager=t?.viewItemManager??null,this._timelineConfig=t?.timelineConfig??null,this._mini=t?.mini??!1,g(this._host,this._shouldShowGroups(),"groups")}async setView(t){this._viewManagerEpoch!==t&&(this._viewManagerEpoch=t??null,await this._updateTimelineFromView())}getEffectivePanMode(){return this._panMode??this._timelineConfig?.pan_mode??"pan"}cyclePanMode(){const t=this.getEffectivePanMode();this._panMode="pan"===t?"seek":"seek"===t?"seek-in-media":"seek-in-media"===t?"seek-in-camera":"pan",this._host.requestUpdate()}setTimelineDate(t){this._timeline?.moveTo(t)}shouldSupportSeeking(){return this._mini}setTimelineElement(t){if(!this._source||!this._timelineConfig||this._timeline&&this._timelineElement===(t??null))return!1;if(this.destroyTimeline(),this._timelineElement=t??null,!this._timelineElement)return!1;const e=this._getOptions();return!!e&&(this._shouldShowGroups()?this._timeline=new J.Timeline(this._timelineElement,this._source.dataset,e):this._timeline=new J.Timeline(this._timelineElement,this._source.dataset,this._source.groups,e),this._timeline.on("rangechanged",this._timelineRangeChangedHandler.bind(this)),this._timeline.on("click",this._timelineClickHandler.bind(this)),this._timeline.on("rangechange",this._timelineRangeChangeHandler.bind(this)),this._timeline.on("mouseDown",(t=>{const e=this._timeline?.getWindow();this._pointerHeld={...t,...e&&{window:e}},this._ignoreClick=!1})),this._timeline.on("mouseUp",(()=>{this._pointerHeld=null,this._removeTargetBar()})),!0)}_shouldShowGroups(){return!this._mini||(this._source?.groups.length??0)>1}_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((n=>{const i=this._source?.dataset?.get(n);return"seek-in-camera"!==e||i?.media?.getCameraID(),i&&i.start&&i.end&&t.getTime()>=i.start&&t.getTime()<=i.end})))){this._targetBarVisible?this._timeline?.setCustomTime(t,ot):(this._timeline?.addCustomTime(t,ot),this._targetBarVisible=!0);const e=this._timeline.getWindow(),n=(t.getTime()-e.start.getTime())/(e.end.getTime()-e.start.getTime());this._host.setAttribute("target-bar-marker-direction",n<.25?"right":n>.75?"left":"center"),this._timeline?.setCustomTimeMarker?.(y(t,!0),ot)}else this._removeTargetBar()}_removeTargetBar(){this._host.removeAttribute("target-bar-direction"),this._targetBarVisible&&(this._timeline?.removeCustomTime(ot),this._targetBarVisible=!1)}_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?u(t.start,{seconds:(this._pointerHeld.time.getTime()-this._pointerHeld.window.start.getTime())/1e3}):t.end;this._pointerHeld&&this._setTargetBarAppropriately(e),this._throttledSetViewDuringRangeChange(e,t)}}async _setViewDuringRangeChange(t,e){const n=this._viewManagerEpoch?.manager.getView(),i=n?.queryResults,r=i?.getResults(),o=this.getEffectivePanMode();if(!(r&&i&&this._timeline&&n&&this._hass&&this._cameraManager&&"pan"!==o))return;const s=this.shouldSupportSeeking();let l=null;"seek"===o?l=i.clone().selectBestResult((e=>b(e,t,n?.camera)),{allCameras:!0,main:!0}):"seek-in-camera"===o?l=i.clone().selectBestResult((e=>b(e,t)),{cameraID:n.camera}).promoteCameraSelectionToMainSelection(n.camera):"seek-in-media"===o&&(l=i);const u=this._mini?t>=new Date?"live":"media":n.view,c=l?.getSelectedResult(),h=a.isMedia(c)?c.getCameraID():null;this._viewManagerEpoch?.manager.setViewByParameters({params:{...h&&{camera:h},view:u,queryResults:l},modifiers:[new v({...s&&{mediaViewer:{seek:t}},...this._getTimelineContext({start:e.start,end:e.end})})]})}_getTimelineContext(t){const e=this._viewManagerEpoch?.manager.getView(),n=t??this._timeline?.getWindow();return{timeline:{...e?.context?.timeline,...n&&{window:n}}}}async _timelineClickHandler(t){(this._ignoreClick||t.what&&["item","background","group-label","axis"].includes(t.what))&&w(t.event);const e=this._viewManagerEpoch?.manager.getView(),n=String(t.item),i=this._source?.dataset.get(n)??null;if(this._ignoreClick||!e||!this._viewManagerEpoch||!this._source||!t.what||!i)return;let r="close";if(this._timelineConfig?.show_recordings&&t.time&&["background","axis"].includes(t.what)){const n=this._createQuery("recording");n&&await(this._viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({baseView:e,params:{view:"recording",query:n},queryExecutorOptions:{selectResult:{time:{time:t.time}}}}))}else if(t.item&&"item"===t.what){const o=String(t.group),s={main:!0,...o&&e.isGrid()&&{cameraID:o}},l=e.queryResults?.clone().resetSelectedResult().selectResultIfFound((t=>t.getID()===n),s),u=l?.getSelectedResult(),c=_(this._getTimelineContext(),{...a.isEvent(u)&&u.getEndTime()&&{mediaViewer:{seek:t.time}}});if(l&&l.hasSelectedResult())this._viewManagerEpoch.manager.setViewByParameters({params:{queryResults:l,view:"play"===this._itemClickAction?"media":e.view},modifiers:[new v(c)]});else if(i.query){const t=this._source.dataset.get({filter:t=>i.query===t.query}).map((t=>t.media)).filter(k),e=t.findIndex((t=>t.getID()===n));if(e>=0){const n=new x({results:t,selectedIndex:e});this._viewManagerEpoch?.manager.setViewByParameters({params:{view:"media",query:i.query,queryResults:n},modifiers:[new v(c)]})}}else{const t=m.getQueryType(e.query)??"camera"===this._source.getKeyType()?"event":"folder"===this._source.getKeyType()?"folder":null,i=t?this._createQuery(t):null;i&&await(this._viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({params:{view:"media",query:i},queryExecutorOptions:{selectResult:{id:n},rejectResults:t=>!t.hasResults()},modifiers:[new v(c)]}))}"select"===this._itemClickAction&&(r="open")}S(this._host,`thumbnails:${r}`),this._ignoreClick=!1}_getPrefetchWindow(t){const e=D(t.end,t.start);return{start:l(t.start,{seconds:e}),end:u(t.end,{seconds:e})}}_createQuery(t,e){if(!this._timeline||!this._source)return null;const n=et(this._getPrefetchWindow(e?.window??this._timeline.getWindow()));if("event"===t){const t=this._source.getTimelineEventQueries(n);return t?new T(t):null}if("recording"===t){const t=this._source.getTimelineRecordingQueries(n);return t?new C(t):null}if("folder"===t){const t=this._source.getTimelineFolderQuery();return t?new c(t):null}return null}_alreadyHasAcceptableMediaQuery(t){const e=this._viewManagerEpoch?.manager.getView(),n=e?.query;if(!this._cameraManager||!n)return!1;const i=e?.queryResults?.getResultsTimestamp();return!!n?.getQuery()&&!!i&&(m.isFolderQuery(n)&&n.isEqual(t)||m.isMediaQuery(n)&&m.isMediaQuery(t)&&n.isSupersetOf(t)&&this._cameraManager.areMediaQueriesResultsFresh(i,n.getQuery()))}async _updateTimelineFromView(){const t=this._viewManagerEpoch?.manager.getView();if(!(t&&this._timelineConfig&&this._source&&this._timeline))return;const e=this._timeline.getWindow();let n=e;const i=t.queryResults?.getSelectedResult(),r=i&&a.isMedia(i)?i:null,o=r?.getStartTime()??null,s=r?.getEndTime()??null,l=!!r&&a.isEvent(r),u=r&&o?{start:o,end:s??o}:null,c=t.context?.timeline;if(c&&c.window)n=c.window;else if(u&&!O(u,e)){const t=this._getPerfectWindowFromMediaStartAndEndTime(l,o,s);t&&(n=t)}const h=this._getPrefetchWindow(n);this._pointerHeld||(await(this._source?.refresh(h,{view:t})),this._source.addEventMediaToDataset(t.queryResults?.getResults(),t.query));const d=this._timeline.getSelection(),p=this._getAllSelectedMediaIDsFromView();if(p.some((t=>!d.includes(t)))){if(this._isClustering())for(const t of p)this._source?.rewriteEvent(t);this._timeline?.setSelection(p,{focus:!1,animation:{animation:!1,zoom:!1}})}this._pointerHeld||E(n,e)||this._timeline.setWindow(n.start,n.end);const f=m.getQueryType(t.query);if(!f)return;const g=this._createQuery(f,{window:n});if(!this._mini&&g&&!this._alreadyHasAcceptableMediaQuery(g)){const t=this._viewManagerEpoch?.manager.getView()?.queryResults?.getSelectedResult();await(this._viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({params:{query:g},queryExecutorOptions:{selectResult:{id:t?.getID()??void 0}},modifiers:[new v(this._getTimelineContext(n))]}))}}_getAllSelectedMediaIDsFromView(){const t=this._viewManagerEpoch?.manager.getView();return(t?.queryResults?.getMultipleSelectedResults({main:!0,...t.isGrid()&&{allCameras:!0}})??[]).filter((t=>a.isEvent(t))).map((t=>t.getID())).filter(k)}_isClustering(){return"stack"===this._timelineConfig?.style&&!!this._timelineConfig?.clustering_threshold&&this._timelineConfig.clustering_threshold>0}_getPerfectWindowFromMediaStartAndEndTime(t,e,n){if(t){const t=this._getConfiguredWindowSeconds();if(e&&n){if(n.getTime()-e.getTime()>1e3*t)return{start:l(n,{seconds:t}),end:n};{const i=t-(n.getTime()-e.getTime())/1e3;return{start:l(e,{seconds:i/2}),end:u(n,{seconds:i/2})}}}if(e)return{start:l(e,{seconds:t/2}),end:u(e,{seconds:t/2})}}else if(e&&n)return{start:e,end:n};return null}_getConfiguredWindowSeconds(){return this._timelineConfig?.window_seconds??M.timeline.window_seconds}_getDefaultStartEnd(){const t=new Date;return{start:l(t,{seconds:this._getConfiguredWindowSeconds()}),end:t}}_getDateTimeFormat(){const t=!!this._timelineConfig?.format?.["24h"];return{minorLabels:{minute:t?"HH:mm":"h:mm A",hour:t?"HH:mm":"h:mm A"},majorLabels:{millisecond:t?"HH:mm:ss":"h:mm:ss A",second:t?"D MMMM HH:mm":"D MMMM h:mm A"}}}_getOptions(){if(!this._timelineConfig)return null;const t=this._getDefaultStartEnd(),e="stack"===this._timelineConfig.style;return{cluster:!!this._isClustering()&&{maxItems:this._timelineConfig.clustering_threshold,clusterCriteria:(t,e)=>{const n=this._getAllSelectedMediaIDsFromView(),i=t.media,r=e.media;return"background"!==t.type&&t.type===e.type&&!n.includes(t.id)&&!n.includes(e.id)&&!!i&&!!r&&a.isEvent(i)&&a.isEvent(r)&&i.isGroupableWith(r)}},minHeight:"100%",maxHeight:"100%",zoomMax:864e5,zoomMin:1e3,margin:{item:{vertical:e?10:24}},selectable:!0,stack:e,start:t.start,end:t.end,groupHeightMode:"auto",tooltip:{followMouse:!0,overflowMethod:"cap",template:this._getTooltip.bind(this)},format:this._getDateTimeFormat(),xss:{disabled:!1,filterOptions:{whiteList:{"advanced-camera-card-timeline-thumbnail":["details","item"],div:["title"],span:["style"]}}}}}_getTooltip(t){return this._isHoverableDevice?`\n \n `:""}}class at extends CustomEvent{}let lt=class extends j{constructor(){super(...arguments),this.details=!1}render(){if(!this.item)return R``;const t={item:this.item};return this.dispatchEvent(new at("advanced-camera-card:timeline:thumbnail-data-request",{composed:!0,bubbles:!0,detail:t})),t.hass&&t.cameraManager&&t.cameraConfig&&t.viewItemManager&&t.media&&t.viewManagerEpoch?R` `:R``}};P([A({attribute:!0})],lt.prototype,"item",void 0),P([A({attribute:!0,type:Boolean})],lt.prototype,"details",void 0),lt=P([I("advanced-camera-card-timeline-thumbnail")],lt);let ut=class extends j{constructor(){super(...arguments),this.mini=!1,this._refDatePicker=F(),this._refTimeline=F(),this._controller=new st(this)}render(){if(!this.hass||!this.timelineConfig)return;if(!this.keys)return this.mini?void 0:L({message:Y("error.no_camera_or_media_for_timeline"),icon:"mdi:chart-gantt",type:"info"});const t=this._controller.getEffectivePanMode(),e=Y("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"),n="pan"===t?"mdi:pan-horizontal":"seek"===t?"mdi:filmstrip-box-multiple":"seek-in-media"===t?"mdi:play-box-lock":"mdi:camera-lock";return R`
${this._controller.shouldSupportSeeking()?R` this._controller.cyclePanMode()} aria-label="${e}" title="${e}" > `:""} {t.detail.date&&this._controller.setTimelineDate(t.detail.date)}} >
`}shouldUpdate(t){return!!this.hass&&!!this.cameraManager}willUpdate(t){t.has("hass")&&this._controller.setHass(this.hass??null),["cameraManager","viewItemManager","timelineConfig","mini","thumbnailConfig","keys","conditionStateManager"].some((e=>t.has(e)))&&this._controller.setOptions({cameraManager:this.cameraManager,foldersManager:this.foldersManager,viewItemManager:this.viewItemManager,conditionStateManager:this.conditionStateManager,timelineConfig:this.timelineConfig,mini:this.mini,thumbnailConfig:this.thumbnailConfig,keys:this.keys})}updated(t){super.updated(t),this._controller.setTimelineElement(this._refTimeline.value)?window.requestAnimationFrame((()=>this._controller.setView(this.viewManagerEpoch??null))):this._controller.setView(this.viewManagerEpoch??null)}static get styles(){return H('@charset "UTF-8";\n/* override some bootstrap styles screwing up the timelines css */\n.vis [class*=span] {\n min-height: 0;\n width: auto;\n}\n\n.vis-current-time {\n background-color: #FF7F6E;\n width: 2px;\n z-index: 1;\n pointer-events: none;\n}\n\n.vis-rolling-mode-btn {\n height: 40px;\n width: 40px;\n position: absolute;\n top: 7px;\n right: 20px;\n border-radius: 50%;\n font-size: 28px;\n cursor: pointer;\n opacity: 0.8;\n color: white;\n font-weight: bold;\n text-align: center;\n background: #3876c2;\n}\n\n.vis-rolling-mode-btn:before {\n content: "⛶";\n}\n\n.vis-rolling-mode-btn:hover {\n opacity: 1;\n}\n\n.vis-timeline {\n position: relative;\n border: 1px solid #bfbfbf;\n overflow: hidden;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-loading-screen {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.vis-panel {\n position: absolute;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border: 1px #bfbfbf;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right {\n border-top-style: solid;\n border-bottom-style: solid;\n overflow: hidden;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {\n height: 100%;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll {\n direction: rtl;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll .vis-content {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll .vis-content {\n direction: rtl;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border-left-style: solid;\n border-right-style: solid;\n}\n\n.vis-background {\n overflow: hidden;\n}\n\n.vis-panel > .vis-content {\n position: relative;\n}\n\n.vis-panel .vis-shadow {\n position: absolute;\n width: 100%;\n height: 1px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);\n /* TODO: find a nice way to ensure vis-shadows are drawn on top of items\n z-index: 1;\n */\n}\n\n.vis-panel .vis-shadow.vis-top {\n top: -1px;\n left: 0;\n}\n\n.vis-panel .vis-shadow.vis-bottom {\n bottom: -1px;\n left: 0;\n}\n\n.vis-graph-group0 {\n fill: #4f81bd;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #4f81bd;\n}\n\n.vis-graph-group1 {\n fill: #f79646;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #f79646;\n}\n\n.vis-graph-group2 {\n fill: #8c51cf;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #8c51cf;\n}\n\n.vis-graph-group3 {\n fill: #75c841;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #75c841;\n}\n\n.vis-graph-group4 {\n fill: #ff0100;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #ff0100;\n}\n\n.vis-graph-group5 {\n fill: #37d8e6;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #37d8e6;\n}\n\n.vis-graph-group6 {\n fill: #042662;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #042662;\n}\n\n.vis-graph-group7 {\n fill: #00ff26;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #00ff26;\n}\n\n.vis-graph-group8 {\n fill: #ff00ff;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #ff00ff;\n}\n\n.vis-graph-group9 {\n fill: #8f3938;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #8f3938;\n}\n\n.vis-timeline .vis-fill {\n fill-opacity: 0.1;\n stroke: none;\n}\n\n.vis-timeline .vis-bar {\n fill-opacity: 0.5;\n stroke-width: 1px;\n}\n\n.vis-timeline .vis-point {\n stroke-width: 2px;\n fill-opacity: 1;\n}\n\n.vis-timeline .vis-legend-background {\n stroke-width: 1px;\n fill-opacity: 0.9;\n fill: #ffffff;\n stroke: #c2c2c2;\n}\n\n.vis-timeline .vis-outline {\n stroke-width: 1px;\n fill-opacity: 1;\n fill: #ffffff;\n stroke: #e5e5e5;\n}\n\n.vis-timeline .vis-icon-fill {\n fill-opacity: 0.3;\n stroke: none;\n}\n\n.vis-timeline {\n /*\n -webkit-transition: height .4s ease-in-out;\n transition: height .4s ease-in-out;\n */\n}\n\n.vis-panel {\n /*\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n */\n}\n\n.vis-axis {\n /*\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n */\n}\n\n/* TODO: get animation working nicely\n\n.vis-item {\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n}\n\n.vis-item.line {\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n}\n/**/\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {\n position: absolute;\n width: 100%;\n height: 0;\n border-bottom: 1px solid;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n\n.vis-data-axis .vis-y-axis.vis-major {\n width: 100%;\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-major.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-minor {\n position: absolute;\n width: 100%;\n color: #bebebe;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-minor.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title {\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n bottom: 20px;\n text-align: center;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-measure {\n padding: 0;\n margin: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-left {\n bottom: 0;\n -webkit-transform-origin: left top;\n -moz-transform-origin: left top;\n -ms-transform-origin: left top;\n -o-transform-origin: left top;\n transform-origin: left bottom;\n -webkit-transform: rotate(-90deg);\n -moz-transform: rotate(-90deg);\n -ms-transform: rotate(-90deg);\n -o-transform: rotate(-90deg);\n transform: rotate(-90deg);\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-right {\n bottom: 0;\n -webkit-transform-origin: right bottom;\n -moz-transform-origin: right bottom;\n -ms-transform-origin: right bottom;\n -o-transform-origin: right bottom;\n transform-origin: right bottom;\n -webkit-transform: rotate(90deg);\n -moz-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n -o-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.vis-legend {\n background-color: rgba(247, 252, 255, 0.65);\n padding: 5px;\n border: 1px solid #b3b3b3;\n box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);\n}\n\n.vis-legend-text {\n /*font-size: 10px;*/\n white-space: nowrap;\n display: inline-block;\n}\n\n.vis-itemset {\n position: relative;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-itemset .vis-background,\n.vis-itemset .vis-foreground {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n.vis-axis {\n position: absolute;\n width: 100%;\n height: 0;\n left: 0;\n z-index: 1;\n}\n\n.vis-foreground .vis-group {\n position: relative;\n box-sizing: border-box;\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-foreground .vis-group:last-child {\n border-bottom: none;\n}\n\n.vis-nesting-group {\n cursor: pointer;\n}\n\n.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {\n background: #f5f5f5;\n}\n\n.vis-label.vis-nested-group.vis-group-level-0 {\n background-color: #ffffff;\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-left: 0;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-right: 0;\n}\n\n.vis-label.vis-nested-group.vis-group-level-1 {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-left: 15px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-right: 15px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-2 {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-left: 30px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-right: 30px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-3 {\n background-color: rgba(0, 0, 0, 0.15);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-left: 45px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-right: 45px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-4 {\n background-color: rgba(0, 0, 0, 0.2);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-left: 60px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-right: 60px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-5 {\n background-color: rgba(0, 0, 0, 0.25);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-left: 75px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-right: 75px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-6 {\n background-color: rgba(0, 0, 0, 0.3);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-left: 90px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-right: 90px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-7 {\n background-color: rgba(0, 0, 0, 0.35);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-left: 105px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-right: 105px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-8 {\n background-color: rgba(0, 0, 0, 0.4);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-left: 120px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-right: 120px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-9 {\n background-color: rgba(0, 0, 0, 0.45);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-left: 135px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-right: 135px;\n}\n\n/* default takes over beginning with level-10 (thats why we add .vis-nested-group\n to the selectors above, to have higher specifity than these rules for the defaults) */\n.vis-label.vis-nested-group {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.vis-ltr .vis-label.vis-nested-group .vis-inner {\n padding-left: 150px;\n}\n\n.vis-rtl .vis-label.vis-nested-group .vis-inner {\n padding-right: 150px;\n}\n\n.vis-group-level-unknown-but-gte1 {\n border: 1px solid red;\n}\n\n/* expanded/collapsed indicators */\n.vis-label.vis-nesting-group:before,\n.vis-label.vis-nesting-group:before {\n display: inline-block;\n width: 15px;\n}\n\n.vis-label.vis-nesting-group.expanded:before {\n content: "▼";\n}\n\n.vis-label.vis-nesting-group.collapsed:before {\n content: "▶";\n}\n\n.vis-rtl .vis-label.vis-nesting-group.collapsed:before {\n content: "◀";\n}\n\n/* compensate missing expanded/collapsed indicator, but only at levels > 0 */\n.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-left: 15px;\n}\n\n.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-right: 15px;\n}\n\n.vis-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 10;\n}\n\n.vis-labelset {\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n color: #4d4d4d;\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-labelset .vis-label.draggable {\n cursor: pointer;\n}\n\n.vis-group-is-dragging {\n background: rgba(0, 0, 0, 0.1);\n}\n\n.vis-labelset .vis-label:last-child {\n border-bottom: none;\n}\n\n.vis-labelset .vis-label .vis-inner {\n display: inline-block;\n padding: 5px;\n}\n\n.vis-labelset .vis-label .vis-inner.vis-hidden {\n padding: 0;\n}\n\n.vis-time-axis {\n position: relative;\n overflow: hidden;\n}\n\n.vis-time-axis.vis-foreground {\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.vis-time-axis.vis-background {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.vis-time-axis .vis-text {\n position: absolute;\n color: #4d4d4d;\n padding: 3px;\n overflow: hidden;\n box-sizing: border-box;\n white-space: nowrap;\n}\n\n.vis-time-axis .vis-text.vis-measure {\n position: absolute;\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n visibility: hidden;\n}\n\n.vis-time-axis .vis-grid.vis-vertical {\n position: absolute;\n border-left: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-vertical-rtl {\n position: absolute;\n border-right: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-time-axis .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n\n.vis-custom-time {\n background-color: #6E94FF;\n width: 2px;\n cursor: move;\n z-index: 1;\n}\n\n.vis-custom-time > .vis-custom-time-marker {\n background-color: inherit;\n color: white;\n font-size: 12px;\n white-space: nowrap;\n padding: 3px 5px;\n top: 0px;\n cursor: initial;\n z-index: inherit;\n}\n\n.vis-item {\n position: absolute;\n color: #1A1A1A;\n border-color: #97B0F8;\n border-width: 1px;\n background-color: #D5DDF6;\n display: inline-block;\n z-index: 1;\n /*overflow: hidden;*/\n}\n\n.vis-item.vis-selected {\n border-color: #FFC200;\n background-color: #FFF785;\n /* z-index must be higher than the z-index of custom time bar and current time bar */\n z-index: 2;\n}\n\n.vis-editable.vis-selected {\n cursor: move;\n}\n\n.vis-item.vis-point.vis-selected {\n background-color: #FFF785;\n}\n\n.vis-item.vis-box {\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-point {\n background: none;\n}\n\n.vis-item.vis-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}\n\n.vis-item.vis-range {\n border-style: solid;\n border-radius: 2px;\n box-sizing: border-box;\n}\n\n.vis-item.vis-background {\n border: none;\n background-color: rgba(213, 221, 246, 0.4);\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n}\n\n.vis-item .vis-item-overflow {\n position: relative;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n overflow: hidden;\n}\n\n.vis-item-visible-frame {\n white-space: nowrap;\n}\n\n.vis-item.vis-range .vis-item-content {\n position: relative;\n display: inline-block;\n}\n\n.vis-item.vis-background .vis-item-content {\n position: absolute;\n display: inline-block;\n}\n\n.vis-item.vis-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item .vis-item-content {\n white-space: nowrap;\n box-sizing: border-box;\n padding: 5px;\n}\n\n.vis-item .vis-onUpdateTime-tooltip {\n position: absolute;\n background: #4f81bd;\n color: white;\n width: 200px;\n text-align: center;\n white-space: nowrap;\n padding: 5px;\n border-radius: 1px;\n transition: 0.4s;\n -o-transition: 0.4s;\n -moz-transition: 0.4s;\n -webkit-transition: 0.4s;\n}\n\n.vis-item .vis-delete, .vis-item .vis-delete-rtl {\n position: absolute;\n top: 0px;\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n padding: 0px 5px;\n cursor: pointer;\n -webkit-transition: background 0.2s linear;\n -moz-transition: background 0.2s linear;\n -ms-transition: background 0.2s linear;\n -o-transition: background 0.2s linear;\n transition: background 0.2s linear;\n}\n\n.vis-item .vis-delete {\n right: -24px;\n}\n\n.vis-item .vis-delete-rtl {\n left: -24px;\n}\n\n.vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {\n content: "×"; /* MULTIPLICATION SIGN */\n color: red;\n font-family: arial, sans-serif;\n font-size: 22px;\n font-weight: bold;\n -webkit-transition: color 0.2s linear;\n -moz-transition: color 0.2s linear;\n -ms-transition: color 0.2s linear;\n -o-transition: color 0.2s linear;\n transition: color 0.2s linear;\n}\n\n.vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {\n background: red;\n}\n\n.vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {\n color: white;\n}\n\n.vis-item .vis-drag-center {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0px;\n cursor: move;\n}\n\n.vis-item.vis-range .vis-drag-left {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n left: -4px;\n cursor: w-resize;\n}\n\n.vis-item.vis-range .vis-drag-right {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n right: -4px;\n cursor: e-resize;\n}\n\n.vis-range.vis-item.vis-readonly .vis-drag-left,\n.vis-range.vis-item.vis-readonly .vis-drag-right {\n cursor: auto;\n}\n\n.vis-item.vis-cluster {\n vertical-align: center;\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-cluster-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item.vis-cluster-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}\n\n.vis .overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n /* Must be displayed above for example selected Timeline items */\n z-index: 10;\n}\n\n.vis-active {\n box-shadow: 0 0 10px #86d5f8;\n}\n\ndiv.vis-configuration {\n position: relative;\n display: block;\n float: left;\n font-size: 12px;\n}\n\ndiv.vis-configuration-wrapper {\n display: block;\n width: 700px;\n}\n\ndiv.vis-configuration-wrapper::after {\n clear: both;\n content: "";\n display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container {\n display: block;\n width: 495px;\n background-color: #ffffff;\n border: 2px solid #f7f8fa;\n border-radius: 4px;\n margin-top: 20px;\n left: 10px;\n padding-left: 5px;\n}\n\ndiv.vis-configuration.vis-config-button {\n display: block;\n width: 495px;\n height: 25px;\n vertical-align: middle;\n line-height: 25px;\n background-color: #f7f8fa;\n border: 2px solid #ceced0;\n border-radius: 4px;\n margin-top: 20px;\n left: 10px;\n padding-left: 5px;\n cursor: pointer;\n margin-bottom: 30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover {\n background-color: #4588e6;\n border: 2px solid #214373;\n color: #ffffff;\n}\n\ndiv.vis-configuration.vis-config-item {\n display: block;\n float: left;\n width: 495px;\n height: 25px;\n vertical-align: middle;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-item.vis-config-s2 {\n left: 10px;\n background-color: #f7f8fa;\n padding-left: 5px;\n border-radius: 3px;\n}\n\ndiv.vis-configuration.vis-config-item.vis-config-s3 {\n left: 20px;\n background-color: #e4e9f0;\n padding-left: 5px;\n border-radius: 3px;\n}\n\ndiv.vis-configuration.vis-config-item.vis-config-s4 {\n left: 30px;\n background-color: #cfd8e6;\n padding-left: 5px;\n border-radius: 3px;\n}\n\ndiv.vis-configuration.vis-config-header {\n font-size: 18px;\n font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label {\n width: 120px;\n height: 25px;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3 {\n width: 110px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s4 {\n width: 100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock {\n top: 1px;\n width: 30px;\n height: 19px;\n border: 1px solid #444444;\n border-radius: 2px;\n padding: 0px;\n margin: 0px;\n cursor: pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n left: -5px;\n}\n\ninput.vis-configuration.vis-config-rangeinput {\n position: relative;\n top: -5px;\n width: 60px;\n /*height:13px;*/\n padding: 1px;\n margin: 0;\n pointer-events: none;\n}\n\ninput.vis-configuration.vis-config-range {\n /*removes default webkit styles*/\n -webkit-appearance: none;\n /*fix for FF unable to apply focus style bug */\n border: 0px solid white;\n background-color: rgba(0, 0, 0, 0);\n /*required for proper track sizing in FF*/\n width: 300px;\n height: 20px;\n}\n\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n width: 300px;\n height: 5px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#dedede", endColorstr="#c8c8c8",GradientType=0 ); /* IE6-9 */\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\n\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #14334b;\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: #3876c2; /* Old browsers */\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #3876c2), color-stop(100%, #385380)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #3876c2 0%, #385380 100%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #3876c2 0%, #385380 100%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */\n background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#3876c2", endColorstr="#385380",GradientType=0 ); /* IE6-9 */\n box-shadow: #111927 0px 0px 1px 0px;\n margin-top: -7px;\n}\n\ninput.vis-configuration.vis-config-range:focus {\n outline: none;\n}\n\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n background: #9d9d9d; /* Old browsers */\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9d9d9d), color-stop(99%, #c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#9d9d9d", endColorstr="#c8c8c8",GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n width: 300px;\n height: 10px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#dedede", endColorstr="#c8c8c8",GradientType=0 ); /* IE6-9 */\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring {\n outline: 1px solid white;\n outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n width: 300px;\n height: 5px;\n /*remove bg colour from the track, we\'ll use ms-fill-lower and ms-fill-upper instead */\n background: transparent;\n /*leave room for the larger thumb to overflow with a transparent border */\n border-color: transparent;\n border-width: 6px 0;\n /*remove default tick marks*/\n color: transparent;\n}\n\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n background: #777;\n border-radius: 10px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n background: #ddd;\n border-radius: 10px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\n\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n background: #888;\n}\n\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n background: #ccc;\n}\n\n.vis-configuration-popup {\n position: absolute;\n background: rgba(57, 76, 89, 0.85);\n border: 2px solid #f2faff;\n line-height: 30px;\n height: 30px;\n width: 150px;\n text-align: center;\n color: #ffffff;\n font-size: 14px;\n border-radius: 4px;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n}\n\n.vis-configuration-popup:after, .vis-configuration-popup:before {\n left: 100%;\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n border-color: rgba(136, 183, 213, 0);\n border-left-color: rgba(57, 76, 89, 0.85);\n border-width: 8px;\n margin-top: -8px;\n}\n\n.vis-configuration-popup:before {\n border-color: rgba(194, 225, 245, 0);\n border-left-color: #f2faff;\n border-width: 12px;\n margin-top: -12px;\n}\n\ndiv.vis-tooltip {\n position: absolute;\n visibility: hidden;\n padding: 5px;\n white-space: nowrap;\n font-family: verdana;\n font-size: 14px;\n color: #000000;\n background-color: #f5f4ed;\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n border: 1px solid #808074;\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n pointer-events: none;\n z-index: 5;\n}\n\nside-drawer {\n background-color: var(--card-background-color);\n}\n\ndiv.control-surround {\n position: absolute;\n bottom: 50%;\n transform: translateY(50%);\n padding-top: 20px;\n padding-bottom: 20px;\n}\n\n:host([location=left]) div.control-surround {\n padding-right: 12px;\n left: 100%;\n}\n\n:host([location=right]) div.control-surround {\n padding-left: 12px;\n right: 100%;\n}\n\n:host([empty]),\n:host([empty]) > * {\n visibility: hidden;\n}\n\n:host(:not([empty])),\n:host(:not([empty])) > * {\n visibility: visible;\n}\n\nadvanced-camera-card-icon.control {\n color: var(--advanced-camera-card-button-color);\n background-color: var(--advanced-camera-card-button-background);\n pointer-events: all;\n --mdc-icon-size: 20px;\n padding-top: 20px;\n padding-bottom: 20px;\n transition: opacity 0.5s ease;\n}\n\n:host([location=left]) advanced-camera-card-icon.control {\n border-top-right-radius: 20px;\n border-bottom-right-radius: 20px;\n}\n\n:host([location=right]) advanced-camera-card-icon.control {\n border-top-left-radius: 20px;\n border-bottom-left-radius: 20px;\n}\n\n:host {\n --advanced-camera-card-thumbnail-size-max: 300px;\n --advanced-camera-card-thumbnail-details-width: calc(\n var(--advanced-camera-card-thumbnail-size) + 200px\n );\n}\n\n:host {\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n background-color: var(--advanced-camera-card-timeline-background);\n}\n\n:host(:not([mini])) {\n height: 100%;\n}\n\nadvanced-camera-card-thumbnail {\n height: var(--advanced-camera-card-thumbnail-size);\n width: var(--advanced-camera-card-thumbnail-size);\n}\n\nadvanced-camera-card-thumbnail[details] {\n width: var(--advanced-camera-card-thumbnail-details-width);\n}\n\ndiv.timeline {\n flex: 1;\n}\n\n.vis-text {\n color: var(--advanced-camera-card-timeline-text-color) !important;\n}\n\n.vis-timeline {\n border: none;\n}\n\n.vis-labelset .vis-label {\n color: var(--advanced-camera-card-timeline-text-color);\n}\n\n:host([ribbon]:not([groups])) .vis-item:not(.vis-background) {\n margin-top: 7px;\n}\n\n:host([ribbon]) .vis-item:not(.vis-background) {\n height: 6px;\n}\n\n.vis-item {\n border-color: var(--advanced-camera-card-timeline-item-color);\n background: none;\n color: var(--advanced-camera-card-timeline-text-color);\n background-color: var(--advanced-camera-card-timeline-item-color);\n transition: background-color ease-in-out 1s, border-color ease-in-out 1s, box-shadow ease-in-out 1s;\n}\n\n.vis-item.vis-selected {\n border-color: var(--advanced-camera-card-active-color);\n background-color: var(--advanced-camera-card-active-color);\n box-shadow: var(--advanced-camera-card-box-shadow-override, 0px 0px 5px 1px var(--advanced-camera-card-active-color));\n}\n\n.vis-item.vis-background {\n background-color: var(--advanced-camera-card-timeline-background-item-color);\n}\n\n:host(:not([groups])) .vis-item.vis-background {\n min-height: 100%;\n}\n\n.vis-item:not(.vis-background) {\n cursor: pointer;\n}\n\n:host([recordings]) .vis-item.vis-background,\n:host([recordings]) .vis-time-axis {\n cursor: crosshair;\n}\n\n.vis-item:active {\n cursor: unset;\n}\n\n.vis-item.vis-box {\n border: none;\n}\n\n.vis-item .vis-item-content {\n padding: 0px;\n}\n\n.vis-item.vis-cluster {\n border-style: dotted;\n color: var(--advanced-camera-card-timeline-text-color);\n background-color: var(--advanced-camera-card-timeline-background);\n box-shadow: var(--advanced-camera-card-box-shadow-override, 0px 0px 5px 1px var(--advanced-camera-card-timeline-item-color));\n}\n\n.vis-item.vis-range {\n border-radius: var(--advanced-camera-card-border-radius-final);\n}\n\n.vis-time-axis .vis-grid.vis-minor {\n border-color: var(--advanced-camera-card-timeline-divider-color);\n}\n\n.vis-text.vis-minor,\n.vis-label {\n transition: background-color 0.5s ease-out;\n}\n\n:host([recordings]) .vis-text.vis-minor:hover {\n background-color: color-mix(in oklab, var(--advanced-camera-card-timeline-text-color), transparent 80%);\n}\n\n.vis-time-axis .vis-grid.vis-major {\n border-color: var(--advanced-camera-card-timeline-divider-color);\n}\n\n.vis-label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\ndiv.vis-tooltip {\n padding: 0px;\n background-color: unset;\n border: none;\n font-family: unset;\n z-index: 30;\n}\n\n.target_bar {\n background-color: var(--advanced-camera-card-timeline-target-bar-color);\n width: 2px;\n z-index: 20;\n pointer-events: none;\n}\n\n.target_bar .vis-custom-time-marker {\n background-color: var(--advanced-camera-card-timeline-background);\n color: var(--advanced-camera-card-timeline-text-color);\n bottom: 0px;\n top: unset;\n}\n\n:host([target-bar-marker-direction=right]) .target_bar .vis-custom-time-marker {\n left: 2px;\n}\n\n:host([target-bar-marker-direction=left]) .target_bar .vis-custom-time-marker {\n right: 2px;\n}\n\n:host([target-bar-marker-direction=center]) .target_bar .vis-custom-time-marker {\n left: 0px;\n transform: translateX(-50%);\n}\n\n.timeline-tools {\n display: inline-flex;\n position: absolute;\n right: 0px;\n bottom: 0px;\n color: var(--advanced-camera-card-timeline-tool-color);\n z-index: 10;\n}\n\n.timeline-tools * {\n margin: 2px 5px;\n cursor: pointer;\n}\n\n.timeline-tools *:last-child {\n margin-right: 10px;\n}')}};P([A({attribute:!1})],ut.prototype,"hass",void 0),P([A({attribute:!1})],ut.prototype,"viewManagerEpoch",void 0),P([A({attribute:!1,hasChanged:N})],ut.prototype,"timelineConfig",void 0),P([A({attribute:!1})],ut.prototype,"thumbnailConfig",void 0),P([A({attribute:!0,type:Boolean,reflect:!0})],ut.prototype,"mini",void 0),P([A({attribute:!1,hasChanged:N})],ut.prototype,"keys",void 0),P([A({attribute:!1})],ut.prototype,"cameraManager",void 0),P([A({attribute:!1})],ut.prototype,"foldersManager",void 0),P([A({attribute:!1})],ut.prototype,"conditionStateManager",void 0),P([A({attribute:!1})],ut.prototype,"viewItemManager",void 0),P([A({attribute:!1})],ut.prototype,"cardWideConfig",void 0),P([A({attribute:!1})],ut.prototype,"itemClickAction",void 0),ut=P([I("advanced-camera-card-timeline-core")],ut);export{ut as AdvancedCameraCardTimelineCore,lt as AdvancedCameraCardTimelineThumbnail};