"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[9896],{9896:function(t,e,n){n.d(e,{A:function(){return cpt}});var r=function(){var t=this,e=t._self._c;return e("div",{ref:"visualization"})},o=[];
/**
 * vis-data
 * http://visjs.org/
 *
 * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
 *
 * @version 7.1.9
 * @date    2023-11-24T17:53:34.179Z
 *
 * @copyright (c) 2011-2017 Almende B.V, http://almende.com
 * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
 *
 * @license
 * vis.js is dual licensed under both
 *
 *   1. The Apache 2.0 License
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *   and
 *
 *   2. The MIT License
 *      http://opensource.org/licenses/MIT
 *
 * vis.js may be distributed under either license.
 */
function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}var h={exports:{}},u=function(t){return t&&t.Math===Math&&t},c=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof a&&a)||function(){return this}()||a||Function("return this")(),d=function(t){try{return!!t()}catch(e){return!0}},p=d,f=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),m=f,v=Function.prototype,g=v.apply,y=v.call,b="object"==typeof Reflect&&Reflect.apply||(m?y.bind(g):function(){return y.apply(g,arguments)}),w=f,k=Function.prototype,_=k.call,x=w&&k.bind.bind(_,_),S=w?x:function(t){return function(){return _.apply(t,arguments)}},C=S,D=C({}.toString),T=C("".slice),E=function(t){return T(D(t),8,-1)},O=E,A=S,P=function(t){if("Function"===O(t))return A(t)},I="object"==typeof document&&document.all,M="undefined"==typeof I&&void 0!==I,N={all:I,IS_HTMLDDA:M},R=N,j=R.all,F=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===j}:function(t){return"function"==typeof t},L={},B=d,z=!B((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),G=f,H=Function.prototype.call,W=G?H.bind(H):function(){return H.apply(H,arguments)},Y={},V={}.propertyIsEnumerable,U=Object.getOwnPropertyDescriptor,X=U&&!V.call({1:2},1);Y.f=X?function(t){var e=U(this,t);return!!e&&e.enumerable}:V;var q,K,$=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},J=S,Q=d,Z=E,tt=Object,et=J("".split),it=Q((function(){return!tt("z").propertyIsEnumerable(0)}))?function(t){return"String"===Z(t)?et(t,""):tt(t)}:tt,nt=function(t){return null===t||void 0===t},rt=nt,ot=TypeError,st=function(t){if(rt(t))throw new ot("Can't call method on "+t);return t},at=it,lt=st,ht=function(t){return at(lt(t))},ut=F,ct=N,dt=ct.all,pt=ct.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:ut(t)||t===dt}:function(t){return"object"==typeof t?null!==t:ut(t)},ft={},mt=ft,vt=c,gt=F,yt=function(t){return gt(t)?t:void 0},bt=function(t,e){return arguments.length<2?yt(mt[t])||yt(vt[t]):mt[t]&&mt[t][e]||vt[t]&&vt[t][e]},wt=S,kt=wt({}.isPrototypeOf),_t="undefined"!=typeof navigator&&String(navigator.userAgent)||"",xt=c,St=_t,Ct=xt.process,Dt=xt.Deno,Tt=Ct&&Ct.versions||Dt&&Dt.version,Et=Tt&&Tt.v8;Et&&(q=Et.split("."),K=q[0]>0&&q[0]<4?1:+(q[0]+q[1])),!K&&St&&(q=St.match(/Edge\/(\d+)/),(!q||q[1]>=74)&&(q=St.match(/Chrome\/(\d+)/),q&&(K=+q[1])));var Ot=K,At=Ot,Pt=d,It=c,Mt=It.String,Nt=!!Object.getOwnPropertySymbols&&!Pt((function(){var t=Symbol("symbol detection");return!Mt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&At&&At<41})),Rt=Nt,jt=Rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=bt,Lt=F,Bt=kt,zt=jt,Gt=Object,Ht=zt?function(t){return"symbol"==typeof t}:function(t){var e=Ft("Symbol");return Lt(e)&&Bt(e.prototype,Gt(t))},Wt=String,Yt=function(t){try{return Wt(t)}catch(e){return"Object"}},Vt=F,Ut=Yt,Xt=TypeError,qt=function(t){if(Vt(t))return t;throw new Xt(Ut(t)+" is not a function")},Kt=qt,$t=nt,Jt=function(t,e){var i=t[e];return $t(i)?void 0:Kt(i)},Qt=W,Zt=F,te=pt,ee=TypeError,ie=function(t,e){var i,n;if("string"===e&&Zt(i=t.toString)&&!te(n=Qt(i,t)))return n;if(Zt(i=t.valueOf)&&!te(n=Qt(i,t)))return n;if("string"!==e&&Zt(i=t.toString)&&!te(n=Qt(i,t)))return n;throw new ee("Can't convert object to primitive value")},ne={exports:{}},re=!0,oe=c,se=Object.defineProperty,ae=function(t,e){try{se(oe,t,{value:e,configurable:!0,writable:!0})}catch(i){oe[t]=e}return e},le=c,he=ae,ue="__core-js_shared__",ce=le[ue]||he(ue,{}),de=ce,pe=de;(ne.exports=function(t,e){return pe[t]||(pe[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var fe=ne.exports,me=st,ve=Object,ge=function(t){return ve(me(t))},ye=S,be=ge,we=ye({}.hasOwnProperty),ke=Object.hasOwn||function(t,e){return we(be(t),e)},_e=S,xe=0,Se=Math.random(),Ce=_e(1..toString),De=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ce(++xe+Se,36)},Te=c,Ee=fe,Oe=ke,Ae=De,Pe=Nt,Ie=jt,Me=Te.Symbol,Ne=Ee("wks"),Re=Ie?Me["for"]||Me:Me&&Me.withoutSetter||Ae,je=function(t){return Oe(Ne,t)||(Ne[t]=Pe&&Oe(Me,t)?Me[t]:Re("Symbol."+t)),Ne[t]},Fe=W,Le=pt,Be=Ht,ze=Jt,Ge=ie,He=je,We=TypeError,Ye=He("toPrimitive"),Ve=function(t,e){if(!Le(t)||Be(t))return t;var i,n=ze(t,Ye);if(n){if(void 0===e&&(e="default"),i=Fe(n,t,e),!Le(i)||Be(i))return i;throw new We("Can't convert object to primitive value")}return void 0===e&&(e="number"),Ge(t,e)},Ue=Ve,Xe=Ht,qe=function(t){var e=Ue(t,"string");return Xe(e)?e:e+""},Ke=c,$e=pt,Je=Ke.document,Qe=$e(Je)&&$e(Je.createElement),Ze=function(t){return Qe?Je.createElement(t):{}},ti=z,ei=d,ii=Ze,ni=!ti&&!ei((function(){return 7!==Object.defineProperty(ii("div"),"a",{get:function(){return 7}}).a})),ri=z,oi=W,si=Y,ai=$,li=ht,hi=qe,ui=ke,ci=ni,di=Object.getOwnPropertyDescriptor;L.f=ri?di:function(t,e){if(t=li(t),e=hi(e),ci)try{return di(t,e)}catch(i){}if(ui(t,e))return ai(!oi(si.f,t,e),t[e])};var pi=d,fi=F,mi=/#|\.prototype\./,vi=function(t,e){var i=yi[gi(t)];return i===wi||i!==bi&&(fi(e)?pi(e):!!e)},gi=vi.normalize=function(t){return String(t).replace(mi,".").toLowerCase()},yi=vi.data={},bi=vi.NATIVE="N",wi=vi.POLYFILL="P",ki=vi,_i=P,xi=qt,Si=f,Ci=_i(_i.bind),Di=function(t,e){return xi(t),void 0===e?t:Si?Ci(t,e):function(){return t.apply(e,arguments)}},Ti={},Ei=z,Oi=d,Ai=Ei&&Oi((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pi=pt,Ii=String,Mi=TypeError,Ni=function(t){if(Pi(t))return t;throw new Mi(Ii(t)+" is not an object")},Ri=z,ji=ni,Fi=Ai,Li=Ni,Bi=qe,zi=TypeError,Gi=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,Wi="enumerable",Yi="configurable",Vi="writable";Ti.f=Ri?Fi?function(t,e,i){if(Li(t),e=Bi(e),Li(i),"function"===typeof t&&"prototype"===e&&"value"in i&&Vi in i&&!i[Vi]){var n=Hi(t,e);n&&n[Vi]&&(t[e]=i.value,i={configurable:Yi in i?i[Yi]:n[Yi],enumerable:Wi in i?i[Wi]:n[Wi],writable:!1})}return Gi(t,e,i)}:Gi:function(t,e,i){if(Li(t),e=Bi(e),Li(i),ji)try{return Gi(t,e,i)}catch(n){}if("get"in i||"set"in i)throw new zi("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var Ui=z,Xi=Ti,qi=$,Ki=Ui?function(t,e,i){return Xi.f(t,e,qi(1,i))}:function(t,e,i){return t[e]=i,t},$i=c,Ji=b,Qi=P,Zi=F,tn=L.f,en=ki,nn=ft,rn=Di,on=Ki,sn=ke,an=function(t){var e=function(i,n,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,r)}return Ji(t,this,arguments)};return e.prototype=t.prototype,e},ln=function(t,e){var i,n,r,o,s,a,l,h,u,c=t.target,d=t.global,p=t.stat,f=t.proto,m=d?$i:p?$i[c]:($i[c]||{}).prototype,v=d?nn:nn[c]||on(nn,c,{})[c],g=v.prototype;for(o in e)i=en(d?o:c+(p?".":"#")+o,t.forced),n=!i&&m&&sn(m,o),a=v[o],n&&(t.dontCallGetSet?(u=tn(m,o),l=u&&u.value):l=m[o]),s=n&&l?l:e[o],n&&typeof a==typeof s||(h=t.bind&&n?rn(s,$i):t.wrap&&n?an(s):f&&Zi(s)?Qi(s):s,(t.sham||s&&s.sham||a&&a.sham)&&on(h,"sham",!0),on(v,o,h),f&&(r=c+"Prototype",sn(nn,r)||on(nn,r,{}),on(nn[r],o,s),t.real&&g&&(i||!g[o])&&on(g,o,s)))},hn=ln,un=z,cn=Ti.f;hn({target:"Object",stat:!0,forced:Object.defineProperty!==cn,sham:!un},{defineProperty:cn});var dn=ft,pn=dn.Object,fn=h.exports=function(t,e,i){return pn.defineProperty(t,e,i)};pn.defineProperty.sham&&(fn.sham=!0);var mn=h.exports,vn=mn,gn=vn,yn=gn,bn=yn,wn=bn,kn=wn,_n=kn,xn=l(_n),Sn=E,Cn=Array.isArray||function(t){return"Array"===Sn(t)},Dn=Math.ceil,Tn=Math.floor,En=Math.trunc||function(t){var e=+t;return(e>0?Tn:Dn)(e)},On=En,An=function(t){var e=+t;return e!==e||0===e?0:On(e)},Pn=An,In=Math.min,Mn=function(t){return t>0?In(Pn(t),9007199254740991):0},Nn=Mn,Rn=function(t){return Nn(t.length)},jn=TypeError,Fn=9007199254740991,Ln=function(t){if(t>Fn)throw jn("Maximum allowed index exceeded");return t},Bn=qe,zn=Ti,Gn=$,Hn=function(t,e,i){var n=Bn(e);n in t?zn.f(t,n,Gn(0,i)):t[n]=i},Wn=je,Yn=Wn("toStringTag"),Vn={};Vn[Yn]="z";var Un="[object z]"===String(Vn),Xn=Un,qn=F,Kn=E,$n=je,Jn=$n("toStringTag"),Qn=Object,Zn="Arguments"===Kn(function(){return arguments}()),tr=function(t,e){try{return t[e]}catch(i){}},er=Xn?Kn:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=tr(e=Qn(t),Jn))?i:Zn?Kn(e):"Object"===(n=Kn(e))&&qn(e.callee)?"Arguments":n},ir=S,nr=F,rr=de,or=ir(Function.toString);nr(rr.inspectSource)||(rr.inspectSource=function(t){return or(t)});var sr=rr.inspectSource,ar=S,lr=d,hr=F,ur=er,cr=bt,dr=sr,pr=function(){},fr=[],mr=cr("Reflect","construct"),vr=/^\s*(?:class|function)\b/,gr=ar(vr.exec),yr=!vr.test(pr),br=function(t){if(!hr(t))return!1;try{return mr(pr,fr,t),!0}catch(e){return!1}},wr=function(t){if(!hr(t))return!1;switch(ur(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yr||!!gr(vr,dr(t))}catch(e){return!0}};wr.sham=!0;var kr=!mr||lr((function(){var t;return br(br.call)||!br(Object)||!br((function(){t=!0}))||t}))?wr:br,_r=Cn,xr=kr,Sr=pt,Cr=je,Dr=Cr("species"),Tr=Array,Er=function(t){var e;return _r(t)&&(e=t.constructor,xr(e)&&(e===Tr||_r(e.prototype))?e=void 0:Sr(e)&&(e=e[Dr],null===e&&(e=void 0))),void 0===e?Tr:e},Or=Er,Ar=function(t,e){return new(Or(t))(0===e?0:e)},Pr=d,Ir=je,Mr=Ot,Nr=Ir("species"),Rr=function(t){return Mr>=51||!Pr((function(){var e=[],i=e.constructor={};return i[Nr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},jr=ln,Fr=d,Lr=Cn,Br=pt,zr=ge,Gr=Rn,Hr=Ln,Wr=Hn,Yr=Ar,Vr=Rr,Ur=je,Xr=Ot,qr=Ur("isConcatSpreadable"),Kr=Xr>=51||!Fr((function(){var t=[];return t[qr]=!1,t.concat()[0]!==t})),$r=function(t){if(!Br(t))return!1;var e=t[qr];return void 0!==e?!!e:Lr(t)},Jr=!Kr||!Vr("concat");jr({target:"Array",proto:!0,arity:1,forced:Jr},{concat:function(t){var e,i,n,r,o,s=zr(this),a=Yr(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],$r(o))for(r=Gr(o),Hr(l+r),i=0;i<r;i++,l++)i in o&&Wr(a,l,o[i]);else Hr(l+1),Wr(a,l++,o);return a.length=l,a}});var Qr=er,Zr=String,to=function(t){if("Symbol"===Qr(t))throw new TypeError("Cannot convert a Symbol value to a string");return Zr(t)},eo={},io=An,no=Math.max,ro=Math.min,oo=function(t,e){var i=io(t);return i<0?no(i+e,0):ro(i,e)},so=ht,ao=oo,lo=Rn,ho=function(t){return function(e,i,n){var r,o=so(e),s=lo(o),a=ao(n,s);if(t&&i!==i){while(s>a)if(r=o[a++],r!==r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},uo={includes:ho(!0),indexOf:ho(!1)},co={},po=S,fo=ke,mo=ht,vo=uo.indexOf,go=co,yo=po([].push),bo=function(t,e){var i,n=mo(t),r=0,o=[];for(i in n)!fo(go,i)&&fo(n,i)&&yo(o,i);while(e.length>r)fo(n,i=e[r++])&&(~vo(o,i)||yo(o,i));return o},wo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ko=bo,_o=wo,xo=Object.keys||function(t){return ko(t,_o)},So=z,Co=Ai,Do=Ti,To=Ni,Eo=ht,Oo=xo;eo.f=So&&!Co?Object.defineProperties:function(t,e){To(t);var i,n=Eo(e),r=Oo(e),o=r.length,s=0;while(o>s)Do.f(t,i=r[s++],n[i]);return t};var Ao,Po=bt,Io=Po("document","documentElement"),Mo=fe,No=De,Ro=Mo("keys"),jo=function(t){return Ro[t]||(Ro[t]=No(t))},Fo=Ni,Lo=eo,Bo=wo,zo=co,Go=Io,Ho=Ze,Wo=jo,Yo=">",Vo="<",Uo="prototype",Xo="script",qo=Wo("IE_PROTO"),Ko=function(){},$o=function(t){return Vo+Xo+Yo+t+Vo+"/"+Xo+Yo},Jo=function(t){t.write($o("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qo=function(){var t,e=Ho("iframe"),i="java"+Xo+":";return e.style.display="none",Go.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write($o("document.F=Object")),t.close(),t.F},Zo=function(){try{Ao=new ActiveXObject("htmlfile")}catch(e){}Zo="undefined"!=typeof document?document.domain&&Ao?Jo(Ao):Qo():Jo(Ao);var t=Bo.length;while(t--)delete Zo[Uo][Bo[t]];return Zo()};zo[qo]=!0;var ts=Object.create||function(t,e){var i;return null!==t?(Ko[Uo]=Fo(t),i=new Ko,Ko[Uo]=null,i[qo]=t):i=Zo(),void 0===e?i:Lo.f(i,e)},es={},is=bo,ns=wo,rs=ns.concat("length","prototype");es.f=Object.getOwnPropertyNames||function(t){return is(t,rs)};var os={},ss=oo,as=Rn,ls=Hn,hs=Array,us=Math.max,cs=function(t,e,i){for(var n=as(t),r=ss(e,n),o=ss(void 0===i?n:i,n),s=hs(us(o-r,0)),a=0;r<o;r++,a++)ls(s,a,t[r]);return s.length=a,s},ds=E,ps=ht,fs=es.f,ms=cs,vs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gs=function(t){try{return fs(t)}catch(e){return ms(vs)}};os.f=function(t){return vs&&"Window"===ds(t)?gs(t):fs(ps(t))};var ys={};ys.f=Object.getOwnPropertySymbols;var bs=Ki,ws=function(t,e,i,n){return n&&n.enumerable?t[e]=i:bs(t,e,i),t},ks=Ti,_s=function(t,e,i){return ks.f(t,e,i)},xs={},Ss=je;xs.f=Ss;var Cs,Ds,Ts,Es=ft,Os=ke,As=xs,Ps=Ti.f,Is=function(t){var e=Es.Symbol||(Es.Symbol={});Os(e,t)||Ps(e,t,{value:As.f(t)})},Ms=W,Ns=bt,Rs=je,js=ws,Fs=function(){var t=Ns("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,n=Rs("toPrimitive");e&&!e[n]&&js(e,n,(function(t){return Ms(i,this)}),{arity:1})},Ls=Un,Bs=er,zs=Ls?{}.toString:function(){return"[object "+Bs(this)+"]"},Gs=Un,Hs=Ti.f,Ws=Ki,Ys=ke,Vs=zs,Us=je,Xs=Us("toStringTag"),qs=function(t,e,i,n){if(t){var r=i?t:t.prototype;Ys(r,Xs)||Hs(r,Xs,{configurable:!0,value:e}),n&&!Gs&&Ws(r,"toString",Vs)}},Ks=c,$s=F,Js=Ks.WeakMap,Qs=$s(Js)&&/native code/.test(String(Js)),Zs=Qs,ta=c,ea=pt,ia=Ki,na=ke,ra=de,oa=jo,sa=co,aa="Object already initialized",la=ta.TypeError,ha=ta.WeakMap,ua=function(t){return Ts(t)?Ds(t):Cs(t,{})},ca=function(t){return function(e){var i;if(!ea(e)||(i=Ds(e)).type!==t)throw new la("Incompatible receiver, "+t+" required");return i}};if(Zs||ra.state){var da=ra.state||(ra.state=new ha);da.get=da.get,da.has=da.has,da.set=da.set,Cs=function(t,e){if(da.has(t))throw new la(aa);return e.facade=t,da.set(t,e),e},Ds=function(t){return da.get(t)||{}},Ts=function(t){return da.has(t)}}else{var pa=oa("state");sa[pa]=!0,Cs=function(t,e){if(na(t,pa))throw new la(aa);return e.facade=t,ia(t,pa,e),e},Ds=function(t){return na(t,pa)?t[pa]:{}},Ts=function(t){return na(t,pa)}}var fa={set:Cs,get:Ds,has:Ts,enforce:ua,getterFor:ca},ma=Di,va=S,ga=it,ya=ge,ba=Rn,wa=Ar,ka=va([].push),_a=function(t){var e=1===t,i=2===t,n=3===t,r=4===t,o=6===t,s=7===t,a=5===t||o;return function(l,h,u,c){for(var d,p,f=ya(l),m=ga(f),v=ma(h,u),g=ba(m),y=0,b=c||wa,w=e?b(l,g):i||s?b(l,0):void 0;g>y;y++)if((a||y in m)&&(d=m[y],p=v(d,y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:ka(w,d)}else switch(t){case 4:return!1;case 7:ka(w,d)}return o?-1:n||r?r:w}},xa={forEach:_a(0),map:_a(1),filter:_a(2),some:_a(3),every:_a(4),find:_a(5),findIndex:_a(6),filterReject:_a(7)},Sa=ln,Ca=c,Da=W,Ta=S,Ea=z,Oa=Nt,Aa=d,Pa=ke,Ia=kt,Ma=Ni,Na=ht,Ra=qe,ja=to,Fa=$,La=ts,Ba=xo,za=es,Ga=os,Ha=ys,Wa=L,Ya=Ti,Va=eo,Ua=Y,Xa=ws,qa=_s,Ka=fe,$a=jo,Ja=co,Qa=De,Za=je,tl=xs,el=Is,il=Fs,nl=qs,rl=fa,ol=xa.forEach,sl=$a("hidden"),al="Symbol",ll="prototype",hl=rl.set,ul=rl.getterFor(al),cl=Object[ll],dl=Ca.Symbol,pl=dl&&dl[ll],fl=Ca.RangeError,ml=Ca.TypeError,vl=Ca.QObject,gl=Wa.f,yl=Ya.f,bl=Ga.f,wl=Ua.f,kl=Ta([].push),_l=Ka("symbols"),xl=Ka("op-symbols"),Sl=Ka("wks"),Cl=!vl||!vl[ll]||!vl[ll].findChild,Dl=function(t,e,i){var n=gl(cl,e);n&&delete cl[e],yl(t,e,i),n&&t!==cl&&yl(cl,e,n)},Tl=Ea&&Aa((function(){return 7!==La(yl({},"a",{get:function(){return yl(this,"a",{value:7}).a}})).a}))?Dl:yl,El=function(t,e){var i=_l[t]=La(pl);return hl(i,{type:al,tag:t,description:e}),Ea||(i.description=e),i},Ol=function(t,e,i){t===cl&&Ol(xl,e,i),Ma(t);var n=Ra(e);return Ma(i),Pa(_l,n)?(i.enumerable?(Pa(t,sl)&&t[sl][n]&&(t[sl][n]=!1),i=La(i,{enumerable:Fa(0,!1)})):(Pa(t,sl)||yl(t,sl,Fa(1,{})),t[sl][n]=!0),Tl(t,n,i)):yl(t,n,i)},Al=function(t,e){Ma(t);var i=Na(e),n=Ba(i).concat(Rl(i));return ol(n,(function(e){Ea&&!Da(Il,i,e)||Ol(t,e,i[e])})),t},Pl=function(t,e){return void 0===e?La(t):Al(La(t),e)},Il=function(t){var e=Ra(t),i=Da(wl,this,e);return!(this===cl&&Pa(_l,e)&&!Pa(xl,e))&&(!(i||!Pa(this,e)||!Pa(_l,e)||Pa(this,sl)&&this[sl][e])||i)},Ml=function(t,e){var i=Na(t),n=Ra(e);if(i!==cl||!Pa(_l,n)||Pa(xl,n)){var r=gl(i,n);return!r||!Pa(_l,n)||Pa(i,sl)&&i[sl][n]||(r.enumerable=!0),r}},Nl=function(t){var e=bl(Na(t)),i=[];return ol(e,(function(t){Pa(_l,t)||Pa(Ja,t)||kl(i,t)})),i},Rl=function(t){var e=t===cl,i=bl(e?xl:Na(t)),n=[];return ol(i,(function(t){!Pa(_l,t)||e&&!Pa(cl,t)||kl(n,_l[t])})),n};Oa||(dl=function(){if(Ia(pl,this))throw new ml("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ja(arguments[0]):void 0,e=Qa(t),i=function(t){var n=void 0===this?Ca:this;n===cl&&Da(i,xl,t),Pa(n,sl)&&Pa(n[sl],e)&&(n[sl][e]=!1);var r=Fa(1,t);try{Tl(n,e,r)}catch(o){if(!(o instanceof fl))throw o;Dl(n,e,r)}};return Ea&&Cl&&Tl(cl,e,{configurable:!0,set:i}),El(e,t)},pl=dl[ll],Xa(pl,"toString",(function(){return ul(this).tag})),Xa(dl,"withoutSetter",(function(t){return El(Qa(t),t)})),Ua.f=Il,Ya.f=Ol,Va.f=Al,Wa.f=Ml,za.f=Ga.f=Nl,Ha.f=Rl,tl.f=function(t){return El(Za(t),t)},Ea&&qa(pl,"description",{configurable:!0,get:function(){return ul(this).description}})),Sa({global:!0,constructor:!0,wrap:!0,forced:!Oa,sham:!Oa},{Symbol:dl}),ol(Ba(Sl),(function(t){el(t)})),Sa({target:al,stat:!0,forced:!Oa},{useSetter:function(){Cl=!0},useSimple:function(){Cl=!1}}),Sa({target:"Object",stat:!0,forced:!Oa,sham:!Ea},{create:Pl,defineProperty:Ol,defineProperties:Al,getOwnPropertyDescriptor:Ml}),Sa({target:"Object",stat:!0,forced:!Oa},{getOwnPropertyNames:Nl}),il(),nl(dl,al),Ja[sl]=!0;var jl=Nt,Fl=jl&&!!Symbol["for"]&&!!Symbol.keyFor,Ll=ln,Bl=bt,zl=ke,Gl=to,Hl=fe,Wl=Fl,Yl=Hl("string-to-symbol-registry"),Vl=Hl("symbol-to-string-registry");Ll({target:"Symbol",stat:!0,forced:!Wl},{for:function(t){var e=Gl(t);if(zl(Yl,e))return Yl[e];var i=Bl("Symbol")(e);return Yl[e]=i,Vl[i]=e,i}});var Ul=ln,Xl=ke,ql=Ht,Kl=Yt,$l=fe,Jl=Fl,Ql=$l("symbol-to-string-registry");Ul({target:"Symbol",stat:!0,forced:!Jl},{keyFor:function(t){if(!ql(t))throw new TypeError(Kl(t)+" is not a symbol");if(Xl(Ql,t))return Ql[t]}});var Zl=S,th=Zl([].slice),eh=S,ih=Cn,nh=F,rh=E,oh=to,sh=eh([].push),ah=function(t){if(nh(t))return t;if(ih(t)){for(var e=t.length,i=[],n=0;n<e;n++){var r=t[n];"string"==typeof r?sh(i,r):"number"!=typeof r&&"Number"!==rh(r)&&"String"!==rh(r)||sh(i,oh(r))}var o=i.length,s=!0;return function(t,e){if(s)return s=!1,e;if(ih(this))return e;for(var n=0;n<o;n++)if(i[n]===t)return e}}},lh=ln,hh=bt,uh=b,ch=W,dh=S,ph=d,fh=F,mh=Ht,vh=th,gh=ah,yh=Nt,bh=String,wh=hh("JSON","stringify"),kh=dh(/./.exec),_h=dh("".charAt),xh=dh("".charCodeAt),Sh=dh("".replace),Ch=dh(1..toString),Dh=/[\uD800-\uDFFF]/g,Th=/^[\uD800-\uDBFF]$/,Eh=/^[\uDC00-\uDFFF]$/,Oh=!yh||ph((function(){var t=hh("Symbol")("stringify detection");return"[null]"!==wh([t])||"{}"!==wh({a:t})||"{}"!==wh(Object(t))})),Ah=ph((function(){return'"\\udf06\\ud834"'!==wh("\udf06\ud834")||'"\\udead"'!==wh("\udead")})),Ph=function(t,e){var i=vh(arguments),n=gh(e);if(fh(n)||void 0!==t&&!mh(t))return i[1]=function(t,e){if(fh(n)&&(e=ch(n,this,bh(t),e)),!mh(e))return e},uh(wh,null,i)},Ih=function(t,e,i){var n=_h(i,e-1),r=_h(i,e+1);return kh(Th,t)&&!kh(Eh,r)||kh(Eh,t)&&!kh(Th,n)?"\\u"+Ch(xh(t,0),16):t};wh&&lh({target:"JSON",stat:!0,arity:3,forced:Oh||Ah},{stringify:function(t,e,i){var n=vh(arguments),r=uh(Oh?Ph:wh,null,n);return Ah&&"string"==typeof r?Sh(r,Dh,Ih):r}});var Mh=ln,Nh=Nt,Rh=d,jh=ys,Fh=ge,Lh=!Nh||Rh((function(){jh.f(1)}));Mh({target:"Object",stat:!0,forced:Lh},{getOwnPropertySymbols:function(t){var e=jh.f;return e?e(Fh(t)):[]}});var Bh=Is;Bh("asyncIterator");var zh=Is;zh("hasInstance");var Gh=Is;Gh("isConcatSpreadable");var Hh=Is;Hh("iterator");var Wh=Is;Wh("match");var Yh=Is;Yh("matchAll");var Vh=Is;Vh("replace");var Uh=Is;Uh("search");var Xh=Is;Xh("species");var qh=Is;qh("split");var Kh=Is,$h=Fs;Kh("toPrimitive"),$h();var Jh=bt,Qh=Is,Zh=qs;Qh("toStringTag"),Zh(Jh("Symbol"),"Symbol");var tu=Is;tu("unscopables");var eu=c,iu=qs;iu(eu.JSON,"JSON",!0);var nu,ru,ou,su=ft,au=su.Symbol,lu={},hu=z,uu=ke,cu=Function.prototype,du=hu&&Object.getOwnPropertyDescriptor,pu=uu(cu,"name"),fu=pu&&"something"===function(){}.name,mu=pu&&(!hu||hu&&du(cu,"name").configurable),vu={EXISTS:pu,PROPER:fu,CONFIGURABLE:mu},gu=d,yu=!gu((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bu=ke,wu=F,ku=ge,_u=jo,xu=yu,Su=_u("IE_PROTO"),Cu=Object,Du=Cu.prototype,Tu=xu?Cu.getPrototypeOf:function(t){var e=ku(t);if(bu(e,Su))return e[Su];var i=e.constructor;return wu(i)&&e instanceof i?i.prototype:e instanceof Cu?Du:null},Eu=d,Ou=F,Au=pt,Pu=ts,Iu=Tu,Mu=ws,Nu=je,Ru=Nu("iterator"),ju=!1;[].keys&&(ou=[].keys(),"next"in ou?(ru=Iu(Iu(ou)),ru!==Object.prototype&&(nu=ru)):ju=!0);var Fu=!Au(nu)||Eu((function(){var t={};return nu[Ru].call(t)!==t}));nu=Fu?{}:Pu(nu),Ou(nu[Ru])||Mu(nu,Ru,(function(){return this}));var Lu={IteratorPrototype:nu,BUGGY_SAFARI_ITERATORS:ju},Bu=Lu.IteratorPrototype,zu=ts,Gu=$,Hu=qs,Wu=lu,Yu=function(){return this},Vu=function(t,e,i,n){var r=e+" Iterator";return t.prototype=zu(Bu,{next:Gu(+!n,i)}),Hu(t,r,!1,!0),Wu[r]=Yu,t},Uu=S,Xu=qt,qu=function(t,e,i){try{return Uu(Xu(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(n){}},Ku=F,$u=String,Ju=TypeError,Qu=function(t){if("object"==typeof t||Ku(t))return t;throw new Ju("Can't set "+$u(t)+" as a prototype")},Zu=qu,tc=Ni,ec=Qu,ic=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=Zu(Object.prototype,"__proto__","set"),t(i,[]),e=i instanceof Array}catch(n){}return function(i,n){return tc(i),ec(n),e?t(i,n):i.__proto__=n,i}}():void 0),nc=ln,rc=W,oc=vu,sc=Vu,ac=Tu,lc=qs,hc=ws,uc=je,cc=lu,dc=Lu,pc=oc.PROPER;oc.CONFIGURABLE,dc.IteratorPrototype;var fc=dc.BUGGY_SAFARI_ITERATORS,mc=uc("iterator"),vc="keys",gc="values",yc="entries",bc=function(){return this},wc=function(t,e,i,n,r,o,s){sc(i,e,n);var a,l,h,u=function(t){if(t===r&&m)return m;if(!fc&&t&&t in p)return p[t];switch(t){case vc:return function(){return new i(this,t)};case gc:return function(){return new i(this,t)};case yc:return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,p=t.prototype,f=p[mc]||p["@@iterator"]||r&&p[r],m=!fc&&f||u(r),v="Array"===e&&p.entries||f;if(v&&(a=ac(v.call(new t)),a!==Object.prototype&&a.next&&(lc(a,c,!0,!0),cc[c]=bc)),pc&&r===gc&&f&&f.name!==gc&&(d=!0,m=function(){return rc(f,this)}),r)if(l={values:u(gc),keys:o?m:u(vc),entries:u(yc)},s)for(h in l)(fc||d||!(h in p))&&hc(p,h,l[h]);else nc({target:e,proto:!0,forced:fc||d},l);return s&&p[mc]!==m&&hc(p,mc,m,{name:r}),cc[e]=m,l},kc=function(t,e){return{value:t,done:e}},_c=ht,xc=lu,Sc=fa;Ti.f;var Cc=wc,Dc=kc,Tc="Array Iterator",Ec=Sc.set,Oc=Sc.getterFor(Tc);Cc(Array,"Array",(function(t,e){Ec(this,{type:Tc,target:_c(t),index:0,kind:e})}),(function(){var t=Oc(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=void 0,Dc(void 0,!0);switch(t.kind){case"keys":return Dc(i,!1);case"values":return Dc(e[i],!1)}return Dc([i,e[i]],!1)}),"values"),xc.Arguments=xc.Array;var Ac={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Pc=Ac,Ic=c,Mc=er,Nc=Ki,Rc=lu,jc=je,Fc=jc("toStringTag");for(var Lc in Pc){var Bc=Ic[Lc],zc=Bc&&Bc.prototype;zc&&Mc(zc)!==Fc&&Nc(zc,Fc,Lc),Rc[Lc]=Rc.Array}var Gc=au,Hc=Gc,Wc=je,Yc=Ti.f,Vc=Wc("metadata"),Uc=Function.prototype;void 0===Uc[Vc]&&Yc(Uc,Vc,{value:null});var Xc=Is;Xc("asyncDispose");var qc=Is;qc("dispose");var Kc=Is;Kc("metadata");var $c=Hc,Jc=$c,Qc=bt,Zc=S,td=Qc("Symbol"),ed=td.keyFor,id=Zc(td.prototype.valueOf),nd=td.isRegisteredSymbol||function(t){try{return void 0!==ed(id(t))}catch(e){return!1}},rd=ln,od=nd;rd({target:"Symbol",stat:!0},{isRegisteredSymbol:od});for(var sd=fe,ad=bt,ld=S,hd=Ht,ud=je,cd=ad("Symbol"),dd=cd.isWellKnownSymbol,pd=ad("Object","getOwnPropertyNames"),fd=ld(cd.prototype.valueOf),md=sd("wks"),vd=0,gd=pd(cd),yd=gd.length;vd<yd;vd++)try{var bd=gd[vd];hd(cd[bd])&&ud(bd)}catch(dpt){}var wd=function(t){if(dd&&dd(t))return!0;try{for(var e=fd(t),i=0,n=pd(md),r=n.length;i<r;i++)if(md[n[i]]==e)return!0}catch(dpt){}return!1},kd=ln,_d=wd;kd({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:_d});var xd=Is;xd("matcher");var Sd=Is;Sd("observable");var Cd=ln,Dd=nd;Cd({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Dd});var Td=ln,Ed=wd;Td({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Ed});var Od=Is;Od("metadataKey");var Ad=Is;Ad("patternMatch");var Pd=Is;Pd("replaceAll");var Id=Jc,Md=Id,Nd=Md,Rd=l(Nd),jd=S,Fd=An,Ld=to,Bd=st,zd=jd("".charAt),Gd=jd("".charCodeAt),Hd=jd("".slice),Wd=function(t){return function(e,i){var n,r,o=Ld(Bd(e)),s=Fd(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=Gd(o,s),n<55296||n>56319||s+1===a||(r=Gd(o,s+1))<56320||r>57343?t?zd(o,s):n:t?Hd(o,s,s+2):r-56320+(n-55296<<10)+65536)}},Yd={codeAt:Wd(!1),charAt:Wd(!0)},Vd=Yd.charAt,Ud=to,Xd=fa,qd=wc,Kd=kc,$d="String Iterator",Jd=Xd.set,Qd=Xd.getterFor($d);qd(String,"String",(function(t){Jd(this,{type:$d,string:Ud(t),index:0})}),(function(){var t,e=Qd(this),i=e.string,n=e.index;return n>=i.length?Kd(void 0,!0):(t=Vd(i,n),e.index+=t.length,Kd(t,!1))}));var Zd=xs,tp=Zd.f("iterator"),ep=tp,ip=ep,np=ip,rp=np,op=rp,sp=op,ap=sp,lp=l(ap);function hp(t){return hp="function"==typeof Rd&&"symbol"==typeof lp?function(t){return typeof t}:function(t){return t&&"function"==typeof Rd&&t.constructor===Rd&&t!==Rd.prototype?"symbol":typeof t},hp(t)}var up=xs,cp=up.f("toPrimitive"),dp=cp,pp=dp,fp=pp,mp=fp,vp=mp,gp=vp,yp=gp,bp=l(yp);function wp(t,e){if("object"!==hp(t)||null===t)return t;var i=t[bp];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==hp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function kp(t){var e=wp(t,"string");return"symbol"===hp(e)?e:String(e)}function _p(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),xn(t,kp(n.key),n)}}function xp(t,e,i){return e&&_p(t.prototype,e),i&&_p(t,i),xn(t,"prototype",{writable:!1}),t}function Sp(t,e,i){return e=kp(e),e in t?xn(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Cp=S,Dp=qt,Tp=pt,Ep=ke,Op=th,Ap=f,Pp=Function,Ip=Cp([].concat),Mp=Cp([].join),Np={},Rp=function(t,e,i){if(!Ep(Np,e)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";Np[e]=Pp("C,a","return new C("+Mp(n,",")+")")}return Np[e](t,i)},jp=Ap?Pp.bind:function(t){var e=Dp(this),i=e.prototype,n=Op(arguments,1),r=function(){var i=Ip(n,Op(arguments));return this instanceof r?Rp(e,i.length,i):e.apply(t,i)};return Tp(i)&&(r.prototype=i),r},Fp=ln,Lp=jp;Fp({target:"Function",proto:!0,forced:Function.bind!==Lp},{bind:Lp});var Bp=c,zp=ft,Gp=function(t,e){var i=zp[t+"Prototype"],n=i&&i[e];if(n)return n;var r=Bp[t],o=r&&r.prototype;return o&&o[e]},Hp=Gp,Wp=Hp("Function","bind"),Yp=kt,Vp=Wp,Up=Function.prototype,Xp=function(t){var e=t.bind;return t===Up||Yp(Up,t)&&e===Up.bind?Vp:e},qp=Xp,Kp=qp,$p=Kp,Jp=l($p),Qp=qt,Zp=ge,tf=it,ef=Rn,nf=TypeError,rf=function(t){return function(e,i,n,r){Qp(i);var o=Zp(e),s=tf(o),a=ef(o),l=t?a-1:0,h=t?-1:1;if(n<2)while(1){if(l in s){r=s[l],l+=h;break}if(l+=h,t?l<0:a<=l)throw new nf("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=h)l in s&&(r=i(r,s[l],l,o));return r}},of={left:rf(!1),right:rf(!0)},sf=d,af=function(t,e){var i=[][t];return!!i&&sf((function(){i.call(null,e||function(){return 1},1)}))},lf=c,hf=E,uf="process"===hf(lf.process),cf=ln,df=of.left,pf=af,ff=Ot,mf=uf,vf=!mf&&ff>79&&ff<83,gf=vf||!pf("reduce");cf({target:"Array",proto:!0,forced:gf},{reduce:function(t){var e=arguments.length;return df(this,t,e,e>1?arguments[1]:void 0)}});var yf=Gp,bf=yf("Array","reduce"),wf=kt,kf=bf,_f=Array.prototype,xf=function(t){var e=t.reduce;return t===_f||wf(_f,t)&&e===_f.reduce?kf:e},Sf=xf,Cf=Sf,Df=Cf,Tf=l(Df),Ef=ln,Of=xa.filter,Af=Rr,Pf=Af("filter");Ef({target:"Array",proto:!0,forced:!Pf},{filter:function(t){return Of(this,t,arguments.length>1?arguments[1]:void 0)}});var If=Gp,Mf=If("Array","filter"),Nf=kt,Rf=Mf,jf=Array.prototype,Ff=function(t){var e=t.filter;return t===jf||Nf(jf,t)&&e===jf.filter?Rf:e},Lf=Ff,Bf=Lf,zf=Bf,Gf=l(zf),Hf=ln,Wf=xa.map,Yf=Rr,Vf=Yf("map");Hf({target:"Array",proto:!0,forced:!Vf},{map:function(t){return Wf(this,t,arguments.length>1?arguments[1]:void 0)}});var Uf=Gp,Xf=Uf("Array","map"),qf=kt,Kf=Xf,$f=Array.prototype,Jf=function(t){var e=t.map;return t===$f||qf($f,t)&&e===$f.map?Kf:e},Qf=Jf,Zf=Qf,tm=Zf,em=l(tm),im=Cn,nm=Rn,rm=Ln,om=Di,sm=function(t,e,i,n,r,o,s,a){var l,h,u=r,c=0,d=!!s&&om(s,a);while(c<n)c in i&&(l=d?d(i[c],c,e):i[c],o>0&&im(l)?(h=nm(l),u=sm(t,e,l,h,u,o-1)-1):(rm(u+1),t[u]=l),u++),c++;return u},am=sm,lm=ln,hm=am,um=qt,cm=ge,dm=Rn,pm=Ar;lm({target:"Array",proto:!0},{flatMap:function(t){var e,i=cm(this),n=dm(i);return um(t),e=pm(i,0),e.length=hm(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var fm=Gp,mm=fm("Array","flatMap"),vm=kt,gm=mm,ym=Array.prototype,bm=function(t){var e=t.flatMap;return t===ym||vm(ym,t)&&e===ym.flatMap?gm:e},wm=bm,km=wm,_m=km,xm=l(_m);function Sm(t){return new Dm(t)}var Cm=function(){function t(e,i,n){var r,o,a;s(this,t),Sp(this,"_listeners",{add:Jp(r=this._add).call(r,this),remove:Jp(o=this._remove).call(o,this),update:Jp(a=this._update).call(a,this)}),this._source=e,this._transformers=i,this._target=n}return xp(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return Tf(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),Dm=function(){function t(e){s(this,t),Sp(this,"_transformers",[]),this._source=e}return xp(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return Gf(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return em(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return xm(e).call(e,t)})),this}},{key:"to",value:function(t){return new Cm(this._source,this._transformers,t)}}]),t}(),Tm=W,Em=Ni,Om=Jt,Am=function(t,e,i){var n,r;Em(t);try{if(n=Om(t,"return"),!n){if("throw"===e)throw i;return i}n=Tm(n,t)}catch(dpt){r=!0,n=dpt}if("throw"===e)throw i;if(r)throw n;return Em(n),i},Pm=Ni,Im=Am,Mm=function(t,e,i,n){try{return n?e(Pm(i)[0],i[1]):e(i)}catch(dpt){Im(t,"throw",dpt)}},Nm=je,Rm=lu,jm=Nm("iterator"),Fm=Array.prototype,Lm=function(t){return void 0!==t&&(Rm.Array===t||Fm[jm]===t)},Bm=er,zm=Jt,Gm=nt,Hm=lu,Wm=je,Ym=Wm("iterator"),Vm=function(t){if(!Gm(t))return zm(t,Ym)||zm(t,"@@iterator")||Hm[Bm(t)]},Um=W,Xm=qt,qm=Ni,Km=Yt,$m=Vm,Jm=TypeError,Qm=function(t,e){var i=arguments.length<2?$m(t):e;if(Xm(i))return qm(Um(i,t));throw new Jm(Km(t)+" is not iterable")},Zm=Di,tv=W,ev=ge,iv=Mm,nv=Lm,rv=kr,ov=Rn,sv=Hn,av=Qm,lv=Vm,hv=Array,uv=function(t){var e=ev(t),i=rv(this),n=arguments.length,r=n>1?arguments[1]:void 0,o=void 0!==r;o&&(r=Zm(r,n>2?arguments[2]:void 0));var s,a,l,h,u,c,d=lv(e),p=0;if(!d||this===hv&&nv(d))for(s=ov(e),a=i?new this(s):hv(s);s>p;p++)c=o?r(e[p],p):e[p],sv(a,p,c);else for(h=av(e,d),u=h.next,a=i?new this:[];!(l=tv(u,h)).done;p++)c=o?iv(h,r,[l.value,p],!0):l.value,sv(a,p,c);return a.length=p,a},cv=je,dv=cv("iterator"),pv=!1;try{var fv=0,mv={next:function(){return{done:!!fv++}},return:function(){pv=!0}};mv[dv]=function(){return this},Array.from(mv,(function(){throw 2}))}catch(dpt){}var vv=function(t,e){try{if(!e&&!pv)return!1}catch(dpt){return!1}var i=!1;try{var n={};n[dv]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(dpt){}return i},gv=ln,yv=uv,bv=vv,wv=!bv((function(t){Array.from(t)}));gv({target:"Array",stat:!0,forced:wv},{from:yv});var kv=ft,_v=kv.Array.from,xv=_v,Sv=xv,Cv=Sv,Dv=l(Cv),Tv=Vm,Ev=Tv,Ov=Ev,Av=Ov,Pv=Av,Iv=Pv,Mv=Iv,Nv=Mv,Rv=Nv,jv=l(Rv),Fv=Rv,Lv=l(Fv),Bv=ln,zv=Cn;Bv({target:"Array",stat:!0},{isArray:zv});var Gv=ft,Hv=Gv.Array.isArray,Wv=Hv,Yv=Wv,Vv=Yv,Uv=Vv,Xv=Uv,qv=Xv,Kv=qv,$v=l(Kv);function Jv(t){if($v(t))return t}var Qv=z,Zv=Cn,tg=TypeError,eg=Object.getOwnPropertyDescriptor,ig=Qv&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(dpt){return dpt instanceof TypeError}}(),ng=ig?function(t,e){if(Zv(t)&&!eg(t,"length").writable)throw new tg("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rg=ln,og=ge,sg=Rn,ag=ng,lg=Ln,hg=d,ug=hg((function(){return 4294967297!==[].push.call({length:4294967296},1)})),cg=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(dpt){return dpt instanceof TypeError}},dg=ug||!cg();rg({target:"Array",proto:!0,arity:1,forced:dg},{push:function(t){var e=og(this),i=sg(e),n=arguments.length;lg(i+n);for(var r=0;r<n;r++)e[i]=arguments[r],i++;return ag(e,i),i}});var pg=Gp,fg=pg("Array","push"),mg=kt,vg=fg,gg=Array.prototype,yg=function(t){var e=t.push;return t===gg||mg(gg,t)&&e===gg.push?vg:e},bg=yg,wg=bg,kg=wg,_g=kg,xg=_g,Sg=xg,Cg=Sg,Dg=l(Cg);function Tg(t,e){var i=null==t?null:"undefined"!=typeof Rd&&jv(t)||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,h=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(Dg(a).call(a,n.value),a.length!==e);l=!0);}catch(t){h=!0,r=t}finally{try{if(!l&&null!=i["return"]&&(s=i["return"](),Object(s)!==s))return}finally{if(h)throw r}}return a}}var Eg=ln,Og=Cn,Ag=kr,Pg=pt,Ig=oo,Mg=Rn,Ng=ht,Rg=Hn,jg=je,Fg=Rr,Lg=th,Bg=Fg("slice"),zg=jg("species"),Gg=Array,Hg=Math.max;Eg({target:"Array",proto:!0,forced:!Bg},{slice:function(t,e){var i,n,r,o=Ng(this),s=Mg(o),a=Ig(t,s),l=Ig(void 0===e?s:e,s);if(Og(o)&&(i=o.constructor,Ag(i)&&(i===Gg||Og(i.prototype))?i=void 0:Pg(i)&&(i=i[zg],null===i&&(i=void 0)),i===Gg||void 0===i))return Lg(o,a,l);for(n=new(void 0===i?Gg:i)(Hg(l-a,0)),r=0;a<l;a++,r++)a in o&&Rg(n,r,o[a]);return n.length=r,n}});var Wg=Gp,Yg=Wg("Array","slice"),Vg=kt,Ug=Yg,Xg=Array.prototype,qg=function(t){var e=t.slice;return t===Xg||Vg(Xg,t)&&e===Xg.slice?Ug:e},Kg=qg,$g=Kg,Jg=$g,Qg=Jg,Zg=Qg,ty=Zg,ey=ty,iy=l(ey),ny=Sv,ry=ny,oy=ry,sy=oy,ay=sy,ly=l(ay);function hy(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function uy(t,e){var i;if(t){if("string"===typeof t)return hy(t,e);var n=iy(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?ly(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hy(t,e):void 0}}function cy(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dy(t,e){return Jv(t)||Tg(t,e)||uy(t,e)||cy()}function py(t){if($v(t))return hy(t)}function fy(t){if("undefined"!==typeof Rd&&null!=jv(t)||null!=t["@@iterator"])return ly(t)}function my(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vy(t){return py(t)||fy(t)||uy(t)||my()}var gy=Hc,yy=l(gy),by=Gp,wy=by("Array","concat"),ky=kt,_y=wy,xy=Array.prototype,Sy=function(t){var e=t.concat;return t===xy||ky(xy,t)&&e===xy.concat?_y:e},Cy=Sy,Dy=Cy,Ty=Dy,Ey=l(Ty),Oy=$g,Ay=l(Oy),Py=bt,Iy=S,My=es,Ny=ys,Ry=Ni,jy=Iy([].concat),Fy=Py("Reflect","ownKeys")||function(t){var e=My.f(Ry(t)),i=Ny.f;return i?jy(e,i(t)):e},Ly=ln,By=Fy;Ly({target:"Reflect",stat:!0},{ownKeys:By});var zy=ft,Gy=zy.Reflect.ownKeys,Hy=Gy,Wy=Hy,Yy=Wy,Vy=l(Yy),Uy=Yv,Xy=l(Uy),qy=ln,Ky=ge,$y=xo,Jy=d,Qy=Jy((function(){$y(1)}));qy({target:"Object",stat:!0,forced:Qy},{keys:function(t){return $y(Ky(t))}});var Zy=ft,tb=Zy.Object.keys,eb=tb,ib=eb,nb=ib,rb=l(nb),ob=xa.forEach,sb=af,ab=sb("forEach"),lb=ab?[].forEach:function(t){return ob(this,t,arguments.length>1?arguments[1]:void 0)},hb=ln,ub=lb;hb({target:"Array",proto:!0,forced:[].forEach!==ub},{forEach:ub});var cb=Gp,db=cb("Array","forEach"),pb=db,fb=pb,mb=er,vb=ke,gb=kt,yb=fb,bb=Array.prototype,wb={DOMTokenList:!0,NodeList:!0},kb=function(t){var e=t.forEach;return t===bb||gb(bb,t)&&e===bb.forEach||vb(wb,mb(t))?yb:e},_b=kb,xb=l(_b),Sb=ln,Cb=S,Db=Cn,Tb=Cb([].reverse),Eb=[1,2];Sb({target:"Array",proto:!0,forced:String(Eb)===String(Eb.reverse())},{reverse:function(){return Db(this)&&(this.length=this.length),Tb(this)}});var Ob=Gp,Ab=Ob("Array","reverse"),Pb=kt,Ib=Ab,Mb=Array.prototype,Nb=function(t){var e=t.reverse;return t===Mb||Pb(Mb,t)&&e===Mb.reverse?Ib:e},Rb=Nb,jb=Rb,Fb=jb,Lb=l(Fb),Bb=Yt,zb=TypeError,Gb=function(t,e){if(!delete t[e])throw new zb("Cannot delete property "+Bb(e)+" of "+Bb(t))},Hb=ln,Wb=ge,Yb=oo,Vb=An,Ub=Rn,Xb=ng,qb=Ln,Kb=Ar,$b=Hn,Jb=Gb,Qb=Rr,Zb=Qb("splice"),tw=Math.max,ew=Math.min;Hb({target:"Array",proto:!0,forced:!Zb},{splice:function(t,e){var i,n,r,o,s,a,l=Wb(this),h=Ub(l),u=Yb(t,h),c=arguments.length;for(0===c?i=n=0:1===c?(i=0,n=h-u):(i=c-2,n=ew(tw(Vb(e),0),h-u)),qb(h+i-n),r=Kb(l,n),o=0;o<n;o++)s=u+o,s in l&&$b(r,o,l[s]);if(r.length=n,i<n){for(o=u;o<h-n;o++)s=o+n,a=o+i,s in l?l[a]=l[s]:Jb(l,a);for(o=h;o>h-n+i;o--)Jb(l,o-1)}else if(i>n)for(o=h-n;o>u;o--)s=o+n-1,a=o+i-1,s in l?l[a]=l[s]:Jb(l,a);for(o=0;o<i;o++)l[o+u]=arguments[o+2];return Xb(l,h-n+i),r}});var iw=Gp,nw=iw("Array","splice"),rw=kt,ow=nw,sw=Array.prototype,aw=function(t){var e=t.splice;return t===sw||rw(sw,t)&&e===sw.splice?ow:e},lw=aw,hw=lw,uw=hw,cw=l(uw),dw=z,pw=S,fw=W,mw=d,vw=xo,gw=ys,yw=Y,bw=ge,ww=it,kw=Object.assign,_w=Object.defineProperty,xw=pw([].concat),Sw=!kw||mw((function(){if(dw&&1!==kw({b:1},kw(_w({},"a",{enumerable:!0,get:function(){_w(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!==kw({},t)[i]||vw(kw({},e)).join("")!==n}))?function(t,e){var i=bw(t),n=arguments.length,r=1,o=gw.f,s=yw.f;while(n>r){var a,l=ww(arguments[r++]),h=o?xw(vw(l),o(l)):vw(l),u=h.length,c=0;while(u>c)a=h[c++],dw&&!fw(s,l,a)||(i[a]=l[a])}return i}:kw,Cw=ln,Dw=Sw;Cw({target:"Object",stat:!0,arity:2,forced:Object.assign!==Dw},{assign:Dw});var Tw=ft,Ew=Tw.Object.assign,Ow=Ew,Aw=Ow,Pw=Aw,Iw=l(Pw),Mw=ln,Nw=d,Rw=ge,jw=Tu,Fw=yu,Lw=Nw((function(){jw(1)}));Mw({target:"Object",stat:!0,forced:Lw,sham:!Fw},{getPrototypeOf:function(t){return jw(Rw(t))}});var Bw=ft,zw=Bw.Object.getPrototypeOf,Gw=zw,Hw=Gw,Ww=ln,Yw=z,Vw=ts;Ww({target:"Object",stat:!0,sham:!Yw},{create:Vw});var Uw=ft,Xw=Uw.Object,qw=function(t,e){return Xw.create(t,e)},Kw=qw,$w=Kw,Jw=$w,Qw=l(Jw),Zw=ft,tk=b;Zw.JSON||(Zw.JSON={stringify:JSON.stringify});var ek=function(t,e,i){return tk(Zw.JSON.stringify,null,arguments)},ik=ek,nk=ik,rk=nk,ok=l(rk),sk="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,ak=TypeError,lk=function(t,e){if(t<e)throw new ak("Not enough arguments");return t},hk=c,uk=b,ck=F,dk=sk,pk=_t,fk=th,mk=lk,vk=hk.Function,gk=/MSIE .\./.test(pk)||dk&&function(){var t=hk.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),yk=function(t,e){var i=e?2:1;return gk?function(n,r){var o=mk(arguments.length,1)>i,s=ck(n)?n:vk(n),a=o?fk(arguments,i):[],l=o?function(){uk(s,this,a)}:s;return e?t(l,r):t(l)}:t},bk=ln,wk=c,kk=yk,_k=kk(wk.setInterval,!0);bk({global:!0,bind:!0,forced:wk.setInterval!==_k},{setInterval:_k});var xk=ln,Sk=c,Ck=yk,Dk=Ck(Sk.setTimeout,!0);xk({global:!0,bind:!0,forced:Sk.setTimeout!==Dk},{setTimeout:Dk});var Tk=ft,Ek=Tk.setTimeout,Ok=Ek,Ak=l(Ok),Pk={exports:{}};(function(t){function e(t){if(t)return i(t);this._callbacks=new Map}function i(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}e.prototype.on=function(t,e){const i=this._callbacks.get(t)??[];return i.push(e),this._callbacks.set(t,i),this},e.prototype.once=function(t,e){const i=(...n)=>{this.off(t,i),e.apply(this,n)};return i.fn=e,this.on(t,i),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const i=this._callbacks.get(t);if(i){for(const[t,n]of i.entries())if(n===e||n.fn===e){i.splice(t,1);break}0===i.length?this._callbacks.delete(t):this._callbacks.set(t,i)}return this},e.prototype.emit=function(t,...e){const i=this._callbacks.get(t);if(i){const t=[...i];for(const i of t)i.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const i of this._callbacks.values())e+=i.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e})(Pk);var Ik,Mk=Pk.exports,Nk=l(Mk);
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
 * http://naver.github.io/egjs
 *
 * Forked By Naver egjs
 * Copyright (c) hammerjs
 * Licensed under the MIT license */
function Rk(){return Rk=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Rk.apply(this,arguments)}function jk(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Fk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Ik="function"!==typeof Object.assign?function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(void 0!==n&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var Lk,Bk=Ik,zk=["","webkit","Moz","MS","ms","o"],Gk="undefined"===typeof document?{style:{}}:document.createElement("div"),Hk="function",Wk=Math.round,Yk=Math.abs,Vk=Date.now;function Uk(t,e){var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;while(o<zk.length){if(i=zk[o],n=i?i+r:e,n in t)return n;o++}}Lk="undefined"===typeof window?{}:window;var Xk=Uk(Gk.style,"touchAction"),qk=void 0!==Xk;function Kk(){if(!qk)return!1;var t={},e=Lk.CSS&&Lk.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||Lk.CSS.supports("touch-action",i)})),t}var $k="compute",Jk="auto",Qk="manipulation",Zk="none",t_="pan-x",e_="pan-y",i_=Kk(),n_=/mobile|tablet|ip(ad|hone|od)|android/i,r_="ontouchstart"in Lk,o_=void 0!==Uk(Lk,"PointerEvent"),s_=r_&&n_.test(navigator.userAgent),a_="touch",l_="pen",h_="mouse",u_="kinect",c_=25,d_=1,p_=2,f_=4,m_=8,v_=1,g_=2,y_=4,b_=8,w_=16,k_=g_|y_,__=b_|w_,x_=k_|__,S_=["x","y"],C_=["clientX","clientY"];function D_(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length){n=0;while(n<t.length)e.call(i,t[n],n,t),n++}else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function T_(t,e){return typeof t===Hk?t.apply(e&&e[0]||void 0,e):t}function E_(t,e){return t.indexOf(e)>-1}function O_(t){if(E_(t,Zk))return Zk;var e=E_(t,t_),i=E_(t,e_);return e&&i?Zk:e||i?e?t_:e_:E_(t,Qk)?Qk:Jk}var A_=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===$k&&(t=this.compute()),qk&&this.manager.element.style&&i_[t]&&(this.manager.element.style[Xk]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return D_(this.manager.recognizers,(function(e){T_(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),O_(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=E_(n,Zk)&&!i_[Zk],o=E_(n,e_)&&!i_[e_],s=E_(n,t_)&&!i_[t_];if(r){var a=1===t.pointers.length,l=t.distance<2,h=t.deltaTime<250;if(a&&l&&h)return}if(!s||!o)return r||o&&i&k_||s&&i&__?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function P_(t,e){while(t){if(t===e)return!0;t=t.parentNode}return!1}function I_(t){var e=t.length;if(1===e)return{x:Wk(t[0].clientX),y:Wk(t[0].clientY)};var i=0,n=0,r=0;while(r<e)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:Wk(i/e),y:Wk(n/e)}}function M_(t){var e=[],i=0;while(i<t.pointers.length)e[i]={clientX:Wk(t.pointers[i].clientX),clientY:Wk(t.pointers[i].clientY)},i++;return{timeStamp:Vk(),pointers:e,center:I_(e),deltaX:t.deltaX,deltaY:t.deltaY}}function N_(t,e,i){i||(i=S_);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function R_(t,e,i){i||(i=S_);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function j_(t,e){return t===e?v_:Yk(t)>=Yk(e)?t<0?g_:y_:e<0?b_:w_}function F_(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==d_&&o.eventType!==f_||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function L_(t,e,i){return{x:e/t||0,y:i/t||0}}function B_(t,e){return N_(e[0],e[1],C_)/N_(t[0],t[1],C_)}function z_(t,e){return R_(e[1],e[0],C_)+R_(t[1],t[0],C_)}function G_(t,e){var i,n,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==m_&&(a>c_||void 0===s.velocity)){var l=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,u=L_(a,l,h);n=u.x,r=u.y,i=Yk(u.x)>Yk(u.y)?u.x:u.y,o=j_(l,h),t.lastInterval=e}else i=s.velocity,n=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}function H_(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=M_(e)),r>1&&!i.firstMultiple?i.firstMultiple=M_(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,l=e.center=I_(n);e.timeStamp=Vk(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=R_(a,l),e.distance=N_(a,l),F_(i,e),e.offsetDirection=j_(e.deltaX,e.deltaY);var h=L_(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Yk(h.x)>Yk(h.y)?h.x:h.y,e.scale=s?B_(s.pointers,n):1,e.rotation=s?z_(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,G_(i,e);var u,c=t.element,d=e.srcEvent;u=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target,P_(u,c)&&(c=u),e.target=c}function W_(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=e&d_&&n-r===0,s=e&(f_|m_)&&n-r===0;i.isFirst=!!o,i.isFinal=!!s,o&&(t.session={}),i.eventType=e,H_(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function Y_(t){return t.trim().split(/\s+/g)}function V_(t,e,i){D_(Y_(e),(function(e){t.addEventListener(e,i,!1)}))}function U_(t,e,i){D_(Y_(e),(function(e){t.removeEventListener(e,i,!1)}))}function X_(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var q_=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){T_(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&V_(this.element,this.evEl,this.domHandler),this.evTarget&&V_(this.target,this.evTarget,this.domHandler),this.evWin&&V_(X_(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&U_(this.element,this.evEl,this.domHandler),this.evTarget&&U_(this.target,this.evTarget,this.domHandler),this.evWin&&U_(X_(this.element),this.evWin,this.domHandler)},t}();function K_(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);var n=0;while(n<t.length){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var $_={pointerdown:d_,pointermove:p_,pointerup:f_,pointercancel:m_,pointerout:m_},J_={2:a_,3:l_,4:h_,5:u_},Q_="pointerdown",Z_="pointermove pointerup pointercancel";Lk.MSPointerEvent&&!Lk.PointerEvent&&(Q_="MSPointerDown",Z_="MSPointerMove MSPointerUp MSPointerCancel");var tx=function(t){function e(){var i,n=e.prototype;return n.evEl=Q_,n.evWin=Z_,i=t.apply(this,arguments)||this,i.store=i.manager.session.pointerEvents=[],i}jk(e,t);var i=e.prototype;return i.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=$_[n],o=J_[t.pointerType]||t.pointerType,s=o===a_,a=K_(e,t.pointerId,"pointerId");r&d_&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(f_|m_)&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(a,1))},e}(q_);function ex(t){return Array.prototype.slice.call(t,0)}function ix(t,e,i){var n=[],r=[],o=0;while(o<t.length){var s=e?t[o][e]:t[o];K_(r,s)<0&&n.push(t[o]),r[o]=s,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var nx={touchstart:d_,touchmove:p_,touchend:f_,touchcancel:m_},rx="touchstart touchmove touchend touchcancel",ox=function(t){function e(){var i;return e.prototype.evTarget=rx,i=t.apply(this,arguments)||this,i.targetIds={},i}jk(e,t);var i=e.prototype;return i.handler=function(t){var e=nx[t.type],i=sx.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:a_,srcEvent:t})},e}(q_);function sx(t,e){var i,n,r=ex(t.touches),o=this.targetIds;if(e&(d_|p_)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=ex(t.changedTouches),a=[],l=this.target;if(n=r.filter((function(t){return P_(t.target,l)})),e===d_){i=0;while(i<n.length)o[n[i].identifier]=!0,i++}i=0;while(i<s.length)o[s[i].identifier]&&a.push(s[i]),e&(f_|m_)&&delete o[s[i].identifier],i++;return a.length?[ix(n.concat(a),"identifier",!0),a]:void 0}var ax={mousedown:d_,mousemove:p_,mouseup:f_},lx="mousedown",hx="mousemove mouseup",ux=function(t){function e(){var i,n=e.prototype;return n.evEl=lx,n.evWin=hx,i=t.apply(this,arguments)||this,i.pressed=!1,i}jk(e,t);var i=e.prototype;return i.handler=function(t){var e=ax[t.type];e&d_&&0===t.button&&(this.pressed=!0),e&p_&&1!==t.which&&(e=f_),this.pressed&&(e&f_&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:h_,srcEvent:t}))},e}(q_),cx=2500,dx=25;function px(t){var e=t.changedPointers,i=e[0];if(i.identifier===this.primaryTouch){var n={x:i.clientX,y:i.clientY},r=this.lastTouches;this.lastTouches.push(n);var o=function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)};setTimeout(o,cx)}}function fx(t,e){t&d_?(this.primaryTouch=e.changedPointers[0].identifier,px.call(this,e)):t&(f_|m_)&&px.call(this,e)}function mx(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),s=Math.abs(i-r.y);if(o<=dx&&s<=dx)return!0}return!1}var vx=function(){var t=function(t){function e(e,i){var n;return n=t.call(this,e,i)||this,n.handler=function(t,e,i){var r=i.pointerType===a_,o=i.pointerType===h_;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(r)fx.call(Fk(Fk(n)),e,i);else if(o&&mx.call(Fk(Fk(n)),i))return;n.callback(t,e,i)}},n.touch=new ox(n.manager,n.handler),n.mouse=new ux(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}jk(e,t);var i=e.prototype;return i.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(q_);return t}();function gx(t){var e,i=t.options.inputClass;return e=i||(o_?tx:s_?ox:r_?vx:ux),new e(t,W_)}function yx(t,e,i){return!!Array.isArray(t)&&(D_(t,i[e],i),!0)}var bx=1,wx=2,kx=4,_x=8,xx=_x,Sx=16,Cx=32,Dx=1;function Tx(){return Dx++}function Ex(t,e){var i=e.manager;return i?i.get(t):t}function Ox(t){return t&Sx?"cancel":t&_x?"end":t&kx?"move":t&wx?"start":""}var Ax=function(){function t(t){void 0===t&&(t={}),this.options=Rk({enable:!0},t),this.id=Tx(),this.manager=null,this.state=bx,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return Bk(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(yx(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=Ex(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return yx(t,"dropRecognizeWith",this)||(t=Ex(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(yx(t,"requireFailure",this))return this;var e=this.requireFail;return t=Ex(t,this),-1===K_(e,t)&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(yx(t,"dropRequireFailure",this))return this;t=Ex(t,this);var e=K_(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<_x&&n(e.options.event+Ox(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=_x&&n(e.options.event+Ox(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Cx},e.canEmit=function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(Cx|bx)))return!1;t++}return!0},e.recognize=function(t){var e=Bk({},t);if(!T_(this.options.enable,[this,e]))return this.reset(),void(this.state=Cx);this.state&(xx|Sx|Cx)&&(this.state=bx),this.state=this.process(e),this.state&(wx|kx|_x|Sx)&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),Px=function(t){function e(e){var i;return void 0===e&&(e={}),i=t.call(this,Rk({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this,i.pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}jk(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Qk]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,r=t.distance<i.threshold,o=t.deltaTime<i.time;if(this.reset(),t.eventType&d_&&0===this.count)return this.failTimeout();if(r&&o&&n){if(t.eventType!==f_)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||N_(this.pCenter,t.center)<i.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t;var l=this.count%i.taps;if(0===l)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=xx,e.tryEmit()}),i.interval),wx):xx}return Cx},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Cx}),this.options.interval),Cx},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){this.state===xx&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Ax),Ix=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rk({pointers:1},e))||this}jk(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,n=e&(wx|kx),r=this.attrTest(t);return n&&(i&m_||!r)?e|Sx:n||r?i&f_?e|_x:e&wx?e|kx:wx:Cx},e}(Ax);function Mx(t){return t===w_?"down":t===b_?"up":t===g_?"left":t===y_?"right":""}var Nx=function(t){function e(e){var i;return void 0===e&&(e={}),i=t.call(this,Rk({event:"pan",threshold:10,pointers:1,direction:x_},e))||this,i.pX=null,i.pY=null,i}jk(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return t&k_&&e.push(e_),t&__&&e.push(t_),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&k_?(r=0===o?v_:o<0?g_:y_,i=o!==this.pX,n=Math.abs(t.deltaX)):(r=0===s?v_:s<0?b_:w_,i=s!==this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},i.attrTest=function(t){return Ix.prototype.attrTest.call(this,t)&&(this.state&wx||!(this.state&wx)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=Mx(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(Ix),Rx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rk({event:"swipe",threshold:10,velocity:.3,direction:k_|__,pointers:1},e))||this}jk(e,t);var i=e.prototype;return i.getTouchAction=function(){return Nx.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return n&(k_|__)?i=e.overallVelocity:n&k_?i=e.overallVelocityX:n&__&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Yk(i)>this.options.velocity&&e.eventType&f_},i.emit=function(t){var e=Mx(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Ix),jx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rk({event:"pinch",threshold:0,pointers:2},e))||this}jk(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Zk]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&wx)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(Ix),Fx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rk({event:"rotate",threshold:0,pointers:2},e))||this}jk(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Zk]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&wx)},e}(Ix),Lx=function(t){function e(e){var i;return void 0===e&&(e={}),i=t.call(this,Rk({event:"press",pointers:1,time:251,threshold:9},e))||this,i._timer=null,i._input=null,i}jk(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Jk]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,r=t.distance<i.threshold,o=t.deltaTime>i.time;if(this._input=t,!r||!n||t.eventType&(f_|m_)&&!o)this.reset();else if(t.eventType&d_)this.reset(),this._timer=setTimeout((function(){e.state=xx,e.tryEmit()}),i.time);else if(t.eventType&f_)return xx;return Cx},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){this.state===xx&&(t&&t.eventType&f_?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Vk(),this.manager.emit(this.options.event,this._input)))},e}(Ax),Bx={domEvents:!1,touchAction:$k,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},zx=[[Fx,{enable:!1}],[jx,{enable:!1},["rotate"]],[Rx,{direction:k_}],[Nx,{direction:k_},["swipe"]],[Px],[Px,{event:"doubletap",taps:2},["tap"]],[Lx]],Gx=1,Hx=2;function Wx(t,e){var i,n=t.element;n.style&&(D_(t.options.cssProps,(function(r,o){i=Uk(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}function Yx(t,e){var i=document.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}var Vx=function(){function t(t,e){var i=this;this.options=Bk({},Bx,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=gx(this),this.touchAction=new A_(this,this.options.touchAction),Wx(this,!0),D_(this.options.recognizers,(function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Bk(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?Hx:Gx},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&xx)&&(e.curRecognizer=null,r=null);var o=0;while(o<n.length)i=n[o],e.stopped===Hx||r&&i!==r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(wx|kx|_x)&&(e.curRecognizer=i,r=i),o++}},e.get=function(t){if(t instanceof Ax)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event===t)return e[i];return null},e.add=function(t){if(yx(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(yx(t,"remove",this))return this;var e=this.get(t);if(t){var i=this.recognizers,n=K_(i,e);-1!==n&&(i.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var i=this.handlers;return D_(Y_(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var i=this.handlers;return D_(Y_(t),(function(t){e?i[t]&&i[t].splice(K_(i[t],e),1):delete i[t]})),this},e.emit=function(t,e){this.options.domEvents&&Yx(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};var n=0;while(n<i.length)i[n](e),n++}},e.destroy=function(){this.element&&Wx(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Ux={touchstart:d_,touchmove:p_,touchend:f_,touchcancel:m_},Xx="touchstart",qx="touchstart touchmove touchend touchcancel",Kx=function(t){function e(){var i,n=e.prototype;return n.evTarget=Xx,n.evWin=qx,i=t.apply(this,arguments)||this,i.started=!1,i}jk(e,t);var i=e.prototype;return i.handler=function(t){var e=Ux[t.type];if(e===d_&&(this.started=!0),this.started){var i=$x.call(this,t,e);e&(f_|m_)&&i[0].length-i[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:a_,srcEvent:t})}},e}(q_);function $x(t,e){var i=ex(t.touches),n=ex(t.changedTouches);return e&(f_|m_)&&(i=ix(i.concat(n),"identifier",!0)),[i,n]}function Jx(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,n,i),t.apply(this,arguments)}}var Qx=Jx((function(t,e,i){var n=Object.keys(e),r=0;while(r<n.length)(!i||i&&void 0===t[n[r]])&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),Zx=Jx((function(t,e){return Qx(t,e,!0)}),"merge","Use `assign`.");function tS(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&Bk(n,i)}function eS(t,e){return function(){return t.apply(e,arguments)}}var iS=function(){var t=function(t,e){return void 0===e&&(e={}),new Vx(t,Rk({recognizers:zx.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=x_,t.DIRECTION_DOWN=w_,t.DIRECTION_LEFT=g_,t.DIRECTION_RIGHT=y_,t.DIRECTION_UP=b_,t.DIRECTION_HORIZONTAL=k_,t.DIRECTION_VERTICAL=__,t.DIRECTION_NONE=v_,t.DIRECTION_DOWN=w_,t.INPUT_START=d_,t.INPUT_MOVE=p_,t.INPUT_END=f_,t.INPUT_CANCEL=m_,t.STATE_POSSIBLE=bx,t.STATE_BEGAN=wx,t.STATE_CHANGED=kx,t.STATE_ENDED=_x,t.STATE_RECOGNIZED=xx,t.STATE_CANCELLED=Sx,t.STATE_FAILED=Cx,t.Manager=Vx,t.Input=q_,t.TouchAction=A_,t.TouchInput=ox,t.MouseInput=ux,t.PointerEventInput=tx,t.TouchMouseInput=vx,t.SingleTouchInput=Kx,t.Recognizer=Ax,t.AttrRecognizer=Ix,t.Tap=Px,t.Pan=Nx,t.Swipe=Rx,t.Pinch=jx,t.Rotate=Fx,t.Press=Lx,t.on=V_,t.off=U_,t.each=D_,t.merge=Zx,t.extend=Qx,t.bindFn=eS,t.assign=Bk,t.inherit=tS,t.bindFn=eS,t.prefixed=Uk,t.toArray=ex,t.inArray=K_,t.uniqueArray=ix,t.splitStr=Y_,t.boolOrFn=T_,t.hasParent=P_,t.addEventListeners=V_,t.removeEventListeners=U_,t.defaults=Bk({},Bx,{preset:zx}),t}(),nS=iS;function rS(t,e){var i="undefined"!==typeof yy&&Lv(t)||t["@@iterator"];if(!i){if(Xy(t)||(i=oS(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function oS(t,e){var i;if(t){if("string"===typeof t)return sS(t,e);var n=Ay(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Dv(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sS(t,e):void 0}}function sS(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var aS=yy("DELETE");function lS(t){for(var e,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return hS.apply(void 0,Ey(e=[{},t]).call(e,n))}function hS(){var t=uS.apply(void 0,arguments);return dS(t),t}function uS(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<2)return e[0];var n;if(e.length>2)return uS.apply(void 0,Ey(n=[hS(e[0],e[1])]).call(n,vy(Ay(e).call(e,2))));var r=e[0],o=e[1];if(r instanceof Date&&o instanceof Date)return r.setTime(o.getTime()),r;var s,a=rS(Vy(o));try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===aS?delete r[l]:null===r[l]||null===o[l]||"object"!==typeof r[l]||"object"!==typeof o[l]||Xy(r[l])||Xy(o[l])?r[l]=cS(o[l]):r[l]=uS(r[l],o[l]))}}catch(h){a.e(h)}finally{a.f()}return r}function cS(t){return Xy(t)?em(t).call(t,(function(t){return cS(t)})):"object"===typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):uS({},t):t}function dS(t){for(var e=0,i=rb(t);e<i.length;e++){var n=i[e];t[n]===aS?delete t[n]:"object"===typeof t[n]&&null!==t[n]&&dS(t[n])}}function pS(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get(){return{set:t}}}}var fS="undefined"!==typeof window?window.Hammer||nS:function(){return pS()};function mS(t){var e,i=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){i._dom.overlay.parentNode.removeChild(i._dom.overlay)}));var n=fS(this._dom.overlay);n.on("tap",Jp(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){n.destroy()}));var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];xb(r).call(r,(function(t){n.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){vS(e.target,t)||i.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",i._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&i.deactivate()}}function vS(t,e){while(t){if(t===e)return!0;t=t.parentNode}return!1}Nk(mS.prototype),mS.current=null,mS.prototype.destroy=function(){var t,e;this.deactivate();var i,n=rS(Lb(t=cw(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(i=n.n()).done;){var r=i.value;r()}}catch(o){n.e(o)}finally{n.f()}},mS.prototype.activate=function(){mS.current&&mS.current.deactivate(),mS.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)},mS.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")},mS.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var gS=kr,yS=Yt,bS=TypeError,wS=function(t){if(gS(t))return t;throw new bS(yS(t)+" is not a constructor")},kS=ln,_S=bt,xS=b,SS=jp,CS=wS,DS=Ni,TS=pt,ES=ts,OS=d,AS=_S("Reflect","construct"),PS=Object.prototype,IS=[].push,MS=OS((function(){function t(){}return!(AS((function(){}),[],t)instanceof t)})),NS=!OS((function(){AS((function(){}))})),RS=MS||NS;kS({target:"Reflect",stat:!0,forced:RS,sham:RS},{construct:function(t,e){CS(t),DS(e);var i=arguments.length<3?t:CS(arguments[2]);if(NS&&!MS)return AS(t,e,i);if(t===i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return xS(IS,n,e),new(xS(SS,t,n))}var r=i.prototype,o=ES(TS(r)?r:PS),s=xS(t,o,e);return TS(s)?s:o}});var jS=ft,FS=jS.Reflect.construct,LS=FS,BS=LS,zS=BS,GS=l(zS),HS=ft,WS=HS.Object.getOwnPropertySymbols,YS=WS,VS=YS,US=VS,XS=l(US),qS={exports:{}},KS=ln,$S=d,JS=ht,QS=L.f,ZS=z,tC=!ZS||$S((function(){QS(1)}));KS({target:"Object",stat:!0,forced:tC,sham:!ZS},{getOwnPropertyDescriptor:function(t,e){return QS(JS(t),e)}});var eC=ft,iC=eC.Object,nC=qS.exports=function(t,e){return iC.getOwnPropertyDescriptor(t,e)};iC.getOwnPropertyDescriptor.sham&&(nC.sham=!0);var rC=qS.exports,oC=rC,sC=oC,aC=sC,lC=l(aC),hC=ln,uC=z,cC=Fy,dC=ht,pC=L,fC=Hn;hC({target:"Object",stat:!0,sham:!uC},{getOwnPropertyDescriptors:function(t){var e,i,n=dC(t),r=pC.f,o=cC(n),s={},a=0;while(o.length>a)i=r(n,e=o[a++]),void 0!==i&&fC(s,e,i);return s}});var mC=ft,vC=mC.Object.getOwnPropertyDescriptors,gC=vC,yC=gC,bC=yC,wC=l(bC),kC={exports:{}},_C=ln,xC=z,SC=eo.f;_C({target:"Object",stat:!0,forced:Object.defineProperties!==SC,sham:!xC},{defineProperties:SC});var CC=ft,DC=CC.Object,TC=kC.exports=function(t,e){return DC.defineProperties(t,e)};DC.defineProperties.sham&&(TC.sham=!0);var EC=kC.exports,OC=EC,AC=OC,PC=AC,IC=l(PC),MC=gn,NC=l(MC);function RC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var jC=$w,FC=jC,LC=FC,BC=LC,zC=BC,GC=l(zC),HC=ln,WC=ic;HC({target:"Object",stat:!0},{setPrototypeOf:WC});var YC=ft,VC=YC.Object.setPrototypeOf,UC=VC,XC=UC,qC=XC,KC=qC,$C=KC,JC=$C,QC=JC,ZC=l(QC),tD=Kp,eD=tD,iD=eD,nD=iD,rD=nD,oD=l(rD);function sD(t,e){var i;return sD=ZC?oD(i=ZC).call(i):function(t,e){return t.__proto__=e,t},sD(t,e)}function aD(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=GC(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),xn(t,"prototype",{writable:!1}),e&&sD(t,e)}function lD(t,e){if(e&&("object"===hp(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return RC(t)}var hD=Hw,uD=hD,cD=uD,dD=cD,pD=dD,fD=l(pD);function mD(t){var e;return mD=ZC?oD(e=fD).call(e):function(t){return t.__proto__||fD(t)},mD(t)}var vD={exports:{}},gD={exports:{}};(function(t){var e=Nd,i=ap;function n(r){return t.exports=n="function"==typeof e&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports})(gD);var yD=gD.exports,bD=kb,wD=bD,kD=wD,_D=kD,xD=_D,SD=ke,CD=Fy,DD=L,TD=Ti,ED=function(t,e,i){for(var n=CD(e),r=TD.f,o=DD.f,s=0;s<n.length;s++){var a=n[s];SD(t,a)||i&&SD(i,a)||r(t,a,o(e,a))}},OD=pt,AD=Ki,PD=function(t,e){OD(e)&&"cause"in e&&AD(t,"cause",e.cause)},ID=S,MD=Error,ND=ID("".replace),RD=function(t){return String(new MD(t).stack)}("zxcasd"),jD=/\n\s*at [^:]*:[^\n]*/,FD=jD.test(RD),LD=function(t,e){if(FD&&"string"==typeof t&&!MD.prepareStackTrace)while(e--)t=ND(t,jD,"");return t},BD=d,zD=$,GD=!BD((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",zD(1,7)),7!==t.stack)})),HD=Ki,WD=LD,YD=GD,VD=Error.captureStackTrace,UD=function(t,e,i,n){YD&&(VD?VD(t,e):HD(t,"stack",WD(i,n)))},XD=Di,qD=W,KD=Ni,$D=Yt,JD=Lm,QD=Rn,ZD=kt,tT=Qm,eT=Vm,iT=Am,nT=TypeError,rT=function(t,e){this.stopped=t,this.result=e},oT=rT.prototype,sT=function(t,e,i){var n,r,o,s,a,l,h,u=i&&i.that,c=!(!i||!i.AS_ENTRIES),d=!(!i||!i.IS_RECORD),p=!(!i||!i.IS_ITERATOR),f=!(!i||!i.INTERRUPTED),m=XD(e,u),v=function(t){return n&&iT(n,"normal",t),new rT(!0,t)},g=function(t){return c?(KD(t),f?m(t[0],t[1],v):m(t[0],t[1])):f?m(t,v):m(t)};if(d)n=t.iterator;else if(p)n=t;else{if(r=eT(t),!r)throw new nT($D(t)+" is not iterable");if(JD(r)){for(o=0,s=QD(t);s>o;o++)if(a=g(t[o]),a&&ZD(oT,a))return a;return new rT(!1)}n=tT(t,r)}l=d?t.next:n.next;while(!(h=qD(l,n)).done){try{a=g(h.value)}catch(dpt){iT(n,"throw",dpt)}if("object"==typeof a&&a&&ZD(oT,a))return a}return new rT(!1)},aT=to,lT=function(t,e){return void 0===t?arguments.length<2?"":e:aT(t)},hT=ln,uT=kt,cT=Tu,dT=ic,pT=ED,fT=ts,mT=Ki,vT=$,gT=PD,yT=UD,bT=sT,wT=lT,kT=je,_T=kT("toStringTag"),xT=Error,ST=[].push,CT=function(t,e){var i,n=uT(DT,this);dT?i=dT(new xT,n?cT(this):DT):(i=n?this:fT(DT),mT(i,_T,"Error")),void 0!==e&&mT(i,"message",wT(e)),yT(i,CT,i.stack,1),arguments.length>2&&gT(i,arguments[2]);var r=[];return bT(t,ST,{that:r}),mT(i,"errors",r),i};dT?dT(CT,xT):pT(CT,xT,{name:!0});var DT=CT.prototype=fT(xT.prototype,{constructor:vT(1,CT),message:vT(1,""),name:vT(1,"AggregateError")});hT({global:!0,constructor:!0,arity:2},{AggregateError:CT});var TT,ET,OT,AT,PT=bt,IT=_s,MT=je,NT=z,RT=MT("species"),jT=function(t){var e=PT(t);NT&&e&&!e[RT]&&IT(e,RT,{configurable:!0,get:function(){return this}})},FT=kt,LT=TypeError,BT=function(t,e){if(FT(e,t))return t;throw new LT("Incorrect invocation")},zT=Ni,GT=wS,HT=nt,WT=je,YT=WT("species"),VT=function(t,e){var i,n=zT(t).constructor;return void 0===n||HT(i=zT(n)[YT])?e:GT(i)},UT=_t,XT=/(?:ipad|iphone|ipod).*applewebkit/i.test(UT),qT=c,KT=b,$T=Di,JT=F,QT=ke,ZT=d,tE=Io,eE=th,iE=Ze,nE=lk,rE=XT,oE=uf,sE=qT.setImmediate,aE=qT.clearImmediate,lE=qT.process,hE=qT.Dispatch,uE=qT.Function,cE=qT.MessageChannel,dE=qT.String,pE=0,fE={},mE="onreadystatechange";ZT((function(){TT=qT.location}));var vE=function(t){if(QT(fE,t)){var e=fE[t];delete fE[t],e()}},gE=function(t){return function(){vE(t)}},yE=function(t){vE(t.data)},bE=function(t){qT.postMessage(dE(t),TT.protocol+"//"+TT.host)};sE&&aE||(sE=function(t){nE(arguments.length,1);var e=JT(t)?t:uE(t),i=eE(arguments,1);return fE[++pE]=function(){KT(e,void 0,i)},ET(pE),pE},aE=function(t){delete fE[t]},oE?ET=function(t){lE.nextTick(gE(t))}:hE&&hE.now?ET=function(t){hE.now(gE(t))}:cE&&!rE?(OT=new cE,AT=OT.port2,OT.port1.onmessage=yE,ET=$T(AT.postMessage,AT)):qT.addEventListener&&JT(qT.postMessage)&&!qT.importScripts&&TT&&"file:"!==TT.protocol&&!ZT(bE)?(ET=bE,qT.addEventListener("message",yE,!1)):ET=mE in iE("script")?function(t){tE.appendChild(iE("script"))[mE]=function(){tE.removeChild(this),vE(t)}}:function(t){setTimeout(gE(t),0)});var wE={set:sE,clear:aE},kE=function(){this.head=null,this.tail=null};kE.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return null===e&&(this.tail=null),t.item}}};var _E,xE,SE,CE,DE,TE=kE,EE=_t,OE=/ipad|iphone|ipod/i.test(EE)&&"undefined"!=typeof Pebble,AE=_t,PE=/web0s(?!.*chrome)/i.test(AE),IE=c,ME=Di,NE=L.f,RE=wE.set,jE=TE,FE=XT,LE=OE,BE=PE,zE=uf,GE=IE.MutationObserver||IE.WebKitMutationObserver,HE=IE.document,WE=IE.process,YE=IE.Promise,VE=NE(IE,"queueMicrotask"),UE=VE&&VE.value;if(!UE){var XE=new jE,qE=function(){var t,e;zE&&(t=WE.domain)&&t.exit();while(e=XE.get())try{e()}catch(dpt){throw XE.head&&_E(),dpt}t&&t.enter()};FE||zE||BE||!GE||!HE?!LE&&YE&&YE.resolve?(CE=YE.resolve(void 0),CE.constructor=YE,DE=ME(CE.then,CE),_E=function(){DE(qE)}):zE?_E=function(){WE.nextTick(qE)}:(RE=ME(RE,IE),_E=function(){RE(qE)}):(xE=!0,SE=HE.createTextNode(""),new GE(qE).observe(SE,{characterData:!0}),_E=function(){SE.data=xE=!xE}),UE=function(t){XE.head||_E(),XE.add(t)}}var KE=UE,$E=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(dpt){}},JE=function(t){try{return{error:!1,value:t()}}catch(dpt){return{error:!0,value:dpt}}},QE=c,ZE=QE.Promise,tO="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,eO=tO,iO=uf,nO=!eO&&!iO&&"object"==typeof window&&"object"==typeof document,rO=c,oO=ZE,sO=F,aO=ki,lO=sr,hO=je,uO=nO,cO=tO,dO=Ot,pO=oO&&oO.prototype,fO=hO("species"),mO=!1,vO=sO(rO.PromiseRejectionEvent),gO=aO("Promise",(function(){var t=lO(oO),e=t!==String(oO);if(!e&&66===dO)return!0;if(!pO["catch"]||!pO["finally"])return!0;if(!dO||dO<51||!/native code/.test(t)){var i=new oO((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},r=i.constructor={};if(r[fO]=n,mO=i.then((function(){}))instanceof n,!mO)return!0}return!e&&(uO||cO)&&!vO})),yO={CONSTRUCTOR:gO,REJECTION_EVENT:vO,SUBCLASSING:mO},bO={},wO=qt,kO=TypeError,_O=function(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw new kO("Bad Promise constructor");e=t,i=n})),this.resolve=wO(e),this.reject=wO(i)};bO.f=function(t){return new _O(t)};var xO=ln,SO=uf,CO=c,DO=W,TO=ws,EO=qs,OO=jT,AO=qt,PO=F,IO=pt,MO=BT,NO=VT,RO=wE.set,jO=KE,FO=$E,LO=JE,BO=TE,zO=fa,GO=ZE,HO=yO,WO=bO,YO="Promise",VO=HO.CONSTRUCTOR,UO=HO.REJECTION_EVENT;HO.SUBCLASSING;var XO,qO,KO,$O=zO.getterFor(YO),JO=zO.set,QO=GO&&GO.prototype,ZO=GO,tA=QO,eA=CO.TypeError,iA=CO.document,nA=CO.process,rA=WO.f,oA=rA,sA=!!(iA&&iA.createEvent&&CO.dispatchEvent),aA="unhandledrejection",lA="rejectionhandled",hA=0,uA=1,cA=2,dA=1,pA=2,fA=function(t){var e;return!(!IO(t)||!PO(e=t.then))&&e},mA=function(t,e){var i,n,r,o=e.value,s=e.state===uA,a=s?t.ok:t.fail,l=t.resolve,h=t.reject,u=t.domain;try{a?(s||(e.rejection===pA&&wA(e),e.rejection=dA),!0===a?i=o:(u&&u.enter(),i=a(o),u&&(u.exit(),r=!0)),i===t.promise?h(new eA("Promise-chain cycle")):(n=fA(i))?DO(n,i,l,h):l(i)):h(o)}catch(dpt){u&&!r&&u.exit(),h(dpt)}},vA=function(t,e){t.notified||(t.notified=!0,jO((function(){var i,n=t.reactions;while(i=n.get())mA(i,t);t.notified=!1,e&&!t.rejection&&yA(t)})))},gA=function(t,e,i){var n,r;sA?(n=iA.createEvent("Event"),n.promise=e,n.reason=i,n.initEvent(t,!1,!0),CO.dispatchEvent(n)):n={promise:e,reason:i},!UO&&(r=CO["on"+t])?r(n):t===aA&&FO("Unhandled promise rejection",i)},yA=function(t){DO(RO,CO,(function(){var e,i=t.facade,n=t.value,r=bA(t);if(r&&(e=LO((function(){SO?nA.emit("unhandledRejection",n,i):gA(aA,i,n)})),t.rejection=SO||bA(t)?pA:dA,e.error))throw e.value}))},bA=function(t){return t.rejection!==dA&&!t.parent},wA=function(t){DO(RO,CO,(function(){var e=t.facade;SO?nA.emit("rejectionHandled",e):gA(lA,e,t.value)}))},kA=function(t,e,i){return function(n){t(e,n,i)}},_A=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=cA,vA(t,!0))},xA=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new eA("Promise can't be resolved itself");var n=fA(e);n?jO((function(){var i={done:!1};try{DO(n,e,kA(xA,i,t),kA(_A,i,t))}catch(dpt){_A(i,dpt,t)}})):(t.value=e,t.state=uA,vA(t,!1))}catch(dpt){_A({done:!1},dpt,t)}}};VO&&(ZO=function(t){MO(this,tA),AO(t),DO(XO,this);var e=$O(this);try{t(kA(xA,e),kA(_A,e))}catch(dpt){_A(e,dpt)}},tA=ZO.prototype,XO=function(t){JO(this,{type:YO,done:!1,notified:!1,parent:!1,reactions:new BO,rejection:!1,state:hA,value:void 0})},XO.prototype=TO(tA,"then",(function(t,e){var i=$O(this),n=rA(NO(this,ZO));return i.parent=!0,n.ok=!PO(t)||t,n.fail=PO(e)&&e,n.domain=SO?nA.domain:void 0,i.state===hA?i.reactions.add(n):jO((function(){mA(n,i)})),n.promise})),qO=function(){var t=new XO,e=$O(t);this.promise=t,this.resolve=kA(xA,e),this.reject=kA(_A,e)},WO.f=rA=function(t){return t===ZO||t===KO?new qO(t):oA(t)}),xO({global:!0,constructor:!0,wrap:!0,forced:VO},{Promise:ZO}),EO(ZO,YO,!1,!0),OO(YO);var SA=ZE,CA=vv,DA=yO.CONSTRUCTOR,TA=DA||!CA((function(t){SA.all(t).then(void 0,(function(){}))})),EA=ln,OA=W,AA=qt,PA=bO,IA=JE,MA=sT,NA=TA;EA({target:"Promise",stat:!0,forced:NA},{all:function(t){var e=this,i=PA.f(e),n=i.resolve,r=i.reject,o=IA((function(){var i=AA(e.resolve),o=[],s=0,a=1;MA(t,(function(t){var l=s++,h=!1;a++,OA(i,e,t).then((function(t){h||(h=!0,o[l]=t,--a||n(o))}),r)})),--a||n(o)}));return o.error&&r(o.value),i.promise}});var RA=ln,jA=yO.CONSTRUCTOR,FA=ZE;FA&&FA.prototype,RA({target:"Promise",proto:!0,forced:jA,real:!0},{catch:function(t){return this.then(void 0,t)}});var LA=ln,BA=W,zA=qt,GA=bO,HA=JE,WA=sT,YA=TA;LA({target:"Promise",stat:!0,forced:YA},{race:function(t){var e=this,i=GA.f(e),n=i.reject,r=HA((function(){var r=zA(e.resolve);WA(t,(function(t){BA(r,e,t).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}});var VA=ln,UA=W,XA=bO,qA=yO.CONSTRUCTOR;VA({target:"Promise",stat:!0,forced:qA},{reject:function(t){var e=XA.f(this);return UA(e.reject,void 0,t),e.promise}});var KA=Ni,$A=pt,JA=bO,QA=function(t,e){if(KA(t),$A(e)&&e.constructor===t)return e;var i=JA.f(t),n=i.resolve;return n(e),i.promise},ZA=ln,tP=bt,eP=re,iP=ZE,nP=yO.CONSTRUCTOR,rP=QA,oP=tP("Promise"),sP=!nP;ZA({target:"Promise",stat:!0,forced:eP},{resolve:function(t){return rP(sP&&this===oP?iP:this,t)}});var aP=ln,lP=W,hP=qt,uP=bO,cP=JE,dP=sT,pP=TA;aP({target:"Promise",stat:!0,forced:pP},{allSettled:function(t){var e=this,i=uP.f(e),n=i.resolve,r=i.reject,o=cP((function(){var i=hP(e.resolve),r=[],o=0,s=1;dP(t,(function(t){var a=o++,l=!1;s++,lP(i,e,t).then((function(t){l||(l=!0,r[a]={status:"fulfilled",value:t},--s||n(r))}),(function(t){l||(l=!0,r[a]={status:"rejected",reason:t},--s||n(r))}))})),--s||n(r)}));return o.error&&r(o.value),i.promise}});var fP=ln,mP=W,vP=qt,gP=bt,yP=bO,bP=JE,wP=sT,kP=TA,_P="No one promise resolved";fP({target:"Promise",stat:!0,forced:kP},{any:function(t){var e=this,i=gP("AggregateError"),n=yP.f(e),r=n.resolve,o=n.reject,s=bP((function(){var n=vP(e.resolve),s=[],a=0,l=1,h=!1;wP(t,(function(t){var u=a++,c=!1;l++,mP(n,e,t).then((function(t){c||h||(h=!0,r(t))}),(function(t){c||h||(c=!0,s[u]=t,--l||o(new i(s,_P)))}))})),--l||o(new i(s,_P))}));return s.error&&o(s.value),n.promise}});var xP=ln,SP=ZE,CP=d,DP=bt,TP=F,EP=VT,OP=QA,AP=SP&&SP.prototype,PP=!!SP&&CP((function(){AP["finally"].call({then:function(){}},(function(){}))}));xP({target:"Promise",proto:!0,real:!0,forced:PP},{finally:function(t){var e=EP(this,DP("Promise")),i=TP(t);return this.then(i?function(i){return OP(e,t()).then((function(){return i}))}:t,i?function(i){return OP(e,t()).then((function(){throw i}))}:t)}});var IP=ft,MP=IP.Promise,NP=MP,RP=NP,jP=ln,FP=bO;jP({target:"Promise",stat:!0},{withResolvers:function(){var t=FP.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var LP=RP,BP=LP,zP=ln,GP=bO,HP=JE;zP({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=GP.f(this),i=HP(t);return(i.error?e.reject:e.resolve)(i.value),e.promise}});var WP=BP,YP=WP,VP=YP,UP=jb,XP=UP,qP=XP,KP=qP,$P=KP;(function(t){var e=yD["default"],i=_n,n=Nd,r=zC,o=pD,s=xD,a=Cg,l=QC,h=VP,u=$P,c=ey;function d(){t.exports=d=function(){return f},t.exports.__esModule=!0,t.exports["default"]=t.exports;var p,f={},m=Object.prototype,v=m.hasOwnProperty,g=i||function(t,e,i){t[e]=i.value},y="function"==typeof n?n:{},b=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",k=y.toStringTag||"@@toStringTag";function _(t,e,n){return i(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{_({},"")}catch(p){_=function(t,e,i){return t[e]=i}}function x(t,e,i,n){var o=e&&e.prototype instanceof A?e:A,s=r(o.prototype),a=new W(n||[]);return g(s,"_invoke",{value:B(t,i,a)}),s}function S(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}f.wrap=x;var C="suspendedStart",D="suspendedYield",T="executing",E="completed",O={};function A(){}function P(){}function I(){}var M={};_(M,b,(function(){return this}));var N=o,R=N&&N(N(Y([])));R&&R!==m&&v.call(R,b)&&(M=R);var j=I.prototype=A.prototype=r(M);function F(t){var e;s(e=["next","throw","return"]).call(e,(function(e){_(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,i){function n(r,o,s,a){var l=S(t[r],t,o);if("throw"!==l.type){var h=l.arg,u=h.value;return u&&"object"==e(u)&&v.call(u,"__await")?i.resolve(u.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):i.resolve(u).then((function(t){h.value=t,s(h)}),(function(t){return n("throw",t,s,a)}))}a(l.arg)}var r;g(this,"_invoke",{value:function(t,e){function o(){return new i((function(i,r){n(t,e,i,r)}))}return r=r?r.then(o,o):o()}})}function B(t,e,i){var n=C;return function(r,o){if(n===T)throw new Error("Generator is already running");if(n===E){if("throw"===r)throw o;return{value:p,done:!0}}for(i.method=r,i.arg=o;;){var s=i.delegate;if(s){var a=z(s,i);if(a){if(a===O)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===C)throw n=E,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=T;var l=S(t,e,i);if("normal"===l.type){if(n=i.done?E:D,l.arg===O)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n=E,i.method="throw",i.arg=l.arg)}}}function z(t,e){var i=e.method,n=t.iterator[i];if(n===p)return e.delegate=null,"throw"===i&&t.iterator["return"]&&(e.method="return",e.arg=p,z(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),O;var r=S(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,O;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=p),e.delegate=null,O):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,O)}function G(t){var e,i={tryLoc:t[0]};1 in t&&(i.catchLoc=t[1]),2 in t&&(i.finallyLoc=t[2],i.afterLoc=t[3]),a(e=this.tryEntries).call(e,i)}function H(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function W(t){this.tryEntries=[{tryLoc:"root"}],s(t).call(t,G,this),this.reset(!0)}function Y(t){if(t||""===t){var i=t[b];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(v.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=p,e.done=!0,e};return r.next=r}}throw new TypeError(e(t)+" is not iterable")}return P.prototype=I,g(j,"constructor",{value:I,configurable:!0}),g(I,"constructor",{value:P,configurable:!0}),P.displayName=_(I,k,"GeneratorFunction"),f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===P||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return l?l(t,I):(t.__proto__=I,_(t,k,"GeneratorFunction")),t.prototype=r(j),t},f.awrap=function(t){return{__await:t}},F(L.prototype),_(L.prototype,w,(function(){return this})),f.AsyncIterator=L,f.async=function(t,e,i,n,r){void 0===r&&(r=h);var o=new L(x(t,e,i,n),r);return f.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},F(j),_(j,k,"Generator"),_(j,b,(function(){return this})),_(j,"toString",(function(){return"[object Generator]"})),f.keys=function(t){var e=Object(t),i=[];for(var n in e)a(i).call(i,n);return u(i).call(i),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},f.values=Y,W.prototype={constructor:W,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=p,this.done=!1,this.delegate=null,this.method="next",this.arg=p,s(e=this.tryEntries).call(e,H),!t)for(var i in this)"t"===i.charAt(0)&&v.call(this,i)&&!isNaN(+c(i).call(i,1))&&(this[i]=p)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,n){return o.type="throw",o.arg=t,e.next=i,n&&(e.method="next",e.arg=p),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],o=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=v.call(r,"catchLoc"),a=v.call(r,"finallyLoc");if(s&&a){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,O):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),O},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),H(i),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;H(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:Y(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=p),O}},f}t.exports=d,t.exports.__esModule=!0,t.exports["default"]=t.exports})(vD);var JP=vD.exports,QP=JP(),ZP=QP;try{regeneratorRuntime=QP}catch(ppt){"object"===typeof globalThis?globalThis.regeneratorRuntime=QP:Function("r","regeneratorRuntime = r")(QP)}var tI=l(ZP),eI={exports:{}},iI=d,nI=iI((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),rI=d,oI=pt,sI=E,aI=nI,lI=Object.isExtensible,hI=rI((function(){lI(1)})),uI=hI||aI?function(t){return!!oI(t)&&((!aI||"ArrayBuffer"!==sI(t))&&(!lI||lI(t)))}:lI,cI=d,dI=!cI((function(){return Object.isExtensible(Object.preventExtensions({}))})),pI=ln,fI=S,mI=co,vI=pt,gI=ke,yI=Ti.f,bI=es,wI=os,kI=uI,_I=De,xI=dI,SI=!1,CI=_I("meta"),DI=0,TI=function(t){yI(t,CI,{value:{objectID:"O"+DI++,weakData:{}}})},EI=function(t,e){if(!vI(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!gI(t,CI)){if(!kI(t))return"F";if(!e)return"E";TI(t)}return t[CI].objectID},OI=function(t,e){if(!gI(t,CI)){if(!kI(t))return!0;if(!e)return!1;TI(t)}return t[CI].weakData},AI=function(t){return xI&&SI&&kI(t)&&!gI(t,CI)&&TI(t),t},PI=function(){II.enable=function(){},SI=!0;var t=bI.f,e=fI([].splice),i={};i[CI]=1,t(i).length&&(bI.f=function(i){for(var n=t(i),r=0,o=n.length;r<o;r++)if(n[r]===CI){e(n,r,1);break}return n},pI({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wI.f}))},II=eI.exports={enable:PI,fastKey:EI,getWeakData:OI,onFreeze:AI};mI[CI]=!0;var MI=eI.exports,NI=ln,RI=c,jI=MI,FI=d,LI=Ki,BI=sT,zI=BT,GI=F,HI=pt,WI=nt,YI=qs,VI=Ti.f,UI=xa.forEach,XI=z,qI=fa,KI=qI.set,$I=qI.getterFor,JI=function(t,e,i){var n,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=RI[t],l=a&&a.prototype,h={};if(XI&&GI(a)&&(o||l.forEach&&!FI((function(){(new a).entries().next()})))){n=e((function(e,i){KI(zI(e,u),{type:t,collection:new a}),WI(i)||BI(i,e[s],{that:e,AS_ENTRIES:r})}));var u=n.prototype,c=$I(t);UI(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in l)||o&&"clear"===t||LI(u,t,(function(i,n){var r=c(this).collection;if(!e&&o&&!HI(i))return"get"===t&&void 0;var s=r[t](0===i?0:i,n);return e?this:s}))})),o||VI(u,"size",{configurable:!0,get:function(){return c(this).collection.size}})}else n=i.getConstructor(e,t,r,s),jI.enable();return YI(n,t,!1,!0),h[t]=n,NI({global:!0,forced:!0},h),o||i.setStrong(n,t,r),n},QI=ws,ZI=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:QI(t,n,e[n],i);return t},tM=ts,eM=_s,iM=ZI,nM=Di,rM=BT,oM=nt,sM=sT,aM=wc,lM=kc,hM=jT,uM=z,cM=MI.fastKey,dM=fa,pM=dM.set,fM=dM.getterFor,mM={getConstructor:function(t,e,i,n){var r=t((function(t,r){rM(t,o),pM(t,{type:e,index:tM(null),first:void 0,last:void 0,size:0}),uM||(t.size=0),oM(r)||sM(r,t[n],{that:t,AS_ENTRIES:i})})),o=r.prototype,s=fM(e),a=function(t,e,i){var n,r,o=s(t),a=l(t,e);return a?a.value=i:(o.last=a={index:r=cM(e,!0),key:e,value:i,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),uM?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},l=function(t,e){var i,n=s(t),r=cM(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key===e)return i};return iM(o,{clear:function(){var t=this,e=s(t),i=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete i[n.index],n=n.next;e.first=e.last=void 0,uM?e.size=0:t.size=0},delete:function(t){var e=this,i=s(e),n=l(e,t);if(n){var r=n.next,o=n.previous;delete i.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),i.first===n&&(i.first=r),i.last===n&&(i.last=o),uM?i.size--:e.size--}return!!n},forEach:function(t){var e,i=s(this),n=nM(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:i.first){n(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!l(this,t)}}),iM(o,i?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),uM&&eM(o,"size",{configurable:!0,get:function(){return s(this).size}}),r},setStrong:function(t,e,i){var n=e+" Iterator",r=fM(e),o=fM(n);aM(t,e,(function(t,e){pM(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,i=t.last;while(i&&i.removed)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?lM("keys"===e?i.key:"values"===e?i.value:[i.key,i.value],!1):(t.target=void 0,lM(void 0,!0))}),i?"entries":"values",!i,!0),hM(e)}},vM=JI,gM=mM;vM("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),gM);var yM=ft,bM=yM.Map,wM=bM,kM=wM,_M=kM,xM=l(_M),SM=ln,CM=xa.some,DM=af,TM=DM("some");SM({target:"Array",proto:!0,forced:!TM},{some:function(t){return CM(this,t,arguments.length>1?arguments[1]:void 0)}});var EM=Gp,OM=EM("Array","some"),AM=kt,PM=OM,IM=Array.prototype,MM=function(t){var e=t.some;return t===IM||AM(IM,t)&&e===IM.some?PM:e},NM=MM,RM=NM,jM=RM,FM=l(jM),LM=Gp,BM=LM("Array","keys"),zM=BM,GM=zM,HM=er,WM=ke,YM=kt,VM=GM,UM=Array.prototype,XM={DOMTokenList:!0,NodeList:!0},qM=function(t){var e=t.keys;return t===UM||YM(UM,t)&&e===UM.keys||WM(XM,HM(t))?VM:e},KM=qM,$M=l(KM),JM=cs,QM=Math.floor,ZM=function(t,e){var i=t.length,n=QM(i/2);return i<8?tN(t,e):eN(t,ZM(JM(t,0,n),e),ZM(JM(t,n),e),e)},tN=function(t,e){var i,n,r=t.length,o=1;while(o<r){n=o,i=t[o];while(n&&e(t[n-1],i)>0)t[n]=t[--n];n!==o++&&(t[n]=i)}return t},eN=function(t,e,i,n){var r=e.length,o=i.length,s=0,a=0;while(s<r||a<o)t[s+a]=s<r&&a<o?n(e[s],i[a])<=0?e[s++]:i[a++]:s<r?e[s++]:i[a++];return t},iN=ZM,nN=_t,rN=nN.match(/firefox\/(\d+)/i),oN=!!rN&&+rN[1],sN=_t,aN=/MSIE|Trident/.test(sN),lN=_t,hN=lN.match(/AppleWebKit\/(\d+)\./),uN=!!hN&&+hN[1],cN=ln,dN=S,pN=qt,fN=ge,mN=Rn,vN=Gb,gN=to,yN=d,bN=iN,wN=af,kN=oN,_N=aN,xN=Ot,SN=uN,CN=[],DN=dN(CN.sort),TN=dN(CN.push),EN=yN((function(){CN.sort(void 0)})),ON=yN((function(){CN.sort(null)})),AN=wN("sort"),PN=!yN((function(){if(xN)return xN<70;if(!(kN&&kN>3)){if(_N)return!0;if(SN)return SN<603;var t,e,i,n,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)CN.push({k:e+n,v:i})}for(CN.sort((function(t,e){return e.v-t.v})),n=0;n<CN.length;n++)e=CN[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}})),IN=EN||!ON||!AN||!PN,MN=function(t){return function(e,i){return void 0===i?-1:void 0===e?1:void 0!==t?+t(e,i)||0:gN(e)>gN(i)?1:-1}};cN({target:"Array",proto:!0,forced:IN},{sort:function(t){void 0!==t&&pN(t);var e=fN(this);if(PN)return void 0===t?DN(e):DN(e,t);var i,n,r=[],o=mN(e);for(n=0;n<o;n++)n in e&&TN(r,e[n]);bN(r,MN(t)),i=mN(r),n=0;while(n<i)e[n]=r[n++];while(n<o)vN(e,n++);return e}});var NN=Gp,RN=NN("Array","sort"),jN=kt,FN=RN,LN=Array.prototype,BN=function(t){var e=t.sort;return t===LN||jN(LN,t)&&e===LN.sort?FN:e},zN=BN,GN=zN,HN=GN,WN=l(HN),YN=Gp,VN=YN("Array","values"),UN=VN,XN=UN,qN=er,KN=ke,$N=kt,JN=XN,QN=Array.prototype,ZN={DOMTokenList:!0,NodeList:!0},tR=function(t){var e=t.values;return t===QN||$N(QN,t)&&e===QN.values||KN(ZN,qN(t))?JN:e},eR=tR,iR=l(eR),nR=ip,rR=l(nR),oR=Gp,sR=oR("Array","entries"),aR=sR,lR=aR,hR=er,uR=ke,cR=kt,dR=lR,pR=Array.prototype,fR={DOMTokenList:!0,NodeList:!0},mR=function(t){var e=t.entries;return t===pR||cR(pR,t)&&e===pR.entries||uR(fR,hR(t))?dR:e},vR=mR,gR=l(vR);let yR;const bR=new Uint8Array(16);function wR(){if(!yR&&(yR="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!yR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yR(bR)}const kR=[];for(let i=0;i<256;++i)kR.push((i+256).toString(16).slice(1));function _R(t,e=0){return kR[t[e+0]]+kR[t[e+1]]+kR[t[e+2]]+kR[t[e+3]]+"-"+kR[t[e+4]]+kR[t[e+5]]+"-"+kR[t[e+6]]+kR[t[e+7]]+"-"+kR[t[e+8]]+kR[t[e+9]]+"-"+kR[t[e+10]]+kR[t[e+11]]+kR[t[e+12]]+kR[t[e+13]]+kR[t[e+14]]+kR[t[e+15]]}const xR="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var SR={randomUUID:xR};function CR(t,e,i){if(SR.randomUUID&&!e&&!t)return SR.randomUUID();t=t||{};const n=t.random||(t.rng||wR)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(let t=0;t<16;++t)e[i+t]=n[t];return e}return _R(n)}function DR(t){return"string"===typeof t||"number"===typeof t}var TR=function(){function t(e){s(this,t),Sp(this,"_queue",[]),Sp(this,"_timeout",null),Sp(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}return xp(t,[{key:"setOptions",value:function(t){t&&"undefined"!==typeof t.delay&&(this.delay=t.delay),t&&"undefined"!==typeof t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,i=0;i<e.length;i++){var n=e[i];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var i=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];i.queue({args:e,fn:n,context:this})}}},{key:"queue",value:function(t){"function"===typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"===typeof this.delay&&(this._timeout=Ak((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;xb(t=cw(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,i){var n=new t(i);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var r=[{name:"flush",original:void 0}];if(i&&i.replace)for(var o=0;o<i.replace.length;o++){var s=i.replace[o];r.push({name:s,original:e[s]}),n.replace(e,s)}return n._extended={object:e,methods:r},n}}]),t}(),ER=function(){function t(){s(this,t),Sp(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Sp(this,"subscribe",t.prototype.on),Sp(this,"unsubscribe",t.prototype.off)}return xp(t,[{key:"_trigger",value:function(t,e,i){var n,r;if("*"===t)throw new Error("Cannot trigger event *");xb(n=Ey(r=[]).call(r,vy(this._subscribers[t]),vy(this._subscribers["*"]))).call(n,(function(n){n(t,e,null!=i?i:null)}))}},{key:"on",value:function(t,e){"function"===typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var i;this._subscribers[t]=Gf(i=this._subscribers[t]).call(i,(function(t){return t!==e}))}}]),t}(),OR=JI,AR=mM;OR("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),AR);var PR=ft,IR=PR.Set,MR=IR,NR=MR,RR=NR,jR=l(RR),FR=Qm,LR=FR,BR=LR,zR=BR,GR=zR,HR=GR,WR=HR,YR=WR,VR=YR,UR=VR,XR=l(UR);function qR(t,e){var i="undefined"!==typeof yy&&Lv(t)||t["@@iterator"];if(!i){if(Xy(t)||(i=KR(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function KR(t,e){var i;if(t){if("string"===typeof t)return $R(t,e);var n=Ay(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Dv(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$R(t,e):void 0}}function $R(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var JR=function(t){function e(t){s(this,e),this._pairs=t}return xp(e,[{key:t,value:tI.mark((function t(){var e,i,n,r,o;return tI.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=qR(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=dy(i.value,2),r=n[0],o=n[1],t.next=7,[r,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:tI.mark((function t(){var e,i,n,r,o;return tI.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=qR(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=dy(i.value,2),r=n[0],o=n[1],t.next=7,[r,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:tI.mark((function t(){var e,i,n,r;return tI.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=qR(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=dy(i.value,1),r=n[0],t.next=7,r;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:tI.mark((function t(){var e,i,n,r;return tI.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=qR(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=dy(i.value,2),r=n[1],t.next=7,r;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return em(t=vy(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return em(t=vy(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return vy(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=Qw(null),i=qR(this._pairs);try{for(i.s();!(t=i.n()).done;){var n=dy(t.value,2),r=n[0],o=n[1];e[r]=o}}catch(s){i.e(s)}finally{i.f()}return e}},{key:"toMap",value:function(){return new xM(this._pairs)}},{key:"toIdSet",value:function(){return new jR(this.toIdArray())}},{key:"toItemSet",value:function(){return new jR(this.toItemArray())}},{key:"cache",value:function(){return new e(vy(this._pairs))}},{key:"distinct",value:function(t){var e,i=new jR,n=qR(this._pairs);try{for(n.s();!(e=n.n()).done;){var r=dy(e.value,2),o=r[0],s=r[1];i.add(t(s,o))}}catch(a){n.e(a)}finally{n.f()}return i}},{key:"filter",value:function(t){var i=this._pairs;return new e({[rR](){return tI.mark((function e(){var n,r,o,s,a;return tI.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=qR(i),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=10;break}if(o=dy(r.value,2),s=o[0],a=o[1],!t(a,s)){e.next=8;break}return e.next=8,[s,a];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](1),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))()}})}},{key:"forEach",value:function(t){var e,i=qR(this._pairs);try{for(i.s();!(e=i.n()).done;){var n=dy(e.value,2),r=n[0],o=n[1];t(o,r)}}catch(s){i.e(s)}finally{i.f()}}},{key:"map",value:function(t){var i=this._pairs;return new e({[rR](){return tI.mark((function e(){var n,r,o,s,a;return tI.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=qR(i),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return o=dy(r.value,2),s=o[0],a=o[1],e.next=7,[s,t(a,s)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))()}})}},{key:"max",value:function(t){var e=XR(this._pairs),i=e.next();if(i.done)return null;var n=i.value[1],r=t(i.value[1],i.value[0]);while(!(i=e.next()).done){var o=dy(i.value,2),s=o[0],a=o[1],l=t(a,s);l>r&&(r=l,n=a)}return n}},{key:"min",value:function(t){var e=XR(this._pairs),i=e.next();if(i.done)return null;var n=i.value[1],r=t(i.value[1],i.value[0]);while(!(i=e.next()).done){var o=dy(i.value,2),s=o[0],a=o[1],l=t(a,s);l<r&&(r=l,n=a)}return n}},{key:"reduce",value:function(t,e){var i,n=qR(this._pairs);try{for(n.s();!(i=n.n()).done;){var r=dy(i.value,2),o=r[0],s=r[1];e=t(e,s,o)}}catch(a){n.e(a)}finally{n.f()}return e}},{key:"sort",value:function(t){var i=this;return new e({[rR]:function(){var e;return XR(WN(e=vy(i._pairs)).call(e,(function(e,i){var n=dy(e,2),r=n[0],o=n[1],s=dy(i,2),a=s[0],l=s[1];return t(o,l,r,a)})))}})}}]),e}(rR);function QR(t,e){var i=rb(t);if(XS){var n=XS(t);e&&(n=Gf(n).call(n,(function(e){return lC(t,e).enumerable}))),i.push.apply(i,n)}return i}function ZR(t){for(var e=1;e<arguments.length;e++){var i,n,r=null!=arguments[e]?arguments[e]:{};e%2?xb(i=QR(Object(r),!0)).call(i,(function(e){Sp(t,e,r[e])})):wC?IC(t,wC(r)):xb(n=QR(Object(r))).call(n,(function(e){NC(t,e,lC(r,e))}))}return t}function tj(t,e){var i="undefined"!==typeof yy&&Lv(t)||t["@@iterator"];if(!i){if(Xy(t)||(i=ej(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function ej(t,e){var i;if(t){if("string"===typeof t)return ij(t,e);var n=Ay(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Dv(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ij(t,e):void 0}}function ij(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function nj(t){var e=rj();return function(){var i,n=mD(t);if(e){var r=mD(this).constructor;i=GS(n,arguments,r)}else i=n.apply(this,arguments);return lD(this,i)}}function rj(){if("undefined"===typeof Reflect||!GS)return!1;if(GS.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(GS(Boolean,[],(function(){}))),!0}catch(t){return!1}}function oj(t,e){return null==t[e]&&(t[e]=CR()),t}var sj=function(t){aD(i,t);var e=nj(i);function i(t,n){var r;return s(this,i),r=e.call(this),Sp(RC(r),"_queue",null),t&&!Xy(t)&&(n=t,t=[]),r._options=n||{},r._data=new xM,r.length=0,r._idProp=r._options.fieldId||"id",t&&t.length&&r.add(t),r.setOptions(n),r}return xp(i,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=TR.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===typeof t.queue&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var i,n=this,r=[];if(Xy(t)){var o=em(t).call(t,(function(t){return t[n._idProp]}));if(FM(o).call(o,(function(t){return n._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var s=0,a=t.length;s<a;s++)i=this._addItem(t[s]),r.push(i)}else{if(!t||"object"!==typeof t)throw new Error("Unknown dataType");i=this._addItem(t),r.push(i)}return r.length&&this._trigger("add",{items:r},e),r}},{key:"update",value:function(t,e){var i=this,n=[],r=[],o=[],s=[],a=this._idProp,l=function(t){var e=t[a];if(null!=e&&i._data.has(e)){var l=t,h=Iw({},i._data.get(e)),u=i._updateItem(l);r.push(u),s.push(l),o.push(h)}else{var c=i._addItem(t);n.push(c)}};if(Xy(t))for(var h=0,u=t.length;h<u;h++)t[h]&&"object"===typeof t[h]?l(t[h]):console.warn("Ignoring input item, which is not an object at index "+h);else{if(!t||"object"!==typeof t)throw new Error("Unknown dataType");l(t)}if(n.length&&this._trigger("add",{items:n},e),r.length){var c={items:r,oldData:o,data:s};this._trigger("update",c,e)}return Ey(n).call(n,r)}},{key:"updateOnly",value:function(t,e){var i,n=this;Xy(t)||(t=[t]);var r=em(i=em(t).call(t,(function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(i,(function(t){var e=t.oldData,i=t.update,r=e[n._idProp],o=lS(e,i);return n._data.set(r,o),{id:r,oldData:e,updatedData:o}}));if(r.length){var o={items:em(r).call(r,(function(t){return t.id})),oldData:em(r).call(r,(function(t){return t.oldData})),data:em(r).call(r,(function(t){return t.updatedData}))};return this._trigger("update",o,e),o.items}return[]}},{key:"get",value:function(t,e){var i=void 0,n=void 0,r=void 0;DR(t)?(i=t,r=e):Xy(t)?(n=t,r=e):r=t;var o,s=r&&"Object"===r.returnType?"Object":"Array",a=r&&Gf(r),l=[],h=void 0,u=void 0,c=void 0;if(null!=i)h=this._data.get(i),h&&a&&!a(h)&&(h=void 0);else if(null!=n)for(var d=0,p=n.length;d<p;d++)h=this._data.get(n[d]),null==h||a&&!a(h)||l.push(h);else{var f;u=vy($M(f=this._data).call(f));for(var m=0,v=u.length;m<v;m++)c=u[m],h=this._data.get(c),null==h||a&&!a(h)||l.push(h)}if(r&&r.order&&void 0==i&&this._sort(l,r.order),r&&r.fields){var g=r.fields;if(void 0!=i&&null!=h)h=this._filterFields(h,g);else for(var y=0,b=l.length;y<b;y++)l[y]=this._filterFields(l[y],g)}if("Object"==s){for(var w={},k=0,_=l.length;k<_;k++){var x=l[k],S=x[this._idProp];w[S]=x}return w}return null!=i?null!==(o=h)&&void 0!==o?o:null:l}},{key:"getIds",value:function(t){var e=this._data,i=t&&Gf(t),n=t&&t.order,r=vy($M(e).call(e)),o=[];if(i)if(n){for(var s=[],a=0,l=r.length;a<l;a++){var h=r[a],u=this._data.get(h);null!=u&&i(u)&&s.push(u)}this._sort(s,n);for(var c=0,d=s.length;c<d;c++)o.push(s[c][this._idProp])}else for(var p=0,f=r.length;p<f;p++){var m=r[p],v=this._data.get(m);null!=v&&i(v)&&o.push(v[this._idProp])}else if(n){for(var g=[],y=0,b=r.length;y<b;y++){var w=r[y];g.push(e.get(w))}this._sort(g,n);for(var k=0,_=g.length;k<_;k++)o.push(g[k][this._idProp])}else for(var x=0,S=r.length;x<S;x++){var C=r[x],D=e.get(C);null!=D&&o.push(D[this._idProp])}return o}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var i=e&&Gf(e),n=this._data,r=vy($M(n).call(n));if(e&&e.order)for(var o=this.get(e),s=0,a=o.length;s<a;s++){var l=o[s],h=l[this._idProp];t(l,h)}else for(var u=0,c=r.length;u<c;u++){var d=r[u],p=this._data.get(d);null==p||i&&!i(p)||t(p,d)}}},{key:"map",value:function(t,e){for(var i=e&&Gf(e),n=[],r=this._data,o=vy($M(r).call(r)),s=0,a=o.length;s<a;s++){var l=o[s],h=this._data.get(l);null==h||i&&!i(h)||n.push(t(h,l))}return e&&e.order&&this._sort(n,e.order),n}},{key:"_filterFields",value:function(t,e){var i;return t?Tf(i=Xy(e)?e:rb(e)).call(i,(function(e,i){return e[i]=t[i],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"===typeof e){var i=e;WN(t).call(t,(function(t,e){var n=t[i],r=e[i];return n>r?1:n<r?-1:0}))}else{if("function"!==typeof e)throw new TypeError("Order must be a function or a string");WN(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var i=[],n=[],r=Xy(t)?t:[t],o=0,s=r.length;o<s;o++){var a=this._remove(r[o]);if(a){var l=a[this._idProp];null!=l&&(i.push(l),n.push(a))}}return i.length&&this._trigger("remove",{items:i,oldData:n},e),i}},{key:"_remove",value:function(t){var e;if(DR(t)?e=t:t&&"object"===typeof t&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var i=this._data.get(e)||null;return this._data.delete(e),--this.length,i}return null}},{key:"clear",value:function(t){for(var e,i=vy($M(e=this._data).call(e)),n=[],r=0,o=i.length;r<o;r++)n.push(this._data.get(i[r]));return this._data.clear(),this.length=0,this._trigger("remove",{items:i,oldData:n},t),i}},{key:"max",value:function(t){var e,i,n=null,r=null,o=tj(iR(e=this._data).call(e));try{for(o.s();!(i=o.n()).done;){var s=i.value,a=s[t];"number"===typeof a&&(null==r||a>r)&&(n=s,r=a)}}catch(l){o.e(l)}finally{o.f()}return n||null}},{key:"min",value:function(t){var e,i,n=null,r=null,o=tj(iR(e=this._data).call(e));try{for(o.s();!(i=o.n()).done;){var s=i.value,a=s[t];"number"===typeof a&&(null==r||a<r)&&(n=s,r=a)}}catch(l){o.e(l)}finally{o.f()}return n||null}},{key:"distinct",value:function(t){for(var e=this._data,i=vy($M(e).call(e)),n=[],r=0,o=0,s=i.length;o<s;o++){for(var a=i[o],l=e.get(a),h=l[t],u=!1,c=0;c<r;c++)if(n[c]==h){u=!0;break}u||void 0===h||(n[r]=h,r++)}return n}},{key:"_addItem",value:function(t){var e=oj(t,this._idProp),i=e[this._idProp];if(this._data.has(i))throw new Error("Cannot add item: item with id "+i+" already exists");return this._data.set(i,e),++this.length,i}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+ok(t)+")");var i=this._data.get(e);if(!i)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,ZR(ZR({},i),t)),e}},{key:"stream",value:function(t){if(t){var e=this._data;return new JR({[rR](){return tI.mark((function i(){var n,r,o,s;return tI.wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=tj(t),i.prev=1,n.s();case 3:if((r=n.n()).done){i.next=11;break}if(o=r.value,s=e.get(o),null==s){i.next=9;break}return i.next=9,[o,s];case 9:i.next=3;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i["catch"](1),n.e(i.t0);case 16:return i.prev=16,n.f(),i.finish(16);case 19:case"end":return i.stop()}}),i,null,[[1,13,16,19]])}))()}})}var i;return new JR({[rR]:Jp(i=gR(this._data)).call(i,this._data)})}}]),i}(ER);function aj(t,e){var i="undefined"!==typeof yy&&Lv(t)||t["@@iterator"];if(!i){if(Xy(t)||(i=lj(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function lj(t,e){var i;if(t){if("string"===typeof t)return hj(t,e);var n=Ay(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Dv(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hj(t,e):void 0}}function hj(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function uj(t){var e=cj();return function(){var i,n=mD(t);if(e){var r=mD(this).constructor;i=GS(n,arguments,r)}else i=n.apply(this,arguments);return lD(this,i)}}function cj(){if("undefined"===typeof Reflect||!GS)return!1;if(GS.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(GS(Boolean,[],(function(){}))),!0}catch(t){return!1}}var dj=function(t){aD(i,t);var e=uj(i);function i(t,n){var r,o;return s(this,i),o=e.call(this),Sp(RC(o),"length",0),Sp(RC(o),"_ids",new jR),o._options=n||{},o._listener=Jp(r=o._onEvent).call(r,RC(o)),o.setData(t),o}return xp(i,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:Gf(this._options)}),i=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:i})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:Gf(this._options)}),r=0,o=n.length;r<o;r++){var s=n[r];this._ids.add(s)}this.length=n.length,this._trigger("add",{items:n})}else this._data=new sj;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:Gf(this._options)}),e=vy(this._ids),i={},n=[],r=[],o=[],s=0,a=t.length;s<a;s++){var l=t[s];i[l]=!0,this._ids.has(l)||(n.push(l),this._ids.add(l))}for(var h=0,u=e.length;h<u;h++){var c=e[h],d=this._data.get(c);null==d?console.error("If you see this, report it please."):i[c]||(r.push(c),o.push(d),this._ids.delete(c))}this.length+=n.length-r.length,n.length&&this._trigger("add",{items:n}),r.length&&this._trigger("remove",{items:r,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var i,n=null;DR(t)||Xy(t)?(n=t,i=e):i=t;var r=Iw({},this._options,i),o=Gf(this._options),s=i&&Gf(i);return o&&s&&(r.filter=function(t){return o(t)&&s(t)}),null==n?this._data.get(r):this._data.get(n,r)}},{key:"getIds",value:function(t){if(this._data.length){var e,i=Gf(this._options),n=null!=t?Gf(t):null;return e=n?i?function(t){return i(t)&&n(t)}:n:i,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var i,n,r=Gf(this._options),o=e&&Gf(e);n=o?r?function(t){return r(t)&&o(t)}:o:r,xb(i=this._data).call(i,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var i,n,r=Gf(this._options),o=e&&Gf(e);return n=o?r?function(t){return r(t)&&o(t)}:o:r,em(i=this._data).call(i,t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||{[rR]:Jp(e=$M(this._ids)).call(e,this._ids)})}},{key:"dispose",value:function(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);var e,n="This data view has already been disposed of.",r={get:function(){throw new Error(n)},set:function(){throw new Error(n)},configurable:!1},o=aj(Vy(i.prototype));try{for(o.s();!(e=o.n()).done;){var s=e.value;NC(this,s,r)}}catch(a){o.e(a)}finally{o.f()}}},{key:"_onEvent",value:function(t,e,i){if(e&&e.items&&this._data){var n=e.items,r=[],o=[],s=[],a=[],l=[],h=[];switch(t){case"add":for(var u=0,c=n.length;u<c;u++){var d=n[u],p=this.get(d);p&&(this._ids.add(d),r.push(d))}break;case"update":for(var f=0,m=n.length;f<m;f++){var v=n[f],g=this.get(v);g?this._ids.has(v)?(o.push(v),l.push(e.data[f]),a.push(e.oldData[f])):(this._ids.add(v),r.push(v)):this._ids.has(v)&&(this._ids.delete(v),s.push(v),h.push(e.oldData[f]))}break;case"remove":for(var y=0,b=n.length;y<b;y++){var w=n[y];this._ids.has(w)&&(this._ids.delete(w),s.push(w),h.push(e.oldData[y]))}break}this.length+=r.length-s.length,r.length&&this._trigger("add",{items:r},i),o.length&&this._trigger("update",{items:o,oldData:a,data:l},i),s.length&&this._trigger("remove",{items:s,oldData:h},i)}}}]),i}(ER);function pj(t,e){return"object"===typeof e&&null!==e&&t===e.idProp&&"function"===typeof e.add&&"function"===typeof e.clear&&"function"===typeof e.distinct&&"function"===typeof xb(e)&&"function"===typeof e.get&&"function"===typeof e.getDataSet&&"function"===typeof e.getIds&&"number"===typeof e.length&&"function"===typeof em(e)&&"function"===typeof e.max&&"function"===typeof e.min&&"function"===typeof e.off&&"function"===typeof e.on&&"function"===typeof e.remove&&"function"===typeof e.setOptions&&"function"===typeof e.stream&&"function"===typeof e.update&&"function"===typeof e.updateOnly}function fj(t,e){return"object"===typeof e&&null!==e&&t===e.idProp&&"function"===typeof xb(e)&&"function"===typeof e.get&&"function"===typeof e.getDataSet&&"function"===typeof e.getIds&&"number"===typeof e.length&&"function"===typeof em(e)&&"function"===typeof e.off&&"function"===typeof e.on&&"function"===typeof e.stream&&pj(t,e.getDataSet())}var mj=n(9148),vj=n.n(mj),gj="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function yj(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}var bj=function(t){return t&&t.Math===Math&&t},wj=bj("object"==typeof globalThis&&globalThis)||bj("object"==typeof window&&window)||bj("object"==typeof self&&self)||bj("object"==typeof gj&&gj)||function(){return this}()||gj||Function("return this")(),kj=function(t){try{return!!t()}catch(dpt){return!0}},_j=kj,xj=!_j((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),Sj=xj,Cj=Function.prototype,Dj=Cj.apply,Tj=Cj.call,Ej="object"==typeof Reflect&&Reflect.apply||(Sj?Tj.bind(Dj):function(){return Tj.apply(Dj,arguments)}),Oj=xj,Aj=Function.prototype,Pj=Aj.call,Ij=Oj&&Aj.bind.bind(Pj,Pj),Mj=Oj?Ij:function(t){return function(){return Pj.apply(t,arguments)}},Nj=Mj,Rj=Nj({}.toString),jj=Nj("".slice),Fj=function(t){return jj(Rj(t),8,-1)},Lj=Fj,Bj=Mj,zj=function(t){if("Function"===Lj(t))return Bj(t)},Gj="object"==typeof document&&document.all,Hj="undefined"==typeof Gj&&void 0!==Gj,Wj={all:Gj,IS_HTMLDDA:Hj},Yj=Wj,Vj=Yj.all,Uj=Yj.IS_HTMLDDA?function(t){return"function"==typeof t||t===Vj}:function(t){return"function"==typeof t},Xj={},qj=kj,Kj=!qj((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),$j=xj,Jj=Function.prototype.call,Qj=$j?Jj.bind(Jj):function(){return Jj.apply(Jj,arguments)},Zj={},tF={}.propertyIsEnumerable,eF=Object.getOwnPropertyDescriptor,iF=eF&&!tF.call({1:2},1);Zj.f=iF?function(t){var e=eF(this,t);return!!e&&e.enumerable}:tF;var nF,rF,oF=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},sF=Mj,aF=kj,lF=Fj,hF=Object,uF=sF("".split),cF=aF((function(){return!hF("z").propertyIsEnumerable(0)}))?function(t){return"String"===lF(t)?uF(t,""):hF(t)}:hF,dF=function(t){return null===t||void 0===t},pF=dF,fF=TypeError,mF=function(t){if(pF(t))throw new fF("Can't call method on "+t);return t},vF=cF,gF=mF,yF=function(t){return vF(gF(t))},bF=Uj,wF=Wj,kF=wF.all,_F=wF.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:bF(t)||t===kF}:function(t){return"object"==typeof t?null!==t:bF(t)},xF={},SF=xF,CF=wj,DF=Uj,TF=function(t){return DF(t)?t:void 0},EF=function(t,e){return arguments.length<2?TF(SF[t])||TF(CF[t]):SF[t]&&SF[t][e]||CF[t]&&CF[t][e]},OF=Mj,AF=OF({}.isPrototypeOf),PF="undefined"!=typeof navigator&&String(navigator.userAgent)||"",IF=wj,MF=PF,NF=IF.process,RF=IF.Deno,jF=NF&&NF.versions||RF&&RF.version,FF=jF&&jF.v8;FF&&(nF=FF.split("."),rF=nF[0]>0&&nF[0]<4?1:+(nF[0]+nF[1])),!rF&&MF&&(nF=MF.match(/Edge\/(\d+)/),(!nF||nF[1]>=74)&&(nF=MF.match(/Chrome\/(\d+)/),nF&&(rF=+nF[1])));var LF=rF,BF=LF,zF=kj,GF=wj,HF=GF.String,WF=!!Object.getOwnPropertySymbols&&!zF((function(){var t=Symbol("symbol detection");return!HF(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&BF&&BF<41})),YF=WF,VF=YF&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,UF=EF,XF=Uj,qF=AF,KF=VF,$F=Object,JF=KF?function(t){return"symbol"==typeof t}:function(t){var e=UF("Symbol");return XF(e)&&qF(e.prototype,$F(t))},QF=String,ZF=function(t){try{return QF(t)}catch(dpt){return"Object"}},tL=Uj,eL=ZF,iL=TypeError,nL=function(t){if(tL(t))return t;throw new iL(eL(t)+" is not a function")},rL=nL,oL=dF,sL=function(t,e){var i=t[e];return oL(i)?void 0:rL(i)},aL=Qj,lL=Uj,hL=_F,uL=TypeError,cL=function(t,e){var i,n;if("string"===e&&lL(i=t.toString)&&!hL(n=aL(i,t)))return n;if(lL(i=t.valueOf)&&!hL(n=aL(i,t)))return n;if("string"!==e&&lL(i=t.toString)&&!hL(n=aL(i,t)))return n;throw new uL("Can't convert object to primitive value")},dL={exports:{}},pL=wj,fL=Object.defineProperty,mL=function(t,e){try{fL(pL,t,{value:e,configurable:!0,writable:!0})}catch(dpt){pL[t]=e}return e},vL=wj,gL=mL,yL="__core-js_shared__",bL=vL[yL]||gL(yL,{}),wL=bL,kL=wL;(dL.exports=function(t,e){return kL[t]||(kL[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var _L=dL.exports,xL=mF,SL=Object,CL=function(t){return SL(xL(t))},DL=Mj,TL=CL,EL=DL({}.hasOwnProperty),OL=Object.hasOwn||function(t,e){return EL(TL(t),e)},AL=Mj,PL=0,IL=Math.random(),ML=AL(1..toString),NL=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ML(++PL+IL,36)},RL=wj,jL=_L,FL=OL,LL=NL,BL=WF,zL=VF,GL=RL.Symbol,HL=jL("wks"),WL=zL?GL["for"]||GL:GL&&GL.withoutSetter||LL,YL=function(t){return FL(HL,t)||(HL[t]=BL&&FL(GL,t)?GL[t]:WL("Symbol."+t)),HL[t]},VL=Qj,UL=_F,XL=JF,qL=sL,KL=cL,$L=YL,JL=TypeError,QL=$L("toPrimitive"),ZL=function(t,e){if(!UL(t)||XL(t))return t;var i,n=qL(t,QL);if(n){if(void 0===e&&(e="default"),i=VL(n,t,e),!UL(i)||XL(i))return i;throw new JL("Can't convert object to primitive value")}return void 0===e&&(e="number"),KL(t,e)},tB=ZL,eB=JF,iB=function(t){var e=tB(t,"string");return eB(e)?e:e+""},nB=wj,rB=_F,oB=nB.document,sB=rB(oB)&&rB(oB.createElement),aB=function(t){return sB?oB.createElement(t):{}},lB=Kj,hB=kj,uB=aB,cB=!lB&&!hB((function(){return 7!==Object.defineProperty(uB("div"),"a",{get:function(){return 7}}).a})),dB=Kj,pB=Qj,fB=Zj,mB=oF,vB=yF,gB=iB,yB=OL,bB=cB,wB=Object.getOwnPropertyDescriptor;Xj.f=dB?wB:function(t,e){if(t=vB(t),e=gB(e),bB)try{return wB(t,e)}catch(dpt){}if(yB(t,e))return mB(!pB(fB.f,t,e),t[e])};var kB=kj,_B=Uj,xB=/#|\.prototype\./,SB=function(t,e){var i=DB[CB(t)];return i===EB||i!==TB&&(_B(e)?kB(e):!!e)},CB=SB.normalize=function(t){return String(t).replace(xB,".").toLowerCase()},DB=SB.data={},TB=SB.NATIVE="N",EB=SB.POLYFILL="P",OB=SB,AB=zj,PB=nL,IB=xj,MB=AB(AB.bind),NB=function(t,e){return PB(t),void 0===e?t:IB?MB(t,e):function(){return t.apply(e,arguments)}},RB={},jB=Kj,FB=kj,LB=jB&&FB((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),BB=_F,zB=String,GB=TypeError,HB=function(t){if(BB(t))return t;throw new GB(zB(t)+" is not an object")},WB=Kj,YB=cB,VB=LB,UB=HB,XB=iB,qB=TypeError,KB=Object.defineProperty,$B=Object.getOwnPropertyDescriptor,JB="enumerable",QB="configurable",ZB="writable";RB.f=WB?VB?function(t,e,i){if(UB(t),e=XB(e),UB(i),"function"===typeof t&&"prototype"===e&&"value"in i&&ZB in i&&!i[ZB]){var n=$B(t,e);n&&n[ZB]&&(t[e]=i.value,i={configurable:QB in i?i[QB]:n[QB],enumerable:JB in i?i[JB]:n[JB],writable:!1})}return KB(t,e,i)}:KB:function(t,e,i){if(UB(t),e=XB(e),UB(i),YB)try{return KB(t,e,i)}catch(dpt){}if("get"in i||"set"in i)throw new qB("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var tz=Kj,ez=RB,iz=oF,nz=tz?function(t,e,i){return ez.f(t,e,iz(1,i))}:function(t,e,i){return t[e]=i,t},rz=wj,oz=Ej,sz=zj,az=Uj,lz=Xj.f,hz=OB,uz=xF,cz=NB,dz=nz,pz=OL,fz=function(t){var e=function(i,n,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,r)}return oz(t,this,arguments)};return e.prototype=t.prototype,e},mz=function(t,e){var i,n,r,o,s,a,l,h,u,c=t.target,d=t.global,p=t.stat,f=t.proto,m=d?rz:p?rz[c]:(rz[c]||{}).prototype,v=d?uz:uz[c]||dz(uz,c,{})[c],g=v.prototype;for(o in e)i=hz(d?o:c+(p?".":"#")+o,t.forced),n=!i&&m&&pz(m,o),a=v[o],n&&(t.dontCallGetSet?(u=lz(m,o),l=u&&u.value):l=m[o]),s=n&&l?l:e[o],n&&typeof a==typeof s||(h=t.bind&&n?cz(s,rz):t.wrap&&n?fz(s):f&&az(s)?sz(s):s,(t.sham||s&&s.sham||a&&a.sham)&&dz(h,"sham",!0),dz(v,o,h),f&&(r=c+"Prototype",pz(uz,r)||dz(uz,r,{}),dz(uz[r],o,s),t.real&&g&&(i||!g[o])&&dz(g,o,s)))},vz=Mj,gz=vz([].slice),yz=Mj,bz=nL,wz=_F,kz=OL,_z=gz,xz=xj,Sz=Function,Cz=yz([].concat),Dz=yz([].join),Tz={},Ez=function(t,e,i){if(!kz(Tz,e)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";Tz[e]=Sz("C,a","return new C("+Dz(n,",")+")")}return Tz[e](t,i)},Oz=xz?Sz.bind:function(t){var e=bz(this),i=e.prototype,n=_z(arguments,1),r=function(){var i=Cz(n,_z(arguments));return this instanceof r?Ez(e,i.length,i):e.apply(t,i)};return wz(i)&&(r.prototype=i),r},Az=YL,Pz=Az("toStringTag"),Iz={};Iz[Pz]="z";var Mz="[object z]"===String(Iz),Nz=Mz,Rz=Uj,jz=Fj,Fz=YL,Lz=Fz("toStringTag"),Bz=Object,zz="Arguments"===jz(function(){return arguments}()),Gz=function(t,e){try{return t[e]}catch(dpt){}},Hz=Nz?jz:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=Gz(e=Bz(t),Lz))?i:zz?jz(e):"Object"===(n=jz(e))&&Rz(e.callee)?"Arguments":n},Wz=Mj,Yz=Uj,Vz=wL,Uz=Wz(Function.toString);Yz(Vz.inspectSource)||(Vz.inspectSource=function(t){return Uz(t)});var Xz=Vz.inspectSource,qz=Mj,Kz=kj,$z=Uj,Jz=Hz,Qz=EF,Zz=Xz,tG=function(){},eG=[],iG=Qz("Reflect","construct"),nG=/^\s*(?:class|function)\b/,rG=qz(nG.exec),oG=!nG.test(tG),sG=function(t){if(!$z(t))return!1;try{return iG(tG,eG,t),!0}catch(dpt){return!1}},aG=function(t){if(!$z(t))return!1;switch(Jz(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oG||!!rG(nG,Zz(t))}catch(dpt){return!0}};aG.sham=!0;var lG=!iG||Kz((function(){var t;return sG(sG.call)||!sG(Object)||!sG((function(){t=!0}))||t}))?aG:sG,hG=lG,uG=ZF,cG=TypeError,dG=function(t){if(hG(t))return t;throw new cG(uG(t)+" is not a constructor")},pG={},fG=Math.ceil,mG=Math.floor,vG=Math.trunc||function(t){var e=+t;return(e>0?mG:fG)(e)},gG=vG,yG=function(t){var e=+t;return e!==e||0===e?0:gG(e)},bG=yG,wG=Math.max,kG=Math.min,_G=function(t,e){var i=bG(t);return i<0?wG(i+e,0):kG(i,e)},xG=yG,SG=Math.min,CG=function(t){return t>0?SG(xG(t),9007199254740991):0},DG=CG,TG=function(t){return DG(t.length)},EG=yF,OG=_G,AG=TG,PG=function(t){return function(e,i,n){var r,o=EG(e),s=AG(o),a=OG(n,s);if(t&&i!==i){while(s>a)if(r=o[a++],r!==r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},IG={includes:PG(!0),indexOf:PG(!1)},MG={},NG=Mj,RG=OL,jG=yF,FG=IG.indexOf,LG=MG,BG=NG([].push),zG=function(t,e){var i,n=jG(t),r=0,o=[];for(i in n)!RG(LG,i)&&RG(n,i)&&BG(o,i);while(e.length>r)RG(n,i=e[r++])&&(~FG(o,i)||BG(o,i));return o},GG=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],HG=zG,WG=GG,YG=Object.keys||function(t){return HG(t,WG)},VG=Kj,UG=LB,XG=RB,qG=HB,KG=yF,$G=YG;pG.f=VG&&!UG?Object.defineProperties:function(t,e){qG(t);var i,n=KG(e),r=$G(e),o=r.length,s=0;while(o>s)XG.f(t,i=r[s++],n[i]);return t};var JG,QG=EF,ZG=QG("document","documentElement"),tH=_L,eH=NL,iH=tH("keys"),nH=function(t){return iH[t]||(iH[t]=eH(t))},rH=HB,oH=pG,sH=GG,aH=MG,lH=ZG,hH=aB,uH=nH,cH=">",dH="<",pH="prototype",fH="script",mH=uH("IE_PROTO"),vH=function(){},gH=function(t){return dH+fH+cH+t+dH+"/"+fH+cH},yH=function(t){t.write(gH("")),t.close();var e=t.parentWindow.Object;return t=null,e},bH=function(){var t,e=hH("iframe"),i="java"+fH+":";return e.style.display="none",lH.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write(gH("document.F=Object")),t.close(),t.F},wH=function(){try{JG=new ActiveXObject("htmlfile")}catch(dpt){}wH="undefined"!=typeof document?document.domain&&JG?yH(JG):bH():yH(JG);var t=sH.length;while(t--)delete wH[pH][sH[t]];return wH()};aH[mH]=!0;var kH=Object.create||function(t,e){var i;return null!==t?(vH[pH]=rH(t),i=new vH,vH[pH]=null,i[mH]=t):i=wH(),void 0===e?i:oH.f(i,e)},_H=mz,xH=EF,SH=Ej,CH=Oz,DH=dG,TH=HB,EH=_F,OH=kH,AH=kj,PH=xH("Reflect","construct"),IH=Object.prototype,MH=[].push,NH=AH((function(){function t(){}return!(PH((function(){}),[],t)instanceof t)})),RH=!AH((function(){PH((function(){}))})),jH=NH||RH;_H({target:"Reflect",stat:!0,forced:jH,sham:jH},{construct:function(t,e){DH(t),TH(e);var i=arguments.length<3?t:DH(arguments[2]);if(RH&&!NH)return PH(t,e,i);if(t===i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return SH(MH,n,e),new(SH(CH,t,n))}var r=i.prototype,o=OH(EH(r)?r:IH),s=SH(t,o,e);return EH(s)?s:o}});var FH=xF,LH=FH.Reflect.construct,BH=LH,zH=BH,GH=zH,HH=yj(GH);function WH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var YH={exports:{}},VH=mz,UH=Kj,XH=RB.f;VH({target:"Object",stat:!0,forced:Object.defineProperty!==XH,sham:!UH},{defineProperty:XH});var qH=xF,KH=qH.Object,$H=YH.exports=function(t,e,i){return KH.defineProperty(t,e,i)};KH.defineProperty.sham&&($H.sham=!0);var JH=YH.exports,QH=JH,ZH=QH,tW=ZH,eW=tW,iW=eW,nW=iW,rW=nW,oW=yj(rW),sW=Fj,aW=Array.isArray||function(t){return"Array"===sW(t)},lW=TypeError,hW=9007199254740991,uW=function(t){if(t>hW)throw lW("Maximum allowed index exceeded");return t},cW=iB,dW=RB,pW=oF,fW=function(t,e,i){var n=cW(e);n in t?dW.f(t,n,pW(0,i)):t[n]=i},mW=aW,vW=lG,gW=_F,yW=YL,bW=yW("species"),wW=Array,kW=function(t){var e;return mW(t)&&(e=t.constructor,vW(e)&&(e===wW||mW(e.prototype))?e=void 0:gW(e)&&(e=e[bW],null===e&&(e=void 0))),void 0===e?wW:e},_W=kW,xW=function(t,e){return new(_W(t))(0===e?0:e)},SW=kj,CW=YL,DW=LF,TW=CW("species"),EW=function(t){return DW>=51||!SW((function(){var e=[],i=e.constructor={};return i[TW]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},OW=mz,AW=kj,PW=aW,IW=_F,MW=CL,NW=TG,RW=uW,jW=fW,FW=xW,LW=EW,BW=YL,zW=LF,GW=BW("isConcatSpreadable"),HW=zW>=51||!AW((function(){var t=[];return t[GW]=!1,t.concat()[0]!==t})),WW=function(t){if(!IW(t))return!1;var e=t[GW];return void 0!==e?!!e:PW(t)},YW=!HW||!LW("concat");OW({target:"Array",proto:!0,arity:1,forced:YW},{concat:function(t){var e,i,n,r,o,s=MW(this),a=FW(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],WW(o))for(r=NW(o),RW(l+r),i=0;i<r;i++,l++)i in o&&jW(a,l,o[i]);else RW(l+1),jW(a,l++,o);return a.length=l,a}});var VW=Hz,UW=String,XW=function(t){if("Symbol"===VW(t))throw new TypeError("Cannot convert a Symbol value to a string");return UW(t)},qW={},KW=zG,$W=GG,JW=$W.concat("length","prototype");qW.f=Object.getOwnPropertyNames||function(t){return KW(t,JW)};var QW={},ZW=_G,tY=TG,eY=fW,iY=Array,nY=Math.max,rY=function(t,e,i){for(var n=tY(t),r=ZW(e,n),o=ZW(void 0===i?n:i,n),s=iY(nY(o-r,0)),a=0;r<o;r++,a++)eY(s,a,t[r]);return s.length=a,s},oY=Fj,sY=yF,aY=qW.f,lY=rY,hY="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uY=function(t){try{return aY(t)}catch(dpt){return lY(hY)}};QW.f=function(t){return hY&&"Window"===oY(t)?uY(t):aY(sY(t))};var cY={};cY.f=Object.getOwnPropertySymbols;var dY=nz,pY=function(t,e,i,n){return n&&n.enumerable?t[e]=i:dY(t,e,i),t},fY=RB,mY=function(t,e,i){return fY.f(t,e,i)},vY={},gY=YL;vY.f=gY;var yY,bY,wY,kY=xF,_Y=OL,xY=vY,SY=RB.f,CY=function(t){var e=kY.Symbol||(kY.Symbol={});_Y(e,t)||SY(e,t,{value:xY.f(t)})},DY=Qj,TY=EF,EY=YL,OY=pY,AY=function(){var t=TY("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,n=EY("toPrimitive");e&&!e[n]&&OY(e,n,(function(t){return DY(i,this)}),{arity:1})},PY=Mz,IY=Hz,MY=PY?{}.toString:function(){return"[object "+IY(this)+"]"},NY=Mz,RY=RB.f,jY=nz,FY=OL,LY=MY,BY=YL,zY=BY("toStringTag"),GY=function(t,e,i,n){if(t){var r=i?t:t.prototype;FY(r,zY)||RY(r,zY,{configurable:!0,value:e}),n&&!NY&&jY(r,"toString",LY)}},HY=wj,WY=Uj,YY=HY.WeakMap,VY=WY(YY)&&/native code/.test(String(YY)),UY=VY,XY=wj,qY=_F,KY=nz,$Y=OL,JY=wL,QY=nH,ZY=MG,tV="Object already initialized",eV=XY.TypeError,iV=XY.WeakMap,nV=function(t){return wY(t)?bY(t):yY(t,{})},rV=function(t){return function(e){var i;if(!qY(e)||(i=bY(e)).type!==t)throw new eV("Incompatible receiver, "+t+" required");return i}};if(UY||JY.state){var oV=JY.state||(JY.state=new iV);oV.get=oV.get,oV.has=oV.has,oV.set=oV.set,yY=function(t,e){if(oV.has(t))throw new eV(tV);return e.facade=t,oV.set(t,e),e},bY=function(t){return oV.get(t)||{}},wY=function(t){return oV.has(t)}}else{var sV=QY("state");ZY[sV]=!0,yY=function(t,e){if($Y(t,sV))throw new eV(tV);return e.facade=t,KY(t,sV,e),e},bY=function(t){return $Y(t,sV)?t[sV]:{}},wY=function(t){return $Y(t,sV)}}var aV={set:yY,get:bY,has:wY,enforce:nV,getterFor:rV},lV=NB,hV=Mj,uV=cF,cV=CL,dV=TG,pV=xW,fV=hV([].push),mV=function(t){var e=1===t,i=2===t,n=3===t,r=4===t,o=6===t,s=7===t,a=5===t||o;return function(l,h,u,c){for(var d,p,f=cV(l),m=uV(f),v=lV(h,u),g=dV(m),y=0,b=c||pV,w=e?b(l,g):i||s?b(l,0):void 0;g>y;y++)if((a||y in m)&&(d=m[y],p=v(d,y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:fV(w,d)}else switch(t){case 4:return!1;case 7:fV(w,d)}return o?-1:n||r?r:w}},vV={forEach:mV(0),map:mV(1),filter:mV(2),some:mV(3),every:mV(4),find:mV(5),findIndex:mV(6),filterReject:mV(7)},gV=mz,yV=wj,bV=Qj,wV=Mj,kV=Kj,_V=WF,xV=kj,SV=OL,CV=AF,DV=HB,TV=yF,EV=iB,OV=XW,AV=oF,PV=kH,IV=YG,MV=qW,NV=QW,RV=cY,jV=Xj,FV=RB,LV=pG,BV=Zj,zV=pY,GV=mY,HV=_L,WV=nH,YV=MG,VV=NL,UV=YL,XV=vY,qV=CY,KV=AY,$V=GY,JV=aV,QV=vV.forEach,ZV=WV("hidden"),tU="Symbol",eU="prototype",iU=JV.set,nU=JV.getterFor(tU),rU=Object[eU],oU=yV.Symbol,sU=oU&&oU[eU],aU=yV.RangeError,lU=yV.TypeError,hU=yV.QObject,uU=jV.f,cU=FV.f,dU=NV.f,pU=BV.f,fU=wV([].push),mU=HV("symbols"),vU=HV("op-symbols"),gU=HV("wks"),yU=!hU||!hU[eU]||!hU[eU].findChild,bU=function(t,e,i){var n=uU(rU,e);n&&delete rU[e],cU(t,e,i),n&&t!==rU&&cU(rU,e,n)},wU=kV&&xV((function(){return 7!==PV(cU({},"a",{get:function(){return cU(this,"a",{value:7}).a}})).a}))?bU:cU,kU=function(t,e){var i=mU[t]=PV(sU);return iU(i,{type:tU,tag:t,description:e}),kV||(i.description=e),i},_U=function(t,e,i){t===rU&&_U(vU,e,i),DV(t);var n=EV(e);return DV(i),SV(mU,n)?(i.enumerable?(SV(t,ZV)&&t[ZV][n]&&(t[ZV][n]=!1),i=PV(i,{enumerable:AV(0,!1)})):(SV(t,ZV)||cU(t,ZV,AV(1,{})),t[ZV][n]=!0),wU(t,n,i)):cU(t,n,i)},xU=function(t,e){DV(t);var i=TV(e),n=IV(i).concat(EU(i));return QV(n,(function(e){kV&&!bV(CU,i,e)||_U(t,e,i[e])})),t},SU=function(t,e){return void 0===e?PV(t):xU(PV(t),e)},CU=function(t){var e=EV(t),i=bV(pU,this,e);return!(this===rU&&SV(mU,e)&&!SV(vU,e))&&(!(i||!SV(this,e)||!SV(mU,e)||SV(this,ZV)&&this[ZV][e])||i)},DU=function(t,e){var i=TV(t),n=EV(e);if(i!==rU||!SV(mU,n)||SV(vU,n)){var r=uU(i,n);return!r||!SV(mU,n)||SV(i,ZV)&&i[ZV][n]||(r.enumerable=!0),r}},TU=function(t){var e=dU(TV(t)),i=[];return QV(e,(function(t){SV(mU,t)||SV(YV,t)||fU(i,t)})),i},EU=function(t){var e=t===rU,i=dU(e?vU:TV(t)),n=[];return QV(i,(function(t){!SV(mU,t)||e&&!SV(rU,t)||fU(n,mU[t])})),n};_V||(oU=function(){if(CV(sU,this))throw new lU("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?OV(arguments[0]):void 0,e=VV(t),i=function(t){this===rU&&bV(i,vU,t),SV(this,ZV)&&SV(this[ZV],e)&&(this[ZV][e]=!1);var n=AV(1,t);try{wU(this,e,n)}catch(dpt){if(!(dpt instanceof aU))throw dpt;bU(this,e,n)}};return kV&&yU&&wU(rU,e,{configurable:!0,set:i}),kU(e,t)},sU=oU[eU],zV(sU,"toString",(function(){return nU(this).tag})),zV(oU,"withoutSetter",(function(t){return kU(VV(t),t)})),BV.f=CU,FV.f=_U,LV.f=xU,jV.f=DU,MV.f=NV.f=TU,RV.f=EU,XV.f=function(t){return kU(UV(t),t)},kV&&GV(sU,"description",{configurable:!0,get:function(){return nU(this).description}})),gV({global:!0,constructor:!0,wrap:!0,forced:!_V,sham:!_V},{Symbol:oU}),QV(IV(gU),(function(t){qV(t)})),gV({target:tU,stat:!0,forced:!_V},{useSetter:function(){yU=!0},useSimple:function(){yU=!1}}),gV({target:"Object",stat:!0,forced:!_V,sham:!kV},{create:SU,defineProperty:_U,defineProperties:xU,getOwnPropertyDescriptor:DU}),gV({target:"Object",stat:!0,forced:!_V},{getOwnPropertyNames:TU}),KV(),$V(oU,tU),YV[ZV]=!0;var OU=WF,AU=OU&&!!Symbol["for"]&&!!Symbol.keyFor,PU=mz,IU=EF,MU=OL,NU=XW,RU=_L,jU=AU,FU=RU("string-to-symbol-registry"),LU=RU("symbol-to-string-registry");PU({target:"Symbol",stat:!0,forced:!jU},{for:function(t){var e=NU(t);if(MU(FU,e))return FU[e];var i=IU("Symbol")(e);return FU[e]=i,LU[i]=e,i}});var BU=mz,zU=OL,GU=JF,HU=ZF,WU=_L,YU=AU,VU=WU("symbol-to-string-registry");BU({target:"Symbol",stat:!0,forced:!YU},{keyFor:function(t){if(!GU(t))throw new TypeError(HU(t)+" is not a symbol");if(zU(VU,t))return VU[t]}});var UU=Mj,XU=aW,qU=Uj,KU=Fj,$U=XW,JU=UU([].push),QU=function(t){if(qU(t))return t;if(XU(t)){for(var e=t.length,i=[],n=0;n<e;n++){var r=t[n];"string"==typeof r?JU(i,r):"number"!=typeof r&&"Number"!==KU(r)&&"String"!==KU(r)||JU(i,$U(r))}var o=i.length,s=!0;return function(t,e){if(s)return s=!1,e;if(XU(this))return e;for(var n=0;n<o;n++)if(i[n]===t)return e}}},ZU=mz,tX=EF,eX=Ej,iX=Qj,nX=Mj,rX=kj,oX=Uj,sX=JF,aX=gz,lX=QU,hX=WF,uX=String,cX=tX("JSON","stringify"),dX=nX(/./.exec),pX=nX("".charAt),fX=nX("".charCodeAt),mX=nX("".replace),vX=nX(1..toString),gX=/[\uD800-\uDFFF]/g,yX=/^[\uD800-\uDBFF]$/,bX=/^[\uDC00-\uDFFF]$/,wX=!hX||rX((function(){var t=tX("Symbol")("stringify detection");return"[null]"!==cX([t])||"{}"!==cX({a:t})||"{}"!==cX(Object(t))})),kX=rX((function(){return'"\\udf06\\ud834"'!==cX("\udf06\ud834")||'"\\udead"'!==cX("\udead")})),_X=function(t,e){var i=aX(arguments),n=lX(e);if(oX(n)||void 0!==t&&!sX(t))return i[1]=function(t,e){if(oX(n)&&(e=iX(n,this,uX(t),e)),!sX(e))return e},eX(cX,null,i)},xX=function(t,e,i){var n=pX(i,e-1),r=pX(i,e+1);return dX(yX,t)&&!dX(bX,r)||dX(bX,t)&&!dX(yX,n)?"\\u"+vX(fX(t,0),16):t};cX&&ZU({target:"JSON",stat:!0,arity:3,forced:wX||kX},{stringify:function(t,e,i){var n=aX(arguments),r=eX(wX?_X:cX,null,n);return kX&&"string"==typeof r?mX(r,gX,xX):r}});var SX=mz,CX=WF,DX=kj,TX=cY,EX=CL,OX=!CX||DX((function(){TX.f(1)}));SX({target:"Object",stat:!0,forced:OX},{getOwnPropertySymbols:function(t){var e=TX.f;return e?e(EX(t)):[]}});var AX=CY;AX("asyncIterator");var PX=CY;PX("hasInstance");var IX=CY;IX("isConcatSpreadable");var MX=CY;MX("iterator");var NX=CY;NX("match");var RX=CY;RX("matchAll");var jX=CY;jX("replace");var FX=CY;FX("search");var LX=CY;LX("species");var BX=CY;BX("split");var zX=CY,GX=AY;zX("toPrimitive"),GX();var HX=EF,WX=CY,YX=GY;WX("toStringTag"),YX(HX("Symbol"),"Symbol");var VX=CY;VX("unscopables");var UX=wj,XX=GY;XX(UX.JSON,"JSON",!0);var qX,KX,$X,JX=xF,QX=JX.Symbol,ZX={},tq=Kj,eq=OL,iq=Function.prototype,nq=tq&&Object.getOwnPropertyDescriptor,rq=eq(iq,"name"),oq=rq&&"something"===function(){}.name,sq=rq&&(!tq||tq&&nq(iq,"name").configurable),aq={EXISTS:rq,PROPER:oq,CONFIGURABLE:sq},lq=kj,hq=!lq((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),uq=OL,cq=Uj,dq=CL,pq=nH,fq=hq,mq=pq("IE_PROTO"),vq=Object,gq=vq.prototype,yq=fq?vq.getPrototypeOf:function(t){var e=dq(t);if(uq(e,mq))return e[mq];var i=e.constructor;return cq(i)&&e instanceof i?i.prototype:e instanceof vq?gq:null},bq=kj,wq=Uj,kq=_F,_q=kH,xq=yq,Sq=pY,Cq=YL,Dq=Cq("iterator"),Tq=!1;[].keys&&($X=[].keys(),"next"in $X?(KX=xq(xq($X)),KX!==Object.prototype&&(qX=KX)):Tq=!0);var Eq=!kq(qX)||bq((function(){var t={};return qX[Dq].call(t)!==t}));qX=Eq?{}:_q(qX),wq(qX[Dq])||Sq(qX,Dq,(function(){return this}));var Oq={IteratorPrototype:qX,BUGGY_SAFARI_ITERATORS:Tq},Aq=Oq.IteratorPrototype,Pq=kH,Iq=oF,Mq=GY,Nq=ZX,Rq=function(){return this},jq=function(t,e,i,n){var r=e+" Iterator";return t.prototype=Pq(Aq,{next:Iq(+!n,i)}),Mq(t,r,!1,!0),Nq[r]=Rq,t},Fq=Mj,Lq=nL,Bq=function(t,e,i){try{return Fq(Lq(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(dpt){}},zq=Uj,Gq=String,Hq=TypeError,Wq=function(t){if("object"==typeof t||zq(t))return t;throw new Hq("Can't set "+Gq(t)+" as a prototype")},Yq=Bq,Vq=HB,Uq=Wq,Xq=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=Yq(Object.prototype,"__proto__","set"),t(i,[]),e=i instanceof Array}catch(dpt){}return function(i,n){return Vq(i),Uq(n),e?t(i,n):i.__proto__=n,i}}():void 0),qq=mz,Kq=Qj,$q=aq,Jq=jq,Qq=yq,Zq=GY,tK=pY,eK=YL,iK=ZX,nK=Oq,rK=$q.PROPER;$q.CONFIGURABLE,nK.IteratorPrototype;var oK=nK.BUGGY_SAFARI_ITERATORS,sK=eK("iterator"),aK="keys",lK="values",hK="entries",uK=function(){return this},cK=function(t,e,i,n,r,o,s){Jq(i,e,n);var a,l,h,u=function(t){if(t===r&&m)return m;if(!oK&&t&&t in p)return p[t];switch(t){case aK:return function(){return new i(this,t)};case lK:return function(){return new i(this,t)};case hK:return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,p=t.prototype,f=p[sK]||p["@@iterator"]||r&&p[r],m=!oK&&f||u(r),v="Array"===e&&p.entries||f;if(v&&(a=Qq(v.call(new t)),a!==Object.prototype&&a.next&&(Zq(a,c,!0,!0),iK[c]=uK)),rK&&r===lK&&f&&f.name!==lK&&(d=!0,m=function(){return Kq(f,this)}),r)if(l={values:u(lK),keys:o?m:u(aK),entries:u(hK)},s)for(h in l)(oK||d||!(h in p))&&tK(p,h,l[h]);else qq({target:e,proto:!0,forced:oK||d},l);return s&&p[sK]!==m&&tK(p,sK,m,{name:r}),iK[e]=m,l},dK=function(t,e){return{value:t,done:e}},pK=yF,fK=ZX,mK=aV;RB.f;var vK=cK,gK=dK,yK="Array Iterator",bK=mK.set,wK=mK.getterFor(yK);vK(Array,"Array",(function(t,e){bK(this,{type:yK,target:pK(t),index:0,kind:e})}),(function(){var t=wK(this),e=t.target,i=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,gK(void 0,!0);switch(i){case"keys":return gK(n,!1);case"values":return gK(e[n],!1)}return gK([n,e[n]],!1)}),"values"),fK.Arguments=fK.Array;var kK={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},_K=kK,xK=wj,SK=Hz,CK=nz,DK=ZX,TK=YL,EK=TK("toStringTag");for(var OK in _K){var AK=xK[OK],PK=AK&&AK.prototype;PK&&SK(PK)!==EK&&CK(PK,EK,OK),DK[OK]=DK.Array}var IK=QX,MK=IK,NK=YL,RK=RB.f,jK=NK("metadata"),FK=Function.prototype;void 0===FK[jK]&&RK(FK,jK,{value:null});var LK=CY;LK("asyncDispose");var BK=CY;BK("dispose");var zK=CY;zK("metadata");var GK=MK,HK=GK,WK=EF,YK=Mj,VK=WK("Symbol"),UK=VK.keyFor,XK=YK(VK.prototype.valueOf),qK=VK.isRegisteredSymbol||function(t){try{return void 0!==UK(XK(t))}catch(dpt){return!1}},KK=mz,$K=qK;KK({target:"Symbol",stat:!0},{isRegisteredSymbol:$K});for(var JK=_L,QK=EF,ZK=Mj,t$=JF,e$=YL,i$=QK("Symbol"),n$=i$.isWellKnownSymbol,r$=QK("Object","getOwnPropertyNames"),o$=ZK(i$.prototype.valueOf),s$=JK("wks"),a$=0,l$=r$(i$),h$=l$.length;a$<h$;a$++)try{var u$=l$[a$];t$(i$[u$])&&e$(u$)}catch(dpt){}var c$=function(t){if(n$&&n$(t))return!0;try{for(var e=o$(t),i=0,n=r$(s$),r=n.length;i<r;i++)if(s$[n[i]]==e)return!0}catch(dpt){}return!1},d$=mz,p$=c$;d$({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:p$});var f$=CY;f$("matcher");var m$=CY;m$("observable");var v$=mz,g$=qK;v$({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:g$});var y$=mz,b$=c$;y$({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:b$});var w$=CY;w$("metadataKey");var k$=CY;k$("patternMatch");var _$=CY;_$("replaceAll");var x$=HK,S$=x$,C$=S$,D$=yj(C$),T$=Mj,E$=yG,O$=XW,A$=mF,P$=T$("".charAt),I$=T$("".charCodeAt),M$=T$("".slice),N$=function(t){return function(e,i){var n,r,o=O$(A$(e)),s=E$(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=I$(o,s),n<55296||n>56319||s+1===a||(r=I$(o,s+1))<56320||r>57343?t?P$(o,s):n:t?M$(o,s,s+2):r-56320+(n-55296<<10)+65536)}},R$={codeAt:N$(!1),charAt:N$(!0)},j$=R$.charAt,F$=XW,L$=aV,B$=cK,z$=dK,G$="String Iterator",H$=L$.set,W$=L$.getterFor(G$);B$(String,"String",(function(t){H$(this,{type:G$,string:F$(t),index:0})}),(function(){var t,e=W$(this),i=e.string,n=e.index;return n>=i.length?z$(void 0,!0):(t=j$(i,n),e.index+=t.length,z$(t,!1))}));var Y$=vY,V$=Y$.f("iterator"),U$=V$,X$=U$,q$=X$,K$=q$,$$=K$,J$=$$,Q$=J$,Z$=yj(Q$);function tJ(t){return tJ="function"==typeof D$&&"symbol"==typeof Z$?function(t){return typeof t}:function(t){return t&&"function"==typeof D$&&t.constructor===D$&&t!==D$.prototype?"symbol":typeof t},tJ(t)}var eJ=vY,iJ=eJ.f("toPrimitive"),nJ=iJ,rJ=nJ,oJ=rJ,sJ=oJ,aJ=sJ,lJ=aJ,hJ=lJ,uJ=yj(hJ);function cJ(t,e){if("object"!==tJ(t)||null===t)return t;var i=t[uJ];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==tJ(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function dJ(t){var e=cJ(t,"string");return"symbol"===tJ(e)?e:String(e)}function pJ(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),oW(t,dJ(n.key),n)}}function fJ(t,e,i){return e&&pJ(t.prototype,e),i&&pJ(t,i),oW(t,"prototype",{writable:!1}),t}function mJ(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var vJ=mz,gJ=Kj,yJ=kH;vJ({target:"Object",stat:!0,sham:!gJ},{create:yJ});var bJ=xF,wJ=bJ.Object,kJ=function(t,e){return wJ.create(t,e)},_J=kJ,xJ=_J,SJ=xJ,CJ=SJ,DJ=CJ,TJ=DJ,EJ=TJ,OJ=yj(EJ),AJ=mz,PJ=Xq;AJ({target:"Object",stat:!0},{setPrototypeOf:PJ});var IJ=xF,MJ=IJ.Object.setPrototypeOf,NJ=MJ,RJ=NJ,jJ=RJ,FJ=jJ,LJ=FJ,BJ=LJ,zJ=BJ,GJ=yj(zJ),HJ=mz,WJ=Oz;HJ({target:"Function",proto:!0,forced:Function.bind!==WJ},{bind:WJ});var YJ=xF,VJ=function(t){return YJ[t+"Prototype"]},UJ=VJ,XJ=UJ("Function").bind,qJ=AF,KJ=XJ,$J=Function.prototype,JJ=function(t){var e=t.bind;return t===$J||qJ($J,t)&&e===$J.bind?KJ:e},QJ=JJ,ZJ=QJ,tQ=ZJ,eQ=tQ,iQ=eQ,nQ=iQ,rQ=nQ,oQ=yj(rQ);function sQ(t,e){var i;return sQ=GJ?oQ(i=GJ).call(i):function(t,e){return t.__proto__=e,t},sQ(t,e)}function aQ(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=OJ(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),oW(t,"prototype",{writable:!1}),e&&sQ(t,e)}function lQ(t,e){if(e&&("object"===tJ(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mJ(t)}var hQ=mz,uQ=kj,cQ=CL,dQ=yq,pQ=hq,fQ=uQ((function(){dQ(1)}));hQ({target:"Object",stat:!0,forced:fQ,sham:!pQ},{getPrototypeOf:function(t){return dQ(cQ(t))}});var mQ=xF,vQ=mQ.Object.getPrototypeOf,gQ=vQ,yQ=gQ,bQ=yQ,wQ=bQ,kQ=wQ,_Q=kQ,xQ=_Q,SQ=yj(xQ);function CQ(t){var e;return CQ=GJ?oQ(e=SQ).call(e):function(t){return t.__proto__||SQ(t)},CQ(t)}var DQ=mz,TQ=aW;DQ({target:"Array",stat:!0},{isArray:TQ});var EQ=xF,OQ=EQ.Array.isArray,AQ=OQ,PQ=AQ,IQ=PQ,MQ=yj(IQ),NQ=ZJ,RQ=yj(NQ),jQ="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,FQ=TypeError,LQ=function(t,e){if(t<e)throw new FQ("Not enough arguments");return t},BQ=wj,zQ=Ej,GQ=Uj,HQ=jQ,WQ=PF,YQ=gz,VQ=LQ,UQ=BQ.Function,XQ=/MSIE .\./.test(WQ)||HQ&&function(){var t=BQ.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),qQ=function(t,e){var i=e?2:1;return XQ?function(n,r){var o=VQ(arguments.length,1)>i,s=GQ(n)?n:UQ(n),a=o?YQ(arguments,i):[],l=o?function(){zQ(s,this,a)}:s;return e?t(l,r):t(l)}:t},KQ=mz,$Q=wj,JQ=qQ,QQ=JQ($Q.setInterval,!0);KQ({global:!0,bind:!0,forced:$Q.setInterval!==QQ},{setInterval:QQ});var ZQ=mz,tZ=wj,eZ=qQ,iZ=eZ(tZ.setTimeout,!0);ZQ({global:!0,bind:!0,forced:tZ.setTimeout!==iZ},{setTimeout:iZ});var nZ=xF,rZ=nZ.setTimeout,oZ=rZ,sZ=yj(oZ),aZ=kj,lZ=function(t,e){var i=[][t];return!!i&&aZ((function(){i.call(null,e||function(){return 1},1)}))},hZ=vV.forEach,uZ=lZ,cZ=uZ("forEach"),dZ=cZ?[].forEach:function(t){return hZ(this,t,arguments.length>1?arguments[1]:void 0)},pZ=mz,fZ=dZ;pZ({target:"Array",proto:!0,forced:[].forEach!==fZ},{forEach:fZ});var mZ=VJ,vZ=mZ("Array").forEach,gZ=vZ,yZ=gZ,bZ=Hz,wZ=OL,kZ=AF,_Z=yZ,xZ=Array.prototype,SZ={DOMTokenList:!0,NodeList:!0},CZ=function(t){var e=t.forEach;return t===xZ||kZ(xZ,t)&&e===xZ.forEach||wZ(SZ,bZ(t))?_Z:e},DZ=CZ,TZ=yj(DZ),EZ="undefined"!==typeof window&&window["moment"]||vj(),OZ=yj(EZ),AZ=xF,PZ=AZ.Object.getOwnPropertySymbols,IZ=PZ,MZ=IZ,NZ=MZ,RZ=yj(NZ),jZ=mz,FZ=vV.filter,LZ=EW,BZ=LZ("filter");jZ({target:"Array",proto:!0,forced:!BZ},{filter:function(t){return FZ(this,t,arguments.length>1?arguments[1]:void 0)}});var zZ=VJ,GZ=zZ("Array").filter,HZ=AF,WZ=GZ,YZ=Array.prototype,VZ=function(t){var e=t.filter;return t===YZ||HZ(YZ,t)&&e===YZ.filter?WZ:e},UZ=VZ,XZ=UZ,qZ=XZ,KZ=yj(qZ),$Z={exports:{}},JZ=mz,QZ=kj,ZZ=yF,t0=Xj.f,e0=Kj,i0=!e0||QZ((function(){t0(1)}));JZ({target:"Object",stat:!0,forced:i0,sham:!e0},{getOwnPropertyDescriptor:function(t,e){return t0(ZZ(t),e)}});var n0=xF,r0=n0.Object,o0=$Z.exports=function(t,e){return r0.getOwnPropertyDescriptor(t,e)};r0.getOwnPropertyDescriptor.sham&&(o0.sham=!0);var s0=$Z.exports,a0=s0,l0=a0,h0=l0,u0=yj(h0),c0=EF,d0=Mj,p0=qW,f0=cY,m0=HB,v0=d0([].concat),g0=c0("Reflect","ownKeys")||function(t){var e=p0.f(m0(t)),i=f0.f;return i?v0(e,i(t)):e},y0=mz,b0=Kj,w0=g0,k0=yF,_0=Xj,x0=fW;y0({target:"Object",stat:!0,sham:!b0},{getOwnPropertyDescriptors:function(t){var e,i,n=k0(t),r=_0.f,o=w0(n),s={},a=0;while(o.length>a)i=r(n,e=o[a++]),void 0!==i&&x0(s,e,i);return s}});var S0=xF,C0=S0.Object.getOwnPropertyDescriptors,D0=C0,T0=D0,E0=T0,O0=yj(E0),A0={exports:{}},P0=mz,I0=Kj,M0=pG.f;P0({target:"Object",stat:!0,forced:Object.defineProperties!==M0,sham:!I0},{defineProperties:M0});var N0=xF,R0=N0.Object,j0=A0.exports=function(t,e){return R0.defineProperties(t,e)};R0.defineProperties.sham&&(j0.sham=!0);var F0=A0.exports,L0=F0,B0=L0,z0=B0,G0=yj(z0);function H0(t,e,i){return e=dJ(e),e in t?oW(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var W0=mz,Y0=vV.map,V0=EW,U0=V0("map");W0({target:"Array",proto:!0,forced:!U0},{map:function(t){return Y0(this,t,arguments.length>1?arguments[1]:void 0)}});var X0=VJ,q0=X0("Array").map,K0=AF,$0=q0,J0=Array.prototype,Q0=function(t){var e=t.map;return t===J0||K0(J0,t)&&e===J0.map?$0:e},Z0=Q0,t1=Z0,e1=t1,i1=yj(e1),n1=nL,r1=CL,o1=cF,s1=TG,a1=TypeError,l1=function(t){return function(e,i,n,r){n1(i);var o=r1(e),s=o1(o),a=s1(o),l=t?a-1:0,h=t?-1:1;if(n<2)while(1){if(l in s){r=s[l],l+=h;break}if(l+=h,t?l<0:a<=l)throw new a1("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=h)l in s&&(r=i(r,s[l],l,o));return r}},h1={left:l1(!1),right:l1(!0)},u1=wj,c1=Fj,d1="process"===c1(u1.process),p1=mz,f1=h1.left,m1=lZ,v1=LF,g1=d1,y1=!g1&&v1>79&&v1<83,b1=y1||!m1("reduce");p1({target:"Array",proto:!0,forced:b1},{reduce:function(t){var e=arguments.length;return f1(this,t,e,e>1?arguments[1]:void 0)}});var w1=VJ,k1=w1("Array").reduce,_1=AF,x1=k1,S1=Array.prototype,C1=function(t){var e=t.reduce;return t===S1||_1(S1,t)&&e===S1.reduce?x1:e},D1=C1,T1=D1,E1=T1,O1=yj(E1),A1=mz,P1=CL,I1=YG,M1=kj,N1=M1((function(){I1(1)}));A1({target:"Object",stat:!0,forced:N1},{keys:function(t){return I1(P1(t))}});var R1=xF,j1=R1.Object.keys,F1=j1,L1=F1,B1=L1,z1=yj(B1),G1=ZH,H1=yj(G1),W1=Qj,Y1=HB,V1=sL,U1=function(t,e,i){var n,r;Y1(t);try{if(n=V1(t,"return"),!n){if("throw"===e)throw i;return i}n=W1(n,t)}catch(dpt){r=!0,n=dpt}if("throw"===e)throw i;if(r)throw n;return Y1(n),i},X1=HB,q1=U1,K1=function(t,e,i,n){try{return n?e(X1(i)[0],i[1]):e(i)}catch(dpt){q1(t,"throw",dpt)}},$1=YL,J1=ZX,Q1=$1("iterator"),Z1=Array.prototype,t2=function(t){return void 0!==t&&(J1.Array===t||Z1[Q1]===t)},e2=Hz,i2=sL,n2=dF,r2=ZX,o2=YL,s2=o2("iterator"),a2=function(t){if(!n2(t))return i2(t,s2)||i2(t,"@@iterator")||r2[e2(t)]},l2=Qj,h2=nL,u2=HB,c2=ZF,d2=a2,p2=TypeError,f2=function(t,e){var i=arguments.length<2?d2(t):e;if(h2(i))return u2(l2(i,t));throw new p2(c2(t)+" is not iterable")},m2=NB,v2=Qj,g2=CL,y2=K1,b2=t2,w2=lG,k2=TG,_2=fW,x2=f2,S2=a2,C2=Array,D2=function(t){var e=g2(t),i=w2(this),n=arguments.length,r=n>1?arguments[1]:void 0,o=void 0!==r;o&&(r=m2(r,n>2?arguments[2]:void 0));var s,a,l,h,u,c,d=S2(e),p=0;if(!d||this===C2&&b2(d))for(s=k2(e),a=i?new this(s):C2(s);s>p;p++)c=o?r(e[p],p):e[p],_2(a,p,c);else for(h=x2(e,d),u=h.next,a=i?new this:[];!(l=v2(u,h)).done;p++)c=o?y2(h,r,[l.value,p],!0):l.value,_2(a,p,c);return a.length=p,a},T2=YL,E2=T2("iterator"),O2=!1;try{var A2=0,P2={next:function(){return{done:!!A2++}},return:function(){O2=!0}};P2[E2]=function(){return this},Array.from(P2,(function(){throw 2}))}catch(dpt){}var I2=function(t,e){try{if(!e&&!O2)return!1}catch(dpt){return!1}var i=!1;try{var n={};n[E2]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(dpt){}return i},M2=mz,N2=D2,R2=I2,j2=!R2((function(t){Array.from(t)}));M2({target:"Array",stat:!0,forced:j2},{from:N2});var F2=xF,L2=F2.Array.from,B2=L2,z2=B2,G2=z2,H2=yj(G2),W2=a2,Y2=W2,V2=Y2,U2=V2,X2=U2,q2=X2,K2=q2,$2=K2,J2=$2,Q2=yj(J2),Z2=J2,t5=yj(Z2),e5=PQ,i5=e5,n5=i5,r5=n5,o5=r5,s5=yj(o5);function a5(t){if(s5(t))return t}var l5=Kj,h5=aW,u5=TypeError,c5=Object.getOwnPropertyDescriptor,d5=l5&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(dpt){return dpt instanceof TypeError}}(),p5=d5?function(t,e){if(h5(t)&&!c5(t,"length").writable)throw new u5("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},f5=mz,m5=CL,v5=TG,g5=p5,y5=uW,b5=kj,w5=b5((function(){return 4294967297!==[].push.call({length:4294967296},1)})),k5=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(dpt){return dpt instanceof TypeError}},_5=w5||!k5();f5({target:"Array",proto:!0,arity:1,forced:_5},{push:function(t){var e=m5(this),i=v5(e),n=arguments.length;y5(i+n);for(var r=0;r<n;r++)e[i]=arguments[r],i++;return g5(e,i),i}});var x5=VJ,S5=x5("Array").push,C5=AF,D5=S5,T5=Array.prototype,E5=function(t){var e=t.push;return t===T5||C5(T5,t)&&e===T5.push?D5:e},O5=E5,A5=O5,P5=A5,I5=P5,M5=I5,N5=M5,R5=N5,j5=yj(R5);function F5(t,e){var i=null==t?null:"undefined"!=typeof D$&&Q2(t)||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,h=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(j5(a).call(a,n.value),a.length!==e);l=!0);}catch(t){h=!0,r=t}finally{try{if(!l&&null!=i["return"]&&(s=i["return"](),Object(s)!==s))return}finally{if(h)throw r}}return a}}var L5=mz,B5=aW,z5=lG,G5=_F,H5=_G,W5=TG,Y5=yF,V5=fW,U5=YL,X5=EW,q5=gz,K5=X5("slice"),$5=U5("species"),J5=Array,Q5=Math.max;L5({target:"Array",proto:!0,forced:!K5},{slice:function(t,e){var i,n,r,o=Y5(this),s=W5(o),a=H5(t,s),l=H5(void 0===e?s:e,s);if(B5(o)&&(i=o.constructor,z5(i)&&(i===J5||B5(i.prototype))?i=void 0:G5(i)&&(i=i[$5],null===i&&(i=void 0)),i===J5||void 0===i))return q5(o,a,l);for(n=new(void 0===i?J5:i)(Q5(l-a,0)),r=0;a<l;a++,r++)a in o&&V5(n,r,o[a]);return n.length=r,n}});var Z5=VJ,t3=Z5("Array").slice,e3=AF,i3=t3,n3=Array.prototype,r3=function(t){var e=t.slice;return t===n3||e3(n3,t)&&e===n3.slice?i3:e},o3=r3,s3=o3,a3=s3,l3=a3,h3=l3,u3=h3,c3=u3,d3=yj(c3),p3=z2,f3=p3,m3=f3,v3=m3,g3=v3,y3=yj(g3);function b3(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function w3(t,e){var i;if(t){if("string"===typeof t)return b3(t,e);var n=d3(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?y3(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b3(t,e):void 0}}function k3(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _3(t,e){return a5(t)||F5(t,e)||w3(t,e)||k3()}function x3(t){if(s5(t))return b3(t)}function S3(t){if("undefined"!==typeof D$&&null!=Q2(t)||null!=t["@@iterator"])return y3(t)}function C3(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D3(t){return x3(t)||S3(t)||w3(t)||C3()}var T3=MK,E3=yj(T3),O3=VJ,A3=O3("Array").concat,P3=AF,I3=A3,M3=Array.prototype,N3=function(t){var e=t.concat;return t===M3||P3(M3,t)&&e===M3.concat?I3:e},R3=N3,j3=R3,F3=j3,L3=yj(F3),B3=s3,z3=yj(B3),G3=mz,H3=g0;G3({target:"Reflect",stat:!0},{ownKeys:H3});var W3=xF,Y3=W3.Reflect.ownKeys,V3=Y3,U3=V3,X3=U3,q3=yj(X3),K3=mz,$3=Mj,J3=Date,Q3=$3(J3.prototype.getTime);K3({target:"Date",stat:!0},{now:function(){return Q3(new J3)}});var Z3=xF,t6=Z3.Date.now,e6=t6,i6=e6,n6=i6,r6=yj(n6),o6=mz,s6=Mj,a6=aW,l6=s6([].reverse),h6=[1,2];o6({target:"Array",proto:!0,forced:String(h6)===String(h6.reverse())},{reverse:function(){return a6(this)&&(this.length=this.length),l6(this)}});var u6=VJ,c6=u6("Array").reverse,d6=AF,p6=c6,f6=Array.prototype,m6=function(t){var e=t.reverse;return t===f6||d6(f6,t)&&e===f6.reverse?p6:e},v6=m6,g6=v6,y6=g6,b6=yj(y6),w6=ZF,k6=TypeError,_6=function(t,e){if(!delete t[e])throw new k6("Cannot delete property "+w6(e)+" of "+w6(t))},x6=mz,S6=CL,C6=_G,D6=yG,T6=TG,E6=p5,O6=uW,A6=xW,P6=fW,I6=_6,M6=EW,N6=M6("splice"),R6=Math.max,j6=Math.min;x6({target:"Array",proto:!0,forced:!N6},{splice:function(t,e){var i,n,r,o,s,a,l=S6(this),h=T6(l),u=C6(t,h),c=arguments.length;for(0===c?i=n=0:1===c?(i=0,n=h-u):(i=c-2,n=j6(R6(D6(e),0),h-u)),O6(h+i-n),r=A6(l,n),o=0;o<n;o++)s=u+o,s in l&&P6(r,o,l[s]);if(r.length=n,i<n){for(o=u;o<h-n;o++)s=o+n,a=o+i,s in l?l[a]=l[s]:I6(l,a);for(o=h;o>h-n+i;o--)I6(l,o-1)}else if(i>n)for(o=h-n;o>u;o--)s=o+n-1,a=o+i-1,s in l?l[a]=l[s]:I6(l,a);for(o=0;o<i;o++)l[o+u]=arguments[o+2];return E6(l,h-n+i),r}});var F6=VJ,L6=F6("Array").splice,B6=AF,z6=L6,G6=Array.prototype,H6=function(t){var e=t.splice;return t===G6||B6(G6,t)&&e===G6.splice?z6:e},W6=H6,Y6=W6,V6=Y6,U6=yj(V6),X6=Kj,q6=Mj,K6=Qj,$6=kj,J6=YG,Q6=cY,Z6=Zj,t8=CL,e8=cF,i8=Object.assign,n8=Object.defineProperty,r8=q6([].concat),o8=!i8||$6((function(){if(X6&&1!==i8({b:1},i8(n8({},"a",{enumerable:!0,get:function(){n8(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!==i8({},t)[i]||J6(i8({},e)).join("")!==n}))?function(t,e){var i=t8(t),n=arguments.length,r=1,o=Q6.f,s=Z6.f;while(n>r){var a,l=e8(arguments[r++]),h=o?r8(J6(l),o(l)):J6(l),u=h.length,c=0;while(u>c)a=h[c++],X6&&!K6(s,l,a)||(i[a]=l[a])}return i}:i8,s8=mz,a8=o8;s8({target:"Object",stat:!0,arity:2,forced:Object.assign!==a8},{assign:a8});var l8=xF,h8=l8.Object.assign,u8=h8,c8=u8,d8=c8,p8=yj(d8),f8=mz,m8=IG.includes,v8=kj,g8=v8((function(){return!Array(1).includes()}));f8({target:"Array",proto:!0,forced:g8},{includes:function(t){return m8(this,t,arguments.length>1?arguments[1]:void 0)}});var y8=VJ,b8=y8("Array").includes,w8=_F,k8=Fj,_8=YL,x8=_8("match"),S8=function(t){var e;return w8(t)&&(void 0!==(e=t[x8])?!!e:"RegExp"===k8(t))},C8=S8,D8=TypeError,T8=function(t){if(C8(t))throw new D8("The method doesn't accept regular expressions");return t},E8=YL,O8=E8("match"),A8=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[O8]=!1,"/./"[t](e)}catch(n){}}return!1},P8=mz,I8=Mj,M8=T8,N8=mF,R8=XW,j8=A8,F8=I8("".indexOf);P8({target:"String",proto:!0,forced:!j8("includes")},{includes:function(t){return!!~F8(R8(N8(this)),R8(M8(t)),arguments.length>1?arguments[1]:void 0)}});var L8=VJ,B8=L8("String").includes,z8=AF,G8=b8,H8=B8,W8=Array.prototype,Y8=String.prototype,V8=function(t){var e=t.includes;return t===W8||z8(W8,t)&&e===W8.includes?G8:"string"==typeof t||t===Y8||z8(Y8,t)&&e===Y8.includes?H8:e},U8=V8,X8=U8,q8=X8,K8=yj(q8),$8=yQ,J8=yj($8),Q8=Kj,Z8=kj,t4=Mj,e4=yq,i4=YG,n4=yF,r4=Zj.f,o4=t4(r4),s4=t4([].push),a4=Q8&&Z8((function(){var t=Object.create(null);return t[2]=2,!o4(t,2)})),l4=function(t){return function(e){var i,n=n4(e),r=i4(n),o=a4&&null===e4(n),s=r.length,a=0,l=[];while(s>a)i=r[a++],Q8&&!(o?i in n:o4(n,i))||s4(l,t?[i,n[i]]:n[i]);return l}},h4={entries:l4(!0),values:l4(!1)},u4=mz,c4=h4.values;u4({target:"Object",stat:!0},{values:function(t){return c4(t)}});var d4=xF,p4=d4.Object.values,f4=p4,m4=f4,v4=m4,g4=yj(v4),y4="\t\n\v\f\r                　\u2028\u2029\ufeff",b4=Mj,w4=mF,k4=XW,_4=y4,x4=b4("".replace),S4=RegExp("^["+_4+"]+"),C4=RegExp("(^|[^"+_4+"])["+_4+"]+$"),D4=function(t){return function(e){var i=k4(w4(e));return 1&t&&(i=x4(i,S4,"")),2&t&&(i=x4(i,C4,"$1")),i}},T4={start:D4(1),end:D4(2),trim:D4(3)},E4=wj,O4=kj,A4=Mj,P4=XW,I4=T4.trim,M4=y4,N4=E4.parseInt,R4=E4.Symbol,j4=R4&&R4.iterator,F4=/^[+-]?0x/i,L4=A4(F4.exec),B4=8!==N4(M4+"08")||22!==N4(M4+"0x16")||j4&&!O4((function(){N4(Object(j4))})),z4=B4?function(t,e){var i=I4(P4(t));return N4(i,e>>>0||(L4(F4,i)?16:10))}:N4,G4=mz,H4=z4;G4({global:!0,forced:parseInt!==H4},{parseInt:H4});var W4=xF,Y4=W4.parseInt,V4=Y4,U4=V4,X4=U4,q4=yj(X4),K4=mz,$4=zj,J4=IG.indexOf,Q4=lZ,Z4=$4([].indexOf),t9=!!Z4&&1/Z4([1],1,-0)<0,e9=t9||!Q4("indexOf");K4({target:"Array",proto:!0,forced:e9},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return t9?Z4(this,t,e)||0:J4(this,t,e)}});var i9=VJ,n9=i9("Array").indexOf,r9=AF,o9=n9,s9=Array.prototype,a9=function(t){var e=t.indexOf;return t===s9||r9(s9,t)&&e===s9.indexOf?o9:e},l9=a9,h9=l9,u9=h9,c9=yj(u9),d9=mz,p9=h4.entries;d9({target:"Object",stat:!0},{entries:function(t){return p9(t)}});var f9=xF,m9=f9.Object.entries,v9=m9,g9=v9,y9=g9,b9=yj(y9),w9=xJ,k9=yj(w9),_9=xF,x9=Ej;_9.JSON||(_9.JSON={stringify:JSON.stringify});var S9=function(t,e,i){return x9(_9.JSON.stringify,null,arguments)},C9=S9,D9=C9,T9=D9,E9=yj(T9),O9=CL,A9=_G,P9=TG,I9=function(t){var e=O9(this),i=P9(e),n=arguments.length,r=A9(n>1?arguments[1]:void 0,i),o=n>2?arguments[2]:void 0,s=void 0===o?i:A9(o,i);while(s>r)e[r++]=t;return e},M9=mz,N9=I9;M9({target:"Array",proto:!0},{fill:N9});var R9=VJ,j9=R9("Array").fill,F9=AF,L9=j9,B9=Array.prototype,z9=function(t){var e=t.fill;return t===B9||F9(B9,t)&&e===B9.fill?L9:e},G9=z9,H9=G9,W9=H9,Y9=yj(W9),V9={exports:{}};(function(t){function e(t){if(t)return i(t)}function i(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<n.length;r++)if(i=n[r],i===e||i.fn===e){n.splice(r,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){i=i.slice(0);n=0;for(var r=i.length;n<r;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}})(V9);var U9,X9=V9.exports,q9=yj(X9);
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
 * http://naver.github.io/egjs
 *
 * Forked By Naver egjs
 * Copyright (c) hammerjs
 * Licensed under the MIT license */
function K9(){return K9=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},K9.apply(this,arguments)}function $9(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function J9(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}U9="function"!==typeof Object.assign?function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(void 0!==n&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var Q9,Z9=U9,t7=["","webkit","Moz","MS","ms","o"],e7="undefined"===typeof document?{style:{}}:document.createElement("div"),i7="function",n7=Math.round,r7=Math.abs,o7=Date.now;function s7(t,e){var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;while(o<t7.length){if(i=t7[o],n=i?i+r:e,n in t)return n;o++}}Q9="undefined"===typeof window?{}:window;var a7=s7(e7.style,"touchAction"),l7=void 0!==a7;function h7(){if(!l7)return!1;var t={},e=Q9.CSS&&Q9.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||Q9.CSS.supports("touch-action",i)})),t}var u7="compute",c7="auto",d7="manipulation",p7="none",f7="pan-x",m7="pan-y",v7=h7(),g7=/mobile|tablet|ip(ad|hone|od)|android/i,y7="ontouchstart"in Q9,b7=void 0!==s7(Q9,"PointerEvent"),w7=y7&&g7.test(navigator.userAgent),k7="touch",_7="pen",x7="mouse",S7="kinect",C7=25,D7=1,T7=2,E7=4,O7=8,A7=1,P7=2,I7=4,M7=8,N7=16,R7=P7|I7,j7=M7|N7,F7=R7|j7,L7=["x","y"],B7=["clientX","clientY"];function z7(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length){n=0;while(n<t.length)e.call(i,t[n],n,t),n++}else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function G7(t,e){return typeof t===i7?t.apply(e&&e[0]||void 0,e):t}function H7(t,e){return t.indexOf(e)>-1}function W7(t){if(H7(t,p7))return p7;var e=H7(t,f7),i=H7(t,m7);return e&&i?p7:e||i?e?f7:m7:H7(t,d7)?d7:c7}var Y7=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===u7&&(t=this.compute()),l7&&this.manager.element.style&&v7[t]&&(this.manager.element.style[a7]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return z7(this.manager.recognizers,(function(e){G7(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),W7(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=H7(n,p7)&&!v7[p7],o=H7(n,m7)&&!v7[m7],s=H7(n,f7)&&!v7[f7];if(r){var a=1===t.pointers.length,l=t.distance<2,h=t.deltaTime<250;if(a&&l&&h)return}if(!s||!o)return r||o&&i&R7||s&&i&j7?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function V7(t,e){while(t){if(t===e)return!0;t=t.parentNode}return!1}function U7(t){var e=t.length;if(1===e)return{x:n7(t[0].clientX),y:n7(t[0].clientY)};var i=0,n=0,r=0;while(r<e)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:n7(i/e),y:n7(n/e)}}function X7(t){var e=[],i=0;while(i<t.pointers.length)e[i]={clientX:n7(t.pointers[i].clientX),clientY:n7(t.pointers[i].clientY)},i++;return{timeStamp:o7(),pointers:e,center:U7(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q7(t,e,i){i||(i=L7);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function K7(t,e,i){i||(i=L7);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function $7(t,e){return t===e?A7:r7(t)>=r7(e)?t<0?P7:I7:e<0?M7:N7}function J7(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==D7&&o.eventType!==E7||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function Q7(t,e,i){return{x:e/t||0,y:i/t||0}}function Z7(t,e){return q7(e[0],e[1],B7)/q7(t[0],t[1],B7)}function ttt(t,e){return K7(e[1],e[0],B7)+K7(t[1],t[0],B7)}function ett(t,e){var i,n,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==O7&&(a>C7||void 0===s.velocity)){var l=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,u=Q7(a,l,h);n=u.x,r=u.y,i=r7(u.x)>r7(u.y)?u.x:u.y,o=$7(l,h),t.lastInterval=e}else i=s.velocity,n=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}function itt(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=X7(e)),r>1&&!i.firstMultiple?i.firstMultiple=X7(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,l=e.center=U7(n);e.timeStamp=o7(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=K7(a,l),e.distance=q7(a,l),J7(i,e),e.offsetDirection=$7(e.deltaX,e.deltaY);var h=Q7(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=r7(h.x)>r7(h.y)?h.x:h.y,e.scale=s?Z7(s.pointers,n):1,e.rotation=s?ttt(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,ett(i,e);var u,c=t.element,d=e.srcEvent;u=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target,V7(u,c)&&(c=u),e.target=c}function ntt(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=e&D7&&n-r===0,s=e&(E7|O7)&&n-r===0;i.isFirst=!!o,i.isFinal=!!s,o&&(t.session={}),i.eventType=e,itt(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function rtt(t){return t.trim().split(/\s+/g)}function ott(t,e,i){z7(rtt(e),(function(e){t.addEventListener(e,i,!1)}))}function stt(t,e,i){z7(rtt(e),(function(e){t.removeEventListener(e,i,!1)}))}function att(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var ltt=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){G7(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&ott(this.element,this.evEl,this.domHandler),this.evTarget&&ott(this.target,this.evTarget,this.domHandler),this.evWin&&ott(att(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&stt(this.element,this.evEl,this.domHandler),this.evTarget&&stt(this.target,this.evTarget,this.domHandler),this.evWin&&stt(att(this.element),this.evWin,this.domHandler)},t}();function htt(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);var n=0;while(n<t.length){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var utt={pointerdown:D7,pointermove:T7,pointerup:E7,pointercancel:O7,pointerout:O7},ctt={2:k7,3:_7,4:x7,5:S7},dtt="pointerdown",ptt="pointermove pointerup pointercancel";Q9.MSPointerEvent&&!Q9.PointerEvent&&(dtt="MSPointerDown",ptt="MSPointerMove MSPointerUp MSPointerCancel");var ftt=function(t){function e(){var i,n=e.prototype;return n.evEl=dtt,n.evWin=ptt,i=t.apply(this,arguments)||this,i.store=i.manager.session.pointerEvents=[],i}$9(e,t);var i=e.prototype;return i.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=utt[n],o=ctt[t.pointerType]||t.pointerType,s=o===k7,a=htt(e,t.pointerId,"pointerId");r&D7&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(E7|O7)&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(a,1))},e}(ltt);function mtt(t){return Array.prototype.slice.call(t,0)}function vtt(t,e,i){var n=[],r=[],o=0;while(o<t.length){var s=e?t[o][e]:t[o];htt(r,s)<0&&n.push(t[o]),r[o]=s,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var gtt={touchstart:D7,touchmove:T7,touchend:E7,touchcancel:O7},ytt="touchstart touchmove touchend touchcancel",btt=function(t){function e(){var i;return e.prototype.evTarget=ytt,i=t.apply(this,arguments)||this,i.targetIds={},i}$9(e,t);var i=e.prototype;return i.handler=function(t){var e=gtt[t.type],i=wtt.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:k7,srcEvent:t})},e}(ltt);function wtt(t,e){var i,n,r=mtt(t.touches),o=this.targetIds;if(e&(D7|T7)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=mtt(t.changedTouches),a=[],l=this.target;if(n=r.filter((function(t){return V7(t.target,l)})),e===D7){i=0;while(i<n.length)o[n[i].identifier]=!0,i++}i=0;while(i<s.length)o[s[i].identifier]&&a.push(s[i]),e&(E7|O7)&&delete o[s[i].identifier],i++;return a.length?[vtt(n.concat(a),"identifier",!0),a]:void 0}var ktt={mousedown:D7,mousemove:T7,mouseup:E7},_tt="mousedown",xtt="mousemove mouseup",Stt=function(t){function e(){var i,n=e.prototype;return n.evEl=_tt,n.evWin=xtt,i=t.apply(this,arguments)||this,i.pressed=!1,i}$9(e,t);var i=e.prototype;return i.handler=function(t){var e=ktt[t.type];e&D7&&0===t.button&&(this.pressed=!0),e&T7&&1!==t.which&&(e=E7),this.pressed&&(e&E7&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:x7,srcEvent:t}))},e}(ltt),Ctt=2500,Dtt=25;function Ttt(t){var e=t.changedPointers,i=e[0];if(i.identifier===this.primaryTouch){var n={x:i.clientX,y:i.clientY},r=this.lastTouches;this.lastTouches.push(n);var o=function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)};setTimeout(o,Ctt)}}function Ett(t,e){t&D7?(this.primaryTouch=e.changedPointers[0].identifier,Ttt.call(this,e)):t&(E7|O7)&&Ttt.call(this,e)}function Ott(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),s=Math.abs(i-r.y);if(o<=Dtt&&s<=Dtt)return!0}return!1}var Att=function(){var t=function(t){function e(e,i){var n;return n=t.call(this,e,i)||this,n.handler=function(t,e,i){var r=i.pointerType===k7,o=i.pointerType===x7;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(r)Ett.call(J9(J9(n)),e,i);else if(o&&Ott.call(J9(J9(n)),i))return;n.callback(t,e,i)}},n.touch=new btt(n.manager,n.handler),n.mouse=new Stt(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}$9(e,t);var i=e.prototype;return i.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(ltt);return t}();function Ptt(t){var e,i=t.options.inputClass;return e=i||(b7?ftt:w7?btt:y7?Att:Stt),new e(t,ntt)}function Itt(t,e,i){return!!Array.isArray(t)&&(z7(t,i[e],i),!0)}var Mtt=1,Ntt=2,Rtt=4,jtt=8,Ftt=jtt,Ltt=16,Btt=32,ztt=1;function Gtt(){return ztt++}function Htt(t,e){var i=e.manager;return i?i.get(t):t}function Wtt(t){return t&Ltt?"cancel":t&jtt?"end":t&Rtt?"move":t&Ntt?"start":""}var Ytt=function(){function t(t){void 0===t&&(t={}),this.options=K9({enable:!0},t),this.id=Gtt(),this.manager=null,this.state=Mtt,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return Z9(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Itt(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=Htt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Itt(t,"dropRecognizeWith",this)||(t=Htt(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Itt(t,"requireFailure",this))return this;var e=this.requireFail;return t=Htt(t,this),-1===htt(e,t)&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Itt(t,"dropRequireFailure",this))return this;t=Htt(t,this);var e=htt(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<jtt&&n(e.options.event+Wtt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=jtt&&n(e.options.event+Wtt(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Btt},e.canEmit=function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(Btt|Mtt)))return!1;t++}return!0},e.recognize=function(t){var e=Z9({},t);if(!G7(this.options.enable,[this,e]))return this.reset(),void(this.state=Btt);this.state&(Ftt|Ltt|Btt)&&(this.state=Mtt),this.state=this.process(e),this.state&(Ntt|Rtt|jtt|Ltt)&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),Vtt=function(t){function e(e){var i;return void 0===e&&(e={}),i=t.call(this,K9({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this,i.pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}$9(e,t);var i=e.prototype;return i.getTouchAction=function(){return[d7]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,r=t.distance<i.threshold,o=t.deltaTime<i.time;if(this.reset(),t.eventType&D7&&0===this.count)return this.failTimeout();if(r&&o&&n){if(t.eventType!==E7)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||q7(this.pCenter,t.center)<i.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t;var l=this.count%i.taps;if(0===l)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=Ftt,e.tryEmit()}),i.interval),Ntt):Ftt}return Btt},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Btt}),this.options.interval),Btt},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){this.state===Ftt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Ytt),Utt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,K9({pointers:1},e))||this}$9(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,n=e&(Ntt|Rtt),r=this.attrTest(t);return n&&(i&O7||!r)?e|Ltt:n||r?i&E7?e|jtt:e&Ntt?e|Rtt:Ntt:Btt},e}(Ytt);function Xtt(t){return t===N7?"down":t===M7?"up":t===P7?"left":t===I7?"right":""}var qtt=function(t){function e(e){var i;return void 0===e&&(e={}),i=t.call(this,K9({event:"pan",threshold:10,pointers:1,direction:F7},e))||this,i.pX=null,i.pY=null,i}$9(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return t&R7&&e.push(m7),t&j7&&e.push(f7),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&R7?(r=0===o?A7:o<0?P7:I7,i=o!==this.pX,n=Math.abs(t.deltaX)):(r=0===s?A7:s<0?M7:N7,i=s!==this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},i.attrTest=function(t){return Utt.prototype.attrTest.call(this,t)&&(this.state&Ntt||!(this.state&Ntt)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=Xtt(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(Utt),Ktt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,K9({event:"swipe",threshold:10,velocity:.3,direction:R7|j7,pointers:1},e))||this}$9(e,t);var i=e.prototype;return i.getTouchAction=function(){return qtt.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return n&(R7|j7)?i=e.overallVelocity:n&R7?i=e.overallVelocityX:n&j7&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&r7(i)>this.options.velocity&&e.eventType&E7},i.emit=function(t){var e=Xtt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Utt),$tt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,K9({event:"pinch",threshold:0,pointers:2},e))||this}$9(e,t);var i=e.prototype;return i.getTouchAction=function(){return[p7]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Ntt)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(Utt),Jtt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,K9({event:"rotate",threshold:0,pointers:2},e))||this}$9(e,t);var i=e.prototype;return i.getTouchAction=function(){return[p7]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Ntt)},e}(Utt),Qtt=function(t){function e(e){var i;return void 0===e&&(e={}),i=t.call(this,K9({event:"press",pointers:1,time:251,threshold:9},e))||this,i._timer=null,i._input=null,i}$9(e,t);var i=e.prototype;return i.getTouchAction=function(){return[c7]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,r=t.distance<i.threshold,o=t.deltaTime>i.time;if(this._input=t,!r||!n||t.eventType&(E7|O7)&&!o)this.reset();else if(t.eventType&D7)this.reset(),this._timer=setTimeout((function(){e.state=Ftt,e.tryEmit()}),i.time);else if(t.eventType&E7)return Ftt;return Btt},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){this.state===Ftt&&(t&&t.eventType&E7?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=o7(),this.manager.emit(this.options.event,this._input)))},e}(Ytt),Ztt={domEvents:!1,touchAction:u7,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},tet=[[Jtt,{enable:!1}],[$tt,{enable:!1},["rotate"]],[Ktt,{direction:R7}],[qtt,{direction:R7},["swipe"]],[Vtt],[Vtt,{event:"doubletap",taps:2},["tap"]],[Qtt]],eet=1,iet=2;function net(t,e){var i,n=t.element;n.style&&(z7(t.options.cssProps,(function(r,o){i=s7(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}function ret(t,e){var i=document.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}var oet=function(){function t(t,e){var i=this;this.options=Z9({},Ztt,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=Ptt(this),this.touchAction=new Y7(this,this.options.touchAction),net(this,!0),z7(this.options.recognizers,(function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Z9(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?iet:eet},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&Ftt)&&(e.curRecognizer=null,r=null);var o=0;while(o<n.length)i=n[o],e.stopped===iet||r&&i!==r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(Ntt|Rtt|jtt)&&(e.curRecognizer=i,r=i),o++}},e.get=function(t){if(t instanceof Ytt)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event===t)return e[i];return null},e.add=function(t){if(Itt(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(Itt(t,"remove",this))return this;var e=this.get(t);if(t){var i=this.recognizers,n=htt(i,e);-1!==n&&(i.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var i=this.handlers;return z7(rtt(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var i=this.handlers;return z7(rtt(t),(function(t){e?i[t]&&i[t].splice(htt(i[t],e),1):delete i[t]})),this},e.emit=function(t,e){this.options.domEvents&&ret(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};var n=0;while(n<i.length)i[n](e),n++}},e.destroy=function(){this.element&&net(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),set={touchstart:D7,touchmove:T7,touchend:E7,touchcancel:O7},aet="touchstart",het="touchstart touchmove touchend touchcancel",uet=function(t){function e(){var i,n=e.prototype;return n.evTarget=aet,n.evWin=het,i=t.apply(this,arguments)||this,i.started=!1,i}$9(e,t);var i=e.prototype;return i.handler=function(t){var e=set[t.type];if(e===D7&&(this.started=!0),this.started){var i=cet.call(this,t,e);e&(E7|O7)&&i[0].length-i[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:k7,srcEvent:t})}},e}(ltt);function cet(t,e){var i=mtt(t.touches),n=mtt(t.changedTouches);return e&(E7|O7)&&(i=vtt(i.concat(n),"identifier",!0)),[i,n]}function det(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,n,i),t.apply(this,arguments)}}var pet=det((function(t,e,i){var n=Object.keys(e),r=0;while(r<n.length)(!i||i&&void 0===t[n[r]])&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),fet=det((function(t,e){return pet(t,e,!0)}),"merge","Use `assign`.");function met(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&Z9(n,i)}function vet(t,e){return function(){return t.apply(e,arguments)}}var get=function(){var t=function(t,e){return void 0===e&&(e={}),new oet(t,K9({recognizers:tet.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=F7,t.DIRECTION_DOWN=N7,t.DIRECTION_LEFT=P7,t.DIRECTION_RIGHT=I7,t.DIRECTION_UP=M7,t.DIRECTION_HORIZONTAL=R7,t.DIRECTION_VERTICAL=j7,t.DIRECTION_NONE=A7,t.DIRECTION_DOWN=N7,t.INPUT_START=D7,t.INPUT_MOVE=T7,t.INPUT_END=E7,t.INPUT_CANCEL=O7,t.STATE_POSSIBLE=Mtt,t.STATE_BEGAN=Ntt,t.STATE_CHANGED=Rtt,t.STATE_ENDED=jtt,t.STATE_RECOGNIZED=Ftt,t.STATE_CANCELLED=Ltt,t.STATE_FAILED=Btt,t.Manager=oet,t.Input=ltt,t.TouchAction=Y7,t.TouchInput=btt,t.MouseInput=Stt,t.PointerEventInput=ftt,t.TouchMouseInput=Att,t.SingleTouchInput=uet,t.Recognizer=Ytt,t.AttrRecognizer=Utt,t.Tap=Vtt,t.Pan=qtt,t.Swipe=Ktt,t.Pinch=$tt,t.Rotate=Jtt,t.Press=Qtt,t.on=ott,t.off=stt,t.each=z7,t.merge=fet,t.extend=pet,t.bindFn=vet,t.assign=Z9,t.inherit=met,t.bindFn=vet,t.prefixed=s7,t.toArray=mtt,t.inArray=htt,t.uniqueArray=vtt,t.splitStr=rtt,t.boolOrFn=G7,t.hasParent=V7,t.addEventListeners=ott,t.removeEventListeners=stt,t.defaults=Z9({},Ztt,{preset:tet}),t}();get.defaults;var yet=get;function bet(t,e){var i="undefined"!==typeof E3&&t5(t)||t["@@iterator"];if(!i){if(MQ(t)||(i=wet(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function wet(t,e){var i;if(t){if("string"===typeof t)return ket(t,e);var n=z3(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?H2(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ket(t,e):void 0}}function ket(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var _et=E3("DELETE");function xet(t){for(var e,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return Set.apply(void 0,L3(e=[{},t]).call(e,n))}function Set(){var t=Cet.apply(void 0,arguments);return Tet(t),t}function Cet(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<2)return e[0];var n;if(e.length>2)return Cet.apply(void 0,L3(n=[Set(e[0],e[1])]).call(n,D3(z3(e).call(e,2))));var r=e[0],o=e[1];if(r instanceof Date&&o instanceof Date)return r.setTime(o.getTime()),r;var s,a=bet(q3(o));try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===_et?delete r[l]:null===r[l]||null===o[l]||"object"!==tJ(r[l])||"object"!==tJ(o[l])||MQ(r[l])||MQ(o[l])?r[l]=Det(o[l]):r[l]=Cet(r[l],o[l]))}}catch(h){a.e(h)}finally{a.f()}return r}function Det(t){return MQ(t)?i1(t).call(t,(function(t){return Det(t)})):"object"===tJ(t)&&null!==t?t instanceof Date?new Date(t.getTime()):Cet({},t):t}function Tet(t){for(var e=0,i=z1(t);e<i.length;e++){var n=i[e];t[n]===_et?delete t[n]:"object"===tJ(t[n])&&null!==t[n]&&Tet(t[n])}}function Eet(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Oet(e.length?e:[r6()])}function Oet(t){var e=Aet(t),i=_3(e,3),n=i[0],r=i[1],o=i[2],s=1,a=function(){var t=2091639*n+2.3283064365386963e-10*s;return n=r,r=o,o=t-(s=0|t)};return a.uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.algorithm="Alea",a.seed=t,a.version="0.9",a}function Aet(){for(var t=Pet(),e=t(" "),i=t(" "),n=t(" "),r=0;r<arguments.length;r++)e-=t(r<0||arguments.length<=r?void 0:arguments[r]),e<0&&(e+=1),i-=t(r<0||arguments.length<=r?void 0:arguments[r]),i<0&&(i+=1),n-=t(r<0||arguments.length<=r?void 0:arguments[r]),n<0&&(n+=1);return[e,i,n]}function Pet(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){t+=i.charCodeAt(n);var r=.02519603282416938*t;t=r>>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=4294967296*r}return 2.3283064365386963e-10*(t>>>0)}}function Iet(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}var Met="undefined"!==typeof window?window.Hammer||yet:function(){return Iet()};function Net(t){var e,i=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){i._dom.overlay.parentNode.removeChild(i._dom.overlay)}));var n=Met(this._dom.overlay);n.on("tap",RQ(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){n.destroy()}));var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];TZ(r).call(r,(function(t){n.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){Ret(e.target,t)||i.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",i._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&i.deactivate()}}function Ret(t,e){while(t){if(t===e)return!0;t=t.parentNode}return!1}q9(Net.prototype),Net.current=null,Net.prototype.destroy=function(){var t,e;this.deactivate();var i,n=bet(b6(t=U6(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(i=n.n()).done;){var r=i.value;r()}}catch(o){n.e(o)}finally{n.f()}},Net.prototype.activate=function(){Net.current&&Net.current.deactivate(),Net.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)},Net.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")},Net.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var jet=/^\/?Date\((-?\d+)/i,Fet=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Let=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Bet=/^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,zet=/^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 Get(t){return t instanceof Number||"number"===typeof t}function Het(t){if(t)while(!0===t.hasChildNodes()){var e=t.firstChild;e&&(Het(e),t.removeChild(e))}}function Wet(t){return t instanceof String||"string"===typeof t}function Yet(t){return"object"===tJ(t)&&null!==t}function Vet(t){if(t instanceof Date)return!0;if(Wet(t)){var e=jet.exec(t);if(e)return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function Uet(t,e,i,n){var r=!1;!0===n&&(r=null===e[i]&&void 0!==t[i]),r?delete t[i]:t[i]=e[i]}function Xet(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)if(void 0!==e[n])if(null===e[n]||"object"!==tJ(e[n]))Uet(t,e,n,i);else{var r=t[n],o=e[n];Yet(r)&&Yet(o)&&Xet(r,o,i)}}var qet=p8;function Ket(t,e){if(!MQ(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];for(var o=0,s=n;o<s.length;o++)for(var a=s[o],l=0;l<t.length;l++){var h=t[l];a&&Object.prototype.hasOwnProperty.call(a,h)&&(e[h]=a[h])}return e}function $et(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(MQ(i))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r<t.length;r++){var o=t[r];if(Object.prototype.hasOwnProperty.call(i,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?Qet(e[o],i[o],!1,n):Uet(e,i,o,n);else{if(MQ(i[o]))throw new TypeError("Arrays are not supported by deepExtend");Uet(e,i,o,n)}}return e}function Jet(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(MQ(i))throw new TypeError("Arrays are not supported by deepExtend");for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&!K8(t).call(t,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?Qet(e[r],i[r]):Uet(e,i,r,n);else if(MQ(i[r])){e[r]=[];for(var o=0;o<i[r].length;o++)e[r].push(i[r][o])}else Uet(e,i,r,n);return e}function Qet(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===i)if("object"===tJ(e[r])&&null!==e[r]&&J8(e[r])===Object.prototype)void 0===t[r]?t[r]=Qet({},e[r],i):"object"===tJ(t[r])&&null!==t[r]&&J8(t[r])===Object.prototype?Qet(t[r],e[r],i):Uet(t,e,r,n);else if(MQ(e[r])){var o;t[r]=z3(o=e[r]).call(o)}else Uet(t,e,r,n);return t}function Zet(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0}function tit(t){var e=tJ(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":MQ(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function eit(t,e){var i;return L3(i=[]).call(i,D3(t),[e])}function iit(t){return z3(t).call(t)}function nit(t){return t.getBoundingClientRect().left}function rit(t){return t.getBoundingClientRect().right}function oit(t){return t.getBoundingClientRect().top}function sit(t,e){var i=t.className.split(" "),n=e.split(" ");i=L3(i).call(i,KZ(n).call(n,(function(t){return!K8(i).call(i,t)}))),t.className=i.join(" ")}function ait(t,e){var i=t.className.split(" "),n=e.split(" ");i=KZ(i).call(i,(function(t){return!K8(n).call(n,t)})),t.className=i.join(" ")}function lit(t,e){if(MQ(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e(t[r],r,t)}var hit=g4;function uit(t,e,i){return t[e]!==i&&(t[e]=i,!0)}function cit(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}}function dit(t,e,i,n){var r;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&K8(r=navigator.userAgent).call(r,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)}function pit(t,e,i,n){var r;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&K8(r=navigator.userAgent).call(r,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)}function fit(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function mit(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode,e instanceof Element))?e:null}function vit(t,e){var i=t;while(i){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1}var git={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Wet(t)?t:Get(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function yit(t){var e;switch(t.length){case 3:case 4:return e=Let.exec(t),e?{r:q4(e[1]+e[1],16),g:q4(e[2]+e[2],16),b:q4(e[3]+e[3],16)}:null;case 6:case 7:return e=Fet.exec(t),e?{r:q4(e[1],16),g:q4(e[2],16),b:q4(e[3],16)}:null;default:return null}}function bit(t,e){if(K8(t).call(t,"rgba"))return t;if(K8(t).call(t,"rgb")){var i=t.substr(c9(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var n=yit(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}function wit(t,e,i){var n;return"#"+z3(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function kit(t,e){if(Wet(t)){var i=t;if(Ait(i)){var n,r=i1(n=i.substr(4).substr(0,i.length-5).split(",")).call(n,(function(t){return q4(t)}));i=wit(r[0],r[1],r[2])}if(!0===Oit(i)){var o=Eit(i),s={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},a={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},l=Tit(a.h,a.s,a.v),h=Tit(s.h,s.s,s.v);return{background:i,border:l,highlight:{background:h,border:l},hover:{background:h,border:l}}}return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}if(e){var u={background:t.background||e.background,border:t.border||e.border,highlight:Wet(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:Wet(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}};return u}var c={background:t.background||void 0,border:t.border||void 0,highlight:Wet(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Wet(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}};return c}function _it(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),r=Math.max(t,Math.max(e,i));if(n===r)return{h:0,s:0,v:n};var o=t===n?e-i:i===n?t-e:i-t,s=t===n?3:i===n?1:5,a=60*(s-o/(r-n))/360,l=(r-n)/r,h=r;return{h:a,s:l,v:h}}function xit(t){var e=document.createElement("div"),i={};e.style.cssText=t;for(var n=0;n<e.style.length;++n)i[e.style[n]]=e.style.getPropertyValue(e.style[n]);return i}function Sit(t,e){for(var i=xit(e),n=0,r=b9(i);n<r.length;n++){var o=_3(r[n],2),s=o[0],a=o[1];t.style.setProperty(s,a)}}function Cit(t,e){for(var i=xit(e),n=0,r=z1(i);n<r.length;n++){var o=r[n];t.style.removeProperty(o)}}function Dit(t,e,i){var n,r,o,s=Math.floor(6*t),a=6*t-s,l=i*(1-e),h=i*(1-a*e),u=i*(1-(1-a)*e);switch(s%6){case 0:n=i,r=u,o=l;break;case 1:n=h,r=i,o=l;break;case 2:n=l,r=i,o=u;break;case 3:n=l,r=h,o=i;break;case 4:n=u,r=l,o=i;break;case 5:n=i,r=l,o=h;break}return{r:Math.floor(255*n),g:Math.floor(255*r),b:Math.floor(255*o)}}function Tit(t,e,i){var n=Dit(t,e,i);return wit(n.r,n.g,n.b)}function Eit(t){var e=yit(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return _it(e.r,e.g,e.b)}function Oit(t){var e=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t);return e}function Ait(t){return Bet.test(t)}function Pit(t){return zet.test(t)}function Iit(t,e){if(null!==e&&"object"===tJ(e)){for(var i=k9(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==tJ(e[t[n]])&&(i[t[n]]=Mit(e[t[n]]));return i}return null}function Mit(t){if(null===t||"object"!==tJ(t))return null;if(t instanceof Element)return t;var e=k9(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==tJ(t[i])&&(e[i]=Mit(t[i]));return e}function Nit(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=void 0;for(r=i;r>0&&e(n,t[r-1])<0;r--)t[r]=t[r-1];t[r]=n}return t}function Rit(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return null!==t&&void 0!==t},o=function(t){return null!==t&&"object"===tJ(t)},s=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!r(i))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var a=function(t,e,i){o(t[i])||(t[i]={});var n=e[i],r=t[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},l=e[i],h=o(n)&&!s(n),u=h?n[i]:void 0,c=u?u.enabled:void 0;if(void 0!==l){if("boolean"===typeof l)return o(t[i])||(t[i]={}),void(t[i].enabled=l);if(null===l&&!o(t[i])){if(!r(u))return;t[i]=k9(u)}if(o(l)){var d=!0;void 0!==l.enabled?d=l.enabled:void 0!==c&&(d=u.enabled),a(t,e,i),t[i].enabled=d}}}function jit(t,e,i,n){var r=1e4,o=0,s=0,a=t.length-1;while(s<=a&&o<r){var l=Math.floor((s+a)/2),h=t[l],u=void 0===n?h[i]:h[i][n],c=e(u);if(0==c)return l;-1==c?s=l+1:a=l-1,o++}return-1}function Fit(t,e,i,n,r){var o,s,a,l,h=1e4,u=0,c=0,d=t.length-1;r=void 0!=r?r:function(t,e){return t==e?0:t<e?-1:1};while(c<=d&&u<h){if(l=Math.floor(.5*(d+c)),o=t[Math.max(0,l-1)][i],s=t[l][i],a=t[Math.min(t.length-1,l+1)][i],0==r(s,e))return l;if(r(o,e)<0&&r(s,e)>0)return"before"==n?Math.max(0,l-1):l;if(r(s,e)<0&&r(a,e)>0)return"before"==n?l:Math.min(t.length-1,l+1);r(s,e)<0?c=l+1:d=l-1,u++}return-1}var Lit={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Bit(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n}function zit(t,e){var i;MQ(e)||(e=[e]);var n,r=bet(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o){i=o[e[0]];for(var s=1;s<e.length;s++)i&&(i=i[e[s]]);if("undefined"!==typeof i)break}}}catch(a){r.e(a)}finally{r.f()}return i}var Git={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},Hit=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;WH(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return fJ(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!==typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!==typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"===typeof t)return Git[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===Wet(t)){if(!0===Ait(t)){var r=t.substr(4).substr(0,t.length-5).split(",");i={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===Pit(t)){var o=t.substr(5).substr(0,t.length-6).split(",");i={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Oit(t)){var s=yit(t);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===i)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: "+E9(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===e&&(this.previousColor=p8({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",sZ((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===e&&(this.initialColor=p8({},t)),this.color=t;var i=_it(t.r,t.g,t.b),n=2*Math.PI,r=this.r*i.s,o=this.centerCoordinates.x+r*Math.sin(n*i.h),s=this.centerCoordinates.y+r*Math.cos(n*i.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=_it(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=Dit(e.h,e.s,e.v);i["a"]=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=_it(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,r),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Y9(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var r=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(a){}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(a){}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=RQ(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=RQ(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=RQ(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=RQ(n=this._loadLast).call(n,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 Met(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,r,o=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,s),this.centerCoordinates={x:.5*o,y:.5*s},this.r=.49*o;var a,l=2*Math.PI/360,h=1/360,u=1/this.r;for(n=0;n<360;n++)for(r=0;r<this.r;r++)e=this.centerCoordinates.x+r*Math.sin(l*n),i=this.centerCoordinates.y+r*Math.cos(l*n),a=Dit(n*h,r*u,1),t.fillStyle="rgb("+a.r+","+a.g+","+a.b+")",t.fillRect(e-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,s)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,r=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,s=i-o,a=n-r,l=Math.atan2(s,a),h=.98*Math.min(Math.sqrt(s*s+a*a),o),u=Math.cos(l)*h+r,c=Math.sin(l)*h+o;this.colorPickerSelector.style.top=u-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=c-.5*this.colorPickerSelector.clientWidth+"px";var d=l/(2*Math.PI);d=d<0?d+1:d;var p=h/this.r,f=_it(this.color.r,this.color.g,this.color.b);f.h=d,f.s=p;var m=Dit(f.h,f.s,f.v);m["a"]=this.color.a,this.color=m,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+")"}}]),t}();function Wit(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);var n=document.createElement(e[0]);return n.appendChild(Wit.apply(void 0,D3(z3(e).call(e,1)))),n}var Yit,Vit=function(){function t(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};WH(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},p8(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Hit(r),this.wrapper=void 0}return fJ(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"===typeof t)this.options.filter=t;else if(MQ(t))this.options.filter=t.join();else if("object"===tJ(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==KZ(t)&&(this.options.filter=KZ(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"===typeof t?(this.options.filter=!0,e=t):"function"===typeof t&&(this.options.filter=t,e=!0);!1===KZ(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=KZ(this.options),e=0,i=!1;for(var n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,"function"===typeof t?(i=t(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):!0!==t&&-1===c9(t).call(t,n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return TZ(n).call(n,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");if(n.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===i){while(n.firstChild)n.removeChild(n.firstChild);n.appendChild(Wit("i","b",t))}else n.innerText=t+":";return n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==c9(t).call(t,e)&&(r=c9(t).call(t,e));for(var o=0;o<t.length;o++){var s=document.createElement("option");s.value=t[o],o===r&&(s.selected="selected"),s.innerText=t[o],n.appendChild(s)}var a=this;n.onchange=function(){a._update(this.value,i)};var l=this._makeLabel(i[i.length-1],i);this._makeItem(i,l,n)}},{key:"_makeRange",value:function(t,e,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=r,a.max=o}catch(m){}a.step=s;var l="",h=0;if(void 0!==e){var u=1.2;e<0&&e*u<r?(a.min=Math.ceil(e*u),h=a.min,l="range increased"):e/u<r&&(a.min=Math.ceil(e/u),h=a.min,l="range increased"),e*u>o&&1!==o&&(a.max=Math.ceil(e*u),h=a.max,l="range increased"),a.value=e}else a.value=n;var c=document.createElement("input");c.className="vis-configuration vis-config-rangeinput",c.value=a.value;var d=this;a.onchange=function(){c.value=this.value,d._update(Number(this.value),i)},a.oninput=function(){c.value=this.value};var p=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,p,a,c);""!==l&&this.popupHistory[f]!==h&&(this.popupHistory[f]=h,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerText=t,n.onclick=function(){i._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index],i=e.getBoundingClientRect();this.popupDiv.html.style.left=i.left+"px",this.popupDiv.html.style.top=i.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=sZ((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=sZ((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,i){var n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=t,void 0!==e&&(n.checked=e,e!==t&&("object"===tJ(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var r=this;n.onchange=function(){r._update(this.checked,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeTextInput",value:function(t,e,i){var n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=e,e!==t&&this.changedOptions.push({path:i,value:e});var r=this;n.onchange=function(){r._update(this.value,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeColorField",value:function(t,e,i){var n=this,r=t[1],o=document.createElement("div");e=void 0===e?r:e,"none"!==e?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,o.onclick=function(){n._showColorPicker(e,o,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,o)}},{key:"_showColorPicker",value:function(t,e,i){var n=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,n._update(r,i)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){n._showColorPicker(t,e,i)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,r=KZ(this.options),o=!1;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){n=!0;var a=t[s],l=eit(e,s);if("function"===typeof r&&(n=r(s,e),!1===n&&!MQ(a)&&"string"!==typeof a&&"boolean"!==typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,l,!0),this.allowCreation=!1===i)),!1!==n){o=!0;var h=this._getValue(l);if(MQ(a))this._handleArray(a,h,l);else if("string"===typeof a)this._makeTextInput(a,h,l);else if("boolean"===typeof a)this._makeCheckbox(a,h,l);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){var u=eit(l,"enabled"),c=this._getValue(u);if(!0===c){var d=this._makeLabel(s,l,!0);this._makeItem(l,d),o=this._handleObject(a,l)||o}else this._makeCheckbox(a,c,l)}else{var p=this._makeLabel(s,l,!0);this._makeItem(l,p),o=this._handleObject(a,l)||o}}else console.error("dont know how to handle",a,s,l)}}return o}},{key:"_handleArray",value:function(t,e,i){"string"===typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"===typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"===typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="true"===t||t,t="false"!==t&&t;for(var r=0;r<e.length;r++)"global"!==e[r]&&(void 0===n[e[r]]&&(n[e[r]]={}),r!==e.length-1?n=n[e[r]]:n[e[r]]=t);return i}},{key:"_printOptions",value:function(){var t=this.getOptions();while(this.optionsContainer.firstChild)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Wit("pre","const options = "+E9(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),Uit=function(){function t(e,i){WH(this,t),this.container=e,this.overflowMethod=i||"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 fJ(t,[{key:"setPosition",value:function(t,e){this.x=q4(t),this.y=q4(e)}},{key:"setText",value:function(t){if(t instanceof Element){while(this.frame.firstChild)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth,o=0,s=0;if("flip"==this.overflowMethod){var a=!1,l=!0;this.y-e<this.padding&&(l=!1),this.x+i>r-this.padding&&(a=!0),o=a?this.x-i:this.x,s=l?this.y-e:this.y}else s=this.y-e,s+e+this.padding>n&&(s=n-e-this.padding),s<this.padding&&(s=this.padding),o=this.x,o+i+this.padding>r&&(o=r-i-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=s+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),Xit=!1,qit="background: #FFeeee; color: #dd0000",Kit=function(){function t(){WH(this,t)}return fJ(t,null,[{key:"validate",value:function(e,i,n){Xit=!1,Yit=i;var r=i;return void 0!==n&&(r=i[n]),t.parse(e,r,[]),Xit}},{key:"parse",value:function(e,i,n){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.check(r,e,i,n)}},{key:"check",value:function(e,i,n,r){if(void 0!==n[e]||void 0!==n.__any__){var o=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(o="__any__",s="object"===t.getType(i[e]));var a=n[o];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,o,a,r)}else t.getSuggestion(e,n,r)}},{key:"checkFields",value:function(e,i,n,r,o,s){var a=function(i){console.error("%c"+i+t.printLocation(s,e),qit)},l=t.getType(i[e]),h=o[l];void 0!==h?"array"===t.getType(h)&&-1===c9(h).call(h,i[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(h)+' not "'+i[e]+'". '),Xit=!0):"object"===l&&"__any__"!==r&&(s=eit(s,e),t.parse(i[e],n[r],s)):void 0===o["any"]&&(a('Invalid type received for "'+e+'". Expected: '+t.print(z1(o))+". Received ["+l+'] "'+i[e]+'"'),Xit=!0)}},{key:"getType",value:function(t){var e=tJ(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":MQ(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,i,n){var r,o=t.findInOptions(e,i,n,!1),s=t.findInOptions(e,Yit,[],!0),a=8,l=4;r=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':s.distance<=l&&o.distance>s.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):o.distance<=a?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(z1(i))+t.printLocation(n,e),console.error('%cUnknown option detected: "'+e+'"'+r,qit),Xit=!0}},{key:"findInOptions",value:function(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[],l=e.toLowerCase(),h=void 0;for(var u in i){var c=void 0;if(void 0!==i[u].__type__&&!0===r){var d=t.findInOptions(e,i[u],eit(n,u));o>d.distance&&(s=d.closestMatch,a=d.path,o=d.distance,h=d.indexMatch)}else{var p;-1!==c9(p=u.toLowerCase()).call(p,l)&&(h=u),c=t.levenshteinDistance(e,u),o>c&&(s=u,a=iit(n),o=c)}}return{closestMatch:s,path:a,distance:o,indexMatch:h}}},{key:"printLocation",value:function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",n="\n\n"+i+"options = {\n",r=0;r<t.length;r++){for(var o=0;o<r+1;o++)n+="  ";n+=t[r]+": {\n"}for(var s=0;s<t.length+1;s++)n+="  ";n+=e+"\n";for(var a=0;a<t.length+1;a++){for(var l=0;l<t.length-a;l++)n+="  ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return E9(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var i,n,r=[];for(i=0;i<=e.length;i++)r[i]=[i];for(n=0;n<=t.length;n++)r[0][n]=n;for(i=1;i<=e.length;i++)for(n=1;n<=t.length;n++)e.charAt(i-1)==t.charAt(n-1)?r[i][n]=r[i-1][n-1]:r[i][n]=Math.min(r[i-1][n-1]+1,Math.min(r[i][n-1]+1,r[i-1][n]+1));return r[e.length][t.length]}}]),t}(),$it=Net,Jit=Hit,Qit=Vit,Zit=Met,tnt=Uit,ent=qit,int=Kit,nnt=Object.freeze({__proto__:null,Activator:$it,Alea:Eet,ColorPicker:Jit,Configurator:Qit,DELETE:_et,HSVToHex:Tit,HSVToRGB:Dit,Hammer:Zit,Popup:tnt,RGBToHSV:_it,RGBToHex:wit,VALIDATOR_PRINT_STYLE:ent,Validator:int,addClassName:sit,addCssText:Sit,addEventListener:dit,binarySearchCustom:jit,binarySearchValue:Fit,bridgeObject:Mit,copyAndExtendArray:eit,copyArray:iit,deepExtend:Qet,deepObjectAssign:Set,easingFunctions:Lit,equalArray:Zet,extend:qet,fillIfDefined:Xet,forEach:lit,getAbsoluteLeft:nit,getAbsoluteRight:rit,getAbsoluteTop:oit,getScrollBarWidth:Bit,getTarget:mit,getType:tit,hasParent:vit,hexToHSV:Eit,hexToRGB:yit,insertSort:Nit,isDate:Vet,isNumber:Get,isObject:Yet,isString:Wet,isValidHex:Oit,isValidRGB:Ait,isValidRGBA:Pit,mergeOptions:Rit,option:git,overrideOpacity:bit,parseColor:kit,preventDefault:fit,pureDeepObjectAssign:xet,recursiveDOMDelete:Het,removeClassName:ait,removeCssText:Cit,removeEventListener:pit,selectiveBridgeObject:Iit,selectiveDeepExtend:$et,selectiveExtend:Ket,selectiveNotDeepExtend:Jet,throttle:cit,toArray:hit,topMost:zit,updateProperty:uit}),rnt={exports:{}},ont={},snt={exports:{}},ant={};function lnt(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return t}function hnt(t,e,i){}function unt(t,e,i){}var cnt=/javascript\s*\:/gim;function dnt(t,e){return cnt.test(e)?"":e}ant.whiteList=lnt(),ant.getDefaultWhiteList=lnt,ant.onAttr=hnt,ant.onIgnoreAttr=unt,ant.safeAttrValue=dnt;var pnt={indexOf:function(t,e){var i,n;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var n,r;if(Array.prototype.forEach)return t.forEach(e,i);for(n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},fnt=pnt;function mnt(t,e){t=fnt.trimRight(t),";"!==t[t.length-1]&&(t+=";");var i=t.length,n=!1,r=0,o=0,s="";function a(){if(!n){var i=fnt.trim(t.slice(r,o)),a=i.indexOf(":");if(-1!==a){var l=fnt.trim(i.slice(0,a)),h=fnt.trim(i.slice(a+1));if(l){var u=e(r,s.length,l,h,i);u&&(s+=u+"; ")}}}r=o+1}for(;o<i;o++){var l=t[o];if("/"===l&&"*"===t[o+1]){var h=t.indexOf("*/",o+2);if(-1===h)break;o=h+1,r=o+1,n=!1}else"("===l?n=!0:")"===l?n=!1:";"===l?n||a():"\n"===l&&a()}return fnt.trim(s)}var vnt=mnt,gnt=ant,ynt=vnt;function bnt(t){return void 0===t||null===t}function wnt(t){var e={};for(var i in t)e[i]=t[i];return e}function knt(t){t=wnt(t||{}),t.whiteList=t.whiteList||gnt.whiteList,t.onAttr=t.onAttr||gnt.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||gnt.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||gnt.safeAttrValue,this.options=t}knt.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,i=e.options,n=i.whiteList,r=i.onAttr,o=i.onIgnoreAttr,s=i.safeAttrValue,a=ynt(t,(function(t,e,i,a,l){var h=n[i],u=!1;if(!0===h?u=h:"function"===typeof h?u=h(a):h instanceof RegExp&&(u=h.test(a)),!0!==u&&(u=!1),a=s(i,a),a){var c={position:e,sourcePosition:t,source:l,isWhite:u};if(u){var d=r(i,a,c);return bnt(d)?i+":"+a:d}d=o(i,a,c);return bnt(d)?void 0:d}}));return a};var _nt=knt;(function(t,e){var i=ant,n=_nt;function r(t,e){var i=new n(e);return i.process(t)}for(var o in e=t.exports=r,e.FilterCSS=n,i)e[o]=i[o];"undefined"!==typeof window&&(window.filterCSS=t.exports)})(snt,snt.exports);var xnt=snt.exports,Snt={indexOf:function(t,e){var i,n;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var n,r;if(Array.prototype.forEach)return t.forEach(e,i);for(n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,i=e.exec(t);return i?i.index:-1}},Cnt=xnt.FilterCSS,Dnt=xnt.getDefaultWhiteList,Tnt=Snt;function Ent(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Ont=new Cnt;function Ant(t,e,i){}function Pnt(t,e,i){}function Int(t,e,i){}function Mnt(t,e,i){}function Nnt(t){return t.replace(jnt,"&lt;").replace(Fnt,"&gt;")}function Rnt(t,e,i,n){if(i=Jnt(i),"href"===e||"src"===e){if(i=Tnt.trim(i),"#"===i)return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===e){if(Wnt.lastIndex=0,Wnt.test(i))return""}else if("style"===e){if(Ynt.lastIndex=0,Ynt.test(i))return"";if(Vnt.lastIndex=0,Vnt.test(i)&&(Wnt.lastIndex=0,Wnt.test(i)))return"";!1!==n&&(n=n||Ont,i=n.process(i))}return i=Qnt(i),i}var jnt=/</g,Fnt=/>/g,Lnt=/"/g,Bnt=/&quot;/g,znt=/&#([a-zA-Z0-9]*);?/gim,Gnt=/&colon;?/gim,Hnt=/&newline;?/gim,Wnt=/((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,Ynt=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Vnt=/u\s*r\s*l\s*\(.*/gi;function Unt(t){return t.replace(Lnt,"&quot;")}function Xnt(t){return t.replace(Bnt,'"')}function qnt(t){return t.replace(znt,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function Knt(t){return t.replace(Gnt,":").replace(Hnt," ")}function $nt(t){for(var e="",i=0,n=t.length;i<n;i++)e+=t.charCodeAt(i)<32?" ":t.charAt(i);return Tnt.trim(e)}function Jnt(t){return t=Xnt(t),t=qnt(t),t=Knt(t),t=$nt(t),t}function Qnt(t){return t=Unt(t),t=Nnt(t),t}function Znt(){return""}function trt(t,e){"function"!==typeof e&&(e=function(){});var i=!Array.isArray(t);function n(e){return!!i||-1!==Tnt.indexOf(t,e)}var r=[],o=!1;return{onIgnoreTag:function(t,i,s){if(n(t)){if(s.isClosing){var a="[/removed]",l=s.position+a.length;return r.push([!1!==o?o:s.position,l]),o=!1,a}return o||(o=s.position),"[removed]"}return e(t,i,s)},remove:function(t){var e="",i=0;return Tnt.forEach(r,(function(n){e+=t.slice(i,n[0]),i=n[1]})),e+=t.slice(i),e}}}function ert(t){var e="",i=0;while(i<t.length){var n=t.indexOf("\x3c!--",i);if(-1===n){e+=t.slice(i);break}e+=t.slice(i,n);var r=t.indexOf("--\x3e",n);if(-1===r)break;i=r+3}return e}function irt(t){var e=t.split("");return e=e.filter((function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))})),e.join("")}ont.whiteList=Ent(),ont.getDefaultWhiteList=Ent,ont.onTag=Ant,ont.onIgnoreTag=Pnt,ont.onTagAttr=Int,ont.onIgnoreTagAttr=Mnt,ont.safeAttrValue=Rnt,ont.escapeHtml=Nnt,ont.escapeQuote=Unt,ont.unescapeQuote=Xnt,ont.escapeHtmlEntities=qnt,ont.escapeDangerHtml5Entities=Knt,ont.clearNonPrintableCharacter=$nt,ont.friendlyAttrValue=Jnt,ont.escapeAttrValue=Qnt,ont.onIgnoreTagStripAll=Znt,ont.StripTagBody=trt,ont.stripCommentTag=ert,ont.stripBlankChar=irt,ont.cssFilter=Ont,ont.getDefaultCSSWhiteList=Dnt;var nrt={},rrt=Snt;function ort(t){var e,i=rrt.spaceIndex(t);return e=-1===i?t.slice(1,-1):t.slice(1,i+1),e=rrt.trim(e).toLowerCase(),"/"===e.slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}function srt(t){return"</"===t.slice(0,2)}function art(t,e,i){var n="",r=0,o=!1,s=!1,a=0,l=t.length,h="",u="";t:for(a=0;a<l;a++){var c=t.charAt(a);if(!1===o){if("<"===c){o=a;continue}}else if(!1===s){if("<"===c){n+=i(t.slice(r,a)),o=a,r=a;continue}if(">"===c||a===l-1){n+=i(t.slice(r,o)),u=t.slice(o,a+1),h=ort(u),n+=e(o,n.length,h,u,srt(u)),r=a+1,o=!1;continue}if('"'===c||"'"===c){var d=1,p=t.charAt(a-d);while(""===p.trim()||"="===p){if("="===p){s=c;continue t}p=t.charAt(a-++d)}}}else if(c===s){s=!1;continue}}return r<l&&(n+=i(t.substr(r))),n}var lrt=/[^a-zA-Z0-9\\_:.-]/gim;function hrt(t,e){var i=0,n=0,r=[],o=!1,s=t.length;function a(t,i){if(t=rrt.trim(t),t=t.replace(lrt,"").toLowerCase(),!(t.length<1)){var n=e(t,i||"");n&&r.push(n)}}for(var l=0;l<s;l++){var h,u,c=t.charAt(l);if(!1!==o||"="!==c)if(!1===o||l!==n)if(/\s|\n|\t/.test(c)){if(t=t.replace(/\s|\n|\t/g," "),!1===o){if(u=urt(t,l),-1===u){h=rrt.trim(t.slice(i,l)),a(h),o=!1,i=l+1;continue}l=u-1;continue}if(u=drt(t,l-1),-1===u){h=rrt.trim(t.slice(i,l)),h=frt(h),a(o,h),o=!1,i=l+1;continue}}else;else{if(u=t.indexOf(c,l+1),-1===u)break;h=rrt.trim(t.slice(n+1,u)),a(o,h),o=!1,l=u,i=l+1}else o=t.slice(i,l),i=l+1,n='"'===t.charAt(i)||"'"===t.charAt(i)?i:crt(t,l+1)}return i<t.length&&(!1===o?a(t.slice(i)):a(o,frt(rrt.trim(t.slice(i))))),rrt.trim(r.join(" "))}function urt(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"="===i?e:-1}}function crt(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"'"===i||'"'===i?e:-1}}function drt(t,e){for(;e>0;e--){var i=t[e];if(" "!==i)return"="===i?e:-1}}function prt(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}function frt(t){return prt(t)?t.substr(1,t.length-2):t}nrt.parseTag=art,nrt.parseAttr=hrt;var mrt=xnt.FilterCSS,vrt=ont,grt=nrt,yrt=grt.parseTag,brt=grt.parseAttr,wrt=Snt;function krt(t){return void 0===t||null===t}function _rt(t){var e=wrt.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};t=wrt.trim(t.slice(e+1,-1));var i="/"===t[t.length-1];return i&&(t=wrt.trim(t.slice(0,-1))),{html:t,closing:i}}function xrt(t){var e={};for(var i in t)e[i]=t[i];return e}function Srt(t){var e={};for(var i in t)Array.isArray(t[i])?e[i.toLowerCase()]=t[i].map((function(t){return t.toLowerCase()})):e[i.toLowerCase()]=t[i];return e}function Crt(t){t=xrt(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=vrt.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=Srt(t.whiteList||t.allowList):t.whiteList=vrt.whiteList,t.onTag=t.onTag||vrt.onTag,t.onTagAttr=t.onTagAttr||vrt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||vrt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||vrt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||vrt.safeAttrValue,t.escapeHtml=t.escapeHtml||vrt.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new mrt(t.css))}Crt.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,i=e.options,n=i.whiteList,r=i.onTag,o=i.onIgnoreTag,s=i.onTagAttr,a=i.onIgnoreTagAttr,l=i.safeAttrValue,h=i.escapeHtml,u=e.cssFilter;i.stripBlankChar&&(t=vrt.stripBlankChar(t)),i.allowCommentTag||(t=vrt.stripCommentTag(t));var c=!1;i.stripIgnoreTagBody&&(c=vrt.StripTagBody(i.stripIgnoreTagBody,o),o=c.onIgnoreTag);var d=yrt(t,(function(t,e,i,c,d){var p={sourcePosition:t,position:e,isClosing:d,isWhite:Object.prototype.hasOwnProperty.call(n,i)},f=r(i,c,p);if(!krt(f))return f;if(p.isWhite){if(p.isClosing)return"</"+i+">";var m=_rt(c),v=n[i],g=brt(m.html,(function(t,e){var n=-1!==wrt.indexOf(v,t),r=s(i,t,e,n);return krt(r)?n?(e=l(i,t,e,u),e?t+'="'+e+'"':t):(r=a(i,t,e,n),krt(r)?void 0:r):r}));return c="<"+i,g&&(c+=" "+g),m.closing&&(c+=" /"),c+=">",c}return f=o(i,c,p),krt(f)?h(c):f}),h);return c&&(d=c.remove(d)),d};var Drt=Crt;(function(t,e){var i=ont,n=nrt,r=Drt;function o(t,e){var i=new r(e);return i.process(t)}function s(){return"undefined"!==typeof self&&"undefined"!==typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope}e=t.exports=o,e.filterXSS=o,e.FilterXSS=r,function(){for(var t in i)e[t]=i[t];for(var r in n)e[r]=n[r]}(),"undefined"!==typeof window&&(window.filterXSS=t.exports),s()&&(self.filterXSS=t.exports)})(rnt,rnt.exports);var Trt=rnt.exports,Ert=yj(Trt);let Ort;const Art=new Uint8Array(16);function Prt(){if(!Ort&&(Ort="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ort))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ort(Art)}const Irt=[];for(let i=0;i<256;++i)Irt.push((i+256).toString(16).slice(1));function Mrt(t,e=0){return Irt[t[e+0]]+Irt[t[e+1]]+Irt[t[e+2]]+Irt[t[e+3]]+"-"+Irt[t[e+4]]+Irt[t[e+5]]+"-"+Irt[t[e+6]]+Irt[t[e+7]]+"-"+Irt[t[e+8]]+Irt[t[e+9]]+"-"+Irt[t[e+10]]+Irt[t[e+11]]+Irt[t[e+12]]+Irt[t[e+13]]+Irt[t[e+14]]+Irt[t[e+15]]}const Nrt="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var Rrt={randomUUID:Nrt};function jrt(t,e,i){if(Rrt.randomUUID&&!e&&!t)return Rrt.randomUUID();t=t||{};const n=t.random||(t.rng||Prt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(let t=0;t<16;++t)e[i+t]=n[t];return e}return Mrt(n)}function Frt(t,e){var i=z1(t);if(RZ){var n=RZ(t);e&&(n=KZ(n).call(n,(function(e){return u0(t,e).enumerable}))),i.push.apply(i,n)}return i}function Lrt(t){for(var e=1;e<arguments.length;e++){var i,n,r=null!=arguments[e]?arguments[e]:{};e%2?TZ(i=Frt(Object(r),!0)).call(i,(function(e){H0(t,e,r[e])})):O0?G0(t,O0(r)):TZ(n=Frt(Object(r))).call(n,(function(e){H1(t,e,u0(r,e))}))}return t}function Brt(t){var e;if(!t)return!1;var i=null!==(e=t.idProp)&&void 0!==e?e:t._idProp;return!!i&&fj(i,t)}var zrt=/^\/?Date\((-?\d+)/i,Grt=/^\d+$/;function Hrt(t,e){var i;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!==typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return Wet(t)&&!isNaN(Date.parse(t))?vj()(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":try{return Hrt(t,"Moment").toDate()}catch(r){throw r instanceof TypeError?new TypeError("Cannot convert object of type "+tit(t)+" to type "+e):r}case"Moment":if(Get(t))return vj()(t);if(t instanceof Date)return vj()(t.valueOf());if(vj().isMoment(t))return vj()(t);if(Wet(t))return i=zrt.exec(t),i?vj()(Number(i[1])):(i=Grt.exec(t),i?vj()(Number(t)):vj()(t));throw new TypeError("Cannot convert object of type "+tit(t)+" to type "+e);case"ISODate":if(Get(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(vj().isMoment(t))return t.toDate().toISOString();if(Wet(t))return i=zrt.exec(t),i?new Date(Number(i[1])).toISOString():vj()(t).format();throw new Error("Cannot convert object of type "+tit(t)+" to type ISODate");case"ASPDate":if(Get(t))return"/Date("+t+")/";if(t instanceof Date||vj().isMoment(t))return"/Date("+t.valueOf()+")/";var n;if(Wet(t))return i=zrt.exec(t),n=i?new Date(Number(i[1])).valueOf():new Date(t).valueOf(),"/Date("+n+")/";throw new Error("Cannot convert object of type "+tit(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function Wrt(t){var e,i,n,r,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"},l=t._idProp,h=new sj({fieldId:l}),u=i1(e=Sm(t)).call(e,(function(t){var e;return O1(e=z1(t)).call(e,(function(e,i){return e[i]=Hrt(t[i],a[i]),e}),{})})).to(h);return u.all().start(),{add:function(){var e;return(e=t.getDataSet()).add.apply(e,arguments)},remove:function(){var e;return(e=t.getDataSet()).remove.apply(e,arguments)},update:function(){var e;return(e=t.getDataSet()).update.apply(e,arguments)},updateOnly:function(){var e;return(e=t.getDataSet()).updateOnly.apply(e,arguments)},clear:function(){var e;return(e=t.getDataSet()).clear.apply(e,arguments)},forEach:RQ(i=TZ(h)).call(i,h),get:RQ(n=h.get).call(n,h),getIds:RQ(r=h.getIds).call(r,h),off:RQ(o=h.off).call(o,h),on:RQ(s=h.on).call(s,h),get length(){return h.length},idProp:l,type:a,rawDS:t,coercedDS:h,dispose:function(){return u.stop()}}}var Yrt=function(t){var e=new Ert.FilterXSS(t);return function(t){return e.process(t)}},Vrt=function(t){return t},Urt=Yrt(),Xrt=function(t){t&&(!0===t.disabled?(Urt=Vrt,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(Urt=Yrt(t.filterOptions)))},qrt=Lrt(Lrt({},nnt),{},{convert:Hrt,setupXSSProtection:Xrt});H1(qrt,"xss",{get:function(){return Urt}});var Krt=wj,$rt=kj,Jrt=Mj,Qrt=XW,Zrt=T4.trim,tot=y4,eot=Jrt("".charAt),iot=Krt.parseFloat,not=Krt.Symbol,rot=not&&not.iterator,oot=1/iot(tot+"-0")!==-1/0||rot&&!$rt((function(){iot(Object(rot))})),sot=oot?function(t){var e=Zrt(Qrt(t)),i=iot(e);return 0===i&&"-"===eot(e,0)?-0:i}:iot,aot=mz,lot=sot;aot({global:!0,forced:parseFloat!==lot},{parseFloat:lot});var hot=xF,uot=hot.parseFloat,cot=uot,dot=cot,pot=dot,fot=yj(pot),mot=function(){function t(e,i){WH(this,t),this.options=null,this.props=null}return fJ(t,[{key:"setOptions",value:function(t){t&&qrt.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}]),t}(),vot=yG,got=XW,yot=mF,bot=RangeError,wot=function(t){var e=got(yot(this)),i="",n=vot(t);if(n<0||n===1/0)throw new bot("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i},kot=mz,_ot=wot;kot({target:"String",proto:!0},{repeat:_ot});var xot=VJ,Sot=xot("String").repeat,Cot=AF,Dot=Sot,Tot=String.prototype,Eot=function(t){var e=t.repeat;return"string"==typeof t||t===Tot||Cot(Tot,t)&&e===Tot.repeat?Dot:e},Oot=Eot,Aot=Oot,Pot=Aot,Iot=yj(Pot),Mot=rY,Not=Math.floor,Rot=function(t,e){var i=t.length,n=Not(i/2);return i<8?jot(t,e):Fot(t,Rot(Mot(t,0,n),e),Rot(Mot(t,n),e),e)},jot=function(t,e){var i,n,r=t.length,o=1;while(o<r){n=o,i=t[o];while(n&&e(t[n-1],i)>0)t[n]=t[--n];n!==o++&&(t[n]=i)}return t},Fot=function(t,e,i,n){var r=e.length,o=i.length,s=0,a=0;while(s<r||a<o)t[s+a]=s<r&&a<o?n(e[s],i[a])<=0?e[s++]:i[a++]:s<r?e[s++]:i[a++];return t},Lot=Rot,Bot=PF,zot=Bot.match(/firefox\/(\d+)/i),Got=!!zot&&+zot[1],Hot=PF,Wot=/MSIE|Trident/.test(Hot),Yot=PF,Vot=Yot.match(/AppleWebKit\/(\d+)\./),Uot=!!Vot&&+Vot[1],Xot=mz,qot=Mj,Kot=nL,$ot=CL,Jot=TG,Qot=_6,Zot=XW,tst=kj,est=Lot,ist=lZ,nst=Got,rst=Wot,ost=LF,sst=Uot,ast=[],lst=qot(ast.sort),hst=qot(ast.push),ust=tst((function(){ast.sort(void 0)})),cst=tst((function(){ast.sort(null)})),dst=ist("sort"),pst=!tst((function(){if(ost)return ost<70;if(!(nst&&nst>3)){if(rst)return!0;if(sst)return sst<603;var t,e,i,n,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)ast.push({k:e+n,v:i})}for(ast.sort((function(t,e){return e.v-t.v})),n=0;n<ast.length;n++)e=ast[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}})),fst=ust||!cst||!dst||!pst,mst=function(t){return function(e,i){return void 0===i?-1:void 0===e?1:void 0!==t?+t(e,i)||0:Zot(e)>Zot(i)?1:-1}};Xot({target:"Array",proto:!0,forced:fst},{sort:function(t){void 0!==t&&Kot(t);var e=$ot(this);if(pst)return void 0===t?lst(e):lst(e,t);var i,n,r=[],o=Jot(e);for(n=0;n<o;n++)n in e&&hst(r,e[n]);est(r,mst(t)),i=Jot(r),n=0;while(n<i)e[n]=r[n++];while(n<o)Qot(e,n++);return e}});var vst=VJ,gst=vst("Array").sort,yst=AF,bst=gst,wst=Array.prototype,kst=function(t){var e=t.sort;return t===wst||yst(wst,t)&&e===wst.sort?bst:e},_st=kst,xst=_st,Sst=xst,Cst=yj(Sst);function Dst(t,e,i){if(i&&!MQ(i))return Dst(t,e,[i]);if(e.hiddenDates=[],i&&1==MQ(i)){for(var n,r=0;r<i.length;r++)if(void 0===Iot(i[r])){var o={};o.start=t(i[r].start).toDate().valueOf(),o.end=t(i[r].end).toDate().valueOf(),e.hiddenDates.push(o)}Cst(n=e.hiddenDates).call(n,(function(t,e){return t.start-e.start}))}}function Tst(t,e,i){if(i&&!MQ(i))return Tst(t,e,[i]);if(i&&void 0!==e.domProps.centerContainer.width){Dst(t,e,i);for(var n=t(e.range.start),r=t(e.range.end),o=e.range.end-e.range.start,s=o/e.domProps.centerContainer.width,a=0;a<i.length;a++)if(void 0!==Iot(i[a])){var l=t(i[a].start),h=t(i[a].end);if("Invalid Date"==l._d)throw new Error("Supplied start date is not valid: ".concat(i[a].start));if("Invalid Date"==h._d)throw new Error("Supplied end date is not valid: ".concat(i[a].end));var u=h-l;if(u>=4*s){var c=0,d=r.clone();switch(Iot(i[a])){case"daily":l.day()!=h.day()&&(c=1),l.dayOfYear(n.dayOfYear()),l.year(n.year()),l.subtract(7,"days"),h.dayOfYear(n.dayOfYear()),h.year(n.year()),h.subtract(7-c,"days"),d.add(1,"weeks");break;case"weekly":var p=h.diff(l,"days"),f=l.day();l.date(n.date()),l.month(n.month()),l.year(n.year()),h=l.clone(),l.day(f),h.day(f),h.add(p,"days"),l.subtract(1,"weeks"),h.subtract(1,"weeks"),d.add(1,"weeks");break;case"monthly":l.month()!=h.month()&&(c=1),l.month(n.month()),l.year(n.year()),l.subtract(1,"months"),h.month(n.month()),h.year(n.year()),h.subtract(1,"months"),h.add(c,"months"),d.add(1,"months");break;case"yearly":l.year()!=h.year()&&(c=1),l.year(n.year()),l.subtract(1,"years"),h.year(n.year()),h.subtract(1,"years"),h.add(c,"years"),d.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Iot(i[a]))}while(l<d)switch(e.hiddenDates.push({start:l.valueOf(),end:h.valueOf()}),Iot(i[a])){case"daily":l.add(1,"days"),h.add(1,"days");break;case"weekly":l.add(1,"weeks"),h.add(1,"weeks");break;case"monthly":l.add(1,"months"),h.add(1,"months");break;case"yearly":l.add(1,"y"),h.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Iot(i[a]))}e.hiddenDates.push({start:l.valueOf(),end:h.valueOf()})}}Est(e);var m=Lst(e.range.start,e.hiddenDates),v=Lst(e.range.end,e.hiddenDates),g=e.range.start,y=e.range.end;1==m.hidden&&(g=1==e.range.startToFront?m.startDate-1:m.endDate+1),1==v.hidden&&(y=1==e.range.endToFront?v.startDate-1:v.endDate+1),1!=m.hidden&&1!=v.hidden||e.range._applyRange(g,y)}}function Est(t){for(var e,i=t.hiddenDates,n=[],r=0;r<i.length;r++)for(var o=0;o<i.length;o++)r!=o&&1!=i[o].remove&&1!=i[r].remove&&(i[o].start>=i[r].start&&i[o].end<=i[r].end?i[o].remove=!0:i[o].start>=i[r].start&&i[o].start<=i[r].end?(i[r].end=i[o].end,i[o].remove=!0):i[o].end>=i[r].start&&i[o].end<=i[r].end&&(i[r].start=i[o].start,i[o].remove=!0));for(r=0;r<i.length;r++)!0!==i[r].remove&&n.push(i[r]);t.hiddenDates=n,Cst(e=t.hiddenDates).call(e,(function(t,e){return t.start-e.start}))}function Ost(t,e,i){for(var n=!1,r=e.current.valueOf(),o=0;o<e.hiddenDates.length;o++){var s=e.hiddenDates[o].start,a=e.hiddenDates[o].end;if(r>=s&&r<a){n=!0;break}}if(1==n&&r<e._end.valueOf()&&r!=i){var l=t(i),h=t(a);l.year()!=h.year()?e.switchedYear=!0:l.month()!=h.month()?e.switchedMonth=!0:l.dayOfYear()!=h.dayOfYear()&&(e.switchedDay=!0),e.current=h}}function Ast(t,e,i){var n;if(0==t.body.hiddenDates.length)return n=t.range.conversion(i),(e.valueOf()-n.offset)*n.scale;var r=Lst(e,t.body.hiddenDates);1==r.hidden&&(e=r.startDate);var o=Ist(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){n=t.range.conversion(i,o);var s=Mst(t.body.hiddenDates,e,n.offset);return e=t.options.moment(e).toDate().valueOf(),e+=s,-(n.offset-e.valueOf())*n.scale}if(e>t.range.end){var a={start:t.range.start,end:e};return e=Nst(t.options.moment,t.body.hiddenDates,a,e),n=t.range.conversion(i,o),(e.valueOf()-n.offset)*n.scale}return e=Nst(t.options.moment,t.body.hiddenDates,t.range,e),n=t.range.conversion(i,o),(e.valueOf()-n.offset)*n.scale}function Pst(t,e,i){if(0==t.body.hiddenDates.length){var n=t.range.conversion(i);return new Date(e/n.scale+n.offset)}var r=Ist(t.body.hiddenDates,t.range.start,t.range.end),o=t.range.end-t.range.start-r,s=o*e/i,a=jst(t.body.hiddenDates,t.range,s);return new Date(a+s+t.range.start)}function Ist(t,e,i){for(var n=0,r=0;r<t.length;r++){var o=t[r].start,s=t[r].end;o>=e&&s<i&&(n+=s-o)}return n}function Mst(t,e,i){for(var n=0,r=0;r<t.length;r++){var o=t[r].start,s=t[r].end;o>=e&&s<=i&&(n+=s-o)}return n}function Nst(t,e,i,n){return n=t(n).toDate().valueOf(),n-=Rst(t,e,i,n),n}function Rst(t,e,i,n){var r=0;n=t(n).toDate().valueOf();for(var o=0;o<e.length;o++){var s=e[o].start,a=e[o].end;s>=i.start&&a<i.end&&n>=a&&(r+=a-s)}return r}function jst(t,e,i){for(var n=0,r=0,o=e.start,s=0;s<t.length;s++){var a=t[s].start,l=t[s].end;if(a>=e.start&&l<e.end){if(r+=a-o,o=l,r>=i)break;n+=l-a}}return n}function Fst(t,e,i,n){var r=Lst(e,t);return 1==r.hidden?i<0?1==n?r.startDate-(r.endDate-e)-1:r.startDate-1:1==n?r.endDate+(e-r.startDate)+1:r.endDate+1:e}function Lst(t,e){for(var i=0;i<e.length;i++){var n=e[i].start,r=e[i].end;if(t>=n&&t<r)return{hidden:!0,startDate:n,endDate:r}}return{hidden:!1,startDate:n,endDate:r}}function Bst(t){var e=zst();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function zst(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var Gst=function(t){aQ(i,t);var e=Bst(i);function i(t,n){var r,o,s,a,l,h,u,c;WH(this,i),c=e.call(this);var d=OZ().hours(0).minutes(0).seconds(0).milliseconds(0),p=d.clone().add(-3,"days").valueOf(),f=d.clone().add(3,"days").valueOf();return c.millisecondsPerPixelCache=void 0,void 0===n?(c.start=p,c.end=f):(c.start=n.start||p,c.end=n.end||f),c.rolling=!1,c.body=t,c.deltaDifference=0,c.scaleOffset=0,c.startToFront=!1,c.endToFront=!0,c.defaultOptions={rtl:!1,start:null,end:null,moment:OZ,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},c.options=qrt.extend({},c.defaultOptions),c.props={touch:{}},c.animationTimer=null,c.body.emitter.on("panstart",RQ(r=c._onDragStart).call(r,mJ(c))),c.body.emitter.on("panmove",RQ(o=c._onDrag).call(o,mJ(c))),c.body.emitter.on("panend",RQ(s=c._onDragEnd).call(s,mJ(c))),c.body.emitter.on("mousewheel",RQ(a=c._onMouseWheel).call(a,mJ(c))),c.body.emitter.on("touch",RQ(l=c._onTouch).call(l,mJ(c))),c.body.emitter.on("pinch",RQ(h=c._onPinch).call(h,mJ(c))),c.body.dom.rollingModeBtn.addEventListener("click",RQ(u=c.startRolling).call(u,mJ(c))),c.setOptions(n),c}return fJ(i,[{key:"setOptions",value:function(t){if(t){var e=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"];qrt.selectiveExtend(e,this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),("start"in t||"end"in t)&&this.setRange(t.start,t.end)}}},{key:"startRolling",value:function(){var t=this;function e(){t.stopRolling(),t.rolling=!0;var i=t.end-t.start,n=qrt.convert(new Date,"Date").valueOf(),r=t.options.rollingMode&&t.options.rollingMode.offset||.5,o=n-i*r,s=n+i*(1-r),a={animation:!1};t.setRange(o,s,a);var l=t.conversion(t.body.domProps.center.width).scale;i=1/l/10,i<30&&(i=30),i>1e3&&(i=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=sZ(e,i)}e()}},{key:"stopRolling",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(t,e,i,n,r){i||(i={}),!0!==i.byUser&&(i.byUser=!1);var o=this,s=void 0!=t?qrt.convert(t,"Date").valueOf():null,a=void 0!=e?qrt.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){var l,h=this.start,u=this.end,c="object"===tJ(i.animation)&&"duration"in i.animation?i.animation.duration:500,d="object"===tJ(i.animation)&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",p=qrt.easingFunctions[d];if(!p)throw new Error(L3(l="Unknown easing function ".concat(E9(d),". Choose from: ")).call(l,z1(qrt.easingFunctions).join(", ")));var f=r6(),m=!1,v=function t(){if(!o.props.touch.dragging){var e=r6(),l=e-f,d=p(l/c),v=l>c,y=v||null===s?s:h+(s-h)*d,b=v||null===a?a:u+(a-u)*d;g=o._applyRange(y,b),Tst(o.options.moment,o.body,o.options.hiddenDates),m=m||g;var w={start:new Date(o.start),end:new Date(o.end),byUser:i.byUser,event:i.event};if(r&&r(d,g,v),g&&o.body.emitter.emit("rangechange",w),v){if(m&&(o.body.emitter.emit("rangechanged",w),n))return n()}else o.animationTimer=sZ(t,20)}};return v()}var g=this._applyRange(s,a);if(Tst(this.options.moment,this.body,this.options.hiddenDates),g){var y={start:new Date(this.start),end:new Date(this.end),byUser:i.byUser,event:i.event};if(this.body.emitter.emit("rangechange",y),clearTimeout(o.timeoutID),o.timeoutID=sZ((function(){o.body.emitter.emit("rangechanged",y)}),200),n)return n()}}},{key:"getMillisecondsPerPixel",value:function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(t,e){var i,n=null!=t?qrt.convert(t,"Date").valueOf():this.start,r=null!=e?qrt.convert(e,"Date").valueOf():this.end,o=null!=this.options.max?qrt.convert(this.options.max,"Date").valueOf():null,s=null!=this.options.min?qrt.convert(this.options.min,"Date").valueOf():null;if(isNaN(n)||null===n)throw new Error('Invalid start "'.concat(t,'"'));if(isNaN(r)||null===r)throw new Error('Invalid end "'.concat(e,'"'));if(r<n&&(r=n),null!==s&&n<s&&(i=s-n,n+=i,r+=i,null!=o&&r>o&&(r=o)),null!==o&&r>o&&(i=r-o,n-=i,r-=i,null!=s&&n<s&&(n=s)),null!==this.options.zoomMin){var a=fot(this.options.zoomMin);if(a<0&&(a=0),r-n<a){var l=.5;this.end-this.start===a&&n>=this.start-l&&r<=this.end?(n=this.start,r=this.end):(i=a-(r-n),n-=i/2,r+=i/2)}}if(null!==this.options.zoomMax){var h=fot(this.options.zoomMax);h<0&&(h=0),r-n>h&&(this.end-this.start===h&&n<this.start&&r>this.end?(n=this.start,r=this.end):(i=r-n-h,n+=i/2,r-=i/2))}var u=this.start!=n||this.end!=r;return n>=this.start&&n<=this.end||r>=this.start&&r<=this.end||this.start>=n&&this.start<=r||this.end>=n&&this.end<=r||this.body.emitter.emit("checkRangedItems"),this.start=n,this.end=r,u}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(t,e){return i.conversion(this.start,this.end,t,e)}},{key:"_onDragStart",value:function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e=this.options.direction;Hst(e);var i="horizontal"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;var n=this.props.touch.end-this.props.touch.start,r=Ist(this.body.hiddenDates,this.start,this.end);n-=r;var o,s="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;o=this.options.rtl?i/s*n:-i/s*n;var a=this.props.touch.start+o,l=this.props.touch.end+o,h=Fst(this.body.hiddenDates,a,this.previousDelta-i,!0),u=Fst(this.body.hiddenDates,l,this.previousDelta-i,!0);if(h!=a||u!=l)return this.deltaDifference+=i,this.props.touch.start=h,this.props.touch.end=u,void this._onDrag(t);this.previousDelta=i,this._applyRange(a,l);var c=new Date(this.start),d=new Date(this.end);this.body.emitter.emit("rangechange",{start:c,end:d,byUser:!0,event:t}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(t){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:t}))}},{key:"_onMouseWheel",value:function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail?e=-t.detail/3:t.deltaY&&(e=-t.deltaY/3),!(this.options.zoomKey&&!t[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&e){var i,n,r=this.options.zoomFriction||5;if(i=e<0?1-e/r:1/(1+e/r),this.rolling){var o=this.options.rollingMode&&this.options.rollingMode.offset||.5;n=this.start+(this.end-this.start)*o}else{var s=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);n=this._pointerToDate(s)}this.zoom(i,n,e,t),t.preventDefault()}}},{key:"_onTouch",value:function(t){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,qrt.preventDefault(t)}},{key:"_onPinch",value:function(t){if(this.options.zoomable&&this.options.moveable){qrt.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),i=this.props.touch.centerDate,n=Ist(this.body.hiddenDates,this.start,this.end),r=Rst(this.options.moment,this.body.hiddenDates,this,i),o=n-r,s=i-r+(this.props.touch.start-(i-r))*e,a=i+o+(this.props.touch.end-(i+o))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var l=Fst(this.body.hiddenDates,s,1-e,!0),h=Fst(this.body.hiddenDates,a,e-1,!0);l==s&&h==a||(this.props.touch.start=l,this.props.touch.end=h,this.scaleOffset=1-t.scale,s=l,a=h);var u={animation:!1,byUser:!0,event:t};this.setRange(s,a,u),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(t){var e=t.center?t.center.x:t.clientX,i=this.body.dom.centerContainer.getBoundingClientRect(),n=this.options.rtl?e-i.left:i.right-e,r=this.body.util.toTime(n);return r>=this.start&&r<=this.end}},{key:"_pointerToDate",value:function(t){var e,i=this.options.direction;if(Hst(i),"horizontal"==i)return this.body.util.toTime(t.x).valueOf();var n=this.body.domProps.center.height;return e=this.conversion(n),t.y/e.scale+e.offset}},{key:"getPointer",value:function(t,e){var i=e.getBoundingClientRect();return this.options.rtl?{x:i.right-t.x,y:t.y-i.top}:{x:t.x-i.left,y:t.y-i.top}}},{key:"zoom",value:function(t,e,i,n){null==e&&(e=(this.start+this.end)/2);var r=Ist(this.body.hiddenDates,this.start,this.end),o=Rst(this.options.moment,this.body.hiddenDates,this,e),s=r-o,a=e-o+(this.start-(e-o))*t,l=e+s+(this.end-(e+s))*t;this.startToFront=!(i>0),this.endToFront=!(-i>0);var h=Fst(this.body.hiddenDates,a,i,!0),u=Fst(this.body.hiddenDates,l,-i,!0);h==a&&u==l||(a=h,l=u);var c={animation:!1,byUser:!0,event:n};this.setRange(a,l,c),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(t){var e=this.end-this.start,i=this.start+e*t,n=this.end+e*t;this.start=i,this.end=n}},{key:"moveTo",value:function(t){var e=(this.start+this.end)/2,i=e-t,n=this.start-i,r=this.end-i,o={animation:!1,byUser:!0,event:null};this.setRange(n,r,o)}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(t,e,i,n){return void 0===n&&(n=0),0!=i&&e-t!=0?{offset:t,scale:i/(e-t-n)}:{offset:0,scale:1}}}]),i}(mot);function Hst(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var Wst=mz,Yst=vV.some,Vst=lZ,Ust=Vst("some");Wst({target:"Array",proto:!0,forced:!Ust},{some:function(t){return Yst(this,t,arguments.length>1?arguments[1]:void 0)}});var Xst,qst=VJ,Kst=qst("Array").some,$st=AF,Jst=Kst,Qst=Array.prototype,Zst=function(t){var e=t.some;return t===Qst||$st(Qst,t)&&e===Qst.some?Jst:e},tat=Zst,eat=tat,iat=eat,nat=yj(iat),rat=xF,oat=rat.setInterval,sat=oat,aat=yj(sat),lat=null;function hat(t,e){var i=e||{preventDefault:!1};if(t.Manager){var n=t,r=function(t,e){var r=Object.create(i);return e&&n.assign(r,e),hat(new n(t,r),r)};return n.assign(r,n),r.Manager=function(t,e){var r=Object.create(i);return e&&n.assign(r,e),hat(new n.Manager(t,r),r)},r}var o=Object.create(t),s=t.element;function a(t){return t.match(/[^ ]+/g)}function l(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var i=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof i&&(t.srcEvent.stopPropagation=function(){i(),t.stopPropagation()}),t.firstTarget=lat;var n=lat;while(n&&!e){var r=n.hammer;if(r)for(var o,s=0;s<r.length;s++)if(o=r[s]._handlers[t.type],o)for(var a=0;a<o.length&&!e;a++)o[a](t);n=n.parentNode}}return s.hammer||(s.hammer=[]),s.hammer.push(o),t.on("hammer.input",(function(t){!0!==i.preventDefault&&i.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(lat=t.target)})),o._handlers={},o.on=function(e,i){return a(e).forEach((function(e){var n=o._handlers[e];n||(o._handlers[e]=n=[],t.on(e,l)),n.push(i)})),o},o.off=function(e,i){return a(e).forEach((function(e){var n=o._handlers[e];n&&(n=i?n.filter((function(t){return t!==i})):[],n.length>0?o._handlers[e]=n:(t.off(e,l),delete o._handlers[e]))})),o},o.emit=function(e,i){lat=i.target,t.emit(e,i)},o.destroy=function(){var e=t.element.hammer,i=e.indexOf(o);-1!==i&&e.splice(i,1),e.length||delete t.element.hammer,o._handlers={},t.destroy()},o}function uat(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(e){return{set:t}}}}if("undefined"!==typeof window){var cat=window["Hammer"]||yet;Xst=hat(cat,{preventDefault:"mouse"})}else Xst=function(){return uat()};var dat=Xst;function pat(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)}function fat(t,e){return e.inputHandler=function(t){t.isFinal&&e(t)},t.on("hammer.input",e.inputHandler)}function mat(t){var e="pan-y";return t.getTouchAction=function(){return[e]},t}var vat=function(){function t(e,i,n,r,o){WH(this,t),this.moment=o&&o.moment||OZ,this.options=o||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(e,i,n),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,MQ(r)?this.hiddenDates=r:this.hiddenDates=void 0!=r?[r]:[],this.format=t.FORMAT}return fJ(t,[{key:"setMoment",value:function(t){this.moment=t,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(e){var i=qrt.deepExtend({},t.FORMAT);this.format=qrt.deepExtend(i,e)}},{key:"setRange",value:function(t,e,i){if(!(t instanceof Date)||!(e instanceof Date))throw"No legal start or end date in method setRange";this._start=void 0!=t?this.moment(t.valueOf()):r6(),this._end=void 0!=e?this.moment(e.valueOf()):r6(),this.autoScale&&this.setMinimumStep(i)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch("week"==this.scale&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(1!=this.step){var t=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year");break}t.isSame(this.current)||(this.current=this.moment(Fst(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var t=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!==0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(0!==this.current.weekday())this.current.weekday(0),this.current.add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current.add(this.step,"week");else{var e=this.current.clone();e.add(1,"week"),e.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year");break}if(1!=this.step)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0);break}this.current.valueOf()==t&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Ost(this.moment,this,t)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(t){t&&"string"==typeof t.scale&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){if(void 0!=t){var e=31104e6,i=2592e6,n=864e5,r=36e5,o=6e4,s=1e3,a=1;1e3*e>t&&(this.scale="year",this.step=1e3),500*e>t&&(this.scale="year",this.step=500),100*e>t&&(this.scale="year",this.step=100),50*e>t&&(this.scale="year",this.step=50),10*e>t&&(this.scale="year",this.step=10),5*e>t&&(this.scale="year",this.step=5),e>t&&(this.scale="year",this.step=1),3*i>t&&(this.scale="month",this.step=3),i>t&&(this.scale="month",this.step=1),7*n>t&&this.options.showWeekScale&&(this.scale="week",this.step=1),2*n>t&&(this.scale="day",this.step=2),n>t&&(this.scale="day",this.step=1),n/2>t&&(this.scale="weekday",this.step=1),4*r>t&&(this.scale="hour",this.step=4),r>t&&(this.scale="hour",this.step=1),15*o>t&&(this.scale="minute",this.step=15),10*o>t&&(this.scale="minute",this.step=10),5*o>t&&(this.scale="minute",this.step=5),o>t&&(this.scale="minute",this.step=1),15*s>t&&(this.scale="second",this.step=15),10*s>t&&(this.scale="second",this.step=10),5*s>t&&(this.scale="second",this.step=5),s>t&&(this.scale="second",this.step=1),200*a>t&&(this.scale="millisecond",this.step=200),100*a>t&&(this.scale="millisecond",this.step=100),50*a>t&&(this.scale="millisecond",this.step=50),10*a>t&&(this.scale="millisecond",this.step=10),5*a>t&&(this.scale="millisecond",this.step=5),a>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return 0==t.milliseconds();case"second":return 0==t.seconds();case"minute":return 0==t.hours()&&0==t.minutes();case"hour":return 0==t.hours();case"weekday":case"day":return this.options.showWeekScale?1==t.isoWeekday():1==t.date();case"week":return 1==t.date();case"month":return 0==t.month();case"year":return!1;default:return!1}}},{key:"getLabelMinor",value:function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"===typeof this.format.minorLabels)return this.format.minorLabels(t,this.scale,this.step);var e=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(1===t.date()&&0!==t.weekday())return"";default:return e&&e.length>0?this.moment(t).format(e):""}}},{key:"getLabelMajor",value:function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"===typeof this.format.majorLabels)return this.format.majorLabels(t,this.scale,this.step);var e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""}},{key:"getClassName",value:function(){var t,e=this.moment,i=this.moment(this.current),n=i.locale?i.locale("en"):i.lang("en"),r=this.step,o=[];function s(t){return t/r%2==0?" vis-even":" vis-odd"}function a(t){return t.isSame(r6(),"day")?" vis-today":t.isSame(e().add(1,"day"),"day")?" vis-tomorrow":t.isSame(e().add(-1,"day"),"day")?" vis-yesterday":""}function l(t){return t.isSame(r6(),"week")?" vis-current-week":""}function h(t){return t.isSame(r6(),"month")?" vis-current-month":""}function u(t){return t.isSame(r6(),"year")?" vis-current-year":""}switch(this.scale){case"millisecond":o.push(a(n)),o.push(s(n.milliseconds()));break;case"second":o.push(a(n)),o.push(s(n.seconds()));break;case"minute":o.push(a(n)),o.push(s(n.minutes()));break;case"hour":o.push(L3(t="vis-h".concat(n.hours())).call(t,4==this.step?"-h"+(n.hours()+4):"")),o.push(a(n)),o.push(s(n.hours()));break;case"weekday":o.push("vis-".concat(n.format("dddd").toLowerCase())),o.push(a(n)),o.push(l(n)),o.push(s(n.date()));break;case"day":o.push("vis-day".concat(n.date())),o.push("vis-".concat(n.format("MMMM").toLowerCase())),o.push(a(n)),o.push(h(n)),o.push(this.step<=2?a(n):""),o.push(this.step<=2?"vis-".concat(n.format("dddd").toLowerCase()):""),o.push(s(n.date()-1));break;case"week":o.push("vis-week".concat(n.format("w"))),o.push(l(n)),o.push(s(n.week()));break;case"month":o.push("vis-".concat(n.format("MMMM").toLowerCase())),o.push(h(n)),o.push(s(n.month()));break;case"year":o.push("vis-year".concat(n.year())),o.push(u(n)),o.push(s(n.year()));break}return KZ(o).call(o,String).join(" ")}}],[{key:"snap",value:function(t,e,i){var n=OZ(t);if("year"==e){var r=n.year()+Math.round(n.month()/12);n.year(Math.round(r/i)*i),n.month(0),n.date(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("month"==e)n.date()>15?(n.date(1),n.add(1,"month")):n.date(1),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if("week"==e)n.weekday()>2?(n.weekday(0),n.add(1,"week")):n.weekday(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if("day"==e){switch(i){case 5:case 2:n.hours(24*Math.round(n.hours()/24));break;default:n.hours(12*Math.round(n.hours()/12));break}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("weekday"==e){switch(i){case 5:case 2:n.hours(12*Math.round(n.hours()/12));break;default:n.hours(6*Math.round(n.hours()/6));break}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("hour"==e){switch(i){case 4:n.minutes(60*Math.round(n.minutes()/60));break;default:n.minutes(30*Math.round(n.minutes()/30));break}n.seconds(0),n.milliseconds(0)}else if("minute"==e){switch(i){case 15:case 10:n.minutes(5*Math.round(n.minutes()/5)),n.seconds(0);break;case 5:n.seconds(60*Math.round(n.seconds()/60));break;default:n.seconds(30*Math.round(n.seconds()/30));break}n.milliseconds(0)}else if("second"==e)switch(i){case 15:case 10:n.seconds(5*Math.round(n.seconds()/5)),n.milliseconds(0);break;case 5:n.milliseconds(1e3*Math.round(n.milliseconds()/1e3));break;default:n.milliseconds(500*Math.round(n.milliseconds()/500));break}else if("millisecond"==e){var o=i>5?i/2:1;n.milliseconds(Math.round(n.milliseconds()/o)*o)}return n}}]),t}();function gat(t){var e=yat();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function yat(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}vat.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 bat=function(t){aQ(i,t);var e=gat(i);function i(t,n){var r;return WH(this,i),r=e.call(this),r.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},r.props={range:{start:0,end:0,minimumStep:0},lineTop:0},r.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:qrt.extend({},vat.FORMAT),moment:OZ,timeAxis:null},r.options=qrt.extend({},r.defaultOptions),r.body=t,r._create(),r.setOptions(n),r}return fJ(i,[{key:"setOptions",value:function(t){t&&(qrt.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,t),qrt.selectiveDeepExtend(["format"],this.options,t),"orientation"in t&&("string"===typeof t.orientation?this.options.orientation.axis=t.orientation:"object"===tJ(t.orientation)&&"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),"locale"in t&&("function"===typeof OZ.locale?OZ.locale(t.locale):OZ.lang(t.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var t=this.props,e=this.dom.foreground,i=this.dom.background,n="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,r=e.parentNode!==n;this._calculateCharSize();var o=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,s=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;t.minorLabelHeight=o?t.minorCharHeight:0,t.majorLabelHeight=s?t.majorCharHeight:0,t.height=t.minorLabelHeight+t.majorLabelHeight,t.width=e.offsetWidth,t.minorLineHeight=this.body.domProps.root.height-t.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),t.minorLineWidth=1,t.majorLineHeight=t.minorLineHeight+t.majorLabelHeight,t.majorLineWidth=1;var a=e.nextSibling,l=i.nextSibling;return e.parentNode&&e.parentNode.removeChild(e),i.parentNode&&i.parentNode.removeChild(i),e.style.height="".concat(this.props.height,"px"),this._repaintLabels(),a?n.insertBefore(e,a):n.appendChild(e),l?this.body.dom.backgroundVertical.insertBefore(i,l):this.body.dom.backgroundVertical.appendChild(i),this._isResized()||r}},{key:"_repaintLabels",value:function(){var t=this.options.orientation.axis,e=qrt.convert(this.body.range.start,"Number"),i=qrt.convert(this.body.range.end,"Number"),n=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),r=n-Rst(this.options.moment,this.body.hiddenDates,this.body.range,n);r-=this.body.util.toTime(0).valueOf();var o=new vat(new Date(e),new Date(i),r,this.body.hiddenDates,this.options);o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var s,a,l,h,u,c,d=this.dom;d.redundant.lines=d.lines,d.redundant.majorTexts=d.majorTexts,d.redundant.minorTexts=d.minorTexts,d.lines=[],d.majorTexts=[],d.minorTexts=[];var p,f,m,v=0,g=void 0,y=0,b=1e3;o.start(),a=o.getCurrent(),h=this.body.util.toScreen(a);while(o.hasNext()&&y<b){switch(y++,u=o.isMajor(),m=o.getClassName(),s=a,l=h,o.next(),a=o.getCurrent(),h=this.body.util.toScreen(a),p=v,v=h-l,o.scale){case"week":c=!0;break;default:c=v>=.4*p;break}if(this.options.showMinorLabels&&c){var w=this._repaintMinorText(l,o.getLabelMinor(s),t,m);w.style.width="".concat(v,"px")}u&&this.options.showMajorLabels?(l>0&&(void 0==g&&(g=l),w=this._repaintMajorText(l,o.getLabelMajor(s),t,m)),f=this._repaintMajorLine(l,v,t,m)):c?f=this._repaintMinorLine(l,v,t,m):f&&(f.style.width="".concat(q4(f.style.width)+v,"px"))}if(y!==b||wat||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(b," lines.")),wat=!0),this.options.showMajorLabels){var k=this.body.util.toTime(0),_=o.getLabelMajor(k),x=_.length*(this.props.majorCharWidth||10)+10;(void 0==g||x<g)&&this._repaintMajorText(0,_,t,m)}TZ(qrt).call(qrt,this.dom.redundant,(function(t){while(t.length){var e=t.pop();e&&e.parentNode&&e.parentNode.removeChild(e)}}))}},{key:"_repaintMinorText",value:function(t,e,i,n){var r=this.dom.redundant.minorTexts.shift();if(!r){var o=document.createTextNode("");r=document.createElement("div"),r.appendChild(o),this.dom.foreground.appendChild(r)}this.dom.minorTexts.push(r),r.innerHTML=qrt.xss(e);var s="top"==i?this.props.majorLabelHeight:0;return this._setXY(r,t,s),r.className="vis-text vis-minor ".concat(n),r}},{key:"_repaintMajorText",value:function(t,e,i,n){var r=this.dom.redundant.majorTexts.shift();if(!r){var o=document.createElement("div");r=document.createElement("div"),r.appendChild(o),this.dom.foreground.appendChild(r)}r.childNodes[0].innerHTML=qrt.xss(e),r.className="vis-text vis-major ".concat(n);var s="top"==i?0:this.props.minorLabelHeight;return this._setXY(r,t,s),this.dom.majorTexts.push(r),r}},{key:"_setXY",value:function(t,e,i){var n,r=this.options.rtl?-1*e:e;t.style.transform=L3(n="translate(".concat(r,"px, ")).call(n,i,"px)")}},{key:"_repaintMinorLine",value:function(t,e,i,n){var r,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var s=this.props;o.style.width="".concat(e,"px"),o.style.height="".concat(s.minorLineHeight,"px");var a="top"==i?s.majorLabelHeight:this.body.domProps.top.height,l=t-s.minorLineWidth/2;return this._setXY(o,l,a),o.className=L3(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(r,n),o}},{key:"_repaintMajorLine",value:function(t,e,i,n){var r,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var s=this.props;o.style.width="".concat(e,"px"),o.style.height="".concat(s.majorLineHeight,"px");var a="top"==i?0:this.body.domProps.top.height,l=t-s.majorLineWidth/2;return this._setXY(o,l,a),o.className=L3(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(r,n),o}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),i}(mot),wat=!1;function kat(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,r={},o={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s["num"+e]={code:96+e,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s["left"]={code:37,shift:!1},s["up"]={code:38,shift:!1},s["right"]={code:39,shift:!1},s["down"]={code:40,shift:!1},s["space"]={code:32,shift:!1},s["enter"]={code:13,shift:!1},s["shift"]={code:16,shift:void 0},s["esc"]={code:27,shift:!1},s["backspace"]={code:8,shift:!1},s["tab"]={code:9,shift:!1},s["ctrl"]={code:17,shift:!1},s["alt"]={code:18,shift:!1},s["delete"]={code:46,shift:!1},s["pageup"]={code:33,shift:!1},s["pagedown"]={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(t){h(t,"keydown")},l=function(t){h(t,"keyup")},h=function(t,e){if(void 0!==o[e][t.keyCode]){for(var n=o[e][t.keyCode],r=0;r<n.length;r++)(void 0===n[r].shift||1==n[r].shift&&1==t.shiftKey||0==n[r].shift&&0==t.shiftKey)&&n[r].fn(t);1==i&&t.preventDefault()}};return r.bind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===o[i][s[t].code]&&(o[i][s[t].code]=[]),o[i][s[t].code].push({fn:e,shift:s[t].shift})},r.bindAll=function(t,e){for(var i in void 0===e&&(e="keydown"),s)s.hasOwnProperty(i)&&r.bind(i,t,e)},r.getKey=function(t){for(var e in s)if(s.hasOwnProperty(e)){if(1==t.shiftKey&&1==s[e].shift&&t.keyCode==s[e].code)return e;if(0==t.shiftKey&&0==s[e].shift&&t.keyCode==s[e].code)return e;if(t.keyCode==s[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},r.unbind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);if(void 0!==e){var n=[],r=o[i][s[t].code];if(void 0!==r)for(var a=0;a<r.length;a++)r[a].fn==e&&r[a].shift==s[t].shift||n.push(o[i][s[t].code][a]);o[i][s[t].code]=n}else o[i][s[t].code]=[]},r.reset=function(){o={keydown:{},keyup:{}}},r.destroy=function(){o={keydown:{},keyup:{}},n.removeEventListener("keydown",a,!0),n.removeEventListener("keyup",l,!0)},n.addEventListener("keydown",a,!0),n.addEventListener("keyup",l,!0),r}function _at(t){var e,i;this.active=!1,this.dom={container:t},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=dat(this.dom.overlay),this.hammer.on("tap",RQ(e=this._onTapOverlay).call(e,this));var n=this,r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];TZ(r).call(r,(function(t){n.hammer.on(t,(function(t){t.stopPropagation()}))})),document&&document.body&&(this.onClick=function(e){xat(e.target,t)||n.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=kat(),this.escListener=RQ(i=this.deactivate).call(i,this)}function xat(t,e){while(t){if(t===e)return!0;t=t.parentNode}return!1}q9(_at.prototype),_at.current=null,_at.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},_at.prototype.activate=function(){var t;_at.current&&_at.current.deactivate(),_at.current=this,this.active=!0,this.dom.overlay.style.display="none",qrt.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),RQ(t=this.keycharm).call(t,"esc",this.escListener)},_at.prototype.deactivate=function(){_at.current===this&&(_at.current=null),this.active=!1,this.dom.overlay.style.display="",qrt.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},_at.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};var Sat={current:"current",time:"time",deleteSelected:"Delete selected"},Cat=Sat,Dat=Sat,Tat={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},Eat=Tat,Oat=Tat,Aat={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},Pat=Aat,Iat=Aat,Mat={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},Nat=Mat,Rat={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},jat=Rat,Fat=Rat,Lat=Rat,Bat={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},zat=Bat,Gat={current:"поточний",time:"час",deleteSelected:"Видалити обране"},Hat=Gat,Wat={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},Yat=Wat,Vat={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},Uat=Vat,Xat={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},qat=Xat,Kat=Xat,$at={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},Jat=$at,Qat={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},Zat=Qat,tlt={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},elt=tlt,ilt=tlt,nlt=tlt,rlt={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},olt=rlt,slt={en:Sat,en_EN:Cat,en_US:Dat,it:Tat,it_IT:Eat,it_CH:Oat,nl:Aat,nl_NL:Pat,nl_BE:Iat,de:Mat,de_DE:Nat,fr:Rat,fr_FR:jat,fr_CA:Fat,fr_BE:Lat,es:Bat,es_ES:zat,uk:Gat,uk_UA:Hat,ru:Wat,ru_RU:Yat,pl:Vat,pl_PL:Uat,pt:Xat,pt_BR:qat,pt_PT:Kat,ja:$at,ja_JP:Jat,lt:rlt,lt_LT:olt,sv:Qat,sv_SE:Zat,nb:tlt,nn:ilt,nb_NO:elt,nn_NO:nlt};function alt(t){var e=llt();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function llt(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var hlt=function(t){aQ(i,t);var e=alt(i);function i(t,n){var r,o;WH(this,i),o=e.call(this),o.body=t,o.defaultOptions={moment:OZ,locales:slt,locale:"en",id:void 0,title:void 0},o.options=qrt.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=qrt.extend({},slt,o.options.locales);var s=o.defaultOptions.locales[o.defaultOptions.locale];return TZ(r=z1(o.options.locales)).call(r,(function(t){o.options.locales[t]=qrt.extend({},s,o.options.locales[t])})),n&&null!=n.time?o.customTime=n.time:o.customTime=new Date,o.eventParams={},o._create(),o}return fJ(i,[{key:"setOptions",value:function(t){t&&qrt.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,t)}},{key:"_create",value:function(){var t,e,i,n=document.createElement("div");n["custom-time"]=this,n.className="vis-custom-time ".concat(this.options.id||""),n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n;var r=document.createElement("div");function o(t){this.body.range._onMouseWheel(t)}r.style.position="relative",r.style.top="0px",this.options.rtl?r.style.right="-10px":r.style.left="-10px",r.style.height="100%",r.style.width="20px",r.addEventListener?(r.addEventListener("mousewheel",RQ(o).call(o,this),!1),r.addEventListener("DOMMouseScroll",RQ(o).call(o,this),!1)):r.attachEvent("onmousewheel",RQ(o).call(o,this)),n.appendChild(r),this.hammer=new dat(r),this.hammer.on("panstart",RQ(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",RQ(e=this._onDrag).call(e,this)),this.hammer.on("panend",RQ(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:dat.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 t=this.body.dom.backgroundVertical;this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar));var e=this.body.util.toScreen(this.customTime),i=this.options.locales[this.options.locale];i||(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),i=this.options.locales["en"]);var n,r=this.options.title;void 0===r?(r=L3(n="".concat(i.time,": ")).call(n,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss")),r=r.charAt(0).toUpperCase()+r.substring(1)):"function"===typeof r&&(r=r.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(e,"px"):this.bar.style.left="".concat(e,"px"),this.bar.title=r,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(t){this.customTime=qrt.convert(t,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(t,e){var i,n;(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=qrt.xss(t),this.marker.style.position="absolute",e)&&(this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",(function(){this.marker.focus()})),this.marker.addEventListener("input",RQ(i=this._onMarkerChange).call(i,this)),this.marker.title=t,this.marker.addEventListener("blur",RQ(n=function(t){this.title!=t.target.innerHTML&&(this._onMarkerChanged(t),this.title=t.target.innerHTML)}).call(n,this)));this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(t){this.options.title=t}},{key:"_onDragStart",value:function(t){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,t.stopPropagation()}},{key:"_onDrag",value:function(t){if(this.eventParams.dragging){var e=this.options.rtl?-1*t.deltaX:t.deltaX,i=this.body.util.toScreen(this.eventParams.customTime)+e,n=this.body.util.toTime(i),r=this.body.util.getScale(),o=this.body.util.getStep(),s=this.options.snap,a=s?s(n,r,o):n;this.setCustomTime(a),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation()}}},{key:"_onDragEnd",value:function(t){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}},{key:"_onMarkerChange",value:function(t){this.body.emitter.emit("markerchange",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}},{key:"_onMarkerChanged",value:function(t){this.body.emitter.emit("markerchanged",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(t){var e=t.target;while(e){if(e.hasOwnProperty("custom-time"))return e["custom-time"];e=e.parentNode}return null}}]),i}(mot),ult=function(){function t(){WH(this,t)}return fJ(t,[{key:"_create",value:function(t){var e,i,n,r=this;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(){!0===r.initialDrawDone&&r._redraw()})),this.on("rangechanged",(function(){r.initialRangeChangeDone||(r.initialRangeChangeDone=!0)})),this.on("touch",RQ(e=this._onTouch).call(e,this)),this.on("panmove",RQ(i=this._onDrag).call(i,this));var o=this;this._origRedraw=RQ(n=this._redraw).call(n,this),this._redraw=qrt.throttle(this._origRedraw),this.on("_change",(function(t){o.itemSet&&o.itemSet.initialItemSetDrawn&&t&&1==t.queue?o._redraw():o._origRedraw()})),this.hammer=new dat(this.dom.root);var s=this.hammer.get("pinch").set({enable:!0});s&&mat(s),this.hammer.get("pan").set({threshold:5,direction:dat.DIRECTION_ALL}),this.timelineListeners={};var a=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];function l(t){var e=40,i=800;this.isActive()&&this.emit("mousewheel",t);var n=0,r=0;if("detail"in t&&(r=-1*t.detail),"wheelDelta"in t&&(r=t.wheelDelta),"wheelDeltaY"in t&&(r=t.wheelDeltaY),"wheelDeltaX"in t&&(n=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(n=-1*r,r=0),"deltaY"in t&&(r=-1*t.deltaY),"deltaX"in t&&(n=t.deltaX),t.deltaMode&&(1===t.deltaMode?(n*=e,r*=e):(n*=e,r*=i)),this.options.preferZoom){if(!this.options.zoomKey||t[this.options.zoomKey])return}else if(this.options.zoomKey&&t[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll)if(this.options.verticalScroll&&Math.abs(r)>=Math.abs(n)){var o=this.props.scrollTop,s=o+r;if(this.isActive()){var a=this._setScrollTop(s);a!==o&&(this._redraw(),this.emit("scroll",t),t.preventDefault())}}else if(this.options.horizontalScroll){var l=Math.abs(n)>=Math.abs(r)?n:r,h=l/120*(this.range.end-this.range.start)/20,u=this.range.start+h,c=this.range.end+h,d={animation:!1,byUser:!0,event:t};this.range.setRange(u,c,d),t.preventDefault()}}TZ(a).call(a,(function(t){var e=function(e){o.isActive()&&o.emit(t,e)};o.hammer.on(t,e),o.timelineListeners[t]=e})),pat(this.hammer,(function(t){o.emit("touch",t)})),fat(this.hammer,(function(t){o.emit("release",t)}));var h="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function u(t){if(o.options.verticalScroll&&(t.preventDefault(),o.isActive())){var e=-t.target.scrollTop;o._setScrollTop(e),o._redraw(),o.emit("scrollSide",t)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(h,RQ(l).call(l,this),!1),this.dom.top.addEventListener(h,RQ(l).call(l,this),!1),this.dom.bottom.addEventListener(h,RQ(l).call(l,this),!1),this.dom.left.parentNode.addEventListener("scroll",RQ(u).call(u,this)),this.dom.right.parentNode.addEventListener("scroll",RQ(u).call(u,this));var c=!1;function d(t){var e;if(t.preventDefault&&(o.emit("dragover",o.getEventProperties(t)),t.preventDefault()),c9(e=t.target.className).call(e,"timeline")>-1&&!c)return t.dataTransfer.dropEffect="move",c=!0,!1}function p(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData("text"));if(!e||!e.content)return}catch(i){return!1}return c=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?o.itemSet._onAddItem(t):o.itemSet._onDropObjectOnItem(t),o.emit("drop",o.getEventProperties(t)),!1}if(this.dom.center.addEventListener("dragover",RQ(d).call(d,this),!1),this.dom.center.addEventListener("drop",RQ(p).call(p,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(t){var e;if(t){var i=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"];if(qrt.selectiveExtend(i,this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==tJ(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&("string"===typeof t.orientation?this.options.orientation={item:t.orientation,axis:t.orientation}:"object"===tJ(t.orientation)&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var n=this.timeAxis2=new bat(this.body,this.options);n.setOptions=function(t){var e=t?qrt.extend({},t):{};e.orientation="top",bat.prototype.setOptions.call(n,e)},this.components.push(n)}}else if(this.timeAxis2){var r,o,s=c9(r=this.components).call(r,this.timeAxis2);if(-1!==s)U6(o=this.components).call(o,s,1);this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&Dst(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new _at(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(TZ(e=this.components).call(e,(function(e){return e.setOptions(t)})),"configure"in t){var a;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var l=qrt.deepExtend({},this.options);TZ(a=this.components).call(a,(function(t){qrt.deepExtend(l,t.options)})),this.configurator.setModuleOptions({global:l})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var t;for(var e in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.timelineListeners)this.timelineListeners.hasOwnProperty(e)&&delete this.timelineListeners[e];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,TZ(t=this.components).call(t,(function(t){return t.destroy()})),this.body=null}},{key:"setCustomTime",value:function(t,e){var i,n=KZ(i=this.customTimes).call(i,(function(t){return e===t.options.id}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(E9(e)));n.length>0&&n[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var e,i=KZ(e=this.customTimes).call(e,(function(e){return e.options.id===t}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(E9(t)));return i[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,e,i){var n,r=KZ(n=this.customTimes).call(n,(function(t){return t.options.id===e}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(E9(e)));r.length>0&&r[0].setCustomMarker(t,i)}},{key:"setCustomTimeTitle",value:function(t,e){var i,n=KZ(i=this.customTimes).call(i,(function(t){return t.options.id===e}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(E9(e)));if(n.length>0)return n[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,e){var i,n=void 0!==t?qrt.convert(t,"Date"):new Date,r=nat(i=this.customTimes).call(i,(function(t){return t.options.id===e}));if(r)throw new Error("A custom time with id ".concat(E9(e)," already exists"));var o=new hlt(this.body,qrt.extend({},this.options,{time:n,id:e,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(o),this.components.push(o),this._redraw(),e}},{key:"removeCustomTime",value:function(t){var e,i=this,n=KZ(e=this.customTimes).call(e,(function(e){return e.options.id===t}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(E9(t)));TZ(n).call(n,(function(t){var e,n,r,o;U6(e=i.customTimes).call(e,c9(n=i.customTimes).call(n,t),1),U6(r=i.components).call(r,c9(o=i.components).call(o,t),1),t.destroy()}))}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(t){return this.time=t,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,e){var i=this.getDataRange();if(null!==i.min||null!==i.max){var n=i.max-i.min,r=new Date(i.min.valueOf()-.01*n),o=new Date(i.max.valueOf()+.01*n),s=!t||void 0===t.animation||t.animation;this.range.setRange(r,o,{animation:s},e)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,e,i,n){var r,o;"function"==typeof arguments[2]&&(n=arguments[2],i={}),1==arguments.length?(o=arguments[0],r=void 0===o.animation||o.animation,this.range.setRange(o.start,o.end,{animation:r})):2==arguments.length&&"function"==typeof arguments[1]?(o=arguments[0],n=arguments[1],r=void 0===o.animation||o.animation,this.range.setRange(o.start,o.end,{animation:r},n)):(r=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:r},n))}},{key:"moveTo",value:function(t,e,i){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.range.end-this.range.start,r=qrt.convert(t,"Date").valueOf(),o=r-n/2,s=r+n/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(o,s,{animation:a},i)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.getWindow(),r=n.start.valueOf(),o=n.end.valueOf(),s=o-r,a=s/(1+t),l=(s-a)/2,h=r+l,u=o-l;this.setWindow(h,u,e,i)}}},{key:"zoomOut",value:function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.getWindow(),r=n.start.valueOf(),o=n.end.valueOf(),s=o-r,a=r-s*t/2,l=o+s*t/2;this.setWindow(a,l,e,i)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var t;this.redrawCount++;var e=this.dom;if(e&&e.container&&0!=e.root.offsetWidth){var i=!1,n=this.options,r=this.props;Tst(this.options.moment,this.body,this.options.hiddenDates),"top"==n.orientation?(qrt.addClassName(e.root,"vis-top"),qrt.removeClassName(e.root,"vis-bottom")):(qrt.removeClassName(e.root,"vis-top"),qrt.addClassName(e.root,"vis-bottom")),n.rtl?(qrt.addClassName(e.root,"vis-rtl"),qrt.removeClassName(e.root,"vis-ltr")):(qrt.addClassName(e.root,"vis-ltr"),qrt.removeClassName(e.root,"vis-rtl")),e.root.style.maxHeight=qrt.option.asSize(n.maxHeight,""),e.root.style.minHeight=qrt.option.asSize(n.minHeight,""),e.root.style.width=qrt.option.asSize(n.width,"");var o=e.root.offsetWidth;r.border.left=1,r.border.right=1,r.border.top=1,r.border.bottom=1,r.center.height=e.center.offsetHeight,r.left.height=e.left.offsetHeight,r.right.height=e.right.offsetHeight,r.top.height=e.top.clientHeight||-r.border.top,r.bottom.height=Math.round(e.bottom.getBoundingClientRect().height)||e.bottom.clientHeight||-r.border.bottom;var s=Math.max(r.left.height,r.center.height,r.right.height),a=r.top.height+s+r.bottom.height+r.border.top+r.border.bottom;e.root.style.height=qrt.option.asSize(n.height,"".concat(a,"px")),r.root.height=e.root.offsetHeight,r.background.height=r.root.height;var l=r.root.height-r.top.height-r.bottom.height;r.centerContainer.height=l,r.leftContainer.height=l,r.rightContainer.height=r.leftContainer.height,r.root.width=o,r.background.width=r.root.width,this.initialDrawDone||(r.scrollbarWidth=qrt.getScrollBarWidth());var h=e.leftContainer.clientWidth,u=e.rightContainer.clientWidth;n.verticalScroll?n.rtl?(r.left.width=h||-r.border.left,r.right.width=u+r.scrollbarWidth||-r.border.right):(r.left.width=h+r.scrollbarWidth||-r.border.left,r.right.width=u||-r.border.right):(r.left.width=h||-r.border.left,r.right.width=u||-r.border.right),this._setDOM();var c=this._updateScrollTop();"top"!=n.orientation.item&&(c+=Math.max(r.centerContainer.height-r.center.height-r.border.top-r.border.bottom,0)),e.center.style.transform="translateY(".concat(c,"px)");var d=0==r.scrollTop?"hidden":"",p=r.scrollTop==r.scrollTopMin?"hidden":"";e.shadowTop.style.visibility=d,e.shadowBottom.style.visibility=p,e.shadowTopLeft.style.visibility=d,e.shadowBottomLeft.style.visibility=p,e.shadowTopRight.style.visibility=d,e.shadowBottomRight.style.visibility=p,n.verticalScroll&&(e.rightContainer.className="vis-panel vis-right vis-vertical-scroll",e.leftContainer.className="vis-panel vis-left vis-vertical-scroll",e.shadowTopRight.style.visibility="hidden",e.shadowBottomRight.style.visibility="hidden",e.shadowTopLeft.style.visibility="hidden",e.shadowBottomLeft.style.visibility="hidden",e.left.style.top="0px",e.right.style.top="0px"),(!n.verticalScroll||r.center.height<r.centerContainer.height)&&(e.left.style.top="".concat(c,"px"),e.right.style.top="".concat(c,"px"),e.rightContainer.className=e.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),e.leftContainer.className=e.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),r.left.width=h||-r.border.left,r.right.width=u||-r.border.right,this._setDOM());var f=r.center.height>r.centerContainer.height;this.hammer.get("pan").set({direction:f?dat.DIRECTION_ALL:dat.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),TZ(t=this.components).call(t,(function(t){i=t.redraw()||i}));var m=5;if(i){if(this.redrawCount<m)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var i=t.root.width-t.left.width-t.right.width;t.center.width=i,t.centerContainer.width=i,t.top.width=i,t.bottom.width=i,e.background.style.height="".concat(t.background.height,"px"),e.backgroundVertical.style.height="".concat(t.background.height,"px"),e.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),e.centerContainer.style.height="".concat(t.centerContainer.height,"px"),e.leftContainer.style.height="".concat(t.leftContainer.height,"px"),e.rightContainer.style.height="".concat(t.rightContainer.height,"px"),e.background.style.width="".concat(t.background.width,"px"),e.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),e.backgroundHorizontal.style.width="".concat(t.background.width,"px"),e.centerContainer.style.width="".concat(t.center.width,"px"),e.top.style.width="".concat(t.top.width,"px"),e.bottom.style.width="".concat(t.bottom.width,"px"),e.background.style.left="0",e.background.style.top="0",e.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),e.backgroundVertical.style.top="0",e.backgroundHorizontal.style.left="0",e.backgroundHorizontal.style.top="".concat(t.top.height,"px"),e.centerContainer.style.left="".concat(t.left.width,"px"),e.centerContainer.style.top="".concat(t.top.height,"px"),e.leftContainer.style.left="0",e.leftContainer.style.top="".concat(t.top.height,"px"),e.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),e.rightContainer.style.top="".concat(t.top.height,"px"),e.top.style.left="".concat(t.left.width,"px"),e.top.style.top="0",e.bottom.style.left="".concat(t.left.width,"px"),e.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),e.center.style.left="0",e.left.style.left="0",e.right.style.left="0"}},{key:"setCurrentTime",value:function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(t){return Pst(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return Pst(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return Ast(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return Ast(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){if(1==t.options.autoResize){if(t.dom.root){var e=t.dom.root.offsetHeight,i=t.dom.root.offsetWidth;i==t.props.lastWidth&&e==t.props.lastHeight||(t.props.lastWidth=i,t.props.lastHeight=e,t.props.scrollbarWidth=qrt.getScrollBarWidth(),t.body.emitter.emit("_change"))}}else t._stopAutoResize()},window.addEventListener("resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=aat(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(t){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(t){if(t&&this.touch.allowDragging){var e=t.deltaY,i=this._getScrollTop(),n=this._setScrollTop(this.touch.initialScrollTop+e);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),n!=i&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<t&&(this.props.scrollTop=t),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),t}();function clt(t){var e=dlt();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function dlt(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}q9(ult.prototype);var plt=function(t){aQ(i,t);var e=clt(i);function i(t,n){var r,o;WH(this,i),o=e.call(this),o.body=t,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:OZ,locales:slt,locale:"en"},o.options=qrt.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=qrt.extend({},slt,o.options.locales);var s=o.defaultOptions.locales[o.defaultOptions.locale];return TZ(r=z1(o.options.locales)).call(r,(function(t){o.options.locales[t]=qrt.extend({},s,o.options.locales[t])})),o.offset=0,o._create(),o}return fJ(i,[{key:"_create",value:function(){var t=document.createElement("div");t.className="vis-current-time",t.style.position="absolute",t.style.top="0px",t.style.height="100%",this.bar=t}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(t){t&&qrt.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,t)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var t,e,i=this.body.dom.backgroundVertical;this.bar.parentNode!=i&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),i.appendChild(this.bar),this.start());var n=this.options.moment(r6()+this.offset);this.options.alignCurrentTime&&(n=n.startOf(this.options.alignCurrentTime));var r=this.body.util.toScreen(n),o=this.options.locales[this.options.locale];o||(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),o=this.options.locales["en"]);var s=L3(t=L3(e="".concat(o.current," ")).call(e,o.time,": ")).call(t,n.format("dddd, MMMM Do YYYY, H:mm:ss"));s=s.charAt(0).toUpperCase()+s.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(-1*r,"px)"):this.bar.style.transform="translateX(".concat(r,"px)"),this.bar.title=s}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var t=this;function e(){t.stop();var i=t.body.range.conversion(t.body.domProps.center.width).scale,n=1/i/10;n<30&&(n=30),n>1e3&&(n=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=sZ(e,n)}e()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(t){var e=qrt.convert(t,"Date").valueOf(),i=r6();this.offset=e-i,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(r6()+this.offset)}}]),i}(mot),flt=mz,mlt=vV.find,vlt="find",glt=!0;vlt in[]&&Array(1)[vlt]((function(){glt=!1})),flt({target:"Array",proto:!0,forced:glt},{find:function(t){return mlt(this,t,arguments.length>1?arguments[1]:void 0)}});var ylt=VJ,blt=ylt("Array").find,wlt=AF,klt=blt,_lt=Array.prototype,xlt=function(t){var e=t.find;return t===_lt||wlt(_lt,t)&&e===_lt.find?klt:e},Slt=xlt,Clt=Slt,Dlt=Clt,Tlt=yj(Dlt),Elt={exports:{}},Olt=kj,Alt=Olt((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Plt=kj,Ilt=_F,Mlt=Fj,Nlt=Alt,Rlt=Object.isExtensible,jlt=Plt((function(){Rlt(1)})),Flt=jlt||Nlt?function(t){return!!Ilt(t)&&((!Nlt||"ArrayBuffer"!==Mlt(t))&&(!Rlt||Rlt(t)))}:Rlt,Llt=kj,Blt=!Llt((function(){return Object.isExtensible(Object.preventExtensions({}))})),zlt=mz,Glt=Mj,Hlt=MG,Wlt=_F,Ylt=OL,Vlt=RB.f,Ult=qW,Xlt=QW,qlt=Flt,Klt=NL,$lt=Blt,Jlt=!1,Qlt=Klt("meta"),Zlt=0,tht=function(t){Vlt(t,Qlt,{value:{objectID:"O"+Zlt++,weakData:{}}})},eht=function(t,e){if(!Wlt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Ylt(t,Qlt)){if(!qlt(t))return"F";if(!e)return"E";tht(t)}return t[Qlt].objectID},iht=function(t,e){if(!Ylt(t,Qlt)){if(!qlt(t))return!0;if(!e)return!1;tht(t)}return t[Qlt].weakData},nht=function(t){return $lt&&Jlt&&qlt(t)&&!Ylt(t,Qlt)&&tht(t),t},rht=function(){oht.enable=function(){},Jlt=!0;var t=Ult.f,e=Glt([].splice),i={};i[Qlt]=1,t(i).length&&(Ult.f=function(i){for(var n=t(i),r=0,o=n.length;r<o;r++)if(n[r]===Qlt){e(n,r,1);break}return n},zlt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xlt.f}))},oht=Elt.exports={enable:rht,fastKey:eht,getWeakData:iht,onFreeze:nht};Hlt[Qlt]=!0;var sht=Elt.exports,aht=NB,lht=Qj,hht=HB,uht=ZF,cht=t2,dht=TG,pht=AF,fht=f2,mht=a2,vht=U1,ght=TypeError,yht=function(t,e){this.stopped=t,this.result=e},bht=yht.prototype,wht=function(t,e,i){var n,r,o,s,a,l,h,u=i&&i.that,c=!(!i||!i.AS_ENTRIES),d=!(!i||!i.IS_RECORD),p=!(!i||!i.IS_ITERATOR),f=!(!i||!i.INTERRUPTED),m=aht(e,u),v=function(t){return n&&vht(n,"normal",t),new yht(!0,t)},g=function(t){return c?(hht(t),f?m(t[0],t[1],v):m(t[0],t[1])):f?m(t,v):m(t)};if(d)n=t.iterator;else if(p)n=t;else{if(r=mht(t),!r)throw new ght(uht(t)+" is not iterable");if(cht(r)){for(o=0,s=dht(t);s>o;o++)if(a=g(t[o]),a&&pht(bht,a))return a;return new yht(!1)}n=fht(t,r)}l=d?t.next:n.next;while(!(h=lht(l,n)).done){try{a=g(h.value)}catch(dpt){vht(n,"throw",dpt)}if("object"==typeof a&&a&&pht(bht,a))return a}return new yht(!1)},kht=AF,_ht=TypeError,xht=function(t,e){if(kht(e,t))return t;throw new _ht("Incorrect invocation")},Sht=mz,Cht=wj,Dht=sht,Tht=kj,Eht=nz,Oht=wht,Aht=xht,Pht=Uj,Iht=_F,Mht=dF,Nht=GY,Rht=RB.f,jht=vV.forEach,Fht=Kj,Lht=aV,Bht=Lht.set,zht=Lht.getterFor,Ght=function(t,e,i){var n,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=Cht[t],l=a&&a.prototype,h={};if(Fht&&Pht(a)&&(o||l.forEach&&!Tht((function(){(new a).entries().next()})))){n=e((function(e,i){Bht(Aht(e,u),{type:t,collection:new a}),Mht(i)||Oht(i,e[s],{that:e,AS_ENTRIES:r})}));var u=n.prototype,c=zht(t);jht(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in l)||o&&"clear"===t||Eht(u,t,(function(i,n){var r=c(this).collection;if(!e&&o&&!Iht(i))return"get"===t&&void 0;var s=r[t](0===i?0:i,n);return e?this:s}))})),o||Rht(u,"size",{configurable:!0,get:function(){return c(this).collection.size}})}else n=i.getConstructor(e,t,r,s),Dht.enable();return Nht(n,t,!1,!0),h[t]=n,Sht({global:!0,forced:!0},h),o||i.setStrong(n,t,r),n},Hht=pY,Wht=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:Hht(t,n,e[n],i);return t},Yht=EF,Vht=mY,Uht=YL,Xht=Kj,qht=Uht("species"),Kht=function(t){var e=Yht(t);Xht&&e&&!e[qht]&&Vht(e,qht,{configurable:!0,get:function(){return this}})},$ht=kH,Jht=mY,Qht=Wht,Zht=NB,tut=xht,eut=dF,iut=wht,nut=cK,rut=dK,out=Kht,sut=Kj,aut=sht.fastKey,lut=aV,hut=lut.set,uut=lut.getterFor,cut={getConstructor:function(t,e,i,n){var r=t((function(t,r){tut(t,o),hut(t,{type:e,index:$ht(null),first:void 0,last:void 0,size:0}),sut||(t.size=0),eut(r)||iut(r,t[n],{that:t,AS_ENTRIES:i})})),o=r.prototype,s=uut(e),a=function(t,e,i){var n,r,o=s(t),a=l(t,e);return a?a.value=i:(o.last=a={index:r=aut(e,!0),key:e,value:i,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),sut?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},l=function(t,e){var i,n=s(t),r=aut(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key===e)return i};return Qht(o,{clear:function(){var t=this,e=s(t),i=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete i[n.index],n=n.next;e.first=e.last=void 0,sut?e.size=0:t.size=0},delete:function(t){var e=this,i=s(e),n=l(e,t);if(n){var r=n.next,o=n.previous;delete i.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),i.first===n&&(i.first=r),i.last===n&&(i.last=o),sut?i.size--:e.size--}return!!n},forEach:function(t){var e,i=s(this),n=Zht(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:i.first){n(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!l(this,t)}}),Qht(o,i?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),sut&&Jht(o,"size",{configurable:!0,get:function(){return s(this).size}}),r},setStrong:function(t,e,i){var n=e+" Iterator",r=uut(e),o=uut(n);nut(t,e,(function(t,e){hut(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,i=t.last;while(i&&i.removed)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?rut("keys"===e?i.key:"values"===e?i.value:[i.key,i.value],!1):(t.target=void 0,rut(void 0,!0))}),i?"entries":"values",!i,!0),out(e)}},dut=Ght,put=cut;dut("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),put);var fut=xF,mut=fut.Set,vut=mut,gut=vut,yut=gut,but=yj(yut),wut=mz,kut=vV.findIndex,_ut="findIndex",xut=!0;_ut in[]&&Array(1)[_ut]((function(){xut=!1})),wut({target:"Array",proto:!0,forced:xut},{findIndex:function(t){return kut(this,t,arguments.length>1?arguments[1]:void 0)}});var Sut=VJ,Cut=Sut("Array").findIndex,Dut=AF,Tut=Cut,Eut=Array.prototype,Out=function(t){var e=t.findIndex;return t===Eut||Dut(Eut,t)&&e===Eut.findIndex?Tut:e},Aut=Out,Put=Aut,Iut=Put,Mut=yj(Iut);function Nut(t,e){var i="undefined"!==typeof E3&&t5(t)||t["@@iterator"];if(!i){if(MQ(t)||(i=Rut(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function Rut(t,e){var i;if(t){if("string"===typeof t)return jut(t,e);var n=z3(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?H2(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jut(t,e):void 0}}function jut(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var Fut=.001;function Lut(t){Cst(t).call(t,(function(t,e){return t.data.start-e.data.start}))}function But(t){Cst(t).call(t,(function(t,e){var i="end"in t.data?t.data.end:t.data.start,n="end"in e.data?e.data.end:e.data.start;return i-n}))}function zut(t,e,i,n){var r=Vut(t,e.item,!1,(function(t){return t.stack&&(i||null===t.top)}),(function(t){return t.stack}),(function(t){return e.axis}),n);return null===r}function Gut(t,e,i){var n=Vut(t,e.item,!1,(function(t){return t.stack}),(function(t){return!0}),(function(t){return t.baseTop}));i.height=n-i.top+.5*e.item.vertical}function Hut(t,e,i,n){for(var r=0;r<t.length;r++)if(void 0==t[r].data.subgroup)t[r].top=e.item.vertical;else if(void 0!==t[r].data.subgroup&&n){var o=0;for(var s in i)i.hasOwnProperty(s)&&1==i[s].visible&&i[s].index<i[t[r].data.subgroup].index&&(o+=i[s].height,i[t[r].data.subgroup].top=o);t[r].top=o+.5*e.item.vertical}n||Wut(t,e,i)}function Wut(t,e,i){var n;Vut(Cst(n=g4(i)).call(n,(function(t,e){return t.index>e.index?1:t.index<e.index?-1:0})),{vertical:0},!0,(function(t){return!0}),(function(t){return!0}),(function(t){return 0}));for(var r=0;r<t.length;r++)void 0!==t[r].data.subgroup&&(t[r].top=i[t[r].data.subgroup].top+.5*e.item.vertical)}function Yut(t,e,i){var n=!1,r=[];for(var o in i)i[o].hasOwnProperty("index")?r[i[o].index]=o:r.push(o);for(var s=0;s<r.length;s++)if(o=r[s],i.hasOwnProperty(o)){for(var a in n=n||i[o].stack,i[o].top=0,i)i[a].visible&&i[o].index>i[a].index&&(i[o].top+=i[a].height);for(var l=t[o],h=0;h<l.length;h++)void 0!==l[h].data.subgroup&&(l[h].top=i[l[h].data.subgroup].top+.5*e.item.vertical,i[o].stack&&(l[h].baseTop=l[h].top));n&&i[o].stack&&Gut(t[o],e,i[o])}}function Vut(t,e,i,n,r,o,s){var a=function(t){return t.start},l=function(t){return t.end};if(!i){var h=!(!t[0]||!t[0].options.rtl);a=h?function(t){return t.right}:function(t){return t.left},l=function(t){return a(t)+t.width+e.horizontal}}var u,c=[],d=[],p=null,f=0,m=Nut(t);try{var v=function(){var t=u.value;if(n(t))c.push(t);else if(r(t)){var e=a(t);null!==p&&e<p-Fut&&(f=0),p=e,f=Xut(d,(function(t){return a(t)-Fut>e}),f),U6(d).call(d,f,0,t),f++}};for(m.s();!(u=m.n()).done;)v()}catch(x){m.e(x)}finally{m.f()}p=null;var g=null;f=0;var y,b=0,w=0,k=0,_=function(){var t,i,n=c.shift();n.top=o(n);var h=a(n),u=l(n);null!==p&&h<p-Fut&&(b=0,w=0,f=0,g=null),p=h,b=Xut(d,(function(t){return h<l(t)-Fut}),b),(null===g||g<u-Fut)&&(w=Xut(d,(function(t){return u<a(t)-Fut}),Math.max(b,w))),null!==g&&g-Fut>u&&(w=qut(d,(function(t){return u+Fut>=a(t)}),b,w)+1);for(var m=Cst(t=KZ(i=z3(d).call(d,b,w)).call(i,(function(t){return h<l(t)-Fut&&u-Fut>a(t)}))).call(t,(function(t,e){return t.top-e.top})),v=0;v<m.length;v++){var y=m[v];Uut(n,y,e)&&(n.top=y.top+y.height+e.vertical)}r(n)&&(f=Xut(d,(function(t){return a(t)-Fut>h}),f),U6(d).call(d,f,0,n),f++);var _=n.top+n.height;if(_>k&&(k=_),s&&s())return{v:null}};while(c.length>0)if(y=_(),y)return y.v;return k}function Uut(t,e,i){return t.top-i.vertical+Fut<e.top+e.height&&t.top+t.height+i.vertical-Fut>e.top}function Xut(t,e,i){var n;i||(i=0);var r=Mut(n=z3(t).call(t,i)).call(n,e);return-1===r?t.length:r+i}function qut(t,e,n,r){for(n||(n=0),r||(r=t.length),i=r-1;i>=n;i--)if(e(t[i]))return i;return n-1}var Kut="__ungrouped__",$ut="__background__",Jut={UNGROUPED:Kut,BACKGROUND:$ut},Qut=function(){function t(e,i,n){var r=this;if(WH(this,t),this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=i&&i.subgroupOrder,this.itemSet=n,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],i&&i.nestedGroups&&(this.nestedGroups=i.nestedGroups,0==i.showNested?this.showNested=!1:this.showNested=!0),i&&i.subgroupStack)if("boolean"===typeof i.subgroupStack)this.doInnerStack=i.subgroupStack,this.subgroupStackAll=i.subgroupStack;else for(var o in i.subgroupStack)this.subgroupStack[o]=i.subgroupStack[o],this.doInnerStack=this.doInnerStack||i.subgroupStack[o];i&&i.heightMode?this.heightMode=i.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 s=function(){r.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",s),this._disposeCallbacks.push((function(){r.itemSet.body.emitter.off("checkRangedItems",s)})),this._create(),this.setData(i)}return fJ(t,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var e=document.createElement("div");e.className="vis-inner",t.appendChild(e),this.dom.inner=e;var i=document.createElement("div");i.className="vis-group",i["vis-group"]=this,this.dom.foreground=i,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var e,i,n;if(t&&t.subgroupVisibility)for(var r in t.subgroupVisibility)this.subgroupVisibility[r]=t.subgroupVisibility[r];if(this.itemSet.options&&this.itemSet.options.groupTemplate)i=RQ(n=this.itemSet.options.groupTemplate).call(n,this),e=i(t,this.dom.inner);else e=t&&t.content;if(e instanceof Element){while(this.dom.inner.firstChild)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(e)}else e instanceof Object&&e.isReactComponent||(e instanceof Object?i(t,this.dom.inner):this.dom.inner.innerHTML=void 0!==e&&null!==e?qrt.xss(e):qrt.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?qrt.removeClassName(this.dom.inner,"vis-hidden"):qrt.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups?(this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),void 0===t.showNested&&void 0!==this.showNested||(0==t.showNested?this.showNested=!1:this.showNested=!0),qrt.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(qrt.removeClassName(this.dom.label,"collapsed"),qrt.addClassName(this.dom.label,"expanded")):(qrt.removeClassName(this.dom.label,"expanded"),qrt.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,qrt.removeClassName(this.dom.label,"collapsed"),qrt.removeClassName(this.dom.label,"expanded"),qrt.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(qrt.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?qrt.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):qrt.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):qrt.addClassName(this.dom.label,"vis-group-level-0");var o=t&&t.className||null;o!=this.className&&(this.className&&(qrt.removeClassName(this.dom.label,this.className),qrt.removeClassName(this.dom.foreground,this.className),qrt.removeClassName(this.dom.background,this.className),qrt.removeClassName(this.dom.axis,this.className)),qrt.addClassName(this.dom.label,o),qrt.addClassName(this.dom.foreground,o),qrt.addClassName(this.dom.background,o),qrt.addClassName(this.dom.axis,o),this.className=o),this.style&&(qrt.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(qrt.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var e={},i=0;TZ(qrt).call(qrt,this.items,(function(t,n){if(t.dirty=!0,t.displayed){var r=!0;e[n]=t.redraw(r),i=e[n].length}}));var n=i>0;if(n)for(var r=function(t){TZ(qrt).call(qrt,e,(function(e){e[t]()}))},o=0;o<i;o++)r(o);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground,e=t.offsetTop,i=t.offsetLeft,n=t.offsetWidth;this.top=e,this.right=i,this.width=n}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,e=this.itemSet.options.onTimeout,i={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:e&&e.timeoutMs,userBailFunction:e&&e.callback,shouldBailStackItems:this.shouldBailStackItems},n=null;if(!this.itemSet.initialDrawDone){if(i.shouldBailStackItems)return!0;Math.abs(r6()-new Date(i.relativeBailingTime))>i.bailTimeMs&&(i.userBailFunction&&null==this.itemSet.userContinueNotBail?i.userBailFunction((function(e){t.itemSet.userContinueNotBail=e,n=!e})):n=0==t.itemSet.userContinueNotBail)}return n}},{key:"_redrawItems",value:function(t,e,i,n){var r=this,o=t||this.stackDirty||this.isVisible&&!e;if(o){var s,a,l,h,u,c,d={byEnd:KZ(s=this.orderedItems.byEnd).call(s,(function(t){return!t.isCluster})),byStart:KZ(a=this.orderedItems.byStart).call(a,(function(t){return!t.isCluster}))},p={byEnd:D3(new but(KZ(l=i1(h=this.orderedItems.byEnd).call(h,(function(t){return t.cluster}))).call(l,(function(t){return!!t})))),byStart:D3(new but(KZ(u=i1(c=this.orderedItems.byStart).call(c,(function(t){return t.cluster}))).call(u,(function(t){return!!t}))))},f=function(){var t,e,i,o=r._updateItemsInRange(d,KZ(t=r.visibleItems).call(t,(function(t){return!t.isCluster})),n),s=r._updateClustersInRange(p,KZ(e=r.visibleItems).call(e,(function(t){return t.isCluster})),n);return L3(i=[]).call(i,D3(o),D3(s))},m=function(t){var e={},i=function(i){var n,o=KZ(n=r.visibleItems).call(n,(function(t){return t.data.subgroup===i}));e[i]=t?Cst(o).call(o,(function(e,i){return t(e.data,i.data)})):o};for(var n in r.subgroups)i(n);return e};if("function"===typeof this.itemSet.options.order){var v=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var g=m(this.itemSet.options.order);Yut(g,i,this.subgroups),this.visibleItems=f(),this._updateSubGroupHeights(i)}else{var y,b,w,k;this.visibleItems=f(),this._updateSubGroupHeights(i);var _=Cst(y=KZ(b=z3(w=this.visibleItems).call(w)).call(b,(function(t){return t.isCluster||!t.isCluster&&!t.cluster}))).call(y,(function(t,e){return v.itemSet.options.order(t.data,e.data)}));this.shouldBailStackItems=zut(_,i,!0,RQ(k=this._shouldBailItemsRedraw).call(k,this))}}else if(this.visibleItems=f(),this._updateSubGroupHeights(i),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var x=m();Yut(x,i,this.subgroups)}else{var S;this.shouldBailStackItems=zut(this.visibleItems,i,!0,RQ(S=this._shouldBailItemsRedraw).call(S,this))}else Hut(this.visibleItems,i,this.subgroups,this.itemSet.options.stackSubgroups);for(var C=0;C<this.visibleItems.length;C++)this.visibleItems[C].repositionX(),void 0!==this.subgroupVisibility[this.visibleItems[C].data.subgroup]&&(this.subgroupVisibility[this.visibleItems[C].data.subgroup]||this.visibleItems[C].hide());this.itemSet.options.cluster&&TZ(qrt).call(qrt,this.items,(function(t){t.cluster&&t.displayed&&t.hide()})),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(t,e){t=qrt.updateProperty(this,"height",e)||t;var i=this.dom.inner.clientWidth,n=this.dom.inner.clientHeight;return t=qrt.updateProperty(this.props.label,"width",i)||t,t=qrt.updateProperty(this.props.label,"height",n)||t,t}},{key:"_applyGroupHeight",value:function(t){this.dom.background.style.height="".concat(t,"px"),this.dom.foreground.style.height="".concat(t,"px"),this.dom.label.style.height="".concat(t,"px")}},{key:"_updateItemsVerticalPosition",value:function(t){for(var e=0,i=this.visibleItems.length;e<i;e++){var n=this.visibleItems[e];n.repositionY(t),this.isVisible||this.groupId==Jut.BACKGROUND||n.displayed&&n.hide()}}},{key:"redraw",value:function(t,e,i,n){var r,o,s,a,l,h,u,c=this,d=!1,p=this.isVisible,f=[function(){i=c._didMarkerHeightChange.call(c)||i},RQ(r=this._updateSubGroupHeights).call(r,this,e),RQ(o=this._calculateGroupSizeAndPosition).call(o,this),function(){var i;c.isVisible=RQ(i=c._isGroupVisible).call(i,c)(t,e)},function(){var n;RQ(n=c._redrawItems).call(n,c)(i,p,e,t)},RQ(s=this._updateSubgroupsSizes).call(s,this),function(){var t;h=RQ(t=c._calculateHeight).call(t,c)(e)},RQ(a=this._calculateGroupSizeAndPosition).call(a,this),function(){var t;d=RQ(t=c._didResize).call(t,c)(d,h)},function(){var t;RQ(t=c._applyGroupHeight).call(t,c)(h)},function(){var t;RQ(t=c._updateItemsVerticalPosition).call(t,c)(e)},RQ(l=function(){return!c.isVisible&&c.height&&(d=!1),d}).call(l,this)];return n?f:(TZ(f).call(f,(function(t){u=t()})),u)}},{key:"_updateSubGroupHeights",value:function(t){var e=this;if(z1(this.subgroups).length>0){var i=this;this._resetSubgroups(),TZ(qrt).call(qrt,this.visibleItems,(function(n){void 0!==n.data.subgroup&&(i.subgroups[n.data.subgroup].height=Math.max(i.subgroups[n.data.subgroup].height,n.height+t.item.vertical),i.subgroups[n.data.subgroup].visible="undefined"===typeof e.subgroupVisibility[n.data.subgroup]||Boolean(e.subgroupVisibility[n.data.subgroup]))}))}}},{key:"_isGroupVisible",value:function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var e,i;if(i="fixed"===this.heightMode?qrt.toArray(this.items):this.visibleItems,i.length>0){var n=i[0].top,r=i[0].top+i[0].height;if(TZ(qrt).call(qrt,i,(function(t){n=Math.min(n,t.top),r=Math.max(r,t.top+t.height)})),n>t.axis){var o=n-t.axis;r-=o,TZ(qrt).call(qrt,i,(function(t){t.top-=o}))}e=Math.ceil(r+t.item.vertical/2),"fitItems"!==this.heightMode&&(e=Math.max(e,this.props.label.height))}else e=this.props.label.height;return e}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);var i=this.dom.background;i.parentNode&&i.parentNode.removeChild(i);var n=this.dom.axis;n.parentNode&&n.parentNode.removeChild(n)}},{key:"add",value:function(t){var e;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),!K8(e=this.visibleItems).call(e,t)){var i=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,i)}}},{key:"_addToSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;void 0!=e&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)<new Date(this.subgroups[e].start)&&(this.subgroups[e].start=t.data.start);var i=t.data.end||t.data.start;new Date(i)>new Date(this.subgroups[e].end)&&(this.subgroups[e].end=i),this.subgroups[e].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var e=function(){var e,n=t.subgroups[i].items[0].data.end||t.subgroups[i].items[0].data.start,r=t.subgroups[i].items[0].data.start,o=n-1;TZ(e=t.subgroups[i].items).call(e,(function(t){new Date(t.data.start)<new Date(r)&&(r=t.data.start);var e=t.data.end||t.data.start;new Date(e)>new Date(o)&&(o=e)})),t.subgroups[i].start=r,t.subgroups[i].end=new Date(o-1)};for(var i in t.subgroups)e()}}},{key:"orderSubgroups",value:function(){if(void 0!==this.subgroupOrderer){var t=[];if("string"==typeof this.subgroupOrderer){for(var e in this.subgroups)t.push({subgroup:e,sortField:this.subgroups[e].items[0].data[this.subgroupOrderer]});Cst(t).call(t,(function(t,e){return t.sortField-e.sortField}))}else if("function"==typeof this.subgroupOrderer){for(var i in this.subgroups)t.push(this.subgroups[i].items[0].data);Cst(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var n=0;n<t.length;n++)this.subgroups[t[n].subgroup].index=n}}},{key:"_resetSubgroups",value:function(){for(var t in this.subgroups)this.subgroups.hasOwnProperty(t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}},{key:"remove",value:function(t){var e,i;delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var n=c9(e=this.visibleItems).call(e,t);-1!=n&&U6(i=this.visibleItems).call(i,n,1),void 0!==t.data.subgroup&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;if(void 0!=e){var i=this.subgroups[e];if(i){var n,r,o=c9(n=i.items).call(n,t);if(o>=0)U6(r=i.items).call(r,o,1),i.items.length?this._updateSubgroupsSizes():delete this.subgroups[e]}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=qrt.toArray(this.items),e=[],i=[],n=0;n<t.length;n++)void 0!==t[n].data.end&&i.push(t[n]),e.push(t[n]);this.orderedItems={byStart:e,byEnd:i},Lut(this.orderedItems.byStart),But(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,e,i){var n=[],r={};if(!this.isVisible&&void 0!==this.height&&this.groupId!=Jut.BACKGROUND){for(var o=0;o<e.length;o++){var s=e[o];s.displayed&&s.hide()}return n}var a=(i.end-i.start)/4,l=i.start-a,h=i.end+a,u=function(t){return t<l?-1:t<=h?0:1},c=function(t){var e=t.start,i=t.end;return i<l?-1:e<=h?0:1};if(e.length>0)for(var d=0;d<e.length;d++)this._checkIfVisibleWithReference(e[d],n,r,i);var p=qrt.binarySearchCustom(t.byStart,u,"data","start");if(this._traceVisible(p,t.byStart,n,r,(function(t){return t.data.start<l||t.data.start>h})),1==this.checkRangedItems){this.checkRangedItems=!1;for(var f=0;f<t.byEnd.length;f++)this._checkIfVisibleWithReference(t.byEnd[f],n,r,i)}else{var m=qrt.binarySearchCustom(t.byEnd,c,"data");this._traceVisible(m,t.byEnd,n,r,(function(t){return t.data.end<l||t.data.start>h}))}for(var v={},g=0,y=0;y<n.length;y++){var b=n[y];if(!b.displayed){var w=!0;v[y]=b.redraw(w),g=v[y].length}}var k=g>0;if(k)for(var _=function(t){TZ(qrt).call(qrt,v,(function(e){e[t]()}))},x=0;x<g;x++)_(x);for(var S=0;S<n.length;S++)n[S].repositionX();return n}},{key:"_traceVisible",value:function(t,e,i,n,r){if(-1!=t){for(var o=t;o>=0;o--){var s=e[o];if(r(s))break;s.isCluster&&!s.hasItems()||s.cluster||void 0===n[s.id]&&(n[s.id]=!0,i.push(s))}for(var a=t+1;a<e.length;a++){var l=e[a];if(r(l))break;l.isCluster&&!l.hasItems()||l.cluster||void 0===n[l.id]&&(n[l.id]=!0,i.push(l))}}}},{key:"_checkIfVisible",value:function(t,e,i){t.isVisible(i)?(t.displayed||t.show(),t.repositionX(),e.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,e,i,n){t.isVisible(n)?void 0===i[t.id]&&(i[t.id]=!0,e.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,e,i){var n=[],r={};if(e.length>0)for(var o=0;o<e.length;o++)this._checkIfVisibleWithReference(e[o],n,r,i);for(var s=0;s<t.byStart.length;s++)this._checkIfVisibleWithReference(t.byStart[s],n,r,i);for(var a=0;a<t.byEnd.length;a++)this._checkIfVisibleWithReference(t.byEnd[a],n,r,i);for(var l={},h=0,u=0;u<n.length;u++){var c=n[u];if(!c.displayed){var d=!0;l[u]=c.redraw(d),h=l[u].length}}var p=h>0;if(p)for(var f=0;f<h;f++)TZ(qrt).call(qrt,l,(function(t){t[f]()}));for(var m=0;m<n.length;m++)n[m].repositionX();return n}},{key:"changeSubgroup",value:function(t,e,i){this._removeFromSubgroup(t,e),this._addToSubgroup(t,i),this.orderSubgroups()}},{key:"dispose",value:function(){var t;this.hide();while(t=this._disposeCallbacks.pop())t()}}]),t}();function Zut(t){var e=tct();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function tct(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var ect=function(t){aQ(i,t);var e=Zut(i);function i(t,n,r){var o;return WH(this,i),o=e.call(this,t,n,r),o.width=0,o.height=0,o.top=0,o.left=0,o}return fJ(i,[{key:"redraw",value:function(t,e,i){var n=!1;this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,t),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var r=0,o=this.visibleItems.length;r<o;r++){var s=this.visibleItems[r];s.repositionY(e)}return n}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),i}(Qut);function ict(t,e){var i="undefined"!==typeof E3&&t5(t)||t["@@iterator"];if(!i){if(MQ(t)||(i=nct(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function nct(t,e){var i;if(t){if("string"===typeof t)return rct(t,e);var n=z3(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?H2(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rct(t,e):void 0}}function rct(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var oct=function(){function t(e,i,n){var r,o=this;WH(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=i||{},this.defaultOptions={locales:slt,locale:"en"},this.options=qrt.extend({},this.defaultOptions,n),this.options.locales=qrt.extend({},slt,this.options.locales);var s=this.defaultOptions.locales[this.defaultOptions.locale];TZ(r=z1(this.options.locales)).call(r,(function(t){o.options.locales[t]=qrt.extend({},s,o.options.locales[t])})),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=n&&n.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(e),this.editable=null,this._updateEditStatus()}return fJ(t,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(t){var e=void 0!=t.group&&this.data.group!=t.group;e&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0);var i=void 0!=t.subgroup&&this.data.subgroup!=t.subgroup;i&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(t){t&&(this.selectable="undefined"===typeof t.selectable||Boolean(t.selectable))}},{key:"setParent",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:"isVisible",value:function(t){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var t,e,i=this,n=document.createElement("div");n.className="vis-drag-center",n.dragCenterItem=this,this.hammerDragCenter=new dat(n),this.hammerDragCenter.on("tap",(function(t){i.parent.itemSet.body.emitter.emit("click",{event:t,item:i.id})})),this.hammerDragCenter.on("doubletap",(function(t){t.stopPropagation(),i.parent.itemSet._onUpdateItem(i),i.parent.itemSet.body.emitter.emit("doubleClick",{event:t,item:i.id})})),this.hammerDragCenter.on("panstart",(function(t){t.stopPropagation(),i.parent.itemSet._onDragStart(t)})),this.hammerDragCenter.on("panmove",RQ(t=i.parent.itemSet._onDrag).call(t,i.parent.itemSet)),this.hammerDragCenter.on("panend",RQ(e=i.parent.itemSet._onDragEnd).call(e,i.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(n,this.dom.dragLeft):this.dom.box.appendChild(n):this.dom.point&&this.dom.point.appendChild(n),this.dom.dragCenter=n}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(t){var e=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&e&&!this.dom.deleteButton){var i=this,n=document.createElement("div");this.options.rtl?n.className="vis-delete-rtl":n.className="vis-delete";var r=this.options.locales[this.options.locale];r||(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),r=this.options.locales["en"]),n.title=r.deleteSelected,this.hammerDeleteButton=new dat(n).on("tap",(function(t){t.stopPropagation(),i.parent.removeFromDataSet(i)})),t.appendChild(n),this.dom.deleteButton=n}else this.selected&&e||!this.dom.deleteButton||(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(t){if(this.options.tooltipOnItemUpdateTime){var e=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable;if(this.selected&&e&&!this.dom.onItemUpdateTimeTooltip){var i=document.createElement("div");i.className="vis-onUpdateTime-tooltip",t.appendChild(i),this.dom.onItemUpdateTimeTooltip=i}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var n,r=50,o=this.parent.itemSet.body.domProps.scrollTop;n="top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height;var s,a,l,h=n+this.parent.top-r<-o;if(h?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px")),this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template)a=RQ(l=this.options.tooltipOnItemUpdateTime.template).call(l,this),s=a(this.data);else s="start: ".concat(OZ(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(s+="<br> end: ".concat(OZ(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=qrt.xss(s)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var e,i,n,r,o,s,a,l=this._getItemData(),h=this.dom.box||this.dom.point,u=h.getElementsByClassName("vis-item-visible-frame")[0];this.options.visibleFrameTemplate?(o=RQ(s=this.options.visibleFrameTemplate).call(s,this),r=qrt.xss(o(l,u))):r="";if(u)if(r instanceof Object&&!(r instanceof Element))o(l,u);else if(i=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(r),i){if(r instanceof Element)u.innerHTML="",u.appendChild(r);else if(void 0!=r)u.innerHTML=qrt.xss(r);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=r}this.options.template?(n=RQ(a=this.options.template).call(a,this),e=n(l,t,this.data)):e=this.data.content;if(e instanceof Object&&!(e instanceof Element))n(l,t);else if(i=this._contentToString(this.content)!==this._contentToString(e),i){if(e instanceof Element)t.innerHTML="",t.appendChild(e);else if(void 0!=e)t.innerHTML=qrt.xss(e);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.content=e}}},{key:"_updateDataAttributes",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var e=[];if(MQ(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=z1(this.data)}var i,n=ict(e);try{for(n.s();!(i=n.n()).done;){var r=i.value,o=this.data[r];null!=o?t.setAttribute("data-".concat(r),o):t.removeAttribute("data-".concat(r))}}catch(s){n.e(s)}finally{n.f()}}}},{key:"_updateStyle",value:function(t){this.style&&(qrt.removeCssText(t,this.style),this.style=null),this.data.style&&(qrt.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return"string"===typeof t?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&("boolean"===typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"===tJ(this.options.editable)&&(this.editable={},qrt.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||this.data&&("boolean"===typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:"object"===tJ(this.data.editable)&&(this.editable={},qrt.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,e=RQ(t=this.options.tooltip.template).call(t,this);return e(this._getItemData(),this.data)}return this.data.title}}]),t}();function sct(t){var e=act();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function act(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}oct.prototype.stack=!0;var lct=function(t){aQ(i,t);var e=sct(i);function i(t,n,r){var o;if(WH(this,i),o=e.call(this,t,n,r),o.props={dot:{width:0,height:0},line:{width:0,height:0}},t&&void 0==t.start)throw new Error('Property "start" missing in item '.concat(t));return o}return fJ(i,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e,i=this.data.align||this.options.align,n=this.width*t.getMillisecondsPerPixel();return e="right"==i?this.data.start.getTime()>t.start&&this.data.start.getTime()-n<t.end:"left"==i?this.data.start.getTime()+n>t.start&&this.data.start.getTime()<t.end:this.data.start.getTime()+n/2>t.start&&this.data.start.getTime()-n/2<t.end,e}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var e=this.parent.dom.background;if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var i=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");i.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(e),this.dom.line.className="vis-item vis-line".concat(e),this.dom.dot.className="vis-item vis-dot".concat(e)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=t.dot.height,this.props.dot.width=t.dot.width,this.props.line.width=t.line.width,this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(t){var e,i,n,r,o,s,a=this,l=[RQ(e=this._createDomElement).call(e,this),RQ(i=this._appendDomElement).call(i,this),RQ(n=this._updateDirtyDomComponents).call(n,this),function(){a.dirty&&(o=a._getDomComponentsSizes())},function(){var t;a.dirty&&RQ(t=a._updateDomComponentsSizes).call(t,a)(o)},RQ(r=this._repaintDomAdditionals).call(r,this)];return t?l:(TZ(l).call(l,(function(t){s=t()})),s)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.remove?t.box.remove():t.box.parentNode&&t.box.parentNode.removeChild(t.box),t.line.remove?t.line.remove():t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.remove?t.dot.remove():t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var t=this.options.rtl,e=function(t,e,i){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==i){var o=r?-1*e:e;t.style.transform=void 0!==i?void 0!==e?L3(n="translate(".concat(o,"px, ")).call(n,i,"px)"):"translateY(".concat(i,"px)"):"translateX(".concat(o,"px)")}};e(this.dom.box,this.boxX,this.boxY,t),e(this.dom.dot,this.dotX,this.dotY,t),e(this.dom.line,this.lineX,this.lineY,t)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=void 0===this.data.align?this.options.align:this.data.align,i=this.props.line.width,n=this.props.dot.width;"right"==e?(this.boxX=t-this.width,this.lineX=t-i,this.dotX=t-i/2-n/2):"left"==e?(this.boxX=t,this.lineX=t,this.dotX=t+i/2-n/2):(this.boxX=t-this.width/2,this.lineX=this.options.rtl?t-i:t-i/2,this.dotX=t-n/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.line.style;if("top"==t){var i=this.parent.top+this.top+1;this.boxY=this.top||0,e.height="".concat(i,"px"),e.bottom="",e.top="0"}else{var n=this.parent.itemSet.props.height,r=n-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),e.height="".concat(r,"px"),e.top="",e.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),i}(oct);function hct(t){var e=uct();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function uct(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var cct=function(t){aQ(i,t);var e=hct(i);function i(t,n,r){var o;if(WH(this,i),o=e.call(this,t,n,r),o.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},t&&void 0==t.start)throw new Error('Property "start" missing in item '.concat(t));return o}return fJ(i,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.width*t.getMillisecondsPerPixel();return this.data.start.getTime()+e>t.start&&this.data.start<t.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["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.point.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(e),this.dom.dot.className="vis-item vis-dot".concat(e)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.dot.width=t.dot.width,this.props.dot.height=t.dot.height,this.props.content.height=t.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"px"),this.width=t.point.width,this.height=t.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var e=this.props.dot.width,i=this.options.rtl?e/2:e/2*-1;this.dom.dot.style.transform="translateX(".concat(i,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(t){var e,i,n,r,o,s,a=this,l=[RQ(e=this._createDomElement).call(e,this),RQ(i=this._appendDomElement).call(i,this),RQ(n=this._updateDirtyDomComponents).call(n,this),function(){a.dirty&&(o=a._getDomComponentsSizes())},function(){var t;a.dirty&&RQ(t=a._updateDomComponentsSizes).call(t,a)(o)},RQ(r=this._repaintDomAdditionals).call(r,this)];return t?l:(TZ(l).call(l,(function(t){s=t()})),s)}},{key:"repositionXY",value:function(){var t=this.options.rtl,e=function(t,e,i){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==i){var o=r?-1*e:e;t.style.transform=void 0!==i?void 0!==e?L3(n="translate(".concat(o,"px, ")).call(n,i,"px)"):"translateY(".concat(i,"px)"):"translateX(".concat(o,"px)")}};e(this.dom.point,this.pointX,this.pointY,t)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start);this.pointX=t,this.options.rtl?this.right=t-this.props.dot.width:this.left=t-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item;this.pointY="top"==t?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),i}(oct);function dct(t){var e=pct();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function pct(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var fct=function(t){aQ(i,t);var e=dct(i);function i(t,n,r){var o;if(WH(this,i),o=e.call(this,t,n,r),o.props={content:{width:0}},o.overflow=!1,t){if(void 0==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(void 0==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return o}return fJ(i,[{key:"isVisible",value:function(t){return!this.cluster&&(this.data.start<t.end&&this.data.end>t.start)}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+e,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,this.whiteSpace="nowrap"!==window.getComputedStyle(this.dom.content).whiteSpace,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(t){var e,i,n,r,o,s,a=this,l=[RQ(e=this._createDomElement).call(e,this),RQ(i=this._appendDomElement).call(i,this),RQ(n=this._updateDirtyDomComponents).call(n,this),function(){var t;a.dirty&&(o=RQ(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&RQ(t=a._updateDomComponentsSizes).call(t,a)(o)},RQ(r=this._repaintDomAdditionals).call(r,this)];return t?l:(TZ(l).call(l,(function(t){s=t()})),s)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}}},{key:"repositionX",value:function(t){var e,i,n=this.parent.width,r=this.conversion.toScreen(this.data.start),o=this.conversion.toScreen(this.data.end),s=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==t&&!0!==t||(r<-n&&(r=-n),o>2*n&&(o=2*n));var a=Math.max(Math.round(1e3*(o-r))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=r:this.left=r,this.width=a+this.props.content.width,i=this.props.content.width):(this.options.rtl?this.right=r:this.left=r,this.width=a,i=Math.min(o-r,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(-1*this.right,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(a,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),s){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var l=-1*Math.max(a-i,0);this.dom.content.style.transform="translateX(".concat(l,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(a-i,0),"px)");break;case"center":if(this.options.rtl){var h=-1*Math.max((a-i)/2,0);this.dom.content.style.transform="translateX(".concat(h,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((a-i)/2,0),"px)");break;default:if(e=this.overflow?o>0?Math.max(-r,0):-i:r<0?-r:0,this.options.rtl){var u=-1*e;this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(e,"px)")}}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;e.style.top="".concat("top"==t?this.top:this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var t=document.createElement("div");t.className="vis-drag-left",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var t=document.createElement("div");t.className="vis-drag-right",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),i}(oct);function mct(t){var e=vct();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function vct(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}fct.prototype.baseClassName="vis-item vis-range";var gct=function(t){aQ(i,t);var e=mct(i);function i(t,n,r){var o;if(WH(this,i),o=e.call(this,t,n,r),o.props={content:{width:0}},o.overflow=!1,t){if(void 0==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(void 0==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return o}return fJ(i,[{key:"isVisible",value:function(t){return this.data.start<t.end&&this.data.end>t.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+t}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(t){var e,i,n,r,o,s,a=this,l=[RQ(e=this._createDomElement).call(e,this),RQ(i=this._appendDomElement).call(i,this),RQ(n=this._updateDirtyDomComponents).call(n,this),function(){var t;a.dirty&&(o=RQ(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&RQ(t=a._updateDomComponentsSizes).call(t,a)(o)},RQ(r=this._repaintDomAdditionals).call(r,this)];return t?l:(TZ(l).call(l,(function(t){s=t()})),s)}},{key:"repositionY",value:function(t){var e,i=this.options.orientation.item;if(void 0!==this.data.subgroup){var n=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[n].height,"px"),this.dom.box.style.top="".concat("top"==i?this.parent.top+this.parent.subgroups[n].top:this.parent.top+this.parent.height-this.parent.subgroups[n].top-this.parent.subgroups[n].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof ect?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==i?"0":"",this.dom.box.style.top="top"==i?"0":""):(e=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(e,"px")}}]),i}(oct);gct.prototype.baseClassName="vis-item vis-background",gct.prototype.stack=!1,gct.prototype.show=fct.prototype.show,gct.prototype.hide=fct.prototype.hide,gct.prototype.repositionX=fct.prototype.repositionX;var yct=function(){function t(e,i){WH(this,t),this.container=e,this.overflowMethod=i||"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 fJ(t,[{key:"setPosition",value:function(t,e){this.x=q4(t),this.y=q4(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=qrt.xss(t)}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth,o=0,s=0;if("flip"==this.overflowMethod||"none"==this.overflowMethod){var a=!1,l=!0;"flip"==this.overflowMethod&&(this.y-e<this.padding&&(l=!1),this.x+i>r-this.padding&&(a=!0)),o=a?this.x-i:this.x,s=l?this.y-e:this.y}else s=this.y-e,s+e+this.padding>n&&(s=n-e-this.padding),s<this.padding&&(s=this.padding),o=this.x,o+i+this.padding>r&&(o=r-i-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=s+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),bct=mz,wct=vV.every,kct=lZ,_ct=kct("every");bct({target:"Array",proto:!0,forced:!_ct},{every:function(t){return wct(this,t,arguments.length>1?arguments[1]:void 0)}});var xct=VJ,Sct=xct("Array").every,Cct=AF,Dct=Sct,Tct=Array.prototype,Ect=function(t){var e=t.every;return t===Tct||Cct(Tct,t)&&e===Tct.every?Dct:e},Oct=Ect,Act=Oct,Pct=Act,Ict=yj(Pct);function Mct(t,e){var i="undefined"!==typeof E3&&t5(t)||t["@@iterator"];if(!i){if(MQ(t)||(i=Nct(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function Nct(t,e){var i;if(t){if("string"===typeof t)return Rct(t,e);var n=z3(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?H2(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rct(t,e):void 0}}function Rct(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function jct(t){var e=Fct();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function Fct(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var Lct=function(t){aQ(i,t);var e=jct(i);function i(t,n,r){var o;WH(this,i);var s=p8({},{fitOnDoubleClick:!0},r,{editable:!1});if(o=e.call(this,t,n,s),o.props={content:{width:0,height:0}},!t||void 0==t.uiItems)throw new Error('Property "uiItems" missing in item '+t.id);return o.id=jrt(),o.group=t.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return fJ(i,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(t){this.detach(),this.data.uiItems=t,this._setupRange(),this.attach()}},{key:"isVisible",value:function(t){var e=this.data.end?this.data.end-this.data.start:0,i=this.width*t.getMillisecondsPerPixel(),n=Math.max(this.data.start.getTime()+e,this.data.start.getTime()+i);return this.data.start<t.end&&n>t.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(t){var e,i,n,r,o,s,a,l,h=[RQ(e=this._createDomElement).call(e,this),RQ(i=this._appendDomElement).call(i,this),RQ(n=this._updateDirtyDomComponents).call(n,this),RQ(r=function(){this.dirty&&(a=this._getDomComponentsSizes())}).call(r,this),RQ(o=function(){var t;this.dirty&&RQ(t=this._updateDomComponentsSizes).call(t,this)(a)}).call(o,this),RQ(s=this._repaintDomAdditionals).call(s,this)];return t?h:(TZ(h).call(h,(function(t){l=t()})),l)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.parentNode&&t.box.parentNode.removeChild(t.box),this.options.showStipes&&(t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=this.data.end?this.conversion.toScreen(this.data.end):0;if(e)this.repositionXWithRanges(t,e);else{var i=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(t,i)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(t,e))}},{key:"repositionStype",value:function(t,e){this.dom.line.style.display="block",this.dom.dot.style.display="block";var i=this.dom.line.offsetWidth,n=this.dom.dot.offsetWidth;if(e){var r=i+t+(e-t)/2,o=r-n/2,s=this.options.rtl?-1*r:r,a=this.options.rtl?-1*o:o;this.dom.line.style.transform="translateX(".concat(s,"px)"),this.dom.dot.style.transform="translateX(".concat(a,"px)")}else{var l=this.options.rtl?-1*t:t,h=this.options.rtl?-1*(t-n/2):t-n/2;this.dom.line.style.transform="translateX(".concat(l,"px)"),this.dom.dot.style.transform="translateX(".concat(h,"px)")}}},{key:"repositionXWithoutRanges",value:function(t,e){"right"==e?this.options.rtl?(this.right=t-this.width,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width,this.dom.box.style.left=this.left+"px"):"left"==e?this.options.rtl?(this.right=t,this.dom.box.style.right=this.right+"px"):(this.left=t,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=t-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(t,e){var i=Math.round(Math.max(e-t+.5,1));this.options.rtl?this.right=t:this.left=t,this.width=Math.max(i,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=i+"px"}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;if(e.style.top="top"==t?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if("top"==t)this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var i=this.parent.itemSet.props.height,n=i-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=i-n+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var t,e,i=Mct(this.data.uiItems);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.cluster=this}}catch(r){i.e(r)}finally{i.f()}this.data.items=i1(t=this.data.uiItems).call(t,(function(t){return t.data})),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var e,i=Mct(this.data.uiItems);try{for(i.s();!(e=i.n()).done;){var n=e.value;delete n.cluster}}catch(r){i.e(r)}finally{i.f()}this.attached=!1,t&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var t,e,i,n=i1(t=this.data.uiItems).call(t,(function(t){return{start:t.data.start.valueOf(),end:t.data.end?t.data.end.valueOf():t.data.start.valueOf()}}));this.data.min=Math.min.apply(Math,D3(i1(n).call(n,(function(t){return Math.min(t.start,t.end||t.start)})))),this.data.max=Math.max.apply(Math,D3(i1(n).call(n,(function(t){return Math.max(t.start,t.end||t.start)}))));var r=i1(e=this.data.uiItems).call(e,(function(t){return t.center})),o=O1(r).call(r,(function(t,e){return t+e}),0)/this.data.uiItems.length;nat(i=this.data.uiItems).call(i,(function(t){return t.data.end}))?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(o),this.data.end=null)}},{key:"_getUiItems",value:function(){var t,e=this;return this.data.uiItems&&this.data.uiItems.length?KZ(t=this.data.uiItems).call(t,(function(t){return t.cluster===e})):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var t;if(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=RQ(t=i.prototype._onDoubleClick).call(t,this);this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}var e=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var i=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");i.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+t,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var t={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(t.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},t.line={width:this.dom.line.offsetWidth}),t}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=t.box.width:this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}},{key:"_fit",value:function(){if(this.emitter){var t=this._getFitRange(),e=t.fitStart,i=t.fitEnd,n={start:new Date(e),end:new Date(i),animation:!0};this.emitter.emit("fit",n)}}},{key:"_getItemData",value:function(){return this.data}}]),i}(oct);function Bct(t,e){var i="undefined"!==typeof E3&&t5(t)||t["@@iterator"];if(!i){if(MQ(t)||(i=zct(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function zct(t,e){var i;if(t){if("string"===typeof t)return Gct(t,e);var n=z3(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?H2(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gct(t,e):void 0}}function Gct(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}Lct.prototype.baseClassName="vis-item vis-range vis-cluster";var Hct="__ungrouped__",Wct="__background__",Yct={UNGROUPED:Hct,BACKGROUND:Wct},Vct=function(){function t(e){WH(this,t),this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}return fJ(t,[{key:"createClusterItem",value:function(t,e,i){var n=new Lct(t,e,i);return n}},{key:"setItems",value:function(t,e){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,e&&e.applyOnChangedLevel&&(this.applyOnChangedLevel=e.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(t,e,i){var n="boolean"===typeof i?{}:i,r=n.maxItems,o=n.clusterCriteria;o||(o=function(){return!0}),r=r||1;var s=-1,a=2,l=0;if(e>0){if(e>=1)return[];s=Math.abs(Math.round(Math.log(100/e)/Math.log(a))),l=Math.abs(Math.pow(a,s))}if(this.dataChanged){var h=s!=this.cacheLevel,u=!this.applyOnChangedLevel||h;u&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=s;var c=this.cache[s];if(!c){for(var d in c=[],this.groups)if(this.groups.hasOwnProperty(d)){var p=this.groups[d],f=p.length,m=0;while(m<f){var v=p[m],g=1,y=m-1;while(y>=0&&v.center-p[y].center<l/2)!p[y].cluster&&o(v.data,p[y].data)&&g++,y--;var b=m+1;while(b<p.length&&p[b].center-v.center<l/2)o(v.data,p[b].data)&&g++,b++;var w=c.length-1;while(w>=0&&v.center-c[w].center<l)v.group==c[w].group&&o(v.data,c[w].data)&&g++,w--;if(g>r){var k=g-r+1,_=[],x=m;while(_.length<k&&x<p.length)o(p[m].data,p[x].data)&&_.push(p[x]),x++;var S=this.itemSet.getGroupId(v.data),C=this.itemSet.groups[S]||this.itemSet.groups[Yct.UNGROUPED],D=this._getClusterForItems(_,C,t,i);c.push(D),m+=k}else delete v.cluster,m+=1}}this.cache[s]=c}return c}},{key:"_filterData",value:function(){var t={};this.groups=t;for(var e=0,i=g4(this.items);e<i.length;e++){var n=i[e],r=n.parent?n.parent.groupId:"",o=t[r];o||(o=[],t[r]=o),o.push(n),n.data.start&&(n.data.end?n.center=(n.data.start.valueOf()+n.data.end.valueOf())/2:n.center=n.data.start.valueOf())}for(var s in t){var a;if(t.hasOwnProperty(s))Cst(a=t[s]).call(a,(function(t,e){return t.center-e.center}))}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,e,i,n){var r,o,s=i1(r=i||[]).call(r,(function(t){var e;return{cluster:t,itemsIds:new but(i1(e=t.data.uiItems).call(e,(function(t){return t.id})))}}));if(s.length){var a,l=Bct(s);try{var h=function(){var e=a.value;if(e.itemsIds.size===t.length&&Ict(t).call(t,(function(t){return e.itemsIds.has(t.id)})))return o=e.cluster,1};for(l.s();!(a=l.n()).done;)if(h())break}catch(v){l.e(v)}finally{l.f()}}if(o)return o.setUiItems(t),o.group!==e&&(o.group&&o.group.remove(o),e&&(e.add(o),o.group=e)),o;var u=n.titleTemplate||"",c={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},d=u.replace(/{count}/,t.length),p='<div title="'+d+'">'+t.length+"</div>",f=p8({},n,this.itemSet.options),m={content:p,title:d,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(m,c,f),e&&(e.add(o),o.group=e),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}();function Uct(t,e){var i="undefined"!==typeof E3&&t5(t)||t["@@iterator"];if(!i){if(MQ(t)||(i=Xct(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function Xct(t,e){var i;if(t){if("string"===typeof t)return qct(t,e);var n=z3(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?H2(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qct(t,e):void 0}}function qct(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Kct(t){var e=$ct();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function $ct(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var Jct="__ungrouped__",Qct="__background__",Zct=function(t){aQ(i,t);var e=Kct(i);function i(t,n){var r;WH(this,i),r=e.call(this),r.body=t,r.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(t,e,i){var n=e.order;e.order=t.order,t.order=n},groupOrder:"order",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:vat.snap,onDropObjectOnItem:function(t,e,i){i(e)},onAdd:function(t,e){e(t)},onUpdate:function(t,e){e(t)},onMove:function(t,e){e(t)},onRemove:function(t,e){e(t)},onMoving:function(t,e){e(t)},onAddGroup:function(t,e){e(t)},onMoveGroup:function(t,e){e(t)},onRemoveGroup:function(t,e){e(t)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},r.options=qrt.extend({},r.defaultOptions),r.options.rtl=n.rtl,r.options.onTimeout=n.onTimeout,r.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},r.dom={},r.props={},r.hammer=null;var o=mJ(r);return r.itemsData=null,r.groupsData=null,r.itemsSettingTime=null,r.initialItemSetDrawn=!1,r.userContinueNotBail=null,r.sequentialSelection=!1,r.itemListeners={add:function(t,e,i){o._onAdd(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(t,e,i){o._onUpdate(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(t,e,i){o._onRemove(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},r.groupListeners={add:function(t,e,i){if(o._onAddGroups(e.items),o.groupsData&&o.groupsData.length>0){var n,r=o.groupsData.getDataSet();TZ(n=r.get()).call(n,(function(t){if(t.nestedGroups){var e;0!=t.showNested&&(t.showNested=!0);var n=[];TZ(e=t.nestedGroups).call(e,(function(e){var i=r.get(e);i&&(i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),n=L3(n).call(n,i))})),r.update(n,i)}}))}},update:function(t,e,i){o._onUpdateGroups(e.items)},remove:function(t,e,i){o._onRemoveGroups(e.items)}},r.items={},r.groups={},r.groupIds=[],r.selection=[],r.popup=null,r.popupTimer=null,r.touchParams={},r.groupTouchParams={group:null,isDragging:!1},r._create(),r.setOptions(n),r.clusters=[],r}return fJ(i,[{key:"_create",value:function(){var t,e,i,n,r,o,s,a,l,h,u,c,d,p,f,m=this,v=document.createElement("div");v.className="vis-itemset",v["vis-itemset"]=this,this.dom.frame=v;var g=document.createElement("div");g.className="vis-background",v.appendChild(g),this.dom.background=g;var y=document.createElement("div");y.className="vis-foreground",v.appendChild(y),this.dom.foreground=y;var b=document.createElement("div");b.className="vis-axis",this.dom.axis=b;var w=document.createElement("div");w.className="vis-labelset",this.dom.labelSet=w,this._updateUngrouped();var k=new ect(Qct,null,this);k.show(),this.groups[Qct]=k,this.hammer=new dat(this.body.dom.centerContainer),this.hammer.on("hammer.input",(function(t){t.isFirst&&m._onTouch(t)})),this.hammer.on("panstart",RQ(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",RQ(e=this._onDrag).call(e,this)),this.hammer.on("panend",RQ(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:dat.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",RQ(n=this._onSelectItem).call(n,this)),this.hammer.on("press",RQ(r=this._onMultiSelectItem).call(r,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",RQ(o=this._onAddItem).call(o,this)),this.options.rtl?this.groupHammer=new dat(this.body.dom.rightContainer):this.groupHammer=new dat(this.body.dom.leftContainer),this.groupHammer.on("tap",RQ(s=this._onGroupClick).call(s,this)),this.groupHammer.on("panstart",RQ(a=this._onGroupDragStart).call(a,this)),this.groupHammer.on("panmove",RQ(l=this._onGroupDrag).call(l,this)),this.groupHammer.on("panend",RQ(h=this._onGroupDragEnd).call(h,this)),this.groupHammer.get("pan").set({threshold:5,direction:dat.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",RQ(u=this._onMouseOver).call(u,this)),this.body.dom.centerContainer.addEventListener("mouseout",RQ(c=this._onMouseOut).call(c,this)),this.body.dom.centerContainer.addEventListener("mousemove",RQ(d=this._onMouseMove).call(d,this)),this.body.dom.centerContainer.addEventListener("contextmenu",RQ(p=this._onDragEnd).call(p,this)),this.body.dom.centerContainer.addEventListener("mousewheel",RQ(f=this._onMouseWheel).call(f,this)),this.show()}},{key:"setOptions",value:function(t){var e=this;if(t){var i,n,r=["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"];qrt.selectiveExtend(r,this.options,t),"itemsAlwaysDraggable"in t&&("boolean"===typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===tJ(t.itemsAlwaysDraggable)&&(qrt.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in t&&"boolean"===typeof t.sequentialSelection&&(this.options.sequentialSelection=t.sequentialSelection),"orientation"in t&&("string"===typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===tJ(t.orientation)&&"item"in t.orientation&&(this.options.orientation.item=t.orientation.item)),"margin"in t&&("number"===typeof t.margin?(this.options.margin.axis=t.margin,this.options.margin.item.horizontal=t.margin,this.options.margin.item.vertical=t.margin):"object"===tJ(t.margin)&&(qrt.selectiveExtend(["axis"],this.options.margin,t.margin),"item"in t.margin&&("number"===typeof t.margin.item?(this.options.margin.item.horizontal=t.margin.item,this.options.margin.item.vertical=t.margin.item):"object"===tJ(t.margin.item)&&qrt.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),TZ(i=["locale","locales"]).call(i,(function(i){i in t&&(e.options[i]=t[i])})),"editable"in t&&("boolean"===typeof t.editable?(this.options.editable.updateTime=t.editable,this.options.editable.updateGroup=t.editable,this.options.editable.add=t.editable,this.options.editable.remove=t.editable,this.options.editable.overrideItems=!1):"object"===tJ(t.editable)&&qrt.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,t.editable)),"groupEditable"in t&&("boolean"===typeof t.groupEditable?(this.options.groupEditable.order=t.groupEditable,this.options.groupEditable.add=t.groupEditable,this.options.groupEditable.remove=t.groupEditable):"object"===tJ(t.groupEditable)&&qrt.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable));var o=function(i){var n=t[i];if(n){var r;if("function"!==typeof n)throw new Error(L3(r="option ".concat(i," must be a function ")).call(r,i,"(item, callback)"));e.options[i]=n}};TZ(n=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(n,o),t.cluster?(p8(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new Vct(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(t){this.groupIds=[],t&&(t.refreshItems&&TZ(qrt).call(qrt,this.items,(function(t){t.dirty=!0,t.displayed&&t.redraw()})),t.restackGroups&&TZ(qrt).call(qrt,this.groups,(function(t,e){e!==Qct&&(t.stackDirty=!0)})))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(t){if(this.clearPopupTimer(),t){var e=this.options.tooltip.delay||"number"===typeof this.options.tooltip.delay?this.options.tooltip.delay:500;this.popupTimer=sZ((function(){t.show()}),e)}}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(t){var e;void 0==t&&(t=[]),MQ(t)||(t=[t]);var i,n=KZ(e=this.selection).call(e,(function(e){return-1===c9(t).call(t,e)})),r=Uct(n);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=this.getItemById(o);s&&s.unselect()}}catch(c){r.e(c)}finally{r.f()}this.selection=D3(t);var a,l=Uct(t);try{for(l.s();!(a=l.n()).done;){var h=a.value,u=this.getItemById(h);u&&u.select()}}catch(c){l.e(c)}finally{l.f()}}},{key:"getSelection",value:function(){var t;return L3(t=this.selection).call(t,[])}},{key:"getVisibleItems",value:function(){var t,e,i=this.body.range.getRange();this.options.rtl?(t=this.body.util.toScreen(i.start),e=this.body.util.toScreen(i.end)):(e=this.body.util.toScreen(i.start),t=this.body.util.toScreen(i.end));var n=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var o,s=this.groups[r],a=s.isVisible?s.visibleItems:[],l=Uct(a);try{for(l.s();!(o=l.n()).done;){var h=o.value;this.options.rtl?h.right<e&&h.right+h.width>t&&n.push(h.id):h.left<t&&h.left+h.width>e&&n.push(h.id)}}catch(u){l.e(u)}finally{l.f()}}return n}},{key:"getItemsAtCurrentTime",value:function(t){var e,i;this.options.rtl?(e=this.body.util.toScreen(t),i=this.body.util.toScreen(t)):(i=this.body.util.toScreen(t),e=this.body.util.toScreen(t));var n=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var o,s=this.groups[r],a=s.isVisible?s.visibleItems:[],l=Uct(a);try{for(l.s();!(o=l.n()).done;){var h=o.value;this.options.rtl?h.right<i&&h.right+h.width>e&&n.push(h.id):h.left<e&&h.left+h.width>i&&n.push(h.id)}}catch(u){l.e(u)}finally{l.f()}}return n}},{key:"getVisibleGroups",value:function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){var i=this.groups[e];i.isVisible&&t.push(e)}return t}},{key:"getItemById",value:function(t){var e;return this.items[t]||Tlt(e=this.clusters).call(e,(function(e){return e.id===t}))}},{key:"_deselect",value:function(t){for(var e=this.selection,i=0,n=e.length;i<n;i++)if(e[i]==t){U6(e).call(e,i,1);break}}},{key:"redraw",value:function(){var t=this.options.margin,e=this.body.range,i=qrt.option.asSize,n=this.options,r=n.orientation.item,o=!1,s=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,s.className="vis-itemset",this.options.cluster&&this._clusterItems(),o=this._orderGroups()||o;var a=e.end-e.start,l=a!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,h=e.start!=this.lastRangeStart,u=n.stack!=this.lastStack,c=n.stackSubgroups!=this.lastStackSubgroups,d=l||h||u||c;this.lastVisibleInterval=a,this.lastRangeStart=e.start,this.lastStack=n.stack,this.lastStackSubgroups=n.stackSubgroups,this.props.lastWidth=this.props.width;var p=this._firstGroup(),f={item:t.item,axis:t.axis},m={item:t.item,axis:t.item.vertical/2},v=0,g=t.axis+t.item.vertical;this.groups[Qct].redraw(e,m,d);var y={},b=0;TZ(qrt).call(qrt,this.groups,(function(t,i){if(i!==Qct){var n=t==p?f:m,r=!0;y[i]=t.redraw(e,n,d,r),b=y[i].length}}));var w=b>0;if(w){for(var k={},_=function(t){TZ(qrt).call(qrt,y,(function(e,i){k[i]=e[t]()}))},x=0;x<b;x++)_(x);TZ(qrt).call(qrt,this.groups,(function(t,e){if(e!==Qct){var i=k[e];o=i||o,v+=t.height}})),v=Math.max(v,g)}return v=Math.max(v,g),s.style.height=i(v),this.props.width=s.offsetWidth,this.props.height=v,this.dom.axis.style.top=i("top"==r?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.hammer.get("press").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,o=this._isResized()||o,o}},{key:"_firstGroup",value:function(){var t="top"==this.options.orientation.item?0:this.groupIds.length-1,e=this.groupIds[t],i=this.groups[e]||this.groups[Jct];return i||null}},{key:"_updateUngrouped",value:function(){var t,e,i=this.groups[Jct];if(this.groupsData){if(i)for(e in i.dispose(),delete this.groups[Jct],this.items)if(this.items.hasOwnProperty(e)){t=this.items[e],t.parent&&t.parent.remove(t);var n=this.getGroupId(t.data),r=this.groups[n];r&&r.add(t)||t.hide()}}else if(!i){var o=null,s=null;for(e in i=new Qut(o,s,this),this.groups[Jct]=i,this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],i.add(t));i.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(t){this.itemsSettingTime=new Date;var e,i=this,n=this.itemsData;if(t){if(!Brt(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=Wrt(t)}else this.itemsData=null;if(n&&(TZ(qrt).call(qrt,this.itemListeners,(function(t,e){n.off(e,t)})),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;TZ(qrt).call(qrt,this.itemListeners,(function(t,e){i.itemsData.on(e,t,r)})),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return null!=this.itemsData?this.itemsData.rawDS:null}},{key:"setGroups",value:function(t){var e,i=this;if(this.groupsData&&(TZ(qrt).call(qrt,this.groupListeners,(function(t,e){i.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!Brt(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var n,r=this.groupsData.getDataSet();TZ(n=r.get()).call(n,(function(t){var e;t.nestedGroups&&TZ(e=t.nestedGroups).call(e,(function(e){var i=r.get(e);i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),r.update(i)}))}));var o=this.id;TZ(qrt).call(qrt,this.groupListeners,(function(t,e){i.groupsData.on(e,t,o)})),e=this.groupsData.getIds(),this._onAddGroups(e)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(t){var e=this,i=this.itemsData.get(t);i&&this.options.onRemove(i,(function(i){i&&e.itemsData.remove(t)}))}},{key:"_getType",value:function(t){return t.type||this.options.type||(t.end?"range":"box")}},{key:"getGroupId",value:function(t){var e=this._getType(t);return"background"==e&&void 0==t.group?Qct:this.groupsData?t.group:Jct}},{key:"_onUpdate",value:function(t){var e=this,n=this;TZ(t).call(t,(function(t){var r,o=n.itemsData.get(t),s=n.items[t],a=o?n._getType(o):null,l=i.types[a];if(s&&(l&&s instanceof l?n._updateItem(s,o):(r=s.selected,n._removeItem(s),s=null)),!s&&o){if(!l)throw new TypeError('Unknown item type "'.concat(a,'"'));s=new l(o,n.conversion,n.options),s.id=t,n._addItem(s),r&&(e.selection.push(t),s.select())}})),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(t){var e=0,i=this;TZ(t).call(t,(function(t){var n=i.items[t];n&&(e++,i._removeItem(n))})),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){TZ(qrt).call(qrt,this.groups,(function(t){t.order()}))}},{key:"_onUpdateGroups",value:function(t){this._onAddGroups(t)}},{key:"_onAddGroups",value:function(t){var e=this;TZ(t).call(t,(function(t){var i=e.groupsData.get(t),n=e.groups[t];if(n)n.setData(i);else{if(t==Jct||t==Qct)throw new Error("Illegal group id. ".concat(t," is a reserved id."));var r=k9(e.options);for(var o in qrt.extend(r,{height:null}),n=new Qut(t,i,e),e.groups[t]=n,e.items)if(e.items.hasOwnProperty(o)){var s=e.items[o];s.data.group==t&&n.add(s)}n.order(),n.show()}})),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(t){var e=this;TZ(t).call(t,(function(t){var i=e.groups[t];i&&(i.dispose(),delete e.groups[t])})),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var t=this.groupsData.getIds({order:this.options.groupOrder});t=this._orderNestedGroups(t);var e=!qrt.equalArray(t,this.groupIds);if(e){var i=this.groups;TZ(t).call(t,(function(t){i[t].hide()})),TZ(t).call(t,(function(t){i[t].show()})),this.groupIds=t}return e}return!1}},{key:"_orderNestedGroups",value:function(t){var e=this;function i(t,e){var n=[];return TZ(e).call(e,(function(e){n.push(e);var r=t.groupsData.get(e);if(r.nestedGroups){var o,s=i1(o=t.groupsData.get({filter:function(t){return t.nestedInGroup==e},order:t.options.groupOrder})).call(o,(function(t){return t.id}));n=L3(n).call(n,i(t,s))}})),n}var n=KZ(t).call(t,(function(t){return!e.groupsData.get(t).nestedInGroup}));return i(this,n)}},{key:"_addItem",value:function(t){this.items[t.id]=t;var e=this.getGroupId(t.data),i=this.groups[e];i?i&&i.data&&i.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,i&&i.add(t)}},{key:"_updateItem",value:function(t,e){t.setData(e);var i=this.getGroupId(t.data),n=this.groups[i];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1}},{key:"_removeItem",value:function(t){var e,i;t.hide(),delete this.items[t.id];var n=c9(e=this.selection).call(e,t.id);-1!=n&&U6(i=this.selection).call(i,n,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(t){for(var e=[],i=0;i<t.length;i++)t[i]instanceof fct&&e.push(t[i]);return e}},{key:"_onTouch",value:function(t){this.touchParams.item=this.itemFromTarget(t),this.touchParams.dragLeftItem=t.target.dragLeftItem||!1,this.touchParams.dragRightItem=t.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(t){for(var e=0;e<this.groupIds.length;e++)if(t==this.groupIds[e])return e}},{key:"_onDragStart",value:function(t){var e=this;if(!this.touchParams.itemIsDragging){var i,n=this.touchParams.item||null,r=this;if(n&&(n.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;if(null!=n.editable&&!n.editable.updateTime&&!n.editable.updateGroup&&!this.options.editable.overrideItems)return;var o=this.touchParams.dragLeftItem,s=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=n,o)i={item:o,initialX:t.center.x,dragLeft:!0,data:this._cloneItemData(n.data)},this.touchParams.itemProps=[i];else if(s)i={item:s,initialX:t.center.x,dragRight:!0,data:this._cloneItemData(n.data)},this.touchParams.itemProps=[i];else if(this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey))this._onDragStartAddItem(t);else{this.groupIds.length<1&&this.redraw();var a=this._getGroupIndex(n.data.group),l=this.options.itemsAlwaysDraggable.item&&!n.selected?[n.id]:this.getSelection();this.touchParams.itemProps=i1(l).call(l,(function(i){var n=r.items[i],o=r._getGroupIndex(n.data.group);return{item:n,initialX:t.center.x,groupOffset:a-o,data:e._cloneItemData(n.data)}}))}t.stopPropagation()}else this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey)&&this._onDragStartAddItem(t)}}},{key:"_onDragStartAddItem",value:function(t){var e=this.options.snap||null,i=this.dom.frame.getBoundingClientRect(),n=this.options.rtl?i.right-t.center.x+10:t.center.x-i.left-10,r=this.body.util.toTime(n),o=this.body.util.getScale(),s=this.body.util.getStep(),a=e?e(r,o,s):r,l=a,h={type:"range",start:a,end:l,content:"new item"},u=jrt();h[this.itemsData.idProp]=u;var c=this.groupFromTarget(t);c&&(h.group=c.groupId);var d=new fct(h,this.conversion,this.options);d.id=u,d.data=this._cloneItemData(h),this._addItem(d),this.touchParams.selectedItem=d;var p={item:d,initialX:t.center.x,data:d.data};this.options.rtl?p.dragLeft=!0:p.dragRight=!0,this.touchParams.itemProps=[p],t.stopPropagation()}},{key:"_onDrag",value:function(t){var e=this;if(null!=this.popup&&this.options.showTooltips&&!this.popup.hidden){var i=this.body.dom.centerContainer,n=i.getBoundingClientRect();this.popup.setPosition(t.center.x-n.left+i.offsetLeft,t.center.y-n.top+i.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var r;t.stopPropagation();var o=this,s=this.options.snap||null,a=this.body.dom.root.offsetLeft,l=this.options.rtl?a+this.body.domProps.right.width:a+this.body.domProps.left.width,h=this.body.util.getScale(),u=this.body.util.getStep(),c=this.touchParams.selectedItem,d=(this.options.editable.overrideItems||null==c.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=c.editable&&c.editable.updateGroup,p=null;if(d&&c&&void 0!=c.data.group){var f=o.groupFromTarget(t);f&&(p=this._getGroupIndex(f.groupId))}TZ(r=this.touchParams.itemProps).call(r,(function(i){var n,r,a,f,m,v=o.body.util.toTime(t.center.x-l),g=o.body.util.toTime(i.initialX-l);n=e.options.rtl?-(v-g):v-g;var y=e._cloneItemData(i.item.data);if(null==i.item.editable||i.item.editable.updateTime||i.item.editable.updateGroup||o.options.editable.overrideItems){var b=(e.options.editable.overrideItems||null==c.editable)&&e.options.editable.updateTime||!e.options.editable.overrideItems&&null!=c.editable&&c.editable.updateTime;if(b)if(i.dragLeft)e.options.rtl?void 0!=y.end&&(a=qrt.convert(i.data.end,"Date"),m=new Date(a.valueOf()+n),y.end=s?s(m,h,u):m):void 0!=y.start&&(r=qrt.convert(i.data.start,"Date"),f=new Date(r.valueOf()+n),y.start=s?s(f,h,u):f);else if(i.dragRight)e.options.rtl?void 0!=y.start&&(r=qrt.convert(i.data.start,"Date"),f=new Date(r.valueOf()+n),y.start=s?s(f,h,u):f):void 0!=y.end&&(a=qrt.convert(i.data.end,"Date"),m=new Date(a.valueOf()+n),y.end=s?s(m,h,u):m);else if(void 0!=y.start)if(r=qrt.convert(i.data.start,"Date").valueOf(),f=new Date(r+n),void 0!=y.end){a=qrt.convert(i.data.end,"Date");var w=a.valueOf()-r.valueOf();y.start=s?s(f,h,u):f,y.end=new Date(y.start.valueOf()+w)}else y.start=s?s(f,h,u):f;if(d&&!i.dragLeft&&!i.dragRight&&null!=p&&void 0!=y.group){var k=p-i.groupOffset;k=Math.max(0,k),k=Math.min(o.groupIds.length-1,k),y.group=o.groupIds[k]}y=e._cloneItemData(y),o.options.onMoving(y,(function(t){t&&i.item.setData(e._cloneItemData(t,"Date"))}))}})),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(t,e){var i=this.groups[e];if(i&&i.groupId!=t.data.group){var n=t.parent;n.remove(t),n.order(),t.data.group=i.groupId,i.add(t),i.order()}}},{key:"_onDragEnd",value:function(t){var e=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){t.stopPropagation();var i=this,n=this.touchParams.itemProps;this.touchParams.itemProps=null,TZ(n).call(n,(function(t){var n=t.item.id,r=null!=i.itemsData.get(n);if(r){var o=e._cloneItemData(t.item.data);i.options.onMove(o,(function(r){r?(r[e.itemsData.idProp]=n,e.itemsData.update(r)):(t.item.setData(t.data),i.body.emitter.emit("_change"))}))}else i.options.onAdd(t.item.data,(function(e){i._removeItem(t.item),e&&i.itemsData.add(e),i.body.emitter.emit("_change")}))}))}}},{key:"_onGroupClick",value:function(t){var e=this,i=this.groupFromTarget(t);sZ((function(){e.toggleGroupShowNested(i)}),1)}},{key:"toggleGroupShowNested",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&t.nestedGroups){var i=this.groupsData.getDataSet();t.showNested=void 0!=e?!!e:!t.showNested;var n=i.get(t.groupId);n.showNested=t.showNested;var r,o=t.nestedGroups,s=o;while(s.length>0){var a=s;s=[];for(var l=0;l<a.length;l++){var h=i.get(a[l]);h.nestedGroups&&(s=L3(s).call(s,h.nestedGroups))}s.length>0&&(o=L3(o).call(o,s))}if(n.showNested){for(var u=i.get(n.nestedGroups),c=0;c<u.length;c++){var d=u[c];d.nestedGroups&&d.nestedGroups.length>0&&(void 0==d.showNested||1==d.showNested)&&u.push.apply(u,D3(i.get(d.nestedGroups)))}r=i1(u).call(u,(function(t){return void 0==t.visible&&(t.visible=!0),t.visible=!!n.showNested,t}))}else{var p;r=i1(p=i.get(o)).call(p,(function(t){return void 0==t.visible&&(t.visible=!0),t.visible=!!n.showNested,t}))}i.update(L3(r).call(r,n)),n.showNested?(qrt.removeClassName(t.dom.label,"collapsed"),qrt.addClassName(t.dom.label,"expanded")):(qrt.removeClassName(t.dom.label,"expanded"),qrt.addClassName(t.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(t){t.dom.label.classList.toggle("vis-group-is-dragging"),t.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(t){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(t),this.groupTouchParams.group&&(t.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this.groupsData.getDataSet(),i=this.groupFromTarget(t);if(i&&i.height!=this.groupTouchParams.group.height){var n=i.top<this.groupTouchParams.group.top,r=t.center?t.center.y:t.clientY,o=i.dom.foreground.getBoundingClientRect(),s=this.groupTouchParams.group.height;if(n){if(o.top+s<r)return}else{var a=i.height;if(o.top+a-s>r)return}}if(i&&i!=this.groupTouchParams.group){var l=e.get(i.groupId),h=e.get(this.groupTouchParams.group.groupId);h&&l&&(this.options.groupOrderSwap(h,l,e),e.update(h),e.update(l));var u=e.getIds({order:this.options.groupOrder});if(!qrt.equalArray(u,this.groupTouchParams.originalOrder)){var c=this.groupTouchParams.originalOrder,d=this.groupTouchParams.group.groupId,p=Math.min(c.length,u.length),f=0,m=0,v=0;while(f<p){while(f+m<p&&f+v<p&&u[f+m]==c[f+v])f++;if(f+m>=p)break;if(u[f+m]==d)m=1;else if(c[f+v]==d)v=1;else{var g=c9(u).call(u,c[f+v]),y=e.get(u[f+m]),b=e.get(c[f+v]);this.options.groupOrderSwap(y,b,e),e.update(y),e.update(b);var w=u[f+m];u[f+m]=c[f+v],u[g]=w,f++}}}}}}},{key:"_onGroupDragEnd",value:function(t){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,i=e.groupTouchParams.group.groupId,n=e.groupsData.getDataSet(),r=qrt.extend({},n.get(i));e.options.onMoveGroup(r,(function(t){if(t)t[n._idProp]=i,n.update(t);else{var r=n.getIds({order:e.options.groupOrder});if(!qrt.equalArray(r,e.groupTouchParams.originalOrder)){var o=e.groupTouchParams.originalOrder,s=Math.min(o.length,r.length),a=0;while(a<s){while(a<s&&r[a]==o[a])a++;if(a>=s)break;var l=c9(r).call(r,o[a]),h=n.get(r[a]),u=n.get(o[a]);e.options.groupOrderSwap(h,u,n),n.update(h),n.update(u);var c=r[a];r[a]=o[a],r[l]=c,a++}}}})),e.body.emitter.emit("groupDragged",{groupId:i}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(t){if(this.options.selectable){var e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),i=t.srcEvent&&t.srcEvent.shiftKey;if(e||i)this._onMultiSelectItem(t);else{var n=this.getSelection(),r=this.itemFromTarget(t),o=r&&r.selectable?[r.id]:[];this.setSelection(o);var s=this.getSelection();(s.length>0||n.length>0)&&this.body.emitter.emit("select",{items:s,event:t})}}}},{key:"_onMouseOver",value:function(t){var e=this.itemFromTarget(t);if(e){var i=this.itemFromRelatedTarget(t);if(e!==i){var n=e.getTitle();if(this.options.showTooltips&&n){null==this.popup&&(this.popup=new yct(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(n);var r=this.body.dom.centerContainer,o=r.getBoundingClientRect();this.popup.setPosition(t.clientX-o.left+r.offsetLeft,t.clientY-o.top+r.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}}}},{key:"_onMouseOut",value:function(t){var e=this.itemFromTarget(t);if(e){var i=this.itemFromRelatedTarget(t);e!==i&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t}))}}},{key:"_onMouseMove",value:function(t){var e=this.itemFromTarget(t);if(e&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var i=this.body.dom.centerContainer,n=i.getBoundingClientRect();this.popup.setPosition(t.clientX-n.left+i.offsetLeft,t.clientY-n.top+i.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)}},{key:"_onUpdateItem",value:function(t){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var e=this;if(t){var i=e.itemsData.get(t.id);this.options.onUpdate(i,(function(t){t&&e.itemsData.update(t)}))}}}},{key:"_onDropObjectOnItem",value:function(t){var e=this.itemFromTarget(t),i=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(i,e)}},{key:"_onAddItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e,i,n=this,r=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),s=this.options.rtl?o.right-t.center.x:t.center.x-o.left,a=this.body.util.toTime(s),l=this.body.util.getScale(),h=this.body.util.getStep();"drop"==t.type?(i=JSON.parse(t.dataTransfer.getData("text")),i.content=i.content?i.content:"new item",i.start=i.start?i.start:r?r(a,l,h):a,i.type=i.type||"box",i[this.itemsData.idProp]=i.id||jrt(),"range"!=i.type||i.end||(e=this.body.util.toTime(s+this.props.width/5),i.end=r?r(e,l,h):e)):(i={start:r?r(a,l,h):a,content:"new item"},i[this.itemsData.idProp]=jrt(),"range"===this.options.type&&(e=this.body.util.toTime(s+this.props.width/5),i.end=r?r(e,l,h):e));var u=this.groupFromTarget(t);u&&(i.group=u.groupId),i=this._cloneItemData(i),this.options.onAdd(i,(function(e){e&&(n.itemsData.add(e),"drop"==t.type&&n.setSelection([e.id]))}))}}},{key:"_onMultiSelectItem",value:function(t){var e=this;if(this.options.selectable){var n=this.itemFromTarget(t);if(n){var r=this.options.multiselect?this.getSelection():[],o=t.srcEvent&&t.srcEvent.shiftKey||!1;if((o||this.options.sequentialSelection)&&this.options.multiselect){var s=this.itemsData.get(n.id).group,a=void 0;this.options.multiselectPerGroup&&r.length>0&&(a=this.itemsData.get(r[0]).group),this.options.multiselectPerGroup&&void 0!=a&&a!=s||r.push(n.id);var l=i._getItemRange(this.itemsData.get(r));if(!this.options.multiselectPerGroup||a==s)for(var h in r=[],this.items)if(this.items.hasOwnProperty(h)){var u=this.items[h],c=u.data.start,d=void 0!==u.data.end?u.data.end:c;!(c>=l.min&&d<=l.max)||this.options.multiselectPerGroup&&a!=this.itemsData.get(u.id).group||u instanceof gct||r.push(u.id)}}else{var p=c9(r).call(r,n.id);-1==p?r.push(n.id):U6(r).call(r,p,1)}var f=KZ(r).call(r,(function(t){return e.getItemById(t).selectable}));this.setSelection(f),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}}},{key:"itemFromElement",value:function(t){var e=t;while(e){if(e.hasOwnProperty("vis-item"))return e["vis-item"];e=e.parentNode}return null}},{key:"itemFromTarget",value:function(t){return this.itemFromElement(t.target)}},{key:"itemFromRelatedTarget",value:function(t){return this.itemFromElement(t.relatedTarget)}},{key:"groupFromTarget",value:function(t){var e=t.center?t.center.y:t.clientY,i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(var n=0;n<i.length;n++){var r=i[n],o=this.groups[r],s=o.dom.foreground,a=s.getBoundingClientRect();if(e>=a.top&&e<a.top+s.offsetHeight)return o;if("top"===this.options.orientation.item){if(n===this.groupIds.length-1&&e>a.top)return o}else if(0===n&&e<a.top+s.offset)return o}return null}},{key:"_cloneItemData",value:function(t,e){var i=qrt.extend({},t);return e||(e=this.itemsData.type),void 0!=i.start&&(i.start=qrt.convert(i.start,e&&e.start||"Date")),void 0!=i.end&&(i.end=qrt.convert(i.end,e&&e.end||"Date")),i}},{key:"_clusterItems",value:function(){if(this.options.cluster){var t=this.body.range.conversion(this.body.domProps.center.width),e=t.scale,i=this.clusterGenerator.getClusters(this.clusters,e,this.options.cluster);if(this.clusters!=i){if(this._detachAllClusters(),i){var n,r=Uct(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.attach()}}catch(s){r.e(s)}finally{r.f()}this.clusters=i}this._updateClusters(i)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var t,e=Uct(this.clusters);try{for(e.s();!(t=e.n()).done;){var i=t.value;i.detach()}}catch(n){e.e(n)}finally{e.f()}}}},{key:"_updateClusters",value:function(t){if(this.clusters&&this.clusters.length){var e,i,n=new but(i1(t).call(t,(function(t){return t.id}))),r=KZ(e=this.clusters).call(e,(function(t){return!n.has(t.id)})),o=!1,s=Uct(r);try{for(s.s();!(i=s.n()).done;){var a,l,h=i.value,u=c9(a=this.selection).call(a,h.id);if(-1!==u)h.unselect(),U6(l=this.selection).call(l,u,1),o=!0}}catch(d){s.e(d)}finally{s.f()}if(o){var c=this.getSelection();this.body.emitter.emit("select",{items:c,event:event})}}this.clusters=t||[]}}],[{key:"_getItemRange",value:function(t){var e=null,i=null;return TZ(t).call(t,(function(t){(null==i||t.start<i)&&(i=t.start),void 0!=t.end?(null==e||t.end>e)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)})),{min:i,max:e}}},{key:"itemSetFromTarget",value:function(t){var e=t.target;while(e){if(e.hasOwnProperty("vis-itemset"))return e["vis-itemset"];e=e.parentNode}return null}}]),i}(mot);Zct.types={background:gct,box:lct,range:fct,point:cct},Zct.prototype._onAdd=Zct.prototype._onUpdate;var tdt,edt=!1,idt="background: #FFeeee; color: #dd0000",ndt=function(){function t(){WH(this,t)}return fJ(t,null,[{key:"validate",value:function(e,i,n){edt=!1,tdt=i;var r=i;return void 0!==n&&(r=i[n]),t.parse(e,r,[]),edt}},{key:"parse",value:function(e,i,n){for(var r in e)e.hasOwnProperty(r)&&t.check(r,e,i,n)}},{key:"check",value:function(e,i,n,r){if(void 0!==n[e]||void 0!==n.__any__){var o=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(o="__any__",s="object"===t.getType(i[e]));var a=n[o];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,o,a,r)}else t.getSuggestion(e,n,r)}},{key:"checkFields",value:function(e,i,n,r,o,s){var a=function(i){console.log("%c"+i+t.printLocation(s,e),idt)},l=t.getType(i[e]),h=o[l];void 0!==h?"array"===t.getType(h)&&-1===c9(h).call(h,i[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(h)+' not "'+i[e]+'". '),edt=!0):"object"===l&&"__any__"!==r&&(s=qrt.copyAndExtendArray(s,e),t.parse(i[e],n[r],s)):void 0===o["any"]&&(a('Invalid type received for "'+e+'". Expected: '+t.print(z1(o))+". Received ["+l+'] "'+i[e]+'"'),edt=!0)}},{key:"getType",value:function(t){var e=tJ(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":MQ(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,i,n){var r,o=t.findInOptions(e,i,n,!1),s=t.findInOptions(e,tdt,[],!0),a=8,l=4;r=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':s.distance<=l&&o.distance>s.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):o.distance<=a?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(z1(i))+t.printLocation(n,e),console.log('%cUnknown option detected: "'+e+'"'+r,idt),edt=!0}},{key:"findInOptions",value:function(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[],l=e.toLowerCase(),h=void 0;for(var u in i){var c=void 0;if(void 0!==i[u].__type__&&!0===r){var d=t.findInOptions(e,i[u],qrt.copyAndExtendArray(n,u));o>d.distance&&(s=d.closestMatch,a=d.path,o=d.distance,h=d.indexMatch)}else{var p;-1!==c9(p=u.toLowerCase()).call(p,l)&&(h=u),c=t.levenshteinDistance(e,u),o>c&&(s=u,a=qrt.copyArray(n),o=c)}}return{closestMatch:s,path:a,distance:o,indexMatch:h}}},{key:"printLocation",value:function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",n="\n\n"+i+"options = {\n",r=0;r<t.length;r++){for(var o=0;o<r+1;o++)n+="  ";n+=t[r]+": {\n"}for(var s=0;s<t.length+1;s++)n+="  ";n+=e+"\n";for(var a=0;a<t.length+1;a++){for(var l=0;l<t.length-a;l++)n+="  ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return E9(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var i,n,r=[];for(i=0;i<=e.length;i++)r[i]=[i];for(n=0;n<=t.length;n++)r[0][n]=n;for(i=1;i<=e.length;i++)for(n=1;n<=t.length;n++)e.charAt(i-1)==t.charAt(n-1)?r[i][n]=r[i-1][n-1]:r[i][n]=Math.min(r[i-1][n-1]+1,Math.min(r[i][n-1]+1,r[i-1][n]+1));return r[e.length][t.length]}}]),t}(),rdt="string",odt="boolean",sdt="number",adt="array",ldt="date",hdt="object",udt="dom",cdt="moment",ddt="any",pdt={configure:{enabled:{boolean:odt},filter:{boolean:odt,function:"function"},container:{dom:udt},__type__:{object:hdt,boolean:odt,function:"function"}},align:{string:rdt},alignCurrentTime:{string:rdt,undefined:"undefined"},rtl:{boolean:odt,undefined:"undefined"},rollingMode:{follow:{boolean:odt},offset:{number:sdt,undefined:"undefined"},__type__:{object:hdt}},onTimeout:{timeoutMs:{number:sdt},callback:{function:"function"},__type__:{object:hdt}},verticalScroll:{boolean:odt,undefined:"undefined"},horizontalScroll:{boolean:odt,undefined:"undefined"},autoResize:{boolean:odt},throttleRedraw:{number:sdt},clickToUse:{boolean:odt},dataAttributes:{string:rdt,array:adt},editable:{add:{boolean:odt,undefined:"undefined"},remove:{boolean:odt,undefined:"undefined"},updateGroup:{boolean:odt,undefined:"undefined"},updateTime:{boolean:odt,undefined:"undefined"},overrideItems:{boolean:odt,undefined:"undefined"},__type__:{boolean:odt,object:hdt}},end:{number:sdt,date:ldt,string:rdt,moment:cdt},format:{minorLabels:{millisecond:{string:rdt,undefined:"undefined"},second:{string:rdt,undefined:"undefined"},minute:{string:rdt,undefined:"undefined"},hour:{string:rdt,undefined:"undefined"},weekday:{string:rdt,undefined:"undefined"},day:{string:rdt,undefined:"undefined"},week:{string:rdt,undefined:"undefined"},month:{string:rdt,undefined:"undefined"},year:{string:rdt,undefined:"undefined"},__type__:{object:hdt,function:"function"}},majorLabels:{millisecond:{string:rdt,undefined:"undefined"},second:{string:rdt,undefined:"undefined"},minute:{string:rdt,undefined:"undefined"},hour:{string:rdt,undefined:"undefined"},weekday:{string:rdt,undefined:"undefined"},day:{string:rdt,undefined:"undefined"},week:{string:rdt,undefined:"undefined"},month:{string:rdt,undefined:"undefined"},year:{string:rdt,undefined:"undefined"},__type__:{object:hdt,function:"function"}},__type__:{object:hdt}},moment:{function:"function"},groupHeightMode:{string:rdt},groupOrder:{string:rdt,function:"function"},groupEditable:{add:{boolean:odt,undefined:"undefined"},remove:{boolean:odt,undefined:"undefined"},order:{boolean:odt,undefined:"undefined"},__type__:{boolean:odt,object:hdt}},groupOrderSwap:{function:"function"},height:{string:rdt,number:sdt},hiddenDates:{start:{date:ldt,number:sdt,string:rdt,moment:cdt},end:{date:ldt,number:sdt,string:rdt,moment:cdt},repeat:{string:rdt},__type__:{object:hdt,array:adt}},itemsAlwaysDraggable:{item:{boolean:odt,undefined:"undefined"},range:{boolean:odt,undefined:"undefined"},__type__:{boolean:odt,object:hdt}},limitSize:{boolean:odt},locale:{string:rdt},locales:{__any__:{any:ddt},__type__:{object:hdt}},longSelectPressTime:{number:sdt},margin:{axis:{number:sdt},item:{horizontal:{number:sdt,undefined:"undefined"},vertical:{number:sdt,undefined:"undefined"},__type__:{object:hdt,number:sdt}},__type__:{object:hdt,number:sdt}},max:{date:ldt,number:sdt,string:rdt,moment:cdt},maxHeight:{number:sdt,string:rdt},maxMinorChars:{number:sdt},min:{date:ldt,number:sdt,string:rdt,moment:cdt},minHeight:{number:sdt,string:rdt},moveable:{boolean:odt},multiselect:{boolean:odt},multiselectPerGroup:{boolean:odt},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:rdt,undefined:"undefined"},item:{string:rdt,undefined:"undefined"},__type__:{string:rdt,object:hdt}},selectable:{boolean:odt},sequentialSelection:{boolean:odt},showCurrentTime:{boolean:odt},showMajorLabels:{boolean:odt},showMinorLabels:{boolean:odt},showWeekScale:{boolean:odt},stack:{boolean:odt},stackSubgroups:{boolean:odt},cluster:{maxItems:{number:sdt,undefined:"undefined"},titleTemplate:{string:rdt,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:odt,undefined:"undefined"},fitOnDoubleClick:{boolean:odt,undefined:"undefined"},__type__:{boolean:odt,object:hdt}},snap:{function:"function",null:"null"},start:{date:ldt,number:sdt,string:rdt,moment:cdt},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:rdt,function:"function"},showTooltips:{boolean:odt},tooltip:{followMouse:{boolean:odt},overflowMethod:{string:["cap","flip","none"]},delay:{number:sdt},template:{function:"function"},__type__:{object:hdt}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:odt,object:hdt}},timeAxis:{scale:{string:rdt,undefined:"undefined"},step:{number:sdt,undefined:"undefined"},__type__:{object:hdt}},type:{string:rdt},width:{string:rdt,number:sdt},preferZoom:{boolean:odt},zoomable:{boolean:odt},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:sdt},zoomMax:{number:sdt},zoomMin:{number:sdt},xss:{disabled:{boolean:odt},filterOptions:{__any__:{any:ddt},__type__:{object:hdt}},__type__:{object:hdt}},__type__:{object:hdt}},fdt={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",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:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}},mdt={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},vdt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;WH(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return fJ(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!==typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!==typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"===typeof t)return mdt[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===qrt.isString(t)){if(!0===qrt.isValidRGB(t)){var r=t.substr(4).substr(0,t.length-5).split(",");i={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===qrt.isValidRGBA(t)){var o=t.substr(5).substr(0,t.length-6).split(",");i={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===qrt.isValidHex(t)){var s=qrt.hexToRGB(t);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===i)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: "+E9(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===e&&(this.previousColor=qrt.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",sZ((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===e&&(this.initialColor=qrt.extend({},t)),this.color=t;var i=qrt.RGBToHSV(t.r,t.g,t.b),n=2*Math.PI,r=this.r*i.s,o=this.centerCoordinates.x+r*Math.sin(n*i.h),s=this.centerCoordinates.y+r*Math.cos(n*i.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=qrt.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=qrt.HSVToRGB(e.h,e.s,e.v);i["a"]=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=qrt.RGBToHSV(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,r),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Y9(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var r=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(a){}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(a){}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=RQ(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=RQ(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=RQ(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=RQ(n=this._loadLast).call(n,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 dat(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),pat(this.hammer,(function(e){t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,r,o=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,s),this.centerCoordinates={x:.5*o,y:.5*s},this.r=.49*o;var a,l=2*Math.PI/360,h=1/360,u=1/this.r;for(n=0;n<360;n++)for(r=0;r<this.r;r++)e=this.centerCoordinates.x+r*Math.sin(l*n),i=this.centerCoordinates.y+r*Math.cos(l*n),a=qrt.HSVToRGB(n*h,r*u,1),t.fillStyle="rgb("+a.r+","+a.g+","+a.b+")",t.fillRect(e-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,s)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,r=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,s=i-o,a=n-r,l=Math.atan2(s,a),h=.98*Math.min(Math.sqrt(s*s+a*a),o),u=Math.cos(l)*h+r,c=Math.sin(l)*h+o;this.colorPickerSelector.style.top=u-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=c-.5*this.colorPickerSelector.clientWidth+"px";var d=l/(2*Math.PI);d=d<0?d+1:d;var p=h/this.r,f=qrt.RGBToHSV(this.color.r,this.color.g,this.color.b);f.h=d,f.s=p;var m=qrt.HSVToRGB(f.h,f.s,f.v);m["a"]=this.color.a,this.color=m,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+")"}}]),t}(),gdt=function(){function t(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;WH(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},qrt.extend(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new vdt(r),this.wrapper=void 0}return fJ(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"===typeof t)this.options.filter=t;else if(MQ(t))this.options.filter=t.join();else if("object"===tJ(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==KZ(t)&&(this.options.filter=KZ(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"===typeof t?(this.options.filter=!0,e=t):"function"===typeof t&&(this.options.filter=t,e=!0);!1===KZ(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=KZ(this.options),e=0,i=!1;for(var n in this.configureOptions)this.configureOptions.hasOwnProperty(n)&&(this.allowCreation=!1,i=!1,"function"===typeof t?(i=t(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):!0!==t&&-1===c9(t).call(t,n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return TZ(n).call(n,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerHTML=qrt.xss(t),this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");return n.className="vis-configuration vis-config-label vis-config-s"+e.length,n.innerHTML=!0===i?qrt.xss("<i><b>"+t+":</b></i>"):qrt.xss(t+":"),n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==c9(t).call(t,e)&&(r=c9(t).call(t,e));for(var o=0;o<t.length;o++){var s=document.createElement("option");s.value=t[o],o===r&&(s.selected="selected"),s.innerHTML=t[o],n.appendChild(s)}var a=this;n.onchange=function(){a._update(this.value,i)};var l=this._makeLabel(i[i.length-1],i);this._makeItem(i,l,n)}},{key:"_makeRange",value:function(t,e,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=r,a.max=o}catch(m){}a.step=s;var l="",h=0;if(void 0!==e){var u=1.2;e<0&&e*u<r?(a.min=Math.ceil(e*u),h=a.min,l="range increased"):e/u<r&&(a.min=Math.ceil(e/u),h=a.min,l="range increased"),e*u>o&&1!==o&&(a.max=Math.ceil(e*u),h=a.max,l="range increased"),a.value=e}else a.value=n;var c=document.createElement("input");c.className="vis-configuration vis-config-rangeinput",c.value=Number(a.value);var d=this;a.onchange=function(){c.value=this.value,d._update(Number(this.value),i)},a.oninput=function(){c.value=this.value};var p=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,p,a,c);""!==l&&this.popupHistory[f]!==h&&(this.popupHistory[f]=h,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerHTML=qrt.xss(t),n.onclick=function(){i._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index],i=e.getBoundingClientRect();this.popupDiv.html.style.left=i.left+"px",this.popupDiv.html.style.top=i.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=sZ((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=sZ((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,i){var n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=t,void 0!==e&&(n.checked=e,e!==t&&("object"===tJ(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var r=this;n.onchange=function(){r._update(this.checked,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeTextInput",value:function(t,e,i){var n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=e,e!==t&&this.changedOptions.push({path:i,value:e});var r=this;n.onchange=function(){r._update(this.value,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeColorField",value:function(t,e,i){var n=this,r=t[1],o=document.createElement("div");e=void 0===e?r:e,"none"!==e?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,o.onclick=function(){n._showColorPicker(e,o,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,o)}},{key:"_showColorPicker",value:function(t,e,i){var n=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,n._update(r,i)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){n._showColorPicker(t,e,i)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,r=KZ(this.options),o=!1;for(var s in t)if(t.hasOwnProperty(s)){n=!0;var a=t[s],l=qrt.copyAndExtendArray(e,s);if("function"===typeof r&&(n=r(s,e),!1===n&&!MQ(a)&&"string"!==typeof a&&"boolean"!==typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,l,!0),this.allowCreation=!1===i)),!1!==n){o=!0;var h=this._getValue(l);if(MQ(a))this._handleArray(a,h,l);else if("string"===typeof a)this._makeTextInput(a,h,l);else if("boolean"===typeof a)this._makeCheckbox(a,h,l);else if(a instanceof Object){var u=!0;if(-1!==c9(e).call(e,"physics")&&this.moduleOptions.physics.solver!==s&&(u=!1),!0===u)if(void 0!==a.enabled){var c=qrt.copyAndExtendArray(l,"enabled"),d=this._getValue(c);if(!0===d){var p=this._makeLabel(s,l,!0);this._makeItem(l,p),o=this._handleObject(a,l)||o}else this._makeCheckbox(a,d,l)}else{var f=this._makeLabel(s,l,!0);this._makeItem(l,f),o=this._handleObject(a,l)||o}}else console.error("dont know how to handle",a,s,l)}}return o}},{key:"_handleArray",value:function(t,e,i){"string"===typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"===typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"===typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="true"===t||t,t="false"!==t&&t;for(var r=0;r<e.length;r++)"global"!==e[r]&&(void 0===n[e[r]]&&(n[e[r]]={}),r!==e.length-1?n=n[e[r]]:n[e[r]]=t);return i}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+E9(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}();function ydt(t){var e=bdt();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function bdt(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var wdt=function(t){aQ(i,t);var e=ydt(i);function i(t,n,r,o){var s,a,l,h,u,c,d,p;if(WH(this,i),p=e.call(this),p.initTime=new Date,p.itemsDone=!1,!(mJ(p)instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(!MQ(r)&&!Brt(r)&&r instanceof Object){var f=o;o=r,r=f}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var m=mJ(p);if(p.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:OZ},p.options=qrt.deepExtend({},p.defaultOptions),o&&qrt.setupXSSProtection(o.xss),p._create(t),!o||o&&"undefined"==typeof o.rtl){var v;p.dom.root.style.visibility="hidden";var g=p.dom.root;while(!v&&g)v=window.getComputedStyle(g,null).direction,g=g.parentElement;p.options.rtl=v&&"rtl"==v.toLowerCase()}else p.options.rtl=o.rtl;o&&(o.rollingMode&&(p.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(p.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(p.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(p.options.loadingScreenTemplate=o.loadingScreenTemplate));var y=document.createElement("div");if(p.options.loadingScreenTemplate){var b,w=RQ(b=p.options.loadingScreenTemplate).call(b,mJ(p)),k=w(p.dom.loadingScreen);k instanceof Object&&!(k instanceof Element)?w(y):k instanceof Element?(y.innerHTML="",y.appendChild(k)):void 0!=k&&(y.innerHTML=qrt.xss(k))}function _(t,e){m.hasListeners(t)&&m.emit(t,m.getEventProperties(e))}return p.dom.loadingScreen.appendChild(y),p.components=[],p.body={dom:p.dom,domProps:p.props,emitter:{on:RQ(s=p.on).call(s,mJ(p)),off:RQ(a=p.off).call(a,mJ(p)),emit:RQ(l=p.emit).call(l,mJ(p))},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:RQ(h=m._toScreen).call(h,m),toGlobalScreen:RQ(u=m._toGlobalScreen).call(u,m),toTime:RQ(c=m._toTime).call(c,m),toGlobalTime:RQ(d=m._toGlobalTime).call(d,m)}},p.range=new Gst(p.body,p.options),p.components.push(p.range),p.body.range=p.range,p.timeAxis=new bat(p.body,p.options),p.timeAxis2=null,p.components.push(p.timeAxis),p.currentTime=new plt(p.body,p.options),p.components.push(p.currentTime),p.itemSet=new Zct(p.body,p.options),p.components.push(p.itemSet),p.itemsData=null,p.groupsData=null,p.dom.root.onclick=function(t){_("click",t)},p.dom.root.ondblclick=function(t){_("doubleClick",t)},p.dom.root.oncontextmenu=function(t){_("contextmenu",t)},p.dom.root.onmouseover=function(t){_("mouseOver",t)},window.PointerEvent?(p.dom.root.onpointerdown=function(t){_("mouseDown",t)},p.dom.root.onpointermove=function(t){_("mouseMove",t)},p.dom.root.onpointerup=function(t){_("mouseUp",t)}):(p.dom.root.onmousemove=function(t){_("mouseMove",t)},p.dom.root.onmousedown=function(t){_("mouseDown",t)},p.dom.root.onmouseup=function(t){_("mouseUp",t)}),p.initialFitDone=!1,p.on("changed",(function(){if(null!=m.itemsData){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,void 0!=m.options.start||void 0!=m.options.end){if(void 0==m.options.start||void 0==m.options.end)var t=m.getItemRange();var e=void 0!=m.options.start?m.options.start:t.min,i=void 0!=m.options.end?m.options.end:t.max;m.setWindow(e,i,{animation:!1})}else m.fit({animation:!1});m.initialDrawDone||!m.initialRangeChangeDone&&(m.options.start||m.options.end)&&!m.options.rollingMode||(m.initialDrawDone=!0,m.itemSet.initialDrawDone=!0,m.dom.root.style.visibility="visible",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&sZ((function(){return m.options.onInitialDrawComplete()}),0))}})),p.on("destroyTimeline",(function(){m.destroy()})),o&&p.setOptions(o),p.body.emitter.on("fit",(function(t){p._onFit(t),p.redraw()})),r&&p.setGroups(r),n&&p.setItems(n),p._redraw(),p}return fJ(i,[{key:"_createConfigurator",value:function(){return new gdt(this,this.dom.container,fdt)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(t){var e=ndt.validate(t,pdt);if(!0===e&&console.log("%cErrors have been found in the supplied options object.",idt),ult.prototype.setOptions.call(this,t),"type"in t&&t.type!==this.options.type){this.options.type=t.type;var i=this.itemsData;if(i){var n=this.getSelection();this.setItems(null),this.setItems(i.rawDS),this.setSelection(n)}}}},{key:"setItems",value:function(t){var e;this.itemsDone=!1,e=t?Brt(t)?Wrt(t):Wrt(new sj(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.itemSet&&this.itemSet.setItems(null!=e?e.rawDS:null)}},{key:"setGroups",value:function(t){var e,i=function(t){return!1!==t.visible};t?(MQ(t)&&(t=new sj(t)),e=new dj(t,{filter:i})):e=null,null!=this.groupsData&&"function"===typeof this.groupsData.setData&&this.groupsData.setData(null),this.groupsData=e,this.itemSet.setGroups(e)}},{key:"setData",value:function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)}},{key:"setSelection",value:function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(t,e){if(this.itemsData&&void 0!=t){var i=MQ(t)?t:[t],n=this.itemsData.get(i),r=null,o=null;if(TZ(n).call(n,(function(t){var e=t.start.valueOf(),i="end"in t?t.end.valueOf():t.start.valueOf();(null===r||e<r)&&(r=e),(null===o||i>o)&&(o=i)})),null!==r&&null!==o){var s=this,a=this.itemSet.items[i[0]],l=-1*this._getScrollTop(),h=null,u=function(t,e,i){var n=xdt(s,a);if(!1!==n&&(h||(h=n),h.itemTop!=n.itemTop||h.shouldScroll)){h.itemTop!=n.itemTop&&n.shouldScroll&&(h=n,l=-1*s._getScrollTop());var r=l,o=h.scrollOffset,u=i?o:r+(o-r)*t;s._setScrollTop(-u),e||s._redraw()}},c=function(){var t=xdt(s,a);t.shouldScroll&&t.itemTop!=h.itemTop&&(s._setScrollTop(-t.scrollOffset),s._redraw())},d=function(){c(),sZ(c,100)},p=!e||void 0===e.zoom||e.zoom,f=(r+o)/2,m=p?1.1*(o-r):Math.max(this.range.end-this.range.start,1.1*(o-r)),v=!e||void 0===e.animation||e.animation;v||(h={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(f-m/2,f+m/2,{animation:v},d,u)}}}},{key:"fit",value:function(t,e){var i,n=!t||void 0===t.animation||t.animation;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(i=this.getDataRange(),this.moveTo(i.min.valueOf(),{animation:n},e)):(i=this.getItemRange(),this.range.setRange(i.min,i.max,{animation:n},e))}},{key:"getItemRange",value:function(){var t=this,e=this.getDataRange(),i=null!==e.min?e.min.valueOf():null,n=null!==e.max?e.max.valueOf():null,r=null,o=null;if(null!=i&&null!=n){var s=n-i;s<=0&&(s=10);var a=s/this.props.center.width,l={},h=0;TZ(qrt).call(qrt,this.itemSet.items,(function(t,e){if(t.groupShowing){var i=!0;l[e]=t.redraw(i),h=l[e].length}}));var u=h>0;if(u)for(var c=function(t){TZ(qrt).call(qrt,l,(function(e){e[t]()}))},d=0;d<h;d++)c(d);if(TZ(qrt).call(qrt,this.itemSet.items,(function(e){var s,l,h=kdt(e),u=_dt(e);t.options.rtl?(s=h-(e.getWidthRight()+10)*a,l=u+(e.getWidthLeft()+10)*a):(s=h-(e.getWidthLeft()+10)*a,l=u+(e.getWidthRight()+10)*a),s<i&&(i=s,r=e),l>n&&(n=l,o=e)})),r&&o){var p=r.getWidthLeft()+10,f=o.getWidthRight()+10,m=this.props.center.width-p-f;m>0&&(this.options.rtl?(i=kdt(r)-f*s/m,n=_dt(o)+p*s/m):(i=kdt(r)-p*s/m,n=_dt(o)+f*s/m))}}return{min:null!=i?new Date(i):null,max:null!=n?new Date(n):null}}},{key:"getDataRange",value:function(){var t,e=null,i=null;this.itemsData&&TZ(t=this.itemsData).call(t,(function(t){var n=qrt.convert(t.start,"Date").valueOf(),r=qrt.convert(void 0!=t.end?t.end:t.start,"Date").valueOf();(null===e||n<e)&&(e=n),(null===i||r>i)&&(i=r)}));return{min:null!=e?new Date(e):null,max:null!=i?new Date(i):null}}},{key:"getEventProperties",value:function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=this.dom.centerContainer.getBoundingClientRect(),r=this.options.rtl?n.right-e:e-n.left,o=i-n.top,s=this.itemSet.itemFromTarget(t),a=this.itemSet.groupFromTarget(t),l=hlt.customTimeFromTarget(t),h=this.itemSet.options.snap||null,u=this.body.util.getScale(),c=this.body.util.getStep(),d=this._toTime(r),p=h?h(d,u,c):d,f=qrt.getTarget(t),m=null;return null!=s?m="item":null!=l?m="custom-time":qrt.hasParent(f,this.timeAxis.dom.foreground)||this.timeAxis2&&qrt.hasParent(f,this.timeAxis2.dom.foreground)?m="axis":qrt.hasParent(f,this.itemSet.dom.labelSet)?m="group-label":qrt.hasParent(f,this.currentTime.bar)?m="current-time":qrt.hasParent(f,this.dom.center)&&(m="background"),{event:t,item:s?s.id:null,isCluster:!!s&&!!s.isCluster,items:s?s.items||[]:null,group:a?a.groupId:null,customTime:l?l.options.id:null,what:m,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:r,y:o,time:d,snappedTime:p}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){ult.prototype._redraw.call(this)}},{key:"_onFit",value:function(t){var e=t.start,i=t.end,n=t.animation;i?this.range.setRange(e,i,{animation:n}):this.moveTo(e.valueOf(),{animation:n})}}]),i}(ult);function kdt(t){return qrt.convert(t.data.start,"Date").valueOf()}function _dt(t){var e=void 0!=t.data.end?t.data.end:t.data.start;return qrt.convert(e,"Date").valueOf()}function xdt(t,e){if(!e.parent)return!1;var i=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,n=t.props.center.height,r=e.parent,o=r.top,s=!0,a=t.timeAxis.options.orientation.axis,l=function(){return"bottom"==a?r.height-e.top-e.height:e.top},h=-1*t._getScrollTop(),u=o+l(),c=e.height;return u<h?o+i<=o+l()+c&&(o+=l()-t.itemSet.options.margin.item.vertical):u+c>h+i?o+=l()+c-i+t.itemSet.options.margin.item.vertical:s=!1,o=Math.min(o,n-i),{shouldScroll:s,scrollOffset:o,itemTop:u}}function Sdt(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function Cdt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var i=0;i<t[e].redundant.length;i++)t[e].redundant[i].parentNode.removeChild(t[e].redundant[i]);t[e].redundant=[]}}function Ddt(t){Sdt(t),Cdt(t),Sdt(t)}function Tdt(t,e,i){var n;return e.hasOwnProperty(t)?e[t].redundant.length>0?(n=e[t].redundant[0],e[t].redundant.shift()):(n=document.createElementNS("http://www.w3.org/2000/svg",t),i.appendChild(n)):(n=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},i.appendChild(n)),e[t].used.push(n),n}function Edt(t,e,i,n){var r;return e.hasOwnProperty(t)?e[t].redundant.length>0?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElement(t),void 0!==n?i.insertBefore(r,n):i.appendChild(r)):(r=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==n?i.insertBefore(r,n):i.appendChild(r)),e[t].used.push(r),r}function Odt(t,e,i,n,r,o){var s;if("circle"==i.style?(s=Tdt("circle",n,r),s.setAttributeNS(null,"cx",t),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*i.size)):(s=Tdt("rect",n,r),s.setAttributeNS(null,"x",t-.5*i.size),s.setAttributeNS(null,"y",e-.5*i.size),s.setAttributeNS(null,"width",i.size),s.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&s.setAttributeNS(null,"style",i.styles),s.setAttributeNS(null,"class",i.className+" vis-point"),o){var a=Tdt("text",n,r);o.xOffset&&(t+=o.xOffset),o.yOffset&&(e+=o.yOffset),o.content&&(a.textContent=o.content),o.className&&a.setAttributeNS(null,"class",o.className+" vis-label"),a.setAttributeNS(null,"x",t),a.setAttributeNS(null,"y",e)}return s}function Adt(t,e,i,n,r,o,s,a){if(0!=n){n<0&&(n*=-1,e-=n);var l=Tdt("rect",o,s);l.setAttributeNS(null,"x",t-.5*i),l.setAttributeNS(null,"y",e),l.setAttributeNS(null,"width",i),l.setAttributeNS(null,"height",n),l.setAttributeNS(null,"class",r),a&&l.setAttributeNS(null,"style",a)}}function Pdt(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(dpt){return"en"}}var Idt=function(){function t(e,i,n,r,o,s){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(WH(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=o,this.majorCharHeight=s,this._start=e,this._end=i,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=a,this.autoScaleStart=n,this.autoScaleEnd=r,this.formattingFunction=l,n||r){var h=this,u=function(t){var e=t-t%(h.magnitudefactor*h.minorSteps[h.minorStepIdx]);return t%(h.magnitudefactor*h.minorSteps[h.minorStepIdx])>h.magnitudefactor*h.minorSteps[h.minorStepIdx]*.5?e+h.magnitudefactor*h.minorSteps[h.minorStepIdx]:e};n&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=u(this._start)),r&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=u(this._end)),this.determineScale()}}return fJ(t,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var e=this.majorCharHeight/this.scale,i=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,i);var n=0;i<0&&(n=i);for(var r=!1,o=n;Math.abs(o)<=Math.abs(i);o++){this.magnitudefactor=Math.pow(10,o);for(var s=0;s<this.minorSteps.length;s++){var a=this.magnitudefactor*this.minorSteps[s];if(a>=e){r=!0,this.minorStepIdx=s;break}}if(!0===r)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var e=t.toPrecision(5);return"function"===typeof this.formattingFunction&&(e=this.formattingFunction(t)),"number"===typeof e?"".concat(e):"string"===typeof e?e:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],e=this.getStep(),i=(e-this._start%e)%e,n=this._start+i;this._end-n>1e-5;n+=e)n!=this._start&&t.push({major:this.is_major(n),y:this.convertValue(n),val:this.formatValue(n)});return t}},{key:"followScale",value:function(t){var e=this.minorStepIdx,i=this._start,n=this._end,r=this,o=function(){r.magnitudefactor*=2},s=function(){r.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==e||o(),o()):(this.minorStepIdx=2,1==e||s(),s()));var a=t.convertValue(0),l=t.getStep()*t.scale,h=!1,u=0;while(!h&&u++<5){this.scale=l/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var c=this.containerHeight/this.scale;this._start=i,this._end=this._start+c;var d=this._end*this.scale,p=this.magnitudefactor*this.majorSteps[this.minorStepIdx],f=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var m=a-d;this._end+=m/this.scale,this._start=this._end-c}else this.autoScaleStart?(this._start-=f/this.scale,this._end=this._start+c):(this._start+=p-f/this.scale,this._end=this._start+c);if(!this.autoScaleEnd&&this._end>n+1e-5)s(),h=!1;else{if(!this.autoScaleStart&&this._start<i-1e-5){if(!(this.zeroAlign&&i>=0)){s(),h=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&c<n-i?(o(),h=!1):h=!0}}}},{key:"convertValue",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:"screenToValue",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]),t}();function Mdt(t,e){var i="undefined"!==typeof E3&&t5(t)||t["@@iterator"];if(!i){if(MQ(t)||(i=Ndt(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function Ndt(t,e){var i;if(t){if("string"===typeof t)return Rdt(t,e);var n=z3(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?H2(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rdt(t,e):void 0}}function Rdt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function jdt(t){var e=Fdt();return function(){var i,n=CQ(t);if(e){var r=CQ(this).constructor;i=HH(n,arguments,r)}else i=n.apply(this,arguments);return lQ(this,i)}}function Fdt(){if("undefined"===typeof Reflect||!HH)return!1;if(HH.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(HH(Boolean,[],(function(){}))),!0}catch(t){return!1}}var Ldt=function(t){aQ(i,t);var e=jdt(i);function i(t,n,r,o){var s;WH(this,i),s=e.call(this),s.id=jrt(),s.body=t,s.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(t){return"".concat(fot(t.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(t){return"".concat(fot(t.toPrecision(3)))},title:{text:void 0,style:void 0}}},s.linegraphOptions=o,s.linegraphSVG=r,s.props={},s.DOMelements={lines:{},labels:{},title:{}},s.dom={},s.scale=void 0,s.range={start:0,end:0},s.options=qrt.extend({},s.defaultOptions),s.conversionFactor=1,s.setOptions(n),s.width=Number("".concat(s.options.width).replace("px","")),s.minWidth=s.width,s.height=s.linegraphSVG.getBoundingClientRect().height,s.hidden=!1,s.stepPixels=25,s.zeroCrossing=-1,s.amountOfSteps=-1,s.lineOffset=0,s.master=!0,s.masterAxis=null,s.svgElements={},s.iconsRemoved=!1,s.groups={},s.amountOfGroups=0,s._create(),void 0==s.scale&&s._redrawLabels(),s.framework={svg:s.svg,svgElements:s.svgElements,options:s.options,groups:s.groups};var a=mJ(s);return s.body.emitter.on("verticalDrag",(function(){a.dom.lineContainer.style.top="".concat(a.body.domProps.scrollTop,"px")})),s}return fJ(i,[{key:"addGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1}},{key:"updateGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.amountOfGroups+=1),this.groups[t]=e}},{key:"removeGroup",value:function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)}},{key:"setOptions",value:function(t){if(t){var e=!1;this.options.orientation!=t.orientation&&void 0!==t.orientation&&(e=!0);var i=["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"];qrt.selectiveDeepExtend(i,this.options,t),this.minWidth=Number("".concat(this.options.width).replace("px","")),!0===e&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){var t;Sdt(this.svgElements);var e=this.options.iconWidth,i=15,n=4,r=n+.5*i;t="left"===this.options.orientation?n:this.width-e-n;var o=z1(this.groups);Cst(o).call(o,(function(t,e){return t<e?-1:1}));var s,a=Mdt(o);try{for(a.s();!(s=a.n()).done;){var l=s.value;!0!==this.groups[l].visible||void 0!==this.linegraphOptions.visibility[l]&&!0!==this.linegraphOptions.visibility[l]||(this.groups[l].getLegend(e,i,this.framework,t,r),r+=i+n)}}catch(h){a.e(h)}finally{a.f()}Cdt(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){!1===this.iconsRemoved&&(Sdt(this.svgElements),Cdt(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||("left"===this.options.orientation?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(t,e){this.range.start=t,this.range.end=e}},{key:"redraw",value:function(){var t=!1,e=0;for(var i in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(i)&&(!0!==this.groups[i].visible||void 0!==this.linegraphOptions.visibility[i]&&!0!==this.linegraphOptions.visibility[i]||e++);if(0===this.amountOfGroups||0===e)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=!0===this.options.visible?Number("".concat(this.options.width).replace("px","")):0;var n=this.props,r=this.dom.frame;r.className="vis-data-axis",this._calculateCharSize();var o=this.options.orientation,s=this.options.showMinorLabels,a=this.options.showMajorLabels,l=this.body.dom.backgroundHorizontal.offsetWidth;n.minorLabelHeight=s?n.minorCharHeight:0,n.majorLabelHeight=a?n.majorCharHeight:0,n.minorLineWidth=l-this.lineOffset-this.width+2*this.options.minorLinesOffset,n.minorLineHeight=1,n.majorLineWidth=l-this.lineOffset-this.width+2*this.options.majorLinesOffset,n.majorLineHeight=1,"left"===o?(r.style.top="0",r.style.left="0",r.style.bottom="",r.style.width="".concat(this.width,"px"),r.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(r.style.top="",r.style.bottom="0",r.style.left="0",r.style.width="".concat(this.width,"px"),r.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),t=this._redrawLabels(),t=this._isResized()||t,!0===this.options.icons?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(o)}return t}},{key:"_redrawLabels",value:function(){var t=this,e=!1;Sdt(this.DOMelements.lines),Sdt(this.DOMelements.labels);var i=this.options["orientation"],n=void 0!=this.options[i].range?this.options[i].range:{},r=!0;void 0!=n.max&&(this.range.end=n.max,r=!1);var o=!0;void 0!=n.min&&(this.range.start=n.min,o=!1),this.scale=new Idt(this.range.start,this.range.end,o,r,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[i].format),!1===this.master&&void 0!=this.masterAxis?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var s=this.scale.getLines();TZ(s).call(s,(function(e){var n=e.y,r=e.major;t.options["showMinorLabels"]&&!1===r&&t._redrawLabel(n-2,e.val,i,"vis-y-axis vis-minor",t.props.minorCharHeight),r&&n>=0&&t._redrawLabel(n-2,e.val,i,"vis-y-axis vis-major",t.props.majorCharHeight),!0===t.master&&(r?t._redrawLine(n,i,"vis-grid vis-horizontal vis-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(n,i,"vis-grid vis-horizontal vis-minor",t.options.minorLinesOffset,t.props.minorLineWidth))}));var a=0;void 0!==this.options[i].title&&void 0!==this.options[i].title.text&&(a=this.props.titleCharHeight);var l=!0===this.options.icons?Math.max(this.options.iconWidth,a)+this.options.labelOffsetX+15:a+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-l&&!0===this.options.visible?(this.width=this.maxLabelSize+l,this.options.width="".concat(this.width,"px"),Cdt(this.DOMelements.lines),Cdt(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSize<this.width-l&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+l),this.options.width="".concat(this.width,"px"),Cdt(this.DOMelements.lines),Cdt(this.DOMelements.labels),this.redraw(),e=!0):(Cdt(this.DOMelements.lines),Cdt(this.DOMelements.labels),e=!1),e}},{key:"convertValue",value:function(t){return this.scale.convertValue(t)}},{key:"screenToValue",value:function(t){return this.scale.screenToValue(t)}},{key:"_redrawLabel",value:function(t,e,i,n,r){var o=Edt("div",this.DOMelements.labels,this.dom.frame);o.className=n,o.innerHTML=qrt.xss(e),"left"===i?(o.style.left="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="right"):(o.style.right="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="left"),o.style.top="".concat(t-.5*r+this.options.labelOffsetY,"px"),e+="";var s=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<e.length*s&&(this.maxLabelSize=e.length*s)}},{key:"_redrawLine",value:function(t,e,i,n,r){if(!0===this.master){var o=Edt("div",this.DOMelements.lines,this.dom.lineContainer);o.className=i,o.innerHTML="","left"===e?o.style.left="".concat(this.width-n,"px"):o.style.right="".concat(this.width-n,"px"),o.style.width="".concat(r,"px"),o.style.top="".concat(t,"px")}}},{key:"_redrawTitle",value:function(t){if(Sdt(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text){var e=Edt("div",this.DOMelements.title,this.dom.frame);e.className="vis-y-axis vis-title vis-".concat(t),e.innerHTML=qrt.xss(this.options[t].title.text),void 0!==this.options[t].title.style&&qrt.addCssText(e,this.options[t].title.style),"left"===t?e.style.left="".concat(this.props.titleCharHeight,"px"):e.style.right="".concat(this.props.titleCharHeight,"px"),e.style.width="".concat(this.height,"px")}Cdt(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var t=document.createTextNode("0"),e=document.createElement("div");e.className="vis-y-axis vis-minor vis-measure",e.appendChild(t),this.dom.frame.appendChild(e),this.props.minorCharHeight=e.clientHeight,this.props.minorCharWidth=e.clientWidth,this.dom.frame.removeChild(e)}if(!("majorCharHeight"in this.props)){var i=document.createTextNode("0"),n=document.createElement("div");n.className="vis-y-axis vis-major vis-measure",n.appendChild(i),this.dom.frame.appendChild(n),this.props.majorCharHeight=n.clientHeight,this.props.majorCharWidth=n.clientWidth,this.dom.frame.removeChild(n)}if(!("titleCharHeight"in this.props)){var r=document.createTextNode("0"),o=document.createElement("div");o.className="vis-y-axis vis-title vis-measure",o.appendChild(r),this.dom.frame.appendChild(o),this.props.titleCharHeight=o.clientHeight,this.props.titleCharWidth=o.clientWidth,this.dom.frame.removeChild(o)}}}]),i}(mot);function Bdt(t,e){}function zdt(t,e){return e="undefined"===typeof e?{}:e,{style:e.style||t.options.drawPoints.style,styles:e.styles||t.options.drawPoints.styles,size:e.size||t.options.drawPoints.size,className:e.className||t.className}}function Gdt(t,e){var i=void 0;return t.options&&t.options.drawPoints&&t.options.drawPoints.onRender&&"function"==typeof t.options.drawPoints.onRender&&(i=t.options.drawPoints.onRender),e.group.options&&e.group.options.drawPoints&&e.group.options.drawPoints.onRender&&"function"==typeof e.group.options.drawPoints.onRender&&(i=e.group.options.drawPoints.onRender),i}function Hdt(t,e){}function Wdt(t,e){}function Ydt(t,e,i,n){this.id=e;var r=["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"];this.options=qrt.selectiveBridgeObject(r,i),this.usingDefaultStyle=void 0===t.className,this.groupsUsingDefaultStyles=n,this.zeroPosition=0,this.update(t),1==this.usingDefaultStyle&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=void 0===t.visible||t.visible}function Vdt(t,e,i,n){this.body=t,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=i,this.options=qrt.extend({},this.defaultOptions),this.linegraphOptions=n,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(e)}Bdt.draw=function(t,e,i,n){n=n||0;for(var r=Gdt(i,e),o=0;o<t.length;o++)if(r){var s=r(t[o],e);!0!==s&&"object"!==tJ(s)||Odt(t[o].screen_x+n,t[o].screen_y,zdt(e,s),i.svgElements,i.svg,t[o].label)}else Odt(t[o].screen_x+n,t[o].screen_y,zdt(e),i.svgElements,i.svg,t[o].label)},Bdt.drawIcon=function(t,e,i,n,r,o){var s=.5*r,a=Tdt("rect",o.svgElements,o.svg);a.setAttributeNS(null,"x",e),a.setAttributeNS(null,"y",i-s),a.setAttributeNS(null,"width",n),a.setAttributeNS(null,"height",2*s),a.setAttributeNS(null,"class","vis-outline"),Odt(e+.5*n,i,zdt(t),o.svgElements,o.svg)},Hdt.drawIcon=function(t,e,i,n,r,o){var s=.5*r,a=Tdt("rect",o.svgElements,o.svg);a.setAttributeNS(null,"x",e),a.setAttributeNS(null,"y",i-s),a.setAttributeNS(null,"width",n),a.setAttributeNS(null,"height",2*s),a.setAttributeNS(null,"class","vis-outline");var l=Math.round(.3*n),h=t.options.barChart.width,u=h/l,c=Math.round(.4*r),d=Math.round(.75*r),p=Math.round((n-2*l)/3);if(Adt(e+.5*l+p,i+s-c-1,l,c,t.className+" vis-bar",o.svgElements,o.svg,t.style),Adt(e+1.5*l+p+2,i+s-d-1,l,d,t.className+" vis-bar",o.svgElements,o.svg,t.style),1==t.options.drawPoints.enabled){var f={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/u,className:t.className};Odt(e+.5*l+p,i+s-c-1,f,o.svgElements,o.svg),Odt(e+1.5*l+p+2,i+s-d-1,f,o.svgElements,o.svg)}},Hdt.draw=function(t,e,i){var n,r,o,s,a,l,h=[],u={},c=0;for(a=0;a<t.length;a++)if(s=i.groups[t[a]],"bar"===s.options.style&&!0===s.visible&&(void 0===i.options.groups.visibility[t[a]]||!0===i.options.groups.visibility[t[a]]))for(l=0;l<e[t[a]].length;l++)h.push({screen_x:e[t[a]][l].screen_x,screen_end:e[t[a]][l].screen_end,screen_y:e[t[a]][l].screen_y,x:e[t[a]][l].x,end:e[t[a]][l].end,y:e[t[a]][l].y,groupId:t[a],label:e[t[a]][l].label}),c+=1;if(0!==c)for(Cst(h).call(h,(function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x})),Hdt._getDataIntersections(u,h),a=0;a<h.length;a++){s=i.groups[h[a].groupId];var d=void 0!=s.options.barChart.minWidth?s.options.barChart.minWidth:.1*s.options.barChart.width;r=h[a].screen_x;var p=0;if(void 0===u[r])a+1<h.length&&(n=Math.abs(h[a+1].screen_x-r)),o=Hdt._getSafeDrawData(n,s,d);else{var f=a+(u[r].amount-u[r].resolved);f<h.length&&(n=Math.abs(h[f].screen_x-r)),o=Hdt._getSafeDrawData(n,s,d),u[r].resolved+=1,!0===s.options.stack&&!0!==s.options.excludeFromStacking?h[a].screen_y<s.zeroPosition?(p=u[r].accumulatedNegative,u[r].accumulatedNegative+=s.zeroPosition-h[a].screen_y):(p=u[r].accumulatedPositive,u[r].accumulatedPositive+=s.zeroPosition-h[a].screen_y):!0===s.options.barChart.sideBySide&&(o.width=o.width/u[r].amount,o.offset+=u[r].resolved*o.width-.5*o.width*(u[r].amount+1))}var m=o.width,v=h[a].screen_x;if(void 0!=h[a].screen_end?(m=h[a].screen_end-h[a].screen_x,v+=.5*m):v+=o.offset,Adt(v,h[a].screen_y-p,m,s.zeroPosition-h[a].screen_y,s.className+" vis-bar",i.svgElements,i.svg,s.style),!0===s.options.drawPoints.enabled){var g={screen_x:h[a].screen_x,screen_y:h[a].screen_y-p,x:h[a].x,y:h[a].y,groupId:h[a].groupId,label:h[a].label};Bdt.draw([g],s,i,o.offset)}}},Hdt._getDataIntersections=function(t,e){for(var i,n=0;n<e.length;n++)n+1<e.length&&(i=Math.abs(e[n+1].screen_x-e[n].screen_x)),n>0&&(i=Math.min(i,Math.abs(e[n-1].screen_x-e[n].screen_x))),0===i&&(void 0===t[e[n].screen_x]&&(t[e[n].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[n].screen_x].amount+=1)},Hdt._getSafeDrawData=function(t,e,i){var n,r;return t<e.options.barChart.width&&t>0?(n=t<i?i:t,r=0,"left"===e.options.barChart.align?r-=.5*t:"right"===e.options.barChart.align&&(r+=.5*t)):(n=e.options.barChart.width,r=0,"left"===e.options.barChart.align?r-=.5*e.options.barChart.width:"right"===e.options.barChart.align&&(r+=.5*e.options.barChart.width)),{width:n,offset:r}},Hdt.getStackedYRange=function(t,e,i,n,r){if(t.length>0){Cst(t).call(t,(function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x}));var o={};Hdt._getDataIntersections(o,t),e[n]=Hdt._getStackedYRange(o,t),e[n].yAxisOrientation=r,i.push(n)}},Hdt._getStackedYRange=function(t,e){for(var i,n=e[0].screen_y,r=e[0].screen_y,o=0;o<e.length;o++)i=e[o].screen_x,void 0===t[i]?(n=n>e[o].screen_y?e[o].screen_y:n,r=r<e[o].screen_y?e[o].screen_y:r):e[o].screen_y<0?t[i].accumulatedNegative+=e[o].screen_y:t[i].accumulatedPositive+=e[o].screen_y;for(var s in t)t.hasOwnProperty(s)&&(n=n>t[s].accumulatedNegative?t[s].accumulatedNegative:n,n=n>t[s].accumulatedPositive?t[s].accumulatedPositive:n,r=r<t[s].accumulatedNegative?t[s].accumulatedNegative:r,r=r<t[s].accumulatedPositive?t[s].accumulatedPositive:r);return{min:n,max:r}},Wdt.calcPath=function(t,e){if(null!=t&&t.length>0){var i=[];return i=1==e.options.interpolation.enabled?Wdt._catmullRom(t,e):Wdt._linear(t),i}},Wdt.drawIcon=function(t,e,i,n,r,o){var s,a,l=.5*r,h=Tdt("rect",o.svgElements,o.svg);if(h.setAttributeNS(null,"x",e),h.setAttributeNS(null,"y",i-l),h.setAttributeNS(null,"width",n),h.setAttributeNS(null,"height",2*l),h.setAttributeNS(null,"class","vis-outline"),s=Tdt("path",o.svgElements,o.svg),s.setAttributeNS(null,"class",t.className),void 0!==t.style&&s.setAttributeNS(null,"style",t.style),s.setAttributeNS(null,"d","M"+e+","+i+" L"+(e+n)+","+i),1==t.options.shaded.enabled&&(a=Tdt("path",o.svgElements,o.svg),"top"==t.options.shaded.orientation?a.setAttributeNS(null,"d","M"+e+", "+(i-l)+"L"+e+","+i+" L"+(e+n)+","+i+" L"+(e+n)+","+(i-l)):a.setAttributeNS(null,"d","M"+e+","+i+" L"+e+","+(i+l)+" L"+(e+n)+","+(i+l)+"L"+(e+n)+","+i),a.setAttributeNS(null,"class",t.className+" vis-icon-fill"),void 0!==t.options.shaded.style&&""!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style)),1==t.options.drawPoints.enabled){var u={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className};Odt(e+.5*n,i,u,o.svgElements,o.svg)}},Wdt.drawShading=function(t,e,i,n){if(1==e.options.shaded.enabled){var r,o=Number(n.svg.style.height.replace("px","")),s=Tdt("path",n.svgElements,n.svg),a="L";1==e.options.interpolation.enabled&&(a="C");var l=0;l="top"==e.options.shaded.orientation?0:"bottom"==e.options.shaded.orientation?o:Math.min(Math.max(0,e.zeroPosition),o),r="group"==e.options.shaded.orientation&&null!=i&&void 0!=i?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" L"+i[i.length-1][0]+","+i[i.length-1][1]+" "+this.serializePath(i,a,!0)+i[0][0]+","+i[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" V"+l+" H"+t[0][0]+" Z",s.setAttributeNS(null,"class",e.className+" vis-fill"),void 0!==e.options.shaded.style&&s.setAttributeNS(null,"style",e.options.shaded.style),s.setAttributeNS(null,"d",r)}},Wdt.draw=function(t,e,i){if(null!=t&&void 0!=t){var n=Tdt("path",i.svgElements,i.svg);n.setAttributeNS(null,"class",e.className),void 0!==e.style&&n.setAttributeNS(null,"style",e.style);var r="L";1==e.options.interpolation.enabled&&(r="C"),n.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,r,!1))}},Wdt.serializePath=function(t,e,i){if(t.length<2)return"";var n,r=e;if(i)for(n=t.length-2;n>0;n--)r+=t[n][0]+","+t[n][1]+" ";else for(n=1;n<t.length;n++)r+=t[n][0]+","+t[n][1]+" ";return r},Wdt._catmullRomUniform=function(t){var e,i,n,r,o,s,a=[];a.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var l=1/6,h=t.length,u=0;u<h-1;u++)e=0==u?t[0]:t[u-1],i=t[u],n=t[u+1],r=u+2<h?t[u+2]:n,o={screen_x:(-e.screen_x+6*i.screen_x+n.screen_x)*l,screen_y:(-e.screen_y+6*i.screen_y+n.screen_y)*l},s={screen_x:(i.screen_x+6*n.screen_x-r.screen_x)*l,screen_y:(i.screen_y+6*n.screen_y-r.screen_y)*l},a.push([o.screen_x,o.screen_y]),a.push([s.screen_x,s.screen_y]),a.push([n.screen_x,n.screen_y]);return a},Wdt._catmullRom=function(t,e){var i=e.options.interpolation.alpha;if(0==i||void 0===i)return this._catmullRomUniform(t);var n,r,o,s,a,l,h,u,c,d,p,f,m,v,g,y,b,w,k,_=[];_.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var x=t.length,S=0;S<x-1;S++)n=0==S?t[0]:t[S-1],r=t[S],o=t[S+1],s=S+2<x?t[S+2]:o,h=Math.sqrt(Math.pow(n.screen_x-r.screen_x,2)+Math.pow(n.screen_y-r.screen_y,2)),u=Math.sqrt(Math.pow(r.screen_x-o.screen_x,2)+Math.pow(r.screen_y-o.screen_y,2)),c=Math.sqrt(Math.pow(o.screen_x-s.screen_x,2)+Math.pow(o.screen_y-s.screen_y,2)),v=Math.pow(c,i),y=Math.pow(c,2*i),g=Math.pow(u,i),b=Math.pow(u,2*i),k=Math.pow(h,i),w=Math.pow(h,2*i),d=2*w+3*k*g+b,p=2*y+3*v*g+b,f=3*k*(k+g),f>0&&(f=1/f),m=3*v*(v+g),m>0&&(m=1/m),a={screen_x:(-b*n.screen_x+d*r.screen_x+w*o.screen_x)*f,screen_y:(-b*n.screen_y+d*r.screen_y+w*o.screen_y)*f},l={screen_x:(y*r.screen_x+p*o.screen_x-b*s.screen_x)*m,screen_y:(y*r.screen_y+p*o.screen_y-b*s.screen_y)*m},0==a.screen_x&&0==a.screen_y&&(a=r),0==l.screen_x&&0==l.screen_y&&(l=o),_.push([a.screen_x,a.screen_y]),_.push([l.screen_x,l.screen_y]),_.push([o.screen_x,o.screen_y]);return _},Wdt._linear=function(t){for(var e=[],i=0;i<t.length;i++)e.push([t[i].screen_x,t[i].screen_y]);return e},Ydt.prototype.setItems=function(t){null!=t?(this.itemsData=t,1==Cst(this.options)&&qrt.insertSort(this.itemsData,(function(t,e){return t.x>e.x?1:-1}))):this.itemsData=[]},Ydt.prototype.getItems=function(){return this.itemsData},Ydt.prototype.setZeroPosition=function(t){this.zeroPosition=t},Ydt.prototype.setOptions=function(t){if(void 0!==t){var e=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];qrt.selectiveDeepExtend(e,this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),qrt.mergeOptions(this.options,t,"interpolation"),qrt.mergeOptions(this.options,t,"drawPoints"),qrt.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==tJ(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}},Ydt.prototype.update=function(t){this.group=t,this.content=t.content||"graph",this.className=t.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===t.visible||t.visible,this.style=t.style,this.setOptions(t.options)},Ydt.prototype.getLegend=function(t,e,i,n,r){if(void 0==i||null==i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");i={svg:o,svgElements:{},options:this.options,groups:[this]}}switch(void 0!=n&&null!=n||(n=0),void 0!=r&&null!=r||(r=.5*e),this.options.style){case"line":Wdt.drawIcon(this,n,r,t,e,i);break;case"points":case"point":Bdt.drawIcon(this,n,r,t,e,i);break;case"bar":Hdt.drawIcon(this,n,r,t,e,i);break}return{icon:i.svg,label:this.content,orientation:this.options.yAxisOrientation}},Ydt.prototype.getYRange=function(t){for(var e=t[0].y,i=t[0].y,n=0;n<t.length;n++)e=e>t[n].y?t[n].y:e,i=i<t[n].y?t[n].y:i;return{min:e,max:i,yAxisOrientation:this.options.yAxisOrientation}},Vdt.prototype=new mot,Vdt.prototype.clear=function(){this.groups={},this.amountOfGroups=0},Vdt.prototype.addGroup=function(t,e){1!=e.options.excludeFromLegend&&(this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1)},Vdt.prototype.updateGroup=function(t,e){this.groups[t]=e},Vdt.prototype.removeGroup=function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)},Vdt.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)},Vdt.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},Vdt.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},Vdt.prototype.setOptions=function(t){var e=["enabled","orientation","icons","left","right"];qrt.selectiveDeepExtend(e,this.options,t)},Vdt.prototype.redraw=function(){var t=0,e=z1(this.groups);Cst(e).call(e,(function(t,e){return t<e?-1:1}));for(var i=0;i<e.length;i++){var n=e[i];1!=this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&1!=this.linegraphOptions.visibility[n]||t++}if(0==this.options[this.side].visible||0==this.amountOfGroups||0==this.options.enabled||0==t)this.hide();else{if(this.show(),"top-left"==this.options[this.side].position||"bottom-left"==this.options[this.side].position?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),"top-left"==this.options[this.side].position||"top-right"==this.options[this.side].position)this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var r=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+r+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}0==this.options.icons?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var o="";for(i=0;i<e.length;i++)n=e[i],1!=this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&1!=this.linegraphOptions.visibility[n]||(o+=this.groups[n].content+"<br />");this.dom.textArea.innerHTML=qrt.xss(o),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},Vdt.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=z1(this.groups);Cst(t).call(t,(function(t,e){return t<e?-1:1})),Ddt(this.svgElements);var e=window.getComputedStyle(this.dom.frame).paddingTop,i=Number(e.replace("px","")),n=i,r=this.options.iconSize,o=.75*this.options.iconSize,s=i+.5*o+3;this.svg.style.width=r+5+i+"px";for(var a=0;a<t.length;a++){var l=t[a];1!=this.groups[l].visible||void 0!==this.linegraphOptions.visibility[l]&&1!=this.linegraphOptions.visibility[l]||(this.groups[l].getLegend(r,o,this.framework,n,s),s+=o+this.options.iconSpacing)}}};var Udt="__ungrouped__";function Xdt(t,e){this.id=jrt(),this.body=t,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=qrt.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var i=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(t,e,n){i._onAdd(e.items)},update:function(t,e,n){i._onUpdate(e.items)},remove:function(t,e,n){i._onRemove(e.items)}},this.groupListeners={add:function(t,e,n){i._onAddGroups(e.items)},update:function(t,e,n){i._onUpdateGroups(e.items)},remove:function(t,e,n){i._onRemoveGroups(e.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(e),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",(function(){i.svg.style.left=qrt.option.asSize(-i.props.width),i.forceGraphUpdate=!0,i.redraw.call(i)})),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}Xdt.prototype=new mot,Xdt.prototype._create=function(){var t=document.createElement("div");t.className="vis-line-graph",this.dom.frame=t,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",t.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new Ldt(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new Ldt(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new Vdt(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new Vdt(this.body,this.options.legend,"right",this.options.groups),this.show()},Xdt.prototype.setOptions=function(t){if(t){var e=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];void 0===t.graphHeight&&void 0!==t.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==t.graphHeight&&q4((t.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),qrt.selectiveDeepExtend(e,this.options,t),qrt.mergeOptions(this.options,t,"interpolation"),qrt.mergeOptions(this.options,t,"drawPoints"),qrt.mergeOptions(this.options,t,"shaded"),qrt.mergeOptions(this.options,t,"legend"),t.interpolation&&"object"==tJ(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&void 0!==t.dataAxis&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&void 0!==t.legend&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(Udt)&&this.groups[Udt].setOptions(t)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},Xdt.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},Xdt.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},Xdt.prototype.setItems=function(t){var e,i=this,n=this.itemsData;if(t){if(!Brt(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=Wrt(t)}else this.itemsData=null;if(n&&(TZ(qrt).call(qrt,this.itemListeners,(function(t,e){n.off(e,t)})),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;TZ(qrt).call(qrt,this.itemListeners,(function(t,e){i.itemsData.on(e,t,r)})),e=this.itemsData.getIds(),this._onAdd(e)}},Xdt.prototype.setGroups=function(t){var e,i=this;if(this.groupsData){TZ(qrt).call(qrt,this.groupListeners,(function(t,e){i.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null;for(var n=0;n<e.length;n++)this._removeGroup(e[n])}if(t){if(!Brt(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var r=this.id;TZ(qrt).call(qrt,this.groupListeners,(function(t,e){i.groupsData.on(e,t,r)})),e=this.groupsData.getIds(),this._onAddGroups(e)}},Xdt.prototype._onUpdate=function(t){this._updateAllGroupData(t)},Xdt.prototype._onAdd=function(t){this._onUpdate(t)},Xdt.prototype._onRemove=function(t){this._onUpdate(t)},Xdt.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},Xdt.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},Xdt.prototype._onRemoveGroups=function(t){for(var e=0;e<t.length;e++)this._removeGroup(t[e]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})},Xdt.prototype._removeGroup=function(t){this.groups.hasOwnProperty(t)&&("right"==this.groups[t].options.yAxisOrientation?(this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t),this.legendLeft.redraw()),delete this.groups[t])},Xdt.prototype._updateGroup=function(t,e){this.groups.hasOwnProperty(e)?(this.groups[e].update(t),"right"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.updateGroup(e,this.groups[e]),this.legendRight.updateGroup(e,this.groups[e]),this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e)):(this.yAxisLeft.updateGroup(e,this.groups[e]),this.legendLeft.updateGroup(e,this.groups[e]),this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e))):(this.groups[e]=new Ydt(t,e,this.options,this.groupsUsingDefaultStyles),"right"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.addGroup(e,this.groups[e]),this.legendRight.addGroup(e,this.groups[e])):(this.yAxisLeft.addGroup(e,this.groups[e]),this.legendLeft.addGroup(e,this.groups[e]))),this.legendLeft.redraw(),this.legendRight.redraw()},Xdt.prototype._updateAllGroupData=function(t,e){if(null!=this.itemsData){var i={},n=this.itemsData.get(),r=this.itemsData.idProp,o={};t&&i1(t).call(t,(function(t){o[t]=t}));for(var s={},a=0;a<n.length;a++){var l=n[a],h=l.group;null!==h&&void 0!==h||(h=Udt),s.hasOwnProperty(h)?s[h]++:s[h]=1}var u={};if(!e&&t)for(h in this.groups)if(this.groups.hasOwnProperty(h)){m=this.groups[h];var c=m.getItems();i[h]=KZ(c).call(c,(function(t){return u[t[r]]=t[r],t[r]!==o[t[r]]}));var d=s[h];s[h]-=i[h].length,i[h].length<d&&(i[h][d-1]={})}for(a=0;a<n.length;a++)if(l=n[a],h=l.group,null!==h&&void 0!==h||(h=Udt),e||!t||l[r]===o[l[r]]||!u.hasOwnProperty(l[r])){i.hasOwnProperty(h)||(i[h]=new Array(s[h]));var p=qrt.bridgeObject(l);p.x=qrt.convert(l.x,"Date"),p.end=qrt.convert(l.end,"Date"),p.orginalY=l.y,p.y=Number(l.y),p[r]=l[r];var f=i[h].length-s[h]--;i[h][f]=p}for(h in this.groups)this.groups.hasOwnProperty(h)&&(i.hasOwnProperty(h)||(i[h]=new Array(0)));for(h in i)if(i.hasOwnProperty(h))if(0==i[h].length)this.groups.hasOwnProperty(h)&&this._removeGroup(h);else{var m=void 0;void 0!=this.groupsData&&(m=this.groupsData.get(h)),void 0==m&&(m={id:h,content:this.options.defaultGroup+h}),this._updateGroup(m,h),this.groups[h].setItems(i[h])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},Xdt.prototype.redraw=function(){var t=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,t=this._isResized()||t;var e,i=this.body.range.end-this.body.range.start,n=i!=this.lastVisibleInterval;(this.lastVisibleInterval=i,1==t)&&(this.svg.style.width=qrt.option.asSize(3*this.props.width),this.svg.style.left=qrt.option.asSize(-this.props.width),-1==c9(e=this.options.height+"").call(e,"%")&&1!=this.updateSVGheightOnResize||(this.updateSVGheight=!0));if(1==this.updateSVGheight?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",1==t||1==n||1==this.abortedGraphUpdate||1==this.forceGraphUpdate)t=this._updateGraph()||t,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(0!=this.lastStart){var r=this.body.range.start-this.lastStart,o=this.body.range.end-this.body.range.start;if(0!=this.props.width){var s=this.props.width/o,a=r*s;this.svg.style.left=-this.props.width-a+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),t},Xdt.prototype._getSortedGroupIds=function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){var i=this.groups[e];1!=i.visible||void 0!==this.options.groups.visibility[e]&&1!=this.options.groups.visibility[e]||t.push({id:e,zIndex:i.options.zIndex})}qrt.insertSort(t,(function(t,e){var i=t.zIndex,n=e.zIndex;return void 0===i&&(i=0),void 0===n&&(n=0),i==n?0:i<n?-1:1}));for(var n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r].id;return n},Xdt.prototype._updateGraph=function(){if(Sdt(this.svgElements),0!=this.props.width&&null!=this.itemsData){var t,e,i={},n=!1,r=this.body.util.toGlobalTime(-this.body.domProps.root.width),o=this.body.util.toGlobalTime(2*this.body.domProps.root.width),s=this._getSortedGroupIds();if(s.length>0){var a={};for(this._getRelevantData(s,a,r,o),this._applySampling(s,a),e=0;e<s.length;e++)this._convertXcoordinates(a[s[e]]);if(this._getYRanges(s,a,i),n=this._updateYAxis(s,i),1==n)return Cdt(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var l=void 0;for(e=0;e<s.length;e++)t=this.groups[s[e]],!0===this.options.stack&&"line"===this.options.style&&(void 0!=t.options.excludeFromStacking&&t.options.excludeFromStacking||(void 0!=l&&(this._stack(a[t.id],a[l.id]),1==t.options.shaded.enabled&&"group"!==t.options.shaded.orientation&&("top"==t.options.shaded.orientation&&"group"!==l.options.shaded.orientation?(l.options.shaded.orientation="group",l.options.shaded.groupId=t.id):(t.options.shaded.orientation="group",t.options.shaded.groupId=l.id))),l=t)),this._convertYcoordinates(a[s[e]],t);var h={};for(e=0;e<s.length;e++)if(t=this.groups[s[e]],"line"===t.options.style&&1==t.options.shaded.enabled){var u=a[s[e]];if(null==u||0==u.length)continue;if(h.hasOwnProperty(s[e])||(h[s[e]]=Wdt.calcPath(u,t)),"group"===t.options.shaded.orientation){var c=t.options.shaded.groupId;if(-1===c9(s).call(s,c)){console.log(t.id+": Unknown shading group target given:"+c);continue}h.hasOwnProperty(c)||(h[c]=Wdt.calcPath(a[c],this.groups[c])),Wdt.drawShading(h[s[e]],t,h[c],this.framework)}else Wdt.drawShading(h[s[e]],t,void 0,this.framework)}for(Hdt.draw(s,a,this.framework),e=0;e<s.length;e++)if(t=this.groups[s[e]],a[s[e]].length>0)switch(t.options.style){case"line":h.hasOwnProperty(s[e])||(h[s[e]]=Wdt.calcPath(a[s[e]],t)),Wdt.draw(h[s[e]],t,this.framework);case"point":case"points":"point"!=t.options.style&&"points"!=t.options.style&&1!=t.options.drawPoints.enabled||Bdt.draw(a[s[e]],t,this.framework);break}}}return Cdt(this.svgElements),!1},Xdt.prototype._stack=function(t,e){var i,n,r,o,s;i=0;for(var a=0;a<t.length;a++){o=void 0,s=void 0;for(var l=i;l<e.length;l++){if(e[l].x===t[a].x){o=e[l],s=e[l],i=l;break}if(e[l].x>t[a].x){s=e[l],o=0==l?s:e[l-1],i=l;break}}void 0===s&&(o=e[e.length-1],s=e[e.length-1]),n=s.x-o.x,r=s.y-o.y,t[a].y=0==n?t[a].orginalY+s.y:t[a].orginalY+r/n*(t[a].x-o.x)+o.y}},Xdt.prototype._getRelevantData=function(t,e,i,n){var r,o,s,a;if(t.length>0)for(o=0;o<t.length;o++){r=this.groups[t[o]];var l=r.getItems();if(1==Cst(r.options)){var h=function(t,e){return t.getTime()==e.getTime()?0:t<e?-1:1},u=Math.max(0,qrt.binarySearchValue(l,i,"x","before",h)),c=Math.min(l.length,qrt.binarySearchValue(l,n,"x","after",h)+1);c<=0&&(c=l.length);var d=new Array(c-u);for(s=u;s<c;s++)a=r.itemsData[s],d[s-u]=a;e[t[o]]=d}else e[t[o]]=r.itemsData}},Xdt.prototype._applySampling=function(t,e){var i;if(t.length>0)for(var n=0;n<t.length;n++)if(i=this.groups[t[n]],1==i.options.sampling){var r=e[t[n]];if(r.length>0){var o=1,s=r.length,a=this.body.util.toGlobalScreen(r[r.length-1].x)-this.body.util.toGlobalScreen(r[0].x),l=s/a;o=Math.min(Math.ceil(.2*s),Math.max(1,Math.round(l)));for(var h=new Array(s),u=0;u<s;u+=o){var c=Math.round(u/o);h[c]=r[u]}e[t[n]]=U6(h).call(h,0,Math.round(s/o))}}},Xdt.prototype._getYRanges=function(t,e,i){var n,r,o,s,a=[],l=[];if(t.length>0){for(o=0;o<t.length;o++)n=e[t[o]],s=this.groups[t[o]].options,n.length>0&&(r=this.groups[t[o]],!0===s.stack&&"bar"===s.style?"left"===s.yAxisOrientation?a=L3(a).call(a,n):l=L3(l).call(l,n):i[t[o]]=r.getYRange(n,t[o]));Hdt.getStackedYRange(a,i,t,"__barStackLeft","left"),Hdt.getStackedYRange(l,i,t,"__barStackRight","right")}},Xdt.prototype._updateYAxis=function(t,e){var i,n,r=!1,o=!1,s=!1,a=1e9,l=1e9,h=-1e9,u=-1e9;if(t.length>0){for(var c=0;c<t.length;c++){var d=this.groups[t[c]];d&&"right"!=d.options.yAxisOrientation?(o=!0,a=1e9,h=-1e9):d&&d.options.yAxisOrientation&&(s=!0,l=1e9,u=-1e9)}for(c=0;c<t.length;c++)e.hasOwnProperty(t[c])&&!0!==e[t[c]].ignore&&(i=e[t[c]].min,n=e[t[c]].max,"right"!=e[t[c]].yAxisOrientation?(o=!0,a=a>i?i:a,h=h<n?n:h):(s=!0,l=l>i?i:l,u=u<n?n:u));1==o&&this.yAxisLeft.setRange(a,h),1==s&&this.yAxisRight.setRange(l,u)}r=this._toggleAxisVisiblity(o,this.yAxisLeft)||r,r=this._toggleAxisVisiblity(s,this.yAxisRight)||r,1==s&&1==o?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!o,this.yAxisRight.masterAxis=this.yAxisLeft,0==this.yAxisRight.master?(this.yAxisLeft.lineOffset=1==s?this.yAxisRight.width:0,r=this.yAxisLeft.redraw()||r,r=this.yAxisRight.redraw()||r):r=this.yAxisRight.redraw()||r;var p=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(c=0;c<p.length;c++)-1!=c9(t).call(t,p[c])&&U6(t).call(t,c9(t).call(t,p[c]),1);return r},Xdt.prototype._toggleAxisVisiblity=function(t,e){var i=!1;return 0==t?e.dom.frame.parentNode&&0==e.hidden&&(e.hide(),i=!0):e.dom.frame.parentNode||1!=e.hidden||(e.show(),i=!0),i},Xdt.prototype._convertXcoordinates=function(t){for(var e=this.body.util.toScreen,i=0;i<t.length;i++)t[i].screen_x=e(t[i].x)+this.props.width,t[i].screen_y=t[i].y,void 0!=t[i].end?t[i].screen_end=e(t[i].end)+this.props.width:t[i].screen_end=void 0},Xdt.prototype._convertYcoordinates=function(t,e){var i=this.yAxisLeft,n=Number(this.svg.style.height.replace("px",""));"right"==e.options.yAxisOrientation&&(i=this.yAxisRight);for(var r=0;r<t.length;r++)t[r].screen_y=Math.round(i.convertValue(t[r].y));e.setZeroPosition(Math.min(n,i.convertValue(0)))};var qdt="string",Kdt="boolean",$dt="number",Jdt="array",Qdt="date",Zdt="object",tpt="dom",ept="moment",ipt="any",npt={configure:{enabled:{boolean:Kdt},filter:{boolean:Kdt,function:"function"},container:{dom:tpt},__type__:{object:Zdt,boolean:Kdt,function:"function"}},alignCurrentTime:{string:qdt,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:qdt},sort:{boolean:Kdt},sampling:{boolean:Kdt},stack:{boolean:Kdt},graphHeight:{string:qdt,number:$dt},shaded:{enabled:{boolean:Kdt},orientation:{string:["bottom","top","zero","group"]},groupId:{object:Zdt},__type__:{boolean:Kdt,object:Zdt}},style:{string:["line","bar","points"]},barChart:{width:{number:$dt},minWidth:{number:$dt},sideBySide:{boolean:Kdt},align:{string:["left","center","right"]},__type__:{object:Zdt}},interpolation:{enabled:{boolean:Kdt},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:$dt},__type__:{object:Zdt,boolean:Kdt}},drawPoints:{enabled:{boolean:Kdt},onRender:{function:"function"},size:{number:$dt},style:{string:["square","circle"]},__type__:{object:Zdt,boolean:Kdt,function:"function"}},dataAxis:{showMinorLabels:{boolean:Kdt},showMajorLabels:{boolean:Kdt},showWeekScale:{boolean:Kdt},icons:{boolean:Kdt},width:{string:qdt,number:$dt},visible:{boolean:Kdt},alignZeros:{boolean:Kdt},left:{range:{min:{number:$dt,undefined:"undefined"},max:{number:$dt,undefined:"undefined"},__type__:{object:Zdt}},format:{function:"function"},title:{text:{string:qdt,number:$dt,undefined:"undefined"},style:{string:qdt,undefined:"undefined"},__type__:{object:Zdt}},__type__:{object:Zdt}},right:{range:{min:{number:$dt,undefined:"undefined"},max:{number:$dt,undefined:"undefined"},__type__:{object:Zdt}},format:{function:"function"},title:{text:{string:qdt,number:$dt,undefined:"undefined"},style:{string:qdt,undefined:"undefined"},__type__:{object:Zdt}},__type__:{object:Zdt}},__type__:{object:Zdt}},legend:{enabled:{boolean:Kdt},icons:{boolean:Kdt},left:{visible:{boolean:Kdt},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Zdt}},right:{visible:{boolean:Kdt},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Zdt}},__type__:{object:Zdt,boolean:Kdt}},groups:{visibility:{any:ipt},__type__:{object:Zdt}},autoResize:{boolean:Kdt},throttleRedraw:{number:$dt},clickToUse:{boolean:Kdt},end:{number:$dt,date:Qdt,string:qdt,moment:ept},format:{minorLabels:{millisecond:{string:qdt,undefined:"undefined"},second:{string:qdt,undefined:"undefined"},minute:{string:qdt,undefined:"undefined"},hour:{string:qdt,undefined:"undefined"},weekday:{string:qdt,undefined:"undefined"},day:{string:qdt,undefined:"undefined"},week:{string:qdt,undefined:"undefined"},month:{string:qdt,undefined:"undefined"},quarter:{string:qdt,undefined:"undefined"},year:{string:qdt,undefined:"undefined"},__type__:{object:Zdt}},majorLabels:{millisecond:{string:qdt,undefined:"undefined"},second:{string:qdt,undefined:"undefined"},minute:{string:qdt,undefined:"undefined"},hour:{string:qdt,undefined:"undefined"},weekday:{string:qdt,undefined:"undefined"},day:{string:qdt,undefined:"undefined"},week:{string:qdt,undefined:"undefined"},month:{string:qdt,undefined:"undefined"},quarter:{string:qdt,undefined:"undefined"},year:{string:qdt,undefined:"undefined"},__type__:{object:Zdt}},__type__:{object:Zdt}},moment:{function:"function"},height:{string:qdt,number:$dt},hiddenDates:{start:{date:Qdt,number:$dt,string:qdt,moment:ept},end:{date:Qdt,number:$dt,string:qdt,moment:ept},repeat:{string:qdt},__type__:{object:Zdt,array:Jdt}},locale:{string:qdt},locales:{__any__:{any:ipt},__type__:{object:Zdt}},max:{date:Qdt,number:$dt,string:qdt,moment:ept},maxHeight:{number:$dt,string:qdt},maxMinorChars:{number:$dt},min:{date:Qdt,number:$dt,string:qdt,moment:ept},minHeight:{number:$dt,string:qdt},moveable:{boolean:Kdt},multiselect:{boolean:Kdt},orientation:{string:qdt},showCurrentTime:{boolean:Kdt},showMajorLabels:{boolean:Kdt},showMinorLabels:{boolean:Kdt},showWeekScale:{boolean:Kdt},snap:{function:"function",null:"null"},start:{date:Qdt,number:$dt,string:qdt,moment:ept},timeAxis:{scale:{string:qdt,undefined:"undefined"},step:{number:$dt,undefined:"undefined"},__type__:{object:Zdt}},width:{string:qdt,number:$dt},zoomable:{boolean:Kdt},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:$dt},zoomMin:{number:$dt},zIndex:{number:$dt},__type__:{object:Zdt}},rpt={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",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",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function opt(t,e,i,n){var r,o,s,a,l,h,u;if(!MQ(i)&&!Brt(i)&&i instanceof Object){var c=n;n=i,i=c}n&&n.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var d=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:OZ,width:null,height:null,maxHeight:null,minHeight:null},this.options=qrt.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:RQ(r=this.on).call(r,this),off:RQ(o=this.off).call(o,this),emit:RQ(s=this.emit).call(s,this)},hiddenDates:[],util:{getScale:function(){return d.timeAxis.step.scale},getStep:function(){return d.timeAxis.step.step},toScreen:RQ(a=d._toScreen).call(a,d),toGlobalScreen:RQ(l=d._toGlobalScreen).call(l,d),toTime:RQ(h=d._toTime).call(h,d),toGlobalTime:RQ(u=d._toGlobalTime).call(u,d)}},this.range=new Gst(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new bat(this.body),this.components.push(this.timeAxis),this.currentTime=new plt(this.body),this.components.push(this.currentTime),this.linegraph=new Xdt(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",(function(t){d.emit("click",d.getEventProperties(t))})),this.on("doubletap",(function(t){d.emit("doubleClick",d.getEventProperties(t))})),this.dom.root.oncontextmenu=function(t){d.emit("contextmenu",d.getEventProperties(t))},this.initialFitDone=!1,this.on("changed",(function(){if(null!=d.itemsData){if(!d.initialFitDone&&!d.options.rollingMode)if(d.initialFitDone=!0,void 0!=d.options.start||void 0!=d.options.end){if(void 0==d.options.start||void 0==d.options.end)var t=d.getItemRange();var e=void 0!=d.options.start?d.options.start:t.min,i=void 0!=d.options.end?d.options.end:t.max;d.setWindow(e,i,{animation:!1})}else d.fit({animation:!1});d.initialDrawDone||!d.initialRangeChangeDone&&(d.options.start||d.options.end)&&!d.options.rollingMode||(d.initialDrawDone=!0,d.dom.root.style.visibility="visible",d.dom.loadingScreen.parentNode.removeChild(d.dom.loadingScreen),d.options.onInitialDrawComplete&&sZ((function(){return d.options.onInitialDrawComplete()}),0))}})),n&&this.setOptions(n),i&&this.setGroups(i),e&&this.setItems(e),this._redraw()}opt.prototype=new ult,opt.prototype.setOptions=function(t){var e=ndt.validate(t,npt);!0===e&&console.log("%cErrors have been found in the supplied options object.",idt),ult.prototype.setOptions.call(this,t)},opt.prototype.setItems=function(t){var e,i=null==this.itemsData;if(e=t?Brt(t)?Wrt(t):Wrt(new sj(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.linegraph&&this.linegraph.setItems(null!=e?e.rawDS:null),i)if(void 0!=this.options.start||void 0!=this.options.end){var n=void 0!=this.options.start?this.options.start:null,r=void 0!=this.options.end?this.options.end:null;this.setWindow(n,r,{animation:!1})}else this.fit({animation:!1})},opt.prototype.setGroups=function(t){var e;e=t?Brt(t)?t:new sj(t):null,this.groupsData=e,this.linegraph.setGroups(e)},opt.prototype.getLegend=function(t,e,i){return void 0===e&&(e=15),void 0===i&&(i=15),void 0!==this.linegraph.groups[t]?this.linegraph.groups[t].getLegend(e,i):"cannot find group:'"+t+"'"},opt.prototype.isGroupVisible=function(t){return void 0!==this.linegraph.groups[t]&&(this.linegraph.groups[t].visible&&(void 0===this.linegraph.options.groups.visibility[t]||1==this.linegraph.options.groups.visibility[t]))},opt.prototype.getDataRange=function(){var t=null,e=null;for(var i in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(i)&&1==this.linegraph.groups[i].visible)for(var n=0;n<this.linegraph.groups[i].itemsData.length;n++){var r=this.linegraph.groups[i].itemsData[n],o=qrt.convert(r.x,"Date").valueOf();t=null==t||t>o?o:t,e=null==e||e<o?o:e}return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},opt.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=e-qrt.getAbsoluteLeft(this.dom.centerContainer),r=i-qrt.getAbsoluteTop(this.dom.centerContainer),o=this._toTime(n),s=hlt.customTimeFromTarget(t),a=qrt.getTarget(t),l=null;qrt.hasParent(a,this.timeAxis.dom.foreground)||this.timeAxis2&&qrt.hasParent(a,this.timeAxis2.dom.foreground)?l="axis":qrt.hasParent(a,this.linegraph.yAxisLeft.dom.frame)||qrt.hasParent(a,this.linegraph.yAxisRight.dom.frame)?l="data-axis":qrt.hasParent(a,this.linegraph.legendLeft.dom.frame)||qrt.hasParent(a,this.linegraph.legendRight.dom.frame)?l="legend":null!=s?l="custom-time":qrt.hasParent(a,this.currentTime.bar)?l="current-time":qrt.hasParent(a,this.dom.center)&&(l="background");var h=[],u=this.linegraph.yAxisLeft,c=this.linegraph.yAxisRight;return!u.hidden&&this.itemsData.length>0&&h.push(u.screenToValue(r)),!c.hidden&&this.itemsData.length>0&&h.push(c.screenToValue(r)),{event:t,customTime:s?s.options.id:null,what:l,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:n,y:r,time:o,value:h}},opt.prototype._createConfigurator=function(){return new gdt(this,this.dom.container,rpt)};var spt=Pdt();vj().locale(spt);var apt={name:"VisTimeline",props:{selectedId:{type:Number,default:()=>null},selectedData:{type:Object,default:()=>{}},groups:{type:[Array],default:()=>[]},items:{type:[Array],default:()=>[]},events:{type:Array,default:()=>["click","contextmenu","currentTimeTick","doubleClick","drop","mouseOver","mouseDown","mouseUp","mouseMove","groupDragged","changed","rangechange","rangechanged","select","itemover","itemout","timechange","timechanged"]},selection:{type:[Array,String],default:()=>[]},options:{type:Object}},data:()=>({visData:{items:null,groups:null}}),computed:{linkedWorks(){return this.$refs.visualization.WORK}},watch:{options:{deep:!0,handler(t){this.timeline.setOptions(t)}},items:{deep:!0,handler(t){this.setItems(new sj(this.items))}},groups:{deep:!0,handler(t){this.setGroups(new sj(this.groups))}},selection:{deep:!1,handler(t){this.timeline.setSelection(t)}}},methods:{addCustomTime(t,e){return this.timeline.addCustomTime(t,e)},destroy(){this.timeline.destroy()},fit(){this.timeline.fit()},focus(t,e){this.timeline.focus(t,e)},getCurrentTime(){return this.timeline.getCurrentTime()},getCustomTime(t){return this.timeline.getCustomTime(t)},getEventProperties(t){return this.timeline.getEventProperties(t)},getItemRange(){return this.timeline.getItemRange()},getSelection(){return this.timeline.getSelection()},getVisibleItems(){return this.timeline.getVisibleItems()},getWindow(){return this.timeline.getWindow()},moveTo(t,e){this.timeline.moveTo(t,e)},move(t){let e=this.timeline.getWindow(),i=e.end-e.start;this.timeline.setWindow({start:e.start.valueOf()-i*t,end:e.end.valueOf()-i*t})},on(t,e){this.timeline.on(t,e)},off(t,e){this.timeline.off(t,e)},redraw(){this.timeline.redraw()},removeCustomTime(t){this.timeline.removeCustomTime(t)},setCurrentTime(t){this.timeline.setCurrentTime(t)},setCustomTime(t,e){this.timeline.setCustomTime(t,e)},setCustomTimeTitle(t,e){this.timeline.setCustomTimeTitle(t,e)},setData(t){this.timeline.setData(t)},setGroups(t){this.timeline.setGroups(t)},setItems(t){this.timeline.setItems(t)},setOptions(t){this.timeline.setOptions(t)},setSelection(t,e){this.timeline.setSelection(t,e)},setWindow(t,e,i,n){this.timeline.setWindow(t,e,i,n)},toggleRollingMode(){this.timeline.toggleRollingMode()},zoomIn(t,e,i){this.timeline.zoomIn(t,e,i)},zoomOut(t,e,i){this.timeline.zoomOut(t,e,i)}},mounted(){const t=this.$refs.visualization;this.visData.items=new sj(this.items),this.groups&&this.groups.length>0?(this.visData.groups=new sj(this.groups),this.timeline=new wdt(t,this.visData.items,this.visData.groups,this.options)):this.timeline=new wdt(t,this.visData.items,this.options),this.events.forEach((t=>this.timeline.on(t,(e=>this.$emit(t,e)))))},created(){this.timeline=null},beforeDestroy(){}},lpt=apt,hpt=n(1656),upt=(0,hpt.A)(lpt,r,o,!1,null,null,null),cpt=upt.exports}}]);
//# sourceMappingURL=9896.57029d48.js.map