text: /**
   * vis-graph3d - graph3d
   * http://visjs.org/
   * 
   * Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
   * 
   * @version 0.0.0-no-version
   * @date    2019-08-18T08:45:28Z
   * 
   * @copyright (c) 2011-2017 Almende B.V, http://almende.com
   * @copyright (c) 2018-2019 visjs contributors, https://github.com/visjs
   * 
   * @license 
   * vis.js is dual licensed under both
   * 
   *   1. The Apache 2.0 License
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   *   and
   * 
   *   2. The MIT License
   *      http://opensource.org/licenses/MIT
   * 
   * vis.js may be distributed under either license.
   */
  
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vis=t.vis||{})}(this,function(t){"use strict";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function er(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function e(t,e){return t(e={exports:{}},e.exports),e.exports}function u(t){return"Symbol(".concat(void 0===t?"":t,")_",(++s+a).toString(36))}function c(t){return"object"==typeof t?null!==t:"function"==typeof t}function x(t){if(!c(t))throw TypeError(t+" is not an object!");return t}function h(t){try{return!!t()}catch(t){return!0}}function r(t){return v?l.createElement(t):{}}function d(t,e){if(!c(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!c(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function n(t){var e=y.Symbol||(y.Symbol=p.Symbol||{});"_"==t.charAt(0)||t in e||b(e,t,{value:o.f(t)})}var p=e(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),y=e(function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)}),i=(y.version,e(function(t){var e="__core-js_shared__",n=p[e]||(p[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:y.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),s=0,a=Math.random(),f=e(function(t){var e=i("wks"),n=p.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:u)("Symbol."+t))}).store=e}),o={f:f},m=!h(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),l=p.document,v=c(l)&&c(l.createElement),g=!m&&!h(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}),_=Object.defineProperty,w={f:m?Object.defineProperty:function(t,e,n){if(x(t),e=d(e,!0),x(n),g)try{return _(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},b=w.f;n("asyncIterator");function S(t,e){return O.call(t,e)}function k(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function D(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}function M(r,i,t){if(D(r),void 0===i)return r;switch(t){case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}}var O={}.hasOwnProperty,T=m?function(t,e,n){return w.f(t,e,k(1,n))}:function(t,e,n){return t[e]=n,t},Y=i("native-function-to-string",Function.toString),P=e(function(t){var s=u("src"),e="toString",a=(""+Y).split(e);y.inspectSource=function(t){return Y.call(t)},(t.exports=function(t,e,n,r){var i="function"==typeof n;i&&(S(n,"name")||T(n,"name",e)),t[e]!==n&&(i&&(S(n,s)||T(n,s,t[e]?""+t[e]:a.join(String(e)))),t===p?t[e]=n:r?t[e]?t[e]=n:T(t,e,n):(delete t[e],T(t,e,n)))})(Function.prototype,e,function(){return"function"==typeof this&&this[s]||Y.call(this)})}),E="prototype",C=function(t,e,n){var r,i,s,a,o=t&C.F,u=t&C.G,l=t&C.S,h=t&C.P,c=t&C.B,d=u?p:l?p[e]||(p[e]={}):(p[e]||{})[E],f=u?y:y[e]||(y[e]={}),m=f[E]||(f[E]={});for(r in u&&(n=e),n)s=((i=!o&&d&&void 0!==d[r])?d:n)[r],a=c&&i?M(s,p):h&&"function"==typeof s?M(Function.call,s):s,d&&P(d,r,s,t&C.U),f[r]!=s&&T(f,r,a),h&&m[r]!=s&&(m[r]=s)};p.core=y,C.F=1,C.G=2,C.S=4,C.P=8,C.B=16,C.W=32,C.U=64,C.R=128;function L(t,e,n){t&&!S(t=n?t:t.prototype,K)&&Q(t,K,{configurable:!0,value:e})}function R(t){return tt.call(t).slice(8,-1)}function A(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}function W(t){return et(A(t))}function I(t){return isNaN(t=+t)?0:(0<t?rt:nt)(t)}function N(t){return 0<t?it(I(t),9007199254740991):0}function F(t){return ot[t]||(ot[t]=u(t))}function j(t,e){var n,r=W(t),i=0,s=[];for(n in r)n!=lt&&S(r,n)&&s.push(n);for(;e.length>i;)S(r,n=e[i++])&&(~ut(s,n)||s.push(n));return s}function V(t){return Object(A(t))}function G(){}function H(t){var e=Gt[t]=bt(Rt[It]);return e._k=t,e}function z(t,e){x(t);for(var n,r=function(t){var e=ct(t),n=dt.f;if(n)for(var r,i=n(t),s=ft.f,a=0;i.length>a;)s.call(t,r=i[a++])&&e.push(r);return e}(e=W(e)),i=0,s=r.length;i<s;)$t(t,n=r[i++],e[n]);return t}function U(t){var e=jt.call(this,t=d(t,!0));return!(this===zt&&S(Gt,t)&&!S(Ht,t))&&(!(e||!S(this,t)||!S(Gt,t)||S(this,Nt)&&this[Nt][t])||e)}function B(t,e){if(t=W(t),e=d(e,!0),t!==zt||!S(Gt,e)||S(Ht,e)){var n=Et(t,e);return!n||!S(Gt,e)||S(t,Nt)&&t[Nt][e]||(n.enumerable=!0),n}}function Z(t){for(var e,n=Lt(W(t)),r=[],i=0;n.length>i;)S(Gt,e=n[i++])||e==Nt||e==Pt||r.push(e);return r}function q(t){for(var e,n=t===zt,r=Lt(n?Ht:W(t)),i=[],s=0;r.length>s;)!S(Gt,e=r[s++])||n&&!S(zt,e)||i.push(Gt[e]);return i}var X,$=C,J=e(function(t){function n(t){e(t,r,{value:{i:"O"+ ++i,w:{}}})}var r=u("meta"),e=w.f,i=0,s=Object.isExtensible||function(){return!0},a=!h(function(){return s(Object.preventExtensions({}))}),o=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!c(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!S(t,r)){if(!s(t))return"F";if(!e)return"E";n(t)}return t[r].i},getWeak:function(t,e){if(!S(t,r)){if(!s(t))return!0;if(!e)return!1;n(t)}return t[r].w},onFreeze:function(t){return a&&o.NEED&&s(t)&&!S(t,r)&&n(t),t}}}),Q=(J.KEY,J.NEED,J.fastKey,J.getWeak,J.onFreeze,w.f),K=f("toStringTag"),tt={}.toString,et=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==R(t)?t.split(""):Object(t)},nt=Math.ceil,rt=Math.floor,it=Math.min,st=Math.max,at=Math.min,ot=i("keys"),ut=(X=!1,function(t,e,n){var r,i=W(t),s=N(i.length),a=function(t,e){return(t=I(t))<0?st(t+e,0):at(t,e)}(n,s);if(X&&e!=e){for(;a<s;)if((r=i[a++])!=r)return!0}else for(;a<s;a++)if((X||a in i)&&i[a]===e)return X||a||0;return!X&&-1}),lt=F("IE_PROTO"),ht="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ct=Object.keys||function(t){return j(t,ht)},dt={f:Object.getOwnPropertySymbols},ft={f:{}.propertyIsEnumerable},mt=Array.isArray||function(t){return"Array"==R(t)},pt=m?Object.defineProperties:function(t,e){x(t);for(var n,r=ct(e),i=r.length,s=0;s<i;)w.f(t,n=r[s++],e[n]);return t},yt=p.document,vt=yt&&yt.documentElement,gt=F("IE_PROTO"),_t="prototype",wt=function(){var t,e=r("iframe"),n=ht.length;for(e.style.display="none",vt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),wt=t.F;n--;)delete wt[_t][ht[n]];return wt()},bt=Object.create||function(t,e){var n;return null!==t?(G[_t]=x(t),n=new G,G[_t]=null,n[gt]=t):n=wt(),void 0===e?n:pt(n,e)},St=ht.concat("length","prototype"),kt={f:Object.getOwnPropertyNames||function(t){return j(t,St)}},xt=kt.f,Dt={}.toString,Mt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ot={f:function(t){return Mt&&"[object Window]"==Dt.call(t)?function(t){try{return xt(t)}catch(t){return Mt.slice()}}(t):xt(W(t))}},Tt=Object.getOwnPropertyDescriptor,Yt={f:m?Tt:function(t,e){if(t=W(t),e=d(e,!0),g)try{return Tt(t,e)}catch(t){}if(S(t,e))return k(!ft.f.call(t,e),t[e])}},Pt=J.KEY,Et=Yt.f,Ct=w.f,Lt=Ot.f,Rt=p.Symbol,At=p.JSON,Wt=At&&At.stringify,It="prototype",Nt=f("_hidden"),Ft=f("toPrimitive"),jt={}.propertyIsEnumerable,Vt=i("symbol-registry"),Gt=i("symbols"),Ht=i("op-symbols"),zt=Object[It],Ut="function"==typeof Rt&&!!dt.f,Bt=p.QObject,Zt=!Bt||!Bt[It]||!Bt[It].findChild,qt=m&&h(function(){return 7!=bt(Ct({},"a",{get:function(){return Ct(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Et(zt,e);r&&delete zt[e],Ct(t,e,n),r&&t!==zt&&Ct(zt,e,r)}:Ct,Xt=Ut&&"symbol"==typeof Rt.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Rt},$t=function(t,e,n){return t===zt&&$t(Ht,e,n),x(t),e=d(e,!0),x(n),S(Gt,e)?(n.enumerable?(S(t,Nt)&&t[Nt][e]&&(t[Nt][e]=!1),n=bt(n,{enumerable:k(0,!1)})):(S(t,Nt)||Ct(t,Nt,k(1,{})),t[Nt][e]=!0),qt(t,e,n)):Ct(t,e,n)};Ut||(P((Rt=function(t){if(this instanceof Rt)throw TypeError("Symbol is not a constructor!");var e=u(0<arguments.length?t:void 0),n=function(t){this===zt&&n.call(Ht,t),S(this,Nt)&&S(this[Nt],e)&&(this[Nt][e]=!1),qt(this,e,k(1,t))};return m&&Zt&&qt(zt,e,{configurable:!0,set:n}),H(e)})[It],"toString",function(){return this._k}),Yt.f=B,w.f=$t,kt.f=Ot.f=Z,ft.f=U,dt.f=q,m&&P(zt,"propertyIsEnumerable",U,!0),o.f=function(t){return H(f(t))}),$($.G+$.W+$.F*!Ut,{Symbol:Rt});for(var Jt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Qt=0;Jt.length>Qt;)f(Jt[Qt++]);for(var Kt=ct(f.store),te=0;Kt.length>te;)n(Kt[te++]);$($.S+$.F*!Ut,"Symbol",{for:function(t){return S(Vt,t+="")?Vt[t]:Vt[t]=Rt(t)},keyFor:function(t){if(!Xt(t))throw TypeError(t+" is not a symbol!");for(var e in Vt)if(Vt[e]===t)return e},useSetter:function(){Zt=!0},useSimple:function(){Zt=!1}}),$($.S+$.F*!Ut,"Object",{create:function(t,e){return void 0===e?bt(t):z(bt(t),e)},defineProperty:$t,defineProperties:z,getOwnPropertyDescriptor:B,getOwnPropertyNames:Z,getOwnPropertySymbols:q});var ee=h(function(){dt.f(1)});function ne(t){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function re(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function ie(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}$($.S+$.F*ee,"Object",{getOwnPropertySymbols:function(t){return dt.f(V(t))}}),At&&$($.S+$.F*(!Ut||h(function(){var t=Rt();return"[null]"!=Wt([t])||"{}"!=Wt({a:t})||"{}"!=Wt(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;i<arguments.length;)r.push(arguments[i++]);if(n=e=r[1],(c(e)||void 0!==t)&&!Xt(t))return mt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Xt(e))return e}),r[1]=e,Wt.apply(At,r)}}),Rt[It][Ft]||T(Rt[It],Ft,Rt[It].valueOf),L(Rt,"Symbol"),L(Math,"Math",!0),L(p.JSON,"JSON",!0);var se,ae,oe,ue;se="keys",ae=function(){return function(t){return ct(V(t))}},oe=(y.Object||{})[se]||Object[se],(ue={})[se]=ae(oe),$($.S+$.F*h(function(){oe(1)}),"Object",ue);function le(){var t=x(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}m&&"g"!=/./g.flags&&w.f(RegExp.prototype,"flags",{configurable:!0,get:le});function he(t){P(RegExp.prototype,ce,t,!0)}var ce="toString",de=/./[ce];h(function(){return"/a/b"!=de.call({source:"a",flags:"b"})})?he(function(){var t=x(this);return"/".concat(t.source,"/","flags"in t?t.flags:!m&&t instanceof RegExp?le.call(t):void 0)}):de.name!=ce&&he(function(){return de.call(this)});function fe(t,e,n){return e+(n?_e(t,e).length:1)}function me(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),we))?n:be?R(e):"Object"==(r=R(e))&&"function"==typeof e.callee?"Arguments":r}function pe(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==me(t))throw new TypeError("RegExp#exec called on incompatible receiver");return Se.call(t,e)}var ye,ve,ge,_e=(ye=!0,function(t,e){var n,r,i=String(A(t)),s=I(e),a=i.length;return s<0||a<=s?ye?"":void 0:(n=i.charCodeAt(s))<55296||56319<n||s+1===a||(r=i.charCodeAt(s+1))<56320||57343<r?ye?i.charAt(s):n:ye?i.slice(s,s+2):r-56320+(n-55296<<10)+65536}),we=f("toStringTag"),be="Arguments"==R(function(){return arguments}()),Se=RegExp.prototype.exec,ke=RegExp.prototype.exec,xe=String.prototype.replace,De=ke,Me="lastIndex",Oe=(ve=/a/,ge=/b*/g,ke.call(ve,"a"),ke.call(ge,"a"),0!==ve[Me]||0!==ge[Me]),Te=void 0!==/()??/.exec("")[1];(Oe||Te)&&(De=function(t){var e,n,r,i,s=this;return Te&&(n=new RegExp("^"+s.source+"$(?!\\s)",le.call(s))),Oe&&(e=s[Me]),r=ke.call(s,t),Oe&&r&&(s[Me]=s.global?r.index+r[0].length:e),Te&&r&&1<r.length&&xe.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var Ye=De;$({target:"RegExp",proto:!0,forced:Ye!==/./.exec},{exec:Ye});function Pe(n,t,e){var r=f(n),s=!h(function(){var t={};return t[r]=function(){return 7},7!=""[n](t)}),i=s?!h(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===n&&(e.constructor={},e.constructor[Ee]=function(){return e}),e[r](""),!t}):void 0;if(!s||!i||"replace"===n&&!Ce||"split"===n&&!Le){var a=/./[r],o=e(A,r,""[n],function(t,e,n,r,i){return e.exec===Ye?s&&!i?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),u=o[0],l=o[1];P(String.prototype,n,u),T(RegExp.prototype,r,2==t?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}}var Ee=f("species"),Ce=!h(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Le=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}(),Re=Math.max,Ae=Math.min,We=Math.floor,Ie=/\$([$&`']|\d\d?|<[^>]*>)/g,Ne=/\$([$&`']|\d\d?)/g;Pe("replace",2,function(i,s,b,S){return[function(t,e){var n=i(this),r=null==t?void 0:t[s];return void 0!==r?r.call(t,n,e):b.call(String(n),t,e)},function(t,e){var n=S(b,t,this,e);if(n.done)return n.value;var r=x(t),i=String(this),s="function"==typeof e;s||(e=String(e));var a=r.global;if(a){var o=r.unicode;r.lastIndex=0}for(var u=[];;){var l=pe(r,i);if(null===l)break;if(u.push(l),!a)break;""===String(l[0])&&(r.lastIndex=fe(i,N(r.lastIndex),o))}for(var h,c="",d=0,f=0;f<u.length;f++){l=u[f];for(var m=String(l[0]),p=Re(Ae(I(l.index),i.length),0),y=[],v=1;v<l.length;v++)y.push(void 0===(h=l[v])?h:String(h));var g=l.groups;if(s){var _=[m].concat(y,p,i);void 0!==g&&_.push(g);var w=String(e.apply(void 0,_))}else w=k(m,i,p,y,g,e);d<=p&&(c+=i.slice(d,p)+w,d=p+m.length)}return c+i.slice(d)}];function k(s,a,o,u,l,t){var h=o+s.length,c=u.length,e=Ne;return void 0!==l&&(l=V(l),e=Ie),b.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return s;case"`":return a.slice(0,o);case"'":return a.slice(h);case"<":n=l[e.slice(1,-1)];break;default:var r=+e;if(0==r)return t;if(c<r){var i=We(r/10);return 0===i?t:i<=c?void 0===u[i-1]?e.charAt(1):u[i-1]+e.charAt(1):t}n=u[r-1]}return void 0===n?"":n})}});var Fe=f("unscopables"),je=Array.prototype;null==je[Fe]&&T(je,Fe,{});function Ve(t){je[Fe][t]=!0}function Ge(t,e){return{value:e,done:!!t}}var He={},ze={};T(ze,f("iterator"),function(){return this});function Ue(){return this}var Be=F("IE_PROTO"),Ze=Object.prototype,qe=Object.getPrototypeOf||function(t){return t=V(t),S(t,Be)?t[Be]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ze:null},Xe=f("iterator"),$e=!([].keys&&"next"in[].keys()),Je="values",Qe=function(t,e,n,r,i,s,a){!function(t,e,n){t.prototype=bt(ze,{next:k(1,n)}),L(t,e+" Iterator")}(n,e,r);function o(t){if(!$e&&t in m)return m[t];switch(t){case"keys":case Je:return function(){return new n(this,t)}}return function(){return new n(this,t)}}var u,l,h,c=e+" Iterator",d=i==Je,f=!1,m=t.prototype,p=m[Xe]||m["@@iterator"]||i&&m[i],y=p||o(i),v=i?d?o("entries"):y:void 0,g="Array"==e&&m.entries||p;if(g&&(h=qe(g.call(new t)))!==Object.prototype&&h.next&&(L(h,c,!0),"function"!=typeof h[Xe]&&T(h,Xe,Ue)),d&&p&&p.name!==Je&&(f=!0,y=function(){return p.call(this)}),!$e&&!f&&m[Xe]||T(m,Xe,y),He[e]=y,He[c]=Ue,i)if(u={values:d?y:o(Je),keys:s?y:o("keys"),entries:v},a)for(l in u)l in m||P(m,l,u[l]);else $($.P+$.F*($e||f),e,u);return u}(Array,"Array",function(t,e){this._t=W(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,Ge(1)):Ge(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");He.Arguments=He.Array,Ve("keys"),Ve("values"),Ve("entries");for(var Ke=f("iterator"),tn=f("toStringTag"),en=He.Array,nn={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},rn=ct(nn),sn=0;sn<rn.length;sn++){var an,on=rn[sn],un=nn[on],ln=p[on],hn=ln&&ln.prototype;if(hn&&(hn[Ke]||T(hn,Ke,en),hn[tn]||T(hn,tn,on),He[on]=en,un))for(an in Qe)hn[an]||P(hn,an,Qe[an],!0)}var cn={};cn[f("toStringTag")]="z",cn+""!="[object z]"&&P(Object.prototype,"toString",function(){return"[object "+me(this)+"]"},!0);var dn,fn=ft.f,mn=(dn=!1,function(t){for(var e,n=W(t),r=ct(n),i=r.length,s=0,a=[];s<i;)e=r[s++],m&&!fn.call(n,e)||a.push(dn?[e,n[e]]:n[e]);return a});$($.S,"Object",{values:function(t){return mn(t)}});var pn=f("match"),yn=f("species"),vn=Math.min,gn=[].push,_n="split",wn="length",bn="lastIndex",Sn=4294967295,kn=!h(function(){RegExp(Sn,"y")});Pe("split",2,function(i,s,y,v){var g;return g="c"=="abbc"[_n](/(b)*/)[1]||4!="test"[_n](/(?:)/,-1)[wn]||2!="ab"[_n](/(?:ab)*/)[wn]||4!="."[_n](/(.?)(.?)/)[wn]||1<"."[_n](/()()/)[wn]||""[_n](/.?/)[wn]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!function(t){var e;return c(t)&&(void 0!==(e=t[pn])?!!e:"RegExp"==R(t))}(t))return y.call(n,t,e);for(var r,i,s,a=[],o=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,l=void 0===e?Sn:e>>>0,h=new RegExp(t.source,o+"g");(r=Ye.call(h,n))&&!(u<(i=h[bn])&&(a.push(n.slice(u,r.index)),1<r[wn]&&r.index<n[wn]&&gn.apply(a,r.slice(1)),s=r[0][wn],u=i,a[wn]>=l));)h[bn]===r.index&&h[bn]++;return u===n[wn]?!s&&h.test("")||a.push(""):a.push(n.slice(u)),a[wn]>l?a.slice(0,l):a}:"0"[_n](void 0,0)[wn]?function(t,e){return void 0===t&&0===e?[]:y.call(this,t,e)}:y,[function(t,e){var n=i(this),r=null==t?void 0:t[s];return void 0!==r?r.call(t,n,e):g.call(String(n),t,e)},function(t,e){var n=v(g,t,this,e,g!==y);if(n.done)return n.value;var r=x(t),i=String(this),s=function(t,e){var n,r=x(t).constructor;return void 0===r||null==(n=x(r)[yn])?e:D(n)}(r,RegExp),a=r.unicode,o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(kn?"y":"g"),u=new s(kn?r:"^(?:"+r.source+")",o),l=void 0===e?Sn:e>>>0;if(0==l)return[];if(0===i.length)return null===pe(u,i)?[i]:[];for(var h=0,c=0,d=[];c<i.length;){u.lastIndex=kn?c:0;var f,m=pe(u,kn?i:i.slice(c));if(null===m||(f=vn(N(u.lastIndex+(kn?0:c)),i.length))===h)c=fe(i,c,a);else{if(d.push(i.slice(h,c)),d.length===l)return d;for(var p=1;p<=m.length-1;p++)if(d.push(m[p]),d.length===l)return d;c=h=f}}return d.push(i.slice(h)),d}]});var xn=Object.assign,Dn=!xn||h(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=xn({},t)[n]||Object.keys(xn({},e)).join("")!=r})?function(t,e){for(var n=V(t),r=arguments.length,i=1,s=dt.f,a=ft.f;i<r;)for(var o,u=et(arguments[i++]),l=s?ct(u).concat(s(u)):ct(u),h=l.length,c=0;c<h;)o=l[c++],m&&!a.call(u,o)||(n[o]=u[o]);return n}:xn;$($.S+$.F,"Object",{assign:Dn});function Mn(t,e){if(x(t),!c(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}function On(t,e,n){var r={},i=h(function(){return!!Pn[t]()||"​"!="​"[t]()}),s=r[t]=i?e(Rn):Pn[t];n&&(r[n]=s),$($.P+$.F*i,"String",r)}function Tn(t){var e=d(t,!1);if("string"==typeof e&&2<e.length){var n,r,i,s=(e=Un?e.trim():Fn(e,3)).charCodeAt(0);if(43===s||45===s){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===s){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,o=e.slice(2),u=0,l=o.length;u<l;u++)if((a=o.charCodeAt(u))<48||i<a)return NaN;return parseInt(o,r)}}return+e}var Yn={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=M(Function.call,Yt.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return Mn(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:Mn}.set,Pn="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff",En="["+Pn+"]",Cn=RegExp("^"+En+En+"*"),Ln=RegExp(En+En+"*$"),Rn=On.trim=function(t,e){return t=String(A(t)),1&e&&(t=t.replace(Cn,"")),2&e&&(t=t.replace(Ln,"")),t},An=On,Wn=kt.f,In=Yt.f,Nn=w.f,Fn=An.trim,jn="Number",Vn=p[jn],Gn=Vn,Hn=Vn.prototype,zn=R(bt(Hn))==jn,Un="trim"in String.prototype;if(!Vn(" 0o1")||!Vn("0b1")||Vn("+0x1")){Vn=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof Vn&&(zn?h(function(){Hn.valueOf.call(n)}):R(n)!=jn)?function(t,e,n){var r,i=e.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&c(r)&&Yn&&Yn(t,r),t}(new Gn(Tn(e)),n,Vn):Tn(e)};for(var Bn,Zn=m?Wn(Gn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),qn=0;Zn.length>qn;qn++)S(Gn,Bn=Zn[qn])&&!S(Vn,Bn)&&Nn(Vn,Bn,In(Gn,Bn));(Vn.prototype=Hn).constructor=Vn,P(p,jn,Vn)}for(var Xn=e(function(tr,t){tr.exports=function(){var e,i;function l(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,r){return Ce(t,e,n,r,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=m(t),n=i.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function y(t){var e=f(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var v=l.momentProperties=[];function g(t,e){var n,r,i;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=m(e)),s(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)r=v[n],s(i=e[r])||(t[r]=i);return t}var n=!1;function _(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===n&&(n=!0,l.updateOffset(this),n=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=b(e)),n}function k(t,e,n){var r,i=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&S(t[r])!==S(e[r]))&&a++;return a+s}function x(t){!1===l.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(i,s){var a=!0;return d(function(){if(null!=l.deprecationHandler&&l.deprecationHandler(null,i),a){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var r in t+="\n["+n+"] ",arguments[0])t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}x(i+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var D,M={};function O(t,e){null!=l.deprecationHandler&&l.deprecationHandler(t,e),M[t]||(x(e),M[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t,e){var n,r=d({},t);for(n in e)c(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},d(r[n],t[n]),d(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)c(t,n)&&!c(e,n)&&o(t[n])&&(r[n]=d({},r[n]));return r}function P(t){null!=t&&this.set(t)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var E={};function C(t,e){var n=t.toLowerCase();E[n]=E[n+"s"]=E[e]=t}function L(t){return"string"==typeof t?E[t]||E[t.toLowerCase()]:void 0}function R(t){var e,n,r={};for(n in t)c(t,n)&&(e=L(n))&&(r[e]=t[n]);return r}var A={};function W(t,e){A[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:A[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(t,e,n){var r=""+Math.abs(t),i=e-r.length,s=0<=t;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},G={};function H(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(G[t]=i),e&&(G[e[0]]=function(){return N(i.apply(this,arguments),e[1],e[2])}),n&&(G[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t,e){return t.isValid()?(e=B(e,t.localeData()),V[e]=V[e]||function(r){var t,i,s=r.match(F);for(t=0,i=s.length;t<i;t++)G[s[t]]?s[t]=G[s[t]]:s[t]=z(s[t]);return function(t){var e,n="";for(e=0;e<i;e++)n+=T(s[e])?s[e].call(t,r):s[e];return n}}(e),V[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;0<=n&&j.test(t);)t=t.replace(j,r),j.lastIndex=0,n-=1;return t}var Z=/\d/,q=/\d\d/,X=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,st=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,lt={};function ht(t,n,r){lt[t]=T(n)?n:function(t,e){return t&&r?r:n}}function ct(t,e){return c(lt,t)?lt[t](e._strict,e._locale):new RegExp(function(t){return dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}(t))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function mt(t,n){var e,r=n;for("string"==typeof t&&(t=[t]),u(n)&&(r=function(t,e){e[n]=S(t)}),e=0;e<t.length;e++)ft[t[e]]=r}function pt(t,i){mt(t,function(t,e,n,r){n._w=n._w||{},i(t,n._w,n,r)})}function yt(t,e,n){null!=e&&c(ft,t)&&ft[t](e,n._a,n,t)}var vt=0,gt=1,_t=2,wt=3,bt=4,St=5,kt=6,xt=7,Dt=8;function Mt(t){return Ot(t)?366:365}function Ot(t){return t%4==0&&t%100!=0||t%400==0}H("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),C("year","y"),W("year",1),ht("Y",st),ht("YY",Q,q),ht("YYYY",nt,$),ht("YYYYY",rt,J),ht("YYYYYY",rt,J),mt(["YYYYY","YYYYYY"],vt),mt("YYYY",function(t,e){e[vt]=2===t.length?l.parseTwoDigitYear(t):S(t)}),mt("YY",function(t,e){e[vt]=l.parseTwoDigitYear(t)}),mt("Y",function(t,e){e[vt]=parseInt(t,10)}),l.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Tt,Yt=Pt("FullYear",!0);function Pt(e,n){return function(t){return null!=t?(Ct(this,e,t),l.updateOffset(this,n),this):Et(this,e)}}function Et(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Ct(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Ot(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Ot(t)?29:28:31-n%7%2}Tt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),H("MMMM",0,0,function(t){return this.localeData().months(this,t)}),C("month","M"),W("month",8),ht("M",Q),ht("MM",Q,q),ht("MMM",function(t,e){return e.monthsShortRegex(t)}),ht("MMMM",function(t,e){return e.monthsRegex(t)}),mt(["M","MM"],function(t,e){e[gt]=S(t)-1}),mt(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[gt]=i:m(n).invalidMonth=t});var Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e,n){var r,i,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null}function Nt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(Nt(this,t),l.updateOffset(this,!0),this):Et(this,"Month")}var jt=ut;var Vt=ut;function Gt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],s=[];for(e=0;e<12;e++)n=f([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),s.sort(t),e=0;e<12;e++)r[e]=dt(r[e]),i[e]=dt(i[e]);for(e=0;e<24;e++)s[e]=dt(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ht(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function zt(t,e,n){var r=7+e-n,i=(7+Ht(t,0,r).getUTCDay()-e)%7;return r-i-1}function Ut(t,e,n,r,i){var s,a,o=(7+n-r)%7,u=zt(t,r,i),l=1+7*(e-1)+o+u;return a=l<=0?Mt(s=t-1)+l:l>Mt(t)?(s=t+1,l-Mt(t)):(s=t,l),{year:s,dayOfYear:a}}function Bt(t,e,n){var r,i,s=zt(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?(i=t.year()-1,r=a+Zt(i,e,n)):a>Zt(t.year(),e,n)?(r=a-Zt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Zt(t,e,n){var r=zt(t,e,n),i=zt(t+1,e,n);return(Mt(t)-r+i)/7}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),W("week",5),W("isoWeek",5),ht("w",Q),ht("ww",Q,q),ht("W",Q),ht("WW",Q,q),pt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=S(t)});function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}H("d",0,"do","day"),H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),ht("d",Q),ht("e",Q),ht("E",Q),ht("dd",function(t,e){return e.weekdaysMinRegex(t)}),ht("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ht("dddd",function(t,e){return e.weekdaysRegex(t)}),pt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:m(n).invalidWeekday=t}),pt(["d","e","E"],function(t,e,n,r){e[r]=S(t)});var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qt(t,e,n){var r,i,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null}var Kt=ut;var te=ut;var ee=ut;function ne(){function t(t,e){return e.length-t.length}var e,n,r,i,s,a=[],o=[],u=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(r),o.push(i),u.push(s),l.push(r),l.push(i),l.push(s);for(a.sort(t),o.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)o[e]=dt(o[e]),u[e]=dt(u[e]),l[e]=dt(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function re(){return this.hours()%12||12}function ie(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function se(t,e){return e._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,re),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)}),H("hmmss",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),ie("a",!0),ie("A",!1),C("hour","h"),W("hour",13),ht("a",se),ht("A",se),ht("H",Q),ht("h",Q),ht("k",Q),ht("HH",Q,q),ht("hh",Q,q),ht("kk",Q,q),ht("hmm",K),ht("hmmss",tt),ht("Hmm",K),ht("Hmmss",tt),mt(["H","HH"],wt),mt(["k","kk"],function(t,e,n){var r=S(t);e[wt]=24===r?0:r}),mt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),mt(["h","hh"],function(t,e,n){e[wt]=S(t),m(n).bigHour=!0}),mt("hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r)),m(n).bigHour=!0}),mt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i)),m(n).bigHour=!0}),mt("Hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r))}),mt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i))});var ae,oe=Pt("Hours",!0),ue={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Wt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:Jt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},le={},he={};function ce(t){return t?t.toLowerCase().replace("_","-"):t}function de(t){var e=null;if(!le[t]&&tr&&tr.exports)try{e=ae._abbr;var n=er;n("./locale/"+t),fe(e)}catch(t){}return le[t]}function fe(t,e){var n;return t&&((n=s(e)?pe(t):me(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function me(t,e){if(null===e)return delete le[t],null;var n,r=ue;if(e.abbr=t,null!=le[t])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=le[t]._config;else if(null!=e.parentLocale)if(null!=le[e.parentLocale])r=le[e.parentLocale]._config;else{if(null==(n=de(e.parentLocale)))return he[e.parentLocale]||(he[e.parentLocale]=[]),he[e.parentLocale].push({name:t,config:e}),null;r=n._config}return le[t]=new P(Y(r,e)),he[t]&&he[t].forEach(function(t){me(t.name,t.config)}),fe(t),le[t]}function pe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!a(t)){if(e=de(t))return e;t=[t]}return function(t){var e,n,r,i,s=0;for(;s<t.length;){for(i=ce(t[s]).split("-"),e=i.length,n=(n=ce(t[s+1]))?n.split("-"):null;0<e;){if(r=de(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&k(i,n,!0)>=e-1)break;e--}s++}return ae}(t)}function ye(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[_t]<1||n[_t]>Lt(n[vt],n[gt])?_t:n[wt]<0||24<n[wt]||24===n[wt]&&(0!==n[bt]||0!==n[St]||0!==n[kt])?wt:n[bt]<0||59<n[bt]?bt:n[St]<0||59<n[St]?St:n[kt]<0||999<n[kt]?kt:-1,m(t)._overflowDayOfYear&&(e<vt||_t<e)&&(e=_t),m(t)._overflowWeeks&&-1===e&&(e=xt),m(t)._overflowWeekday&&-1===e&&(e=Dt),m(t).overflow=e),t}function ve(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,r,i,s,a=[];if(!t._d){for(r=function(t){var e=new Date(l.now());if(t._useUTC)return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()];return[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[_t]&&null==t._a[gt]&&function(t){var e,n,r,i,s,a,o,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)s=1,a=4,n=ve(e.GG,t._a[vt],Bt(Le(),1,4).year),r=ve(e.W,1),((i=ve(e.E,1))<1||7<i)&&(u=!0);else{s=t._locale._week.dow,a=t._locale._week.doy;var l=Bt(Le(),s,a);n=ve(e.gg,t._a[vt],l.year),r=ve(e.w,l.week),null!=e.d?((i=e.d)<0||6<i)&&(u=!0):null!=e.e?(i=e.e+s,(e.e<0||6<e.e)&&(u=!0)):i=s}r<1||r>Zt(n,s,a)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(o=Ut(n,r,i,s,a),t._a[vt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ve(t._a[vt],r[vt]),(t._dayOfYear>Mt(s)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Ht(s,0,t._dayOfYear),t._a[gt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[bt]&&0===t._a[St]&&0===t._a[kt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Ht:function(t,e,n,r,i,s,a){var o;t<100&&0<=t?(o=new Date(t+400,e,n,r,i,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,s,a);return o}).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(m(t).weekdayMismatch=!0)}}var _e=/^\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)?)?$/,we=/^\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)?)?$/,be=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["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}/]],ke=[["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/]],xe=/^\/?Date\((\-?\d+)/i;function De(t){var e,n,r,i,s,a,o=t._i,u=_e.exec(o)||we.exec(o);if(u){for(m(t).iso=!0,e=0,n=Se.length;e<n;e++)if(Se[e][1].exec(u[1])){i=Se[e][0],r=!1!==Se[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=ke.length;e<n;e++)if(ke[e][1].exec(u[3])){s=(u[2]||" ")+ke[e][0];break}if(null==s)return void(t._isValid=!1)}if(!r&&null!=s)return void(t._isValid=!1);if(u[4]){if(!be.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(s||"")+(a||""),Pe(t)}else t._isValid=!1}var Me=/^(?:(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}))$/;function Oe(t,e,n,r,i,s){var a=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),Wt.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&a.push(parseInt(s,10)),a}var Te={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ye(t){var e=Me.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Oe(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var r=$t.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return m(n).weekdayMismatch=!0,n._isValid=!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){{if(t)return Te[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return 60*((r-i)/100)+i}}(e[8],e[9],e[10]),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Pe(t){if(t._f!==l.ISO_8601)if(t._f!==l.RFC_2822){t._a=[],m(t).empty=!0;var e,n,r,i,s,a=""+t._i,o=a.length,u=0;for(r=B(t._f,t._locale).match(F)||[],e=0;e<r.length;e++)i=r[e],(n=(a.match(ct(i,t))||[])[0])&&(0<(s=a.substr(0,a.indexOf(n))).length&&m(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),u+=n.length),G[i]?(n?m(t).empty=!1:m(t).unusedTokens.push(i),yt(i,n,t)):t._strict&&!n&&m(t).unusedTokens.push(i);m(t).charsLeftOver=o-u,0<a.length&&m(t).unusedInput.push(a),t._a[wt]<=12&&!0===m(t).bigHour&&0<t._a[wt]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var r;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0)),e)}(t._locale,t._a[wt],t._meridiem),ge(t),ye(t)}else Ye(t);else De(t)}function Ee(t){var e=t._i,n=t._f;return t._locale=t._locale||pe(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(ye(e)):(h(e)?t._d=e:a(n)?function(t){var e,n,r,i,s;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)s=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Pe(e),p(e)&&(s+=m(e).charsLeftOver,s+=10*m(e).unusedTokens.length,m(e).score=s,(null==r||s<r)&&(r=s,n=e));d(t,n||e)}(t):n?Pe(t):function(t){var e=t._i;s(e)?t._d=new Date(l.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=xe.exec(t._i);if(null!==e)return t._d=new Date(+e[1]);{if(De(t),!1!==t._isValid)return;delete t._isValid}{if(Ye(t),!1!==t._isValid)return;delete t._isValid}l.createFromInputFallback(t)}(t):a(e)?(t._a=r(e.slice(0),function(t){return parseInt(t,10)}),ge(t)):o(e)?function(t){if(t._d)return;var e=R(t._i);t._a=r([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}(t):u(e)?t._d=new Date(e):l.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ce(t,e,n,r,i){var s={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){{if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}}(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,function(t){var e=new _(ye(Ee(t)));e._nextDay&&(e.add(1,"d"),e._nextDay=void 0);return e}(s)}function Le(t,e,n,r){return Ce(t,e,n,r,!1)}l.createFromInputFallback=t("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),l.ISO_8601=function(){},l.RFC_2822=function(){};var Re=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),Ae=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function We(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Le();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=R(t),n=e.year||0,r=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Tt.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ie.length;++r)if(t[Ie[r]]){if(n)return!1;parseFloat(t[Ie[r]])!==S(t[Ie[r]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=pe(),this._bubble()}function Fe(t){return t instanceof Ne}function je(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ve(t,n){H(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}Ve("Z",":"),Ve("ZZ",""),ht("Z",ot),ht("ZZ",ot),mt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=He(ot,t)});var Ge=/([\+\-]|\d\d)/gi;function He(t,e){var n=(e||"").match(t);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ge)||["-",0,0],s=60*i[1]+S(i[2]);return 0===s?0:"+"===i[0]?s:-s}function ze(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(w(t)||h(t)?t.valueOf():Le(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),l.updateOffset(n,!1),n):Le(t).local()}function Ue(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}l.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,r,i,s=t,a=null;return Fe(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Ze.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:S(a[_t])*n,h:S(a[wt])*n,m:S(a[bt])*n,s:S(a[St])*n,ms:S(je(1e3*a[kt]))*n}):(a=qe.exec(t))?(n="-"===a[1]?-1:1,s={y:$e(a[2],n),M:$e(a[3],n),w:$e(a[4],n),d:$e(a[5],n),h:$e(a[6],n),m:$e(a[7],n),s:$e(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ze(e,t),t.isBefore(e)?n=Je(t,e):((n=Je(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Le(s.from),Le(s.to)),(s={}).ms=i.milliseconds,s.M=i.months),r=new Ne(s),Fe(t)&&c(t,"_locale")&&(r._locale=t._locale),r}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Qe(r,i){return function(t,e){var n;return null===e||isNaN(+e)||(O(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ke(this,Xe(t="string"==typeof t?+t:t,e),r),this}}function Ke(t,e,n,r){var i=e._milliseconds,s=je(e._days),a=je(e._months);t.isValid()&&(r=null==r||r,a&&Nt(t,Et(t,"Month")+a*n),s&&Ct(t,"Date",Et(t,"Date")+s*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&l.updateOffset(t,s||a))}Xe.fn=Ne.prototype,Xe.invalid=function(){return Xe(NaN)};var tn=Qe(1,"add"),en=Qe(-1,"subtract");function nn(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");return r=e-s<0?(n=t.clone().add(i-1,"months"),(e-s)/(s-n)):(n=t.clone().add(1+i,"months"),(e-s)/(n-s)),-(i+r)||0}function rn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=pe(t))&&(this._locale=e),this)}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function an(){return this._locale}var on=126227808e5;function un(t,e){return(t%e+e)%e}function ln(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-on:new Date(t,e,n).valueOf()}function hn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-on:Date.UTC(t,e,n)}function cn(t,e){H(0,[t,t.length],0,e)}function dn(t,e,n,r,i){var s;return null==t?Bt(this,r,i).year:((s=Zt(t,r,i))<e&&(e=s),function(t,e,n,r,i){var s=Ut(t,e,n,r,i),a=Ht(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,r,i))}H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),ht("G",st),ht("g",st),ht("GG",Q,q),ht("gg",Q,q),ht("GGGG",nt,$),ht("gggg",nt,$),ht("GGGGG",rt,J),ht("ggggg",rt,J),pt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=S(t)}),pt(["gg","GG"],function(t,e,n,r){e[r]=l.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),C("quarter","Q"),W("quarter",7),ht("Q",Z),mt("Q",function(t,e){e[gt]=3*(S(t)-1)}),H("D",["DD",2],"Do","date"),C("date","D"),W("date",9),ht("D",Q),ht("DD",Q,q),ht("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],_t),mt("Do",function(t,e){e[_t]=S(t.match(Q)[0])});var fn=Pt("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),W("dayOfYear",4),ht("DDD",et),ht("DDDD",X),mt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=S(t)}),H("m",["mm",2],0,"minute"),C("minute","m"),W("minute",14),ht("m",Q),ht("mm",Q,q),mt(["m","mm"],bt);var mn=Pt("Minutes",!1);H("s",["ss",2],0,"second"),C("second","s"),W("second",15),ht("s",Q),ht("ss",Q,q),mt(["s","ss"],St);var pn,yn=Pt("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),W("millisecond",16),ht("S",et,Z),ht("SS",et,q),ht("SSS",et,X),pn="SSSS";pn.length<=9;pn+="S")ht(pn,it);function vn(t,e){e[kt]=S(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")mt(pn,vn);var gn=Pt("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var _n=_.prototype;function wn(t){return t}_n.add=tn,_n.calendar=function(t,e){var n=t||Le(),r=ze(n,this).startOf("day"),i=l.calendarFormat(this,r)||"sameElse",s=e&&(T(e[i])?e[i].call(this,n):e[i]);return this.format(s||this.localeData().calendar(i,this,Le(n)))},_n.clone=function(){return new _(this)},_n.diff=function(t,e,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=ze(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=L(e)){case"year":s=nn(this,r)/12;break;case"month":s=nn(this,r);break;case"quarter":s=nn(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:b(s)},_n.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?hn:ln;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-un(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-un(e,1e3)-1}return this._d.setTime(e),l.updateOffset(this,!0),this},_n.format=function(t){t=t||(this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},_n.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.fromNow=function(t){return this.from(Le(),t)},_n.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.toNow=function(t){return this.to(Le(),t)},_n.get=function(t){if(T(this[t=L(t)]))return this[t]();return this},_n.invalidAt=function(){return m(this).overflow},_n.isAfter=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()},_n.isBefore=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()},_n.isBetween=function(t,e,n,r){var i=w(t)?t:Le(t),s=w(e)?e:Le(e);return!!(this.isValid()&&i.isValid()&&s.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(s,n):!this.isAfter(s,n)))},_n.isSame=function(t,e){var n,r=w(t)?t:Le(t);if(!this.isValid()||!r.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())},_n.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},_n.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},_n.isValid=function(){return p(this)},_n.lang=sn,_n.locale=rn,_n.localeData=an,_n.max=Ae,_n.min=Re,_n.parsingFlags=function(){return d({},m(this))},_n.set=function(t,e){if("object"==typeof t)for(var n=I(t=R(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(T(this[t=L(t)]))return this[t](e);return this},_n.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?hn:ln;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=un(e,6e4);break;case"second":e=this._d.valueOf(),e-=un(e,1e3)}return this._d.setTime(e),l.updateOffset(this,!0),this},_n.subtract=en,_n.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},_n.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;if(n.year()<0||9999<n.year())return U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(T(Date.prototype.toISOString))return e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z"));return U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=Yt,_n.isLeapYear=function(){return Ot(this.year())},_n.weekYear=function(t){return dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(t){return dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},_n.month=Ft,_n.daysInMonth=function(){return Lt(this.year(),this.month())},_n.week=_n.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},_n.isoWeek=_n.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},_n.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},_n.isoWeeksInYear=function(){return Zt(this.year(),1,4)},_n.date=fn,_n.day=_n.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(n=t,r=this.localeData(),t="string"==typeof n?isNaN(n)?"number"!=typeof(n=r.weekdaysParse(n))?null:n:parseInt(n,10):n,this.add(t-e,"d")):e;var n,r},_n.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},_n.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this.day()||7;var e=(n=t,r=this.localeData(),"string"!=typeof n?isNaN(n)?null:n:r.weekdaysParse(n)%7||7);return this.day(this.day()%7?e:e-7)}var n,r},_n.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},_n.hour=_n.hours=oe,_n.minute=_n.minutes=mn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(t,e,n){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this._isUTC?i:Ue(this);if("string"==typeof t){if(null===(t=He(ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ue(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?Ke(this,Xe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}},_n.utc=function(t){return this.utcOffset(0,t)},_n.local=function(t){this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ue(this),"m"));return this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Le(t).utcOffset():0,(this.utcOffset()-t)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Be,_n.isUTC=Be,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=t("dates accessor is deprecated. Use date instead.",fn),_n.months=t("months accessor is deprecated. Use month instead",Ft),_n.years=t("years accessor is deprecated. Use year instead",Yt),_n.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),_n.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=Ee(t))._a){var e=t._isUTC?f(t._a):Le(t._a);this._isDSTShifted=this.isValid()&&0<k(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var bn=P.prototype;function Sn(t,e,n,r){var i=pe(),s=f().set(r,e);return i[n](s,t)}function kn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Sn(t,r,n,"month");return i}function xn(t,e,n,r){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var i,s=pe(),a=t?s._week.dow:0;if(null!=n)return Sn(e,(n+a)%7,r,"day");var o=[];for(i=0;i<7;i++)o[i]=Sn(e,(i+a)%7,r,"day");return o}bn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return T(r)?r.call(e,n):r},bn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return!e&&n?(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]):e},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(t){return this._ordinal.replace("%d",t)},bn.preparse=wn,bn.postformat=wn,bn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return T(i)?i(t,e,n,r):i.replace(/%d/i,t)},bn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)},bn.set=function(t){var e,n;for(n in t)T(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},bn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(t,e,n){var r,i,s;if(this._monthsParseExact)return It.call(this,t,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},bn.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Gt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Vt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Gt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},bn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bn.weekdaysParse=function(t,e,n){var r,i,s;if(this._weekdaysParseExact)return Qt.call(this,t,e,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},bn.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},fe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th";return t+n}}),l.lang=t("moment.lang is deprecated. Use moment.locale instead.",fe),l.langData=t("moment.langData is deprecated. Use moment.localeData instead.",pe);var Dn=Math.abs;function Mn(t,e,n,r){var i=Xe(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function On(t){return t<0?Math.floor(t):Math.ceil(t)}function Tn(t){return 4800*t/146097}function Yn(t){return 146097*t/4800}function Pn(t){return function(){return this.as(t)}}var En=Pn("ms"),Cn=Pn("s"),Ln=Pn("m"),Rn=Pn("h"),An=Pn("d"),Wn=Pn("w"),In=Pn("M"),Nn=Pn("Q"),Fn=Pn("y");function jn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Vn=jn("milliseconds"),Gn=jn("seconds"),Hn=jn("minutes"),zn=jn("hours"),Un=jn("days"),Bn=jn("months"),Zn=jn("years");var qn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11};var $n=Math.abs;function Jn(t){return(0<t)-(t<0)||+t}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=$n(this._milliseconds)/1e3,r=$n(this._days),i=$n(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var s=b(i/12),a=i%=12,o=r,u=e,l=t,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=Jn(this._months)!==Jn(c)?"-":"",m=Jn(this._days)!==Jn(c)?"-":"",p=Jn(this._milliseconds)!==Jn(c)?"-":"";return d+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||h?"T":"")+(u?p+u+"H":"")+(l?p+l+"M":"")+(h?p+h+"S":"")}var Kn=Ne.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),t.milliseconds=Dn(t.milliseconds),t.seconds=Dn(t.seconds),t.minutes=Dn(t.minutes),t.hours=Dn(t.hours),t.months=Dn(t.months),t.years=Dn(t.years),this},Kn.add=function(t,e){return Mn(this,t,e,1)},Kn.subtract=function(t,e){return Mn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Tn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Yn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=En,Kn.asSeconds=Cn,Kn.asMinutes=Ln,Kn.asHours=Rn,Kn.asDays=An,Kn.asWeeks=Wn,Kn.asMonths=In,Kn.asQuarters=Nn,Kn.asYears=Fn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kn._bubble=function(){var t,e,n,r,i,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=s&&0<=a&&0<=o||s<=0&&a<=0&&o<=0||(s+=864e5*On(Yn(o)+a),o=a=0),u.milliseconds=s%1e3,t=b(s/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),i=b(Tn(a)),o+=i,a-=On(Yn(i)),r=b(o/12),o%=12,u.days=a,u.months=o,u.years=r,this},Kn.clone=function(){return Xe(this)},Kn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=Vn,Kn.seconds=Gn,Kn.minutes=Hn,Kn.hours=zn,Kn.days=Un,Kn.weeks=function(){return b(this.days()/7)},Kn.months=Bn,Kn.years=Zn,Kn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=Xe(t).abs(),i=qn(r.as("s")),s=qn(r.as("m")),a=qn(r.as("h")),o=qn(r.as("d")),u=qn(r.as("M")),l=qn(r.as("y")),h=i<=Xn.ss&&["s",i]||i<Xn.s&&["ss",i]||s<=1&&["m"]||s<Xn.m&&["mm",s]||a<=1&&["h"]||a<Xn.h&&["hh",a]||o<=1&&["d"]||o<Xn.d&&["dd",o]||u<=1&&["M"]||u<Xn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return h[2]=e,h[3]=0<+t,h[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,h)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Kn.toISOString=Qn,Kn.toString=Qn,Kn.toJSON=Qn,Kn.locale=rn,Kn.localeData=an,Kn.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Kn.lang=sn,H("X",0,0,"unix"),H("x",0,0,"valueOf"),ht("x",st),ht("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),mt("x",function(t,e,n){n._d=new Date(S(t))}),l.version="2.24.0",function(t){e=t}(Le),l.fn=_n,l.min=function(){return We("isBefore",[].slice.call(arguments,0))},l.max=function(){return We("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=f,l.unix=function(t){return Le(1e3*t)},l.months=function(t,e){return kn(t,e,"months")},l.isDate=h,l.locale=fe,l.invalid=y,l.duration=Xe,l.isMoment=w,l.weekdays=function(t,e,n){return xn(t,e,n,"weekdays")},l.parseZone=function(){return Le.apply(null,arguments).parseZone()},l.localeData=pe,l.isDuration=Fe,l.monthsShort=function(t,e){return kn(t,e,"monthsShort")},l.weekdaysMin=function(t,e,n){return xn(t,e,n,"weekdaysMin")},l.defineLocale=me,l.updateLocale=function(t,e){if(null!=e){var n,r,i=ue;null!=(r=de(t))&&(i=r._config),e=Y(i,e),(n=new P(e)).parentLocale=le[t],le[t]=n,fe(t)}else null!=le[t]&&(null!=le[t].parentLocale?le[t]=le[t].parentLocale:null!=le[t]&&delete le[t]);return le[t]},l.locales=function(){return D(le)},l.weekdaysShort=function(t,e,n){return xn(t,e,n,"weekdaysShort")},l.normalizeUnits=L,l.relativeTimeRounding=function(t){return void 0!==t?"function"==typeof t&&(qn=t,!0):qn},l.relativeTimeThreshold=function(t,e){return void 0!==Xn[t]&&(void 0===e?Xn[t]:(Xn[t]=e,"s"===t&&(Xn.ss=e-1),!0))},l.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},l.prototype=_n,l.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"},l}()}),$n=[],Jn=0;Jn<256;Jn++)$n[Jn]=(Jn+256).toString(16).substr(1);for(var Qn=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var n=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}(),Kn=[],tr=0;tr<256;tr++)Kn[tr]=(tr+256).toString(16).substr(1);var nr=Qn();nr[0],nr[1],nr[2],nr[3],nr[4],nr[5],nr[6],nr[7];function rr(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length?arguments[1]:void 0,n=e&&(2<arguments.length?arguments[2]:void 0)||0;"string"==typeof t&&(e="binary"===t?new Array(16):void 0,t={});var r=t.random||(t.rng||Qn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var i=0;i<16;i++)e[n+i]=r[i];return e||function(t,e){var n=e||0,r=$n;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}(r)}var ir=/^\/?Date\((-?\d+)/i,sr=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ar=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,or=/^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,ur=/^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 lr(t){return t instanceof Number||"number"==typeof t}function hr(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(hr(e),t.removeChild(e))}}function cr(t){return t instanceof String||"string"==typeof t}function dr(t){return"object"===ne(t)&&null!==t}function fr(t){if(t instanceof Date)return!0;if(cr(t)){if(ir.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function mr(t){return Xn.isMoment(t)}function pr(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}function yr(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];for(var r in t)if(void 0!==e[r])if(null===e[r]||"object"!==ne(e[r]))pr(t,e,r,n);else{var i=t[r],s=e[r];dr(i)&&dr(s)&&yr(i,s,n)}}var vr=Object.assign;function gr(t,e){if(!Array.isArray(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(var s=0,a=r;s<a.length;s++)for(var o=a[s],u=0;u<t.length;u++){var l=t[u];o&&Object.prototype.hasOwnProperty.call(o,l)&&(e[l]=o[l])}return e}function _r(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<t.length;i++){var s=t[i];if(Object.prototype.hasOwnProperty.call(n,s))if(n[s]&&n[s].constructor===Object)void 0===e[s]&&(e[s]={}),e[s].constructor===Object?br(e[s],n[s],!1,r):pr(e,n,s,r);else{if(Array.isArray(n[s]))throw new TypeError("Arrays are not supported by deepExtend");pr(e,n,s,r)}}return e}function wr(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&-1===t.indexOf(i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?br(e[i],n[i]):pr(e,n,i,r);else if(Array.isArray(n[i])){e[i]=[];for(var s=0;s<n[i].length;s++)e[i].push(n[i][s])}else pr(e,n,i,r);return e}function br(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];for(var i in e)!Object.prototype.hasOwnProperty.call(e,i)&&!0!==n||(e[i]&&Object.getPrototypeOf(e[i])===Object.prototype?void 0===t[i]?t[i]=br({},e[i],n):t[i]&&Object.getPrototypeOf(t[i])===Object.prototype?br(t[i],e[i],n):pr(t,e,i,r):Array.isArray(e[i])?t[i]=e[i].slice():pr(t,e,i,r));return t}function Sr(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0}function kr(t,e){var n;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return cr(t)&&!isNaN(Date.parse(t))?Xn(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(lr(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(mr(t))return new Date(t.valueOf());if(cr(t))return(n=ir.exec(t))?new Date(Number(n[1])):Xn(new Date(t)).toDate();throw new Error("Cannot convert object of type "+xr(t)+" to type Date");case"Moment":if(lr(t))return Xn(t);if(t instanceof Date)return Xn(t.valueOf());if(mr(t))return Xn(t);if(cr(t))return n=ir.exec(t),Xn(n?Number(n[1]):t);throw new Error("Cannot convert object of type "+xr(t)+" to type Date");case"ISODate":if(lr(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(mr(t))return t.toDate().toISOString();if(cr(t))return(n=ir.exec(t))?new Date(Number(n[1])).toISOString():Xn(t).format();throw new Error("Cannot convert object of type "+xr(t)+" to type ISODate");case"ASPDate":if(lr(t))return"/Date("+t+")/";if(t instanceof Date||mr(t))return"/Date("+t.valueOf()+")/";if(cr(t))return"/Date("+((n=ir.exec(t))?new Date(Number(n[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+xr(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function xr(t){var e=ne(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Array.isArray(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function Dr(t,e){return[].concat(ie(t),[e])}function Mr(t){return t.slice()}function Or(t){return t.getBoundingClientRect().left}function Tr(t){return t.getBoundingClientRect().right}function Yr(t){return t.getBoundingClientRect().top}function Pr(t,e){var n=t.className.split(" "),r=e.split(" ");n=n.concat(r.filter(function(t){return n.indexOf(t)<0})),t.className=n.join(" ")}function Er(t,e){var n=t.className.split(" "),r=e.split(" ");n=n.filter(function(t){return r.indexOf(t)<0}),t.className=n.join(" ")}function Cr(t,e){if(Array.isArray(t))for(var n=t.length,r=0;r<n;r++)e(t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)}var Lr=Object.values;function Rr(t,e,n){return t[e]!==n&&(t[e]=n,!0)}function Ar(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}}function Wr(t,e,n,r){t.addEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&0<=navigator.userAgent.indexOf("Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,r)):t.attachEvent("on"+e,n)}function Ir(t,e,n,r){t.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&0<=navigator.userAgent.indexOf("Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,r)):t.detachEvent("on"+e,n)}function Nr(t){(t=t||window.event)&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function Fr(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null}function jr(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1}var Vr={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),cr(t)?t:lr(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function Gr(t){var e;switch(t.length){case 3:case 4:return(e=ar.exec(t))?{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16)}:null;case 6:case 7:return(e=sr.exec(t))?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null;default:return null}}function Hr(t,e){if(-1!==t.indexOf("rgba"))return t;if(-1!==t.indexOf("rgb")){var n=t.substr(t.indexOf("(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=Gr(t);return null==r?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"}function zr(t,e,n){return"#"+((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)}function Ur(t,e){if(cr(t)){var n=t;if(ei(n)){var r=n.substr(4).substr(0,n.length-5).split(",").map(function(t){return parseInt(t)});n=zr(r[0],r[1],r[2])}if(!0!==ti(n))return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}};var i=Kr(n),s={h:i.h,s:.8*i.s,v:Math.min(1,1.02*i.v)},a={h:i.h,s:Math.min(1,1.25*i.s),v:.8*i.v},o=Qr(a.h,a.s,a.v),u=Qr(s.h,s.s,s.v);return{background:n,border:o,highlight:{background:u,border:o},hover:{background:u,border:o}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:cr(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:cr(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:cr(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:cr(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function Br(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));return r===i?{h:0,s:0,v:r}:{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(i-r))/360,s:(i-r)/i,v:i}}var Zr=function(t){var i={};return t.split(";").forEach(function(t){if(""!=t.trim()){var e=t.split(":"),n=e[0].trim(),r=e[1].trim();i[n]=r}}),i},qr=function(e){return Object.keys(e).map(function(t){return t+": "+e[t]}).join("; ")};function Xr(t,e){var n=function(i){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?re(s,!0).forEach(function(t){var e,n,r;e=i,r=s[n=t],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):re(s).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(s,t))})}return i}({},Zr(t.style.cssText),{},Zr(e));t.style.cssText=qr(n)}function $r(t,e){var n=Zr(t.style.cssText),r=Zr(e);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&delete n[i];t.style.cssText=qr(n)}function Jr(t,e,n){var r,i,s,a=Math.floor(6*t),o=6*t-a,u=n*(1-e),l=n*(1-o*e),h=n*(1-(1-o)*e);switch(a%6){case 0:r=n,i=h,s=u;break;case 1:r=l,i=n,s=u;break;case 2:r=u,i=n,s=h;break;case 3:r=u,i=l,s=n;break;case 4:r=h,i=u,s=n;break;case 5:r=n,i=u,s=l}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*s)}}function Qr(t,e,n){var r=Jr(t,e,n);return zr(r.r,r.g,r.b)}function Kr(t){var e=Gr(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return Br(e.r,e.g,e.b)}function ti(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function ei(t){return or.test(t)}function ni(t){return ur.test(t)}function ri(t,e){if(null===e||"object"!==ne(e))return null;for(var n=Object.create(e),r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==ne(e[t[r]])&&(n[t[r]]=ii(e[t[r]]));return n}function ii(t){if(null===t||"object"!==ne(t))return null;if(t instanceof Element)return t;var e=Object.create(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==ne(t[n])&&(e[n]=ii(t[n]));return e}function si(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=void 0;for(i=n;0<i&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t}function ai(t,e,n){function r(t){return null!=t}function a(t){return null!==t&&"object"===ne(t)}var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(!a(t))throw new Error("Parameter mergeTarget must be an object");if(!a(e))throw new Error("Parameter options must be an object");if(!r(n))throw new Error("Parameter option must have a value");if(!a(i))throw new Error("Parameter globalOptions must be an object");var s=e[n],o=a(i)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(i)?i[n]:void 0,u=o?o.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return a(t[n])||(t[n]={}),void(t[n].enabled=s);if(null===s&&!a(t[n])){if(!r(o))return;t[n]=Object.create(o)}if(a(s)){var l=!0;void 0!==s.enabled?l=s.enabled:void 0!==u&&(l=o.enabled),function(t,e,n){a(t[n])||(t[n]={});var r=e[n],i=t[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[s]=r[s])}(t,e,n),t[n].enabled=l}}}function oi(t,e,n,r){for(var i=0,s=0,a=t.length-1;s<=a&&i<1e4;){var o=Math.floor((s+a)/2),u=t[o],l=e(void 0===r?u[n]:u[n][r]);if(0==l)return o;-1==l?s=o+1:a=o-1,i++}return-1}function ui(t,e,n,r,i){var s,a,o,u,l=0,h=0,c=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};h<=c&&l<1e4;){if(u=Math.floor(.5*(c+h)),s=t[Math.max(0,u-1)][n],a=t[u][n],o=t[Math.min(t.length-1,u+1)][n],0==i(a,e))return u;if(i(s,e)<0&&0<i(a,e))return"before"==r?Math.max(0,u-1):u;if(i(a,e)<0&&0<i(o,e))return"before"==r?u:Math.min(t.length-1,u+1);i(a,e)<0?h=u+1:c=u-1,l++}return-1}var li={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function hi(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r}function ci(t,e){var n;Array.isArray(e)||(e=[e]);var r=!0,i=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var u=a.value;if(u){n=u[e[0]];for(var l=1;l<e.length;l++)n=n&&n[e[l]];if(void 0!==n)break}}}catch(t){i=!0,s=t}finally{try{r||null==o.return||o.return()}finally{if(i)throw s}}return n}var di=Object.freeze({isNumber:lr,recursiveDOMDelete:hr,isString:cr,isObject:dr,isDate:fr,isMoment:mr,fillIfDefined:yr,extend:vr,selectiveExtend:gr,selectiveDeepExtend:_r,selectiveNotDeepExtend:wr,deepExtend:br,equalArray:Sr,convert:kr,getType:xr,copyAndExtendArray:Dr,copyArray:Mr,getAbsoluteLeft:Or,getAbsoluteRight:Tr,getAbsoluteTop:Yr,addClassName:Pr,removeClassName:Er,forEach:Cr,toArray:Lr,updateProperty:Rr,throttle:Ar,addEventListener:Wr,removeEventListener:Ir,preventDefault:Nr,getTarget:Fr,hasParent:jr,option:Vr,hexToRGB:Gr,overrideOpacity:Hr,RGBToHex:zr,parseColor:Ur,RGBToHSV:Br,addCssText:Xr,removeCssText:$r,HSVToRGB:Jr,HSVToHex:Qr,hexToHSV:Kr,isValidHex:ti,isValidRGB:ei,isValidRGBA:ni,selectiveBridgeObject:ri,bridgeObject:ii,insertSort:si,mergeOptions:ai,binarySearchCustom:oi,binarySearchValue:ui,easingFunctions:li,getScrollBarWidth:hi,topMost:ci,randomUUID:rr}),fi=Object.freeze({default:di,HSVToHex:Qr,HSVToRGB:Jr,RGBToHSV:Br,RGBToHex:zr,addClassName:Pr,addCssText:Xr,addEventListener:Wr,binarySearchCustom:oi,binarySearchValue:ui,bridgeObject:ii,convert:kr,copyAndExtendArray:Dr,copyArray:Mr,deepExtend:br,easingFunctions:li,equalArray:Sr,extend:vr,fillIfDefined:yr,forEach:Cr,getAbsoluteLeft:Or,getAbsoluteRight:Tr,getAbsoluteTop:Yr,getScrollBarWidth:hi,getTarget:Fr,getType:xr,hasParent:jr,hexToHSV:Kr,hexToRGB:Gr,insertSort:si,isDate:fr,isMoment:mr,isNumber:lr,isObject:dr,isString:cr,isValidHex:ti,isValidRGB:ei,isValidRGBA:ni,mergeOptions:ai,option:Vr,overrideOpacity:Hr,parseColor:Ur,preventDefault:Nr,randomUUID:rr,recursiveDOMDelete:hr,removeClassName:Er,removeCssText:$r,removeEventListener:Ir,selectiveBridgeObject:ri,selectiveDeepExtend:_r,selectiveExtend:gr,selectiveNotDeepExtend:wr,throttle:Ar,toArray:Lr,topMost:ci,updateProperty:Rr});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function mi(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function pi(t,e){return t(e={exports:{}},e.exports),e.exports}function yi(t){return t&&t.default||t}var vi=pi(function(t,l){l.prepareElements=function(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])},l.cleanupElements=function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var n=0;n<t[e].redundant.length;n++)t[e].redundant[n].parentNode.removeChild(t[e].redundant[n]);t[e].redundant=[]}},l.resetElements=function(t){l.prepareElements(t),l.cleanupElements(t),l.prepareElements(t)},l.getSVGElement=function(t,e,n){var r;return e.hasOwnProperty(t)?0<e[t].redundant.length?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElementNS("http://www.w3.org/2000/svg",t),n.appendChild(r)):(r=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},n.appendChild(r)),e[t].used.push(r),r},l.getDOMElement=function(t,e,n,r){var i;return e.hasOwnProperty(t)?0<e[t].redundant.length?(i=e[t].redundant[0],e[t].redundant.shift()):(i=document.createElement(t),void 0!==r?n.insertBefore(i,r):n.appendChild(i)):(i=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==r?n.insertBefore(i,r):n.appendChild(i)),e[t].used.push(i),i},l.drawPoint=function(t,e,n,r,i,s){var a;if("circle"==n.style?((a=l.getSVGElement("circle",r,i)).setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",e),a.setAttributeNS(null,"r",.5*n.size)):((a=l.getSVGElement("rect",r,i)).setAttributeNS(null,"x",t-.5*n.size),a.setAttributeNS(null,"y",e-.5*n.size),a.setAttributeNS(null,"width",n.size),a.setAttributeNS(null,"height",n.size)),void 0!==n.styles&&a.setAttributeNS(null,"style",n.styles),a.setAttributeNS(null,"class",n.className+" vis-point"),s){var o=l.getSVGElement("text",r,i);s.xOffset&&(t+=s.xOffset),s.yOffset&&(e+=s.yOffset),s.content&&(o.textContent=s.content),s.className&&o.setAttributeNS(null,"class",s.className+" vis-label"),o.setAttributeNS(null,"x",t),o.setAttributeNS(null,"y",e)}return a},l.drawBar=function(t,e,n,r,i,s,a,o){if(0!=r){r<0&&(e-=r*=-1);var u=l.getSVGElement("rect",s,a);u.setAttributeNS(null,"x",t-.5*n),u.setAttributeNS(null,"y",e),u.setAttributeNS(null,"width",n),u.setAttributeNS(null,"height",r),u.setAttributeNS(null,"class",i),o&&u.setAttributeNS(null,"style",o)}}});vi.prepareElements,vi.cleanupElements,vi.resetElements,vi.getSVGElement,vi.getDOMElement,vi.drawPoint,vi.drawBar;function gi(t,e){return t(e={exports:{}},e.exports),e.exports}var _i=gi(function(t){var e=function(s){var u,t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function a(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,s=Object.create(i.prototype),a=new O(r||[]);return s._invoke=function(s,a,o){var u=c;return function(t,e){if(u===f)throw new Error("Generator is already running");if(u===m){if("throw"===t)throw e;return Y()}for(o.method=t,o.arg=e;;){var n=o.delegate;if(n){var r=x(n,o);if(r){if(r===p)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(u===c)throw u=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);u=f;var i=h(s,a,o);if("normal"===i.type){if(u=o.done?m:d,i.arg===p)continue;return{value:i.arg,done:o.done}}"throw"===i.type&&(u=m,o.method="throw",o.arg=i.arg)}}}(t,n,a),s}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}s.wrap=a;var c="suspendedStart",d="suspendedYield",f="executing",m="completed",p={};function o(){}function y(){}function v(){}var g={};g[i]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(T([])));w&&w!==t&&l.call(w,i)&&(g=w);var b=v.prototype=o.prototype=Object.create(g);function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(u){var e;this._invoke=function(n,r){function t(){return new Promise(function(t,e){!function e(t,n,r,i){var s=h(u[t],u,n);if("throw"!==s.type){var a=s.arg,o=a.value;return o&&"object"==typeof o&&l.call(o,"__await")?Promise.resolve(o.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):Promise.resolve(o).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,i)})}i(s.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function x(t,e){var n=t.iterator[e.method];if(n===u){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=u,x(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=u),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=u,t.done=!0,t};return r.next=r}}return{next:Y}}function Y(){return{value:u,done:!0}}return y.prototype=b.constructor=v,v.constructor=y,v[r]=y.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,r in t||(t[r]="GeneratorFunction")),t.prototype=Object.create(b),t},s.awrap=function(t){return{__await:t}},S(k.prototype),k.prototype[n]=function(){return this},s.AsyncIterator=k,s.async=function(t,e,n,r){var i=new k(a(t,e,n,r));return s.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(b),b[r]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},s.keys=function(n){var r=[];for(var t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},s.values=T,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(M),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return s.type="throw",s.arg=n,r.next=t,e&&(r.method="next",r.arg=u),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],s=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),o=l.call(i,"finallyLoc");if(a&&o){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=u),p}},s}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});var wi=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t};var bi=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}};var Si=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var ki=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var xi=function(t){return bi(t)||Si(t)||ki()},Di=gi(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},r(t)}e.exports=r});var Mi=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function Oi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ti=function(t,e,n){return e&&Oi(t.prototype,e),n&&Oi(t,n),t};var Yi=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var Pi=function(t,e){return!e||"object"!==Di(e)&&"function"!=typeof e?Yi(t):e},Ei=gi(function(e){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}e.exports=n}),Ci=gi(function(n){function r(t,e){return n.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}n.exports=r});for(var Li=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ci(t,e)},Ri=[],Ai=0;Ai<256;Ai++)Ri[Ai]=(Ai+256).toString(16).substr(1);for(var Wi=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var n=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}(),Ii=[],Ni=0;Ni<256;Ni++)Ii[Ni]=(Ni+256).toString(16).substr(1);var Fi=Wi();Fi[0],Fi[1],Fi[2],Fi[3],Fi[4],Fi[5],Fi[6],Fi[7];function ji(t,e,n){var r=0<arguments.length&&void 0!==t?t:{},i=1<arguments.length?e:void 0,s=i&&(2<arguments.length?n:void 0)||0;"string"==typeof r&&(i="binary"===r?new Array(16):void 0,r={});var a=r.random||(r.rng||Wi)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,i)for(var o=0;o<16;o++)i[s+o]=a[o];return i||function(t,e){var n=e||0,r=Ri;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}(a)}function Vi(t){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Gi(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}for(var Hi,zi=(function(tr,t){tr.exports=function(){var e,i;function l(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,r){return Ce(t,e,n,r,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=m(t),n=i.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function y(t){var e=f(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var v=l.momentProperties=[];function g(t,e){var n,r,i;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=m(e)),s(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)r=v[n],s(i=e[r])||(t[r]=i);return t}var n=!1;function _(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===n&&(n=!0,l.updateOffset(this),n=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=b(e)),n}function k(t,e,n){var r,i=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&S(t[r])!==S(e[r]))&&a++;return a+s}function x(t){!1===l.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(i,s){var a=!0;return d(function(){if(null!=l.deprecationHandler&&l.deprecationHandler(null,i),a){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var r in t+="\n["+n+"] ",arguments[0])t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}x(i+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var D,M={};function O(t,e){null!=l.deprecationHandler&&l.deprecationHandler(t,e),M[t]||(x(e),M[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t,e){var n,r=d({},t);for(n in e)c(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},d(r[n],t[n]),d(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)c(t,n)&&!c(e,n)&&o(t[n])&&(r[n]=d({},r[n]));return r}function P(t){null!=t&&this.set(t)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var E={};function C(t,e){var n=t.toLowerCase();E[n]=E[n+"s"]=E[e]=t}function L(t){return"string"==typeof t?E[t]||E[t.toLowerCase()]:void 0}function R(t){var e,n,r={};for(n in t)c(t,n)&&(e=L(n))&&(r[e]=t[n]);return r}var A={};function W(t,e){A[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:A[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(t,e,n){var r=""+Math.abs(t),i=e-r.length,s=0<=t;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},G={};function H(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(G[t]=i),e&&(G[e[0]]=function(){return N(i.apply(this,arguments),e[1],e[2])}),n&&(G[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t,e){return t.isValid()?(e=B(e,t.localeData()),V[e]=V[e]||function(r){var t,i,s=r.match(F);for(t=0,i=s.length;t<i;t++)G[s[t]]?s[t]=G[s[t]]:s[t]=z(s[t]);return function(t){var e,n="";for(e=0;e<i;e++)n+=T(s[e])?s[e].call(t,r):s[e];return n}}(e),V[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;0<=n&&j.test(t);)t=t.replace(j,r),j.lastIndex=0,n-=1;return t}var Z=/\d/,q=/\d\d/,X=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,st=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,lt={};function ht(t,n,r){lt[t]=T(n)?n:function(t,e){return t&&r?r:n}}function ct(t,e){return c(lt,t)?lt[t](e._strict,e._locale):new RegExp(function(t){return dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}(t))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function mt(t,n){var e,r=n;for("string"==typeof t&&(t=[t]),u(n)&&(r=function(t,e){e[n]=S(t)}),e=0;e<t.length;e++)ft[t[e]]=r}function pt(t,i){mt(t,function(t,e,n,r){n._w=n._w||{},i(t,n._w,n,r)})}function yt(t,e,n){null!=e&&c(ft,t)&&ft[t](e,n._a,n,t)}var vt=0,gt=1,_t=2,wt=3,bt=4,St=5,kt=6,xt=7,Dt=8;function Mt(t){return Ot(t)?366:365}function Ot(t){return t%4==0&&t%100!=0||t%400==0}H("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),C("year","y"),W("year",1),ht("Y",st),ht("YY",Q,q),ht("YYYY",nt,$),ht("YYYYY",rt,J),ht("YYYYYY",rt,J),mt(["YYYYY","YYYYYY"],vt),mt("YYYY",function(t,e){e[vt]=2===t.length?l.parseTwoDigitYear(t):S(t)}),mt("YY",function(t,e){e[vt]=l.parseTwoDigitYear(t)}),mt("Y",function(t,e){e[vt]=parseInt(t,10)}),l.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Tt,Yt=Pt("FullYear",!0);function Pt(e,n){return function(t){return null!=t?(Ct(this,e,t),l.updateOffset(this,n),this):Et(this,e)}}function Et(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Ct(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Ot(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Ot(t)?29:28:31-n%7%2}Tt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),H("MMMM",0,0,function(t){return this.localeData().months(this,t)}),C("month","M"),W("month",8),ht("M",Q),ht("MM",Q,q),ht("MMM",function(t,e){return e.monthsShortRegex(t)}),ht("MMMM",function(t,e){return e.monthsRegex(t)}),mt(["M","MM"],function(t,e){e[gt]=S(t)-1}),mt(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[gt]=i:m(n).invalidMonth=t});var Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e,n){var r,i,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null}function Nt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(Nt(this,t),l.updateOffset(this,!0),this):Et(this,"Month")}var jt=ut;var Vt=ut;function Gt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],s=[];for(e=0;e<12;e++)n=f([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),s.sort(t),e=0;e<12;e++)r[e]=dt(r[e]),i[e]=dt(i[e]);for(e=0;e<24;e++)s[e]=dt(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ht(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function zt(t,e,n){var r=7+e-n,i=(7+Ht(t,0,r).getUTCDay()-e)%7;return r-i-1}function Ut(t,e,n,r,i){var s,a,o=(7+n-r)%7,u=zt(t,r,i),l=1+7*(e-1)+o+u;return a=l<=0?Mt(s=t-1)+l:l>Mt(t)?(s=t+1,l-Mt(t)):(s=t,l),{year:s,dayOfYear:a}}function Bt(t,e,n){var r,i,s=zt(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?(i=t.year()-1,r=a+Zt(i,e,n)):a>Zt(t.year(),e,n)?(r=a-Zt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Zt(t,e,n){var r=zt(t,e,n),i=zt(t+1,e,n);return(Mt(t)-r+i)/7}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),W("week",5),W("isoWeek",5),ht("w",Q),ht("ww",Q,q),ht("W",Q),ht("WW",Q,q),pt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=S(t)});function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}H("d",0,"do","day"),H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),ht("d",Q),ht("e",Q),ht("E",Q),ht("dd",function(t,e){return e.weekdaysMinRegex(t)}),ht("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ht("dddd",function(t,e){return e.weekdaysRegex(t)}),pt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:m(n).invalidWeekday=t}),pt(["d","e","E"],function(t,e,n,r){e[r]=S(t)});var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qt(t,e,n){var r,i,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null}var Kt=ut;var te=ut;var ee=ut;function ne(){function t(t,e){return e.length-t.length}var e,n,r,i,s,a=[],o=[],u=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(r),o.push(i),u.push(s),l.push(r),l.push(i),l.push(s);for(a.sort(t),o.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)o[e]=dt(o[e]),u[e]=dt(u[e]),l[e]=dt(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function re(){return this.hours()%12||12}function ie(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function se(t,e){return e._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,re),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)}),H("hmmss",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),ie("a",!0),ie("A",!1),C("hour","h"),W("hour",13),ht("a",se),ht("A",se),ht("H",Q),ht("h",Q),ht("k",Q),ht("HH",Q,q),ht("hh",Q,q),ht("kk",Q,q),ht("hmm",K),ht("hmmss",tt),ht("Hmm",K),ht("Hmmss",tt),mt(["H","HH"],wt),mt(["k","kk"],function(t,e,n){var r=S(t);e[wt]=24===r?0:r}),mt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),mt(["h","hh"],function(t,e,n){e[wt]=S(t),m(n).bigHour=!0}),mt("hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r)),m(n).bigHour=!0}),mt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i)),m(n).bigHour=!0}),mt("Hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r))}),mt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i))});var ae,oe=Pt("Hours",!0),ue={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Wt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:Jt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},le={},he={};function ce(t){return t?t.toLowerCase().replace("_","-"):t}function de(t){var e=null;if(!le[t]&&tr&&tr.exports)try{e=ae._abbr;var n=Gi;n("./locale/"+t),fe(e)}catch(t){}return le[t]}function fe(t,e){var n;return t&&((n=s(e)?pe(t):me(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function me(t,e){if(null===e)return delete le[t],null;var n,r=ue;if(e.abbr=t,null!=le[t])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=le[t]._config;else if(null!=e.parentLocale)if(null!=le[e.parentLocale])r=le[e.parentLocale]._config;else{if(null==(n=de(e.parentLocale)))return he[e.parentLocale]||(he[e.parentLocale]=[]),he[e.parentLocale].push({name:t,config:e}),null;r=n._config}return le[t]=new P(Y(r,e)),he[t]&&he[t].forEach(function(t){me(t.name,t.config)}),fe(t),le[t]}function pe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!a(t)){if(e=de(t))return e;t=[t]}return function(t){var e,n,r,i,s=0;for(;s<t.length;){for(i=ce(t[s]).split("-"),e=i.length,n=(n=ce(t[s+1]))?n.split("-"):null;0<e;){if(r=de(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&k(i,n,!0)>=e-1)break;e--}s++}return ae}(t)}function ye(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[_t]<1||n[_t]>Lt(n[vt],n[gt])?_t:n[wt]<0||24<n[wt]||24===n[wt]&&(0!==n[bt]||0!==n[St]||0!==n[kt])?wt:n[bt]<0||59<n[bt]?bt:n[St]<0||59<n[St]?St:n[kt]<0||999<n[kt]?kt:-1,m(t)._overflowDayOfYear&&(e<vt||_t<e)&&(e=_t),m(t)._overflowWeeks&&-1===e&&(e=xt),m(t)._overflowWeekday&&-1===e&&(e=Dt),m(t).overflow=e),t}function ve(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,r,i,s,a=[];if(!t._d){for(r=function(t){var e=new Date(l.now());if(t._useUTC)return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()];return[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[_t]&&null==t._a[gt]&&function(t){var e,n,r,i,s,a,o,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)s=1,a=4,n=ve(e.GG,t._a[vt],Bt(Le(),1,4).year),r=ve(e.W,1),((i=ve(e.E,1))<1||7<i)&&(u=!0);else{s=t._locale._week.dow,a=t._locale._week.doy;var l=Bt(Le(),s,a);n=ve(e.gg,t._a[vt],l.year),r=ve(e.w,l.week),null!=e.d?((i=e.d)<0||6<i)&&(u=!0):null!=e.e?(i=e.e+s,(e.e<0||6<e.e)&&(u=!0)):i=s}r<1||r>Zt(n,s,a)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(o=Ut(n,r,i,s,a),t._a[vt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ve(t._a[vt],r[vt]),(t._dayOfYear>Mt(s)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Ht(s,0,t._dayOfYear),t._a[gt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[bt]&&0===t._a[St]&&0===t._a[kt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Ht:function(t,e,n,r,i,s,a){var o;t<100&&0<=t?(o=new Date(t+400,e,n,r,i,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,s,a);return o}).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(m(t).weekdayMismatch=!0)}}var _e=/^\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)?)?$/,we=/^\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)?)?$/,be=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["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}/]],ke=[["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/]],xe=/^\/?Date\((\-?\d+)/i;function De(t){var e,n,r,i,s,a,o=t._i,u=_e.exec(o)||we.exec(o);if(u){for(m(t).iso=!0,e=0,n=Se.length;e<n;e++)if(Se[e][1].exec(u[1])){i=Se[e][0],r=!1!==Se[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=ke.length;e<n;e++)if(ke[e][1].exec(u[3])){s=(u[2]||" ")+ke[e][0];break}if(null==s)return void(t._isValid=!1)}if(!r&&null!=s)return void(t._isValid=!1);if(u[4]){if(!be.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(s||"")+(a||""),Pe(t)}else t._isValid=!1}var Me=/^(?:(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}))$/;function Oe(t,e,n,r,i,s){var a=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),Wt.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&a.push(parseInt(s,10)),a}var Te={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ye(t){var e=Me.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Oe(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var r=$t.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return m(n).weekdayMismatch=!0,n._isValid=!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){{if(t)return Te[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return 60*((r-i)/100)+i}}(e[8],e[9],e[10]),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Pe(t){if(t._f!==l.ISO_8601)if(t._f!==l.RFC_2822){t._a=[],m(t).empty=!0;var e,n,r,i,s,a=""+t._i,o=a.length,u=0;for(r=B(t._f,t._locale).match(F)||[],e=0;e<r.length;e++)i=r[e],(n=(a.match(ct(i,t))||[])[0])&&(0<(s=a.substr(0,a.indexOf(n))).length&&m(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),u+=n.length),G[i]?(n?m(t).empty=!1:m(t).unusedTokens.push(i),yt(i,n,t)):t._strict&&!n&&m(t).unusedTokens.push(i);m(t).charsLeftOver=o-u,0<a.length&&m(t).unusedInput.push(a),t._a[wt]<=12&&!0===m(t).bigHour&&0<t._a[wt]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var r;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0)),e)}(t._locale,t._a[wt],t._meridiem),ge(t),ye(t)}else Ye(t);else De(t)}function Ee(t){var e=t._i,n=t._f;return t._locale=t._locale||pe(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(ye(e)):(h(e)?t._d=e:a(n)?function(t){var e,n,r,i,s;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)s=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Pe(e),p(e)&&(s+=m(e).charsLeftOver,s+=10*m(e).unusedTokens.length,m(e).score=s,(null==r||s<r)&&(r=s,n=e));d(t,n||e)}(t):n?Pe(t):function(t){var e=t._i;s(e)?t._d=new Date(l.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=xe.exec(t._i);if(null!==e)return t._d=new Date(+e[1]);{if(De(t),!1!==t._isValid)return;delete t._isValid}{if(Ye(t),!1!==t._isValid)return;delete t._isValid}l.createFromInputFallback(t)}(t):a(e)?(t._a=r(e.slice(0),function(t){return parseInt(t,10)}),ge(t)):o(e)?function(t){if(t._d)return;var e=R(t._i);t._a=r([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}(t):u(e)?t._d=new Date(e):l.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ce(t,e,n,r,i){var s={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){{if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}}(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,function(t){var e=new _(ye(Ee(t)));e._nextDay&&(e.add(1,"d"),e._nextDay=void 0);return e}(s)}function Le(t,e,n,r){return Ce(t,e,n,r,!1)}l.createFromInputFallback=t("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),l.ISO_8601=function(){},l.RFC_2822=function(){};var Re=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),Ae=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function We(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Le();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=R(t),n=e.year||0,r=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Tt.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ie.length;++r)if(t[Ie[r]]){if(n)return!1;parseFloat(t[Ie[r]])!==S(t[Ie[r]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=pe(),this._bubble()}function Fe(t){return t instanceof Ne}function je(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ve(t,n){H(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}Ve("Z",":"),Ve("ZZ",""),ht("Z",ot),ht("ZZ",ot),mt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=He(ot,t)});var Ge=/([\+\-]|\d\d)/gi;function He(t,e){var n=(e||"").match(t);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ge)||["-",0,0],s=60*i[1]+S(i[2]);return 0===s?0:"+"===i[0]?s:-s}function ze(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(w(t)||h(t)?t.valueOf():Le(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),l.updateOffset(n,!1),n):Le(t).local()}function Ue(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}l.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,r,i,s=t,a=null;return Fe(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Ze.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:S(a[_t])*n,h:S(a[wt])*n,m:S(a[bt])*n,s:S(a[St])*n,ms:S(je(1e3*a[kt]))*n}):(a=qe.exec(t))?(n="-"===a[1]?-1:1,s={y:$e(a[2],n),M:$e(a[3],n),w:$e(a[4],n),d:$e(a[5],n),h:$e(a[6],n),m:$e(a[7],n),s:$e(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ze(e,t),t.isBefore(e)?n=Je(t,e):((n=Je(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Le(s.from),Le(s.to)),(s={}).ms=i.milliseconds,s.M=i.months),r=new Ne(s),Fe(t)&&c(t,"_locale")&&(r._locale=t._locale),r}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Qe(r,i){return function(t,e){var n;return null===e||isNaN(+e)||(O(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ke(this,Xe(t="string"==typeof t?+t:t,e),r),this}}function Ke(t,e,n,r){var i=e._milliseconds,s=je(e._days),a=je(e._months);t.isValid()&&(r=null==r||r,a&&Nt(t,Et(t,"Month")+a*n),s&&Ct(t,"Date",Et(t,"Date")+s*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&l.updateOffset(t,s||a))}Xe.fn=Ne.prototype,Xe.invalid=function(){return Xe(NaN)};var tn=Qe(1,"add"),en=Qe(-1,"subtract");function nn(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");return r=e-s<0?(n=t.clone().add(i-1,"months"),(e-s)/(s-n)):(n=t.clone().add(1+i,"months"),(e-s)/(n-s)),-(i+r)||0}function rn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=pe(t))&&(this._locale=e),this)}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function an(){return this._locale}var on=126227808e5;function un(t,e){return(t%e+e)%e}function ln(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-on:new Date(t,e,n).valueOf()}function hn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-on:Date.UTC(t,e,n)}function cn(t,e){H(0,[t,t.length],0,e)}function dn(t,e,n,r,i){var s;return null==t?Bt(this,r,i).year:((s=Zt(t,r,i))<e&&(e=s),function(t,e,n,r,i){var s=Ut(t,e,n,r,i),a=Ht(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,r,i))}H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),ht("G",st),ht("g",st),ht("GG",Q,q),ht("gg",Q,q),ht("GGGG",nt,$),ht("gggg",nt,$),ht("GGGGG",rt,J),ht("ggggg",rt,J),pt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=S(t)}),pt(["gg","GG"],function(t,e,n,r){e[r]=l.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),C("quarter","Q"),W("quarter",7),ht("Q",Z),mt("Q",function(t,e){e[gt]=3*(S(t)-1)}),H("D",["DD",2],"Do","date"),C("date","D"),W("date",9),ht("D",Q),ht("DD",Q,q),ht("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],_t),mt("Do",function(t,e){e[_t]=S(t.match(Q)[0])});var fn=Pt("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),W("dayOfYear",4),ht("DDD",et),ht("DDDD",X),mt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=S(t)}),H("m",["mm",2],0,"minute"),C("minute","m"),W("minute",14),ht("m",Q),ht("mm",Q,q),mt(["m","mm"],bt);var mn=Pt("Minutes",!1);H("s",["ss",2],0,"second"),C("second","s"),W("second",15),ht("s",Q),ht("ss",Q,q),mt(["s","ss"],St);var pn,yn=Pt("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),W("millisecond",16),ht("S",et,Z),ht("SS",et,q),ht("SSS",et,X),pn="SSSS";pn.length<=9;pn+="S")ht(pn,it);function vn(t,e){e[kt]=S(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")mt(pn,vn);var gn=Pt("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var _n=_.prototype;function wn(t){return t}_n.add=tn,_n.calendar=function(t,e){var n=t||Le(),r=ze(n,this).startOf("day"),i=l.calendarFormat(this,r)||"sameElse",s=e&&(T(e[i])?e[i].call(this,n):e[i]);return this.format(s||this.localeData().calendar(i,this,Le(n)))},_n.clone=function(){return new _(this)},_n.diff=function(t,e,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=ze(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=L(e)){case"year":s=nn(this,r)/12;break;case"month":s=nn(this,r);break;case"quarter":s=nn(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:b(s)},_n.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?hn:ln;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-un(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-un(e,1e3)-1}return this._d.setTime(e),l.updateOffset(this,!0),this},_n.format=function(t){t=t||(this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},_n.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.fromNow=function(t){return this.from(Le(),t)},_n.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.toNow=function(t){return this.to(Le(),t)},_n.get=function(t){if(T(this[t=L(t)]))return this[t]();return this},_n.invalidAt=function(){return m(this).overflow},_n.isAfter=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()},_n.isBefore=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()},_n.isBetween=function(t,e,n,r){var i=w(t)?t:Le(t),s=w(e)?e:Le(e);return!!(this.isValid()&&i.isValid()&&s.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(s,n):!this.isAfter(s,n)))},_n.isSame=function(t,e){var n,r=w(t)?t:Le(t);if(!this.isValid()||!r.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())},_n.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},_n.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},_n.isValid=function(){return p(this)},_n.lang=sn,_n.locale=rn,_n.localeData=an,_n.max=Ae,_n.min=Re,_n.parsingFlags=function(){return d({},m(this))},_n.set=function(t,e){if("object"==typeof t)for(var n=I(t=R(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(T(this[t=L(t)]))return this[t](e);return this},_n.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?hn:ln;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=un(e,6e4);break;case"second":e=this._d.valueOf(),e-=un(e,1e3)}return this._d.setTime(e),l.updateOffset(this,!0),this},_n.subtract=en,_n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},_n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;if(n.year()<0||9999<n.year())return U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(T(Date.prototype.toISOString))return e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z"));return U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=Yt,_n.isLeapYear=function(){return Ot(this.year())},_n.weekYear=function(t){return dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(t){return dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},_n.month=Ft,_n.daysInMonth=function(){return Lt(this.year(),this.month())},_n.week=_n.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},_n.isoWeek=_n.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},_n.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},_n.isoWeeksInYear=function(){return Zt(this.year(),1,4)},_n.date=fn,_n.day=_n.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(n=t,r=this.localeData(),t="string"==typeof n?isNaN(n)?"number"!=typeof(n=r.weekdaysParse(n))?null:n:parseInt(n,10):n,this.add(t-e,"d")):e;var n,r},_n.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},_n.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this.day()||7;var e=(n=t,r=this.localeData(),"string"!=typeof n?isNaN(n)?null:n:r.weekdaysParse(n)%7||7);return this.day(this.day()%7?e:e-7)}var n,r},_n.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},_n.hour=_n.hours=oe,_n.minute=_n.minutes=mn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(t,e,n){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this._isUTC?i:Ue(this);if("string"==typeof t){if(null===(t=He(ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ue(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?Ke(this,Xe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}},_n.utc=function(t){return this.utcOffset(0,t)},_n.local=function(t){this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ue(this),"m"));return this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Le(t).utcOffset():0,(this.utcOffset()-t)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Be,_n.isUTC=Be,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=t("dates accessor is deprecated. Use date instead.",fn),_n.months=t("months accessor is deprecated. Use month instead",Ft),_n.years=t("years accessor is deprecated. Use year instead",Yt),_n.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),_n.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=Ee(t))._a){var e=t._isUTC?f(t._a):Le(t._a);this._isDSTShifted=this.isValid()&&0<k(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var bn=P.prototype;function Sn(t,e,n,r){var i=pe(),s=f().set(r,e);return i[n](s,t)}function kn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Sn(t,r,n,"month");return i}function xn(t,e,n,r){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var i,s=pe(),a=t?s._week.dow:0;if(null!=n)return Sn(e,(n+a)%7,r,"day");var o=[];for(i=0;i<7;i++)o[i]=Sn(e,(i+a)%7,r,"day");return o}bn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return T(r)?r.call(e,n):r},bn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return!e&&n?(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]):e},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(t){return this._ordinal.replace("%d",t)},bn.preparse=wn,bn.postformat=wn,bn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return T(i)?i(t,e,n,r):i.replace(/%d/i,t)},bn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)},bn.set=function(t){var e,n;for(n in t)T(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},bn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(t,e,n){var r,i,s;if(this._monthsParseExact)return It.call(this,t,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},bn.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Gt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Vt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Gt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},bn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bn.weekdaysParse=function(t,e,n){var r,i,s;if(this._weekdaysParseExact)return Qt.call(this,t,e,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},bn.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},fe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th";return t+n}}),l.lang=t("moment.lang is deprecated. Use moment.locale instead.",fe),l.langData=t("moment.langData is deprecated. Use moment.localeData instead.",pe);var Dn=Math.abs;function Mn(t,e,n,r){var i=Xe(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function On(t){return t<0?Math.floor(t):Math.ceil(t)}function Tn(t){return 4800*t/146097}function Yn(t){return 146097*t/4800}function Pn(t){return function(){return this.as(t)}}var En=Pn("ms"),Cn=Pn("s"),Ln=Pn("m"),Rn=Pn("h"),An=Pn("d"),Wn=Pn("w"),In=Pn("M"),Nn=Pn("Q"),Fn=Pn("y");function jn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Vn=jn("milliseconds"),Gn=jn("seconds"),Hn=jn("minutes"),zn=jn("hours"),Un=jn("days"),Bn=jn("months"),Zn=jn("years");var qn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11};var $n=Math.abs;function Jn(t){return(0<t)-(t<0)||+t}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=$n(this._milliseconds)/1e3,r=$n(this._days),i=$n(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var s=b(i/12),a=i%=12,o=r,u=e,l=t,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=Jn(this._months)!==Jn(c)?"-":"",m=Jn(this._days)!==Jn(c)?"-":"",p=Jn(this._milliseconds)!==Jn(c)?"-":"";return d+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||h?"T":"")+(u?p+u+"H":"")+(l?p+l+"M":"")+(h?p+h+"S":"")}var Kn=Ne.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),t.milliseconds=Dn(t.milliseconds),t.seconds=Dn(t.seconds),t.minutes=Dn(t.minutes),t.hours=Dn(t.hours),t.months=Dn(t.months),t.years=Dn(t.years),this},Kn.add=function(t,e){return Mn(this,t,e,1)},Kn.subtract=function(t,e){return Mn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Tn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Yn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=En,Kn.asSeconds=Cn,Kn.asMinutes=Ln,Kn.asHours=Rn,Kn.asDays=An,Kn.asWeeks=Wn,Kn.asMonths=In,Kn.asQuarters=Nn,Kn.asYears=Fn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kn._bubble=function(){var t,e,n,r,i,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=s&&0<=a&&0<=o||s<=0&&a<=0&&o<=0||(s+=864e5*On(Yn(o)+a),o=a=0),u.milliseconds=s%1e3,t=b(s/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),i=b(Tn(a)),o+=i,a-=On(Yn(i)),r=b(o/12),o%=12,u.days=a,u.months=o,u.years=r,this},Kn.clone=function(){return Xe(this)},Kn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=Vn,Kn.seconds=Gn,Kn.minutes=Hn,Kn.hours=zn,Kn.days=Un,Kn.weeks=function(){return b(this.days()/7)},Kn.months=Bn,Kn.years=Zn,Kn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=Xe(t).abs(),i=qn(r.as("s")),s=qn(r.as("m")),a=qn(r.as("h")),o=qn(r.as("d")),u=qn(r.as("M")),l=qn(r.as("y")),h=i<=Xn.ss&&["s",i]||i<Xn.s&&["ss",i]||s<=1&&["m"]||s<Xn.m&&["mm",s]||a<=1&&["h"]||a<Xn.h&&["hh",a]||o<=1&&["d"]||o<Xn.d&&["dd",o]||u<=1&&["M"]||u<Xn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return h[2]=e,h[3]=0<+t,h[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,h)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Kn.toISOString=Qn,Kn.toString=Qn,Kn.toJSON=Qn,Kn.locale=rn,Kn.localeData=an,Kn.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Kn.lang=sn,H("X",0,0,"unix"),H("x",0,0,"valueOf"),ht("x",st),ht("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),mt("x",function(t,e,n){n._d=new Date(S(t))}),l.version="2.24.0",function(t){e=t}(Le),l.fn=_n,l.min=function(){return We("isBefore",[].slice.call(arguments,0))},l.max=function(){return We("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=f,l.unix=function(t){return Le(1e3*t)},l.months=function(t,e){return kn(t,e,"months")},l.isDate=h,l.locale=fe,l.invalid=y,l.duration=Xe,l.isMoment=w,l.weekdays=function(t,e,n){return xn(t,e,n,"weekdays")},l.parseZone=function(){return Le.apply(null,arguments).parseZone()},l.localeData=pe,l.isDuration=Fe,l.monthsShort=function(t,e){return kn(t,e,"monthsShort")},l.weekdaysMin=function(t,e,n){return xn(t,e,n,"weekdaysMin")},l.defineLocale=me,l.updateLocale=function(t,e){if(null!=e){var n,r,i=ue;null!=(r=de(t))&&(i=r._config),e=Y(i,e),(n=new P(e)).parentLocale=le[t],le[t]=n,fe(t)}else null!=le[t]&&(null!=le[t].parentLocale?le[t]=le[t].parentLocale:null!=le[t]&&delete le[t]);return le[t]},l.locales=function(){return D(le)},l.weekdaysShort=function(t,e,n){return xn(t,e,n,"weekdaysShort")},l.normalizeUnits=L,l.relativeTimeRounding=function(t){return void 0!==t?"function"==typeof t&&(qn=t,!0):qn},l.relativeTimeThreshold=function(t,e){return void 0!==Xn[t]&&(void 0===e?Xn[t]:(Xn[t]=e,"s"===t&&(Xn.ss=e-1),!0))},l.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},l.prototype=_n,l.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"},l}()}(Hi={exports:{}},Hi.exports),Hi.exports),Ui=[],Bi=0;Bi<256;Bi++)Ui[Bi]=(Bi+256).toString(16).substr(1);for(var Zi=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var n=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}(),qi=[],Xi=0;Xi<256;Xi++)qi[Xi]=(Xi+256).toString(16).substr(1);var $i=Zi(),Ji=($i[0],$i[1],$i[2],$i[3],$i[4],$i[5],$i[6],$i[7],/^\/?Date\((-?\d+)/i);function Qi(t){return t instanceof Number||"number"==typeof t}function Ki(t){return t instanceof String||"string"==typeof t}function ts(t){return zi.isMoment(t)}function es(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}function ns(t,e,n,r){var i=2<arguments.length&&void 0!==n&&n,s=3<arguments.length&&void 0!==r&&r;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)||!0===i)if(e[a]&&e[a].constructor===Object)void 0===t[a]&&(t[a]={}),t[a].constructor===Object?ns(t[a],e[a],i):es(t,e,a,s);else if(Array.isArray(e[a])){t[a]=[];for(var o=0;o<e[a].length;o++)t[a].push(e[a][o])}else es(t,e,a,s);return t}function rs(t,e){var n;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return Ki(t)&&!isNaN(Date.parse(t))?zi(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(Qi(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(ts(t))return new Date(t.valueOf());if(Ki(t))return(n=Ji.exec(t))?new Date(Number(n[1])):zi(new Date(t)).toDate();throw new Error("Cannot convert object of type "+is(t)+" to type Date");case"Moment":if(Qi(t))return zi(t);if(t instanceof Date)return zi(t.valueOf());if(ts(t))return zi(t);if(Ki(t))return n=Ji.exec(t),zi(n?Number(n[1]):t);throw new Error("Cannot convert object of type "+is(t)+" to type Date");case"ISODate":if(Qi(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(ts(t))return t.toDate().toISOString();if(Ki(t))return(n=Ji.exec(t))?new Date(Number(n[1])).toISOString():zi(t).format();throw new Error("Cannot convert object of type "+is(t)+" to type ISODate");case"ASPDate":if(Qi(t))return"/Date("+t+")/";if(t instanceof Date)return"/Date("+t.valueOf()+")/";if(Ki(t))return"/Date("+((n=Ji.exec(t))?new Date(Number(n[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+is(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function is(t){var e=Vi(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Array.isArray(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function ss(t){return"string"==typeof t||"number"==typeof t}var as=function(){function a(t){Mi(this,a),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(t)}return Ti(a,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,n=0;n<e.length;n++){var r=e[n];r.original?t[r.name]=r.original:delete t[r.name]}this._extended=null}}},{key:"replace",value:function(t,e){var r=this,i=t[e];if(!i)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.queue({args:e,fn:i,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),0<this.queue.length&&"number"==typeof this.delay&&(this._timeout=setTimeout(function(){t.flush()},this.delay))}},{key:"flush",value:function(){this._queue.splice(0).forEach(function(t){t.fn.apply(t.context||t.fn,t.args||[])})}}],[{key:"extend",value:function(t,e){var n=new a(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){n.flush()};var r=[{name:"flush",original:void 0}];if(e&&e.replace)for(var i=0;i<e.replace.length;i++){var s=e.replace[i];r.push({name:s,original:t[s]}),n.replace(t,s)}return n._extended={object:t,methods:r},n}}]),a}(),os=function(){function t(){Mi(this,t),this._subscribers={"*":[],add:[],remove:[],update:[]},this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return Ti(t,[{key:"_trigger",value:function(e,n,r){if("*"===e)throw new Error("Cannot trigger event *");[].concat(xi(this._subscribers[e]),xi(this._subscribers["*"])).forEach(function(t){t(e,n,null!=r?r:null)})}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){this._subscribers[t]=this._subscribers[t].filter(function(t){return t!==e})}}]),t}();var us=function(t){if(Array.isArray(t))return t};var ls=function(t,e){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,s=t}finally{try{r||null==o.return||o.return()}finally{if(i)throw s}}return n};var hs=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var cs=function(t,e){return us(t)||ls(t,e)||hs()},ds=function(){function e(t){Mi(this,e),this._pairs=t}return Ti(e,[{key:Symbol.iterator,value:_i.mark(function t(){var e,n,r,i,s,a,o,u;return _i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=this._pairs[Symbol.iterator]();case 5:if(e=(s=i.next()).done){t.next=12;break}return a=cs(s.value,2),o=a[0],u=a[1],t.next=9,[o,u];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"entries",value:_i.mark(function t(){var e,n,r,i,s,a,o,u;return _i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=this._pairs[Symbol.iterator]();case 5:if(e=(s=i.next()).done){t.next=12;break}return a=cs(s.value,2),o=a[0],u=a[1],t.next=9,[o,u];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"keys",value:_i.mark(function t(){var e,n,r,i,s,a,o;return _i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=this._pairs[Symbol.iterator]();case 5:if(e=(s=i.next()).done){t.next=12;break}return a=cs(s.value,1),o=a[0],t.next=9,o;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"values",value:_i.mark(function t(){var e,n,r,i,s,a,o;return _i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=this._pairs[Symbol.iterator]();case 5:if(e=(s=i.next()).done){t.next=12;break}return a=cs(s.value,2),o=a[1],t.next=9,o;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"toIdArray",value:function(){return xi(this._pairs).map(function(t){return t[0]})}},{key:"toItemArray",value:function(){return xi(this._pairs).map(function(t){return t[1]})}},{key:"toEntryArray",value:function(){return xi(this._pairs)}},{key:"toObjectMap",value:function(){var t=Object.create(null),e=!0,n=!1,r=void 0;try{for(var i,s=this._pairs[Symbol.iterator]();!(e=(i=s.next()).done);e=!0){var a=cs(i.value,2),o=a[0],u=a[1];t[o]=u}}catch(t){n=!0,r=t}finally{try{e||null==s.return||s.return()}finally{if(n)throw r}}return t}},{key:"toMap",value:function(){return new Map(this._pairs)}},{key:"toIdSet",value:function(){return new Set(this.toIdArray())}},{key:"toItemSet",value:function(){return new Set(this.toItemArray())}},{key:"cache",value:function(){return new e(xi(this._pairs))}},{key:"distinct",value:function(t){var e=new Set,n=!0,r=!1,i=void 0;try{for(var s,a=this._pairs[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var o=cs(s.value,2),u=o[0],l=o[1];e.add(t(l,u))}}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return e}},{key:"filter",value:function(l){var h=this._pairs;return new e(wi({},Symbol.iterator,_i.mark(function t(){var e,n,r,i,s,a,o,u;return _i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=h[Symbol.iterator]();case 5:if(e=(s=i.next()).done){t.next=13;break}if(a=cs(s.value,2),o=a[0],u=a[1],l(u,o))return t.next=10,[o,u];t.next=10;break;case 10:e=!0,t.next=5;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),n=!0,r=t.t0;case 19:t.prev=19,t.prev=20,e||null==i.return||i.return();case 22:if(t.prev=22,n)throw r;t.next=25;break;case 25:return t.finish(22);case 26:return t.finish(19);case 27:case"end":return t.stop()}},t,null,[[3,15,19,27],[20,,22,26]])})))}},{key:"forEach",value:function(t){var e=!0,n=!1,r=void 0;try{for(var i,s=this._pairs[Symbol.iterator]();!(e=(i=s.next()).done);e=!0){var a=cs(i.value,2),o=a[0];t(a[1],o)}}catch(t){n=!0,r=t}finally{try{e||null==s.return||s.return()}finally{if(n)throw r}}}},{key:"map",value:function(l){var h=this._pairs;return new e(wi({},Symbol.iterator,_i.mark(function t(){var e,n,r,i,s,a,o,u;return _i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=h[Symbol.iterator]();case 5:if(e=(s=i.next()).done){t.next=12;break}return a=cs(s.value,2),o=a[0],u=a[1],t.next=9,[o,l(u,o)];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,null,[[3,14,18,26],[19,,21,25]])})))}},{key:"max",value:function(t){var e=this._pairs[Symbol.iterator](),n=e.next();if(n.done)return null;for(var r=n.value[1],i=t(n.value[1],n.value[0]);!(n=e.next()).done;){var s=cs(n.value,2),a=s[0],o=s[1],u=t(o,a);i<u&&(i=u,r=o)}return r}},{key:"min",value:function(t){var e=this._pairs[Symbol.iterator](),n=e.next();if(n.done)return null;for(var r=n.value[1],i=t(n.value[1],n.value[0]);!(n=e.next()).done;){var s=cs(n.value,2),a=s[0],o=s[1],u=t(o,a);u<i&&(i=u,r=o)}return r}},{key:"reduce",value:function(t,e){var n=!0,r=!1,i=void 0;try{for(var s,a=this._pairs[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var o=cs(s.value,2),u=o[0];e=t(e,o[1],u)}}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return e}},{key:"sort",value:function(u){var t=this;return new e(wi({},Symbol.iterator,function(){return xi(t._pairs).sort(function(t,e){var n=cs(t,2),r=n[0],i=n[1],s=cs(e,2),a=s[0],o=s[1];return u(i,o,r,a)})[Symbol.iterator]()}))}}]),e}();function fs(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}var ms=function(){function u(t,e){var n;if(Mi(this,u),n=Pi(this,Ei(u).call(this)),t&&!Array.isArray(t)&&(e=t,t=[]),n._options=e||{},n._data=new Map,n.length=0,n._idProp=n._options.fieldId||"id",n._type={},n._options.type)for(var r=Object.keys(n._options.type),i=0,s=r.length;i<s;i++){var a=r[i],o=n._options.type[a];n._type[a]="Date"==o||"ISODate"==o||"ASPDate"==o?"Date":o}return t&&t.length&&n.add(t),n.setOptions(e),n}return Li(u,os),Ti(u,[{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),delete this._queue):(this._queue||(this._queue=as.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===Di(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var n,r=[];if(Array.isArray(t))for(var i=0,s=t.length;i<s;i++)n=this._addItem(t[i]),r.push(n);else{if(!t||"object"!==Di(t))throw new Error("Unknown dataType");n=this._addItem(t),r.push(n)}return r.length&&this._trigger("add",{items:r},e),r}},{key:"update",value:function(t,e){function n(t){var e=t[c];if(null!=e&&a._data.has(e)){var n=t,r=Object.assign({},a._data.get(e)),i=a._updateItem(n);u.push(i),h.push(n),l.push(r)}else{var s=a._addItem(t);o.push(s)}}var a=this,o=[],u=[],l=[],h=[],c=this._idProp;if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++)t[r]&&"object"===Di(t[r])?n(t[r]):console.warn("Ignoring input item, which is not an object at index "+r);else{if(!t||"object"!==Di(t))throw new Error("Unknown dataType");n(t)}if(o.length&&this._trigger("add",{items:o},e),u.length){var s={items:u,oldData:l,data:h};this._trigger("update",s,e)}return o.concat(u)}},{key:"updateOnly",value:function(t,e){var s=this;Array.isArray(t)||(t=[t]);var n=t.map(function(t){var e=s._data.get(t[s._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}).map(function(t){var e=t.oldData,n=t.update,r=e[s._idProp],i=ns(ns({},e),n);return s._data.set(r,i),{id:r,oldData:e,updatedData:i}});if(n.length){var r={items:n.map(function(t){return t.id}),oldData:n.map(function(t){return t.oldData}),data:n.map(function(t){return t.updatedData})};return this._trigger("update",r,e),r.items}return[]}},{key:"get",value:function(t,e){var n=void 0,r=void 0,i=void 0,s=(i=ss(t)?(n=t,e):Array.isArray(t)?(r=t,e):t)&&"Object"===i.returnType?"Object":"Array",a=i&&i.type||this._options.type,o=i&&i.filter,u=[],l=null,h=null,c=null;if(null!=n)(l=this._getItem(n,a))&&o&&!o(l)&&(l=null);else if(null!=r)for(var d=0,f=r.length;d<f;d++)null==(l=this._getItem(r[d],a))||o&&!o(l)||u.push(l);else for(var m=0,p=(h=xi(this._data.keys())).length;m<p;m++)c=h[m],null==(l=this._getItem(c,a))||o&&!o(l)||u.push(l);if(i&&i.order&&null==n&&this._sort(u,i.order),i&&i.fields){var y=i.fields;if(null!=n&&null!=l)l=this._filterFields(l,y);else for(var v=0,g=u.length;v<g;v++)u[v]=this._filterFields(u[v],y)}if("Object"!=s)return null!=n?l:u;for(var _={},w=0,b=u.length;w<b;w++){var S=u[w];_[S[this._idProp]]=S}return _}},{key:"getIds",value:function(t){var e,n,r=this._data,i=t&&t.filter,s=t&&t.order,a=t&&t.type||this._options.type,o=xi(r.keys()),u=[];if(i)if(s){n=[];for(var l=0,h=o.length;l<h;l++){var c=o[l];i(e=this._getItem(c,a))&&n.push(e)}this._sort(n,s);for(var d=0,f=n.length;d<f;d++)u.push(n[d][this._idProp])}else for(var m=0,p=o.length;m<p;m++){var y=o[m];i(e=this._getItem(y,a))&&u.push(e[this._idProp])}else if(s){n=[];for(var v=0,g=o.length;v<g;v++){var _=o[v];n.push(r.get(_))}this._sort(n,s);for(var w=0,b=n.length;w<b;w++)u.push(n[w][this._idProp])}else for(var S=0,k=o.length;S<k;S++){var x=o[S];e=r.get(x),u.push(e[this._idProp])}return u}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var n=e&&e.filter,r=e&&e.type||this._options.type,i=this._data,s=xi(i.keys());if(e&&e.order)for(var a=this.get(e),o=0,u=a.length;o<u;o++){var l=a[o];t(l,l[this._idProp])}else for(var h=0,c=s.length;h<c;h++){var d=s[h],f=this._getItem(d,r);n&&!n(f)||t(f,d)}}},{key:"map",value:function(t,e){for(var n=e&&e.filter,r=e&&e.type||this._options.type,i=[],s=this._data,a=xi(s.keys()),o=0,u=a.length;o<u;o++){var l=a[o],h=this._getItem(l,r);n&&!n(h)||i.push(t(h,l))}return e&&e.order&&this._sort(i,e.order),i}},{key:"_filterFields",value:function(n,t){return n?(Array.isArray(t)?t:Object.keys(t)).reduce(function(t,e){return t[e]=n[e],t},{}):n}},{key:"_sort",value:function(t,e){if("string"==typeof e){var i=e;t.sort(function(t,e){var n=t[i],r=e[i];return r<n?1:n<r?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");t.sort(e)}}},{key:"remove",value:function(t,e){for(var n=[],r=[],i=Array.isArray(t)?t:[t],s=0,a=i.length;s<a;s++){var o=this._remove(i[s]);if(o){var u=o[this._idProp];null!=u&&(n.push(u),r.push(o))}}return n.length&&this._trigger("remove",{items:n,oldData:r},e),n}},{key:"_remove",value:function(t){var e;if(ss(t)?e=t:t&&"object"===Di(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var n=this._data.get(e)||null;return this._data.delete(e),--this.length,n}return null}},{key:"clear",value:function(t){for(var e=xi(this._data.keys()),n=[],r=0,i=e.length;r<i;r++)n.push(this._data.get(e[r]));return this._data.clear(),this.length=0,this._trigger("remove",{items:e,oldData:n},t),e}},{key:"max",value:function(t){var e=null,n=null,r=!0,i=!1,s=void 0;try{for(var a,o=this._data.values()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var u=a.value,l=u[t];"number"==typeof l&&(null==n||n<l)&&(e=u,n=l)}}catch(t){i=!0,s=t}finally{try{r||null==o.return||o.return()}finally{if(i)throw s}}return e||null}},{key:"min",value:function(t){var e=null,n=null,r=!0,i=!1,s=void 0;try{for(var a,o=this._data.values()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var u=a.value,l=u[t];"number"==typeof l&&(null==n||l<n)&&(e=u,n=l)}}catch(t){i=!0,s=t}finally{try{r||null==o.return||o.return()}finally{if(i)throw s}}return e||null}},{key:"distinct",value:function(t){for(var e=this._data,n=xi(e.keys()),r=[],i=this._options.type&&this._options.type[t]||null,s=0,a=0,o=n.length;a<o;a++){for(var u=n[a],l=e.get(u)[t],h=!1,c=0;c<s;c++)if(r[c]==l){h=!0;break}h||void 0===l||(r[s]=l,s++)}if(i)for(var d=0,f=r.length;d<f;d++)r[d]=rs(r[d],i);return r}},{key:"_addItem",value:function(t){var e=t[this._idProp];if(null!=e){if(this._data.has(e))throw new Error("Cannot add item: item with id "+e+" already exists")}else e=ji(),t[this._idProp]=e;for(var n={},r=Object.keys(t),i=0,s=r.length;i<s;i++){var a=r[i],o=this._type[a];n[a]=rs(t[a],o)}return this._data.set(e,n),++this.length,e}},{key:"_getItem",value:function(t,e){var n,r=this._data.get(t);if(!r)return null;var i=Object.keys(r);if(e){n={};for(var s=0,a=i.length;s<a;s++){var o=i[s],u=r[o];n[o]=rs(u,e[o])}}else n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fs(n,!0).forEach(function(t){wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r);return null==n[this._idProp]&&(n[this._idProp]=r.id),n}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+JSON.stringify(t)+")");var n=this._data.get(e);if(!n)throw new Error("Cannot update item: no item with id "+e+" found");for(var r=Object.keys(t),i=0,s=r.length;i<s;i++){var a=r[i],o=this._type[a];n[a]=rs(t[a],o)}return e}},{key:"stream",value:function(u){if(u){var l=this._data;return new ds(wi({},Symbol.iterator,_i.mark(function t(){var e,n,r,i,s,a,o;return _i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=u[Symbol.iterator]();case 5:if(e=(s=i.next()).done){t.next=14;break}if(a=s.value,null!=(o=l.get(a)))return t.next=11,[a,o];t.next=11;break;case 11:e=!0,t.next=5;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(3),n=!0,r=t.t0;case 20:t.prev=20,t.prev=21,e||null==i.return||i.return();case 23:if(t.prev=23,n)throw r;t.next=26;break;case 26:return t.finish(23);case 27:return t.finish(20);case 28:case"end":return t.stop()}},t,null,[[3,16,20,28],[21,,23,27]])})))}return new ds(wi({},Symbol.iterator,this._data.entries.bind(this._data)))}}]),u}(),ps=function(){function r(t,e){var n;return Mi(this,r),(n=Pi(this,Ei(r).call(this))).length=0,n._ids=new Set,n._options=e||{},n._listener=n._onEvent.bind(Yi(n)),n.setData(t),n}return Li(r,os),Ti(r,[{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:this._options.filter}),n=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:n})}if(null!=t){this._data=t;for(var r=this._data.getIds({filter:this._options.filter}),i=0,s=r.length;i<s;i++){var a=r[i];this._ids.add(a)}this.length=r.length,this._trigger("add",{items:r})}else this._data=new ms;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:this._options.filter}),e=xi(this._ids),n={},r=[],i=[],s=[],a=0,o=t.length;a<o;a++){var u=t[a];n[u]=!0,this._ids.has(u)||(r.push(u),this._ids.add(u))}for(var l=0,h=e.length;l<h;l++){var c=e[l],d=this._data.get(c);null==d?console.error("If you see this, report it please."):n[c]||(i.push(c),s.push(d),this._ids.delete(c))}this.length+=r.length-i.length,r.length&&this._trigger("add",{items:r}),i.length&&this._trigger("remove",{items:i,oldData:s})}},{key:"get",value:function(t,e){if(null==this._data)return null;var n,r=null;n=ss(t)||Array.isArray(t)?(r=t,e):t;var i=Object.assign({},this._options,n),s=this._options.filter,a=n&&n.filter;return s&&a&&(i.filter=function(t){return s(t)&&a(t)}),null==r?this._data.get(i):this._data.get(r,i)}},{key:"getIds",value:function(t){if(this._data.length){var e,n=this._options.filter,r=null!=t?t.filter:null;return e=r?n?function(t){return n(t)&&r(t)}:r:n,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var n,r=this._options.filter,i=e&&e.filter;n=i?r?function(t){return r(t)&&i(t)}:i:r,this._data.forEach(t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var n,r=this._options.filter,i=e&&e.filter;return n=i?r?function(t){return r(t)&&i(t)}:i:r,this._data.map(t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){return this._data.stream(t||wi({},Symbol.iterator,this._ids.keys.bind(this._ids)))}},{key:"_onEvent",value:function(t,e,n){if(e&&e.items&&this._data){var r=e.items,i=[],s=[],a=[],o=[],u=[],l=[];switch(t){case"add":for(var h=0,c=r.length;h<c;h++){var d=r[h];this.get(d)&&(this._ids.add(d),i.push(d))}break;case"update":for(var f=0,m=r.length;f<m;f++){var p=r[f];this.get(p)?this._ids.has(p)?(s.push(p),u.push(e.data[f]),o.push(e.oldData[f])):(this._ids.add(p),i.push(p)):this._ids.has(p)&&(this._ids.delete(p),a.push(p),l.push(e.oldData[f]))}break;case"remove":for(var y=0,v=r.length;y<v;y++){var g=r[y];this._ids.has(g)&&(this._ids.delete(g),a.push(g),l.push(e.oldData[y]))}}this.length+=i.length-a.length,i.length&&this._trigger("add",{items:i},n),s.length&&this._trigger("update",{items:s,oldData:o,data:u},n),a.length&&this._trigger("remove",{items:a,oldData:l},n)}}}]),r}(),ys={DataSet:ms,DataView:ps,Queue:as},vs=Object.freeze({default:ys,DataSet:ms,DataStream:ds,DataView:ps,Queue:as}),gs=_s;function _s(t){if(t)return function(t){for(var e in _s.prototype)t[e]=_s.prototype[e];return t}(t)}function ws(t,e,n){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0,this.z=void 0!==n?n:0}_s.prototype.on=_s.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},_s.prototype.once=function(t,e){var n=this;function r(){n.off(t,r),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},r.fn=e,this.on(t,r),this},_s.prototype.off=_s.prototype.removeListener=_s.prototype.removeAllListeners=_s.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks[t];if(!r)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return this},_s.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},_s.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},_s.prototype.hasListeners=function(t){return!!this.listeners(t).length},ws.subtract=function(t,e){var n=new ws;return n.x=t.x-e.x,n.y=t.y-e.y,n.z=t.z-e.z,n},ws.add=function(t,e){var n=new ws;return n.x=t.x+e.x,n.y=t.y+e.y,n.z=t.z+e.z,n},ws.avg=function(t,e){return new ws((t.x+e.x)/2,(t.y+e.y)/2,(t.z+e.z)/2)},ws.crossProduct=function(t,e){var n=new ws;return n.x=t.y*e.z-t.z*e.y,n.y=t.z*e.x-t.x*e.z,n.z=t.x*e.y-t.y*e.x,n},ws.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};var bs=ws;var Ss=function(t,e){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0},ks=yi(fi);function xs(t,e){if(void 0===t)throw new Error("No container element defined");if(this.container=t,this.visible=!e||null==e.visible||e.visible,this.visible){this.frame=document.createElement("DIV"),this.frame.style.width="100%",this.frame.style.position="relative",this.container.appendChild(this.frame),this.frame.prev=document.createElement("INPUT"),this.frame.prev.type="BUTTON",this.frame.prev.value="Prev",this.frame.appendChild(this.frame.prev),this.frame.play=document.createElement("INPUT"),this.frame.play.type="BUTTON",this.frame.play.value="Play",this.frame.appendChild(this.frame.play),this.frame.next=document.createElement("INPUT"),this.frame.next.type="BUTTON",this.frame.next.value="Next",this.frame.appendChild(this.frame.next),this.frame.bar=document.createElement("INPUT"),this.frame.bar.type="BUTTON",this.frame.bar.style.position="absolute",this.frame.bar.style.border="1px solid red",this.frame.bar.style.width="100px",this.frame.bar.style.height="6px",this.frame.bar.style.borderRadius="2px",this.frame.bar.style.MozBorderRadius="2px",this.frame.bar.style.border="1px solid #7F7F7F",this.frame.bar.style.backgroundColor="#E5E5E5",this.frame.appendChild(this.frame.bar),this.frame.slide=document.createElement("INPUT"),this.frame.slide.type="BUTTON",this.frame.slide.style.margin="0px",this.frame.slide.value=" ",this.frame.slide.style.position="relative",this.frame.slide.style.left="-100px",this.frame.appendChild(this.frame.slide);var n=this;this.frame.slide.onmousedown=function(t){n._onMouseDown(t)},this.frame.prev.onclick=function(t){n.prev(t)},this.frame.play.onclick=function(t){n.togglePlay(t)},this.frame.next.onclick=function(t){n.next(t)}}this.onChangeCallback=void 0,this.values=[],this.index=void 0,this.playTimeout=void 0,this.playInterval=1e3,this.playLoop=!0}xs.prototype.prev=function(){var t=this.getIndex();0<t&&(t--,this.setIndex(t))},xs.prototype.next=function(){var t=this.getIndex();t<this.values.length-1&&(t++,this.setIndex(t))},xs.prototype.playNext=function(){var t=new Date,e=this.getIndex();e<this.values.length-1?(e++,this.setIndex(e)):this.playLoop&&(e=0,this.setIndex(e));var n=new Date-t,r=Math.max(this.playInterval-n,0),i=this;this.playTimeout=setTimeout(function(){i.playNext()},r)},xs.prototype.togglePlay=function(){void 0===this.playTimeout?this.play():this.stop()},xs.prototype.play=function(){this.playTimeout||(this.playNext(),this.frame&&(this.frame.play.value="Stop"))},xs.prototype.stop=function(){clearInterval(this.playTimeout),this.playTimeout=void 0,this.frame&&(this.frame.play.value="Play")},xs.prototype.setOnChangeCallback=function(t){this.onChangeCallback=t},xs.prototype.setPlayInterval=function(t){this.playInterval=t},xs.prototype.getPlayInterval=function(){return this.playInterval},xs.prototype.setPlayLoop=function(t){this.playLoop=t},xs.prototype.onChange=function(){void 0!==this.onChangeCallback&&this.onChangeCallback()},xs.prototype.redraw=function(){if(this.frame){this.frame.bar.style.top=this.frame.clientHeight/2-this.frame.bar.offsetHeight/2+"px",this.frame.bar.style.width=this.frame.clientWidth-this.frame.prev.clientWidth-this.frame.play.clientWidth-this.frame.next.clientWidth-30+"px";var t=this.indexToLeft(this.index);this.frame.slide.style.left=t+"px"}},xs.prototype.setValues=function(t){this.values=t,0<this.values.length?this.setIndex(0):this.index=void 0},xs.prototype.setIndex=function(t){if(!(t<this.values.length))throw new Error("Index out of range");this.index=t,this.redraw(),this.onChange()},xs.prototype.getIndex=function(){return this.index},xs.prototype.get=function(){return this.values[this.index]},xs.prototype._onMouseDown=function(t){if(t.which?1===t.which:1===t.button){this.startClientX=t.clientX,this.startSlideX=parseFloat(this.frame.slide.style.left),this.frame.style.cursor="move";var e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},ks.addEventListener(document,"mousemove",this.onmousemove),ks.addEventListener(document,"mouseup",this.onmouseup),ks.preventDefault(t)}},xs.prototype.leftToIndex=function(t){var e=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10,n=t-3,r=Math.round(n/e*(this.values.length-1));return r<0&&(r=0),r>this.values.length-1&&(r=this.values.length-1),r},xs.prototype.indexToLeft=function(t){var e=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;return 3+t/(this.values.length-1)*e},xs.prototype._onMouseMove=function(t){var e=t.clientX-this.startClientX,n=this.startSlideX+e,r=this.leftToIndex(n);this.setIndex(r),ks.preventDefault()},xs.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",ks.removeEventListener(document,"mousemove",this.onmousemove),ks.removeEventListener(document,"mouseup",this.onmouseup),ks.preventDefault()};var Ds=xs;function Ms(t,e,n,r){this._start=0,this._end=0,this._step=1,this.prettyStep=!0,this.precision=5,this._current=0,this.setRange(t,e,n,r)}Ms.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},Ms.prototype.setRange=function(t,e,n,r){if(!this.isNumeric(t))throw new Error("Parameter 'start' is not numeric; value: "+t);if(!this.isNumeric(e))throw new Error("Parameter 'end' is not numeric; value: "+t);if(!this.isNumeric(n))throw new Error("Parameter 'step' is not numeric; value: "+t);this._start=t||0,this._end=e||0,this.setStep(n,r)},Ms.prototype.setStep=function(t,e){void 0===t||t<=0||(void 0!==e&&(this.prettyStep=e),!0===this.prettyStep?this._step=Ms.calculatePrettyStep(t):this._step=t)},Ms.calculatePrettyStep=function(t){function e(t){return Math.log(t)/Math.LN10}var n=Math.pow(10,Math.round(e(t))),r=2*Math.pow(10,Math.round(e(t/2))),i=5*Math.pow(10,Math.round(e(t/5))),s=n;return Math.abs(r-t)<=Math.abs(s-t)&&(s=r),Math.abs(i-t)<=Math.abs(s-t)&&(s=i),s<=0&&(s=1),s},Ms.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))},Ms.prototype.getStep=function(){return this._step},Ms.prototype.start=function(t){void 0===t&&(t=!1),this._current=this._start-this._start%this._step,t&&this.getCurrent()<this._start&&this.next()},Ms.prototype.next=function(){this._current+=this._step},Ms.prototype.end=function(){return this._current>this._end};var Os=Ms;function Ts(t){return(Ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ys(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ps(){this.armLocation=new bs,this.armRotation={},this.armRotation.horizontal=0,this.armRotation.vertical=0,this.armLength=1.7,this.cameraOffset=new bs,this.offsetMultiplier=.6,this.cameraLocation=new bs,this.cameraRotation=new bs(.5*Math.PI,0,0),this.calculateCameraOrientation()}Ps.prototype.setOffset=function(t,e){var n=Math.abs,r=Math.sign,i=this.offsetMultiplier,s=this.armLength*i;n(t)>s&&(t=r(t)*s),n(e)>s&&(e=r(e)*s),this.cameraOffset.x=t,this.cameraOffset.y=e,this.calculateCameraOrientation()},Ps.prototype.getOffset=function(){return this.cameraOffset},Ps.prototype.setArmLocation=function(t,e,n){this.armLocation.x=t,this.armLocation.y=e,this.armLocation.z=n,this.calculateCameraOrientation()},Ps.prototype.setArmRotation=function(t,e){void 0!==t&&(this.armRotation.horizontal=t),void 0!==e&&(this.armRotation.vertical=e,this.armRotation.vertical<0&&(this.armRotation.vertical=0),this.armRotation.vertical>.5*Math.PI&&(this.armRotation.vertical=.5*Math.PI)),void 0===t&&void 0===e||this.calculateCameraOrientation()},Ps.prototype.getArmRotation=function(){var t={};return t.horizontal=this.armRotation.horizontal,t.vertical=this.armRotation.vertical,t},Ps.prototype.setArmLength=function(t){void 0!==t&&(this.armLength=t,this.armLength<.71&&(this.armLength=.71),5<this.armLength&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())},Ps.prototype.getArmLength=function(){return this.armLength},Ps.prototype.getCameraLocation=function(){return this.cameraLocation},Ps.prototype.getCameraRotation=function(){return this.cameraRotation},Ps.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical),this.cameraRotation.x=Math.PI/2-this.armRotation.vertical,this.cameraRotation.y=0,this.cameraRotation.z=-this.armRotation.horizontal;var t=this.cameraRotation.x,e=this.cameraRotation.z,n=this.cameraOffset.x,r=this.cameraOffset.y,i=Math.sin,s=Math.cos;this.cameraLocation.x=this.cameraLocation.x+n*s(e)+r*-i(e)*s(t),this.cameraLocation.y=this.cameraLocation.y+n*i(e)+r*s(e)*s(t),this.cameraLocation.z=this.cameraLocation.z+r*i(t)};var Es=Ps,Cs={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9},Ls={dot:Cs.DOT,"dot-line":Cs.DOTLINE,"dot-color":Cs.DOTCOLOR,"dot-size":Cs.DOTSIZE,line:Cs.LINE,grid:Cs.GRID,surface:Cs.SURFACE,bar:Cs.BAR,"bar-color":Cs.BARCOLOR,"bar-size":Cs.BARSIZE},Rs=["width","height","filterLabel","legendLabel","xLabel","yLabel","zLabel","xValueLabel","yValueLabel","zValueLabel","showXAxis","showYAxis","showZAxis","showGrid","showPerspective","showShadow","keepAspectRatio","verticalRatio","dotSizeRatio","dotSizeMinFraction","dotSizeMaxFraction","showAnimationControls","animationInterval","animationPreload","animationAutoStart","axisColor","gridColor","xCenter","yCenter","zoomable","ctrlToZoom"],As=["xBarWidth","yBarWidth","valueMin","valueMax","xMin","xMax","xStep","yMin","yMax","yStep","zMin","zMax","zStep"],Ws=void 0;function Is(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function Ns(t,e){return void 0===t||""===t?e:t+function(t){return void 0===t||""===t||"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}(e)}function Fs(t,e,n,r){for(var i,s=0;s<n.length;++s)e[Ns(r,i=n[s])]=t[i]}function js(t,e,n,r){for(var i,s=0;s<n.length;++s)void 0!==t[i=n[s]]&&(e[Ns(r,i)]=t[i])}function Vs(t,e){void 0!==t.backgroundColor&&function(t,e){var n="white",r="gray",i=1;if("string"==typeof t)n=t,r="none",i=0;else{if("object"!==Ts(t))throw new Error("Unsupported type of backgroundColor");void 0!==t.fill&&(n=t.fill),void 0!==t.stroke&&(r=t.stroke),void 0!==t.strokeWidth&&(i=t.strokeWidth)}e.frame.style.backgroundColor=n,e.frame.style.borderColor=r,e.frame.style.borderWidth=i+"px",e.frame.style.borderStyle="solid"}(t.backgroundColor,e),function(t,e){if(void 0===t)return;void 0===e.dataColor&&(e.dataColor={});"string"==typeof t?(e.dataColor.fill=t,e.dataColor.stroke=t):(t.fill&&(e.dataColor.fill=t.fill),t.stroke&&(e.dataColor.stroke=t.stroke),void 0!==t.strokeWidth&&(e.dataColor.strokeWidth=t.strokeWidth))}(t.dataColor,e),function(t,e){if(void 0===t)return;var n;if("string"==typeof t){if(-1===(n=function(t){var e=Ls[t];return void 0!==e?e:-1}(t)))throw new Error("Style '"+t+"' is invalid")}else{if(!function(t){var e=!1;for(var n in Cs)if(Cs[n]===t){e=!0;break}return e}(t))throw new Error("Style '"+t+"' is invalid");n=t}e.style=n}(t.style,e),function(t,e){if(void 0===t){if(void 0===Ws.showLegend){var n=e.style===Cs.DOTCOLOR||e.style===Cs.DOTSIZE;e.showLegend=n}}else e.showLegend=t}(t.showLegend,e),Gs(t.cameraPosition,e),void 0!==t.tooltip&&(e.showTooltip=t.tooltip),null!=t.onclick&&(e.onclick_callback=t.onclick),void 0!==t.tooltipStyle&&ks.selectiveDeepExtend(["tooltipStyle"],e,t)}function Gs(t,e){var n=t;void 0!==n&&(void 0===e.camera&&(e.camera=new Es),e.camera.setArmRotation(n.horizontal,n.vertical),e.camera.setArmLength(n.distance))}var Hs,zs={STYLE:Cs,setDefaults:function(t,e){if(void 0===t||Is(t))throw new Error("No DEFAULTS passed");if(void 0===e)throw new Error("No dst passed");Fs(Ws=t,e,Rs),Fs(t,e,As,"default"),Vs(t,e),e.margin=10,e.showGrayBottom=!1,e.showTooltip=!1,e.onclick_callback=null,e.eye=new bs(0,0,-1)},setOptions:function(t,e){if(void 0!==t){if(void 0===e)throw new Error("No dst passed");if(void 0===Ws||Is(Ws))throw new Error("DEFAULTS not set for module Settings");js(t,e,Rs),js(t,e,As,"default"),Vs(t,e)}},setCameraPosition:Gs},Us=!1,Bs="background: #FFeeee; color: #dd0000",Zs=function(){function f(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f)}return function(t,e,n){e&&Ys(t.prototype,e),n&&Ys(t,n)}(f,null,[{key:"validate",value:function(t,e,n){Us=!1;var r=Hs=e;return void 0!==n&&(r=e[n]),f.parse(t,r,[]),Us}},{key:"parse",value:function(t,e,n){for(var r in t)t.hasOwnProperty(r)&&f.check(r,t,e,n)}},{key:"check",value:function(t,e,n,r){if(void 0!==n[t]||void 0!==n.__any__){var i=t,s=!0;void 0===n[t]&&void 0!==n.__any__&&(i="__any__",s="object"===f.getType(e[t]));var a=n[i];s&&void 0!==a.__type__&&(a=a.__type__),f.checkFields(t,e,n,i,a,r)}else f.getSuggestion(t,n,r)}},{key:"checkFields",value:function(e,t,n,r,i,s){function a(t){console.log("%c"+t+f.printLocation(s,e),Bs)}var o=f.getType(t[e]),u=i[o];void 0!==u?"array"===f.getType(u)&&-1===u.indexOf(t[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+f.print(u)+' not "'+t[e]+'". '),Us=!0):"object"===o&&"__any__"!==r&&(s=di.copyAndExtendArray(s,e),f.parse(t[e],n[r],s)):void 0===i.any&&(a('Invalid type received for "'+e+'". Expected: '+f.print(Object.keys(i))+". Received ["+o+'] "'+t[e]+'"'),Us=!0)}},{key:"getType",value:function(t){var e=Ts(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Array.isArray(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(t,e,n){var r,i=f.findInOptions(t,e,n,!1),s=f.findInOptions(t,Hs,[],!0);r=void 0!==i.indexMatch?" in "+f.printLocation(i.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+i.indexMatch+'"?\n\n':s.distance<=4&&i.distance>s.distance?" in "+f.printLocation(i.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+f.printLocation(s.path,s.closestMatch,""):i.distance<=8?'. Did you mean "'+i.closestMatch+'"?'+f.printLocation(i.path,t):". Did you mean one of these: "+f.print(Object.keys(e))+f.printLocation(n,t),console.log('%cUnknown option detected: "'+t+'"'+r,Bs),Us=!0}},{key:"findInOptions",value:function(t,e,n,r){var i=3<arguments.length&&void 0!==r&&r,s=1e9,a="",o=[],u=t.toLowerCase(),l=void 0;for(var h in e){var c=void 0;if(void 0!==e[h].__type__&&!0===i){var d=f.findInOptions(t,e[h],di.copyAndExtendArray(n,h));s>d.distance&&(a=d.closestMatch,o=d.path,s=d.distance,l=d.indexMatch)}else-1!==h.toLowerCase().indexOf(u)&&(l=h),(c=f.levenshteinDistance(t,h))<s&&(a=h,o=di.copyArray(n),s=c)}return{closestMatch:a,path:o,distance:s,indexMatch:l}}},{key:"printLocation",value:function(t,e,n){for(var r="\n\n"+(2<arguments.length&&void 0!==n?n:"Problem value found at: \n")+"options = {\n",i=0;i<t.length;i++){for(var s=0;s<i+1;s++)r+="  ";r+=t[i]+": {\n"}for(var a=0;a<t.length+1;a++)r+="  ";r+=e+"\n";for(var o=0;o<t.length+1;o++){for(var u=0;u<t.length-o;u++)r+="  ";r+="}\n"}return r+"\n\n"}},{key:"print",value:function(t){return JSON.stringify(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,r,i=[];for(n=0;n<=e.length;n++)i[n]=[n];for(r=0;r<=t.length;r++)i[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=t.length;r++)e.charAt(n-1)==t.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[e.length][t.length]}}]),f}(),qs=Object.freeze({Validator:Zs,printStyle:Bs}),Xs="string",$s="boolean",Js="number",Qs="object",Ks={fill:{string:Xs},stroke:{string:Xs},strokeWidth:{number:Js},__type__:{string:Xs,object:Qs,undefined:"undefined"}},ta={animationAutoStart:{boolean:$s,undefined:"undefined"},animationInterval:{number:Js},animationPreload:{boolean:$s},axisColor:{string:Xs},backgroundColor:Ks,xBarWidth:{number:Js,undefined:"undefined"},yBarWidth:{number:Js,undefined:"undefined"},cameraPosition:{distance:{number:Js},horizontal:{number:Js},vertical:{number:Js},__type__:{object:Qs}},zoomable:{boolean:$s},ctrlToZoom:{boolean:$s},xCenter:{string:Xs},yCenter:{string:Xs},dataColor:Ks,dotSizeMinFraction:{number:Js},dotSizeMaxFraction:{number:Js},dotSizeRatio:{number:Js},filterLabel:{string:Xs},gridColor:{string:Xs},onclick:{function:"function"},keepAspectRatio:{boolean:$s},xLabel:{string:Xs},yLabel:{string:Xs},zLabel:{string:Xs},legendLabel:{string:Xs},xMin:{number:Js,undefined:"undefined"},yMin:{number:Js,undefined:"undefined"},zMin:{number:Js,undefined:"undefined"},xMax:{number:Js,undefined:"undefined"},yMax:{number:Js,undefined:"undefined"},zMax:{number:Js,undefined:"undefined"},showAnimationControls:{boolean:$s,undefined:"undefined"},showGrid:{boolean:$s},showLegend:{boolean:$s,undefined:"undefined"},showPerspective:{boolean:$s},showShadow:{boolean:$s},showXAxis:{boolean:$s},showYAxis:{boolean:$s},showZAxis:{boolean:$s},xStep:{number:Js,undefined:"undefined"},yStep:{number:Js,undefined:"undefined"},zStep:{number:Js,undefined:"undefined"},style:{number:Js,string:["bar","bar-color","bar-size","dot","dot-line","dot-color","dot-size","line","grid","surface"]},tooltip:{boolean:$s,function:"function"},tooltipStyle:{content:{color:{string:Xs},background:{string:Xs},border:{string:Xs},borderRadius:{string:Xs},boxShadow:{string:Xs},padding:{string:Xs},__type__:{object:Qs}},line:{borderLeft:{string:Xs},height:{string:Xs},width:{string:Xs},pointerEvents:{string:Xs},__type__:{object:Qs}},dot:{border:{string:Xs},borderRadius:{string:Xs},height:{string:Xs},width:{string:Xs},pointerEvents:{string:Xs},__type__:{object:Qs}},__type__:{object:Qs}},xValueLabel:{function:"function"},yValueLabel:{function:"function"},zValueLabel:{function:"function"},valueMax:{number:Js,undefined:"undefined"},valueMin:{number:Js,undefined:"undefined"},verticalRatio:{number:Js},height:{string:Xs},width:{string:Xs},__type__:{object:Qs}},ea=Object.freeze({allOptions:ta});function na(){this.min=void 0,this.max=void 0}na.prototype.adjust=function(t){void 0!==t&&((void 0===this.min||this.min>t)&&(this.min=t),(void 0===this.max||this.max<t)&&(this.max=t))},na.prototype.combine=function(t){this.add(t.min),this.add(t.max)},na.prototype.expand=function(t){if(void 0!==t){var e=this.min-t,n=this.max+t;if(n<e)throw new Error("Passed expansion value makes range invalid");this.min=e,this.max=n}},na.prototype.range=function(){return this.max-this.min},na.prototype.center=function(){return(this.min+this.max)/2};var ra=na,ia=yi(vs),sa=ia.DataView;function aa(t,e,n){this.dataGroup=t,this.column=e,this.graph=n,this.index=void 0,this.value=void 0,this.values=t.getDistinctValues(this.column),0<this.values.length&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,n.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}aa.prototype.isLoaded=function(){return this.loaded},aa.prototype.getLoadedProgress=function(){for(var t=this.values.length,e=0;this.dataPoints[e];)e++;return Math.round(e/t*100)},aa.prototype.getLabel=function(){return this.graph.filterLabel},aa.prototype.getColumn=function(){return this.column},aa.prototype.getSelectedValue=function(){if(void 0!==this.index)return this.values[this.index]},aa.prototype.getValues=function(){return this.values},aa.prototype.getValue=function(t){if(t>=this.values.length)throw new Error("Index out of range");return this.values[t]},aa.prototype._getDataPoints=function(t){if(void 0===t&&(t=this.index),void 0===t)return[];var e;if(this.dataPoints[t])e=this.dataPoints[t];else{var n={};n.column=this.column,n.value=this.values[t];var r=new sa(this.dataGroup.getDataSet(),{filter:function(t){return t[n.column]==n.value}}).get();e=this.dataGroup._getDataPoints(r),this.dataPoints[t]=e}return e},aa.prototype.setOnLoadCallback=function(t){this.onLoadCallback=t},aa.prototype.selectValue=function(t){if(t>=this.values.length)throw new Error("Index out of range");this.index=t,this.value=this.values[t]},aa.prototype.loadInBackground=function(t){void 0===t&&(t=0);var e=this.graph.frame;if(t<this.values.length){void 0===e.progress&&(e.progress=document.createElement("DIV"),e.progress.style.position="absolute",e.progress.style.color="gray",e.appendChild(e.progress));var n=this.getLoadedProgress();e.progress.innerHTML="Loading animation... "+n+"%",e.progress.style.bottom="60px",e.progress.style.left="10px";var r=this;setTimeout(function(){r.loadInBackground(t+1)},10),this.loaded=!1}else this.loaded=!0,void 0!==e.progress&&(e.removeChild(e.progress),e.progress=void 0),this.onLoadCallback&&this.onLoadCallback()};var oa=aa,ua=ia.DataSet,la=ia.DataView;function ha(){this.dataTable=null}ha.prototype.initializeData=function(t,e,n){if(void 0!==e){var r;if(Array.isArray(e)&&(e=new ua(e)),!(e instanceof ua||e instanceof la))throw new Error("Array, DataSet, or DataView expected");if(0!=(r=e.get()).length){this.style=n,this.dataSet&&this.dataSet.off("*",this._onChange),this.dataSet=e,this.dataTable=r;var i=this;this._onChange=function(){t.setData(i.dataSet)},this.dataSet.on("*",this._onChange),this.colX="x",this.colY="y",this.colZ="z";var s=t.hasBars(n);if(s&&(void 0!==t.defaultXBarWidth?this.xBarWidth=t.defaultXBarWidth:this.xBarWidth=this.getSmallestDifference(r,this.colX)||1,void 0!==t.defaultYBarWidth?this.yBarWidth=t.defaultYBarWidth:this.yBarWidth=this.getSmallestDifference(r,this.colY)||1),this._initializeRange(r,this.colX,t,s),this._initializeRange(r,this.colY,t,s),this._initializeRange(r,this.colZ,t,!1),r[0].hasOwnProperty("style")){this.colValue="style";var a=this.getColumnRange(r,this.colValue);this._setRangeDefaults(a,t.defaultValueMin,t.defaultValueMax),this.valueRange=a}return this.getDataTable()[0].hasOwnProperty("filter")&&void 0===this.dataFilter&&(this.dataFilter=new oa(this,"filter",t),this.dataFilter.setOnLoadCallback(function(){t.redraw()})),this.dataFilter?this.dataFilter._getDataPoints():this._getDataPoints(this.getDataTable())}}},ha.prototype._collectRangeSettings=function(t,e){if(-1==["x","y","z"].indexOf(t))throw new Error("Column '"+t+"' invalid");var n=t.toUpperCase();return{barWidth:this[t+"BarWidth"],min:e["default"+n+"Min"],max:e["default"+n+"Max"],step:e["default"+n+"Step"],range_label:t+"Range",step_label:t+"Step"}},ha.prototype._initializeRange=function(t,e,n,r){var i=this._collectRangeSettings(e,n),s=this.getColumnRange(t,e);r&&"z"!=e&&s.expand(i.barWidth/2),this._setRangeDefaults(s,i.min,i.max),this[i.range_label]=s,this[i.step_label]=void 0!==i.step?i.step:s.range()/5},ha.prototype.getDistinctValues=function(t,e){void 0===e&&(e=this.dataTable);for(var n=[],r=0;r<e.length;r++){var i=e[r][t]||0;-1===n.indexOf(i)&&n.push(i)}return n.sort(function(t,e){return t-e})},ha.prototype.getSmallestDifference=function(t,e){for(var n=this.getDistinctValues(t,e),r=null,i=1;i<n.length;i++){var s=n[i]-n[i-1];(null==r||s<r)&&(r=s)}return r},ha.prototype.getColumnRange=function(t,e){for(var n=new ra,r=0;r<t.length;r++){var i=t[r][e];n.adjust(i)}return n},ha.prototype.getNumberOfRows=function(){return this.dataTable.length},ha.prototype._setRangeDefaults=function(t,e,n){void 0!==e&&(t.min=e),void 0!==n&&(t.max=n),t.max<=t.min&&(t.max=t.min+1)},ha.prototype.getDataTable=function(){return this.dataTable},ha.prototype.getDataSet=function(){return this.dataSet},ha.prototype.getDataPoints=function(t){for(var e=[],n=0;n<t.length;n++){var r=new bs;r.x=t[n][this.colX]||0,r.y=t[n][this.colY]||0,r.z=t[n][this.colZ]||0,r.data=t[n],void 0!==this.colValue&&(r.value=t[n][this.colValue]||0);var i={};i.point=r,i.bottom=new bs(r.x,r.y,this.zRange.min),i.trans=void 0,i.screen=void 0,e.push(i)}return e},ha.prototype.initDataAsMatrix=function(t){var e,n,r,i,s=this.getDistinctValues(this.colX,t),a=this.getDistinctValues(this.colY,t),o=this.getDataPoints(t),u=[];for(r=0;r<o.length;r++){i=o[r];var l=s.indexOf(i.point.x),h=a.indexOf(i.point.y);void 0===u[l]&&(u[l]=[]),u[l][h]=i}for(e=0;e<u.length;e++)for(n=0;n<u[e].length;n++)u[e][n]&&(u[e][n].pointRight=e<u.length-1?u[e+1][n]:void 0,u[e][n].pointTop=n<u[e].length-1?u[e][n+1]:void 0,u[e][n].pointCross=e<u.length-1&&n<u[e].length-1?u[e+1][n+1]:void 0);return o},ha.prototype.getInfo=function(){var t=this.dataFilter;if(t)return t.getLabel()+": "+t.getSelectedValue()},ha.prototype.reload=function(){this.dataTable&&this.setData(this.dataTable)},ha.prototype._getDataPoints=function(t){var e=[];if(this.style===zs.STYLE.GRID||this.style===zs.STYLE.SURFACE)e=this.initDataAsMatrix(t);else if(this._checkValueField(t),e=this.getDataPoints(t),this.style===zs.STYLE.LINE)for(var n=0;n<e.length;n++)0<n&&(e[n-1].pointNext=e[n]);return e},ha.prototype._checkValueField=function(t){if(this.style===zs.STYLE.BARCOLOR||this.style===zs.STYLE.BARSIZE||this.style===zs.STYLE.DOTCOLOR||this.style===zs.STYLE.DOTSIZE){if(void 0===this.colValue)throw new Error("Expected data to have  field 'style'  for graph style '"+this.style+"'");if(void 0===t[0][this.colValue])throw new Error("Expected data to have  field '"+this.colValue+"'  for graph style '"+this.style+"'")}};var ca=ha,da=yi(qs),fa=yi(ea),ma=da.Validator,pa=da.printStyle,ya=fa.allOptions;ga.STYLE=zs.STYLE;var va=void 0;function ga(t,e,n){if(!(this instanceof ga))throw new SyntaxError("Constructor must be called with the new operator");this.containerElement=t,this.dataGroup=new ca,this.dataPoints=null,this.create(),zs.setDefaults(ga.DEFAULTS,this),this.colX=void 0,this.colY=void 0,this.colZ=void 0,this.colValue=void 0,this.setOptions(n),this.setData(e)}function _a(t){return"clientX"in t?t.clientX:t.targetTouches[0]&&t.targetTouches[0].clientX||0}function wa(t){return"clientY"in t?t.clientY:t.targetTouches[0]&&t.targetTouches[0].clientY||0}ga.DEFAULTS={width:"400px",height:"400px",filterLabel:"time",legendLabel:"value",xLabel:"x",yLabel:"y",zLabel:"z",xValueLabel:function(t){return t},yValueLabel:function(t){return t},zValueLabel:function(t){return t},showXAxis:!0,showYAxis:!0,showZAxis:!0,showGrid:!0,showPerspective:!0,showShadow:!1,keepAspectRatio:!0,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:va,animationInterval:1e3,animationPreload:!1,animationAutoStart:va,axisColor:"#4D4D4D",gridColor:"#D3D3D3",xCenter:"55%",yCenter:"50%",style:ga.STYLE.DOT,tooltip:!1,tooltipStyle:{content:{padding:"10px",border:"1px solid #4d4d4d",color:"#1a1a1a",background:"rgba(255,255,255,0.7)",borderRadius:"2px",boxShadow:"5px 5px 10px rgba(128,128,128,0.5)"},line:{height:"40px",width:"0",borderLeft:"1px solid #4d4d4d",pointerEvents:"none"},dot:{height:"0",width:"0",border:"5px solid #4d4d4d",borderRadius:"5px",pointerEvents:"none"}},dataColor:{fill:"#7DC1FF",stroke:"#3267D2",strokeWidth:1},cameraPosition:{horizontal:1,vertical:.5,distance:1.7},zoomable:!0,ctrlToZoom:!1,showLegend:va,backgroundColor:va,xBarWidth:va,yBarWidth:va,valueMin:va,valueMax:va,xMin:va,xMax:va,xStep:va,yMin:va,yMax:va,yStep:va,zMin:va,zMax:va,zStep:va},gs(ga.prototype),ga.prototype._setScale=function(){this.scale=new bs(1/this.xRange.range(),1/this.yRange.range(),1/this.zRange.range()),this.keepAspectRatio&&(this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y),this.scale.z*=this.verticalRatio,void 0!==this.valueRange&&(this.scale.value=1/this.valueRange.range());var t=this.xRange.center()*this.scale.x,e=this.yRange.center()*this.scale.y,n=this.zRange.center()*this.scale.z;this.camera.setArmLocation(t,e,n)},ga.prototype._convert3Dto2D=function(t){var e=this._convertPointToTranslation(t);return this._convertTranslationToScreen(e)},ga.prototype._convertPointToTranslation=function(t){var e=this.camera.getCameraLocation(),n=this.camera.getCameraRotation(),r=t.x*this.scale.x,i=t.y*this.scale.y,s=t.z*this.scale.z,a=e.x,o=e.y,u=e.z,l=Math.sin(n.x),h=Math.cos(n.x),c=Math.sin(n.y),d=Math.cos(n.y),f=Math.sin(n.z),m=Math.cos(n.z);return new bs(d*(f*(i-o)+m*(r-a))-c*(s-u),l*(d*(s-u)+c*(f*(i-o)+m*(r-a)))+h*(m*(i-o)-f*(r-a)),h*(d*(s-u)+c*(f*(i-o)+m*(r-a)))-l*(m*(i-o)-f*(r-a)))},ga.prototype._convertTranslationToScreen=function(t){var e,n,r=this.eye.x,i=this.eye.y,s=this.eye.z,a=t.x,o=t.y,u=t.z;return n=this.showPerspective?(e=s/u*(a-r),s/u*(o-i)):(e=a*(-s/this.camera.getArmLength()),o*(-s/this.camera.getArmLength())),new Ss(this.currentXCenter+e*this.frame.canvas.clientWidth,this.currentYCenter-n*this.frame.canvas.clientWidth)},ga.prototype._calcTranslations=function(t){for(var e=0;e<t.length;e++){var n=t[e];n.trans=this._convertPointToTranslation(n.point),n.screen=this._convertTranslationToScreen(n.trans);var r=this._convertPointToTranslation(n.bottom);n.dist=this.showPerspective?r.length():-r.z}t.sort(function(t,e){return e.dist-t.dist})},ga.prototype._initializeRanges=function(){var t=this.dataGroup;this.xRange=t.xRange,this.yRange=t.yRange,this.zRange=t.zRange,this.valueRange=t.valueRange,this.xStep=t.xStep,this.yStep=t.yStep,this.zStep=t.zStep,this.xBarWidth=t.xBarWidth,this.yBarWidth=t.yBarWidth,this.colX=t.colX,this.colY=t.colY,this.colZ=t.colZ,this.colValue=t.colValue,this._setScale()},ga.prototype.getDataPoints=function(t){for(var e=[],n=0;n<t.length;n++){var r=new bs;r.x=t[n][this.colX]||0,r.y=t[n][this.colY]||0,r.z=t[n][this.colZ]||0,r.data=t[n],void 0!==this.colValue&&(r.value=t[n][this.colValue]||0);var i={};i.point=r,i.bottom=new bs(r.x,r.y,this.zRange.min),i.trans=void 0,i.screen=void 0,e.push(i)}return e},ga.prototype._getDataPoints=function(t){var e,n,r,i,s=[];if(this.style===ga.STYLE.GRID||this.style===ga.STYLE.SURFACE){var a=this.dataGroup.getDistinctValues(this.colX,t),o=this.dataGroup.getDistinctValues(this.colY,t);s=this.getDataPoints(t);var u=[];for(r=0;r<s.length;r++){i=s[r];var l=a.indexOf(i.point.x),h=o.indexOf(i.point.y);void 0===u[l]&&(u[l]=[]),u[l][h]=i}for(e=0;e<u.length;e++)for(n=0;n<u[e].length;n++)u[e][n]&&(u[e][n].pointRight=e<u.length-1?u[e+1][n]:void 0,u[e][n].pointTop=n<u[e].length-1?u[e][n+1]:void 0,u[e][n].pointCross=e<u.length-1&&n<u[e].length-1?u[e+1][n+1]:void 0)}else if(this._checkValueField(t),s=this.getDataPoints(t),this.style===ga.STYLE.LINE)for(r=0;r<s.length;r++)0<r&&(s[r-1].pointNext=s[r]);return s},ga.prototype.create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);this.frame=document.createElement("div"),this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas);var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t),this.frame.filter=document.createElement("div"),this.frame.filter.style.position="absolute",this.frame.filter.style.bottom="0px",this.frame.filter.style.left="0px",this.frame.filter.style.width="100%",this.frame.appendChild(this.frame.filter);var e=this;ks.addEventListener(this.frame.canvas,"mousedown",function(t){e._onMouseDown(t)}),ks.addEventListener(this.frame.canvas,"touchstart",function(t){e._onTouchStart(t)}),ks.addEventListener(this.frame.canvas,"mousewheel",function(t){e._onWheel(t)}),ks.addEventListener(this.frame.canvas,"mousemove",function(t){e._onTooltip(t)}),ks.addEventListener(this.frame.canvas,"click",function(t){e._onClick(t)}),this.containerElement.appendChild(this.frame)},ga.prototype._setSize=function(t,e){this.frame.style.width=t,this.frame.style.height=e,this._resizeCanvas()},ga.prototype._resizeCanvas=function(){this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,this.frame.filter.style.width=this.frame.canvas.clientWidth-20+"px"},ga.prototype.animationStart=function(){if(this.animationAutoStart&&this.dataGroup.dataFilter){if(!this.frame.filter||!this.frame.filter.slider)throw new Error("No animation available");this.frame.filter.slider.play()}},ga.prototype.animationStop=function(){this.frame.filter&&this.frame.filter.slider&&this.frame.filter.slider.stop()},ga.prototype._resizeCenter=function(){"%"===this.xCenter.charAt(this.xCenter.length-1)?this.currentXCenter=parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth:this.currentXCenter=parseFloat(this.xCenter),"%"===this.yCenter.charAt(this.yCenter.length-1)?this.currentYCenter=parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight):this.currentYCenter=parseFloat(this.yCenter)},ga.prototype.getCameraPosition=function(){var t=this.camera.getArmRotation();return t.distance=this.camera.getArmLength(),t},ga.prototype._readData=function(t){this.dataPoints=this.dataGroup.initializeData(this,t,this.style),this._initializeRanges(),this._redrawFilter()},ga.prototype.setData=function(t){null!=t&&(this._readData(t),this.redraw(),this.animationStart())},ga.prototype.setOptions=function(t){void 0!==t&&(!0===ma.validate(t,ya)&&console.log("%cErrors have been found in the supplied options object.",pa),this.animationStop(),zs.setOptions(t,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.setData(this.dataGroup.getDataTable()),this.animationStart())},ga.prototype.setPointDrawingMethod=function(){var t=void 0;switch(this.style){case ga.STYLE.BAR:t=ga.prototype._redrawBarGraphPoint;break;case ga.STYLE.BARCOLOR:t=ga.prototype._redrawBarColorGraphPoint;break;case ga.STYLE.BARSIZE:t=ga.prototype._redrawBarSizeGraphPoint;break;case ga.STYLE.DOT:t=ga.prototype._redrawDotGraphPoint;break;case ga.STYLE.DOTLINE:t=ga.prototype._redrawDotLineGraphPoint;break;case ga.STYLE.DOTCOLOR:t=ga.prototype._redrawDotColorGraphPoint;break;case ga.STYLE.DOTSIZE:t=ga.prototype._redrawDotSizeGraphPoint;break;case ga.STYLE.SURFACE:t=ga.prototype._redrawSurfaceGraphPoint;break;case ga.STYLE.GRID:t=ga.prototype._redrawGridGraphPoint;break;case ga.STYLE.LINE:t=ga.prototype._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=t},ga.prototype.redraw=function(){if(void 0===this.dataPoints)throw new Error("Graph data not initialized");this._resizeCanvas(),this._resizeCenter(),this._redrawSlider(),this._redrawClear(),this._redrawAxis(),this._redrawDataGraph(),this._redrawInfo(),this._redrawLegend()},ga.prototype._getContext=function(){var t=this.frame.canvas.getContext("2d");return t.lineJoin="round",t.lineCap="round",t},ga.prototype._redrawClear=function(){var t=this.frame.canvas;t.getContext("2d").clearRect(0,0,t.width,t.height)},ga.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},ga.prototype._getLegendWidth=function(){var t;this.style===ga.STYLE.DOTSIZE?t=this._dotSize()*this.dotSizeMaxFraction:t=this.style===ga.STYLE.BARSIZE?this.xBarWidth:20;return t},ga.prototype._redrawLegend=function(){if(!0===this.showLegend&&this.style!==ga.STYLE.LINE&&this.style!==ga.STYLE.BARSIZE){var t=this.style===ga.STYLE.BARSIZE||this.style===ga.STYLE.DOTSIZE,e=this.style===ga.STYLE.DOTSIZE||this.style===ga.STYLE.DOTCOLOR||this.style===ga.STYLE.BARCOLOR,n=Math.max(.25*this.frame.clientHeight,100),r=this.margin,i=this._getLegendWidth(),s=this.frame.clientWidth-this.margin,a=s-i,o=r+n,u=this._getContext();if(u.lineWidth=1,!(u.font="14px arial")==t){var l,h=n;for(l=0;l<h;l++){var c=240*((l-0)/(h-0)),d=this._hsv2rgb(c,1,1);u.strokeStyle=d,u.beginPath(),u.moveTo(a,r+l),u.lineTo(s,r+l),u.stroke()}u.strokeStyle=this.axisColor,u.strokeRect(a,r,i,n)}else{var f;this.style===ga.STYLE.DOTSIZE?f=i*(this.dotSizeMinFraction/this.dotSizeMaxFraction):(this.style,ga.STYLE.BARSIZE),u.strokeStyle=this.axisColor,u.fillStyle=this.dataColor.fill,u.beginPath(),u.moveTo(a,r),u.lineTo(s,r),u.lineTo(a+f,o),u.lineTo(a,o),u.closePath(),u.fill(),u.stroke()}var m,p,y=e?this.valueRange.min:this.zRange.min,v=e?this.valueRange.max:this.zRange.max,g=new Os(y,v,(v-y)/5,!0);for(g.start(!0);!g.end();)l=o-(g.getCurrent()-y)/(v-y)*n,m=new Ss(a-5,l),p=new Ss(a,l),this._line(u,m,p),u.textAlign="right",u.textBaseline="middle",u.fillStyle=this.axisColor,u.fillText(g.getCurrent(),a-10,l),g.next();u.textAlign="right",u.textBaseline="top";var _=this.legendLabel;u.fillText(_,s,o+this.margin)}},ga.prototype._redrawFilter=function(){var t=this.dataGroup.dataFilter,e=this.frame.filter;if(e.innerHTML="",t){var n={visible:this.showAnimationControls},r=new Ds(e,n);e.slider=r,e.style.padding="10px",r.setValues(t.values),r.setPlayInterval(this.animationInterval);var i=this;r.setOnChangeCallback(function(){var t=i.dataGroup.dataFilter,e=r.getIndex();t.selectValue(e),i.dataPoints=t._getDataPoints(),i.redraw()})}else e.slider=void 0},ga.prototype._redrawSlider=function(){void 0!==this.frame.filter.slider&&this.frame.filter.slider.redraw()},ga.prototype._redrawInfo=function(){var t=this.dataGroup.getInfo();if(void 0!==t){var e=this._getContext();e.font="14px arial",e.lineStyle="gray",e.fillStyle="gray",e.textAlign="left",e.textBaseline="top";var n=this.margin,r=this.margin;e.fillText(t,n,r)}},ga.prototype._line=function(t,e,n,r){void 0!==r&&(t.strokeStyle=r),t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.stroke()},ga.prototype.drawAxisLabelX=function(t,e,n,r,i){void 0===i&&(i=0);var s=this._convert3Dto2D(e);0<Math.cos(2*r)?(t.textAlign="center",t.textBaseline="top",s.y+=i):(Math.sin(2*r)<0?t.textAlign="right":t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,s.x,s.y)},ga.prototype.drawAxisLabelY=function(t,e,n,r,i){void 0===i&&(i=0);var s=this._convert3Dto2D(e);Math.cos(2*r)<0?(t.textAlign="center",t.textBaseline="top",s.y+=i):(0<Math.sin(2*r)?t.textAlign="right":t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,s.x,s.y)},ga.prototype.drawAxisLabelZ=function(t,e,n,r){void 0===r&&(r=0);var i=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,i.x-r,i.y)},ga.prototype._line3d=function(t,e,n,r){var i=this._convert3Dto2D(e),s=this._convert3Dto2D(n);this._line(t,i,s,r)},ga.prototype._redrawAxis=function(){var t,e,n,r,i,s,a,o,u,l,h=this._getContext();h.font=24/this.camera.getArmLength()+"px arial";var c,d,f,m=.025/this.scale.x,p=.025/this.scale.y,y=5/this.camera.getArmLength(),v=this.camera.getArmRotation().horizontal,g=new Ss(Math.cos(v),Math.sin(v)),_=this.xRange,w=this.yRange,b=this.zRange;for(h.lineWidth=1,r=void 0===this.defaultXStep,(n=new Os(_.min,_.max,this.xStep,r)).start(!0);!n.end();){var S=n.getCurrent();if(this.showGrid?(t=new bs(S,w.min,b.min),e=new bs(S,w.max,b.min),this._line3d(h,t,e,this.gridColor)):this.showXAxis&&(t=new bs(S,w.min,b.min),e=new bs(S,w.min+m,b.min),this._line3d(h,t,e,this.axisColor),t=new bs(S,w.max,b.min),e=new bs(S,w.max-m,b.min),this._line3d(h,t,e,this.axisColor)),this.showXAxis){a=0<g.x?w.min:w.max,c=new bs(S,a,b.min);var k="  "+this.xValueLabel(S)+"  ";this.drawAxisLabelX(h,c,k,v,y)}n.next()}for(h.lineWidth=1,r=void 0===this.defaultYStep,(n=new Os(w.min,w.max,this.yStep,r)).start(!0);!n.end();){var x=n.getCurrent();if(this.showGrid?(t=new bs(_.min,x,b.min),e=new bs(_.max,x,b.min),this._line3d(h,t,e,this.gridColor)):this.showYAxis&&(t=new bs(_.min,x,b.min),e=new bs(_.min+p,x,b.min),this._line3d(h,t,e,this.axisColor),t=new bs(_.max,x,b.min),e=new bs(_.max-p,x,b.min),this._line3d(h,t,e,this.axisColor)),this.showYAxis){s=0<g.y?_.min:_.max,c=new bs(s,x,b.min);var D="  "+this.yValueLabel(x)+"  ";this.drawAxisLabelY(h,c,D,v,y)}n.next()}if(this.showZAxis){for(h.lineWidth=1,r=void 0===this.defaultZStep,(n=new Os(b.min,b.max,this.zStep,r)).start(!0),s=0<g.x?_.min:_.max,a=g.y<0?w.min:w.max;!n.end();){var M=n.getCurrent(),O=new bs(s,a,M),T=this._convert3Dto2D(O);e=new Ss(T.x-y,T.y),this._line(h,T,e,this.axisColor);var Y=this.zValueLabel(M)+" ";this.drawAxisLabelZ(h,O,Y,5),n.next()}h.lineWidth=1,t=new bs(s,a,b.min),e=new bs(s,a,b.max),this._line3d(h,t,e,this.axisColor)}this.showXAxis&&(h.lineWidth=1,d=new bs(_.min,w.min,b.min),f=new bs(_.max,w.min,b.min),this._line3d(h,d,f,this.axisColor),d=new bs(_.min,w.max,b.min),f=new bs(_.max,w.max,b.min),this._line3d(h,d,f,this.axisColor));this.showYAxis&&(h.lineWidth=1,t=new bs(_.min,w.min,b.min),e=new bs(_.min,w.max,b.min),this._line3d(h,t,e,this.axisColor),t=new bs(_.max,w.min,b.min),e=new bs(_.max,w.max,b.min),this._line3d(h,t,e,this.axisColor));var P=this.xLabel;0<P.length&&this.showXAxis&&(l=.1/this.scale.y,s=(_.max+3*_.min)/4,a=0<g.x?w.min-l:w.max+l,i=new bs(s,a,b.min),this.drawAxisLabelX(h,i,P,v));var E=this.yLabel;0<E.length&&this.showYAxis&&(u=.1/this.scale.x,s=0<g.y?_.min-u:_.max+u,a=(w.max+3*w.min)/4,i=new bs(s,a,b.min),this.drawAxisLabelY(h,i,E,v));var C=this.zLabel;0<C.length&&this.showZAxis&&(s=0<g.x?_.min:_.max,a=g.y<0?w.min:w.max,o=(b.max+3*b.min)/4,i=new bs(s,a,o),this.drawAxisLabelZ(h,i,C,30))},ga.prototype._hsv2rgb=function(t,e,n){var r,i,s,a,o,u;switch(a=n*e,o=Math.floor(t/60),u=a*(1-Math.abs(t/60%2-1)),o){case 0:r=a,i=u,s=0;break;case 1:r=u,i=a,s=0;break;case 2:r=0,i=a,s=u;break;case 3:r=0,i=u,s=a;break;case 4:r=u,i=0,s=a;break;case 5:r=a,i=0,s=u;break;default:s=i=r=0}return"RGB("+parseInt(255*r)+","+parseInt(255*i)+","+parseInt(255*s)+")"},ga.prototype._getStrokeWidth=function(t){return void 0!==t?this.showPerspective?1/-t.trans.z*this.dataColor.strokeWidth:-this.eye.z/this.camera.getArmLength()*this.dataColor.strokeWidth:this.dataColor.strokeWidth},ga.prototype._redrawBar=function(t,e,n,r,i,s){var a,o=this,u=e.point,l=this.zRange.min,h=[{point:new bs(u.x-n,u.y-r,u.z)},{point:new bs(u.x+n,u.y-r,u.z)},{point:new bs(u.x+n,u.y+r,u.z)},{point:new bs(u.x-n,u.y+r,u.z)}],c=[{point:new bs(u.x-n,u.y-r,l)},{point:new bs(u.x+n,u.y-r,l)},{point:new bs(u.x+n,u.y+r,l)},{point:new bs(u.x-n,u.y+r,l)}];h.forEach(function(t){t.screen=o._convert3Dto2D(t.point)}),c.forEach(function(t){t.screen=o._convert3Dto2D(t.point)});var d=[{corners:h,center:bs.avg(c[0].point,c[2].point)},{corners:[h[0],h[1],c[1],c[0]],center:bs.avg(c[1].point,c[0].point)},{corners:[h[1],h[2],c[2],c[1]],center:bs.avg(c[2].point,c[1].point)},{corners:[h[2],h[3],c[3],c[2]],center:bs.avg(c[3].point,c[2].point)},{corners:[h[3],h[0],c[0],c[3]],center:bs.avg(c[0].point,c[3].point)}];e.surfaces=d;for(var f=0;f<d.length;f++){a=d[f];var m=this._convertPointToTranslation(a.center);a.dist=this.showPerspective?m.length():-m.z}d.sort(function(t,e){var n=e.dist-t.dist;return n||(t.corners===h?1:e.corners===h?-1:0)}),t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=s,t.fillStyle=i;for(var p=2;p<d.length;p++)a=d[p],this._polygon(t,a.corners)},ga.prototype._polygon=function(t,e,n,r){if(!(e.length<2)){void 0!==n&&(t.fillStyle=n),void 0!==r&&(t.strokeStyle=r),t.beginPath(),t.moveTo(e[0].screen.x,e[0].screen.y);for(var i=1;i<e.length;++i){var s=e[i];t.lineTo(s.screen.x,s.screen.y)}t.closePath(),t.fill(),t.stroke()}},ga.prototype._drawCircle=function(t,e,n,r,i){var s=this._calcRadius(e,i);t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=r,t.fillStyle=n,t.beginPath(),t.arc(e.screen.x,e.screen.y,s,0,2*Math.PI,!0),t.fill(),t.stroke()},ga.prototype._getColorsRegular=function(t){var e=240*(1-(t.point.z-this.zRange.min)*this.scale.z/this.verticalRatio);return{fill:this._hsv2rgb(e,1,1),border:this._hsv2rgb(e,1,.8)}},ga.prototype._getColorsColor=function(t){var e,n;if("string"==typeof t.point.value)e=t.point.value,n=t.point.value;else{var r=240*(1-(t.point.value-this.valueRange.min)*this.scale.value);e=this._hsv2rgb(r,1,1),n=this._hsv2rgb(r,1,.8)}return{fill:e,border:n}},ga.prototype._getColorsSize=function(){return{fill:this.dataColor.fill,border:this.dataColor.stroke}},ga.prototype._calcRadius=function(t,e){var n;return void 0===e&&(e=this._dotSize()),(n=this.showPerspective?e/-t.trans.z:e*(-this.eye.z/this.camera.getArmLength()))<0&&(n=0),n},ga.prototype._redrawBarGraphPoint=function(t,e){var n=this.xBarWidth/2,r=this.yBarWidth/2,i=this._getColorsRegular(e);this._redrawBar(t,e,n,r,i.fill,i.border)},ga.prototype._redrawBarColorGraphPoint=function(t,e){var n=this.xBarWidth/2,r=this.yBarWidth/2,i=this._getColorsColor(e);this._redrawBar(t,e,n,r,i.fill,i.border)},ga.prototype._redrawBarSizeGraphPoint=function(t,e){var n=(e.point.value-this.valueRange.min)/this.valueRange.range(),r=this.xBarWidth/2*(.8*n+.2),i=this.yBarWidth/2*(.8*n+.2),s=this._getColorsSize();this._redrawBar(t,e,r,i,s.fill,s.border)},ga.prototype._redrawDotGraphPoint=function(t,e){var n=this._getColorsRegular(e);this._drawCircle(t,e,n.fill,n.border)},ga.prototype._redrawDotLineGraphPoint=function(t,e){var n=this._convert3Dto2D(e.bottom);t.lineWidth=1,this._line(t,n,e.screen,this.gridColor),this._redrawDotGraphPoint(t,e)},ga.prototype._redrawDotColorGraphPoint=function(t,e){var n=this._getColorsColor(e);this._drawCircle(t,e,n.fill,n.border)},ga.prototype._redrawDotSizeGraphPoint=function(t,e){var n=this._dotSize(),r=(e.point.value-this.valueRange.min)/this.valueRange.range(),i=n*this.dotSizeMinFraction,s=i+(n*this.dotSizeMaxFraction-i)*r,a=this._getColorsSize();this._drawCircle(t,e,a.fill,a.border,s)},ga.prototype._redrawSurfaceGraphPoint=function(t,e){var n=e.pointRight,r=e.pointTop,i=e.pointCross;if(void 0!==e&&void 0!==n&&void 0!==r&&void 0!==i){var s,a,o=!0;if(this.showGrayBottom||this.showShadow){var u=bs.subtract(i.trans,e.trans),l=bs.subtract(r.trans,n.trans),h=bs.crossProduct(u,l),c=h.length();o=0<h.z}if(o){var d,f=240*(1-((e.point.z+n.point.z+r.point.z+i.point.z)/4-this.zRange.min)*this.scale.z/this.verticalRatio);a=this.showShadow?(d=Math.min(1+h.x/c/2,1),s=this._hsv2rgb(f,1,d)):(d=1,s=this._hsv2rgb(f,1,d),this.axisColor)}else s="gray",a=this.axisColor;t.lineWidth=this._getStrokeWidth(e);var m=[e,n,i,r];this._polygon(t,m,s,a)}},ga.prototype._drawGridLine=function(t,e,n){if(void 0!==e&&void 0!==n){var r=240*(1-((e.point.z+n.point.z)/2-this.zRange.min)*this.scale.z/this.verticalRatio);t.lineWidth=2*this._getStrokeWidth(e),t.strokeStyle=this._hsv2rgb(r,1,1),this._line(t,e.screen,n.screen)}},ga.prototype._redrawGridGraphPoint=function(t,e){this._drawGridLine(t,e,e.pointRight),this._drawGridLine(t,e,e.pointTop)},ga.prototype._redrawLineGraphPoint=function(t,e){void 0!==e.pointNext&&(t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=this.dataColor.stroke,this._line(t,e.screen,e.pointNext.screen))},ga.prototype._redrawDataGraph=function(){var t,e=this._getContext();if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),t=0;t<this.dataPoints.length;t++){var n=this.dataPoints[t];this._pointDrawingMethod.call(this,e,n)}},ga.prototype._storeMousePosition=function(t){this.startMouseX=_a(t),this.startMouseY=wa(t),this._startCameraOffset=this.camera.getOffset()},ga.prototype._onMouseDown=function(t){if(t=t||window.event,this.leftButtonDown&&this._onMouseUp(t),this.leftButtonDown=t.which?1===t.which:1===t.button,this.leftButtonDown||this.touchDown){this._storeMousePosition(t),this.startStart=new Date(this.start),this.startEnd=new Date(this.end),this.startArmRotation=this.camera.getArmRotation(),this.frame.style.cursor="move";var e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},ks.addEventListener(document,"mousemove",e.onmousemove),ks.addEventListener(document,"mouseup",e.onmouseup),ks.preventDefault(t)}},ga.prototype._onMouseMove=function(t){this.moving=!0,t=t||window.event;var e=parseFloat(_a(t))-this.startMouseX,n=parseFloat(wa(t))-this.startMouseY;if(t&&!0===t.ctrlKey){var r=.5*this.frame.clientWidth,i=.5*this.frame.clientHeight,s=(this._startCameraOffset.x||0)-e/r*this.camera.armLength*.8,a=(this._startCameraOffset.y||0)+n/i*this.camera.armLength*.8;this.camera.setOffset(s,a),this._storeMousePosition(t)}else{var o=this.startArmRotation.horizontal+e/200,u=this.startArmRotation.vertical+n/200,l=Math.sin(4/360*2*Math.PI);Math.abs(Math.sin(o))<l&&(o=Math.round(o/Math.PI)*Math.PI-.001),Math.abs(Math.cos(o))<l&&(o=(Math.round(o/Math.PI-.5)+.5)*Math.PI-.001),Math.abs(Math.sin(u))<l&&(u=Math.round(u/Math.PI)*Math.PI),Math.abs(Math.cos(u))<l&&(u=(Math.round(u/Math.PI-.5)+.5)*Math.PI),this.camera.setArmRotation(o,u)}this.redraw();var h=this.getCameraPosition();this.emit("cameraPositionChange",h),ks.preventDefault(t)},ga.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",this.leftButtonDown=!1,ks.removeEventListener(document,"mousemove",this.onmousemove),ks.removeEventListener(document,"mouseup",this.onmouseup),ks.preventDefault(t)},ga.prototype._onClick=function(t){if(this.onclick_callback){if(this.moving)this.moving=!1;else{var e=this.frame.getBoundingClientRect(),n=_a(t)-e.left,r=wa(t)-e.top,i=this._dataPointFromXY(n,r);i&&this.onclick_callback(i.point.data)}ks.preventDefault(t)}},ga.prototype._onTooltip=function(t){var e=this.frame.getBoundingClientRect(),n=_a(t)-e.left,r=wa(t)-e.top;if(this.showTooltip)if(this.tooltipTimeout&&clearTimeout(this.tooltipTimeout),this.leftButtonDown)this._hideTooltip();else if(this.tooltip&&this.tooltip.dataPoint){var i=this._dataPointFromXY(n,r);i!==this.tooltip.dataPoint&&(i?this._showTooltip(i):this._hideTooltip())}else{var s=this;this.tooltipTimeout=setTimeout(function(){s.tooltipTimeout=null;var t=s._dataPointFromXY(n,r);t&&s._showTooltip(t)},300)}},ga.prototype._onTouchStart=function(t){this.touchDown=!0;var e=this;this.ontouchmove=function(t){e._onTouchMove(t)},this.ontouchend=function(t){e._onTouchEnd(t)},ks.addEventListener(document,"touchmove",e.ontouchmove),ks.addEventListener(document,"touchend",e.ontouchend),this._onMouseDown(t)},ga.prototype._onTouchMove=function(t){this._onMouseMove(t)},ga.prototype._onTouchEnd=function(t){this.touchDown=!1,ks.removeEventListener(document,"touchmove",this.ontouchmove),ks.removeEventListener(document,"touchend",this.ontouchend),this._onMouseUp(t)},ga.prototype._onWheel=function(t){if(t=t||window.event,this.zoomable&&(!this.ctrlToZoom||t.ctrlKey)){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),e){var n=this.camera.getArmLength()*(1-e/10);this.camera.setArmLength(n),this.redraw(),this._hideTooltip()}var r=this.getCameraPosition();this.emit("cameraPositionChange",r),ks.preventDefault(t)}},ga.prototype._insideTriangle=function(t,e){var n=e[0],r=e[1],i=e[2];function s(t){return 0<t?1:t<0?-1:0}var a=s((r.x-n.x)*(t.y-n.y)-(r.y-n.y)*(t.x-n.x)),o=s((i.x-r.x)*(t.y-r.y)-(i.y-r.y)*(t.x-r.x)),u=s((n.x-i.x)*(t.y-i.y)-(n.y-i.y)*(t.x-i.x));return!(0!=a&&0!=o&&a!=o||0!=o&&0!=u&&o!=u||0!=a&&0!=u&&a!=u)},ga.prototype._dataPointFromXY=function(t,e){var n,r=null,i=null,s=null,a=new Ss(t,e);if(this.style===ga.STYLE.BAR||this.style===ga.STYLE.BARCOLOR||this.style===ga.STYLE.BARSIZE)for(n=this.dataPoints.length-1;0<=n;n--){var o=(r=this.dataPoints[n]).surfaces;if(o)for(var u=o.length-1;0<=u;u--){var l=o[u].corners,h=[l[0].screen,l[1].screen,l[2].screen],c=[l[2].screen,l[3].screen,l[0].screen];if(this._insideTriangle(a,h)||this._insideTriangle(a,c))return r}}else for(n=0;n<this.dataPoints.length;n++){var d=(r=this.dataPoints[n]).screen;if(d){var f=Math.abs(t-d.x),m=Math.abs(e-d.y),p=Math.sqrt(f*f+m*m);(null===s||p<s)&&p<100&&(s=p,i=r)}}return i},ga.prototype.hasBars=function(t){return t==ga.STYLE.BAR||t==ga.STYLE.BARCOLOR||t==ga.STYLE.BARSIZE},ga.prototype._showTooltip=function(t){var e,n,r;this.tooltip?(e=this.tooltip.dom.content,n=this.tooltip.dom.line,r=this.tooltip.dom.dot):(e=document.createElement("div"),Object.assign(e.style,{},this.tooltipStyle.content),e.style.position="absolute",n=document.createElement("div"),Object.assign(n.style,{},this.tooltipStyle.line),n.style.position="absolute",r=document.createElement("div"),Object.assign(r.style,{},this.tooltipStyle.dot),r.style.position="absolute",this.tooltip={dataPoint:null,dom:{content:e,line:n,dot:r}}),this._hideTooltip(),this.tooltip.dataPoint=t,"function"==typeof this.showTooltip?e.innerHTML=this.showTooltip(t.point):e.innerHTML="<table><tr><td>"+this.xLabel+":</td><td>"+t.point.x+"</td></tr><tr><td>"+this.yLabel+":</td><td>"+t.point.y+"</td></tr><tr><td>"+this.zLabel+":</td><td>"+t.point.z+"</td></tr></table>",e.style.left="0",e.style.top="0",this.frame.appendChild(e),this.frame.appendChild(n),this.frame.appendChild(r);var i=e.offsetWidth,s=e.offsetHeight,a=n.offsetHeight,o=r.offsetWidth,u=r.offsetHeight,l=t.screen.x-i/2;l=Math.min(Math.max(l,10),this.frame.clientWidth-10-i),n.style.left=t.screen.x+"px",n.style.top=t.screen.y-a+"px",e.style.left=l+"px",e.style.top=t.screen.y-a-s+"px",r.style.left=t.screen.x-o/2+"px",r.style.top=t.screen.y-u/2+"px"},ga.prototype._hideTooltip=function(){if(this.tooltip)for(var t in this.tooltip.dataPoint=null,this.tooltip.dom)if(this.tooltip.dom.hasOwnProperty(t)){var e=this.tooltip.dom[t];e&&e.parentNode&&e.parentNode.removeChild(e)}},ga.prototype.setCameraPosition=function(t){zs.setCameraPosition(t,this),this.redraw()},ga.prototype.setSize=function(t,e){this._setSize(t,e),this.redraw()};var ba=ga,Sa=pi(function(tr,t){tr.exports=function(){var e,i;function l(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,r){return Ce(t,e,n,r,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=m(t),n=i.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function y(t){var e=f(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var v=l.momentProperties=[];function g(t,e){var n,r,i;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=m(e)),s(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)r=v[n],s(i=e[r])||(t[r]=i);return t}var n=!1;function _(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===n&&(n=!0,l.updateOffset(this),n=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=b(e)),n}function k(t,e,n){var r,i=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&S(t[r])!==S(e[r]))&&a++;return a+s}function x(t){!1===l.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(i,s){var a=!0;return d(function(){if(null!=l.deprecationHandler&&l.deprecationHandler(null,i),a){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var r in t+="\n["+n+"] ",arguments[0])t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}x(i+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var D,M={};function O(t,e){null!=l.deprecationHandler&&l.deprecationHandler(t,e),M[t]||(x(e),M[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t,e){var n,r=d({},t);for(n in e)c(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},d(r[n],t[n]),d(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)c(t,n)&&!c(e,n)&&o(t[n])&&(r[n]=d({},r[n]));return r}function P(t){null!=t&&this.set(t)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var E={};function C(t,e){var n=t.toLowerCase();E[n]=E[n+"s"]=E[e]=t}function L(t){return"string"==typeof t?E[t]||E[t.toLowerCase()]:void 0}function R(t){var e,n,r={};for(n in t)c(t,n)&&(e=L(n))&&(r[e]=t[n]);return r}var A={};function W(t,e){A[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:A[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(t,e,n){var r=""+Math.abs(t),i=e-r.length,s=0<=t;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},G={};function H(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(G[t]=i),e&&(G[e[0]]=function(){return N(i.apply(this,arguments),e[1],e[2])}),n&&(G[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t,e){return t.isValid()?(e=B(e,t.localeData()),V[e]=V[e]||function(r){var t,i,s=r.match(F);for(t=0,i=s.length;t<i;t++)G[s[t]]?s[t]=G[s[t]]:s[t]=z(s[t]);return function(t){var e,n="";for(e=0;e<i;e++)n+=T(s[e])?s[e].call(t,r):s[e];return n}}(e),V[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;0<=n&&j.test(t);)t=t.replace(j,r),j.lastIndex=0,n-=1;return t}var Z=/\d/,q=/\d\d/,X=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,st=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,lt={};function ht(t,n,r){lt[t]=T(n)?n:function(t,e){return t&&r?r:n}}function ct(t,e){return c(lt,t)?lt[t](e._strict,e._locale):new RegExp(function(t){return dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}(t))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function mt(t,n){var e,r=n;for("string"==typeof t&&(t=[t]),u(n)&&(r=function(t,e){e[n]=S(t)}),e=0;e<t.length;e++)ft[t[e]]=r}function pt(t,i){mt(t,function(t,e,n,r){n._w=n._w||{},i(t,n._w,n,r)})}function yt(t,e,n){null!=e&&c(ft,t)&&ft[t](e,n._a,n,t)}var vt=0,gt=1,_t=2,wt=3,bt=4,St=5,kt=6,xt=7,Dt=8;function Mt(t){return Ot(t)?366:365}function Ot(t){return t%4==0&&t%100!=0||t%400==0}H("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),C("year","y"),W("year",1),ht("Y",st),ht("YY",Q,q),ht("YYYY",nt,$),ht("YYYYY",rt,J),ht("YYYYYY",rt,J),mt(["YYYYY","YYYYYY"],vt),mt("YYYY",function(t,e){e[vt]=2===t.length?l.parseTwoDigitYear(t):S(t)}),mt("YY",function(t,e){e[vt]=l.parseTwoDigitYear(t)}),mt("Y",function(t,e){e[vt]=parseInt(t,10)}),l.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Tt,Yt=Pt("FullYear",!0);function Pt(e,n){return function(t){return null!=t?(Ct(this,e,t),l.updateOffset(this,n),this):Et(this,e)}}function Et(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Ct(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Ot(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Ot(t)?29:28:31-n%7%2}Tt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),H("MMMM",0,0,function(t){return this.localeData().months(this,t)}),C("month","M"),W("month",8),ht("M",Q),ht("MM",Q,q),ht("MMM",function(t,e){return e.monthsShortRegex(t)}),ht("MMMM",function(t,e){return e.monthsRegex(t)}),mt(["M","MM"],function(t,e){e[gt]=S(t)-1}),mt(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[gt]=i:m(n).invalidMonth=t});var Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e,n){var r,i,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null}function Nt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(Nt(this,t),l.updateOffset(this,!0),this):Et(this,"Month")}var jt=ut;var Vt=ut;function Gt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],s=[];for(e=0;e<12;e++)n=f([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),s.sort(t),e=0;e<12;e++)r[e]=dt(r[e]),i[e]=dt(i[e]);for(e=0;e<24;e++)s[e]=dt(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ht(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function zt(t,e,n){var r=7+e-n,i=(7+Ht(t,0,r).getUTCDay()-e)%7;return r-i-1}function Ut(t,e,n,r,i){var s,a,o=(7+n-r)%7,u=zt(t,r,i),l=1+7*(e-1)+o+u;return a=l<=0?Mt(s=t-1)+l:l>Mt(t)?(s=t+1,l-Mt(t)):(s=t,l),{year:s,dayOfYear:a}}function Bt(t,e,n){var r,i,s=zt(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?(i=t.year()-1,r=a+Zt(i,e,n)):a>Zt(t.year(),e,n)?(r=a-Zt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Zt(t,e,n){var r=zt(t,e,n),i=zt(t+1,e,n);return(Mt(t)-r+i)/7}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),W("week",5),W("isoWeek",5),ht("w",Q),ht("ww",Q,q),ht("W",Q),ht("WW",Q,q),pt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=S(t)});function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}H("d",0,"do","day"),H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),ht("d",Q),ht("e",Q),ht("E",Q),ht("dd",function(t,e){return e.weekdaysMinRegex(t)}),ht("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ht("dddd",function(t,e){return e.weekdaysRegex(t)}),pt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:m(n).invalidWeekday=t}),pt(["d","e","E"],function(t,e,n,r){e[r]=S(t)});var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qt(t,e,n){var r,i,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null}var Kt=ut;var te=ut;var ee=ut;function ne(){function t(t,e){return e.length-t.length}var e,n,r,i,s,a=[],o=[],u=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(r),o.push(i),u.push(s),l.push(r),l.push(i),l.push(s);for(a.sort(t),o.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)o[e]=dt(o[e]),u[e]=dt(u[e]),l[e]=dt(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function re(){return this.hours()%12||12}function ie(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function se(t,e){return e._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,re),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)}),H("hmmss",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),ie("a",!0),ie("A",!1),C("hour","h"),W("hour",13),ht("a",se),ht("A",se),ht("H",Q),ht("h",Q),ht("k",Q),ht("HH",Q,q),ht("hh",Q,q),ht("kk",Q,q),ht("hmm",K),ht("hmmss",tt),ht("Hmm",K),ht("Hmmss",tt),mt(["H","HH"],wt),mt(["k","kk"],function(t,e,n){var r=S(t);e[wt]=24===r?0:r}),mt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),mt(["h","hh"],function(t,e,n){e[wt]=S(t),m(n).bigHour=!0}),mt("hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r)),m(n).bigHour=!0}),mt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i)),m(n).bigHour=!0}),mt("Hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r))}),mt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i))});var ae,oe=Pt("Hours",!0),ue={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Wt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:Jt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},le={},he={};function ce(t){return t?t.toLowerCase().replace("_","-"):t}function de(t){var e=null;if(!le[t]&&tr&&tr.exports)try{e=ae._abbr;var n=mi;n("./locale/"+t),fe(e)}catch(t){}return le[t]}function fe(t,e){var n;return t&&((n=s(e)?pe(t):me(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function me(t,e){if(null===e)return delete le[t],null;var n,r=ue;if(e.abbr=t,null!=le[t])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=le[t]._config;else if(null!=e.parentLocale)if(null!=le[e.parentLocale])r=le[e.parentLocale]._config;else{if(null==(n=de(e.parentLocale)))return he[e.parentLocale]||(he[e.parentLocale]=[]),he[e.parentLocale].push({name:t,config:e}),null;r=n._config}return le[t]=new P(Y(r,e)),he[t]&&he[t].forEach(function(t){me(t.name,t.config)}),fe(t),le[t]}function pe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!a(t)){if(e=de(t))return e;t=[t]}return function(t){var e,n,r,i,s=0;for(;s<t.length;){for(i=ce(t[s]).split("-"),e=i.length,n=(n=ce(t[s+1]))?n.split("-"):null;0<e;){if(r=de(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&k(i,n,!0)>=e-1)break;e--}s++}return ae}(t)}function ye(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[_t]<1||n[_t]>Lt(n[vt],n[gt])?_t:n[wt]<0||24<n[wt]||24===n[wt]&&(0!==n[bt]||0!==n[St]||0!==n[kt])?wt:n[bt]<0||59<n[bt]?bt:n[St]<0||59<n[St]?St:n[kt]<0||999<n[kt]?kt:-1,m(t)._overflowDayOfYear&&(e<vt||_t<e)&&(e=_t),m(t)._overflowWeeks&&-1===e&&(e=xt),m(t)._overflowWeekday&&-1===e&&(e=Dt),m(t).overflow=e),t}function ve(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,r,i,s,a=[];if(!t._d){for(r=function(t){var e=new Date(l.now());if(t._useUTC)return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()];return[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[_t]&&null==t._a[gt]&&function(t){var e,n,r,i,s,a,o,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)s=1,a=4,n=ve(e.GG,t._a[vt],Bt(Le(),1,4).year),r=ve(e.W,1),((i=ve(e.E,1))<1||7<i)&&(u=!0);else{s=t._locale._week.dow,a=t._locale._week.doy;var l=Bt(Le(),s,a);n=ve(e.gg,t._a[vt],l.year),r=ve(e.w,l.week),null!=e.d?((i=e.d)<0||6<i)&&(u=!0):null!=e.e?(i=e.e+s,(e.e<0||6<e.e)&&(u=!0)):i=s}r<1||r>Zt(n,s,a)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(o=Ut(n,r,i,s,a),t._a[vt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ve(t._a[vt],r[vt]),(t._dayOfYear>Mt(s)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Ht(s,0,t._dayOfYear),t._a[gt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[bt]&&0===t._a[St]&&0===t._a[kt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Ht:function(t,e,n,r,i,s,a){var o;t<100&&0<=t?(o=new Date(t+400,e,n,r,i,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,s,a);return o}).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(m(t).weekdayMismatch=!0)}}var _e=/^\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)?)?$/,we=/^\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)?)?$/,be=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["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}/]],ke=[["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/]],xe=/^\/?Date\((\-?\d+)/i;function De(t){var e,n,r,i,s,a,o=t._i,u=_e.exec(o)||we.exec(o);if(u){for(m(t).iso=!0,e=0,n=Se.length;e<n;e++)if(Se[e][1].exec(u[1])){i=Se[e][0],r=!1!==Se[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=ke.length;e<n;e++)if(ke[e][1].exec(u[3])){s=(u[2]||" ")+ke[e][0];break}if(null==s)return void(t._isValid=!1)}if(!r&&null!=s)return void(t._isValid=!1);if(u[4]){if(!be.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(s||"")+(a||""),Pe(t)}else t._isValid=!1}var Me=/^(?:(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}))$/;function Oe(t,e,n,r,i,s){var a=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),Wt.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&a.push(parseInt(s,10)),a}var Te={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ye(t){var e=Me.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Oe(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var r=$t.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return m(n).weekdayMismatch=!0,n._isValid=!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){{if(t)return Te[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return 60*((r-i)/100)+i}}(e[8],e[9],e[10]),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Pe(t){if(t._f!==l.ISO_8601)if(t._f!==l.RFC_2822){t._a=[],m(t).empty=!0;var e,n,r,i,s,a=""+t._i,o=a.length,u=0;for(r=B(t._f,t._locale).match(F)||[],e=0;e<r.length;e++)i=r[e],(n=(a.match(ct(i,t))||[])[0])&&(0<(s=a.substr(0,a.indexOf(n))).length&&m(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),u+=n.length),G[i]?(n?m(t).empty=!1:m(t).unusedTokens.push(i),yt(i,n,t)):t._strict&&!n&&m(t).unusedTokens.push(i);m(t).charsLeftOver=o-u,0<a.length&&m(t).unusedInput.push(a),t._a[wt]<=12&&!0===m(t).bigHour&&0<t._a[wt]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var r;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0)),e)}(t._locale,t._a[wt],t._meridiem),ge(t),ye(t)}else Ye(t);else De(t)}function Ee(t){var e=t._i,n=t._f;return t._locale=t._locale||pe(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(ye(e)):(h(e)?t._d=e:a(n)?function(t){var e,n,r,i,s;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)s=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Pe(e),p(e)&&(s+=m(e).charsLeftOver,s+=10*m(e).unusedTokens.length,m(e).score=s,(null==r||s<r)&&(r=s,n=e));d(t,n||e)}(t):n?Pe(t):function(t){var e=t._i;s(e)?t._d=new Date(l.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=xe.exec(t._i);if(null!==e)return t._d=new Date(+e[1]);{if(De(t),!1!==t._isValid)return;delete t._isValid}{if(Ye(t),!1!==t._isValid)return;delete t._isValid}l.createFromInputFallback(t)}(t):a(e)?(t._a=r(e.slice(0),function(t){return parseInt(t,10)}),ge(t)):o(e)?function(t){if(t._d)return;var e=R(t._i);t._a=r([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}(t):u(e)?t._d=new Date(e):l.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ce(t,e,n,r,i){var s={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){{if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}}(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,function(t){var e=new _(ye(Ee(t)));e._nextDay&&(e.add(1,"d"),e._nextDay=void 0);return e}(s)}function Le(t,e,n,r){return Ce(t,e,n,r,!1)}l.createFromInputFallback=t("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),l.ISO_8601=function(){},l.RFC_2822=function(){};var Re=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),Ae=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function We(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Le();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=R(t),n=e.year||0,r=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Tt.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ie.length;++r)if(t[Ie[r]]){if(n)return!1;parseFloat(t[Ie[r]])!==S(t[Ie[r]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=pe(),this._bubble()}function Fe(t){return t instanceof Ne}function je(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ve(t,n){H(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}Ve("Z",":"),Ve("ZZ",""),ht("Z",ot),ht("ZZ",ot),mt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=He(ot,t)});var Ge=/([\+\-]|\d\d)/gi;function He(t,e){var n=(e||"").match(t);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ge)||["-",0,0],s=60*i[1]+S(i[2]);return 0===s?0:"+"===i[0]?s:-s}function ze(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(w(t)||h(t)?t.valueOf():Le(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),l.updateOffset(n,!1),n):Le(t).local()}function Ue(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}l.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,r,i,s=t,a=null;return Fe(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Ze.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:S(a[_t])*n,h:S(a[wt])*n,m:S(a[bt])*n,s:S(a[St])*n,ms:S(je(1e3*a[kt]))*n}):(a=qe.exec(t))?(n="-"===a[1]?-1:1,s={y:$e(a[2],n),M:$e(a[3],n),w:$e(a[4],n),d:$e(a[5],n),h:$e(a[6],n),m:$e(a[7],n),s:$e(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ze(e,t),t.isBefore(e)?n=Je(t,e):((n=Je(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Le(s.from),Le(s.to)),(s={}).ms=i.milliseconds,s.M=i.months),r=new Ne(s),Fe(t)&&c(t,"_locale")&&(r._locale=t._locale),r}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Qe(r,i){return function(t,e){var n;return null===e||isNaN(+e)||(O(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ke(this,Xe(t="string"==typeof t?+t:t,e),r),this}}function Ke(t,e,n,r){var i=e._milliseconds,s=je(e._days),a=je(e._months);t.isValid()&&(r=null==r||r,a&&Nt(t,Et(t,"Month")+a*n),s&&Ct(t,"Date",Et(t,"Date")+s*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&l.updateOffset(t,s||a))}Xe.fn=Ne.prototype,Xe.invalid=function(){return Xe(NaN)};var tn=Qe(1,"add"),en=Qe(-1,"subtract");function nn(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");return r=e-s<0?(n=t.clone().add(i-1,"months"),(e-s)/(s-n)):(n=t.clone().add(1+i,"months"),(e-s)/(n-s)),-(i+r)||0}function rn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=pe(t))&&(this._locale=e),this)}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function an(){return this._locale}var on=126227808e5;function un(t,e){return(t%e+e)%e}function ln(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-on:new Date(t,e,n).valueOf()}function hn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-on:Date.UTC(t,e,n)}function cn(t,e){H(0,[t,t.length],0,e)}function dn(t,e,n,r,i){var s;return null==t?Bt(this,r,i).year:((s=Zt(t,r,i))<e&&(e=s),function(t,e,n,r,i){var s=Ut(t,e,n,r,i),a=Ht(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,r,i))}H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),ht("G",st),ht("g",st),ht("GG",Q,q),ht("gg",Q,q),ht("GGGG",nt,$),ht("gggg",nt,$),ht("GGGGG",rt,J),ht("ggggg",rt,J),pt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=S(t)}),pt(["gg","GG"],function(t,e,n,r){e[r]=l.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),C("quarter","Q"),W("quarter",7),ht("Q",Z),mt("Q",function(t,e){e[gt]=3*(S(t)-1)}),H("D",["DD",2],"Do","date"),C("date","D"),W("date",9),ht("D",Q),ht("DD",Q,q),ht("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],_t),mt("Do",function(t,e){e[_t]=S(t.match(Q)[0])});var fn=Pt("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),W("dayOfYear",4),ht("DDD",et),ht("DDDD",X),mt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=S(t)}),H("m",["mm",2],0,"minute"),C("minute","m"),W("minute",14),ht("m",Q),ht("mm",Q,q),mt(["m","mm"],bt);var mn=Pt("Minutes",!1);H("s",["ss",2],0,"second"),C("second","s"),W("second",15),ht("s",Q),ht("ss",Q,q),mt(["s","ss"],St);var pn,yn=Pt("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),W("millisecond",16),ht("S",et,Z),ht("SS",et,q),ht("SSS",et,X),pn="SSSS";pn.length<=9;pn+="S")ht(pn,it);function vn(t,e){e[kt]=S(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")mt(pn,vn);var gn=Pt("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var _n=_.prototype;function wn(t){return t}_n.add=tn,_n.calendar=function(t,e){var n=t||Le(),r=ze(n,this).startOf("day"),i=l.calendarFormat(this,r)||"sameElse",s=e&&(T(e[i])?e[i].call(this,n):e[i]);return this.format(s||this.localeData().calendar(i,this,Le(n)))},_n.clone=function(){return new _(this)},_n.diff=function(t,e,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=ze(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=L(e)){case"year":s=nn(this,r)/12;break;case"month":s=nn(this,r);break;case"quarter":s=nn(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:b(s)},_n.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?hn:ln;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-un(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-un(e,1e3)-1}return this._d.setTime(e),l.updateOffset(this,!0),this},_n.format=function(t){t=t||(this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},_n.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.fromNow=function(t){return this.from(Le(),t)},_n.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.toNow=function(t){return this.to(Le(),t)},_n.get=function(t){if(T(this[t=L(t)]))return this[t]();return this},_n.invalidAt=function(){return m(this).overflow},_n.isAfter=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()},_n.isBefore=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()},_n.isBetween=function(t,e,n,r){var i=w(t)?t:Le(t),s=w(e)?e:Le(e);return!!(this.isValid()&&i.isValid()&&s.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(s,n):!this.isAfter(s,n)))},_n.isSame=function(t,e){var n,r=w(t)?t:Le(t);if(!this.isValid()||!r.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())},_n.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},_n.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},_n.isValid=function(){return p(this)},_n.lang=sn,_n.locale=rn,_n.localeData=an,_n.max=Ae,_n.min=Re,_n.parsingFlags=function(){return d({},m(this))},_n.set=function(t,e){if("object"==typeof t)for(var n=I(t=R(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(T(this[t=L(t)]))return this[t](e);return this},_n.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?hn:ln;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=un(e,6e4);break;case"second":e=this._d.valueOf(),e-=un(e,1e3)}return this._d.setTime(e),l.updateOffset(this,!0),this},_n.subtract=en,_n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},_n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;if(n.year()<0||9999<n.year())return U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(T(Date.prototype.toISOString))return e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z"));return U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=Yt,_n.isLeapYear=function(){return Ot(this.year())},_n.weekYear=function(t){return dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(t){return dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},_n.month=Ft,_n.daysInMonth=function(){return Lt(this.year(),this.month())},_n.week=_n.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},_n.isoWeek=_n.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},_n.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},_n.isoWeeksInYear=function(){return Zt(this.year(),1,4)},_n.date=fn,_n.day=_n.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(n=t,r=this.localeData(),t="string"==typeof n?isNaN(n)?"number"!=typeof(n=r.weekdaysParse(n))?null:n:parseInt(n,10):n,this.add(t-e,"d")):e;var n,r},_n.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},_n.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this.day()||7;var e=(n=t,r=this.localeData(),"string"!=typeof n?isNaN(n)?null:n:r.weekdaysParse(n)%7||7);return this.day(this.day()%7?e:e-7)}var n,r},_n.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},_n.hour=_n.hours=oe,_n.minute=_n.minutes=mn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(t,e,n){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this._isUTC?i:Ue(this);if("string"==typeof t){if(null===(t=He(ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ue(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?Ke(this,Xe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}},_n.utc=function(t){return this.utcOffset(0,t)},_n.local=function(t){this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ue(this),"m"));return this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Le(t).utcOffset():0,(this.utcOffset()-t)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Be,_n.isUTC=Be,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=t("dates accessor is deprecated. Use date instead.",fn),_n.months=t("months accessor is deprecated. Use month instead",Ft),_n.years=t("years accessor is deprecated. Use year instead",Yt),_n.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),_n.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=Ee(t))._a){var e=t._isUTC?f(t._a):Le(t._a);this._isDSTShifted=this.isValid()&&0<k(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var bn=P.prototype;function Sn(t,e,n,r){var i=pe(),s=f().set(r,e);return i[n](s,t)}function kn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Sn(t,r,n,"month");return i}function xn(t,e,n,r){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var i,s=pe(),a=t?s._week.dow:0;if(null!=n)return Sn(e,(n+a)%7,r,"day");var o=[];for(i=0;i<7;i++)o[i]=Sn(e,(i+a)%7,r,"day");return o}bn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return T(r)?r.call(e,n):r},bn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return!e&&n?(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]):e},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(t){return this._ordinal.replace("%d",t)},bn.preparse=wn,bn.postformat=wn,bn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return T(i)?i(t,e,n,r):i.replace(/%d/i,t)},bn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)},bn.set=function(t){var e,n;for(n in t)T(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},bn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(t,e,n){var r,i,s;if(this._monthsParseExact)return It.call(this,t,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},bn.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Gt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Vt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Gt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},bn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bn.weekdaysParse=function(t,e,n){var r,i,s;if(this._weekdaysParseExact)return Qt.call(this,t,e,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},bn.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},fe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th";return t+n}}),l.lang=t("moment.lang is deprecated. Use moment.locale instead.",fe),l.langData=t("moment.langData is deprecated. Use moment.localeData instead.",pe);var Dn=Math.abs;function Mn(t,e,n,r){var i=Xe(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function On(t){return t<0?Math.floor(t):Math.ceil(t)}function Tn(t){return 4800*t/146097}function Yn(t){return 146097*t/4800}function Pn(t){return function(){return this.as(t)}}var En=Pn("ms"),Cn=Pn("s"),Ln=Pn("m"),Rn=Pn("h"),An=Pn("d"),Wn=Pn("w"),In=Pn("M"),Nn=Pn("Q"),Fn=Pn("y");function jn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Vn=jn("milliseconds"),Gn=jn("seconds"),Hn=jn("minutes"),zn=jn("hours"),Un=jn("days"),Bn=jn("months"),Zn=jn("years");var qn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11};var $n=Math.abs;function Jn(t){return(0<t)-(t<0)||+t}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=$n(this._milliseconds)/1e3,r=$n(this._days),i=$n(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var s=b(i/12),a=i%=12,o=r,u=e,l=t,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=Jn(this._months)!==Jn(c)?"-":"",m=Jn(this._days)!==Jn(c)?"-":"",p=Jn(this._milliseconds)!==Jn(c)?"-":"";return d+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||h?"T":"")+(u?p+u+"H":"")+(l?p+l+"M":"")+(h?p+h+"S":"")}var Kn=Ne.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),t.milliseconds=Dn(t.milliseconds),t.seconds=Dn(t.seconds),t.minutes=Dn(t.minutes),t.hours=Dn(t.hours),t.months=Dn(t.months),t.years=Dn(t.years),this},Kn.add=function(t,e){return Mn(this,t,e,1)},Kn.subtract=function(t,e){return Mn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Tn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Yn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=En,Kn.asSeconds=Cn,Kn.asMinutes=Ln,Kn.asHours=Rn,Kn.asDays=An,Kn.asWeeks=Wn,Kn.asMonths=In,Kn.asQuarters=Nn,Kn.asYears=Fn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kn._bubble=function(){var t,e,n,r,i,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=s&&0<=a&&0<=o||s<=0&&a<=0&&o<=0||(s+=864e5*On(Yn(o)+a),o=a=0),u.milliseconds=s%1e3,t=b(s/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),i=b(Tn(a)),o+=i,a-=On(Yn(i)),r=b(o/12),o%=12,u.days=a,u.months=o,u.years=r,this},Kn.clone=function(){return Xe(this)},Kn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=Vn,Kn.seconds=Gn,Kn.minutes=Hn,Kn.hours=zn,Kn.days=Un,Kn.weeks=function(){return b(this.days()/7)},Kn.months=Bn,Kn.years=Zn,Kn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=Xe(t).abs(),i=qn(r.as("s")),s=qn(r.as("m")),a=qn(r.as("h")),o=qn(r.as("d")),u=qn(r.as("M")),l=qn(r.as("y")),h=i<=Xn.ss&&["s",i]||i<Xn.s&&["ss",i]||s<=1&&["m"]||s<Xn.m&&["mm",s]||a<=1&&["h"]||a<Xn.h&&["hh",a]||o<=1&&["d"]||o<Xn.d&&["dd",o]||u<=1&&["M"]||u<Xn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return h[2]=e,h[3]=0<+t,h[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,h)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Kn.toISOString=Qn,Kn.toString=Qn,Kn.toJSON=Qn,Kn.locale=rn,Kn.localeData=an,Kn.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Kn.lang=sn,H("X",0,0,"unix"),H("x",0,0,"valueOf"),ht("x",st),ht("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),mt("x",function(t,e,n){n._d=new Date(S(t))}),l.version="2.24.0",function(t){e=t}(Le),l.fn=_n,l.min=function(){return We("isBefore",[].slice.call(arguments,0))},l.max=function(){return We("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=f,l.unix=function(t){return Le(1e3*t)},l.months=function(t,e){return kn(t,e,"months")},l.isDate=h,l.locale=fe,l.invalid=y,l.duration=Xe,l.isMoment=w,l.weekdays=function(t,e,n){return xn(t,e,n,"weekdays")},l.parseZone=function(){return Le.apply(null,arguments).parseZone()},l.localeData=pe,l.isDuration=Fe,l.monthsShort=function(t,e){return kn(t,e,"monthsShort")},l.weekdaysMin=function(t,e,n){return xn(t,e,n,"weekdaysMin")},l.defineLocale=me,l.updateLocale=function(t,e){if(null!=e){var n,r,i=ue;null!=(r=de(t))&&(i=r._config),e=Y(i,e),(n=new P(e)).parentLocale=le[t],le[t]=n,fe(t)}else null!=le[t]&&(null!=le[t].parentLocale?le[t]=le[t].parentLocale:null!=le[t]&&delete le[t]);return le[t]},l.locales=function(){return D(le)},l.weekdaysShort=function(t,e,n){return xn(t,e,n,"weekdaysShort")},l.normalizeUnits=L,l.relativeTimeRounding=function(t){return void 0!==t?"function"==typeof t&&(qn=t,!0):qn},l.relativeTimeThreshold=function(t,e){return void 0!==Xn[t]&&(void 0===e?Xn[t]:(Xn[t]=e,"s"===t&&(Xn.ss=e-1),!0))},l.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},l.prototype=_n,l.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"},l}()}),ka="undefined"!=typeof window&&window.moment||Sa,xa=pi(function(t,e){var h;t.exports=(h=null,function r(i,t){var s=t||{preventDefault:!1};if(i.Manager){var a=i,e=function(t,e){var n=Object.create(s);return e&&a.assign(n,e),r(new a(t,n),n)};return a.assign(e,a),e.Manager=function(t,e){var n=Object.create(s);return e&&a.assign(n,e),r(new a.Manager(t,n),n)},e}var o=Object.create(i),n=i.element;function u(t){return t.match(/[^ ]+/g)}function l(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var n=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof n&&(t.srcEvent.stopPropagation=function(){n(),t.stopPropagation()});for(var r=t.firstTarget=h;r&&!e;){var i=r.hammer;if(i)for(var s,a=0;a<i.length;a++)if(s=i[a]._handlers[t.type])for(var o=0;o<s.length&&!e;o++)s[o](t);r=r.parentNode}}return n.hammer||(n.hammer=[]),n.hammer.push(o),i.on("hammer.input",function(t){!0!==s.preventDefault&&s.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(h=t.target)}),o._handlers={},o.on=function(t,n){return u(t).forEach(function(t){var e=o._handlers[t];e||(o._handlers[t]=e=[],i.on(t,l)),e.push(n)}),o},o.off=function(t,n){return u(t).forEach(function(t){var e=o._handlers[t];e&&(0<(e=n?e.filter(function(t){return t!==n}):[]).length?o._handlers[t]=e:(i.off(t,l),delete o._handlers[t]))}),o},o.emit=function(t,e){h=e.target,i.emit(t,e)},o.destroy=function(){var t=i.element.hammer,e=t.indexOf(o);-1!==e&&t.splice(e,1),t.length||delete i.element.hammer,o._handlers={},i.destroy()},o})}),Da=pi(function(zt){!function(s,i,t,c){var a,o=["","webkit","Moz","MS","ms","o"],e=i.createElement("div"),n="function",u=Math.round,d=Math.abs,f=Date.now;function l(t,e,n){return setTimeout(g(t,n),e)}function r(t,e,n){return!!Array.isArray(t)&&(h(t,n[e],n),!0)}function h(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==c)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function m(r,t,e){var i="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=s.console&&(s.console.warn||s.console.log);return n&&n.call(s.console,i,e),r.apply(this,arguments)}}a="function"!=typeof Object.assign?function(t){if(t===c||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==c&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var p=m(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===c)&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),y=m(function(t,e){return p(t,e,!0)},"merge","Use `assign`.");function v(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&a(r,n)}function g(t,e){return function(){return t.apply(e,arguments)}}function _(t,e){return typeof t==n?t.apply(e&&e[0]||c,e):t}function w(t,e){return t===c?e:t}function b(e,t,n){h(D(t),function(t){e.addEventListener(t,n,!1)})}function S(e,t,n){h(D(t),function(t){e.removeEventListener(t,n,!1)})}function k(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function x(t,e){return-1<t.indexOf(e)}function D(t){return t.trim().split(/\s+/g)}function M(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function O(t){return Array.prototype.slice.call(t,0)}function T(t,n,e){for(var r=[],i=[],s=0;s<t.length;){var a=n?t[s][n]:t[s];M(i,a)<0&&r.push(t[s]),i[s]=a,s++}return e&&(r=n?r.sort(function(t,e){return t[n]>e[n]}):r.sort()),r}function Y(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),s=0;s<o.length;){if((r=(n=o[s])?n+i:e)in t)return r;s++}return c}var P=1;function E(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||s}var C="ontouchstart"in s,L=Y(s,"PointerEvent")!==c,R=C&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),A="touch",W=25,I=1,N=4,F=8,j=1,V=2,G=4,H=8,z=16,U=V|G,B=H|z,Z=U|B,q=["x","y"],X=["clientX","clientY"];function $(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){_(e.options.enable,[e])&&n.handler(t)},this.init()}function J(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,s=e&I&&r-i==0,a=e&(N|F)&&r-i==0;n.isFirst=!!s,n.isFinal=!!a,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Q(e));1<i&&!n.firstMultiple?n.firstMultiple=Q(e):1===i&&(n.firstMultiple=!1);var s=n.firstInput,a=n.firstMultiple,o=a?a.center:s.center,u=e.center=K(r);e.timeStamp=f(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=rt(o,u),e.distance=nt(o,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},s=t.prevInput||{};e.eventType!==I&&s.eventType!==N||(i=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=et(e.deltaX,e.deltaY);var l=tt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=d(l.x)>d(l.y)?l.x:l.y,e.scale=a?function(t,e){return nt(e[0],e[1],X)/nt(t[0],t[1],X)}(a.pointers,r):1,e.rotation=a?function(t,e){return rt(e[1],e[0],X)+rt(t[1],t[0],X)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,s,a=t.lastInterval||e,o=e.timeStamp-a.timeStamp;if(e.eventType!=F&&(W<o||a.velocity===c)){var u=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,h=tt(o,u,l);r=h.x,i=h.y,n=d(h.x)>d(h.y)?h.x:h.y,s=et(u,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=s}(n,e);var h=t.element;k(e.srcEvent.target,h)&&(h=e.srcEvent.target);e.target=h}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Q(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:u(t.pointers[n].clientX),clientY:u(t.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:e,center:K(e),deltaX:t.deltaX,deltaY:t.deltaY}}function K(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:u(n/e),y:u(r/e)}}function tt(t,e,n){return{x:e/t||0,y:n/t||0}}function et(t,e){return t===e?j:d(t)>=d(e)?t<0?V:G:e<0?H:z}function nt(t,e,n){var r=e[(n=n||q)[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function rt(t,e,n){var r=e[(n=n||q)[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(E(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(E(this.element),this.evWin,this.domHandler)}};var it={mousedown:I,mousemove:2,mouseup:N},st="mousedown",at="mousemove mouseup";function ot(){this.evEl=st,this.evWin=at,this.pressed=!1,$.apply(this,arguments)}v(ot,$,{handler:function(t){var e=it[t.type];e&I&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=N),this.pressed&&(e&N&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var ut={pointerdown:I,pointermove:2,pointerup:N,pointercancel:F,pointerout:F},lt={2:A,3:"pen",4:"mouse",5:"kinect"},ht="pointerdown",ct="pointermove pointerup pointercancel";function dt(){this.evEl=ht,this.evWin=ct,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}s.MSPointerEvent&&!s.PointerEvent&&(ht="MSPointerDown",ct="MSPointerMove MSPointerUp MSPointerCancel"),v(dt,$,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=ut[r],s=lt[t.pointerType]||t.pointerType,a=s==A,o=M(e,t.pointerId,"pointerId");i&I&&(0===t.button||a)?o<0&&(e.push(t),o=e.length-1):i&(N|F)&&(n=!0),o<0||(e[o]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(o,1))}});var ft={touchstart:I,touchmove:2,touchend:N,touchcancel:F};function mt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,$.apply(this,arguments)}v(mt,$,{handler:function(t){var e=ft[t.type];if(e===I&&(this.started=!0),this.started){var n=function(t,e){var n=O(t.touches),r=O(t.changedTouches);e&(N|F)&&(n=T(n.concat(r),"identifier",!0));return[n,r]}.call(this,t,e);e&(N|F)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:A,srcEvent:t})}}});var pt={touchstart:I,touchmove:2,touchend:N,touchcancel:F},yt="touchstart touchmove touchend touchcancel";function vt(){this.evTarget=yt,this.targetIds={},$.apply(this,arguments)}v(vt,$,{handler:function(t){var e=pt[t.type],n=function(t,e){var n=O(t.touches),r=this.targetIds;if(e&(2|I)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,s,a=O(t.changedTouches),o=[],u=this.target;if(s=n.filter(function(t){return k(t.target,u)}),e===I)for(i=0;i<s.length;)r[s[i].identifier]=!0,i++;i=0;for(;i<a.length;)r[a[i].identifier]&&o.push(a[i]),e&(N|F)&&delete r[a[i].identifier],i++;return o.length?[T(s.concat(o),"identifier",!0),o]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:A,srcEvent:t})}});var gt=2500;function _t(){$.apply(this,arguments);var t=g(this.handler,this);this.touch=new vt(this.manager,t),this.mouse=new ot(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function wt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout(function(){var t=r.indexOf(n);-1<t&&r.splice(t,1)},gt)}}v(_t,$,{handler:function(t,e,n){var r=n.pointerType==A,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)(function(t,e){t&I?(this.primaryTouch=e.changedPointers[0].identifier,wt.call(this,e)):t&(N|F)&&wt.call(this,e)}).call(this,e,n);else if(i&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],s=Math.abs(e-i.x),a=Math.abs(n-i.y);if(s<=25&&a<=25)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=Y(e.style,"touchAction"),St=bt!==c,kt="manipulation",xt="none",Dt="pan-x",Mt="pan-y",Ot=function(){if(!St)return!1;var e={},n=s.CSS&&s.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!n||s.CSS.supports("touch-action",t)}),e}();function Tt(t,e){this.manager=t,this.set(e)}Tt.prototype={set:function(t){"compute"==t&&(t=this.compute()),St&&this.manager.element.style&&Ot[t]&&(this.manager.element.style[bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,function(t){_(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(x(t,xt))return xt;var e=x(t,Dt),n=x(t,Mt);if(e&&n)return xt;if(e||n)return e?Dt:Mt;if(x(t,kt))return kt;return"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=x(r,xt)&&!Ot.none,s=x(r,Mt)&&!Ot[Mt],a=x(r,Dt)&&!Ot[Dt];if(i){var o=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(o&&u&&l)return}if(!a||!s)return i||s&&n&U||a&&n&B?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Yt=1;function Pt(t){this.options=a({},this.defaults,t||{}),this.id=P++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Yt,this.simultaneous={},this.requireFail=[]}function Et(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Ct(t){return t==z?"down":t==H?"up":t==V?"left":t==G?"right":""}function Lt(t,e){var n=e.manager;return n?n.get(t):t}function Rt(){Pt.apply(this,arguments)}function At(){Rt.apply(this,arguments),this.pX=null,this.pY=null}function Wt(){Rt.apply(this,arguments)}function It(){Pt.apply(this,arguments),this._timer=null,this._input=null}function Nt(){Rt.apply(this,arguments)}function Ft(){Rt.apply(this,arguments)}function jt(){Pt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Vt(t,e){return(e=e||{}).recognizers=w(e.recognizers,Vt.defaults.preset),new Gt(t,e)}Pt.prototype={defaults:{},set:function(t){return a(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(r(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Lt(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return r(t,"dropRecognizeWith",this)||(t=Lt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(r(t,"requireFailure",this))return this;var e=this.requireFail;return-1===M(e,t=Lt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(r(t,"dropRequireFailure",this))return this;t=Lt(t,this);var e=M(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){var n=this,t=this.state;function r(t){n.manager.emit(t,e)}t<8&&r(n.options.event+Et(t)),r(n.options.event),e.additionalEvent&&r(e.additionalEvent),8<=t&&r(n.options.event+Et(t))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Yt)))return!1;t++}return!0},recognize:function(t){var e=a({},t);if(!_(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=Yt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},v(Rt,Pt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(n&F||!i)?16|e:r||i?n&N?8|e:2&e?4|e:2:32}}),v(At,Rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var t=this.options.direction,e=[];return t&U&&e.push(Mt),t&B&&e.push(Dt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,s=t.deltaX,a=t.deltaY;return i&e.direction||(r=e.direction&U?(i=0===s?j:s<0?V:G,n=s!=this.pX,Math.abs(t.deltaX)):(i=0===a?j:a<0?H:z,n=a!=this.pY,Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Rt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ct(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(Wt,Rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),v(It,Pt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(N|F)&&!i)this.reset();else if(t.eventType&I)this.reset(),this._timer=l(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&N)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&N?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),v(Nt,Rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(Ft,Rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:U|B,pointers:1},getTouchAction:function(){return At.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(U|B)?e=t.overallVelocity:n&U?e=t.overallVelocityX:n&B&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&t.eventType&N},emit:function(t){var e=Ct(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(jt,Pt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[kt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&I&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=N)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||nt(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=l(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Vt.VERSION="2.0.7",Vt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Nt,{enable:!1}],[Wt,{enable:!1},["rotate"]],[Ft,{direction:U}],[At,{direction:U},["swipe"]],[jt],[jt,{event:"doubletap",taps:2},["tap"]],[It]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Gt(t,e){this.options=a({},Vt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(L?dt:R?vt:C?_t:ot))(t,J)}(this),this.touchAction=new Tt(this,this.options.touchAction),Ht(this,!0),h(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Ht(n,r){var i,s=n.element;s.style&&(h(n.options.cssProps,function(t,e){i=Y(s.style,e),r?(n.oldCssProps[i]=s.style[i],s.style[i]=t):s.style[i]=n.oldCssProps[i]||""}),r||(n.oldCssProps={}))}Gt.prototype={set:function(t){return a(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var s=0;s<r.length;)n=r[s],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),s++}},get:function(t){if(t instanceof Pt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(r(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){if(r(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=M(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==c&&e!==c){var n=this.handlers;return h(D(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==c){var n=this.handlers;return h(D(t),function(t){e?n[t]&&n[t].splice(M(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),(n.gesture=e).target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(Vt,{INPUT_START:I,INPUT_MOVE:2,INPUT_END:N,INPUT_CANCEL:F,STATE_POSSIBLE:Yt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:j,DIRECTION_LEFT:V,DIRECTION_RIGHT:G,DIRECTION_UP:H,DIRECTION_DOWN:z,DIRECTION_HORIZONTAL:U,DIRECTION_VERTICAL:B,DIRECTION_ALL:Z,Manager:Gt,Input:$,TouchAction:Tt,TouchInput:vt,MouseInput:ot,PointerEventInput:dt,TouchMouseInput:_t,SingleTouchInput:mt,Recognizer:Pt,AttrRecognizer:Rt,Tap:jt,Pan:At,Swipe:Ft,Pinch:Wt,Rotate:Nt,Press:It,on:b,off:S,each:h,merge:y,extend:p,assign:a,inherit:v,bindFn:g,prefixed:Y}),(void 0!==s?s:"undefined"!=typeof self?self:{}).Hammer=Vt,"function"==typeof c&&c.amd?c(function(){return Vt}):zt.exports?zt.exports=Vt:s.Hammer=Vt}(window,document)}),Ma=pi(function(t){if("undefined"!=typeof window){var e=xa,n=window.Hammer||Da;t.exports=e(n,{preventDefault:"mouse"})}else t.exports=function(){return function(){function e(){}return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}()}}),Oa=pi(function(t,e){t.exports=function(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,r={},a={keydown:{},keyup:{}},o={};for(e=97;e<=122;e++)o[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)o[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)o[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)o["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)o["num"+e]={code:96+e,shift:!1};function s(t){l(t,"keydown")}function u(t){l(t,"keyup")}o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var l=function(t,e){if(void 0!==a[e][t.keyCode]){for(var n=a[e][t.keyCode],r=0;r<n.length;r++)void 0===n[r].shift?n[r].fn(t):1==n[r].shift&&1==t.shiftKey?n[r].fn(t):0==n[r].shift&&0==t.shiftKey&&n[r].fn(t);1==i&&t.preventDefault()}};return r.bind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===o[t])throw new Error("unsupported key: "+t);void 0===a[n][o[t].code]&&(a[n][o[t].code]=[]),a[n][o[t].code].push({fn:e,shift:o[t].shift})},r.bindAll=function(t,e){for(var n in void 0===e&&(e="keydown"),o)o.hasOwnProperty(n)&&r.bind(n,t,e)},r.getKey=function(t){for(var e in o)if(o.hasOwnProperty(e)){if(1==t.shiftKey&&1==o[e].shift&&t.keyCode==o[e].code)return e;if(0==t.shiftKey&&0==o[e].shift&&t.keyCode==o[e].code)return e;if(t.keyCode==o[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},r.unbind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===o[t])throw new Error("unsupported key: "+t);if(void 0!==e){var r=[],i=a[n][o[t].code];if(void 0!==i)for(var s=0;s<i.length;s++)i[s].fn==e&&i[s].shift==o[t].shift||r.push(a[n][o[t].code][s]);a[n][o[t].code]=r}else a[n][o[t].code]=[]},r.reset=function(){a={keydown:{},keyup:{}}},r.destroy=function(){a={keydown:{},keyup:{}},n.removeEventListener("keydown",s,!0),n.removeEventListener("keyup",u,!0)},n.addEventListener("keydown",s,!0),n.addEventListener("keyup",u,!0),r}}),Ta=ks,Ya=vi,Pa=ia.DataSet,Ea=ia.DataView,Ca=ia.Queue,La=ba,Ra={Camera:Es,Filter:oa,Point2d:Ss,Point3d:bs,Slider:Ds,StepNumber:Os},Aa=ka,Wa=Ma,Ia=Oa,Na={util:Ta,DOMutil:Ya,DataSet:Pa,DataView:Ea,Queue:Ca,Graph3d:La,graph3d:Ra,moment:Aa,Hammer:Wa,keycharm:Ia};t.DOMutil=Ya,t.DataSet=Pa,t.DataView=Ea,t.Graph3d=La,t.Hammer=Wa,t.Queue=Ca,t.default=Na,t.graph3d=Ra,t.keycharm=Ia,t.moment=Aa,t.util=Ta,Object.defineProperty(t,"__esModule",{value:!0})});
  