/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ var XM=Object.defineProperty;var RV=Object.getOwnPropertyDescriptor;var NV=Object.getOwnPropertyNames;var LV=Object.prototype.hasOwnProperty;var BF=(e,a)=>{for(var t in a)XM(e,t,{get:a[t],enumerable:!0})},FV=(e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let h of NV(a))!LV.call(e,h)&&h!==t&&XM(e,h,{get:()=>a[h],enumerable:!(n=RV(a,h))||n.enumerable});return e};var jV=e=>FV(XM({},"__esModule",{value:!0}),e);var uwe={};BF(uwe,{default:()=>gE});module.exports=jV(uwe);var rr=require("obsidian");var HF=require("obsidian"),YT=class extends HF.Modal{constructor(t,n){super(t);this.text=n}onOpen(){this.setText(this.text)}onClose(){let{contentEl:t}=this;t.empty()}setText(t){let{contentEl:n}=this;this.text=t,n.setText(t)}};var YV=["ar","fa","he","ks","ku","ur","yi"];var BV=["af","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","eo","es","et","eu","fi","fr","ga","gl","gu","hi","hr","hu","hy","id","is","it","ja","jv","ka","kk","km","kn","ko","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","my","nb","ne","nl","nn","pl","pt","ro","ru","si","sk","sl","so","sq","sr","su","sv","sw","ta","te","th","tr","uk","vi","xh","zh-cn","zh-tw","zu"],WF=[...BV,...YV].sort();var ZM="en",GF="gpt-4o-mini",BT="drpepper";var OL={};BF(OL,{ChronosTimeline:()=>kp,attachChronosStyles:()=>vW,default:()=>DL,parseChronos:()=>fW,parser:()=>lW,renderChronos:()=>owe,ui:()=>uW,utils:()=>dW});var HV=Object.create,vN=Object.defineProperty,WV=Object.getOwnPropertyDescriptor,T6=Object.getOwnPropertyNames,GV=Object.getPrototypeOf,zV=Object.prototype.hasOwnProperty,UV=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(a,t)=>(typeof require!="undefined"?require:a)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),pN=(e,a)=>function(){return a||(0,e[T6(e)[0]])((a={exports:{}}).exports,a),a.exports},mN=(e,a)=>{for(var t in a)vN(e,t,{get:a[t],enumerable:!0})},VV=(e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let h of T6(a))!zV.call(e,h)&&h!==t&&vN(e,h,{get:()=>a[h],enumerable:!(n=WV(a,h))||n.enumerable});return e},qV=(e,a,t)=>(t=e!=null?HV(GV(e)):{},VV(!e||!e.__esModule?vN(t,"default",{value:e,enumerable:!0}):t,e)),KV=pN({"node_modules/moment/moment.js"(e,a){(function(t,n){typeof e=="object"&&typeof a!="undefined"?a.exports=n():typeof define=="function"&&define.amd?define(n):t.moment=n()})(e,function(){var t;function n(){return t.apply(null,arguments)}function h(l){t=l}function d(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function p(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function y(l,v){return Object.prototype.hasOwnProperty.call(l,v)}function b(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var v;for(v in l)if(y(l,v))return!1;return!0}function w(l){return l===void 0}function $(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function A(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function R(l,v){var _=[],T,P=l.length;for(T=0;T>>0,T;for(T=0;T<_;T++)if(T in v&&l.call(this,v[T],T,v))return!0;return!1};function ve(l){var v=null,_=!1,T=l._d&&!isNaN(l._d.getTime());if(T&&(v=G(l),_=ae.call(v.parsedDateParts,function(P){return P!=null}),T=v.overflow<0&&!v.empty&&!v.invalidEra&&!v.invalidMonth&&!v.invalidWeekday&&!v.weekdayMismatch&&!v.nullInput&&!v.invalidFormat&&!v.userInvalidated&&(!v.meridiem||v.meridiem&&_),l._strict&&(T=T&&v.charsLeftOver===0&&v.unusedTokens.length===0&&v.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(l))l._isValid=T;else return T;return l._isValid}function ye(l){var v=V(NaN);return l!=null?Y(G(v),l):G(v).userInvalidated=!0,v}var pe=n.momentProperties=[],Se=!1;function ze(l,v){var _,T,P,j=pe.length;if(w(v._isAMomentObject)||(l._isAMomentObject=v._isAMomentObject),w(v._i)||(l._i=v._i),w(v._f)||(l._f=v._f),w(v._l)||(l._l=v._l),w(v._strict)||(l._strict=v._strict),w(v._tzm)||(l._tzm=v._tzm),w(v._isUTC)||(l._isUTC=v._isUTC),w(v._offset)||(l._offset=v._offset),w(v._pf)||(l._pf=G(v)),w(v._locale)||(l._locale=v._locale),j>0)for(_=0;_=0;return(j?_?"+":"":"-")+Math.pow(10,Math.max(0,P)).toString().substr(1)+T}var Ct=/(\[[^\[]*\])|(\\)?([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,ui=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,sn={},$t={};function ce(l,v,_,T){var P=T;typeof T=="string"&&(P=function(){return this[T]()}),l&&($t[l]=P),v&&($t[v[0]]=function(){return ht(P.apply(this,arguments),v[1],v[2])}),_&&($t[_]=function(){return this.localeData().ordinal(P.apply(this,arguments),l)})}function Gn(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function En(l){var v=l.match(Ct),_,T;for(_=0,T=v.length;_=0&&ui.test(l);)l=l.replace(ui,T),ui.lastIndex=0,_-=1;return l}var ge={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 be(l){var v=this._longDateFormat[l],_=this._longDateFormat[l.toUpperCase()];return v||!_?v:(this._longDateFormat[l]=_.match(Ct).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[l])}var je="Invalid date";function Qe(){return this._invalidDate}var rt="%d",Ut=/\d{1,2}/;function Bt(l){return this._ordinal.replace("%d",l)}var ii={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 zn(l,v,_,T){var P=this._relativeTime[_];return Ye(P)?P(l,v,_,T):P.replace(/%d/i,l)}function sr(l,v){var _=this._relativeTime[l>0?"future":"past"];return Ye(_)?_(v):_.replace(/%s/i,v)}var Zi={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 nr(l){return typeof l=="string"?Zi[l]||Zi[l.toLowerCase()]:void 0}function Ft(l){var v={},_,T;for(T in l)y(l,T)&&(_=nr(T),_&&(v[_]=l[T]));return v}var Lt={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 el(l){var v=[],_;for(_ in l)y(l,_)&&v.push({unit:_,priority:Lt[_]});return v.sort(function(T,P){return T.priority-P.priority}),v}var ts=/\d/,ct=/\d\d/,Ht=/\d{3}/,Pr=/\d{4}/,Pt=/[+-]?\d{6}/,Ve=/\d\d?/,rs=/\d\d\d\d?/,Er=/\d\d\d\d\d\d?/,da=/\d{1,3}/,Vt=/\d{1,4}/,hi=/[+-]?\d{1,6}/,Li=/\d+/,yi=/[+-]?\d+/,nu=/Z|[+-]\d\d:?\d\d/gi,fa=/Z|[+-]\d\d(?::?\d\d)?/gi,Yh=/[+-]?\d+(\.\d{1,3})?/,ci=/[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,lr=/^[1-9]\d?/,va=/^([1-9]\d|\d)/,Ji;Ji={};function ue(l,v,_){Ji[l]=Ye(v)?v:function(T,P){return T&&_?_:v}}function Sd(l,v){return y(Ji,l)?Ji[l](v._strict,v._locale):new RegExp(is(l))}function is(l){return Hr(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(v,_,T,P,j){return _||T||P||j}))}function Hr(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Et(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function Oe(l){var v=+l,_=0;return v!==0&&isFinite(v)&&(_=Et(v)),_}var Co={};function Ue(l,v){var _,T=v,P;for(typeof l=="string"&&(l=[l]),$(v)&&(T=function(j,q){q[v]=Oe(j)}),P=l.length,_=0;_68?1900:2e3)};var qa=Mr("FullYear",!0);function tl(){return Va(this.year())}function Mr(l,v){return function(_){return _!=null?(au(this,l,_),n.updateOffset(this,v),this):un(this,l)}}function un(l,v){if(!l.isValid())return NaN;var _=l._d,T=l._isUTC;switch(v){case"Milliseconds":return T?_.getUTCMilliseconds():_.getMilliseconds();case"Seconds":return T?_.getUTCSeconds():_.getSeconds();case"Minutes":return T?_.getUTCMinutes():_.getMinutes();case"Hours":return T?_.getUTCHours():_.getHours();case"Date":return T?_.getUTCDate():_.getDate();case"Day":return T?_.getUTCDay():_.getDay();case"Month":return T?_.getUTCMonth():_.getMonth();case"FullYear":return T?_.getUTCFullYear():_.getFullYear();default:return NaN}}function au(l,v,_){var T,P,j,q,le;if(!(!l.isValid()||isNaN(_))){switch(T=l._d,P=l._isUTC,v){case"Milliseconds":return void(P?T.setUTCMilliseconds(_):T.setMilliseconds(_));case"Seconds":return void(P?T.setUTCSeconds(_):T.setSeconds(_));case"Minutes":return void(P?T.setUTCMinutes(_):T.setMinutes(_));case"Hours":return void(P?T.setUTCHours(_):T.setHours(_));case"Date":return void(P?T.setUTCDate(_):T.setDate(_));case"FullYear":break;default:return}j=_,q=l.month(),le=l.date(),le=le===29&&q===1&&!Va(j)?28:le,P?T.setUTCFullYear(j,q,le):T.setFullYear(j,q,le)}}function wi(l){return l=nr(l),Ye(this[l])?this[l]():this}function Bh(l,v){if(typeof l=="object"){l=Ft(l);var _=el(l),T,P=_.length;for(T=0;T=0?(le=new Date(l+400,v,_,T,P,j,q),isFinite(le.getFullYear())&&le.setFullYear(l)):le=new Date(l,v,_,T,P,j,q),le}function Un(l){var v,_;return l<100&&l>=0?(_=Array.prototype.slice.call(arguments),_[0]=l+400,v=new Date(Date.UTC.apply(null,_)),isFinite(v.getUTCFullYear())&&v.setUTCFullYear(l)):v=new Date(Date.UTC.apply(null,arguments)),v}function Ka(l,v,_){var T=7+v-_,P=(7+Un(l,0,T).getUTCDay()-v)%7;return-P+T-1}function lu(l,v,_,T,P){var j=(7+_-T)%7,q=Ka(l,T,P),le=1+7*(v-1)+j+q,me,Pe;return le<=0?(me=l-1,Pe=Dn(me)+le):le>Dn(l)?(me=l+1,Pe=le-Dn(l)):(me=l,Pe=le),{year:me,dayOfYear:Pe}}function Qi(l,v,_){var T=Ka(l.year(),v,_),P=Math.floor((l.dayOfYear()-T-1)/7)+1,j,q;return P<1?(q=l.year()-1,j=P+Wr(q,v,_)):P>Wr(l.year(),v,_)?(j=P-Wr(l.year(),v,_),q=l.year()+1):(q=l.year(),j=P),{week:j,year:q}}function Wr(l,v,_){var T=Ka(l,v,_),P=Ka(l+1,v,_);return(Dn(l)-T+P)/7}ce("w",["ww",2],"wo","week"),ce("W",["WW",2],"Wo","isoWeek"),ue("w",Ve,lr),ue("ww",Ve,ct),ue("W",Ve,lr),ue("WW",Ve,ct),di(["w","ww","W","WW"],function(l,v,_,T){v[T.substr(0,1)]=Oe(l)});function Id(l){return Qi(l,this._week.dow,this._week.doy).week}var os={dow:0,doy:6};function Gh(){return this._week.dow}function uu(){return this._week.doy}function Md(l){var v=this.localeData().week(this);return l==null?v:this.add((l-v)*7,"d")}function Xa(l){var v=Qi(this,1,4).week;return l==null?v:this.add((l-v)*7,"d")}ce("d",0,"do","day"),ce("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),ce("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),ce("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),ce("e",0,0,"weekday"),ce("E",0,0,"isoWeekday"),ue("d",Ve),ue("e",Ve),ue("E",Ve),ue("dd",function(l,v){return v.weekdaysMinRegex(l)}),ue("ddd",function(l,v){return v.weekdaysShortRegex(l)}),ue("dddd",function(l,v){return v.weekdaysRegex(l)}),di(["dd","ddd","dddd"],function(l,v,_,T){var P=_._locale.weekdaysParse(l,T,_._strict);P!=null?v.d=P:G(_).invalidWeekday=l}),di(["d","e","E"],function(l,v,_,T){v[T]=Oe(l)});function hu(l,v){return typeof l!="string"?l:isNaN(l)?(l=v.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function zh(l,v){return typeof l=="string"?v.weekdaysParse(l)%7||7:isNaN(l)?null:l}function Wt(l,v){return l.slice(v,7).concat(l.slice(0,v))}var Ad="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),il="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Uh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rd=ci,Nd=ci,Ld=ci;function Fd(l,v){var _=d(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(v)?"format":"standalone"];return l===!0?Wt(_,this._week.dow):l?_[l.day()]:_}function Vh(l){return l===!0?Wt(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function jd(l){return l===!0?Wt(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function Yd(l,v,_){var T,P,j,q=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)j=V([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin(j,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort(j,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays(j,"").toLocaleLowerCase();return _?v==="dddd"?(P=Ge.call(this._weekdaysParse,q),P!==-1?P:null):v==="ddd"?(P=Ge.call(this._shortWeekdaysParse,q),P!==-1?P:null):(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null):v==="dddd"?(P=Ge.call(this._weekdaysParse,q),P!==-1||(P=Ge.call(this._shortWeekdaysParse,q),P!==-1)?P:(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null)):v==="ddd"?(P=Ge.call(this._shortWeekdaysParse,q),P!==-1||(P=Ge.call(this._weekdaysParse,q),P!==-1)?P:(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null)):(P=Ge.call(this._minWeekdaysParse,q),P!==-1||(P=Ge.call(this._weekdaysParse,q),P!==-1)?P:(P=Ge.call(this._shortWeekdaysParse,q),P!==-1?P:null))}function Bd(l,v,_){var T,P,j;if(this._weekdaysParseExact)return Yd.call(this,l,v,_);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(P=V([2e3,1]).day(T),_&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(P,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(P,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(P,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||(j="^"+this.weekdays(P,"")+"|^"+this.weekdaysShort(P,"")+"|^"+this.weekdaysMin(P,""),this._weekdaysParse[T]=new RegExp(j.replace(".",""),"i")),_&&v==="dddd"&&this._fullWeekdaysParse[T].test(l))return T;if(_&&v==="ddd"&&this._shortWeekdaysParse[T].test(l))return T;if(_&&v==="dd"&&this._minWeekdaysParse[T].test(l))return T;if(!_&&this._weekdaysParse[T].test(l))return T}}function ma(l){if(!this.isValid())return l!=null?this:NaN;var v=un(this,"Day");return l!=null?(l=hu(l,this.localeData()),this.add(l-v,"d")):v}function Hd(l){if(!this.isValid())return l!=null?this:NaN;var v=(this.day()+7-this.localeData()._week.dow)%7;return l==null?v:this.add(l-v,"d")}function qh(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var v=zh(l,this.localeData());return this.day(this.day()%7?v:v-7)}else return this.day()||7}function cu(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,"_weekdaysRegex")||(this._weekdaysRegex=Rd),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wd(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nd),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function du(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ld),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ss(){function l(It,Vr){return Vr.length-It.length}var v=[],_=[],T=[],P=[],j,q,le,me,Pe;for(j=0;j<7;j++)q=V([2e3,1]).day(j),le=Hr(this.weekdaysMin(q,"")),me=Hr(this.weekdaysShort(q,"")),Pe=Hr(this.weekdays(q,"")),v.push(le),_.push(me),T.push(Pe),P.push(le),P.push(me),P.push(Pe);v.sort(l),_.sort(l),T.sort(l),P.sort(l),this._weekdaysRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+v.join("|")+")","i")}function ls(){return this.hours()%12||12}function Gd(){return this.hours()||24}ce("H",["HH",2],0,"hour"),ce("h",["hh",2],0,ls),ce("k",["kk",2],0,Gd),ce("hmm",0,0,function(){return""+ls.apply(this)+ht(this.minutes(),2)}),ce("hmmss",0,0,function(){return""+ls.apply(this)+ht(this.minutes(),2)+ht(this.seconds(),2)}),ce("Hmm",0,0,function(){return""+this.hours()+ht(this.minutes(),2)}),ce("Hmmss",0,0,function(){return""+this.hours()+ht(this.minutes(),2)+ht(this.seconds(),2)});function ga(l,v){ce(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),v)})}ga("a",!0),ga("A",!1);function fi(l,v){return v._meridiemParse}ue("a",fi),ue("A",fi),ue("H",Ve,va),ue("h",Ve,lr),ue("k",Ve,lr),ue("HH",Ve,ct),ue("hh",Ve,ct),ue("kk",Ve,ct),ue("hmm",rs),ue("hmmss",Er),ue("Hmm",rs),ue("Hmmss",Er),Ue(["H","HH"],ut),Ue(["k","kk"],function(l,v,_){var T=Oe(l);v[ut]=T===24?0:T}),Ue(["a","A"],function(l,v,_){_._isPm=_._locale.isPM(l),_._meridiem=l}),Ue(["h","hh"],function(l,v,_){v[ut]=Oe(l),G(_).bigHour=!0}),Ue("hmm",function(l,v,_){var T=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T)),G(_).bigHour=!0}),Ue("hmmss",function(l,v,_){var T=l.length-4,P=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T,2)),v[Ir]=Oe(l.substr(P)),G(_).bigHour=!0}),Ue("Hmm",function(l,v,_){var T=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T))}),Ue("Hmmss",function(l,v,_){var T=l.length-4,P=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T,2)),v[Ir]=Oe(l.substr(P))});function Kh(l){return(l+"").toLowerCase().charAt(0)==="p"}var zd=/[ap]\.?m?\.?/i,Ud=Mr("Hours",!0);function Vd(l,v,_){return l>11?_?"pm":"PM":_?"am":"AM"}var Fi={calendar:kt,longDateFormat:ge,invalidDate:je,ordinal:rt,dayOfMonthOrdinalParse:Ut,relativeTime:ii,months:Ed,monthsShort:ou,week:os,weekdays:Ad,weekdaysMin:Uh,weekdaysShort:il,meridiemParse:zd},nt={},Vn={},On;function nl(l,v){var _,T=Math.min(l.length,v.length);for(_=0;_0;){if(P=Ja(j.slice(0,_).join("-")),P)return P;if(T&&T.length>=_&&nl(j,T)>=_-1)break;_--}v++}return On}function Za(l){return!!(l&&l.match("^[^/\\\\]*$"))}function Ja(l){var v=null,_;if(nt[l]===void 0&&typeof a!="undefined"&&a&&a.exports&&Za(l))try{v=On._abbr,_=UV,_("./locale/"+l),Gr(v)}catch(T){nt[l]=null}return nt[l]}function Gr(l,v){var _;return l&&(w(v)?_=Rr(l):_=Qa(l,v),_?On=_:typeof console!="undefined"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),On._abbr}function Qa(l,v){if(v!==null){var _,T=Fi;if(v.abbr=l,nt[l]!=null)Fe("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."),T=nt[l]._config;else if(v.parentLocale!=null)if(nt[v.parentLocale]!=null)T=nt[v.parentLocale]._config;else if(_=Ja(v.parentLocale),_!=null)T=_._config;else return Vn[v.parentLocale]||(Vn[v.parentLocale]=[]),Vn[v.parentLocale].push({name:l,config:v}),null;return nt[l]=new Kt(gt(T,v)),Vn[l]&&Vn[l].forEach(function(P){Qa(P.name,P.config)}),Gr(l),nt[l]}else return delete nt[l],null}function fu(l,v){if(v!=null){var _,T,P=Fi;nt[l]!=null&&nt[l].parentLocale!=null?nt[l].set(gt(nt[l]._config,v)):(T=Ja(l),T!=null&&(P=T._config),v=gt(P,v),T==null&&(v.abbr=l),_=new Kt(v),_.parentLocale=nt[l],nt[l]=_),Gr(l)}else nt[l]!=null&&(nt[l].parentLocale!=null?(nt[l]=nt[l].parentLocale,l===Gr()&&Gr(l)):nt[l]!=null&&delete nt[l]);return nt[l]}function Rr(l){var v;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return On;if(!d(l)){if(v=Ja(l),v)return v;l=[l]}return qd(l)}function Xh(){return lt(nt)}function $n(l){var v,_=l._a;return _&&G(l).overflow===-2&&(v=_[ur]<0||_[ur]>11?ur:_[wr]<1||_[wr]>ns(_[Dt],_[ur])?wr:_[ut]<0||_[ut]>24||_[ut]===24&&(_[pr]!==0||_[Ir]!==0||_[bi]!==0)?ut:_[pr]<0||_[pr]>59?pr:_[Ir]<0||_[Ir]>59?Ir:_[bi]<0||_[bi]>999?bi:-1,G(l)._overflowDayOfYear&&(vwr)&&(v=wr),G(l)._overflowWeeks&&v===-1&&(v=_i),G(l)._overflowWeekday&&v===-1&&(v=Td),G(l).overflow=v),l}var ol=/^\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)?)?$/,Kd=/^\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)?)?$/,ya=/Z|[+-]\d\d(?::?\d\d)?/,kr=[["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]],us=[["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/]],Xd=/^\/?Date\((-?\d+)/i,eo=/^(?:(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}))$/,Zd={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ba(l){var v,_,T=l._i,P=ol.exec(T)||Kd.exec(T),j,q,le,me,Pe=kr.length,It=us.length;if(P){for(G(l).iso=!0,v=0,_=Pe;v<_;v++)if(kr[v][1].exec(P[1])){q=kr[v][0],j=kr[v][2]!==!1;break}if(q==null){l._isValid=!1;return}if(P[3]){for(v=0,_=It;v<_;v++)if(us[v][1].exec(P[3])){le=(P[2]||" ")+us[v][0];break}if(le==null){l._isValid=!1;return}}if(!j&&le!=null){l._isValid=!1;return}if(P[4])if(ya.exec(P[4]))me="Z";else{l._isValid=!1;return}l._f=q+(le||"")+(me||""),to(l)}else l._isValid=!1}function Zh(l,v,_,T,P,j){var q=[ji(l),ou.indexOf(v),parseInt(_,10),parseInt(T,10),parseInt(P,10)];return j&&q.push(parseInt(j,10)),q}function ji(l){var v=parseInt(l,10);return v<=49?2e3+v:v<=999?1900+v:v}function Ke(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sl(l,v,_){if(l){var T=il.indexOf(l),P=new Date(v[0],v[1],v[2]).getDay();if(T!==P)return G(_).weekdayMismatch=!0,_._isValid=!1,!1}return!0}function Jh(l,v,_){if(l)return Zd[l];if(v)return 0;var T=parseInt(_,10),P=T%100,j=(T-P)/100;return j*60+P}function Do(l){var v=eo.exec(Ke(l._i)),_;if(v){if(_=Zh(v[4],v[3],v[2],v[5],v[6],v[7]),!sl(v[1],_,l))return;l._a=_,l._tzm=Jh(v[8],v[9],v[10]),l._d=Un.apply(null,l._a),l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),G(l).rfc2822=!0}else l._isValid=!1}function Qh(l){var v=Xd.exec(l._i);if(v!==null){l._d=new Date(+v[1]);return}if(ba(l),l._isValid===!1)delete l._isValid;else return;if(Do(l),l._isValid===!1)delete l._isValid;else return;l._strict?l._isValid=!1:n.createFromInputFallback(l)}n.createFromInputFallback=Ne("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(l){l._d=new Date(l._i+(l._useUTC?" UTC":""))});function hn(l,v,_){return l!=null?l:v!=null?v:_}function ll(l){var v=new Date(n.now());return l._useUTC?[v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()]:[v.getFullYear(),v.getMonth(),v.getDate()]}function hs(l){var v,_,T=[],P,j,q;if(!l._d){for(P=ll(l),l._w&&l._a[wr]==null&&l._a[ur]==null&&ul(l),l._dayOfYear!=null&&(q=hn(l._a[Dt],P[Dt]),(l._dayOfYear>Dn(q)||l._dayOfYear===0)&&(G(l)._overflowDayOfYear=!0),_=Un(q,0,l._dayOfYear),l._a[ur]=_.getUTCMonth(),l._a[wr]=_.getUTCDate()),v=0;v<3&&l._a[v]==null;++v)l._a[v]=T[v]=P[v];for(;v<7;v++)l._a[v]=T[v]=l._a[v]==null?v===2?1:0:l._a[v];l._a[ut]===24&&l._a[pr]===0&&l._a[Ir]===0&&l._a[bi]===0&&(l._nextDay=!0,l._a[ut]=0),l._d=(l._useUTC?Un:Wh).apply(null,T),j=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[ut]=24),l._w&&typeof l._w.d!="undefined"&&l._w.d!==j&&(G(l).weekdayMismatch=!0)}}function ul(l){var v,_,T,P,j,q,le,me,Pe;v=l._w,v.GG!=null||v.W!=null||v.E!=null?(j=1,q=4,_=hn(v.GG,l._a[Dt],Qi(Xe(),1,4).year),T=hn(v.W,1),P=hn(v.E,1),(P<1||P>7)&&(me=!0)):(j=l._locale._week.dow,q=l._locale._week.doy,Pe=Qi(Xe(),j,q),_=hn(v.gg,l._a[Dt],Pe.year),T=hn(v.w,Pe.week),v.d!=null?(P=v.d,(P<0||P>6)&&(me=!0)):v.e!=null?(P=v.e+j,(v.e<0||v.e>6)&&(me=!0)):P=j),T<1||T>Wr(_,j,q)?G(l)._overflowWeeks=!0:me!=null?G(l)._overflowWeekday=!0:(le=lu(_,T,P,j,q),l._a[Dt]=le.year,l._dayOfYear=le.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function to(l){if(l._f===n.ISO_8601){ba(l);return}if(l._f===n.RFC_2822){Do(l);return}l._a=[],G(l).empty=!0;var v=""+l._i,_,T,P,j,q,le=v.length,me=0,Pe,It;for(P=ke(l._f,l._locale).match(Ct)||[],It=P.length,_=0;_0&&G(l).unusedInput.push(q),v=v.slice(v.indexOf(T)+T.length),me+=T.length),$t[j]?(T?G(l).empty=!1:G(l).unusedTokens.push(j),xd(j,T,l)):l._strict&&!T&&G(l).unusedTokens.push(j);G(l).charsLeftOver=le-me,v.length>0&&G(l).unusedInput.push(v),l._a[ut]<=12&&G(l).bigHour===!0&&l._a[ut]>0&&(G(l).bigHour=void 0),G(l).parsedDateParts=l._a.slice(0),G(l).meridiem=l._meridiem,l._a[ut]=vu(l._locale,l._a[ut],l._meridiem),Pe=G(l).era,Pe!==null&&(l._a[Dt]=l._locale.erasConvertYear(Pe,l._a[Dt])),hs(l),$n(l)}function vu(l,v,_){var T;return _==null?v:l.meridiemHour!=null?l.meridiemHour(v,_):(l.isPM!=null&&(T=l.isPM(_),T&&v<12&&(v+=12),!T&&v===12&&(v=0)),v)}function pu(l){var v,_,T,P,j,q,le=!1,me=l._f.length;if(me===0){G(l).invalidFormat=!0,l._d=new Date(NaN);return}for(P=0;Pthis?this:l:ye()});function gu(l,v){var _,T;if(v.length===1&&d(v[0])&&(v=v[0]),!v.length)return Xe();for(_=v[0],T=1;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function af(){if(!w(this._isDSTShifted))return this._isDSTShifted;var l={},v;return ze(l,this),l=Yi(l),l._a?(v=l._isUTC?V(l._a):Xe(l._a),this._isDSTShifted=this.isValid()&&yu(l._a,v.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function of(){return this.isValid()?!this._isUTC:!1}function sf(){return this.isValid()?this._isUTC:!1}function io(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,lf=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mr(l,v){var _=l,T=null,P,j,q;return ka(l)?_={ms:l._milliseconds,d:l._days,M:l._months}:$(l)||!isNaN(+l)?(_={},v?_[v]=+l:_.milliseconds=+l):(T=fl.exec(l))?(P=T[1]==="-"?-1:1,_={y:0,d:Oe(T[wr])*P,h:Oe(T[ut])*P,m:Oe(T[pr])*P,s:Oe(T[Ir])*P,ms:Oe(cs(T[bi]*1e3))*P}):(T=lf.exec(l))?(P=T[1]==="-"?-1:1,_={y:zr(T[2],P),M:zr(T[3],P),w:zr(T[4],P),d:zr(T[5],P),h:zr(T[6],P),m:zr(T[7],P),s:zr(T[8],P)}):_==null?_={}:typeof _=="object"&&("from"in _||"to"in _)&&(q=Bi(Xe(_.from),Xe(_.to)),_={},_.ms=q.milliseconds,_.M=q.months),j=new wa(_),ka(l)&&y(l,"_locale")&&(j._locale=l._locale),ka(l)&&y(l,"_isValid")&&(j._isValid=l._isValid),j}mr.fn=wa.prototype,mr.invalid=rf;function zr(l,v){var _=l&&parseFloat(l.replace(",","."));return(isNaN(_)?0:_)*v}function _u(l,v){var _={};return _.months=v.month()-l.month()+(v.year()-l.year())*12,l.clone().add(_.months,"M").isAfter(v)&&--_.months,_.milliseconds=+v-+l.clone().add(_.months,"M"),_}function Bi(l,v){var _;return l.isValid()&&v.isValid()?(v=Oo(v,l),l.isBefore(v)?_=_u(l,v):(_=_u(v,l),_.milliseconds=-_.milliseconds,_.months=-_.months),_):{milliseconds:0,months:0}}function wu(l,v){return function(_,T){var P,j;return T!==null&&!isNaN(+T)&&(Fe(v,"moment()."+v+"(period, number) is deprecated. Please use moment()."+v+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),j=_,_=T,T=j),P=mr(_,T),ki(this,P,l),this}}function ki(l,v,_,T){var P=v._milliseconds,j=cs(v._days),q=cs(v._months);l.isValid()&&(T=T==null?!0:T,q&&pa(l,un(l,"Month")+q*_),j&&au(l,"Date",un(l,"Date")+j*_),P&&l._d.setTime(l._d.valueOf()+P*_),T&&n.updateOffset(l,j||q))}var vl=wu(1,"add"),uf=wu(-1,"subtract");function ku(l){return typeof l=="string"||l instanceof String}function ac(l){return _e(l)||A(l)||ku(l)||$(l)||vs(l)||Sa(l)||l===null||l===void 0}function Sa(l){var v=p(l)&&!b(l),_=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],P,j,q=T.length;for(P=0;P_.valueOf():_.valueOf()9999?ln(_,v?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ye(Date.prototype.toISOString)?v?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ln(_,"Z")):ln(_,v?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Cu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",v="",_,T,P,j;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",v="Z"),_="["+l+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",P="-MM-DD[T]HH:mm:ss.SSS",j=v+'[")]',this.format(_+T+P+j)}function mf(l){l||(l=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var v=ln(this,l);return this.localeData().postformat(v)}function gs(l,v){return this.isValid()&&(_e(l)&&l.isValid()||Xe(l).isValid())?mr({to:this,from:l}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function gf(l){return this.from(Xe(),l)}function yf(l,v){return this.isValid()&&(_e(l)&&l.isValid()||Xe(l).isValid())?mr({from:this,to:l}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function Eu(l){return this.to(Xe(),l)}function $o(l){var v;return l===void 0?this._locale._abbr:(v=Rr(l),v!=null&&(this._locale=v),this)}var Du=Ne("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function Ou(){return this._locale}var qn=1e3,fn=60*qn,xa=60*fn,ys=(365*400+97)*24*xa;function Hi(l,v){return(l%v+v)%v}function bs(l,v,_){return l<100&&l>=0?new Date(l+400,v,_)-ys:new Date(l,v,_).valueOf()}function Ta(l,v,_){return l<100&&l>=0?Date.UTC(l+400,v,_)-ys:Date.UTC(l,v,_)}function pl(l){var v,_;if(l=nr(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ta:bs,l){case"year":v=_(this.year(),0,1);break;case"quarter":v=_(this.year(),this.month()-this.month()%3,1);break;case"month":v=_(this.year(),this.month(),1);break;case"week":v=_(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":v=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":v=_(this.year(),this.month(),this.date());break;case"hour":v=this._d.valueOf(),v-=Hi(v+(this._isUTC?0:this.utcOffset()*fn),xa);break;case"minute":v=this._d.valueOf(),v-=Hi(v,fn);break;case"second":v=this._d.valueOf(),v-=Hi(v,qn);break}return this._d.setTime(v),n.updateOffset(this,!0),this}function _s(l){var v,_;if(l=nr(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ta:bs,l){case"year":v=_(this.year()+1,0,1)-1;break;case"quarter":v=_(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":v=_(this.year(),this.month()+1,1)-1;break;case"week":v=_(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":v=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":v=_(this.year(),this.month(),this.date()+1)-1;break;case"hour":v=this._d.valueOf(),v+=xa-Hi(v+(this._isUTC?0:this.utcOffset()*fn),xa)-1;break;case"minute":v=this._d.valueOf(),v+=fn-Hi(v,fn)-1;break;case"second":v=this._d.valueOf(),v+=qn-Hi(v,qn)-1;break}return this._d.setTime(v),n.updateOffset(this,!0),this}function $u(){return this._d.valueOf()-(this._offset||0)*6e4}function ml(){return Math.floor(this.valueOf()/1e3)}function Po(){return new Date(this.valueOf())}function bf(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function Pu(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}}function lc(){return this.isValid()?this.toISOString():null}function uc(){return ve(this)}function _f(){return Y({},G(this))}function ws(){return G(this).overflow}function wf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ce("N",0,0,"eraAbbr"),ce("NN",0,0,"eraAbbr"),ce("NNN",0,0,"eraAbbr"),ce("NNNN",0,0,"eraName"),ce("NNNNN",0,0,"eraNarrow"),ce("y",["y",1],"yo","eraYear"),ce("y",["yy",2],0,"eraYear"),ce("y",["yyy",3],0,"eraYear"),ce("y",["yyyy",4],0,"eraYear"),ue("N",Io),ue("NN",Io),ue("NNN",Io),ue("NNNN",pc),ue("NNNNN",mc),Ue(["N","NN","NNN","NNNN","NNNNN"],function(l,v,_,T){var P=_._locale.erasParse(l,T,_._strict);P?G(_).era=P:G(_).invalidEra=l}),ue("y",Li),ue("yy",Li),ue("yyy",Li),ue("yyyy",Li),ue("yo",gc),Ue(["y","yy","yyy","yyyy"],Dt),Ue(["yo"],function(l,v,_,T){var P;_._locale._eraYearOrdinalRegex&&(P=l.match(_._locale._eraYearOrdinalRegex)),_._locale.eraYearOrdinalParse?v[Dt]=_._locale.eraYearOrdinalParse(l,P):v[Dt]=parseInt(l,10)});function hc(l,v){var _,T,P,j=this._eras||Rr("en")._eras;for(_=0,T=j.length;_=0)return j[T]}function kf(l,v){var _=l.since<=l.until?1:-1;return v===void 0?n(l.since).year():n(l.since).year()+(v-l.offset)*_}function ks(){var l,v,_,T=this.localeData().eras();for(l=0,v=T.length;lj&&(v=j),gl.call(this,l,v,_,T,P))}function gl(l,v,_,T,P){var j=lu(l,v,_,T,P),q=Un(j.year,0,j.dayOfYear);return this.year(q.getUTCFullYear()),this.month(q.getUTCMonth()),this.date(q.getUTCDate()),this}ce("Q",0,"Qo","quarter"),ue("Q",ts),Ue("Q",function(l,v){v[ur]=(Oe(l)-1)*3});function Mo(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}ce("D",["DD",2],"Do","date"),ue("D",Ve,lr),ue("DD",Ve,ct),ue("Do",function(l,v){return l?v._dayOfMonthOrdinalParse||v._ordinalParse:v._dayOfMonthOrdinalParseLenient}),Ue(["D","DD"],wr),Ue("Do",function(l,v){v[wr]=Oe(l.match(Ve)[0])});var yl=Mr("Date",!0);ce("DDD",["DDDD",3],"DDDo","dayOfYear"),ue("DDD",da),ue("DDDD",Ht),Ue(["DDD","DDDD"],function(l,v,_){_._dayOfYear=Oe(l)});function Cf(l){var v=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?v:this.add(l-v,"d")}ce("m",["mm",2],0,"minute"),ue("m",Ve,va),ue("mm",Ve,ct),Ue(["m","mm"],pr);var bl=Mr("Minutes",!1);ce("s",["ss",2],0,"second"),ue("s",Ve,va),ue("ss",Ve,ct),Ue(["s","ss"],Ir);var Ef=Mr("Seconds",!1);ce("S",0,0,function(){return~~(this.millisecond()/100)}),ce(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ce(0,["SSS",3],0,"millisecond"),ce(0,["SSSS",4],0,function(){return this.millisecond()*10}),ce(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ce(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ce(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ce(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ce(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ue("S",da,ts),ue("SS",da,ct),ue("SSS",da,Ht);var ni,Au;for(ni="SSSS";ni.length<=9;ni+="S")ue(ni,Li);function Ru(l,v){v[bi]=Oe(("0."+l)*1e3)}for(ni="S";ni.length<=9;ni+="S")Ue(ni,Ru);Au=Mr("Milliseconds",!1),ce("z",0,0,"zoneAbbr"),ce("zz",0,0,"zoneName");function Df(){return this._isUTC?"UTC":""}function Ts(){return this._isUTC?"Coordinated Universal Time":""}var te=tt.prototype;te.add=vl,te.calendar=xu,te.clone=hf,te.diff=ff,te.endOf=_s,te.format=mf,te.from=gs,te.fromNow=gf,te.to=yf,te.toNow=Eu,te.get=wi,te.invalidAt=ws,te.isAfter=sc,te.isBefore=ps,te.isBetween=Tu,te.isSame=cf,te.isSameOrAfter=df,te.isSameOrBefore=ms,te.isValid=uc,te.lang=Du,te.locale=$o,te.localeData=Ou,te.max=Qd,te.min=Jd,te.parsingFlags=_f,te.set=Bh,te.startOf=pl,te.subtract=uf,te.toArray=bf,te.toObject=Pu,te.toDate=Po,te.toISOString=pf,te.inspect=Cu,typeof Symbol!="undefined"&&Symbol.for!=null&&(te[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),te.toJSON=lc,te.toString=vf,te.unix=ml,te.valueOf=$u,te.creationData=wf,te.eraName=ks,te.eraNarrow=cc,te.eraAbbr=dc,te.eraYear=fc,te.year=qa,te.isLeapYear=tl,te.weekYear=xs,te.isoWeekYear=Sf,te.quarter=te.quarters=Mo,te.month=Ar,te.daysInMonth=$d,te.week=te.weeks=Md,te.isoWeek=te.isoWeeks=Xa,te.weeksInYear=Mu,te.weeksInWeekYear=Tf,te.isoWeeksInYear=no,te.isoWeeksInISOWeekYear=xf,te.date=yl,te.day=te.days=ma,te.weekday=Hd,te.isoWeekday=qh,te.dayOfYear=Cf,te.hour=te.hours=Ud,te.minute=te.minutes=bl,te.second=te.seconds=Ef,te.millisecond=te.milliseconds=Au,te.utcOffset=fs,te.utc=cl,te.local=nc,te.parseZone=dl,te.hasAlignedHourOffset=nf,te.isDST=dn,te.isLocal=of,te.isUtcOffset=sf,te.isUtc=io,te.isUTC=io,te.zoneAbbr=Df,te.zoneName=Ts,te.dates=Ne("dates accessor is deprecated. Use date instead.",yl),te.months=Ne("months accessor is deprecated. Use month instead",Ar),te.years=Ne("years accessor is deprecated. Use year instead",qa),te.zone=Ne("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ic),te.isDSTShifted=Ne("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",af);function ao(l){return Xe(l*1e3)}function Of(){return Xe.apply(null,arguments).parseZone()}function Nu(l){return l}var Le=Kt.prototype;Le.calendar=$r,Le.longDateFormat=be,Le.invalidDate=Qe,Le.ordinal=Bt,Le.preparse=Nu,Le.postformat=Nu,Le.relativeTime=zn,Le.pastFuture=sr,Le.set=ir,Le.eras=hc,Le.erasParse=Iu,Le.erasConvertYear=kf,Le.erasAbbrRegex=jt,Le.erasNameRegex=Je,Le.erasNarrowRegex=vc,Le.months=rl,Le.monthsShort=Hh,Le.monthsParse=Od,Le.monthsRegex=Pd,Le.monthsShortRegex=hr,Le.week=Id,Le.firstDayOfYear=uu,Le.firstDayOfWeek=Gh,Le.weekdays=Fd,Le.weekdaysMin=jd,Le.weekdaysShort=Vh,Le.weekdaysParse=Bd,Le.weekdaysRegex=cu,Le.weekdaysShortRegex=Wd,Le.weekdaysMinRegex=du,Le.isPM=Kh,Le.meridiem=Vd;function Ea(l,v,_,T){var P=Rr(),j=V().set(T,v);return P[_](j,l)}function _l(l,v,_){if($(l)&&(v=l,l=void 0),l=l||"",v!=null)return Ea(l,v,_,"month");var T,P=[];for(T=0;T<12;T++)P[T]=Ea(l,T,_,"month");return P}function oo(l,v,_,T){typeof l=="boolean"?($(v)&&(_=v,v=void 0),v=v||""):(v=l,_=v,l=!1,$(v)&&(_=v,v=void 0),v=v||"");var P=Rr(),j=l?P._week.dow:0,q,le=[];if(_!=null)return Ea(v,(_+j)%7,T,"day");for(q=0;q<7;q++)le[q]=Ea(v,(q+j)%7,T,"day");return le}function yc(l,v){return _l(l,v,"months")}function bc(l,v){return _l(l,v,"monthsShort")}function wl(l,v,_){return oo(l,v,_,"weekdays")}function $f(l,v,_){return oo(l,v,_,"weekdaysShort")}function Pf(l,v,_){return oo(l,v,_,"weekdaysMin")}Gr("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(l){var v=l%10,_=Oe(l%100/10)===1?"th":v===1?"st":v===2?"nd":v===3?"rd":"th";return l+_}}),n.lang=Ne("moment.lang is deprecated. Use moment.locale instead.",Gr),n.langData=Ne("moment.langData is deprecated. Use moment.localeData instead.",Rr);var Nr=Math.abs;function If(){var l=this._data;return this._milliseconds=Nr(this._milliseconds),this._days=Nr(this._days),this._months=Nr(this._months),l.milliseconds=Nr(l.milliseconds),l.seconds=Nr(l.seconds),l.minutes=Nr(l.minutes),l.hours=Nr(l.hours),l.months=Nr(l.months),l.years=Nr(l.years),this}function Lu(l,v,_,T){var P=mr(v,_);return l._milliseconds+=T*P._milliseconds,l._days+=T*P._days,l._months+=T*P._months,l._bubble()}function Mf(l,v){return Lu(this,l,v,1)}function Af(l,v){return Lu(this,l,v,-1)}function Si(l){return l<0?Math.floor(l):Math.ceil(l)}function Cs(){var l=this._milliseconds,v=this._days,_=this._months,T=this._data,P,j,q,le,me;return l>=0&&v>=0&&_>=0||l<=0&&v<=0&&_<=0||(l+=Si(Ao(_)+v)*864e5,v=0,_=0),T.milliseconds=l%1e3,P=Et(l/1e3),T.seconds=P%60,j=Et(P/60),T.minutes=j%60,q=Et(j/60),T.hours=q%24,v+=Et(q/24),me=Et(Fu(v)),_+=me,v-=Si(Ao(me)),le=Et(_/12),_%=12,T.days=v,T.months=_,T.years=le,this}function Fu(l){return l*4800/146097}function Ao(l){return l*146097/4800}function Ro(l){if(!this.isValid())return NaN;var v,_,T=this._milliseconds;if(l=nr(l),l==="month"||l==="quarter"||l==="year")switch(v=this._days+T/864e5,_=this._months+Fu(v),l){case"month":return _;case"quarter":return _/3;case"year":return _/12}else switch(v=this._days+Math.round(Ao(this._months)),l){case"week":return v/7+T/6048e5;case"day":return v+T/864e5;case"hour":return v*24+T/36e5;case"minute":return v*1440+T/6e4;case"second":return v*86400+T/1e3;case"millisecond":return Math.floor(v*864e5)+T;default:throw new Error("Unknown unit "+l)}}function Lr(l){return function(){return this.as(l)}}var ju=Lr("ms"),_c=Lr("s"),Rf=Lr("m"),Nf=Lr("h"),wc=Lr("d"),Lf=Lr("w"),kc=Lr("M"),Yu=Lr("Q"),Bu=Lr("y"),kl=ju;function No(){return mr(this)}function Hu(l){return l=nr(l),this.isValid()?this[l+"s"]():NaN}function Fr(l){return function(){return this.isValid()?this._data[l]:NaN}}var Sc=Fr("milliseconds"),Wu=Fr("seconds"),Da=Fr("minutes"),Sl=Fr("hours"),In=Fr("days"),Xn=Fr("months"),xl=Fr("years");function xc(){return Et(this.days()/7)}var Ur=Math.round,Wi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tc(l,v,_,T,P){return P.relativeTime(v||1,!!_,l,T)}function cr(l,v,_,T){var P=mr(l).abs(),j=Ur(P.as("s")),q=Ur(P.as("m")),le=Ur(P.as("h")),me=Ur(P.as("d")),Pe=Ur(P.as("M")),It=Ur(P.as("w")),Vr=Ur(P.as("y")),pi=j<=_.ss&&["s",j]||j<_.s&&["ss",j]||q<=1&&["m"]||q<_.m&&["mm",q]||le<=1&&["h"]||le<_.h&&["hh",le]||me<=1&&["d"]||me<_.d&&["dd",me];return _.w!=null&&(pi=pi||It<=1&&["w"]||It<_.w&&["ww",It]),pi=pi||Pe<=1&&["M"]||Pe<_.M&&["MM",Pe]||Vr<=1&&["y"]||["yy",Vr],pi[2]=v,pi[3]=+l>0,pi[4]=T,Tc.apply(null,pi)}function Ff(l){return l===void 0?Ur:typeof l=="function"?(Ur=l,!0):!1}function jf(l,v){return Wi[l]===void 0?!1:v===void 0?Wi[l]:(Wi[l]=v,l==="s"&&(Wi.ss=v-1),!0)}function Yf(l,v){if(!this.isValid())return this.localeData().invalidDate();var _=!1,T=Wi,P,j;return typeof l=="object"&&(v=l,l=!1),typeof l=="boolean"&&(_=l),typeof v=="object"&&(T=Object.assign({},Wi,v),v.s!=null&&v.ss==null&&(T.ss=v.s-1)),P=this.localeData(),j=cr(this,!_,T,P),_&&(j=P.pastFuture(+this,j)),P.postformat(j)}var Lo=Math.abs;function en(l){return(l>0)-(l<0)||+l}function so(){if(!this.isValid())return this.localeData().invalidDate();var l=Lo(this._milliseconds)/1e3,v=Lo(this._days),_=Lo(this._months),T,P,j,q,le=this.asSeconds(),me,Pe,It,Vr;return le?(T=Et(l/60),P=Et(T/60),l%=60,T%=60,j=Et(_/12),_%=12,q=l?l.toFixed(3).replace(/\.?0+$/,""):"",me=le<0?"-":"",Pe=en(this._months)!==en(le)?"-":"",It=en(this._days)!==en(le)?"-":"",Vr=en(this._milliseconds)!==en(le)?"-":"",me+"P"+(j?Pe+j+"Y":"")+(_?Pe+_+"M":"")+(v?It+v+"D":"")+(P||T||l?"T":"")+(P?Vr+P+"H":"")+(T?Vr+T+"M":"")+(l?Vr+q+"S":"")):"P0D"}var Ie=wa.prototype;return Ie.isValid=Ze,Ie.abs=If,Ie.add=Mf,Ie.subtract=Af,Ie.as=Ro,Ie.asMilliseconds=ju,Ie.asSeconds=_c,Ie.asMinutes=Rf,Ie.asHours=Nf,Ie.asDays=wc,Ie.asWeeks=Lf,Ie.asMonths=kc,Ie.asQuarters=Yu,Ie.asYears=Bu,Ie.valueOf=kl,Ie._bubble=Cs,Ie.clone=No,Ie.get=Hu,Ie.milliseconds=Sc,Ie.seconds=Wu,Ie.minutes=Da,Ie.hours=Sl,Ie.days=In,Ie.weeks=xc,Ie.months=Xn,Ie.years=xl,Ie.humanize=Yf,Ie.toISOString=so,Ie.toString=so,Ie.toJSON=so,Ie.locale=$o,Ie.localeData=Ou,Ie.toIsoString=Ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",so),Ie.lang=Du,ce("X",0,0,"unix"),ce("x",0,0,"valueOf"),ue("x",yi),ue("X",Yh),Ue("X",function(l,v,_){_._d=new Date(parseFloat(l)*1e3)}),Ue("x",function(l,v,_){_._d=new Date(Oe(l))}),n.version="2.30.1",h(Xe),n.fn=te,n.min=cn,n.max=ef,n.now=_a,n.utc=V,n.unix=ao,n.months=yc,n.isDate=A,n.locale=Gr,n.invalid=ye,n.duration=mr,n.isMoment=_e,n.weekdays=wl,n.parseZone=Of,n.localeData=Rr,n.isDuration=ka,n.monthsShort=bc,n.weekdaysMin=Pf,n.defineLocale=Qa,n.updateLocale=fu,n.locales=Xh,n.weekdaysShort=$f,n.normalizeUnits=nr,n.relativeTimeRounding=Ff,n.relativeTimeThreshold=jf,n.calendarFormat=oc,n.prototype=te,n.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"},n})}}),XV=pN({"node_modules/vis-data/peer/umd/vis-data.js"(e,a){(function(t,n){typeof e=="object"&&typeof a!="undefined"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,n(t.vis=t.vis||{}))})(e,function(t){function n(g,k){if(!(g instanceof k))throw new TypeError("Cannot call a class as a function")}var h=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function d(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var p={exports:{}},y=function(g){return g&&g.Math===Math&&g},b=y(typeof globalThis=="object"&&globalThis)||y(typeof window=="object"&&window)||y(typeof self=="object"&&self)||y(typeof h=="object"&&h)||function(){return this}()||h||Function("return this")(),w=function(g){try{return!!g()}catch(k){return!0}},$=w,A=!$(function(){var g=function(){}.bind();return typeof g!="function"||g.hasOwnProperty("prototype")}),R=A,Y=Function.prototype,V=Y.apply,oe=Y.call,G=typeof Reflect=="object"&&Reflect.apply||(R?oe.bind(V):function(){return oe.apply(V,arguments)}),ae=A,ve=Function.prototype,ye=ve.call,pe=ae&&ve.bind.bind(ye,ye),Se=ae?pe:function(g){return function(){return ye.apply(g,arguments)}},ze=Se,tt=ze({}.toString),_e=ze("".slice),it=function(g){return _e(tt(g),8,-1)},Ne=it,qe=Se,Fe=function(g){if(Ne(g)==="Function")return qe(g)},Ye=typeof document=="object"&&document.all,ir=typeof Ye=="undefined"&&Ye!==void 0,gt={all:Ye,IS_HTMLDDA:ir},Kt=gt,lt=Kt.all,kt=Kt.IS_HTMLDDA?function(g){return typeof g=="function"||g===lt}:function(g){return typeof g=="function"},$r={},ht=w,Ct=!ht(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ui=A,sn=Function.prototype.call,$t=ui?sn.bind(sn):function(){return sn.apply(sn,arguments)},ce={},Gn={}.propertyIsEnumerable,En=Object.getOwnPropertyDescriptor,ln=En&&!Gn.call({1:2},1);ce.f=ln?function(k){var C=En(this,k);return!!C&&C.enumerable}:Gn;var ke=function(g,k){return{enumerable:!(g&1),configurable:!(g&2),writable:!(g&4),value:k}},ge=Se,be=w,je=it,Qe=Object,rt=ge("".split),Ut=be(function(){return!Qe("z").propertyIsEnumerable(0)})?function(g){return je(g)==="String"?rt(g,""):Qe(g)}:Qe,Bt=function(g){return g==null},ii=Bt,zn=TypeError,sr=function(g){if(ii(g))throw new zn("Can't call method on "+g);return g},Zi=Ut,nr=sr,Ft=function(g){return Zi(nr(g))},Lt=kt,el=gt,ts=el.all,ct=el.IS_HTMLDDA?function(g){return typeof g=="object"?g!==null:Lt(g)||g===ts}:function(g){return typeof g=="object"?g!==null:Lt(g)},Ht={},Pr=Ht,Pt=b,Ve=kt,rs=function(g){return Ve(g)?g:void 0},Er=function(g,k){return arguments.length<2?rs(Pr[g])||rs(Pt[g]):Pr[g]&&Pr[g][k]||Pt[g]&&Pt[g][k]},da=Se,Vt=da({}.isPrototypeOf),hi=typeof navigator!="undefined"&&String(navigator.userAgent)||"",Li=b,yi=hi,nu=Li.process,fa=Li.Deno,Yh=nu&&nu.versions||fa&&fa.version,ci=Yh&&Yh.v8,lr,va;ci&&(lr=ci.split("."),va=lr[0]>0&&lr[0]<4?1:+(lr[0]+lr[1])),!va&&yi&&(lr=yi.match(/Edge\/(\d+)/),(!lr||lr[1]>=74)&&(lr=yi.match(/Chrome\/(\d+)/),lr&&(va=+lr[1])));var Ji=va,ue=Ji,Sd=w,is=b,Hr=is.String,Et=!!Object.getOwnPropertySymbols&&!Sd(function(){var g=Symbol("symbol detection");return!Hr(g)||!(Object(g)instanceof Symbol)||!Symbol.sham&&ue&&ue<41}),Oe=Et,Co=Oe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ue=Er,di=kt,xd=Vt,Va=Co,Dt=Object,ur=Va?function(g){return typeof g=="symbol"}:function(g){var k=Ue("Symbol");return di(k)&&xd(k.prototype,Dt(g))},wr=String,ut=function(g){try{return wr(g)}catch(k){return"Object"}},pr=kt,Ir=ut,bi=TypeError,_i=function(g){if(pr(g))return g;throw new bi(Ir(g)+" is not a function")},Td=_i,Dn=Bt,qa=function(g,k){var C=g[k];return Dn(C)?void 0:Td(C)},tl=$t,Mr=kt,un=ct,au=TypeError,wi=function(g,k){var C,E;if(k==="string"&&Mr(C=g.toString)&&!un(E=tl(C,g))||Mr(C=g.valueOf)&&!un(E=tl(C,g))||k!=="string"&&Mr(C=g.toString)&&!un(E=tl(C,g)))return E;throw new au("Can't convert object to primitive value")},Bh={exports:{}},Cd=!0,Ge=b,ns=Object.defineProperty,Ed=function(g,k){try{ns(Ge,g,{value:k,configurable:!0,writable:!0})}catch(C){Ge[g]=k}return k},ou=b,su=Ed,as="__core-js_shared__",Dd=ou[as]||su(as,{}),rl=Dd,Hh=rl;(Bh.exports=function(g,k){return Hh[g]||(Hh[g]=k!==void 0?k:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"\xA9 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 Eo=Bh.exports,Od=sr,pa=Object,Ar=function(g){return pa(Od(g))},$d=Se,hr=Ar,Pd=$d({}.hasOwnProperty),ar=Object.hasOwn||function(k,C){return Pd(hr(k),C)},Wh=Se,Un=0,Ka=Math.random(),lu=Wh(1 .toString),Qi=function(g){return"Symbol("+(g===void 0?"":g)+")_"+lu(++Un+Ka,36)},Wr=b,Id=Eo,os=ar,Gh=Qi,uu=Et,Md=Co,Xa=Wr.Symbol,hu=Id("wks"),zh=Md?Xa.for||Xa:Xa&&Xa.withoutSetter||Gh,Wt=function(g){return os(hu,g)||(hu[g]=uu&&os(Xa,g)?Xa[g]:zh("Symbol."+g)),hu[g]},Ad=$t,il=ct,Uh=ur,Rd=qa,Nd=wi,Ld=Wt,Fd=TypeError,Vh=Ld("toPrimitive"),jd=function(g,k){if(!il(g)||Uh(g))return g;var C=Rd(g,Vh),E;if(C){if(k===void 0&&(k="default"),E=Ad(C,g,k),!il(E)||Uh(E))return E;throw new Fd("Can't convert object to primitive value")}return k===void 0&&(k="number"),Nd(g,k)},Yd=jd,Bd=ur,ma=function(g){var k=Yd(g,"string");return Bd(k)?k:k+""},Hd=b,qh=ct,cu=Hd.document,Wd=qh(cu)&&qh(cu.createElement),du=function(g){return Wd?cu.createElement(g):{}},ss=Ct,ls=w,Gd=du,ga=!ss&&!ls(function(){return Object.defineProperty(Gd("div"),"a",{get:function(){return 7}}).a!==7}),fi=Ct,Kh=$t,zd=ce,Ud=ke,Vd=Ft,Fi=ma,nt=ar,Vn=ga,On=Object.getOwnPropertyDescriptor;$r.f=fi?On:function(k,C){if(k=Vd(k),C=Fi(C),Vn)try{return On(k,C)}catch(E){}if(nt(k,C))return Ud(!Kh(zd.f,k,C),k[C])};var nl=w,al=kt,qd=/#|\.prototype\./,Za=function(g,k){var C=Gr[Ja(g)];return C===fu?!0:C===Qa?!1:al(k)?nl(k):!!k},Ja=Za.normalize=function(g){return String(g).replace(qd,".").toLowerCase()},Gr=Za.data={},Qa=Za.NATIVE="N",fu=Za.POLYFILL="P",Rr=Za,Xh=Fe,$n=_i,ol=A,Kd=Xh(Xh.bind),ya=function(g,k){return $n(g),k===void 0?g:ol?Kd(g,k):function(){return g.apply(k,arguments)}},kr={},us=Ct,Xd=w,eo=us&&Xd(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Zd=ct,ba=String,Zh=TypeError,ji=function(g){if(Zd(g))return g;throw new Zh(ba(g)+" is not an object")},Ke=Ct,sl=ga,Jh=eo,Do=ji,Qh=ma,hn=TypeError,ll=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,ul="enumerable",to="configurable",vu="writable";kr.f=Ke?Jh?function(k,C,E){if(Do(k),C=Qh(C),Do(E),typeof k=="function"&&C==="prototype"&&"value"in E&&vu in E&&!E[vu]){var D=hs(k,C);D&&D[vu]&&(k[C]=E.value,E={configurable:to in E?E[to]:D[to],enumerable:ul in E?E[ul]:D[ul],writable:!1})}return ll(k,C,E)}:ll:function(k,C,E){if(Do(k),C=Qh(C),Do(E),sl)try{return ll(k,C,E)}catch(D){}if("get"in E||"set"in E)throw new hn("Accessors not supported");return"value"in E&&(k[C]=E.value),k};var pu=Ct,ec=kr,tc=ke,Yi=pu?function(g,k,C){return ec.f(g,k,tc(1,C))}:function(g,k,C){return g[k]=C,g},hl=b,mu=G,Xe=Fe,Jd=kt,Qd=$r.f,gu=Rr,cn=Ht,ef=ya,_a=Yi,Pn=ar,tf=function(g){var k=function(C,E,D){if(this instanceof k){switch(arguments.length){case 0:return new g;case 1:return new g(C);case 2:return new g(C,E)}return new g(C,E,D)}return mu(g,this,arguments)};return k.prototype=g.prototype,k},Ze=function(g,k){var C=g.target,E=g.global,D=g.stat,M=g.proto,F=E?hl:D?hl[C]:(hl[C]||{}).prototype,H=E?cn:cn[C]||_a(cn,C,{})[C],B=H.prototype,U,J,ie,re,se,$e,ot,st,yt;for(re in k)U=gu(E?re:C+(D?".":"#")+re,g.forced),J=!U&&F&&Pn(F,re),$e=H[re],J&&(g.dontCallGetSet?(yt=Qd(F,re),ot=yt&&yt.value):ot=F[re]),se=J&&ot?ot:k[re],!(J&&typeof $e==typeof se)&&(g.bind&&J?st=ef(se,hl):g.wrap&&J?st=tf(se):M&&Jd(se)?st=Xe(se):st=se,(g.sham||se&&se.sham||$e&&$e.sham)&&_a(st,"sham",!0),_a(H,re,st),M&&(ie=C+"Prototype",Pn(cn,ie)||_a(cn,ie,{}),_a(cn[ie],re,se),g.real&&B&&(U||!B[re])&&_a(B,re,se)))},rf=Ze,wa=Ct,ka=kr.f;rf({target:"Object",stat:!0,forced:Object.defineProperty!==ka,sham:!wa},{defineProperty:ka});var cs=Ht,yu=cs.Object,bu=p.exports=function(k,C,E){return yu.defineProperty(k,C,E)};yu.defineProperty.sham&&(bu.sham=!0);var rc=p.exports,ro=rc,Oo=ro,ds=Oo,fs=ds,ic=fs,cl=ic,nc=cl,dl=d(nc),nf=it,dn=Array.isArray||function(k){return nf(k)==="Array"},af=Math.ceil,of=Math.floor,sf=Math.trunc||function(k){var C=+k;return(C>0?of:af)(C)},io=sf,fl=function(g){var k=+g;return k!==k||k===0?0:io(k)},lf=fl,mr=Math.min,zr=function(g){return g>0?mr(lf(g),9007199254740991):0},_u=zr,Bi=function(g){return _u(g.length)},wu=TypeError,ki=9007199254740991,vl=function(g){if(g>ki)throw wu("Maximum allowed index exceeded");return g},uf=ma,ku=kr,ac=ke,Sa=function(g,k,C){var E=uf(k);E in g?ku.f(g,E,ac(0,C)):g[E]=C},vs=Wt,Su=vs("toStringTag"),oc={};oc[Su]="z";var xu=String(oc)==="[object z]",hf=xu,sc=kt,ps=it,Tu=Wt,cf=Tu("toStringTag"),df=Object,ms=ps(function(){return arguments}())==="Arguments",ff=function(g,k){try{return g[k]}catch(C){}},vi=hf?ps:function(g){var k,C,E;return g===void 0?"Undefined":g===null?"Null":typeof(C=ff(k=df(g),cf))=="string"?C:ms?ps(k):(E=ps(k))==="Object"&&sc(k.callee)?"Arguments":E},vf=Se,pf=kt,Cu=rl,mf=vf(Function.toString);pf(Cu.inspectSource)||(Cu.inspectSource=function(g){return mf(g)});var gs=Cu.inspectSource,gf=Se,yf=w,Eu=kt,$o=vi,Du=Er,Ou=gs,qn=function(){},fn=[],xa=Du("Reflect","construct"),ys=/^\s*(?:class|function)\b/,Hi=gf(ys.exec),bs=!ys.test(qn),Ta=function(k){if(!Eu(k))return!1;try{return xa(qn,fn,k),!0}catch(C){return!1}},pl=function(k){if(!Eu(k))return!1;switch($o(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bs||!!Hi(ys,Ou(k))}catch(C){return!0}};pl.sham=!0;var _s=!xa||yf(function(){var g;return Ta(Ta.call)||!Ta(Object)||!Ta(function(){g=!0})||g})?pl:Ta,$u=dn,ml=_s,Po=ct,bf=Wt,Pu=bf("species"),lc=Array,uc=function(g){var k;return $u(g)&&(k=g.constructor,ml(k)&&(k===lc||$u(k.prototype))?k=void 0:Po(k)&&(k=k[Pu],k===null&&(k=void 0))),k===void 0?lc:k},_f=uc,ws=function(g,k){return new(_f(g))(k===0?0:k)},wf=w,hc=Wt,Iu=Ji,kf=hc("species"),ks=function(g){return Iu>=51||!wf(function(){var k=[],C=k.constructor={};return C[kf]=function(){return{foo:1}},k[g](Boolean).foo!==1})},cc=Ze,dc=w,fc=dn,Je=ct,jt=Ar,vc=Bi,Io=vl,pc=Sa,mc=ws,gc=ks,Ss=Wt,Ca=Ji,xs=Ss("isConcatSpreadable"),Sf=Ca>=51||!dc(function(){var g=[];return g[xs]=!1,g.concat()[0]!==g}),no=function(g){if(!Je(g))return!1;var k=g[xs];return k!==void 0?!!k:fc(g)},xf=!Sf||!gc("concat");cc({target:"Array",proto:!0,forced:xf},{concat:function(k){var C=jt(this),E=mc(C,0),D=0,M,F,H,B,U;for(M=-1,H=arguments.length;MF;)if(H=D[F++],H!==H)return!0}else for(;M>F;F++)if((g||F in D)&&D[F]===C)return g||F||0;return!g&&-1}},Df={indexOf:Ru(!1)},Ts={},te=Se,ao=ar,Of=Ft,Nu=Df.indexOf,Le=Ts,Ea=te([].push),_l=function(g,k){var C=Of(g),E=0,D=[],M;for(M in C)!ao(Le,M)&&ao(C,M)&&Ea(D,M);for(;k.length>E;)ao(C,M=k[E++])&&(~Nu(D,M)||Ea(D,M));return D},oo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yc=_l,bc=oo,wl=Object.keys||function(k){return yc(k,bc)},$f=Ct,Pf=eo,Nr=kr,If=ji,Lu=Ft,Mf=wl;gl.f=$f&&!Pf?Object.defineProperties:function(k,C){If(k);for(var E=Lu(C),D=Mf(C),M=D.length,F=0,H;M>F;)Nr.f(k,H=D[F++],E[H]);return k};var Af=Er,Si=Af("document","documentElement"),Cs=Eo,Fu=Qi,Ao=Cs("keys"),Ro=function(g){return Ao[g]||(Ao[g]=Fu(g))},Lr=ji,ju=gl,_c=oo,Rf=Ts,Nf=Si,wc=du,Lf=Ro,kc=">",Yu="<",Bu="prototype",kl="script",No=Lf("IE_PROTO"),Hu=function(){},Fr=function(g){return Yu+kl+kc+g+Yu+"/"+kl+kc},Sc=function(g){g.write(Fr("")),g.close();var k=g.parentWindow.Object;return g=null,k},Wu=function(){var g=wc("iframe"),k="java"+kl+":",C;return g.style.display="none",Nf.appendChild(g),g.src=String(k),C=g.contentWindow.document,C.open(),C.write(Fr("document.F=Object")),C.close(),C.F},Da,Sl=function(){try{Da=new ActiveXObject("htmlfile")}catch(k){}Sl=typeof document!="undefined"?document.domain&&Da?Sc(Da):Wu():Sc(Da);for(var g=_c.length;g--;)delete Sl[Bu][_c[g]];return Sl()};Rf[No]=!0;var In=Object.create||function(k,C){var E;return k!==null?(Hu[Bu]=Lr(k),E=new Hu,Hu[Bu]=null,E[No]=k):E=Sl(),C===void 0?E:ju.f(E,C)},Xn={},xl=_l,xc=oo,Ur=xc.concat("length","prototype");Xn.f=Object.getOwnPropertyNames||function(k){return xl(k,Ur)};var Wi={},Tc=bl,cr=Bi,Ff=Sa,jf=Array,Yf=Math.max,Lo=function(g,k,C){for(var E=cr(g),D=Tc(k,E),M=Tc(C===void 0?E:C,E),F=jf(Yf(M-D,0)),H=0;Dst;st++)if((H||st in se)&&(qi=se[st],ti=$e(qi,st,re),g))if(k)St[st]=ti;else if(ti)switch(g){case 3:return!0;case 5:return qi;case 6:return st;case 2:sw(St,qi)}else switch(g){case 4:return!1;case 7:sw(St,qi)}return M?-1:E||D?D:St}},Oc={forEach:Ep(0),map:Ep(1),filter:Ep(2),some:Ep(3)},Dp=Ze,$c=b,Pc=$t,Mn=Se,Es=Ct,jo=Et,$E=w,mi=ar,uo=Vt,Ds=ji,Vu=Ft,hy=ma,PE=Kn,Vf=ke,Ic=In,Cl=wl,lw=Xn,uw=Wi,hw=T,Yo=$r,Mc=kr,IE=gl,Op=ce,cy=j,dy=le,qf=Eo,$p=Ro,Pp=Ts,fy=Qi,cw=Wt,dw=me,fw=Sr,vw=ew,ME=vn,pw=Uu,Ip=Oc.forEach,An=$p("hidden"),Kf="Symbol",Xf="prototype",vy=pw.set,mw=pw.getterFor(Kf),ho=Object[Xf],qu=$c.Symbol,Zf=qu&&qu[Xf],AE=$c.RangeError,RE=$c.TypeError,Mp=$c.QObject,py=Yo.f,Ku=Mc.f,my=uw.f,NE=Op.f,gy=Mn([].push),Os=qf("symbols"),Ac=qf("op-symbols"),gw=qf("wks"),yy=!Mp||!Mp[Xf]||!Mp[Xf].findChild,Rc=function(g,k,C){var E=py(ho,k);E&&delete ho[k],Ku(g,k,C),E&&g!==ho&&Ku(ho,k,E)},Ap=Es&&$E(function(){return Ic(Ku({},"a",{get:function(){return Ku(this,"a",{value:7}).a}})).a!==7})?Rc:Ku,Rp=function(g,k){var C=Os[g]=Ic(Zf);return vy(C,{type:Kf,tag:g,description:k}),Es||(C.description=k),C},Jf=function(k,C,E){k===ho&&Jf(Ac,C,E),Ds(k);var D=hy(C);return Ds(E),mi(Os,D)?(E.enumerable?(mi(k,An)&&k[An][D]&&(k[An][D]=!1),E=Ic(E,{enumerable:Vf(0,!1)})):(mi(k,An)||Ku(k,An,Vf(1,{})),k[An][D]=!0),Ap(k,D,E)):Ku(k,D,E)},Np=function(k,C){Ds(k);var E=Vu(C),D=Cl(E).concat(Qf(E));return Ip(D,function(M){(!Es||Pc(yw,E,M))&&Jf(k,M,E[M])}),k},LE=function(k,C){return C===void 0?Ic(k):Np(Ic(k),C)},yw=function(k){var C=hy(k),E=Pc(NE,this,C);return this===ho&&mi(Os,C)&&!mi(Ac,C)?!1:E||!mi(this,C)||!mi(Os,C)||mi(this,An)&&this[An][C]?E:!0},bw=function(k,C){var E=Vu(k),D=hy(C);if(!(E===ho&&mi(Os,D)&&!mi(Ac,D))){var M=py(E,D);return M&&mi(Os,D)&&!(mi(E,An)&&E[An][D])&&(M.enumerable=!0),M}},$s=function(k){var C=my(Vu(k)),E=[];return Ip(C,function(D){!mi(Os,D)&&!mi(Pp,D)&&gy(E,D)}),E},Qf=function(g){var k=g===ho,C=my(k?Ac:Vu(g)),E=[];return Ip(C,function(D){mi(Os,D)&&(!k||mi(ho,D))&&gy(E,Os[D])}),E};jo||(qu=function(){if(uo(Zf,this))throw new RE("Symbol is not a constructor");var k=!arguments.length||arguments[0]===void 0?void 0:PE(arguments[0]),C=fy(k),E=function(D){var M=this===void 0?$c:this;M===ho&&Pc(E,Ac,D),mi(M,An)&&mi(M[An],C)&&(M[An][C]=!1);var F=Vf(1,D);try{Ap(M,C,F)}catch(H){if(!(H instanceof AE))throw H;Rc(M,C,F)}};return Es&&yy&&Ap(ho,C,{configurable:!0,set:E}),Rp(C,k)},Zf=qu[Xf],cy(Zf,"toString",function(){return mw(this).tag}),cy(qu,"withoutSetter",function(g){return Rp(fy(g),g)}),Op.f=yw,Mc.f=Jf,IE.f=Np,Yo.f=bw,lw.f=uw.f=$s,hw.f=Qf,dw.f=function(g){return Rp(cw(g),g)},Es&&dy(Zf,"description",{configurable:!0,get:function(){return mw(this).description}})),Dp({global:!0,wrap:!0,forced:!jo,sham:!jo},{Symbol:qu}),Ip(Cl(gw),function(g){fw(g)}),Dp({target:Kf,stat:!0,forced:!jo},{useSetter:function(){yy=!0},useSimple:function(){yy=!1}}),Dp({target:"Object",stat:!0,forced:!jo,sham:!Es},{create:LE,defineProperty:Jf,defineProperties:Np,getOwnPropertyDescriptor:bw}),Dp({target:"Object",stat:!0,forced:!jo},{getOwnPropertyNames:$s}),vw(),ME(qu,Kf),Pp[An]=!0;var _w=Et,ww=_w&&!!Symbol.for&&!!Symbol.keyFor,FE=Ze,jE=Er,YE=ar,kw=Kn,by=Eo,Sw=ww,Lp=by("string-to-symbol-registry"),BE=by("symbol-to-string-registry");FE({target:"Symbol",stat:!0,forced:!Sw},{for:function(g){var k=kw(g);if(YE(Lp,k))return Lp[k];var C=jE("Symbol")(k);return Lp[k]=C,BE[C]=k,C}});var HE=Ze,xw=ar,WE=ur,GE=ut,zE=Eo,UE=ww,El=zE("symbol-to-string-registry");HE({target:"Symbol",stat:!0,forced:!UE},{keyFor:function(k){if(!WE(k))throw new TypeError(GE(k)+" is not a symbol");if(xw(El,k))return El[k]}});var Tw=Se,Nc=Tw([].slice),VE=Se,Xu=dn,_y=kt,Cw=it,Ew=Kn,Dw=VE([].push),Ow=function(g){if(_y(g))return g;if(Xu(g)){for(var k=g.length,C=[],E=0;E=k.length)return g.target=void 0,qp(void 0,!0);switch(g.kind){case"keys":return qp(C,!1);case"values":return qp(k[C],!1)}return qp([C,k[C]],!1)},"values"),dk.Arguments=dk.Array;var zD={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},Ny=zD,UD=b,vk=vi,pk=Yi,Kp=Ol,Zn=Wt,Rn=Zn("toStringTag");for(var Ly in Ny){var Fy=UD[Ly],jy=Fy&&Fy.prototype;jy&&vk(jy)!==Rn&&pk(jy,Rn,Ly),Kp[Ly]=Kp.Array}var mk=bD,Yy=mk,Qt=Wt,gk=kr.f,xt=Qt("metadata"),de=Function.prototype;de[xt]===void 0&&gk(de,xt,{value:null});var VD=Sr;VD("asyncDispose");var qD=Sr;qD("dispose");var yk=Sr;yk("metadata");var KD=Yy,XD=KD,ZD=Er,JD=Se,By=ZD("Symbol"),QD=By.keyFor,eO=JD(By.prototype.valueOf),bk=By.isRegisteredSymbol||function(k){try{return QD(eO(k))!==void 0}catch(C){return!1}},_k=Ze,tO=bk;_k({target:"Symbol",stat:!0},{isRegisteredSymbol:tO});for(var wk=Eo,Hy=Er,rO=Se,kk=ur,Sk=Wt,Ci=Hy("Symbol"),xk=Ci.isWellKnownSymbol,Zu=Hy("Object","getOwnPropertyNames"),iO=rO(Ci.prototype.valueOf),Wy=wk("wks"),Gy=0,Tk=Zu(Ci),nO=Tk.length;Gy=M?g?"":void 0:(F=Ik(E,D),F<55296||F>56319||D+1===M||(H=Ik(E,D+1))<56320||H>57343?g?Pk(E,D):F:g?Mk(E,D,D+2):(F-55296<<10)+(H-56320)+65536)}},vO={charAt:fO(!0)},pO=vO.charAt,mO=Kn,Ak=Uu,Rk=Ti,Nk=Ry,Lk="String Iterator",gO=Ak.set,yO=Ak.getterFor(Lk);Rk(String,"String",function(g){gO(this,{type:Lk,string:mO(g),index:0})},function(){var k=yO(this),C=k.string,E=k.index,D;return E>=C.length?Nk(void 0,!0):(D=pO(C,E),k.index+=D.length,Nk(D,!1))});var Fk=me,jk=Fk.f("iterator"),bO=jk,Yk=bO,Bk=Yk,Hk=Bk,_O=Hk,wO=_O,Wk=wO,kO=d(Wk);function Yc(g){return Yc=typeof jc=="function"&&typeof kO=="symbol"?function(k){return typeof k}:function(k){return k&&typeof jc=="function"&&k.constructor===jc&&k!==jc.prototype?"symbol":typeof k},Yc(g)}var SO=me,qy=SO.f("toPrimitive"),xO=qy,Ei=xO,TO=Ei,CO=TO,EO=CO,DO=EO,OO=DO,$O=d(OO);function PO(g,k){if(Yc(g)!=="object"||g===null)return g;var C=g[$O];if(C!==void 0){var E=C.call(g,k);if(Yc(E)!=="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(g)}function Gk(g){var k=PO(g,"string");return Yc(k)==="symbol"?k:String(k)}function zk(g,k){for(var C=0;C=0:H>B;B+=U)B in F&&(D=C(D,F[B],B,M));return D}},VO={left:UO(!1)},qO=w,Qp=function(g,k){var C=[][g];return!!C&&qO(function(){C.call(null,k||function(){return 1},1)})},KO=b,XO=it,Bc=XO(KO.process)==="process",ZO=Ze,JO=VO.left,r1=Qp,Jy=Ji,i1=Bc,QO=!i1&&Jy>79&&Jy<83,n1=QO||!r1("reduce");ZO({target:"Array",proto:!0,forced:n1},{reduce:function(k){var C=arguments.length;return JO(this,k,C,C>1?arguments[1]:void 0)}});var e$=tn,t$=e$("Array","reduce"),a1=Vt,eh=t$,em=Array.prototype,o1=function(g){var k=g.reduce;return g===em||a1(em,g)&&k===em.reduce?eh:k},th=o1,s1=th,r$=s1,l1=d(r$),i$=Ze,n$=Oc.filter,u1=ks,a$=u1("filter");i$({target:"Array",proto:!0,forced:!a$},{filter:function(k){return n$(this,k,arguments.length>1?arguments[1]:void 0)}});var o$=tn,s$=o$("Array","filter"),l$=Vt,u$=s$,Qy=Array.prototype,h$=function(g){var k=g.filter;return g===Qy||l$(Qy,g)&&k===Qy.filter?u$:k},e0=h$,c$=e0,d$=c$,Oi=d(d$),h1=Ze,f$=Oc.map,v$=ks,c1=v$("map");h1({target:"Array",proto:!0,forced:!c1},{map:function(k){return f$(this,k,arguments.length>1?arguments[1]:void 0)}});var p$=tn,m$=p$("Array","map"),g$=Vt,y$=m$,t0=Array.prototype,b$=function(g){var k=g.map;return g===t0||g$(t0,g)&&k===t0.map?y$:k},_$=b$,r0=_$,w$=r0,Jn=d(w$),k$=dn,S$=Bi,i0=vl,x$=ya,n0=function(g,k,C,E,D,M,F,H){for(var B=D,U=0,J=F?x$(F,H):!1,ie,re;U0&&k$(ie)?(re=S$(ie),B=n0(g,k,ie,re,B,M-1)-1):(i0(B+1),g[B]=ie),B++),U++;return B},T$=n0,d1=Ze,a0=T$,f1=_i,v1=Ar,co=Bi,$l=ws;d1({target:"Array",proto:!0},{flatMap:function(k){var C=v1(this),E=co(C),D;return f1(k),D=$l(C,0),D.length=a0(D,C,C,E,0,1,k,arguments.length>1?arguments[1]:void 0),D}});var C$=tn,E$=C$("Array","flatMap"),D$=Vt,o0=E$,s0=Array.prototype,xr=function(g){var k=g.flatMap;return g===s0||D$(s0,g)&&k===s0.flatMap?o0:k},pn=xr,O$=pn,$$=O$,p1=d($$);function P$(g){return new I$(g)}var Qn=function(){function g(k,C,E){var D,M,F;n(this,g),Oa(this,"_listeners",{add:Qu(D=this._add).call(D,this),remove:Qu(M=this._remove).call(M,this),update:Qu(F=this._update).call(F,this)}),this._source=k,this._transformers=C,this._target=E}return Ju(g,[{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(C){var E;return l1(E=this._transformers).call(E,function(D,M){return M(D)},C)}},{key:"_add",value:function(C,E){E!=null&&this._target.add(this._transformItems(this._source.get(E.items)))}},{key:"_update",value:function(C,E){E!=null&&this._target.update(this._transformItems(this._source.get(E.items)))}},{key:"_remove",value:function(C,E){E!=null&&this._target.remove(this._transformItems(E.oldData))}}]),g}(),I$=function(){function g(k){n(this,g),Oa(this,"_transformers",[]),this._source=k}return Ju(g,[{key:"filter",value:function(C){return this._transformers.push(function(E){return Oi(E).call(E,C)}),this}},{key:"map",value:function(C){return this._transformers.push(function(E){return Jn(E).call(E,C)}),this}},{key:"flatMap",value:function(C){return this._transformers.push(function(E){return p1(E).call(E,C)}),this}},{key:"to",value:function(C){return new Qn(this._source,this._transformers,C)}}]),g}(),M$=$t,m1=ji,g1=qa,y1=function(g,k,C){var E,D;m1(g);try{if(E=g1(g,"return"),!E){if(k==="throw")throw C;return C}E=M$(E,g)}catch(M){D=!0,E=M}if(k==="throw")throw C;if(D)throw E;return m1(E),C},A$=ji,R$=y1,l0=function(g,k,C,E){try{return E?k(A$(C)[0],C[1]):k(C)}catch(D){R$(g,"throw",D)}},N$=Wt,L$=Ol,b1=N$("iterator"),F$=Array.prototype,u0=function(g){return g!==void 0&&(L$.Array===g||F$[b1]===g)},j$=vi,_1=qa,Y$=Bt,B$=Ol,H$=Wt,W$=H$("iterator"),tm=function(g){if(!Y$(g))return _1(g,W$)||_1(g,"@@iterator")||B$[j$(g)]},G$=$t,z$=_i,h0=ji,U$=ut,V$=tm,q$=TypeError,c0=function(g,k){var C=arguments.length<2?V$(g):k;if(z$(C))return h0(G$(C,g));throw new q$(U$(g)+" is not iterable")},K$=ya,X$=$t,d0=Ar,Z$=l0,Ln=u0,w1=_s,J$=Bi,k1=Sa,Q$=c0,f0=tm,S1=Array,eP=function(k){var C=d0(k),E=w1(this),D=arguments.length,M=D>1?arguments[1]:void 0,F=M!==void 0;F&&(M=K$(M,D>2?arguments[2]:void 0));var H=f0(C),B=0,U,J,ie,re,se,$e;if(H&&!(this===S1&&Ln(H)))for(re=Q$(C,H),se=re.next,J=E?new this:[];!(ie=X$(se,re)).done;B++)$e=F?Z$(re,M,[ie.value,B],!0):ie.value,k1(J,B,$e);else for(U=J$(C),J=E?new this(U):S1(U);U>B;B++)$e=F?M(C[B],B):C[B],k1(J,B,$e);return J.length=B,J},tP=Wt,x1=tP("iterator"),rh=!1;try{var T1=0,C1={next:function(){return{done:!!T1++}},return:function(){rh=!0}};C1[x1]=function(){return this},Array.from(C1,function(){throw 2})}catch(g){}var E1=function(g,k){try{if(!k&&!rh)return!1}catch(D){return!1}var C=!1;try{var E={};E[x1]=function(){return{next:function(){return{done:C=!0}}}},g(E)}catch(D){}return C},D1=Ze,ih=eP,rP=E1,iP=!rP(function(g){Array.from(g)});D1({target:"Array",stat:!0,forced:iP},{from:ih});var nP=Ht,aP=nP.Array.from,oP=aP,O1=oP,sP=O1,rm=d(sP),lP=tm,uP=lP,hP=uP,$1=hP,cP=$1,dP=cP,fP=dP,P1=fP,I1=P1,M1=d(I1),v0=I1,Hc=d(v0),vP=Ze,Wc=dn;vP({target:"Array",stat:!0},{isArray:Wc});var A1=Ht,R1=A1.Array.isArray,pP=R1,p0=pP,mP=p0,gP=mP,yP=gP,N1=yP,bP=N1,L1=d(bP);function F1(g){if(L1(g))return g}var j1=Ct,_P=dn,m0=TypeError,g0=Object.getOwnPropertyDescriptor,wP=j1&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(g){return g instanceof TypeError}}(),Y1=wP?function(g,k){if(_P(g)&&!g0(g,"length").writable)throw new m0("Cannot set read only .length");return g.length=k}:function(g,k){return g.length=k},y0=Ze,B1=Ar,kP=Bi,SP=Y1,xP=vl,H1=w,W1=H1(function(){return[].push.call({length:4294967296},1)!==4294967297}),TP=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(g){return g instanceof TypeError}},CP=W1||!TP();y0({target:"Array",proto:!0,forced:CP},{push:function(k){var C=B1(this),E=kP(C),D=arguments.length;xP(E+D);for(var M=0;Mg.length)&&(k=g.length);for(var C=0,E=new Array(k);C1?arguments[1]:void 0)},vv=Ze,dm=pS;vv({target:"Array",proto:!0,forced:[].forEach!==dm},{forEach:dm});var KP=tn,I0=KP("Array","forEach"),XP=I0,ZP=XP,M0=vi,JP=ar,mS=Vt,QP=ZP,A0=Array.prototype,gS={DOMTokenList:!0,NodeList:!0},uh=function(g){var k=g.forEach;return g===A0||mS(A0,g)&&k===A0.forEach||JP(gS,M0(g))?QP:k},Ml=uh,Al=d(Ml),fm=Ze,yS=Se,pv=dn,R0=yS([].reverse),hh=[1,2];fm({target:"Array",proto:!0,forced:String(hh)===String(hh.reverse())},{reverse:function(){return pv(this)&&(this.length=this.length),R0(this)}});var bS=tn,N0=bS("Array","reverse"),_S=Vt,wS=N0,vm=Array.prototype,kS=function(g){var k=g.reverse;return g===vm||_S(vm,g)&&k===vm.reverse?wS:k},SS=kS,L0=SS,xS=L0,TS=d(xS),CS=ut,e4=TypeError,ES=function(g,k){if(!delete g[k])throw new e4("Cannot delete property "+CS(k)+" of "+CS(g))},DS=Ze,OS=Ar,t4=bl,r4=fl,$S=Bi,PS=Y1,IS=vl,F0=ws,MS=Sa,mv=ES,j0=ks,pm=j0("splice"),AS=Math.max,RS=Math.min;DS({target:"Array",proto:!0,forced:!pm},{splice:function(k,C){var E=OS(this),D=$S(E),M=t4(k,D),F=arguments.length,H,B,U,J,ie,re;for(F===0?H=B=0:F===1?(H=0,B=D-M):(H=F-2,B=RS(AS(r4(C),0),D-M)),IS(D+H-B),U=F0(E,B),J=0;JD-B+H;J--)mv(E,J-1)}else if(H>B)for(J=D-B;J>M;J--)ie=J+B-1,re=J+H-1,ie in E?E[re]=E[ie]:mv(E,re);for(J=0;JM;)for(var B=gm(arguments[M++]),U=F?LS(ch(B),F(B)):ch(B),J=U.length,ie=0,re;J>ie;)re=U[ie++],(!Rl||yv(H,B,re))&&(E[re]=B[re]);return E}:Nl,H0=Ze,W0=_v;H0({target:"Object",stat:!0,forced:Object.assign!==W0},{assign:W0});var G0=Ht,z0=G0.Object.assign,FS=z0,U0=FS,h4=U0,V0=d(h4),q0=Ze,jS=w,c4=Ar,YS=Lc,wv=zw,K0=jS(function(){YS(1)});q0({target:"Object",stat:!0,forced:K0,sham:!wv},{getPrototypeOf:function(k){return YS(c4(k))}});var d4=Ht,f4=d4.Object.getPrototypeOf,v4=f4,p4=v4,m4=Ze,g4=Ct,y4=In;m4({target:"Object",stat:!0,sham:!g4},{create:y4});var b4=Ht,_4=b4.Object,X0=function(k,C){return _4.create(k,C)},Tr=X0,ym=Tr,fh=ym,BS=d(fh),Z0=Ht,kv=G;Z0.JSON||(Z0.JSON={stringify:JSON.stringify});var w4=function(k,C,E){return kv(Z0.JSON.stringify,null,arguments)},bm=w4,k4=bm,HS=k4,WS=d(HS),S4=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",J0=TypeError,_m=function(g,k){if(gC,F=wm(E)?E:E4(E),H=M?US(arguments,C):[],B=M?function(){x4(F,this,H)}:F;return k?g(B,D):g(B)}:g},O4=Ze,qS=b,$4=VS,Sv=$4(qS.setInterval,!0);O4({global:!0,bind:!0,forced:qS.setInterval!==Sv},{setInterval:Sv});var KS=Ze,Q0=b,XS=VS,eb=XS(Q0.setTimeout,!0);KS({global:!0,bind:!0,forced:Q0.setTimeout!==eb},{setTimeout:eb});var ZS=Ht,JS=ZS.setTimeout,QS=JS,ex=d(QS),tb={exports:{}};(function(g){function k(E){if(E)return C(E);this._callbacks=new Map}function C(E){return Object.assign(E,k.prototype),E._callbacks=new Map,E}k.prototype.on=function(E,D){var F;let M=(F=this._callbacks.get(E))!=null?F:[];return M.push(D),this._callbacks.set(E,M),this},k.prototype.once=function(E,D){let M=(...F)=>{this.off(E,M),D.apply(this,F)};return M.fn=D,this.on(E,M),this},k.prototype.off=function(E,D){if(E===void 0&&D===void 0)return this._callbacks.clear(),this;if(D===void 0)return this._callbacks.delete(E),this;let M=this._callbacks.get(E);if(M){for(let[F,H]of M.entries())if(H===D||H.fn===D){M.splice(F,1);break}M.length===0?this._callbacks.delete(E):this._callbacks.set(E,M)}return this},k.prototype.emit=function(E,...D){let M=this._callbacks.get(E);if(M){let F=[...M];for(let H of F)H.apply(this,D)}return this},k.prototype.listeners=function(E){var D;return(D=this._callbacks.get(E))!=null?D:[]},k.prototype.listenerCount=function(E){if(E)return this.listeners(E).length;let D=0;for(let M of this._callbacks.values())D+=M.length;return D},k.prototype.hasListeners=function(E){return this.listenerCount(E)>0},k.prototype.addEventListener=k.prototype.on,k.prototype.removeListener=k.prototype.off,k.prototype.removeEventListener=k.prototype.off,k.prototype.removeAllListeners=k.prototype.off,g.exports=k})(tb);var km=tb.exports,Ll=d(km);function vo(){return vo=Object.assign||function(g){for(var k=1;k-1}function A4(g){if(mh(g,ph))return ph;var k=mh(g,Xr),C=mh(g,Vc);return k&&C?ph:k||C?k?Xr:Vc:mh(g,ab)?ab:Tv}var ox=function(){function g(C,E){this.manager=C,this.set(E)}var k=g.prototype;return k.set=function(E){E===ix&&(E=this.compute()),nb&&this.manager.element.style&&Rs[E]&&(this.manager.element.style[xv]=E),this.actions=E.toLowerCase().trim()},k.update=function(){this.set(this.manager.options.touchAction)},k.compute=function(){var E=[];return Fs(this.manager.recognizers,function(D){Cm(D.options.enable,[D])&&(E=E.concat(D.getTouchAction()))}),A4(E.join(" "))},k.preventDefaults=function(E){var D=E.srcEvent,M=E.offsetDirection;if(this.manager.session.prevented){D.preventDefault();return}var F=this.actions,H=mh(F,ph)&&!Rs[ph],B=mh(F,Vc)&&!Rs[Vc],U=mh(F,Xr)&&!Rs[Xr];if(H){var J=E.pointers.length===1,ie=E.distance<2,re=E.deltaTime<250;if(J&&ie&&re)return}if(!(U&&B)&&(H||B&&M&po||U&&M&Yl))return this.preventSrc(D)},k.preventSrc=function(E){this.manager.session.prevented=!0,E.preventDefault()},g}();function hb(g,k){for(;g;){if(g===k)return!0;g=g.parentNode}return!1}function sx(g){var k=g.length;if(k===1)return{x:Ui(g[0].clientX),y:Ui(g[0].clientY)};for(var C=0,E=0,D=0;D=Fl(k)?g<0?Ev:Dv:k<0?Ov:Ls}function R4(g,k){var C=k.center,E=g.offsetDelta||{},D=g.prevDelta||{},M=g.prevInput||{};(k.eventType===Vi||M.eventType===Zr)&&(D=g.prevDelta={x:M.deltaX||0,y:M.deltaY||0},E=g.offsetDelta={x:C.x,y:C.y}),k.deltaX=D.x+(C.x-E.x),k.deltaY=D.y+(C.y-E.y)}function Om(g,k,C){return{x:k/g||0,y:C/g||0}}function N4(g,k){return Dm(k[0],k[1],Ia)/Dm(g[0],g[1],Ia)}function L4(g,k){return Bl(k[1],k[0],Ia)+Bl(g[1],g[0],Ia)}function F4(g,k){var C=g.lastInterval||k,E=k.timeStamp-C.timeStamp,D,M,F,H;if(k.eventType!==Fn&&(E>M4||C.velocity===void 0)){var B=k.deltaX-C.deltaX,U=k.deltaY-C.deltaY,J=Om(E,B,U);M=J.x,F=J.y,D=Fl(J.x)>Fl(J.y)?J.x:J.y,H=cb(B,U),g.lastInterval=k}else D=C.velocity,M=C.velocityX,F=C.velocityY,H=C.direction;k.velocity=D,k.velocityX=M,k.velocityY=F,k.direction=H}function lx(g,k){var C=g.session,E=k.pointers,D=E.length;C.firstInput||(C.firstInput=Em(k)),D>1&&!C.firstMultiple?C.firstMultiple=Em(k):D===1&&(C.firstMultiple=!1);var M=C.firstInput,F=C.firstMultiple,H=F?F.center:M.center,B=k.center=sx(E);k.timeStamp=ib(),k.deltaTime=k.timeStamp-M.timeStamp,k.angle=Bl(H,B),k.distance=Dm(H,B),R4(C,k),k.offsetDirection=cb(k.deltaX,k.deltaY);var U=Om(k.deltaTime,k.deltaX,k.deltaY);k.overallVelocityX=U.x,k.overallVelocityY=U.y,k.overallVelocity=Fl(U.x)>Fl(U.y)?U.x:U.y,k.scale=F?N4(F.pointers,E):1,k.rotation=F?L4(F.pointers,E):0,k.maxPointers=C.prevInput?k.pointers.length>C.prevInput.maxPointers?k.pointers.length:C.prevInput.maxPointers:k.pointers.length,F4(C,k);var J=g.element,ie=k.srcEvent,re;ie.composedPath?re=ie.composedPath()[0]:ie.path?re=ie.path[0]:re=ie.target,hb(re,J)&&(J=re),k.target=J}function j4(g,k,C){var E=C.pointers.length,D=C.changedPointers.length,M=k&Vi&&E-D===0,F=k&(Zr|Fn)&&E-D===0;C.isFirst=!!M,C.isFinal=!!F,M&&(g.session={}),C.eventType=k,lx(g,C),g.emit("hammer.input",C),g.recognize(C),g.session.prevInput=C}function Pv(g){return g.trim().split(/\s+/g)}function qc(g,k,C){Fs(Pv(k),function(E){g.addEventListener(E,C,!1)})}function Iv(g,k,C){Fs(Pv(k),function(E){g.removeEventListener(E,C,!1)})}function ux(g){var k=g.ownerDocument||g;return k.defaultView||k.parentWindow||window}var gh=function(){function g(C,E){var D=this;this.manager=C,this.callback=E,this.element=C.element,this.target=C.options.inputTarget,this.domHandler=function(M){Cm(C.options.enable,[C])&&D.handler(M)},this.init()}var k=g.prototype;return k.handler=function(){},k.init=function(){this.evEl&&qc(this.element,this.evEl,this.domHandler),this.evTarget&&qc(this.target,this.evTarget,this.domHandler),this.evWin&&qc(ux(this.element),this.evWin,this.domHandler)},k.destroy=function(){this.evEl&&Iv(this.element,this.evEl,this.domHandler),this.evTarget&&Iv(this.target,this.evTarget,this.domHandler),this.evWin&&Iv(ux(this.element),this.evWin,this.domHandler)},g}();function yh(g,k,C){if(g.indexOf&&!C)return g.indexOf(k);for(var E=0;EB[k]}):E=E.sort()),E}var dx={touchstart:Vi,touchmove:K,touchend:Zr,touchcancel:Fn},B4="touchstart touchmove touchend touchcancel",Pm=function(g){$a(k,g);function k(){var E;return k.prototype.evTarget=B4,E=g.apply(this,arguments)||this,E.targetIds={},E}var C=k.prototype;return C.handler=function(D){var M=dx[D.type],F=fx.call(this,D,M);F&&this.callback(this.manager,M,{pointers:F[0],changedPointers:F[1],pointerType:Cv,srcEvent:D})},k}(gh);function fx(g,k){var C=Mv(g.touches),E=this.targetIds;if(k&(Vi|K)&&C.length===1)return E[C[0].identifier]=!0,[C,C];var D,M,F=Mv(g.changedTouches),H=[],B=this.target;if(M=C.filter(function(U){return hb(U.target,B)}),k===Vi)for(D=0;D-1&&D.splice(H,1)};setTimeout(M,W4)}}function G4(g,k){g&Vi?(this.primaryTouch=k.changedPointers[0].identifier,pb.call(this,k)):g&(Zr|Fn)&&pb.call(this,k)}function z4(g){for(var k=g.srcEvent.clientX,C=g.srcEvent.clientY,E=0;E-1&&this.requireFail.splice(D,1),this},k.hasRequireFailures=function(){return this.requireFail.length>0},k.canRecognizeWith=function(E){return!!this.simultaneous[E.id]},k.emit=function(E){var D=this,M=this.state;function F(H){D.manager.emit(H,E)}M=js&&F(D.options.event+Jc(M))},k.tryEmit=function(E){if(this.canEmit())return this.emit(E);this.state=Ma},k.canEmit=function(){for(var E=0;EM.threshold&&B&M.direction},C.attrTest=function(D){return Uo.prototype.attrTest.call(this,D)&&(this.state&yn||!(this.state&yn)&&this.directionTest(D))},C.emit=function(D){this.pX=D.deltaX,this.pY=D.deltaY;var M=yx(D.direction);M&&(D.additionalEvent=this.options.event+M),g.prototype.emit.call(this,D)},k}(Uo),Im=function(g){$a(k,g);function k(E){return E===void 0&&(E={}),g.call(this,vo({event:"swipe",threshold:10,velocity:.3,direction:po|Yl,pointers:1},E))||this}var C=k.prototype;return C.getTouchAction=function(){return gb.prototype.getTouchAction.call(this)},C.attrTest=function(D){var M=this.options.direction,F;return M&(po|Yl)?F=D.overallVelocity:M&po?F=D.overallVelocityX:M&Yl&&(F=D.overallVelocityY),g.prototype.attrTest.call(this,D)&&M&D.offsetDirection&&D.distance>this.options.threshold&&D.maxPointers===this.options.pointers&&Fl(F)>this.options.velocity&&D.eventType&Zr},C.emit=function(D){var M=yx(D.offsetDirection);M&&this.manager.emit(this.options.event+M,D),this.manager.emit(this.options.event,D)},k}(Uo),yb=function(g){$a(k,g);function k(E){return E===void 0&&(E={}),g.call(this,vo({event:"pinch",threshold:0,pointers:2},E))||this}var C=k.prototype;return C.getTouchAction=function(){return[ph]},C.attrTest=function(D){return g.prototype.attrTest.call(this,D)&&(Math.abs(D.scale-1)>this.options.threshold||this.state&yn)},C.emit=function(D){if(D.scale!==1){var M=D.scale<1?"in":"out";D.additionalEvent=this.options.event+M}g.prototype.emit.call(this,D)},k}(Uo),bx=function(g){$a(k,g);function k(E){return E===void 0&&(E={}),g.call(this,vo({event:"rotate",threshold:0,pointers:2},E))||this}var C=k.prototype;return C.getTouchAction=function(){return[ph]},C.attrTest=function(D){return g.prototype.attrTest.call(this,D)&&(Math.abs(D.rotation)>this.options.threshold||this.state&yn)},k}(Uo),Mm=function(g){$a(k,g);function k(E){var D;return E===void 0&&(E={}),D=g.call(this,vo({event:"press",pointers:1,time:251,threshold:9},E))||this,D._timer=null,D._input=null,D}var C=k.prototype;return C.getTouchAction=function(){return[Tv]},C.process=function(D){var M=this,F=this.options,H=D.pointers.length===F.pointers,B=D.distanceF.time;if(this._input=D,!B||!H||D.eventType&(Zr|Fn)&&!U)this.reset();else if(D.eventType&Vi)this.reset(),this._timer=setTimeout(function(){M.state=Go,M.tryEmit()},F.time);else if(D.eventType&Zr)return Go;return Ma},C.reset=function(){clearTimeout(this._timer)},C.emit=function(D){this.state===Go&&(D&&D.eventType&Zr?this.manager.emit(this.options.event+"up",D):(this._input.timeStamp=ib(),this.manager.emit(this.options.event,this._input)))},k}(Qc),_x={domEvents:!1,touchAction:ix,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},wx=[[bx,{enable:!1}],[yb,{enable:!1},["rotate"]],[Im,{direction:po}],[gb,{direction:po},["swipe"]],[zo],[zo,{event:"doubletap",taps:2},["tap"]],[Mm]],U4=1,Am=2;function kx(g,k){var C=g.element;if(C.style){var E;Fs(g.options.cssProps,function(D,M){E=xm(C.style,M),k?(g.oldCssProps[E]=C.style[E],C.style[E]=D):C.style[E]=g.oldCssProps[E]||""}),k||(g.oldCssProps={})}}function Sx(g,k){var C=document.createEvent("Event");C.initEvent(g,!0,!0),C.gesture=k,k.target.dispatchEvent(C)}var xx=function(){function g(C,E){var D=this;this.options=vh({},_x,E||{}),this.options.inputTarget=this.options.inputTarget||C,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=C,this.input=mb(this),this.touchAction=new ox(this,this.options.touchAction),kx(this,!0),Fs(this.options.recognizers,function(M){var F=D.add(new M[0](M[1]));M[2]&&F.recognizeWith(M[2]),M[3]&&F.requireFailure(M[3])},this)}var k=g.prototype;return k.set=function(E){return vh(this.options,E),E.touchAction&&this.touchAction.update(),E.inputTarget&&(this.input.destroy(),this.input.target=E.inputTarget,this.input.init()),this},k.stop=function(E){this.session.stopped=E?Am:U4},k.recognize=function(E){var D=this.session;if(!D.stopped){this.touchAction.preventDefaults(E);var M,F=this.recognizers,H=D.curRecognizer;(!H||H&&H.state&Go)&&(D.curRecognizer=null,H=null);for(var B=0;B\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",F=window.console&&(window.console.warn||window.console.log);return F&&F.call(window.console,E,M),g.apply(this,arguments)}}var bb=ed(function(g,k,C){for(var E=Object.keys(k),D=0;D=g.length?{done:!0}:{done:!1,value:g[E++]}},e:function(U){throw U},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,F=!1,H;return{s:function(){C=C.call(g)},n:function(){var U=C.next();return M=U.done,U},e:function(U){F=!0,H=U},f:function(){try{!M&&C.return!=null&&C.return()}finally{if(F)throw H}}}}function Ex(g,k){var C;if(g){if(typeof g=="string")return kb(g,k);var E=Ms(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return rm(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return kb(g,k)}}function kb(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);C1?C-1:0),D=1;D2){var E;return Nv.apply(void 0,Gi(E=[Fm(k[0],k[1])]).call(E,Kr(Ms(k).call(k,2))))}var D=k[0],M=k[1];if(D instanceof Date&&M instanceof Date)return D.setTime(M.getTime()),D;var F=Rv($0(M)),H;try{for(F.s();!(H=F.n()).done;){var B=H.value;Object.prototype.propertyIsEnumerable.call(M,B)&&(M[B]===Lm?delete D[B]:D[B]!==null&&M[B]!==null&&typeof D[B]=="object"&&typeof M[B]=="object"&&!zi(D[B])&&!zi(M[B])?D[B]=Nv(D[B],M[B]):D[B]=Sb(M[B]))}}catch(U){F.e(U)}finally{F.f()}return D}function Sb(g){return zi(g)?Jn(g).call(g,function(k){return Sb(k)}):typeof g=="object"&&g!==null?g instanceof Date?new Date(g.getTime()):Nv({},g):g}function Lv(g){for(var k=0,C=P0(g);kF;)B=E(C,H=D[F++]),B!==void 0&&Ux(M,H,B);return M}});var mI=Ht,gI=mI.Object.getOwnPropertyDescriptors,Vx=gI,yI=Vx,bI=yI,qx=d(bI),Kx={exports:{}},_I=Ze,wI=Ct,Xx=gl.f;_I({target:"Object",stat:!0,forced:Object.defineProperties!==Xx,sham:!wI},{defineProperties:Xx});var kI=Ht,Zx=kI.Object,SI=Kx.exports=function(k,C){return Zx.defineProperties(k,C)};Zx.defineProperties.sham&&(SI.sham=!0);var xI=Kx.exports,TI=xI,CI=TI,EI=CI,DI=d(EI),OI=Oo,Jx=d(OI);function Fv(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}var $I=ym,PI=$I,Qx=PI,II=Qx,eT=II,tT=d(eT),MI=Ze,AI=ak;MI({target:"Object",stat:!0},{setPrototypeOf:AI});var RI=Ht,NI=RI.Object.setPrototypeOf,LI=NI,rT=LI,FI=rT,jv=FI,iT=jv,nT=iT,Vm=nT,Eb=d(Vm),jI=e1,qm=jI,YI=qm,BI=YI,aT=BI,Db=d(aT);function Ob(g,k){var C;return Ob=Eb?Db(C=Eb).call(C):function(D,M){return D.__proto__=M,D},Ob(g,k)}function oT(g,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=tT(k&&k.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),dl(g,"prototype",{writable:!1}),k&&Ob(g,k)}function sT(g,k){if(k&&(Yc(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fv(g)}var $b=p4,HI=$b,WI=HI,GI=WI,Pb=GI,jn=d(Pb);function wh(g){var k;return wh=Eb?Db(k=jn).call(k):function(E){return E.__proto__||jn(E)},wh(g)}var Ib={exports:{}},Km={exports:{}};(function(g){var k=Xp,C=Wk;function E(D){return g.exports=E=typeof k=="function"&&typeof C=="symbol"?function(M){return typeof M}:function(M){return M&&typeof k=="function"&&M.constructor===k&&M!==k.prototype?"symbol":typeof M},g.exports.__esModule=!0,g.exports.default=g.exports,E(D)}g.exports=E,g.exports.__esModule=!0,g.exports.default=g.exports})(Km);var lT=Km.exports,uT=uh,hT=uT,Mb=hT,Ab=Mb,Xm=Ab,cT=ar,dT=lm,Zm=$r,zI=kr,Rb=function(g,k,C){for(var E=dT(k),D=zI.f,M=Zm.f,F=0;Fie;ie++)if(se=yt(g[ie]),se&&Fb(Sh,se))return se;return new Qm(!1)}U=aM(g,J)}for($e=M?g.next:U.next;!(ot=mT($e,U)).done;){try{se=yt(ot.value)}catch(St){Ul(U,"throw",St)}if(typeof se=="object"&&se&&Fb(Sh,se))return se}return new Qm(!1)},Yv=Kn,bT=function(g,k){return g===void 0?arguments.length<2?"":k:Yv(g)},Bv=Ze,eg=Vt,_T=Lc,dt=ak,pt=Rb,or=In,tg=Yi,Vl=ke,Qr=kh,rd=tM,sM=Yn,lM=bT,uM=Wt,hM=uM("toStringTag"),Hv=Error,cM=[].push,id=function(k,C){var E=eg(Wv,this),D;dt?D=dt(new Hv,E?_T(this):Wv):(D=E?this:or(Wv),tg(D,hM,"Error")),C!==void 0&&tg(D,"message",lM(C)),rd(D,id,D.stack,1),arguments.length>2&&Qr(D,arguments[2]);var M=[];return sM(k,cM,{that:M}),tg(D,"errors",M),D};dt?dt(id,Hv):pt(id,Hv,{name:!0});var Wv=id.prototype=or(Hv.prototype,{constructor:Vl(1,id),message:Vl(1,""),name:Vl(1,"AggregateError")});Bv({global:!0},{AggregateError:id});var jb=Er,wT=le,ql=Wt,Ra=Ct,Na=ql("species"),rg=function(g){var k=jb(g);Ra&&k&&!k[Na]&&wT(k,Na,{configurable:!0,get:function(){return this}})},nd=Vt,Yb=TypeError,ig=function(g,k){if(nd(k,g))return g;throw new Yb("Incorrect invocation")},kT=ji,ST=$x,dM=Bt,Bb=Wt,Gv=Bb("species"),ng=function(g,k){var C=kT(g).constructor,E;return C===void 0||dM(E=kT(C)[Gv])?k:ST(E)},_n=hi,$i=/(?:ipad|iphone|ipod).*applewebkit/i.test(_n),ei=b,Bn=G,ag=ya,qt=kt,mt=ar,At=w,Xt=Si,ad=Nc,gr=du,od=_m,fM=$i,vM=Bc,La=ei.setImmediate,xT=ei.clearImmediate,pM=ei.process,s=ei.Dispatch,r=ei.Function,u=ei.MessageChannel,o=ei.String,c=0,f={},m="onreadystatechange",S,x,O,I;At(function(){S=ei.location});var N=function(g){if(mt(f,g)){var k=f[g];delete f[g],k()}},L=function(g){return function(){N(g)}},z=function(g){N(g.data)},W=function(g){ei.postMessage(o(g),S.protocol+"//"+S.host)};(!La||!xT)&&(La=function(k){od(arguments.length,1);var C=qt(k)?k:r(k),E=ad(arguments,1);return f[++c]=function(){Bn(C,void 0,E)},x(c),c},xT=function(k){delete f[k]},vM?x=function(g){pM.nextTick(L(g))}:s&&s.now?x=function(g){s.now(L(g))}:u&&!fM?(O=new u,I=O.port2,O.port1.onmessage=z,x=ag(I.postMessage,I)):ei.addEventListener&&qt(ei.postMessage)&&!ei.importScripts&&S&&S.protocol!=="file:"&&!At(W)?(x=W,ei.addEventListener("message",z,!1)):m in gr("script")?x=function(g){Xt.appendChild(gr("script"))[m]=function(){Xt.removeChild(this),N(g)}}:x=function(g){setTimeout(L(g),0)});var X={set:La},Z=function(){this.head=null,this.tail=null};Z.prototype={add:function(g){var k={item:g,next:null},C=this.tail;C?C.next=k:this.head=k,this.tail=k},get:function(){var g=this.head;if(g){var k=this.head=g.next;return k===null&&(this.tail=null),g.item}}};var Q=Z,ne=hi,he=/ipad|iphone|ipod/i.test(ne)&&typeof Pebble!="undefined",Te=hi,Re=/web0s(?!.*chrome)/i.test(Te),xe=b,De=ya,fe=$r.f,We=X.set,at=Q,Gt=$i,yr=he,Hn=Re,Hs=Bc,xh=xe.MutationObserver||xe.WebKitMutationObserver,sd=xe.document,og=xe.process,zv=xe.Promise,rn=fe(xe,"queueMicrotask"),Uv=rn&&rn.value,Ws,Vv,mM,TT,IL;if(!Uv){var CT=new at,ET=function(){var g,k;for(Hs&&(g=og.domain)&&g.exit();k=CT.get();)try{k()}catch(C){throw CT.head&&Ws(),C}g&&g.enter()};!Gt&&!Hs&&!Hn&&xh&&sd?(Vv=!0,mM=sd.createTextNode(""),new xh(ET).observe(mM,{characterData:!0}),Ws=function(){mM.data=Vv=!Vv}):!yr&&zv&&zv.resolve?(TT=zv.resolve(void 0),TT.constructor=zv,IL=De(TT.then,TT),Ws=function(){IL(ET)}):Hs?Ws=function(){og.nextTick(ET)}:(We=De(We,xe),Ws=function(){We(ET)}),Uv=function(g){CT.head||Ws(),CT.add(g)}}var wW=Uv,kW=function(g,k){try{arguments.length===1?console.error(g):console.error(g,k)}catch(C){}},sg=function(g){try{return{error:!1,value:g()}}catch(k){return{error:!0,value:k}}},SW=b,lg=SW.Promise,ML=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",xW=ML,TW=Bc,CW=!xW&&!TW&&typeof window=="object"&&typeof document=="object",EW=b,Hb=lg,DW=kt,OW=Rr,$W=gs,PW=Wt,IW=CW,MW=ML,gM=Ji,AL=Hb&&Hb.prototype,AW=PW("species"),RL=!1,NL=DW(EW.PromiseRejectionEvent),RW=OW("Promise",function(){var g=$W(Hb),k=g!==String(Hb);if(!k&&gM===66||!(AL.catch&&AL.finally))return!0;if(!gM||gM<51||!/native code/.test(g)){var C=new Hb(function(M){M(1)}),E=function(M){M(function(){},function(){})},D=C.constructor={};if(D[AW]=E,RL=C.then(function(){})instanceof E,!RL)return!0}return!k&&(IW||MW)&&!NL}),Wb={CONSTRUCTOR:RW,REJECTION_EVENT:NL},Kl={},LL=_i,NW=TypeError,LW=function(g){var k,C;this.promise=new g(function(E,D){if(k!==void 0||C!==void 0)throw new NW("Bad Promise constructor");k=E,C=D}),this.resolve=LL(k),this.reject=LL(C)};Kl.f=function(g){return new LW(g)};var FW=Ze,DT=Bc,ld=b,Gb=$t,jW=j,YW=vn,BW=rg,HW=_i,yM=kt,WW=ct,GW=ig,zW=ng,FL=X.set,bM=wW,UW=kW,VW=sg,qW=Q,jL=Uu,_M=lg,YL=Wb,BL=Kl,OT="Promise",HL=YL.CONSTRUCTOR,KW=YL.REJECTION_EVENT,wM=jL.getterFor(OT),XW=jL.set,ZW=_M&&_M.prototype,ug=_M,kM=ZW,WL=ld.TypeError,SM=ld.document,xM=ld.process,TM=BL.f,JW=TM,QW=!!(SM&&SM.createEvent&&ld.dispatchEvent),GL="unhandledrejection",eG="rejectionhandled",zL=0,UL=1,tG=2,CM=1,VL=2,$T,qL,rG,KL=function(g){var k;return WW(g)&&yM(k=g.then)?k:!1},XL=function(g,k){var C=k.value,E=k.state===UL,D=E?g.ok:g.fail,M=g.resolve,F=g.reject,H=g.domain,B,U,J;try{D?(E||(k.rejection===VL&&nG(k),k.rejection=CM),D===!0?B=C:(H&&H.enter(),B=D(C),H&&(H.exit(),J=!0)),B===g.promise?F(new WL("Promise-chain cycle")):(U=KL(B))?Gb(U,B,M,F):M(B)):F(C)}catch(ie){H&&!J&&H.exit(),F(ie)}},ZL=function(g,k){g.notified||(g.notified=!0,bM(function(){for(var C=g.reactions,E;E=C.get();)XL(E,g);g.notified=!1,k&&!g.rejection&&iG(g)}))},JL=function(g,k,C){var E,D;QW?(E=SM.createEvent("Event"),E.promise=k,E.reason=C,E.initEvent(g,!1,!0),ld.dispatchEvent(E)):E={promise:k,reason:C},!KW&&(D=ld["on"+g])?D(E):g===GL&&UW("Unhandled promise rejection",C)},iG=function(g){Gb(FL,ld,function(){var k=g.facade,C=g.value,E=QL(g),D;if(E&&(D=VW(function(){DT?xM.emit("unhandledRejection",C,k):JL(GL,k,C)}),g.rejection=DT||QL(g)?VL:CM,D.error))throw D.value})},QL=function(g){return g.rejection!==CM&&!g.parent},nG=function(g){Gb(FL,ld,function(){var k=g.facade;DT?xM.emit("rejectionHandled",k):JL(eG,k,g.value)})},hg=function(g,k,C){return function(E){g(k,E,C)}},cg=function(g,k,C){g.done||(g.done=!0,C&&(g=C),g.value=k,g.state=tG,ZL(g,!0))},EM=function(g,k,C){if(!g.done){g.done=!0,C&&(g=C);try{if(g.facade===k)throw new WL("Promise can't be resolved itself");var E=KL(k);E?bM(function(){var D={done:!1};try{Gb(E,k,hg(EM,D,g),hg(cg,D,g))}catch(M){cg(D,M,g)}}):(g.value=k,g.state=UL,ZL(g,!1))}catch(D){cg({done:!1},D,g)}}};HL&&(ug=function(k){GW(this,kM),HW(k),Gb($T,this);var C=wM(this);try{k(hg(EM,C),hg(cg,C))}catch(E){cg(C,E)}},kM=ug.prototype,$T=function(k){XW(this,{type:OT,done:!1,notified:!1,parent:!1,reactions:new qW,rejection:!1,state:zL,value:void 0})},$T.prototype=jW(kM,"then",function(k,C){var E=wM(this),D=TM(zW(this,ug));return E.parent=!0,D.ok=yM(k)?k:!0,D.fail=yM(C)&&C,D.domain=DT?xM.domain:void 0,E.state===zL?E.reactions.add(D):bM(function(){XL(D,E)}),D.promise}),qL=function(){var g=new $T,k=wM(g);this.promise=g,this.resolve=hg(EM,k),this.reject=hg(cg,k)},BL.f=TM=function(g){return g===ug||g===rG?new qL(g):JW(g)}),FW({global:!0,wrap:!0,forced:HL},{Promise:ug}),YW(ug,OT,!1,!0),BW(OT);var aG=lg,oG=E1,sG=Wb.CONSTRUCTOR,PT=sG||!oG(function(g){aG.all(g).then(void 0,function(){})}),lG=Ze,uG=$t,hG=_i,cG=Kl,dG=sg,fG=Yn,vG=PT;lG({target:"Promise",stat:!0,forced:vG},{all:function(k){var C=this,E=cG.f(C),D=E.resolve,M=E.reject,F=dG(function(){var H=hG(C.resolve),B=[],U=0,J=1;fG(k,function(ie){var re=U++,se=!1;J++,uG(H,C,ie).then(function($e){se||(se=!0,B[re]=$e,--J||D(B))},M)}),--J||D(B)});return F.error&&M(F.value),E.promise}});var pG=Ze,mG=Wb.CONSTRUCTOR,eF=lg;eF&&eF.prototype,pG({target:"Promise",proto:!0,forced:mG,real:!0},{catch:function(g){return this.then(void 0,g)}});var gG=Ze,yG=$t,bG=_i,_G=Kl,wG=sg,kG=Yn,SG=PT;gG({target:"Promise",stat:!0,forced:SG},{race:function(k){var C=this,E=_G.f(C),D=E.reject,M=wG(function(){var F=bG(C.resolve);kG(k,function(H){yG(F,C,H).then(E.resolve,D)})});return M.error&&D(M.value),E.promise}});var xG=Ze,TG=$t,CG=Kl,EG=Wb.CONSTRUCTOR;xG({target:"Promise",stat:!0,forced:EG},{reject:function(k){var C=CG.f(this);return TG(C.reject,void 0,k),C.promise}});var DG=ji,OG=ct,$G=Kl,tF=function(g,k){if(DG(g),OG(k)&&k.constructor===g)return k;var C=$G.f(g),E=C.resolve;return E(k),C.promise},PG=Ze,IG=Er,MG=Cd,AG=lg,RG=Wb.CONSTRUCTOR,NG=tF,LG=IG("Promise"),FG=!RG;PG({target:"Promise",stat:!0,forced:MG},{resolve:function(k){return NG(FG&&this===LG?AG:this,k)}});var jG=Ze,YG=$t,BG=_i,HG=Kl,WG=sg,GG=Yn,zG=PT;jG({target:"Promise",stat:!0,forced:zG},{allSettled:function(k){var C=this,E=HG.f(C),D=E.resolve,M=E.reject,F=WG(function(){var H=BG(C.resolve),B=[],U=0,J=1;GG(k,function(ie){var re=U++,se=!1;J++,YG(H,C,ie).then(function($e){se||(se=!0,B[re]={status:"fulfilled",value:$e},--J||D(B))},function($e){se||(se=!0,B[re]={status:"rejected",reason:$e},--J||D(B))})}),--J||D(B)});return F.error&&M(F.value),E.promise}});var UG=Ze,VG=$t,qG=_i,KG=Er,XG=Kl,ZG=sg,JG=Yn,QG=PT,rF="No one promise resolved";UG({target:"Promise",stat:!0,forced:QG},{any:function(k){var C=this,E=KG("AggregateError"),D=XG.f(C),M=D.resolve,F=D.reject,H=ZG(function(){var B=qG(C.resolve),U=[],J=0,ie=1,re=!1;JG(k,function(se){var $e=J++,ot=!1;ie++,VG(B,C,se).then(function(st){ot||re||(re=!0,M(st))},function(st){ot||re||(ot=!0,U[$e]=st,--ie||F(new E(U,rF)))})}),--ie||F(new E(U,rF))});return H.error&&F(H.value),D.promise}});var ez=Ze,DM=lg,tz=w,rz=Er,iz=kt,nz=ng,iF=tF,az=DM&&DM.prototype,oz=!!DM&&tz(function(){az.finally.call({then:function(){}},function(){})});ez({target:"Promise",proto:!0,real:!0,forced:oz},{finally:function(g){var k=nz(this,rz("Promise")),C=iz(g);return this.then(C?function(E){return iF(k,g()).then(function(){return E})}:g,C?function(E){return iF(k,g()).then(function(){throw E})}:g)}});var sz=Ht,lz=sz.Promise,uz=lz,hz=uz,cz=Ze,dz=Kl;cz({target:"Promise",stat:!0},{withResolvers:function(){var k=dz.f(this);return{promise:k.promise,resolve:k.resolve,reject:k.reject}}});var fz=hz,vz=fz,pz=Ze,mz=Kl,gz=sg;pz({target:"Promise",stat:!0,forced:!0},{try:function(g){var k=mz.f(this),C=gz(g);return(C.error?k.reject:k.resolve)(C.value),k.promise}});var yz=vz,bz=yz,_z=bz,wz=L0,kz=wz,Sz=kz,xz=Sz,Tz=xz;(function(g){var k=lT.default,C=nc,E=Xp,D=eT,M=Pb,F=Xm,H=q1,B=Vm,U=_z,J=Tz,ie=ra;function re(){g.exports=re=function(){return $e},g.exports.__esModule=!0,g.exports.default=g.exports;var se,$e={},ot=Object.prototype,st=ot.hasOwnProperty,yt=C||function(Me,we,Ce){Me[we]=Ce.value},St=typeof E=="function"?E:{},qi=St.iterator||"@@iterator",ti=St.asyncIterator||"@@asyncIterator",kn=St.toStringTag||"@@toStringTag";function ri(Me,we,Ce){return C(Me,we,{value:Ce,enumerable:!0,configurable:!0,writable:!0}),Me[we]}try{ri({},"")}catch(Me){ri=function(Ce,et,_t){return Ce[et]=_t}}function Ch(Me,we,Ce,et){var _t=we&&we.prototype instanceof fg?we:fg,vt=D(_t.prototype),gi=new qM(et||[]);return yt(vt,"_invoke",{value:MV(Me,Ce,gi)}),vt}function mo(Me,we,Ce){try{return{type:"normal",arg:Me.call(we,Ce)}}catch(et){return{type:"throw",arg:et}}}$e.wrap=Ch;var hd="suspendedStart",dg="suspendedYield",cd="executing",Zl="completed",Vo={};function fg(){}function LT(){}function Xv(){}var zM={};ri(zM,qi,function(){return this});var UM=M,FT=UM&&UM(UM(KM([])));FT&&FT!==ot&&st.call(FT,qi)&&(zM=FT);var vg=Xv.prototype=fg.prototype=D(zM);function jF(Me){var we;F(we=["next","throw","return"]).call(we,function(Ce){ri(Me,Ce,function(et){return this._invoke(Ce,et)})})}function jT(Me,we){function Ce(_t,vt,gi,na){var ja=mo(Me[_t],Me,vt);if(ja.type!=="throw"){var Zv=ja.arg,dd=Zv.value;return dd&&k(dd)=="object"&&st.call(dd,"__await")?we.resolve(dd.__await).then(function(Jv){Ce("next",Jv,gi,na)},function(Jv){Ce("throw",Jv,gi,na)}):we.resolve(dd).then(function(Jv){Zv.value=Jv,gi(Zv)},function(Jv){return Ce("throw",Jv,gi,na)})}na(ja.arg)}var et;yt(this,"_invoke",{value:function(vt,gi){function na(){return new we(function(ja,Zv){Ce(vt,gi,ja,Zv)})}return et=et?et.then(na,na):na()}})}function MV(Me,we,Ce){var et=hd;return function(_t,vt){if(et===cd)throw new Error("Generator is already running");if(et===Zl){if(_t==="throw")throw vt;return{value:se,done:!0}}for(Ce.method=_t,Ce.arg=vt;;){var gi=Ce.delegate;if(gi){var na=YF(gi,Ce);if(na){if(na===Vo)continue;return na}}if(Ce.method==="next")Ce.sent=Ce._sent=Ce.arg;else if(Ce.method==="throw"){if(et===hd)throw et=Zl,Ce.arg;Ce.dispatchException(Ce.arg)}else Ce.method==="return"&&Ce.abrupt("return",Ce.arg);et=cd;var ja=mo(Me,we,Ce);if(ja.type==="normal"){if(et=Ce.done?Zl:dg,ja.arg===Vo)continue;return{value:ja.arg,done:Ce.done}}ja.type==="throw"&&(et=Zl,Ce.method="throw",Ce.arg=ja.arg)}}}function YF(Me,we){var Ce=we.method,et=Me.iterator[Ce];if(et===se)return we.delegate=null,Ce==="throw"&&Me.iterator.return&&(we.method="return",we.arg=se,YF(Me,we),we.method==="throw")||Ce!=="return"&&(we.method="throw",we.arg=new TypeError("The iterator does not provide a '"+Ce+"' method")),Vo;var _t=mo(et,Me.iterator,we.arg);if(_t.type==="throw")return we.method="throw",we.arg=_t.arg,we.delegate=null,Vo;var vt=_t.arg;return vt?vt.done?(we[Me.resultName]=vt.value,we.next=Me.nextLoc,we.method!=="return"&&(we.method="next",we.arg=se),we.delegate=null,Vo):vt:(we.method="throw",we.arg=new TypeError("iterator result is not an object"),we.delegate=null,Vo)}function AV(Me){var we,Ce={tryLoc:Me[0]};1 in Me&&(Ce.catchLoc=Me[1]),2 in Me&&(Ce.finallyLoc=Me[2],Ce.afterLoc=Me[3]),H(we=this.tryEntries).call(we,Ce)}function VM(Me){var we=Me.completion||{};we.type="normal",delete we.arg,Me.completion=we}function qM(Me){this.tryEntries=[{tryLoc:"root"}],F(Me).call(Me,AV,this),this.reset(!0)}function KM(Me){if(Me||Me===""){var we=Me[qi];if(we)return we.call(Me);if(typeof Me.next=="function")return Me;if(!isNaN(Me.length)){var Ce=-1,et=function _t(){for(;++Ce=0;--_t){var vt=this.tryEntries[_t],gi=vt.completion;if(vt.tryLoc==="root")return et("end");if(vt.tryLoc<=this.prev){var na=st.call(vt,"catchLoc"),ja=st.call(vt,"finallyLoc");if(na&&ja){if(this.prev=0;--et){var _t=this.tryEntries[et];if(_t.tryLoc<=this.prev&&st.call(_t,"finallyLoc")&&this.prev<_t.finallyLoc){var vt=_t;break}}vt&&(we==="break"||we==="continue")&&vt.tryLoc<=Ce&&Ce<=vt.finallyLoc&&(vt=null);var gi=vt?vt.completion:{};return gi.type=we,gi.arg=Ce,vt?(this.method="next",this.next=vt.finallyLoc,Vo):this.complete(gi)},complete:function(we,Ce){if(we.type==="throw")throw we.arg;return we.type==="break"||we.type==="continue"?this.next=we.arg:we.type==="return"?(this.rval=this.arg=we.arg,this.method="return",this.next="end"):we.type==="normal"&&Ce&&(this.next=Ce),Vo},finish:function(we){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var et=this.tryEntries[Ce];if(et.finallyLoc===we)return this.complete(et.completion,et.afterLoc),VM(et),Vo}},catch:function(we){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var et=this.tryEntries[Ce];if(et.tryLoc===we){var _t=et.completion;if(_t.type==="throw"){var vt=_t.arg;VM(et)}return vt}}throw new Error("illegal catch attempt")},delegateYield:function(we,Ce,et){return this.delegate={iterator:KM(we),resultName:Ce,nextLoc:et},this.method==="next"&&(this.arg=se),Vo}},$e}g.exports=re,g.exports.__esModule=!0,g.exports.default=g.exports})(Ib);var Cz=Ib.exports,IT=Cz(),Ez=IT;try{regeneratorRuntime=IT}catch(g){typeof globalThis=="object"?globalThis.regeneratorRuntime=IT:Function("r","regeneratorRuntime = r")(IT)}var Fa=d(Ez),nF={exports:{}},Dz=w,Oz=Dz(function(){if(typeof ArrayBuffer=="function"){var g=new ArrayBuffer(8);Object.isExtensible(g)&&Object.defineProperty(g,"a",{value:8})}}),$z=w,Pz=ct,Iz=it,aF=Oz,MT=Object.isExtensible,Mz=$z(function(){MT(1)}),Az=Mz||aF?function(k){return!Pz(k)||aF&&Iz(k)==="ArrayBuffer"?!1:MT?MT(k):!0}:MT,Rz=w,Nz=!Rz(function(){return Object.isExtensible(Object.preventExtensions({}))}),Lz=Ze,Fz=Se,jz=Ts,Yz=ct,OM=ar,Bz=kr.f,oF=Xn,Hz=Wi,$M=Az,Wz=Qi,Gz=Nz,sF=!1,Th=Wz("meta"),zz=0,PM=function(g){Bz(g,Th,{value:{objectID:"O"+zz++,weakData:{}}})},Uz=function(g,k){if(!Yz(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!OM(g,Th)){if(!$M(g))return"F";if(!k)return"E";PM(g)}return g[Th].objectID},Vz=function(g,k){if(!OM(g,Th)){if(!$M(g))return!0;if(!k)return!1;PM(g)}return g[Th].weakData},qz=function(g){return Gz&&sF&&$M(g)&&!OM(g,Th)&&PM(g),g},Kz=function(){Xz.enable=function(){},sF=!0;var g=oF.f,k=Fz([].splice),C={};C[Th]=1,g(C).length&&(oF.f=function(E){for(var D=g(E),M=0,F=D.length;M1?arguments[1]:void 0),se;se=se?se.next:ie.first;)for(re(se.value,se.key,this);se&&se.removed;)se=se.previous},has:function(J){return!!B(this,J)}}),cF(M,C?{get:function(J){var ie=B(this,J);return ie&&ie.value},set:function(J,ie){return H(this,J===0?0:J,ie)}}:{add:function(J){return H(this,J=J===0?0:J,J)}}),zb&&mU(M,"size",{configurable:!0,get:function(){return F(this).size}}),D},setStrong:function(g,k,C){var E=k+" Iterator",D=IM(k),M=IM(E);wU(g,k,function(F,H){vF(this,{type:E,target:F,state:D(F),kind:H,last:void 0})},function(){for(var F=M(this),H=F.kind,B=F.last;B&&B.removed;)B=B.previous;return!F.target||!(F.last=B=B?B.next:F.state.first)?(F.target=void 0,AT(void 0,!0)):AT(H==="keys"?B.key:H==="values"?B.value:[B.key,B.value],!1)},C?"entries":"values",!C,!0),kU(k)}},SU=hF,xU=pF;SU("Map",function(g){return function(){return g(this,arguments.length?arguments[0]:void 0)}},xU);var TU=Ht,CU=TU.Map,EU=CU,DU=EU,OU=DU,mF=d(OU),$U=Ze,PU=Oc.some,IU=Qp,MU=IU("some");$U({target:"Array",proto:!0,forced:!MU},{some:function(k){return PU(this,k,arguments.length>1?arguments[1]:void 0)}});var AU=tn,RU=AU("Array","some"),NU=Vt,LU=RU,MM=Array.prototype,FU=function(g){var k=g.some;return g===MM||NU(MM,g)&&k===MM.some?LU:k},jU=FU,YU=jU,BU=YU,HU=d(BU),WU=tn,GU=WU("Array","keys"),zU=GU,UU=zU,VU=vi,qU=ar,KU=Vt,XU=UU,AM=Array.prototype,ZU={DOMTokenList:!0,NodeList:!0},JU=function(g){var k=g.keys;return g===AM||KU(AM,g)&&k===AM.keys||qU(ZU,VU(g))?XU:k},QU=JU,qv=d(QU),gF=Lo,e9=Math.floor,RM=function(g,k){var C=g.length,E=e9(C/2);return C<8?t9(g,k):r9(g,RM(gF(g,0,E),k),RM(gF(g,E),k),k)},t9=function(g,k){for(var C=g.length,E=1,D,M;E0;)g[M]=g[--M];M!==E++&&(g[M]=D)}return g},r9=function(g,k,C,E){for(var D=k.length,M=C.length,F=0,H=0;F3)){if(m9)return!0;if(TF)return TF<603;var g="",k,C,E,D;for(k=65;k<76;k++){switch(C=String.fromCharCode(k),k){case 66:case 69:case 70:case 72:E=3;break;case 68:case 71:E=4;break;default:E=2}for(D=0;D<47;D++)ud.push({k:C+D,v:E})}for(ud.sort(function(M,F){return F.v-M.v}),D=0;DkF(C)?1:-1}};h9({target:"Array",proto:!0,forced:w9},{sort:function(k){k!==void 0&&c9(k);var C=d9(this);if(EF)return k===void 0?CF(C):CF(C,k);var E=[],D=wF(C),M,F;for(F=0;Fthis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=ex(function(){C.flush()},this.delay))}},{key:"flush",value:function(){var C,E;Al(C=mm(E=this._queue).call(E,0)).call(C,function(D){D.fn.apply(D.context||D.fn,D.args||[])})}}],[{key:"extend",value:function(C,E){var D=new g(E);if(C.flush!==void 0)throw new Error("Target object already has a property flush");C.flush=function(){D.flush()};var M=[{name:"flush",original:void 0}];if(E&&E.replace)for(var F=0;F=g.length?{done:!0}:{done:!1,value:g[E++]}},e:function(U){throw U},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,F=!1,H;return{s:function(){C=C.call(g)},n:function(){var U=C.next();return M=U.done,U},e:function(U){F=!0,H=U},f:function(){try{!M&&C.return!=null&&C.return()}finally{if(F)throw H}}}}function kV(g,k){var C;if(g){if(typeof g=="string")return IF(g,k);var E=Ms(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return rm(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return IF(g,k)}}function IF(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);CH&&(H=ie,F=J)}return F}},{key:"min",value:function(E){var D=HM(this._pairs),M=D.next();if(M.done)return null;for(var F=M.value[1],H=E(M.value[1],M.value[0]);!(M=D.next()).done;){var B=mn(M.value,2),U=B[0],J=B[1],ie=E(J,U);ie=g.length?{done:!0}:{done:!1,value:g[E++]}},e:function(U){throw U},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,F=!1,H;return{s:function(){C=C.call(g)},n:function(){var U=C.next();return M=U.done,U},e:function(U){F=!0,H=U},f:function(){try{!M&&C.return!=null&&C.return()}finally{if(F)throw H}}}}function SV(g,k){var C;if(g){if(typeof g=="string")return RF(g,k);var E=Ms(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return rm(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return RF(g,k)}}function RF(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);CJ?1:UH)&&(F=J,H=ie)}}catch(re){B.e(re)}finally{B.f()}return F||null}},{key:"min",value:function(D){var M,F=null,H=null,B=GM(DF(M=this._data).call(M)),U;try{for(B.s();!(U=B.n()).done;){var J=U.value,ie=J[D];typeof ie=="number"&&(H==null||ie=g.length?{done:!0}:{done:!1,value:g[E++]}},e:function(U){throw U},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,F=!1,H;return{s:function(){C=C.call(g)},n:function(){var U=C.next();return M=U.done,U},e:function(U){F=!0,H=U},f:function(){try{!M&&C.return!=null&&C.return()}finally{if(F)throw H}}}}function DV(g,k){var C;if(g){if(typeof g=="string")return LF(g,k);var E=Ms(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return rm(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return LF(g,k)}}function LF(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);C0&&ce[0]<4?1:+(ce[0]+ce[1])),!Gn&&Er&&(!(ce=Er.match(/Edge\/(\d+)/))||ce[1]>=74)&&(ce=Er.match(/Chrome\/(\d+)/))&&(Gn=+ce[1]);var yi=Gn,nu=yi,fa=w,Yh=b.String,ci=!!Object.getOwnPropertySymbols&&!fa(function(){var s=Symbol("symbol detection");return!Yh(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&nu&&nu<41}),lr=ci&&!Symbol.sham&&typeof Symbol.iterator=="symbol",va=Pr,Ji=gt,ue=Pt,Sd=Object,is=lr?function(s){return typeof s=="symbol"}:function(s){var r=va("Symbol");return Ji(r)&&ue(r.prototype,Sd(s))},Hr=String,Et=function(s){try{return Hr(s)}catch(r){return"Object"}},Oe=gt,Co=Et,Ue=TypeError,di=function(s){if(Oe(s))return s;throw new Ue(Co(s)+" is not a function")},xd=di,Va=Qe,Dt=function(s,r){var u=s[r];return Va(u)?void 0:xd(u)},ur=ht,wr=gt,ut=Ft,pr=TypeError,Ir={exports:{}},bi=b,_i=Object.defineProperty,Td=function(s,r){try{_i(bi,s,{value:r,configurable:!0,writable:!0})}catch(u){bi[s]=r}return r},Dn="__core-js_shared__",qa=b[Dn]||Td(Dn,{}),tl=qa;(Ir.exports=function(s,r){return tl[s]||(tl[s]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"\xA9 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 Mr=Ir.exports,un=Bt,au=Object,wi=function(s){return au(un(s))},Bh=wi,Cd=pe({}.hasOwnProperty),Ge=Object.hasOwn||function(s,r){return Cd(Bh(s),r)},ns=pe,Ed=0,ou=Math.random(),su=ns(1 .toString),as=function(s){return"Symbol("+(s===void 0?"":s)+")_"+su(++Ed+ou,36)},Dd=Mr,rl=Ge,Hh=as,Eo=ci,Od=lr,pa=b.Symbol,Ar=Dd("wks"),$d=Od?pa.for||pa:pa&&pa.withoutSetter||Hh,hr=function(s){return rl(Ar,s)||(Ar[s]=Eo&&rl(pa,s)?pa[s]:$d("Symbol."+s)),Ar[s]},Pd=ht,ar=Ft,Wh=is,Un=Dt,Ka=function(s,r){var u,o;if(wr(u=s.toString)&&!ut(o=ur(u,s))||wr(u=s.valueOf)&&!ut(o=ur(u,s)))return o;throw new pr("Can't convert object to primitive value")},lu=TypeError,Qi=hr("toPrimitive"),Wr=function(s,r){if(!ar(s)||Wh(s))return s;var u,o=Un(s,Qi);if(o){if(u=Pd(o,s,r),!ar(u)||Wh(u))return u;throw new lu("Can't convert object to primitive value")}return Ka(s)},Id=is,os=function(s){var r=Wr(s,"string");return Id(r)?r:r+""},Gh=Ft,uu=b.document,Md=Gh(uu)&&Gh(uu.createElement),Xa=function(s){return Md?uu.createElement(s):{}},hu=Xa,zh=!lt&&!w(function(){return Object.defineProperty(hu("div"),"a",{get:function(){return 7}}).a!==7}),Wt=lt,Ad=ht,il=Ct,Uh=En,Rd=sr,Nd=os,Ld=Ge,Fd=zh,Vh=Object.getOwnPropertyDescriptor;Kt.f=Wt?Vh:function(s,r){if(s=Rd(s),r=Nd(r),Fd)try{return Vh(s,r)}catch(u){}if(Ld(s,r))return Uh(!Ad(il.f,s,r),s[r])};var jd=w,Yd=gt,Bd=/#|\.prototype\./,ma=function(s,r){var u=qh[Hd(s)];return u===Wd||u!==cu&&(Yd(r)?jd(r):!!r)},Hd=ma.normalize=function(s){return String(s).replace(Bd,".").toLowerCase()},qh=ma.data={},cu=ma.NATIVE="N",Wd=ma.POLYFILL="P",du=ma,ss=di,ls=$,Gd=qe(qe.bind),ga=function(s,r){return ss(s),r===void 0?s:ls?Gd(s,r):function(){return s.apply(r,arguments)}},fi={},Kh=lt&&w(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),zd=Ft,Ud=String,Vd=TypeError,Fi=function(s){if(zd(s))return s;throw new Vd(Ud(s)+" is not an object")},nt=lt,Vn=zh,On=Kh,nl=Fi,al=os,qd=TypeError,Za=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Gr="enumerable",Qa="configurable",fu="writable";fi.f=nt?On?function(s,r,u){if(nl(s),r=al(r),nl(u),typeof s=="function"&&r==="prototype"&&"value"in u&&fu in u&&!u[fu]){var o=Ja(s,r);o&&o[fu]&&(s[r]=u.value,u={configurable:Qa in u?u[Qa]:o[Qa],enumerable:Gr in u?u[Gr]:o[Gr],writable:!1})}return Za(s,r,u)}:Za:function(s,r,u){if(nl(s),r=al(r),nl(u),Vn)try{return Za(s,r,u)}catch(o){}if("get"in u||"set"in u)throw new qd("Accessors not supported");return"value"in u&&(s[r]=u.value),s};var Rr=fi,Xh=En,$n=lt?function(s,r,u){return Rr.f(s,r,Xh(1,u))}:function(s,r,u){return s[r]=u,s},ol=b,Kd=oe,ya=qe,kr=gt,us=Kt.f,Xd=du,eo=Lt,Zd=ga,ba=$n,Zh=Ge,ji=function(s){var r=function(u,o,c){if(this instanceof r){switch(arguments.length){case 0:return new s;case 1:return new s(u);case 2:return new s(u,o)}return new s(u,o,c)}return Kd(s,this,arguments)};return r.prototype=s.prototype,r},Ke=function(s,r){var u,o,c,f,m,S,x,O,I,N=s.target,L=s.global,z=s.stat,W=s.proto,X=L?ol:z?ol[N]:(ol[N]||{}).prototype,Z=L?eo:eo[N]||ba(eo,N,{})[N],Q=Z.prototype;for(f in r)o=!(u=Xd(L?f:N+(z?".":"#")+f,s.forced))&&X&&Zh(X,f),S=Z[f],o&&(x=s.dontCallGetSet?(I=us(X,f))&&I.value:X[f]),m=o&&x?x:r[f],o&&typeof S==typeof m||(O=s.bind&&o?Zd(m,ol):s.wrap&&o?ji(m):W&&kr(m)?ya(m):m,(s.sham||m&&m.sham||S&&S.sham)&&ba(O,"sham",!0),ba(Z,f,O),W&&(Zh(eo,c=N+"Prototype")||ba(eo,c,{}),ba(eo[c],f,m),s.real&&Q&&(u||!Q[f])&&ba(Q,f,m)))},sl=pe([].slice),Jh=pe,Do=di,Qh=Ft,hn=Ge,ll=sl,hs=$,ul=Function,to=Jh([].concat),vu=Jh([].join),pu={},ec=hs?ul.bind:function(s){var r=Do(this),u=r.prototype,o=ll(arguments,1),c=function(){var f=to(o,ll(arguments));return this instanceof c?function(m,S,x){if(!hn(pu,S)){for(var O=[],I=0;I0?of:af)(r)},io=function(s){var r=+s;return r!=r||r===0?0:sf(r)},fl=io,lf=Math.max,mr=Math.min,zr=function(s,r){var u=fl(s);return u<0?lf(u+r,0):mr(u,r)},_u=io,Bi=Math.min,wu=function(s){return s>0?Bi(_u(s),9007199254740991):0},ki=function(s){return wu(s.length)},vl=sr,uf=zr,ku=ki,ac=function(s){return function(r,u,o){var c,f=vl(r),m=ku(f),S=uf(o,m);if(s&&u!=u){for(;m>S;)if((c=f[S++])!=c)return!0}else for(;m>S;S++)if((s||S in f)&&f[S]===u)return s||S||0;return!s&&-1}},Sa={includes:ac(!0),indexOf:ac(!1)},vs={},Su=Ge,oc=sr,xu=Sa.indexOf,hf=vs,sc=pe([].push),ps=function(s,r){var u,o=oc(s),c=0,f=[];for(u in o)!Su(hf,u)&&Su(o,u)&&sc(f,u);for(;r.length>c;)Su(o,u=r[c++])&&(~xu(f,u)||sc(f,u));return f},Tu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cf=ps,df=Tu,ms=Object.keys||function(s){return cf(s,df)},ff=lt,vi=Kh,vf=fi,pf=Fi,Cu=sr,mf=ms;dn.f=ff&&!vi?Object.defineProperties:function(s,r){pf(s);for(var u,o=Cu(r),c=mf(r),f=c.length,m=0;f>m;)vf.f(s,u=c[m++],o[u]);return s};var gs,gf=Pr("document","documentElement"),yf=as,Eu=Mr("keys"),$o=function(s){return Eu[s]||(Eu[s]=yf(s))},Du=Fi,Ou=dn,qn=Tu,fn=vs,xa=gf,ys=Xa,Hi="prototype",bs="script",Ta=$o("IE_PROTO"),pl=function(){},_s=function(s){return"<"+bs+">"+s+""},$u=function(s){s.write(_s("")),s.close();var r=s.parentWindow.Object;return s=null,r},ml=function(){try{gs=new ActiveXObject("htmlfile")}catch(c){}var s,r,u;ml=typeof document!="undefined"?document.domain&&gs?$u(gs):(r=ys("iframe"),u="java"+bs+":",r.style.display="none",xa.appendChild(r),r.src=String(u),(s=r.contentWindow.document).open(),s.write(_s("document.F=Object")),s.close(),s.F):$u(gs);for(var o=qn.length;o--;)delete ml[Hi][qn[o]];return ml()};fn[Ta]=!0;var Po=Object.create||function(s,r){var u;return s!==null?(pl[Hi]=Du(s),u=new pl,pl[Hi]=null,u[Ta]=s):u=ml(),r===void 0?u:Ou.f(u,r)},bf=Ke,Pu=oe,lc=ec,uc=function(s){if(nc(s))return s;throw new nf(dl(s)+" is not a constructor")},_f=Fi,ws=Ft,wf=Po,hc=w,Iu=Pr("Reflect","construct"),kf=Object.prototype,ks=[].push,cc=hc(function(){function s(){}return!(Iu(function(){},[],s)instanceof s)}),dc=!hc(function(){Iu(function(){})}),fc=cc||dc;bf({target:"Reflect",stat:!0,forced:fc,sham:fc},{construct:function(s,r){uc(s),_f(r);var u=arguments.length<3?s:uc(arguments[2]);if(dc&&!cc)return Iu(s,r,u);if(s===u){switch(r.length){case 0:return new s;case 1:return new s(r[0]);case 2:return new s(r[0],r[1]);case 3:return new s(r[0],r[1],r[2]);case 4:return new s(r[0],r[1],r[2],r[3])}var o=[null];return Pu(ks,o,r),new(Pu(lc,s,o))}var c=u.prototype,f=wf(ws(c)?c:kf),m=Pu(s,f,r);return ws(m)?m:f}});var Je=p(Lt.Reflect.construct);function jt(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}var vc={exports:{}},Io=Ke,pc=lt,mc=fi.f;Io({target:"Object",stat:!0,forced:Object.defineProperty!==mc,sham:!pc},{defineProperty:mc});var gc=Lt.Object,Ss=vc.exports=function(s,r,u){return gc.defineProperty(s,r,u)};gc.defineProperty.sham&&(Ss.sham=!0);var Ca=vc.exports,xs=p(Ca),Sf=_e,no=Array.isArray||function(s){return Sf(s)==="Array"},xf=TypeError,Mu=function(s){if(s>9007199254740991)throw xf("Maximum allowed index exceeded");return s},Tf=os,Kn=fi,gl=En,Mo=function(s,r,u){var o=Tf(r);o in s?Kn.f(s,o,gl(0,u)):s[o]=u},yl=no,Cf=cl,bl=Ft,Ef=hr("species"),ni=Array,Au=function(s){var r;return yl(s)&&(r=s.constructor,(Cf(r)&&(r===ni||yl(r.prototype))||bl(r)&&(r=r[Ef])===null)&&(r=void 0)),r===void 0?ni:r},Ru=function(s,r){return new(Au(s))(r===0?0:r)},Df=w,Ts=yi,te=hr("species"),ao=function(s){return Ts>=51||!Df(function(){var r=[];return(r.constructor={})[te]=function(){return{foo:1}},r[s](Boolean).foo!==1})},Of=Ke,Nu=w,Le=no,Ea=Ft,_l=wi,oo=ki,yc=Mu,bc=Mo,wl=Ru,$f=ao,Pf=yi,Nr=hr("isConcatSpreadable"),If=Pf>=51||!Nu(function(){var s=[];return s[Nr]=!1,s.concat()[0]!==s}),Lu=function(s){if(!Ea(s))return!1;var r=s[Nr];return r!==void 0?!!r:Le(s)};Of({target:"Array",proto:!0,forced:!If||!$f("concat")},{concat:function(s){var r,u,o,c,f,m=_l(this),S=wl(m,0),x=0;for(r=-1,o=arguments.length;rne;ne++)if((S||ne in X)&&(z=Z(L=X[ne],ne,W),s))if(r)Te[ne]=z;else if(z)switch(s){case 3:return!0;case 5:return L;case 6:return ne;case 2:tw(Te,L)}else switch(s){case 4:return!1;case 7:tw(Te,L)}return f?-1:o||c?c:Te}},vn={forEach:Tl(0),map:Tl(1),filter:Tl(2),some:Tl(3),every:Tl(4),find:Tl(5),findIndex:Tl(6)},Sp=Ke,xp=b,Tp=ht,TE=pe,Ec=lt,zu=ci,CE=w,xi=Ge,sy=Pt,Bf=Fi,Cp=sr,ly=os,rw=Si,Hf=En,Wf=Po,Gf=ms,zf=Cs,Uf=Ro,EE=No,iw=Kt,lo=fi,Dc=dn,Uu=Ct,nw=Fr,DE=Wu,uy=Mr,aw=vs,ow=as,OE=hr,sw=Da,Ep=cr,Oc=en,Dp=q,$c=Gu,Pc=vn.forEach,Mn=$o("hidden"),Es="Symbol",jo="prototype",$E=$c.set,mi=$c.getterFor(Es),uo=Object[jo],Ds=xp.Symbol,Vu=Ds&&Ds[jo],hy=xp.RangeError,PE=xp.TypeError,Vf=xp.QObject,Ic=iw.f,Cl=lo.f,lw=Uf.f,uw=Uu.f,hw=TE([].push),Yo=uy("symbols"),Mc=uy("op-symbols"),IE=uy("wks"),Op=!Vf||!Vf[jo]||!Vf[jo].findChild,cy=function(s,r,u){var o=Ic(uo,r);o&&delete uo[r],Cl(s,r,u),o&&s!==uo&&Cl(uo,r,o)},dy=Ec&&CE(function(){return Wf(Cl({},"a",{get:function(){return Cl(this,"a",{value:7}).a}})).a!==7})?cy:Cl,qf=function(s,r){var u=Yo[s]=Wf(Vu);return $E(u,{type:Es,tag:s,description:r}),Ec||(u.description=r),u},$p=function(s,r,u){s===uo&&$p(Mc,r,u),Bf(s);var o=ly(r);return Bf(u),xi(Yo,o)?(u.enumerable?(xi(s,Mn)&&s[Mn][o]&&(s[Mn][o]=!1),u=Wf(u,{enumerable:Hf(0,!1)})):(xi(s,Mn)||Cl(s,Mn,Hf(1,{})),s[Mn][o]=!0),dy(s,o,u)):Cl(s,o,u)},Pp=function(s,r){Bf(s);var u=Cp(r),o=Gf(u).concat(fw(u));return Pc(o,function(c){Ec&&!Tp(fy,u,c)||$p(s,c,u[c])}),s},fy=function(s){var r=ly(s),u=Tp(uw,this,r);return!(this===uo&&xi(Yo,r)&&!xi(Mc,r))&&(!(u||!xi(this,r)||!xi(Yo,r)||xi(this,Mn)&&this[Mn][r])||u)},cw=function(s,r){var u=Cp(s),o=ly(r);if(u!==uo||!xi(Yo,o)||xi(Mc,o)){var c=Ic(u,o);return!c||!xi(Yo,o)||xi(u,Mn)&&u[Mn][o]||(c.enumerable=!0),c}},dw=function(s){var r=lw(Cp(s)),u=[];return Pc(r,function(o){xi(Yo,o)||xi(aw,o)||hw(u,o)}),u},fw=function(s){var r=s===uo,u=lw(r?Mc:Cp(s)),o=[];return Pc(u,function(c){!xi(Yo,c)||r&&!xi(uo,c)||hw(o,Yo[c])}),o};zu||(Ds=function(){if(sy(Vu,this))throw new PE("Symbol is not a constructor");var s=arguments.length&&arguments[0]!==void 0?rw(arguments[0]):void 0,r=ow(s),u=function(o){this===uo&&Tp(u,Mc,o),xi(this,Mn)&&xi(this[Mn],r)&&(this[Mn][r]=!1);var c=Hf(1,o);try{dy(this,r,c)}catch(f){if(!(f instanceof hy))throw f;cy(this,r,c)}};return Ec&&Op&&dy(uo,r,{configurable:!0,set:u}),qf(r,s)},nw(Vu=Ds[jo],"toString",function(){return mi(this).tag}),nw(Ds,"withoutSetter",function(s){return qf(ow(s),s)}),Uu.f=fy,lo.f=$p,Dc.f=Pp,iw.f=cw,zf.f=Uf.f=dw,EE.f=fw,sw.f=function(s){return qf(OE(s),s)},Ec&&DE(Vu,"description",{configurable:!0,get:function(){return mi(this).description}})),Sp({global:!0,wrap:!0,forced:!zu,sham:!zu},{Symbol:Ds}),Pc(Gf(IE),function(s){Ep(s)}),Sp({target:Es,stat:!0,forced:!zu},{useSetter:function(){Op=!0},useSimple:function(){Op=!1}}),Sp({target:"Object",stat:!0,forced:!zu,sham:!Ec},{create:function(s,r){return r===void 0?Wf(s):Pp(Wf(s),r)},defineProperty:$p,defineProperties:Pp,getOwnPropertyDescriptor:cw}),Sp({target:"Object",stat:!0,forced:!zu},{getOwnPropertyNames:dw}),Oc(),Dp(Ds,Es),aw[Mn]=!0;var vw=ci&&!!Symbol.for&&!!Symbol.keyFor,ME=Ke,pw=Pr,Ip=Ge,An=Si,Kf=Mr,Xf=vw,vy=Kf("string-to-symbol-registry"),mw=Kf("symbol-to-string-registry");ME({target:"Symbol",stat:!0,forced:!Xf},{for:function(s){var r=An(s);if(Ip(vy,r))return vy[r];var u=pw("Symbol")(r);return vy[r]=u,mw[u]=r,u}});var ho=Ke,qu=Ge,Zf=is,AE=Et,RE=vw,Mp=Mr("symbol-to-string-registry");ho({target:"Symbol",stat:!0,forced:!RE},{keyFor:function(s){if(!Zf(s))throw new TypeError(AE(s)+" is not a symbol");if(qu(Mp,s))return Mp[s]}});var py=no,Ku=gt,my=_e,NE=Si,gy=pe([].push),Os=Ke,Ac=Pr,gw=oe,yy=ht,Rc=pe,Ap=w,Rp=gt,Jf=is,Np=sl,LE=function(s){if(Ku(s))return s;if(py(s)){for(var r=s.length,u=[],o=0;o=r.length)return s.target=void 0,Wp(void 0,!0);switch(u){case"keys":return Wp(o,!1);case"values":return Wp(r[o],!1)}return Wp([o,r[o]],!1)},"values"),Ey.Arguments=Ey.Array;var kD={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},SD=b,xD=cn,TD=$n,Uw=Xu,Dy=hr("toStringTag");for(var rv in kD){var Vw=SD[rv],Lc=Vw&&Vw.prototype;Lc&&xD(Lc)!==Dy&&TD(Lc,Dy,rv),Uw[rv]=Uw.Array}var qw=VE,CD=hr,ED=fi.f,Kw=CD("metadata"),Oy=Function.prototype;Oy[Kw]===void 0&&ED(Oy,Kw,{value:null}),cr("asyncDispose"),cr("dispose"),cr("metadata");var DD=qw,OD=pe,iv=Pr("Symbol"),Xw=iv.keyFor,Ps=OD(iv.prototype.valueOf),Gp=iv.isRegisteredSymbol||function(s){try{return Xw(Ps(s))!==void 0}catch(r){return!1}};Ke({target:"Symbol",stat:!0},{isRegisteredSymbol:Gp});for(var $y=Mr,Zw=Pr,Jw=pe,$D=is,PD=hr,zp=Zw("Symbol"),Qw=zp.isWellKnownSymbol,ek=Zw("Object","getOwnPropertyNames"),ID=Jw(zp.prototype.valueOf),tk=$y("wks"),Py=0,rk=ek(zp),MD=rk.length;Py=S?s?"":void 0:(o=ok(f,m))<55296||o>56319||m+1===S||(c=ok(f,m+1))<56320||c>57343?s?ak(f,m):o:s?LD(f,m,m+2):c-56320+(o-55296<<10)+65536}},jD={charAt:FD(!0)}.charAt,YD=Si,sk=Gu,lk=Ol,uk=tv,My="String Iterator",BD=sk.set,HD=sk.getterFor(My);lk(String,"String",function(s){BD(this,{type:My,string:YD(s),index:0})},function(){var s,r=HD(this),u=r.string,o=r.index;return o>=u.length?uk(void 0,!0):(s=jD(u,o),r.index+=s.length,uk(s,!1))});var Up=p(Da.f("iterator"));function ft(s){return ft=typeof Fc=="function"&&typeof Up=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Fc=="function"&&r.constructor===Fc&&r!==Fc.prototype?"symbol":typeof r},ft(s)}var hk=p(Da.f("toPrimitive"));function nv(s){var r=function(u,o){if(ft(u)!=="object"||u===null)return u;var c=u[hk];if(c!==void 0){var f=c.call(u,o);if(ft(f)!=="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(u)}(s,"string");return ft(r)==="symbol"?r:String(r)}function Ay(s,r){for(var u=0;uu,m=XD(o)?o:eO(o),S=f?By(arguments,u):[],x=f?function(){KD(m,this,S)}:m;return s(x,c)}:s},tO=Ke,wk=b,Hy=_k(wk.setInterval);tO({global:!0,bind:!0,forced:wk.setInterval!==Hy},{setInterval:Hy});var rO=Ke,kk=b,Sk=_k(kk.setTimeout);rO({global:!0,bind:!0,forced:kk.setTimeout!==Sk},{setTimeout:Sk});var Ci=p(Lt.setTimeout),xk=w,Zu=function(s,r){var u=[][s];return!!u&&xk(function(){u.call(null,r||function(){return 1},1)})},iO=vn.forEach,Wy=Zu("forEach")?[].forEach:function(s){return iO(this,s,arguments.length>1?arguments[1]:void 0)};Ke({target:"Array",proto:!0,forced:[].forEach!==Wy},{forEach:Wy});var Gy=qr("Array").forEach,Tk=cn,nO=Ge,Ck=Pt,Ek=Gy,zy=Array.prototype,aO={DOMTokenList:!0,NodeList:!0},oO=function(s){var r=s.forEach;return s===zy||Ck(zy,s)&&r===zy.forEach||nO(aO,Tk(s))?Ek:r},Ae=p(oO),Nn=p(typeof window!="undefined"&&window.moment||n),Dk=p(Lt.Object.getOwnPropertySymbols),sO=vn.filter;Ke({target:"Array",proto:!0,forced:!ao("filter")},{filter:function(s){return sO(this,s,arguments.length>1?arguments[1]:void 0)}});var lO=qr("Array").filter,uO=Pt,hO=lO,Uy=Array.prototype,cO=function(s){var r=s.filter;return s===Uy||uO(Uy,s)&&r===Uy.filter?hO:r},Mt=p(cO),Xp={exports:{}},jc=Ke,Vy=w,dO=sr,Ok=Kt.f,$k=lt;jc({target:"Object",stat:!0,forced:!$k||Vy(function(){Ok(1)}),sham:!$k},{getOwnPropertyDescriptor:function(s,r){return Ok(dO(s),r)}});var Pk=Lt.Object,Ik=Xp.exports=function(s,r){return Pk.getOwnPropertyDescriptor(s,r)};Pk.getOwnPropertyDescriptor.sham&&(Ik.sham=!0);var Mk=p(Xp.exports),fO=Pr,vO=Cs,pO=No,mO=Fi,Ak=pe([].concat),Rk=fO("Reflect","ownKeys")||function(s){var r=vO.f(mO(s)),u=pO.f;return u?Ak(r,u(s)):r},Nk=Rk,Lk=sr,gO=Kt,yO=Mo;Ke({target:"Object",stat:!0,sham:!lt},{getOwnPropertyDescriptors:function(s){for(var r,u,o=Lk(s),c=gO.f,f=Nk(o),m={},S=0;f.length>S;)(u=c(o,r=f[S++]))!==void 0&&yO(m,r,u);return m}});var Fk=p(Lt.Object.getOwnPropertyDescriptors),jk={exports:{}},bO=Ke,Yk=lt,Bk=dn.f;bO({target:"Object",stat:!0,forced:Object.defineProperties!==Bk,sham:!Yk},{defineProperties:Bk});var Hk=Lt.Object,_O=jk.exports=function(s,r){return Hk.defineProperties(s,r)};Hk.defineProperties.sham&&(_O.sham=!0);var wO=p(jk.exports),Wk=vn.map;Ke({target:"Array",proto:!0,forced:!ao("map")},{map:function(s){return Wk(this,s,arguments.length>1?arguments[1]:void 0)}});var kO=qr("Array").map,Yc=Pt,SO=kO,qy=Array.prototype,xO=function(s){var r=s.map;return s===qy||Yc(qy,s)&&r===qy.map?SO:r},Ei=p(xO),TO=di,CO=wi,EO=je,DO=ki,OO=TypeError,$O=function(s){return function(r,u,o,c){TO(u);var f=CO(r),m=EO(f),S=DO(f),x=s?S-1:0,O=s?-1:1;if(o<2)for(;;){if(x in m){c=m[x],x+=O;break}if(x+=O,s?x<0:S<=x)throw new OO("Reduce of empty array with no initial value")}for(;s?x>=0:S>x;x+=O)x in m&&(c=u(c,m[x],x,f));return c}},PO={left:$O(!1)},Gk=_e(b.process)==="process",zk=PO.left;Ke({target:"Array",proto:!0,forced:!Gk&&yi>79&&yi<83||!Zu("reduce")},{reduce:function(s){var r=arguments.length;return zk(this,s,r,r>1?arguments[1]:void 0)}});var Ju=qr("Array").reduce,Oa=Pt,Uk=Ju,Ky=Array.prototype,IO=function(s){var r=s.reduce;return s===Ky||Oa(Ky,s)&&r===Ky.reduce?Uk:r},Vk=p(IO),qk=wi,Kk=ms;Ke({target:"Object",stat:!0,forced:w(function(){Kk(1)})},{keys:function(s){return Kk(qk(s))}});var Di=p(Lt.Object.keys),Xk=p(Ca),MO=ht,Zp=Fi,AO=Dt,Xy=function(s,r,u){var o,c;Zp(s);try{if(!(o=AO(s,"return"))){if(r==="throw")throw u;return u}o=MO(o,s)}catch(f){c=!0,o=f}if(r==="throw")throw u;if(c)throw o;return Zp(o),u},RO=Fi,Zk=Xy,NO=Xu,LO=hr("iterator"),tn=Array.prototype,Jk=function(s){return s!==void 0&&(NO.Array===s||tn[LO]===s)},FO=cn,Qk=Dt,jO=Qe,Zy=Xu,YO=hr("iterator"),Jp=function(s){if(!jO(s))return Qk(s,YO)||Qk(s,"@@iterator")||Zy[FO(s)]},e1=ht,BO=di,Qu=Fi,HO=Et,WO=Jp,GO=TypeError,t1=function(s,r){var u=arguments.length<2?WO(s):r;if(BO(u))return Qu(e1(u,s));throw new GO(HO(s)+" is not iterable")},zO=ga,UO=ht,VO=wi,qO=function(s,r,u,o){try{return o?r(RO(u)[0],u[1]):r(u)}catch(c){Zk(s,"throw",c)}},Qp=Jk,KO=cl,XO=ki,Bc=Mo,ZO=t1,JO=Jp,r1=Array,Jy=hr("iterator"),i1=!1;try{var QO=0,n1={next:function(){return{done:!!QO++}},return:function(){i1=!0}};n1[Jy]=function(){return this},Array.from(n1,function(){throw 2})}catch(s){}var e$=function(s){var r=VO(s),u=KO(this),o=arguments.length,c=o>1?arguments[1]:void 0,f=c!==void 0;f&&(c=zO(c,o>2?arguments[2]:void 0));var m,S,x,O,I,N,L=JO(r),z=0;if(!L||this===r1&&Qp(L))for(m=XO(r),S=u?new this(m):r1(m);m>z;z++)N=f?c(r[z],z):r[z],Bc(S,z,N);else for(I=(O=ZO(r,L)).next,S=u?new this:[];!(x=UO(I,O)).done;z++)N=f?qO(O,c,[x.value,z],!0):x.value,Bc(S,z,N);return S.length=z,S},t$=function(s,r){try{if(!r&&!i1)return!1}catch(c){return!1}var u=!1;try{var o={};o[Jy]=function(){return{next:function(){return{done:u=!0}}}},s(o)}catch(c){}return u};Ke({target:"Array",stat:!0,forced:!t$(function(s){Array.from(s)})},{from:e$});var a1=Lt.Array.from,eh=p(a1),em=Jp,o1=p(em),th=p(em),s1=p(gk),r$=lt,l1=no,i$=TypeError,n$=Object.getOwnPropertyDescriptor,u1=r$&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}()?function(s,r){if(l1(s)&&!n$(s,"length").writable)throw new i$("Cannot set read only .length");return s.length=r}:function(s,r){return s.length=r},a$=wi,o$=ki,s$=u1,l$=Mu;Ke({target:"Array",proto:!0,forced:w(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(s){return s instanceof TypeError}}()},{push:function(s){var r=a$(this),u=o$(r),o=arguments.length;l$(u+o);for(var c=0;cs.length)&&(r=s.length);for(var u=0,o=new Array(r);uO-o+u;f--)h0(x,f-1)}else if(u>o)for(f=O-o;f>I;f--)S=f+u-1,(m=f+o-1)in x?x[S]=x[m]:h0(x,S);for(f=0;fc;)for(var S,x=x1(arguments[c++]),O=f?C1(f0(x),f(x)):f0(x),I=O.length,N=0;I>N;)S=O[N++],w1&&!k1(m,x,S)||(u[S]=x[S]);return u}:rh,D1=E1;Ke({target:"Object",stat:!0,forced:Object.assign!==D1},{assign:D1});var ih=p(Lt.Object.assign),rP=Sa.includes;Ke({target:"Array",proto:!0,forced:w(function(){return!Array(1).includes()})},{includes:function(s){return rP(this,s,arguments.length>1?arguments[1]:void 0)}});var iP=qr("Array").includes,nP=Ft,aP=_e,oP=hr("match"),O1=function(s){var r;return nP(s)&&((r=s[oP])!==void 0?!!r:aP(s)==="RegExp")},sP=TypeError,rm=hr("match"),lP=Ke,uP=function(s){if(O1(s))throw new sP("The method doesn't accept regular expressions");return s},hP=Bt,$1=Si,cP=function(s){var r=/./;try{"/./"[s](r)}catch(u){try{return r[rm]=!1,"/./"[s](r)}catch(o){}}return!1},dP=pe("".indexOf);lP({target:"String",proto:!0,forced:!cP("includes")},{includes:function(s){return!!~dP($1(hP(this)),$1(uP(s)),arguments.length>1?arguments[1]:void 0)}});var fP=qr("String").includes,P1=Pt,I1=iP,M1=fP,v0=Array.prototype,Hc=String.prototype,vP=function(s){var r=s.includes;return s===v0||P1(v0,s)&&r===v0.includes?I1:typeof s=="string"||s===Hc||P1(Hc,s)&&r===Hc.includes?M1:r},Wc=p(vP),A1=p(mk),R1=lt,pP=w,p0=pe,mP=jp,gP=ms,yP=sr,N1=p0(Ct.f),bP=p0([].push),L1=R1&&pP(function(){var s=Object.create(null);return s[2]=2,!N1(s,2)}),F1=function(s){return function(r){for(var u,o=yP(r),c=gP(o),f=L1&&mP(o)===null,m=c.length,S=0,x=[];m>S;)u=c[S++],R1&&!(f?u in o:N1(o,u))||bP(x,s?[u,o[u]]:o[u]);return x}},j1={entries:F1(!0),values:F1(!1)},_P=j1.values;Ke({target:"Object",stat:!0},{values:function(s){return _P(s)}});var m0=p(Lt.Object.values),g0=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,wP=Bt,Y1=Si,y0=g0,B1=pe("".replace),kP=RegExp("^["+y0+"]+"),SP=RegExp("(^|[^"+y0+"])["+y0+"]+$"),xP=function(s){return function(r){var u=Y1(wP(r));return 1&s&&(u=B1(u,kP,"")),2&s&&(u=B1(u,SP,"$1")),u}},H1={trim:xP(3)},W1=b,TP=w,CP=pe,EP=Si,DP=H1.trim,G1=g0,av=W1.parseInt,im=W1.Symbol,z1=im&&im.iterator,U1=/^[+-]?0x/i,OP=CP(U1.exec),V1=av(G1+"08")!==8||av(G1+"0x16")!==22||z1&&!TP(function(){av(Object(z1))})?function(s,r){var u=DP(EP(s));return av(u,r>>>0||(OP(U1,u)?16:10))}:av;Ke({global:!0,forced:parseInt!==V1},{parseInt:V1});var ea=p(Lt.parseInt),$P=Ke,PP=Sa.indexOf,q1=Zu,b0=qe([].indexOf),K1=!!b0&&1/b0([1],1,-0)<0;$P({target:"Array",proto:!0,forced:K1||!q1("indexOf")},{indexOf:function(s){var r=arguments.length>1?arguments[1]:void 0;return K1?b0(this,s,r)||0:PP(this,s,r)}});var IP=qr("Array").indexOf,X1=Pt,MP=IP,_0=Array.prototype,Z1=function(s){var r=s.indexOf;return s===_0||X1(_0,s)&&r===_0.indexOf?MP:r},er=p(Z1),AP=j1.entries;Ke({target:"Object",stat:!0},{entries:function(s){return AP(s)}});var RP=p(Lt.Object.entries),nm=p(ck),w0=Lt,NP=oe;w0.JSON||(w0.JSON={stringify:JSON.stringify});var LP=function(s,r,u){return NP(w0.JSON.stringify,null,arguments)},ta=p(LP),k0=wi,J1=zr,FP=ki,jP=function(s){for(var r=k0(this),u=FP(r),o=arguments.length,c=J1(o>1?arguments[1]:void 0,u),f=o>2?arguments[2]:void 0,m=f===void 0?u:J1(f,u);m>c;)r[c++]=s;return r};Ke({target:"Array",proto:!0},{fill:jP});var YP=qr("Array").fill,BP=Pt,S0=YP,x0=Array.prototype,HP=function(s){var r=s.fill;return s===x0||BP(x0,s)&&r===x0.fill?S0:r},T0=p(HP),Q1={exports:{}};(function(s){function r(u){if(u)return function(o){for(var c in r.prototype)o[c]=r.prototype[c];return o}(u)}s.exports=r,r.prototype.on=r.prototype.addEventListener=function(u,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+u]=this._callbacks["$"+u]||[]).push(o),this},r.prototype.once=function(u,o){function c(){this.off(u,c),o.apply(this,arguments)}return c.fn=o,this.on(u,c),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(u,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c,f=this._callbacks["$"+u];if(!f)return this;if(arguments.length==1)return delete this._callbacks["$"+u],this;for(var m=0;m-1}var sS=function(){function s(u,o){this.manager=u,this.set(o)}var r=s.prototype;return r.set=function(u){u===iS&&(u=this.compute()),mn&&this.manager.element.style&&om[u]&&(this.manager.element.style[rS]=u),this.actions=u.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var u=[];return As(this.manager.recognizers,function(o){hm(o.options.enable,[o])&&(u=u.concat(o.getTouchAction()))}),function(o){if(sh(o,Kr))return Kr;var c=sh(o,lv),f=sh(o,Is);return c&&f?Kr:c||f?c?lv:Is:sh(o,E0)?E0:nS}(u.join(" "))},r.preventDefaults=function(u){var o=u.srcEvent,c=u.offsetDirection;if(this.manager.session.prevented)o.preventDefault();else{var f=this.actions,m=sh(f,Kr)&&!om[Kr],S=sh(f,Is)&&!om[Is],x=sh(f,lv)&&!om[lv];if(m){var O=u.pointers.length===1,I=u.distance<2,N=u.deltaTime<250;if(O&&I&&N)return}if(!x||!S)return m||S&&c&Bo||x&&c&oh?this.preventSrc(o):void 0}},r.preventSrc=function(u){this.manager.session.prevented=!0,u.preventDefault()},s}();function O0(s,r){for(;s;){if(s===r)return!0;s=s.parentNode}return!1}function lS(s){var r=s.length;if(r===1)return{x:Gc(s[0].clientX),y:Gc(s[0].clientY)};for(var u=0,o=0,c=0;c=Il(r)?s<0?Ms:uv:r<0?hv:zc}function hS(s,r,u){return{x:r/s||0,y:u/s||0}}function cS(s,r){var u=s.session,o=r.pointers,c=o.length;u.firstInput||(u.firstInput=$0(r)),c>1&&!u.firstMultiple?u.firstMultiple=$0(r):c===1&&(u.firstMultiple=!1);var f=u.firstInput,m=u.firstMultiple,S=m?m.center:f.center,x=r.center=lS(o);r.timeStamp=ov(),r.deltaTime=r.timeStamp-f.timeStamp,r.angle=zi(S,x),r.distance=cm(S,x),function(X,Z){var Q=Z.center,ne=X.offsetDelta||{},he=X.prevDelta||{},Te=X.prevInput||{};Z.eventType!==gn&&Te.eventType!==ai||(he=X.prevDelta={x:Te.deltaX||0,y:Te.deltaY||0},ne=X.offsetDelta={x:Q.x,y:Q.y}),Z.deltaX=he.x+(Q.x-ne.x),Z.deltaY=he.y+(Q.y-ne.y)}(u,r),r.offsetDirection=uS(r.deltaX,r.deltaY);var O,I,N=hS(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=N.x,r.overallVelocityY=N.y,r.overallVelocity=Il(N.x)>Il(N.y)?N.x:N.y,r.scale=m?(O=m.pointers,cm((I=o)[0],I[1],um)/cm(O[0],O[1],um)):1,r.rotation=m?function(X,Z){return zi(Z[1],Z[0],um)+zi(X[1],X[0],um)}(m.pointers,o):0,r.maxPointers=u.prevInput?r.pointers.length>u.prevInput.maxPointers?r.pointers.length:u.prevInput.maxPointers:r.pointers.length,function(X,Z){var Q,ne,he,Te,Re=X.lastInterval||Z,xe=Z.timeStamp-Re.timeStamp;if(Z.eventType!==Gi&&(xe>UP||Re.velocity===void 0)){var De=Z.deltaX-Re.deltaX,fe=Z.deltaY-Re.deltaY,We=hS(xe,De,fe);ne=We.x,he=We.y,Q=Il(We.x)>Il(We.y)?We.x:We.y,Te=uS(De,fe),X.lastInterval=Z}else Q=Re.velocity,ne=Re.velocityX,he=Re.velocityY,Te=Re.direction;Z.velocity=Q,Z.velocityX=ne,Z.velocityY=he,Z.direction=Te}(u,r);var L,z=s.element,W=r.srcEvent;O0(L=W.composedPath?W.composedPath()[0]:W.path?W.path[0]:W.target,z)&&(z=L),r.target=z}function VP(s,r,u){var o=u.pointers.length,c=u.changedPointers.length,f=r&gn&&o-c==0,m=r&(ai|Gi)&&o-c==0;u.isFirst=!!f,u.isFinal=!!m,f&&(s.session={}),u.eventType=r,cS(s,u),s.emit("hammer.input",u),s.recognize(u),s.session.prevInput=u}function cv(s){return s.trim().split(/\s+/g)}function dv(s,r,u){As(cv(r),function(o){s.addEventListener(o,u,!1)})}function fv(s,r,u){As(cv(r),function(o){s.removeEventListener(o,u,!1)})}function dS(s){var r=s.ownerDocument||s;return r.defaultView||r.parentWindow||window}var Uc=function(){function s(u,o){var c=this;this.manager=u,this.callback=o,this.element=u.element,this.target=u.options.inputTarget,this.domHandler=function(f){hm(u.options.enable,[u])&&c.handler(f)},this.init()}var r=s.prototype;return r.handler=function(){},r.init=function(){this.evEl&&dv(this.element,this.evEl,this.domHandler),this.evTarget&&dv(this.target,this.evTarget,this.domHandler),this.evWin&&dv(dS(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&fv(this.element,this.evEl,this.domHandler),this.evTarget&&fv(this.target,this.evTarget,this.domHandler),this.evWin&&fv(dS(this.element),this.evWin,this.domHandler)},s}();function lh(s,r,u){if(s.indexOf&&!u)return s.indexOf(r);for(var o=0;ox[r]}):o.sort()),o}var KP={touchstart:gn,touchmove:2,touchend:ai,touchcancel:Gi},I0=function(s){function r(){var u;return r.prototype.evTarget="touchstart touchmove touchend touchcancel",(u=s.apply(this,arguments)||this).targetIds={},u}return ra(r,s),r.prototype.handler=function(u){var o=KP[u.type],c=XP.call(this,u,o);c&&this.callback(this.manager,o,{pointers:c[0],changedPointers:c[1],pointerType:ah,srcEvent:u})},r}(Uc);function XP(s,r){var u,o,c=vv(s.touches),f=this.targetIds;if(r&(2|gn)&&c.length===1)return f[c[0].identifier]=!0,[c,c];var m=vv(s.changedTouches),S=[],x=this.target;if(o=c.filter(function(O){return O0(O.target,x)}),r===gn)for(u=0;u-1&&o.splice(c,1)},JP)}}function QP(s,r){s&gn?(this.primaryTouch=r.changedPointers[0].identifier,mS.call(this,r)):s&(ai|Gi)&&mS.call(this,r)}function A0(s){for(var r=s.srcEvent.clientX,u=s.srcEvent.clientY,o=0;o-1&&this.requireFail.splice(o,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(u){return!!this.simultaneous[u.id]},r.emit=function(u){var o=this,c=this.state;function f(m){o.manager.emit(m,u)}c<8&&f(o.options.event+yS(c)),f(o.options.event),u.additionalEvent&&f(u.additionalEvent),c>=8&&f(o.options.event+yS(c))},r.tryEmit=function(u){if(this.canEmit())return this.emit(u);this.state=Ml},r.canEmit=function(){for(var u=0;uc.threshold&&S&c.direction},u.attrTest=function(o){return hh.prototype.attrTest.call(this,o)&&(2&this.state||!(2&this.state)&&this.directionTest(o))},u.emit=function(o){this.pX=o.deltaX,this.pY=o.deltaY;var c=bS(o.direction);c&&(o.additionalEvent=this.options.event+c),s.prototype.emit.call(this,o)},r}(hh),_S=function(s){function r(o){return o===void 0&&(o={}),s.call(this,fo({event:"swipe",threshold:10,velocity:.3,direction:Bo|oh,pointers:1},o))||this}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return N0.prototype.getTouchAction.call(this)},u.attrTest=function(o){var c,f=this.options.direction;return f&(Bo|oh)?c=o.overallVelocity:f&Bo?c=o.overallVelocityX:f&oh&&(c=o.overallVelocityY),s.prototype.attrTest.call(this,o)&&f&o.offsetDirection&&o.distance>this.options.threshold&&o.maxPointers===this.options.pointers&&Il(c)>this.options.velocity&&o.eventType&ai},u.emit=function(o){var c=bS(o.offsetDirection);c&&this.manager.emit(this.options.event+c,o),this.manager.emit(this.options.event,o)},r}(hh),wS=function(s){function r(o){return o===void 0&&(o={}),s.call(this,fo({event:"pinch",threshold:0,pointers:2},o))||this}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return[Kr]},u.attrTest=function(o){return s.prototype.attrTest.call(this,o)&&(Math.abs(o.scale-1)>this.options.threshold||2&this.state)},u.emit=function(o){if(o.scale!==1){var c=o.scale<1?"in":"out";o.additionalEvent=this.options.event+c}s.prototype.emit.call(this,o)},r}(hh),vm=function(s){function r(o){return o===void 0&&(o={}),s.call(this,fo({event:"rotate",threshold:0,pointers:2},o))||this}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return[Kr]},u.attrTest=function(o){return s.prototype.attrTest.call(this,o)&&(Math.abs(o.rotation)>this.options.threshold||2&this.state)},r}(hh),kS=function(s){function r(o){var c;return o===void 0&&(o={}),(c=s.call(this,fo({event:"press",pointers:1,time:251,threshold:9},o))||this)._timer=null,c._input=null,c}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return[nS]},u.process=function(o){var c=this,f=this.options,m=o.pointers.length===f.pointers,S=o.distancef.time;if(this._input=o,!S||!m||o.eventType&(ai|Gi)&&!x)this.reset();else if(o.eventType&gn)this.reset(),this._timer=setTimeout(function(){c.state=8,c.tryEmit()},f.time);else if(o.eventType&ai)return 8;return Ml},u.reset=function(){clearTimeout(this._timer)},u.emit=function(o){this.state===8&&(o&&o.eventType&ai?this.manager.emit(this.options.event+"up",o):(this._input.timeStamp=ov(),this.manager.emit(this.options.event,this._input)))},r}(pv),SS={domEvents:!1,touchAction:iS,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},L0=[[vm,{enable:!1}],[wS,{enable:!1},["rotate"]],[_S,{direction:Bo}],[N0,{direction:Bo},["swipe"]],[R0],[R0,{event:"doubletap",taps:2},["tap"]],[kS]];function xS(s,r){var u,o=s.element;o.style&&(As(s.options.cssProps,function(c,f){u=sv(o.style,f),r?(s.oldCssProps[u]=o.style[u],o.style[u]=c):o.style[u]=s.oldCssProps[u]||""}),r||(s.oldCssProps={}))}var TS=function(){function s(u,o){var c,f=this;this.options=nh({},SS,o||{}),this.options.inputTarget=this.options.inputTarget||u,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=u,this.input=new((c=this).options.inputClass||(GP?pS:zP?I0:aS?gS:M0))(c,VP),this.touchAction=new sS(this,this.options.touchAction),xS(this,!0),As(this.options.recognizers,function(m){var S=f.add(new m[0](m[1]));m[2]&&S.recognizeWith(m[2]),m[3]&&S.requireFailure(m[3])},this)}var r=s.prototype;return r.set=function(u){return nh(this.options,u),u.touchAction&&this.touchAction.update(),u.inputTarget&&(this.input.destroy(),this.input.target=u.inputTarget,this.input.init()),this},r.stop=function(u){this.session.stopped=u?2:1},r.recognize=function(u){var o=this.session;if(!o.stopped){var c;this.touchAction.preventDefaults(u);var f=this.recognizers,m=o.curRecognizer;(!m||m&&8&m.state)&&(o.curRecognizer=null,m=null);for(var S=0;S\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",m=window.console&&(window.console.warn||window.console.log);return m&&m.call(window.console,o,f),s.apply(this,arguments)}}var OS=DS(function(s,r,u){for(var o=Object.keys(r),c=0;c=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function MS(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u2)return pm.apply(void 0,xr(o=[j0(r[0],r[1])]).call(o,co(pn(r).call(r,2))));var c=r[0],f=r[1];if(c instanceof Date&&f instanceof Date)return c.setTime(f.getTime()),c;var m,S=F0(O$(f));try{for(S.s();!(m=S.n()).done;){var x=m.value;Object.prototype.propertyIsEnumerable.call(f,x)&&(f[x]===mv?delete c[x]:c[x]===null||f[x]===null||ft(c[x])!=="object"||ft(f[x])!=="object"||xt(c[x])||xt(f[x])?c[x]=AS(f[x]):c[x]=pm(c[x],f[x]))}}catch(O){S.e(O)}finally{S.f()}return c}function AS(s){return xt(s)?Ei(s).call(s,function(r){return AS(r)}):ft(s)==="object"&&s!==null?s instanceof Date?new Date(s.getTime()):pm({},s):s}function RS(s){for(var r=0,u=Di(s);r2&&arguments[2]!==void 0&&arguments[2],o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)||u===!0)if(ft(r[c])==="object"&&r[c]!==null&&A1(r[c])===Object.prototype)s[c]===void 0?s[c]=yv({},r[c],u):ft(s[c])==="object"&&s[c]!==null&&A1(s[c])===Object.prototype?yv(s[c],r[c],u):Rl(s,r,c,o);else if(xt(r[c])){var f;s[c]=pn(f=r[c]).call(f)}else Rl(s,r,c,o);return s}function bv(s){var r=ft(s);return r==="object"?s===null?"null":s instanceof Boolean?"Boolean":s instanceof Number?"Number":s instanceof String?"String":xt(s)?"Array":s instanceof Date?"Date":"Object":r==="number"?"Number":r==="boolean"?"Boolean":r==="string"?"String":r===void 0?"undefined":r}function ch(s,r){var u;return xr(u=[]).call(u,co(s),[r])}function NS(s){return pn(s).call(s)}var l4=m0,u4={asBoolean:function(s,r){return typeof s=="function"&&(s=s()),s!=null?s!=0:r||null},asNumber:function(s,r){return typeof s=="function"&&(s=s()),s!=null?Number(s)||r||null:r||null},asString:function(s,r){return typeof s=="function"&&(s=s()),s!=null?String(s):r||null},asSize:function(s,r){return typeof s=="function"&&(s=s()),ia(s)?s:gv(s)?s+"px":r||null},asElement:function(s,r){return typeof s=="function"&&(s=s()),s||r||null}};function gm(s){var r;switch(s.length){case 3:case 4:return(r=B0.exec(s))?{r:ea(r[1]+r[1],16),g:ea(r[2]+r[2],16),b:ea(r[3]+r[3],16)}:null;case 6:case 7:return(r=n4.exec(s))?{r:ea(r[1],16),g:ea(r[2],16),b:ea(r[3],16)}:null;default:return null}}function Nl(s,r,u){var o;return"#"+pn(o=((1<<24)+(s<<16)+(r<<8)+u).toString(16)).call(o,1)}function dh(s,r,u){s/=255,r/=255,u/=255;var o=Math.min(s,Math.min(r,u)),c=Math.max(s,Math.max(r,u));return o===c?{h:0,s:0,v:o}:{h:60*((s===o?3:u===o?1:5)-(s===o?r-u:u===o?s-r:u-s)/(c-o))/360,s:(c-o)/c,v:c}}function LS(s){var r=document.createElement("div"),u={};r.style.cssText=s;for(var o=0;o0&&arguments[0]!==void 0?arguments[0]:1;jt(this,s),this.pixelRatio=r,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 Jt(s,[{key:"insertTo",value:function(r){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=r,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(r){if(typeof r!="function")throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=r}},{key:"setCloseCallback",value:function(r){if(typeof r!="function")throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=r}},{key:"_isColorString",value:function(r){if(typeof r=="string")return h4[r]}},{key:"setColor",value:function(r){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(r!=="none"){var o,c=this._isColorString(r);if(c!==void 0&&(r=c),ia(r)===!0){if(z0(r)===!0){var f=r.substr(4).substr(0,r.length-5).split(",");o={r:f[0],g:f[1],b:f[2],a:1}}else if(FS(r)===!0){var m=r.substr(5).substr(0,r.length-6).split(",");o={r:m[0],g:m[1],b:m[2],a:m[3]}}else if(G0(r)===!0){var S=gm(r);o={r:S.r,g:S.g,b:S.b,a:1}}}else if(r instanceof Object&&r.r!==void 0&&r.g!==void 0&&r.b!==void 0){var x=r.a!==void 0?r.a:"1.0";o={r:r.r,g:r.g,b:r.b,a:x}}if(o===void 0)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: "+ta(r));this._setColor(o,u)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var r=this;(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])===!0&&(this.previousColor=ih({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ci(function(){r.closeCallback!==void 0&&(r.closeCallback(),r.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(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(r){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])===!0&&(this.initialColor=ih({},r)),this.color=r;var u=dh(r.r,r.g,r.b),o=2*Math.PI,c=this.r*u.s,f=this.centerCoordinates.x+c*Math.sin(o*u.h),m=this.centerCoordinates.y+c*Math.cos(o*u.h);this.colorPickerSelector.style.left=f-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(r)}},{key:"_setOpacity",value:function(r){this.color.a=r/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(r){var u=dh(this.color.r,this.color.g,this.color.b);u.v=r/100;var o=_v(u.h,u.s,u.v);o.a=this.color.a,this.color=o,this._updatePicker()}},{key:"_updatePicker",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,u=dh(r.r,r.g,r.b),o=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1)),o.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var c=this.colorPickerCanvas.clientWidth,f=this.colorPickerCanvas.clientHeight;o.clearRect(0,0,c,f),o.putImageData(this.hueCircle,0,0),o.fillStyle="rgba(0,0,0,"+(1-u.v)+")",o.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),T0(o).call(o),this.brightnessRange.value=100*u.v,this.opacityRange.value=100*r.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 r,u,o,c;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 f=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(f.webkitBackingStorePixelRatio||f.mozBackingStorePixelRatio||f.msBackingStorePixelRatio||f.oBackingStorePixelRatio||f.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var m=document.createElement("DIV");m.style.color="red",m.style.fontWeight="bold",m.style.padding="10px",m.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(m)}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(x){}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(x){}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=de(r=this._hide).call(r,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=de(u=this._apply).call(u,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=de(o=this._save).call(o,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=de(c=this._loadLast).call(c,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 r=this;this.drag={},this.pinch={},this.hammer=new Y0(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(u){u.isFirst&&r._moveSelector(u)}),this.hammer.on("tap",function(u){r._moveSelector(u)}),this.hammer.on("panstart",function(u){r._moveSelector(u)}),this.hammer.on("panmove",function(u){r._moveSelector(u)}),this.hammer.on("panend",function(u){r._moveSelector(u)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var u,o,c,f,m=this.colorPickerCanvas.clientWidth,S=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,m,S),this.centerCoordinates={x:.5*m,y:.5*S},this.r=.49*m;var x,O=2*Math.PI/360,I=1/this.r;for(c=0;c<360;c++)for(f=0;f3&&arguments[3]!==void 0?arguments[3]:1,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};jt(this,s),this.parent=r,this.changedOptions=[],this.container=u,this.allowCreation=!1,this.hideOption=f,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},ih(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new V0(c),this.wrapper=void 0}return Jt(s,[{key:"setOptions",value:function(r){if(r!==void 0){this.popupHistory={},this._removePopup();var u=!0;if(typeof r=="string")this.options.filter=r;else if(xt(r))this.options.filter=r.join();else if(ft(r)==="object"){if(r==null)throw new TypeError("options cannot be null");r.container!==void 0&&(this.options.container=r.container),Mt(r)!==void 0&&(this.options.filter=Mt(r)),r.showButton!==void 0&&(this.options.showButton=r.showButton),r.enabled!==void 0&&(u=r.enabled)}else typeof r=="boolean"?(this.options.filter=!0,u=r):typeof r=="function"&&(this.options.filter=r,u=!0);Mt(this.options)===!1&&(u=!1),this.options.enabled=u}this._clean()}},{key:"setModuleOptions",value:function(r){this.moduleOptions=r,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var r=Mt(this.options),u=0,o=!1;for(var c in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,c)&&(this.allowCreation=!1,o=!1,typeof r=="function"?o=(o=r(c,[]))||this._handleObject(this.configureOptions[c],[c],!0):r!==!0&&er(r).call(r,c)===-1||(o=!0),o!==!1&&(this.allowCreation=!0,u>0&&this._makeItem([]),this._makeHeader(c),this._handleObject(this.configureOptions[c],[c])),u++);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 r=0;r1?o-1:0),f=1;f2&&arguments[2]!==void 0&&arguments[2],c=document.createElement("div");if(c.className="vis-configuration vis-config-label vis-config-s"+u.length,o===!0){for(;c.firstChild;)c.removeChild(c.firstChild);c.appendChild(q0("i","b",r))}else c.innerText=r+":";return c}},{key:"_makeDropdown",value:function(r,u,o){var c=document.createElement("select");c.className="vis-configuration vis-config-select";var f=0;u!==void 0&&er(r).call(r,u)!==-1&&(f=er(r).call(r,u));for(var m=0;mm&&m!==1&&(x.max=Math.ceil(u*N),I=x.max,O="range increased"),x.value=u}else x.value=c;var L=document.createElement("input");L.className="vis-configuration vis-config-rangeinput",L.value=x.value;var z=this;x.onchange=function(){L.value=this.value,z._update(Number(this.value),o)},x.oninput=function(){L.value=this.value};var W=this._makeLabel(o[o.length-1],o),X=this._makeItem(o,W,x,L);O!==""&&this.popupHistory[X]!==I&&(this.popupHistory[X]=I,this._setupPopup(O,X))}},{key:"_makeButton",value:function(){var r=this;if(this.options.showButton===!0){var u=document.createElement("div");u.className="vis-configuration vis-config-button",u.innerText="generate options",u.onclick=function(){r._printOptions()},u.onmouseover=function(){u.className="vis-configuration vis-config-button hover"},u.onmouseout=function(){u.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(u)}}},{key:"_setupPopup",value:function(r,u){var o=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],c=!1,f=Mt(this.options),m=!1;for(var S in r)if(Object.prototype.hasOwnProperty.call(r,S)){c=!0;var x=r[S],O=ch(u,S);if(typeof f=="function"&&(c=f(S,u))===!1&&!xt(x)&&typeof x!="string"&&typeof x!="boolean"&&x instanceof Object&&(this.allowCreation=!1,c=this._handleObject(x,O,!0),this.allowCreation=o===!1),c!==!1){m=!0;var I=this._getValue(O);if(xt(x))this._handleArray(x,I,O);else if(typeof x=="string")this._makeTextInput(x,I,O);else if(typeof x=="boolean")this._makeCheckbox(x,I,O);else if(x instanceof Object){if(!this.hideOption(u,S,this.moduleOptions))if(x.enabled!==void 0){var N=ch(O,"enabled"),L=this._getValue(N);if(L===!0){var z=this._makeLabel(S,O,!0);this._makeItem(O,z),m=this._handleObject(x,O)||m}else this._makeCheckbox(x,L,O)}else{var W=this._makeLabel(S,O,!0);this._makeItem(O,W),m=this._handleObject(x,O)||m}}else console.error("dont know how to handle",x,S,O)}}return m}},{key:"_handleArray",value:function(r,u,o){typeof r[0]=="string"&&r[0]==="color"?(this._makeColorField(r,u,o),r[1]!==u&&this.changedOptions.push({path:o,value:u})):typeof r[0]=="string"?(this._makeDropdown(r,u,o),r[0]!==u&&this.changedOptions.push({path:o,value:u})):typeof r[0]=="number"&&(this._makeRange(r,u,o),r[0]!==u&&this.changedOptions.push({path:o,value:Number(u)}))}},{key:"_update",value:function(r,u){var o=this._constructOptions(r,u);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",o),this.initialized=!0,this.parent.setOptions(o)}},{key:"_constructOptions",value:function(r,u){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=o;r=(r=r==="true"||r)!=="false"&&r;for(var f=0;ff-this.padding&&(x=!0),m=x?this.x-o:this.x,S=O?this.y-u:this.y}else(S=this.y-u)+u+this.padding>c&&(S=c-u-this.padding),Sf&&(m=f-o-this.padding),mm.distance?" in "+s.printLocation(f.path,r,"")+"Perhaps it was misplaced? Matching option found at: "+s.printLocation(m.path,m.closestMatch,""):f.distance<=8?'. Did you mean "'+f.closestMatch+'"?'+s.printLocation(f.path,r):". Did you mean one of these: "+s.print(Di(u))+s.printLocation(o,r),console.error('%cUnknown option detected: "'+r+'"'+c,K0),wv=!0}},{key:"findInOptions",value:function(r,u,o){var c=arguments.length>3&&arguments[3]!==void 0&&arguments[3],f=1e9,m="",S=[],x=r.toLowerCase(),O=void 0;for(var I in u){var N=void 0;if(u[I].__type__!==void 0&&c===!0){var L=s.findInOptions(r,u[I],ch(o,I));f>L.distance&&(m=L.closestMatch,S=L.path,f=L.distance,O=L.indexMatch)}else{var z;er(z=I.toLowerCase()).call(z,x)!==-1&&(O=I),f>(N=s.levenshteinDistance(r,I))&&(m=I,S=NS(o),f=N)}}return{closestMatch:m,path:S,distance:f,indexMatch:O}}},{key:"printLocation",value:function(r,u){for(var o=` `+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `)+`options = { `,c=0;c>>0,Z=(Te*=Z)>>>0,Z+=4294967296*(Te-=Z)}return 23283064365386963e-26*(Z>>>0)}}(),L=N(" "),z=N(" "),W=N(" "),X=0;X0)return o=="before"?Math.max(0,x-1):x;if(c(m,r)<0&&c(S,r)>0)return o=="before"?x:Math.min(s.length-1,x+1);c(m,r)<0?I=x+1:N=x-1,O++}return-1},bridgeObject:U0,copyAndExtendArray:ch,copyArray:NS,deepExtend:yv,deepObjectAssign:j0,easingFunctions:{linear:function(s){return s},easeInQuad:function(s){return s*s},easeOutQuad:function(s){return s*(2-s)},easeInOutQuad:function(s){return s<.5?2*s*s:(4-2*s)*s-1},easeInCubic:function(s){return s*s*s},easeOutCubic:function(s){return--s*s*s+1},easeInOutCubic:function(s){return s<.5?4*s*s*s:(s-1)*(2*s-2)*(2*s-2)+1},easeInQuart:function(s){return s*s*s*s},easeOutQuart:function(s){return 1- --s*s*s*s},easeInOutQuart:function(s){return s<.5?8*s*s*s*s:1-8*--s*s*s*s},easeInQuint:function(s){return s*s*s*s*s},easeOutQuint:function(s){return 1+--s*s*s*s*s},easeInOutQuint:function(s){return s<.5?16*s*s*s*s*s:1+16*--s*s*s*s*s}},equalArray:function(s,r){if(s.length!==r.length)return!1;for(var u=0,o=s.length;u2&&arguments[2]!==void 0&&arguments[2];for(var c in r)if(u[c]!==void 0)if(u[c]===null||ft(u[c])!=="object")Rl(r,u,c,o);else{var f=r[c],m=u[c];mm(f)&&mm(m)&&s(f,m,o)}},forEach:function(s,r){if(xt(s))for(var u=s.length,o=0;o0&&arguments[0]!==void 0?arguments[0]:window.event,r=null;return s&&(s.target?r=s.target:s.srcElement&&(r=s.srcElement)),r instanceof Element&&(r.nodeType==null||r.nodeType!=3||(r=r.parentNode)instanceof Element)?r:null},getType:bv,hasParent:function(s,r){for(var u=s;u;){if(u===r)return!0;if(!u.parentNode)return!1;u=u.parentNode}return!1},hexToHSV:W0,hexToRGB:gm,insertSort:function(s,r){for(var u=0;u0&&r(o,s[c-1])<0;c--)s[c]=s[c-1];s[c]=o}return s},isDate:function(s){return!!(s instanceof Date||ia(s)&&(i4.exec(s)||!isNaN(Date.parse(s))))},isNumber:gv,isObject:mm,isString:ia,isValidHex:G0,isValidRGB:z0,isValidRGBA:FS,mergeOptions:function(s,r,u){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=function(I){return I!=null},f=function(I){return I!==null&&ft(I)==="object"};if(!f(s))throw new Error("Parameter mergeTarget must be an object");if(!f(r))throw new Error("Parameter options must be an object");if(!c(u))throw new Error("Parameter option must have a value");if(!f(o))throw new Error("Parameter globalOptions must be an object");var m=r[u],S=f(o)&&!function(I){for(var N in I)if(Object.prototype.hasOwnProperty.call(I,N))return!1;return!0}(o)?o[u]:void 0,x=S?S.enabled:void 0;if(m!==void 0){if(typeof m=="boolean")return f(s[u])||(s[u]={}),void(s[u].enabled=m);if(m===null&&!f(s[u])){if(!c(S))return;s[u]=nm(S)}if(f(m)){var O=!0;m.enabled!==void 0?O=m.enabled:x!==void 0&&(O=S.enabled),function(I,N,L){f(I[L])||(I[L]={});var z=N[L],W=I[L];for(var X in z)Object.prototype.hasOwnProperty.call(z,X)&&(W[X]=z[X])}(s,r,u),s[u].enabled=O}}},option:u4,overrideOpacity:function(s,r){if(Wc(s).call(s,"rgba"))return s;if(Wc(s).call(s,"rgb")){var u=s.substr(er(s).call(s,"(")+1).replace(")","").split(",");return"rgba("+u[0]+","+u[1]+","+u[2]+","+r+")"}var o=gm(s);return o==null?s:"rgba("+o.r+","+o.g+","+o.b+","+r+")"},parseColor:function(s,r){if(ia(s)){var u=s;if(z0(u)){var o,c=Ei(o=u.substr(4).substr(0,u.length-5).split(",")).call(o,function(I){return ea(I)});u=Nl(c[0],c[1],c[2])}if(G0(u)===!0){var f=W0(u),m={h:f.h,s:.8*f.s,v:Math.min(1,1.02*f.v)},S={h:f.h,s:Math.min(1,1.25*f.s),v:.8*f.v},x=H0(S.h,S.s,S.v),O=H0(m.h,m.s,m.v);return{background:u,border:x,highlight:{background:O,border:x},hover:{background:O,border:x}}}return{background:u,border:u,highlight:{background:u,border:u},hover:{background:u,border:u}}}return r?{background:s.background||r.background,border:s.border||r.border,highlight:ia(s.highlight)?{border:s.highlight,background:s.highlight}:{background:s.highlight&&s.highlight.background||r.highlight.background,border:s.highlight&&s.highlight.border||r.highlight.border},hover:ia(s.hover)?{border:s.hover,background:s.hover}:{border:s.hover&&s.hover.border||r.hover.border,background:s.hover&&s.hover.background||r.hover.background}}:{background:s.background||void 0,border:s.border||void 0,highlight:ia(s.highlight)?{border:s.highlight,background:s.highlight}:{background:s.highlight&&s.highlight.background||void 0,border:s.highlight&&s.highlight.border||void 0},hover:ia(s.hover)?{border:s.hover,background:s.hover}:{border:s.hover&&s.hover.border||void 0,background:s.hover&&s.hover.background||void 0}}},preventDefault:function(s){s||(s=window.event),s&&(s.preventDefault?s.preventDefault():s.returnValue=!1)},pureDeepObjectAssign:function(s){for(var r,u=arguments.length,o=new Array(u>1?u-1:0),c=1;c3&&arguments[3]!==void 0&&arguments[3];if(xt(u))throw new TypeError("Arrays are not supported by deepExtend");for(var c=0;c2?u-2:0),c=2;c3&&arguments[3]!==void 0&&arguments[3];if(xt(u))throw new TypeError("Arrays are not supported by deepExtend");for(var c in u)if(Object.prototype.hasOwnProperty.call(u,c)&&!Wc(s).call(s,c))if(u[c]&&u[c].constructor===Object)r[c]===void 0&&(r[c]={}),r[c].constructor===Object?yv(r[c],u[c]):Rl(r,u,c,o);else if(xt(u[c])){r[c]=[];for(var f=0;f/g,D4=/"/g,VS=/"/g,O4=/&#([a-zA-Z0-9]*);?/gim,qS=/:?/gim,$4=/&newline;?/gim,Sv=/((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,KS=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Q0=/u\s*r\s*l\s*\(.*/gi;function XS(s){return s.replace(D4,""")}function eb(s){return s.replace(VS,'"')}function ZS(s){return s.replace(O4,function(r,u){return u[0]==="x"||u[0]==="X"?String.fromCharCode(parseInt(u.substr(1),16)):String.fromCharCode(parseInt(u,10))})}function JS(s){return s.replace(qS,":").replace($4," ")}function QS(s){for(var r="",u=0,o=s.length;u",o);if(c===-1)break;u=c+3}return r},Tr.stripBlankChar=function(s){var r=s.split("");return(r=r.filter(function(u){var o=u.charCodeAt(0);return o!==127&&(!(o<=31)||o===10||o===13)})).join("")},Tr.attributeWrapSign='"',Tr.cssFilter=zS,Tr.getDefaultCSSWhiteList=x4;var km={},Ll=_m;function vo(s){var r,u=Ll.spaceIndex(s);return r=u===-1?s.slice(1,-1):s.slice(1,u+1),(r=Ll.trim(r).toLowerCase()).slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function $a(s){return s.slice(0,2)==="0;r--){var u=s[r];if(u!==" ")return u==="="?r:-1}}function rx(s){return function(r){return r[0]==='"'&&r[r.length-1]==='"'||r[0]==="'"&&r[r.length-1]==="'"}(s)?s.substr(1,s.length-2):s}km.parseTag=function(s,r,u){var o="",c=0,f=!1,m=!1,S=0,x=s.length,O="",I="";e:for(S=0;S"||S===x-1){o+=u(s.slice(c,f)),O=vo(I=s.slice(f,S+1)),o+=r(f,o.length,O,I,$a(I)),c=S+1,f=!1;continue}if(N==='"'||N==="'")for(var L=1,z=s.charAt(S-L);z.trim()===""||z==="=";){if(z==="="){m=N;continue e}z=s.charAt(S-++L)}}else if(N===m){m=!1;continue}}return c";var Re=function(fe){var We=Pa.spaceIndex(fe);if(We===-1)return{html:"",closing:fe[fe.length-2]==="/"};var at=(fe=Pa.trim(fe.slice(We+1,-1)))[fe.length-1]==="/";return at&&(fe=Pa.trim(fe.slice(0,-1))),{html:fe,closing:at}}(Q),xe=o[Z],De=xm(Re.html,function(fe,We){var at=Pa.indexOf(xe,fe)!==-1,Gt=m(Z,fe,We,at);return xv(Gt)?at?(We=x(Z,fe,We,N))?fe+"="+I+We+I:fe:xv(Gt=S(Z,fe,We,at))?void 0:Gt:Gt});return Q="<"+Z,De&&(Q+=" "+De),Re.closing&&(Q+=" /"),Q+=">"}return xv(Te=f(Z,Q,he))?O(Q):Te},O);return L&&(z=L.remove(z)),z};var I4=nb;(function(s,r){var u=Tr,o=km,c=I4;function f(m,S){return new c(S).process(m)}(r=s.exports=f).filterXSS=f,r.FilterXSS=c,function(){for(var m in u)r[m]=u[m];for(var S in o)r[S]=o[S]}(),typeof window!="undefined"&&(window.filterXSS=s.exports),typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=s.exports)})(X0,X0.exports);var ix=p(X0.exports);let Tv,ab=new Uint8Array(16);function ph(){if(!Tv&&(Tv=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Tv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Tv(ab)}let Xr=[];for(let s=0;s<256;++s)Xr.push((s+256).toString(16).slice(1));var Vc={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Rs(s,r,u){if(Vc.randomUUID&&!r&&!s)return Vc.randomUUID();let o=(s=s||{}).random||(s.rng||ph)();return o[6]=15&o[6]|64,o[8]=63&o[8]|128,function(c,f=0){return Xr[c[f+0]]+Xr[c[f+1]]+Xr[c[f+2]]+Xr[c[f+3]]+"-"+Xr[c[f+4]]+Xr[c[f+5]]+"-"+Xr[c[f+6]]+Xr[c[f+7]]+"-"+Xr[c[f+8]]+Xr[c[f+9]]+"-"+Xr[c[f+10]]+Xr[c[f+11]]+Xr[c[f+12]]+Xr[c[f+13]]+Xr[c[f+14]]+Xr[c[f+15]]}(o)}function nx(s,r){var u=Di(s);if(Dk){var o=Dk(s);r&&(o=Mt(o).call(o,function(c){return Mk(s,c).enumerable})),u.push.apply(u,o)}return u}function ob(s){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},x=s._idProp,O=new h.DataSet({fieldId:x}),I=Ei(r=h.createNewDataPipeFrom(s)).call(r,function(N){var L;return Vk(L=Di(N)).call(L,function(z,W){return z[W]=lb(N[W],S[W]),z},{})}).to(O);return I.all().start(),{add:function(){var N;return(N=s.getDataSet()).add.apply(N,arguments)},remove:function(){var N;return(N=s.getDataSet()).remove.apply(N,arguments)},update:function(){var N;return(N=s.getDataSet()).update.apply(N,arguments)},updateOnly:function(){var N;return(N=s.getDataSet()).updateOnly.apply(N,arguments)},clear:function(){var N;return(N=s.getDataSet()).clear.apply(N,arguments)},forEach:de(u=Ae(O)).call(u,O),get:de(o=O.get).call(o,O),getIds:de(c=O.getIds).call(c,O),off:de(f=O.off).call(f,O),on:de(m=O.on).call(m,O),get length(){return O.length},idProp:x,type:S,rawDS:s,coercedDS:O,dispose:function(){return I.stop()}}}var ax=function(s){var r=new ix.FilterXSS(s);return function(u){return r.process(u)}},M4=function(s){return s},Vi=ax(),K=ob(ob({},_4),{},{convert:lb,setupXSSProtection:function(s){s&&(s.disabled===!0?(Vi=M4,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):s.filterOptions&&(Vi=ax(s.filterOptions)))}});Xk(K,"xss",{get:function(){return Vi}});var Zr=b,Fn=w,Tm=Si,Ev=H1.trim,Dv=g0,Ov=pe("".charAt),Ls=Zr.parseFloat,po=Zr.Symbol,Yl=po&&po.iterator,ub=1/Ls(Dv+"-0")!=-1/0||Yl&&!Fn(function(){Ls(Object(Yl))})?function(s){var r=Ev(Tm(s)),u=Ls(r);return u===0&&Ov(r,0)==="-"?-0:u}:Ls;Ke({global:!0,forced:parseFloat!==ub},{parseFloat:ub});var $v=p(Lt.parseFloat),Ia=function(){function s(r,u){jt(this,s),this.options=null,this.props=null}return Jt(s,[{key:"setOptions",value:function(r){r&&K.extend(this.options,r)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var r=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,r}}]),s}(),Fs=io,Cm=Si,mh=Bt,A4=RangeError;Ke({target:"String",proto:!0},{repeat:function(s){var r=Cm(mh(this)),u="",o=Fs(s);if(o<0||o===1/0)throw new A4("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(r+=r))1&o&&(u+=r);return u}});var ox=qr("String").repeat,hb=Pt,sx=ox,Em=String.prototype,Dm=function(s){var r=s.repeat;return typeof s=="string"||s===Em||hb(Em,s)&&r===Em.repeat?sx:r},Bl=p(Dm),cb=wc,R4=Math.floor,Om=function(s,r){var u=s.length,o=R4(u/2);return u<8?N4(s,r):L4(s,Om(cb(s,0,o),r),Om(cb(s,o),r),r)},N4=function(s,r){for(var u,o,c=s.length,f=1;f0;)s[o]=s[--o];o!==f++&&(s[o]=u)}return s},L4=function(s,r,u,o){for(var c=r.length,f=u.length,m=0,S=0;m3)){if(B4)return!0;if(fx)return fx<603;var s,r,u,o,c="";for(s=65;s<76;s++){switch(r=String.fromCharCode(s),s){case 66:case 69:case 70:case 72:u=3;break;case 68:case 71:u=4;break;default:u=2}for(o=0;o<47;o++)Hl.push({k:r+o,v:u})}for(Hl.sort(function(f,m){return m.v-f.v}),o=0;odb(x)?1:-1}}(s)),u=hx(c),o=0;o=4*f){var O=0,I=c.clone();switch(Bl(u[m])){case"daily":S.day()!=x.day()&&(O=1),S=S.dayOfYear(o.dayOfYear()).year(o.year()).subtract(7,"days"),x=x.dayOfYear(o.dayOfYear()).year(o.year()).subtract(7-O,"days"),I.add(1,"weeks");break;case"weekly":var N=x.diff(S,"days"),L=S.day();x=(S=S.date(o.date()).month(o.month()).year(o.year())).clone(),S=S.day(L).subtract(1,"weeks"),x=x.day(L).add(N,"days").subtract(1,"weeks"),I.add(1,"weeks");break;case"monthly":S.month()!=x.month()&&(O=1),S=S.month(o.month()).year(o.year()).subtract(1,"months"),x=x.month(o.month()).year(o.year()).subtract(1,"months").add(O,"months"),I.add(1,"months");break;case"yearly":S.year()!=x.year()&&(O=1),S=S.year(o.year()).subtract(1,"years"),x=x.year(o.year()).subtract(1,"years").add(O,"years"),I.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Bl(u[m]))}for(;S=u[c].start&&u[f].end<=u[c].end?u[f].remove=!0:u[f].start>=u[c].start&&u[f].start<=u[c].end?(u[c].end=u[f].end,u[f].remove=!0):u[f].end>=u[c].start&&u[f].end<=u[c].end&&(u[c].start=u[f].start,u[f].remove=!0));for(c=0;c=m&&cs.range.end){var S={start:s.range.start,end:r};return r=Zc(s.options.moment,s.body.hiddenDates,S,r),o=s.range.conversion(u,f),(r.valueOf()-o.offset)*o.scale}return r=Zc(s.options.moment,s.body.hiddenDates,s.range,r),o=s.range.conversion(u,f),(r.valueOf()-o.offset)*o.scale}function Ma(s,r,u){if(s.body.hiddenDates.length==0){var o=s.range.conversion(u);return new Date(r/o.scale+o.offset)}var c=Xc(s.body.hiddenDates,s.range.start,s.range.end),f=(s.range.end-s.range.start-c)*r/u,m=Qc(s.body.hiddenDates,s.range,f);return new Date(m+f+s.range.start)}function Xc(s,r,u){for(var o=0,c=0;c=r&&m=r&&m<=u&&(o+=m-f)}return o}function Zc(s,r,u,o){return o=s(o).toDate().valueOf(),o-=Jc(s,r,u,o)}function Jc(s,r,u,o){var c=0;o=s(o).toDate().valueOf();for(var f=0;f=u.start&&S=S&&(c+=S-m)}return c}function Qc(s,r,u){for(var o=0,c=0,f=r.start,m=0;m=r.start&&x=u)break;o+=x-S}}return o}function zo(s,r,u,o){var c=Uo(r,s);return c.hidden==1?u<0?o==1?c.startDate-(c.endDate-r)-1:c.startDate-1:o==1?c.endDate+(r-c.startDate)+1:c.endDate+1:r}function Uo(s,r){for(var u=0;u=o&&s1e3&&(f=1e3),o.body.dom.rollingModeBtn.style.visibility="hidden",o.currentTimeTimer=Ci(c,f)})()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(o,c,f,m,S){f||(f={}),f.byUser!==!0&&(f.byUser=!1);var x=this,O=o!=null?K.convert(o,"Date").valueOf():null,I=c!=null?K.convert(c,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,f.animation){var N,L=this.start,z=this.end,W=ft(f.animation)==="object"&&"duration"in f.animation?f.animation.duration:500,X=ft(f.animation)==="object"&&"easingFunction"in f.animation?f.animation.easingFunction:"easeInOutQuad",Z=K.easingFunctions[X];if(!Z)throw new Error(xr(N="Unknown easing function ".concat(ta(X),". Choose from: ")).call(N,Di(K.easingFunctions).join(", ")));var Q=Qn(),ne=!1;return function Re(){if(!x.props.touch.dragging){var xe=Qn()-Q,De=Z(xe/W),fe=xe>W,We=fe||O===null?O:L+(O-L)*De,at=fe||I===null?I:z+(I-z)*De;he=x._applyRange(We,at),Wo(x.options.moment,x.body,x.options.hiddenDates),ne=ne||he;var Gt={start:new Date(x.start),end:new Date(x.end),byUser:f.byUser,event:f.event};if(S&&S(De,he,fe),he&&x.body.emitter.emit("rangechange",Gt),fe){if(ne&&(x.body.emitter.emit("rangechanged",Gt),m))return m()}else x.animationTimer=Ci(Re,20)}}()}var he=this._applyRange(O,I);if(Wo(this.options.moment,this.body,this.options.hiddenDates),he){var Te={start:new Date(this.start),end:new Date(this.end),byUser:f.byUser,event:f.event};if(this.body.emitter.emit("rangechange",Te),clearTimeout(x.timeoutID),x.timeoutID=Ci(function(){x.body.emitter.emit("rangechanged",Te)},200),m)return m()}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(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(o,c){var f,m=o!=null?K.convert(o,"Date").valueOf():this.start,S=c!=null?K.convert(c,"Date").valueOf():this.end,x=this.options.max!=null?K.convert(this.options.max,"Date").valueOf():null,O=this.options.min!=null?K.convert(this.options.min,"Date").valueOf():null;if(isNaN(m)||m===null)throw new Error('Invalid start "'.concat(o,'"'));if(isNaN(S)||S===null)throw new Error('Invalid end "'.concat(c,'"'));if(Sx&&(S=x)),x!==null&&S>x&&(m-=f=S-x,S-=f,O!=null&&m=this.start-.5&&S<=this.end?(m=this.start,S=this.end):(m-=(f=I-(S-m))/2,S+=f/2))}if(this.options.zoomMax!==null){var N=$v(this.options.zoomMax);N<0&&(N=0),S-m>N&&(this.end-this.start===N&&mthis.end?(m=this.start,S=this.end):(m+=(f=S-m-N)/2,S-=f/2))}var L=this.start!=m||this.end!=S;return m>=this.start&&m<=this.end||S>=this.start&&S<=this.end||this.start>=m&&this.start<=S||this.end>=m&&this.end<=S||this.body.emitter.emit("checkRangedItems"),this.start=m,this.end=S,L}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(o,c){return u.conversion(this.start,this.end,o,c)}},{key:"_onDragStart",value:function(o){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(o)&&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(o){if(o&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var c=this.options.direction;yb(c);var f=c=="horizontal"?o.deltaX:o.deltaY;f-=this.deltaDifference;var m=this.props.touch.end-this.props.touch.start;m-=Xc(this.body.hiddenDates,this.start,this.end);var S,x=c=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height;S=this.options.rtl?f/x*m:-f/x*m;var O=this.props.touch.start+S,I=this.props.touch.end+S,N=zo(this.body.hiddenDates,O,this.previousDelta-f,!0),L=zo(this.body.hiddenDates,I,this.previousDelta-f,!0);if(N!=O||L!=I)return this.deltaDifference+=f,this.props.touch.start=N,this.props.touch.end=L,void this._onDrag(o);this.previousDelta=f,this._applyRange(O,I);var z=new Date(this.start),W=new Date(this.end);this.body.emitter.emit("rangechange",{start:z,end:W,byUser:!0,event:o}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(o){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:o}))}},{key:"_onMouseWheel",value:function(o){var c=0;if(o.wheelDelta?c=o.wheelDelta/120:o.detail?c=-o.detail/3:o.deltaY&&(c=-o.deltaY/3),!(this.options.zoomKey&&!o[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(o)&&c){var f,m,S=this.options.zoomFriction||5;if(f=c<0?1-c/S:1/(1+c/S),this.rolling){var x=this.options.rollingMode&&this.options.rollingMode.offset||.5;m=this.start+(this.end-this.start)*x}else{var O=this.getPointer({x:o.clientX,y:o.clientY},this.body.dom.center);m=this._pointerToDate(O)}this.zoom(f,m,c,o),o.preventDefault()}}},{key:"_onTouch",value:function(o){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,K.preventDefault(o)}},{key:"_onPinch",value:function(o){if(this.options.zoomable&&this.options.moveable){K.preventDefault(o),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(o.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var c=1/(o.scale+this.scaleOffset),f=this.props.touch.centerDate,m=Xc(this.body.hiddenDates,this.start,this.end),S=Jc(this.options.moment,this.body.hiddenDates,this,f),x=m-S,O=f-S+(this.props.touch.start-(f-S))*c,I=f+x+(this.props.touch.end-(f+x))*c;this.startToFront=1-c<=0,this.endToFront=c-1<=0;var N=zo(this.body.hiddenDates,O,1-c,!0),L=zo(this.body.hiddenDates,I,c-1,!0);N==O&&L==I||(this.props.touch.start=N,this.props.touch.end=L,this.scaleOffset=1-o.scale,O=N,I=L);var z={animation:!1,byUser:!0,event:o};this.setRange(O,I,z),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(o){var c=o.center?o.center.x:o.clientX,f=this.body.dom.centerContainer.getBoundingClientRect(),m=this.options.rtl?c-f.left:f.right-c,S=this.body.util.toTime(m);return S>=this.start&&S<=this.end}},{key:"_pointerToDate",value:function(o){var c,f=this.options.direction;if(yb(f),f=="horizontal")return this.body.util.toTime(o.x).valueOf();var m=this.body.domProps.center.height;return c=this.conversion(m),o.y/c.scale+c.offset}},{key:"getPointer",value:function(o,c){var f=c.getBoundingClientRect();return this.options.rtl?{x:f.right-o.x,y:o.y-f.top}:{x:o.x-f.left,y:o.y-f.top}}},{key:"zoom",value:function(o,c,f,m){c==null&&(c=(this.start+this.end)/2);var S=Xc(this.body.hiddenDates,this.start,this.end),x=Jc(this.options.moment,this.body.hiddenDates,this,c),O=S-x,I=c-x+(this.start-(c-x))*o,N=c+O+(this.end-(c+O))*o;this.startToFront=!(f>0),this.endToFront=!(-f>0);var L=zo(this.body.hiddenDates,I,f,!0),z=zo(this.body.hiddenDates,N,-f,!0);L==I&&z==N||(I=L,N=z);var W={animation:!1,byUser:!0,event:m};this.setRange(I,N,W),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(o){var c=this.end-this.start,f=this.start+c*o,m=this.end+c*o;this.start=f,this.end=m}},{key:"moveTo",value:function(o){var c=(this.start+this.end)/2-o,f=this.start-c,m=this.end-c;this.setRange(f,m,{animation:!1,byUser:!0,event:null})}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(o,c,f,m){return m===void 0&&(m=0),f!=0&&c-o!=0?{offset:o,scale:f/(c-o-m)}:{offset:0,scale:1}}}]),u}(Ia);function yb(s){if(s!="horizontal"&&s!="vertical")throw new TypeError('Unknown direction "'.concat(s,'". Choose "horizontal" or "vertical".'))}var bx=vn.some;Ke({target:"Array",proto:!0,forced:!Zu("some")},{some:function(s){return bx(this,s,arguments.length>1?arguments[1]:void 0)}});var Mm,_x=qr("Array").some,wx=Pt,U4=_x,Am=Array.prototype,kx=function(s){var r=s.some;return s===Am||wx(Am,s)&&r===Am.some?U4:r},Sx=p(kx),xx=p(Lt.setInterval),Rm=null;typeof window!="undefined"?Mm=function s(r,u){var o=u||{preventDefault:!1};if(r.Manager){var c=r,f=function(I,N){var L=Object.create(o);return N&&c.assign(L,N),s(new c(I,L),L)};return c.assign(f,c),f.Manager=function(I,N){var L=Object.create(o);return N&&c.assign(L,N),s(new c.Manager(I,L),L)},f}var m=Object.create(r),S=r.element;function x(I){return I.match(/[^ ]+/g)}function O(I){if(I.type!=="hammer.input"){if(I.srcEvent._handled||(I.srcEvent._handled={}),I.srcEvent._handled[I.type])return;I.srcEvent._handled[I.type]=!0}var N=!1;I.stopPropagation=function(){N=!0};var L=I.srcEvent.stopPropagation.bind(I.srcEvent);typeof L=="function"&&(I.srcEvent.stopPropagation=function(){L(),I.stopPropagation()}),I.firstTarget=Rm;for(var z=Rm;z&&!N;){var W=z.hammer;if(W){for(var X,Z=0;Z0?m._handlers[L]=z:(r.off(L,O),delete m._handlers[L]))}),m},m.emit=function(I,N){Rm=N.target,r.emit(I,N)},m.destroy=function(){var I=r.element.hammer,N=I.indexOf(m);N!==-1&&I.splice(N,1),I.length||delete r.element.hammer,m._handlers={},r.destroy()},m}(window.Hammer||IS,{preventDefault:"mouse"}):Mm=function(){return function(){var s=function(){};return{on:s,off:s,destroy:s,emit:s,get:function(r){return{set:s}}}}()};var bn=Mm;function Tx(s,r){r.inputHandler=function(u){u.isFirst&&r(u)},s.on("hammer.input",r.inputHandler)}var Av=function(){function s(r,u,o,c,f){jt(this,s),this.moment=f&&f.moment||Nn,this.options=f||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(r,u,o),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,xt(c)?this.hiddenDates=c:this.hiddenDates=c!=null?[c]:[],this.format=s.FORMAT}return Jt(s,[{key:"setMoment",value:function(r){this.moment=r,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(r){var u=K.deepExtend({},s.FORMAT);this.format=K.deepExtend(u,r)}},{key:"setRange",value:function(r,u,o){if(!(r instanceof Date&&u instanceof Date))throw"No legal start or end date in method setRange";this._start=r!=null?this.moment(r.valueOf()):Qn(),this._end=u!=null?this.moment(u.valueOf()):Qn(),this.autoScale&&this.setMinimumStep(o)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch(this.scale=="week"&&this.current.weekday(0),this.scale){case"year":this.current=this.current.year(this.step*Math.floor(this.current.year()/this.step)).month(0);case"month":this.current=this.current.date(1);case"week":case"day":case"weekday":this.current=this.current.hours(0);case"hour":this.current=this.current.minutes(0);case"minute":this.current=this.current.seconds(0);case"second":this.current=this.current.milliseconds(0)}if(this.step!=1){var r=this.current.clone();switch(this.scale){case"millisecond":this.current=this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current=this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current=this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current=this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current=this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current=this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current=this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current=this.current.subtract(this.current.year()%this.step,"year")}r.isSame(this.current)||(this.current=this.moment(zo(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var r=this.current.valueOf();switch(this.scale){case"millisecond":this.current=this.current.add(this.step,"millisecond");break;case"second":this.current=this.current.add(this.step,"second");break;case"minute":this.current=this.current.add(this.step,"minute");break;case"hour":this.current=this.current.add(this.step,"hour"),this.current.month()<6?this.current=this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!=0&&(this.current=this.current.add(this.step-this.current.hours()%this.step,"hour"));break;case"weekday":case"day":this.current=this.current.add(this.step,"day");break;case"week":if(this.current.weekday()!==0)this.current=this.current.weekday(0).add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current=this.current.add(this.step,"week");else{var u=this.current.clone();u.add(1,"week"),u.isSame(this.current,"month")?this.current=this.current.add(this.step,"week"):this.current=this.current.add(this.step,"week").date(1)}break;case"month":this.current=this.current.add(this.step,"month");break;case"year":this.current=this.current.add(this.step,"year")}if(this.step!=1)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?r.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(r){this.autoScale=r}},{key:"setMinimumStep",value:function(r){if(r!=null){var u=31104e6,o=2592e6,c=864e5,f=36e5,m=6e4,S=1e3;1e3*u>r&&(this.scale="year",this.step=1e3),500*u>r&&(this.scale="year",this.step=500),100*u>r&&(this.scale="year",this.step=100),50*u>r&&(this.scale="year",this.step=50),10*u>r&&(this.scale="year",this.step=10),5*u>r&&(this.scale="year",this.step=5),u>r&&(this.scale="year",this.step=1),7776e6>r&&(this.scale="month",this.step=3),o>r&&(this.scale="month",this.step=1),6048e5>r&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>r&&(this.scale="day",this.step=2),c>r&&(this.scale="day",this.step=1),432e5>r&&(this.scale="weekday",this.step=1),144e5>r&&(this.scale="hour",this.step=4),f>r&&(this.scale="hour",this.step=1),9e5>r&&(this.scale="minute",this.step=15),6e5>r&&(this.scale="minute",this.step=10),3e5>r&&(this.scale="minute",this.step=5),m>r&&(this.scale="minute",this.step=1),15e3>r&&(this.scale="second",this.step=15),1e4>r&&(this.scale="second",this.step=10),5e3>r&&(this.scale="second",this.step=5),S>r&&(this.scale="second",this.step=1),200>r&&(this.scale="millisecond",this.step=200),100>r&&(this.scale="millisecond",this.step=100),50>r&&(this.scale="millisecond",this.step=50),10>r&&(this.scale="millisecond",this.step=10),5>r&&(this.scale="millisecond",this.step=5),1>r&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==1)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(this.switchedMonth==1)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==1)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var r=this.moment(this.current);switch(this.scale){case"millisecond":return r.milliseconds()==0;case"second":return r.seconds()==0;case"minute":return r.hours()==0&&r.minutes()==0;case"hour":return r.hours()==0;case"weekday":case"day":return this.options.showWeekScale?r.isoWeekday()==1:r.date()==1;case"week":return r.date()==1;case"month":return r.month()==0;default:return!1}}},{key:"getLabelMinor",value:function(r){if(r==null&&(r=this.current),r instanceof Date&&(r=this.moment(r)),typeof this.format.minorLabels=="function")return this.format.minorLabels(r,this.scale,this.step);var u=this.format.minorLabels[this.scale];return this.scale==="week"&&r.date()===1&&r.weekday()!==0?"":u&&u.length>0?this.moment(r).format(u):""}},{key:"getLabelMajor",value:function(r){if(r==null&&(r=this.current),r instanceof Date&&(r=this.moment(r)),typeof this.format.majorLabels=="function")return this.format.majorLabels(r,this.scale,this.step);var u=this.format.majorLabels[this.scale];return u&&u.length>0?this.moment(r).format(u):""}},{key:"getClassName",value:function(){var r,u=this.moment,o=this.moment(this.current),c=o.locale?o.locale("en"):o.lang("en"),f=this.step,m=[];function S(N){return N/f%2==0?" vis-even":" vis-odd"}function x(N){return N.isSame(Qn(),"day")?" vis-today":N.isSame(u().add(1,"day"),"day")?" vis-tomorrow":N.isSame(u().add(-1,"day"),"day")?" vis-yesterday":""}function O(N){return N.isSame(Qn(),"week")?" vis-current-week":""}function I(N){return N.isSame(Qn(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":m.push(x(c)),m.push(S(c.milliseconds()));break;case"second":m.push(x(c)),m.push(S(c.seconds()));break;case"minute":m.push(x(c)),m.push(S(c.minutes()));break;case"hour":m.push(xr(r="vis-h".concat(c.hours())).call(r,this.step==4?"-h"+(c.hours()+4):"")),m.push(x(c)),m.push(S(c.hours()));break;case"weekday":m.push("vis-".concat(c.format("dddd").toLowerCase())),m.push(x(c)),m.push(O(c)),m.push(S(c.date()));break;case"day":m.push("vis-day".concat(c.date())),m.push("vis-".concat(c.format("MMMM").toLowerCase())),m.push(x(c)),m.push(I(c)),m.push(this.step<=2?x(c):""),m.push(this.step<=2?"vis-".concat(c.format("dddd").toLowerCase()):""),m.push(S(c.date()-1));break;case"week":m.push("vis-week".concat(c.format("w"))),m.push(O(c)),m.push(S(c.week()));break;case"month":m.push("vis-".concat(c.format("MMMM").toLowerCase())),m.push(I(c)),m.push(S(c.month()));break;case"year":m.push("vis-year".concat(c.year())),m.push(function(N){return N.isSame(Qn(),"year")?" vis-current-year":""}(c)),m.push(S(c.year()))}return Mt(m).call(m,String).join(" ")}}],[{key:"snap",value:function(r,u,o){var c=Nn(r);if(u=="year"){var f=c.year()+Math.round(c.month()/12);c=c.year(Math.round(f/o)*o).month(0).date(0).hours(0).minutes(0).seconds(0).milliseconds(0)}else if(u=="month")c=(c=c.date()>15?c.date(1).add(1,"month"):c.date(1)).hours(0).minutes(0).seconds(0).milliseconds(0);else if(u=="week")c=(c=c.weekday()>2?c.weekday(0).add(1,"week"):c.weekday(0)).hours(0).minutes(0).seconds(0).milliseconds(0);else if(u=="day"){switch(o){case 5:case 2:c=c.hours(24*Math.round(c.hours()/24));break;default:c=c.hours(12*Math.round(c.hours()/12))}c=c.minutes(0).seconds(0).milliseconds(0)}else if(u=="weekday"){switch(o){case 5:case 2:c=c.hours(12*Math.round(c.hours()/12));break;default:c=c.hours(6*Math.round(c.hours()/6))}c=c.minutes(0).seconds(0).milliseconds(0)}else if(u=="hour")o===4?c=c.minutes(60*Math.round(c.minutes()/60)):c=c.minutes(30*Math.round(c.minutes()/30)),c=c.seconds(0).milliseconds(0);else if(u=="minute"){switch(o){case 15:case 10:c=c.minutes(5*Math.round(c.minutes()/5)).seconds(0);break;case 5:c=c.seconds(60*Math.round(c.seconds()/60));break;default:c=c.seconds(30*Math.round(c.seconds()/30))}c=c.milliseconds(0)}else if(u=="second")switch(o){case 15:case 10:c=c.seconds(5*Math.round(c.seconds()/5)).milliseconds(0);break;case 5:c=c.milliseconds(1e3*Math.round(c.milliseconds()/1e3));break;default:c=c.milliseconds(500*Math.round(c.milliseconds()/500))}else if(u=="millisecond"){var m=o>5?o/2:1;c=c.milliseconds(Math.round(c.milliseconds()/m)*m)}return c}}]),s}();function V4(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}Av.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 ed=function(s){Zn(u,s);var r=V4(u);function u(o,c){var f;return jt(this,u),(f=r.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},f.props={range:{start:0,end:0,minimumStep:0},lineTop:0},f.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:K.extend({},Av.FORMAT),moment:Nn,timeAxis:null},f.options=K.extend({},f.defaultOptions),f.body=o,f._create(),f.setOptions(c),f}return Jt(u,[{key:"setOptions",value:function(o){o&&(K.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,o),K.selectiveDeepExtend(["format"],this.options,o),"orientation"in o&&(typeof o.orientation=="string"?this.options.orientation.axis=o.orientation:ft(o.orientation)==="object"&&"axis"in o.orientation&&(this.options.orientation.axis=o.orientation.axis)),"locale"in o&&(typeof Nn.locale=="function"?Nn.locale(o.locale):Nn.lang(o.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 o=this.props,c=this.dom.foreground,f=this.dom.background,m=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,S=c.parentNode!==m;this._calculateCharSize();var x=this.options.showMinorLabels&&this.options.orientation.axis!=="none",O=this.options.showMajorLabels&&this.options.orientation.axis!=="none";o.minorLabelHeight=x?o.minorCharHeight:0,o.majorLabelHeight=O?o.majorCharHeight:0,o.height=o.minorLabelHeight+o.majorLabelHeight,o.width=c.offsetWidth,o.minorLineHeight=this.body.domProps.root.height-o.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),o.minorLineWidth=1,o.majorLineHeight=o.minorLineHeight+o.majorLabelHeight,o.majorLineWidth=1;var I=c.nextSibling,N=f.nextSibling;return c.parentNode&&c.parentNode.removeChild(c),f.parentNode&&f.parentNode.removeChild(f),c.style.height="".concat(this.props.height,"px"),this._repaintLabels(),I?m.insertBefore(c,I):m.appendChild(c),N?this.body.dom.backgroundVertical.insertBefore(f,N):this.body.dom.backgroundVertical.appendChild(f),this._isResized()||S}},{key:"_repaintLabels",value:function(){var o=this.options.orientation.axis,c=K.convert(this.body.range.start,"Number"),f=K.convert(this.body.range.end,"Number"),m=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),S=m-Jc(this.options.moment,this.body.hiddenDates,this.body.range,m);S-=this.body.util.toTime(0).valueOf();var x=new Av(new Date(c),new Date(f),S,this.body.hiddenDates,this.options);x.setMoment(this.options.moment),this.options.format&&x.setFormat(this.options.format),this.options.timeAxis&&x.setScale(this.options.timeAxis),this.step=x;var O,I,N,L,z,W,X=this.dom;X.redundant.lines=X.lines,X.redundant.majorTexts=X.majorTexts,X.redundant.minorTexts=X.minorTexts,X.lines=[],X.majorTexts=[],X.minorTexts=[];var Z,Q,ne,he=0,Te=void 0,Re=0,xe=1e3;for(x.start(),I=x.getCurrent(),L=this.body.util.toScreen(I);x.hasNext()&&Re=.4*Z,this.options.showMinorLabels&&W){var De=this._repaintMinorText(N,x.getLabelMinor(O),o,ne);De.style.width="".concat(he,"px")}z&&this.options.showMajorLabels?(N>0&&(Te==null&&(Te=N),De=this._repaintMajorText(N,x.getLabelMajor(O),o,ne)),Q=this._repaintMajorLine(N,he,o,ne)):W?Q=this._repaintMinorLine(N,he,o,ne):Q&&(Q.style.width="".concat(ea(Q.style.width)+he,"px"))}if(Re!==xe||bb||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(xe," lines.")),bb=!0),this.options.showMajorLabels){var fe=this.body.util.toTime(0),We=x.getLabelMajor(fe),at=We.length*(this.props.majorCharWidth||10)+10;(Te==null||at=Math.abs(ne)){var Te=this.props.scrollTop,Re=Te+he;this.isActive()&&this._setScrollTop(Re)!==Te&&(this._redraw(),this.emit("scroll",Q),Q.preventDefault())}else if(this.options.horizontalScroll){var xe=(Math.abs(ne)>=Math.abs(he)?ne:he)/120*(this.range.end-this.range.start)/20,De=this.range.start+xe,fe=this.range.end+xe,We={animation:!1,byUser:!0,event:Q};this.range.setRange(De,fe,We),Q.preventDefault()}}}Ae(I).call(I,function(Q){var ne=function(he){m.isActive()&&m.emit(Q,he)};m.hammer.on(Q,ne),m.timelineListeners[Q]=ne}),Tx(this.hammer,function(Q){m.emit("touch",Q)}),x=this.hammer,(O=function(Q){m.emit("release",Q)}).inputHandler=function(Q){Q.isFinal&&O(Q)},x.on("hammer.input",O.inputHandler);var L="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function z(Q){if(m.options.verticalScroll&&(Q.preventDefault(),m.isActive())){var ne=-Q.target.scrollTop;m._setScrollTop(ne),m._redraw(),m.emit("scrollSide",Q)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(L,de(N).call(N,this),!1),this.dom.top.addEventListener(L,de(N).call(N,this),!1),this.dom.bottom.addEventListener(L,de(N).call(N,this),!1),this.dom.left.parentNode.addEventListener("scroll",de(z).call(z,this)),this.dom.right.parentNode.addEventListener("scroll",de(z).call(z,this));var W=!1;function X(Q){var ne;if(Q.preventDefault&&(m.emit("dragover",m.getEventProperties(Q)),Q.preventDefault()),er(ne=Q.target.className).call(ne,"timeline")>-1&&!W)return Q.dataTransfer.dropEffect="move",W=!0,!1}function Z(Q){Q.preventDefault&&Q.preventDefault(),Q.stopPropagation&&Q.stopPropagation();try{var ne=JSON.parse(Q.dataTransfer.getData("text"));if(!ne||!ne.content)return}catch(he){return!1}return W=!1,Q.center={x:Q.clientX,y:Q.clientY},ne.target!=="item"?m.itemSet._onAddItem(Q):m.itemSet._onDropObjectOnItem(Q),m.emit("drop",m.getEventProperties(Q)),!1}if(this.dom.center.addEventListener("dragover",de(X).call(X,this),!1),this.dom.center.addEventListener("drop",de(Z).call(Z,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!r)throw new Error("No container provided");r.appendChild(this.dom.root),r.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(r){var u;if(r){if(K.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],this.options,r),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"),ft(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in r&&(typeof r.orientation=="string"?this.options.orientation={item:r.orientation,axis:r.orientation}:ft(r.orientation)==="object"&&("item"in r.orientation&&(this.options.orientation.item=r.orientation.item),"axis"in r.orientation&&(this.options.orientation.axis=r.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var o=this.timeAxis2=new ed(this.body,this.options);o.setOptions=function(O){var I=O?K.extend({},O):{};I.orientation="top",ed.prototype.setOptions.call(o,I)},this.components.push(o)}}else if(this.timeAxis2){var c,f,m=er(c=this.components).call(c,this.timeAxis2);m!==-1&&Ln(f=this.components).call(f,m,1),this.timeAxis2.destroy(),this.timeAxis2=null}typeof r.drawPoints=="function"&&(r.drawPoints={onRender:r.drawPoints}),"hiddenDates"in this.options&&yn(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in r&&(r.clickToUse?this.activator||(this.activator=new Aa(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(Ae(u=this.components).call(u,function(O){return O.setOptions(r)}),"configure"in r){var S;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(r.configure);var x=K.deepExtend({},this.options);Ae(S=this.components).call(S,function(O){K.deepExtend(x,O.options)}),this.configurator.setModuleOptions({global:x})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var r;for(var u 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(u)&&delete this.timelineListeners[u];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,Ae(r=this.components).call(r,function(o){return o.destroy()}),this.body=null}},{key:"setCustomTime",value:function(r,u){var o,c=Mt(o=this.customTimes).call(o,function(f){return u===f.options.id});if(c.length===0)throw new Error("No custom time bar found with id ".concat(ta(u)));c.length>0&&c[0].setCustomTime(r)}},{key:"getCustomTime",value:function(r){var u,o=Mt(u=this.customTimes).call(u,function(c){return c.options.id===r});if(o.length===0)throw new Error("No custom time bar found with id ".concat(ta(r)));return o[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(r,u,o){var c,f=Mt(c=this.customTimes).call(c,function(m){return m.options.id===u});if(f.length===0)throw new Error("No custom time bar found with id ".concat(ta(u)));f.length>0&&f[0].setCustomMarker(r,o)}},{key:"setCustomTimeTitle",value:function(r,u){var o,c=Mt(o=this.customTimes).call(o,function(f){return f.options.id===u});if(c.length===0)throw new Error("No custom time bar found with id ".concat(ta(u)));if(c.length>0)return c[0].setCustomTitle(r)}},{key:"getEventProperties",value:function(r){return{event:r}}},{key:"addCustomTime",value:function(r,u){var o,c=r!==void 0?K.convert(r,"Date"):new Date,f=Sx(o=this.customTimes).call(o,function(S){return S.options.id===u});if(f)throw new Error("A custom time with id ".concat(ta(u)," already exists"));var m=new jm(this.body,K.extend({},this.options,{time:c,id:u,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(m),this.components.push(m),this._redraw(),u}},{key:"removeCustomTime",value:function(r){var u,o=this,c=Mt(u=this.customTimes).call(u,function(f){return f.options.id===r});if(c.length===0)throw new Error("No custom time bar found with id ".concat(ta(r)));Ae(c).call(c,function(f){var m,S,x,O;Ln(m=o.customTimes).call(m,er(S=o.customTimes).call(S,f),1),Ln(x=o.components).call(x,er(O=o.components).call(O,f),1),f.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(r){return this.time=r,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(r,u){var o=this.getDataRange();if(o.min!==null||o.max!==null){var c=o.max-o.min,f=new Date(o.min.valueOf()-.01*c),m=new Date(o.max.valueOf()+.01*c),S=!r||r.animation===void 0||r.animation;this.range.setRange(f,m,{animation:S},u)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(r,u,o,c){var f,m;typeof arguments[2]=="function"&&(c=arguments[2],o={}),arguments.length==1?(f=(m=arguments[0]).animation===void 0||m.animation,this.range.setRange(m.start,m.end,{animation:f})):arguments.length==2&&typeof arguments[1]=="function"?(c=arguments[1],f=(m=arguments[0]).animation===void 0||m.animation,this.range.setRange(m.start,m.end,{animation:f},c)):(f=!o||o.animation===void 0||o.animation,this.range.setRange(r,u,{animation:f},c))}},{key:"moveTo",value:function(r,u,o){typeof arguments[1]=="function"&&(o=arguments[1],u={});var c=this.range.end-this.range.start,f=K.convert(r,"Date").valueOf(),m=f-c/2,S=f+c/2,x=!u||u.animation===void 0||u.animation;this.range.setRange(m,S,{animation:x},o)}},{key:"getWindow",value:function(){var r=this.range.getRange();return{start:new Date(r.start),end:new Date(r.end)}}},{key:"zoomIn",value:function(r,u,o){if(!(!r||r<0||r>1)){typeof arguments[1]=="function"&&(o=arguments[1],u={});var c=this.getWindow(),f=c.start.valueOf(),m=c.end.valueOf(),S=m-f,x=(S-S/(1+r))/2,O=f+x,I=m-x;this.setWindow(O,I,u,o)}}},{key:"zoomOut",value:function(r,u,o){if(!(!r||r<0||r>1)){typeof arguments[1]=="function"&&(o=arguments[1],u={});var c=this.getWindow(),f=c.start.valueOf(),m=c.end.valueOf(),S=m-f,x=f-S*r/2,O=m+S*r/2;this.setWindow(x,O,u,o)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var r;this.redrawCount++;var u=this.dom;if(u&&u.container&&u.root.offsetWidth!=0){var o=!1,c=this.options,f=this.props;Wo(this.options.moment,this.body,this.options.hiddenDates),c.orientation=="top"?(K.addClassName(u.root,"vis-top"),K.removeClassName(u.root,"vis-bottom")):(K.removeClassName(u.root,"vis-top"),K.addClassName(u.root,"vis-bottom")),c.rtl?(K.addClassName(u.root,"vis-rtl"),K.removeClassName(u.root,"vis-ltr")):(K.addClassName(u.root,"vis-ltr"),K.removeClassName(u.root,"vis-rtl")),u.root.style.maxHeight=K.option.asSize(c.maxHeight,""),u.root.style.minHeight=K.option.asSize(c.minHeight,""),u.root.style.width=K.option.asSize(c.width,"");var m=u.root.offsetWidth;f.border.left=1,f.border.right=1,f.border.top=1,f.border.bottom=1,f.center.height=u.center.offsetHeight,f.left.height=u.left.offsetHeight,f.right.height=u.right.offsetHeight,f.top.height=u.top.clientHeight||-f.border.top,f.bottom.height=Math.round(u.bottom.getBoundingClientRect().height)||u.bottom.clientHeight||-f.border.bottom;var S=Math.max(f.left.height,f.center.height,f.right.height),x=f.top.height+S+f.bottom.height+f.border.top+f.border.bottom;u.root.style.height=K.option.asSize(c.height,"".concat(x,"px")),f.root.height=u.root.offsetHeight,f.background.height=f.root.height;var O=f.root.height-f.top.height-f.bottom.height;f.centerContainer.height=O,f.leftContainer.height=O,f.rightContainer.height=f.leftContainer.height,f.root.width=m,f.background.width=f.root.width,this.initialDrawDone||(f.scrollbarWidth=K.getScrollBarWidth());var I=u.leftContainer.clientWidth,N=u.rightContainer.clientWidth;c.verticalScroll?c.rtl?(f.left.width=I||-f.border.left,f.right.width=N+f.scrollbarWidth||-f.border.right):(f.left.width=I+f.scrollbarWidth||-f.border.left,f.right.width=N||-f.border.right):(f.left.width=I||-f.border.left,f.right.width=N||-f.border.right),this._setDOM();var L=this._updateScrollTop();c.orientation.item!="top"&&(L+=Math.max(f.centerContainer.height-f.center.height-f.border.top-f.border.bottom,0)),u.center.style.transform="translateY(".concat(L,"px)");var z=f.scrollTop==0?"hidden":"",W=f.scrollTop==f.scrollTopMin?"hidden":"";u.shadowTop.style.visibility=z,u.shadowBottom.style.visibility=W,u.shadowTopLeft.style.visibility=z,u.shadowBottomLeft.style.visibility=W,u.shadowTopRight.style.visibility=z,u.shadowBottomRight.style.visibility=W,c.verticalScroll&&(u.rightContainer.className="vis-panel vis-right vis-vertical-scroll",u.leftContainer.className="vis-panel vis-left vis-vertical-scroll",u.shadowTopRight.style.visibility="hidden",u.shadowBottomRight.style.visibility="hidden",u.shadowTopLeft.style.visibility="hidden",u.shadowBottomLeft.style.visibility="hidden",u.left.style.top="0px",u.right.style.top="0px"),(!c.verticalScroll||f.center.heightf.centerContainer.height;if(this.hammer.get("pan").set({direction:X?bn.DIRECTION_ALL:bn.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),Ae(r=this.components).call(r,function(Z){o=Z.redraw()||o}),o){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 r=this.props,u=this.dom;r.leftContainer.width=r.left.width,r.rightContainer.width=r.right.width;var o=r.root.width-r.left.width-r.right.width;r.center.width=o,r.centerContainer.width=o,r.top.width=o,r.bottom.width=o,u.background.style.height="".concat(r.background.height,"px"),u.backgroundVertical.style.height="".concat(r.background.height,"px"),u.backgroundHorizontal.style.height="".concat(r.centerContainer.height,"px"),u.centerContainer.style.height="".concat(r.centerContainer.height,"px"),u.leftContainer.style.height="".concat(r.leftContainer.height,"px"),u.rightContainer.style.height="".concat(r.rightContainer.height,"px"),u.background.style.width="".concat(r.background.width,"px"),u.backgroundVertical.style.width="".concat(r.centerContainer.width,"px"),u.backgroundHorizontal.style.width="".concat(r.background.width,"px"),u.centerContainer.style.width="".concat(r.center.width,"px"),u.top.style.width="".concat(r.top.width,"px"),u.bottom.style.width="".concat(r.bottom.width,"px"),u.background.style.left="0",u.background.style.top="0",u.backgroundVertical.style.left="".concat(r.left.width+r.border.left,"px"),u.backgroundVertical.style.top="0",u.backgroundHorizontal.style.left="0",u.backgroundHorizontal.style.top="".concat(r.top.height,"px"),u.centerContainer.style.left="".concat(r.left.width,"px"),u.centerContainer.style.top="".concat(r.top.height,"px"),u.leftContainer.style.left="0",u.leftContainer.style.top="".concat(r.top.height,"px"),u.rightContainer.style.left="".concat(r.left.width+r.center.width,"px"),u.rightContainer.style.top="".concat(r.top.height,"px"),u.top.style.left="".concat(r.left.width,"px"),u.top.style.top="0",u.bottom.style.left="".concat(r.left.width,"px"),u.bottom.style.top="".concat(r.top.height+r.centerContainer.height,"px"),u.center.style.left="0",u.left.style.left="0",u.right.style.left="0"}},{key:"setCurrentTime",value:function(r){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(r)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(r){return Ma(this,r,this.props.center.width)}},{key:"_toGlobalTime",value:function(r){return Ma(this,r,this.props.root.width)}},{key:"_toScreen",value:function(r){return bh(this,r,this.props.center.width)}},{key:"_toGlobalScreen",value:function(r){return bh(this,r,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==1?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var r=this;this._stopAutoResize(),this._onResize=function(){if(r.options.autoResize==1){if(r.dom.root){var u=r.dom.root.offsetHeight,o=r.dom.root.offsetWidth;o==r.props.lastWidth&&u==r.props.lastHeight||(r.props.lastWidth=o,r.props.lastHeight=u,r.props.scrollbarWidth=K.getScrollBarWidth(),r.body.emitter.emit("_change"))}}else r._stopAutoResize()},window.addEventListener("resize",this._onResize),r.dom.root&&(r.props.lastWidth=r.dom.root.offsetWidth,r.props.lastHeight=r.dom.root.offsetHeight),this.watchTimer=xx(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(r){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(r){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(r){if(r&&this.touch.allowDragging){var u=r.deltaY,o=this._getScrollTop(),c=this._setScrollTop(this.touch.initialScrollTop+u);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),c!=o&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(r){return this.props.scrollTop=r,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var r=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return r!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(this.props.scrollTop+=r-this.props.scrollTopMin),this.props.scrollTopMin=r),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop1e3&&(f=1e3),o.redraw(),o.body.emitter.emit("currentTimeTick"),o.currentTimeTimer=Ci(c,f)})()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(o){var c=K.convert(o,"Date").valueOf(),f=Qn();this.offset=c-f,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(Qn()+this.offset)}}]),u}(Ia),$x=Ke,K4=vn.find,Px="find",Ym=!0;Px in[]&&Array(1)[Px](function(){Ym=!1}),$x({target:"Array",proto:!0,forced:Ym},{find:function(s){return K4(this,s,arguments.length>1?arguments[1]:void 0)}});var X4=qr("Array").find,Ix=Pt,Z4=X4,Bm=Array.prototype,J4=function(s){var r=s.find;return s===Bm||Ix(Bm,s)&&r===Bm.find?Z4:r},Mx=p(J4),Hm={exports:{}},Q4=w(function(){if(typeof ArrayBuffer=="function"){var s=new ArrayBuffer(8);Object.isExtensible(s)&&Object.defineProperty(s,"a",{value:8})}}),eI=w,Ax=Ft,Rx=_e,Tb=Q4,Wm=Object.isExtensible,tI=eI(function(){Wm(1)})||Tb?function(s){return!!Ax(s)&&(!Tb||Rx(s)!=="ArrayBuffer")&&(!Wm||Wm(s))}:Wm,rI=!w(function(){return Object.isExtensible(Object.preventExtensions({}))}),iI=Ke,nI=pe,Wl=vs,aI=Ft,Cb=Ge,oI=fi.f,Nx=Cs,sI=Ro,Gm=tI,Lx=rI,Fx=!1,Bs=as("meta"),lI=0,zm=function(s){oI(s,Bs,{value:{objectID:"O"+lI++,weakData:{}}})},jx=Hm.exports={enable:function(){jx.enable=function(){},Fx=!0;var s=Nx.f,r=nI([].splice),u={};u[Bs]=1,s(u).length&&(Nx.f=function(o){for(var c=s(o),f=0,m=c.length;ff;f++)if((S=Q(s[f]))&&Hx(zx,S))return S;return new Um(!1)}o=Wx(s,c)}for(x=L?s.next:o.next;!(O=Bx(x,o)).done;){try{S=Q(O.value)}catch(ne){Gx(o,"throw",ne)}if(typeof S=="object"&&S&&Hx(zx,S))return S}return new Um(!1)},mI=Pt,gI=TypeError,Vx=function(s,r){if(mI(r,s))return s;throw new gI("Incorrect invocation")},yI=Ke,bI=b,qx=Yx,Kx=w,_I=$n,wI=Ux,Xx=Vx,kI=gt,Zx=Ft,SI=Qe,xI=q,TI=fi.f,CI=vn.forEach,EI=lt,DI=Gu.set,OI=Gu.getterFor,Jx=Fr,Fv=Pr,$I=Wu,PI=lt,Qx=hr("species"),II=Po,eT=Wu,tT=function(s,r,u){for(var o in r)Jx(s,o,r[o],u);return s},MI=ga,AI=Vx,RI=Qe,NI=Ux,LI=Ol,rT=tv,FI=function(s){var r=Fv(s);PI&&r&&!r[Qx]&&$I(r,Qx,{configurable:!0,get:function(){return this}})},jv=lt,iT=Yx.fastKey,nT=Gu.set,Vm=Gu.getterFor,Eb={getConstructor:function(s,r,u,o){var c=s(function(O,I){AI(O,f),nT(O,{type:r,index:II(null),first:void 0,last:void 0,size:0}),jv||(O.size=0),RI(I)||NI(I,O[o],{that:O,AS_ENTRIES:u})}),f=c.prototype,m=Vm(r),S=function(O,I,N){var L,z,W=m(O),X=x(O,I);return X?X.value=N:(W.last=X={index:z=iT(I,!0),key:I,value:N,previous:L=W.last,next:void 0,removed:!1},W.first||(W.first=X),L&&(L.next=X),jv?W.size++:O.size++,z!=="F"&&(W.index[z]=X)),O},x=function(O,I){var N,L=m(O),z=iT(I);if(z!=="F")return L.index[z];for(N=L.first;N;N=N.next)if(N.key===I)return N};return tT(f,{clear:function(){for(var O=m(this),I=O.index,N=O.first;N;)N.removed=!0,N.previous&&(N.previous=N.previous.next=void 0),delete I[N.index],N=N.next;O.first=O.last=void 0,jv?O.size=0:this.size=0},delete:function(O){var I=this,N=m(I),L=x(I,O);if(L){var z=L.next,W=L.previous;delete N.index[L.index],L.removed=!0,W&&(W.next=z),z&&(z.previous=W),N.first===L&&(N.first=z),N.last===L&&(N.last=W),jv?N.size--:I.size--}return!!L},forEach:function(O){for(var I,N=m(this),L=MI(O,arguments.length>1?arguments[1]:void 0);I=I?I.next:N.first;)for(L(I.value,I.key,this);I&&I.removed;)I=I.previous},has:function(O){return!!x(this,O)}}),tT(f,u?{get:function(O){var I=x(this,O);return I&&I.value},set:function(O,I){return S(this,O===0?0:O,I)}}:{add:function(O){return S(this,O=O===0?0:O,O)}}),jv&&eT(f,"size",{configurable:!0,get:function(){return m(this).size}}),c},setStrong:function(s,r,u){var o=r+" Iterator",c=Vm(r),f=Vm(o);LI(s,r,function(m,S){nT(this,{type:o,target:m,state:c(m),kind:S,last:void 0})},function(){for(var m=f(this),S=m.kind,x=m.last;x&&x.removed;)x=x.previous;return m.target&&(m.last=x=x?x.next:m.state.first)?rT(S==="keys"?x.key:S==="values"?x.value:[x.key,x.value],!1):(m.target=void 0,rT(void 0,!0))},u?"entries":"values",!u,!0),FI(r)}},jI=function(s,r,u){var o,c=s.indexOf("Map")!==-1,f=s.indexOf("Weak")!==-1,m=c?"set":"add",S=bI[s],x=S&&S.prototype,O={};if(EI&&kI(S)&&(f||x.forEach&&!Kx(function(){new S().entries().next()}))){var I=(o=r(function(L,z){DI(Xx(L,I),{type:s,collection:new S}),SI(z)||wI(z,L[m],{that:L,AS_ENTRIES:c})})).prototype,N=OI(s);CI(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(L){var z=L==="add"||L==="set";!(L in x)||f&&L==="clear"||_I(I,L,function(W,X){var Z=N(this).collection;if(!z&&f&&!Zx(W))return L==="get"&&void 0;var Q=Z[L](W===0?0:W,X);return z?this:Q})}),f||TI(I,"size",{configurable:!0,get:function(){return N(this).collection.size}})}else o=u.getConstructor(r,s,c,m),qx.enable();return xI(o,s,!1,!0),O[s]=o,yI({global:!0,forced:!0},O),f||u.setStrong(o,s,c),o};jI("Set",function(s){return function(){return s(this,arguments.length?arguments[0]:void 0)}},Eb);var qm=p(Lt.Set),YI=Ke,BI=vn.findIndex,aT="findIndex",Db=!0;aT in[]&&Array(1)[aT](function(){Db=!1}),YI({target:"Array",proto:!0,forced:Db},{findIndex:function(s){return BI(this,s,arguments.length>1?arguments[1]:void 0)}});var Ob=qr("Array").findIndex,oT=Pt,sT=Ob,$b=Array.prototype,HI=function(s){var r=s.findIndex;return s===$b||oT($b,s)&&r===$b.findIndex?sT:r},WI=p(HI);function GI(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return Pb(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return Pb(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function Pb(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);um.index?1:f.indexu[S].index&&(u[f].top+=u[S].height);for(var x=s[f],O=0;Ofe},W),Ln(L).call(L,W,0,De),W++}};for(X.s();!(I=X.n()).done;)Z()}catch(De){X.e(De)}finally{X.f()}z=null;var Q=null;W=0;for(var ne,he=0,Te=0,Re=0,xe=function(){var De,fe,We=N.shift();We.top=f(We);var at=S(We),Gt=x(We);z!==null&&atGt&&(Te=function(rn,Uv,Ws,Vv){for(Ws||(Ws=0),Vv||(Vv=rn.length),i=Vv-1;i>=Ws;i--)if(Uv(rn[i]))return i;return Ws-1}(L,function(rn){return Gt+jn>=S(rn)},he,Te)+1);for(var yr,Hn,Hs,xh=Jr(De=Mt(fe=pn(L).call(L,he,Te)).call(fe,function(rn){return atS(rn)})).call(De,function(rn,Uv){return rn.top-Uv.top}),sd=0;sdHn.top&&(We.top=og.top+og.height+r.vertical)}c(We)&&(W=Xm(L,function(rn){return S(rn)-jn>at},W),Ln(L).call(L,W,0,We),W++);var zv=We.top+We.height;if(zv>Re&&(Re=zv),m&&m())return{v:null}};N.length>0;)if(ne=xe())return ne.v;return Re}function Xm(s,r,u){var o;u||(u=0);var c=WI(o=pn(s).call(s,u)).call(o,r);return c===-1?s.length:c+u}var cT=Object.freeze({__proto__:null,nostack:uT,orderByEnd:Ib,orderByStart:wh,stack:Km,stackSubgroups:hT,stackSubgroupsWithInnerStack:Mb,substack:lT}),dT="__background__",Zm=function(){function s(r,u,o){var c=this;if(jt(this,s),this.groupId=r,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=u&&u.subgroupOrder,this.itemSet=o,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],u&&u.nestedGroups&&(this.nestedGroups=u.nestedGroups,u.showNested==0?this.showNested=!1:this.showNested=!0),u&&u.subgroupStack)if(typeof u.subgroupStack=="boolean")this.doInnerStack=u.subgroupStack,this.subgroupStackAll=u.subgroupStack;else for(var f in u.subgroupStack)this.subgroupStack[f]=u.subgroupStack[f],this.doInnerStack=this.doInnerStack||u.subgroupStack[f];u&&u.heightMode?this.heightMode=u.heightMode:this.heightMode=o.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 m=function(){c.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",m),this._disposeCallbacks.push(function(){c.itemSet.body.emitter.off("checkRangedItems",m)}),this._create(),this.setData(u)}return Jt(s,[{key:"_create",value:function(){var r=document.createElement("div");this.itemSet.options.groupEditable.order?r.className="vis-label draggable":r.className="vis-label",this.dom.label=r;var u=document.createElement("div");u.className="vis-inner",r.appendChild(u),this.dom.inner=u;var o=document.createElement("div");o.className="vis-group",o["vis-group"]=this,this.dom.foreground=o,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(r){if(!this.itemSet.groupTouchParams.isDragging){var u,o,c;if(r&&r.subgroupVisibility)for(var f in r.subgroupVisibility)this.subgroupVisibility[f]=r.subgroupVisibility[f];if(this.itemSet.options&&this.itemSet.options.groupTemplate?u=(o=de(c=this.itemSet.options.groupTemplate).call(c,this))(r,this.dom.inner):u=r&&r.content,u instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(u)}else u instanceof Object&&u.isReactComponent||(u instanceof Object?o(r,this.dom.inner):this.dom.inner.innerHTML=u!=null?K.xss(u):K.xss(this.groupId||""));this.dom.label.title=r&&r.title||"",this.dom.inner.firstChild?K.removeClassName(this.dom.inner,"vis-hidden"):K.addClassName(this.dom.inner,"vis-hidden"),r&&r.nestedGroups?(this.nestedGroups&&this.nestedGroups==r.nestedGroups||(this.nestedGroups=r.nestedGroups),r.showNested===void 0&&this.showNested!==void 0||(r.showNested==0?this.showNested=!1:this.showNested=!0),K.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(K.removeClassName(this.dom.label,"collapsed"),K.addClassName(this.dom.label,"expanded")):(K.removeClassName(this.dom.label,"expanded"),K.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,K.removeClassName(this.dom.label,"collapsed"),K.removeClassName(this.dom.label,"expanded"),K.removeClassName(this.dom.label,"vis-nesting-group")),r&&(r.treeLevel||r.nestedInGroup)?(K.addClassName(this.dom.label,"vis-nested-group"),r.treeLevel?K.addClassName(this.dom.label,"vis-group-level-"+r.treeLevel):K.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):K.addClassName(this.dom.label,"vis-group-level-0");var m=r&&r.className||null;m!=this.className&&(this.className&&(K.removeClassName(this.dom.label,this.className),K.removeClassName(this.dom.foreground,this.className),K.removeClassName(this.dom.background,this.className),K.removeClassName(this.dom.axis,this.className)),K.addClassName(this.dom.label,m),K.addClassName(this.dom.foreground,m),K.addClassName(this.dom.background,m),K.addClassName(this.dom.axis,m),this.className=m),this.style&&(K.removeCssText(this.dom.label,this.style),this.style=null),r&&r.style&&(K.addCssText(this.dom.label,r.style),this.style=r.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var r=this.dom.marker.clientHeight;if(r!=this.lastMarkerHeight){this.lastMarkerHeight=r;var u={},o=0;if(Ae(K).call(K,this.items,function(m,S){m.dirty=!0,m.displayed&&(u[S]=m.redraw(!0),o=u[S].length)}),o>0)for(var c=function(m){Ae(K).call(K,u,function(S){S[m]()})},f=0;fo.bailTimeMs&&(o.userBailFunction&&this.itemSet.userContinueNotBail==null?o.userBailFunction(function(f){r.itemSet.userContinueNotBail=f,c=!f}):c=r.itemSet.userContinueNotBail==0)}return c}},{key:"_redrawItems",value:function(r,u,o,c){var f=this;if(r||this.stackDirty||this.isVisible&&!u){var m,S,x,O,I,N,L={byEnd:Mt(m=this.orderedItems.byEnd).call(m,function(fe){return!fe.isCluster}),byStart:Mt(S=this.orderedItems.byStart).call(S,function(fe){return!fe.isCluster})},z={byEnd:co(new qm(Mt(x=Ei(O=this.orderedItems.byEnd).call(O,function(fe){return fe.cluster})).call(x,function(fe){return!!fe}))),byStart:co(new qm(Mt(I=Ei(N=this.orderedItems.byStart).call(N,function(fe){return fe.cluster})).call(I,function(fe){return!!fe})))},W=function(){var fe,We,at,Gt=f._updateItemsInRange(L,Mt(fe=f.visibleItems).call(fe,function(Hn){return!Hn.isCluster}),c),yr=f._updateClustersInRange(z,Mt(We=f.visibleItems).call(We,function(Hn){return Hn.isCluster}),c);return xr(at=[]).call(at,co(Gt),co(yr))},X=function(fe){var We={},at=function(yr){var Hn,Hs=Mt(Hn=f.visibleItems).call(Hn,function(xh){return xh.data.subgroup===yr});We[yr]=fe?Jr(Hs).call(Hs,function(xh,sd){return fe(xh.data,sd.data)}):Hs};for(var Gt in f.subgroups)at(Gt);return We};if(typeof this.itemSet.options.order=="function"){var Z=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups)Mb(X(this.itemSet.options.order),o,this.subgroups),this.visibleItems=W(),this._updateSubGroupHeights(o);else{var Q,ne,he,Te;this.visibleItems=W(),this._updateSubGroupHeights(o);var Re=Jr(Q=Mt(ne=pn(he=this.visibleItems).call(he)).call(ne,function(fe){return fe.isCluster||!fe.isCluster&&!fe.cluster})).call(Q,function(fe,We){return Z.itemSet.options.order(fe.data,We.data)});this.shouldBailStackItems=Km(Re,o,!0,de(Te=this._shouldBailItemsRedraw).call(Te,this))}}else{var xe;this.visibleItems=W(),this._updateSubGroupHeights(o),this.itemSet.options.stack?this.doInnerStack&&this.itemSet.options.stackSubgroups?Mb(X(),o,this.subgroups):this.shouldBailStackItems=Km(this.visibleItems,o,!0,de(xe=this._shouldBailItemsRedraw).call(xe,this)):uT(this.visibleItems,o,this.subgroups,this.itemSet.options.stackSubgroups)}for(var De=0;De0){var o=this;this._resetSubgroups(),Ae(K).call(K,this.visibleItems,function(c){c.data.subgroup!==void 0&&(o.subgroups[c.data.subgroup].height=Math.max(o.subgroups[c.data.subgroup].height,c.height+r.item.vertical),o.subgroups[c.data.subgroup].visible=u.subgroupVisibility[c.data.subgroup]===void 0||Boolean(u.subgroupVisibility[c.data.subgroup]))})}}},{key:"_isGroupVisible",value:function(r,u){return this.top<=r.body.domProps.centerContainer.height-r.body.domProps.scrollTop+u.axis&&this.top+this.height+u.axis>=-r.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(r){var u,o;if((o=this.heightMode==="fixed"?K.toArray(this.items):this.visibleItems).length>0){var c=o[0].top,f=o[0].top+o[0].height;if(Ae(K).call(K,o,function(S){c=Math.min(c,S.top),f=Math.max(f,S.top+S.height)}),c>r.axis){var m=c-r.axis;f-=m,Ae(K).call(K,o,function(S){S.top-=m})}u=Math.ceil(f+r.item.vertical/2),this.heightMode!=="fitItems"&&(u=Math.max(u,this.props.label.height))}else u=this.props.label.height;return u}},{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 r=this.dom.label;r.parentNode&&r.parentNode.removeChild(r);var u=this.dom.foreground;u.parentNode&&u.parentNode.removeChild(u);var o=this.dom.background;o.parentNode&&o.parentNode.removeChild(o);var c=this.dom.axis;c.parentNode&&c.parentNode.removeChild(c)}},{key:"add",value:function(r){var u;if(this.items[r.id]=r,r.setParent(this),this.stackDirty=!0,r.data.subgroup!==void 0&&(this._addToSubgroup(r),this.orderSubgroups()),!Wc(u=this.visibleItems).call(u,r)){var o=this.itemSet.body.range;this._checkIfVisible(r,this.visibleItems,o)}}},{key:"_addToSubgroup",value:function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.data.subgroup;u!=null&&this.subgroups[u]===void 0&&(this.subgroups[u]={height:0,top:0,start:r.data.start,end:r.data.end||r.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[u]||!1},this.subgroupIndex++),new Date(r.data.start)new Date(this.subgroups[u].end)&&(this.subgroups[u].end=o),this.subgroups[u].items.push(r)}},{key:"_updateSubgroupsSizes",value:function(){var r=this;if(r.subgroups){var u=function(){var c,f=r.subgroups[o].items[0].data.end||r.subgroups[o].items[0].data.start,m=r.subgroups[o].items[0].data.start,S=f-1;Ae(c=r.subgroups[o].items).call(c,function(x){new Date(x.data.start)new Date(S)&&(S=O)}),r.subgroups[o].start=m,r.subgroups[o].end=new Date(S-1)};for(var o in r.subgroups)u()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var r=[];if(typeof this.subgroupOrderer=="string"){for(var u in this.subgroups)r.push({subgroup:u,sortField:this.subgroups[u].items[0].data[this.subgroupOrderer]});Jr(r).call(r,function(f,m){return f.sortField-m.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var o in this.subgroups)r.push(this.subgroups[o].items[0].data);Jr(r).call(r,this.subgroupOrderer)}if(r.length>0)for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:r.data.subgroup;if(u!=null){var o=this.subgroups[u];if(o){var c,f,m=er(c=o.items).call(c,r);m>=0&&(Ln(f=o.items).call(f,m,1),o.items.length?this._updateSubgroupsSizes():delete this.subgroups[u])}}}},{key:"removeFromDataSet",value:function(r){this.itemSet.removeItem(r.id)}},{key:"order",value:function(){for(var r=K.toArray(this.items),u=[],o=[],c=0;c0)for(var N=0;NI}),this.checkRangedItems==1){this.checkRangedItems=!1;for(var z=0;zI})}for(var X={},Z=0,Q=0;Q0)for(var he=function(xe){Ae(K).call(K,X,function(De){De[xe]()})},Te=0;Te=0;m--){var S=u[m];if(f(S))break;S.isCluster&&!S.hasItems()||S.cluster||c[S.id]===void 0&&(c[S.id]=!0,o.push(S))}for(var x=r+1;x0)for(var m=0;m0)for(var z=0;z=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function fT(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u0){var u=[];if(xt(this.options.dataAttributes))u=this.options.dataAttributes;else{if(this.options.dataAttributes!="all")return;u=Di(this.data)}var o,c=UI(u);try{for(c.s();!(o=c.n()).done;){var f=o.value,m=this.data[f];m!=null?r.setAttribute("data-".concat(f),m):r.removeAttribute("data-".concat(f))}}catch(S){c.e(S)}finally{c.f()}}}},{key:"_updateStyle",value:function(r){this.style&&(K.removeCssText(r,this.style),this.style=null),this.data.style&&(K.addCssText(r,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(r){return typeof r=="string"?r:r&&"outerHTML"in r?r.outerHTML:r}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:ft(this.options.editable)==="object"&&(this.editable={},K.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&this.options.editable.overrideItems===!0||this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:ft(this.data.editable)==="object"&&(this.editable={},K.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 r;return this.options.tooltip&&this.options.tooltip.template?de(r=this.options.tooltip.template).call(r,this)(this._getItemData(),this.data):this.data.title}}]),s}();function VI(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}kh.prototype.stack=!0;var Nb=function(s){Zn(u,s);var r=VI(u);function u(o,c,f){var m;if(jt(this,u),(m=r.call(this,o,c,f)).props={dot:{width:0,height:0},line:{width:0,height:0}},o&&o.start==null)throw new Error('Property "start" missing in item '.concat(o));return m}return Jt(u,[{key:"isVisible",value:function(o){if(this.cluster)return!1;var c,f=this.data.align||this.options.align,m=this.width*o.getMillisecondsPerPixel();return c=f=="right"?this.data.start.getTime()>o.start&&this.data.start.getTime()-mo.start&&this.data.start.getTime()o.start&&this.data.start.getTime()-m/23&&arguments[3]!==void 0&&arguments[3]?-1*m:m;f.style.transform=S!==void 0?m!==void 0?xr(x="translate(".concat(O,"px, ")).call(x,S,"px)"):"translateY(".concat(S,"px)"):"translateX(".concat(O,"px)")}};c(this.dom.box,this.boxX,this.boxY,o),c(this.dom.dot,this.dotX,this.dotY,o),c(this.dom.line,this.lineX,this.lineY,o)}},{key:"repositionX",value:function(){var o=this.conversion.toScreen(this.data.start),c=this.data.align===void 0?this.options.align:this.data.align,f=this.props.line.width,m=this.props.dot.width;c=="right"?(this.boxX=o-this.width,this.lineX=o-f,this.dotX=o-f/2-m/2):c=="left"?(this.boxX=o,this.lineX=o,this.dotX=o+f/2-m/2):(this.boxX=o-this.width/2,this.lineX=this.options.rtl?o-f:o-f/2,this.dotX=o-m/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var o=this.options.orientation.item,c=this.dom.line.style;if(o=="top"){var f=this.parent.top+this.top+1;this.boxY=this.top||0,c.height="".concat(f,"px"),c.bottom="",c.top="0"}else{var m=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),c.height="".concat(m,"px"),c.top="",c.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}}]),u}(kh);function qI(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var vT=function(s){Zn(u,s);var r=qI(u);function u(o,c,f){var m;if(jt(this,u),(m=r.call(this,o,c,f)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},o&&o.start==null)throw new Error('Property "start" missing in item '.concat(o));return m}return Jt(u,[{key:"isVisible",value:function(o){if(this.cluster)return!1;var c=this.width*o.getMillisecondsPerPixel();return this.data.start.getTime()+c>o.start&&this.data.start3&&arguments[3]!==void 0&&arguments[3]?-1*m:m;f.style.transform=S!==void 0?m!==void 0?xr(x="translate(".concat(O,"px, ")).call(x,S,"px)"):"translateY(".concat(S,"px)"):"translateX(".concat(O,"px)")}};c(this.dom.point,this.pointX,this.pointY,o)}},{key:"show",value:function(o){if(!this.displayed)return this.redraw(o)}},{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 o=this.conversion.toScreen(this.data.start);this.pointX=o,this.options.rtl?this.right=o-this.props.dot.width:this.left=o-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var o=this.options.orientation.item;this.pointY=o=="top"?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}}]),u}(kh);function pT(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var Gl=function(s){Zn(u,s);var r=pT(u);function u(o,c,f){var m;if(jt(this,u),(m=r.call(this,o,c,f)).props={content:{width:0}},m.overflow=!1,o){if(o.start==null)throw new Error('Property "start" missing in item '.concat(o.id));if(o.end==null)throw new Error('Property "end" missing in item '.concat(o.id))}return m}return Jt(u,[{key:"isVisible",value:function(o){return!this.cluster&&this.data.starto.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 o=this.parent.dom.foreground;if(!o)throw new Error("Cannot redraw item: parent has no foreground container element");o.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 o=this.editable.updateTime||this.editable.updateGroup,c=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(o?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+c,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(o){this.props.content.width=o.content.width,this.height=o.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(o){var c,f,m,S,x,O,I=this,N=[de(c=this._createDomElement).call(c,this),de(f=this._appendDomElement).call(f,this),de(m=this._updateDirtyDomComponents).call(m,this),function(){var L;I.dirty&&(x=de(L=I._getDomComponentsSizes).call(L,I)())},function(){var L;I.dirty&&de(L=I._updateDomComponentsSizes).call(L,I)(x)},de(S=this._repaintDomAdditionals).call(S,this)];return o?N:(Ae(N).call(N,function(L){O=L()}),O)}},{key:"show",value:function(o){if(!this.displayed)return this.redraw(o)}},{key:"hide",value:function(){if(this.displayed){var o=this.dom.box;o.parentNode&&o.parentNode.removeChild(o),this.displayed=!1}}},{key:"repositionX",value:function(o){var c,f,m=this.parent.width,S=this.conversion.toScreen(this.data.start),x=this.conversion.toScreen(this.data.end),O=this.data.align===void 0?this.options.align:this.data.align;this.data.limitSize===!1||o!==void 0&&o!==!0||(S<-m&&(S=-m),x>2*m&&(x=2*m));var I=Math.max(Math.round(1e3*(x-S))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=S:this.left=S,this.width=I+this.props.content.width,f=this.props.content.width):(this.options.rtl?this.right=S:this.left=S,this.width=I,f=Math.min(x-S,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(I,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),O){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var N=-1*Math.max(I-f,0);this.dom.content.style.transform="translateX(".concat(N,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(I-f,0),"px)");break;case"center":if(this.options.rtl){var L=-1*Math.max((I-f)/2,0);this.dom.content.style.transform="translateX(".concat(L,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((I-f)/2,0),"px)");break;default:if(c=this.overflow?x>0?Math.max(-S,0):-f:S<0?-S:0,this.options.rtl){var z=-1*c;this.dom.content.style.transform="translateX(".concat(z,"px)")}else this.dom.content.style.transform="translateX(".concat(c,"px)")}}},{key:"repositionY",value:function(){var o=this.options.orientation.item,c=this.dom.box;c.style.top="".concat(o=="top"?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 o=document.createElement("div");o.className="vis-drag-left",o.dragLeftItem=this,this.dom.box.appendChild(o),this.dom.dragLeft=o}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 o=document.createElement("div");o.className="vis-drag-right",o.dragRightItem=this,this.dom.box.appendChild(o),this.dom.dragRight=o}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)}}]),u}(kh);function KI(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}Gl.prototype.baseClassName="vis-item vis-range";var zl=function(s){Zn(u,s);var r=KI(u);function u(o,c,f){var m;if(jt(this,u),(m=r.call(this,o,c,f)).props={content:{width:0}},m.overflow=!1,o){if(o.start==null)throw new Error('Property "start" missing in item '.concat(o.id));if(o.end==null)throw new Error('Property "end" missing in item '.concat(o.id))}return m}return Jt(u,[{key:"isVisible",value:function(o){return this.data.starto.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 o=this.parent.dom.background;if(!o)throw new Error("Cannot redraw item: parent has no background container element");o.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 o=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+o}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(o){this.props.content.width=o.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(o){var c,f,m,S,x,O,I=this,N=[de(c=this._createDomElement).call(c,this),de(f=this._appendDomElement).call(f,this),de(m=this._updateDirtyDomComponents).call(m,this),function(){var L;I.dirty&&(x=de(L=I._getDomComponentsSizes).call(L,I)())},function(){var L;I.dirty&&de(L=I._updateDomComponentsSizes).call(L,I)(x)},de(S=this._repaintDomAdditionals).call(S,this)];return o?N:(Ae(N).call(N,function(L){O=L()}),O)}},{key:"repositionY",value:function(o){var c,f=this.options.orientation.item;if(this.data.subgroup!==void 0){var m=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[m].height,"px"),this.dom.box.style.top="".concat(f=="top"?this.parent.top+this.parent.subgroups[m].top:this.parent.top+this.parent.height-this.parent.subgroups[m].top-this.parent.subgroups[m].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof Rb?(c=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=f=="bottom"?"0":"",this.dom.box.style.top=f=="top"?"0":""):(c=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(c,"px")}}]),u}(kh);zl.prototype.baseClassName="vis-item vis-background",zl.prototype.stack=!1,zl.prototype.show=Gl.prototype.show,zl.prototype.hide=Gl.prototype.hide,zl.prototype.repositionX=Gl.prototype.repositionX;var XI=function(){function s(r,u){jt(this,s),this.container=r,this.overflowMethod=u||"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 Jt(s,[{key:"setPosition",value:function(r,u){this.x=ea(r),this.y=ea(u)}},{key:"setText",value:function(r){r instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(r)):this.frame.innerHTML=K.xss(r)}},{key:"show",value:function(r){if(r===void 0&&(r=!0),r===!0){var u=this.frame.clientHeight,o=this.frame.clientWidth,c=this.frame.parentNode.clientHeight,f=this.frame.parentNode.clientWidth,m=0,S=0;if(this.overflowMethod=="flip"||this.overflowMethod=="none"){var x=!1,O=!0;this.overflowMethod=="flip"&&(this.y-uf-this.padding&&(x=!0)),m=x?this.x-o:this.x,S=O?this.y-u:this.y}else(S=this.y-u)+u+this.padding>c&&(S=c-u-this.padding),Sf&&(m=f-o-this.padding),m1?arguments[1]:void 0)}});var JI=qr("Array").every,QI=Pt,eM=JI,Jm=Array.prototype,tM=function(s){var r=s.every;return s===Jm||QI(Jm,s)&&r===Jm.every?eM:r},rM=p(tM);function mT(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return gT(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return gT(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function gT(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);uo.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(o){var c,f,m,S,x,O,I,N,L=[de(c=this._createDomElement).call(c,this),de(f=this._appendDomElement).call(f,this),de(m=this._updateDirtyDomComponents).call(m,this),de(S=function(){this.dirty&&(I=this._getDomComponentsSizes())}).call(S,this),de(x=function(){var z;this.dirty&&de(z=this._updateDomComponentsSizes).call(z,this)(I)}).call(x,this),de(O=this._repaintDomAdditionals).call(O,this)];return o?L:(Ae(L).call(L,function(z){N=z()}),N)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var o=this.dom;o.box.parentNode&&o.box.parentNode.removeChild(o.box),this.options.showStipes&&(o.line.parentNode&&o.line.parentNode.removeChild(o.line),o.dot.parentNode&&o.dot.parentNode.removeChild(o.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var o=this.conversion.toScreen(this.data.start),c=this.data.end?this.conversion.toScreen(this.data.end):0;if(c)this.repositionXWithRanges(o,c);else{var f=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(o,f)}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(o,c))}},{key:"repositionStype",value:function(o,c){this.dom.line.style.display="block",this.dom.dot.style.display="block";var f=this.dom.line.offsetWidth,m=this.dom.dot.offsetWidth;if(c){var S=f+o+(c-o)/2,x=S-m/2,O=this.options.rtl?-1*S:S,I=this.options.rtl?-1*x:x;this.dom.line.style.transform="translateX(".concat(O,"px)"),this.dom.dot.style.transform="translateX(".concat(I,"px)")}else{var N=this.options.rtl?-1*o:o,L=this.options.rtl?-1*(o-m/2):o-m/2;this.dom.line.style.transform="translateX(".concat(N,"px)"),this.dom.dot.style.transform="translateX(".concat(L,"px)")}}},{key:"repositionXWithoutRanges",value:function(o,c){c=="right"?this.options.rtl?(this.right=o-this.width,this.dom.box.style.right=this.right+"px"):(this.left=o-this.width,this.dom.box.style.left=this.left+"px"):c=="left"?this.options.rtl?(this.right=o,this.dom.box.style.right=this.right+"px"):(this.left=o,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=o-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=o-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(o,c){var f=Math.round(Math.max(c-o+.5,1));this.options.rtl?this.right=o:this.left=o,this.width=Math.max(f,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=f+"px"}},{key:"repositionY",value:function(){var o=this.options.orientation.item,c=this.dom.box;if(c.style.top=o=="top"?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(o=="top")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 f=this.parent.itemSet.props.height,m=f-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=f-m+"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 o,c,f=mT(this.data.uiItems);try{for(f.s();!(c=f.n()).done;)c.value.cluster=this}catch(m){f.e(m)}finally{f.f()}this.data.items=Ei(o=this.data.uiItems).call(o,function(m){return m.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.hasItems()){var c,f=mT(this.data.uiItems);try{for(f.s();!(c=f.n()).done;)delete c.value.cluster}catch(m){f.e(m)}finally{f.f()}this.attached=!1,o&&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 o,c,f,m=Ei(o=this.data.uiItems).call(o,function(O){return{start:O.data.start.valueOf(),end:O.data.end?O.data.end.valueOf():O.data.start.valueOf()}});this.data.min=Math.min.apply(Math,co(Ei(m).call(m,function(O){return Math.min(O.start,O.end||O.start)}))),this.data.max=Math.max.apply(Math,co(Ei(m).call(m,function(O){return Math.max(O.start,O.end||O.start)})));var S=Ei(c=this.data.uiItems).call(c,function(O){return O.center}),x=Vk(S).call(S,function(O,I){return O+I},0)/this.data.uiItems.length;Sx(f=this.data.uiItems).call(f,function(O){return O.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(x),this.data.end=null)}},{key:"_getUiItems",value:function(){var o,c=this;return this.data.uiItems&&this.data.uiItems.length?Mt(o=this.data.uiItems).call(o,function(f){return f.cluster===c}):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var o;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=de(o=u.prototype._onDoubleClick).call(o,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 o=this.parent.dom.foreground;if(!o)throw new Error("Cannot redraw item: parent has no foreground container element");o.appendChild(this.dom.box)}var c=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!c)throw new Error("Cannot redraw item: parent has no background container element");c.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var f=this.parent.dom.axis;if(!c)throw new Error("Cannot redraw item: parent has no axis container element");f.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 o=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+o,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 o={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&&(o.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},o.line={width:this.dom.line.offsetWidth}),o}},{key:"_updateDomComponentsSizes",value:function(o){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=o.box.width:this.width=o.box.width,this.height=o.box.height,this.options.rtl?this.dom.box.style.right=o.previous.right:this.dom.box.style.left=o.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 o=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-o,fitEnd:this.data.max+o}}},{key:"_fit",value:function(){if(this.emitter){var o=this._getFitRange(),c=o.fitStart,f=o.fitEnd,m={start:new Date(c),end:new Date(f),animation:!0};this.emitter.emit("fit",m)}}},{key:"_getItemData",value:function(){return this.data}}]),u}(kh);function nM(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return Fb(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return Fb(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function Fb(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u0){if(u>=1)return[];S=Math.abs(Math.round(Math.log(100/u)/Math.log(2))),x=Math.abs(Math.pow(2,S))}if(this.dataChanged){var O=S!=this.cacheLevel;(!this.applyOnChangedLevel||O)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=S;var I=this.cache[S];if(!I){for(var N in I=[],this.groups)if(this.groups.hasOwnProperty(N))for(var L=this.groups[N],z=L.length,W=0;W=0&&X.center-L[Q].center=0&&X.center-I[he].centerf){for(var Te=Z-f+1,Re=[],xe=W;Re.length'+r.length+"",X=ih({},c,this.itemSet.options),Z={content:W,title:z,group:u,uiItems:r,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return m=this.createClusterItem(Z,L,X),u&&(u.add(m),m.group=u),m.attach(),m}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),s}();function Ul(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return yT(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return yT(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function yT(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u0){var I,N=m.groupsData.getDataSet();Ae(I=N.get()).call(I,function(L){if(L.nestedGroups){var z;L.showNested!=0&&(L.showNested=!0);var W=[];Ae(z=L.nestedGroups).call(z,function(X){var Z=N.get(X);Z&&(Z.nestedInGroup=L.id,L.showNested==0&&(Z.visible=!1),W=xr(W).call(W,Z))}),N.update(W,O)}})}},update:function(S,x,O){m._onUpdateGroups(x.items)},remove:function(S,x,O){m._onRemoveGroups(x.items)}},f.items={},f.groups={},f.groupIds=[],f.selection=[],f.popup=null,f.popupTimer=null,f.touchParams={},f.groupTouchParams={group:null,isDragging:!1},f._create(),f.setOptions(c),f.clusters=[],f}return Jt(u,[{key:"_create",value:function(){var o,c,f,m,S,x,O,I,N,L,z,W,X,Z,Q,ne=this,he=document.createElement("div");he.className="vis-itemset",he["vis-itemset"]=this,this.dom.frame=he;var Te=document.createElement("div");Te.className="vis-background",he.appendChild(Te),this.dom.background=Te;var Re=document.createElement("div");Re.className="vis-foreground",he.appendChild(Re),this.dom.foreground=Re;var xe=document.createElement("div");xe.className="vis-axis",this.dom.axis=xe;var De=document.createElement("div");De.className="vis-labelset",this.dom.labelSet=De,this._updateUngrouped();var fe=new Rb(Yn,null,this);fe.show(),this.groups[Yn]=fe,this.hammer=new bn(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(We){We.isFirst&&ne._onTouch(We)}),this.hammer.on("panstart",de(o=this._onDragStart).call(o,this)),this.hammer.on("panmove",de(c=this._onDrag).call(c,this)),this.hammer.on("panend",de(f=this._onDragEnd).call(f,this)),this.hammer.get("pan").set({threshold:5,direction:bn.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",de(m=this._onSelectItem).call(m,this)),this.hammer.on("press",de(S=this._onMultiSelectItem).call(S,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",de(x=this._onAddItem).call(x,this)),this.options.rtl?this.groupHammer=new bn(this.body.dom.rightContainer):this.groupHammer=new bn(this.body.dom.leftContainer),this.groupHammer.on("tap",de(O=this._onGroupClick).call(O,this)),this.groupHammer.on("panstart",de(I=this._onGroupDragStart).call(I,this)),this.groupHammer.on("panmove",de(N=this._onGroupDrag).call(N,this)),this.groupHammer.on("panend",de(L=this._onGroupDragEnd).call(L,this)),this.groupHammer.get("pan").set({threshold:5,direction:bn.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",de(z=this._onMouseOver).call(z,this)),this.body.dom.centerContainer.addEventListener("mouseout",de(W=this._onMouseOut).call(W,this)),this.body.dom.centerContainer.addEventListener("mousemove",de(X=this._onMouseMove).call(X,this)),this.body.dom.centerContainer.addEventListener("contextmenu",de(Z=this._onDragEnd).call(Z,this)),this.body.dom.centerContainer.addEventListener("mousewheel",de(Q=this._onMouseWheel).call(Q,this)),this.show()}},{key:"setOptions",value:function(o){var c=this;if(o){var f,m;K.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,o),"itemsAlwaysDraggable"in o&&(typeof o.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=o.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):ft(o.itemsAlwaysDraggable)==="object"&&(K.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,o.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in o&&typeof o.sequentialSelection=="boolean"&&(this.options.sequentialSelection=o.sequentialSelection),"orientation"in o&&(typeof o.orientation=="string"?this.options.orientation.item=o.orientation==="top"?"top":"bottom":ft(o.orientation)==="object"&&"item"in o.orientation&&(this.options.orientation.item=o.orientation.item)),"margin"in o&&(typeof o.margin=="number"?(this.options.margin.axis=o.margin,this.options.margin.item.horizontal=o.margin,this.options.margin.item.vertical=o.margin):ft(o.margin)==="object"&&(K.selectiveExtend(["axis"],this.options.margin,o.margin),"item"in o.margin&&(typeof o.margin.item=="number"?(this.options.margin.item.horizontal=o.margin.item,this.options.margin.item.vertical=o.margin.item):ft(o.margin.item)==="object"&&K.selectiveExtend(["horizontal","vertical"],this.options.margin.item,o.margin.item)))),Ae(f=["locale","locales"]).call(f,function(S){S in o&&(c.options[S]=o[S])}),"editable"in o&&(typeof o.editable=="boolean"?(this.options.editable.updateTime=o.editable,this.options.editable.updateGroup=o.editable,this.options.editable.add=o.editable,this.options.editable.remove=o.editable,this.options.editable.overrideItems=!1):ft(o.editable)==="object"&&K.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,o.editable)),"groupEditable"in o&&(typeof o.groupEditable=="boolean"?(this.options.groupEditable.order=o.groupEditable,this.options.groupEditable.add=o.groupEditable,this.options.groupEditable.remove=o.groupEditable):ft(o.groupEditable)==="object"&&K.selectiveExtend(["order","add","remove"],this.options.groupEditable,o.groupEditable)),Ae(m=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(m,function(S){var x=o[S];if(x){var O;if(typeof x!="function")throw new Error(xr(O="option ".concat(S," must be a function ")).call(O,S,"(item, callback)"));c.options[S]=x}}),o.cluster?(ih(this.options,{cluster:o.cluster}),this.clusterGenerator||(this.clusterGenerator=new oM(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(o){this.groupIds=[],o&&(o.refreshItems&&Ae(K).call(K,this.items,function(c){c.dirty=!0,c.displayed&&c.redraw()}),o.restackGroups&&Ae(K).call(K,this.groups,function(c,f){f!==Yn&&(c.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(o){if(this.clearPopupTimer(),o){var c=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=Ci(function(){o.show()},c)}}},{key:"clearPopupTimer",value:function(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(o){var c;o==null&&(o=[]),xt(o)||(o=[o]);var f,m=Mt(c=this.selection).call(c,function(W){return er(o).call(o,W)===-1}),S=Ul(m);try{for(S.s();!(f=S.n()).done;){var x=f.value,O=this.getItemById(x);O&&O.unselect()}}catch(W){S.e(W)}finally{S.f()}this.selection=co(o);var I,N=Ul(o);try{for(N.s();!(I=N.n()).done;){var L=I.value,z=this.getItemById(L);z&&z.select()}}catch(W){N.e(W)}finally{N.f()}}},{key:"getSelection",value:function(){var o;return xr(o=this.selection).call(o,[])}},{key:"getVisibleItems",value:function(){var o,c,f=this.body.range.getRange();this.options.rtl?(o=this.body.util.toScreen(f.start),c=this.body.util.toScreen(f.end)):(c=this.body.util.toScreen(f.start),o=this.body.util.toScreen(f.end));var m=[];for(var S in this.groups)if(this.groups.hasOwnProperty(S)){var x,O=this.groups[S],I=Ul(O.isVisible?O.visibleItems:[]);try{for(I.s();!(x=I.n()).done;){var N=x.value;this.options.rtl?N.righto&&m.push(N.id):N.leftc&&m.push(N.id)}}catch(L){I.e(L)}finally{I.f()}}return m}},{key:"getItemsAtCurrentTime",value:function(o){var c,f;this.options.rtl?(c=this.body.util.toScreen(o),f=this.body.util.toScreen(o)):(f=this.body.util.toScreen(o),c=this.body.util.toScreen(o));var m=[];for(var S in this.groups)if(this.groups.hasOwnProperty(S)){var x,O=this.groups[S],I=Ul(O.isVisible?O.visibleItems:[]);try{for(I.s();!(x=I.n()).done;){var N=x.value;this.options.rtl?N.rightc&&m.push(N.id):N.leftf&&m.push(N.id)}}catch(L){I.e(L)}finally{I.f()}}return m}},{key:"getVisibleGroups",value:function(){var o=[];for(var c in this.groups)this.groups.hasOwnProperty(c)&&this.groups[c].isVisible&&o.push(c);return o}},{key:"getItemById",value:function(o){var c;return this.items[o]||Mx(c=this.clusters).call(c,function(f){return f.id===o})}},{key:"_deselect",value:function(o){for(var c=this.selection,f=0,m=c.length;f0){for(var De={},fe=function(at){Ae(K).call(K,Re,function(Gt,yr){De[yr]=Gt[at]()})},We=0;We1&&arguments[1]!==void 0?arguments[1]:void 0;if(o&&o.nestedGroups){var f=this.groupsData.getDataSet();o.showNested=c!=null?!!c:!o.showNested;var m=f.get(o.groupId);m.showNested=o.showNested;for(var S,x=o.nestedGroups,O=x;O.length>0;){var I=O;O=[];for(var N=0;N0&&(x=xr(x).call(x,O))}if(m.showNested){for(var z=f.get(m.nestedGroups),W=0;W0&&(X.showNested==null||X.showNested==1)&&z.push.apply(z,co(f.get(X.nestedGroups)))}S=Ei(z).call(z,function(Q){return Q.visible==null&&(Q.visible=!0),Q.visible=!!m.showNested,Q})}else{var Z;S=Ei(Z=f.get(x)).call(Z,function(Q){return Q.visible==null&&(Q.visible=!0),Q.visible=!!m.showNested,Q})}f.update(xr(S).call(S,m)),m.showNested?(K.removeClassName(o.dom.label,"collapsed"),K.addClassName(o.dom.label,"expanded")):(K.removeClassName(o.dom.label,"expanded"),K.addClassName(o.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(o){o.dom.label.classList.toggle("vis-group-is-dragging"),o.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(o){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(o),this.groupTouchParams.group&&(o.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(o){if(this.options.groupEditable.order&&this.groupTouchParams.group){o.stopPropagation();var c=this.groupsData.getDataSet(),f=this.groupFromTarget(o);if(f&&f.height!=this.groupTouchParams.group.height){var m=f.topS)return}}if(f&&f!=this.groupTouchParams.group){var N=c.get(f.groupId),L=c.get(this.groupTouchParams.group.groupId);L&&N&&(this.options.groupOrderSwap(L,N,c),c.update(L),c.update(N));var z=c.getIds({order:this.options.groupOrder});if(!K.equalArray(z,this.groupTouchParams.originalOrder))for(var W=this.groupTouchParams.originalOrder,X=this.groupTouchParams.group.groupId,Z=Math.min(W.length,z.length),Q=0,ne=0,he=0;Q=Z)break;if(z[Q+ne]==X)ne=1;else if(W[Q+he]==X)he=1;else{var Te=er(z).call(z,W[Q+he]),Re=c.get(z[Q+ne]),xe=c.get(W[Q+he]);this.options.groupOrderSwap(Re,xe,c),c.update(Re),c.update(xe);var De=z[Q+ne];z[Q+ne]=W[Q+he],z[Te]=De,Q++}}}}}},{key:"_onGroupDragEnd",value:function(o){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){o.stopPropagation();var c=this,f=c.groupTouchParams.group.groupId,m=c.groupsData.getDataSet(),S=K.extend({},m.get(f));c.options.onMoveGroup(S,function(x){if(x)x[m._idProp]=f,m.update(x);else{var O=m.getIds({order:c.options.groupOrder});if(!K.equalArray(O,c.groupTouchParams.originalOrder))for(var I=c.groupTouchParams.originalOrder,N=Math.min(I.length,O.length),L=0;L=N)break;var z=er(O).call(O,I[L]),W=m.get(O[L]),X=m.get(I[L]);c.options.groupOrderSwap(W,X,m),m.update(W),m.update(X);var Z=O[L];O[L]=I[L],O[z]=Z,L++}}}),c.body.emitter.emit("groupDragged",{groupId:f}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(o){if(this.options.selectable){var c=o.srcEvent&&(o.srcEvent.ctrlKey||o.srcEvent.metaKey),f=o.srcEvent&&o.srcEvent.shiftKey;if(c||f)this._onMultiSelectItem(o);else{var m=this.getSelection(),S=this.itemFromTarget(o),x=S&&S.selectable?[S.id]:[];this.setSelection(x);var O=this.getSelection();(O.length>0||m.length>0)&&this.body.emitter.emit("select",{items:O,event:o})}}}},{key:"_onMouseOver",value:function(o){var c=this.itemFromTarget(o);if(c&&c!==this.itemFromRelatedTarget(o)){var f=c.getTitle();if(this.options.showTooltips&&f){this.popup==null&&(this.popup=new XI(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(f);var m=this.body.dom.centerContainer,S=m.getBoundingClientRect();this.popup.setPosition(o.clientX-S.left+m.offsetLeft,o.clientY-S.top+m.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:c.id,event:o})}}},{key:"_onMouseOut",value:function(o){var c=this.itemFromTarget(o);c&&c!==this.itemFromRelatedTarget(o)&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:c.id,event:o}))}},{key:"_onMouseMove",value:function(o){if(this.itemFromTarget(o)&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var c=this.body.dom.centerContainer,f=c.getBoundingClientRect();this.popup.setPosition(o.clientX-f.left+c.offsetLeft,o.clientY-f.top+c.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(o){this.touchParams.itemIsDragging&&this._onDragEnd(o)}},{key:"_onUpdateItem",value:function(o){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var c=this;if(o){var f=c.itemsData.get(o.id);this.options.onUpdate(f,function(m){m&&c.itemsData.update(m)})}}}},{key:"_onDropObjectOnItem",value:function(o){var c=this.itemFromTarget(o),f=JSON.parse(o.dataTransfer.getData("text"));this.options.onDropObjectOnItem(f,c)}},{key:"_onAddItem",value:function(o){if(this.options.selectable&&this.options.editable.add){var c,f,m=this,S=this.options.snap||null,x=this.dom.frame.getBoundingClientRect(),O=this.options.rtl?x.right-o.center.x:o.center.x-x.left,I=this.body.util.toTime(O),N=this.body.util.getScale(),L=this.body.util.getStep();o.type=="drop"?((f=JSON.parse(o.dataTransfer.getData("text"))).content=f.content?f.content:"new item",f.start=f.start?f.start:S?S(I,N,L):I,f.type=f.type||"box",f[this.itemsData.idProp]=f.id||Rs(),f.type!="range"||f.end||(c=this.body.util.toTime(O+this.props.width/5),f.end=S?S(c,N,L):c)):((f={start:S?S(I,N,L):I,content:"new item"})[this.itemsData.idProp]=Rs(),this.options.type==="range"&&(c=this.body.util.toTime(O+this.props.width/5),f.end=S?S(c,N,L):c));var z=this.groupFromTarget(o);z&&(f.group=z.groupId),f=this._cloneItemData(f),this.options.onAdd(f,function(W){W&&(m.itemsData.add(W),o.type=="drop"&&m.setSelection([W.id]))})}}},{key:"_onMultiSelectItem",value:function(o){var c=this;if(this.options.selectable){var f=this.itemFromTarget(o);if(f){var m=this.options.multiselect?this.getSelection():[];if((o.srcEvent&&o.srcEvent.shiftKey||this.options.sequentialSelection)&&this.options.multiselect){var S=this.itemsData.get(f.id).group,x=void 0;this.options.multiselectPerGroup&&m.length>0&&(x=this.itemsData.get(m[0]).group),this.options.multiselectPerGroup&&x!=null&&x!=S||m.push(f.id);var O=u._getItemRange(this.itemsData.get(m));if(!this.options.multiselectPerGroup||x==S){for(var I in m=[],this.items)if(this.items.hasOwnProperty(I)){var N=this.items[I],L=N.data.start,z=N.data.end!==void 0?N.data.end:L;!(L>=O.min&&z<=O.max)||this.options.multiselectPerGroup&&x!=this.itemsData.get(N.id).group||N instanceof zl||m.push(N.id)}}}else{var W=er(m).call(m,f.id);W==-1?m.push(f.id):Ln(m).call(m,W,1)}var X=Mt(m).call(m,function(Z){return c.getItemById(Z).selectable});this.setSelection(X),this.body.emitter.emit("select",{items:this.getSelection(),event:o})}}}},{key:"itemFromElement",value:function(o){for(var c=o;c;){if(c.hasOwnProperty("vis-item"))return c["vis-item"];c=c.parentNode}return null}},{key:"itemFromTarget",value:function(o){return this.itemFromElement(o.target)}},{key:"itemFromRelatedTarget",value:function(o){return this.itemFromElement(o.relatedTarget)}},{key:"groupFromTarget",value:function(o){var c=o.center?o.center.y:o.clientY,f=this.groupIds;f.length<=0&&this.groupsData&&(f=this.groupsData.getIds({order:this.options.groupOrder}));for(var m=0;m=I.top&&cI.top)return x}else if(m===0&&cc)&&(c=m.end):(c==null||m.start>c)&&(c=m.start)}),{min:f,max:c}}},{key:"itemSetFromTarget",value:function(o){for(var c=o.target;c;){if(c.hasOwnProperty("vis-itemset"))return c["vis-itemset"];c=c.parentNode}return null}}]),u}(Ia);Yv.types={background:zl,box:Nb,range:Gl,point:vT},Yv.prototype._onAdd=Yv.prototype._onUpdate;var bT,Bv=!1,eg="background: #FFeeee; color: #dd0000",_T=function(){function s(){jt(this,s)}return Jt(s,null,[{key:"validate",value:function(r,u,o){Bv=!1,bT=u;var c=u;return o!==void 0&&(c=u[o]),s.parse(r,c,[]),Bv}},{key:"parse",value:function(r,u,o){for(var c in r)r.hasOwnProperty(c)&&s.check(c,r,u,o)}},{key:"check",value:function(r,u,o,c){if(o[r]!==void 0||o.__any__!==void 0){var f=r,m=!0;o[r]===void 0&&o.__any__!==void 0&&(f="__any__",m=s.getType(u[r])==="object");var S=o[f];m&&S.__type__!==void 0&&(S=S.__type__),s.checkFields(r,u,o,f,S,c)}else s.getSuggestion(r,o,c)}},{key:"checkFields",value:function(r,u,o,c,f,m){var S=function(I){console.log("%c"+I+s.printLocation(m,r),eg)},x=s.getType(u[r]),O=f[x];O!==void 0?s.getType(O)==="array"&&er(O).call(O,u[r])===-1?(S('Invalid option detected in "'+r+'". Allowed values are:'+s.print(O)+' not "'+u[r]+'". '),Bv=!0):x==="object"&&c!=="__any__"&&(m=K.copyAndExtendArray(m,r),s.parse(u[r],o[c],m)):f.any===void 0&&(S('Invalid type received for "'+r+'". Expected: '+s.print(Di(f))+". Received ["+x+'] "'+u[r]+'"'),Bv=!0)}},{key:"getType",value:function(r){var u=ft(r);return u==="object"?r===null?"null":r instanceof Boolean?"boolean":r instanceof Number?"number":r instanceof String?"string":xt(r)?"array":r instanceof Date?"date":r.nodeType!==void 0?"dom":r._isAMomentObject===!0?"moment":"object":u==="number"?"number":u==="boolean"?"boolean":u==="string"?"string":u===void 0?"undefined":u}},{key:"getSuggestion",value:function(r,u,o){var c,f=s.findInOptions(r,u,o,!1),m=s.findInOptions(r,bT,[],!0);c=f.indexMatch!==void 0?" in "+s.printLocation(f.path,r,"")+'Perhaps it was incomplete? Did you mean: "'+f.indexMatch+`"? `:m.distance<=4&&f.distance>m.distance?" in "+s.printLocation(f.path,r,"")+"Perhaps it was misplaced? Matching option found at: "+s.printLocation(m.path,m.closestMatch,""):f.distance<=8?'. Did you mean "'+f.closestMatch+'"?'+s.printLocation(f.path,r):". Did you mean one of these: "+s.print(Di(u))+s.printLocation(o,r),console.log('%cUnknown option detected: "'+r+'"'+c,eg),Bv=!0}},{key:"findInOptions",value:function(r,u,o){var c=arguments.length>3&&arguments[3]!==void 0&&arguments[3],f=1e9,m="",S=[],x=r.toLowerCase(),O=void 0;for(var I in u){var N=void 0;if(u[I].__type__!==void 0&&c===!0){var L=s.findInOptions(r,u[I],K.copyAndExtendArray(o,I));f>L.distance&&(m=L.closestMatch,S=L.path,f=L.distance,O=L.indexMatch)}else{var z;er(z=I.toLowerCase()).call(z,x)!==-1&&(O=I),f>(N=s.levenshteinDistance(r,I))&&(m=I,S=K.copyArray(o),f=N)}}return{closestMatch:m,path:S,distance:f,indexMatch:O}}},{key:"printLocation",value:function(r,u){for(var o=` `+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `)+`options = { `,c=0;c0&&arguments[0]!==void 0?arguments[0]:1;jt(this,s),this.pixelRatio=r,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 Jt(s,[{key:"insertTo",value:function(r){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=r,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(r){if(typeof r!="function")throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=r}},{key:"setCloseCallback",value:function(r){if(typeof r!="function")throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=r}},{key:"_isColorString",value:function(r){if(typeof r=="string")return uM[r]}},{key:"setColor",value:function(r){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(r!=="none"){var o,c=this._isColorString(r);if(c!==void 0&&(r=c),K.isString(r)===!0){if(K.isValidRGB(r)===!0){var f=r.substr(4).substr(0,r.length-5).split(",");o={r:f[0],g:f[1],b:f[2],a:1}}else if(K.isValidRGBA(r)===!0){var m=r.substr(5).substr(0,r.length-6).split(",");o={r:m[0],g:m[1],b:m[2],a:m[3]}}else if(K.isValidHex(r)===!0){var S=K.hexToRGB(r);o={r:S.r,g:S.g,b:S.b,a:1}}}else if(r instanceof Object&&r.r!==void 0&&r.g!==void 0&&r.b!==void 0){var x=r.a!==void 0?r.a:"1.0";o={r:r.r,g:r.g,b:r.b,a:x}}if(o===void 0)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: "+ta(r));this._setColor(o,u)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var r=this;(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])===!0&&(this.previousColor=K.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ci(function(){r.closeCallback!==void 0&&(r.closeCallback(),r.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(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(r){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])===!0&&(this.initialColor=K.extend({},r)),this.color=r;var u=K.RGBToHSV(r.r,r.g,r.b),o=2*Math.PI,c=this.r*u.s,f=this.centerCoordinates.x+c*Math.sin(o*u.h),m=this.centerCoordinates.y+c*Math.cos(o*u.h);this.colorPickerSelector.style.left=f-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(r)}},{key:"_setOpacity",value:function(r){this.color.a=r/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(r){var u=K.RGBToHSV(this.color.r,this.color.g,this.color.b);u.v=r/100;var o=K.HSVToRGB(u.h,u.s,u.v);o.a=this.color.a,this.color=o,this._updatePicker()}},{key:"_updatePicker",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,u=K.RGBToHSV(r.r,r.g,r.b),o=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1)),o.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var c=this.colorPickerCanvas.clientWidth,f=this.colorPickerCanvas.clientHeight;o.clearRect(0,0,c,f),o.putImageData(this.hueCircle,0,0),o.fillStyle="rgba(0,0,0,"+(1-u.v)+")",o.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),T0(o).call(o),this.brightnessRange.value=100*u.v,this.opacityRange.value=100*r.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 r,u,o,c;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 f=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(f.webkitBackingStorePixelRatio||f.mozBackingStorePixelRatio||f.msBackingStorePixelRatio||f.oBackingStorePixelRatio||f.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var m=document.createElement("DIV");m.style.color="red",m.style.fontWeight="bold",m.style.padding="10px",m.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(m)}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(x){}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(x){}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=de(r=this._hide).call(r,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=de(u=this._apply).call(u,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=de(o=this._save).call(o,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=de(c=this._loadLast).call(c,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 r=this;this.drag={},this.pinch={},this.hammer=new bn(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),Tx(this.hammer,function(u){r._moveSelector(u)}),this.hammer.on("tap",function(u){r._moveSelector(u)}),this.hammer.on("panstart",function(u){r._moveSelector(u)}),this.hammer.on("panmove",function(u){r._moveSelector(u)}),this.hammer.on("panend",function(u){r._moveSelector(u)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var u,o,c,f,m=this.colorPickerCanvas.clientWidth,S=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,m,S),this.centerCoordinates={x:.5*m,y:.5*S},this.r=.49*m;var x,O=2*Math.PI/360,I=1/this.r;for(c=0;c<360;c++)for(f=0;f3&&arguments[3]!==void 0?arguments[3]:1;jt(this,s),this.parent=r,this.changedOptions=[],this.container=u,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},K.extend(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new hM(c),this.wrapper=void 0}return Jt(s,[{key:"setOptions",value:function(r){if(r!==void 0){this.popupHistory={},this._removePopup();var u=!0;if(typeof r=="string")this.options.filter=r;else if(xt(r))this.options.filter=r.join();else if(ft(r)==="object"){if(r==null)throw new TypeError("options cannot be null");r.container!==void 0&&(this.options.container=r.container),Mt(r)!==void 0&&(this.options.filter=Mt(r)),r.showButton!==void 0&&(this.options.showButton=r.showButton),r.enabled!==void 0&&(u=r.enabled)}else typeof r=="boolean"?(this.options.filter=!0,u=r):typeof r=="function"&&(this.options.filter=r,u=!0);Mt(this.options)===!1&&(u=!1),this.options.enabled=u}this._clean()}},{key:"setModuleOptions",value:function(r){this.moduleOptions=r,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var r=Mt(this.options),u=0,o=!1;for(var c in this.configureOptions)this.configureOptions.hasOwnProperty(c)&&(this.allowCreation=!1,o=!1,typeof r=="function"?o=(o=r(c,[]))||this._handleObject(this.configureOptions[c],[c],!0):r!==!0&&er(r).call(r,c)===-1||(o=!0),o!==!1&&(this.allowCreation=!0,u>0&&this._makeItem([]),this._makeHeader(c),this._handleObject(this.configureOptions[c],[c])),u++);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 r=0;r1?o-1:0),f=1;f2&&arguments[2]!==void 0&&arguments[2],c=document.createElement("div");return c.className="vis-configuration vis-config-label vis-config-s"+u.length,c.innerHTML=o===!0?K.xss(""+r+":"):K.xss(r+":"),c}},{key:"_makeDropdown",value:function(r,u,o){var c=document.createElement("select");c.className="vis-configuration vis-config-select";var f=0;u!==void 0&&er(r).call(r,u)!==-1&&(f=er(r).call(r,u));for(var m=0;mm&&m!==1&&(x.max=Math.ceil(u*N),I=x.max,O="range increased"),x.value=u}else x.value=c;var L=document.createElement("input");L.className="vis-configuration vis-config-rangeinput",L.value=Number(x.value);var z=this;x.onchange=function(){L.value=this.value,z._update(Number(this.value),o)},x.oninput=function(){L.value=this.value};var W=this._makeLabel(o[o.length-1],o),X=this._makeItem(o,W,x,L);O!==""&&this.popupHistory[X]!==I&&(this.popupHistory[X]=I,this._setupPopup(O,X))}},{key:"_makeButton",value:function(){var r=this;if(this.options.showButton===!0){var u=document.createElement("div");u.className="vis-configuration vis-config-button",u.innerHTML="generate options",u.onclick=function(){r._printOptions()},u.onmouseover=function(){u.className="vis-configuration vis-config-button hover"},u.onmouseout=function(){u.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(u)}}},{key:"_setupPopup",value:function(r,u){var o=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],c=!1,f=Mt(this.options),m=!1;for(var S in r)if(r.hasOwnProperty(S)){c=!0;var x=r[S],O=K.copyAndExtendArray(u,S);if(typeof f=="function"&&(c=f(S,u))===!1&&!xt(x)&&typeof x!="string"&&typeof x!="boolean"&&x instanceof Object&&(this.allowCreation=!1,c=this._handleObject(x,O,!0),this.allowCreation=o===!1),c!==!1){m=!0;var I=this._getValue(O);if(xt(x))this._handleArray(x,I,O);else if(typeof x=="string")this._makeTextInput(x,I,O);else if(typeof x=="boolean")this._makeCheckbox(x,I,O);else if(x instanceof Object){var N=!0;if(er(u).call(u,"physics")!==-1&&this.moduleOptions.physics.solver!==S&&(N=!1),N===!0)if(x.enabled!==void 0){var L=K.copyAndExtendArray(O,"enabled"),z=this._getValue(L);if(z===!0){var W=this._makeLabel(S,O,!0);this._makeItem(O,W),m=this._handleObject(x,O)||m}else this._makeCheckbox(x,z,O)}else{var X=this._makeLabel(S,O,!0);this._makeItem(O,X),m=this._handleObject(x,O)||m}}else console.error("dont know how to handle",x,S,O)}}return m}},{key:"_handleArray",value:function(r,u,o){typeof r[0]=="string"&&r[0]==="color"?(this._makeColorField(r,u,o),r[1]!==u&&this.changedOptions.push({path:o,value:u})):typeof r[0]=="string"?(this._makeDropdown(r,u,o),r[0]!==u&&this.changedOptions.push({path:o,value:u})):typeof r[0]=="number"&&(this._makeRange(r,u,o),r[0]!==u&&this.changedOptions.push({path:o,value:Number(u)}))}},{key:"_update",value:function(r,u){var o=this._constructOptions(r,u);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",o),this.initialized=!0,this.parent.setOptions(o)}},{key:"_constructOptions",value:function(r,u){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=o;r=(r=r==="true"||r)!=="false"&&r;for(var f=0;fvar options = "+ta(r,null,2)+""}},{key:"getOptions",value:function(){for(var r={},u=0;ux)&&(x=Te)}),S!==null&&x!==null){var O=this,I=this.itemSet.items[f[0]],N=-1*this._getScrollTop(),L=null,z=function(){var ne=wT(O,I);ne.shouldScroll&&ne.itemTop!=L.itemTop&&(O._setScrollTop(-ne.scrollOffset),O._redraw())},W=!c||c.zoom===void 0||c.zoom,X=(S+x)/2,Z=W?1.1*(x-S):Math.max(this.range.end-this.range.start,1.1*(x-S)),Q=!c||c.animation===void 0||c.animation;Q||(L={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(X-Z/2,X+Z/2,{animation:Q},function(){z(),Ci(z,100)},function(ne,he,Te){var Re=wT(O,I);if(Re!==!1&&(L||(L=Re),L.itemTop!=Re.itemTop||L.shouldScroll)){L.itemTop!=Re.itemTop&&Re.shouldScroll&&(L=Re,N=-1*O._getScrollTop());var xe=N,De=L.scrollOffset,fe=Te?De:xe+(De-xe)*ne;O._setScrollTop(-fe),he||O._redraw()}})}}}},{key:"fit",value:function(o,c){var f,m=!o||o.animation===void 0||o.animation;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(f=this.getDataRange(),this.moveTo(f.min.valueOf(),{animation:m},c)):(f=this.getItemRange(),this.range.setRange(f.min,f.max,{animation:m},c))}},{key:"getItemRange",value:function(){var o=this,c=this.getDataRange(),f=c.min!==null?c.min.valueOf():null,m=c.max!==null?c.max.valueOf():null,S=null,x=null;if(f!=null&&m!=null){var O=m-f;O<=0&&(O=10);var I=O/this.props.center.width,N={},L=0;if(Ae(K).call(K,this.itemSet.items,function(ne,he){ne.groupShowing&&(N[he]=ne.redraw(!0),L=N[he].length)}),L>0)for(var z=function(ne){Ae(K).call(K,N,function(he){he[ne]()})},W=0;Wm&&(m=Te,x=ne)}),S&&x){var X=S.getWidthLeft()+10,Z=x.getWidthRight()+10,Q=this.props.center.width-X-Z;Q>0&&(this.options.rtl?(f=Wv(S)-Z*O/Q,m=jb(x)+X*O/Q):(f=Wv(S)-X*O/Q,m=jb(x)+Z*O/Q))}}return{min:f!=null?new Date(f):null,max:m!=null?new Date(m):null}}},{key:"getDataRange",value:function(){var o,c=null,f=null;return this.itemsData&&Ae(o=this.itemsData).call(o,function(m){var S=K.convert(m.start,"Date").valueOf(),x=K.convert(m.end!=null?m.end:m.start,"Date").valueOf();(c===null||Sf)&&(f=x)}),{min:c!=null?new Date(c):null,max:f!=null?new Date(f):null}}},{key:"getEventProperties",value:function(o){var c=o.center?o.center.x:o.clientX,f=o.center?o.center.y:o.clientY,m=this.dom.centerContainer.getBoundingClientRect(),S=this.options.rtl?m.right-c:c-m.left,x=f-m.top,O=this.itemSet.itemFromTarget(o),I=this.itemSet.groupFromTarget(o),N=jm.customTimeFromTarget(o),L=this.itemSet.options.snap||null,z=this.body.util.getScale(),W=this.body.util.getStep(),X=this._toTime(S),Z=L?L(X,z,W):X,Q=K.getTarget(o),ne=null;return O!=null?ne="item":N!=null?ne="custom-time":K.hasParent(Q,this.timeAxis.dom.foreground)||this.timeAxis2&&K.hasParent(Q,this.timeAxis2.dom.foreground)?ne="axis":K.hasParent(Q,this.itemSet.dom.labelSet)?ne="group-label":K.hasParent(Q,this.currentTime.bar)?ne="current-time":K.hasParent(Q,this.dom.center)&&(ne="background"),{event:o,item:O?O.id:null,isCluster:!!O&&!!O.isCluster,items:O?O.items||[]:null,group:I?I.groupId:null,customTime:N?N.options.id:null,what:ne,pageX:o.srcEvent?o.srcEvent.pageX:o.pageX,pageY:o.srcEvent?o.srcEvent.pageY:o.pageY,x:S,y:x,time:X,snappedTime:Z}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(this.options.rollingMode==null&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){_h.prototype._redraw.call(this)}},{key:"_onFit",value:function(o){var c=o.start,f=o.end,m=o.animation;f?this.range.setRange(c,f,{animation:m}):this.moveTo(c.valueOf(),{animation:m})}}]),u}(_h);function Wv(s){return K.convert(s.data.start,"Date").valueOf()}function jb(s){var r=s.data.end!=null?s.data.end:s.data.start;return K.convert(r,"Date").valueOf()}function wT(s,r){if(!r.parent)return!1;var u=s.options.rtl?s.props.rightContainer.height:s.props.leftContainer.height,o=s.props.center.height,c=r.parent,f=c.top,m=!0,S=s.timeAxis.options.orientation.axis,x=function(){return S=="bottom"?c.height-r.top-r.height:r.top},O=-1*s._getScrollTop(),I=f+x(),N=r.height;return IO+u?f+=x()+N-u+s.itemSet.options.margin.item.vertical:m=!1,{shouldScroll:m,scrollOffset:f=Math.min(f,o-u),itemTop:I}}function ql(s){for(var r in s)s.hasOwnProperty(r)&&(s[r].redundant=s[r].used,s[r].used=[])}function Ra(s){for(var r in s)if(s.hasOwnProperty(r)&&s[r].redundant){for(var u=0;u0?(o=r[s].redundant[0],r[s].redundant.shift()):(o=document.createElementNS("http://www.w3.org/2000/svg",s),u.appendChild(o)):(o=document.createElementNS("http://www.w3.org/2000/svg",s),r[s]={used:[],redundant:[]},u.appendChild(o)),r[s].used.push(o),o}function rg(s,r,u,o){var c;return r.hasOwnProperty(s)?r[s].redundant.length>0?(c=r[s].redundant[0],r[s].redundant.shift()):(c=document.createElement(s),u.appendChild(c)):(c=document.createElement(s),r[s]={used:[],redundant:[]},u.appendChild(c)),r[s].used.push(c),c}function nd(s,r,u,o,c,f){var m;if(u.style=="circle"?((m=Na("circle",o,c)).setAttributeNS(null,"cx",s),m.setAttributeNS(null,"cy",r),m.setAttributeNS(null,"r",.5*u.size)):((m=Na("rect",o,c)).setAttributeNS(null,"x",s-.5*u.size),m.setAttributeNS(null,"y",r-.5*u.size),m.setAttributeNS(null,"width",u.size),m.setAttributeNS(null,"height",u.size)),u.styles!==void 0&&m.setAttributeNS(null,"style",u.styles),m.setAttributeNS(null,"class",u.className+" vis-point"),f){var S=Na("text",o,c);f.xOffset&&(s+=f.xOffset),f.yOffset&&(r+=f.yOffset),f.content&&(S.textContent=f.content),f.className&&S.setAttributeNS(null,"class",f.className+" vis-label"),S.setAttributeNS(null,"x",s),S.setAttributeNS(null,"y",r)}return m}function Yb(s,r,u,o,c,f,m,S){if(o!=0){o<0&&(r-=o*=-1);var x=Na("rect",f,m);x.setAttributeNS(null,"x",s-.5*u),x.setAttributeNS(null,"y",r),x.setAttributeNS(null,"width",u),x.setAttributeNS(null,"height",o),x.setAttributeNS(null,"class",c),S&&x.setAttributeNS(null,"style",S)}}var ig=function(){function s(r,u,o,c,f,m){var S=arguments.length>6&&arguments[6]!==void 0&&arguments[6],x=arguments.length>7&&arguments[7]!==void 0&&arguments[7];if(jt(this,s),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=f,this.majorCharHeight=m,this._start=r,this._end=u,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=S,this.autoScaleStart=o,this.autoScaleEnd=c,this.formattingFunction=x,o||c){var O=this,I=function(N){var L=N-N%(O.magnitudefactor*O.minorSteps[O.minorStepIdx]);return N%(O.magnitudefactor*O.minorSteps[O.minorStepIdx])>O.magnitudefactor*O.minorSteps[O.minorStepIdx]*.5?L+O.magnitudefactor*O.minorSteps[O.minorStepIdx]:L};o&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=I(this._start)),c&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=I(this._end)),this.determineScale()}}return Jt(s,[{key:"setCharHeight",value:function(r){this.majorCharHeight=r}},{key:"setHeight",value:function(r){this.containerHeight=r}},{key:"determineScale",value:function(){var r=this._end-this._start;this.scale=this.containerHeight/r;var u=this.majorCharHeight/this.scale,o=r>0?Math.round(Math.log(r)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,o);var c=0;o<0&&(c=o);for(var f=!1,m=c;Math.abs(m)<=Math.abs(o);m++){this.magnitudefactor=Math.pow(10,m);for(var S=0;S=u){f=!0,this.minorStepIdx=S;break}if(f===!0)break}}},{key:"is_major",value:function(r){return r%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var r=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(r-this._start%r)%r)}},{key:"formatValue",value:function(r){var u=r.toPrecision(5);return typeof this.formattingFunction=="function"&&(u=this.formattingFunction(r)),typeof u=="number"?"".concat(u):typeof u=="string"?u:r.toPrecision(5)}},{key:"getLines",value:function(){for(var r=[],u=this.getStep(),o=(u-this._start%u)%u,c=this._start+o;this._end-c>1e-5;c+=u)c!=this._start&&r.push({major:this.is_major(c),y:this.convertValue(c),val:this.formatValue(c)});return r}},{key:"followScale",value:function(r){var u=this.minorStepIdx,o=this._start,c=this._end,f=this,m=function(){f.magnitudefactor*=2},S=function(){f.magnitudefactor/=2};r.minorStepIdx<=1&&this.minorStepIdx<=1||r.minorStepIdx>1&&this.minorStepIdx>1||(r.minorStepIdxc+1e-5)S(),I=!1;else{if(!this.autoScaleStart&&this._start=0)){S(),I=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&L=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function ST(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u=0&&o._redrawLabel(z-2,L.val,f,"vis-y-axis vis-major",o.props.majorCharHeight),o.master===!0&&(W?o._redrawLine(z,f,"vis-grid vis-horizontal vis-major",o.options.majorLinesOffset,o.props.majorLineWidth):o._redrawLine(z,f,"vis-grid vis-horizontal vis-minor",o.options.minorLinesOffset,o.props.minorLineWidth))});var I=0;this.options[f].title!==void 0&&this.options[f].title.text!==void 0&&(I=this.props.titleCharHeight);var N=this.options.icons===!0?Math.max(this.options.iconWidth,I)+this.options.labelOffsetX+15:I+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-N&&this.options.visible===!0?(this.width=this.maxLabelSize+N,this.options.width="".concat(this.width,"px"),Ra(this.DOMelements.lines),Ra(this.DOMelements.labels),this.redraw(),c=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+N),this.options.width="".concat(this.width,"px"),Ra(this.DOMelements.lines),Ra(this.DOMelements.labels),this.redraw(),c=!0):(Ra(this.DOMelements.lines),Ra(this.DOMelements.labels),c=!1),c}},{key:"convertValue",value:function(o){return this.scale.convertValue(o)}},{key:"screenToValue",value:function(o){return this.scale.screenToValue(o)}},{key:"_redrawLabel",value:function(o,c,f,m,S){var x=rg("div",this.DOMelements.labels,this.dom.frame);x.className=m,x.innerHTML=K.xss(c),f==="left"?(x.style.left="-".concat(this.options.labelOffsetX,"px"),x.style.textAlign="right"):(x.style.right="-".concat(this.options.labelOffsetX,"px"),x.style.textAlign="left"),x.style.top="".concat(o-.5*S+this.options.labelOffsetY,"px"),c+="";var O=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize0&&(u=Math.min(u,Math.abs(r[o-1].screen_x-r[o].screen_x))),u===0&&(s[r[o].screen_x]===void 0&&(s[r[o].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),s[r[o].screen_x].amount+=1)},_n._getSafeDrawData=function(s,r,u){var o,c;return s0?(o=s0){Jr(s).call(s,function(m,S){return m.screen_x===S.screen_x?m.groupIdr[f].screen_y?r[f].screen_y:o,c=cs[m].accumulatedNegative?s[m].accumulatedNegative:o)>s[m].accumulatedPositive?s[m].accumulatedPositive:o,c=(c=c0)return r.options.interpolation.enabled==1?$i._catmullRom(s,r):$i._linear(s)},$i.drawIcon=function(s,r,u,o,c,f){var m,S,x=.5*c,O=Na("rect",f.svgElements,f.svg);O.setAttributeNS(null,"x",r),O.setAttributeNS(null,"y",u-x),O.setAttributeNS(null,"width",o),O.setAttributeNS(null,"height",2*x),O.setAttributeNS(null,"class","vis-outline"),(m=Na("path",f.svgElements,f.svg)).setAttributeNS(null,"class",s.className),s.style!==void 0&&m.setAttributeNS(null,"style",s.style),m.setAttributeNS(null,"d","M"+r+","+u+" L"+(r+o)+","+u),s.options.shaded.enabled==1&&(S=Na("path",f.svgElements,f.svg),s.options.shaded.orientation=="top"?S.setAttributeNS(null,"d","M"+r+", "+(u-x)+"L"+r+","+u+" L"+(r+o)+","+u+" L"+(r+o)+","+(u-x)):S.setAttributeNS(null,"d","M"+r+","+u+" L"+r+","+(u+x)+" L"+(r+o)+","+(u+x)+"L"+(r+o)+","+u),S.setAttributeNS(null,"class",s.className+" vis-icon-fill"),s.options.shaded.style!==void 0&&s.options.shaded.style!==""&&S.setAttributeNS(null,"style",s.options.shaded.style)),s.options.drawPoints.enabled==1&&nd(r+.5*o,u,{style:s.options.drawPoints.style,styles:s.options.drawPoints.styles,size:s.options.drawPoints.size,className:s.className},f.svgElements,f.svg)},$i.drawShading=function(s,r,u,o){if(r.options.shaded.enabled==1){var c,f=Number(o.svg.style.height.replace("px","")),m=Na("path",o.svgElements,o.svg),S="L";r.options.interpolation.enabled==1&&(S="C");var x=0;x=r.options.shaded.orientation=="top"?0:r.options.shaded.orientation=="bottom"?f:Math.min(Math.max(0,r.zeroPosition),f),c=r.options.shaded.orientation=="group"&&u!=null&&u!=null?"M"+s[0][0]+","+s[0][1]+" "+this.serializePath(s,S,!1)+" L"+u[u.length-1][0]+","+u[u.length-1][1]+" "+this.serializePath(u,S,!0)+u[0][0]+","+u[0][1]+" Z":"M"+s[0][0]+","+s[0][1]+" "+this.serializePath(s,S,!1)+" V"+x+" H"+s[0][0]+" Z",m.setAttributeNS(null,"class",r.className+" vis-fill"),r.options.shaded.style!==void 0&&m.setAttributeNS(null,"style",r.options.shaded.style),m.setAttributeNS(null,"d",c)}},$i.draw=function(s,r,u){if(s!=null&&s!=null){var o=Na("path",u.svgElements,u.svg);o.setAttributeNS(null,"class",r.className),r.style!==void 0&&o.setAttributeNS(null,"style",r.style);var c="L";r.options.interpolation.enabled==1&&(c="C"),o.setAttributeNS(null,"d","M"+s[0][0]+","+s[0][1]+" "+this.serializePath(s,c,!1))}},$i.serializePath=function(s,r,u){if(s.length<2)return"";var o,c=r;if(u)for(o=s.length-2;o>0;o--)c+=s[o][0]+","+s[o][1]+" ";else for(o=1;o0&&(W=1/W),(X=3*Z*(Z+Q))>0&&(X=1/X),S={screen_x:(-he*o.screen_x+L*c.screen_x+Te*f.screen_x)*W,screen_y:(-he*o.screen_y+L*c.screen_y+Te*f.screen_y)*W},x={screen_x:(ne*c.screen_x+z*f.screen_x-he*m.screen_x)*X,screen_y:(ne*c.screen_y+z*f.screen_y-he*m.screen_y)*X},S.screen_x==0&&S.screen_y==0&&(S=c),x.screen_x==0&&x.screen_y==0&&(x=f),xe.push([S.screen_x,S.screen_y]),xe.push([x.screen_x,x.screen_y]),xe.push([f.screen_x,f.screen_y]);return xe},$i._linear=function(s){for(var r=[],u=0;uu.x?1:-1})):this.itemsData=[]},ei.prototype.getItems=function(){return this.itemsData},ei.prototype.setZeroPosition=function(s){this.zeroPosition=s},ei.prototype.setOptions=function(s){s!==void 0&&(K.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,s),typeof s.drawPoints=="function"&&(s.drawPoints={onRender:s.drawPoints}),K.mergeOptions(this.options,s,"interpolation"),K.mergeOptions(this.options,s,"drawPoints"),K.mergeOptions(this.options,s,"shaded"),s.interpolation&&ft(s.interpolation)=="object"&&s.interpolation.parametrization&&(s.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:s.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)))},ei.prototype.update=function(s){this.group=s,this.content=s.content||"graph",this.className=s.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=s.visible===void 0||s.visible,this.style=s.style,this.setOptions(s.options)},ei.prototype.getLegend=function(s,r,u,o,c){switch(u!=null&&u!=null||(u={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),o!=null&&o!=null||(o=0),c!=null&&c!=null||(c=.5*r),this.options.style){case"line":$i.drawIcon(this,o,c,s,r,u);break;case"points":case"point":Gv.drawIcon(this,o,c,s,r,u);break;case"bar":_n.drawIcon(this,o,c,s,r,u)}return{icon:u.svg,label:this.content,orientation:this.options.yAxisOrientation}},ei.prototype.getYRange=function(s){for(var r=s[0].y,u=s[0].y,o=0;os[o].y?s[o].y:r,u=u");this.dom.textArea.innerHTML=K.xss(f),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},Bn.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var s=Di(this.groups);Jr(s).call(s,function(I,N){return I0){var m={};for(this._getRelevantData(f,m,o,c),this._applySampling(f,m),r=0;r0)switch(s.options.style){case"line":x.hasOwnProperty(f[r])||(x[f[r]]=$i.calcPath(m[f[r]],s)),$i.draw(x[f[r]],s,this.framework);case"point":case"points":s.options.style!="point"&&s.options.style!="points"&&s.options.drawPoints.enabled!=1||Gv.draw(m[f[r]],s,this.framework)}}}return Ra(this.svgElements),!1},qt.prototype._stack=function(s,r){var u,o,c,f,m;u=0;for(var S=0;Ss[S].x){m=r[x],f=x==0?m:r[x-1],u=x;break}}m===void 0&&(f=r[r.length-1],m=r[r.length-1]),o=m.x-f.x,c=m.y-f.y,s[S].y=o==0?s[S].orginalY+m.y:s[S].orginalY+c/o*(s[S].x-f.x)+f.y}},qt.prototype._getRelevantData=function(s,r,u,o){var c,f,m,S;if(s.length>0)for(f=0;f0){for(var u=0;u0){var c,f=o.length,m=f/(this.body.util.toGlobalScreen(o[o.length-1].x)-this.body.util.toGlobalScreen(o[0].x));c=Math.min(Math.ceil(.2*f),Math.max(1,Math.round(m)));for(var S=new Array(f),x=0;x0){for(f=0;f0&&(c=this.groups[s[f]],m.stack===!0&&m.style==="bar"?m.yAxisOrientation==="left"?S=xr(S).call(S,o):x=xr(x).call(x,o):u[s[f]]=c.getYRange(o,s[f]));_n.getStackedYRange(S,u,s,"__barStackLeft","left"),_n.getStackedYRange(x,u,s,"__barStackRight","right")}},qt.prototype._updateYAxis=function(s,r){var u,o,c=!1,f=!1,m=!1,S=1e9,x=1e9,O=-1e9,I=-1e9;if(s.length>0){for(var N=0;Nu?u:S,O=Ou?u:x,I=If?f:s,r=r==null||r0&&O.push(I.screenToValue(c)),!N.hidden&&this.itemsData.length>0&&O.push(N.screenToValue(c)),{event:s,customTime:m?m.options.id:null,what:x,pageX:s.srcEvent?s.srcEvent.pageX:s.pageX,pageY:s.srcEvent?s.srcEvent.pageY:s.pageY,x:o,y:c,time:f,value:O}},La.prototype._createConfigurator=function(){return new Hv(this,this.dom.container,vM)};var xT=function(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(s){return"en"}}();n.locale(xT);var pM={Core:_h,DateUtil:yx,Range:Im,stack:cT,TimeStep:Av,components:{items:{Item:kh,BackgroundItem:zl,BoxItem:Nb,ClusterItem:Lb,PointItem:vT,RangeItem:Gl},BackgroundGroup:Rb,Component:Ia,CurrentTime:xb,CustomTime:jm,DataAxis:Bb,DataScale:ig,GraphGroup:ei,Group:Zm,ItemSet:Yv,Legend:Bn,LineGraph:qt,TimeAxis:ed}};t.Graph2d=La,t.Timeline=id,t.timeline=pM})}}),C6=(e=>(e.Red="red",e.Orange="orange",e.Yellow="yellow",e.Green="green",e.Blue="blue",e.Purple="purple",e.Pink="pink",e.Cyan="cyan",e))(C6||{}),E6=(e=>(e.Solid="solid",e.Opaque="opaque",e))(E6||{}),BC="en",D6=/^(-?\d+)(?:-(\d{2}))?(?:-(\d{2}))?(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(?:\.(\d+))?(?:Z)?$/;function ip(e){let a={month:"01",day:"01",hour:"00",minute:"00",second:"00"},t=e.match(D6);if(!t)throw new Error("Invalid date format");let[n,h,d=a.month,p=a.day,y=a.hour,b=a.minute,w=a.second]=t;return`${parseInt(h)<0?`-${Math.abs(parseInt(h)).toString().padStart(4,"0")}`:h.padStart(4,"0")}-${d}-${p}T${y}:${b}:${w}Z`}function gN(e){let a=/^(-?\d{1,})-(\d{2})-(\d{2})(T(\d{2}):(\d{2}):(\d{2})(Z|([+-]\d{2}:\d{2})))?$/,t=e.match(a);if(!t)throw new Error(`Invalid date format: ${e}`);let[n,h,d,p,y,b="00",w="00",$="00"]=t,A=parseInt(h,10),R=parseInt(d,10)-1,Y=parseInt(p,10),V=parseInt(b,10),oe=parseInt(w,10),G=parseInt($,10);if(R<0||R>11)throw new Error(`Invalid month: ${d}. Must be between 01-12`);if(Y<1||Y>31)throw new Error(`Invalid day: ${p}. Must be between 01-31`);if(V<0||V>23)throw new Error(`Invalid hour: ${b}. Must be between 00-23`);if(oe<0||oe>59)throw new Error(`Invalid hour: ${w}. Must be between 00-59`);if(G<0||G>59)throw new Error(`Invalid second: ${w}. Must be between 00-59`);let ae=new Date(Date.UTC(A,R,Y,V,oe,G));if(!(ae.getUTCMonth()===R&&ae.getUTCDate()===Y&&ae.getUTCHours()===V&&ae.getUTCMinutes()===oe&&ae.getUTCSeconds()===G))throw new Error(`Invalid date: ${e.split("T")[0]}. Make sure you have correct month, day, etc.`)}function aa(e){let t=ip(e).match(D6);if(!t)throw new Error("Invalid date format");let[n,h,d,p,y,b,w]=t,$=new Date(Date.UTC(parseInt(h),parseInt(d)-1,parseInt(p),parseInt(y),parseInt(b),parseInt(w)));if($.setUTCFullYear(parseInt(h)),isNaN($))throw new Error("Date is invalid");return $}var ko=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ru(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var JM={exports:{}},zF;function Js(){return zF||(zF=1,function(e,a){(function(t,n){e.exports=n()})(ko,function(){var t;function n(){return t.apply(null,arguments)}function h(l){t=l}function d(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function p(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function y(l,v){return Object.prototype.hasOwnProperty.call(l,v)}function b(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var v;for(v in l)if(y(l,v))return!1;return!0}function w(l){return l===void 0}function $(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function A(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function R(l,v){var _=[],T,P=l.length;for(T=0;T>>0,T;for(T=0;T<_;T++)if(T in v&&l.call(this,v[T],T,v))return!0;return!1};function ve(l){var v=null,_=!1,T=l._d&&!isNaN(l._d.getTime());if(T&&(v=G(l),_=ae.call(v.parsedDateParts,function(P){return P!=null}),T=v.overflow<0&&!v.empty&&!v.invalidEra&&!v.invalidMonth&&!v.invalidWeekday&&!v.weekdayMismatch&&!v.nullInput&&!v.invalidFormat&&!v.userInvalidated&&(!v.meridiem||v.meridiem&&_),l._strict&&(T=T&&v.charsLeftOver===0&&v.unusedTokens.length===0&&v.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(l))l._isValid=T;else return T;return l._isValid}function ye(l){var v=V(NaN);return l!=null?Y(G(v),l):G(v).userInvalidated=!0,v}var pe=n.momentProperties=[],Se=!1;function ze(l,v){var _,T,P,j=pe.length;if(w(v._isAMomentObject)||(l._isAMomentObject=v._isAMomentObject),w(v._i)||(l._i=v._i),w(v._f)||(l._f=v._f),w(v._l)||(l._l=v._l),w(v._strict)||(l._strict=v._strict),w(v._tzm)||(l._tzm=v._tzm),w(v._isUTC)||(l._isUTC=v._isUTC),w(v._offset)||(l._offset=v._offset),w(v._pf)||(l._pf=G(v)),w(v._locale)||(l._locale=v._locale),j>0)for(_=0;_=0;return(j?_?"+":"":"-")+Math.pow(10,Math.max(0,P)).toString().substr(1)+T}var Ct=/(\[[^\[]*\])|(\\)?([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,ui=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,sn={},$t={};function ce(l,v,_,T){var P=T;typeof T=="string"&&(P=function(){return this[T]()}),l&&($t[l]=P),v&&($t[v[0]]=function(){return ht(P.apply(this,arguments),v[1],v[2])}),_&&($t[_]=function(){return this.localeData().ordinal(P.apply(this,arguments),l)})}function Gn(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function En(l){var v=l.match(Ct),_,T;for(_=0,T=v.length;_=0&&ui.test(l);)l=l.replace(ui,T),ui.lastIndex=0,_-=1;return l}var ge={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 be(l){var v=this._longDateFormat[l],_=this._longDateFormat[l.toUpperCase()];return v||!_?v:(this._longDateFormat[l]=_.match(Ct).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[l])}var je="Invalid date";function Qe(){return this._invalidDate}var rt="%d",Ut=/\d{1,2}/;function Bt(l){return this._ordinal.replace("%d",l)}var ii={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 zn(l,v,_,T){var P=this._relativeTime[_];return Ye(P)?P(l,v,_,T):P.replace(/%d/i,l)}function sr(l,v){var _=this._relativeTime[l>0?"future":"past"];return Ye(_)?_(v):_.replace(/%s/i,v)}var Zi={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 nr(l){return typeof l=="string"?Zi[l]||Zi[l.toLowerCase()]:void 0}function Ft(l){var v={},_,T;for(T in l)y(l,T)&&(_=nr(T),_&&(v[_]=l[T]));return v}var Lt={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 el(l){var v=[],_;for(_ in l)y(l,_)&&v.push({unit:_,priority:Lt[_]});return v.sort(function(T,P){return T.priority-P.priority}),v}var ts=/\d/,ct=/\d\d/,Ht=/\d{3}/,Pr=/\d{4}/,Pt=/[+-]?\d{6}/,Ve=/\d\d?/,rs=/\d\d\d\d?/,Er=/\d\d\d\d\d\d?/,da=/\d{1,3}/,Vt=/\d{1,4}/,hi=/[+-]?\d{1,6}/,Li=/\d+/,yi=/[+-]?\d+/,nu=/Z|[+-]\d\d:?\d\d/gi,fa=/Z|[+-]\d\d(?::?\d\d)?/gi,Yh=/[+-]?\d+(\.\d{1,3})?/,ci=/[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,lr=/^[1-9]\d?/,va=/^([1-9]\d|\d)/,Ji;Ji={};function ue(l,v,_){Ji[l]=Ye(v)?v:function(T,P){return T&&_?_:v}}function Sd(l,v){return y(Ji,l)?Ji[l](v._strict,v._locale):new RegExp(is(l))}function is(l){return Hr(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(v,_,T,P,j){return _||T||P||j}))}function Hr(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Et(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function Oe(l){var v=+l,_=0;return v!==0&&isFinite(v)&&(_=Et(v)),_}var Co={};function Ue(l,v){var _,T=v,P;for(typeof l=="string"&&(l=[l]),$(v)&&(T=function(j,q){q[v]=Oe(j)}),P=l.length,_=0;_68?1900:2e3)};var qa=Mr("FullYear",!0);function tl(){return Va(this.year())}function Mr(l,v){return function(_){return _!=null?(au(this,l,_),n.updateOffset(this,v),this):un(this,l)}}function un(l,v){if(!l.isValid())return NaN;var _=l._d,T=l._isUTC;switch(v){case"Milliseconds":return T?_.getUTCMilliseconds():_.getMilliseconds();case"Seconds":return T?_.getUTCSeconds():_.getSeconds();case"Minutes":return T?_.getUTCMinutes():_.getMinutes();case"Hours":return T?_.getUTCHours():_.getHours();case"Date":return T?_.getUTCDate():_.getDate();case"Day":return T?_.getUTCDay():_.getDay();case"Month":return T?_.getUTCMonth():_.getMonth();case"FullYear":return T?_.getUTCFullYear():_.getFullYear();default:return NaN}}function au(l,v,_){var T,P,j,q,le;if(!(!l.isValid()||isNaN(_))){switch(T=l._d,P=l._isUTC,v){case"Milliseconds":return void(P?T.setUTCMilliseconds(_):T.setMilliseconds(_));case"Seconds":return void(P?T.setUTCSeconds(_):T.setSeconds(_));case"Minutes":return void(P?T.setUTCMinutes(_):T.setMinutes(_));case"Hours":return void(P?T.setUTCHours(_):T.setHours(_));case"Date":return void(P?T.setUTCDate(_):T.setDate(_));case"FullYear":break;default:return}j=_,q=l.month(),le=l.date(),le=le===29&&q===1&&!Va(j)?28:le,P?T.setUTCFullYear(j,q,le):T.setFullYear(j,q,le)}}function wi(l){return l=nr(l),Ye(this[l])?this[l]():this}function Bh(l,v){if(typeof l=="object"){l=Ft(l);var _=el(l),T,P=_.length;for(T=0;T=0?(le=new Date(l+400,v,_,T,P,j,q),isFinite(le.getFullYear())&&le.setFullYear(l)):le=new Date(l,v,_,T,P,j,q),le}function Un(l){var v,_;return l<100&&l>=0?(_=Array.prototype.slice.call(arguments),_[0]=l+400,v=new Date(Date.UTC.apply(null,_)),isFinite(v.getUTCFullYear())&&v.setUTCFullYear(l)):v=new Date(Date.UTC.apply(null,arguments)),v}function Ka(l,v,_){var T=7+v-_,P=(7+Un(l,0,T).getUTCDay()-v)%7;return-P+T-1}function lu(l,v,_,T,P){var j=(7+_-T)%7,q=Ka(l,T,P),le=1+7*(v-1)+j+q,me,Pe;return le<=0?(me=l-1,Pe=Dn(me)+le):le>Dn(l)?(me=l+1,Pe=le-Dn(l)):(me=l,Pe=le),{year:me,dayOfYear:Pe}}function Qi(l,v,_){var T=Ka(l.year(),v,_),P=Math.floor((l.dayOfYear()-T-1)/7)+1,j,q;return P<1?(q=l.year()-1,j=P+Wr(q,v,_)):P>Wr(l.year(),v,_)?(j=P-Wr(l.year(),v,_),q=l.year()+1):(q=l.year(),j=P),{week:j,year:q}}function Wr(l,v,_){var T=Ka(l,v,_),P=Ka(l+1,v,_);return(Dn(l)-T+P)/7}ce("w",["ww",2],"wo","week"),ce("W",["WW",2],"Wo","isoWeek"),ue("w",Ve,lr),ue("ww",Ve,ct),ue("W",Ve,lr),ue("WW",Ve,ct),di(["w","ww","W","WW"],function(l,v,_,T){v[T.substr(0,1)]=Oe(l)});function Id(l){return Qi(l,this._week.dow,this._week.doy).week}var os={dow:0,doy:6};function Gh(){return this._week.dow}function uu(){return this._week.doy}function Md(l){var v=this.localeData().week(this);return l==null?v:this.add((l-v)*7,"d")}function Xa(l){var v=Qi(this,1,4).week;return l==null?v:this.add((l-v)*7,"d")}ce("d",0,"do","day"),ce("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),ce("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),ce("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),ce("e",0,0,"weekday"),ce("E",0,0,"isoWeekday"),ue("d",Ve),ue("e",Ve),ue("E",Ve),ue("dd",function(l,v){return v.weekdaysMinRegex(l)}),ue("ddd",function(l,v){return v.weekdaysShortRegex(l)}),ue("dddd",function(l,v){return v.weekdaysRegex(l)}),di(["dd","ddd","dddd"],function(l,v,_,T){var P=_._locale.weekdaysParse(l,T,_._strict);P!=null?v.d=P:G(_).invalidWeekday=l}),di(["d","e","E"],function(l,v,_,T){v[T]=Oe(l)});function hu(l,v){return typeof l!="string"?l:isNaN(l)?(l=v.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function zh(l,v){return typeof l=="string"?v.weekdaysParse(l)%7||7:isNaN(l)?null:l}function Wt(l,v){return l.slice(v,7).concat(l.slice(0,v))}var Ad="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),il="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Uh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rd=ci,Nd=ci,Ld=ci;function Fd(l,v){var _=d(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(v)?"format":"standalone"];return l===!0?Wt(_,this._week.dow):l?_[l.day()]:_}function Vh(l){return l===!0?Wt(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function jd(l){return l===!0?Wt(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function Yd(l,v,_){var T,P,j,q=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)j=V([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin(j,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort(j,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays(j,"").toLocaleLowerCase();return _?v==="dddd"?(P=Ge.call(this._weekdaysParse,q),P!==-1?P:null):v==="ddd"?(P=Ge.call(this._shortWeekdaysParse,q),P!==-1?P:null):(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null):v==="dddd"?(P=Ge.call(this._weekdaysParse,q),P!==-1||(P=Ge.call(this._shortWeekdaysParse,q),P!==-1)?P:(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null)):v==="ddd"?(P=Ge.call(this._shortWeekdaysParse,q),P!==-1||(P=Ge.call(this._weekdaysParse,q),P!==-1)?P:(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null)):(P=Ge.call(this._minWeekdaysParse,q),P!==-1||(P=Ge.call(this._weekdaysParse,q),P!==-1)?P:(P=Ge.call(this._shortWeekdaysParse,q),P!==-1?P:null))}function Bd(l,v,_){var T,P,j;if(this._weekdaysParseExact)return Yd.call(this,l,v,_);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(P=V([2e3,1]).day(T),_&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(P,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(P,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(P,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||(j="^"+this.weekdays(P,"")+"|^"+this.weekdaysShort(P,"")+"|^"+this.weekdaysMin(P,""),this._weekdaysParse[T]=new RegExp(j.replace(".",""),"i")),_&&v==="dddd"&&this._fullWeekdaysParse[T].test(l))return T;if(_&&v==="ddd"&&this._shortWeekdaysParse[T].test(l))return T;if(_&&v==="dd"&&this._minWeekdaysParse[T].test(l))return T;if(!_&&this._weekdaysParse[T].test(l))return T}}function ma(l){if(!this.isValid())return l!=null?this:NaN;var v=un(this,"Day");return l!=null?(l=hu(l,this.localeData()),this.add(l-v,"d")):v}function Hd(l){if(!this.isValid())return l!=null?this:NaN;var v=(this.day()+7-this.localeData()._week.dow)%7;return l==null?v:this.add(l-v,"d")}function qh(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var v=zh(l,this.localeData());return this.day(this.day()%7?v:v-7)}else return this.day()||7}function cu(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,"_weekdaysRegex")||(this._weekdaysRegex=Rd),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wd(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nd),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function du(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ld),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ss(){function l(It,Vr){return Vr.length-It.length}var v=[],_=[],T=[],P=[],j,q,le,me,Pe;for(j=0;j<7;j++)q=V([2e3,1]).day(j),le=Hr(this.weekdaysMin(q,"")),me=Hr(this.weekdaysShort(q,"")),Pe=Hr(this.weekdays(q,"")),v.push(le),_.push(me),T.push(Pe),P.push(le),P.push(me),P.push(Pe);v.sort(l),_.sort(l),T.sort(l),P.sort(l),this._weekdaysRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+v.join("|")+")","i")}function ls(){return this.hours()%12||12}function Gd(){return this.hours()||24}ce("H",["HH",2],0,"hour"),ce("h",["hh",2],0,ls),ce("k",["kk",2],0,Gd),ce("hmm",0,0,function(){return""+ls.apply(this)+ht(this.minutes(),2)}),ce("hmmss",0,0,function(){return""+ls.apply(this)+ht(this.minutes(),2)+ht(this.seconds(),2)}),ce("Hmm",0,0,function(){return""+this.hours()+ht(this.minutes(),2)}),ce("Hmmss",0,0,function(){return""+this.hours()+ht(this.minutes(),2)+ht(this.seconds(),2)});function ga(l,v){ce(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),v)})}ga("a",!0),ga("A",!1);function fi(l,v){return v._meridiemParse}ue("a",fi),ue("A",fi),ue("H",Ve,va),ue("h",Ve,lr),ue("k",Ve,lr),ue("HH",Ve,ct),ue("hh",Ve,ct),ue("kk",Ve,ct),ue("hmm",rs),ue("hmmss",Er),ue("Hmm",rs),ue("Hmmss",Er),Ue(["H","HH"],ut),Ue(["k","kk"],function(l,v,_){var T=Oe(l);v[ut]=T===24?0:T}),Ue(["a","A"],function(l,v,_){_._isPm=_._locale.isPM(l),_._meridiem=l}),Ue(["h","hh"],function(l,v,_){v[ut]=Oe(l),G(_).bigHour=!0}),Ue("hmm",function(l,v,_){var T=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T)),G(_).bigHour=!0}),Ue("hmmss",function(l,v,_){var T=l.length-4,P=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T,2)),v[Ir]=Oe(l.substr(P)),G(_).bigHour=!0}),Ue("Hmm",function(l,v,_){var T=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T))}),Ue("Hmmss",function(l,v,_){var T=l.length-4,P=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T,2)),v[Ir]=Oe(l.substr(P))});function Kh(l){return(l+"").toLowerCase().charAt(0)==="p"}var zd=/[ap]\.?m?\.?/i,Ud=Mr("Hours",!0);function Vd(l,v,_){return l>11?_?"pm":"PM":_?"am":"AM"}var Fi={calendar:kt,longDateFormat:ge,invalidDate:je,ordinal:rt,dayOfMonthOrdinalParse:Ut,relativeTime:ii,months:Ed,monthsShort:ou,week:os,weekdays:Ad,weekdaysMin:Uh,weekdaysShort:il,meridiemParse:zd},nt={},Vn={},On;function nl(l,v){var _,T=Math.min(l.length,v.length);for(_=0;_0;){if(P=Ja(j.slice(0,_).join("-")),P)return P;if(T&&T.length>=_&&nl(j,T)>=_-1)break;_--}v++}return On}function Za(l){return!!(l&&l.match("^[^/\\\\]*$"))}function Ja(l){var v=null,_;if(nt[l]===void 0&&e&&e.exports&&Za(l))try{v=On._abbr,_=ru,_("./locale/"+l),Gr(v)}catch(T){nt[l]=null}return nt[l]}function Gr(l,v){var _;return l&&(w(v)?_=Rr(l):_=Qa(l,v),_?On=_:typeof console!="undefined"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),On._abbr}function Qa(l,v){if(v!==null){var _,T=Fi;if(v.abbr=l,nt[l]!=null)Fe("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."),T=nt[l]._config;else if(v.parentLocale!=null)if(nt[v.parentLocale]!=null)T=nt[v.parentLocale]._config;else if(_=Ja(v.parentLocale),_!=null)T=_._config;else return Vn[v.parentLocale]||(Vn[v.parentLocale]=[]),Vn[v.parentLocale].push({name:l,config:v}),null;return nt[l]=new Kt(gt(T,v)),Vn[l]&&Vn[l].forEach(function(P){Qa(P.name,P.config)}),Gr(l),nt[l]}else return delete nt[l],null}function fu(l,v){if(v!=null){var _,T,P=Fi;nt[l]!=null&&nt[l].parentLocale!=null?nt[l].set(gt(nt[l]._config,v)):(T=Ja(l),T!=null&&(P=T._config),v=gt(P,v),T==null&&(v.abbr=l),_=new Kt(v),_.parentLocale=nt[l],nt[l]=_),Gr(l)}else nt[l]!=null&&(nt[l].parentLocale!=null?(nt[l]=nt[l].parentLocale,l===Gr()&&Gr(l)):nt[l]!=null&&delete nt[l]);return nt[l]}function Rr(l){var v;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return On;if(!d(l)){if(v=Ja(l),v)return v;l=[l]}return qd(l)}function Xh(){return lt(nt)}function $n(l){var v,_=l._a;return _&&G(l).overflow===-2&&(v=_[ur]<0||_[ur]>11?ur:_[wr]<1||_[wr]>ns(_[Dt],_[ur])?wr:_[ut]<0||_[ut]>24||_[ut]===24&&(_[pr]!==0||_[Ir]!==0||_[bi]!==0)?ut:_[pr]<0||_[pr]>59?pr:_[Ir]<0||_[Ir]>59?Ir:_[bi]<0||_[bi]>999?bi:-1,G(l)._overflowDayOfYear&&(vwr)&&(v=wr),G(l)._overflowWeeks&&v===-1&&(v=_i),G(l)._overflowWeekday&&v===-1&&(v=Td),G(l).overflow=v),l}var ol=/^\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)?)?$/,Kd=/^\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)?)?$/,ya=/Z|[+-]\d\d(?::?\d\d)?/,kr=[["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]],us=[["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/]],Xd=/^\/?Date\((-?\d+)/i,eo=/^(?:(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}))$/,Zd={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ba(l){var v,_,T=l._i,P=ol.exec(T)||Kd.exec(T),j,q,le,me,Pe=kr.length,It=us.length;if(P){for(G(l).iso=!0,v=0,_=Pe;v<_;v++)if(kr[v][1].exec(P[1])){q=kr[v][0],j=kr[v][2]!==!1;break}if(q==null){l._isValid=!1;return}if(P[3]){for(v=0,_=It;v<_;v++)if(us[v][1].exec(P[3])){le=(P[2]||" ")+us[v][0];break}if(le==null){l._isValid=!1;return}}if(!j&&le!=null){l._isValid=!1;return}if(P[4])if(ya.exec(P[4]))me="Z";else{l._isValid=!1;return}l._f=q+(le||"")+(me||""),to(l)}else l._isValid=!1}function Zh(l,v,_,T,P,j){var q=[ji(l),ou.indexOf(v),parseInt(_,10),parseInt(T,10),parseInt(P,10)];return j&&q.push(parseInt(j,10)),q}function ji(l){var v=parseInt(l,10);return v<=49?2e3+v:v<=999?1900+v:v}function Ke(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sl(l,v,_){if(l){var T=il.indexOf(l),P=new Date(v[0],v[1],v[2]).getDay();if(T!==P)return G(_).weekdayMismatch=!0,_._isValid=!1,!1}return!0}function Jh(l,v,_){if(l)return Zd[l];if(v)return 0;var T=parseInt(_,10),P=T%100,j=(T-P)/100;return j*60+P}function Do(l){var v=eo.exec(Ke(l._i)),_;if(v){if(_=Zh(v[4],v[3],v[2],v[5],v[6],v[7]),!sl(v[1],_,l))return;l._a=_,l._tzm=Jh(v[8],v[9],v[10]),l._d=Un.apply(null,l._a),l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),G(l).rfc2822=!0}else l._isValid=!1}function Qh(l){var v=Xd.exec(l._i);if(v!==null){l._d=new Date(+v[1]);return}if(ba(l),l._isValid===!1)delete l._isValid;else return;if(Do(l),l._isValid===!1)delete l._isValid;else return;l._strict?l._isValid=!1:n.createFromInputFallback(l)}n.createFromInputFallback=Ne("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(l){l._d=new Date(l._i+(l._useUTC?" UTC":""))});function hn(l,v,_){return l!=null?l:v!=null?v:_}function ll(l){var v=new Date(n.now());return l._useUTC?[v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()]:[v.getFullYear(),v.getMonth(),v.getDate()]}function hs(l){var v,_,T=[],P,j,q;if(!l._d){for(P=ll(l),l._w&&l._a[wr]==null&&l._a[ur]==null&&ul(l),l._dayOfYear!=null&&(q=hn(l._a[Dt],P[Dt]),(l._dayOfYear>Dn(q)||l._dayOfYear===0)&&(G(l)._overflowDayOfYear=!0),_=Un(q,0,l._dayOfYear),l._a[ur]=_.getUTCMonth(),l._a[wr]=_.getUTCDate()),v=0;v<3&&l._a[v]==null;++v)l._a[v]=T[v]=P[v];for(;v<7;v++)l._a[v]=T[v]=l._a[v]==null?v===2?1:0:l._a[v];l._a[ut]===24&&l._a[pr]===0&&l._a[Ir]===0&&l._a[bi]===0&&(l._nextDay=!0,l._a[ut]=0),l._d=(l._useUTC?Un:Wh).apply(null,T),j=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[ut]=24),l._w&&typeof l._w.d!="undefined"&&l._w.d!==j&&(G(l).weekdayMismatch=!0)}}function ul(l){var v,_,T,P,j,q,le,me,Pe;v=l._w,v.GG!=null||v.W!=null||v.E!=null?(j=1,q=4,_=hn(v.GG,l._a[Dt],Qi(Xe(),1,4).year),T=hn(v.W,1),P=hn(v.E,1),(P<1||P>7)&&(me=!0)):(j=l._locale._week.dow,q=l._locale._week.doy,Pe=Qi(Xe(),j,q),_=hn(v.gg,l._a[Dt],Pe.year),T=hn(v.w,Pe.week),v.d!=null?(P=v.d,(P<0||P>6)&&(me=!0)):v.e!=null?(P=v.e+j,(v.e<0||v.e>6)&&(me=!0)):P=j),T<1||T>Wr(_,j,q)?G(l)._overflowWeeks=!0:me!=null?G(l)._overflowWeekday=!0:(le=lu(_,T,P,j,q),l._a[Dt]=le.year,l._dayOfYear=le.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function to(l){if(l._f===n.ISO_8601){ba(l);return}if(l._f===n.RFC_2822){Do(l);return}l._a=[],G(l).empty=!0;var v=""+l._i,_,T,P,j,q,le=v.length,me=0,Pe,It;for(P=ke(l._f,l._locale).match(Ct)||[],It=P.length,_=0;_0&&G(l).unusedInput.push(q),v=v.slice(v.indexOf(T)+T.length),me+=T.length),$t[j]?(T?G(l).empty=!1:G(l).unusedTokens.push(j),xd(j,T,l)):l._strict&&!T&&G(l).unusedTokens.push(j);G(l).charsLeftOver=le-me,v.length>0&&G(l).unusedInput.push(v),l._a[ut]<=12&&G(l).bigHour===!0&&l._a[ut]>0&&(G(l).bigHour=void 0),G(l).parsedDateParts=l._a.slice(0),G(l).meridiem=l._meridiem,l._a[ut]=vu(l._locale,l._a[ut],l._meridiem),Pe=G(l).era,Pe!==null&&(l._a[Dt]=l._locale.erasConvertYear(Pe,l._a[Dt])),hs(l),$n(l)}function vu(l,v,_){var T;return _==null?v:l.meridiemHour!=null?l.meridiemHour(v,_):(l.isPM!=null&&(T=l.isPM(_),T&&v<12&&(v+=12),!T&&v===12&&(v=0)),v)}function pu(l){var v,_,T,P,j,q,le=!1,me=l._f.length;if(me===0){G(l).invalidFormat=!0,l._d=new Date(NaN);return}for(P=0;Pthis?this:l:ye()});function gu(l,v){var _,T;if(v.length===1&&d(v[0])&&(v=v[0]),!v.length)return Xe();for(_=v[0],T=1;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function af(){if(!w(this._isDSTShifted))return this._isDSTShifted;var l={},v;return ze(l,this),l=Yi(l),l._a?(v=l._isUTC?V(l._a):Xe(l._a),this._isDSTShifted=this.isValid()&&yu(l._a,v.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function of(){return this.isValid()?!this._isUTC:!1}function sf(){return this.isValid()?this._isUTC:!1}function io(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,lf=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mr(l,v){var _=l,T=null,P,j,q;return ka(l)?_={ms:l._milliseconds,d:l._days,M:l._months}:$(l)||!isNaN(+l)?(_={},v?_[v]=+l:_.milliseconds=+l):(T=fl.exec(l))?(P=T[1]==="-"?-1:1,_={y:0,d:Oe(T[wr])*P,h:Oe(T[ut])*P,m:Oe(T[pr])*P,s:Oe(T[Ir])*P,ms:Oe(cs(T[bi]*1e3))*P}):(T=lf.exec(l))?(P=T[1]==="-"?-1:1,_={y:zr(T[2],P),M:zr(T[3],P),w:zr(T[4],P),d:zr(T[5],P),h:zr(T[6],P),m:zr(T[7],P),s:zr(T[8],P)}):_==null?_={}:typeof _=="object"&&("from"in _||"to"in _)&&(q=Bi(Xe(_.from),Xe(_.to)),_={},_.ms=q.milliseconds,_.M=q.months),j=new wa(_),ka(l)&&y(l,"_locale")&&(j._locale=l._locale),ka(l)&&y(l,"_isValid")&&(j._isValid=l._isValid),j}mr.fn=wa.prototype,mr.invalid=rf;function zr(l,v){var _=l&&parseFloat(l.replace(",","."));return(isNaN(_)?0:_)*v}function _u(l,v){var _={};return _.months=v.month()-l.month()+(v.year()-l.year())*12,l.clone().add(_.months,"M").isAfter(v)&&--_.months,_.milliseconds=+v-+l.clone().add(_.months,"M"),_}function Bi(l,v){var _;return l.isValid()&&v.isValid()?(v=Oo(v,l),l.isBefore(v)?_=_u(l,v):(_=_u(v,l),_.milliseconds=-_.milliseconds,_.months=-_.months),_):{milliseconds:0,months:0}}function wu(l,v){return function(_,T){var P,j;return T!==null&&!isNaN(+T)&&(Fe(v,"moment()."+v+"(period, number) is deprecated. Please use moment()."+v+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),j=_,_=T,T=j),P=mr(_,T),ki(this,P,l),this}}function ki(l,v,_,T){var P=v._milliseconds,j=cs(v._days),q=cs(v._months);l.isValid()&&(T=T==null?!0:T,q&&pa(l,un(l,"Month")+q*_),j&&au(l,"Date",un(l,"Date")+j*_),P&&l._d.setTime(l._d.valueOf()+P*_),T&&n.updateOffset(l,j||q))}var vl=wu(1,"add"),uf=wu(-1,"subtract");function ku(l){return typeof l=="string"||l instanceof String}function ac(l){return _e(l)||A(l)||ku(l)||$(l)||vs(l)||Sa(l)||l===null||l===void 0}function Sa(l){var v=p(l)&&!b(l),_=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],P,j,q=T.length;for(P=0;P_.valueOf():_.valueOf()9999?ln(_,v?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ye(Date.prototype.toISOString)?v?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ln(_,"Z")):ln(_,v?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Cu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",v="",_,T,P,j;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",v="Z"),_="["+l+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",P="-MM-DD[T]HH:mm:ss.SSS",j=v+'[")]',this.format(_+T+P+j)}function mf(l){l||(l=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var v=ln(this,l);return this.localeData().postformat(v)}function gs(l,v){return this.isValid()&&(_e(l)&&l.isValid()||Xe(l).isValid())?mr({to:this,from:l}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function gf(l){return this.from(Xe(),l)}function yf(l,v){return this.isValid()&&(_e(l)&&l.isValid()||Xe(l).isValid())?mr({from:this,to:l}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function Eu(l){return this.to(Xe(),l)}function $o(l){var v;return l===void 0?this._locale._abbr:(v=Rr(l),v!=null&&(this._locale=v),this)}var Du=Ne("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function Ou(){return this._locale}var qn=1e3,fn=60*qn,xa=60*fn,ys=(365*400+97)*24*xa;function Hi(l,v){return(l%v+v)%v}function bs(l,v,_){return l<100&&l>=0?new Date(l+400,v,_)-ys:new Date(l,v,_).valueOf()}function Ta(l,v,_){return l<100&&l>=0?Date.UTC(l+400,v,_)-ys:Date.UTC(l,v,_)}function pl(l){var v,_;if(l=nr(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ta:bs,l){case"year":v=_(this.year(),0,1);break;case"quarter":v=_(this.year(),this.month()-this.month()%3,1);break;case"month":v=_(this.year(),this.month(),1);break;case"week":v=_(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":v=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":v=_(this.year(),this.month(),this.date());break;case"hour":v=this._d.valueOf(),v-=Hi(v+(this._isUTC?0:this.utcOffset()*fn),xa);break;case"minute":v=this._d.valueOf(),v-=Hi(v,fn);break;case"second":v=this._d.valueOf(),v-=Hi(v,qn);break}return this._d.setTime(v),n.updateOffset(this,!0),this}function _s(l){var v,_;if(l=nr(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ta:bs,l){case"year":v=_(this.year()+1,0,1)-1;break;case"quarter":v=_(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":v=_(this.year(),this.month()+1,1)-1;break;case"week":v=_(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":v=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":v=_(this.year(),this.month(),this.date()+1)-1;break;case"hour":v=this._d.valueOf(),v+=xa-Hi(v+(this._isUTC?0:this.utcOffset()*fn),xa)-1;break;case"minute":v=this._d.valueOf(),v+=fn-Hi(v,fn)-1;break;case"second":v=this._d.valueOf(),v+=qn-Hi(v,qn)-1;break}return this._d.setTime(v),n.updateOffset(this,!0),this}function $u(){return this._d.valueOf()-(this._offset||0)*6e4}function ml(){return Math.floor(this.valueOf()/1e3)}function Po(){return new Date(this.valueOf())}function bf(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function Pu(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}}function lc(){return this.isValid()?this.toISOString():null}function uc(){return ve(this)}function _f(){return Y({},G(this))}function ws(){return G(this).overflow}function wf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ce("N",0,0,"eraAbbr"),ce("NN",0,0,"eraAbbr"),ce("NNN",0,0,"eraAbbr"),ce("NNNN",0,0,"eraName"),ce("NNNNN",0,0,"eraNarrow"),ce("y",["y",1],"yo","eraYear"),ce("y",["yy",2],0,"eraYear"),ce("y",["yyy",3],0,"eraYear"),ce("y",["yyyy",4],0,"eraYear"),ue("N",Io),ue("NN",Io),ue("NNN",Io),ue("NNNN",pc),ue("NNNNN",mc),Ue(["N","NN","NNN","NNNN","NNNNN"],function(l,v,_,T){var P=_._locale.erasParse(l,T,_._strict);P?G(_).era=P:G(_).invalidEra=l}),ue("y",Li),ue("yy",Li),ue("yyy",Li),ue("yyyy",Li),ue("yo",gc),Ue(["y","yy","yyy","yyyy"],Dt),Ue(["yo"],function(l,v,_,T){var P;_._locale._eraYearOrdinalRegex&&(P=l.match(_._locale._eraYearOrdinalRegex)),_._locale.eraYearOrdinalParse?v[Dt]=_._locale.eraYearOrdinalParse(l,P):v[Dt]=parseInt(l,10)});function hc(l,v){var _,T,P,j=this._eras||Rr("en")._eras;for(_=0,T=j.length;_=0)return j[T]}function kf(l,v){var _=l.since<=l.until?1:-1;return v===void 0?n(l.since).year():n(l.since).year()+(v-l.offset)*_}function ks(){var l,v,_,T=this.localeData().eras();for(l=0,v=T.length;lj&&(v=j),gl.call(this,l,v,_,T,P))}function gl(l,v,_,T,P){var j=lu(l,v,_,T,P),q=Un(j.year,0,j.dayOfYear);return this.year(q.getUTCFullYear()),this.month(q.getUTCMonth()),this.date(q.getUTCDate()),this}ce("Q",0,"Qo","quarter"),ue("Q",ts),Ue("Q",function(l,v){v[ur]=(Oe(l)-1)*3});function Mo(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}ce("D",["DD",2],"Do","date"),ue("D",Ve,lr),ue("DD",Ve,ct),ue("Do",function(l,v){return l?v._dayOfMonthOrdinalParse||v._ordinalParse:v._dayOfMonthOrdinalParseLenient}),Ue(["D","DD"],wr),Ue("Do",function(l,v){v[wr]=Oe(l.match(Ve)[0])});var yl=Mr("Date",!0);ce("DDD",["DDDD",3],"DDDo","dayOfYear"),ue("DDD",da),ue("DDDD",Ht),Ue(["DDD","DDDD"],function(l,v,_){_._dayOfYear=Oe(l)});function Cf(l){var v=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?v:this.add(l-v,"d")}ce("m",["mm",2],0,"minute"),ue("m",Ve,va),ue("mm",Ve,ct),Ue(["m","mm"],pr);var bl=Mr("Minutes",!1);ce("s",["ss",2],0,"second"),ue("s",Ve,va),ue("ss",Ve,ct),Ue(["s","ss"],Ir);var Ef=Mr("Seconds",!1);ce("S",0,0,function(){return~~(this.millisecond()/100)}),ce(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ce(0,["SSS",3],0,"millisecond"),ce(0,["SSSS",4],0,function(){return this.millisecond()*10}),ce(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ce(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ce(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ce(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ce(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ue("S",da,ts),ue("SS",da,ct),ue("SSS",da,Ht);var ni,Au;for(ni="SSSS";ni.length<=9;ni+="S")ue(ni,Li);function Ru(l,v){v[bi]=Oe(("0."+l)*1e3)}for(ni="S";ni.length<=9;ni+="S")Ue(ni,Ru);Au=Mr("Milliseconds",!1),ce("z",0,0,"zoneAbbr"),ce("zz",0,0,"zoneName");function Df(){return this._isUTC?"UTC":""}function Ts(){return this._isUTC?"Coordinated Universal Time":""}var te=tt.prototype;te.add=vl,te.calendar=xu,te.clone=hf,te.diff=ff,te.endOf=_s,te.format=mf,te.from=gs,te.fromNow=gf,te.to=yf,te.toNow=Eu,te.get=wi,te.invalidAt=ws,te.isAfter=sc,te.isBefore=ps,te.isBetween=Tu,te.isSame=cf,te.isSameOrAfter=df,te.isSameOrBefore=ms,te.isValid=uc,te.lang=Du,te.locale=$o,te.localeData=Ou,te.max=Qd,te.min=Jd,te.parsingFlags=_f,te.set=Bh,te.startOf=pl,te.subtract=uf,te.toArray=bf,te.toObject=Pu,te.toDate=Po,te.toISOString=pf,te.inspect=Cu,typeof Symbol!="undefined"&&Symbol.for!=null&&(te[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),te.toJSON=lc,te.toString=vf,te.unix=ml,te.valueOf=$u,te.creationData=wf,te.eraName=ks,te.eraNarrow=cc,te.eraAbbr=dc,te.eraYear=fc,te.year=qa,te.isLeapYear=tl,te.weekYear=xs,te.isoWeekYear=Sf,te.quarter=te.quarters=Mo,te.month=Ar,te.daysInMonth=$d,te.week=te.weeks=Md,te.isoWeek=te.isoWeeks=Xa,te.weeksInYear=Mu,te.weeksInWeekYear=Tf,te.isoWeeksInYear=no,te.isoWeeksInISOWeekYear=xf,te.date=yl,te.day=te.days=ma,te.weekday=Hd,te.isoWeekday=qh,te.dayOfYear=Cf,te.hour=te.hours=Ud,te.minute=te.minutes=bl,te.second=te.seconds=Ef,te.millisecond=te.milliseconds=Au,te.utcOffset=fs,te.utc=cl,te.local=nc,te.parseZone=dl,te.hasAlignedHourOffset=nf,te.isDST=dn,te.isLocal=of,te.isUtcOffset=sf,te.isUtc=io,te.isUTC=io,te.zoneAbbr=Df,te.zoneName=Ts,te.dates=Ne("dates accessor is deprecated. Use date instead.",yl),te.months=Ne("months accessor is deprecated. Use month instead",Ar),te.years=Ne("years accessor is deprecated. Use year instead",qa),te.zone=Ne("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ic),te.isDSTShifted=Ne("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",af);function ao(l){return Xe(l*1e3)}function Of(){return Xe.apply(null,arguments).parseZone()}function Nu(l){return l}var Le=Kt.prototype;Le.calendar=$r,Le.longDateFormat=be,Le.invalidDate=Qe,Le.ordinal=Bt,Le.preparse=Nu,Le.postformat=Nu,Le.relativeTime=zn,Le.pastFuture=sr,Le.set=ir,Le.eras=hc,Le.erasParse=Iu,Le.erasConvertYear=kf,Le.erasAbbrRegex=jt,Le.erasNameRegex=Je,Le.erasNarrowRegex=vc,Le.months=rl,Le.monthsShort=Hh,Le.monthsParse=Od,Le.monthsRegex=Pd,Le.monthsShortRegex=hr,Le.week=Id,Le.firstDayOfYear=uu,Le.firstDayOfWeek=Gh,Le.weekdays=Fd,Le.weekdaysMin=jd,Le.weekdaysShort=Vh,Le.weekdaysParse=Bd,Le.weekdaysRegex=cu,Le.weekdaysShortRegex=Wd,Le.weekdaysMinRegex=du,Le.isPM=Kh,Le.meridiem=Vd;function Ea(l,v,_,T){var P=Rr(),j=V().set(T,v);return P[_](j,l)}function _l(l,v,_){if($(l)&&(v=l,l=void 0),l=l||"",v!=null)return Ea(l,v,_,"month");var T,P=[];for(T=0;T<12;T++)P[T]=Ea(l,T,_,"month");return P}function oo(l,v,_,T){typeof l=="boolean"?($(v)&&(_=v,v=void 0),v=v||""):(v=l,_=v,l=!1,$(v)&&(_=v,v=void 0),v=v||"");var P=Rr(),j=l?P._week.dow:0,q,le=[];if(_!=null)return Ea(v,(_+j)%7,T,"day");for(q=0;q<7;q++)le[q]=Ea(v,(q+j)%7,T,"day");return le}function yc(l,v){return _l(l,v,"months")}function bc(l,v){return _l(l,v,"monthsShort")}function wl(l,v,_){return oo(l,v,_,"weekdays")}function $f(l,v,_){return oo(l,v,_,"weekdaysShort")}function Pf(l,v,_){return oo(l,v,_,"weekdaysMin")}Gr("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(l){var v=l%10,_=Oe(l%100/10)===1?"th":v===1?"st":v===2?"nd":v===3?"rd":"th";return l+_}}),n.lang=Ne("moment.lang is deprecated. Use moment.locale instead.",Gr),n.langData=Ne("moment.langData is deprecated. Use moment.localeData instead.",Rr);var Nr=Math.abs;function If(){var l=this._data;return this._milliseconds=Nr(this._milliseconds),this._days=Nr(this._days),this._months=Nr(this._months),l.milliseconds=Nr(l.milliseconds),l.seconds=Nr(l.seconds),l.minutes=Nr(l.minutes),l.hours=Nr(l.hours),l.months=Nr(l.months),l.years=Nr(l.years),this}function Lu(l,v,_,T){var P=mr(v,_);return l._milliseconds+=T*P._milliseconds,l._days+=T*P._days,l._months+=T*P._months,l._bubble()}function Mf(l,v){return Lu(this,l,v,1)}function Af(l,v){return Lu(this,l,v,-1)}function Si(l){return l<0?Math.floor(l):Math.ceil(l)}function Cs(){var l=this._milliseconds,v=this._days,_=this._months,T=this._data,P,j,q,le,me;return l>=0&&v>=0&&_>=0||l<=0&&v<=0&&_<=0||(l+=Si(Ao(_)+v)*864e5,v=0,_=0),T.milliseconds=l%1e3,P=Et(l/1e3),T.seconds=P%60,j=Et(P/60),T.minutes=j%60,q=Et(j/60),T.hours=q%24,v+=Et(q/24),me=Et(Fu(v)),_+=me,v-=Si(Ao(me)),le=Et(_/12),_%=12,T.days=v,T.months=_,T.years=le,this}function Fu(l){return l*4800/146097}function Ao(l){return l*146097/4800}function Ro(l){if(!this.isValid())return NaN;var v,_,T=this._milliseconds;if(l=nr(l),l==="month"||l==="quarter"||l==="year")switch(v=this._days+T/864e5,_=this._months+Fu(v),l){case"month":return _;case"quarter":return _/3;case"year":return _/12}else switch(v=this._days+Math.round(Ao(this._months)),l){case"week":return v/7+T/6048e5;case"day":return v+T/864e5;case"hour":return v*24+T/36e5;case"minute":return v*1440+T/6e4;case"second":return v*86400+T/1e3;case"millisecond":return Math.floor(v*864e5)+T;default:throw new Error("Unknown unit "+l)}}function Lr(l){return function(){return this.as(l)}}var ju=Lr("ms"),_c=Lr("s"),Rf=Lr("m"),Nf=Lr("h"),wc=Lr("d"),Lf=Lr("w"),kc=Lr("M"),Yu=Lr("Q"),Bu=Lr("y"),kl=ju;function No(){return mr(this)}function Hu(l){return l=nr(l),this.isValid()?this[l+"s"]():NaN}function Fr(l){return function(){return this.isValid()?this._data[l]:NaN}}var Sc=Fr("milliseconds"),Wu=Fr("seconds"),Da=Fr("minutes"),Sl=Fr("hours"),In=Fr("days"),Xn=Fr("months"),xl=Fr("years");function xc(){return Et(this.days()/7)}var Ur=Math.round,Wi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tc(l,v,_,T,P){return P.relativeTime(v||1,!!_,l,T)}function cr(l,v,_,T){var P=mr(l).abs(),j=Ur(P.as("s")),q=Ur(P.as("m")),le=Ur(P.as("h")),me=Ur(P.as("d")),Pe=Ur(P.as("M")),It=Ur(P.as("w")),Vr=Ur(P.as("y")),pi=j<=_.ss&&["s",j]||j<_.s&&["ss",j]||q<=1&&["m"]||q<_.m&&["mm",q]||le<=1&&["h"]||le<_.h&&["hh",le]||me<=1&&["d"]||me<_.d&&["dd",me];return _.w!=null&&(pi=pi||It<=1&&["w"]||It<_.w&&["ww",It]),pi=pi||Pe<=1&&["M"]||Pe<_.M&&["MM",Pe]||Vr<=1&&["y"]||["yy",Vr],pi[2]=v,pi[3]=+l>0,pi[4]=T,Tc.apply(null,pi)}function Ff(l){return l===void 0?Ur:typeof l=="function"?(Ur=l,!0):!1}function jf(l,v){return Wi[l]===void 0?!1:v===void 0?Wi[l]:(Wi[l]=v,l==="s"&&(Wi.ss=v-1),!0)}function Yf(l,v){if(!this.isValid())return this.localeData().invalidDate();var _=!1,T=Wi,P,j;return typeof l=="object"&&(v=l,l=!1),typeof l=="boolean"&&(_=l),typeof v=="object"&&(T=Object.assign({},Wi,v),v.s!=null&&v.ss==null&&(T.ss=v.s-1)),P=this.localeData(),j=cr(this,!_,T,P),_&&(j=P.pastFuture(+this,j)),P.postformat(j)}var Lo=Math.abs;function en(l){return(l>0)-(l<0)||+l}function so(){if(!this.isValid())return this.localeData().invalidDate();var l=Lo(this._milliseconds)/1e3,v=Lo(this._days),_=Lo(this._months),T,P,j,q,le=this.asSeconds(),me,Pe,It,Vr;return le?(T=Et(l/60),P=Et(T/60),l%=60,T%=60,j=Et(_/12),_%=12,q=l?l.toFixed(3).replace(/\.?0+$/,""):"",me=le<0?"-":"",Pe=en(this._months)!==en(le)?"-":"",It=en(this._days)!==en(le)?"-":"",Vr=en(this._milliseconds)!==en(le)?"-":"",me+"P"+(j?Pe+j+"Y":"")+(_?Pe+_+"M":"")+(v?It+v+"D":"")+(P||T||l?"T":"")+(P?Vr+P+"H":"")+(T?Vr+T+"M":"")+(l?Vr+q+"S":"")):"P0D"}var Ie=wa.prototype;return Ie.isValid=Ze,Ie.abs=If,Ie.add=Mf,Ie.subtract=Af,Ie.as=Ro,Ie.asMilliseconds=ju,Ie.asSeconds=_c,Ie.asMinutes=Rf,Ie.asHours=Nf,Ie.asDays=wc,Ie.asWeeks=Lf,Ie.asMonths=kc,Ie.asQuarters=Yu,Ie.asYears=Bu,Ie.valueOf=kl,Ie._bubble=Cs,Ie.clone=No,Ie.get=Hu,Ie.milliseconds=Sc,Ie.seconds=Wu,Ie.minutes=Da,Ie.hours=Sl,Ie.days=In,Ie.weeks=xc,Ie.months=Xn,Ie.years=xl,Ie.humanize=Yf,Ie.toISOString=so,Ie.toString=so,Ie.toJSON=so,Ie.locale=$o,Ie.localeData=Ou,Ie.toIsoString=Ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",so),Ie.lang=Du,ce("X",0,0,"unix"),ce("x",0,0,"valueOf"),ue("x",yi),ue("X",Yh),Ue("X",function(l,v,_){_._d=new Date(parseFloat(l)*1e3)}),Ue("x",function(l,v,_){_._d=new Date(Oe(l))}),n.version="2.30.1",h(Xe),n.fn=te,n.min=cn,n.max=ef,n.now=_a,n.utc=V,n.unix=ao,n.months=yc,n.isDate=A,n.locale=Gr,n.invalid=ye,n.duration=mr,n.isMoment=_e,n.weekdays=wl,n.parseZone=Of,n.localeData=Rr,n.isDuration=ka,n.monthsShort=bc,n.weekdaysMin=Pf,n.defineLocale=Qa,n.updateLocale=fu,n.locales=Xh,n.weekdaysShort=$f,n.normalizeUnits=nr,n.relativeTimeRounding=Ff,n.relativeTimeThreshold=jf,n.calendarFormat=oc,n.prototype=te,n.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"},n})}(JM)),JM.exports}(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){function n(d,p,y,b){var w={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[d+" Tage",d+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[d+" Monate",d+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[d+" Jahre",d+" Jahren"]};return p?w[y][0]:w[y][1]}var h=t.defineLocale("de",{months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return h})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),h="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),d=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],p=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,y=t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(b,w){return b?/-MMM-/.test(w)?h[b.month()]:n[b.month()]:n},monthsRegex:p,monthsShortRegex:p,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[ma\xF1ana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4},invalidDate:"Fecha inv\xE1lida"});return y})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,h=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,d=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,p=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],y=t.defineLocale("fr",{months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),monthsRegex:d,monthsShortRegex:d,monthsStrictRegex:n,monthsShortStrictRegex:h,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xE0] LT",nextDay:"[Demain \xE0] LT",nextWeek:"dddd [\xE0] LT",lastDay:"[Hier \xE0] LT",lastWeek:"dddd [dernier \xE0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(b,w){switch(w){case"D":return b+(b===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return b+(b===1?"er":"e");case"w":case"W":return b+(b===1?"re":"e")}},week:{dow:1,doy:4}});return y})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n=t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}});return n})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n=t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4EE4\u548C",narrow:"\u32FF",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5E73\u6210",narrow:"\u337B",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662D\u548C",narrow:"\u337C",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6B63",narrow:"\u337D",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660E\u6CBB",narrow:"\u337E",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897F\u66A6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7D00\u5143\u524D",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(h,d){return d[1]==="\u5143"?1:parseInt(d[1]||h,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(h){return h==="\u5348\u5F8C"},meridiem:function(h,d,p){return h<12?"\u5348\u524D":"\u5348\u5F8C"},calendar:{sameDay:"[\u4ECA\u65E5] LT",nextDay:"[\u660E\u65E5] LT",nextWeek:function(h){return h.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65E5] LT",lastWeek:function(h){return this.week()!==h.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(h,d){switch(d){case"y":return h===1?"\u5143\u5E74":h+"\u5E74";case"d":case"D":case"DDD":return h+"\u65E5";default:return h}},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",ss:"%d\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}});return n})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),h="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),d=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],p=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,y=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(b,w){return b?/-MMM-/.test(w)?h[b.month()]:n[b.month()]:n},monthsRegex:p,monthsShortRegex:p,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xE9\xE9n minuut",mm:"%d minuten",h:"\xE9\xE9n uur",hh:"%d uur",d:"\xE9\xE9n dag",dd:"%d dagen",w:"\xE9\xE9n week",ww:"%d weken",M:"\xE9\xE9n maand",MM:"%d maanden",y:"\xE9\xE9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(b){return b+(b===1||b===8||b>=20?"ste":"de")},week:{dow:1,doy:4}});return y})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),h="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),d=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function p(w){return w%10<5&&w%10>1&&~~(w/10)%10!==1}function y(w,$,A){var R=w+" ";switch(A){case"ss":return R+(p(w)?"sekundy":"sekund");case"m":return $?"minuta":"minut\u0119";case"mm":return R+(p(w)?"minuty":"minut");case"h":return $?"godzina":"godzin\u0119";case"hh":return R+(p(w)?"godziny":"godzin");case"ww":return R+(p(w)?"tygodnie":"tygodni");case"MM":return R+(p(w)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return R+(p(w)?"lata":"lat")}}var b=t.defineLocale("pl",{months:function(w,$){return w?/D MMMM/.test($)?h[w.month()]:n[w.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015B o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015Brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015Brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:y,m:y,mm:y,h:y,hh:y,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:y,M:"miesi\u0105c",MM:y,y:"rok",yy:y},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return b})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){function n(y,b){var w=y.split("_");return b%10===1&&b%100!==11?w[0]:b%10>=2&&b%10<=4&&(b%100<10||b%100>=20)?w[1]:w[2]}function h(y,b,w){var $={ss:b?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434",mm:b?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",ww:"\u043D\u0435\u0434\u0435\u043B\u044F_\u043D\u0435\u0434\u0435\u043B\u0438_\u043D\u0435\u0434\u0435\u043B\u044C",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return w==="m"?b?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":y+" "+n($[w],+y)}var d=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],p=t.defineLocale("ru",{months:{format:"\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),standalone:"\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_")},monthsShort:{format:"\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),standalone:"\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_")},weekdays:{standalone:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),format:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043E\u0442\u0443".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),monthsParse:d,longMonthsParse:d,shortMonthsParse:d,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(y){if(y.week()!==this.week())switch(this.day()){case 0:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E] dddd, [\u0432] LT"}else return this.day()===2?"[\u0412\u043E] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT"},lastWeek:function(y){if(y.week()!==this.week())switch(this.day()){case 0:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u044B\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u0443\u044E] dddd, [\u0432] LT"}else return this.day()===2?"[\u0412\u043E] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT"},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",ss:h,m:h,mm:h,h:"\u0447\u0430\u0441",hh:h,d:"\u0434\u0435\u043D\u044C",dd:h,w:"\u043D\u0435\u0434\u0435\u043B\u044F",ww:h,M:"\u043C\u0435\u0441\u044F\u0446",MM:h,y:"\u0433\u043E\u0434",yy:h},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(y){return/^(дня|вечера)$/.test(y)},meridiem:function(y,b,w){return y<4?"\u043D\u043E\u0447\u0438":y<12?"\u0443\u0442\u0440\u0430":y<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(y,b){switch(b){case"M":case"d":case"DDD":return y+"-\u0439";case"D":return y+"-\u0433\u043E";case"w":case"W":return y+"-\u044F";default:return y}},week:{dow:1,doy:4}});return p})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){function n(b,w){var $=b.split("_");return w%10===1&&w%100!==11?$[0]:w%10>=2&&w%10<=4&&(w%100<10||w%100>=20)?$[1]:$[2]}function h(b,w,$){var A={ss:w?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434",mm:w?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D",hh:w?"\u0433\u043E\u0434\u0438\u043D\u0430_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D":"\u0433\u043E\u0434\u0438\u043D\u0443_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u0456_\u0434\u043D\u0456\u0432",MM:"\u043C\u0456\u0441\u044F\u0446\u044C_\u043C\u0456\u0441\u044F\u0446\u0456_\u043C\u0456\u0441\u044F\u0446\u0456\u0432",yy:"\u0440\u0456\u043A_\u0440\u043E\u043A\u0438_\u0440\u043E\u043A\u0456\u0432"};return $==="m"?w?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443":$==="h"?w?"\u0433\u043E\u0434\u0438\u043D\u0430":"\u0433\u043E\u0434\u0438\u043D\u0443":b+" "+n(A[$],+b)}function d(b,w){var $={nominative:"\u043D\u0435\u0434\u0456\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044F_\u0441\u0443\u0431\u043E\u0442\u0430".split("_"),accusative:"\u043D\u0435\u0434\u0456\u043B\u044E_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044E_\u0441\u0443\u0431\u043E\u0442\u0443".split("_"),genitive:"\u043D\u0435\u0434\u0456\u043B\u0456_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043A\u0430_\u0432\u0456\u0432\u0442\u043E\u0440\u043A\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u0456_\u0441\u0443\u0431\u043E\u0442\u0438".split("_")},A;return b===!0?$.nominative.slice(1,7).concat($.nominative.slice(0,1)):b?(A=/(\[[ВвУу]\]) ?dddd/.test(w)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(w)?"genitive":"nominative",$[A][b.day()]):$.nominative}function p(b){return function(){return b+"\u043E"+(this.hours()===11?"\u0431":"")+"] LT"}}var y=t.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043D\u044F_\u043B\u044E\u0442\u043E\u0433\u043E_\u0431\u0435\u0440\u0435\u0437\u043D\u044F_\u043A\u0432\u0456\u0442\u043D\u044F_\u0442\u0440\u0430\u0432\u043D\u044F_\u0447\u0435\u0440\u0432\u043D\u044F_\u043B\u0438\u043F\u043D\u044F_\u0441\u0435\u0440\u043F\u043D\u044F_\u0432\u0435\u0440\u0435\u0441\u043D\u044F_\u0436\u043E\u0432\u0442\u043D\u044F_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043D\u044F".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043D\u044C_\u043B\u044E\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043D\u044C_\u043A\u0432\u0456\u0442\u0435\u043D\u044C_\u0442\u0440\u0430\u0432\u0435\u043D\u044C_\u0447\u0435\u0440\u0432\u0435\u043D\u044C_\u043B\u0438\u043F\u0435\u043D\u044C_\u0441\u0435\u0440\u043F\u0435\u043D\u044C_\u0432\u0435\u0440\u0435\u0441\u0435\u043D\u044C_\u0436\u043E\u0432\u0442\u0435\u043D\u044C_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043D\u044C".split("_")},monthsShort:"\u0441\u0456\u0447_\u043B\u044E\u0442_\u0431\u0435\u0440_\u043A\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043B\u0438\u043F_\u0441\u0435\u0440\u043F_\u0432\u0435\u0440_\u0436\u043E\u0432\u0442_\u043B\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:d,weekdaysShort:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:p("[\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456 "),nextDay:p("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:p("[\u0412\u0447\u043E\u0440\u0430 "),nextWeek:p("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return p("[\u041C\u0438\u043D\u0443\u043B\u043E\u0457] dddd [").call(this);case 1:case 2:case 4:return p("[\u041C\u0438\u043D\u0443\u043B\u043E\u0433\u043E] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043E\u043C\u0443",s:"\u0434\u0435\u043A\u0456\u043B\u044C\u043A\u0430 \u0441\u0435\u043A\u0443\u043D\u0434",ss:h,m:h,mm:h,h:"\u0433\u043E\u0434\u0438\u043D\u0443",hh:h,d:"\u0434\u0435\u043D\u044C",dd:h,M:"\u043C\u0456\u0441\u044F\u0446\u044C",MM:h,y:"\u0440\u0456\u043A",yy:h},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(b){return/^(дня|вечора)$/.test(b)},meridiem:function(b,w,$){return b<4?"\u043D\u043E\u0447\u0456":b<12?"\u0440\u0430\u043D\u043A\u0443":b<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u043E\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(b,w){switch(w){case"M":case"d":case"DDD":case"w":case"W":return b+"-\u0439";case"D":return b+"-\u0433\u043E";default:return b}},week:{dow:1,doy:7}});return y})})();var Yt=function(e){try{return!!e()}catch(a){return!0}},JV=Yt,x_=!JV(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),O6=x_,$6=Function.prototype,yR=$6.call,QV=O6&&$6.bind.bind(yR,yR),Zt=O6?QV:function(e){return function(){return yR.apply(e,arguments)}},e7=Math.ceil,t7=Math.floor,r7=Math.trunc||function(a){var t=+a;return(t>0?t7:e7)(t)},i7=r7,T_=function(e){var a=+e;return a!==a||a===0?0:i7(a)},HT=function(e){return e&&e.Math===Math&&e},Dr=HT(typeof globalThis=="object"&&globalThis)||HT(typeof window=="object"&&window)||HT(typeof self=="object"&&self)||HT(typeof ko=="object"&&ko)||function(){return this}()||ko||Function("return this")(),P6={exports:{}},n7=!0,UF=Dr,a7=Object.defineProperty,o7=function(e,a){try{a7(UF,e,{value:a,configurable:!0,writable:!0})}catch(t){UF[e]=a}return a},s7=Dr,l7=o7,VF="__core-js_shared__",u7=s7[VF]||l7(VF,{}),yN=u7,qF=yN;(P6.exports=function(e,a){return qF[e]||(qF[e]=a!==void 0?a:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"\xA9 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 Hg=P6.exports,Wg=function(e){return e==null},h7=Wg,c7=TypeError,Gg=function(e){if(h7(e))throw new c7("Can't call method on "+e);return e},d7=Gg,f7=Object,ua=function(e){return f7(d7(e))},v7=Zt,p7=ua,m7=v7({}.hasOwnProperty),Ni=Object.hasOwn||function(a,t){return m7(p7(a),t)},g7=Zt,y7=0,b7=Math.random(),_7=g7(1 .toString),HC=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_7(++y7+b7,36)},bd=typeof navigator!="undefined"&&String(navigator.userAgent)||"",I6=Dr,QM=bd,KF=I6.process,XF=I6.Deno,ZF=KF&&KF.versions||XF&&XF.version,JF=ZF&&ZF.v8,Us,_C;JF&&(Us=JF.split("."),_C=Us[0]>0&&Us[0]<4?1:+(Us[0]+Us[1]));!_C&&QM&&(Us=QM.match(/Edge\/(\d+)/),(!Us||Us[1]>=74)&&(Us=QM.match(/Chrome\/(\d+)/),Us&&(_C=+Us[1])));var zg=_C,QF=zg,w7=Yt,k7=Dr,S7=k7.String,Ug=!!Object.getOwnPropertySymbols&&!w7(function(){var e=Symbol("symbol detection");return!S7(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&QF&&QF<41}),x7=Ug,M6=x7&&!Symbol.sham&&typeof Symbol.iterator=="symbol",T7=Dr,C7=Hg,e5=Ni,E7=HC,D7=Ug,O7=M6,xg=T7.Symbol,eA=C7("wks"),$7=O7?xg.for||xg:xg&&xg.withoutSetter||E7,Or=function(e){return e5(eA,e)||(eA[e]=D7&&e5(xg,e)?xg[e]:$7("Symbol."+e)),eA[e]},P7=Or,I7=P7("toStringTag"),A6={};A6[I7]="z";var bN=String(A6)==="[object z]",bR=typeof document=="object"&&document.all,M7=typeof bR=="undefined"&&bR!==void 0,R6={all:bR,IS_HTMLDDA:M7},N6=R6,A7=N6.all,si=N6.IS_HTMLDDA?function(e){return typeof e=="function"||e===A7}:function(e){return typeof e=="function"},L6=Zt,R7=L6({}.toString),N7=L6("".slice),Mh=function(e){return N7(R7(e),8,-1)},L7=bN,F7=si,fC=Mh,j7=Or,Y7=j7("toStringTag"),B7=Object,H7=fC(function(){return arguments}())==="Arguments",W7=function(e,a){try{return e[a]}catch(t){}},Ah=L7?fC:function(e){var a,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=W7(a=B7(e),Y7))=="string"?t:H7?fC(a):(n=fC(a))==="Object"&&F7(a.callee)?"Arguments":n},G7=Ah,z7=String,Qo=function(e){if(G7(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return z7(e)},_N=Zt,U7=T_,V7=Qo,q7=Gg,K7=_N("".charAt),t5=_N("".charCodeAt),X7=_N("".slice),Z7=function(e){return function(a,t){var n=V7(q7(a)),h=U7(t),d=n.length,p,y;return h<0||h>=d?e?"":void 0:(p=t5(n,h),p<55296||p>56319||h+1===d||(y=t5(n,h+1))<56320||y>57343?e?K7(n,h):p:e?X7(n,h,h+2):(p-55296<<10)+(y-56320)+65536)}},J7={charAt:Z7(!0)},Q7=Dr,eq=si,r5=Q7.WeakMap,tq=eq(r5)&&/native code/.test(String(r5)),i5=si,F6=R6,rq=F6.all,an=F6.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:i5(e)||e===rq}:function(e){return typeof e=="object"?e!==null:i5(e)},iq=Yt,Xi=!iq(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ga={},nq=Dr,n5=an,_R=nq.document,aq=n5(_R)&&n5(_R.createElement),wN=function(e){return aq?_R.createElement(e):{}},oq=Xi,sq=Yt,lq=wN,j6=!oq&&!sq(function(){return Object.defineProperty(lq("div"),"a",{get:function(){return 7}}).a!==7}),uq=Xi,hq=Yt,Y6=uq&&hq(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),cq=an,dq=String,fq=TypeError,xo=function(e){if(cq(e))return e;throw new fq(dq(e)+" is not an object")},vq=x_,WT=Function.prototype.call,on=vq?WT.bind(WT):function(){return WT.apply(WT,arguments)},tr={},tA=tr,rA=Dr,pq=si,a5=function(e){return pq(e)?e:void 0},ha=function(e,a){return arguments.length<2?a5(tA[e])||a5(rA[e]):tA[e]&&tA[e][a]||rA[e]&&rA[e][a]},mq=Zt,Cr=mq({}.isPrototypeOf),gq=ha,yq=si,bq=Cr,_q=M6,wq=Object,C_=_q?function(e){return typeof e=="symbol"}:function(e){var a=gq("Symbol");return yq(a)&&bq(a.prototype,wq(e))},kq=String,Vg=function(e){try{return kq(e)}catch(a){return"Object"}},Sq=si,xq=Vg,Tq=TypeError,za=function(e){if(Sq(e))return e;throw new Tq(xq(e)+" is not a function")},Cq=za,Eq=Wg,kN=function(e,a){var t=e[a];return Eq(t)?void 0:Cq(t)},iA=on,nA=si,aA=an,Dq=TypeError,Oq=function(e,a){var t,n;if(a==="string"&&nA(t=e.toString)&&!aA(n=iA(t,e))||nA(t=e.valueOf)&&!aA(n=iA(t,e))||a!=="string"&&nA(t=e.toString)&&!aA(n=iA(t,e)))return n;throw new Dq("Can't convert object to primitive value")},$q=on,o5=an,s5=C_,Pq=kN,Iq=Oq,Mq=Or,Aq=TypeError,Rq=Mq("toPrimitive"),Nq=function(e,a){if(!o5(e)||s5(e))return e;var t=Pq(e,Rq),n;if(t){if(a===void 0&&(a="default"),n=$q(t,e,a),!o5(n)||s5(n))return n;throw new Aq("Can't convert object to primitive value")}return a===void 0&&(a="number"),Iq(e,a)},Lq=Nq,Fq=C_,WC=function(e){var a=Lq(e,"string");return Fq(a)?a:a+""},jq=Xi,Yq=j6,Bq=Y6,GT=xo,l5=WC,Hq=TypeError,oA=Object.defineProperty,Wq=Object.getOwnPropertyDescriptor,sA="enumerable",lA="configurable",uA="writable";Ga.f=jq?Bq?function(a,t,n){if(GT(a),t=l5(t),GT(n),typeof a=="function"&&t==="prototype"&&"value"in n&&uA in n&&!n[uA]){var h=Wq(a,t);h&&h[uA]&&(a[t]=n.value,n={configurable:lA in n?n[lA]:h[lA],enumerable:sA in n?n[sA]:h[sA],writable:!1})}return oA(a,t,n)}:oA:function(a,t,n){if(GT(a),t=l5(t),GT(n),Yq)try{return oA(a,t,n)}catch(h){}if("get"in n||"set"in n)throw new Hq("Accessors not supported");return"value"in n&&(a[t]=n.value),a};var vp=function(e,a){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:a}},Gq=Xi,zq=Ga,Uq=vp,Rh=Gq?function(e,a,t){return zq.f(e,a,Uq(1,t))}:function(e,a,t){return e[a]=t,e},Vq=Hg,qq=HC,u5=Vq("keys"),GC=function(e){return u5[e]||(u5[e]=qq(e))},E_={},Kq=tq,B6=Dr,Xq=an,Zq=Rh,hA=Ni,cA=yN,Jq=GC,Qq=E_,h5="Object already initialized",wR=B6.TypeError,eK=B6.WeakMap,wC,h_,kC,tK=function(e){return kC(e)?h_(e):wC(e,{})},rK=function(e){return function(a){var t;if(!Xq(a)||(t=h_(a)).type!==e)throw new wR("Incompatible receiver, "+e+" required");return t}};Kq||cA.state?(Gs=cA.state||(cA.state=new eK),Gs.get=Gs.get,Gs.has=Gs.has,Gs.set=Gs.set,wC=function(e,a){if(Gs.has(e))throw new wR(h5);return a.facade=e,Gs.set(e,a),a},h_=function(e){return Gs.get(e)||{}},kC=function(e){return Gs.has(e)}):(Qv=Jq("state"),Qq[Qv]=!0,wC=function(e,a){if(hA(e,Qv))throw new wR(h5);return a.facade=e,Zq(e,Qv,a),a},h_=function(e){return hA(e,Qv)?e[Qv]:{}},kC=function(e){return hA(e,Qv)});var Gs,Qv,qg={set:wC,get:h_,has:kC,enforce:tK,getterFor:rK},iK=x_,H6=Function.prototype,c5=H6.apply,d5=H6.call,Kg=typeof Reflect=="object"&&Reflect.apply||(iK?d5.bind(c5):function(){return d5.apply(c5,arguments)}),nK=Mh,aK=Zt,SN=function(e){if(nK(e)==="Function")return aK(e)},pp={},D_={},W6={}.propertyIsEnumerable,G6=Object.getOwnPropertyDescriptor,oK=G6&&!W6.call({1:2},1);D_.f=oK?function(a){var t=G6(this,a);return!!t&&t.enumerable}:W6;var sK=Zt,lK=Yt,uK=Mh,dA=Object,hK=sK("".split),zC=lK(function(){return!dA("z").propertyIsEnumerable(0)})?function(e){return uK(e)==="String"?hK(e,""):dA(e)}:dA,cK=zC,dK=Gg,Qs=function(e){return cK(dK(e))},fK=Xi,vK=on,pK=D_,mK=vp,gK=Qs,yK=WC,bK=Ni,_K=j6,f5=Object.getOwnPropertyDescriptor;pp.f=fK?f5:function(a,t){if(a=gK(a),t=yK(t),_K)try{return f5(a,t)}catch(n){}if(bK(a,t))return mK(!vK(pK.f,a,t),a[t])};var wK=Yt,kK=si,SK=/#|\.prototype\./,O_=function(e,a){var t=TK[xK(e)];return t===EK?!0:t===CK?!1:kK(a)?wK(a):!!a},xK=O_.normalize=function(e){return String(e).replace(SK,".").toLowerCase()},TK=O_.data={},CK=O_.NATIVE="N",EK=O_.POLYFILL="P",z6=O_,v5=SN,DK=za,OK=x_,$K=v5(v5.bind),_d=function(e,a){return DK(e),a===void 0?e:OK?$K(e,a):function(){return e.apply(a,arguments)}},zT=Dr,PK=Kg,IK=SN,MK=si,AK=pp.f,RK=z6,pg=tr,NK=_d,mg=Rh,p5=Ni,LK=function(e){var a=function(t,n,h){if(this instanceof a){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,h)}return PK(e,this,arguments)};return a.prototype=e.prototype,a},He=function(e,a){var t=e.target,n=e.global,h=e.stat,d=e.proto,p=n?zT:h?zT[t]:(zT[t]||{}).prototype,y=n?pg:pg[t]||mg(pg,t,{})[t],b=y.prototype,w,$,A,R,Y,V,oe,G,ae;for(R in a)w=RK(n?R:t+(h?".":"#")+R,e.forced),$=!w&&p&&p5(p,R),V=y[R],$&&(e.dontCallGetSet?(ae=AK(p,R),oe=ae&&ae.value):oe=p[R]),Y=$&&oe?oe:a[R],!($&&typeof V==typeof Y)&&(e.bind&&$?G=NK(Y,zT):e.wrap&&$?G=LK(Y):d&&MK(Y)?G=IK(Y):G=Y,(e.sham||Y&&Y.sham||V&&V.sham)&&mg(G,"sham",!0),mg(y,R,G),d&&(A=t+"Prototype",p5(pg,A)||mg(pg,A,{}),mg(pg[A],R,Y),e.real&&b&&(w||!b[R])&&mg(b,R,Y)))},kR=Xi,FK=Ni,U6=Function.prototype,jK=kR&&Object.getOwnPropertyDescriptor,V6=FK(U6,"name"),YK=V6&&function(){}.name==="something";V6&&(!kR||kR&&jK(U6,"name").configurable);var BK={PROPER:YK},UC={},HK=T_,WK=Math.max,GK=Math.min,$_=function(e,a){var t=HK(e);return t<0?WK(t+a,0):GK(t,a)},zK=T_,UK=Math.min,VK=function(e){return e>0?UK(zK(e),9007199254740991):0},qK=VK,Ua=function(e){return qK(e.length)},KK=Qs,XK=$_,ZK=Ua,m5=function(e){return function(a,t,n){var h=KK(a),d=ZK(h),p=XK(n,d),y;if(e&&t!==t){for(;d>p;)if(y=h[p++],y!==y)return!0}else for(;d>p;p++)if((e||p in h)&&h[p]===t)return e||p||0;return!e&&-1}},xN={includes:m5(!0),indexOf:m5(!1)},JK=Zt,fA=Ni,QK=Qs,eX=xN.indexOf,tX=E_,g5=JK([].push),q6=function(e,a){var t=QK(e),n=0,h=[],d;for(d in t)!fA(tX,d)&&fA(t,d)&&g5(h,d);for(;a.length>n;)fA(t,d=a[n++])&&(~eX(h,d)||g5(h,d));return h},TN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rX=q6,iX=TN,P_=Object.keys||function(a){return rX(a,iX)},nX=Xi,aX=Y6,oX=Ga,sX=xo,lX=Qs,uX=P_;UC.f=nX&&!aX?Object.defineProperties:function(a,t){sX(a);for(var n=lX(t),h=uX(t),d=h.length,p=0,y;d>p;)oX.f(a,y=h[p++],n[y]);return a};var hX=ha,K6=hX("document","documentElement"),cX=xo,dX=UC,y5=TN,fX=E_,vX=K6,pX=wN,mX=GC,b5=">",_5="<",SR="prototype",xR="script",X6=mX("IE_PROTO"),vA=function(){},Z6=function(e){return _5+xR+b5+e+_5+"/"+xR+b5},w5=function(e){e.write(Z6("")),e.close();var a=e.parentWindow.Object;return e=null,a},gX=function(){var e=pX("iframe"),a="java"+xR+":",t;return e.style.display="none",vX.appendChild(e),e.src=String(a),t=e.contentWindow.document,t.open(),t.write(Z6("document.F=Object")),t.close(),t.F},UT,vC=function(){try{UT=new ActiveXObject("htmlfile")}catch(a){}vC=typeof document!="undefined"?document.domain&&UT?w5(UT):gX():w5(UT);for(var e=y5.length;e--;)delete vC[SR][y5[e]];return vC()};fX[X6]=!0;var mp=Object.create||function(a,t){var n;return a!==null?(vA[SR]=cX(a),n=new vA,vA[SR]=null,n[X6]=a):n=vC(),t===void 0?n:dX.f(n,t)},yX=Yt,J6=!yX(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),bX=Ni,_X=si,wX=ua,kX=GC,SX=J6,k5=kX("IE_PROTO"),TR=Object,xX=TR.prototype,I_=SX?TR.getPrototypeOf:function(e){var a=wX(e);if(bX(a,k5))return a[k5];var t=a.constructor;return _X(t)&&a instanceof t?t.prototype:a instanceof TR?xX:null},TX=Rh,Xg=function(e,a,t,n){return n&&n.enumerable?e[a]=t:TX(e,a,t),e},CX=Yt,EX=si,DX=an,OX=mp,S5=I_,$X=Xg,PX=Or,CR=PX("iterator"),Q6=!1,Eh,pA,mA;[].keys&&(mA=[].keys(),"next"in mA?(pA=S5(S5(mA)),pA!==Object.prototype&&(Eh=pA)):Q6=!0);var IX=!DX(Eh)||CX(function(){var e={};return Eh[CR].call(e)!==e});IX?Eh={}:Eh=OX(Eh);EX(Eh[CR])||$X(Eh,CR,function(){return this});var eB={IteratorPrototype:Eh,BUGGY_SAFARI_ITERATORS:Q6},MX=bN,AX=Ah,RX=MX?{}.toString:function(){return"[object "+AX(this)+"]"},NX=bN,LX=Ga.f,FX=Rh,jX=Ni,YX=RX,BX=Or,x5=BX("toStringTag"),gp=function(e,a,t,n){if(e){var h=t?e:e.prototype;jX(h,x5)||LX(h,x5,{configurable:!0,value:a}),n&&!NX&&FX(h,"toString",YX)}},Zg={},HX=eB.IteratorPrototype,WX=mp,GX=vp,zX=gp,UX=Zg,VX=function(){return this},qX=function(e,a,t,n){var h=a+" Iterator";return e.prototype=WX(HX,{next:GX(+!n,t)}),zX(e,h,!1,!0),UX[h]=VX,e},KX=Zt,XX=za,ZX=function(e,a,t){try{return KX(XX(Object.getOwnPropertyDescriptor(e,a)[t]))}catch(n){}},JX=si,QX=String,eZ=TypeError,tZ=function(e){if(typeof e=="object"||JX(e))return e;throw new eZ("Can't set "+QX(e)+" as a prototype")},rZ=ZX,iZ=xo,nZ=tZ,tB=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,a={},t;try{t=rZ(Object.prototype,"__proto__","set"),t(a,[]),e=a instanceof Array}catch(n){}return function(h,d){return iZ(h),nZ(d),e?t(h,d):h.__proto__=d,h}}():void 0),aZ=He,oZ=on,sZ=BK,lZ=qX,uZ=I_,hZ=gp,T5=Xg,cZ=Or,C5=Zg,dZ=eB,fZ=sZ.PROPER,VT=dZ.BUGGY_SAFARI_ITERATORS,gA=cZ("iterator"),E5="keys",qT="values",D5="entries",vZ=function(){return this},CN=function(e,a,t,n,h,d,p){lZ(t,a,n);var y=function(ae){if(ae===h&&R)return R;if(!VT&&ae&&ae in $)return $[ae];switch(ae){case E5:return function(){return new t(this,ae)};case qT:return function(){return new t(this,ae)};case D5:return function(){return new t(this,ae)}}return function(){return new t(this)}},b=a+" Iterator",w=!1,$=e.prototype,A=$[gA]||$["@@iterator"]||h&&$[h],R=!VT&&A||y(h),Y=a==="Array"&&$.entries||A,V,oe,G;if(Y&&(V=uZ(Y.call(new e)),V!==Object.prototype&&V.next&&(hZ(V,b,!0,!0),C5[b]=vZ)),fZ&&h===qT&&A&&A.name!==qT&&(w=!0,R=function(){return oZ(A,this)}),h)if(oe={values:y(qT),keys:d?R:y(E5),entries:y(D5)},p)for(G in oe)(VT||w||!(G in $))&&T5($,G,oe[G]);else aZ({target:a,proto:!0,forced:VT||w},oe);return p&&$[gA]!==R&&T5($,gA,R,{}),C5[a]=R,oe},EN=function(e,a){return{value:e,done:a}},pZ=J7.charAt,mZ=Qo,rB=qg,gZ=CN,O5=EN,iB="String Iterator",yZ=rB.set,bZ=rB.getterFor(iB);gZ(String,"String",function(e){yZ(this,{type:iB,string:mZ(e),index:0})},function(){var a=bZ(this),t=a.string,n=a.index,h;return n>=t.length?O5(void 0,!0):(h=pZ(t,n),a.index+=h.length,O5(h,!1))});var _Z=on,$5=xo,wZ=kN,nB=function(e,a,t){var n,h;$5(e);try{if(n=wZ(e,"return"),!n){if(a==="throw")throw t;return t}n=_Z(n,e)}catch(d){h=!0,n=d}if(a==="throw")throw t;if(h)throw n;return $5(n),t},kZ=xo,SZ=nB,xZ=function(e,a,t,n){try{return n?a(kZ(t)[0],t[1]):a(t)}catch(h){SZ(e,"throw",h)}},TZ=Or,CZ=Zg,EZ=TZ("iterator"),DZ=Array.prototype,aB=function(e){return e!==void 0&&(CZ.Array===e||DZ[EZ]===e)},OZ=Zt,$Z=si,ER=yN,PZ=OZ(Function.toString);$Z(ER.inspectSource)||(ER.inspectSource=function(e){return PZ(e)});var oB=ER.inspectSource,IZ=Zt,MZ=Yt,sB=si,AZ=Ah,RZ=ha,NZ=oB,lB=function(){},LZ=[],uB=RZ("Reflect","construct"),DN=/^\s*(?:class|function)\b/,FZ=IZ(DN.exec),jZ=!DN.test(lB),Ub=function(a){if(!sB(a))return!1;try{return uB(lB,LZ,a),!0}catch(t){return!1}},hB=function(a){if(!sB(a))return!1;switch(AZ(a)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jZ||!!FZ(DN,NZ(a))}catch(t){return!0}};hB.sham=!0;var VC=!uB||MZ(function(){var e;return Ub(Ub.call)||!Ub(Object)||!Ub(function(){e=!0})||e})?hB:Ub,YZ=WC,BZ=Ga,HZ=vp,Jg=function(e,a,t){var n=YZ(a);n in e?BZ.f(e,n,HZ(0,t)):e[n]=t},WZ=Ah,P5=kN,GZ=Wg,zZ=Zg,UZ=Or,VZ=UZ("iterator"),qC=function(e){if(!GZ(e))return P5(e,VZ)||P5(e,"@@iterator")||zZ[WZ(e)]},qZ=on,KZ=za,XZ=xo,ZZ=Vg,JZ=qC,QZ=TypeError,ON=function(e,a){var t=arguments.length<2?JZ(e):a;if(KZ(t))return XZ(qZ(t,e));throw new QZ(ZZ(e)+" is not iterable")},eJ=_d,tJ=on,rJ=ua,iJ=xZ,nJ=aB,aJ=VC,oJ=Ua,I5=Jg,sJ=ON,lJ=qC,M5=Array,uJ=function(a){var t=rJ(a),n=aJ(this),h=arguments.length,d=h>1?arguments[1]:void 0,p=d!==void 0;p&&(d=eJ(d,h>2?arguments[2]:void 0));var y=lJ(t),b=0,w,$,A,R,Y,V;if(y&&!(this===M5&&nJ(y)))for(R=sJ(t,y),Y=R.next,$=n?new this:[];!(A=tJ(Y,R)).done;b++)V=p?iJ(R,d,[A.value,b],!0):A.value,I5($,b,V);else for(w=oJ(t),$=n?new this(w):M5(w);w>b;b++)V=p?d(t[b],b):t[b],I5($,b,V);return $.length=b,$},hJ=Or,cB=hJ("iterator"),dB=!1;try{A5=0,yA={next:function(){return{done:!!A5++}},return:function(){dB=!0}},yA[cB]=function(){return this},Array.from(yA,function(){throw 2})}catch(e){}var A5,yA,fB=function(e,a){try{if(!a&&!dB)return!1}catch(h){return!1}var t=!1;try{var n={};n[cB]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch(h){}return t},cJ=He,dJ=uJ,fJ=fB,vJ=!fJ(function(e){Array.from(e)});cJ({target:"Array",stat:!0,forced:vJ},{from:dJ});var pJ=tr,mJ=pJ.Array.from,gJ=mJ,vB=gJ,yJ=vB,M_=Be(yJ),bJ=Qs,R5=Zg,pB=qg;Ga.f;var _J=CN,KT=EN,mB="Array Iterator",wJ=pB.set,kJ=pB.getterFor(mB);_J(Array,"Array",function(e,a){wJ(this,{type:mB,target:bJ(e),index:0,kind:a})},function(){var e=kJ(this),a=e.target,t=e.kind,n=e.index++;if(!a||n>=a.length)return e.target=void 0,KT(void 0,!0);switch(t){case"keys":return KT(n,!1);case"values":return KT(a[n],!1)}return KT([n,a[n]],!1)},"values");R5.Arguments=R5.Array;var SJ=qC,xJ=SJ,TJ={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},CJ=TJ,EJ=Dr,DJ=Ah,OJ=Rh,N5=Zg,$J=Or,L5=$J("toStringTag");for(ZT in CJ)bA=EJ[ZT],XT=bA&&bA.prototype,XT&&DJ(XT)!==L5&&OJ(XT,L5,ZT),N5[ZT]=N5.Array;var bA,XT,ZT,PJ=xJ,IJ=PJ,MJ=IJ,AJ=MJ,RJ=AJ,NJ=RJ,gB=NJ,yB=Be(gB),LJ=gB,A_=Be(LJ);function br(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}var bB={exports:{}},FJ=He,jJ=Xi,F5=Ga.f;FJ({target:"Object",stat:!0,forced:Object.defineProperty!==F5,sham:!jJ},{defineProperty:F5});var YJ=tr,_B=YJ.Object,BJ=bB.exports=function(a,t,n){return _B.defineProperty(a,t,n)};_B.defineProperty.sham&&(BJ.sham=!0);var HJ=bB.exports,WJ=HJ,wB=WJ,GJ=wB,zJ=GJ,UJ=zJ,VJ=UJ,kB=VJ,KC=Be(kB),qJ=Mh,wd=Array.isArray||function(a){return qJ(a)==="Array"},KJ=TypeError,XJ=9007199254740991,XC=function(e){if(e>XJ)throw KJ("Maximum allowed index exceeded");return e},j5=wd,ZJ=VC,JJ=an,QJ=Or,eQ=QJ("species"),Y5=Array,tQ=function(e){var a;return j5(e)&&(a=e.constructor,ZJ(a)&&(a===Y5||j5(a.prototype))?a=void 0:JJ(a)&&(a=a[eQ],a===null&&(a=void 0))),a===void 0?Y5:a},rQ=tQ,ZC=function(e,a){return new(rQ(e))(a===0?0:a)},iQ=Yt,nQ=Or,aQ=zg,oQ=nQ("species"),R_=function(e){return aQ>=51||!iQ(function(){var a=[],t=a.constructor={};return t[oQ]=function(){return{foo:1}},a[e](Boolean).foo!==1})},sQ=He,lQ=Yt,uQ=wd,hQ=an,cQ=ua,dQ=Ua,B5=XC,H5=Jg,fQ=ZC,vQ=R_,pQ=Or,mQ=zg,SB=pQ("isConcatSpreadable"),gQ=mQ>=51||!lQ(function(){var e=[];return e[SB]=!1,e.concat()[0]!==e}),yQ=function(e){if(!hQ(e))return!1;var a=e[SB];return a!==void 0?!!a:uQ(e)},bQ=!gQ||!vQ("concat");sQ({target:"Array",proto:!0,forced:bQ},{concat:function(a){var t=cQ(this),n=fQ(t,0),h=0,d,p,y,b,w;for(d=-1,y=arguments.length;dG;G++)if((y||G in Y)&&(ye=Y[G],pe=V(ye,G,R),e))if(a)ve[G]=pe;else if(pe)switch(e){case 3:return!0;case 5:return ye;case 6:return G;case 2:z5(ve,ye)}else switch(e){case 4:return!1;case 7:z5(ve,ye)}return d?-1:n||h?h:ve}},Nh={forEach:ep(0),map:ep(1),filter:ep(2),some:ep(3),every:ep(4),find:ep(5),findIndex:ep(6)},JC=He,QC=Dr,IN=on,UQ=Zt,Mg=Xi,Ag=Ug,VQ=Yt,nn=Ni,qQ=Cr,DR=xo,eE=Qs,MN=WC,KQ=Qo,OR=vp,c_=mp,DB=P_,XQ=N_,OB=$N,ZQ=L_,$B=pp,PB=Ga,JQ=UC,IB=D_,U5=Xg,QQ=PN,AN=Hg,e2=GC,MB=E_,V5=HC,t2=Or,r2=F_,i2=li,n2=EB,a2=gp,AB=qg,tE=Nh.forEach,Ba=e2("hidden"),rE="Symbol",d_="prototype",o2=AB.set,q5=AB.getterFor(rE),qs=Object[d_],ap=QC.Symbol,Qb=ap&&ap[d_],s2=QC.RangeError,l2=QC.TypeError,_A=QC.QObject,RB=$B.f,op=PB.f,NB=OB.f,u2=IB.f,LB=UQ([].push),Ph=AN("symbols"),j_=AN("op-symbols"),h2=AN("wks"),$R=!_A||!_A[d_]||!_A[d_].findChild,FB=function(e,a,t){var n=RB(qs,a);n&&delete qs[a],op(e,a,t),n&&e!==qs&&op(qs,a,n)},PR=Mg&&VQ(function(){return c_(op({},"a",{get:function(){return op(this,"a",{value:7}).a}})).a!==7})?FB:op,wA=function(e,a){var t=Ph[e]=c_(Qb);return o2(t,{type:rE,tag:e,description:a}),Mg||(t.description=a),t},iE=function(a,t,n){a===qs&&iE(j_,t,n),DR(a);var h=MN(t);return DR(n),nn(Ph,h)?(n.enumerable?(nn(a,Ba)&&a[Ba][h]&&(a[Ba][h]=!1),n=c_(n,{enumerable:OR(0,!1)})):(nn(a,Ba)||op(a,Ba,OR(1,{})),a[Ba][h]=!0),PR(a,h,n)):op(a,h,n)},RN=function(a,t){DR(a);var n=eE(t),h=DB(n).concat(HB(n));return tE(h,function(d){(!Mg||IN(jB,n,d))&&iE(a,d,n[d])}),a},c2=function(a,t){return t===void 0?c_(a):RN(c_(a),t)},jB=function(a){var t=MN(a),n=IN(u2,this,t);return this===qs&&nn(Ph,t)&&!nn(j_,t)?!1:n||!nn(this,t)||!nn(Ph,t)||nn(this,Ba)&&this[Ba][t]?n:!0},YB=function(a,t){var n=eE(a),h=MN(t);if(!(n===qs&&nn(Ph,h)&&!nn(j_,h))){var d=RB(n,h);return d&&nn(Ph,h)&&!(nn(n,Ba)&&n[Ba][h])&&(d.enumerable=!0),d}},BB=function(a){var t=NB(eE(a)),n=[];return tE(t,function(h){!nn(Ph,h)&&!nn(MB,h)&&LB(n,h)}),n},HB=function(e){var a=e===qs,t=NB(a?j_:eE(e)),n=[];return tE(t,function(h){nn(Ph,h)&&(!a||nn(qs,h))&&LB(n,Ph[h])}),n};Ag||(ap=function(){if(qQ(Qb,this))throw new l2("Symbol is not a constructor");var a=!arguments.length||arguments[0]===void 0?void 0:KQ(arguments[0]),t=V5(a),n=function(h){this===qs&&IN(n,j_,h),nn(this,Ba)&&nn(this[Ba],t)&&(this[Ba][t]=!1);var d=OR(1,h);try{PR(this,t,d)}catch(p){if(!(p instanceof s2))throw p;FB(this,t,d)}};return Mg&&$R&&PR(qs,t,{configurable:!0,set:n}),wA(t,a)},Qb=ap[d_],U5(Qb,"toString",function(){return q5(this).tag}),U5(ap,"withoutSetter",function(e){return wA(V5(e),e)}),IB.f=jB,PB.f=iE,JQ.f=RN,$B.f=YB,XQ.f=OB.f=BB,ZQ.f=HB,r2.f=function(e){return wA(t2(e),e)},Mg&&QQ(Qb,"description",{configurable:!0,get:function(){return q5(this).description}}));JC({global:!0,wrap:!0,forced:!Ag,sham:!Ag},{Symbol:ap});tE(DB(h2),function(e){i2(e)});JC({target:rE,stat:!0,forced:!Ag},{useSetter:function(){$R=!0},useSimple:function(){$R=!1}});JC({target:"Object",stat:!0,forced:!Ag,sham:!Mg},{create:c2,defineProperty:iE,defineProperties:RN,getOwnPropertyDescriptor:YB});JC({target:"Object",stat:!0,forced:!Ag},{getOwnPropertyNames:BB});n2();a2(ap,rE);MB[Ba]=!0;var d2=Ug,WB=d2&&!!Symbol.for&&!!Symbol.keyFor,f2=He,v2=ha,p2=Ni,m2=Qo,GB=Hg,g2=WB,kA=GB("string-to-symbol-registry"),y2=GB("symbol-to-string-registry");f2({target:"Symbol",stat:!0,forced:!g2},{for:function(e){var a=m2(e);if(p2(kA,a))return kA[a];var t=v2("Symbol")(a);return kA[a]=t,y2[t]=a,t}});var b2=He,_2=Ni,w2=C_,k2=Vg,S2=Hg,x2=WB,K5=S2("symbol-to-string-registry");b2({target:"Symbol",stat:!0,forced:!x2},{keyFor:function(a){if(!w2(a))throw new TypeError(k2(a)+" is not a symbol");if(_2(K5,a))return K5[a]}});var T2=Zt,Y_=T2([].slice),C2=Zt,X5=wd,E2=si,Z5=Mh,D2=Qo,J5=C2([].push),O2=function(e){if(E2(e))return e;if(X5(e)){for(var a=e.length,t=[],n=0;ne.length)&&(a=e.length);for(var t=0,n=new Array(a);t1?arguments[1]:void 0)}});var tie=Yr,rie=tie("Array").map,iie=Cr,nie=rie,OA=Array.prototype,aie=function(e){var a=e.map;return e===OA||iie(OA,e)&&a===OA.map?nie:a},oie=aie,sie=oie,lie=sie,xn=Be(lie),uie=He,hie=ua,dH=P_,cie=Yt,die=cie(function(){dH(1)});uie({target:"Object",stat:!0,forced:die},{keys:function(a){return dH(hie(a))}});var fie=tr,vie=fie.Object.keys,pie=vie,mie=pie,gie=mie,Ki=Be(gie),yie=He,bie=Zt,fH=Date,_ie=bie(fH.prototype.getTime);yie({target:"Date",stat:!0},{now:function(){return _ie(new fH)}});var wie=tr,kie=wie.Date.now,Sie=kie,xie=Sie,Tie=xie,bo=Be(Tie),vH=Zt,Cie=za,Eie=an,Die=Ni,vj=Y_,Oie=x_,pH=Function,$ie=vH([].concat),Pie=vH([].join),$A={},Iie=function(e,a,t){if(!Die($A,a)){for(var n=[],h=0;h1?arguments[1]:void 0)},Uie=He,mj=zie;Uie({target:"Array",proto:!0,forced:[].forEach!==mj},{forEach:mj});var Vie=Yr,qie=Vie("Array").forEach,Kie=qie,Xie=Kie,Zie=Ah,Jie=Ni,Qie=Cr,ene=Xie,IA=Array.prototype,tne={DOMTokenList:!0,NodeList:!0},yH=function(e){var a=e.forEach;return e===IA||Qie(IA,e)&&a===IA.forEach||Jie(tne,Zie(e))?ene:a},rne=yH,Tt=Be(rne),ine=He,nne=Zt,ane=wd,one=nne([].reverse),gj=[1,2];ine({target:"Array",proto:!0,forced:String(gj)===String(gj.reverse())},{reverse:function(){return ane(this)&&(this.length=this.length),one(this)}});var sne=Yr,lne=sne("Array").reverse,une=Cr,hne=lne,MA=Array.prototype,cne=function(e){var a=e.reverse;return e===MA||une(MA,e)&&a===MA.reverse?hne:a},dne=cne,bH=dne,fne=bH,vne=Be(fne),yj=Vg,pne=TypeError,_H=function(e,a){if(!delete e[a])throw new pne("Cannot delete property "+yj(a)+" of "+yj(e))},mne=He,gne=ua,yne=$_,bne=T_,_ne=Ua,wne=oH,kne=XC,Sne=ZC,xne=Jg,AA=_H,Tne=R_,Cne=Tne("splice"),Ene=Math.max,Dne=Math.min;mne({target:"Array",proto:!0,forced:!Cne},{splice:function(a,t){var n=gne(this),h=_ne(n),d=yne(a,h),p=arguments.length,y,b,w,$,A,R;for(p===0?y=b=0:p===1?(y=0,b=h-d):(y=p-2,b=Dne(Ene(bne(t),0),h-d)),kne(h+y-b),w=Sne(n,b),$=0;$h-b+y;$--)AA(n,$-1)}else if(y>b)for($=h-b;$>d;$--)A=$+b-1,R=$+y-1,A in n?n[R]=n[A]:AA(n,R);for($=0;$d;)for(var b=Wne(arguments[d++]),w=p?Gne(NA(b),p(b)):NA(b),$=w.length,A=0,R;$>A;)R=w[A++],(!bj||Fne(y,b,R))&&(n[R]=b[R]);return n}:gg,Une=He,wj=zne;Une({target:"Object",stat:!0,forced:Object.assign!==wj},{assign:wj});var Vne=tr,qne=Vne.Object.assign,Kne=qne,Xne=Kne,Zne=Xne,f_=Be(Zne),Jne=He,Qne=xN.includes,eae=Yt,tae=eae(function(){return!Array(1).includes()});Jne({target:"Array",proto:!0,forced:tae},{includes:function(a){return Qne(this,a,arguments.length>1?arguments[1]:void 0)}});var rae=Yr,iae=rae("Array").includes,nae=an,aae=Mh,oae=Or,sae=oae("match"),lae=function(e){var a;return nae(e)&&((a=e[sae])!==void 0?!!a:aae(e)==="RegExp")},uae=lae,hae=TypeError,cae=function(e){if(uae(e))throw new hae("The method doesn't accept regular expressions");return e},dae=Or,fae=dae("match"),vae=function(e){var a=/./;try{"/./"[e](a)}catch(t){try{return a[fae]=!1,"/./"[e](a)}catch(n){}}return!1},pae=He,mae=Zt,gae=cae,yae=Gg,kj=Qo,bae=vae,_ae=mae("".indexOf);pae({target:"String",proto:!0,forced:!bae("includes")},{includes:function(a){return!!~_ae(kj(yae(this)),kj(gae(a)),arguments.length>1?arguments[1]:void 0)}});var wae=Yr,kae=wae("String").includes,Sj=Cr,Sae=iae,xae=kae,LA=Array.prototype,FA=String.prototype,Tae=function(e){var a=e.includes;return e===LA||Sj(LA,e)&&a===LA.includes?Sae:typeof e=="string"||e===FA||Sj(FA,e)&&a===FA.includes?xae:a},Cae=Tae,Eae=Cae,Dae=Eae,Rg=Be(Dae),Oae=He,$ae=Yt,Pae=ua,wH=I_,Iae=J6,Mae=$ae(function(){wH(1)});Oae({target:"Object",stat:!0,forced:Mae,sham:!Iae},{getPrototypeOf:function(a){return wH(Pae(a))}});var Aae=tr,Rae=Aae.Object.getPrototypeOf,Nae=Rae,kH=Nae,Lae=kH,xj=Be(Lae),Fae=He,jae=Nh.filter,Yae=R_,Bae=Yae("filter");Fae({target:"Array",proto:!0,forced:!Bae},{filter:function(a){return jae(this,a,arguments.length>1?arguments[1]:void 0)}});var Hae=Yr,Wae=Hae("Array").filter,Gae=Cr,zae=Wae,jA=Array.prototype,Uae=function(e){var a=e.filter;return e===jA||Gae(jA,e)&&a===jA.filter?zae:a},Vae=Uae,qae=Vae,Kae=qae,Rt=Be(Kae),SH=Xi,Xae=Yt,xH=Zt,Zae=I_,Jae=P_,Qae=Qs,eoe=D_.f,TH=xH(eoe),toe=xH([].push),roe=SH&&Xae(function(){var e=Object.create(null);return e[2]=2,!TH(e,2)}),Tj=function(e){return function(a){for(var t=Qae(a),n=Jae(t),h=roe&&Zae(t)===null,d=n.length,p=0,y=[],b;d>p;)b=n[p++],(!SH||(h?b in t:TH(t,b)))&&toe(y,e?[b,t[b]]:t[b]);return y}},CH={entries:Tj(!0),values:Tj(!1)},ioe=He,noe=CH.values;ioe({target:"Object",stat:!0},{values:function(a){return noe(a)}});var aoe=tr,ooe=aoe.Object.values,soe=ooe,loe=soe,uoe=loe,EH=Be(uoe),jN=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,hoe=Zt,coe=Gg,doe=Qo,MR=jN,Cj=hoe("".replace),foe=RegExp("^["+MR+"]+"),voe=RegExp("(^|[^"+MR+"])["+MR+"]+$"),poe=function(e){return function(a){var t=doe(coe(a));return e&1&&(t=Cj(t,foe,"")),e&2&&(t=Cj(t,voe,"$1")),t}},DH={trim:poe(3)},OH=Dr,moe=Yt,goe=Zt,yoe=Qo,boe=DH.trim,Ej=jN,t_=OH.parseInt,Dj=OH.Symbol,Oj=Dj&&Dj.iterator,$H=/^[+-]?0x/i,_oe=goe($H.exec),woe=t_(Ej+"08")!==8||t_(Ej+"0x16")!==22||Oj&&!moe(function(){t_(Object(Oj))}),koe=woe?function(a,t){var n=boe(yoe(a));return t_(n,t>>>0||(_oe($H,n)?16:10))}:t_,Soe=He,$j=koe;Soe({global:!0,forced:parseInt!==$j},{parseInt:$j});var xoe=tr,Toe=xoe.parseInt,Coe=Toe,Eoe=Coe,Doe=Eoe,Vs=Be(Doe),Ooe=He,$oe=SN,Poe=xN.indexOf,Ioe=ey,AR=$oe([].indexOf),PH=!!AR&&1/AR([1],1,-0)<0,Moe=PH||!Ioe("indexOf");Ooe({target:"Array",proto:!0,forced:Moe},{indexOf:function(a){var t=arguments.length>1?arguments[1]:void 0;return PH?AR(this,a,t)||0:Poe(this,a,t)}});var Aoe=Yr,Roe=Aoe("Array").indexOf,Noe=Cr,Loe=Roe,YA=Array.prototype,Foe=function(e){var a=e.indexOf;return e===YA||Noe(YA,e)&&a===YA.indexOf?Loe:a},joe=Foe,Yoe=joe,Boe=Yoe,oi=Be(Boe),Hoe=He,Woe=CH.entries;Hoe({target:"Object",stat:!0},{entries:function(a){return Woe(a)}});var Goe=tr,zoe=Goe.Object.entries,Uoe=zoe,Voe=Uoe,qoe=Voe,Koe=Be(qoe),Xoe=He,Zoe=Xi,Joe=mp;Xoe({target:"Object",stat:!0,sham:!Zoe},{create:Joe});var Qoe=tr,ese=Qoe.Object,tse=function(a,t){return ese.create(a,t)},rse=tse,IH=rse,ise=IH,nE=Be(ise),RR=tr,nse=Kg;RR.JSON||(RR.JSON={stringify:JSON.stringify});var ase=function(a,t,n){return nse(RR.JSON.stringify,null,arguments)},ose=ase,sse=ose,lse=sse,Ha=Be(lse),use=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",hse=TypeError,MH=function(e,a){if(et,p=dse(n)?n:gse(n),y=d?pse(arguments,t):[],b=d?function(){cse(p,this,y)}:p;return a?e(b,h):e(b)}:e},bse=He,NH=Dr,_se=RH,Pj=_se(NH.setInterval,!0);bse({global:!0,bind:!0,forced:NH.setInterval!==Pj},{setInterval:Pj});var wse=He,LH=Dr,kse=RH,Ij=kse(LH.setTimeout,!0);wse({global:!0,bind:!0,forced:LH.setTimeout!==Ij},{setTimeout:Ij});var Sse=tr,xse=Sse.setTimeout,Tse=xse,Zo=Be(Tse),Cse=ua,Mj=$_,Ese=Ua,Dse=function(a){for(var t=Cse(this),n=Ese(t),h=arguments.length,d=Mj(h>1?arguments[1]:void 0,n),p=h>2?arguments[2]:void 0,y=p===void 0?n:Mj(p,n);y>d;)t[d++]=a;return t},Ose=He,$se=Dse;Ose({target:"Array",proto:!0},{fill:$se});var Pse=Yr,Ise=Pse("Array").fill,Mse=Cr,Ase=Ise,BA=Array.prototype,Rse=function(e){var a=e.fill;return e===BA||Mse(BA,e)&&a===BA.fill?Ase:a},Nse=Rse,Lse=Nse,Fse=Lse,FH=Be(Fse),jH={exports:{}};(function(e){e.exports=a;function a(n){if(n)return t(n)}function t(n){for(var h in a.prototype)n[h]=a.prototype[h];return n}a.prototype.on=a.prototype.addEventListener=function(n,h){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(h),this},a.prototype.once=function(n,h){function d(){this.off(n,d),h.apply(this,arguments)}return d.fn=h,this.on(n,d),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(n,h){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var d=this._callbacks["$"+n];if(!d)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var p,y=0;y-1}function Kse(e){if(np(e,sp))return sp;var a=np(e,v_),t=np(e,p_);return a&&t?sp:a||t?a?v_:p_:np(e,LR)?LR:WH}var VH=function(){function e(t,n){this.manager=t,this.set(n)}var a=e.prototype;return a.set=function(n){n===HH&&(n=this.compute()),BH&&this.manager.element.style&&tC[n]&&(this.manager.element.style[YH]=n),this.actions=n.toLowerCase().trim()},a.update=function(){this.set(this.manager.options.touchAction)},a.compute=function(){var n=[];return Oh(this.manager.recognizers,function(h){oE(h.options.enable,[h])&&(n=n.concat(h.getTouchAction()))}),Kse(n.join(" "))},a.preventDefaults=function(n){var h=n.srcEvent,d=n.offsetDirection;if(this.manager.session.prevented){h.preventDefault();return}var p=this.actions,y=np(p,sp)&&!tC[sp],b=np(p,p_)&&!tC[p_],w=np(p,v_)&&!tC[v_];if(y){var $=n.pointers.length===1,A=n.distance<2,R=n.deltaTime<250;if($&&A&&R)return}if(!(w&&b)&&(y||b&&d&tu||w&&d&lp))return this.preventSrc(h)},a.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},e}();function WN(e,a){for(;e;){if(e===a)return!0;e=e.parentNode}return!1}function qH(e){var a=e.length;if(a===1)return{x:Cg(e[0].clientX),y:Cg(e[0].clientY)};for(var t=0,n=0,h=0;h=hp(a)?e<0?W_:G_:a<0?z_:Ng}function Xse(e,a){var t=a.center,n=e.offsetDelta||{},h=e.prevDelta||{},d=e.prevInput||{};(a.eventType===la||d.eventType===Ai)&&(h=e.prevDelta={x:d.deltaX||0,y:d.deltaY||0},n=e.offsetDelta={x:t.x,y:t.y}),a.deltaX=h.x+(t.x-n.x),a.deltaY=h.y+(t.y-n.y)}function XH(e,a,t){return{x:a/e||0,y:t/e||0}}function Zse(e,a){return CC(a[0],a[1],TC)/CC(e[0],e[1],TC)}function Jse(e,a){return FR(a[1],a[0],TC)+FR(e[1],e[0],TC)}function Qse(e,a){var t=e.lastInterval||a,n=a.timeStamp-t.timeStamp,h,d,p,y;if(a.eventType!==Wa&&(n>qse||t.velocity===void 0)){var b=a.deltaX-t.deltaX,w=a.deltaY-t.deltaY,$=XH(n,b,w);d=$.x,p=$.y,h=hp($.x)>hp($.y)?$.x:$.y,y=KH(b,w),e.lastInterval=a}else h=t.velocity,d=t.velocityX,p=t.velocityY,y=t.direction;a.velocity=h,a.velocityX=d,a.velocityY=p,a.direction=y}function ele(e,a){var t=e.session,n=a.pointers,h=n.length;t.firstInput||(t.firstInput=Rj(a)),h>1&&!t.firstMultiple?t.firstMultiple=Rj(a):h===1&&(t.firstMultiple=!1);var d=t.firstInput,p=t.firstMultiple,y=p?p.center:d.center,b=a.center=qH(n);a.timeStamp=BN(),a.deltaTime=a.timeStamp-d.timeStamp,a.angle=FR(y,b),a.distance=CC(y,b),Xse(t,a),a.offsetDirection=KH(a.deltaX,a.deltaY);var w=XH(a.deltaTime,a.deltaX,a.deltaY);a.overallVelocityX=w.x,a.overallVelocityY=w.y,a.overallVelocity=hp(w.x)>hp(w.y)?w.x:w.y,a.scale=p?Zse(p.pointers,n):1,a.rotation=p?Jse(p.pointers,n):0,a.maxPointers=t.prevInput?a.pointers.length>t.prevInput.maxPointers?a.pointers.length:t.prevInput.maxPointers:a.pointers.length,Qse(t,a);var $=e.element,A=a.srcEvent,R;A.composedPath?R=A.composedPath()[0]:A.path?R=A.path[0]:R=A.target,WN(R,$)&&($=R),a.target=$}function tle(e,a,t){var n=t.pointers.length,h=t.changedPointers.length,d=a&la&&n-h===0,p=a&(Ai|Wa)&&n-h===0;t.isFirst=!!d,t.isFinal=!!p,d&&(e.session={}),t.eventType=a,ele(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function m_(e){return e.trim().split(/\s+/g)}function r_(e,a,t){Oh(m_(a),function(n){e.addEventListener(n,t,!1)})}function i_(e,a,t){Oh(m_(a),function(n){e.removeEventListener(n,t,!1)})}function Nj(e){var a=e.ownerDocument||e;return a.defaultView||a.parentWindow||window}var ty=function(){function e(t,n){var h=this;this.manager=t,this.callback=n,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(d){oE(t.options.enable,[t])&&h.handler(d)},this.init()}var a=e.prototype;return a.handler=function(){},a.init=function(){this.evEl&&r_(this.element,this.evEl,this.domHandler),this.evTarget&&r_(this.target,this.evTarget,this.domHandler),this.evWin&&r_(Nj(this.element),this.evWin,this.domHandler)},a.destroy=function(){this.evEl&&i_(this.element,this.evEl,this.domHandler),this.evTarget&&i_(this.target,this.evTarget,this.domHandler),this.evWin&&i_(Nj(this.element),this.evWin,this.domHandler)},e}();function cp(e,a,t){if(e.indexOf&&!t)return e.indexOf(a);for(var n=0;nb[a]}):n=n.sort()),n}var nle={touchstart:la,touchmove:yp,touchend:Ai,touchcancel:Wa},ale="touchstart touchmove touchend touchcancel",zN=function(e){es(a,e);function a(){var n;return a.prototype.evTarget=ale,n=e.apply(this,arguments)||this,n.targetIds={},n}var t=a.prototype;return t.handler=function(h){var d=nle[h.type],p=ole.call(this,h,d);p&&this.callback(this.manager,d,{pointers:p[0],changedPointers:p[1],pointerType:H_,srcEvent:h})},a}(ty);function ole(e,a){var t=g_(e.touches),n=this.targetIds;if(a&(la|yp)&&t.length===1)return n[t[0].identifier]=!0,[t,t];var h,d,p=g_(e.changedTouches),y=[],b=this.target;if(d=t.filter(function(w){return WN(w.target,b)}),a===la)for(h=0;h-1&&h.splice(y,1)};setTimeout(d,hle)}}function cle(e,a){e&la?(this.primaryTouch=a.changedPointers[0].identifier,Fj.call(this,a)):e&(Ai|Wa)&&Fj.call(this,a)}function dle(e){for(var a=e.srcEvent.clientX,t=e.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(h,1),this},a.hasRequireFailures=function(){return this.requireFail.length>0},a.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},a.emit=function(n){var h=this,d=this.state;function p(y){h.manager.emit(y,n)}d=gd&&p(h.options.event+jj(d))},a.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=Jl},a.canEmit=function(){for(var n=0;nd.threshold&&b&d.direction},t.attrTest=function(h){return Fg.prototype.attrTest.call(this,h)&&(this.state&Jo||!(this.state&Jo)&&this.directionTest(h))},t.emit=function(h){this.pX=h.deltaX,this.pY=h.deltaY;var d=t8(h.direction);d&&(h.additionalEvent=this.options.event+d),e.prototype.emit.call(this,h)},a}(Fg),r8=function(e){es(a,e);function a(n){return n===void 0&&(n={}),e.call(this,Zs({event:"swipe",threshold:10,velocity:.3,direction:tu|lp,pointers:1},n))||this}var t=a.prototype;return t.getTouchAction=function(){return VN.prototype.getTouchAction.call(this)},t.attrTest=function(h){var d=this.options.direction,p;return d&(tu|lp)?p=h.overallVelocity:d&tu?p=h.overallVelocityX:d&lp&&(p=h.overallVelocityY),e.prototype.attrTest.call(this,h)&&d&h.offsetDirection&&h.distance>this.options.threshold&&h.maxPointers===this.options.pointers&&hp(p)>this.options.velocity&&h.eventType&Ai},t.emit=function(h){var d=t8(h.offsetDirection);d&&this.manager.emit(this.options.event+d,h),this.manager.emit(this.options.event,h)},a}(Fg),i8=function(e){es(a,e);function a(n){return n===void 0&&(n={}),e.call(this,Zs({event:"pinch",threshold:0,pointers:2},n))||this}var t=a.prototype;return t.getTouchAction=function(){return[sp]},t.attrTest=function(h){return e.prototype.attrTest.call(this,h)&&(Math.abs(h.scale-1)>this.options.threshold||this.state&Jo)},t.emit=function(h){if(h.scale!==1){var d=h.scale<1?"in":"out";h.additionalEvent=this.options.event+d}e.prototype.emit.call(this,h)},a}(Fg),n8=function(e){es(a,e);function a(n){return n===void 0&&(n={}),e.call(this,Zs({event:"rotate",threshold:0,pointers:2},n))||this}var t=a.prototype;return t.getTouchAction=function(){return[sp]},t.attrTest=function(h){return e.prototype.attrTest.call(this,h)&&(Math.abs(h.rotation)>this.options.threshold||this.state&Jo)},a}(Fg),a8=function(e){es(a,e);function a(n){var h;return n===void 0&&(n={}),h=e.call(this,Zs({event:"press",pointers:1,time:251,threshold:9},n))||this,h._timer=null,h._input=null,h}var t=a.prototype;return t.getTouchAction=function(){return[WH]},t.process=function(h){var d=this,p=this.options,y=h.pointers.length===p.pointers,b=h.distancep.time;if(this._input=h,!b||!y||h.eventType&(Ai|Wa)&&!w)this.reset();else if(h.eventType&la)this.reset(),this._timer=setTimeout(function(){d.state=$h,d.tryEmit()},p.time);else if(h.eventType&Ai)return $h;return Jl},t.reset=function(){clearTimeout(this._timer)},t.emit=function(h){this.state===$h&&(h&&h.eventType&Ai?this.manager.emit(this.options.event+"up",h):(this._input.timeStamp=BN(),this.manager.emit(this.options.event,this._input)))},a}(U_),o8={domEvents:!1,touchAction:HH,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Yj=[[n8,{enable:!1}],[i8,{enable:!1},["rotate"]],[r8,{direction:tu}],[VN,{direction:tu},["swipe"]],[jR],[jR,{event:"doubletap",taps:2},["tap"]],[a8]],mle=1,Bj=2;function Hj(e,a){var t=e.element;if(t.style){var n;Oh(e.options.cssProps,function(h,d){n=aE(t.style,d),a?(e.oldCssProps[n]=t.style[n],t.style[n]=h):t.style[n]=e.oldCssProps[n]||""}),a||(e.oldCssProps={})}}function gle(e,a){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=a,a.target.dispatchEvent(t)}var Wj=function(){function e(t,n){var h=this;this.options=up({},o8,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=fle(this),this.touchAction=new VH(this,this.options.touchAction),Hj(this,!0),Oh(this.options.recognizers,function(d){var p=h.add(new d[0](d[1]));d[2]&&p.recognizeWith(d[2]),d[3]&&p.requireFailure(d[3])},this)}var a=e.prototype;return a.set=function(n){return up(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},a.stop=function(n){this.session.stopped=n?Bj:mle},a.recognize=function(n){var h=this.session;if(!h.stopped){this.touchAction.preventDefaults(n);var d,p=this.recognizers,y=h.curRecognizer;(!y||y&&y.state&$h)&&(h.curRecognizer=null,y=null);for(var b=0;b\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",p=window.console&&(window.console.warn||window.console.log);return p&&p.call(window.console,n,d),e.apply(this,arguments)}}var l8=s8(function(e,a,t){for(var n=Object.keys(a),h=0;h=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function Tle(e,a){var t;if(e){if(typeof e=="string")return zj(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zj(e,a)}}function zj(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t1?t-1:0),h=1;h2){var n;return EC.apply(void 0,Cn(n=[XN(a[0],a[1])]).call(n,Pi(To(a).call(a,2))))}var h=a[0],d=a[1];if(h instanceof Date&&d instanceof Date)return h.setTime(d.getTime()),h;var p=qN(Kre(d)),y;try{for(p.s();!(y=p.n()).done;){var b=y.value;Object.prototype.propertyIsEnumerable.call(d,b)&&(d[b]===KN?delete h[b]:h[b]!==null&&d[b]!==null&&bt(h[b])==="object"&&bt(d[b])==="object"&&!Ot(h[b])&&!Ot(d[b])?h[b]=EC(h[b],d[b]):h[b]=d8(d[b]))}}catch(w){p.e(w)}finally{p.f()}return h}function d8(e){return Ot(e)?xn(e).call(e,function(a){return d8(a)}):bt(e)==="object"&&e!==null?e instanceof Date?new Date(e.getTime()):EC({},e):e}function f8(e){for(var a=0,t=Ki(e);a>>0,h-=e,h*=e,e=h>>>0,h-=e,e+=h*4294967296}return(e>>>0)*23283064365386963e-26}}function $le(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var ZN=typeof window!="undefined"?window.Hammer||h8:function(){return $le()};function Ql(e){var a=this,t;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){a._dom.overlay.parentNode.removeChild(a._dom.overlay)});var n=ZN(this._dom.overlay);n.on("tap",Ee(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){n.destroy()});var h=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Tt(h).call(h,function(d){n.on(d,function(p){p.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(d){Ple(d.target,e)||a.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",a._onClick)})),this._escListener=function(d){("key"in d?d.key==="Escape":d.keyCode===27)&&a.deactivate()}}YN(Ql.prototype);Ql.current=null;Ql.prototype.destroy=function(){var e,a;this.deactivate();var t=qN(vne(e=Ks(a=this._cleanupQueue).call(a,0)).call(e)),n;try{for(t.s();!(n=t.n()).done;){var h=n.value;h()}}catch(d){t.e(d)}finally{t.f()}};Ql.prototype.activate=function(){Ql.current&&Ql.current.deactivate(),Ql.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)};Ql.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")};Ql.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function Ple(e,a){for(;e;){if(e===a)return!0;e=e.parentNode}return!1}var Ile=/^\/?Date\((-?\d+)/i,Mle=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ale=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Rle=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Nle=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function n_(e){return e instanceof Number||typeof e=="number"}function v8(e){if(e)for(;e.hasChildNodes()===!0;){var a=e.firstChild;a&&(v8(a),e.removeChild(a))}}function _o(e){return e instanceof String||typeof e=="string"}function YR(e){return bt(e)==="object"&&e!==null}function Lle(e){if(e instanceof Date)return!0;if(_o(e)){var a=Ile.exec(e);if(a)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function dp(e,a,t,n){var h=!1;n===!0&&(h=a[t]===null&&e[t]!==void 0),h?delete e[t]:e[t]=a[t]}function p8(e,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var n in e)if(a[n]!==void 0)if(a[n]===null||bt(a[n])!=="object")dp(e,a,n,t);else{var h=e[n],d=a[n];YR(h)&&YR(d)&&p8(h,d,t)}}var Fle=f_;function jle(e,a){if(!Ot(e))throw new Error("Array with property names expected as first argument");for(var t=arguments.length,n=new Array(t>2?t-2:0),h=2;h3&&arguments[3]!==void 0?arguments[3]:!1;if(Ot(t))throw new TypeError("Arrays are not supported by deepExtend");for(var h=0;h3&&arguments[3]!==void 0?arguments[3]:!1;if(Ot(t))throw new TypeError("Arrays are not supported by deepExtend");for(var h in t)if(Object.prototype.hasOwnProperty.call(t,h)&&!Rg(e).call(e,h))if(t[h]&&t[h].constructor===Object)a[h]===void 0&&(a[h]={}),a[h].constructor===Object?b_(a[h],t[h]):dp(a,t,h,n);else if(Ot(t[h])){a[h]=[];for(var d=0;d2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var h in a)if(Object.prototype.hasOwnProperty.call(a,h)||t===!0)if(bt(a[h])==="object"&&a[h]!==null&&xj(a[h])===Object.prototype)e[h]===void 0?e[h]=b_({},a[h],t):bt(e[h])==="object"&&e[h]!==null&&xj(e[h])===Object.prototype?b_(e[h],a[h],t):dp(e,a,h,n);else if(Ot(a[h])){var d;e[h]=To(d=a[h]).call(d)}else dp(e,a,h,n);return e}function Hle(e,a){if(e.length!==a.length)return!1;for(var t=0,n=e.length;t0&&arguments[0]!==void 0?arguments[0]:window.event,a=null;return e&&(e.target?a=e.target:e.srcElement&&(a=e.srcElement)),!(a instanceof Element)||a.nodeType!=null&&a.nodeType==3&&(a=a.parentNode,!(a instanceof Element))?null:a}function eue(e,a){for(var t=e;t;){if(t===a)return!0;if(t.parentNode)t=t.parentNode;else return!1}return!1}var tue={asBoolean:function(a,t){return typeof a=="function"&&(a=a()),a!=null?a!=!1:t||null},asNumber:function(a,t){return typeof a=="function"&&(a=a()),a!=null?Number(a)||t||null:t||null},asString:function(a,t){return typeof a=="function"&&(a=a()),a!=null?String(a):t||null},asSize:function(a,t){return typeof a=="function"&&(a=a()),_o(a)?a:n_(a)?a+"px":t||null},asElement:function(a,t){return typeof a=="function"&&(a=a()),a||t||null}};function sE(e){var a;switch(e.length){case 3:case 4:return a=Ale.exec(e),a?{r:Vs(a[1]+a[1],16),g:Vs(a[2]+a[2],16),b:Vs(a[3]+a[3],16)}:null;case 6:case 7:return a=Mle.exec(e),a?{r:Vs(a[1],16),g:Vs(a[2],16),b:Vs(a[3],16)}:null;default:return null}}function rue(e,a){if(Rg(e).call(e,"rgba"))return e;if(Rg(e).call(e,"rgb")){var t=e.substr(oi(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+a+")"}else{var n=sE(e);return n==null?e:"rgba("+n.r+","+n.g+","+n.b+","+a+")"}}function JN(e,a,t){var n;return"#"+To(n=((1<<24)+(e<<16)+(a<<8)+t).toString(16)).call(n,1)}function iue(e,a){if(_o(e)){var t=e;if(eL(t)){var n,h=xn(n=t.substr(4).substr(0,t.length-5).split(",")).call(n,function(R){return Vs(R)});t=JN(h[0],h[1],h[2])}if(QN(t)===!0){var d=y8(t),p={h:d.h,s:d.s*.8,v:Math.min(1,d.v*1.02)},y={h:d.h,s:Math.min(1,d.s*1.25),v:d.v*.8},b=BR(y.h,y.s,y.v),w=BR(p.h,p.s,p.v);return{background:t,border:b,highlight:{background:w,border:b},hover:{background:w,border:b}}}else return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else if(a){var $={background:e.background||a.background,border:e.border||a.border,highlight:_o(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||a.highlight.background,border:e.highlight&&e.highlight.border||a.highlight.border},hover:_o(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||a.hover.border,background:e.hover&&e.hover.background||a.hover.background}};return $}else{var A={background:e.background||void 0,border:e.border||void 0,highlight:_o(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:_o(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}};return A}}function Dg(e,a,t){e=e/255,a=a/255,t=t/255;var n=Math.min(e,Math.min(a,t)),h=Math.max(e,Math.max(a,t));if(n===h)return{h:0,s:0,v:n};var d=e===n?a-t:t===n?e-a:t-e,p=e===n?3:t===n?1:5,y=60*(p-d/(h-n))/360,b=(h-n)/h,w=h;return{h:y,s:b,v:w}}function g8(e){var a=document.createElement("div"),t={};a.style.cssText=e;for(var n=0;n0&&a(n,e[h-1])<0;h--)e[h]=e[h-1];e[h]=n}return e}function lue(e,a,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=function(V){return V!=null},d=function(V){return V!==null&&bt(V)==="object"},p=function(V){for(var oe in V)if(Object.prototype.hasOwnProperty.call(V,oe))return!1;return!0};if(!d(e))throw new Error("Parameter mergeTarget must be an object");if(!d(a))throw new Error("Parameter options must be an object");if(!h(t))throw new Error("Parameter option must have a value");if(!d(n))throw new Error("Parameter globalOptions must be an object");var y=function(V,oe,G){d(V[G])||(V[G]={});var ae=oe[G],ve=V[G];for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&(ve[ye]=ae[ye])},b=a[t],w=d(n)&&!p(n),$=w?n[t]:void 0,A=$?$.enabled:void 0;if(b!==void 0){if(typeof b=="boolean"){d(e[t])||(e[t]={}),e[t].enabled=b;return}if(b===null&&!d(e[t]))if(h($))e[t]=nE($);else return;if(d(b)){var R=!0;b.enabled!==void 0?R=b.enabled:A!==void 0&&(R=$.enabled),y(e,a,t),e[t].enabled=R}}}function uue(e,a,t,n){for(var h=1e4,d=0,p=0,y=e.length-1;p<=y&&d0)return n=="before"?Math.max(0,R-1):R;if(h($,a)<0&&h(A,a)>0)return n=="before"?R:Math.min(e.length-1,R+1);h($,a)<0?y=R+1:b=R-1,p++}return-1}var cue={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return a*(2-a)},easeInOutQuad:function(a){return a<.5?2*a*a:-1+(4-2*a)*a},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return--a*a*a+1},easeInOutCubic:function(a){return a<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return 1- --a*a*a*a},easeInOutQuart:function(a){return a<.5?8*a*a*a*a:1-8*--a*a*a*a},easeInQuint:function(a){return a*a*a*a*a},easeOutQuint:function(a){return 1+--a*a*a*a*a},easeInOutQuint:function(a){return a<.5?16*a*a*a*a*a:1+16*--a*a*a*a*a}};function due(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var a=document.createElement("div");a.style.position="absolute",a.style.top="0px",a.style.left="0px",a.style.visibility="hidden",a.style.width="200px",a.style.height="150px",a.style.overflow="hidden",a.appendChild(e),document.body.appendChild(a);var t=e.offsetWidth;a.style.overflow="scroll";var n=e.offsetWidth;return t==n&&(n=a.clientWidth),document.body.removeChild(a),t-n}function fue(e,a){var t;Ot(a)||(a=[a]);var n=qN(e),h;try{for(n.s();!(h=n.n()).done;){var d=h.value;if(d){t=d[a[0]];for(var p=1;p0&&arguments[0]!==void 0?arguments[0]:1;br(this,e),this.pixelRatio=a,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},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 _r(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(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(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return vue[t]}},{key:"setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var h,d=this._isColorString(t);if(d!==void 0&&(t=d),_o(t)===!0){if(eL(t)===!0){var p=t.substr(4).substr(0,t.length-5).split(",");h={r:p[0],g:p[1],b:p[2],a:1}}else if(b8(t)===!0){var y=t.substr(5).substr(0,t.length-6).split(",");h={r:y[0],g:y[1],b:y[2],a:y[3]}}else if(QN(t)===!0){var b=sE(t);h={r:b.r,g:b.g,b:b.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var w=t.a!==void 0?t.a:"1.0";h={r:t.r,g:t.g,b:t.b,a:w}}if(h===void 0)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: "+Ha(t));this._setColor(h,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=f_({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Zo(function(){t.closeCallback!==void 0&&(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(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=f_({},t)),this.color=t;var h=Dg(t.r,t.g,t.b),d=2*Math.PI,p=this.r*h.s,y=this.centerCoordinates.x+p*Math.sin(d*h.h),b=this.centerCoordinates.y+p*Math.cos(d*h.h);this.colorPickerSelector.style.left=y-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=b-.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 n=Dg(this.color.r,this.color.g,this.color.b);n.v=t/100;var h=a_(n.h,n.s,n.v);h.a=this.color.a,this.color=h,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=Dg(t.r,t.g,t.b),h=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(h.webkitBackingStorePixelRatio||h.mozBackingStorePixelRatio||h.msBackingStorePixelRatio||h.oBackingStorePixelRatio||h.backingStorePixelRatio||1)),h.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var d=this.colorPickerCanvas.clientWidth,p=this.colorPickerCanvas.clientHeight;h.clearRect(0,0,d,p),h.putImageData(this.hueCircle,0,0),h.fillStyle="rgba(0,0,0,"+(1-n.v)+")",h.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),FH(h).call(h),this.brightnessRange.value=100*n.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,n,h,d;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 y=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(y.webkitBackingStorePixelRatio||y.mozBackingStorePixelRatio||y.msBackingStorePixelRatio||y.oBackingStorePixelRatio||y.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var p=document.createElement("DIV");p.style.color="red",p.style.fontWeight="bold",p.style.padding="10px",p.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(p)}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(w){}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(w){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var b=this;this.opacityRange.onchange=function(){b._setOpacity(this.value)},this.opacityRange.oninput=function(){b._setOpacity(this.value)},this.brightnessRange.onchange=function(){b._setBrightness(this.value)},this.brightnessRange.oninput=function(){b._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=Ee(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=Ee(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Ee(h=this._save).call(h,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Ee(d=this._loadLast).call(d,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 ZN(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&t._moveSelector(n)}),this.hammer.on("tap",function(n){t._moveSelector(n)}),this.hammer.on("panstart",function(n){t._moveSelector(n)}),this.hammer.on("panmove",function(n){t._moveSelector(n)}),this.hammer.on("panend",function(n){t._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(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 n=this.colorPickerCanvas.clientWidth,h=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,n,h);var d,p,y,b;this.centerCoordinates={x:n*.5,y:h*.5},this.r=.49*n;var w=2*Math.PI/360,$=1/360,A=1/this.r,R;for(y=0;y<360;y++)for(b=0;b3&&arguments[3]!==void 0?arguments[3]:1,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};br(this,e),this.parent=a,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=d,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},f_(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new _8(h),this.wrapper=void 0}return _r(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof t=="string")this.options.filter=t;else if(Ot(t))this.options.filter=t.join();else if(bt(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),Rt(t)!==void 0&&(this.options.filter=Rt(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(n=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,n=t):typeof t=="function"&&(this.options.filter=t,n=!0);Rt(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Rt(this.options),n=0,h=!1;for(var d in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,d)&&(this.allowCreation=!1,h=!1,typeof t=="function"?(h=t(d,[]),h=h||this._handleObject(this.configureOptions[d],[d],!0)):(t===!0||oi(t).call(t,d)!==-1)&&(h=!0),h!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(d),this._handleObject(this.configureOptions[d],[d])),n++);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?h-1:0),p=1;p2&&arguments[2]!==void 0?arguments[2]:!1,d=document.createElement("div");if(d.className="vis-configuration vis-config-label vis-config-s"+n.length,h===!0){for(;d.firstChild;)d.removeChild(d.firstChild);d.appendChild(HR("i","b",t))}else d.innerText=t+":";return d}},{key:"_makeDropdown",value:function(t,n,h){var d=document.createElement("select");d.className="vis-configuration vis-config-select";var p=0;n!==void 0&&oi(t).call(t,n)!==-1&&(p=oi(t).call(t,n));for(var y=0;yy&&y!==1&&(w.max=Math.ceil(n*R),A=w.max,$="range increased"),w.value=n}else w.value=d;var Y=document.createElement("input");Y.className="vis-configuration vis-config-rangeinput",Y.value=w.value;var V=this;w.onchange=function(){Y.value=this.value,V._update(Number(this.value),h)},w.oninput=function(){Y.value=this.value};var oe=this._makeLabel(h[h.length-1],h),G=this._makeItem(h,oe,w,Y);$!==""&&this.popupHistory[G]!==A&&(this.popupHistory[G]=A,this._setupPopup($,G))}},{key:"_makeButton",value:function(){var t=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){t._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.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(n)}}},{key:"_setupPopup",value:function(t,n){var h=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=!1,p=Rt(this.options),y=!1;for(var b in t)if(Object.prototype.hasOwnProperty.call(t,b)){d=!0;var w=t[b],$=__(n,b);if(typeof p=="function"&&(d=p(b,n),d===!1&&!Ot(w)&&typeof w!="string"&&typeof w!="boolean"&&w instanceof Object&&(this.allowCreation=!1,d=this._handleObject(w,$,!0),this.allowCreation=h===!1)),d!==!1){y=!0;var A=this._getValue($);if(Ot(w))this._handleArray(w,A,$);else if(typeof w=="string")this._makeTextInput(w,A,$);else if(typeof w=="boolean")this._makeCheckbox(w,A,$);else if(w instanceof Object){if(!this.hideOption(n,b,this.moduleOptions))if(w.enabled!==void 0){var R=__($,"enabled"),Y=this._getValue(R);if(Y===!0){var V=this._makeLabel(b,$,!0);this._makeItem($,V),y=this._handleObject(w,$)||y}else this._makeCheckbox(w,Y,$)}else{var oe=this._makeLabel(b,$,!0);this._makeItem($,oe),y=this._handleObject(w,$)||y}}else console.error("dont know how to handle",w,b,$)}}return y}},{key:"_handleArray",value:function(t,n,h){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,n,h),t[1]!==n&&this.changedOptions.push({path:h,value:n})):typeof t[0]=="string"?(this._makeDropdown(t,n,h),t[0]!==n&&this.changedOptions.push({path:h,value:n})):typeof t[0]=="number"&&(this._makeRange(t,n,h),t[0]!==n&&this.changedOptions.push({path:h,value:Number(n)}))}},{key:"_update",value:function(t,n){var h=this._constructOptions(t,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",h),this.initialized=!0,this.parent.setOptions(h)}},{key:"_constructOptions",value:function(t,n){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=h;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var p=0;pp-this.padding&&(w=!0),w?y=this.x-h:y=this.x,$?b=this.y-n:b=this.y}else b=this.y-n,b+n+this.padding>d&&(b=d-n-this.padding),bp&&(y=p-h-this.padding),yp.distance?w=" in "+e.printLocation(d.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(p.path,p.closestMatch,""):d.distance<=y?w='. Did you mean "'+d.closestMatch+'"?'+e.printLocation(d.path,t):w=". Did you mean one of these: "+e.print(Ki(n))+e.printLocation(h,t),console.error('%cUnknown option detected: "'+t+'"'+w,WR),Vb=!0}},{key:"findInOptions",value:function(t,n,h){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,p=1e9,y="",b=[],w=t.toLowerCase(),$=void 0;for(var A in n){var R=void 0;if(n[A].__type__!==void 0&&d===!0){var Y=e.findInOptions(t,n[A],__(h,A));p>Y.distance&&(y=Y.closestMatch,b=Y.path,p=Y.distance,$=Y.indexMatch)}else{var V;oi(V=A.toLowerCase()).call(V,w)!==-1&&($=A),R=e.levenshteinDistance(t,A),p>R&&(y=A,b=m8(h),p=R)}}return{closestMatch:y,path:b,distance:p,indexMatch:$}}},{key:"printLocation",value:function(t,n){for(var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `,d=` `+h+`options = { `,p=0;p0?(n=a[e].redundant[0],a[e].redundant.shift()):(n=document.createElementNS("http://www.w3.org/2000/svg",e),t.appendChild(n)):(n=document.createElementNS("http://www.w3.org/2000/svg",e),a[e]={used:[],redundant:[]},t.appendChild(n)),a[e].used.push(n),n}function HA(e,a,t,n){var h;return a.hasOwnProperty(e)?a[e].redundant.length>0?(h=a[e].redundant[0],a[e].redundant.shift()):(h=document.createElement(e),t.appendChild(h)):(h=document.createElement(e),a[e]={used:[],redundant:[]},t.appendChild(h)),a[e].used.push(h),h}function jg(e,a,t,n,h,d){var p;if(t.style=="circle"?(p=Xs("circle",n,h),p.setAttributeNS(null,"cx",e),p.setAttributeNS(null,"cy",a),p.setAttributeNS(null,"r",.5*t.size)):(p=Xs("rect",n,h),p.setAttributeNS(null,"x",e-.5*t.size),p.setAttributeNS(null,"y",a-.5*t.size),p.setAttributeNS(null,"width",t.size),p.setAttributeNS(null,"height",t.size)),t.styles!==void 0&&p.setAttributeNS(null,"style",t.styles),p.setAttributeNS(null,"class",t.className+" vis-point"),d){var y=Xs("text",n,h);d.xOffset&&(e=e+d.xOffset),d.yOffset&&(a=a+d.yOffset),d.content&&(y.textContent=d.content),d.className&&y.setAttributeNS(null,"class",d.className+" vis-label"),y.setAttributeNS(null,"x",e),y.setAttributeNS(null,"y",a)}return p}function GR(e,a,t,n,h,d,p,y){if(n!=0){n<0&&(n*=-1,a-=n);var b=Xs("rect",d,p);b.setAttributeNS(null,"x",e-.5*t),b.setAttributeNS(null,"y",a),b.setAttributeNS(null,"width",t),b.setAttributeNS(null,"height",n),b.setAttributeNS(null,"class",h),y&&b.setAttributeNS(null,"style",y)}}function Eue(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(e){return"en"}}function oa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Due=IH,Oue=Due,$ue=Oue,Pue=$ue,w8=Pue,Iue=Be(w8),Mue=He,Aue=tB;Mue({target:"Object",stat:!0},{setPrototypeOf:Aue});var Rue=tr,Nue=Rue.Object.setPrototypeOf,Lue=Nue,Fue=Lue,jue=Fue,Yue=jue,Bue=Yue,Hue=Bue,k8=Hue,zR=Be(k8),Wue=gH,Gue=Wue,zue=Gue,Uue=zue,Vue=Uue,S8=Be(Vue);function UR(e,a){var t;return UR=zR?S8(t=zR).call(t):function(h,d){return h.__proto__=d,h},UR(e,a)}function Lh(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Iue(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),KC(e,"prototype",{writable:!1}),a&&UR(e,a)}function Fh(e,a){if(a&&(bt(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oa(e)}var que=kH,Kue=que,Xue=Kue,Zue=Xue,x8=Zue,Vj=Be(x8);function Ri(e){var a;return Ri=zR?S8(a=Vj).call(a):function(n){return n.__proto__||Vj(n)},Ri(e)}function fr(e,a,t){return a=iH(a),a in e?KC(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var T8={exports:{}},C8={exports:{}};(function(e){var a=LN,t=rH;function n(h){return e.exports=n=typeof a=="function"&&typeof t=="symbol"?function(d){return typeof d}:function(d){return d&&typeof a=="function"&&d.constructor===a&&d!==a.prototype?"symbol":typeof d},e.exports.__esModule=!0,e.exports.default=e.exports,n(h)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(C8);var Jue=C8.exports,Que=yH,ehe=Que,the=ehe,rhe=the,ihe=rhe,qj=Ni,nhe=FN,ahe=pp,ohe=Ga,she=function(e,a,t){for(var n=nhe(a),h=ohe.f,d=ahe.f,p=0;pA;A++)if(Y=ae(e[A]),Y&&Xj(Jj,Y))return Y;return new mC(!1)}w=Ohe(e,$)}for(V=d?e.next:w.next;!(oe=xhe(V,w)).done;){try{Y=ae(oe.value)}catch(ve){Zj(w,"throw",ve)}if(typeof Y=="object"&&Y&&Xj(Jj,Y))return Y}return new mC(!1)},Ihe=Qo,Mhe=function(e,a){return e===void 0?arguments.length<2?"":a:Ihe(e)},Ahe=He,Rhe=Cr,Nhe=I_,DC=tB,Lhe=she,O8=mp,WA=Rh,GA=vp,Fhe=hhe,jhe=khe,Yhe=bp,Bhe=Mhe,Hhe=Or,Whe=Hhe("toStringTag"),OC=Error,Ghe=[].push,Yg=function(a,t){var n=Rhe(zA,this),h;DC?h=DC(new OC,n?Nhe(this):zA):(h=n?this:O8(zA),WA(h,Whe,"Error")),t!==void 0&&WA(h,"message",Bhe(t)),jhe(h,Yg,h.stack,1),arguments.length>2&&Fhe(h,arguments[2]);var d=[];return Yhe(a,Ghe,{that:d}),WA(h,"errors",d),h};DC?DC(Yg,OC):Lhe(Yg,OC,{name:!0});var zA=Yg.prototype=O8(OC.prototype,{constructor:GA(1,Yg),message:GA(1,""),name:GA(1,"AggregateError")});Ahe({global:!0},{AggregateError:Yg});var zhe=Dr,Uhe=Mh,V_=Uhe(zhe.process)==="process",Vhe=ha,qhe=PN,Khe=Or,Xhe=Xi,Qj=Khe("species"),$8=function(e){var a=Vhe(e);Xhe&&a&&!a[Qj]&&qhe(a,Qj,{configurable:!0,get:function(){return this}})},Zhe=Cr,Jhe=TypeError,rL=function(e,a){if(Zhe(a,e))return e;throw new Jhe("Incorrect invocation")},Qhe=VC,ece=Vg,tce=TypeError,P8=function(e){if(Qhe(e))return e;throw new tce(ece(e)+" is not a constructor")},eY=xo,rce=P8,ice=Wg,nce=Or,ace=nce("species"),I8=function(e,a){var t=eY(e).constructor,n;return t===void 0||ice(n=eY(t)[ace])?a:rce(n)},oce=bd,M8=/(?:ipad|iphone|ipod).*applewebkit/i.test(oce),wo=Dr,sce=Kg,lce=_d,tY=si,uce=Ni,A8=Yt,rY=K6,hce=Y_,iY=wN,cce=MH,dce=M8,fce=V_,VR=wo.setImmediate,nY=wo.clearImmediate,vce=wo.process,UA=wo.Dispatch,pce=wo.Function,aY=wo.MessageChannel,mce=wo.String,VA=0,o_={},oY="onreadystatechange",w_,tp,qA,KA;A8(function(){w_=wo.location});var iL=function(e){if(uce(o_,e)){var a=o_[e];delete o_[e],a()}},XA=function(e){return function(){iL(e)}},sY=function(e){iL(e.data)},lY=function(e){wo.postMessage(mce(e),w_.protocol+"//"+w_.host)};(!VR||!nY)&&(VR=function(a){cce(arguments.length,1);var t=tY(a)?a:pce(a),n=hce(arguments,1);return o_[++VA]=function(){sce(t,void 0,n)},tp(VA),VA},nY=function(a){delete o_[a]},fce?tp=function(e){vce.nextTick(XA(e))}:UA&&UA.now?tp=function(e){UA.now(XA(e))}:aY&&!dce?(qA=new aY,KA=qA.port2,qA.port1.onmessage=sY,tp=lce(KA.postMessage,KA)):wo.addEventListener&&tY(wo.postMessage)&&!wo.importScripts&&w_&&w_.protocol!=="file:"&&!A8(lY)?(tp=lY,wo.addEventListener("message",sY,!1)):oY in iY("script")?tp=function(e){rY.appendChild(iY("script"))[oY]=function(){rY.removeChild(this),iL(e)}}:tp=function(e){setTimeout(XA(e),0)});var R8={set:VR},N8=function(){this.head=null,this.tail=null};N8.prototype={add:function(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a},get:function(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}};var L8=N8,gce=bd,yce=/ipad|iphone|ipod/i.test(gce)&&typeof Pebble!="undefined",bce=bd,_ce=/web0s(?!.*chrome)/i.test(bce),fp=Dr,uY=_d,wce=pp.f,ZA=R8.set,kce=L8,Sce=M8,xce=yce,Tce=_ce,JA=V_,hY=fp.MutationObserver||fp.WebKitMutationObserver,cY=fp.document,dY=fp.process,iC=fp.Promise,fY=wce(fp,"queueMicrotask"),qR=fY&&fY.value,yg,QA,eR,nC,vY;qR||(qb=new kce,Kb=function(){var e,a;for(JA&&(e=dY.domain)&&e.exit();a=qb.get();)try{a()}catch(t){throw qb.head&&yg(),t}e&&e.enter()},!Sce&&!JA&&!Tce&&hY&&cY?(QA=!0,eR=cY.createTextNode(""),new hY(Kb).observe(eR,{characterData:!0}),yg=function(){eR.data=QA=!QA}):!xce&&iC&&iC.resolve?(nC=iC.resolve(void 0),nC.constructor=iC,vY=uY(nC.then,nC),yg=function(){vY(Kb)}):JA?yg=function(){dY.nextTick(Kb)}:(ZA=uY(ZA,fp),yg=function(){ZA(Kb)}),qR=function(e){qb.head||yg(),qb.add(e)});var qb,Kb,Cce=qR,Ece=function(e,a){try{arguments.length===1?console.error(e):console.error(e,a)}catch(t){}},ry=function(e){try{return{error:!1,value:e()}}catch(a){return{error:!0,value:a}}},Dce=Dr,iy=Dce.Promise,F8=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Oce=F8,$ce=V_,Pce=!Oce&&!$ce&&typeof window=="object"&&typeof document=="object",Ice=Dr,s_=iy,Mce=si,Ace=z6,Rce=oB,Nce=Or,Lce=Pce,Fce=F8,tR=zg,pY=s_&&s_.prototype,jce=Nce("species"),mY=!1,j8=Mce(Ice.PromiseRejectionEvent),Yce=Ace("Promise",function(){var e=Rce(s_),a=e!==String(s_);if(!a&&tR===66||!(pY.catch&&pY.finally))return!0;if(!tR||tR<51||!/native code/.test(e)){var t=new s_(function(d){d(1)}),n=function(d){d(function(){},function(){})},h=t.constructor={};if(h[jce]=n,mY=t.then(function(){})instanceof n,!mY)return!0}return!a&&(Lce||Fce)&&!j8}),q_={CONSTRUCTOR:Yce,REJECTION_EVENT:j8},iu={},gY=za,Bce=TypeError,Hce=function(e){var a,t;this.promise=new e(function(n,h){if(a!==void 0||t!==void 0)throw new Bce("Bad Promise constructor");a=n,t=h}),this.resolve=gY(a),this.reject=gY(t)};iu.f=function(e){return new Hce(e)};var Wce=He,$C=V_,yd=Dr,K_=on,Gce=Xg,zce=gp,Uce=$8,Vce=za,KR=si,qce=an,Kce=rL,Xce=I8,Y8=R8.set,nL=Cce,Zce=Ece,Jce=ry,Qce=L8,B8=qg,XR=iy,H8=q_,W8=iu,lE="Promise",G8=H8.CONSTRUCTOR,ede=H8.REJECTION_EVENT,rR=B8.getterFor(lE),tde=B8.set,rde=XR&&XR.prototype,Og=XR,iR=rde,z8=yd.TypeError,ZR=yd.document,aL=yd.process,JR=W8.f,ide=JR,nde=!!(ZR&&ZR.createEvent&&yd.dispatchEvent),U8="unhandledrejection",ade="rejectionhandled",yY=0,V8=1,ode=2,oL=1,q8=2,aC,bY,sde,K8=function(e){var a;return qce(e)&&KR(a=e.then)?a:!1},X8=function(e,a){var t=a.value,n=a.state===V8,h=n?e.ok:e.fail,d=e.resolve,p=e.reject,y=e.domain,b,w,$;try{h?(n||(a.rejection===q8&&ude(a),a.rejection=oL),h===!0?b=t:(y&&y.enter(),b=h(t),y&&(y.exit(),$=!0)),b===e.promise?p(new z8("Promise-chain cycle")):(w=K8(b))?K_(w,b,d,p):d(b)):p(t)}catch(A){y&&!$&&y.exit(),p(A)}},Z8=function(e,a){e.notified||(e.notified=!0,nL(function(){for(var t=e.reactions,n;n=t.get();)X8(n,e);e.notified=!1,a&&!e.rejection&&lde(e)}))},J8=function(e,a,t){var n,h;nde?(n=ZR.createEvent("Event"),n.promise=a,n.reason=t,n.initEvent(e,!1,!0),yd.dispatchEvent(n)):n={promise:a,reason:t},!ede&&(h=yd["on"+e])?h(n):e===U8&&Zce("Unhandled promise rejection",t)},lde=function(e){K_(Y8,yd,function(){var a=e.facade,t=e.value,n=_Y(e),h;if(n&&(h=Jce(function(){$C?aL.emit("unhandledRejection",t,a):J8(U8,a,t)}),e.rejection=$C||_Y(e)?q8:oL,h.error))throw h.value})},_Y=function(e){return e.rejection!==oL&&!e.parent},ude=function(e){K_(Y8,yd,function(){var a=e.facade;$C?aL.emit("rejectionHandled",a):J8(ade,a,e.value)})},$g=function(e,a,t){return function(n){e(a,n,t)}},Pg=function(e,a,t){e.done||(e.done=!0,t&&(e=t),e.value=a,e.state=ode,Z8(e,!0))},QR=function(e,a,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===a)throw new z8("Promise can't be resolved itself");var n=K8(a);n?nL(function(){var h={done:!1};try{K_(n,a,$g(QR,h,e),$g(Pg,h,e))}catch(d){Pg(h,d,e)}}):(e.value=a,e.state=V8,Z8(e,!1))}catch(h){Pg({done:!1},h,e)}}};G8&&(Og=function(a){Kce(this,iR),Vce(a),K_(aC,this);var t=rR(this);try{a($g(QR,t),$g(Pg,t))}catch(n){Pg(t,n)}},iR=Og.prototype,aC=function(a){tde(this,{type:lE,done:!1,notified:!1,parent:!1,reactions:new Qce,rejection:!1,state:yY,value:void 0})},aC.prototype=Gce(iR,"then",function(a,t){var n=rR(this),h=JR(Xce(this,Og));return n.parent=!0,h.ok=KR(a)?a:!0,h.fail=KR(t)&&t,h.domain=$C?aL.domain:void 0,n.state===yY?n.reactions.add(h):nL(function(){X8(h,n)}),h.promise}),bY=function(){var e=new aC,a=rR(e);this.promise=e,this.resolve=$g(QR,a),this.reject=$g(Pg,a)},W8.f=JR=function(e){return e===Og||e===sde?new bY(e):ide(e)});Wce({global:!0,wrap:!0,forced:G8},{Promise:Og});zce(Og,lE,!1,!0);Uce(lE);var hde=iy,cde=fB,dde=q_.CONSTRUCTOR,uE=dde||!cde(function(e){hde.all(e).then(void 0,function(){})}),fde=He,vde=on,pde=za,mde=iu,gde=ry,yde=bp,bde=uE;fde({target:"Promise",stat:!0,forced:bde},{all:function(a){var t=this,n=mde.f(t),h=n.resolve,d=n.reject,p=gde(function(){var y=pde(t.resolve),b=[],w=0,$=1;yde(a,function(A){var R=w++,Y=!1;$++,vde(y,t,A).then(function(V){Y||(Y=!0,b[R]=V,--$||h(b))},d)}),--$||h(b)});return p.error&&d(p.value),n.promise}});var _de=He,wde=q_.CONSTRUCTOR,wY=iy;wY&&wY.prototype;_de({target:"Promise",proto:!0,forced:wde,real:!0},{catch:function(e){return this.then(void 0,e)}});var kde=He,Sde=on,xde=za,Tde=iu,Cde=ry,Ede=bp,Dde=uE;kde({target:"Promise",stat:!0,forced:Dde},{race:function(a){var t=this,n=Tde.f(t),h=n.reject,d=Cde(function(){var p=xde(t.resolve);Ede(a,function(y){Sde(p,t,y).then(n.resolve,h)})});return d.error&&h(d.value),n.promise}});var Ode=He,$de=on,Pde=iu,Ide=q_.CONSTRUCTOR;Ode({target:"Promise",stat:!0,forced:Ide},{reject:function(a){var t=Pde.f(this);return $de(t.reject,void 0,a),t.promise}});var Mde=xo,Ade=an,Rde=iu,Q8=function(e,a){if(Mde(e),Ade(a)&&a.constructor===e)return a;var t=Rde.f(e),n=t.resolve;return n(a),t.promise},Nde=He,Lde=ha,Fde=n7,jde=iy,Yde=q_.CONSTRUCTOR,Bde=Q8,Hde=Lde("Promise"),Wde=!Yde;Nde({target:"Promise",stat:!0,forced:Fde},{resolve:function(a){return Bde(Wde&&this===Hde?jde:this,a)}});var Gde=He,zde=on,Ude=za,Vde=iu,qde=ry,Kde=bp,Xde=uE;Gde({target:"Promise",stat:!0,forced:Xde},{allSettled:function(a){var t=this,n=Vde.f(t),h=n.resolve,d=n.reject,p=qde(function(){var y=Ude(t.resolve),b=[],w=0,$=1;Kde(a,function(A){var R=w++,Y=!1;$++,zde(y,t,A).then(function(V){Y||(Y=!0,b[R]={status:"fulfilled",value:V},--$||h(b))},function(V){Y||(Y=!0,b[R]={status:"rejected",reason:V},--$||h(b))})}),--$||h(b)});return p.error&&d(p.value),n.promise}});var Zde=He,Jde=on,Qde=za,efe=ha,tfe=iu,rfe=ry,ife=bp,nfe=uE,kY="No one promise resolved";Zde({target:"Promise",stat:!0,forced:nfe},{any:function(a){var t=this,n=efe("AggregateError"),h=tfe.f(t),d=h.resolve,p=h.reject,y=rfe(function(){var b=Qde(t.resolve),w=[],$=0,A=1,R=!1;ife(a,function(Y){var V=$++,oe=!1;A++,Jde(b,t,Y).then(function(G){oe||R||(R=!0,d(G))},function(G){oe||R||(oe=!0,w[V]=G,--A||p(new n(w,kY)))})}),--A||p(new n(w,kY))});return y.error&&p(y.value),h.promise}});var afe=He,eN=iy,ofe=Yt,sfe=ha,lfe=si,ufe=I8,SY=Q8,hfe=eN&&eN.prototype,cfe=!!eN&&ofe(function(){hfe.finally.call({then:function(){}},function(){})});afe({target:"Promise",proto:!0,real:!0,forced:cfe},{finally:function(e){var a=ufe(this,sfe("Promise")),t=lfe(e);return this.then(t?function(n){return SY(a,e()).then(function(){return n})}:e,t?function(n){return SY(a,e()).then(function(){throw n})}:e)}});var dfe=tr,ffe=dfe.Promise,vfe=ffe,pfe=vfe,mfe=He,gfe=iu;mfe({target:"Promise",stat:!0},{withResolvers:function(){var a=gfe.f(this);return{promise:a.promise,resolve:a.resolve,reject:a.reject}}});var yfe=pfe,bfe=yfe,_fe=He,wfe=iu,kfe=ry;_fe({target:"Promise",stat:!0,forced:!0},{try:function(e){var a=wfe.f(this),t=kfe(e);return(t.error?a.reject:a.resolve)(t.value),a.promise}});var Sfe=bfe,xfe=Sfe,Tfe=xfe,Cfe=bH,Efe=Cfe,Dfe=Efe,Ofe=Dfe,$fe=Ofe;(function(e){var a=Jue.default,t=kB,n=LN,h=w8,d=x8,p=ihe,y=sH,b=k8,w=Tfe,$=$fe,A=uH;function R(){e.exports=R=function(){return V},e.exports.__esModule=!0,e.exports.default=e.exports;var Y,V={},oe=Object.prototype,G=oe.hasOwnProperty,ae=t||function(ke,ge,be){ke[ge]=be.value},ve=typeof n=="function"?n:{},ye=ve.iterator||"@@iterator",pe=ve.asyncIterator||"@@asyncIterator",Se=ve.toStringTag||"@@toStringTag";function ze(ke,ge,be){return t(ke,ge,{value:be,enumerable:!0,configurable:!0,writable:!0}),ke[ge]}try{ze({},"")}catch(ke){ze=function(be,je,Qe){return be[je]=Qe}}function tt(ke,ge,be,je){var Qe=ge&&ge.prototype instanceof ir?ge:ir,rt=h(Qe.prototype),Ut=new En(je||[]);return ae(rt,"_invoke",{value:sn(ke,be,Ut)}),rt}function _e(ke,ge,be){try{return{type:"normal",arg:ke.call(ge,be)}}catch(je){return{type:"throw",arg:je}}}V.wrap=tt;var it="suspendedStart",Ne="suspendedYield",qe="executing",Fe="completed",Ye={};function ir(){}function gt(){}function Kt(){}var lt={};ze(lt,ye,function(){return this});var kt=d,$r=kt&&kt(kt(ln([])));$r&&$r!==oe&&G.call($r,ye)&&(lt=$r);var ht=Kt.prototype=ir.prototype=h(lt);function Ct(ke){var ge;p(ge=["next","throw","return"]).call(ge,function(be){ze(ke,be,function(je){return this._invoke(be,je)})})}function ui(ke,ge){function be(Qe,rt,Ut,Bt){var ii=_e(ke[Qe],ke,rt);if(ii.type!=="throw"){var zn=ii.arg,sr=zn.value;return sr&&a(sr)=="object"&&G.call(sr,"__await")?ge.resolve(sr.__await).then(function(Zi){be("next",Zi,Ut,Bt)},function(Zi){be("throw",Zi,Ut,Bt)}):ge.resolve(sr).then(function(Zi){zn.value=Zi,Ut(zn)},function(Zi){return be("throw",Zi,Ut,Bt)})}Bt(ii.arg)}var je;ae(this,"_invoke",{value:function(rt,Ut){function Bt(){return new ge(function(ii,zn){be(rt,Ut,ii,zn)})}return je=je?je.then(Bt,Bt):Bt()}})}function sn(ke,ge,be){var je=it;return function(Qe,rt){if(je===qe)throw new Error("Generator is already running");if(je===Fe){if(Qe==="throw")throw rt;return{value:Y,done:!0}}for(be.method=Qe,be.arg=rt;;){var Ut=be.delegate;if(Ut){var Bt=$t(Ut,be);if(Bt){if(Bt===Ye)continue;return Bt}}if(be.method==="next")be.sent=be._sent=be.arg;else if(be.method==="throw"){if(je===it)throw je=Fe,be.arg;be.dispatchException(be.arg)}else be.method==="return"&&be.abrupt("return",be.arg);je=qe;var ii=_e(ke,ge,be);if(ii.type==="normal"){if(je=be.done?Fe:Ne,ii.arg===Ye)continue;return{value:ii.arg,done:be.done}}ii.type==="throw"&&(je=Fe,be.method="throw",be.arg=ii.arg)}}}function $t(ke,ge){var be=ge.method,je=ke.iterator[be];if(je===Y)return ge.delegate=null,be==="throw"&&ke.iterator.return&&(ge.method="return",ge.arg=Y,$t(ke,ge),ge.method==="throw")||be!=="return"&&(ge.method="throw",ge.arg=new TypeError("The iterator does not provide a '"+be+"' method")),Ye;var Qe=_e(je,ke.iterator,ge.arg);if(Qe.type==="throw")return ge.method="throw",ge.arg=Qe.arg,ge.delegate=null,Ye;var rt=Qe.arg;return rt?rt.done?(ge[ke.resultName]=rt.value,ge.next=ke.nextLoc,ge.method!=="return"&&(ge.method="next",ge.arg=Y),ge.delegate=null,Ye):rt:(ge.method="throw",ge.arg=new TypeError("iterator result is not an object"),ge.delegate=null,Ye)}function ce(ke){var ge,be={tryLoc:ke[0]};1 in ke&&(be.catchLoc=ke[1]),2 in ke&&(be.finallyLoc=ke[2],be.afterLoc=ke[3]),y(ge=this.tryEntries).call(ge,be)}function Gn(ke){var ge=ke.completion||{};ge.type="normal",delete ge.arg,ke.completion=ge}function En(ke){this.tryEntries=[{tryLoc:"root"}],p(ke).call(ke,ce,this),this.reset(!0)}function ln(ke){if(ke||ke===""){var ge=ke[ye];if(ge)return ge.call(ke);if(typeof ke.next=="function")return ke;if(!isNaN(ke.length)){var be=-1,je=function Qe(){for(;++be=0;--Qe){var rt=this.tryEntries[Qe],Ut=rt.completion;if(rt.tryLoc==="root")return je("end");if(rt.tryLoc<=this.prev){var Bt=G.call(rt,"catchLoc"),ii=G.call(rt,"finallyLoc");if(Bt&&ii){if(this.prev=0;--je){var Qe=this.tryEntries[je];if(Qe.tryLoc<=this.prev&&G.call(Qe,"finallyLoc")&&this.prev=0;--be){var je=this.tryEntries[be];if(je.finallyLoc===ge)return this.complete(je.completion,je.afterLoc),Gn(je),Ye}},catch:function(ge){for(var be=this.tryEntries.length-1;be>=0;--be){var je=this.tryEntries[be];if(je.tryLoc===ge){var Qe=je.completion;if(Qe.type==="throw"){var rt=Qe.arg;Gn(je)}return rt}}throw new Error("illegal catch attempt")},delegateYield:function(ge,be,je){return this.delegate={iterator:ln(ge),resultName:be,nextLoc:je},this.method==="next"&&(this.arg=Y),Ye}},V}e.exports=R,e.exports.__esModule=!0,e.exports.default=e.exports})(T8);var Pfe=T8.exports,gC=Pfe(),Ife=gC;try{regeneratorRuntime=gC}catch(e){typeof globalThis=="object"?globalThis.regeneratorRuntime=gC:Function("r","regeneratorRuntime = r")(gC)}var Ya=Be(Ife),Mfe=za,Afe=ua,Rfe=zC,Nfe=Ua,Lfe=TypeError,Ffe=function(e){return function(a,t,n,h){Mfe(t);var d=Afe(a),p=Rfe(d),y=Nfe(d),b=e?y-1:0,w=e?-1:1;if(n<2)for(;;){if(b in p){h=p[b],b+=w;break}if(b+=w,e?b<0:y<=b)throw new Lfe("Reduce of empty array with no initial value")}for(;e?b>=0:y>b;b+=w)b in p&&(h=t(h,p[b],b,d));return h}},jfe={left:Ffe(!1)},Yfe=He,Bfe=jfe.left,Hfe=ey,xY=zg,Wfe=V_,Gfe=!Wfe&&xY>79&&xY<83,zfe=Gfe||!Hfe("reduce");Yfe({target:"Array",proto:!0,forced:zfe},{reduce:function(a){var t=arguments.length;return Bfe(this,a,t,t>1?arguments[1]:void 0)}});var Ufe=Yr,Vfe=Ufe("Array").reduce,qfe=Cr,Kfe=Vfe,nR=Array.prototype,Xfe=function(e){var a=e.reduce;return e===nR||qfe(nR,e)&&a===nR.reduce?Kfe:a},Zfe=Xfe,Jfe=Zfe,Qfe=Jfe,sL=Be(Qfe),eve=wd,tve=Ua,rve=XC,ive=_d,e3=function(e,a,t,n,h,d,p,y){for(var b=h,w=0,$=p?ive(p,y):!1,A,R;w0&&eve(A)?(R=tve(A),b=e3(e,a,A,R,b,d-1)-1):(rve(b+1),e[b]=A),b++),w++;return b},nve=e3,ave=He,ove=nve,sve=za,lve=ua,uve=Ua,hve=ZC;ave({target:"Array",proto:!0},{flatMap:function(a){var t=lve(this),n=uve(t),h;return sve(a),h=hve(t,0),h.length=ove(h,t,t,n,0,1,a,arguments.length>1?arguments[1]:void 0),h}});var cve=Yr,dve=cve("Array").flatMap,fve=Cr,vve=dve,aR=Array.prototype,pve=function(e){var a=e.flatMap;return e===aR||fve(aR,e)&&a===aR.flatMap?vve:a},mve=pve,gve=mve,yve=gve,bve=Be(yve),t3={exports:{}},_ve=Yt,wve=_ve(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),kve=Yt,Sve=an,xve=Mh,TY=wve,yC=Object.isExtensible,Tve=kve(function(){yC(1)}),Cve=Tve||TY?function(a){return!Sve(a)||TY&&xve(a)==="ArrayBuffer"?!1:yC?yC(a):!0}:yC,Eve=Yt,Dve=!Eve(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ove=He,$ve=Zt,Pve=E_,Ive=an,lL=Ni,Mve=Ga.f,CY=N_,Ave=$N,uL=Cve,Rve=HC,Nve=Dve,r3=!1,Ih=Rve("meta"),Lve=0,hL=function(e){Mve(e,Ih,{value:{objectID:"O"+Lve++,weakData:{}}})},Fve=function(e,a){if(!Ive(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!lL(e,Ih)){if(!uL(e))return"F";if(!a)return"E";hL(e)}return e[Ih].objectID},jve=function(e,a){if(!lL(e,Ih)){if(!uL(e))return!0;if(!a)return!1;hL(e)}return e[Ih].weakData},Yve=function(e){return Nve&&r3&&uL(e)&&!lL(e,Ih)&&hL(e),e},Bve=function(){Hve.enable=function(){},r3=!0;var e=CY.f,a=$ve([].splice),t={};t[Ih]=1,e(t).length&&(CY.f=function(n){for(var h=e(n),d=0,p=h.length;d1?arguments[1]:void 0),Y;Y=Y?Y.next:A.first;)for(R(Y.value,Y.key,this);Y&&Y.removed;)Y=Y.previous},has:function($){return!!b(this,$)}}),EY(d,t?{get:function($){var A=b(this,$);return A&&A.value},set:function($,A){return y(this,$===0?0:$,A)}}:{add:function($){return y(this,$=$===0?0:$,$)}}),Xb&&lpe(d,"size",{configurable:!0,get:function(){return p(this).size}}),h},setStrong:function(e,a,t){var n=a+" Iterator",h=oR(a),d=oR(n);fpe(e,a,function(p,y){OY(this,{type:n,target:p,state:h(p),kind:y,last:void 0})},function(){for(var p=d(this),y=p.kind,b=p.last;b&&b.removed;)b=b.previous;return!p.target||!(p.last=b=b?b.next:p.state.first)?(p.target=void 0,oC(void 0,!0)):oC(y==="keys"?b.key:y==="values"?b.value:[b.key,b.value],!1)},t?"entries":"values",!t,!0),vpe(a)}},ppe=a3,mpe=s3;ppe("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mpe);var gpe=tr,ype=gpe.Map,bpe=ype,_pe=bpe,wpe=_pe,l3=Be(wpe),kpe=a3,Spe=s3;kpe("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Spe);var xpe=tr,Tpe=xpe.Set,Cpe=Tpe,Epe=Cpe,Dpe=Epe,l_=Be(Dpe),Ope=tH,Ig=Be(Ope),$pe=ON,Ppe=$pe,Ipe=Ppe,Mpe=Ipe,Ape=Mpe,Rpe=Ape,Npe=Rpe,Lpe=Npe,Fpe=Lpe,jpe=Fpe,sR=Be(jpe),$Y=xB,Ype=Math.floor,tN=function(e,a){var t=e.length,n=Ype(t/2);return t<8?Bpe(e,a):Hpe(e,tN($Y(e,0,n),a),tN($Y(e,n),a),a)},Bpe=function(e,a){for(var t=e.length,n=1,h,d;n0;)e[d]=e[--d];d!==n++&&(e[d]=h)}return e},Hpe=function(e,a,t,n){for(var h=a.length,d=t.length,p=0,y=0;p3)){if(rme)return!0;if(LY)return LY<603;var e="",a,t,n,h;for(a=65;a<76;a++){switch(t=String.fromCharCode(a),a){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(h=0;h<47;h++)pd.push({k:t+h,v:n})}for(pd.sort(function(d,p){return p.v-d.v}),h=0;hAY(t)?1:-1}};Xpe({target:"Array",proto:!0,forced:sme},{sort:function(a){a!==void 0&&Zpe(a);var t=Jpe(this);if(h3)return a===void 0?FY(t):FY(t,a);var n=[],h=MY(t),d,p;for(p=0;p1?arguments[1]:void 0)}});var wme=Yr,kme=wme("Array").some,Sme=Cr,xme=kme,uR=Array.prototype,Tme=function(e){var a=e.some;return e===uR||Sme(uR,e)&&a===uR.some?xme:a},Cme=Tme,Eme=Cme,Dme=Eme,c3=Be(Dme),Ome=Yr,$me=Ome("Array").keys,Pme=$me,Ime=Pme,Mme=Ah,Ame=Ni,Rme=Cr,Nme=Ime,hR=Array.prototype,Lme={DOMTokenList:!0,NodeList:!0},Fme=function(e){var a=e.keys;return e===hR||Rme(hR,e)&&a===hR.keys||Ame(Lme,Mme(e))?Nme:a},jme=Fme,bg=Be(jme),Yme=Yr,Bme=Yme("Array").values,Hme=Bme,Wme=Hme,Gme=Ah,zme=Ni,Ume=Cr,Vme=Wme,cR=Array.prototype,qme={DOMTokenList:!0,NodeList:!0},Kme=function(e){var a=e.values;return e===cR||Ume(cR,e)&&a===cR.values||zme(qme,Gme(e))?Vme:a},Xme=Kme,jY=Be(Xme),Zme=Yr,Jme=Zme("Array").entries,Qme=Jme,ege=Qme,tge=Ah,rge=Ni,ige=Cr,nge=ege,dR=Array.prototype,age={DOMTokenList:!0,NodeList:!0},oge=function(e){var a=e.entries;return e===dR||ige(dR,e)&&a===dR.entries||rge(age,tge(e))?nge:a},sge=oge,lge=Be(sge),uge=wB,dL=Be(uge),hge=He,cge=ha,fR=Kg,dge=mH,YY=P8,fge=xo,BY=an,vge=mp,d3=Yt,fL=cge("Reflect","construct"),pge=Object.prototype,mge=[].push,f3=d3(function(){function e(){}return!(fL(function(){},[],e)instanceof e)}),v3=!d3(function(){fL(function(){})}),HY=f3||v3;hge({target:"Reflect",stat:!0,forced:HY,sham:HY},{construct:function(a,t){YY(a),fge(t);var n=arguments.length<3?a:YY(arguments[2]);if(v3&&!f3)return fL(a,t,n);if(a===n){switch(t.length){case 0:return new a;case 1:return new a(t[0]);case 2:return new a(t[0],t[1]);case 3:return new a(t[0],t[1],t[2]);case 4:return new a(t[0],t[1],t[2],t[3])}var h=[null];return fR(mge,h,t),new(fR(dge,a,h))}var d=n.prototype,p=vge(BY(d)?d:pge),y=fR(a,p,t);return BY(y)?y:p}});var gge=tr,yge=gge.Reflect.construct,bge=yge,_ge=bge,wge=_ge,Nt=Be(wge),kge=tr,Sge=kge.Object.getOwnPropertySymbols,xge=Sge,Tge=xge,Cge=Tge,PC=Be(Cge),p3={exports:{}},Ege=He,Dge=Yt,Oge=Qs,m3=pp.f,g3=Xi,$ge=!g3||Dge(function(){m3(1)});Ege({target:"Object",stat:!0,forced:$ge,sham:!g3},{getOwnPropertyDescriptor:function(a,t){return m3(Oge(a),t)}});var Pge=tr,y3=Pge.Object,Ige=p3.exports=function(a,t){return y3.getOwnPropertyDescriptor(a,t)};y3.getOwnPropertyDescriptor.sham&&(Ige.sham=!0);var Mge=p3.exports,Age=Mge,Rge=Age,Nge=Rge,hE=Be(Nge),Lge=He,Fge=Xi,jge=FN,Yge=Qs,Bge=pp,Hge=Jg;Lge({target:"Object",stat:!0,sham:!Fge},{getOwnPropertyDescriptors:function(a){for(var t=Yge(a),n=Bge.f,h=jge(t),d={},p=0,y,b;h.length>p;)b=n(t,y=h[p++]),b!==void 0&&Hge(d,y,b);return d}});var Wge=tr,Gge=Wge.Object.getOwnPropertyDescriptors,zge=Gge,Uge=zge,Vge=Uge,IC=Be(Vge),b3={exports:{}},qge=He,Kge=Xi,WY=UC.f;qge({target:"Object",stat:!0,forced:Object.defineProperties!==WY,sham:!Kge},{defineProperties:WY});var Xge=tr,_3=Xge.Object,Zge=b3.exports=function(a,t){return _3.defineProperties(a,t)};_3.defineProperties.sham&&(Zge.sham=!0);var Jge=b3.exports,Qge=Jge,eye=Qge,tye=eye,w3=Be(tye),sC,rye=new Uint8Array(16);function iye(){if(!sC&&(sC=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sC(rye)}var Sn=[];for(let e=0;e<256;++e)Sn.push((e+256).toString(16).slice(1));function nye(e,a=0){return Sn[e[a+0]]+Sn[e[a+1]]+Sn[e[a+2]]+Sn[e[a+3]]+"-"+Sn[e[a+4]]+Sn[e[a+5]]+"-"+Sn[e[a+6]]+Sn[e[a+7]]+"-"+Sn[e[a+8]]+Sn[e[a+9]]+"-"+Sn[e[a+10]]+Sn[e[a+11]]+Sn[e[a+12]]+Sn[e[a+13]]+Sn[e[a+14]]+Sn[e[a+15]]}var aye=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),GY={randomUUID:aye};function vL(e,a,t){if(GY.randomUUID&&!e)return GY.randomUUID();e=e||{};let n=e.random||(e.rng||iye)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,nye(n)}var k3;function zY(e,a){var t=Ki(e);if(PC){var n=PC(e);a&&(n=Rt(n).call(n,function(h){return hE(e,h).enumerable})),t.push.apply(t,n)}return t}function UY(e){for(var a=1;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function lye(e,a){var t;if(e){if(typeof e=="string")return VY(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VY(e,a)}}function VY(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);tthis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=Zo(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,n;Tt(t=Ks(n=this._queue).call(n,0)).call(t,function(h){h.fn.apply(h.context||h.fn,h.args||[])})}}],[{key:"extend",value:function(t,n){var h=new e(n);if(t.flush!==void 0)throw new Error("Target object already has a property flush");t.flush=function(){h.flush()};var d=[{name:"flush",original:void 0}];if(n&&n.replace)for(var p=0;pp&&(p=$,d=w)}return d}},{key:"min",value:function(t){var n=sR(this._pairs),h=n.next();if(h.done)return null;for(var d=h.value[1],p=t(h.value[1],h.value[0]);!(h=n.next()).done;){var y=Wn(h.value,2),b=y[0],w=y[1],$=t(w,b);$$?1:w<$?-1:0})}else if(typeof d=="function")Ii(h).call(h,d);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(h,d){for(var p=[],y=[],b=Ot(h)?h:[h],w=0,$=b.length;w<$;w++){var A=this._remove(b[w]);if(A){var R=A[this._idProp];R!=null&&(p.push(R),y.push(A))}}return p.length&&this._trigger("remove",{items:p,oldData:y},d),p}},{key:"_remove",value:function(h){var d;if(qY(h)?d=h:h&&bt(h)==="object"&&(d=h[this._idProp]),d!=null&&this._data.has(d)){var p=this._data.get(d)||null;return this._data.delete(d),--this.length,p}return null}},{key:"clear",value:function(h){for(var d,p=Pi(bg(d=this._data).call(d)),y=[],b=0,w=p.length;by)&&(p=$,y=A)}}catch(R){b.e(R)}finally{b.f()}return p||null}},{key:"min",value:function(h){var d,p=null,y=null,b=yo(jY(d=this._data).call(d)),w;try{for(b.s();!(w=b.n()).done;){var $=w.value,A=$[h];typeof A=="number"&&(y==null||A/g,Fye=/"/g,jye=/"/g,Yye=/&#([a-zA-Z0-9]*);?/gim,Bye=/:?/gim,Hye=/&newline;?/gim,uC=/((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,ZY=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,JY=/u\s*r\s*l\s*\(.*/gi;function D3(e){return e.replace(Fye,""")}function O3(e){return e.replace(jye,'"')}function $3(e){return e.replace(Yye,function(t,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function P3(e){return e.replace(Bye,":").replace(Hye," ")}function I3(e){for(var a="",t=0,n=e.length;t",n);if(h===-1)break;t=h+3}return a}function Uye(e){var a=e.split("");return a=a.filter(function(t){var n=t.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),a.join("")}Br.whiteList=T3();Br.getDefaultWhiteList=T3;Br.onTag=Pye;Br.onIgnoreTag=Iye;Br.onTagAttr=Mye;Br.onIgnoreTagAttr=Aye;Br.safeAttrValue=Rye;Br.escapeHtml=E3;Br.escapeQuote=D3;Br.unescapeQuote=O3;Br.escapeHtmlEntities=$3;Br.escapeDangerHtml5Entities=P3;Br.clearNonPrintableCharacter=I3;Br.friendlyAttrValue=M3;Br.escapeAttrValue=A3;Br.onIgnoreTagStripAll=Wye;Br.StripTagBody=Gye;Br.stripCommentTag=zye;Br.stripBlankChar=Uye;Br.attributeWrapSign='"';Br.cssFilter=C3;Br.getDefaultCSSWhiteList=$ye;var cE={},fd=mL;function Vye(e){var a=fd.spaceIndex(e),t;return a===-1?t=e.slice(1,-1):t=e.slice(1,a+1),t=fd.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function qye(e){return e.slice(0,2)===""||y===b-1){n+=t(e.slice(h,d)),$=e.slice(d,y+1),w=Vye($),n+=a(d,n.length,w,$,qye($)),h=y+1,d=!1;continue}if(A==='"'||A==="'")for(var R=1,Y=e.charAt(y-R);Y.trim()===""||Y==="=";){if(Y==="="){p=A;continue e}Y=e.charAt(y-++R)}}else if(A===p){p=!1;continue}}return h0;a--){var t=e[a];if(t!==" ")return t==="="?a:-1}}function t0e(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function QY(e){return t0e(e)?e.substr(1,e.length-2):e}cE.parseTag=Kye;cE.parseAttr=Zye;var r0e=pL.FilterCSS,Ko=Br,R3=cE,i0e=R3.parseTag,n0e=R3.parseAttr,bC=mL;function hC(e){return e==null}function a0e(e){var a=bC.spaceIndex(e);if(a===-1)return{html:"",closing:e[e.length-2]==="/"};e=bC.trim(e.slice(a+1,-1));var t=e[e.length-1]==="/";return t&&(e=bC.trim(e.slice(0,-1))),{html:e,closing:t}}function o0e(e){var a={};for(var t in e)a[t]=e[t];return a}function s0e(e){var a={};for(var t in e)Array.isArray(e[t])?a[t.toLowerCase()]=e[t].map(function(n){return n.toLowerCase()}):a[t.toLowerCase()]=e[t];return a}function N3(e){e=o0e(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Ko.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=s0e(e.whiteList||e.allowList):e.whiteList=Ko.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":Ko.attributeWrapSign,e.onTag=e.onTag||Ko.onTag,e.onTagAttr=e.onTagAttr||Ko.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Ko.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Ko.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Ko.safeAttrValue,e.escapeHtml=e.escapeHtml||Ko.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r0e(e.css))}N3.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var a=this,t=a.options,n=t.whiteList,h=t.onTag,d=t.onIgnoreTag,p=t.onTagAttr,y=t.onIgnoreTagAttr,b=t.safeAttrValue,w=t.escapeHtml,$=a.attributeWrapSign,A=a.cssFilter;t.stripBlankChar&&(e=Ko.stripBlankChar(e)),t.allowCommentTag||(e=Ko.stripCommentTag(e));var R=!1;t.stripIgnoreTagBody&&(R=Ko.StripTagBody(t.stripIgnoreTagBody,d),d=R.onIgnoreTag);var Y=i0e(e,function(V,oe,G,ae,ve){var ye={sourcePosition:V,position:oe,isClosing:ve,isWhite:Object.prototype.hasOwnProperty.call(n,G)},pe=h(G,ae,ye);if(!hC(pe))return pe;if(ye.isWhite){if(ye.isClosing)return"";var Se=a0e(ae),ze=n[G],tt=n0e(Se.html,function(_e,it){var Ne=bC.indexOf(ze,_e)!==-1,qe=p(G,_e,it,Ne);return hC(qe)?Ne?(it=b(G,_e,it,A),it?_e+"="+$+it+$:_e):(qe=y(G,_e,it,Ne),hC(qe)?void 0:qe):qe});return ae="<"+G,tt&&(ae+=" "+tt),Se.closing&&(ae+=" /"),ae+=">",ae}else return pe=d(G,ae,ye),hC(pe)?w(ae):pe},w);return R&&(Y=R.remove(Y)),Y};var l0e=N3;(function(e,a){var t=Br,n=cE,h=l0e;function d(y,b){var w=new h(b);return w.process(y)}a=e.exports=d,a.filterXSS=d,a.FilterXSS=h,function(){for(var y in t)a[y]=t[y];for(var b in n)a[b]=n[b]}(),typeof window!="undefined"&&(window.filterXSS=e.exports);function p(){return typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope}p()&&(self.filterXSS=e.exports)})(rN,rN.exports);var u0e=rN.exports,h0e=Be(u0e);function e6(e,a){var t=Ki(e);if(PC){var n=PC(e);a&&(n=Rt(n).call(n,function(h){return hE(e,h).enumerable})),t.push.apply(t,n)}return t}function t6(e){for(var a=1;a1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},b=e._idProp,w=new k_({fieldId:b}),$=xn(a=uye(e)).call(a,function(A){var R;return sL(R=Ki(A)).call(R,function(Y,V){return Y[V]=gL(A[V],y[V]),Y},{})}).to(w);return $.all().start(),{add:function(){var R;return(R=e.getDataSet()).add.apply(R,arguments)},remove:function(){var R;return(R=e.getDataSet()).remove.apply(R,arguments)},update:function(){var R;return(R=e.getDataSet()).update.apply(R,arguments)},updateOnly:function(){var R;return(R=e.getDataSet()).updateOnly.apply(R,arguments)},clear:function(){var R;return(R=e.getDataSet()).clear.apply(R,arguments)},forEach:Ee(t=Tt(w)).call(t,w),get:Ee(n=w.get).call(n,w),getIds:Ee(h=w.getIds).call(h,w),off:Ee(d=w.off).call(d,w),on:Ee(p=w.on).call(p,w),get length(){return w.length},idProp:b,type:y,rawDS:e,coercedDS:w,dispose:function(){return $.stop()}}}var L3=function(a){var t=new h0e.FilterXSS(a);return function(n){return t.process(n)}},d0e=function(a){return a},aN=L3(),f0e=function(a){a&&(a.disabled===!0?(aN=d0e,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):a.filterOptions&&(aN=L3(a.filterOptions)))},ee=t6(t6({},Tue),{},{convert:gL,setupXSSProtection:f0e});dL(ee,"xss",{get:function(){return aN}});var F3=Dr,v0e=Yt,p0e=Zt,m0e=Qo,g0e=DH.trim,y0e=jN,b0e=p0e("".charAt),AC=F3.parseFloat,r6=F3.Symbol,i6=r6&&r6.iterator,_0e=1/AC(y0e+"-0")!==-1/0||i6&&!v0e(function(){AC(Object(i6))}),w0e=_0e?function(a){var t=g0e(m0e(a)),n=AC(t);return n===0&&b0e(t,0)==="-"?-0:n}:AC,k0e=He,n6=w0e;k0e({global:!0,forced:parseFloat!==n6},{parseFloat:n6});var S0e=tr,x0e=S0e.parseFloat,T0e=x0e,C0e=T0e,E0e=C0e,RC=Be(E0e),wp=function(){function e(a,t){br(this,e),this.options=null,this.props=null}return _r(e,[{key:"setOptions",value:function(t){t&&ee.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}}]),e}(),D0e=T_,O0e=Qo,$0e=Gg,P0e=RangeError,I0e=function(a){var t=O0e($0e(this)),n="",h=D0e(a);if(h<0||h===1/0)throw new P0e("Wrong number of repetitions");for(;h>0;(h>>>=1)&&(t+=t))h&1&&(n+=t);return n},M0e=He,A0e=I0e;M0e({target:"String",proto:!0},{repeat:A0e});var R0e=Yr,N0e=R0e("String").repeat,L0e=Cr,F0e=N0e,pR=String.prototype,j0e=function(e){var a=e.repeat;return typeof e=="string"||e===pR||L0e(pR,e)&&a===pR.repeat?F0e:a},Y0e=j0e,B0e=Y0e,H0e=B0e,Sg=Be(H0e);function yL(e,a,t){if(t&&!Ot(t))return yL(e,a,[t]);if(a.hiddenDates=[],t&&Ot(t)==!0){for(var n,h=0;h=4*p){var A=0,R=h.clone();switch(Sg(t[y])){case"daily":b.day()!=w.day()&&(A=1),b=b.dayOfYear(n.dayOfYear()).year(n.year()).subtract(7,"days"),w=w.dayOfYear(n.dayOfYear()).year(n.year()).subtract(7-A,"days"),R.add(1,"weeks");break;case"weekly":{var Y=w.diff(b,"days"),V=b.day();b=b.date(n.date()).month(n.month()).year(n.year()),w=b.clone(),b=b.day(V).subtract(1,"weeks"),w=w.day(V).add(Y,"days").subtract(1,"weeks"),R.add(1,"weeks");break}case"monthly":b.month()!=w.month()&&(A=1),b=b.month(n.month()).year(n.year()).subtract(1,"months"),w=w.month(n.month()).year(n.year()).subtract(1,"months").add(A,"months"),R.add(1,"months");break;case"yearly":b.year()!=w.year()&&(A=1),b=b.year(n.year()).subtract(1,"years"),w=w.year(n.year()).subtract(1,"years").add(A,"years"),R.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Sg(t[y]));return}for(;b=t[h].start&&t[d].end<=t[h].end?t[d].remove=!0:t[d].start>=t[h].start&&t[d].start<=t[h].end?(t[h].end=t[d].end,t[d].remove=!0):t[d].end>=t[h].start&&t[d].end<=t[h].end&&(t[h].start=t[d].start,t[d].remove=!0));for(h=0;h=p&&he.range.end){var y={start:e.range.start,end:a};return a=s6(e.options.moment,e.body.hiddenDates,y,a),n=e.range.conversion(t,d),(a.valueOf()-n.offset)*n.scale}else return a=s6(e.options.moment,e.body.hiddenDates,e.range,a),n=e.range.conversion(t,d),(a.valueOf()-n.offset)*n.scale}function o6(e,a,t){if(e.body.hiddenDates.length==0){var n=e.range.conversion(t);return new Date(a/n.scale+n.offset)}else{var h=u_(e.body.hiddenDates,e.range.start,e.range.end),d=e.range.end-e.range.start-h,p=d*a/t,y=U0e(e.body.hiddenDates,e.range,p);return new Date(y+p+e.range.start)}}function u_(e,a,t){for(var n=0,h=0;h=a&&p=a&&p<=t&&(n+=p-d)}return n}function s6(e,a,t,n){return n=e(n).toDate().valueOf(),n-=LC(e,a,t,n),n}function LC(e,a,t,n){var h=0;n=e(n).toDate().valueOf();for(var d=0;d=t.start&&y=y&&(h+=y-p)}return h}function U0e(e,a,t){for(var n=0,h=0,d=a.start,p=0;p=a.start&&b=t)break;n+=b-y}}return n}function rp(e,a,t,n){var h=FC(a,e);return h.hidden==!0?t<0?h.startDate-(h.endDate-a)-1:h.endDate+(a-h.startDate)+1:a}function FC(e,a){for(var t=0;t=n&&e1e3&&(p=1e3),h.body.dom.rollingModeBtn.style.visibility="hidden",h.currentTimeTimer=Zo(d,p)}d()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(h,d,p,y,b){p||(p={}),p.byUser!==!0&&(p.byUser=!1);var w=this,$=h!=null?ee.convert(h,"Date").valueOf():null,A=d!=null?ee.convert(d,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,p.animation){var R=this.start,Y=this.end,V=bt(p.animation)==="object"&&"duration"in p.animation?p.animation.duration:500,oe=bt(p.animation)==="object"&&"easingFunction"in p.animation?p.animation.easingFunction:"easeInOutQuad",G=ee.easingFunctions[oe];if(!G){var ae;throw new Error(Cn(ae="Unknown easing function ".concat(Ha(oe),". Choose from: ")).call(ae,Ki(ee.easingFunctions).join(", ")))}var ve=bo(),ye=!1,pe=function tt(){if(!w.props.touch.dragging){var _e=bo(),it=_e-ve,Ne=G(it/V),qe=it>V,Fe=qe||$===null?$:R+($-R)*Ne,Ye=qe||A===null?A:Y+(A-Y)*Ne;Se=w._applyRange(Fe,Ye),NC(w.options.moment,w.body,w.options.hiddenDates),ye=ye||Se;var ir={start:new Date(w.start),end:new Date(w.end),byUser:p.byUser,event:p.event};if(b&&b(Ne,Se,qe),Se&&w.body.emitter.emit("rangechange",ir),qe){if(ye&&(w.body.emitter.emit("rangechanged",ir),y))return y()}else w.animationTimer=Zo(tt,20)}};return pe()}else{var Se=this._applyRange($,A);if(NC(this.options.moment,this.body,this.options.hiddenDates),Se){var ze={start:new Date(this.start),end:new Date(this.end),byUser:p.byUser,event:p.event};if(this.body.emitter.emit("rangechange",ze),clearTimeout(w.timeoutID),w.timeoutID=Zo(function(){w.body.emitter.emit("rangechanged",ze)},200),y)return y()}}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(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(h,d){var p=h!=null?ee.convert(h,"Date").valueOf():this.start,y=d!=null?ee.convert(d,"Date").valueOf():this.end,b=this.options.max!=null?ee.convert(this.options.max,"Date").valueOf():null,w=this.options.min!=null?ee.convert(this.options.min,"Date").valueOf():null,$;if(isNaN(p)||p===null)throw new Error('Invalid start "'.concat(h,'"'));if(isNaN(y)||y===null)throw new Error('Invalid end "'.concat(d,'"'));if(yb&&(y=b)),b!==null&&y>b&&($=y-b,p-=$,y-=$,w!=null&&p=this.start-R&&y<=this.end?(p=this.start,y=this.end):($=A-(y-p),p-=$/2,y+=$/2)}}if(this.options.zoomMax!==null){var Y=RC(this.options.zoomMax);Y<0&&(Y=0),y-p>Y&&(this.end-this.start===Y&&pthis.end?(p=this.start,y=this.end):($=y-p-Y,p+=$/2,y-=$/2))}var V=this.start!=p||this.end!=y;return!(p>=this.start&&p<=this.end||y>=this.start&&y<=this.end)&&!(this.start>=p&&this.start<=y||this.end>=p&&this.end<=y)&&this.body.emitter.emit("checkRangedItems"),this.start=p,this.end=y,V}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(h,d){return t.conversion(this.start,this.end,h,d)}},{key:"_onDragStart",value:function(h){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(h)&&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(h){if(h&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var d=this.options.direction;l6(d);var p=d=="horizontal"?h.deltaX:h.deltaY;p-=this.deltaDifference;var y=this.props.touch.end-this.props.touch.start,b=u_(this.body.hiddenDates,this.start,this.end);y-=b;var w=d=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height,$;this.options.rtl?$=p/w*y:$=-p/w*y;var A=this.props.touch.start+$,R=this.props.touch.end+$,Y=rp(this.body.hiddenDates,A,this.previousDelta-p),V=rp(this.body.hiddenDates,R,this.previousDelta-p);if(Y!=A||V!=R){this.deltaDifference+=p,this.props.touch.start=Y,this.props.touch.end=V,this._onDrag(h);return}this.previousDelta=p,this._applyRange(A,R);var oe=new Date(this.start),G=new Date(this.end);this.body.emitter.emit("rangechange",{start:oe,end:G,byUser:!0,event:h}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(h){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:h}))}},{key:"_onMouseWheel",value:function(h){var d=0;if(h.wheelDelta?d=h.wheelDelta/120:h.detail?d=-h.detail/3:h.deltaY&&(d=-h.deltaY/3),!(this.options.zoomKey&&!h[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(h)&&d){var p=this.options.zoomFriction||5,y;d<0?y=1-d/p:y=1/(1+d/p);var b;if(this.rolling){var w=this.options.rollingMode&&this.options.rollingMode.offset||.5;b=this.start+(this.end-this.start)*w}else{var $=this.getPointer({x:h.clientX,y:h.clientY},this.body.dom.center);b=this._pointerToDate($)}this.zoom(y,b,d,h),h.preventDefault()}}},{key:"_onTouch",value:function(h){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,ee.preventDefault(h)}},{key:"_onPinch",value:function(h){if(this.options.zoomable&&this.options.moveable){ee.preventDefault(h),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(h.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var d=1/(h.scale+this.scaleOffset),p=this.props.touch.centerDate,y=u_(this.body.hiddenDates,this.start,this.end),b=LC(this.options.moment,this.body.hiddenDates,this,p),w=y-b,$=p-b+(this.props.touch.start-(p-b))*d,A=p+w+(this.props.touch.end-(p+w))*d;this.startToFront=1-d<=0,this.endToFront=d-1<=0;var R=rp(this.body.hiddenDates,$,1-d),Y=rp(this.body.hiddenDates,A,d-1);(R!=$||Y!=A)&&(this.props.touch.start=R,this.props.touch.end=Y,this.scaleOffset=1-h.scale,$=R,A=Y);var V={animation:!1,byUser:!0,event:h};this.setRange($,A,V),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(h){var d=h.center?h.center.x:h.clientX,p=this.body.dom.centerContainer.getBoundingClientRect(),y=this.options.rtl?d-p.left:p.right-d,b=this.body.util.toTime(y);return b>=this.start&&b<=this.end}},{key:"_pointerToDate",value:function(h){var d,p=this.options.direction;if(l6(p),p=="horizontal")return this.body.util.toTime(h.x).valueOf();var y=this.body.domProps.center.height;return d=this.conversion(y),h.y/d.scale+d.offset}},{key:"getPointer",value:function(h,d){var p=d.getBoundingClientRect();return this.options.rtl?{x:p.right-h.x,y:h.y-p.top}:{x:h.x-p.left,y:h.y-p.top}}},{key:"zoom",value:function(h,d,p,y){d==null&&(d=(this.start+this.end)/2);var b=u_(this.body.hiddenDates,this.start,this.end),w=LC(this.options.moment,this.body.hiddenDates,this,d),$=b-w,A=d-w+(this.start-(d-w))*h,R=d+$+(this.end-(d+$))*h;this.startToFront=!(p>0),this.endToFront=!(-p>0);var Y=rp(this.body.hiddenDates,A,p),V=rp(this.body.hiddenDates,R,-p);(Y!=A||V!=R)&&(A=Y,R=V);var oe={animation:!1,byUser:!0,event:y};this.setRange(A,R,oe),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(h){var d=this.end-this.start,p=this.start+d*h,y=this.end+d*h;this.start=p,this.end=y}},{key:"moveTo",value:function(h){var d=(this.start+this.end)/2,p=d-h,y=this.start-p,b=this.end-p,w={animation:!1,byUser:!0,event:null};this.setRange(y,b,w)}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(h,d,p,y){return y===void 0&&(y=0),p!=0&&d-h!=0?{offset:h,scale:p/(d-h-y)}:{offset:0,scale:1}}}]),t}(wp);function l6(e){if(e!="horizontal"&&e!="vertical")throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var X0e=tr,Z0e=X0e.setInterval,J0e=Z0e,Q0e=Be(J0e),cC=null;function oN(e,a){var t=a||{preventDefault:!1};if(e.Manager){var n=e,h=function(w,$){var A=Object.create(t);return $&&n.assign(A,$),oN(new n(w,A),A)};return n.assign(h,n),h.Manager=function(w,$){var A=Object.create(t);return $&&n.assign(A,$),oN(new n.Manager(w,A),A)},h}var d=Object.create(e),p=e.element;p.hammer||(p.hammer=[]),p.hammer.push(d),e.on("hammer.input",function(w){(t.preventDefault===!0||t.preventDefault===w.pointerType)&&w.preventDefault(),w.isFirst&&(cC=w.target)}),d._handlers={},d.on=function(w,$){return y(w).forEach(function(A){var R=d._handlers[A];R||(d._handlers[A]=R=[],e.on(A,b)),R.push($)}),d},d.off=function(w,$){return y(w).forEach(function(A){var R=d._handlers[A];R&&(R=$?R.filter(function(Y){return Y!==$}):[],R.length>0?d._handlers[A]=R:(e.off(A,b),delete d._handlers[A]))}),d},d.emit=function(w,$){cC=$.target,e.emit(w,$)},d.destroy=function(){var w=e.element.hammer,$=w.indexOf(d);$!==-1&&w.splice($,1),w.length||delete e.element.hammer,d._handlers={},e.destroy()};function y(w){return w.match(/[^ ]+/g)}function b(w){if(w.type!=="hammer.input"){if(w.srcEvent._handled||(w.srcEvent._handled={}),w.srcEvent._handled[w.type])return;w.srcEvent._handled[w.type]=!0}var $=!1;w.stopPropagation=function(){$=!0};var A=w.srcEvent.stopPropagation.bind(w.srcEvent);typeof A=="function"&&(w.srcEvent.stopPropagation=function(){A(),w.stopPropagation()}),w.firstTarget=cC;for(var R=cC;R&&!$;){var Y=R.hammer;if(Y){for(var V,oe=0;oe0&&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(t!=null){var n=1e3*60*60*24*30*12,h=1e3*60*60*24*30,d=1e3*60*60*24,p=1e3*60*60,y=1e3*60,b=1e3,w=1;n*1e3>t&&(this.scale="year",this.step=1e3),n*500>t&&(this.scale="year",this.step=500),n*100>t&&(this.scale="year",this.step=100),n*50>t&&(this.scale="year",this.step=50),n*10>t&&(this.scale="year",this.step=10),n*5>t&&(this.scale="year",this.step=5),n>t&&(this.scale="year",this.step=1),h*3>t&&(this.scale="month",this.step=3),h>t&&(this.scale="month",this.step=1),d*7>t&&this.options.showWeekScale&&(this.scale="week",this.step=1),d*2>t&&(this.scale="day",this.step=2),d>t&&(this.scale="day",this.step=1),d/2>t&&(this.scale="weekday",this.step=1),p*4>t&&(this.scale="hour",this.step=4),p>t&&(this.scale="hour",this.step=1),y*15>t&&(this.scale="minute",this.step=15),y*10>t&&(this.scale="minute",this.step=10),y*5>t&&(this.scale="minute",this.step=5),y>t&&(this.scale="minute",this.step=1),b*15>t&&(this.scale="second",this.step=15),b*10>t&&(this.scale="second",this.step=10),b*5>t&&(this.scale="second",this.step=5),b>t&&(this.scale="second",this.step=1),w*200>t&&(this.scale="millisecond",this.step=200),w*100>t&&(this.scale="millisecond",this.step=100),w*50>t&&(this.scale="millisecond",this.step=50),w*10>t&&(this.scale="millisecond",this.step=10),w*5>t&&(this.scale="millisecond",this.step=5),w>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==!0)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(this.switchedMonth==!0)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==!0)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 t.milliseconds()==0;case"second":return t.seconds()==0;case"minute":return t.hours()==0&&t.minutes()==0;case"hour":return t.hours()==0;case"weekday":case"day":return this.options.showWeekScale?t.isoWeekday()==1:t.date()==1;case"week":return t.date()==1;case"month":return t.month()==0;case"year":return!1;default:return!1}}},{key:"getLabelMinor",value:function(t){if(t==null&&(t=this.current),t instanceof Date&&(t=this.moment(t)),typeof this.format.minorLabels=="function")return this.format.minorLabels(t,this.scale,this.step);var n=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(t.date()===1&&t.weekday()!==0)return"";default:return n&&n.length>0?this.moment(t).format(n):""}}},{key:"getLabelMajor",value:function(t){if(t==null&&(t=this.current),t instanceof Date&&(t=this.moment(t)),typeof this.format.majorLabels=="function")return this.format.majorLabels(t,this.scale,this.step);var n=this.format.majorLabels[this.scale];return n&&n.length>0?this.moment(t).format(n):""}},{key:"getClassName",value:function(){var t,n=this.moment,h=this.moment(this.current),d=h.locale?h.locale("en"):h.lang("en"),p=this.step,y=[];function b(Y){return Y/p%2==0?" vis-even":" vis-odd"}function w(Y){return Y.isSame(bo(),"day")?" vis-today":Y.isSame(n().add(1,"day"),"day")?" vis-tomorrow":Y.isSame(n().add(-1,"day"),"day")?" vis-yesterday":""}function $(Y){return Y.isSame(bo(),"week")?" vis-current-week":""}function A(Y){return Y.isSame(bo(),"month")?" vis-current-month":""}function R(Y){return Y.isSame(bo(),"year")?" vis-current-year":""}switch(this.scale){case"millisecond":y.push(w(d)),y.push(b(d.milliseconds()));break;case"second":y.push(w(d)),y.push(b(d.seconds()));break;case"minute":y.push(w(d)),y.push(b(d.minutes()));break;case"hour":y.push(Cn(t="vis-h".concat(d.hours())).call(t,this.step==4?"-h"+(d.hours()+4):"")),y.push(w(d)),y.push(b(d.hours()));break;case"weekday":y.push("vis-".concat(d.format("dddd").toLowerCase())),y.push(w(d)),y.push($(d)),y.push(b(d.date()));break;case"day":y.push("vis-day".concat(d.date())),y.push("vis-".concat(d.format("MMMM").toLowerCase())),y.push(w(d)),y.push(A(d)),y.push(this.step<=2?w(d):""),y.push(this.step<=2?"vis-".concat(d.format("dddd").toLowerCase()):""),y.push(b(d.date()-1));break;case"week":y.push("vis-week".concat(d.format("w"))),y.push($(d)),y.push(b(d.week()));break;case"month":y.push("vis-".concat(d.format("MMMM").toLowerCase())),y.push(A(d)),y.push(b(d.month()));break;case"year":y.push("vis-year".concat(d.year())),y.push(R(d)),y.push(b(d.year()));break}return Rt(y).call(y,String).join(" ")}}],[{key:"snap",value:function(t,n,h){var d=Mi(t);if(n=="year"){var p=d.year()+Math.round(d.month()/12);d=d.year(Math.round(p/h)*h).month(0).date(0).hours(0).minutes(0).seconds(0).milliseconds(0)}else if(n=="month")d.date()>15?d=d.date(1).add(1,"month"):d=d.date(1),d=d.hours(0).minutes(0).seconds(0).milliseconds(0);else if(n=="week")d.weekday()>2?d=d.weekday(0).add(1,"week"):d=d.weekday(0),d=d.hours(0).minutes(0).seconds(0).milliseconds(0);else if(n=="day"){switch(h){case 5:case 2:d=d.hours(Math.round(d.hours()/24)*24);break;default:d=d.hours(Math.round(d.hours()/12)*12);break}d=d.minutes(0).seconds(0).milliseconds(0)}else if(n=="weekday"){switch(h){case 5:case 2:d=d.hours(Math.round(d.hours()/12)*12);break;default:d=d.hours(Math.round(d.hours()/6)*6);break}d=d.minutes(0).seconds(0).milliseconds(0)}else if(n=="hour"){switch(h){case 4:d=d.minutes(Math.round(d.minutes()/60)*60);break;default:d=d.minutes(Math.round(d.minutes()/30)*30);break}d=d.seconds(0).milliseconds(0)}else if(n=="minute"){switch(h){case 15:case 10:d=d.minutes(Math.round(d.minutes()/5)*5).seconds(0);break;case 5:d=d.seconds(Math.round(d.seconds()/60)*60);break;default:d=d.seconds(Math.round(d.seconds()/30)*30);break}d=d.milliseconds(0)}else if(n=="second")switch(h){case 15:case 10:d=d.seconds(Math.round(d.seconds()/5)*5).milliseconds(0);break;case 5:d=d.milliseconds(Math.round(d.milliseconds()/1e3)*1e3);break;default:d=d.milliseconds(Math.round(d.milliseconds()/500)*500);break}else if(n=="millisecond"){var y=h>5?h/2:1;d=d.milliseconds(Math.round(d.milliseconds()/y)*y)}return d}}]),e}();lN.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:""}};function ca(e,a){a===void 0&&(a={});var t=a.insertAt;if(!(!e||typeof document=="undefined")){var n=document.head||document.getElementsByTagName("head")[0],h=document.createElement("style");h.type="text/css",t==="top"&&n.firstChild?n.insertBefore(h,n.firstChild):n.appendChild(h),h.styleSheet?h.styleSheet.cssText=e:h.appendChild(document.createTextNode(e))}}var ibe=`.vis-time-axis { position: relative; overflow: hidden; } .vis-time-axis.vis-foreground { top: 0; left: 0; width: 100%; } .vis-time-axis.vis-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .vis-time-axis .vis-text { position: absolute; color: #4d4d4d; padding: 3px; overflow: hidden; box-sizing: border-box; white-space: nowrap; } .vis-time-axis .vis-text.vis-measure { position: absolute; padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; visibility: hidden; } .vis-time-axis .vis-grid.vis-vertical { position: absolute; border-left: 1px solid; } .vis-time-axis .vis-grid.vis-vertical-rtl { position: absolute; border-right: 1px solid; } .vis-time-axis .vis-grid.vis-minor { border-color: #e5e5e5; } .vis-time-axis .vis-grid.vis-major { border-color: #bfbfbf; } `;ca(ibe);function nbe(e){var a=abe();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function abe(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var uN=function(e){Lh(t,e);var a=nbe(t);function t(n,h){var d;return br(this,t),d=a.call(this),d.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},d.props={range:{start:0,end:0,minimumStep:0},lineTop:0},d.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:ee.extend({},lN.FORMAT),moment:Mi,timeAxis:null},d.options=ee.extend({},d.defaultOptions),d.body=n,d._create(),d.setOptions(h),d}return _r(t,[{key:"setOptions",value:function(h){h&&(ee.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,h),ee.selectiveDeepExtend(["format"],this.options,h),"orientation"in h&&(typeof h.orientation=="string"?this.options.orientation.axis=h.orientation:bt(h.orientation)==="object"&&"axis"in h.orientation&&(this.options.orientation.axis=h.orientation.axis)),"locale"in h&&(typeof Mi.locale=="function"?Mi.locale(h.locale):Mi.lang(h.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 h=this.props,d=this.dom.foreground,p=this.dom.background,y=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,b=d.parentNode!==y;this._calculateCharSize();var w=this.options.showMinorLabels&&this.options.orientation.axis!=="none",$=this.options.showMajorLabels&&this.options.orientation.axis!=="none";h.minorLabelHeight=w?h.minorCharHeight:0,h.majorLabelHeight=$?h.majorCharHeight:0,h.height=h.minorLabelHeight+h.majorLabelHeight,h.width=d.offsetWidth,h.minorLineHeight=this.body.domProps.root.height-h.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),h.minorLineWidth=1,h.majorLineHeight=h.minorLineHeight+h.majorLabelHeight,h.majorLineWidth=1;var A=d.nextSibling,R=p.nextSibling;return d.parentNode&&d.parentNode.removeChild(d),p.parentNode&&p.parentNode.removeChild(p),d.style.height="".concat(this.props.height,"px"),this._repaintLabels(),A?y.insertBefore(d,A):y.appendChild(d),R?this.body.dom.backgroundVertical.insertBefore(p,R):this.body.dom.backgroundVertical.appendChild(p),this._isResized()||b}},{key:"_repaintLabels",value:function(){var h=this.options.orientation.axis,d=ee.convert(this.body.range.start,"Number"),p=ee.convert(this.body.range.end,"Number"),y=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),b=y-LC(this.options.moment,this.body.hiddenDates,this.body.range,y);b-=this.body.util.toTime(0).valueOf();var w=new lN(new Date(d),new Date(p),b,this.body.hiddenDates,this.options);w.setMoment(this.options.moment),this.options.format&&w.setFormat(this.options.format),this.options.timeAxis&&w.setScale(this.options.timeAxis),this.step=w;var $=this.dom;$.redundant.lines=$.lines,$.redundant.majorTexts=$.majorTexts,$.redundant.minorTexts=$.minorTexts,$.lines=[],$.majorTexts=[],$.minorTexts=[];var A,R,Y,V,oe,G,ae=0,ve,ye,pe=void 0,Se=0,ze=1e3,tt;for(w.start(),R=w.getCurrent(),V=this.body.util.toScreen(R);w.hasNext()&&Se=ve*.4;break}if(this.options.showMinorLabels&&G){var _e=this._repaintMinorText(Y,w.getLabelMinor(A),h,tt);_e.style.width="".concat(ae,"px")}oe&&this.options.showMajorLabels?(Y>0&&(pe==null&&(pe=Y),_e=this._repaintMajorText(Y,w.getLabelMajor(A),h,tt)),ye=this._repaintMajorLine(Y,ae,h,tt)):G?ye=this._repaintMinorLine(Y,ae,h,tt):ye&&(ye.style.width="".concat(Vs(ye.style.width)+ae,"px"))}if(Se===ze&&!h6&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(ze," lines.")),h6=!0),this.options.showMajorLabels){var it=this.body.util.toTime(0),Ne=w.getLabelMajor(it),qe=Ne.length*(this.props.majorCharWidth||10)+10;(pe==null||qe .vis-custom-time-marker { background-color: inherit; color: white; font-size: 12px; white-space: nowrap; padding: 3px 5px; top: 0px; cursor: initial; z-index: inherit; }`;ca(Pbe);function Ibe(e){var a=Mbe();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function Mbe(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var q3=function(e){Lh(t,e);var a=Ibe(t);function t(n,h){var d,p;br(this,t),p=a.call(this),p.body=n,p.defaultOptions={moment:Mi,locales:Bg,locale:"en",id:void 0,title:void 0},p.options=ee.extend({},p.defaultOptions),p.setOptions(h),p.options.locales=ee.extend({},Bg,p.options.locales);var y=p.defaultOptions.locales[p.defaultOptions.locale];return Tt(d=Ki(p.options.locales)).call(d,function(b){p.options.locales[b]=ee.extend({},y,p.options.locales[b])}),h&&h.time!=null?p.customTime=h.time:p.customTime=new Date,p.eventParams={},p._create(),p}return _r(t,[{key:"setOptions",value:function(h){h&&ee.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,h)}},{key:"_create",value:function(){var h,d,p,y=document.createElement("div");y["custom-time"]=this,y.className="vis-custom-time ".concat(this.options.id||""),y.style.position="absolute",y.style.top="0px",y.style.height="100%",this.bar=y;var b=document.createElement("div");b.style.position="relative",b.style.top="0px",this.options.rtl?b.style.right="-10px":b.style.left="-10px",b.style.height="100%",b.style.width="20px";function w($){this.body.range._onMouseWheel($)}b.addEventListener?(b.addEventListener("mousewheel",Ee(w).call(w,this),!1),b.addEventListener("DOMMouseScroll",Ee(w).call(w,this),!1)):b.attachEvent("onmousewheel",Ee(w).call(w,this)),y.appendChild(b),this.hammer=new eu(b),this.hammer.on("panstart",Ee(h=this._onDragStart).call(h,this)),this.hammer.on("panmove",Ee(d=this._onDrag).call(d,this)),this.hammer.on("panend",Ee(p=this._onDragEnd).call(p,this)),this.hammer.get("pan").set({threshold:5,direction:eu.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var h=this.body.dom.backgroundVertical;this.bar.parentNode!=h&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),h.appendChild(this.bar));var d=this.body.util.toScreen(this.customTime),p=this.options.locales[this.options.locale];p||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),p=this.options.locales.en);var y=this.options.title;if(y===void 0){var b;y=Cn(b="".concat(p.time,": ")).call(b,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss")),y=y.charAt(0).toUpperCase()+y.substring(1)}else typeof y=="function"&&(y=y.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(d,"px"):this.bar.style.left="".concat(d,"px"),this.bar.title=y,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(h){this.customTime=ee.convert(h,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(h,d){if(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=ee.xss(h),this.marker.style.position="absolute",d){var p,y;this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",function(){this.marker.focus()}),this.marker.addEventListener("input",Ee(p=this._onMarkerChange).call(p,this)),this.marker.title=h,this.marker.addEventListener("blur",Ee(y=function(w){this.title!=w.target.innerHTML&&(this._onMarkerChanged(w),this.title=w.target.innerHTML)}).call(y,this))}this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(h){this.options.title=h}},{key:"_onDragStart",value:function(h){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,h.stopPropagation()}},{key:"_onDrag",value:function(h){if(this.eventParams.dragging){var d=this.options.rtl?-1*h.deltaX:h.deltaX,p=this.body.util.toScreen(this.eventParams.customTime)+d,y=this.body.util.toTime(p),b=this.body.util.getScale(),w=this.body.util.getStep(),$=this.options.snap,A=$?$(y,b,w):y;this.setCustomTime(A),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:h}),h.stopPropagation()}}},{key:"_onDragEnd",value:function(h){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:h}),h.stopPropagation())}},{key:"_onMarkerChange",value:function(h){this.body.emitter.emit("markerchange",{id:this.options.id,title:h.target.innerHTML,event:h}),h.stopPropagation()}},{key:"_onMarkerChanged",value:function(h){this.body.emitter.emit("markerchanged",{id:this.options.id,title:h.target.innerHTML,event:h}),h.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(h){for(var d=h.target;d;){if(d.hasOwnProperty("custom-time"))return d["custom-time"];d=d.parentNode}return null}}]),t}(wp),Abe=`.vis-timeline { /* -webkit-transition: height .4s ease-in-out; transition: height .4s ease-in-out; */ } .vis-panel { /* -webkit-transition: height .4s ease-in-out, top .4s ease-in-out; transition: height .4s ease-in-out, top .4s ease-in-out; */ } .vis-axis { /* -webkit-transition: top .4s ease-in-out; transition: top .4s ease-in-out; */ } /* TODO: get animation working nicely .vis-item { -webkit-transition: top .4s ease-in-out; transition: top .4s ease-in-out; } .vis-item.line { -webkit-transition: height .4s ease-in-out, top .4s ease-in-out; transition: height .4s ease-in-out, top .4s ease-in-out; } /**/`;ca(Abe);var Rbe=`.vis-current-time { background-color: #FF7F6E; width: 2px; z-index: 1; pointer-events: none; } .vis-rolling-mode-btn { height: 40px; width: 40px; position: absolute; top: 7px; right: 20px; border-radius: 50%; font-size: 28px; cursor: pointer; opacity: 0.8; color: white; font-weight: bold; text-align: center; background: #3876c2; } .vis-rolling-mode-btn:before { content: "\\26F6"; } .vis-rolling-mode-btn:hover { opacity: 1; }`;ca(Rbe);var Nbe=`.vis-panel { position: absolute; padding: 0; margin: 0; box-sizing: border-box; } .vis-panel.vis-center, .vis-panel.vis-left, .vis-panel.vis-right, .vis-panel.vis-top, .vis-panel.vis-bottom { border: 1px #bfbfbf; } .vis-panel.vis-center, .vis-panel.vis-left, .vis-panel.vis-right { border-top-style: solid; border-bottom-style: solid; overflow: hidden; } .vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll { height: 100%; overflow-x: hidden; overflow-y: scroll; } .vis-left.vis-panel.vis-vertical-scroll { direction: rtl; } .vis-left.vis-panel.vis-vertical-scroll .vis-content { direction: ltr; } .vis-right.vis-panel.vis-vertical-scroll { direction: ltr; } .vis-right.vis-panel.vis-vertical-scroll .vis-content { direction: rtl; } .vis-panel.vis-center, .vis-panel.vis-top, .vis-panel.vis-bottom { border-left-style: solid; border-right-style: solid; } .vis-background { overflow: hidden; } .vis-panel > .vis-content { position: relative; } .vis-panel .vis-shadow { position: absolute; width: 100%; height: 1px; box-shadow: 0 0 10px rgba(0,0,0,0.8); /* TODO: find a nice way to ensure vis-shadows are drawn on top of items z-index: 1; */ } .vis-panel .vis-shadow.vis-top { top: -1px; left: 0; } .vis-panel .vis-shadow.vis-bottom { bottom: -1px; left: 0; }`;ca(Nbe);var Lbe=`.vis-graph-group0 { fill:#4f81bd; fill-opacity:0; stroke-width:2px; stroke: #4f81bd; } .vis-graph-group1 { fill:#f79646; fill-opacity:0; stroke-width:2px; stroke: #f79646; } .vis-graph-group2 { fill: #8c51cf; fill-opacity:0; stroke-width:2px; stroke: #8c51cf; } .vis-graph-group3 { fill: #75c841; fill-opacity:0; stroke-width:2px; stroke: #75c841; } .vis-graph-group4 { fill: #ff0100; fill-opacity:0; stroke-width:2px; stroke: #ff0100; } .vis-graph-group5 { fill: #37d8e6; fill-opacity:0; stroke-width:2px; stroke: #37d8e6; } .vis-graph-group6 { fill: #042662; fill-opacity:0; stroke-width:2px; stroke: #042662; } .vis-graph-group7 { fill:#00ff26; fill-opacity:0; stroke-width:2px; stroke: #00ff26; } .vis-graph-group8 { fill:#ff00ff; fill-opacity:0; stroke-width:2px; stroke: #ff00ff; } .vis-graph-group9 { fill: #8f3938; fill-opacity:0; stroke-width:2px; stroke: #8f3938; } .vis-timeline .vis-fill { fill-opacity:0.1; stroke: none; } .vis-timeline .vis-bar { fill-opacity:0.5; stroke-width:1px; } .vis-timeline .vis-point { stroke-width:2px; fill-opacity:1.0; } .vis-timeline .vis-legend-background { stroke-width:1px; fill-opacity:0.9; fill: #ffffff; stroke: #c2c2c2; } .vis-timeline .vis-outline { stroke-width:1px; fill-opacity:1; fill: #ffffff; stroke: #e5e5e5; } .vis-timeline .vis-icon-fill { fill-opacity:0.3; stroke: none; } `;ca(Lbe);var Fbe=` .vis-timeline { position: relative; border: 1px solid #bfbfbf; overflow: hidden; padding: 0; margin: 0; box-sizing: border-box; } .vis-loading-screen { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }`;ca(Fbe);var jbe=`/* override some bootstrap styles screwing up the timelines css */ .vis [class*="span"] { min-height: 0; width: auto; } `;ca(jbe);var SL=function(){function e(){br(this,e)}return _r(e,[{key:"_create",value:function(t){var n=this,h,d,p;this.dom={},this.dom.container=t,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){n.initialDrawDone===!0&&n._redraw()}),this.on("rangechanged",function(){n.initialRangeChangeDone||(n.initialRangeChangeDone=!0)}),this.on("touch",Ee(h=this._onTouch).call(h,this)),this.on("panmove",Ee(d=this._onDrag).call(d,this));var y=this;this._origRedraw=Ee(p=this._redraw).call(p,this),this._redraw=ee.throttle(this._origRedraw),this.on("_change",function(G){y.itemSet&&y.itemSet.initialItemSetDrawn&&G&&G.queue==!0?y._redraw():y._origRedraw()}),this.hammer=new eu(this.dom.root);var b=this.hammer.get("pinch").set({enable:!0});b&&rbe(b),this.hammer.get("pan").set({threshold:5,direction:eu.DIRECTION_ALL}),this.timelineListeners={};var w=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Tt(w).call(w,function(G){var ae=function(ye){y.isActive()&&y.emit(G,ye)};y.hammer.on(G,ae),y.timelineListeners[G]=ae}),j3(this.hammer,function(G){y.emit("touch",G)}),tbe(this.hammer,function(G){y.emit("release",G)});function $(G){var ae=40,ve=800;this.isActive()&&this.emit("mousewheel",G);var ye=0,pe=0;if("detail"in G&&(pe=G.detail*-1),"wheelDelta"in G&&(pe=G.wheelDelta),"wheelDeltaY"in G&&(pe=G.wheelDeltaY),"wheelDeltaX"in G&&(ye=G.wheelDeltaX*-1),"axis"in G&&G.axis===G.HORIZONTAL_AXIS&&(ye=pe*-1,pe=0),"deltaY"in G&&(pe=G.deltaY*-1),"deltaX"in G&&(ye=G.deltaX),G.deltaMode&&(G.deltaMode===1?(ye*=ae,pe*=ae):(ye*=ae,pe*=ve)),this.options.preferZoom){if(!this.options.zoomKey||G[this.options.zoomKey])return}else if(this.options.zoomKey&&G[this.options.zoomKey])return;if(!(!this.options.verticalScroll&&!this.options.horizontalScroll)){if(this.options.verticalScroll&&Math.abs(pe)>=Math.abs(ye)){var Se=this.props.scrollTop,ze=Se+pe;if(this.isActive()){var tt=this._setScrollTop(ze);tt!==Se&&(this._redraw(),this.emit("scroll",G),G.preventDefault())}}else if(this.options.horizontalScroll){var _e=Math.abs(ye)>=Math.abs(pe)?ye:pe,it=_e/120*(this.range.end-this.range.start)/20,Ne=this.range.start+it,qe=this.range.end+it,Fe={animation:!1,byUser:!0,event:G};this.range.setRange(Ne,qe,Fe),G.preventDefault()}}}var A="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(A,Ee($).call($,this),!1),this.dom.top.addEventListener(A,Ee($).call($,this),!1),this.dom.bottom.addEventListener(A,Ee($).call($,this),!1);function R(G){if(y.options.verticalScroll&&(G.preventDefault(),y.isActive())){var ae=-G.target.scrollTop;y._setScrollTop(ae),y._redraw(),y.emit("scrollSide",G)}}this.dom.left.parentNode.addEventListener("scroll",Ee(R).call(R,this)),this.dom.right.parentNode.addEventListener("scroll",Ee(R).call(R,this));var Y=!1;function V(G){var ae;if(G.preventDefault&&(y.emit("dragover",y.getEventProperties(G)),G.preventDefault()),oi(ae=G.target.className).call(ae,"timeline")>-1&&!Y)return G.dataTransfer.dropEffect="move",Y=!0,!1}function oe(G){G.preventDefault&&G.preventDefault(),G.stopPropagation&&G.stopPropagation();try{var ae=JSON.parse(G.dataTransfer.getData("text"));if(!ae||!ae.content)return}catch(ve){return!1}return Y=!1,G.center={x:G.clientX,y:G.clientY},ae.target!=="item"?y.itemSet._onAddItem(G):y.itemSet._onDropObjectOnItem(G),y.emit("drop",y.getEventProperties(G)),!1}if(this.dom.center.addEventListener("dragover",Ee(V).call(V,this),!1),this.dom.center.addEventListener("drop",Ee(oe).call(oe,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 n;if(t){var h=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"];if(ee.selectiveExtend(h,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"),bt(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&(typeof t.orientation=="string"?this.options.orientation={item:t.orientation,axis:t.orientation}:bt(t.orientation)==="object"&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var d=this.timeAxis2=new uN(this.body,this.options);d.setOptions=function(A){var R=A?ee.extend({},A):{};R.orientation="top",uN.prototype.setOptions.call(d,R)},this.components.push(d)}}else if(this.timeAxis2){var p,y=oi(p=this.components).call(p,this.timeAxis2);if(y!==-1){var b;Ks(b=this.components).call(b,y,1)}this.timeAxis2.destroy(),this.timeAxis2=null}typeof t.drawPoints=="function"&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&yL(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new Xo(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(Tt(n=this.components).call(n,function(A){return A.setOptions(t)}),"configure"in t){var w;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var $=ee.deepExtend({},this.options);Tt(w=this.components).call(w,function(A){ee.deepExtend($,A.options)}),this.configurator.setModuleOptions({global:$})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var t;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);for(var n in this.timelineListeners)this.timelineListeners.hasOwnProperty(n)&&delete this.timelineListeners[n];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,Tt(t=this.components).call(t,function(h){return h.destroy()}),this.body=null}},{key:"setCustomTime",value:function(t,n){var h,d=Rt(h=this.customTimes).call(h,function(p){return n===p.options.id});if(d.length===0)throw new Error("No custom time bar found with id ".concat(Ha(n)));d.length>0&&d[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var n,h=Rt(n=this.customTimes).call(n,function(d){return d.options.id===t});if(h.length===0)throw new Error("No custom time bar found with id ".concat(Ha(t)));return h[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,n,h){var d,p=Rt(d=this.customTimes).call(d,function(y){return y.options.id===n});if(p.length===0)throw new Error("No custom time bar found with id ".concat(Ha(n)));p.length>0&&p[0].setCustomMarker(t,h)}},{key:"setCustomTimeTitle",value:function(t,n){var h,d=Rt(h=this.customTimes).call(h,function(p){return p.options.id===n});if(d.length===0)throw new Error("No custom time bar found with id ".concat(Ha(n)));if(d.length>0)return d[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,n){var h,d=t!==void 0?ee.convert(t,"Date"):new Date,p=c3(h=this.customTimes).call(h,function(b){return b.options.id===n});if(p)throw new Error("A custom time with id ".concat(Ha(n)," already exists"));var y=new q3(this.body,ee.extend({},this.options,{time:d,id:n,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(y),this.components.push(y),this._redraw(),n}},{key:"removeCustomTime",value:function(t){var n,h=this,d=Rt(n=this.customTimes).call(n,function(p){return p.options.id===t});if(d.length===0)throw new Error("No custom time bar found with id ".concat(Ha(t)));Tt(d).call(d,function(p){var y,b,w,$;Ks(y=h.customTimes).call(y,oi(b=h.customTimes).call(b,p),1),Ks(w=h.components).call(w,oi($=h.components).call($,p),1),p.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,n){var h=this.getDataRange();if(!(h.min===null&&h.max===null)){var d=h.max-h.min,p=new Date(h.min.valueOf()-d*.01),y=new Date(h.max.valueOf()+d*.01),b=t&&t.animation!==void 0?t.animation:!0;this.range.setRange(p,y,{animation:b},n)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,n,h,d){typeof arguments[2]=="function"&&(d=arguments[2],h={});var p,y;arguments.length==1?(y=arguments[0],p=y.animation!==void 0?y.animation:!0,this.range.setRange(y.start,y.end,{animation:p})):arguments.length==2&&typeof arguments[1]=="function"?(y=arguments[0],d=arguments[1],p=y.animation!==void 0?y.animation:!0,this.range.setRange(y.start,y.end,{animation:p},d)):(p=h&&h.animation!==void 0?h.animation:!0,this.range.setRange(t,n,{animation:p},d))}},{key:"moveTo",value:function(t,n,h){typeof arguments[1]=="function"&&(h=arguments[1],n={});var d=this.range.end-this.range.start,p=ee.convert(t,"Date").valueOf(),y=p-d/2,b=p+d/2,w=n&&n.animation!==void 0?n.animation:!0;this.range.setRange(y,b,{animation:w},h)}},{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,n,h){if(!(!t||t<0||t>1)){typeof arguments[1]=="function"&&(h=arguments[1],n={});var d=this.getWindow(),p=d.start.valueOf(),y=d.end.valueOf(),b=y-p,w=b/(1+t),$=(b-w)/2,A=p+$,R=y-$;this.setWindow(A,R,n,h)}}},{key:"zoomOut",value:function(t,n,h){if(!(!t||t<0||t>1)){typeof arguments[1]=="function"&&(h=arguments[1],n={});var d=this.getWindow(),p=d.start.valueOf(),y=d.end.valueOf(),b=y-p,w=p-b*t/2,$=y+b*t/2;this.setWindow(w,$,n,h)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var t;this.redrawCount++;var n=this.dom;if(!(!n||!n.container||n.root.offsetWidth==0)){var h=!1,d=this.options,p=this.props;NC(this.options.moment,this.body,this.options.hiddenDates),d.orientation=="top"?(ee.addClassName(n.root,"vis-top"),ee.removeClassName(n.root,"vis-bottom")):(ee.removeClassName(n.root,"vis-top"),ee.addClassName(n.root,"vis-bottom")),d.rtl?(ee.addClassName(n.root,"vis-rtl"),ee.removeClassName(n.root,"vis-ltr")):(ee.addClassName(n.root,"vis-ltr"),ee.removeClassName(n.root,"vis-rtl")),n.root.style.maxHeight=ee.option.asSize(d.maxHeight,""),n.root.style.minHeight=ee.option.asSize(d.minHeight,""),n.root.style.width=ee.option.asSize(d.width,"");var y=n.root.offsetWidth;p.border.left=1,p.border.right=1,p.border.top=1,p.border.bottom=1,p.center.height=n.center.offsetHeight,p.left.height=n.left.offsetHeight,p.right.height=n.right.offsetHeight,p.top.height=n.top.clientHeight||-p.border.top,p.bottom.height=Math.round(n.bottom.getBoundingClientRect().height)||n.bottom.clientHeight||-p.border.bottom;var b=Math.max(p.left.height,p.center.height,p.right.height),w=p.top.height+b+p.bottom.height+p.border.top+p.border.bottom;n.root.style.height=ee.option.asSize(d.height,"".concat(w,"px")),p.root.height=n.root.offsetHeight,p.background.height=p.root.height;var $=p.root.height-p.top.height-p.bottom.height;p.centerContainer.height=$,p.leftContainer.height=$,p.rightContainer.height=p.leftContainer.height,p.root.width=y,p.background.width=p.root.width,this.initialDrawDone||(p.scrollbarWidth=ee.getScrollBarWidth());var A=n.leftContainer.clientWidth,R=n.rightContainer.clientWidth;d.verticalScroll?d.rtl?(p.left.width=A||-p.border.left,p.right.width=R+p.scrollbarWidth||-p.border.right):(p.left.width=A+p.scrollbarWidth||-p.border.left,p.right.width=R||-p.border.right):(p.left.width=A||-p.border.left,p.right.width=R||-p.border.right),this._setDOM();var Y=this._updateScrollTop();d.orientation.item!="top"&&(Y+=Math.max(p.centerContainer.height-p.center.height-p.border.top-p.border.bottom,0)),n.center.style.transform="translateY(".concat(Y,"px)");var V=p.scrollTop==0?"hidden":"",oe=p.scrollTop==p.scrollTopMin?"hidden":"";n.shadowTop.style.visibility=V,n.shadowBottom.style.visibility=oe,n.shadowTopLeft.style.visibility=V,n.shadowBottomLeft.style.visibility=oe,n.shadowTopRight.style.visibility=V,n.shadowBottomRight.style.visibility=oe,d.verticalScroll&&(n.rightContainer.className="vis-panel vis-right vis-vertical-scroll",n.leftContainer.className="vis-panel vis-left vis-vertical-scroll",n.shadowTopRight.style.visibility="hidden",n.shadowBottomRight.style.visibility="hidden",n.shadowTopLeft.style.visibility="hidden",n.shadowBottomLeft.style.visibility="hidden",n.left.style.top="0px",n.right.style.top="0px"),(!d.verticalScroll||p.center.heightp.centerContainer.height;this.hammer.get("pan").set({direction:G?eu.DIRECTION_ALL:eu.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),Tt(t=this.components).call(t,function(ve){h=ve.redraw()||h});var ae=5;if(h)if(this.redrawCount0&&(this.props.scrollTop=0),this.props.scrollTop1e3&&(y=1e3),h.redraw(),h.body.emitter.emit("currentTimeTick"),h.currentTimeTimer=Zo(d,y)}d()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(h){var d=ee.convert(h,"Date").valueOf(),p=bo();this.offset=d-p,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(bo()+this.offset)}}]),t}(wp),Wbe=He,Gbe=Nh.find,c6="find",K3=!0;c6 in[]&&Array(1)[c6](function(){K3=!1});Wbe({target:"Array",proto:!0,forced:K3},{find:function(a){return Gbe(this,a,arguments.length>1?arguments[1]:void 0)}});var zbe=Yr;zbe("Array").find;var Ube=He,Vbe=Nh.findIndex,d6="findIndex",X3=!0;d6 in[]&&Array(1)[d6](function(){X3=!1});Ube({target:"Array",proto:!0,forced:X3},{findIndex:function(a){return Vbe(this,a,arguments.length>1?arguments[1]:void 0)}});var qbe=Yr,Kbe=qbe("Array").findIndex,Xbe=Cr,Zbe=Kbe,mR=Array.prototype,Jbe=function(e){var a=e.findIndex;return e===mR||Xbe(mR,e)&&a===mR.findIndex?Zbe:a},Qbe=Jbe,e_e=Qbe,t_e=e_e,r_e=Be(t_e);function i_e(e,a){var t=typeof Qg!="undefined"&&A_(e)||e["@@iterator"];if(!t){if(Ot(e)||(t=n_e(e))||a){t&&(e=t);var n=0,h=function(){};return{s:h,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function n_e(e,a){var t;if(e){if(typeof e=="string")return f6(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f6(e,a)}}function f6(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);tp.index?1:d.indext[y].index&&(t[d].top+=t[y].height);for(var b=e[d],w=0;wit},Y),Ks(A).call(A,Y,0,_e),Y++}};for(V.s();!(oe=V.n()).done;)G()}catch(tt){V.e(tt)}finally{V.f()}R=null;var ae=null;Y=0;for(var ve=0,ye=0,pe=0,Se=function(){var _e,it,Ne=$.shift();Ne.top=d(Ne);var qe=y(Ne),Fe=b(Ne);R!==null&&qeFe&&(ye=c_e(A,function(lt){return Fe+go>=y(lt)},ve,ye)+1);for(var Ye=Ii(_e=Rt(it=To(A).call(A,ve,ye)).call(it,function(lt){return qey(lt)})).call(_e,function(lt,kt){return lt.top-kt.top}),ir=0;irqe},Y),Ks(A).call(A,Y,0,Ne),Y++);var Kt=Ne.top+Ne.height;if(Kt>pe&&(pe=Kt),p&&p())return{v:null}},ze;$.length>0;)if(ze=Se(),ze)return ze.v;return pe}function h_e(e,a,t){return e.top-t.vertical+goa.top}function dC(e,a,t){var n;t||(t=0);var h=r_e(n=To(e).call(e,t)).call(n,a);return h===-1?e.length:h+t}function c_e(e,a,t,n){for(t||(t=0),n||(n=e.length),i=n-1;i>=t;i--)if(a(e[i]))return i;return t-1}var d_e="__background__",m6={BACKGROUND:d_e},f_e=function(){function e(a,t,n){var h=this;if(br(this,e),this.groupId=a,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=t&&t.subgroupOrder,this.itemSet=n,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],t&&t.nestedGroups&&(this.nestedGroups=t.nestedGroups,t.showNested==!1?this.showNested=!1:this.showNested=!0),t&&t.subgroupStack)if(typeof t.subgroupStack=="boolean")this.doInnerStack=t.subgroupStack,this.subgroupStackAll=t.subgroupStack;else for(var d in t.subgroupStack)this.subgroupStack[d]=t.subgroupStack[d],this.doInnerStack=this.doInnerStack||t.subgroupStack[d];t&&t.heightMode?this.heightMode=t.heightMode:this.heightMode=n.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 p=function(){h.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",p),this._disposeCallbacks.push(function(){h.itemSet.body.emitter.off("checkRangedItems",p)}),this._create(),this.setData(t)}return _r(e,[{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 n=document.createElement("div");n.className="vis-inner",t.appendChild(n),this.dom.inner=n;var h=document.createElement("div");h.className="vis-group",h["vis-group"]=this,this.dom.foreground=h,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 n,h;if(t&&t.subgroupVisibility)for(var d in t.subgroupVisibility)this.subgroupVisibility[d]=t.subgroupVisibility[d];if(this.itemSet.options&&this.itemSet.options.groupTemplate){var p;h=Ee(p=this.itemSet.options.groupTemplate).call(p,this),n=h(t,this.dom.inner)}else n=t&&t.content;if(n instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(n)}else n instanceof Object&&n.isReactComponent||(n instanceof Object?h(t,this.dom.inner):n!=null?this.dom.inner.innerHTML=ee.xss(n):this.dom.inner.innerHTML=ee.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?ee.removeClassName(this.dom.inner,"vis-hidden"):ee.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups?((!this.nestedGroups||this.nestedGroups!=t.nestedGroups)&&(this.nestedGroups=t.nestedGroups),(t.showNested!==void 0||this.showNested===void 0)&&(t.showNested==!1?this.showNested=!1:this.showNested=!0),ee.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(ee.removeClassName(this.dom.label,"collapsed"),ee.addClassName(this.dom.label,"expanded")):(ee.removeClassName(this.dom.label,"expanded"),ee.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,ee.removeClassName(this.dom.label,"collapsed"),ee.removeClassName(this.dom.label,"expanded"),ee.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(ee.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?ee.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):ee.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):ee.addClassName(this.dom.label,"vis-group-level-0");var y=t&&t.className||null;y!=this.className&&(this.className&&(ee.removeClassName(this.dom.label,this.className),ee.removeClassName(this.dom.foreground,this.className),ee.removeClassName(this.dom.background,this.className),ee.removeClassName(this.dom.axis,this.className)),ee.addClassName(this.dom.label,y),ee.addClassName(this.dom.foreground,y),ee.addClassName(this.dom.background,y),ee.addClassName(this.dom.axis,y),this.className=y),this.style&&(ee.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(ee.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 n={},h=0;Tt(ee).call(ee,this.items,function(b,w){if(b.dirty=!0,b.displayed){var $=!0;n[w]=b.redraw($),h=n[w].length}});var d=h>0;if(d)for(var p=function(w){Tt(ee).call(ee,n,function($){$[w]()})},y=0;yh.bailTimeMs&&(h.userBailFunction&&this.itemSet.userContinueNotBail==null?h.userBailFunction(function(p){t.itemSet.userContinueNotBail=p,d=!p}):t.itemSet.userContinueNotBail==!1?d=!0:d=!1)}return d}},{key:"_redrawItems",value:function(t,n,h,d){var p=this,y=t||this.stackDirty||this.isVisible&&!n;if(y){var b,w,$,A,R,Y,V={byEnd:Rt(b=this.orderedItems.byEnd).call(b,function(Fe){return!Fe.isCluster}),byStart:Rt(w=this.orderedItems.byStart).call(w,function(Fe){return!Fe.isCluster})},oe={byEnd:Pi(new l_(Rt($=xn(A=this.orderedItems.byEnd).call(A,function(Fe){return Fe.cluster})).call($,function(Fe){return!!Fe}))),byStart:Pi(new l_(Rt(R=xn(Y=this.orderedItems.byStart).call(Y,function(Fe){return Fe.cluster})).call(R,function(Fe){return!!Fe})))},G=function(){var Ye,ir,gt,Kt=p._updateItemsInRange(V,Rt(Ye=p.visibleItems).call(Ye,function(kt){return!kt.isCluster}),d),lt=p._updateClustersInRange(oe,Rt(ir=p.visibleItems).call(ir,function(kt){return kt.isCluster}),d);return Cn(gt=[]).call(gt,Pi(Kt),Pi(lt))},ae=function(Ye){var ir={},gt=function(kt){var $r,ht=Rt($r=p.visibleItems).call($r,function(Ct){return Ct.data.subgroup===kt});ir[kt]=Ye?Ii(ht).call(ht,function(Ct,ui){return Ye(Ct.data,ui.data)}):ht};for(var Kt in p.subgroups)gt(Kt);return ir};if(typeof this.itemSet.options.order=="function"){var ve=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var ye=ae(this.itemSet.options.order);p6(ye,h,this.subgroups),this.visibleItems=G(),this._updateSubGroupHeights(h)}else{var pe,Se,ze,tt;this.visibleItems=G(),this._updateSubGroupHeights(h);var _e=Ii(pe=Rt(Se=To(ze=this.visibleItems).call(ze)).call(Se,function(Fe){return Fe.isCluster||!Fe.isCluster&&!Fe.cluster})).call(pe,function(Fe,Ye){return ve.itemSet.options.order(Fe.data,Ye.data)});this.shouldBailStackItems=v6(_e,h,!0,Ee(tt=this._shouldBailItemsRedraw).call(tt,this))}}else if(this.visibleItems=G(),this._updateSubGroupHeights(h),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var it=ae();p6(it,h,this.subgroups)}else{var Ne;this.shouldBailStackItems=v6(this.visibleItems,h,!0,Ee(Ne=this._shouldBailItemsRedraw).call(Ne,this))}else l_e(this.visibleItems,h,this.subgroups,this.itemSet.options.stackSubgroups);for(var qe=0;qe0){var h=this;this._resetSubgroups(),Tt(ee).call(ee,this.visibleItems,function(d){d.data.subgroup!==void 0&&(h.subgroups[d.data.subgroup].height=Math.max(h.subgroups[d.data.subgroup].height,d.height+t.item.vertical),h.subgroups[d.data.subgroup].visible=typeof n.subgroupVisibility[d.data.subgroup]=="undefined"?!0:Boolean(n.subgroupVisibility[d.data.subgroup]))})}}},{key:"_isGroupVisible",value:function(t,n){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+n.axis&&this.top+this.height+n.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var n,h;if(this.heightMode==="fixed"?h=ee.toArray(this.items):h=this.visibleItems,h.length>0){var d=h[0].top,p=h[0].top+h[0].height;if(Tt(ee).call(ee,h,function(b){d=Math.min(d,b.top),p=Math.max(p,b.top+b.height)}),d>t.axis){var y=d-t.axis;p-=y,Tt(ee).call(ee,h,function(b){b.top-=y})}n=Math.ceil(p+t.item.vertical/2),this.heightMode!=="fitItems"&&(n=Math.max(n,this.props.label.height))}else n=this.props.label.height;return n}},{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 n=this.dom.foreground;n.parentNode&&n.parentNode.removeChild(n);var h=this.dom.background;h.parentNode&&h.parentNode.removeChild(h);var d=this.dom.axis;d.parentNode&&d.parentNode.removeChild(d)}},{key:"add",value:function(t){var n;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,t.data.subgroup!==void 0&&(this._addToSubgroup(t),this.orderSubgroups()),!Rg(n=this.visibleItems).call(n,t)){var h=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,h)}}},{key:"_addToSubgroup",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.data.subgroup;n!=null&&this.subgroups[n]===void 0&&(this.subgroups[n]={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[n]||!1},this.subgroupIndex++),new Date(t.data.start)new Date(this.subgroups[n].end)&&(this.subgroups[n].end=h),this.subgroups[n].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var n=function(){var p,y=t.subgroups[h].items[0].data.end||t.subgroups[h].items[0].data.start,b=t.subgroups[h].items[0].data.start,w=y-1;Tt(p=t.subgroups[h].items).call(p,function($){new Date($.data.start)new Date(w)&&(w=A)}),t.subgroups[h].start=b,t.subgroups[h].end=new Date(w-1)};for(var h in t.subgroups)n()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var t=[];if(typeof this.subgroupOrderer=="string"){for(var n in this.subgroups)t.push({subgroup:n,sortField:this.subgroups[n].items[0].data[this.subgroupOrderer]});Ii(t).call(t,function(p,y){return p.sortField-y.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var h in this.subgroups)t.push(this.subgroups[h].items[0].data);Ii(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:t.data.subgroup;if(n!=null){var h=this.subgroups[n];if(h){var d,p=oi(d=h.items).call(d,t);if(p>=0){var y;Ks(y=h.items).call(y,p,1),h.items.length?this._updateSubgroupsSizes():delete this.subgroups[n]}}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=ee.toArray(this.items),n=[],h=[],d=0;d0)for(var V=0;VA}),this.checkRangedItems==!0){this.checkRangedItems=!1;for(var G=0;GA})}for(var ve={},ye=0,pe=0;pe0;if(tt)for(var _e=function(Fe){Tt(ee).call(ee,ve,function(Ye){Ye[Fe]()})},it=0;it=0;y--){var b=n[y];if(p(b))break;!(b.isCluster&&!b.hasItems())&&!b.cluster&&d[b.id]===void 0&&(d[b.id]=!0,h.push(b))}for(var w=t+1;w0)for(var y=0;y0;if(oe)for(var G=0;G=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function b_e(e,a){var t;if(e){if(typeof e=="string")return g6(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g6(e,a)}}function g6(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t0){var n=[];if(Ot(this.options.dataAttributes))n=this.options.dataAttributes;else if(this.options.dataAttributes=="all")n=Ki(this.data);else return;var h=y_e(n),d;try{for(h.s();!(d=h.n()).done;){var p=d.value,y=this.data[p];y!=null?t.setAttribute("data-".concat(p),y):t.removeAttribute("data-".concat(p))}}catch(b){h.e(b)}finally{h.f()}}}},{key:"_updateStyle",value:function(t){this.style&&(ee.removeCssText(t,this.style),this.style=null),this.data.style&&(ee.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return typeof t=="string"?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:bt(this.options.editable)==="object"&&(this.editable={},ee.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),(!this.options||!this.options.editable||this.options.editable.overrideItems!==!0)&&this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:bt(this.data.editable)==="object"&&(this.editable={},ee.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(){if(this.options.tooltip&&this.options.tooltip.template){var t,n=Ee(t=this.options.tooltip.template).call(t,this);return n(this._getItemData(),this.data)}return this.data.title}}]),e}();TL.prototype.stack=!0;function __e(e){var a=w_e();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function w_e(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var vE=function(e){Lh(t,e);var a=__e(t);function t(n,h,d){var p;if(br(this,t),p=a.call(this,n,h,d),p.props={content:{width:0}},p.overflow=!1,n){if(n.start==null)throw new Error('Property "start" missing in item '.concat(n.id));if(n.end==null)throw new Error('Property "end" missing in item '.concat(n.id))}return p}return _r(t,[{key:"isVisible",value:function(h){return this.cluster?!1:this.data.starth.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 h=this.parent.dom.foreground;if(!h)throw new Error("Cannot redraw item: parent has no foreground container element");h.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 h=this.editable.updateTime||this.editable.updateGroup,d=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(h?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+d,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(h){this.props.content.width=h.content.width,this.height=h.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(h){var d,p,y,b=this,w,$,A=[Ee(d=this._createDomElement).call(d,this),Ee(p=this._appendDomElement).call(p,this),Ee(y=this._updateDirtyDomComponents).call(y,this),function(){if(b.dirty){var Y;$=Ee(Y=b._getDomComponentsSizes).call(Y,b)()}},function(){if(b.dirty){var Y;Ee(Y=b._updateDomComponentsSizes).call(Y,b)($)}},Ee(w=this._repaintDomAdditionals).call(w,this)];if(h)return A;var R;return Tt(A).call(A,function(Y){R=Y()}),R}},{key:"show",value:function(h){if(!this.displayed)return this.redraw(h)}},{key:"hide",value:function(){if(this.displayed){var h=this.dom.box;h.parentNode&&h.parentNode.removeChild(h),this.displayed=!1}}},{key:"repositionX",value:function(h){var d=this.parent.width,p=this.conversion.toScreen(this.data.start),y=this.conversion.toScreen(this.data.end),b=this.data.align===void 0?this.options.align:this.data.align,w,$;this.data.limitSize!==!1&&(h===void 0||h===!0)&&(p<-d&&(p=-d),y>2*d&&(y=2*d));var A=Math.max(Math.round((y-p)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=p:this.left=p,this.width=A+this.props.content.width,$=this.props.content.width):(this.options.rtl?this.right=p:this.left=p,this.width=A,$=Math.min(y-p,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(this.right*-1,"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),b){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var R=Math.max(A-$,0)*-1;this.dom.content.style.transform="translateX(".concat(R,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(A-$,0),"px)");break;case"center":if(this.options.rtl){var Y=Math.max((A-$)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(Y,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((A-$)/2,0),"px)");break;default:if(this.overflow?y>0?w=Math.max(-p,0):w=-$:p<0?w=-p:w=0,this.options.rtl){var V=w*-1;this.dom.content.style.transform="translateX(".concat(V,"px)")}else this.dom.content.style.transform="translateX(".concat(w,"px)")}}},{key:"repositionY",value:function(){var h=this.options.orientation.item,d=this.dom.box;h=="top"?d.style.top="".concat(this.top,"px"):d.style.top="".concat(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 h=document.createElement("div");h.className="vis-drag-left",h.dragLeftItem=this,this.dom.box.appendChild(h),this.dom.dragLeft=h}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 h=document.createElement("div");h.className="vis-drag-right",h.dragRightItem=this,this.dom.box.appendChild(h),this.dom.dragRight=h}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)}}]),t}(TL);vE.prototype.baseClassName="vis-item vis-range";function k_e(e){var a=S_e();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function S_e(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var Z_=function(e){Lh(t,e);var a=k_e(t);function t(n,h,d){var p;if(br(this,t),p=a.call(this,n,h,d),p.props={content:{width:0}},p.overflow=!1,n){if(n.start==null)throw new Error('Property "start" missing in item '.concat(n.id));if(n.end==null)throw new Error('Property "end" missing in item '.concat(n.id))}return p}return _r(t,[{key:"isVisible",value:function(h){return this.data.starth.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 h=this.parent.dom.background;if(!h)throw new Error("Cannot redraw item: parent has no background container element");h.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 h=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+h}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(h){this.props.content.width=h.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(h){var d,p,y,b=this,w,$,A=[Ee(d=this._createDomElement).call(d,this),Ee(p=this._appendDomElement).call(p,this),Ee(y=this._updateDirtyDomComponents).call(y,this),function(){if(b.dirty){var Y;$=Ee(Y=b._getDomComponentsSizes).call(Y,b)()}},function(){if(b.dirty){var Y;Ee(Y=b._updateDomComponentsSizes).call(Y,b)($)}},Ee(w=this._repaintDomAdditionals).call(w,this)];if(h)return A;var R;return Tt(A).call(A,function(Y){R=Y()}),R}},{key:"repositionY",value:function(h){var d,p=this.options.orientation.item;if(this.data.subgroup!==void 0){var y=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[y].height,"px"),p=="top"?this.dom.box.style.top="".concat(this.parent.top+this.parent.subgroups[y].top,"px"):this.dom.box.style.top="".concat(this.parent.top+this.parent.height-this.parent.subgroups[y].top-this.parent.subgroups[y].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof m_e?(d=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=p=="bottom"?"0":"",this.dom.box.style.top=p=="top"?"0":""):(d=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(d,"px")}}]),t}(TL);Z_.prototype.baseClassName="vis-item vis-background";Z_.prototype.stack=!1;Z_.prototype.show=vE.prototype.show;Z_.prototype.hide=vE.prototype.hide;Z_.prototype.repositionX=vE.prototype.repositionX;var x_e=`div.vis-tooltip { position: absolute; visibility: hidden; padding: 5px; white-space: nowrap; font-family: verdana; font-size:14px; color:#000000; background-color: #f5f4ed; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; border: 1px solid #808074; box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); pointer-events: none; z-index: 5; } `;ca(x_e);var T_e=He,C_e=Nh.every,E_e=ey,D_e=E_e("every");T_e({target:"Array",proto:!0,forced:!D_e},{every:function(a){return C_e(this,a,arguments.length>1?arguments[1]:void 0)}});var O_e=Yr;O_e("Array").every;var $_e=` .vis-itemset { position: relative; padding: 0; margin: 0; box-sizing: border-box; } .vis-itemset .vis-background, .vis-itemset .vis-foreground { position: absolute; width: 100%; height: 100%; overflow: visible; } .vis-axis { position: absolute; width: 100%; height: 0; left: 0; z-index: 1; } .vis-foreground .vis-group { position: relative; box-sizing: border-box; border-bottom: 1px solid #bfbfbf; } .vis-foreground .vis-group:last-child { border-bottom: none; } .vis-nesting-group { cursor: pointer; } .vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 { background: #f5f5f5; } .vis-label.vis-nested-group.vis-group-level-0 { background-color: #ffffff; } .vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner { padding-left: 0; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner { padding-right: 0; } .vis-label.vis-nested-group.vis-group-level-1 { background-color: rgba(0, 0, 0, 0.05); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner { padding-left: 15px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner { padding-right: 15px; } .vis-label.vis-nested-group.vis-group-level-2 { background-color: rgba(0, 0, 0, 0.1); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner { padding-left: 30px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner { padding-right: 30px; } .vis-label.vis-nested-group.vis-group-level-3 { background-color: rgba(0, 0, 0, 0.15); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner { padding-left: 45px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner { padding-right: 45px; } .vis-label.vis-nested-group.vis-group-level-4 { background-color: rgba(0, 0, 0, 0.2); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner { padding-left: 60px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner { padding-right: 60px; } .vis-label.vis-nested-group.vis-group-level-5 { background-color: rgba(0, 0, 0, 0.25); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner { padding-left: 75px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner { padding-right: 75px; } .vis-label.vis-nested-group.vis-group-level-6 { background-color: rgba(0, 0, 0, 0.3); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner { padding-left: 90px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner { padding-right: 90px; } .vis-label.vis-nested-group.vis-group-level-7 { background-color: rgba(0, 0, 0, 0.35); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner { padding-left: 105px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner { padding-right: 105px; } .vis-label.vis-nested-group.vis-group-level-8 { background-color: rgba(0, 0, 0, 0.4); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner { padding-left: 120px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner { padding-right: 120px; } .vis-label.vis-nested-group.vis-group-level-9 { background-color: rgba(0, 0, 0, 0.45); } .vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner { padding-left: 135px; } .vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner { padding-right: 135px; } /* default takes over beginning with level-10 (thats why we add .vis-nested-group to the selectors above, to have higher specifity than these rules for the defaults) */ .vis-label.vis-nested-group { background-color: rgba(0, 0, 0, 0.5); } .vis-ltr .vis-label.vis-nested-group .vis-inner { padding-left: 150px; } .vis-rtl .vis-label.vis-nested-group .vis-inner { padding-right: 150px; } .vis-group-level-unknown-but-gte1 { border: 1px solid red; } /* expanded/collapsed indicators */ .vis-label.vis-nesting-group:before, .vis-label.vis-nesting-group:before { display: inline-block; width: 15px; } .vis-label.vis-nesting-group.expanded:before { content: "\\25BC"; } .vis-label.vis-nesting-group.collapsed:before { content: "\\25B6"; } .vis-rtl .vis-label.vis-nesting-group.collapsed:before { content: "\\25C0"; } /* compensate missing expanded/collapsed indicator, but only at levels > 0 */ .vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) { padding-left: 15px; } .vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) { padding-right: 15px; } .vis-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }`;ca($_e);var P_e=` .vis-labelset { position: relative; overflow: hidden; box-sizing: border-box; } .vis-labelset .vis-label { position: relative; left: 0; top: 0; width: 100%; color: #4d4d4d; box-sizing: border-box; } .vis-labelset .vis-label { border-bottom: 1px solid #bfbfbf; } .vis-labelset .vis-label.draggable { cursor: pointer; } .vis-group-is-dragging { background: rgba(0, 0, 0, .1); } .vis-labelset .vis-label:last-child { border-bottom: none; } .vis-labelset .vis-label .vis-inner { display: inline-block; padding: 5px; } .vis-labelset .vis-label .vis-inner.vis-hidden { padding: 0; } `;ca(P_e);var Jb=!1,y6,hN="background: #FFeeee; color: #dd0000",I_e=function(){function e(){br(this,e)}return _r(e,null,[{key:"validate",value:function(t,n,h){Jb=!1,y6=n;var d=n;return h!==void 0&&(d=n[h]),e.parse(t,d,[]),Jb}},{key:"parse",value:function(t,n,h){for(var d in t)t.hasOwnProperty(d)&&e.check(d,t,n,h)}},{key:"check",value:function(t,n,h,d){if(h[t]===void 0&&h.__any__===void 0){e.getSuggestion(t,h,d);return}var p=t,y=!0;h[t]===void 0&&h.__any__!==void 0&&(p="__any__",y=e.getType(n[t])==="object");var b=h[p];y&&b.__type__!==void 0&&(b=b.__type__),e.checkFields(t,n,h,p,b,d)}},{key:"checkFields",value:function(t,n,h,d,p,y){var b=function(R){console.log("%c"+R+e.printLocation(y,t),hN)},w=e.getType(n[t]),$=p[w];$!==void 0?e.getType($)==="array"&&oi($).call($,n[t])===-1?(b('Invalid option detected in "'+t+'". Allowed values are:'+e.print($)+' not "'+n[t]+'". '),Jb=!0):w==="object"&&d!=="__any__"&&(y=ee.copyAndExtendArray(y,t),e.parse(n[t],h[d],y)):p.any===void 0&&(b('Invalid type received for "'+t+'". Expected: '+e.print(Ki(p))+". Received ["+w+'] "'+n[t]+'"'),Jb=!0)}},{key:"getType",value:function(t){var n=bt(t);return n==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Ot(t)?"array":t instanceof Date?"date":t.nodeType!==void 0?"dom":t._isAMomentObject===!0?"moment":"object":n==="number"?"number":n==="boolean"?"boolean":n==="string"?"string":n===void 0?"undefined":n}},{key:"getSuggestion",value:function(t,n,h){var d=e.findInOptions(t,n,h,!1),p=e.findInOptions(t,y6,[],!0),y=8,b=4,w;d.indexMatch!==void 0?w=" in "+e.printLocation(d.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+d.indexMatch+`"? `:p.distance<=b&&d.distance>p.distance?w=" in "+e.printLocation(d.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(p.path,p.closestMatch,""):d.distance<=y?w='. Did you mean "'+d.closestMatch+'"?'+e.printLocation(d.path,t):w=". Did you mean one of these: "+e.print(Ki(n))+e.printLocation(h,t),console.log('%cUnknown option detected: "'+t+'"'+w,hN),Jb=!0}},{key:"findInOptions",value:function(t,n,h){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,p=1e9,y="",b=[],w=t.toLowerCase(),$=void 0;for(var A in n){var R=void 0;if(n[A].__type__!==void 0&&d===!0){var Y=e.findInOptions(t,n[A],ee.copyAndExtendArray(h,A));p>Y.distance&&(y=Y.closestMatch,b=Y.path,p=Y.distance,$=Y.indexMatch)}else{var V;oi(V=A.toLowerCase()).call(V,w)!==-1&&($=A),R=e.levenshteinDistance(t,A),p>R&&(y=A,b=ee.copyArray(h),p=R)}}return{closestMatch:y,path:b,distance:p,indexMatch:$}}},{key:"printLocation",value:function(t,n){for(var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `,d=` `+h+`options = { `,p=0;p0&&arguments[0]!==void 0?arguments[0]:1;br(this,e),this.pixelRatio=a,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},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 _r(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(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(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return M_e[t]}},{key:"setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var h,d=this._isColorString(t);if(d!==void 0&&(t=d),ee.isString(t)===!0){if(ee.isValidRGB(t)===!0){var p=t.substr(4).substr(0,t.length-5).split(",");h={r:p[0],g:p[1],b:p[2],a:1}}else if(ee.isValidRGBA(t)===!0){var y=t.substr(5).substr(0,t.length-6).split(",");h={r:y[0],g:y[1],b:y[2],a:y[3]}}else if(ee.isValidHex(t)===!0){var b=ee.hexToRGB(t);h={r:b.r,g:b.g,b:b.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var w=t.a!==void 0?t.a:"1.0";h={r:t.r,g:t.g,b:t.b,a:w}}if(h===void 0)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: "+Ha(t));this._setColor(h,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=ee.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Zo(function(){t.closeCallback!==void 0&&(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(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=ee.extend({},t)),this.color=t;var h=ee.RGBToHSV(t.r,t.g,t.b),d=2*Math.PI,p=this.r*h.s,y=this.centerCoordinates.x+p*Math.sin(d*h.h),b=this.centerCoordinates.y+p*Math.cos(d*h.h);this.colorPickerSelector.style.left=y-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=b-.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 n=ee.RGBToHSV(this.color.r,this.color.g,this.color.b);n.v=t/100;var h=ee.HSVToRGB(n.h,n.s,n.v);h.a=this.color.a,this.color=h,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=ee.RGBToHSV(t.r,t.g,t.b),h=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(h.webkitBackingStorePixelRatio||h.mozBackingStorePixelRatio||h.msBackingStorePixelRatio||h.oBackingStorePixelRatio||h.backingStorePixelRatio||1)),h.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var d=this.colorPickerCanvas.clientWidth,p=this.colorPickerCanvas.clientHeight;h.clearRect(0,0,d,p),h.putImageData(this.hueCircle,0,0),h.fillStyle="rgba(0,0,0,"+(1-n.v)+")",h.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),FH(h).call(h),this.brightnessRange.value=100*n.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,n,h,d;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 y=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(y.webkitBackingStorePixelRatio||y.mozBackingStorePixelRatio||y.msBackingStorePixelRatio||y.oBackingStorePixelRatio||y.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var p=document.createElement("DIV");p.style.color="red",p.style.fontWeight="bold",p.style.padding="10px",p.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(p)}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(w){}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(w){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var b=this;this.opacityRange.onchange=function(){b._setOpacity(this.value)},this.opacityRange.oninput=function(){b._setOpacity(this.value)},this.brightnessRange.onchange=function(){b._setBrightness(this.value)},this.brightnessRange.oninput=function(){b._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=Ee(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=Ee(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=Ee(h=this._save).call(h,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=Ee(d=this._loadLast).call(d,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 eu(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),j3(this.hammer,function(n){t._moveSelector(n)}),this.hammer.on("tap",function(n){t._moveSelector(n)}),this.hammer.on("panstart",function(n){t._moveSelector(n)}),this.hammer.on("panmove",function(n){t._moveSelector(n)}),this.hammer.on("panend",function(n){t._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(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 n=this.colorPickerCanvas.clientWidth,h=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,n,h);var d,p,y,b;this.centerCoordinates={x:n*.5,y:h*.5},this.r=.49*n;var w=2*Math.PI/360,$=1/360,A=1/this.r,R;for(y=0;y<360;y++)for(b=0;b3&&arguments[3]!==void 0?arguments[3]:1;br(this,e),this.parent=a,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},ee.extend(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new A_e(h),this.wrapper=void 0}return _r(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof t=="string")this.options.filter=t;else if(Ot(t))this.options.filter=t.join();else if(bt(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),Rt(t)!==void 0&&(this.options.filter=Rt(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(n=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,n=t):typeof t=="function"&&(this.options.filter=t,n=!0);Rt(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Rt(this.options),n=0,h=!1;for(var d in this.configureOptions)this.configureOptions.hasOwnProperty(d)&&(this.allowCreation=!1,h=!1,typeof t=="function"?(h=t(d,[]),h=h||this._handleObject(this.configureOptions[d],[d],!0)):(t===!0||oi(t).call(t,d)!==-1)&&(h=!0),h!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(d),this._handleObject(this.configureOptions[d],[d])),n++);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?h-1:0),p=1;p2&&arguments[2]!==void 0?arguments[2]:!1,d=document.createElement("div");return d.className="vis-configuration vis-config-label vis-config-s"+n.length,h===!0?d.innerHTML=ee.xss(""+t+":"):d.innerHTML=ee.xss(t+":"),d}},{key:"_makeDropdown",value:function(t,n,h){var d=document.createElement("select");d.className="vis-configuration vis-config-select";var p=0;n!==void 0&&oi(t).call(t,n)!==-1&&(p=oi(t).call(t,n));for(var y=0;yy&&y!==1&&(w.max=Math.ceil(n*R),A=w.max,$="range increased"),w.value=n}else w.value=d;var Y=document.createElement("input");Y.className="vis-configuration vis-config-rangeinput",Y.value=Number(w.value);var V=this;w.onchange=function(){Y.value=this.value,V._update(Number(this.value),h)},w.oninput=function(){Y.value=this.value};var oe=this._makeLabel(h[h.length-1],h),G=this._makeItem(h,oe,w,Y);$!==""&&this.popupHistory[G]!==A&&(this.popupHistory[G]=A,this._setupPopup($,G))}},{key:"_makeButton",value:function(){var t=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerHTML="generate options",n.onclick=function(){t._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.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(n)}}},{key:"_setupPopup",value:function(t,n){var h=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=!1,p=Rt(this.options),y=!1;for(var b in t)if(t.hasOwnProperty(b)){d=!0;var w=t[b],$=ee.copyAndExtendArray(n,b);if(typeof p=="function"&&(d=p(b,n),d===!1&&!Ot(w)&&typeof w!="string"&&typeof w!="boolean"&&w instanceof Object&&(this.allowCreation=!1,d=this._handleObject(w,$,!0),this.allowCreation=h===!1)),d!==!1){y=!0;var A=this._getValue($);if(Ot(w))this._handleArray(w,A,$);else if(typeof w=="string")this._makeTextInput(w,A,$);else if(typeof w=="boolean")this._makeCheckbox(w,A,$);else if(w instanceof Object){var R=!0;if(oi(n).call(n,"physics")!==-1&&this.moduleOptions.physics.solver!==b&&(R=!1),R===!0)if(w.enabled!==void 0){var Y=ee.copyAndExtendArray($,"enabled"),V=this._getValue(Y);if(V===!0){var oe=this._makeLabel(b,$,!0);this._makeItem($,oe),y=this._handleObject(w,$)||y}else this._makeCheckbox(w,V,$)}else{var G=this._makeLabel(b,$,!0);this._makeItem($,G),y=this._handleObject(w,$)||y}}else console.error("dont know how to handle",w,b,$)}}return y}},{key:"_handleArray",value:function(t,n,h){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,n,h),t[1]!==n&&this.changedOptions.push({path:h,value:n})):typeof t[0]=="string"?(this._makeDropdown(t,n,h),t[0]!==n&&this.changedOptions.push({path:h,value:n})):typeof t[0]=="number"&&(this._makeRange(t,n,h),t[0]!==n&&this.changedOptions.push({path:h,value:Number(n)}))}},{key:"_update",value:function(t,n){var h=this._constructOptions(t,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",h),this.initialized=!0,this.parent.setOptions(h)}},{key:"_constructOptions",value:function(t,n){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=h;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var p=0;pvar options = "+Ha(t,null,2)+""}},{key:"getOptions",value:function(){for(var t={},n=0;n6&&arguments[6]!==void 0?arguments[6]:!1,b=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;if(br(this,e),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=d,this.majorCharHeight=p,this._start=a,this._end=t,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=y,this.autoScaleStart=n,this.autoScaleEnd=h,this.formattingFunction=b,n||h){var w=this,$=function(R){var Y=R-R%(w.magnitudefactor*w.minorSteps[w.minorStepIdx]);return R%(w.magnitudefactor*w.minorSteps[w.minorStepIdx])>.5*(w.magnitudefactor*w.minorSteps[w.minorStepIdx])?Y+w.magnitudefactor*w.minorSteps[w.minorStepIdx]:Y};n&&(this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx],this._start=$(this._start)),h&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=$(this._end)),this.determineScale()}}return _r(e,[{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 n=this.majorCharHeight/this.scale,h=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,h);var d=0;h<0&&(d=h);for(var p=!1,y=d;Math.abs(y)<=Math.abs(h);y++){this.magnitudefactor=Math.pow(10,y);for(var b=0;b=n){p=!0,this.minorStepIdx=b;break}}if(p===!0)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 n=t.toPrecision(5);return typeof this.formattingFunction=="function"&&(n=this.formattingFunction(t)),typeof n=="number"?"".concat(n):typeof n=="string"?n:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],n=this.getStep(),h=(n-this._start%n)%n,d=this._start+h;this._end-d>1e-5;d+=n)d!=this._start&&t.push({major:this.is_major(d),y:this.convertValue(d),val:this.formatValue(d)});return t}},{key:"followScale",value:function(t){var n=this.minorStepIdx,h=this._start,d=this._end,p=this,y=function(){p.magnitudefactor*=2},b=function(){p.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdxd+1e-5){b(),A=!1;continue}if(!this.autoScaleStart&&this._start=0)console.warn("Can't adhere to given 'min' range, due to zeroalign");else{b(),A=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&Y=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function Y_e(e,a){var t;if(e){if(typeof e=="string")return b6(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b6(e,a)}}function b6(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t=0&&h._redrawLabel(V-2,Y.val,p,"vis-y-axis vis-major",h.props.majorCharHeight),h.master===!0&&(oe?h._redrawLine(V,p,"vis-grid vis-horizontal vis-major",h.options.majorLinesOffset,h.props.majorLineWidth):h._redrawLine(V,p,"vis-grid vis-horizontal vis-minor",h.options.minorLinesOffset,h.props.minorLineWidth))});var A=0;this.options[p].title!==void 0&&this.options[p].title.text!==void 0&&(A=this.props.titleCharHeight);var R=this.options.icons===!0?Math.max(this.options.iconWidth,A)+this.options.labelOffsetX+15:A+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-R&&this.options.visible===!0?(this.width=this.maxLabelSize+R,this.options.width="".concat(this.width,"px"),qo(this.DOMelements.lines),qo(this.DOMelements.labels),this.redraw(),d=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+R),this.options.width="".concat(this.width,"px"),qo(this.DOMelements.lines),qo(this.DOMelements.labels),this.redraw(),d=!0):(qo(this.DOMelements.lines),qo(this.DOMelements.labels),d=!1),d}},{key:"convertValue",value:function(h){return this.scale.convertValue(h)}},{key:"screenToValue",value:function(h){return this.scale.screenToValue(h)}},{key:"_redrawLabel",value:function(h,d,p,y,b){var w=HA("div",this.DOMelements.labels,this.dom.frame);w.className=y,w.innerHTML=ee.xss(d),p==="left"?(w.style.left="-".concat(this.options.labelOffsetX,"px"),w.style.textAlign="right"):(w.style.right="-".concat(this.options.labelOffsetX,"px"),w.style.textAlign="left"),w.style.top="".concat(h-.5*b+this.options.labelOffsetY,"px"),d+="";var $=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize0&&(t=Math.min(t,Math.abs(a[n-1].screen_x-a[n].screen_x))),t===0&&(e[a[n].screen_x]===void 0&&(e[a[n].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[a[n].screen_x].amount+=1)};sa._getSafeDrawData=function(e,a,t){var n,h;return e0?(n=e0){Ii(e).call(e,function(p,y){return p.screen_x===y.screen_x?p.groupIda[d].screen_y?a[d].screen_y:n,h=he[p].accumulatedNegative?e[p].accumulatedNegative:n,n=n>e[p].accumulatedPositive?e[p].accumulatedPositive:n,h=h0){var t=[];return a.options.interpolation.enabled==!0?t=Tn._catmullRom(e,a):t=Tn._linear(e),t}};Tn.drawIcon=function(e,a,t,n,h,d){var p=h*.5,y,b,w=Xs("rect",d.svgElements,d.svg);if(w.setAttributeNS(null,"x",a),w.setAttributeNS(null,"y",t-p),w.setAttributeNS(null,"width",n),w.setAttributeNS(null,"height",2*p),w.setAttributeNS(null,"class","vis-outline"),y=Xs("path",d.svgElements,d.svg),y.setAttributeNS(null,"class",e.className),e.style!==void 0&&y.setAttributeNS(null,"style",e.style),y.setAttributeNS(null,"d","M"+a+","+t+" L"+(a+n)+","+t),e.options.shaded.enabled==!0&&(b=Xs("path",d.svgElements,d.svg),e.options.shaded.orientation=="top"?b.setAttributeNS(null,"d","M"+a+", "+(t-p)+"L"+a+","+t+" L"+(a+n)+","+t+" L"+(a+n)+","+(t-p)):b.setAttributeNS(null,"d","M"+a+","+t+" L"+a+","+(t+p)+" L"+(a+n)+","+(t+p)+"L"+(a+n)+","+t),b.setAttributeNS(null,"class",e.className+" vis-icon-fill"),e.options.shaded.style!==void 0&&e.options.shaded.style!==""&&b.setAttributeNS(null,"style",e.options.shaded.style)),e.options.drawPoints.enabled==!0){var $={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className};jg(a+.5*n,t,$,d.svgElements,d.svg)}};Tn.drawShading=function(e,a,t,n){if(a.options.shaded.enabled==!0){var h=Number(n.svg.style.height.replace("px","")),d=Xs("path",n.svgElements,n.svg),p="L";a.options.interpolation.enabled==!0&&(p="C");var y,b=0;a.options.shaded.orientation=="top"?b=0:a.options.shaded.orientation=="bottom"?b=h:b=Math.min(Math.max(0,a.zeroPosition),h),a.options.shaded.orientation=="group"&&t!=null&&t!=null?y="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,p,!1)+" L"+t[t.length-1][0]+","+t[t.length-1][1]+" "+this.serializePath(t,p,!0)+t[0][0]+","+t[0][1]+" Z":y="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,p,!1)+" V"+b+" H"+e[0][0]+" Z",d.setAttributeNS(null,"class",a.className+" vis-fill"),a.options.shaded.style!==void 0&&d.setAttributeNS(null,"style",a.options.shaded.style),d.setAttributeNS(null,"d",y)}};Tn.draw=function(e,a,t){if(e!=null&&e!=null){var n=Xs("path",t.svgElements,t.svg);n.setAttributeNS(null,"class",a.className),a.style!==void 0&&n.setAttributeNS(null,"style",a.style);var h="L";a.options.interpolation.enabled==!0&&(h="C"),n.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,h,!1))}};Tn.serializePath=function(e,a,t){if(e.length<2)return"";var n=a,h;if(t)for(h=e.length-2;h>0;h--)n+=e[h][0]+","+e[h][1]+" ";else for(h=1;h0&&(V=1/V),oe=3*G*(G+ae),oe>0&&(oe=1/oe),y={screen_x:(-ye*n.screen_x+R*h.screen_x+pe*d.screen_x)*V,screen_y:(-ye*n.screen_y+R*h.screen_y+pe*d.screen_y)*V},b={screen_x:(ve*h.screen_x+Y*d.screen_x-ye*p.screen_x)*oe,screen_y:(ve*h.screen_y+Y*d.screen_y-ye*p.screen_y)*oe},y.screen_x==0&&y.screen_y==0&&(y=h),b.screen_x==0&&b.screen_y==0&&(b=d),ze.push([y.screen_x,y.screen_y]),ze.push([b.screen_x,b.screen_y]),ze.push([d.screen_x,d.screen_y]);return ze};Tn._linear=function(e){for(var a=[],t=0;tt.x?1:-1})):this.itemsData=[]};kd.prototype.getItems=function(){return this.itemsData};kd.prototype.setZeroPosition=function(e){this.zeroPosition=e};kd.prototype.setOptions=function(e){if(e!==void 0){var a=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];ee.selectiveDeepExtend(a,this.options,e),typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),ee.mergeOptions(this.options,e,"interpolation"),ee.mergeOptions(this.options,e,"drawPoints"),ee.mergeOptions(this.options,e,"shaded"),e.interpolation&&bt(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}};kd.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=e.visible===void 0?!0:e.visible,this.style=e.style,this.setOptions(e.options)};kd.prototype.getLegend=function(e,a,t,n,h){if(t==null||t==null){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");t={svg:d,svgElements:{},options:this.options,groups:[this]}}switch((n==null||n==null)&&(n=0),(h==null||h==null)&&(h=.5*a),this.options.style){case"line":Tn.drawIcon(this,n,h,e,a,t);break;case"points":case"point":J_.drawIcon(this,n,h,e,a,t);break;case"bar":sa.drawIcon(this,n,h,e,a,t);break}return{icon:t.svg,label:this.content,orientation:this.options.yAxisOrientation}};kd.prototype.getYRange=function(e){for(var a=e[0].y,t=e[0].y,n=0;ne[n].y?e[n].y:a,t=t");this.dom.textArea.innerHTML=ee.xss(d),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}};So.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=Ki(this.groups);Ii(e).call(e,function(w,$){return w<$?-1:1}),Cue(this.svgElements);var a=window.getComputedStyle(this.dom.frame).paddingTop,t=Number(a.replace("px","")),n=t,h=this.options.iconSize,d=.75*this.options.iconSize,p=t+.5*d+3;this.svg.style.width=h+5+t+"px";for(var y=0;y0){var y={};for(this._getRelevantData(p,y,h,d),this._applySampling(p,y),a=0;a0)switch(e.options.style){case"line":w.hasOwnProperty(p[a])||(w[p[a]]=Tn.calcPath(y[p[a]],e)),Tn.draw(w[p[a]],e,this.framework);case"point":case"points":(e.options.style=="point"||e.options.style=="points"||e.options.drawPoints.enabled==!0)&&J_.draw(y[p[a]],e,this.framework);break}}}return qo(this.svgElements),!1};vr.prototype._stack=function(e,a){var t,n,h,d,p;t=0;for(var y=0;ye[y].x){p=a[b],b==0?d=p:d=a[b-1],t=b;break}p===void 0&&(d=a[a.length-1],p=a[a.length-1]),n=p.x-d.x,h=p.y-d.y,n==0?e[y].y=e[y].orginalY+p.y:e[y].y=e[y].orginalY+h/n*(e[y].x-d.x)+d.y}};vr.prototype._getRelevantData=function(e,a,t,n){var h,d,p,y;if(e.length>0)for(d=0;d0){for(var n=0;n0){var d=1,p=h.length,y=this.body.util.toGlobalScreen(h[h.length-1].x)-this.body.util.toGlobalScreen(h[0].x),b=p/y;d=Math.min(Math.ceil(.2*p),Math.max(1,Math.round(b)));for(var w=new Array(p),$=0;$0){for(d=0;d0&&(h=this.groups[e[d]],b.stack===!0&&b.style==="bar"?b.yAxisOrientation==="left"?p=Cn(p).call(p,n):y=Cn(y).call(y,n):t[e[d]]=h.getYRange(n,e[d]));sa.getStackedYRange(p,t,e,"__barStackLeft","left"),sa.getStackedYRange(y,t,e,"__barStackRight","right")}};vr.prototype._updateYAxis=function(e,a){var t=!1,n=!1,h=!1,d=1e9,p=1e9,y=-1e9,b=-1e9,w,$;if(e.length>0){for(var A=0;Aw?w:d,y=y<$?$:y):(h=!0,p=p>w?w:p,b=b<$?$:b));n==!0&&this.yAxisLeft.setRange(d,y),h==!0&&this.yAxisRight.setRange(p,b)}t=this._toggleAxisVisiblity(n,this.yAxisLeft)||t,t=this._toggleAxisVisiblity(h,this.yAxisRight)||t,h==!0&&n==!0?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!n,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==!1?(h==!0?this.yAxisLeft.lineOffset=this.yAxisRight.width:this.yAxisLeft.lineOffset=0,t=this.yAxisLeft.redraw()||t,t=this.yAxisRight.redraw()||t):t=this.yAxisRight.redraw()||t;var Y=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(A=0;Ad?d:e,a=a==null||a0&&w.push($.screenToValue(h)),!A.hidden&&this.itemsData.length>0&&w.push(A.screenToValue(h)),{event:e,customTime:p?p.options.id:null,what:b,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:n,y:h,time:d,value:w}};jh.prototype._createConfigurator=function(){return new N_e(this,this.dom.container,V_e)};var q_e=Eue();Mi.locale(q_e);var Z3=e=>(a,t)=>{var n,h,d,p,y,b,w,$;if(!e.orderBy)return 0;for(let A of J3(e.orderBy)){let R=0;switch(A.sortingField){case"start":R=Mi(t.start).diff(a.start);break;case"end":R=Mi(t.end).diff(a.end);break;case"content":R=t.content.localeCompare(a.content);break;case"style":case"color":R=(p=(d=(n=t.style)!=null?n:"")==null?void 0:d.localeCompare((h=a.style)!=null?h:""))!=null?p:0;break;case"description":R=($=(w=(y=t.cDescription)!=null?y:"")==null?void 0:w.localeCompare((b=a.cDescription)!=null?b:""))!=null?$:0;break}if(R!==0)return A.sortingOrder*R}return 0},J3=e=>e.map(a=>(a=a.trim(),{sortingField:a.startsWith("-")?a.substring(1):a,sortingOrder:a.startsWith("-")?-1:1})),Q3=(e=>(e[e.DESC=-1]="DESC",e[e.ASC=1]="ASC",e))(Q3||{}),dN=">",CL=class{constructor(e=BC){this.errors=[],this.items=[],this.markers=[],this.groups=[],this.groupMap={},this.flags={},this.locale=e}parse(e,a){this.settings=a;let t=e.split(` `);if(this._resetVars(),t.forEach((y,b)=>{y=y.trim();let w=b+1;y.startsWith("#")||(y.startsWith("-")?this._parseEvent(y,w):y.startsWith("@")?this._parsePeriod(y,w):y.startsWith("*")?this._parsePoint(y,w):y.startsWith("=")?this._parseMarker(y,w):y.startsWith(dN)?this._parseFlag(y,w):y&&this._addParserError(w,`Unrecognized format: ${y}`))}),this.errors.length>0)throw new Error(this.errors.join(";;"));let n=this.flags,h=this.items,d=this.markers,p=this.groups;return{items:h,markers:d,groups:p,flags:n}}_parseTimeItem(e,a){let t="[-@=\\*]",n="(-?\\d{1,}(-?(\\d{2})?-?(\\d{2})?T?(\\d{2})?:?(\\d{2})?:?(\\d{2})?)?)",h="\\s*",d="([^-\\d\\s]*?)?",p="(#(\\w+))?",y="(\\{([^}]+)\\})?",b="(.+?)",w="(\\|\\s*(?h&&this._addParserError(t,`Start date (${e}) is after end date (${a}).`)}}_ensureCorrectDateSeparator(e,a){if(e!=="~"){let t=`Invalid date separator "${e}". Dates in a range must be separated by a tilde (~).`;this._addParserError(a,t)}}_validateDate(e,a){try{gN(e)}catch(t){this._addParserError(a,t.message)}}_validateDates(e,a,t,n){this._validateDate(e,n),a&&this._validateDate(a,n),t&&this._ensureCorrectDateSeparator(t,n),this._ensureChronologicalDates(e,a,n)}_addParserError(e,a){this.errors.push(`Line ${e}: ${a}`)}_clearErrors(){this.errors=[]}_clearItems(){this.items=[]}_clearMarkers(){this.markers=[]}_clearGroups(){this.groups=[]}_clearFlags(){this.flags={}}_resetVars(){this._clearErrors(),this._clearItems(),this._clearMarkers(),this._clearGroups(),this._clearFlags()}},k6=qV(ZV()),K_e=` `;function EL(e){let a=e.replace(/(\d+)(st|nd|rd|th)/,"$1"),t=new Date(a);return isNaN(t)&&console.error("Invalid date string in custom marker title"),t.toISOString()}var eW=["ar","fa","he","ks","ku","ur","yi"];function tW(e){return eW.includes(e)}var X_e=["af","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","eo","es","et","eu","fi","fr","ga","gl","gu","hi","hr","hu","hy","id","is","it","ja","jv","ka","kk","km","kn","ko","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","my","nb","ne","nl","nn","pl","pt","ro","ru","si","sk","sl","so","sq","sr","su","sv","sw","ta","te","th","tr","uk","vi","xh","zh-cn","zh-tw","zu"],Z_e=[...X_e,...eW].sort();function kg(e,a){switch(a){case"en":return`${e.getUTCFullYear()}`;case"ja":case"zh":case"zh-cn":case"zh-tw":return`${e.getUTCFullYear()}\u5E74`;case"ko":return`${e.getUTCFullYear()}\uB144`;case"ru":return`${e.getUTCDate()} \u0433.`;default:return`${e.getUTCFullYear()}`}}function fN(e){return e.getUTCMonth()===0&&e.getUTCDate()===1&&e.getUTCHours()===0&&e.getUTCMinutes()===0&&e.getUTCSeconds()===0}function S6(e,a){return fN(e)&&fN(a)}function YC(e,a=null,t){let n=aa(e),h=a?aa(a):null,d={month:"short",timeZone:"UTC"},p={month:"short",day:"numeric",year:"numeric",timeZone:"UTC"},y=tW(t),b=n.toLocaleDateString(t,d);if(h&&n.getUTCFullYear()===h.getUTCFullYear()&&n.getUTCMonth()===h.getUTCMonth()&&n.getUTCDate()===h.getUTCDate())return y?`${n.getUTCDate()} \u200E${b} \u200E${n.getUTCFullYear()}`:n.toLocaleDateString(t,p);if(h&&n.getUTCFullYear()===h.getUTCFullYear()&&n.getUTCMonth()===h.getUTCMonth()){if(y)return`${n.getUTCDate()}-${h.getUTCDate()} \u200E${b} \u200E${n.getUTCFullYear()}`;switch(t){case"en":return`${b} ${n.getUTCDate()}-${h.getUTCDate()}, ${n.getUTCFullYear()}`;case"ja":case"zh":return`${kg(n,t)}${b}${n.getUTCDate()}~${h.getUTCDate()}\u65E5`;case"ko":return`${kg(n,t)}\uB144 ${b}${n.getUTCDate()}~${h.getUTCDate()}\uC77C`;case"ru":return`${n.getUTCDate()}-${h.getUTCDate()} ${b} ${kg(n,t)}`;default:return`${n.getUTCDate()}-${h.getUTCDate()} ${b} ${n.getUTCFullYear()}`}}else if(h){let w=h.toLocaleDateString(t,d);return y?S6(n,h)?`\u200E${n.getUTCFullYear()} - \u200E${h.getUTCFullYear()}`:`${n.getUTCDate()} \u200E${b} \u200E${n.getUTCFullYear()} - ${h.getUTCDate()} \u200E${w} \u200E${h.getUTCFullYear()}`:S6(n,h)?`${kg(n,t)} - ${kg(h,t)}`:`${n.toLocaleDateString(t,p)} - ${h.toLocaleDateString(t,p)}`}else return fN(n)?kg(n,t):y?`${n.getUTCDate()} \u200E${b} \u200E${n.getUTCFullYear()}`:n.toLocaleDateString(t,p)}var x6,J_e=((x6=Mi.clone)==null?void 0:x6.call(Mi))||Mi;function rW(e,a){let t=J_e(e).locale(a.selectedLocale);return a.useUtc?t.utc():t}var iW="```chronos\n\n```",nW=`\`\`\`chronos - [2020] Event 1 - [2020-01-04~2020-01-14] Event 2 - [2020-01-10] Event 3 @ [2020-01-06~2020-01-10] Period 1 \`\`\``,aW=`\`\`\`chronos @ [1888-09-26~1965-01-04] {T.S. Eliot} Life: 1888-1965 - [1949] {T.S. Eliot} "The Cocktail Party" | A play - [1920] {T.S. Eliot} "The Sacred Wood" - [1922] {T.S. Eliot} "The Wasteland" @ [1899-08-24~1986-06-14] {Jorge Luis Borges} Life: 1899-1986 - [1944] {Jorge Luis Borges} "Ficciones" - [1949] #cyan {Jorge Luis Borges} "El Aleph" - [1962] {Jorge Luis Borges} "Labyrinths" \`\`\``,oW=`# Chronos Cheatsheet After installing the Chronos Timeline plugin for Obsidian, copy and paste this whole markdown file into a file in your vault to play around and learn the syntax. Hover on a timeline and click the Edit button in the upper right to play with the data. ## Date formats Chronos can visualize dates from the year down to the second level, using the syntax \`YYYY-MM-DDThh:mm:ss\`. The only required component of a date is the year (\`YYYY\`). Beyond that, you can specify additional time granularity as needed for your use case. If not explicitly provided: - The month and day default to \`01\` (January and the 1st) - The hour, minute, and second default to \`00\` (top of the hour or minute) ### Examples \`\`\`chronos - [2020] A year - [2020-02] A month - [2020-02-28] A day - [2020-02-28T12] An hour - [2020-02-28T12:30] A minute - [2020-02-28T12:30:09] A second \`\`\` ## Events **Full Syntax** \`\`\` - [Date~Date] #Color {Group Name} Event Name | Description \`\`\` - The second Date, Color, Group Name, Event Name, and Description are optional - Description appears when you hover on an event in the timeline ### Examples #### Single Date **Syntax** \`\`\` - [Date] Event Name \`\`\` \`\`\`chronos - [1879-03-14] Einstein born \`\`\` #### Date range **Syntax** \`\`\` - [Date~Date] Event Name \`\`\` \`\`\`chronos - [1991~2001] Time I believed in Santa \`\`\` #### Date range with description **Syntax** \`\`\` - [Date~Date] Event Name| Description \`\`\` \`\`\`chronos - [1991~2001] Time I believed in Santa | ended when my brother tried to videotape Santa with a hidden camera \`\`\` #### With color See available [Colors](#colors) **Syntax** \`\`\` - [Date~Date] #Color Event Name| Description \`\`\` \`\`\`chronos - [2001~2009] #red Bush - [2009~2017] #blue Obama - [2017~2021] #red Trump - [2021~2025] #blue Biden \`\`\` #### With groups **Syntax** \`\`\` - [Date(~Date)] {Group Name} Event Name| Description \`\`\` \`\`\`chronos @ [1892-10-08~1941-08-31] {Marina Tsvetaeva} 1892-1941 - [1916] {Marina Tsvetaeva} "\u041F\u043E\u0434\u0440\u0443\u0433\u0430" - [1928] {Marina Tsvetaeva} "\u041F\u043E\u044D\u043C\u0430 \u043A\u043E\u043D\u0446\u043E\u0432" - [1941] {Marina Tsvetaeva} "\u0417\u0430\u043F\u0438\u0441\u043A\u0438 \u043E \u043F\u043E\u044D\u0437\u0438\u0438" @ [1899-08-24~1986-06-14] {Jorge Luis Borges} 1899-1986 - [1944] {Jorge Luis Borges} "Ficciones" - [1949] {Jorge Luis Borges} "El Aleph" - [1962] {Jorge Luis Borges} "Labyrinths" \`\`\` ## Periods **Full Syntax** \`\`\` @ [Date~Date] #Color {Group Name} Period Name \`\`\` - Color, Group Name, and Period Name are optional ### Examples #### Basic \`\`\`chronos @ [-300~250] Yayoi Period - [-100] Introduction of rice cultivation - [-57] Japan\u2019s first recorded contact with China \`\`\` #### With color See available [Colors](#colors) \`\`\`chronos @ [-300~250] #red Yayoi Period - [-100] Introduction of rice cultivation - [-57] Japan\u2019s first recorded contact with China @ [250~538] Kofun Period - [250] Construction of keyhole-shaped kofun burial mounds begins - [369] Yamato state sends envoys to Korea \`\`\` ## Points **Syntax** \`\`\` * [Date] Point Name | Description \`\`\` \`\`\`chronos - [2024-02-26~2024-03-10] Tournament * [2024-02-26] Game 1 | Austin * [2024-02-28] Game 2 | Los Angeles * [2024-03-06] Game 3 | Tokyo * [2024-03-10] Game 4 | Jakarta \`\`\` ## Markers **Syntax** \`\`\` = [Date] Marker Name \`\`\` ### Examples \`\`\`chronos = [1440] Invention of the Gutenberg Press - [1455] Gutenberg Bible Printed @ [1501~1600] The Spread of Printing - [1517] Martin Luther's 95 Theses \`\`\` ## Advanced example \`\`\`chronos - [1945-07-17] {Europe} Potsdam Conference | where post-WWII Europe is divided - [1947-03-12] {USA} Truman Doctrine | committing the U.S. to containing communism - [1948-06-24~1949-05-12] {Europe} Berlin Blockade | and Airlift in response to Soviet actions in Berlin - [1949-04-04] {Europe} Formation of NATO # Early Cold War @ [1957~1969] #cyan {USSR} Space Race @ [1957~1969] #cyan {USA} Space Race - [1950-06-25~1953-07-27] {Asia} Korean War | between North and South Korea - [1955-05-14] {USSR} Warsaw Pact | in response to NATO - [1957-10-04] #cyan {USSR} Sputnik launched | initiating the Space Race - [1961-04-17] {Cuba} Bay of Pigs Invasion | in Cuba # Height of Tensions - [1962-10-16] {Cuba} Cuban Missile Crisis | a peak confrontation between the U.S. and USSR - [1963-08-05] {Global} Partial Nuclear Test Ban Treaty signed - [1969-07-20] #cyan {USA} Apollo 11 Moon landing | U.S. wins the Space Race - [1972-05-26] {Global} SALT I signed | first Strategic Arms Limitation Treaty # D\xE9tente Period - [1979-12-24~1989-02-15] {USSR} Soviet-Afghan War | straining Soviet resources - [1983-03-23] {USA} Reagan announces the Strategic Defense Initiative (SDI) - [1986-04-26] {USSR} Chernobyl nuclear disaster - [1987-12-08] {Global} INF Treaty | signed, eliminating intermediate-range nuclear missiles # Late Cold War - [1989-11-09] {Europe} Fall of the Berlin Wall | symbolizing the end of Cold War tensions - [1991-07-31] {Global} START I Treaty signed | further arms reduction - [1991-12-26] {USSR} Dissolution of the Soviet Union | officially ending the Cold War = [1991-12-26] End of the Cold War \`\`\` ## Ordering **Order by start date** \`\`\`chronos > ORDERBY start - [2026~2028] Event D - [2024~2028] Event B - [2025~2030] #red Event C - [2020~2030] #red Event A \`\`\` **Order by start (descending)** \`\`\`chronos > ORDERBY -start - [2026~2028] Event D - [2024~2028] Event B - [2025~2030] #red Event C - [2020~2030] #red Event A \`\`\` **Order by color and start** \`\`\`chronos > ORDERBY color|start - [2026~2028] Event D - [2024~2028] Event B - [2025~2030] #red Event C - [2020~2030] #red Event A \`\`\` ## Default view dates Use the \`> DEFAULTVIEW start|end\` flag to specify default start and end dates for your timeline's initial load \`\`\`chronos > DEFAULTVIEW -3000|3000 - [2024] AGI \`\`\` ## Colors - \`#red\` - \`#orange\` - \`#yellow\` - \`#green\` - \`#blue\` - \`#purple\` - \`#pink\` - \`#cyan\` You can also use valid six-digit color hexcodes. Upper or lowercase is fine. example (Lavendar): - #A379C9 - #a379c9 `,Q_e=`Generate timelines in Markdown using Chronos syntax, a simple line-by-line format for capturing events, periods, and markers. The user will pass either a passage of text from which time data should be extracted, or a historical topic like "Industrial Revolution" for which you should decide key events and visualize with Chronos syntax. ### Chronos Syntax Overview: 1. **Events**: \`- [Date~Date] Event Name | Description\` - The second Date, Event Name, and Description are optional. 2. **Periods**: \`@ [Date~Date] Period Name\` - Requires both start and end Dates. Period Name is optional. - Periods NEVER have descriptions 3. **Points**: \`* [Date] Event Name | Description\` - Descriptions are optional 4. **Markers**: \`= [Date] Marker Name\` - Requires a single Date. ### Rules: - Important: the items should be wrapped in a codeblock with language "chronos" - Important: keep Period Names and Event Names as brief as possible - Important: DO NOT use groups if there is only one group - assume that mention of today is today's date - **Date format**: \`YYYY-MM-DDThh:mm:ss\`, with minimum granularity required (e.g., just year). - Use \`#\` at the start of a line to add ignored comments. - Events and Periods support optional modifiers: - **Colors**: e.g., \`$red, #blue\`. - **Groups**: \`{Group Name}\` (case-sensitive, can include spaces) - modifers must be added in this order: \`- [Date~Date] #Color {Group Name} Event Name\` - Possible colors: #red, #orange, #yellow, #green, #blue, #purple, #pink, #cyan - BCE Dates: Represented with \`-\` (e.g., \`-10000\` for 10000 BCE). - Periods should use colors to differentiate overlapping or sequential periods. - Focus on simplicity; not all item types need to be used ### Example 1: Timeline of events in Cold War \`\`\`chronos - [1947-03-12] Truman Doctrine | Committing the U.S. to containing communism - [1948-06-24~1949-05-12] Berlin Blockade | Soviet blockade and Allied airlift @ [1947-01-01~1953-12-31] Early Cold War - [1957-10-04] Sputnik launched | Start of the Space Race @ [1963-01-01~1979-12-31] #red D\xE9tente Period = [1991-12-26] End of the Cold War \`\`\` ### Example 2: Timeline life and works of two authors \`\`\`chronos @ [1888-09-26~1965-01-04] {T.S. Eliot} Life: 1888-1965 - [1949] {T.S. Eliot} "The Cocktail Party" | A play - [1920] {T.S. Eliot} "The Sacred Wood" - [1922] {T.S. Eliot} "The Wasteland" @ [1899-08-24~1986-06-14] #cyan {Jorge Luis Borges} Life: 1899-1986 - [1944] #cyan {Jorge Luis Borges} "Ficciones" - [1949] #cyan {Jorge Luis Borges} "El Aleph" - [1962] #cyan {Jorge Luis Borges} "Labyrinths" \`\`\` ### Example 3: Tounement with games as Points \`\`\`chronos - [2024-02-26~2024-03-10] Tournament * [2024-02-26] Game 1 | Austin * [2024-02-28] Game 2 | Los Angeles * [2024-03-06] Game 3 | Tokyo * [2024-03-10] Game 4 | Jakarta \`\`\` `,S_=` :root { --chronos-semi-gray: hsla(0, 0%, 50%, 0.15); --chronos-opacity: 0.2; --chronos-bg-primary: #ffffff; --chronos-bg-secondary: #f6f8fa; --chronos-text-normal: #24292e; --chronos-text-muted: #586069; --chronos-text-on-accent: #ffffff; --chronos-accent: #0366d6; --chronos-accent-hover: #0366d6e6; --chronos-accent-alpha: rgba(3, 102, 214, 0.2); --chronos-border: #e1e4e8; --chronos-border-active: rgba(3, 102, 214, 0.5); --chronos-interactive: #0366d6; --chronos-interactive-hover: #005cc5; --chronos-radius: 6px; --chronos-radius-small: 3px; --chronos-icon-color: #586069; --chronos-bg-text: #000000; /* Color palette for timeline items */ --chronos-color-red: #dc3545; --chronos-color-red-rgb: 220, 53, 69; --chronos-color-green: #28a745; --chronos-color-green-rgb: 40, 167, 69; --chronos-color-blue: #007bff; --chronos-color-blue-rgb: 0, 123, 255; --chronos-color-yellow: #ffc107; --chronos-color-yellow-rgb: 255, 193, 7; --chronos-color-orange: #fd7e14; --chronos-color-orange-rgb: 253, 126, 20; --chronos-color-purple: #6f42c1; --chronos-color-purple-rgb: 111, 66, 193; --chronos-color-pink: #e83e8c; --chronos-color-pink-rgb: 232, 62, 140; --chronos-color-cyan: #17a2b8; --chronos-color-cyan-rgb: 23, 162, 184; } .chronos-timeline-container { background-color: var(--chronos-bg-secondary); position: relative; border-radius: var(--chronos-radius); } .chronos-timeline-container .chronos-timeline-refit-button { position: absolute; bottom: 2px; right: 5px; padding: 2px 5px; background-color: transparent; border: none; box-shadow: none; border-radius: 5px; cursor: pointer; z-index: 99; color: var(--chronos-icon-color); } .chronos-timeline-container .chronos-timeline-refit-button:hover { background-color: var(--chronos-semi-gray); fill: currentColor; } .chronos-timeline-container .chronos-timeline-refit-button svg { fill: currentColor; width: 16px; border-radius: 0; } .chronos-error-message-container { padding: 1rem 1.5rem; color: var(--chronos-text-normal); } .vis-timeline { border: 1px solid transparent; border-radius: 0; cursor: default; } .vis-timeline.vis-active { border-color: var(--chronos-border-active); border-radius: 0; } .vis-label { color: var(--chronos-text-muted); } .vis-custom-time, .vis-custom-time-marker { color: var(--chronos-text-on-accent); background-color: var(--chronos-text-normal); } .chronos-timeline-container .vis-item.vis-background { background-color: var(--chronos-accent-alpha); z-index: 1; } .chronos-timeline-container .vis-item.vis-background .vis-item-content { color: var(--chronos-bg-text); } /* Ensure points and events appear above background periods */ .chronos-timeline-container .vis-item.vis-point { z-index: 10; pointer-events: auto; border: none; } .chronos-timeline-container .vis-item.vis-box, .chronos-timeline-container .vis-item.vis-range { z-index: 5; pointer-events: auto; } /* Ensure item content is hoverable */ .chronos-timeline-container .vis-item-content { pointer-events: auto; position: relative; z-index: inherit; } .chronos-timeline-container .vis-item.vis-selected { border-color: var(--chronos-interactive-hover); background-color: var(--chronos-interactive-hover); color: var(--chronos-text-on-accent); } .chronos-timeline-container .vis-item { border-radius: var(--chronos-radius-small); border-color: var(--chronos-accent); } .chronos-timeline-container .vis-box, .chronos-timeline-container .vis-range { cursor: default; border-color: transparent; background-color: var(--chronos-interactive); color: var(--chronos-text-on-accent); z-index: 5; pointer-events: auto; } .chronos-timeline-container .vis-range.with-caps { border-radius: 50px; padding-left: 8px; } /* Link styles */ .chronos-timeline-container .is-link { cursor: pointer; } .chronos-timeline-container .is-link .vis-item-content { text-transform: none; text-decoration: underline; text-decoration-line: underline; text-decoration-style: solid; text-decoration-color: currentColor; text-underline-offset: 5px; } .chronos-timeline-container .vis-item-content { text-decoration: inherit; } .chronos-timeline-container .vis-point { cursor: default; z-index: 10; pointer-events: auto; } .chronos-timeline-container .vis-text { color: var(--chronos-text-muted); } .chronos-timeline-container .vis-dot, .chronos-timeline-container .vis-line { background-color: var(--chronos-interactive); color: var(--chronos-interactive); } .vis-custom-time[title]::after { content: attr(title); display: none; } .chronos-timeline-container :is( .vis-timeline, .vis-panel.vis-center, .vis-panel.vis-left, .vis-panel.vis-right, .vis-panel.vis-top, .vis-panel.vis-bottom ) { border-color: var(--chronos-border); } .chronos-timeline-container .vis-time-axis .vis-grid.vis-major { border-color: var(--chronos-border); } .chronos-timeline-container .vis-time-axis .vis-grid.vis-minor { border-color: var(--chronos-semi-gray); } .chronos-timeline-container .vis-foreground > .vis-group, .chronos-timeline-container .vis-labelset > .vis-label { border-bottom-color: var(--chronos-border); } .chronos-timeline-container .vis-label { color: var(--chronos-text-muted); } [data-theme="light"], body:not([data-theme]) { --chronos-bg-primary: #ffffff; --chronos-bg-secondary: #f6f8fa; --chronos-text-normal: #24292e; --chronos-text-muted: #586069; --chronos-text-on-accent: #ffffff; --chronos-accent: #0366d6; --chronos-accent-hover: #0366d6e6; --chronos-accent-alpha: rgba(3, 102, 214, 0.2); --chronos-border: #e1e4e8; --chronos-border-active: rgba(3, 102, 214, 0.5); --chronos-interactive: #0366d6; --chronos-interactive-hover: #005cc5; --chronos-icon-color: #586069; --chronos-bg-text: #000000; /* Light theme color palette */ --chronos-color-red: #dc3545; --chronos-color-red-rgb: 220, 53, 69; --chronos-color-green: #28a745; --chronos-color-green-rgb: 40, 167, 69; --chronos-color-blue: #007bff; --chronos-color-blue-rgb: 0, 123, 255; --chronos-color-yellow: #ffc107; --chronos-color-yellow-rgb: 255, 193, 7; --chronos-color-orange: #fd7e14; --chronos-color-orange-rgb: 253, 126, 20; --chronos-color-purple: #6f42c1; --chronos-color-purple-rgb: 111, 66, 193; --chronos-color-pink: #e83e8c; --chronos-color-pink-rgb: 232, 62, 140; --chronos-color-cyan: #17a2b8; --chronos-color-cyan-rgb: 23, 162, 184; } /* Dark theme support */ @media (prefers-color-scheme: dark) { :root { --chronos-bg-primary: #0d1117; --chronos-bg-secondary: #161b22; --chronos-text-normal: #f0f6fc; --chronos-text-muted: #8b949e; --chronos-text-on-accent: #ffffff; --chronos-accent: #58a6ff; --chronos-accent-hover: #58a6ffe6; --chronos-accent-alpha: rgba(88, 166, 255, 0.2); --chronos-border: #30363d; --chronos-border-active: rgba(88, 166, 255, 0.5); --chronos-interactive: #58a6ff; --chronos-interactive-hover: #388bfd; --chronos-icon-color: #8b949e; --chronos-bg-text: #ffffff; /* Dark theme color palette */ --chronos-color-red: #f85149; --chronos-color-red-rgb: 248, 81, 73; --chronos-color-green: #3fb950; --chronos-color-green-rgb: 63, 185, 80; --chronos-color-blue: #58a6ff; --chronos-color-blue-rgb: 88, 166, 255; --chronos-color-yellow: #d29922; --chronos-color-yellow-rgb: 210, 153, 34; --chronos-color-orange: #fb8500; --chronos-color-orange-rgb: 251, 133, 0; --chronos-color-purple: #a855f7; --chronos-color-purple-rgb: 168, 85, 247; --chronos-color-pink: #f0649c; --chronos-color-pink-rgb: 240, 100, 156; --chronos-color-cyan: #39d0d8; --chronos-color-cyan-rgb: 57, 208, 216; } } [data-theme="dark"] { --chronos-bg-primary: #0d1117; --chronos-bg-secondary: #161b22; --chronos-text-normal: #f0f6fc; --chronos-text-muted: #8b949e; --chronos-text-on-accent: #ffffff; --chronos-accent: #58a6ff; --chronos-accent-hover: #58a6ffe6; --chronos-accent-alpha: rgba(88, 166, 255, 0.2); --chronos-border: #30363d; --chronos-border-active: rgba(88, 166, 255, 0.5); --chronos-interactive: #58a6ff; --chronos-interactive-hover: #388bfd; --chronos-icon-color: #8b949e; --chronos-bg-text: #ffffff; /* Dark theme color palette */ --chronos-color-red: #f85149; --chronos-color-red-rgb: 248, 81, 73; --chronos-color-green: #3fb950; --chronos-color-green-rgb: 63, 185, 80; --chronos-color-blue: #58a6ff; --chronos-color-blue-rgb: 88, 166, 255; --chronos-color-yellow: #d29922; --chronos-color-yellow-rgb: 210, 153, 34; --chronos-color-orange: #fb8500; --chronos-color-orange-rgb: 251, 133, 0; --chronos-color-purple: #a855f7; --chronos-color-purple-rgb: 168, 85, 247; --chronos-color-pink: #f0649c; --chronos-color-pink-rgb: 240, 100, 156; --chronos-color-cyan: #39d0d8; --chronos-color-cyan-rgb: 57, 208, 216; } `,gR=100;function ewe(e,a){e.setAttribute("title",a)}var pE=class sW{constructor(a,t){this.eventHandlers={};let n,h,d,p;if(a instanceof HTMLElement)n=a,h=t||{selectedLocale:"en",align:"left",clickToUse:!1,roundRanges:!1,useUtc:!0,useAI:!1},d=void 0,p=void 0;else{let y=a;n=y.container,h=y.settings,d=y.callbacks,p=y.cssRootClass}this.container=n,this.settings=h,this.parser=new CL(this.settings.selectedLocale),this.callbacks=d,this.cssRootClass=p,this.setTooltip=this.callbacks&&this.callbacks.setTooltip||ewe,this._attachStylesIfMissing()}_attachStylesIfMissing(){var a;try{let t=this.container&&this.container.ownerDocument||(typeof document!="undefined"?document:void 0),n=(a=this.settings)==null?void 0:a.theme,h=n==null?void 0:n.cssVariables,d=n==null?void 0:n.disableDefaultStyles;if(t){if(d){if(h&&!t.querySelector('style[data-chronos-custom="1"]')){let y=t.createElement("style");y.setAttribute("data-chronos-custom","1");let b=Object.entries(h).map(([w,$])=>` --${w}: ${$};`).join(` `);y.textContent=`:root { ${b} }`,t.head&&t.head.appendChild(y)}}else if(!t.querySelector('style[data-chronos-core="1"]')){let y=t.createElement("style");y.setAttribute("data-chronos-core","1");let b=S_;h&&(b=`:root { ${Object.entries(h).map(([$,A])=>` --${$}: ${A};`).join(` `)} } `+b),y.textContent=b,t.head&&t.head.appendChild(y)}}}catch(t){}}static render(a,t,n){let h=new sW(a,n);return h.render(t),h}render(a){try{let{items:t,markers:n,groups:h,flags:d}=this.parser.parse(a,this.settings);this._renderFromResult({items:t,markers:n,groups:h,flags:d})}catch(t){this._handleParseError(t)}}renderParsed(a){this._renderFromResult(a)}on(a,t){this.eventHandlers[a]=t,this.timeline&&this._setupEventHandlers(this.timeline)}_setupEventHandlers(a){Object.keys(this.eventHandlers).forEach(t=>{a.on(t,n=>{this.eventHandlers[t](n)})})}_getTimelineOptions(){return{zoomMax:2997972e8,zoomable:!0,selectable:!0,minHeight:"200px",align:this.settings.align,moment:a=>rW(a,this.settings)}}_renderFromResult({items:a,markers:t,groups:n,flags:h}){var b,w,$,A,R;try{let Y=this.container&&this.container.ownerDocument||(typeof document!="undefined"?document:void 0),V=(b=this.settings)==null?void 0:b.theme,oe=V==null?void 0:V.cssVariables,G=V==null?void 0:V.disableDefaultStyles;if(Y){if(G){if(oe&&!Y.querySelector('style[data-chronos-custom="1"]')){let ve=Y.createElement("style");ve.setAttribute("data-chronos-custom","1");let ye=Object.entries(oe).map(([pe,Se])=>` --${pe}: ${Se};`).join(` `);ve.textContent=`:root { ${ye} }`,Y.head&&Y.head.appendChild(ve)}}else if(!Y.querySelector('style[data-chronos-core="1"]')){let ve=Y.createElement("style");ve.setAttribute("data-chronos-core","1");let ye=S_;oe&&(ye=`:root { ${Object.entries(oe).map(([Se,ze])=>` --${Se}: ${ze};`).join(` `)} } `+ye),ve.textContent=ye,Y.head&&Y.head.appendChild(ve)}}}catch(Y){}this.container.classList.add("chronos-timeline-container"),this._applyThemeConfig();let d=this._getTimelineOptions();h!=null&&h.orderBy&&(d.order=Z3(h));let p=((w=h==null?void 0:h.defaultView)==null?void 0:w.start)&&(($=h==null?void 0:h.defaultView)==null?void 0:$.end);if(p&&(d.start=(A=h==null?void 0:h.defaultView)==null?void 0:A.start,d.end=(R=h==null?void 0:h.defaultView)==null?void 0:R.end),h!=null&&h.noToday&&(d.showCurrentTime=!1),h!=null&&h.height&&(d.height=`${h.height}px`,d.verticalScroll=!0),this.cssRootClass){let Y=this.container.querySelector(".chronos-timeline-container");Y?Y.classList.add(this.cssRootClass):this.container.classList.add(this.cssRootClass)}let y=this._createTimeline(a,n,d);this._addMarkers(y,t),this._setupTooltip(y,a),this._createRefitButton(y),this._handleZoomWorkaround(y,n),this.timeline=y,!p&&setTimeout(()=>y.fit(),gR)}_handleParseError(a){let t=document.createElement("div");t.className="chronos-error-message-container",t.innerText=this._formatErrorMessages(a),this.container.appendChild(t)}_formatErrorMessages(a){return`Error(s) parsing chronos markdown. ${a.message.split(";;").map(t=>` - ${t}`).join(` `)}`}_createTimeline(a,t=[],n){let h;if(t.length){let{updatedItems:d,updatedGroups:p}=this.assignItemsToGroups(a,t);this.items=d,h=new k6.Timeline(this.container,d,this._createDataGroups(p),n)}else h=new k6.Timeline(this.container,a,n),this.items=a;return setTimeout(()=>this._updateTooltipCustomMarkers(),gR),h}_addMarkers(a,t){t.forEach((n,h)=>{let d=`marker_${h}`;a.addCustomTime(new Date(n.start),d);try{a.setCustomTimeMarker(n.content,d,!0)}catch(p){}})}_setupTooltip(a,t){let n=new k_(t);a.on("itemover",h=>{this._showTooltipForItem(h.item,h.event.target,n)}),a.on("itemout",h=>{this._hideTooltipForItem(h.event.target)}),setTimeout(()=>{let h=this.container.querySelector(".vis-timeline");h&&h.querySelectorAll(".vis-item").forEach(p=>{let y=p.getAttribute("data-id");y&&(p.addEventListener("mouseenter",b=>{this._showTooltipForItem(y,b.target,n)}),p.addEventListener("mouseleave",b=>{this._hideTooltipForItem(b.target)}))})},150)}_showTooltipForItem(a,t,n){var d,p;let h=n.get(a);if(h){let y=`${h.content} (${YC(h.start.toISOString(),(p=(d=h.end)==null?void 0:d.toISOString())!=null?p:null,this.settings.selectedLocale)})${h.cDescription?` `+h.cDescription:""}`,b=this.container.querySelector(".vis-timeline"),w=t;if(b){let $=b.querySelector(`[data-id="${a}"]`)||b.querySelector(`.vis-item[data-id="${a}"]`);$&&(w=$)}this.setTooltip(w,y)}}_hideTooltipForItem(a){a&&a.removeAttribute("title")}_createRefitButton(a){let t=document.createElement("button");t.className="chronos-timeline-refit-button";let d=new DOMParser().parseFromString(K_e,"image/svg+xml").documentElement;t.appendChild(document.importNode(d,!0)),this.setTooltip(t,"Fit all"),t.addEventListener("click",()=>a.fit()),this.container.appendChild(t)}_updateTooltipCustomMarkers(){this.container.querySelectorAll(".vis-custom-time").forEach(t=>{let n=t.getAttribute("title");if(n){let h=n;if(this.settings.selectedLocale==="en"){let p=EL(n);h=YC(p,null,this.settings.selectedLocale)}else h=n.replace(", 0:00:00","").replace(/^.*?:/,"").trim();this.setTooltip(t,h),new MutationObserver(p=>{for(let y of p)y.type==="attributes"&&y.attributeName==="title"&&t.removeAttribute("title")}).observe(t,{attributes:!0})}})}assignItemsToGroups(a,t){let h=[...a],d=t.length?[...t,{id:0,content:" "}]:t;return h=a.map(p=>(t.length&&!p.group&&(p.group=0),p)),{updatedItems:h,updatedGroups:d}}_createDataGroups(a){return new k_(a.map(t=>({id:t.id,content:t.content})))}_handleZoomWorkaround(a,t){t.length&&setTimeout(()=>this._jiggleZoom(a),gR+50)}_jiggleZoom(a){let t=a.getWindow(),n=1.02,h=new Date(t.start.valueOf()-(t.end.valueOf()-t.start.valueOf())*(n-1)/2),d=new Date(t.end.valueOf()+(t.end.valueOf()-t.start.valueOf())*(n-1)/2);a.setWindow(h,d,{animation:!0}),setTimeout(()=>{a.setWindow(t.start,t.end,{animation:!0})},200)}destroy(){this.timeline&&typeof this.timeline.destroy=="function"&&(this.timeline.destroy(),this.timeline=void 0)}_applyThemeConfig(){var t;let a=(t=this.settings)==null?void 0:t.theme;a&&(a.customClass&&this.container.classList.add(a.customClass),a.cssVariables&&Object.entries(a.cssVariables).forEach(([n,h])=>{let d=n.startsWith("--")?n:`--${n}`;this.container.style.setProperty(d,h)}),a.disableDefaultStyles&&this.container.classList.add("chronos-no-default-styles"))}};pE.cheatsheet=oW;pE.templates={blank:iW,basic:nW,advanced:aW};pE.prompts={system:Q_e};var kp=pE,twe={version:"1.0.10"},lW={};mN(lW,{ChronosMdParser:()=>CL,enDateStrToISO:()=>EL,smartDateRange:()=>YC,toPaddedISOZ:()=>ip,toUTCDate:()=>aa,validateUTCDate:()=>gN});var uW={};mN(uW,{CHRONOS_DEFAULT_CSS:()=>S_,ChronosHighlighter:()=>awe,ChronosTimeline:()=>kp,cheatsheet:()=>oW,chronosHighlightCSS:()=>cW,chronosLanguageDefinition:()=>hW,highlightChronosText:()=>iwe,injectChronosHighlightCSS:()=>nwe,registerChronosLanguage:()=>rwe,templateAdvanced:()=>aW,templateBasic:()=>nW,templateBlank:()=>iW});var hW={name:"chronos",aliases:["chronos-md","chronos-markdown"],case_insensitive:!1,keywords:{built_in:"ORDERBY DEFAULTVIEW NOTODAY HEIGHT start end color"},contains:[{className:"comment",begin:"^\\s*#+",end:"$",relevance:0},{className:"meta",begin:"^\\s*>\\s*(ORDERBY|DEFAULTVIEW|NOTODAY|HEIGHT)\\b",end:"$",keywords:"ORDERBY DEFAULTVIEW NOTODAY HEIGHT",contains:[{className:"string",begin:"\\b(start|end|color)\\b"}]},{className:"section",begin:"^\\s*-",end:"$",contains:[{className:"string",begin:"\\[",end:"\\]",contains:[{className:"number",begin:"-?\\d{1,4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?)?"},{className:"operator",begin:"~"}]},{className:"literal",begin:"#\\w+\\b",relevance:5},{className:"title",begin:"\\{",end:"\\}",relevance:3},{className:"string",begin:"\\|",end:"$",relevance:2}]},{className:"keyword",begin:"^\\s*@",end:"$",contains:[{className:"string",begin:"\\[",end:"\\]",contains:[{className:"number",begin:"-?\\d{1,4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?)?"},{className:"operator",begin:"~"}]},{className:"literal",begin:"#\\w+\\b",relevance:5},{className:"title",begin:"\\{",end:"\\}",relevance:3},{className:"comment",begin:"\\|",end:"$",relevance:2}]},{className:"attribute",begin:"^\\s*\\*",end:"$",contains:[{className:"string",begin:"\\[",end:"\\]",contains:[{className:"number",begin:"-?\\d{1,4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?)?"},{className:"operator",begin:"~"}]},{className:"literal",begin:"#\\w+\\b",relevance:5},{className:"title",begin:"\\{",end:"\\}",relevance:3},{className:"comment",begin:"\\|",end:"$",relevance:2}]},{className:"built_in",begin:"^\\s*=",end:"$",contains:[{className:"string",begin:"\\[",end:"\\]",contains:[{className:"number",begin:"-?\\d{1,4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?)?"}]}]},{className:"link",begin:"\\[\\[",end:"\\]\\]",relevance:3}]},cW=` /* Chronos Markdown Syntax Highlighting */ .hljs-chronos { background: #fafbfc; color: #24292e; } /* Line type indicators */ .hljs-chronos .hljs-section { color: #22863a; /* Events (-) - green */ } .hljs-chronos .hljs-keyword { color: #6f42c1; /* Periods (@) - purple */ font-weight: 600; } .hljs-chronos .hljs-attribute { color: #005cc5; /* Points (*) - blue */ } .hljs-chronos .hljs-built_in { color: #e36209; /* Markers (=) - orange */ font-weight: 600; } /* Date brackets and content */ .hljs-chronos .hljs-string { color: #032f62; /* Date brackets - dark blue */ font-weight: 500; } /* Dates and numbers */ .hljs-chronos .hljs-number { color: #005cc5; /* Actual dates - blue */ font-weight: 600; } /* Range operator ~ */ .hljs-chronos .hljs-operator { color: #d73a49; /* Range separator - red */ font-weight: bold; } /* Colors (#red, #blue, etc.) */ .hljs-chronos .hljs-literal { color: #e36209; /* Color codes - orange */ font-weight: 600; } /* Groups {name} */ .hljs-chronos .hljs-title { color: #6f42c1; /* Group names - purple */ font-style: italic; } /* Comments and descriptions */ .hljs-chronos .hljs-comment { color: #6a737d; /* Comments and descriptions - gray */ font-style: italic; } /* Meta flags */ .hljs-chronos .hljs-meta { color: #735c0f; /* Flag lines - brown */ font-weight: 600; } /* Wiki links */ .hljs-chronos .hljs-link { color: #0366d6; /* Wiki-style links - blue */ text-decoration: underline; } /* Hover effects */ .hljs-chronos .hljs-literal:hover, .hljs-chronos .hljs-number:hover { background-color: rgba(255, 212, 0, 0.15); border-radius: 2px; } .hljs-chronos .hljs-title:hover { background-color: rgba(111, 66, 193, 0.1); border-radius: 2px; } `;function rwe(e){e.registerLanguage("chronos",()=>hW)}function iwe(e,a){try{return a.highlight(e,{language:"chronos"}).value}catch(t){return console.warn("Chronos highlighting failed:",t),e}}function nwe(){let e="chronos-highlight-css";if(document.getElementById(e))return;let a=document.createElement("style");a.id=e,a.textContent=cW,document.head.appendChild(a)}var awe=class{constructor(e,a={}){this.isInitialized=!1,this.textarea=e,this.options={theme:"light",showLineNumbers:!1,highlightCurrentLine:!1,enableHover:!0,...a},this.container=this.createContainer(),this.highlightLayer=this.createHighlightLayer(),this.options.showLineNumbers&&(this.lineNumbersLayer=this.createLineNumbersLayer())}initialize(){this.isInitialized||(this.injectStyles(),this.setupDOM(),this.bindEvents(),this.updateHighlighting(),this.isInitialized=!0)}destroy(){if(!this.isInitialized)return;let e=this.container.parentNode;e&&(e.insertBefore(this.textarea,this.container),e.removeChild(this.container)),this.unbindEvents(),this.isInitialized=!1}updateHighlighting(){if(!this.isInitialized)return;let e=this.textarea.value,a=this.highlightText(e);this.highlightLayer.innerHTML=a,this.syncScroll(),this.lineNumbersLayer&&this.updateLineNumbers(e)}createContainer(){let e=document.createElement("div");return e.className="chronos-highlight-container",e}createHighlightLayer(){let e=document.createElement("div");return e.className="chronos-highlight-layer",e}createLineNumbersLayer(){let e=document.createElement("div");return e.className="chronos-line-numbers",e}setupDOM(){let e=this.textarea.parentNode;e&&(e.insertBefore(this.container,this.textarea),this.container.appendChild(this.textarea),this.lineNumbersLayer&&this.container.appendChild(this.lineNumbersLayer),this.container.appendChild(this.highlightLayer)),this.textarea.classList.add("chronos-highlight-textarea")}bindEvents(){this.textarea.addEventListener("input",()=>this.updateHighlighting()),this.textarea.addEventListener("scroll",()=>this.syncScroll()),this.textarea.addEventListener("resize",()=>this.syncScroll()),window.addEventListener("resize",()=>this.syncScroll())}unbindEvents(){this.textarea.removeEventListener("input",()=>this.updateHighlighting()),this.textarea.removeEventListener("scroll",()=>this.syncScroll()),this.textarea.removeEventListener("resize",()=>this.syncScroll()),window.removeEventListener("resize",()=>this.syncScroll())}syncScroll(){this.highlightLayer.scrollTop=this.textarea.scrollTop,this.highlightLayer.scrollLeft=this.textarea.scrollLeft,this.lineNumbersLayer&&(this.lineNumbersLayer.scrollTop=this.textarea.scrollTop)}updateLineNumbers(e){if(!this.lineNumbersLayer)return;let t=e.split(` `).map((n,h)=>`
${h+1}
`).join("");this.lineNumbersLayer.innerHTML=t}highlightText(e){return e?e.split(` `).map(n=>this.highlightLine(n)).map(n=>`
${n}
`).join(""):""}highlightLine(e){return e.trim()?e.match(/^\s*#+/)?`${this.escapeHtml(e)}`:e.match(/^\s*>\s*(ORDERBY|DEFAULTVIEW|NOTODAY|HEIGHT)\b/)?this.highlightFlag(e):e.match(/^\s*-/)?this.highlightTimeItem(e,"event"):e.match(/^\s*@/)?this.highlightTimeItem(e,"period"):e.match(/^\s*\*/)?this.highlightTimeItem(e,"point"):e.match(/^\s*=/)?this.highlightMarker(e):this.escapeHtml(e):" "}highlightFlag(e){return e.replace(/^(\s*>\s*)(ORDERBY|DEFAULTVIEW|NOTODAY|HEIGHT)(\b.*)/,'$1$2$3').replace(/\b(start|end|color)\b/g,'$1')}highlightTimeItem(e,a){let t=`chronos-${a}`,n=a==="event"?"-":a==="period"?"@":"*",h=new RegExp(`^(\\s*)(${n==="*"?"\\*":n})(\\s*)(\\[.*?\\])(.*?)$`),d=e.match(h);if(!d)return`${this.escapeHtml(e)}`;let[,p,y,b,w,$]=d;return this.escapeHtml(p)+`${this.escapeHtml(y)}`+this.escapeHtml(b)+this.highlightDateSection(w)+this.highlightRestOfLine($)}highlightMarker(e){let a=/^(\s*)(=)(\s*)(\[.*?\])(.*?)$/,t=e.match(a);if(!t)return`${this.escapeHtml(e)}`;let[,n,h,d,p,y]=t;return this.escapeHtml(n)+`${this.escapeHtml(h)}`+this.escapeHtml(d)+this.highlightDateSection(p)+this.highlightRestOfLine(y)}highlightDateSection(e){return e.replace(/\[/g,'[').replace(/\]/g,']').replace(/(-?\d{1,4}(-\d{2})?(-\d{2})?(T\d{2}(:\d{2})?(:\d{2})?)?)/g,'$1').replace(/~/g,'~')}highlightRestOfLine(e){return e.replace(/(#\w+)\b/g,'$1').replace(/\{([^}]+)\}/g,'{$1}').replace(/\[\[([^\]]+)\]\]/g,'[[$1]]').replace(/(\|)(.*)/,'$1$2')}escapeHtml(e){let a=document.createElement("div");return a.textContent=e,a.innerHTML}injectStyles(){let e="chronos-realtime-highlight-css";if(document.getElementById(e))return;let a=document.createElement("style");a.id=e,a.textContent=this.getCSS(),document.head.appendChild(a)}getCSS(){let e=this.options.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme;return` /* Chronos Real-time Syntax Highlighting */ .chronos-highlight-container { position: relative; display: flex; width: 100%; height: 100%; font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace; font-size: 14px; line-height: 1.5; } .chronos-line-numbers { background: ${e==="dark"?"#2d3748":"#f7fafc"}; border-right: 1px solid ${e==="dark"?"#4a5568":"#e2e8f0"}; color: ${e==="dark"?"#a0aec0":"#718096"}; padding: 1rem 0.5rem; min-width: 3rem; text-align: right; user-select: none; overflow: hidden; white-space: nowrap; } .chronos-line-numbers .line-number { height: 1.5em; font-size: 12px; } .chronos-highlight-textarea { background: transparent !important; color: transparent; caret-color: ${e==="dark"?"#ffffff":"#000000"}; resize: none; border: none; outline: none; position: relative; z-index: 2; flex: 1; } .chronos-highlight-layer { position: absolute; top: 0; left: ${this.options.showLineNumbers?"3rem":"0"}; right: 0; bottom: 0; padding: 1rem; pointer-events: none; overflow: hidden; white-space: pre-wrap; word-wrap: break-word; background: ${e==="dark"?"#1a202c":"#ffffff"}; color: ${e==="dark"?"#e2e8f0":"#2d3748"}; z-index: 1; } .chronos-highlight-layer .line { min-height: 1.5em; } /* Event indicators (-) */ .chronos-event-indicator { color: ${e==="dark"?"#68d391":"#22863a"}; font-weight: 600; } /* Period indicators (@) */ .chronos-period-indicator { color: ${e==="dark"?"#b794f6":"#6f42c1"}; font-weight: 600; } /* Point indicators (*) */ .chronos-point-indicator { color: ${e==="dark"?"#63b3ed":"#005cc5"}; font-weight: 600; } /* Marker indicators (=) */ .chronos-marker-indicator { color: ${e==="dark"?"#f6ad55":"#e36209"}; font-weight: 600; } /* Date brackets */ .chronos-bracket { color: ${e==="dark"?"#4fd1c7":"#032f62"}; font-weight: 500; } /* Dates */ .chronos-date { color: ${e==="dark"?"#63b3ed":"#005cc5"}; font-weight: 600; } /* Range separator */ .chronos-range-separator { color: ${e==="dark"?"#fc8181":"#d73a49"}; font-weight: bold; } /* Colors */ .chronos-color { color: ${e==="dark"?"#f6ad55":"#e36209"}; font-weight: 600; } /* Groups */ .chronos-group-bracket { color: ${e==="dark"?"#b794f6":"#6f42c1"}; } .chronos-group { color: ${e==="dark"?"#b794f6":"#6f42c1"}; font-style: italic; } /* Descriptions */ .chronos-pipe { color: ${e==="dark"?"#a0aec0":"#6a737d"}; } .chronos-description { color: ${e==="dark"?"#a0aec0":"#6a737d"}; font-style: italic; } /* Comments */ .chronos-comment { color: ${e==="dark"?"#a0aec0":"#6a737d"}; font-style: italic; } /* Flags */ .chronos-flag-keyword { color: ${e==="dark"?"#d69e2e":"#735c0f"}; font-weight: 600; } .chronos-flag-args { color: ${e==="dark"?"#e2e8f0":"#2d3748"}; } .chronos-flag-option { color: ${e==="dark"?"#f6ad55":"#e36209"}; } /* Wiki links */ .chronos-wiki-link { color: ${e==="dark"?"#63b3ed":"#0366d6"}; } .chronos-link-content { color: ${e==="dark"?"#63b3ed":"#0366d6"}; text-decoration: underline; } /* Hover effects */ ${this.options.enableHover?` .chronos-color:hover, .chronos-date:hover { background-color: ${e==="dark"?"rgba(255, 212, 0, 0.2)":"rgba(255, 212, 0, 0.15)"}; border-radius: 2px; } .chronos-group:hover { background-color: ${e==="dark"?"rgba(183, 148, 246, 0.2)":"rgba(111, 66, 193, 0.1)"}; border-radius: 2px; } `:""} `}},dW={};mN(dW,{Color:()=>C6,DEFAULT_LOCALE:()=>BC,FLAGS_PREFIX:()=>dN,Opacity:()=>E6,SortingOrder:()=>Q3,chronosMoment:()=>rW,enDateStrToISO:()=>EL,isRtl:()=>tW,knownLocales:()=>Z_e,orderByFlagParser:()=>J3,orderFunctionBuilder:()=>Z3,smartDateRange:()=>YC,toPaddedISOZ:()=>ip,toUTCDate:()=>aa,validateUTCDate:()=>gN});function fW(e,a={}){let t=a.selectedLocale||BC,n={selectedLocale:t,align:"left",clickToUse:!1,roundRanges:!!a.roundRanges,useUtc:!0,useAI:!1};return new CL(t).parse(e,n)}function owe(e,a,t={}){let n={selectedLocale:BC,...t==null?void 0:t.settings},h=n==null?void 0:n.theme,d=t.cssVars||(h==null?void 0:h.cssVariables),p=h==null?void 0:h.disableDefaultStyles;vW(document,void 0,d,t.cssRootClass,p);let y=new kp({container:e,settings:n,callbacks:t==null?void 0:t.callbacks,cssRootClass:t==null?void 0:t.cssRootClass}),b=fW(a,t);return y.renderParsed(b),{timeline:y,parsed:b}}function vW(e=document,a=S_,t,n,h){if(h){if(t&&!e.querySelector('style[data-chronos-custom="1"]')){let w=e.createElement("style");w.setAttribute("data-chronos-custom","1");let $=Object.entries(t).map(([A,R])=>` --${A}: ${R};`).join(` `);w.textContent=`:root { ${$} }`,e.head.appendChild(w)}return}if(e.querySelector('style[data-chronos-core="1"]'))return;let p=e.createElement("style");p.setAttribute("data-chronos-core","1");let y=a!=null?a:S_;if(t&&(y=`:root { ${Object.entries(t).map(([w,$])=>` --${w}: ${$};`).join(` `)} } `+y),p.textContent=y,e.head.appendChild(p),n){let b=e.createElement("style");b.setAttribute("data-chronos-core-scoped",n);let w=swe(y,n);b.textContent=w,e.head.appendChild(b)}}function swe(e,a){let t=`.${a}`,n=e.replace(/:root\s*\{/g,`${t} {`);return n=n.replace(/\.chronos-timeline-container/g,`${t}.chronos-timeline-container`),n}kp.version=twe.version;var DL=kp;function pW(e,a){return Array.from(e).map((t,n)=>(t.charCodeAt(0)^a.charCodeAt(n%a.length)).toString(16).padStart(2,"0")).join("")}function $L(e,a){let t=e.match(/.{2}/g);return t?t.map((n,h)=>String.fromCharCode(parseInt(n,16)^a.charCodeAt(h%a.length))).join(""):""}var gW=require("obsidian");var mW=`Generate timelines in Markdown using Chronos syntax, a simple line-by-line format for capturing events, periods, and markers. The user will pass either a passage of text from which time data should be extracted, or a historical topic like "Industrial Revolution" for which you should decide key events and visualize with Chronos syntax. ### Chronos Syntax Overview: 1. **Events**: \`- [Date~Date] Event Name | Description\` - The second Date, Event Name, and Description are optional. 2. **Periods**: \`@ [Date~Date] Period Name\` - Requires both start and end Dates. Period Name is optional. - Periods NEVER have descriptions 3. **Points**: \`* [Date] Event Name | Description\` - Descriptions are optional 4. **Markers**: \`= [Date] Marker Name\` - Requires a single Date. ### Rules: - Important: the items should be wrapped in a codeblock with language "chronos" - Important: keep Period Names and Event Names as brief as possible - Important: DO NOT use groups if there is only one group - assume that mention of today is today's date - **Date format**: \`YYYY-MM-DDThh:mm:ss\`, with minimum granularity required (e.g., just year). - Use \`#\` at the start of a line to add ignored comments. - Events and Periods support optional modifiers: - **Colors**: e.g., \`$red, #blue\`. - **Groups**: \`{Group Name}\` (case-sensitive, can include spaces) - modifers must be added in this order: \`- [Date~Date] #Color {Group Name} Event Name\` - Possible colors: #red, #orange, #yellow, #green, #blue, #purple, #pink, #cyan - BCE Dates: Represented with \`-\` (e.g., \`-10000\` for 10000 BCE). - Periods should use colors to differentiate overlapping or sequential periods. - Focus on simplicity; not all item types need to be used ### Example 1: Timeline of events in Cold War \`\`\`chronos - [1947-03-12] Truman Doctrine | Committing the U.S. to containing communism - [1948-06-24~1949-05-12] Berlin Blockade | Soviet blockade and Allied airlift @ [1947-01-01~1953-12-31] Early Cold War - [1957-10-04] Sputnik launched | Start of the Space Race @ [1963-01-01~1979-12-31] #red D\xE9tente Period = [1991-12-26] End of the Cold War \`\`\` ### Example 2: Timeline life and works of two authors \`\`\`chronos @ [1888-09-26~1965-01-04] {T.S. Eliot} Life: 1888-1965 - [1949] {T.S. Eliot} "The Cocktail Party" | A play - [1920] {T.S. Eliot} "The Sacred Wood" - [1922] {T.S. Eliot} "The Wasteland" @ [1899-08-24~1986-06-14] #cyan {Jorge Luis Borges} Life: 1899-1986 - [1944] #cyan {Jorge Luis Borges} "Ficciones" - [1949] #cyan {Jorge Luis Borges} "El Aleph" - [1962] #cyan {Jorge Luis Borges} "Labyrinths" \`\`\` ### Example 3: Tounement with games as Points \`\`\`chronos - [2024-02-26~2024-03-10] Tournament * [2024-02-26] Game 1 | Austin * [2024-02-28] Game 2 | Los Angeles * [2024-03-06] Game 3 | Tokyo * [2024-03-10] Game 4 | Jakarta \`\`\` `;var lwe={role:"system",content:mW},mE=class{constructor(a){this.apiKey=a}async toChronos(a){if(!this.apiKey)throw new Error("No API Key set - ensure you've set an API Key in Chronos Timeline plugin settings");let t=[lwe,{role:"user",content:a}];return await this._getResponse(t)}async _getResponse(a){let t={model:GF,messages:a,temperature:.8},n="https://api.openai.com/v1/chat/completions",h={Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"},d={url:n,method:"POST",body:JSON.stringify(t),headers:h};return(await(0,gW.requestUrl)(d)).json.choices[0].message.content}};var bW,_W,ny=(_W=(bW=kp)!=null?bW:DL)!=null?_W:OL,yW={selectedLocale:ZM,align:"left",clickToUse:!1,roundRanges:!1,useUtc:!0,useAI:!0},gE=class extends rr.Plugin{async onload(){console.log("Loading Chronos Timeline Plugin...."),this.settings=await this.loadData()||yW,this.addSettingTab(new PL(this.app,this)),this.registerEvent(this.app.vault.on("rename",async(t,n)=>{await this._updateWikiLinks(n,t.path)})),this.registerMarkdownCodeBlockProcessor("chronos",this._renderChronosBlock.bind(this)),this.addCommand({id:"insert-timeline-blank",name:"Insert timeline (blank)",editorCallback:(t,n)=>{this._insertSnippet(t,ny.templates.blank)}}),this.addCommand({id:"insert-timeline-basic",name:"Insert timeline example (basic)",editorCallback:(t,n)=>{this._insertSnippet(t,ny.templates.basic)}}),this.addCommand({id:"insert-timeline-advanced",name:"Insert timeline example (advanced)",editorCallback:(t,n)=>{this._insertSnippet(t,ny.templates.advanced)}}),this.addCommand({id:"generate-timeline-ai",name:"Generate timeline with AI",editorCheckCallback:(t,n,h)=>{if(t)return this.settings.useAI;this._generateTimelineWithAi(n)}})}onunload(){}async loadSettings(){this.settings={...yW,...await this.loadData()}}async saveSettings(){await this.saveData(this.settings)}_insertSnippet(t,n){let h=t.getCursor();t.replaceRange(n,h)}_insertTextAfterSelection(t,n){let h=t.getCursor("to"),d=` `;t.replaceRange(d+n,h)}_renderChronosBlock(t,n){var b;let h=0,d=500,p=n.createEl("div",{cls:"chronos-timeline-container"}),y=new ny({container:p,settings:this.settings,callbacks:{setTooltip:rr.setTooltip}});try{y.render(t),y.on("mouseDown",w=>{var A;let $=performance.now();if($-hve.id===R);if(!(Y!=null&&Y.cLink))return;let V=w.event.button===1,oe=w.event.metaKey&&w.event.button===0,G=w.event.shiftKey,ae=V||oe||G;this._openFileFromWikiLink(Y.cLink,ae)}}),y.on("itemover",async w=>{var A;let $=w.item;if($){let R=(A=y.items)==null?void 0:A.find(Y=>Y.id===$);if(R!=null&&R.cLink){let Y=w.event.target;this.app.workspace.trigger("hover-link",{event:w.event,source:"chronos-timeline",hoverParent:p,targetEl:Y,linktext:R.cLink})}}}),y.on("itemout",()=>{this.app.workspace.trigger("hover-link:close")}),this.settings.clickToUse&&p&&((b=y.timeline)==null||b.setOptions({clickToUse:this.settings.clickToUse}),y.on("mouseOver",w=>{this.settings.clickToUse&&!p.querySelectorAll(".vis-active").length?(0,rr.setTooltip)(p,"Click to use"):(0,rr.setTooltip)(p,"")}))}catch(w){console.log(w)}}async _openFileFromWikiLink(t,n=!1){let h=t.replace(/^\[\[|\]\]$/g,""),[d,p]=h.split("#"),[y,b]=h.split("|"),w=y.split("#")[0];try{let $=this.app.vault.getFiles().find(A=>A.path===w+".md"||A.path===w||A.basename===w)||this.app.vault.getFiles().find(A=>A.basename.toLowerCase()===(b==null?void 0:b.toLowerCase()))||null;if($){let A=this.app.workspace.getLeaf(!1);n&&(A=this.app.workspace.getLeaf("tab"));let R=p?await this._findLineForHeading($,p):0;await A.openFile($,{active:!0,state:{focus:!0,line:R}}),R&&setTimeout(()=>{var V;let Y=(V=this.app.workspace.getActiveViewOfType(rr.MarkdownView))==null?void 0:V.editor;Y&&R!=null&&Y.setCursor(R+30)},100)}else{let A=`Linked note not found: ${d}`;console.warn(A),new rr.Notice(A)}}catch($){let A=`Error opening file: ${$.message}`;console.error(A),new rr.Notice(A)}}async _findLineForHeading(t,n){let p=(await this.app.vault.read(t)).split(` `).findIndex(y=>y.trim().replace("#","").trim().toLowerCase()===n.toLowerCase());return p!==-1?p:0}async _generateTimelineWithAi(t){t||new rr.Notice("Make sure you are highlighting text in your note to generate a timeline from");let n=this._getCurrentSelectedText(t);if(!n){new rr.Notice("Highlight some text you'd like to convert into a timeline, then run the generate command again");return}let h=new YT(this.app,"Working on it....");h.open();try{let d=await this._textToChronos(n);d&&this._insertTextAfterSelection(t,d)}catch(d){console.error(d),h.setText(d.message);return}h.close()}async _textToChronos(t){if(!this.settings.key){new rr.Notice("No API Key found. Please add an OpenAI API key in Chronos Timeline Plugin Settings");return}return await new mE(this._getApiKey()).toChronos(t)}_getCurrentSelectedText(t){return t?t.getSelection():""}_getApiKey(){return $L(this.settings.key||"",BT)}async _updateWikiLinks(t,n){let h=this.app.vault.getMarkdownFiles(),d=[];console.log(`Checking files for 'chronos' blocks to see whether there is a need to update links to ${this._normalizePath(n)}...`);for(let p of h){let y=await this.app.vault.read(p);if(/```(?:\s*)chronos/.test(y)){let w=this._updateLinksInChronosBlocks(y,t,n);w!==y&&(console.log("UPDATING ",p.path),d.push(p.path),await this.app.vault.modify(p,w))}}console.log("Done checking files with 'chronos' blocks."),d.length&&console.log(`Updated links to ${this._normalizePath(n)} in ${d.length} files: `,d)}_updateLinksInChronosBlocks(t,n,h){let d=/```(?:\s*)chronos([\s\S]*?)```/g,p,y=t;for(;(p=d.exec(t))!==null;){let b=p[0],w=p[1],$=this._normalizePath(n),A=this._normalizePath(h),R=w.replace(new RegExp(`\\[\\[${this._escapeRegExp($)}\\]\\]`,"g"),`[[${A}]]`);y=y.replace(b,`\`\`\`chronos${R}\`\`\``)}return y}_normalizePath(t){return t.replace(/(\|.+$)|(\.md$)/g,"")}_escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},PL=class extends rr.PluginSettingTab{constructor(t,n){super(t,n);this.plugin=n}display(){let{containerEl:t}=this;t.empty();let n=[],h=[];WF.forEach(b=>{Intl.DateTimeFormat.supportedLocalesOf(b).length&&n.push(b)}),n.forEach(b=>{let w=new Intl.DisplayNames([b],{type:"language"});h.push(w.of(b))});let d=t.createEl("a",{text:"Create and share Chronos Timelines outside of Obsidian \u2197"});d.setAttribute("href","https://clairefro.github.io/chronos-timeline-md/"),d.setAttribute("target","_blank"),d.setAttribute("rel","noopener noreferrer"),d.className="chronos-announcement-link",t.createEl("h2",{text:"Display settings",cls:"chronos-setting-header"}),new rr.Setting(t).setName("Select locale").setDesc("Choose a locale for displaying dates").addDropdown(b=>{n.forEach(($,A)=>{let Y=`${h[A]} (${$})`;b.addOption($,Y)});let w=this.plugin.settings.selectedLocale||ZM;b.setValue(w),b.onChange($=>{this.plugin.settings.selectedLocale=$,this.plugin.saveData(this.plugin.settings)})}),new rr.Setting(t).setName("Require click to use").setDesc("Require clicking on a timeline to activate features like zoom and scroll").addToggle(b=>b.setValue(this.plugin.settings.clickToUse).onChange(async w=>{new rr.Notice("Refresh rendering of timlines for change to take effect"),this.plugin.settings.clickToUse=w,await this.plugin.saveSettings()})),new rr.Setting(t).setName("Round endcaps on ranges").setDesc("Adds rounding to ranged events to make start and end clear").addToggle(b=>b.setValue(this.plugin.settings.roundRanges).onChange(async w=>{new rr.Notice("Refresh rendering of timlines for change to take effect"),this.plugin.settings.roundRanges=w,await this.plugin.saveSettings()})),new rr.Setting(t).setName("Use UTC time (recommended)").setDesc("If disabled, Chronos will use your system time to display the events and current time. Using local time is only recommended if you are using Chronos for tasks at the intra-day level, and may have unintended side effects like showing historical events one day off during certain times of day.").addToggle(b=>b.setValue(this.plugin.settings.useUtc).onChange(async w=>{new rr.Notice("Refresh rendering of timlines for change to take effect"),this.plugin.settings.useUtc=w,await this.plugin.saveSettings()})),new rr.Setting(t).setName("Item alignment").setDesc("Alignement of event boxes and item text (re-rerender timeline to see change)").addDropdown(b=>b.addOption("left","Left").addOption("center","Center").addOption("right","Right").setValue(this.plugin.settings.align).onChange(async w=>{this.plugin.settings.align=w,await this.plugin.saveSettings()})),t.createEl("h2",{text:"AI settings",cls:"chronos-setting-header"}),new rr.Setting(t).setName("Use AI Features").setDesc("Toggles commands and settings for AI timeline generation.").addToggle(b=>b.setValue(this.plugin.settings.useAI).onChange(async w=>{this.plugin.settings.useAI=w,await this.plugin.saveSettings(),this.display()})),new rr.Setting(t).setName("OpenAI API key").addText(b=>b.setPlaceholder("Enter your OpenAI API Key").setValue(this.plugin.settings.key?$L(this.plugin.settings.key,BT):"").onChange(async w=>{w.trim()?this.plugin.settings.key=pW(w.trim(),BT):this.plugin.settings.key="",await this.plugin.saveSettings()})).setClass("ai-setting").setDisabled(!this.plugin.settings.useAI),t.createEl("h2",{text:"Cheatsheet",cls:"chronos-setting-header"});let p=t.createEl("textarea",{cls:"chronos-settings-md-container",text:ny.cheatsheet});p.readOnly=!0,new rr.Setting(t).addButton(b=>{b.setButtonText("Copy cheatsheet").setCta().onClick(async()=>{try{await navigator.clipboard.writeText(ny.cheatsheet),new rr.Notice(`Cheatsheet copied to clipboard! Paste it in a new Obsidian note to learn Chronos syntax`)}catch(w){console.error("Failed to copy cheatsheet:",w),new rr.Notice("Failed to copy cheatsheet")}})});let y=document.createElement("a");y.textContent="Learn more",y.href="https://github.com/clairefro/obsidian-plugin-chronos",y.target="_blank",y.style.textDecoration="underline",t.appendChild(y)}}; /*! Bundled license information: chronos-timeline-md/dist/index.js: (*! Bundled license information: moment/moment.js: (*! moment.js *) (*! version : 2.30.1 *) (*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *) (*! license : MIT *) (*! momentjs.com *) vis-data/peer/umd/vis-data.js: (** * 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.10 * @date 2025-07-06T08:42:20.006Z * * @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. *) (*! 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 *) vis-timeline/peer/umd/vis-timeline-graph2d.min.js: (** * vis-timeline and vis-graph2d * https://visjs.github.io/vis-timeline/ * * Create a fully customizable, interactive timeline with items and ranges. * * @version 7.7.4 * @date 2025-05-10T16:52:31.441Z * * @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. *) (*! 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 *) vis-timeline/standalone/esm/vis-timeline-graph2d.js: (** * vis-timeline and vis-graph2d * https://visjs.github.io/vis-timeline/ * * Create a fully customizable, interactive timeline with items and ranges. * * @version 7.7.4 * @date 2025-05-10T16:52:31.441Z * * @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. *) (*! moment.js *) (*! moment.js locale configuration *) (*! 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 *) *) */ /* nosourcemap */