@riskdefy/chargebacks 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chargebacks.cjs.js +1280 -0
- package/dist/Chargebacks.es.js +10510 -13767
- package/dist/Chargebacks.umd.js +54 -58
- package/dist/chargebacks.css +5 -1
- package/package.json +7 -3
@@ -0,0 +1,1280 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("vue");/**
|
2
|
+
* vis-timeline and vis-graph2d
|
3
|
+
* https://visjs.github.io/vis-timeline/
|
4
|
+
*
|
5
|
+
* Create a fully customizable, interactive timeline with items and ranges.
|
6
|
+
*
|
7
|
+
* @version 7.7.3
|
8
|
+
* @date 2023-10-27T17:57:57.604Z
|
9
|
+
*
|
10
|
+
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
11
|
+
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
12
|
+
*
|
13
|
+
* @license
|
14
|
+
* vis.js is dual licensed under both
|
15
|
+
*
|
16
|
+
* 1. The Apache 2.0 License
|
17
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
18
|
+
*
|
19
|
+
* and
|
20
|
+
*
|
21
|
+
* 2. The MIT License
|
22
|
+
* http://opensource.org/licenses/MIT
|
23
|
+
*
|
24
|
+
* vis.js may be distributed under either license.
|
25
|
+
*/var jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ul={exports:{}},_h;function or(){return _h||(_h=1,function(e,r){(function(t,a){e.exports=a()})(jt,function(){var t;function a(){return t.apply(null,arguments)}function n(c){t=c}function s(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function o(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,v){return Object.prototype.hasOwnProperty.call(c,v)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var v;for(v in c)if(l(c,v))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function m(c,v){var g=[],_,k=c.length;for(_=0;_<k;++_)g.push(v(c[_],_));return g}function y(c,v){for(var g in v)l(v,g)&&(c[g]=v[g]);return l(v,"toString")&&(c.toString=v.toString),l(v,"valueOf")&&(c.valueOf=v.valueOf),c}function b(c,v,g,_){return Zc(c,v,g,_,!0).utc()}function E(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function w(c){return c._pf==null&&(c._pf=E()),c._pf}var S;Array.prototype.some?S=Array.prototype.some:S=function(c){var v=Object(this),g=v.length>>>0,_;for(_=0;_<g;_++)if(_ in v&&c.call(this,v[_],_,v))return!0;return!1};function D(c){if(c._isValid==null){var v=w(c),g=S.call(v.parsedDateParts,function(k){return k!=null}),_=!isNaN(c._d.getTime())&&v.overflow<0&&!v.empty&&!v.invalidEra&&!v.invalidMonth&&!v.invalidWeekday&&!v.weekdayMismatch&&!v.nullInput&&!v.invalidFormat&&!v.userInvalidated&&(!v.meridiem||v.meridiem&&g);if(c._strict&&(_=_&&v.charsLeftOver===0&&v.unusedTokens.length===0&&v.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _}return c._isValid}function T(c){var v=b(NaN);return c!=null?y(w(v),c):w(v).userInvalidated=!0,v}var P=a.momentProperties=[],F=!1;function A(c,v){var g,_,k,$=P.length;if(u(v._isAMomentObject)||(c._isAMomentObject=v._isAMomentObject),u(v._i)||(c._i=v._i),u(v._f)||(c._f=v._f),u(v._l)||(c._l=v._l),u(v._strict)||(c._strict=v._strict),u(v._tzm)||(c._tzm=v._tzm),u(v._isUTC)||(c._isUTC=v._isUTC),u(v._offset)||(c._offset=v._offset),u(v._pf)||(c._pf=w(v)),u(v._locale)||(c._locale=v._locale),$>0)for(g=0;g<$;g++)_=P[g],k=v[_],u(k)||(c[_]=k);return c}function V(c){A(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),F===!1&&(F=!0,a.updateOffset(this),F=!1)}function N(c){return c instanceof V||c!=null&&c._isAMomentObject!=null}function I(c){a.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+c)}function M(c,v){var g=!0;return y(function(){if(a.deprecationHandler!=null&&a.deprecationHandler(null,c),g){var _=[],k,$,C,Q=arguments.length;for($=0;$<Q;$++){if(k="",typeof arguments[$]=="object"){k+=`
|
26
|
+
[`+$+"] ";for(C in arguments[0])l(arguments[0],C)&&(k+=C+": "+arguments[0][C]+", ");k=k.slice(0,-2)}else k=arguments[$];_.push(k)}I(c+`
|
27
|
+
Arguments: `+Array.prototype.slice.call(_).join("")+`
|
28
|
+
`+new Error().stack),g=!1}return v.apply(this,arguments)},v)}var H={};function W(c,v){a.deprecationHandler!=null&&a.deprecationHandler(c,v),H[c]||(I(v),H[c]=!0)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;function q(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function de(c){var v,g;for(g in c)l(c,g)&&(v=c[g],q(v)?this[g]=v:this["_"+g]=v);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ae(c,v){var g=y({},c),_;for(_ in v)l(v,_)&&(o(c[_])&&o(v[_])?(g[_]={},y(g[_],c[_]),y(g[_],v[_])):v[_]!=null?g[_]=v[_]:delete g[_]);for(_ in c)l(c,_)&&!l(v,_)&&o(c[_])&&(g[_]=y({},g[_]));return g}function Je(c){c!=null&&this.set(c)}var Fe;Object.keys?Fe=Object.keys:Fe=function(c){var v,g=[];for(v in c)l(c,v)&&g.push(v);return g};var xt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function _r(c,v,g){var _=this._calendar[c]||this._calendar.sameElse;return q(_)?_.call(v,g):_}function We(c,v,g){var _=""+Math.abs(c),k=v-_.length,$=c>=0;return($?g?"+":"":"-")+Math.pow(10,Math.max(0,k)).toString().substr(1)+_}var ur=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Zt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fn={},br={};function K(c,v,g,_){var k=_;typeof _=="string"&&(k=function(){return this[_]()}),c&&(br[c]=k),v&&(br[v[0]]=function(){return We(k.apply(this,arguments),v[1],v[2])}),g&&(br[g]=function(){return this.localeData().ordinal(k.apply(this,arguments),c)})}function Yn(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function jn(c){var v=c.match(ur),g,_;for(g=0,_=v.length;g<_;g++)br[v[g]]?v[g]=br[v[g]]:v[g]=Yn(v[g]);return function(k){var $="",C;for(C=0;C<_;C++)$+=q(v[C])?v[C].call(k,c):v[C];return $}}function Wr(c,v){return c.isValid()?(v=j(v,c.localeData()),Fn[v]=Fn[v]||jn(v),Fn[v](c)):c.localeData().invalidDate()}function j(c,v){var g=5;function _(k){return v.longDateFormat(k)||k}for(Zt.lastIndex=0;g>=0&&Zt.test(c);)c=c.replace(Zt,_),Zt.lastIndex=0,g-=1;return c}var R={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(c){var v=this._longDateFormat[c],g=this._longDateFormat[c.toUpperCase()];return v||!g?v:(this._longDateFormat[c]=g.match(ur).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var X="Invalid date";function ie(){return this._invalidDate}var te="%d",Ye=/\d{1,2}/;function it(c){return this._ordinal.replace("%d",c)}var st={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wr(c,v,g,_){var k=this._relativeTime[g];return q(k)?k(c,v,g,_):k.replace(/%d/i,c)}function cr(c,v){var g=this._relativeTime[c>0?"future":"past"];return q(g)?g(v):g.replace(/%s/i,v)}var It={};function ot(c,v){var g=c.toLowerCase();It[g]=It[g+"s"]=It[v]=c}function Wt(c){return typeof c=="string"?It[c]||It[c.toLowerCase()]:void 0}function Ho(c){var v={},g,_;for(_ in c)l(c,_)&&(g=Wt(_),g&&(v[g]=c[_]));return v}var Cc={};function lt(c,v){Cc[c]=v}function Ib(c){var v=[],g;for(g in c)l(c,g)&&v.push({unit:g,priority:Cc[g]});return v.sort(function(_,k){return _.priority-k.priority}),v}function Xa(c){return c%4===0&&c%100!==0||c%400===0}function Gt(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function le(c){var v=+c,g=0;return v!==0&&isFinite(v)&&(g=Gt(v)),g}function Yi(c,v){return function(g){return g!=null?(Oc(this,c,g),a.updateOffset(this,v),this):qa(this,c)}}function qa(c,v){return c.isValid()?c._d["get"+(c._isUTC?"UTC":"")+v]():NaN}function Oc(c,v,g){c.isValid()&&!isNaN(g)&&(v==="FullYear"&&Xa(c.year())&&c.month()===1&&c.date()===29?(g=le(g),c._d["set"+(c._isUTC?"UTC":"")+v](g,c.month(),rs(g,c.month()))):c._d["set"+(c._isUTC?"UTC":"")+v](g))}function Mb(c){return c=Wt(c),q(this[c])?this[c]():this}function Ab(c,v){if(typeof c=="object"){c=Ho(c);var g=Ib(c),_,k=g.length;for(_=0;_<k;_++)this[g[_].unit](c[g[_].unit])}else if(c=Wt(c),q(this[c]))return this[c](v);return this}var Pc=/\d/,Mt=/\d\d/,Ic=/\d{3}/,Wo=/\d{4}/,Ka=/[+-]?\d{6}/,Ce=/\d\d?/,Mc=/\d\d\d\d?/,Ac=/\d\d\d\d\d\d?/,Za=/\d{1,3}/,Go=/\d{1,4}/,Qa=/[+-]?\d{1,6}/,ji=/\d+/,Ja=/[+-]?\d+/,Vb=/Z|[+-]\d\d:?\d\d/gi,es=/Z|[+-]\d\d(?::?\d\d)?/gi,Rb=/[+-]?\d+(\.\d{1,3})?/,Bn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ts;ts={};function G(c,v,g){ts[c]=q(v)?v:function(_,k){return _&&g?g:v}}function Lb(c,v){return l(ts,c)?ts[c](v._strict,v._locale):new RegExp(Fb(c))}function Fb(c){return At(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(v,g,_,k,$){return g||_||k||$}))}function At(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var zo={};function we(c,v){var g,_=v,k;for(typeof c=="string"&&(c=[c]),f(v)&&(_=function($,C){C[v]=le($)}),k=c.length,g=0;g<k;g++)zo[c[g]]=_}function Hn(c,v){we(c,function(g,_,k,$){k._w=k._w||{},v(g,k._w,k,$)})}function Yb(c,v,g){v!=null&&l(zo,c)&&zo[c](v,g._a,g,c)}var dt=0,kr=1,hr=2,Ke=3,Qt=4,xr=5,ui=6,jb=7,Bb=8;function Hb(c,v){return(c%v+v)%v}var Ge;Array.prototype.indexOf?Ge=Array.prototype.indexOf:Ge=function(c){var v;for(v=0;v<this.length;++v)if(this[v]===c)return v;return-1};function rs(c,v){if(isNaN(c)||isNaN(v))return NaN;var g=Hb(v,12);return c+=(v-g)/12,g===1?Xa(c)?29:28:31-g%7%2}K("M",["MM",2],"Mo",function(){return this.month()+1}),K("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),K("MMMM",0,0,function(c){return this.localeData().months(this,c)}),ot("month","M"),lt("month",8),G("M",Ce),G("MM",Ce,Mt),G("MMM",function(c,v){return v.monthsShortRegex(c)}),G("MMMM",function(c,v){return v.monthsRegex(c)}),we(["M","MM"],function(c,v){v[kr]=le(c)-1}),we(["MMM","MMMM"],function(c,v,g,_){var k=g._locale.monthsParse(c,_,g._strict);k!=null?v[kr]=k:w(g).invalidMonth=c});var Wb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Vc="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Rc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gb=Bn,zb=Bn;function Ub(c,v){return c?s(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||Rc).test(v)?"format":"standalone"][c.month()]:s(this._months)?this._months:this._months.standalone}function Xb(c,v){return c?s(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[Rc.test(v)?"format":"standalone"][c.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qb(c,v,g){var _,k,$,C=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)$=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort($,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months($,"").toLocaleLowerCase();return g?v==="MMM"?(k=Ge.call(this._shortMonthsParse,C),k!==-1?k:null):(k=Ge.call(this._longMonthsParse,C),k!==-1?k:null):v==="MMM"?(k=Ge.call(this._shortMonthsParse,C),k!==-1?k:(k=Ge.call(this._longMonthsParse,C),k!==-1?k:null)):(k=Ge.call(this._longMonthsParse,C),k!==-1?k:(k=Ge.call(this._shortMonthsParse,C),k!==-1?k:null))}function Kb(c,v,g){var _,k,$;if(this._monthsParseExact)return qb.call(this,c,v,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(k=b([2e3,_]),g&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(k,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(k,"").replace(".","")+"$","i")),!g&&!this._monthsParse[_]&&($="^"+this.months(k,"")+"|^"+this.monthsShort(k,""),this._monthsParse[_]=new RegExp($.replace(".",""),"i")),g&&v==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(g&&v==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!g&&this._monthsParse[_].test(c))return _}}function Lc(c,v){var g;if(!c.isValid())return c;if(typeof v=="string"){if(/^\d+$/.test(v))v=le(v);else if(v=c.localeData().monthsParse(v),!f(v))return c}return g=Math.min(c.date(),rs(c.year(),v)),c._d["set"+(c._isUTC?"UTC":"")+"Month"](v,g),c}function Fc(c){return c!=null?(Lc(this,c),a.updateOffset(this,!0),this):qa(this,"Month")}function Zb(){return rs(this.year(),this.month())}function Qb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Yc.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Gb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Yc.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=zb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function Yc(){function c(C,Q){return Q.length-C.length}var v=[],g=[],_=[],k,$;for(k=0;k<12;k++)$=b([2e3,k]),v.push(this.monthsShort($,"")),g.push(this.months($,"")),_.push(this.months($,"")),_.push(this.monthsShort($,""));for(v.sort(c),g.sort(c),_.sort(c),k=0;k<12;k++)v[k]=At(v[k]),g[k]=At(g[k]);for(k=0;k<24;k++)_[k]=At(_[k]);this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+v.join("|")+")","i")}K("Y",0,0,function(){var c=this.year();return c<=9999?We(c,4):"+"+c}),K(0,["YY",2],0,function(){return this.year()%100}),K(0,["YYYY",4],0,"year"),K(0,["YYYYY",5],0,"year"),K(0,["YYYYYY",6,!0],0,"year"),ot("year","y"),lt("year",1),G("Y",Ja),G("YY",Ce,Mt),G("YYYY",Go,Wo),G("YYYYY",Qa,Ka),G("YYYYYY",Qa,Ka),we(["YYYYY","YYYYYY"],dt),we("YYYY",function(c,v){v[dt]=c.length===2?a.parseTwoDigitYear(c):le(c)}),we("YY",function(c,v){v[dt]=a.parseTwoDigitYear(c)}),we("Y",function(c,v){v[dt]=parseInt(c,10)});function Wn(c){return Xa(c)?366:365}a.parseTwoDigitYear=function(c){return le(c)+(le(c)>68?1900:2e3)};var jc=Yi("FullYear",!0);function e0(){return Xa(this.year())}function t0(c,v,g,_,k,$,C){var Q;return c<100&&c>=0?(Q=new Date(c+400,v,g,_,k,$,C),isFinite(Q.getFullYear())&&Q.setFullYear(c)):Q=new Date(c,v,g,_,k,$,C),Q}function Gn(c){var v,g;return c<100&&c>=0?(g=Array.prototype.slice.call(arguments),g[0]=c+400,v=new Date(Date.UTC.apply(null,g)),isFinite(v.getUTCFullYear())&&v.setUTCFullYear(c)):v=new Date(Date.UTC.apply(null,arguments)),v}function is(c,v,g){var _=7+v-g,k=(7+Gn(c,0,_).getUTCDay()-v)%7;return-k+_-1}function Bc(c,v,g,_,k){var $=(7+g-_)%7,C=is(c,_,k),Q=1+7*(v-1)+$+C,oe,ke;return Q<=0?(oe=c-1,ke=Wn(oe)+Q):Q>Wn(c)?(oe=c+1,ke=Q-Wn(c)):(oe=c,ke=Q),{year:oe,dayOfYear:ke}}function zn(c,v,g){var _=is(c.year(),v,g),k=Math.floor((c.dayOfYear()-_-1)/7)+1,$,C;return k<1?(C=c.year()-1,$=k+Er(C,v,g)):k>Er(c.year(),v,g)?($=k-Er(c.year(),v,g),C=c.year()+1):(C=c.year(),$=k),{week:$,year:C}}function Er(c,v,g){var _=is(c,v,g),k=is(c+1,v,g);return(Wn(c)-_+k)/7}K("w",["ww",2],"wo","week"),K("W",["WW",2],"Wo","isoWeek"),ot("week","w"),ot("isoWeek","W"),lt("week",5),lt("isoWeek",5),G("w",Ce),G("ww",Ce,Mt),G("W",Ce),G("WW",Ce,Mt),Hn(["w","ww","W","WW"],function(c,v,g,_){v[_.substr(0,1)]=le(c)});function r0(c){return zn(c,this._week.dow,this._week.doy).week}var i0={dow:0,doy:6};function n0(){return this._week.dow}function a0(){return this._week.doy}function s0(c){var v=this.localeData().week(this);return c==null?v:this.add((c-v)*7,"d")}function o0(c){var v=zn(this,1,4).week;return c==null?v:this.add((c-v)*7,"d")}K("d",0,"do","day"),K("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),K("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),K("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),K("e",0,0,"weekday"),K("E",0,0,"isoWeekday"),ot("day","d"),ot("weekday","e"),ot("isoWeekday","E"),lt("day",11),lt("weekday",11),lt("isoWeekday",11),G("d",Ce),G("e",Ce),G("E",Ce),G("dd",function(c,v){return v.weekdaysMinRegex(c)}),G("ddd",function(c,v){return v.weekdaysShortRegex(c)}),G("dddd",function(c,v){return v.weekdaysRegex(c)}),Hn(["dd","ddd","dddd"],function(c,v,g,_){var k=g._locale.weekdaysParse(c,_,g._strict);k!=null?v.d=k:w(g).invalidWeekday=c}),Hn(["d","e","E"],function(c,v,g,_){v[_]=le(c)});function l0(c,v){return typeof c!="string"?c:isNaN(c)?(c=v.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function d0(c,v){return typeof c=="string"?v.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Uo(c,v){return c.slice(v,7).concat(c.slice(0,v))}var u0="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Hc="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),c0="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),h0=Bn,f0=Bn,v0=Bn;function p0(c,v){var g=s(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(v)?"format":"standalone"];return c===!0?Uo(g,this._week.dow):c?g[c.day()]:g}function m0(c){return c===!0?Uo(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function g0(c){return c===!0?Uo(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function y0(c,v,g){var _,k,$,C=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)$=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays($,"").toLocaleLowerCase();return g?v==="dddd"?(k=Ge.call(this._weekdaysParse,C),k!==-1?k:null):v==="ddd"?(k=Ge.call(this._shortWeekdaysParse,C),k!==-1?k:null):(k=Ge.call(this._minWeekdaysParse,C),k!==-1?k:null):v==="dddd"?(k=Ge.call(this._weekdaysParse,C),k!==-1||(k=Ge.call(this._shortWeekdaysParse,C),k!==-1)?k:(k=Ge.call(this._minWeekdaysParse,C),k!==-1?k:null)):v==="ddd"?(k=Ge.call(this._shortWeekdaysParse,C),k!==-1||(k=Ge.call(this._weekdaysParse,C),k!==-1)?k:(k=Ge.call(this._minWeekdaysParse,C),k!==-1?k:null)):(k=Ge.call(this._minWeekdaysParse,C),k!==-1||(k=Ge.call(this._weekdaysParse,C),k!==-1)?k:(k=Ge.call(this._shortWeekdaysParse,C),k!==-1?k:null))}function _0(c,v,g){var _,k,$;if(this._weekdaysParseExact)return y0.call(this,c,v,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(k=b([2e3,1]).day(_),g&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(k,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(k,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(k,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||($="^"+this.weekdays(k,"")+"|^"+this.weekdaysShort(k,"")+"|^"+this.weekdaysMin(k,""),this._weekdaysParse[_]=new RegExp($.replace(".",""),"i")),g&&v==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(g&&v==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(g&&v==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!g&&this._weekdaysParse[_].test(c))return _}}function b0(c){if(!this.isValid())return c!=null?this:NaN;var v=this._isUTC?this._d.getUTCDay():this._d.getDay();return c!=null?(c=l0(c,this.localeData()),this.add(c-v,"d")):v}function w0(c){if(!this.isValid())return c!=null?this:NaN;var v=(this.day()+7-this.localeData()._week.dow)%7;return c==null?v:this.add(c-v,"d")}function k0(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var v=d0(c,this.localeData());return this.day(this.day()%7?v:v-7)}else return this.day()||7}function x0(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xo.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=h0),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function E0(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xo.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=f0),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function S0(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xo.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=v0),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xo(){function c(ft,Nr){return Nr.length-ft.length}var v=[],g=[],_=[],k=[],$,C,Q,oe,ke;for($=0;$<7;$++)C=b([2e3,1]).day($),Q=At(this.weekdaysMin(C,"")),oe=At(this.weekdaysShort(C,"")),ke=At(this.weekdays(C,"")),v.push(Q),g.push(oe),_.push(ke),k.push(Q),k.push(oe),k.push(ke);v.sort(c),g.sort(c),_.sort(c),k.sort(c),this._weekdaysRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+v.join("|")+")","i")}function qo(){return this.hours()%12||12}function $0(){return this.hours()||24}K("H",["HH",2],0,"hour"),K("h",["hh",2],0,qo),K("k",["kk",2],0,$0),K("hmm",0,0,function(){return""+qo.apply(this)+We(this.minutes(),2)}),K("hmmss",0,0,function(){return""+qo.apply(this)+We(this.minutes(),2)+We(this.seconds(),2)}),K("Hmm",0,0,function(){return""+this.hours()+We(this.minutes(),2)}),K("Hmmss",0,0,function(){return""+this.hours()+We(this.minutes(),2)+We(this.seconds(),2)});function Wc(c,v){K(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),v)})}Wc("a",!0),Wc("A",!1),ot("hour","h"),lt("hour",13);function Gc(c,v){return v._meridiemParse}G("a",Gc),G("A",Gc),G("H",Ce),G("h",Ce),G("k",Ce),G("HH",Ce,Mt),G("hh",Ce,Mt),G("kk",Ce,Mt),G("hmm",Mc),G("hmmss",Ac),G("Hmm",Mc),G("Hmmss",Ac),we(["H","HH"],Ke),we(["k","kk"],function(c,v,g){var _=le(c);v[Ke]=_===24?0:_}),we(["a","A"],function(c,v,g){g._isPm=g._locale.isPM(c),g._meridiem=c}),we(["h","hh"],function(c,v,g){v[Ke]=le(c),w(g).bigHour=!0}),we("hmm",function(c,v,g){var _=c.length-2;v[Ke]=le(c.substr(0,_)),v[Qt]=le(c.substr(_)),w(g).bigHour=!0}),we("hmmss",function(c,v,g){var _=c.length-4,k=c.length-2;v[Ke]=le(c.substr(0,_)),v[Qt]=le(c.substr(_,2)),v[xr]=le(c.substr(k)),w(g).bigHour=!0}),we("Hmm",function(c,v,g){var _=c.length-2;v[Ke]=le(c.substr(0,_)),v[Qt]=le(c.substr(_))}),we("Hmmss",function(c,v,g){var _=c.length-4,k=c.length-2;v[Ke]=le(c.substr(0,_)),v[Qt]=le(c.substr(_,2)),v[xr]=le(c.substr(k))});function D0(c){return(c+"").toLowerCase().charAt(0)==="p"}var T0=/[ap]\.?m?\.?/i,N0=Yi("Hours",!0);function C0(c,v,g){return c>11?g?"pm":"PM":g?"am":"AM"}var zc={calendar:xt,longDateFormat:R,invalidDate:X,ordinal:te,dayOfMonthOrdinalParse:Ye,relativeTime:st,months:Wb,monthsShort:Vc,week:i0,weekdays:u0,weekdaysMin:c0,weekdaysShort:Hc,meridiemParse:T0},Ve={},Un={},Xn;function O0(c,v){var g,_=Math.min(c.length,v.length);for(g=0;g<_;g+=1)if(c[g]!==v[g])return g;return _}function Uc(c){return c&&c.toLowerCase().replace("_","-")}function P0(c){for(var v=0,g,_,k,$;v<c.length;){for($=Uc(c[v]).split("-"),g=$.length,_=Uc(c[v+1]),_=_?_.split("-"):null;g>0;){if(k=ns($.slice(0,g).join("-")),k)return k;if(_&&_.length>=g&&O0($,_)>=g-1)break;g--}v++}return Xn}function I0(c){return c.match("^[^/\\\\]*$")!=null}function ns(c){var v=null,g;if(Ve[c]===void 0&&e&&e.exports&&I0(c))try{v=Xn._abbr,g=gr,g("./locale/"+c),Gr(v)}catch{Ve[c]=null}return Ve[c]}function Gr(c,v){var g;return c&&(u(v)?g=Sr(c):g=Ko(c,v),g?Xn=g:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),Xn._abbr}function Ko(c,v){if(v!==null){var g,_=zc;if(v.abbr=c,Ve[c]!=null)W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Ve[c]._config;else if(v.parentLocale!=null)if(Ve[v.parentLocale]!=null)_=Ve[v.parentLocale]._config;else if(g=ns(v.parentLocale),g!=null)_=g._config;else return Un[v.parentLocale]||(Un[v.parentLocale]=[]),Un[v.parentLocale].push({name:c,config:v}),null;return Ve[c]=new Je(Ae(_,v)),Un[c]&&Un[c].forEach(function(k){Ko(k.name,k.config)}),Gr(c),Ve[c]}else return delete Ve[c],null}function M0(c,v){if(v!=null){var g,_,k=zc;Ve[c]!=null&&Ve[c].parentLocale!=null?Ve[c].set(Ae(Ve[c]._config,v)):(_=ns(c),_!=null&&(k=_._config),v=Ae(k,v),_==null&&(v.abbr=c),g=new Je(v),g.parentLocale=Ve[c],Ve[c]=g),Gr(c)}else Ve[c]!=null&&(Ve[c].parentLocale!=null?(Ve[c]=Ve[c].parentLocale,c===Gr()&&Gr(c)):Ve[c]!=null&&delete Ve[c]);return Ve[c]}function Sr(c){var v;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return Xn;if(!s(c)){if(v=ns(c),v)return v;c=[c]}return P0(c)}function A0(){return Fe(Ve)}function Zo(c){var v,g=c._a;return g&&w(c).overflow===-2&&(v=g[kr]<0||g[kr]>11?kr:g[hr]<1||g[hr]>rs(g[dt],g[kr])?hr:g[Ke]<0||g[Ke]>24||g[Ke]===24&&(g[Qt]!==0||g[xr]!==0||g[ui]!==0)?Ke:g[Qt]<0||g[Qt]>59?Qt:g[xr]<0||g[xr]>59?xr:g[ui]<0||g[ui]>999?ui:-1,w(c)._overflowDayOfYear&&(v<dt||v>hr)&&(v=hr),w(c)._overflowWeeks&&v===-1&&(v=jb),w(c)._overflowWeekday&&v===-1&&(v=Bb),w(c).overflow=v),c}var V0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,R0=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,L0=/Z|[+-]\d\d(?::?\d\d)?/,as=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],F0=/^\/?Date\((-?\d+)/i,Y0=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,j0={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xc(c){var v,g,_=c._i,k=V0.exec(_)||R0.exec(_),$,C,Q,oe,ke=as.length,ft=Qo.length;if(k){for(w(c).iso=!0,v=0,g=ke;v<g;v++)if(as[v][1].exec(k[1])){C=as[v][0],$=as[v][2]!==!1;break}if(C==null){c._isValid=!1;return}if(k[3]){for(v=0,g=ft;v<g;v++)if(Qo[v][1].exec(k[3])){Q=(k[2]||" ")+Qo[v][0];break}if(Q==null){c._isValid=!1;return}}if(!$&&Q!=null){c._isValid=!1;return}if(k[4])if(L0.exec(k[4]))oe="Z";else{c._isValid=!1;return}c._f=C+(Q||"")+(oe||""),el(c)}else c._isValid=!1}function B0(c,v,g,_,k,$){var C=[H0(c),Vc.indexOf(v),parseInt(g,10),parseInt(_,10),parseInt(k,10)];return $&&C.push(parseInt($,10)),C}function H0(c){var v=parseInt(c,10);return v<=49?2e3+v:v<=999?1900+v:v}function W0(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function G0(c,v,g){if(c){var _=Hc.indexOf(c),k=new Date(v[0],v[1],v[2]).getDay();if(_!==k)return w(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function z0(c,v,g){if(c)return j0[c];if(v)return 0;var _=parseInt(g,10),k=_%100,$=(_-k)/100;return $*60+k}function qc(c){var v=Y0.exec(W0(c._i)),g;if(v){if(g=B0(v[4],v[3],v[2],v[5],v[6],v[7]),!G0(v[1],g,c))return;c._a=g,c._tzm=z0(v[8],v[9],v[10]),c._d=Gn.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),w(c).rfc2822=!0}else c._isValid=!1}function U0(c){var v=F0.exec(c._i);if(v!==null){c._d=new Date(+v[1]);return}if(Xc(c),c._isValid===!1)delete c._isValid;else return;if(qc(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:a.createFromInputFallback(c)}a.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function Bi(c,v,g){return c??v??g}function X0(c){var v=new Date(a.now());return c._useUTC?[v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()]:[v.getFullYear(),v.getMonth(),v.getDate()]}function Jo(c){var v,g,_=[],k,$,C;if(!c._d){for(k=X0(c),c._w&&c._a[hr]==null&&c._a[kr]==null&&q0(c),c._dayOfYear!=null&&(C=Bi(c._a[dt],k[dt]),(c._dayOfYear>Wn(C)||c._dayOfYear===0)&&(w(c)._overflowDayOfYear=!0),g=Gn(C,0,c._dayOfYear),c._a[kr]=g.getUTCMonth(),c._a[hr]=g.getUTCDate()),v=0;v<3&&c._a[v]==null;++v)c._a[v]=_[v]=k[v];for(;v<7;v++)c._a[v]=_[v]=c._a[v]==null?v===2?1:0:c._a[v];c._a[Ke]===24&&c._a[Qt]===0&&c._a[xr]===0&&c._a[ui]===0&&(c._nextDay=!0,c._a[Ke]=0),c._d=(c._useUTC?Gn:t0).apply(null,_),$=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[Ke]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==$&&(w(c).weekdayMismatch=!0)}}function q0(c){var v,g,_,k,$,C,Q,oe,ke;v=c._w,v.GG!=null||v.W!=null||v.E!=null?($=1,C=4,g=Bi(v.GG,c._a[dt],zn(Oe(),1,4).year),_=Bi(v.W,1),k=Bi(v.E,1),(k<1||k>7)&&(oe=!0)):($=c._locale._week.dow,C=c._locale._week.doy,ke=zn(Oe(),$,C),g=Bi(v.gg,c._a[dt],ke.year),_=Bi(v.w,ke.week),v.d!=null?(k=v.d,(k<0||k>6)&&(oe=!0)):v.e!=null?(k=v.e+$,(v.e<0||v.e>6)&&(oe=!0)):k=$),_<1||_>Er(g,$,C)?w(c)._overflowWeeks=!0:oe!=null?w(c)._overflowWeekday=!0:(Q=Bc(g,_,k,$,C),c._a[dt]=Q.year,c._dayOfYear=Q.dayOfYear)}a.ISO_8601=function(){},a.RFC_2822=function(){};function el(c){if(c._f===a.ISO_8601){Xc(c);return}if(c._f===a.RFC_2822){qc(c);return}c._a=[],w(c).empty=!0;var v=""+c._i,g,_,k,$,C,Q=v.length,oe=0,ke,ft;for(k=j(c._f,c._locale).match(ur)||[],ft=k.length,g=0;g<ft;g++)$=k[g],_=(v.match(Lb($,c))||[])[0],_&&(C=v.substr(0,v.indexOf(_)),C.length>0&&w(c).unusedInput.push(C),v=v.slice(v.indexOf(_)+_.length),oe+=_.length),br[$]?(_?w(c).empty=!1:w(c).unusedTokens.push($),Yb($,_,c)):c._strict&&!_&&w(c).unusedTokens.push($);w(c).charsLeftOver=Q-oe,v.length>0&&w(c).unusedInput.push(v),c._a[Ke]<=12&&w(c).bigHour===!0&&c._a[Ke]>0&&(w(c).bigHour=void 0),w(c).parsedDateParts=c._a.slice(0),w(c).meridiem=c._meridiem,c._a[Ke]=K0(c._locale,c._a[Ke],c._meridiem),ke=w(c).era,ke!==null&&(c._a[dt]=c._locale.erasConvertYear(ke,c._a[dt])),Jo(c),Zo(c)}function K0(c,v,g){var _;return g==null?v:c.meridiemHour!=null?c.meridiemHour(v,g):(c.isPM!=null&&(_=c.isPM(g),_&&v<12&&(v+=12),!_&&v===12&&(v=0)),v)}function Z0(c){var v,g,_,k,$,C,Q=!1,oe=c._f.length;if(oe===0){w(c).invalidFormat=!0,c._d=new Date(NaN);return}for(k=0;k<oe;k++)$=0,C=!1,v=A({},c),c._useUTC!=null&&(v._useUTC=c._useUTC),v._f=c._f[k],el(v),D(v)&&(C=!0),$+=w(v).charsLeftOver,$+=w(v).unusedTokens.length*10,w(v).score=$,Q?$<_&&(_=$,g=v):(_==null||$<_||C)&&(_=$,g=v,C&&(Q=!0));y(c,g||v)}function Q0(c){if(!c._d){var v=Ho(c._i),g=v.day===void 0?v.date:v.day;c._a=m([v.year,v.month,g,v.hour,v.minute,v.second,v.millisecond],function(_){return _&&parseInt(_,10)}),Jo(c)}}function J0(c){var v=new V(Zo(Kc(c)));return v._nextDay&&(v.add(1,"d"),v._nextDay=void 0),v}function Kc(c){var v=c._i,g=c._f;return c._locale=c._locale||Sr(c._l),v===null||g===void 0&&v===""?T({nullInput:!0}):(typeof v=="string"&&(c._i=v=c._locale.preparse(v)),N(v)?new V(Zo(v)):(p(v)?c._d=v:s(g)?Z0(c):g?el(c):ew(c),D(c)||(c._d=null),c))}function ew(c){var v=c._i;u(v)?c._d=new Date(a.now()):p(v)?c._d=new Date(v.valueOf()):typeof v=="string"?U0(c):s(v)?(c._a=m(v.slice(0),function(g){return parseInt(g,10)}),Jo(c)):o(v)?Q0(c):f(v)?c._d=new Date(v):a.createFromInputFallback(c)}function Zc(c,v,g,_,k){var $={};return(v===!0||v===!1)&&(_=v,v=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(o(c)&&d(c)||s(c)&&c.length===0)&&(c=void 0),$._isAMomentObject=!0,$._useUTC=$._isUTC=k,$._l=g,$._i=c,$._f=v,$._strict=_,J0($)}function Oe(c,v,g,_){return Zc(c,v,g,_,!1)}var tw=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Oe.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:T()}),rw=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Oe.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:T()});function Qc(c,v){var g,_;if(v.length===1&&s(v[0])&&(v=v[0]),!v.length)return Oe();for(g=v[0],_=1;_<v.length;++_)(!v[_].isValid()||v[_][c](g))&&(g=v[_]);return g}function iw(){var c=[].slice.call(arguments,0);return Qc("isBefore",c)}function nw(){var c=[].slice.call(arguments,0);return Qc("isAfter",c)}var aw=function(){return Date.now?Date.now():+new Date},qn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function sw(c){var v,g=!1,_,k=qn.length;for(v in c)if(l(c,v)&&!(Ge.call(qn,v)!==-1&&(c[v]==null||!isNaN(c[v]))))return!1;for(_=0;_<k;++_)if(c[qn[_]]){if(g)return!1;parseFloat(c[qn[_]])!==le(c[qn[_]])&&(g=!0)}return!0}function ow(){return this._isValid}function lw(){return Jt(NaN)}function ss(c){var v=Ho(c),g=v.year||0,_=v.quarter||0,k=v.month||0,$=v.week||v.isoWeek||0,C=v.day||0,Q=v.hour||0,oe=v.minute||0,ke=v.second||0,ft=v.millisecond||0;this._isValid=sw(v),this._milliseconds=+ft+ke*1e3+oe*6e4+Q*1e3*60*60,this._days=+C+$*7,this._months=+k+_*3+g*12,this._data={},this._locale=Sr(),this._bubble()}function os(c){return c instanceof ss}function tl(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function dw(c,v,g){var _=Math.min(c.length,v.length),k=Math.abs(c.length-v.length),$=0,C;for(C=0;C<_;C++)le(c[C])!==le(v[C])&&$++;return $+k}function Jc(c,v){K(c,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+We(~~(g/60),2)+v+We(~~g%60,2)})}Jc("Z",":"),Jc("ZZ",""),G("Z",es),G("ZZ",es),we(["Z","ZZ"],function(c,v,g){g._useUTC=!0,g._tzm=rl(es,c)});var uw=/([\+\-]|\d\d)/gi;function rl(c,v){var g=(v||"").match(c),_,k,$;return g===null?null:(_=g[g.length-1]||[],k=(_+"").match(uw)||["-",0,0],$=+(k[1]*60)+le(k[2]),$===0?0:k[0]==="+"?$:-$)}function il(c,v){var g,_;return v._isUTC?(g=v.clone(),_=(N(c)||p(c)?c.valueOf():Oe(c).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),a.updateOffset(g,!1),g):Oe(c).local()}function nl(c){return-Math.round(c._d.getTimezoneOffset())}a.updateOffset=function(){};function cw(c,v,g){var _=this._offset||0,k;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=rl(es,c),c===null)return this}else Math.abs(c)<16&&!g&&(c=c*60);return!this._isUTC&&v&&(k=nl(this)),this._offset=c,this._isUTC=!0,k!=null&&this.add(k,"m"),_!==c&&(!v||this._changeInProgress?ih(this,Jt(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:nl(this)}function hw(c,v){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,v),this):-this.utcOffset()}function fw(c){return this.utcOffset(0,c)}function vw(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(nl(this),"m")),this}function pw(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=rl(Vb,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function mw(c){return this.isValid()?(c=c?Oe(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function gw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yw(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},v;return A(c,this),c=Kc(c),c._a?(v=c._isUTC?b(c._a):Oe(c._a),this._isDSTShifted=this.isValid()&&dw(c._a,v.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function _w(){return this.isValid()?!this._isUTC:!1}function bw(){return this.isValid()?this._isUTC:!1}function eh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ww=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(c,v){var g=c,_=null,k,$,C;return os(c)?g={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(g={},v?g[v]=+c:g.milliseconds=+c):(_=ww.exec(c))?(k=_[1]==="-"?-1:1,g={y:0,d:le(_[hr])*k,h:le(_[Ke])*k,m:le(_[Qt])*k,s:le(_[xr])*k,ms:le(tl(_[ui]*1e3))*k}):(_=kw.exec(c))?(k=_[1]==="-"?-1:1,g={y:ci(_[2],k),M:ci(_[3],k),w:ci(_[4],k),d:ci(_[5],k),h:ci(_[6],k),m:ci(_[7],k),s:ci(_[8],k)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(C=xw(Oe(g.from),Oe(g.to)),g={},g.ms=C.milliseconds,g.M=C.months),$=new ss(g),os(c)&&l(c,"_locale")&&($._locale=c._locale),os(c)&&l(c,"_isValid")&&($._isValid=c._isValid),$}Jt.fn=ss.prototype,Jt.invalid=lw;function ci(c,v){var g=c&&parseFloat(c.replace(",","."));return(isNaN(g)?0:g)*v}function th(c,v){var g={};return g.months=v.month()-c.month()+(v.year()-c.year())*12,c.clone().add(g.months,"M").isAfter(v)&&--g.months,g.milliseconds=+v-+c.clone().add(g.months,"M"),g}function xw(c,v){var g;return c.isValid()&&v.isValid()?(v=il(v,c),c.isBefore(v)?g=th(c,v):(g=th(v,c),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function rh(c,v){return function(g,_){var k,$;return _!==null&&!isNaN(+_)&&(W(v,"moment()."+v+"(period, number) is deprecated. Please use moment()."+v+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=g,g=_,_=$),k=Jt(g,_),ih(this,k,c),this}}function ih(c,v,g,_){var k=v._milliseconds,$=tl(v._days),C=tl(v._months);c.isValid()&&(_=_??!0,C&&Lc(c,qa(c,"Month")+C*g),$&&Oc(c,"Date",qa(c,"Date")+$*g),k&&c._d.setTime(c._d.valueOf()+k*g),_&&a.updateOffset(c,$||C))}var Ew=rh(1,"add"),Sw=rh(-1,"subtract");function nh(c){return typeof c=="string"||c instanceof String}function $w(c){return N(c)||p(c)||nh(c)||f(c)||Tw(c)||Dw(c)||c===null||c===void 0}function Dw(c){var v=o(c)&&!d(c),g=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],k,$,C=_.length;for(k=0;k<C;k+=1)$=_[k],g=g||l(c,$);return v&&g}function Tw(c){var v=s(c),g=!1;return v&&(g=c.filter(function(_){return!f(_)&&nh(c)}).length===0),v&&g}function Nw(c){var v=o(c)&&!d(c),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],k,$;for(k=0;k<_.length;k+=1)$=_[k],g=g||l(c,$);return v&&g}function Cw(c,v){var g=c.diff(v,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function Ow(c,v){arguments.length===1&&(arguments[0]?$w(arguments[0])?(c=arguments[0],v=void 0):Nw(arguments[0])&&(v=arguments[0],c=void 0):(c=void 0,v=void 0));var g=c||Oe(),_=il(g,this).startOf("day"),k=a.calendarFormat(this,_)||"sameElse",$=v&&(q(v[k])?v[k].call(this,g):v[k]);return this.format($||this.localeData().calendar(k,this,Oe(g)))}function Pw(){return new V(this)}function Iw(c,v){var g=N(c)?c:Oe(c);return this.isValid()&&g.isValid()?(v=Wt(v)||"millisecond",v==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(v).valueOf()):!1}function Mw(c,v){var g=N(c)?c:Oe(c);return this.isValid()&&g.isValid()?(v=Wt(v)||"millisecond",v==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(v).valueOf()<g.valueOf()):!1}function Aw(c,v,g,_){var k=N(c)?c:Oe(c),$=N(v)?v:Oe(v);return this.isValid()&&k.isValid()&&$.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(k,g):!this.isBefore(k,g))&&(_[1]===")"?this.isBefore($,g):!this.isAfter($,g))):!1}function Vw(c,v){var g=N(c)?c:Oe(c),_;return this.isValid()&&g.isValid()?(v=Wt(v)||"millisecond",v==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(v).valueOf()<=_&&_<=this.clone().endOf(v).valueOf())):!1}function Rw(c,v){return this.isSame(c,v)||this.isAfter(c,v)}function Lw(c,v){return this.isSame(c,v)||this.isBefore(c,v)}function Fw(c,v,g){var _,k,$;if(!this.isValid())return NaN;if(_=il(c,this),!_.isValid())return NaN;switch(k=(_.utcOffset()-this.utcOffset())*6e4,v=Wt(v),v){case"year":$=ls(this,_)/12;break;case"month":$=ls(this,_);break;case"quarter":$=ls(this,_)/3;break;case"second":$=(this-_)/1e3;break;case"minute":$=(this-_)/6e4;break;case"hour":$=(this-_)/36e5;break;case"day":$=(this-_-k)/864e5;break;case"week":$=(this-_-k)/6048e5;break;default:$=this-_}return g?$:Gt($)}function ls(c,v){if(c.date()<v.date())return-ls(v,c);var g=(v.year()-c.year())*12+(v.month()-c.month()),_=c.clone().add(g,"months"),k,$;return v-_<0?(k=c.clone().add(g-1,"months"),$=(v-_)/(_-k)):(k=c.clone().add(g+1,"months"),$=(v-_)/(k-_)),-(g+$)||0}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Yw(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function jw(c){if(!this.isValid())return null;var v=c!==!0,g=v?this.clone().utc():this;return g.year()<0||g.year()>9999?Wr(g,v?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):q(Date.prototype.toISOString)?v?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Wr(g,"Z")):Wr(g,v?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Bw(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",v="",g,_,k,$;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",v="Z"),g="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",k="-MM-DD[T]HH:mm:ss.SSS",$=v+'[")]',this.format(g+_+k+$)}function Hw(c){c||(c=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var v=Wr(this,c);return this.localeData().postformat(v)}function Ww(c,v){return this.isValid()&&(N(c)&&c.isValid()||Oe(c).isValid())?Jt({to:this,from:c}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function Gw(c){return this.from(Oe(),c)}function zw(c,v){return this.isValid()&&(N(c)&&c.isValid()||Oe(c).isValid())?Jt({from:this,to:c}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function Uw(c){return this.to(Oe(),c)}function ah(c){var v;return c===void 0?this._locale._abbr:(v=Sr(c),v!=null&&(this._locale=v),this)}var sh=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function oh(){return this._locale}var ds=1e3,Hi=60*ds,us=60*Hi,lh=(365*400+97)*24*us;function Wi(c,v){return(c%v+v)%v}function dh(c,v,g){return c<100&&c>=0?new Date(c+400,v,g)-lh:new Date(c,v,g).valueOf()}function uh(c,v,g){return c<100&&c>=0?Date.UTC(c+400,v,g)-lh:Date.UTC(c,v,g)}function Xw(c){var v,g;if(c=Wt(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?uh:dh,c){case"year":v=g(this.year(),0,1);break;case"quarter":v=g(this.year(),this.month()-this.month()%3,1);break;case"month":v=g(this.year(),this.month(),1);break;case"week":v=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":v=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":v=g(this.year(),this.month(),this.date());break;case"hour":v=this._d.valueOf(),v-=Wi(v+(this._isUTC?0:this.utcOffset()*Hi),us);break;case"minute":v=this._d.valueOf(),v-=Wi(v,Hi);break;case"second":v=this._d.valueOf(),v-=Wi(v,ds);break}return this._d.setTime(v),a.updateOffset(this,!0),this}function qw(c){var v,g;if(c=Wt(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?uh:dh,c){case"year":v=g(this.year()+1,0,1)-1;break;case"quarter":v=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":v=g(this.year(),this.month()+1,1)-1;break;case"week":v=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":v=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":v=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":v=this._d.valueOf(),v+=us-Wi(v+(this._isUTC?0:this.utcOffset()*Hi),us)-1;break;case"minute":v=this._d.valueOf(),v+=Hi-Wi(v,Hi)-1;break;case"second":v=this._d.valueOf(),v+=ds-Wi(v,ds)-1;break}return this._d.setTime(v),a.updateOffset(this,!0),this}function Kw(){return this._d.valueOf()-(this._offset||0)*6e4}function Zw(){return Math.floor(this.valueOf()/1e3)}function Qw(){return new Date(this.valueOf())}function Jw(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function e1(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function t1(){return this.isValid()?this.toISOString():null}function r1(){return D(this)}function i1(){return y({},w(this))}function n1(){return w(this).overflow}function a1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}K("N",0,0,"eraAbbr"),K("NN",0,0,"eraAbbr"),K("NNN",0,0,"eraAbbr"),K("NNNN",0,0,"eraName"),K("NNNNN",0,0,"eraNarrow"),K("y",["y",1],"yo","eraYear"),K("y",["yy",2],0,"eraYear"),K("y",["yyy",3],0,"eraYear"),K("y",["yyyy",4],0,"eraYear"),G("N",al),G("NN",al),G("NNN",al),G("NNNN",m1),G("NNNNN",g1),we(["N","NN","NNN","NNNN","NNNNN"],function(c,v,g,_){var k=g._locale.erasParse(c,_,g._strict);k?w(g).era=k:w(g).invalidEra=c}),G("y",ji),G("yy",ji),G("yyy",ji),G("yyyy",ji),G("yo",y1),we(["y","yy","yyy","yyyy"],dt),we(["yo"],function(c,v,g,_){var k;g._locale._eraYearOrdinalRegex&&(k=c.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?v[dt]=g._locale.eraYearOrdinalParse(c,k):v[dt]=parseInt(c,10)});function s1(c,v){var g,_,k,$=this._eras||Sr("en")._eras;for(g=0,_=$.length;g<_;++g){switch(typeof $[g].since){case"string":k=a($[g].since).startOf("day"),$[g].since=k.valueOf();break}switch(typeof $[g].until){case"undefined":$[g].until=1/0;break;case"string":k=a($[g].until).startOf("day").valueOf(),$[g].until=k.valueOf();break}}return $}function o1(c,v,g){var _,k,$=this.eras(),C,Q,oe;for(c=c.toUpperCase(),_=0,k=$.length;_<k;++_)if(C=$[_].name.toUpperCase(),Q=$[_].abbr.toUpperCase(),oe=$[_].narrow.toUpperCase(),g)switch(v){case"N":case"NN":case"NNN":if(Q===c)return $[_];break;case"NNNN":if(C===c)return $[_];break;case"NNNNN":if(oe===c)return $[_];break}else if([C,Q,oe].indexOf(c)>=0)return $[_]}function l1(c,v){var g=c.since<=c.until?1:-1;return v===void 0?a(c.since).year():a(c.since).year()+(v-c.offset)*g}function d1(){var c,v,g,_=this.localeData().eras();for(c=0,v=_.length;c<v;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].name;return""}function u1(){var c,v,g,_=this.localeData().eras();for(c=0,v=_.length;c<v;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].narrow;return""}function c1(){var c,v,g,_=this.localeData().eras();for(c=0,v=_.length;c<v;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].abbr;return""}function h1(){var c,v,g,_,k=this.localeData().eras();for(c=0,v=k.length;c<v;++c)if(g=k[c].since<=k[c].until?1:-1,_=this.clone().startOf("day").valueOf(),k[c].since<=_&&_<=k[c].until||k[c].until<=_&&_<=k[c].since)return(this.year()-a(k[c].since).year())*g+k[c].offset;return this.year()}function f1(c){return l(this,"_erasNameRegex")||sl.call(this),c?this._erasNameRegex:this._erasRegex}function v1(c){return l(this,"_erasAbbrRegex")||sl.call(this),c?this._erasAbbrRegex:this._erasRegex}function p1(c){return l(this,"_erasNarrowRegex")||sl.call(this),c?this._erasNarrowRegex:this._erasRegex}function al(c,v){return v.erasAbbrRegex(c)}function m1(c,v){return v.erasNameRegex(c)}function g1(c,v){return v.erasNarrowRegex(c)}function y1(c,v){return v._eraYearOrdinalRegex||ji}function sl(){var c=[],v=[],g=[],_=[],k,$,C=this.eras();for(k=0,$=C.length;k<$;++k)v.push(At(C[k].name)),c.push(At(C[k].abbr)),g.push(At(C[k].narrow)),_.push(At(C[k].name)),_.push(At(C[k].abbr)),_.push(At(C[k].narrow));this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+v.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}K(0,["gg",2],0,function(){return this.weekYear()%100}),K(0,["GG",2],0,function(){return this.isoWeekYear()%100});function cs(c,v){K(0,[c,c.length],0,v)}cs("gggg","weekYear"),cs("ggggg","weekYear"),cs("GGGG","isoWeekYear"),cs("GGGGG","isoWeekYear"),ot("weekYear","gg"),ot("isoWeekYear","GG"),lt("weekYear",1),lt("isoWeekYear",1),G("G",Ja),G("g",Ja),G("GG",Ce,Mt),G("gg",Ce,Mt),G("GGGG",Go,Wo),G("gggg",Go,Wo),G("GGGGG",Qa,Ka),G("ggggg",Qa,Ka),Hn(["gggg","ggggg","GGGG","GGGGG"],function(c,v,g,_){v[_.substr(0,2)]=le(c)}),Hn(["gg","GG"],function(c,v,g,_){v[_]=a.parseTwoDigitYear(c)});function _1(c){return ch.call(this,c,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function b1(c){return ch.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function w1(){return Er(this.year(),1,4)}function k1(){return Er(this.isoWeekYear(),1,4)}function x1(){var c=this.localeData()._week;return Er(this.year(),c.dow,c.doy)}function E1(){var c=this.localeData()._week;return Er(this.weekYear(),c.dow,c.doy)}function ch(c,v,g,_,k){var $;return c==null?zn(this,_,k).year:($=Er(c,_,k),v>$&&(v=$),S1.call(this,c,v,g,_,k))}function S1(c,v,g,_,k){var $=Bc(c,v,g,_,k),C=Gn($.year,0,$.dayOfYear);return this.year(C.getUTCFullYear()),this.month(C.getUTCMonth()),this.date(C.getUTCDate()),this}K("Q",0,"Qo","quarter"),ot("quarter","Q"),lt("quarter",7),G("Q",Pc),we("Q",function(c,v){v[kr]=(le(c)-1)*3});function $1(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}K("D",["DD",2],"Do","date"),ot("date","D"),lt("date",9),G("D",Ce),G("DD",Ce,Mt),G("Do",function(c,v){return c?v._dayOfMonthOrdinalParse||v._ordinalParse:v._dayOfMonthOrdinalParseLenient}),we(["D","DD"],hr),we("Do",function(c,v){v[hr]=le(c.match(Ce)[0])});var hh=Yi("Date",!0);K("DDD",["DDDD",3],"DDDo","dayOfYear"),ot("dayOfYear","DDD"),lt("dayOfYear",4),G("DDD",Za),G("DDDD",Ic),we(["DDD","DDDD"],function(c,v,g){g._dayOfYear=le(c)});function D1(c){var v=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?v:this.add(c-v,"d")}K("m",["mm",2],0,"minute"),ot("minute","m"),lt("minute",14),G("m",Ce),G("mm",Ce,Mt),we(["m","mm"],Qt);var T1=Yi("Minutes",!1);K("s",["ss",2],0,"second"),ot("second","s"),lt("second",15),G("s",Ce),G("ss",Ce,Mt),we(["s","ss"],xr);var N1=Yi("Seconds",!1);K("S",0,0,function(){return~~(this.millisecond()/100)}),K(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),K(0,["SSS",3],0,"millisecond"),K(0,["SSSS",4],0,function(){return this.millisecond()*10}),K(0,["SSSSS",5],0,function(){return this.millisecond()*100}),K(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),K(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),K(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),K(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ot("millisecond","ms"),lt("millisecond",16),G("S",Za,Pc),G("SS",Za,Mt),G("SSS",Za,Ic);var zr,fh;for(zr="SSSS";zr.length<=9;zr+="S")G(zr,ji);function C1(c,v){v[ui]=le(("0."+c)*1e3)}for(zr="S";zr.length<=9;zr+="S")we(zr,C1);fh=Yi("Milliseconds",!1),K("z",0,0,"zoneAbbr"),K("zz",0,0,"zoneName");function O1(){return this._isUTC?"UTC":""}function P1(){return this._isUTC?"Coordinated Universal Time":""}var L=V.prototype;L.add=Ew,L.calendar=Ow,L.clone=Pw,L.diff=Fw,L.endOf=qw,L.format=Hw,L.from=Ww,L.fromNow=Gw,L.to=zw,L.toNow=Uw,L.get=Mb,L.invalidAt=n1,L.isAfter=Iw,L.isBefore=Mw,L.isBetween=Aw,L.isSame=Vw,L.isSameOrAfter=Rw,L.isSameOrBefore=Lw,L.isValid=r1,L.lang=sh,L.locale=ah,L.localeData=oh,L.max=rw,L.min=tw,L.parsingFlags=i1,L.set=Ab,L.startOf=Xw,L.subtract=Sw,L.toArray=Jw,L.toObject=e1,L.toDate=Qw,L.toISOString=jw,L.inspect=Bw,typeof Symbol<"u"&&Symbol.for!=null&&(L[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),L.toJSON=t1,L.toString=Yw,L.unix=Zw,L.valueOf=Kw,L.creationData=a1,L.eraName=d1,L.eraNarrow=u1,L.eraAbbr=c1,L.eraYear=h1,L.year=jc,L.isLeapYear=e0,L.weekYear=_1,L.isoWeekYear=b1,L.quarter=L.quarters=$1,L.month=Fc,L.daysInMonth=Zb,L.week=L.weeks=s0,L.isoWeek=L.isoWeeks=o0,L.weeksInYear=x1,L.weeksInWeekYear=E1,L.isoWeeksInYear=w1,L.isoWeeksInISOWeekYear=k1,L.date=hh,L.day=L.days=b0,L.weekday=w0,L.isoWeekday=k0,L.dayOfYear=D1,L.hour=L.hours=N0,L.minute=L.minutes=T1,L.second=L.seconds=N1,L.millisecond=L.milliseconds=fh,L.utcOffset=cw,L.utc=fw,L.local=vw,L.parseZone=pw,L.hasAlignedHourOffset=mw,L.isDST=gw,L.isLocal=_w,L.isUtcOffset=bw,L.isUtc=eh,L.isUTC=eh,L.zoneAbbr=O1,L.zoneName=P1,L.dates=M("dates accessor is deprecated. Use date instead.",hh),L.months=M("months accessor is deprecated. Use month instead",Fc),L.years=M("years accessor is deprecated. Use year instead",jc),L.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hw),L.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yw);function I1(c){return Oe(c*1e3)}function M1(){return Oe.apply(null,arguments).parseZone()}function vh(c){return c}var me=Je.prototype;me.calendar=_r,me.longDateFormat=Y,me.invalidDate=ie,me.ordinal=it,me.preparse=vh,me.postformat=vh,me.relativeTime=wr,me.pastFuture=cr,me.set=de,me.eras=s1,me.erasParse=o1,me.erasConvertYear=l1,me.erasAbbrRegex=v1,me.erasNameRegex=f1,me.erasNarrowRegex=p1,me.months=Ub,me.monthsShort=Xb,me.monthsParse=Kb,me.monthsRegex=Jb,me.monthsShortRegex=Qb,me.week=r0,me.firstDayOfYear=a0,me.firstDayOfWeek=n0,me.weekdays=p0,me.weekdaysMin=g0,me.weekdaysShort=m0,me.weekdaysParse=_0,me.weekdaysRegex=x0,me.weekdaysShortRegex=E0,me.weekdaysMinRegex=S0,me.isPM=D0,me.meridiem=C0;function hs(c,v,g,_){var k=Sr(),$=b().set(_,v);return k[g]($,c)}function ph(c,v,g){if(f(c)&&(v=c,c=void 0),c=c||"",v!=null)return hs(c,v,g,"month");var _,k=[];for(_=0;_<12;_++)k[_]=hs(c,_,g,"month");return k}function ol(c,v,g,_){typeof c=="boolean"?(f(v)&&(g=v,v=void 0),v=v||""):(v=c,g=v,c=!1,f(v)&&(g=v,v=void 0),v=v||"");var k=Sr(),$=c?k._week.dow:0,C,Q=[];if(g!=null)return hs(v,(g+$)%7,_,"day");for(C=0;C<7;C++)Q[C]=hs(v,(C+$)%7,_,"day");return Q}function A1(c,v){return ph(c,v,"months")}function V1(c,v){return ph(c,v,"monthsShort")}function R1(c,v,g){return ol(c,v,g,"weekdays")}function L1(c,v,g){return ol(c,v,g,"weekdaysShort")}function F1(c,v,g){return ol(c,v,g,"weekdaysMin")}Gr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var v=c%10,g=le(c%100/10)===1?"th":v===1?"st":v===2?"nd":v===3?"rd":"th";return c+g}}),a.lang=M("moment.lang is deprecated. Use moment.locale instead.",Gr),a.langData=M("moment.langData is deprecated. Use moment.localeData instead.",Sr);var $r=Math.abs;function Y1(){var c=this._data;return this._milliseconds=$r(this._milliseconds),this._days=$r(this._days),this._months=$r(this._months),c.milliseconds=$r(c.milliseconds),c.seconds=$r(c.seconds),c.minutes=$r(c.minutes),c.hours=$r(c.hours),c.months=$r(c.months),c.years=$r(c.years),this}function mh(c,v,g,_){var k=Jt(v,g);return c._milliseconds+=_*k._milliseconds,c._days+=_*k._days,c._months+=_*k._months,c._bubble()}function j1(c,v){return mh(this,c,v,1)}function B1(c,v){return mh(this,c,v,-1)}function gh(c){return c<0?Math.floor(c):Math.ceil(c)}function H1(){var c=this._milliseconds,v=this._days,g=this._months,_=this._data,k,$,C,Q,oe;return c>=0&&v>=0&&g>=0||c<=0&&v<=0&&g<=0||(c+=gh(ll(g)+v)*864e5,v=0,g=0),_.milliseconds=c%1e3,k=Gt(c/1e3),_.seconds=k%60,$=Gt(k/60),_.minutes=$%60,C=Gt($/60),_.hours=C%24,v+=Gt(C/24),oe=Gt(yh(v)),g+=oe,v-=gh(ll(oe)),Q=Gt(g/12),g%=12,_.days=v,_.months=g,_.years=Q,this}function yh(c){return c*4800/146097}function ll(c){return c*146097/4800}function W1(c){if(!this.isValid())return NaN;var v,g,_=this._milliseconds;if(c=Wt(c),c==="month"||c==="quarter"||c==="year")switch(v=this._days+_/864e5,g=this._months+yh(v),c){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(v=this._days+Math.round(ll(this._months)),c){case"week":return v/7+_/6048e5;case"day":return v+_/864e5;case"hour":return v*24+_/36e5;case"minute":return v*1440+_/6e4;case"second":return v*86400+_/1e3;case"millisecond":return Math.floor(v*864e5)+_;default:throw new Error("Unknown unit "+c)}}function G1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+le(this._months/12)*31536e6:NaN}function Dr(c){return function(){return this.as(c)}}var z1=Dr("ms"),U1=Dr("s"),X1=Dr("m"),q1=Dr("h"),K1=Dr("d"),Z1=Dr("w"),Q1=Dr("M"),J1=Dr("Q"),ek=Dr("y");function tk(){return Jt(this)}function rk(c){return c=Wt(c),this.isValid()?this[c+"s"]():NaN}function hi(c){return function(){return this.isValid()?this._data[c]:NaN}}var ik=hi("milliseconds"),nk=hi("seconds"),ak=hi("minutes"),sk=hi("hours"),ok=hi("days"),lk=hi("months"),dk=hi("years");function uk(){return Gt(this.days()/7)}var Tr=Math.round,Gi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ck(c,v,g,_,k){return k.relativeTime(v||1,!!g,c,_)}function hk(c,v,g,_){var k=Jt(c).abs(),$=Tr(k.as("s")),C=Tr(k.as("m")),Q=Tr(k.as("h")),oe=Tr(k.as("d")),ke=Tr(k.as("M")),ft=Tr(k.as("w")),Nr=Tr(k.as("y")),Ur=$<=g.ss&&["s",$]||$<g.s&&["ss",$]||C<=1&&["m"]||C<g.m&&["mm",C]||Q<=1&&["h"]||Q<g.h&&["hh",Q]||oe<=1&&["d"]||oe<g.d&&["dd",oe];return g.w!=null&&(Ur=Ur||ft<=1&&["w"]||ft<g.w&&["ww",ft]),Ur=Ur||ke<=1&&["M"]||ke<g.M&&["MM",ke]||Nr<=1&&["y"]||["yy",Nr],Ur[2]=v,Ur[3]=+c>0,Ur[4]=_,ck.apply(null,Ur)}function fk(c){return c===void 0?Tr:typeof c=="function"?(Tr=c,!0):!1}function vk(c,v){return Gi[c]===void 0?!1:v===void 0?Gi[c]:(Gi[c]=v,c==="s"&&(Gi.ss=v-1),!0)}function pk(c,v){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=Gi,k,$;return typeof c=="object"&&(v=c,c=!1),typeof c=="boolean"&&(g=c),typeof v=="object"&&(_=Object.assign({},Gi,v),v.s!=null&&v.ss==null&&(_.ss=v.s-1)),k=this.localeData(),$=hk(this,!g,_,k),g&&($=k.pastFuture(+this,$)),k.postformat($)}var dl=Math.abs;function zi(c){return(c>0)-(c<0)||+c}function fs(){if(!this.isValid())return this.localeData().invalidDate();var c=dl(this._milliseconds)/1e3,v=dl(this._days),g=dl(this._months),_,k,$,C,Q=this.asSeconds(),oe,ke,ft,Nr;return Q?(_=Gt(c/60),k=Gt(_/60),c%=60,_%=60,$=Gt(g/12),g%=12,C=c?c.toFixed(3).replace(/\.?0+$/,""):"",oe=Q<0?"-":"",ke=zi(this._months)!==zi(Q)?"-":"",ft=zi(this._days)!==zi(Q)?"-":"",Nr=zi(this._milliseconds)!==zi(Q)?"-":"",oe+"P"+($?ke+$+"Y":"")+(g?ke+g+"M":"")+(v?ft+v+"D":"")+(k||_||c?"T":"")+(k?Nr+k+"H":"")+(_?Nr+_+"M":"")+(c?Nr+C+"S":"")):"P0D"}var he=ss.prototype;he.isValid=ow,he.abs=Y1,he.add=j1,he.subtract=B1,he.as=W1,he.asMilliseconds=z1,he.asSeconds=U1,he.asMinutes=X1,he.asHours=q1,he.asDays=K1,he.asWeeks=Z1,he.asMonths=Q1,he.asQuarters=J1,he.asYears=ek,he.valueOf=G1,he._bubble=H1,he.clone=tk,he.get=rk,he.milliseconds=ik,he.seconds=nk,he.minutes=ak,he.hours=sk,he.days=ok,he.weeks=uk,he.months=lk,he.years=dk,he.humanize=pk,he.toISOString=fs,he.toString=fs,he.toJSON=fs,he.locale=ah,he.localeData=oh,he.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",fs),he.lang=sh,K("X",0,0,"unix"),K("x",0,0,"valueOf"),G("x",Ja),G("X",Rb),we("X",function(c,v,g){g._d=new Date(parseFloat(c)*1e3)}),we("x",function(c,v,g){g._d=new Date(le(c))});//! moment.js
|
29
|
+
return a.version="2.29.4",n(Oe),a.fn=L,a.min=iw,a.max=nw,a.now=aw,a.utc=b,a.unix=I1,a.months=A1,a.isDate=p,a.locale=Gr,a.invalid=T,a.duration=Jt,a.isMoment=N,a.weekdays=R1,a.parseZone=M1,a.localeData=Sr,a.isDuration=os,a.monthsShort=V1,a.weekdaysMin=F1,a.defineLocale=Ko,a.updateLocale=M0,a.locales=A0,a.weekdaysShort=L1,a.normalizeUnits=Wt,a.relativeTimeRounding=fk,a.relativeTimeThreshold=vk,a.calendarFormat=Cw,a.prototype=L,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a})}(ul)),ul.exports}(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
30
|
+
function a(s,o,l,d){var u={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return o?u[l][0]:u[l][1]}var n=t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
31
|
+
var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,l=t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(d,u){return d?/-MMM-/.test(u)?n[d.month()]:a[d.month()]:a},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return l})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
32
|
+
var a=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,s=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],l=t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:a,monthsShortStrictRegex:n,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(d,u){switch(u){case"D":return d+(d===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return d+(d===1?"er":"e");case"w":case"W":return d+(d===1?"re":"e")}},week:{dow:1,doy:4}});return l})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
33
|
+
var a=t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
34
|
+
var a=t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(n,s){return s[1]==="元"?1:parseInt(s[1]||n,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(n){return n==="午後"},meridiem:function(n,s,o){return n<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(n){return n.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(n){return this.week()!==n.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(n,s){switch(s){case"y":return n===1?"元年":n+"年";case"d":case"D":case"DDD":return n+"日";default:return n}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return a})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
35
|
+
var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,l=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(d,u){return d?/-MMM-/.test(u)?n[d.month()]:a[d.month()]:a},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(d){return d+(d===1||d===8||d>=20?"ste":"de")},week:{dow:1,doy:4}});return l})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
36
|
+
var a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(u){return u%10<5&&u%10>1&&~~(u/10)%10!==1}function l(u,f,p){var m=u+" ";switch(p){case"ss":return m+(o(u)?"sekundy":"sekund");case"m":return f?"minuta":"minutę";case"mm":return m+(o(u)?"minuty":"minut");case"h":return f?"godzina":"godzinę";case"hh":return m+(o(u)?"godziny":"godzin");case"ww":return m+(o(u)?"tygodnie":"tygodni");case"MM":return m+(o(u)?"miesiące":"miesięcy");case"yy":return m+(o(u)?"lata":"lat")}}var d=t.defineLocale("pl",{months:function(u,f){return u?/D MMMM/.test(f)?n[u.month()]:a[u.month()]:a},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:l,m:l,mm:l,h:l,hh:l,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:l,M:"miesiąc",MM:l,y:"rok",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return d})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
37
|
+
function a(l,d){var u=l.split("_");return d%10===1&&d%100!==11?u[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?u[1]:u[2]}function n(l,d,u){var f={ss:d?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:d?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return u==="m"?d?"минута":"минуту":l+" "+a(f[u],+l)}var s=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],o=t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(l){if(l.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(l){if(l.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(l){return/^(дня|вечера)$/.test(l)},meridiem:function(l,d,u){return l<4?"ночи":l<12?"утра":l<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(l,d){switch(d){case"M":case"d":case"DDD":return l+"-й";case"D":return l+"-го";case"w":case"W":return l+"-я";default:return l}},week:{dow:1,doy:4}});return o})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
38
|
+
function a(d,u){var f=d.split("_");return u%10===1&&u%100!==11?f[0]:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?f[1]:f[2]}function n(d,u,f){var p={ss:u?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:u?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:u?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return f==="m"?u?"хвилина":"хвилину":f==="h"?u?"година":"годину":d+" "+a(p[f],+d)}function s(d,u){var f={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},p;return d===!0?f.nominative.slice(1,7).concat(f.nominative.slice(0,1)):d?(p=/(\[[ВвУу]\]) ?dddd/.test(u)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(u)?"genitive":"nominative",f[p][d.day()]):f.nominative}function o(d){return function(){return d+"о"+(this.hours()===11?"б":"")+"] LT"}}var l=t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:s,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(d){return/^(дня|вечора)$/.test(d)},meridiem:function(d,u,f){return d<4?"ночі":d<12?"ранку":d<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(d,u){switch(u){case"M":case"d":case"DDD":case"w":case"W":return d+"-й";case"D":return d+"-го";default:return d}},week:{dow:1,doy:7}});return l})})();var ve=function(e){try{return!!e()}catch{return!0}},mk=ve,ka=!mk(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),nm=ka,am=Function.prototype,Pd=am.call,gk=nm&&am.bind.bind(Pd,Pd),ge=nm?gk:function(e){return function(){return Pd.apply(e,arguments)}},yk=Math.ceil,_k=Math.floor,bk=Math.trunc||function(r){var t=+r;return(t>0?_k:yk)(t)},wk=bk,xa=function(e){var r=+e;return r!==r||r===0?0:wk(r)},vs=function(e){return e&&e.Math===Math&&e},Ie=vs(typeof globalThis=="object"&&globalThis)||vs(typeof window=="object"&&window)||vs(typeof self=="object"&&self)||vs(typeof jt=="object"&&jt)||function(){return this}()||jt||Function("return this")(),sm={exports:{}},kk=!0,bh=Ie,xk=Object.defineProperty,Ek=function(e,r){try{xk(bh,e,{value:r,configurable:!0,writable:!0})}catch{bh[e]=r}return r},Sk=Ie,$k=Ek,wh="__core-js_shared__",Dk=Sk[wh]||$k(wh,{}),Eu=Dk,kh=Eu;(sm.exports=function(e,r){return kh[e]||(kh[e]=r!==void 0?r:{})})("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 xn=sm.exports,En=function(e){return e==null},Tk=En,Nk=TypeError,Sn=function(e){if(Tk(e))throw new Nk("Can't call method on "+e);return e},Ck=Sn,Ok=Object,_t=function(e){return Ok(Ck(e))},Pk=ge,Ik=_t,Mk=Pk({}.hasOwnProperty),qe=Object.hasOwn||function(r,t){return Mk(Ik(r),t)},Ak=ge,Vk=0,Rk=Math.random(),Lk=Ak(1 .toString),mo=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Lk(++Vk+Rk,36)},ii=typeof navigator<"u"&&String(navigator.userAgent)||"",om=Ie,cl=ii,xh=om.process,Eh=om.Deno,Sh=xh&&xh.versions||Eh&&Eh.version,$h=Sh&&Sh.v8,ir,Gs;$h&&(ir=$h.split("."),Gs=ir[0]>0&&ir[0]<4?1:+(ir[0]+ir[1]));!Gs&&cl&&(ir=cl.match(/Edge\/(\d+)/),(!ir||ir[1]>=74)&&(ir=cl.match(/Chrome\/(\d+)/),ir&&(Gs=+ir[1])));var $n=Gs,Dh=$n,Fk=ve,Yk=Ie,jk=Yk.String,Dn=!!Object.getOwnPropertySymbols&&!Fk(function(){var e=Symbol("symbol detection");return!jk(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Dh&&Dh<41}),Bk=Dn,lm=Bk&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Hk=Ie,Wk=xn,Th=qe,Gk=mo,zk=Dn,Uk=lm,an=Hk.Symbol,hl=Wk("wks"),Xk=Uk?an.for||an:an&&an.withoutSetter||Gk,Me=function(e){return Th(hl,e)||(hl[e]=zk&&Th(an,e)?an[e]:Xk("Symbol."+e)),hl[e]},qk=Me,Kk=qk("toStringTag"),dm={};dm[Kk]="z";var Su=String(dm)==="[object z]",Id=typeof document=="object"&&document.all,Zk=typeof Id>"u"&&Id!==void 0,um={all:Id,IS_HTMLDDA:Zk},cm=um,Qk=cm.all,Be=cm.IS_HTMLDDA?function(e){return typeof e=="function"||e===Qk}:function(e){return typeof e=="function"},hm=ge,Jk=hm({}.toString),ex=hm("".slice),Lr=function(e){return ex(Jk(e),8,-1)},tx=Su,rx=Be,Ls=Lr,ix=Me,nx=ix("toStringTag"),ax=Object,sx=Ls(function(){return arguments}())==="Arguments",ox=function(e,r){try{return e[r]}catch{}},Fr=tx?Ls:function(e){var r,t,a;return e===void 0?"Undefined":e===null?"Null":typeof(t=ox(r=ax(e),nx))=="string"?t:sx?Ls(r):(a=Ls(r))==="Object"&&rx(r.callee)?"Arguments":a},lx=Fr,dx=String,qt=function(e){if(lx(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return dx(e)},$u=ge,ux=xa,cx=qt,hx=Sn,fx=$u("".charAt),Nh=$u("".charCodeAt),vx=$u("".slice),px=function(e){return function(r,t){var a=cx(hx(r)),n=ux(t),s=a.length,o,l;return n<0||n>=s?e?"":void 0:(o=Nh(a,n),o<55296||o>56319||n+1===s||(l=Nh(a,n+1))<56320||l>57343?e?fx(a,n):o:e?vx(a,n,n+2):(o-55296<<10)+(l-56320)+65536)}},mx={charAt:px(!0)},gx=Ie,yx=Be,Ch=gx.WeakMap,_x=yx(Ch)&&/native code/.test(String(Ch)),Oh=Be,fm=um,bx=fm.all,tt=fm.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Oh(e)||e===bx}:function(e){return typeof e=="object"?e!==null:Oh(e)},wx=ve,Qe=!wx(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Nt={},kx=Ie,Ph=tt,Md=kx.document,xx=Ph(Md)&&Ph(Md.createElement),Du=function(e){return xx?Md.createElement(e):{}},Ex=Qe,Sx=ve,$x=Du,vm=!Ex&&!Sx(function(){return Object.defineProperty($x("div"),"a",{get:function(){return 7}}).a!==7}),Dx=Qe,Tx=ve,pm=Dx&&Tx(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Nx=tt,Cx=String,Ox=TypeError,Ht=function(e){if(Nx(e))return e;throw new Ox(Cx(e)+" is not an object")},Px=ka,ps=Function.prototype.call,rt=Px?ps.bind(ps):function(){return ps.apply(ps,arguments)},be={},fl=be,vl=Ie,Ix=Be,Ih=function(e){return Ix(e)?e:void 0},bt=function(e,r){return arguments.length<2?Ih(fl[e])||Ih(vl[e]):fl[e]&&fl[e][r]||vl[e]&&vl[e][r]},Mx=ge,$e=Mx({}.isPrototypeOf),Ax=bt,Vx=Be,Rx=$e,Lx=lm,Fx=Object,Ea=Lx?function(e){return typeof e=="symbol"}:function(e){var r=Ax("Symbol");return Vx(r)&&Rx(r.prototype,Fx(e))},Yx=String,Tn=function(e){try{return Yx(e)}catch{return"Object"}},jx=Be,Bx=Tn,Hx=TypeError,Ct=function(e){if(jx(e))return e;throw new Hx(Bx(e)+" is not a function")},Wx=Ct,Gx=En,Tu=function(e,r){var t=e[r];return Gx(t)?void 0:Wx(t)},pl=rt,ml=Be,gl=tt,zx=TypeError,Ux=function(e,r){var t,a;if(r==="string"&&ml(t=e.toString)&&!gl(a=pl(t,e))||ml(t=e.valueOf)&&!gl(a=pl(t,e))||r!=="string"&&ml(t=e.toString)&&!gl(a=pl(t,e)))return a;throw new zx("Can't convert object to primitive value")},Xx=rt,Mh=tt,Ah=Ea,qx=Tu,Kx=Ux,Zx=Me,Qx=TypeError,Jx=Zx("toPrimitive"),eE=function(e,r){if(!Mh(e)||Ah(e))return e;var t=qx(e,Jx),a;if(t){if(r===void 0&&(r="default"),a=Xx(t,e,r),!Mh(a)||Ah(a))return a;throw new Qx("Can't convert object to primitive value")}return r===void 0&&(r="number"),Kx(e,r)},tE=eE,rE=Ea,go=function(e){var r=tE(e,"string");return rE(r)?r:r+""},iE=Qe,nE=vm,aE=pm,ms=Ht,Vh=go,sE=TypeError,yl=Object.defineProperty,oE=Object.getOwnPropertyDescriptor,_l="enumerable",bl="configurable",wl="writable";Nt.f=iE?aE?function(r,t,a){if(ms(r),t=Vh(t),ms(a),typeof r=="function"&&t==="prototype"&&"value"in a&&wl in a&&!a[wl]){var n=oE(r,t);n&&n[wl]&&(r[t]=a.value,a={configurable:bl in a?a[bl]:n[bl],enumerable:_l in a?a[_l]:n[_l],writable:!1})}return yl(r,t,a)}:yl:function(r,t,a){if(ms(r),t=Vh(t),ms(a),nE)try{return yl(r,t,a)}catch{}if("get"in a||"set"in a)throw new sE("Accessors not supported");return"value"in a&&(r[t]=a.value),r};var Pi=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},lE=Qe,dE=Nt,uE=Pi,Yr=lE?function(e,r,t){return dE.f(e,r,uE(1,t))}:function(e,r,t){return e[r]=t,e},cE=xn,hE=mo,Rh=cE("keys"),yo=function(e){return Rh[e]||(Rh[e]=hE(e))},Sa={},fE=_x,mm=Ie,vE=tt,pE=Yr,kl=qe,xl=Eu,mE=yo,gE=Sa,Lh="Object already initialized",Ad=mm.TypeError,yE=mm.WeakMap,zs,ca,Us,_E=function(e){return Us(e)?ca(e):zs(e,{})},bE=function(e){return function(r){var t;if(!vE(r)||(t=ca(r)).type!==e)throw new Ad("Incompatible receiver, "+e+" required");return t}};if(fE||xl.state){var fr=xl.state||(xl.state=new yE);fr.get=fr.get,fr.has=fr.has,fr.set=fr.set,zs=function(e,r){if(fr.has(e))throw new Ad(Lh);return r.facade=e,fr.set(e,r),r},ca=function(e){return fr.get(e)||{}},Us=function(e){return fr.has(e)}}else{var Ui=mE("state");gE[Ui]=!0,zs=function(e,r){if(kl(e,Ui))throw new Ad(Lh);return r.facade=e,pE(e,Ui,r),r},ca=function(e){return kl(e,Ui)?e[Ui]:{}},Us=function(e){return kl(e,Ui)}}var Nn={set:zs,get:ca,has:Us,enforce:_E,getterFor:bE},wE=ka,gm=Function.prototype,Fh=gm.apply,Yh=gm.call,Cn=typeof Reflect=="object"&&Reflect.apply||(wE?Yh.bind(Fh):function(){return Yh.apply(Fh,arguments)}),kE=Lr,xE=ge,Nu=function(e){if(kE(e)==="Function")return xE(e)},Ii={},$a={},ym={}.propertyIsEnumerable,_m=Object.getOwnPropertyDescriptor,EE=_m&&!ym.call({1:2},1);$a.f=EE?function(r){var t=_m(this,r);return!!t&&t.enumerable}:ym;var SE=ge,$E=ve,DE=Lr,El=Object,TE=SE("".split),_o=$E(function(){return!El("z").propertyIsEnumerable(0)})?function(e){return DE(e)==="String"?TE(e,""):El(e)}:El,NE=_o,CE=Sn,lr=function(e){return NE(CE(e))},OE=Qe,PE=rt,IE=$a,ME=Pi,AE=lr,VE=go,RE=qe,LE=vm,jh=Object.getOwnPropertyDescriptor;Ii.f=OE?jh:function(r,t){if(r=AE(r),t=VE(t),LE)try{return jh(r,t)}catch{}if(RE(r,t))return ME(!PE(IE.f,r,t),r[t])};var FE=ve,YE=Be,jE=/#|\.prototype\./,Da=function(e,r){var t=HE[BE(e)];return t===GE?!0:t===WE?!1:YE(r)?FE(r):!!r},BE=Da.normalize=function(e){return String(e).replace(jE,".").toLowerCase()},HE=Da.data={},WE=Da.NATIVE="N",GE=Da.POLYFILL="P",bm=Da,Bh=Nu,zE=Ct,UE=ka,XE=Bh(Bh.bind),ni=function(e,r){return zE(e),r===void 0?e:UE?XE(e,r):function(){return e.apply(r,arguments)}},gs=Ie,qE=Cn,KE=Nu,ZE=Be,QE=Ii.f,JE=bm,Xi=be,eS=ni,qi=Yr,Hh=qe,tS=function(e){var r=function(t,a,n){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,a)}return new e(t,a,n)}return qE(e,this,arguments)};return r.prototype=e.prototype,r},U=function(e,r){var t=e.target,a=e.global,n=e.stat,s=e.proto,o=a?gs:n?gs[t]:(gs[t]||{}).prototype,l=a?Xi:Xi[t]||qi(Xi,t,{})[t],d=l.prototype,u,f,p,m,y,b,E,w,S;for(m in r)u=JE(a?m:t+(n?".":"#")+m,e.forced),f=!u&&o&&Hh(o,m),b=l[m],f&&(e.dontCallGetSet?(S=QE(o,m),E=S&&S.value):E=o[m]),y=f&&E?E:r[m],!(f&&typeof b==typeof y)&&(e.bind&&f?w=eS(y,gs):e.wrap&&f?w=tS(y):s&&ZE(y)?w=KE(y):w=y,(e.sham||y&&y.sham||b&&b.sham)&&qi(w,"sham",!0),qi(l,m,w),s&&(p=t+"Prototype",Hh(Xi,p)||qi(Xi,p,{}),qi(Xi[p],m,y),e.real&&d&&(u||!d[m])&&qi(d,m,y)))},Vd=Qe,rS=qe,wm=Function.prototype,iS=Vd&&Object.getOwnPropertyDescriptor,km=rS(wm,"name"),nS=km&&(function(){}).name==="something";km&&(!Vd||Vd&&iS(wm,"name").configurable);var aS={PROPER:nS},bo={},sS=xa,oS=Math.max,lS=Math.min,Ta=function(e,r){var t=sS(e);return t<0?oS(t+r,0):lS(t,r)},dS=xa,uS=Math.min,cS=function(e){return e>0?uS(dS(e),9007199254740991):0},hS=cS,Ot=function(e){return hS(e.length)},fS=lr,vS=Ta,pS=Ot,Wh=function(e){return function(r,t,a){var n=fS(r),s=pS(n),o=vS(a,s),l;if(e&&t!==t){for(;s>o;)if(l=n[o++],l!==l)return!0}else for(;s>o;o++)if((e||o in n)&&n[o]===t)return e||o||0;return!e&&-1}},Cu={includes:Wh(!0),indexOf:Wh(!1)},mS=ge,Sl=qe,gS=lr,yS=Cu.indexOf,_S=Sa,Gh=mS([].push),xm=function(e,r){var t=gS(e),a=0,n=[],s;for(s in t)!Sl(_S,s)&&Sl(t,s)&&Gh(n,s);for(;r.length>a;)Sl(t,s=r[a++])&&(~yS(n,s)||Gh(n,s));return n},Ou=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bS=xm,wS=Ou,Na=Object.keys||function(r){return bS(r,wS)},kS=Qe,xS=pm,ES=Nt,SS=Ht,$S=lr,DS=Na;bo.f=kS&&!xS?Object.defineProperties:function(r,t){SS(r);for(var a=$S(t),n=DS(t),s=n.length,o=0,l;s>o;)ES.f(r,l=n[o++],a[l]);return r};var TS=bt,Em=TS("document","documentElement"),NS=Ht,CS=bo,zh=Ou,OS=Sa,PS=Em,IS=Du,MS=yo,Uh=">",Xh="<",Rd="prototype",Ld="script",Sm=MS("IE_PROTO"),$l=function(){},$m=function(e){return Xh+Ld+Uh+e+Xh+"/"+Ld+Uh},qh=function(e){e.write($m("")),e.close();var r=e.parentWindow.Object;return e=null,r},AS=function(){var e=IS("iframe"),r="java"+Ld+":",t;return e.style.display="none",PS.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write($m("document.F=Object")),t.close(),t.F},ys,Fs=function(){try{ys=new ActiveXObject("htmlfile")}catch{}Fs=typeof document<"u"?document.domain&&ys?qh(ys):AS():qh(ys);for(var e=zh.length;e--;)delete Fs[Rd][zh[e]];return Fs()};OS[Sm]=!0;var Mi=Object.create||function(r,t){var a;return r!==null?($l[Rd]=NS(r),a=new $l,$l[Rd]=null,a[Sm]=r):a=Fs(),t===void 0?a:CS.f(a,t)},VS=ve,Dm=!VS(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),RS=qe,LS=Be,FS=_t,YS=yo,jS=Dm,Kh=YS("IE_PROTO"),Fd=Object,BS=Fd.prototype,Ca=jS?Fd.getPrototypeOf:function(e){var r=FS(e);if(RS(r,Kh))return r[Kh];var t=r.constructor;return LS(t)&&r instanceof t?t.prototype:r instanceof Fd?BS:null},HS=Yr,On=function(e,r,t,a){return a&&a.enumerable?e[r]=t:HS(e,r,t),e},WS=ve,GS=Be,zS=tt,US=Mi,Zh=Ca,XS=On,qS=Me,Yd=qS("iterator"),Tm=!1,Cr,Dl,Tl;[].keys&&(Tl=[].keys(),"next"in Tl?(Dl=Zh(Zh(Tl)),Dl!==Object.prototype&&(Cr=Dl)):Tm=!0);var KS=!zS(Cr)||WS(function(){var e={};return Cr[Yd].call(e)!==e});KS?Cr={}:Cr=US(Cr);GS(Cr[Yd])||XS(Cr,Yd,function(){return this});var Nm={IteratorPrototype:Cr,BUGGY_SAFARI_ITERATORS:Tm},ZS=Su,QS=Fr,JS=ZS?{}.toString:function(){return"[object "+QS(this)+"]"},e$=Su,t$=Nt.f,r$=Yr,i$=qe,n$=JS,a$=Me,Qh=a$("toStringTag"),Ai=function(e,r,t,a){if(e){var n=t?e:e.prototype;i$(n,Qh)||t$(n,Qh,{configurable:!0,value:r}),a&&!e$&&r$(n,"toString",n$)}},Pn={},s$=Nm.IteratorPrototype,o$=Mi,l$=Pi,d$=Ai,u$=Pn,c$=function(){return this},h$=function(e,r,t,a){var n=r+" Iterator";return e.prototype=o$(s$,{next:l$(+!a,t)}),d$(e,n,!1,!0),u$[n]=c$,e},f$=ge,v$=Ct,p$=function(e,r,t){try{return f$(v$(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}},m$=Be,g$=String,y$=TypeError,_$=function(e){if(typeof e=="object"||m$(e))return e;throw new y$("Can't set "+g$(e)+" as a prototype")},b$=p$,w$=Ht,k$=_$,Cm=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=b$(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(n,s){return w$(n),k$(s),e?t(n,s):n.__proto__=s,n}}():void 0),x$=U,E$=rt,S$=aS,$$=h$,D$=Ca,T$=Ai,Jh=On,N$=Me,ef=Pn,C$=Nm,O$=S$.PROPER,_s=C$.BUGGY_SAFARI_ITERATORS,Nl=N$("iterator"),tf="keys",bs="values",rf="entries",P$=function(){return this},Pu=function(e,r,t,a,n,s,o){$$(t,r,a);var l=function(S){if(S===n&&m)return m;if(!_s&&S&&S in f)return f[S];switch(S){case tf:return function(){return new t(this,S)};case bs:return function(){return new t(this,S)};case rf:return function(){return new t(this,S)}}return function(){return new t(this)}},d=r+" Iterator",u=!1,f=e.prototype,p=f[Nl]||f["@@iterator"]||n&&f[n],m=!_s&&p||l(n),y=r==="Array"&&f.entries||p,b,E,w;if(y&&(b=D$(y.call(new e)),b!==Object.prototype&&b.next&&(T$(b,d,!0,!0),ef[d]=P$)),O$&&n===bs&&p&&p.name!==bs&&(u=!0,m=function(){return E$(p,this)}),n)if(E={values:l(bs),keys:s?m:l(tf),entries:l(rf)},o)for(w in E)(_s||u||!(w in f))&&Jh(f,w,E[w]);else x$({target:r,proto:!0,forced:_s||u},E);return o&&f[Nl]!==m&&Jh(f,Nl,m,{}),ef[r]=m,E},Iu=function(e,r){return{value:e,done:r}},I$=mx.charAt,M$=qt,Om=Nn,A$=Pu,nf=Iu,Pm="String Iterator",V$=Om.set,R$=Om.getterFor(Pm);A$(String,"String",function(e){V$(this,{type:Pm,string:M$(e),index:0})},function(){var r=R$(this),t=r.string,a=r.index,n;return a>=t.length?nf(void 0,!0):(n=I$(t,a),r.index+=n.length,nf(n,!1))});var L$=rt,af=Ht,F$=Tu,Im=function(e,r,t){var a,n;af(e);try{if(a=F$(e,"return"),!a){if(r==="throw")throw t;return t}a=L$(a,e)}catch(s){n=!0,a=s}if(r==="throw")throw t;if(n)throw a;return af(a),t},Y$=Ht,j$=Im,B$=function(e,r,t,a){try{return a?r(Y$(t)[0],t[1]):r(t)}catch(n){j$(e,"throw",n)}},H$=Me,W$=Pn,G$=H$("iterator"),z$=Array.prototype,Mm=function(e){return e!==void 0&&(W$.Array===e||z$[G$]===e)},U$=ge,X$=Be,jd=Eu,q$=U$(Function.toString);X$(jd.inspectSource)||(jd.inspectSource=function(e){return q$(e)});var Am=jd.inspectSource,K$=ge,Z$=ve,Vm=Be,Q$=Fr,J$=bt,eD=Am,Rm=function(){},tD=[],Lm=J$("Reflect","construct"),Mu=/^\s*(?:class|function)\b/,rD=K$(Mu.exec),iD=!Mu.test(Rm),Kn=function(r){if(!Vm(r))return!1;try{return Lm(Rm,tD,r),!0}catch{return!1}},Fm=function(r){if(!Vm(r))return!1;switch(Q$(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return iD||!!rD(Mu,eD(r))}catch{return!0}};Fm.sham=!0;var wo=!Lm||Z$(function(){var e;return Kn(Kn.call)||!Kn(Object)||!Kn(function(){e=!0})||e})?Fm:Kn,nD=go,aD=Nt,sD=Pi,In=function(e,r,t){var a=nD(r);a in e?aD.f(e,a,sD(0,t)):e[a]=t},oD=Fr,sf=Tu,lD=En,dD=Pn,uD=Me,cD=uD("iterator"),ko=function(e){if(!lD(e))return sf(e,cD)||sf(e,"@@iterator")||dD[oD(e)]},hD=rt,fD=Ct,vD=Ht,pD=Tn,mD=ko,gD=TypeError,Au=function(e,r){var t=arguments.length<2?mD(e):r;if(fD(t))return vD(hD(t,e));throw new gD(pD(e)+" is not iterable")},yD=ni,_D=rt,bD=_t,wD=B$,kD=Mm,xD=wo,ED=Ot,of=In,SD=Au,$D=ko,lf=Array,DD=function(r){var t=bD(r),a=xD(this),n=arguments.length,s=n>1?arguments[1]:void 0,o=s!==void 0;o&&(s=yD(s,n>2?arguments[2]:void 0));var l=$D(t),d=0,u,f,p,m,y,b;if(l&&!(this===lf&&kD(l)))for(m=SD(t,l),y=m.next,f=a?new this:[];!(p=_D(y,m)).done;d++)b=o?wD(m,s,[p.value,d],!0):p.value,of(f,d,b);else for(u=ED(t),f=a?new this(u):lf(u);u>d;d++)b=o?s(t[d],d):t[d],of(f,d,b);return f.length=d,f},TD=Me,Ym=TD("iterator"),jm=!1;try{var ND=0,df={next:function(){return{done:!!ND++}},return:function(){jm=!0}};df[Ym]=function(){return this},Array.from(df,function(){throw 2})}catch{}var Bm=function(e,r){try{if(!r&&!jm)return!1}catch{return!1}var t=!1;try{var a={};a[Ym]=function(){return{next:function(){return{done:t=!0}}}},e(a)}catch{}return t},CD=U,OD=DD,PD=Bm,ID=!PD(function(e){Array.from(e)});CD({target:"Array",stat:!0,forced:ID},{from:OD});var MD=be,AD=MD.Array.from,VD=AD,Hm=VD,RD=Hm,ai=z(RD),LD=lr,uf=Pn,Wm=Nn;Nt.f;var FD=Pu,ws=Iu,Gm="Array Iterator",YD=Wm.set,jD=Wm.getterFor(Gm);FD(Array,"Array",function(e,r){YD(this,{type:Gm,target:LD(e),index:0,kind:r})},function(){var e=jD(this),r=e.target,t=e.kind,a=e.index++;if(!r||a>=r.length)return e.target=void 0,ws(void 0,!0);switch(t){case"keys":return ws(a,!1);case"values":return ws(r[a],!1)}return ws([a,r[a]],!1)},"values");uf.Arguments=uf.Array;var BD=ko,HD=BD,WD={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},GD=WD,zD=Ie,UD=Fr,XD=Yr,cf=Pn,qD=Me,hf=qD("toStringTag");for(var Cl in GD){var ff=zD[Cl],Ol=ff&&ff.prototype;Ol&&UD(Ol)!==hf&&XD(Ol,hf,Cl),cf[Cl]=cf.Array}var KD=HD,ZD=KD,QD=ZD,JD=QD,eT=JD,tT=eT,zm=tT,Um=z(zm),rT=zm,si=z(rT);function ue(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Xm={exports:{}},iT=U,nT=Qe,vf=Nt.f;iT({target:"Object",stat:!0,forced:Object.defineProperty!==vf,sham:!nT},{defineProperty:vf});var aT=be,qm=aT.Object,sT=Xm.exports=function(r,t,a){return qm.defineProperty(r,t,a)};qm.defineProperty.sham&&(sT.sham=!0);var oT=Xm.exports,lT=oT,Km=lT,dT=Km,uT=dT,cT=uT,hT=cT,Zm=hT,xo=z(Zm),fT=Lr,oi=Array.isArray||function(r){return fT(r)==="Array"},vT=TypeError,pT=9007199254740991,Eo=function(e){if(e>pT)throw vT("Maximum allowed index exceeded");return e},pf=oi,mT=wo,gT=tt,yT=Me,_T=yT("species"),mf=Array,bT=function(e){var r;return pf(e)&&(r=e.constructor,mT(r)&&(r===mf||pf(r.prototype))?r=void 0:gT(r)&&(r=r[_T],r===null&&(r=void 0))),r===void 0?mf:r},wT=bT,So=function(e,r){return new(wT(e))(r===0?0:r)},kT=ve,xT=Me,ET=$n,ST=xT("species"),Oa=function(e){return ET>=51||!kT(function(){var r=[],t=r.constructor={};return t[ST]=function(){return{foo:1}},r[e](Boolean).foo!==1})},$T=U,DT=ve,TT=oi,NT=tt,CT=_t,OT=Ot,gf=Eo,yf=In,PT=So,IT=Oa,MT=Me,AT=$n,Qm=MT("isConcatSpreadable"),VT=AT>=51||!DT(function(){var e=[];return e[Qm]=!1,e.concat()[0]!==e}),RT=function(e){if(!NT(e))return!1;var r=e[Qm];return r!==void 0?!!r:TT(e)},LT=!VT||!IT("concat");$T({target:"Array",proto:!0,forced:LT},{concat:function(r){var t=CT(this),a=PT(t,0),n=0,s,o,l,d,u;for(s=-1,l=arguments.length;s<l;s++)if(u=s===-1?t:arguments[s],RT(u))for(d=OT(u),gf(n+d),o=0;o<d;o++,n++)o in u&&yf(a,n,u[o]);else gf(n+1),yf(a,n++,u);return a.length=n,a}});var Pa={},FT=xm,YT=Ou,jT=YT.concat("length","prototype");Pa.f=Object.getOwnPropertyNames||function(r){return FT(r,jT)};var Vu={},_f=Ta,BT=Ot,HT=In,WT=Array,GT=Math.max,Jm=function(e,r,t){for(var a=BT(e),n=_f(r,a),s=_f(t===void 0?a:t,a),o=WT(GT(s-n,0)),l=0;n<s;n++,l++)HT(o,l,e[n]);return o.length=l,o},zT=Lr,UT=lr,eg=Pa.f,XT=Jm,tg=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qT=function(e){try{return eg(e)}catch{return XT(tg)}};Vu.f=function(r){return tg&&zT(r)==="Window"?qT(r):eg(UT(r))};var Ia={};Ia.f=Object.getOwnPropertySymbols;var KT=Nt,Ru=function(e,r,t){return KT.f(e,r,t)},Ma={},ZT=Me;Ma.f=ZT;var bf=be,QT=qe,JT=Ma,eN=Nt.f,He=function(e){var r=bf.Symbol||(bf.Symbol={});QT(r,e)||eN(r,e,{value:JT.f(e)})},tN=rt,rN=bt,iN=Me,nN=On,rg=function(){var e=rN("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,a=iN("toPrimitive");r&&!r[a]&&nN(r,a,function(n){return tN(t,this)},{})},aN=ni,sN=ge,oN=_o,lN=_t,dN=Ot,uN=So,wf=sN([].push),fi=function(e){var r=e===1,t=e===2,a=e===3,n=e===4,s=e===6,o=e===7,l=e===5||s;return function(d,u,f,p){for(var m=lN(d),y=oN(m),b=aN(u,f),E=dN(y),w=0,S=p||uN,D=r?S(d,E):t||o?S(d,0):void 0,T,P;E>w;w++)if((l||w in y)&&(T=y[w],P=b(T,w,m),e))if(r)D[w]=P;else if(P)switch(e){case 3:return!0;case 5:return T;case 6:return w;case 2:wf(D,T)}else switch(e){case 4:return!1;case 7:wf(D,T)}return s?-1:a||n?n:D}},jr={forEach:fi(0),map:fi(1),filter:fi(2),some:fi(3),every:fi(4),find:fi(5),findIndex:fi(6)},$o=U,Do=Ie,Lu=rt,cN=ge,vn=Qe,pn=Dn,hN=ve,et=qe,fN=$e,Bd=Ht,To=lr,Fu=go,vN=qt,Hd=Pi,ha=Mi,ig=Na,pN=Pa,ng=Vu,mN=Ia,ag=Ii,sg=Nt,gN=bo,og=$a,kf=On,yN=Ru,Yu=xn,_N=yo,lg=Sa,xf=mo,bN=Me,wN=Ma,kN=He,xN=rg,EN=Ai,dg=Nn,No=jr.forEach,$t=_N("hidden"),Co="Symbol",fa="prototype",SN=dg.set,Ef=dg.getterFor(Co),nr=Object[fa],_i=Do.Symbol,ta=_i&&_i[fa],$N=Do.RangeError,DN=Do.TypeError,Pl=Do.QObject,ug=ag.f,bi=sg.f,cg=ng.f,TN=og.f,hg=cN([].push),Mr=Yu("symbols"),Aa=Yu("op-symbols"),NN=Yu("wks"),Wd=!Pl||!Pl[fa]||!Pl[fa].findChild,fg=function(e,r,t){var a=ug(nr,r);a&&delete nr[r],bi(e,r,t),a&&e!==nr&&bi(nr,r,a)},Gd=vn&&hN(function(){return ha(bi({},"a",{get:function(){return bi(this,"a",{value:7}).a}})).a!==7})?fg:bi,Il=function(e,r){var t=Mr[e]=ha(ta);return SN(t,{type:Co,tag:e,description:r}),vn||(t.description=r),t},Oo=function(r,t,a){r===nr&&Oo(Aa,t,a),Bd(r);var n=Fu(t);return Bd(a),et(Mr,n)?(a.enumerable?(et(r,$t)&&r[$t][n]&&(r[$t][n]=!1),a=ha(a,{enumerable:Hd(0,!1)})):(et(r,$t)||bi(r,$t,Hd(1,{})),r[$t][n]=!0),Gd(r,n,a)):bi(r,n,a)},ju=function(r,t){Bd(r);var a=To(t),n=ig(a).concat(gg(a));return No(n,function(s){(!vn||Lu(vg,a,s))&&Oo(r,s,a[s])}),r},CN=function(r,t){return t===void 0?ha(r):ju(ha(r),t)},vg=function(r){var t=Fu(r),a=Lu(TN,this,t);return this===nr&&et(Mr,t)&&!et(Aa,t)?!1:a||!et(this,t)||!et(Mr,t)||et(this,$t)&&this[$t][t]?a:!0},pg=function(r,t){var a=To(r),n=Fu(t);if(!(a===nr&&et(Mr,n)&&!et(Aa,n))){var s=ug(a,n);return s&&et(Mr,n)&&!(et(a,$t)&&a[$t][n])&&(s.enumerable=!0),s}},mg=function(r){var t=cg(To(r)),a=[];return No(t,function(n){!et(Mr,n)&&!et(lg,n)&&hg(a,n)}),a},gg=function(e){var r=e===nr,t=cg(r?Aa:To(e)),a=[];return No(t,function(n){et(Mr,n)&&(!r||et(nr,n))&&hg(a,Mr[n])}),a};pn||(_i=function(){if(fN(ta,this))throw new DN("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:vN(arguments[0]),t=xf(r),a=function(n){this===nr&&Lu(a,Aa,n),et(this,$t)&&et(this[$t],t)&&(this[$t][t]=!1);var s=Hd(1,n);try{Gd(this,t,s)}catch(o){if(!(o instanceof $N))throw o;fg(this,t,s)}};return vn&&Wd&&Gd(nr,t,{configurable:!0,set:a}),Il(t,r)},ta=_i[fa],kf(ta,"toString",function(){return Ef(this).tag}),kf(_i,"withoutSetter",function(e){return Il(xf(e),e)}),og.f=vg,sg.f=Oo,gN.f=ju,ag.f=pg,pN.f=ng.f=mg,mN.f=gg,wN.f=function(e){return Il(bN(e),e)},vn&&yN(ta,"description",{configurable:!0,get:function(){return Ef(this).description}}));$o({global:!0,wrap:!0,forced:!pn,sham:!pn},{Symbol:_i});No(ig(NN),function(e){kN(e)});$o({target:Co,stat:!0,forced:!pn},{useSetter:function(){Wd=!0},useSimple:function(){Wd=!1}});$o({target:"Object",stat:!0,forced:!pn,sham:!vn},{create:CN,defineProperty:Oo,defineProperties:ju,getOwnPropertyDescriptor:pg});$o({target:"Object",stat:!0,forced:!pn},{getOwnPropertyNames:mg});xN();EN(_i,Co);lg[$t]=!0;var ON=Dn,yg=ON&&!!Symbol.for&&!!Symbol.keyFor,PN=U,IN=bt,MN=qe,AN=qt,_g=xn,VN=yg,Ml=_g("string-to-symbol-registry"),RN=_g("symbol-to-string-registry");PN({target:"Symbol",stat:!0,forced:!VN},{for:function(e){var r=AN(e);if(MN(Ml,r))return Ml[r];var t=IN("Symbol")(r);return Ml[r]=t,RN[t]=r,t}});var LN=U,FN=qe,YN=Ea,jN=Tn,BN=xn,HN=yg,Sf=BN("symbol-to-string-registry");LN({target:"Symbol",stat:!0,forced:!HN},{keyFor:function(r){if(!YN(r))throw new TypeError(jN(r)+" is not a symbol");if(FN(Sf,r))return Sf[r]}});var WN=ge,Va=WN([].slice),GN=ge,$f=oi,zN=Be,Df=Lr,UN=qt,Tf=GN([].push),XN=function(e){if(zN(e))return e;if($f(e)){for(var r=e.length,t=[],a=0;a<r;a++){var n=e[a];typeof n=="string"?Tf(t,n):(typeof n=="number"||Df(n)==="Number"||Df(n)==="String")&&Tf(t,UN(n))}var s=t.length,o=!0;return function(l,d){if(o)return o=!1,d;if($f(this))return d;for(var u=0;u<s;u++)if(t[u]===l)return d}}},qN=U,bg=bt,wg=Cn,KN=rt,Ra=ge,kg=ve,Nf=Be,Cf=Ea,xg=Va,ZN=XN,QN=Dn,JN=String,Qr=bg("JSON","stringify"),ks=Ra(/./.exec),Of=Ra("".charAt),eC=Ra("".charCodeAt),tC=Ra("".replace),rC=Ra(1 .toString),iC=/[\uD800-\uDFFF]/g,Pf=/^[\uD800-\uDBFF]$/,If=/^[\uDC00-\uDFFF]$/,Mf=!QN||kg(function(){var e=bg("Symbol")("stringify detection");return Qr([e])!=="[null]"||Qr({a:e})!=="{}"||Qr(Object(e))!=="{}"}),Af=kg(function(){return Qr("\uDF06\uD834")!=='"\\udf06\\ud834"'||Qr("\uDEAD")!=='"\\udead"'}),nC=function(e,r){var t=xg(arguments),a=ZN(r);if(!(!Nf(a)&&(e===void 0||Cf(e))))return t[1]=function(n,s){if(Nf(a)&&(s=KN(a,this,JN(n),s)),!Cf(s))return s},wg(Qr,null,t)},aC=function(e,r,t){var a=Of(t,r-1),n=Of(t,r+1);return ks(Pf,e)&&!ks(If,n)||ks(If,e)&&!ks(Pf,a)?"\\u"+rC(eC(e,0),16):e};Qr&&qN({target:"JSON",stat:!0,forced:Mf||Af},{stringify:function(r,t,a){var n=xg(arguments),s=wg(Mf?nC:Qr,null,n);return Af&&typeof s=="string"?tC(s,iC,aC):s}});var sC=U,oC=Dn,lC=ve,Eg=Ia,dC=_t,uC=!oC||lC(function(){Eg.f(1)});sC({target:"Object",stat:!0,forced:uC},{getOwnPropertySymbols:function(r){var t=Eg.f;return t?t(dC(r)):[]}});var cC=He;cC("asyncIterator");var hC=He;hC("hasInstance");var fC=He;fC("isConcatSpreadable");var vC=He;vC("iterator");var pC=He;pC("match");var mC=He;mC("matchAll");var gC=He;gC("replace");var yC=He;yC("search");var _C=He;_C("species");var bC=He;bC("split");var wC=He,kC=rg;wC("toPrimitive");kC();var xC=bt,EC=He,SC=Ai;EC("toStringTag");SC(xC("Symbol"),"Symbol");var $C=He;$C("unscopables");var DC=Ie,TC=Ai;TC(DC.JSON,"JSON",!0);var NC=be,CC=NC.Symbol,OC=CC,Sg=OC,PC=Me,IC=Nt.f,Vf=PC("metadata"),Rf=Function.prototype;Rf[Vf]===void 0&&IC(Rf,Vf,{value:null});var MC=He;MC("asyncDispose");var AC=He;AC("dispose");var VC=He;VC("metadata");var RC=Sg,LC=RC,FC=bt,YC=ge,Bu=FC("Symbol"),jC=Bu.keyFor,BC=YC(Bu.prototype.valueOf),$g=Bu.isRegisteredSymbol||function(r){try{return jC(BC(r))!==void 0}catch{return!1}},HC=U,WC=$g;HC({target:"Symbol",stat:!0},{isRegisteredSymbol:WC});var GC=xn,Dg=bt,zC=ge,UC=Ea,XC=Me,Xs=Dg("Symbol"),Lf=Xs.isWellKnownSymbol,Tg=Dg("Object","getOwnPropertyNames"),qC=zC(Xs.prototype.valueOf),Ff=GC("wks");for(var Al=0,Yf=Tg(Xs),KC=Yf.length;Al<KC;Al++)try{var jf=Yf[Al];UC(Xs[jf])&&XC(jf)}catch{}var Ng=function(r){if(Lf&&Lf(r))return!0;try{for(var t=qC(r),a=0,n=Tg(Ff),s=n.length;a<s;a++)if(Ff[n[a]]==t)return!0}catch{}return!1},ZC=U,QC=Ng;ZC({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:QC});var JC=He;JC("matcher");var eO=He;eO("observable");var tO=U,rO=$g;tO({target:"Symbol",stat:!0},{isRegistered:rO});var iO=U,nO=Ng;iO({target:"Symbol",stat:!0,forced:!0},{isWellKnown:nO});var aO=He;aO("metadataKey");var sO=He;sO("patternMatch");var oO=He;oO("replaceAll");var lO=LC,dO=lO,Hu=dO,sn=z(Hu),uO=Ma,cO=uO.f("iterator"),hO=cO,Cg=hO,fO=Cg,vO=fO,pO=vO,mO=pO,Og=mO,gO=z(Og);function ee(e){"@babel/helpers - typeof";return ee=typeof sn=="function"&&typeof gO=="symbol"?function(r){return typeof r}:function(r){return r&&typeof sn=="function"&&r.constructor===sn&&r!==sn.prototype?"symbol":typeof r},ee(e)}var yO=Ma,_O=yO.f("toPrimitive"),bO=_O,wO=bO,kO=wO,xO=kO,EO=xO,SO=EO,$O=SO,DO=z($O);function TO(e,r){if(ee(e)!=="object"||e===null)return e;var t=e[DO];if(t!==void 0){var a=t.call(e,r);if(ee(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Pg(e){var r=TO(e,"string");return ee(r)==="symbol"?r:String(r)}function Bf(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),xo(e,Pg(a.key),a)}}function ce(e,r,t){return r&&Bf(e.prototype,r),t&&Bf(e,t),xo(e,"prototype",{writable:!1}),e}var NO=U,CO=oi;NO({target:"Array",stat:!0},{isArray:CO});var OO=be,PO=OO.Array.isArray,IO=PO,Ig=IO,MO=Ig,AO=MO,VO=AO,RO=VO,LO=RO,Mg=z(LO);function FO(e){if(Mg(e))return e}var YO=Qe,jO=oi,BO=TypeError,HO=Object.getOwnPropertyDescriptor,WO=YO&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Ag=WO?function(e,r){if(jO(e)&&!HO(e,"length").writable)throw new BO("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r},GO=U,zO=_t,UO=Ot,XO=Ag,qO=Eo,KO=ve,ZO=KO(function(){return[].push.call({length:4294967296},1)!==4294967297}),QO=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},JO=ZO||!QO();GO({target:"Array",proto:!0,forced:JO},{push:function(r){var t=zO(this),a=UO(t),n=arguments.length;qO(a+n);for(var s=0;s<n;s++)t[a]=arguments[s],a++;return XO(t,a),a}});var e2=be,Le=function(e){return e2[e+"Prototype"]},t2=Le,r2=t2("Array").push,i2=$e,n2=r2,Vl=Array.prototype,a2=function(e){var r=e.push;return e===Vl||i2(Vl,e)&&r===Vl.push?n2:r},s2=a2,o2=s2,l2=o2,d2=l2,u2=d2,c2=u2,Vg=c2,h2=z(Vg);function f2(e,r){var t=e==null?null:typeof sn<"u"&&Um(e)||e["@@iterator"];if(t!=null){var a,n,s,o,l=[],d=!0,u=!1;try{if(s=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;d=!1}else for(;!(d=(a=s.call(t)).done)&&(h2(l).call(l,a.value),l.length!==r);d=!0);}catch(f){u=!0,n=f}finally{try{if(!d&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw n}}return l}}var v2=U,Hf=oi,p2=wo,m2=tt,Wf=Ta,g2=Ot,y2=lr,_2=In,b2=Me,w2=Oa,k2=Va,x2=w2("slice"),E2=b2("species"),Rl=Array,S2=Math.max;v2({target:"Array",proto:!0,forced:!x2},{slice:function(r,t){var a=y2(this),n=g2(a),s=Wf(r,n),o=Wf(t===void 0?n:t,n),l,d,u;if(Hf(a)&&(l=a.constructor,p2(l)&&(l===Rl||Hf(l.prototype))?l=void 0:m2(l)&&(l=l[E2],l===null&&(l=void 0)),l===Rl||l===void 0))return k2(a,s,o);for(d=new(l===void 0?Rl:l)(S2(o-s,0)),u=0;s<o;s++,u++)s in a&&_2(d,u,a[s]);return d.length=u,d}});var $2=Le,D2=$2("Array").slice,T2=$e,N2=D2,Ll=Array.prototype,C2=function(e){var r=e.slice;return e===Ll||T2(Ll,e)&&r===Ll.slice?N2:r},O2=C2,Rg=O2,P2=Rg,I2=P2,M2=I2,A2=M2,Lg=A2,V2=z(Lg),R2=Hm,L2=R2,F2=L2,Y2=F2,j2=Y2,Fg=z(j2);function zd(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function Yg(e,r){var t;if(e){if(typeof e=="string")return zd(e,r);var a=V2(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Fg(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return zd(e,r)}}function B2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
39
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(e,r){return FO(e)||f2(e,r)||Yg(e,r)||B2()}function H2(e){if(Mg(e))return zd(e)}function W2(e){if(typeof sn<"u"&&Um(e)!=null||e["@@iterator"]!=null)return Fg(e)}function G2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pe(e){return H2(e)||W2(e)||Yg(e)||G2()}var z2=Sg,Br=z(z2),U2=Le,X2=U2("Array").concat,q2=$e,K2=X2,Fl=Array.prototype,Z2=function(e){var r=e.concat;return e===Fl||q2(Fl,e)&&r===Fl.concat?K2:r},Q2=Z2,J2=Q2,eP=J2,Ne=z(eP),tP=Rg,ht=z(tP),rP=bt,iP=ge,nP=Pa,aP=Ia,sP=Ht,oP=iP([].concat),Wu=rP("Reflect","ownKeys")||function(r){var t=nP.f(sP(r)),a=aP.f;return a?oP(t,a(r)):t},lP=U,dP=Wu;lP({target:"Reflect",stat:!0},{ownKeys:dP});var uP=be,cP=uP.Reflect.ownKeys,hP=cP,fP=hP,vP=fP,jg=z(vP),pP=Ig,re=z(pP),mP=U,gP=jr.map,yP=Oa,_P=yP("map");mP({target:"Array",proto:!0,forced:!_P},{map:function(r){return gP(this,r,arguments.length>1?arguments[1]:void 0)}});var bP=Le,wP=bP("Array").map,kP=$e,xP=wP,Yl=Array.prototype,EP=function(e){var r=e.map;return e===Yl||kP(Yl,e)&&r===Yl.map?xP:r},SP=EP,$P=SP,DP=$P,ye=z(DP),TP=U,NP=_t,Bg=Na,CP=ve,OP=CP(function(){Bg(1)});TP({target:"Object",stat:!0,forced:OP},{keys:function(r){return Bg(NP(r))}});var PP=be,IP=PP.Object.keys,MP=IP,AP=MP,VP=AP,Ze=z(VP),RP=U,LP=ge,Hg=Date,FP=LP(Hg.prototype.getTime);RP({target:"Date",stat:!0},{now:function(){return FP(new Hg)}});var YP=be,jP=YP.Date.now,BP=jP,HP=BP,WP=HP,Rt=z(WP),Wg=ge,GP=Ct,zP=tt,UP=qe,Gf=Va,XP=ka,Gg=Function,qP=Wg([].concat),KP=Wg([].join),jl={},ZP=function(e,r,t){if(!UP(jl,r)){for(var a=[],n=0;n<r;n++)a[n]="a["+n+"]";jl[r]=Gg("C,a","return new C("+KP(a,",")+")")}return jl[r](e,t)},zg=XP?Gg.bind:function(r){var t=GP(this),a=t.prototype,n=Gf(arguments,1),s=function(){var l=qP(n,Gf(arguments));return this instanceof s?ZP(t,l.length,l):t.apply(r,l)};return zP(a)&&(s.prototype=a),s},QP=U,zf=zg;QP({target:"Function",proto:!0,forced:Function.bind!==zf},{bind:zf});var JP=Le,eI=JP("Function").bind,tI=$e,rI=eI,Bl=Function.prototype,iI=function(e){var r=e.bind;return e===Bl||tI(Bl,e)&&r===Bl.bind?rI:r},nI=iI,Ug=nI,aI=Ug,O=z(aI),sI=ve,Mn=function(e,r){var t=[][e];return!!t&&sI(function(){t.call(null,r||function(){return 1},1)})},oI=jr.forEach,lI=Mn,dI=lI("forEach"),uI=dI?[].forEach:function(r){return oI(this,r,arguments.length>1?arguments[1]:void 0)},cI=U,Uf=uI;cI({target:"Array",proto:!0,forced:[].forEach!==Uf},{forEach:Uf});var hI=Le,fI=hI("Array").forEach,vI=fI,pI=vI,mI=Fr,gI=qe,yI=$e,_I=pI,Hl=Array.prototype,bI={DOMTokenList:!0,NodeList:!0},Xg=function(e){var r=e.forEach;return e===Hl||yI(Hl,e)&&r===Hl.forEach||gI(bI,mI(e))?_I:r},wI=Xg,B=z(wI),kI=U,xI=ge,EI=oi,SI=xI([].reverse),Xf=[1,2];kI({target:"Array",proto:!0,forced:String(Xf)===String(Xf.reverse())},{reverse:function(){return EI(this)&&(this.length=this.length),SI(this)}});var $I=Le,DI=$I("Array").reverse,TI=$e,NI=DI,Wl=Array.prototype,CI=function(e){var r=e.reverse;return e===Wl||TI(Wl,e)&&r===Wl.reverse?NI:r},OI=CI,qg=OI,PI=qg,II=z(PI),qf=Tn,MI=TypeError,Kg=function(e,r){if(!delete e[r])throw new MI("Cannot delete property "+qf(r)+" of "+qf(e))},AI=U,VI=_t,RI=Ta,LI=xa,FI=Ot,YI=Ag,jI=Eo,BI=So,HI=In,Gl=Kg,WI=Oa,GI=WI("splice"),zI=Math.max,UI=Math.min;AI({target:"Array",proto:!0,forced:!GI},{splice:function(r,t){var a=VI(this),n=FI(a),s=RI(r,n),o=arguments.length,l,d,u,f,p,m;for(o===0?l=d=0:o===1?(l=0,d=n-s):(l=o-2,d=UI(zI(LI(t),0),n-s)),jI(n+l-d),u=BI(a,d),f=0;f<d;f++)p=s+f,p in a&&HI(u,f,a[p]);if(u.length=d,l<d){for(f=s;f<n-d;f++)p=f+d,m=f+l,p in a?a[m]=a[p]:Gl(a,m);for(f=n;f>n-d+l;f--)Gl(a,f-1)}else if(l>d)for(f=n-d;f>s;f--)p=f+d-1,m=f+l-1,p in a?a[m]=a[p]:Gl(a,m);for(f=0;f<l;f++)a[f+s]=arguments[f+2];return YI(a,n-d+l),u}});var XI=Le,qI=XI("Array").splice,KI=$e,ZI=qI,zl=Array.prototype,QI=function(e){var r=e.splice;return e===zl||KI(zl,e)&&r===zl.splice?ZI:r},JI=QI,eM=JI,tM=eM,pt=z(tM),Kf=Qe,rM=ge,iM=rt,nM=ve,Ul=Na,aM=Ia,sM=$a,oM=_t,lM=_o,Ki=Object.assign,Zf=Object.defineProperty,dM=rM([].concat),uM=!Ki||nM(function(){if(Kf&&Ki({b:1},Ki(Zf({},"a",{enumerable:!0,get:function(){Zf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[t]=7,a.split("").forEach(function(n){r[n]=n}),Ki({},e)[t]!==7||Ul(Ki({},r)).join("")!==a})?function(r,t){for(var a=oM(r),n=arguments.length,s=1,o=aM.f,l=sM.f;n>s;)for(var d=lM(arguments[s++]),u=o?dM(Ul(d),o(d)):Ul(d),f=u.length,p=0,m;f>p;)m=u[p++],(!Kf||iM(l,d,m))&&(a[m]=d[m]);return a}:Ki,cM=U,Qf=uM;cM({target:"Object",stat:!0,forced:Object.assign!==Qf},{assign:Qf});var hM=be,fM=hM.Object.assign,vM=fM,pM=vM,mM=pM,Ar=z(mM),gM=U,yM=Cu.includes,_M=ve,bM=_M(function(){return!Array(1).includes()});gM({target:"Array",proto:!0,forced:bM},{includes:function(r){return yM(this,r,arguments.length>1?arguments[1]:void 0)}});var wM=Le,kM=wM("Array").includes,xM=tt,EM=Lr,SM=Me,$M=SM("match"),DM=function(e){var r;return xM(e)&&((r=e[$M])!==void 0?!!r:EM(e)==="RegExp")},TM=DM,NM=TypeError,CM=function(e){if(TM(e))throw new NM("The method doesn't accept regular expressions");return e},OM=Me,PM=OM("match"),IM=function(e){var r=/./;try{"/./"[e](r)}catch{try{return r[PM]=!1,"/./"[e](r)}catch{}}return!1},MM=U,AM=ge,VM=CM,RM=Sn,Jf=qt,LM=IM,FM=AM("".indexOf);MM({target:"String",proto:!0,forced:!LM("includes")},{includes:function(r){return!!~FM(Jf(RM(this)),Jf(VM(r)),arguments.length>1?arguments[1]:void 0)}});var YM=Le,jM=YM("String").includes,ev=$e,BM=kM,HM=jM,Xl=Array.prototype,ql=String.prototype,WM=function(e){var r=e.includes;return e===Xl||ev(Xl,e)&&r===Xl.includes?BM:typeof e=="string"||e===ql||ev(ql,e)&&r===ql.includes?HM:r},GM=WM,zM=GM,UM=zM,ti=z(UM),XM=U,qM=ve,KM=_t,Zg=Ca,ZM=Dm,QM=qM(function(){Zg(1)});XM({target:"Object",stat:!0,forced:QM,sham:!ZM},{getPrototypeOf:function(r){return Zg(KM(r))}});var JM=be,eA=JM.Object.getPrototypeOf,tA=eA,Qg=tA,rA=Qg,tv=z(rA),iA=U,nA=jr.filter,aA=Oa,sA=aA("filter");iA({target:"Array",proto:!0,forced:!sA},{filter:function(r){return nA(this,r,arguments.length>1?arguments[1]:void 0)}});var oA=Le,lA=oA("Array").filter,dA=$e,uA=lA,Kl=Array.prototype,cA=function(e){var r=e.filter;return e===Kl||dA(Kl,e)&&r===Kl.filter?uA:r},hA=cA,fA=hA,vA=fA,J=z(vA),Jg=Qe,pA=ve,ey=ge,mA=Ca,gA=Na,yA=lr,_A=$a.f,ty=ey(_A),bA=ey([].push),wA=Jg&&pA(function(){var e=Object.create(null);return e[2]=2,!ty(e,2)}),rv=function(e){return function(r){for(var t=yA(r),a=gA(t),n=wA&&mA(t)===null,s=a.length,o=0,l=[],d;s>o;)d=a[o++],(!Jg||(n?d in t:ty(t,d)))&&bA(l,e?[d,t[d]]:t[d]);return l}},ry={entries:rv(!0),values:rv(!1)},kA=U,xA=ry.values;kA({target:"Object",stat:!0},{values:function(r){return xA(r)}});var EA=be,SA=EA.Object.values,$A=SA,DA=$A,TA=DA,Gu=z(TA),zu=`
|
41
|
+
\v\f\r \u2028\u2029\uFEFF`,NA=ge,CA=Sn,OA=qt,Ud=zu,iv=NA("".replace),PA=RegExp("^["+Ud+"]+"),IA=RegExp("(^|[^"+Ud+"])["+Ud+"]+$"),MA=function(e){return function(r){var t=OA(CA(r));return e&1&&(t=iv(t,PA,"")),e&2&&(t=iv(t,IA,"$1")),t}},iy={trim:MA(3)},ny=Ie,AA=ve,VA=ge,RA=qt,LA=iy.trim,nv=zu,ia=ny.parseInt,av=ny.Symbol,sv=av&&av.iterator,ay=/^[+-]?0x/i,FA=VA(ay.exec),YA=ia(nv+"08")!==8||ia(nv+"0x16")!==22||sv&&!AA(function(){ia(Object(sv))}),jA=YA?function(r,t){var a=LA(RA(r));return ia(a,t>>>0||(FA(ay,a)?16:10))}:ia,BA=U,ov=jA;BA({global:!0,forced:parseInt!==ov},{parseInt:ov});var HA=be,WA=HA.parseInt,GA=WA,zA=GA,UA=zA,Lt=z(UA),XA=U,qA=Nu,KA=Cu.indexOf,ZA=Mn,Xd=qA([].indexOf),sy=!!Xd&&1/Xd([1],1,-0)<0,QA=sy||!ZA("indexOf");XA({target:"Array",proto:!0,forced:QA},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return sy?Xd(this,r,t)||0:KA(this,r,t)}});var JA=Le,eV=JA("Array").indexOf,tV=$e,rV=eV,Zl=Array.prototype,iV=function(e){var r=e.indexOf;return e===Zl||tV(Zl,e)&&r===Zl.indexOf?rV:r},nV=iV,aV=nV,sV=aV,Se=z(sV),oV=U,lV=ry.entries;oV({target:"Object",stat:!0},{entries:function(r){return lV(r)}});var dV=be,uV=dV.Object.entries,cV=uV,hV=cV,fV=hV,vV=z(fV),pV=U,mV=Qe,gV=Mi;pV({target:"Object",stat:!0,sham:!mV},{create:gV});var yV=be,_V=yV.Object,bV=function(r,t){return _V.create(r,t)},wV=bV,oy=wV,kV=oy,La=z(kV),qd=be,xV=Cn;qd.JSON||(qd.JSON={stringify:JSON.stringify});var EV=function(r,t,a){return xV(qd.JSON.stringify,null,arguments)},SV=EV,$V=SV,DV=$V,Dt=z(DV),TV=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",NV=TypeError,ly=function(e,r){if(e<r)throw new NV("Not enough arguments");return e},dy=Ie,CV=Cn,OV=Be,PV=TV,IV=ii,MV=Va,AV=ly,VV=dy.Function,RV=/MSIE .\./.test(IV)||PV&&function(){var e=dy.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),uy=function(e,r){var t=r?2:1;return RV?function(a,n){var s=AV(arguments.length,1)>t,o=OV(a)?a:VV(a),l=s?MV(arguments,t):[],d=s?function(){CV(o,this,l)}:o;return r?e(d,n):e(d)}:e},LV=U,cy=Ie,FV=uy,lv=FV(cy.setInterval,!0);LV({global:!0,bind:!0,forced:cy.setInterval!==lv},{setInterval:lv});var YV=U,hy=Ie,jV=uy,dv=jV(hy.setTimeout,!0);YV({global:!0,bind:!0,forced:hy.setTimeout!==dv},{setTimeout:dv});var BV=be,HV=BV.setTimeout,WV=HV,ct=z(WV),GV=_t,uv=Ta,zV=Ot,UV=function(r){for(var t=GV(this),a=zV(t),n=arguments.length,s=uv(n>1?arguments[1]:void 0,a),o=n>2?arguments[2]:void 0,l=o===void 0?a:uv(o,a);l>s;)t[s++]=r;return t},XV=U,qV=UV;XV({target:"Array",proto:!0},{fill:qV});var KV=Le,ZV=KV("Array").fill,QV=$e,JV=ZV,Ql=Array.prototype,eR=function(e){var r=e.fill;return e===Ql||QV(Ql,e)&&r===Ql.fill?JV:r},tR=eR,rR=tR,iR=rR,fy=z(iR),vy={exports:{}};(function(e){e.exports=r;function r(a){if(a)return t(a)}function t(a){for(var n in r.prototype)a[n]=r.prototype[n];return a}r.prototype.on=r.prototype.addEventListener=function(a,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(n),this},r.prototype.once=function(a,n){function s(){this.off(a,s),n.apply(this,arguments)}return s.fn=n,this.on(a,s),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(a,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+a];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var o,l=0;l<s.length;l++)if(o=s[l],o===n||o.fn===n){s.splice(l,1);break}return s.length===0&&delete this._callbacks["$"+a],this},r.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),s=this._callbacks["$"+a],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(s){s=s.slice(0);for(var o=0,l=s.length;o<l;++o)s[o].apply(this,n)}return this},r.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]},r.prototype.hasListeners=function(a){return!!this.listeners(a).length}})(vy);var nR=vy.exports,Uu=z(nR);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
42
|
+
* http://naver.github.io/egjs
|
43
|
+
*
|
44
|
+
* Forked By Naver egjs
|
45
|
+
* Copyright (c) hammerjs
|
46
|
+
* Licensed under the MIT license */function sr(){return sr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},sr.apply(this,arguments)}function Kt(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function xs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Kd;typeof Object.assign!="function"?Kd=function(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),a=1;a<arguments.length;a++){var n=arguments[a];if(n!=null)for(var s in n)n.hasOwnProperty(s)&&(t[s]=n[s])}return t}:Kd=Object.assign;var Si=Kd,cv=["","webkit","Moz","MS","ms","o"],aR=typeof document>"u"?{style:{}}:document.createElement("div"),sR="function",on=Math.round,$i=Math.abs,Xu=Date.now;function Po(e,r){for(var t,a,n=r[0].toUpperCase()+r.slice(1),s=0;s<cv.length;){if(t=cv[s],a=t?t+n:r,a in e)return a;s++}}var Or;typeof window>"u"?Or={}:Or=window;var py=Po(aR.style,"touchAction"),my=py!==void 0;function oR(){if(!my)return!1;var e={},r=Or.CSS&&Or.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=r?Or.CSS.supports("touch-action",t):!0}),e}var gy="compute",yy="auto",Zd="manipulation",wi="none",va="pan-x",pa="pan-y",Es=oR(),lR=/mobile|tablet|ip(ad|hone|od)|android/i,_y="ontouchstart"in Or,dR=Po(Or,"PointerEvent")!==void 0,uR=_y&&lR.test(navigator.userAgent),Fa="touch",cR="pen",qu="mouse",hR="kinect",fR=25,yt=1,Vi=2,Xe=4,Tt=8,qs=1,Ya=2,ja=4,Ba=8,mn=16,mr=Ya|ja,ki=Ba|mn,by=mr|ki,wy=["x","y"],Ks=["clientX","clientY"];function Pr(e,r,t){var a;if(e)if(e.forEach)e.forEach(r,t);else if(e.length!==void 0)for(a=0;a<e.length;)r.call(t,e[a],a,e),a++;else for(a in e)e.hasOwnProperty(a)&&r.call(t,e[a],a,e)}function Io(e,r){return typeof e===sR?e.apply(r&&r[0]||void 0,r):e}function yi(e,r){return e.indexOf(r)>-1}function vR(e){if(yi(e,wi))return wi;var r=yi(e,va),t=yi(e,pa);return r&&t?wi:r||t?r?va:pa:yi(e,Zd)?Zd:yy}var ky=function(){function e(t,a){this.manager=t,this.set(a)}var r=e.prototype;return r.set=function(a){a===gy&&(a=this.compute()),my&&this.manager.element.style&&Es[a]&&(this.manager.element.style[py]=a),this.actions=a.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var a=[];return Pr(this.manager.recognizers,function(n){Io(n.options.enable,[n])&&(a=a.concat(n.getTouchAction()))}),vR(a.join(" "))},r.preventDefaults=function(a){var n=a.srcEvent,s=a.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,l=yi(o,wi)&&!Es[wi],d=yi(o,pa)&&!Es[pa],u=yi(o,va)&&!Es[va];if(l){var f=a.pointers.length===1,p=a.distance<2,m=a.deltaTime<250;if(f&&p&&m)return}if(!(u&&d)&&(l||d&&s&mr||u&&s&ki))return this.preventSrc(n)},r.preventSrc=function(a){this.manager.session.prevented=!0,a.preventDefault()},e}();function Ku(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}function xy(e){var r=e.length;if(r===1)return{x:on(e[0].clientX),y:on(e[0].clientY)};for(var t=0,a=0,n=0;n<r;)t+=e[n].clientX,a+=e[n].clientY,n++;return{x:on(t/r),y:on(a/r)}}function hv(e){for(var r=[],t=0;t<e.pointers.length;)r[t]={clientX:on(e.pointers[t].clientX),clientY:on(e.pointers[t].clientY)},t++;return{timeStamp:Xu(),pointers:r,center:xy(r),deltaX:e.deltaX,deltaY:e.deltaY}}function Zs(e,r,t){t||(t=wy);var a=r[t[0]]-e[t[0]],n=r[t[1]]-e[t[1]];return Math.sqrt(a*a+n*n)}function Qd(e,r,t){t||(t=wy);var a=r[t[0]]-e[t[0]],n=r[t[1]]-e[t[1]];return Math.atan2(n,a)*180/Math.PI}function Ey(e,r){return e===r?qs:$i(e)>=$i(r)?e<0?Ya:ja:r<0?Ba:mn}function pR(e,r){var t=r.center,a=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};(r.eventType===yt||s.eventType===Xe)&&(n=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},a=e.offsetDelta={x:t.x,y:t.y}),r.deltaX=n.x+(t.x-a.x),r.deltaY=n.y+(t.y-a.y)}function Sy(e,r,t){return{x:r/e||0,y:t/e||0}}function mR(e,r){return Zs(r[0],r[1],Ks)/Zs(e[0],e[1],Ks)}function gR(e,r){return Qd(r[1],r[0],Ks)+Qd(e[1],e[0],Ks)}function yR(e,r){var t=e.lastInterval||r,a=r.timeStamp-t.timeStamp,n,s,o,l;if(r.eventType!==Tt&&(a>fR||t.velocity===void 0)){var d=r.deltaX-t.deltaX,u=r.deltaY-t.deltaY,f=Sy(a,d,u);s=f.x,o=f.y,n=$i(f.x)>$i(f.y)?f.x:f.y,l=Ey(d,u),e.lastInterval=r}else n=t.velocity,s=t.velocityX,o=t.velocityY,l=t.direction;r.velocity=n,r.velocityX=s,r.velocityY=o,r.direction=l}function _R(e,r){var t=e.session,a=r.pointers,n=a.length;t.firstInput||(t.firstInput=hv(r)),n>1&&!t.firstMultiple?t.firstMultiple=hv(r):n===1&&(t.firstMultiple=!1);var s=t.firstInput,o=t.firstMultiple,l=o?o.center:s.center,d=r.center=xy(a);r.timeStamp=Xu(),r.deltaTime=r.timeStamp-s.timeStamp,r.angle=Qd(l,d),r.distance=Zs(l,d),pR(t,r),r.offsetDirection=Ey(r.deltaX,r.deltaY);var u=Sy(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=u.x,r.overallVelocityY=u.y,r.overallVelocity=$i(u.x)>$i(u.y)?u.x:u.y,r.scale=o?mR(o.pointers,a):1,r.rotation=o?gR(o.pointers,a):0,r.maxPointers=t.prevInput?r.pointers.length>t.prevInput.maxPointers?r.pointers.length:t.prevInput.maxPointers:r.pointers.length,yR(t,r);var f=e.element,p=r.srcEvent,m;p.composedPath?m=p.composedPath()[0]:p.path?m=p.path[0]:m=p.target,Ku(m,f)&&(f=m),r.target=f}function bR(e,r,t){var a=t.pointers.length,n=t.changedPointers.length,s=r&yt&&a-n===0,o=r&(Xe|Tt)&&a-n===0;t.isFirst=!!s,t.isFinal=!!o,s&&(e.session={}),t.eventType=r,_R(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function ma(e){return e.trim().split(/\s+/g)}function na(e,r,t){Pr(ma(r),function(a){e.addEventListener(a,t,!1)})}function aa(e,r,t){Pr(ma(r),function(a){e.removeEventListener(a,t,!1)})}function fv(e){var r=e.ownerDocument||e;return r.defaultView||r.parentWindow||window}var An=function(){function e(t,a){var n=this;this.manager=t,this.callback=a,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(s){Io(t.options.enable,[t])&&n.handler(s)},this.init()}var r=e.prototype;return r.handler=function(){},r.init=function(){this.evEl&&na(this.element,this.evEl,this.domHandler),this.evTarget&&na(this.target,this.evTarget,this.domHandler),this.evWin&&na(fv(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&aa(this.element,this.evEl,this.domHandler),this.evTarget&&aa(this.target,this.evTarget,this.domHandler),this.evWin&&aa(fv(this.element),this.evWin,this.domHandler)},e}();function Di(e,r,t){if(e.indexOf&&!t)return e.indexOf(r);for(var a=0;a<e.length;){if(t&&e[a][t]==r||!t&&e[a]===r)return a;a++}return-1}var wR={pointerdown:yt,pointermove:Vi,pointerup:Xe,pointercancel:Tt,pointerout:Tt},kR={2:Fa,3:cR,4:qu,5:hR},$y="pointerdown",Dy="pointermove pointerup pointercancel";Or.MSPointerEvent&&!Or.PointerEvent&&($y="MSPointerDown",Dy="MSPointerMove MSPointerUp MSPointerCancel");var Ty=function(e){Kt(r,e);function r(){var a,n=r.prototype;return n.evEl=$y,n.evWin=Dy,a=e.apply(this,arguments)||this,a.store=a.manager.session.pointerEvents=[],a}var t=r.prototype;return t.handler=function(n){var s=this.store,o=!1,l=n.type.toLowerCase().replace("ms",""),d=wR[l],u=kR[n.pointerType]||n.pointerType,f=u===Fa,p=Di(s,n.pointerId,"pointerId");d&yt&&(n.button===0||f)?p<0&&(s.push(n),p=s.length-1):d&(Xe|Tt)&&(o=!0),!(p<0)&&(s[p]=n,this.callback(this.manager,d,{pointers:s,changedPointers:[n],pointerType:u,srcEvent:n}),o&&s.splice(p,1))},r}(An);function ga(e){return Array.prototype.slice.call(e,0)}function Zu(e,r,t){for(var a=[],n=[],s=0;s<e.length;){var o=r?e[s][r]:e[s];Di(n,o)<0&&a.push(e[s]),n[s]=o,s++}return t&&(r?a=a.sort(function(l,d){return l[r]>d[r]}):a=a.sort()),a}var xR={touchstart:yt,touchmove:Vi,touchend:Xe,touchcancel:Tt},ER="touchstart touchmove touchend touchcancel",Qu=function(e){Kt(r,e);function r(){var a;return r.prototype.evTarget=ER,a=e.apply(this,arguments)||this,a.targetIds={},a}var t=r.prototype;return t.handler=function(n){var s=xR[n.type],o=SR.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:Fa,srcEvent:n})},r}(An);function SR(e,r){var t=ga(e.touches),a=this.targetIds;if(r&(yt|Vi)&&t.length===1)return a[t[0].identifier]=!0,[t,t];var n,s,o=ga(e.changedTouches),l=[],d=this.target;if(s=t.filter(function(u){return Ku(u.target,d)}),r===yt)for(n=0;n<s.length;)a[s[n].identifier]=!0,n++;for(n=0;n<o.length;)a[o[n].identifier]&&l.push(o[n]),r&(Xe|Tt)&&delete a[o[n].identifier],n++;if(l.length)return[Zu(s.concat(l),"identifier",!0),l]}var $R={mousedown:yt,mousemove:Vi,mouseup:Xe},DR="mousedown",TR="mousemove mouseup",Ju=function(e){Kt(r,e);function r(){var a,n=r.prototype;return n.evEl=DR,n.evWin=TR,a=e.apply(this,arguments)||this,a.pressed=!1,a}var t=r.prototype;return t.handler=function(n){var s=$R[n.type];s&yt&&n.button===0&&(this.pressed=!0),s&Vi&&n.which!==1&&(s=Xe),this.pressed&&(s&Xe&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:qu,srcEvent:n}))},r}(An),NR=2500,vv=25;function pv(e){var r=e.changedPointers,t=r[0];if(t.identifier===this.primaryTouch){var a={x:t.clientX,y:t.clientY},n=this.lastTouches;this.lastTouches.push(a);var s=function(){var l=n.indexOf(a);l>-1&&n.splice(l,1)};setTimeout(s,NR)}}function CR(e,r){e&yt?(this.primaryTouch=r.changedPointers[0].identifier,pv.call(this,r)):e&(Xe|Tt)&&pv.call(this,r)}function OR(e){for(var r=e.srcEvent.clientX,t=e.srcEvent.clientY,a=0;a<this.lastTouches.length;a++){var n=this.lastTouches[a],s=Math.abs(r-n.x),o=Math.abs(t-n.y);if(s<=vv&&o<=vv)return!0}return!1}var Ny=function(){var e=function(r){Kt(t,r);function t(n,s){var o;return o=r.call(this,n,s)||this,o.handler=function(l,d,u){var f=u.pointerType===Fa,p=u.pointerType===qu;if(!(p&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(f)CR.call(xs(xs(o)),d,u);else if(p&&OR.call(xs(xs(o)),u))return;o.callback(l,d,u)}},o.touch=new Qu(o.manager,o.handler),o.mouse=new Ju(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}var a=t.prototype;return a.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(An);return e}();function PR(e){var r,t=e.options.inputClass;return t?r=t:dR?r=Ty:uR?r=Qu:_y?r=Ny:r=Ju,new r(e,bR)}function ln(e,r,t){return Array.isArray(e)?(Pr(e,t[r],t),!0):!1}var Ys=1,Xt=2,gn=4,Jr=8,Ir=Jr,ya=16,vr=32,IR=1;function MR(){return IR++}function Ss(e,r){var t=r.manager;return t?t.get(e):e}function mv(e){return e&ya?"cancel":e&Jr?"end":e&gn?"move":e&Xt?"start":""}var Ha=function(){function e(t){t===void 0&&(t={}),this.options=sr({enable:!0},t),this.id=MR(),this.manager=null,this.state=Ys,this.simultaneous={},this.requireFail=[]}var r=e.prototype;return r.set=function(a){return Si(this.options,a),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(a){if(ln(a,"recognizeWith",this))return this;var n=this.simultaneous;return a=Ss(a,this),n[a.id]||(n[a.id]=a,a.recognizeWith(this)),this},r.dropRecognizeWith=function(a){return ln(a,"dropRecognizeWith",this)?this:(a=Ss(a,this),delete this.simultaneous[a.id],this)},r.requireFailure=function(a){if(ln(a,"requireFailure",this))return this;var n=this.requireFail;return a=Ss(a,this),Di(n,a)===-1&&(n.push(a),a.requireFailure(this)),this},r.dropRequireFailure=function(a){if(ln(a,"dropRequireFailure",this))return this;a=Ss(a,this);var n=Di(this.requireFail,a);return n>-1&&this.requireFail.splice(n,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(a){return!!this.simultaneous[a.id]},r.emit=function(a){var n=this,s=this.state;function o(l){n.manager.emit(l,a)}s<Jr&&o(n.options.event+mv(s)),o(n.options.event),a.additionalEvent&&o(a.additionalEvent),s>=Jr&&o(n.options.event+mv(s))},r.tryEmit=function(a){if(this.canEmit())return this.emit(a);this.state=vr},r.canEmit=function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(vr|Ys)))return!1;a++}return!0},r.recognize=function(a){var n=Si({},a);if(!Io(this.options.enable,[this,n])){this.reset(),this.state=vr;return}this.state&(Ir|ya|vr)&&(this.state=Ys),this.state=this.process(n),this.state&(Xt|gn|Jr|ya)&&this.tryEmit(n)},r.process=function(a){},r.getTouchAction=function(){},r.reset=function(){},e}(),Jd=function(e){Kt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,sr({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},a))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var t=r.prototype;return t.getTouchAction=function(){return[Zd]},t.process=function(n){var s=this,o=this.options,l=n.pointers.length===o.pointers,d=n.distance<o.threshold,u=n.deltaTime<o.time;if(this.reset(),n.eventType&yt&&this.count===0)return this.failTimeout();if(d&&u&&l){if(n.eventType!==Xe)return this.failTimeout();var f=this.pTime?n.timeStamp-this.pTime<o.interval:!0,p=!this.pCenter||Zs(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!p||!f?this.count=1:this.count+=1,this._input=n;var m=this.count%o.taps;if(m===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=Ir,s.tryEmit()},o.interval),Xt):Ir}return vr},t.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=vr},this.options.interval),vr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===Ir&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(Ha),yn=function(e){Kt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,sr({pointers:1},a))||this}var t=r.prototype;return t.attrTest=function(n){var s=this.options.pointers;return s===0||n.pointers.length===s},t.process=function(n){var s=this.state,o=n.eventType,l=s&(Xt|gn),d=this.attrTest(n);return l&&(o&Tt||!d)?s|ya:l||d?o&Xe?s|Jr:s&Xt?s|gn:Xt:vr},r}(Ha);function Cy(e){return e===mn?"down":e===Ba?"up":e===Ya?"left":e===ja?"right":""}var ec=function(e){Kt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,sr({event:"pan",threshold:10,pointers:1,direction:by},a))||this,n.pX=null,n.pY=null,n}var t=r.prototype;return t.getTouchAction=function(){var n=this.options.direction,s=[];return n&mr&&s.push(pa),n&ki&&s.push(va),s},t.directionTest=function(n){var s=this.options,o=!0,l=n.distance,d=n.direction,u=n.deltaX,f=n.deltaY;return d&s.direction||(s.direction&mr?(d=u===0?qs:u<0?Ya:ja,o=u!==this.pX,l=Math.abs(n.deltaX)):(d=f===0?qs:f<0?Ba:mn,o=f!==this.pY,l=Math.abs(n.deltaY))),n.direction=d,o&&l>s.threshold&&d&s.direction},t.attrTest=function(n){return yn.prototype.attrTest.call(this,n)&&(this.state&Xt||!(this.state&Xt)&&this.directionTest(n))},t.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=Cy(n.direction);s&&(n.additionalEvent=this.options.event+s),e.prototype.emit.call(this,n)},r}(yn),Oy=function(e){Kt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,sr({event:"swipe",threshold:10,velocity:.3,direction:mr|ki,pointers:1},a))||this}var t=r.prototype;return t.getTouchAction=function(){return ec.prototype.getTouchAction.call(this)},t.attrTest=function(n){var s=this.options.direction,o;return s&(mr|ki)?o=n.overallVelocity:s&mr?o=n.overallVelocityX:s&ki&&(o=n.overallVelocityY),e.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&$i(o)>this.options.velocity&&n.eventType&Xe},t.emit=function(n){var s=Cy(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},r}(yn),Py=function(e){Kt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,sr({event:"pinch",threshold:0,pointers:2},a))||this}var t=r.prototype;return t.getTouchAction=function(){return[wi]},t.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&Xt)},t.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}e.prototype.emit.call(this,n)},r}(yn),Iy=function(e){Kt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,sr({event:"rotate",threshold:0,pointers:2},a))||this}var t=r.prototype;return t.getTouchAction=function(){return[wi]},t.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&Xt)},r}(yn),My=function(e){Kt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,sr({event:"press",pointers:1,time:251,threshold:9},a))||this,n._timer=null,n._input=null,n}var t=r.prototype;return t.getTouchAction=function(){return[yy]},t.process=function(n){var s=this,o=this.options,l=n.pointers.length===o.pointers,d=n.distance<o.threshold,u=n.deltaTime>o.time;if(this._input=n,!d||!l||n.eventType&(Xe|Tt)&&!u)this.reset();else if(n.eventType&yt)this.reset(),this._timer=setTimeout(function(){s.state=Ir,s.tryEmit()},o.time);else if(n.eventType&Xe)return Ir;return vr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(n){this.state===Ir&&(n&&n.eventType&Xe?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=Xu(),this.manager.emit(this.options.event,this._input)))},r}(Ha),Ay={domEvents:!1,touchAction:gy,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},gv=[[Iy,{enable:!1}],[Py,{enable:!1},["rotate"]],[Oy,{direction:mr}],[ec,{direction:mr},["swipe"]],[Jd],[Jd,{event:"doubletap",taps:2},["tap"]],[My]],AR=1,yv=2;function _v(e,r){var t=e.element;if(t.style){var a;Pr(e.options.cssProps,function(n,s){a=Po(t.style,s),r?(e.oldCssProps[a]=t.style[a],t.style[a]=n):t.style[a]=e.oldCssProps[a]||""}),r||(e.oldCssProps={})}}function VR(e,r){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=r,r.target.dispatchEvent(t)}var bv=function(){function e(t,a){var n=this;this.options=Si({},Ay,a||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=PR(this),this.touchAction=new ky(this,this.options.touchAction),_v(this,!0),Pr(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var r=e.prototype;return r.set=function(a){return Si(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},r.stop=function(a){this.session.stopped=a?yv:AR},r.recognize=function(a){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(a);var s,o=this.recognizers,l=n.curRecognizer;(!l||l&&l.state&Ir)&&(n.curRecognizer=null,l=null);for(var d=0;d<o.length;)s=o[d],n.stopped!==yv&&(!l||s===l||s.canRecognizeWith(l))?s.recognize(a):s.reset(),!l&&s.state&(Xt|gn|Jr)&&(n.curRecognizer=s,l=s),d++}},r.get=function(a){if(a instanceof Ha)return a;for(var n=this.recognizers,s=0;s<n.length;s++)if(n[s].options.event===a)return n[s];return null},r.add=function(a){if(ln(a,"add",this))return this;var n=this.get(a.options.event);return n&&this.remove(n),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},r.remove=function(a){if(ln(a,"remove",this))return this;var n=this.get(a);if(a){var s=this.recognizers,o=Di(s,n);o!==-1&&(s.splice(o,1),this.touchAction.update())}return this},r.on=function(a,n){if(a===void 0||n===void 0)return this;var s=this.handlers;return Pr(ma(a),function(o){s[o]=s[o]||[],s[o].push(n)}),this},r.off=function(a,n){if(a===void 0)return this;var s=this.handlers;return Pr(ma(a),function(o){n?s[o]&&s[o].splice(Di(s[o],n),1):delete s[o]}),this},r.emit=function(a,n){this.options.domEvents&&VR(a,n);var s=this.handlers[a]&&this.handlers[a].slice();if(!(!s||!s.length)){n.type=a,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var o=0;o<s.length;)s[o](n),o++}},r.destroy=function(){this.element&&_v(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),RR={touchstart:yt,touchmove:Vi,touchend:Xe,touchcancel:Tt},LR="touchstart",FR="touchstart touchmove touchend touchcancel",YR=function(e){Kt(r,e);function r(){var a,n=r.prototype;return n.evTarget=LR,n.evWin=FR,a=e.apply(this,arguments)||this,a.started=!1,a}var t=r.prototype;return t.handler=function(n){var s=RR[n.type];if(s===yt&&(this.started=!0),!!this.started){var o=jR.call(this,n,s);s&(Xe|Tt)&&o[0].length-o[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:Fa,srcEvent:n})}},r}(An);function jR(e,r){var t=ga(e.touches),a=ga(e.changedTouches);return r&(Xe|Tt)&&(t=Zu(t.concat(a),"identifier",!0)),[t,a]}function Vy(e,r,t){var a="DEPRECATED METHOD: "+r+`
|
47
|
+
`+t+` AT
|
48
|
+
`;return function(){var n=new Error("get-stack-trace"),s=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,a,s),e.apply(this,arguments)}}var Ry=Vy(function(e,r,t){for(var a=Object.keys(r),n=0;n<a.length;)(!t||t&&e[a[n]]===void 0)&&(e[a[n]]=r[a[n]]),n++;return e},"extend","Use `assign`."),BR=Vy(function(e,r){return Ry(e,r,!0)},"merge","Use `assign`.");function HR(e,r,t){var a=r.prototype,n;n=e.prototype=Object.create(a),n.constructor=e,n._super=a,t&&Si(n,t)}function wv(e,r){return function(){return e.apply(r,arguments)}}var Ly=function(){var e=function(t,a){return a===void 0&&(a={}),new bv(t,sr({recognizers:gv.concat()},a))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=by,e.DIRECTION_DOWN=mn,e.DIRECTION_LEFT=Ya,e.DIRECTION_RIGHT=ja,e.DIRECTION_UP=Ba,e.DIRECTION_HORIZONTAL=mr,e.DIRECTION_VERTICAL=ki,e.DIRECTION_NONE=qs,e.DIRECTION_DOWN=mn,e.INPUT_START=yt,e.INPUT_MOVE=Vi,e.INPUT_END=Xe,e.INPUT_CANCEL=Tt,e.STATE_POSSIBLE=Ys,e.STATE_BEGAN=Xt,e.STATE_CHANGED=gn,e.STATE_ENDED=Jr,e.STATE_RECOGNIZED=Ir,e.STATE_CANCELLED=ya,e.STATE_FAILED=vr,e.Manager=bv,e.Input=An,e.TouchAction=ky,e.TouchInput=Qu,e.MouseInput=Ju,e.PointerEventInput=Ty,e.TouchMouseInput=Ny,e.SingleTouchInput=YR,e.Recognizer=Ha,e.AttrRecognizer=yn,e.Tap=Jd,e.Pan=ec,e.Swipe=Oy,e.Pinch=Py,e.Rotate=Iy,e.Press=My,e.on=na,e.off=aa,e.each=Pr,e.merge=BR,e.extend=Ry,e.bindFn=wv,e.assign=Si,e.inherit=HR,e.bindFn=wv,e.prefixed=Po,e.toArray=ga,e.inArray=Di,e.uniqueArray=Zu,e.splitStr=ma,e.boolOrFn=Io,e.hasParent=Ku,e.addEventListeners=na,e.removeEventListeners=aa,e.defaults=Si({},Ay,{preset:gv}),e}();Ly.defaults;var Fy=Ly;function tc(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=WR(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function WR(e,r){var t;if(e){if(typeof e=="string")return kv(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return kv(e,r)}}function kv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var rc=Br("DELETE");function Yy(e){for(var r,t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return ic.apply(void 0,Ne(r=[{},e]).call(r,a))}function ic(){var e=Qs.apply(void 0,arguments);return By(e),e}function Qs(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length<2)return r[0];if(r.length>2){var a;return Qs.apply(void 0,Ne(a=[ic(r[0],r[1])]).call(a,Pe(ht(r).call(r,2))))}var n=r[0],s=r[1];if(n instanceof Date&&s instanceof Date)return n.setTime(s.getTime()),n;var o=tc(jg(s)),l;try{for(o.s();!(l=o.n()).done;){var d=l.value;Object.prototype.propertyIsEnumerable.call(s,d)&&(s[d]===rc?delete n[d]:n[d]!==null&&s[d]!==null&&ee(n[d])==="object"&&ee(s[d])==="object"&&!re(n[d])&&!re(s[d])?n[d]=Qs(n[d],s[d]):n[d]=jy(s[d]))}}catch(u){o.e(u)}finally{o.f()}return n}function jy(e){return re(e)?ye(e).call(e,function(r){return jy(r)}):ee(e)==="object"&&e!==null?e instanceof Date?new Date(e.getTime()):Qs({},e):e}function By(e){for(var r=0,t=Ze(e);r<t.length;r++){var a=t[r];e[a]===rc?delete e[a]:ee(e[a])==="object"&&e[a]!==null&&By(e[a])}}function GR(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return zR(r.length?r:[Rt()])}function zR(e){var r=UR(e),t=ut(r,3),a=t[0],n=t[1],s=t[2],o=1,l=function(){var u=2091639*a+o*23283064365386963e-26;return a=n,n=s,s=u-(o=u|0)};return l.uint32=function(){return l()*4294967296},l.fract53=function(){return l()+(l()*2097152|0)*11102230246251565e-32},l.algorithm="Alea",l.seed=e,l.version="0.9",l}function UR(){for(var e=XR(),r=e(" "),t=e(" "),a=e(" "),n=0;n<arguments.length;n++)r-=e(n<0||arguments.length<=n?void 0:arguments[n]),r<0&&(r+=1),t-=e(n<0||arguments.length<=n?void 0:arguments[n]),t<0&&(t+=1),a-=e(n<0||arguments.length<=n?void 0:arguments[n]),a<0&&(a+=1);return[r,t,a]}function XR(){var e=4022871197;return function(r){for(var t=r.toString(),a=0;a<t.length;a++){e+=t.charCodeAt(a);var n=.02519603282416938*e;e=n>>>0,n-=e,n*=e,e=n>>>0,n-=e,e+=n*4294967296}return(e>>>0)*23283064365386963e-26}}function qR(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var nc=typeof window<"u"?window.Hammer||Fy:function(){return qR()};function pr(e){var r=this,t;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var a=nc(this._dom.overlay);a.on("tap",O(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){a.destroy()});var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];B(n).call(n,function(s){a.on(s,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(s){KR(s.target,e)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})),this._escListener=function(s){("key"in s?s.key==="Escape":s.keyCode===27)&&r.deactivate()}}Uu(pr.prototype);pr.current=null;pr.prototype.destroy=function(){var e,r;this.deactivate();var t=tc(II(e=pt(r=this._cleanupQueue).call(r,0)).call(e)),a;try{for(t.s();!(a=t.n()).done;){var n=a.value;n()}}catch(s){t.e(s)}finally{t.f()}};pr.prototype.activate=function(){pr.current&&pr.current.deactivate(),pr.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)};pr.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")};pr.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function KR(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var ZR=/^\/?Date\((-?\d+)/i,QR=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,JR=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,eL=/^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,tL=/^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 sa(e){return e instanceof Number||typeof e=="number"}function Hy(e){if(e)for(;e.hasChildNodes()===!0;){var r=e.firstChild;r&&(Hy(r),e.removeChild(r))}}function Ft(e){return e instanceof String||typeof e=="string"}function eu(e){return ee(e)==="object"&&e!==null}function rL(e){if(e instanceof Date)return!0;if(Ft(e)){var r=ZR.exec(e);if(r)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function Ti(e,r,t,a){var n=!1;a===!0&&(n=r[t]===null&&e[t]!==void 0),n?delete e[t]:e[t]=r[t]}function Wy(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var a in e)if(r[a]!==void 0)if(r[a]===null||ee(r[a])!=="object")Ti(e,r,a,t);else{var n=e[a],s=r[a];eu(n)&&eu(s)&&Wy(n,s,t)}}var iL=Ar;function nL(e,r){if(!re(e))throw new Error("Array with property names expected as first argument");for(var t=arguments.length,a=new Array(t>2?t-2:0),n=2;n<t;n++)a[n-2]=arguments[n];for(var s=0,o=a;s<o.length;s++)for(var l=o[s],d=0;d<e.length;d++){var u=e[d];l&&Object.prototype.hasOwnProperty.call(l,u)&&(r[u]=l[u])}return r}function aL(e,r,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(re(t))throw new TypeError("Arrays are not supported by deepExtend");for(var n=0;n<e.length;n++){var s=e[n];if(Object.prototype.hasOwnProperty.call(t,s))if(t[s]&&t[s].constructor===Object)r[s]===void 0&&(r[s]={}),r[s].constructor===Object?_a(r[s],t[s],!1,a):Ti(r,t,s,a);else{if(re(t[s]))throw new TypeError("Arrays are not supported by deepExtend");Ti(r,t,s,a)}}return r}function sL(e,r,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(re(t))throw new TypeError("Arrays are not supported by deepExtend");for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&!ti(e).call(e,n))if(t[n]&&t[n].constructor===Object)r[n]===void 0&&(r[n]={}),r[n].constructor===Object?_a(r[n],t[n]):Ti(r,t,n,a);else if(re(t[n])){r[n]=[];for(var s=0;s<t[n].length;s++)r[n].push(t[n][s])}else Ti(r,t,n,a);return r}function _a(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)||t===!0)if(ee(r[n])==="object"&&r[n]!==null&&tv(r[n])===Object.prototype)e[n]===void 0?e[n]=_a({},r[n],t):ee(e[n])==="object"&&e[n]!==null&&tv(e[n])===Object.prototype?_a(e[n],r[n],t):Ti(e,r,n,a);else if(re(r[n])){var s;e[n]=ht(s=r[n]).call(s)}else Ti(e,r,n,a);return e}function oL(e,r){if(e.length!==r.length)return!1;for(var t=0,a=e.length;t<a;t++)if(e[t]!=r[t])return!1;return!0}function ra(e){var r=ee(e);return r==="object"?e===null?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":re(e)?"Array":e instanceof Date?"Date":"Object":r==="number"?"Number":r==="boolean"?"Boolean":r==="string"?"String":r===void 0?"undefined":r}function ba(e,r){var t;return Ne(t=[]).call(t,Pe(e),[r])}function Gy(e){return ht(e).call(e)}function lL(e){return e.getBoundingClientRect().left}function dL(e){return e.getBoundingClientRect().right}function uL(e){return e.getBoundingClientRect().top}function cL(e,r){var t=e.className.split(" "),a=r.split(" ");t=Ne(t).call(t,J(a).call(a,function(n){return!ti(t).call(t,n)})),e.className=t.join(" ")}function hL(e,r){var t=e.className.split(" "),a=r.split(" ");t=J(t).call(t,function(n){return!ti(a).call(a,n)}),e.className=t.join(" ")}function fL(e,r){if(re(e))for(var t=e.length,a=0;a<t;a++)r(e[a],a,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r(e[n],n,e)}var vL=Gu;function pL(e,r,t){return e[r]!==t?(e[r]=t,!0):!1}function mL(e){var r=!1;return function(){r||(r=!0,requestAnimationFrame(function(){r=!1,e()}))}}function gL(e,r,t,a){if(e.addEventListener){var n;a===void 0&&(a=!1),r==="mousewheel"&&ti(n=navigator.userAgent).call(n,"Firefox")&&(r="DOMMouseScroll"),e.addEventListener(r,t,a)}else e.attachEvent("on"+r,t)}function yL(e,r,t,a){if(e.removeEventListener){var n;a===void 0&&(a=!1),r==="mousewheel"&&ti(n=navigator.userAgent).call(n,"Firefox")&&(r="DOMMouseScroll"),e.removeEventListener(r,t,a)}else e.detachEvent("on"+r,t)}function _L(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}function bL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event,r=null;return e&&(e.target?r=e.target:e.srcElement&&(r=e.srcElement)),!(r instanceof Element)||r.nodeType!=null&&r.nodeType==3&&(r=r.parentNode,!(r instanceof Element))?null:r}function wL(e,r){for(var t=e;t;){if(t===r)return!0;if(t.parentNode)t=t.parentNode;else return!1}return!1}var kL={asBoolean:function(r,t){return typeof r=="function"&&(r=r()),r!=null?r!=!1:t||null},asNumber:function(r,t){return typeof r=="function"&&(r=r()),r!=null?Number(r)||t||null:t||null},asString:function(r,t){return typeof r=="function"&&(r=r()),r!=null?String(r):t||null},asSize:function(r,t){return typeof r=="function"&&(r=r()),Ft(r)?r:sa(r)?r+"px":t||null},asElement:function(r,t){return typeof r=="function"&&(r=r()),r||t||null}};function Mo(e){var r;switch(e.length){case 3:case 4:return r=JR.exec(e),r?{r:Lt(r[1]+r[1],16),g:Lt(r[2]+r[2],16),b:Lt(r[3]+r[3],16)}:null;case 6:case 7:return r=QR.exec(e),r?{r:Lt(r[1],16),g:Lt(r[2],16),b:Lt(r[3],16)}:null;default:return null}}function xL(e,r){if(ti(e).call(e,"rgba"))return e;if(ti(e).call(e,"rgb")){var t=e.substr(Se(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+r+")"}else{var a=Mo(e);return a==null?e:"rgba("+a.r+","+a.g+","+a.b+","+r+")"}}function ac(e,r,t){var a;return"#"+ht(a=((1<<24)+(e<<16)+(r<<8)+t).toString(16)).call(a,1)}function EL(e,r){if(Ft(e)){var t=e;if(oc(t)){var a,n=ye(a=t.substr(4).substr(0,t.length-5).split(",")).call(a,function(m){return Lt(m)});t=ac(n[0],n[1],n[2])}if(sc(t)===!0){var s=Uy(t),o={h:s.h,s:s.s*.8,v:Math.min(1,s.v*1.02)},l={h:s.h,s:Math.min(1,s.s*1.25),v:s.v*.8},d=tu(l.h,l.s,l.v),u=tu(o.h,o.s,o.v);return{background:t,border:d,highlight:{background:u,border:d},hover:{background:u,border:d}}}else return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else if(r){var f={background:e.background||r.background,border:e.border||r.border,highlight:Ft(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||r.highlight.background,border:e.highlight&&e.highlight.border||r.highlight.border},hover:Ft(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||r.hover.border,background:e.hover&&e.hover.background||r.hover.background}};return f}else{var p={background:e.background||void 0,border:e.border||void 0,highlight:Ft(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:Ft(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}};return p}}function dn(e,r,t){e=e/255,r=r/255,t=t/255;var a=Math.min(e,Math.min(r,t)),n=Math.max(e,Math.max(r,t));if(a===n)return{h:0,s:0,v:a};var s=e===a?r-t:t===a?e-r:t-e,o=e===a?3:t===a?1:5,l=60*(o-s/(n-a))/360,d=(n-a)/n,u=n;return{h:l,s:d,v:u}}function zy(e){var r=document.createElement("div"),t={};r.style.cssText=e;for(var a=0;a<r.style.length;++a)t[r.style[a]]=r.style.getPropertyValue(r.style[a]);return t}function SL(e,r){for(var t=zy(r),a=0,n=vV(t);a<n.length;a++){var s=ut(n[a],2),o=s[0],l=s[1];e.style.setProperty(o,l)}}function $L(e,r){for(var t=zy(r),a=0,n=Ze(t);a<n.length;a++){var s=n[a];e.style.removeProperty(s)}}function oa(e,r,t){var a,n,s,o=Math.floor(e*6),l=e*6-o,d=t*(1-r),u=t*(1-l*r),f=t*(1-(1-l)*r);switch(o%6){case 0:a=t,n=f,s=d;break;case 1:a=u,n=t,s=d;break;case 2:a=d,n=t,s=f;break;case 3:a=d,n=u,s=t;break;case 4:a=f,n=d,s=t;break;case 5:a=t,n=d,s=u;break}return{r:Math.floor(a*255),g:Math.floor(n*255),b:Math.floor(s*255)}}function tu(e,r,t){var a=oa(e,r,t);return ac(a.r,a.g,a.b)}function Uy(e){var r=Mo(e);if(!r)throw new TypeError("'".concat(e,"' is not a valid color."));return dn(r.r,r.g,r.b)}function sc(e){var r=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return r}function oc(e){return eL.test(e)}function Xy(e){return tL.test(e)}function DL(e,r){if(r!==null&&ee(r)==="object"){for(var t=La(r),a=0;a<e.length;a++)Object.prototype.hasOwnProperty.call(r,e[a])&&ee(r[e[a]])=="object"&&(t[e[a]]=lc(r[e[a]]));return t}else return null}function lc(e){if(e===null||ee(e)!=="object")return null;if(e instanceof Element)return e;var r=La(e);for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&ee(e[t])=="object"&&(r[t]=lc(e[t]));return r}function TL(e,r){for(var t=0;t<e.length;t++){var a=e[t],n=void 0;for(n=t;n>0&&r(a,e[n-1])<0;n--)e[n]=e[n-1];e[n]=a}return e}function NL(e,r,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=function(b){return b!=null},s=function(b){return b!==null&&ee(b)==="object"},o=function(b){for(var E in b)if(Object.prototype.hasOwnProperty.call(b,E))return!1;return!0};if(!s(e))throw new Error("Parameter mergeTarget must be an object");if(!s(r))throw new Error("Parameter options must be an object");if(!n(t))throw new Error("Parameter option must have a value");if(!s(a))throw new Error("Parameter globalOptions must be an object");var l=function(b,E,w){s(b[w])||(b[w]={});var S=E[w],D=b[w];for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(D[T]=S[T])},d=r[t],u=s(a)&&!o(a),f=u?a[t]:void 0,p=f?f.enabled:void 0;if(d!==void 0){if(typeof d=="boolean"){s(e[t])||(e[t]={}),e[t].enabled=d;return}if(d===null&&!s(e[t]))if(n(f))e[t]=La(f);else return;if(s(d)){var m=!0;d.enabled!==void 0?m=d.enabled:p!==void 0&&(m=f.enabled),l(e,r,t),e[t].enabled=m}}}function CL(e,r,t,a){for(var n=1e4,s=0,o=0,l=e.length-1;o<=l&&s<n;){var d=Math.floor((o+l)/2),u=e[d],f=a===void 0?u[t]:u[t][a],p=r(f);if(p==0)return d;p==-1?o=d+1:l=d-1,s++}return-1}function OL(e,r,t,a,n){var s=1e4,o=0,l=0,d=e.length-1,u,f,p,m;for(n=n??function(y,b){return y==b?0:y<b?-1:1};l<=d&&o<s;){if(m=Math.floor(.5*(d+l)),u=e[Math.max(0,m-1)][t],f=e[m][t],p=e[Math.min(e.length-1,m+1)][t],n(f,r)==0)return m;if(n(u,r)<0&&n(f,r)>0)return a=="before"?Math.max(0,m-1):m;if(n(f,r)<0&&n(p,r)>0)return a=="before"?m:Math.min(e.length-1,m+1);n(f,r)<0?l=m+1:d=m-1,o++}return-1}var PL={linear:function(r){return r},easeInQuad:function(r){return r*r},easeOutQuad:function(r){return r*(2-r)},easeInOutQuad:function(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic:function(r){return r*r*r},easeOutCubic:function(r){return--r*r*r+1},easeInOutCubic:function(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart:function(r){return r*r*r*r},easeOutQuart:function(r){return 1- --r*r*r*r},easeInOutQuart:function(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint:function(r){return r*r*r*r*r},easeOutQuint:function(r){return 1+--r*r*r*r*r},easeInOutQuint:function(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function IL(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var r=document.createElement("div");r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.visibility="hidden",r.style.width="200px",r.style.height="150px",r.style.overflow="hidden",r.appendChild(e),document.body.appendChild(r);var t=e.offsetWidth;r.style.overflow="scroll";var a=e.offsetWidth;return t==a&&(a=r.clientWidth),document.body.removeChild(r),t-a}function ML(e,r){var t;re(r)||(r=[r]);var a=tc(e),n;try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s){t=s[r[0]];for(var o=1;o<r.length;o++)t&&(t=t[r[o]]);if(typeof t<"u")break}}}catch(l){a.e(l)}finally{a.f()}return t}var AL={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"},qy=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;ue(this,e),this.pixelRatio=r,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return ce(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return AL[t]}},{key:"setColor",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var n,s=this._isColorString(t);if(s!==void 0&&(t=s),Ft(t)===!0){if(oc(t)===!0){var o=t.substr(4).substr(0,t.length-5).split(",");n={r:o[0],g:o[1],b:o[2],a:1}}else if(Xy(t)===!0){var l=t.substr(5).substr(0,t.length-6).split(",");n={r:l[0],g:l[1],b:l[2],a:l[3]}}else if(sc(t)===!0){var d=Mo(t);n={r:d.r,g:d.g,b:d.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var u=t.a!==void 0?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:u}}if(n===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Dt(t));this._setColor(n,a)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;a===!0&&(this.previousColor=Ar({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",ct(function(){t.closeCallback!==void 0&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a===!0&&(this.initialColor=Ar({},t)),this.color=t;var n=dn(t.r,t.g,t.b),s=2*Math.PI,o=this.r*n.s,l=this.centerCoordinates.x+o*Math.sin(s*n.h),d=this.centerCoordinates.y+o*Math.cos(s*n.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=d-.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 a=dn(this.color.r,this.color.g,this.color.b);a.v=t/100;var n=oa(a.h,a.s,a.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,a=dn(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var s=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,s,o),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-a.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fy(n).call(n),this.brightnessRange.value=100*a.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,a,n,s;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 l=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.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{}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{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._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=O(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=O(a=this._apply).call(a,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=O(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=O(s=this._loadLast).call(s,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 nc(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(a){a.isFirst&&t._moveSelector(a)}),this.hammer.on("tap",function(a){t._moveSelector(a)}),this.hammer.on("panstart",function(a){t._moveSelector(a)}),this.hammer.on("panmove",function(a){t._moveSelector(a)}),this.hammer.on("panend",function(a){t._moveSelector(a)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,a,n);var s,o,l,d;this.centerCoordinates={x:a*.5,y:n*.5},this.r=.49*a;var u=2*Math.PI/360,f=1/360,p=1/this.r,m;for(l=0;l<360;l++)for(d=0;d<this.r;d++)s=this.centerCoordinates.x+d*Math.sin(u*l),o=this.centerCoordinates.y+d*Math.cos(u*l),m=oa(l*f,d*p,1),t.fillStyle="rgb("+m.r+","+m.g+","+m.b+")",t.fillRect(s-.5,o-.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,a,n)}this.generated=!0}},{key:"_moveSelector",value:function(t){var a=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-a.left,s=t.center.y-a.top,o=.5*this.colorPickerDiv.clientHeight,l=.5*this.colorPickerDiv.clientWidth,d=n-l,u=s-o,f=Math.atan2(d,u),p=.98*Math.min(Math.sqrt(d*d+u*u),l),m=Math.cos(f)*p+o,y=Math.sin(f)*p+l;this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=y-.5*this.colorPickerSelector.clientWidth+"px";var b=f/(2*Math.PI);b=b<0?b+1:b;var E=p/this.r,w=dn(this.color.r,this.color.g,this.color.b);w.h=b,w.s=E;var S=oa(w.h,w.s,w.v);S.a=this.color.a,this.color=S,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+")"}}]),e}();function ru(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length<1)throw new TypeError("Invalid arguments.");if(r.length===1)return document.createTextNode(r[0]);var a=document.createElement(r[0]);return a.appendChild(ru.apply(void 0,Pe(ht(r).call(r,1)))),a}var VL=function(){function e(r,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};ue(this,e),this.parent=r,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Ar(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new qy(n),this.wrapper=void 0}return ce(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var a=!0;if(typeof t=="string")this.options.filter=t;else if(re(t))this.options.filter=t.join();else if(ee(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),J(t)!==void 0&&(this.options.filter=J(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(a=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,a=t):typeof t=="function"&&(this.options.filter=t,a=!0);J(this.options)===!1&&(a=!1),this.options.enabled=a}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=J(this.options),a=0,n=!1;for(var s in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,s)&&(this.allowCreation=!1,n=!1,typeof t=="function"?(n=t(s,[]),n=n||this._handleObject(this.configureOptions[s],[s],!0)):(t===!0||Se(t).call(t,s)!==-1)&&(n=!0),n!==!1&&(this.allowCreation=!0,a>0&&this._makeItem([]),this._makeHeader(s),this._handleObject(this.configureOptions[s],[s])),a++);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]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var a=this.moduleOptions,n=0;n<t.length;n++)if(a[t[n]]!==void 0)a=a[t[n]];else{a=void 0;break}return a}},{key:"_makeItem",value:function(t){if(this.allowCreation===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return B(s).call(s,function(l){a.appendChild(l)}),this.domElements.push(a),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var a=document.createElement("div");a.className="vis-configuration vis-config-header",a.innerText=t,this._makeItem([],a)}},{key:"_makeLabel",value:function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=document.createElement("div");if(s.className="vis-configuration vis-config-label vis-config-s"+a.length,n===!0){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(ru("i","b",t))}else s.innerText=t+":";return s}},{key:"_makeDropdown",value:function(t,a,n){var s=document.createElement("select");s.className="vis-configuration vis-config-select";var o=0;a!==void 0&&Se(t).call(t,a)!==-1&&(o=Se(t).call(t,a));for(var l=0;l<t.length;l++){var d=document.createElement("option");d.value=t[l],l===o&&(d.selected="selected"),d.innerText=t[l],s.appendChild(d)}var u=this;s.onchange=function(){u._update(this.value,n)};var f=this._makeLabel(n[n.length-1],n);this._makeItem(n,f,s)}},{key:"_makeRange",value:function(t,a,n){var s=t[0],o=t[1],l=t[2],d=t[3],u=document.createElement("input");u.className="vis-configuration vis-config-range";try{u.type="range",u.min=o,u.max=l}catch{}u.step=d;var f="",p=0;if(a!==void 0){var m=1.2;a<0&&a*m<o?(u.min=Math.ceil(a*m),p=u.min,f="range increased"):a/m<o&&(u.min=Math.ceil(a/m),p=u.min,f="range increased"),a*m>l&&l!==1&&(u.max=Math.ceil(a*m),p=u.max,f="range increased"),u.value=a}else u.value=s;var y=document.createElement("input");y.className="vis-configuration vis-config-rangeinput",y.value=u.value;var b=this;u.onchange=function(){y.value=this.value,b._update(Number(this.value),n)},u.oninput=function(){y.value=this.value};var E=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,E,u,y);f!==""&&this.popupHistory[w]!==p&&(this.popupHistory[w]=p,this._setupPopup(f,w))}},{key:"_makeButton",value:function(){var t=this;if(this.options.showButton===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-button",a.innerText="generate options",a.onclick=function(){t._printOptions()},a.onmouseover=function(){a.className="vis-configuration vis-config-button hover"},a.onmouseout=function(){a.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(a)}}},{key:"_setupPopup",value:function(t,a){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var s=document.createElement("div");s.id="vis-configuration-popup",s.className="vis-configuration-popup",s.innerText=t,s.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:s,index:a}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(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(this.popupDiv.html!==void 0){var a=this.domElements[this.popupDiv.index],n=a.getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=ct(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=ct(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,a,n){var s=document.createElement("input");s.type="checkbox",s.className="vis-configuration vis-config-checkbox",s.checked=t,a!==void 0&&(s.checked=a,a!==t&&(ee(t)==="object"?a!==t.enabled&&this.changedOptions.push({path:n,value:a}):this.changedOptions.push({path:n,value:a})));var o=this;s.onchange=function(){o._update(this.checked,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeTextInput",value:function(t,a,n){var s=document.createElement("input");s.type="text",s.className="vis-configuration vis-config-text",s.value=a,a!==t&&this.changedOptions.push({path:n,value:a});var o=this;s.onchange=function(){o._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeColorField",value:function(t,a,n){var s=this,o=t[1],l=document.createElement("div");a=a===void 0?o:a,a!=="none"?(l.className="vis-configuration vis-config-colorBlock",l.style.backgroundColor=a):l.className="vis-configuration vis-config-colorBlock none",a=a===void 0?o:a,l.onclick=function(){s._showColorPicker(a,l,n)};var d=this._makeLabel(n[n.length-1],n);this._makeItem(n,d,l)}},{key:"_showColorPicker",value:function(t,a,n){var s=this;a.onclick=function(){},this.colorPicker.insertTo(a),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(o){var l="rgba("+o.r+","+o.g+","+o.b+","+o.a+")";a.style.backgroundColor=l,s._update(l,n)}),this.colorPicker.setCloseCallback(function(){a.onclick=function(){s._showColorPicker(t,a,n)}})}},{key:"_handleObject",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=!1,o=J(this.options),l=!1;for(var d in t)if(Object.prototype.hasOwnProperty.call(t,d)){s=!0;var u=t[d],f=ba(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!re(u)&&typeof u!="string"&&typeof u!="boolean"&&u instanceof Object&&(this.allowCreation=!1,s=this._handleObject(u,f,!0),this.allowCreation=n===!1)),s!==!1){l=!0;var p=this._getValue(f);if(re(u))this._handleArray(u,p,f);else if(typeof u=="string")this._makeTextInput(u,p,f);else if(typeof u=="boolean")this._makeCheckbox(u,p,f);else if(u instanceof Object){if(!this.hideOption(a,d,this.moduleOptions))if(u.enabled!==void 0){var m=ba(f,"enabled"),y=this._getValue(m);if(y===!0){var b=this._makeLabel(d,f,!0);this._makeItem(f,b),l=this._handleObject(u,f)||l}else this._makeCheckbox(u,y,f)}else{var E=this._makeLabel(d,f,!0);this._makeItem(f,E),l=this._handleObject(u,f)||l}}else console.error("dont know how to handle",u,d,f)}}return l}},{key:"_handleArray",value:function(t,a,n){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,a,n),t[1]!==a&&this.changedOptions.push({path:n,value:a})):typeof t[0]=="string"?(this._makeDropdown(t,a,n),t[0]!==a&&this.changedOptions.push({path:n,value:a})):typeof t[0]=="number"&&(this._makeRange(t,a,n),t[0]!==a&&this.changedOptions.push({path:n,value:Number(a)}))}},{key:"_update",value:function(t,a){var n=this._constructOptions(t,a);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var o=0;o<a.length;o++)a[o]!=="global"&&(s[a[o]]===void 0&&(s[a[o]]={}),o!==a.length-1?s=s[a[o]]:s[a[o]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(ru("pre","const options = "+Dt(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},a=0;a<this.changedOptions.length;a++)this._constructOptions(this.changedOptions[a].value,this.changedOptions[a].path,t);return t}}]),e}(),RL=function(){function e(r,t){ue(this,e),this.container=r,this.overflowMethod=t||"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 ce(e,[{key:"setPosition",value:function(t,a){this.x=Lt(t),this.y=Lt(a)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(t===void 0&&(t=!0),t===!0){var a=this.frame.clientHeight,n=this.frame.clientWidth,s=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,l=0,d=0;if(this.overflowMethod=="flip"){var u=!1,f=!0;this.y-a<this.padding&&(f=!1),this.x+n>o-this.padding&&(u=!0),u?l=this.x-n:l=this.x,f?d=this.y-a:d=this.y}else d=this.y-a,d+a+this.padding>s&&(d=s-a-this.padding),d<this.padding&&(d=this.padding),l=this.x,l+n+this.padding>o&&(l=o-n-this.padding),l<this.padding&&(l=this.padding);this.frame.style.left=l+"px",this.frame.style.top=d+"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)}}]),e}(),Zn=!1,xv,iu="background: #FFeeee; color: #dd0000",LL=function(){function e(){ue(this,e)}return ce(e,null,[{key:"validate",value:function(t,a,n){Zn=!1,xv=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(t,s,[]),Zn}},{key:"parse",value:function(t,a,n){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.check(s,t,a,n)}},{key:"check",value:function(t,a,n,s){if(n[t]===void 0&&n.__any__===void 0){e.getSuggestion(t,n,s);return}var o=t,l=!0;n[t]===void 0&&n.__any__!==void 0&&(o="__any__",l=e.getType(a[t])==="object");var d=n[o];l&&d.__type__!==void 0&&(d=d.__type__),e.checkFields(t,a,n,o,d,s)}},{key:"checkFields",value:function(t,a,n,s,o,l){var d=function(m){console.error("%c"+m+e.printLocation(l,t),iu)},u=e.getType(a[t]),f=o[u];f!==void 0?e.getType(f)==="array"&&Se(f).call(f,a[t])===-1?(d('Invalid option detected in "'+t+'". Allowed values are:'+e.print(f)+' not "'+a[t]+'". '),Zn=!0):u==="object"&&s!=="__any__"&&(l=ba(l,t),e.parse(a[t],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+t+'". Expected: '+e.print(Ze(o))+". Received ["+u+'] "'+a[t]+'"'),Zn=!0)}},{key:"getType",value:function(t){var a=ee(t);return a==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":re(t)?"array":t instanceof Date?"date":t.nodeType!==void 0?"dom":t._isAMomentObject===!0?"moment":"object":a==="number"?"number":a==="boolean"?"boolean":a==="string"?"string":a===void 0?"undefined":a}},{key:"getSuggestion",value:function(t,a,n){var s=e.findInOptions(t,a,n,!1),o=e.findInOptions(t,xv,[],!0),l=8,d=4,u;s.indexMatch!==void 0?u=" in "+e.printLocation(s.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+`"?
|
50
|
+
|
51
|
+
`:o.distance<=d&&s.distance>o.distance?u=" in "+e.printLocation(s.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""):s.distance<=l?u='. Did you mean "'+s.closestMatch+'"?'+e.printLocation(s.path,t):u=". Did you mean one of these: "+e.print(Ze(a))+e.printLocation(n,t),console.error('%cUnknown option detected: "'+t+'"'+u,iu),Zn=!0}},{key:"findInOptions",value:function(t,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],u=t.toLowerCase(),f=void 0;for(var p in a){var m=void 0;if(a[p].__type__!==void 0&&s===!0){var y=e.findInOptions(t,a[p],ba(n,p));o>y.distance&&(l=y.closestMatch,d=y.path,o=y.distance,f=y.indexMatch)}else{var b;Se(b=p.toLowerCase()).call(b,u)!==-1&&(f=p),m=e.levenshteinDistance(t,p),o>m&&(l=p,d=Gy(n),o=m)}}return{closestMatch:l,path:d,distance:o,indexMatch:f}}},{key:"printLocation",value:function(t,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
52
|
+
`,s=`
|
53
|
+
|
54
|
+
`+n+`options = {
|
55
|
+
`,o=0;o<t.length;o++){for(var l=0;l<o+1;l++)s+=" ";s+=t[o]+`: {
|
56
|
+
`}for(var d=0;d<t.length+1;d++)s+=" ";s+=a+`
|
57
|
+
`;for(var u=0;u<t.length+1;u++){for(var f=0;f<t.length-u;f++)s+=" ";s+=`}
|
58
|
+
`}return s+`
|
59
|
+
|
60
|
+
`}},{key:"print",value:function(t){return Dt(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,a){if(t.length===0)return a.length;if(a.length===0)return t.length;var n=[],s;for(s=0;s<=a.length;s++)n[s]=[s];var o;for(o=0;o<=t.length;o++)n[0][o]=o;for(s=1;s<=a.length;s++)for(o=1;o<=t.length;o++)a.charAt(s-1)==t.charAt(o-1)?n[s][o]=n[s-1][o-1]:n[s][o]=Math.min(n[s-1][o-1]+1,Math.min(n[s][o-1]+1,n[s-1][o]+1));return n[a.length][t.length]}}]),e}(),FL=pr,YL=qy,jL=VL,BL=nc,HL=RL,WL=iu,GL=LL,zL=Object.freeze({__proto__:null,Activator:FL,Alea:GR,ColorPicker:YL,Configurator:jL,DELETE:rc,HSVToHex:tu,HSVToRGB:oa,Hammer:BL,Popup:HL,RGBToHSV:dn,RGBToHex:ac,VALIDATOR_PRINT_STYLE:WL,Validator:GL,addClassName:cL,addCssText:SL,addEventListener:gL,binarySearchCustom:CL,binarySearchValue:OL,bridgeObject:lc,copyAndExtendArray:ba,copyArray:Gy,deepExtend:_a,deepObjectAssign:ic,easingFunctions:PL,equalArray:oL,extend:iL,fillIfDefined:Wy,forEach:fL,getAbsoluteLeft:lL,getAbsoluteRight:dL,getAbsoluteTop:uL,getScrollBarWidth:IL,getTarget:bL,getType:ra,hasParent:wL,hexToHSV:Uy,hexToRGB:Mo,insertSort:TL,isDate:rL,isNumber:sa,isObject:eu,isString:Ft,isValidHex:sc,isValidRGB:oc,isValidRGBA:Xy,mergeOptions:NL,option:kL,overrideOpacity:xL,parseColor:EL,preventDefault:_L,pureDeepObjectAssign:Yy,recursiveDOMDelete:Hy,removeClassName:hL,removeCssText:$L,removeEventListener:yL,selectiveBridgeObject:DL,selectiveDeepExtend:aL,selectiveExtend:nL,selectiveNotDeepExtend:sL,throttle:mL,toArray:vL,topMost:ML,updateProperty:pL});function Kr(e){for(var r in e)e.hasOwnProperty(r)&&(e[r].redundant=e[r].used,e[r].used=[])}function zt(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r].redundant){for(var t=0;t<e[r].redundant.length;t++)e[r].redundant[t].parentNode.removeChild(e[r].redundant[t]);e[r].redundant=[]}}function UL(e){Kr(e),zt(e),Kr(e)}function ar(e,r,t){var a;return r.hasOwnProperty(e)?r[e].redundant.length>0?(a=r[e].redundant[0],r[e].redundant.shift()):(a=document.createElementNS("http://www.w3.org/2000/svg",e),t.appendChild(a)):(a=document.createElementNS("http://www.w3.org/2000/svg",e),r[e]={used:[],redundant:[]},t.appendChild(a)),r[e].used.push(a),a}function Jl(e,r,t,a){var n;return r.hasOwnProperty(e)?r[e].redundant.length>0?(n=r[e].redundant[0],r[e].redundant.shift()):(n=document.createElement(e),a!==void 0?t.insertBefore(n,a):t.appendChild(n)):(n=document.createElement(e),r[e]={used:[],redundant:[]},a!==void 0?t.insertBefore(n,a):t.appendChild(n)),r[e].used.push(n),n}function _n(e,r,t,a,n,s){var o;if(t.style=="circle"?(o=ar("circle",a,n),o.setAttributeNS(null,"cx",e),o.setAttributeNS(null,"cy",r),o.setAttributeNS(null,"r",.5*t.size)):(o=ar("rect",a,n),o.setAttributeNS(null,"x",e-.5*t.size),o.setAttributeNS(null,"y",r-.5*t.size),o.setAttributeNS(null,"width",t.size),o.setAttributeNS(null,"height",t.size)),t.styles!==void 0&&o.setAttributeNS(null,"style",t.styles),o.setAttributeNS(null,"class",t.className+" vis-point"),s){var l=ar("text",a,n);s.xOffset&&(e=e+s.xOffset),s.yOffset&&(r=r+s.yOffset),s.content&&(l.textContent=s.content),s.className&&l.setAttributeNS(null,"class",s.className+" vis-label"),l.setAttributeNS(null,"x",e),l.setAttributeNS(null,"y",r)}return o}function nu(e,r,t,a,n,s,o,l){if(a!=0){a<0&&(a*=-1,r-=a);var d=ar("rect",s,o);d.setAttributeNS(null,"x",e-.5*t),d.setAttributeNS(null,"y",r),d.setAttributeNS(null,"width",t),d.setAttributeNS(null,"height",a),d.setAttributeNS(null,"class",n),l&&d.setAttributeNS(null,"style",l)}}function XL(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch{return"en"}}function Ee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var qL=oy,KL=qL,ZL=KL,QL=ZL,Ky=QL,JL=z(Ky),eF=U,tF=Cm;eF({target:"Object",stat:!0},{setPrototypeOf:tF});var rF=be,iF=rF.Object.setPrototypeOf,nF=iF,aF=nF,sF=aF,oF=sF,lF=oF,dF=lF,Zy=dF,au=z(Zy),uF=Ug,cF=uF,hF=cF,fF=hF,vF=fF,Qy=z(vF);function su(e,r){var t;return su=au?Qy(t=au).call(t):function(n,s){return n.__proto__=s,n},su(e,r)}function wt(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=JL(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),xo(e,"prototype",{writable:!1}),r&&su(e,r)}function Pt(e,r){if(r&&(ee(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(e)}var pF=Qg,mF=pF,gF=mF,yF=gF,Jy=yF,Ev=z(Jy);function _e(e){var r;return _e=au?Qy(r=Ev).call(r):function(a){return a.__proto__||Ev(a)},_e(e)}function fe(e,r,t){return r=Pg(r),r in e?xo(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var e_={exports:{}},t_={exports:{}};(function(e){var r=Hu,t=Og;function a(n){"@babel/helpers - typeof";return e.exports=a=typeof r=="function"&&typeof t=="symbol"?function(s){return typeof s}:function(s){return s&&typeof r=="function"&&s.constructor===r&&s!==r.prototype?"symbol":typeof s},e.exports.__esModule=!0,e.exports.default=e.exports,a(n)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(t_);var _F=t_.exports,bF=Xg,wF=bF,kF=wF,xF=kF,EF=xF,Sv=qe,SF=Wu,$F=Ii,DF=Nt,TF=function(e,r,t){for(var a=SF(r),n=DF.f,s=$F.f,o=0;o<a.length;o++){var l=a[o];!Sv(e,l)&&!(t&&Sv(t,l))&&n(e,l,s(r,l))}},NF=tt,CF=Yr,OF=function(e,r){NF(r)&&"cause"in r&&CF(e,"cause",r.cause)},PF=ge,r_=Error,IF=PF("".replace),MF=function(e){return String(new r_(e).stack)}("zxcasd"),i_=/\n\s*at [^:]*:[^\n]*/,AF=i_.test(MF),VF=function(e,r){if(AF&&typeof e=="string"&&!r_.prepareStackTrace)for(;r--;)e=IF(e,i_,"");return e},RF=ve,LF=Pi,FF=!RF(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",LF(1,7)),e.stack!==7):!0}),YF=Yr,jF=VF,BF=FF,$v=Error.captureStackTrace,HF=function(e,r,t,a){BF&&($v?$v(e,r):YF(e,"stack",jF(t,a)))},WF=ni,GF=rt,zF=Ht,UF=Tn,XF=Mm,qF=Ot,Dv=$e,KF=Au,ZF=ko,Tv=Im,QF=TypeError,js=function(e,r){this.stopped=e,this.result=r},Nv=js.prototype,Ri=function(e,r,t){var a=t&&t.that,n=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),l=!!(t&&t.INTERRUPTED),d=WF(r,a),u,f,p,m,y,b,E,w=function(D){return u&&Tv(u,"normal",D),new js(!0,D)},S=function(D){return n?(zF(D),l?d(D[0],D[1],w):d(D[0],D[1])):l?d(D,w):d(D)};if(s)u=e.iterator;else if(o)u=e;else{if(f=ZF(e),!f)throw new QF(UF(e)+" is not iterable");if(XF(f)){for(p=0,m=qF(e);m>p;p++)if(y=S(e[p]),y&&Dv(Nv,y))return y;return new js(!1)}u=KF(e,f)}for(b=s?e.next:u.next;!(E=GF(b,u)).done;){try{y=S(E.value)}catch(D){Tv(u,"throw",D)}if(typeof y=="object"&&y&&Dv(Nv,y))return y}return new js(!1)},JF=qt,e5=function(e,r){return e===void 0?arguments.length<2?"":r:JF(e)},t5=U,r5=$e,i5=Ca,Js=Cm,n5=TF,n_=Mi,ed=Yr,td=Pi,a5=OF,s5=HF,o5=Ri,l5=e5,d5=Me,u5=d5("toStringTag"),eo=Error,c5=[].push,bn=function(r,t){var a=r5(rd,this),n;Js?n=Js(new eo,a?i5(this):rd):(n=a?this:n_(rd),ed(n,u5,"Error")),t!==void 0&&ed(n,"message",l5(t)),s5(n,bn,n.stack,1),arguments.length>2&&a5(n,arguments[2]);var s=[];return o5(r,c5,{that:s}),ed(n,"errors",s),n};Js?Js(bn,eo):n5(bn,eo,{name:!0});var rd=bn.prototype=n_(eo.prototype,{constructor:td(1,bn),message:td(1,""),name:td(1,"AggregateError")});t5({global:!0},{AggregateError:bn});var h5=Ie,f5=Lr,Wa=f5(h5.process)==="process",v5=bt,p5=Ru,m5=Me,g5=Qe,Cv=m5("species"),a_=function(e){var r=v5(e);g5&&r&&!r[Cv]&&p5(r,Cv,{configurable:!0,get:function(){return this}})},y5=$e,_5=TypeError,dc=function(e,r){if(y5(r,e))return e;throw new _5("Incorrect invocation")},b5=wo,w5=Tn,k5=TypeError,s_=function(e){if(b5(e))return e;throw new k5(w5(e)+" is not a constructor")},Ov=Ht,x5=s_,E5=En,S5=Me,$5=S5("species"),o_=function(e,r){var t=Ov(e).constructor,a;return t===void 0||E5(a=Ov(t)[$5])?r:x5(a)},D5=ii,l_=/(?:ipad|iphone|ipod).*applewebkit/i.test(D5),Yt=Ie,T5=Cn,N5=ni,Pv=Be,C5=qe,d_=ve,Iv=Em,O5=Va,Mv=Du,P5=ly,I5=l_,M5=Wa,ou=Yt.setImmediate,Av=Yt.clearImmediate,A5=Yt.process,id=Yt.Dispatch,V5=Yt.Function,Vv=Yt.MessageChannel,R5=Yt.String,nd=0,la={},Rv="onreadystatechange",wa,vi,ad,sd;d_(function(){wa=Yt.location});var uc=function(e){if(C5(la,e)){var r=la[e];delete la[e],r()}},od=function(e){return function(){uc(e)}},Lv=function(e){uc(e.data)},Fv=function(e){Yt.postMessage(R5(e),wa.protocol+"//"+wa.host)};(!ou||!Av)&&(ou=function(r){P5(arguments.length,1);var t=Pv(r)?r:V5(r),a=O5(arguments,1);return la[++nd]=function(){T5(t,void 0,a)},vi(nd),nd},Av=function(r){delete la[r]},M5?vi=function(e){A5.nextTick(od(e))}:id&&id.now?vi=function(e){id.now(od(e))}:Vv&&!I5?(ad=new Vv,sd=ad.port2,ad.port1.onmessage=Lv,vi=N5(sd.postMessage,sd)):Yt.addEventListener&&Pv(Yt.postMessage)&&!Yt.importScripts&&wa&&wa.protocol!=="file:"&&!d_(Fv)?(vi=Fv,Yt.addEventListener("message",Lv,!1)):Rv in Mv("script")?vi=function(e){Iv.appendChild(Mv("script"))[Rv]=function(){Iv.removeChild(this),uc(e)}}:vi=function(e){setTimeout(od(e),0)});var u_={set:ou},c_=function(){this.head=null,this.tail=null};c_.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}};var h_=c_,L5=ii,F5=/ipad|iphone|ipod/i.test(L5)&&typeof Pebble<"u",Y5=ii,j5=/web0s(?!.*chrome)/i.test(Y5),Ni=Ie,Yv=ni,B5=Ii.f,ld=u_.set,H5=h_,W5=l_,G5=F5,z5=j5,dd=Wa,jv=Ni.MutationObserver||Ni.WebKitMutationObserver,Bv=Ni.document,Hv=Ni.process,$s=Ni.Promise,Wv=B5(Ni,"queueMicrotask"),lu=Wv&&Wv.value,Zi,ud,cd,Ds,Gv;if(!lu){var Ts=new H5,Ns=function(){var e,r;for(dd&&(e=Hv.domain)&&e.exit();r=Ts.get();)try{r()}catch(t){throw Ts.head&&Zi(),t}e&&e.enter()};!W5&&!dd&&!z5&&jv&&Bv?(ud=!0,cd=Bv.createTextNode(""),new jv(Ns).observe(cd,{characterData:!0}),Zi=function(){cd.data=ud=!ud}):!G5&&$s&&$s.resolve?(Ds=$s.resolve(void 0),Ds.constructor=$s,Gv=Yv(Ds.then,Ds),Zi=function(){Gv(Ns)}):dd?Zi=function(){Hv.nextTick(Ns)}:(ld=Yv(ld,Ni),Zi=function(){ld(Ns)}),lu=function(e){Ts.head||Zi(),Ts.add(e)}}var U5=lu,X5=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch{}},Vn=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}},q5=Ie,Rn=q5.Promise,f_=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",K5=f_,Z5=Wa,Q5=!K5&&!Z5&&typeof window=="object"&&typeof document=="object",J5=Ie,da=Rn,e3=Be,t3=bm,r3=Am,i3=Me,n3=Q5,a3=f_,hd=$n,zv=da&&da.prototype,s3=i3("species"),Uv=!1,v_=e3(J5.PromiseRejectionEvent),o3=t3("Promise",function(){var e=r3(da),r=e!==String(da);if(!r&&hd===66||!(zv.catch&&zv.finally))return!0;if(!hd||hd<51||!/native code/.test(e)){var t=new da(function(s){s(1)}),a=function(s){s(function(){},function(){})},n=t.constructor={};if(n[s3]=a,Uv=t.then(function(){})instanceof a,!Uv)return!0}return!r&&(n3||a3)&&!v_}),Ga={CONSTRUCTOR:o3,REJECTION_EVENT:v_},yr={},Xv=Ct,l3=TypeError,d3=function(e){var r,t;this.promise=new e(function(a,n){if(r!==void 0||t!==void 0)throw new l3("Bad Promise constructor");r=a,t=n}),this.resolve=Xv(r),this.reject=Xv(t)};yr.f=function(e){return new d3(e)};var u3=U,to=Wa,ri=Ie,za=rt,c3=On,h3=Ai,f3=a_,v3=Ct,du=Be,p3=tt,m3=dc,g3=o_,p_=u_.set,cc=U5,y3=X5,_3=Vn,b3=h_,m_=Nn,uu=Rn,g_=Ga,y_=yr,Ao="Promise",__=g_.CONSTRUCTOR,w3=g_.REJECTION_EVENT,fd=m_.getterFor(Ao),k3=m_.set,x3=uu&&uu.prototype,un=uu,vd=x3,b_=ri.TypeError,cu=ri.document,hc=ri.process,hu=y_.f,E3=hu,S3=!!(cu&&cu.createEvent&&ri.dispatchEvent),w_="unhandledrejection",$3="rejectionhandled",qv=0,k_=1,D3=2,fc=1,x_=2,Cs,Kv,T3,E_=function(e){var r;return p3(e)&&du(r=e.then)?r:!1},S_=function(e,r){var t=r.value,a=r.state===k_,n=a?e.ok:e.fail,s=e.resolve,o=e.reject,l=e.domain,d,u,f;try{n?(a||(r.rejection===x_&&C3(r),r.rejection=fc),n===!0?d=t:(l&&l.enter(),d=n(t),l&&(l.exit(),f=!0)),d===e.promise?o(new b_("Promise-chain cycle")):(u=E_(d))?za(u,d,s,o):s(d)):o(t)}catch(p){l&&!f&&l.exit(),o(p)}},$_=function(e,r){e.notified||(e.notified=!0,cc(function(){for(var t=e.reactions,a;a=t.get();)S_(a,e);e.notified=!1,r&&!e.rejection&&N3(e)}))},D_=function(e,r,t){var a,n;S3?(a=cu.createEvent("Event"),a.promise=r,a.reason=t,a.initEvent(e,!1,!0),ri.dispatchEvent(a)):a={promise:r,reason:t},!w3&&(n=ri["on"+e])?n(a):e===w_&&y3("Unhandled promise rejection",t)},N3=function(e){za(p_,ri,function(){var r=e.facade,t=e.value,a=Zv(e),n;if(a&&(n=_3(function(){to?hc.emit("unhandledRejection",t,r):D_(w_,r,t)}),e.rejection=to||Zv(e)?x_:fc,n.error))throw n.value})},Zv=function(e){return e.rejection!==fc&&!e.parent},C3=function(e){za(p_,ri,function(){var r=e.facade;to?hc.emit("rejectionHandled",r):D_($3,r,e.value)})},cn=function(e,r,t){return function(a){e(r,a,t)}},hn=function(e,r,t){e.done||(e.done=!0,t&&(e=t),e.value=r,e.state=D3,$_(e,!0))},fu=function(e,r,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===r)throw new b_("Promise can't be resolved itself");var a=E_(r);a?cc(function(){var n={done:!1};try{za(a,r,cn(fu,n,e),cn(hn,n,e))}catch(s){hn(n,s,e)}}):(e.value=r,e.state=k_,$_(e,!1))}catch(n){hn({done:!1},n,e)}}};__&&(un=function(r){m3(this,vd),v3(r),za(Cs,this);var t=fd(this);try{r(cn(fu,t),cn(hn,t))}catch(a){hn(t,a)}},vd=un.prototype,Cs=function(r){k3(this,{type:Ao,done:!1,notified:!1,parent:!1,reactions:new b3,rejection:!1,state:qv,value:void 0})},Cs.prototype=c3(vd,"then",function(r,t){var a=fd(this),n=hu(g3(this,un));return a.parent=!0,n.ok=du(r)?r:!0,n.fail=du(t)&&t,n.domain=to?hc.domain:void 0,a.state===qv?a.reactions.add(n):cc(function(){S_(n,a)}),n.promise}),Kv=function(){var e=new Cs,r=fd(e);this.promise=e,this.resolve=cn(fu,r),this.reject=cn(hn,r)},y_.f=hu=function(e){return e===un||e===T3?new Kv(e):E3(e)});u3({global:!0,wrap:!0,forced:__},{Promise:un});h3(un,Ao,!1,!0);f3(Ao);var O3=Rn,P3=Bm,I3=Ga.CONSTRUCTOR,Vo=I3||!P3(function(e){O3.all(e).then(void 0,function(){})}),M3=U,A3=rt,V3=Ct,R3=yr,L3=Vn,F3=Ri,Y3=Vo;M3({target:"Promise",stat:!0,forced:Y3},{all:function(r){var t=this,a=R3.f(t),n=a.resolve,s=a.reject,o=L3(function(){var l=V3(t.resolve),d=[],u=0,f=1;F3(r,function(p){var m=u++,y=!1;f++,A3(l,t,p).then(function(b){y||(y=!0,d[m]=b,--f||n(d))},s)}),--f||n(d)});return o.error&&s(o.value),a.promise}});var j3=U,B3=Ga.CONSTRUCTOR,Qv=Rn;Qv&&Qv.prototype;j3({target:"Promise",proto:!0,forced:B3,real:!0},{catch:function(e){return this.then(void 0,e)}});var H3=U,W3=rt,G3=Ct,z3=yr,U3=Vn,X3=Ri,q3=Vo;H3({target:"Promise",stat:!0,forced:q3},{race:function(r){var t=this,a=z3.f(t),n=a.reject,s=U3(function(){var o=G3(t.resolve);X3(r,function(l){W3(o,t,l).then(a.resolve,n)})});return s.error&&n(s.value),a.promise}});var K3=U,Z3=rt,Q3=yr,J3=Ga.CONSTRUCTOR;K3({target:"Promise",stat:!0,forced:J3},{reject:function(r){var t=Q3.f(this);return Z3(t.reject,void 0,r),t.promise}});var e4=Ht,t4=tt,r4=yr,T_=function(e,r){if(e4(e),t4(r)&&r.constructor===e)return r;var t=r4.f(e),a=t.resolve;return a(r),t.promise},i4=U,n4=bt,a4=kk,s4=Rn,o4=Ga.CONSTRUCTOR,l4=T_,d4=n4("Promise"),u4=!o4;i4({target:"Promise",stat:!0,forced:a4},{resolve:function(r){return l4(u4&&this===d4?s4:this,r)}});var c4=U,h4=rt,f4=Ct,v4=yr,p4=Vn,m4=Ri,g4=Vo;c4({target:"Promise",stat:!0,forced:g4},{allSettled:function(r){var t=this,a=v4.f(t),n=a.resolve,s=a.reject,o=p4(function(){var l=f4(t.resolve),d=[],u=0,f=1;m4(r,function(p){var m=u++,y=!1;f++,h4(l,t,p).then(function(b){y||(y=!0,d[m]={status:"fulfilled",value:b},--f||n(d))},function(b){y||(y=!0,d[m]={status:"rejected",reason:b},--f||n(d))})}),--f||n(d)});return o.error&&s(o.value),a.promise}});var y4=U,_4=rt,b4=Ct,w4=bt,k4=yr,x4=Vn,E4=Ri,S4=Vo,Jv="No one promise resolved";y4({target:"Promise",stat:!0,forced:S4},{any:function(r){var t=this,a=w4("AggregateError"),n=k4.f(t),s=n.resolve,o=n.reject,l=x4(function(){var d=b4(t.resolve),u=[],f=0,p=1,m=!1;E4(r,function(y){var b=f++,E=!1;p++,_4(d,t,y).then(function(w){E||m||(m=!0,s(w))},function(w){E||m||(E=!0,u[b]=w,--p||o(new a(u,Jv)))})}),--p||o(new a(u,Jv))});return l.error&&o(l.value),n.promise}});var $4=U,vu=Rn,D4=ve,T4=bt,N4=Be,C4=o_,ep=T_,O4=vu&&vu.prototype,P4=!!vu&&D4(function(){O4.finally.call({then:function(){}},function(){})});$4({target:"Promise",proto:!0,real:!0,forced:P4},{finally:function(e){var r=C4(this,T4("Promise")),t=N4(e);return this.then(t?function(a){return ep(r,e()).then(function(){return a})}:e,t?function(a){return ep(r,e()).then(function(){throw a})}:e)}});var I4=be,M4=I4.Promise,A4=M4,V4=A4,R4=U,L4=yr;R4({target:"Promise",stat:!0},{withResolvers:function(){var r=L4.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var F4=V4,Y4=F4,j4=U,B4=yr,H4=Vn;j4({target:"Promise",stat:!0,forced:!0},{try:function(e){var r=B4.f(this),t=H4(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}});var W4=Y4,G4=W4,z4=G4,U4=qg,X4=U4,q4=X4,K4=q4,Z4=K4;(function(e){var r=_F.default,t=Zm,a=Hu,n=Ky,s=Jy,o=EF,l=Vg,d=Zy,u=z4,f=Z4,p=Lg;function m(){e.exports=m=function(){return b},e.exports.__esModule=!0,e.exports.default=e.exports;var y,b={},E=Object.prototype,w=E.hasOwnProperty,S=t||function(j,R,Y){j[R]=Y.value},D=typeof a=="function"?a:{},T=D.iterator||"@@iterator",P=D.asyncIterator||"@@asyncIterator",F=D.toStringTag||"@@toStringTag";function A(j,R,Y){return t(j,R,{value:Y,enumerable:!0,configurable:!0,writable:!0}),j[R]}try{A({},"")}catch{A=function(Y,X,ie){return Y[X]=ie}}function V(j,R,Y,X){var ie=R&&R.prototype instanceof de?R:de,te=n(ie.prototype),Ye=new jn(X||[]);return S(te,"_invoke",{value:Fn(j,Y,Ye)}),te}function N(j,R,Y){try{return{type:"normal",arg:j.call(R,Y)}}catch(X){return{type:"throw",arg:X}}}b.wrap=V;var I="suspendedStart",M="suspendedYield",H="executing",W="completed",q={};function de(){}function Ae(){}function Je(){}var Fe={};A(Fe,T,function(){return this});var xt=s,_r=xt&&xt(xt(Wr([])));_r&&_r!==E&&w.call(_r,T)&&(Fe=_r);var We=Je.prototype=de.prototype=n(Fe);function ur(j){var R;o(R=["next","throw","return"]).call(R,function(Y){A(j,Y,function(X){return this._invoke(Y,X)})})}function Zt(j,R){function Y(ie,te,Ye,it){var st=N(j[ie],j,te);if(st.type!=="throw"){var wr=st.arg,cr=wr.value;return cr&&r(cr)=="object"&&w.call(cr,"__await")?R.resolve(cr.__await).then(function(It){Y("next",It,Ye,it)},function(It){Y("throw",It,Ye,it)}):R.resolve(cr).then(function(It){wr.value=It,Ye(wr)},function(It){return Y("throw",It,Ye,it)})}it(st.arg)}var X;S(this,"_invoke",{value:function(te,Ye){function it(){return new R(function(st,wr){Y(te,Ye,st,wr)})}return X=X?X.then(it,it):it()}})}function Fn(j,R,Y){var X=I;return function(ie,te){if(X===H)throw new Error("Generator is already running");if(X===W){if(ie==="throw")throw te;return{value:y,done:!0}}for(Y.method=ie,Y.arg=te;;){var Ye=Y.delegate;if(Ye){var it=br(Ye,Y);if(it){if(it===q)continue;return it}}if(Y.method==="next")Y.sent=Y._sent=Y.arg;else if(Y.method==="throw"){if(X===I)throw X=W,Y.arg;Y.dispatchException(Y.arg)}else Y.method==="return"&&Y.abrupt("return",Y.arg);X=H;var st=N(j,R,Y);if(st.type==="normal"){if(X=Y.done?W:M,st.arg===q)continue;return{value:st.arg,done:Y.done}}st.type==="throw"&&(X=W,Y.method="throw",Y.arg=st.arg)}}}function br(j,R){var Y=R.method,X=j.iterator[Y];if(X===y)return R.delegate=null,Y==="throw"&&j.iterator.return&&(R.method="return",R.arg=y,br(j,R),R.method==="throw")||Y!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+Y+"' method")),q;var ie=N(X,j.iterator,R.arg);if(ie.type==="throw")return R.method="throw",R.arg=ie.arg,R.delegate=null,q;var te=ie.arg;return te?te.done?(R[j.resultName]=te.value,R.next=j.nextLoc,R.method!=="return"&&(R.method="next",R.arg=y),R.delegate=null,q):te:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,q)}function K(j){var R,Y={tryLoc:j[0]};1 in j&&(Y.catchLoc=j[1]),2 in j&&(Y.finallyLoc=j[2],Y.afterLoc=j[3]),l(R=this.tryEntries).call(R,Y)}function Yn(j){var R=j.completion||{};R.type="normal",delete R.arg,j.completion=R}function jn(j){this.tryEntries=[{tryLoc:"root"}],o(j).call(j,K,this),this.reset(!0)}function Wr(j){if(j||j===""){var R=j[T];if(R)return R.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var Y=-1,X=function ie(){for(;++Y<j.length;)if(w.call(j,Y))return ie.value=j[Y],ie.done=!1,ie;return ie.value=y,ie.done=!0,ie};return X.next=X}}throw new TypeError(r(j)+" is not iterable")}return Ae.prototype=Je,S(We,"constructor",{value:Je,configurable:!0}),S(Je,"constructor",{value:Ae,configurable:!0}),Ae.displayName=A(Je,F,"GeneratorFunction"),b.isGeneratorFunction=function(j){var R=typeof j=="function"&&j.constructor;return!!R&&(R===Ae||(R.displayName||R.name)==="GeneratorFunction")},b.mark=function(j){return d?d(j,Je):(j.__proto__=Je,A(j,F,"GeneratorFunction")),j.prototype=n(We),j},b.awrap=function(j){return{__await:j}},ur(Zt.prototype),A(Zt.prototype,P,function(){return this}),b.AsyncIterator=Zt,b.async=function(j,R,Y,X,ie){ie===void 0&&(ie=u);var te=new Zt(V(j,R,Y,X),ie);return b.isGeneratorFunction(R)?te:te.next().then(function(Ye){return Ye.done?Ye.value:te.next()})},ur(We),A(We,F,"Generator"),A(We,T,function(){return this}),A(We,"toString",function(){return"[object Generator]"}),b.keys=function(j){var R=Object(j),Y=[];for(var X in R)l(Y).call(Y,X);return f(Y).call(Y),function ie(){for(;Y.length;){var te=Y.pop();if(te in R)return ie.value=te,ie.done=!1,ie}return ie.done=!0,ie}},b.values=Wr,jn.prototype={constructor:jn,reset:function(R){var Y;if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,o(Y=this.tryEntries).call(Y,Yn),!R)for(var X in this)X.charAt(0)==="t"&&w.call(this,X)&&!isNaN(+p(X).call(X,1))&&(this[X]=y)},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var Y=this;function X(wr,cr){return Ye.type="throw",Ye.arg=R,Y.next=wr,cr&&(Y.method="next",Y.arg=y),!!cr}for(var ie=this.tryEntries.length-1;ie>=0;--ie){var te=this.tryEntries[ie],Ye=te.completion;if(te.tryLoc==="root")return X("end");if(te.tryLoc<=this.prev){var it=w.call(te,"catchLoc"),st=w.call(te,"finallyLoc");if(it&&st){if(this.prev<te.catchLoc)return X(te.catchLoc,!0);if(this.prev<te.finallyLoc)return X(te.finallyLoc)}else if(it){if(this.prev<te.catchLoc)return X(te.catchLoc,!0)}else{if(!st)throw new Error("try statement without catch or finally");if(this.prev<te.finallyLoc)return X(te.finallyLoc)}}}},abrupt:function(R,Y){for(var X=this.tryEntries.length-1;X>=0;--X){var ie=this.tryEntries[X];if(ie.tryLoc<=this.prev&&w.call(ie,"finallyLoc")&&this.prev<ie.finallyLoc){var te=ie;break}}te&&(R==="break"||R==="continue")&&te.tryLoc<=Y&&Y<=te.finallyLoc&&(te=null);var Ye=te?te.completion:{};return Ye.type=R,Ye.arg=Y,te?(this.method="next",this.next=te.finallyLoc,q):this.complete(Ye)},complete:function(R,Y){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&Y&&(this.next=Y),q},finish:function(R){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var X=this.tryEntries[Y];if(X.finallyLoc===R)return this.complete(X.completion,X.afterLoc),Yn(X),q}},catch:function(R){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var X=this.tryEntries[Y];if(X.tryLoc===R){var ie=X.completion;if(ie.type==="throw"){var te=ie.arg;Yn(X)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(R,Y,X){return this.delegate={iterator:Wr(R),resultName:Y,nextLoc:X},this.method==="next"&&(this.arg=y),q}},b}e.exports=m,e.exports.__esModule=!0,e.exports.default=e.exports})(e_);var Q4=e_.exports,Bs=Q4(),J4=Bs;try{regeneratorRuntime=Bs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Bs:Function("r","regeneratorRuntime = r")(Bs)}var Et=z(J4),e8=Ct,t8=_t,r8=_o,i8=Ot,n8=TypeError,a8=function(e){return function(r,t,a,n){e8(t);var s=t8(r),o=r8(s),l=i8(s),d=e?l-1:0,u=e?-1:1;if(a<2)for(;;){if(d in o){n=o[d],d+=u;break}if(d+=u,e?d<0:l<=d)throw new n8("Reduce of empty array with no initial value")}for(;e?d>=0:l>d;d+=u)d in o&&(n=t(n,o[d],d,s));return n}},s8={left:a8(!1)},o8=U,l8=s8.left,d8=Mn,tp=$n,u8=Wa,c8=!u8&&tp>79&&tp<83,h8=c8||!d8("reduce");o8({target:"Array",proto:!0,forced:h8},{reduce:function(r){var t=arguments.length;return l8(this,r,t,t>1?arguments[1]:void 0)}});var f8=Le,v8=f8("Array").reduce,p8=$e,m8=v8,pd=Array.prototype,g8=function(e){var r=e.reduce;return e===pd||p8(pd,e)&&r===pd.reduce?m8:r},y8=g8,_8=y8,b8=_8,Ro=z(b8),w8=oi,k8=Ot,x8=Eo,E8=ni,N_=function(e,r,t,a,n,s,o,l){for(var d=n,u=0,f=o?E8(o,l):!1,p,m;u<a;)u in t&&(p=f?f(t[u],u,r):t[u],s>0&&w8(p)?(m=k8(p),d=N_(e,r,p,m,d,s-1)-1):(x8(d+1),e[d]=p),d++),u++;return d},S8=N_,$8=U,D8=S8,T8=Ct,N8=_t,C8=Ot,O8=So;$8({target:"Array",proto:!0},{flatMap:function(r){var t=N8(this),a=C8(t),n;return T8(r),n=O8(t,0),n.length=D8(n,t,t,a,0,1,r,arguments.length>1?arguments[1]:void 0),n}});var P8=Le,I8=P8("Array").flatMap,M8=$e,A8=I8,md=Array.prototype,V8=function(e){var r=e.flatMap;return e===md||M8(md,e)&&r===md.flatMap?A8:r},R8=V8,L8=R8,F8=L8,Y8=z(F8),C_={exports:{}},j8=ve,B8=j8(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),H8=ve,W8=tt,G8=Lr,rp=B8,Hs=Object.isExtensible,z8=H8(function(){Hs(1)}),U8=z8||rp?function(r){return!W8(r)||rp&&G8(r)==="ArrayBuffer"?!1:Hs?Hs(r):!0}:Hs,X8=ve,q8=!X8(function(){return Object.isExtensible(Object.preventExtensions({}))}),K8=U,Z8=ge,Q8=Sa,J8=tt,vc=qe,eY=Nt.f,ip=Pa,tY=Vu,pc=U8,rY=mo,iY=q8,O_=!1,Vr=rY("meta"),nY=0,mc=function(e){eY(e,Vr,{value:{objectID:"O"+nY++,weakData:{}}})},aY=function(e,r){if(!J8(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!vc(e,Vr)){if(!pc(e))return"F";if(!r)return"E";mc(e)}return e[Vr].objectID},sY=function(e,r){if(!vc(e,Vr)){if(!pc(e))return!0;if(!r)return!1;mc(e)}return e[Vr].weakData},oY=function(e){return iY&&O_&&pc(e)&&!vc(e,Vr)&&mc(e),e},lY=function(){dY.enable=function(){},O_=!0;var e=ip.f,r=Z8([].splice),t={};t[Vr]=1,e(t).length&&(ip.f=function(a){for(var n=e(a),s=0,o=n.length;s<o;s++)if(n[s]===Vr){r(n,s,1);break}return n},K8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tY.f}))},dY=C_.exports={enable:lY,fastKey:aY,getWeakData:sY,onFreeze:oY};Q8[Vr]=!0;var P_=C_.exports,uY=U,cY=Ie,hY=P_,fY=ve,vY=Yr,pY=Ri,mY=dc,gY=Be,yY=tt,_Y=En,bY=Ai,wY=Nt.f,kY=jr.forEach,xY=Qe,I_=Nn,EY=I_.set,SY=I_.getterFor,M_=function(e,r,t){var a=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,s=a?"set":"add",o=cY[e],l=o&&o.prototype,d={},u;if(!xY||!gY(o)||!(n||l.forEach&&!fY(function(){new o().entries().next()})))u=t.getConstructor(r,e,a,s),hY.enable();else{u=r(function(m,y){EY(mY(m,f),{type:e,collection:new o}),_Y(y)||pY(y,m[s],{that:m,AS_ENTRIES:a})});var f=u.prototype,p=SY(e);kY(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(m){var y=m==="add"||m==="set";m in l&&!(n&&m==="clear")&&vY(f,m,function(b,E){var w=p(this).collection;if(!y&&n&&!yY(b))return m==="get"?void 0:!1;var S=w[m](b===0?0:b,E);return y?this:S})}),n||wY(f,"size",{configurable:!0,get:function(){return p(this).collection.size}})}return bY(u,e,!1,!0),d[e]=u,uY({global:!0,forced:!0},d),n||t.setStrong(u,e,a),u},$Y=On,DY=function(e,r,t){for(var a in r)t&&t.unsafe&&e[a]?e[a]=r[a]:$Y(e,a,r[a],t);return e},TY=Mi,NY=Ru,np=DY,CY=ni,OY=dc,PY=En,IY=Ri,MY=Pu,Os=Iu,AY=a_,Qn=Qe,ap=P_.fastKey,A_=Nn,sp=A_.set,gd=A_.getterFor,V_={getConstructor:function(e,r,t,a){var n=e(function(u,f){OY(u,s),sp(u,{type:r,index:TY(null),first:void 0,last:void 0,size:0}),Qn||(u.size=0),PY(f)||IY(f,u[a],{that:u,AS_ENTRIES:t})}),s=n.prototype,o=gd(r),l=function(u,f,p){var m=o(u),y=d(u,f),b,E;return y?y.value=p:(m.last=y={index:E=ap(f,!0),key:f,value:p,previous:b=m.last,next:void 0,removed:!1},m.first||(m.first=y),b&&(b.next=y),Qn?m.size++:u.size++,E!=="F"&&(m.index[E]=y)),u},d=function(u,f){var p=o(u),m=ap(f),y;if(m!=="F")return p.index[m];for(y=p.first;y;y=y.next)if(y.key===f)return y};return np(s,{clear:function(){for(var f=this,p=o(f),m=p.index,y=p.first;y;)y.removed=!0,y.previous&&(y.previous=y.previous.next=void 0),delete m[y.index],y=y.next;p.first=p.last=void 0,Qn?p.size=0:f.size=0},delete:function(u){var f=this,p=o(f),m=d(f,u);if(m){var y=m.next,b=m.previous;delete p.index[m.index],m.removed=!0,b&&(b.next=y),y&&(y.previous=b),p.first===m&&(p.first=y),p.last===m&&(p.last=b),Qn?p.size--:f.size--}return!!m},forEach:function(f){for(var p=o(this),m=CY(f,arguments.length>1?arguments[1]:void 0),y;y=y?y.next:p.first;)for(m(y.value,y.key,this);y&&y.removed;)y=y.previous},has:function(f){return!!d(this,f)}}),np(s,t?{get:function(f){var p=d(this,f);return p&&p.value},set:function(f,p){return l(this,f===0?0:f,p)}}:{add:function(f){return l(this,f=f===0?0:f,f)}}),Qn&&NY(s,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,r,t){var a=r+" Iterator",n=gd(r),s=gd(a);MY(e,r,function(o,l){sp(this,{type:a,target:o,state:n(o),kind:l,last:void 0})},function(){for(var o=s(this),l=o.kind,d=o.last;d&&d.removed;)d=d.previous;return!o.target||!(o.last=d=d?d.next:o.state.first)?(o.target=void 0,Os(void 0,!0)):Os(l==="keys"?d.key:l==="values"?d.value:[d.key,d.value],!1)},t?"entries":"values",!t,!0),AY(r)}},VY=M_,RY=V_;VY("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},RY);var LY=be,FY=LY.Map,YY=FY,jY=YY,BY=jY,R_=z(BY),HY=M_,WY=V_;HY("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},WY);var GY=be,zY=GY.Set,UY=zY,XY=UY,qY=XY,ei=z(qY),KY=Cg,xi=z(KY),ZY=Au,QY=ZY,JY=QY,ej=JY,tj=ej,rj=tj,ij=rj,nj=ij,aj=nj,sj=aj,yd=z(sj),op=Jm,oj=Math.floor,pu=function(e,r){var t=e.length,a=oj(t/2);return t<8?lj(e,r):dj(e,pu(op(e,0,a),r),pu(op(e,a),r),r)},lj=function(e,r){for(var t=e.length,a=1,n,s;a<t;){for(s=a,n=e[a];s&&r(e[s-1],n)>0;)e[s]=e[--s];s!==a++&&(e[s]=n)}return e},dj=function(e,r,t,a){for(var n=r.length,s=t.length,o=0,l=0;o<n||l<s;)e[o+l]=o<n&&l<s?a(r[o],t[l])<=0?r[o++]:t[l++]:o<n?r[o++]:t[l++];return e},uj=pu,cj=ii,lp=cj.match(/firefox\/(\d+)/i),hj=!!lp&&+lp[1],fj=ii,vj=/MSIE|Trident/.test(fj),pj=ii,dp=pj.match(/AppleWebKit\/(\d+)\./),mj=!!dp&&+dp[1],gj=U,L_=ge,yj=Ct,_j=_t,up=Ot,bj=Kg,cp=qt,gc=ve,wj=uj,kj=Mn,hp=hj,xj=vj,fp=$n,vp=mj,Zr=[],pp=L_(Zr.sort),Ej=L_(Zr.push),Sj=gc(function(){Zr.sort(void 0)}),$j=gc(function(){Zr.sort(null)}),Dj=kj("sort"),F_=!gc(function(){if(fp)return fp<70;if(!(hp&&hp>3)){if(xj)return!0;if(vp)return vp<603;var e="",r,t,a,n;for(r=65;r<76;r++){switch(t=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)Zr.push({k:t+n,v:a})}for(Zr.sort(function(s,o){return o.v-s.v}),n=0;n<Zr.length;n++)t=Zr[n].k.charAt(0),e.charAt(e.length-1)!==t&&(e+=t);return e!=="DGBEFHACIJK"}}),Tj=Sj||!$j||!Dj||!F_,Nj=function(e){return function(r,t){return t===void 0?-1:r===void 0?1:e!==void 0?+e(r,t)||0:cp(r)>cp(t)?1:-1}};gj({target:"Array",proto:!0,forced:Tj},{sort:function(r){r!==void 0&&yj(r);var t=_j(this);if(F_)return r===void 0?pp(t):pp(t,r);var a=[],n=up(t),s,o;for(o=0;o<n;o++)o in t&&Ej(a,t[o]);for(wj(a,Nj(r)),s=up(a),o=0;o<s;)t[o]=a[o++];for(;o<n;)bj(t,o++);return t}});var Cj=Le,Oj=Cj("Array").sort,Pj=$e,Ij=Oj,_d=Array.prototype,Mj=function(e){var r=e.sort;return e===_d||Pj(_d,e)&&r===_d.sort?Ij:r},Aj=Mj,Vj=Aj,Rj=Vj,Ue=z(Rj),Lj=U,Fj=jr.some,Yj=Mn,jj=Yj("some");Lj({target:"Array",proto:!0,forced:!jj},{some:function(r){return Fj(this,r,arguments.length>1?arguments[1]:void 0)}});var Bj=Le,Hj=Bj("Array").some,Wj=$e,Gj=Hj,bd=Array.prototype,zj=function(e){var r=e.some;return e===bd||Wj(bd,e)&&r===bd.some?Gj:r},Uj=zj,Xj=Uj,qj=Xj,yc=z(qj),Kj=Le,Zj=Kj("Array").keys,Qj=Zj,Jj=Qj,eB=Fr,tB=qe,rB=$e,iB=Jj,wd=Array.prototype,nB={DOMTokenList:!0,NodeList:!0},aB=function(e){var r=e.keys;return e===wd||rB(wd,e)&&r===wd.keys||tB(nB,eB(e))?iB:r},sB=aB,mi=z(sB),oB=Le,lB=oB("Array").values,dB=lB,uB=dB,cB=Fr,hB=qe,fB=$e,vB=uB,kd=Array.prototype,pB={DOMTokenList:!0,NodeList:!0},mB=function(e){var r=e.values;return e===kd||fB(kd,e)&&r===kd.values||hB(pB,cB(e))?vB:r},gB=mB,mp=z(gB),yB=Le,_B=yB("Array").entries,bB=_B,wB=bB,kB=Fr,xB=qe,EB=$e,SB=wB,xd=Array.prototype,$B={DOMTokenList:!0,NodeList:!0},DB=function(e){var r=e.entries;return e===xd||EB(xd,e)&&r===xd.entries||xB($B,kB(e))?SB:r},TB=DB,NB=z(TB),CB=Km,Lo=z(CB),OB=U,PB=bt,Ed=Cn,IB=zg,gp=s_,MB=Ht,yp=tt,AB=Mi,Y_=ve,_c=PB("Reflect","construct"),VB=Object.prototype,RB=[].push,j_=Y_(function(){function e(){}return!(_c(function(){},[],e)instanceof e)}),B_=!Y_(function(){_c(function(){})}),_p=j_||B_;OB({target:"Reflect",stat:!0,forced:_p,sham:_p},{construct:function(r,t){gp(r),MB(t);var a=arguments.length<3?r:gp(arguments[2]);if(B_&&!j_)return _c(r,t,a);if(r===a){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var n=[null];return Ed(RB,n,t),new(Ed(IB,r,n))}var s=a.prototype,o=AB(yp(s)?s:VB),l=Ed(r,o,t);return yp(l)?l:o}});var LB=be,FB=LB.Reflect.construct,YB=FB,jB=YB,BB=jB,Z=z(BB),HB=be,WB=HB.Object.getOwnPropertySymbols,GB=WB,zB=GB,UB=zB,ro=z(UB),H_={exports:{}},XB=U,qB=ve,KB=lr,W_=Ii.f,G_=Qe,ZB=!G_||qB(function(){W_(1)});XB({target:"Object",stat:!0,forced:ZB,sham:!G_},{getOwnPropertyDescriptor:function(r,t){return W_(KB(r),t)}});var QB=be,z_=QB.Object,JB=H_.exports=function(r,t){return z_.getOwnPropertyDescriptor(r,t)};z_.getOwnPropertyDescriptor.sham&&(JB.sham=!0);var eH=H_.exports,tH=eH,rH=tH,iH=rH,Fo=z(iH),nH=U,aH=Qe,sH=Wu,oH=lr,lH=Ii,dH=In;nH({target:"Object",stat:!0,sham:!aH},{getOwnPropertyDescriptors:function(r){for(var t=oH(r),a=lH.f,n=sH(t),s={},o=0,l,d;n.length>o;)d=a(t,l=n[o++]),d!==void 0&&dH(s,l,d);return s}});var uH=be,cH=uH.Object.getOwnPropertyDescriptors,hH=cH,fH=hH,vH=fH,io=z(vH),U_={exports:{}},pH=U,mH=Qe,bp=bo.f;pH({target:"Object",stat:!0,forced:Object.defineProperties!==bp,sham:!mH},{defineProperties:bp});var gH=be,X_=gH.Object,yH=U_.exports=function(r,t){return X_.defineProperties(r,t)};X_.defineProperties.sham&&(yH.sham=!0);var _H=U_.exports,bH=_H,wH=bH,kH=wH,q_=z(kH);let Ps;const xH=new Uint8Array(16);function EH(){if(!Ps&&(Ps=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ps))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ps(xH)}const nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function SH(e,r=0){return nt[e[r+0]]+nt[e[r+1]]+nt[e[r+2]]+nt[e[r+3]]+"-"+nt[e[r+4]]+nt[e[r+5]]+"-"+nt[e[r+6]]+nt[e[r+7]]+"-"+nt[e[r+8]]+nt[e[r+9]]+"-"+nt[e[r+10]]+nt[e[r+11]]+nt[e[r+12]]+nt[e[r+13]]+nt[e[r+14]]+nt[e[r+15]]}const $H=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var wp={randomUUID:$H};function Ei(e,r,t){if(wp.randomUUID&&!e)return wp.randomUUID();e=e||{};const a=e.random||(e.rng||EH)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,SH(a)}var K_;function kp(e,r){var t=Ze(e);if(ro){var a=ro(e);r&&(a=J(a).call(a,function(n){return Fo(e,n).enumerable})),t.push.apply(t,a)}return t}function xp(e){for(var r=1;r<arguments.length;r++){var t,a,n=arguments[r]!=null?arguments[r]:{};r%2?B(t=kp(Object(n),!0)).call(t,function(s){fe(e,s,n[s])}):io?q_(e,io(n)):B(a=kp(Object(n))).call(a,function(s){Lo(e,s,Fo(n,s))})}return e}function Z_(e){var r=DH();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function DH(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}function St(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=TH(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
61
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function TH(e,r){var t;if(e){if(typeof e=="string")return Ep(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ep(e,r)}}function Ep(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function NH(e){return new OH(e)}var CH=function(){function e(r,t,a){var n,s,o;ue(this,e),fe(this,"_source",void 0),fe(this,"_transformers",void 0),fe(this,"_target",void 0),fe(this,"_listeners",{add:O(n=this._add).call(n,this),remove:O(s=this._remove).call(s,this),update:O(o=this._update).call(o,this)}),this._source=r,this._transformers=t,this._target=a}return ce(e,[{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 a;return Ro(a=this._transformers).call(a,function(n,s){return s(n)},t)}},{key:"_add",value:function(t,a){a!=null&&this._target.add(this._transformItems(this._source.get(a.items)))}},{key:"_update",value:function(t,a){a!=null&&this._target.update(this._transformItems(this._source.get(a.items)))}},{key:"_remove",value:function(t,a){a!=null&&this._target.remove(this._transformItems(a.oldData))}}]),e}(),OH=function(){function e(r){ue(this,e),fe(this,"_source",void 0),fe(this,"_transformers",[]),this._source=r}return ce(e,[{key:"filter",value:function(t){return this._transformers.push(function(a){return J(a).call(a,t)}),this}},{key:"map",value:function(t){return this._transformers.push(function(a){return ye(a).call(a,t)}),this}},{key:"flatMap",value:function(t){return this._transformers.push(function(a){return Y8(a).call(a,t)}),this}},{key:"to",value:function(t){return new CH(this._source,this._transformers,t)}}]),e}();function mu(e){return typeof e=="string"||typeof e=="number"}var PH=function(){function e(r){ue(this,e),fe(this,"delay",void 0),fe(this,"max",void 0),fe(this,"_queue",[]),fe(this,"_timeout",null),fe(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(r)}return ce(e,[{key:"setOptions",value:function(t){t&&typeof t.delay<"u"&&(this.delay=t.delay),t&&typeof t.max<"u"&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,a=this._extended.methods,n=0;n<a.length;n++){var s=a[n];s.original?t[s.name]=s.original:delete t[s.name]}this._extended=null}}},{key:"replace",value:function(t,a){var n=this,s=t[a];if(!s)throw new Error("Method "+a+" undefined");t[a]=function(){for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];n.queue({args:l,fn:s,context:this})}}},{key:"queue",value:function(t){typeof t=="function"?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(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=ct(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,a;B(t=pt(a=this._queue).call(a,0)).call(t,function(n){n.fn.apply(n.context||n.fn,n.args||[])})}}],[{key:"extend",value:function(t,a){var n=new e(a);if(t.flush!==void 0)throw new Error("Target object already has a property flush");t.flush=function(){n.flush()};var s=[{name:"flush",original:void 0}];if(a&&a.replace)for(var o=0;o<a.replace.length;o++){var l=a.replace[o];s.push({name:l,original:t[l]}),n.replace(t,l)}return n._extended={object:t,methods:s},n}}]),e}(),Q_=function(){function e(){ue(this,e),fe(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),fe(this,"subscribe",e.prototype.on),fe(this,"unsubscribe",e.prototype.off)}return ce(e,[{key:"_trigger",value:function(t,a,n){var s,o;if(t==="*")throw new Error("Cannot trigger event *");B(s=Ne(o=[]).call(o,Pe(this._subscribers[t]),Pe(this._subscribers["*"]))).call(s,function(l){l(t,a,n??null)})}},{key:"on",value:function(t,a){typeof a=="function"&&this._subscribers[t].push(a)}},{key:"off",value:function(t,a){var n;this._subscribers[t]=J(n=this._subscribers[t]).call(n,function(s){return s!==a})}}]),e}();K_=xi;var Sp=function(){function e(r){ue(this,e),fe(this,"_pairs",void 0),this._pairs=r}return ce(e,[{key:K_,value:Et.mark(function r(){var t,a,n,s,o;return Et.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:t=St(this._pairs),d.prev=1,t.s();case 3:if((a=t.n()).done){d.next=9;break}return n=ut(a.value,2),s=n[0],o=n[1],d.next=7,[s,o];case 7:d.next=3;break;case 9:d.next=14;break;case 11:d.prev=11,d.t0=d.catch(1),t.e(d.t0);case 14:return d.prev=14,t.f(),d.finish(14);case 17:case"end":return d.stop()}},r,this,[[1,11,14,17]])})},{key:"entries",value:Et.mark(function r(){var t,a,n,s,o;return Et.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:t=St(this._pairs),d.prev=1,t.s();case 3:if((a=t.n()).done){d.next=9;break}return n=ut(a.value,2),s=n[0],o=n[1],d.next=7,[s,o];case 7:d.next=3;break;case 9:d.next=14;break;case 11:d.prev=11,d.t0=d.catch(1),t.e(d.t0);case 14:return d.prev=14,t.f(),d.finish(14);case 17:case"end":return d.stop()}},r,this,[[1,11,14,17]])})},{key:"keys",value:Et.mark(function r(){var t,a,n,s;return Et.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:t=St(this._pairs),l.prev=1,t.s();case 3:if((a=t.n()).done){l.next=9;break}return n=ut(a.value,1),s=n[0],l.next=7,s;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),t.e(l.t0);case 14:return l.prev=14,t.f(),l.finish(14);case 17:case"end":return l.stop()}},r,this,[[1,11,14,17]])})},{key:"values",value:Et.mark(function r(){var t,a,n,s;return Et.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:t=St(this._pairs),l.prev=1,t.s();case 3:if((a=t.n()).done){l.next=9;break}return n=ut(a.value,2),s=n[1],l.next=7,s;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),t.e(l.t0);case 14:return l.prev=14,t.f(),l.finish(14);case 17:case"end":return l.stop()}},r,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var t;return ye(t=Pe(this._pairs)).call(t,function(a){return a[0]})}},{key:"toItemArray",value:function(){var t;return ye(t=Pe(this._pairs)).call(t,function(a){return a[1]})}},{key:"toEntryArray",value:function(){return Pe(this._pairs)}},{key:"toObjectMap",value:function(){var t=La(null),a=St(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=ut(n.value,2),o=s[0],l=s[1];t[o]=l}}catch(d){a.e(d)}finally{a.f()}return t}},{key:"toMap",value:function(){return new R_(this._pairs)}},{key:"toIdSet",value:function(){return new ei(this.toIdArray())}},{key:"toItemSet",value:function(){return new ei(this.toItemArray())}},{key:"cache",value:function(){return new e(Pe(this._pairs))}},{key:"distinct",value:function(t){var a=new ei,n=St(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=ut(s.value,2),l=o[0],d=o[1];a.add(t(d,l))}}catch(u){n.e(u)}finally{n.f()}return a}},{key:"filter",value:function(t){var a=this._pairs;return new e(fe({},xi,Et.mark(function n(){var s,o,l,d,u;return Et.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:s=St(a),p.prev=1,s.s();case 3:if((o=s.n()).done){p.next=10;break}if(l=ut(o.value,2),d=l[0],u=l[1],!t(u,d)){p.next=8;break}return p.next=8,[d,u];case 8:p.next=3;break;case 10:p.next=15;break;case 12:p.prev=12,p.t0=p.catch(1),s.e(p.t0);case 15:return p.prev=15,s.f(),p.finish(15);case 18:case"end":return p.stop()}},n,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(t){var a=St(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=ut(n.value,2),o=s[0],l=s[1];t(l,o)}}catch(d){a.e(d)}finally{a.f()}}},{key:"map",value:function(t){var a=this._pairs;return new e(fe({},xi,Et.mark(function n(){var s,o,l,d,u;return Et.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:s=St(a),p.prev=1,s.s();case 3:if((o=s.n()).done){p.next=9;break}return l=ut(o.value,2),d=l[0],u=l[1],p.next=7,[d,t(u,d)];case 7:p.next=3;break;case 9:p.next=14;break;case 11:p.prev=11,p.t0=p.catch(1),s.e(p.t0);case 14:return p.prev=14,s.f(),p.finish(14);case 17:case"end":return p.stop()}},n,null,[[1,11,14,17]])})))}},{key:"max",value:function(t){var a=yd(this._pairs),n=a.next();if(n.done)return null;for(var s=n.value[1],o=t(n.value[1],n.value[0]);!(n=a.next()).done;){var l=ut(n.value,2),d=l[0],u=l[1],f=t(u,d);f>o&&(o=f,s=u)}return s}},{key:"min",value:function(t){var a=yd(this._pairs),n=a.next();if(n.done)return null;for(var s=n.value[1],o=t(n.value[1],n.value[0]);!(n=a.next()).done;){var l=ut(n.value,2),d=l[0],u=l[1],f=t(u,d);f<o&&(o=f,s=u)}return s}},{key:"reduce",value:function(t,a){var n=St(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=ut(s.value,2),l=o[0],d=o[1];a=t(a,d,l)}}catch(u){n.e(u)}finally{n.f()}return a}},{key:"sort",value:function(t){var a=this;return new e(fe({},xi,function(){var n;return yd(Ue(n=Pe(a._pairs)).call(n,function(s,o){var l=ut(s,2),d=l[0],u=l[1],f=ut(o,2),p=f[0],m=f[1];return t(u,m,d,p)}))}))}}]),e}();function IH(e,r){return e[r]==null&&(e[r]=Ei()),e}var Ci=function(e){wt(t,e);var r=Z_(t);function t(a,n){var s;return ue(this,t),s=r.call(this),fe(Ee(s),"flush",void 0),fe(Ee(s),"length",void 0),fe(Ee(s),"_options",void 0),fe(Ee(s),"_data",void 0),fe(Ee(s),"_idProp",void 0),fe(Ee(s),"_queue",null),a&&!re(a)&&(n=a,a=[]),s._options=n||{},s._data=new R_,s.length=0,s._idProp=s._options.fieldId||"id",a&&a.length&&s.add(a),s.setOptions(n),s}return ce(t,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(n){n&&n.queue!==void 0&&(n.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=PH.extend(this,{replace:["add","update","remove"]})),n.queue&&ee(n.queue)==="object"&&this._queue.setOptions(n.queue)))}},{key:"add",value:function(n,s){var o=this,l=[],d;if(re(n)){var u=ye(n).call(n,function(m){return m[o._idProp]});if(yc(u).call(u,function(m){return o._data.has(m)}))throw new Error("A duplicate id was found in the parameter array.");for(var f=0,p=n.length;f<p;f++)d=this._addItem(n[f]),l.push(d)}else if(n&&ee(n)==="object")d=this._addItem(n),l.push(d);else throw new Error("Unknown dataType");return l.length&&this._trigger("add",{items:l},s),l}},{key:"update",value:function(n,s){var o=this,l=[],d=[],u=[],f=[],p=this._idProp,m=function(S){var D=S[p];if(D!=null&&o._data.has(D)){var T=S,P=Ar({},o._data.get(D)),F=o._updateItem(T);d.push(F),f.push(T),u.push(P)}else{var A=o._addItem(S);l.push(A)}};if(re(n))for(var y=0,b=n.length;y<b;y++)n[y]&&ee(n[y])==="object"?m(n[y]):console.warn("Ignoring input item, which is not an object at index "+y);else if(n&&ee(n)==="object")m(n);else throw new Error("Unknown dataType");if(l.length&&this._trigger("add",{items:l},s),d.length){var E={items:d,oldData:u,data:f};this._trigger("update",E,s)}return Ne(l).call(l,d)}},{key:"updateOnly",value:function(n,s){var o,l=this;re(n)||(n=[n]);var d=ye(o=ye(n).call(n,function(f){var p=l._data.get(f[l._idProp]);if(p==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:p,update:f}})).call(o,function(f){var p=f.oldData,m=f.update,y=p[l._idProp],b=Yy(p,m);return l._data.set(y,b),{id:y,oldData:p,updatedData:b}});if(d.length){var u={items:ye(d).call(d,function(f){return f.id}),oldData:ye(d).call(d,function(f){return f.oldData}),data:ye(d).call(d,function(f){return f.updatedData})};return this._trigger("update",u,s),u.items}else return[]}},{key:"get",value:function(n,s){var o=void 0,l=void 0,d=void 0;mu(n)?(o=n,d=s):re(n)?(l=n,d=s):d=n;var u=d&&d.returnType==="Object"?"Object":"Array",f=d&&J(d),p=[],m=void 0,y=void 0,b=void 0;if(o!=null)m=this._data.get(o),m&&f&&!f(m)&&(m=void 0);else if(l!=null)for(var E=0,w=l.length;E<w;E++)m=this._data.get(l[E]),m!=null&&(!f||f(m))&&p.push(m);else{var S;y=Pe(mi(S=this._data).call(S));for(var D=0,T=y.length;D<T;D++)b=y[D],m=this._data.get(b),m!=null&&(!f||f(m))&&p.push(m)}if(d&&d.order&&o==null&&this._sort(p,d.order),d&&d.fields){var P=d.fields;if(o!=null&&m!=null)m=this._filterFields(m,P);else for(var F=0,A=p.length;F<A;F++)p[F]=this._filterFields(p[F],P)}if(u=="Object"){for(var V={},N=0,I=p.length;N<I;N++){var M=p[N],H=M[this._idProp];V[H]=M}return V}else if(o!=null){var W;return(W=m)!==null&&W!==void 0?W:null}else return p}},{key:"getIds",value:function(n){var s=this._data,o=n&&J(n),l=n&&n.order,d=Pe(mi(s).call(s)),u=[];if(o)if(l){for(var f=[],p=0,m=d.length;p<m;p++){var y=d[p],b=this._data.get(y);b!=null&&o(b)&&f.push(b)}this._sort(f,l);for(var E=0,w=f.length;E<w;E++)u.push(f[E][this._idProp])}else for(var S=0,D=d.length;S<D;S++){var T=d[S],P=this._data.get(T);P!=null&&o(P)&&u.push(P[this._idProp])}else if(l){for(var F=[],A=0,V=d.length;A<V;A++){var N=d[A];F.push(s.get(N))}this._sort(F,l);for(var I=0,M=F.length;I<M;I++)u.push(F[I][this._idProp])}else for(var H=0,W=d.length;H<W;H++){var q=d[H],de=s.get(q);de!=null&&u.push(de[this._idProp])}return u}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(n,s){var o=s&&J(s),l=this._data,d=Pe(mi(l).call(l));if(s&&s.order)for(var u=this.get(s),f=0,p=u.length;f<p;f++){var m=u[f],y=m[this._idProp];n(m,y)}else for(var b=0,E=d.length;b<E;b++){var w=d[b],S=this._data.get(w);S!=null&&(!o||o(S))&&n(S,w)}}},{key:"map",value:function(n,s){for(var o=s&&J(s),l=[],d=this._data,u=Pe(mi(d).call(d)),f=0,p=u.length;f<p;f++){var m=u[f],y=this._data.get(m);y!=null&&(!o||o(y))&&l.push(n(y,m))}return s&&s.order&&this._sort(l,s.order),l}},{key:"_filterFields",value:function(n,s){var o;return n&&Ro(o=re(s)?s:Ze(s)).call(o,function(l,d){return l[d]=n[d],l},{})}},{key:"_sort",value:function(n,s){if(typeof s=="string"){var o=s;Ue(n).call(n,function(l,d){var u=l[o],f=d[o];return u>f?1:u<f?-1:0})}else if(typeof s=="function")Ue(n).call(n,s);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(n,s){for(var o=[],l=[],d=re(n)?n:[n],u=0,f=d.length;u<f;u++){var p=this._remove(d[u]);if(p){var m=p[this._idProp];m!=null&&(o.push(m),l.push(p))}}return o.length&&this._trigger("remove",{items:o,oldData:l},s),o}},{key:"_remove",value:function(n){var s;if(mu(n)?s=n:n&&ee(n)==="object"&&(s=n[this._idProp]),s!=null&&this._data.has(s)){var o=this._data.get(s)||null;return this._data.delete(s),--this.length,o}return null}},{key:"clear",value:function(n){for(var s,o=Pe(mi(s=this._data).call(s)),l=[],d=0,u=o.length;d<u;d++)l.push(this._data.get(o[d]));return this._data.clear(),this.length=0,this._trigger("remove",{items:o,oldData:l},n),o}},{key:"max",value:function(n){var s,o=null,l=null,d=St(mp(s=this._data).call(s)),u;try{for(d.s();!(u=d.n()).done;){var f=u.value,p=f[n];typeof p=="number"&&(l==null||p>l)&&(o=f,l=p)}}catch(m){d.e(m)}finally{d.f()}return o||null}},{key:"min",value:function(n){var s,o=null,l=null,d=St(mp(s=this._data).call(s)),u;try{for(d.s();!(u=d.n()).done;){var f=u.value,p=f[n];typeof p=="number"&&(l==null||p<l)&&(o=f,l=p)}}catch(m){d.e(m)}finally{d.f()}return o||null}},{key:"distinct",value:function(n){for(var s=this._data,o=Pe(mi(s).call(s)),l=[],d=0,u=0,f=o.length;u<f;u++){for(var p=o[u],m=s.get(p),y=m[n],b=!1,E=0;E<d;E++)if(l[E]==y){b=!0;break}!b&&y!==void 0&&(l[d]=y,d++)}return l}},{key:"_addItem",value:function(n){var s=IH(n,this._idProp),o=s[this._idProp];if(this._data.has(o))throw new Error("Cannot add item: item with id "+o+" already exists");return this._data.set(o,s),++this.length,o}},{key:"_updateItem",value:function(n){var s=n[this._idProp];if(s==null)throw new Error("Cannot update item: item has no id (item: "+Dt(n)+")");var o=this._data.get(s);if(!o)throw new Error("Cannot update item: no item with id "+s+" found");return this._data.set(s,xp(xp({},o),n)),s}},{key:"stream",value:function(n){if(n){var s=this._data;return new Sp(fe({},xi,Et.mark(function l(){var d,u,f,p;return Et.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:d=St(n),y.prev=1,d.s();case 3:if((u=d.n()).done){y.next=11;break}if(f=u.value,p=s.get(f),p==null){y.next=9;break}return y.next=9,[f,p];case 9:y.next=3;break;case 11:y.next=16;break;case 13:y.prev=13,y.t0=y.catch(1),d.e(y.t0);case 16:return y.prev=16,d.f(),y.finish(16);case 19:case"end":return y.stop()}},l,null,[[1,13,16,19]])})))}else{var o;return new Sp(fe({},xi,O(o=NB(this._data)).call(o,this._data)))}}}]),t}(Q_),MH=function(e){wt(t,e);var r=Z_(t);function t(a,n){var s,o;return ue(this,t),o=r.call(this),fe(Ee(o),"length",0),fe(Ee(o),"_listener",void 0),fe(Ee(o),"_data",void 0),fe(Ee(o),"_ids",new ei),fe(Ee(o),"_options",void 0),o._options=n||{},o._listener=O(s=o._onEvent).call(s,Ee(o)),o.setData(a),o}return ce(t,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(n){if(this._data){this._data.off&&this._data.off("*",this._listener);var s=this._data.getIds({filter:J(this._options)}),o=this._data.get(s);this._ids.clear(),this.length=0,this._trigger("remove",{items:s,oldData:o})}if(n!=null){this._data=n;for(var l=this._data.getIds({filter:J(this._options)}),d=0,u=l.length;d<u;d++){var f=l[d];this._ids.add(f)}this.length=l.length,this._trigger("add",{items:l})}else this._data=new Ci;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var n=this._data.getIds({filter:J(this._options)}),s=Pe(this._ids),o={},l=[],d=[],u=[],f=0,p=n.length;f<p;f++){var m=n[f];o[m]=!0,this._ids.has(m)||(l.push(m),this._ids.add(m))}for(var y=0,b=s.length;y<b;y++){var E=s[y],w=this._data.get(E);w==null?console.error("If you see this, report it please."):o[E]||(d.push(E),u.push(w),this._ids.delete(E))}this.length+=l.length-d.length,l.length&&this._trigger("add",{items:l}),d.length&&this._trigger("remove",{items:d,oldData:u})}},{key:"get",value:function(n,s){if(this._data==null)return null;var o=null,l;mu(n)||re(n)?(o=n,l=s):l=n;var d=Ar({},this._options,l),u=J(this._options),f=l&&J(l);return u&&f&&(d.filter=function(p){return u(p)&&f(p)}),o==null?this._data.get(d):this._data.get(o,d)}},{key:"getIds",value:function(n){if(this._data.length){var s=J(this._options),o=n!=null?J(n):null,l;return o?s?l=function(u){return s(u)&&o(u)}:l=o:l=s,this._data.getIds({filter:l,order:n&&n.order})}else return[]}},{key:"forEach",value:function(n,s){if(this._data){var o,l=J(this._options),d=s&&J(s),u;d?l?u=function(p){return l(p)&&d(p)}:u=d:u=l,B(o=this._data).call(o,n,{filter:u,order:s&&s.order})}}},{key:"map",value:function(n,s){if(this._data){var o,l=J(this._options),d=s&&J(s),u;return d?l?u=function(p){return l(p)&&d(p)}:u=d:u=l,ye(o=this._data).call(o,n,{filter:u,order:s&&s.order})}else return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(n){var s;return this._data.stream(n||fe({},xi,O(s=mi(this._ids)).call(s,this._ids)))}},{key:"dispose",value:function(){var n;(n=this._data)!==null&&n!==void 0&&n.off&&this._data.off("*",this._listener);var s="This data view has already been disposed of.",o={get:function(){throw new Error(s)},set:function(){throw new Error(s)},configurable:!1},l=St(jg(t.prototype)),d;try{for(l.s();!(d=l.n()).done;){var u=d.value;Lo(this,u,o)}}catch(f){l.e(f)}finally{l.f()}}},{key:"_onEvent",value:function(n,s,o){if(!(!s||!s.items||!this._data)){var l=s.items,d=[],u=[],f=[],p=[],m=[],y=[];switch(n){case"add":for(var b=0,E=l.length;b<E;b++){var w=l[b],S=this.get(w);S&&(this._ids.add(w),d.push(w))}break;case"update":for(var D=0,T=l.length;D<T;D++){var P=l[D],F=this.get(P);F?this._ids.has(P)?(u.push(P),m.push(s.data[D]),p.push(s.oldData[D])):(this._ids.add(P),d.push(P)):this._ids.has(P)&&(this._ids.delete(P),f.push(P),y.push(s.oldData[D]))}break;case"remove":for(var A=0,V=l.length;A<V;A++){var N=l[A];this._ids.has(N)&&(this._ids.delete(N),f.push(N),y.push(s.oldData[A]))}break}this.length+=d.length-f.length,d.length&&this._trigger("add",{items:d},o),u.length&&this._trigger("update",{items:u,oldData:p,data:m},o),f.length&&this._trigger("remove",{items:f,oldData:y},o)}}}]),t}(Q_);function AH(e,r){return ee(r)==="object"&&r!==null&&e===r.idProp&&typeof r.add=="function"&&typeof r.clear=="function"&&typeof r.distinct=="function"&&typeof B(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof ye(r)=="function"&&typeof r.max=="function"&&typeof r.min=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.remove=="function"&&typeof r.setOptions=="function"&&typeof r.stream=="function"&&typeof r.update=="function"&&typeof r.updateOnly=="function"}function VH(e,r){return ee(r)==="object"&&r!==null&&e===r.idProp&&typeof B(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof ye(r)=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.stream=="function"&&AH(e,r.getDataSet())}var RH=typeof window<"u"&&window.moment||or(),mt=z(RH),LH=or(),er=z(LH),gu={exports:{}},je={},yu={exports:{}},Li={};function J_(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function FH(e,r,t){}function YH(e,r,t){}var jH=/javascript\s*\:/img;function BH(e,r){return jH.test(r)?"":r}Li.whiteList=J_();Li.getDefaultWhiteList=J_;Li.onAttr=FH;Li.onIgnoreAttr=YH;Li.safeAttrValue=BH;var HH={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,n;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,n=e.length;a<n;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Jn=HH;function WH(e,r){e=Jn.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,n=0,s=0,o="";function l(){if(!a){var f=Jn.trim(e.slice(n,s)),p=f.indexOf(":");if(p!==-1){var m=Jn.trim(f.slice(0,p)),y=Jn.trim(f.slice(p+1));if(m){var b=r(n,o.length,m,y,f);b&&(o+=b+"; ")}}}n=s+1}for(;s<t;s++){var d=e[s];if(d==="/"&&e[s+1]==="*"){var u=e.indexOf("*/",s+2);if(u===-1)break;s=u+1,n=s+1,a=!1}else d==="("?a=!0:d===")"?a=!1:d===";"?a||l():d===`
|
62
|
+
`&&l()}return Jn.trim(o)}var GH=WH,Is=Li,zH=GH;function $p(e){return e==null}function UH(e){var r={};for(var t in e)r[t]=e[t];return r}function eb(e){e=UH(e||{}),e.whiteList=e.whiteList||Is.whiteList,e.onAttr=e.onAttr||Is.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Is.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Is.safeAttrValue,this.options=e}eb.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,n=t.onAttr,s=t.onIgnoreAttr,o=t.safeAttrValue,l=zH(e,function(d,u,f,p,m){var y=a[f],b=!1;if(y===!0?b=y:typeof y=="function"?b=y(p):y instanceof RegExp&&(b=y.test(p)),b!==!0&&(b=!1),p=o(f,p),!!p){var E={position:u,sourcePosition:d,source:m,isWhite:b};if(b){var w=n(f,p,E);return $p(w)?f+":"+p:w}else{var w=s(f,p,E);if(!$p(w))return w}}});return l};var XH=eb;(function(e,r){var t=Li,a=XH;function n(o,l){var d=new a(l);return d.process(o)}r=e.exports=n,r.FilterCSS=a;for(var s in t)r[s]=t[s];typeof window<"u"&&(window.filterCSS=e.exports)})(yu,yu.exports);var bc=yu.exports,wc={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,n;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,n=e.length;a<n;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,t=r.exec(e);return t?t.index:-1}},qH=bc.FilterCSS,KH=bc.getDefaultWhiteList,no=wc;function tb(){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 rb=new qH;function ZH(e,r,t){}function QH(e,r,t){}function JH(e,r,t){}function e6(e,r,t){}function ib(e){return e.replace(r6,"<").replace(i6,">")}function t6(e,r,t,a){if(t=db(t),r==="href"||r==="src"){if(t=no.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(r==="background"){if(Ms.lastIndex=0,Ms.test(t))return""}else if(r==="style"){if(Dp.lastIndex=0,Dp.test(t)||(Tp.lastIndex=0,Tp.test(t)&&(Ms.lastIndex=0,Ms.test(t))))return"";a!==!1&&(a=a||rb,t=a.process(t))}return t=ub(t),t}var r6=/</g,i6=/>/g,n6=/"/g,a6=/"/g,s6=/&#([a-zA-Z0-9]*);?/gim,o6=/:?/gim,l6=/&newline;?/gim,Ms=/((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,Dp=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Tp=/u\s*r\s*l\s*\(.*/gi;function nb(e){return e.replace(n6,""")}function ab(e){return e.replace(a6,'"')}function sb(e){return e.replace(s6,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function ob(e){return e.replace(o6,":").replace(l6," ")}function lb(e){for(var r="",t=0,a=e.length;t<a;t++)r+=e.charCodeAt(t)<32?" ":e.charAt(t);return no.trim(r)}function db(e){return e=ab(e),e=sb(e),e=ob(e),e=lb(e),e}function ub(e){return e=nb(e),e=ib(e),e}function d6(){return""}function u6(e,r){typeof r!="function"&&(r=function(){});var t=!Array.isArray(e);function a(o){return t?!0:no.indexOf(e,o)!==-1}var n=[],s=!1;return{onIgnoreTag:function(o,l,d){if(a(o))if(d.isClosing){var u="[/removed]",f=d.position+u.length;return n.push([s!==!1?s:d.position,f]),s=!1,u}else return s||(s=d.position),"[removed]";else return r(o,l,d)},remove:function(o){var l="",d=0;return no.forEach(n,function(u){l+=o.slice(d,u[0]),d=u[1]}),l+=o.slice(d),l}}}function c6(e){for(var r="",t=0;t<e.length;){var a=e.indexOf("<!--",t);if(a===-1){r+=e.slice(t);break}r+=e.slice(t,a);var n=e.indexOf("-->",a);if(n===-1)break;t=n+3}return r}function h6(e){var r=e.split("");return r=r.filter(function(t){var a=t.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),r.join("")}je.whiteList=tb();je.getDefaultWhiteList=tb;je.onTag=ZH;je.onIgnoreTag=QH;je.onTagAttr=JH;je.onIgnoreTagAttr=e6;je.safeAttrValue=t6;je.escapeHtml=ib;je.escapeQuote=nb;je.unescapeQuote=ab;je.escapeHtmlEntities=sb;je.escapeDangerHtml5Entities=ob;je.clearNonPrintableCharacter=lb;je.friendlyAttrValue=db;je.escapeAttrValue=ub;je.onIgnoreTagStripAll=d6;je.StripTagBody=u6;je.stripCommentTag=c6;je.stripBlankChar=h6;je.cssFilter=rb;je.getDefaultCSSWhiteList=KH;var Yo={},qr=wc;function f6(e){var r=qr.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=qr.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function v6(e){return e.slice(0,2)==="</"}function p6(e,r,t){var a="",n=0,s=!1,o=!1,l=0,d=e.length,u="",f="";e:for(l=0;l<d;l++){var p=e.charAt(l);if(s===!1){if(p==="<"){s=l;continue}}else if(o===!1){if(p==="<"){a+=t(e.slice(n,l)),s=l,n=l;continue}if(p===">"||l===d-1){a+=t(e.slice(n,s)),f=e.slice(s,l+1),u=f6(f),a+=r(s,a.length,u,f,v6(f)),n=l+1,s=!1;continue}if(p==='"'||p==="'")for(var m=1,y=e.charAt(l-m);y.trim()===""||y==="=";){if(y==="="){o=p;continue e}y=e.charAt(l-++m)}}else if(p===o){o=!1;continue}}return n<d&&(a+=t(e.substr(n))),a}var m6=/[^a-zA-Z0-9\\_:.-]/gim;function g6(e,r){var t=0,a=0,n=[],s=!1,o=e.length;function l(m,y){if(m=qr.trim(m),m=m.replace(m6,"").toLowerCase(),!(m.length<1)){var b=r(m,y||"");b&&n.push(b)}}for(var d=0;d<o;d++){var u=e.charAt(d),f,p;if(s===!1&&u==="="){s=e.slice(t,d),t=d+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:_6(e,d+1);continue}if(s!==!1&&d===a){if(p=e.indexOf(u,d+1),p===-1)break;f=qr.trim(e.slice(a+1,p)),l(s,f),s=!1,d=p,t=d+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(p=y6(e,d),p===-1){f=qr.trim(e.slice(t,d)),l(f),s=!1,t=d+1;continue}else{d=p-1;continue}else if(p=b6(e,d-1),p===-1){f=qr.trim(e.slice(t,d)),f=Np(f),l(s,f),s=!1,t=d+1;continue}else continue}return t<e.length&&(s===!1?l(e.slice(t)):l(s,Np(qr.trim(e.slice(t))))),qr.trim(n.join(" "))}function y6(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function _6(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function b6(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function w6(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Np(e){return w6(e)?e.substr(1,e.length-2):e}Yo.parseTag=p6;Yo.parseAttr=g6;var k6=bc.FilterCSS,rr=je,cb=Yo,x6=cb.parseTag,E6=cb.parseAttr,Ws=wc;function As(e){return e==null}function S6(e){var r=Ws.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=Ws.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=Ws.trim(e.slice(0,-1))),{html:e,closing:t}}function $6(e){var r={};for(var t in e)r[t]=e[t];return r}function D6(e){var r={};for(var t in e)Array.isArray(e[t])?r[t.toLowerCase()]=e[t].map(function(a){return a.toLowerCase()}):r[t.toLowerCase()]=e[t];return r}function hb(e){e=$6(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=rr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=D6(e.whiteList||e.allowList):e.whiteList=rr.whiteList,e.onTag=e.onTag||rr.onTag,e.onTagAttr=e.onTagAttr||rr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||rr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||rr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||rr.safeAttrValue,e.escapeHtml=e.escapeHtml||rr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new k6(e.css))}hb.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,n=t.onTag,s=t.onIgnoreTag,o=t.onTagAttr,l=t.onIgnoreTagAttr,d=t.safeAttrValue,u=t.escapeHtml,f=r.cssFilter;t.stripBlankChar&&(e=rr.stripBlankChar(e)),t.allowCommentTag||(e=rr.stripCommentTag(e));var p=!1;t.stripIgnoreTagBody&&(p=rr.StripTagBody(t.stripIgnoreTagBody,s),s=p.onIgnoreTag);var m=x6(e,function(y,b,E,w,S){var D={sourcePosition:y,position:b,isClosing:S,isWhite:Object.prototype.hasOwnProperty.call(a,E)},T=n(E,w,D);if(!As(T))return T;if(D.isWhite){if(D.isClosing)return"</"+E+">";var P=S6(w),F=a[E],A=E6(P.html,function(V,N){var I=Ws.indexOf(F,V)!==-1,M=o(E,V,N,I);return As(M)?I?(N=d(E,V,N,f),N?V+'="'+N+'"':V):(M=l(E,V,N,I),As(M)?void 0:M):M});return w="<"+E,A&&(w+=" "+A),P.closing&&(w+=" /"),w+=">",w}else return T=s(E,w,D),As(T)?u(w):T},u);return p&&(m=p.remove(m)),m};var T6=hb;(function(e,r){var t=je,a=Yo,n=T6;function s(l,d){var u=new n(d);return u.process(l)}r=e.exports=s,r.filterXSS=s,r.FilterXSS=n,function(){for(var l in t)r[l]=t[l];for(var d in a)r[d]=a[d]}(),typeof window<"u"&&(window.filterXSS=e.exports);function o(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=e.exports)})(gu,gu.exports);var N6=gu.exports,C6=z(N6);function Cp(e,r){var t=Ze(e);if(ro){var a=ro(e);r&&(a=J(a).call(a,function(n){return Fo(e,n).enumerable})),t.push.apply(t,a)}return t}function Op(e){for(var r=1;r<arguments.length;r++){var t,a,n=arguments[r]!=null?arguments[r]:{};r%2?B(t=Cp(Object(n),!0)).call(t,function(s){fe(e,s,n[s])}):io?q_(e,io(n)):B(a=Cp(Object(n))).call(a,function(s){Lo(e,s,Fo(n,s))})}return e}function Rr(e){var r;if(!e)return!1;var t=(r=e.idProp)!==null&&r!==void 0?r:e._idProp;return t?VH(t,e):!1}var Sd=/^\/?Date\((-?\d+)/i,O6=/^\d+$/;function kc(e,r){var t;if(e!==void 0){if(e===null)return null;if(!r)return e;if(typeof r!="string"&&!(r instanceof String))throw new Error("Type must be a string");switch(r){case"boolean":case"Boolean":return!!e;case"number":case"Number":return Ft(e)&&!isNaN(Date.parse(e))?er(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return kc(e,"Moment").toDate()}catch(n){throw n instanceof TypeError?new TypeError("Cannot convert object of type "+ra(e)+" to type "+r):n}case"Moment":if(sa(e))return er(e);if(e instanceof Date)return er(e.valueOf());if(er.isMoment(e))return er(e);if(Ft(e))return t=Sd.exec(e),t?er(Number(t[1])):(t=O6.exec(e),er(t?Number(e):e));throw new TypeError("Cannot convert object of type "+ra(e)+" to type "+r);case"ISODate":if(sa(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(er.isMoment(e))return e.toDate().toISOString();if(Ft(e))return t=Sd.exec(e),t?new Date(Number(t[1])).toISOString():er(e).format();throw new Error("Cannot convert object of type "+ra(e)+" to type ISODate");case"ASPDate":if(sa(e))return"/Date("+e+")/";if(e instanceof Date||er.isMoment(e))return"/Date("+e.valueOf()+")/";if(Ft(e)){t=Sd.exec(e);var a;return t?a=new Date(Number(t[1])).valueOf():a=new Date(e).valueOf(),"/Date("+a+")/"}else throw new Error("Cannot convert object of type "+ra(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(r))}}}function wn(e){var r,t,a,n,s,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},d=e._idProp,u=new Ci({fieldId:d}),f=ye(r=NH(e)).call(r,function(p){var m;return Ro(m=Ze(p)).call(m,function(y,b){return y[b]=kc(p[b],l[b]),y},{})}).to(u);return f.all().start(),{add:function(){var m;return(m=e.getDataSet()).add.apply(m,arguments)},remove:function(){var m;return(m=e.getDataSet()).remove.apply(m,arguments)},update:function(){var m;return(m=e.getDataSet()).update.apply(m,arguments)},updateOnly:function(){var m;return(m=e.getDataSet()).updateOnly.apply(m,arguments)},clear:function(){var m;return(m=e.getDataSet()).clear.apply(m,arguments)},forEach:O(t=B(u)).call(t,u),get:O(a=u.get).call(a,u),getIds:O(n=u.getIds).call(n,u),off:O(s=u.off).call(s,u),on:O(o=u.on).call(o,u),get length(){return u.length},idProp:d,type:l,rawDS:e,coercedDS:u,dispose:function(){return f.stop()}}}var fb=function(r){var t=new C6.FilterXSS(r);return function(a){return t.process(a)}},P6=function(r){return r},_u=fb(),I6=function(r){r&&(r.disabled===!0?(_u=P6,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):r.filterOptions&&(_u=fb(r.filterOptions)))},x=Op(Op({},zL),{},{convert:kc,setupXSSProtection:I6});Lo(x,"xss",{get:function(){return _u}});var vb=Ie,M6=ve,A6=ge,V6=qt,R6=iy.trim,L6=zu,F6=A6("".charAt),ao=vb.parseFloat,Pp=vb.Symbol,Ip=Pp&&Pp.iterator,Y6=1/ao(L6+"-0")!==-1/0||Ip&&!M6(function(){ao(Object(Ip))}),j6=Y6?function(r){var t=R6(V6(r)),a=ao(t);return a===0&&F6(t,0)==="-"?-0:a}:ao,B6=U,Mp=j6;B6({global:!0,forced:parseFloat!==Mp},{parseFloat:Mp});var H6=be,W6=H6.parseFloat,G6=W6,z6=G6,U6=z6,so=z(U6),li=function(){function e(r,t){ue(this,e),this.options=null,this.props=null}return ce(e,[{key:"setOptions",value:function(t){t&&x.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}]),e}(),X6=xa,q6=qt,K6=Sn,Z6=RangeError,Q6=function(r){var t=q6(K6(this)),a="",n=X6(r);if(n<0||n===1/0)throw new Z6("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))n&1&&(a+=t);return a},J6=U,eW=Q6;J6({target:"String",proto:!0},{repeat:eW});var tW=Le,rW=tW("String").repeat,iW=$e,nW=rW,$d=String.prototype,aW=function(e){var r=e.repeat;return typeof e=="string"||e===$d||iW($d,e)&&r===$d.repeat?nW:r},sW=aW,oW=sW,lW=oW,nn=z(lW);function xc(e,r,t){if(t&&!re(t))return xc(e,r,[t]);if(r.hiddenDates=[],t&&re(t)==!0){for(var a,n=0;n<t.length;n++)if(nn(t[n])===void 0){var s={};s.start=e(t[n].start).toDate().valueOf(),s.end=e(t[n].end).toDate().valueOf(),r.hiddenDates.push(s)}Ue(a=r.hiddenDates).call(a,function(o,l){return o.start-l.start})}}function oo(e,r,t){if(t&&!re(t))return oo(e,r,[t]);if(t&&r.domProps.centerContainer.width!==void 0){xc(e,r,t);for(var a=e(r.range.start),n=e(r.range.end),s=r.range.end-r.range.start,o=s/r.domProps.centerContainer.width,l=0;l<t.length;l++)if(nn(t[l])!==void 0){var d=e(t[l].start),u=e(t[l].end);if(d._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(t[l].start));if(u._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(t[l].end));var f=u-d;if(f>=4*o){var p=0,m=n.clone();switch(nn(t[l])){case"daily":d.day()!=u.day()&&(p=1),d.dayOfYear(a.dayOfYear()),d.year(a.year()),d.subtract(7,"days"),u.dayOfYear(a.dayOfYear()),u.year(a.year()),u.subtract(7-p,"days"),m.add(1,"weeks");break;case"weekly":{var y=u.diff(d,"days"),b=d.day();d.date(a.date()),d.month(a.month()),d.year(a.year()),u=d.clone(),d.day(b),u.day(b),u.add(y,"days"),d.subtract(1,"weeks"),u.subtract(1,"weeks"),m.add(1,"weeks");break}case"monthly":d.month()!=u.month()&&(p=1),d.month(a.month()),d.year(a.year()),d.subtract(1,"months"),u.month(a.month()),u.year(a.year()),u.subtract(1,"months"),u.add(p,"months"),m.add(1,"months");break;case"yearly":d.year()!=u.year()&&(p=1),d.year(a.year()),d.subtract(1,"years"),u.year(a.year()),u.subtract(1,"years"),u.add(p,"years"),m.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",nn(t[l]));return}for(;d<m;)switch(r.hiddenDates.push({start:d.valueOf(),end:u.valueOf()}),nn(t[l])){case"daily":d.add(1,"days"),u.add(1,"days");break;case"weekly":d.add(1,"weeks"),u.add(1,"weeks");break;case"monthly":d.add(1,"months"),u.add(1,"months");break;case"yearly":d.add(1,"y"),u.add(1,"y");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",nn(t[l]));return}r.hiddenDates.push({start:d.valueOf(),end:u.valueOf()})}}dW(r);var E=uo(r.range.start,r.hiddenDates),w=uo(r.range.end,r.hiddenDates),S=r.range.start,D=r.range.end;E.hidden==!0&&(S=r.range.startToFront==!0?E.startDate-1:E.endDate+1),w.hidden==!0&&(D=r.range.endToFront==!0?w.startDate-1:w.endDate+1),(E.hidden==!0||w.hidden==!0)&&r.range._applyRange(S,D)}}function dW(e){for(var r,t=e.hiddenDates,a=[],n=0;n<t.length;n++)for(var s=0;s<t.length;s++)n!=s&&t[s].remove!=!0&&t[n].remove!=!0&&(t[s].start>=t[n].start&&t[s].end<=t[n].end?t[s].remove=!0:t[s].start>=t[n].start&&t[s].start<=t[n].end?(t[n].end=t[s].end,t[s].remove=!0):t[s].end>=t[n].start&&t[s].end<=t[n].end&&(t[n].start=t[s].start,t[s].remove=!0));for(n=0;n<t.length;n++)t[n].remove!==!0&&a.push(t[n]);e.hiddenDates=a,Ue(r=e.hiddenDates).call(r,function(o,l){return o.start-l.start})}function uW(e,r,t){for(var a=!1,n=r.current.valueOf(),s=0;s<r.hiddenDates.length;s++){var o=r.hiddenDates[s].start,l=r.hiddenDates[s].end;if(n>=o&&n<l){a=!0;break}}if(a==!0&&n<r._end.valueOf()&&n!=t){var d=e(t),u=e(l);d.year()!=u.year()?r.switchedYear=!0:d.month()!=u.month()?r.switchedMonth=!0:d.dayOfYear()!=u.dayOfYear()&&(r.switchedDay=!0),r.current=u}}function Ap(e,r,t){var a;if(e.body.hiddenDates.length==0)return a=e.range.conversion(t),(r.valueOf()-a.offset)*a.scale;var n=uo(r,e.body.hiddenDates);n.hidden==!0&&(r=n.startDate);var s=ua(e.body.hiddenDates,e.range.start,e.range.end);if(r<e.range.start){a=e.range.conversion(t,s);var o=cW(e.body.hiddenDates,r,a.offset);return r=e.options.moment(r).toDate().valueOf(),r=r+o,-(a.offset-r.valueOf())*a.scale}else if(r>e.range.end){var l={start:e.range.start,end:r};return r=Rp(e.options.moment,e.body.hiddenDates,l,r),a=e.range.conversion(t,s),(r.valueOf()-a.offset)*a.scale}else return r=Rp(e.options.moment,e.body.hiddenDates,e.range,r),a=e.range.conversion(t,s),(r.valueOf()-a.offset)*a.scale}function Vp(e,r,t){if(e.body.hiddenDates.length==0){var a=e.range.conversion(t);return new Date(r/a.scale+a.offset)}else{var n=ua(e.body.hiddenDates,e.range.start,e.range.end),s=e.range.end-e.range.start-n,o=s*r/t,l=hW(e.body.hiddenDates,e.range,o);return new Date(l+o+e.range.start)}}function ua(e,r,t){for(var a=0,n=0;n<e.length;n++){var s=e[n].start,o=e[n].end;s>=r&&o<t&&(a+=o-s)}return a}function cW(e,r,t){for(var a=0,n=0;n<e.length;n++){var s=e[n].start,o=e[n].end;s>=r&&o<=t&&(a+=o-s)}return a}function Rp(e,r,t,a){return a=e(a).toDate().valueOf(),a-=lo(e,r,t,a),a}function lo(e,r,t,a){var n=0;a=e(a).toDate().valueOf();for(var s=0;s<r.length;s++){var o=r[s].start,l=r[s].end;o>=t.start&&l<t.end&&a>=l&&(n+=l-o)}return n}function hW(e,r,t){for(var a=0,n=0,s=r.start,o=0;o<e.length;o++){var l=e[o].start,d=e[o].end;if(l>=r.start&&d<r.end){if(n+=l-s,s=d,n>=t)break;a+=d-l}}return a}function gi(e,r,t,a){var n=uo(r,e);return n.hidden==!0?t<0?a==!0?n.startDate-(n.endDate-r)-1:n.startDate-1:a==!0?n.endDate+(r-n.startDate)+1:n.endDate+1:r}function uo(e,r){for(var t=0;t<r.length;t++){var a=r[t].start,n=r[t].end;if(e>=a&&e<n)return{hidden:!0,startDate:a,endDate:n}}return{hidden:!1,startDate:a,endDate:n}}function fW(e){var r=vW();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function vW(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var pb=function(e){wt(t,e);var r=fW(t);function t(a,n){var s,o,l,d,u,f,p,m;ue(this,t),m=r.call(this);var y=mt().hours(0).minutes(0).seconds(0).milliseconds(0),b=y.clone().add(-3,"days").valueOf(),E=y.clone().add(3,"days").valueOf();return m.millisecondsPerPixelCache=void 0,n===void 0?(m.start=b,m.end=E):(m.start=n.start||b,m.end=n.end||E),m.rolling=!1,m.body=a,m.deltaDifference=0,m.scaleOffset=0,m.startToFront=!1,m.endToFront=!0,m.defaultOptions={rtl:!1,start:null,end:null,moment:mt,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:!1,offset:.5}},m.options=x.extend({},m.defaultOptions),m.props={touch:{}},m.animationTimer=null,m.body.emitter.on("panstart",O(s=m._onDragStart).call(s,Ee(m))),m.body.emitter.on("panmove",O(o=m._onDrag).call(o,Ee(m))),m.body.emitter.on("panend",O(l=m._onDragEnd).call(l,Ee(m))),m.body.emitter.on("mousewheel",O(d=m._onMouseWheel).call(d,Ee(m))),m.body.emitter.on("touch",O(u=m._onTouch).call(u,Ee(m))),m.body.emitter.on("pinch",O(f=m._onPinch).call(f,Ee(m))),m.body.dom.rollingModeBtn.addEventListener("click",O(p=m.startRolling).call(p,Ee(m))),m.setOptions(n),m}return ce(t,[{key:"setOptions",value:function(n){if(n){var s=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"];x.selectiveExtend(s,this.options,n),n.rollingMode&&n.rollingMode.follow&&this.startRolling(),("start"in n||"end"in n)&&this.setRange(n.start,n.end)}}},{key:"startRolling",value:function(){var n=this;function s(){n.stopRolling(),n.rolling=!0;var o=n.end-n.start,l=x.convert(new Date,"Date").valueOf(),d=n.options.rollingMode&&n.options.rollingMode.offset||.5,u=l-o*d,f=l+o*(1-d),p={animation:!1};n.setRange(u,f,p);var m=n.conversion(n.body.domProps.center.width).scale;o=1/m/10,o<30&&(o=30),o>1e3&&(o=1e3),n.body.dom.rollingModeBtn.style.visibility="hidden",n.currentTimeTimer=ct(s,o)}s()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(n,s,o,l,d){o||(o={}),o.byUser!==!0&&(o.byUser=!1);var u=this,f=n!=null?x.convert(n,"Date").valueOf():null,p=s!=null?x.convert(s,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,o.animation){var m=this.start,y=this.end,b=ee(o.animation)==="object"&&"duration"in o.animation?o.animation.duration:500,E=ee(o.animation)==="object"&&"easingFunction"in o.animation?o.animation.easingFunction:"easeInOutQuad",w=x.easingFunctions[E];if(!w){var S;throw new Error(Ne(S="Unknown easing function ".concat(Dt(E),". Choose from: ")).call(S,Ze(x.easingFunctions).join(", ")))}var D=Rt(),T=!1,P=function V(){if(!u.props.touch.dragging){var N=Rt(),I=N-D,M=w(I/b),H=I>b,W=H||f===null?f:m+(f-m)*M,q=H||p===null?p:y+(p-y)*M;F=u._applyRange(W,q),oo(u.options.moment,u.body,u.options.hiddenDates),T=T||F;var de={start:new Date(u.start),end:new Date(u.end),byUser:o.byUser,event:o.event};if(d&&d(M,F,H),F&&u.body.emitter.emit("rangechange",de),H){if(T&&(u.body.emitter.emit("rangechanged",de),l))return l()}else u.animationTimer=ct(V,20)}};return P()}else{var F=this._applyRange(f,p);if(oo(this.options.moment,this.body,this.options.hiddenDates),F){var A={start:new Date(this.start),end:new Date(this.end),byUser:o.byUser,event:o.event};if(this.body.emitter.emit("rangechange",A),clearTimeout(u.timeoutID),u.timeoutID=ct(function(){u.body.emitter.emit("rangechanged",A)},200),l)return l()}}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(n,s){var o=n!=null?x.convert(n,"Date").valueOf():this.start,l=s!=null?x.convert(s,"Date").valueOf():this.end,d=this.options.max!=null?x.convert(this.options.max,"Date").valueOf():null,u=this.options.min!=null?x.convert(this.options.min,"Date").valueOf():null,f;if(isNaN(o)||o===null)throw new Error('Invalid start "'.concat(n,'"'));if(isNaN(l)||l===null)throw new Error('Invalid end "'.concat(s,'"'));if(l<o&&(l=o),u!==null&&o<u&&(f=u-o,o+=f,l+=f,d!=null&&l>d&&(l=d)),d!==null&&l>d&&(f=l-d,o-=f,l-=f,u!=null&&o<u&&(o=u)),this.options.zoomMin!==null){var p=so(this.options.zoomMin);if(p<0&&(p=0),l-o<p){var m=.5;this.end-this.start===p&&o>=this.start-m&&l<=this.end?(o=this.start,l=this.end):(f=p-(l-o),o-=f/2,l+=f/2)}}if(this.options.zoomMax!==null){var y=so(this.options.zoomMax);y<0&&(y=0),l-o>y&&(this.end-this.start===y&&o<this.start&&l>this.end?(o=this.start,l=this.end):(f=l-o-y,o+=f/2,l-=f/2))}var b=this.start!=o||this.end!=l;return!(o>=this.start&&o<=this.end||l>=this.start&&l<=this.end)&&!(this.start>=o&&this.start<=l||this.end>=o&&this.end<=l)&&this.body.emitter.emit("checkRangedItems"),this.start=o,this.end=l,b}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(n,s){return t.conversion(this.start,this.end,n,s)}},{key:"_onDragStart",value:function(n){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(n)&&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(n){if(n&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var s=this.options.direction;Lp(s);var o=s=="horizontal"?n.deltaX:n.deltaY;o-=this.deltaDifference;var l=this.props.touch.end-this.props.touch.start,d=ua(this.body.hiddenDates,this.start,this.end);l-=d;var u=s=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height,f;this.options.rtl?f=o/u*l:f=-o/u*l;var p=this.props.touch.start+f,m=this.props.touch.end+f,y=gi(this.body.hiddenDates,p,this.previousDelta-o,!0),b=gi(this.body.hiddenDates,m,this.previousDelta-o,!0);if(y!=p||b!=m){this.deltaDifference+=o,this.props.touch.start=y,this.props.touch.end=b,this._onDrag(n);return}this.previousDelta=o,this._applyRange(p,m);var E=new Date(this.start),w=new Date(this.end);this.body.emitter.emit("rangechange",{start:E,end:w,byUser:!0,event:n}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(n){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:n}))}},{key:"_onMouseWheel",value:function(n){var s=0;if(n.wheelDelta?s=n.wheelDelta/120:n.detail?s=-n.detail/3:n.deltaY&&(s=-n.deltaY/3),!(this.options.zoomKey&&!n[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(n)&&s){var o=this.options.zoomFriction||5,l;s<0?l=1-s/o:l=1/(1+s/o);var d;if(this.rolling){var u=this.options.rollingMode&&this.options.rollingMode.offset||.5;d=this.start+(this.end-this.start)*u}else{var f=this.getPointer({x:n.clientX,y:n.clientY},this.body.dom.center);d=this._pointerToDate(f)}this.zoom(l,d,s,n),n.preventDefault()}}},{key:"_onTouch",value:function(n){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,x.preventDefault(n)}},{key:"_onPinch",value:function(n){if(this.options.zoomable&&this.options.moveable){x.preventDefault(n),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(n.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var s=1/(n.scale+this.scaleOffset),o=this.props.touch.centerDate,l=ua(this.body.hiddenDates,this.start,this.end),d=lo(this.options.moment,this.body.hiddenDates,this,o),u=l-d,f=o-d+(this.props.touch.start-(o-d))*s,p=o+u+(this.props.touch.end-(o+u))*s;this.startToFront=1-s<=0,this.endToFront=s-1<=0;var m=gi(this.body.hiddenDates,f,1-s,!0),y=gi(this.body.hiddenDates,p,s-1,!0);(m!=f||y!=p)&&(this.props.touch.start=m,this.props.touch.end=y,this.scaleOffset=1-n.scale,f=m,p=y);var b={animation:!1,byUser:!0,event:n};this.setRange(f,p,b),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(n){var s=n.center?n.center.x:n.clientX,o=this.body.dom.centerContainer.getBoundingClientRect(),l=this.options.rtl?s-o.left:o.right-s,d=this.body.util.toTime(l);return d>=this.start&&d<=this.end}},{key:"_pointerToDate",value:function(n){var s,o=this.options.direction;if(Lp(o),o=="horizontal")return this.body.util.toTime(n.x).valueOf();var l=this.body.domProps.center.height;return s=this.conversion(l),n.y/s.scale+s.offset}},{key:"getPointer",value:function(n,s){var o=s.getBoundingClientRect();return this.options.rtl?{x:o.right-n.x,y:n.y-o.top}:{x:n.x-o.left,y:n.y-o.top}}},{key:"zoom",value:function(n,s,o,l){s==null&&(s=(this.start+this.end)/2);var d=ua(this.body.hiddenDates,this.start,this.end),u=lo(this.options.moment,this.body.hiddenDates,this,s),f=d-u,p=s-u+(this.start-(s-u))*n,m=s+f+(this.end-(s+f))*n;this.startToFront=!(o>0),this.endToFront=!(-o>0);var y=gi(this.body.hiddenDates,p,o,!0),b=gi(this.body.hiddenDates,m,-o,!0);(y!=p||b!=m)&&(p=y,m=b);var E={animation:!1,byUser:!0,event:l};this.setRange(p,m,E),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(n){var s=this.end-this.start,o=this.start+s*n,l=this.end+s*n;this.start=o,this.end=l}},{key:"moveTo",value:function(n){var s=(this.start+this.end)/2,o=s-n,l=this.start-o,d=this.end-o,u={animation:!1,byUser:!0,event:null};this.setRange(l,d,u)}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(n,s,o,l){return l===void 0&&(l=0),o!=0&&s-n!=0?{offset:n,scale:o/(s-n-l)}:{offset:0,scale:1}}}]),t}(li);function Lp(e){if(e!="horizontal"&&e!="vertical")throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var pW=be,mW=pW.setInterval,gW=mW,yW=z(gW),Vs=null;function bu(e,r){var t=r||{preventDefault:!1};if(e.Manager){var a=e,n=function(u,f){var p=Object.create(t);return f&&a.assign(p,f),bu(new a(u,p),p)};return a.assign(n,a),n.Manager=function(u,f){var p=Object.create(t);return f&&a.assign(p,f),bu(new a.Manager(u,p),p)},n}var s=Object.create(e),o=e.element;o.hammer||(o.hammer=[]),o.hammer.push(s),e.on("hammer.input",function(u){(t.preventDefault===!0||t.preventDefault===u.pointerType)&&u.preventDefault(),u.isFirst&&(Vs=u.target)}),s._handlers={},s.on=function(u,f){return l(u).forEach(function(p){var m=s._handlers[p];m||(s._handlers[p]=m=[],e.on(p,d)),m.push(f)}),s},s.off=function(u,f){return l(u).forEach(function(p){var m=s._handlers[p];m&&(m=f?m.filter(function(y){return y!==f}):[],m.length>0?s._handlers[p]=m:(e.off(p,d),delete s._handlers[p]))}),s},s.emit=function(u,f){Vs=f.target,e.emit(u,f)},s.destroy=function(){var u=e.element.hammer,f=u.indexOf(s);f!==-1&&u.splice(f,1),u.length||delete e.element.hammer,s._handlers={},e.destroy()};function l(u){return u.match(/[^ ]+/g)}function d(u){if(u.type!=="hammer.input"){if(u.srcEvent._handled||(u.srcEvent._handled={}),u.srcEvent._handled[u.type])return;u.srcEvent._handled[u.type]=!0}var f=!1;u.stopPropagation=function(){f=!0};var p=u.srcEvent.stopPropagation.bind(u.srcEvent);typeof p=="function"&&(u.srcEvent.stopPropagation=function(){p(),u.stopPropagation()}),u.firstTarget=Vs;for(var m=Vs;m&&!f;){var y=m.hammer;if(y){for(var b,E=0;E<y.length;E++)if(b=y[E]._handlers[u.type],b)for(var w=0;w<b.length&&!f;w++)b[w](u)}m=m.parentNode}}return s}function _W(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}var wu;if(typeof window<"u"){var bW=window.Hammer||Fy;wu=bu(bW,{preventDefault:"mouse"})}else wu=function(){return _W()};var vt=wu;function mb(e,r){r.inputHandler=function(t){t.isFirst&&r(t)},e.on("hammer.input",r.inputHandler)}function wW(e,r){return r.inputHandler=function(t){t.isFinal&&r(t)},e.on("hammer.input",r.inputHandler)}function kW(e){var r="pan-y";return e.getTouchAction=function(){return[r]},e}var co=function(){function e(r,t,a,n,s){ue(this,e),this.moment=s&&s.moment||mt,this.options=s||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(r,t,a),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,re(n)?this.hiddenDates=n:n!=null?this.hiddenDates=[n]:this.hiddenDates=[],this.format=e.FORMAT}return ce(e,[{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(t){var a=x.deepExtend({},e.FORMAT);this.format=x.deepExtend(a,t)}},{key:"setRange",value:function(t,a,n){if(!(t instanceof Date)||!(a instanceof Date))throw"No legal start or end date in method setRange";this._start=t!=null?this.moment(t.valueOf()):Rt(),this._end=a!=null?this.moment(a.valueOf()):Rt(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch(this.scale=="week"&&this.current.weekday(0),this.scale){case"year":this.current.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(this.step!=1){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(gi(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(this.current.weekday()!==0)this.current.weekday(0),this.current.add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current.add(this.step,"week");else{var a=this.current.clone();a.add(1,"week"),a.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(this.step!=1)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,uW(this.moment,this,t)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(t){t&&typeof t.scale=="string"&&(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(t!=null){var a=1e3*60*60*24*30*12,n=1e3*60*60*24*30,s=1e3*60*60*24,o=1e3*60*60,l=1e3*60,d=1e3,u=1;a*1e3>t&&(this.scale="year",this.step=1e3),a*500>t&&(this.scale="year",this.step=500),a*100>t&&(this.scale="year",this.step=100),a*50>t&&(this.scale="year",this.step=50),a*10>t&&(this.scale="year",this.step=10),a*5>t&&(this.scale="year",this.step=5),a>t&&(this.scale="year",this.step=1),n*3>t&&(this.scale="month",this.step=3),n>t&&(this.scale="month",this.step=1),s*7>t&&this.options.showWeekScale&&(this.scale="week",this.step=1),s*2>t&&(this.scale="day",this.step=2),s>t&&(this.scale="day",this.step=1),s/2>t&&(this.scale="weekday",this.step=1),o*4>t&&(this.scale="hour",this.step=4),o>t&&(this.scale="hour",this.step=1),l*15>t&&(this.scale="minute",this.step=15),l*10>t&&(this.scale="minute",this.step=10),l*5>t&&(this.scale="minute",this.step=5),l>t&&(this.scale="minute",this.step=1),d*15>t&&(this.scale="second",this.step=15),d*10>t&&(this.scale="second",this.step=10),d*5>t&&(this.scale="second",this.step=5),d>t&&(this.scale="second",this.step=1),u*200>t&&(this.scale="millisecond",this.step=200),u*100>t&&(this.scale="millisecond",this.step=100),u*50>t&&(this.scale="millisecond",this.step=50),u*10>t&&(this.scale="millisecond",this.step=10),u*5>t&&(this.scale="millisecond",this.step=5),u>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==!0)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedMonth==!0)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==!0)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return t.milliseconds()==0;case"second":return t.seconds()==0;case"minute":return t.hours()==0&&t.minutes()==0;case"hour":return t.hours()==0;case"weekday":case"day":return this.options.showWeekScale?t.isoWeekday()==1:t.date()==1;case"week":return t.date()==1;case"month":return t.month()==0;case"year":return!1;default:return!1}}},{key:"getLabelMinor",value:function(t){if(t==null&&(t=this.current),t instanceof Date&&(t=this.moment(t)),typeof this.format.minorLabels=="function")return this.format.minorLabels(t,this.scale,this.step);var a=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(t.date()===1&&t.weekday()!==0)return"";default:return a&&a.length>0?this.moment(t).format(a):""}}},{key:"getLabelMajor",value:function(t){if(t==null&&(t=this.current),t instanceof Date&&(t=this.moment(t)),typeof this.format.majorLabels=="function")return this.format.majorLabels(t,this.scale,this.step);var a=this.format.majorLabels[this.scale];return a&&a.length>0?this.moment(t).format(a):""}},{key:"getClassName",value:function(){var t,a=this.moment,n=this.moment(this.current),s=n.locale?n.locale("en"):n.lang("en"),o=this.step,l=[];function d(y){return y/o%2==0?" vis-even":" vis-odd"}function u(y){return y.isSame(Rt(),"day")?" vis-today":y.isSame(a().add(1,"day"),"day")?" vis-tomorrow":y.isSame(a().add(-1,"day"),"day")?" vis-yesterday":""}function f(y){return y.isSame(Rt(),"week")?" vis-current-week":""}function p(y){return y.isSame(Rt(),"month")?" vis-current-month":""}function m(y){return y.isSame(Rt(),"year")?" vis-current-year":""}switch(this.scale){case"millisecond":l.push(u(s)),l.push(d(s.milliseconds()));break;case"second":l.push(u(s)),l.push(d(s.seconds()));break;case"minute":l.push(u(s)),l.push(d(s.minutes()));break;case"hour":l.push(Ne(t="vis-h".concat(s.hours())).call(t,this.step==4?"-h"+(s.hours()+4):"")),l.push(u(s)),l.push(d(s.hours()));break;case"weekday":l.push("vis-".concat(s.format("dddd").toLowerCase())),l.push(u(s)),l.push(f(s)),l.push(d(s.date()));break;case"day":l.push("vis-day".concat(s.date())),l.push("vis-".concat(s.format("MMMM").toLowerCase())),l.push(u(s)),l.push(p(s)),l.push(this.step<=2?u(s):""),l.push(this.step<=2?"vis-".concat(s.format("dddd").toLowerCase()):""),l.push(d(s.date()-1));break;case"week":l.push("vis-week".concat(s.format("w"))),l.push(f(s)),l.push(d(s.week()));break;case"month":l.push("vis-".concat(s.format("MMMM").toLowerCase())),l.push(p(s)),l.push(d(s.month()));break;case"year":l.push("vis-year".concat(s.year())),l.push(m(s)),l.push(d(s.year()));break}return J(l).call(l,String).join(" ")}}],[{key:"snap",value:function(t,a,n){var s=mt(t);if(a=="year"){var o=s.year()+Math.round(s.month()/12);s.year(Math.round(o/n)*n),s.month(0),s.date(0),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="month")s.date()>15?(s.date(1),s.add(1,"month")):s.date(1),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0);else if(a=="week")s.weekday()>2?(s.weekday(0),s.add(1,"week")):s.weekday(0),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0);else if(a=="day"){switch(n){case 5:case 2:s.hours(Math.round(s.hours()/24)*24);break;default:s.hours(Math.round(s.hours()/12)*12);break}s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="weekday"){switch(n){case 5:case 2:s.hours(Math.round(s.hours()/12)*12);break;default:s.hours(Math.round(s.hours()/6)*6);break}s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="hour"){switch(n){case 4:s.minutes(Math.round(s.minutes()/60)*60);break;default:s.minutes(Math.round(s.minutes()/30)*30);break}s.seconds(0),s.milliseconds(0)}else if(a=="minute"){switch(n){case 15:case 10:s.minutes(Math.round(s.minutes()/5)*5),s.seconds(0);break;case 5:s.seconds(Math.round(s.seconds()/60)*60);break;default:s.seconds(Math.round(s.seconds()/30)*30);break}s.milliseconds(0)}else if(a=="second")switch(n){case 15:case 10:s.seconds(Math.round(s.seconds()/5)*5),s.milliseconds(0);break;case 5:s.milliseconds(Math.round(s.milliseconds()/1e3)*1e3);break;default:s.milliseconds(Math.round(s.milliseconds()/500)*500);break}else if(a=="millisecond"){var l=n>5?n/2:1;s.milliseconds(Math.round(s.milliseconds()/l)*l)}return s}}]),e}();co.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}};function kt(e,r){r===void 0&&(r={});var t=r.insertAt;if(!(!e||typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var xW=`.vis-time-axis {
|
63
|
+
position: relative;
|
64
|
+
overflow: hidden;
|
65
|
+
}
|
66
|
+
|
67
|
+
.vis-time-axis.vis-foreground {
|
68
|
+
top: 0;
|
69
|
+
left: 0;
|
70
|
+
width: 100%;
|
71
|
+
}
|
72
|
+
|
73
|
+
.vis-time-axis.vis-background {
|
74
|
+
position: absolute;
|
75
|
+
top: 0;
|
76
|
+
left: 0;
|
77
|
+
width: 100%;
|
78
|
+
height: 100%;
|
79
|
+
}
|
80
|
+
|
81
|
+
.vis-time-axis .vis-text {
|
82
|
+
position: absolute;
|
83
|
+
color: #4d4d4d;
|
84
|
+
padding: 3px;
|
85
|
+
overflow: hidden;
|
86
|
+
box-sizing: border-box;
|
87
|
+
|
88
|
+
white-space: nowrap;
|
89
|
+
}
|
90
|
+
|
91
|
+
.vis-time-axis .vis-text.vis-measure {
|
92
|
+
position: absolute;
|
93
|
+
padding-left: 0;
|
94
|
+
padding-right: 0;
|
95
|
+
margin-left: 0;
|
96
|
+
margin-right: 0;
|
97
|
+
visibility: hidden;
|
98
|
+
}
|
99
|
+
|
100
|
+
.vis-time-axis .vis-grid.vis-vertical {
|
101
|
+
position: absolute;
|
102
|
+
border-left: 1px solid;
|
103
|
+
}
|
104
|
+
|
105
|
+
.vis-time-axis .vis-grid.vis-vertical-rtl {
|
106
|
+
position: absolute;
|
107
|
+
border-right: 1px solid;
|
108
|
+
}
|
109
|
+
|
110
|
+
.vis-time-axis .vis-grid.vis-minor {
|
111
|
+
border-color: #e5e5e5;
|
112
|
+
}
|
113
|
+
|
114
|
+
.vis-time-axis .vis-grid.vis-major {
|
115
|
+
border-color: #bfbfbf;
|
116
|
+
}
|
117
|
+
`;kt(xW);function EW(e){var r=SW();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function SW(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var ho=function(e){wt(t,e);var r=EW(t);function t(a,n){var s;return ue(this,t),s=r.call(this),s.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},s.props={range:{start:0,end:0,minimumStep:0},lineTop:0},s.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:x.extend({},co.FORMAT),moment:mt,timeAxis:null},s.options=x.extend({},s.defaultOptions),s.body=a,s._create(),s.setOptions(n),s}return ce(t,[{key:"setOptions",value:function(n){n&&(x.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,n),x.selectiveDeepExtend(["format"],this.options,n),"orientation"in n&&(typeof n.orientation=="string"?this.options.orientation.axis=n.orientation:ee(n.orientation)==="object"&&"axis"in n.orientation&&(this.options.orientation.axis=n.orientation.axis)),"locale"in n&&(typeof mt.locale=="function"?mt.locale(n.locale):mt.lang(n.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 n=this.props,s=this.dom.foreground,o=this.dom.background,l=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,d=s.parentNode!==l;this._calculateCharSize();var u=this.options.showMinorLabels&&this.options.orientation.axis!=="none",f=this.options.showMajorLabels&&this.options.orientation.axis!=="none";n.minorLabelHeight=u?n.minorCharHeight:0,n.majorLabelHeight=f?n.majorCharHeight:0,n.height=n.minorLabelHeight+n.majorLabelHeight,n.width=s.offsetWidth,n.minorLineHeight=this.body.domProps.root.height-n.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),n.minorLineWidth=1,n.majorLineHeight=n.minorLineHeight+n.majorLabelHeight,n.majorLineWidth=1;var p=s.nextSibling,m=o.nextSibling;return s.parentNode&&s.parentNode.removeChild(s),o.parentNode&&o.parentNode.removeChild(o),s.style.height="".concat(this.props.height,"px"),this._repaintLabels(),p?l.insertBefore(s,p):l.appendChild(s),m?this.body.dom.backgroundVertical.insertBefore(o,m):this.body.dom.backgroundVertical.appendChild(o),this._isResized()||d}},{key:"_repaintLabels",value:function(){var n=this.options.orientation.axis,s=x.convert(this.body.range.start,"Number"),o=x.convert(this.body.range.end,"Number"),l=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),d=l-lo(this.options.moment,this.body.hiddenDates,this.body.range,l);d-=this.body.util.toTime(0).valueOf();var u=new co(new Date(s),new Date(o),d,this.body.hiddenDates,this.options);u.setMoment(this.options.moment),this.options.format&&u.setFormat(this.options.format),this.options.timeAxis&&u.setScale(this.options.timeAxis),this.step=u;var f=this.dom;f.redundant.lines=f.lines,f.redundant.majorTexts=f.majorTexts,f.redundant.minorTexts=f.minorTexts,f.lines=[],f.majorTexts=[],f.minorTexts=[];var p,m,y,b,E,w,S=0,D,T,P=void 0,F=0,A=1e3,V;for(u.start(),m=u.getCurrent(),b=this.body.util.toScreen(m);u.hasNext()&&F<A;){switch(F++,E=u.isMajor(),V=u.getClassName(),p=m,y=b,u.next(),m=u.getCurrent(),b=this.body.util.toScreen(m),D=S,S=b-y,u.scale){case"week":w=!0;break;default:w=S>=D*.4;break}if(this.options.showMinorLabels&&w){var N=this._repaintMinorText(y,u.getLabelMinor(p),n,V);N.style.width="".concat(S,"px")}E&&this.options.showMajorLabels?(y>0&&(P==null&&(P=y),N=this._repaintMajorText(y,u.getLabelMajor(p),n,V)),T=this._repaintMajorLine(y,S,n,V)):w?T=this._repaintMinorLine(y,S,n,V):T&&(T.style.width="".concat(Lt(T.style.width)+S,"px"))}if(F===A&&!Fp&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(A," lines.")),Fp=!0),this.options.showMajorLabels){var I=this.body.util.toTime(0),M=u.getLabelMajor(I),H=M.length*(this.props.majorCharWidth||10)+10;(P==null||H<P)&&this._repaintMajorText(0,M,n,V)}B(x).call(x,this.dom.redundant,function(W){for(;W.length;){var q=W.pop();q&&q.parentNode&&q.parentNode.removeChild(q)}})}},{key:"_repaintMinorText",value:function(n,s,o,l){var d=this.dom.redundant.minorTexts.shift();if(!d){var u=document.createTextNode("");d=document.createElement("div"),d.appendChild(u),this.dom.foreground.appendChild(d)}this.dom.minorTexts.push(d),d.innerHTML=x.xss(s);var f=o=="top"?this.props.majorLabelHeight:0;return this._setXY(d,n,f),d.className="vis-text vis-minor ".concat(l),d}},{key:"_repaintMajorText",value:function(n,s,o,l){var d=this.dom.redundant.majorTexts.shift();if(!d){var u=document.createElement("div");d=document.createElement("div"),d.appendChild(u),this.dom.foreground.appendChild(d)}d.childNodes[0].innerHTML=x.xss(s),d.className="vis-text vis-major ".concat(l);var f=o=="top"?0:this.props.minorLabelHeight;return this._setXY(d,n,f),this.dom.majorTexts.push(d),d}},{key:"_setXY",value:function(n,s,o){var l,d=this.options.rtl?s*-1:s;n.style.transform=Ne(l="translate(".concat(d,"px, ")).call(l,o,"px)")}},{key:"_repaintMinorLine",value:function(n,s,o,l){var d,u=this.dom.redundant.lines.shift();u||(u=document.createElement("div"),this.dom.background.appendChild(u)),this.dom.lines.push(u);var f=this.props;u.style.width="".concat(s,"px"),u.style.height="".concat(f.minorLineHeight,"px");var p=o=="top"?f.majorLabelHeight:this.body.domProps.top.height,m=n-f.minorLineWidth/2;return this._setXY(u,m,p),u.className=Ne(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(d,l),u}},{key:"_repaintMajorLine",value:function(n,s,o,l){var d,u=this.dom.redundant.lines.shift();u||(u=document.createElement("div"),this.dom.background.appendChild(u)),this.dom.lines.push(u);var f=this.props;u.style.width="".concat(s,"px"),u.style.height="".concat(f.majorLineHeight,"px");var p=o=="top"?0:this.body.domProps.top.height,m=n-f.majorLineWidth/2;return this._setXY(u,m,p),u.className=Ne(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(d,l),u}},{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}}]),t}(li),Fp=!1;function $W(e){var r=window,t={},a={keydown:{},keyup:{}},n={},s;for(s=97;s<=122;s++)n[String.fromCharCode(s)]={code:65+(s-97),shift:!1};for(s=65;s<=90;s++)n[String.fromCharCode(s)]={code:s,shift:!0};for(s=0;s<=9;s++)n[""+s]={code:48+s,shift:!1};for(s=1;s<=12;s++)n["F"+s]={code:111+s,shift:!1};for(s=0;s<=9;s++)n["num"+s]={code:96+s,shift:!1};n["num*"]={code:106,shift:!1},n["num+"]={code:107,shift:!1},n["num-"]={code:109,shift:!1},n["num/"]={code:111,shift:!1},n["num."]={code:110,shift:!1},n.left={code:37,shift:!1},n.up={code:38,shift:!1},n.right={code:39,shift:!1},n.down={code:40,shift:!1},n.space={code:32,shift:!1},n.enter={code:13,shift:!1},n.shift={code:16,shift:void 0},n.esc={code:27,shift:!1},n.backspace={code:8,shift:!1},n.tab={code:9,shift:!1},n.ctrl={code:17,shift:!1},n.alt={code:18,shift:!1},n.delete={code:46,shift:!1},n.pageup={code:33,shift:!1},n.pagedown={code:34,shift:!1},n["="]={code:187,shift:!1},n["-"]={code:189,shift:!1},n["]"]={code:221,shift:!1},n["["]={code:219,shift:!1};var o=function(u){d(u,"keydown")},l=function(u){d(u,"keyup")},d=function(u,f){if(a[f][u.keyCode]!==void 0)for(var p=a[f][u.keyCode],m=0;m<p.length;m++)(p[m].shift===void 0||p[m].shift==!0&&u.shiftKey==!0||p[m].shift==!1&&u.shiftKey==!1)&&p[m].fn(u)};return t.bind=function(u,f,p){if(p===void 0&&(p="keydown"),n[u]===void 0)throw new Error("unsupported key: "+u);a[p][n[u].code]===void 0&&(a[p][n[u].code]=[]),a[p][n[u].code].push({fn:f,shift:n[u].shift})},t.bindAll=function(u,f){f===void 0&&(f="keydown");for(var p in n)n.hasOwnProperty(p)&&t.bind(p,u,f)},t.getKey=function(u){for(var f in n)if(n.hasOwnProperty(f)){if(u.shiftKey==!0&&n[f].shift==!0&&u.keyCode==n[f].code)return f;if(u.shiftKey==!1&&n[f].shift==!1&&u.keyCode==n[f].code)return f;if(u.keyCode==n[f].code&&f=="shift")return f}return"unknown key, currently not supported"},t.unbind=function(u,f,p){if(p===void 0&&(p="keydown"),n[u]===void 0)throw new Error("unsupported key: "+u);if(f!==void 0){var m=[],y=a[p][n[u].code];if(y!==void 0)for(var b=0;b<y.length;b++)y[b].fn==f&&y[b].shift==n[u].shift||m.push(a[p][n[u].code][b]);a[p][n[u].code]=m}else a[p][n[u].code]=[]},t.reset=function(){a={keydown:{},keyup:{}}},t.destroy=function(){a={keydown:{},keyup:{}},r.removeEventListener("keydown",o,!0),r.removeEventListener("keyup",l,!0)},r.addEventListener("keydown",o,!0),r.addEventListener("keyup",l,!0),t}var DW=`.vis .overlay {
|
118
|
+
position: absolute;
|
119
|
+
top: 0;
|
120
|
+
left: 0;
|
121
|
+
width: 100%;
|
122
|
+
height: 100%;
|
123
|
+
|
124
|
+
/* Must be displayed above for example selected Timeline items */
|
125
|
+
z-index: 10;
|
126
|
+
}
|
127
|
+
|
128
|
+
.vis-active {
|
129
|
+
box-shadow: 0 0 10px #86d5f8;
|
130
|
+
}
|
131
|
+
`;kt(DW);function Ut(e){var r,t;this.active=!1,this.dom={container:e},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=vt(this.dom.overlay),this.hammer.on("tap",O(r=this._onTapOverlay).call(r,this));var a=this,n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];B(n).call(n,function(s){a.hammer.on(s,function(o){o.stopPropagation()})}),document&&document.body&&(this.onClick=function(s){TW(s.target,e)||a.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=$W(),this.escListener=O(t=this.deactivate).call(t,this)}Uu(Ut.prototype);Ut.current=null;Ut.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null};Ut.prototype.activate=function(){var e;Ut.current&&Ut.current.deactivate(),Ut.current=this,this.active=!0,this.dom.overlay.style.display="none",x.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),O(e=this.keycharm).call(e,"esc",this.escListener)};Ut.prototype.deactivate=function(){Ut.current===this&&(Ut.current=null),this.active=!1,this.dom.overlay.style.display="",x.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")};Ut.prototype._onTapOverlay=function(e){this.activate(),e.stopPropagation()};function TW(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var Ec={current:"current",time:"time",deleteSelected:"Delete selected"},NW=Ec,CW=Ec,Sc={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},OW=Sc,PW=Sc,$c={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},IW=$c,MW=$c,gb={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},AW=gb,jo={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},VW=jo,RW=jo,LW=jo,yb={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},FW=yb,_b={current:"поточний",time:"час",deleteSelected:"Видалити обране"},YW=_b,bb={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},jW=bb,wb={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},BW=wb,Dc={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},HW=Dc,WW=Dc,kb={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},GW=kb,xb={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},zW=xb,Bo={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},UW=Bo,XW=Bo,qW=Bo,Eb={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},KW=Eb,kn={en:Ec,en_EN:NW,en_US:CW,it:Sc,it_IT:OW,it_CH:PW,nl:$c,nl_NL:IW,nl_BE:MW,de:gb,de_DE:AW,fr:jo,fr_FR:VW,fr_CA:RW,fr_BE:LW,es:yb,es_ES:FW,uk:_b,uk_UA:YW,ru:bb,ru_RU:jW,pl:wb,pl_PL:BW,pt:Dc,pt_BR:HW,pt_PT:WW,ja:kb,ja_JP:GW,lt:Eb,lt_LT:KW,sv:xb,sv_SE:zW,nb:Bo,nn:XW,nb_NO:UW,nn_NO:qW},ZW=`.vis-custom-time {
|
132
|
+
background-color: #6E94FF;
|
133
|
+
width: 2px;
|
134
|
+
cursor: move;
|
135
|
+
z-index: 1;
|
136
|
+
}
|
137
|
+
|
138
|
+
.vis-custom-time > .vis-custom-time-marker {
|
139
|
+
background-color: inherit;
|
140
|
+
color: white;
|
141
|
+
font-size: 12px;
|
142
|
+
white-space: nowrap;
|
143
|
+
padding: 3px 5px;
|
144
|
+
top: 0px;
|
145
|
+
cursor: initial;
|
146
|
+
z-index: inherit;
|
147
|
+
}`;kt(ZW);function QW(e){var r=JW();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function JW(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Tc=function(e){wt(t,e);var r=QW(t);function t(a,n){var s,o;ue(this,t),o=r.call(this),o.body=a,o.defaultOptions={moment:mt,locales:kn,locale:"en",id:void 0,title:void 0},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},kn,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return B(s=Ze(o.options.locales)).call(s,function(d){o.options.locales[d]=x.extend({},l,o.options.locales[d])}),n&&n.time!=null?o.customTime=n.time:o.customTime=new Date,o.eventParams={},o._create(),o}return ce(t,[{key:"setOptions",value:function(n){n&&x.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,n)}},{key:"_create",value:function(){var n,s,o,l=document.createElement("div");l["custom-time"]=this,l.className="vis-custom-time ".concat(this.options.id||""),l.style.position="absolute",l.style.top="0px",l.style.height="100%",this.bar=l;var d=document.createElement("div");d.style.position="relative",d.style.top="0px",this.options.rtl?d.style.right="-10px":d.style.left="-10px",d.style.height="100%",d.style.width="20px";function u(f){this.body.range._onMouseWheel(f)}d.addEventListener?(d.addEventListener("mousewheel",O(u).call(u,this),!1),d.addEventListener("DOMMouseScroll",O(u).call(u,this),!1)):d.attachEvent("onmousewheel",O(u).call(u,this)),l.appendChild(d),this.hammer=new vt(d),this.hammer.on("panstart",O(n=this._onDragStart).call(n,this)),this.hammer.on("panmove",O(s=this._onDrag).call(s,this)),this.hammer.on("panend",O(o=this._onDragEnd).call(o,this)),this.hammer.get("pan").set({threshold:5,direction:vt.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 n=this.body.dom.backgroundVertical;this.bar.parentNode!=n&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),n.appendChild(this.bar));var s=this.body.util.toScreen(this.customTime),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 l=this.options.title;if(l===void 0){var d;l=Ne(d="".concat(o.time,": ")).call(d,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss")),l=l.charAt(0).toUpperCase()+l.substring(1)}else typeof l=="function"&&(l=l.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(s,"px"):this.bar.style.left="".concat(s,"px"),this.bar.title=l,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(n){this.customTime=x.convert(n,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(n,s){if(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=x.xss(n),this.marker.style.position="absolute",s){var o,l;this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",function(){this.marker.focus()}),this.marker.addEventListener("input",O(o=this._onMarkerChange).call(o,this)),this.marker.title=n,this.marker.addEventListener("blur",O(l=function(u){this.title!=u.target.innerHTML&&(this._onMarkerChanged(u),this.title=u.target.innerHTML)}).call(l,this))}this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(n){this.options.title=n}},{key:"_onDragStart",value:function(n){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,n.stopPropagation()}},{key:"_onDrag",value:function(n){if(this.eventParams.dragging){var s=this.options.rtl?-1*n.deltaX:n.deltaX,o=this.body.util.toScreen(this.eventParams.customTime)+s,l=this.body.util.toTime(o),d=this.body.util.getScale(),u=this.body.util.getStep(),f=this.options.snap,p=f?f(l,d,u):l;this.setCustomTime(p),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:n}),n.stopPropagation()}}},{key:"_onDragEnd",value:function(n){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:n}),n.stopPropagation())}},{key:"_onMarkerChange",value:function(n){this.body.emitter.emit("markerchange",{id:this.options.id,title:n.target.innerHTML,event:n}),n.stopPropagation()}},{key:"_onMarkerChanged",value:function(n){this.body.emitter.emit("markerchanged",{id:this.options.id,title:n.target.innerHTML,event:n}),n.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(n){for(var s=n.target;s;){if(s.hasOwnProperty("custom-time"))return s["custom-time"];s=s.parentNode}return null}}]),t}(li),eG=`.vis-timeline {
|
148
|
+
/*
|
149
|
+
-webkit-transition: height .4s ease-in-out;
|
150
|
+
transition: height .4s ease-in-out;
|
151
|
+
*/
|
152
|
+
}
|
153
|
+
|
154
|
+
.vis-panel {
|
155
|
+
/*
|
156
|
+
-webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
|
157
|
+
transition: height .4s ease-in-out, top .4s ease-in-out;
|
158
|
+
*/
|
159
|
+
}
|
160
|
+
|
161
|
+
.vis-axis {
|
162
|
+
/*
|
163
|
+
-webkit-transition: top .4s ease-in-out;
|
164
|
+
transition: top .4s ease-in-out;
|
165
|
+
*/
|
166
|
+
}
|
167
|
+
|
168
|
+
/* TODO: get animation working nicely
|
169
|
+
|
170
|
+
.vis-item {
|
171
|
+
-webkit-transition: top .4s ease-in-out;
|
172
|
+
transition: top .4s ease-in-out;
|
173
|
+
}
|
174
|
+
|
175
|
+
.vis-item.line {
|
176
|
+
-webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
|
177
|
+
transition: height .4s ease-in-out, top .4s ease-in-out;
|
178
|
+
}
|
179
|
+
/**/`;kt(eG);var tG=`.vis-current-time {
|
180
|
+
background-color: #FF7F6E;
|
181
|
+
width: 2px;
|
182
|
+
z-index: 1;
|
183
|
+
pointer-events: none;
|
184
|
+
}
|
185
|
+
|
186
|
+
.vis-rolling-mode-btn {
|
187
|
+
height: 40px;
|
188
|
+
width: 40px;
|
189
|
+
position: absolute;
|
190
|
+
top: 7px;
|
191
|
+
right: 20px;
|
192
|
+
border-radius: 50%;
|
193
|
+
font-size: 28px;
|
194
|
+
cursor: pointer;
|
195
|
+
opacity: 0.8;
|
196
|
+
color: white;
|
197
|
+
font-weight: bold;
|
198
|
+
text-align: center;
|
199
|
+
background: #3876c2;
|
200
|
+
}
|
201
|
+
.vis-rolling-mode-btn:before {
|
202
|
+
content: "\\26F6";
|
203
|
+
}
|
204
|
+
|
205
|
+
.vis-rolling-mode-btn:hover {
|
206
|
+
opacity: 1;
|
207
|
+
}`;kt(tG);var rG=`.vis-panel {
|
208
|
+
position: absolute;
|
209
|
+
|
210
|
+
padding: 0;
|
211
|
+
margin: 0;
|
212
|
+
|
213
|
+
box-sizing: border-box;
|
214
|
+
}
|
215
|
+
|
216
|
+
.vis-panel.vis-center,
|
217
|
+
.vis-panel.vis-left,
|
218
|
+
.vis-panel.vis-right,
|
219
|
+
.vis-panel.vis-top,
|
220
|
+
.vis-panel.vis-bottom {
|
221
|
+
border: 1px #bfbfbf;
|
222
|
+
}
|
223
|
+
|
224
|
+
.vis-panel.vis-center,
|
225
|
+
.vis-panel.vis-left,
|
226
|
+
.vis-panel.vis-right {
|
227
|
+
border-top-style: solid;
|
228
|
+
border-bottom-style: solid;
|
229
|
+
overflow: hidden;
|
230
|
+
}
|
231
|
+
|
232
|
+
.vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {
|
233
|
+
height: 100%;
|
234
|
+
overflow-x: hidden;
|
235
|
+
overflow-y: scroll;
|
236
|
+
}
|
237
|
+
|
238
|
+
.vis-left.vis-panel.vis-vertical-scroll {
|
239
|
+
direction: rtl;
|
240
|
+
}
|
241
|
+
|
242
|
+
.vis-left.vis-panel.vis-vertical-scroll .vis-content {
|
243
|
+
direction: ltr;
|
244
|
+
}
|
245
|
+
|
246
|
+
.vis-right.vis-panel.vis-vertical-scroll {
|
247
|
+
direction: ltr;
|
248
|
+
}
|
249
|
+
|
250
|
+
.vis-right.vis-panel.vis-vertical-scroll .vis-content {
|
251
|
+
direction: rtl;
|
252
|
+
}
|
253
|
+
|
254
|
+
.vis-panel.vis-center,
|
255
|
+
.vis-panel.vis-top,
|
256
|
+
.vis-panel.vis-bottom {
|
257
|
+
border-left-style: solid;
|
258
|
+
border-right-style: solid;
|
259
|
+
}
|
260
|
+
|
261
|
+
.vis-background {
|
262
|
+
overflow: hidden;
|
263
|
+
}
|
264
|
+
|
265
|
+
.vis-panel > .vis-content {
|
266
|
+
position: relative;
|
267
|
+
}
|
268
|
+
|
269
|
+
.vis-panel .vis-shadow {
|
270
|
+
position: absolute;
|
271
|
+
width: 100%;
|
272
|
+
height: 1px;
|
273
|
+
box-shadow: 0 0 10px rgba(0,0,0,0.8);
|
274
|
+
/* TODO: find a nice way to ensure vis-shadows are drawn on top of items
|
275
|
+
z-index: 1;
|
276
|
+
*/
|
277
|
+
}
|
278
|
+
|
279
|
+
.vis-panel .vis-shadow.vis-top {
|
280
|
+
top: -1px;
|
281
|
+
left: 0;
|
282
|
+
}
|
283
|
+
|
284
|
+
.vis-panel .vis-shadow.vis-bottom {
|
285
|
+
bottom: -1px;
|
286
|
+
left: 0;
|
287
|
+
}`;kt(rG);var iG=`.vis-graph-group0 {
|
288
|
+
fill:#4f81bd;
|
289
|
+
fill-opacity:0;
|
290
|
+
stroke-width:2px;
|
291
|
+
stroke: #4f81bd;
|
292
|
+
}
|
293
|
+
|
294
|
+
.vis-graph-group1 {
|
295
|
+
fill:#f79646;
|
296
|
+
fill-opacity:0;
|
297
|
+
stroke-width:2px;
|
298
|
+
stroke: #f79646;
|
299
|
+
}
|
300
|
+
|
301
|
+
.vis-graph-group2 {
|
302
|
+
fill: #8c51cf;
|
303
|
+
fill-opacity:0;
|
304
|
+
stroke-width:2px;
|
305
|
+
stroke: #8c51cf;
|
306
|
+
}
|
307
|
+
|
308
|
+
.vis-graph-group3 {
|
309
|
+
fill: #75c841;
|
310
|
+
fill-opacity:0;
|
311
|
+
stroke-width:2px;
|
312
|
+
stroke: #75c841;
|
313
|
+
}
|
314
|
+
|
315
|
+
.vis-graph-group4 {
|
316
|
+
fill: #ff0100;
|
317
|
+
fill-opacity:0;
|
318
|
+
stroke-width:2px;
|
319
|
+
stroke: #ff0100;
|
320
|
+
}
|
321
|
+
|
322
|
+
.vis-graph-group5 {
|
323
|
+
fill: #37d8e6;
|
324
|
+
fill-opacity:0;
|
325
|
+
stroke-width:2px;
|
326
|
+
stroke: #37d8e6;
|
327
|
+
}
|
328
|
+
|
329
|
+
.vis-graph-group6 {
|
330
|
+
fill: #042662;
|
331
|
+
fill-opacity:0;
|
332
|
+
stroke-width:2px;
|
333
|
+
stroke: #042662;
|
334
|
+
}
|
335
|
+
|
336
|
+
.vis-graph-group7 {
|
337
|
+
fill:#00ff26;
|
338
|
+
fill-opacity:0;
|
339
|
+
stroke-width:2px;
|
340
|
+
stroke: #00ff26;
|
341
|
+
}
|
342
|
+
|
343
|
+
.vis-graph-group8 {
|
344
|
+
fill:#ff00ff;
|
345
|
+
fill-opacity:0;
|
346
|
+
stroke-width:2px;
|
347
|
+
stroke: #ff00ff;
|
348
|
+
}
|
349
|
+
|
350
|
+
.vis-graph-group9 {
|
351
|
+
fill: #8f3938;
|
352
|
+
fill-opacity:0;
|
353
|
+
stroke-width:2px;
|
354
|
+
stroke: #8f3938;
|
355
|
+
}
|
356
|
+
|
357
|
+
.vis-timeline .vis-fill {
|
358
|
+
fill-opacity:0.1;
|
359
|
+
stroke: none;
|
360
|
+
}
|
361
|
+
|
362
|
+
|
363
|
+
.vis-timeline .vis-bar {
|
364
|
+
fill-opacity:0.5;
|
365
|
+
stroke-width:1px;
|
366
|
+
}
|
367
|
+
|
368
|
+
.vis-timeline .vis-point {
|
369
|
+
stroke-width:2px;
|
370
|
+
fill-opacity:1.0;
|
371
|
+
}
|
372
|
+
|
373
|
+
|
374
|
+
.vis-timeline .vis-legend-background {
|
375
|
+
stroke-width:1px;
|
376
|
+
fill-opacity:0.9;
|
377
|
+
fill: #ffffff;
|
378
|
+
stroke: #c2c2c2;
|
379
|
+
}
|
380
|
+
|
381
|
+
|
382
|
+
.vis-timeline .vis-outline {
|
383
|
+
stroke-width:1px;
|
384
|
+
fill-opacity:1;
|
385
|
+
fill: #ffffff;
|
386
|
+
stroke: #e5e5e5;
|
387
|
+
}
|
388
|
+
|
389
|
+
.vis-timeline .vis-icon-fill {
|
390
|
+
fill-opacity:0.3;
|
391
|
+
stroke: none;
|
392
|
+
}
|
393
|
+
`;kt(iG);var nG=`
|
394
|
+
.vis-timeline {
|
395
|
+
position: relative;
|
396
|
+
border: 1px solid #bfbfbf;
|
397
|
+
overflow: hidden;
|
398
|
+
padding: 0;
|
399
|
+
margin: 0;
|
400
|
+
box-sizing: border-box;
|
401
|
+
}
|
402
|
+
|
403
|
+
.vis-loading-screen {
|
404
|
+
width: 100%;
|
405
|
+
height: 100%;
|
406
|
+
position: absolute;
|
407
|
+
top: 0;
|
408
|
+
left: 0;
|
409
|
+
}`;kt(nG);var aG=`/* override some bootstrap styles screwing up the timelines css */
|
410
|
+
|
411
|
+
.vis [class*="span"] {
|
412
|
+
min-height: 0;
|
413
|
+
width: auto;
|
414
|
+
}
|
415
|
+
`;kt(aG);var fn=function(){function e(){ue(this,e)}return ce(e,[{key:"_create",value:function(t){var a=this,n,s,o;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(){a.initialDrawDone===!0&&a._redraw()}),this.on("rangechanged",function(){a.initialRangeChangeDone||(a.initialRangeChangeDone=!0)}),this.on("touch",O(n=this._onTouch).call(n,this)),this.on("panmove",O(s=this._onDrag).call(s,this));var l=this;this._origRedraw=O(o=this._redraw).call(o,this),this._redraw=x.throttle(this._origRedraw),this.on("_change",function(w){l.itemSet&&l.itemSet.initialItemSetDrawn&&w&&w.queue==!0?l._redraw():l._origRedraw()}),this.hammer=new vt(this.dom.root);var d=this.hammer.get("pinch").set({enable:!0});d&&kW(d),this.hammer.get("pan").set({threshold:5,direction:vt.DIRECTION_ALL}),this.timelineListeners={};var u=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];B(u).call(u,function(w){var S=function(T){l.isActive()&&l.emit(w,T)};l.hammer.on(w,S),l.timelineListeners[w]=S}),mb(this.hammer,function(w){l.emit("touch",w)}),wW(this.hammer,function(w){l.emit("release",w)});function f(w){var S=40,D=800;this.isActive()&&this.emit("mousewheel",w);var T=0,P=0;if("detail"in w&&(P=w.detail*-1),"wheelDelta"in w&&(P=w.wheelDelta),"wheelDeltaY"in w&&(P=w.wheelDeltaY),"wheelDeltaX"in w&&(T=w.wheelDeltaX*-1),"axis"in w&&w.axis===w.HORIZONTAL_AXIS&&(T=P*-1,P=0),"deltaY"in w&&(P=w.deltaY*-1),"deltaX"in w&&(T=w.deltaX),w.deltaMode&&(w.deltaMode===1?(T*=S,P*=S):(T*=S,P*=D)),this.options.preferZoom){if(!this.options.zoomKey||w[this.options.zoomKey])return}else if(this.options.zoomKey&&w[this.options.zoomKey])return;if(!(!this.options.verticalScroll&&!this.options.horizontalScroll)){if(this.options.verticalScroll&&Math.abs(P)>=Math.abs(T)){var F=this.props.scrollTop,A=F+P;if(this.isActive()){var V=this._setScrollTop(A);V!==F&&(this._redraw(),this.emit("scroll",w),w.preventDefault())}}else if(this.options.horizontalScroll){var N=Math.abs(T)>=Math.abs(P)?T:P,I=N/120*(this.range.end-this.range.start)/20,M=this.range.start+I,H=this.range.end+I,W={animation:!1,byUser:!0,event:w};this.range.setRange(M,H,W),w.preventDefault()}}}var p="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(p,O(f).call(f,this),!1),this.dom.top.addEventListener(p,O(f).call(f,this),!1),this.dom.bottom.addEventListener(p,O(f).call(f,this),!1);function m(w){if(l.options.verticalScroll&&(w.preventDefault(),l.isActive())){var S=-w.target.scrollTop;l._setScrollTop(S),l._redraw(),l.emit("scrollSide",w)}}this.dom.left.parentNode.addEventListener("scroll",O(m).call(m,this)),this.dom.right.parentNode.addEventListener("scroll",O(m).call(m,this));var y=!1;function b(w){var S;if(w.preventDefault&&(l.emit("dragover",l.getEventProperties(w)),w.preventDefault()),Se(S=w.target.className).call(S,"timeline")>-1&&!y)return w.dataTransfer.dropEffect="move",y=!0,!1}function E(w){w.preventDefault&&w.preventDefault(),w.stopPropagation&&w.stopPropagation();try{var S=JSON.parse(w.dataTransfer.getData("text"));if(!S||!S.content)return}catch{return!1}return y=!1,w.center={x:w.clientX,y:w.clientY},S.target!=="item"?l.itemSet._onAddItem(w):l.itemSet._onDropObjectOnItem(w),l.emit("drop",l.getEventProperties(w)),!1}if(this.dom.center.addEventListener("dragover",O(b).call(b,this),!1),this.dom.center.addEventListener("drop",O(E).call(E,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 a;if(t){var n=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"];if(x.selectiveExtend(n,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"),ee(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&(typeof t.orientation=="string"?this.options.orientation={item:t.orientation,axis:t.orientation}:ee(t.orientation)==="object"&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var s=this.timeAxis2=new ho(this.body,this.options);s.setOptions=function(p){var m=p?x.extend({},p):{};m.orientation="top",ho.prototype.setOptions.call(s,m)},this.components.push(s)}}else if(this.timeAxis2){var o,l=Se(o=this.components).call(o,this.timeAxis2);if(l!==-1){var d;pt(d=this.components).call(d,l,1)}this.timeAxis2.destroy(),this.timeAxis2=null}typeof t.drawPoints=="function"&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&xc(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new Ut(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(B(a=this.components).call(a,function(p){return p.setOptions(t)}),"configure"in t){var u;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var f=x.deepExtend({},this.options);B(u=this.components).call(u,function(p){x.deepExtend(f,p.options)}),this.configurator.setModuleOptions({global:f})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var t;this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var a in this.timelineListeners)this.timelineListeners.hasOwnProperty(a)&&delete this.timelineListeners[a];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,B(t=this.components).call(t,function(n){return n.destroy()}),this.body=null}},{key:"setCustomTime",value:function(t,a){var n,s=J(n=this.customTimes).call(n,function(o){return a===o.options.id});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Dt(a)));s.length>0&&s[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var a,n=J(a=this.customTimes).call(a,function(s){return s.options.id===t});if(n.length===0)throw new Error("No custom time bar found with id ".concat(Dt(t)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,a,n){var s,o=J(s=this.customTimes).call(s,function(l){return l.options.id===a});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Dt(a)));o.length>0&&o[0].setCustomMarker(t,n)}},{key:"setCustomTimeTitle",value:function(t,a){var n,s=J(n=this.customTimes).call(n,function(o){return o.options.id===a});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Dt(a)));if(s.length>0)return s[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,a){var n,s=t!==void 0?x.convert(t,"Date"):new Date,o=yc(n=this.customTimes).call(n,function(d){return d.options.id===a});if(o)throw new Error("A custom time with id ".concat(Dt(a)," already exists"));var l=new Tc(this.body,x.extend({},this.options,{time:s,id:a,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(l),this.components.push(l),this._redraw(),a}},{key:"removeCustomTime",value:function(t){var a,n=this,s=J(a=this.customTimes).call(a,function(o){return o.options.id===t});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Dt(t)));B(s).call(s,function(o){var l,d,u,f;pt(l=n.customTimes).call(l,Se(d=n.customTimes).call(d,o),1),pt(u=n.components).call(u,Se(f=n.components).call(f,o),1),o.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,a){var n=this.getDataRange();if(!(n.min===null&&n.max===null)){var s=n.max-n.min,o=new Date(n.min.valueOf()-s*.01),l=new Date(n.max.valueOf()+s*.01),d=t&&t.animation!==void 0?t.animation:!0;this.range.setRange(o,l,{animation:d},a)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,a,n,s){typeof arguments[2]=="function"&&(s=arguments[2],n={});var o,l;arguments.length==1?(l=arguments[0],o=l.animation!==void 0?l.animation:!0,this.range.setRange(l.start,l.end,{animation:o})):arguments.length==2&&typeof arguments[1]=="function"?(l=arguments[0],s=arguments[1],o=l.animation!==void 0?l.animation:!0,this.range.setRange(l.start,l.end,{animation:o},s)):(o=n&&n.animation!==void 0?n.animation:!0,this.range.setRange(t,a,{animation:o},s))}},{key:"moveTo",value:function(t,a,n){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.range.end-this.range.start,o=x.convert(t,"Date").valueOf(),l=o-s/2,d=o+s/2,u=a&&a.animation!==void 0?a.animation:!0;this.range.setRange(l,d,{animation:u},n)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,a,n){if(!(!t||t<0||t>1)){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.getWindow(),o=s.start.valueOf(),l=s.end.valueOf(),d=l-o,u=d/(1+t),f=(d-u)/2,p=o+f,m=l-f;this.setWindow(p,m,a,n)}}},{key:"zoomOut",value:function(t,a,n){if(!(!t||t<0||t>1)){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.getWindow(),o=s.start.valueOf(),l=s.end.valueOf(),d=l-o,u=o-d*t/2,f=l+d*t/2;this.setWindow(u,f,a,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var t;this.redrawCount++;var a=this.dom;if(!(!a||!a.container||a.root.offsetWidth==0)){var n=!1,s=this.options,o=this.props;oo(this.options.moment,this.body,this.options.hiddenDates),s.orientation=="top"?(x.addClassName(a.root,"vis-top"),x.removeClassName(a.root,"vis-bottom")):(x.removeClassName(a.root,"vis-top"),x.addClassName(a.root,"vis-bottom")),s.rtl?(x.addClassName(a.root,"vis-rtl"),x.removeClassName(a.root,"vis-ltr")):(x.addClassName(a.root,"vis-ltr"),x.removeClassName(a.root,"vis-rtl")),a.root.style.maxHeight=x.option.asSize(s.maxHeight,""),a.root.style.minHeight=x.option.asSize(s.minHeight,""),a.root.style.width=x.option.asSize(s.width,"");var l=a.root.offsetWidth;o.border.left=1,o.border.right=1,o.border.top=1,o.border.bottom=1,o.center.height=a.center.offsetHeight,o.left.height=a.left.offsetHeight,o.right.height=a.right.offsetHeight,o.top.height=a.top.clientHeight||-o.border.top,o.bottom.height=Math.round(a.bottom.getBoundingClientRect().height)||a.bottom.clientHeight||-o.border.bottom;var d=Math.max(o.left.height,o.center.height,o.right.height),u=o.top.height+d+o.bottom.height+o.border.top+o.border.bottom;a.root.style.height=x.option.asSize(s.height,"".concat(u,"px")),o.root.height=a.root.offsetHeight,o.background.height=o.root.height;var f=o.root.height-o.top.height-o.bottom.height;o.centerContainer.height=f,o.leftContainer.height=f,o.rightContainer.height=o.leftContainer.height,o.root.width=l,o.background.width=o.root.width,this.initialDrawDone||(o.scrollbarWidth=x.getScrollBarWidth());var p=a.leftContainer.clientWidth,m=a.rightContainer.clientWidth;s.verticalScroll?s.rtl?(o.left.width=p||-o.border.left,o.right.width=m+o.scrollbarWidth||-o.border.right):(o.left.width=p+o.scrollbarWidth||-o.border.left,o.right.width=m||-o.border.right):(o.left.width=p||-o.border.left,o.right.width=m||-o.border.right),this._setDOM();var y=this._updateScrollTop();s.orientation.item!="top"&&(y+=Math.max(o.centerContainer.height-o.center.height-o.border.top-o.border.bottom,0)),a.center.style.transform="translateY(".concat(y,"px)");var b=o.scrollTop==0?"hidden":"",E=o.scrollTop==o.scrollTopMin?"hidden":"";a.shadowTop.style.visibility=b,a.shadowBottom.style.visibility=E,a.shadowTopLeft.style.visibility=b,a.shadowBottomLeft.style.visibility=E,a.shadowTopRight.style.visibility=b,a.shadowBottomRight.style.visibility=E,s.verticalScroll&&(a.rightContainer.className="vis-panel vis-right vis-vertical-scroll",a.leftContainer.className="vis-panel vis-left vis-vertical-scroll",a.shadowTopRight.style.visibility="hidden",a.shadowBottomRight.style.visibility="hidden",a.shadowTopLeft.style.visibility="hidden",a.shadowBottomLeft.style.visibility="hidden",a.left.style.top="0px",a.right.style.top="0px"),(!s.verticalScroll||o.center.height<o.centerContainer.height)&&(a.left.style.top="".concat(y,"px"),a.right.style.top="".concat(y,"px"),a.rightContainer.className=a.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),a.leftContainer.className=a.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),o.left.width=p||-o.border.left,o.right.width=m||-o.border.right,this._setDOM());var w=o.center.height>o.centerContainer.height;this.hammer.get("pan").set({direction:w?vt.DIRECTION_ALL:vt.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),B(t=this.components).call(t,function(D){n=D.redraw()||n});var S=5;if(n)if(this.redrawCount<S){this.body.emitter.emit("_change");return}else console.log("WARNING: infinite loop in redraw?");else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var t=this.props,a=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var n=t.root.width-t.left.width-t.right.width;t.center.width=n,t.centerContainer.width=n,t.top.width=n,t.bottom.width=n,a.background.style.height="".concat(t.background.height,"px"),a.backgroundVertical.style.height="".concat(t.background.height,"px"),a.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),a.centerContainer.style.height="".concat(t.centerContainer.height,"px"),a.leftContainer.style.height="".concat(t.leftContainer.height,"px"),a.rightContainer.style.height="".concat(t.rightContainer.height,"px"),a.background.style.width="".concat(t.background.width,"px"),a.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),a.backgroundHorizontal.style.width="".concat(t.background.width,"px"),a.centerContainer.style.width="".concat(t.center.width,"px"),a.top.style.width="".concat(t.top.width,"px"),a.bottom.style.width="".concat(t.bottom.width,"px"),a.background.style.left="0",a.background.style.top="0",a.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),a.backgroundVertical.style.top="0",a.backgroundHorizontal.style.left="0",a.backgroundHorizontal.style.top="".concat(t.top.height,"px"),a.centerContainer.style.left="".concat(t.left.width,"px"),a.centerContainer.style.top="".concat(t.top.height,"px"),a.leftContainer.style.left="0",a.leftContainer.style.top="".concat(t.top.height,"px"),a.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),a.rightContainer.style.top="".concat(t.top.height,"px"),a.top.style.left="".concat(t.left.width,"px"),a.top.style.top="0",a.bottom.style.left="".concat(t.left.width,"px"),a.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),a.center.style.left="0",a.left.style.left="0",a.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 Vp(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return Vp(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return Ap(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return Ap(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==!0?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){if(t.options.autoResize!=!0){t._stopAutoResize();return}if(t.dom.root){var a=t.dom.root.offsetHeight,n=t.dom.root.offsetWidth;(n!=t.props.lastWidth||a!=t.props.lastHeight)&&(t.props.lastWidth=n,t.props.lastHeight=a,t.props.scrollbarWidth=x.getScrollBarWidth(),t.body.emitter.emit("_change"))}},window.addEventListener("resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=yW(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 a=t.deltaY,n=this._getScrollTop(),s=this._setScrollTop(this.touch.initialScrollTop+a);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),s!=n&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(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")}}]),e}();Uu(fn.prototype);function sG(e){var r=oG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function oG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Sb=function(e){wt(t,e);var r=sG(t);function t(a,n){var s,o;ue(this,t),o=r.call(this),o.body=a,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:mt,locales:kn,locale:"en"},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},kn,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return B(s=Ze(o.options.locales)).call(s,function(d){o.options.locales[d]=x.extend({},l,o.options.locales[d])}),o.offset=0,o._create(),o}return ce(t,[{key:"_create",value:function(){var n=document.createElement("div");n.className="vis-current-time",n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(n){n&&x.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,n)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var n,s,o=this.body.dom.backgroundVertical;this.bar.parentNode!=o&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),o.appendChild(this.bar),this.start());var l=this.options.moment(Rt()+this.offset);this.options.alignCurrentTime&&(l=l.startOf(this.options.alignCurrentTime));var d=this.body.util.toScreen(l),u=this.options.locales[this.options.locale];u||(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),u=this.options.locales.en);var f=Ne(n=Ne(s="".concat(u.current," ")).call(s,u.time,": ")).call(n,l.format("dddd, MMMM Do YYYY, H:mm:ss"));f=f.charAt(0).toUpperCase()+f.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(d*-1,"px)"):this.bar.style.transform="translateX(".concat(d,"px)"),this.bar.title=f}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var n=this;function s(){n.stop();var o=n.body.range.conversion(n.body.domProps.center.width).scale,l=1/o/10;l<30&&(l=30),l>1e3&&(l=1e3),n.redraw(),n.body.emitter.emit("currentTimeTick"),n.currentTimeTimer=ct(s,l)}s()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(n){var s=x.convert(n,"Date").valueOf(),o=Rt();this.offset=s-o,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(Rt()+this.offset)}}]),t}(li),lG=U,dG=jr.find,Yp="find",$b=!0;Yp in[]&&Array(1)[Yp](function(){$b=!1});lG({target:"Array",proto:!0,forced:$b},{find:function(r){return dG(this,r,arguments.length>1?arguments[1]:void 0)}});var uG=Le,cG=uG("Array").find,hG=$e,fG=cG,Dd=Array.prototype,vG=function(e){var r=e.find;return e===Dd||hG(Dd,e)&&r===Dd.find?fG:r},pG=vG,mG=pG,gG=mG,yG=z(gG),_G=U,bG=jr.findIndex,jp="findIndex",Db=!0;jp in[]&&Array(1)[jp](function(){Db=!1});_G({target:"Array",proto:!0,forced:Db},{findIndex:function(r){return bG(this,r,arguments.length>1?arguments[1]:void 0)}});var wG=Le,kG=wG("Array").findIndex,xG=$e,EG=kG,Td=Array.prototype,SG=function(e){var r=e.findIndex;return e===Td||xG(Td,e)&&r===Td.findIndex?EG:r},$G=SG,DG=$G,TG=DG,NG=z(TG);function CG(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=OG(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
416
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function OG(e,r){var t;if(e){if(typeof e=="string")return Bp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Bp(e,r)}}function Bp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var Vt=.001;function PG(e){Ue(e).call(e,function(r,t){return r.data.start-t.data.start})}function IG(e){Ue(e).call(e,function(r,t){var a="end"in r.data?r.data.end:r.data.start,n="end"in t.data?t.data.end:t.data.start;return a-n})}function Hp(e,r,t,a){var n=Nc(e,r.item,!1,function(s){return s.stack&&(t||s.top===null)},function(s){return s.stack},function(s){return r.axis},a);return n===null}function MG(e,r,t){var a=Nc(e,r.item,!1,function(n){return n.stack},function(n){return!0},function(n){return n.baseTop});t.height=a-t.top+.5*r.item.vertical}function AG(e,r,t,a){for(var n=0;n<e.length;n++)if(e[n].data.subgroup==null)e[n].top=r.item.vertical;else if(e[n].data.subgroup!==void 0&&a){var s=0;for(var o in t)t.hasOwnProperty(o)&&t[o].visible==!0&&t[o].index<t[e[n].data.subgroup].index&&(s+=t[o].height,t[e[n].data.subgroup].top=s);e[n].top=s+.5*r.item.vertical}a||VG(e,r,t)}function VG(e,r,t){var a;Nc(Ue(a=Gu(t)).call(a,function(s,o){return s.index>o.index?1:s.index<o.index?-1:0}),{vertical:0},!0,function(s){return!0},function(s){return!0},function(s){return 0});for(var n=0;n<e.length;n++)e[n].data.subgroup!==void 0&&(e[n].top=t[e[n].data.subgroup].top+.5*r.item.vertical)}function Wp(e,r,t){var a=!1,n=[];for(var s in t)t[s].hasOwnProperty("index")?n[t[s].index]=s:n.push(s);for(var o=0;o<n.length;o++)if(s=n[o],t.hasOwnProperty(s)){a=a||t[s].stack,t[s].top=0;for(var l in t)t[l].visible&&t[s].index>t[l].index&&(t[s].top+=t[l].height);for(var d=e[s],u=0;u<d.length;u++)d[u].data.subgroup!==void 0&&(d[u].top=t[d[u].data.subgroup].top+.5*r.item.vertical,t[s].stack&&(d[u].baseTop=d[u].top));a&&t[s].stack&&MG(e[s],r,t[s])}}function Nc(e,r,t,a,n,s,o){var l=function(N){return N.start},d=function(N){return N.end};if(!t){var u=!!(e[0]&&e[0].options.rtl);u?l=function(N){return N.right}:l=function(N){return N.left},d=function(N){return l(N)+N.width+r.horizontal}}var f=[],p=[],m=null,y=0,b=CG(e),E;try{var w=function(){var N=E.value;if(a(N))f.push(N);else if(n(N)){var I=l(N);m!==null&&I<m-Vt&&(y=0),m=I,y=Rs(p,function(M){return l(M)-Vt>I},y),pt(p).call(p,y,0,N),y++}};for(b.s();!(E=b.n()).done;)w()}catch(V){b.e(V)}finally{b.f()}m=null;var S=null;y=0;for(var D=0,T=0,P=0,F=function(){var N,I,M=f.shift();M.top=s(M);var H=l(M),W=d(M);m!==null&&H<m-Vt&&(D=0,T=0,y=0,S=null),m=H,D=Rs(p,function(Fe){return H<d(Fe)-Vt},D),(S===null||S<W-Vt)&&(T=Rs(p,function(Fe){return W<l(Fe)-Vt},Math.max(D,T))),S!==null&&S-Vt>W&&(T=LG(p,function(Fe){return W+Vt>=l(Fe)},D,T)+1);for(var q=Ue(N=J(I=ht(p).call(p,D,T)).call(I,function(Fe){return H<d(Fe)-Vt&&W-Vt>l(Fe)})).call(N,function(Fe,xt){return Fe.top-xt.top}),de=0;de<q.length;de++){var Ae=q[de];RG(M,Ae,r)&&(M.top=Ae.top+Ae.height+r.vertical)}n(M)&&(y=Rs(p,function(Fe){return l(Fe)-Vt>H},y),pt(p).call(p,y,0,M),y++);var Je=M.top+M.height;if(Je>P&&(P=Je),o&&o())return{v:null}},A;f.length>0;)if(A=F(),A)return A.v;return P}function RG(e,r,t){return e.top-t.vertical+Vt<r.top+r.height&&e.top+e.height+t.vertical-Vt>r.top}function Rs(e,r,t){var a;t||(t=0);var n=NG(a=ht(e).call(e,t)).call(a,r);return n===-1?e.length:n+t}function LG(e,r,t,a){for(t||(t=0),a||(a=e.length),i=a-1;i>=t;i--)if(r(e[i]))return i;return t-1}var FG="__background__",Gp={BACKGROUND:FG},ku=function(){function e(r,t,a){var n=this;if(ue(this,e),this.groupId=r,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=t&&t.subgroupOrder,this.itemSet=a,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],t&&t.nestedGroups&&(this.nestedGroups=t.nestedGroups,t.showNested==!1?this.showNested=!1:this.showNested=!0),t&&t.subgroupStack)if(typeof t.subgroupStack=="boolean")this.doInnerStack=t.subgroupStack,this.subgroupStackAll=t.subgroupStack;else for(var s in t.subgroupStack)this.subgroupStack[s]=t.subgroupStack[s],this.doInnerStack=this.doInnerStack||t.subgroupStack[s];t&&t.heightMode?this.heightMode=t.heightMode:this.heightMode=a.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 o=function(){n.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",o),this._disposeCallbacks.push(function(){n.itemSet.body.emitter.off("checkRangedItems",o)}),this._create(),this.setData(t)}return ce(e,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var a=document.createElement("div");a.className="vis-inner",t.appendChild(a),this.dom.inner=a;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var a,n;if(t&&t.subgroupVisibility)for(var s in t.subgroupVisibility)this.subgroupVisibility[s]=t.subgroupVisibility[s];if(this.itemSet.options&&this.itemSet.options.groupTemplate){var o;n=O(o=this.itemSet.options.groupTemplate).call(o,this),a=n(t,this.dom.inner)}else a=t&&t.content;if(a instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(a)}else a instanceof Object&&a.isReactComponent||(a instanceof Object?n(t,this.dom.inner):a!=null?this.dom.inner.innerHTML=x.xss(a):this.dom.inner.innerHTML=x.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?x.removeClassName(this.dom.inner,"vis-hidden"):x.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups?((!this.nestedGroups||this.nestedGroups!=t.nestedGroups)&&(this.nestedGroups=t.nestedGroups),(t.showNested!==void 0||this.showNested===void 0)&&(t.showNested==!1?this.showNested=!1:this.showNested=!0),x.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(x.removeClassName(this.dom.label,"collapsed"),x.addClassName(this.dom.label,"expanded")):(x.removeClassName(this.dom.label,"expanded"),x.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,x.removeClassName(this.dom.label,"collapsed"),x.removeClassName(this.dom.label,"expanded"),x.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(x.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?x.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):x.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):x.addClassName(this.dom.label,"vis-group-level-0");var l=t&&t.className||null;l!=this.className&&(this.className&&(x.removeClassName(this.dom.label,this.className),x.removeClassName(this.dom.foreground,this.className),x.removeClassName(this.dom.background,this.className),x.removeClassName(this.dom.axis,this.className)),x.addClassName(this.dom.label,l),x.addClassName(this.dom.foreground,l),x.addClassName(this.dom.background,l),x.addClassName(this.dom.axis,l),this.className=l),this.style&&(x.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(x.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 a={},n=0;B(x).call(x,this.items,function(d,u){if(d.dirty=!0,d.displayed){var f=!0;a[u]=d.redraw(f),n=a[u].length}});var s=n>0;if(s)for(var o=function(u){B(x).call(x,a,function(f){f[u]()})},l=0;l<n;l++)o(l);return!0}else return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground,a=t.offsetTop,n=t.offsetLeft,s=t.offsetWidth;this.top=a,this.right=n,this.width=s}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,a=this.itemSet.options.onTimeout,n={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:a&&a.timeoutMs,userBailFunction:a&&a.callback,shouldBailStackItems:this.shouldBailStackItems},s=null;if(!this.itemSet.initialDrawDone){if(n.shouldBailStackItems)return!0;Math.abs(Rt()-new Date(n.relativeBailingTime))>n.bailTimeMs&&(n.userBailFunction&&this.itemSet.userContinueNotBail==null?n.userBailFunction(function(o){t.itemSet.userContinueNotBail=o,s=!o}):t.itemSet.userContinueNotBail==!1?s=!0:s=!1)}return s}},{key:"_redrawItems",value:function(t,a,n,s){var o=this,l=t||this.stackDirty||this.isVisible&&!a;if(l){var d,u,f,p,m,y,b={byEnd:J(d=this.orderedItems.byEnd).call(d,function(W){return!W.isCluster}),byStart:J(u=this.orderedItems.byStart).call(u,function(W){return!W.isCluster})},E={byEnd:Pe(new ei(J(f=ye(p=this.orderedItems.byEnd).call(p,function(W){return W.cluster})).call(f,function(W){return!!W}))),byStart:Pe(new ei(J(m=ye(y=this.orderedItems.byStart).call(y,function(W){return W.cluster})).call(m,function(W){return!!W})))},w=function(){var q,de,Ae,Je=o._updateItemsInRange(b,J(q=o.visibleItems).call(q,function(xt){return!xt.isCluster}),s),Fe=o._updateClustersInRange(E,J(de=o.visibleItems).call(de,function(xt){return xt.isCluster}),s);return Ne(Ae=[]).call(Ae,Pe(Je),Pe(Fe))},S=function(q){var de={},Ae=function(xt){var _r,We=J(_r=o.visibleItems).call(_r,function(ur){return ur.data.subgroup===xt});de[xt]=q?Ue(We).call(We,function(ur,Zt){return q(ur.data,Zt.data)}):We};for(var Je in o.subgroups)Ae(Je);return de};if(typeof this.itemSet.options.order=="function"){var D=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var T=S(this.itemSet.options.order);Wp(T,n,this.subgroups),this.visibleItems=w(),this._updateSubGroupHeights(n)}else{var P,F,A,V;this.visibleItems=w(),this._updateSubGroupHeights(n);var N=Ue(P=J(F=ht(A=this.visibleItems).call(A)).call(F,function(W){return W.isCluster||!W.isCluster&&!W.cluster})).call(P,function(W,q){return D.itemSet.options.order(W.data,q.data)});this.shouldBailStackItems=Hp(N,n,!0,O(V=this._shouldBailItemsRedraw).call(V,this))}}else if(this.visibleItems=w(),this._updateSubGroupHeights(n),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var I=S();Wp(I,n,this.subgroups)}else{var M;this.shouldBailStackItems=Hp(this.visibleItems,n,!0,O(M=this._shouldBailItemsRedraw).call(M,this))}else AG(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups);for(var H=0;H<this.visibleItems.length;H++)this.visibleItems[H].repositionX(),this.subgroupVisibility[this.visibleItems[H].data.subgroup]!==void 0&&(this.subgroupVisibility[this.visibleItems[H].data.subgroup]||this.visibleItems[H].hide());this.itemSet.options.cluster&&B(x).call(x,this.items,function(W){W.cluster&&W.displayed&&W.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(t,a){t=x.updateProperty(this,"height",a)||t;var n=this.dom.inner.clientWidth,s=this.dom.inner.clientHeight;return t=x.updateProperty(this.props.label,"width",n)||t,t=x.updateProperty(this.props.label,"height",s)||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 a=0,n=this.visibleItems.length;a<n;a++){var s=this.visibleItems[a];s.repositionY(t),!this.isVisible&&this.groupId!=Gp.BACKGROUND&&s.displayed&&s.hide()}}},{key:"redraw",value:function(t,a,n,s){var o=this,l,d,u,f,p,m=!1,y=this.isVisible,b,E=[function(){n=o._didMarkerHeightChange.call(o)||n},O(l=this._updateSubGroupHeights).call(l,this,a),O(d=this._calculateGroupSizeAndPosition).call(d,this),function(){var S;o.isVisible=O(S=o._isGroupVisible).call(S,o)(t,a)},function(){var S;O(S=o._redrawItems).call(S,o)(n,y,a,t)},O(u=this._updateSubgroupsSizes).call(u,this),function(){var S;b=O(S=o._calculateHeight).call(S,o)(a)},O(f=this._calculateGroupSizeAndPosition).call(f,this),function(){var S;m=O(S=o._didResize).call(S,o)(m,b)},function(){var S;O(S=o._applyGroupHeight).call(S,o)(b)},function(){var S;O(S=o._updateItemsVerticalPosition).call(S,o)(a)},O(p=function(){return!o.isVisible&&o.height&&(m=!1),m}).call(p,this)];if(s)return E;var w;return B(E).call(E,function(S){w=S()}),w}},{key:"_updateSubGroupHeights",value:function(t){var a=this;if(Ze(this.subgroups).length>0){var n=this;this._resetSubgroups(),B(x).call(x,this.visibleItems,function(s){s.data.subgroup!==void 0&&(n.subgroups[s.data.subgroup].height=Math.max(n.subgroups[s.data.subgroup].height,s.height+t.item.vertical),n.subgroups[s.data.subgroup].visible=typeof a.subgroupVisibility[s.data.subgroup]>"u"?!0:!!a.subgroupVisibility[s.data.subgroup])})}}},{key:"_isGroupVisible",value:function(t,a){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+a.axis&&this.top+this.height+a.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var a,n;if(this.heightMode==="fixed"?n=x.toArray(this.items):n=this.visibleItems,n.length>0){var s=n[0].top,o=n[0].top+n[0].height;if(B(x).call(x,n,function(d){s=Math.min(s,d.top),o=Math.max(o,d.top+d.height)}),s>t.axis){var l=s-t.axis;o-=l,B(x).call(x,n,function(d){d.top-=l})}a=Math.ceil(o+t.item.vertical/2),this.heightMode!=="fitItems"&&(a=Math.max(a,this.props.label.height))}else a=this.props.label.height;return a}},{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 a=this.dom.foreground;a.parentNode&&a.parentNode.removeChild(a);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var s=this.dom.axis;s.parentNode&&s.parentNode.removeChild(s)}},{key:"add",value:function(t){var a;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,t.data.subgroup!==void 0&&(this._addToSubgroup(t),this.orderSubgroups()),!ti(a=this.visibleItems).call(a,t)){var n=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.data.subgroup;a!=null&&this.subgroups[a]===void 0&&(this.subgroups[a]={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[a]||!1},this.subgroupIndex++),new Date(t.data.start)<new Date(this.subgroups[a].start)&&(this.subgroups[a].start=t.data.start);var n=t.data.end||t.data.start;new Date(n)>new Date(this.subgroups[a].end)&&(this.subgroups[a].end=n),this.subgroups[a].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var a=function(){var o,l=t.subgroups[n].items[0].data.end||t.subgroups[n].items[0].data.start,d=t.subgroups[n].items[0].data.start,u=l-1;B(o=t.subgroups[n].items).call(o,function(f){new Date(f.data.start)<new Date(d)&&(d=f.data.start);var p=f.data.end||f.data.start;new Date(p)>new Date(u)&&(u=p)}),t.subgroups[n].start=d,t.subgroups[n].end=new Date(u-1)};for(var n in t.subgroups)a()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var t=[];if(typeof this.subgroupOrderer=="string"){for(var a in this.subgroups)t.push({subgroup:a,sortField:this.subgroups[a].items[0].data[this.subgroupOrderer]});Ue(t).call(t,function(o,l){return o.sortField-l.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var n in this.subgroups)t.push(this.subgroups[n].items[0].data);Ue(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var s=0;s<t.length;s++)this.subgroups[t[s].subgroup].index=s}}},{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 a,n;delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var s=Se(a=this.visibleItems).call(a,t);s!=-1&&pt(n=this.visibleItems).call(n,s,1),t.data.subgroup!==void 0&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.data.subgroup;if(a!=null){var n=this.subgroups[a];if(n){var s,o=Se(s=n.items).call(s,t);if(o>=0){var l;pt(l=n.items).call(l,o,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[a]}}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=x.toArray(this.items),a=[],n=[],s=0;s<t.length;s++)t[s].data.end!==void 0&&n.push(t[s]),a.push(t[s]);this.orderedItems={byStart:a,byEnd:n},PG(this.orderedItems.byStart),IG(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,a,n){var s=[],o={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=Gp.BACKGROUND){for(var l=0;l<a.length;l++){var d=a[l];d.displayed&&d.hide()}return s}var u=(n.end-n.start)/4,f=n.start-u,p=n.end+u,m=function(W){return W<f?-1:W<=p?0:1},y=function(W){var q=W.start,de=W.end;return de<f?-1:q<=p?0:1};if(a.length>0)for(var b=0;b<a.length;b++)this._checkIfVisibleWithReference(a[b],s,o,n);var E=x.binarySearchCustom(t.byStart,m,"data","start");if(this._traceVisible(E,t.byStart,s,o,function(H){return H.data.start<f||H.data.start>p}),this.checkRangedItems==!0){this.checkRangedItems=!1;for(var w=0;w<t.byEnd.length;w++)this._checkIfVisibleWithReference(t.byEnd[w],s,o,n)}else{var S=x.binarySearchCustom(t.byEnd,y,"data");this._traceVisible(S,t.byEnd,s,o,function(H){return H.data.end<f||H.data.start>p})}for(var D={},T=0,P=0;P<s.length;P++){var F=s[P];if(!F.displayed){var A=!0;D[P]=F.redraw(A),T=D[P].length}}var V=T>0;if(V)for(var N=function(W){B(x).call(x,D,function(q){q[W]()})},I=0;I<T;I++)N(I);for(var M=0;M<s.length;M++)s[M].repositionX();return s}},{key:"_traceVisible",value:function(t,a,n,s,o){if(t!=-1){for(var l=t;l>=0;l--){var d=a[l];if(o(d))break;!(d.isCluster&&!d.hasItems())&&!d.cluster&&s[d.id]===void 0&&(s[d.id]=!0,n.push(d))}for(var u=t+1;u<a.length;u++){var f=a[u];if(o(f))break;!(f.isCluster&&!f.hasItems())&&!f.cluster&&s[f.id]===void 0&&(s[f.id]=!0,n.push(f))}}}},{key:"_checkIfVisible",value:function(t,a,n){t.isVisible(n)?(t.displayed||t.show(),t.repositionX(),a.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,a,n,s){t.isVisible(s)?n[t.id]===void 0&&(n[t.id]=!0,a.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,a,n){var s=[],o={};if(a.length>0)for(var l=0;l<a.length;l++)this._checkIfVisibleWithReference(a[l],s,o,n);for(var d=0;d<t.byStart.length;d++)this._checkIfVisibleWithReference(t.byStart[d],s,o,n);for(var u=0;u<t.byEnd.length;u++)this._checkIfVisibleWithReference(t.byEnd[u],s,o,n);for(var f={},p=0,m=0;m<s.length;m++){var y=s[m];if(!y.displayed){var b=!0;f[m]=y.redraw(b),p=f[m].length}}var E=p>0;if(E)for(var w=0;w<p;w++)B(x).call(x,f,function(D){D[w]()});for(var S=0;S<s.length;S++)s[S].repositionX();return s}},{key:"changeSubgroup",value:function(t,a,n){this._removeFromSubgroup(t,a),this._addToSubgroup(t,n),this.orderSubgroups()}},{key:"dispose",value:function(){this.hide();for(var t;t=this._disposeCallbacks.pop();)t()}}]),e}();function YG(e){var r=jG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function jG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Tb=function(e){wt(t,e);var r=YG(t);function t(a,n,s){var o;return ue(this,t),o=r.call(this,a,n,s),o.width=0,o.height=0,o.top=0,o.left=0,o}return ce(t,[{key:"redraw",value:function(n,s,o){var l=!1;this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,n),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var d=0,u=this.visibleItems.length;d<u;d++){var f=this.visibleItems[d];f.repositionY(s)}return l}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),t}(ku),BG=`
|
417
|
+
.vis-item {
|
418
|
+
position: absolute;
|
419
|
+
color: #1A1A1A;
|
420
|
+
border-color: #97B0F8;
|
421
|
+
border-width: 1px;
|
422
|
+
background-color: #D5DDF6;
|
423
|
+
display: inline-block;
|
424
|
+
z-index: 1;
|
425
|
+
/*overflow: hidden;*/
|
426
|
+
}
|
427
|
+
|
428
|
+
.vis-item.vis-selected {
|
429
|
+
border-color: #FFC200;
|
430
|
+
background-color: #FFF785;
|
431
|
+
|
432
|
+
/* z-index must be higher than the z-index of custom time bar and current time bar */
|
433
|
+
z-index: 2;
|
434
|
+
}
|
435
|
+
|
436
|
+
.vis-editable.vis-selected {
|
437
|
+
cursor: move;
|
438
|
+
}
|
439
|
+
|
440
|
+
.vis-item.vis-point.vis-selected {
|
441
|
+
background-color: #FFF785;
|
442
|
+
}
|
443
|
+
|
444
|
+
.vis-item.vis-box {
|
445
|
+
text-align: center;
|
446
|
+
border-style: solid;
|
447
|
+
border-radius: 2px;
|
448
|
+
}
|
449
|
+
|
450
|
+
.vis-item.vis-point {
|
451
|
+
background: none;
|
452
|
+
}
|
453
|
+
|
454
|
+
.vis-item.vis-dot {
|
455
|
+
position: absolute;
|
456
|
+
padding: 0;
|
457
|
+
border-width: 4px;
|
458
|
+
border-style: solid;
|
459
|
+
border-radius: 4px;
|
460
|
+
}
|
461
|
+
|
462
|
+
.vis-item.vis-range {
|
463
|
+
border-style: solid;
|
464
|
+
border-radius: 2px;
|
465
|
+
box-sizing: border-box;
|
466
|
+
}
|
467
|
+
|
468
|
+
.vis-item.vis-background {
|
469
|
+
border: none;
|
470
|
+
background-color: rgba(213, 221, 246, 0.4);
|
471
|
+
box-sizing: border-box;
|
472
|
+
padding: 0;
|
473
|
+
margin: 0;
|
474
|
+
}
|
475
|
+
|
476
|
+
.vis-item .vis-item-overflow {
|
477
|
+
position: relative;
|
478
|
+
width: 100%;
|
479
|
+
height: 100%;
|
480
|
+
padding: 0;
|
481
|
+
margin: 0;
|
482
|
+
overflow: hidden;
|
483
|
+
}
|
484
|
+
|
485
|
+
.vis-item-visible-frame {
|
486
|
+
white-space: nowrap;
|
487
|
+
}
|
488
|
+
|
489
|
+
.vis-item.vis-range .vis-item-content {
|
490
|
+
position: relative;
|
491
|
+
display: inline-block;
|
492
|
+
}
|
493
|
+
|
494
|
+
.vis-item.vis-background .vis-item-content {
|
495
|
+
position: absolute;
|
496
|
+
display: inline-block;
|
497
|
+
}
|
498
|
+
|
499
|
+
.vis-item.vis-line {
|
500
|
+
padding: 0;
|
501
|
+
position: absolute;
|
502
|
+
width: 0;
|
503
|
+
border-left-width: 1px;
|
504
|
+
border-left-style: solid;
|
505
|
+
}
|
506
|
+
|
507
|
+
.vis-item .vis-item-content {
|
508
|
+
white-space: nowrap;
|
509
|
+
box-sizing: border-box;
|
510
|
+
padding: 5px;
|
511
|
+
}
|
512
|
+
|
513
|
+
.vis-item .vis-onUpdateTime-tooltip {
|
514
|
+
position: absolute;
|
515
|
+
background: #4f81bd;
|
516
|
+
color: white;
|
517
|
+
width: 200px;
|
518
|
+
text-align: center;
|
519
|
+
white-space: nowrap;
|
520
|
+
padding: 5px;
|
521
|
+
border-radius: 1px;
|
522
|
+
transition: 0.4s;
|
523
|
+
-o-transition: 0.4s;
|
524
|
+
-moz-transition: 0.4s;
|
525
|
+
-webkit-transition: 0.4s;
|
526
|
+
}
|
527
|
+
|
528
|
+
.vis-item .vis-delete, .vis-item .vis-delete-rtl {
|
529
|
+
position: absolute;
|
530
|
+
top: 0px;
|
531
|
+
width: 24px;
|
532
|
+
height: 24px;
|
533
|
+
box-sizing: border-box;
|
534
|
+
padding: 0px 5px;
|
535
|
+
cursor: pointer;
|
536
|
+
|
537
|
+
-webkit-transition: background 0.2s linear;
|
538
|
+
-moz-transition: background 0.2s linear;
|
539
|
+
-ms-transition: background 0.2s linear;
|
540
|
+
-o-transition: background 0.2s linear;
|
541
|
+
transition: background 0.2s linear;
|
542
|
+
}
|
543
|
+
|
544
|
+
.vis-item .vis-delete {
|
545
|
+
right: -24px;
|
546
|
+
}
|
547
|
+
|
548
|
+
.vis-item .vis-delete-rtl {
|
549
|
+
left: -24px;
|
550
|
+
}
|
551
|
+
|
552
|
+
.vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {
|
553
|
+
content: "\\00D7"; /* MULTIPLICATION SIGN */
|
554
|
+
color: red;
|
555
|
+
font-family: arial, sans-serif;
|
556
|
+
font-size: 22px;
|
557
|
+
font-weight: bold;
|
558
|
+
|
559
|
+
-webkit-transition: color 0.2s linear;
|
560
|
+
-moz-transition: color 0.2s linear;
|
561
|
+
-ms-transition: color 0.2s linear;
|
562
|
+
-o-transition: color 0.2s linear;
|
563
|
+
transition: color 0.2s linear;
|
564
|
+
}
|
565
|
+
|
566
|
+
.vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {
|
567
|
+
background: red;
|
568
|
+
}
|
569
|
+
|
570
|
+
.vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {
|
571
|
+
color: white;
|
572
|
+
}
|
573
|
+
|
574
|
+
.vis-item .vis-drag-center {
|
575
|
+
position: absolute;
|
576
|
+
width: 100%;
|
577
|
+
height: 100%;
|
578
|
+
top: 0;
|
579
|
+
left: 0px;
|
580
|
+
cursor: move;
|
581
|
+
}
|
582
|
+
|
583
|
+
.vis-item.vis-range .vis-drag-left {
|
584
|
+
position: absolute;
|
585
|
+
width: 24px;
|
586
|
+
max-width: 20%;
|
587
|
+
min-width: 2px;
|
588
|
+
height: 100%;
|
589
|
+
top: 0;
|
590
|
+
left: -4px;
|
591
|
+
|
592
|
+
cursor: w-resize;
|
593
|
+
}
|
594
|
+
|
595
|
+
.vis-item.vis-range .vis-drag-right {
|
596
|
+
position: absolute;
|
597
|
+
width: 24px;
|
598
|
+
max-width: 20%;
|
599
|
+
min-width: 2px;
|
600
|
+
height: 100%;
|
601
|
+
top: 0;
|
602
|
+
right: -4px;
|
603
|
+
|
604
|
+
cursor: e-resize;
|
605
|
+
}
|
606
|
+
|
607
|
+
.vis-range.vis-item.vis-readonly .vis-drag-left,
|
608
|
+
.vis-range.vis-item.vis-readonly .vis-drag-right {
|
609
|
+
cursor: auto;
|
610
|
+
}
|
611
|
+
|
612
|
+
.vis-item.vis-cluster {
|
613
|
+
vertical-align: center;
|
614
|
+
text-align: center;
|
615
|
+
border-style: solid;
|
616
|
+
border-radius: 2px;
|
617
|
+
}
|
618
|
+
|
619
|
+
.vis-item.vis-cluster-line {
|
620
|
+
padding: 0;
|
621
|
+
position: absolute;
|
622
|
+
width: 0;
|
623
|
+
border-left-width: 1px;
|
624
|
+
border-left-style: solid;
|
625
|
+
}
|
626
|
+
|
627
|
+
.vis-item.vis-cluster-dot {
|
628
|
+
position: absolute;
|
629
|
+
padding: 0;
|
630
|
+
border-width: 4px;
|
631
|
+
border-style: solid;
|
632
|
+
border-radius: 4px;
|
633
|
+
}`;kt(BG);function HG(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=WG(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
634
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function WG(e,r){var t;if(e){if(typeof e=="string")return zp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return zp(e,r)}}function zp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var Ln=function(){function e(r,t,a){var n,s=this;ue(this,e),this.id=null,this.parent=null,this.data=r,this.dom=null,this.conversion=t||{},this.defaultOptions={locales:kn,locale:"en"},this.options=x.extend({},this.defaultOptions,a),this.options.locales=x.extend({},kn,this.options.locales);var o=this.defaultOptions.locales[this.defaultOptions.locale];B(n=Ze(this.options.locales)).call(n,function(l){s.options.locales[l]=x.extend({},o,s.options.locales[l])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=a&&a.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(r),this.editable=null,this._updateEditStatus()}return ce(e,[{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 a=t.group!=null&&this.data.group!=t.group;a&&this.parent!=null&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0);var n=t.subgroup!=null&&this.data.subgroup!=t.subgroup;n&&this.parent!=null&&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=typeof t.selectable>"u"?!0:!!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,a,n=this,s=document.createElement("div");s.className="vis-drag-center",s.dragCenterItem=this,this.hammerDragCenter=new vt(s),this.hammerDragCenter.on("tap",function(o){n.parent.itemSet.body.emitter.emit("click",{event:o,item:n.id})}),this.hammerDragCenter.on("doubletap",function(o){o.stopPropagation(),n.parent.itemSet._onUpdateItem(n),n.parent.itemSet.body.emitter.emit("doubleClick",{event:o,item:n.id})}),this.hammerDragCenter.on("panstart",function(o){o.stopPropagation(),n.parent.itemSet._onDragStart(o)}),this.hammerDragCenter.on("panmove",O(t=n.parent.itemSet._onDrag).call(t,n.parent.itemSet)),this.hammerDragCenter.on("panend",O(a=n.parent.itemSet._onDragEnd).call(a,n.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(s,this.dom.dragLeft):this.dom.box.appendChild(s):this.dom.point&&this.dom.point.appendChild(s),this.dom.dragCenter=s}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 a=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&a&&!this.dom.deleteButton){var n=this,s=document.createElement("div");this.options.rtl?s.className="vis-delete-rtl":s.className="vis-delete";var 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),s.title=o.deleteSelected,this.hammerDeleteButton=new vt(s).on("tap",function(l){l.stopPropagation(),n.parent.removeFromDataSet(n)}),t.appendChild(s),this.dom.deleteButton=s}else(!this.selected||!a)&&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 a=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&a&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",t.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}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 s=50,o=this.parent.itemSet.body.domProps.scrollTop,l;this.options.orientation.item=="top"?l=this.top:l=this.parent.height-this.top-this.height;var d=l+this.parent.top-s<-o;d?(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"));var u,f;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){var p;f=O(p=this.options.tooltipOnItemUpdateTime.template).call(p,this),u=f(this.data)}else u="start: ".concat(mt(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(u+="<br> end: ".concat(mt(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=x.xss(u)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var a,n,s,o,l,d=this._getItemData(),u=this.dom.box||this.dom.point,f=u.getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate){var p;l=O(p=this.options.visibleFrameTemplate).call(p,this),o=x.xss(l(d,f))}else o="";if(f){if(o instanceof Object&&!(o instanceof Element))l(d,f);else if(n=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(o),n){if(o instanceof Element)f.innerHTML="",f.appendChild(o);else if(o!=null)f.innerHTML=x.xss(o);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=o}}if(this.options.template){var m;s=O(m=this.options.template).call(m,this),a=s(d,t,this.data)}else a=this.data.content;if(a instanceof Object&&!(a instanceof Element))s(d,t);else if(n=this._contentToString(this.content)!==this._contentToString(a),n){if(a instanceof Element)t.innerHTML="",t.appendChild(a);else if(a!=null)t.innerHTML=x.xss(a);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.content=a}}},{key:"_updateDataAttributes",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var a=[];if(re(this.options.dataAttributes))a=this.options.dataAttributes;else if(this.options.dataAttributes=="all")a=Ze(this.data);else return;var n=HG(a),s;try{for(n.s();!(s=n.n()).done;){var o=s.value,l=this.data[o];l!=null?t.setAttribute("data-".concat(o),l):t.removeAttribute("data-".concat(o))}}catch(d){n.e(d)}finally{n.f()}}}},{key:"_updateStyle",value:function(t){this.style&&(x.removeCssText(t,this.style),this.style=null),this.data.style&&(x.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return typeof t=="string"?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:ee(this.options.editable)==="object"&&(this.editable={},x.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),(!this.options||!this.options.editable||this.options.editable.overrideItems!==!0)&&this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:ee(this.data.editable)==="object"&&(this.editable={},x.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,a=O(t=this.options.tooltip.template).call(t,this);return a(this._getItemData(),this.data)}return this.data.title}}]),e}();Ln.prototype.stack=!0;function GG(e){var r=zG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function zG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var UG=function(e){wt(t,e);var r=GG(t);function t(a,n,s){var o;if(ue(this,t),o=r.call(this,a,n,s),o.props={dot:{width:0,height:0},line:{width:0,height:0}},a&&a.start==null)throw new Error('Property "start" missing in item '.concat(a));return o}return ce(t,[{key:"isVisible",value:function(n){if(this.cluster)return!1;var s,o=this.data.align||this.options.align,l=this.width*n.getMillisecondsPerPixel();return o=="right"?s=this.data.start.getTime()>n.start&&this.data.start.getTime()-l<n.end:o=="left"?s=this.data.start.getTime()+l>n.start&&this.data.start.getTime()<n.end:s=this.data.start.getTime()+l/2>n.start&&this.data.start.getTime()-l/2<n.end,s}},{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 n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var s=this.parent.dom.background;if(!s)throw new Error("Cannot redraw item: parent has no background container element");s.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var o=this.parent.dom.axis;if(!s)throw new Error("Cannot redraw item: parent has no axis container element");o.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 n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(s),this.dom.line.className="vis-item vis-line".concat(s),this.dom.dot.className="vis-item vis-dot".concat(s)}}},{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(n){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=n.dot.height,this.props.dot.width=n.dot.width,this.props.line.width=n.line.width,this.width=n.box.width,this.height=n.box.height,this.options.rtl?this.dom.box.style.right=n.previous.right:this.dom.box.style.left=n.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(n){var s,o,l,d=this,u,f,p=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var y;O(y=d._updateDomComponentsSizes).call(y,d)(f)}},O(u=this._repaintDomAdditionals).call(u,this)];if(n)return p;var m;return B(p).call(p,function(y){m=y()}),m}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){if(this.displayed){var n=this.dom;n.box.remove?n.box.remove():n.box.parentNode&&n.box.parentNode.removeChild(n.box),n.line.remove?n.line.remove():n.line.parentNode&&n.line.parentNode.removeChild(n.line),n.dot.remove?n.dot.remove():n.dot.parentNode&&n.dot.parentNode.removeChild(n.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,u){var f,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&u===void 0)){var m=p?d*-1:d;if(u===void 0){l.style.transform="translateX(".concat(m,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(u,"px)");return}l.style.transform=Ne(f="translate(".concat(m,"px, ")).call(f,u,"px)")}};s(this.dom.box,this.boxX,this.boxY,n),s(this.dom.dot,this.dotX,this.dotY,n),s(this.dom.line,this.lineX,this.lineY,n)}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start),s=this.data.align===void 0?this.options.align:this.data.align,o=this.props.line.width,l=this.props.dot.width;s=="right"?(this.boxX=n-this.width,this.lineX=n-o,this.dotX=n-o/2-l/2):s=="left"?(this.boxX=n,this.lineX=n,this.dotX=n+o/2-l/2):(this.boxX=n-this.width/2,this.lineX=this.options.rtl?n-o:n-o/2,this.dotX=n-l/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.line.style;if(n=="top"){var o=this.parent.top+this.top+1;this.boxY=this.top||0,s.height="".concat(o,"px"),s.bottom="",s.top="0"}else{var l=this.parent.itemSet.props.height,d=l-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),s.height="".concat(d,"px"),s.top="",s.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}}]),t}(Ln);function XG(e){var r=qG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function qG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var KG=function(e){wt(t,e);var r=XG(t);function t(a,n,s){var o;if(ue(this,t),o=r.call(this,a,n,s),o.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},a&&a.start==null)throw new Error('Property "start" missing in item '.concat(a));return o}return ce(t,[{key:"isVisible",value:function(n){if(this.cluster)return!1;var s=this.width*n.getMillisecondsPerPixel();return this.data.start.getTime()+s>n.start&&this.data.start<n.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 n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.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 n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(s),this.dom.dot.className="vis-item vis-dot".concat(s)}}},{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(n){this.props.dot.width=n.dot.width,this.props.dot.height=n.dot.height,this.props.content.height=n.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=n.point.width,this.height=n.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var s=this.props.dot.width,o=this.options.rtl?s/2:s/2*-1;this.dom.dot.style.transform="translateX(".concat(o,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(n){var s,o,l,d=this,u,f,p=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var y;O(y=d._updateDomComponentsSizes).call(y,d)(f)}},O(u=this._repaintDomAdditionals).call(u,this)];if(n)return p;var m;return B(p).call(p,function(y){m=y()}),m}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,u){var f,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&u===void 0)){var m=p?d*-1:d;if(u===void 0){l.style.transform="translateX(".concat(m,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(u,"px)");return}l.style.transform=Ne(f="translate(".concat(m,"px, ")).call(f,u,"px)")}};s(this.dom.point,this.pointX,this.pointY,n)}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{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 n=this.conversion.toScreen(this.data.start);this.pointX=n,this.options.rtl?this.right=n-this.props.dot.width:this.left=n-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var n=this.options.orientation.item;n=="top"?this.pointY=this.top:this.pointY=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}}]),t}(Ln);function ZG(e){var r=QG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function QG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Oi=function(e){wt(t,e);var r=ZG(t);function t(a,n,s){var o;if(ue(this,t),o=r.call(this,a,n,s),o.props={content:{width:0}},o.overflow=!1,a){if(a.start==null)throw new Error('Property "start" missing in item '.concat(a.id));if(a.end==null)throw new Error('Property "end" missing in item '.concat(a.id))}return o}return ce(t,[{key:"isVisible",value:function(n){return this.cluster?!1:this.data.start<n.end&&this.data.end>n.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 n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.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 n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+s,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.content.width=n.content.width,this.height=n.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(n){var s,o,l,d=this,u,f,p=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var y;f=O(y=d._getDomComponentsSizes).call(y,d)()}},function(){if(d.dirty){var y;O(y=d._updateDomComponentsSizes).call(y,d)(f)}},O(u=this._repaintDomAdditionals).call(u,this)];if(n)return p;var m;return B(p).call(p,function(y){m=y()}),m}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){if(this.displayed){var n=this.dom.box;n.parentNode&&n.parentNode.removeChild(n),this.displayed=!1}}},{key:"repositionX",value:function(n){var s=this.parent.width,o=this.conversion.toScreen(this.data.start),l=this.conversion.toScreen(this.data.end),d=this.data.align===void 0?this.options.align:this.data.align,u,f;this.data.limitSize!==!1&&(n===void 0||n===!0)&&(o<-s&&(o=-s),l>2*s&&(l=2*s));var p=Math.max(Math.round((l-o)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=p+this.props.content.width,f=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=p,f=Math.min(l-o,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(this.right*-1,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(p,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),d){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var m=Math.max(p-f,0)*-1;this.dom.content.style.transform="translateX(".concat(m,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(p-f,0),"px)");break;case"center":if(this.options.rtl){var y=Math.max((p-f)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(y,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((p-f)/2,0),"px)");break;default:if(this.overflow?l>0?u=Math.max(-o,0):u=-f:o<0?u=-o:u=0,this.options.rtl){var b=u*-1;this.dom.content.style.transform="translateX(".concat(b,"px)")}else this.dom.content.style.transform="translateX(".concat(u,"px)")}}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.box;n=="top"?s.style.top="".concat(this.top,"px"):s.style.top="".concat(this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var n=document.createElement("div");n.className="vis-drag-left",n.dragLeftItem=this,this.dom.box.appendChild(n),this.dom.dragLeft=n}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 n=document.createElement("div");n.className="vis-drag-right",n.dragRightItem=this,this.dom.box.appendChild(n),this.dom.dragRight=n}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragRight&&(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),t}(Ln);Oi.prototype.baseClassName="vis-item vis-range";function JG(e){var r=ez();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function ez(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Fi=function(e){wt(t,e);var r=JG(t);function t(a,n,s){var o;if(ue(this,t),o=r.call(this,a,n,s),o.props={content:{width:0}},o.overflow=!1,a){if(a.start==null)throw new Error('Property "start" missing in item '.concat(a.id));if(a.end==null)throw new Error('Property "end" missing in item '.concat(a.id))}return o}return ce(t,[{key:"isVisible",value:function(n){return this.data.start<n.end&&this.data.end>n.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 n=this.parent.dom.background;if(!n)throw new Error("Cannot redraw item: parent has no background container element");n.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 n=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+n}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.content.width=n.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(n){var s,o,l,d=this,u,f,p=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var y;f=O(y=d._getDomComponentsSizes).call(y,d)()}},function(){if(d.dirty){var y;O(y=d._updateDomComponentsSizes).call(y,d)(f)}},O(u=this._repaintDomAdditionals).call(u,this)];if(n)return p;var m;return B(p).call(p,function(y){m=y()}),m}},{key:"repositionY",value:function(n){var s,o=this.options.orientation.item;if(this.data.subgroup!==void 0){var l=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[l].height,"px"),o=="top"?this.dom.box.style.top="".concat(this.parent.top+this.parent.subgroups[l].top,"px"):this.dom.box.style.top="".concat(this.parent.top+this.parent.height-this.parent.subgroups[l].top-this.parent.subgroups[l].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof Tb?(s=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=o=="bottom"?"0":"",this.dom.box.style.top=o=="top"?"0":""):(s=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(s,"px")}}]),t}(Ln);Fi.prototype.baseClassName="vis-item vis-background";Fi.prototype.stack=!1;Fi.prototype.show=Oi.prototype.show;Fi.prototype.hide=Oi.prototype.hide;Fi.prototype.repositionX=Oi.prototype.repositionX;var tz=`div.vis-tooltip {
|
635
|
+
position: absolute;
|
636
|
+
visibility: hidden;
|
637
|
+
padding: 5px;
|
638
|
+
white-space: nowrap;
|
639
|
+
|
640
|
+
font-family: verdana;
|
641
|
+
font-size:14px;
|
642
|
+
color:#000000;
|
643
|
+
background-color: #f5f4ed;
|
644
|
+
|
645
|
+
-moz-border-radius: 3px;
|
646
|
+
-webkit-border-radius: 3px;
|
647
|
+
border-radius: 3px;
|
648
|
+
border: 1px solid #808074;
|
649
|
+
|
650
|
+
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
|
651
|
+
pointer-events: none;
|
652
|
+
|
653
|
+
z-index: 5;
|
654
|
+
}
|
655
|
+
`;kt(tz);var rz=function(){function e(r,t){ue(this,e),this.container=r,this.overflowMethod=t||"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 ce(e,[{key:"setPosition",value:function(t,a){this.x=Lt(t),this.y=Lt(a)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=x.xss(t)}},{key:"show",value:function(t){if(t===void 0&&(t=!0),t===!0){var a=this.frame.clientHeight,n=this.frame.clientWidth,s=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,l=0,d=0;if(this.overflowMethod=="flip"||this.overflowMethod=="none"){var u=!1,f=!0;this.overflowMethod=="flip"&&(this.y-a<this.padding&&(f=!1),this.x+n>o-this.padding&&(u=!0)),u?l=this.x-n:l=this.x,f?d=this.y-a:d=this.y}else d=this.y-a,d+a+this.padding>s&&(d=s-a-this.padding),d<this.padding&&(d=this.padding),l=this.x,l+n+this.padding>o&&(l=o-n-this.padding),l<this.padding&&(l=this.padding);this.frame.style.left=l+"px",this.frame.style.top=d+"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)}}]),e}(),iz=U,nz=jr.every,az=Mn,sz=az("every");iz({target:"Array",proto:!0,forced:!sz},{every:function(r){return nz(this,r,arguments.length>1?arguments[1]:void 0)}});var oz=Le,lz=oz("Array").every,dz=$e,uz=lz,Nd=Array.prototype,cz=function(e){var r=e.every;return e===Nd||dz(Nd,e)&&r===Nd.every?uz:r},hz=cz,fz=hz,vz=fz,pz=z(vz);function Up(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=mz(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
656
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function mz(e,r){var t;if(e){if(typeof e=="string")return Xp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Xp(e,r)}}function Xp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function gz(e){var r=yz();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function yz(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Nb=function(e){wt(t,e);var r=gz(t);function t(a,n,s){var o;ue(this,t);var l=Ar({},{fitOnDoubleClick:!0},s,{editable:!1});if(o=r.call(this,a,n,l),o.props={content:{width:0,height:0}},!a||a.uiItems==null)throw new Error('Property "uiItems" missing in item '+a.id);return o.id=Ei(),o.group=a.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 ce(t,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(n){this.detach(),this.data.uiItems=n,this._setupRange(),this.attach()}},{key:"isVisible",value:function(n){var s=this.data.end?this.data.end-this.data.start:0,o=this.width*n.getMillisecondsPerPixel(),l=Math.max(this.data.start.getTime()+s,this.data.start.getTime()+o);return this.data.start<n.end&&l>n.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(n){var s,o,l,d,u,f,p,m=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),O(d=function(){this.dirty&&(p=this._getDomComponentsSizes())}).call(d,this),O(u=function(){if(this.dirty){var E;O(E=this._updateDomComponentsSizes).call(E,this)(p)}}).call(u,this),O(f=this._repaintDomAdditionals).call(f,this)];if(n)return m;var y;return B(m).call(m,function(b){y=b()}),y}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var n=this.dom;n.box.parentNode&&n.box.parentNode.removeChild(n.box),this.options.showStipes&&(n.line.parentNode&&n.line.parentNode.removeChild(n.line),n.dot.parentNode&&n.dot.parentNode.removeChild(n.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start),s=this.data.end?this.conversion.toScreen(this.data.end):0;if(s)this.repositionXWithRanges(n,s);else{var o=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(n,o)}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(n,s))}},{key:"repositionStype",value:function(n,s){this.dom.line.style.display="block",this.dom.dot.style.display="block";var o=this.dom.line.offsetWidth,l=this.dom.dot.offsetWidth;if(s){var d=o+n+(s-n)/2,u=d-l/2,f=this.options.rtl?d*-1:d,p=this.options.rtl?u*-1:u;this.dom.line.style.transform="translateX(".concat(f,"px)"),this.dom.dot.style.transform="translateX(".concat(p,"px)")}else{var m=this.options.rtl?n*-1:n,y=this.options.rtl?(n-l/2)*-1:n-l/2;this.dom.line.style.transform="translateX(".concat(m,"px)"),this.dom.dot.style.transform="translateX(".concat(y,"px)")}}},{key:"repositionXWithoutRanges",value:function(n,s){s=="right"?this.options.rtl?(this.right=n-this.width,this.dom.box.style.right=this.right+"px"):(this.left=n-this.width,this.dom.box.style.left=this.left+"px"):s=="left"?this.options.rtl?(this.right=n,this.dom.box.style.right=this.right+"px"):(this.left=n,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=n-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=n-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(n,s){var o=Math.round(Math.max(s-n+.5,1));this.options.rtl?this.right=n:this.left=n,this.width=Math.max(o,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=o+"px"}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.box;if(n=="top"?s.style.top=(this.top||0)+"px":s.style.top=(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(n=="top")this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var o=this.parent.itemSet.props.height,l=o-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=o-l+"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 n,s=Up(this.data.uiItems),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;l.cluster=this}}catch(d){s.e(d)}finally{s.f()}this.data.items=ye(n=this.data.uiItems).call(n,function(d){return d.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.hasItems()){var s=Up(this.data.uiItems),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;delete l.cluster}}catch(d){s.e(d)}finally{s.f()}this.attached=!1,n&&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 n,s,o,l=ye(n=this.data.uiItems).call(n,function(f){return{start:f.data.start.valueOf(),end:f.data.end?f.data.end.valueOf():f.data.start.valueOf()}});this.data.min=Math.min.apply(Math,Pe(ye(l).call(l,function(f){return Math.min(f.start,f.end||f.start)}))),this.data.max=Math.max.apply(Math,Pe(ye(l).call(l,function(f){return Math.max(f.start,f.end||f.start)})));var d=ye(s=this.data.uiItems).call(s,function(f){return f.center}),u=Ro(d).call(d,function(f,p){return f+p},0)/this.data.uiItems.length;yc(o=this.data.uiItems).call(o,function(f){return f.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(u),this.data.end=null)}},{key:"_getUiItems",value:function(){var n=this;if(this.data.uiItems&&this.data.uiItems.length){var s;return J(s=this.data.uiItems).call(s,function(o){return o.cluster===n})}return[]}},{key:"_createDomElement",value:function(){if(!this.dom){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){var n;this.dom.box.ondblclick=O(n=t.prototype._onDoubleClick).call(n,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 n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}var s=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!s)throw new Error("Cannot redraw item: parent has no background container element");s.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var o=this.parent.dom.axis;if(!s)throw new Error("Cannot redraw item: parent has no axis container element");o.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 n=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+n,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 n={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&&(n.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},n.line={width:this.dom.line.offsetWidth}),n}},{key:"_updateDomComponentsSizes",value:function(n){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=n.box.width:this.width=n.box.width,this.height=n.box.height,this.options.rtl?this.dom.box.style.right=n.previous.right:this.dom.box.style.left=n.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 n=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-n,fitEnd:this.data.max+n}}},{key:"_fit",value:function(){if(this.emitter){var n=this._getFitRange(),s=n.fitStart,o=n.fitEnd,l={start:new Date(s),end:new Date(o),animation:!0};this.emitter.emit("fit",l)}}},{key:"_getItemData",value:function(){return this.data}}]),t}(Ln);Nb.prototype.baseClassName="vis-item vis-range vis-cluster";function _z(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=bz(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
657
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function bz(e,r){var t;if(e){if(typeof e=="string")return qp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return qp(e,r)}}function qp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var wz="__ungrouped__",kz={UNGROUPED:wz},xz=function(){function e(r){ue(this,e),this.itemSet=r,this.groups={},this.cache={},this.cache[-1]=[]}return ce(e,[{key:"createClusterItem",value:function(t,a,n){var s=new Nb(t,a,n);return s}},{key:"setItems",value:function(t,a){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,a&&a.applyOnChangedLevel&&(this.applyOnChangedLevel=a.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(t,a,n){var s=typeof n=="boolean"?{}:n,o=s.maxItems,l=s.clusterCriteria;l||(l=function(){return!0}),o=o||1;var d=-1,u=2,f=0;if(a>0){if(a>=1)return[];d=Math.abs(Math.round(Math.log(100/a)/Math.log(u))),f=Math.abs(Math.pow(u,d))}if(this.dataChanged){var p=d!=this.cacheLevel,m=this.applyOnChangedLevel?p:!0;m&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=d;var y=this.cache[d];if(!y){y=[];for(var b in this.groups)if(this.groups.hasOwnProperty(b))for(var E=this.groups[b],w=E.length,S=0;S<w;){for(var D=E[S],T=1,P=S-1;P>=0&&D.center-E[P].center<f/2;)!E[P].cluster&&l(D.data,E[P].data)&&T++,P--;for(var F=S+1;F<E.length&&E[F].center-D.center<f/2;)l(D.data,E[F].data)&&T++,F++;for(var A=y.length-1;A>=0&&D.center-y[A].center<f;)D.group==y[A].group&&l(D.data,y[A].data)&&T++,A--;if(T>o){for(var V=T-o+1,N=[],I=S;N.length<V&&I<E.length;)l(E[S].data,E[I].data)&&N.push(E[I]),I++;var M=this.itemSet.getGroupId(D.data),H=this.itemSet.groups[M]||this.itemSet.groups[kz.UNGROUPED],W=this._getClusterForItems(N,H,t,n);y.push(W),S+=V}else delete D.cluster,S+=1}this.cache[d]=y}return y}},{key:"_filterData",value:function(){var t={};this.groups=t;for(var a=0,n=Gu(this.items);a<n.length;a++){var s=n[a],o=s.parent?s.parent.groupId:"",l=t[o];l||(l=[],t[o]=l),l.push(s),s.data.start&&(s.data.end?s.center=(s.data.start.valueOf()+s.data.end.valueOf())/2:s.center=s.data.start.valueOf())}for(var d in t)if(t.hasOwnProperty(d)){var u;Ue(u=t[d]).call(u,function(f,p){return f.center-p.center})}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,a,n,s){var o,l=ye(o=n||[]).call(o,function(D){var T;return{cluster:D,itemsIds:new ei(ye(T=D.data.uiItems).call(T,function(P){return P.id}))}}),d;if(l.length){var u=_z(l),f;try{var p=function(){var T=f.value;if(T.itemsIds.size===t.length&&pz(t).call(t,function(P){return T.itemsIds.has(P.id)}))return d=T.cluster,1};for(u.s();!(f=u.n()).done&&!p(););}catch(D){u.e(D)}finally{u.f()}}if(d)return d.setUiItems(t),d.group!==a&&(d.group&&d.group.remove(d),a&&(a.add(d),d.group=a)),d;var m=s.titleTemplate||"",y={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},b=m.replace(/{count}/,t.length),E='<div title="'+b+'">'+t.length+"</div>",w=Ar({},s,this.itemSet.options),S={content:E,title:b,group:a,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return d=this.createClusterItem(S,y,w),a&&(a.add(d),d.group=a),d.attach(),d}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),e}(),Ez=`
|
658
|
+
.vis-itemset {
|
659
|
+
position: relative;
|
660
|
+
padding: 0;
|
661
|
+
margin: 0;
|
662
|
+
|
663
|
+
box-sizing: border-box;
|
664
|
+
}
|
665
|
+
|
666
|
+
.vis-itemset .vis-background,
|
667
|
+
.vis-itemset .vis-foreground {
|
668
|
+
position: absolute;
|
669
|
+
width: 100%;
|
670
|
+
height: 100%;
|
671
|
+
overflow: visible;
|
672
|
+
}
|
673
|
+
|
674
|
+
.vis-axis {
|
675
|
+
position: absolute;
|
676
|
+
width: 100%;
|
677
|
+
height: 0;
|
678
|
+
left: 0;
|
679
|
+
z-index: 1;
|
680
|
+
}
|
681
|
+
|
682
|
+
.vis-foreground .vis-group {
|
683
|
+
position: relative;
|
684
|
+
box-sizing: border-box;
|
685
|
+
border-bottom: 1px solid #bfbfbf;
|
686
|
+
}
|
687
|
+
|
688
|
+
.vis-foreground .vis-group:last-child {
|
689
|
+
border-bottom: none;
|
690
|
+
}
|
691
|
+
|
692
|
+
.vis-nesting-group {
|
693
|
+
cursor: pointer;
|
694
|
+
}
|
695
|
+
|
696
|
+
.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {
|
697
|
+
background: #f5f5f5;
|
698
|
+
}
|
699
|
+
.vis-label.vis-nested-group.vis-group-level-0 {
|
700
|
+
background-color: #ffffff;
|
701
|
+
}
|
702
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {
|
703
|
+
padding-left: 0;
|
704
|
+
}
|
705
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {
|
706
|
+
padding-right: 0;
|
707
|
+
}
|
708
|
+
.vis-label.vis-nested-group.vis-group-level-1 {
|
709
|
+
background-color: rgba(0, 0, 0, 0.05);
|
710
|
+
}
|
711
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
|
712
|
+
padding-left: 15px;
|
713
|
+
}
|
714
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
|
715
|
+
padding-right: 15px;
|
716
|
+
}
|
717
|
+
.vis-label.vis-nested-group.vis-group-level-2 {
|
718
|
+
background-color: rgba(0, 0, 0, 0.1);
|
719
|
+
}
|
720
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {
|
721
|
+
padding-left: 30px;
|
722
|
+
}
|
723
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {
|
724
|
+
padding-right: 30px;
|
725
|
+
}
|
726
|
+
.vis-label.vis-nested-group.vis-group-level-3 {
|
727
|
+
background-color: rgba(0, 0, 0, 0.15);
|
728
|
+
}
|
729
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {
|
730
|
+
padding-left: 45px;
|
731
|
+
}
|
732
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {
|
733
|
+
padding-right: 45px;
|
734
|
+
}
|
735
|
+
.vis-label.vis-nested-group.vis-group-level-4 {
|
736
|
+
background-color: rgba(0, 0, 0, 0.2);
|
737
|
+
}
|
738
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {
|
739
|
+
padding-left: 60px;
|
740
|
+
}
|
741
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {
|
742
|
+
padding-right: 60px;
|
743
|
+
}
|
744
|
+
.vis-label.vis-nested-group.vis-group-level-5 {
|
745
|
+
background-color: rgba(0, 0, 0, 0.25);
|
746
|
+
}
|
747
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {
|
748
|
+
padding-left: 75px;
|
749
|
+
}
|
750
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {
|
751
|
+
padding-right: 75px;
|
752
|
+
}
|
753
|
+
.vis-label.vis-nested-group.vis-group-level-6 {
|
754
|
+
background-color: rgba(0, 0, 0, 0.3);
|
755
|
+
}
|
756
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {
|
757
|
+
padding-left: 90px;
|
758
|
+
}
|
759
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {
|
760
|
+
padding-right: 90px;
|
761
|
+
}
|
762
|
+
.vis-label.vis-nested-group.vis-group-level-7 {
|
763
|
+
background-color: rgba(0, 0, 0, 0.35);
|
764
|
+
}
|
765
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {
|
766
|
+
padding-left: 105px;
|
767
|
+
}
|
768
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {
|
769
|
+
padding-right: 105px;
|
770
|
+
}
|
771
|
+
.vis-label.vis-nested-group.vis-group-level-8 {
|
772
|
+
background-color: rgba(0, 0, 0, 0.4);
|
773
|
+
}
|
774
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {
|
775
|
+
padding-left: 120px;
|
776
|
+
}
|
777
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {
|
778
|
+
padding-right: 120px;
|
779
|
+
}
|
780
|
+
.vis-label.vis-nested-group.vis-group-level-9 {
|
781
|
+
background-color: rgba(0, 0, 0, 0.45);
|
782
|
+
}
|
783
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {
|
784
|
+
padding-left: 135px;
|
785
|
+
}
|
786
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {
|
787
|
+
padding-right: 135px;
|
788
|
+
}
|
789
|
+
/* default takes over beginning with level-10 (thats why we add .vis-nested-group
|
790
|
+
to the selectors above, to have higher specifity than these rules for the defaults) */
|
791
|
+
.vis-label.vis-nested-group {
|
792
|
+
background-color: rgba(0, 0, 0, 0.5);
|
793
|
+
}
|
794
|
+
.vis-ltr .vis-label.vis-nested-group .vis-inner {
|
795
|
+
padding-left: 150px;
|
796
|
+
}
|
797
|
+
.vis-rtl .vis-label.vis-nested-group .vis-inner {
|
798
|
+
padding-right: 150px;
|
799
|
+
}
|
800
|
+
|
801
|
+
.vis-group-level-unknown-but-gte1 {
|
802
|
+
border: 1px solid red;
|
803
|
+
}
|
804
|
+
|
805
|
+
/* expanded/collapsed indicators */
|
806
|
+
.vis-label.vis-nesting-group:before,
|
807
|
+
.vis-label.vis-nesting-group:before {
|
808
|
+
display: inline-block;
|
809
|
+
width: 15px;
|
810
|
+
}
|
811
|
+
.vis-label.vis-nesting-group.expanded:before {
|
812
|
+
content: "\\25BC";
|
813
|
+
}
|
814
|
+
.vis-label.vis-nesting-group.collapsed:before {
|
815
|
+
content: "\\25B6";
|
816
|
+
}
|
817
|
+
.vis-rtl .vis-label.vis-nesting-group.collapsed:before {
|
818
|
+
content: "\\25C0";
|
819
|
+
}
|
820
|
+
/* compensate missing expanded/collapsed indicator, but only at levels > 0 */
|
821
|
+
.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {
|
822
|
+
padding-left: 15px;
|
823
|
+
}
|
824
|
+
.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {
|
825
|
+
padding-right: 15px;
|
826
|
+
}
|
827
|
+
|
828
|
+
.vis-overlay {
|
829
|
+
position: absolute;
|
830
|
+
top: 0;
|
831
|
+
left: 0;
|
832
|
+
width: 100%;
|
833
|
+
height: 100%;
|
834
|
+
z-index: 10;
|
835
|
+
}`;kt(Ez);var Sz=`
|
836
|
+
.vis-labelset {
|
837
|
+
position: relative;
|
838
|
+
|
839
|
+
overflow: hidden;
|
840
|
+
|
841
|
+
box-sizing: border-box;
|
842
|
+
}
|
843
|
+
|
844
|
+
.vis-labelset .vis-label {
|
845
|
+
position: relative;
|
846
|
+
left: 0;
|
847
|
+
top: 0;
|
848
|
+
width: 100%;
|
849
|
+
color: #4d4d4d;
|
850
|
+
|
851
|
+
box-sizing: border-box;
|
852
|
+
}
|
853
|
+
|
854
|
+
.vis-labelset .vis-label {
|
855
|
+
border-bottom: 1px solid #bfbfbf;
|
856
|
+
}
|
857
|
+
|
858
|
+
.vis-labelset .vis-label.draggable {
|
859
|
+
cursor: pointer;
|
860
|
+
}
|
861
|
+
|
862
|
+
.vis-group-is-dragging {
|
863
|
+
background: rgba(0, 0, 0, .1);
|
864
|
+
}
|
865
|
+
|
866
|
+
.vis-labelset .vis-label:last-child {
|
867
|
+
border-bottom: none;
|
868
|
+
}
|
869
|
+
|
870
|
+
.vis-labelset .vis-label .vis-inner {
|
871
|
+
display: inline-block;
|
872
|
+
padding: 5px;
|
873
|
+
}
|
874
|
+
|
875
|
+
.vis-labelset .vis-label .vis-inner.vis-hidden {
|
876
|
+
padding: 0;
|
877
|
+
}
|
878
|
+
`;kt(Sz);function pi(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=$z(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
879
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function $z(e,r){var t;if(e){if(typeof e=="string")return Kp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Kp(e,r)}}function Kp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function Dz(e){var r=Tz();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function Tz(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Qi="__ungrouped__",Xr="__background__",fo=function(e){wt(t,e);var r=Dz(t);function t(a,n){var s;ue(this,t),s=r.call(this),s.body=a,s.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(d,u,f){var p=u.order;u.order=d.order,d.order=p},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:co.snap,onDropObjectOnItem:function(d,u,f){f(u)},onAdd:function(d,u){u(d)},onUpdate:function(d,u){u(d)},onMove:function(d,u){u(d)},onRemove:function(d,u){u(d)},onMoving:function(d,u){u(d)},onAddGroup:function(d,u){u(d)},onMoveGroup:function(d,u){u(d)},onRemoveGroup:function(d,u){u(d)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},s.options=x.extend({},s.defaultOptions),s.options.rtl=n.rtl,s.options.onTimeout=n.onTimeout,s.conversion={toScreen:a.util.toScreen,toTime:a.util.toTime},s.dom={},s.props={},s.hammer=null;var o=Ee(s);return s.itemsData=null,s.groupsData=null,s.itemsSettingTime=null,s.initialItemSetDrawn=!1,s.userContinueNotBail=null,s.sequentialSelection=!1,s.itemListeners={add:function(d,u,f){o._onAdd(u.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(d,u,f){o._onUpdate(u.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(d,u,f){o._onRemove(u.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},s.groupListeners={add:function(d,u,f){if(o._onAddGroups(u.items),o.groupsData&&o.groupsData.length>0){var p,m=o.groupsData.getDataSet();B(p=m.get()).call(p,function(y){if(y.nestedGroups){var b;y.showNested!=!1&&(y.showNested=!0);var E=[];B(b=y.nestedGroups).call(b,function(w){var S=m.get(w);S&&(S.nestedInGroup=y.id,y.showNested==!1&&(S.visible=!1),E=Ne(E).call(E,S))}),m.update(E,f)}})}},update:function(d,u,f){o._onUpdateGroups(u.items)},remove:function(d,u,f){o._onRemoveGroups(u.items)}},s.items={},s.groups={},s.groupIds=[],s.selection=[],s.popup=null,s.popupTimer=null,s.touchParams={},s.groupTouchParams={group:null,isDragging:!1},s._create(),s.setOptions(n),s.clusters=[],s}return ce(t,[{key:"_create",value:function(){var n=this,s,o,l,d,u,f,p,m,y,b,E,w,S,D,T,P=document.createElement("div");P.className="vis-itemset",P["vis-itemset"]=this,this.dom.frame=P;var F=document.createElement("div");F.className="vis-background",P.appendChild(F),this.dom.background=F;var A=document.createElement("div");A.className="vis-foreground",P.appendChild(A),this.dom.foreground=A;var V=document.createElement("div");V.className="vis-axis",this.dom.axis=V;var N=document.createElement("div");N.className="vis-labelset",this.dom.labelSet=N,this._updateUngrouped();var I=new Tb(Xr,null,this);I.show(),this.groups[Xr]=I,this.hammer=new vt(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(M){M.isFirst&&n._onTouch(M)}),this.hammer.on("panstart",O(s=this._onDragStart).call(s,this)),this.hammer.on("panmove",O(o=this._onDrag).call(o,this)),this.hammer.on("panend",O(l=this._onDragEnd).call(l,this)),this.hammer.get("pan").set({threshold:5,direction:vt.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",O(d=this._onSelectItem).call(d,this)),this.hammer.on("press",O(u=this._onMultiSelectItem).call(u,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",O(f=this._onAddItem).call(f,this)),this.options.rtl?this.groupHammer=new vt(this.body.dom.rightContainer):this.groupHammer=new vt(this.body.dom.leftContainer),this.groupHammer.on("tap",O(p=this._onGroupClick).call(p,this)),this.groupHammer.on("panstart",O(m=this._onGroupDragStart).call(m,this)),this.groupHammer.on("panmove",O(y=this._onGroupDrag).call(y,this)),this.groupHammer.on("panend",O(b=this._onGroupDragEnd).call(b,this)),this.groupHammer.get("pan").set({threshold:5,direction:vt.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",O(E=this._onMouseOver).call(E,this)),this.body.dom.centerContainer.addEventListener("mouseout",O(w=this._onMouseOut).call(w,this)),this.body.dom.centerContainer.addEventListener("mousemove",O(S=this._onMouseMove).call(S,this)),this.body.dom.centerContainer.addEventListener("contextmenu",O(D=this._onDragEnd).call(D,this)),this.body.dom.centerContainer.addEventListener("mousewheel",O(T=this._onMouseWheel).call(T,this)),this.show()}},{key:"setOptions",value:function(n){var s=this;if(n){var o,l,d=["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"];x.selectiveExtend(d,this.options,n),"itemsAlwaysDraggable"in n&&(typeof n.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=n.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):ee(n.itemsAlwaysDraggable)==="object"&&(x.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,n.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in n&&typeof n.sequentialSelection=="boolean"&&(this.options.sequentialSelection=n.sequentialSelection),"orientation"in n&&(typeof n.orientation=="string"?this.options.orientation.item=n.orientation==="top"?"top":"bottom":ee(n.orientation)==="object"&&"item"in n.orientation&&(this.options.orientation.item=n.orientation.item)),"margin"in n&&(typeof n.margin=="number"?(this.options.margin.axis=n.margin,this.options.margin.item.horizontal=n.margin,this.options.margin.item.vertical=n.margin):ee(n.margin)==="object"&&(x.selectiveExtend(["axis"],this.options.margin,n.margin),"item"in n.margin&&(typeof n.margin.item=="number"?(this.options.margin.item.horizontal=n.margin.item,this.options.margin.item.vertical=n.margin.item):ee(n.margin.item)==="object"&&x.selectiveExtend(["horizontal","vertical"],this.options.margin.item,n.margin.item)))),B(o=["locale","locales"]).call(o,function(f){f in n&&(s.options[f]=n[f])}),"editable"in n&&(typeof n.editable=="boolean"?(this.options.editable.updateTime=n.editable,this.options.editable.updateGroup=n.editable,this.options.editable.add=n.editable,this.options.editable.remove=n.editable,this.options.editable.overrideItems=!1):ee(n.editable)==="object"&&x.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,n.editable)),"groupEditable"in n&&(typeof n.groupEditable=="boolean"?(this.options.groupEditable.order=n.groupEditable,this.options.groupEditable.add=n.groupEditable,this.options.groupEditable.remove=n.groupEditable):ee(n.groupEditable)==="object"&&x.selectiveExtend(["order","add","remove"],this.options.groupEditable,n.groupEditable));var u=function(p){var m=n[p];if(m){if(typeof m!="function"){var y;throw new Error(Ne(y="option ".concat(p," must be a function ")).call(y,p,"(item, callback)"))}s.options[p]=m}};B(l=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(l,u),n.cluster?(Ar(this.options,{cluster:n.cluster}),this.clusterGenerator||(this.clusterGenerator=new xz(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(n){this.groupIds=[],n&&(n.refreshItems&&B(x).call(x,this.items,function(s){s.dirty=!0,s.displayed&&s.redraw()}),n.restackGroups&&B(x).call(x,this.groups,function(s,o){o!==Xr&&(s.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(n){if(this.clearPopupTimer(),n){var s=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=ct(function(){n.show()},s)}}},{key:"clearPopupTimer",value:function(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(n){var s;n==null&&(n=[]),re(n)||(n=[n]);var o=J(s=this.selection).call(s,function(E){return Se(n).call(n,E)===-1}),l=pi(o),d;try{for(l.s();!(d=l.n()).done;){var u=d.value,f=this.getItemById(u);f&&f.unselect()}}catch(E){l.e(E)}finally{l.f()}this.selection=Pe(n);var p=pi(n),m;try{for(p.s();!(m=p.n()).done;){var y=m.value,b=this.getItemById(y);b&&b.select()}}catch(E){p.e(E)}finally{p.f()}}},{key:"getSelection",value:function(){var n;return Ne(n=this.selection).call(n,[])}},{key:"getVisibleItems",value:function(){var n=this.body.range.getRange(),s,o;this.options.rtl?(s=this.body.util.toScreen(n.start),o=this.body.util.toScreen(n.end)):(o=this.body.util.toScreen(n.start),s=this.body.util.toScreen(n.end));var l=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var u=this.groups[d],f=u.isVisible?u.visibleItems:[],p=pi(f),m;try{for(p.s();!(m=p.n()).done;){var y=m.value;this.options.rtl?y.right<o&&y.right+y.width>s&&l.push(y.id):y.left<s&&y.left+y.width>o&&l.push(y.id)}}catch(b){p.e(b)}finally{p.f()}}return l}},{key:"getItemsAtCurrentTime",value:function(n){var s,o;this.options.rtl?(s=this.body.util.toScreen(n),o=this.body.util.toScreen(n)):(o=this.body.util.toScreen(n),s=this.body.util.toScreen(n));var l=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var u=this.groups[d],f=u.isVisible?u.visibleItems:[],p=pi(f),m;try{for(p.s();!(m=p.n()).done;){var y=m.value;this.options.rtl?y.right<o&&y.right+y.width>s&&l.push(y.id):y.left<s&&y.left+y.width>o&&l.push(y.id)}}catch(b){p.e(b)}finally{p.f()}}return l}},{key:"getVisibleGroups",value:function(){var n=[];for(var s in this.groups)if(this.groups.hasOwnProperty(s)){var o=this.groups[s];o.isVisible&&n.push(s)}return n}},{key:"getItemById",value:function(n){var s;return this.items[n]||yG(s=this.clusters).call(s,function(o){return o.id===n})}},{key:"_deselect",value:function(n){for(var s=this.selection,o=0,l=s.length;o<l;o++)if(s[o]==n){pt(s).call(s,o,1);break}}},{key:"redraw",value:function(){var n=this.options.margin,s=this.body.range,o=x.option.asSize,l=this.options,d=l.orientation.item,u=!1,f=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,f.className="vis-itemset",this.options.cluster&&this._clusterItems(),u=this._orderGroups()||u;var p=s.end-s.start,m=p!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,y=s.start!=this.lastRangeStart,b=l.stack!=this.lastStack,E=l.stackSubgroups!=this.lastStackSubgroups,w=m||y||b||E;this.lastVisibleInterval=p,this.lastRangeStart=s.start,this.lastStack=l.stack,this.lastStackSubgroups=l.stackSubgroups,this.props.lastWidth=this.props.width;var S=this._firstGroup(),D={item:n.item,axis:n.axis},T={item:n.item,axis:n.item.vertical/2},P=0,F=n.axis+n.item.vertical;this.groups[Xr].redraw(s,T,w);var A={},V=0;B(x).call(x,this.groups,function(W,q){if(q!==Xr){var de=W==S?D:T,Ae=!0;A[q]=W.redraw(s,de,w,Ae),V=A[q].length}});var N=V>0;if(N){for(var I={},M=function(q){B(x).call(x,A,function(de,Ae){I[Ae]=de[q]()})},H=0;H<V;H++)M(H);B(x).call(x,this.groups,function(W,q){if(q!==Xr){var de=I[q];u=de||u,P+=W.height}}),P=Math.max(P,F)}return P=Math.max(P,F),f.style.height=o(P),this.props.width=f.offsetWidth,this.props.height=P,this.dom.axis.style.top=o(d=="top"?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,u=this._isResized()||u,u}},{key:"_firstGroup",value:function(){var n=this.options.orientation.item=="top"?0:this.groupIds.length-1,s=this.groupIds[n],o=this.groups[s]||this.groups[Qi];return o||null}},{key:"_updateUngrouped",value:function(){var n=this.groups[Qi],s,o;if(this.groupsData){if(n){n.dispose(),delete this.groups[Qi];for(o in this.items)if(this.items.hasOwnProperty(o)){s=this.items[o],s.parent&&s.parent.remove(s);var l=this.getGroupId(s.data),d=this.groups[l];d&&d.add(s)||s.hide()}}}else if(!n){var u=null,f=null;n=new ku(u,f,this),this.groups[Qi]=n;for(o in this.items)this.items.hasOwnProperty(o)&&(s=this.items[o],n.add(s));n.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(n){this.itemsSettingTime=new Date;var s=this,o,l=this.itemsData;if(!n)this.itemsData=null;else if(Rr(n))this.itemsData=wn(n);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(l&&(B(x).call(x,this.itemListeners,function(u,f){l.off(f,u)}),l.dispose(),o=l.getIds(),this._onRemove(o)),this.itemsData){var d=this.id;B(x).call(x,this.itemListeners,function(u,f){s.itemsData.on(f,u,d)}),o=this.itemsData.getIds(),this._onAdd(o),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return this.itemsData!=null?this.itemsData.rawDS:null}},{key:"setGroups",value:function(n){var s=this,o;if(this.groupsData&&(B(x).call(x,this.groupListeners,function(f,p){s.groupsData.off(p,f)}),o=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(o)),!n)this.groupsData=null;else if(Rr(n))this.groupsData=n;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var l,d=this.groupsData.getDataSet();B(l=d.get()).call(l,function(f){if(f.nestedGroups){var p;B(p=f.nestedGroups).call(p,function(m){var y=d.get(m);y.nestedInGroup=f.id,f.showNested==!1&&(y.visible=!1),d.update(y)})}});var u=this.id;B(x).call(x,this.groupListeners,function(f,p){s.groupsData.on(p,f,u)}),o=this.groupsData.getIds(),this._onAddGroups(o)}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(n){var s=this,o=this.itemsData.get(n);o&&this.options.onRemove(o,function(l){l&&s.itemsData.remove(n)})}},{key:"_getType",value:function(n){return n.type||this.options.type||(n.end?"range":"box")}},{key:"getGroupId",value:function(n){var s=this._getType(n);return s=="background"&&n.group==null?Xr:this.groupsData?n.group:Qi}},{key:"_onUpdate",value:function(n){var s=this,o=this;B(n).call(n,function(l){var d=o.itemsData.get(l),u=o.items[l],f=d?o._getType(d):null,p=t.types[f],m;if(u&&(!p||!(u instanceof p)?(m=u.selected,o._removeItem(u),u=null):o._updateItem(u,d)),!u&&d)if(p)u=new p(d,o.conversion,o.options),u.id=l,o._addItem(u),m&&(s.selection.push(l),u.select());else throw new TypeError('Unknown item type "'.concat(f,'"'))}),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(n){var s=0,o=this;B(n).call(n,function(l){var d=o.items[l];d&&(s++,o._removeItem(d))}),s&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){B(x).call(x,this.groups,function(n){n.order()})}},{key:"_onUpdateGroups",value:function(n){this._onAddGroups(n)}},{key:"_onAddGroups",value:function(n){var s=this;B(n).call(n,function(o){var l=s.groupsData.get(o),d=s.groups[o];if(d)d.setData(l);else{if(o==Qi||o==Xr)throw new Error("Illegal group id. ".concat(o," is a reserved id."));var u=La(s.options);x.extend(u,{height:null}),d=new ku(o,l,s),s.groups[o]=d;for(var f in s.items)if(s.items.hasOwnProperty(f)){var p=s.items[f];p.data.group==o&&d.add(p)}d.order(),d.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(n){var s=this;B(n).call(n,function(o){var l=s.groups[o];l&&(l.dispose(),delete s.groups[o])}),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 n=this.groupsData.getIds({order:this.options.groupOrder});n=this._orderNestedGroups(n);var s=!x.equalArray(n,this.groupIds);if(s){var o=this.groups;B(n).call(n,function(l){o[l].hide()}),B(n).call(n,function(l){o[l].show()}),this.groupIds=n}return s}else return!1}},{key:"_orderNestedGroups",value:function(n){var s=this;function o(d,u){var f=[];return B(u).call(u,function(p){f.push(p);var m=d.groupsData.get(p);if(m.nestedGroups){var y,b=ye(y=d.groupsData.get({filter:function(w){return w.nestedInGroup==p},order:d.options.groupOrder})).call(y,function(E){return E.id});f=Ne(f).call(f,o(d,b))}}),f}var l=J(n).call(n,function(d){return!s.groupsData.get(d).nestedInGroup});return o(this,l)}},{key:"_addItem",value:function(n){this.items[n.id]=n;var s=this.getGroupId(n.data),o=this.groups[s];o?o&&o.data&&o.data.showNested&&(n.groupShowing=!0):n.groupShowing=!1,o&&o.add(n)}},{key:"_updateItem",value:function(n,s){n.setData(s);var o=this.getGroupId(n.data),l=this.groups[o];l?l&&l.data&&l.data.showNested&&(n.groupShowing=!0):n.groupShowing=!1}},{key:"_removeItem",value:function(n){var s,o;n.hide(),delete this.items[n.id];var l=Se(s=this.selection).call(s,n.id);l!=-1&&pt(o=this.selection).call(o,l,1),n.parent&&n.parent.remove(n),this.popup!=null&&this.popup.hide()}},{key:"_constructByEndArray",value:function(n){for(var s=[],o=0;o<n.length;o++)n[o]instanceof Oi&&s.push(n[o]);return s}},{key:"_onTouch",value:function(n){this.touchParams.item=this.itemFromTarget(n),this.touchParams.dragLeftItem=n.target.dragLeftItem||!1,this.touchParams.dragRightItem=n.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(n){for(var s=0;s<this.groupIds.length;s++)if(n==this.groupIds[s])return s}},{key:"_onDragStart",value:function(n){var s=this;if(!this.touchParams.itemIsDragging){var o=this.touchParams.item||null,l=this,d;if(o&&(o.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup||o.editable!=null&&!o.editable.updateTime&&!o.editable.updateGroup&&!this.options.editable.overrideItems)return;var u=this.touchParams.dragLeftItem,f=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=o,u)d={item:u,initialX:n.center.x,dragLeft:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[d];else if(f)d={item:f,initialX:n.center.x,dragRight:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[d];else if(this.options.editable.add&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey))this._onDragStartAddItem(n);else{this.groupIds.length<1&&this.redraw();var p=this._getGroupIndex(o.data.group),m=this.options.itemsAlwaysDraggable.item&&!o.selected?[o.id]:this.getSelection();this.touchParams.itemProps=ye(m).call(m,function(y){var b=l.items[y],E=l._getGroupIndex(b.data.group);return{item:b,initialX:n.center.x,groupOffset:p-E,data:s._cloneItemData(b.data)}})}n.stopPropagation()}else this.options.editable.add&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey)&&this._onDragStartAddItem(n)}}},{key:"_onDragStartAddItem",value:function(n){var s=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),l=this.options.rtl?o.right-n.center.x+10:n.center.x-o.left-10,d=this.body.util.toTime(l),u=this.body.util.getScale(),f=this.body.util.getStep(),p=s?s(d,u,f):d,m=p,y={type:"range",start:p,end:m,content:"new item"},b=Ei();y[this.itemsData.idProp]=b;var E=this.groupFromTarget(n);E&&(y.group=E.groupId);var w=new Oi(y,this.conversion,this.options);w.id=b,w.data=this._cloneItemData(y),this._addItem(w),this.touchParams.selectedItem=w;var S={item:w,initialX:n.center.x,data:w.data};this.options.rtl?S.dragLeft=!0:S.dragRight=!0,this.touchParams.itemProps=[S],n.stopPropagation()}},{key:"_onDrag",value:function(n){var s=this;if(this.popup!=null&&this.options.showTooltips&&!this.popup.hidden){var o=this.body.dom.centerContainer,l=o.getBoundingClientRect();this.popup.setPosition(n.center.x-l.left+o.offsetLeft,n.center.y-l.top+o.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var d;n.stopPropagation();var u=this,f=this.options.snap||null,p=this.body.dom.root.offsetLeft,m=this.options.rtl?p+this.body.domProps.right.width:p+this.body.domProps.left.width,y=this.body.util.getScale(),b=this.body.util.getStep(),E=this.touchParams.selectedItem,w=(this.options.editable.overrideItems||E.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&E.editable!=null&&E.editable.updateGroup,S=null;if(w&&E&&E.data.group!=null){var D=u.groupFromTarget(n);D&&(S=this._getGroupIndex(D.groupId))}B(d=this.touchParams.itemProps).call(d,function(T){var P=u.body.util.toTime(n.center.x-m),F=u.body.util.toTime(T.initialX-m),A,V,N,I,M;s.options.rtl?A=-(P-F):A=P-F;var H=s._cloneItemData(T.item.data);if(!(T.item.editable!=null&&!T.item.editable.updateTime&&!T.item.editable.updateGroup&&!u.options.editable.overrideItems)){var W=(s.options.editable.overrideItems||E.editable==null)&&s.options.editable.updateTime||!s.options.editable.overrideItems&&E.editable!=null&&E.editable.updateTime;if(W){if(T.dragLeft)s.options.rtl?H.end!=null&&(N=x.convert(T.data.end,"Date"),M=new Date(N.valueOf()+A),H.end=f?f(M,y,b):M):H.start!=null&&(V=x.convert(T.data.start,"Date"),I=new Date(V.valueOf()+A),H.start=f?f(I,y,b):I);else if(T.dragRight)s.options.rtl?H.start!=null&&(V=x.convert(T.data.start,"Date"),I=new Date(V.valueOf()+A),H.start=f?f(I,y,b):I):H.end!=null&&(N=x.convert(T.data.end,"Date"),M=new Date(N.valueOf()+A),H.end=f?f(M,y,b):M);else if(H.start!=null)if(V=x.convert(T.data.start,"Date").valueOf(),I=new Date(V+A),H.end!=null){N=x.convert(T.data.end,"Date");var q=N.valueOf()-V.valueOf();H.start=f?f(I,y,b):I,H.end=new Date(H.start.valueOf()+q)}else H.start=f?f(I,y,b):I}if(w&&!T.dragLeft&&!T.dragRight&&S!=null&&H.group!=null){var de=S-T.groupOffset;de=Math.max(0,de),de=Math.min(u.groupIds.length-1,de),H.group=u.groupIds[de]}H=s._cloneItemData(H),u.options.onMoving(H,function(Ae){Ae&&T.item.setData(s._cloneItemData(Ae,"Date"))})}}),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(n,s){var o=this.groups[s];if(o&&o.groupId!=n.data.group){var l=n.parent;l.remove(n),l.order(),n.data.group=o.groupId,o.add(n),o.order()}}},{key:"_onDragEnd",value:function(n){var s=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){n.stopPropagation();var o=this,l=this.touchParams.itemProps;this.touchParams.itemProps=null,B(l).call(l,function(d){var u=d.item.id,f=o.itemsData.get(u)!=null;if(!f)o.options.onAdd(d.item.data,function(m){o._removeItem(d.item),m&&o.itemsData.add(m),o.body.emitter.emit("_change")});else{var p=s._cloneItemData(d.item.data);o.options.onMove(p,function(m){m?(m[s.itemsData.idProp]=u,s.itemsData.update(m)):(d.item.setData(d.data),o.body.emitter.emit("_change"))})}})}}},{key:"_onGroupClick",value:function(n){var s=this,o=this.groupFromTarget(n);ct(function(){s.toggleGroupShowNested(o)},1)}},{key:"toggleGroupShowNested",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(!(!n||!n.nestedGroups)){var o=this.groupsData.getDataSet();s!=null?n.showNested=!!s:n.showNested=!n.showNested;var l=o.get(n.groupId);l.showNested=n.showNested;for(var d=n.nestedGroups,u=d;u.length>0;){var f=u;u=[];for(var p=0;p<f.length;p++){var m=o.get(f[p]);m.nestedGroups&&(u=Ne(u).call(u,m.nestedGroups))}u.length>0&&(d=Ne(d).call(d,u))}var y;if(l.showNested){for(var b=o.get(l.nestedGroups),E=0;E<b.length;E++){var w=b[E];w.nestedGroups&&w.nestedGroups.length>0&&(w.showNested==null||w.showNested==!0)&&b.push.apply(b,Pe(o.get(w.nestedGroups)))}y=ye(b).call(b,function(D){return D.visible==null&&(D.visible=!0),D.visible=!!l.showNested,D})}else{var S;y=ye(S=o.get(d)).call(S,function(D){return D.visible==null&&(D.visible=!0),D.visible=!!l.showNested,D})}o.update(Ne(y).call(y,l)),l.showNested?(x.removeClassName(n.dom.label,"collapsed"),x.addClassName(n.dom.label,"expanded")):(x.removeClassName(n.dom.label,"expanded"),x.addClassName(n.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(n){n.dom.label.classList.toggle("vis-group-is-dragging"),n.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(n){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(n),this.groupTouchParams.group&&(n.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(n){if(this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var s=this.groupsData.getDataSet(),o=this.groupFromTarget(n);if(o&&o.height!=this.groupTouchParams.group.height){var l=o.top<this.groupTouchParams.group.top,d=n.center?n.center.y:n.clientY,u=o.dom.foreground.getBoundingClientRect(),f=this.groupTouchParams.group.height;if(l){if(u.top+f<d)return}else{var p=o.height;if(u.top+p-f>d)return}}if(o&&o!=this.groupTouchParams.group){var m=s.get(o.groupId),y=s.get(this.groupTouchParams.group.groupId);y&&m&&(this.options.groupOrderSwap(y,m,s),s.update(y),s.update(m));var b=s.getIds({order:this.options.groupOrder});if(!x.equalArray(b,this.groupTouchParams.originalOrder))for(var E=this.groupTouchParams.originalOrder,w=this.groupTouchParams.group.groupId,S=Math.min(E.length,b.length),D=0,T=0,P=0;D<S;){for(;D+T<S&&D+P<S&&b[D+T]==E[D+P];)D++;if(D+T>=S)break;if(b[D+T]==w)T=1;else if(E[D+P]==w)P=1;else{var F=Se(b).call(b,E[D+P]),A=s.get(b[D+T]),V=s.get(E[D+P]);this.options.groupOrderSwap(A,V,s),s.update(A),s.update(V);var N=b[D+T];b[D+T]=E[D+P],b[F]=N,D++}}}}}},{key:"_onGroupDragEnd",value:function(n){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var s=this,o=s.groupTouchParams.group.groupId,l=s.groupsData.getDataSet(),d=x.extend({},l.get(o));s.options.onMoveGroup(d,function(u){if(u)u[l._idProp]=o,l.update(u);else{var f=l.getIds({order:s.options.groupOrder});if(!x.equalArray(f,s.groupTouchParams.originalOrder))for(var p=s.groupTouchParams.originalOrder,m=Math.min(p.length,f.length),y=0;y<m;){for(;y<m&&f[y]==p[y];)y++;if(y>=m)break;var b=Se(f).call(f,p[y]),E=l.get(f[y]),w=l.get(p[y]);s.options.groupOrderSwap(E,w,l),l.update(E),l.update(w);var S=f[y];f[y]=p[y],f[b]=S,y++}}}),s.body.emitter.emit("groupDragged",{groupId:o}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(n){if(this.options.selectable){var s=n.srcEvent&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey),o=n.srcEvent&&n.srcEvent.shiftKey;if(s||o){this._onMultiSelectItem(n);return}var l=this.getSelection(),d=this.itemFromTarget(n),u=d&&d.selectable?[d.id]:[];this.setSelection(u);var f=this.getSelection();(f.length>0||l.length>0)&&this.body.emitter.emit("select",{items:f,event:n})}}},{key:"_onMouseOver",value:function(n){var s=this.itemFromTarget(n);if(s){var o=this.itemFromRelatedTarget(n);if(s!==o){var l=s.getTitle();if(this.options.showTooltips&&l){this.popup==null&&(this.popup=new rz(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(l);var d=this.body.dom.centerContainer,u=d.getBoundingClientRect();this.popup.setPosition(n.clientX-u.left+d.offsetLeft,n.clientY-u.top+d.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:s.id,event:n})}}}},{key:"_onMouseOut",value:function(n){var s=this.itemFromTarget(n);if(s){var o=this.itemFromRelatedTarget(n);s!==o&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:s.id,event:n}))}}},{key:"_onMouseMove",value:function(n){var s=this.itemFromTarget(n);if(s&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var o=this.body.dom.centerContainer,l=o.getBoundingClientRect();this.popup.setPosition(n.clientX-l.left+o.offsetLeft,n.clientY-l.top+o.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(n){this.touchParams.itemIsDragging&&this._onDragEnd(n)}},{key:"_onUpdateItem",value:function(n){if(this.options.selectable&&!(!this.options.editable.updateTime&&!this.options.editable.updateGroup)){var s=this;if(n){var o=s.itemsData.get(n.id);this.options.onUpdate(o,function(l){l&&s.itemsData.update(l)})}}}},{key:"_onDropObjectOnItem",value:function(n){var s=this.itemFromTarget(n),o=JSON.parse(n.dataTransfer.getData("text"));this.options.onDropObjectOnItem(o,s)}},{key:"_onAddItem",value:function(n){if(this.options.selectable&&this.options.editable.add){var s=this,o=this.options.snap||null,l=this.dom.frame.getBoundingClientRect(),d=this.options.rtl?l.right-n.center.x:n.center.x-l.left,u=this.body.util.toTime(d),f=this.body.util.getScale(),p=this.body.util.getStep(),m,y;n.type=="drop"?(y=JSON.parse(n.dataTransfer.getData("text")),y.content=y.content?y.content:"new item",y.start=y.start?y.start:o?o(u,f,p):u,y.type=y.type||"box",y[this.itemsData.idProp]=y.id||Ei(),y.type=="range"&&!y.end&&(m=this.body.util.toTime(d+this.props.width/5),y.end=o?o(m,f,p):m)):(y={start:o?o(u,f,p):u,content:"new item"},y[this.itemsData.idProp]=Ei(),this.options.type==="range"&&(m=this.body.util.toTime(d+this.props.width/5),y.end=o?o(m,f,p):m));var b=this.groupFromTarget(n);b&&(y.group=b.groupId),y=this._cloneItemData(y),this.options.onAdd(y,function(E){E&&(s.itemsData.add(E),n.type=="drop"&&s.setSelection([E.id]))})}}},{key:"_onMultiSelectItem",value:function(n){var s=this;if(this.options.selectable){var o=this.itemFromTarget(n);if(o){var l=this.options.multiselect?this.getSelection():[],d=n.srcEvent&&n.srcEvent.shiftKey||!1;if((d||this.options.sequentialSelection)&&this.options.multiselect){var u=this.itemsData.get(o.id).group,f=void 0;this.options.multiselectPerGroup&&l.length>0&&(f=this.itemsData.get(l[0]).group),(!this.options.multiselectPerGroup||f==null||f==u)&&l.push(o.id);var p=t._getItemRange(this.itemsData.get(l));if(!this.options.multiselectPerGroup||f==u){l=[];for(var m in this.items)if(this.items.hasOwnProperty(m)){var y=this.items[m],b=y.data.start,E=y.data.end!==void 0?y.data.end:b;b>=p.min&&E<=p.max&&(!this.options.multiselectPerGroup||f==this.itemsData.get(y.id).group)&&!(y instanceof Fi)&&l.push(y.id)}}}else{var w=Se(l).call(l,o.id);w==-1?l.push(o.id):pt(l).call(l,w,1)}var S=J(l).call(l,function(D){return s.getItemById(D).selectable});this.setSelection(S),this.body.emitter.emit("select",{items:this.getSelection(),event:n})}}}},{key:"itemFromElement",value:function(n){for(var s=n;s;){if(s.hasOwnProperty("vis-item"))return s["vis-item"];s=s.parentNode}return null}},{key:"itemFromTarget",value:function(n){return this.itemFromElement(n.target)}},{key:"itemFromRelatedTarget",value:function(n){return this.itemFromElement(n.relatedTarget)}},{key:"groupFromTarget",value:function(n){var s=n.center?n.center.y:n.clientY,o=this.groupIds;o.length<=0&&this.groupsData&&(o=this.groupsData.getIds({order:this.options.groupOrder}));for(var l=0;l<o.length;l++){var d=o[l],u=this.groups[d],f=u.dom.foreground,p=f.getBoundingClientRect();if(s>=p.top&&s<p.top+f.offsetHeight)return u;if(this.options.orientation.item==="top"){if(l===this.groupIds.length-1&&s>p.top)return u}else if(l===0&&s<p.top+f.offset)return u}return null}},{key:"_cloneItemData",value:function(n,s){var o=x.extend({},n);return s||(s=this.itemsData.type),o.start!=null&&(o.start=x.convert(o.start,s&&s.start||"Date")),o.end!=null&&(o.end=x.convert(o.end,s&&s.end||"Date")),o}},{key:"_clusterItems",value:function(){if(this.options.cluster){var n=this.body.range.conversion(this.body.domProps.center.width),s=n.scale,o=this.clusterGenerator.getClusters(this.clusters,s,this.options.cluster);if(this.clusters!=o){if(this._detachAllClusters(),o){var l=pi(o),d;try{for(l.s();!(d=l.n()).done;){var u=d.value;u.attach()}}catch(f){l.e(f)}finally{l.f()}this.clusters=o}this._updateClusters(o)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var n=pi(this.clusters),s;try{for(n.s();!(s=n.n()).done;){var o=s.value;o.detach()}}catch(l){n.e(l)}finally{n.f()}}}},{key:"_updateClusters",value:function(n){if(this.clusters&&this.clusters.length){var s,o=new ei(ye(n).call(n,function(w){return w.id})),l=J(s=this.clusters).call(s,function(w){return!o.has(w.id)}),d=!1,u=pi(l),f;try{for(u.s();!(f=u.n()).done;){var p,m=f.value,y=Se(p=this.selection).call(p,m.id);if(y!==-1){var b;m.unselect(),pt(b=this.selection).call(b,y,1),d=!0}}}catch(w){u.e(w)}finally{u.f()}if(d){var E=this.getSelection();this.body.emitter.emit("select",{items:E,event})}}this.clusters=n||[]}}],[{key:"_getItemRange",value:function(n){var s=null,o=null;return B(n).call(n,function(l){(o==null||l.start<o)&&(o=l.start),l.end!=null?(s==null||l.end>s)&&(s=l.end):(s==null||l.start>s)&&(s=l.start)}),{min:o,max:s}}},{key:"itemSetFromTarget",value:function(n){for(var s=n.target;s;){if(s.hasOwnProperty("vis-itemset"))return s["vis-itemset"];s=s.parentNode}return null}}]),t}(li);fo.types={background:Fi,box:UG,range:Oi,point:KG};fo.prototype._onAdd=fo.prototype._onUpdate;var ea=!1,Zp,vo="background: #FFeeee; color: #dd0000",Cb=function(){function e(){ue(this,e)}return ce(e,null,[{key:"validate",value:function(t,a,n){ea=!1,Zp=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(t,s,[]),ea}},{key:"parse",value:function(t,a,n){for(var s in t)t.hasOwnProperty(s)&&e.check(s,t,a,n)}},{key:"check",value:function(t,a,n,s){if(n[t]===void 0&&n.__any__===void 0){e.getSuggestion(t,n,s);return}var o=t,l=!0;n[t]===void 0&&n.__any__!==void 0&&(o="__any__",l=e.getType(a[t])==="object");var d=n[o];l&&d.__type__!==void 0&&(d=d.__type__),e.checkFields(t,a,n,o,d,s)}},{key:"checkFields",value:function(t,a,n,s,o,l){var d=function(m){console.log("%c"+m+e.printLocation(l,t),vo)},u=e.getType(a[t]),f=o[u];f!==void 0?e.getType(f)==="array"&&Se(f).call(f,a[t])===-1?(d('Invalid option detected in "'+t+'". Allowed values are:'+e.print(f)+' not "'+a[t]+'". '),ea=!0):u==="object"&&s!=="__any__"&&(l=x.copyAndExtendArray(l,t),e.parse(a[t],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+t+'". Expected: '+e.print(Ze(o))+". Received ["+u+'] "'+a[t]+'"'),ea=!0)}},{key:"getType",value:function(t){var a=ee(t);return a==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":re(t)?"array":t instanceof Date?"date":t.nodeType!==void 0?"dom":t._isAMomentObject===!0?"moment":"object":a==="number"?"number":a==="boolean"?"boolean":a==="string"?"string":a===void 0?"undefined":a}},{key:"getSuggestion",value:function(t,a,n){var s=e.findInOptions(t,a,n,!1),o=e.findInOptions(t,Zp,[],!0),l=8,d=4,u;s.indexMatch!==void 0?u=" in "+e.printLocation(s.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+`"?
|
880
|
+
|
881
|
+
`:o.distance<=d&&s.distance>o.distance?u=" in "+e.printLocation(s.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""):s.distance<=l?u='. Did you mean "'+s.closestMatch+'"?'+e.printLocation(s.path,t):u=". Did you mean one of these: "+e.print(Ze(a))+e.printLocation(n,t),console.log('%cUnknown option detected: "'+t+'"'+u,vo),ea=!0}},{key:"findInOptions",value:function(t,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],u=t.toLowerCase(),f=void 0;for(var p in a){var m=void 0;if(a[p].__type__!==void 0&&s===!0){var y=e.findInOptions(t,a[p],x.copyAndExtendArray(n,p));o>y.distance&&(l=y.closestMatch,d=y.path,o=y.distance,f=y.indexMatch)}else{var b;Se(b=p.toLowerCase()).call(b,u)!==-1&&(f=p),m=e.levenshteinDistance(t,p),o>m&&(l=p,d=x.copyArray(n),o=m)}}return{closestMatch:l,path:d,distance:o,indexMatch:f}}},{key:"printLocation",value:function(t,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
882
|
+
`,s=`
|
883
|
+
|
884
|
+
`+n+`options = {
|
885
|
+
`,o=0;o<t.length;o++){for(var l=0;l<o+1;l++)s+=" ";s+=t[o]+`: {
|
886
|
+
`}for(var d=0;d<t.length+1;d++)s+=" ";s+=a+`
|
887
|
+
`;for(var u=0;u<t.length+1;u++){for(var f=0;f<t.length-u;f++)s+=" ";s+=`}
|
888
|
+
`}return s+`
|
889
|
+
|
890
|
+
`}},{key:"print",value:function(t){return Dt(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,a){if(t.length===0)return a.length;if(a.length===0)return t.length;var n=[],s;for(s=0;s<=a.length;s++)n[s]=[s];var o;for(o=0;o<=t.length;o++)n[0][o]=o;for(s=1;s<=a.length;s++)for(o=1;o<=t.length;o++)a.charAt(s-1)==t.charAt(o-1)?n[s][o]=n[s-1][o-1]:n[s][o]=Math.min(n[s-1][o-1]+1,Math.min(n[s][o-1]+1,n[s-1][o]+1));return n[a.length][t.length]}}]),e}(),ae="string",ne="boolean",Te="number",Qp="array",Ji="date",ze="object",Nz="dom",en="moment",Jp="any",Cz={configure:{enabled:{boolean:ne},filter:{boolean:ne,function:"function"},container:{dom:Nz},__type__:{object:ze,boolean:ne,function:"function"}},align:{string:ae},alignCurrentTime:{string:ae,undefined:"undefined"},rtl:{boolean:ne,undefined:"undefined"},rollingMode:{follow:{boolean:ne},offset:{number:Te,undefined:"undefined"},__type__:{object:ze}},onTimeout:{timeoutMs:{number:Te},callback:{function:"function"},__type__:{object:ze}},verticalScroll:{boolean:ne,undefined:"undefined"},horizontalScroll:{boolean:ne,undefined:"undefined"},autoResize:{boolean:ne},throttleRedraw:{number:Te},clickToUse:{boolean:ne},dataAttributes:{string:ae,array:Qp},editable:{add:{boolean:ne,undefined:"undefined"},remove:{boolean:ne,undefined:"undefined"},updateGroup:{boolean:ne,undefined:"undefined"},updateTime:{boolean:ne,undefined:"undefined"},overrideItems:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:ze}},end:{number:Te,date:Ji,string:ae,moment:en},format:{minorLabels:{millisecond:{string:ae,undefined:"undefined"},second:{string:ae,undefined:"undefined"},minute:{string:ae,undefined:"undefined"},hour:{string:ae,undefined:"undefined"},weekday:{string:ae,undefined:"undefined"},day:{string:ae,undefined:"undefined"},week:{string:ae,undefined:"undefined"},month:{string:ae,undefined:"undefined"},year:{string:ae,undefined:"undefined"},__type__:{object:ze,function:"function"}},majorLabels:{millisecond:{string:ae,undefined:"undefined"},second:{string:ae,undefined:"undefined"},minute:{string:ae,undefined:"undefined"},hour:{string:ae,undefined:"undefined"},weekday:{string:ae,undefined:"undefined"},day:{string:ae,undefined:"undefined"},week:{string:ae,undefined:"undefined"},month:{string:ae,undefined:"undefined"},year:{string:ae,undefined:"undefined"},__type__:{object:ze,function:"function"}},__type__:{object:ze}},moment:{function:"function"},groupHeightMode:{string:ae},groupOrder:{string:ae,function:"function"},groupEditable:{add:{boolean:ne,undefined:"undefined"},remove:{boolean:ne,undefined:"undefined"},order:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:ze}},groupOrderSwap:{function:"function"},height:{string:ae,number:Te},hiddenDates:{start:{date:Ji,number:Te,string:ae,moment:en},end:{date:Ji,number:Te,string:ae,moment:en},repeat:{string:ae},__type__:{object:ze,array:Qp}},itemsAlwaysDraggable:{item:{boolean:ne,undefined:"undefined"},range:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:ze}},limitSize:{boolean:ne},locale:{string:ae},locales:{__any__:{any:Jp},__type__:{object:ze}},longSelectPressTime:{number:Te},margin:{axis:{number:Te},item:{horizontal:{number:Te,undefined:"undefined"},vertical:{number:Te,undefined:"undefined"},__type__:{object:ze,number:Te}},__type__:{object:ze,number:Te}},max:{date:Ji,number:Te,string:ae,moment:en},maxHeight:{number:Te,string:ae},maxMinorChars:{number:Te},min:{date:Ji,number:Te,string:ae,moment:en},minHeight:{number:Te,string:ae},moveable:{boolean:ne},multiselect:{boolean:ne},multiselectPerGroup:{boolean:ne},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:ae,undefined:"undefined"},item:{string:ae,undefined:"undefined"},__type__:{string:ae,object:ze}},selectable:{boolean:ne},sequentialSelection:{boolean:ne},showCurrentTime:{boolean:ne},showMajorLabels:{boolean:ne},showMinorLabels:{boolean:ne},showWeekScale:{boolean:ne},stack:{boolean:ne},stackSubgroups:{boolean:ne},cluster:{maxItems:{number:Te,undefined:"undefined"},titleTemplate:{string:ae,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:ne,undefined:"undefined"},fitOnDoubleClick:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:ze}},snap:{function:"function",null:"null"},start:{date:Ji,number:Te,string:ae,moment:en},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:ae,function:"function"},showTooltips:{boolean:ne},tooltip:{followMouse:{boolean:ne},overflowMethod:{string:["cap","flip","none"]},delay:{number:Te},template:{function:"function"},__type__:{object:ze}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:ne,object:ze}},timeAxis:{scale:{string:ae,undefined:"undefined"},step:{number:Te,undefined:"undefined"},__type__:{object:ze}},type:{string:ae},width:{string:ae,number:Te},preferZoom:{boolean:ne},zoomable:{boolean:ne},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Te},zoomMax:{number:Te},zoomMin:{number:Te},xss:{disabled:{boolean:ne},filterOptions:{__any__:{any:Jp},__type__:{object:ze}},__type__:{object:ze}},__type__:{object:ze}},Oz={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}}},Pz={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"},Iz=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;ue(this,e),this.pixelRatio=r,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return ce(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return Pz[t]}},{key:"setColor",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var n,s=this._isColorString(t);if(s!==void 0&&(t=s),x.isString(t)===!0){if(x.isValidRGB(t)===!0){var o=t.substr(4).substr(0,t.length-5).split(",");n={r:o[0],g:o[1],b:o[2],a:1}}else if(x.isValidRGBA(t)===!0){var l=t.substr(5).substr(0,t.length-6).split(",");n={r:l[0],g:l[1],b:l[2],a:l[3]}}else if(x.isValidHex(t)===!0){var d=x.hexToRGB(t);n={r:d.r,g:d.g,b:d.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var u=t.a!==void 0?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:u}}if(n===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Dt(t));this._setColor(n,a)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;a===!0&&(this.previousColor=x.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",ct(function(){t.closeCallback!==void 0&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a===!0&&(this.initialColor=x.extend({},t)),this.color=t;var n=x.RGBToHSV(t.r,t.g,t.b),s=2*Math.PI,o=this.r*n.s,l=this.centerCoordinates.x+o*Math.sin(s*n.h),d=this.centerCoordinates.y+o*Math.cos(s*n.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=d-.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 a=x.RGBToHSV(this.color.r,this.color.g,this.color.b);a.v=t/100;var n=x.HSVToRGB(a.h,a.s,a.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,a=x.RGBToHSV(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var s=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,s,o),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-a.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fy(n).call(n),this.brightnessRange.value=100*a.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,a,n,s;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 l=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.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{}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{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._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=O(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=O(a=this._apply).call(a,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=O(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=O(s=this._loadLast).call(s,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 vt(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),mb(this.hammer,function(a){t._moveSelector(a)}),this.hammer.on("tap",function(a){t._moveSelector(a)}),this.hammer.on("panstart",function(a){t._moveSelector(a)}),this.hammer.on("panmove",function(a){t._moveSelector(a)}),this.hammer.on("panend",function(a){t._moveSelector(a)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,a,n);var s,o,l,d;this.centerCoordinates={x:a*.5,y:n*.5},this.r=.49*a;var u=2*Math.PI/360,f=1/360,p=1/this.r,m;for(l=0;l<360;l++)for(d=0;d<this.r;d++)s=this.centerCoordinates.x+d*Math.sin(u*l),o=this.centerCoordinates.y+d*Math.cos(u*l),m=x.HSVToRGB(l*f,d*p,1),t.fillStyle="rgb("+m.r+","+m.g+","+m.b+")",t.fillRect(s-.5,o-.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,a,n)}this.generated=!0}},{key:"_moveSelector",value:function(t){var a=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-a.left,s=t.center.y-a.top,o=.5*this.colorPickerDiv.clientHeight,l=.5*this.colorPickerDiv.clientWidth,d=n-l,u=s-o,f=Math.atan2(d,u),p=.98*Math.min(Math.sqrt(d*d+u*u),l),m=Math.cos(f)*p+o,y=Math.sin(f)*p+l;this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=y-.5*this.colorPickerSelector.clientWidth+"px";var b=f/(2*Math.PI);b=b<0?b+1:b;var E=p/this.r,w=x.RGBToHSV(this.color.r,this.color.g,this.color.b);w.h=b,w.s=E;var S=x.HSVToRGB(w.h,w.s,w.v);S.a=this.color.a,this.color=S,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+")"}}]),e}(),Mz=`div.vis-configuration {
|
891
|
+
position:relative;
|
892
|
+
display:block;
|
893
|
+
float:left;
|
894
|
+
font-size:12px;
|
895
|
+
}
|
896
|
+
|
897
|
+
div.vis-configuration-wrapper {
|
898
|
+
display:block;
|
899
|
+
width:700px;
|
900
|
+
}
|
901
|
+
|
902
|
+
div.vis-configuration-wrapper::after {
|
903
|
+
clear: both;
|
904
|
+
content: "";
|
905
|
+
display: block;
|
906
|
+
}
|
907
|
+
|
908
|
+
div.vis-configuration.vis-config-option-container{
|
909
|
+
display:block;
|
910
|
+
width:495px;
|
911
|
+
background-color: #ffffff;
|
912
|
+
border:2px solid #f7f8fa;
|
913
|
+
border-radius:4px;
|
914
|
+
margin-top:20px;
|
915
|
+
left:10px;
|
916
|
+
padding-left:5px;
|
917
|
+
}
|
918
|
+
|
919
|
+
div.vis-configuration.vis-config-button{
|
920
|
+
display:block;
|
921
|
+
width:495px;
|
922
|
+
height:25px;
|
923
|
+
vertical-align: middle;
|
924
|
+
line-height:25px;
|
925
|
+
background-color: #f7f8fa;
|
926
|
+
border:2px solid #ceced0;
|
927
|
+
border-radius:4px;
|
928
|
+
margin-top:20px;
|
929
|
+
left:10px;
|
930
|
+
padding-left:5px;
|
931
|
+
cursor: pointer;
|
932
|
+
margin-bottom:30px;
|
933
|
+
}
|
934
|
+
|
935
|
+
div.vis-configuration.vis-config-button.hover{
|
936
|
+
background-color: #4588e6;
|
937
|
+
border:2px solid #214373;
|
938
|
+
color:#ffffff;
|
939
|
+
}
|
940
|
+
|
941
|
+
div.vis-configuration.vis-config-item{
|
942
|
+
display:block;
|
943
|
+
float:left;
|
944
|
+
width:495px;
|
945
|
+
height:25px;
|
946
|
+
vertical-align: middle;
|
947
|
+
line-height:25px;
|
948
|
+
}
|
949
|
+
|
950
|
+
|
951
|
+
div.vis-configuration.vis-config-item.vis-config-s2{
|
952
|
+
left:10px;
|
953
|
+
background-color: #f7f8fa;
|
954
|
+
padding-left:5px;
|
955
|
+
border-radius:3px;
|
956
|
+
}
|
957
|
+
div.vis-configuration.vis-config-item.vis-config-s3{
|
958
|
+
left:20px;
|
959
|
+
background-color: #e4e9f0;
|
960
|
+
padding-left:5px;
|
961
|
+
border-radius:3px;
|
962
|
+
}
|
963
|
+
div.vis-configuration.vis-config-item.vis-config-s4{
|
964
|
+
left:30px;
|
965
|
+
background-color: #cfd8e6;
|
966
|
+
padding-left:5px;
|
967
|
+
border-radius:3px;
|
968
|
+
}
|
969
|
+
|
970
|
+
div.vis-configuration.vis-config-header{
|
971
|
+
font-size:18px;
|
972
|
+
font-weight: bold;
|
973
|
+
}
|
974
|
+
|
975
|
+
div.vis-configuration.vis-config-label{
|
976
|
+
width:120px;
|
977
|
+
height:25px;
|
978
|
+
line-height: 25px;
|
979
|
+
}
|
980
|
+
|
981
|
+
div.vis-configuration.vis-config-label.vis-config-s3{
|
982
|
+
width:110px;
|
983
|
+
}
|
984
|
+
div.vis-configuration.vis-config-label.vis-config-s4{
|
985
|
+
width:100px;
|
986
|
+
}
|
987
|
+
|
988
|
+
div.vis-configuration.vis-config-colorBlock{
|
989
|
+
top:1px;
|
990
|
+
width:30px;
|
991
|
+
height:19px;
|
992
|
+
border:1px solid #444444;
|
993
|
+
border-radius:2px;
|
994
|
+
padding:0px;
|
995
|
+
margin:0px;
|
996
|
+
cursor:pointer;
|
997
|
+
}
|
998
|
+
|
999
|
+
input.vis-configuration.vis-config-checkbox {
|
1000
|
+
left:-5px;
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
|
1004
|
+
input.vis-configuration.vis-config-rangeinput{
|
1005
|
+
position:relative;
|
1006
|
+
top:-5px;
|
1007
|
+
width:60px;
|
1008
|
+
/*height:13px;*/
|
1009
|
+
padding:1px;
|
1010
|
+
margin:0;
|
1011
|
+
pointer-events:none;
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
input.vis-configuration.vis-config-range{
|
1015
|
+
/*removes default webkit styles*/
|
1016
|
+
-webkit-appearance: none;
|
1017
|
+
|
1018
|
+
/*fix for FF unable to apply focus style bug */
|
1019
|
+
border: 0px solid white;
|
1020
|
+
background-color:rgba(0,0,0,0);
|
1021
|
+
|
1022
|
+
/*required for proper track sizing in FF*/
|
1023
|
+
width: 300px;
|
1024
|
+
height:20px;
|
1025
|
+
}
|
1026
|
+
input.vis-configuration.vis-config-range::-webkit-slider-runnable-track {
|
1027
|
+
width: 300px;
|
1028
|
+
height: 5px;
|
1029
|
+
background: #dedede; /* Old browsers */
|
1030
|
+
background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
|
1031
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
|
1032
|
+
background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
|
1033
|
+
background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */
|
1034
|
+
background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */
|
1035
|
+
background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */
|
1036
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
|
1037
|
+
|
1038
|
+
border: 1px solid #999999;
|
1039
|
+
box-shadow: #aaaaaa 0px 0px 3px 0px;
|
1040
|
+
border-radius: 3px;
|
1041
|
+
}
|
1042
|
+
input.vis-configuration.vis-config-range::-webkit-slider-thumb {
|
1043
|
+
-webkit-appearance: none;
|
1044
|
+
border: 1px solid #14334b;
|
1045
|
+
height: 17px;
|
1046
|
+
width: 17px;
|
1047
|
+
border-radius: 50%;
|
1048
|
+
background: #3876c2; /* Old browsers */
|
1049
|
+
background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */
|
1050
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */
|
1051
|
+
background: -webkit-linear-gradient(top, #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */
|
1052
|
+
background: -o-linear-gradient(top, #3876c2 0%,#385380 100%); /* Opera 11.10+ */
|
1053
|
+
background: -ms-linear-gradient(top, #3876c2 0%,#385380 100%); /* IE10+ */
|
1054
|
+
background: linear-gradient(to bottom, #3876c2 0%,#385380 100%); /* W3C */
|
1055
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */
|
1056
|
+
box-shadow: #111927 0px 0px 1px 0px;
|
1057
|
+
margin-top: -7px;
|
1058
|
+
}
|
1059
|
+
input.vis-configuration.vis-config-range:focus {
|
1060
|
+
outline: none;
|
1061
|
+
}
|
1062
|
+
input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {
|
1063
|
+
background: #9d9d9d; /* Old browsers */
|
1064
|
+
background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */
|
1065
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
|
1066
|
+
background: -webkit-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
|
1067
|
+
background: -o-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */
|
1068
|
+
background: -ms-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */
|
1069
|
+
background: linear-gradient(to bottom, #9d9d9d 0%,#c8c8c8 99%); /* W3C */
|
1070
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
|
1071
|
+
}
|
1072
|
+
|
1073
|
+
input.vis-configuration.vis-config-range::-moz-range-track {
|
1074
|
+
width: 300px;
|
1075
|
+
height: 10px;
|
1076
|
+
background: #dedede; /* Old browsers */
|
1077
|
+
background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
|
1078
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
|
1079
|
+
background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
|
1080
|
+
background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */
|
1081
|
+
background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */
|
1082
|
+
background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */
|
1083
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
|
1084
|
+
|
1085
|
+
border: 1px solid #999999;
|
1086
|
+
box-shadow: #aaaaaa 0px 0px 3px 0px;
|
1087
|
+
border-radius: 3px;
|
1088
|
+
}
|
1089
|
+
input.vis-configuration.vis-config-range::-moz-range-thumb {
|
1090
|
+
border: none;
|
1091
|
+
height: 16px;
|
1092
|
+
width: 16px;
|
1093
|
+
|
1094
|
+
border-radius: 50%;
|
1095
|
+
background: #385380;
|
1096
|
+
}
|
1097
|
+
|
1098
|
+
/*hide the outline behind the border*/
|
1099
|
+
input.vis-configuration.vis-config-range:-moz-focusring{
|
1100
|
+
outline: 1px solid white;
|
1101
|
+
outline-offset: -1px;
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
input.vis-configuration.vis-config-range::-ms-track {
|
1105
|
+
width: 300px;
|
1106
|
+
height: 5px;
|
1107
|
+
|
1108
|
+
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
|
1109
|
+
background: transparent;
|
1110
|
+
|
1111
|
+
/*leave room for the larger thumb to overflow with a transparent border */
|
1112
|
+
border-color: transparent;
|
1113
|
+
border-width: 6px 0;
|
1114
|
+
|
1115
|
+
/*remove default tick marks*/
|
1116
|
+
color: transparent;
|
1117
|
+
}
|
1118
|
+
input.vis-configuration.vis-config-range::-ms-fill-lower {
|
1119
|
+
background: #777;
|
1120
|
+
border-radius: 10px;
|
1121
|
+
}
|
1122
|
+
input.vis-configuration.vis-config-range::-ms-fill-upper {
|
1123
|
+
background: #ddd;
|
1124
|
+
border-radius: 10px;
|
1125
|
+
}
|
1126
|
+
input.vis-configuration.vis-config-range::-ms-thumb {
|
1127
|
+
border: none;
|
1128
|
+
height: 16px;
|
1129
|
+
width: 16px;
|
1130
|
+
border-radius: 50%;
|
1131
|
+
background: #385380;
|
1132
|
+
}
|
1133
|
+
input.vis-configuration.vis-config-range:focus::-ms-fill-lower {
|
1134
|
+
background: #888;
|
1135
|
+
}
|
1136
|
+
input.vis-configuration.vis-config-range:focus::-ms-fill-upper {
|
1137
|
+
background: #ccc;
|
1138
|
+
}
|
1139
|
+
|
1140
|
+
.vis-configuration-popup {
|
1141
|
+
position: absolute;
|
1142
|
+
background: rgba(57, 76, 89, 0.85);
|
1143
|
+
border: 2px solid #f2faff;
|
1144
|
+
line-height:30px;
|
1145
|
+
height:30px;
|
1146
|
+
width:150px;
|
1147
|
+
text-align:center;
|
1148
|
+
color: #ffffff;
|
1149
|
+
font-size:14px;
|
1150
|
+
border-radius:4px;
|
1151
|
+
-webkit-transition: opacity 0.3s ease-in-out;
|
1152
|
+
-moz-transition: opacity 0.3s ease-in-out;
|
1153
|
+
transition: opacity 0.3s ease-in-out;
|
1154
|
+
}
|
1155
|
+
.vis-configuration-popup:after, .vis-configuration-popup:before {
|
1156
|
+
left: 100%;
|
1157
|
+
top: 50%;
|
1158
|
+
border: solid transparent;
|
1159
|
+
content: " ";
|
1160
|
+
height: 0;
|
1161
|
+
width: 0;
|
1162
|
+
position: absolute;
|
1163
|
+
pointer-events: none;
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
.vis-configuration-popup:after {
|
1167
|
+
border-color: rgba(136, 183, 213, 0);
|
1168
|
+
border-left-color: rgba(57, 76, 89, 0.85);
|
1169
|
+
border-width: 8px;
|
1170
|
+
margin-top: -8px;
|
1171
|
+
}
|
1172
|
+
.vis-configuration-popup:before {
|
1173
|
+
border-color: rgba(194, 225, 245, 0);
|
1174
|
+
border-left-color: #f2faff;
|
1175
|
+
border-width: 12px;
|
1176
|
+
margin-top: -12px;
|
1177
|
+
}`;kt(Mz);var Ob=function(){function e(r,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;ue(this,e),this.parent=r,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},x.extend(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Iz(n),this.wrapper=void 0}return ce(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var a=!0;if(typeof t=="string")this.options.filter=t;else if(re(t))this.options.filter=t.join();else if(ee(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),J(t)!==void 0&&(this.options.filter=J(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(a=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,a=t):typeof t=="function"&&(this.options.filter=t,a=!0);J(this.options)===!1&&(a=!1),this.options.enabled=a}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=J(this.options),a=0,n=!1;for(var s in this.configureOptions)this.configureOptions.hasOwnProperty(s)&&(this.allowCreation=!1,n=!1,typeof t=="function"?(n=t(s,[]),n=n||this._handleObject(this.configureOptions[s],[s],!0)):(t===!0||Se(t).call(t,s)!==-1)&&(n=!0),n!==!1&&(this.allowCreation=!0,a>0&&this._makeItem([]),this._makeHeader(s),this._handleObject(this.configureOptions[s],[s])),a++);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]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var a=this.moduleOptions,n=0;n<t.length;n++)if(a[t[n]]!==void 0)a=a[t[n]];else{a=void 0;break}return a}},{key:"_makeItem",value:function(t){if(this.allowCreation===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return B(s).call(s,function(l){a.appendChild(l)}),this.domElements.push(a),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var a=document.createElement("div");a.className="vis-configuration vis-config-header",a.innerHTML=x.xss(t),this._makeItem([],a)}},{key:"_makeLabel",value:function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=document.createElement("div");return s.className="vis-configuration vis-config-label vis-config-s"+a.length,n===!0?s.innerHTML=x.xss("<i><b>"+t+":</b></i>"):s.innerHTML=x.xss(t+":"),s}},{key:"_makeDropdown",value:function(t,a,n){var s=document.createElement("select");s.className="vis-configuration vis-config-select";var o=0;a!==void 0&&Se(t).call(t,a)!==-1&&(o=Se(t).call(t,a));for(var l=0;l<t.length;l++){var d=document.createElement("option");d.value=t[l],l===o&&(d.selected="selected"),d.innerHTML=t[l],s.appendChild(d)}var u=this;s.onchange=function(){u._update(this.value,n)};var f=this._makeLabel(n[n.length-1],n);this._makeItem(n,f,s)}},{key:"_makeRange",value:function(t,a,n){var s=t[0],o=t[1],l=t[2],d=t[3],u=document.createElement("input");u.className="vis-configuration vis-config-range";try{u.type="range",u.min=o,u.max=l}catch{}u.step=d;var f="",p=0;if(a!==void 0){var m=1.2;a<0&&a*m<o?(u.min=Math.ceil(a*m),p=u.min,f="range increased"):a/m<o&&(u.min=Math.ceil(a/m),p=u.min,f="range increased"),a*m>l&&l!==1&&(u.max=Math.ceil(a*m),p=u.max,f="range increased"),u.value=a}else u.value=s;var y=document.createElement("input");y.className="vis-configuration vis-config-rangeinput",y.value=Number(u.value);var b=this;u.onchange=function(){y.value=this.value,b._update(Number(this.value),n)},u.oninput=function(){y.value=this.value};var E=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,E,u,y);f!==""&&this.popupHistory[w]!==p&&(this.popupHistory[w]=p,this._setupPopup(f,w))}},{key:"_makeButton",value:function(){var t=this;if(this.options.showButton===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-button",a.innerHTML="generate options",a.onclick=function(){t._printOptions()},a.onmouseover=function(){a.className="vis-configuration vis-config-button hover"},a.onmouseout=function(){a.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(a)}}},{key:"_setupPopup",value:function(t,a){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var s=document.createElement("div");s.id="vis-configuration-popup",s.className="vis-configuration-popup",s.innerHTML=x.xss(t),s.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:s,index:a}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(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(this.popupDiv.html!==void 0){var a=this.domElements[this.popupDiv.index],n=a.getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=ct(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=ct(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,a,n){var s=document.createElement("input");s.type="checkbox",s.className="vis-configuration vis-config-checkbox",s.checked=t,a!==void 0&&(s.checked=a,a!==t&&(ee(t)==="object"?a!==t.enabled&&this.changedOptions.push({path:n,value:a}):this.changedOptions.push({path:n,value:a})));var o=this;s.onchange=function(){o._update(this.checked,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeTextInput",value:function(t,a,n){var s=document.createElement("input");s.type="text",s.className="vis-configuration vis-config-text",s.value=a,a!==t&&this.changedOptions.push({path:n,value:a});var o=this;s.onchange=function(){o._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeColorField",value:function(t,a,n){var s=this,o=t[1],l=document.createElement("div");a=a===void 0?o:a,a!=="none"?(l.className="vis-configuration vis-config-colorBlock",l.style.backgroundColor=a):l.className="vis-configuration vis-config-colorBlock none",a=a===void 0?o:a,l.onclick=function(){s._showColorPicker(a,l,n)};var d=this._makeLabel(n[n.length-1],n);this._makeItem(n,d,l)}},{key:"_showColorPicker",value:function(t,a,n){var s=this;a.onclick=function(){},this.colorPicker.insertTo(a),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(o){var l="rgba("+o.r+","+o.g+","+o.b+","+o.a+")";a.style.backgroundColor=l,s._update(l,n)}),this.colorPicker.setCloseCallback(function(){a.onclick=function(){s._showColorPicker(t,a,n)}})}},{key:"_handleObject",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=!1,o=J(this.options),l=!1;for(var d in t)if(t.hasOwnProperty(d)){s=!0;var u=t[d],f=x.copyAndExtendArray(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!re(u)&&typeof u!="string"&&typeof u!="boolean"&&u instanceof Object&&(this.allowCreation=!1,s=this._handleObject(u,f,!0),this.allowCreation=n===!1)),s!==!1){l=!0;var p=this._getValue(f);if(re(u))this._handleArray(u,p,f);else if(typeof u=="string")this._makeTextInput(u,p,f);else if(typeof u=="boolean")this._makeCheckbox(u,p,f);else if(u instanceof Object){var m=!0;if(Se(a).call(a,"physics")!==-1&&this.moduleOptions.physics.solver!==d&&(m=!1),m===!0)if(u.enabled!==void 0){var y=x.copyAndExtendArray(f,"enabled"),b=this._getValue(y);if(b===!0){var E=this._makeLabel(d,f,!0);this._makeItem(f,E),l=this._handleObject(u,f)||l}else this._makeCheckbox(u,b,f)}else{var w=this._makeLabel(d,f,!0);this._makeItem(f,w),l=this._handleObject(u,f)||l}}else console.error("dont know how to handle",u,d,f)}}return l}},{key:"_handleArray",value:function(t,a,n){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,a,n),t[1]!==a&&this.changedOptions.push({path:n,value:a})):typeof t[0]=="string"?(this._makeDropdown(t,a,n),t[0]!==a&&this.changedOptions.push({path:n,value:a})):typeof t[0]=="number"&&(this._makeRange(t,a,n),t[0]!==a&&this.changedOptions.push({path:n,value:Number(a)}))}},{key:"_update",value:function(t,a){var n=this._constructOptions(t,a);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var o=0;o<a.length;o++)a[o]!=="global"&&(s[a[o]]===void 0&&(s[a[o]]={}),o!==a.length-1?s=s[a[o]]:s[a[o]]=t);return n}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+Dt(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},a=0;a<this.changedOptions.length;a++)this._constructOptions(this.changedOptions[a].value,this.changedOptions[a].path,t);return t}}]),e}();function Az(e){var r=Vz();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function Vz(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Rz=function(e){wt(t,e);var r=Az(t);function t(a,n,s,o){var l,d,u,f,p,m,y,b;if(ue(this,t),b=r.call(this),b.initTime=new Date,b.itemsDone=!1,!(Ee(b)instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!(re(s)||Rr(s))&&s instanceof Object){var E=o;o=s,s=E}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var w=Ee(b);if(b.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:mt},b.options=x.deepExtend({},b.defaultOptions),o&&x.setupXSSProtection(o.xss),b._create(a),!o||o&&typeof o.rtl>"u"){b.dom.root.style.visibility="hidden";for(var S,D=b.dom.root;!S&&D;)S=window.getComputedStyle(D,null).direction,D=D.parentElement;b.options.rtl=S&&S.toLowerCase()=="rtl"}else b.options.rtl=o.rtl;o&&(o.rollingMode&&(b.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(b.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(b.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(b.options.loadingScreenTemplate=o.loadingScreenTemplate));var T=document.createElement("div");if(b.options.loadingScreenTemplate){var P,F=O(P=b.options.loadingScreenTemplate).call(P,Ee(b)),A=F(b.dom.loadingScreen);A instanceof Object&&!(A instanceof Element)?F(T):A instanceof Element?(T.innerHTML="",T.appendChild(A)):A!=null&&(T.innerHTML=x.xss(A))}b.dom.loadingScreen.appendChild(T),b.components=[],b.body={dom:b.dom,domProps:b.props,emitter:{on:O(l=b.on).call(l,Ee(b)),off:O(d=b.off).call(d,Ee(b)),emit:O(u=b.emit).call(u,Ee(b))},hiddenDates:[],util:{getScale:function(){return w.timeAxis.step.scale},getStep:function(){return w.timeAxis.step.step},toScreen:O(f=w._toScreen).call(f,w),toGlobalScreen:O(p=w._toGlobalScreen).call(p,w),toTime:O(m=w._toTime).call(m,w),toGlobalTime:O(y=w._toGlobalTime).call(y,w)}},b.range=new pb(b.body,b.options),b.components.push(b.range),b.body.range=b.range,b.timeAxis=new ho(b.body,b.options),b.timeAxis2=null,b.components.push(b.timeAxis),b.currentTime=new Sb(b.body,b.options),b.components.push(b.currentTime),b.itemSet=new fo(b.body,b.options),b.components.push(b.itemSet),b.itemsData=null,b.groupsData=null;function V(N,I){w.hasListeners(N)&&w.emit(N,w.getEventProperties(I))}return b.dom.root.onclick=function(N){V("click",N)},b.dom.root.ondblclick=function(N){V("doubleClick",N)},b.dom.root.oncontextmenu=function(N){V("contextmenu",N)},b.dom.root.onmouseover=function(N){V("mouseOver",N)},window.PointerEvent?(b.dom.root.onpointerdown=function(N){V("mouseDown",N)},b.dom.root.onpointermove=function(N){V("mouseMove",N)},b.dom.root.onpointerup=function(N){V("mouseUp",N)}):(b.dom.root.onmousemove=function(N){V("mouseMove",N)},b.dom.root.onmousedown=function(N){V("mouseDown",N)},b.dom.root.onmouseup=function(N){V("mouseUp",N)}),b.initialFitDone=!1,b.on("changed",function(){if(w.itemsData!=null){if(!w.initialFitDone&&!w.options.rollingMode)if(w.initialFitDone=!0,w.options.start!=null||w.options.end!=null){if(w.options.start==null||w.options.end==null)var N=w.getItemRange();var I=w.options.start!=null?w.options.start:N.min,M=w.options.end!=null?w.options.end:N.max;w.setWindow(I,M,{animation:!1})}else w.fit({animation:!1});!w.initialDrawDone&&(w.initialRangeChangeDone||!w.options.start&&!w.options.end||w.options.rollingMode)&&(w.initialDrawDone=!0,w.itemSet.initialDrawDone=!0,w.dom.root.style.visibility="visible",w.dom.loadingScreen.parentNode.removeChild(w.dom.loadingScreen),w.options.onInitialDrawComplete&&ct(function(){return w.options.onInitialDrawComplete()},0))}}),b.on("destroyTimeline",function(){w.destroy()}),o&&b.setOptions(o),b.body.emitter.on("fit",function(N){b._onFit(N),b.redraw()}),s&&b.setGroups(s),n&&b.setItems(n),b._redraw(),b}return ce(t,[{key:"_createConfigurator",value:function(){return new Ob(this,this.dom.container,Oz)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(n){var s=Cb.validate(n,Cz);if(s===!0&&console.log("%cErrors have been found in the supplied options object.",vo),fn.prototype.setOptions.call(this,n),"type"in n&&n.type!==this.options.type){this.options.type=n.type;var o=this.itemsData;if(o){var l=this.getSelection();this.setItems(null),this.setItems(o.rawDS),this.setSelection(l)}}}},{key:"setItems",value:function(n){this.itemsDone=!1;var s;n?Rr(n)?s=wn(n):s=wn(new Ci(n)):s=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=s,this.itemSet&&this.itemSet.setItems(s!=null?s.rawDS:null)}},{key:"setGroups",value:function(n){var s,o=function(d){return d.visible!==!1};n?(re(n)&&(n=new Ci(n)),s=new MH(n,{filter:o})):s=null,this.groupsData!=null&&typeof this.groupsData.setData=="function"&&this.groupsData.setData(null),this.groupsData=s,this.itemSet.setGroups(s)}},{key:"setData",value:function(n){n&&n.groups&&this.setGroups(n.groups),n&&n.items&&this.setItems(n.items)}},{key:"setSelection",value:function(n,s){this.itemSet&&this.itemSet.setSelection(n),s&&s.focus&&this.focus(n,s)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(n,s){if(!(!this.itemsData||n==null)){var o=re(n)?n:[n],l=this.itemsData.get(o),d=null,u=null;if(B(l).call(l,function(F){var A=F.start.valueOf(),V="end"in F?F.end.valueOf():F.start.valueOf();(d===null||A<d)&&(d=A),(u===null||V>u)&&(u=V)}),d!==null&&u!==null){var f=this,p=this.itemSet.items[o[0]],m=this._getScrollTop()*-1,y=null,b=function(A,V,N){var I=em(f,p);if(I!==!1&&(y||(y=I),!(y.itemTop==I.itemTop&&!y.shouldScroll))){y.itemTop!=I.itemTop&&I.shouldScroll&&(y=I,m=f._getScrollTop()*-1);var M=m,H=y.scrollOffset,W=N?H:M+(H-M)*A;f._setScrollTop(-W),V||f._redraw()}},E=function(){var A=em(f,p);A.shouldScroll&&A.itemTop!=y.itemTop&&(f._setScrollTop(-A.scrollOffset),f._redraw())},w=function(){E(),ct(E,100)},S=s&&s.zoom!==void 0?s.zoom:!0,D=(d+u)/2,T=S?(u-d)*1.1:Math.max(this.range.end-this.range.start,(u-d)*1.1),P=s&&s.animation!==void 0?s.animation:!0;P||(y={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(D-T/2,D+T/2,{animation:P},w,b)}}}},{key:"fit",value:function(n,s){var o=n&&n.animation!==void 0?n.animation:!0,l;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(l=this.getDataRange(),this.moveTo(l.min.valueOf(),{animation:o},s)):(l=this.getItemRange(),this.range.setRange(l.min,l.max,{animation:o},s))}},{key:"getItemRange",value:function(){var n=this,s=this.getDataRange(),o=s.min!==null?s.min.valueOf():null,l=s.max!==null?s.max.valueOf():null,d=null,u=null;if(o!=null&&l!=null){var f=l-o;f<=0&&(f=10);var p=f/this.props.center.width,m={},y=0;B(x).call(x,this.itemSet.items,function(P,F){if(P.groupShowing){var A=!0;m[F]=P.redraw(A),y=m[F].length}});var b=y>0;if(b)for(var E=function(F){B(x).call(x,m,function(A){A[F]()})},w=0;w<y;w++)E(w);if(B(x).call(x,this.itemSet.items,function(P){var F=Cd(P),A=Od(P),V,N;n.options.rtl?(V=F-(P.getWidthRight()+10)*p,N=A+(P.getWidthLeft()+10)*p):(V=F-(P.getWidthLeft()+10)*p,N=A+(P.getWidthRight()+10)*p),V<o&&(o=V,d=P),N>l&&(l=N,u=P)}),d&&u){var S=d.getWidthLeft()+10,D=u.getWidthRight()+10,T=this.props.center.width-S-D;T>0&&(this.options.rtl?(o=Cd(d)-D*f/T,l=Od(u)+S*f/T):(o=Cd(d)-S*f/T,l=Od(u)+D*f/T))}}return{min:o!=null?new Date(o):null,max:l!=null?new Date(l):null}}},{key:"getDataRange",value:function(){var n=null,s=null;if(this.itemsData){var o;B(o=this.itemsData).call(o,function(l){var d=x.convert(l.start,"Date").valueOf(),u=x.convert(l.end!=null?l.end:l.start,"Date").valueOf();(n===null||d<n)&&(n=d),(s===null||u>s)&&(s=u)})}return{min:n!=null?new Date(n):null,max:s!=null?new Date(s):null}}},{key:"getEventProperties",value:function(n){var s=n.center?n.center.x:n.clientX,o=n.center?n.center.y:n.clientY,l=this.dom.centerContainer.getBoundingClientRect(),d=this.options.rtl?l.right-s:s-l.left,u=o-l.top,f=this.itemSet.itemFromTarget(n),p=this.itemSet.groupFromTarget(n),m=Tc.customTimeFromTarget(n),y=this.itemSet.options.snap||null,b=this.body.util.getScale(),E=this.body.util.getStep(),w=this._toTime(d),S=y?y(w,b,E):w,D=x.getTarget(n),T=null;return f!=null?T="item":m!=null?T="custom-time":x.hasParent(D,this.timeAxis.dom.foreground)||this.timeAxis2&&x.hasParent(D,this.timeAxis2.dom.foreground)?T="axis":x.hasParent(D,this.itemSet.dom.labelSet)?T="group-label":x.hasParent(D,this.currentTime.bar)?T="current-time":x.hasParent(D,this.dom.center)&&(T="background"),{event:n,item:f?f.id:null,isCluster:f?!!f.isCluster:!1,items:f?f.items||[]:null,group:p?p.groupId:null,customTime:m?m.options.id:null,what:T,pageX:n.srcEvent?n.srcEvent.pageX:n.pageX,pageY:n.srcEvent?n.srcEvent.pageY:n.pageY,x:d,y:u,time:w,snappedTime:S}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(this.options.rollingMode==null&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){fn.prototype._redraw.call(this)}},{key:"_onFit",value:function(n){var s=n.start,o=n.end,l=n.animation;o?this.range.setRange(s,o,{animation:l}):this.moveTo(s.valueOf(),{animation:l})}}]),t}(fn);function Cd(e){return x.convert(e.data.start,"Date").valueOf()}function Od(e){var r=e.data.end!=null?e.data.end:e.data.start;return x.convert(r,"Date").valueOf()}function em(e,r){if(!r.parent)return!1;var t=e.options.rtl?e.props.rightContainer.height:e.props.leftContainer.height,a=e.props.center.height,n=r.parent,s=n.top,o=!0,l=e.timeAxis.options.orientation.axis,d=function(){return l=="bottom"?n.height-r.top-r.height:r.top},u=e._getScrollTop()*-1,f=s+d(),p=r.height;return f<u?s+t<=s+d()+p&&(s+=d()-e.itemSet.options.margin.item.vertical):f+p>u+t?s+=d()+p-t+e.itemSet.options.margin.item.vertical:o=!1,s=Math.min(s,a-t),{shouldScroll:o,scrollOffset:s,itemTop:f}}var Lz=function(){function e(r,t,a,n,s,o){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;if(ue(this,e),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=s,this.majorCharHeight=o,this._start=r,this._end=t,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=l,this.autoScaleStart=a,this.autoScaleEnd=n,this.formattingFunction=d,a||n){var u=this,f=function(m){var y=m-m%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return m%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>.5*(u.magnitudefactor*u.minorSteps[u.minorStepIdx])?y+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:y};a&&(this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx],this._start=f(this._start)),n&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=f(this._end)),this.determineScale()}}return ce(e,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var a=this.majorCharHeight/this.scale,n=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var s=0;n<0&&(s=n);for(var o=!1,l=s;Math.abs(l)<=Math.abs(n);l++){this.magnitudefactor=Math.pow(10,l);for(var d=0;d<this.minorSteps.length;d++){var u=this.magnitudefactor*this.minorSteps[d];if(u>=a){o=!0,this.minorStepIdx=d;break}}if(o===!0)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var a=t.toPrecision(5);return typeof this.formattingFunction=="function"&&(a=this.formattingFunction(t)),typeof a=="number"?"".concat(a):typeof a=="string"?a:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],a=this.getStep(),n=(a-this._start%a)%a,s=this._start+n;this._end-s>1e-5;s+=a)s!=this._start&&t.push({major:this.is_major(s),y:this.convertValue(s),val:this.formatValue(s)});return t}},{key:"followScale",value:function(t){var a=this.minorStepIdx,n=this._start,s=this._end,o=this,l=function(){o.magnitudefactor*=2},d=function(){o.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,a==2||l(),l()):(this.minorStepIdx=2,a==1||d(),d()));for(var u=t.convertValue(0),f=t.getStep()*t.scale,p=!1,m=0;!p&&m++<5;){this.scale=f/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var y=this.containerHeight/this.scale;this._start=n,this._end=this._start+y;var b=this._end*this.scale,E=this.magnitudefactor*this.majorSteps[this.minorStepIdx],w=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var S=u-b;this._end+=S/this.scale,this._start=this._end-y}else this.autoScaleStart?(this._start-=w/this.scale,this._end=this._start+y):(this._start+=E-w/this.scale,this._end=this._start+y);if(!this.autoScaleEnd&&this._end>s+1e-5){d(),p=!1;continue}if(!this.autoScaleStart&&this._start<n-1e-5)if(this.zeroAlign&&n>=0)console.warn("Can't adhere to given 'min' range, due to zeroalign");else{d(),p=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&y<s-n){l(),p=!1;continue}p=!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}}]),e}(),Fz=`
|
1178
|
+
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {
|
1179
|
+
position: absolute;
|
1180
|
+
width: 100%;
|
1181
|
+
height: 0;
|
1182
|
+
border-bottom: 1px solid;
|
1183
|
+
}
|
1184
|
+
|
1185
|
+
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {
|
1186
|
+
border-color: #e5e5e5;
|
1187
|
+
}
|
1188
|
+
|
1189
|
+
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {
|
1190
|
+
border-color: #bfbfbf;
|
1191
|
+
}
|
1192
|
+
|
1193
|
+
|
1194
|
+
.vis-data-axis .vis-y-axis.vis-major {
|
1195
|
+
width: 100%;
|
1196
|
+
position: absolute;
|
1197
|
+
color: #4d4d4d;
|
1198
|
+
white-space: nowrap;
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
.vis-data-axis .vis-y-axis.vis-major.vis-measure {
|
1202
|
+
padding: 0;
|
1203
|
+
margin: 0;
|
1204
|
+
border: 0;
|
1205
|
+
visibility: hidden;
|
1206
|
+
width: auto;
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
|
1210
|
+
.vis-data-axis .vis-y-axis.vis-minor {
|
1211
|
+
position: absolute;
|
1212
|
+
width: 100%;
|
1213
|
+
color: #bebebe;
|
1214
|
+
white-space: nowrap;
|
1215
|
+
}
|
1216
|
+
|
1217
|
+
.vis-data-axis .vis-y-axis.vis-minor.vis-measure {
|
1218
|
+
padding: 0;
|
1219
|
+
margin: 0;
|
1220
|
+
border: 0;
|
1221
|
+
visibility: hidden;
|
1222
|
+
width: auto;
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
.vis-data-axis .vis-y-axis.vis-title {
|
1226
|
+
position: absolute;
|
1227
|
+
color: #4d4d4d;
|
1228
|
+
white-space: nowrap;
|
1229
|
+
bottom: 20px;
|
1230
|
+
text-align: center;
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
.vis-data-axis .vis-y-axis.vis-title.vis-measure {
|
1234
|
+
padding: 0;
|
1235
|
+
margin: 0;
|
1236
|
+
visibility: hidden;
|
1237
|
+
width: auto;
|
1238
|
+
}
|
1239
|
+
|
1240
|
+
.vis-data-axis .vis-y-axis.vis-title.vis-left {
|
1241
|
+
bottom: 0;
|
1242
|
+
-webkit-transform-origin: left top;
|
1243
|
+
-moz-transform-origin: left top;
|
1244
|
+
-ms-transform-origin: left top;
|
1245
|
+
-o-transform-origin: left top;
|
1246
|
+
transform-origin: left bottom;
|
1247
|
+
-webkit-transform: rotate(-90deg);
|
1248
|
+
-moz-transform: rotate(-90deg);
|
1249
|
+
-ms-transform: rotate(-90deg);
|
1250
|
+
-o-transform: rotate(-90deg);
|
1251
|
+
transform: rotate(-90deg);
|
1252
|
+
}
|
1253
|
+
|
1254
|
+
.vis-data-axis .vis-y-axis.vis-title.vis-right {
|
1255
|
+
bottom: 0;
|
1256
|
+
-webkit-transform-origin: right bottom;
|
1257
|
+
-moz-transform-origin: right bottom;
|
1258
|
+
-ms-transform-origin: right bottom;
|
1259
|
+
-o-transform-origin: right bottom;
|
1260
|
+
transform-origin: right bottom;
|
1261
|
+
-webkit-transform: rotate(90deg);
|
1262
|
+
-moz-transform: rotate(90deg);
|
1263
|
+
-ms-transform: rotate(90deg);
|
1264
|
+
-o-transform: rotate(90deg);
|
1265
|
+
transform: rotate(90deg);
|
1266
|
+
}
|
1267
|
+
|
1268
|
+
.vis-legend {
|
1269
|
+
background-color: rgba(247, 252, 255, 0.65);
|
1270
|
+
padding: 5px;
|
1271
|
+
border: 1px solid #b3b3b3;
|
1272
|
+
box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
.vis-legend-text {
|
1276
|
+
/*font-size: 10px;*/
|
1277
|
+
white-space: nowrap;
|
1278
|
+
display: inline-block
|
1279
|
+
}`;kt(Fz);function Yz(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=jz(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
1280
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function jz(e,r){var t;if(e){if(typeof e=="string")return tm(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return tm(e,r)}}function tm(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function Bz(e){var r=Hz();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function Hz(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var rm=function(e){wt(t,e);var r=Bz(t);function t(a,n,s,o){var l;ue(this,t),l=r.call(this),l.id=Ei(),l.body=a,l.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(f){return"".concat(so(f.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(f){return"".concat(so(f.toPrecision(3)))},title:{text:void 0,style:void 0}}},l.linegraphOptions=o,l.linegraphSVG=s,l.props={},l.DOMelements={lines:{},labels:{},title:{}},l.dom={},l.scale=void 0,l.range={start:0,end:0},l.options=x.extend({},l.defaultOptions),l.conversionFactor=1,l.setOptions(n),l.width=Number("".concat(l.options.width).replace("px","")),l.minWidth=l.width,l.height=l.linegraphSVG.getBoundingClientRect().height,l.hidden=!1,l.stepPixels=25,l.zeroCrossing=-1,l.amountOfSteps=-1,l.lineOffset=0,l.master=!0,l.masterAxis=null,l.svgElements={},l.iconsRemoved=!1,l.groups={},l.amountOfGroups=0,l._create(),l.scale==null&&l._redrawLabels(),l.framework={svg:l.svg,svgElements:l.svgElements,options:l.options,groups:l.groups};var d=Ee(l);return l.body.emitter.on("verticalDrag",function(){d.dom.lineContainer.style.top="".concat(d.body.domProps.scrollTop,"px")}),l}return ce(t,[{key:"addGroup",value:function(n,s){this.groups.hasOwnProperty(n)||(this.groups[n]=s),this.amountOfGroups+=1}},{key:"updateGroup",value:function(n,s){this.groups.hasOwnProperty(n)||(this.amountOfGroups+=1),this.groups[n]=s}},{key:"removeGroup",value:function(n){this.groups.hasOwnProperty(n)&&(delete this.groups[n],this.amountOfGroups-=1)}},{key:"setOptions",value:function(n){if(n){var s=!1;this.options.orientation!=n.orientation&&n.orientation!==void 0&&(s=!0);var o=["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"];x.selectiveDeepExtend(o,this.options,n),this.minWidth=Number("".concat(this.options.width).replace("px","")),s===!0&&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(){Kr(this.svgElements);var n,s=this.options.iconWidth,o=15,l=4,d=l+.5*o;this.options.orientation==="left"?n=l:n=this.width-s-l;var u=Ze(this.groups);Ue(u).call(u,function(y,b){return y<b?-1:1});var f=Yz(u),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;this.groups[m].visible===!0&&(this.linegraphOptions.visibility[m]===void 0||this.linegraphOptions.visibility[m]===!0)&&(this.groups[m].getLegend(s,o,this.framework,n,d),d+=o+l)}}catch(y){f.e(y)}finally{f.f()}zt(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(Kr(this.svgElements),zt(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||(this.options.orientation==="left"?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(n,s){this.range.start=n,this.range.end=s}},{key:"redraw",value:function(){var n=!1,s=0;this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px");for(var o in this.groups)this.groups.hasOwnProperty(o)&&this.groups[o].visible===!0&&(this.linegraphOptions.visibility[o]===void 0||this.linegraphOptions.visibility[o]===!0)&&s++;if(this.amountOfGroups===0||s===0)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=this.options.visible===!0?Number("".concat(this.options.width).replace("px","")):0;var l=this.props,d=this.dom.frame;d.className="vis-data-axis",this._calculateCharSize();var u=this.options.orientation,f=this.options.showMinorLabels,p=this.options.showMajorLabels,m=this.body.dom.backgroundHorizontal.offsetWidth;l.minorLabelHeight=f?l.minorCharHeight:0,l.majorLabelHeight=p?l.majorCharHeight:0,l.minorLineWidth=m-this.lineOffset-this.width+2*this.options.minorLinesOffset,l.minorLineHeight=1,l.majorLineWidth=m-this.lineOffset-this.width+2*this.options.majorLinesOffset,l.majorLineHeight=1,u==="left"?(d.style.top="0",d.style.left="0",d.style.bottom="",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(d.style.top="",d.style.bottom="0",d.style.left="0",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),n=this._redrawLabels(),n=this._isResized()||n,this.options.icons===!0?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(u)}return n}},{key:"_redrawLabels",value:function(){var n=this,s=!1;Kr(this.DOMelements.lines),Kr(this.DOMelements.labels);var o=this.options.orientation,l=this.options[o].range!=null?this.options[o].range:{},d=!0;l.max!=null&&(this.range.end=l.max,d=!1);var u=!0;l.min!=null&&(this.range.start=l.min,u=!1),this.scale=new Lz(this.range.start,this.range.end,u,d,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[o].format),this.master===!1&&this.masterAxis!=null?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var f=this.scale.getLines();B(f).call(f,function(y){var b=y.y,E=y.major;n.options.showMinorLabels&&E===!1&&n._redrawLabel(b-2,y.val,o,"vis-y-axis vis-minor",n.props.minorCharHeight),E&&b>=0&&n._redrawLabel(b-2,y.val,o,"vis-y-axis vis-major",n.props.majorCharHeight),n.master===!0&&(E?n._redrawLine(b,o,"vis-grid vis-horizontal vis-major",n.options.majorLinesOffset,n.props.majorLineWidth):n._redrawLine(b,o,"vis-grid vis-horizontal vis-minor",n.options.minorLinesOffset,n.props.minorLineWidth))});var p=0;this.options[o].title!==void 0&&this.options[o].title.text!==void 0&&(p=this.props.titleCharHeight);var m=this.options.icons===!0?Math.max(this.options.iconWidth,p)+this.options.labelOffsetX+15:p+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-m&&this.options.visible===!0?(this.width=this.maxLabelSize+m,this.options.width="".concat(this.width,"px"),zt(this.DOMelements.lines),zt(this.DOMelements.labels),this.redraw(),s=!0):this.maxLabelSize<this.width-m&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+m),this.options.width="".concat(this.width,"px"),zt(this.DOMelements.lines),zt(this.DOMelements.labels),this.redraw(),s=!0):(zt(this.DOMelements.lines),zt(this.DOMelements.labels),s=!1),s}},{key:"convertValue",value:function(n){return this.scale.convertValue(n)}},{key:"screenToValue",value:function(n){return this.scale.screenToValue(n)}},{key:"_redrawLabel",value:function(n,s,o,l,d){var u=Jl("div",this.DOMelements.labels,this.dom.frame);u.className=l,u.innerHTML=x.xss(s),o==="left"?(u.style.left="-".concat(this.options.labelOffsetX,"px"),u.style.textAlign="right"):(u.style.right="-".concat(this.options.labelOffsetX,"px"),u.style.textAlign="left"),u.style.top="".concat(n-.5*d+this.options.labelOffsetY,"px"),s+="";var f=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<s.length*f&&(this.maxLabelSize=s.length*f)}},{key:"_redrawLine",value:function(n,s,o,l,d){if(this.master===!0){var u=Jl("div",this.DOMelements.lines,this.dom.lineContainer);u.className=o,u.innerHTML="",s==="left"?u.style.left="".concat(this.width-l,"px"):u.style.right="".concat(this.width-l,"px"),u.style.width="".concat(d,"px"),u.style.top="".concat(n,"px")}}},{key:"_redrawTitle",value:function(n){if(Kr(this.DOMelements.title),this.options[n].title!==void 0&&this.options[n].title.text!==void 0){var s=Jl("div",this.DOMelements.title,this.dom.frame);s.className="vis-y-axis vis-title vis-".concat(n),s.innerHTML=x.xss(this.options[n].title.text),this.options[n].title.style!==void 0&&x.addCssText(s,this.options[n].title.style),n==="left"?s.style.left="".concat(this.props.titleCharHeight,"px"):s.style.right="".concat(this.props.titleCharHeight,"px"),s.style.width="".concat(this.height,"px")}zt(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var n=document.createTextNode("0"),s=document.createElement("div");s.className="vis-y-axis vis-minor vis-measure",s.appendChild(n),this.dom.frame.appendChild(s),this.props.minorCharHeight=s.clientHeight,this.props.minorCharWidth=s.clientWidth,this.dom.frame.removeChild(s)}if(!("majorCharHeight"in this.props)){var o=document.createTextNode("0"),l=document.createElement("div");l.className="vis-y-axis vis-major vis-measure",l.appendChild(o),this.dom.frame.appendChild(l),this.props.majorCharHeight=l.clientHeight,this.props.majorCharWidth=l.clientWidth,this.dom.frame.removeChild(l)}if(!("titleCharHeight"in this.props)){var d=document.createTextNode("0"),u=document.createElement("div");u.className="vis-y-axis vis-title vis-measure",u.appendChild(d),this.dom.frame.appendChild(u),this.props.titleCharHeight=u.clientHeight,this.props.titleCharWidth=u.clientWidth,this.dom.frame.removeChild(u)}}}]),t}(li);function Ua(e,r){}Ua.draw=function(e,r,t,a){a=a||0;for(var n=Wz(t,r),s=0;s<e.length;s++)if(!n)_n(e[s].screen_x+a,e[s].screen_y,xu(r),t.svgElements,t.svg,e[s].label);else{var o=n(e[s],r);(o===!0||ee(o)==="object")&&_n(e[s].screen_x+a,e[s].screen_y,xu(r,o),t.svgElements,t.svg,e[s].label)}};Ua.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l=ar("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",r),l.setAttributeNS(null,"y",t-o),l.setAttributeNS(null,"width",a),l.setAttributeNS(null,"height",2*o),l.setAttributeNS(null,"class","vis-outline"),_n(r+.5*a,t,xu(e),s.svgElements,s.svg)};function xu(e,r){return r=typeof r>"u"?{}:r,{style:r.style||e.options.drawPoints.style,styles:r.styles||e.options.drawPoints.styles,size:r.size||e.options.drawPoints.size,className:r.className||e.className}}function Wz(e,r){var t=void 0;return e.options&&e.options.drawPoints&&e.options.drawPoints.onRender&&typeof e.options.drawPoints.onRender=="function"&&(t=e.options.drawPoints.onRender),r.group.options&&r.group.options.drawPoints&&r.group.options.drawPoints.onRender&&typeof r.group.options.drawPoints.onRender=="function"&&(t=r.group.options.drawPoints.onRender),t}function gt(e,r){}gt.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l=ar("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",r),l.setAttributeNS(null,"y",t-o),l.setAttributeNS(null,"width",a),l.setAttributeNS(null,"height",2*o),l.setAttributeNS(null,"class","vis-outline");var d=Math.round(.3*a),u=e.options.barChart.width,f=u/d,p=Math.round(.4*n),m=Math.round(.75*n),y=Math.round((a-2*d)/3);if(nu(r+.5*d+y,t+o-p-1,d,p,e.className+" vis-bar",s.svgElements,s.svg,e.style),nu(r+1.5*d+y+2,t+o-m-1,d,m,e.className+" vis-bar",s.svgElements,s.svg,e.style),e.options.drawPoints.enabled==!0){var b={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size/f,className:e.className};_n(r+.5*d+y,t+o-p-1,b,s.svgElements,s.svg),_n(r+1.5*d+y+2,t+o-m-1,b,s.svgElements,s.svg)}};gt.draw=function(e,r,t){var a=[],n={},s,o,l,d,u,f,p=0;for(u=0;u<e.length;u++)if(d=t.groups[e[u]],d.options.style==="bar"&&d.visible===!0&&(t.options.groups.visibility[e[u]]===void 0||t.options.groups.visibility[e[u]]===!0))for(f=0;f<r[e[u]].length;f++)a.push({screen_x:r[e[u]][f].screen_x,screen_end:r[e[u]][f].screen_end,screen_y:r[e[u]][f].screen_y,x:r[e[u]][f].x,end:r[e[u]][f].end,y:r[e[u]][f].y,groupId:e[u],label:r[e[u]][f].label}),p+=1;if(p!==0)for(Ue(a).call(a,function(D,T){return D.screen_x===T.screen_x?D.groupId<T.groupId?-1:1:D.screen_x-T.screen_x}),gt._getDataIntersections(n,a),u=0;u<a.length;u++){d=t.groups[a[u].groupId];var m=d.options.barChart.minWidth!=null?d.options.barChart.minWidth:.1*d.options.barChart.width;o=a[u].screen_x;var y=0;if(n[o]===void 0)u+1<a.length&&(s=Math.abs(a[u+1].screen_x-o)),l=gt._getSafeDrawData(s,d,m);else{var b=u+(n[o].amount-n[o].resolved);b<a.length&&(s=Math.abs(a[b].screen_x-o)),l=gt._getSafeDrawData(s,d,m),n[o].resolved+=1,d.options.stack===!0&&d.options.excludeFromStacking!==!0?a[u].screen_y<d.zeroPosition?(y=n[o].accumulatedNegative,n[o].accumulatedNegative+=d.zeroPosition-a[u].screen_y):(y=n[o].accumulatedPositive,n[o].accumulatedPositive+=d.zeroPosition-a[u].screen_y):d.options.barChart.sideBySide===!0&&(l.width=l.width/n[o].amount,l.offset+=n[o].resolved*l.width-.5*l.width*(n[o].amount+1))}var E=l.width,w=a[u].screen_x;if(a[u].screen_end!=null?(E=a[u].screen_end-a[u].screen_x,w+=E*.5):w+=l.offset,nu(w,a[u].screen_y-y,E,d.zeroPosition-a[u].screen_y,d.className+" vis-bar",t.svgElements,t.svg,d.style),d.options.drawPoints.enabled===!0){var S={screen_x:a[u].screen_x,screen_y:a[u].screen_y-y,x:a[u].x,y:a[u].y,groupId:a[u].groupId,label:a[u].label};Ua.draw([S],d,t,l.offset)}}};gt._getDataIntersections=function(e,r){for(var t,a=0;a<r.length;a++)a+1<r.length&&(t=Math.abs(r[a+1].screen_x-r[a].screen_x)),a>0&&(t=Math.min(t,Math.abs(r[a-1].screen_x-r[a].screen_x))),t===0&&(e[r[a].screen_x]===void 0&&(e[r[a].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[r[a].screen_x].amount+=1)};gt._getSafeDrawData=function(e,r,t){var a,n;return e<r.options.barChart.width&&e>0?(a=e<t?t:e,n=0,r.options.barChart.align==="left"?n-=.5*e:r.options.barChart.align==="right"&&(n+=.5*e)):(a=r.options.barChart.width,n=0,r.options.barChart.align==="left"?n-=.5*r.options.barChart.width:r.options.barChart.align==="right"&&(n+=.5*r.options.barChart.width)),{width:a,offset:n}};gt.getStackedYRange=function(e,r,t,a,n){if(e.length>0){Ue(e).call(e,function(o,l){return o.screen_x===l.screen_x?o.groupId<l.groupId?-1:1:o.screen_x-l.screen_x});var s={};gt._getDataIntersections(s,e),r[a]=gt._getStackedYRange(s,e),r[a].yAxisOrientation=n,t.push(a)}};gt._getStackedYRange=function(e,r){for(var t,a=r[0].screen_y,n=r[0].screen_y,s=0;s<r.length;s++)t=r[s].screen_x,e[t]===void 0?(a=a>r[s].screen_y?r[s].screen_y:a,n=n<r[s].screen_y?r[s].screen_y:n):r[s].screen_y<0?e[t].accumulatedNegative+=r[s].screen_y:e[t].accumulatedPositive+=r[s].screen_y;for(var o in e)e.hasOwnProperty(o)&&(a=a>e[o].accumulatedNegative?e[o].accumulatedNegative:a,a=a>e[o].accumulatedPositive?e[o].accumulatedPositive:a,n=n<e[o].accumulatedNegative?e[o].accumulatedNegative:n,n=n<e[o].accumulatedPositive?e[o].accumulatedPositive:n);return{min:a,max:n}};function at(e,r){}at.calcPath=function(e,r){if(e!=null&&e.length>0){var t=[];return r.options.interpolation.enabled==!0?t=at._catmullRom(e,r):t=at._linear(e),t}};at.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l,d,u=ar("rect",s.svgElements,s.svg);if(u.setAttributeNS(null,"x",r),u.setAttributeNS(null,"y",t-o),u.setAttributeNS(null,"width",a),u.setAttributeNS(null,"height",2*o),u.setAttributeNS(null,"class","vis-outline"),l=ar("path",s.svgElements,s.svg),l.setAttributeNS(null,"class",e.className),e.style!==void 0&&l.setAttributeNS(null,"style",e.style),l.setAttributeNS(null,"d","M"+r+","+t+" L"+(r+a)+","+t),e.options.shaded.enabled==!0&&(d=ar("path",s.svgElements,s.svg),e.options.shaded.orientation=="top"?d.setAttributeNS(null,"d","M"+r+", "+(t-o)+"L"+r+","+t+" L"+(r+a)+","+t+" L"+(r+a)+","+(t-o)):d.setAttributeNS(null,"d","M"+r+","+t+" L"+r+","+(t+o)+" L"+(r+a)+","+(t+o)+"L"+(r+a)+","+t),d.setAttributeNS(null,"class",e.className+" vis-icon-fill"),e.options.shaded.style!==void 0&&e.options.shaded.style!==""&&d.setAttributeNS(null,"style",e.options.shaded.style)),e.options.drawPoints.enabled==!0){var f={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className};_n(r+.5*a,t,f,s.svgElements,s.svg)}};at.drawShading=function(e,r,t,a){if(r.options.shaded.enabled==!0){var n=Number(a.svg.style.height.replace("px","")),s=ar("path",a.svgElements,a.svg),o="L";r.options.interpolation.enabled==!0&&(o="C");var l,d=0;r.options.shaded.orientation=="top"?d=0:r.options.shaded.orientation=="bottom"?d=n:d=Math.min(Math.max(0,r.zeroPosition),n),r.options.shaded.orientation=="group"&&t!=null&&t!=null?l="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1)+" L"+t[t.length-1][0]+","+t[t.length-1][1]+" "+this.serializePath(t,o,!0)+t[0][0]+","+t[0][1]+" Z":l="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1)+" V"+d+" H"+e[0][0]+" Z",s.setAttributeNS(null,"class",r.className+" vis-fill"),r.options.shaded.style!==void 0&&s.setAttributeNS(null,"style",r.options.shaded.style),s.setAttributeNS(null,"d",l)}};at.draw=function(e,r,t){if(e!=null&&e!=null){var a=ar("path",t.svgElements,t.svg);a.setAttributeNS(null,"class",r.className),r.style!==void 0&&a.setAttributeNS(null,"style",r.style);var n="L";r.options.interpolation.enabled==!0&&(n="C"),a.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,n,!1))}};at.serializePath=function(e,r,t){if(e.length<2)return"";var a=r,n;if(t)for(n=e.length-2;n>0;n--)a+=e[n][0]+","+e[n][1]+" ";else for(n=1;n<e.length;n++)a+=e[n][0]+","+e[n][1]+" ";return a};at._catmullRomUniform=function(e){var r,t,a,n,s,o,l=[];l.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var d=1/6,u=e.length,f=0;f<u-1;f++)r=f==0?e[0]:e[f-1],t=e[f],a=e[f+1],n=f+2<u?e[f+2]:a,s={screen_x:(-r.screen_x+6*t.screen_x+a.screen_x)*d,screen_y:(-r.screen_y+6*t.screen_y+a.screen_y)*d},o={screen_x:(t.screen_x+6*a.screen_x-n.screen_x)*d,screen_y:(t.screen_y+6*a.screen_y-n.screen_y)*d},l.push([s.screen_x,s.screen_y]),l.push([o.screen_x,o.screen_y]),l.push([a.screen_x,a.screen_y]);return l};at._catmullRom=function(e,r){var t=r.options.interpolation.alpha;if(t==0||t===void 0)return this._catmullRomUniform(e);var a,n,s,o,l,d,u,f,p,m,y,b,E,w,S,D,T,P,F,A=[];A.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var V=e.length,N=0;N<V-1;N++)a=N==0?e[0]:e[N-1],n=e[N],s=e[N+1],o=N+2<V?e[N+2]:s,u=Math.sqrt(Math.pow(a.screen_x-n.screen_x,2)+Math.pow(a.screen_y-n.screen_y,2)),f=Math.sqrt(Math.pow(n.screen_x-s.screen_x,2)+Math.pow(n.screen_y-s.screen_y,2)),p=Math.sqrt(Math.pow(s.screen_x-o.screen_x,2)+Math.pow(s.screen_y-o.screen_y,2)),w=Math.pow(p,t),D=Math.pow(p,2*t),S=Math.pow(f,t),T=Math.pow(f,2*t),F=Math.pow(u,t),P=Math.pow(u,2*t),m=2*P+3*F*S+T,y=2*D+3*w*S+T,b=3*F*(F+S),b>0&&(b=1/b),E=3*w*(w+S),E>0&&(E=1/E),l={screen_x:(-T*a.screen_x+m*n.screen_x+P*s.screen_x)*b,screen_y:(-T*a.screen_y+m*n.screen_y+P*s.screen_y)*b},d={screen_x:(D*n.screen_x+y*s.screen_x-T*o.screen_x)*E,screen_y:(D*n.screen_y+y*s.screen_y-T*o.screen_y)*E},l.screen_x==0&&l.screen_y==0&&(l=n),d.screen_x==0&&d.screen_y==0&&(d=s),A.push([l.screen_x,l.screen_y]),A.push([d.screen_x,d.screen_y]),A.push([s.screen_x,s.screen_y]);return A};at._linear=function(e){for(var r=[],t=0;t<e.length;t++)r.push([e[t].screen_x,e[t].screen_y]);return r};function di(e,r,t,a){this.id=r;var n=["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"];this.options=x.selectiveBridgeObject(n,t),this.usingDefaultStyle=e.className===void 0,this.groupsUsingDefaultStyles=a,this.zeroPosition=0,this.update(e),this.usingDefaultStyle==!0&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=e.visible===void 0?!0:e.visible}di.prototype.setItems=function(e){e!=null?(this.itemsData=e,Ue(this.options)==!0&&x.insertSort(this.itemsData,function(r,t){return r.x>t.x?1:-1})):this.itemsData=[]};di.prototype.getItems=function(){return this.itemsData};di.prototype.setZeroPosition=function(e){this.zeroPosition=e};di.prototype.setOptions=function(e){if(e!==void 0){var r=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];x.selectiveDeepExtend(r,this.options,e),typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),x.mergeOptions(this.options,e,"interpolation"),x.mergeOptions(this.options,e,"drawPoints"),x.mergeOptions(this.options,e,"shaded"),e.interpolation&&ee(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}};di.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=e.visible===void 0?!0:e.visible,this.style=e.style,this.setOptions(e.options)};di.prototype.getLegend=function(e,r,t,a,n){if(t==null||t==null){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");t={svg:s,svgElements:{},options:this.options,groups:[this]}}switch((a==null||a==null)&&(a=0),(n==null||n==null)&&(n=.5*r),this.options.style){case"line":at.drawIcon(this,a,n,e,r,t);break;case"points":case"point":Ua.drawIcon(this,a,n,e,r,t);break;case"bar":gt.drawIcon(this,a,n,e,r,t);break}return{icon:t.svg,label:this.content,orientation:this.options.yAxisOrientation}};di.prototype.getYRange=function(e){for(var r=e[0].y,t=e[0].y,a=0;a<e.length;a++)r=r>e[a].y?e[a].y:r,t=t<e[a].y?e[a].y:t;return{min:r,max:t,yAxisOrientation:this.options.yAxisOrientation}};function Bt(e,r,t,a){this.body=e,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=t,this.options=x.extend({},this.defaultOptions),this.linegraphOptions=a,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(r)}Bt.prototype=new li;Bt.prototype.clear=function(){this.groups={},this.amountOfGroups=0};Bt.prototype.addGroup=function(e,r){r.options.excludeFromLegend!=!0&&(this.groups.hasOwnProperty(e)||(this.groups[e]=r),this.amountOfGroups+=1)};Bt.prototype.updateGroup=function(e,r){this.groups[e]=r};Bt.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)};Bt.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)};Bt.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};Bt.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};Bt.prototype.setOptions=function(e){var r=["enabled","orientation","icons","left","right"];x.selectiveDeepExtend(r,this.options,e)};Bt.prototype.redraw=function(){var e=0,r=Ze(this.groups);Ue(r).call(r,function(o,l){return o<l?-1:1});for(var t=0;t<r.length;t++){var a=r[t];this.groups[a].visible==!0&&(this.linegraphOptions.visibility[a]===void 0||this.linegraphOptions.visibility[a]==!0)&&e++}if(this.options[this.side].visible==!1||this.amountOfGroups==0||this.options.enabled==!1||e==0)this.hide();else{if(this.show(),this.options[this.side].position=="top-left"||this.options[this.side].position=="bottom-left"?(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=""),this.options[this.side].position=="top-left"||this.options[this.side].position=="top-right")this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var n=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+n+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}this.options.icons==!1?(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 s="";for(t=0;t<r.length;t++)a=r[t],this.groups[a].visible==!0&&(this.linegraphOptions.visibility[a]===void 0||this.linegraphOptions.visibility[a]==!0)&&(s+=this.groups[a].content+"<br />");this.dom.textArea.innerHTML=x.xss(s),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}};Bt.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=Ze(this.groups);Ue(e).call(e,function(u,f){return u<f?-1:1}),UL(this.svgElements);var r=window.getComputedStyle(this.dom.frame).paddingTop,t=Number(r.replace("px","")),a=t,n=this.options.iconSize,s=.75*this.options.iconSize,o=t+.5*s+3;this.svg.style.width=n+5+t+"px";for(var l=0;l<e.length;l++){var d=e[l];this.groups[d].visible==!0&&(this.linegraphOptions.visibility[d]===void 0||this.linegraphOptions.visibility[d]==!0)&&(this.groups[d].getLegend(n,s,this.framework,a,o),o+=s+this.options.iconSpacing)}}};var po="__ungrouped__";function De(e,r){this.id=Ei(),this.body=e,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=x.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 t=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(n,s,o){t._onAdd(s.items)},update:function(n,s,o){t._onUpdate(s.items)},remove:function(n,s,o){t._onRemove(s.items)}},this.groupListeners={add:function(n,s,o){t._onAddGroups(s.items)},update:function(n,s,o){t._onUpdateGroups(s.items)},remove:function(n,s,o){t._onRemoveGroups(s.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(r),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){t.svg.style.left=x.option.asSize(-t.props.width),t.forceGraphUpdate=!0,t.redraw.call(t)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}De.prototype=new li;De.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,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",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new rm(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new rm(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new Bt(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new Bt(this.body,this.options.legend,"right",this.options.groups),this.show()};De.prototype.setOptions=function(e){if(e){var r=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];e.graphHeight===void 0&&e.height!==void 0?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):this.body.domProps.centerContainer.height!==void 0&&e.graphHeight!==void 0&&Lt((e.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),x.selectiveDeepExtend(r,this.options,e),x.mergeOptions(this.options,e,"interpolation"),x.mergeOptions(this.options,e,"drawPoints"),x.mergeOptions(this.options,e,"shaded"),x.mergeOptions(this.options,e,"legend"),e.interpolation&&ee(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&e.dataAxis!==void 0&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&e.legend!==void 0&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(po)&&this.groups[po].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))};De.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};De.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};De.prototype.setItems=function(e){var r=this,t,a=this.itemsData;if(!e)this.itemsData=null;else if(Rr(e))this.itemsData=wn(e);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(a&&(B(x).call(x,this.itemListeners,function(s,o){a.off(o,s)}),a.dispose(),t=a.getIds(),this._onRemove(t)),this.itemsData){var n=this.id;B(x).call(x,this.itemListeners,function(s,o){r.itemsData.on(o,s,n)}),t=this.itemsData.getIds(),this._onAdd(t)}};De.prototype.setGroups=function(e){var r=this,t;if(this.groupsData){B(x).call(x,this.groupListeners,function(s,o){r.groupsData.off(o,s)}),t=this.groupsData.getIds(),this.groupsData=null;for(var a=0;a<t.length;a++)this._removeGroup(t[a])}if(!e)this.groupsData=null;else if(Rr(e))this.groupsData=e;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var n=this.id;B(x).call(x,this.groupListeners,function(s,o){r.groupsData.on(o,s,n)}),t=this.groupsData.getIds(),this._onAddGroups(t)}};De.prototype._onUpdate=function(e){this._updateAllGroupData(e)};De.prototype._onAdd=function(e){this._onUpdate(e)};De.prototype._onRemove=function(e){this._onUpdate(e)};De.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)};De.prototype._onAddGroups=function(e){this._onUpdateGroups(e)};De.prototype._onRemoveGroups=function(e){for(var r=0;r<e.length;r++)this._removeGroup(e[r]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})};De.prototype._removeGroup=function(e){this.groups.hasOwnProperty(e)&&(this.groups[e].options.yAxisOrientation=="right"?(this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e),this.legendLeft.redraw()),delete this.groups[e])};De.prototype._updateGroup=function(e,r){this.groups.hasOwnProperty(r)?(this.groups[r].update(e),this.groups[r].options.yAxisOrientation=="right"?(this.yAxisRight.updateGroup(r,this.groups[r]),this.legendRight.updateGroup(r,this.groups[r]),this.yAxisLeft.removeGroup(r),this.legendLeft.removeGroup(r)):(this.yAxisLeft.updateGroup(r,this.groups[r]),this.legendLeft.updateGroup(r,this.groups[r]),this.yAxisRight.removeGroup(r),this.legendRight.removeGroup(r))):(this.groups[r]=new di(e,r,this.options,this.groupsUsingDefaultStyles),this.groups[r].options.yAxisOrientation=="right"?(this.yAxisRight.addGroup(r,this.groups[r]),this.legendRight.addGroup(r,this.groups[r])):(this.yAxisLeft.addGroup(r,this.groups[r]),this.legendLeft.addGroup(r,this.groups[r]))),this.legendLeft.redraw(),this.legendRight.redraw()};De.prototype._updateAllGroupData=function(e,r){if(this.itemsData!=null){var t={},a=this.itemsData.get(),n=this.itemsData.idProp,s={};e&&ye(e).call(e,function(w){s[w]=w});for(var o={},l=0;l<a.length;l++){var d=a[l],u=d.group;u==null&&(u=po),o.hasOwnProperty(u)?o[u]++:o[u]=1}var f={};if(!r&&e){for(u in this.groups)if(this.groups.hasOwnProperty(u)){E=this.groups[u];var p=E.getItems();t[u]=J(p).call(p,function(w){return f[w[n]]=w[n],w[n]!==s[w[n]]});var m=o[u];o[u]-=t[u].length,t[u].length<m&&(t[u][m-1]={})}}for(l=0;l<a.length;l++)if(d=a[l],u=d.group,u==null&&(u=po),!(!r&&e&&d[n]!==s[d[n]]&&f.hasOwnProperty(d[n]))){t.hasOwnProperty(u)||(t[u]=new Array(o[u]));var y=x.bridgeObject(d);y.x=x.convert(d.x,"Date"),y.end=x.convert(d.end,"Date"),y.orginalY=d.y,y.y=Number(d.y),y[n]=d[n];var b=t[u].length-o[u]--;t[u][b]=y}for(u in this.groups)this.groups.hasOwnProperty(u)&&(t.hasOwnProperty(u)||(t[u]=new Array(0)));for(u in t)if(t.hasOwnProperty(u))if(t[u].length==0)this.groups.hasOwnProperty(u)&&this._removeGroup(u);else{var E=void 0;this.groupsData!=null&&(E=this.groupsData.get(u)),E==null&&(E={id:u,content:this.options.defaultGroup+u}),this._updateGroup(E,u),this.groups[u].setItems(t[u])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}};De.prototype.redraw=function(){var e=!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,e=this._isResized()||e;var r=this.body.range.end-this.body.range.start,t=r!=this.lastVisibleInterval;if(this.lastVisibleInterval=r,e==!0){var a;this.svg.style.width=x.option.asSize(3*this.props.width),this.svg.style.left=x.option.asSize(-this.props.width),(Se(a=this.options.height+"").call(a,"%")!=-1||this.updateSVGheightOnResize==!0)&&(this.updateSVGheight=!0)}if(this.updateSVGheight==!0?(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",e==!0||t==!0||this.abortedGraphUpdate==!0||this.forceGraphUpdate==!0)e=this._updateGraph()||e,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(this.lastStart!=0){var n=this.body.range.start-this.lastStart,s=this.body.range.end-this.body.range.start;if(this.props.width!=0){var o=this.props.width/s,l=n*o;this.svg.style.left=-this.props.width-l+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),e};De.prototype._getSortedGroupIds=function(){var e=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var t=this.groups[r];t.visible==!0&&(this.options.groups.visibility[r]===void 0||this.options.groups.visibility[r]==!0)&&e.push({id:r,zIndex:t.options.zIndex})}x.insertSort(e,function(s,o){var l=s.zIndex,d=o.zIndex;return l===void 0&&(l=0),d===void 0&&(d=0),l==d?0:l<d?-1:1});for(var a=new Array(e.length),n=0;n<e.length;n++)a[n]=e[n].id;return a};De.prototype._updateGraph=function(){if(Kr(this.svgElements),this.props.width!=0&&this.itemsData!=null){var e,r,t={},a=!1,n=this.body.util.toGlobalTime(-this.body.domProps.root.width),s=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(o.length>0){var l={};for(this._getRelevantData(o,l,n,s),this._applySampling(o,l),r=0;r<o.length;r++)this._convertXcoordinates(l[o[r]]);if(this._getYRanges(o,l,t),a=this._updateYAxis(o,t),a==!0)return zt(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var d=void 0;for(r=0;r<o.length;r++)e=this.groups[o[r]],this.options.stack===!0&&this.options.style==="line"&&(e.options.excludeFromStacking==null||!e.options.excludeFromStacking)&&(d!=null&&(this._stack(l[e.id],l[d.id]),e.options.shaded.enabled==!0&&e.options.shaded.orientation!=="group"&&(e.options.shaded.orientation=="top"&&d.options.shaded.orientation!=="group"?(d.options.shaded.orientation="group",d.options.shaded.groupId=e.id):(e.options.shaded.orientation="group",e.options.shaded.groupId=d.id))),d=e),this._convertYcoordinates(l[o[r]],e);var u={};for(r=0;r<o.length;r++)if(e=this.groups[o[r]],e.options.style==="line"&&e.options.shaded.enabled==!0){var f=l[o[r]];if(f==null||f.length==0)continue;if(u.hasOwnProperty(o[r])||(u[o[r]]=at.calcPath(f,e)),e.options.shaded.orientation==="group"){var p=e.options.shaded.groupId;if(Se(o).call(o,p)===-1){console.log(e.id+": Unknown shading group target given:"+p);continue}u.hasOwnProperty(p)||(u[p]=at.calcPath(l[p],this.groups[p])),at.drawShading(u[o[r]],e,u[p],this.framework)}else at.drawShading(u[o[r]],e,void 0,this.framework)}for(gt.draw(o,l,this.framework),r=0;r<o.length;r++)if(e=this.groups[o[r]],l[o[r]].length>0)switch(e.options.style){case"line":u.hasOwnProperty(o[r])||(u[o[r]]=at.calcPath(l[o[r]],e)),at.draw(u[o[r]],e,this.framework);case"point":case"points":(e.options.style=="point"||e.options.style=="points"||e.options.drawPoints.enabled==!0)&&Ua.draw(l[o[r]],e,this.framework);break}}}return zt(this.svgElements),!1};De.prototype._stack=function(e,r){var t,a,n,s,o;t=0;for(var l=0;l<e.length;l++){s=void 0,o=void 0;for(var d=t;d<r.length;d++)if(r[d].x===e[l].x){s=r[d],o=r[d],t=d;break}else if(r[d].x>e[l].x){o=r[d],d==0?s=o:s=r[d-1],t=d;break}o===void 0&&(s=r[r.length-1],o=r[r.length-1]),a=o.x-s.x,n=o.y-s.y,a==0?e[l].y=e[l].orginalY+o.y:e[l].y=e[l].orginalY+n/a*(e[l].x-s.x)+s.y}};De.prototype._getRelevantData=function(e,r,t,a){var n,s,o,l;if(e.length>0)for(s=0;s<e.length;s++){n=this.groups[e[s]];var d=n.getItems();if(Ue(n.options)==!0){var u=function(b,E){return b.getTime()==E.getTime()?0:b<E?-1:1},f=Math.max(0,x.binarySearchValue(d,t,"x","before",u)),p=Math.min(d.length,x.binarySearchValue(d,a,"x","after",u)+1);p<=0&&(p=d.length);var m=new Array(p-f);for(o=f;o<p;o++)l=n.itemsData[o],m[o-f]=l;r[e[s]]=m}else r[e[s]]=n.itemsData}};De.prototype._applySampling=function(e,r){var t;if(e.length>0){for(var a=0;a<e.length;a++)if(t=this.groups[e[a]],t.options.sampling==!0){var n=r[e[a]];if(n.length>0){var s=1,o=n.length,l=this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x),d=o/l;s=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(d)));for(var u=new Array(o),f=0;f<o;f+=s){var p=Math.round(f/s);u[p]=n[f]}r[e[a]]=pt(u).call(u,0,Math.round(o/s))}}}};De.prototype._getYRanges=function(e,r,t){var a,n,s,o=[],l=[],d;if(e.length>0){for(s=0;s<e.length;s++)a=r[e[s]],d=this.groups[e[s]].options,a.length>0&&(n=this.groups[e[s]],d.stack===!0&&d.style==="bar"?d.yAxisOrientation==="left"?o=Ne(o).call(o,a):l=Ne(l).call(l,a):t[e[s]]=n.getYRange(a,e[s]));gt.getStackedYRange(o,t,e,"__barStackLeft","left"),gt.getStackedYRange(l,t,e,"__barStackRight","right")}};De.prototype._updateYAxis=function(e,r){var t=!1,a=!1,n=!1,s=1e9,o=1e9,l=-1e9,d=-1e9,u,f;if(e.length>0){for(var p=0;p<e.length;p++){var m=this.groups[e[p]];m&&m.options.yAxisOrientation!="right"?(a=!0,s=1e9,l=-1e9):m&&m.options.yAxisOrientation&&(n=!0,o=1e9,d=-1e9)}for(p=0;p<e.length;p++)r.hasOwnProperty(e[p])&&r[e[p]].ignore!==!0&&(u=r[e[p]].min,f=r[e[p]].max,r[e[p]].yAxisOrientation!="right"?(a=!0,s=s>u?u:s,l=l<f?f:l):(n=!0,o=o>u?u:o,d=d<f?f:d));a==!0&&this.yAxisLeft.setRange(s,l),n==!0&&this.yAxisRight.setRange(o,d)}t=this._toggleAxisVisiblity(a,this.yAxisLeft)||t,t=this._toggleAxisVisiblity(n,this.yAxisRight)||t,n==!0&&a==!0?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!a,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==!1?(n==!0?this.yAxisLeft.lineOffset=this.yAxisRight.width:this.yAxisLeft.lineOffset=0,t=this.yAxisLeft.redraw()||t,t=this.yAxisRight.redraw()||t):t=this.yAxisRight.redraw()||t;var y=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(p=0;p<y.length;p++)Se(e).call(e,y[p])!=-1&&pt(e).call(e,Se(e).call(e,y[p]),1);return t};De.prototype._toggleAxisVisiblity=function(e,r){var t=!1;return e==!1?r.dom.frame.parentNode&&r.hidden==!1&&(r.hide(),t=!0):!r.dom.frame.parentNode&&r.hidden==!0&&(r.show(),t=!0),t};De.prototype._convertXcoordinates=function(e){for(var r=this.body.util.toScreen,t=0;t<e.length;t++)e[t].screen_x=r(e[t].x)+this.props.width,e[t].screen_y=e[t].y,e[t].end!=null?e[t].screen_end=r(e[t].end)+this.props.width:e[t].screen_end=void 0};De.prototype._convertYcoordinates=function(e,r){var t=this.yAxisLeft,a=Number(this.svg.style.height.replace("px",""));r.options.yAxisOrientation=="right"&&(t=this.yAxisRight);for(var n=0;n<e.length;n++)e[n].screen_y=Math.round(t.convertValue(e[n].y));r.setZeroPosition(Math.min(a,t.convertValue(0)))};var se="string",pe="boolean",xe="number",Gz="array",tn="date",Re="object",zz="dom",rn="moment",im="any",Uz={configure:{enabled:{boolean:pe},filter:{boolean:pe,function:"function"},container:{dom:zz},__type__:{object:Re,boolean:pe,function:"function"}},alignCurrentTime:{string:se,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:se},sort:{boolean:pe},sampling:{boolean:pe},stack:{boolean:pe},graphHeight:{string:se,number:xe},shaded:{enabled:{boolean:pe},orientation:{string:["bottom","top","zero","group"]},groupId:{object:Re},__type__:{boolean:pe,object:Re}},style:{string:["line","bar","points"]},barChart:{width:{number:xe},minWidth:{number:xe},sideBySide:{boolean:pe},align:{string:["left","center","right"]},__type__:{object:Re}},interpolation:{enabled:{boolean:pe},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:xe},__type__:{object:Re,boolean:pe}},drawPoints:{enabled:{boolean:pe},onRender:{function:"function"},size:{number:xe},style:{string:["square","circle"]},__type__:{object:Re,boolean:pe,function:"function"}},dataAxis:{showMinorLabels:{boolean:pe},showMajorLabels:{boolean:pe},showWeekScale:{boolean:pe},icons:{boolean:pe},width:{string:se,number:xe},visible:{boolean:pe},alignZeros:{boolean:pe},left:{range:{min:{number:xe,undefined:"undefined"},max:{number:xe,undefined:"undefined"},__type__:{object:Re}},format:{function:"function"},title:{text:{string:se,number:xe,undefined:"undefined"},style:{string:se,undefined:"undefined"},__type__:{object:Re}},__type__:{object:Re}},right:{range:{min:{number:xe,undefined:"undefined"},max:{number:xe,undefined:"undefined"},__type__:{object:Re}},format:{function:"function"},title:{text:{string:se,number:xe,undefined:"undefined"},style:{string:se,undefined:"undefined"},__type__:{object:Re}},__type__:{object:Re}},__type__:{object:Re}},legend:{enabled:{boolean:pe},icons:{boolean:pe},left:{visible:{boolean:pe},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Re}},right:{visible:{boolean:pe},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Re}},__type__:{object:Re,boolean:pe}},groups:{visibility:{any:im},__type__:{object:Re}},autoResize:{boolean:pe},throttleRedraw:{number:xe},clickToUse:{boolean:pe},end:{number:xe,date:tn,string:se,moment:rn},format:{minorLabels:{millisecond:{string:se,undefined:"undefined"},second:{string:se,undefined:"undefined"},minute:{string:se,undefined:"undefined"},hour:{string:se,undefined:"undefined"},weekday:{string:se,undefined:"undefined"},day:{string:se,undefined:"undefined"},week:{string:se,undefined:"undefined"},month:{string:se,undefined:"undefined"},quarter:{string:se,undefined:"undefined"},year:{string:se,undefined:"undefined"},__type__:{object:Re}},majorLabels:{millisecond:{string:se,undefined:"undefined"},second:{string:se,undefined:"undefined"},minute:{string:se,undefined:"undefined"},hour:{string:se,undefined:"undefined"},weekday:{string:se,undefined:"undefined"},day:{string:se,undefined:"undefined"},week:{string:se,undefined:"undefined"},month:{string:se,undefined:"undefined"},quarter:{string:se,undefined:"undefined"},year:{string:se,undefined:"undefined"},__type__:{object:Re}},__type__:{object:Re}},moment:{function:"function"},height:{string:se,number:xe},hiddenDates:{start:{date:tn,number:xe,string:se,moment:rn},end:{date:tn,number:xe,string:se,moment:rn},repeat:{string:se},__type__:{object:Re,array:Gz}},locale:{string:se},locales:{__any__:{any:im},__type__:{object:Re}},max:{date:tn,number:xe,string:se,moment:rn},maxHeight:{number:xe,string:se},maxMinorChars:{number:xe},min:{date:tn,number:xe,string:se,moment:rn},minHeight:{number:xe,string:se},moveable:{boolean:pe},multiselect:{boolean:pe},orientation:{string:se},showCurrentTime:{boolean:pe},showMajorLabels:{boolean:pe},showMinorLabels:{boolean:pe},showWeekScale:{boolean:pe},snap:{function:"function",null:"null"},start:{date:tn,number:xe,string:se,moment:rn},timeAxis:{scale:{string:se,undefined:"undefined"},step:{number:xe,undefined:"undefined"},__type__:{object:Re}},width:{string:se,number:xe},zoomable:{boolean:pe},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:xe},zoomMin:{number:xe},zIndex:{number:xe},__type__:{object:Re}},Xz={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 Hr(e,r,t,a){var n,s,o,l,d,u,f;if(!(re(t)||Rr(t))&&t instanceof Object){var p=a;a=t,t=p}a&&a.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var m=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:mt,width:null,height:null,maxHeight:null,minHeight:null},this.options=x.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:O(n=this.on).call(n,this),off:O(s=this.off).call(s,this),emit:O(o=this.emit).call(o,this)},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:O(l=m._toScreen).call(l,m),toGlobalScreen:O(d=m._toGlobalScreen).call(d,m),toTime:O(u=m._toTime).call(u,m),toGlobalTime:O(f=m._toGlobalTime).call(f,m)}},this.range=new pb(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new ho(this.body),this.components.push(this.timeAxis),this.currentTime=new Sb(this.body),this.components.push(this.currentTime),this.linegraph=new De(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(y){m.emit("click",m.getEventProperties(y))}),this.on("doubletap",function(y){m.emit("doubleClick",m.getEventProperties(y))}),this.dom.root.oncontextmenu=function(y){m.emit("contextmenu",m.getEventProperties(y))},this.initialFitDone=!1,this.on("changed",function(){if(m.itemsData!=null){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,m.options.start!=null||m.options.end!=null){if(m.options.start==null||m.options.end==null)var y=m.getItemRange();var b=m.options.start!=null?m.options.start:y.min,E=m.options.end!=null?m.options.end:y.max;m.setWindow(b,E,{animation:!1})}else m.fit({animation:!1});!m.initialDrawDone&&(m.initialRangeChangeDone||!m.options.start&&!m.options.end||m.options.rollingMode)&&(m.initialDrawDone=!0,m.dom.root.style.visibility="visible",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&ct(function(){return m.options.onInitialDrawComplete()},0))}}),a&&this.setOptions(a),t&&this.setGroups(t),r&&this.setItems(r),this._redraw()}Hr.prototype=new fn;Hr.prototype.setOptions=function(e){var r=Cb.validate(e,Uz);r===!0&&console.log("%cErrors have been found in the supplied options object.",vo),fn.prototype.setOptions.call(this,e)};Hr.prototype.setItems=function(e){var r=this.itemsData==null,t;if(e?Rr(e)?t=wn(e):t=wn(new Ci(e)):t=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.linegraph&&this.linegraph.setItems(t!=null?t.rawDS:null),r)if(this.options.start!=null||this.options.end!=null){var a=this.options.start!=null?this.options.start:null,n=this.options.end!=null?this.options.end:null;this.setWindow(a,n,{animation:!1})}else this.fit({animation:!1})};Hr.prototype.setGroups=function(e){var r;e?Rr(e)?r=e:r=new Ci(e):r=null,this.groupsData=r,this.linegraph.setGroups(r)};Hr.prototype.getLegend=function(e,r,t){return r===void 0&&(r=15),t===void 0&&(t=15),this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].getLegend(r,t):"cannot find group:'"+e+"'"};Hr.prototype.isGroupVisible=function(e){return this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].visible&&(this.linegraph.options.groups.visibility[e]===void 0||this.linegraph.options.groups.visibility[e]==!0):!1};Hr.prototype.getDataRange=function(){var e=null,r=null;for(var t in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(t)&&this.linegraph.groups[t].visible==!0)for(var a=0;a<this.linegraph.groups[t].itemsData.length;a++){var n=this.linegraph.groups[t].itemsData[a],s=x.convert(n.x,"Date").valueOf();e=e==null||e>s?s:e,r=r==null||r<s?s:r}return{min:e!=null?new Date(e):null,max:r!=null?new Date(r):null}};Hr.prototype.getEventProperties=function(e){var r=e.center?e.center.x:e.clientX,t=e.center?e.center.y:e.clientY,a=r-x.getAbsoluteLeft(this.dom.centerContainer),n=t-x.getAbsoluteTop(this.dom.centerContainer),s=this._toTime(a),o=Tc.customTimeFromTarget(e),l=x.getTarget(e),d=null;x.hasParent(l,this.timeAxis.dom.foreground)||this.timeAxis2&&x.hasParent(l,this.timeAxis2.dom.foreground)?d="axis":x.hasParent(l,this.linegraph.yAxisLeft.dom.frame)||x.hasParent(l,this.linegraph.yAxisRight.dom.frame)?d="data-axis":x.hasParent(l,this.linegraph.legendLeft.dom.frame)||x.hasParent(l,this.linegraph.legendRight.dom.frame)?d="legend":o!=null?d="custom-time":x.hasParent(l,this.currentTime.bar)?d="current-time":x.hasParent(l,this.dom.center)&&(d="background");var u=[],f=this.linegraph.yAxisLeft,p=this.linegraph.yAxisRight;return!f.hidden&&this.itemsData.length>0&&u.push(f.screenToValue(n)),!p.hidden&&this.itemsData.length>0&&u.push(p.screenToValue(n)),{event:e,customTime:o?o.options.id:null,what:d,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:a,y:n,time:s,value:u}};Hr.prototype._createConfigurator=function(){return new Ob(this,this.dom.container,Xz)};var qz=XL();mt.locale(qz);const Kz=h.defineComponent({name:"reason-explained-modal",components:{},props:{reason_explained:Object,reason:Object},setup(){return{}}}),dr=(e,r)=>{const t=e.__vccOpts||e;for(const[a,n]of r)t[a]=n;return t},Zz={class:"modal fade",id:"chargeback_reason_explained",tabindex:"1","aria-hidden":"true"},Qz={class:"modal-dialog mw-650px"},Jz={class:"card card-body"},e9={class:"card-title fs-5 fw-bolder"},t9={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.svg",alt:"",class:"h-25px pe-5"},r9={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.svg",alt:"",class:"h-25px pe-5"},i9={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.svg",alt:"",class:"h-25px pe-5"},n9={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.svg",alt:"",class:"h-25px pe-5"},a9={class:"mh-300px scroll-y m-5 py-5"},s9={class:"d-flex align-items-center"},o9={class:"ms-5"},l9={class:"fw-bold text-gray-800"};function d9(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",Zz,[h.createElementVNode("div",Qz,[h.createElementVNode("div",Jz,[h.createElementVNode("div",e9,[e.reason.card_brand==="Visa"?(h.openBlock(),h.createElementBlock("img",t9)):h.createCommentVNode("",!0),e.reason.card_brand==="American Express"?(h.openBlock(),h.createElementBlock("img",r9)):h.createCommentVNode("",!0),e.reason.card_brand==="Mastercard"?(h.openBlock(),h.createElementBlock("img",i9)):h.createCommentVNode("",!0),e.reason.card_brand==="Discover"?(h.openBlock(),h.createElementBlock("img",n9)):h.createCommentVNode("",!0),h.createTextVNode(" "+h.toDisplayString(e.reason.code),1)]),h.createElementVNode("div",null,h.toDisplayString(e.reason.message),1),h.createElementVNode("div",a9,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.reason_explained.message.explanations,(o,l)=>(h.openBlock(),h.createElementBlock("div",{key:l,class:"d-flex flex-stack py-4 border-bottom border-gray-300 border-bottom-dashed"},[h.createElementVNode("div",s9,[h.createElementVNode("div",o9,[h.createElementVNode("div",l9,h.toDisplayString(o),1)])])]))),128))])])])])}const u9=dr(Kz,[["render",d9]]),c9=h.defineComponent({name:"nmi-details",props:{incoming:{type:Object,required:!0}},setup(e){const r=h.toRef(e,"incoming"),t=h.computed(()=>{var u;return(u=e.incoming)==null?void 0:u.card_holder}),a=h.computed(()=>{var u;return(u=e.incoming)==null?void 0:u.card}),n=h.computed(()=>{var u,f;return((f=(u=e.incoming)==null?void 0:u.transaction)==null?void 0:f.action)||[]}),s=h.computed(()=>{var u,f;return((f=(u=e.incoming)==null?void 0:u.order_details)==null?void 0:f.items)||[]}),o=h.computed(()=>e.incoming.transaction),l=h.computed(()=>{const u=n.value;return u.length>0?u[u.length-1].response_text:null}),d=h.computed(()=>{const u=t.value.phone||"";return u.length===10?`1 (${u.slice(0,3)}) ${u.slice(3,6)}-${u.slice(6)}`:u});return{lastAction:l,formattedPhone:d,card:a,incomingData:r,transaction:o,actions:n,orders:s,cardholder:t}}}),h9={class:"accordion-item"},f9={id:"kt_accordion_4_body_4",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_4_body_4","data-bs-parent":"#kt_accordion_1"},v9={class:"accordion-body pb-1"},p9={class:"d-flex flex-wrap py-2 fs-7"},m9={class:"flex-equal ms-2 me-5"},g9={class:"table table-flush fw-bold gy-1"},y9={class:"text-gray-800"},_9={class:"text-gray-800"},b9={class:"text-gray-800"},w9={class:"text-gray-800"},k9={class:"text-gray-800"},x9={class:"flex-equal"},E9={class:"table table-flush fw-bold gy-1"},S9={class:"text-gray-800 text-hover-primary"},$9={class:"text-gray-800 text-hover-primary"},D9={class:"text-gray-800 text-hover-primary"},T9={class:"text-gray-800 text-hover-primary"},N9={class:"text-gray-800 text-hover-primary"};function C9(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",h9,[r[10]||(r[10]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_4_header_4"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_4_body_4","aria-expanded":"false","aria-controls":"kt_accordion_4_body_4"}," Transaction Details ")],-1)),h.createElementVNode("div",f9,[h.createElementVNode("div",v9,[h.createElementVNode("div",p9,[h.createElementVNode("div",m9,[h.createElementVNode("table",g9,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[0]||(r[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"Transaction Id:",-1)),h.createElementVNode("td",y9,h.toDisplayString(e.transaction.transaction_id),1)]),h.createElementVNode("tr",null,[r[1]||(r[1]=h.createElementVNode("td",{class:"text-muted w-auto"},"Auth Code:",-1)),h.createElementVNode("td",_9,h.toDisplayString(e.transaction.authorization_code),1)]),h.createElementVNode("tr",null,[r[2]||(r[2]=h.createElementVNode("td",{class:"text-muted w-auto"},"CAVV:",-1)),h.createElementVNode("td",b9,h.toDisplayString(e.transaction.cavv),1)]),h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted w-auto"},"ECI:",-1)),h.createElementVNode("td",w9,h.toDisplayString(e.transaction.eci),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Trans Date:",-1)),h.createElementVNode("td",k9,h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].date:e.transaction.action.date),1)])])])]),h.createElementVNode("div",x9,[h.createElementVNode("table",E9,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Amount:",-1)),h.createElementVNode("td",S9," $"+h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].amount:e.transaction.action.amount),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",$9,h.toDisplayString(e.transaction.avs_response),1)]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CSC:",-1)),h.createElementVNode("td",D9,h.toDisplayString(e.transaction.csc_response),1)]),h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CC Bin:",-1)),h.createElementVNode("td",T9,h.toDisplayString(e.transaction.cc_bin),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CC Number:",-1)),h.createElementVNode("td",N9,h.toDisplayString(e.transaction.cc_number),1)])])])])])])])])}const O9=dr(c9,[["render",C9],["__scopeId","data-v-5d7c95ae"]]),P9=h.defineComponent({name:"usaepay-details",props:{incoming:Object},setup(){return{}}}),I9={class:"rounded border pt-0 mb-5"},M9={class:"accordion",id:"kt_accordion_1"},A9={class:"accordion-item"},V9={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},R9={class:"accordion-body"},L9={class:"mb-0"},F9={class:"table table-flush fw-bold gy-1"},Y9={class:"text-gray-800"},j9={class:"text-gray-800"},B9={class:"text-gray-800"},H9={class:"text-gray-800"},W9={class:"text-gray-800"},G9={class:"text-gray-800"},z9={class:"text-gray-800"},U9={class:"text-gray-800"},X9={class:"text-gray-800"},q9={class:"text-gray-800"},K9={class:"accordion-item"},Z9={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},Q9={class:"accordion-body"},J9={class:"mb-0"},eU={class:"accordion-item"},tU={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},rU={class:"accordion-body"},iU={class:"mb-0"};function nU(e,r,t,a,n,s){var o,l,d,u,f,p,m,y,b,E,w,S;return h.openBlock(),h.createElementBlock("div",I9,[h.createElementVNode("div",M9,[h.createElementVNode("div",A9,[r[14]||(r[14]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Location Member Details ")],-1)),h.createElementVNode("div",V9,[h.createElementVNode("div",R9,[h.createElementVNode("div",L9,[h.createElementVNode("table",F9,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[0]||(r[0]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," Account Holder: ",-1)),h.createElementVNode("td",Y9,h.toDisplayString((o=e.incoming)==null?void 0:o.transaction.AccountHolder),1),r[1]||(r[1]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",j9,h.toDisplayString((l=e.incoming)==null?void 0:l.transaction.Response.RefNum),1)]),r[10]||(r[10]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[r[2]||(r[2]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," Batch Number: ",-1)),h.createElementVNode("td",B9,h.toDisplayString((d=e.incoming)==null?void 0:d.transaction.Response.BatchNum),1),r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Batch RefNumber: ",-1)),h.createElementVNode("td",H9,h.toDisplayString((u=e.incoming)==null?void 0:u.transaction.Response.BatchRefNum),1)]),r[11]||(r[11]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"},"Result:",-1)),h.createElementVNode("td",W9,h.toDisplayString((f=e.incoming)==null?void 0:f.transaction.Response.Result),1),r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Result Code:",-1)),h.createElementVNode("td",G9,h.toDisplayString((p=e.incoming)==null?void 0:p.transaction.Response.ResultCode),1)]),r[12]||(r[12]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",z9,h.toDisplayString((m=e.incoming)==null?void 0:m.transaction.Response.Status),1),r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status Code:",-1)),h.createElementVNode("td",U9,h.toDisplayString((y=e.incoming)==null?void 0:y.transaction.Response.StatusCode),1)]),r[13]||(r[13]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," CardPresent: ",-1)),h.createElementVNode("td",X9,h.toDisplayString((b=e.incoming)==null?void 0:b.transaction.CreditCardData.CardPresent),1),r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Product:",-1)),h.createElementVNode("td",q9,h.toDisplayString((E=e.incoming)==null?void 0:E.order_details.items[0].name),1)])])])])])])]),h.createElementVNode("div",K9,[r[15]||(r[15]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",Z9,[h.createElementVNode("div",Q9,[h.createElementVNode("div",J9,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((w=e.incoming)==null?void 0:w.connection_id),1)])])])]),h.createElementVNode("div",eU,[r[16]||(r[16]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",tU,[h.createElementVNode("div",rU,[h.createElementVNode("div",iU,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((S=e.incoming)==null?void 0:S.connection_id),1)])])])])])])}const aU=dr(P9,[["render",nU]]),sU=h.defineComponent({name:"squareup-details",props:{incoming:Object},setup(){return{}}}),oU={class:"rounded border pt-0 mb-5"},lU={class:"accordion fs-7",id:"kt_accordion_1"},dU={class:"accordion-item"},uU={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},cU={class:"accordion-body"},hU={class:"mb-0"},fU={class:"table-responsive"},vU={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},pU={class:"fw-bold text-gray-800"},mU={class:"w-50px"},gU={class:"w-50px"},yU={class:"w-50px text-end pe-5"},_U={class:"accordion-item"},bU={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},wU={class:"accordion-body"},kU={class:"mb-0"},xU={class:"d-flex flex-wrap py-2"},EU={class:"flex-equal ms-2 me-2"},SU={class:"table table-flush fw-bold gy-1 mb-0"},$U={class:"text-gray-800"},DU={class:"text-gray-800"},TU={class:"text-gray-800"},NU={class:"text-gray-800"},CU={class:"text-gray-800"},OU={class:"flex-equal ms-2 me-2"},PU={class:"table table-flush fw-bold gy-1"},IU={class:"text-gray-800"},MU={class:"text-gray-800"},AU={class:"text-gray-800"},VU={class:"text-gray-800"},RU={class:"text-gray-800"},LU={class:"accordion-item"},FU={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},YU={class:"accordion-body"},jU={class:"mb-0"},BU={class:"d-flex flex-wrap py-5"},HU={class:"flex-equal ms-2 me-5"},WU={class:"table table-flush fw-bold gy-1"},GU={class:"text-gray-800 text-hover-primary"},zU={class:"text-gray-800 text-hover-primary"},UU={class:"text-gray-800 text-hover-primary"},XU={class:"text-gray-800 text-hover-primary"},qU={class:"flex-equal"},KU={class:"table table-flush fw-bold gy-1"},ZU={class:"text-gray-800"},QU={class:"text-gray-800"},JU={class:"text-gray-800"},e7={class:"text-gray-800 pt-4"};function t7(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",oU,[h.createElementVNode("div",lU,[h.createElementVNode("div",dU,[r[1]||(r[1]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",uU,[h.createElementVNode("div",cU,[h.createElementVNode("div",hU,[h.createElementVNode("div",fU,[h.createElementVNode("table",vU,[r[0]||(r[0]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Line Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Type"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",pU,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.order.line_items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",mU,h.toDisplayString(o.uid),1)]),h.createElementVNode("td",null,h.toDisplayString(o.item_type),1),h.createElementVNode("td",gU,h.toDisplayString(o.quantity),1),h.createElementVNode("td",yU,h.toDisplayString(o.base_price_money.amount),1)]))),128))])])])])])])]),h.createElementVNode("div",_U,[r[12]||(r[12]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",bU,[h.createElementVNode("div",wU,[h.createElementVNode("div",kU,[h.createElementVNode("div",xU,[h.createElementVNode("div",EU,[h.createElementVNode("table",SU,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[2]||(r[2]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",$U,h.toDisplayString(e.incoming.transaction.payment.id),1)]),h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",DU,h.toDisplayString(e.incoming.transaction.payment.delay_duration),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",TU,h.toDisplayString(e.incoming.transaction.payment.card_details.avs_status),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",NU,h.toDisplayString(e.incoming.transaction.payment.card_details.cvv_status),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Created Date: ",-1)),h.createElementVNode("td",CU,h.toDisplayString(e.incoming.transaction.payment.created_at),1)])])])]),h.createElementVNode("div",OU,[h.createElementVNode("table",PU,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",IU,h.toDisplayString(e.incoming.transaction.payment.order_id),1)]),h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",MU,h.toDisplayString(e.incoming.transaction.payment.status),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",AU,h.toDisplayString(e.incoming.transaction.payment.card_details.status),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Receipt Number: ",-1)),h.createElementVNode("td",VU,h.toDisplayString(e.incoming.transaction.payment.receipt_number),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",RU,h.toDisplayString(e.incoming.transaction.payment.card_details.statement_description),1)])])])])])])])])]),h.createElementVNode("div",LU,[r[22]||(r[22]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",FU,[h.createElementVNode("div",YU,[h.createElementVNode("div",jU,[h.createElementVNode("div",BU,[h.createElementVNode("div",HU,[h.createElementVNode("table",WU,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[13]||(r[13]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",GU,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",zU,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",UU,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[r[17]||(r[17]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",XU,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),r[16]||(r[16]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",qU,[h.createElementVNode("table",KU,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[18]||(r[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",ZU,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[r[19]||(r[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Source:",-1)),h.createElementVNode("td",QU,h.toDisplayString(e.incoming.card_holder.source),1)]),h.createElementVNode("tr",null,[r[20]||(r[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),h.createElementVNode("td",JU,h.toDisplayString(e.incoming.card_holder.phone),1)]),h.createElementVNode("tr",null,[r[21]||(r[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},[h.createTextVNode(" Email "),h.createElementVNode("br"),h.createTextVNode(" Subscription: ")],-1)),h.createElementVNode("td",e7,h.toDisplayString(e.incoming.card_holder.preferences),1)])])])])])])])])])])])}const r7=dr(sU,[["render",t7]]),i7=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),n7={class:"rounded border pt-0 mb-5"},a7={class:"accordion fs-7",id:"kt_accordion_1"},s7={class:"accordion-item"},o7={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},l7={class:"accordion-body"},d7={class:"mb-0"},u7={key:0,class:"d-flex flex-wrap py-5"},c7={key:1,class:"table-responsive"},h7={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},f7={class:"fw-bold text-gray-800"},v7={class:"w-50px"},p7={class:"w-50px"},m7={class:"w-50px text-end pe-5"},g7={class:"accordion-item"},y7={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},_7={class:"accordion-body"},b7={class:"mb-0"},w7={class:"d-flex flex-wrap py-2"},k7={class:"flex-equal ms-2 me-2"},x7={class:"table table-flush fw-bold gy-1 mb-0"},E7={class:"text-gray-800"},S7={class:"text-gray-800"},$7={class:"text-gray-800"},D7={class:"text-gray-800"},T7={class:"text-gray-800"},N7={class:"flex-equal ms-2 me-2"},C7={class:"table table-flush fw-bold gy-1"},O7={class:"text-gray-800"},P7={class:"text-gray-800"},I7={class:"text-gray-800"},M7={class:"text-gray-800"},A7={class:"text-gray-800"},V7={class:"accordion-item"},R7={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},L7={class:"accordion-body"},F7={class:"mb-0"},Y7={class:"d-flex flex-wrap py-5"},j7={class:"flex-equal ms-2 me-5"},B7={class:"table table-flush fw-bold gy-1"},H7={class:"text-gray-800 text-hover-primary"},W7={class:"text-gray-800 text-hover-primary"},G7={class:"text-gray-800 text-hover-primary"},z7={class:"text-gray-800 text-hover-primary"},U7={class:"flex-equal"},X7={class:"table table-flush fw-bold gy-1"},q7={class:"text-gray-800"},K7={class:"text-gray-800"},Z7={class:"text-gray-800"},Q7={class:"text-gray-800"};function J7(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",n7,[h.createElementVNode("div",a7,[h.createElementVNode("div",s7,[r[2]||(r[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",o7,[h.createElementVNode("div",l7,[h.createElementVNode("div",d7,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",u7,r[0]||(r[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",c7,[h.createElementVNode("table",h7,[r[1]||(r[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",f7,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",v7,h.toDisplayString(o.id),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",p7,h.toDisplayString(o.quantity),1),h.createElementVNode("td",m7,h.toDisplayString(o.unit_price),1)]))),128))])])]))])])])]),h.createElementVNode("div",g7,[r[13]||(r[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",y7,[h.createElementVNode("div",_7,[h.createElementVNode("div",b7,[h.createElementVNode("div",w7,[h.createElementVNode("div",k7,[h.createElementVNode("table",x7,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",E7,h.toDisplayString(e.incoming.transaction.id),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",S7,h.toDisplayString(e.incoming.transaction.response.card.auth_code),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",$7,h.toDisplayString(e.incoming.transaction.response.card.avs_response_code),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",D7,h.toDisplayString(e.incoming.transaction.response.card.cvv_response_code),1)]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",T7,h.toDisplayString(e.incoming.transaction.created_at),1)])])])]),h.createElementVNode("div",N7,[h.createElementVNode("table",C7,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",O7,h.toDisplayString(e.incoming.transaction.order_id),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",P7,h.toDisplayString(e.incoming.transaction.response.card.status),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",I7,h.toDisplayString(e.incoming.transaction.type),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",M7,h.toDisplayString(e.incoming.transaction.description),1)]),h.createElementVNode("tr",null,[r[12]||(r[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Receipt Emailed: ",-1)),h.createElementVNode("td",A7,h.toDisplayString(e.incoming.transaction.email_receipt),1)])])])])])])])])]),h.createElementVNode("div",V7,[r[23]||(r[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",R7,[h.createElementVNode("div",L7,[h.createElementVNode("div",F7,[h.createElementVNode("div",Y7,[h.createElementVNode("div",j7,[h.createElementVNode("table",B7,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",H7,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",W7,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[r[16]||(r[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",G7,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[r[18]||(r[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",z7,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),r[17]||(r[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",U7,[h.createElementVNode("table",X7,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[19]||(r[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",q7,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[r[20]||(r[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Source:",-1)),h.createElementVNode("td",K7,h.toDisplayString(e.incoming.card_holder.source),1)]),h.createElementVNode("tr",null,[r[21]||(r[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),h.createElementVNode("td",Z7,h.toDisplayString(e.incoming.card_holder.phone),1)]),h.createElementVNode("tr",null,[r[22]||(r[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",Q7,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const eX=dr(i7,[["render",J7]]),tX=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),rX={class:"rounded border pt-0 mb-5"},iX={class:"accordion fs-7",id:"kt_accordion_1"},nX={class:"accordion-item"},aX={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},sX={class:"accordion-body"},oX={class:"mb-0"},lX={key:0,class:"d-flex flex-wrap py-5"},dX={key:1,class:"table-responsive"},uX={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},cX={class:"fw-bold text-gray-800"},hX={class:"w-50px"},fX={class:"w-50px"},vX={class:"w-50px text-end pe-5"},pX={class:"accordion-item"},mX={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},gX={class:"accordion-body"},yX={class:"mb-0"},_X={class:"d-flex flex-wrap py-2"},bX={class:"flex-equal ms-2 me-2"},wX={class:"table table-flush fw-bold gy-1 mb-0"},kX={class:"text-gray-800"},xX={class:"text-gray-800"},EX={class:"text-gray-800"},SX={class:"text-gray-800"},$X={class:"text-gray-800"},DX={class:"flex-equal ms-2 me-2"},TX={class:"table table-flush fw-bold gy-1"},NX={class:"text-gray-800"},CX={class:"text-gray-800"},OX={class:"text-gray-800"},PX={class:"text-gray-800"},IX={class:"text-gray-800"},MX={class:"accordion-item"},AX={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},VX={class:"accordion-body"},RX={class:"mb-0"},LX={class:"d-flex flex-wrap py-5"},FX={class:"flex-equal ms-2 me-5"},YX={class:"table table-flush fw-bold gy-1"},jX={class:"text-gray-800 text-hover-primary"},BX={class:"text-gray-800 text-hover-primary"},HX={class:"text-gray-800 text-hover-primary"},WX={class:"text-gray-800 text-hover-primary"},GX={class:"flex-equal"},zX={class:"table table-flush fw-bold gy-1"},UX={class:"text-gray-800"},XX={class:"text-gray-800"},qX={key:0,class:"text-gray-800"},KX={key:1,class:"text-gray-800"},ZX={class:"text-gray-800"};function QX(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",rX,[h.createElementVNode("div",iX,[h.createElementVNode("div",nX,[r[2]||(r[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",aX,[h.createElementVNode("div",sX,[h.createElementVNode("div",oX,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",lX,r[0]||(r[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",dX,[h.createElementVNode("table",uX,[r[1]||(r[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",cX,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",hX,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",fX,h.toDisplayString(o.qty),1),h.createElementVNode("td",vX,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",pX,[r[13]||(r[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",mX,[h.createElementVNode("div",gX,[h.createElementVNode("div",yX,[h.createElementVNode("div",_X,[h.createElementVNode("div",bX,[h.createElementVNode("table",wX,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",kX,h.toDisplayString(e.incoming.transaction["Transaction ID"]),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",xX,h.toDisplayString(e.incoming.transaction["Auth Code"]),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",EX,h.toDisplayString(e.incoming.transaction.AVS),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",SX,h.toDisplayString(e.incoming.transaction.CVV),1)]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",$X,h.toDisplayString(e.incoming.transaction.Date),1)])])])]),h.createElementVNode("div",DX,[h.createElementVNode("table",TX,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",NX,h.toDisplayString(e.incoming.transaction["PPP Order ID"]),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",CX,h.toDisplayString(e.incoming.transaction["Transaction Result"]),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",OX,h.toDisplayString(e.incoming.transaction["Transaction Type"]),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",PX,h.toDisplayString(e.incoming.transaction.URL),1)]),h.createElementVNode("tr",null,[r[12]||(r[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Scheme Identifier: ",-1)),h.createElementVNode("td",IX,h.toDisplayString(e.incoming.transaction["External Scheme Identifier"]),1)])])])])])])])])]),h.createElementVNode("div",MX,[r[23]||(r[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",AX,[h.createElementVNode("div",VX,[h.createElementVNode("div",RX,[h.createElementVNode("div",LX,[h.createElementVNode("div",FX,[h.createElementVNode("table",YX,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",jX,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",BX,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[r[16]||(r[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",HX,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[r[18]||(r[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",WX,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),r[17]||(r[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",GX,[h.createElementVNode("table",zX,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[19]||(r[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",UX,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[r[20]||(r[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Lifecycle ID: ",-1)),h.createElementVNode("td",XX,h.toDisplayString(e.incoming.transaction["Lifecycle ID"]),1)]),h.createElementVNode("tr",null,[r[21]||(r[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),e.incoming.card_holder.phone==""?(h.openBlock(),h.createElementBlock("td",qX," Not Provided ")):(h.openBlock(),h.createElementBlock("td",KX,h.toDisplayString(e.incoming.card_holder.phone),1))]),h.createElementVNode("tr",null,[r[22]||(r[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",ZX,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const JX=dr(tX,[["render",QX]]),eq=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),tq={class:"rounded border pt-0 mb-5"},rq={class:"accordion fs-7",id:"kt_accordion_1"},iq={class:"accordion-item"},nq={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},aq={class:"accordion-body"},sq={class:"mb-0"},oq={key:0,class:"d-flex flex-wrap py-5"},lq={key:1,class:"table-responsive"},dq={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},uq={class:"fw-bold text-gray-800"},cq={class:"w-50px"},hq={class:"w-50px"},fq={class:"w-50px text-end pe-5"},vq={class:"accordion-item"},pq={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},mq={class:"accordion-body"},gq={class:"mb-0"},yq={class:"d-flex flex-wrap py-2"},_q={class:"flex-equal ms-2 me-2"},bq={class:"table table-flush fw-bold gy-1 mb-0"},wq={class:"text-gray-800"},kq={class:"text-gray-800"},xq={class:"text-gray-800"},Eq={class:"text-gray-800"},Sq={class:"text-gray-800"},$q={class:"flex-equal ms-2 me-2"},Dq={class:"table table-flush fw-bold gy-1"},Tq={class:"text-gray-800"},Nq={class:"text-gray-800"},Cq={class:"text-gray-800"},Oq={class:"text-gray-800"},Pq={class:"text-gray-800"},Iq={class:"accordion-item"},Mq={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Aq={class:"accordion-body"},Vq={class:"mb-0"},Rq={class:"d-flex flex-wrap py-5"},Lq={class:"flex-equal ms-2 me-5"},Fq={class:"table table-flush fw-bold gy-1"},Yq={class:"text-gray-800 text-hover-primary"},jq={class:"text-gray-800 text-hover-primary"},Bq={class:"text-gray-800 text-hover-primary"},Hq={class:"text-gray-800 text-hover-primary"},Wq={class:"flex-equal"},Gq={class:"table table-flush fw-bold gy-1"},zq={class:"text-gray-800"},Uq={class:"text-gray-800"},Xq={key:0,class:"text-gray-800"},qq={key:1,class:"text-gray-800"},Kq={class:"text-gray-800"};function Zq(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",tq,[h.createElementVNode("div",rq,[h.createElementVNode("div",iq,[r[2]||(r[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",nq,[h.createElementVNode("div",aq,[h.createElementVNode("div",sq,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",oq,r[0]||(r[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",lq,[h.createElementVNode("table",dq,[r[1]||(r[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",uq,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",cq,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",hq,h.toDisplayString(o.qty),1),h.createElementVNode("td",fq,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",vq,[r[13]||(r[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",pq,[h.createElementVNode("div",mq,[h.createElementVNode("div",gq,[h.createElementVNode("div",yq,[h.createElementVNode("div",_q,[h.createElementVNode("table",bq,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",wq,h.toDisplayString(e.incoming.transaction.TRANS_ID),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",kq,h.toDisplayString(e.incoming.transaction.PROC_AUTH_CODE),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",xq,h.toDisplayString(e.incoming.transaction.AVS_CODE),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",Eq,h.toDisplayString(e.incoming.transaction.CVV_CODE),1)]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",Sq,h.toDisplayString(e.incoming.transaction.TRANS_SETTLE_UTC_TS),1)])])])]),h.createElementVNode("div",$q,[h.createElementVNode("table",Dq,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",Tq,h.toDisplayString(e.incoming.transaction.PO_ID),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Nq,h.toDisplayString(e.incoming.transaction.TRANS_STATUS),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",Cq,h.toDisplayString(e.incoming.transaction.SERVICE_ACTION),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Oq,h.toDisplayString(e.incoming.transaction.DESCRIPTOR),1)]),h.createElementVNode("tr",null,[r[12]||(r[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Card Bank: ",-1)),h.createElementVNode("td",Pq,h.toDisplayString(e.incoming.transaction.CARD_BANK),1)])])])])])])])])]),h.createElementVNode("div",Iq,[r[23]||(r[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Mq,[h.createElementVNode("div",Aq,[h.createElementVNode("div",Vq,[h.createElementVNode("div",Rq,[h.createElementVNode("div",Lq,[h.createElementVNode("table",Fq,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Yq,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",jq,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[r[16]||(r[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Bq,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[r[18]||(r[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",Hq,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),r[17]||(r[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",Wq,[h.createElementVNode("table",Gq,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[19]||(r[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",zq,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[r[20]||(r[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Rebill:",-1)),h.createElementVNode("td",Uq,h.toDisplayString(e.incoming.transaction.REBILL),1)]),h.createElementVNode("tr",null,[r[21]||(r[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),e.incoming.card_holder.phone==""?(h.openBlock(),h.createElementBlock("td",Xq," Not Provided ")):(h.openBlock(),h.createElementBlock("td",qq,h.toDisplayString(e.incoming.card_holder.phone),1))]),h.createElementVNode("tr",null,[r[22]||(r[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",Kq,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const Qq=dr(eq,[["render",Zq]]),Jq=h.defineComponent({name:"chargeback-details",components:{ReasonExplained:u9,NmiDetails:O9,USAEPayDetails:aU,SquareUp:r7,FluidPayDetails:eX,NuveiDetails:JX,InovioPayDetails:Qq},props:{reason:Object,reason_explained:Object,incoming:{type:Object,required:!0},merchant:{type:Object,required:!0}},setup(e){const r=h.toRef(e,"incoming"),t=h.ref(null),a=h.ref({height:"265px"}),n=h.ref(null),s=h.computed(()=>{var S;return((S=e.incoming)==null?void 0:S.card_holder)||{}}),o=h.computed(()=>{var S,D;return((D=(S=e.incoming)==null?void 0:S.transaction)==null?void 0:D.action)||[]}),l=h.computed(()=>{var S;return((S=e.incoming)==null?void 0:S.card)??{}}),d=h.computed(()=>{var S,D;return((D=(S=e.incoming)==null?void 0:S.order_details)==null?void 0:D.items)??[]}),u=h.computed(()=>{var S;return((S=e.incoming.order2_details)==null?void 0:S.items)??[]}),f=h.computed(()=>{var S;try{return e.incoming.crm_details?typeof e.incoming.crm_details=="string"?JSON.parse((S=e.incoming)==null?void 0:S.crm_details):e.incoming.crm_details:{}}catch{return{}}}),p=h.computed(()=>{var S;try{return e.incoming.crm2_details?typeof e.incoming.crm2_details=="string"?JSON.parse((S=e.incoming)==null?void 0:S.crm2_details):e.incoming.crm2_details:{}}catch{return{}}}),m=h.computed(()=>{var S,D,T,P,F,A,V,N;return(P=(T=(D=(S=e.incoming)==null?void 0:S.transaction)==null?void 0:D.action)==null?void 0:T[0])!=null&&P.amount||(V=(A=(F=e.incoming)==null?void 0:F.transaction)==null?void 0:A.action)!=null&&V.amount?(N=e.incoming)==null?void 0:N.transaction:null}),y=h.computed(()=>{const S=[];let D=1;return r.value.dispute_date!==void 0&&new Date(r.value.dispute_date).getTime()>0&&(S.push({id:D,content:"First Chargeback",start:r.value.dispute_date}),D=D+1),r.value.dispute_cycle.dispute_sent_status!==void 0&&r.value.dispute_cycle.dispute_date_sent!==void 0?new Date(r.value.dispute_cycle.dispute_date_sent).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.dispute_sent_status,start:r.value.dispute_cycle.dispute_date_sent}),D=D+1):r.value.dispute_cycle.response_status!==void 0&&r.value.dispute_cycle.response_date!==void 0&&new Date(r.value.dispute_cycle.response_date).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.response_status,start:r.value.dispute_cycle.response_date}),D=D+1),r.value.dispute_cycle.retrieval_status!==void 0&&r.value.dispute_cycle.retrieval_date!==void 0&&new Date(r.value.dispute_cycle.retrieval_date).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.retrieval_status,start:r.value.dispute_cycle.retrieval_date}),D=D+1),r.value.dispute_cycle.dispute_receieved_status!==void 0&&r.value.dispute_cycle.dispute_received_date!==void 0&&new Date(r.value.dispute_cycle.dispute_received_date).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.dispute_receieved_status,start:r.value.dispute_cycle.dispute_received_date}),D=D+1),r.value.dispute_cycle.pre_arbitration_status!==void 0&&r.value.dispute_cycle.pre_arbitration_date!==void 0&&new Date(r.value.dispute_cycle.pre_arbitration_date).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.pre_arbitration_status,start:r.value.dispute_cycle.pre_arbitration_date}),D=D+1),r.value.dispute_cycle.pre_arb_sent_status!==void 0&&r.value.dispute_cycle.pre_arb_date_sent!==void 0&&new Date(r.value.dispute_cycle.pre_arb_date_sent).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.pre_arb_sent_status,start:r.value.dispute_cycle.pre_arb_date_sent}),D=D+1),r.value.dispute_cycle.resolved_status!==void 0&&r.value.dispute_cycle.resolved_date!==void 0&&new Date(r.value.dispute_cycle.resolved_date).getTime()&&(S.push({id:D,content:r.value.dispute_cycle.resolved_status,start:r.value.dispute_cycle.resolved_date}),D=D+1),new Ci(S)});h.watch(()=>y.value,()=>{w()});const b=h.computed(()=>{const S=o.value;return S.length>0?S[S.length-1].response_text:null}),E=h.computed(()=>{const S=s.value.phone||"";return S.length===10?`1 (${S.slice(0,3)}) ${S.slice(3,6)}-${S.slice(6)}`:S}),w=()=>{t.value!==null&&(n.value===null?n.value=new Rz(t.value,y.value,a.value):n.value.setItems(y.value))};return{timelineRef:t,incomingData:r,formattedPhone:E,lastAction:b,transaction:m,cardholder:s,actions:o,card:l,orders:d,orders2:u,crm_details:f,crm2_details:p}}}),eK={class:"card card-flush mb-5"},tK={class:"px-9 mb-7"},rK={class:"d-flex flex-wrap"},iK={class:"flex-equal"},nK={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},aK={class:"text-gray-800"},sK={class:"text-gray-800"},oK={class:"text-gray-800"},lK={class:"text-boldest"},dK={class:"text-gray-800"},uK={class:"flex-equal"},cK={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},hK={class:"text-gray-800 badge badge-sm badge-light-warning p-2"},fK={class:"text-gray-800"},vK={class:"text-dark p-0",href:"#chargeback_reason_explained","data-bs-toggle":"modal"},pK={class:"text-gray-800"},mK={class:"ms-n3"},gK={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.png",alt:"",class:"h-20px"},yK={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.png",alt:"",class:"h-20px"},_K={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.png",alt:"",class:"h-20px"},bK={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.png",alt:"",class:"h-20px"},wK={class:"text-gray-800"},kK={key:0,class:"card card-flush mb-5"},xK={class:"px-9 mb-7"},EK={class:"d-flex flex-wrap"},SK={class:"flex-equal"},$K={class:"table table-flush fw-bold gy-1"},DK={class:"text-gray-800"},TK={class:"text-gray-800"},NK={class:"text-gray-800"},CK={class:"text-gray-800"},OK={class:"flex-equal"},PK={class:"table table-flush fw-bold gy-1"},IK={class:"text-gray-800"},MK={class:"text-gray-800"},AK={class:"text-gray-800"},VK={class:"rounded border pt-0 mb-5"},RK={class:"accordion fs-7",id:"kt_accordion"},LK={key:0,class:"accordion-item"},FK={id:"kt_accordion_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_1","data-bs-parent":"#kt_accordion"},YK={class:"accordion-body mt-0 p-1 px-5"},jK={class:"table-responsive"},BK={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},HK={class:"fw-bold text-gray-800 fs-8"},WK={class:"text-end"},GK={key:1,class:"accordion-item"},zK={id:"kt_accordion_body_6",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_6","data-bs-parent":"#kt_accordion"},UK={class:"accordion-body mt-0 p-1 px-5"},XK={class:"table-responsive"},qK={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},KK={class:"fw-bold text-gray-800 fs-8"},ZK={key:2,class:"accordion-item"},QK={id:"kt_accordion_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_header_2","data-bs-parent":"#kt_accordion"},JK={class:"accordion-body mt-0 p-1 px-5"},eZ={class:"table-responsive"},tZ={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},rZ={class:"fw-bold text-gray-800 fs-8"},iZ={class:"text-end"},nZ={key:3,class:"accordion-item"},aZ={id:"kt_accordion_body_3",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_3","data-bs-parent":"#kt_accordion"},sZ={class:"accordion-body mt-0 p-1 px-5"},oZ={class:"table-responsive"},lZ={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},dZ={class:"fw-bold text-gray-800 fs-8"},uZ={class:"rounded border pt-0 mb-5"},cZ={class:"accordion fs-7",id:"kt_accordion_5"},hZ={class:"card card-body"},fZ={class:"card-flush h-auto pt-1"},vZ={class:"mb-0"},pZ={ref:"timelineRef"};function mZ(e,r,t,a,n,s){const o=h.resolveComponent("NmiDetails"),l=h.resolveComponent("USAEPayDetails"),d=h.resolveComponent("SquareUp"),u=h.resolveComponent("FluidPayDetails"),f=h.resolveComponent("NuveiDetails"),p=h.resolveComponent("InovioPayDetails"),m=h.resolveComponent("ReasonExplained");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",eK,[r[8]||(r[8]=h.createElementVNode("div",{class:"card card-body pb-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal fs-6"},"Chargeback Details")])],-1)),h.createElementVNode("div",tK,[h.createElementVNode("div",rK,[h.createElementVNode("div",iK,[h.createElementVNode("table",nK,[h.createElementVNode("tr",null,[r[0]||(r[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"ID:",-1)),h.createElementVNode("td",aK,h.toDisplayString(e.incoming.id),1)]),h.createElementVNode("tr",null,[r[1]||(r[1]=h.createElementVNode("td",{class:"text-muted w-auto"},"Case Number:",-1)),h.createElementVNode("td",sK,h.toDisplayString(e.incoming.case_number),1)]),h.createElementVNode("tr",null,[r[2]||(r[2]=h.createElementVNode("td",{class:"text-muted w-auto"},"Amount:",-1)),h.createElementVNode("td",oK,[h.createTextVNode(" $"+h.toDisplayString(e.incoming.dispute_amount),1),h.createElementVNode("span",lK,h.toDisplayString(e.incoming.currency),1)])]),h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted w-auto"},"Dispute Date:",-1)),h.createElementVNode("td",dK,h.toDisplayString(e.incoming.dispute_date),1)])])]),h.createElementVNode("div",uK,[h.createElementVNode("table",cK,[h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Due Date:",-1)),h.createElementVNode("td",hK,h.toDisplayString(e.incoming.expire_date),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted w-auto w-auto"},"Reason Code:",-1)),h.createElementVNode("td",fK,[h.createElementVNode("a",vK,h.toDisplayString(e.incoming.reason),1)])]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted w-auto"},"Card Brand:",-1)),h.createElementVNode("td",pK,[h.createElementVNode("span",mK,[e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Visa"?(h.openBlock(),h.createElementBlock("img",gK)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&(e.incoming.card.brand=="Mastercard"||e.incoming.card.brand=="MasterCard")?(h.openBlock(),h.createElementBlock("img",yK)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&(e.incoming.card.brand=="Amex"||e.incoming.card.brand=="AmericanExpress"||e.incoming.card.brand=="American Express")?(h.openBlock(),h.createElementBlock("img",_K)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Discover"?(h.openBlock(),h.createElementBlock("img",bK)):h.createCommentVNode("",!0)])])]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted w-auto"},"Transaction Date:",-1)),h.createElementVNode("td",wK,h.toDisplayString(e.incoming.transaction_date),1)])])])])])]),e.cardholder&&Object.keys(e.cardholder).length>0?(h.openBlock(),h.createElementBlock("div",kK,[r[16]||(r[16]=h.createElementVNode("div",{class:"card card-body pb-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal fs-6"},"Cardholder Details")])],-1)),h.createElementVNode("div",xK,[h.createElementVNode("div",EK,[h.createElementVNode("div",SK,[h.createElementVNode("table",$K,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted w-auto"},"First Name",-1)),h.createElementVNode("td",DK,h.toDisplayString(e.cardholder.first_name),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted w-auto"},"Last Name",-1)),h.createElementVNode("td",TK,h.toDisplayString(e.cardholder.last_name),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted w-auto"},"Email",-1)),h.createElementVNode("td",NK,h.toDisplayString(e.cardholder.email),1)]),h.createElementVNode("tr",null,[r[12]||(r[12]=h.createElementVNode("td",{class:"text-muted w-auto"},"Billing:",-1)),h.createElementVNode("td",CK,h.toDisplayString(e.cardholder.billing_address),1)])])])]),h.createElementVNode("div",OK,[h.createElementVNode("table",PK,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[13]||(r[13]=h.createElementVNode("td",{class:"text-muted w-auto"},"I.P Address",-1)),h.createElementVNode("td",IK,h.toDisplayString(e.cardholder.ip_address),1)]),h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted w-auto"},"Phone",-1)),h.createElementVNode("td",MK,h.toDisplayString(e.formattedPhone),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted w-auto"},"Shipping:",-1)),h.createElementVNode("td",AK,h.toDisplayString(e.cardholder.shipping_address),1)])])])])])])])):h.createCommentVNode("",!0),h.createElementVNode("div",VK,[h.createElementVNode("div",RK,[e.orders&&Object.keys(e.orders).length>0?(h.openBlock(),h.createElementBlock("div",LK,[r[18]||(r[18]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_1","aria-expanded":"true","aria-controls":"kt_accordion_body_1"}," Konnektive Order ")],-1)),h.createElementVNode("div",FK,[h.createElementVNode("div",YK,[h.createElementVNode("div",jK,[h.createElementVNode("table",BK,[r[17]||(r[17]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Item Id"),h.createElementVNode("th",{class:"w-1/6"},"Product ID"),h.createElementVNode("th",{class:"w-1/6"},"Product"),h.createElementVNode("th",{class:"w-1/6"},"Qty"),h.createElementVNode("th",{class:"w-1/6 text-end"},"Price")])],-1)),h.createElementVNode("tbody",HK,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orders,(y,b)=>(h.openBlock(),h.createElementBlock("tr",{key:b},[h.createElementVNode("td",null,h.toDisplayString(y.orderItemId),1),h.createElementVNode("td",null,h.toDisplayString(y.productId),1),h.createElementVNode("td",null,h.toDisplayString(y.name),1),h.createElementVNode("td",null,h.toDisplayString(y.qty),1),h.createElementVNode("td",WK,h.toDisplayString(y.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm_details&&Object.keys(e.crm_details).length>0?(h.openBlock(),h.createElementBlock("div",GK,[r[20]||(r[20]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_6"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_6","aria-expanded":"true","aria-controls":"kt_accordion_body_6"}," Konnektive Details ")],-1)),h.createElementVNode("div",zK,[h.createElementVNode("div",UK,[h.createElementVNode("div",XK,[h.createElementVNode("table",qK,[r[19]||(r[19]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Trans ID"),h.createElementVNode("th",{class:"w-1/6"},"Order ID"),h.createElementVNode("th",{class:"w-1/6"},"IP"),h.createElementVNode("th",{class:"w-1/6"},"A ID"),h.createElementVNode("th",{class:"w-1/6"},"Gateway ID"),h.createElementVNode("th",{class:"w-1/6"},"Customer ID")])],-1)),h.createElementVNode("tbody",KK,[h.createElementVNode("tr",null,[h.createElementVNode("td",null,h.toDisplayString(e.crm_details.transactionId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.orderId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.ipAddress),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.actualOrderId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.merchantTxnId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.customerId),1)])])])])])])])):h.createCommentVNode("",!0),e.orders2&&Object.keys(e.orders2).length>0?(h.openBlock(),h.createElementBlock("div",ZK,[r[22]||(r[22]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_2","aria-expanded":"false","aria-controls":"kt_accordion_body_2"}," Sticky Order ")],-1)),h.createElementVNode("div",QK,[h.createElementVNode("div",JK,[h.createElementVNode("div",eZ,[h.createElementVNode("table",tZ,[r[21]||(r[21]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Item Id"),h.createElementVNode("th",{class:"w-1/6"},"ID"),h.createElementVNode("th",{class:"w-1/6"},"URL"),h.createElementVNode("th",{class:"w-1/6"},"Name"),h.createElementVNode("th",{class:"w-1/6"},"Qty"),h.createElementVNode("th",{class:"w-1/6 text-end"},"Price")])],-1)),h.createElementVNode("tbody",rZ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orders2,(y,b)=>(h.openBlock(),h.createElementBlock("tr",{key:b},[h.createElementVNode("td",null,h.toDisplayString(y.item_id),1),h.createElementVNode("td",null,h.toDisplayString(y.product_id),1),h.createElementVNode("td",null,h.toDisplayString(y.product_url),1),h.createElementVNode("td",null,h.toDisplayString(y.name),1),h.createElementVNode("td",null,h.toDisplayString(y.qty),1),h.createElementVNode("td",iZ,h.toDisplayString(y.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm2_details&&Object.keys(e.crm2_details).length>0?(h.openBlock(),h.createElementBlock("div",nZ,[r[24]||(r[24]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_3","aria-expanded":"true","aria-controls":"kt_accordion_body_3"}," Sticky Details ")],-1)),h.createElementVNode("div",aZ,[h.createElementVNode("div",sZ,[h.createElementVNode("div",oZ,[h.createElementVNode("table",lZ,[r[23]||(r[23]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Ancestor ID"),h.createElementVNode("th",{class:"w-1/6"},"Order ID"),h.createElementVNode("th",{class:"w-1/6"},"IP"),h.createElementVNode("th",{class:"w-1/6"},"Trans ID"),h.createElementVNode("th",{class:"w-1/6"},"Gateway ID"),h.createElementVNode("th",{class:"w-1/6"},"Customer ID")])],-1)),h.createElementVNode("tbody",dZ,[h.createElementVNode("tr",null,[h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.ancestor_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.order_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.ip_address),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.transaction_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.gateway_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.customer_id),1)])])])])])])])):h.createCommentVNode("",!0),e.transaction?(h.openBlock(),h.createBlock(o,{key:4,class:"p-0 m-0",incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0)])]),e.incoming.connection_id=="51"?(h.openBlock(),h.createBlock(l,{key:1,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="52"?(h.openBlock(),h.createBlock(d,{key:2,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="45"?(h.openBlock(),h.createBlock(u,{key:3,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="56"?(h.openBlock(),h.createBlock(f,{key:4,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="6"?(h.openBlock(),h.createBlock(p,{key:5,incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0),h.createElementVNode("div",uZ,[h.createElementVNode("div",cZ,[h.createElementVNode("div",hZ,[r[25]||(r[25]=h.createElementVNode("div",{class:"card-body py-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal ms-n6 fs-7"},"Chargeback Cycle")])],-1)),h.createElementVNode("div",fZ,[h.createElementVNode("div",vZ,[h.createElementVNode("div",pZ,null,512)])])])])]),h.createVNode(m,{reason_explained:e.reason_explained,reason:e.reason},null,8,["reason_explained","reason"])],64)}const gZ=dr(Jq,[["render",mZ]]),yZ=h.defineComponent({name:"incoming-summary",emits:["reset"],props:{incoming:{type:Object,required:!0},merchant:{type:Object,required:!0},processor:{type:Object,required:!0},reason:{type:Object,required:!0}}}),_Z={class:"card card-flush mb-0","data-kt-sticky":"false","data-kt-sticky-name":"merchants-summary"},bZ={class:"card-body px-5 pe-8 pt-0 fs-7"},wZ={class:"mb-4"},kZ={class:"row pb-4 align-items-center"},xZ={class:"col text-end"},EZ={class:"card-flush p-0"},SZ={class:"fw-bold text-gray-800"},$Z={class:"d-block"},DZ={class:"row pb-4 align-items-center"},TZ={class:"col text-end"},NZ={class:"card-flush p-0"},CZ={class:"fw-bold text-gray-800"},OZ={class:"d-block"},PZ={class:"row pb-4 align-items-center"},IZ={class:"col text-end"},MZ={class:"card-flush p-0"},AZ={class:"fw-bold text-gray-800"},VZ={class:"d-block"},RZ={class:"row pb-4 align-items-center"},LZ={class:"col text-end"},FZ={class:"card-flush p-0"},YZ={class:"fw-bold text-gray-800"},jZ={class:"d-block"},BZ={class:"row pb-4 align-items-center"},HZ={class:"col text-end"},WZ={class:"card-flush p-0"},GZ={class:"fw-bold text-gray-800"},zZ={class:"d-block"},UZ={class:"row pb-4 align-items-center"},XZ={class:"col text-end"},qZ={class:"card-flush p-0"},KZ={class:"fw-bold text-gray-800"},ZZ={key:0,class:"d-block"},QZ={key:1,class:"d-block"},JZ={class:"row pb-4 align-items-center"},eQ={class:"col text-end"},tQ={class:"card-flush p-0"},rQ={class:"fw-bold text-gray-800"},iQ={class:"d-block"},nQ={class:"row pb-4 align-items-center"},aQ={class:"col text-end"},sQ={class:"card-flush p-0"},oQ={class:"fw-bold text-gray-800"},lQ={class:"d-block"};function dQ(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",_Z,[r[8]||(r[8]=h.createElementVNode("div",{class:"card card-body ps-5 pb-2"},[h.createElementVNode("h5",{class:"mb-4 fs-6 ps-0 fw-normal"},"Summary Details")],-1)),h.createElementVNode("div",bZ,[h.createElementVNode("div",wZ,[h.createElementVNode("div",kZ,[r[0]||(r[0]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Status ")])])],-1)),h.createElementVNode("div",xZ,[h.createElementVNode("div",EZ,[h.createElementVNode("div",SZ,[h.createElementVNode("span",$Z,h.toDisplayString(e.incoming.chargeback_status),1)])])])]),h.createElementVNode("div",DZ,[r[1]||(r[1]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Merchant ")])])],-1)),h.createElementVNode("div",TZ,[h.createElementVNode("div",NZ,[h.createElementVNode("div",CZ,[h.createElementVNode("span",OZ,h.toDisplayString(e.merchant.dba_name),1)])])])]),h.createElementVNode("div",PZ,[r[2]||(r[2]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," MID Number: ")])])],-1)),h.createElementVNode("div",IZ,[h.createElementVNode("div",MZ,[h.createElementVNode("div",AZ,[h.createElementVNode("span",VZ,h.toDisplayString(e.merchant.mid_number),1)])])])]),h.createElementVNode("div",RZ,[r[3]||(r[3]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Merchant ID: ")])])],-1)),h.createElementVNode("div",LZ,[h.createElementVNode("div",FZ,[h.createElementVNode("div",YZ,[h.createElementVNode("span",jZ,h.toDisplayString(e.merchant.merchant_id),1)])])])]),h.createElementVNode("div",BZ,[r[4]||(r[4]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Processor")])])],-1)),h.createElementVNode("div",HZ,[h.createElementVNode("div",WZ,[h.createElementVNode("div",GZ,[h.createElementVNode("span",zZ,h.toDisplayString(e.processor.name),1)])])])]),h.createElementVNode("div",UZ,[r[5]||(r[5]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Response Status")])])],-1)),h.createElementVNode("div",XZ,[h.createElementVNode("div",qZ,[h.createElementVNode("div",KZ,[e.incoming.sent_date=="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("span",ZZ," Not Sent ")):(h.openBlock(),h.createElementBlock("span",QZ," Sent "))])])])]),h.createElementVNode("div",JZ,[r[6]||(r[6]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Reason Category")])])],-1)),h.createElementVNode("div",eQ,[h.createElementVNode("div",tQ,[h.createElementVNode("div",rQ,[h.createElementVNode("span",iQ,h.toDisplayString(e.reason.category),1)])])])]),h.createElementVNode("div",nQ,[r[7]||(r[7]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Reason Condition")])])],-1)),h.createElementVNode("div",aQ,[h.createElementVNode("div",sQ,[h.createElementVNode("div",oQ,[h.createElementVNode("span",lQ,h.toDisplayString(e.incoming.reason_condition),1)])])])])])])])}const uQ=dr(yZ,[["render",dQ]]),tr={apiKey:"",setApiKey(e){this.apiKey=e},async get(e){return await(await fetch(`https://api.riskdefy.io/v3/${e}`,{method:"GET",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"}})).json()}},cQ=h.defineComponent({name:"incoming-details",components:{Details:gZ,Summary:uQ},setup(e){const r=h.computed(()=>e.incomingId),t=h.ref({id:"",transaction_found:"0",details_populated:"0",dispute_url:"",is_responded:"",card_holder:{},card:{},transaction:{action:{}},order_details:{items:[]},order2_details:{items:[]},order3_details:{items:[]},crm2_details:{},crm3_details:{},product_details:{},merchant_id:"",reason:"",dispute_cycle:{},connection_id:"",found_date:"0000-00-00 00:00:00",populated_date:"0000-00-00 00:00:00",sent_date:"0000-00-00 00:00:00",reason_condition:""}),a=h.ref({dba_name:"",processor_id:"",merchantDetails:{}}),n=h.ref({}),s=h.ref({message:{},instructions:{}}),o=h.ref({}),l=h.ref({}),d=h.ref([]);h.onMounted(async()=>{setCurrentPageTitle("Incoming Chargeback Details"),tr.setApiKey(e.apiKey),setTimeout(async()=>{await T(),await f(),DrawerComponent.reinitialization()},500)});const u=h.ref([]),f=async()=>{const{data:I}=await fetch("apis/connections?limit=100");I.success&&(u.value=[...I.data])},p=h.computed(()=>{const I=t.value.transaction;return I&&Object.keys(I).length>0&&I.transaction_id&&I.transaction_id!==""}),m=h.computed(()=>{const M=t.value.found_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),y=h.computed(()=>{const M=t.value.found_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),b=h.computed(()=>{const M=t.value.populated_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),E=h.computed(()=>{const M=t.value.populated_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),w=h.computed(()=>{const M=t.value.sent_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),S=h.computed(()=>{const M=t.value.sent_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),D=h.ref([]),T=async()=>{try{const{data:I}=await tr.get(`chargebacks/incoming?id=${r.value}`);t.value=I.data[0];try{t.value.card_holder=JSON.parse(t.value.card_holder)}catch{t.value.card_holder={}}try{t.value.card=JSON.parse(t.value.card)}catch{t.value.card={}}try{t.value.transaction=JSON.parse(t.value.transaction)}catch{t.value.transaction={action:{}}}try{t.value.dispute_cycle=JSON.parse(t.value.dispute_cycle)}catch{t.value.dispute_cycle={}}try{t.value.order_details=JSON.parse(t.value.order_details)}catch{t.value.order_details={items:[]}}try{t.value.order2_details=JSON.parse(t.value.order2_details)}catch{t.value.order2_details={items:[]}}try{t.value.product_details=JSON.parse(t.value.product_details)}catch{t.value.product_details={}}}catch{t.value={id:"",transaction_found:"0",details_populated:"0",dispute_url:"",is_responded:"",card_holder:{},card:{},transaction:{action:{}},order_details:{items:[]},order2_details:{items:[]},order3_details:{items:[]},crm2_details:{},crm3_details:{},product_details:{},merchant_id:"",reason:"",dispute_cycle:{},connection_id:"",found_date:"0000-00-00 00:00:00",populated_date:"0000-00-00 00:00:00",sent_date:"0000-00-00 00:00:00",reason_condition:""}}try{const{data:I}=await tr.get(`merchants/accounts?merchant_id=${t.value.merchant_id}`);a.value=I.data[0];try{a.value.merchantDetails=JSON.parse(a.value.merchantDetails)}catch{a.value.merchantDetails={}}}catch{a.value={dba_name:"",processor_id:"",merchantDetails:{}}}try{const{data:I}=await tr.get(`chargebacks/reasons?code=${t.value.reason}`);n.value=I.data[0]}catch{n.value={}}try{const{data:I}=await tr.get(`chargebacks/reasons_explained?code=${t.value.reason}`);s.value=I.data[0],s.value.message=JSON.parse(I.data[0].message),s.value.instructions=JSON.parse(I.data[0].instructions)}catch{s.value={message:{},instructions:{}}}try{const{data:I}=await tr.get(`processors/isos/${a.value.processor_id}`);o.value=I.data[0]}catch{o.value={}}try{const{data:I}=await tr.get(`apis/merchants?fields=id,alias_name,connection_id,endpoint_name&category=Gateway&merchant_id=${t.value.merchant_id}`);D.value=I.data}catch{D.value=[]}},P=()=>{T()},F=async()=>{var I;(I=DrawerComponent==null?void 0:DrawerComponent.getInstance("view_incoming_details_drawer"))==null||I.show()},A=async()=>{var I;try{let M=await tr.get(`chargebacks/incoming/${t.value.id}?action=evidence_images`);M.data.success&&(M.data.data[0]===null?d.value=[]:d.value=M.data.data[0]),M=await tr.get(`chargebacks/incoming/${t.value.id}?action=response_packet`),M.data.success&&(M.data.data[0]===null?l.value={}:l.value=M.data.data[0],(I=DrawerComponent==null?void 0:DrawerComponent.getInstance("add_response_drawer"))==null||I.show())}catch{l.value={},d.value=[]}},V=async()=>{try{let I=await tr.get(`chargebacks/incoming/${t.value.id}?action=evidence_images`);I.data.success&&(I.data.data[0]===null?d.value=[]:d.value=I.data.data[0]),I=await tr.get(`chargebacks/incoming/${t.value.id}?action=response_packet`),I.data.success&&(I.data.data[0]===null?l.value={}:l.value=I.data.data[0])}catch{l.value={},d.value=[]}},N=h.computed(()=>{const{transaction:I,card_holder:M,...H}=t.value;return H});return{incoming:t,isTransactionAvailable:p,incomingWithoutTransaction:N,merchant:a,reason:n,reason_explained:s,processor:o,getFoundTime:m,getPopulatedTime:b,resetIncoming:P,getSentTime:w,getSentDate:S,getFoundDate:y,getPopulatedDate:E,connections:u,onOpenResponseDrawer:A,onFormEntry:F,submitTemplate:V,templates:l,templateImages:d,apiSyncItems:D}}}),hQ={class:"row g-5 g-xl-10"},fQ={class:"col-xl-8"},vQ={class:"col-xl-4 mb-10"},pQ={class:"card"},mQ={class:"card"},gQ={class:"card card-body d-flex align-items-start mt-5 pt-5"},yQ={class:"mb-auto"},_Q={class:"card-body pt-5"},bQ={class:"timeline-label"},wQ={key:0,class:"timeline-item"},kQ={class:"timeline-label text-gray-800 fs-8"},xQ={class:"text-gray-800 ps-3 fs-8"},EQ={key:1,class:"timeline-item"},SQ={key:2,class:"timeline-item"},$Q={class:"timeline-label text-gray-800 fs-8"},DQ={class:"text-gray-800 ps-3 fs-8"},TQ={key:3,class:"timeline-item"},NQ={key:4,class:"timeline-item"},CQ={class:"timeline-label text-gray-800 fs-8"},OQ={class:"timeline-content d-flex"},PQ={class:"text-gray-800 ps-3 fs-8"},IQ={key:5,class:"timeline-item"};function MQ(e,r,t,a,n,s){const o=h.resolveComponent("Details"),l=h.resolveComponent("Summary");return h.openBlock(),h.createElementBlock("div",hQ,[h.createElementVNode("div",fQ,[h.createVNode(o,{reason_explained:e.reason_explained,reason:e.reason,merchant:e.merchant,incoming:e.incoming},null,8,["reason_explained","reason","merchant","incoming"])]),h.createElementVNode("div",vQ,[h.createElementVNode("div",pQ,[h.createElementVNode("div",mQ,[h.createVNode(l,{reason:e.reason,processor:e.processor,merchant:e.merchant,incoming:e.incoming},null,8,["reason","processor","merchant","incoming"])])]),h.createElementVNode("div",gQ,[h.createElementVNode("div",yQ,[r[6]||(r[6]=h.createElementVNode("div",{class:"align-items-center border-0"},[h.createElementVNode("h3",{class:"align-items-start flex-column"},[h.createElementVNode("span",{class:"fw-normal fs-7 text-dark ps-5"},"Response Timeline")])],-1)),h.createElementVNode("div",_Q,[h.createElementVNode("div",bQ,[e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",wQ,[h.createElementVNode("div",kQ,h.toDisplayString(e.getFoundTime),1),r[0]||(r[0]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",xQ," Transaction Found ("+h.toDisplayString(e.getFoundDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",EQ,r[1]||(r[1]=[h.createElementVNode("div",{class:"timeline-label text-gray-400 fs-8"},"00:00",-1),h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-gray-400 fs-1"})],-1),h.createElementVNode("div",{class:"text-gray-400 ps-3 fs-8"},"Transaction Not Found",-1)]))),e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",SQ,[h.createElementVNode("div",$Q,h.toDisplayString(e.getPopulatedTime),1),r[2]||(r[2]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",DQ," Details Populated ("+h.toDisplayString(e.getPopulatedDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",TQ,r[3]||(r[3]=[h.createElementVNode("div",{class:"timeline-label text-gray-400 fs-8"},"00:00",-1),h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-gray-400 fs-1"})],-1),h.createElementVNode("div",{class:"text-gray-400 ps-3 fs-8"},"Details Not Populated",-1)]))),e.incoming.sent_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",NQ,[h.createElementVNode("div",CQ,h.toDisplayString(e.getSentTime),1),r[4]||(r[4]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",OQ,[h.createElementVNode("span",PQ,"Response Sent ("+h.toDisplayString(e.getSentDate)+")",1)])])):(h.openBlock(),h.createElementBlock("div",IQ,r[5]||(r[5]=[h.createStaticVNode('<div class="timeline-label text-gray-400 fs-8">00:00</div><div class="timeline-badge"><i class="fa fa-genderless text-gray-400 fs-1"></i></div><div class="timeline-content d-flex"><span class="text-gray-400 ps-3 fs-8">Response Not Sent</span></div>',3)])))])])])])])])}const AQ=dr(cQ,[["render",MQ]]),VQ={props:{apiKey:{type:String,required:!0},incomingId:{type:String,required:!0}},data(){return{data:null}},components:{IncomingDetails:AQ}};function RQ(e,r,t,a,n,s){const o=h.resolveComponent("IncomingDetails");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(o,{apiKey:t.apiKey,incomingId:t.incomingId},null,8,["apiKey","incomingId"])])}const Pb=dr(VQ,[["render",RQ]]),LQ={install(e){e.component("Chargebacks",Pb)}};exports.Chargebacks=Pb;exports.default=LQ;
|