@riskdefy/chargebacks 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chargebacks.cjs.js +54 -58
- package/dist/Chargebacks.es.js +10510 -13767
- package/dist/Chargebacks.umd.js +54 -58
- package/dist/chargebacks.css +5 -1
- package/package.json +7 -3
package/dist/Chargebacks.cjs.js
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("vue");var Dt="top",er="bottom",tr="right",Nt="left",Yl="auto",Ea=[Dt,er,tr,Nt],si="start",oa="end",r_="clippingParents",Sh="viewport",Ui="popper",n_="reference",ku=Ea.reduce(function(e,t){return e.concat([t+"-"+si,t+"-"+oa])},[]),kh=[].concat(Ea,[Yl]).reduce(function(e,t){return e.concat([t,t+"-"+si,t+"-"+oa])},[]),i_="beforeRead",a_="read",s_="afterRead",o_="beforeMain",l_="main",d_="afterMain",c_="beforeWrite",u_="write",h_="afterWrite",f_=[i_,a_,s_,o_,l_,d_,c_,u_,h_];function Fr(e){return e?(e.nodeName||"").toLowerCase():null}function rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oi(e){var t=rr(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xh(e){if(typeof ShadowRoot>"u")return!1;var t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fT(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var a=t.styles[r]||{},n=t.attributes[r]||{},s=t.elements[r];!lr(s)||!Fr(s)||(Object.assign(s.style,a),Object.keys(n).forEach(function(o){var l=n[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function pT(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(a){var n=t.elements[a],s=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:r[a]),l=o.reduce(function(d,c){return d[c]="",d},{});!lr(n)||!Fr(n)||(Object.assign(n.style,l),Object.keys(s).forEach(function(d){n.removeAttribute(d)}))})}}const Th={name:"applyStyles",enabled:!0,phase:"write",fn:fT,effect:pT,requires:["computeStyles"]};function Rr(e){return e.split("-")[0]}var Jn=Math.max,hl=Math.min,la=Math.round;function xu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function p_(){return!/^((?!chrome|android).)*safari/i.test(xu())}function da(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var a=e.getBoundingClientRect(),n=1,s=1;t&&lr(e)&&(n=e.offsetWidth>0&&la(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&la(a.height)/e.offsetHeight||1);var o=oi(e)?rr(e):window,l=o.visualViewport,d=!p_()&&r,c=(a.left+(d&&l?l.offsetLeft:0))/n,f=(a.top+(d&&l?l.offsetTop:0))/s,v=a.width/n,m=a.height/s;return{width:v,height:m,top:f,right:c+v,bottom:f+m,left:c,x:c,y:f}}function $h(e){var t=da(e),r=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:a}}function v_(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&xh(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function rn(e){return rr(e).getComputedStyle(e)}function vT(e){return["table","td","th"].indexOf(Fr(e))>=0}function On(e){return((oi(e)?e.ownerDocument:e.document)||window.document).documentElement}function jl(e){return Fr(e)==="html"?e:e.assignedSlot||e.parentNode||(xh(e)?e.host:null)||On(e)}function Rp(e){return!lr(e)||rn(e).position==="fixed"?null:e.offsetParent}function mT(e){var t=/firefox/i.test(xu()),r=/Trident/i.test(xu());if(r&&lr(e)){var a=rn(e);if(a.position==="fixed")return null}var n=jl(e);for(xh(n)&&(n=n.host);lr(n)&&["html","body"].indexOf(Fr(n))<0;){var s=rn(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function $s(e){for(var t=rr(e),r=Rp(e);r&&vT(r)&&rn(r).position==="static";)r=Rp(r);return r&&(Fr(r)==="html"||Fr(r)==="body"&&rn(r).position==="static")?t:r||mT(e)||t}function Dh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function as(e,t,r){return Jn(e,hl(t,r))}function gT(e,t,r){var a=as(e,t,r);return a>r?r:a}function m_(){return{top:0,right:0,bottom:0,left:0}}function g_(e){return Object.assign({},m_(),e)}function y_(e,t){return t.reduce(function(r,a){return r[a]=e,r},{})}var yT=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,g_(typeof t!="number"?t:y_(t,Ea))};function _T(e){var t,r=e.state,a=e.name,n=e.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,l=Rr(r.placement),d=Dh(l),c=[Nt,tr].indexOf(l)>=0,f=c?"height":"width";if(!(!s||!o)){var v=yT(n.padding,r),m=$h(s),g=d==="y"?Dt:Nt,b=d==="y"?er:tr,S=r.rects.reference[f]+r.rects.reference[d]-o[d]-r.rects.popper[f],w=o[d]-r.rects.reference[d],k=$s(s),T=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0,D=S/2-w/2,N=v[g],L=T-m[f]-v[b],A=T/2-m[f]/2+D,R=as(N,A,L),C=d;r.modifiersData[a]=(t={},t[C]=R,t.centerOffset=R-A,t)}}function bT(e){var t=e.state,r=e.options,a=r.element,n=a===void 0?"[data-popper-arrow]":a;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||v_(t.elements.popper,n)&&(t.elements.arrow=n))}const __={name:"arrow",enabled:!0,phase:"main",fn:_T,effect:bT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ca(e){return e.split("-")[1]}var wT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ET(e,t){var r=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:la(r*n)/n||0,y:la(a*n)/n||0}}function Lp(e){var t,r=e.popper,a=e.popperRect,n=e.placement,s=e.variation,o=e.offsets,l=e.position,d=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,v=e.isFixed,m=o.x,g=m===void 0?0:m,b=o.y,S=b===void 0?0:b,w=typeof f=="function"?f({x:g,y:S}):{x:g,y:S};g=w.x,S=w.y;var k=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),D=Nt,N=Dt,L=window;if(c){var A=$s(r),R="clientHeight",C="clientWidth";if(A===rr(r)&&(A=On(r),rn(A).position!=="static"&&l==="absolute"&&(R="scrollHeight",C="scrollWidth")),A=A,n===Dt||(n===Nt||n===tr)&&s===oa){N=er;var j=v&&A===L&&L.visualViewport?L.visualViewport.height:A[R];S-=j-a.height,S*=d?1:-1}if(n===Nt||(n===Dt||n===er)&&s===oa){D=tr;var O=v&&A===L&&L.visualViewport?L.visualViewport.width:A[C];g-=O-a.width,g*=d?1:-1}}var M=Object.assign({position:l},c&&wT),H=f===!0?ET({x:g,y:S},rr(r)):{x:g,y:S};if(g=H.x,S=H.y,d){var z;return Object.assign({},M,(z={},z[N]=T?"0":"",z[D]=k?"0":"",z.transform=(L.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",z))}return Object.assign({},M,(t={},t[N]=T?S+"px":"",t[D]=k?g+"px":"",t.transform="",t))}function ST(e){var t=e.state,r=e.options,a=r.gpuAcceleration,n=a===void 0?!0:a,s=r.adaptive,o=s===void 0?!0:s,l=r.roundOffsets,d=l===void 0?!0:l,c={placement:Rr(t.placement),variation:ca(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lp(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lp(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Nh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ST,data:{}};var xo={passive:!0};function kT(e){var t=e.state,r=e.instance,a=e.options,n=a.scroll,s=n===void 0?!0:n,o=a.resize,l=o===void 0?!0:o,d=rr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",r.update,xo)}),l&&d.addEventListener("resize",r.update,xo),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",r.update,xo)}),l&&d.removeEventListener("resize",r.update,xo)}}const Ch={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kT,data:{}};var xT={left:"right",right:"left",bottom:"top",top:"bottom"};function rl(e){return e.replace(/left|right|bottom|top/g,function(t){return xT[t]})}var TT={start:"end",end:"start"};function Vp(e){return e.replace(/start|end/g,function(t){return TT[t]})}function Oh(e){var t=rr(e),r=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:r,scrollTop:a}}function Ah(e){return da(On(e)).left+Oh(e).scrollLeft}function $T(e,t){var r=rr(e),a=On(e),n=r.visualViewport,s=a.clientWidth,o=a.clientHeight,l=0,d=0;if(n){s=n.width,o=n.height;var c=p_();(c||!c&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:s,height:o,x:l+Ah(e),y:d}}function DT(e){var t,r=On(e),a=Oh(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=Jn(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Jn(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-a.scrollLeft+Ah(e),d=-a.scrollTop;return rn(n||r).direction==="rtl"&&(l+=Jn(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:o,x:l,y:d}}function Ih(e){var t=rn(e),r=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+a)}function b_(e){return["html","body","#document"].indexOf(Fr(e))>=0?e.ownerDocument.body:lr(e)&&Ih(e)?e:b_(jl(e))}function ss(e,t){var r;t===void 0&&(t=[]);var a=b_(e),n=a===((r=e.ownerDocument)==null?void 0:r.body),s=rr(a),o=n?[s].concat(s.visualViewport||[],Ih(a)?a:[]):a,l=t.concat(o);return n?l:l.concat(ss(jl(o)))}function Tu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function NT(e,t){var r=da(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Fp(e,t,r){return t===Sh?Tu($T(e,r)):oi(t)?NT(t,r):Tu(DT(On(e)))}function CT(e){var t=ss(jl(e)),r=["absolute","fixed"].indexOf(rn(e).position)>=0,a=r&&lr(e)?$s(e):e;return oi(a)?t.filter(function(n){return oi(n)&&v_(n,a)&&Fr(n)!=="body"}):[]}function OT(e,t,r,a){var n=t==="clippingParents"?CT(e):[].concat(t),s=[].concat(n,[r]),o=s[0],l=s.reduce(function(d,c){var f=Fp(e,c,a);return d.top=Jn(f.top,d.top),d.right=hl(f.right,d.right),d.bottom=hl(f.bottom,d.bottom),d.left=Jn(f.left,d.left),d},Fp(e,o,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function w_(e){var t=e.reference,r=e.element,a=e.placement,n=a?Rr(a):null,s=a?ca(a):null,o=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,d;switch(n){case Dt:d={x:o,y:t.y-r.height};break;case er:d={x:o,y:t.y+t.height};break;case tr:d={x:t.x+t.width,y:l};break;case Nt:d={x:t.x-r.width,y:l};break;default:d={x:t.x,y:t.y}}var c=n?Dh(n):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case si:d[c]=d[c]-(t[f]/2-r[f]/2);break;case oa:d[c]=d[c]+(t[f]/2-r[f]/2);break}}return d}function ua(e,t){t===void 0&&(t={});var r=t,a=r.placement,n=a===void 0?e.placement:a,s=r.strategy,o=s===void 0?e.strategy:s,l=r.boundary,d=l===void 0?r_:l,c=r.rootBoundary,f=c===void 0?Sh:c,v=r.elementContext,m=v===void 0?Ui:v,g=r.altBoundary,b=g===void 0?!1:g,S=r.padding,w=S===void 0?0:S,k=g_(typeof w!="number"?w:y_(w,Ea)),T=m===Ui?n_:Ui,D=e.rects.popper,N=e.elements[b?T:m],L=OT(oi(N)?N:N.contextElement||On(e.elements.popper),d,f,o),A=da(e.elements.reference),R=w_({reference:A,element:D,placement:n}),C=Tu(Object.assign({},D,R)),j=m===Ui?C:A,O={top:L.top-j.top+k.top,bottom:j.bottom-L.bottom+k.bottom,left:L.left-j.left+k.left,right:j.right-L.right+k.right},M=e.modifiersData.offset;if(m===Ui&&M){var H=M[n];Object.keys(O).forEach(function(z){var se=[tr,er].indexOf(z)>=0?1:-1,_e=[Dt,er].indexOf(z)>=0?"y":"x";O[z]+=H[_e]*se})}return O}function AT(e,t){t===void 0&&(t={});var r=t,a=r.placement,n=r.boundary,s=r.rootBoundary,o=r.padding,l=r.flipVariations,d=r.allowedAutoPlacements,c=d===void 0?kh:d,f=ca(a),v=f?l?ku:ku.filter(function(b){return ca(b)===f}):Ea,m=v.filter(function(b){return c.indexOf(b)>=0});m.length===0&&(m=v);var g=m.reduce(function(b,S){return b[S]=ua(e,{placement:S,boundary:n,rootBoundary:s,padding:o})[Rr(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function IT(e){if(Rr(e)===Yl)return[];var t=rl(e);return[Vp(e),t,Vp(t)]}function PT(e){var t=e.state,r=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,o=r.altAxis,l=o===void 0?!0:o,d=r.fallbackPlacements,c=r.padding,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,S=r.allowedAutoPlacements,w=t.options.placement,k=Rr(w),T=k===w,D=d||(T||!b?[rl(w)]:IT(w)),N=[w].concat(D).reduce(function(vt,q){return vt.concat(Rr(q)===Yl?AT(t,{placement:q,boundary:f,rootBoundary:v,padding:c,flipVariations:b,allowedAutoPlacements:S}):q)},[]),L=t.rects.reference,A=t.rects.popper,R=new Map,C=!0,j=N[0],O=0;O<N.length;O++){var M=N[O],H=Rr(M),z=ca(M)===si,se=[Dt,er].indexOf(H)>=0,_e=se?"width":"height",be=ua(t,{placement:M,boundary:f,rootBoundary:v,altBoundary:m,padding:c}),he=se?z?tr:Nt:z?er:Dt;L[_e]>A[_e]&&(he=rl(he));var rt=rl(he),ut=[];if(s&&ut.push(be[H]<=0),l&&ut.push(be[he]<=0,be[rt]<=0),ut.every(function(vt){return vt})){j=M,C=!1;break}R.set(M,ut)}if(C)for(var Ie=b?3:1,Mt=function(q){var vr=N.find(function(Or){var mt=R.get(Or);if(mt)return mt.slice(0,q).every(function(W){return W})});if(vr)return j=vr,"break"},ht=Ie;ht>0;ht--){var Cr=Mt(ht);if(Cr==="break")break}t.placement!==j&&(t.modifiersData[a]._skip=!0,t.placement=j,t.reset=!0)}}const E_={name:"flip",enabled:!0,phase:"main",fn:PT,requiresIfExists:["offset"],data:{_skip:!1}};function Yp(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jp(e){return[Dt,tr,er,Nt].some(function(t){return e[t]>=0})}function MT(e){var t=e.state,r=e.name,a=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,o=ua(t,{elementContext:"reference"}),l=ua(t,{altBoundary:!0}),d=Yp(o,a),c=Yp(l,n,s),f=jp(d),v=jp(c);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const S_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MT};function RT(e,t,r){var a=Rr(e),n=[Nt,Dt].indexOf(a)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=s[0],l=s[1];return o=o||0,l=(l||0)*n,[Nt,tr].indexOf(a)>=0?{x:l,y:o}:{x:o,y:l}}function LT(e){var t=e.state,r=e.options,a=e.name,n=r.offset,s=n===void 0?[0,0]:n,o=kh.reduce(function(f,v){return f[v]=RT(v,t.rects,s),f},{}),l=o[t.placement],d=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=o}const k_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LT};function VT(e){var t=e.state,r=e.name;t.modifiersData[r]=w_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ph={name:"popperOffsets",enabled:!0,phase:"read",fn:VT,data:{}};function FT(e){return e==="x"?"y":"x"}function YT(e){var t=e.state,r=e.options,a=e.name,n=r.mainAxis,s=n===void 0?!0:n,o=r.altAxis,l=o===void 0?!1:o,d=r.boundary,c=r.rootBoundary,f=r.altBoundary,v=r.padding,m=r.tether,g=m===void 0?!0:m,b=r.tetherOffset,S=b===void 0?0:b,w=ua(t,{boundary:d,rootBoundary:c,padding:v,altBoundary:f}),k=Rr(t.placement),T=ca(t.placement),D=!T,N=Dh(k),L=FT(N),A=t.modifiersData.popperOffsets,R=t.rects.reference,C=t.rects.popper,j=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,O=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(A){if(s){var z,se=N==="y"?Dt:Nt,_e=N==="y"?er:tr,be=N==="y"?"height":"width",he=A[N],rt=he+w[se],ut=he-w[_e],Ie=g?-C[be]/2:0,Mt=T===si?R[be]:C[be],ht=T===si?-C[be]:-R[be],Cr=t.elements.arrow,vt=g&&Cr?$h(Cr):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:m_(),vr=q[se],Or=q[_e],mt=as(0,R[be],vt[be]),W=D?R[be]/2-Ie-mt-vr-O.mainAxis:Mt-mt-vr-O.mainAxis,F=D?-R[be]/2+Ie+mt+Or+O.mainAxis:ht+mt+Or+O.mainAxis,B=t.elements.arrow&&$s(t.elements.arrow),Q=B?N==="y"?B.clientTop||0:B.clientLeft||0:0,ie=(z=M==null?void 0:M[N])!=null?z:0,re=he+W-ie-Q,Re=he+F-ie,Je=as(g?hl(rt,re):rt,he,g?Jn(ut,Re):ut);A[N]=Je,H[N]=Je-he}if(l){var nt,mr=N==="x"?Dt:Nt,ar=N==="x"?er:tr,Ke=A[L],qe=L==="y"?"height":"width",wt=Ke+w[mr],Ti=Ke-w[ar],$i=[Dt,Nt].indexOf(k)!==-1,it=(nt=M==null?void 0:M[L])!=null?nt:0,io=$i?wt:Ke-R[qe]-C[qe]-it+O.altAxis,jn=$i?Ke+R[qe]+C[qe]-it-O.altAxis:Ti,Et=g&&$i?gT(io,Ke,jn):as(g?io:wt,Ke,g?jn:Ti);A[L]=Et,H[L]=Et-Ke}t.modifiersData[a]=H}}const x_={name:"preventOverflow",enabled:!0,phase:"main",fn:YT,requiresIfExists:["offset"]};function jT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function BT(e){return e===rr(e)||!lr(e)?Oh(e):jT(e)}function HT(e){var t=e.getBoundingClientRect(),r=la(t.width)/e.offsetWidth||1,a=la(t.height)/e.offsetHeight||1;return r!==1||a!==1}function WT(e,t,r){r===void 0&&(r=!1);var a=lr(t),n=lr(t)&&HT(t),s=On(t),o=da(e,n,r),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!r)&&((Fr(t)!=="body"||Ih(s))&&(l=BT(t)),lr(t)?(d=da(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Ah(s))),{x:o.left+l.scrollLeft-d.x,y:o.top+l.scrollTop-d.y,width:o.width,height:o.height}}function GT(e){var t=new Map,r=new Set,a=[];e.forEach(function(s){t.set(s.name,s)});function n(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(l){if(!r.has(l)){var d=t.get(l);d&&n(d)}}),a.push(s)}return e.forEach(function(s){r.has(s.name)||n(s)}),a}function zT(e){var t=GT(e);return f_.reduce(function(r,a){return r.concat(t.filter(function(n){return n.phase===a}))},[])}function UT(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function KT(e){var t=e.reduce(function(r,a){var n=r[a.name];return r[a.name]=n?Object.assign({},n,a,{options:Object.assign({},n.options,a.options),data:Object.assign({},n.data,a.data)}):a,r},{});return Object.keys(t).map(function(r){return t[r]})}var Bp={placement:"bottom",modifiers:[],strategy:"absolute"};function Hp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Bl(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,a=r===void 0?[]:r,n=t.defaultOptions,s=n===void 0?Bp:n;return function(l,d,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bp,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},v=[],m=!1,g={state:f,setOptions:function(k){var T=typeof k=="function"?k(f.options):k;S(),f.options=Object.assign({},s,f.options,T),f.scrollParents={reference:oi(l)?ss(l):l.contextElement?ss(l.contextElement):[],popper:ss(d)};var D=zT(KT([].concat(a,f.options.modifiers)));return f.orderedModifiers=D.filter(function(N){return N.enabled}),b(),g.update()},forceUpdate:function(){if(!m){var k=f.elements,T=k.reference,D=k.popper;if(Hp(T,D)){f.rects={reference:WT(T,$s(D),f.options.strategy==="fixed"),popper:$h(D)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(O){return f.modifiersData[O.name]=Object.assign({},O.data)});for(var N=0;N<f.orderedModifiers.length;N++){if(f.reset===!0){f.reset=!1,N=-1;continue}var L=f.orderedModifiers[N],A=L.fn,R=L.options,C=R===void 0?{}:R,j=L.name;typeof A=="function"&&(f=A({state:f,options:C,name:j,instance:g})||f)}}}},update:UT(function(){return new Promise(function(w){g.forceUpdate(),w(f)})}),destroy:function(){S(),m=!0}};if(!Hp(l,d))return g;g.setOptions(c).then(function(w){!m&&c.onFirstUpdate&&c.onFirstUpdate(w)});function b(){f.orderedModifiers.forEach(function(w){var k=w.name,T=w.options,D=T===void 0?{}:T,N=w.effect;if(typeof N=="function"){var L=N({state:f,name:k,instance:g,options:D}),A=function(){};v.push(L||A)}})}function S(){v.forEach(function(w){return w()}),v=[]}return g}}var qT=Bl(),XT=[Ch,Ph,Nh,Th],QT=Bl({defaultModifiers:XT}),ZT=[Ch,Ph,Nh,Th,k_,E_,x_,__,S_],Mh=Bl({defaultModifiers:ZT});const T_=Object.freeze(Object.defineProperty({__proto__:null,afterMain:d_,afterRead:s_,afterWrite:h_,applyStyles:Th,arrow:__,auto:Yl,basePlacements:Ea,beforeMain:o_,beforeRead:i_,beforeWrite:c_,bottom:er,clippingParents:r_,computeStyles:Nh,createPopper:Mh,createPopperBase:qT,createPopperLite:QT,detectOverflow:ua,end:oa,eventListeners:Ch,flip:E_,hide:S_,left:Nt,main:l_,modifierPhases:f_,offset:k_,placements:kh,popper:Ui,popperGenerator:Bl,popperOffsets:Ph,preventOverflow:x_,read:a_,reference:n_,right:tr,start:si,top:Dt,variationPlacements:ku,viewport:Sh,write:u_},Symbol.toStringTag,{value:"Module"}));/*!
|
2
|
-
* Bootstrap v5.3.3 (https://getbootstrap.com/)
|
3
|
-
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
4
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
5
|
-
*/const yn=new Map,jd={set(e,t,r){yn.has(e)||yn.set(e,new Map);const a=yn.get(e);if(!a.has(t)&&a.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`);return}a.set(t,r)},get(e,t){return yn.has(e)&&yn.get(e).get(t)||null},remove(e,t){if(!yn.has(e))return;const r=yn.get(e);r.delete(t),r.size===0&&yn.delete(e)}},JT=1e6,e$=1e3,$u="transitionend",$_=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,r)=>`#${CSS.escape(r)}`)),e),t$=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),r$=e=>{do e+=Math.floor(Math.random()*JT);while(document.getElementById(e));return e},n$=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:r}=window.getComputedStyle(e);const a=Number.parseFloat(t),n=Number.parseFloat(r);return!a&&!n?0:(t=t.split(",")[0],r=r.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(r))*e$)},D_=e=>{e.dispatchEvent(new Event($u))},Xr=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),Tn=e=>Xr(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector($_(e)):null,Sa=e=>{if(!Xr(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",r=e.closest("details:not([open])");if(!r)return t;if(r!==e){const a=e.closest("summary");if(a&&a.parentNode!==r||a===null)return!1}return t},$n=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",N_=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?N_(e.parentNode):null},fl=()=>{},Ds=e=>{e.offsetHeight},C_=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Bd=[],i$=e=>{document.readyState==="loading"?(Bd.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Bd)t()}),Bd.push(e)):e()},cr=()=>document.documentElement.dir==="rtl",hr=e=>{i$(()=>{const t=C_();if(t){const r=e.NAME,a=t.fn[r];t.fn[r]=e.jQueryInterface,t.fn[r].Constructor=e,t.fn[r].noConflict=()=>(t.fn[r]=a,e.jQueryInterface)}})},Yt=(e,t=[],r=e)=>typeof e=="function"?e(...t):r,O_=(e,t,r=!0)=>{if(!r){Yt(e);return}const n=n$(t)+5;let s=!1;const o=({target:l})=>{l===t&&(s=!0,t.removeEventListener($u,o),Yt(e))};t.addEventListener($u,o),setTimeout(()=>{s||D_(t)},n)},Rh=(e,t,r,a)=>{const n=e.length;let s=e.indexOf(t);return s===-1?!r&&a?e[n-1]:e[0]:(s+=r?1:-1,a&&(s=(s+n)%n),e[Math.max(0,Math.min(s,n-1))])},a$=/[^.]*(?=\..*)\.|.*/,s$=/\..*/,o$=/::\d+$/,Hd={};let Wp=1;const A_={mouseenter:"mouseover",mouseleave:"mouseout"},l$=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function I_(e,t){return t&&`${t}::${Wp++}`||e.uidEvent||Wp++}function P_(e){const t=I_(e);return e.uidEvent=t,Hd[t]=Hd[t]||{},Hd[t]}function d$(e,t){return function r(a){return Lh(a,{delegateTarget:e}),r.oneOff&&V.off(e,a.type,t),t.apply(e,[a])}}function c$(e,t,r){return function a(n){const s=e.querySelectorAll(t);for(let{target:o}=n;o&&o!==this;o=o.parentNode)for(const l of s)if(l===o)return Lh(n,{delegateTarget:o}),a.oneOff&&V.off(e,n.type,t,r),r.apply(o,[n])}}function M_(e,t,r=null){return Object.values(e).find(a=>a.callable===t&&a.delegationSelector===r)}function R_(e,t,r){const a=typeof t=="string",n=a?r:t||r;let s=L_(e);return l$.has(s)||(s=e),[a,n,s]}function Gp(e,t,r,a,n){if(typeof t!="string"||!e)return;let[s,o,l]=R_(t,r,a);t in A_&&(o=(b=>function(S){if(!S.relatedTarget||S.relatedTarget!==S.delegateTarget&&!S.delegateTarget.contains(S.relatedTarget))return b.call(this,S)})(o));const d=P_(e),c=d[l]||(d[l]={}),f=M_(c,o,s?r:null);if(f){f.oneOff=f.oneOff&&n;return}const v=I_(o,t.replace(a$,"")),m=s?c$(e,r,o):d$(e,o);m.delegationSelector=s?r:null,m.callable=o,m.oneOff=n,m.uidEvent=v,c[v]=m,e.addEventListener(l,m,s)}function Du(e,t,r,a,n){const s=M_(t[r],a,n);s&&(e.removeEventListener(r,s,!!n),delete t[r][s.uidEvent])}function u$(e,t,r,a){const n=t[r]||{};for(const[s,o]of Object.entries(n))s.includes(a)&&Du(e,t,r,o.callable,o.delegationSelector)}function L_(e){return e=e.replace(s$,""),A_[e]||e}const V={on(e,t,r,a){Gp(e,t,r,a,!1)},one(e,t,r,a){Gp(e,t,r,a,!0)},off(e,t,r,a){if(typeof t!="string"||!e)return;const[n,s,o]=R_(t,r,a),l=o!==t,d=P_(e),c=d[o]||{},f=t.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;Du(e,d,o,s,n?r:null);return}if(f)for(const v of Object.keys(d))u$(e,d,v,t.slice(1));for(const[v,m]of Object.entries(c)){const g=v.replace(o$,"");(!l||t.includes(g))&&Du(e,d,o,m.callable,m.delegationSelector)}},trigger(e,t,r){if(typeof t!="string"||!e)return null;const a=C_(),n=L_(t),s=t!==n;let o=null,l=!0,d=!0,c=!1;s&&a&&(o=a.Event(t,r),a(e).trigger(o),l=!o.isPropagationStopped(),d=!o.isImmediatePropagationStopped(),c=o.isDefaultPrevented());const f=Lh(new Event(t,{bubbles:l,cancelable:!0}),r);return c&&f.preventDefault(),d&&e.dispatchEvent(f),f.defaultPrevented&&o&&o.preventDefault(),f}};function Lh(e,t={}){for(const[r,a]of Object.entries(t))try{e[r]=a}catch{Object.defineProperty(e,r,{configurable:!0,get(){return a}})}return e}function zp(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function Wd(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Qr={setDataAttribute(e,t,r){e.setAttribute(`data-bs-${Wd(t)}`,r)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Wd(t)}`)},getDataAttributes(e){if(!e)return{};const t={},r=Object.keys(e.dataset).filter(a=>a.startsWith("bs")&&!a.startsWith("bsConfig"));for(const a of r){let n=a.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=zp(e.dataset[a])}return t},getDataAttribute(e,t){return zp(e.getAttribute(`data-bs-${Wd(t)}`))}};class Ns{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,r){const a=Xr(r)?Qr.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...Xr(r)?Qr.getDataAttributes(r):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,r=this.constructor.DefaultType){for(const[a,n]of Object.entries(r)){const s=t[a],o=Xr(s)?"element":t$(s);if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${o}" but expected type "${n}".`)}}}const h$="5.3.3";class Tr extends Ns{constructor(t,r){super(),t=Tn(t),t&&(this._element=t,this._config=this._getConfig(r),jd.set(this._element,this.constructor.DATA_KEY,this))}dispose(){jd.remove(this._element,this.constructor.DATA_KEY),V.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,r,a=!0){O_(t,r,a)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return jd.get(Tn(t),this.DATA_KEY)}static getOrCreateInstance(t,r={}){return this.getInstance(t)||new this(t,typeof r=="object"?r:null)}static get VERSION(){return h$}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Gd=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let r=e.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),t=r&&r!=="#"?r.trim():null}return t?t.split(",").map(r=>$_(r)).join(","):null},ee={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(r=>r.matches(t))},parents(e,t){const r=[];let a=e.parentNode.closest(t);for(;a;)r.push(a),a=a.parentNode.closest(t);return r},prev(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return[r];r=r.previousElementSibling}return[]},next(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return[r];r=r.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(r=>!$n(r)&&Sa(r))},getSelectorFromElement(e){const t=Gd(e);return t&&ee.findOne(t)?t:null},getElementFromSelector(e){const t=Gd(e);return t?ee.findOne(t):null},getMultipleElementsFromSelector(e){const t=Gd(e);return t?ee.find(t):[]}},Hl=(e,t="hide")=>{const r=`click.dismiss${e.EVENT_KEY}`,a=e.NAME;V.on(document,r,`[data-bs-dismiss="${a}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),$n(this))return;const s=ee.getElementFromSelector(this)||this.closest(`.${a}`);e.getOrCreateInstance(s)[t]()})},f$="alert",p$="bs.alert",V_=`.${p$}`,v$=`close${V_}`,m$=`closed${V_}`,g$="fade",y$="show";class Wl extends Tr{static get NAME(){return f$}close(){if(V.trigger(this._element,v$).defaultPrevented)return;this._element.classList.remove(y$);const r=this._element.classList.contains(g$);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),V.trigger(this._element,m$),this.dispose()}static jQueryInterface(t){return this.each(function(){const r=Wl.getOrCreateInstance(this);if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t](this)}})}}Hl(Wl,"close");hr(Wl);const _$="button",b$="bs.button",w$=`.${b$}`,E$=".data-api",S$="active",Up='[data-bs-toggle="button"]',k$=`click${w$}${E$}`;class Gl extends Tr{static get NAME(){return _$}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(S$))}static jQueryInterface(t){return this.each(function(){const r=Gl.getOrCreateInstance(this);t==="toggle"&&r[t]()})}}V.on(document,k$,Up,e=>{e.preventDefault();const t=e.target.closest(Up);Gl.getOrCreateInstance(t).toggle()});hr(Gl);const x$="swipe",ka=".bs.swipe",T$=`touchstart${ka}`,$$=`touchmove${ka}`,D$=`touchend${ka}`,N$=`pointerdown${ka}`,C$=`pointerup${ka}`,O$="touch",A$="pen",I$="pointer-event",P$=40,M$={endCallback:null,leftCallback:null,rightCallback:null},R$={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class pl extends Ns{constructor(t,r){super(),this._element=t,!(!t||!pl.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return M$}static get DefaultType(){return R$}static get NAME(){return x$}dispose(){V.off(this._element,ka)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Yt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=P$)return;const r=t/this._deltaX;this._deltaX=0,r&&Yt(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(V.on(this._element,N$,t=>this._start(t)),V.on(this._element,C$,t=>this._end(t)),this._element.classList.add(I$)):(V.on(this._element,T$,t=>this._start(t)),V.on(this._element,$$,t=>this._move(t)),V.on(this._element,D$,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===A$||t.pointerType===O$)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const L$="carousel",V$="bs.carousel",An=`.${V$}`,F_=".data-api",F$="ArrowLeft",Y$="ArrowRight",j$=500,Xa="next",Mi="prev",Ki="left",nl="right",B$=`slide${An}`,zd=`slid${An}`,H$=`keydown${An}`,W$=`mouseenter${An}`,G$=`mouseleave${An}`,z$=`dragstart${An}`,U$=`load${An}${F_}`,K$=`click${An}${F_}`,Y_="carousel",To="active",q$="slide",X$="carousel-item-end",Q$="carousel-item-start",Z$="carousel-item-next",J$="carousel-item-prev",j_=".active",B_=".carousel-item",eD=j_+B_,tD=".carousel-item img",rD=".carousel-indicators",nD="[data-bs-slide], [data-bs-slide-to]",iD='[data-bs-ride="carousel"]',aD={[F$]:nl,[Y$]:Ki},sD={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oD={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Cs extends Tr{constructor(t,r){super(t,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ee.findOne(rD,this._element),this._addEventListeners(),this._config.ride===Y_&&this.cycle()}static get Default(){return sD}static get DefaultType(){return oD}static get NAME(){return L$}next(){this._slide(Xa)}nextWhenVisible(){!document.hidden&&Sa(this._element)&&this.next()}prev(){this._slide(Mi)}pause(){this._isSliding&&D_(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){V.one(this._element,zd,()=>this.cycle());return}this.cycle()}}to(t){const r=this._getItems();if(t>r.length-1||t<0)return;if(this._isSliding){V.one(this._element,zd,()=>this.to(t));return}const a=this._getItemIndex(this._getActive());if(a===t)return;const n=t>a?Xa:Mi;this._slide(n,r[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&V.on(this._element,H$,t=>this._keydown(t)),this._config.pause==="hover"&&(V.on(this._element,W$,()=>this.pause()),V.on(this._element,G$,()=>this._maybeEnableCycle())),this._config.touch&&pl.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const a of ee.find(tD,this._element))V.on(a,z$,n=>n.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(Ki)),rightCallback:()=>this._slide(this._directionToOrder(nl)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),j$+this._config.interval))}};this._swipeHelper=new pl(this._element,r)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const r=aD[t.key];r&&(t.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const r=ee.findOne(j_,this._indicatorsElement);r.classList.remove(To),r.removeAttribute("aria-current");const a=ee.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);a&&(a.classList.add(To),a.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const r=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(t,r=null){if(this._isSliding)return;const a=this._getActive(),n=t===Xa,s=r||Rh(this._getItems(),a,n,this._config.wrap);if(s===a)return;const o=this._getItemIndex(s),l=g=>V.trigger(this._element,g,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(a),to:o});if(l(B$).defaultPrevented||!a||!s)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const f=n?Q$:X$,v=n?Z$:J$;s.classList.add(v),Ds(s),a.classList.add(f),s.classList.add(f);const m=()=>{s.classList.remove(f,v),s.classList.add(To),a.classList.remove(To,v,f),this._isSliding=!1,l(zd)};this._queueCallback(m,a,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(q$)}_getActive(){return ee.findOne(eD,this._element)}_getItems(){return ee.find(B_,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return cr()?t===Ki?Mi:Xa:t===Ki?Xa:Mi}_orderToDirection(t){return cr()?t===Mi?Ki:nl:t===Mi?nl:Ki}static jQueryInterface(t){return this.each(function(){const r=Cs.getOrCreateInstance(this,t);if(typeof t=="number"){r.to(t);return}if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t]()}})}}V.on(document,K$,nD,function(e){const t=ee.getElementFromSelector(this);if(!t||!t.classList.contains(Y_))return;e.preventDefault();const r=Cs.getOrCreateInstance(t),a=this.getAttribute("data-bs-slide-to");if(a){r.to(a),r._maybeEnableCycle();return}if(Qr.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});V.on(window,U$,()=>{const e=ee.find(iD);for(const t of e)Cs.getOrCreateInstance(t)});hr(Cs);const lD="collapse",dD="bs.collapse",Os=`.${dD}`,cD=".data-api",uD=`show${Os}`,hD=`shown${Os}`,fD=`hide${Os}`,pD=`hidden${Os}`,vD=`click${Os}${cD}`,Ud="show",Qi="collapse",$o="collapsing",mD="collapsed",gD=`:scope .${Qi} .${Qi}`,yD="collapse-horizontal",_D="width",bD="height",wD=".collapse.show, .collapse.collapsing",Nu='[data-bs-toggle="collapse"]',ED={parent:null,toggle:!0},SD={parent:"(null|element)",toggle:"boolean"};class vs extends Tr{constructor(t,r){super(t,r),this._isTransitioning=!1,this._triggerArray=[];const a=ee.find(Nu);for(const n of a){const s=ee.getSelectorFromElement(n),o=ee.find(s).filter(l=>l===this._element);s!==null&&o.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ED}static get DefaultType(){return SD}static get NAME(){return lD}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(wD).filter(l=>l!==this._element).map(l=>vs.getOrCreateInstance(l,{toggle:!1}))),t.length&&t[0]._isTransitioning||V.trigger(this._element,uD).defaultPrevented)return;for(const l of t)l.hide();const a=this._getDimension();this._element.classList.remove(Qi),this._element.classList.add($o),this._element.style[a]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove($o),this._element.classList.add(Qi,Ud),this._element.style[a]="",V.trigger(this._element,hD)},o=`scroll${a[0].toUpperCase()+a.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[a]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||V.trigger(this._element,fD).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,Ds(this._element),this._element.classList.add($o),this._element.classList.remove(Qi,Ud);for(const n of this._triggerArray){const s=ee.getElementFromSelector(n);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const a=()=>{this._isTransitioning=!1,this._element.classList.remove($o),this._element.classList.add(Qi),V.trigger(this._element,pD)};this._element.style[r]="",this._queueCallback(a,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ud)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Tn(t.parent),t}_getDimension(){return this._element.classList.contains(yD)?_D:bD}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Nu);for(const r of t){const a=ee.getElementFromSelector(r);a&&this._addAriaAndCollapsedClass([r],this._isShown(a))}}_getFirstLevelChildren(t){const r=ee.find(gD,this._config.parent);return ee.find(t,this._config.parent).filter(a=>!r.includes(a))}_addAriaAndCollapsedClass(t,r){if(t.length)for(const a of t)a.classList.toggle(mD,!r),a.setAttribute("aria-expanded",r)}static jQueryInterface(t){const r={};return typeof t=="string"&&/show|hide/.test(t)&&(r.toggle=!1),this.each(function(){const a=vs.getOrCreateInstance(this,r);if(typeof t=="string"){if(typeof a[t]>"u")throw new TypeError(`No method named "${t}"`);a[t]()}})}}V.on(document,vD,Nu,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of ee.getMultipleElementsFromSelector(this))vs.getOrCreateInstance(t,{toggle:!1}).toggle()});hr(vs);const Kp="dropdown",kD="bs.dropdown",mi=`.${kD}`,Vh=".data-api",xD="Escape",qp="Tab",TD="ArrowUp",Xp="ArrowDown",$D=2,DD=`hide${mi}`,ND=`hidden${mi}`,CD=`show${mi}`,OD=`shown${mi}`,H_=`click${mi}${Vh}`,W_=`keydown${mi}${Vh}`,AD=`keyup${mi}${Vh}`,qi="show",ID="dropup",PD="dropend",MD="dropstart",RD="dropup-center",LD="dropdown-center",Xn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',VD=`${Xn}.${qi}`,il=".dropdown-menu",FD=".navbar",YD=".navbar-nav",jD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",BD=cr()?"top-end":"top-start",HD=cr()?"top-start":"top-end",WD=cr()?"bottom-end":"bottom-start",GD=cr()?"bottom-start":"bottom-end",zD=cr()?"left-start":"right-start",UD=cr()?"right-start":"left-start",KD="top",qD="bottom",XD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},QD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Lr extends Tr{constructor(t,r){super(t,r),this._popper=null,this._parent=this._element.parentNode,this._menu=ee.next(this._element,il)[0]||ee.prev(this._element,il)[0]||ee.findOne(il,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return XD}static get DefaultType(){return QD}static get NAME(){return Kp}toggle(){return this._isShown()?this.hide():this.show()}show(){if($n(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!V.trigger(this._element,CD,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(YD))for(const a of[].concat(...document.body.children))V.on(a,"mouseover",fl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(qi),this._element.classList.add(qi),V.trigger(this._element,OD,t)}}hide(){if($n(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!V.trigger(this._element,DD,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))V.off(a,"mouseover",fl);this._popper&&this._popper.destroy(),this._menu.classList.remove(qi),this._element.classList.remove(qi),this._element.setAttribute("aria-expanded","false"),Qr.removeDataAttribute(this._menu,"popper"),V.trigger(this._element,ND,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Xr(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Kp.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof T_>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Xr(this._config.reference)?t=Tn(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=Mh(t,this._menu,r)}_isShown(){return this._menu.classList.contains(qi)}_getPlacement(){const t=this._parent;if(t.classList.contains(PD))return zD;if(t.classList.contains(MD))return UD;if(t.classList.contains(RD))return KD;if(t.classList.contains(LD))return qD;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(ID)?r?HD:BD:r?GD:WD}_detectNavbar(){return this._element.closest(FD)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(r=>Number.parseInt(r,10)):typeof t=="function"?r=>t(r,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Qr.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Yt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:r}){const a=ee.find(jD,this._menu).filter(n=>Sa(n));a.length&&Rh(a,r,t===Xp,!a.includes(r)).focus()}static jQueryInterface(t){return this.each(function(){const r=Lr.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}static clearMenus(t){if(t.button===$D||t.type==="keyup"&&t.key!==qp)return;const r=ee.find(VD);for(const a of r){const n=Lr.getInstance(a);if(!n||n._config.autoClose===!1)continue;const s=t.composedPath(),o=s.includes(n._menu);if(s.includes(n._element)||n._config.autoClose==="inside"&&!o||n._config.autoClose==="outside"&&o||n._menu.contains(t.target)&&(t.type==="keyup"&&t.key===qp||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const l={relatedTarget:n._element};t.type==="click"&&(l.clickEvent=t),n._completeHide(l)}}static dataApiKeydownHandler(t){const r=/input|textarea/i.test(t.target.tagName),a=t.key===xD,n=[TD,Xp].includes(t.key);if(!n&&!a||r&&!a)return;t.preventDefault();const s=this.matches(Xn)?this:ee.prev(this,Xn)[0]||ee.next(this,Xn)[0]||ee.findOne(Xn,t.delegateTarget.parentNode),o=Lr.getOrCreateInstance(s);if(n){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}V.on(document,W_,Xn,Lr.dataApiKeydownHandler);V.on(document,W_,il,Lr.dataApiKeydownHandler);V.on(document,H_,Lr.clearMenus);V.on(document,AD,Lr.clearMenus);V.on(document,H_,Xn,function(e){e.preventDefault(),Lr.getOrCreateInstance(this).toggle()});hr(Lr);const G_="backdrop",ZD="fade",Qp="show",Zp=`mousedown.bs.${G_}`,JD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},eN={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class z_ extends Ns{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return JD}static get DefaultType(){return eN}static get NAME(){return G_}show(t){if(!this._config.isVisible){Yt(t);return}this._append();const r=this._getElement();this._config.isAnimated&&Ds(r),r.classList.add(Qp),this._emulateAnimation(()=>{Yt(t)})}hide(t){if(!this._config.isVisible){Yt(t);return}this._getElement().classList.remove(Qp),this._emulateAnimation(()=>{this.dispose(),Yt(t)})}dispose(){this._isAppended&&(V.off(this._element,Zp),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(ZD),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Tn(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),V.on(t,Zp,()=>{Yt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){O_(t,this._getElement(),this._config.isAnimated)}}const tN="focustrap",rN="bs.focustrap",vl=`.${rN}`,nN=`focusin${vl}`,iN=`keydown.tab${vl}`,aN="Tab",sN="forward",Jp="backward",oN={autofocus:!0,trapElement:null},lN={autofocus:"boolean",trapElement:"element"};class U_ extends Ns{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return oN}static get DefaultType(){return lN}static get NAME(){return tN}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),V.off(document,vl),V.on(document,nN,t=>this._handleFocusin(t)),V.on(document,iN,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,V.off(document,vl))}_handleFocusin(t){const{trapElement:r}=this._config;if(t.target===document||t.target===r||r.contains(t.target))return;const a=ee.focusableChildren(r);a.length===0?r.focus():this._lastTabNavDirection===Jp?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key===aN&&(this._lastTabNavDirection=t.shiftKey?Jp:sN)}}const ev=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tv=".sticky-top",Do="padding-right",rv="margin-right";class Cu{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Do,r=>r+t),this._setElementAttributes(ev,Do,r=>r+t),this._setElementAttributes(tv,rv,r=>r-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Do),this._resetElementAttributes(ev,Do),this._resetElementAttributes(tv,rv)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,r,a){const n=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+n)return;this._saveInitialAttribute(o,r);const l=window.getComputedStyle(o).getPropertyValue(r);o.style.setProperty(r,`${a(Number.parseFloat(l))}px`)};this._applyManipulationCallback(t,s)}_saveInitialAttribute(t,r){const a=t.style.getPropertyValue(r);a&&Qr.setDataAttribute(t,r,a)}_resetElementAttributes(t,r){const a=n=>{const s=Qr.getDataAttribute(n,r);if(s===null){n.style.removeProperty(r);return}Qr.removeDataAttribute(n,r),n.style.setProperty(r,s)};this._applyManipulationCallback(t,a)}_applyManipulationCallback(t,r){if(Xr(t)){r(t);return}for(const a of ee.find(t,this._element))r(a)}}const dN="modal",cN="bs.modal",ur=`.${cN}`,uN=".data-api",hN="Escape",fN=`hide${ur}`,pN=`hidePrevented${ur}`,K_=`hidden${ur}`,q_=`show${ur}`,vN=`shown${ur}`,mN=`resize${ur}`,gN=`click.dismiss${ur}`,yN=`mousedown.dismiss${ur}`,_N=`keydown.dismiss${ur}`,bN=`click${ur}${uN}`,nv="modal-open",wN="fade",iv="show",Kd="modal-static",EN=".modal.show",SN=".modal-dialog",kN=".modal-body",xN='[data-bs-toggle="modal"]',TN={backdrop:!0,focus:!0,keyboard:!0},$N={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class li extends Tr{constructor(t,r){super(t,r),this._dialog=ee.findOne(SN,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Cu,this._addEventListeners()}static get Default(){return TN}static get DefaultType(){return $N}static get NAME(){return dN}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||V.trigger(this._element,q_,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(nv),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||V.trigger(this._element,fN).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(iv),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){V.off(window,ur),V.off(this._dialog,ur),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new z_({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new U_({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=ee.findOne(kN,this._dialog);r&&(r.scrollTop=0),Ds(this._element),this._element.classList.add(iv);const a=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,V.trigger(this._element,vN,{relatedTarget:t})};this._queueCallback(a,this._dialog,this._isAnimated())}_addEventListeners(){V.on(this._element,_N,t=>{if(t.key===hN){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),V.on(window,mN,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),V.on(this._element,yN,t=>{V.one(this._element,gN,r=>{if(!(this._element!==t.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(nv),this._resetAdjustments(),this._scrollBar.reset(),V.trigger(this._element,K_)})}_isAnimated(){return this._element.classList.contains(wN)}_triggerBackdropTransition(){if(V.trigger(this._element,pN).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,a=this._element.style.overflowY;a==="hidden"||this._element.classList.contains(Kd)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(Kd),this._queueCallback(()=>{this._element.classList.remove(Kd),this._queueCallback(()=>{this._element.style.overflowY=a},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),a=r>0;if(a&&!t){const n=cr()?"paddingLeft":"paddingRight";this._element.style[n]=`${r}px`}if(!a&&t){const n=cr()?"paddingRight":"paddingLeft";this._element.style[n]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,r){return this.each(function(){const a=li.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof a[t]>"u")throw new TypeError(`No method named "${t}"`);a[t](r)}})}}V.on(document,bN,xN,function(e){const t=ee.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),V.one(t,q_,n=>{n.defaultPrevented||V.one(t,K_,()=>{Sa(this)&&this.focus()})});const r=ee.findOne(EN);r&&li.getInstance(r).hide(),li.getOrCreateInstance(t).toggle(this)});Hl(li);hr(li);const DN="offcanvas",NN="bs.offcanvas",ln=`.${NN}`,X_=".data-api",CN=`load${ln}${X_}`,ON="Escape",av="show",sv="showing",ov="hiding",AN="offcanvas-backdrop",Q_=".offcanvas.show",IN=`show${ln}`,PN=`shown${ln}`,MN=`hide${ln}`,lv=`hidePrevented${ln}`,Z_=`hidden${ln}`,RN=`resize${ln}`,LN=`click${ln}${X_}`,VN=`keydown.dismiss${ln}`,FN='[data-bs-toggle="offcanvas"]',YN={backdrop:!0,keyboard:!0,scroll:!1},jN={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Dn extends Tr{constructor(t,r){super(t,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return YN}static get DefaultType(){return jN}static get NAME(){return DN}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||V.trigger(this._element,IN,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Cu().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(sv);const a=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(av),this._element.classList.remove(sv),V.trigger(this._element,PN,{relatedTarget:t})};this._queueCallback(a,this._element,!0)}hide(){if(!this._isShown||V.trigger(this._element,MN).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ov),this._backdrop.hide();const r=()=>{this._element.classList.remove(av,ov),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Cu().reset(),V.trigger(this._element,Z_)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){V.trigger(this._element,lv);return}this.hide()},r=!!this._config.backdrop;return new z_({className:AN,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?t:null})}_initializeFocusTrap(){return new U_({trapElement:this._element})}_addEventListeners(){V.on(this._element,VN,t=>{if(t.key===ON){if(this._config.keyboard){this.hide();return}V.trigger(this._element,lv)}})}static jQueryInterface(t){return this.each(function(){const r=Dn.getOrCreateInstance(this,t);if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t](this)}})}}V.on(document,LN,FN,function(e){const t=ee.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),$n(this))return;V.one(t,Z_,()=>{Sa(this)&&this.focus()});const r=ee.findOne(Q_);r&&r!==t&&Dn.getInstance(r).hide(),Dn.getOrCreateInstance(t).toggle(this)});V.on(window,CN,()=>{for(const e of ee.find(Q_))Dn.getOrCreateInstance(e).show()});V.on(window,RN,()=>{for(const e of ee.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Dn.getOrCreateInstance(e).hide()});Hl(Dn);hr(Dn);const BN=/^aria-[\w-]*$/i,J_={"*":["class","dir","id","lang","role",BN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},HN=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),WN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,GN=(e,t)=>{const r=e.nodeName.toLowerCase();return t.includes(r)?HN.has(r)?!!WN.test(e.nodeValue):!0:t.filter(a=>a instanceof RegExp).some(a=>a.test(r))};function zN(e,t,r){if(!e.length)return e;if(r&&typeof r=="function")return r(e);const n=new window.DOMParser().parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const o of s){const l=o.nodeName.toLowerCase();if(!Object.keys(t).includes(l)){o.remove();continue}const d=[].concat(...o.attributes),c=[].concat(t["*"]||[],t[l]||[]);for(const f of d)GN(f,c)||o.removeAttribute(f.nodeName)}return n.body.innerHTML}const UN="TemplateFactory",KN={allowList:J_,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},qN={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},XN={entry:"(string|element|function|null)",selector:"(string|element)"};class QN extends Ns{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return KN}static get DefaultType(){return qN}static get NAME(){return UN}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[n,s]of Object.entries(this._config.content))this._setContent(t,s,n);const r=t.children[0],a=this._resolvePossibleFunction(this._config.extraClass);return a&&r.classList.add(...a.split(" ")),r}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[r,a]of Object.entries(t))super._typeCheckConfig({selector:r,entry:a},XN)}_setContent(t,r,a){const n=ee.findOne(a,t);if(n){if(r=this._resolvePossibleFunction(r),!r){n.remove();return}if(Xr(r)){this._putElementInTemplate(Tn(r),n);return}if(this._config.html){n.innerHTML=this._maybeSanitize(r);return}n.textContent=r}}_maybeSanitize(t){return this._config.sanitize?zN(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Yt(t,[this])}_putElementInTemplate(t,r){if(this._config.html){r.innerHTML="",r.append(t);return}r.textContent=t.textContent}}const ZN="tooltip",JN=new Set(["sanitize","allowList","sanitizeFn"]),qd="fade",eC="modal",No="show",tC=".tooltip-inner",dv=`.${eC}`,cv="hide.bs.modal",Qa="hover",Xd="focus",rC="click",nC="manual",iC="hide",aC="hidden",sC="show",oC="shown",lC="inserted",dC="click",cC="focusin",uC="focusout",hC="mouseenter",fC="mouseleave",pC={AUTO:"auto",TOP:"top",RIGHT:cr()?"left":"right",BOTTOM:"bottom",LEFT:cr()?"right":"left"},vC={allowList:J_,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},mC={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class xa extends Tr{constructor(t,r){if(typeof T_>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return vC}static get DefaultType(){return mC}static get NAME(){return ZN}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),V.off(this._element.closest(dv),cv,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=V.trigger(this._element,this.constructor.eventName(sC)),a=(N_(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!a)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),V.trigger(this._element,this.constructor.eventName(lC))),this._popper=this._createPopper(n),n.classList.add(No),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))V.on(l,"mouseover",fl);const o=()=>{V.trigger(this._element,this.constructor.eventName(oC)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||V.trigger(this._element,this.constructor.eventName(iC)).defaultPrevented)return;if(this._getTipElement().classList.remove(No),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))V.off(n,"mouseover",fl);this._activeTrigger[rC]=!1,this._activeTrigger[Xd]=!1,this._activeTrigger[Qa]=!1,this._isHovered=null;const a=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),V.trigger(this._element,this.constructor.eventName(aC)))};this._queueCallback(a,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const r=this._getTemplateFactory(t).toHtml();if(!r)return null;r.classList.remove(qd,No),r.classList.add(`bs-${this.constructor.NAME}-auto`);const a=r$(this.constructor.NAME).toString();return r.setAttribute("id",a),this._isAnimated()&&r.classList.add(qd),r}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new QN({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[tC]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(qd)}_isShown(){return this.tip&&this.tip.classList.contains(No)}_createPopper(t){const r=Yt(this._config.placement,[this,t,this._element]),a=pC[r.toUpperCase()];return Mh(this._element,t,this._getPopperConfig(a))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(r=>Number.parseInt(r,10)):typeof t=="function"?r=>t(r,this._element):t}_resolvePossibleFunction(t){return Yt(t,[this._element])}_getPopperConfig(t){const r={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:a=>{this._getTipElement().setAttribute("data-popper-placement",a.state.placement)}}]};return{...r,...Yt(this._config.popperConfig,[r])}}_setListeners(){const t=this._config.trigger.split(" ");for(const r of t)if(r==="click")V.on(this._element,this.constructor.eventName(dC),this._config.selector,a=>{this._initializeOnDelegatedTarget(a).toggle()});else if(r!==nC){const a=r===Qa?this.constructor.eventName(hC):this.constructor.eventName(cC),n=r===Qa?this.constructor.eventName(fC):this.constructor.eventName(uC);V.on(this._element,a,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?Xd:Qa]=!0,o._enter()}),V.on(this._element,n,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?Xd:Qa]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},V.on(this._element.closest(dv),cv,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,r){clearTimeout(this._timeout),this._timeout=setTimeout(t,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const r=Qr.getDataAttributes(this._element);for(const a of Object.keys(r))JN.has(a)&&delete r[a];return t={...r,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:Tn(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[r,a]of Object.entries(this._config))this.constructor.Default[r]!==a&&(t[r]=a);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const r=xa.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}hr(xa);const gC="popover",yC=".popover-header",_C=".popover-body",bC={...xa.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},wC={...xa.DefaultType,content:"(null|string|element|function)"};class Fh extends xa{static get Default(){return bC}static get DefaultType(){return wC}static get NAME(){return gC}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[yC]:this._getTitle(),[_C]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const r=Fh.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}hr(Fh);const EC="scrollspy",SC="bs.scrollspy",Yh=`.${SC}`,kC=".data-api",xC=`activate${Yh}`,uv=`click${Yh}`,TC=`load${Yh}${kC}`,$C="dropdown-item",Ri="active",DC='[data-bs-spy="scroll"]',Qd="[href]",NC=".nav, .list-group",hv=".nav-link",CC=".nav-item",OC=".list-group-item",AC=`${hv}, ${CC} > ${hv}, ${OC}`,IC=".dropdown",PC=".dropdown-toggle",MC={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},RC={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class zl extends Tr{constructor(t,r){super(t,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return MC}static get DefaultType(){return RC}static get NAME(){return EC}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Tn(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(r=>Number.parseFloat(r))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(V.off(this._config.target,uv),V.on(this._config.target,uv,Qd,t=>{const r=this._observableSections.get(t.target.hash);if(r){t.preventDefault();const a=this._rootElement||window,n=r.offsetTop-this._element.offsetTop;if(a.scrollTo){a.scrollTo({top:n,behavior:"smooth"});return}a.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),t)}_observerCallback(t){const r=o=>this._targetLinks.get(`#${o.target.id}`),a=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(r(o))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(o));continue}const l=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&l){if(a(o),!n)return;continue}!s&&!l&&a(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=ee.find(Qd,this._config.target);for(const r of t){if(!r.hash||$n(r))continue;const a=ee.findOne(decodeURI(r.hash),this._element);Sa(a)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,a))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ri),this._activateParents(t),V.trigger(this._element,xC,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains($C)){ee.findOne(PC,t.closest(IC)).classList.add(Ri);return}for(const r of ee.parents(t,NC))for(const a of ee.prev(r,AC))a.classList.add(Ri)}_clearActiveClass(t){t.classList.remove(Ri);const r=ee.find(`${Qd}.${Ri}`,t);for(const a of r)a.classList.remove(Ri)}static jQueryInterface(t){return this.each(function(){const r=zl.getOrCreateInstance(this,t);if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t]()}})}}V.on(window,TC,()=>{for(const e of ee.find(DC))zl.getOrCreateInstance(e)});hr(zl);const LC="tab",VC="bs.tab",gi=`.${VC}`,FC=`hide${gi}`,YC=`hidden${gi}`,jC=`show${gi}`,BC=`shown${gi}`,HC=`click${gi}`,WC=`keydown${gi}`,GC=`load${gi}`,zC="ArrowLeft",fv="ArrowRight",UC="ArrowUp",pv="ArrowDown",Zd="Home",vv="End",Qn="active",mv="fade",Jd="show",KC="dropdown",eb=".dropdown-toggle",qC=".dropdown-menu",ec=`:not(${eb})`,XC='.list-group, .nav, [role="tablist"]',QC=".nav-item, .list-group-item",ZC=`.nav-link${ec}, .list-group-item${ec}, [role="tab"]${ec}`,tb='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',tc=`${ZC}, ${tb}`,JC=`.${Qn}[data-bs-toggle="tab"], .${Qn}[data-bs-toggle="pill"], .${Qn}[data-bs-toggle="list"]`;class ha extends Tr{constructor(t){super(t),this._parent=this._element.closest(XC),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),V.on(this._element,WC,r=>this._keydown(r)))}static get NAME(){return LC}show(){const t=this._element;if(this._elemIsActive(t))return;const r=this._getActiveElem(),a=r?V.trigger(r,FC,{relatedTarget:t}):null;V.trigger(t,jC,{relatedTarget:r}).defaultPrevented||a&&a.defaultPrevented||(this._deactivate(r,t),this._activate(t,r))}_activate(t,r){if(!t)return;t.classList.add(Qn),this._activate(ee.getElementFromSelector(t));const a=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Jd);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),V.trigger(t,BC,{relatedTarget:r})};this._queueCallback(a,t,t.classList.contains(mv))}_deactivate(t,r){if(!t)return;t.classList.remove(Qn),t.blur(),this._deactivate(ee.getElementFromSelector(t));const a=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Jd);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),V.trigger(t,YC,{relatedTarget:r})};this._queueCallback(a,t,t.classList.contains(mv))}_keydown(t){if(![zC,fv,UC,pv,Zd,vv].includes(t.key))return;t.stopPropagation(),t.preventDefault();const r=this._getChildren().filter(n=>!$n(n));let a;if([Zd,vv].includes(t.key))a=r[t.key===Zd?0:r.length-1];else{const n=[fv,pv].includes(t.key);a=Rh(r,t.target,n,!0)}a&&(a.focus({preventScroll:!0}),ha.getOrCreateInstance(a).show())}_getChildren(){return ee.find(tc,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,r){this._setAttributeIfNotExists(t,"role","tablist");for(const a of r)this._setInitialAttributesOnChild(a)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const r=this._elemIsActive(t),a=this._getOuterElement(t);t.setAttribute("aria-selected",r),a!==t&&this._setAttributeIfNotExists(a,"role","presentation"),r||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const r=ee.getElementFromSelector(t);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,r){const a=this._getOuterElement(t);if(!a.classList.contains(KC))return;const n=(s,o)=>{const l=ee.findOne(s,a);l&&l.classList.toggle(o,r)};n(eb,Qn),n(qC,Jd),a.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(t,r,a){t.hasAttribute(r)||t.setAttribute(r,a)}_elemIsActive(t){return t.classList.contains(Qn)}_getInnerElement(t){return t.matches(tc)?t:ee.findOne(tc,t)}_getOuterElement(t){return t.closest(QC)||t}static jQueryInterface(t){return this.each(function(){const r=ha.getOrCreateInstance(this);if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t]()}})}}V.on(document,HC,tb,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!$n(this)&&ha.getOrCreateInstance(this).show()});V.on(window,GC,()=>{for(const e of ee.find(JC))ha.getOrCreateInstance(e)});hr(ha);const eO="toast",tO="bs.toast",In=`.${tO}`,rO=`mouseover${In}`,nO=`mouseout${In}`,iO=`focusin${In}`,aO=`focusout${In}`,sO=`hide${In}`,oO=`hidden${In}`,lO=`show${In}`,dO=`shown${In}`,cO="fade",gv="hide",Co="show",Oo="showing",uO={animation:"boolean",autohide:"boolean",delay:"number"},hO={animation:!0,autohide:!0,delay:5e3};class Ul extends Tr{constructor(t,r){super(t,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return hO}static get DefaultType(){return uO}static get NAME(){return eO}show(){if(V.trigger(this._element,lO).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(cO);const r=()=>{this._element.classList.remove(Oo),V.trigger(this._element,dO),this._maybeScheduleHide()};this._element.classList.remove(gv),Ds(this._element),this._element.classList.add(Co,Oo),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||V.trigger(this._element,sO).defaultPrevented)return;const r=()=>{this._element.classList.add(gv),this._element.classList.remove(Oo,Co),V.trigger(this._element,oO)};this._element.classList.add(Oo),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Co),super.dispose()}isShown(){return this._element.classList.contains(Co)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,r){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const a=t.relatedTarget;this._element===a||this._element.contains(a)||this._maybeScheduleHide()}_setListeners(){V.on(this._element,rO,t=>this._onInteraction(t,!0)),V.on(this._element,nO,t=>this._onInteraction(t,!1)),V.on(this._element,iO,t=>this._onInteraction(t,!0)),V.on(this._element,aO,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const r=Ul.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](this)}})}}Hl(Ul);hr(Ul);/**
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("vue");/**
|
6
2
|
* vis-timeline and vis-graph2d
|
7
3
|
* https://visjs.github.io/vis-timeline/
|
8
4
|
*
|
@@ -26,44 +22,44 @@
|
|
26
22
|
* http://opensource.org/licenses/MIT
|
27
23
|
*
|
28
24
|
* vis.js may be distributed under either license.
|
29
|
-
*/var
|
30
|
-
[`+$+"] ";for(
|
25
|
+
*/var jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ul={exports:{}},_h;function or(){return _h||(_h=1,function(e,r){(function(t,a){e.exports=a()})(jt,function(){var t;function a(){return t.apply(null,arguments)}function n(c){t=c}function s(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function o(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,v){return Object.prototype.hasOwnProperty.call(c,v)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var v;for(v in c)if(l(c,v))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function m(c,v){var g=[],_,k=c.length;for(_=0;_<k;++_)g.push(v(c[_],_));return g}function y(c,v){for(var g in v)l(v,g)&&(c[g]=v[g]);return l(v,"toString")&&(c.toString=v.toString),l(v,"valueOf")&&(c.valueOf=v.valueOf),c}function b(c,v,g,_){return Zc(c,v,g,_,!0).utc()}function E(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function w(c){return c._pf==null&&(c._pf=E()),c._pf}var S;Array.prototype.some?S=Array.prototype.some:S=function(c){var v=Object(this),g=v.length>>>0,_;for(_=0;_<g;_++)if(_ in v&&c.call(this,v[_],_,v))return!0;return!1};function D(c){if(c._isValid==null){var v=w(c),g=S.call(v.parsedDateParts,function(k){return k!=null}),_=!isNaN(c._d.getTime())&&v.overflow<0&&!v.empty&&!v.invalidEra&&!v.invalidMonth&&!v.invalidWeekday&&!v.weekdayMismatch&&!v.nullInput&&!v.invalidFormat&&!v.userInvalidated&&(!v.meridiem||v.meridiem&&g);if(c._strict&&(_=_&&v.charsLeftOver===0&&v.unusedTokens.length===0&&v.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _}return c._isValid}function T(c){var v=b(NaN);return c!=null?y(w(v),c):w(v).userInvalidated=!0,v}var P=a.momentProperties=[],F=!1;function A(c,v){var g,_,k,$=P.length;if(u(v._isAMomentObject)||(c._isAMomentObject=v._isAMomentObject),u(v._i)||(c._i=v._i),u(v._f)||(c._f=v._f),u(v._l)||(c._l=v._l),u(v._strict)||(c._strict=v._strict),u(v._tzm)||(c._tzm=v._tzm),u(v._isUTC)||(c._isUTC=v._isUTC),u(v._offset)||(c._offset=v._offset),u(v._pf)||(c._pf=w(v)),u(v._locale)||(c._locale=v._locale),$>0)for(g=0;g<$;g++)_=P[g],k=v[_],u(k)||(c[_]=k);return c}function V(c){A(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),F===!1&&(F=!0,a.updateOffset(this),F=!1)}function N(c){return c instanceof V||c!=null&&c._isAMomentObject!=null}function I(c){a.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+c)}function M(c,v){var g=!0;return y(function(){if(a.deprecationHandler!=null&&a.deprecationHandler(null,c),g){var _=[],k,$,C,Q=arguments.length;for($=0;$<Q;$++){if(k="",typeof arguments[$]=="object"){k+=`
|
26
|
+
[`+$+"] ";for(C in arguments[0])l(arguments[0],C)&&(k+=C+": "+arguments[0][C]+", ");k=k.slice(0,-2)}else k=arguments[$];_.push(k)}I(c+`
|
31
27
|
Arguments: `+Array.prototype.slice.call(_).join("")+`
|
32
|
-
`+new Error().stack),y=!1}return p.apply(this,arguments)},p)}var M={};function H(u,p){a.deprecationHandler!=null&&a.deprecationHandler(u,p),M[u]||(j(p),M[u]=!0)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;function z(u){return typeof Function<"u"&&u instanceof Function||Object.prototype.toString.call(u)==="[object Function]"}function se(u){var p,y;for(y in u)l(u,y)&&(p=u[y],z(p)?this[y]=p:this["_"+y]=p);this._config=u,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _e(u,p){var y=g({},u),_;for(_ in p)l(p,_)&&(o(u[_])&&o(p[_])?(y[_]={},g(y[_],u[_]),g(y[_],p[_])):p[_]!=null?y[_]=p[_]:delete y[_]);for(_ in u)l(u,_)&&!l(p,_)&&o(u[_])&&(y[_]=g({},y[_]));return y}function be(u){u!=null&&this.set(u)}var he;Object.keys?he=Object.keys:he=function(u){var p,y=[];for(p in u)l(u,p)&&y.push(p);return y};var rt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ut(u,p,y){var _=this._calendar[u]||this._calendar.sameElse;return z(_)?_.call(p,y):_}function Ie(u,p,y){var _=""+Math.abs(u),E=p-_.length,$=u>=0;return($?y?"+":"":"-")+Math.pow(10,Math.max(0,E)).toString().substr(1)+_}var Mt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ht=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Cr={},vt={};function q(u,p,y,_){var E=_;typeof _=="string"&&(E=function(){return this[_]()}),u&&(vt[u]=E),p&&(vt[p[0]]=function(){return Ie(E.apply(this,arguments),p[1],p[2])}),y&&(vt[y]=function(){return this.localeData().ordinal(E.apply(this,arguments),u)})}function vr(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Or(u){var p=u.match(Mt),y,_;for(y=0,_=p.length;y<_;y++)vt[p[y]]?p[y]=vt[p[y]]:p[y]=vr(p[y]);return function(E){var $="",I;for(I=0;I<_;I++)$+=z(p[I])?p[I].call(E,u):p[I];return $}}function mt(u,p){return u.isValid()?(p=W(p,u.localeData()),Cr[p]=Cr[p]||Or(p),Cr[p](u)):u.localeData().invalidDate()}function W(u,p){var y=5;function _(E){return p.longDateFormat(E)||E}for(ht.lastIndex=0;y>=0&&ht.test(u);)u=u.replace(ht,_),ht.lastIndex=0,y-=1;return u}var F={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function B(u){var p=this._longDateFormat[u],y=this._longDateFormat[u.toUpperCase()];return p||!y?p:(this._longDateFormat[u]=y.match(Mt).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[u])}var Q="Invalid date";function ie(){return this._invalidDate}var re="%d",Re=/\d{1,2}/;function Je(u){return this._ordinal.replace("%d",u)}var nt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function mr(u,p,y,_){var E=this._relativeTime[y];return z(E)?E(u,p,y,_):E.replace(/%d/i,u)}function ar(u,p){var y=this._relativeTime[u>0?"future":"past"];return z(y)?y(p):y.replace(/%s/i,p)}var Ke={};function qe(u,p){var y=u.toLowerCase();Ke[y]=Ke[y+"s"]=Ke[p]=u}function wt(u){return typeof u=="string"?Ke[u]||Ke[u.toLowerCase()]:void 0}function Ti(u){var p={},y,_;for(_ in u)l(u,_)&&(y=wt(_),y&&(p[y]=u[_]));return p}var $i={};function it(u,p){$i[u]=p}function io(u){var p=[],y;for(y in u)l(u,y)&&p.push({unit:y,priority:$i[y]});return p.sort(function(_,E){return _.priority-E.priority}),p}function jn(u){return u%4===0&&u%100!==0||u%400===0}function Et(u){return u<0?Math.ceil(u)||0:Math.floor(u)}function ue(u){var p=+u,y=0;return p!==0&&isFinite(p)&&(y=Et(p)),y}function Di(u,p){return function(y){return y!=null?(Kf(this,u,y),a.updateOffset(this,p),this):ao(this,u)}}function ao(u,p){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+p]():NaN}function Kf(u,p,y){u.isValid()&&!isNaN(y)&&(p==="FullYear"&&jn(u.year())&&u.month()===1&&u.date()===29?(y=ue(y),u._d["set"+(u._isUTC?"UTC":"")+p](y,u.month(),fo(y,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+p](y))}function O1(u){return u=wt(u),z(this[u])?this[u]():this}function A1(u,p){if(typeof u=="object"){u=Ti(u);var y=io(u),_,E=y.length;for(_=0;_<E;_++)this[y[_].unit](u[y[_].unit])}else if(u=wt(u),z(this[u]))return this[u](p);return this}var qf=/\d/,zt=/\d\d/,Xf=/\d{3}/,wd=/\d{4}/,so=/[+-]?\d{6}/,Le=/\d\d?/,Qf=/\d\d\d\d?/,Zf=/\d\d\d\d\d\d?/,oo=/\d{1,3}/,Ed=/\d{1,4}/,lo=/[+-]?\d{1,6}/,Ni=/\d+/,co=/[+-]?\d+/,I1=/Z|[+-]\d\d:?\d\d/gi,uo=/Z|[+-]\d\d(?::?\d\d)?/gi,P1=/[+-]?\d+(\.\d{1,3})?/,Ba=/[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,ho;ho={};function U(u,p,y){ho[u]=z(p)?p:function(_,E){return _&&y?y:p}}function M1(u,p){return l(ho,u)?ho[u](p._strict,p._locale):new RegExp(R1(u))}function R1(u){return Ut(u.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(p,y,_,E,$){return y||_||E||$}))}function Ut(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Sd={};function Te(u,p){var y,_=p,E;for(typeof u=="string"&&(u=[u]),f(p)&&(_=function($,I){I[p]=ue($)}),E=u.length,y=0;y<E;y++)Sd[u[y]]=_}function Ha(u,p){Te(u,function(y,_,E,$){E._w=E._w||{},p(y,E._w,E,$)})}function L1(u,p,y){p!=null&&l(Sd,u)&&Sd[u](p,y._a,y,u)}var gt=0,Br=1,Ar=2,at=3,gr=4,Hr=5,Bn=6,V1=7,F1=8;function Y1(u,p){return(u%p+p)%p}var Xe;Array.prototype.indexOf?Xe=Array.prototype.indexOf:Xe=function(u){var p;for(p=0;p<this.length;++p)if(this[p]===u)return p;return-1};function fo(u,p){if(isNaN(u)||isNaN(p))return NaN;var y=Y1(p,12);return u+=(p-y)/12,y===1?jn(u)?29:28:31-y%7%2}q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(u){return this.localeData().monthsShort(this,u)}),q("MMMM",0,0,function(u){return this.localeData().months(this,u)}),qe("month","M"),it("month",8),U("M",Le),U("MM",Le,zt),U("MMM",function(u,p){return p.monthsShortRegex(u)}),U("MMMM",function(u,p){return p.monthsRegex(u)}),Te(["M","MM"],function(u,p){p[Br]=ue(u)-1}),Te(["MMM","MMMM"],function(u,p,y,_){var E=y._locale.monthsParse(u,_,y._strict);E!=null?p[Br]=E:w(y).invalidMonth=u});var j1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jf="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ep=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,B1=Ba,H1=Ba;function W1(u,p){return u?s(this._months)?this._months[u.month()]:this._months[(this._months.isFormat||ep).test(p)?"format":"standalone"][u.month()]:s(this._months)?this._months:this._months.standalone}function G1(u,p){return u?s(this._monthsShort)?this._monthsShort[u.month()]:this._monthsShort[ep.test(p)?"format":"standalone"][u.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function z1(u,p,y){var _,E,$,I=u.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)$=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort($,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months($,"").toLocaleLowerCase();return y?p==="MMM"?(E=Xe.call(this._shortMonthsParse,I),E!==-1?E:null):(E=Xe.call(this._longMonthsParse,I),E!==-1?E:null):p==="MMM"?(E=Xe.call(this._shortMonthsParse,I),E!==-1?E:(E=Xe.call(this._longMonthsParse,I),E!==-1?E:null)):(E=Xe.call(this._longMonthsParse,I),E!==-1?E:(E=Xe.call(this._shortMonthsParse,I),E!==-1?E:null))}function U1(u,p,y){var _,E,$;if(this._monthsParseExact)return z1.call(this,u,p,y);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(E=b([2e3,_]),y&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(E,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(E,"").replace(".","")+"$","i")),!y&&!this._monthsParse[_]&&($="^"+this.months(E,"")+"|^"+this.monthsShort(E,""),this._monthsParse[_]=new RegExp($.replace(".",""),"i")),y&&p==="MMMM"&&this._longMonthsParse[_].test(u))return _;if(y&&p==="MMM"&&this._shortMonthsParse[_].test(u))return _;if(!y&&this._monthsParse[_].test(u))return _}}function tp(u,p){var y;if(!u.isValid())return u;if(typeof p=="string"){if(/^\d+$/.test(p))p=ue(p);else if(p=u.localeData().monthsParse(p),!f(p))return u}return y=Math.min(u.date(),fo(u.year(),p)),u._d["set"+(u._isUTC?"UTC":"")+"Month"](p,y),u}function rp(u){return u!=null?(tp(this,u),a.updateOffset(this,!0),this):ao(this,"Month")}function K1(){return fo(this.year(),this.month())}function q1(u){return this._monthsParseExact?(l(this,"_monthsRegex")||np.call(this),u?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=B1),this._monthsShortStrictRegex&&u?this._monthsShortStrictRegex:this._monthsShortRegex)}function X1(u){return this._monthsParseExact?(l(this,"_monthsRegex")||np.call(this),u?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=H1),this._monthsStrictRegex&&u?this._monthsStrictRegex:this._monthsRegex)}function np(){function u(I,J){return J.length-I.length}var p=[],y=[],_=[],E,$;for(E=0;E<12;E++)$=b([2e3,E]),p.push(this.monthsShort($,"")),y.push(this.months($,"")),_.push(this.months($,"")),_.push(this.monthsShort($,""));for(p.sort(u),y.sort(u),_.sort(u),E=0;E<12;E++)p[E]=Ut(p[E]),y[E]=Ut(y[E]);for(E=0;E<24;E++)_[E]=Ut(_[E]);this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}q("Y",0,0,function(){var u=this.year();return u<=9999?Ie(u,4):"+"+u}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),qe("year","y"),it("year",1),U("Y",co),U("YY",Le,zt),U("YYYY",Ed,wd),U("YYYYY",lo,so),U("YYYYYY",lo,so),Te(["YYYYY","YYYYYY"],gt),Te("YYYY",function(u,p){p[gt]=u.length===2?a.parseTwoDigitYear(u):ue(u)}),Te("YY",function(u,p){p[gt]=a.parseTwoDigitYear(u)}),Te("Y",function(u,p){p[gt]=parseInt(u,10)});function Wa(u){return jn(u)?366:365}a.parseTwoDigitYear=function(u){return ue(u)+(ue(u)>68?1900:2e3)};var ip=Di("FullYear",!0);function Q1(){return jn(this.year())}function Z1(u,p,y,_,E,$,I){var J;return u<100&&u>=0?(J=new Date(u+400,p,y,_,E,$,I),isFinite(J.getFullYear())&&J.setFullYear(u)):J=new Date(u,p,y,_,E,$,I),J}function Ga(u){var p,y;return u<100&&u>=0?(y=Array.prototype.slice.call(arguments),y[0]=u+400,p=new Date(Date.UTC.apply(null,y)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(u)):p=new Date(Date.UTC.apply(null,arguments)),p}function po(u,p,y){var _=7+p-y,E=(7+Ga(u,0,_).getUTCDay()-p)%7;return-E+_-1}function ap(u,p,y,_,E){var $=(7+y-_)%7,I=po(u,_,E),J=1+7*(p-1)+$+I,ce,$e;return J<=0?(ce=u-1,$e=Wa(ce)+J):J>Wa(u)?(ce=u+1,$e=J-Wa(u)):(ce=u,$e=J),{year:ce,dayOfYear:$e}}function za(u,p,y){var _=po(u.year(),p,y),E=Math.floor((u.dayOfYear()-_-1)/7)+1,$,I;return E<1?(I=u.year()-1,$=E+Wr(I,p,y)):E>Wr(u.year(),p,y)?($=E-Wr(u.year(),p,y),I=u.year()+1):(I=u.year(),$=E),{week:$,year:I}}function Wr(u,p,y){var _=po(u,p,y),E=po(u+1,p,y);return(Wa(u)-_+E)/7}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),qe("week","w"),qe("isoWeek","W"),it("week",5),it("isoWeek",5),U("w",Le),U("ww",Le,zt),U("W",Le),U("WW",Le,zt),Ha(["w","ww","W","WW"],function(u,p,y,_){p[_.substr(0,1)]=ue(u)});function J1(u){return za(u,this._week.dow,this._week.doy).week}var eS={dow:0,doy:6};function tS(){return this._week.dow}function rS(){return this._week.doy}function nS(u){var p=this.localeData().week(this);return u==null?p:this.add((u-p)*7,"d")}function iS(u){var p=za(this,1,4).week;return u==null?p:this.add((u-p)*7,"d")}q("d",0,"do","day"),q("dd",0,0,function(u){return this.localeData().weekdaysMin(this,u)}),q("ddd",0,0,function(u){return this.localeData().weekdaysShort(this,u)}),q("dddd",0,0,function(u){return this.localeData().weekdays(this,u)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),qe("day","d"),qe("weekday","e"),qe("isoWeekday","E"),it("day",11),it("weekday",11),it("isoWeekday",11),U("d",Le),U("e",Le),U("E",Le),U("dd",function(u,p){return p.weekdaysMinRegex(u)}),U("ddd",function(u,p){return p.weekdaysShortRegex(u)}),U("dddd",function(u,p){return p.weekdaysRegex(u)}),Ha(["dd","ddd","dddd"],function(u,p,y,_){var E=y._locale.weekdaysParse(u,_,y._strict);E!=null?p.d=E:w(y).invalidWeekday=u}),Ha(["d","e","E"],function(u,p,y,_){p[_]=ue(u)});function aS(u,p){return typeof u!="string"?u:isNaN(u)?(u=p.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function sS(u,p){return typeof u=="string"?p.weekdaysParse(u)%7||7:isNaN(u)?null:u}function kd(u,p){return u.slice(p,7).concat(u.slice(0,p))}var oS="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),lS="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dS=Ba,cS=Ba,uS=Ba;function hS(u,p){var y=s(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return u===!0?kd(y,this._week.dow):u?y[u.day()]:y}function fS(u){return u===!0?kd(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function pS(u){return u===!0?kd(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function vS(u,p,y){var _,E,$,I=u.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)$=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays($,"").toLocaleLowerCase();return y?p==="dddd"?(E=Xe.call(this._weekdaysParse,I),E!==-1?E:null):p==="ddd"?(E=Xe.call(this._shortWeekdaysParse,I),E!==-1?E:null):(E=Xe.call(this._minWeekdaysParse,I),E!==-1?E:null):p==="dddd"?(E=Xe.call(this._weekdaysParse,I),E!==-1||(E=Xe.call(this._shortWeekdaysParse,I),E!==-1)?E:(E=Xe.call(this._minWeekdaysParse,I),E!==-1?E:null)):p==="ddd"?(E=Xe.call(this._shortWeekdaysParse,I),E!==-1||(E=Xe.call(this._weekdaysParse,I),E!==-1)?E:(E=Xe.call(this._minWeekdaysParse,I),E!==-1?E:null)):(E=Xe.call(this._minWeekdaysParse,I),E!==-1||(E=Xe.call(this._weekdaysParse,I),E!==-1)?E:(E=Xe.call(this._shortWeekdaysParse,I),E!==-1?E:null))}function mS(u,p,y){var _,E,$;if(this._weekdaysParseExact)return vS.call(this,u,p,y);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(E=b([2e3,1]).day(_),y&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(E,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(E,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(E,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||($="^"+this.weekdays(E,"")+"|^"+this.weekdaysShort(E,"")+"|^"+this.weekdaysMin(E,""),this._weekdaysParse[_]=new RegExp($.replace(".",""),"i")),y&&p==="dddd"&&this._fullWeekdaysParse[_].test(u))return _;if(y&&p==="ddd"&&this._shortWeekdaysParse[_].test(u))return _;if(y&&p==="dd"&&this._minWeekdaysParse[_].test(u))return _;if(!y&&this._weekdaysParse[_].test(u))return _}}function gS(u){if(!this.isValid())return u!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=aS(u,this.localeData()),this.add(u-p,"d")):p}function yS(u){if(!this.isValid())return u!=null?this:NaN;var p=(this.day()+7-this.localeData()._week.dow)%7;return u==null?p:this.add(u-p,"d")}function _S(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var p=sS(u,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function bS(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||xd.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=dS),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function wS(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||xd.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cS),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ES(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||xd.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=uS),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function xd(){function u(St,qr){return qr.length-St.length}var p=[],y=[],_=[],E=[],$,I,J,ce,$e;for($=0;$<7;$++)I=b([2e3,1]).day($),J=Ut(this.weekdaysMin(I,"")),ce=Ut(this.weekdaysShort(I,"")),$e=Ut(this.weekdays(I,"")),p.push(J),y.push(ce),_.push($e),E.push(J),E.push(ce),E.push($e);p.sort(u),y.sort(u),_.sort(u),E.sort(u),this._weekdaysRegex=new RegExp("^("+E.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+p.join("|")+")","i")}function Td(){return this.hours()%12||12}function SS(){return this.hours()||24}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Td),q("k",["kk",2],0,SS),q("hmm",0,0,function(){return""+Td.apply(this)+Ie(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Td.apply(this)+Ie(this.minutes(),2)+Ie(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+Ie(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+Ie(this.minutes(),2)+Ie(this.seconds(),2)});function op(u,p){q(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}op("a",!0),op("A",!1),qe("hour","h"),it("hour",13);function lp(u,p){return p._meridiemParse}U("a",lp),U("A",lp),U("H",Le),U("h",Le),U("k",Le),U("HH",Le,zt),U("hh",Le,zt),U("kk",Le,zt),U("hmm",Qf),U("hmmss",Zf),U("Hmm",Qf),U("Hmmss",Zf),Te(["H","HH"],at),Te(["k","kk"],function(u,p,y){var _=ue(u);p[at]=_===24?0:_}),Te(["a","A"],function(u,p,y){y._isPm=y._locale.isPM(u),y._meridiem=u}),Te(["h","hh"],function(u,p,y){p[at]=ue(u),w(y).bigHour=!0}),Te("hmm",function(u,p,y){var _=u.length-2;p[at]=ue(u.substr(0,_)),p[gr]=ue(u.substr(_)),w(y).bigHour=!0}),Te("hmmss",function(u,p,y){var _=u.length-4,E=u.length-2;p[at]=ue(u.substr(0,_)),p[gr]=ue(u.substr(_,2)),p[Hr]=ue(u.substr(E)),w(y).bigHour=!0}),Te("Hmm",function(u,p,y){var _=u.length-2;p[at]=ue(u.substr(0,_)),p[gr]=ue(u.substr(_))}),Te("Hmmss",function(u,p,y){var _=u.length-4,E=u.length-2;p[at]=ue(u.substr(0,_)),p[gr]=ue(u.substr(_,2)),p[Hr]=ue(u.substr(E))});function kS(u){return(u+"").toLowerCase().charAt(0)==="p"}var xS=/[ap]\.?m?\.?/i,TS=Di("Hours",!0);function $S(u,p,y){return u>11?y?"pm":"PM":y?"am":"AM"}var dp={calendar:rt,longDateFormat:F,invalidDate:Q,ordinal:re,dayOfMonthOrdinalParse:Re,relativeTime:nt,months:j1,monthsShort:Jf,week:eS,weekdays:oS,weekdaysMin:lS,weekdaysShort:sp,meridiemParse:xS},Be={},Ua={},Ka;function DS(u,p){var y,_=Math.min(u.length,p.length);for(y=0;y<_;y+=1)if(u[y]!==p[y])return y;return _}function cp(u){return u&&u.toLowerCase().replace("_","-")}function NS(u){for(var p=0,y,_,E,$;p<u.length;){for($=cp(u[p]).split("-"),y=$.length,_=cp(u[p+1]),_=_?_.split("-"):null;y>0;){if(E=vo($.slice(0,y).join("-")),E)return E;if(_&&_.length>=y&&DS($,_)>=y-1)break;y--}p++}return Ka}function CS(u){return u.match("^[^/\\\\]*$")!=null}function vo(u){var p=null,y;if(Be[u]===void 0&&e&&e.exports&&CS(u))try{p=Ka._abbr,y=Yr,y("./locale/"+u),vn(p)}catch{Be[u]=null}return Be[u]}function vn(u,p){var y;return u&&(c(p)?y=Gr(u):y=$d(u,p),y?Ka=y:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),Ka._abbr}function $d(u,p){if(p!==null){var y,_=dp;if(p.abbr=u,Be[u]!=null)H("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."),_=Be[u]._config;else if(p.parentLocale!=null)if(Be[p.parentLocale]!=null)_=Be[p.parentLocale]._config;else if(y=vo(p.parentLocale),y!=null)_=y._config;else return Ua[p.parentLocale]||(Ua[p.parentLocale]=[]),Ua[p.parentLocale].push({name:u,config:p}),null;return Be[u]=new be(_e(_,p)),Ua[u]&&Ua[u].forEach(function(E){$d(E.name,E.config)}),vn(u),Be[u]}else return delete Be[u],null}function OS(u,p){if(p!=null){var y,_,E=dp;Be[u]!=null&&Be[u].parentLocale!=null?Be[u].set(_e(Be[u]._config,p)):(_=vo(u),_!=null&&(E=_._config),p=_e(E,p),_==null&&(p.abbr=u),y=new be(p),y.parentLocale=Be[u],Be[u]=y),vn(u)}else Be[u]!=null&&(Be[u].parentLocale!=null?(Be[u]=Be[u].parentLocale,u===vn()&&vn(u)):Be[u]!=null&&delete Be[u]);return Be[u]}function Gr(u){var p;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return Ka;if(!s(u)){if(p=vo(u),p)return p;u=[u]}return NS(u)}function AS(){return he(Be)}function Dd(u){var p,y=u._a;return y&&w(u).overflow===-2&&(p=y[Br]<0||y[Br]>11?Br:y[Ar]<1||y[Ar]>fo(y[gt],y[Br])?Ar:y[at]<0||y[at]>24||y[at]===24&&(y[gr]!==0||y[Hr]!==0||y[Bn]!==0)?at:y[gr]<0||y[gr]>59?gr:y[Hr]<0||y[Hr]>59?Hr:y[Bn]<0||y[Bn]>999?Bn:-1,w(u)._overflowDayOfYear&&(p<gt||p>Ar)&&(p=Ar),w(u)._overflowWeeks&&p===-1&&(p=V1),w(u)._overflowWeekday&&p===-1&&(p=F1),w(u).overflow=p),u}var IS=/^\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)?)?$/,PS=/^\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)?)?$/,MS=/Z|[+-]\d\d(?::?\d\d)?/,mo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Nd=[["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/]],RS=/^\/?Date\((-?\d+)/i,LS=/^(?:(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}))$/,VS={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function up(u){var p,y,_=u._i,E=IS.exec(_)||PS.exec(_),$,I,J,ce,$e=mo.length,St=Nd.length;if(E){for(w(u).iso=!0,p=0,y=$e;p<y;p++)if(mo[p][1].exec(E[1])){I=mo[p][0],$=mo[p][2]!==!1;break}if(I==null){u._isValid=!1;return}if(E[3]){for(p=0,y=St;p<y;p++)if(Nd[p][1].exec(E[3])){J=(E[2]||" ")+Nd[p][0];break}if(J==null){u._isValid=!1;return}}if(!$&&J!=null){u._isValid=!1;return}if(E[4])if(MS.exec(E[4]))ce="Z";else{u._isValid=!1;return}u._f=I+(J||"")+(ce||""),Od(u)}else u._isValid=!1}function FS(u,p,y,_,E,$){var I=[YS(u),Jf.indexOf(p),parseInt(y,10),parseInt(_,10),parseInt(E,10)];return $&&I.push(parseInt($,10)),I}function YS(u){var p=parseInt(u,10);return p<=49?2e3+p:p<=999?1900+p:p}function jS(u){return u.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function BS(u,p,y){if(u){var _=sp.indexOf(u),E=new Date(p[0],p[1],p[2]).getDay();if(_!==E)return w(y).weekdayMismatch=!0,y._isValid=!1,!1}return!0}function HS(u,p,y){if(u)return VS[u];if(p)return 0;var _=parseInt(y,10),E=_%100,$=(_-E)/100;return $*60+E}function hp(u){var p=LS.exec(jS(u._i)),y;if(p){if(y=FS(p[4],p[3],p[2],p[5],p[6],p[7]),!BS(p[1],y,u))return;u._a=y,u._tzm=HS(p[8],p[9],p[10]),u._d=Ga.apply(null,u._a),u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),w(u).rfc2822=!0}else u._isValid=!1}function WS(u){var p=RS.exec(u._i);if(p!==null){u._d=new Date(+p[1]);return}if(up(u),u._isValid===!1)delete u._isValid;else return;if(hp(u),u._isValid===!1)delete u._isValid;else return;u._strict?u._isValid=!1:a.createFromInputFallback(u)}a.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(u){u._d=new Date(u._i+(u._useUTC?" UTC":""))});function Ci(u,p,y){return u??p??y}function GS(u){var p=new Date(a.now());return u._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()]}function Cd(u){var p,y,_=[],E,$,I;if(!u._d){for(E=GS(u),u._w&&u._a[Ar]==null&&u._a[Br]==null&&zS(u),u._dayOfYear!=null&&(I=Ci(u._a[gt],E[gt]),(u._dayOfYear>Wa(I)||u._dayOfYear===0)&&(w(u)._overflowDayOfYear=!0),y=Ga(I,0,u._dayOfYear),u._a[Br]=y.getUTCMonth(),u._a[Ar]=y.getUTCDate()),p=0;p<3&&u._a[p]==null;++p)u._a[p]=_[p]=E[p];for(;p<7;p++)u._a[p]=_[p]=u._a[p]==null?p===2?1:0:u._a[p];u._a[at]===24&&u._a[gr]===0&&u._a[Hr]===0&&u._a[Bn]===0&&(u._nextDay=!0,u._a[at]=0),u._d=(u._useUTC?Ga:Z1).apply(null,_),$=u._useUTC?u._d.getUTCDay():u._d.getDay(),u._tzm!=null&&u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),u._nextDay&&(u._a[at]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(w(u).weekdayMismatch=!0)}}function zS(u){var p,y,_,E,$,I,J,ce,$e;p=u._w,p.GG!=null||p.W!=null||p.E!=null?($=1,I=4,y=Ci(p.GG,u._a[gt],za(Ve(),1,4).year),_=Ci(p.W,1),E=Ci(p.E,1),(E<1||E>7)&&(ce=!0)):($=u._locale._week.dow,I=u._locale._week.doy,$e=za(Ve(),$,I),y=Ci(p.gg,u._a[gt],$e.year),_=Ci(p.w,$e.week),p.d!=null?(E=p.d,(E<0||E>6)&&(ce=!0)):p.e!=null?(E=p.e+$,(p.e<0||p.e>6)&&(ce=!0)):E=$),_<1||_>Wr(y,$,I)?w(u)._overflowWeeks=!0:ce!=null?w(u)._overflowWeekday=!0:(J=ap(y,_,E,$,I),u._a[gt]=J.year,u._dayOfYear=J.dayOfYear)}a.ISO_8601=function(){},a.RFC_2822=function(){};function Od(u){if(u._f===a.ISO_8601){up(u);return}if(u._f===a.RFC_2822){hp(u);return}u._a=[],w(u).empty=!0;var p=""+u._i,y,_,E,$,I,J=p.length,ce=0,$e,St;for(E=W(u._f,u._locale).match(Mt)||[],St=E.length,y=0;y<St;y++)$=E[y],_=(p.match(M1($,u))||[])[0],_&&(I=p.substr(0,p.indexOf(_)),I.length>0&&w(u).unusedInput.push(I),p=p.slice(p.indexOf(_)+_.length),ce+=_.length),vt[$]?(_?w(u).empty=!1:w(u).unusedTokens.push($),L1($,_,u)):u._strict&&!_&&w(u).unusedTokens.push($);w(u).charsLeftOver=J-ce,p.length>0&&w(u).unusedInput.push(p),u._a[at]<=12&&w(u).bigHour===!0&&u._a[at]>0&&(w(u).bigHour=void 0),w(u).parsedDateParts=u._a.slice(0),w(u).meridiem=u._meridiem,u._a[at]=US(u._locale,u._a[at],u._meridiem),$e=w(u).era,$e!==null&&(u._a[gt]=u._locale.erasConvertYear($e,u._a[gt])),Cd(u),Dd(u)}function US(u,p,y){var _;return y==null?p:u.meridiemHour!=null?u.meridiemHour(p,y):(u.isPM!=null&&(_=u.isPM(y),_&&p<12&&(p+=12),!_&&p===12&&(p=0)),p)}function KS(u){var p,y,_,E,$,I,J=!1,ce=u._f.length;if(ce===0){w(u).invalidFormat=!0,u._d=new Date(NaN);return}for(E=0;E<ce;E++)$=0,I=!1,p=A({},u),u._useUTC!=null&&(p._useUTC=u._useUTC),p._f=u._f[E],Od(p),T(p)&&(I=!0),$+=w(p).charsLeftOver,$+=w(p).unusedTokens.length*10,w(p).score=$,J?$<_&&(_=$,y=p):(_==null||$<_||I)&&(_=$,y=p,I&&(J=!0));g(u,y||p)}function qS(u){if(!u._d){var p=Ti(u._i),y=p.day===void 0?p.date:p.day;u._a=m([p.year,p.month,y,p.hour,p.minute,p.second,p.millisecond],function(_){return _&&parseInt(_,10)}),Cd(u)}}function XS(u){var p=new R(Dd(fp(u)));return p._nextDay&&(p.add(1,"d"),p._nextDay=void 0),p}function fp(u){var p=u._i,y=u._f;return u._locale=u._locale||Gr(u._l),p===null||y===void 0&&p===""?D({nullInput:!0}):(typeof p=="string"&&(u._i=p=u._locale.preparse(p)),C(p)?new R(Dd(p)):(v(p)?u._d=p:s(y)?KS(u):y?Od(u):QS(u),T(u)||(u._d=null),u))}function QS(u){var p=u._i;c(p)?u._d=new Date(a.now()):v(p)?u._d=new Date(p.valueOf()):typeof p=="string"?WS(u):s(p)?(u._a=m(p.slice(0),function(y){return parseInt(y,10)}),Cd(u)):o(p)?qS(u):f(p)?u._d=new Date(p):a.createFromInputFallback(u)}function pp(u,p,y,_,E){var $={};return(p===!0||p===!1)&&(_=p,p=void 0),(y===!0||y===!1)&&(_=y,y=void 0),(o(u)&&d(u)||s(u)&&u.length===0)&&(u=void 0),$._isAMomentObject=!0,$._useUTC=$._isUTC=E,$._l=y,$._i=u,$._f=p,$._strict=_,XS($)}function Ve(u,p,y,_){return pp(u,p,y,_,!1)}var ZS=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var u=Ve.apply(null,arguments);return this.isValid()&&u.isValid()?u<this?this:u:D()}),JS=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var u=Ve.apply(null,arguments);return this.isValid()&&u.isValid()?u>this?this:u:D()});function vp(u,p){var y,_;if(p.length===1&&s(p[0])&&(p=p[0]),!p.length)return Ve();for(y=p[0],_=1;_<p.length;++_)(!p[_].isValid()||p[_][u](y))&&(y=p[_]);return y}function ek(){var u=[].slice.call(arguments,0);return vp("isBefore",u)}function tk(){var u=[].slice.call(arguments,0);return vp("isAfter",u)}var rk=function(){return Date.now?Date.now():+new Date},qa=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nk(u){var p,y=!1,_,E=qa.length;for(p in u)if(l(u,p)&&!(Xe.call(qa,p)!==-1&&(u[p]==null||!isNaN(u[p]))))return!1;for(_=0;_<E;++_)if(u[qa[_]]){if(y)return!1;parseFloat(u[qa[_]])!==ue(u[qa[_]])&&(y=!0)}return!0}function ik(){return this._isValid}function ak(){return yr(NaN)}function go(u){var p=Ti(u),y=p.year||0,_=p.quarter||0,E=p.month||0,$=p.week||p.isoWeek||0,I=p.day||0,J=p.hour||0,ce=p.minute||0,$e=p.second||0,St=p.millisecond||0;this._isValid=nk(p),this._milliseconds=+St+$e*1e3+ce*6e4+J*1e3*60*60,this._days=+I+$*7,this._months=+E+_*3+y*12,this._data={},this._locale=Gr(),this._bubble()}function yo(u){return u instanceof go}function Ad(u){return u<0?Math.round(-1*u)*-1:Math.round(u)}function sk(u,p,y){var _=Math.min(u.length,p.length),E=Math.abs(u.length-p.length),$=0,I;for(I=0;I<_;I++)ue(u[I])!==ue(p[I])&&$++;return $+E}function mp(u,p){q(u,0,0,function(){var y=this.utcOffset(),_="+";return y<0&&(y=-y,_="-"),_+Ie(~~(y/60),2)+p+Ie(~~y%60,2)})}mp("Z",":"),mp("ZZ",""),U("Z",uo),U("ZZ",uo),Te(["Z","ZZ"],function(u,p,y){y._useUTC=!0,y._tzm=Id(uo,u)});var ok=/([\+\-]|\d\d)/gi;function Id(u,p){var y=(p||"").match(u),_,E,$;return y===null?null:(_=y[y.length-1]||[],E=(_+"").match(ok)||["-",0,0],$=+(E[1]*60)+ue(E[2]),$===0?0:E[0]==="+"?$:-$)}function Pd(u,p){var y,_;return p._isUTC?(y=p.clone(),_=(C(u)||v(u)?u.valueOf():Ve(u).valueOf())-y.valueOf(),y._d.setTime(y._d.valueOf()+_),a.updateOffset(y,!1),y):Ve(u).local()}function Md(u){return-Math.round(u._d.getTimezoneOffset())}a.updateOffset=function(){};function lk(u,p,y){var _=this._offset||0,E;if(!this.isValid())return u!=null?this:NaN;if(u!=null){if(typeof u=="string"){if(u=Id(uo,u),u===null)return this}else Math.abs(u)<16&&!y&&(u=u*60);return!this._isUTC&&p&&(E=Md(this)),this._offset=u,this._isUTC=!0,E!=null&&this.add(E,"m"),_!==u&&(!p||this._changeInProgress?bp(this,yr(u-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Md(this)}function dk(u,p){return u!=null?(typeof u!="string"&&(u=-u),this.utcOffset(u,p),this):-this.utcOffset()}function ck(u){return this.utcOffset(0,u)}function uk(u){return this._isUTC&&(this.utcOffset(0,u),this._isUTC=!1,u&&this.subtract(Md(this),"m")),this}function hk(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var u=Id(I1,this._i);u!=null?this.utcOffset(u):this.utcOffset(0,!0)}return this}function fk(u){return this.isValid()?(u=u?Ve(u).utcOffset():0,(this.utcOffset()-u)%60===0):!1}function pk(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vk(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},p;return A(u,this),u=fp(u),u._a?(p=u._isUTC?b(u._a):Ve(u._a),this._isDSTShifted=this.isValid()&&sk(u._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function mk(){return this.isValid()?!this._isUTC:!1}function gk(){return this.isValid()?this._isUTC:!1}function gp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var yk=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_k=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function yr(u,p){var y=u,_=null,E,$,I;return yo(u)?y={ms:u._milliseconds,d:u._days,M:u._months}:f(u)||!isNaN(+u)?(y={},p?y[p]=+u:y.milliseconds=+u):(_=yk.exec(u))?(E=_[1]==="-"?-1:1,y={y:0,d:ue(_[Ar])*E,h:ue(_[at])*E,m:ue(_[gr])*E,s:ue(_[Hr])*E,ms:ue(Ad(_[Bn]*1e3))*E}):(_=_k.exec(u))?(E=_[1]==="-"?-1:1,y={y:Hn(_[2],E),M:Hn(_[3],E),w:Hn(_[4],E),d:Hn(_[5],E),h:Hn(_[6],E),m:Hn(_[7],E),s:Hn(_[8],E)}):y==null?y={}:typeof y=="object"&&("from"in y||"to"in y)&&(I=bk(Ve(y.from),Ve(y.to)),y={},y.ms=I.milliseconds,y.M=I.months),$=new go(y),yo(u)&&l(u,"_locale")&&($._locale=u._locale),yo(u)&&l(u,"_isValid")&&($._isValid=u._isValid),$}yr.fn=go.prototype,yr.invalid=ak;function Hn(u,p){var y=u&&parseFloat(u.replace(",","."));return(isNaN(y)?0:y)*p}function yp(u,p){var y={};return y.months=p.month()-u.month()+(p.year()-u.year())*12,u.clone().add(y.months,"M").isAfter(p)&&--y.months,y.milliseconds=+p-+u.clone().add(y.months,"M"),y}function bk(u,p){var y;return u.isValid()&&p.isValid()?(p=Pd(p,u),u.isBefore(p)?y=yp(u,p):(y=yp(p,u),y.milliseconds=-y.milliseconds,y.months=-y.months),y):{milliseconds:0,months:0}}function _p(u,p){return function(y,_){var E,$;return _!==null&&!isNaN(+_)&&(H(p,"moment()."+p+"(period, number) is deprecated. Please use moment()."+p+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=y,y=_,_=$),E=yr(y,_),bp(this,E,u),this}}function bp(u,p,y,_){var E=p._milliseconds,$=Ad(p._days),I=Ad(p._months);u.isValid()&&(_=_??!0,I&&tp(u,ao(u,"Month")+I*y),$&&Kf(u,"Date",ao(u,"Date")+$*y),E&&u._d.setTime(u._d.valueOf()+E*y),_&&a.updateOffset(u,$||I))}var wk=_p(1,"add"),Ek=_p(-1,"subtract");function wp(u){return typeof u=="string"||u instanceof String}function Sk(u){return C(u)||v(u)||wp(u)||f(u)||xk(u)||kk(u)||u===null||u===void 0}function kk(u){var p=o(u)&&!d(u),y=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],E,$,I=_.length;for(E=0;E<I;E+=1)$=_[E],y=y||l(u,$);return p&&y}function xk(u){var p=s(u),y=!1;return p&&(y=u.filter(function(_){return!f(_)&&wp(u)}).length===0),p&&y}function Tk(u){var p=o(u)&&!d(u),y=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],E,$;for(E=0;E<_.length;E+=1)$=_[E],y=y||l(u,$);return p&&y}function $k(u,p){var y=u.diff(p,"days",!0);return y<-6?"sameElse":y<-1?"lastWeek":y<0?"lastDay":y<1?"sameDay":y<2?"nextDay":y<7?"nextWeek":"sameElse"}function Dk(u,p){arguments.length===1&&(arguments[0]?Sk(arguments[0])?(u=arguments[0],p=void 0):Tk(arguments[0])&&(p=arguments[0],u=void 0):(u=void 0,p=void 0));var y=u||Ve(),_=Pd(y,this).startOf("day"),E=a.calendarFormat(this,_)||"sameElse",$=p&&(z(p[E])?p[E].call(this,y):p[E]);return this.format($||this.localeData().calendar(E,this,Ve(y)))}function Nk(){return new R(this)}function Ck(u,p){var y=C(u)?u:Ve(u);return this.isValid()&&y.isValid()?(p=wt(p)||"millisecond",p==="millisecond"?this.valueOf()>y.valueOf():y.valueOf()<this.clone().startOf(p).valueOf()):!1}function Ok(u,p){var y=C(u)?u:Ve(u);return this.isValid()&&y.isValid()?(p=wt(p)||"millisecond",p==="millisecond"?this.valueOf()<y.valueOf():this.clone().endOf(p).valueOf()<y.valueOf()):!1}function Ak(u,p,y,_){var E=C(u)?u:Ve(u),$=C(p)?p:Ve(p);return this.isValid()&&E.isValid()&&$.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(E,y):!this.isBefore(E,y))&&(_[1]===")"?this.isBefore($,y):!this.isAfter($,y))):!1}function Ik(u,p){var y=C(u)?u:Ve(u),_;return this.isValid()&&y.isValid()?(p=wt(p)||"millisecond",p==="millisecond"?this.valueOf()===y.valueOf():(_=y.valueOf(),this.clone().startOf(p).valueOf()<=_&&_<=this.clone().endOf(p).valueOf())):!1}function Pk(u,p){return this.isSame(u,p)||this.isAfter(u,p)}function Mk(u,p){return this.isSame(u,p)||this.isBefore(u,p)}function Rk(u,p,y){var _,E,$;if(!this.isValid())return NaN;if(_=Pd(u,this),!_.isValid())return NaN;switch(E=(_.utcOffset()-this.utcOffset())*6e4,p=wt(p),p){case"year":$=_o(this,_)/12;break;case"month":$=_o(this,_);break;case"quarter":$=_o(this,_)/3;break;case"second":$=(this-_)/1e3;break;case"minute":$=(this-_)/6e4;break;case"hour":$=(this-_)/36e5;break;case"day":$=(this-_-E)/864e5;break;case"week":$=(this-_-E)/6048e5;break;default:$=this-_}return y?$:Et($)}function _o(u,p){if(u.date()<p.date())return-_o(p,u);var y=(p.year()-u.year())*12+(p.month()-u.month()),_=u.clone().add(y,"months"),E,$;return p-_<0?(E=u.clone().add(y-1,"months"),$=(p-_)/(_-E)):(E=u.clone().add(y+1,"months"),$=(p-_)/(E-_)),-(y+$)||0}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Lk(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Vk(u){if(!this.isValid())return null;var p=u!==!0,y=p?this.clone().utc():this;return y.year()<0||y.year()>9999?mt(y,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",mt(y,"Z")):mt(y,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Fk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var u="moment",p="",y,_,E,$;return this.isLocal()||(u=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),y="["+u+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",E="-MM-DD[T]HH:mm:ss.SSS",$=p+'[")]',this.format(y+_+E+$)}function Yk(u){u||(u=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var p=mt(this,u);return this.localeData().postformat(p)}function jk(u,p){return this.isValid()&&(C(u)&&u.isValid()||Ve(u).isValid())?yr({to:this,from:u}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function Bk(u){return this.from(Ve(),u)}function Hk(u,p){return this.isValid()&&(C(u)&&u.isValid()||Ve(u).isValid())?yr({from:this,to:u}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function Wk(u){return this.to(Ve(),u)}function Ep(u){var p;return u===void 0?this._locale._abbr:(p=Gr(u),p!=null&&(this._locale=p),this)}var Sp=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(u){return u===void 0?this.localeData():this.locale(u)});function kp(){return this._locale}var bo=1e3,Oi=60*bo,wo=60*Oi,xp=(365*400+97)*24*wo;function Ai(u,p){return(u%p+p)%p}function Tp(u,p,y){return u<100&&u>=0?new Date(u+400,p,y)-xp:new Date(u,p,y).valueOf()}function $p(u,p,y){return u<100&&u>=0?Date.UTC(u+400,p,y)-xp:Date.UTC(u,p,y)}function Gk(u){var p,y;if(u=wt(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?$p:Tp,u){case"year":p=y(this.year(),0,1);break;case"quarter":p=y(this.year(),this.month()-this.month()%3,1);break;case"month":p=y(this.year(),this.month(),1);break;case"week":p=y(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=y(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=Ai(p+(this._isUTC?0:this.utcOffset()*Oi),wo);break;case"minute":p=this._d.valueOf(),p-=Ai(p,Oi);break;case"second":p=this._d.valueOf(),p-=Ai(p,bo);break}return this._d.setTime(p),a.updateOffset(this,!0),this}function zk(u){var p,y;if(u=wt(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?$p:Tp,u){case"year":p=y(this.year()+1,0,1)-1;break;case"quarter":p=y(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=y(this.year(),this.month()+1,1)-1;break;case"week":p=y(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=y(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=wo-Ai(p+(this._isUTC?0:this.utcOffset()*Oi),wo)-1;break;case"minute":p=this._d.valueOf(),p+=Oi-Ai(p,Oi)-1;break;case"second":p=this._d.valueOf(),p+=bo-Ai(p,bo)-1;break}return this._d.setTime(p),a.updateOffset(this,!0),this}function Uk(){return this._d.valueOf()-(this._offset||0)*6e4}function Kk(){return Math.floor(this.valueOf()/1e3)}function qk(){return new Date(this.valueOf())}function Xk(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function Qk(){var u=this;return{years:u.year(),months:u.month(),date:u.date(),hours:u.hours(),minutes:u.minutes(),seconds:u.seconds(),milliseconds:u.milliseconds()}}function Zk(){return this.isValid()?this.toISOString():null}function Jk(){return T(this)}function ex(){return g({},w(this))}function tx(){return w(this).overflow}function rx(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}q("N",0,0,"eraAbbr"),q("NN",0,0,"eraAbbr"),q("NNN",0,0,"eraAbbr"),q("NNNN",0,0,"eraName"),q("NNNNN",0,0,"eraNarrow"),q("y",["y",1],"yo","eraYear"),q("y",["yy",2],0,"eraYear"),q("y",["yyy",3],0,"eraYear"),q("y",["yyyy",4],0,"eraYear"),U("N",Rd),U("NN",Rd),U("NNN",Rd),U("NNNN",fx),U("NNNNN",px),Te(["N","NN","NNN","NNNN","NNNNN"],function(u,p,y,_){var E=y._locale.erasParse(u,_,y._strict);E?w(y).era=E:w(y).invalidEra=u}),U("y",Ni),U("yy",Ni),U("yyy",Ni),U("yyyy",Ni),U("yo",vx),Te(["y","yy","yyy","yyyy"],gt),Te(["yo"],function(u,p,y,_){var E;y._locale._eraYearOrdinalRegex&&(E=u.match(y._locale._eraYearOrdinalRegex)),y._locale.eraYearOrdinalParse?p[gt]=y._locale.eraYearOrdinalParse(u,E):p[gt]=parseInt(u,10)});function nx(u,p){var y,_,E,$=this._eras||Gr("en")._eras;for(y=0,_=$.length;y<_;++y){switch(typeof $[y].since){case"string":E=a($[y].since).startOf("day"),$[y].since=E.valueOf();break}switch(typeof $[y].until){case"undefined":$[y].until=1/0;break;case"string":E=a($[y].until).startOf("day").valueOf(),$[y].until=E.valueOf();break}}return $}function ix(u,p,y){var _,E,$=this.eras(),I,J,ce;for(u=u.toUpperCase(),_=0,E=$.length;_<E;++_)if(I=$[_].name.toUpperCase(),J=$[_].abbr.toUpperCase(),ce=$[_].narrow.toUpperCase(),y)switch(p){case"N":case"NN":case"NNN":if(J===u)return $[_];break;case"NNNN":if(I===u)return $[_];break;case"NNNNN":if(ce===u)return $[_];break}else if([I,J,ce].indexOf(u)>=0)return $[_]}function ax(u,p){var y=u.since<=u.until?1:-1;return p===void 0?a(u.since).year():a(u.since).year()+(p-u.offset)*y}function sx(){var u,p,y,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(y=this.clone().startOf("day").valueOf(),_[u].since<=y&&y<=_[u].until||_[u].until<=y&&y<=_[u].since)return _[u].name;return""}function ox(){var u,p,y,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(y=this.clone().startOf("day").valueOf(),_[u].since<=y&&y<=_[u].until||_[u].until<=y&&y<=_[u].since)return _[u].narrow;return""}function lx(){var u,p,y,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(y=this.clone().startOf("day").valueOf(),_[u].since<=y&&y<=_[u].until||_[u].until<=y&&y<=_[u].since)return _[u].abbr;return""}function dx(){var u,p,y,_,E=this.localeData().eras();for(u=0,p=E.length;u<p;++u)if(y=E[u].since<=E[u].until?1:-1,_=this.clone().startOf("day").valueOf(),E[u].since<=_&&_<=E[u].until||E[u].until<=_&&_<=E[u].since)return(this.year()-a(E[u].since).year())*y+E[u].offset;return this.year()}function cx(u){return l(this,"_erasNameRegex")||Ld.call(this),u?this._erasNameRegex:this._erasRegex}function ux(u){return l(this,"_erasAbbrRegex")||Ld.call(this),u?this._erasAbbrRegex:this._erasRegex}function hx(u){return l(this,"_erasNarrowRegex")||Ld.call(this),u?this._erasNarrowRegex:this._erasRegex}function Rd(u,p){return p.erasAbbrRegex(u)}function fx(u,p){return p.erasNameRegex(u)}function px(u,p){return p.erasNarrowRegex(u)}function vx(u,p){return p._eraYearOrdinalRegex||Ni}function Ld(){var u=[],p=[],y=[],_=[],E,$,I=this.eras();for(E=0,$=I.length;E<$;++E)p.push(Ut(I[E].name)),u.push(Ut(I[E].abbr)),y.push(Ut(I[E].narrow)),_.push(Ut(I[E].name)),_.push(Ut(I[E].abbr)),_.push(Ut(I[E].narrow));this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+p.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+y.join("|")+")","i")}q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Eo(u,p){q(0,[u,u.length],0,p)}Eo("gggg","weekYear"),Eo("ggggg","weekYear"),Eo("GGGG","isoWeekYear"),Eo("GGGGG","isoWeekYear"),qe("weekYear","gg"),qe("isoWeekYear","GG"),it("weekYear",1),it("isoWeekYear",1),U("G",co),U("g",co),U("GG",Le,zt),U("gg",Le,zt),U("GGGG",Ed,wd),U("gggg",Ed,wd),U("GGGGG",lo,so),U("ggggg",lo,so),Ha(["gggg","ggggg","GGGG","GGGGG"],function(u,p,y,_){p[_.substr(0,2)]=ue(u)}),Ha(["gg","GG"],function(u,p,y,_){p[_]=a.parseTwoDigitYear(u)});function mx(u){return Dp.call(this,u,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function gx(u){return Dp.call(this,u,this.isoWeek(),this.isoWeekday(),1,4)}function yx(){return Wr(this.year(),1,4)}function _x(){return Wr(this.isoWeekYear(),1,4)}function bx(){var u=this.localeData()._week;return Wr(this.year(),u.dow,u.doy)}function wx(){var u=this.localeData()._week;return Wr(this.weekYear(),u.dow,u.doy)}function Dp(u,p,y,_,E){var $;return u==null?za(this,_,E).year:($=Wr(u,_,E),p>$&&(p=$),Ex.call(this,u,p,y,_,E))}function Ex(u,p,y,_,E){var $=ap(u,p,y,_,E),I=Ga($.year,0,$.dayOfYear);return this.year(I.getUTCFullYear()),this.month(I.getUTCMonth()),this.date(I.getUTCDate()),this}q("Q",0,"Qo","quarter"),qe("quarter","Q"),it("quarter",7),U("Q",qf),Te("Q",function(u,p){p[Br]=(ue(u)-1)*3});function Sx(u){return u==null?Math.ceil((this.month()+1)/3):this.month((u-1)*3+this.month()%3)}q("D",["DD",2],"Do","date"),qe("date","D"),it("date",9),U("D",Le),U("DD",Le,zt),U("Do",function(u,p){return u?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),Te(["D","DD"],Ar),Te("Do",function(u,p){p[Ar]=ue(u.match(Le)[0])});var Np=Di("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),qe("dayOfYear","DDD"),it("dayOfYear",4),U("DDD",oo),U("DDDD",Xf),Te(["DDD","DDDD"],function(u,p,y){y._dayOfYear=ue(u)});function kx(u){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return u==null?p:this.add(u-p,"d")}q("m",["mm",2],0,"minute"),qe("minute","m"),it("minute",14),U("m",Le),U("mm",Le,zt),Te(["m","mm"],gr);var xx=Di("Minutes",!1);q("s",["ss",2],0,"second"),qe("second","s"),it("second",15),U("s",Le),U("ss",Le,zt),Te(["s","ss"],Hr);var Tx=Di("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return this.millisecond()*10}),q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),qe("millisecond","ms"),it("millisecond",16),U("S",oo,qf),U("SS",oo,zt),U("SSS",oo,Xf);var mn,Cp;for(mn="SSSS";mn.length<=9;mn+="S")U(mn,Ni);function $x(u,p){p[Bn]=ue(("0."+u)*1e3)}for(mn="S";mn.length<=9;mn+="S")Te(mn,$x);Cp=Di("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");function Dx(){return this._isUTC?"UTC":""}function Nx(){return this._isUTC?"Coordinated Universal Time":""}var Y=R.prototype;Y.add=wk,Y.calendar=Dk,Y.clone=Nk,Y.diff=Rk,Y.endOf=zk,Y.format=Yk,Y.from=jk,Y.fromNow=Bk,Y.to=Hk,Y.toNow=Wk,Y.get=O1,Y.invalidAt=tx,Y.isAfter=Ck,Y.isBefore=Ok,Y.isBetween=Ak,Y.isSame=Ik,Y.isSameOrAfter=Pk,Y.isSameOrBefore=Mk,Y.isValid=Jk,Y.lang=Sp,Y.locale=Ep,Y.localeData=kp,Y.max=JS,Y.min=ZS,Y.parsingFlags=ex,Y.set=A1,Y.startOf=Gk,Y.subtract=Ek,Y.toArray=Xk,Y.toObject=Qk,Y.toDate=qk,Y.toISOString=Vk,Y.inspect=Fk,typeof Symbol<"u"&&Symbol.for!=null&&(Y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Y.toJSON=Zk,Y.toString=Lk,Y.unix=Kk,Y.valueOf=Uk,Y.creationData=rx,Y.eraName=sx,Y.eraNarrow=ox,Y.eraAbbr=lx,Y.eraYear=dx,Y.year=ip,Y.isLeapYear=Q1,Y.weekYear=mx,Y.isoWeekYear=gx,Y.quarter=Y.quarters=Sx,Y.month=rp,Y.daysInMonth=K1,Y.week=Y.weeks=nS,Y.isoWeek=Y.isoWeeks=iS,Y.weeksInYear=bx,Y.weeksInWeekYear=wx,Y.isoWeeksInYear=yx,Y.isoWeeksInISOWeekYear=_x,Y.date=Np,Y.day=Y.days=gS,Y.weekday=yS,Y.isoWeekday=_S,Y.dayOfYear=kx,Y.hour=Y.hours=TS,Y.minute=Y.minutes=xx,Y.second=Y.seconds=Tx,Y.millisecond=Y.milliseconds=Cp,Y.utcOffset=lk,Y.utc=ck,Y.local=uk,Y.parseZone=hk,Y.hasAlignedHourOffset=fk,Y.isDST=pk,Y.isLocal=mk,Y.isUtcOffset=gk,Y.isUtc=gp,Y.isUTC=gp,Y.zoneAbbr=Dx,Y.zoneName=Nx,Y.dates=O("dates accessor is deprecated. Use date instead.",Np),Y.months=O("months accessor is deprecated. Use month instead",rp),Y.years=O("years accessor is deprecated. Use year instead",ip),Y.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",dk),Y.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vk);function Cx(u){return Ve(u*1e3)}function Ox(){return Ve.apply(null,arguments).parseZone()}function Op(u){return u}var we=be.prototype;we.calendar=ut,we.longDateFormat=B,we.invalidDate=ie,we.ordinal=Je,we.preparse=Op,we.postformat=Op,we.relativeTime=mr,we.pastFuture=ar,we.set=se,we.eras=nx,we.erasParse=ix,we.erasConvertYear=ax,we.erasAbbrRegex=ux,we.erasNameRegex=cx,we.erasNarrowRegex=hx,we.months=W1,we.monthsShort=G1,we.monthsParse=U1,we.monthsRegex=X1,we.monthsShortRegex=q1,we.week=J1,we.firstDayOfYear=rS,we.firstDayOfWeek=tS,we.weekdays=hS,we.weekdaysMin=pS,we.weekdaysShort=fS,we.weekdaysParse=mS,we.weekdaysRegex=bS,we.weekdaysShortRegex=wS,we.weekdaysMinRegex=ES,we.isPM=kS,we.meridiem=$S;function So(u,p,y,_){var E=Gr(),$=b().set(_,p);return E[y]($,u)}function Ap(u,p,y){if(f(u)&&(p=u,u=void 0),u=u||"",p!=null)return So(u,p,y,"month");var _,E=[];for(_=0;_<12;_++)E[_]=So(u,_,y,"month");return E}function Vd(u,p,y,_){typeof u=="boolean"?(f(p)&&(y=p,p=void 0),p=p||""):(p=u,y=p,u=!1,f(p)&&(y=p,p=void 0),p=p||"");var E=Gr(),$=u?E._week.dow:0,I,J=[];if(y!=null)return So(p,(y+$)%7,_,"day");for(I=0;I<7;I++)J[I]=So(p,(I+$)%7,_,"day");return J}function Ax(u,p){return Ap(u,p,"months")}function Ix(u,p){return Ap(u,p,"monthsShort")}function Px(u,p,y){return Vd(u,p,y,"weekdays")}function Mx(u,p,y){return Vd(u,p,y,"weekdaysShort")}function Rx(u,p,y){return Vd(u,p,y,"weekdaysMin")}vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(u){var p=u%10,y=ue(u%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return u+y}}),a.lang=O("moment.lang is deprecated. Use moment.locale instead.",vn),a.langData=O("moment.langData is deprecated. Use moment.localeData instead.",Gr);var zr=Math.abs;function Lx(){var u=this._data;return this._milliseconds=zr(this._milliseconds),this._days=zr(this._days),this._months=zr(this._months),u.milliseconds=zr(u.milliseconds),u.seconds=zr(u.seconds),u.minutes=zr(u.minutes),u.hours=zr(u.hours),u.months=zr(u.months),u.years=zr(u.years),this}function Ip(u,p,y,_){var E=yr(p,y);return u._milliseconds+=_*E._milliseconds,u._days+=_*E._days,u._months+=_*E._months,u._bubble()}function Vx(u,p){return Ip(this,u,p,1)}function Fx(u,p){return Ip(this,u,p,-1)}function Pp(u){return u<0?Math.floor(u):Math.ceil(u)}function Yx(){var u=this._milliseconds,p=this._days,y=this._months,_=this._data,E,$,I,J,ce;return u>=0&&p>=0&&y>=0||u<=0&&p<=0&&y<=0||(u+=Pp(Fd(y)+p)*864e5,p=0,y=0),_.milliseconds=u%1e3,E=Et(u/1e3),_.seconds=E%60,$=Et(E/60),_.minutes=$%60,I=Et($/60),_.hours=I%24,p+=Et(I/24),ce=Et(Mp(p)),y+=ce,p-=Pp(Fd(ce)),J=Et(y/12),y%=12,_.days=p,_.months=y,_.years=J,this}function Mp(u){return u*4800/146097}function Fd(u){return u*146097/4800}function jx(u){if(!this.isValid())return NaN;var p,y,_=this._milliseconds;if(u=wt(u),u==="month"||u==="quarter"||u==="year")switch(p=this._days+_/864e5,y=this._months+Mp(p),u){case"month":return y;case"quarter":return y/3;case"year":return y/12}else switch(p=this._days+Math.round(Fd(this._months)),u){case"week":return p/7+_/6048e5;case"day":return p+_/864e5;case"hour":return p*24+_/36e5;case"minute":return p*1440+_/6e4;case"second":return p*86400+_/1e3;case"millisecond":return Math.floor(p*864e5)+_;default:throw new Error("Unknown unit "+u)}}function Bx(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function Ur(u){return function(){return this.as(u)}}var Hx=Ur("ms"),Wx=Ur("s"),Gx=Ur("m"),zx=Ur("h"),Ux=Ur("d"),Kx=Ur("w"),qx=Ur("M"),Xx=Ur("Q"),Qx=Ur("y");function Zx(){return yr(this)}function Jx(u){return u=wt(u),this.isValid()?this[u+"s"]():NaN}function Wn(u){return function(){return this.isValid()?this._data[u]:NaN}}var eT=Wn("milliseconds"),tT=Wn("seconds"),rT=Wn("minutes"),nT=Wn("hours"),iT=Wn("days"),aT=Wn("months"),sT=Wn("years");function oT(){return Et(this.days()/7)}var Kr=Math.round,Ii={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lT(u,p,y,_,E){return E.relativeTime(p||1,!!y,u,_)}function dT(u,p,y,_){var E=yr(u).abs(),$=Kr(E.as("s")),I=Kr(E.as("m")),J=Kr(E.as("h")),ce=Kr(E.as("d")),$e=Kr(E.as("M")),St=Kr(E.as("w")),qr=Kr(E.as("y")),gn=$<=y.ss&&["s",$]||$<y.s&&["ss",$]||I<=1&&["m"]||I<y.m&&["mm",I]||J<=1&&["h"]||J<y.h&&["hh",J]||ce<=1&&["d"]||ce<y.d&&["dd",ce];return y.w!=null&&(gn=gn||St<=1&&["w"]||St<y.w&&["ww",St]),gn=gn||$e<=1&&["M"]||$e<y.M&&["MM",$e]||qr<=1&&["y"]||["yy",qr],gn[2]=p,gn[3]=+u>0,gn[4]=_,lT.apply(null,gn)}function cT(u){return u===void 0?Kr:typeof u=="function"?(Kr=u,!0):!1}function uT(u,p){return Ii[u]===void 0?!1:p===void 0?Ii[u]:(Ii[u]=p,u==="s"&&(Ii.ss=p-1),!0)}function hT(u,p){if(!this.isValid())return this.localeData().invalidDate();var y=!1,_=Ii,E,$;return typeof u=="object"&&(p=u,u=!1),typeof u=="boolean"&&(y=u),typeof p=="object"&&(_=Object.assign({},Ii,p),p.s!=null&&p.ss==null&&(_.ss=p.s-1)),E=this.localeData(),$=dT(this,!y,_,E),y&&($=E.pastFuture(+this,$)),E.postformat($)}var Yd=Math.abs;function Pi(u){return(u>0)-(u<0)||+u}function ko(){if(!this.isValid())return this.localeData().invalidDate();var u=Yd(this._milliseconds)/1e3,p=Yd(this._days),y=Yd(this._months),_,E,$,I,J=this.asSeconds(),ce,$e,St,qr;return J?(_=Et(u/60),E=Et(_/60),u%=60,_%=60,$=Et(y/12),y%=12,I=u?u.toFixed(3).replace(/\.?0+$/,""):"",ce=J<0?"-":"",$e=Pi(this._months)!==Pi(J)?"-":"",St=Pi(this._days)!==Pi(J)?"-":"",qr=Pi(this._milliseconds)!==Pi(J)?"-":"",ce+"P"+($?$e+$+"Y":"")+(y?$e+y+"M":"")+(p?St+p+"D":"")+(E||_||u?"T":"")+(E?qr+E+"H":"")+(_?qr+_+"M":"")+(u?qr+I+"S":"")):"P0D"}var ve=go.prototype;ve.isValid=ik,ve.abs=Lx,ve.add=Vx,ve.subtract=Fx,ve.as=jx,ve.asMilliseconds=Hx,ve.asSeconds=Wx,ve.asMinutes=Gx,ve.asHours=zx,ve.asDays=Ux,ve.asWeeks=Kx,ve.asMonths=qx,ve.asQuarters=Xx,ve.asYears=Qx,ve.valueOf=Bx,ve._bubble=Yx,ve.clone=Zx,ve.get=Jx,ve.milliseconds=eT,ve.seconds=tT,ve.minutes=rT,ve.hours=nT,ve.days=iT,ve.weeks=oT,ve.months=aT,ve.years=sT,ve.humanize=hT,ve.toISOString=ko,ve.toString=ko,ve.toJSON=ko,ve.locale=Ep,ve.localeData=kp,ve.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ko),ve.lang=Sp,q("X",0,0,"unix"),q("x",0,0,"valueOf"),U("x",co),U("X",P1),Te("X",function(u,p,y){y._d=new Date(parseFloat(u)*1e3)}),Te("x",function(u,p,y){y._d=new Date(ue(u))});//! moment.js
|
33
|
-
return a.version="2.29.4",n(
|
34
|
-
function a(s,o,l,d){var
|
35
|
-
var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,l=
|
36
|
-
var a=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,s=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],l=
|
37
|
-
var a=
|
38
|
-
var a=
|
39
|
-
var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,l=
|
40
|
-
var a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(
|
41
|
-
function a(l,d){var
|
42
|
-
function a(d,c){var f=d.split("_");return c%10===1&&c%100!==11?f[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?f[1]:f[2]}function n(d,c,f){var v={ss:c?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:c?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:c?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return f==="m"?c?"хвилина":"хвилину":f==="h"?c?"година":"годину":d+" "+a(v[f],+d)}function s(d,c){var f={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},v;return d===!0?f.nominative.slice(1,7).concat(f.nominative.slice(0,1)):d?(v=/(\[[ВвУу]\]) ?dddd/.test(c)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(c)?"genitive":"nominative",f[v][d.day()]):f.nominative}function o(d){return function(){return d+"о"+(this.hours()===11?"б":"")+"] LT"}}var l=r.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:s,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(d){return/^(дня|вечора)$/.test(d)},meridiem:function(d,c,f){return d<4?"ночі":d<12?"ранку":d<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(d,c){switch(c){case"M":case"d":case"DDD":case"w":case"W":return d+"-й";case"D":return d+"-го";default:return d}},week:{dow:1,doy:7}});return l})})();var ge=function(e){try{return!!e()}catch{return!0}},fO=ge,As=!fO(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),rb=As,nb=Function.prototype,Ou=nb.call,pO=rb&&nb.bind.bind(Ou,Ou),Ee=rb?pO:function(e){return function(){return Ou.apply(e,arguments)}},vO=Math.ceil,mO=Math.floor,gO=Math.trunc||function(t){var r=+t;return(r>0?mO:vO)(r)},yO=gO,Is=function(e){var t=+e;return t!==t||t===0?0:yO(t)},Ao=function(e){return e&&e.Math===Math&&e},Ye=Ao(typeof globalThis=="object"&&globalThis)||Ao(typeof window=="object"&&window)||Ao(typeof self=="object"&&self)||Ao(typeof Jt=="object"&&Jt)||function(){return this}()||Jt||Function("return this")(),ib={exports:{}},_O=!0,_v=Ye,bO=Object.defineProperty,wO=function(e,t){try{bO(_v,e,{value:t,configurable:!0,writable:!0})}catch{_v[e]=t}return t},EO=Ye,SO=wO,bv="__core-js_shared__",kO=EO[bv]||SO(bv,{}),jh=kO,wv=jh;(ib.exports=function(e,t){return wv[e]||(wv[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ta=ib.exports,$a=function(e){return e==null},xO=$a,TO=TypeError,Da=function(e){if(xO(e))throw new TO("Can't call method on "+e);return e},$O=Da,DO=Object,Ot=function(e){return DO($O(e))},NO=Ee,CO=Ot,OO=NO({}.hasOwnProperty),tt=Object.hasOwn||function(t,r){return OO(CO(t),r)},AO=Ee,IO=0,PO=Math.random(),MO=AO(1 .toString),Kl=function(e){return"Symbol("+(e===void 0?"":e)+")_"+MO(++IO+PO,36)},Pn=typeof navigator<"u"&&String(navigator.userAgent)||"",ab=Ye,nc=Pn,Ev=ab.process,Sv=ab.Deno,kv=Ev&&Ev.versions||Sv&&Sv.version,xv=kv&&kv.v8,Er,ml;xv&&(Er=xv.split("."),ml=Er[0]>0&&Er[0]<4?1:+(Er[0]+Er[1]));!ml&&nc&&(Er=nc.match(/Edge\/(\d+)/),(!Er||Er[1]>=74)&&(Er=nc.match(/Chrome\/(\d+)/),Er&&(ml=+Er[1])));var Na=ml,Tv=Na,RO=ge,LO=Ye,VO=LO.String,Ca=!!Object.getOwnPropertySymbols&&!RO(function(){var e=Symbol("symbol detection");return!VO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tv&&Tv<41}),FO=Ca,sb=FO&&!Symbol.sham&&typeof Symbol.iterator=="symbol",YO=Ye,jO=Ta,$v=tt,BO=Kl,HO=Ca,WO=sb,Zi=YO.Symbol,ic=jO("wks"),GO=WO?Zi.for||Zi:Zi&&Zi.withoutSetter||BO,je=function(e){return $v(ic,e)||(ic[e]=HO&&$v(Zi,e)?Zi[e]:GO("Symbol."+e)),ic[e]},zO=je,UO=zO("toStringTag"),ob={};ob[UO]="z";var Bh=String(ob)==="[object z]",Au=typeof document=="object"&&document.all,KO=typeof Au>"u"&&Au!==void 0,lb={all:Au,IS_HTMLDDA:KO},db=lb,qO=db.all,ze=db.IS_HTMLDDA?function(e){return typeof e=="function"||e===qO}:function(e){return typeof e=="function"},cb=Ee,XO=cb({}.toString),QO=cb("".slice),dn=function(e){return QO(XO(e),8,-1)},ZO=Bh,JO=ze,al=dn,eA=je,tA=eA("toStringTag"),rA=Object,nA=al(function(){return arguments}())==="Arguments",iA=function(e,t){try{return e[t]}catch{}},cn=ZO?al:function(e){var t,r,a;return e===void 0?"Undefined":e===null?"Null":typeof(r=iA(t=rA(e),tA))=="string"?r:nA?al(t):(a=al(t))==="Object"&&JO(t.callee)?"Arguments":a},aA=cn,sA=String,fr=function(e){if(aA(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return sA(e)},Hh=Ee,oA=Is,lA=fr,dA=Da,cA=Hh("".charAt),Dv=Hh("".charCodeAt),uA=Hh("".slice),hA=function(e){return function(t,r){var a=lA(dA(t)),n=oA(r),s=a.length,o,l;return n<0||n>=s?e?"":void 0:(o=Dv(a,n),o<55296||o>56319||n+1===s||(l=Dv(a,n+1))<56320||l>57343?e?cA(a,n):o:e?uA(a,n,n+2):(o-55296<<10)+(l-56320)+65536)}},fA={charAt:hA(!0)},pA=Ye,vA=ze,Nv=pA.WeakMap,mA=vA(Nv)&&/native code/.test(String(Nv)),Cv=ze,ub=lb,gA=ub.all,dt=ub.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Cv(e)||e===gA}:function(e){return typeof e=="object"?e!==null:Cv(e)},yA=ge,ot=!yA(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Bt={},_A=Ye,Ov=dt,Iu=_A.document,bA=Ov(Iu)&&Ov(Iu.createElement),Wh=function(e){return bA?Iu.createElement(e):{}},wA=ot,EA=ge,SA=Wh,hb=!wA&&!EA(function(){return Object.defineProperty(SA("div"),"a",{get:function(){return 7}}).a!==7}),kA=ot,xA=ge,fb=kA&&xA(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),TA=dt,$A=String,DA=TypeError,ir=function(e){if(TA(e))return e;throw new DA($A(e)+" is not an object")},NA=As,Io=Function.prototype.call,ct=NA?Io.bind(Io):function(){return Io.apply(Io,arguments)},xe={},ac=xe,sc=Ye,CA=ze,Av=function(e){return CA(e)?e:void 0},At=function(e,t){return arguments.length<2?Av(ac[e])||Av(sc[e]):ac[e]&&ac[e][t]||sc[e]&&sc[e][t]},OA=Ee,Oe=OA({}.isPrototypeOf),AA=At,IA=ze,PA=Oe,MA=sb,RA=Object,Ps=MA?function(e){return typeof e=="symbol"}:function(e){var t=AA("Symbol");return IA(t)&&PA(t.prototype,RA(e))},LA=String,Oa=function(e){try{return LA(e)}catch{return"Object"}},VA=ze,FA=Oa,YA=TypeError,Ht=function(e){if(VA(e))return e;throw new YA(FA(e)+" is not a function")},jA=Ht,BA=$a,Gh=function(e,t){var r=e[t];return BA(r)?void 0:jA(r)},oc=ct,lc=ze,dc=dt,HA=TypeError,WA=function(e,t){var r,a;if(t==="string"&&lc(r=e.toString)&&!dc(a=oc(r,e))||lc(r=e.valueOf)&&!dc(a=oc(r,e))||t!=="string"&&lc(r=e.toString)&&!dc(a=oc(r,e)))return a;throw new HA("Can't convert object to primitive value")},GA=ct,Iv=dt,Pv=Ps,zA=Gh,UA=WA,KA=je,qA=TypeError,XA=KA("toPrimitive"),QA=function(e,t){if(!Iv(e)||Pv(e))return e;var r=zA(e,XA),a;if(r){if(t===void 0&&(t="default"),a=GA(r,e,t),!Iv(a)||Pv(a))return a;throw new qA("Can't convert object to primitive value")}return t===void 0&&(t="number"),UA(e,t)},ZA=QA,JA=Ps,ql=function(e){var t=ZA(e,"string");return JA(t)?t:t+""},eI=ot,tI=hb,rI=fb,Po=ir,Mv=ql,nI=TypeError,cc=Object.defineProperty,iI=Object.getOwnPropertyDescriptor,uc="enumerable",hc="configurable",fc="writable";Bt.f=eI?rI?function(t,r,a){if(Po(t),r=Mv(r),Po(a),typeof t=="function"&&r==="prototype"&&"value"in a&&fc in a&&!a[fc]){var n=iI(t,r);n&&n[fc]&&(t[r]=a.value,a={configurable:hc in a?a[hc]:n[hc],enumerable:uc in a?a[uc]:n[uc],writable:!1})}return cc(t,r,a)}:cc:function(t,r,a){if(Po(t),r=Mv(r),Po(a),tI)try{return cc(t,r,a)}catch{}if("get"in a||"set"in a)throw new nI("Accessors not supported");return"value"in a&&(t[r]=a.value),t};var yi=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},aI=ot,sI=Bt,oI=yi,un=aI?function(e,t,r){return sI.f(e,t,oI(1,r))}:function(e,t,r){return e[t]=r,e},lI=Ta,dI=Kl,Rv=lI("keys"),Xl=function(e){return Rv[e]||(Rv[e]=dI(e))},Ms={},cI=mA,pb=Ye,uI=dt,hI=un,pc=tt,vc=jh,fI=Xl,pI=Ms,Lv="Object already initialized",Pu=pb.TypeError,vI=pb.WeakMap,gl,ms,yl,mI=function(e){return yl(e)?ms(e):gl(e,{})},gI=function(e){return function(t){var r;if(!uI(t)||(r=ms(t)).type!==e)throw new Pu("Incompatible receiver, "+e+" required");return r}};if(cI||vc.state){var Ir=vc.state||(vc.state=new vI);Ir.get=Ir.get,Ir.has=Ir.has,Ir.set=Ir.set,gl=function(e,t){if(Ir.has(e))throw new Pu(Lv);return t.facade=e,Ir.set(e,t),t},ms=function(e){return Ir.get(e)||{}},yl=function(e){return Ir.has(e)}}else{var Li=fI("state");pI[Li]=!0,gl=function(e,t){if(pc(e,Li))throw new Pu(Lv);return t.facade=e,hI(e,Li,t),t},ms=function(e){return pc(e,Li)?e[Li]:{}},yl=function(e){return pc(e,Li)}}var Aa={set:gl,get:ms,has:yl,enforce:mI,getterFor:gI},yI=As,vb=Function.prototype,Vv=vb.apply,Fv=vb.call,Ia=typeof Reflect=="object"&&Reflect.apply||(yI?Fv.bind(Vv):function(){return Fv.apply(Vv,arguments)}),_I=dn,bI=Ee,zh=function(e){if(_I(e)==="Function")return bI(e)},_i={},Rs={},mb={}.propertyIsEnumerable,gb=Object.getOwnPropertyDescriptor,wI=gb&&!mb.call({1:2},1);Rs.f=wI?function(t){var r=gb(this,t);return!!r&&r.enumerable}:mb;var EI=Ee,SI=ge,kI=dn,mc=Object,xI=EI("".split),Ql=SI(function(){return!mc("z").propertyIsEnumerable(0)})?function(e){return kI(e)==="String"?xI(e,""):mc(e)}:mc,TI=Ql,$I=Da,Dr=function(e){return TI($I(e))},DI=ot,NI=ct,CI=Rs,OI=yi,AI=Dr,II=ql,PI=tt,MI=hb,Yv=Object.getOwnPropertyDescriptor;_i.f=DI?Yv:function(t,r){if(t=AI(t),r=II(r),MI)try{return Yv(t,r)}catch{}if(PI(t,r))return OI(!NI(CI.f,t,r),t[r])};var RI=ge,LI=ze,VI=/#|\.prototype\./,Ls=function(e,t){var r=YI[FI(e)];return r===BI?!0:r===jI?!1:LI(t)?RI(t):!!t},FI=Ls.normalize=function(e){return String(e).replace(VI,".").toLowerCase()},YI=Ls.data={},jI=Ls.NATIVE="N",BI=Ls.POLYFILL="P",yb=Ls,jv=zh,HI=Ht,WI=As,GI=jv(jv.bind),Mn=function(e,t){return HI(e),t===void 0?e:WI?GI(e,t):function(){return e.apply(t,arguments)}},Mo=Ye,zI=Ia,UI=zh,KI=ze,qI=_i.f,XI=yb,Vi=xe,QI=Mn,Fi=un,Bv=tt,ZI=function(e){var t=function(r,a,n){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,a)}return new e(r,a,n)}return zI(e,this,arguments)};return t.prototype=e.prototype,t},X=function(e,t){var r=e.target,a=e.global,n=e.stat,s=e.proto,o=a?Mo:n?Mo[r]:(Mo[r]||{}).prototype,l=a?Vi:Vi[r]||Fi(Vi,r,{})[r],d=l.prototype,c,f,v,m,g,b,S,w,k;for(m in t)c=XI(a?m:r+(n?".":"#")+m,e.forced),f=!c&&o&&Bv(o,m),b=l[m],f&&(e.dontCallGetSet?(k=qI(o,m),S=k&&k.value):S=o[m]),g=f&&S?S:t[m],!(f&&typeof b==typeof g)&&(e.bind&&f?w=QI(g,Mo):e.wrap&&f?w=ZI(g):s&&KI(g)?w=UI(g):w=g,(e.sham||g&&g.sham||b&&b.sham)&&Fi(w,"sham",!0),Fi(l,m,w),s&&(v=r+"Prototype",Bv(Vi,v)||Fi(Vi,v,{}),Fi(Vi[v],m,g),e.real&&d&&(c||!d[m])&&Fi(d,m,g)))},Mu=ot,JI=tt,_b=Function.prototype,eP=Mu&&Object.getOwnPropertyDescriptor,bb=JI(_b,"name"),tP=bb&&(function(){}).name==="something";bb&&(!Mu||Mu&&eP(_b,"name").configurable);var rP={PROPER:tP},Zl={},nP=Is,iP=Math.max,aP=Math.min,Vs=function(e,t){var r=nP(e);return r<0?iP(r+t,0):aP(r,t)},sP=Is,oP=Math.min,lP=function(e){return e>0?oP(sP(e),9007199254740991):0},dP=lP,Wt=function(e){return dP(e.length)},cP=Dr,uP=Vs,hP=Wt,Hv=function(e){return function(t,r,a){var n=cP(t),s=hP(n),o=uP(a,s),l;if(e&&r!==r){for(;s>o;)if(l=n[o++],l!==l)return!0}else for(;s>o;o++)if((e||o in n)&&n[o]===r)return e||o||0;return!e&&-1}},Uh={includes:Hv(!0),indexOf:Hv(!1)},fP=Ee,gc=tt,pP=Dr,vP=Uh.indexOf,mP=Ms,Wv=fP([].push),wb=function(e,t){var r=pP(e),a=0,n=[],s;for(s in r)!gc(mP,s)&&gc(r,s)&&Wv(n,s);for(;t.length>a;)gc(r,s=t[a++])&&(~vP(n,s)||Wv(n,s));return n},Kh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gP=wb,yP=Kh,Fs=Object.keys||function(t){return gP(t,yP)},_P=ot,bP=fb,wP=Bt,EP=ir,SP=Dr,kP=Fs;Zl.f=_P&&!bP?Object.defineProperties:function(t,r){EP(t);for(var a=SP(r),n=kP(r),s=n.length,o=0,l;s>o;)wP.f(t,l=n[o++],a[l]);return t};var xP=At,Eb=xP("document","documentElement"),TP=ir,$P=Zl,Gv=Kh,DP=Ms,NP=Eb,CP=Wh,OP=Xl,zv=">",Uv="<",Ru="prototype",Lu="script",Sb=OP("IE_PROTO"),yc=function(){},kb=function(e){return Uv+Lu+zv+e+Uv+"/"+Lu+zv},Kv=function(e){e.write(kb("")),e.close();var t=e.parentWindow.Object;return e=null,t},AP=function(){var e=CP("iframe"),t="java"+Lu+":",r;return e.style.display="none",NP.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(kb("document.F=Object")),r.close(),r.F},Ro,sl=function(){try{Ro=new ActiveXObject("htmlfile")}catch{}sl=typeof document<"u"?document.domain&&Ro?Kv(Ro):AP():Kv(Ro);for(var e=Gv.length;e--;)delete sl[Ru][Gv[e]];return sl()};DP[Sb]=!0;var bi=Object.create||function(t,r){var a;return t!==null?(yc[Ru]=TP(t),a=new yc,yc[Ru]=null,a[Sb]=t):a=sl(),r===void 0?a:$P.f(a,r)},IP=ge,xb=!IP(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),PP=tt,MP=ze,RP=Ot,LP=Xl,VP=xb,qv=LP("IE_PROTO"),Vu=Object,FP=Vu.prototype,Ys=VP?Vu.getPrototypeOf:function(e){var t=RP(e);if(PP(t,qv))return t[qv];var r=t.constructor;return MP(r)&&t instanceof r?r.prototype:t instanceof Vu?FP:null},YP=un,Pa=function(e,t,r,a){return a&&a.enumerable?e[t]=r:YP(e,t,r),e},jP=ge,BP=ze,HP=dt,WP=bi,Xv=Ys,GP=Pa,zP=je,Fu=zP("iterator"),Tb=!1,Zr,_c,bc;[].keys&&(bc=[].keys(),"next"in bc?(_c=Xv(Xv(bc)),_c!==Object.prototype&&(Zr=_c)):Tb=!0);var UP=!HP(Zr)||jP(function(){var e={};return Zr[Fu].call(e)!==e});UP?Zr={}:Zr=WP(Zr);BP(Zr[Fu])||GP(Zr,Fu,function(){return this});var $b={IteratorPrototype:Zr,BUGGY_SAFARI_ITERATORS:Tb},KP=Bh,qP=cn,XP=KP?{}.toString:function(){return"[object "+qP(this)+"]"},QP=Bh,ZP=Bt.f,JP=un,eM=tt,tM=XP,rM=je,Qv=rM("toStringTag"),wi=function(e,t,r,a){if(e){var n=r?e:e.prototype;eM(n,Qv)||ZP(n,Qv,{configurable:!0,value:t}),a&&!QP&&JP(n,"toString",tM)}},Ma={},nM=$b.IteratorPrototype,iM=bi,aM=yi,sM=wi,oM=Ma,lM=function(){return this},dM=function(e,t,r,a){var n=t+" Iterator";return e.prototype=iM(nM,{next:aM(+!a,r)}),sM(e,n,!1,!0),oM[n]=lM,e},cM=Ee,uM=Ht,hM=function(e,t,r){try{return cM(uM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch{}},fM=ze,pM=String,vM=TypeError,mM=function(e){if(typeof e=="object"||fM(e))return e;throw new vM("Can't set "+pM(e)+" as a prototype")},gM=hM,yM=ir,_M=mM,Db=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=gM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch{}return function(n,s){return yM(n),_M(s),e?r(n,s):n.__proto__=s,n}}():void 0),bM=X,wM=ct,EM=rP,SM=dM,kM=Ys,xM=wi,Zv=Pa,TM=je,Jv=Ma,$M=$b,DM=EM.PROPER,Lo=$M.BUGGY_SAFARI_ITERATORS,wc=TM("iterator"),em="keys",Vo="values",tm="entries",NM=function(){return this},qh=function(e,t,r,a,n,s,o){SM(r,t,a);var l=function(k){if(k===n&&m)return m;if(!Lo&&k&&k in f)return f[k];switch(k){case em:return function(){return new r(this,k)};case Vo:return function(){return new r(this,k)};case tm:return function(){return new r(this,k)}}return function(){return new r(this)}},d=t+" Iterator",c=!1,f=e.prototype,v=f[wc]||f["@@iterator"]||n&&f[n],m=!Lo&&v||l(n),g=t==="Array"&&f.entries||v,b,S,w;if(g&&(b=kM(g.call(new e)),b!==Object.prototype&&b.next&&(xM(b,d,!0,!0),Jv[d]=NM)),DM&&n===Vo&&v&&v.name!==Vo&&(c=!0,m=function(){return wM(v,this)}),n)if(S={values:l(Vo),keys:s?m:l(em),entries:l(tm)},o)for(w in S)(Lo||c||!(w in f))&&Zv(f,w,S[w]);else bM({target:t,proto:!0,forced:Lo||c},S);return o&&f[wc]!==m&&Zv(f,wc,m,{}),Jv[t]=m,S},Xh=function(e,t){return{value:e,done:t}},CM=fA.charAt,OM=fr,Nb=Aa,AM=qh,rm=Xh,Cb="String Iterator",IM=Nb.set,PM=Nb.getterFor(Cb);AM(String,"String",function(e){IM(this,{type:Cb,string:OM(e),index:0})},function(){var t=PM(this),r=t.string,a=t.index,n;return a>=r.length?rm(void 0,!0):(n=CM(r,a),t.index+=n.length,rm(n,!1))});var MM=ct,nm=ir,RM=Gh,Ob=function(e,t,r){var a,n;nm(e);try{if(a=RM(e,"return"),!a){if(t==="throw")throw r;return r}a=MM(a,e)}catch(s){n=!0,a=s}if(t==="throw")throw r;if(n)throw a;return nm(a),r},LM=ir,VM=Ob,FM=function(e,t,r,a){try{return a?t(LM(r)[0],r[1]):t(r)}catch(n){VM(e,"throw",n)}},YM=je,jM=Ma,BM=YM("iterator"),HM=Array.prototype,Ab=function(e){return e!==void 0&&(jM.Array===e||HM[BM]===e)},WM=Ee,GM=ze,Yu=jh,zM=WM(Function.toString);GM(Yu.inspectSource)||(Yu.inspectSource=function(e){return zM(e)});var Ib=Yu.inspectSource,UM=Ee,KM=ge,Pb=ze,qM=cn,XM=At,QM=Ib,Mb=function(){},ZM=[],Rb=XM("Reflect","construct"),Qh=/^\s*(?:class|function)\b/,JM=UM(Qh.exec),e2=!Qh.test(Mb),Za=function(t){if(!Pb(t))return!1;try{return Rb(Mb,ZM,t),!0}catch{return!1}},Lb=function(t){if(!Pb(t))return!1;switch(qM(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return e2||!!JM(Qh,QM(t))}catch{return!0}};Lb.sham=!0;var Jl=!Rb||KM(function(){var e;return Za(Za.call)||!Za(Object)||!Za(function(){e=!0})||e})?Lb:Za,t2=ql,r2=Bt,n2=yi,Ra=function(e,t,r){var a=t2(t);a in e?r2.f(e,a,n2(0,r)):e[a]=r},i2=cn,im=Gh,a2=$a,s2=Ma,o2=je,l2=o2("iterator"),ed=function(e){if(!a2(e))return im(e,l2)||im(e,"@@iterator")||s2[i2(e)]},d2=ct,c2=Ht,u2=ir,h2=Oa,f2=ed,p2=TypeError,Zh=function(e,t){var r=arguments.length<2?f2(e):t;if(c2(r))return u2(d2(r,e));throw new p2(h2(e)+" is not iterable")},v2=Mn,m2=ct,g2=Ot,y2=FM,_2=Ab,b2=Jl,w2=Wt,am=Ra,E2=Zh,S2=ed,sm=Array,k2=function(t){var r=g2(t),a=b2(this),n=arguments.length,s=n>1?arguments[1]:void 0,o=s!==void 0;o&&(s=v2(s,n>2?arguments[2]:void 0));var l=S2(r),d=0,c,f,v,m,g,b;if(l&&!(this===sm&&_2(l)))for(m=E2(r,l),g=m.next,f=a?new this:[];!(v=m2(g,m)).done;d++)b=o?y2(m,s,[v.value,d],!0):v.value,am(f,d,b);else for(c=w2(r),f=a?new this(c):sm(c);c>d;d++)b=o?s(r[d],d):r[d],am(f,d,b);return f.length=d,f},x2=je,Vb=x2("iterator"),Fb=!1;try{var T2=0,om={next:function(){return{done:!!T2++}},return:function(){Fb=!0}};om[Vb]=function(){return this},Array.from(om,function(){throw 2})}catch{}var Yb=function(e,t){try{if(!t&&!Fb)return!1}catch{return!1}var r=!1;try{var a={};a[Vb]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch{}return r},$2=X,D2=k2,N2=Yb,C2=!N2(function(e){Array.from(e)});$2({target:"Array",stat:!0,forced:C2},{from:D2});var O2=xe,A2=O2.Array.from,I2=A2,jb=I2,P2=jb,Rn=K(P2),M2=Dr,lm=Ma,Bb=Aa;Bt.f;var R2=qh,Fo=Xh,Hb="Array Iterator",L2=Bb.set,V2=Bb.getterFor(Hb);R2(Array,"Array",function(e,t){L2(this,{type:Hb,target:M2(e),index:0,kind:t})},function(){var e=V2(this),t=e.target,r=e.kind,a=e.index++;if(!t||a>=t.length)return e.target=void 0,Fo(void 0,!0);switch(r){case"keys":return Fo(a,!1);case"values":return Fo(t[a],!1)}return Fo([a,t[a]],!1)},"values");lm.Arguments=lm.Array;var F2=ed,Y2=F2,j2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},B2=j2,H2=Ye,W2=cn,G2=un,dm=Ma,z2=je,cm=z2("toStringTag");for(var Ec in B2){var um=H2[Ec],Sc=um&&um.prototype;Sc&&W2(Sc)!==cm&&G2(Sc,cm,Ec),dm[Ec]=dm.Array}var U2=Y2,K2=U2,q2=K2,X2=q2,Q2=X2,Z2=Q2,Wb=Z2,Gb=K(Wb),J2=Wb,Ln=K(J2);function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var zb={exports:{}},eR=X,tR=ot,hm=Bt.f;eR({target:"Object",stat:!0,forced:Object.defineProperty!==hm,sham:!tR},{defineProperty:hm});var rR=xe,Ub=rR.Object,nR=zb.exports=function(t,r,a){return Ub.defineProperty(t,r,a)};Ub.defineProperty.sham&&(nR.sham=!0);var iR=zb.exports,aR=iR,Kb=aR,sR=Kb,oR=sR,lR=oR,dR=lR,qb=dR,td=K(qb),cR=dn,Vn=Array.isArray||function(t){return cR(t)==="Array"},uR=TypeError,hR=9007199254740991,rd=function(e){if(e>hR)throw uR("Maximum allowed index exceeded");return e},fm=Vn,fR=Jl,pR=dt,vR=je,mR=vR("species"),pm=Array,gR=function(e){var t;return fm(e)&&(t=e.constructor,fR(t)&&(t===pm||fm(t.prototype))?t=void 0:pR(t)&&(t=t[mR],t===null&&(t=void 0))),t===void 0?pm:t},yR=gR,nd=function(e,t){return new(yR(e))(t===0?0:t)},_R=ge,bR=je,wR=Na,ER=bR("species"),js=function(e){return wR>=51||!_R(function(){var t=[],r=t.constructor={};return r[ER]=function(){return{foo:1}},t[e](Boolean).foo!==1})},SR=X,kR=ge,xR=Vn,TR=dt,$R=Ot,DR=Wt,vm=rd,mm=Ra,NR=nd,CR=js,OR=je,AR=Na,Xb=OR("isConcatSpreadable"),IR=AR>=51||!kR(function(){var e=[];return e[Xb]=!1,e.concat()[0]!==e}),PR=function(e){if(!TR(e))return!1;var t=e[Xb];return t!==void 0?!!t:xR(e)},MR=!IR||!CR("concat");SR({target:"Array",proto:!0,forced:MR},{concat:function(t){var r=$R(this),a=NR(r,0),n=0,s,o,l,d,c;for(s=-1,l=arguments.length;s<l;s++)if(c=s===-1?r:arguments[s],PR(c))for(d=DR(c),vm(n+d),o=0;o<d;o++,n++)o in c&&mm(a,n,c[o]);else vm(n+1),mm(a,n++,c);return a.length=n,a}});var Bs={},RR=wb,LR=Kh,VR=LR.concat("length","prototype");Bs.f=Object.getOwnPropertyNames||function(t){return RR(t,VR)};var Jh={},gm=Vs,FR=Wt,YR=Ra,jR=Array,BR=Math.max,Qb=function(e,t,r){for(var a=FR(e),n=gm(t,a),s=gm(r===void 0?a:r,a),o=jR(BR(s-n,0)),l=0;n<s;n++,l++)YR(o,l,e[n]);return o.length=l,o},HR=dn,WR=Dr,Zb=Bs.f,GR=Qb,Jb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zR=function(e){try{return Zb(e)}catch{return GR(Jb)}};Jh.f=function(t){return Jb&&HR(t)==="Window"?zR(t):Zb(WR(t))};var Hs={};Hs.f=Object.getOwnPropertySymbols;var UR=Bt,ef=function(e,t,r){return UR.f(e,t,r)},Ws={},KR=je;Ws.f=KR;var ym=xe,qR=tt,XR=Ws,QR=Bt.f,Ue=function(e){var t=ym.Symbol||(ym.Symbol={});qR(t,e)||QR(t,e,{value:XR.f(e)})},ZR=ct,JR=At,eL=je,tL=Pa,e0=function(){var e=JR("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=eL("toPrimitive");t&&!t[a]&&tL(t,a,function(n){return ZR(r,this)},{})},rL=Mn,nL=Ee,iL=Ql,aL=Ot,sL=Wt,oL=nd,_m=nL([].push),Gn=function(e){var t=e===1,r=e===2,a=e===3,n=e===4,s=e===6,o=e===7,l=e===5||s;return function(d,c,f,v){for(var m=aL(d),g=iL(m),b=rL(c,f),S=sL(g),w=0,k=v||oL,T=t?k(d,S):r||o?k(d,0):void 0,D,N;S>w;w++)if((l||w in g)&&(D=g[w],N=b(D,w,m),e))if(t)T[w]=N;else if(N)switch(e){case 3:return!0;case 5:return D;case 6:return w;case 2:_m(T,D)}else switch(e){case 4:return!1;case 7:_m(T,D)}return s?-1:a||n?n:T}},hn={forEach:Gn(0),map:Gn(1),filter:Gn(2),some:Gn(3),every:Gn(4),find:Gn(5),findIndex:Gn(6)},id=X,ad=Ye,tf=ct,lL=Ee,fa=ot,pa=Ca,dL=ge,lt=tt,cL=Oe,ju=ir,sd=Dr,rf=ql,uL=fr,Bu=yi,gs=bi,t0=Fs,hL=Bs,r0=Jh,fL=Hs,n0=_i,i0=Bt,pL=Zl,a0=Rs,bm=Pa,vL=ef,nf=Ta,mL=Xl,s0=Ms,wm=Kl,gL=je,yL=Ws,_L=Ue,bL=e0,wL=wi,o0=Aa,od=hn.forEach,Vt=mL("hidden"),ld="Symbol",ys="prototype",EL=o0.set,Em=o0.getterFor(ld),Sr=Object[ys],ei=ad.Symbol,ns=ei&&ei[ys],SL=ad.RangeError,kL=ad.TypeError,kc=ad.QObject,l0=n0.f,ti=i0.f,d0=r0.f,xL=a0.f,c0=lL([].push),nn=nf("symbols"),Gs=nf("op-symbols"),TL=nf("wks"),Hu=!kc||!kc[ys]||!kc[ys].findChild,u0=function(e,t,r){var a=l0(Sr,t);a&&delete Sr[t],ti(e,t,r),a&&e!==Sr&&ti(Sr,t,a)},Wu=fa&&dL(function(){return gs(ti({},"a",{get:function(){return ti(this,"a",{value:7}).a}})).a!==7})?u0:ti,xc=function(e,t){var r=nn[e]=gs(ns);return EL(r,{type:ld,tag:e,description:t}),fa||(r.description=t),r},dd=function(t,r,a){t===Sr&&dd(Gs,r,a),ju(t);var n=rf(r);return ju(a),lt(nn,n)?(a.enumerable?(lt(t,Vt)&&t[Vt][n]&&(t[Vt][n]=!1),a=gs(a,{enumerable:Bu(0,!1)})):(lt(t,Vt)||ti(t,Vt,Bu(1,{})),t[Vt][n]=!0),Wu(t,n,a)):ti(t,n,a)},af=function(t,r){ju(t);var a=sd(r),n=t0(a).concat(v0(a));return od(n,function(s){(!fa||tf(h0,a,s))&&dd(t,s,a[s])}),t},$L=function(t,r){return r===void 0?gs(t):af(gs(t),r)},h0=function(t){var r=rf(t),a=tf(xL,this,r);return this===Sr&<(nn,r)&&!lt(Gs,r)?!1:a||!lt(this,r)||!lt(nn,r)||lt(this,Vt)&&this[Vt][r]?a:!0},f0=function(t,r){var a=sd(t),n=rf(r);if(!(a===Sr&<(nn,n)&&!lt(Gs,n))){var s=l0(a,n);return s&<(nn,n)&&!(lt(a,Vt)&&a[Vt][n])&&(s.enumerable=!0),s}},p0=function(t){var r=d0(sd(t)),a=[];return od(r,function(n){!lt(nn,n)&&!lt(s0,n)&&c0(a,n)}),a},v0=function(e){var t=e===Sr,r=d0(t?Gs:sd(e)),a=[];return od(r,function(n){lt(nn,n)&&(!t||lt(Sr,n))&&c0(a,nn[n])}),a};pa||(ei=function(){if(cL(ns,this))throw new kL("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:uL(arguments[0]),r=wm(t),a=function(n){this===Sr&&tf(a,Gs,n),lt(this,Vt)&<(this[Vt],r)&&(this[Vt][r]=!1);var s=Bu(1,n);try{Wu(this,r,s)}catch(o){if(!(o instanceof SL))throw o;u0(this,r,s)}};return fa&&Hu&&Wu(Sr,r,{configurable:!0,set:a}),xc(r,t)},ns=ei[ys],bm(ns,"toString",function(){return Em(this).tag}),bm(ei,"withoutSetter",function(e){return xc(wm(e),e)}),a0.f=h0,i0.f=dd,pL.f=af,n0.f=f0,hL.f=r0.f=p0,fL.f=v0,yL.f=function(e){return xc(gL(e),e)},fa&&vL(ns,"description",{configurable:!0,get:function(){return Em(this).description}}));id({global:!0,wrap:!0,forced:!pa,sham:!pa},{Symbol:ei});od(t0(TL),function(e){_L(e)});id({target:ld,stat:!0,forced:!pa},{useSetter:function(){Hu=!0},useSimple:function(){Hu=!1}});id({target:"Object",stat:!0,forced:!pa,sham:!fa},{create:$L,defineProperty:dd,defineProperties:af,getOwnPropertyDescriptor:f0});id({target:"Object",stat:!0,forced:!pa},{getOwnPropertyNames:p0});bL();wL(ei,ld);s0[Vt]=!0;var DL=Ca,m0=DL&&!!Symbol.for&&!!Symbol.keyFor,NL=X,CL=At,OL=tt,AL=fr,g0=Ta,IL=m0,Tc=g0("string-to-symbol-registry"),PL=g0("symbol-to-string-registry");NL({target:"Symbol",stat:!0,forced:!IL},{for:function(e){var t=AL(e);if(OL(Tc,t))return Tc[t];var r=CL("Symbol")(t);return Tc[t]=r,PL[r]=t,r}});var ML=X,RL=tt,LL=Ps,VL=Oa,FL=Ta,YL=m0,Sm=FL("symbol-to-string-registry");ML({target:"Symbol",stat:!0,forced:!YL},{keyFor:function(t){if(!LL(t))throw new TypeError(VL(t)+" is not a symbol");if(RL(Sm,t))return Sm[t]}});var jL=Ee,zs=jL([].slice),BL=Ee,km=Vn,HL=ze,xm=dn,WL=fr,Tm=BL([].push),GL=function(e){if(HL(e))return e;if(km(e)){for(var t=e.length,r=[],a=0;a<t;a++){var n=e[a];typeof n=="string"?Tm(r,n):(typeof n=="number"||xm(n)==="Number"||xm(n)==="String")&&Tm(r,WL(n))}var s=r.length,o=!0;return function(l,d){if(o)return o=!1,d;if(km(this))return d;for(var c=0;c<s;c++)if(r[c]===l)return d}}},zL=X,y0=At,_0=Ia,UL=ct,Us=Ee,b0=ge,$m=ze,Dm=Ps,w0=zs,KL=GL,qL=Ca,XL=String,Sn=y0("JSON","stringify"),Yo=Us(/./.exec),Nm=Us("".charAt),QL=Us("".charCodeAt),ZL=Us("".replace),JL=Us(1 .toString),eV=/[\uD800-\uDFFF]/g,Cm=/^[\uD800-\uDBFF]$/,Om=/^[\uDC00-\uDFFF]$/,Am=!qL||b0(function(){var e=y0("Symbol")("stringify detection");return Sn([e])!=="[null]"||Sn({a:e})!=="{}"||Sn(Object(e))!=="{}"}),Im=b0(function(){return Sn("\uDF06\uD834")!=='"\\udf06\\ud834"'||Sn("\uDEAD")!=='"\\udead"'}),tV=function(e,t){var r=w0(arguments),a=KL(t);if(!(!$m(a)&&(e===void 0||Dm(e))))return r[1]=function(n,s){if($m(a)&&(s=UL(a,this,XL(n),s)),!Dm(s))return s},_0(Sn,null,r)},rV=function(e,t,r){var a=Nm(r,t-1),n=Nm(r,t+1);return Yo(Cm,e)&&!Yo(Om,n)||Yo(Om,e)&&!Yo(Cm,a)?"\\u"+JL(QL(e,0),16):e};Sn&&zL({target:"JSON",stat:!0,forced:Am||Im},{stringify:function(t,r,a){var n=w0(arguments),s=_0(Am?tV:Sn,null,n);return Im&&typeof s=="string"?ZL(s,eV,rV):s}});var nV=X,iV=Ca,aV=ge,E0=Hs,sV=Ot,oV=!iV||aV(function(){E0.f(1)});nV({target:"Object",stat:!0,forced:oV},{getOwnPropertySymbols:function(t){var r=E0.f;return r?r(sV(t)):[]}});var lV=Ue;lV("asyncIterator");var dV=Ue;dV("hasInstance");var cV=Ue;cV("isConcatSpreadable");var uV=Ue;uV("iterator");var hV=Ue;hV("match");var fV=Ue;fV("matchAll");var pV=Ue;pV("replace");var vV=Ue;vV("search");var mV=Ue;mV("species");var gV=Ue;gV("split");var yV=Ue,_V=e0;yV("toPrimitive");_V();var bV=At,wV=Ue,EV=wi;wV("toStringTag");EV(bV("Symbol"),"Symbol");var SV=Ue;SV("unscopables");var kV=Ye,xV=wi;xV(kV.JSON,"JSON",!0);var TV=xe,$V=TV.Symbol,DV=$V,S0=DV,NV=je,CV=Bt.f,Pm=NV("metadata"),Mm=Function.prototype;Mm[Pm]===void 0&&CV(Mm,Pm,{value:null});var OV=Ue;OV("asyncDispose");var AV=Ue;AV("dispose");var IV=Ue;IV("metadata");var PV=S0,MV=PV,RV=At,LV=Ee,sf=RV("Symbol"),VV=sf.keyFor,FV=LV(sf.prototype.valueOf),k0=sf.isRegisteredSymbol||function(t){try{return VV(FV(t))!==void 0}catch{return!1}},YV=X,jV=k0;YV({target:"Symbol",stat:!0},{isRegisteredSymbol:jV});var BV=Ta,x0=At,HV=Ee,WV=Ps,GV=je,_l=x0("Symbol"),Rm=_l.isWellKnownSymbol,T0=x0("Object","getOwnPropertyNames"),zV=HV(_l.prototype.valueOf),Lm=BV("wks");for(var $c=0,Vm=T0(_l),UV=Vm.length;$c<UV;$c++)try{var Fm=Vm[$c];WV(_l[Fm])&&GV(Fm)}catch{}var $0=function(t){if(Rm&&Rm(t))return!0;try{for(var r=zV(t),a=0,n=T0(Lm),s=n.length;a<s;a++)if(Lm[n[a]]==r)return!0}catch{}return!1},KV=X,qV=$0;KV({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:qV});var XV=Ue;XV("matcher");var QV=Ue;QV("observable");var ZV=X,JV=k0;ZV({target:"Symbol",stat:!0},{isRegistered:JV});var eF=X,tF=$0;eF({target:"Symbol",stat:!0,forced:!0},{isWellKnown:tF});var rF=Ue;rF("metadataKey");var nF=Ue;nF("patternMatch");var iF=Ue;iF("replaceAll");var aF=MV,sF=aF,of=sF,Ji=K(of),oF=Ws,lF=oF.f("iterator"),dF=lF,D0=dF,cF=D0,uF=cF,hF=uF,fF=hF,N0=fF,pF=K(N0);function ne(e){"@babel/helpers - typeof";return ne=typeof Ji=="function"&&typeof pF=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Ji=="function"&&t.constructor===Ji&&t!==Ji.prototype?"symbol":typeof t},ne(e)}var vF=Ws,mF=vF.f("toPrimitive"),gF=mF,yF=gF,_F=yF,bF=_F,wF=bF,EF=wF,SF=EF,kF=K(SF);function xF(e,t){if(ne(e)!=="object"||e===null)return e;var r=e[kF];if(r!==void 0){var a=r.call(e,t);if(ne(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C0(e){var t=xF(e,"string");return ne(t)==="symbol"?t:String(t)}function Ym(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),td(e,C0(a.key),a)}}function pe(e,t,r){return t&&Ym(e.prototype,t),r&&Ym(e,r),td(e,"prototype",{writable:!1}),e}var TF=X,$F=Vn;TF({target:"Array",stat:!0},{isArray:$F});var DF=xe,NF=DF.Array.isArray,CF=NF,O0=CF,OF=O0,AF=OF,IF=AF,PF=IF,MF=PF,A0=K(MF);function RF(e){if(A0(e))return e}var LF=ot,VF=Vn,FF=TypeError,YF=Object.getOwnPropertyDescriptor,jF=LF&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),I0=jF?function(e,t){if(VF(e)&&!YF(e,"length").writable)throw new FF("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},BF=X,HF=Ot,WF=Wt,GF=I0,zF=rd,UF=ge,KF=UF(function(){return[].push.call({length:4294967296},1)!==4294967297}),qF=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},XF=KF||!qF();BF({target:"Array",proto:!0,forced:XF},{push:function(t){var r=HF(this),a=WF(r),n=arguments.length;zF(a+n);for(var s=0;s<n;s++)r[a]=arguments[s],a++;return GF(r,a),a}});var QF=xe,We=function(e){return QF[e+"Prototype"]},ZF=We,JF=ZF("Array").push,e5=Oe,t5=JF,Dc=Array.prototype,r5=function(e){var t=e.push;return e===Dc||e5(Dc,e)&&t===Dc.push?t5:t},n5=r5,i5=n5,a5=i5,s5=a5,o5=s5,l5=o5,P0=l5,d5=K(P0);function c5(e,t){var r=e==null?null:typeof Ji<"u"&&Gb(e)||e["@@iterator"];if(r!=null){var a,n,s,o,l=[],d=!0,c=!1;try{if(s=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;d=!1}else for(;!(d=(a=s.call(r)).done)&&(d5(l).call(l,a.value),l.length!==t);d=!0);}catch(f){c=!0,n=f}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return l}}var u5=X,jm=Vn,h5=Jl,f5=dt,Bm=Vs,p5=Wt,v5=Dr,m5=Ra,g5=je,y5=js,_5=zs,b5=y5("slice"),w5=g5("species"),Nc=Array,E5=Math.max;u5({target:"Array",proto:!0,forced:!b5},{slice:function(t,r){var a=v5(this),n=p5(a),s=Bm(t,n),o=Bm(r===void 0?n:r,n),l,d,c;if(jm(a)&&(l=a.constructor,h5(l)&&(l===Nc||jm(l.prototype))?l=void 0:f5(l)&&(l=l[w5],l===null&&(l=void 0)),l===Nc||l===void 0))return _5(a,s,o);for(d=new(l===void 0?Nc:l)(E5(o-s,0)),c=0;s<o;s++,c++)s in a&&m5(d,c,a[s]);return d.length=c,d}});var S5=We,k5=S5("Array").slice,x5=Oe,T5=k5,Cc=Array.prototype,$5=function(e){var t=e.slice;return e===Cc||x5(Cc,e)&&t===Cc.slice?T5:t},D5=$5,M0=D5,N5=M0,C5=N5,O5=C5,A5=O5,R0=A5,I5=K(R0),P5=jb,M5=P5,R5=M5,L5=R5,V5=L5,L0=K(V5);function Gu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function V0(e,t){var r;if(e){if(typeof e=="string")return Gu(e,t);var a=I5(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return L0(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Gu(e,t)}}function F5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
43
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
44
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
45
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
28
|
+
`+new Error().stack),g=!1}return v.apply(this,arguments)},v)}var H={};function W(c,v){a.deprecationHandler!=null&&a.deprecationHandler(c,v),H[c]||(I(v),H[c]=!0)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;function q(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function de(c){var v,g;for(g in c)l(c,g)&&(v=c[g],q(v)?this[g]=v:this["_"+g]=v);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ae(c,v){var g=y({},c),_;for(_ in v)l(v,_)&&(o(c[_])&&o(v[_])?(g[_]={},y(g[_],c[_]),y(g[_],v[_])):v[_]!=null?g[_]=v[_]:delete g[_]);for(_ in c)l(c,_)&&!l(v,_)&&o(c[_])&&(g[_]=y({},g[_]));return g}function Je(c){c!=null&&this.set(c)}var Fe;Object.keys?Fe=Object.keys:Fe=function(c){var v,g=[];for(v in c)l(c,v)&&g.push(v);return g};var xt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function _r(c,v,g){var _=this._calendar[c]||this._calendar.sameElse;return q(_)?_.call(v,g):_}function We(c,v,g){var _=""+Math.abs(c),k=v-_.length,$=c>=0;return($?g?"+":"":"-")+Math.pow(10,Math.max(0,k)).toString().substr(1)+_}var ur=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Zt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fn={},br={};function K(c,v,g,_){var k=_;typeof _=="string"&&(k=function(){return this[_]()}),c&&(br[c]=k),v&&(br[v[0]]=function(){return We(k.apply(this,arguments),v[1],v[2])}),g&&(br[g]=function(){return this.localeData().ordinal(k.apply(this,arguments),c)})}function Yn(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function jn(c){var v=c.match(ur),g,_;for(g=0,_=v.length;g<_;g++)br[v[g]]?v[g]=br[v[g]]:v[g]=Yn(v[g]);return function(k){var $="",C;for(C=0;C<_;C++)$+=q(v[C])?v[C].call(k,c):v[C];return $}}function Wr(c,v){return c.isValid()?(v=j(v,c.localeData()),Fn[v]=Fn[v]||jn(v),Fn[v](c)):c.localeData().invalidDate()}function j(c,v){var g=5;function _(k){return v.longDateFormat(k)||k}for(Zt.lastIndex=0;g>=0&&Zt.test(c);)c=c.replace(Zt,_),Zt.lastIndex=0,g-=1;return c}var R={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(c){var v=this._longDateFormat[c],g=this._longDateFormat[c.toUpperCase()];return v||!g?v:(this._longDateFormat[c]=g.match(ur).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var X="Invalid date";function ie(){return this._invalidDate}var te="%d",Ye=/\d{1,2}/;function it(c){return this._ordinal.replace("%d",c)}var st={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wr(c,v,g,_){var k=this._relativeTime[g];return q(k)?k(c,v,g,_):k.replace(/%d/i,c)}function cr(c,v){var g=this._relativeTime[c>0?"future":"past"];return q(g)?g(v):g.replace(/%s/i,v)}var It={};function ot(c,v){var g=c.toLowerCase();It[g]=It[g+"s"]=It[v]=c}function Wt(c){return typeof c=="string"?It[c]||It[c.toLowerCase()]:void 0}function Ho(c){var v={},g,_;for(_ in c)l(c,_)&&(g=Wt(_),g&&(v[g]=c[_]));return v}var Cc={};function lt(c,v){Cc[c]=v}function Ib(c){var v=[],g;for(g in c)l(c,g)&&v.push({unit:g,priority:Cc[g]});return v.sort(function(_,k){return _.priority-k.priority}),v}function Xa(c){return c%4===0&&c%100!==0||c%400===0}function Gt(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function le(c){var v=+c,g=0;return v!==0&&isFinite(v)&&(g=Gt(v)),g}function Yi(c,v){return function(g){return g!=null?(Oc(this,c,g),a.updateOffset(this,v),this):qa(this,c)}}function qa(c,v){return c.isValid()?c._d["get"+(c._isUTC?"UTC":"")+v]():NaN}function Oc(c,v,g){c.isValid()&&!isNaN(g)&&(v==="FullYear"&&Xa(c.year())&&c.month()===1&&c.date()===29?(g=le(g),c._d["set"+(c._isUTC?"UTC":"")+v](g,c.month(),rs(g,c.month()))):c._d["set"+(c._isUTC?"UTC":"")+v](g))}function Mb(c){return c=Wt(c),q(this[c])?this[c]():this}function Ab(c,v){if(typeof c=="object"){c=Ho(c);var g=Ib(c),_,k=g.length;for(_=0;_<k;_++)this[g[_].unit](c[g[_].unit])}else if(c=Wt(c),q(this[c]))return this[c](v);return this}var Pc=/\d/,Mt=/\d\d/,Ic=/\d{3}/,Wo=/\d{4}/,Ka=/[+-]?\d{6}/,Ce=/\d\d?/,Mc=/\d\d\d\d?/,Ac=/\d\d\d\d\d\d?/,Za=/\d{1,3}/,Go=/\d{1,4}/,Qa=/[+-]?\d{1,6}/,ji=/\d+/,Ja=/[+-]?\d+/,Vb=/Z|[+-]\d\d:?\d\d/gi,es=/Z|[+-]\d\d(?::?\d\d)?/gi,Rb=/[+-]?\d+(\.\d{1,3})?/,Bn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ts;ts={};function G(c,v,g){ts[c]=q(v)?v:function(_,k){return _&&g?g:v}}function Lb(c,v){return l(ts,c)?ts[c](v._strict,v._locale):new RegExp(Fb(c))}function Fb(c){return At(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(v,g,_,k,$){return g||_||k||$}))}function At(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var zo={};function we(c,v){var g,_=v,k;for(typeof c=="string"&&(c=[c]),f(v)&&(_=function($,C){C[v]=le($)}),k=c.length,g=0;g<k;g++)zo[c[g]]=_}function Hn(c,v){we(c,function(g,_,k,$){k._w=k._w||{},v(g,k._w,k,$)})}function Yb(c,v,g){v!=null&&l(zo,c)&&zo[c](v,g._a,g,c)}var dt=0,kr=1,hr=2,Ke=3,Qt=4,xr=5,ui=6,jb=7,Bb=8;function Hb(c,v){return(c%v+v)%v}var Ge;Array.prototype.indexOf?Ge=Array.prototype.indexOf:Ge=function(c){var v;for(v=0;v<this.length;++v)if(this[v]===c)return v;return-1};function rs(c,v){if(isNaN(c)||isNaN(v))return NaN;var g=Hb(v,12);return c+=(v-g)/12,g===1?Xa(c)?29:28:31-g%7%2}K("M",["MM",2],"Mo",function(){return this.month()+1}),K("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),K("MMMM",0,0,function(c){return this.localeData().months(this,c)}),ot("month","M"),lt("month",8),G("M",Ce),G("MM",Ce,Mt),G("MMM",function(c,v){return v.monthsShortRegex(c)}),G("MMMM",function(c,v){return v.monthsRegex(c)}),we(["M","MM"],function(c,v){v[kr]=le(c)-1}),we(["MMM","MMMM"],function(c,v,g,_){var k=g._locale.monthsParse(c,_,g._strict);k!=null?v[kr]=k:w(g).invalidMonth=c});var Wb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Vc="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Rc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gb=Bn,zb=Bn;function Ub(c,v){return c?s(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||Rc).test(v)?"format":"standalone"][c.month()]:s(this._months)?this._months:this._months.standalone}function Xb(c,v){return c?s(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[Rc.test(v)?"format":"standalone"][c.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qb(c,v,g){var _,k,$,C=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)$=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort($,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months($,"").toLocaleLowerCase();return g?v==="MMM"?(k=Ge.call(this._shortMonthsParse,C),k!==-1?k:null):(k=Ge.call(this._longMonthsParse,C),k!==-1?k:null):v==="MMM"?(k=Ge.call(this._shortMonthsParse,C),k!==-1?k:(k=Ge.call(this._longMonthsParse,C),k!==-1?k:null)):(k=Ge.call(this._longMonthsParse,C),k!==-1?k:(k=Ge.call(this._shortMonthsParse,C),k!==-1?k:null))}function Kb(c,v,g){var _,k,$;if(this._monthsParseExact)return qb.call(this,c,v,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(k=b([2e3,_]),g&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(k,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(k,"").replace(".","")+"$","i")),!g&&!this._monthsParse[_]&&($="^"+this.months(k,"")+"|^"+this.monthsShort(k,""),this._monthsParse[_]=new RegExp($.replace(".",""),"i")),g&&v==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(g&&v==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!g&&this._monthsParse[_].test(c))return _}}function Lc(c,v){var g;if(!c.isValid())return c;if(typeof v=="string"){if(/^\d+$/.test(v))v=le(v);else if(v=c.localeData().monthsParse(v),!f(v))return c}return g=Math.min(c.date(),rs(c.year(),v)),c._d["set"+(c._isUTC?"UTC":"")+"Month"](v,g),c}function Fc(c){return c!=null?(Lc(this,c),a.updateOffset(this,!0),this):qa(this,"Month")}function Zb(){return rs(this.year(),this.month())}function Qb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Yc.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Gb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Yc.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=zb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function Yc(){function c(C,Q){return Q.length-C.length}var v=[],g=[],_=[],k,$;for(k=0;k<12;k++)$=b([2e3,k]),v.push(this.monthsShort($,"")),g.push(this.months($,"")),_.push(this.months($,"")),_.push(this.monthsShort($,""));for(v.sort(c),g.sort(c),_.sort(c),k=0;k<12;k++)v[k]=At(v[k]),g[k]=At(g[k]);for(k=0;k<24;k++)_[k]=At(_[k]);this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+v.join("|")+")","i")}K("Y",0,0,function(){var c=this.year();return c<=9999?We(c,4):"+"+c}),K(0,["YY",2],0,function(){return this.year()%100}),K(0,["YYYY",4],0,"year"),K(0,["YYYYY",5],0,"year"),K(0,["YYYYYY",6,!0],0,"year"),ot("year","y"),lt("year",1),G("Y",Ja),G("YY",Ce,Mt),G("YYYY",Go,Wo),G("YYYYY",Qa,Ka),G("YYYYYY",Qa,Ka),we(["YYYYY","YYYYYY"],dt),we("YYYY",function(c,v){v[dt]=c.length===2?a.parseTwoDigitYear(c):le(c)}),we("YY",function(c,v){v[dt]=a.parseTwoDigitYear(c)}),we("Y",function(c,v){v[dt]=parseInt(c,10)});function Wn(c){return Xa(c)?366:365}a.parseTwoDigitYear=function(c){return le(c)+(le(c)>68?1900:2e3)};var jc=Yi("FullYear",!0);function e0(){return Xa(this.year())}function t0(c,v,g,_,k,$,C){var Q;return c<100&&c>=0?(Q=new Date(c+400,v,g,_,k,$,C),isFinite(Q.getFullYear())&&Q.setFullYear(c)):Q=new Date(c,v,g,_,k,$,C),Q}function Gn(c){var v,g;return c<100&&c>=0?(g=Array.prototype.slice.call(arguments),g[0]=c+400,v=new Date(Date.UTC.apply(null,g)),isFinite(v.getUTCFullYear())&&v.setUTCFullYear(c)):v=new Date(Date.UTC.apply(null,arguments)),v}function is(c,v,g){var _=7+v-g,k=(7+Gn(c,0,_).getUTCDay()-v)%7;return-k+_-1}function Bc(c,v,g,_,k){var $=(7+g-_)%7,C=is(c,_,k),Q=1+7*(v-1)+$+C,oe,ke;return Q<=0?(oe=c-1,ke=Wn(oe)+Q):Q>Wn(c)?(oe=c+1,ke=Q-Wn(c)):(oe=c,ke=Q),{year:oe,dayOfYear:ke}}function zn(c,v,g){var _=is(c.year(),v,g),k=Math.floor((c.dayOfYear()-_-1)/7)+1,$,C;return k<1?(C=c.year()-1,$=k+Er(C,v,g)):k>Er(c.year(),v,g)?($=k-Er(c.year(),v,g),C=c.year()+1):(C=c.year(),$=k),{week:$,year:C}}function Er(c,v,g){var _=is(c,v,g),k=is(c+1,v,g);return(Wn(c)-_+k)/7}K("w",["ww",2],"wo","week"),K("W",["WW",2],"Wo","isoWeek"),ot("week","w"),ot("isoWeek","W"),lt("week",5),lt("isoWeek",5),G("w",Ce),G("ww",Ce,Mt),G("W",Ce),G("WW",Ce,Mt),Hn(["w","ww","W","WW"],function(c,v,g,_){v[_.substr(0,1)]=le(c)});function r0(c){return zn(c,this._week.dow,this._week.doy).week}var i0={dow:0,doy:6};function n0(){return this._week.dow}function a0(){return this._week.doy}function s0(c){var v=this.localeData().week(this);return c==null?v:this.add((c-v)*7,"d")}function o0(c){var v=zn(this,1,4).week;return c==null?v:this.add((c-v)*7,"d")}K("d",0,"do","day"),K("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),K("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),K("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),K("e",0,0,"weekday"),K("E",0,0,"isoWeekday"),ot("day","d"),ot("weekday","e"),ot("isoWeekday","E"),lt("day",11),lt("weekday",11),lt("isoWeekday",11),G("d",Ce),G("e",Ce),G("E",Ce),G("dd",function(c,v){return v.weekdaysMinRegex(c)}),G("ddd",function(c,v){return v.weekdaysShortRegex(c)}),G("dddd",function(c,v){return v.weekdaysRegex(c)}),Hn(["dd","ddd","dddd"],function(c,v,g,_){var k=g._locale.weekdaysParse(c,_,g._strict);k!=null?v.d=k:w(g).invalidWeekday=c}),Hn(["d","e","E"],function(c,v,g,_){v[_]=le(c)});function l0(c,v){return typeof c!="string"?c:isNaN(c)?(c=v.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function d0(c,v){return typeof c=="string"?v.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Uo(c,v){return c.slice(v,7).concat(c.slice(0,v))}var u0="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Hc="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),c0="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),h0=Bn,f0=Bn,v0=Bn;function p0(c,v){var g=s(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(v)?"format":"standalone"];return c===!0?Uo(g,this._week.dow):c?g[c.day()]:g}function m0(c){return c===!0?Uo(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function g0(c){return c===!0?Uo(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function y0(c,v,g){var _,k,$,C=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)$=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays($,"").toLocaleLowerCase();return g?v==="dddd"?(k=Ge.call(this._weekdaysParse,C),k!==-1?k:null):v==="ddd"?(k=Ge.call(this._shortWeekdaysParse,C),k!==-1?k:null):(k=Ge.call(this._minWeekdaysParse,C),k!==-1?k:null):v==="dddd"?(k=Ge.call(this._weekdaysParse,C),k!==-1||(k=Ge.call(this._shortWeekdaysParse,C),k!==-1)?k:(k=Ge.call(this._minWeekdaysParse,C),k!==-1?k:null)):v==="ddd"?(k=Ge.call(this._shortWeekdaysParse,C),k!==-1||(k=Ge.call(this._weekdaysParse,C),k!==-1)?k:(k=Ge.call(this._minWeekdaysParse,C),k!==-1?k:null)):(k=Ge.call(this._minWeekdaysParse,C),k!==-1||(k=Ge.call(this._weekdaysParse,C),k!==-1)?k:(k=Ge.call(this._shortWeekdaysParse,C),k!==-1?k:null))}function _0(c,v,g){var _,k,$;if(this._weekdaysParseExact)return y0.call(this,c,v,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(k=b([2e3,1]).day(_),g&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(k,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(k,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(k,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||($="^"+this.weekdays(k,"")+"|^"+this.weekdaysShort(k,"")+"|^"+this.weekdaysMin(k,""),this._weekdaysParse[_]=new RegExp($.replace(".",""),"i")),g&&v==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(g&&v==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(g&&v==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!g&&this._weekdaysParse[_].test(c))return _}}function b0(c){if(!this.isValid())return c!=null?this:NaN;var v=this._isUTC?this._d.getUTCDay():this._d.getDay();return c!=null?(c=l0(c,this.localeData()),this.add(c-v,"d")):v}function w0(c){if(!this.isValid())return c!=null?this:NaN;var v=(this.day()+7-this.localeData()._week.dow)%7;return c==null?v:this.add(c-v,"d")}function k0(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var v=d0(c,this.localeData());return this.day(this.day()%7?v:v-7)}else return this.day()||7}function x0(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xo.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=h0),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function E0(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xo.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=f0),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function S0(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xo.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=v0),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xo(){function c(ft,Nr){return Nr.length-ft.length}var v=[],g=[],_=[],k=[],$,C,Q,oe,ke;for($=0;$<7;$++)C=b([2e3,1]).day($),Q=At(this.weekdaysMin(C,"")),oe=At(this.weekdaysShort(C,"")),ke=At(this.weekdays(C,"")),v.push(Q),g.push(oe),_.push(ke),k.push(Q),k.push(oe),k.push(ke);v.sort(c),g.sort(c),_.sort(c),k.sort(c),this._weekdaysRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+v.join("|")+")","i")}function qo(){return this.hours()%12||12}function $0(){return this.hours()||24}K("H",["HH",2],0,"hour"),K("h",["hh",2],0,qo),K("k",["kk",2],0,$0),K("hmm",0,0,function(){return""+qo.apply(this)+We(this.minutes(),2)}),K("hmmss",0,0,function(){return""+qo.apply(this)+We(this.minutes(),2)+We(this.seconds(),2)}),K("Hmm",0,0,function(){return""+this.hours()+We(this.minutes(),2)}),K("Hmmss",0,0,function(){return""+this.hours()+We(this.minutes(),2)+We(this.seconds(),2)});function Wc(c,v){K(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),v)})}Wc("a",!0),Wc("A",!1),ot("hour","h"),lt("hour",13);function Gc(c,v){return v._meridiemParse}G("a",Gc),G("A",Gc),G("H",Ce),G("h",Ce),G("k",Ce),G("HH",Ce,Mt),G("hh",Ce,Mt),G("kk",Ce,Mt),G("hmm",Mc),G("hmmss",Ac),G("Hmm",Mc),G("Hmmss",Ac),we(["H","HH"],Ke),we(["k","kk"],function(c,v,g){var _=le(c);v[Ke]=_===24?0:_}),we(["a","A"],function(c,v,g){g._isPm=g._locale.isPM(c),g._meridiem=c}),we(["h","hh"],function(c,v,g){v[Ke]=le(c),w(g).bigHour=!0}),we("hmm",function(c,v,g){var _=c.length-2;v[Ke]=le(c.substr(0,_)),v[Qt]=le(c.substr(_)),w(g).bigHour=!0}),we("hmmss",function(c,v,g){var _=c.length-4,k=c.length-2;v[Ke]=le(c.substr(0,_)),v[Qt]=le(c.substr(_,2)),v[xr]=le(c.substr(k)),w(g).bigHour=!0}),we("Hmm",function(c,v,g){var _=c.length-2;v[Ke]=le(c.substr(0,_)),v[Qt]=le(c.substr(_))}),we("Hmmss",function(c,v,g){var _=c.length-4,k=c.length-2;v[Ke]=le(c.substr(0,_)),v[Qt]=le(c.substr(_,2)),v[xr]=le(c.substr(k))});function D0(c){return(c+"").toLowerCase().charAt(0)==="p"}var T0=/[ap]\.?m?\.?/i,N0=Yi("Hours",!0);function C0(c,v,g){return c>11?g?"pm":"PM":g?"am":"AM"}var zc={calendar:xt,longDateFormat:R,invalidDate:X,ordinal:te,dayOfMonthOrdinalParse:Ye,relativeTime:st,months:Wb,monthsShort:Vc,week:i0,weekdays:u0,weekdaysMin:c0,weekdaysShort:Hc,meridiemParse:T0},Ve={},Un={},Xn;function O0(c,v){var g,_=Math.min(c.length,v.length);for(g=0;g<_;g+=1)if(c[g]!==v[g])return g;return _}function Uc(c){return c&&c.toLowerCase().replace("_","-")}function P0(c){for(var v=0,g,_,k,$;v<c.length;){for($=Uc(c[v]).split("-"),g=$.length,_=Uc(c[v+1]),_=_?_.split("-"):null;g>0;){if(k=ns($.slice(0,g).join("-")),k)return k;if(_&&_.length>=g&&O0($,_)>=g-1)break;g--}v++}return Xn}function I0(c){return c.match("^[^/\\\\]*$")!=null}function ns(c){var v=null,g;if(Ve[c]===void 0&&e&&e.exports&&I0(c))try{v=Xn._abbr,g=gr,g("./locale/"+c),Gr(v)}catch{Ve[c]=null}return Ve[c]}function Gr(c,v){var g;return c&&(u(v)?g=Sr(c):g=Ko(c,v),g?Xn=g:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),Xn._abbr}function Ko(c,v){if(v!==null){var g,_=zc;if(v.abbr=c,Ve[c]!=null)W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Ve[c]._config;else if(v.parentLocale!=null)if(Ve[v.parentLocale]!=null)_=Ve[v.parentLocale]._config;else if(g=ns(v.parentLocale),g!=null)_=g._config;else return Un[v.parentLocale]||(Un[v.parentLocale]=[]),Un[v.parentLocale].push({name:c,config:v}),null;return Ve[c]=new Je(Ae(_,v)),Un[c]&&Un[c].forEach(function(k){Ko(k.name,k.config)}),Gr(c),Ve[c]}else return delete Ve[c],null}function M0(c,v){if(v!=null){var g,_,k=zc;Ve[c]!=null&&Ve[c].parentLocale!=null?Ve[c].set(Ae(Ve[c]._config,v)):(_=ns(c),_!=null&&(k=_._config),v=Ae(k,v),_==null&&(v.abbr=c),g=new Je(v),g.parentLocale=Ve[c],Ve[c]=g),Gr(c)}else Ve[c]!=null&&(Ve[c].parentLocale!=null?(Ve[c]=Ve[c].parentLocale,c===Gr()&&Gr(c)):Ve[c]!=null&&delete Ve[c]);return Ve[c]}function Sr(c){var v;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return Xn;if(!s(c)){if(v=ns(c),v)return v;c=[c]}return P0(c)}function A0(){return Fe(Ve)}function Zo(c){var v,g=c._a;return g&&w(c).overflow===-2&&(v=g[kr]<0||g[kr]>11?kr:g[hr]<1||g[hr]>rs(g[dt],g[kr])?hr:g[Ke]<0||g[Ke]>24||g[Ke]===24&&(g[Qt]!==0||g[xr]!==0||g[ui]!==0)?Ke:g[Qt]<0||g[Qt]>59?Qt:g[xr]<0||g[xr]>59?xr:g[ui]<0||g[ui]>999?ui:-1,w(c)._overflowDayOfYear&&(v<dt||v>hr)&&(v=hr),w(c)._overflowWeeks&&v===-1&&(v=jb),w(c)._overflowWeekday&&v===-1&&(v=Bb),w(c).overflow=v),c}var V0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,R0=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,L0=/Z|[+-]\d\d(?::?\d\d)?/,as=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],F0=/^\/?Date\((-?\d+)/i,Y0=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,j0={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xc(c){var v,g,_=c._i,k=V0.exec(_)||R0.exec(_),$,C,Q,oe,ke=as.length,ft=Qo.length;if(k){for(w(c).iso=!0,v=0,g=ke;v<g;v++)if(as[v][1].exec(k[1])){C=as[v][0],$=as[v][2]!==!1;break}if(C==null){c._isValid=!1;return}if(k[3]){for(v=0,g=ft;v<g;v++)if(Qo[v][1].exec(k[3])){Q=(k[2]||" ")+Qo[v][0];break}if(Q==null){c._isValid=!1;return}}if(!$&&Q!=null){c._isValid=!1;return}if(k[4])if(L0.exec(k[4]))oe="Z";else{c._isValid=!1;return}c._f=C+(Q||"")+(oe||""),el(c)}else c._isValid=!1}function B0(c,v,g,_,k,$){var C=[H0(c),Vc.indexOf(v),parseInt(g,10),parseInt(_,10),parseInt(k,10)];return $&&C.push(parseInt($,10)),C}function H0(c){var v=parseInt(c,10);return v<=49?2e3+v:v<=999?1900+v:v}function W0(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function G0(c,v,g){if(c){var _=Hc.indexOf(c),k=new Date(v[0],v[1],v[2]).getDay();if(_!==k)return w(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function z0(c,v,g){if(c)return j0[c];if(v)return 0;var _=parseInt(g,10),k=_%100,$=(_-k)/100;return $*60+k}function qc(c){var v=Y0.exec(W0(c._i)),g;if(v){if(g=B0(v[4],v[3],v[2],v[5],v[6],v[7]),!G0(v[1],g,c))return;c._a=g,c._tzm=z0(v[8],v[9],v[10]),c._d=Gn.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),w(c).rfc2822=!0}else c._isValid=!1}function U0(c){var v=F0.exec(c._i);if(v!==null){c._d=new Date(+v[1]);return}if(Xc(c),c._isValid===!1)delete c._isValid;else return;if(qc(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:a.createFromInputFallback(c)}a.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function Bi(c,v,g){return c??v??g}function X0(c){var v=new Date(a.now());return c._useUTC?[v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()]:[v.getFullYear(),v.getMonth(),v.getDate()]}function Jo(c){var v,g,_=[],k,$,C;if(!c._d){for(k=X0(c),c._w&&c._a[hr]==null&&c._a[kr]==null&&q0(c),c._dayOfYear!=null&&(C=Bi(c._a[dt],k[dt]),(c._dayOfYear>Wn(C)||c._dayOfYear===0)&&(w(c)._overflowDayOfYear=!0),g=Gn(C,0,c._dayOfYear),c._a[kr]=g.getUTCMonth(),c._a[hr]=g.getUTCDate()),v=0;v<3&&c._a[v]==null;++v)c._a[v]=_[v]=k[v];for(;v<7;v++)c._a[v]=_[v]=c._a[v]==null?v===2?1:0:c._a[v];c._a[Ke]===24&&c._a[Qt]===0&&c._a[xr]===0&&c._a[ui]===0&&(c._nextDay=!0,c._a[Ke]=0),c._d=(c._useUTC?Gn:t0).apply(null,_),$=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[Ke]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==$&&(w(c).weekdayMismatch=!0)}}function q0(c){var v,g,_,k,$,C,Q,oe,ke;v=c._w,v.GG!=null||v.W!=null||v.E!=null?($=1,C=4,g=Bi(v.GG,c._a[dt],zn(Oe(),1,4).year),_=Bi(v.W,1),k=Bi(v.E,1),(k<1||k>7)&&(oe=!0)):($=c._locale._week.dow,C=c._locale._week.doy,ke=zn(Oe(),$,C),g=Bi(v.gg,c._a[dt],ke.year),_=Bi(v.w,ke.week),v.d!=null?(k=v.d,(k<0||k>6)&&(oe=!0)):v.e!=null?(k=v.e+$,(v.e<0||v.e>6)&&(oe=!0)):k=$),_<1||_>Er(g,$,C)?w(c)._overflowWeeks=!0:oe!=null?w(c)._overflowWeekday=!0:(Q=Bc(g,_,k,$,C),c._a[dt]=Q.year,c._dayOfYear=Q.dayOfYear)}a.ISO_8601=function(){},a.RFC_2822=function(){};function el(c){if(c._f===a.ISO_8601){Xc(c);return}if(c._f===a.RFC_2822){qc(c);return}c._a=[],w(c).empty=!0;var v=""+c._i,g,_,k,$,C,Q=v.length,oe=0,ke,ft;for(k=j(c._f,c._locale).match(ur)||[],ft=k.length,g=0;g<ft;g++)$=k[g],_=(v.match(Lb($,c))||[])[0],_&&(C=v.substr(0,v.indexOf(_)),C.length>0&&w(c).unusedInput.push(C),v=v.slice(v.indexOf(_)+_.length),oe+=_.length),br[$]?(_?w(c).empty=!1:w(c).unusedTokens.push($),Yb($,_,c)):c._strict&&!_&&w(c).unusedTokens.push($);w(c).charsLeftOver=Q-oe,v.length>0&&w(c).unusedInput.push(v),c._a[Ke]<=12&&w(c).bigHour===!0&&c._a[Ke]>0&&(w(c).bigHour=void 0),w(c).parsedDateParts=c._a.slice(0),w(c).meridiem=c._meridiem,c._a[Ke]=K0(c._locale,c._a[Ke],c._meridiem),ke=w(c).era,ke!==null&&(c._a[dt]=c._locale.erasConvertYear(ke,c._a[dt])),Jo(c),Zo(c)}function K0(c,v,g){var _;return g==null?v:c.meridiemHour!=null?c.meridiemHour(v,g):(c.isPM!=null&&(_=c.isPM(g),_&&v<12&&(v+=12),!_&&v===12&&(v=0)),v)}function Z0(c){var v,g,_,k,$,C,Q=!1,oe=c._f.length;if(oe===0){w(c).invalidFormat=!0,c._d=new Date(NaN);return}for(k=0;k<oe;k++)$=0,C=!1,v=A({},c),c._useUTC!=null&&(v._useUTC=c._useUTC),v._f=c._f[k],el(v),D(v)&&(C=!0),$+=w(v).charsLeftOver,$+=w(v).unusedTokens.length*10,w(v).score=$,Q?$<_&&(_=$,g=v):(_==null||$<_||C)&&(_=$,g=v,C&&(Q=!0));y(c,g||v)}function Q0(c){if(!c._d){var v=Ho(c._i),g=v.day===void 0?v.date:v.day;c._a=m([v.year,v.month,g,v.hour,v.minute,v.second,v.millisecond],function(_){return _&&parseInt(_,10)}),Jo(c)}}function J0(c){var v=new V(Zo(Kc(c)));return v._nextDay&&(v.add(1,"d"),v._nextDay=void 0),v}function Kc(c){var v=c._i,g=c._f;return c._locale=c._locale||Sr(c._l),v===null||g===void 0&&v===""?T({nullInput:!0}):(typeof v=="string"&&(c._i=v=c._locale.preparse(v)),N(v)?new V(Zo(v)):(p(v)?c._d=v:s(g)?Z0(c):g?el(c):ew(c),D(c)||(c._d=null),c))}function ew(c){var v=c._i;u(v)?c._d=new Date(a.now()):p(v)?c._d=new Date(v.valueOf()):typeof v=="string"?U0(c):s(v)?(c._a=m(v.slice(0),function(g){return parseInt(g,10)}),Jo(c)):o(v)?Q0(c):f(v)?c._d=new Date(v):a.createFromInputFallback(c)}function Zc(c,v,g,_,k){var $={};return(v===!0||v===!1)&&(_=v,v=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(o(c)&&d(c)||s(c)&&c.length===0)&&(c=void 0),$._isAMomentObject=!0,$._useUTC=$._isUTC=k,$._l=g,$._i=c,$._f=v,$._strict=_,J0($)}function Oe(c,v,g,_){return Zc(c,v,g,_,!1)}var tw=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Oe.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:T()}),rw=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Oe.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:T()});function Qc(c,v){var g,_;if(v.length===1&&s(v[0])&&(v=v[0]),!v.length)return Oe();for(g=v[0],_=1;_<v.length;++_)(!v[_].isValid()||v[_][c](g))&&(g=v[_]);return g}function iw(){var c=[].slice.call(arguments,0);return Qc("isBefore",c)}function nw(){var c=[].slice.call(arguments,0);return Qc("isAfter",c)}var aw=function(){return Date.now?Date.now():+new Date},qn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function sw(c){var v,g=!1,_,k=qn.length;for(v in c)if(l(c,v)&&!(Ge.call(qn,v)!==-1&&(c[v]==null||!isNaN(c[v]))))return!1;for(_=0;_<k;++_)if(c[qn[_]]){if(g)return!1;parseFloat(c[qn[_]])!==le(c[qn[_]])&&(g=!0)}return!0}function ow(){return this._isValid}function lw(){return Jt(NaN)}function ss(c){var v=Ho(c),g=v.year||0,_=v.quarter||0,k=v.month||0,$=v.week||v.isoWeek||0,C=v.day||0,Q=v.hour||0,oe=v.minute||0,ke=v.second||0,ft=v.millisecond||0;this._isValid=sw(v),this._milliseconds=+ft+ke*1e3+oe*6e4+Q*1e3*60*60,this._days=+C+$*7,this._months=+k+_*3+g*12,this._data={},this._locale=Sr(),this._bubble()}function os(c){return c instanceof ss}function tl(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function dw(c,v,g){var _=Math.min(c.length,v.length),k=Math.abs(c.length-v.length),$=0,C;for(C=0;C<_;C++)le(c[C])!==le(v[C])&&$++;return $+k}function Jc(c,v){K(c,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+We(~~(g/60),2)+v+We(~~g%60,2)})}Jc("Z",":"),Jc("ZZ",""),G("Z",es),G("ZZ",es),we(["Z","ZZ"],function(c,v,g){g._useUTC=!0,g._tzm=rl(es,c)});var uw=/([\+\-]|\d\d)/gi;function rl(c,v){var g=(v||"").match(c),_,k,$;return g===null?null:(_=g[g.length-1]||[],k=(_+"").match(uw)||["-",0,0],$=+(k[1]*60)+le(k[2]),$===0?0:k[0]==="+"?$:-$)}function il(c,v){var g,_;return v._isUTC?(g=v.clone(),_=(N(c)||p(c)?c.valueOf():Oe(c).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),a.updateOffset(g,!1),g):Oe(c).local()}function nl(c){return-Math.round(c._d.getTimezoneOffset())}a.updateOffset=function(){};function cw(c,v,g){var _=this._offset||0,k;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=rl(es,c),c===null)return this}else Math.abs(c)<16&&!g&&(c=c*60);return!this._isUTC&&v&&(k=nl(this)),this._offset=c,this._isUTC=!0,k!=null&&this.add(k,"m"),_!==c&&(!v||this._changeInProgress?ih(this,Jt(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:nl(this)}function hw(c,v){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,v),this):-this.utcOffset()}function fw(c){return this.utcOffset(0,c)}function vw(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(nl(this),"m")),this}function pw(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=rl(Vb,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function mw(c){return this.isValid()?(c=c?Oe(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function gw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yw(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},v;return A(c,this),c=Kc(c),c._a?(v=c._isUTC?b(c._a):Oe(c._a),this._isDSTShifted=this.isValid()&&dw(c._a,v.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function _w(){return this.isValid()?!this._isUTC:!1}function bw(){return this.isValid()?this._isUTC:!1}function eh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ww=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(c,v){var g=c,_=null,k,$,C;return os(c)?g={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(g={},v?g[v]=+c:g.milliseconds=+c):(_=ww.exec(c))?(k=_[1]==="-"?-1:1,g={y:0,d:le(_[hr])*k,h:le(_[Ke])*k,m:le(_[Qt])*k,s:le(_[xr])*k,ms:le(tl(_[ui]*1e3))*k}):(_=kw.exec(c))?(k=_[1]==="-"?-1:1,g={y:ci(_[2],k),M:ci(_[3],k),w:ci(_[4],k),d:ci(_[5],k),h:ci(_[6],k),m:ci(_[7],k),s:ci(_[8],k)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(C=xw(Oe(g.from),Oe(g.to)),g={},g.ms=C.milliseconds,g.M=C.months),$=new ss(g),os(c)&&l(c,"_locale")&&($._locale=c._locale),os(c)&&l(c,"_isValid")&&($._isValid=c._isValid),$}Jt.fn=ss.prototype,Jt.invalid=lw;function ci(c,v){var g=c&&parseFloat(c.replace(",","."));return(isNaN(g)?0:g)*v}function th(c,v){var g={};return g.months=v.month()-c.month()+(v.year()-c.year())*12,c.clone().add(g.months,"M").isAfter(v)&&--g.months,g.milliseconds=+v-+c.clone().add(g.months,"M"),g}function xw(c,v){var g;return c.isValid()&&v.isValid()?(v=il(v,c),c.isBefore(v)?g=th(c,v):(g=th(v,c),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function rh(c,v){return function(g,_){var k,$;return _!==null&&!isNaN(+_)&&(W(v,"moment()."+v+"(period, number) is deprecated. Please use moment()."+v+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=g,g=_,_=$),k=Jt(g,_),ih(this,k,c),this}}function ih(c,v,g,_){var k=v._milliseconds,$=tl(v._days),C=tl(v._months);c.isValid()&&(_=_??!0,C&&Lc(c,qa(c,"Month")+C*g),$&&Oc(c,"Date",qa(c,"Date")+$*g),k&&c._d.setTime(c._d.valueOf()+k*g),_&&a.updateOffset(c,$||C))}var Ew=rh(1,"add"),Sw=rh(-1,"subtract");function nh(c){return typeof c=="string"||c instanceof String}function $w(c){return N(c)||p(c)||nh(c)||f(c)||Tw(c)||Dw(c)||c===null||c===void 0}function Dw(c){var v=o(c)&&!d(c),g=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],k,$,C=_.length;for(k=0;k<C;k+=1)$=_[k],g=g||l(c,$);return v&&g}function Tw(c){var v=s(c),g=!1;return v&&(g=c.filter(function(_){return!f(_)&&nh(c)}).length===0),v&&g}function Nw(c){var v=o(c)&&!d(c),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],k,$;for(k=0;k<_.length;k+=1)$=_[k],g=g||l(c,$);return v&&g}function Cw(c,v){var g=c.diff(v,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function Ow(c,v){arguments.length===1&&(arguments[0]?$w(arguments[0])?(c=arguments[0],v=void 0):Nw(arguments[0])&&(v=arguments[0],c=void 0):(c=void 0,v=void 0));var g=c||Oe(),_=il(g,this).startOf("day"),k=a.calendarFormat(this,_)||"sameElse",$=v&&(q(v[k])?v[k].call(this,g):v[k]);return this.format($||this.localeData().calendar(k,this,Oe(g)))}function Pw(){return new V(this)}function Iw(c,v){var g=N(c)?c:Oe(c);return this.isValid()&&g.isValid()?(v=Wt(v)||"millisecond",v==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(v).valueOf()):!1}function Mw(c,v){var g=N(c)?c:Oe(c);return this.isValid()&&g.isValid()?(v=Wt(v)||"millisecond",v==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(v).valueOf()<g.valueOf()):!1}function Aw(c,v,g,_){var k=N(c)?c:Oe(c),$=N(v)?v:Oe(v);return this.isValid()&&k.isValid()&&$.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(k,g):!this.isBefore(k,g))&&(_[1]===")"?this.isBefore($,g):!this.isAfter($,g))):!1}function Vw(c,v){var g=N(c)?c:Oe(c),_;return this.isValid()&&g.isValid()?(v=Wt(v)||"millisecond",v==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(v).valueOf()<=_&&_<=this.clone().endOf(v).valueOf())):!1}function Rw(c,v){return this.isSame(c,v)||this.isAfter(c,v)}function Lw(c,v){return this.isSame(c,v)||this.isBefore(c,v)}function Fw(c,v,g){var _,k,$;if(!this.isValid())return NaN;if(_=il(c,this),!_.isValid())return NaN;switch(k=(_.utcOffset()-this.utcOffset())*6e4,v=Wt(v),v){case"year":$=ls(this,_)/12;break;case"month":$=ls(this,_);break;case"quarter":$=ls(this,_)/3;break;case"second":$=(this-_)/1e3;break;case"minute":$=(this-_)/6e4;break;case"hour":$=(this-_)/36e5;break;case"day":$=(this-_-k)/864e5;break;case"week":$=(this-_-k)/6048e5;break;default:$=this-_}return g?$:Gt($)}function ls(c,v){if(c.date()<v.date())return-ls(v,c);var g=(v.year()-c.year())*12+(v.month()-c.month()),_=c.clone().add(g,"months"),k,$;return v-_<0?(k=c.clone().add(g-1,"months"),$=(v-_)/(_-k)):(k=c.clone().add(g+1,"months"),$=(v-_)/(k-_)),-(g+$)||0}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Yw(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function jw(c){if(!this.isValid())return null;var v=c!==!0,g=v?this.clone().utc():this;return g.year()<0||g.year()>9999?Wr(g,v?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):q(Date.prototype.toISOString)?v?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Wr(g,"Z")):Wr(g,v?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Bw(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",v="",g,_,k,$;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",v="Z"),g="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",k="-MM-DD[T]HH:mm:ss.SSS",$=v+'[")]',this.format(g+_+k+$)}function Hw(c){c||(c=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var v=Wr(this,c);return this.localeData().postformat(v)}function Ww(c,v){return this.isValid()&&(N(c)&&c.isValid()||Oe(c).isValid())?Jt({to:this,from:c}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function Gw(c){return this.from(Oe(),c)}function zw(c,v){return this.isValid()&&(N(c)&&c.isValid()||Oe(c).isValid())?Jt({from:this,to:c}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function Uw(c){return this.to(Oe(),c)}function ah(c){var v;return c===void 0?this._locale._abbr:(v=Sr(c),v!=null&&(this._locale=v),this)}var sh=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function oh(){return this._locale}var ds=1e3,Hi=60*ds,us=60*Hi,lh=(365*400+97)*24*us;function Wi(c,v){return(c%v+v)%v}function dh(c,v,g){return c<100&&c>=0?new Date(c+400,v,g)-lh:new Date(c,v,g).valueOf()}function uh(c,v,g){return c<100&&c>=0?Date.UTC(c+400,v,g)-lh:Date.UTC(c,v,g)}function Xw(c){var v,g;if(c=Wt(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?uh:dh,c){case"year":v=g(this.year(),0,1);break;case"quarter":v=g(this.year(),this.month()-this.month()%3,1);break;case"month":v=g(this.year(),this.month(),1);break;case"week":v=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":v=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":v=g(this.year(),this.month(),this.date());break;case"hour":v=this._d.valueOf(),v-=Wi(v+(this._isUTC?0:this.utcOffset()*Hi),us);break;case"minute":v=this._d.valueOf(),v-=Wi(v,Hi);break;case"second":v=this._d.valueOf(),v-=Wi(v,ds);break}return this._d.setTime(v),a.updateOffset(this,!0),this}function qw(c){var v,g;if(c=Wt(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?uh:dh,c){case"year":v=g(this.year()+1,0,1)-1;break;case"quarter":v=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":v=g(this.year(),this.month()+1,1)-1;break;case"week":v=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":v=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":v=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":v=this._d.valueOf(),v+=us-Wi(v+(this._isUTC?0:this.utcOffset()*Hi),us)-1;break;case"minute":v=this._d.valueOf(),v+=Hi-Wi(v,Hi)-1;break;case"second":v=this._d.valueOf(),v+=ds-Wi(v,ds)-1;break}return this._d.setTime(v),a.updateOffset(this,!0),this}function Kw(){return this._d.valueOf()-(this._offset||0)*6e4}function Zw(){return Math.floor(this.valueOf()/1e3)}function Qw(){return new Date(this.valueOf())}function Jw(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function e1(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function t1(){return this.isValid()?this.toISOString():null}function r1(){return D(this)}function i1(){return y({},w(this))}function n1(){return w(this).overflow}function a1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}K("N",0,0,"eraAbbr"),K("NN",0,0,"eraAbbr"),K("NNN",0,0,"eraAbbr"),K("NNNN",0,0,"eraName"),K("NNNNN",0,0,"eraNarrow"),K("y",["y",1],"yo","eraYear"),K("y",["yy",2],0,"eraYear"),K("y",["yyy",3],0,"eraYear"),K("y",["yyyy",4],0,"eraYear"),G("N",al),G("NN",al),G("NNN",al),G("NNNN",m1),G("NNNNN",g1),we(["N","NN","NNN","NNNN","NNNNN"],function(c,v,g,_){var k=g._locale.erasParse(c,_,g._strict);k?w(g).era=k:w(g).invalidEra=c}),G("y",ji),G("yy",ji),G("yyy",ji),G("yyyy",ji),G("yo",y1),we(["y","yy","yyy","yyyy"],dt),we(["yo"],function(c,v,g,_){var k;g._locale._eraYearOrdinalRegex&&(k=c.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?v[dt]=g._locale.eraYearOrdinalParse(c,k):v[dt]=parseInt(c,10)});function s1(c,v){var g,_,k,$=this._eras||Sr("en")._eras;for(g=0,_=$.length;g<_;++g){switch(typeof $[g].since){case"string":k=a($[g].since).startOf("day"),$[g].since=k.valueOf();break}switch(typeof $[g].until){case"undefined":$[g].until=1/0;break;case"string":k=a($[g].until).startOf("day").valueOf(),$[g].until=k.valueOf();break}}return $}function o1(c,v,g){var _,k,$=this.eras(),C,Q,oe;for(c=c.toUpperCase(),_=0,k=$.length;_<k;++_)if(C=$[_].name.toUpperCase(),Q=$[_].abbr.toUpperCase(),oe=$[_].narrow.toUpperCase(),g)switch(v){case"N":case"NN":case"NNN":if(Q===c)return $[_];break;case"NNNN":if(C===c)return $[_];break;case"NNNNN":if(oe===c)return $[_];break}else if([C,Q,oe].indexOf(c)>=0)return $[_]}function l1(c,v){var g=c.since<=c.until?1:-1;return v===void 0?a(c.since).year():a(c.since).year()+(v-c.offset)*g}function d1(){var c,v,g,_=this.localeData().eras();for(c=0,v=_.length;c<v;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].name;return""}function u1(){var c,v,g,_=this.localeData().eras();for(c=0,v=_.length;c<v;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].narrow;return""}function c1(){var c,v,g,_=this.localeData().eras();for(c=0,v=_.length;c<v;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].abbr;return""}function h1(){var c,v,g,_,k=this.localeData().eras();for(c=0,v=k.length;c<v;++c)if(g=k[c].since<=k[c].until?1:-1,_=this.clone().startOf("day").valueOf(),k[c].since<=_&&_<=k[c].until||k[c].until<=_&&_<=k[c].since)return(this.year()-a(k[c].since).year())*g+k[c].offset;return this.year()}function f1(c){return l(this,"_erasNameRegex")||sl.call(this),c?this._erasNameRegex:this._erasRegex}function v1(c){return l(this,"_erasAbbrRegex")||sl.call(this),c?this._erasAbbrRegex:this._erasRegex}function p1(c){return l(this,"_erasNarrowRegex")||sl.call(this),c?this._erasNarrowRegex:this._erasRegex}function al(c,v){return v.erasAbbrRegex(c)}function m1(c,v){return v.erasNameRegex(c)}function g1(c,v){return v.erasNarrowRegex(c)}function y1(c,v){return v._eraYearOrdinalRegex||ji}function sl(){var c=[],v=[],g=[],_=[],k,$,C=this.eras();for(k=0,$=C.length;k<$;++k)v.push(At(C[k].name)),c.push(At(C[k].abbr)),g.push(At(C[k].narrow)),_.push(At(C[k].name)),_.push(At(C[k].abbr)),_.push(At(C[k].narrow));this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+v.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}K(0,["gg",2],0,function(){return this.weekYear()%100}),K(0,["GG",2],0,function(){return this.isoWeekYear()%100});function cs(c,v){K(0,[c,c.length],0,v)}cs("gggg","weekYear"),cs("ggggg","weekYear"),cs("GGGG","isoWeekYear"),cs("GGGGG","isoWeekYear"),ot("weekYear","gg"),ot("isoWeekYear","GG"),lt("weekYear",1),lt("isoWeekYear",1),G("G",Ja),G("g",Ja),G("GG",Ce,Mt),G("gg",Ce,Mt),G("GGGG",Go,Wo),G("gggg",Go,Wo),G("GGGGG",Qa,Ka),G("ggggg",Qa,Ka),Hn(["gggg","ggggg","GGGG","GGGGG"],function(c,v,g,_){v[_.substr(0,2)]=le(c)}),Hn(["gg","GG"],function(c,v,g,_){v[_]=a.parseTwoDigitYear(c)});function _1(c){return ch.call(this,c,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function b1(c){return ch.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function w1(){return Er(this.year(),1,4)}function k1(){return Er(this.isoWeekYear(),1,4)}function x1(){var c=this.localeData()._week;return Er(this.year(),c.dow,c.doy)}function E1(){var c=this.localeData()._week;return Er(this.weekYear(),c.dow,c.doy)}function ch(c,v,g,_,k){var $;return c==null?zn(this,_,k).year:($=Er(c,_,k),v>$&&(v=$),S1.call(this,c,v,g,_,k))}function S1(c,v,g,_,k){var $=Bc(c,v,g,_,k),C=Gn($.year,0,$.dayOfYear);return this.year(C.getUTCFullYear()),this.month(C.getUTCMonth()),this.date(C.getUTCDate()),this}K("Q",0,"Qo","quarter"),ot("quarter","Q"),lt("quarter",7),G("Q",Pc),we("Q",function(c,v){v[kr]=(le(c)-1)*3});function $1(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}K("D",["DD",2],"Do","date"),ot("date","D"),lt("date",9),G("D",Ce),G("DD",Ce,Mt),G("Do",function(c,v){return c?v._dayOfMonthOrdinalParse||v._ordinalParse:v._dayOfMonthOrdinalParseLenient}),we(["D","DD"],hr),we("Do",function(c,v){v[hr]=le(c.match(Ce)[0])});var hh=Yi("Date",!0);K("DDD",["DDDD",3],"DDDo","dayOfYear"),ot("dayOfYear","DDD"),lt("dayOfYear",4),G("DDD",Za),G("DDDD",Ic),we(["DDD","DDDD"],function(c,v,g){g._dayOfYear=le(c)});function D1(c){var v=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?v:this.add(c-v,"d")}K("m",["mm",2],0,"minute"),ot("minute","m"),lt("minute",14),G("m",Ce),G("mm",Ce,Mt),we(["m","mm"],Qt);var T1=Yi("Minutes",!1);K("s",["ss",2],0,"second"),ot("second","s"),lt("second",15),G("s",Ce),G("ss",Ce,Mt),we(["s","ss"],xr);var N1=Yi("Seconds",!1);K("S",0,0,function(){return~~(this.millisecond()/100)}),K(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),K(0,["SSS",3],0,"millisecond"),K(0,["SSSS",4],0,function(){return this.millisecond()*10}),K(0,["SSSSS",5],0,function(){return this.millisecond()*100}),K(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),K(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),K(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),K(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ot("millisecond","ms"),lt("millisecond",16),G("S",Za,Pc),G("SS",Za,Mt),G("SSS",Za,Ic);var zr,fh;for(zr="SSSS";zr.length<=9;zr+="S")G(zr,ji);function C1(c,v){v[ui]=le(("0."+c)*1e3)}for(zr="S";zr.length<=9;zr+="S")we(zr,C1);fh=Yi("Milliseconds",!1),K("z",0,0,"zoneAbbr"),K("zz",0,0,"zoneName");function O1(){return this._isUTC?"UTC":""}function P1(){return this._isUTC?"Coordinated Universal Time":""}var L=V.prototype;L.add=Ew,L.calendar=Ow,L.clone=Pw,L.diff=Fw,L.endOf=qw,L.format=Hw,L.from=Ww,L.fromNow=Gw,L.to=zw,L.toNow=Uw,L.get=Mb,L.invalidAt=n1,L.isAfter=Iw,L.isBefore=Mw,L.isBetween=Aw,L.isSame=Vw,L.isSameOrAfter=Rw,L.isSameOrBefore=Lw,L.isValid=r1,L.lang=sh,L.locale=ah,L.localeData=oh,L.max=rw,L.min=tw,L.parsingFlags=i1,L.set=Ab,L.startOf=Xw,L.subtract=Sw,L.toArray=Jw,L.toObject=e1,L.toDate=Qw,L.toISOString=jw,L.inspect=Bw,typeof Symbol<"u"&&Symbol.for!=null&&(L[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),L.toJSON=t1,L.toString=Yw,L.unix=Zw,L.valueOf=Kw,L.creationData=a1,L.eraName=d1,L.eraNarrow=u1,L.eraAbbr=c1,L.eraYear=h1,L.year=jc,L.isLeapYear=e0,L.weekYear=_1,L.isoWeekYear=b1,L.quarter=L.quarters=$1,L.month=Fc,L.daysInMonth=Zb,L.week=L.weeks=s0,L.isoWeek=L.isoWeeks=o0,L.weeksInYear=x1,L.weeksInWeekYear=E1,L.isoWeeksInYear=w1,L.isoWeeksInISOWeekYear=k1,L.date=hh,L.day=L.days=b0,L.weekday=w0,L.isoWeekday=k0,L.dayOfYear=D1,L.hour=L.hours=N0,L.minute=L.minutes=T1,L.second=L.seconds=N1,L.millisecond=L.milliseconds=fh,L.utcOffset=cw,L.utc=fw,L.local=vw,L.parseZone=pw,L.hasAlignedHourOffset=mw,L.isDST=gw,L.isLocal=_w,L.isUtcOffset=bw,L.isUtc=eh,L.isUTC=eh,L.zoneAbbr=O1,L.zoneName=P1,L.dates=M("dates accessor is deprecated. Use date instead.",hh),L.months=M("months accessor is deprecated. Use month instead",Fc),L.years=M("years accessor is deprecated. Use year instead",jc),L.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hw),L.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yw);function I1(c){return Oe(c*1e3)}function M1(){return Oe.apply(null,arguments).parseZone()}function vh(c){return c}var me=Je.prototype;me.calendar=_r,me.longDateFormat=Y,me.invalidDate=ie,me.ordinal=it,me.preparse=vh,me.postformat=vh,me.relativeTime=wr,me.pastFuture=cr,me.set=de,me.eras=s1,me.erasParse=o1,me.erasConvertYear=l1,me.erasAbbrRegex=v1,me.erasNameRegex=f1,me.erasNarrowRegex=p1,me.months=Ub,me.monthsShort=Xb,me.monthsParse=Kb,me.monthsRegex=Jb,me.monthsShortRegex=Qb,me.week=r0,me.firstDayOfYear=a0,me.firstDayOfWeek=n0,me.weekdays=p0,me.weekdaysMin=g0,me.weekdaysShort=m0,me.weekdaysParse=_0,me.weekdaysRegex=x0,me.weekdaysShortRegex=E0,me.weekdaysMinRegex=S0,me.isPM=D0,me.meridiem=C0;function hs(c,v,g,_){var k=Sr(),$=b().set(_,v);return k[g]($,c)}function ph(c,v,g){if(f(c)&&(v=c,c=void 0),c=c||"",v!=null)return hs(c,v,g,"month");var _,k=[];for(_=0;_<12;_++)k[_]=hs(c,_,g,"month");return k}function ol(c,v,g,_){typeof c=="boolean"?(f(v)&&(g=v,v=void 0),v=v||""):(v=c,g=v,c=!1,f(v)&&(g=v,v=void 0),v=v||"");var k=Sr(),$=c?k._week.dow:0,C,Q=[];if(g!=null)return hs(v,(g+$)%7,_,"day");for(C=0;C<7;C++)Q[C]=hs(v,(C+$)%7,_,"day");return Q}function A1(c,v){return ph(c,v,"months")}function V1(c,v){return ph(c,v,"monthsShort")}function R1(c,v,g){return ol(c,v,g,"weekdays")}function L1(c,v,g){return ol(c,v,g,"weekdaysShort")}function F1(c,v,g){return ol(c,v,g,"weekdaysMin")}Gr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var v=c%10,g=le(c%100/10)===1?"th":v===1?"st":v===2?"nd":v===3?"rd":"th";return c+g}}),a.lang=M("moment.lang is deprecated. Use moment.locale instead.",Gr),a.langData=M("moment.langData is deprecated. Use moment.localeData instead.",Sr);var $r=Math.abs;function Y1(){var c=this._data;return this._milliseconds=$r(this._milliseconds),this._days=$r(this._days),this._months=$r(this._months),c.milliseconds=$r(c.milliseconds),c.seconds=$r(c.seconds),c.minutes=$r(c.minutes),c.hours=$r(c.hours),c.months=$r(c.months),c.years=$r(c.years),this}function mh(c,v,g,_){var k=Jt(v,g);return c._milliseconds+=_*k._milliseconds,c._days+=_*k._days,c._months+=_*k._months,c._bubble()}function j1(c,v){return mh(this,c,v,1)}function B1(c,v){return mh(this,c,v,-1)}function gh(c){return c<0?Math.floor(c):Math.ceil(c)}function H1(){var c=this._milliseconds,v=this._days,g=this._months,_=this._data,k,$,C,Q,oe;return c>=0&&v>=0&&g>=0||c<=0&&v<=0&&g<=0||(c+=gh(ll(g)+v)*864e5,v=0,g=0),_.milliseconds=c%1e3,k=Gt(c/1e3),_.seconds=k%60,$=Gt(k/60),_.minutes=$%60,C=Gt($/60),_.hours=C%24,v+=Gt(C/24),oe=Gt(yh(v)),g+=oe,v-=gh(ll(oe)),Q=Gt(g/12),g%=12,_.days=v,_.months=g,_.years=Q,this}function yh(c){return c*4800/146097}function ll(c){return c*146097/4800}function W1(c){if(!this.isValid())return NaN;var v,g,_=this._milliseconds;if(c=Wt(c),c==="month"||c==="quarter"||c==="year")switch(v=this._days+_/864e5,g=this._months+yh(v),c){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(v=this._days+Math.round(ll(this._months)),c){case"week":return v/7+_/6048e5;case"day":return v+_/864e5;case"hour":return v*24+_/36e5;case"minute":return v*1440+_/6e4;case"second":return v*86400+_/1e3;case"millisecond":return Math.floor(v*864e5)+_;default:throw new Error("Unknown unit "+c)}}function G1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+le(this._months/12)*31536e6:NaN}function Dr(c){return function(){return this.as(c)}}var z1=Dr("ms"),U1=Dr("s"),X1=Dr("m"),q1=Dr("h"),K1=Dr("d"),Z1=Dr("w"),Q1=Dr("M"),J1=Dr("Q"),ek=Dr("y");function tk(){return Jt(this)}function rk(c){return c=Wt(c),this.isValid()?this[c+"s"]():NaN}function hi(c){return function(){return this.isValid()?this._data[c]:NaN}}var ik=hi("milliseconds"),nk=hi("seconds"),ak=hi("minutes"),sk=hi("hours"),ok=hi("days"),lk=hi("months"),dk=hi("years");function uk(){return Gt(this.days()/7)}var Tr=Math.round,Gi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ck(c,v,g,_,k){return k.relativeTime(v||1,!!g,c,_)}function hk(c,v,g,_){var k=Jt(c).abs(),$=Tr(k.as("s")),C=Tr(k.as("m")),Q=Tr(k.as("h")),oe=Tr(k.as("d")),ke=Tr(k.as("M")),ft=Tr(k.as("w")),Nr=Tr(k.as("y")),Ur=$<=g.ss&&["s",$]||$<g.s&&["ss",$]||C<=1&&["m"]||C<g.m&&["mm",C]||Q<=1&&["h"]||Q<g.h&&["hh",Q]||oe<=1&&["d"]||oe<g.d&&["dd",oe];return g.w!=null&&(Ur=Ur||ft<=1&&["w"]||ft<g.w&&["ww",ft]),Ur=Ur||ke<=1&&["M"]||ke<g.M&&["MM",ke]||Nr<=1&&["y"]||["yy",Nr],Ur[2]=v,Ur[3]=+c>0,Ur[4]=_,ck.apply(null,Ur)}function fk(c){return c===void 0?Tr:typeof c=="function"?(Tr=c,!0):!1}function vk(c,v){return Gi[c]===void 0?!1:v===void 0?Gi[c]:(Gi[c]=v,c==="s"&&(Gi.ss=v-1),!0)}function pk(c,v){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=Gi,k,$;return typeof c=="object"&&(v=c,c=!1),typeof c=="boolean"&&(g=c),typeof v=="object"&&(_=Object.assign({},Gi,v),v.s!=null&&v.ss==null&&(_.ss=v.s-1)),k=this.localeData(),$=hk(this,!g,_,k),g&&($=k.pastFuture(+this,$)),k.postformat($)}var dl=Math.abs;function zi(c){return(c>0)-(c<0)||+c}function fs(){if(!this.isValid())return this.localeData().invalidDate();var c=dl(this._milliseconds)/1e3,v=dl(this._days),g=dl(this._months),_,k,$,C,Q=this.asSeconds(),oe,ke,ft,Nr;return Q?(_=Gt(c/60),k=Gt(_/60),c%=60,_%=60,$=Gt(g/12),g%=12,C=c?c.toFixed(3).replace(/\.?0+$/,""):"",oe=Q<0?"-":"",ke=zi(this._months)!==zi(Q)?"-":"",ft=zi(this._days)!==zi(Q)?"-":"",Nr=zi(this._milliseconds)!==zi(Q)?"-":"",oe+"P"+($?ke+$+"Y":"")+(g?ke+g+"M":"")+(v?ft+v+"D":"")+(k||_||c?"T":"")+(k?Nr+k+"H":"")+(_?Nr+_+"M":"")+(c?Nr+C+"S":"")):"P0D"}var he=ss.prototype;he.isValid=ow,he.abs=Y1,he.add=j1,he.subtract=B1,he.as=W1,he.asMilliseconds=z1,he.asSeconds=U1,he.asMinutes=X1,he.asHours=q1,he.asDays=K1,he.asWeeks=Z1,he.asMonths=Q1,he.asQuarters=J1,he.asYears=ek,he.valueOf=G1,he._bubble=H1,he.clone=tk,he.get=rk,he.milliseconds=ik,he.seconds=nk,he.minutes=ak,he.hours=sk,he.days=ok,he.weeks=uk,he.months=lk,he.years=dk,he.humanize=pk,he.toISOString=fs,he.toString=fs,he.toJSON=fs,he.locale=ah,he.localeData=oh,he.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",fs),he.lang=sh,K("X",0,0,"unix"),K("x",0,0,"valueOf"),G("x",Ja),G("X",Rb),we("X",function(c,v,g){g._d=new Date(parseFloat(c)*1e3)}),we("x",function(c,v,g){g._d=new Date(le(c))});//! moment.js
|
29
|
+
return a.version="2.29.4",n(Oe),a.fn=L,a.min=iw,a.max=nw,a.now=aw,a.utc=b,a.unix=I1,a.months=A1,a.isDate=p,a.locale=Gr,a.invalid=T,a.duration=Jt,a.isMoment=N,a.weekdays=R1,a.parseZone=M1,a.localeData=Sr,a.isDuration=os,a.monthsShort=V1,a.weekdaysMin=F1,a.defineLocale=Ko,a.updateLocale=M0,a.locales=A0,a.weekdaysShort=L1,a.normalizeUnits=Wt,a.relativeTimeRounding=fk,a.relativeTimeThreshold=vk,a.calendarFormat=Cw,a.prototype=L,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a})}(ul)),ul.exports}(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
30
|
+
function a(s,o,l,d){var u={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return o?u[l][0]:u[l][1]}var n=t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
31
|
+
var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,l=t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(d,u){return d?/-MMM-/.test(u)?n[d.month()]:a[d.month()]:a},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return l})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
32
|
+
var a=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,s=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],l=t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:a,monthsShortStrictRegex:n,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(d,u){switch(u){case"D":return d+(d===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return d+(d===1?"er":"e");case"w":case"W":return d+(d===1?"re":"e")}},week:{dow:1,doy:4}});return l})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
33
|
+
var a=t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
34
|
+
var a=t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(n,s){return s[1]==="元"?1:parseInt(s[1]||n,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(n){return n==="午後"},meridiem:function(n,s,o){return n<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(n){return n.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(n){return this.week()!==n.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(n,s){switch(s){case"y":return n===1?"元年":n+"年";case"d":case"D":case"DDD":return n+"日";default:return n}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return a})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
35
|
+
var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,l=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(d,u){return d?/-MMM-/.test(u)?n[d.month()]:a[d.month()]:a},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(d){return d+(d===1||d===8||d>=20?"ste":"de")},week:{dow:1,doy:4}});return l})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
36
|
+
var a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(u){return u%10<5&&u%10>1&&~~(u/10)%10!==1}function l(u,f,p){var m=u+" ";switch(p){case"ss":return m+(o(u)?"sekundy":"sekund");case"m":return f?"minuta":"minutę";case"mm":return m+(o(u)?"minuty":"minut");case"h":return f?"godzina":"godzinę";case"hh":return m+(o(u)?"godziny":"godzin");case"ww":return m+(o(u)?"tygodnie":"tygodni");case"MM":return m+(o(u)?"miesiące":"miesięcy");case"yy":return m+(o(u)?"lata":"lat")}}var d=t.defineLocale("pl",{months:function(u,f){return u?/D MMMM/.test(f)?n[u.month()]:a[u.month()]:a},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:l,m:l,mm:l,h:l,hh:l,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:l,M:"miesiąc",MM:l,y:"rok",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return d})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
37
|
+
function a(l,d){var u=l.split("_");return d%10===1&&d%100!==11?u[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?u[1]:u[2]}function n(l,d,u){var f={ss:d?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:d?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return u==="m"?d?"минута":"минуту":l+" "+a(f[u],+l)}var s=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],o=t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(l){if(l.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(l){if(l.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(l){return/^(дня|вечера)$/.test(l)},meridiem:function(l,d,u){return l<4?"ночи":l<12?"утра":l<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(l,d){switch(d){case"M":case"d":case"DDD":return l+"-й";case"D":return l+"-го";case"w":case"W":return l+"-я";default:return l}},week:{dow:1,doy:4}});return o})})();(function(e,r){(function(t,a){a(typeof gr=="function"?or():t.moment)})(jt,function(t){//! moment.js locale configuration
|
38
|
+
function a(d,u){var f=d.split("_");return u%10===1&&u%100!==11?f[0]:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?f[1]:f[2]}function n(d,u,f){var p={ss:u?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:u?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:u?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return f==="m"?u?"хвилина":"хвилину":f==="h"?u?"година":"годину":d+" "+a(p[f],+d)}function s(d,u){var f={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},p;return d===!0?f.nominative.slice(1,7).concat(f.nominative.slice(0,1)):d?(p=/(\[[ВвУу]\]) ?dddd/.test(u)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(u)?"genitive":"nominative",f[p][d.day()]):f.nominative}function o(d){return function(){return d+"о"+(this.hours()===11?"б":"")+"] LT"}}var l=t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:s,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(d){return/^(дня|вечора)$/.test(d)},meridiem:function(d,u,f){return d<4?"ночі":d<12?"ранку":d<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(d,u){switch(u){case"M":case"d":case"DDD":case"w":case"W":return d+"-й";case"D":return d+"-го";default:return d}},week:{dow:1,doy:7}});return l})})();var ve=function(e){try{return!!e()}catch{return!0}},mk=ve,ka=!mk(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),nm=ka,am=Function.prototype,Pd=am.call,gk=nm&&am.bind.bind(Pd,Pd),ge=nm?gk:function(e){return function(){return Pd.apply(e,arguments)}},yk=Math.ceil,_k=Math.floor,bk=Math.trunc||function(r){var t=+r;return(t>0?_k:yk)(t)},wk=bk,xa=function(e){var r=+e;return r!==r||r===0?0:wk(r)},vs=function(e){return e&&e.Math===Math&&e},Ie=vs(typeof globalThis=="object"&&globalThis)||vs(typeof window=="object"&&window)||vs(typeof self=="object"&&self)||vs(typeof jt=="object"&&jt)||function(){return this}()||jt||Function("return this")(),sm={exports:{}},kk=!0,bh=Ie,xk=Object.defineProperty,Ek=function(e,r){try{xk(bh,e,{value:r,configurable:!0,writable:!0})}catch{bh[e]=r}return r},Sk=Ie,$k=Ek,wh="__core-js_shared__",Dk=Sk[wh]||$k(wh,{}),Eu=Dk,kh=Eu;(sm.exports=function(e,r){return kh[e]||(kh[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var xn=sm.exports,En=function(e){return e==null},Tk=En,Nk=TypeError,Sn=function(e){if(Tk(e))throw new Nk("Can't call method on "+e);return e},Ck=Sn,Ok=Object,_t=function(e){return Ok(Ck(e))},Pk=ge,Ik=_t,Mk=Pk({}.hasOwnProperty),qe=Object.hasOwn||function(r,t){return Mk(Ik(r),t)},Ak=ge,Vk=0,Rk=Math.random(),Lk=Ak(1 .toString),mo=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Lk(++Vk+Rk,36)},ii=typeof navigator<"u"&&String(navigator.userAgent)||"",om=Ie,cl=ii,xh=om.process,Eh=om.Deno,Sh=xh&&xh.versions||Eh&&Eh.version,$h=Sh&&Sh.v8,ir,Gs;$h&&(ir=$h.split("."),Gs=ir[0]>0&&ir[0]<4?1:+(ir[0]+ir[1]));!Gs&&cl&&(ir=cl.match(/Edge\/(\d+)/),(!ir||ir[1]>=74)&&(ir=cl.match(/Chrome\/(\d+)/),ir&&(Gs=+ir[1])));var $n=Gs,Dh=$n,Fk=ve,Yk=Ie,jk=Yk.String,Dn=!!Object.getOwnPropertySymbols&&!Fk(function(){var e=Symbol("symbol detection");return!jk(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Dh&&Dh<41}),Bk=Dn,lm=Bk&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Hk=Ie,Wk=xn,Th=qe,Gk=mo,zk=Dn,Uk=lm,an=Hk.Symbol,hl=Wk("wks"),Xk=Uk?an.for||an:an&&an.withoutSetter||Gk,Me=function(e){return Th(hl,e)||(hl[e]=zk&&Th(an,e)?an[e]:Xk("Symbol."+e)),hl[e]},qk=Me,Kk=qk("toStringTag"),dm={};dm[Kk]="z";var Su=String(dm)==="[object z]",Id=typeof document=="object"&&document.all,Zk=typeof Id>"u"&&Id!==void 0,um={all:Id,IS_HTMLDDA:Zk},cm=um,Qk=cm.all,Be=cm.IS_HTMLDDA?function(e){return typeof e=="function"||e===Qk}:function(e){return typeof e=="function"},hm=ge,Jk=hm({}.toString),ex=hm("".slice),Lr=function(e){return ex(Jk(e),8,-1)},tx=Su,rx=Be,Ls=Lr,ix=Me,nx=ix("toStringTag"),ax=Object,sx=Ls(function(){return arguments}())==="Arguments",ox=function(e,r){try{return e[r]}catch{}},Fr=tx?Ls:function(e){var r,t,a;return e===void 0?"Undefined":e===null?"Null":typeof(t=ox(r=ax(e),nx))=="string"?t:sx?Ls(r):(a=Ls(r))==="Object"&&rx(r.callee)?"Arguments":a},lx=Fr,dx=String,qt=function(e){if(lx(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return dx(e)},$u=ge,ux=xa,cx=qt,hx=Sn,fx=$u("".charAt),Nh=$u("".charCodeAt),vx=$u("".slice),px=function(e){return function(r,t){var a=cx(hx(r)),n=ux(t),s=a.length,o,l;return n<0||n>=s?e?"":void 0:(o=Nh(a,n),o<55296||o>56319||n+1===s||(l=Nh(a,n+1))<56320||l>57343?e?fx(a,n):o:e?vx(a,n,n+2):(o-55296<<10)+(l-56320)+65536)}},mx={charAt:px(!0)},gx=Ie,yx=Be,Ch=gx.WeakMap,_x=yx(Ch)&&/native code/.test(String(Ch)),Oh=Be,fm=um,bx=fm.all,tt=fm.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Oh(e)||e===bx}:function(e){return typeof e=="object"?e!==null:Oh(e)},wx=ve,Qe=!wx(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Nt={},kx=Ie,Ph=tt,Md=kx.document,xx=Ph(Md)&&Ph(Md.createElement),Du=function(e){return xx?Md.createElement(e):{}},Ex=Qe,Sx=ve,$x=Du,vm=!Ex&&!Sx(function(){return Object.defineProperty($x("div"),"a",{get:function(){return 7}}).a!==7}),Dx=Qe,Tx=ve,pm=Dx&&Tx(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Nx=tt,Cx=String,Ox=TypeError,Ht=function(e){if(Nx(e))return e;throw new Ox(Cx(e)+" is not an object")},Px=ka,ps=Function.prototype.call,rt=Px?ps.bind(ps):function(){return ps.apply(ps,arguments)},be={},fl=be,vl=Ie,Ix=Be,Ih=function(e){return Ix(e)?e:void 0},bt=function(e,r){return arguments.length<2?Ih(fl[e])||Ih(vl[e]):fl[e]&&fl[e][r]||vl[e]&&vl[e][r]},Mx=ge,$e=Mx({}.isPrototypeOf),Ax=bt,Vx=Be,Rx=$e,Lx=lm,Fx=Object,Ea=Lx?function(e){return typeof e=="symbol"}:function(e){var r=Ax("Symbol");return Vx(r)&&Rx(r.prototype,Fx(e))},Yx=String,Tn=function(e){try{return Yx(e)}catch{return"Object"}},jx=Be,Bx=Tn,Hx=TypeError,Ct=function(e){if(jx(e))return e;throw new Hx(Bx(e)+" is not a function")},Wx=Ct,Gx=En,Tu=function(e,r){var t=e[r];return Gx(t)?void 0:Wx(t)},pl=rt,ml=Be,gl=tt,zx=TypeError,Ux=function(e,r){var t,a;if(r==="string"&&ml(t=e.toString)&&!gl(a=pl(t,e))||ml(t=e.valueOf)&&!gl(a=pl(t,e))||r!=="string"&&ml(t=e.toString)&&!gl(a=pl(t,e)))return a;throw new zx("Can't convert object to primitive value")},Xx=rt,Mh=tt,Ah=Ea,qx=Tu,Kx=Ux,Zx=Me,Qx=TypeError,Jx=Zx("toPrimitive"),eE=function(e,r){if(!Mh(e)||Ah(e))return e;var t=qx(e,Jx),a;if(t){if(r===void 0&&(r="default"),a=Xx(t,e,r),!Mh(a)||Ah(a))return a;throw new Qx("Can't convert object to primitive value")}return r===void 0&&(r="number"),Kx(e,r)},tE=eE,rE=Ea,go=function(e){var r=tE(e,"string");return rE(r)?r:r+""},iE=Qe,nE=vm,aE=pm,ms=Ht,Vh=go,sE=TypeError,yl=Object.defineProperty,oE=Object.getOwnPropertyDescriptor,_l="enumerable",bl="configurable",wl="writable";Nt.f=iE?aE?function(r,t,a){if(ms(r),t=Vh(t),ms(a),typeof r=="function"&&t==="prototype"&&"value"in a&&wl in a&&!a[wl]){var n=oE(r,t);n&&n[wl]&&(r[t]=a.value,a={configurable:bl in a?a[bl]:n[bl],enumerable:_l in a?a[_l]:n[_l],writable:!1})}return yl(r,t,a)}:yl:function(r,t,a){if(ms(r),t=Vh(t),ms(a),nE)try{return yl(r,t,a)}catch{}if("get"in a||"set"in a)throw new sE("Accessors not supported");return"value"in a&&(r[t]=a.value),r};var Pi=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},lE=Qe,dE=Nt,uE=Pi,Yr=lE?function(e,r,t){return dE.f(e,r,uE(1,t))}:function(e,r,t){return e[r]=t,e},cE=xn,hE=mo,Rh=cE("keys"),yo=function(e){return Rh[e]||(Rh[e]=hE(e))},Sa={},fE=_x,mm=Ie,vE=tt,pE=Yr,kl=qe,xl=Eu,mE=yo,gE=Sa,Lh="Object already initialized",Ad=mm.TypeError,yE=mm.WeakMap,zs,ca,Us,_E=function(e){return Us(e)?ca(e):zs(e,{})},bE=function(e){return function(r){var t;if(!vE(r)||(t=ca(r)).type!==e)throw new Ad("Incompatible receiver, "+e+" required");return t}};if(fE||xl.state){var fr=xl.state||(xl.state=new yE);fr.get=fr.get,fr.has=fr.has,fr.set=fr.set,zs=function(e,r){if(fr.has(e))throw new Ad(Lh);return r.facade=e,fr.set(e,r),r},ca=function(e){return fr.get(e)||{}},Us=function(e){return fr.has(e)}}else{var Ui=mE("state");gE[Ui]=!0,zs=function(e,r){if(kl(e,Ui))throw new Ad(Lh);return r.facade=e,pE(e,Ui,r),r},ca=function(e){return kl(e,Ui)?e[Ui]:{}},Us=function(e){return kl(e,Ui)}}var Nn={set:zs,get:ca,has:Us,enforce:_E,getterFor:bE},wE=ka,gm=Function.prototype,Fh=gm.apply,Yh=gm.call,Cn=typeof Reflect=="object"&&Reflect.apply||(wE?Yh.bind(Fh):function(){return Yh.apply(Fh,arguments)}),kE=Lr,xE=ge,Nu=function(e){if(kE(e)==="Function")return xE(e)},Ii={},$a={},ym={}.propertyIsEnumerable,_m=Object.getOwnPropertyDescriptor,EE=_m&&!ym.call({1:2},1);$a.f=EE?function(r){var t=_m(this,r);return!!t&&t.enumerable}:ym;var SE=ge,$E=ve,DE=Lr,El=Object,TE=SE("".split),_o=$E(function(){return!El("z").propertyIsEnumerable(0)})?function(e){return DE(e)==="String"?TE(e,""):El(e)}:El,NE=_o,CE=Sn,lr=function(e){return NE(CE(e))},OE=Qe,PE=rt,IE=$a,ME=Pi,AE=lr,VE=go,RE=qe,LE=vm,jh=Object.getOwnPropertyDescriptor;Ii.f=OE?jh:function(r,t){if(r=AE(r),t=VE(t),LE)try{return jh(r,t)}catch{}if(RE(r,t))return ME(!PE(IE.f,r,t),r[t])};var FE=ve,YE=Be,jE=/#|\.prototype\./,Da=function(e,r){var t=HE[BE(e)];return t===GE?!0:t===WE?!1:YE(r)?FE(r):!!r},BE=Da.normalize=function(e){return String(e).replace(jE,".").toLowerCase()},HE=Da.data={},WE=Da.NATIVE="N",GE=Da.POLYFILL="P",bm=Da,Bh=Nu,zE=Ct,UE=ka,XE=Bh(Bh.bind),ni=function(e,r){return zE(e),r===void 0?e:UE?XE(e,r):function(){return e.apply(r,arguments)}},gs=Ie,qE=Cn,KE=Nu,ZE=Be,QE=Ii.f,JE=bm,Xi=be,eS=ni,qi=Yr,Hh=qe,tS=function(e){var r=function(t,a,n){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,a)}return new e(t,a,n)}return qE(e,this,arguments)};return r.prototype=e.prototype,r},U=function(e,r){var t=e.target,a=e.global,n=e.stat,s=e.proto,o=a?gs:n?gs[t]:(gs[t]||{}).prototype,l=a?Xi:Xi[t]||qi(Xi,t,{})[t],d=l.prototype,u,f,p,m,y,b,E,w,S;for(m in r)u=JE(a?m:t+(n?".":"#")+m,e.forced),f=!u&&o&&Hh(o,m),b=l[m],f&&(e.dontCallGetSet?(S=QE(o,m),E=S&&S.value):E=o[m]),y=f&&E?E:r[m],!(f&&typeof b==typeof y)&&(e.bind&&f?w=eS(y,gs):e.wrap&&f?w=tS(y):s&&ZE(y)?w=KE(y):w=y,(e.sham||y&&y.sham||b&&b.sham)&&qi(w,"sham",!0),qi(l,m,w),s&&(p=t+"Prototype",Hh(Xi,p)||qi(Xi,p,{}),qi(Xi[p],m,y),e.real&&d&&(u||!d[m])&&qi(d,m,y)))},Vd=Qe,rS=qe,wm=Function.prototype,iS=Vd&&Object.getOwnPropertyDescriptor,km=rS(wm,"name"),nS=km&&(function(){}).name==="something";km&&(!Vd||Vd&&iS(wm,"name").configurable);var aS={PROPER:nS},bo={},sS=xa,oS=Math.max,lS=Math.min,Ta=function(e,r){var t=sS(e);return t<0?oS(t+r,0):lS(t,r)},dS=xa,uS=Math.min,cS=function(e){return e>0?uS(dS(e),9007199254740991):0},hS=cS,Ot=function(e){return hS(e.length)},fS=lr,vS=Ta,pS=Ot,Wh=function(e){return function(r,t,a){var n=fS(r),s=pS(n),o=vS(a,s),l;if(e&&t!==t){for(;s>o;)if(l=n[o++],l!==l)return!0}else for(;s>o;o++)if((e||o in n)&&n[o]===t)return e||o||0;return!e&&-1}},Cu={includes:Wh(!0),indexOf:Wh(!1)},mS=ge,Sl=qe,gS=lr,yS=Cu.indexOf,_S=Sa,Gh=mS([].push),xm=function(e,r){var t=gS(e),a=0,n=[],s;for(s in t)!Sl(_S,s)&&Sl(t,s)&&Gh(n,s);for(;r.length>a;)Sl(t,s=r[a++])&&(~yS(n,s)||Gh(n,s));return n},Ou=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bS=xm,wS=Ou,Na=Object.keys||function(r){return bS(r,wS)},kS=Qe,xS=pm,ES=Nt,SS=Ht,$S=lr,DS=Na;bo.f=kS&&!xS?Object.defineProperties:function(r,t){SS(r);for(var a=$S(t),n=DS(t),s=n.length,o=0,l;s>o;)ES.f(r,l=n[o++],a[l]);return r};var TS=bt,Em=TS("document","documentElement"),NS=Ht,CS=bo,zh=Ou,OS=Sa,PS=Em,IS=Du,MS=yo,Uh=">",Xh="<",Rd="prototype",Ld="script",Sm=MS("IE_PROTO"),$l=function(){},$m=function(e){return Xh+Ld+Uh+e+Xh+"/"+Ld+Uh},qh=function(e){e.write($m("")),e.close();var r=e.parentWindow.Object;return e=null,r},AS=function(){var e=IS("iframe"),r="java"+Ld+":",t;return e.style.display="none",PS.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write($m("document.F=Object")),t.close(),t.F},ys,Fs=function(){try{ys=new ActiveXObject("htmlfile")}catch{}Fs=typeof document<"u"?document.domain&&ys?qh(ys):AS():qh(ys);for(var e=zh.length;e--;)delete Fs[Rd][zh[e]];return Fs()};OS[Sm]=!0;var Mi=Object.create||function(r,t){var a;return r!==null?($l[Rd]=NS(r),a=new $l,$l[Rd]=null,a[Sm]=r):a=Fs(),t===void 0?a:CS.f(a,t)},VS=ve,Dm=!VS(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),RS=qe,LS=Be,FS=_t,YS=yo,jS=Dm,Kh=YS("IE_PROTO"),Fd=Object,BS=Fd.prototype,Ca=jS?Fd.getPrototypeOf:function(e){var r=FS(e);if(RS(r,Kh))return r[Kh];var t=r.constructor;return LS(t)&&r instanceof t?t.prototype:r instanceof Fd?BS:null},HS=Yr,On=function(e,r,t,a){return a&&a.enumerable?e[r]=t:HS(e,r,t),e},WS=ve,GS=Be,zS=tt,US=Mi,Zh=Ca,XS=On,qS=Me,Yd=qS("iterator"),Tm=!1,Cr,Dl,Tl;[].keys&&(Tl=[].keys(),"next"in Tl?(Dl=Zh(Zh(Tl)),Dl!==Object.prototype&&(Cr=Dl)):Tm=!0);var KS=!zS(Cr)||WS(function(){var e={};return Cr[Yd].call(e)!==e});KS?Cr={}:Cr=US(Cr);GS(Cr[Yd])||XS(Cr,Yd,function(){return this});var Nm={IteratorPrototype:Cr,BUGGY_SAFARI_ITERATORS:Tm},ZS=Su,QS=Fr,JS=ZS?{}.toString:function(){return"[object "+QS(this)+"]"},e$=Su,t$=Nt.f,r$=Yr,i$=qe,n$=JS,a$=Me,Qh=a$("toStringTag"),Ai=function(e,r,t,a){if(e){var n=t?e:e.prototype;i$(n,Qh)||t$(n,Qh,{configurable:!0,value:r}),a&&!e$&&r$(n,"toString",n$)}},Pn={},s$=Nm.IteratorPrototype,o$=Mi,l$=Pi,d$=Ai,u$=Pn,c$=function(){return this},h$=function(e,r,t,a){var n=r+" Iterator";return e.prototype=o$(s$,{next:l$(+!a,t)}),d$(e,n,!1,!0),u$[n]=c$,e},f$=ge,v$=Ct,p$=function(e,r,t){try{return f$(v$(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}},m$=Be,g$=String,y$=TypeError,_$=function(e){if(typeof e=="object"||m$(e))return e;throw new y$("Can't set "+g$(e)+" as a prototype")},b$=p$,w$=Ht,k$=_$,Cm=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=b$(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(n,s){return w$(n),k$(s),e?t(n,s):n.__proto__=s,n}}():void 0),x$=U,E$=rt,S$=aS,$$=h$,D$=Ca,T$=Ai,Jh=On,N$=Me,ef=Pn,C$=Nm,O$=S$.PROPER,_s=C$.BUGGY_SAFARI_ITERATORS,Nl=N$("iterator"),tf="keys",bs="values",rf="entries",P$=function(){return this},Pu=function(e,r,t,a,n,s,o){$$(t,r,a);var l=function(S){if(S===n&&m)return m;if(!_s&&S&&S in f)return f[S];switch(S){case tf:return function(){return new t(this,S)};case bs:return function(){return new t(this,S)};case rf:return function(){return new t(this,S)}}return function(){return new t(this)}},d=r+" Iterator",u=!1,f=e.prototype,p=f[Nl]||f["@@iterator"]||n&&f[n],m=!_s&&p||l(n),y=r==="Array"&&f.entries||p,b,E,w;if(y&&(b=D$(y.call(new e)),b!==Object.prototype&&b.next&&(T$(b,d,!0,!0),ef[d]=P$)),O$&&n===bs&&p&&p.name!==bs&&(u=!0,m=function(){return E$(p,this)}),n)if(E={values:l(bs),keys:s?m:l(tf),entries:l(rf)},o)for(w in E)(_s||u||!(w in f))&&Jh(f,w,E[w]);else x$({target:r,proto:!0,forced:_s||u},E);return o&&f[Nl]!==m&&Jh(f,Nl,m,{}),ef[r]=m,E},Iu=function(e,r){return{value:e,done:r}},I$=mx.charAt,M$=qt,Om=Nn,A$=Pu,nf=Iu,Pm="String Iterator",V$=Om.set,R$=Om.getterFor(Pm);A$(String,"String",function(e){V$(this,{type:Pm,string:M$(e),index:0})},function(){var r=R$(this),t=r.string,a=r.index,n;return a>=t.length?nf(void 0,!0):(n=I$(t,a),r.index+=n.length,nf(n,!1))});var L$=rt,af=Ht,F$=Tu,Im=function(e,r,t){var a,n;af(e);try{if(a=F$(e,"return"),!a){if(r==="throw")throw t;return t}a=L$(a,e)}catch(s){n=!0,a=s}if(r==="throw")throw t;if(n)throw a;return af(a),t},Y$=Ht,j$=Im,B$=function(e,r,t,a){try{return a?r(Y$(t)[0],t[1]):r(t)}catch(n){j$(e,"throw",n)}},H$=Me,W$=Pn,G$=H$("iterator"),z$=Array.prototype,Mm=function(e){return e!==void 0&&(W$.Array===e||z$[G$]===e)},U$=ge,X$=Be,jd=Eu,q$=U$(Function.toString);X$(jd.inspectSource)||(jd.inspectSource=function(e){return q$(e)});var Am=jd.inspectSource,K$=ge,Z$=ve,Vm=Be,Q$=Fr,J$=bt,eD=Am,Rm=function(){},tD=[],Lm=J$("Reflect","construct"),Mu=/^\s*(?:class|function)\b/,rD=K$(Mu.exec),iD=!Mu.test(Rm),Kn=function(r){if(!Vm(r))return!1;try{return Lm(Rm,tD,r),!0}catch{return!1}},Fm=function(r){if(!Vm(r))return!1;switch(Q$(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return iD||!!rD(Mu,eD(r))}catch{return!0}};Fm.sham=!0;var wo=!Lm||Z$(function(){var e;return Kn(Kn.call)||!Kn(Object)||!Kn(function(){e=!0})||e})?Fm:Kn,nD=go,aD=Nt,sD=Pi,In=function(e,r,t){var a=nD(r);a in e?aD.f(e,a,sD(0,t)):e[a]=t},oD=Fr,sf=Tu,lD=En,dD=Pn,uD=Me,cD=uD("iterator"),ko=function(e){if(!lD(e))return sf(e,cD)||sf(e,"@@iterator")||dD[oD(e)]},hD=rt,fD=Ct,vD=Ht,pD=Tn,mD=ko,gD=TypeError,Au=function(e,r){var t=arguments.length<2?mD(e):r;if(fD(t))return vD(hD(t,e));throw new gD(pD(e)+" is not iterable")},yD=ni,_D=rt,bD=_t,wD=B$,kD=Mm,xD=wo,ED=Ot,of=In,SD=Au,$D=ko,lf=Array,DD=function(r){var t=bD(r),a=xD(this),n=arguments.length,s=n>1?arguments[1]:void 0,o=s!==void 0;o&&(s=yD(s,n>2?arguments[2]:void 0));var l=$D(t),d=0,u,f,p,m,y,b;if(l&&!(this===lf&&kD(l)))for(m=SD(t,l),y=m.next,f=a?new this:[];!(p=_D(y,m)).done;d++)b=o?wD(m,s,[p.value,d],!0):p.value,of(f,d,b);else for(u=ED(t),f=a?new this(u):lf(u);u>d;d++)b=o?s(t[d],d):t[d],of(f,d,b);return f.length=d,f},TD=Me,Ym=TD("iterator"),jm=!1;try{var ND=0,df={next:function(){return{done:!!ND++}},return:function(){jm=!0}};df[Ym]=function(){return this},Array.from(df,function(){throw 2})}catch{}var Bm=function(e,r){try{if(!r&&!jm)return!1}catch{return!1}var t=!1;try{var a={};a[Ym]=function(){return{next:function(){return{done:t=!0}}}},e(a)}catch{}return t},CD=U,OD=DD,PD=Bm,ID=!PD(function(e){Array.from(e)});CD({target:"Array",stat:!0,forced:ID},{from:OD});var MD=be,AD=MD.Array.from,VD=AD,Hm=VD,RD=Hm,ai=z(RD),LD=lr,uf=Pn,Wm=Nn;Nt.f;var FD=Pu,ws=Iu,Gm="Array Iterator",YD=Wm.set,jD=Wm.getterFor(Gm);FD(Array,"Array",function(e,r){YD(this,{type:Gm,target:LD(e),index:0,kind:r})},function(){var e=jD(this),r=e.target,t=e.kind,a=e.index++;if(!r||a>=r.length)return e.target=void 0,ws(void 0,!0);switch(t){case"keys":return ws(a,!1);case"values":return ws(r[a],!1)}return ws([a,r[a]],!1)},"values");uf.Arguments=uf.Array;var BD=ko,HD=BD,WD={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},GD=WD,zD=Ie,UD=Fr,XD=Yr,cf=Pn,qD=Me,hf=qD("toStringTag");for(var Cl in GD){var ff=zD[Cl],Ol=ff&&ff.prototype;Ol&&UD(Ol)!==hf&&XD(Ol,hf,Cl),cf[Cl]=cf.Array}var KD=HD,ZD=KD,QD=ZD,JD=QD,eT=JD,tT=eT,zm=tT,Um=z(zm),rT=zm,si=z(rT);function ue(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Xm={exports:{}},iT=U,nT=Qe,vf=Nt.f;iT({target:"Object",stat:!0,forced:Object.defineProperty!==vf,sham:!nT},{defineProperty:vf});var aT=be,qm=aT.Object,sT=Xm.exports=function(r,t,a){return qm.defineProperty(r,t,a)};qm.defineProperty.sham&&(sT.sham=!0);var oT=Xm.exports,lT=oT,Km=lT,dT=Km,uT=dT,cT=uT,hT=cT,Zm=hT,xo=z(Zm),fT=Lr,oi=Array.isArray||function(r){return fT(r)==="Array"},vT=TypeError,pT=9007199254740991,Eo=function(e){if(e>pT)throw vT("Maximum allowed index exceeded");return e},pf=oi,mT=wo,gT=tt,yT=Me,_T=yT("species"),mf=Array,bT=function(e){var r;return pf(e)&&(r=e.constructor,mT(r)&&(r===mf||pf(r.prototype))?r=void 0:gT(r)&&(r=r[_T],r===null&&(r=void 0))),r===void 0?mf:r},wT=bT,So=function(e,r){return new(wT(e))(r===0?0:r)},kT=ve,xT=Me,ET=$n,ST=xT("species"),Oa=function(e){return ET>=51||!kT(function(){var r=[],t=r.constructor={};return t[ST]=function(){return{foo:1}},r[e](Boolean).foo!==1})},$T=U,DT=ve,TT=oi,NT=tt,CT=_t,OT=Ot,gf=Eo,yf=In,PT=So,IT=Oa,MT=Me,AT=$n,Qm=MT("isConcatSpreadable"),VT=AT>=51||!DT(function(){var e=[];return e[Qm]=!1,e.concat()[0]!==e}),RT=function(e){if(!NT(e))return!1;var r=e[Qm];return r!==void 0?!!r:TT(e)},LT=!VT||!IT("concat");$T({target:"Array",proto:!0,forced:LT},{concat:function(r){var t=CT(this),a=PT(t,0),n=0,s,o,l,d,u;for(s=-1,l=arguments.length;s<l;s++)if(u=s===-1?t:arguments[s],RT(u))for(d=OT(u),gf(n+d),o=0;o<d;o++,n++)o in u&&yf(a,n,u[o]);else gf(n+1),yf(a,n++,u);return a.length=n,a}});var Pa={},FT=xm,YT=Ou,jT=YT.concat("length","prototype");Pa.f=Object.getOwnPropertyNames||function(r){return FT(r,jT)};var Vu={},_f=Ta,BT=Ot,HT=In,WT=Array,GT=Math.max,Jm=function(e,r,t){for(var a=BT(e),n=_f(r,a),s=_f(t===void 0?a:t,a),o=WT(GT(s-n,0)),l=0;n<s;n++,l++)HT(o,l,e[n]);return o.length=l,o},zT=Lr,UT=lr,eg=Pa.f,XT=Jm,tg=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qT=function(e){try{return eg(e)}catch{return XT(tg)}};Vu.f=function(r){return tg&&zT(r)==="Window"?qT(r):eg(UT(r))};var Ia={};Ia.f=Object.getOwnPropertySymbols;var KT=Nt,Ru=function(e,r,t){return KT.f(e,r,t)},Ma={},ZT=Me;Ma.f=ZT;var bf=be,QT=qe,JT=Ma,eN=Nt.f,He=function(e){var r=bf.Symbol||(bf.Symbol={});QT(r,e)||eN(r,e,{value:JT.f(e)})},tN=rt,rN=bt,iN=Me,nN=On,rg=function(){var e=rN("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,a=iN("toPrimitive");r&&!r[a]&&nN(r,a,function(n){return tN(t,this)},{})},aN=ni,sN=ge,oN=_o,lN=_t,dN=Ot,uN=So,wf=sN([].push),fi=function(e){var r=e===1,t=e===2,a=e===3,n=e===4,s=e===6,o=e===7,l=e===5||s;return function(d,u,f,p){for(var m=lN(d),y=oN(m),b=aN(u,f),E=dN(y),w=0,S=p||uN,D=r?S(d,E):t||o?S(d,0):void 0,T,P;E>w;w++)if((l||w in y)&&(T=y[w],P=b(T,w,m),e))if(r)D[w]=P;else if(P)switch(e){case 3:return!0;case 5:return T;case 6:return w;case 2:wf(D,T)}else switch(e){case 4:return!1;case 7:wf(D,T)}return s?-1:a||n?n:D}},jr={forEach:fi(0),map:fi(1),filter:fi(2),some:fi(3),every:fi(4),find:fi(5),findIndex:fi(6)},$o=U,Do=Ie,Lu=rt,cN=ge,vn=Qe,pn=Dn,hN=ve,et=qe,fN=$e,Bd=Ht,To=lr,Fu=go,vN=qt,Hd=Pi,ha=Mi,ig=Na,pN=Pa,ng=Vu,mN=Ia,ag=Ii,sg=Nt,gN=bo,og=$a,kf=On,yN=Ru,Yu=xn,_N=yo,lg=Sa,xf=mo,bN=Me,wN=Ma,kN=He,xN=rg,EN=Ai,dg=Nn,No=jr.forEach,$t=_N("hidden"),Co="Symbol",fa="prototype",SN=dg.set,Ef=dg.getterFor(Co),nr=Object[fa],_i=Do.Symbol,ta=_i&&_i[fa],$N=Do.RangeError,DN=Do.TypeError,Pl=Do.QObject,ug=ag.f,bi=sg.f,cg=ng.f,TN=og.f,hg=cN([].push),Mr=Yu("symbols"),Aa=Yu("op-symbols"),NN=Yu("wks"),Wd=!Pl||!Pl[fa]||!Pl[fa].findChild,fg=function(e,r,t){var a=ug(nr,r);a&&delete nr[r],bi(e,r,t),a&&e!==nr&&bi(nr,r,a)},Gd=vn&&hN(function(){return ha(bi({},"a",{get:function(){return bi(this,"a",{value:7}).a}})).a!==7})?fg:bi,Il=function(e,r){var t=Mr[e]=ha(ta);return SN(t,{type:Co,tag:e,description:r}),vn||(t.description=r),t},Oo=function(r,t,a){r===nr&&Oo(Aa,t,a),Bd(r);var n=Fu(t);return Bd(a),et(Mr,n)?(a.enumerable?(et(r,$t)&&r[$t][n]&&(r[$t][n]=!1),a=ha(a,{enumerable:Hd(0,!1)})):(et(r,$t)||bi(r,$t,Hd(1,{})),r[$t][n]=!0),Gd(r,n,a)):bi(r,n,a)},ju=function(r,t){Bd(r);var a=To(t),n=ig(a).concat(gg(a));return No(n,function(s){(!vn||Lu(vg,a,s))&&Oo(r,s,a[s])}),r},CN=function(r,t){return t===void 0?ha(r):ju(ha(r),t)},vg=function(r){var t=Fu(r),a=Lu(TN,this,t);return this===nr&&et(Mr,t)&&!et(Aa,t)?!1:a||!et(this,t)||!et(Mr,t)||et(this,$t)&&this[$t][t]?a:!0},pg=function(r,t){var a=To(r),n=Fu(t);if(!(a===nr&&et(Mr,n)&&!et(Aa,n))){var s=ug(a,n);return s&&et(Mr,n)&&!(et(a,$t)&&a[$t][n])&&(s.enumerable=!0),s}},mg=function(r){var t=cg(To(r)),a=[];return No(t,function(n){!et(Mr,n)&&!et(lg,n)&&hg(a,n)}),a},gg=function(e){var r=e===nr,t=cg(r?Aa:To(e)),a=[];return No(t,function(n){et(Mr,n)&&(!r||et(nr,n))&&hg(a,Mr[n])}),a};pn||(_i=function(){if(fN(ta,this))throw new DN("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:vN(arguments[0]),t=xf(r),a=function(n){this===nr&&Lu(a,Aa,n),et(this,$t)&&et(this[$t],t)&&(this[$t][t]=!1);var s=Hd(1,n);try{Gd(this,t,s)}catch(o){if(!(o instanceof $N))throw o;fg(this,t,s)}};return vn&&Wd&&Gd(nr,t,{configurable:!0,set:a}),Il(t,r)},ta=_i[fa],kf(ta,"toString",function(){return Ef(this).tag}),kf(_i,"withoutSetter",function(e){return Il(xf(e),e)}),og.f=vg,sg.f=Oo,gN.f=ju,ag.f=pg,pN.f=ng.f=mg,mN.f=gg,wN.f=function(e){return Il(bN(e),e)},vn&&yN(ta,"description",{configurable:!0,get:function(){return Ef(this).description}}));$o({global:!0,wrap:!0,forced:!pn,sham:!pn},{Symbol:_i});No(ig(NN),function(e){kN(e)});$o({target:Co,stat:!0,forced:!pn},{useSetter:function(){Wd=!0},useSimple:function(){Wd=!1}});$o({target:"Object",stat:!0,forced:!pn,sham:!vn},{create:CN,defineProperty:Oo,defineProperties:ju,getOwnPropertyDescriptor:pg});$o({target:"Object",stat:!0,forced:!pn},{getOwnPropertyNames:mg});xN();EN(_i,Co);lg[$t]=!0;var ON=Dn,yg=ON&&!!Symbol.for&&!!Symbol.keyFor,PN=U,IN=bt,MN=qe,AN=qt,_g=xn,VN=yg,Ml=_g("string-to-symbol-registry"),RN=_g("symbol-to-string-registry");PN({target:"Symbol",stat:!0,forced:!VN},{for:function(e){var r=AN(e);if(MN(Ml,r))return Ml[r];var t=IN("Symbol")(r);return Ml[r]=t,RN[t]=r,t}});var LN=U,FN=qe,YN=Ea,jN=Tn,BN=xn,HN=yg,Sf=BN("symbol-to-string-registry");LN({target:"Symbol",stat:!0,forced:!HN},{keyFor:function(r){if(!YN(r))throw new TypeError(jN(r)+" is not a symbol");if(FN(Sf,r))return Sf[r]}});var WN=ge,Va=WN([].slice),GN=ge,$f=oi,zN=Be,Df=Lr,UN=qt,Tf=GN([].push),XN=function(e){if(zN(e))return e;if($f(e)){for(var r=e.length,t=[],a=0;a<r;a++){var n=e[a];typeof n=="string"?Tf(t,n):(typeof n=="number"||Df(n)==="Number"||Df(n)==="String")&&Tf(t,UN(n))}var s=t.length,o=!0;return function(l,d){if(o)return o=!1,d;if($f(this))return d;for(var u=0;u<s;u++)if(t[u]===l)return d}}},qN=U,bg=bt,wg=Cn,KN=rt,Ra=ge,kg=ve,Nf=Be,Cf=Ea,xg=Va,ZN=XN,QN=Dn,JN=String,Qr=bg("JSON","stringify"),ks=Ra(/./.exec),Of=Ra("".charAt),eC=Ra("".charCodeAt),tC=Ra("".replace),rC=Ra(1 .toString),iC=/[\uD800-\uDFFF]/g,Pf=/^[\uD800-\uDBFF]$/,If=/^[\uDC00-\uDFFF]$/,Mf=!QN||kg(function(){var e=bg("Symbol")("stringify detection");return Qr([e])!=="[null]"||Qr({a:e})!=="{}"||Qr(Object(e))!=="{}"}),Af=kg(function(){return Qr("\uDF06\uD834")!=='"\\udf06\\ud834"'||Qr("\uDEAD")!=='"\\udead"'}),nC=function(e,r){var t=xg(arguments),a=ZN(r);if(!(!Nf(a)&&(e===void 0||Cf(e))))return t[1]=function(n,s){if(Nf(a)&&(s=KN(a,this,JN(n),s)),!Cf(s))return s},wg(Qr,null,t)},aC=function(e,r,t){var a=Of(t,r-1),n=Of(t,r+1);return ks(Pf,e)&&!ks(If,n)||ks(If,e)&&!ks(Pf,a)?"\\u"+rC(eC(e,0),16):e};Qr&&qN({target:"JSON",stat:!0,forced:Mf||Af},{stringify:function(r,t,a){var n=xg(arguments),s=wg(Mf?nC:Qr,null,n);return Af&&typeof s=="string"?tC(s,iC,aC):s}});var sC=U,oC=Dn,lC=ve,Eg=Ia,dC=_t,uC=!oC||lC(function(){Eg.f(1)});sC({target:"Object",stat:!0,forced:uC},{getOwnPropertySymbols:function(r){var t=Eg.f;return t?t(dC(r)):[]}});var cC=He;cC("asyncIterator");var hC=He;hC("hasInstance");var fC=He;fC("isConcatSpreadable");var vC=He;vC("iterator");var pC=He;pC("match");var mC=He;mC("matchAll");var gC=He;gC("replace");var yC=He;yC("search");var _C=He;_C("species");var bC=He;bC("split");var wC=He,kC=rg;wC("toPrimitive");kC();var xC=bt,EC=He,SC=Ai;EC("toStringTag");SC(xC("Symbol"),"Symbol");var $C=He;$C("unscopables");var DC=Ie,TC=Ai;TC(DC.JSON,"JSON",!0);var NC=be,CC=NC.Symbol,OC=CC,Sg=OC,PC=Me,IC=Nt.f,Vf=PC("metadata"),Rf=Function.prototype;Rf[Vf]===void 0&&IC(Rf,Vf,{value:null});var MC=He;MC("asyncDispose");var AC=He;AC("dispose");var VC=He;VC("metadata");var RC=Sg,LC=RC,FC=bt,YC=ge,Bu=FC("Symbol"),jC=Bu.keyFor,BC=YC(Bu.prototype.valueOf),$g=Bu.isRegisteredSymbol||function(r){try{return jC(BC(r))!==void 0}catch{return!1}},HC=U,WC=$g;HC({target:"Symbol",stat:!0},{isRegisteredSymbol:WC});var GC=xn,Dg=bt,zC=ge,UC=Ea,XC=Me,Xs=Dg("Symbol"),Lf=Xs.isWellKnownSymbol,Tg=Dg("Object","getOwnPropertyNames"),qC=zC(Xs.prototype.valueOf),Ff=GC("wks");for(var Al=0,Yf=Tg(Xs),KC=Yf.length;Al<KC;Al++)try{var jf=Yf[Al];UC(Xs[jf])&&XC(jf)}catch{}var Ng=function(r){if(Lf&&Lf(r))return!0;try{for(var t=qC(r),a=0,n=Tg(Ff),s=n.length;a<s;a++)if(Ff[n[a]]==t)return!0}catch{}return!1},ZC=U,QC=Ng;ZC({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:QC});var JC=He;JC("matcher");var eO=He;eO("observable");var tO=U,rO=$g;tO({target:"Symbol",stat:!0},{isRegistered:rO});var iO=U,nO=Ng;iO({target:"Symbol",stat:!0,forced:!0},{isWellKnown:nO});var aO=He;aO("metadataKey");var sO=He;sO("patternMatch");var oO=He;oO("replaceAll");var lO=LC,dO=lO,Hu=dO,sn=z(Hu),uO=Ma,cO=uO.f("iterator"),hO=cO,Cg=hO,fO=Cg,vO=fO,pO=vO,mO=pO,Og=mO,gO=z(Og);function ee(e){"@babel/helpers - typeof";return ee=typeof sn=="function"&&typeof gO=="symbol"?function(r){return typeof r}:function(r){return r&&typeof sn=="function"&&r.constructor===sn&&r!==sn.prototype?"symbol":typeof r},ee(e)}var yO=Ma,_O=yO.f("toPrimitive"),bO=_O,wO=bO,kO=wO,xO=kO,EO=xO,SO=EO,$O=SO,DO=z($O);function TO(e,r){if(ee(e)!=="object"||e===null)return e;var t=e[DO];if(t!==void 0){var a=t.call(e,r);if(ee(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Pg(e){var r=TO(e,"string");return ee(r)==="symbol"?r:String(r)}function Bf(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),xo(e,Pg(a.key),a)}}function ce(e,r,t){return r&&Bf(e.prototype,r),t&&Bf(e,t),xo(e,"prototype",{writable:!1}),e}var NO=U,CO=oi;NO({target:"Array",stat:!0},{isArray:CO});var OO=be,PO=OO.Array.isArray,IO=PO,Ig=IO,MO=Ig,AO=MO,VO=AO,RO=VO,LO=RO,Mg=z(LO);function FO(e){if(Mg(e))return e}var YO=Qe,jO=oi,BO=TypeError,HO=Object.getOwnPropertyDescriptor,WO=YO&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Ag=WO?function(e,r){if(jO(e)&&!HO(e,"length").writable)throw new BO("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r},GO=U,zO=_t,UO=Ot,XO=Ag,qO=Eo,KO=ve,ZO=KO(function(){return[].push.call({length:4294967296},1)!==4294967297}),QO=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},JO=ZO||!QO();GO({target:"Array",proto:!0,forced:JO},{push:function(r){var t=zO(this),a=UO(t),n=arguments.length;qO(a+n);for(var s=0;s<n;s++)t[a]=arguments[s],a++;return XO(t,a),a}});var e2=be,Le=function(e){return e2[e+"Prototype"]},t2=Le,r2=t2("Array").push,i2=$e,n2=r2,Vl=Array.prototype,a2=function(e){var r=e.push;return e===Vl||i2(Vl,e)&&r===Vl.push?n2:r},s2=a2,o2=s2,l2=o2,d2=l2,u2=d2,c2=u2,Vg=c2,h2=z(Vg);function f2(e,r){var t=e==null?null:typeof sn<"u"&&Um(e)||e["@@iterator"];if(t!=null){var a,n,s,o,l=[],d=!0,u=!1;try{if(s=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;d=!1}else for(;!(d=(a=s.call(t)).done)&&(h2(l).call(l,a.value),l.length!==r);d=!0);}catch(f){u=!0,n=f}finally{try{if(!d&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw n}}return l}}var v2=U,Hf=oi,p2=wo,m2=tt,Wf=Ta,g2=Ot,y2=lr,_2=In,b2=Me,w2=Oa,k2=Va,x2=w2("slice"),E2=b2("species"),Rl=Array,S2=Math.max;v2({target:"Array",proto:!0,forced:!x2},{slice:function(r,t){var a=y2(this),n=g2(a),s=Wf(r,n),o=Wf(t===void 0?n:t,n),l,d,u;if(Hf(a)&&(l=a.constructor,p2(l)&&(l===Rl||Hf(l.prototype))?l=void 0:m2(l)&&(l=l[E2],l===null&&(l=void 0)),l===Rl||l===void 0))return k2(a,s,o);for(d=new(l===void 0?Rl:l)(S2(o-s,0)),u=0;s<o;s++,u++)s in a&&_2(d,u,a[s]);return d.length=u,d}});var $2=Le,D2=$2("Array").slice,T2=$e,N2=D2,Ll=Array.prototype,C2=function(e){var r=e.slice;return e===Ll||T2(Ll,e)&&r===Ll.slice?N2:r},O2=C2,Rg=O2,P2=Rg,I2=P2,M2=I2,A2=M2,Lg=A2,V2=z(Lg),R2=Hm,L2=R2,F2=L2,Y2=F2,j2=Y2,Fg=z(j2);function zd(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function Yg(e,r){var t;if(e){if(typeof e=="string")return zd(e,r);var a=V2(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Fg(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return zd(e,r)}}function B2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
39
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(e,r){return FO(e)||f2(e,r)||Yg(e,r)||B2()}function H2(e){if(Mg(e))return zd(e)}function W2(e){if(typeof sn<"u"&&Um(e)!=null||e["@@iterator"]!=null)return Fg(e)}function G2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pe(e){return H2(e)||W2(e)||Yg(e)||G2()}var z2=Sg,Br=z(z2),U2=Le,X2=U2("Array").concat,q2=$e,K2=X2,Fl=Array.prototype,Z2=function(e){var r=e.concat;return e===Fl||q2(Fl,e)&&r===Fl.concat?K2:r},Q2=Z2,J2=Q2,eP=J2,Ne=z(eP),tP=Rg,ht=z(tP),rP=bt,iP=ge,nP=Pa,aP=Ia,sP=Ht,oP=iP([].concat),Wu=rP("Reflect","ownKeys")||function(r){var t=nP.f(sP(r)),a=aP.f;return a?oP(t,a(r)):t},lP=U,dP=Wu;lP({target:"Reflect",stat:!0},{ownKeys:dP});var uP=be,cP=uP.Reflect.ownKeys,hP=cP,fP=hP,vP=fP,jg=z(vP),pP=Ig,re=z(pP),mP=U,gP=jr.map,yP=Oa,_P=yP("map");mP({target:"Array",proto:!0,forced:!_P},{map:function(r){return gP(this,r,arguments.length>1?arguments[1]:void 0)}});var bP=Le,wP=bP("Array").map,kP=$e,xP=wP,Yl=Array.prototype,EP=function(e){var r=e.map;return e===Yl||kP(Yl,e)&&r===Yl.map?xP:r},SP=EP,$P=SP,DP=$P,ye=z(DP),TP=U,NP=_t,Bg=Na,CP=ve,OP=CP(function(){Bg(1)});TP({target:"Object",stat:!0,forced:OP},{keys:function(r){return Bg(NP(r))}});var PP=be,IP=PP.Object.keys,MP=IP,AP=MP,VP=AP,Ze=z(VP),RP=U,LP=ge,Hg=Date,FP=LP(Hg.prototype.getTime);RP({target:"Date",stat:!0},{now:function(){return FP(new Hg)}});var YP=be,jP=YP.Date.now,BP=jP,HP=BP,WP=HP,Rt=z(WP),Wg=ge,GP=Ct,zP=tt,UP=qe,Gf=Va,XP=ka,Gg=Function,qP=Wg([].concat),KP=Wg([].join),jl={},ZP=function(e,r,t){if(!UP(jl,r)){for(var a=[],n=0;n<r;n++)a[n]="a["+n+"]";jl[r]=Gg("C,a","return new C("+KP(a,",")+")")}return jl[r](e,t)},zg=XP?Gg.bind:function(r){var t=GP(this),a=t.prototype,n=Gf(arguments,1),s=function(){var l=qP(n,Gf(arguments));return this instanceof s?ZP(t,l.length,l):t.apply(r,l)};return zP(a)&&(s.prototype=a),s},QP=U,zf=zg;QP({target:"Function",proto:!0,forced:Function.bind!==zf},{bind:zf});var JP=Le,eI=JP("Function").bind,tI=$e,rI=eI,Bl=Function.prototype,iI=function(e){var r=e.bind;return e===Bl||tI(Bl,e)&&r===Bl.bind?rI:r},nI=iI,Ug=nI,aI=Ug,O=z(aI),sI=ve,Mn=function(e,r){var t=[][e];return!!t&&sI(function(){t.call(null,r||function(){return 1},1)})},oI=jr.forEach,lI=Mn,dI=lI("forEach"),uI=dI?[].forEach:function(r){return oI(this,r,arguments.length>1?arguments[1]:void 0)},cI=U,Uf=uI;cI({target:"Array",proto:!0,forced:[].forEach!==Uf},{forEach:Uf});var hI=Le,fI=hI("Array").forEach,vI=fI,pI=vI,mI=Fr,gI=qe,yI=$e,_I=pI,Hl=Array.prototype,bI={DOMTokenList:!0,NodeList:!0},Xg=function(e){var r=e.forEach;return e===Hl||yI(Hl,e)&&r===Hl.forEach||gI(bI,mI(e))?_I:r},wI=Xg,B=z(wI),kI=U,xI=ge,EI=oi,SI=xI([].reverse),Xf=[1,2];kI({target:"Array",proto:!0,forced:String(Xf)===String(Xf.reverse())},{reverse:function(){return EI(this)&&(this.length=this.length),SI(this)}});var $I=Le,DI=$I("Array").reverse,TI=$e,NI=DI,Wl=Array.prototype,CI=function(e){var r=e.reverse;return e===Wl||TI(Wl,e)&&r===Wl.reverse?NI:r},OI=CI,qg=OI,PI=qg,II=z(PI),qf=Tn,MI=TypeError,Kg=function(e,r){if(!delete e[r])throw new MI("Cannot delete property "+qf(r)+" of "+qf(e))},AI=U,VI=_t,RI=Ta,LI=xa,FI=Ot,YI=Ag,jI=Eo,BI=So,HI=In,Gl=Kg,WI=Oa,GI=WI("splice"),zI=Math.max,UI=Math.min;AI({target:"Array",proto:!0,forced:!GI},{splice:function(r,t){var a=VI(this),n=FI(a),s=RI(r,n),o=arguments.length,l,d,u,f,p,m;for(o===0?l=d=0:o===1?(l=0,d=n-s):(l=o-2,d=UI(zI(LI(t),0),n-s)),jI(n+l-d),u=BI(a,d),f=0;f<d;f++)p=s+f,p in a&&HI(u,f,a[p]);if(u.length=d,l<d){for(f=s;f<n-d;f++)p=f+d,m=f+l,p in a?a[m]=a[p]:Gl(a,m);for(f=n;f>n-d+l;f--)Gl(a,f-1)}else if(l>d)for(f=n-d;f>s;f--)p=f+d-1,m=f+l-1,p in a?a[m]=a[p]:Gl(a,m);for(f=0;f<l;f++)a[f+s]=arguments[f+2];return YI(a,n-d+l),u}});var XI=Le,qI=XI("Array").splice,KI=$e,ZI=qI,zl=Array.prototype,QI=function(e){var r=e.splice;return e===zl||KI(zl,e)&&r===zl.splice?ZI:r},JI=QI,eM=JI,tM=eM,pt=z(tM),Kf=Qe,rM=ge,iM=rt,nM=ve,Ul=Na,aM=Ia,sM=$a,oM=_t,lM=_o,Ki=Object.assign,Zf=Object.defineProperty,dM=rM([].concat),uM=!Ki||nM(function(){if(Kf&&Ki({b:1},Ki(Zf({},"a",{enumerable:!0,get:function(){Zf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[t]=7,a.split("").forEach(function(n){r[n]=n}),Ki({},e)[t]!==7||Ul(Ki({},r)).join("")!==a})?function(r,t){for(var a=oM(r),n=arguments.length,s=1,o=aM.f,l=sM.f;n>s;)for(var d=lM(arguments[s++]),u=o?dM(Ul(d),o(d)):Ul(d),f=u.length,p=0,m;f>p;)m=u[p++],(!Kf||iM(l,d,m))&&(a[m]=d[m]);return a}:Ki,cM=U,Qf=uM;cM({target:"Object",stat:!0,forced:Object.assign!==Qf},{assign:Qf});var hM=be,fM=hM.Object.assign,vM=fM,pM=vM,mM=pM,Ar=z(mM),gM=U,yM=Cu.includes,_M=ve,bM=_M(function(){return!Array(1).includes()});gM({target:"Array",proto:!0,forced:bM},{includes:function(r){return yM(this,r,arguments.length>1?arguments[1]:void 0)}});var wM=Le,kM=wM("Array").includes,xM=tt,EM=Lr,SM=Me,$M=SM("match"),DM=function(e){var r;return xM(e)&&((r=e[$M])!==void 0?!!r:EM(e)==="RegExp")},TM=DM,NM=TypeError,CM=function(e){if(TM(e))throw new NM("The method doesn't accept regular expressions");return e},OM=Me,PM=OM("match"),IM=function(e){var r=/./;try{"/./"[e](r)}catch{try{return r[PM]=!1,"/./"[e](r)}catch{}}return!1},MM=U,AM=ge,VM=CM,RM=Sn,Jf=qt,LM=IM,FM=AM("".indexOf);MM({target:"String",proto:!0,forced:!LM("includes")},{includes:function(r){return!!~FM(Jf(RM(this)),Jf(VM(r)),arguments.length>1?arguments[1]:void 0)}});var YM=Le,jM=YM("String").includes,ev=$e,BM=kM,HM=jM,Xl=Array.prototype,ql=String.prototype,WM=function(e){var r=e.includes;return e===Xl||ev(Xl,e)&&r===Xl.includes?BM:typeof e=="string"||e===ql||ev(ql,e)&&r===ql.includes?HM:r},GM=WM,zM=GM,UM=zM,ti=z(UM),XM=U,qM=ve,KM=_t,Zg=Ca,ZM=Dm,QM=qM(function(){Zg(1)});XM({target:"Object",stat:!0,forced:QM,sham:!ZM},{getPrototypeOf:function(r){return Zg(KM(r))}});var JM=be,eA=JM.Object.getPrototypeOf,tA=eA,Qg=tA,rA=Qg,tv=z(rA),iA=U,nA=jr.filter,aA=Oa,sA=aA("filter");iA({target:"Array",proto:!0,forced:!sA},{filter:function(r){return nA(this,r,arguments.length>1?arguments[1]:void 0)}});var oA=Le,lA=oA("Array").filter,dA=$e,uA=lA,Kl=Array.prototype,cA=function(e){var r=e.filter;return e===Kl||dA(Kl,e)&&r===Kl.filter?uA:r},hA=cA,fA=hA,vA=fA,J=z(vA),Jg=Qe,pA=ve,ey=ge,mA=Ca,gA=Na,yA=lr,_A=$a.f,ty=ey(_A),bA=ey([].push),wA=Jg&&pA(function(){var e=Object.create(null);return e[2]=2,!ty(e,2)}),rv=function(e){return function(r){for(var t=yA(r),a=gA(t),n=wA&&mA(t)===null,s=a.length,o=0,l=[],d;s>o;)d=a[o++],(!Jg||(n?d in t:ty(t,d)))&&bA(l,e?[d,t[d]]:t[d]);return l}},ry={entries:rv(!0),values:rv(!1)},kA=U,xA=ry.values;kA({target:"Object",stat:!0},{values:function(r){return xA(r)}});var EA=be,SA=EA.Object.values,$A=SA,DA=$A,TA=DA,Gu=z(TA),zu=`
|
41
|
+
\v\f\r \u2028\u2029\uFEFF`,NA=ge,CA=Sn,OA=qt,Ud=zu,iv=NA("".replace),PA=RegExp("^["+Ud+"]+"),IA=RegExp("(^|[^"+Ud+"])["+Ud+"]+$"),MA=function(e){return function(r){var t=OA(CA(r));return e&1&&(t=iv(t,PA,"")),e&2&&(t=iv(t,IA,"$1")),t}},iy={trim:MA(3)},ny=Ie,AA=ve,VA=ge,RA=qt,LA=iy.trim,nv=zu,ia=ny.parseInt,av=ny.Symbol,sv=av&&av.iterator,ay=/^[+-]?0x/i,FA=VA(ay.exec),YA=ia(nv+"08")!==8||ia(nv+"0x16")!==22||sv&&!AA(function(){ia(Object(sv))}),jA=YA?function(r,t){var a=LA(RA(r));return ia(a,t>>>0||(FA(ay,a)?16:10))}:ia,BA=U,ov=jA;BA({global:!0,forced:parseInt!==ov},{parseInt:ov});var HA=be,WA=HA.parseInt,GA=WA,zA=GA,UA=zA,Lt=z(UA),XA=U,qA=Nu,KA=Cu.indexOf,ZA=Mn,Xd=qA([].indexOf),sy=!!Xd&&1/Xd([1],1,-0)<0,QA=sy||!ZA("indexOf");XA({target:"Array",proto:!0,forced:QA},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return sy?Xd(this,r,t)||0:KA(this,r,t)}});var JA=Le,eV=JA("Array").indexOf,tV=$e,rV=eV,Zl=Array.prototype,iV=function(e){var r=e.indexOf;return e===Zl||tV(Zl,e)&&r===Zl.indexOf?rV:r},nV=iV,aV=nV,sV=aV,Se=z(sV),oV=U,lV=ry.entries;oV({target:"Object",stat:!0},{entries:function(r){return lV(r)}});var dV=be,uV=dV.Object.entries,cV=uV,hV=cV,fV=hV,vV=z(fV),pV=U,mV=Qe,gV=Mi;pV({target:"Object",stat:!0,sham:!mV},{create:gV});var yV=be,_V=yV.Object,bV=function(r,t){return _V.create(r,t)},wV=bV,oy=wV,kV=oy,La=z(kV),qd=be,xV=Cn;qd.JSON||(qd.JSON={stringify:JSON.stringify});var EV=function(r,t,a){return xV(qd.JSON.stringify,null,arguments)},SV=EV,$V=SV,DV=$V,Dt=z(DV),TV=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",NV=TypeError,ly=function(e,r){if(e<r)throw new NV("Not enough arguments");return e},dy=Ie,CV=Cn,OV=Be,PV=TV,IV=ii,MV=Va,AV=ly,VV=dy.Function,RV=/MSIE .\./.test(IV)||PV&&function(){var e=dy.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),uy=function(e,r){var t=r?2:1;return RV?function(a,n){var s=AV(arguments.length,1)>t,o=OV(a)?a:VV(a),l=s?MV(arguments,t):[],d=s?function(){CV(o,this,l)}:o;return r?e(d,n):e(d)}:e},LV=U,cy=Ie,FV=uy,lv=FV(cy.setInterval,!0);LV({global:!0,bind:!0,forced:cy.setInterval!==lv},{setInterval:lv});var YV=U,hy=Ie,jV=uy,dv=jV(hy.setTimeout,!0);YV({global:!0,bind:!0,forced:hy.setTimeout!==dv},{setTimeout:dv});var BV=be,HV=BV.setTimeout,WV=HV,ct=z(WV),GV=_t,uv=Ta,zV=Ot,UV=function(r){for(var t=GV(this),a=zV(t),n=arguments.length,s=uv(n>1?arguments[1]:void 0,a),o=n>2?arguments[2]:void 0,l=o===void 0?a:uv(o,a);l>s;)t[s++]=r;return t},XV=U,qV=UV;XV({target:"Array",proto:!0},{fill:qV});var KV=Le,ZV=KV("Array").fill,QV=$e,JV=ZV,Ql=Array.prototype,eR=function(e){var r=e.fill;return e===Ql||QV(Ql,e)&&r===Ql.fill?JV:r},tR=eR,rR=tR,iR=rR,fy=z(iR),vy={exports:{}};(function(e){e.exports=r;function r(a){if(a)return t(a)}function t(a){for(var n in r.prototype)a[n]=r.prototype[n];return a}r.prototype.on=r.prototype.addEventListener=function(a,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(n),this},r.prototype.once=function(a,n){function s(){this.off(a,s),n.apply(this,arguments)}return s.fn=n,this.on(a,s),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(a,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+a];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var o,l=0;l<s.length;l++)if(o=s[l],o===n||o.fn===n){s.splice(l,1);break}return s.length===0&&delete this._callbacks["$"+a],this},r.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),s=this._callbacks["$"+a],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(s){s=s.slice(0);for(var o=0,l=s.length;o<l;++o)s[o].apply(this,n)}return this},r.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]},r.prototype.hasListeners=function(a){return!!this.listeners(a).length}})(vy);var nR=vy.exports,Uu=z(nR);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
46
42
|
* http://naver.github.io/egjs
|
47
43
|
*
|
48
44
|
* Forked By Naver egjs
|
49
45
|
* Copyright (c) hammerjs
|
50
|
-
* Licensed under the MIT license */function xr(){return xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},xr.apply(this,arguments)}function pr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function jo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var qu;typeof Object.assign!="function"?qu=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),a=1;a<arguments.length;a++){var n=arguments[a];if(n!=null)for(var s in n)n.hasOwnProperty(s)&&(r[s]=n[s])}return r}:qu=Object.assign;var di=qu,dg=["","webkit","Moz","MS","ms","o"],r8=typeof document>"u"?{style:{}}:document.createElement("div"),n8="function",ea=Math.round,ci=Math.abs,hf=Date.now;function cd(e,t){for(var r,a,n=t[0].toUpperCase()+t.slice(1),s=0;s<dg.length;){if(r=dg[s],a=r?r+n:t,a in e)return a;s++}}var Jr;typeof window>"u"?Jr={}:Jr=window;var fw=cd(r8.style,"touchAction"),pw=fw!==void 0;function i8(){if(!pw)return!1;var e={},t=Jr.CSS&&Jr.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){return e[r]=t?Jr.CSS.supports("touch-action",r):!0}),e}var vw="compute",mw="auto",Xu="manipulation",ri="none",_s="pan-x",bs="pan-y",Bo=i8(),a8=/mobile|tablet|ip(ad|hone|od)|android/i,gw="ontouchstart"in Jr,s8=cd(Jr,"PointerEvent")!==void 0,o8=gw&&a8.test(navigator.userAgent),qs="touch",l8="pen",ff="mouse",d8="kinect",c8=25,Ct=1,Ei=2,et=4,jt=8,bl=1,Xs=2,Qs=4,Zs=8,va=16,Vr=Xs|Qs,ni=Zs|va,yw=Vr|ni,_w=["x","y"],wl=["clientX","clientY"];function en(e,t,r){var a;if(e)if(e.forEach)e.forEach(t,r);else if(e.length!==void 0)for(a=0;a<e.length;)t.call(r,e[a],a,e),a++;else for(a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function ud(e,t){return typeof e===n8?e.apply(t&&t[0]||void 0,t):e}function Zn(e,t){return e.indexOf(t)>-1}function u8(e){if(Zn(e,ri))return ri;var t=Zn(e,_s),r=Zn(e,bs);return t&&r?ri:t||r?t?_s:bs:Zn(e,Xu)?Xu:mw}var bw=function(){function e(r,a){this.manager=r,this.set(a)}var t=e.prototype;return t.set=function(a){a===vw&&(a=this.compute()),pw&&this.manager.element.style&&Bo[a]&&(this.manager.element.style[fw]=a),this.actions=a.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var a=[];return en(this.manager.recognizers,function(n){ud(n.options.enable,[n])&&(a=a.concat(n.getTouchAction()))}),u8(a.join(" "))},t.preventDefaults=function(a){var n=a.srcEvent,s=a.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,l=Zn(o,ri)&&!Bo[ri],d=Zn(o,bs)&&!Bo[bs],c=Zn(o,_s)&&!Bo[_s];if(l){var f=a.pointers.length===1,v=a.distance<2,m=a.deltaTime<250;if(f&&v&&m)return}if(!(c&&d)&&(l||d&&s&Vr||c&&s&ni))return this.preventSrc(n)},t.preventSrc=function(a){this.manager.session.prevented=!0,a.preventDefault()},e}();function pf(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ww(e){var t=e.length;if(t===1)return{x:ea(e[0].clientX),y:ea(e[0].clientY)};for(var r=0,a=0,n=0;n<t;)r+=e[n].clientX,a+=e[n].clientY,n++;return{x:ea(r/t),y:ea(a/t)}}function cg(e){for(var t=[],r=0;r<e.pointers.length;)t[r]={clientX:ea(e.pointers[r].clientX),clientY:ea(e.pointers[r].clientY)},r++;return{timeStamp:hf(),pointers:t,center:ww(t),deltaX:e.deltaX,deltaY:e.deltaY}}function El(e,t,r){r||(r=_w);var a=t[r[0]]-e[r[0]],n=t[r[1]]-e[r[1]];return Math.sqrt(a*a+n*n)}function Qu(e,t,r){r||(r=_w);var a=t[r[0]]-e[r[0]],n=t[r[1]]-e[r[1]];return Math.atan2(n,a)*180/Math.PI}function Ew(e,t){return e===t?bl:ci(e)>=ci(t)?e<0?Xs:Qs:t<0?Zs:va}function h8(e,t){var r=t.center,a=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};(t.eventType===Ct||s.eventType===et)&&(n=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},a=e.offsetDelta={x:r.x,y:r.y}),t.deltaX=n.x+(r.x-a.x),t.deltaY=n.y+(r.y-a.y)}function Sw(e,t,r){return{x:t/e||0,y:r/e||0}}function f8(e,t){return El(t[0],t[1],wl)/El(e[0],e[1],wl)}function p8(e,t){return Qu(t[1],t[0],wl)+Qu(e[1],e[0],wl)}function v8(e,t){var r=e.lastInterval||t,a=t.timeStamp-r.timeStamp,n,s,o,l;if(t.eventType!==jt&&(a>c8||r.velocity===void 0)){var d=t.deltaX-r.deltaX,c=t.deltaY-r.deltaY,f=Sw(a,d,c);s=f.x,o=f.y,n=ci(f.x)>ci(f.y)?f.x:f.y,l=Ew(d,c),e.lastInterval=t}else n=r.velocity,s=r.velocityX,o=r.velocityY,l=r.direction;t.velocity=n,t.velocityX=s,t.velocityY=o,t.direction=l}function m8(e,t){var r=e.session,a=t.pointers,n=a.length;r.firstInput||(r.firstInput=cg(t)),n>1&&!r.firstMultiple?r.firstMultiple=cg(t):n===1&&(r.firstMultiple=!1);var s=r.firstInput,o=r.firstMultiple,l=o?o.center:s.center,d=t.center=ww(a);t.timeStamp=hf(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=Qu(l,d),t.distance=El(l,d),h8(r,t),t.offsetDirection=Ew(t.deltaX,t.deltaY);var c=Sw(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=ci(c.x)>ci(c.y)?c.x:c.y,t.scale=o?f8(o.pointers,a):1,t.rotation=o?p8(o.pointers,a):0,t.maxPointers=r.prevInput?t.pointers.length>r.prevInput.maxPointers?t.pointers.length:r.prevInput.maxPointers:t.pointers.length,v8(r,t);var f=e.element,v=t.srcEvent,m;v.composedPath?m=v.composedPath()[0]:v.path?m=v.path[0]:m=v.target,pf(m,f)&&(f=m),t.target=f}function g8(e,t,r){var a=r.pointers.length,n=r.changedPointers.length,s=t&Ct&&a-n===0,o=t&(et|jt)&&a-n===0;r.isFirst=!!s,r.isFinal=!!o,s&&(e.session={}),r.eventType=t,m8(e,r),e.emit("hammer.input",r),e.recognize(r),e.session.prevInput=r}function ws(e){return e.trim().split(/\s+/g)}function ls(e,t,r){en(ws(t),function(a){e.addEventListener(a,r,!1)})}function ds(e,t,r){en(ws(t),function(a){e.removeEventListener(a,r,!1)})}function ug(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var Va=function(){function e(r,a){var n=this;this.manager=r,this.callback=a,this.element=r.element,this.target=r.options.inputTarget,this.domHandler=function(s){ud(r.options.enable,[r])&&n.handler(s)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&ls(this.element,this.evEl,this.domHandler),this.evTarget&&ls(this.target,this.evTarget,this.domHandler),this.evWin&&ls(ug(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&ds(this.element,this.evEl,this.domHandler),this.evTarget&&ds(this.target,this.evTarget,this.domHandler),this.evWin&&ds(ug(this.element),this.evWin,this.domHandler)},e}();function ui(e,t,r){if(e.indexOf&&!r)return e.indexOf(t);for(var a=0;a<e.length;){if(r&&e[a][r]==t||!r&&e[a]===t)return a;a++}return-1}var y8={pointerdown:Ct,pointermove:Ei,pointerup:et,pointercancel:jt,pointerout:jt},_8={2:qs,3:l8,4:ff,5:d8},kw="pointerdown",xw="pointermove pointerup pointercancel";Jr.MSPointerEvent&&!Jr.PointerEvent&&(kw="MSPointerDown",xw="MSPointerMove MSPointerUp MSPointerCancel");var Tw=function(e){pr(t,e);function t(){var a,n=t.prototype;return n.evEl=kw,n.evWin=xw,a=e.apply(this,arguments)||this,a.store=a.manager.session.pointerEvents=[],a}var r=t.prototype;return r.handler=function(n){var s=this.store,o=!1,l=n.type.toLowerCase().replace("ms",""),d=y8[l],c=_8[n.pointerType]||n.pointerType,f=c===qs,v=ui(s,n.pointerId,"pointerId");d&Ct&&(n.button===0||f)?v<0&&(s.push(n),v=s.length-1):d&(et|jt)&&(o=!0),!(v<0)&&(s[v]=n,this.callback(this.manager,d,{pointers:s,changedPointers:[n],pointerType:c,srcEvent:n}),o&&s.splice(v,1))},t}(Va);function Es(e){return Array.prototype.slice.call(e,0)}function vf(e,t,r){for(var a=[],n=[],s=0;s<e.length;){var o=t?e[s][t]:e[s];ui(n,o)<0&&a.push(e[s]),n[s]=o,s++}return r&&(t?a=a.sort(function(l,d){return l[t]>d[t]}):a=a.sort()),a}var b8={touchstart:Ct,touchmove:Ei,touchend:et,touchcancel:jt},w8="touchstart touchmove touchend touchcancel",mf=function(e){pr(t,e);function t(){var a;return t.prototype.evTarget=w8,a=e.apply(this,arguments)||this,a.targetIds={},a}var r=t.prototype;return r.handler=function(n){var s=b8[n.type],o=E8.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:qs,srcEvent:n})},t}(Va);function E8(e,t){var r=Es(e.touches),a=this.targetIds;if(t&(Ct|Ei)&&r.length===1)return a[r[0].identifier]=!0,[r,r];var n,s,o=Es(e.changedTouches),l=[],d=this.target;if(s=r.filter(function(c){return pf(c.target,d)}),t===Ct)for(n=0;n<s.length;)a[s[n].identifier]=!0,n++;for(n=0;n<o.length;)a[o[n].identifier]&&l.push(o[n]),t&(et|jt)&&delete a[o[n].identifier],n++;if(l.length)return[vf(s.concat(l),"identifier",!0),l]}var S8={mousedown:Ct,mousemove:Ei,mouseup:et},k8="mousedown",x8="mousemove mouseup",gf=function(e){pr(t,e);function t(){var a,n=t.prototype;return n.evEl=k8,n.evWin=x8,a=e.apply(this,arguments)||this,a.pressed=!1,a}var r=t.prototype;return r.handler=function(n){var s=S8[n.type];s&Ct&&n.button===0&&(this.pressed=!0),s&Ei&&n.which!==1&&(s=et),this.pressed&&(s&et&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:ff,srcEvent:n}))},t}(Va),T8=2500,hg=25;function fg(e){var t=e.changedPointers,r=t[0];if(r.identifier===this.primaryTouch){var a={x:r.clientX,y:r.clientY},n=this.lastTouches;this.lastTouches.push(a);var s=function(){var l=n.indexOf(a);l>-1&&n.splice(l,1)};setTimeout(s,T8)}}function $8(e,t){e&Ct?(this.primaryTouch=t.changedPointers[0].identifier,fg.call(this,t)):e&(et|jt)&&fg.call(this,t)}function D8(e){for(var t=e.srcEvent.clientX,r=e.srcEvent.clientY,a=0;a<this.lastTouches.length;a++){var n=this.lastTouches[a],s=Math.abs(t-n.x),o=Math.abs(r-n.y);if(s<=hg&&o<=hg)return!0}return!1}var $w=function(){var e=function(t){pr(r,t);function r(n,s){var o;return o=t.call(this,n,s)||this,o.handler=function(l,d,c){var f=c.pointerType===qs,v=c.pointerType===ff;if(!(v&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(f)$8.call(jo(jo(o)),d,c);else if(v&&D8.call(jo(jo(o)),c))return;o.callback(l,d,c)}},o.touch=new mf(o.manager,o.handler),o.mouse=new gf(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}var a=r.prototype;return a.destroy=function(){this.touch.destroy(),this.mouse.destroy()},r}(Va);return e}();function N8(e){var t,r=e.options.inputClass;return r?t=r:s8?t=Tw:o8?t=mf:gw?t=$w:t=gf,new t(e,g8)}function ta(e,t,r){return Array.isArray(e)?(en(e,r[t],r),!0):!1}var ol=1,dr=2,ma=4,kn=8,tn=kn,Ss=16,Pr=32,C8=1;function O8(){return C8++}function Ho(e,t){var r=t.manager;return r?r.get(e):e}function pg(e){return e&Ss?"cancel":e&kn?"end":e&ma?"move":e&dr?"start":""}var Js=function(){function e(r){r===void 0&&(r={}),this.options=xr({enable:!0},r),this.id=O8(),this.manager=null,this.state=ol,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(a){return di(this.options,a),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(a){if(ta(a,"recognizeWith",this))return this;var n=this.simultaneous;return a=Ho(a,this),n[a.id]||(n[a.id]=a,a.recognizeWith(this)),this},t.dropRecognizeWith=function(a){return ta(a,"dropRecognizeWith",this)?this:(a=Ho(a,this),delete this.simultaneous[a.id],this)},t.requireFailure=function(a){if(ta(a,"requireFailure",this))return this;var n=this.requireFail;return a=Ho(a,this),ui(n,a)===-1&&(n.push(a),a.requireFailure(this)),this},t.dropRequireFailure=function(a){if(ta(a,"dropRequireFailure",this))return this;a=Ho(a,this);var n=ui(this.requireFail,a);return n>-1&&this.requireFail.splice(n,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(a){return!!this.simultaneous[a.id]},t.emit=function(a){var n=this,s=this.state;function o(l){n.manager.emit(l,a)}s<kn&&o(n.options.event+pg(s)),o(n.options.event),a.additionalEvent&&o(a.additionalEvent),s>=kn&&o(n.options.event+pg(s))},t.tryEmit=function(a){if(this.canEmit())return this.emit(a);this.state=Pr},t.canEmit=function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(Pr|ol)))return!1;a++}return!0},t.recognize=function(a){var n=di({},a);if(!ud(this.options.enable,[this,n])){this.reset(),this.state=Pr;return}this.state&(tn|Ss|Pr)&&(this.state=ol),this.state=this.process(n),this.state&(dr|ma|kn|Ss)&&this.tryEmit(n)},t.process=function(a){},t.getTouchAction=function(){},t.reset=function(){},e}(),Zu=function(e){pr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,xr({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},a))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var r=t.prototype;return r.getTouchAction=function(){return[Xu]},r.process=function(n){var s=this,o=this.options,l=n.pointers.length===o.pointers,d=n.distance<o.threshold,c=n.deltaTime<o.time;if(this.reset(),n.eventType&Ct&&this.count===0)return this.failTimeout();if(d&&c&&l){if(n.eventType!==et)return this.failTimeout();var f=this.pTime?n.timeStamp-this.pTime<o.interval:!0,v=!this.pCenter||El(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!v||!f?this.count=1:this.count+=1,this._input=n;var m=this.count%o.taps;if(m===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=tn,s.tryEmit()},o.interval),dr):tn}return Pr},r.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=Pr},this.options.interval),Pr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(){this.state===tn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(Js),ga=function(e){pr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,xr({pointers:1},a))||this}var r=t.prototype;return r.attrTest=function(n){var s=this.options.pointers;return s===0||n.pointers.length===s},r.process=function(n){var s=this.state,o=n.eventType,l=s&(dr|ma),d=this.attrTest(n);return l&&(o&jt||!d)?s|Ss:l||d?o&et?s|kn:s&dr?s|ma:dr:Pr},t}(Js);function Dw(e){return e===va?"down":e===Zs?"up":e===Xs?"left":e===Qs?"right":""}var yf=function(e){pr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,xr({event:"pan",threshold:10,pointers:1,direction:yw},a))||this,n.pX=null,n.pY=null,n}var r=t.prototype;return r.getTouchAction=function(){var n=this.options.direction,s=[];return n&Vr&&s.push(bs),n&ni&&s.push(_s),s},r.directionTest=function(n){var s=this.options,o=!0,l=n.distance,d=n.direction,c=n.deltaX,f=n.deltaY;return d&s.direction||(s.direction&Vr?(d=c===0?bl:c<0?Xs:Qs,o=c!==this.pX,l=Math.abs(n.deltaX)):(d=f===0?bl:f<0?Zs:va,o=f!==this.pY,l=Math.abs(n.deltaY))),n.direction=d,o&&l>s.threshold&&d&s.direction},r.attrTest=function(n){return ga.prototype.attrTest.call(this,n)&&(this.state&dr||!(this.state&dr)&&this.directionTest(n))},r.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=Dw(n.direction);s&&(n.additionalEvent=this.options.event+s),e.prototype.emit.call(this,n)},t}(ga),Nw=function(e){pr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,xr({event:"swipe",threshold:10,velocity:.3,direction:Vr|ni,pointers:1},a))||this}var r=t.prototype;return r.getTouchAction=function(){return yf.prototype.getTouchAction.call(this)},r.attrTest=function(n){var s=this.options.direction,o;return s&(Vr|ni)?o=n.overallVelocity:s&Vr?o=n.overallVelocityX:s&ni&&(o=n.overallVelocityY),e.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&ci(o)>this.options.velocity&&n.eventType&et},r.emit=function(n){var s=Dw(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},t}(ga),Cw=function(e){pr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,xr({event:"pinch",threshold:0,pointers:2},a))||this}var r=t.prototype;return r.getTouchAction=function(){return[ri]},r.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&dr)},r.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}e.prototype.emit.call(this,n)},t}(ga),Ow=function(e){pr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,xr({event:"rotate",threshold:0,pointers:2},a))||this}var r=t.prototype;return r.getTouchAction=function(){return[ri]},r.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&dr)},t}(ga),Aw=function(e){pr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,xr({event:"press",pointers:1,time:251,threshold:9},a))||this,n._timer=null,n._input=null,n}var r=t.prototype;return r.getTouchAction=function(){return[mw]},r.process=function(n){var s=this,o=this.options,l=n.pointers.length===o.pointers,d=n.distance<o.threshold,c=n.deltaTime>o.time;if(this._input=n,!d||!l||n.eventType&(et|jt)&&!c)this.reset();else if(n.eventType&Ct)this.reset(),this._timer=setTimeout(function(){s.state=tn,s.tryEmit()},o.time);else if(n.eventType&et)return tn;return Pr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(n){this.state===tn&&(n&&n.eventType&et?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=hf(),this.manager.emit(this.options.event,this._input)))},t}(Js),Iw={domEvents:!1,touchAction:vw,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},vg=[[Ow,{enable:!1}],[Cw,{enable:!1},["rotate"]],[Nw,{direction:Vr}],[yf,{direction:Vr},["swipe"]],[Zu],[Zu,{event:"doubletap",taps:2},["tap"]],[Aw]],A8=1,mg=2;function gg(e,t){var r=e.element;if(r.style){var a;en(e.options.cssProps,function(n,s){a=cd(r.style,s),t?(e.oldCssProps[a]=r.style[a],r.style[a]=n):r.style[a]=e.oldCssProps[a]||""}),t||(e.oldCssProps={})}}function I8(e,t){var r=document.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=t,t.target.dispatchEvent(r)}var yg=function(){function e(r,a){var n=this;this.options=di({},Iw,a||{}),this.options.inputTarget=this.options.inputTarget||r,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=r,this.input=N8(this),this.touchAction=new bw(this,this.options.touchAction),gg(this,!0),en(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var t=e.prototype;return t.set=function(a){return di(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},t.stop=function(a){this.session.stopped=a?mg:A8},t.recognize=function(a){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(a);var s,o=this.recognizers,l=n.curRecognizer;(!l||l&&l.state&tn)&&(n.curRecognizer=null,l=null);for(var d=0;d<o.length;)s=o[d],n.stopped!==mg&&(!l||s===l||s.canRecognizeWith(l))?s.recognize(a):s.reset(),!l&&s.state&(dr|ma|kn)&&(n.curRecognizer=s,l=s),d++}},t.get=function(a){if(a instanceof Js)return a;for(var n=this.recognizers,s=0;s<n.length;s++)if(n[s].options.event===a)return n[s];return null},t.add=function(a){if(ta(a,"add",this))return this;var n=this.get(a.options.event);return n&&this.remove(n),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},t.remove=function(a){if(ta(a,"remove",this))return this;var n=this.get(a);if(a){var s=this.recognizers,o=ui(s,n);o!==-1&&(s.splice(o,1),this.touchAction.update())}return this},t.on=function(a,n){if(a===void 0||n===void 0)return this;var s=this.handlers;return en(ws(a),function(o){s[o]=s[o]||[],s[o].push(n)}),this},t.off=function(a,n){if(a===void 0)return this;var s=this.handlers;return en(ws(a),function(o){n?s[o]&&s[o].splice(ui(s[o],n),1):delete s[o]}),this},t.emit=function(a,n){this.options.domEvents&&I8(a,n);var s=this.handlers[a]&&this.handlers[a].slice();if(!(!s||!s.length)){n.type=a,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var o=0;o<s.length;)s[o](n),o++}},t.destroy=function(){this.element&&gg(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),P8={touchstart:Ct,touchmove:Ei,touchend:et,touchcancel:jt},M8="touchstart",R8="touchstart touchmove touchend touchcancel",L8=function(e){pr(t,e);function t(){var a,n=t.prototype;return n.evTarget=M8,n.evWin=R8,a=e.apply(this,arguments)||this,a.started=!1,a}var r=t.prototype;return r.handler=function(n){var s=P8[n.type];if(s===Ct&&(this.started=!0),!!this.started){var o=V8.call(this,n,s);s&(et|jt)&&o[0].length-o[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:qs,srcEvent:n})}},t}(Va);function V8(e,t){var r=Es(e.touches),a=Es(e.changedTouches);return t&(et|jt)&&(r=vf(r.concat(a),"identifier",!0)),[r,a]}function Pw(e,t,r){var a="DEPRECATED METHOD: "+t+`
|
51
|
-
`+
|
52
|
-
`;return function(){var n=new Error("get-stack-trace"),s=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,a,s),e.apply(this,arguments)}}var
|
53
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function j8(e,t){var r;if(e){if(typeof e=="string")return bg(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return bg(e,t)}}function bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var bf=fn("DELETE");function Vw(e){for(var t,r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return wf.apply(void 0,Me(t=[{},e]).call(t,a))}function wf(){var e=Sl.apply(void 0,arguments);return Yw(e),e}function Sl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length<2)return t[0];if(t.length>2){var a;return Sl.apply(void 0,Me(a=[wf(t[0],t[1])]).call(a,Fe(bt(t).call(t,2))))}var n=t[0],s=t[1];if(n instanceof Date&&s instanceof Date)return n.setTime(s.getTime()),n;var o=_f(F0(s)),l;try{for(o.s();!(l=o.n()).done;){var d=l.value;Object.prototype.propertyIsEnumerable.call(s,d)&&(s[d]===bf?delete n[d]:n[d]!==null&&s[d]!==null&&ne(n[d])==="object"&&ne(s[d])==="object"&&!ae(n[d])&&!ae(s[d])?n[d]=Sl(n[d],s[d]):n[d]=Fw(s[d]))}}catch(c){o.e(c)}finally{o.f()}return n}function Fw(e){return ae(e)?Se(e).call(e,function(t){return Fw(t)}):ne(e)==="object"&&e!==null?e instanceof Date?new Date(e.getTime()):Sl({},e):e}function Yw(e){for(var t=0,r=st(e);t<r.length;t++){var a=r[t];e[a]===bf?delete e[a]:ne(e[a])==="object"&&e[a]!==null&&Yw(e[a])}}function B8(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return H8(t.length?t:[qt()])}function H8(e){var t=W8(e),r=yt(t,3),a=r[0],n=r[1],s=r[2],o=1,l=function(){var c=2091639*a+o*23283064365386963e-26;return a=n,n=s,s=c-(o=c|0)};return l.uint32=function(){return l()*4294967296},l.fract53=function(){return l()+(l()*2097152|0)*11102230246251565e-32},l.algorithm="Alea",l.seed=e,l.version="0.9",l}function W8(){for(var e=G8(),t=e(" "),r=e(" "),a=e(" "),n=0;n<arguments.length;n++)t-=e(n<0||arguments.length<=n?void 0:arguments[n]),t<0&&(t+=1),r-=e(n<0||arguments.length<=n?void 0:arguments[n]),r<0&&(r+=1),a-=e(n<0||arguments.length<=n?void 0:arguments[n]),a<0&&(a+=1);return[t,r,a]}function G8(){var e=4022871197;return function(t){for(var r=t.toString(),a=0;a<r.length;a++){e+=r.charCodeAt(a);var n=.02519603282416938*e;e=n>>>0,n-=e,n*=e,e=n>>>0,n-=e,e+=n*4294967296}return(e>>>0)*23283064365386963e-26}}function z8(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var Ef=typeof window<"u"?window.Hammer||Lw:function(){return z8()};function Mr(e){var t=this,r;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){t._dom.overlay.parentNode.removeChild(t._dom.overlay)});var a=Ef(this._dom.overlay);a.on("tap",P(r=this._onTapOverlay).call(r,this)),this._cleanupQueue.push(function(){a.destroy()});var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];G(n).call(n,function(s){a.on(s,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(s){U8(s.target,e)||t.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",t._onClick)})),this._escListener=function(s){("key"in s?s.key==="Escape":s.keyCode===27)&&t.deactivate()}}uf(Mr.prototype);Mr.current=null;Mr.prototype.destroy=function(){var e,t;this.deactivate();var r=_f(C3(e=xt(t=this._cleanupQueue).call(t,0)).call(e)),a;try{for(r.s();!(a=r.n()).done;){var n=a.value;n()}}catch(s){r.e(s)}finally{r.f()}};Mr.prototype.activate=function(){Mr.current&&Mr.current.deactivate(),Mr.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};Mr.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};Mr.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function U8(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}var K8=/^\/?Date\((-?\d+)/i,q8=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,X8=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Q8=/^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,Z8=/^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 cs(e){return e instanceof Number||typeof e=="number"}function jw(e){if(e)for(;e.hasChildNodes()===!0;){var t=e.firstChild;t&&(jw(t),e.removeChild(t))}}function Qt(e){return e instanceof String||typeof e=="string"}function Ju(e){return ne(e)==="object"&&e!==null}function J8(e){if(e instanceof Date)return!0;if(Qt(e)){var t=K8.exec(e);if(t)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function hi(e,t,r,a){var n=!1;a===!0&&(n=t[r]===null&&e[r]!==void 0),n?delete e[r]:e[r]=t[r]}function Bw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var a in e)if(t[a]!==void 0)if(t[a]===null||ne(t[a])!=="object")hi(e,t,a,r);else{var n=e[a],s=t[a];Ju(n)&&Ju(s)&&Bw(n,s,r)}}var eH=an;function tH(e,t){if(!ae(e))throw new Error("Array with property names expected as first argument");for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];for(var s=0,o=a;s<o.length;s++)for(var l=o[s],d=0;d<e.length;d++){var c=e[d];l&&Object.prototype.hasOwnProperty.call(l,c)&&(t[c]=l[c])}return t}function rH(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ae(r))throw new TypeError("Arrays are not supported by deepExtend");for(var n=0;n<e.length;n++){var s=e[n];if(Object.prototype.hasOwnProperty.call(r,s))if(r[s]&&r[s].constructor===Object)t[s]===void 0&&(t[s]={}),t[s].constructor===Object?ks(t[s],r[s],!1,a):hi(t,r,s,a);else{if(ae(r[s]))throw new TypeError("Arrays are not supported by deepExtend");hi(t,r,s,a)}}return t}function nH(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ae(r))throw new TypeError("Arrays are not supported by deepExtend");for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&!Nn(e).call(e,n))if(r[n]&&r[n].constructor===Object)t[n]===void 0&&(t[n]={}),t[n].constructor===Object?ks(t[n],r[n]):hi(t,r,n,a);else if(ae(r[n])){t[n]=[];for(var s=0;s<r[n].length;s++)t[n].push(r[n][s])}else hi(t,r,n,a);return t}function ks(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)||r===!0)if(ne(t[n])==="object"&&t[n]!==null&&Jm(t[n])===Object.prototype)e[n]===void 0?e[n]=ks({},t[n],r):ne(e[n])==="object"&&e[n]!==null&&Jm(e[n])===Object.prototype?ks(e[n],t[n],r):hi(e,t,n,a);else if(ae(t[n])){var s;e[n]=bt(s=t[n]).call(s)}else hi(e,t,n,a);return e}function iH(e,t){if(e.length!==t.length)return!1;for(var r=0,a=e.length;r<a;r++)if(e[r]!=t[r])return!1;return!0}function is(e){var t=ne(e);return t==="object"?e===null?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":ae(e)?"Array":e instanceof Date?"Date":"Object":t==="number"?"Number":t==="boolean"?"Boolean":t==="string"?"String":t===void 0?"undefined":t}function xs(e,t){var r;return Me(r=[]).call(r,Fe(e),[t])}function Hw(e){return bt(e).call(e)}function aH(e){return e.getBoundingClientRect().left}function sH(e){return e.getBoundingClientRect().right}function oH(e){return e.getBoundingClientRect().top}function lH(e,t){var r=e.className.split(" "),a=t.split(" ");r=Me(r).call(r,te(a).call(a,function(n){return!Nn(r).call(r,n)})),e.className=r.join(" ")}function dH(e,t){var r=e.className.split(" "),a=t.split(" ");r=te(r).call(r,function(n){return!Nn(a).call(a,n)}),e.className=r.join(" ")}function cH(e,t){if(ae(e))for(var r=e.length,a=0;a<r;a++)t(e[a],a,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)}var uH=df;function hH(e,t,r){return e[t]!==r?(e[t]=r,!0):!1}function fH(e){var t=!1;return function(){t||(t=!0,requestAnimationFrame(function(){t=!1,e()}))}}function pH(e,t,r,a){if(e.addEventListener){var n;a===void 0&&(a=!1),t==="mousewheel"&&Nn(n=navigator.userAgent).call(n,"Firefox")&&(t="DOMMouseScroll"),e.addEventListener(t,r,a)}else e.attachEvent("on"+t,r)}function vH(e,t,r,a){if(e.removeEventListener){var n;a===void 0&&(a=!1),t==="mousewheel"&&Nn(n=navigator.userAgent).call(n,"Firefox")&&(t="DOMMouseScroll"),e.removeEventListener(t,r,a)}else e.detachEvent("on"+t,r)}function mH(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}function gH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event,t=null;return e&&(e.target?t=e.target:e.srcElement&&(t=e.srcElement)),!(t instanceof Element)||t.nodeType!=null&&t.nodeType==3&&(t=t.parentNode,!(t instanceof Element))?null:t}function yH(e,t){for(var r=e;r;){if(r===t)return!0;if(r.parentNode)r=r.parentNode;else return!1}return!1}var _H={asBoolean:function(t,r){return typeof t=="function"&&(t=t()),t!=null?t!=!1:r||null},asNumber:function(t,r){return typeof t=="function"&&(t=t()),t!=null?Number(t)||r||null:r||null},asString:function(t,r){return typeof t=="function"&&(t=t()),t!=null?String(t):r||null},asSize:function(t,r){return typeof t=="function"&&(t=t()),Qt(t)?t:cs(t)?t+"px":r||null},asElement:function(t,r){return typeof t=="function"&&(t=t()),t||r||null}};function hd(e){var t;switch(e.length){case 3:case 4:return t=X8.exec(e),t?{r:Xt(t[1]+t[1],16),g:Xt(t[2]+t[2],16),b:Xt(t[3]+t[3],16)}:null;case 6:case 7:return t=q8.exec(e),t?{r:Xt(t[1],16),g:Xt(t[2],16),b:Xt(t[3],16)}:null;default:return null}}function bH(e,t){if(Nn(e).call(e,"rgba"))return e;if(Nn(e).call(e,"rgb")){var r=e.substr(Ce(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+r[0]+","+r[1]+","+r[2]+","+t+")"}else{var a=hd(e);return a==null?e:"rgba("+a.r+","+a.g+","+a.b+","+t+")"}}function Sf(e,t,r){var a;return"#"+bt(a=((1<<24)+(e<<16)+(t<<8)+r).toString(16)).call(a,1)}function wH(e,t){if(Qt(e)){var r=e;if(xf(r)){var a,n=Se(a=r.substr(4).substr(0,r.length-5).split(",")).call(a,function(m){return Xt(m)});r=Sf(n[0],n[1],n[2])}if(kf(r)===!0){var s=Gw(r),o={h:s.h,s:s.s*.8,v:Math.min(1,s.v*1.02)},l={h:s.h,s:Math.min(1,s.s*1.25),v:s.v*.8},d=eh(l.h,l.s,l.v),c=eh(o.h,o.s,o.v);return{background:r,border:d,highlight:{background:c,border:d},hover:{background:c,border:d}}}else return{background:r,border:r,highlight:{background:r,border:r},hover:{background:r,border:r}}}else if(t){var f={background:e.background||t.background,border:e.border||t.border,highlight:Qt(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||t.highlight.background,border:e.highlight&&e.highlight.border||t.highlight.border},hover:Qt(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||t.hover.border,background:e.hover&&e.hover.background||t.hover.background}};return f}else{var v={background:e.background||void 0,border:e.border||void 0,highlight:Qt(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:Qt(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}};return v}}function ra(e,t,r){e=e/255,t=t/255,r=r/255;var a=Math.min(e,Math.min(t,r)),n=Math.max(e,Math.max(t,r));if(a===n)return{h:0,s:0,v:a};var s=e===a?t-r:r===a?e-t:r-e,o=e===a?3:r===a?1:5,l=60*(o-s/(n-a))/360,d=(n-a)/n,c=n;return{h:l,s:d,v:c}}function Ww(e){var t=document.createElement("div"),r={};t.style.cssText=e;for(var a=0;a<t.style.length;++a)r[t.style[a]]=t.style.getPropertyValue(t.style[a]);return r}function EH(e,t){for(var r=Ww(t),a=0,n=uB(r);a<n.length;a++){var s=yt(n[a],2),o=s[0],l=s[1];e.style.setProperty(o,l)}}function SH(e,t){for(var r=Ww(t),a=0,n=st(r);a<n.length;a++){var s=n[a];e.style.removeProperty(s)}}function us(e,t,r){var a,n,s,o=Math.floor(e*6),l=e*6-o,d=r*(1-t),c=r*(1-l*t),f=r*(1-(1-l)*t);switch(o%6){case 0:a=r,n=f,s=d;break;case 1:a=c,n=r,s=d;break;case 2:a=d,n=r,s=f;break;case 3:a=d,n=c,s=r;break;case 4:a=f,n=d,s=r;break;case 5:a=r,n=d,s=c;break}return{r:Math.floor(a*255),g:Math.floor(n*255),b:Math.floor(s*255)}}function eh(e,t,r){var a=us(e,t,r);return Sf(a.r,a.g,a.b)}function Gw(e){var t=hd(e);if(!t)throw new TypeError("'".concat(e,"' is not a valid color."));return ra(t.r,t.g,t.b)}function kf(e){var t=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return t}function xf(e){return Q8.test(e)}function zw(e){return Z8.test(e)}function kH(e,t){if(t!==null&&ne(t)==="object"){for(var r=Ks(t),a=0;a<e.length;a++)Object.prototype.hasOwnProperty.call(t,e[a])&&ne(t[e[a]])=="object"&&(r[e[a]]=Tf(t[e[a]]));return r}else return null}function Tf(e){if(e===null||ne(e)!=="object")return null;if(e instanceof Element)return e;var t=Ks(e);for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&ne(e[r])=="object"&&(t[r]=Tf(e[r]));return t}function xH(e,t){for(var r=0;r<e.length;r++){var a=e[r],n=void 0;for(n=r;n>0&&t(a,e[n-1])<0;n--)e[n]=e[n-1];e[n]=a}return e}function TH(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=function(b){return b!=null},s=function(b){return b!==null&&ne(b)==="object"},o=function(b){for(var S in b)if(Object.prototype.hasOwnProperty.call(b,S))return!1;return!0};if(!s(e))throw new Error("Parameter mergeTarget must be an object");if(!s(t))throw new Error("Parameter options must be an object");if(!n(r))throw new Error("Parameter option must have a value");if(!s(a))throw new Error("Parameter globalOptions must be an object");var l=function(b,S,w){s(b[w])||(b[w]={});var k=S[w],T=b[w];for(var D in k)Object.prototype.hasOwnProperty.call(k,D)&&(T[D]=k[D])},d=t[r],c=s(a)&&!o(a),f=c?a[r]:void 0,v=f?f.enabled:void 0;if(d!==void 0){if(typeof d=="boolean"){s(e[r])||(e[r]={}),e[r].enabled=d;return}if(d===null&&!s(e[r]))if(n(f))e[r]=Ks(f);else return;if(s(d)){var m=!0;d.enabled!==void 0?m=d.enabled:v!==void 0&&(m=f.enabled),l(e,t,r),e[r].enabled=m}}}function $H(e,t,r,a){for(var n=1e4,s=0,o=0,l=e.length-1;o<=l&&s<n;){var d=Math.floor((o+l)/2),c=e[d],f=a===void 0?c[r]:c[r][a],v=t(f);if(v==0)return d;v==-1?o=d+1:l=d-1,s++}return-1}function DH(e,t,r,a,n){var s=1e4,o=0,l=0,d=e.length-1,c,f,v,m;for(n=n??function(g,b){return g==b?0:g<b?-1:1};l<=d&&o<s;){if(m=Math.floor(.5*(d+l)),c=e[Math.max(0,m-1)][r],f=e[m][r],v=e[Math.min(e.length-1,m+1)][r],n(f,t)==0)return m;if(n(c,t)<0&&n(f,t)>0)return a=="before"?Math.max(0,m-1):m;if(n(f,t)<0&&n(v,t)>0)return a=="before"?m:Math.min(e.length-1,m+1);n(f,t)<0?l=m+1:d=m-1,o++}return-1}var NH={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:-1+(4-2*t)*t},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 CH(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var r=e.offsetWidth;t.style.overflow="scroll";var a=e.offsetWidth;return r==a&&(a=t.clientWidth),document.body.removeChild(t),r-a}function OH(e,t){var r;ae(t)||(t=[t]);var a=_f(e),n;try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s){r=s[t[0]];for(var o=1;o<t.length;o++)r&&(r=r[t[o]]);if(typeof r<"u")break}}}catch(l){a.e(l)}finally{a.f()}return r}var AH={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},Uw=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;fe(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return pe(e,[{key:"insertTo",value:function(r){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=r,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(r){if(typeof r=="function")this.updateCallback=r;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(r){if(typeof r=="function")this.closeCallback=r;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(r){if(typeof r=="string")return AH[r]}},{key:"setColor",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(r!=="none"){var n,s=this._isColorString(r);if(s!==void 0&&(r=s),Qt(r)===!0){if(xf(r)===!0){var o=r.substr(4).substr(0,r.length-5).split(",");n={r:o[0],g:o[1],b:o[2],a:1}}else if(zw(r)===!0){var l=r.substr(5).substr(0,r.length-6).split(",");n={r:l[0],g:l[1],b:l[2],a:l[3]}}else if(kf(r)===!0){var d=hd(r);n={r:d.r,g:d.g,b:d.b,a:1}}}else if(r instanceof Object&&r.r!==void 0&&r.g!==void 0&&r.b!==void 0){var c=r.a!==void 0?r.a:"1.0";n={r:r.r,g:r.g,b:r.b,a:c}}if(n===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Ft(r));this._setColor(n,a)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;a===!0&&(this.previousColor=an({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",_t(function(){r.closeCallback!==void 0&&(r.closeCallback(),r.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a===!0&&(this.initialColor=an({},r)),this.color=r;var n=ra(r.r,r.g,r.b),s=2*Math.PI,o=this.r*n.s,l=this.centerCoordinates.x+o*Math.sin(s*n.h),d=this.centerCoordinates.y+o*Math.cos(s*n.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=d-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(r)}},{key:"_setOpacity",value:function(r){this.color.a=r/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(r){var a=ra(this.color.r,this.color.g,this.color.b);a.v=r/100;var n=us(a.h,a.s,a.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,a=ra(r.r,r.g,r.b),n=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var s=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,s,o),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-a.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),uw(n).call(n),this.brightnessRange.value=100*a.v,this.opacityRange.value=100*r.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var r,a,n,s;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var l=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=P(r=this._hide).call(r,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=P(a=this._apply).call(a,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=P(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=P(s=this._loadLast).call(s,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var r=this;this.drag={},this.pinch={},this.hammer=new Ef(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(a){a.isFirst&&r._moveSelector(a)}),this.hammer.on("tap",function(a){r._moveSelector(a)}),this.hammer.on("panstart",function(a){r._moveSelector(a)}),this.hammer.on("panmove",function(a){r._moveSelector(a)}),this.hammer.on("panend",function(a){r._moveSelector(a)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,a,n);var s,o,l,d;this.centerCoordinates={x:a*.5,y:n*.5},this.r=.49*a;var c=2*Math.PI/360,f=1/360,v=1/this.r,m;for(l=0;l<360;l++)for(d=0;d<this.r;d++)s=this.centerCoordinates.x+d*Math.sin(c*l),o=this.centerCoordinates.y+d*Math.cos(c*l),m=us(l*f,d*v,1),r.fillStyle="rgb("+m.r+","+m.g+","+m.b+")",r.fillRect(s-.5,o-.5,2,2);r.strokeStyle="rgba(0,0,0,1)",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),r.stroke(),this.hueCircle=r.getImageData(0,0,a,n)}this.generated=!0}},{key:"_moveSelector",value:function(r){var a=this.colorPickerDiv.getBoundingClientRect(),n=r.center.x-a.left,s=r.center.y-a.top,o=.5*this.colorPickerDiv.clientHeight,l=.5*this.colorPickerDiv.clientWidth,d=n-l,c=s-o,f=Math.atan2(d,c),v=.98*Math.min(Math.sqrt(d*d+c*c),l),m=Math.cos(f)*v+o,g=Math.sin(f)*v+l;this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=g-.5*this.colorPickerSelector.clientWidth+"px";var b=f/(2*Math.PI);b=b<0?b+1:b;var S=v/this.r,w=ra(this.color.r,this.color.g,this.color.b);w.h=b,w.s=S;var k=us(w.h,w.s,w.v);k.a=this.color.a,this.color=k,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}();function th(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length<1)throw new TypeError("Invalid arguments.");if(t.length===1)return document.createTextNode(t[0]);var a=document.createElement(t[0]);return a.appendChild(th.apply(void 0,Fe(bt(t).call(t,1)))),a}var IH=function(){function e(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};fe(this,e),this.parent=t,this.changedOptions=[],this.container=r,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},an(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Uw(n),this.wrapper=void 0}return pe(e,[{key:"setOptions",value:function(r){if(r!==void 0){this.popupHistory={},this._removePopup();var a=!0;if(typeof r=="string")this.options.filter=r;else if(ae(r))this.options.filter=r.join();else if(ne(r)==="object"){if(r==null)throw new TypeError("options cannot be null");r.container!==void 0&&(this.options.container=r.container),te(r)!==void 0&&(this.options.filter=te(r)),r.showButton!==void 0&&(this.options.showButton=r.showButton),r.enabled!==void 0&&(a=r.enabled)}else typeof r=="boolean"?(this.options.filter=!0,a=r):typeof r=="function"&&(this.options.filter=r,a=!0);te(this.options)===!1&&(a=!1),this.options.enabled=a}this._clean()}},{key:"setModuleOptions",value:function(r){this.moduleOptions=r,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var r=te(this.options),a=0,n=!1;for(var s in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,s)&&(this.allowCreation=!1,n=!1,typeof r=="function"?(n=r(s,[]),n=n||this._handleObject(this.configureOptions[s],[s],!0)):(r===!0||Ce(r).call(r,s)!==-1)&&(n=!0),n!==!1&&(this.allowCreation=!0,a>0&&this._makeItem([]),this._makeHeader(s),this._handleObject(this.configureOptions[s],[s])),a++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var r=0;r<this.domElements.length;r++)this.wrapper.appendChild(this.domElements[r]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var r=0;r<this.domElements.length;r++)this.wrapper.removeChild(this.domElements[r]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(r){for(var a=this.moduleOptions,n=0;n<r.length;n++)if(a[r[n]]!==void 0)a=a[r[n]];else{a=void 0;break}return a}},{key:"_makeItem",value:function(r){if(this.allowCreation===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-item vis-config-s"+r.length;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return G(s).call(s,function(l){a.appendChild(l)}),this.domElements.push(a),this.domElements.length}return 0}},{key:"_makeHeader",value:function(r){var a=document.createElement("div");a.className="vis-configuration vis-config-header",a.innerText=r,this._makeItem([],a)}},{key:"_makeLabel",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=document.createElement("div");if(s.className="vis-configuration vis-config-label vis-config-s"+a.length,n===!0){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(th("i","b",r))}else s.innerText=r+":";return s}},{key:"_makeDropdown",value:function(r,a,n){var s=document.createElement("select");s.className="vis-configuration vis-config-select";var o=0;a!==void 0&&Ce(r).call(r,a)!==-1&&(o=Ce(r).call(r,a));for(var l=0;l<r.length;l++){var d=document.createElement("option");d.value=r[l],l===o&&(d.selected="selected"),d.innerText=r[l],s.appendChild(d)}var c=this;s.onchange=function(){c._update(this.value,n)};var f=this._makeLabel(n[n.length-1],n);this._makeItem(n,f,s)}},{key:"_makeRange",value:function(r,a,n){var s=r[0],o=r[1],l=r[2],d=r[3],c=document.createElement("input");c.className="vis-configuration vis-config-range";try{c.type="range",c.min=o,c.max=l}catch{}c.step=d;var f="",v=0;if(a!==void 0){var m=1.2;a<0&&a*m<o?(c.min=Math.ceil(a*m),v=c.min,f="range increased"):a/m<o&&(c.min=Math.ceil(a/m),v=c.min,f="range increased"),a*m>l&&l!==1&&(c.max=Math.ceil(a*m),v=c.max,f="range increased"),c.value=a}else c.value=s;var g=document.createElement("input");g.className="vis-configuration vis-config-rangeinput",g.value=c.value;var b=this;c.onchange=function(){g.value=this.value,b._update(Number(this.value),n)},c.oninput=function(){g.value=this.value};var S=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,S,c,g);f!==""&&this.popupHistory[w]!==v&&(this.popupHistory[w]=v,this._setupPopup(f,w))}},{key:"_makeButton",value:function(){var r=this;if(this.options.showButton===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-button",a.innerText="generate options",a.onclick=function(){r._printOptions()},a.onmouseover=function(){a.className="vis-configuration vis-config-button hover"},a.onmouseout=function(){a.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(a)}}},{key:"_setupPopup",value:function(r,a){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var s=document.createElement("div");s.id="vis-configuration-popup",s.className="vis-configuration-popup",s.innerText=r,s.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:s,index:a}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var r=this;if(this.popupDiv.html!==void 0){var a=this.domElements[this.popupDiv.index],n=a.getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=_t(function(){r.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=_t(function(){r._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(r,a,n){var s=document.createElement("input");s.type="checkbox",s.className="vis-configuration vis-config-checkbox",s.checked=r,a!==void 0&&(s.checked=a,a!==r&&(ne(r)==="object"?a!==r.enabled&&this.changedOptions.push({path:n,value:a}):this.changedOptions.push({path:n,value:a})));var o=this;s.onchange=function(){o._update(this.checked,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeTextInput",value:function(r,a,n){var s=document.createElement("input");s.type="text",s.className="vis-configuration vis-config-text",s.value=a,a!==r&&this.changedOptions.push({path:n,value:a});var o=this;s.onchange=function(){o._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeColorField",value:function(r,a,n){var s=this,o=r[1],l=document.createElement("div");a=a===void 0?o:a,a!=="none"?(l.className="vis-configuration vis-config-colorBlock",l.style.backgroundColor=a):l.className="vis-configuration vis-config-colorBlock none",a=a===void 0?o:a,l.onclick=function(){s._showColorPicker(a,l,n)};var d=this._makeLabel(n[n.length-1],n);this._makeItem(n,d,l)}},{key:"_showColorPicker",value:function(r,a,n){var s=this;a.onclick=function(){},this.colorPicker.insertTo(a),this.colorPicker.show(),this.colorPicker.setColor(r),this.colorPicker.setUpdateCallback(function(o){var l="rgba("+o.r+","+o.g+","+o.b+","+o.a+")";a.style.backgroundColor=l,s._update(l,n)}),this.colorPicker.setCloseCallback(function(){a.onclick=function(){s._showColorPicker(r,a,n)}})}},{key:"_handleObject",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=!1,o=te(this.options),l=!1;for(var d in r)if(Object.prototype.hasOwnProperty.call(r,d)){s=!0;var c=r[d],f=xs(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!ae(c)&&typeof c!="string"&&typeof c!="boolean"&&c instanceof Object&&(this.allowCreation=!1,s=this._handleObject(c,f,!0),this.allowCreation=n===!1)),s!==!1){l=!0;var v=this._getValue(f);if(ae(c))this._handleArray(c,v,f);else if(typeof c=="string")this._makeTextInput(c,v,f);else if(typeof c=="boolean")this._makeCheckbox(c,v,f);else if(c instanceof Object){if(!this.hideOption(a,d,this.moduleOptions))if(c.enabled!==void 0){var m=xs(f,"enabled"),g=this._getValue(m);if(g===!0){var b=this._makeLabel(d,f,!0);this._makeItem(f,b),l=this._handleObject(c,f)||l}else this._makeCheckbox(c,g,f)}else{var S=this._makeLabel(d,f,!0);this._makeItem(f,S),l=this._handleObject(c,f)||l}}else console.error("dont know how to handle",c,d,f)}}return l}},{key:"_handleArray",value:function(r,a,n){typeof r[0]=="string"&&r[0]==="color"?(this._makeColorField(r,a,n),r[1]!==a&&this.changedOptions.push({path:n,value:a})):typeof r[0]=="string"?(this._makeDropdown(r,a,n),r[0]!==a&&this.changedOptions.push({path:n,value:a})):typeof r[0]=="number"&&(this._makeRange(r,a,n),r[0]!==a&&this.changedOptions.push({path:n,value:Number(a)}))}},{key:"_update",value:function(r,a){var n=this._constructOptions(r,a);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n;r=r==="true"?!0:r,r=r==="false"?!1:r;for(var o=0;o<a.length;o++)a[o]!=="global"&&(s[a[o]]===void 0&&(s[a[o]]={}),o!==a.length-1?s=s[a[o]]:s[a[o]]=r);return n}},{key:"_printOptions",value:function(){for(var r=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(th("pre","const options = "+Ft(r,null,2)))}},{key:"getOptions",value:function(){for(var r={},a=0;a<this.changedOptions.length;a++)this._constructOptions(this.changedOptions[a].value,this.changedOptions[a].path,r);return r}}]),e}(),PH=function(){function e(t,r){fe(this,e),this.container=t,this.overflowMethod=r||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return pe(e,[{key:"setPosition",value:function(r,a){this.x=Xt(r),this.y=Xt(a)}},{key:"setText",value:function(r){if(r instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(r)}else this.frame.innerText=r}},{key:"show",value:function(r){if(r===void 0&&(r=!0),r===!0){var a=this.frame.clientHeight,n=this.frame.clientWidth,s=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,l=0,d=0;if(this.overflowMethod=="flip"){var c=!1,f=!0;this.y-a<this.padding&&(f=!1),this.x+n>o-this.padding&&(c=!0),c?l=this.x-n:l=this.x,f?d=this.y-a:d=this.y}else d=this.y-a,d+a+this.padding>s&&(d=s-a-this.padding),d<this.padding&&(d=this.padding),l=this.x,l+n+this.padding>o&&(l=o-n-this.padding),l<this.padding&&(l=this.padding);this.frame.style.left=l+"px",this.frame.style.top=d+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),Ja=!1,wg,rh="background: #FFeeee; color: #dd0000",MH=function(){function e(){fe(this,e)}return pe(e,null,[{key:"validate",value:function(r,a,n){Ja=!1,wg=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(r,s,[]),Ja}},{key:"parse",value:function(r,a,n){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.check(s,r,a,n)}},{key:"check",value:function(r,a,n,s){if(n[r]===void 0&&n.__any__===void 0){e.getSuggestion(r,n,s);return}var o=r,l=!0;n[r]===void 0&&n.__any__!==void 0&&(o="__any__",l=e.getType(a[r])==="object");var d=n[o];l&&d.__type__!==void 0&&(d=d.__type__),e.checkFields(r,a,n,o,d,s)}},{key:"checkFields",value:function(r,a,n,s,o,l){var d=function(m){console.error("%c"+m+e.printLocation(l,r),rh)},c=e.getType(a[r]),f=o[c];f!==void 0?e.getType(f)==="array"&&Ce(f).call(f,a[r])===-1?(d('Invalid option detected in "'+r+'". Allowed values are:'+e.print(f)+' not "'+a[r]+'". '),Ja=!0):c==="object"&&s!=="__any__"&&(l=xs(l,r),e.parse(a[r],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+r+'". Expected: '+e.print(st(o))+". Received ["+c+'] "'+a[r]+'"'),Ja=!0)}},{key:"getType",value:function(r){var a=ne(r);return a==="object"?r===null?"null":r instanceof Boolean?"boolean":r instanceof Number?"number":r instanceof String?"string":ae(r)?"array":r instanceof Date?"date":r.nodeType!==void 0?"dom":r._isAMomentObject===!0?"moment":"object":a==="number"?"number":a==="boolean"?"boolean":a==="string"?"string":a===void 0?"undefined":a}},{key:"getSuggestion",value:function(r,a,n){var s=e.findInOptions(r,a,n,!1),o=e.findInOptions(r,wg,[],!0),l=8,d=4,c;s.indexMatch!==void 0?c=" in "+e.printLocation(s.path,r,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+`"?
|
46
|
+
* Licensed under the MIT license */function sr(){return sr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},sr.apply(this,arguments)}function Kt(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function xs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Kd;typeof Object.assign!="function"?Kd=function(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),a=1;a<arguments.length;a++){var n=arguments[a];if(n!=null)for(var s in n)n.hasOwnProperty(s)&&(t[s]=n[s])}return t}:Kd=Object.assign;var Si=Kd,cv=["","webkit","Moz","MS","ms","o"],aR=typeof document>"u"?{style:{}}:document.createElement("div"),sR="function",on=Math.round,$i=Math.abs,Xu=Date.now;function Po(e,r){for(var t,a,n=r[0].toUpperCase()+r.slice(1),s=0;s<cv.length;){if(t=cv[s],a=t?t+n:r,a in e)return a;s++}}var Or;typeof window>"u"?Or={}:Or=window;var py=Po(aR.style,"touchAction"),my=py!==void 0;function oR(){if(!my)return!1;var e={},r=Or.CSS&&Or.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=r?Or.CSS.supports("touch-action",t):!0}),e}var gy="compute",yy="auto",Zd="manipulation",wi="none",va="pan-x",pa="pan-y",Es=oR(),lR=/mobile|tablet|ip(ad|hone|od)|android/i,_y="ontouchstart"in Or,dR=Po(Or,"PointerEvent")!==void 0,uR=_y&&lR.test(navigator.userAgent),Fa="touch",cR="pen",qu="mouse",hR="kinect",fR=25,yt=1,Vi=2,Xe=4,Tt=8,qs=1,Ya=2,ja=4,Ba=8,mn=16,mr=Ya|ja,ki=Ba|mn,by=mr|ki,wy=["x","y"],Ks=["clientX","clientY"];function Pr(e,r,t){var a;if(e)if(e.forEach)e.forEach(r,t);else if(e.length!==void 0)for(a=0;a<e.length;)r.call(t,e[a],a,e),a++;else for(a in e)e.hasOwnProperty(a)&&r.call(t,e[a],a,e)}function Io(e,r){return typeof e===sR?e.apply(r&&r[0]||void 0,r):e}function yi(e,r){return e.indexOf(r)>-1}function vR(e){if(yi(e,wi))return wi;var r=yi(e,va),t=yi(e,pa);return r&&t?wi:r||t?r?va:pa:yi(e,Zd)?Zd:yy}var ky=function(){function e(t,a){this.manager=t,this.set(a)}var r=e.prototype;return r.set=function(a){a===gy&&(a=this.compute()),my&&this.manager.element.style&&Es[a]&&(this.manager.element.style[py]=a),this.actions=a.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var a=[];return Pr(this.manager.recognizers,function(n){Io(n.options.enable,[n])&&(a=a.concat(n.getTouchAction()))}),vR(a.join(" "))},r.preventDefaults=function(a){var n=a.srcEvent,s=a.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,l=yi(o,wi)&&!Es[wi],d=yi(o,pa)&&!Es[pa],u=yi(o,va)&&!Es[va];if(l){var f=a.pointers.length===1,p=a.distance<2,m=a.deltaTime<250;if(f&&p&&m)return}if(!(u&&d)&&(l||d&&s&mr||u&&s&ki))return this.preventSrc(n)},r.preventSrc=function(a){this.manager.session.prevented=!0,a.preventDefault()},e}();function Ku(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}function xy(e){var r=e.length;if(r===1)return{x:on(e[0].clientX),y:on(e[0].clientY)};for(var t=0,a=0,n=0;n<r;)t+=e[n].clientX,a+=e[n].clientY,n++;return{x:on(t/r),y:on(a/r)}}function hv(e){for(var r=[],t=0;t<e.pointers.length;)r[t]={clientX:on(e.pointers[t].clientX),clientY:on(e.pointers[t].clientY)},t++;return{timeStamp:Xu(),pointers:r,center:xy(r),deltaX:e.deltaX,deltaY:e.deltaY}}function Zs(e,r,t){t||(t=wy);var a=r[t[0]]-e[t[0]],n=r[t[1]]-e[t[1]];return Math.sqrt(a*a+n*n)}function Qd(e,r,t){t||(t=wy);var a=r[t[0]]-e[t[0]],n=r[t[1]]-e[t[1]];return Math.atan2(n,a)*180/Math.PI}function Ey(e,r){return e===r?qs:$i(e)>=$i(r)?e<0?Ya:ja:r<0?Ba:mn}function pR(e,r){var t=r.center,a=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};(r.eventType===yt||s.eventType===Xe)&&(n=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},a=e.offsetDelta={x:t.x,y:t.y}),r.deltaX=n.x+(t.x-a.x),r.deltaY=n.y+(t.y-a.y)}function Sy(e,r,t){return{x:r/e||0,y:t/e||0}}function mR(e,r){return Zs(r[0],r[1],Ks)/Zs(e[0],e[1],Ks)}function gR(e,r){return Qd(r[1],r[0],Ks)+Qd(e[1],e[0],Ks)}function yR(e,r){var t=e.lastInterval||r,a=r.timeStamp-t.timeStamp,n,s,o,l;if(r.eventType!==Tt&&(a>fR||t.velocity===void 0)){var d=r.deltaX-t.deltaX,u=r.deltaY-t.deltaY,f=Sy(a,d,u);s=f.x,o=f.y,n=$i(f.x)>$i(f.y)?f.x:f.y,l=Ey(d,u),e.lastInterval=r}else n=t.velocity,s=t.velocityX,o=t.velocityY,l=t.direction;r.velocity=n,r.velocityX=s,r.velocityY=o,r.direction=l}function _R(e,r){var t=e.session,a=r.pointers,n=a.length;t.firstInput||(t.firstInput=hv(r)),n>1&&!t.firstMultiple?t.firstMultiple=hv(r):n===1&&(t.firstMultiple=!1);var s=t.firstInput,o=t.firstMultiple,l=o?o.center:s.center,d=r.center=xy(a);r.timeStamp=Xu(),r.deltaTime=r.timeStamp-s.timeStamp,r.angle=Qd(l,d),r.distance=Zs(l,d),pR(t,r),r.offsetDirection=Ey(r.deltaX,r.deltaY);var u=Sy(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=u.x,r.overallVelocityY=u.y,r.overallVelocity=$i(u.x)>$i(u.y)?u.x:u.y,r.scale=o?mR(o.pointers,a):1,r.rotation=o?gR(o.pointers,a):0,r.maxPointers=t.prevInput?r.pointers.length>t.prevInput.maxPointers?r.pointers.length:t.prevInput.maxPointers:r.pointers.length,yR(t,r);var f=e.element,p=r.srcEvent,m;p.composedPath?m=p.composedPath()[0]:p.path?m=p.path[0]:m=p.target,Ku(m,f)&&(f=m),r.target=f}function bR(e,r,t){var a=t.pointers.length,n=t.changedPointers.length,s=r&yt&&a-n===0,o=r&(Xe|Tt)&&a-n===0;t.isFirst=!!s,t.isFinal=!!o,s&&(e.session={}),t.eventType=r,_R(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function ma(e){return e.trim().split(/\s+/g)}function na(e,r,t){Pr(ma(r),function(a){e.addEventListener(a,t,!1)})}function aa(e,r,t){Pr(ma(r),function(a){e.removeEventListener(a,t,!1)})}function fv(e){var r=e.ownerDocument||e;return r.defaultView||r.parentWindow||window}var An=function(){function e(t,a){var n=this;this.manager=t,this.callback=a,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(s){Io(t.options.enable,[t])&&n.handler(s)},this.init()}var r=e.prototype;return r.handler=function(){},r.init=function(){this.evEl&&na(this.element,this.evEl,this.domHandler),this.evTarget&&na(this.target,this.evTarget,this.domHandler),this.evWin&&na(fv(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&aa(this.element,this.evEl,this.domHandler),this.evTarget&&aa(this.target,this.evTarget,this.domHandler),this.evWin&&aa(fv(this.element),this.evWin,this.domHandler)},e}();function Di(e,r,t){if(e.indexOf&&!t)return e.indexOf(r);for(var a=0;a<e.length;){if(t&&e[a][t]==r||!t&&e[a]===r)return a;a++}return-1}var wR={pointerdown:yt,pointermove:Vi,pointerup:Xe,pointercancel:Tt,pointerout:Tt},kR={2:Fa,3:cR,4:qu,5:hR},$y="pointerdown",Dy="pointermove pointerup pointercancel";Or.MSPointerEvent&&!Or.PointerEvent&&($y="MSPointerDown",Dy="MSPointerMove MSPointerUp MSPointerCancel");var Ty=function(e){Kt(r,e);function r(){var a,n=r.prototype;return n.evEl=$y,n.evWin=Dy,a=e.apply(this,arguments)||this,a.store=a.manager.session.pointerEvents=[],a}var t=r.prototype;return t.handler=function(n){var s=this.store,o=!1,l=n.type.toLowerCase().replace("ms",""),d=wR[l],u=kR[n.pointerType]||n.pointerType,f=u===Fa,p=Di(s,n.pointerId,"pointerId");d&yt&&(n.button===0||f)?p<0&&(s.push(n),p=s.length-1):d&(Xe|Tt)&&(o=!0),!(p<0)&&(s[p]=n,this.callback(this.manager,d,{pointers:s,changedPointers:[n],pointerType:u,srcEvent:n}),o&&s.splice(p,1))},r}(An);function ga(e){return Array.prototype.slice.call(e,0)}function Zu(e,r,t){for(var a=[],n=[],s=0;s<e.length;){var o=r?e[s][r]:e[s];Di(n,o)<0&&a.push(e[s]),n[s]=o,s++}return t&&(r?a=a.sort(function(l,d){return l[r]>d[r]}):a=a.sort()),a}var xR={touchstart:yt,touchmove:Vi,touchend:Xe,touchcancel:Tt},ER="touchstart touchmove touchend touchcancel",Qu=function(e){Kt(r,e);function r(){var a;return r.prototype.evTarget=ER,a=e.apply(this,arguments)||this,a.targetIds={},a}var t=r.prototype;return t.handler=function(n){var s=xR[n.type],o=SR.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:Fa,srcEvent:n})},r}(An);function SR(e,r){var t=ga(e.touches),a=this.targetIds;if(r&(yt|Vi)&&t.length===1)return a[t[0].identifier]=!0,[t,t];var n,s,o=ga(e.changedTouches),l=[],d=this.target;if(s=t.filter(function(u){return Ku(u.target,d)}),r===yt)for(n=0;n<s.length;)a[s[n].identifier]=!0,n++;for(n=0;n<o.length;)a[o[n].identifier]&&l.push(o[n]),r&(Xe|Tt)&&delete a[o[n].identifier],n++;if(l.length)return[Zu(s.concat(l),"identifier",!0),l]}var $R={mousedown:yt,mousemove:Vi,mouseup:Xe},DR="mousedown",TR="mousemove mouseup",Ju=function(e){Kt(r,e);function r(){var a,n=r.prototype;return n.evEl=DR,n.evWin=TR,a=e.apply(this,arguments)||this,a.pressed=!1,a}var t=r.prototype;return t.handler=function(n){var s=$R[n.type];s&yt&&n.button===0&&(this.pressed=!0),s&Vi&&n.which!==1&&(s=Xe),this.pressed&&(s&Xe&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:qu,srcEvent:n}))},r}(An),NR=2500,vv=25;function pv(e){var r=e.changedPointers,t=r[0];if(t.identifier===this.primaryTouch){var a={x:t.clientX,y:t.clientY},n=this.lastTouches;this.lastTouches.push(a);var s=function(){var l=n.indexOf(a);l>-1&&n.splice(l,1)};setTimeout(s,NR)}}function CR(e,r){e&yt?(this.primaryTouch=r.changedPointers[0].identifier,pv.call(this,r)):e&(Xe|Tt)&&pv.call(this,r)}function OR(e){for(var r=e.srcEvent.clientX,t=e.srcEvent.clientY,a=0;a<this.lastTouches.length;a++){var n=this.lastTouches[a],s=Math.abs(r-n.x),o=Math.abs(t-n.y);if(s<=vv&&o<=vv)return!0}return!1}var Ny=function(){var e=function(r){Kt(t,r);function t(n,s){var o;return o=r.call(this,n,s)||this,o.handler=function(l,d,u){var f=u.pointerType===Fa,p=u.pointerType===qu;if(!(p&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(f)CR.call(xs(xs(o)),d,u);else if(p&&OR.call(xs(xs(o)),u))return;o.callback(l,d,u)}},o.touch=new Qu(o.manager,o.handler),o.mouse=new Ju(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}var a=t.prototype;return a.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(An);return e}();function PR(e){var r,t=e.options.inputClass;return t?r=t:dR?r=Ty:uR?r=Qu:_y?r=Ny:r=Ju,new r(e,bR)}function ln(e,r,t){return Array.isArray(e)?(Pr(e,t[r],t),!0):!1}var Ys=1,Xt=2,gn=4,Jr=8,Ir=Jr,ya=16,vr=32,IR=1;function MR(){return IR++}function Ss(e,r){var t=r.manager;return t?t.get(e):e}function mv(e){return e&ya?"cancel":e&Jr?"end":e&gn?"move":e&Xt?"start":""}var Ha=function(){function e(t){t===void 0&&(t={}),this.options=sr({enable:!0},t),this.id=MR(),this.manager=null,this.state=Ys,this.simultaneous={},this.requireFail=[]}var r=e.prototype;return r.set=function(a){return Si(this.options,a),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(a){if(ln(a,"recognizeWith",this))return this;var n=this.simultaneous;return a=Ss(a,this),n[a.id]||(n[a.id]=a,a.recognizeWith(this)),this},r.dropRecognizeWith=function(a){return ln(a,"dropRecognizeWith",this)?this:(a=Ss(a,this),delete this.simultaneous[a.id],this)},r.requireFailure=function(a){if(ln(a,"requireFailure",this))return this;var n=this.requireFail;return a=Ss(a,this),Di(n,a)===-1&&(n.push(a),a.requireFailure(this)),this},r.dropRequireFailure=function(a){if(ln(a,"dropRequireFailure",this))return this;a=Ss(a,this);var n=Di(this.requireFail,a);return n>-1&&this.requireFail.splice(n,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(a){return!!this.simultaneous[a.id]},r.emit=function(a){var n=this,s=this.state;function o(l){n.manager.emit(l,a)}s<Jr&&o(n.options.event+mv(s)),o(n.options.event),a.additionalEvent&&o(a.additionalEvent),s>=Jr&&o(n.options.event+mv(s))},r.tryEmit=function(a){if(this.canEmit())return this.emit(a);this.state=vr},r.canEmit=function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(vr|Ys)))return!1;a++}return!0},r.recognize=function(a){var n=Si({},a);if(!Io(this.options.enable,[this,n])){this.reset(),this.state=vr;return}this.state&(Ir|ya|vr)&&(this.state=Ys),this.state=this.process(n),this.state&(Xt|gn|Jr|ya)&&this.tryEmit(n)},r.process=function(a){},r.getTouchAction=function(){},r.reset=function(){},e}(),Jd=function(e){Kt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,sr({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},a))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var t=r.prototype;return t.getTouchAction=function(){return[Zd]},t.process=function(n){var s=this,o=this.options,l=n.pointers.length===o.pointers,d=n.distance<o.threshold,u=n.deltaTime<o.time;if(this.reset(),n.eventType&yt&&this.count===0)return this.failTimeout();if(d&&u&&l){if(n.eventType!==Xe)return this.failTimeout();var f=this.pTime?n.timeStamp-this.pTime<o.interval:!0,p=!this.pCenter||Zs(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!p||!f?this.count=1:this.count+=1,this._input=n;var m=this.count%o.taps;if(m===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=Ir,s.tryEmit()},o.interval),Xt):Ir}return vr},t.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=vr},this.options.interval),vr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===Ir&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(Ha),yn=function(e){Kt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,sr({pointers:1},a))||this}var t=r.prototype;return t.attrTest=function(n){var s=this.options.pointers;return s===0||n.pointers.length===s},t.process=function(n){var s=this.state,o=n.eventType,l=s&(Xt|gn),d=this.attrTest(n);return l&&(o&Tt||!d)?s|ya:l||d?o&Xe?s|Jr:s&Xt?s|gn:Xt:vr},r}(Ha);function Cy(e){return e===mn?"down":e===Ba?"up":e===Ya?"left":e===ja?"right":""}var ec=function(e){Kt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,sr({event:"pan",threshold:10,pointers:1,direction:by},a))||this,n.pX=null,n.pY=null,n}var t=r.prototype;return t.getTouchAction=function(){var n=this.options.direction,s=[];return n&mr&&s.push(pa),n&ki&&s.push(va),s},t.directionTest=function(n){var s=this.options,o=!0,l=n.distance,d=n.direction,u=n.deltaX,f=n.deltaY;return d&s.direction||(s.direction&mr?(d=u===0?qs:u<0?Ya:ja,o=u!==this.pX,l=Math.abs(n.deltaX)):(d=f===0?qs:f<0?Ba:mn,o=f!==this.pY,l=Math.abs(n.deltaY))),n.direction=d,o&&l>s.threshold&&d&s.direction},t.attrTest=function(n){return yn.prototype.attrTest.call(this,n)&&(this.state&Xt||!(this.state&Xt)&&this.directionTest(n))},t.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=Cy(n.direction);s&&(n.additionalEvent=this.options.event+s),e.prototype.emit.call(this,n)},r}(yn),Oy=function(e){Kt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,sr({event:"swipe",threshold:10,velocity:.3,direction:mr|ki,pointers:1},a))||this}var t=r.prototype;return t.getTouchAction=function(){return ec.prototype.getTouchAction.call(this)},t.attrTest=function(n){var s=this.options.direction,o;return s&(mr|ki)?o=n.overallVelocity:s&mr?o=n.overallVelocityX:s&ki&&(o=n.overallVelocityY),e.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&$i(o)>this.options.velocity&&n.eventType&Xe},t.emit=function(n){var s=Cy(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},r}(yn),Py=function(e){Kt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,sr({event:"pinch",threshold:0,pointers:2},a))||this}var t=r.prototype;return t.getTouchAction=function(){return[wi]},t.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&Xt)},t.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}e.prototype.emit.call(this,n)},r}(yn),Iy=function(e){Kt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,sr({event:"rotate",threshold:0,pointers:2},a))||this}var t=r.prototype;return t.getTouchAction=function(){return[wi]},t.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&Xt)},r}(yn),My=function(e){Kt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,sr({event:"press",pointers:1,time:251,threshold:9},a))||this,n._timer=null,n._input=null,n}var t=r.prototype;return t.getTouchAction=function(){return[yy]},t.process=function(n){var s=this,o=this.options,l=n.pointers.length===o.pointers,d=n.distance<o.threshold,u=n.deltaTime>o.time;if(this._input=n,!d||!l||n.eventType&(Xe|Tt)&&!u)this.reset();else if(n.eventType&yt)this.reset(),this._timer=setTimeout(function(){s.state=Ir,s.tryEmit()},o.time);else if(n.eventType&Xe)return Ir;return vr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(n){this.state===Ir&&(n&&n.eventType&Xe?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=Xu(),this.manager.emit(this.options.event,this._input)))},r}(Ha),Ay={domEvents:!1,touchAction:gy,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},gv=[[Iy,{enable:!1}],[Py,{enable:!1},["rotate"]],[Oy,{direction:mr}],[ec,{direction:mr},["swipe"]],[Jd],[Jd,{event:"doubletap",taps:2},["tap"]],[My]],AR=1,yv=2;function _v(e,r){var t=e.element;if(t.style){var a;Pr(e.options.cssProps,function(n,s){a=Po(t.style,s),r?(e.oldCssProps[a]=t.style[a],t.style[a]=n):t.style[a]=e.oldCssProps[a]||""}),r||(e.oldCssProps={})}}function VR(e,r){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=r,r.target.dispatchEvent(t)}var bv=function(){function e(t,a){var n=this;this.options=Si({},Ay,a||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=PR(this),this.touchAction=new ky(this,this.options.touchAction),_v(this,!0),Pr(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var r=e.prototype;return r.set=function(a){return Si(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},r.stop=function(a){this.session.stopped=a?yv:AR},r.recognize=function(a){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(a);var s,o=this.recognizers,l=n.curRecognizer;(!l||l&&l.state&Ir)&&(n.curRecognizer=null,l=null);for(var d=0;d<o.length;)s=o[d],n.stopped!==yv&&(!l||s===l||s.canRecognizeWith(l))?s.recognize(a):s.reset(),!l&&s.state&(Xt|gn|Jr)&&(n.curRecognizer=s,l=s),d++}},r.get=function(a){if(a instanceof Ha)return a;for(var n=this.recognizers,s=0;s<n.length;s++)if(n[s].options.event===a)return n[s];return null},r.add=function(a){if(ln(a,"add",this))return this;var n=this.get(a.options.event);return n&&this.remove(n),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},r.remove=function(a){if(ln(a,"remove",this))return this;var n=this.get(a);if(a){var s=this.recognizers,o=Di(s,n);o!==-1&&(s.splice(o,1),this.touchAction.update())}return this},r.on=function(a,n){if(a===void 0||n===void 0)return this;var s=this.handlers;return Pr(ma(a),function(o){s[o]=s[o]||[],s[o].push(n)}),this},r.off=function(a,n){if(a===void 0)return this;var s=this.handlers;return Pr(ma(a),function(o){n?s[o]&&s[o].splice(Di(s[o],n),1):delete s[o]}),this},r.emit=function(a,n){this.options.domEvents&&VR(a,n);var s=this.handlers[a]&&this.handlers[a].slice();if(!(!s||!s.length)){n.type=a,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var o=0;o<s.length;)s[o](n),o++}},r.destroy=function(){this.element&&_v(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),RR={touchstart:yt,touchmove:Vi,touchend:Xe,touchcancel:Tt},LR="touchstart",FR="touchstart touchmove touchend touchcancel",YR=function(e){Kt(r,e);function r(){var a,n=r.prototype;return n.evTarget=LR,n.evWin=FR,a=e.apply(this,arguments)||this,a.started=!1,a}var t=r.prototype;return t.handler=function(n){var s=RR[n.type];if(s===yt&&(this.started=!0),!!this.started){var o=jR.call(this,n,s);s&(Xe|Tt)&&o[0].length-o[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:Fa,srcEvent:n})}},r}(An);function jR(e,r){var t=ga(e.touches),a=ga(e.changedTouches);return r&(Xe|Tt)&&(t=Zu(t.concat(a),"identifier",!0)),[t,a]}function Vy(e,r,t){var a="DEPRECATED METHOD: "+r+`
|
47
|
+
`+t+` AT
|
48
|
+
`;return function(){var n=new Error("get-stack-trace"),s=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,a,s),e.apply(this,arguments)}}var Ry=Vy(function(e,r,t){for(var a=Object.keys(r),n=0;n<a.length;)(!t||t&&e[a[n]]===void 0)&&(e[a[n]]=r[a[n]]),n++;return e},"extend","Use `assign`."),BR=Vy(function(e,r){return Ry(e,r,!0)},"merge","Use `assign`.");function HR(e,r,t){var a=r.prototype,n;n=e.prototype=Object.create(a),n.constructor=e,n._super=a,t&&Si(n,t)}function wv(e,r){return function(){return e.apply(r,arguments)}}var Ly=function(){var e=function(t,a){return a===void 0&&(a={}),new bv(t,sr({recognizers:gv.concat()},a))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=by,e.DIRECTION_DOWN=mn,e.DIRECTION_LEFT=Ya,e.DIRECTION_RIGHT=ja,e.DIRECTION_UP=Ba,e.DIRECTION_HORIZONTAL=mr,e.DIRECTION_VERTICAL=ki,e.DIRECTION_NONE=qs,e.DIRECTION_DOWN=mn,e.INPUT_START=yt,e.INPUT_MOVE=Vi,e.INPUT_END=Xe,e.INPUT_CANCEL=Tt,e.STATE_POSSIBLE=Ys,e.STATE_BEGAN=Xt,e.STATE_CHANGED=gn,e.STATE_ENDED=Jr,e.STATE_RECOGNIZED=Ir,e.STATE_CANCELLED=ya,e.STATE_FAILED=vr,e.Manager=bv,e.Input=An,e.TouchAction=ky,e.TouchInput=Qu,e.MouseInput=Ju,e.PointerEventInput=Ty,e.TouchMouseInput=Ny,e.SingleTouchInput=YR,e.Recognizer=Ha,e.AttrRecognizer=yn,e.Tap=Jd,e.Pan=ec,e.Swipe=Oy,e.Pinch=Py,e.Rotate=Iy,e.Press=My,e.on=na,e.off=aa,e.each=Pr,e.merge=BR,e.extend=Ry,e.bindFn=wv,e.assign=Si,e.inherit=HR,e.bindFn=wv,e.prefixed=Po,e.toArray=ga,e.inArray=Di,e.uniqueArray=Zu,e.splitStr=ma,e.boolOrFn=Io,e.hasParent=Ku,e.addEventListeners=na,e.removeEventListeners=aa,e.defaults=Si({},Ay,{preset:gv}),e}();Ly.defaults;var Fy=Ly;function tc(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=WR(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function WR(e,r){var t;if(e){if(typeof e=="string")return kv(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return kv(e,r)}}function kv(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var rc=Br("DELETE");function Yy(e){for(var r,t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return ic.apply(void 0,Ne(r=[{},e]).call(r,a))}function ic(){var e=Qs.apply(void 0,arguments);return By(e),e}function Qs(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length<2)return r[0];if(r.length>2){var a;return Qs.apply(void 0,Ne(a=[ic(r[0],r[1])]).call(a,Pe(ht(r).call(r,2))))}var n=r[0],s=r[1];if(n instanceof Date&&s instanceof Date)return n.setTime(s.getTime()),n;var o=tc(jg(s)),l;try{for(o.s();!(l=o.n()).done;){var d=l.value;Object.prototype.propertyIsEnumerable.call(s,d)&&(s[d]===rc?delete n[d]:n[d]!==null&&s[d]!==null&&ee(n[d])==="object"&&ee(s[d])==="object"&&!re(n[d])&&!re(s[d])?n[d]=Qs(n[d],s[d]):n[d]=jy(s[d]))}}catch(u){o.e(u)}finally{o.f()}return n}function jy(e){return re(e)?ye(e).call(e,function(r){return jy(r)}):ee(e)==="object"&&e!==null?e instanceof Date?new Date(e.getTime()):Qs({},e):e}function By(e){for(var r=0,t=Ze(e);r<t.length;r++){var a=t[r];e[a]===rc?delete e[a]:ee(e[a])==="object"&&e[a]!==null&&By(e[a])}}function GR(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return zR(r.length?r:[Rt()])}function zR(e){var r=UR(e),t=ut(r,3),a=t[0],n=t[1],s=t[2],o=1,l=function(){var u=2091639*a+o*23283064365386963e-26;return a=n,n=s,s=u-(o=u|0)};return l.uint32=function(){return l()*4294967296},l.fract53=function(){return l()+(l()*2097152|0)*11102230246251565e-32},l.algorithm="Alea",l.seed=e,l.version="0.9",l}function UR(){for(var e=XR(),r=e(" "),t=e(" "),a=e(" "),n=0;n<arguments.length;n++)r-=e(n<0||arguments.length<=n?void 0:arguments[n]),r<0&&(r+=1),t-=e(n<0||arguments.length<=n?void 0:arguments[n]),t<0&&(t+=1),a-=e(n<0||arguments.length<=n?void 0:arguments[n]),a<0&&(a+=1);return[r,t,a]}function XR(){var e=4022871197;return function(r){for(var t=r.toString(),a=0;a<t.length;a++){e+=t.charCodeAt(a);var n=.02519603282416938*e;e=n>>>0,n-=e,n*=e,e=n>>>0,n-=e,e+=n*4294967296}return(e>>>0)*23283064365386963e-26}}function qR(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var nc=typeof window<"u"?window.Hammer||Fy:function(){return qR()};function pr(e){var r=this,t;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var a=nc(this._dom.overlay);a.on("tap",O(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){a.destroy()});var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];B(n).call(n,function(s){a.on(s,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(s){KR(s.target,e)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})),this._escListener=function(s){("key"in s?s.key==="Escape":s.keyCode===27)&&r.deactivate()}}Uu(pr.prototype);pr.current=null;pr.prototype.destroy=function(){var e,r;this.deactivate();var t=tc(II(e=pt(r=this._cleanupQueue).call(r,0)).call(e)),a;try{for(t.s();!(a=t.n()).done;){var n=a.value;n()}}catch(s){t.e(s)}finally{t.f()}};pr.prototype.activate=function(){pr.current&&pr.current.deactivate(),pr.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};pr.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};pr.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function KR(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var ZR=/^\/?Date\((-?\d+)/i,QR=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,JR=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,eL=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,tL=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function sa(e){return e instanceof Number||typeof e=="number"}function Hy(e){if(e)for(;e.hasChildNodes()===!0;){var r=e.firstChild;r&&(Hy(r),e.removeChild(r))}}function Ft(e){return e instanceof String||typeof e=="string"}function eu(e){return ee(e)==="object"&&e!==null}function rL(e){if(e instanceof Date)return!0;if(Ft(e)){var r=ZR.exec(e);if(r)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function Ti(e,r,t,a){var n=!1;a===!0&&(n=r[t]===null&&e[t]!==void 0),n?delete e[t]:e[t]=r[t]}function Wy(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var a in e)if(r[a]!==void 0)if(r[a]===null||ee(r[a])!=="object")Ti(e,r,a,t);else{var n=e[a],s=r[a];eu(n)&&eu(s)&&Wy(n,s,t)}}var iL=Ar;function nL(e,r){if(!re(e))throw new Error("Array with property names expected as first argument");for(var t=arguments.length,a=new Array(t>2?t-2:0),n=2;n<t;n++)a[n-2]=arguments[n];for(var s=0,o=a;s<o.length;s++)for(var l=o[s],d=0;d<e.length;d++){var u=e[d];l&&Object.prototype.hasOwnProperty.call(l,u)&&(r[u]=l[u])}return r}function aL(e,r,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(re(t))throw new TypeError("Arrays are not supported by deepExtend");for(var n=0;n<e.length;n++){var s=e[n];if(Object.prototype.hasOwnProperty.call(t,s))if(t[s]&&t[s].constructor===Object)r[s]===void 0&&(r[s]={}),r[s].constructor===Object?_a(r[s],t[s],!1,a):Ti(r,t,s,a);else{if(re(t[s]))throw new TypeError("Arrays are not supported by deepExtend");Ti(r,t,s,a)}}return r}function sL(e,r,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(re(t))throw new TypeError("Arrays are not supported by deepExtend");for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&!ti(e).call(e,n))if(t[n]&&t[n].constructor===Object)r[n]===void 0&&(r[n]={}),r[n].constructor===Object?_a(r[n],t[n]):Ti(r,t,n,a);else if(re(t[n])){r[n]=[];for(var s=0;s<t[n].length;s++)r[n].push(t[n][s])}else Ti(r,t,n,a);return r}function _a(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)||t===!0)if(ee(r[n])==="object"&&r[n]!==null&&tv(r[n])===Object.prototype)e[n]===void 0?e[n]=_a({},r[n],t):ee(e[n])==="object"&&e[n]!==null&&tv(e[n])===Object.prototype?_a(e[n],r[n],t):Ti(e,r,n,a);else if(re(r[n])){var s;e[n]=ht(s=r[n]).call(s)}else Ti(e,r,n,a);return e}function oL(e,r){if(e.length!==r.length)return!1;for(var t=0,a=e.length;t<a;t++)if(e[t]!=r[t])return!1;return!0}function ra(e){var r=ee(e);return r==="object"?e===null?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":re(e)?"Array":e instanceof Date?"Date":"Object":r==="number"?"Number":r==="boolean"?"Boolean":r==="string"?"String":r===void 0?"undefined":r}function ba(e,r){var t;return Ne(t=[]).call(t,Pe(e),[r])}function Gy(e){return ht(e).call(e)}function lL(e){return e.getBoundingClientRect().left}function dL(e){return e.getBoundingClientRect().right}function uL(e){return e.getBoundingClientRect().top}function cL(e,r){var t=e.className.split(" "),a=r.split(" ");t=Ne(t).call(t,J(a).call(a,function(n){return!ti(t).call(t,n)})),e.className=t.join(" ")}function hL(e,r){var t=e.className.split(" "),a=r.split(" ");t=J(t).call(t,function(n){return!ti(a).call(a,n)}),e.className=t.join(" ")}function fL(e,r){if(re(e))for(var t=e.length,a=0;a<t;a++)r(e[a],a,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r(e[n],n,e)}var vL=Gu;function pL(e,r,t){return e[r]!==t?(e[r]=t,!0):!1}function mL(e){var r=!1;return function(){r||(r=!0,requestAnimationFrame(function(){r=!1,e()}))}}function gL(e,r,t,a){if(e.addEventListener){var n;a===void 0&&(a=!1),r==="mousewheel"&&ti(n=navigator.userAgent).call(n,"Firefox")&&(r="DOMMouseScroll"),e.addEventListener(r,t,a)}else e.attachEvent("on"+r,t)}function yL(e,r,t,a){if(e.removeEventListener){var n;a===void 0&&(a=!1),r==="mousewheel"&&ti(n=navigator.userAgent).call(n,"Firefox")&&(r="DOMMouseScroll"),e.removeEventListener(r,t,a)}else e.detachEvent("on"+r,t)}function _L(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}function bL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event,r=null;return e&&(e.target?r=e.target:e.srcElement&&(r=e.srcElement)),!(r instanceof Element)||r.nodeType!=null&&r.nodeType==3&&(r=r.parentNode,!(r instanceof Element))?null:r}function wL(e,r){for(var t=e;t;){if(t===r)return!0;if(t.parentNode)t=t.parentNode;else return!1}return!1}var kL={asBoolean:function(r,t){return typeof r=="function"&&(r=r()),r!=null?r!=!1:t||null},asNumber:function(r,t){return typeof r=="function"&&(r=r()),r!=null?Number(r)||t||null:t||null},asString:function(r,t){return typeof r=="function"&&(r=r()),r!=null?String(r):t||null},asSize:function(r,t){return typeof r=="function"&&(r=r()),Ft(r)?r:sa(r)?r+"px":t||null},asElement:function(r,t){return typeof r=="function"&&(r=r()),r||t||null}};function Mo(e){var r;switch(e.length){case 3:case 4:return r=JR.exec(e),r?{r:Lt(r[1]+r[1],16),g:Lt(r[2]+r[2],16),b:Lt(r[3]+r[3],16)}:null;case 6:case 7:return r=QR.exec(e),r?{r:Lt(r[1],16),g:Lt(r[2],16),b:Lt(r[3],16)}:null;default:return null}}function xL(e,r){if(ti(e).call(e,"rgba"))return e;if(ti(e).call(e,"rgb")){var t=e.substr(Se(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+r+")"}else{var a=Mo(e);return a==null?e:"rgba("+a.r+","+a.g+","+a.b+","+r+")"}}function ac(e,r,t){var a;return"#"+ht(a=((1<<24)+(e<<16)+(r<<8)+t).toString(16)).call(a,1)}function EL(e,r){if(Ft(e)){var t=e;if(oc(t)){var a,n=ye(a=t.substr(4).substr(0,t.length-5).split(",")).call(a,function(m){return Lt(m)});t=ac(n[0],n[1],n[2])}if(sc(t)===!0){var s=Uy(t),o={h:s.h,s:s.s*.8,v:Math.min(1,s.v*1.02)},l={h:s.h,s:Math.min(1,s.s*1.25),v:s.v*.8},d=tu(l.h,l.s,l.v),u=tu(o.h,o.s,o.v);return{background:t,border:d,highlight:{background:u,border:d},hover:{background:u,border:d}}}else return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else if(r){var f={background:e.background||r.background,border:e.border||r.border,highlight:Ft(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||r.highlight.background,border:e.highlight&&e.highlight.border||r.highlight.border},hover:Ft(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||r.hover.border,background:e.hover&&e.hover.background||r.hover.background}};return f}else{var p={background:e.background||void 0,border:e.border||void 0,highlight:Ft(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:Ft(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}};return p}}function dn(e,r,t){e=e/255,r=r/255,t=t/255;var a=Math.min(e,Math.min(r,t)),n=Math.max(e,Math.max(r,t));if(a===n)return{h:0,s:0,v:a};var s=e===a?r-t:t===a?e-r:t-e,o=e===a?3:t===a?1:5,l=60*(o-s/(n-a))/360,d=(n-a)/n,u=n;return{h:l,s:d,v:u}}function zy(e){var r=document.createElement("div"),t={};r.style.cssText=e;for(var a=0;a<r.style.length;++a)t[r.style[a]]=r.style.getPropertyValue(r.style[a]);return t}function SL(e,r){for(var t=zy(r),a=0,n=vV(t);a<n.length;a++){var s=ut(n[a],2),o=s[0],l=s[1];e.style.setProperty(o,l)}}function $L(e,r){for(var t=zy(r),a=0,n=Ze(t);a<n.length;a++){var s=n[a];e.style.removeProperty(s)}}function oa(e,r,t){var a,n,s,o=Math.floor(e*6),l=e*6-o,d=t*(1-r),u=t*(1-l*r),f=t*(1-(1-l)*r);switch(o%6){case 0:a=t,n=f,s=d;break;case 1:a=u,n=t,s=d;break;case 2:a=d,n=t,s=f;break;case 3:a=d,n=u,s=t;break;case 4:a=f,n=d,s=t;break;case 5:a=t,n=d,s=u;break}return{r:Math.floor(a*255),g:Math.floor(n*255),b:Math.floor(s*255)}}function tu(e,r,t){var a=oa(e,r,t);return ac(a.r,a.g,a.b)}function Uy(e){var r=Mo(e);if(!r)throw new TypeError("'".concat(e,"' is not a valid color."));return dn(r.r,r.g,r.b)}function sc(e){var r=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return r}function oc(e){return eL.test(e)}function Xy(e){return tL.test(e)}function DL(e,r){if(r!==null&&ee(r)==="object"){for(var t=La(r),a=0;a<e.length;a++)Object.prototype.hasOwnProperty.call(r,e[a])&&ee(r[e[a]])=="object"&&(t[e[a]]=lc(r[e[a]]));return t}else return null}function lc(e){if(e===null||ee(e)!=="object")return null;if(e instanceof Element)return e;var r=La(e);for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&ee(e[t])=="object"&&(r[t]=lc(e[t]));return r}function TL(e,r){for(var t=0;t<e.length;t++){var a=e[t],n=void 0;for(n=t;n>0&&r(a,e[n-1])<0;n--)e[n]=e[n-1];e[n]=a}return e}function NL(e,r,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=function(b){return b!=null},s=function(b){return b!==null&&ee(b)==="object"},o=function(b){for(var E in b)if(Object.prototype.hasOwnProperty.call(b,E))return!1;return!0};if(!s(e))throw new Error("Parameter mergeTarget must be an object");if(!s(r))throw new Error("Parameter options must be an object");if(!n(t))throw new Error("Parameter option must have a value");if(!s(a))throw new Error("Parameter globalOptions must be an object");var l=function(b,E,w){s(b[w])||(b[w]={});var S=E[w],D=b[w];for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(D[T]=S[T])},d=r[t],u=s(a)&&!o(a),f=u?a[t]:void 0,p=f?f.enabled:void 0;if(d!==void 0){if(typeof d=="boolean"){s(e[t])||(e[t]={}),e[t].enabled=d;return}if(d===null&&!s(e[t]))if(n(f))e[t]=La(f);else return;if(s(d)){var m=!0;d.enabled!==void 0?m=d.enabled:p!==void 0&&(m=f.enabled),l(e,r,t),e[t].enabled=m}}}function CL(e,r,t,a){for(var n=1e4,s=0,o=0,l=e.length-1;o<=l&&s<n;){var d=Math.floor((o+l)/2),u=e[d],f=a===void 0?u[t]:u[t][a],p=r(f);if(p==0)return d;p==-1?o=d+1:l=d-1,s++}return-1}function OL(e,r,t,a,n){var s=1e4,o=0,l=0,d=e.length-1,u,f,p,m;for(n=n??function(y,b){return y==b?0:y<b?-1:1};l<=d&&o<s;){if(m=Math.floor(.5*(d+l)),u=e[Math.max(0,m-1)][t],f=e[m][t],p=e[Math.min(e.length-1,m+1)][t],n(f,r)==0)return m;if(n(u,r)<0&&n(f,r)>0)return a=="before"?Math.max(0,m-1):m;if(n(f,r)<0&&n(p,r)>0)return a=="before"?m:Math.min(e.length-1,m+1);n(f,r)<0?l=m+1:d=m-1,o++}return-1}var PL={linear:function(r){return r},easeInQuad:function(r){return r*r},easeOutQuad:function(r){return r*(2-r)},easeInOutQuad:function(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic:function(r){return r*r*r},easeOutCubic:function(r){return--r*r*r+1},easeInOutCubic:function(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart:function(r){return r*r*r*r},easeOutQuart:function(r){return 1- --r*r*r*r},easeInOutQuart:function(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint:function(r){return r*r*r*r*r},easeOutQuint:function(r){return 1+--r*r*r*r*r},easeInOutQuint:function(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function IL(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var r=document.createElement("div");r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.visibility="hidden",r.style.width="200px",r.style.height="150px",r.style.overflow="hidden",r.appendChild(e),document.body.appendChild(r);var t=e.offsetWidth;r.style.overflow="scroll";var a=e.offsetWidth;return t==a&&(a=r.clientWidth),document.body.removeChild(r),t-a}function ML(e,r){var t;re(r)||(r=[r]);var a=tc(e),n;try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s){t=s[r[0]];for(var o=1;o<r.length;o++)t&&(t=t[r[o]]);if(typeof t<"u")break}}}catch(l){a.e(l)}finally{a.f()}return t}var AL={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},qy=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;ue(this,e),this.pixelRatio=r,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return ce(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return AL[t]}},{key:"setColor",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var n,s=this._isColorString(t);if(s!==void 0&&(t=s),Ft(t)===!0){if(oc(t)===!0){var o=t.substr(4).substr(0,t.length-5).split(",");n={r:o[0],g:o[1],b:o[2],a:1}}else if(Xy(t)===!0){var l=t.substr(5).substr(0,t.length-6).split(",");n={r:l[0],g:l[1],b:l[2],a:l[3]}}else if(sc(t)===!0){var d=Mo(t);n={r:d.r,g:d.g,b:d.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var u=t.a!==void 0?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:u}}if(n===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Dt(t));this._setColor(n,a)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;a===!0&&(this.previousColor=Ar({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",ct(function(){t.closeCallback!==void 0&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a===!0&&(this.initialColor=Ar({},t)),this.color=t;var n=dn(t.r,t.g,t.b),s=2*Math.PI,o=this.r*n.s,l=this.centerCoordinates.x+o*Math.sin(s*n.h),d=this.centerCoordinates.y+o*Math.cos(s*n.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=d-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var a=dn(this.color.r,this.color.g,this.color.b);a.v=t/100;var n=oa(a.h,a.s,a.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,a=dn(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var s=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,s,o),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-a.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fy(n).call(n),this.brightnessRange.value=100*a.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,a,n,s;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var l=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=O(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=O(a=this._apply).call(a,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=O(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=O(s=this._loadLast).call(s,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new nc(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(a){a.isFirst&&t._moveSelector(a)}),this.hammer.on("tap",function(a){t._moveSelector(a)}),this.hammer.on("panstart",function(a){t._moveSelector(a)}),this.hammer.on("panmove",function(a){t._moveSelector(a)}),this.hammer.on("panend",function(a){t._moveSelector(a)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,a,n);var s,o,l,d;this.centerCoordinates={x:a*.5,y:n*.5},this.r=.49*a;var u=2*Math.PI/360,f=1/360,p=1/this.r,m;for(l=0;l<360;l++)for(d=0;d<this.r;d++)s=this.centerCoordinates.x+d*Math.sin(u*l),o=this.centerCoordinates.y+d*Math.cos(u*l),m=oa(l*f,d*p,1),t.fillStyle="rgb("+m.r+","+m.g+","+m.b+")",t.fillRect(s-.5,o-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,a,n)}this.generated=!0}},{key:"_moveSelector",value:function(t){var a=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-a.left,s=t.center.y-a.top,o=.5*this.colorPickerDiv.clientHeight,l=.5*this.colorPickerDiv.clientWidth,d=n-l,u=s-o,f=Math.atan2(d,u),p=.98*Math.min(Math.sqrt(d*d+u*u),l),m=Math.cos(f)*p+o,y=Math.sin(f)*p+l;this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=y-.5*this.colorPickerSelector.clientWidth+"px";var b=f/(2*Math.PI);b=b<0?b+1:b;var E=p/this.r,w=dn(this.color.r,this.color.g,this.color.b);w.h=b,w.s=E;var S=oa(w.h,w.s,w.v);S.a=this.color.a,this.color=S,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}();function ru(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length<1)throw new TypeError("Invalid arguments.");if(r.length===1)return document.createTextNode(r[0]);var a=document.createElement(r[0]);return a.appendChild(ru.apply(void 0,Pe(ht(r).call(r,1)))),a}var VL=function(){function e(r,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};ue(this,e),this.parent=r,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Ar(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new qy(n),this.wrapper=void 0}return ce(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var a=!0;if(typeof t=="string")this.options.filter=t;else if(re(t))this.options.filter=t.join();else if(ee(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),J(t)!==void 0&&(this.options.filter=J(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(a=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,a=t):typeof t=="function"&&(this.options.filter=t,a=!0);J(this.options)===!1&&(a=!1),this.options.enabled=a}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=J(this.options),a=0,n=!1;for(var s in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,s)&&(this.allowCreation=!1,n=!1,typeof t=="function"?(n=t(s,[]),n=n||this._handleObject(this.configureOptions[s],[s],!0)):(t===!0||Se(t).call(t,s)!==-1)&&(n=!0),n!==!1&&(this.allowCreation=!0,a>0&&this._makeItem([]),this._makeHeader(s),this._handleObject(this.configureOptions[s],[s])),a++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var a=this.moduleOptions,n=0;n<t.length;n++)if(a[t[n]]!==void 0)a=a[t[n]];else{a=void 0;break}return a}},{key:"_makeItem",value:function(t){if(this.allowCreation===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return B(s).call(s,function(l){a.appendChild(l)}),this.domElements.push(a),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var a=document.createElement("div");a.className="vis-configuration vis-config-header",a.innerText=t,this._makeItem([],a)}},{key:"_makeLabel",value:function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=document.createElement("div");if(s.className="vis-configuration vis-config-label vis-config-s"+a.length,n===!0){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(ru("i","b",t))}else s.innerText=t+":";return s}},{key:"_makeDropdown",value:function(t,a,n){var s=document.createElement("select");s.className="vis-configuration vis-config-select";var o=0;a!==void 0&&Se(t).call(t,a)!==-1&&(o=Se(t).call(t,a));for(var l=0;l<t.length;l++){var d=document.createElement("option");d.value=t[l],l===o&&(d.selected="selected"),d.innerText=t[l],s.appendChild(d)}var u=this;s.onchange=function(){u._update(this.value,n)};var f=this._makeLabel(n[n.length-1],n);this._makeItem(n,f,s)}},{key:"_makeRange",value:function(t,a,n){var s=t[0],o=t[1],l=t[2],d=t[3],u=document.createElement("input");u.className="vis-configuration vis-config-range";try{u.type="range",u.min=o,u.max=l}catch{}u.step=d;var f="",p=0;if(a!==void 0){var m=1.2;a<0&&a*m<o?(u.min=Math.ceil(a*m),p=u.min,f="range increased"):a/m<o&&(u.min=Math.ceil(a/m),p=u.min,f="range increased"),a*m>l&&l!==1&&(u.max=Math.ceil(a*m),p=u.max,f="range increased"),u.value=a}else u.value=s;var y=document.createElement("input");y.className="vis-configuration vis-config-rangeinput",y.value=u.value;var b=this;u.onchange=function(){y.value=this.value,b._update(Number(this.value),n)},u.oninput=function(){y.value=this.value};var E=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,E,u,y);f!==""&&this.popupHistory[w]!==p&&(this.popupHistory[w]=p,this._setupPopup(f,w))}},{key:"_makeButton",value:function(){var t=this;if(this.options.showButton===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-button",a.innerText="generate options",a.onclick=function(){t._printOptions()},a.onmouseover=function(){a.className="vis-configuration vis-config-button hover"},a.onmouseout=function(){a.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(a)}}},{key:"_setupPopup",value:function(t,a){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var s=document.createElement("div");s.id="vis-configuration-popup",s.className="vis-configuration-popup",s.innerText=t,s.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:s,index:a}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(this.popupDiv.html!==void 0){var a=this.domElements[this.popupDiv.index],n=a.getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=ct(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=ct(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,a,n){var s=document.createElement("input");s.type="checkbox",s.className="vis-configuration vis-config-checkbox",s.checked=t,a!==void 0&&(s.checked=a,a!==t&&(ee(t)==="object"?a!==t.enabled&&this.changedOptions.push({path:n,value:a}):this.changedOptions.push({path:n,value:a})));var o=this;s.onchange=function(){o._update(this.checked,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeTextInput",value:function(t,a,n){var s=document.createElement("input");s.type="text",s.className="vis-configuration vis-config-text",s.value=a,a!==t&&this.changedOptions.push({path:n,value:a});var o=this;s.onchange=function(){o._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeColorField",value:function(t,a,n){var s=this,o=t[1],l=document.createElement("div");a=a===void 0?o:a,a!=="none"?(l.className="vis-configuration vis-config-colorBlock",l.style.backgroundColor=a):l.className="vis-configuration vis-config-colorBlock none",a=a===void 0?o:a,l.onclick=function(){s._showColorPicker(a,l,n)};var d=this._makeLabel(n[n.length-1],n);this._makeItem(n,d,l)}},{key:"_showColorPicker",value:function(t,a,n){var s=this;a.onclick=function(){},this.colorPicker.insertTo(a),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(o){var l="rgba("+o.r+","+o.g+","+o.b+","+o.a+")";a.style.backgroundColor=l,s._update(l,n)}),this.colorPicker.setCloseCallback(function(){a.onclick=function(){s._showColorPicker(t,a,n)}})}},{key:"_handleObject",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=!1,o=J(this.options),l=!1;for(var d in t)if(Object.prototype.hasOwnProperty.call(t,d)){s=!0;var u=t[d],f=ba(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!re(u)&&typeof u!="string"&&typeof u!="boolean"&&u instanceof Object&&(this.allowCreation=!1,s=this._handleObject(u,f,!0),this.allowCreation=n===!1)),s!==!1){l=!0;var p=this._getValue(f);if(re(u))this._handleArray(u,p,f);else if(typeof u=="string")this._makeTextInput(u,p,f);else if(typeof u=="boolean")this._makeCheckbox(u,p,f);else if(u instanceof Object){if(!this.hideOption(a,d,this.moduleOptions))if(u.enabled!==void 0){var m=ba(f,"enabled"),y=this._getValue(m);if(y===!0){var b=this._makeLabel(d,f,!0);this._makeItem(f,b),l=this._handleObject(u,f)||l}else this._makeCheckbox(u,y,f)}else{var E=this._makeLabel(d,f,!0);this._makeItem(f,E),l=this._handleObject(u,f)||l}}else console.error("dont know how to handle",u,d,f)}}return l}},{key:"_handleArray",value:function(t,a,n){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,a,n),t[1]!==a&&this.changedOptions.push({path:n,value:a})):typeof t[0]=="string"?(this._makeDropdown(t,a,n),t[0]!==a&&this.changedOptions.push({path:n,value:a})):typeof t[0]=="number"&&(this._makeRange(t,a,n),t[0]!==a&&this.changedOptions.push({path:n,value:Number(a)}))}},{key:"_update",value:function(t,a){var n=this._constructOptions(t,a);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var o=0;o<a.length;o++)a[o]!=="global"&&(s[a[o]]===void 0&&(s[a[o]]={}),o!==a.length-1?s=s[a[o]]:s[a[o]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(ru("pre","const options = "+Dt(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},a=0;a<this.changedOptions.length;a++)this._constructOptions(this.changedOptions[a].value,this.changedOptions[a].path,t);return t}}]),e}(),RL=function(){function e(r,t){ue(this,e),this.container=r,this.overflowMethod=t||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return ce(e,[{key:"setPosition",value:function(t,a){this.x=Lt(t),this.y=Lt(a)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(t===void 0&&(t=!0),t===!0){var a=this.frame.clientHeight,n=this.frame.clientWidth,s=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,l=0,d=0;if(this.overflowMethod=="flip"){var u=!1,f=!0;this.y-a<this.padding&&(f=!1),this.x+n>o-this.padding&&(u=!0),u?l=this.x-n:l=this.x,f?d=this.y-a:d=this.y}else d=this.y-a,d+a+this.padding>s&&(d=s-a-this.padding),d<this.padding&&(d=this.padding),l=this.x,l+n+this.padding>o&&(l=o-n-this.padding),l<this.padding&&(l=this.padding);this.frame.style.left=l+"px",this.frame.style.top=d+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),Zn=!1,xv,iu="background: #FFeeee; color: #dd0000",LL=function(){function e(){ue(this,e)}return ce(e,null,[{key:"validate",value:function(t,a,n){Zn=!1,xv=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(t,s,[]),Zn}},{key:"parse",value:function(t,a,n){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.check(s,t,a,n)}},{key:"check",value:function(t,a,n,s){if(n[t]===void 0&&n.__any__===void 0){e.getSuggestion(t,n,s);return}var o=t,l=!0;n[t]===void 0&&n.__any__!==void 0&&(o="__any__",l=e.getType(a[t])==="object");var d=n[o];l&&d.__type__!==void 0&&(d=d.__type__),e.checkFields(t,a,n,o,d,s)}},{key:"checkFields",value:function(t,a,n,s,o,l){var d=function(m){console.error("%c"+m+e.printLocation(l,t),iu)},u=e.getType(a[t]),f=o[u];f!==void 0?e.getType(f)==="array"&&Se(f).call(f,a[t])===-1?(d('Invalid option detected in "'+t+'". Allowed values are:'+e.print(f)+' not "'+a[t]+'". '),Zn=!0):u==="object"&&s!=="__any__"&&(l=ba(l,t),e.parse(a[t],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+t+'". Expected: '+e.print(Ze(o))+". Received ["+u+'] "'+a[t]+'"'),Zn=!0)}},{key:"getType",value:function(t){var a=ee(t);return a==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":re(t)?"array":t instanceof Date?"date":t.nodeType!==void 0?"dom":t._isAMomentObject===!0?"moment":"object":a==="number"?"number":a==="boolean"?"boolean":a==="string"?"string":a===void 0?"undefined":a}},{key:"getSuggestion",value:function(t,a,n){var s=e.findInOptions(t,a,n,!1),o=e.findInOptions(t,xv,[],!0),l=8,d=4,u;s.indexMatch!==void 0?u=" in "+e.printLocation(s.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+`"?
|
54
50
|
|
55
|
-
`:o.distance<=d&&s.distance>o.distance?
|
51
|
+
`:o.distance<=d&&s.distance>o.distance?u=" in "+e.printLocation(s.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""):s.distance<=l?u='. Did you mean "'+s.closestMatch+'"?'+e.printLocation(s.path,t):u=". Did you mean one of these: "+e.print(Ze(a))+e.printLocation(n,t),console.error('%cUnknown option detected: "'+t+'"'+u,iu),Zn=!0}},{key:"findInOptions",value:function(t,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],u=t.toLowerCase(),f=void 0;for(var p in a){var m=void 0;if(a[p].__type__!==void 0&&s===!0){var y=e.findInOptions(t,a[p],ba(n,p));o>y.distance&&(l=y.closestMatch,d=y.path,o=y.distance,f=y.indexMatch)}else{var b;Se(b=p.toLowerCase()).call(b,u)!==-1&&(f=p),m=e.levenshteinDistance(t,p),o>m&&(l=p,d=Gy(n),o=m)}}return{closestMatch:l,path:d,distance:o,indexMatch:f}}},{key:"printLocation",value:function(t,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
56
52
|
`,s=`
|
57
53
|
|
58
54
|
`+n+`options = {
|
59
|
-
`,o=0;o<
|
60
|
-
`}for(var d=0;d<
|
61
|
-
`;for(var
|
55
|
+
`,o=0;o<t.length;o++){for(var l=0;l<o+1;l++)s+=" ";s+=t[o]+`: {
|
56
|
+
`}for(var d=0;d<t.length+1;d++)s+=" ";s+=a+`
|
57
|
+
`;for(var u=0;u<t.length+1;u++){for(var f=0;f<t.length-u;f++)s+=" ";s+=`}
|
62
58
|
`}return s+`
|
63
59
|
|
64
|
-
`}},{key:"print",value:function(r){return Ft(r).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(r,a){if(r.length===0)return a.length;if(a.length===0)return r.length;var n=[],s;for(s=0;s<=a.length;s++)n[s]=[s];var o;for(o=0;o<=r.length;o++)n[0][o]=o;for(s=1;s<=a.length;s++)for(o=1;o<=r.length;o++)a.charAt(s-1)==r.charAt(o-1)?n[s][o]=n[s-1][o-1]:n[s][o]=Math.min(n[s-1][o-1]+1,Math.min(n[s][o-1]+1,n[s-1][o]+1));return n[a.length][r.length]}}]),e}(),RH=Mr,LH=Uw,VH=IH,FH=Ef,YH=PH,jH=rh,BH=MH,HH=Object.freeze({__proto__:null,Activator:RH,Alea:B8,ColorPicker:LH,Configurator:VH,DELETE:bf,HSVToHex:eh,HSVToRGB:us,Hammer:FH,Popup:YH,RGBToHSV:ra,RGBToHex:Sf,VALIDATOR_PRINT_STYLE:jH,Validator:BH,addClassName:lH,addCssText:EH,addEventListener:pH,binarySearchCustom:$H,binarySearchValue:DH,bridgeObject:Tf,copyAndExtendArray:xs,copyArray:Hw,deepExtend:ks,deepObjectAssign:wf,easingFunctions:NH,equalArray:iH,extend:eH,fillIfDefined:Bw,forEach:cH,getAbsoluteLeft:aH,getAbsoluteRight:sH,getAbsoluteTop:oH,getScrollBarWidth:CH,getTarget:gH,getType:is,hasParent:yH,hexToHSV:Gw,hexToRGB:hd,insertSort:xH,isDate:J8,isNumber:cs,isObject:Ju,isString:Qt,isValidHex:kf,isValidRGB:xf,isValidRGBA:zw,mergeOptions:TH,option:_H,overrideOpacity:bH,parseColor:wH,preventDefault:mH,pureDeepObjectAssign:Vw,recursiveDOMDelete:jw,removeClassName:dH,removeCssText:SH,removeEventListener:vH,selectiveBridgeObject:kH,selectiveDeepExtend:rH,selectiveExtend:tH,selectiveNotDeepExtend:nH,throttle:fH,toArray:uH,topMost:OH,updateProperty:hH});function wn(e){for(var t in e)e.hasOwnProperty(t)&&(e[t].redundant=e[t].used,e[t].used=[])}function sr(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t].redundant){for(var r=0;r<e[t].redundant.length;r++)e[t].redundant[r].parentNode.removeChild(e[t].redundant[r]);e[t].redundant=[]}}function WH(e){wn(e),sr(e),wn(e)}function kr(e,t,r){var a;return t.hasOwnProperty(e)?t[e].redundant.length>0?(a=t[e].redundant[0],t[e].redundant.shift()):(a=document.createElementNS("http://www.w3.org/2000/svg",e),r.appendChild(a)):(a=document.createElementNS("http://www.w3.org/2000/svg",e),t[e]={used:[],redundant:[]},r.appendChild(a)),t[e].used.push(a),a}function Gc(e,t,r,a){var n;return t.hasOwnProperty(e)?t[e].redundant.length>0?(n=t[e].redundant[0],t[e].redundant.shift()):(n=document.createElement(e),a!==void 0?r.insertBefore(n,a):r.appendChild(n)):(n=document.createElement(e),t[e]={used:[],redundant:[]},a!==void 0?r.insertBefore(n,a):r.appendChild(n)),t[e].used.push(n),n}function ya(e,t,r,a,n,s){var o;if(r.style=="circle"?(o=kr("circle",a,n),o.setAttributeNS(null,"cx",e),o.setAttributeNS(null,"cy",t),o.setAttributeNS(null,"r",.5*r.size)):(o=kr("rect",a,n),o.setAttributeNS(null,"x",e-.5*r.size),o.setAttributeNS(null,"y",t-.5*r.size),o.setAttributeNS(null,"width",r.size),o.setAttributeNS(null,"height",r.size)),r.styles!==void 0&&o.setAttributeNS(null,"style",r.styles),o.setAttributeNS(null,"class",r.className+" vis-point"),s){var l=kr("text",a,n);s.xOffset&&(e=e+s.xOffset),s.yOffset&&(t=t+s.yOffset),s.content&&(l.textContent=s.content),s.className&&l.setAttributeNS(null,"class",s.className+" vis-label"),l.setAttributeNS(null,"x",e),l.setAttributeNS(null,"y",t)}return o}function nh(e,t,r,a,n,s,o,l){if(a!=0){a<0&&(a*=-1,t-=a);var d=kr("rect",s,o);d.setAttributeNS(null,"x",e-.5*r),d.setAttributeNS(null,"y",t),d.setAttributeNS(null,"width",r),d.setAttributeNS(null,"height",a),d.setAttributeNS(null,"class",n),l&&d.setAttributeNS(null,"style",l)}}function GH(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch{return"en"}}function Ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var zH=aw,UH=zH,KH=UH,qH=KH,Kw=qH,XH=K(Kw),QH=X,ZH=Db;QH({target:"Object",stat:!0},{setPrototypeOf:ZH});var JH=xe,eW=JH.Object.setPrototypeOf,tW=eW,rW=tW,nW=rW,iW=nW,aW=iW,sW=aW,qw=sW,ih=K(qw),oW=G0,lW=oW,dW=lW,cW=dW,uW=cW,Xw=K(uW);function ah(e,t){var r;return ah=ih?Xw(r=ih).call(r):function(n,s){return n.__proto__=s,n},ah(e,t)}function It(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=XH(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),td(e,"prototype",{writable:!1}),t&&ah(e,t)}function Gt(e,t){if(t&&(ne(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ne(e)}var hW=X0,fW=hW,pW=fW,vW=pW,Qw=vW,Eg=K(Qw);function ke(e){var t;return ke=ih?Xw(t=Eg).call(t):function(a){return a.__proto__||Eg(a)},ke(e)}function me(e,t,r){return t=C0(t),t in e?td(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zw={exports:{}},Jw={exports:{}};(function(e){var t=of,r=N0;function a(n){"@babel/helpers - typeof";return e.exports=a=typeof t=="function"&&typeof r=="symbol"?function(s){return typeof s}:function(s){return s&&typeof t=="function"&&s.constructor===t&&s!==t.prototype?"symbol":typeof s},e.exports.__esModule=!0,e.exports.default=e.exports,a(n)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(Jw);var mW=Jw.exports,gW=z0,yW=gW,_W=yW,bW=_W,wW=bW,Sg=tt,EW=lf,SW=_i,kW=Bt,xW=function(e,t,r){for(var a=EW(t),n=kW.f,s=SW.f,o=0;o<a.length;o++){var l=a[o];!Sg(e,l)&&!(r&&Sg(r,l))&&n(e,l,s(t,l))}},TW=dt,$W=un,DW=function(e,t){TW(t)&&"cause"in t&&$W(e,"cause",t.cause)},NW=Ee,eE=Error,CW=NW("".replace),OW=function(e){return String(new eE(e).stack)}("zxcasd"),tE=/\n\s*at [^:]*:[^\n]*/,AW=tE.test(OW),IW=function(e,t){if(AW&&typeof e=="string"&&!eE.prepareStackTrace)for(;t--;)e=CW(e,tE,"");return e},PW=ge,MW=yi,RW=!PW(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",MW(1,7)),e.stack!==7):!0}),LW=un,VW=IW,FW=RW,kg=Error.captureStackTrace,YW=function(e,t,r,a){FW&&(kg?kg(e,t):LW(e,"stack",VW(r,a)))},jW=Mn,BW=ct,HW=ir,WW=Oa,GW=Ab,zW=Wt,xg=Oe,UW=Zh,KW=ed,Tg=Ob,qW=TypeError,ll=function(e,t){this.stopped=e,this.result=t},$g=ll.prototype,Si=function(e,t,r){var a=r&&r.that,n=!!(r&&r.AS_ENTRIES),s=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),l=!!(r&&r.INTERRUPTED),d=jW(t,a),c,f,v,m,g,b,S,w=function(T){return c&&Tg(c,"normal",T),new ll(!0,T)},k=function(T){return n?(HW(T),l?d(T[0],T[1],w):d(T[0],T[1])):l?d(T,w):d(T)};if(s)c=e.iterator;else if(o)c=e;else{if(f=KW(e),!f)throw new qW(WW(e)+" is not iterable");if(GW(f)){for(v=0,m=zW(e);m>v;v++)if(g=k(e[v]),g&&xg($g,g))return g;return new ll(!1)}c=UW(e,f)}for(b=s?e.next:c.next;!(S=BW(b,c)).done;){try{g=k(S.value)}catch(T){Tg(c,"throw",T)}if(typeof g=="object"&&g&&xg($g,g))return g}return new ll(!1)},XW=fr,QW=function(e,t){return e===void 0?arguments.length<2?"":t:XW(e)},ZW=X,JW=Oe,e6=Ys,kl=Db,t6=xW,rE=bi,zc=un,Uc=yi,r6=DW,n6=YW,i6=Si,a6=QW,s6=je,o6=s6("toStringTag"),xl=Error,l6=[].push,_a=function(t,r){var a=JW(Kc,this),n;kl?n=kl(new xl,a?e6(this):Kc):(n=a?this:rE(Kc),zc(n,o6,"Error")),r!==void 0&&zc(n,"message",a6(r)),n6(n,_a,n.stack,1),arguments.length>2&&r6(n,arguments[2]);var s=[];return i6(t,l6,{that:s}),zc(n,"errors",s),n};kl?kl(_a,xl):t6(_a,xl,{name:!0});var Kc=_a.prototype=rE(xl.prototype,{constructor:Uc(1,_a),message:Uc(1,""),name:Uc(1,"AggregateError")});ZW({global:!0},{AggregateError:_a});var d6=Ye,c6=dn,eo=c6(d6.process)==="process",u6=At,h6=ef,f6=je,p6=ot,Dg=f6("species"),nE=function(e){var t=u6(e);p6&&t&&!t[Dg]&&h6(t,Dg,{configurable:!0,get:function(){return this}})},v6=Oe,m6=TypeError,$f=function(e,t){if(v6(t,e))return e;throw new m6("Incorrect invocation")},g6=Jl,y6=Oa,_6=TypeError,iE=function(e){if(g6(e))return e;throw new _6(y6(e)+" is not a constructor")},Ng=ir,b6=iE,w6=$a,E6=je,S6=E6("species"),aE=function(e,t){var r=Ng(e).constructor,a;return r===void 0||w6(a=Ng(r)[S6])?t:b6(a)},k6=Pn,sE=/(?:ipad|iphone|ipod).*applewebkit/i.test(k6),Zt=Ye,x6=Ia,T6=Mn,Cg=ze,$6=tt,oE=ge,Og=Eb,D6=zs,Ag=Wh,N6=sw,C6=sE,O6=eo,sh=Zt.setImmediate,Ig=Zt.clearImmediate,A6=Zt.process,qc=Zt.Dispatch,I6=Zt.Function,Pg=Zt.MessageChannel,P6=Zt.String,Xc=0,hs={},Mg="onreadystatechange",Ts,zn,Qc,Zc;oE(function(){Ts=Zt.location});var Df=function(e){if($6(hs,e)){var t=hs[e];delete hs[e],t()}},Jc=function(e){return function(){Df(e)}},Rg=function(e){Df(e.data)},Lg=function(e){Zt.postMessage(P6(e),Ts.protocol+"//"+Ts.host)};(!sh||!Ig)&&(sh=function(t){N6(arguments.length,1);var r=Cg(t)?t:I6(t),a=D6(arguments,1);return hs[++Xc]=function(){x6(r,void 0,a)},zn(Xc),Xc},Ig=function(t){delete hs[t]},O6?zn=function(e){A6.nextTick(Jc(e))}:qc&&qc.now?zn=function(e){qc.now(Jc(e))}:Pg&&!C6?(Qc=new Pg,Zc=Qc.port2,Qc.port1.onmessage=Rg,zn=T6(Zc.postMessage,Zc)):Zt.addEventListener&&Cg(Zt.postMessage)&&!Zt.importScripts&&Ts&&Ts.protocol!=="file:"&&!oE(Lg)?(zn=Lg,Zt.addEventListener("message",Rg,!1)):Mg in Ag("script")?zn=function(e){Og.appendChild(Ag("script"))[Mg]=function(){Og.removeChild(this),Df(e)}}:zn=function(e){setTimeout(Jc(e),0)});var lE={set:sh},dE=function(){this.head=null,this.tail=null};dE.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};var cE=dE,M6=Pn,R6=/ipad|iphone|ipod/i.test(M6)&&typeof Pebble<"u",L6=Pn,V6=/web0s(?!.*chrome)/i.test(L6),fi=Ye,Vg=Mn,F6=_i.f,eu=lE.set,Y6=cE,j6=sE,B6=R6,H6=V6,tu=eo,Fg=fi.MutationObserver||fi.WebKitMutationObserver,Yg=fi.document,jg=fi.process,Wo=fi.Promise,Bg=F6(fi,"queueMicrotask"),oh=Bg&&Bg.value,ji,ru,nu,Go,Hg;if(!oh){var zo=new Y6,Uo=function(){var e,t;for(tu&&(e=jg.domain)&&e.exit();t=zo.get();)try{t()}catch(r){throw zo.head&&ji(),r}e&&e.enter()};!j6&&!tu&&!H6&&Fg&&Yg?(ru=!0,nu=Yg.createTextNode(""),new Fg(Uo).observe(nu,{characterData:!0}),ji=function(){nu.data=ru=!ru}):!B6&&Wo&&Wo.resolve?(Go=Wo.resolve(void 0),Go.constructor=Wo,Hg=Vg(Go.then,Go),ji=function(){Hg(Uo)}):tu?ji=function(){jg.nextTick(Uo)}:(eu=Vg(eu,fi),ji=function(){eu(Uo)}),oh=function(e){zo.head||ji(),zo.add(e)}}var W6=oh,G6=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},Fa=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},z6=Ye,Ya=z6.Promise,uE=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",U6=uE,K6=eo,q6=!U6&&!K6&&typeof window=="object"&&typeof document=="object",X6=Ye,fs=Ya,Q6=ze,Z6=yb,J6=Ib,eG=je,tG=q6,rG=uE,iu=Na,Wg=fs&&fs.prototype,nG=eG("species"),Gg=!1,hE=Q6(X6.PromiseRejectionEvent),iG=Z6("Promise",function(){var e=J6(fs),t=e!==String(fs);if(!t&&iu===66||!(Wg.catch&&Wg.finally))return!0;if(!iu||iu<51||!/native code/.test(e)){var r=new fs(function(s){s(1)}),a=function(s){s(function(){},function(){})},n=r.constructor={};if(n[nG]=a,Gg=r.then(function(){})instanceof a,!Gg)return!0}return!t&&(tG||rG)&&!hE}),to={CONSTRUCTOR:iG,REJECTION_EVENT:hE},jr={},zg=Ht,aG=TypeError,sG=function(e){var t,r;this.promise=new e(function(a,n){if(t!==void 0||r!==void 0)throw new aG("Bad Promise constructor");t=a,r=n}),this.resolve=zg(t),this.reject=zg(r)};jr.f=function(e){return new sG(e)};var oG=X,Tl=eo,Cn=Ye,ro=ct,lG=Pa,dG=wi,cG=nE,uG=Ht,lh=ze,hG=dt,fG=$f,pG=aE,fE=lE.set,Nf=W6,vG=G6,mG=Fa,gG=cE,pE=Aa,dh=Ya,vE=to,mE=jr,fd="Promise",gE=vE.CONSTRUCTOR,yG=vE.REJECTION_EVENT,au=pE.getterFor(fd),_G=pE.set,bG=dh&&dh.prototype,na=dh,su=bG,yE=Cn.TypeError,ch=Cn.document,Cf=Cn.process,uh=mE.f,wG=uh,EG=!!(ch&&ch.createEvent&&Cn.dispatchEvent),_E="unhandledrejection",SG="rejectionhandled",Ug=0,bE=1,kG=2,Of=1,wE=2,Ko,Kg,xG,EE=function(e){var t;return hG(e)&&lh(t=e.then)?t:!1},SE=function(e,t){var r=t.value,a=t.state===bE,n=a?e.ok:e.fail,s=e.resolve,o=e.reject,l=e.domain,d,c,f;try{n?(a||(t.rejection===wE&&$G(t),t.rejection=Of),n===!0?d=r:(l&&l.enter(),d=n(r),l&&(l.exit(),f=!0)),d===e.promise?o(new yE("Promise-chain cycle")):(c=EE(d))?ro(c,d,s,o):s(d)):o(r)}catch(v){l&&!f&&l.exit(),o(v)}},kE=function(e,t){e.notified||(e.notified=!0,Nf(function(){for(var r=e.reactions,a;a=r.get();)SE(a,e);e.notified=!1,t&&!e.rejection&&TG(e)}))},xE=function(e,t,r){var a,n;EG?(a=ch.createEvent("Event"),a.promise=t,a.reason=r,a.initEvent(e,!1,!0),Cn.dispatchEvent(a)):a={promise:t,reason:r},!yG&&(n=Cn["on"+e])?n(a):e===_E&&vG("Unhandled promise rejection",r)},TG=function(e){ro(fE,Cn,function(){var t=e.facade,r=e.value,a=qg(e),n;if(a&&(n=mG(function(){Tl?Cf.emit("unhandledRejection",r,t):xE(_E,t,r)}),e.rejection=Tl||qg(e)?wE:Of,n.error))throw n.value})},qg=function(e){return e.rejection!==Of&&!e.parent},$G=function(e){ro(fE,Cn,function(){var t=e.facade;Tl?Cf.emit("rejectionHandled",t):xE(SG,t,e.value)})},ia=function(e,t,r){return function(a){e(t,a,r)}},aa=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=kG,kE(e,!0))},hh=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new yE("Promise can't be resolved itself");var a=EE(t);a?Nf(function(){var n={done:!1};try{ro(a,t,ia(hh,n,e),ia(aa,n,e))}catch(s){aa(n,s,e)}}):(e.value=t,e.state=bE,kE(e,!1))}catch(n){aa({done:!1},n,e)}}};gE&&(na=function(t){fG(this,su),uG(t),ro(Ko,this);var r=au(this);try{t(ia(hh,r),ia(aa,r))}catch(a){aa(r,a)}},su=na.prototype,Ko=function(t){_G(this,{type:fd,done:!1,notified:!1,parent:!1,reactions:new gG,rejection:!1,state:Ug,value:void 0})},Ko.prototype=lG(su,"then",function(t,r){var a=au(this),n=uh(pG(this,na));return a.parent=!0,n.ok=lh(t)?t:!0,n.fail=lh(r)&&r,n.domain=Tl?Cf.domain:void 0,a.state===Ug?a.reactions.add(n):Nf(function(){SE(n,a)}),n.promise}),Kg=function(){var e=new Ko,t=au(e);this.promise=e,this.resolve=ia(hh,t),this.reject=ia(aa,t)},mE.f=uh=function(e){return e===na||e===xG?new Kg(e):wG(e)});oG({global:!0,wrap:!0,forced:gE},{Promise:na});dG(na,fd,!1,!0);cG(fd);var DG=Ya,NG=Yb,CG=to.CONSTRUCTOR,pd=CG||!NG(function(e){DG.all(e).then(void 0,function(){})}),OG=X,AG=ct,IG=Ht,PG=jr,MG=Fa,RG=Si,LG=pd;OG({target:"Promise",stat:!0,forced:LG},{all:function(t){var r=this,a=PG.f(r),n=a.resolve,s=a.reject,o=MG(function(){var l=IG(r.resolve),d=[],c=0,f=1;RG(t,function(v){var m=c++,g=!1;f++,AG(l,r,v).then(function(b){g||(g=!0,d[m]=b,--f||n(d))},s)}),--f||n(d)});return o.error&&s(o.value),a.promise}});var VG=X,FG=to.CONSTRUCTOR,Xg=Ya;Xg&&Xg.prototype;VG({target:"Promise",proto:!0,forced:FG,real:!0},{catch:function(e){return this.then(void 0,e)}});var YG=X,jG=ct,BG=Ht,HG=jr,WG=Fa,GG=Si,zG=pd;YG({target:"Promise",stat:!0,forced:zG},{race:function(t){var r=this,a=HG.f(r),n=a.reject,s=WG(function(){var o=BG(r.resolve);GG(t,function(l){jG(o,r,l).then(a.resolve,n)})});return s.error&&n(s.value),a.promise}});var UG=X,KG=ct,qG=jr,XG=to.CONSTRUCTOR;UG({target:"Promise",stat:!0,forced:XG},{reject:function(t){var r=qG.f(this);return KG(r.reject,void 0,t),r.promise}});var QG=ir,ZG=dt,JG=jr,TE=function(e,t){if(QG(e),ZG(t)&&t.constructor===e)return t;var r=JG.f(e),a=r.resolve;return a(t),r.promise},ez=X,tz=At,rz=_O,nz=Ya,iz=to.CONSTRUCTOR,az=TE,sz=tz("Promise"),oz=!iz;ez({target:"Promise",stat:!0,forced:rz},{resolve:function(t){return az(oz&&this===sz?nz:this,t)}});var lz=X,dz=ct,cz=Ht,uz=jr,hz=Fa,fz=Si,pz=pd;lz({target:"Promise",stat:!0,forced:pz},{allSettled:function(t){var r=this,a=uz.f(r),n=a.resolve,s=a.reject,o=hz(function(){var l=cz(r.resolve),d=[],c=0,f=1;fz(t,function(v){var m=c++,g=!1;f++,dz(l,r,v).then(function(b){g||(g=!0,d[m]={status:"fulfilled",value:b},--f||n(d))},function(b){g||(g=!0,d[m]={status:"rejected",reason:b},--f||n(d))})}),--f||n(d)});return o.error&&s(o.value),a.promise}});var vz=X,mz=ct,gz=Ht,yz=At,_z=jr,bz=Fa,wz=Si,Ez=pd,Qg="No one promise resolved";vz({target:"Promise",stat:!0,forced:Ez},{any:function(t){var r=this,a=yz("AggregateError"),n=_z.f(r),s=n.resolve,o=n.reject,l=bz(function(){var d=gz(r.resolve),c=[],f=0,v=1,m=!1;wz(t,function(g){var b=f++,S=!1;v++,mz(d,r,g).then(function(w){S||m||(m=!0,s(w))},function(w){S||m||(S=!0,c[b]=w,--v||o(new a(c,Qg)))})}),--v||o(new a(c,Qg))});return l.error&&o(l.value),n.promise}});var Sz=X,fh=Ya,kz=ge,xz=At,Tz=ze,$z=aE,Zg=TE,Dz=fh&&fh.prototype,Nz=!!fh&&kz(function(){Dz.finally.call({then:function(){}},function(){})});Sz({target:"Promise",proto:!0,real:!0,forced:Nz},{finally:function(e){var t=$z(this,xz("Promise")),r=Tz(e);return this.then(r?function(a){return Zg(t,e()).then(function(){return a})}:e,r?function(a){return Zg(t,e()).then(function(){throw a})}:e)}});var Cz=xe,Oz=Cz.Promise,Az=Oz,Iz=Az,Pz=X,Mz=jr;Pz({target:"Promise",stat:!0},{withResolvers:function(){var t=Mz.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Rz=Iz,Lz=Rz,Vz=X,Fz=jr,Yz=Fa;Vz({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Fz.f(this),r=Yz(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var jz=Lz,Bz=jz,Hz=Bz,Wz=U0,Gz=Wz,zz=Gz,Uz=zz,Kz=Uz;(function(e){var t=mW.default,r=qb,a=of,n=Kw,s=Qw,o=wW,l=P0,d=qw,c=Hz,f=Kz,v=R0;function m(){e.exports=m=function(){return b},e.exports.__esModule=!0,e.exports.default=e.exports;var g,b={},S=Object.prototype,w=S.hasOwnProperty,k=r||function(W,F,B){W[F]=B.value},T=typeof a=="function"?a:{},D=T.iterator||"@@iterator",N=T.asyncIterator||"@@asyncIterator",L=T.toStringTag||"@@toStringTag";function A(W,F,B){return r(W,F,{value:B,enumerable:!0,configurable:!0,writable:!0}),W[F]}try{A({},"")}catch{A=function(B,Q,ie){return B[Q]=ie}}function R(W,F,B,Q){var ie=F&&F.prototype instanceof se?F:se,re=n(ie.prototype),Re=new Or(Q||[]);return k(re,"_invoke",{value:Cr(W,B,Re)}),re}function C(W,F,B){try{return{type:"normal",arg:W.call(F,B)}}catch(Q){return{type:"throw",arg:Q}}}b.wrap=R;var j="suspendedStart",O="suspendedYield",M="executing",H="completed",z={};function se(){}function _e(){}function be(){}var he={};A(he,D,function(){return this});var rt=s,ut=rt&&rt(rt(mt([])));ut&&ut!==S&&w.call(ut,D)&&(he=ut);var Ie=be.prototype=se.prototype=n(he);function Mt(W){var F;o(F=["next","throw","return"]).call(F,function(B){A(W,B,function(Q){return this._invoke(B,Q)})})}function ht(W,F){function B(ie,re,Re,Je){var nt=C(W[ie],W,re);if(nt.type!=="throw"){var mr=nt.arg,ar=mr.value;return ar&&t(ar)=="object"&&w.call(ar,"__await")?F.resolve(ar.__await).then(function(Ke){B("next",Ke,Re,Je)},function(Ke){B("throw",Ke,Re,Je)}):F.resolve(ar).then(function(Ke){mr.value=Ke,Re(mr)},function(Ke){return B("throw",Ke,Re,Je)})}Je(nt.arg)}var Q;k(this,"_invoke",{value:function(re,Re){function Je(){return new F(function(nt,mr){B(re,Re,nt,mr)})}return Q=Q?Q.then(Je,Je):Je()}})}function Cr(W,F,B){var Q=j;return function(ie,re){if(Q===M)throw new Error("Generator is already running");if(Q===H){if(ie==="throw")throw re;return{value:g,done:!0}}for(B.method=ie,B.arg=re;;){var Re=B.delegate;if(Re){var Je=vt(Re,B);if(Je){if(Je===z)continue;return Je}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(Q===j)throw Q=H,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);Q=M;var nt=C(W,F,B);if(nt.type==="normal"){if(Q=B.done?H:O,nt.arg===z)continue;return{value:nt.arg,done:B.done}}nt.type==="throw"&&(Q=H,B.method="throw",B.arg=nt.arg)}}}function vt(W,F){var B=F.method,Q=W.iterator[B];if(Q===g)return F.delegate=null,B==="throw"&&W.iterator.return&&(F.method="return",F.arg=g,vt(W,F),F.method==="throw")||B!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+B+"' method")),z;var ie=C(Q,W.iterator,F.arg);if(ie.type==="throw")return F.method="throw",F.arg=ie.arg,F.delegate=null,z;var re=ie.arg;return re?re.done?(F[W.resultName]=re.value,F.next=W.nextLoc,F.method!=="return"&&(F.method="next",F.arg=g),F.delegate=null,z):re:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,z)}function q(W){var F,B={tryLoc:W[0]};1 in W&&(B.catchLoc=W[1]),2 in W&&(B.finallyLoc=W[2],B.afterLoc=W[3]),l(F=this.tryEntries).call(F,B)}function vr(W){var F=W.completion||{};F.type="normal",delete F.arg,W.completion=F}function Or(W){this.tryEntries=[{tryLoc:"root"}],o(W).call(W,q,this),this.reset(!0)}function mt(W){if(W||W===""){var F=W[D];if(F)return F.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var B=-1,Q=function ie(){for(;++B<W.length;)if(w.call(W,B))return ie.value=W[B],ie.done=!1,ie;return ie.value=g,ie.done=!0,ie};return Q.next=Q}}throw new TypeError(t(W)+" is not iterable")}return _e.prototype=be,k(Ie,"constructor",{value:be,configurable:!0}),k(be,"constructor",{value:_e,configurable:!0}),_e.displayName=A(be,L,"GeneratorFunction"),b.isGeneratorFunction=function(W){var F=typeof W=="function"&&W.constructor;return!!F&&(F===_e||(F.displayName||F.name)==="GeneratorFunction")},b.mark=function(W){return d?d(W,be):(W.__proto__=be,A(W,L,"GeneratorFunction")),W.prototype=n(Ie),W},b.awrap=function(W){return{__await:W}},Mt(ht.prototype),A(ht.prototype,N,function(){return this}),b.AsyncIterator=ht,b.async=function(W,F,B,Q,ie){ie===void 0&&(ie=c);var re=new ht(R(W,F,B,Q),ie);return b.isGeneratorFunction(F)?re:re.next().then(function(Re){return Re.done?Re.value:re.next()})},Mt(Ie),A(Ie,L,"Generator"),A(Ie,D,function(){return this}),A(Ie,"toString",function(){return"[object Generator]"}),b.keys=function(W){var F=Object(W),B=[];for(var Q in F)l(B).call(B,Q);return f(B).call(B),function ie(){for(;B.length;){var re=B.pop();if(re in F)return ie.value=re,ie.done=!1,ie}return ie.done=!0,ie}},b.values=mt,Or.prototype={constructor:Or,reset:function(F){var B;if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,o(B=this.tryEntries).call(B,vr),!F)for(var Q in this)Q.charAt(0)==="t"&&w.call(this,Q)&&!isNaN(+v(Q).call(Q,1))&&(this[Q]=g)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var B=this;function Q(mr,ar){return Re.type="throw",Re.arg=F,B.next=mr,ar&&(B.method="next",B.arg=g),!!ar}for(var ie=this.tryEntries.length-1;ie>=0;--ie){var re=this.tryEntries[ie],Re=re.completion;if(re.tryLoc==="root")return Q("end");if(re.tryLoc<=this.prev){var Je=w.call(re,"catchLoc"),nt=w.call(re,"finallyLoc");if(Je&&nt){if(this.prev<re.catchLoc)return Q(re.catchLoc,!0);if(this.prev<re.finallyLoc)return Q(re.finallyLoc)}else if(Je){if(this.prev<re.catchLoc)return Q(re.catchLoc,!0)}else{if(!nt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return Q(re.finallyLoc)}}}},abrupt:function(F,B){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var ie=this.tryEntries[Q];if(ie.tryLoc<=this.prev&&w.call(ie,"finallyLoc")&&this.prev<ie.finallyLoc){var re=ie;break}}re&&(F==="break"||F==="continue")&&re.tryLoc<=B&&B<=re.finallyLoc&&(re=null);var Re=re?re.completion:{};return Re.type=F,Re.arg=B,re?(this.method="next",this.next=re.finallyLoc,z):this.complete(Re)},complete:function(F,B){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&B&&(this.next=B),z},finish:function(F){for(var B=this.tryEntries.length-1;B>=0;--B){var Q=this.tryEntries[B];if(Q.finallyLoc===F)return this.complete(Q.completion,Q.afterLoc),vr(Q),z}},catch:function(F){for(var B=this.tryEntries.length-1;B>=0;--B){var Q=this.tryEntries[B];if(Q.tryLoc===F){var ie=Q.completion;if(ie.type==="throw"){var re=ie.arg;vr(Q)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(F,B,Q){return this.delegate={iterator:mt(F),resultName:B,nextLoc:Q},this.method==="next"&&(this.arg=g),z}},b}e.exports=m,e.exports.__esModule=!0,e.exports.default=e.exports})(Zw);var qz=Zw.exports,dl=qz(),Xz=dl;try{regeneratorRuntime=dl}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=dl:Function("r","regeneratorRuntime = r")(dl)}var Rt=K(Xz),Qz=Ht,Zz=Ot,Jz=Ql,eU=Wt,tU=TypeError,rU=function(e){return function(t,r,a,n){Qz(r);var s=Zz(t),o=Jz(s),l=eU(s),d=e?l-1:0,c=e?-1:1;if(a<2)for(;;){if(d in o){n=o[d],d+=c;break}if(d+=c,e?d<0:l<=d)throw new tU("Reduce of empty array with no initial value")}for(;e?d>=0:l>d;d+=c)d in o&&(n=r(n,o[d],d,s));return n}},nU={left:rU(!1)},iU=X,aU=nU.left,sU=La,Jg=Na,oU=eo,lU=!oU&&Jg>79&&Jg<83,dU=lU||!sU("reduce");iU({target:"Array",proto:!0,forced:dU},{reduce:function(t){var r=arguments.length;return aU(this,t,r,r>1?arguments[1]:void 0)}});var cU=We,uU=cU("Array").reduce,hU=Oe,fU=uU,ou=Array.prototype,pU=function(e){var t=e.reduce;return e===ou||hU(ou,e)&&t===ou.reduce?fU:t},vU=pU,mU=vU,gU=mU,vd=K(gU),yU=Vn,_U=Wt,bU=rd,wU=Mn,$E=function(e,t,r,a,n,s,o,l){for(var d=n,c=0,f=o?wU(o,l):!1,v,m;c<a;)c in r&&(v=f?f(r[c],c,t):r[c],s>0&&yU(v)?(m=_U(v),d=$E(e,t,v,m,d,s-1)-1):(bU(d+1),e[d]=v),d++),c++;return d},EU=$E,SU=X,kU=EU,xU=Ht,TU=Ot,$U=Wt,DU=nd;SU({target:"Array",proto:!0},{flatMap:function(t){var r=TU(this),a=$U(r),n;return xU(t),n=DU(r,0),n.length=kU(n,r,r,a,0,1,t,arguments.length>1?arguments[1]:void 0),n}});var NU=We,CU=NU("Array").flatMap,OU=Oe,AU=CU,lu=Array.prototype,IU=function(e){var t=e.flatMap;return e===lu||OU(lu,e)&&t===lu.flatMap?AU:t},PU=IU,MU=PU,RU=MU,LU=K(RU),DE={exports:{}},VU=ge,FU=VU(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),YU=ge,jU=dt,BU=dn,ey=FU,cl=Object.isExtensible,HU=YU(function(){cl(1)}),WU=HU||ey?function(t){return!jU(t)||ey&&BU(t)==="ArrayBuffer"?!1:cl?cl(t):!0}:cl,GU=ge,zU=!GU(function(){return Object.isExtensible(Object.preventExtensions({}))}),UU=X,KU=Ee,qU=Ms,XU=dt,Af=tt,QU=Bt.f,ty=Bs,ZU=Jh,If=WU,JU=Kl,e9=zU,NE=!1,sn=JU("meta"),t9=0,Pf=function(e){QU(e,sn,{value:{objectID:"O"+t9++,weakData:{}}})},r9=function(e,t){if(!XU(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Af(e,sn)){if(!If(e))return"F";if(!t)return"E";Pf(e)}return e[sn].objectID},n9=function(e,t){if(!Af(e,sn)){if(!If(e))return!0;if(!t)return!1;Pf(e)}return e[sn].weakData},i9=function(e){return e9&&NE&&If(e)&&!Af(e,sn)&&Pf(e),e},a9=function(){s9.enable=function(){},NE=!0;var e=ty.f,t=KU([].splice),r={};r[sn]=1,e(r).length&&(ty.f=function(a){for(var n=e(a),s=0,o=n.length;s<o;s++)if(n[s]===sn){t(n,s,1);break}return n},UU({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ZU.f}))},s9=DE.exports={enable:a9,fastKey:r9,getWeakData:n9,onFreeze:i9};qU[sn]=!0;var CE=DE.exports,o9=X,l9=Ye,d9=CE,c9=ge,u9=un,h9=Si,f9=$f,p9=ze,v9=dt,m9=$a,g9=wi,y9=Bt.f,_9=hn.forEach,b9=ot,OE=Aa,w9=OE.set,E9=OE.getterFor,AE=function(e,t,r){var a=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,s=a?"set":"add",o=l9[e],l=o&&o.prototype,d={},c;if(!b9||!p9(o)||!(n||l.forEach&&!c9(function(){new o().entries().next()})))c=r.getConstructor(t,e,a,s),d9.enable();else{c=t(function(m,g){w9(f9(m,f),{type:e,collection:new o}),m9(g)||h9(g,m[s],{that:m,AS_ENTRIES:a})});var f=c.prototype,v=E9(e);_9(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(m){var g=m==="add"||m==="set";m in l&&!(n&&m==="clear")&&u9(f,m,function(b,S){var w=v(this).collection;if(!g&&n&&!v9(b))return m==="get"?void 0:!1;var k=w[m](b===0?0:b,S);return g?this:k})}),n||y9(f,"size",{configurable:!0,get:function(){return v(this).collection.size}})}return g9(c,e,!1,!0),d[e]=c,o9({global:!0,forced:!0},d),n||r.setStrong(c,e,a),c},S9=Pa,k9=function(e,t,r){for(var a in t)r&&r.unsafe&&e[a]?e[a]=t[a]:S9(e,a,t[a],r);return e},x9=bi,T9=ef,ry=k9,$9=Mn,D9=$f,N9=$a,C9=Si,O9=qh,qo=Xh,A9=nE,es=ot,ny=CE.fastKey,IE=Aa,iy=IE.set,du=IE.getterFor,PE={getConstructor:function(e,t,r,a){var n=e(function(c,f){D9(c,s),iy(c,{type:t,index:x9(null),first:void 0,last:void 0,size:0}),es||(c.size=0),N9(f)||C9(f,c[a],{that:c,AS_ENTRIES:r})}),s=n.prototype,o=du(t),l=function(c,f,v){var m=o(c),g=d(c,f),b,S;return g?g.value=v:(m.last=g={index:S=ny(f,!0),key:f,value:v,previous:b=m.last,next:void 0,removed:!1},m.first||(m.first=g),b&&(b.next=g),es?m.size++:c.size++,S!=="F"&&(m.index[S]=g)),c},d=function(c,f){var v=o(c),m=ny(f),g;if(m!=="F")return v.index[m];for(g=v.first;g;g=g.next)if(g.key===f)return g};return ry(s,{clear:function(){for(var f=this,v=o(f),m=v.index,g=v.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete m[g.index],g=g.next;v.first=v.last=void 0,es?v.size=0:f.size=0},delete:function(c){var f=this,v=o(f),m=d(f,c);if(m){var g=m.next,b=m.previous;delete v.index[m.index],m.removed=!0,b&&(b.next=g),g&&(g.previous=b),v.first===m&&(v.first=g),v.last===m&&(v.last=b),es?v.size--:f.size--}return!!m},forEach:function(f){for(var v=o(this),m=$9(f,arguments.length>1?arguments[1]:void 0),g;g=g?g.next:v.first;)for(m(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function(f){return!!d(this,f)}}),ry(s,r?{get:function(f){var v=d(this,f);return v&&v.value},set:function(f,v){return l(this,f===0?0:f,v)}}:{add:function(f){return l(this,f=f===0?0:f,f)}}),es&&T9(s,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,t,r){var a=t+" Iterator",n=du(t),s=du(a);O9(e,t,function(o,l){iy(this,{type:a,target:o,state:n(o),kind:l,last:void 0})},function(){for(var o=s(this),l=o.kind,d=o.last;d&&d.removed;)d=d.previous;return!o.target||!(o.last=d=d?d.next:o.state.first)?(o.target=void 0,qo(void 0,!0)):qo(l==="keys"?d.key:l==="values"?d.value:[d.key,d.value],!1)},r?"entries":"values",!r,!0),A9(t)}},I9=AE,P9=PE;I9("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},P9);var M9=xe,R9=M9.Map,L9=R9,V9=L9,F9=V9,ME=K(F9),Y9=AE,j9=PE;Y9("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},j9);var B9=xe,H9=B9.Set,W9=H9,G9=W9,z9=G9,xn=K(z9),U9=D0,ii=K(U9),K9=Zh,q9=K9,X9=q9,Q9=X9,Z9=Q9,J9=Z9,e7=J9,t7=e7,r7=t7,n7=r7,cu=K(n7),ay=Qb,i7=Math.floor,ph=function(e,t){var r=e.length,a=i7(r/2);return r<8?a7(e,t):s7(e,ph(ay(e,0,a),t),ph(ay(e,a),t),t)},a7=function(e,t){for(var r=e.length,a=1,n,s;a<r;){for(s=a,n=e[a];s&&t(e[s-1],n)>0;)e[s]=e[--s];s!==a++&&(e[s]=n)}return e},s7=function(e,t,r,a){for(var n=t.length,s=r.length,o=0,l=0;o<n||l<s;)e[o+l]=o<n&&l<s?a(t[o],r[l])<=0?t[o++]:r[l++]:o<n?t[o++]:r[l++];return e},o7=ph,l7=Pn,sy=l7.match(/firefox\/(\d+)/i),d7=!!sy&&+sy[1],c7=Pn,u7=/MSIE|Trident/.test(c7),h7=Pn,oy=h7.match(/AppleWebKit\/(\d+)\./),f7=!!oy&&+oy[1],p7=X,RE=Ee,v7=Ht,m7=Ot,ly=Wt,g7=K0,dy=fr,Mf=ge,y7=o7,_7=La,cy=d7,b7=u7,uy=Na,hy=f7,En=[],fy=RE(En.sort),w7=RE(En.push),E7=Mf(function(){En.sort(void 0)}),S7=Mf(function(){En.sort(null)}),k7=_7("sort"),LE=!Mf(function(){if(uy)return uy<70;if(!(cy&&cy>3)){if(b7)return!0;if(hy)return hy<603;var e="",t,r,a,n;for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)En.push({k:r+n,v:a})}for(En.sort(function(s,o){return o.v-s.v}),n=0;n<En.length;n++)r=En[n].k.charAt(0),e.charAt(e.length-1)!==r&&(e+=r);return e!=="DGBEFHACIJK"}}),x7=E7||!S7||!k7||!LE,T7=function(e){return function(t,r){return r===void 0?-1:t===void 0?1:e!==void 0?+e(t,r)||0:dy(t)>dy(r)?1:-1}};p7({target:"Array",proto:!0,forced:x7},{sort:function(t){t!==void 0&&v7(t);var r=m7(this);if(LE)return t===void 0?fy(r):fy(r,t);var a=[],n=ly(r),s,o;for(o=0;o<n;o++)o in r&&w7(a,r[o]);for(y7(a,T7(t)),s=ly(a),o=0;o<s;)r[o]=a[o++];for(;o<n;)g7(r,o++);return r}});var $7=We,D7=$7("Array").sort,N7=Oe,C7=D7,uu=Array.prototype,O7=function(e){var t=e.sort;return e===uu||N7(uu,e)&&t===uu.sort?C7:t},A7=O7,I7=A7,P7=I7,Ze=K(P7),M7=X,R7=hn.some,L7=La,V7=L7("some");M7({target:"Array",proto:!0,forced:!V7},{some:function(t){return R7(this,t,arguments.length>1?arguments[1]:void 0)}});var F7=We,Y7=F7("Array").some,j7=Oe,B7=Y7,hu=Array.prototype,H7=function(e){var t=e.some;return e===hu||j7(hu,e)&&t===hu.some?B7:t},W7=H7,G7=W7,z7=G7,Rf=K(z7),U7=We,K7=U7("Array").keys,q7=K7,X7=q7,Q7=cn,Z7=tt,J7=Oe,eK=X7,fu=Array.prototype,tK={DOMTokenList:!0,NodeList:!0},rK=function(e){var t=e.keys;return e===fu||J7(fu,e)&&t===fu.keys||Z7(tK,Q7(e))?eK:t},nK=rK,Kn=K(nK),iK=We,aK=iK("Array").values,sK=aK,oK=sK,lK=cn,dK=tt,cK=Oe,uK=oK,pu=Array.prototype,hK={DOMTokenList:!0,NodeList:!0},fK=function(e){var t=e.values;return e===pu||cK(pu,e)&&t===pu.values||dK(hK,lK(e))?uK:t},pK=fK,py=K(pK),vK=We,mK=vK("Array").entries,gK=mK,yK=gK,_K=cn,bK=tt,wK=Oe,EK=yK,vu=Array.prototype,SK={DOMTokenList:!0,NodeList:!0},kK=function(e){var t=e.entries;return e===vu||wK(vu,e)&&t===vu.entries||bK(SK,_K(e))?EK:t},xK=kK,TK=K(xK),$K=Kb,md=K($K),DK=X,NK=At,mu=Ia,CK=W0,vy=iE,OK=ir,my=dt,AK=bi,VE=ge,Lf=NK("Reflect","construct"),IK=Object.prototype,PK=[].push,FE=VE(function(){function e(){}return!(Lf(function(){},[],e)instanceof e)}),YE=!VE(function(){Lf(function(){})}),gy=FE||YE;DK({target:"Reflect",stat:!0,forced:gy,sham:gy},{construct:function(t,r){vy(t),OK(r);var a=arguments.length<3?t:vy(arguments[2]);if(YE&&!FE)return Lf(t,r,a);if(t===a){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var n=[null];return mu(PK,n,r),new(mu(CK,t,n))}var s=a.prototype,o=AK(my(s)?s:IK),l=mu(t,o,r);return my(l)?l:o}});var MK=xe,RK=MK.Reflect.construct,LK=RK,VK=LK,FK=VK,Z=K(FK),YK=xe,jK=YK.Object.getOwnPropertySymbols,BK=jK,HK=BK,WK=HK,$l=K(WK),jE={exports:{}},GK=X,zK=ge,UK=Dr,BE=_i.f,HE=ot,KK=!HE||zK(function(){BE(1)});GK({target:"Object",stat:!0,forced:KK,sham:!HE},{getOwnPropertyDescriptor:function(t,r){return BE(UK(t),r)}});var qK=xe,WE=qK.Object,XK=jE.exports=function(t,r){return WE.getOwnPropertyDescriptor(t,r)};WE.getOwnPropertyDescriptor.sham&&(XK.sham=!0);var QK=jE.exports,ZK=QK,JK=ZK,eq=JK,gd=K(eq),tq=X,rq=ot,nq=lf,iq=Dr,aq=_i,sq=Ra;tq({target:"Object",stat:!0,sham:!rq},{getOwnPropertyDescriptors:function(t){for(var r=iq(t),a=aq.f,n=nq(r),s={},o=0,l,d;n.length>o;)d=a(r,l=n[o++]),d!==void 0&&sq(s,l,d);return s}});var oq=xe,lq=oq.Object.getOwnPropertyDescriptors,dq=lq,cq=dq,uq=cq,Dl=K(uq),GE={exports:{}},hq=X,fq=ot,yy=Zl.f;hq({target:"Object",stat:!0,forced:Object.defineProperties!==yy,sham:!fq},{defineProperties:yy});var pq=xe,zE=pq.Object,vq=GE.exports=function(t,r){return zE.defineProperties(t,r)};zE.defineProperties.sham&&(vq.sham=!0);var mq=GE.exports,gq=mq,yq=gq,_q=yq,UE=K(_q);let Xo;const bq=new Uint8Array(16);function wq(){if(!Xo&&(Xo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xo(bq)}const ft=[];for(let e=0;e<256;++e)ft.push((e+256).toString(16).slice(1));function Eq(e,t=0){return ft[e[t+0]]+ft[e[t+1]]+ft[e[t+2]]+ft[e[t+3]]+"-"+ft[e[t+4]]+ft[e[t+5]]+"-"+ft[e[t+6]]+ft[e[t+7]]+"-"+ft[e[t+8]]+ft[e[t+9]]+"-"+ft[e[t+10]]+ft[e[t+11]]+ft[e[t+12]]+ft[e[t+13]]+ft[e[t+14]]+ft[e[t+15]]}const Sq=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var _y={randomUUID:Sq};function ai(e,t,r){if(_y.randomUUID&&!e)return _y.randomUUID();e=e||{};const a=e.random||(e.rng||wq)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,Eq(a)}var KE;function by(e,t){var r=st(e);if($l){var a=$l(e);t&&(a=te(a).call(a,function(n){return gd(e,n).enumerable})),r.push.apply(r,a)}return r}function wy(e){for(var t=1;t<arguments.length;t++){var r,a,n=arguments[t]!=null?arguments[t]:{};t%2?G(r=by(Object(n),!0)).call(r,function(s){me(e,s,n[s])}):Dl?UE(e,Dl(n)):G(a=by(Object(n))).call(a,function(s){md(e,s,gd(n,s))})}return e}function qE(e){var t=kq();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function kq(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}function Lt(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=xq(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
65
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function xq(e,t){var r;if(e){if(typeof e=="string")return Ey(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ey(e,t)}}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Tq(e){return new Dq(e)}var $q=function(){function e(t,r,a){var n,s,o;fe(this,e),me(this,"_source",void 0),me(this,"_transformers",void 0),me(this,"_target",void 0),me(this,"_listeners",{add:P(n=this._add).call(n,this),remove:P(s=this._remove).call(s,this),update:P(o=this._update).call(o,this)}),this._source=t,this._transformers=r,this._target=a}return pe(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(r){var a;return vd(a=this._transformers).call(a,function(n,s){return s(n)},r)}},{key:"_add",value:function(r,a){a!=null&&this._target.add(this._transformItems(this._source.get(a.items)))}},{key:"_update",value:function(r,a){a!=null&&this._target.update(this._transformItems(this._source.get(a.items)))}},{key:"_remove",value:function(r,a){a!=null&&this._target.remove(this._transformItems(a.oldData))}}]),e}(),Dq=function(){function e(t){fe(this,e),me(this,"_source",void 0),me(this,"_transformers",[]),this._source=t}return pe(e,[{key:"filter",value:function(r){return this._transformers.push(function(a){return te(a).call(a,r)}),this}},{key:"map",value:function(r){return this._transformers.push(function(a){return Se(a).call(a,r)}),this}},{key:"flatMap",value:function(r){return this._transformers.push(function(a){return LU(a).call(a,r)}),this}},{key:"to",value:function(r){return new $q(this._source,this._transformers,r)}}]),e}();function vh(e){return typeof e=="string"||typeof e=="number"}var Nq=function(){function e(t){fe(this,e),me(this,"delay",void 0),me(this,"max",void 0),me(this,"_queue",[]),me(this,"_timeout",null),me(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return pe(e,[{key:"setOptions",value:function(r){r&&typeof r.delay<"u"&&(this.delay=r.delay),r&&typeof r.max<"u"&&(this.max=r.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var r=this._extended.object,a=this._extended.methods,n=0;n<a.length;n++){var s=a[n];s.original?r[s.name]=s.original:delete r[s.name]}this._extended=null}}},{key:"replace",value:function(r,a){var n=this,s=r[a];if(!s)throw new Error("Method "+a+" undefined");r[a]=function(){for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];n.queue({args:l,fn:s,context:this})}}},{key:"queue",value:function(r){typeof r=="function"?this._queue.push({fn:r}):this._queue.push(r),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var r=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=_t(function(){r.flush()},this.delay))}},{key:"flush",value:function(){var r,a;G(r=xt(a=this._queue).call(a,0)).call(r,function(n){n.fn.apply(n.context||n.fn,n.args||[])})}}],[{key:"extend",value:function(r,a){var n=new e(a);if(r.flush!==void 0)throw new Error("Target object already has a property flush");r.flush=function(){n.flush()};var s=[{name:"flush",original:void 0}];if(a&&a.replace)for(var o=0;o<a.replace.length;o++){var l=a.replace[o];s.push({name:l,original:r[l]}),n.replace(r,l)}return n._extended={object:r,methods:s},n}}]),e}(),XE=function(){function e(){fe(this,e),me(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),me(this,"subscribe",e.prototype.on),me(this,"unsubscribe",e.prototype.off)}return pe(e,[{key:"_trigger",value:function(r,a,n){var s,o;if(r==="*")throw new Error("Cannot trigger event *");G(s=Me(o=[]).call(o,Fe(this._subscribers[r]),Fe(this._subscribers["*"]))).call(s,function(l){l(r,a,n??null)})}},{key:"on",value:function(r,a){typeof a=="function"&&this._subscribers[r].push(a)}},{key:"off",value:function(r,a){var n;this._subscribers[r]=te(n=this._subscribers[r]).call(n,function(s){return s!==a})}}]),e}();KE=ii;var Sy=function(){function e(t){fe(this,e),me(this,"_pairs",void 0),this._pairs=t}return pe(e,[{key:KE,value:Rt.mark(function t(){var r,a,n,s,o;return Rt.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:r=Lt(this._pairs),d.prev=1,r.s();case 3:if((a=r.n()).done){d.next=9;break}return n=yt(a.value,2),s=n[0],o=n[1],d.next=7,[s,o];case 7:d.next=3;break;case 9:d.next=14;break;case 11:d.prev=11,d.t0=d.catch(1),r.e(d.t0);case 14:return d.prev=14,r.f(),d.finish(14);case 17:case"end":return d.stop()}},t,this,[[1,11,14,17]])})},{key:"entries",value:Rt.mark(function t(){var r,a,n,s,o;return Rt.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:r=Lt(this._pairs),d.prev=1,r.s();case 3:if((a=r.n()).done){d.next=9;break}return n=yt(a.value,2),s=n[0],o=n[1],d.next=7,[s,o];case 7:d.next=3;break;case 9:d.next=14;break;case 11:d.prev=11,d.t0=d.catch(1),r.e(d.t0);case 14:return d.prev=14,r.f(),d.finish(14);case 17:case"end":return d.stop()}},t,this,[[1,11,14,17]])})},{key:"keys",value:Rt.mark(function t(){var r,a,n,s;return Rt.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:r=Lt(this._pairs),l.prev=1,r.s();case 3:if((a=r.n()).done){l.next=9;break}return n=yt(a.value,1),s=n[0],l.next=7,s;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),r.e(l.t0);case 14:return l.prev=14,r.f(),l.finish(14);case 17:case"end":return l.stop()}},t,this,[[1,11,14,17]])})},{key:"values",value:Rt.mark(function t(){var r,a,n,s;return Rt.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:r=Lt(this._pairs),l.prev=1,r.s();case 3:if((a=r.n()).done){l.next=9;break}return n=yt(a.value,2),s=n[1],l.next=7,s;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),r.e(l.t0);case 14:return l.prev=14,r.f(),l.finish(14);case 17:case"end":return l.stop()}},t,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var r;return Se(r=Fe(this._pairs)).call(r,function(a){return a[0]})}},{key:"toItemArray",value:function(){var r;return Se(r=Fe(this._pairs)).call(r,function(a){return a[1]})}},{key:"toEntryArray",value:function(){return Fe(this._pairs)}},{key:"toObjectMap",value:function(){var r=Ks(null),a=Lt(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=yt(n.value,2),o=s[0],l=s[1];r[o]=l}}catch(d){a.e(d)}finally{a.f()}return r}},{key:"toMap",value:function(){return new ME(this._pairs)}},{key:"toIdSet",value:function(){return new xn(this.toIdArray())}},{key:"toItemSet",value:function(){return new xn(this.toItemArray())}},{key:"cache",value:function(){return new e(Fe(this._pairs))}},{key:"distinct",value:function(r){var a=new xn,n=Lt(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=yt(s.value,2),l=o[0],d=o[1];a.add(r(d,l))}}catch(c){n.e(c)}finally{n.f()}return a}},{key:"filter",value:function(r){var a=this._pairs;return new e(me({},ii,Rt.mark(function n(){var s,o,l,d,c;return Rt.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:s=Lt(a),v.prev=1,s.s();case 3:if((o=s.n()).done){v.next=10;break}if(l=yt(o.value,2),d=l[0],c=l[1],!r(c,d)){v.next=8;break}return v.next=8,[d,c];case 8:v.next=3;break;case 10:v.next=15;break;case 12:v.prev=12,v.t0=v.catch(1),s.e(v.t0);case 15:return v.prev=15,s.f(),v.finish(15);case 18:case"end":return v.stop()}},n,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(r){var a=Lt(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=yt(n.value,2),o=s[0],l=s[1];r(l,o)}}catch(d){a.e(d)}finally{a.f()}}},{key:"map",value:function(r){var a=this._pairs;return new e(me({},ii,Rt.mark(function n(){var s,o,l,d,c;return Rt.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:s=Lt(a),v.prev=1,s.s();case 3:if((o=s.n()).done){v.next=9;break}return l=yt(o.value,2),d=l[0],c=l[1],v.next=7,[d,r(c,d)];case 7:v.next=3;break;case 9:v.next=14;break;case 11:v.prev=11,v.t0=v.catch(1),s.e(v.t0);case 14:return v.prev=14,s.f(),v.finish(14);case 17:case"end":return v.stop()}},n,null,[[1,11,14,17]])})))}},{key:"max",value:function(r){var a=cu(this._pairs),n=a.next();if(n.done)return null;for(var s=n.value[1],o=r(n.value[1],n.value[0]);!(n=a.next()).done;){var l=yt(n.value,2),d=l[0],c=l[1],f=r(c,d);f>o&&(o=f,s=c)}return s}},{key:"min",value:function(r){var a=cu(this._pairs),n=a.next();if(n.done)return null;for(var s=n.value[1],o=r(n.value[1],n.value[0]);!(n=a.next()).done;){var l=yt(n.value,2),d=l[0],c=l[1],f=r(c,d);f<o&&(o=f,s=c)}return s}},{key:"reduce",value:function(r,a){var n=Lt(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=yt(s.value,2),l=o[0],d=o[1];a=r(a,d,l)}}catch(c){n.e(c)}finally{n.f()}return a}},{key:"sort",value:function(r){var a=this;return new e(me({},ii,function(){var n;return cu(Ze(n=Fe(a._pairs)).call(n,function(s,o){var l=yt(s,2),d=l[0],c=l[1],f=yt(o,2),v=f[0],m=f[1];return r(c,m,d,v)}))}))}}]),e}();function Cq(e,t){return e[t]==null&&(e[t]=ai()),e}var pi=function(e){It(r,e);var t=qE(r);function r(a,n){var s;return fe(this,r),s=t.call(this),me(Ne(s),"flush",void 0),me(Ne(s),"length",void 0),me(Ne(s),"_options",void 0),me(Ne(s),"_data",void 0),me(Ne(s),"_idProp",void 0),me(Ne(s),"_queue",null),a&&!ae(a)&&(n=a,a=[]),s._options=n||{},s._data=new ME,s.length=0,s._idProp=s._options.fieldId||"id",a&&a.length&&s.add(a),s.setOptions(n),s}return pe(r,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(n){n&&n.queue!==void 0&&(n.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Nq.extend(this,{replace:["add","update","remove"]})),n.queue&&ne(n.queue)==="object"&&this._queue.setOptions(n.queue)))}},{key:"add",value:function(n,s){var o=this,l=[],d;if(ae(n)){var c=Se(n).call(n,function(m){return m[o._idProp]});if(Rf(c).call(c,function(m){return o._data.has(m)}))throw new Error("A duplicate id was found in the parameter array.");for(var f=0,v=n.length;f<v;f++)d=this._addItem(n[f]),l.push(d)}else if(n&&ne(n)==="object")d=this._addItem(n),l.push(d);else throw new Error("Unknown dataType");return l.length&&this._trigger("add",{items:l},s),l}},{key:"update",value:function(n,s){var o=this,l=[],d=[],c=[],f=[],v=this._idProp,m=function(k){var T=k[v];if(T!=null&&o._data.has(T)){var D=k,N=an({},o._data.get(T)),L=o._updateItem(D);d.push(L),f.push(D),c.push(N)}else{var A=o._addItem(k);l.push(A)}};if(ae(n))for(var g=0,b=n.length;g<b;g++)n[g]&&ne(n[g])==="object"?m(n[g]):console.warn("Ignoring input item, which is not an object at index "+g);else if(n&&ne(n)==="object")m(n);else throw new Error("Unknown dataType");if(l.length&&this._trigger("add",{items:l},s),d.length){var S={items:d,oldData:c,data:f};this._trigger("update",S,s)}return Me(l).call(l,d)}},{key:"updateOnly",value:function(n,s){var o,l=this;ae(n)||(n=[n]);var d=Se(o=Se(n).call(n,function(f){var v=l._data.get(f[l._idProp]);if(v==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:v,update:f}})).call(o,function(f){var v=f.oldData,m=f.update,g=v[l._idProp],b=Vw(v,m);return l._data.set(g,b),{id:g,oldData:v,updatedData:b}});if(d.length){var c={items:Se(d).call(d,function(f){return f.id}),oldData:Se(d).call(d,function(f){return f.oldData}),data:Se(d).call(d,function(f){return f.updatedData})};return this._trigger("update",c,s),c.items}else return[]}},{key:"get",value:function(n,s){var o=void 0,l=void 0,d=void 0;vh(n)?(o=n,d=s):ae(n)?(l=n,d=s):d=n;var c=d&&d.returnType==="Object"?"Object":"Array",f=d&&te(d),v=[],m=void 0,g=void 0,b=void 0;if(o!=null)m=this._data.get(o),m&&f&&!f(m)&&(m=void 0);else if(l!=null)for(var S=0,w=l.length;S<w;S++)m=this._data.get(l[S]),m!=null&&(!f||f(m))&&v.push(m);else{var k;g=Fe(Kn(k=this._data).call(k));for(var T=0,D=g.length;T<D;T++)b=g[T],m=this._data.get(b),m!=null&&(!f||f(m))&&v.push(m)}if(d&&d.order&&o==null&&this._sort(v,d.order),d&&d.fields){var N=d.fields;if(o!=null&&m!=null)m=this._filterFields(m,N);else for(var L=0,A=v.length;L<A;L++)v[L]=this._filterFields(v[L],N)}if(c=="Object"){for(var R={},C=0,j=v.length;C<j;C++){var O=v[C],M=O[this._idProp];R[M]=O}return R}else if(o!=null){var H;return(H=m)!==null&&H!==void 0?H:null}else return v}},{key:"getIds",value:function(n){var s=this._data,o=n&&te(n),l=n&&n.order,d=Fe(Kn(s).call(s)),c=[];if(o)if(l){for(var f=[],v=0,m=d.length;v<m;v++){var g=d[v],b=this._data.get(g);b!=null&&o(b)&&f.push(b)}this._sort(f,l);for(var S=0,w=f.length;S<w;S++)c.push(f[S][this._idProp])}else for(var k=0,T=d.length;k<T;k++){var D=d[k],N=this._data.get(D);N!=null&&o(N)&&c.push(N[this._idProp])}else if(l){for(var L=[],A=0,R=d.length;A<R;A++){var C=d[A];L.push(s.get(C))}this._sort(L,l);for(var j=0,O=L.length;j<O;j++)c.push(L[j][this._idProp])}else for(var M=0,H=d.length;M<H;M++){var z=d[M],se=s.get(z);se!=null&&c.push(se[this._idProp])}return c}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(n,s){var o=s&&te(s),l=this._data,d=Fe(Kn(l).call(l));if(s&&s.order)for(var c=this.get(s),f=0,v=c.length;f<v;f++){var m=c[f],g=m[this._idProp];n(m,g)}else for(var b=0,S=d.length;b<S;b++){var w=d[b],k=this._data.get(w);k!=null&&(!o||o(k))&&n(k,w)}}},{key:"map",value:function(n,s){for(var o=s&&te(s),l=[],d=this._data,c=Fe(Kn(d).call(d)),f=0,v=c.length;f<v;f++){var m=c[f],g=this._data.get(m);g!=null&&(!o||o(g))&&l.push(n(g,m))}return s&&s.order&&this._sort(l,s.order),l}},{key:"_filterFields",value:function(n,s){var o;return n&&vd(o=ae(s)?s:st(s)).call(o,function(l,d){return l[d]=n[d],l},{})}},{key:"_sort",value:function(n,s){if(typeof s=="string"){var o=s;Ze(n).call(n,function(l,d){var c=l[o],f=d[o];return c>f?1:c<f?-1:0})}else if(typeof s=="function")Ze(n).call(n,s);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(n,s){for(var o=[],l=[],d=ae(n)?n:[n],c=0,f=d.length;c<f;c++){var v=this._remove(d[c]);if(v){var m=v[this._idProp];m!=null&&(o.push(m),l.push(v))}}return o.length&&this._trigger("remove",{items:o,oldData:l},s),o}},{key:"_remove",value:function(n){var s;if(vh(n)?s=n:n&&ne(n)==="object"&&(s=n[this._idProp]),s!=null&&this._data.has(s)){var o=this._data.get(s)||null;return this._data.delete(s),--this.length,o}return null}},{key:"clear",value:function(n){for(var s,o=Fe(Kn(s=this._data).call(s)),l=[],d=0,c=o.length;d<c;d++)l.push(this._data.get(o[d]));return this._data.clear(),this.length=0,this._trigger("remove",{items:o,oldData:l},n),o}},{key:"max",value:function(n){var s,o=null,l=null,d=Lt(py(s=this._data).call(s)),c;try{for(d.s();!(c=d.n()).done;){var f=c.value,v=f[n];typeof v=="number"&&(l==null||v>l)&&(o=f,l=v)}}catch(m){d.e(m)}finally{d.f()}return o||null}},{key:"min",value:function(n){var s,o=null,l=null,d=Lt(py(s=this._data).call(s)),c;try{for(d.s();!(c=d.n()).done;){var f=c.value,v=f[n];typeof v=="number"&&(l==null||v<l)&&(o=f,l=v)}}catch(m){d.e(m)}finally{d.f()}return o||null}},{key:"distinct",value:function(n){for(var s=this._data,o=Fe(Kn(s).call(s)),l=[],d=0,c=0,f=o.length;c<f;c++){for(var v=o[c],m=s.get(v),g=m[n],b=!1,S=0;S<d;S++)if(l[S]==g){b=!0;break}!b&&g!==void 0&&(l[d]=g,d++)}return l}},{key:"_addItem",value:function(n){var s=Cq(n,this._idProp),o=s[this._idProp];if(this._data.has(o))throw new Error("Cannot add item: item with id "+o+" already exists");return this._data.set(o,s),++this.length,o}},{key:"_updateItem",value:function(n){var s=n[this._idProp];if(s==null)throw new Error("Cannot update item: item has no id (item: "+Ft(n)+")");var o=this._data.get(s);if(!o)throw new Error("Cannot update item: no item with id "+s+" found");return this._data.set(s,wy(wy({},o),n)),s}},{key:"stream",value:function(n){if(n){var s=this._data;return new Sy(me({},ii,Rt.mark(function l(){var d,c,f,v;return Rt.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:d=Lt(n),g.prev=1,d.s();case 3:if((c=d.n()).done){g.next=11;break}if(f=c.value,v=s.get(f),v==null){g.next=9;break}return g.next=9,[f,v];case 9:g.next=3;break;case 11:g.next=16;break;case 13:g.prev=13,g.t0=g.catch(1),d.e(g.t0);case 16:return g.prev=16,d.f(),g.finish(16);case 19:case"end":return g.stop()}},l,null,[[1,13,16,19]])})))}else{var o;return new Sy(me({},ii,P(o=TK(this._data)).call(o,this._data)))}}}]),r}(XE),Oq=function(e){It(r,e);var t=qE(r);function r(a,n){var s,o;return fe(this,r),o=t.call(this),me(Ne(o),"length",0),me(Ne(o),"_listener",void 0),me(Ne(o),"_data",void 0),me(Ne(o),"_ids",new xn),me(Ne(o),"_options",void 0),o._options=n||{},o._listener=P(s=o._onEvent).call(s,Ne(o)),o.setData(a),o}return pe(r,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(n){if(this._data){this._data.off&&this._data.off("*",this._listener);var s=this._data.getIds({filter:te(this._options)}),o=this._data.get(s);this._ids.clear(),this.length=0,this._trigger("remove",{items:s,oldData:o})}if(n!=null){this._data=n;for(var l=this._data.getIds({filter:te(this._options)}),d=0,c=l.length;d<c;d++){var f=l[d];this._ids.add(f)}this.length=l.length,this._trigger("add",{items:l})}else this._data=new pi;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var n=this._data.getIds({filter:te(this._options)}),s=Fe(this._ids),o={},l=[],d=[],c=[],f=0,v=n.length;f<v;f++){var m=n[f];o[m]=!0,this._ids.has(m)||(l.push(m),this._ids.add(m))}for(var g=0,b=s.length;g<b;g++){var S=s[g],w=this._data.get(S);w==null?console.error("If you see this, report it please."):o[S]||(d.push(S),c.push(w),this._ids.delete(S))}this.length+=l.length-d.length,l.length&&this._trigger("add",{items:l}),d.length&&this._trigger("remove",{items:d,oldData:c})}},{key:"get",value:function(n,s){if(this._data==null)return null;var o=null,l;vh(n)||ae(n)?(o=n,l=s):l=n;var d=an({},this._options,l),c=te(this._options),f=l&&te(l);return c&&f&&(d.filter=function(v){return c(v)&&f(v)}),o==null?this._data.get(d):this._data.get(o,d)}},{key:"getIds",value:function(n){if(this._data.length){var s=te(this._options),o=n!=null?te(n):null,l;return o?s?l=function(c){return s(c)&&o(c)}:l=o:l=s,this._data.getIds({filter:l,order:n&&n.order})}else return[]}},{key:"forEach",value:function(n,s){if(this._data){var o,l=te(this._options),d=s&&te(s),c;d?l?c=function(v){return l(v)&&d(v)}:c=d:c=l,G(o=this._data).call(o,n,{filter:c,order:s&&s.order})}}},{key:"map",value:function(n,s){if(this._data){var o,l=te(this._options),d=s&&te(s),c;return d?l?c=function(v){return l(v)&&d(v)}:c=d:c=l,Se(o=this._data).call(o,n,{filter:c,order:s&&s.order})}else return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(n){var s;return this._data.stream(n||me({},ii,P(s=Kn(this._ids)).call(s,this._ids)))}},{key:"dispose",value:function(){var n;(n=this._data)!==null&&n!==void 0&&n.off&&this._data.off("*",this._listener);var s="This data view has already been disposed of.",o={get:function(){throw new Error(s)},set:function(){throw new Error(s)},configurable:!1},l=Lt(F0(r.prototype)),d;try{for(l.s();!(d=l.n()).done;){var c=d.value;md(this,c,o)}}catch(f){l.e(f)}finally{l.f()}}},{key:"_onEvent",value:function(n,s,o){if(!(!s||!s.items||!this._data)){var l=s.items,d=[],c=[],f=[],v=[],m=[],g=[];switch(n){case"add":for(var b=0,S=l.length;b<S;b++){var w=l[b],k=this.get(w);k&&(this._ids.add(w),d.push(w))}break;case"update":for(var T=0,D=l.length;T<D;T++){var N=l[T],L=this.get(N);L?this._ids.has(N)?(c.push(N),m.push(s.data[T]),v.push(s.oldData[T])):(this._ids.add(N),d.push(N)):this._ids.has(N)&&(this._ids.delete(N),f.push(N),g.push(s.oldData[T]))}break;case"remove":for(var A=0,R=l.length;A<R;A++){var C=l[A];this._ids.has(C)&&(this._ids.delete(C),f.push(C),g.push(s.oldData[A]))}break}this.length+=d.length-f.length,d.length&&this._trigger("add",{items:d},o),c.length&&this._trigger("update",{items:c,oldData:v,data:m},o),f.length&&this._trigger("remove",{items:f,oldData:g},o)}}}]),r}(XE);function Aq(e,t){return ne(t)==="object"&&t!==null&&e===t.idProp&&typeof t.add=="function"&&typeof t.clear=="function"&&typeof t.distinct=="function"&&typeof G(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof Se(t)=="function"&&typeof t.max=="function"&&typeof t.min=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.remove=="function"&&typeof t.setOptions=="function"&&typeof t.stream=="function"&&typeof t.update=="function"&&typeof t.updateOnly=="function"}function Iq(e,t){return ne(t)==="object"&&t!==null&&e===t.idProp&&typeof G(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof Se(t)=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.stream=="function"&&Aq(e,t.getDataSet())}var Pq=typeof window<"u"&&window.moment||$r(),Tt=K(Pq),Mq=$r(),_r=K(Mq),mh={exports:{}},Ge={},gh={exports:{}},ki={};function QE(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function Rq(e,t,r){}function Lq(e,t,r){}var Vq=/javascript\s*\:/img;function Fq(e,t){return Vq.test(t)?"":t}ki.whiteList=QE();ki.getDefaultWhiteList=QE;ki.onAttr=Rq;ki.onIgnoreAttr=Lq;ki.safeAttrValue=Fq;var Yq={indexOf:function(e,t){var r,a;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,a=e.length;r<a;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var a,n;if(Array.prototype.forEach)return e.forEach(t,r);for(a=0,n=e.length;a<n;a++)t.call(r,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},ts=Yq;function jq(e,t){e=ts.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,a=!1,n=0,s=0,o="";function l(){if(!a){var f=ts.trim(e.slice(n,s)),v=f.indexOf(":");if(v!==-1){var m=ts.trim(f.slice(0,v)),g=ts.trim(f.slice(v+1));if(m){var b=t(n,o.length,m,g,f);b&&(o+=b+"; ")}}}n=s+1}for(;s<r;s++){var d=e[s];if(d==="/"&&e[s+1]==="*"){var c=e.indexOf("*/",s+2);if(c===-1)break;s=c+1,n=s+1,a=!1}else d==="("?a=!0:d===")"?a=!1:d===";"?a||l():d===`
|
66
|
-
`&&l()}return ts.trim(o)}var Bq=jq,Qo=ki,Hq=Bq;function ky(e){return e==null}function Wq(e){var t={};for(var r in e)t[r]=e[r];return t}function ZE(e){e=Wq(e||{}),e.whiteList=e.whiteList||Qo.whiteList,e.onAttr=e.onAttr||Qo.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Qo.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Qo.safeAttrValue,this.options=e}ZE.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,a=r.whiteList,n=r.onAttr,s=r.onIgnoreAttr,o=r.safeAttrValue,l=Hq(e,function(d,c,f,v,m){var g=a[f],b=!1;if(g===!0?b=g:typeof g=="function"?b=g(v):g instanceof RegExp&&(b=g.test(v)),b!==!0&&(b=!1),v=o(f,v),!!v){var S={position:c,sourcePosition:d,source:m,isWhite:b};if(b){var w=n(f,v,S);return ky(w)?f+":"+v:w}else{var w=s(f,v,S);if(!ky(w))return w}}});return l};var Gq=ZE;(function(e,t){var r=ki,a=Gq;function n(o,l){var d=new a(l);return d.process(o)}t=e.exports=n,t.FilterCSS=a;for(var s in r)t[s]=r[s];typeof window<"u"&&(window.filterCSS=e.exports)})(gh,gh.exports);var Vf=gh.exports,Ff={indexOf:function(e,t){var r,a;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,a=e.length;r<a;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var a,n;if(Array.prototype.forEach)return e.forEach(t,r);for(a=0,n=e.length;a<n;a++)t.call(r,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},zq=Vf.FilterCSS,Uq=Vf.getDefaultWhiteList,Nl=Ff;function JE(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var e1=new zq;function Kq(e,t,r){}function qq(e,t,r){}function Xq(e,t,r){}function Qq(e,t,r){}function t1(e){return e.replace(Jq,"<").replace(eX,">")}function Zq(e,t,r,a){if(r=o1(r),t==="href"||t==="src"){if(r=Nl.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(Zo.lastIndex=0,Zo.test(r))return""}else if(t==="style"){if(xy.lastIndex=0,xy.test(r)||(Ty.lastIndex=0,Ty.test(r)&&(Zo.lastIndex=0,Zo.test(r))))return"";a!==!1&&(a=a||e1,r=a.process(r))}return r=l1(r),r}var Jq=/</g,eX=/>/g,tX=/"/g,rX=/"/g,nX=/&#([a-zA-Z0-9]*);?/gim,iX=/:?/gim,aX=/&newline;?/gim,Zo=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,xy=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Ty=/u\s*r\s*l\s*\(.*/gi;function r1(e){return e.replace(tX,""")}function n1(e){return e.replace(rX,'"')}function i1(e){return e.replace(nX,function(r,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function a1(e){return e.replace(iX,":").replace(aX," ")}function s1(e){for(var t="",r=0,a=e.length;r<a;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Nl.trim(t)}function o1(e){return e=n1(e),e=i1(e),e=a1(e),e=s1(e),e}function l1(e){return e=r1(e),e=t1(e),e}function sX(){return""}function oX(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function a(o){return r?!0:Nl.indexOf(e,o)!==-1}var n=[],s=!1;return{onIgnoreTag:function(o,l,d){if(a(o))if(d.isClosing){var c="[/removed]",f=d.position+c.length;return n.push([s!==!1?s:d.position,f]),s=!1,c}else return s||(s=d.position),"[removed]";else return t(o,l,d)},remove:function(o){var l="",d=0;return Nl.forEach(n,function(c){l+=o.slice(d,c[0]),d=c[1]}),l+=o.slice(d),l}}}function lX(e){for(var t="",r=0;r<e.length;){var a=e.indexOf("<!--",r);if(a===-1){t+=e.slice(r);break}t+=e.slice(r,a);var n=e.indexOf("-->",a);if(n===-1)break;r=n+3}return t}function dX(e){var t=e.split("");return t=t.filter(function(r){var a=r.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),t.join("")}Ge.whiteList=JE();Ge.getDefaultWhiteList=JE;Ge.onTag=Kq;Ge.onIgnoreTag=qq;Ge.onTagAttr=Xq;Ge.onIgnoreTagAttr=Qq;Ge.safeAttrValue=Zq;Ge.escapeHtml=t1;Ge.escapeQuote=r1;Ge.unescapeQuote=n1;Ge.escapeHtmlEntities=i1;Ge.escapeDangerHtml5Entities=a1;Ge.clearNonPrintableCharacter=s1;Ge.friendlyAttrValue=o1;Ge.escapeAttrValue=l1;Ge.onIgnoreTagStripAll=sX;Ge.StripTagBody=oX;Ge.stripCommentTag=lX;Ge.stripBlankChar=dX;Ge.cssFilter=e1;Ge.getDefaultCSSWhiteList=Uq;var yd={},bn=Ff;function cX(e){var t=bn.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=bn.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function uX(e){return e.slice(0,2)==="</"}function hX(e,t,r){var a="",n=0,s=!1,o=!1,l=0,d=e.length,c="",f="";e:for(l=0;l<d;l++){var v=e.charAt(l);if(s===!1){if(v==="<"){s=l;continue}}else if(o===!1){if(v==="<"){a+=r(e.slice(n,l)),s=l,n=l;continue}if(v===">"||l===d-1){a+=r(e.slice(n,s)),f=e.slice(s,l+1),c=cX(f),a+=t(s,a.length,c,f,uX(f)),n=l+1,s=!1;continue}if(v==='"'||v==="'")for(var m=1,g=e.charAt(l-m);g.trim()===""||g==="=";){if(g==="="){o=v;continue e}g=e.charAt(l-++m)}}else if(v===o){o=!1;continue}}return n<d&&(a+=r(e.substr(n))),a}var fX=/[^a-zA-Z0-9\\_:.-]/gim;function pX(e,t){var r=0,a=0,n=[],s=!1,o=e.length;function l(m,g){if(m=bn.trim(m),m=m.replace(fX,"").toLowerCase(),!(m.length<1)){var b=t(m,g||"");b&&n.push(b)}}for(var d=0;d<o;d++){var c=e.charAt(d),f,v;if(s===!1&&c==="="){s=e.slice(r,d),r=d+1,a=e.charAt(r)==='"'||e.charAt(r)==="'"?r:mX(e,d+1);continue}if(s!==!1&&d===a){if(v=e.indexOf(c,d+1),v===-1)break;f=bn.trim(e.slice(a+1,v)),l(s,f),s=!1,d=v,r=d+1;continue}if(/\s|\n|\t/.test(c))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(v=vX(e,d),v===-1){f=bn.trim(e.slice(r,d)),l(f),s=!1,r=d+1;continue}else{d=v-1;continue}else if(v=gX(e,d-1),v===-1){f=bn.trim(e.slice(r,d)),f=$y(f),l(s,f),s=!1,r=d+1;continue}else continue}return r<e.length&&(s===!1?l(e.slice(r)):l(s,$y(bn.trim(e.slice(r))))),bn.trim(n.join(" "))}function vX(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function mX(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function gX(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function yX(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function $y(e){return yX(e)?e.substr(1,e.length-2):e}yd.parseTag=hX;yd.parseAttr=pX;var _X=Vf.FilterCSS,wr=Ge,d1=yd,bX=d1.parseTag,wX=d1.parseAttr,ul=Ff;function Jo(e){return e==null}function EX(e){var t=ul.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=ul.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=ul.trim(e.slice(0,-1))),{html:e,closing:r}}function SX(e){var t={};for(var r in e)t[r]=e[r];return t}function kX(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(a){return a.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function c1(e){e=SX(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=wr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=kX(e.whiteList||e.allowList):e.whiteList=wr.whiteList,e.onTag=e.onTag||wr.onTag,e.onTagAttr=e.onTagAttr||wr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||wr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||wr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||wr.safeAttrValue,e.escapeHtml=e.escapeHtml||wr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new _X(e.css))}c1.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,a=r.whiteList,n=r.onTag,s=r.onIgnoreTag,o=r.onTagAttr,l=r.onIgnoreTagAttr,d=r.safeAttrValue,c=r.escapeHtml,f=t.cssFilter;r.stripBlankChar&&(e=wr.stripBlankChar(e)),r.allowCommentTag||(e=wr.stripCommentTag(e));var v=!1;r.stripIgnoreTagBody&&(v=wr.StripTagBody(r.stripIgnoreTagBody,s),s=v.onIgnoreTag);var m=bX(e,function(g,b,S,w,k){var T={sourcePosition:g,position:b,isClosing:k,isWhite:Object.prototype.hasOwnProperty.call(a,S)},D=n(S,w,T);if(!Jo(D))return D;if(T.isWhite){if(T.isClosing)return"</"+S+">";var N=EX(w),L=a[S],A=wX(N.html,function(R,C){var j=ul.indexOf(L,R)!==-1,O=o(S,R,C,j);return Jo(O)?j?(C=d(S,R,C,f),C?R+'="'+C+'"':R):(O=l(S,R,C,j),Jo(O)?void 0:O):O});return w="<"+S,A&&(w+=" "+A),N.closing&&(w+=" /"),w+=">",w}else return D=s(S,w,T),Jo(D)?c(w):D},c);return v&&(m=v.remove(m)),m};var xX=c1;(function(e,t){var r=Ge,a=yd,n=xX;function s(l,d){var c=new n(d);return c.process(l)}t=e.exports=s,t.filterXSS=s,t.FilterXSS=n,function(){for(var l in r)t[l]=r[l];for(var d in a)t[d]=a[d]}(),typeof window<"u"&&(window.filterXSS=e.exports);function o(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=e.exports)})(mh,mh.exports);var TX=mh.exports,$X=K(TX);function Dy(e,t){var r=st(e);if($l){var a=$l(e);t&&(a=te(a).call(a,function(n){return gd(e,n).enumerable})),r.push.apply(r,a)}return r}function Ny(e){for(var t=1;t<arguments.length;t++){var r,a,n=arguments[t]!=null?arguments[t]:{};t%2?G(r=Dy(Object(n),!0)).call(r,function(s){me(e,s,n[s])}):Dl?UE(e,Dl(n)):G(a=Dy(Object(n))).call(a,function(s){md(e,s,gd(n,s))})}return e}function on(e){var t;if(!e)return!1;var r=(t=e.idProp)!==null&&t!==void 0?t:e._idProp;return r?Iq(r,e):!1}var gu=/^\/?Date\((-?\d+)/i,DX=/^\d+$/;function Yf(e,t){var r;if(e!==void 0){if(e===null)return null;if(!t)return e;if(typeof t!="string"&&!(t instanceof String))throw new Error("Type must be a string");switch(t){case"boolean":case"Boolean":return!!e;case"number":case"Number":return Qt(e)&&!isNaN(Date.parse(e))?_r(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return Yf(e,"Moment").toDate()}catch(n){throw n instanceof TypeError?new TypeError("Cannot convert object of type "+is(e)+" to type "+t):n}case"Moment":if(cs(e))return _r(e);if(e instanceof Date)return _r(e.valueOf());if(_r.isMoment(e))return _r(e);if(Qt(e))return r=gu.exec(e),r?_r(Number(r[1])):(r=DX.exec(e),_r(r?Number(e):e));throw new TypeError("Cannot convert object of type "+is(e)+" to type "+t);case"ISODate":if(cs(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(_r.isMoment(e))return e.toDate().toISOString();if(Qt(e))return r=gu.exec(e),r?new Date(Number(r[1])).toISOString():_r(e).format();throw new Error("Cannot convert object of type "+is(e)+" to type ISODate");case"ASPDate":if(cs(e))return"/Date("+e+")/";if(e instanceof Date||_r.isMoment(e))return"/Date("+e.valueOf()+")/";if(Qt(e)){r=gu.exec(e);var a;return r?a=new Date(Number(r[1])).valueOf():a=new Date(e).valueOf(),"/Date("+a+")/"}else throw new Error("Cannot convert object of type "+is(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(t))}}}function ba(e){var t,r,a,n,s,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},d=e._idProp,c=new pi({fieldId:d}),f=Se(t=Tq(e)).call(t,function(v){var m;return vd(m=st(v)).call(m,function(g,b){return g[b]=Yf(v[b],l[b]),g},{})}).to(c);return f.all().start(),{add:function(){var m;return(m=e.getDataSet()).add.apply(m,arguments)},remove:function(){var m;return(m=e.getDataSet()).remove.apply(m,arguments)},update:function(){var m;return(m=e.getDataSet()).update.apply(m,arguments)},updateOnly:function(){var m;return(m=e.getDataSet()).updateOnly.apply(m,arguments)},clear:function(){var m;return(m=e.getDataSet()).clear.apply(m,arguments)},forEach:P(r=G(c)).call(r,c),get:P(a=c.get).call(a,c),getIds:P(n=c.getIds).call(n,c),off:P(s=c.off).call(s,c),on:P(o=c.on).call(o,c),get length(){return c.length},idProp:d,type:l,rawDS:e,coercedDS:c,dispose:function(){return f.stop()}}}var u1=function(t){var r=new $X.FilterXSS(t);return function(a){return r.process(a)}},NX=function(t){return t},yh=u1(),CX=function(t){t&&(t.disabled===!0?(yh=NX,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(yh=u1(t.filterOptions)))},x=Ny(Ny({},HH),{},{convert:Yf,setupXSSProtection:CX});md(x,"xss",{get:function(){return yh}});var h1=Ye,OX=ge,AX=Ee,IX=fr,PX=tw.trim,MX=cf,RX=AX("".charAt),Cl=h1.parseFloat,Cy=h1.Symbol,Oy=Cy&&Cy.iterator,LX=1/Cl(MX+"-0")!==-1/0||Oy&&!OX(function(){Cl(Object(Oy))}),VX=LX?function(t){var r=PX(IX(t)),a=Cl(r);return a===0&&RX(r,0)==="-"?-0:a}:Cl,FX=X,Ay=VX;FX({global:!0,forced:parseFloat!==Ay},{parseFloat:Ay});var YX=xe,jX=YX.parseFloat,BX=jX,HX=BX,WX=HX,Ol=K(WX),Fn=function(){function e(t,r){fe(this,e),this.options=null,this.props=null}return pe(e,[{key:"setOptions",value:function(r){r&&x.extend(this.options,r)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var r=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,r}}]),e}(),GX=Is,zX=fr,UX=Da,KX=RangeError,qX=function(t){var r=zX(UX(this)),a="",n=GX(t);if(n<0||n===1/0)throw new KX("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(r+=r))n&1&&(a+=r);return a},XX=X,QX=qX;XX({target:"String",proto:!0},{repeat:QX});var ZX=We,JX=ZX("String").repeat,eQ=Oe,tQ=JX,yu=String.prototype,rQ=function(e){var t=e.repeat;return typeof e=="string"||e===yu||eQ(yu,e)&&t===yu.repeat?tQ:t},nQ=rQ,iQ=nQ,aQ=iQ,Xi=K(aQ);function jf(e,t,r){if(r&&!ae(r))return jf(e,t,[r]);if(t.hiddenDates=[],r&&ae(r)==!0){for(var a,n=0;n<r.length;n++)if(Xi(r[n])===void 0){var s={};s.start=e(r[n].start).toDate().valueOf(),s.end=e(r[n].end).toDate().valueOf(),t.hiddenDates.push(s)}Ze(a=t.hiddenDates).call(a,function(o,l){return o.start-l.start})}}function Al(e,t,r){if(r&&!ae(r))return Al(e,t,[r]);if(r&&t.domProps.centerContainer.width!==void 0){jf(e,t,r);for(var a=e(t.range.start),n=e(t.range.end),s=t.range.end-t.range.start,o=s/t.domProps.centerContainer.width,l=0;l<r.length;l++)if(Xi(r[l])!==void 0){var d=e(r[l].start),c=e(r[l].end);if(d._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(r[l].start));if(c._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(r[l].end));var f=c-d;if(f>=4*o){var v=0,m=n.clone();switch(Xi(r[l])){case"daily":d.day()!=c.day()&&(v=1),d.dayOfYear(a.dayOfYear()),d.year(a.year()),d.subtract(7,"days"),c.dayOfYear(a.dayOfYear()),c.year(a.year()),c.subtract(7-v,"days"),m.add(1,"weeks");break;case"weekly":{var g=c.diff(d,"days"),b=d.day();d.date(a.date()),d.month(a.month()),d.year(a.year()),c=d.clone(),d.day(b),c.day(b),c.add(g,"days"),d.subtract(1,"weeks"),c.subtract(1,"weeks"),m.add(1,"weeks");break}case"monthly":d.month()!=c.month()&&(v=1),d.month(a.month()),d.year(a.year()),d.subtract(1,"months"),c.month(a.month()),c.year(a.year()),c.subtract(1,"months"),c.add(v,"months"),m.add(1,"months");break;case"yearly":d.year()!=c.year()&&(v=1),d.year(a.year()),d.subtract(1,"years"),c.year(a.year()),c.subtract(1,"years"),c.add(v,"years"),m.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Xi(r[l]));return}for(;d<m;)switch(t.hiddenDates.push({start:d.valueOf(),end:c.valueOf()}),Xi(r[l])){case"daily":d.add(1,"days"),c.add(1,"days");break;case"weekly":d.add(1,"weeks"),c.add(1,"weeks");break;case"monthly":d.add(1,"months"),c.add(1,"months");break;case"yearly":d.add(1,"y"),c.add(1,"y");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Xi(r[l]));return}t.hiddenDates.push({start:d.valueOf(),end:c.valueOf()})}}sQ(t);var S=Pl(t.range.start,t.hiddenDates),w=Pl(t.range.end,t.hiddenDates),k=t.range.start,T=t.range.end;S.hidden==!0&&(k=t.range.startToFront==!0?S.startDate-1:S.endDate+1),w.hidden==!0&&(T=t.range.endToFront==!0?w.startDate-1:w.endDate+1),(S.hidden==!0||w.hidden==!0)&&t.range._applyRange(k,T)}}function sQ(e){for(var t,r=e.hiddenDates,a=[],n=0;n<r.length;n++)for(var s=0;s<r.length;s++)n!=s&&r[s].remove!=!0&&r[n].remove!=!0&&(r[s].start>=r[n].start&&r[s].end<=r[n].end?r[s].remove=!0:r[s].start>=r[n].start&&r[s].start<=r[n].end?(r[n].end=r[s].end,r[s].remove=!0):r[s].end>=r[n].start&&r[s].end<=r[n].end&&(r[n].start=r[s].start,r[s].remove=!0));for(n=0;n<r.length;n++)r[n].remove!==!0&&a.push(r[n]);e.hiddenDates=a,Ze(t=e.hiddenDates).call(t,function(o,l){return o.start-l.start})}function oQ(e,t,r){for(var a=!1,n=t.current.valueOf(),s=0;s<t.hiddenDates.length;s++){var o=t.hiddenDates[s].start,l=t.hiddenDates[s].end;if(n>=o&&n<l){a=!0;break}}if(a==!0&&n<t._end.valueOf()&&n!=r){var d=e(r),c=e(l);d.year()!=c.year()?t.switchedYear=!0:d.month()!=c.month()?t.switchedMonth=!0:d.dayOfYear()!=c.dayOfYear()&&(t.switchedDay=!0),t.current=c}}function Iy(e,t,r){var a;if(e.body.hiddenDates.length==0)return a=e.range.conversion(r),(t.valueOf()-a.offset)*a.scale;var n=Pl(t,e.body.hiddenDates);n.hidden==!0&&(t=n.startDate);var s=ps(e.body.hiddenDates,e.range.start,e.range.end);if(t<e.range.start){a=e.range.conversion(r,s);var o=lQ(e.body.hiddenDates,t,a.offset);return t=e.options.moment(t).toDate().valueOf(),t=t+o,-(a.offset-t.valueOf())*a.scale}else if(t>e.range.end){var l={start:e.range.start,end:t};return t=My(e.options.moment,e.body.hiddenDates,l,t),a=e.range.conversion(r,s),(t.valueOf()-a.offset)*a.scale}else return t=My(e.options.moment,e.body.hiddenDates,e.range,t),a=e.range.conversion(r,s),(t.valueOf()-a.offset)*a.scale}function Py(e,t,r){if(e.body.hiddenDates.length==0){var a=e.range.conversion(r);return new Date(t/a.scale+a.offset)}else{var n=ps(e.body.hiddenDates,e.range.start,e.range.end),s=e.range.end-e.range.start-n,o=s*t/r,l=dQ(e.body.hiddenDates,e.range,o);return new Date(l+o+e.range.start)}}function ps(e,t,r){for(var a=0,n=0;n<e.length;n++){var s=e[n].start,o=e[n].end;s>=t&&o<r&&(a+=o-s)}return a}function lQ(e,t,r){for(var a=0,n=0;n<e.length;n++){var s=e[n].start,o=e[n].end;s>=t&&o<=r&&(a+=o-s)}return a}function My(e,t,r,a){return a=e(a).toDate().valueOf(),a-=Il(e,t,r,a),a}function Il(e,t,r,a){var n=0;a=e(a).toDate().valueOf();for(var s=0;s<t.length;s++){var o=t[s].start,l=t[s].end;o>=r.start&&l<r.end&&a>=l&&(n+=l-o)}return n}function dQ(e,t,r){for(var a=0,n=0,s=t.start,o=0;o<e.length;o++){var l=e[o].start,d=e[o].end;if(l>=t.start&&d<t.end){if(n+=l-s,s=d,n>=r)break;a+=d-l}}return a}function qn(e,t,r,a){var n=Pl(t,e);return n.hidden==!0?r<0?a==!0?n.startDate-(n.endDate-t)-1:n.startDate-1:a==!0?n.endDate+(t-n.startDate)+1:n.endDate+1:t}function Pl(e,t){for(var r=0;r<t.length;r++){var a=t[r].start,n=t[r].end;if(e>=a&&e<n)return{hidden:!0,startDate:a,endDate:n}}return{hidden:!1,startDate:a,endDate:n}}function cQ(e){var t=uQ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function uQ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var f1=function(e){It(r,e);var t=cQ(r);function r(a,n){var s,o,l,d,c,f,v,m;fe(this,r),m=t.call(this);var g=Tt().hours(0).minutes(0).seconds(0).milliseconds(0),b=g.clone().add(-3,"days").valueOf(),S=g.clone().add(3,"days").valueOf();return m.millisecondsPerPixelCache=void 0,n===void 0?(m.start=b,m.end=S):(m.start=n.start||b,m.end=n.end||S),m.rolling=!1,m.body=a,m.deltaDifference=0,m.scaleOffset=0,m.startToFront=!1,m.endToFront=!0,m.defaultOptions={rtl:!1,start:null,end:null,moment:Tt,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:!1,offset:.5}},m.options=x.extend({},m.defaultOptions),m.props={touch:{}},m.animationTimer=null,m.body.emitter.on("panstart",P(s=m._onDragStart).call(s,Ne(m))),m.body.emitter.on("panmove",P(o=m._onDrag).call(o,Ne(m))),m.body.emitter.on("panend",P(l=m._onDragEnd).call(l,Ne(m))),m.body.emitter.on("mousewheel",P(d=m._onMouseWheel).call(d,Ne(m))),m.body.emitter.on("touch",P(c=m._onTouch).call(c,Ne(m))),m.body.emitter.on("pinch",P(f=m._onPinch).call(f,Ne(m))),m.body.dom.rollingModeBtn.addEventListener("click",P(v=m.startRolling).call(v,Ne(m))),m.setOptions(n),m}return pe(r,[{key:"setOptions",value:function(n){if(n){var s=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"];x.selectiveExtend(s,this.options,n),n.rollingMode&&n.rollingMode.follow&&this.startRolling(),("start"in n||"end"in n)&&this.setRange(n.start,n.end)}}},{key:"startRolling",value:function(){var n=this;function s(){n.stopRolling(),n.rolling=!0;var o=n.end-n.start,l=x.convert(new Date,"Date").valueOf(),d=n.options.rollingMode&&n.options.rollingMode.offset||.5,c=l-o*d,f=l+o*(1-d),v={animation:!1};n.setRange(c,f,v);var m=n.conversion(n.body.domProps.center.width).scale;o=1/m/10,o<30&&(o=30),o>1e3&&(o=1e3),n.body.dom.rollingModeBtn.style.visibility="hidden",n.currentTimeTimer=_t(s,o)}s()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(n,s,o,l,d){o||(o={}),o.byUser!==!0&&(o.byUser=!1);var c=this,f=n!=null?x.convert(n,"Date").valueOf():null,v=s!=null?x.convert(s,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,o.animation){var m=this.start,g=this.end,b=ne(o.animation)==="object"&&"duration"in o.animation?o.animation.duration:500,S=ne(o.animation)==="object"&&"easingFunction"in o.animation?o.animation.easingFunction:"easeInOutQuad",w=x.easingFunctions[S];if(!w){var k;throw new Error(Me(k="Unknown easing function ".concat(Ft(S),". Choose from: ")).call(k,st(x.easingFunctions).join(", ")))}var T=qt(),D=!1,N=function R(){if(!c.props.touch.dragging){var C=qt(),j=C-T,O=w(j/b),M=j>b,H=M||f===null?f:m+(f-m)*O,z=M||v===null?v:g+(v-g)*O;L=c._applyRange(H,z),Al(c.options.moment,c.body,c.options.hiddenDates),D=D||L;var se={start:new Date(c.start),end:new Date(c.end),byUser:o.byUser,event:o.event};if(d&&d(O,L,M),L&&c.body.emitter.emit("rangechange",se),M){if(D&&(c.body.emitter.emit("rangechanged",se),l))return l()}else c.animationTimer=_t(R,20)}};return N()}else{var L=this._applyRange(f,v);if(Al(this.options.moment,this.body,this.options.hiddenDates),L){var A={start:new Date(this.start),end:new Date(this.end),byUser:o.byUser,event:o.event};if(this.body.emitter.emit("rangechange",A),clearTimeout(c.timeoutID),c.timeoutID=_t(function(){c.body.emitter.emit("rangechanged",A)},200),l)return l()}}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(n,s){var o=n!=null?x.convert(n,"Date").valueOf():this.start,l=s!=null?x.convert(s,"Date").valueOf():this.end,d=this.options.max!=null?x.convert(this.options.max,"Date").valueOf():null,c=this.options.min!=null?x.convert(this.options.min,"Date").valueOf():null,f;if(isNaN(o)||o===null)throw new Error('Invalid start "'.concat(n,'"'));if(isNaN(l)||l===null)throw new Error('Invalid end "'.concat(s,'"'));if(l<o&&(l=o),c!==null&&o<c&&(f=c-o,o+=f,l+=f,d!=null&&l>d&&(l=d)),d!==null&&l>d&&(f=l-d,o-=f,l-=f,c!=null&&o<c&&(o=c)),this.options.zoomMin!==null){var v=Ol(this.options.zoomMin);if(v<0&&(v=0),l-o<v){var m=.5;this.end-this.start===v&&o>=this.start-m&&l<=this.end?(o=this.start,l=this.end):(f=v-(l-o),o-=f/2,l+=f/2)}}if(this.options.zoomMax!==null){var g=Ol(this.options.zoomMax);g<0&&(g=0),l-o>g&&(this.end-this.start===g&&o<this.start&&l>this.end?(o=this.start,l=this.end):(f=l-o-g,o+=f/2,l-=f/2))}var b=this.start!=o||this.end!=l;return!(o>=this.start&&o<=this.end||l>=this.start&&l<=this.end)&&!(this.start>=o&&this.start<=l||this.end>=o&&this.end<=l)&&this.body.emitter.emit("checkRangedItems"),this.start=o,this.end=l,b}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(n,s){return r.conversion(this.start,this.end,n,s)}},{key:"_onDragStart",value:function(n){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(n)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(n){if(n&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var s=this.options.direction;Ry(s);var o=s=="horizontal"?n.deltaX:n.deltaY;o-=this.deltaDifference;var l=this.props.touch.end-this.props.touch.start,d=ps(this.body.hiddenDates,this.start,this.end);l-=d;var c=s=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height,f;this.options.rtl?f=o/c*l:f=-o/c*l;var v=this.props.touch.start+f,m=this.props.touch.end+f,g=qn(this.body.hiddenDates,v,this.previousDelta-o,!0),b=qn(this.body.hiddenDates,m,this.previousDelta-o,!0);if(g!=v||b!=m){this.deltaDifference+=o,this.props.touch.start=g,this.props.touch.end=b,this._onDrag(n);return}this.previousDelta=o,this._applyRange(v,m);var S=new Date(this.start),w=new Date(this.end);this.body.emitter.emit("rangechange",{start:S,end:w,byUser:!0,event:n}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(n){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:n}))}},{key:"_onMouseWheel",value:function(n){var s=0;if(n.wheelDelta?s=n.wheelDelta/120:n.detail?s=-n.detail/3:n.deltaY&&(s=-n.deltaY/3),!(this.options.zoomKey&&!n[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(n)&&s){var o=this.options.zoomFriction||5,l;s<0?l=1-s/o:l=1/(1+s/o);var d;if(this.rolling){var c=this.options.rollingMode&&this.options.rollingMode.offset||.5;d=this.start+(this.end-this.start)*c}else{var f=this.getPointer({x:n.clientX,y:n.clientY},this.body.dom.center);d=this._pointerToDate(f)}this.zoom(l,d,s,n),n.preventDefault()}}},{key:"_onTouch",value:function(n){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,x.preventDefault(n)}},{key:"_onPinch",value:function(n){if(this.options.zoomable&&this.options.moveable){x.preventDefault(n),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(n.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var s=1/(n.scale+this.scaleOffset),o=this.props.touch.centerDate,l=ps(this.body.hiddenDates,this.start,this.end),d=Il(this.options.moment,this.body.hiddenDates,this,o),c=l-d,f=o-d+(this.props.touch.start-(o-d))*s,v=o+c+(this.props.touch.end-(o+c))*s;this.startToFront=1-s<=0,this.endToFront=s-1<=0;var m=qn(this.body.hiddenDates,f,1-s,!0),g=qn(this.body.hiddenDates,v,s-1,!0);(m!=f||g!=v)&&(this.props.touch.start=m,this.props.touch.end=g,this.scaleOffset=1-n.scale,f=m,v=g);var b={animation:!1,byUser:!0,event:n};this.setRange(f,v,b),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(n){var s=n.center?n.center.x:n.clientX,o=this.body.dom.centerContainer.getBoundingClientRect(),l=this.options.rtl?s-o.left:o.right-s,d=this.body.util.toTime(l);return d>=this.start&&d<=this.end}},{key:"_pointerToDate",value:function(n){var s,o=this.options.direction;if(Ry(o),o=="horizontal")return this.body.util.toTime(n.x).valueOf();var l=this.body.domProps.center.height;return s=this.conversion(l),n.y/s.scale+s.offset}},{key:"getPointer",value:function(n,s){var o=s.getBoundingClientRect();return this.options.rtl?{x:o.right-n.x,y:n.y-o.top}:{x:n.x-o.left,y:n.y-o.top}}},{key:"zoom",value:function(n,s,o,l){s==null&&(s=(this.start+this.end)/2);var d=ps(this.body.hiddenDates,this.start,this.end),c=Il(this.options.moment,this.body.hiddenDates,this,s),f=d-c,v=s-c+(this.start-(s-c))*n,m=s+f+(this.end-(s+f))*n;this.startToFront=!(o>0),this.endToFront=!(-o>0);var g=qn(this.body.hiddenDates,v,o,!0),b=qn(this.body.hiddenDates,m,-o,!0);(g!=v||b!=m)&&(v=g,m=b);var S={animation:!1,byUser:!0,event:l};this.setRange(v,m,S),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(n){var s=this.end-this.start,o=this.start+s*n,l=this.end+s*n;this.start=o,this.end=l}},{key:"moveTo",value:function(n){var s=(this.start+this.end)/2,o=s-n,l=this.start-o,d=this.end-o,c={animation:!1,byUser:!0,event:null};this.setRange(l,d,c)}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(n,s,o,l){return l===void 0&&(l=0),o!=0&&s-n!=0?{offset:n,scale:o/(s-n-l)}:{offset:0,scale:1}}}]),r}(Fn);function Ry(e){if(e!="horizontal"&&e!="vertical")throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var hQ=xe,fQ=hQ.setInterval,pQ=fQ,vQ=K(pQ),el=null;function _h(e,t){var r=t||{preventDefault:!1};if(e.Manager){var a=e,n=function(c,f){var v=Object.create(r);return f&&a.assign(v,f),_h(new a(c,v),v)};return a.assign(n,a),n.Manager=function(c,f){var v=Object.create(r);return f&&a.assign(v,f),_h(new a.Manager(c,v),v)},n}var s=Object.create(e),o=e.element;o.hammer||(o.hammer=[]),o.hammer.push(s),e.on("hammer.input",function(c){(r.preventDefault===!0||r.preventDefault===c.pointerType)&&c.preventDefault(),c.isFirst&&(el=c.target)}),s._handlers={},s.on=function(c,f){return l(c).forEach(function(v){var m=s._handlers[v];m||(s._handlers[v]=m=[],e.on(v,d)),m.push(f)}),s},s.off=function(c,f){return l(c).forEach(function(v){var m=s._handlers[v];m&&(m=f?m.filter(function(g){return g!==f}):[],m.length>0?s._handlers[v]=m:(e.off(v,d),delete s._handlers[v]))}),s},s.emit=function(c,f){el=f.target,e.emit(c,f)},s.destroy=function(){var c=e.element.hammer,f=c.indexOf(s);f!==-1&&c.splice(f,1),c.length||delete e.element.hammer,s._handlers={},e.destroy()};function l(c){return c.match(/[^ ]+/g)}function d(c){if(c.type!=="hammer.input"){if(c.srcEvent._handled||(c.srcEvent._handled={}),c.srcEvent._handled[c.type])return;c.srcEvent._handled[c.type]=!0}var f=!1;c.stopPropagation=function(){f=!0};var v=c.srcEvent.stopPropagation.bind(c.srcEvent);typeof v=="function"&&(c.srcEvent.stopPropagation=function(){v(),c.stopPropagation()}),c.firstTarget=el;for(var m=el;m&&!f;){var g=m.hammer;if(g){for(var b,S=0;S<g.length;S++)if(b=g[S]._handlers[c.type],b)for(var w=0;w<b.length&&!f;w++)b[w](c)}m=m.parentNode}}return s}function mQ(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(r){return{set:e}}}}var bh;if(typeof window<"u"){var gQ=window.Hammer||Lw;bh=_h(gQ,{preventDefault:"mouse"})}else bh=function(){return mQ()};var kt=bh;function p1(e,t){t.inputHandler=function(r){r.isFirst&&t(r)},e.on("hammer.input",t.inputHandler)}function yQ(e,t){return t.inputHandler=function(r){r.isFinal&&t(r)},e.on("hammer.input",t.inputHandler)}function _Q(e){var t="pan-y";return e.getTouchAction=function(){return[t]},e}var Ml=function(){function e(t,r,a,n,s){fe(this,e),this.moment=s&&s.moment||Tt,this.options=s||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(t,r,a),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,ae(n)?this.hiddenDates=n:n!=null?this.hiddenDates=[n]:this.hiddenDates=[],this.format=e.FORMAT}return pe(e,[{key:"setMoment",value:function(r){this.moment=r,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(r){var a=x.deepExtend({},e.FORMAT);this.format=x.deepExtend(a,r)}},{key:"setRange",value:function(r,a,n){if(!(r instanceof Date)||!(a instanceof Date))throw"No legal start or end date in method setRange";this._start=r!=null?this.moment(r.valueOf()):qt(),this._end=a!=null?this.moment(a.valueOf()):qt(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch(this.scale=="week"&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(this.step!=1){var r=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year");break}r.isSame(this.current)||(this.current=this.moment(qn(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var r=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!==0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(this.current.weekday()!==0)this.current.weekday(0),this.current.add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current.add(this.step,"week");else{var a=this.current.clone();a.add(1,"week"),a.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year");break}if(this.step!=1)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0);break}this.current.valueOf()==r&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,oQ(this.moment,this,r)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(r){r&&typeof r.scale=="string"&&(this.scale=r.scale,this.step=r.step>0?r.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(r){this.autoScale=r}},{key:"setMinimumStep",value:function(r){if(r!=null){var a=1e3*60*60*24*30*12,n=1e3*60*60*24*30,s=1e3*60*60*24,o=1e3*60*60,l=1e3*60,d=1e3,c=1;a*1e3>r&&(this.scale="year",this.step=1e3),a*500>r&&(this.scale="year",this.step=500),a*100>r&&(this.scale="year",this.step=100),a*50>r&&(this.scale="year",this.step=50),a*10>r&&(this.scale="year",this.step=10),a*5>r&&(this.scale="year",this.step=5),a>r&&(this.scale="year",this.step=1),n*3>r&&(this.scale="month",this.step=3),n>r&&(this.scale="month",this.step=1),s*7>r&&this.options.showWeekScale&&(this.scale="week",this.step=1),s*2>r&&(this.scale="day",this.step=2),s>r&&(this.scale="day",this.step=1),s/2>r&&(this.scale="weekday",this.step=1),o*4>r&&(this.scale="hour",this.step=4),o>r&&(this.scale="hour",this.step=1),l*15>r&&(this.scale="minute",this.step=15),l*10>r&&(this.scale="minute",this.step=10),l*5>r&&(this.scale="minute",this.step=5),l>r&&(this.scale="minute",this.step=1),d*15>r&&(this.scale="second",this.step=15),d*10>r&&(this.scale="second",this.step=10),d*5>r&&(this.scale="second",this.step=5),d>r&&(this.scale="second",this.step=1),c*200>r&&(this.scale="millisecond",this.step=200),c*100>r&&(this.scale="millisecond",this.step=100),c*50>r&&(this.scale="millisecond",this.step=50),c*10>r&&(this.scale="millisecond",this.step=10),c*5>r&&(this.scale="millisecond",this.step=5),c>r&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==!0)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedMonth==!0)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==!0)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var r=this.moment(this.current);switch(this.scale){case"millisecond":return r.milliseconds()==0;case"second":return r.seconds()==0;case"minute":return r.hours()==0&&r.minutes()==0;case"hour":return r.hours()==0;case"weekday":case"day":return this.options.showWeekScale?r.isoWeekday()==1:r.date()==1;case"week":return r.date()==1;case"month":return r.month()==0;case"year":return!1;default:return!1}}},{key:"getLabelMinor",value:function(r){if(r==null&&(r=this.current),r instanceof Date&&(r=this.moment(r)),typeof this.format.minorLabels=="function")return this.format.minorLabels(r,this.scale,this.step);var a=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(r.date()===1&&r.weekday()!==0)return"";default:return a&&a.length>0?this.moment(r).format(a):""}}},{key:"getLabelMajor",value:function(r){if(r==null&&(r=this.current),r instanceof Date&&(r=this.moment(r)),typeof this.format.majorLabels=="function")return this.format.majorLabels(r,this.scale,this.step);var a=this.format.majorLabels[this.scale];return a&&a.length>0?this.moment(r).format(a):""}},{key:"getClassName",value:function(){var r,a=this.moment,n=this.moment(this.current),s=n.locale?n.locale("en"):n.lang("en"),o=this.step,l=[];function d(g){return g/o%2==0?" vis-even":" vis-odd"}function c(g){return g.isSame(qt(),"day")?" vis-today":g.isSame(a().add(1,"day"),"day")?" vis-tomorrow":g.isSame(a().add(-1,"day"),"day")?" vis-yesterday":""}function f(g){return g.isSame(qt(),"week")?" vis-current-week":""}function v(g){return g.isSame(qt(),"month")?" vis-current-month":""}function m(g){return g.isSame(qt(),"year")?" vis-current-year":""}switch(this.scale){case"millisecond":l.push(c(s)),l.push(d(s.milliseconds()));break;case"second":l.push(c(s)),l.push(d(s.seconds()));break;case"minute":l.push(c(s)),l.push(d(s.minutes()));break;case"hour":l.push(Me(r="vis-h".concat(s.hours())).call(r,this.step==4?"-h"+(s.hours()+4):"")),l.push(c(s)),l.push(d(s.hours()));break;case"weekday":l.push("vis-".concat(s.format("dddd").toLowerCase())),l.push(c(s)),l.push(f(s)),l.push(d(s.date()));break;case"day":l.push("vis-day".concat(s.date())),l.push("vis-".concat(s.format("MMMM").toLowerCase())),l.push(c(s)),l.push(v(s)),l.push(this.step<=2?c(s):""),l.push(this.step<=2?"vis-".concat(s.format("dddd").toLowerCase()):""),l.push(d(s.date()-1));break;case"week":l.push("vis-week".concat(s.format("w"))),l.push(f(s)),l.push(d(s.week()));break;case"month":l.push("vis-".concat(s.format("MMMM").toLowerCase())),l.push(v(s)),l.push(d(s.month()));break;case"year":l.push("vis-year".concat(s.year())),l.push(m(s)),l.push(d(s.year()));break}return te(l).call(l,String).join(" ")}}],[{key:"snap",value:function(r,a,n){var s=Tt(r);if(a=="year"){var o=s.year()+Math.round(s.month()/12);s.year(Math.round(o/n)*n),s.month(0),s.date(0),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="month")s.date()>15?(s.date(1),s.add(1,"month")):s.date(1),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0);else if(a=="week")s.weekday()>2?(s.weekday(0),s.add(1,"week")):s.weekday(0),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0);else if(a=="day"){switch(n){case 5:case 2:s.hours(Math.round(s.hours()/24)*24);break;default:s.hours(Math.round(s.hours()/12)*12);break}s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="weekday"){switch(n){case 5:case 2:s.hours(Math.round(s.hours()/12)*12);break;default:s.hours(Math.round(s.hours()/6)*6);break}s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="hour"){switch(n){case 4:s.minutes(Math.round(s.minutes()/60)*60);break;default:s.minutes(Math.round(s.minutes()/30)*30);break}s.seconds(0),s.milliseconds(0)}else if(a=="minute"){switch(n){case 15:case 10:s.minutes(Math.round(s.minutes()/5)*5),s.seconds(0);break;case 5:s.seconds(Math.round(s.seconds()/60)*60);break;default:s.seconds(Math.round(s.seconds()/30)*30);break}s.milliseconds(0)}else if(a=="second")switch(n){case 15:case 10:s.seconds(Math.round(s.seconds()/5)*5),s.milliseconds(0);break;case 5:s.milliseconds(Math.round(s.milliseconds()/1e3)*1e3);break;default:s.milliseconds(Math.round(s.milliseconds()/500)*500);break}else if(a=="millisecond"){var l=n>5?n/2:1;s.milliseconds(Math.round(s.milliseconds()/l)*l)}return s}}]),e}();Ml.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}};function Pt(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(!e||typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",r==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var bQ=`.vis-time-axis {
|
60
|
+
`}},{key:"print",value:function(t){return Dt(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,a){if(t.length===0)return a.length;if(a.length===0)return t.length;var n=[],s;for(s=0;s<=a.length;s++)n[s]=[s];var o;for(o=0;o<=t.length;o++)n[0][o]=o;for(s=1;s<=a.length;s++)for(o=1;o<=t.length;o++)a.charAt(s-1)==t.charAt(o-1)?n[s][o]=n[s-1][o-1]:n[s][o]=Math.min(n[s-1][o-1]+1,Math.min(n[s][o-1]+1,n[s-1][o]+1));return n[a.length][t.length]}}]),e}(),FL=pr,YL=qy,jL=VL,BL=nc,HL=RL,WL=iu,GL=LL,zL=Object.freeze({__proto__:null,Activator:FL,Alea:GR,ColorPicker:YL,Configurator:jL,DELETE:rc,HSVToHex:tu,HSVToRGB:oa,Hammer:BL,Popup:HL,RGBToHSV:dn,RGBToHex:ac,VALIDATOR_PRINT_STYLE:WL,Validator:GL,addClassName:cL,addCssText:SL,addEventListener:gL,binarySearchCustom:CL,binarySearchValue:OL,bridgeObject:lc,copyAndExtendArray:ba,copyArray:Gy,deepExtend:_a,deepObjectAssign:ic,easingFunctions:PL,equalArray:oL,extend:iL,fillIfDefined:Wy,forEach:fL,getAbsoluteLeft:lL,getAbsoluteRight:dL,getAbsoluteTop:uL,getScrollBarWidth:IL,getTarget:bL,getType:ra,hasParent:wL,hexToHSV:Uy,hexToRGB:Mo,insertSort:TL,isDate:rL,isNumber:sa,isObject:eu,isString:Ft,isValidHex:sc,isValidRGB:oc,isValidRGBA:Xy,mergeOptions:NL,option:kL,overrideOpacity:xL,parseColor:EL,preventDefault:_L,pureDeepObjectAssign:Yy,recursiveDOMDelete:Hy,removeClassName:hL,removeCssText:$L,removeEventListener:yL,selectiveBridgeObject:DL,selectiveDeepExtend:aL,selectiveExtend:nL,selectiveNotDeepExtend:sL,throttle:mL,toArray:vL,topMost:ML,updateProperty:pL});function Kr(e){for(var r in e)e.hasOwnProperty(r)&&(e[r].redundant=e[r].used,e[r].used=[])}function zt(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r].redundant){for(var t=0;t<e[r].redundant.length;t++)e[r].redundant[t].parentNode.removeChild(e[r].redundant[t]);e[r].redundant=[]}}function UL(e){Kr(e),zt(e),Kr(e)}function ar(e,r,t){var a;return r.hasOwnProperty(e)?r[e].redundant.length>0?(a=r[e].redundant[0],r[e].redundant.shift()):(a=document.createElementNS("http://www.w3.org/2000/svg",e),t.appendChild(a)):(a=document.createElementNS("http://www.w3.org/2000/svg",e),r[e]={used:[],redundant:[]},t.appendChild(a)),r[e].used.push(a),a}function Jl(e,r,t,a){var n;return r.hasOwnProperty(e)?r[e].redundant.length>0?(n=r[e].redundant[0],r[e].redundant.shift()):(n=document.createElement(e),a!==void 0?t.insertBefore(n,a):t.appendChild(n)):(n=document.createElement(e),r[e]={used:[],redundant:[]},a!==void 0?t.insertBefore(n,a):t.appendChild(n)),r[e].used.push(n),n}function _n(e,r,t,a,n,s){var o;if(t.style=="circle"?(o=ar("circle",a,n),o.setAttributeNS(null,"cx",e),o.setAttributeNS(null,"cy",r),o.setAttributeNS(null,"r",.5*t.size)):(o=ar("rect",a,n),o.setAttributeNS(null,"x",e-.5*t.size),o.setAttributeNS(null,"y",r-.5*t.size),o.setAttributeNS(null,"width",t.size),o.setAttributeNS(null,"height",t.size)),t.styles!==void 0&&o.setAttributeNS(null,"style",t.styles),o.setAttributeNS(null,"class",t.className+" vis-point"),s){var l=ar("text",a,n);s.xOffset&&(e=e+s.xOffset),s.yOffset&&(r=r+s.yOffset),s.content&&(l.textContent=s.content),s.className&&l.setAttributeNS(null,"class",s.className+" vis-label"),l.setAttributeNS(null,"x",e),l.setAttributeNS(null,"y",r)}return o}function nu(e,r,t,a,n,s,o,l){if(a!=0){a<0&&(a*=-1,r-=a);var d=ar("rect",s,o);d.setAttributeNS(null,"x",e-.5*t),d.setAttributeNS(null,"y",r),d.setAttributeNS(null,"width",t),d.setAttributeNS(null,"height",a),d.setAttributeNS(null,"class",n),l&&d.setAttributeNS(null,"style",l)}}function XL(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch{return"en"}}function Ee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var qL=oy,KL=qL,ZL=KL,QL=ZL,Ky=QL,JL=z(Ky),eF=U,tF=Cm;eF({target:"Object",stat:!0},{setPrototypeOf:tF});var rF=be,iF=rF.Object.setPrototypeOf,nF=iF,aF=nF,sF=aF,oF=sF,lF=oF,dF=lF,Zy=dF,au=z(Zy),uF=Ug,cF=uF,hF=cF,fF=hF,vF=fF,Qy=z(vF);function su(e,r){var t;return su=au?Qy(t=au).call(t):function(n,s){return n.__proto__=s,n},su(e,r)}function wt(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=JL(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),xo(e,"prototype",{writable:!1}),r&&su(e,r)}function Pt(e,r){if(r&&(ee(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(e)}var pF=Qg,mF=pF,gF=mF,yF=gF,Jy=yF,Ev=z(Jy);function _e(e){var r;return _e=au?Qy(r=Ev).call(r):function(a){return a.__proto__||Ev(a)},_e(e)}function fe(e,r,t){return r=Pg(r),r in e?xo(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var e_={exports:{}},t_={exports:{}};(function(e){var r=Hu,t=Og;function a(n){"@babel/helpers - typeof";return e.exports=a=typeof r=="function"&&typeof t=="symbol"?function(s){return typeof s}:function(s){return s&&typeof r=="function"&&s.constructor===r&&s!==r.prototype?"symbol":typeof s},e.exports.__esModule=!0,e.exports.default=e.exports,a(n)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(t_);var _F=t_.exports,bF=Xg,wF=bF,kF=wF,xF=kF,EF=xF,Sv=qe,SF=Wu,$F=Ii,DF=Nt,TF=function(e,r,t){for(var a=SF(r),n=DF.f,s=$F.f,o=0;o<a.length;o++){var l=a[o];!Sv(e,l)&&!(t&&Sv(t,l))&&n(e,l,s(r,l))}},NF=tt,CF=Yr,OF=function(e,r){NF(r)&&"cause"in r&&CF(e,"cause",r.cause)},PF=ge,r_=Error,IF=PF("".replace),MF=function(e){return String(new r_(e).stack)}("zxcasd"),i_=/\n\s*at [^:]*:[^\n]*/,AF=i_.test(MF),VF=function(e,r){if(AF&&typeof e=="string"&&!r_.prepareStackTrace)for(;r--;)e=IF(e,i_,"");return e},RF=ve,LF=Pi,FF=!RF(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",LF(1,7)),e.stack!==7):!0}),YF=Yr,jF=VF,BF=FF,$v=Error.captureStackTrace,HF=function(e,r,t,a){BF&&($v?$v(e,r):YF(e,"stack",jF(t,a)))},WF=ni,GF=rt,zF=Ht,UF=Tn,XF=Mm,qF=Ot,Dv=$e,KF=Au,ZF=ko,Tv=Im,QF=TypeError,js=function(e,r){this.stopped=e,this.result=r},Nv=js.prototype,Ri=function(e,r,t){var a=t&&t.that,n=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),l=!!(t&&t.INTERRUPTED),d=WF(r,a),u,f,p,m,y,b,E,w=function(D){return u&&Tv(u,"normal",D),new js(!0,D)},S=function(D){return n?(zF(D),l?d(D[0],D[1],w):d(D[0],D[1])):l?d(D,w):d(D)};if(s)u=e.iterator;else if(o)u=e;else{if(f=ZF(e),!f)throw new QF(UF(e)+" is not iterable");if(XF(f)){for(p=0,m=qF(e);m>p;p++)if(y=S(e[p]),y&&Dv(Nv,y))return y;return new js(!1)}u=KF(e,f)}for(b=s?e.next:u.next;!(E=GF(b,u)).done;){try{y=S(E.value)}catch(D){Tv(u,"throw",D)}if(typeof y=="object"&&y&&Dv(Nv,y))return y}return new js(!1)},JF=qt,e5=function(e,r){return e===void 0?arguments.length<2?"":r:JF(e)},t5=U,r5=$e,i5=Ca,Js=Cm,n5=TF,n_=Mi,ed=Yr,td=Pi,a5=OF,s5=HF,o5=Ri,l5=e5,d5=Me,u5=d5("toStringTag"),eo=Error,c5=[].push,bn=function(r,t){var a=r5(rd,this),n;Js?n=Js(new eo,a?i5(this):rd):(n=a?this:n_(rd),ed(n,u5,"Error")),t!==void 0&&ed(n,"message",l5(t)),s5(n,bn,n.stack,1),arguments.length>2&&a5(n,arguments[2]);var s=[];return o5(r,c5,{that:s}),ed(n,"errors",s),n};Js?Js(bn,eo):n5(bn,eo,{name:!0});var rd=bn.prototype=n_(eo.prototype,{constructor:td(1,bn),message:td(1,""),name:td(1,"AggregateError")});t5({global:!0},{AggregateError:bn});var h5=Ie,f5=Lr,Wa=f5(h5.process)==="process",v5=bt,p5=Ru,m5=Me,g5=Qe,Cv=m5("species"),a_=function(e){var r=v5(e);g5&&r&&!r[Cv]&&p5(r,Cv,{configurable:!0,get:function(){return this}})},y5=$e,_5=TypeError,dc=function(e,r){if(y5(r,e))return e;throw new _5("Incorrect invocation")},b5=wo,w5=Tn,k5=TypeError,s_=function(e){if(b5(e))return e;throw new k5(w5(e)+" is not a constructor")},Ov=Ht,x5=s_,E5=En,S5=Me,$5=S5("species"),o_=function(e,r){var t=Ov(e).constructor,a;return t===void 0||E5(a=Ov(t)[$5])?r:x5(a)},D5=ii,l_=/(?:ipad|iphone|ipod).*applewebkit/i.test(D5),Yt=Ie,T5=Cn,N5=ni,Pv=Be,C5=qe,d_=ve,Iv=Em,O5=Va,Mv=Du,P5=ly,I5=l_,M5=Wa,ou=Yt.setImmediate,Av=Yt.clearImmediate,A5=Yt.process,id=Yt.Dispatch,V5=Yt.Function,Vv=Yt.MessageChannel,R5=Yt.String,nd=0,la={},Rv="onreadystatechange",wa,vi,ad,sd;d_(function(){wa=Yt.location});var uc=function(e){if(C5(la,e)){var r=la[e];delete la[e],r()}},od=function(e){return function(){uc(e)}},Lv=function(e){uc(e.data)},Fv=function(e){Yt.postMessage(R5(e),wa.protocol+"//"+wa.host)};(!ou||!Av)&&(ou=function(r){P5(arguments.length,1);var t=Pv(r)?r:V5(r),a=O5(arguments,1);return la[++nd]=function(){T5(t,void 0,a)},vi(nd),nd},Av=function(r){delete la[r]},M5?vi=function(e){A5.nextTick(od(e))}:id&&id.now?vi=function(e){id.now(od(e))}:Vv&&!I5?(ad=new Vv,sd=ad.port2,ad.port1.onmessage=Lv,vi=N5(sd.postMessage,sd)):Yt.addEventListener&&Pv(Yt.postMessage)&&!Yt.importScripts&&wa&&wa.protocol!=="file:"&&!d_(Fv)?(vi=Fv,Yt.addEventListener("message",Lv,!1)):Rv in Mv("script")?vi=function(e){Iv.appendChild(Mv("script"))[Rv]=function(){Iv.removeChild(this),uc(e)}}:vi=function(e){setTimeout(od(e),0)});var u_={set:ou},c_=function(){this.head=null,this.tail=null};c_.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}};var h_=c_,L5=ii,F5=/ipad|iphone|ipod/i.test(L5)&&typeof Pebble<"u",Y5=ii,j5=/web0s(?!.*chrome)/i.test(Y5),Ni=Ie,Yv=ni,B5=Ii.f,ld=u_.set,H5=h_,W5=l_,G5=F5,z5=j5,dd=Wa,jv=Ni.MutationObserver||Ni.WebKitMutationObserver,Bv=Ni.document,Hv=Ni.process,$s=Ni.Promise,Wv=B5(Ni,"queueMicrotask"),lu=Wv&&Wv.value,Zi,ud,cd,Ds,Gv;if(!lu){var Ts=new H5,Ns=function(){var e,r;for(dd&&(e=Hv.domain)&&e.exit();r=Ts.get();)try{r()}catch(t){throw Ts.head&&Zi(),t}e&&e.enter()};!W5&&!dd&&!z5&&jv&&Bv?(ud=!0,cd=Bv.createTextNode(""),new jv(Ns).observe(cd,{characterData:!0}),Zi=function(){cd.data=ud=!ud}):!G5&&$s&&$s.resolve?(Ds=$s.resolve(void 0),Ds.constructor=$s,Gv=Yv(Ds.then,Ds),Zi=function(){Gv(Ns)}):dd?Zi=function(){Hv.nextTick(Ns)}:(ld=Yv(ld,Ni),Zi=function(){ld(Ns)}),lu=function(e){Ts.head||Zi(),Ts.add(e)}}var U5=lu,X5=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch{}},Vn=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}},q5=Ie,Rn=q5.Promise,f_=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",K5=f_,Z5=Wa,Q5=!K5&&!Z5&&typeof window=="object"&&typeof document=="object",J5=Ie,da=Rn,e3=Be,t3=bm,r3=Am,i3=Me,n3=Q5,a3=f_,hd=$n,zv=da&&da.prototype,s3=i3("species"),Uv=!1,v_=e3(J5.PromiseRejectionEvent),o3=t3("Promise",function(){var e=r3(da),r=e!==String(da);if(!r&&hd===66||!(zv.catch&&zv.finally))return!0;if(!hd||hd<51||!/native code/.test(e)){var t=new da(function(s){s(1)}),a=function(s){s(function(){},function(){})},n=t.constructor={};if(n[s3]=a,Uv=t.then(function(){})instanceof a,!Uv)return!0}return!r&&(n3||a3)&&!v_}),Ga={CONSTRUCTOR:o3,REJECTION_EVENT:v_},yr={},Xv=Ct,l3=TypeError,d3=function(e){var r,t;this.promise=new e(function(a,n){if(r!==void 0||t!==void 0)throw new l3("Bad Promise constructor");r=a,t=n}),this.resolve=Xv(r),this.reject=Xv(t)};yr.f=function(e){return new d3(e)};var u3=U,to=Wa,ri=Ie,za=rt,c3=On,h3=Ai,f3=a_,v3=Ct,du=Be,p3=tt,m3=dc,g3=o_,p_=u_.set,cc=U5,y3=X5,_3=Vn,b3=h_,m_=Nn,uu=Rn,g_=Ga,y_=yr,Ao="Promise",__=g_.CONSTRUCTOR,w3=g_.REJECTION_EVENT,fd=m_.getterFor(Ao),k3=m_.set,x3=uu&&uu.prototype,un=uu,vd=x3,b_=ri.TypeError,cu=ri.document,hc=ri.process,hu=y_.f,E3=hu,S3=!!(cu&&cu.createEvent&&ri.dispatchEvent),w_="unhandledrejection",$3="rejectionhandled",qv=0,k_=1,D3=2,fc=1,x_=2,Cs,Kv,T3,E_=function(e){var r;return p3(e)&&du(r=e.then)?r:!1},S_=function(e,r){var t=r.value,a=r.state===k_,n=a?e.ok:e.fail,s=e.resolve,o=e.reject,l=e.domain,d,u,f;try{n?(a||(r.rejection===x_&&C3(r),r.rejection=fc),n===!0?d=t:(l&&l.enter(),d=n(t),l&&(l.exit(),f=!0)),d===e.promise?o(new b_("Promise-chain cycle")):(u=E_(d))?za(u,d,s,o):s(d)):o(t)}catch(p){l&&!f&&l.exit(),o(p)}},$_=function(e,r){e.notified||(e.notified=!0,cc(function(){for(var t=e.reactions,a;a=t.get();)S_(a,e);e.notified=!1,r&&!e.rejection&&N3(e)}))},D_=function(e,r,t){var a,n;S3?(a=cu.createEvent("Event"),a.promise=r,a.reason=t,a.initEvent(e,!1,!0),ri.dispatchEvent(a)):a={promise:r,reason:t},!w3&&(n=ri["on"+e])?n(a):e===w_&&y3("Unhandled promise rejection",t)},N3=function(e){za(p_,ri,function(){var r=e.facade,t=e.value,a=Zv(e),n;if(a&&(n=_3(function(){to?hc.emit("unhandledRejection",t,r):D_(w_,r,t)}),e.rejection=to||Zv(e)?x_:fc,n.error))throw n.value})},Zv=function(e){return e.rejection!==fc&&!e.parent},C3=function(e){za(p_,ri,function(){var r=e.facade;to?hc.emit("rejectionHandled",r):D_($3,r,e.value)})},cn=function(e,r,t){return function(a){e(r,a,t)}},hn=function(e,r,t){e.done||(e.done=!0,t&&(e=t),e.value=r,e.state=D3,$_(e,!0))},fu=function(e,r,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===r)throw new b_("Promise can't be resolved itself");var a=E_(r);a?cc(function(){var n={done:!1};try{za(a,r,cn(fu,n,e),cn(hn,n,e))}catch(s){hn(n,s,e)}}):(e.value=r,e.state=k_,$_(e,!1))}catch(n){hn({done:!1},n,e)}}};__&&(un=function(r){m3(this,vd),v3(r),za(Cs,this);var t=fd(this);try{r(cn(fu,t),cn(hn,t))}catch(a){hn(t,a)}},vd=un.prototype,Cs=function(r){k3(this,{type:Ao,done:!1,notified:!1,parent:!1,reactions:new b3,rejection:!1,state:qv,value:void 0})},Cs.prototype=c3(vd,"then",function(r,t){var a=fd(this),n=hu(g3(this,un));return a.parent=!0,n.ok=du(r)?r:!0,n.fail=du(t)&&t,n.domain=to?hc.domain:void 0,a.state===qv?a.reactions.add(n):cc(function(){S_(n,a)}),n.promise}),Kv=function(){var e=new Cs,r=fd(e);this.promise=e,this.resolve=cn(fu,r),this.reject=cn(hn,r)},y_.f=hu=function(e){return e===un||e===T3?new Kv(e):E3(e)});u3({global:!0,wrap:!0,forced:__},{Promise:un});h3(un,Ao,!1,!0);f3(Ao);var O3=Rn,P3=Bm,I3=Ga.CONSTRUCTOR,Vo=I3||!P3(function(e){O3.all(e).then(void 0,function(){})}),M3=U,A3=rt,V3=Ct,R3=yr,L3=Vn,F3=Ri,Y3=Vo;M3({target:"Promise",stat:!0,forced:Y3},{all:function(r){var t=this,a=R3.f(t),n=a.resolve,s=a.reject,o=L3(function(){var l=V3(t.resolve),d=[],u=0,f=1;F3(r,function(p){var m=u++,y=!1;f++,A3(l,t,p).then(function(b){y||(y=!0,d[m]=b,--f||n(d))},s)}),--f||n(d)});return o.error&&s(o.value),a.promise}});var j3=U,B3=Ga.CONSTRUCTOR,Qv=Rn;Qv&&Qv.prototype;j3({target:"Promise",proto:!0,forced:B3,real:!0},{catch:function(e){return this.then(void 0,e)}});var H3=U,W3=rt,G3=Ct,z3=yr,U3=Vn,X3=Ri,q3=Vo;H3({target:"Promise",stat:!0,forced:q3},{race:function(r){var t=this,a=z3.f(t),n=a.reject,s=U3(function(){var o=G3(t.resolve);X3(r,function(l){W3(o,t,l).then(a.resolve,n)})});return s.error&&n(s.value),a.promise}});var K3=U,Z3=rt,Q3=yr,J3=Ga.CONSTRUCTOR;K3({target:"Promise",stat:!0,forced:J3},{reject:function(r){var t=Q3.f(this);return Z3(t.reject,void 0,r),t.promise}});var e4=Ht,t4=tt,r4=yr,T_=function(e,r){if(e4(e),t4(r)&&r.constructor===e)return r;var t=r4.f(e),a=t.resolve;return a(r),t.promise},i4=U,n4=bt,a4=kk,s4=Rn,o4=Ga.CONSTRUCTOR,l4=T_,d4=n4("Promise"),u4=!o4;i4({target:"Promise",stat:!0,forced:a4},{resolve:function(r){return l4(u4&&this===d4?s4:this,r)}});var c4=U,h4=rt,f4=Ct,v4=yr,p4=Vn,m4=Ri,g4=Vo;c4({target:"Promise",stat:!0,forced:g4},{allSettled:function(r){var t=this,a=v4.f(t),n=a.resolve,s=a.reject,o=p4(function(){var l=f4(t.resolve),d=[],u=0,f=1;m4(r,function(p){var m=u++,y=!1;f++,h4(l,t,p).then(function(b){y||(y=!0,d[m]={status:"fulfilled",value:b},--f||n(d))},function(b){y||(y=!0,d[m]={status:"rejected",reason:b},--f||n(d))})}),--f||n(d)});return o.error&&s(o.value),a.promise}});var y4=U,_4=rt,b4=Ct,w4=bt,k4=yr,x4=Vn,E4=Ri,S4=Vo,Jv="No one promise resolved";y4({target:"Promise",stat:!0,forced:S4},{any:function(r){var t=this,a=w4("AggregateError"),n=k4.f(t),s=n.resolve,o=n.reject,l=x4(function(){var d=b4(t.resolve),u=[],f=0,p=1,m=!1;E4(r,function(y){var b=f++,E=!1;p++,_4(d,t,y).then(function(w){E||m||(m=!0,s(w))},function(w){E||m||(E=!0,u[b]=w,--p||o(new a(u,Jv)))})}),--p||o(new a(u,Jv))});return l.error&&o(l.value),n.promise}});var $4=U,vu=Rn,D4=ve,T4=bt,N4=Be,C4=o_,ep=T_,O4=vu&&vu.prototype,P4=!!vu&&D4(function(){O4.finally.call({then:function(){}},function(){})});$4({target:"Promise",proto:!0,real:!0,forced:P4},{finally:function(e){var r=C4(this,T4("Promise")),t=N4(e);return this.then(t?function(a){return ep(r,e()).then(function(){return a})}:e,t?function(a){return ep(r,e()).then(function(){throw a})}:e)}});var I4=be,M4=I4.Promise,A4=M4,V4=A4,R4=U,L4=yr;R4({target:"Promise",stat:!0},{withResolvers:function(){var r=L4.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var F4=V4,Y4=F4,j4=U,B4=yr,H4=Vn;j4({target:"Promise",stat:!0,forced:!0},{try:function(e){var r=B4.f(this),t=H4(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}});var W4=Y4,G4=W4,z4=G4,U4=qg,X4=U4,q4=X4,K4=q4,Z4=K4;(function(e){var r=_F.default,t=Zm,a=Hu,n=Ky,s=Jy,o=EF,l=Vg,d=Zy,u=z4,f=Z4,p=Lg;function m(){e.exports=m=function(){return b},e.exports.__esModule=!0,e.exports.default=e.exports;var y,b={},E=Object.prototype,w=E.hasOwnProperty,S=t||function(j,R,Y){j[R]=Y.value},D=typeof a=="function"?a:{},T=D.iterator||"@@iterator",P=D.asyncIterator||"@@asyncIterator",F=D.toStringTag||"@@toStringTag";function A(j,R,Y){return t(j,R,{value:Y,enumerable:!0,configurable:!0,writable:!0}),j[R]}try{A({},"")}catch{A=function(Y,X,ie){return Y[X]=ie}}function V(j,R,Y,X){var ie=R&&R.prototype instanceof de?R:de,te=n(ie.prototype),Ye=new jn(X||[]);return S(te,"_invoke",{value:Fn(j,Y,Ye)}),te}function N(j,R,Y){try{return{type:"normal",arg:j.call(R,Y)}}catch(X){return{type:"throw",arg:X}}}b.wrap=V;var I="suspendedStart",M="suspendedYield",H="executing",W="completed",q={};function de(){}function Ae(){}function Je(){}var Fe={};A(Fe,T,function(){return this});var xt=s,_r=xt&&xt(xt(Wr([])));_r&&_r!==E&&w.call(_r,T)&&(Fe=_r);var We=Je.prototype=de.prototype=n(Fe);function ur(j){var R;o(R=["next","throw","return"]).call(R,function(Y){A(j,Y,function(X){return this._invoke(Y,X)})})}function Zt(j,R){function Y(ie,te,Ye,it){var st=N(j[ie],j,te);if(st.type!=="throw"){var wr=st.arg,cr=wr.value;return cr&&r(cr)=="object"&&w.call(cr,"__await")?R.resolve(cr.__await).then(function(It){Y("next",It,Ye,it)},function(It){Y("throw",It,Ye,it)}):R.resolve(cr).then(function(It){wr.value=It,Ye(wr)},function(It){return Y("throw",It,Ye,it)})}it(st.arg)}var X;S(this,"_invoke",{value:function(te,Ye){function it(){return new R(function(st,wr){Y(te,Ye,st,wr)})}return X=X?X.then(it,it):it()}})}function Fn(j,R,Y){var X=I;return function(ie,te){if(X===H)throw new Error("Generator is already running");if(X===W){if(ie==="throw")throw te;return{value:y,done:!0}}for(Y.method=ie,Y.arg=te;;){var Ye=Y.delegate;if(Ye){var it=br(Ye,Y);if(it){if(it===q)continue;return it}}if(Y.method==="next")Y.sent=Y._sent=Y.arg;else if(Y.method==="throw"){if(X===I)throw X=W,Y.arg;Y.dispatchException(Y.arg)}else Y.method==="return"&&Y.abrupt("return",Y.arg);X=H;var st=N(j,R,Y);if(st.type==="normal"){if(X=Y.done?W:M,st.arg===q)continue;return{value:st.arg,done:Y.done}}st.type==="throw"&&(X=W,Y.method="throw",Y.arg=st.arg)}}}function br(j,R){var Y=R.method,X=j.iterator[Y];if(X===y)return R.delegate=null,Y==="throw"&&j.iterator.return&&(R.method="return",R.arg=y,br(j,R),R.method==="throw")||Y!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+Y+"' method")),q;var ie=N(X,j.iterator,R.arg);if(ie.type==="throw")return R.method="throw",R.arg=ie.arg,R.delegate=null,q;var te=ie.arg;return te?te.done?(R[j.resultName]=te.value,R.next=j.nextLoc,R.method!=="return"&&(R.method="next",R.arg=y),R.delegate=null,q):te:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,q)}function K(j){var R,Y={tryLoc:j[0]};1 in j&&(Y.catchLoc=j[1]),2 in j&&(Y.finallyLoc=j[2],Y.afterLoc=j[3]),l(R=this.tryEntries).call(R,Y)}function Yn(j){var R=j.completion||{};R.type="normal",delete R.arg,j.completion=R}function jn(j){this.tryEntries=[{tryLoc:"root"}],o(j).call(j,K,this),this.reset(!0)}function Wr(j){if(j||j===""){var R=j[T];if(R)return R.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var Y=-1,X=function ie(){for(;++Y<j.length;)if(w.call(j,Y))return ie.value=j[Y],ie.done=!1,ie;return ie.value=y,ie.done=!0,ie};return X.next=X}}throw new TypeError(r(j)+" is not iterable")}return Ae.prototype=Je,S(We,"constructor",{value:Je,configurable:!0}),S(Je,"constructor",{value:Ae,configurable:!0}),Ae.displayName=A(Je,F,"GeneratorFunction"),b.isGeneratorFunction=function(j){var R=typeof j=="function"&&j.constructor;return!!R&&(R===Ae||(R.displayName||R.name)==="GeneratorFunction")},b.mark=function(j){return d?d(j,Je):(j.__proto__=Je,A(j,F,"GeneratorFunction")),j.prototype=n(We),j},b.awrap=function(j){return{__await:j}},ur(Zt.prototype),A(Zt.prototype,P,function(){return this}),b.AsyncIterator=Zt,b.async=function(j,R,Y,X,ie){ie===void 0&&(ie=u);var te=new Zt(V(j,R,Y,X),ie);return b.isGeneratorFunction(R)?te:te.next().then(function(Ye){return Ye.done?Ye.value:te.next()})},ur(We),A(We,F,"Generator"),A(We,T,function(){return this}),A(We,"toString",function(){return"[object Generator]"}),b.keys=function(j){var R=Object(j),Y=[];for(var X in R)l(Y).call(Y,X);return f(Y).call(Y),function ie(){for(;Y.length;){var te=Y.pop();if(te in R)return ie.value=te,ie.done=!1,ie}return ie.done=!0,ie}},b.values=Wr,jn.prototype={constructor:jn,reset:function(R){var Y;if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,o(Y=this.tryEntries).call(Y,Yn),!R)for(var X in this)X.charAt(0)==="t"&&w.call(this,X)&&!isNaN(+p(X).call(X,1))&&(this[X]=y)},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var Y=this;function X(wr,cr){return Ye.type="throw",Ye.arg=R,Y.next=wr,cr&&(Y.method="next",Y.arg=y),!!cr}for(var ie=this.tryEntries.length-1;ie>=0;--ie){var te=this.tryEntries[ie],Ye=te.completion;if(te.tryLoc==="root")return X("end");if(te.tryLoc<=this.prev){var it=w.call(te,"catchLoc"),st=w.call(te,"finallyLoc");if(it&&st){if(this.prev<te.catchLoc)return X(te.catchLoc,!0);if(this.prev<te.finallyLoc)return X(te.finallyLoc)}else if(it){if(this.prev<te.catchLoc)return X(te.catchLoc,!0)}else{if(!st)throw new Error("try statement without catch or finally");if(this.prev<te.finallyLoc)return X(te.finallyLoc)}}}},abrupt:function(R,Y){for(var X=this.tryEntries.length-1;X>=0;--X){var ie=this.tryEntries[X];if(ie.tryLoc<=this.prev&&w.call(ie,"finallyLoc")&&this.prev<ie.finallyLoc){var te=ie;break}}te&&(R==="break"||R==="continue")&&te.tryLoc<=Y&&Y<=te.finallyLoc&&(te=null);var Ye=te?te.completion:{};return Ye.type=R,Ye.arg=Y,te?(this.method="next",this.next=te.finallyLoc,q):this.complete(Ye)},complete:function(R,Y){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&Y&&(this.next=Y),q},finish:function(R){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var X=this.tryEntries[Y];if(X.finallyLoc===R)return this.complete(X.completion,X.afterLoc),Yn(X),q}},catch:function(R){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var X=this.tryEntries[Y];if(X.tryLoc===R){var ie=X.completion;if(ie.type==="throw"){var te=ie.arg;Yn(X)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(R,Y,X){return this.delegate={iterator:Wr(R),resultName:Y,nextLoc:X},this.method==="next"&&(this.arg=y),q}},b}e.exports=m,e.exports.__esModule=!0,e.exports.default=e.exports})(e_);var Q4=e_.exports,Bs=Q4(),J4=Bs;try{regeneratorRuntime=Bs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Bs:Function("r","regeneratorRuntime = r")(Bs)}var Et=z(J4),e8=Ct,t8=_t,r8=_o,i8=Ot,n8=TypeError,a8=function(e){return function(r,t,a,n){e8(t);var s=t8(r),o=r8(s),l=i8(s),d=e?l-1:0,u=e?-1:1;if(a<2)for(;;){if(d in o){n=o[d],d+=u;break}if(d+=u,e?d<0:l<=d)throw new n8("Reduce of empty array with no initial value")}for(;e?d>=0:l>d;d+=u)d in o&&(n=t(n,o[d],d,s));return n}},s8={left:a8(!1)},o8=U,l8=s8.left,d8=Mn,tp=$n,u8=Wa,c8=!u8&&tp>79&&tp<83,h8=c8||!d8("reduce");o8({target:"Array",proto:!0,forced:h8},{reduce:function(r){var t=arguments.length;return l8(this,r,t,t>1?arguments[1]:void 0)}});var f8=Le,v8=f8("Array").reduce,p8=$e,m8=v8,pd=Array.prototype,g8=function(e){var r=e.reduce;return e===pd||p8(pd,e)&&r===pd.reduce?m8:r},y8=g8,_8=y8,b8=_8,Ro=z(b8),w8=oi,k8=Ot,x8=Eo,E8=ni,N_=function(e,r,t,a,n,s,o,l){for(var d=n,u=0,f=o?E8(o,l):!1,p,m;u<a;)u in t&&(p=f?f(t[u],u,r):t[u],s>0&&w8(p)?(m=k8(p),d=N_(e,r,p,m,d,s-1)-1):(x8(d+1),e[d]=p),d++),u++;return d},S8=N_,$8=U,D8=S8,T8=Ct,N8=_t,C8=Ot,O8=So;$8({target:"Array",proto:!0},{flatMap:function(r){var t=N8(this),a=C8(t),n;return T8(r),n=O8(t,0),n.length=D8(n,t,t,a,0,1,r,arguments.length>1?arguments[1]:void 0),n}});var P8=Le,I8=P8("Array").flatMap,M8=$e,A8=I8,md=Array.prototype,V8=function(e){var r=e.flatMap;return e===md||M8(md,e)&&r===md.flatMap?A8:r},R8=V8,L8=R8,F8=L8,Y8=z(F8),C_={exports:{}},j8=ve,B8=j8(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),H8=ve,W8=tt,G8=Lr,rp=B8,Hs=Object.isExtensible,z8=H8(function(){Hs(1)}),U8=z8||rp?function(r){return!W8(r)||rp&&G8(r)==="ArrayBuffer"?!1:Hs?Hs(r):!0}:Hs,X8=ve,q8=!X8(function(){return Object.isExtensible(Object.preventExtensions({}))}),K8=U,Z8=ge,Q8=Sa,J8=tt,vc=qe,eY=Nt.f,ip=Pa,tY=Vu,pc=U8,rY=mo,iY=q8,O_=!1,Vr=rY("meta"),nY=0,mc=function(e){eY(e,Vr,{value:{objectID:"O"+nY++,weakData:{}}})},aY=function(e,r){if(!J8(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!vc(e,Vr)){if(!pc(e))return"F";if(!r)return"E";mc(e)}return e[Vr].objectID},sY=function(e,r){if(!vc(e,Vr)){if(!pc(e))return!0;if(!r)return!1;mc(e)}return e[Vr].weakData},oY=function(e){return iY&&O_&&pc(e)&&!vc(e,Vr)&&mc(e),e},lY=function(){dY.enable=function(){},O_=!0;var e=ip.f,r=Z8([].splice),t={};t[Vr]=1,e(t).length&&(ip.f=function(a){for(var n=e(a),s=0,o=n.length;s<o;s++)if(n[s]===Vr){r(n,s,1);break}return n},K8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tY.f}))},dY=C_.exports={enable:lY,fastKey:aY,getWeakData:sY,onFreeze:oY};Q8[Vr]=!0;var P_=C_.exports,uY=U,cY=Ie,hY=P_,fY=ve,vY=Yr,pY=Ri,mY=dc,gY=Be,yY=tt,_Y=En,bY=Ai,wY=Nt.f,kY=jr.forEach,xY=Qe,I_=Nn,EY=I_.set,SY=I_.getterFor,M_=function(e,r,t){var a=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,s=a?"set":"add",o=cY[e],l=o&&o.prototype,d={},u;if(!xY||!gY(o)||!(n||l.forEach&&!fY(function(){new o().entries().next()})))u=t.getConstructor(r,e,a,s),hY.enable();else{u=r(function(m,y){EY(mY(m,f),{type:e,collection:new o}),_Y(y)||pY(y,m[s],{that:m,AS_ENTRIES:a})});var f=u.prototype,p=SY(e);kY(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(m){var y=m==="add"||m==="set";m in l&&!(n&&m==="clear")&&vY(f,m,function(b,E){var w=p(this).collection;if(!y&&n&&!yY(b))return m==="get"?void 0:!1;var S=w[m](b===0?0:b,E);return y?this:S})}),n||wY(f,"size",{configurable:!0,get:function(){return p(this).collection.size}})}return bY(u,e,!1,!0),d[e]=u,uY({global:!0,forced:!0},d),n||t.setStrong(u,e,a),u},$Y=On,DY=function(e,r,t){for(var a in r)t&&t.unsafe&&e[a]?e[a]=r[a]:$Y(e,a,r[a],t);return e},TY=Mi,NY=Ru,np=DY,CY=ni,OY=dc,PY=En,IY=Ri,MY=Pu,Os=Iu,AY=a_,Qn=Qe,ap=P_.fastKey,A_=Nn,sp=A_.set,gd=A_.getterFor,V_={getConstructor:function(e,r,t,a){var n=e(function(u,f){OY(u,s),sp(u,{type:r,index:TY(null),first:void 0,last:void 0,size:0}),Qn||(u.size=0),PY(f)||IY(f,u[a],{that:u,AS_ENTRIES:t})}),s=n.prototype,o=gd(r),l=function(u,f,p){var m=o(u),y=d(u,f),b,E;return y?y.value=p:(m.last=y={index:E=ap(f,!0),key:f,value:p,previous:b=m.last,next:void 0,removed:!1},m.first||(m.first=y),b&&(b.next=y),Qn?m.size++:u.size++,E!=="F"&&(m.index[E]=y)),u},d=function(u,f){var p=o(u),m=ap(f),y;if(m!=="F")return p.index[m];for(y=p.first;y;y=y.next)if(y.key===f)return y};return np(s,{clear:function(){for(var f=this,p=o(f),m=p.index,y=p.first;y;)y.removed=!0,y.previous&&(y.previous=y.previous.next=void 0),delete m[y.index],y=y.next;p.first=p.last=void 0,Qn?p.size=0:f.size=0},delete:function(u){var f=this,p=o(f),m=d(f,u);if(m){var y=m.next,b=m.previous;delete p.index[m.index],m.removed=!0,b&&(b.next=y),y&&(y.previous=b),p.first===m&&(p.first=y),p.last===m&&(p.last=b),Qn?p.size--:f.size--}return!!m},forEach:function(f){for(var p=o(this),m=CY(f,arguments.length>1?arguments[1]:void 0),y;y=y?y.next:p.first;)for(m(y.value,y.key,this);y&&y.removed;)y=y.previous},has:function(f){return!!d(this,f)}}),np(s,t?{get:function(f){var p=d(this,f);return p&&p.value},set:function(f,p){return l(this,f===0?0:f,p)}}:{add:function(f){return l(this,f=f===0?0:f,f)}}),Qn&&NY(s,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,r,t){var a=r+" Iterator",n=gd(r),s=gd(a);MY(e,r,function(o,l){sp(this,{type:a,target:o,state:n(o),kind:l,last:void 0})},function(){for(var o=s(this),l=o.kind,d=o.last;d&&d.removed;)d=d.previous;return!o.target||!(o.last=d=d?d.next:o.state.first)?(o.target=void 0,Os(void 0,!0)):Os(l==="keys"?d.key:l==="values"?d.value:[d.key,d.value],!1)},t?"entries":"values",!t,!0),AY(r)}},VY=M_,RY=V_;VY("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},RY);var LY=be,FY=LY.Map,YY=FY,jY=YY,BY=jY,R_=z(BY),HY=M_,WY=V_;HY("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},WY);var GY=be,zY=GY.Set,UY=zY,XY=UY,qY=XY,ei=z(qY),KY=Cg,xi=z(KY),ZY=Au,QY=ZY,JY=QY,ej=JY,tj=ej,rj=tj,ij=rj,nj=ij,aj=nj,sj=aj,yd=z(sj),op=Jm,oj=Math.floor,pu=function(e,r){var t=e.length,a=oj(t/2);return t<8?lj(e,r):dj(e,pu(op(e,0,a),r),pu(op(e,a),r),r)},lj=function(e,r){for(var t=e.length,a=1,n,s;a<t;){for(s=a,n=e[a];s&&r(e[s-1],n)>0;)e[s]=e[--s];s!==a++&&(e[s]=n)}return e},dj=function(e,r,t,a){for(var n=r.length,s=t.length,o=0,l=0;o<n||l<s;)e[o+l]=o<n&&l<s?a(r[o],t[l])<=0?r[o++]:t[l++]:o<n?r[o++]:t[l++];return e},uj=pu,cj=ii,lp=cj.match(/firefox\/(\d+)/i),hj=!!lp&&+lp[1],fj=ii,vj=/MSIE|Trident/.test(fj),pj=ii,dp=pj.match(/AppleWebKit\/(\d+)\./),mj=!!dp&&+dp[1],gj=U,L_=ge,yj=Ct,_j=_t,up=Ot,bj=Kg,cp=qt,gc=ve,wj=uj,kj=Mn,hp=hj,xj=vj,fp=$n,vp=mj,Zr=[],pp=L_(Zr.sort),Ej=L_(Zr.push),Sj=gc(function(){Zr.sort(void 0)}),$j=gc(function(){Zr.sort(null)}),Dj=kj("sort"),F_=!gc(function(){if(fp)return fp<70;if(!(hp&&hp>3)){if(xj)return!0;if(vp)return vp<603;var e="",r,t,a,n;for(r=65;r<76;r++){switch(t=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)Zr.push({k:t+n,v:a})}for(Zr.sort(function(s,o){return o.v-s.v}),n=0;n<Zr.length;n++)t=Zr[n].k.charAt(0),e.charAt(e.length-1)!==t&&(e+=t);return e!=="DGBEFHACIJK"}}),Tj=Sj||!$j||!Dj||!F_,Nj=function(e){return function(r,t){return t===void 0?-1:r===void 0?1:e!==void 0?+e(r,t)||0:cp(r)>cp(t)?1:-1}};gj({target:"Array",proto:!0,forced:Tj},{sort:function(r){r!==void 0&&yj(r);var t=_j(this);if(F_)return r===void 0?pp(t):pp(t,r);var a=[],n=up(t),s,o;for(o=0;o<n;o++)o in t&&Ej(a,t[o]);for(wj(a,Nj(r)),s=up(a),o=0;o<s;)t[o]=a[o++];for(;o<n;)bj(t,o++);return t}});var Cj=Le,Oj=Cj("Array").sort,Pj=$e,Ij=Oj,_d=Array.prototype,Mj=function(e){var r=e.sort;return e===_d||Pj(_d,e)&&r===_d.sort?Ij:r},Aj=Mj,Vj=Aj,Rj=Vj,Ue=z(Rj),Lj=U,Fj=jr.some,Yj=Mn,jj=Yj("some");Lj({target:"Array",proto:!0,forced:!jj},{some:function(r){return Fj(this,r,arguments.length>1?arguments[1]:void 0)}});var Bj=Le,Hj=Bj("Array").some,Wj=$e,Gj=Hj,bd=Array.prototype,zj=function(e){var r=e.some;return e===bd||Wj(bd,e)&&r===bd.some?Gj:r},Uj=zj,Xj=Uj,qj=Xj,yc=z(qj),Kj=Le,Zj=Kj("Array").keys,Qj=Zj,Jj=Qj,eB=Fr,tB=qe,rB=$e,iB=Jj,wd=Array.prototype,nB={DOMTokenList:!0,NodeList:!0},aB=function(e){var r=e.keys;return e===wd||rB(wd,e)&&r===wd.keys||tB(nB,eB(e))?iB:r},sB=aB,mi=z(sB),oB=Le,lB=oB("Array").values,dB=lB,uB=dB,cB=Fr,hB=qe,fB=$e,vB=uB,kd=Array.prototype,pB={DOMTokenList:!0,NodeList:!0},mB=function(e){var r=e.values;return e===kd||fB(kd,e)&&r===kd.values||hB(pB,cB(e))?vB:r},gB=mB,mp=z(gB),yB=Le,_B=yB("Array").entries,bB=_B,wB=bB,kB=Fr,xB=qe,EB=$e,SB=wB,xd=Array.prototype,$B={DOMTokenList:!0,NodeList:!0},DB=function(e){var r=e.entries;return e===xd||EB(xd,e)&&r===xd.entries||xB($B,kB(e))?SB:r},TB=DB,NB=z(TB),CB=Km,Lo=z(CB),OB=U,PB=bt,Ed=Cn,IB=zg,gp=s_,MB=Ht,yp=tt,AB=Mi,Y_=ve,_c=PB("Reflect","construct"),VB=Object.prototype,RB=[].push,j_=Y_(function(){function e(){}return!(_c(function(){},[],e)instanceof e)}),B_=!Y_(function(){_c(function(){})}),_p=j_||B_;OB({target:"Reflect",stat:!0,forced:_p,sham:_p},{construct:function(r,t){gp(r),MB(t);var a=arguments.length<3?r:gp(arguments[2]);if(B_&&!j_)return _c(r,t,a);if(r===a){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var n=[null];return Ed(RB,n,t),new(Ed(IB,r,n))}var s=a.prototype,o=AB(yp(s)?s:VB),l=Ed(r,o,t);return yp(l)?l:o}});var LB=be,FB=LB.Reflect.construct,YB=FB,jB=YB,BB=jB,Z=z(BB),HB=be,WB=HB.Object.getOwnPropertySymbols,GB=WB,zB=GB,UB=zB,ro=z(UB),H_={exports:{}},XB=U,qB=ve,KB=lr,W_=Ii.f,G_=Qe,ZB=!G_||qB(function(){W_(1)});XB({target:"Object",stat:!0,forced:ZB,sham:!G_},{getOwnPropertyDescriptor:function(r,t){return W_(KB(r),t)}});var QB=be,z_=QB.Object,JB=H_.exports=function(r,t){return z_.getOwnPropertyDescriptor(r,t)};z_.getOwnPropertyDescriptor.sham&&(JB.sham=!0);var eH=H_.exports,tH=eH,rH=tH,iH=rH,Fo=z(iH),nH=U,aH=Qe,sH=Wu,oH=lr,lH=Ii,dH=In;nH({target:"Object",stat:!0,sham:!aH},{getOwnPropertyDescriptors:function(r){for(var t=oH(r),a=lH.f,n=sH(t),s={},o=0,l,d;n.length>o;)d=a(t,l=n[o++]),d!==void 0&&dH(s,l,d);return s}});var uH=be,cH=uH.Object.getOwnPropertyDescriptors,hH=cH,fH=hH,vH=fH,io=z(vH),U_={exports:{}},pH=U,mH=Qe,bp=bo.f;pH({target:"Object",stat:!0,forced:Object.defineProperties!==bp,sham:!mH},{defineProperties:bp});var gH=be,X_=gH.Object,yH=U_.exports=function(r,t){return X_.defineProperties(r,t)};X_.defineProperties.sham&&(yH.sham=!0);var _H=U_.exports,bH=_H,wH=bH,kH=wH,q_=z(kH);let Ps;const xH=new Uint8Array(16);function EH(){if(!Ps&&(Ps=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ps))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ps(xH)}const nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function SH(e,r=0){return nt[e[r+0]]+nt[e[r+1]]+nt[e[r+2]]+nt[e[r+3]]+"-"+nt[e[r+4]]+nt[e[r+5]]+"-"+nt[e[r+6]]+nt[e[r+7]]+"-"+nt[e[r+8]]+nt[e[r+9]]+"-"+nt[e[r+10]]+nt[e[r+11]]+nt[e[r+12]]+nt[e[r+13]]+nt[e[r+14]]+nt[e[r+15]]}const $H=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var wp={randomUUID:$H};function Ei(e,r,t){if(wp.randomUUID&&!e)return wp.randomUUID();e=e||{};const a=e.random||(e.rng||EH)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,SH(a)}var K_;function kp(e,r){var t=Ze(e);if(ro){var a=ro(e);r&&(a=J(a).call(a,function(n){return Fo(e,n).enumerable})),t.push.apply(t,a)}return t}function xp(e){for(var r=1;r<arguments.length;r++){var t,a,n=arguments[r]!=null?arguments[r]:{};r%2?B(t=kp(Object(n),!0)).call(t,function(s){fe(e,s,n[s])}):io?q_(e,io(n)):B(a=kp(Object(n))).call(a,function(s){Lo(e,s,Fo(n,s))})}return e}function Z_(e){var r=DH();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function DH(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}function St(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=TH(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
61
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function TH(e,r){var t;if(e){if(typeof e=="string")return Ep(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ep(e,r)}}function Ep(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function NH(e){return new OH(e)}var CH=function(){function e(r,t,a){var n,s,o;ue(this,e),fe(this,"_source",void 0),fe(this,"_transformers",void 0),fe(this,"_target",void 0),fe(this,"_listeners",{add:O(n=this._add).call(n,this),remove:O(s=this._remove).call(s,this),update:O(o=this._update).call(o,this)}),this._source=r,this._transformers=t,this._target=a}return ce(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var a;return Ro(a=this._transformers).call(a,function(n,s){return s(n)},t)}},{key:"_add",value:function(t,a){a!=null&&this._target.add(this._transformItems(this._source.get(a.items)))}},{key:"_update",value:function(t,a){a!=null&&this._target.update(this._transformItems(this._source.get(a.items)))}},{key:"_remove",value:function(t,a){a!=null&&this._target.remove(this._transformItems(a.oldData))}}]),e}(),OH=function(){function e(r){ue(this,e),fe(this,"_source",void 0),fe(this,"_transformers",[]),this._source=r}return ce(e,[{key:"filter",value:function(t){return this._transformers.push(function(a){return J(a).call(a,t)}),this}},{key:"map",value:function(t){return this._transformers.push(function(a){return ye(a).call(a,t)}),this}},{key:"flatMap",value:function(t){return this._transformers.push(function(a){return Y8(a).call(a,t)}),this}},{key:"to",value:function(t){return new CH(this._source,this._transformers,t)}}]),e}();function mu(e){return typeof e=="string"||typeof e=="number"}var PH=function(){function e(r){ue(this,e),fe(this,"delay",void 0),fe(this,"max",void 0),fe(this,"_queue",[]),fe(this,"_timeout",null),fe(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(r)}return ce(e,[{key:"setOptions",value:function(t){t&&typeof t.delay<"u"&&(this.delay=t.delay),t&&typeof t.max<"u"&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,a=this._extended.methods,n=0;n<a.length;n++){var s=a[n];s.original?t[s.name]=s.original:delete t[s.name]}this._extended=null}}},{key:"replace",value:function(t,a){var n=this,s=t[a];if(!s)throw new Error("Method "+a+" undefined");t[a]=function(){for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];n.queue({args:l,fn:s,context:this})}}},{key:"queue",value:function(t){typeof t=="function"?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=ct(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,a;B(t=pt(a=this._queue).call(a,0)).call(t,function(n){n.fn.apply(n.context||n.fn,n.args||[])})}}],[{key:"extend",value:function(t,a){var n=new e(a);if(t.flush!==void 0)throw new Error("Target object already has a property flush");t.flush=function(){n.flush()};var s=[{name:"flush",original:void 0}];if(a&&a.replace)for(var o=0;o<a.replace.length;o++){var l=a.replace[o];s.push({name:l,original:t[l]}),n.replace(t,l)}return n._extended={object:t,methods:s},n}}]),e}(),Q_=function(){function e(){ue(this,e),fe(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),fe(this,"subscribe",e.prototype.on),fe(this,"unsubscribe",e.prototype.off)}return ce(e,[{key:"_trigger",value:function(t,a,n){var s,o;if(t==="*")throw new Error("Cannot trigger event *");B(s=Ne(o=[]).call(o,Pe(this._subscribers[t]),Pe(this._subscribers["*"]))).call(s,function(l){l(t,a,n??null)})}},{key:"on",value:function(t,a){typeof a=="function"&&this._subscribers[t].push(a)}},{key:"off",value:function(t,a){var n;this._subscribers[t]=J(n=this._subscribers[t]).call(n,function(s){return s!==a})}}]),e}();K_=xi;var Sp=function(){function e(r){ue(this,e),fe(this,"_pairs",void 0),this._pairs=r}return ce(e,[{key:K_,value:Et.mark(function r(){var t,a,n,s,o;return Et.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:t=St(this._pairs),d.prev=1,t.s();case 3:if((a=t.n()).done){d.next=9;break}return n=ut(a.value,2),s=n[0],o=n[1],d.next=7,[s,o];case 7:d.next=3;break;case 9:d.next=14;break;case 11:d.prev=11,d.t0=d.catch(1),t.e(d.t0);case 14:return d.prev=14,t.f(),d.finish(14);case 17:case"end":return d.stop()}},r,this,[[1,11,14,17]])})},{key:"entries",value:Et.mark(function r(){var t,a,n,s,o;return Et.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:t=St(this._pairs),d.prev=1,t.s();case 3:if((a=t.n()).done){d.next=9;break}return n=ut(a.value,2),s=n[0],o=n[1],d.next=7,[s,o];case 7:d.next=3;break;case 9:d.next=14;break;case 11:d.prev=11,d.t0=d.catch(1),t.e(d.t0);case 14:return d.prev=14,t.f(),d.finish(14);case 17:case"end":return d.stop()}},r,this,[[1,11,14,17]])})},{key:"keys",value:Et.mark(function r(){var t,a,n,s;return Et.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:t=St(this._pairs),l.prev=1,t.s();case 3:if((a=t.n()).done){l.next=9;break}return n=ut(a.value,1),s=n[0],l.next=7,s;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),t.e(l.t0);case 14:return l.prev=14,t.f(),l.finish(14);case 17:case"end":return l.stop()}},r,this,[[1,11,14,17]])})},{key:"values",value:Et.mark(function r(){var t,a,n,s;return Et.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:t=St(this._pairs),l.prev=1,t.s();case 3:if((a=t.n()).done){l.next=9;break}return n=ut(a.value,2),s=n[1],l.next=7,s;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),t.e(l.t0);case 14:return l.prev=14,t.f(),l.finish(14);case 17:case"end":return l.stop()}},r,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var t;return ye(t=Pe(this._pairs)).call(t,function(a){return a[0]})}},{key:"toItemArray",value:function(){var t;return ye(t=Pe(this._pairs)).call(t,function(a){return a[1]})}},{key:"toEntryArray",value:function(){return Pe(this._pairs)}},{key:"toObjectMap",value:function(){var t=La(null),a=St(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=ut(n.value,2),o=s[0],l=s[1];t[o]=l}}catch(d){a.e(d)}finally{a.f()}return t}},{key:"toMap",value:function(){return new R_(this._pairs)}},{key:"toIdSet",value:function(){return new ei(this.toIdArray())}},{key:"toItemSet",value:function(){return new ei(this.toItemArray())}},{key:"cache",value:function(){return new e(Pe(this._pairs))}},{key:"distinct",value:function(t){var a=new ei,n=St(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=ut(s.value,2),l=o[0],d=o[1];a.add(t(d,l))}}catch(u){n.e(u)}finally{n.f()}return a}},{key:"filter",value:function(t){var a=this._pairs;return new e(fe({},xi,Et.mark(function n(){var s,o,l,d,u;return Et.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:s=St(a),p.prev=1,s.s();case 3:if((o=s.n()).done){p.next=10;break}if(l=ut(o.value,2),d=l[0],u=l[1],!t(u,d)){p.next=8;break}return p.next=8,[d,u];case 8:p.next=3;break;case 10:p.next=15;break;case 12:p.prev=12,p.t0=p.catch(1),s.e(p.t0);case 15:return p.prev=15,s.f(),p.finish(15);case 18:case"end":return p.stop()}},n,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(t){var a=St(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=ut(n.value,2),o=s[0],l=s[1];t(l,o)}}catch(d){a.e(d)}finally{a.f()}}},{key:"map",value:function(t){var a=this._pairs;return new e(fe({},xi,Et.mark(function n(){var s,o,l,d,u;return Et.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:s=St(a),p.prev=1,s.s();case 3:if((o=s.n()).done){p.next=9;break}return l=ut(o.value,2),d=l[0],u=l[1],p.next=7,[d,t(u,d)];case 7:p.next=3;break;case 9:p.next=14;break;case 11:p.prev=11,p.t0=p.catch(1),s.e(p.t0);case 14:return p.prev=14,s.f(),p.finish(14);case 17:case"end":return p.stop()}},n,null,[[1,11,14,17]])})))}},{key:"max",value:function(t){var a=yd(this._pairs),n=a.next();if(n.done)return null;for(var s=n.value[1],o=t(n.value[1],n.value[0]);!(n=a.next()).done;){var l=ut(n.value,2),d=l[0],u=l[1],f=t(u,d);f>o&&(o=f,s=u)}return s}},{key:"min",value:function(t){var a=yd(this._pairs),n=a.next();if(n.done)return null;for(var s=n.value[1],o=t(n.value[1],n.value[0]);!(n=a.next()).done;){var l=ut(n.value,2),d=l[0],u=l[1],f=t(u,d);f<o&&(o=f,s=u)}return s}},{key:"reduce",value:function(t,a){var n=St(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=ut(s.value,2),l=o[0],d=o[1];a=t(a,d,l)}}catch(u){n.e(u)}finally{n.f()}return a}},{key:"sort",value:function(t){var a=this;return new e(fe({},xi,function(){var n;return yd(Ue(n=Pe(a._pairs)).call(n,function(s,o){var l=ut(s,2),d=l[0],u=l[1],f=ut(o,2),p=f[0],m=f[1];return t(u,m,d,p)}))}))}}]),e}();function IH(e,r){return e[r]==null&&(e[r]=Ei()),e}var Ci=function(e){wt(t,e);var r=Z_(t);function t(a,n){var s;return ue(this,t),s=r.call(this),fe(Ee(s),"flush",void 0),fe(Ee(s),"length",void 0),fe(Ee(s),"_options",void 0),fe(Ee(s),"_data",void 0),fe(Ee(s),"_idProp",void 0),fe(Ee(s),"_queue",null),a&&!re(a)&&(n=a,a=[]),s._options=n||{},s._data=new R_,s.length=0,s._idProp=s._options.fieldId||"id",a&&a.length&&s.add(a),s.setOptions(n),s}return ce(t,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(n){n&&n.queue!==void 0&&(n.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=PH.extend(this,{replace:["add","update","remove"]})),n.queue&&ee(n.queue)==="object"&&this._queue.setOptions(n.queue)))}},{key:"add",value:function(n,s){var o=this,l=[],d;if(re(n)){var u=ye(n).call(n,function(m){return m[o._idProp]});if(yc(u).call(u,function(m){return o._data.has(m)}))throw new Error("A duplicate id was found in the parameter array.");for(var f=0,p=n.length;f<p;f++)d=this._addItem(n[f]),l.push(d)}else if(n&&ee(n)==="object")d=this._addItem(n),l.push(d);else throw new Error("Unknown dataType");return l.length&&this._trigger("add",{items:l},s),l}},{key:"update",value:function(n,s){var o=this,l=[],d=[],u=[],f=[],p=this._idProp,m=function(S){var D=S[p];if(D!=null&&o._data.has(D)){var T=S,P=Ar({},o._data.get(D)),F=o._updateItem(T);d.push(F),f.push(T),u.push(P)}else{var A=o._addItem(S);l.push(A)}};if(re(n))for(var y=0,b=n.length;y<b;y++)n[y]&&ee(n[y])==="object"?m(n[y]):console.warn("Ignoring input item, which is not an object at index "+y);else if(n&&ee(n)==="object")m(n);else throw new Error("Unknown dataType");if(l.length&&this._trigger("add",{items:l},s),d.length){var E={items:d,oldData:u,data:f};this._trigger("update",E,s)}return Ne(l).call(l,d)}},{key:"updateOnly",value:function(n,s){var o,l=this;re(n)||(n=[n]);var d=ye(o=ye(n).call(n,function(f){var p=l._data.get(f[l._idProp]);if(p==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:p,update:f}})).call(o,function(f){var p=f.oldData,m=f.update,y=p[l._idProp],b=Yy(p,m);return l._data.set(y,b),{id:y,oldData:p,updatedData:b}});if(d.length){var u={items:ye(d).call(d,function(f){return f.id}),oldData:ye(d).call(d,function(f){return f.oldData}),data:ye(d).call(d,function(f){return f.updatedData})};return this._trigger("update",u,s),u.items}else return[]}},{key:"get",value:function(n,s){var o=void 0,l=void 0,d=void 0;mu(n)?(o=n,d=s):re(n)?(l=n,d=s):d=n;var u=d&&d.returnType==="Object"?"Object":"Array",f=d&&J(d),p=[],m=void 0,y=void 0,b=void 0;if(o!=null)m=this._data.get(o),m&&f&&!f(m)&&(m=void 0);else if(l!=null)for(var E=0,w=l.length;E<w;E++)m=this._data.get(l[E]),m!=null&&(!f||f(m))&&p.push(m);else{var S;y=Pe(mi(S=this._data).call(S));for(var D=0,T=y.length;D<T;D++)b=y[D],m=this._data.get(b),m!=null&&(!f||f(m))&&p.push(m)}if(d&&d.order&&o==null&&this._sort(p,d.order),d&&d.fields){var P=d.fields;if(o!=null&&m!=null)m=this._filterFields(m,P);else for(var F=0,A=p.length;F<A;F++)p[F]=this._filterFields(p[F],P)}if(u=="Object"){for(var V={},N=0,I=p.length;N<I;N++){var M=p[N],H=M[this._idProp];V[H]=M}return V}else if(o!=null){var W;return(W=m)!==null&&W!==void 0?W:null}else return p}},{key:"getIds",value:function(n){var s=this._data,o=n&&J(n),l=n&&n.order,d=Pe(mi(s).call(s)),u=[];if(o)if(l){for(var f=[],p=0,m=d.length;p<m;p++){var y=d[p],b=this._data.get(y);b!=null&&o(b)&&f.push(b)}this._sort(f,l);for(var E=0,w=f.length;E<w;E++)u.push(f[E][this._idProp])}else for(var S=0,D=d.length;S<D;S++){var T=d[S],P=this._data.get(T);P!=null&&o(P)&&u.push(P[this._idProp])}else if(l){for(var F=[],A=0,V=d.length;A<V;A++){var N=d[A];F.push(s.get(N))}this._sort(F,l);for(var I=0,M=F.length;I<M;I++)u.push(F[I][this._idProp])}else for(var H=0,W=d.length;H<W;H++){var q=d[H],de=s.get(q);de!=null&&u.push(de[this._idProp])}return u}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(n,s){var o=s&&J(s),l=this._data,d=Pe(mi(l).call(l));if(s&&s.order)for(var u=this.get(s),f=0,p=u.length;f<p;f++){var m=u[f],y=m[this._idProp];n(m,y)}else for(var b=0,E=d.length;b<E;b++){var w=d[b],S=this._data.get(w);S!=null&&(!o||o(S))&&n(S,w)}}},{key:"map",value:function(n,s){for(var o=s&&J(s),l=[],d=this._data,u=Pe(mi(d).call(d)),f=0,p=u.length;f<p;f++){var m=u[f],y=this._data.get(m);y!=null&&(!o||o(y))&&l.push(n(y,m))}return s&&s.order&&this._sort(l,s.order),l}},{key:"_filterFields",value:function(n,s){var o;return n&&Ro(o=re(s)?s:Ze(s)).call(o,function(l,d){return l[d]=n[d],l},{})}},{key:"_sort",value:function(n,s){if(typeof s=="string"){var o=s;Ue(n).call(n,function(l,d){var u=l[o],f=d[o];return u>f?1:u<f?-1:0})}else if(typeof s=="function")Ue(n).call(n,s);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(n,s){for(var o=[],l=[],d=re(n)?n:[n],u=0,f=d.length;u<f;u++){var p=this._remove(d[u]);if(p){var m=p[this._idProp];m!=null&&(o.push(m),l.push(p))}}return o.length&&this._trigger("remove",{items:o,oldData:l},s),o}},{key:"_remove",value:function(n){var s;if(mu(n)?s=n:n&&ee(n)==="object"&&(s=n[this._idProp]),s!=null&&this._data.has(s)){var o=this._data.get(s)||null;return this._data.delete(s),--this.length,o}return null}},{key:"clear",value:function(n){for(var s,o=Pe(mi(s=this._data).call(s)),l=[],d=0,u=o.length;d<u;d++)l.push(this._data.get(o[d]));return this._data.clear(),this.length=0,this._trigger("remove",{items:o,oldData:l},n),o}},{key:"max",value:function(n){var s,o=null,l=null,d=St(mp(s=this._data).call(s)),u;try{for(d.s();!(u=d.n()).done;){var f=u.value,p=f[n];typeof p=="number"&&(l==null||p>l)&&(o=f,l=p)}}catch(m){d.e(m)}finally{d.f()}return o||null}},{key:"min",value:function(n){var s,o=null,l=null,d=St(mp(s=this._data).call(s)),u;try{for(d.s();!(u=d.n()).done;){var f=u.value,p=f[n];typeof p=="number"&&(l==null||p<l)&&(o=f,l=p)}}catch(m){d.e(m)}finally{d.f()}return o||null}},{key:"distinct",value:function(n){for(var s=this._data,o=Pe(mi(s).call(s)),l=[],d=0,u=0,f=o.length;u<f;u++){for(var p=o[u],m=s.get(p),y=m[n],b=!1,E=0;E<d;E++)if(l[E]==y){b=!0;break}!b&&y!==void 0&&(l[d]=y,d++)}return l}},{key:"_addItem",value:function(n){var s=IH(n,this._idProp),o=s[this._idProp];if(this._data.has(o))throw new Error("Cannot add item: item with id "+o+" already exists");return this._data.set(o,s),++this.length,o}},{key:"_updateItem",value:function(n){var s=n[this._idProp];if(s==null)throw new Error("Cannot update item: item has no id (item: "+Dt(n)+")");var o=this._data.get(s);if(!o)throw new Error("Cannot update item: no item with id "+s+" found");return this._data.set(s,xp(xp({},o),n)),s}},{key:"stream",value:function(n){if(n){var s=this._data;return new Sp(fe({},xi,Et.mark(function l(){var d,u,f,p;return Et.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:d=St(n),y.prev=1,d.s();case 3:if((u=d.n()).done){y.next=11;break}if(f=u.value,p=s.get(f),p==null){y.next=9;break}return y.next=9,[f,p];case 9:y.next=3;break;case 11:y.next=16;break;case 13:y.prev=13,y.t0=y.catch(1),d.e(y.t0);case 16:return y.prev=16,d.f(),y.finish(16);case 19:case"end":return y.stop()}},l,null,[[1,13,16,19]])})))}else{var o;return new Sp(fe({},xi,O(o=NB(this._data)).call(o,this._data)))}}}]),t}(Q_),MH=function(e){wt(t,e);var r=Z_(t);function t(a,n){var s,o;return ue(this,t),o=r.call(this),fe(Ee(o),"length",0),fe(Ee(o),"_listener",void 0),fe(Ee(o),"_data",void 0),fe(Ee(o),"_ids",new ei),fe(Ee(o),"_options",void 0),o._options=n||{},o._listener=O(s=o._onEvent).call(s,Ee(o)),o.setData(a),o}return ce(t,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(n){if(this._data){this._data.off&&this._data.off("*",this._listener);var s=this._data.getIds({filter:J(this._options)}),o=this._data.get(s);this._ids.clear(),this.length=0,this._trigger("remove",{items:s,oldData:o})}if(n!=null){this._data=n;for(var l=this._data.getIds({filter:J(this._options)}),d=0,u=l.length;d<u;d++){var f=l[d];this._ids.add(f)}this.length=l.length,this._trigger("add",{items:l})}else this._data=new Ci;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var n=this._data.getIds({filter:J(this._options)}),s=Pe(this._ids),o={},l=[],d=[],u=[],f=0,p=n.length;f<p;f++){var m=n[f];o[m]=!0,this._ids.has(m)||(l.push(m),this._ids.add(m))}for(var y=0,b=s.length;y<b;y++){var E=s[y],w=this._data.get(E);w==null?console.error("If you see this, report it please."):o[E]||(d.push(E),u.push(w),this._ids.delete(E))}this.length+=l.length-d.length,l.length&&this._trigger("add",{items:l}),d.length&&this._trigger("remove",{items:d,oldData:u})}},{key:"get",value:function(n,s){if(this._data==null)return null;var o=null,l;mu(n)||re(n)?(o=n,l=s):l=n;var d=Ar({},this._options,l),u=J(this._options),f=l&&J(l);return u&&f&&(d.filter=function(p){return u(p)&&f(p)}),o==null?this._data.get(d):this._data.get(o,d)}},{key:"getIds",value:function(n){if(this._data.length){var s=J(this._options),o=n!=null?J(n):null,l;return o?s?l=function(u){return s(u)&&o(u)}:l=o:l=s,this._data.getIds({filter:l,order:n&&n.order})}else return[]}},{key:"forEach",value:function(n,s){if(this._data){var o,l=J(this._options),d=s&&J(s),u;d?l?u=function(p){return l(p)&&d(p)}:u=d:u=l,B(o=this._data).call(o,n,{filter:u,order:s&&s.order})}}},{key:"map",value:function(n,s){if(this._data){var o,l=J(this._options),d=s&&J(s),u;return d?l?u=function(p){return l(p)&&d(p)}:u=d:u=l,ye(o=this._data).call(o,n,{filter:u,order:s&&s.order})}else return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(n){var s;return this._data.stream(n||fe({},xi,O(s=mi(this._ids)).call(s,this._ids)))}},{key:"dispose",value:function(){var n;(n=this._data)!==null&&n!==void 0&&n.off&&this._data.off("*",this._listener);var s="This data view has already been disposed of.",o={get:function(){throw new Error(s)},set:function(){throw new Error(s)},configurable:!1},l=St(jg(t.prototype)),d;try{for(l.s();!(d=l.n()).done;){var u=d.value;Lo(this,u,o)}}catch(f){l.e(f)}finally{l.f()}}},{key:"_onEvent",value:function(n,s,o){if(!(!s||!s.items||!this._data)){var l=s.items,d=[],u=[],f=[],p=[],m=[],y=[];switch(n){case"add":for(var b=0,E=l.length;b<E;b++){var w=l[b],S=this.get(w);S&&(this._ids.add(w),d.push(w))}break;case"update":for(var D=0,T=l.length;D<T;D++){var P=l[D],F=this.get(P);F?this._ids.has(P)?(u.push(P),m.push(s.data[D]),p.push(s.oldData[D])):(this._ids.add(P),d.push(P)):this._ids.has(P)&&(this._ids.delete(P),f.push(P),y.push(s.oldData[D]))}break;case"remove":for(var A=0,V=l.length;A<V;A++){var N=l[A];this._ids.has(N)&&(this._ids.delete(N),f.push(N),y.push(s.oldData[A]))}break}this.length+=d.length-f.length,d.length&&this._trigger("add",{items:d},o),u.length&&this._trigger("update",{items:u,oldData:p,data:m},o),f.length&&this._trigger("remove",{items:f,oldData:y},o)}}}]),t}(Q_);function AH(e,r){return ee(r)==="object"&&r!==null&&e===r.idProp&&typeof r.add=="function"&&typeof r.clear=="function"&&typeof r.distinct=="function"&&typeof B(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof ye(r)=="function"&&typeof r.max=="function"&&typeof r.min=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.remove=="function"&&typeof r.setOptions=="function"&&typeof r.stream=="function"&&typeof r.update=="function"&&typeof r.updateOnly=="function"}function VH(e,r){return ee(r)==="object"&&r!==null&&e===r.idProp&&typeof B(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof ye(r)=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.stream=="function"&&AH(e,r.getDataSet())}var RH=typeof window<"u"&&window.moment||or(),mt=z(RH),LH=or(),er=z(LH),gu={exports:{}},je={},yu={exports:{}},Li={};function J_(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function FH(e,r,t){}function YH(e,r,t){}var jH=/javascript\s*\:/img;function BH(e,r){return jH.test(r)?"":r}Li.whiteList=J_();Li.getDefaultWhiteList=J_;Li.onAttr=FH;Li.onIgnoreAttr=YH;Li.safeAttrValue=BH;var HH={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,n;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,n=e.length;a<n;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Jn=HH;function WH(e,r){e=Jn.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,n=0,s=0,o="";function l(){if(!a){var f=Jn.trim(e.slice(n,s)),p=f.indexOf(":");if(p!==-1){var m=Jn.trim(f.slice(0,p)),y=Jn.trim(f.slice(p+1));if(m){var b=r(n,o.length,m,y,f);b&&(o+=b+"; ")}}}n=s+1}for(;s<t;s++){var d=e[s];if(d==="/"&&e[s+1]==="*"){var u=e.indexOf("*/",s+2);if(u===-1)break;s=u+1,n=s+1,a=!1}else d==="("?a=!0:d===")"?a=!1:d===";"?a||l():d===`
|
62
|
+
`&&l()}return Jn.trim(o)}var GH=WH,Is=Li,zH=GH;function $p(e){return e==null}function UH(e){var r={};for(var t in e)r[t]=e[t];return r}function eb(e){e=UH(e||{}),e.whiteList=e.whiteList||Is.whiteList,e.onAttr=e.onAttr||Is.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Is.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Is.safeAttrValue,this.options=e}eb.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,n=t.onAttr,s=t.onIgnoreAttr,o=t.safeAttrValue,l=zH(e,function(d,u,f,p,m){var y=a[f],b=!1;if(y===!0?b=y:typeof y=="function"?b=y(p):y instanceof RegExp&&(b=y.test(p)),b!==!0&&(b=!1),p=o(f,p),!!p){var E={position:u,sourcePosition:d,source:m,isWhite:b};if(b){var w=n(f,p,E);return $p(w)?f+":"+p:w}else{var w=s(f,p,E);if(!$p(w))return w}}});return l};var XH=eb;(function(e,r){var t=Li,a=XH;function n(o,l){var d=new a(l);return d.process(o)}r=e.exports=n,r.FilterCSS=a;for(var s in t)r[s]=t[s];typeof window<"u"&&(window.filterCSS=e.exports)})(yu,yu.exports);var bc=yu.exports,wc={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,n;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,n=e.length;a<n;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,t=r.exec(e);return t?t.index:-1}},qH=bc.FilterCSS,KH=bc.getDefaultWhiteList,no=wc;function tb(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var rb=new qH;function ZH(e,r,t){}function QH(e,r,t){}function JH(e,r,t){}function e6(e,r,t){}function ib(e){return e.replace(r6,"<").replace(i6,">")}function t6(e,r,t,a){if(t=db(t),r==="href"||r==="src"){if(t=no.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(r==="background"){if(Ms.lastIndex=0,Ms.test(t))return""}else if(r==="style"){if(Dp.lastIndex=0,Dp.test(t)||(Tp.lastIndex=0,Tp.test(t)&&(Ms.lastIndex=0,Ms.test(t))))return"";a!==!1&&(a=a||rb,t=a.process(t))}return t=ub(t),t}var r6=/</g,i6=/>/g,n6=/"/g,a6=/"/g,s6=/&#([a-zA-Z0-9]*);?/gim,o6=/:?/gim,l6=/&newline;?/gim,Ms=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Dp=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Tp=/u\s*r\s*l\s*\(.*/gi;function nb(e){return e.replace(n6,""")}function ab(e){return e.replace(a6,'"')}function sb(e){return e.replace(s6,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function ob(e){return e.replace(o6,":").replace(l6," ")}function lb(e){for(var r="",t=0,a=e.length;t<a;t++)r+=e.charCodeAt(t)<32?" ":e.charAt(t);return no.trim(r)}function db(e){return e=ab(e),e=sb(e),e=ob(e),e=lb(e),e}function ub(e){return e=nb(e),e=ib(e),e}function d6(){return""}function u6(e,r){typeof r!="function"&&(r=function(){});var t=!Array.isArray(e);function a(o){return t?!0:no.indexOf(e,o)!==-1}var n=[],s=!1;return{onIgnoreTag:function(o,l,d){if(a(o))if(d.isClosing){var u="[/removed]",f=d.position+u.length;return n.push([s!==!1?s:d.position,f]),s=!1,u}else return s||(s=d.position),"[removed]";else return r(o,l,d)},remove:function(o){var l="",d=0;return no.forEach(n,function(u){l+=o.slice(d,u[0]),d=u[1]}),l+=o.slice(d),l}}}function c6(e){for(var r="",t=0;t<e.length;){var a=e.indexOf("<!--",t);if(a===-1){r+=e.slice(t);break}r+=e.slice(t,a);var n=e.indexOf("-->",a);if(n===-1)break;t=n+3}return r}function h6(e){var r=e.split("");return r=r.filter(function(t){var a=t.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),r.join("")}je.whiteList=tb();je.getDefaultWhiteList=tb;je.onTag=ZH;je.onIgnoreTag=QH;je.onTagAttr=JH;je.onIgnoreTagAttr=e6;je.safeAttrValue=t6;je.escapeHtml=ib;je.escapeQuote=nb;je.unescapeQuote=ab;je.escapeHtmlEntities=sb;je.escapeDangerHtml5Entities=ob;je.clearNonPrintableCharacter=lb;je.friendlyAttrValue=db;je.escapeAttrValue=ub;je.onIgnoreTagStripAll=d6;je.StripTagBody=u6;je.stripCommentTag=c6;je.stripBlankChar=h6;je.cssFilter=rb;je.getDefaultCSSWhiteList=KH;var Yo={},qr=wc;function f6(e){var r=qr.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=qr.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function v6(e){return e.slice(0,2)==="</"}function p6(e,r,t){var a="",n=0,s=!1,o=!1,l=0,d=e.length,u="",f="";e:for(l=0;l<d;l++){var p=e.charAt(l);if(s===!1){if(p==="<"){s=l;continue}}else if(o===!1){if(p==="<"){a+=t(e.slice(n,l)),s=l,n=l;continue}if(p===">"||l===d-1){a+=t(e.slice(n,s)),f=e.slice(s,l+1),u=f6(f),a+=r(s,a.length,u,f,v6(f)),n=l+1,s=!1;continue}if(p==='"'||p==="'")for(var m=1,y=e.charAt(l-m);y.trim()===""||y==="=";){if(y==="="){o=p;continue e}y=e.charAt(l-++m)}}else if(p===o){o=!1;continue}}return n<d&&(a+=t(e.substr(n))),a}var m6=/[^a-zA-Z0-9\\_:.-]/gim;function g6(e,r){var t=0,a=0,n=[],s=!1,o=e.length;function l(m,y){if(m=qr.trim(m),m=m.replace(m6,"").toLowerCase(),!(m.length<1)){var b=r(m,y||"");b&&n.push(b)}}for(var d=0;d<o;d++){var u=e.charAt(d),f,p;if(s===!1&&u==="="){s=e.slice(t,d),t=d+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:_6(e,d+1);continue}if(s!==!1&&d===a){if(p=e.indexOf(u,d+1),p===-1)break;f=qr.trim(e.slice(a+1,p)),l(s,f),s=!1,d=p,t=d+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(p=y6(e,d),p===-1){f=qr.trim(e.slice(t,d)),l(f),s=!1,t=d+1;continue}else{d=p-1;continue}else if(p=b6(e,d-1),p===-1){f=qr.trim(e.slice(t,d)),f=Np(f),l(s,f),s=!1,t=d+1;continue}else continue}return t<e.length&&(s===!1?l(e.slice(t)):l(s,Np(qr.trim(e.slice(t))))),qr.trim(n.join(" "))}function y6(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function _6(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function b6(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function w6(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Np(e){return w6(e)?e.substr(1,e.length-2):e}Yo.parseTag=p6;Yo.parseAttr=g6;var k6=bc.FilterCSS,rr=je,cb=Yo,x6=cb.parseTag,E6=cb.parseAttr,Ws=wc;function As(e){return e==null}function S6(e){var r=Ws.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=Ws.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=Ws.trim(e.slice(0,-1))),{html:e,closing:t}}function $6(e){var r={};for(var t in e)r[t]=e[t];return r}function D6(e){var r={};for(var t in e)Array.isArray(e[t])?r[t.toLowerCase()]=e[t].map(function(a){return a.toLowerCase()}):r[t.toLowerCase()]=e[t];return r}function hb(e){e=$6(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=rr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=D6(e.whiteList||e.allowList):e.whiteList=rr.whiteList,e.onTag=e.onTag||rr.onTag,e.onTagAttr=e.onTagAttr||rr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||rr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||rr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||rr.safeAttrValue,e.escapeHtml=e.escapeHtml||rr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new k6(e.css))}hb.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,n=t.onTag,s=t.onIgnoreTag,o=t.onTagAttr,l=t.onIgnoreTagAttr,d=t.safeAttrValue,u=t.escapeHtml,f=r.cssFilter;t.stripBlankChar&&(e=rr.stripBlankChar(e)),t.allowCommentTag||(e=rr.stripCommentTag(e));var p=!1;t.stripIgnoreTagBody&&(p=rr.StripTagBody(t.stripIgnoreTagBody,s),s=p.onIgnoreTag);var m=x6(e,function(y,b,E,w,S){var D={sourcePosition:y,position:b,isClosing:S,isWhite:Object.prototype.hasOwnProperty.call(a,E)},T=n(E,w,D);if(!As(T))return T;if(D.isWhite){if(D.isClosing)return"</"+E+">";var P=S6(w),F=a[E],A=E6(P.html,function(V,N){var I=Ws.indexOf(F,V)!==-1,M=o(E,V,N,I);return As(M)?I?(N=d(E,V,N,f),N?V+'="'+N+'"':V):(M=l(E,V,N,I),As(M)?void 0:M):M});return w="<"+E,A&&(w+=" "+A),P.closing&&(w+=" /"),w+=">",w}else return T=s(E,w,D),As(T)?u(w):T},u);return p&&(m=p.remove(m)),m};var T6=hb;(function(e,r){var t=je,a=Yo,n=T6;function s(l,d){var u=new n(d);return u.process(l)}r=e.exports=s,r.filterXSS=s,r.FilterXSS=n,function(){for(var l in t)r[l]=t[l];for(var d in a)r[d]=a[d]}(),typeof window<"u"&&(window.filterXSS=e.exports);function o(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=e.exports)})(gu,gu.exports);var N6=gu.exports,C6=z(N6);function Cp(e,r){var t=Ze(e);if(ro){var a=ro(e);r&&(a=J(a).call(a,function(n){return Fo(e,n).enumerable})),t.push.apply(t,a)}return t}function Op(e){for(var r=1;r<arguments.length;r++){var t,a,n=arguments[r]!=null?arguments[r]:{};r%2?B(t=Cp(Object(n),!0)).call(t,function(s){fe(e,s,n[s])}):io?q_(e,io(n)):B(a=Cp(Object(n))).call(a,function(s){Lo(e,s,Fo(n,s))})}return e}function Rr(e){var r;if(!e)return!1;var t=(r=e.idProp)!==null&&r!==void 0?r:e._idProp;return t?VH(t,e):!1}var Sd=/^\/?Date\((-?\d+)/i,O6=/^\d+$/;function kc(e,r){var t;if(e!==void 0){if(e===null)return null;if(!r)return e;if(typeof r!="string"&&!(r instanceof String))throw new Error("Type must be a string");switch(r){case"boolean":case"Boolean":return!!e;case"number":case"Number":return Ft(e)&&!isNaN(Date.parse(e))?er(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return kc(e,"Moment").toDate()}catch(n){throw n instanceof TypeError?new TypeError("Cannot convert object of type "+ra(e)+" to type "+r):n}case"Moment":if(sa(e))return er(e);if(e instanceof Date)return er(e.valueOf());if(er.isMoment(e))return er(e);if(Ft(e))return t=Sd.exec(e),t?er(Number(t[1])):(t=O6.exec(e),er(t?Number(e):e));throw new TypeError("Cannot convert object of type "+ra(e)+" to type "+r);case"ISODate":if(sa(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(er.isMoment(e))return e.toDate().toISOString();if(Ft(e))return t=Sd.exec(e),t?new Date(Number(t[1])).toISOString():er(e).format();throw new Error("Cannot convert object of type "+ra(e)+" to type ISODate");case"ASPDate":if(sa(e))return"/Date("+e+")/";if(e instanceof Date||er.isMoment(e))return"/Date("+e.valueOf()+")/";if(Ft(e)){t=Sd.exec(e);var a;return t?a=new Date(Number(t[1])).valueOf():a=new Date(e).valueOf(),"/Date("+a+")/"}else throw new Error("Cannot convert object of type "+ra(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(r))}}}function wn(e){var r,t,a,n,s,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},d=e._idProp,u=new Ci({fieldId:d}),f=ye(r=NH(e)).call(r,function(p){var m;return Ro(m=Ze(p)).call(m,function(y,b){return y[b]=kc(p[b],l[b]),y},{})}).to(u);return f.all().start(),{add:function(){var m;return(m=e.getDataSet()).add.apply(m,arguments)},remove:function(){var m;return(m=e.getDataSet()).remove.apply(m,arguments)},update:function(){var m;return(m=e.getDataSet()).update.apply(m,arguments)},updateOnly:function(){var m;return(m=e.getDataSet()).updateOnly.apply(m,arguments)},clear:function(){var m;return(m=e.getDataSet()).clear.apply(m,arguments)},forEach:O(t=B(u)).call(t,u),get:O(a=u.get).call(a,u),getIds:O(n=u.getIds).call(n,u),off:O(s=u.off).call(s,u),on:O(o=u.on).call(o,u),get length(){return u.length},idProp:d,type:l,rawDS:e,coercedDS:u,dispose:function(){return f.stop()}}}var fb=function(r){var t=new C6.FilterXSS(r);return function(a){return t.process(a)}},P6=function(r){return r},_u=fb(),I6=function(r){r&&(r.disabled===!0?(_u=P6,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):r.filterOptions&&(_u=fb(r.filterOptions)))},x=Op(Op({},zL),{},{convert:kc,setupXSSProtection:I6});Lo(x,"xss",{get:function(){return _u}});var vb=Ie,M6=ve,A6=ge,V6=qt,R6=iy.trim,L6=zu,F6=A6("".charAt),ao=vb.parseFloat,Pp=vb.Symbol,Ip=Pp&&Pp.iterator,Y6=1/ao(L6+"-0")!==-1/0||Ip&&!M6(function(){ao(Object(Ip))}),j6=Y6?function(r){var t=R6(V6(r)),a=ao(t);return a===0&&F6(t,0)==="-"?-0:a}:ao,B6=U,Mp=j6;B6({global:!0,forced:parseFloat!==Mp},{parseFloat:Mp});var H6=be,W6=H6.parseFloat,G6=W6,z6=G6,U6=z6,so=z(U6),li=function(){function e(r,t){ue(this,e),this.options=null,this.props=null}return ce(e,[{key:"setOptions",value:function(t){t&&x.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}]),e}(),X6=xa,q6=qt,K6=Sn,Z6=RangeError,Q6=function(r){var t=q6(K6(this)),a="",n=X6(r);if(n<0||n===1/0)throw new Z6("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))n&1&&(a+=t);return a},J6=U,eW=Q6;J6({target:"String",proto:!0},{repeat:eW});var tW=Le,rW=tW("String").repeat,iW=$e,nW=rW,$d=String.prototype,aW=function(e){var r=e.repeat;return typeof e=="string"||e===$d||iW($d,e)&&r===$d.repeat?nW:r},sW=aW,oW=sW,lW=oW,nn=z(lW);function xc(e,r,t){if(t&&!re(t))return xc(e,r,[t]);if(r.hiddenDates=[],t&&re(t)==!0){for(var a,n=0;n<t.length;n++)if(nn(t[n])===void 0){var s={};s.start=e(t[n].start).toDate().valueOf(),s.end=e(t[n].end).toDate().valueOf(),r.hiddenDates.push(s)}Ue(a=r.hiddenDates).call(a,function(o,l){return o.start-l.start})}}function oo(e,r,t){if(t&&!re(t))return oo(e,r,[t]);if(t&&r.domProps.centerContainer.width!==void 0){xc(e,r,t);for(var a=e(r.range.start),n=e(r.range.end),s=r.range.end-r.range.start,o=s/r.domProps.centerContainer.width,l=0;l<t.length;l++)if(nn(t[l])!==void 0){var d=e(t[l].start),u=e(t[l].end);if(d._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(t[l].start));if(u._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(t[l].end));var f=u-d;if(f>=4*o){var p=0,m=n.clone();switch(nn(t[l])){case"daily":d.day()!=u.day()&&(p=1),d.dayOfYear(a.dayOfYear()),d.year(a.year()),d.subtract(7,"days"),u.dayOfYear(a.dayOfYear()),u.year(a.year()),u.subtract(7-p,"days"),m.add(1,"weeks");break;case"weekly":{var y=u.diff(d,"days"),b=d.day();d.date(a.date()),d.month(a.month()),d.year(a.year()),u=d.clone(),d.day(b),u.day(b),u.add(y,"days"),d.subtract(1,"weeks"),u.subtract(1,"weeks"),m.add(1,"weeks");break}case"monthly":d.month()!=u.month()&&(p=1),d.month(a.month()),d.year(a.year()),d.subtract(1,"months"),u.month(a.month()),u.year(a.year()),u.subtract(1,"months"),u.add(p,"months"),m.add(1,"months");break;case"yearly":d.year()!=u.year()&&(p=1),d.year(a.year()),d.subtract(1,"years"),u.year(a.year()),u.subtract(1,"years"),u.add(p,"years"),m.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",nn(t[l]));return}for(;d<m;)switch(r.hiddenDates.push({start:d.valueOf(),end:u.valueOf()}),nn(t[l])){case"daily":d.add(1,"days"),u.add(1,"days");break;case"weekly":d.add(1,"weeks"),u.add(1,"weeks");break;case"monthly":d.add(1,"months"),u.add(1,"months");break;case"yearly":d.add(1,"y"),u.add(1,"y");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",nn(t[l]));return}r.hiddenDates.push({start:d.valueOf(),end:u.valueOf()})}}dW(r);var E=uo(r.range.start,r.hiddenDates),w=uo(r.range.end,r.hiddenDates),S=r.range.start,D=r.range.end;E.hidden==!0&&(S=r.range.startToFront==!0?E.startDate-1:E.endDate+1),w.hidden==!0&&(D=r.range.endToFront==!0?w.startDate-1:w.endDate+1),(E.hidden==!0||w.hidden==!0)&&r.range._applyRange(S,D)}}function dW(e){for(var r,t=e.hiddenDates,a=[],n=0;n<t.length;n++)for(var s=0;s<t.length;s++)n!=s&&t[s].remove!=!0&&t[n].remove!=!0&&(t[s].start>=t[n].start&&t[s].end<=t[n].end?t[s].remove=!0:t[s].start>=t[n].start&&t[s].start<=t[n].end?(t[n].end=t[s].end,t[s].remove=!0):t[s].end>=t[n].start&&t[s].end<=t[n].end&&(t[n].start=t[s].start,t[s].remove=!0));for(n=0;n<t.length;n++)t[n].remove!==!0&&a.push(t[n]);e.hiddenDates=a,Ue(r=e.hiddenDates).call(r,function(o,l){return o.start-l.start})}function uW(e,r,t){for(var a=!1,n=r.current.valueOf(),s=0;s<r.hiddenDates.length;s++){var o=r.hiddenDates[s].start,l=r.hiddenDates[s].end;if(n>=o&&n<l){a=!0;break}}if(a==!0&&n<r._end.valueOf()&&n!=t){var d=e(t),u=e(l);d.year()!=u.year()?r.switchedYear=!0:d.month()!=u.month()?r.switchedMonth=!0:d.dayOfYear()!=u.dayOfYear()&&(r.switchedDay=!0),r.current=u}}function Ap(e,r,t){var a;if(e.body.hiddenDates.length==0)return a=e.range.conversion(t),(r.valueOf()-a.offset)*a.scale;var n=uo(r,e.body.hiddenDates);n.hidden==!0&&(r=n.startDate);var s=ua(e.body.hiddenDates,e.range.start,e.range.end);if(r<e.range.start){a=e.range.conversion(t,s);var o=cW(e.body.hiddenDates,r,a.offset);return r=e.options.moment(r).toDate().valueOf(),r=r+o,-(a.offset-r.valueOf())*a.scale}else if(r>e.range.end){var l={start:e.range.start,end:r};return r=Rp(e.options.moment,e.body.hiddenDates,l,r),a=e.range.conversion(t,s),(r.valueOf()-a.offset)*a.scale}else return r=Rp(e.options.moment,e.body.hiddenDates,e.range,r),a=e.range.conversion(t,s),(r.valueOf()-a.offset)*a.scale}function Vp(e,r,t){if(e.body.hiddenDates.length==0){var a=e.range.conversion(t);return new Date(r/a.scale+a.offset)}else{var n=ua(e.body.hiddenDates,e.range.start,e.range.end),s=e.range.end-e.range.start-n,o=s*r/t,l=hW(e.body.hiddenDates,e.range,o);return new Date(l+o+e.range.start)}}function ua(e,r,t){for(var a=0,n=0;n<e.length;n++){var s=e[n].start,o=e[n].end;s>=r&&o<t&&(a+=o-s)}return a}function cW(e,r,t){for(var a=0,n=0;n<e.length;n++){var s=e[n].start,o=e[n].end;s>=r&&o<=t&&(a+=o-s)}return a}function Rp(e,r,t,a){return a=e(a).toDate().valueOf(),a-=lo(e,r,t,a),a}function lo(e,r,t,a){var n=0;a=e(a).toDate().valueOf();for(var s=0;s<r.length;s++){var o=r[s].start,l=r[s].end;o>=t.start&&l<t.end&&a>=l&&(n+=l-o)}return n}function hW(e,r,t){for(var a=0,n=0,s=r.start,o=0;o<e.length;o++){var l=e[o].start,d=e[o].end;if(l>=r.start&&d<r.end){if(n+=l-s,s=d,n>=t)break;a+=d-l}}return a}function gi(e,r,t,a){var n=uo(r,e);return n.hidden==!0?t<0?a==!0?n.startDate-(n.endDate-r)-1:n.startDate-1:a==!0?n.endDate+(r-n.startDate)+1:n.endDate+1:r}function uo(e,r){for(var t=0;t<r.length;t++){var a=r[t].start,n=r[t].end;if(e>=a&&e<n)return{hidden:!0,startDate:a,endDate:n}}return{hidden:!1,startDate:a,endDate:n}}function fW(e){var r=vW();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function vW(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var pb=function(e){wt(t,e);var r=fW(t);function t(a,n){var s,o,l,d,u,f,p,m;ue(this,t),m=r.call(this);var y=mt().hours(0).minutes(0).seconds(0).milliseconds(0),b=y.clone().add(-3,"days").valueOf(),E=y.clone().add(3,"days").valueOf();return m.millisecondsPerPixelCache=void 0,n===void 0?(m.start=b,m.end=E):(m.start=n.start||b,m.end=n.end||E),m.rolling=!1,m.body=a,m.deltaDifference=0,m.scaleOffset=0,m.startToFront=!1,m.endToFront=!0,m.defaultOptions={rtl:!1,start:null,end:null,moment:mt,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:!1,offset:.5}},m.options=x.extend({},m.defaultOptions),m.props={touch:{}},m.animationTimer=null,m.body.emitter.on("panstart",O(s=m._onDragStart).call(s,Ee(m))),m.body.emitter.on("panmove",O(o=m._onDrag).call(o,Ee(m))),m.body.emitter.on("panend",O(l=m._onDragEnd).call(l,Ee(m))),m.body.emitter.on("mousewheel",O(d=m._onMouseWheel).call(d,Ee(m))),m.body.emitter.on("touch",O(u=m._onTouch).call(u,Ee(m))),m.body.emitter.on("pinch",O(f=m._onPinch).call(f,Ee(m))),m.body.dom.rollingModeBtn.addEventListener("click",O(p=m.startRolling).call(p,Ee(m))),m.setOptions(n),m}return ce(t,[{key:"setOptions",value:function(n){if(n){var s=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"];x.selectiveExtend(s,this.options,n),n.rollingMode&&n.rollingMode.follow&&this.startRolling(),("start"in n||"end"in n)&&this.setRange(n.start,n.end)}}},{key:"startRolling",value:function(){var n=this;function s(){n.stopRolling(),n.rolling=!0;var o=n.end-n.start,l=x.convert(new Date,"Date").valueOf(),d=n.options.rollingMode&&n.options.rollingMode.offset||.5,u=l-o*d,f=l+o*(1-d),p={animation:!1};n.setRange(u,f,p);var m=n.conversion(n.body.domProps.center.width).scale;o=1/m/10,o<30&&(o=30),o>1e3&&(o=1e3),n.body.dom.rollingModeBtn.style.visibility="hidden",n.currentTimeTimer=ct(s,o)}s()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(n,s,o,l,d){o||(o={}),o.byUser!==!0&&(o.byUser=!1);var u=this,f=n!=null?x.convert(n,"Date").valueOf():null,p=s!=null?x.convert(s,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,o.animation){var m=this.start,y=this.end,b=ee(o.animation)==="object"&&"duration"in o.animation?o.animation.duration:500,E=ee(o.animation)==="object"&&"easingFunction"in o.animation?o.animation.easingFunction:"easeInOutQuad",w=x.easingFunctions[E];if(!w){var S;throw new Error(Ne(S="Unknown easing function ".concat(Dt(E),". Choose from: ")).call(S,Ze(x.easingFunctions).join(", ")))}var D=Rt(),T=!1,P=function V(){if(!u.props.touch.dragging){var N=Rt(),I=N-D,M=w(I/b),H=I>b,W=H||f===null?f:m+(f-m)*M,q=H||p===null?p:y+(p-y)*M;F=u._applyRange(W,q),oo(u.options.moment,u.body,u.options.hiddenDates),T=T||F;var de={start:new Date(u.start),end:new Date(u.end),byUser:o.byUser,event:o.event};if(d&&d(M,F,H),F&&u.body.emitter.emit("rangechange",de),H){if(T&&(u.body.emitter.emit("rangechanged",de),l))return l()}else u.animationTimer=ct(V,20)}};return P()}else{var F=this._applyRange(f,p);if(oo(this.options.moment,this.body,this.options.hiddenDates),F){var A={start:new Date(this.start),end:new Date(this.end),byUser:o.byUser,event:o.event};if(this.body.emitter.emit("rangechange",A),clearTimeout(u.timeoutID),u.timeoutID=ct(function(){u.body.emitter.emit("rangechanged",A)},200),l)return l()}}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(n,s){var o=n!=null?x.convert(n,"Date").valueOf():this.start,l=s!=null?x.convert(s,"Date").valueOf():this.end,d=this.options.max!=null?x.convert(this.options.max,"Date").valueOf():null,u=this.options.min!=null?x.convert(this.options.min,"Date").valueOf():null,f;if(isNaN(o)||o===null)throw new Error('Invalid start "'.concat(n,'"'));if(isNaN(l)||l===null)throw new Error('Invalid end "'.concat(s,'"'));if(l<o&&(l=o),u!==null&&o<u&&(f=u-o,o+=f,l+=f,d!=null&&l>d&&(l=d)),d!==null&&l>d&&(f=l-d,o-=f,l-=f,u!=null&&o<u&&(o=u)),this.options.zoomMin!==null){var p=so(this.options.zoomMin);if(p<0&&(p=0),l-o<p){var m=.5;this.end-this.start===p&&o>=this.start-m&&l<=this.end?(o=this.start,l=this.end):(f=p-(l-o),o-=f/2,l+=f/2)}}if(this.options.zoomMax!==null){var y=so(this.options.zoomMax);y<0&&(y=0),l-o>y&&(this.end-this.start===y&&o<this.start&&l>this.end?(o=this.start,l=this.end):(f=l-o-y,o+=f/2,l-=f/2))}var b=this.start!=o||this.end!=l;return!(o>=this.start&&o<=this.end||l>=this.start&&l<=this.end)&&!(this.start>=o&&this.start<=l||this.end>=o&&this.end<=l)&&this.body.emitter.emit("checkRangedItems"),this.start=o,this.end=l,b}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(n,s){return t.conversion(this.start,this.end,n,s)}},{key:"_onDragStart",value:function(n){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(n)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(n){if(n&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var s=this.options.direction;Lp(s);var o=s=="horizontal"?n.deltaX:n.deltaY;o-=this.deltaDifference;var l=this.props.touch.end-this.props.touch.start,d=ua(this.body.hiddenDates,this.start,this.end);l-=d;var u=s=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height,f;this.options.rtl?f=o/u*l:f=-o/u*l;var p=this.props.touch.start+f,m=this.props.touch.end+f,y=gi(this.body.hiddenDates,p,this.previousDelta-o,!0),b=gi(this.body.hiddenDates,m,this.previousDelta-o,!0);if(y!=p||b!=m){this.deltaDifference+=o,this.props.touch.start=y,this.props.touch.end=b,this._onDrag(n);return}this.previousDelta=o,this._applyRange(p,m);var E=new Date(this.start),w=new Date(this.end);this.body.emitter.emit("rangechange",{start:E,end:w,byUser:!0,event:n}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(n){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:n}))}},{key:"_onMouseWheel",value:function(n){var s=0;if(n.wheelDelta?s=n.wheelDelta/120:n.detail?s=-n.detail/3:n.deltaY&&(s=-n.deltaY/3),!(this.options.zoomKey&&!n[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(n)&&s){var o=this.options.zoomFriction||5,l;s<0?l=1-s/o:l=1/(1+s/o);var d;if(this.rolling){var u=this.options.rollingMode&&this.options.rollingMode.offset||.5;d=this.start+(this.end-this.start)*u}else{var f=this.getPointer({x:n.clientX,y:n.clientY},this.body.dom.center);d=this._pointerToDate(f)}this.zoom(l,d,s,n),n.preventDefault()}}},{key:"_onTouch",value:function(n){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,x.preventDefault(n)}},{key:"_onPinch",value:function(n){if(this.options.zoomable&&this.options.moveable){x.preventDefault(n),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(n.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var s=1/(n.scale+this.scaleOffset),o=this.props.touch.centerDate,l=ua(this.body.hiddenDates,this.start,this.end),d=lo(this.options.moment,this.body.hiddenDates,this,o),u=l-d,f=o-d+(this.props.touch.start-(o-d))*s,p=o+u+(this.props.touch.end-(o+u))*s;this.startToFront=1-s<=0,this.endToFront=s-1<=0;var m=gi(this.body.hiddenDates,f,1-s,!0),y=gi(this.body.hiddenDates,p,s-1,!0);(m!=f||y!=p)&&(this.props.touch.start=m,this.props.touch.end=y,this.scaleOffset=1-n.scale,f=m,p=y);var b={animation:!1,byUser:!0,event:n};this.setRange(f,p,b),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(n){var s=n.center?n.center.x:n.clientX,o=this.body.dom.centerContainer.getBoundingClientRect(),l=this.options.rtl?s-o.left:o.right-s,d=this.body.util.toTime(l);return d>=this.start&&d<=this.end}},{key:"_pointerToDate",value:function(n){var s,o=this.options.direction;if(Lp(o),o=="horizontal")return this.body.util.toTime(n.x).valueOf();var l=this.body.domProps.center.height;return s=this.conversion(l),n.y/s.scale+s.offset}},{key:"getPointer",value:function(n,s){var o=s.getBoundingClientRect();return this.options.rtl?{x:o.right-n.x,y:n.y-o.top}:{x:n.x-o.left,y:n.y-o.top}}},{key:"zoom",value:function(n,s,o,l){s==null&&(s=(this.start+this.end)/2);var d=ua(this.body.hiddenDates,this.start,this.end),u=lo(this.options.moment,this.body.hiddenDates,this,s),f=d-u,p=s-u+(this.start-(s-u))*n,m=s+f+(this.end-(s+f))*n;this.startToFront=!(o>0),this.endToFront=!(-o>0);var y=gi(this.body.hiddenDates,p,o,!0),b=gi(this.body.hiddenDates,m,-o,!0);(y!=p||b!=m)&&(p=y,m=b);var E={animation:!1,byUser:!0,event:l};this.setRange(p,m,E),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(n){var s=this.end-this.start,o=this.start+s*n,l=this.end+s*n;this.start=o,this.end=l}},{key:"moveTo",value:function(n){var s=(this.start+this.end)/2,o=s-n,l=this.start-o,d=this.end-o,u={animation:!1,byUser:!0,event:null};this.setRange(l,d,u)}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(n,s,o,l){return l===void 0&&(l=0),o!=0&&s-n!=0?{offset:n,scale:o/(s-n-l)}:{offset:0,scale:1}}}]),t}(li);function Lp(e){if(e!="horizontal"&&e!="vertical")throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var pW=be,mW=pW.setInterval,gW=mW,yW=z(gW),Vs=null;function bu(e,r){var t=r||{preventDefault:!1};if(e.Manager){var a=e,n=function(u,f){var p=Object.create(t);return f&&a.assign(p,f),bu(new a(u,p),p)};return a.assign(n,a),n.Manager=function(u,f){var p=Object.create(t);return f&&a.assign(p,f),bu(new a.Manager(u,p),p)},n}var s=Object.create(e),o=e.element;o.hammer||(o.hammer=[]),o.hammer.push(s),e.on("hammer.input",function(u){(t.preventDefault===!0||t.preventDefault===u.pointerType)&&u.preventDefault(),u.isFirst&&(Vs=u.target)}),s._handlers={},s.on=function(u,f){return l(u).forEach(function(p){var m=s._handlers[p];m||(s._handlers[p]=m=[],e.on(p,d)),m.push(f)}),s},s.off=function(u,f){return l(u).forEach(function(p){var m=s._handlers[p];m&&(m=f?m.filter(function(y){return y!==f}):[],m.length>0?s._handlers[p]=m:(e.off(p,d),delete s._handlers[p]))}),s},s.emit=function(u,f){Vs=f.target,e.emit(u,f)},s.destroy=function(){var u=e.element.hammer,f=u.indexOf(s);f!==-1&&u.splice(f,1),u.length||delete e.element.hammer,s._handlers={},e.destroy()};function l(u){return u.match(/[^ ]+/g)}function d(u){if(u.type!=="hammer.input"){if(u.srcEvent._handled||(u.srcEvent._handled={}),u.srcEvent._handled[u.type])return;u.srcEvent._handled[u.type]=!0}var f=!1;u.stopPropagation=function(){f=!0};var p=u.srcEvent.stopPropagation.bind(u.srcEvent);typeof p=="function"&&(u.srcEvent.stopPropagation=function(){p(),u.stopPropagation()}),u.firstTarget=Vs;for(var m=Vs;m&&!f;){var y=m.hammer;if(y){for(var b,E=0;E<y.length;E++)if(b=y[E]._handlers[u.type],b)for(var w=0;w<b.length&&!f;w++)b[w](u)}m=m.parentNode}}return s}function _W(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}var wu;if(typeof window<"u"){var bW=window.Hammer||Fy;wu=bu(bW,{preventDefault:"mouse"})}else wu=function(){return _W()};var vt=wu;function mb(e,r){r.inputHandler=function(t){t.isFirst&&r(t)},e.on("hammer.input",r.inputHandler)}function wW(e,r){return r.inputHandler=function(t){t.isFinal&&r(t)},e.on("hammer.input",r.inputHandler)}function kW(e){var r="pan-y";return e.getTouchAction=function(){return[r]},e}var co=function(){function e(r,t,a,n,s){ue(this,e),this.moment=s&&s.moment||mt,this.options=s||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(r,t,a),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,re(n)?this.hiddenDates=n:n!=null?this.hiddenDates=[n]:this.hiddenDates=[],this.format=e.FORMAT}return ce(e,[{key:"setMoment",value:function(t){this.moment=t,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(t){var a=x.deepExtend({},e.FORMAT);this.format=x.deepExtend(a,t)}},{key:"setRange",value:function(t,a,n){if(!(t instanceof Date)||!(a instanceof Date))throw"No legal start or end date in method setRange";this._start=t!=null?this.moment(t.valueOf()):Rt(),this._end=a!=null?this.moment(a.valueOf()):Rt(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch(this.scale=="week"&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(this.step!=1){var t=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year");break}t.isSame(this.current)||(this.current=this.moment(gi(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var t=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!==0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(this.current.weekday()!==0)this.current.weekday(0),this.current.add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current.add(this.step,"week");else{var a=this.current.clone();a.add(1,"week"),a.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year");break}if(this.step!=1)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0);break}this.current.valueOf()==t&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,uW(this.moment,this,t)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(t){t&&typeof t.scale=="string"&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){if(t!=null){var a=1e3*60*60*24*30*12,n=1e3*60*60*24*30,s=1e3*60*60*24,o=1e3*60*60,l=1e3*60,d=1e3,u=1;a*1e3>t&&(this.scale="year",this.step=1e3),a*500>t&&(this.scale="year",this.step=500),a*100>t&&(this.scale="year",this.step=100),a*50>t&&(this.scale="year",this.step=50),a*10>t&&(this.scale="year",this.step=10),a*5>t&&(this.scale="year",this.step=5),a>t&&(this.scale="year",this.step=1),n*3>t&&(this.scale="month",this.step=3),n>t&&(this.scale="month",this.step=1),s*7>t&&this.options.showWeekScale&&(this.scale="week",this.step=1),s*2>t&&(this.scale="day",this.step=2),s>t&&(this.scale="day",this.step=1),s/2>t&&(this.scale="weekday",this.step=1),o*4>t&&(this.scale="hour",this.step=4),o>t&&(this.scale="hour",this.step=1),l*15>t&&(this.scale="minute",this.step=15),l*10>t&&(this.scale="minute",this.step=10),l*5>t&&(this.scale="minute",this.step=5),l>t&&(this.scale="minute",this.step=1),d*15>t&&(this.scale="second",this.step=15),d*10>t&&(this.scale="second",this.step=10),d*5>t&&(this.scale="second",this.step=5),d>t&&(this.scale="second",this.step=1),u*200>t&&(this.scale="millisecond",this.step=200),u*100>t&&(this.scale="millisecond",this.step=100),u*50>t&&(this.scale="millisecond",this.step=50),u*10>t&&(this.scale="millisecond",this.step=10),u*5>t&&(this.scale="millisecond",this.step=5),u>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==!0)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedMonth==!0)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==!0)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return t.milliseconds()==0;case"second":return t.seconds()==0;case"minute":return t.hours()==0&&t.minutes()==0;case"hour":return t.hours()==0;case"weekday":case"day":return this.options.showWeekScale?t.isoWeekday()==1:t.date()==1;case"week":return t.date()==1;case"month":return t.month()==0;case"year":return!1;default:return!1}}},{key:"getLabelMinor",value:function(t){if(t==null&&(t=this.current),t instanceof Date&&(t=this.moment(t)),typeof this.format.minorLabels=="function")return this.format.minorLabels(t,this.scale,this.step);var a=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(t.date()===1&&t.weekday()!==0)return"";default:return a&&a.length>0?this.moment(t).format(a):""}}},{key:"getLabelMajor",value:function(t){if(t==null&&(t=this.current),t instanceof Date&&(t=this.moment(t)),typeof this.format.majorLabels=="function")return this.format.majorLabels(t,this.scale,this.step);var a=this.format.majorLabels[this.scale];return a&&a.length>0?this.moment(t).format(a):""}},{key:"getClassName",value:function(){var t,a=this.moment,n=this.moment(this.current),s=n.locale?n.locale("en"):n.lang("en"),o=this.step,l=[];function d(y){return y/o%2==0?" vis-even":" vis-odd"}function u(y){return y.isSame(Rt(),"day")?" vis-today":y.isSame(a().add(1,"day"),"day")?" vis-tomorrow":y.isSame(a().add(-1,"day"),"day")?" vis-yesterday":""}function f(y){return y.isSame(Rt(),"week")?" vis-current-week":""}function p(y){return y.isSame(Rt(),"month")?" vis-current-month":""}function m(y){return y.isSame(Rt(),"year")?" vis-current-year":""}switch(this.scale){case"millisecond":l.push(u(s)),l.push(d(s.milliseconds()));break;case"second":l.push(u(s)),l.push(d(s.seconds()));break;case"minute":l.push(u(s)),l.push(d(s.minutes()));break;case"hour":l.push(Ne(t="vis-h".concat(s.hours())).call(t,this.step==4?"-h"+(s.hours()+4):"")),l.push(u(s)),l.push(d(s.hours()));break;case"weekday":l.push("vis-".concat(s.format("dddd").toLowerCase())),l.push(u(s)),l.push(f(s)),l.push(d(s.date()));break;case"day":l.push("vis-day".concat(s.date())),l.push("vis-".concat(s.format("MMMM").toLowerCase())),l.push(u(s)),l.push(p(s)),l.push(this.step<=2?u(s):""),l.push(this.step<=2?"vis-".concat(s.format("dddd").toLowerCase()):""),l.push(d(s.date()-1));break;case"week":l.push("vis-week".concat(s.format("w"))),l.push(f(s)),l.push(d(s.week()));break;case"month":l.push("vis-".concat(s.format("MMMM").toLowerCase())),l.push(p(s)),l.push(d(s.month()));break;case"year":l.push("vis-year".concat(s.year())),l.push(m(s)),l.push(d(s.year()));break}return J(l).call(l,String).join(" ")}}],[{key:"snap",value:function(t,a,n){var s=mt(t);if(a=="year"){var o=s.year()+Math.round(s.month()/12);s.year(Math.round(o/n)*n),s.month(0),s.date(0),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="month")s.date()>15?(s.date(1),s.add(1,"month")):s.date(1),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0);else if(a=="week")s.weekday()>2?(s.weekday(0),s.add(1,"week")):s.weekday(0),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0);else if(a=="day"){switch(n){case 5:case 2:s.hours(Math.round(s.hours()/24)*24);break;default:s.hours(Math.round(s.hours()/12)*12);break}s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="weekday"){switch(n){case 5:case 2:s.hours(Math.round(s.hours()/12)*12);break;default:s.hours(Math.round(s.hours()/6)*6);break}s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="hour"){switch(n){case 4:s.minutes(Math.round(s.minutes()/60)*60);break;default:s.minutes(Math.round(s.minutes()/30)*30);break}s.seconds(0),s.milliseconds(0)}else if(a=="minute"){switch(n){case 15:case 10:s.minutes(Math.round(s.minutes()/5)*5),s.seconds(0);break;case 5:s.seconds(Math.round(s.seconds()/60)*60);break;default:s.seconds(Math.round(s.seconds()/30)*30);break}s.milliseconds(0)}else if(a=="second")switch(n){case 15:case 10:s.seconds(Math.round(s.seconds()/5)*5),s.milliseconds(0);break;case 5:s.milliseconds(Math.round(s.milliseconds()/1e3)*1e3);break;default:s.milliseconds(Math.round(s.milliseconds()/500)*500);break}else if(a=="millisecond"){var l=n>5?n/2:1;s.milliseconds(Math.round(s.milliseconds()/l)*l)}return s}}]),e}();co.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}};function kt(e,r){r===void 0&&(r={});var t=r.insertAt;if(!(!e||typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var xW=`.vis-time-axis {
|
67
63
|
position: relative;
|
68
64
|
overflow: hidden;
|
69
65
|
}
|
@@ -118,7 +114,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
118
114
|
.vis-time-axis .vis-grid.vis-major {
|
119
115
|
border-color: #bfbfbf;
|
120
116
|
}
|
121
|
-
`;Pt(bQ);function wQ(e){var t=EQ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function EQ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Rl=function(e){It(r,e);var t=wQ(r);function r(a,n){var s;return fe(this,r),s=t.call(this),s.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},s.props={range:{start:0,end:0,minimumStep:0},lineTop:0},s.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:x.extend({},Ml.FORMAT),moment:Tt,timeAxis:null},s.options=x.extend({},s.defaultOptions),s.body=a,s._create(),s.setOptions(n),s}return pe(r,[{key:"setOptions",value:function(n){n&&(x.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,n),x.selectiveDeepExtend(["format"],this.options,n),"orientation"in n&&(typeof n.orientation=="string"?this.options.orientation.axis=n.orientation:ne(n.orientation)==="object"&&"axis"in n.orientation&&(this.options.orientation.axis=n.orientation.axis)),"locale"in n&&(typeof Tt.locale=="function"?Tt.locale(n.locale):Tt.lang(n.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var n=this.props,s=this.dom.foreground,o=this.dom.background,l=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,d=s.parentNode!==l;this._calculateCharSize();var c=this.options.showMinorLabels&&this.options.orientation.axis!=="none",f=this.options.showMajorLabels&&this.options.orientation.axis!=="none";n.minorLabelHeight=c?n.minorCharHeight:0,n.majorLabelHeight=f?n.majorCharHeight:0,n.height=n.minorLabelHeight+n.majorLabelHeight,n.width=s.offsetWidth,n.minorLineHeight=this.body.domProps.root.height-n.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),n.minorLineWidth=1,n.majorLineHeight=n.minorLineHeight+n.majorLabelHeight,n.majorLineWidth=1;var v=s.nextSibling,m=o.nextSibling;return s.parentNode&&s.parentNode.removeChild(s),o.parentNode&&o.parentNode.removeChild(o),s.style.height="".concat(this.props.height,"px"),this._repaintLabels(),v?l.insertBefore(s,v):l.appendChild(s),m?this.body.dom.backgroundVertical.insertBefore(o,m):this.body.dom.backgroundVertical.appendChild(o),this._isResized()||d}},{key:"_repaintLabels",value:function(){var n=this.options.orientation.axis,s=x.convert(this.body.range.start,"Number"),o=x.convert(this.body.range.end,"Number"),l=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),d=l-Il(this.options.moment,this.body.hiddenDates,this.body.range,l);d-=this.body.util.toTime(0).valueOf();var c=new Ml(new Date(s),new Date(o),d,this.body.hiddenDates,this.options);c.setMoment(this.options.moment),this.options.format&&c.setFormat(this.options.format),this.options.timeAxis&&c.setScale(this.options.timeAxis),this.step=c;var f=this.dom;f.redundant.lines=f.lines,f.redundant.majorTexts=f.majorTexts,f.redundant.minorTexts=f.minorTexts,f.lines=[],f.majorTexts=[],f.minorTexts=[];var v,m,g,b,S,w,k=0,T,D,N=void 0,L=0,A=1e3,R;for(c.start(),m=c.getCurrent(),b=this.body.util.toScreen(m);c.hasNext()&&L<A;){switch(L++,S=c.isMajor(),R=c.getClassName(),v=m,g=b,c.next(),m=c.getCurrent(),b=this.body.util.toScreen(m),T=k,k=b-g,c.scale){case"week":w=!0;break;default:w=k>=T*.4;break}if(this.options.showMinorLabels&&w){var C=this._repaintMinorText(g,c.getLabelMinor(v),n,R);C.style.width="".concat(k,"px")}S&&this.options.showMajorLabels?(g>0&&(N==null&&(N=g),C=this._repaintMajorText(g,c.getLabelMajor(v),n,R)),D=this._repaintMajorLine(g,k,n,R)):w?D=this._repaintMinorLine(g,k,n,R):D&&(D.style.width="".concat(Xt(D.style.width)+k,"px"))}if(L===A&&!Ly&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(A," lines.")),Ly=!0),this.options.showMajorLabels){var j=this.body.util.toTime(0),O=c.getLabelMajor(j),M=O.length*(this.props.majorCharWidth||10)+10;(N==null||M<N)&&this._repaintMajorText(0,O,n,R)}G(x).call(x,this.dom.redundant,function(H){for(;H.length;){var z=H.pop();z&&z.parentNode&&z.parentNode.removeChild(z)}})}},{key:"_repaintMinorText",value:function(n,s,o,l){var d=this.dom.redundant.minorTexts.shift();if(!d){var c=document.createTextNode("");d=document.createElement("div"),d.appendChild(c),this.dom.foreground.appendChild(d)}this.dom.minorTexts.push(d),d.innerHTML=x.xss(s);var f=o=="top"?this.props.majorLabelHeight:0;return this._setXY(d,n,f),d.className="vis-text vis-minor ".concat(l),d}},{key:"_repaintMajorText",value:function(n,s,o,l){var d=this.dom.redundant.majorTexts.shift();if(!d){var c=document.createElement("div");d=document.createElement("div"),d.appendChild(c),this.dom.foreground.appendChild(d)}d.childNodes[0].innerHTML=x.xss(s),d.className="vis-text vis-major ".concat(l);var f=o=="top"?0:this.props.minorLabelHeight;return this._setXY(d,n,f),this.dom.majorTexts.push(d),d}},{key:"_setXY",value:function(n,s,o){var l,d=this.options.rtl?s*-1:s;n.style.transform=Me(l="translate(".concat(d,"px, ")).call(l,o,"px)")}},{key:"_repaintMinorLine",value:function(n,s,o,l){var d,c=this.dom.redundant.lines.shift();c||(c=document.createElement("div"),this.dom.background.appendChild(c)),this.dom.lines.push(c);var f=this.props;c.style.width="".concat(s,"px"),c.style.height="".concat(f.minorLineHeight,"px");var v=o=="top"?f.majorLabelHeight:this.body.domProps.top.height,m=n-f.minorLineWidth/2;return this._setXY(c,m,v),c.className=Me(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(d,l),c}},{key:"_repaintMajorLine",value:function(n,s,o,l){var d,c=this.dom.redundant.lines.shift();c||(c=document.createElement("div"),this.dom.background.appendChild(c)),this.dom.lines.push(c);var f=this.props;c.style.width="".concat(s,"px"),c.style.height="".concat(f.majorLineHeight,"px");var v=o=="top"?0:this.body.domProps.top.height,m=n-f.majorLineWidth/2;return this._setXY(c,m,v),c.className=Me(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(d,l),c}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),r}(Fn),Ly=!1;function SQ(e){var t=window,r={},a={keydown:{},keyup:{}},n={},s;for(s=97;s<=122;s++)n[String.fromCharCode(s)]={code:65+(s-97),shift:!1};for(s=65;s<=90;s++)n[String.fromCharCode(s)]={code:s,shift:!0};for(s=0;s<=9;s++)n[""+s]={code:48+s,shift:!1};for(s=1;s<=12;s++)n["F"+s]={code:111+s,shift:!1};for(s=0;s<=9;s++)n["num"+s]={code:96+s,shift:!1};n["num*"]={code:106,shift:!1},n["num+"]={code:107,shift:!1},n["num-"]={code:109,shift:!1},n["num/"]={code:111,shift:!1},n["num."]={code:110,shift:!1},n.left={code:37,shift:!1},n.up={code:38,shift:!1},n.right={code:39,shift:!1},n.down={code:40,shift:!1},n.space={code:32,shift:!1},n.enter={code:13,shift:!1},n.shift={code:16,shift:void 0},n.esc={code:27,shift:!1},n.backspace={code:8,shift:!1},n.tab={code:9,shift:!1},n.ctrl={code:17,shift:!1},n.alt={code:18,shift:!1},n.delete={code:46,shift:!1},n.pageup={code:33,shift:!1},n.pagedown={code:34,shift:!1},n["="]={code:187,shift:!1},n["-"]={code:189,shift:!1},n["]"]={code:221,shift:!1},n["["]={code:219,shift:!1};var o=function(c){d(c,"keydown")},l=function(c){d(c,"keyup")},d=function(c,f){if(a[f][c.keyCode]!==void 0)for(var v=a[f][c.keyCode],m=0;m<v.length;m++)(v[m].shift===void 0||v[m].shift==!0&&c.shiftKey==!0||v[m].shift==!1&&c.shiftKey==!1)&&v[m].fn(c)};return r.bind=function(c,f,v){if(v===void 0&&(v="keydown"),n[c]===void 0)throw new Error("unsupported key: "+c);a[v][n[c].code]===void 0&&(a[v][n[c].code]=[]),a[v][n[c].code].push({fn:f,shift:n[c].shift})},r.bindAll=function(c,f){f===void 0&&(f="keydown");for(var v in n)n.hasOwnProperty(v)&&r.bind(v,c,f)},r.getKey=function(c){for(var f in n)if(n.hasOwnProperty(f)){if(c.shiftKey==!0&&n[f].shift==!0&&c.keyCode==n[f].code)return f;if(c.shiftKey==!1&&n[f].shift==!1&&c.keyCode==n[f].code)return f;if(c.keyCode==n[f].code&&f=="shift")return f}return"unknown key, currently not supported"},r.unbind=function(c,f,v){if(v===void 0&&(v="keydown"),n[c]===void 0)throw new Error("unsupported key: "+c);if(f!==void 0){var m=[],g=a[v][n[c].code];if(g!==void 0)for(var b=0;b<g.length;b++)g[b].fn==f&&g[b].shift==n[c].shift||m.push(a[v][n[c].code][b]);a[v][n[c].code]=m}else a[v][n[c].code]=[]},r.reset=function(){a={keydown:{},keyup:{}}},r.destroy=function(){a={keydown:{},keyup:{}},t.removeEventListener("keydown",o,!0),t.removeEventListener("keyup",l,!0)},t.addEventListener("keydown",o,!0),t.addEventListener("keyup",l,!0),r}var kQ=`.vis .overlay {
|
117
|
+
`;kt(xW);function EW(e){var r=SW();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function SW(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var ho=function(e){wt(t,e);var r=EW(t);function t(a,n){var s;return ue(this,t),s=r.call(this),s.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},s.props={range:{start:0,end:0,minimumStep:0},lineTop:0},s.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:x.extend({},co.FORMAT),moment:mt,timeAxis:null},s.options=x.extend({},s.defaultOptions),s.body=a,s._create(),s.setOptions(n),s}return ce(t,[{key:"setOptions",value:function(n){n&&(x.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,n),x.selectiveDeepExtend(["format"],this.options,n),"orientation"in n&&(typeof n.orientation=="string"?this.options.orientation.axis=n.orientation:ee(n.orientation)==="object"&&"axis"in n.orientation&&(this.options.orientation.axis=n.orientation.axis)),"locale"in n&&(typeof mt.locale=="function"?mt.locale(n.locale):mt.lang(n.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var n=this.props,s=this.dom.foreground,o=this.dom.background,l=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,d=s.parentNode!==l;this._calculateCharSize();var u=this.options.showMinorLabels&&this.options.orientation.axis!=="none",f=this.options.showMajorLabels&&this.options.orientation.axis!=="none";n.minorLabelHeight=u?n.minorCharHeight:0,n.majorLabelHeight=f?n.majorCharHeight:0,n.height=n.minorLabelHeight+n.majorLabelHeight,n.width=s.offsetWidth,n.minorLineHeight=this.body.domProps.root.height-n.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),n.minorLineWidth=1,n.majorLineHeight=n.minorLineHeight+n.majorLabelHeight,n.majorLineWidth=1;var p=s.nextSibling,m=o.nextSibling;return s.parentNode&&s.parentNode.removeChild(s),o.parentNode&&o.parentNode.removeChild(o),s.style.height="".concat(this.props.height,"px"),this._repaintLabels(),p?l.insertBefore(s,p):l.appendChild(s),m?this.body.dom.backgroundVertical.insertBefore(o,m):this.body.dom.backgroundVertical.appendChild(o),this._isResized()||d}},{key:"_repaintLabels",value:function(){var n=this.options.orientation.axis,s=x.convert(this.body.range.start,"Number"),o=x.convert(this.body.range.end,"Number"),l=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),d=l-lo(this.options.moment,this.body.hiddenDates,this.body.range,l);d-=this.body.util.toTime(0).valueOf();var u=new co(new Date(s),new Date(o),d,this.body.hiddenDates,this.options);u.setMoment(this.options.moment),this.options.format&&u.setFormat(this.options.format),this.options.timeAxis&&u.setScale(this.options.timeAxis),this.step=u;var f=this.dom;f.redundant.lines=f.lines,f.redundant.majorTexts=f.majorTexts,f.redundant.minorTexts=f.minorTexts,f.lines=[],f.majorTexts=[],f.minorTexts=[];var p,m,y,b,E,w,S=0,D,T,P=void 0,F=0,A=1e3,V;for(u.start(),m=u.getCurrent(),b=this.body.util.toScreen(m);u.hasNext()&&F<A;){switch(F++,E=u.isMajor(),V=u.getClassName(),p=m,y=b,u.next(),m=u.getCurrent(),b=this.body.util.toScreen(m),D=S,S=b-y,u.scale){case"week":w=!0;break;default:w=S>=D*.4;break}if(this.options.showMinorLabels&&w){var N=this._repaintMinorText(y,u.getLabelMinor(p),n,V);N.style.width="".concat(S,"px")}E&&this.options.showMajorLabels?(y>0&&(P==null&&(P=y),N=this._repaintMajorText(y,u.getLabelMajor(p),n,V)),T=this._repaintMajorLine(y,S,n,V)):w?T=this._repaintMinorLine(y,S,n,V):T&&(T.style.width="".concat(Lt(T.style.width)+S,"px"))}if(F===A&&!Fp&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(A," lines.")),Fp=!0),this.options.showMajorLabels){var I=this.body.util.toTime(0),M=u.getLabelMajor(I),H=M.length*(this.props.majorCharWidth||10)+10;(P==null||H<P)&&this._repaintMajorText(0,M,n,V)}B(x).call(x,this.dom.redundant,function(W){for(;W.length;){var q=W.pop();q&&q.parentNode&&q.parentNode.removeChild(q)}})}},{key:"_repaintMinorText",value:function(n,s,o,l){var d=this.dom.redundant.minorTexts.shift();if(!d){var u=document.createTextNode("");d=document.createElement("div"),d.appendChild(u),this.dom.foreground.appendChild(d)}this.dom.minorTexts.push(d),d.innerHTML=x.xss(s);var f=o=="top"?this.props.majorLabelHeight:0;return this._setXY(d,n,f),d.className="vis-text vis-minor ".concat(l),d}},{key:"_repaintMajorText",value:function(n,s,o,l){var d=this.dom.redundant.majorTexts.shift();if(!d){var u=document.createElement("div");d=document.createElement("div"),d.appendChild(u),this.dom.foreground.appendChild(d)}d.childNodes[0].innerHTML=x.xss(s),d.className="vis-text vis-major ".concat(l);var f=o=="top"?0:this.props.minorLabelHeight;return this._setXY(d,n,f),this.dom.majorTexts.push(d),d}},{key:"_setXY",value:function(n,s,o){var l,d=this.options.rtl?s*-1:s;n.style.transform=Ne(l="translate(".concat(d,"px, ")).call(l,o,"px)")}},{key:"_repaintMinorLine",value:function(n,s,o,l){var d,u=this.dom.redundant.lines.shift();u||(u=document.createElement("div"),this.dom.background.appendChild(u)),this.dom.lines.push(u);var f=this.props;u.style.width="".concat(s,"px"),u.style.height="".concat(f.minorLineHeight,"px");var p=o=="top"?f.majorLabelHeight:this.body.domProps.top.height,m=n-f.minorLineWidth/2;return this._setXY(u,m,p),u.className=Ne(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(d,l),u}},{key:"_repaintMajorLine",value:function(n,s,o,l){var d,u=this.dom.redundant.lines.shift();u||(u=document.createElement("div"),this.dom.background.appendChild(u)),this.dom.lines.push(u);var f=this.props;u.style.width="".concat(s,"px"),u.style.height="".concat(f.majorLineHeight,"px");var p=o=="top"?0:this.body.domProps.top.height,m=n-f.majorLineWidth/2;return this._setXY(u,m,p),u.className=Ne(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(d,l),u}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),t}(li),Fp=!1;function $W(e){var r=window,t={},a={keydown:{},keyup:{}},n={},s;for(s=97;s<=122;s++)n[String.fromCharCode(s)]={code:65+(s-97),shift:!1};for(s=65;s<=90;s++)n[String.fromCharCode(s)]={code:s,shift:!0};for(s=0;s<=9;s++)n[""+s]={code:48+s,shift:!1};for(s=1;s<=12;s++)n["F"+s]={code:111+s,shift:!1};for(s=0;s<=9;s++)n["num"+s]={code:96+s,shift:!1};n["num*"]={code:106,shift:!1},n["num+"]={code:107,shift:!1},n["num-"]={code:109,shift:!1},n["num/"]={code:111,shift:!1},n["num."]={code:110,shift:!1},n.left={code:37,shift:!1},n.up={code:38,shift:!1},n.right={code:39,shift:!1},n.down={code:40,shift:!1},n.space={code:32,shift:!1},n.enter={code:13,shift:!1},n.shift={code:16,shift:void 0},n.esc={code:27,shift:!1},n.backspace={code:8,shift:!1},n.tab={code:9,shift:!1},n.ctrl={code:17,shift:!1},n.alt={code:18,shift:!1},n.delete={code:46,shift:!1},n.pageup={code:33,shift:!1},n.pagedown={code:34,shift:!1},n["="]={code:187,shift:!1},n["-"]={code:189,shift:!1},n["]"]={code:221,shift:!1},n["["]={code:219,shift:!1};var o=function(u){d(u,"keydown")},l=function(u){d(u,"keyup")},d=function(u,f){if(a[f][u.keyCode]!==void 0)for(var p=a[f][u.keyCode],m=0;m<p.length;m++)(p[m].shift===void 0||p[m].shift==!0&&u.shiftKey==!0||p[m].shift==!1&&u.shiftKey==!1)&&p[m].fn(u)};return t.bind=function(u,f,p){if(p===void 0&&(p="keydown"),n[u]===void 0)throw new Error("unsupported key: "+u);a[p][n[u].code]===void 0&&(a[p][n[u].code]=[]),a[p][n[u].code].push({fn:f,shift:n[u].shift})},t.bindAll=function(u,f){f===void 0&&(f="keydown");for(var p in n)n.hasOwnProperty(p)&&t.bind(p,u,f)},t.getKey=function(u){for(var f in n)if(n.hasOwnProperty(f)){if(u.shiftKey==!0&&n[f].shift==!0&&u.keyCode==n[f].code)return f;if(u.shiftKey==!1&&n[f].shift==!1&&u.keyCode==n[f].code)return f;if(u.keyCode==n[f].code&&f=="shift")return f}return"unknown key, currently not supported"},t.unbind=function(u,f,p){if(p===void 0&&(p="keydown"),n[u]===void 0)throw new Error("unsupported key: "+u);if(f!==void 0){var m=[],y=a[p][n[u].code];if(y!==void 0)for(var b=0;b<y.length;b++)y[b].fn==f&&y[b].shift==n[u].shift||m.push(a[p][n[u].code][b]);a[p][n[u].code]=m}else a[p][n[u].code]=[]},t.reset=function(){a={keydown:{},keyup:{}}},t.destroy=function(){a={keydown:{},keyup:{}},r.removeEventListener("keydown",o,!0),r.removeEventListener("keyup",l,!0)},r.addEventListener("keydown",o,!0),r.addEventListener("keyup",l,!0),t}var DW=`.vis .overlay {
|
122
118
|
position: absolute;
|
123
119
|
top: 0;
|
124
120
|
left: 0;
|
@@ -132,7 +128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
132
128
|
.vis-active {
|
133
129
|
box-shadow: 0 0 10px #86d5f8;
|
134
130
|
}
|
135
|
-
`;
|
131
|
+
`;kt(DW);function Ut(e){var r,t;this.active=!1,this.dom={container:e},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=vt(this.dom.overlay),this.hammer.on("tap",O(r=this._onTapOverlay).call(r,this));var a=this,n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];B(n).call(n,function(s){a.hammer.on(s,function(o){o.stopPropagation()})}),document&&document.body&&(this.onClick=function(s){TW(s.target,e)||a.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=$W(),this.escListener=O(t=this.deactivate).call(t,this)}Uu(Ut.prototype);Ut.current=null;Ut.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null};Ut.prototype.activate=function(){var e;Ut.current&&Ut.current.deactivate(),Ut.current=this,this.active=!0,this.dom.overlay.style.display="none",x.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),O(e=this.keycharm).call(e,"esc",this.escListener)};Ut.prototype.deactivate=function(){Ut.current===this&&(Ut.current=null),this.active=!1,this.dom.overlay.style.display="",x.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")};Ut.prototype._onTapOverlay=function(e){this.activate(),e.stopPropagation()};function TW(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var Ec={current:"current",time:"time",deleteSelected:"Delete selected"},NW=Ec,CW=Ec,Sc={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},OW=Sc,PW=Sc,$c={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},IW=$c,MW=$c,gb={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},AW=gb,jo={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},VW=jo,RW=jo,LW=jo,yb={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},FW=yb,_b={current:"поточний",time:"час",deleteSelected:"Видалити обране"},YW=_b,bb={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},jW=bb,wb={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},BW=wb,Dc={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},HW=Dc,WW=Dc,kb={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},GW=kb,xb={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},zW=xb,Bo={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},UW=Bo,XW=Bo,qW=Bo,Eb={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},KW=Eb,kn={en:Ec,en_EN:NW,en_US:CW,it:Sc,it_IT:OW,it_CH:PW,nl:$c,nl_NL:IW,nl_BE:MW,de:gb,de_DE:AW,fr:jo,fr_FR:VW,fr_CA:RW,fr_BE:LW,es:yb,es_ES:FW,uk:_b,uk_UA:YW,ru:bb,ru_RU:jW,pl:wb,pl_PL:BW,pt:Dc,pt_BR:HW,pt_PT:WW,ja:kb,ja_JP:GW,lt:Eb,lt_LT:KW,sv:xb,sv_SE:zW,nb:Bo,nn:XW,nb_NO:UW,nn_NO:qW},ZW=`.vis-custom-time {
|
136
132
|
background-color: #6E94FF;
|
137
133
|
width: 2px;
|
138
134
|
cursor: move;
|
@@ -148,7 +144,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
148
144
|
top: 0px;
|
149
145
|
cursor: initial;
|
150
146
|
z-index: inherit;
|
151
|
-
}`;
|
147
|
+
}`;kt(ZW);function QW(e){var r=JW();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function JW(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Tc=function(e){wt(t,e);var r=QW(t);function t(a,n){var s,o;ue(this,t),o=r.call(this),o.body=a,o.defaultOptions={moment:mt,locales:kn,locale:"en",id:void 0,title:void 0},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},kn,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return B(s=Ze(o.options.locales)).call(s,function(d){o.options.locales[d]=x.extend({},l,o.options.locales[d])}),n&&n.time!=null?o.customTime=n.time:o.customTime=new Date,o.eventParams={},o._create(),o}return ce(t,[{key:"setOptions",value:function(n){n&&x.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,n)}},{key:"_create",value:function(){var n,s,o,l=document.createElement("div");l["custom-time"]=this,l.className="vis-custom-time ".concat(this.options.id||""),l.style.position="absolute",l.style.top="0px",l.style.height="100%",this.bar=l;var d=document.createElement("div");d.style.position="relative",d.style.top="0px",this.options.rtl?d.style.right="-10px":d.style.left="-10px",d.style.height="100%",d.style.width="20px";function u(f){this.body.range._onMouseWheel(f)}d.addEventListener?(d.addEventListener("mousewheel",O(u).call(u,this),!1),d.addEventListener("DOMMouseScroll",O(u).call(u,this),!1)):d.attachEvent("onmousewheel",O(u).call(u,this)),l.appendChild(d),this.hammer=new vt(d),this.hammer.on("panstart",O(n=this._onDragStart).call(n,this)),this.hammer.on("panmove",O(s=this._onDrag).call(s,this)),this.hammer.on("panend",O(o=this._onDragEnd).call(o,this)),this.hammer.get("pan").set({threshold:5,direction:vt.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var n=this.body.dom.backgroundVertical;this.bar.parentNode!=n&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),n.appendChild(this.bar));var s=this.body.util.toScreen(this.customTime),o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en);var l=this.options.title;if(l===void 0){var d;l=Ne(d="".concat(o.time,": ")).call(d,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss")),l=l.charAt(0).toUpperCase()+l.substring(1)}else typeof l=="function"&&(l=l.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(s,"px"):this.bar.style.left="".concat(s,"px"),this.bar.title=l,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(n){this.customTime=x.convert(n,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(n,s){if(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=x.xss(n),this.marker.style.position="absolute",s){var o,l;this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",function(){this.marker.focus()}),this.marker.addEventListener("input",O(o=this._onMarkerChange).call(o,this)),this.marker.title=n,this.marker.addEventListener("blur",O(l=function(u){this.title!=u.target.innerHTML&&(this._onMarkerChanged(u),this.title=u.target.innerHTML)}).call(l,this))}this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(n){this.options.title=n}},{key:"_onDragStart",value:function(n){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,n.stopPropagation()}},{key:"_onDrag",value:function(n){if(this.eventParams.dragging){var s=this.options.rtl?-1*n.deltaX:n.deltaX,o=this.body.util.toScreen(this.eventParams.customTime)+s,l=this.body.util.toTime(o),d=this.body.util.getScale(),u=this.body.util.getStep(),f=this.options.snap,p=f?f(l,d,u):l;this.setCustomTime(p),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:n}),n.stopPropagation()}}},{key:"_onDragEnd",value:function(n){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:n}),n.stopPropagation())}},{key:"_onMarkerChange",value:function(n){this.body.emitter.emit("markerchange",{id:this.options.id,title:n.target.innerHTML,event:n}),n.stopPropagation()}},{key:"_onMarkerChanged",value:function(n){this.body.emitter.emit("markerchanged",{id:this.options.id,title:n.target.innerHTML,event:n}),n.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(n){for(var s=n.target;s;){if(s.hasOwnProperty("custom-time"))return s["custom-time"];s=s.parentNode}return null}}]),t}(li),eG=`.vis-timeline {
|
152
148
|
/*
|
153
149
|
-webkit-transition: height .4s ease-in-out;
|
154
150
|
transition: height .4s ease-in-out;
|
@@ -180,7 +176,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
180
176
|
-webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
|
181
177
|
transition: height .4s ease-in-out, top .4s ease-in-out;
|
182
178
|
}
|
183
|
-
/**/`;
|
179
|
+
/**/`;kt(eG);var tG=`.vis-current-time {
|
184
180
|
background-color: #FF7F6E;
|
185
181
|
width: 2px;
|
186
182
|
z-index: 1;
|
@@ -208,7 +204,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
208
204
|
|
209
205
|
.vis-rolling-mode-btn:hover {
|
210
206
|
opacity: 1;
|
211
|
-
}`;
|
207
|
+
}`;kt(tG);var rG=`.vis-panel {
|
212
208
|
position: absolute;
|
213
209
|
|
214
210
|
padding: 0;
|
@@ -288,7 +284,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
288
284
|
.vis-panel .vis-shadow.vis-bottom {
|
289
285
|
bottom: -1px;
|
290
286
|
left: 0;
|
291
|
-
}`;
|
287
|
+
}`;kt(rG);var iG=`.vis-graph-group0 {
|
292
288
|
fill:#4f81bd;
|
293
289
|
fill-opacity:0;
|
294
290
|
stroke-width:2px;
|
@@ -394,7 +390,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
394
390
|
fill-opacity:0.3;
|
395
391
|
stroke: none;
|
396
392
|
}
|
397
|
-
`;
|
393
|
+
`;kt(iG);var nG=`
|
398
394
|
.vis-timeline {
|
399
395
|
position: relative;
|
400
396
|
border: 1px solid #bfbfbf;
|
@@ -410,14 +406,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
410
406
|
position: absolute;
|
411
407
|
top: 0;
|
412
408
|
left: 0;
|
413
|
-
}`;
|
409
|
+
}`;kt(nG);var aG=`/* override some bootstrap styles screwing up the timelines css */
|
414
410
|
|
415
411
|
.vis [class*="span"] {
|
416
412
|
min-height: 0;
|
417
413
|
width: auto;
|
418
414
|
}
|
419
|
-
`;Pt(rZ);var sa=function(){function e(){fe(this,e)}return pe(e,[{key:"_create",value:function(r){var a=this,n,s,o;this.dom={},this.dom.container=r,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){a.initialDrawDone===!0&&a._redraw()}),this.on("rangechanged",function(){a.initialRangeChangeDone||(a.initialRangeChangeDone=!0)}),this.on("touch",P(n=this._onTouch).call(n,this)),this.on("panmove",P(s=this._onDrag).call(s,this));var l=this;this._origRedraw=P(o=this._redraw).call(o,this),this._redraw=x.throttle(this._origRedraw),this.on("_change",function(w){l.itemSet&&l.itemSet.initialItemSetDrawn&&w&&w.queue==!0?l._redraw():l._origRedraw()}),this.hammer=new kt(this.dom.root);var d=this.hammer.get("pinch").set({enable:!0});d&&_Q(d),this.hammer.get("pan").set({threshold:5,direction:kt.DIRECTION_ALL}),this.timelineListeners={};var c=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];G(c).call(c,function(w){var k=function(D){l.isActive()&&l.emit(w,D)};l.hammer.on(w,k),l.timelineListeners[w]=k}),p1(this.hammer,function(w){l.emit("touch",w)}),yQ(this.hammer,function(w){l.emit("release",w)});function f(w){var k=40,T=800;this.isActive()&&this.emit("mousewheel",w);var D=0,N=0;if("detail"in w&&(N=w.detail*-1),"wheelDelta"in w&&(N=w.wheelDelta),"wheelDeltaY"in w&&(N=w.wheelDeltaY),"wheelDeltaX"in w&&(D=w.wheelDeltaX*-1),"axis"in w&&w.axis===w.HORIZONTAL_AXIS&&(D=N*-1,N=0),"deltaY"in w&&(N=w.deltaY*-1),"deltaX"in w&&(D=w.deltaX),w.deltaMode&&(w.deltaMode===1?(D*=k,N*=k):(D*=k,N*=T)),this.options.preferZoom){if(!this.options.zoomKey||w[this.options.zoomKey])return}else if(this.options.zoomKey&&w[this.options.zoomKey])return;if(!(!this.options.verticalScroll&&!this.options.horizontalScroll)){if(this.options.verticalScroll&&Math.abs(N)>=Math.abs(D)){var L=this.props.scrollTop,A=L+N;if(this.isActive()){var R=this._setScrollTop(A);R!==L&&(this._redraw(),this.emit("scroll",w),w.preventDefault())}}else if(this.options.horizontalScroll){var C=Math.abs(D)>=Math.abs(N)?D:N,j=C/120*(this.range.end-this.range.start)/20,O=this.range.start+j,M=this.range.end+j,H={animation:!1,byUser:!0,event:w};this.range.setRange(O,M,H),w.preventDefault()}}}var v="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(v,P(f).call(f,this),!1),this.dom.top.addEventListener(v,P(f).call(f,this),!1),this.dom.bottom.addEventListener(v,P(f).call(f,this),!1);function m(w){if(l.options.verticalScroll&&(w.preventDefault(),l.isActive())){var k=-w.target.scrollTop;l._setScrollTop(k),l._redraw(),l.emit("scrollSide",w)}}this.dom.left.parentNode.addEventListener("scroll",P(m).call(m,this)),this.dom.right.parentNode.addEventListener("scroll",P(m).call(m,this));var g=!1;function b(w){var k;if(w.preventDefault&&(l.emit("dragover",l.getEventProperties(w)),w.preventDefault()),Ce(k=w.target.className).call(k,"timeline")>-1&&!g)return w.dataTransfer.dropEffect="move",g=!0,!1}function S(w){w.preventDefault&&w.preventDefault(),w.stopPropagation&&w.stopPropagation();try{var k=JSON.parse(w.dataTransfer.getData("text"));if(!k||!k.content)return}catch{return!1}return g=!1,w.center={x:w.clientX,y:w.clientY},k.target!=="item"?l.itemSet._onAddItem(w):l.itemSet._onDropObjectOnItem(w),l.emit("drop",l.getEventProperties(w)),!1}if(this.dom.center.addEventListener("dragover",P(b).call(b,this),!1),this.dom.center.addEventListener("drop",P(S).call(S,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!r)throw new Error("No container provided");r.appendChild(this.dom.root),r.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(r){var a;if(r){var n=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"];if(x.selectiveExtend(n,this.options,r),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),ne(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in r&&(typeof r.orientation=="string"?this.options.orientation={item:r.orientation,axis:r.orientation}:ne(r.orientation)==="object"&&("item"in r.orientation&&(this.options.orientation.item=r.orientation.item),"axis"in r.orientation&&(this.options.orientation.axis=r.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var s=this.timeAxis2=new Rl(this.body,this.options);s.setOptions=function(v){var m=v?x.extend({},v):{};m.orientation="top",Rl.prototype.setOptions.call(s,m)},this.components.push(s)}}else if(this.timeAxis2){var o,l=Ce(o=this.components).call(o,this.timeAxis2);if(l!==-1){var d;xt(d=this.components).call(d,l,1)}this.timeAxis2.destroy(),this.timeAxis2=null}typeof r.drawPoints=="function"&&(r.drawPoints={onRender:r.drawPoints}),"hiddenDates"in this.options&&jf(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in r&&(r.clickToUse?this.activator||(this.activator=new or(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(G(a=this.components).call(a,function(v){return v.setOptions(r)}),"configure"in r){var c;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(r.configure);var f=x.deepExtend({},this.options);G(c=this.components).call(c,function(v){x.deepExtend(f,v.options)}),this.configurator.setModuleOptions({global:f})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var r;this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var a in this.timelineListeners)this.timelineListeners.hasOwnProperty(a)&&delete this.timelineListeners[a];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,G(r=this.components).call(r,function(n){return n.destroy()}),this.body=null}},{key:"setCustomTime",value:function(r,a){var n,s=te(n=this.customTimes).call(n,function(o){return a===o.options.id});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Ft(a)));s.length>0&&s[0].setCustomTime(r)}},{key:"getCustomTime",value:function(r){var a,n=te(a=this.customTimes).call(a,function(s){return s.options.id===r});if(n.length===0)throw new Error("No custom time bar found with id ".concat(Ft(r)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(r,a,n){var s,o=te(s=this.customTimes).call(s,function(l){return l.options.id===a});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Ft(a)));o.length>0&&o[0].setCustomMarker(r,n)}},{key:"setCustomTimeTitle",value:function(r,a){var n,s=te(n=this.customTimes).call(n,function(o){return o.options.id===a});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Ft(a)));if(s.length>0)return s[0].setCustomTitle(r)}},{key:"getEventProperties",value:function(r){return{event:r}}},{key:"addCustomTime",value:function(r,a){var n,s=r!==void 0?x.convert(r,"Date"):new Date,o=Rf(n=this.customTimes).call(n,function(d){return d.options.id===a});if(o)throw new Error("A custom time with id ".concat(Ft(a)," already exists"));var l=new zf(this.body,x.extend({},this.options,{time:s,id:a,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(l),this.components.push(l),this._redraw(),a}},{key:"removeCustomTime",value:function(r){var a,n=this,s=te(a=this.customTimes).call(a,function(o){return o.options.id===r});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Ft(r)));G(s).call(s,function(o){var l,d,c,f;xt(l=n.customTimes).call(l,Ce(d=n.customTimes).call(d,o),1),xt(c=n.components).call(c,Ce(f=n.components).call(f,o),1),o.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(r){return this.time=r,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(r,a){var n=this.getDataRange();if(!(n.min===null&&n.max===null)){var s=n.max-n.min,o=new Date(n.min.valueOf()-s*.01),l=new Date(n.max.valueOf()+s*.01),d=r&&r.animation!==void 0?r.animation:!0;this.range.setRange(o,l,{animation:d},a)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(r,a,n,s){typeof arguments[2]=="function"&&(s=arguments[2],n={});var o,l;arguments.length==1?(l=arguments[0],o=l.animation!==void 0?l.animation:!0,this.range.setRange(l.start,l.end,{animation:o})):arguments.length==2&&typeof arguments[1]=="function"?(l=arguments[0],s=arguments[1],o=l.animation!==void 0?l.animation:!0,this.range.setRange(l.start,l.end,{animation:o},s)):(o=n&&n.animation!==void 0?n.animation:!0,this.range.setRange(r,a,{animation:o},s))}},{key:"moveTo",value:function(r,a,n){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.range.end-this.range.start,o=x.convert(r,"Date").valueOf(),l=o-s/2,d=o+s/2,c=a&&a.animation!==void 0?a.animation:!0;this.range.setRange(l,d,{animation:c},n)}},{key:"getWindow",value:function(){var r=this.range.getRange();return{start:new Date(r.start),end:new Date(r.end)}}},{key:"zoomIn",value:function(r,a,n){if(!(!r||r<0||r>1)){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.getWindow(),o=s.start.valueOf(),l=s.end.valueOf(),d=l-o,c=d/(1+r),f=(d-c)/2,v=o+f,m=l-f;this.setWindow(v,m,a,n)}}},{key:"zoomOut",value:function(r,a,n){if(!(!r||r<0||r>1)){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.getWindow(),o=s.start.valueOf(),l=s.end.valueOf(),d=l-o,c=o-d*r/2,f=l+d*r/2;this.setWindow(c,f,a,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var r;this.redrawCount++;var a=this.dom;if(!(!a||!a.container||a.root.offsetWidth==0)){var n=!1,s=this.options,o=this.props;Al(this.options.moment,this.body,this.options.hiddenDates),s.orientation=="top"?(x.addClassName(a.root,"vis-top"),x.removeClassName(a.root,"vis-bottom")):(x.removeClassName(a.root,"vis-top"),x.addClassName(a.root,"vis-bottom")),s.rtl?(x.addClassName(a.root,"vis-rtl"),x.removeClassName(a.root,"vis-ltr")):(x.addClassName(a.root,"vis-ltr"),x.removeClassName(a.root,"vis-rtl")),a.root.style.maxHeight=x.option.asSize(s.maxHeight,""),a.root.style.minHeight=x.option.asSize(s.minHeight,""),a.root.style.width=x.option.asSize(s.width,"");var l=a.root.offsetWidth;o.border.left=1,o.border.right=1,o.border.top=1,o.border.bottom=1,o.center.height=a.center.offsetHeight,o.left.height=a.left.offsetHeight,o.right.height=a.right.offsetHeight,o.top.height=a.top.clientHeight||-o.border.top,o.bottom.height=Math.round(a.bottom.getBoundingClientRect().height)||a.bottom.clientHeight||-o.border.bottom;var d=Math.max(o.left.height,o.center.height,o.right.height),c=o.top.height+d+o.bottom.height+o.border.top+o.border.bottom;a.root.style.height=x.option.asSize(s.height,"".concat(c,"px")),o.root.height=a.root.offsetHeight,o.background.height=o.root.height;var f=o.root.height-o.top.height-o.bottom.height;o.centerContainer.height=f,o.leftContainer.height=f,o.rightContainer.height=o.leftContainer.height,o.root.width=l,o.background.width=o.root.width,this.initialDrawDone||(o.scrollbarWidth=x.getScrollBarWidth());var v=a.leftContainer.clientWidth,m=a.rightContainer.clientWidth;s.verticalScroll?s.rtl?(o.left.width=v||-o.border.left,o.right.width=m+o.scrollbarWidth||-o.border.right):(o.left.width=v+o.scrollbarWidth||-o.border.left,o.right.width=m||-o.border.right):(o.left.width=v||-o.border.left,o.right.width=m||-o.border.right),this._setDOM();var g=this._updateScrollTop();s.orientation.item!="top"&&(g+=Math.max(o.centerContainer.height-o.center.height-o.border.top-o.border.bottom,0)),a.center.style.transform="translateY(".concat(g,"px)");var b=o.scrollTop==0?"hidden":"",S=o.scrollTop==o.scrollTopMin?"hidden":"";a.shadowTop.style.visibility=b,a.shadowBottom.style.visibility=S,a.shadowTopLeft.style.visibility=b,a.shadowBottomLeft.style.visibility=S,a.shadowTopRight.style.visibility=b,a.shadowBottomRight.style.visibility=S,s.verticalScroll&&(a.rightContainer.className="vis-panel vis-right vis-vertical-scroll",a.leftContainer.className="vis-panel vis-left vis-vertical-scroll",a.shadowTopRight.style.visibility="hidden",a.shadowBottomRight.style.visibility="hidden",a.shadowTopLeft.style.visibility="hidden",a.shadowBottomLeft.style.visibility="hidden",a.left.style.top="0px",a.right.style.top="0px"),(!s.verticalScroll||o.center.height<o.centerContainer.height)&&(a.left.style.top="".concat(g,"px"),a.right.style.top="".concat(g,"px"),a.rightContainer.className=a.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),a.leftContainer.className=a.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),o.left.width=v||-o.border.left,o.right.width=m||-o.border.right,this._setDOM());var w=o.center.height>o.centerContainer.height;this.hammer.get("pan").set({direction:w?kt.DIRECTION_ALL:kt.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),G(r=this.components).call(r,function(T){n=T.redraw()||n});var k=5;if(n)if(this.redrawCount<k){this.body.emitter.emit("_change");return}else console.log("WARNING: infinite loop in redraw?");else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var r=this.props,a=this.dom;r.leftContainer.width=r.left.width,r.rightContainer.width=r.right.width;var n=r.root.width-r.left.width-r.right.width;r.center.width=n,r.centerContainer.width=n,r.top.width=n,r.bottom.width=n,a.background.style.height="".concat(r.background.height,"px"),a.backgroundVertical.style.height="".concat(r.background.height,"px"),a.backgroundHorizontal.style.height="".concat(r.centerContainer.height,"px"),a.centerContainer.style.height="".concat(r.centerContainer.height,"px"),a.leftContainer.style.height="".concat(r.leftContainer.height,"px"),a.rightContainer.style.height="".concat(r.rightContainer.height,"px"),a.background.style.width="".concat(r.background.width,"px"),a.backgroundVertical.style.width="".concat(r.centerContainer.width,"px"),a.backgroundHorizontal.style.width="".concat(r.background.width,"px"),a.centerContainer.style.width="".concat(r.center.width,"px"),a.top.style.width="".concat(r.top.width,"px"),a.bottom.style.width="".concat(r.bottom.width,"px"),a.background.style.left="0",a.background.style.top="0",a.backgroundVertical.style.left="".concat(r.left.width+r.border.left,"px"),a.backgroundVertical.style.top="0",a.backgroundHorizontal.style.left="0",a.backgroundHorizontal.style.top="".concat(r.top.height,"px"),a.centerContainer.style.left="".concat(r.left.width,"px"),a.centerContainer.style.top="".concat(r.top.height,"px"),a.leftContainer.style.left="0",a.leftContainer.style.top="".concat(r.top.height,"px"),a.rightContainer.style.left="".concat(r.left.width+r.center.width,"px"),a.rightContainer.style.top="".concat(r.top.height,"px"),a.top.style.left="".concat(r.left.width,"px"),a.top.style.top="0",a.bottom.style.left="".concat(r.left.width,"px"),a.bottom.style.top="".concat(r.top.height+r.centerContainer.height,"px"),a.center.style.left="0",a.left.style.left="0",a.right.style.left="0"}},{key:"setCurrentTime",value:function(r){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(r)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(r){return Py(this,r,this.props.center.width)}},{key:"_toGlobalTime",value:function(r){return Py(this,r,this.props.root.width)}},{key:"_toScreen",value:function(r){return Iy(this,r,this.props.center.width)}},{key:"_toGlobalScreen",value:function(r){return Iy(this,r,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==!0?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var r=this;this._stopAutoResize(),this._onResize=function(){if(r.options.autoResize!=!0){r._stopAutoResize();return}if(r.dom.root){var a=r.dom.root.offsetHeight,n=r.dom.root.offsetWidth;(n!=r.props.lastWidth||a!=r.props.lastHeight)&&(r.props.lastWidth=n,r.props.lastHeight=a,r.props.scrollbarWidth=x.getScrollBarWidth(),r.body.emitter.emit("_change"))}},window.addEventListener("resize",this._onResize),r.dom.root&&(r.props.lastWidth=r.dom.root.offsetWidth,r.props.lastHeight=r.dom.root.offsetHeight),this.watchTimer=vQ(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(r){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(r){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(r){if(r&&this.touch.allowDragging){var a=r.deltaY,n=this._getScrollTop(),s=this._setScrollTop(this.touch.initialScrollTop+a);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),s!=n&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(r){return this.props.scrollTop=r,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var r=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return r!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(this.props.scrollTop+=r-this.props.scrollTopMin),this.props.scrollTopMin=r),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<r&&(this.props.scrollTop=r),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),e}();uf(sa.prototype);function nZ(e){var t=iZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function iZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var S1=function(e){It(r,e);var t=nZ(r);function r(a,n){var s,o;fe(this,r),o=t.call(this),o.body=a,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Tt,locales:wa,locale:"en"},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},wa,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return G(s=st(o.options.locales)).call(s,function(d){o.options.locales[d]=x.extend({},l,o.options.locales[d])}),o.offset=0,o._create(),o}return pe(r,[{key:"_create",value:function(){var n=document.createElement("div");n.className="vis-current-time",n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(n){n&&x.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,n)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var n,s,o=this.body.dom.backgroundVertical;this.bar.parentNode!=o&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),o.appendChild(this.bar),this.start());var l=this.options.moment(qt()+this.offset);this.options.alignCurrentTime&&(l=l.startOf(this.options.alignCurrentTime));var d=this.body.util.toScreen(l),c=this.options.locales[this.options.locale];c||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),c=this.options.locales.en);var f=Me(n=Me(s="".concat(c.current," ")).call(s,c.time,": ")).call(n,l.format("dddd, MMMM Do YYYY, H:mm:ss"));f=f.charAt(0).toUpperCase()+f.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(d*-1,"px)"):this.bar.style.transform="translateX(".concat(d,"px)"),this.bar.title=f}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var n=this;function s(){n.stop();var o=n.body.range.conversion(n.body.domProps.center.width).scale,l=1/o/10;l<30&&(l=30),l>1e3&&(l=1e3),n.redraw(),n.body.emitter.emit("currentTimeTick"),n.currentTimeTimer=_t(s,l)}s()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(n){var s=x.convert(n,"Date").valueOf(),o=qt();this.offset=s-o,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(qt()+this.offset)}}]),r}(Fn),aZ=X,sZ=hn.find,Vy="find",k1=!0;Vy in[]&&Array(1)[Vy](function(){k1=!1});aZ({target:"Array",proto:!0,forced:k1},{find:function(t){return sZ(this,t,arguments.length>1?arguments[1]:void 0)}});var oZ=We,lZ=oZ("Array").find,dZ=Oe,cZ=lZ,_u=Array.prototype,uZ=function(e){var t=e.find;return e===_u||dZ(_u,e)&&t===_u.find?cZ:t},hZ=uZ,fZ=hZ,pZ=fZ,vZ=K(pZ),mZ=X,gZ=hn.findIndex,Fy="findIndex",x1=!0;Fy in[]&&Array(1)[Fy](function(){x1=!1});mZ({target:"Array",proto:!0,forced:x1},{findIndex:function(t){return gZ(this,t,arguments.length>1?arguments[1]:void 0)}});var yZ=We,_Z=yZ("Array").findIndex,bZ=Oe,wZ=_Z,bu=Array.prototype,EZ=function(e){var t=e.findIndex;return e===bu||bZ(bu,e)&&t===bu.findIndex?wZ:t},SZ=EZ,kZ=SZ,xZ=kZ,TZ=K(xZ);function $Z(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=DZ(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
420
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function DZ(e,t){var r;if(e){if(typeof e=="string")return Yy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Yy(e,t)}}function Yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var Kt=.001;function NZ(e){Ze(e).call(e,function(t,r){return t.data.start-r.data.start})}function CZ(e){Ze(e).call(e,function(t,r){var a="end"in t.data?t.data.end:t.data.start,n="end"in r.data?r.data.end:r.data.start;return a-n})}function jy(e,t,r,a){var n=Uf(e,t.item,!1,function(s){return s.stack&&(r||s.top===null)},function(s){return s.stack},function(s){return t.axis},a);return n===null}function OZ(e,t,r){var a=Uf(e,t.item,!1,function(n){return n.stack},function(n){return!0},function(n){return n.baseTop});r.height=a-r.top+.5*t.item.vertical}function AZ(e,t,r,a){for(var n=0;n<e.length;n++)if(e[n].data.subgroup==null)e[n].top=t.item.vertical;else if(e[n].data.subgroup!==void 0&&a){var s=0;for(var o in r)r.hasOwnProperty(o)&&r[o].visible==!0&&r[o].index<r[e[n].data.subgroup].index&&(s+=r[o].height,r[e[n].data.subgroup].top=s);e[n].top=s+.5*t.item.vertical}a||IZ(e,t,r)}function IZ(e,t,r){var a;Uf(Ze(a=df(r)).call(a,function(s,o){return s.index>o.index?1:s.index<o.index?-1:0}),{vertical:0},!0,function(s){return!0},function(s){return!0},function(s){return 0});for(var n=0;n<e.length;n++)e[n].data.subgroup!==void 0&&(e[n].top=r[e[n].data.subgroup].top+.5*t.item.vertical)}function By(e,t,r){var a=!1,n=[];for(var s in r)r[s].hasOwnProperty("index")?n[r[s].index]=s:n.push(s);for(var o=0;o<n.length;o++)if(s=n[o],r.hasOwnProperty(s)){a=a||r[s].stack,r[s].top=0;for(var l in r)r[l].visible&&r[s].index>r[l].index&&(r[s].top+=r[l].height);for(var d=e[s],c=0;c<d.length;c++)d[c].data.subgroup!==void 0&&(d[c].top=r[d[c].data.subgroup].top+.5*t.item.vertical,r[s].stack&&(d[c].baseTop=d[c].top));a&&r[s].stack&&OZ(e[s],t,r[s])}}function Uf(e,t,r,a,n,s,o){var l=function(C){return C.start},d=function(C){return C.end};if(!r){var c=!!(e[0]&&e[0].options.rtl);c?l=function(C){return C.right}:l=function(C){return C.left},d=function(C){return l(C)+C.width+t.horizontal}}var f=[],v=[],m=null,g=0,b=$Z(e),S;try{var w=function(){var C=S.value;if(a(C))f.push(C);else if(n(C)){var j=l(C);m!==null&&j<m-Kt&&(g=0),m=j,g=tl(v,function(O){return l(O)-Kt>j},g),xt(v).call(v,g,0,C),g++}};for(b.s();!(S=b.n()).done;)w()}catch(R){b.e(R)}finally{b.f()}m=null;var k=null;g=0;for(var T=0,D=0,N=0,L=function(){var C,j,O=f.shift();O.top=s(O);var M=l(O),H=d(O);m!==null&&M<m-Kt&&(T=0,D=0,g=0,k=null),m=M,T=tl(v,function(he){return M<d(he)-Kt},T),(k===null||k<H-Kt)&&(D=tl(v,function(he){return H<l(he)-Kt},Math.max(T,D))),k!==null&&k-Kt>H&&(D=MZ(v,function(he){return H+Kt>=l(he)},T,D)+1);for(var z=Ze(C=te(j=bt(v).call(v,T,D)).call(j,function(he){return M<d(he)-Kt&&H-Kt>l(he)})).call(C,function(he,rt){return he.top-rt.top}),se=0;se<z.length;se++){var _e=z[se];PZ(O,_e,t)&&(O.top=_e.top+_e.height+t.vertical)}n(O)&&(g=tl(v,function(he){return l(he)-Kt>M},g),xt(v).call(v,g,0,O),g++);var be=O.top+O.height;if(be>N&&(N=be),o&&o())return{v:null}},A;f.length>0;)if(A=L(),A)return A.v;return N}function PZ(e,t,r){return e.top-r.vertical+Kt<t.top+t.height&&e.top+e.height+r.vertical-Kt>t.top}function tl(e,t,r){var a;r||(r=0);var n=TZ(a=bt(e).call(e,r)).call(a,t);return n===-1?e.length:n+r}function MZ(e,t,r,a){for(r||(r=0),a||(a=e.length),i=a-1;i>=r;i--)if(t(e[i]))return i;return r-1}var RZ="__background__",Hy={BACKGROUND:RZ},wh=function(){function e(t,r,a){var n=this;if(fe(this,e),this.groupId=t,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=r&&r.subgroupOrder,this.itemSet=a,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],r&&r.nestedGroups&&(this.nestedGroups=r.nestedGroups,r.showNested==!1?this.showNested=!1:this.showNested=!0),r&&r.subgroupStack)if(typeof r.subgroupStack=="boolean")this.doInnerStack=r.subgroupStack,this.subgroupStackAll=r.subgroupStack;else for(var s in r.subgroupStack)this.subgroupStack[s]=r.subgroupStack[s],this.doInnerStack=this.doInnerStack||r.subgroupStack[s];r&&r.heightMode?this.heightMode=r.heightMode:this.heightMode=a.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var o=function(){n.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",o),this._disposeCallbacks.push(function(){n.itemSet.body.emitter.off("checkRangedItems",o)}),this._create(),this.setData(r)}return pe(e,[{key:"_create",value:function(){var r=document.createElement("div");this.itemSet.options.groupEditable.order?r.className="vis-label draggable":r.className="vis-label",this.dom.label=r;var a=document.createElement("div");a.className="vis-inner",r.appendChild(a),this.dom.inner=a;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(r){if(!this.itemSet.groupTouchParams.isDragging){var a,n;if(r&&r.subgroupVisibility)for(var s in r.subgroupVisibility)this.subgroupVisibility[s]=r.subgroupVisibility[s];if(this.itemSet.options&&this.itemSet.options.groupTemplate){var o;n=P(o=this.itemSet.options.groupTemplate).call(o,this),a=n(r,this.dom.inner)}else a=r&&r.content;if(a instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(a)}else a instanceof Object&&a.isReactComponent||(a instanceof Object?n(r,this.dom.inner):a!=null?this.dom.inner.innerHTML=x.xss(a):this.dom.inner.innerHTML=x.xss(this.groupId||""));this.dom.label.title=r&&r.title||"",this.dom.inner.firstChild?x.removeClassName(this.dom.inner,"vis-hidden"):x.addClassName(this.dom.inner,"vis-hidden"),r&&r.nestedGroups?((!this.nestedGroups||this.nestedGroups!=r.nestedGroups)&&(this.nestedGroups=r.nestedGroups),(r.showNested!==void 0||this.showNested===void 0)&&(r.showNested==!1?this.showNested=!1:this.showNested=!0),x.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(x.removeClassName(this.dom.label,"collapsed"),x.addClassName(this.dom.label,"expanded")):(x.removeClassName(this.dom.label,"expanded"),x.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,x.removeClassName(this.dom.label,"collapsed"),x.removeClassName(this.dom.label,"expanded"),x.removeClassName(this.dom.label,"vis-nesting-group")),r&&(r.treeLevel||r.nestedInGroup)?(x.addClassName(this.dom.label,"vis-nested-group"),r.treeLevel?x.addClassName(this.dom.label,"vis-group-level-"+r.treeLevel):x.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):x.addClassName(this.dom.label,"vis-group-level-0");var l=r&&r.className||null;l!=this.className&&(this.className&&(x.removeClassName(this.dom.label,this.className),x.removeClassName(this.dom.foreground,this.className),x.removeClassName(this.dom.background,this.className),x.removeClassName(this.dom.axis,this.className)),x.addClassName(this.dom.label,l),x.addClassName(this.dom.foreground,l),x.addClassName(this.dom.background,l),x.addClassName(this.dom.axis,l),this.className=l),this.style&&(x.removeCssText(this.dom.label,this.style),this.style=null),r&&r.style&&(x.addCssText(this.dom.label,r.style),this.style=r.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var r=this.dom.marker.clientHeight;if(r!=this.lastMarkerHeight){this.lastMarkerHeight=r;var a={},n=0;G(x).call(x,this.items,function(d,c){if(d.dirty=!0,d.displayed){var f=!0;a[c]=d.redraw(f),n=a[c].length}});var s=n>0;if(s)for(var o=function(c){G(x).call(x,a,function(f){f[c]()})},l=0;l<n;l++)o(l);return!0}else return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var r=this.dom.foreground,a=r.offsetTop,n=r.offsetLeft,s=r.offsetWidth;this.top=a,this.right=n,this.width=s}},{key:"_shouldBailItemsRedraw",value:function(){var r=this,a=this.itemSet.options.onTimeout,n={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:a&&a.timeoutMs,userBailFunction:a&&a.callback,shouldBailStackItems:this.shouldBailStackItems},s=null;if(!this.itemSet.initialDrawDone){if(n.shouldBailStackItems)return!0;Math.abs(qt()-new Date(n.relativeBailingTime))>n.bailTimeMs&&(n.userBailFunction&&this.itemSet.userContinueNotBail==null?n.userBailFunction(function(o){r.itemSet.userContinueNotBail=o,s=!o}):r.itemSet.userContinueNotBail==!1?s=!0:s=!1)}return s}},{key:"_redrawItems",value:function(r,a,n,s){var o=this,l=r||this.stackDirty||this.isVisible&&!a;if(l){var d,c,f,v,m,g,b={byEnd:te(d=this.orderedItems.byEnd).call(d,function(H){return!H.isCluster}),byStart:te(c=this.orderedItems.byStart).call(c,function(H){return!H.isCluster})},S={byEnd:Fe(new xn(te(f=Se(v=this.orderedItems.byEnd).call(v,function(H){return H.cluster})).call(f,function(H){return!!H}))),byStart:Fe(new xn(te(m=Se(g=this.orderedItems.byStart).call(g,function(H){return H.cluster})).call(m,function(H){return!!H})))},w=function(){var z,se,_e,be=o._updateItemsInRange(b,te(z=o.visibleItems).call(z,function(rt){return!rt.isCluster}),s),he=o._updateClustersInRange(S,te(se=o.visibleItems).call(se,function(rt){return rt.isCluster}),s);return Me(_e=[]).call(_e,Fe(be),Fe(he))},k=function(z){var se={},_e=function(rt){var ut,Ie=te(ut=o.visibleItems).call(ut,function(Mt){return Mt.data.subgroup===rt});se[rt]=z?Ze(Ie).call(Ie,function(Mt,ht){return z(Mt.data,ht.data)}):Ie};for(var be in o.subgroups)_e(be);return se};if(typeof this.itemSet.options.order=="function"){var T=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var D=k(this.itemSet.options.order);By(D,n,this.subgroups),this.visibleItems=w(),this._updateSubGroupHeights(n)}else{var N,L,A,R;this.visibleItems=w(),this._updateSubGroupHeights(n);var C=Ze(N=te(L=bt(A=this.visibleItems).call(A)).call(L,function(H){return H.isCluster||!H.isCluster&&!H.cluster})).call(N,function(H,z){return T.itemSet.options.order(H.data,z.data)});this.shouldBailStackItems=jy(C,n,!0,P(R=this._shouldBailItemsRedraw).call(R,this))}}else if(this.visibleItems=w(),this._updateSubGroupHeights(n),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var j=k();By(j,n,this.subgroups)}else{var O;this.shouldBailStackItems=jy(this.visibleItems,n,!0,P(O=this._shouldBailItemsRedraw).call(O,this))}else AZ(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups);for(var M=0;M<this.visibleItems.length;M++)this.visibleItems[M].repositionX(),this.subgroupVisibility[this.visibleItems[M].data.subgroup]!==void 0&&(this.subgroupVisibility[this.visibleItems[M].data.subgroup]||this.visibleItems[M].hide());this.itemSet.options.cluster&&G(x).call(x,this.items,function(H){H.cluster&&H.displayed&&H.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(r,a){r=x.updateProperty(this,"height",a)||r;var n=this.dom.inner.clientWidth,s=this.dom.inner.clientHeight;return r=x.updateProperty(this.props.label,"width",n)||r,r=x.updateProperty(this.props.label,"height",s)||r,r}},{key:"_applyGroupHeight",value:function(r){this.dom.background.style.height="".concat(r,"px"),this.dom.foreground.style.height="".concat(r,"px"),this.dom.label.style.height="".concat(r,"px")}},{key:"_updateItemsVerticalPosition",value:function(r){for(var a=0,n=this.visibleItems.length;a<n;a++){var s=this.visibleItems[a];s.repositionY(r),!this.isVisible&&this.groupId!=Hy.BACKGROUND&&s.displayed&&s.hide()}}},{key:"redraw",value:function(r,a,n,s){var o=this,l,d,c,f,v,m=!1,g=this.isVisible,b,S=[function(){n=o._didMarkerHeightChange.call(o)||n},P(l=this._updateSubGroupHeights).call(l,this,a),P(d=this._calculateGroupSizeAndPosition).call(d,this),function(){var k;o.isVisible=P(k=o._isGroupVisible).call(k,o)(r,a)},function(){var k;P(k=o._redrawItems).call(k,o)(n,g,a,r)},P(c=this._updateSubgroupsSizes).call(c,this),function(){var k;b=P(k=o._calculateHeight).call(k,o)(a)},P(f=this._calculateGroupSizeAndPosition).call(f,this),function(){var k;m=P(k=o._didResize).call(k,o)(m,b)},function(){var k;P(k=o._applyGroupHeight).call(k,o)(b)},function(){var k;P(k=o._updateItemsVerticalPosition).call(k,o)(a)},P(v=function(){return!o.isVisible&&o.height&&(m=!1),m}).call(v,this)];if(s)return S;var w;return G(S).call(S,function(k){w=k()}),w}},{key:"_updateSubGroupHeights",value:function(r){var a=this;if(st(this.subgroups).length>0){var n=this;this._resetSubgroups(),G(x).call(x,this.visibleItems,function(s){s.data.subgroup!==void 0&&(n.subgroups[s.data.subgroup].height=Math.max(n.subgroups[s.data.subgroup].height,s.height+r.item.vertical),n.subgroups[s.data.subgroup].visible=typeof a.subgroupVisibility[s.data.subgroup]>"u"?!0:!!a.subgroupVisibility[s.data.subgroup])})}}},{key:"_isGroupVisible",value:function(r,a){return this.top<=r.body.domProps.centerContainer.height-r.body.domProps.scrollTop+a.axis&&this.top+this.height+a.axis>=-r.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(r){var a,n;if(this.heightMode==="fixed"?n=x.toArray(this.items):n=this.visibleItems,n.length>0){var s=n[0].top,o=n[0].top+n[0].height;if(G(x).call(x,n,function(d){s=Math.min(s,d.top),o=Math.max(o,d.top+d.height)}),s>r.axis){var l=s-r.axis;o-=l,G(x).call(x,n,function(d){d.top-=l})}a=Math.ceil(o+r.item.vertical/2),this.heightMode!=="fitItems"&&(a=Math.max(a,this.props.label.height))}else a=this.props.label.height;return a}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var r=this.dom.label;r.parentNode&&r.parentNode.removeChild(r);var a=this.dom.foreground;a.parentNode&&a.parentNode.removeChild(a);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var s=this.dom.axis;s.parentNode&&s.parentNode.removeChild(s)}},{key:"add",value:function(r){var a;if(this.items[r.id]=r,r.setParent(this),this.stackDirty=!0,r.data.subgroup!==void 0&&(this._addToSubgroup(r),this.orderSubgroups()),!Nn(a=this.visibleItems).call(a,r)){var n=this.itemSet.body.range;this._checkIfVisible(r,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.data.subgroup;a!=null&&this.subgroups[a]===void 0&&(this.subgroups[a]={height:0,top:0,start:r.data.start,end:r.data.end||r.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[a]||!1},this.subgroupIndex++),new Date(r.data.start)<new Date(this.subgroups[a].start)&&(this.subgroups[a].start=r.data.start);var n=r.data.end||r.data.start;new Date(n)>new Date(this.subgroups[a].end)&&(this.subgroups[a].end=n),this.subgroups[a].items.push(r)}},{key:"_updateSubgroupsSizes",value:function(){var r=this;if(r.subgroups){var a=function(){var o,l=r.subgroups[n].items[0].data.end||r.subgroups[n].items[0].data.start,d=r.subgroups[n].items[0].data.start,c=l-1;G(o=r.subgroups[n].items).call(o,function(f){new Date(f.data.start)<new Date(d)&&(d=f.data.start);var v=f.data.end||f.data.start;new Date(v)>new Date(c)&&(c=v)}),r.subgroups[n].start=d,r.subgroups[n].end=new Date(c-1)};for(var n in r.subgroups)a()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var r=[];if(typeof this.subgroupOrderer=="string"){for(var a in this.subgroups)r.push({subgroup:a,sortField:this.subgroups[a].items[0].data[this.subgroupOrderer]});Ze(r).call(r,function(o,l){return o.sortField-l.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var n in this.subgroups)r.push(this.subgroups[n].items[0].data);Ze(r).call(r,this.subgroupOrderer)}if(r.length>0)for(var s=0;s<r.length;s++)this.subgroups[r[s].subgroup].index=s}}},{key:"_resetSubgroups",value:function(){for(var r in this.subgroups)this.subgroups.hasOwnProperty(r)&&(this.subgroups[r].visible=!1,this.subgroups[r].height=0)}},{key:"remove",value:function(r){var a,n;delete this.items[r.id],r.setParent(null),this.stackDirty=!0;var s=Ce(a=this.visibleItems).call(a,r);s!=-1&&xt(n=this.visibleItems).call(n,s,1),r.data.subgroup!==void 0&&(this._removeFromSubgroup(r),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.data.subgroup;if(a!=null){var n=this.subgroups[a];if(n){var s,o=Ce(s=n.items).call(s,r);if(o>=0){var l;xt(l=n.items).call(l,o,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[a]}}}}},{key:"removeFromDataSet",value:function(r){this.itemSet.removeItem(r.id)}},{key:"order",value:function(){for(var r=x.toArray(this.items),a=[],n=[],s=0;s<r.length;s++)r[s].data.end!==void 0&&n.push(r[s]),a.push(r[s]);this.orderedItems={byStart:a,byEnd:n},NZ(this.orderedItems.byStart),CZ(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(r,a,n){var s=[],o={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=Hy.BACKGROUND){for(var l=0;l<a.length;l++){var d=a[l];d.displayed&&d.hide()}return s}var c=(n.end-n.start)/4,f=n.start-c,v=n.end+c,m=function(H){return H<f?-1:H<=v?0:1},g=function(H){var z=H.start,se=H.end;return se<f?-1:z<=v?0:1};if(a.length>0)for(var b=0;b<a.length;b++)this._checkIfVisibleWithReference(a[b],s,o,n);var S=x.binarySearchCustom(r.byStart,m,"data","start");if(this._traceVisible(S,r.byStart,s,o,function(M){return M.data.start<f||M.data.start>v}),this.checkRangedItems==!0){this.checkRangedItems=!1;for(var w=0;w<r.byEnd.length;w++)this._checkIfVisibleWithReference(r.byEnd[w],s,o,n)}else{var k=x.binarySearchCustom(r.byEnd,g,"data");this._traceVisible(k,r.byEnd,s,o,function(M){return M.data.end<f||M.data.start>v})}for(var T={},D=0,N=0;N<s.length;N++){var L=s[N];if(!L.displayed){var A=!0;T[N]=L.redraw(A),D=T[N].length}}var R=D>0;if(R)for(var C=function(H){G(x).call(x,T,function(z){z[H]()})},j=0;j<D;j++)C(j);for(var O=0;O<s.length;O++)s[O].repositionX();return s}},{key:"_traceVisible",value:function(r,a,n,s,o){if(r!=-1){for(var l=r;l>=0;l--){var d=a[l];if(o(d))break;!(d.isCluster&&!d.hasItems())&&!d.cluster&&s[d.id]===void 0&&(s[d.id]=!0,n.push(d))}for(var c=r+1;c<a.length;c++){var f=a[c];if(o(f))break;!(f.isCluster&&!f.hasItems())&&!f.cluster&&s[f.id]===void 0&&(s[f.id]=!0,n.push(f))}}}},{key:"_checkIfVisible",value:function(r,a,n){r.isVisible(n)?(r.displayed||r.show(),r.repositionX(),a.push(r)):r.displayed&&r.hide()}},{key:"_checkIfVisibleWithReference",value:function(r,a,n,s){r.isVisible(s)?n[r.id]===void 0&&(n[r.id]=!0,a.push(r)):r.displayed&&r.hide()}},{key:"_updateClustersInRange",value:function(r,a,n){var s=[],o={};if(a.length>0)for(var l=0;l<a.length;l++)this._checkIfVisibleWithReference(a[l],s,o,n);for(var d=0;d<r.byStart.length;d++)this._checkIfVisibleWithReference(r.byStart[d],s,o,n);for(var c=0;c<r.byEnd.length;c++)this._checkIfVisibleWithReference(r.byEnd[c],s,o,n);for(var f={},v=0,m=0;m<s.length;m++){var g=s[m];if(!g.displayed){var b=!0;f[m]=g.redraw(b),v=f[m].length}}var S=v>0;if(S)for(var w=0;w<v;w++)G(x).call(x,f,function(T){T[w]()});for(var k=0;k<s.length;k++)s[k].repositionX();return s}},{key:"changeSubgroup",value:function(r,a,n){this._removeFromSubgroup(r,a),this._addToSubgroup(r,n),this.orderSubgroups()}},{key:"dispose",value:function(){this.hide();for(var r;r=this._disposeCallbacks.pop();)r()}}]),e}();function LZ(e){var t=VZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function VZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var T1=function(e){It(r,e);var t=LZ(r);function r(a,n,s){var o;return fe(this,r),o=t.call(this,a,n,s),o.width=0,o.height=0,o.top=0,o.left=0,o}return pe(r,[{key:"redraw",value:function(n,s,o){var l=!1;this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,n),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var d=0,c=this.visibleItems.length;d<c;d++){var f=this.visibleItems[d];f.repositionY(s)}return l}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),r}(wh),FZ=`
|
415
|
+
`;kt(aG);var fn=function(){function e(){ue(this,e)}return ce(e,[{key:"_create",value:function(t){var a=this,n,s,o;this.dom={},this.dom.container=t,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){a.initialDrawDone===!0&&a._redraw()}),this.on("rangechanged",function(){a.initialRangeChangeDone||(a.initialRangeChangeDone=!0)}),this.on("touch",O(n=this._onTouch).call(n,this)),this.on("panmove",O(s=this._onDrag).call(s,this));var l=this;this._origRedraw=O(o=this._redraw).call(o,this),this._redraw=x.throttle(this._origRedraw),this.on("_change",function(w){l.itemSet&&l.itemSet.initialItemSetDrawn&&w&&w.queue==!0?l._redraw():l._origRedraw()}),this.hammer=new vt(this.dom.root);var d=this.hammer.get("pinch").set({enable:!0});d&&kW(d),this.hammer.get("pan").set({threshold:5,direction:vt.DIRECTION_ALL}),this.timelineListeners={};var u=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];B(u).call(u,function(w){var S=function(T){l.isActive()&&l.emit(w,T)};l.hammer.on(w,S),l.timelineListeners[w]=S}),mb(this.hammer,function(w){l.emit("touch",w)}),wW(this.hammer,function(w){l.emit("release",w)});function f(w){var S=40,D=800;this.isActive()&&this.emit("mousewheel",w);var T=0,P=0;if("detail"in w&&(P=w.detail*-1),"wheelDelta"in w&&(P=w.wheelDelta),"wheelDeltaY"in w&&(P=w.wheelDeltaY),"wheelDeltaX"in w&&(T=w.wheelDeltaX*-1),"axis"in w&&w.axis===w.HORIZONTAL_AXIS&&(T=P*-1,P=0),"deltaY"in w&&(P=w.deltaY*-1),"deltaX"in w&&(T=w.deltaX),w.deltaMode&&(w.deltaMode===1?(T*=S,P*=S):(T*=S,P*=D)),this.options.preferZoom){if(!this.options.zoomKey||w[this.options.zoomKey])return}else if(this.options.zoomKey&&w[this.options.zoomKey])return;if(!(!this.options.verticalScroll&&!this.options.horizontalScroll)){if(this.options.verticalScroll&&Math.abs(P)>=Math.abs(T)){var F=this.props.scrollTop,A=F+P;if(this.isActive()){var V=this._setScrollTop(A);V!==F&&(this._redraw(),this.emit("scroll",w),w.preventDefault())}}else if(this.options.horizontalScroll){var N=Math.abs(T)>=Math.abs(P)?T:P,I=N/120*(this.range.end-this.range.start)/20,M=this.range.start+I,H=this.range.end+I,W={animation:!1,byUser:!0,event:w};this.range.setRange(M,H,W),w.preventDefault()}}}var p="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(p,O(f).call(f,this),!1),this.dom.top.addEventListener(p,O(f).call(f,this),!1),this.dom.bottom.addEventListener(p,O(f).call(f,this),!1);function m(w){if(l.options.verticalScroll&&(w.preventDefault(),l.isActive())){var S=-w.target.scrollTop;l._setScrollTop(S),l._redraw(),l.emit("scrollSide",w)}}this.dom.left.parentNode.addEventListener("scroll",O(m).call(m,this)),this.dom.right.parentNode.addEventListener("scroll",O(m).call(m,this));var y=!1;function b(w){var S;if(w.preventDefault&&(l.emit("dragover",l.getEventProperties(w)),w.preventDefault()),Se(S=w.target.className).call(S,"timeline")>-1&&!y)return w.dataTransfer.dropEffect="move",y=!0,!1}function E(w){w.preventDefault&&w.preventDefault(),w.stopPropagation&&w.stopPropagation();try{var S=JSON.parse(w.dataTransfer.getData("text"));if(!S||!S.content)return}catch{return!1}return y=!1,w.center={x:w.clientX,y:w.clientY},S.target!=="item"?l.itemSet._onAddItem(w):l.itemSet._onDropObjectOnItem(w),l.emit("drop",l.getEventProperties(w)),!1}if(this.dom.center.addEventListener("dragover",O(b).call(b,this),!1),this.dom.center.addEventListener("drop",O(E).call(E,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(t){var a;if(t){var n=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"];if(x.selectiveExtend(n,this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),ee(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&(typeof t.orientation=="string"?this.options.orientation={item:t.orientation,axis:t.orientation}:ee(t.orientation)==="object"&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var s=this.timeAxis2=new ho(this.body,this.options);s.setOptions=function(p){var m=p?x.extend({},p):{};m.orientation="top",ho.prototype.setOptions.call(s,m)},this.components.push(s)}}else if(this.timeAxis2){var o,l=Se(o=this.components).call(o,this.timeAxis2);if(l!==-1){var d;pt(d=this.components).call(d,l,1)}this.timeAxis2.destroy(),this.timeAxis2=null}typeof t.drawPoints=="function"&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&xc(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new Ut(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(B(a=this.components).call(a,function(p){return p.setOptions(t)}),"configure"in t){var u;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var f=x.deepExtend({},this.options);B(u=this.components).call(u,function(p){x.deepExtend(f,p.options)}),this.configurator.setModuleOptions({global:f})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var t;this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var a in this.timelineListeners)this.timelineListeners.hasOwnProperty(a)&&delete this.timelineListeners[a];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,B(t=this.components).call(t,function(n){return n.destroy()}),this.body=null}},{key:"setCustomTime",value:function(t,a){var n,s=J(n=this.customTimes).call(n,function(o){return a===o.options.id});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Dt(a)));s.length>0&&s[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var a,n=J(a=this.customTimes).call(a,function(s){return s.options.id===t});if(n.length===0)throw new Error("No custom time bar found with id ".concat(Dt(t)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,a,n){var s,o=J(s=this.customTimes).call(s,function(l){return l.options.id===a});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Dt(a)));o.length>0&&o[0].setCustomMarker(t,n)}},{key:"setCustomTimeTitle",value:function(t,a){var n,s=J(n=this.customTimes).call(n,function(o){return o.options.id===a});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Dt(a)));if(s.length>0)return s[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,a){var n,s=t!==void 0?x.convert(t,"Date"):new Date,o=yc(n=this.customTimes).call(n,function(d){return d.options.id===a});if(o)throw new Error("A custom time with id ".concat(Dt(a)," already exists"));var l=new Tc(this.body,x.extend({},this.options,{time:s,id:a,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(l),this.components.push(l),this._redraw(),a}},{key:"removeCustomTime",value:function(t){var a,n=this,s=J(a=this.customTimes).call(a,function(o){return o.options.id===t});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Dt(t)));B(s).call(s,function(o){var l,d,u,f;pt(l=n.customTimes).call(l,Se(d=n.customTimes).call(d,o),1),pt(u=n.components).call(u,Se(f=n.components).call(f,o),1),o.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(t){return this.time=t,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,a){var n=this.getDataRange();if(!(n.min===null&&n.max===null)){var s=n.max-n.min,o=new Date(n.min.valueOf()-s*.01),l=new Date(n.max.valueOf()+s*.01),d=t&&t.animation!==void 0?t.animation:!0;this.range.setRange(o,l,{animation:d},a)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,a,n,s){typeof arguments[2]=="function"&&(s=arguments[2],n={});var o,l;arguments.length==1?(l=arguments[0],o=l.animation!==void 0?l.animation:!0,this.range.setRange(l.start,l.end,{animation:o})):arguments.length==2&&typeof arguments[1]=="function"?(l=arguments[0],s=arguments[1],o=l.animation!==void 0?l.animation:!0,this.range.setRange(l.start,l.end,{animation:o},s)):(o=n&&n.animation!==void 0?n.animation:!0,this.range.setRange(t,a,{animation:o},s))}},{key:"moveTo",value:function(t,a,n){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.range.end-this.range.start,o=x.convert(t,"Date").valueOf(),l=o-s/2,d=o+s/2,u=a&&a.animation!==void 0?a.animation:!0;this.range.setRange(l,d,{animation:u},n)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,a,n){if(!(!t||t<0||t>1)){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.getWindow(),o=s.start.valueOf(),l=s.end.valueOf(),d=l-o,u=d/(1+t),f=(d-u)/2,p=o+f,m=l-f;this.setWindow(p,m,a,n)}}},{key:"zoomOut",value:function(t,a,n){if(!(!t||t<0||t>1)){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.getWindow(),o=s.start.valueOf(),l=s.end.valueOf(),d=l-o,u=o-d*t/2,f=l+d*t/2;this.setWindow(u,f,a,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var t;this.redrawCount++;var a=this.dom;if(!(!a||!a.container||a.root.offsetWidth==0)){var n=!1,s=this.options,o=this.props;oo(this.options.moment,this.body,this.options.hiddenDates),s.orientation=="top"?(x.addClassName(a.root,"vis-top"),x.removeClassName(a.root,"vis-bottom")):(x.removeClassName(a.root,"vis-top"),x.addClassName(a.root,"vis-bottom")),s.rtl?(x.addClassName(a.root,"vis-rtl"),x.removeClassName(a.root,"vis-ltr")):(x.addClassName(a.root,"vis-ltr"),x.removeClassName(a.root,"vis-rtl")),a.root.style.maxHeight=x.option.asSize(s.maxHeight,""),a.root.style.minHeight=x.option.asSize(s.minHeight,""),a.root.style.width=x.option.asSize(s.width,"");var l=a.root.offsetWidth;o.border.left=1,o.border.right=1,o.border.top=1,o.border.bottom=1,o.center.height=a.center.offsetHeight,o.left.height=a.left.offsetHeight,o.right.height=a.right.offsetHeight,o.top.height=a.top.clientHeight||-o.border.top,o.bottom.height=Math.round(a.bottom.getBoundingClientRect().height)||a.bottom.clientHeight||-o.border.bottom;var d=Math.max(o.left.height,o.center.height,o.right.height),u=o.top.height+d+o.bottom.height+o.border.top+o.border.bottom;a.root.style.height=x.option.asSize(s.height,"".concat(u,"px")),o.root.height=a.root.offsetHeight,o.background.height=o.root.height;var f=o.root.height-o.top.height-o.bottom.height;o.centerContainer.height=f,o.leftContainer.height=f,o.rightContainer.height=o.leftContainer.height,o.root.width=l,o.background.width=o.root.width,this.initialDrawDone||(o.scrollbarWidth=x.getScrollBarWidth());var p=a.leftContainer.clientWidth,m=a.rightContainer.clientWidth;s.verticalScroll?s.rtl?(o.left.width=p||-o.border.left,o.right.width=m+o.scrollbarWidth||-o.border.right):(o.left.width=p+o.scrollbarWidth||-o.border.left,o.right.width=m||-o.border.right):(o.left.width=p||-o.border.left,o.right.width=m||-o.border.right),this._setDOM();var y=this._updateScrollTop();s.orientation.item!="top"&&(y+=Math.max(o.centerContainer.height-o.center.height-o.border.top-o.border.bottom,0)),a.center.style.transform="translateY(".concat(y,"px)");var b=o.scrollTop==0?"hidden":"",E=o.scrollTop==o.scrollTopMin?"hidden":"";a.shadowTop.style.visibility=b,a.shadowBottom.style.visibility=E,a.shadowTopLeft.style.visibility=b,a.shadowBottomLeft.style.visibility=E,a.shadowTopRight.style.visibility=b,a.shadowBottomRight.style.visibility=E,s.verticalScroll&&(a.rightContainer.className="vis-panel vis-right vis-vertical-scroll",a.leftContainer.className="vis-panel vis-left vis-vertical-scroll",a.shadowTopRight.style.visibility="hidden",a.shadowBottomRight.style.visibility="hidden",a.shadowTopLeft.style.visibility="hidden",a.shadowBottomLeft.style.visibility="hidden",a.left.style.top="0px",a.right.style.top="0px"),(!s.verticalScroll||o.center.height<o.centerContainer.height)&&(a.left.style.top="".concat(y,"px"),a.right.style.top="".concat(y,"px"),a.rightContainer.className=a.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),a.leftContainer.className=a.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),o.left.width=p||-o.border.left,o.right.width=m||-o.border.right,this._setDOM());var w=o.center.height>o.centerContainer.height;this.hammer.get("pan").set({direction:w?vt.DIRECTION_ALL:vt.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),B(t=this.components).call(t,function(D){n=D.redraw()||n});var S=5;if(n)if(this.redrawCount<S){this.body.emitter.emit("_change");return}else console.log("WARNING: infinite loop in redraw?");else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var t=this.props,a=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var n=t.root.width-t.left.width-t.right.width;t.center.width=n,t.centerContainer.width=n,t.top.width=n,t.bottom.width=n,a.background.style.height="".concat(t.background.height,"px"),a.backgroundVertical.style.height="".concat(t.background.height,"px"),a.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),a.centerContainer.style.height="".concat(t.centerContainer.height,"px"),a.leftContainer.style.height="".concat(t.leftContainer.height,"px"),a.rightContainer.style.height="".concat(t.rightContainer.height,"px"),a.background.style.width="".concat(t.background.width,"px"),a.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),a.backgroundHorizontal.style.width="".concat(t.background.width,"px"),a.centerContainer.style.width="".concat(t.center.width,"px"),a.top.style.width="".concat(t.top.width,"px"),a.bottom.style.width="".concat(t.bottom.width,"px"),a.background.style.left="0",a.background.style.top="0",a.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),a.backgroundVertical.style.top="0",a.backgroundHorizontal.style.left="0",a.backgroundHorizontal.style.top="".concat(t.top.height,"px"),a.centerContainer.style.left="".concat(t.left.width,"px"),a.centerContainer.style.top="".concat(t.top.height,"px"),a.leftContainer.style.left="0",a.leftContainer.style.top="".concat(t.top.height,"px"),a.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),a.rightContainer.style.top="".concat(t.top.height,"px"),a.top.style.left="".concat(t.left.width,"px"),a.top.style.top="0",a.bottom.style.left="".concat(t.left.width,"px"),a.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),a.center.style.left="0",a.left.style.left="0",a.right.style.left="0"}},{key:"setCurrentTime",value:function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(t){return Vp(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return Vp(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return Ap(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return Ap(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==!0?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){if(t.options.autoResize!=!0){t._stopAutoResize();return}if(t.dom.root){var a=t.dom.root.offsetHeight,n=t.dom.root.offsetWidth;(n!=t.props.lastWidth||a!=t.props.lastHeight)&&(t.props.lastWidth=n,t.props.lastHeight=a,t.props.scrollbarWidth=x.getScrollBarWidth(),t.body.emitter.emit("_change"))}},window.addEventListener("resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=yW(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(t){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(t){if(t&&this.touch.allowDragging){var a=t.deltaY,n=this._getScrollTop(),s=this._setScrollTop(this.touch.initialScrollTop+a);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),s!=n&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<t&&(this.props.scrollTop=t),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),e}();Uu(fn.prototype);function sG(e){var r=oG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function oG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Sb=function(e){wt(t,e);var r=sG(t);function t(a,n){var s,o;ue(this,t),o=r.call(this),o.body=a,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:mt,locales:kn,locale:"en"},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},kn,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return B(s=Ze(o.options.locales)).call(s,function(d){o.options.locales[d]=x.extend({},l,o.options.locales[d])}),o.offset=0,o._create(),o}return ce(t,[{key:"_create",value:function(){var n=document.createElement("div");n.className="vis-current-time",n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(n){n&&x.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,n)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var n,s,o=this.body.dom.backgroundVertical;this.bar.parentNode!=o&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),o.appendChild(this.bar),this.start());var l=this.options.moment(Rt()+this.offset);this.options.alignCurrentTime&&(l=l.startOf(this.options.alignCurrentTime));var d=this.body.util.toScreen(l),u=this.options.locales[this.options.locale];u||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),u=this.options.locales.en);var f=Ne(n=Ne(s="".concat(u.current," ")).call(s,u.time,": ")).call(n,l.format("dddd, MMMM Do YYYY, H:mm:ss"));f=f.charAt(0).toUpperCase()+f.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(d*-1,"px)"):this.bar.style.transform="translateX(".concat(d,"px)"),this.bar.title=f}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var n=this;function s(){n.stop();var o=n.body.range.conversion(n.body.domProps.center.width).scale,l=1/o/10;l<30&&(l=30),l>1e3&&(l=1e3),n.redraw(),n.body.emitter.emit("currentTimeTick"),n.currentTimeTimer=ct(s,l)}s()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(n){var s=x.convert(n,"Date").valueOf(),o=Rt();this.offset=s-o,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(Rt()+this.offset)}}]),t}(li),lG=U,dG=jr.find,Yp="find",$b=!0;Yp in[]&&Array(1)[Yp](function(){$b=!1});lG({target:"Array",proto:!0,forced:$b},{find:function(r){return dG(this,r,arguments.length>1?arguments[1]:void 0)}});var uG=Le,cG=uG("Array").find,hG=$e,fG=cG,Dd=Array.prototype,vG=function(e){var r=e.find;return e===Dd||hG(Dd,e)&&r===Dd.find?fG:r},pG=vG,mG=pG,gG=mG,yG=z(gG),_G=U,bG=jr.findIndex,jp="findIndex",Db=!0;jp in[]&&Array(1)[jp](function(){Db=!1});_G({target:"Array",proto:!0,forced:Db},{findIndex:function(r){return bG(this,r,arguments.length>1?arguments[1]:void 0)}});var wG=Le,kG=wG("Array").findIndex,xG=$e,EG=kG,Td=Array.prototype,SG=function(e){var r=e.findIndex;return e===Td||xG(Td,e)&&r===Td.findIndex?EG:r},$G=SG,DG=$G,TG=DG,NG=z(TG);function CG(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=OG(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
416
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function OG(e,r){var t;if(e){if(typeof e=="string")return Bp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Bp(e,r)}}function Bp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var Vt=.001;function PG(e){Ue(e).call(e,function(r,t){return r.data.start-t.data.start})}function IG(e){Ue(e).call(e,function(r,t){var a="end"in r.data?r.data.end:r.data.start,n="end"in t.data?t.data.end:t.data.start;return a-n})}function Hp(e,r,t,a){var n=Nc(e,r.item,!1,function(s){return s.stack&&(t||s.top===null)},function(s){return s.stack},function(s){return r.axis},a);return n===null}function MG(e,r,t){var a=Nc(e,r.item,!1,function(n){return n.stack},function(n){return!0},function(n){return n.baseTop});t.height=a-t.top+.5*r.item.vertical}function AG(e,r,t,a){for(var n=0;n<e.length;n++)if(e[n].data.subgroup==null)e[n].top=r.item.vertical;else if(e[n].data.subgroup!==void 0&&a){var s=0;for(var o in t)t.hasOwnProperty(o)&&t[o].visible==!0&&t[o].index<t[e[n].data.subgroup].index&&(s+=t[o].height,t[e[n].data.subgroup].top=s);e[n].top=s+.5*r.item.vertical}a||VG(e,r,t)}function VG(e,r,t){var a;Nc(Ue(a=Gu(t)).call(a,function(s,o){return s.index>o.index?1:s.index<o.index?-1:0}),{vertical:0},!0,function(s){return!0},function(s){return!0},function(s){return 0});for(var n=0;n<e.length;n++)e[n].data.subgroup!==void 0&&(e[n].top=t[e[n].data.subgroup].top+.5*r.item.vertical)}function Wp(e,r,t){var a=!1,n=[];for(var s in t)t[s].hasOwnProperty("index")?n[t[s].index]=s:n.push(s);for(var o=0;o<n.length;o++)if(s=n[o],t.hasOwnProperty(s)){a=a||t[s].stack,t[s].top=0;for(var l in t)t[l].visible&&t[s].index>t[l].index&&(t[s].top+=t[l].height);for(var d=e[s],u=0;u<d.length;u++)d[u].data.subgroup!==void 0&&(d[u].top=t[d[u].data.subgroup].top+.5*r.item.vertical,t[s].stack&&(d[u].baseTop=d[u].top));a&&t[s].stack&&MG(e[s],r,t[s])}}function Nc(e,r,t,a,n,s,o){var l=function(N){return N.start},d=function(N){return N.end};if(!t){var u=!!(e[0]&&e[0].options.rtl);u?l=function(N){return N.right}:l=function(N){return N.left},d=function(N){return l(N)+N.width+r.horizontal}}var f=[],p=[],m=null,y=0,b=CG(e),E;try{var w=function(){var N=E.value;if(a(N))f.push(N);else if(n(N)){var I=l(N);m!==null&&I<m-Vt&&(y=0),m=I,y=Rs(p,function(M){return l(M)-Vt>I},y),pt(p).call(p,y,0,N),y++}};for(b.s();!(E=b.n()).done;)w()}catch(V){b.e(V)}finally{b.f()}m=null;var S=null;y=0;for(var D=0,T=0,P=0,F=function(){var N,I,M=f.shift();M.top=s(M);var H=l(M),W=d(M);m!==null&&H<m-Vt&&(D=0,T=0,y=0,S=null),m=H,D=Rs(p,function(Fe){return H<d(Fe)-Vt},D),(S===null||S<W-Vt)&&(T=Rs(p,function(Fe){return W<l(Fe)-Vt},Math.max(D,T))),S!==null&&S-Vt>W&&(T=LG(p,function(Fe){return W+Vt>=l(Fe)},D,T)+1);for(var q=Ue(N=J(I=ht(p).call(p,D,T)).call(I,function(Fe){return H<d(Fe)-Vt&&W-Vt>l(Fe)})).call(N,function(Fe,xt){return Fe.top-xt.top}),de=0;de<q.length;de++){var Ae=q[de];RG(M,Ae,r)&&(M.top=Ae.top+Ae.height+r.vertical)}n(M)&&(y=Rs(p,function(Fe){return l(Fe)-Vt>H},y),pt(p).call(p,y,0,M),y++);var Je=M.top+M.height;if(Je>P&&(P=Je),o&&o())return{v:null}},A;f.length>0;)if(A=F(),A)return A.v;return P}function RG(e,r,t){return e.top-t.vertical+Vt<r.top+r.height&&e.top+e.height+t.vertical-Vt>r.top}function Rs(e,r,t){var a;t||(t=0);var n=NG(a=ht(e).call(e,t)).call(a,r);return n===-1?e.length:n+t}function LG(e,r,t,a){for(t||(t=0),a||(a=e.length),i=a-1;i>=t;i--)if(r(e[i]))return i;return t-1}var FG="__background__",Gp={BACKGROUND:FG},ku=function(){function e(r,t,a){var n=this;if(ue(this,e),this.groupId=r,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=t&&t.subgroupOrder,this.itemSet=a,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],t&&t.nestedGroups&&(this.nestedGroups=t.nestedGroups,t.showNested==!1?this.showNested=!1:this.showNested=!0),t&&t.subgroupStack)if(typeof t.subgroupStack=="boolean")this.doInnerStack=t.subgroupStack,this.subgroupStackAll=t.subgroupStack;else for(var s in t.subgroupStack)this.subgroupStack[s]=t.subgroupStack[s],this.doInnerStack=this.doInnerStack||t.subgroupStack[s];t&&t.heightMode?this.heightMode=t.heightMode:this.heightMode=a.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var o=function(){n.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",o),this._disposeCallbacks.push(function(){n.itemSet.body.emitter.off("checkRangedItems",o)}),this._create(),this.setData(t)}return ce(e,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var a=document.createElement("div");a.className="vis-inner",t.appendChild(a),this.dom.inner=a;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var a,n;if(t&&t.subgroupVisibility)for(var s in t.subgroupVisibility)this.subgroupVisibility[s]=t.subgroupVisibility[s];if(this.itemSet.options&&this.itemSet.options.groupTemplate){var o;n=O(o=this.itemSet.options.groupTemplate).call(o,this),a=n(t,this.dom.inner)}else a=t&&t.content;if(a instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(a)}else a instanceof Object&&a.isReactComponent||(a instanceof Object?n(t,this.dom.inner):a!=null?this.dom.inner.innerHTML=x.xss(a):this.dom.inner.innerHTML=x.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?x.removeClassName(this.dom.inner,"vis-hidden"):x.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups?((!this.nestedGroups||this.nestedGroups!=t.nestedGroups)&&(this.nestedGroups=t.nestedGroups),(t.showNested!==void 0||this.showNested===void 0)&&(t.showNested==!1?this.showNested=!1:this.showNested=!0),x.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(x.removeClassName(this.dom.label,"collapsed"),x.addClassName(this.dom.label,"expanded")):(x.removeClassName(this.dom.label,"expanded"),x.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,x.removeClassName(this.dom.label,"collapsed"),x.removeClassName(this.dom.label,"expanded"),x.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(x.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?x.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):x.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):x.addClassName(this.dom.label,"vis-group-level-0");var l=t&&t.className||null;l!=this.className&&(this.className&&(x.removeClassName(this.dom.label,this.className),x.removeClassName(this.dom.foreground,this.className),x.removeClassName(this.dom.background,this.className),x.removeClassName(this.dom.axis,this.className)),x.addClassName(this.dom.label,l),x.addClassName(this.dom.foreground,l),x.addClassName(this.dom.background,l),x.addClassName(this.dom.axis,l),this.className=l),this.style&&(x.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(x.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var a={},n=0;B(x).call(x,this.items,function(d,u){if(d.dirty=!0,d.displayed){var f=!0;a[u]=d.redraw(f),n=a[u].length}});var s=n>0;if(s)for(var o=function(u){B(x).call(x,a,function(f){f[u]()})},l=0;l<n;l++)o(l);return!0}else return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground,a=t.offsetTop,n=t.offsetLeft,s=t.offsetWidth;this.top=a,this.right=n,this.width=s}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,a=this.itemSet.options.onTimeout,n={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:a&&a.timeoutMs,userBailFunction:a&&a.callback,shouldBailStackItems:this.shouldBailStackItems},s=null;if(!this.itemSet.initialDrawDone){if(n.shouldBailStackItems)return!0;Math.abs(Rt()-new Date(n.relativeBailingTime))>n.bailTimeMs&&(n.userBailFunction&&this.itemSet.userContinueNotBail==null?n.userBailFunction(function(o){t.itemSet.userContinueNotBail=o,s=!o}):t.itemSet.userContinueNotBail==!1?s=!0:s=!1)}return s}},{key:"_redrawItems",value:function(t,a,n,s){var o=this,l=t||this.stackDirty||this.isVisible&&!a;if(l){var d,u,f,p,m,y,b={byEnd:J(d=this.orderedItems.byEnd).call(d,function(W){return!W.isCluster}),byStart:J(u=this.orderedItems.byStart).call(u,function(W){return!W.isCluster})},E={byEnd:Pe(new ei(J(f=ye(p=this.orderedItems.byEnd).call(p,function(W){return W.cluster})).call(f,function(W){return!!W}))),byStart:Pe(new ei(J(m=ye(y=this.orderedItems.byStart).call(y,function(W){return W.cluster})).call(m,function(W){return!!W})))},w=function(){var q,de,Ae,Je=o._updateItemsInRange(b,J(q=o.visibleItems).call(q,function(xt){return!xt.isCluster}),s),Fe=o._updateClustersInRange(E,J(de=o.visibleItems).call(de,function(xt){return xt.isCluster}),s);return Ne(Ae=[]).call(Ae,Pe(Je),Pe(Fe))},S=function(q){var de={},Ae=function(xt){var _r,We=J(_r=o.visibleItems).call(_r,function(ur){return ur.data.subgroup===xt});de[xt]=q?Ue(We).call(We,function(ur,Zt){return q(ur.data,Zt.data)}):We};for(var Je in o.subgroups)Ae(Je);return de};if(typeof this.itemSet.options.order=="function"){var D=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var T=S(this.itemSet.options.order);Wp(T,n,this.subgroups),this.visibleItems=w(),this._updateSubGroupHeights(n)}else{var P,F,A,V;this.visibleItems=w(),this._updateSubGroupHeights(n);var N=Ue(P=J(F=ht(A=this.visibleItems).call(A)).call(F,function(W){return W.isCluster||!W.isCluster&&!W.cluster})).call(P,function(W,q){return D.itemSet.options.order(W.data,q.data)});this.shouldBailStackItems=Hp(N,n,!0,O(V=this._shouldBailItemsRedraw).call(V,this))}}else if(this.visibleItems=w(),this._updateSubGroupHeights(n),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var I=S();Wp(I,n,this.subgroups)}else{var M;this.shouldBailStackItems=Hp(this.visibleItems,n,!0,O(M=this._shouldBailItemsRedraw).call(M,this))}else AG(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups);for(var H=0;H<this.visibleItems.length;H++)this.visibleItems[H].repositionX(),this.subgroupVisibility[this.visibleItems[H].data.subgroup]!==void 0&&(this.subgroupVisibility[this.visibleItems[H].data.subgroup]||this.visibleItems[H].hide());this.itemSet.options.cluster&&B(x).call(x,this.items,function(W){W.cluster&&W.displayed&&W.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(t,a){t=x.updateProperty(this,"height",a)||t;var n=this.dom.inner.clientWidth,s=this.dom.inner.clientHeight;return t=x.updateProperty(this.props.label,"width",n)||t,t=x.updateProperty(this.props.label,"height",s)||t,t}},{key:"_applyGroupHeight",value:function(t){this.dom.background.style.height="".concat(t,"px"),this.dom.foreground.style.height="".concat(t,"px"),this.dom.label.style.height="".concat(t,"px")}},{key:"_updateItemsVerticalPosition",value:function(t){for(var a=0,n=this.visibleItems.length;a<n;a++){var s=this.visibleItems[a];s.repositionY(t),!this.isVisible&&this.groupId!=Gp.BACKGROUND&&s.displayed&&s.hide()}}},{key:"redraw",value:function(t,a,n,s){var o=this,l,d,u,f,p,m=!1,y=this.isVisible,b,E=[function(){n=o._didMarkerHeightChange.call(o)||n},O(l=this._updateSubGroupHeights).call(l,this,a),O(d=this._calculateGroupSizeAndPosition).call(d,this),function(){var S;o.isVisible=O(S=o._isGroupVisible).call(S,o)(t,a)},function(){var S;O(S=o._redrawItems).call(S,o)(n,y,a,t)},O(u=this._updateSubgroupsSizes).call(u,this),function(){var S;b=O(S=o._calculateHeight).call(S,o)(a)},O(f=this._calculateGroupSizeAndPosition).call(f,this),function(){var S;m=O(S=o._didResize).call(S,o)(m,b)},function(){var S;O(S=o._applyGroupHeight).call(S,o)(b)},function(){var S;O(S=o._updateItemsVerticalPosition).call(S,o)(a)},O(p=function(){return!o.isVisible&&o.height&&(m=!1),m}).call(p,this)];if(s)return E;var w;return B(E).call(E,function(S){w=S()}),w}},{key:"_updateSubGroupHeights",value:function(t){var a=this;if(Ze(this.subgroups).length>0){var n=this;this._resetSubgroups(),B(x).call(x,this.visibleItems,function(s){s.data.subgroup!==void 0&&(n.subgroups[s.data.subgroup].height=Math.max(n.subgroups[s.data.subgroup].height,s.height+t.item.vertical),n.subgroups[s.data.subgroup].visible=typeof a.subgroupVisibility[s.data.subgroup]>"u"?!0:!!a.subgroupVisibility[s.data.subgroup])})}}},{key:"_isGroupVisible",value:function(t,a){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+a.axis&&this.top+this.height+a.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var a,n;if(this.heightMode==="fixed"?n=x.toArray(this.items):n=this.visibleItems,n.length>0){var s=n[0].top,o=n[0].top+n[0].height;if(B(x).call(x,n,function(d){s=Math.min(s,d.top),o=Math.max(o,d.top+d.height)}),s>t.axis){var l=s-t.axis;o-=l,B(x).call(x,n,function(d){d.top-=l})}a=Math.ceil(o+t.item.vertical/2),this.heightMode!=="fitItems"&&(a=Math.max(a,this.props.label.height))}else a=this.props.label.height;return a}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var a=this.dom.foreground;a.parentNode&&a.parentNode.removeChild(a);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var s=this.dom.axis;s.parentNode&&s.parentNode.removeChild(s)}},{key:"add",value:function(t){var a;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,t.data.subgroup!==void 0&&(this._addToSubgroup(t),this.orderSubgroups()),!ti(a=this.visibleItems).call(a,t)){var n=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.data.subgroup;a!=null&&this.subgroups[a]===void 0&&(this.subgroups[a]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[a]||!1},this.subgroupIndex++),new Date(t.data.start)<new Date(this.subgroups[a].start)&&(this.subgroups[a].start=t.data.start);var n=t.data.end||t.data.start;new Date(n)>new Date(this.subgroups[a].end)&&(this.subgroups[a].end=n),this.subgroups[a].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var a=function(){var o,l=t.subgroups[n].items[0].data.end||t.subgroups[n].items[0].data.start,d=t.subgroups[n].items[0].data.start,u=l-1;B(o=t.subgroups[n].items).call(o,function(f){new Date(f.data.start)<new Date(d)&&(d=f.data.start);var p=f.data.end||f.data.start;new Date(p)>new Date(u)&&(u=p)}),t.subgroups[n].start=d,t.subgroups[n].end=new Date(u-1)};for(var n in t.subgroups)a()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var t=[];if(typeof this.subgroupOrderer=="string"){for(var a in this.subgroups)t.push({subgroup:a,sortField:this.subgroups[a].items[0].data[this.subgroupOrderer]});Ue(t).call(t,function(o,l){return o.sortField-l.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var n in this.subgroups)t.push(this.subgroups[n].items[0].data);Ue(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var s=0;s<t.length;s++)this.subgroups[t[s].subgroup].index=s}}},{key:"_resetSubgroups",value:function(){for(var t in this.subgroups)this.subgroups.hasOwnProperty(t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}},{key:"remove",value:function(t){var a,n;delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var s=Se(a=this.visibleItems).call(a,t);s!=-1&&pt(n=this.visibleItems).call(n,s,1),t.data.subgroup!==void 0&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.data.subgroup;if(a!=null){var n=this.subgroups[a];if(n){var s,o=Se(s=n.items).call(s,t);if(o>=0){var l;pt(l=n.items).call(l,o,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[a]}}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=x.toArray(this.items),a=[],n=[],s=0;s<t.length;s++)t[s].data.end!==void 0&&n.push(t[s]),a.push(t[s]);this.orderedItems={byStart:a,byEnd:n},PG(this.orderedItems.byStart),IG(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,a,n){var s=[],o={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=Gp.BACKGROUND){for(var l=0;l<a.length;l++){var d=a[l];d.displayed&&d.hide()}return s}var u=(n.end-n.start)/4,f=n.start-u,p=n.end+u,m=function(W){return W<f?-1:W<=p?0:1},y=function(W){var q=W.start,de=W.end;return de<f?-1:q<=p?0:1};if(a.length>0)for(var b=0;b<a.length;b++)this._checkIfVisibleWithReference(a[b],s,o,n);var E=x.binarySearchCustom(t.byStart,m,"data","start");if(this._traceVisible(E,t.byStart,s,o,function(H){return H.data.start<f||H.data.start>p}),this.checkRangedItems==!0){this.checkRangedItems=!1;for(var w=0;w<t.byEnd.length;w++)this._checkIfVisibleWithReference(t.byEnd[w],s,o,n)}else{var S=x.binarySearchCustom(t.byEnd,y,"data");this._traceVisible(S,t.byEnd,s,o,function(H){return H.data.end<f||H.data.start>p})}for(var D={},T=0,P=0;P<s.length;P++){var F=s[P];if(!F.displayed){var A=!0;D[P]=F.redraw(A),T=D[P].length}}var V=T>0;if(V)for(var N=function(W){B(x).call(x,D,function(q){q[W]()})},I=0;I<T;I++)N(I);for(var M=0;M<s.length;M++)s[M].repositionX();return s}},{key:"_traceVisible",value:function(t,a,n,s,o){if(t!=-1){for(var l=t;l>=0;l--){var d=a[l];if(o(d))break;!(d.isCluster&&!d.hasItems())&&!d.cluster&&s[d.id]===void 0&&(s[d.id]=!0,n.push(d))}for(var u=t+1;u<a.length;u++){var f=a[u];if(o(f))break;!(f.isCluster&&!f.hasItems())&&!f.cluster&&s[f.id]===void 0&&(s[f.id]=!0,n.push(f))}}}},{key:"_checkIfVisible",value:function(t,a,n){t.isVisible(n)?(t.displayed||t.show(),t.repositionX(),a.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,a,n,s){t.isVisible(s)?n[t.id]===void 0&&(n[t.id]=!0,a.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,a,n){var s=[],o={};if(a.length>0)for(var l=0;l<a.length;l++)this._checkIfVisibleWithReference(a[l],s,o,n);for(var d=0;d<t.byStart.length;d++)this._checkIfVisibleWithReference(t.byStart[d],s,o,n);for(var u=0;u<t.byEnd.length;u++)this._checkIfVisibleWithReference(t.byEnd[u],s,o,n);for(var f={},p=0,m=0;m<s.length;m++){var y=s[m];if(!y.displayed){var b=!0;f[m]=y.redraw(b),p=f[m].length}}var E=p>0;if(E)for(var w=0;w<p;w++)B(x).call(x,f,function(D){D[w]()});for(var S=0;S<s.length;S++)s[S].repositionX();return s}},{key:"changeSubgroup",value:function(t,a,n){this._removeFromSubgroup(t,a),this._addToSubgroup(t,n),this.orderSubgroups()}},{key:"dispose",value:function(){this.hide();for(var t;t=this._disposeCallbacks.pop();)t()}}]),e}();function YG(e){var r=jG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function jG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Tb=function(e){wt(t,e);var r=YG(t);function t(a,n,s){var o;return ue(this,t),o=r.call(this,a,n,s),o.width=0,o.height=0,o.top=0,o.left=0,o}return ce(t,[{key:"redraw",value:function(n,s,o){var l=!1;this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,n),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var d=0,u=this.visibleItems.length;d<u;d++){var f=this.visibleItems[d];f.repositionY(s)}return l}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),t}(ku),BG=`
|
421
417
|
.vis-item {
|
422
418
|
position: absolute;
|
423
419
|
color: #1A1A1A;
|
@@ -634,8 +630,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
634
630
|
border-width: 4px;
|
635
631
|
border-style: solid;
|
636
632
|
border-radius: 4px;
|
637
|
-
}`;
|
638
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function jZ(e,t){var r;if(e){if(typeof e=="string")return Wy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Wy(e,t)}}function Wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var ja=function(){function e(t,r,a){var n,s=this;fe(this,e),this.id=null,this.parent=null,this.data=t,this.dom=null,this.conversion=r||{},this.defaultOptions={locales:wa,locale:"en"},this.options=x.extend({},this.defaultOptions,a),this.options.locales=x.extend({},wa,this.options.locales);var o=this.defaultOptions.locales[this.defaultOptions.locale];G(n=st(this.options.locales)).call(n,function(l){s.options.locales[l]=x.extend({},o,s.options.locales[l])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=a&&a.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(t),this.editable=null,this._updateEditStatus()}return pe(e,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(r){var a=r.group!=null&&this.data.group!=r.group;a&&this.parent!=null&&this.parent.itemSet._moveToGroup(this,r.group),this.setSelectability(r),this.parent&&(this.parent.stackDirty=!0);var n=r.subgroup!=null&&this.data.subgroup!=r.subgroup;n&&this.parent!=null&&this.parent.changeSubgroup(this,this.data.subgroup,r.subgroup),this.data=r,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(r){r&&(this.selectable=typeof r.selectable>"u"?!0:!!r.selectable)}},{key:"setParent",value:function(r){this.displayed?(this.hide(),this.parent=r,this.parent&&this.show()):this.parent=r}},{key:"isVisible",value:function(r){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var r,a,n=this,s=document.createElement("div");s.className="vis-drag-center",s.dragCenterItem=this,this.hammerDragCenter=new kt(s),this.hammerDragCenter.on("tap",function(o){n.parent.itemSet.body.emitter.emit("click",{event:o,item:n.id})}),this.hammerDragCenter.on("doubletap",function(o){o.stopPropagation(),n.parent.itemSet._onUpdateItem(n),n.parent.itemSet.body.emitter.emit("doubleClick",{event:o,item:n.id})}),this.hammerDragCenter.on("panstart",function(o){o.stopPropagation(),n.parent.itemSet._onDragStart(o)}),this.hammerDragCenter.on("panmove",P(r=n.parent.itemSet._onDrag).call(r,n.parent.itemSet)),this.hammerDragCenter.on("panend",P(a=n.parent.itemSet._onDragEnd).call(a,n.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(s,this.dom.dragLeft):this.dom.box.appendChild(s):this.dom.point&&this.dom.point.appendChild(s),this.dom.dragCenter=s}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(r){var a=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&a&&!this.dom.deleteButton){var n=this,s=document.createElement("div");this.options.rtl?s.className="vis-delete-rtl":s.className="vis-delete";var o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en),s.title=o.deleteSelected,this.hammerDeleteButton=new kt(s).on("tap",function(l){l.stopPropagation(),n.parent.removeFromDataSet(n)}),r.appendChild(s),this.dom.deleteButton=s}else(!this.selected||!a)&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(r){if(this.options.tooltipOnItemUpdateTime){var a=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&a&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",r.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var s=50,o=this.parent.itemSet.body.domProps.scrollTop,l;this.options.orientation.item=="top"?l=this.top:l=this.parent.height-this.top-this.height;var d=l+this.parent.top-s<-o;d?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px"));var c,f;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){var v;f=P(v=this.options.tooltipOnItemUpdateTime.template).call(v,this),c=f(this.data)}else c="start: ".concat(Tt(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(c+="<br> end: ".concat(Tt(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=x.xss(c)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(r){var a,n,s,o,l,d=this._getItemData(),c=this.dom.box||this.dom.point,f=c.getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate){var v;l=P(v=this.options.visibleFrameTemplate).call(v,this),o=x.xss(l(d,f))}else o="";if(f){if(o instanceof Object&&!(o instanceof Element))l(d,f);else if(n=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(o),n){if(o instanceof Element)f.innerHTML="",f.appendChild(o);else if(o!=null)f.innerHTML=x.xss(o);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=o}}if(this.options.template){var m;s=P(m=this.options.template).call(m,this),a=s(d,r,this.data)}else a=this.data.content;if(a instanceof Object&&!(a instanceof Element))s(d,r);else if(n=this._contentToString(this.content)!==this._contentToString(a),n){if(a instanceof Element)r.innerHTML="",r.appendChild(a);else if(a!=null)r.innerHTML=x.xss(a);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.content=a}}},{key:"_updateDataAttributes",value:function(r){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var a=[];if(ae(this.options.dataAttributes))a=this.options.dataAttributes;else if(this.options.dataAttributes=="all")a=st(this.data);else return;var n=YZ(a),s;try{for(n.s();!(s=n.n()).done;){var o=s.value,l=this.data[o];l!=null?r.setAttribute("data-".concat(o),l):r.removeAttribute("data-".concat(o))}}catch(d){n.e(d)}finally{n.f()}}}},{key:"_updateStyle",value:function(r){this.style&&(x.removeCssText(r,this.style),this.style=null),this.data.style&&(x.addCssText(r,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(r){return typeof r=="string"?r:r&&"outerHTML"in r?r.outerHTML:r}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:ne(this.options.editable)==="object"&&(this.editable={},x.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),(!this.options||!this.options.editable||this.options.editable.overrideItems!==!0)&&this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:ne(this.data.editable)==="object"&&(this.editable={},x.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){if(this.options.tooltip&&this.options.tooltip.template){var r,a=P(r=this.options.tooltip.template).call(r,this);return a(this._getItemData(),this.data)}return this.data.title}}]),e}();ja.prototype.stack=!0;function BZ(e){var t=HZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function HZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var WZ=function(e){It(r,e);var t=BZ(r);function r(a,n,s){var o;if(fe(this,r),o=t.call(this,a,n,s),o.props={dot:{width:0,height:0},line:{width:0,height:0}},a&&a.start==null)throw new Error('Property "start" missing in item '.concat(a));return o}return pe(r,[{key:"isVisible",value:function(n){if(this.cluster)return!1;var s,o=this.data.align||this.options.align,l=this.width*n.getMillisecondsPerPixel();return o=="right"?s=this.data.start.getTime()>n.start&&this.data.start.getTime()-l<n.end:o=="left"?s=this.data.start.getTime()+l>n.start&&this.data.start.getTime()<n.end:s=this.data.start.getTime()+l/2>n.start&&this.data.start.getTime()-l/2<n.end,s}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var s=this.parent.dom.background;if(!s)throw new Error("Cannot redraw item: parent has no background container element");s.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var o=this.parent.dom.axis;if(!s)throw new Error("Cannot redraw item: parent has no axis container element");o.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(s),this.dom.line.className="vis-item vis-line".concat(s),this.dom.dot.className="vis-item vis-dot".concat(s)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=n.dot.height,this.props.dot.width=n.dot.width,this.props.line.width=n.line.width,this.width=n.box.width,this.height=n.box.height,this.options.rtl?this.dom.box.style.right=n.previous.right:this.dom.box.style.left=n.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(n){var s,o,l,d=this,c,f,v=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var g;P(g=d._updateDomComponentsSizes).call(g,d)(f)}},P(c=this._repaintDomAdditionals).call(c,this)];if(n)return v;var m;return G(v).call(v,function(g){m=g()}),m}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){if(this.displayed){var n=this.dom;n.box.remove?n.box.remove():n.box.parentNode&&n.box.parentNode.removeChild(n.box),n.line.remove?n.line.remove():n.line.parentNode&&n.line.parentNode.removeChild(n.line),n.dot.remove?n.dot.remove():n.dot.parentNode&&n.dot.parentNode.removeChild(n.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,c){var f,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&c===void 0)){var m=v?d*-1:d;if(c===void 0){l.style.transform="translateX(".concat(m,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(c,"px)");return}l.style.transform=Me(f="translate(".concat(m,"px, ")).call(f,c,"px)")}};s(this.dom.box,this.boxX,this.boxY,n),s(this.dom.dot,this.dotX,this.dotY,n),s(this.dom.line,this.lineX,this.lineY,n)}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start),s=this.data.align===void 0?this.options.align:this.data.align,o=this.props.line.width,l=this.props.dot.width;s=="right"?(this.boxX=n-this.width,this.lineX=n-o,this.dotX=n-o/2-l/2):s=="left"?(this.boxX=n,this.lineX=n,this.dotX=n+o/2-l/2):(this.boxX=n-this.width/2,this.lineX=this.options.rtl?n-o:n-o/2,this.dotX=n-l/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.line.style;if(n=="top"){var o=this.parent.top+this.top+1;this.boxY=this.top||0,s.height="".concat(o,"px"),s.bottom="",s.top="0"}else{var l=this.parent.itemSet.props.height,d=l-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),s.height="".concat(d,"px"),s.top="",s.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),r}(ja);function GZ(e){var t=zZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function zZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var UZ=function(e){It(r,e);var t=GZ(r);function r(a,n,s){var o;if(fe(this,r),o=t.call(this,a,n,s),o.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},a&&a.start==null)throw new Error('Property "start" missing in item '.concat(a));return o}return pe(r,[{key:"isVisible",value:function(n){if(this.cluster)return!1;var s=this.width*n.getMillisecondsPerPixel();return this.data.start.getTime()+s>n.start&&this.data.start<n.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(s),this.dom.dot.className="vis-item vis-dot".concat(s)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.dot.width=n.dot.width,this.props.dot.height=n.dot.height,this.props.content.height=n.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"px"),this.width=n.point.width,this.height=n.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var s=this.props.dot.width,o=this.options.rtl?s/2:s/2*-1;this.dom.dot.style.transform="translateX(".concat(o,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(n){var s,o,l,d=this,c,f,v=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var g;P(g=d._updateDomComponentsSizes).call(g,d)(f)}},P(c=this._repaintDomAdditionals).call(c,this)];if(n)return v;var m;return G(v).call(v,function(g){m=g()}),m}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,c){var f,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&c===void 0)){var m=v?d*-1:d;if(c===void 0){l.style.transform="translateX(".concat(m,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(c,"px)");return}l.style.transform=Me(f="translate(".concat(m,"px, ")).call(f,c,"px)")}};s(this.dom.point,this.pointX,this.pointY,n)}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start);this.pointX=n,this.options.rtl?this.right=n-this.props.dot.width:this.left=n-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var n=this.options.orientation.item;n=="top"?this.pointY=this.top:this.pointY=this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),r}(ja);function KZ(e){var t=qZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function qZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var vi=function(e){It(r,e);var t=KZ(r);function r(a,n,s){var o;if(fe(this,r),o=t.call(this,a,n,s),o.props={content:{width:0}},o.overflow=!1,a){if(a.start==null)throw new Error('Property "start" missing in item '.concat(a.id));if(a.end==null)throw new Error('Property "end" missing in item '.concat(a.id))}return o}return pe(r,[{key:"isVisible",value:function(n){return this.cluster?!1:this.data.start<n.end&&this.data.end>n.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+s,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.content.width=n.content.width,this.height=n.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(n){var s,o,l,d=this,c,f,v=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var g;f=P(g=d._getDomComponentsSizes).call(g,d)()}},function(){if(d.dirty){var g;P(g=d._updateDomComponentsSizes).call(g,d)(f)}},P(c=this._repaintDomAdditionals).call(c,this)];if(n)return v;var m;return G(v).call(v,function(g){m=g()}),m}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){if(this.displayed){var n=this.dom.box;n.parentNode&&n.parentNode.removeChild(n),this.displayed=!1}}},{key:"repositionX",value:function(n){var s=this.parent.width,o=this.conversion.toScreen(this.data.start),l=this.conversion.toScreen(this.data.end),d=this.data.align===void 0?this.options.align:this.data.align,c,f;this.data.limitSize!==!1&&(n===void 0||n===!0)&&(o<-s&&(o=-s),l>2*s&&(l=2*s));var v=Math.max(Math.round((l-o)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=v+this.props.content.width,f=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=v,f=Math.min(l-o,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(this.right*-1,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(v,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),d){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var m=Math.max(v-f,0)*-1;this.dom.content.style.transform="translateX(".concat(m,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(v-f,0),"px)");break;case"center":if(this.options.rtl){var g=Math.max((v-f)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(g,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((v-f)/2,0),"px)");break;default:if(this.overflow?l>0?c=Math.max(-o,0):c=-f:o<0?c=-o:c=0,this.options.rtl){var b=c*-1;this.dom.content.style.transform="translateX(".concat(b,"px)")}else this.dom.content.style.transform="translateX(".concat(c,"px)")}}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.box;n=="top"?s.style.top="".concat(this.top,"px"):s.style.top="".concat(this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var n=document.createElement("div");n.className="vis-drag-left",n.dragLeftItem=this,this.dom.box.appendChild(n),this.dom.dragLeft=n}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragLeft&&(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var n=document.createElement("div");n.className="vis-drag-right",n.dragRightItem=this,this.dom.box.appendChild(n),this.dom.dragRight=n}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragRight&&(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),r}(ja);vi.prototype.baseClassName="vis-item vis-range";function XZ(e){var t=QZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function QZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var xi=function(e){It(r,e);var t=XZ(r);function r(a,n,s){var o;if(fe(this,r),o=t.call(this,a,n,s),o.props={content:{width:0}},o.overflow=!1,a){if(a.start==null)throw new Error('Property "start" missing in item '.concat(a.id));if(a.end==null)throw new Error('Property "end" missing in item '.concat(a.id))}return o}return pe(r,[{key:"isVisible",value:function(n){return this.data.start<n.end&&this.data.end>n.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.background;if(!n)throw new Error("Cannot redraw item: parent has no background container element");n.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var n=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+n}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.content.width=n.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(n){var s,o,l,d=this,c,f,v=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var g;f=P(g=d._getDomComponentsSizes).call(g,d)()}},function(){if(d.dirty){var g;P(g=d._updateDomComponentsSizes).call(g,d)(f)}},P(c=this._repaintDomAdditionals).call(c,this)];if(n)return v;var m;return G(v).call(v,function(g){m=g()}),m}},{key:"repositionY",value:function(n){var s,o=this.options.orientation.item;if(this.data.subgroup!==void 0){var l=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[l].height,"px"),o=="top"?this.dom.box.style.top="".concat(this.parent.top+this.parent.subgroups[l].top,"px"):this.dom.box.style.top="".concat(this.parent.top+this.parent.height-this.parent.subgroups[l].top-this.parent.subgroups[l].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof T1?(s=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=o=="bottom"?"0":"",this.dom.box.style.top=o=="top"?"0":""):(s=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(s,"px")}}]),r}(ja);xi.prototype.baseClassName="vis-item vis-background";xi.prototype.stack=!1;xi.prototype.show=vi.prototype.show;xi.prototype.hide=vi.prototype.hide;xi.prototype.repositionX=vi.prototype.repositionX;var ZZ=`div.vis-tooltip {
|
633
|
+
}`;kt(BG);function HG(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=WG(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
634
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function WG(e,r){var t;if(e){if(typeof e=="string")return zp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return zp(e,r)}}function zp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var Ln=function(){function e(r,t,a){var n,s=this;ue(this,e),this.id=null,this.parent=null,this.data=r,this.dom=null,this.conversion=t||{},this.defaultOptions={locales:kn,locale:"en"},this.options=x.extend({},this.defaultOptions,a),this.options.locales=x.extend({},kn,this.options.locales);var o=this.defaultOptions.locales[this.defaultOptions.locale];B(n=Ze(this.options.locales)).call(n,function(l){s.options.locales[l]=x.extend({},o,s.options.locales[l])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=a&&a.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(r),this.editable=null,this._updateEditStatus()}return ce(e,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(t){var a=t.group!=null&&this.data.group!=t.group;a&&this.parent!=null&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0);var n=t.subgroup!=null&&this.data.subgroup!=t.subgroup;n&&this.parent!=null&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(t){t&&(this.selectable=typeof t.selectable>"u"?!0:!!t.selectable)}},{key:"setParent",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:"isVisible",value:function(t){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var t,a,n=this,s=document.createElement("div");s.className="vis-drag-center",s.dragCenterItem=this,this.hammerDragCenter=new vt(s),this.hammerDragCenter.on("tap",function(o){n.parent.itemSet.body.emitter.emit("click",{event:o,item:n.id})}),this.hammerDragCenter.on("doubletap",function(o){o.stopPropagation(),n.parent.itemSet._onUpdateItem(n),n.parent.itemSet.body.emitter.emit("doubleClick",{event:o,item:n.id})}),this.hammerDragCenter.on("panstart",function(o){o.stopPropagation(),n.parent.itemSet._onDragStart(o)}),this.hammerDragCenter.on("panmove",O(t=n.parent.itemSet._onDrag).call(t,n.parent.itemSet)),this.hammerDragCenter.on("panend",O(a=n.parent.itemSet._onDragEnd).call(a,n.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(s,this.dom.dragLeft):this.dom.box.appendChild(s):this.dom.point&&this.dom.point.appendChild(s),this.dom.dragCenter=s}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(t){var a=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&a&&!this.dom.deleteButton){var n=this,s=document.createElement("div");this.options.rtl?s.className="vis-delete-rtl":s.className="vis-delete";var o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en),s.title=o.deleteSelected,this.hammerDeleteButton=new vt(s).on("tap",function(l){l.stopPropagation(),n.parent.removeFromDataSet(n)}),t.appendChild(s),this.dom.deleteButton=s}else(!this.selected||!a)&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(t){if(this.options.tooltipOnItemUpdateTime){var a=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&a&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",t.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var s=50,o=this.parent.itemSet.body.domProps.scrollTop,l;this.options.orientation.item=="top"?l=this.top:l=this.parent.height-this.top-this.height;var d=l+this.parent.top-s<-o;d?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px"));var u,f;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){var p;f=O(p=this.options.tooltipOnItemUpdateTime.template).call(p,this),u=f(this.data)}else u="start: ".concat(mt(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(u+="<br> end: ".concat(mt(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=x.xss(u)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var a,n,s,o,l,d=this._getItemData(),u=this.dom.box||this.dom.point,f=u.getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate){var p;l=O(p=this.options.visibleFrameTemplate).call(p,this),o=x.xss(l(d,f))}else o="";if(f){if(o instanceof Object&&!(o instanceof Element))l(d,f);else if(n=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(o),n){if(o instanceof Element)f.innerHTML="",f.appendChild(o);else if(o!=null)f.innerHTML=x.xss(o);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=o}}if(this.options.template){var m;s=O(m=this.options.template).call(m,this),a=s(d,t,this.data)}else a=this.data.content;if(a instanceof Object&&!(a instanceof Element))s(d,t);else if(n=this._contentToString(this.content)!==this._contentToString(a),n){if(a instanceof Element)t.innerHTML="",t.appendChild(a);else if(a!=null)t.innerHTML=x.xss(a);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.content=a}}},{key:"_updateDataAttributes",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var a=[];if(re(this.options.dataAttributes))a=this.options.dataAttributes;else if(this.options.dataAttributes=="all")a=Ze(this.data);else return;var n=HG(a),s;try{for(n.s();!(s=n.n()).done;){var o=s.value,l=this.data[o];l!=null?t.setAttribute("data-".concat(o),l):t.removeAttribute("data-".concat(o))}}catch(d){n.e(d)}finally{n.f()}}}},{key:"_updateStyle",value:function(t){this.style&&(x.removeCssText(t,this.style),this.style=null),this.data.style&&(x.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return typeof t=="string"?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:ee(this.options.editable)==="object"&&(this.editable={},x.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),(!this.options||!this.options.editable||this.options.editable.overrideItems!==!0)&&this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:ee(this.data.editable)==="object"&&(this.editable={},x.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){if(this.options.tooltip&&this.options.tooltip.template){var t,a=O(t=this.options.tooltip.template).call(t,this);return a(this._getItemData(),this.data)}return this.data.title}}]),e}();Ln.prototype.stack=!0;function GG(e){var r=zG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function zG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var UG=function(e){wt(t,e);var r=GG(t);function t(a,n,s){var o;if(ue(this,t),o=r.call(this,a,n,s),o.props={dot:{width:0,height:0},line:{width:0,height:0}},a&&a.start==null)throw new Error('Property "start" missing in item '.concat(a));return o}return ce(t,[{key:"isVisible",value:function(n){if(this.cluster)return!1;var s,o=this.data.align||this.options.align,l=this.width*n.getMillisecondsPerPixel();return o=="right"?s=this.data.start.getTime()>n.start&&this.data.start.getTime()-l<n.end:o=="left"?s=this.data.start.getTime()+l>n.start&&this.data.start.getTime()<n.end:s=this.data.start.getTime()+l/2>n.start&&this.data.start.getTime()-l/2<n.end,s}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var s=this.parent.dom.background;if(!s)throw new Error("Cannot redraw item: parent has no background container element");s.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var o=this.parent.dom.axis;if(!s)throw new Error("Cannot redraw item: parent has no axis container element");o.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(s),this.dom.line.className="vis-item vis-line".concat(s),this.dom.dot.className="vis-item vis-dot".concat(s)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=n.dot.height,this.props.dot.width=n.dot.width,this.props.line.width=n.line.width,this.width=n.box.width,this.height=n.box.height,this.options.rtl?this.dom.box.style.right=n.previous.right:this.dom.box.style.left=n.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(n){var s,o,l,d=this,u,f,p=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var y;O(y=d._updateDomComponentsSizes).call(y,d)(f)}},O(u=this._repaintDomAdditionals).call(u,this)];if(n)return p;var m;return B(p).call(p,function(y){m=y()}),m}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){if(this.displayed){var n=this.dom;n.box.remove?n.box.remove():n.box.parentNode&&n.box.parentNode.removeChild(n.box),n.line.remove?n.line.remove():n.line.parentNode&&n.line.parentNode.removeChild(n.line),n.dot.remove?n.dot.remove():n.dot.parentNode&&n.dot.parentNode.removeChild(n.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,u){var f,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&u===void 0)){var m=p?d*-1:d;if(u===void 0){l.style.transform="translateX(".concat(m,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(u,"px)");return}l.style.transform=Ne(f="translate(".concat(m,"px, ")).call(f,u,"px)")}};s(this.dom.box,this.boxX,this.boxY,n),s(this.dom.dot,this.dotX,this.dotY,n),s(this.dom.line,this.lineX,this.lineY,n)}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start),s=this.data.align===void 0?this.options.align:this.data.align,o=this.props.line.width,l=this.props.dot.width;s=="right"?(this.boxX=n-this.width,this.lineX=n-o,this.dotX=n-o/2-l/2):s=="left"?(this.boxX=n,this.lineX=n,this.dotX=n+o/2-l/2):(this.boxX=n-this.width/2,this.lineX=this.options.rtl?n-o:n-o/2,this.dotX=n-l/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.line.style;if(n=="top"){var o=this.parent.top+this.top+1;this.boxY=this.top||0,s.height="".concat(o,"px"),s.bottom="",s.top="0"}else{var l=this.parent.itemSet.props.height,d=l-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),s.height="".concat(d,"px"),s.top="",s.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),t}(Ln);function XG(e){var r=qG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function qG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var KG=function(e){wt(t,e);var r=XG(t);function t(a,n,s){var o;if(ue(this,t),o=r.call(this,a,n,s),o.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},a&&a.start==null)throw new Error('Property "start" missing in item '.concat(a));return o}return ce(t,[{key:"isVisible",value:function(n){if(this.cluster)return!1;var s=this.width*n.getMillisecondsPerPixel();return this.data.start.getTime()+s>n.start&&this.data.start<n.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(s),this.dom.dot.className="vis-item vis-dot".concat(s)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.dot.width=n.dot.width,this.props.dot.height=n.dot.height,this.props.content.height=n.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"px"),this.width=n.point.width,this.height=n.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var s=this.props.dot.width,o=this.options.rtl?s/2:s/2*-1;this.dom.dot.style.transform="translateX(".concat(o,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(n){var s,o,l,d=this,u,f,p=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var y;O(y=d._updateDomComponentsSizes).call(y,d)(f)}},O(u=this._repaintDomAdditionals).call(u,this)];if(n)return p;var m;return B(p).call(p,function(y){m=y()}),m}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,u){var f,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&u===void 0)){var m=p?d*-1:d;if(u===void 0){l.style.transform="translateX(".concat(m,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(u,"px)");return}l.style.transform=Ne(f="translate(".concat(m,"px, ")).call(f,u,"px)")}};s(this.dom.point,this.pointX,this.pointY,n)}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start);this.pointX=n,this.options.rtl?this.right=n-this.props.dot.width:this.left=n-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var n=this.options.orientation.item;n=="top"?this.pointY=this.top:this.pointY=this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),t}(Ln);function ZG(e){var r=QG();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function QG(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Oi=function(e){wt(t,e);var r=ZG(t);function t(a,n,s){var o;if(ue(this,t),o=r.call(this,a,n,s),o.props={content:{width:0}},o.overflow=!1,a){if(a.start==null)throw new Error('Property "start" missing in item '.concat(a.id));if(a.end==null)throw new Error('Property "end" missing in item '.concat(a.id))}return o}return ce(t,[{key:"isVisible",value:function(n){return this.cluster?!1:this.data.start<n.end&&this.data.end>n.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+s,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.content.width=n.content.width,this.height=n.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(n){var s,o,l,d=this,u,f,p=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var y;f=O(y=d._getDomComponentsSizes).call(y,d)()}},function(){if(d.dirty){var y;O(y=d._updateDomComponentsSizes).call(y,d)(f)}},O(u=this._repaintDomAdditionals).call(u,this)];if(n)return p;var m;return B(p).call(p,function(y){m=y()}),m}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){if(this.displayed){var n=this.dom.box;n.parentNode&&n.parentNode.removeChild(n),this.displayed=!1}}},{key:"repositionX",value:function(n){var s=this.parent.width,o=this.conversion.toScreen(this.data.start),l=this.conversion.toScreen(this.data.end),d=this.data.align===void 0?this.options.align:this.data.align,u,f;this.data.limitSize!==!1&&(n===void 0||n===!0)&&(o<-s&&(o=-s),l>2*s&&(l=2*s));var p=Math.max(Math.round((l-o)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=p+this.props.content.width,f=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=p,f=Math.min(l-o,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(this.right*-1,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(p,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),d){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var m=Math.max(p-f,0)*-1;this.dom.content.style.transform="translateX(".concat(m,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(p-f,0),"px)");break;case"center":if(this.options.rtl){var y=Math.max((p-f)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(y,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((p-f)/2,0),"px)");break;default:if(this.overflow?l>0?u=Math.max(-o,0):u=-f:o<0?u=-o:u=0,this.options.rtl){var b=u*-1;this.dom.content.style.transform="translateX(".concat(b,"px)")}else this.dom.content.style.transform="translateX(".concat(u,"px)")}}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.box;n=="top"?s.style.top="".concat(this.top,"px"):s.style.top="".concat(this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var n=document.createElement("div");n.className="vis-drag-left",n.dragLeftItem=this,this.dom.box.appendChild(n),this.dom.dragLeft=n}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragLeft&&(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var n=document.createElement("div");n.className="vis-drag-right",n.dragRightItem=this,this.dom.box.appendChild(n),this.dom.dragRight=n}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragRight&&(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),t}(Ln);Oi.prototype.baseClassName="vis-item vis-range";function JG(e){var r=ez();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function ez(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Fi=function(e){wt(t,e);var r=JG(t);function t(a,n,s){var o;if(ue(this,t),o=r.call(this,a,n,s),o.props={content:{width:0}},o.overflow=!1,a){if(a.start==null)throw new Error('Property "start" missing in item '.concat(a.id));if(a.end==null)throw new Error('Property "end" missing in item '.concat(a.id))}return o}return ce(t,[{key:"isVisible",value:function(n){return this.data.start<n.end&&this.data.end>n.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.background;if(!n)throw new Error("Cannot redraw item: parent has no background container element");n.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var n=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+n}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.content.width=n.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(n){var s,o,l,d=this,u,f,p=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var y;f=O(y=d._getDomComponentsSizes).call(y,d)()}},function(){if(d.dirty){var y;O(y=d._updateDomComponentsSizes).call(y,d)(f)}},O(u=this._repaintDomAdditionals).call(u,this)];if(n)return p;var m;return B(p).call(p,function(y){m=y()}),m}},{key:"repositionY",value:function(n){var s,o=this.options.orientation.item;if(this.data.subgroup!==void 0){var l=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[l].height,"px"),o=="top"?this.dom.box.style.top="".concat(this.parent.top+this.parent.subgroups[l].top,"px"):this.dom.box.style.top="".concat(this.parent.top+this.parent.height-this.parent.subgroups[l].top-this.parent.subgroups[l].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof Tb?(s=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=o=="bottom"?"0":"",this.dom.box.style.top=o=="top"?"0":""):(s=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(s,"px")}}]),t}(Ln);Fi.prototype.baseClassName="vis-item vis-background";Fi.prototype.stack=!1;Fi.prototype.show=Oi.prototype.show;Fi.prototype.hide=Oi.prototype.hide;Fi.prototype.repositionX=Oi.prototype.repositionX;var tz=`div.vis-tooltip {
|
639
635
|
position: absolute;
|
640
636
|
visibility: hidden;
|
641
637
|
padding: 5px;
|
@@ -656,9 +652,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
656
652
|
|
657
653
|
z-index: 5;
|
658
654
|
}
|
659
|
-
`;
|
660
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function fJ(e,t){var r;if(e){if(typeof e=="string")return zy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return zy(e,t)}}function zy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function pJ(e){var t=vJ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function vJ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var $1=function(e){It(r,e);var t=pJ(r);function r(a,n,s){var o;fe(this,r);var l=an({},{fitOnDoubleClick:!0},s,{editable:!1});if(o=t.call(this,a,n,l),o.props={content:{width:0,height:0}},!a||a.uiItems==null)throw new Error('Property "uiItems" missing in item '+a.id);return o.id=ai(),o.group=a.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return pe(r,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(n){this.detach(),this.data.uiItems=n,this._setupRange(),this.attach()}},{key:"isVisible",value:function(n){var s=this.data.end?this.data.end-this.data.start:0,o=this.width*n.getMillisecondsPerPixel(),l=Math.max(this.data.start.getTime()+s,this.data.start.getTime()+o);return this.data.start<n.end&&l>n.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(n){var s,o,l,d,c,f,v,m=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),P(d=function(){this.dirty&&(v=this._getDomComponentsSizes())}).call(d,this),P(c=function(){if(this.dirty){var S;P(S=this._updateDomComponentsSizes).call(S,this)(v)}}).call(c,this),P(f=this._repaintDomAdditionals).call(f,this)];if(n)return m;var g;return G(m).call(m,function(b){g=b()}),g}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var n=this.dom;n.box.parentNode&&n.box.parentNode.removeChild(n.box),this.options.showStipes&&(n.line.parentNode&&n.line.parentNode.removeChild(n.line),n.dot.parentNode&&n.dot.parentNode.removeChild(n.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start),s=this.data.end?this.conversion.toScreen(this.data.end):0;if(s)this.repositionXWithRanges(n,s);else{var o=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(n,o)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(n,s))}},{key:"repositionStype",value:function(n,s){this.dom.line.style.display="block",this.dom.dot.style.display="block";var o=this.dom.line.offsetWidth,l=this.dom.dot.offsetWidth;if(s){var d=o+n+(s-n)/2,c=d-l/2,f=this.options.rtl?d*-1:d,v=this.options.rtl?c*-1:c;this.dom.line.style.transform="translateX(".concat(f,"px)"),this.dom.dot.style.transform="translateX(".concat(v,"px)")}else{var m=this.options.rtl?n*-1:n,g=this.options.rtl?(n-l/2)*-1:n-l/2;this.dom.line.style.transform="translateX(".concat(m,"px)"),this.dom.dot.style.transform="translateX(".concat(g,"px)")}}},{key:"repositionXWithoutRanges",value:function(n,s){s=="right"?this.options.rtl?(this.right=n-this.width,this.dom.box.style.right=this.right+"px"):(this.left=n-this.width,this.dom.box.style.left=this.left+"px"):s=="left"?this.options.rtl?(this.right=n,this.dom.box.style.right=this.right+"px"):(this.left=n,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=n-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=n-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(n,s){var o=Math.round(Math.max(s-n+.5,1));this.options.rtl?this.right=n:this.left=n,this.width=Math.max(o,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=o+"px"}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.box;if(n=="top"?s.style.top=(this.top||0)+"px":s.style.top=(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(n=="top")this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var o=this.parent.itemSet.props.height,l=o-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=o-l+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var n,s=Gy(this.data.uiItems),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;l.cluster=this}}catch(d){s.e(d)}finally{s.f()}this.data.items=Se(n=this.data.uiItems).call(n,function(d){return d.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.hasItems()){var s=Gy(this.data.uiItems),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;delete l.cluster}}catch(d){s.e(d)}finally{s.f()}this.attached=!1,n&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var n,s,o,l=Se(n=this.data.uiItems).call(n,function(f){return{start:f.data.start.valueOf(),end:f.data.end?f.data.end.valueOf():f.data.start.valueOf()}});this.data.min=Math.min.apply(Math,Fe(Se(l).call(l,function(f){return Math.min(f.start,f.end||f.start)}))),this.data.max=Math.max.apply(Math,Fe(Se(l).call(l,function(f){return Math.max(f.start,f.end||f.start)})));var d=Se(s=this.data.uiItems).call(s,function(f){return f.center}),c=vd(d).call(d,function(f,v){return f+v},0)/this.data.uiItems.length;Rf(o=this.data.uiItems).call(o,function(f){return f.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(c),this.data.end=null)}},{key:"_getUiItems",value:function(){var n=this;if(this.data.uiItems&&this.data.uiItems.length){var s;return te(s=this.data.uiItems).call(s,function(o){return o.cluster===n})}return[]}},{key:"_createDomElement",value:function(){if(!this.dom){if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick){var n;this.dom.box.ondblclick=P(n=r.prototype._onDoubleClick).call(n,this)}this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}var s=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!s)throw new Error("Cannot redraw item: parent has no background container element");s.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var o=this.parent.dom.axis;if(!s)throw new Error("Cannot redraw item: parent has no axis container element");o.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+n,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var n={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(n.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},n.line={width:this.dom.line.offsetWidth}),n}},{key:"_updateDomComponentsSizes",value:function(n){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=n.box.width:this.width=n.box.width,this.height=n.box.height,this.options.rtl?this.dom.box.style.right=n.previous.right:this.dom.box.style.left=n.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var n=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-n,fitEnd:this.data.max+n}}},{key:"_fit",value:function(){if(this.emitter){var n=this._getFitRange(),s=n.fitStart,o=n.fitEnd,l={start:new Date(s),end:new Date(o),animation:!0};this.emitter.emit("fit",l)}}},{key:"_getItemData",value:function(){return this.data}}]),r}(ja);$1.prototype.baseClassName="vis-item vis-range vis-cluster";function mJ(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=gJ(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
661
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){
|
655
|
+
`;kt(tz);var rz=function(){function e(r,t){ue(this,e),this.container=r,this.overflowMethod=t||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return ce(e,[{key:"setPosition",value:function(t,a){this.x=Lt(t),this.y=Lt(a)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=x.xss(t)}},{key:"show",value:function(t){if(t===void 0&&(t=!0),t===!0){var a=this.frame.clientHeight,n=this.frame.clientWidth,s=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,l=0,d=0;if(this.overflowMethod=="flip"||this.overflowMethod=="none"){var u=!1,f=!0;this.overflowMethod=="flip"&&(this.y-a<this.padding&&(f=!1),this.x+n>o-this.padding&&(u=!0)),u?l=this.x-n:l=this.x,f?d=this.y-a:d=this.y}else d=this.y-a,d+a+this.padding>s&&(d=s-a-this.padding),d<this.padding&&(d=this.padding),l=this.x,l+n+this.padding>o&&(l=o-n-this.padding),l<this.padding&&(l=this.padding);this.frame.style.left=l+"px",this.frame.style.top=d+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),iz=U,nz=jr.every,az=Mn,sz=az("every");iz({target:"Array",proto:!0,forced:!sz},{every:function(r){return nz(this,r,arguments.length>1?arguments[1]:void 0)}});var oz=Le,lz=oz("Array").every,dz=$e,uz=lz,Nd=Array.prototype,cz=function(e){var r=e.every;return e===Nd||dz(Nd,e)&&r===Nd.every?uz:r},hz=cz,fz=hz,vz=fz,pz=z(vz);function Up(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=mz(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
656
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function mz(e,r){var t;if(e){if(typeof e=="string")return Xp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Xp(e,r)}}function Xp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function gz(e){var r=yz();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function yz(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Nb=function(e){wt(t,e);var r=gz(t);function t(a,n,s){var o;ue(this,t);var l=Ar({},{fitOnDoubleClick:!0},s,{editable:!1});if(o=r.call(this,a,n,l),o.props={content:{width:0,height:0}},!a||a.uiItems==null)throw new Error('Property "uiItems" missing in item '+a.id);return o.id=Ei(),o.group=a.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return ce(t,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(n){this.detach(),this.data.uiItems=n,this._setupRange(),this.attach()}},{key:"isVisible",value:function(n){var s=this.data.end?this.data.end-this.data.start:0,o=this.width*n.getMillisecondsPerPixel(),l=Math.max(this.data.start.getTime()+s,this.data.start.getTime()+o);return this.data.start<n.end&&l>n.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(n){var s,o,l,d,u,f,p,m=[O(s=this._createDomElement).call(s,this),O(o=this._appendDomElement).call(o,this),O(l=this._updateDirtyDomComponents).call(l,this),O(d=function(){this.dirty&&(p=this._getDomComponentsSizes())}).call(d,this),O(u=function(){if(this.dirty){var E;O(E=this._updateDomComponentsSizes).call(E,this)(p)}}).call(u,this),O(f=this._repaintDomAdditionals).call(f,this)];if(n)return m;var y;return B(m).call(m,function(b){y=b()}),y}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var n=this.dom;n.box.parentNode&&n.box.parentNode.removeChild(n.box),this.options.showStipes&&(n.line.parentNode&&n.line.parentNode.removeChild(n.line),n.dot.parentNode&&n.dot.parentNode.removeChild(n.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start),s=this.data.end?this.conversion.toScreen(this.data.end):0;if(s)this.repositionXWithRanges(n,s);else{var o=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(n,o)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(n,s))}},{key:"repositionStype",value:function(n,s){this.dom.line.style.display="block",this.dom.dot.style.display="block";var o=this.dom.line.offsetWidth,l=this.dom.dot.offsetWidth;if(s){var d=o+n+(s-n)/2,u=d-l/2,f=this.options.rtl?d*-1:d,p=this.options.rtl?u*-1:u;this.dom.line.style.transform="translateX(".concat(f,"px)"),this.dom.dot.style.transform="translateX(".concat(p,"px)")}else{var m=this.options.rtl?n*-1:n,y=this.options.rtl?(n-l/2)*-1:n-l/2;this.dom.line.style.transform="translateX(".concat(m,"px)"),this.dom.dot.style.transform="translateX(".concat(y,"px)")}}},{key:"repositionXWithoutRanges",value:function(n,s){s=="right"?this.options.rtl?(this.right=n-this.width,this.dom.box.style.right=this.right+"px"):(this.left=n-this.width,this.dom.box.style.left=this.left+"px"):s=="left"?this.options.rtl?(this.right=n,this.dom.box.style.right=this.right+"px"):(this.left=n,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=n-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=n-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(n,s){var o=Math.round(Math.max(s-n+.5,1));this.options.rtl?this.right=n:this.left=n,this.width=Math.max(o,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=o+"px"}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.box;if(n=="top"?s.style.top=(this.top||0)+"px":s.style.top=(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(n=="top")this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var o=this.parent.itemSet.props.height,l=o-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=o-l+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var n,s=Up(this.data.uiItems),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;l.cluster=this}}catch(d){s.e(d)}finally{s.f()}this.data.items=ye(n=this.data.uiItems).call(n,function(d){return d.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.hasItems()){var s=Up(this.data.uiItems),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;delete l.cluster}}catch(d){s.e(d)}finally{s.f()}this.attached=!1,n&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var n,s,o,l=ye(n=this.data.uiItems).call(n,function(f){return{start:f.data.start.valueOf(),end:f.data.end?f.data.end.valueOf():f.data.start.valueOf()}});this.data.min=Math.min.apply(Math,Pe(ye(l).call(l,function(f){return Math.min(f.start,f.end||f.start)}))),this.data.max=Math.max.apply(Math,Pe(ye(l).call(l,function(f){return Math.max(f.start,f.end||f.start)})));var d=ye(s=this.data.uiItems).call(s,function(f){return f.center}),u=Ro(d).call(d,function(f,p){return f+p},0)/this.data.uiItems.length;yc(o=this.data.uiItems).call(o,function(f){return f.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(u),this.data.end=null)}},{key:"_getUiItems",value:function(){var n=this;if(this.data.uiItems&&this.data.uiItems.length){var s;return J(s=this.data.uiItems).call(s,function(o){return o.cluster===n})}return[]}},{key:"_createDomElement",value:function(){if(!this.dom){if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick){var n;this.dom.box.ondblclick=O(n=t.prototype._onDoubleClick).call(n,this)}this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}var s=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!s)throw new Error("Cannot redraw item: parent has no background container element");s.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var o=this.parent.dom.axis;if(!s)throw new Error("Cannot redraw item: parent has no axis container element");o.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+n,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var n={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(n.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},n.line={width:this.dom.line.offsetWidth}),n}},{key:"_updateDomComponentsSizes",value:function(n){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=n.box.width:this.width=n.box.width,this.height=n.box.height,this.options.rtl?this.dom.box.style.right=n.previous.right:this.dom.box.style.left=n.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var n=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-n,fitEnd:this.data.max+n}}},{key:"_fit",value:function(){if(this.emitter){var n=this._getFitRange(),s=n.fitStart,o=n.fitEnd,l={start:new Date(s),end:new Date(o),animation:!0};this.emitter.emit("fit",l)}}},{key:"_getItemData",value:function(){return this.data}}]),t}(Ln);Nb.prototype.baseClassName="vis-item vis-range vis-cluster";function _z(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=bz(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
657
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function bz(e,r){var t;if(e){if(typeof e=="string")return qp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return qp(e,r)}}function qp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var wz="__ungrouped__",kz={UNGROUPED:wz},xz=function(){function e(r){ue(this,e),this.itemSet=r,this.groups={},this.cache={},this.cache[-1]=[]}return ce(e,[{key:"createClusterItem",value:function(t,a,n){var s=new Nb(t,a,n);return s}},{key:"setItems",value:function(t,a){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,a&&a.applyOnChangedLevel&&(this.applyOnChangedLevel=a.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(t,a,n){var s=typeof n=="boolean"?{}:n,o=s.maxItems,l=s.clusterCriteria;l||(l=function(){return!0}),o=o||1;var d=-1,u=2,f=0;if(a>0){if(a>=1)return[];d=Math.abs(Math.round(Math.log(100/a)/Math.log(u))),f=Math.abs(Math.pow(u,d))}if(this.dataChanged){var p=d!=this.cacheLevel,m=this.applyOnChangedLevel?p:!0;m&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=d;var y=this.cache[d];if(!y){y=[];for(var b in this.groups)if(this.groups.hasOwnProperty(b))for(var E=this.groups[b],w=E.length,S=0;S<w;){for(var D=E[S],T=1,P=S-1;P>=0&&D.center-E[P].center<f/2;)!E[P].cluster&&l(D.data,E[P].data)&&T++,P--;for(var F=S+1;F<E.length&&E[F].center-D.center<f/2;)l(D.data,E[F].data)&&T++,F++;for(var A=y.length-1;A>=0&&D.center-y[A].center<f;)D.group==y[A].group&&l(D.data,y[A].data)&&T++,A--;if(T>o){for(var V=T-o+1,N=[],I=S;N.length<V&&I<E.length;)l(E[S].data,E[I].data)&&N.push(E[I]),I++;var M=this.itemSet.getGroupId(D.data),H=this.itemSet.groups[M]||this.itemSet.groups[kz.UNGROUPED],W=this._getClusterForItems(N,H,t,n);y.push(W),S+=V}else delete D.cluster,S+=1}this.cache[d]=y}return y}},{key:"_filterData",value:function(){var t={};this.groups=t;for(var a=0,n=Gu(this.items);a<n.length;a++){var s=n[a],o=s.parent?s.parent.groupId:"",l=t[o];l||(l=[],t[o]=l),l.push(s),s.data.start&&(s.data.end?s.center=(s.data.start.valueOf()+s.data.end.valueOf())/2:s.center=s.data.start.valueOf())}for(var d in t)if(t.hasOwnProperty(d)){var u;Ue(u=t[d]).call(u,function(f,p){return f.center-p.center})}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,a,n,s){var o,l=ye(o=n||[]).call(o,function(D){var T;return{cluster:D,itemsIds:new ei(ye(T=D.data.uiItems).call(T,function(P){return P.id}))}}),d;if(l.length){var u=_z(l),f;try{var p=function(){var T=f.value;if(T.itemsIds.size===t.length&&pz(t).call(t,function(P){return T.itemsIds.has(P.id)}))return d=T.cluster,1};for(u.s();!(f=u.n()).done&&!p(););}catch(D){u.e(D)}finally{u.f()}}if(d)return d.setUiItems(t),d.group!==a&&(d.group&&d.group.remove(d),a&&(a.add(d),d.group=a)),d;var m=s.titleTemplate||"",y={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},b=m.replace(/{count}/,t.length),E='<div title="'+b+'">'+t.length+"</div>",w=Ar({},s,this.itemSet.options),S={content:E,title:b,group:a,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return d=this.createClusterItem(S,y,w),a&&(a.add(d),d.group=a),d.attach(),d}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),e}(),Ez=`
|
662
658
|
.vis-itemset {
|
663
659
|
position: relative;
|
664
660
|
padding: 0;
|
@@ -836,7 +832,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
836
832
|
width: 100%;
|
837
833
|
height: 100%;
|
838
834
|
z-index: 10;
|
839
|
-
}`;
|
835
|
+
}`;kt(Ez);var Sz=`
|
840
836
|
.vis-labelset {
|
841
837
|
position: relative;
|
842
838
|
|
@@ -879,19 +875,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
879
875
|
.vis-labelset .vis-label .vis-inner.vis-hidden {
|
880
876
|
padding: 0;
|
881
877
|
}
|
882
|
-
`;
|
883
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function SJ(e,t){var r;if(e){if(typeof e=="string")return Ky(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ky(e,t)}}function Ky(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function kJ(e){var t=xJ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function xJ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Bi="__ungrouped__",_n="__background__",Ll=function(e){It(r,e);var t=kJ(r);function r(a,n){var s;fe(this,r),s=t.call(this),s.body=a,s.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(d,c,f){var v=c.order;c.order=d.order,d.order=v},groupOrder:"order",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:Ml.snap,onDropObjectOnItem:function(d,c,f){f(c)},onAdd:function(d,c){c(d)},onUpdate:function(d,c){c(d)},onMove:function(d,c){c(d)},onRemove:function(d,c){c(d)},onMoving:function(d,c){c(d)},onAddGroup:function(d,c){c(d)},onMoveGroup:function(d,c){c(d)},onRemoveGroup:function(d,c){c(d)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},s.options=x.extend({},s.defaultOptions),s.options.rtl=n.rtl,s.options.onTimeout=n.onTimeout,s.conversion={toScreen:a.util.toScreen,toTime:a.util.toTime},s.dom={},s.props={},s.hammer=null;var o=Ne(s);return s.itemsData=null,s.groupsData=null,s.itemsSettingTime=null,s.initialItemSetDrawn=!1,s.userContinueNotBail=null,s.sequentialSelection=!1,s.itemListeners={add:function(d,c,f){o._onAdd(c.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(d,c,f){o._onUpdate(c.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(d,c,f){o._onRemove(c.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},s.groupListeners={add:function(d,c,f){if(o._onAddGroups(c.items),o.groupsData&&o.groupsData.length>0){var v,m=o.groupsData.getDataSet();G(v=m.get()).call(v,function(g){if(g.nestedGroups){var b;g.showNested!=!1&&(g.showNested=!0);var S=[];G(b=g.nestedGroups).call(b,function(w){var k=m.get(w);k&&(k.nestedInGroup=g.id,g.showNested==!1&&(k.visible=!1),S=Me(S).call(S,k))}),m.update(S,f)}})}},update:function(d,c,f){o._onUpdateGroups(c.items)},remove:function(d,c,f){o._onRemoveGroups(c.items)}},s.items={},s.groups={},s.groupIds=[],s.selection=[],s.popup=null,s.popupTimer=null,s.touchParams={},s.groupTouchParams={group:null,isDragging:!1},s._create(),s.setOptions(n),s.clusters=[],s}return pe(r,[{key:"_create",value:function(){var n=this,s,o,l,d,c,f,v,m,g,b,S,w,k,T,D,N=document.createElement("div");N.className="vis-itemset",N["vis-itemset"]=this,this.dom.frame=N;var L=document.createElement("div");L.className="vis-background",N.appendChild(L),this.dom.background=L;var A=document.createElement("div");A.className="vis-foreground",N.appendChild(A),this.dom.foreground=A;var R=document.createElement("div");R.className="vis-axis",this.dom.axis=R;var C=document.createElement("div");C.className="vis-labelset",this.dom.labelSet=C,this._updateUngrouped();var j=new T1(_n,null,this);j.show(),this.groups[_n]=j,this.hammer=new kt(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(O){O.isFirst&&n._onTouch(O)}),this.hammer.on("panstart",P(s=this._onDragStart).call(s,this)),this.hammer.on("panmove",P(o=this._onDrag).call(o,this)),this.hammer.on("panend",P(l=this._onDragEnd).call(l,this)),this.hammer.get("pan").set({threshold:5,direction:kt.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",P(d=this._onSelectItem).call(d,this)),this.hammer.on("press",P(c=this._onMultiSelectItem).call(c,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",P(f=this._onAddItem).call(f,this)),this.options.rtl?this.groupHammer=new kt(this.body.dom.rightContainer):this.groupHammer=new kt(this.body.dom.leftContainer),this.groupHammer.on("tap",P(v=this._onGroupClick).call(v,this)),this.groupHammer.on("panstart",P(m=this._onGroupDragStart).call(m,this)),this.groupHammer.on("panmove",P(g=this._onGroupDrag).call(g,this)),this.groupHammer.on("panend",P(b=this._onGroupDragEnd).call(b,this)),this.groupHammer.get("pan").set({threshold:5,direction:kt.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",P(S=this._onMouseOver).call(S,this)),this.body.dom.centerContainer.addEventListener("mouseout",P(w=this._onMouseOut).call(w,this)),this.body.dom.centerContainer.addEventListener("mousemove",P(k=this._onMouseMove).call(k,this)),this.body.dom.centerContainer.addEventListener("contextmenu",P(T=this._onDragEnd).call(T,this)),this.body.dom.centerContainer.addEventListener("mousewheel",P(D=this._onMouseWheel).call(D,this)),this.show()}},{key:"setOptions",value:function(n){var s=this;if(n){var o,l,d=["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"];x.selectiveExtend(d,this.options,n),"itemsAlwaysDraggable"in n&&(typeof n.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=n.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):ne(n.itemsAlwaysDraggable)==="object"&&(x.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,n.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in n&&typeof n.sequentialSelection=="boolean"&&(this.options.sequentialSelection=n.sequentialSelection),"orientation"in n&&(typeof n.orientation=="string"?this.options.orientation.item=n.orientation==="top"?"top":"bottom":ne(n.orientation)==="object"&&"item"in n.orientation&&(this.options.orientation.item=n.orientation.item)),"margin"in n&&(typeof n.margin=="number"?(this.options.margin.axis=n.margin,this.options.margin.item.horizontal=n.margin,this.options.margin.item.vertical=n.margin):ne(n.margin)==="object"&&(x.selectiveExtend(["axis"],this.options.margin,n.margin),"item"in n.margin&&(typeof n.margin.item=="number"?(this.options.margin.item.horizontal=n.margin.item,this.options.margin.item.vertical=n.margin.item):ne(n.margin.item)==="object"&&x.selectiveExtend(["horizontal","vertical"],this.options.margin.item,n.margin.item)))),G(o=["locale","locales"]).call(o,function(f){f in n&&(s.options[f]=n[f])}),"editable"in n&&(typeof n.editable=="boolean"?(this.options.editable.updateTime=n.editable,this.options.editable.updateGroup=n.editable,this.options.editable.add=n.editable,this.options.editable.remove=n.editable,this.options.editable.overrideItems=!1):ne(n.editable)==="object"&&x.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,n.editable)),"groupEditable"in n&&(typeof n.groupEditable=="boolean"?(this.options.groupEditable.order=n.groupEditable,this.options.groupEditable.add=n.groupEditable,this.options.groupEditable.remove=n.groupEditable):ne(n.groupEditable)==="object"&&x.selectiveExtend(["order","add","remove"],this.options.groupEditable,n.groupEditable));var c=function(v){var m=n[v];if(m){if(typeof m!="function"){var g;throw new Error(Me(g="option ".concat(v," must be a function ")).call(g,v,"(item, callback)"))}s.options[v]=m}};G(l=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(l,c),n.cluster?(an(this.options,{cluster:n.cluster}),this.clusterGenerator||(this.clusterGenerator=new bJ(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(n){this.groupIds=[],n&&(n.refreshItems&&G(x).call(x,this.items,function(s){s.dirty=!0,s.displayed&&s.redraw()}),n.restackGroups&&G(x).call(x,this.groups,function(s,o){o!==_n&&(s.stackDirty=!0)}))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(n){if(this.clearPopupTimer(),n){var s=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=_t(function(){n.show()},s)}}},{key:"clearPopupTimer",value:function(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(n){var s;n==null&&(n=[]),ae(n)||(n=[n]);var o=te(s=this.selection).call(s,function(S){return Ce(n).call(n,S)===-1}),l=Un(o),d;try{for(l.s();!(d=l.n()).done;){var c=d.value,f=this.getItemById(c);f&&f.unselect()}}catch(S){l.e(S)}finally{l.f()}this.selection=Fe(n);var v=Un(n),m;try{for(v.s();!(m=v.n()).done;){var g=m.value,b=this.getItemById(g);b&&b.select()}}catch(S){v.e(S)}finally{v.f()}}},{key:"getSelection",value:function(){var n;return Me(n=this.selection).call(n,[])}},{key:"getVisibleItems",value:function(){var n=this.body.range.getRange(),s,o;this.options.rtl?(s=this.body.util.toScreen(n.start),o=this.body.util.toScreen(n.end)):(o=this.body.util.toScreen(n.start),s=this.body.util.toScreen(n.end));var l=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var c=this.groups[d],f=c.isVisible?c.visibleItems:[],v=Un(f),m;try{for(v.s();!(m=v.n()).done;){var g=m.value;this.options.rtl?g.right<o&&g.right+g.width>s&&l.push(g.id):g.left<s&&g.left+g.width>o&&l.push(g.id)}}catch(b){v.e(b)}finally{v.f()}}return l}},{key:"getItemsAtCurrentTime",value:function(n){var s,o;this.options.rtl?(s=this.body.util.toScreen(n),o=this.body.util.toScreen(n)):(o=this.body.util.toScreen(n),s=this.body.util.toScreen(n));var l=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var c=this.groups[d],f=c.isVisible?c.visibleItems:[],v=Un(f),m;try{for(v.s();!(m=v.n()).done;){var g=m.value;this.options.rtl?g.right<o&&g.right+g.width>s&&l.push(g.id):g.left<s&&g.left+g.width>o&&l.push(g.id)}}catch(b){v.e(b)}finally{v.f()}}return l}},{key:"getVisibleGroups",value:function(){var n=[];for(var s in this.groups)if(this.groups.hasOwnProperty(s)){var o=this.groups[s];o.isVisible&&n.push(s)}return n}},{key:"getItemById",value:function(n){var s;return this.items[n]||vZ(s=this.clusters).call(s,function(o){return o.id===n})}},{key:"_deselect",value:function(n){for(var s=this.selection,o=0,l=s.length;o<l;o++)if(s[o]==n){xt(s).call(s,o,1);break}}},{key:"redraw",value:function(){var n=this.options.margin,s=this.body.range,o=x.option.asSize,l=this.options,d=l.orientation.item,c=!1,f=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,f.className="vis-itemset",this.options.cluster&&this._clusterItems(),c=this._orderGroups()||c;var v=s.end-s.start,m=v!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,g=s.start!=this.lastRangeStart,b=l.stack!=this.lastStack,S=l.stackSubgroups!=this.lastStackSubgroups,w=m||g||b||S;this.lastVisibleInterval=v,this.lastRangeStart=s.start,this.lastStack=l.stack,this.lastStackSubgroups=l.stackSubgroups,this.props.lastWidth=this.props.width;var k=this._firstGroup(),T={item:n.item,axis:n.axis},D={item:n.item,axis:n.item.vertical/2},N=0,L=n.axis+n.item.vertical;this.groups[_n].redraw(s,D,w);var A={},R=0;G(x).call(x,this.groups,function(H,z){if(z!==_n){var se=H==k?T:D,_e=!0;A[z]=H.redraw(s,se,w,_e),R=A[z].length}});var C=R>0;if(C){for(var j={},O=function(z){G(x).call(x,A,function(se,_e){j[_e]=se[z]()})},M=0;M<R;M++)O(M);G(x).call(x,this.groups,function(H,z){if(z!==_n){var se=j[z];c=se||c,N+=H.height}}),N=Math.max(N,L)}return N=Math.max(N,L),f.style.height=o(N),this.props.width=f.offsetWidth,this.props.height=N,this.dom.axis.style.top=o(d=="top"?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.hammer.get("press").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,c=this._isResized()||c,c}},{key:"_firstGroup",value:function(){var n=this.options.orientation.item=="top"?0:this.groupIds.length-1,s=this.groupIds[n],o=this.groups[s]||this.groups[Bi];return o||null}},{key:"_updateUngrouped",value:function(){var n=this.groups[Bi],s,o;if(this.groupsData){if(n){n.dispose(),delete this.groups[Bi];for(o in this.items)if(this.items.hasOwnProperty(o)){s=this.items[o],s.parent&&s.parent.remove(s);var l=this.getGroupId(s.data),d=this.groups[l];d&&d.add(s)||s.hide()}}}else if(!n){var c=null,f=null;n=new wh(c,f,this),this.groups[Bi]=n;for(o in this.items)this.items.hasOwnProperty(o)&&(s=this.items[o],n.add(s));n.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(n){this.itemsSettingTime=new Date;var s=this,o,l=this.itemsData;if(!n)this.itemsData=null;else if(on(n))this.itemsData=ba(n);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(l&&(G(x).call(x,this.itemListeners,function(c,f){l.off(f,c)}),l.dispose(),o=l.getIds(),this._onRemove(o)),this.itemsData){var d=this.id;G(x).call(x,this.itemListeners,function(c,f){s.itemsData.on(f,c,d)}),o=this.itemsData.getIds(),this._onAdd(o),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return this.itemsData!=null?this.itemsData.rawDS:null}},{key:"setGroups",value:function(n){var s=this,o;if(this.groupsData&&(G(x).call(x,this.groupListeners,function(f,v){s.groupsData.off(v,f)}),o=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(o)),!n)this.groupsData=null;else if(on(n))this.groupsData=n;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var l,d=this.groupsData.getDataSet();G(l=d.get()).call(l,function(f){if(f.nestedGroups){var v;G(v=f.nestedGroups).call(v,function(m){var g=d.get(m);g.nestedInGroup=f.id,f.showNested==!1&&(g.visible=!1),d.update(g)})}});var c=this.id;G(x).call(x,this.groupListeners,function(f,v){s.groupsData.on(v,f,c)}),o=this.groupsData.getIds(),this._onAddGroups(o)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(n){var s=this,o=this.itemsData.get(n);o&&this.options.onRemove(o,function(l){l&&s.itemsData.remove(n)})}},{key:"_getType",value:function(n){return n.type||this.options.type||(n.end?"range":"box")}},{key:"getGroupId",value:function(n){var s=this._getType(n);return s=="background"&&n.group==null?_n:this.groupsData?n.group:Bi}},{key:"_onUpdate",value:function(n){var s=this,o=this;G(n).call(n,function(l){var d=o.itemsData.get(l),c=o.items[l],f=d?o._getType(d):null,v=r.types[f],m;if(c&&(!v||!(c instanceof v)?(m=c.selected,o._removeItem(c),c=null):o._updateItem(c,d)),!c&&d)if(v)c=new v(d,o.conversion,o.options),c.id=l,o._addItem(c),m&&(s.selection.push(l),c.select());else throw new TypeError('Unknown item type "'.concat(f,'"'))}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(n){var s=0,o=this;G(n).call(n,function(l){var d=o.items[l];d&&(s++,o._removeItem(d))}),s&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){G(x).call(x,this.groups,function(n){n.order()})}},{key:"_onUpdateGroups",value:function(n){this._onAddGroups(n)}},{key:"_onAddGroups",value:function(n){var s=this;G(n).call(n,function(o){var l=s.groupsData.get(o),d=s.groups[o];if(d)d.setData(l);else{if(o==Bi||o==_n)throw new Error("Illegal group id. ".concat(o," is a reserved id."));var c=Ks(s.options);x.extend(c,{height:null}),d=new wh(o,l,s),s.groups[o]=d;for(var f in s.items)if(s.items.hasOwnProperty(f)){var v=s.items[f];v.data.group==o&&d.add(v)}d.order(),d.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(n){var s=this;G(n).call(n,function(o){var l=s.groups[o];l&&(l.dispose(),delete s.groups[o])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var n=this.groupsData.getIds({order:this.options.groupOrder});n=this._orderNestedGroups(n);var s=!x.equalArray(n,this.groupIds);if(s){var o=this.groups;G(n).call(n,function(l){o[l].hide()}),G(n).call(n,function(l){o[l].show()}),this.groupIds=n}return s}else return!1}},{key:"_orderNestedGroups",value:function(n){var s=this;function o(d,c){var f=[];return G(c).call(c,function(v){f.push(v);var m=d.groupsData.get(v);if(m.nestedGroups){var g,b=Se(g=d.groupsData.get({filter:function(w){return w.nestedInGroup==v},order:d.options.groupOrder})).call(g,function(S){return S.id});f=Me(f).call(f,o(d,b))}}),f}var l=te(n).call(n,function(d){return!s.groupsData.get(d).nestedInGroup});return o(this,l)}},{key:"_addItem",value:function(n){this.items[n.id]=n;var s=this.getGroupId(n.data),o=this.groups[s];o?o&&o.data&&o.data.showNested&&(n.groupShowing=!0):n.groupShowing=!1,o&&o.add(n)}},{key:"_updateItem",value:function(n,s){n.setData(s);var o=this.getGroupId(n.data),l=this.groups[o];l?l&&l.data&&l.data.showNested&&(n.groupShowing=!0):n.groupShowing=!1}},{key:"_removeItem",value:function(n){var s,o;n.hide(),delete this.items[n.id];var l=Ce(s=this.selection).call(s,n.id);l!=-1&&xt(o=this.selection).call(o,l,1),n.parent&&n.parent.remove(n),this.popup!=null&&this.popup.hide()}},{key:"_constructByEndArray",value:function(n){for(var s=[],o=0;o<n.length;o++)n[o]instanceof vi&&s.push(n[o]);return s}},{key:"_onTouch",value:function(n){this.touchParams.item=this.itemFromTarget(n),this.touchParams.dragLeftItem=n.target.dragLeftItem||!1,this.touchParams.dragRightItem=n.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(n){for(var s=0;s<this.groupIds.length;s++)if(n==this.groupIds[s])return s}},{key:"_onDragStart",value:function(n){var s=this;if(!this.touchParams.itemIsDragging){var o=this.touchParams.item||null,l=this,d;if(o&&(o.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup||o.editable!=null&&!o.editable.updateTime&&!o.editable.updateGroup&&!this.options.editable.overrideItems)return;var c=this.touchParams.dragLeftItem,f=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=o,c)d={item:c,initialX:n.center.x,dragLeft:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[d];else if(f)d={item:f,initialX:n.center.x,dragRight:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[d];else if(this.options.editable.add&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey))this._onDragStartAddItem(n);else{this.groupIds.length<1&&this.redraw();var v=this._getGroupIndex(o.data.group),m=this.options.itemsAlwaysDraggable.item&&!o.selected?[o.id]:this.getSelection();this.touchParams.itemProps=Se(m).call(m,function(g){var b=l.items[g],S=l._getGroupIndex(b.data.group);return{item:b,initialX:n.center.x,groupOffset:v-S,data:s._cloneItemData(b.data)}})}n.stopPropagation()}else this.options.editable.add&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey)&&this._onDragStartAddItem(n)}}},{key:"_onDragStartAddItem",value:function(n){var s=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),l=this.options.rtl?o.right-n.center.x+10:n.center.x-o.left-10,d=this.body.util.toTime(l),c=this.body.util.getScale(),f=this.body.util.getStep(),v=s?s(d,c,f):d,m=v,g={type:"range",start:v,end:m,content:"new item"},b=ai();g[this.itemsData.idProp]=b;var S=this.groupFromTarget(n);S&&(g.group=S.groupId);var w=new vi(g,this.conversion,this.options);w.id=b,w.data=this._cloneItemData(g),this._addItem(w),this.touchParams.selectedItem=w;var k={item:w,initialX:n.center.x,data:w.data};this.options.rtl?k.dragLeft=!0:k.dragRight=!0,this.touchParams.itemProps=[k],n.stopPropagation()}},{key:"_onDrag",value:function(n){var s=this;if(this.popup!=null&&this.options.showTooltips&&!this.popup.hidden){var o=this.body.dom.centerContainer,l=o.getBoundingClientRect();this.popup.setPosition(n.center.x-l.left+o.offsetLeft,n.center.y-l.top+o.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var d;n.stopPropagation();var c=this,f=this.options.snap||null,v=this.body.dom.root.offsetLeft,m=this.options.rtl?v+this.body.domProps.right.width:v+this.body.domProps.left.width,g=this.body.util.getScale(),b=this.body.util.getStep(),S=this.touchParams.selectedItem,w=(this.options.editable.overrideItems||S.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&S.editable!=null&&S.editable.updateGroup,k=null;if(w&&S&&S.data.group!=null){var T=c.groupFromTarget(n);T&&(k=this._getGroupIndex(T.groupId))}G(d=this.touchParams.itemProps).call(d,function(D){var N=c.body.util.toTime(n.center.x-m),L=c.body.util.toTime(D.initialX-m),A,R,C,j,O;s.options.rtl?A=-(N-L):A=N-L;var M=s._cloneItemData(D.item.data);if(!(D.item.editable!=null&&!D.item.editable.updateTime&&!D.item.editable.updateGroup&&!c.options.editable.overrideItems)){var H=(s.options.editable.overrideItems||S.editable==null)&&s.options.editable.updateTime||!s.options.editable.overrideItems&&S.editable!=null&&S.editable.updateTime;if(H){if(D.dragLeft)s.options.rtl?M.end!=null&&(C=x.convert(D.data.end,"Date"),O=new Date(C.valueOf()+A),M.end=f?f(O,g,b):O):M.start!=null&&(R=x.convert(D.data.start,"Date"),j=new Date(R.valueOf()+A),M.start=f?f(j,g,b):j);else if(D.dragRight)s.options.rtl?M.start!=null&&(R=x.convert(D.data.start,"Date"),j=new Date(R.valueOf()+A),M.start=f?f(j,g,b):j):M.end!=null&&(C=x.convert(D.data.end,"Date"),O=new Date(C.valueOf()+A),M.end=f?f(O,g,b):O);else if(M.start!=null)if(R=x.convert(D.data.start,"Date").valueOf(),j=new Date(R+A),M.end!=null){C=x.convert(D.data.end,"Date");var z=C.valueOf()-R.valueOf();M.start=f?f(j,g,b):j,M.end=new Date(M.start.valueOf()+z)}else M.start=f?f(j,g,b):j}if(w&&!D.dragLeft&&!D.dragRight&&k!=null&&M.group!=null){var se=k-D.groupOffset;se=Math.max(0,se),se=Math.min(c.groupIds.length-1,se),M.group=c.groupIds[se]}M=s._cloneItemData(M),c.options.onMoving(M,function(_e){_e&&D.item.setData(s._cloneItemData(_e,"Date"))})}}),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(n,s){var o=this.groups[s];if(o&&o.groupId!=n.data.group){var l=n.parent;l.remove(n),l.order(),n.data.group=o.groupId,o.add(n),o.order()}}},{key:"_onDragEnd",value:function(n){var s=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){n.stopPropagation();var o=this,l=this.touchParams.itemProps;this.touchParams.itemProps=null,G(l).call(l,function(d){var c=d.item.id,f=o.itemsData.get(c)!=null;if(!f)o.options.onAdd(d.item.data,function(m){o._removeItem(d.item),m&&o.itemsData.add(m),o.body.emitter.emit("_change")});else{var v=s._cloneItemData(d.item.data);o.options.onMove(v,function(m){m?(m[s.itemsData.idProp]=c,s.itemsData.update(m)):(d.item.setData(d.data),o.body.emitter.emit("_change"))})}})}}},{key:"_onGroupClick",value:function(n){var s=this,o=this.groupFromTarget(n);_t(function(){s.toggleGroupShowNested(o)},1)}},{key:"toggleGroupShowNested",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(!(!n||!n.nestedGroups)){var o=this.groupsData.getDataSet();s!=null?n.showNested=!!s:n.showNested=!n.showNested;var l=o.get(n.groupId);l.showNested=n.showNested;for(var d=n.nestedGroups,c=d;c.length>0;){var f=c;c=[];for(var v=0;v<f.length;v++){var m=o.get(f[v]);m.nestedGroups&&(c=Me(c).call(c,m.nestedGroups))}c.length>0&&(d=Me(d).call(d,c))}var g;if(l.showNested){for(var b=o.get(l.nestedGroups),S=0;S<b.length;S++){var w=b[S];w.nestedGroups&&w.nestedGroups.length>0&&(w.showNested==null||w.showNested==!0)&&b.push.apply(b,Fe(o.get(w.nestedGroups)))}g=Se(b).call(b,function(T){return T.visible==null&&(T.visible=!0),T.visible=!!l.showNested,T})}else{var k;g=Se(k=o.get(d)).call(k,function(T){return T.visible==null&&(T.visible=!0),T.visible=!!l.showNested,T})}o.update(Me(g).call(g,l)),l.showNested?(x.removeClassName(n.dom.label,"collapsed"),x.addClassName(n.dom.label,"expanded")):(x.removeClassName(n.dom.label,"expanded"),x.addClassName(n.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(n){n.dom.label.classList.toggle("vis-group-is-dragging"),n.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(n){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(n),this.groupTouchParams.group&&(n.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(n){if(this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var s=this.groupsData.getDataSet(),o=this.groupFromTarget(n);if(o&&o.height!=this.groupTouchParams.group.height){var l=o.top<this.groupTouchParams.group.top,d=n.center?n.center.y:n.clientY,c=o.dom.foreground.getBoundingClientRect(),f=this.groupTouchParams.group.height;if(l){if(c.top+f<d)return}else{var v=o.height;if(c.top+v-f>d)return}}if(o&&o!=this.groupTouchParams.group){var m=s.get(o.groupId),g=s.get(this.groupTouchParams.group.groupId);g&&m&&(this.options.groupOrderSwap(g,m,s),s.update(g),s.update(m));var b=s.getIds({order:this.options.groupOrder});if(!x.equalArray(b,this.groupTouchParams.originalOrder))for(var S=this.groupTouchParams.originalOrder,w=this.groupTouchParams.group.groupId,k=Math.min(S.length,b.length),T=0,D=0,N=0;T<k;){for(;T+D<k&&T+N<k&&b[T+D]==S[T+N];)T++;if(T+D>=k)break;if(b[T+D]==w)D=1;else if(S[T+N]==w)N=1;else{var L=Ce(b).call(b,S[T+N]),A=s.get(b[T+D]),R=s.get(S[T+N]);this.options.groupOrderSwap(A,R,s),s.update(A),s.update(R);var C=b[T+D];b[T+D]=S[T+N],b[L]=C,T++}}}}}},{key:"_onGroupDragEnd",value:function(n){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var s=this,o=s.groupTouchParams.group.groupId,l=s.groupsData.getDataSet(),d=x.extend({},l.get(o));s.options.onMoveGroup(d,function(c){if(c)c[l._idProp]=o,l.update(c);else{var f=l.getIds({order:s.options.groupOrder});if(!x.equalArray(f,s.groupTouchParams.originalOrder))for(var v=s.groupTouchParams.originalOrder,m=Math.min(v.length,f.length),g=0;g<m;){for(;g<m&&f[g]==v[g];)g++;if(g>=m)break;var b=Ce(f).call(f,v[g]),S=l.get(f[g]),w=l.get(v[g]);s.options.groupOrderSwap(S,w,l),l.update(S),l.update(w);var k=f[g];f[g]=v[g],f[b]=k,g++}}}),s.body.emitter.emit("groupDragged",{groupId:o}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(n){if(this.options.selectable){var s=n.srcEvent&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey),o=n.srcEvent&&n.srcEvent.shiftKey;if(s||o){this._onMultiSelectItem(n);return}var l=this.getSelection(),d=this.itemFromTarget(n),c=d&&d.selectable?[d.id]:[];this.setSelection(c);var f=this.getSelection();(f.length>0||l.length>0)&&this.body.emitter.emit("select",{items:f,event:n})}}},{key:"_onMouseOver",value:function(n){var s=this.itemFromTarget(n);if(s){var o=this.itemFromRelatedTarget(n);if(s!==o){var l=s.getTitle();if(this.options.showTooltips&&l){this.popup==null&&(this.popup=new JZ(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(l);var d=this.body.dom.centerContainer,c=d.getBoundingClientRect();this.popup.setPosition(n.clientX-c.left+d.offsetLeft,n.clientY-c.top+d.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:s.id,event:n})}}}},{key:"_onMouseOut",value:function(n){var s=this.itemFromTarget(n);if(s){var o=this.itemFromRelatedTarget(n);s!==o&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:s.id,event:n}))}}},{key:"_onMouseMove",value:function(n){var s=this.itemFromTarget(n);if(s&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var o=this.body.dom.centerContainer,l=o.getBoundingClientRect();this.popup.setPosition(n.clientX-l.left+o.offsetLeft,n.clientY-l.top+o.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(n){this.touchParams.itemIsDragging&&this._onDragEnd(n)}},{key:"_onUpdateItem",value:function(n){if(this.options.selectable&&!(!this.options.editable.updateTime&&!this.options.editable.updateGroup)){var s=this;if(n){var o=s.itemsData.get(n.id);this.options.onUpdate(o,function(l){l&&s.itemsData.update(l)})}}}},{key:"_onDropObjectOnItem",value:function(n){var s=this.itemFromTarget(n),o=JSON.parse(n.dataTransfer.getData("text"));this.options.onDropObjectOnItem(o,s)}},{key:"_onAddItem",value:function(n){if(this.options.selectable&&this.options.editable.add){var s=this,o=this.options.snap||null,l=this.dom.frame.getBoundingClientRect(),d=this.options.rtl?l.right-n.center.x:n.center.x-l.left,c=this.body.util.toTime(d),f=this.body.util.getScale(),v=this.body.util.getStep(),m,g;n.type=="drop"?(g=JSON.parse(n.dataTransfer.getData("text")),g.content=g.content?g.content:"new item",g.start=g.start?g.start:o?o(c,f,v):c,g.type=g.type||"box",g[this.itemsData.idProp]=g.id||ai(),g.type=="range"&&!g.end&&(m=this.body.util.toTime(d+this.props.width/5),g.end=o?o(m,f,v):m)):(g={start:o?o(c,f,v):c,content:"new item"},g[this.itemsData.idProp]=ai(),this.options.type==="range"&&(m=this.body.util.toTime(d+this.props.width/5),g.end=o?o(m,f,v):m));var b=this.groupFromTarget(n);b&&(g.group=b.groupId),g=this._cloneItemData(g),this.options.onAdd(g,function(S){S&&(s.itemsData.add(S),n.type=="drop"&&s.setSelection([S.id]))})}}},{key:"_onMultiSelectItem",value:function(n){var s=this;if(this.options.selectable){var o=this.itemFromTarget(n);if(o){var l=this.options.multiselect?this.getSelection():[],d=n.srcEvent&&n.srcEvent.shiftKey||!1;if((d||this.options.sequentialSelection)&&this.options.multiselect){var c=this.itemsData.get(o.id).group,f=void 0;this.options.multiselectPerGroup&&l.length>0&&(f=this.itemsData.get(l[0]).group),(!this.options.multiselectPerGroup||f==null||f==c)&&l.push(o.id);var v=r._getItemRange(this.itemsData.get(l));if(!this.options.multiselectPerGroup||f==c){l=[];for(var m in this.items)if(this.items.hasOwnProperty(m)){var g=this.items[m],b=g.data.start,S=g.data.end!==void 0?g.data.end:b;b>=v.min&&S<=v.max&&(!this.options.multiselectPerGroup||f==this.itemsData.get(g.id).group)&&!(g instanceof xi)&&l.push(g.id)}}}else{var w=Ce(l).call(l,o.id);w==-1?l.push(o.id):xt(l).call(l,w,1)}var k=te(l).call(l,function(T){return s.getItemById(T).selectable});this.setSelection(k),this.body.emitter.emit("select",{items:this.getSelection(),event:n})}}}},{key:"itemFromElement",value:function(n){for(var s=n;s;){if(s.hasOwnProperty("vis-item"))return s["vis-item"];s=s.parentNode}return null}},{key:"itemFromTarget",value:function(n){return this.itemFromElement(n.target)}},{key:"itemFromRelatedTarget",value:function(n){return this.itemFromElement(n.relatedTarget)}},{key:"groupFromTarget",value:function(n){var s=n.center?n.center.y:n.clientY,o=this.groupIds;o.length<=0&&this.groupsData&&(o=this.groupsData.getIds({order:this.options.groupOrder}));for(var l=0;l<o.length;l++){var d=o[l],c=this.groups[d],f=c.dom.foreground,v=f.getBoundingClientRect();if(s>=v.top&&s<v.top+f.offsetHeight)return c;if(this.options.orientation.item==="top"){if(l===this.groupIds.length-1&&s>v.top)return c}else if(l===0&&s<v.top+f.offset)return c}return null}},{key:"_cloneItemData",value:function(n,s){var o=x.extend({},n);return s||(s=this.itemsData.type),o.start!=null&&(o.start=x.convert(o.start,s&&s.start||"Date")),o.end!=null&&(o.end=x.convert(o.end,s&&s.end||"Date")),o}},{key:"_clusterItems",value:function(){if(this.options.cluster){var n=this.body.range.conversion(this.body.domProps.center.width),s=n.scale,o=this.clusterGenerator.getClusters(this.clusters,s,this.options.cluster);if(this.clusters!=o){if(this._detachAllClusters(),o){var l=Un(o),d;try{for(l.s();!(d=l.n()).done;){var c=d.value;c.attach()}}catch(f){l.e(f)}finally{l.f()}this.clusters=o}this._updateClusters(o)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var n=Un(this.clusters),s;try{for(n.s();!(s=n.n()).done;){var o=s.value;o.detach()}}catch(l){n.e(l)}finally{n.f()}}}},{key:"_updateClusters",value:function(n){if(this.clusters&&this.clusters.length){var s,o=new xn(Se(n).call(n,function(w){return w.id})),l=te(s=this.clusters).call(s,function(w){return!o.has(w.id)}),d=!1,c=Un(l),f;try{for(c.s();!(f=c.n()).done;){var v,m=f.value,g=Ce(v=this.selection).call(v,m.id);if(g!==-1){var b;m.unselect(),xt(b=this.selection).call(b,g,1),d=!0}}}catch(w){c.e(w)}finally{c.f()}if(d){var S=this.getSelection();this.body.emitter.emit("select",{items:S,event})}}this.clusters=n||[]}}],[{key:"_getItemRange",value:function(n){var s=null,o=null;return G(n).call(n,function(l){(o==null||l.start<o)&&(o=l.start),l.end!=null?(s==null||l.end>s)&&(s=l.end):(s==null||l.start>s)&&(s=l.start)}),{min:o,max:s}}},{key:"itemSetFromTarget",value:function(n){for(var s=n.target;s;){if(s.hasOwnProperty("vis-itemset"))return s["vis-itemset"];s=s.parentNode}return null}}]),r}(Fn);Ll.types={background:xi,box:WZ,range:vi,point:UZ};Ll.prototype._onAdd=Ll.prototype._onUpdate;var rs=!1,qy,Vl="background: #FFeeee; color: #dd0000",D1=function(){function e(){fe(this,e)}return pe(e,null,[{key:"validate",value:function(r,a,n){rs=!1,qy=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(r,s,[]),rs}},{key:"parse",value:function(r,a,n){for(var s in r)r.hasOwnProperty(s)&&e.check(s,r,a,n)}},{key:"check",value:function(r,a,n,s){if(n[r]===void 0&&n.__any__===void 0){e.getSuggestion(r,n,s);return}var o=r,l=!0;n[r]===void 0&&n.__any__!==void 0&&(o="__any__",l=e.getType(a[r])==="object");var d=n[o];l&&d.__type__!==void 0&&(d=d.__type__),e.checkFields(r,a,n,o,d,s)}},{key:"checkFields",value:function(r,a,n,s,o,l){var d=function(m){console.log("%c"+m+e.printLocation(l,r),Vl)},c=e.getType(a[r]),f=o[c];f!==void 0?e.getType(f)==="array"&&Ce(f).call(f,a[r])===-1?(d('Invalid option detected in "'+r+'". Allowed values are:'+e.print(f)+' not "'+a[r]+'". '),rs=!0):c==="object"&&s!=="__any__"&&(l=x.copyAndExtendArray(l,r),e.parse(a[r],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+r+'". Expected: '+e.print(st(o))+". Received ["+c+'] "'+a[r]+'"'),rs=!0)}},{key:"getType",value:function(r){var a=ne(r);return a==="object"?r===null?"null":r instanceof Boolean?"boolean":r instanceof Number?"number":r instanceof String?"string":ae(r)?"array":r instanceof Date?"date":r.nodeType!==void 0?"dom":r._isAMomentObject===!0?"moment":"object":a==="number"?"number":a==="boolean"?"boolean":a==="string"?"string":a===void 0?"undefined":a}},{key:"getSuggestion",value:function(r,a,n){var s=e.findInOptions(r,a,n,!1),o=e.findInOptions(r,qy,[],!0),l=8,d=4,c;s.indexMatch!==void 0?c=" in "+e.printLocation(s.path,r,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+`"?
|
878
|
+
`;kt(Sz);function pi(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=$z(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
879
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function $z(e,r){var t;if(e){if(typeof e=="string")return Kp(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Kp(e,r)}}function Kp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function Dz(e){var r=Tz();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function Tz(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Qi="__ungrouped__",Xr="__background__",fo=function(e){wt(t,e);var r=Dz(t);function t(a,n){var s;ue(this,t),s=r.call(this),s.body=a,s.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(d,u,f){var p=u.order;u.order=d.order,d.order=p},groupOrder:"order",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:co.snap,onDropObjectOnItem:function(d,u,f){f(u)},onAdd:function(d,u){u(d)},onUpdate:function(d,u){u(d)},onMove:function(d,u){u(d)},onRemove:function(d,u){u(d)},onMoving:function(d,u){u(d)},onAddGroup:function(d,u){u(d)},onMoveGroup:function(d,u){u(d)},onRemoveGroup:function(d,u){u(d)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},s.options=x.extend({},s.defaultOptions),s.options.rtl=n.rtl,s.options.onTimeout=n.onTimeout,s.conversion={toScreen:a.util.toScreen,toTime:a.util.toTime},s.dom={},s.props={},s.hammer=null;var o=Ee(s);return s.itemsData=null,s.groupsData=null,s.itemsSettingTime=null,s.initialItemSetDrawn=!1,s.userContinueNotBail=null,s.sequentialSelection=!1,s.itemListeners={add:function(d,u,f){o._onAdd(u.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(d,u,f){o._onUpdate(u.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(d,u,f){o._onRemove(u.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},s.groupListeners={add:function(d,u,f){if(o._onAddGroups(u.items),o.groupsData&&o.groupsData.length>0){var p,m=o.groupsData.getDataSet();B(p=m.get()).call(p,function(y){if(y.nestedGroups){var b;y.showNested!=!1&&(y.showNested=!0);var E=[];B(b=y.nestedGroups).call(b,function(w){var S=m.get(w);S&&(S.nestedInGroup=y.id,y.showNested==!1&&(S.visible=!1),E=Ne(E).call(E,S))}),m.update(E,f)}})}},update:function(d,u,f){o._onUpdateGroups(u.items)},remove:function(d,u,f){o._onRemoveGroups(u.items)}},s.items={},s.groups={},s.groupIds=[],s.selection=[],s.popup=null,s.popupTimer=null,s.touchParams={},s.groupTouchParams={group:null,isDragging:!1},s._create(),s.setOptions(n),s.clusters=[],s}return ce(t,[{key:"_create",value:function(){var n=this,s,o,l,d,u,f,p,m,y,b,E,w,S,D,T,P=document.createElement("div");P.className="vis-itemset",P["vis-itemset"]=this,this.dom.frame=P;var F=document.createElement("div");F.className="vis-background",P.appendChild(F),this.dom.background=F;var A=document.createElement("div");A.className="vis-foreground",P.appendChild(A),this.dom.foreground=A;var V=document.createElement("div");V.className="vis-axis",this.dom.axis=V;var N=document.createElement("div");N.className="vis-labelset",this.dom.labelSet=N,this._updateUngrouped();var I=new Tb(Xr,null,this);I.show(),this.groups[Xr]=I,this.hammer=new vt(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(M){M.isFirst&&n._onTouch(M)}),this.hammer.on("panstart",O(s=this._onDragStart).call(s,this)),this.hammer.on("panmove",O(o=this._onDrag).call(o,this)),this.hammer.on("panend",O(l=this._onDragEnd).call(l,this)),this.hammer.get("pan").set({threshold:5,direction:vt.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",O(d=this._onSelectItem).call(d,this)),this.hammer.on("press",O(u=this._onMultiSelectItem).call(u,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",O(f=this._onAddItem).call(f,this)),this.options.rtl?this.groupHammer=new vt(this.body.dom.rightContainer):this.groupHammer=new vt(this.body.dom.leftContainer),this.groupHammer.on("tap",O(p=this._onGroupClick).call(p,this)),this.groupHammer.on("panstart",O(m=this._onGroupDragStart).call(m,this)),this.groupHammer.on("panmove",O(y=this._onGroupDrag).call(y,this)),this.groupHammer.on("panend",O(b=this._onGroupDragEnd).call(b,this)),this.groupHammer.get("pan").set({threshold:5,direction:vt.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",O(E=this._onMouseOver).call(E,this)),this.body.dom.centerContainer.addEventListener("mouseout",O(w=this._onMouseOut).call(w,this)),this.body.dom.centerContainer.addEventListener("mousemove",O(S=this._onMouseMove).call(S,this)),this.body.dom.centerContainer.addEventListener("contextmenu",O(D=this._onDragEnd).call(D,this)),this.body.dom.centerContainer.addEventListener("mousewheel",O(T=this._onMouseWheel).call(T,this)),this.show()}},{key:"setOptions",value:function(n){var s=this;if(n){var o,l,d=["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"];x.selectiveExtend(d,this.options,n),"itemsAlwaysDraggable"in n&&(typeof n.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=n.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):ee(n.itemsAlwaysDraggable)==="object"&&(x.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,n.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in n&&typeof n.sequentialSelection=="boolean"&&(this.options.sequentialSelection=n.sequentialSelection),"orientation"in n&&(typeof n.orientation=="string"?this.options.orientation.item=n.orientation==="top"?"top":"bottom":ee(n.orientation)==="object"&&"item"in n.orientation&&(this.options.orientation.item=n.orientation.item)),"margin"in n&&(typeof n.margin=="number"?(this.options.margin.axis=n.margin,this.options.margin.item.horizontal=n.margin,this.options.margin.item.vertical=n.margin):ee(n.margin)==="object"&&(x.selectiveExtend(["axis"],this.options.margin,n.margin),"item"in n.margin&&(typeof n.margin.item=="number"?(this.options.margin.item.horizontal=n.margin.item,this.options.margin.item.vertical=n.margin.item):ee(n.margin.item)==="object"&&x.selectiveExtend(["horizontal","vertical"],this.options.margin.item,n.margin.item)))),B(o=["locale","locales"]).call(o,function(f){f in n&&(s.options[f]=n[f])}),"editable"in n&&(typeof n.editable=="boolean"?(this.options.editable.updateTime=n.editable,this.options.editable.updateGroup=n.editable,this.options.editable.add=n.editable,this.options.editable.remove=n.editable,this.options.editable.overrideItems=!1):ee(n.editable)==="object"&&x.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,n.editable)),"groupEditable"in n&&(typeof n.groupEditable=="boolean"?(this.options.groupEditable.order=n.groupEditable,this.options.groupEditable.add=n.groupEditable,this.options.groupEditable.remove=n.groupEditable):ee(n.groupEditable)==="object"&&x.selectiveExtend(["order","add","remove"],this.options.groupEditable,n.groupEditable));var u=function(p){var m=n[p];if(m){if(typeof m!="function"){var y;throw new Error(Ne(y="option ".concat(p," must be a function ")).call(y,p,"(item, callback)"))}s.options[p]=m}};B(l=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(l,u),n.cluster?(Ar(this.options,{cluster:n.cluster}),this.clusterGenerator||(this.clusterGenerator=new xz(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(n){this.groupIds=[],n&&(n.refreshItems&&B(x).call(x,this.items,function(s){s.dirty=!0,s.displayed&&s.redraw()}),n.restackGroups&&B(x).call(x,this.groups,function(s,o){o!==Xr&&(s.stackDirty=!0)}))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(n){if(this.clearPopupTimer(),n){var s=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=ct(function(){n.show()},s)}}},{key:"clearPopupTimer",value:function(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(n){var s;n==null&&(n=[]),re(n)||(n=[n]);var o=J(s=this.selection).call(s,function(E){return Se(n).call(n,E)===-1}),l=pi(o),d;try{for(l.s();!(d=l.n()).done;){var u=d.value,f=this.getItemById(u);f&&f.unselect()}}catch(E){l.e(E)}finally{l.f()}this.selection=Pe(n);var p=pi(n),m;try{for(p.s();!(m=p.n()).done;){var y=m.value,b=this.getItemById(y);b&&b.select()}}catch(E){p.e(E)}finally{p.f()}}},{key:"getSelection",value:function(){var n;return Ne(n=this.selection).call(n,[])}},{key:"getVisibleItems",value:function(){var n=this.body.range.getRange(),s,o;this.options.rtl?(s=this.body.util.toScreen(n.start),o=this.body.util.toScreen(n.end)):(o=this.body.util.toScreen(n.start),s=this.body.util.toScreen(n.end));var l=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var u=this.groups[d],f=u.isVisible?u.visibleItems:[],p=pi(f),m;try{for(p.s();!(m=p.n()).done;){var y=m.value;this.options.rtl?y.right<o&&y.right+y.width>s&&l.push(y.id):y.left<s&&y.left+y.width>o&&l.push(y.id)}}catch(b){p.e(b)}finally{p.f()}}return l}},{key:"getItemsAtCurrentTime",value:function(n){var s,o;this.options.rtl?(s=this.body.util.toScreen(n),o=this.body.util.toScreen(n)):(o=this.body.util.toScreen(n),s=this.body.util.toScreen(n));var l=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var u=this.groups[d],f=u.isVisible?u.visibleItems:[],p=pi(f),m;try{for(p.s();!(m=p.n()).done;){var y=m.value;this.options.rtl?y.right<o&&y.right+y.width>s&&l.push(y.id):y.left<s&&y.left+y.width>o&&l.push(y.id)}}catch(b){p.e(b)}finally{p.f()}}return l}},{key:"getVisibleGroups",value:function(){var n=[];for(var s in this.groups)if(this.groups.hasOwnProperty(s)){var o=this.groups[s];o.isVisible&&n.push(s)}return n}},{key:"getItemById",value:function(n){var s;return this.items[n]||yG(s=this.clusters).call(s,function(o){return o.id===n})}},{key:"_deselect",value:function(n){for(var s=this.selection,o=0,l=s.length;o<l;o++)if(s[o]==n){pt(s).call(s,o,1);break}}},{key:"redraw",value:function(){var n=this.options.margin,s=this.body.range,o=x.option.asSize,l=this.options,d=l.orientation.item,u=!1,f=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,f.className="vis-itemset",this.options.cluster&&this._clusterItems(),u=this._orderGroups()||u;var p=s.end-s.start,m=p!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,y=s.start!=this.lastRangeStart,b=l.stack!=this.lastStack,E=l.stackSubgroups!=this.lastStackSubgroups,w=m||y||b||E;this.lastVisibleInterval=p,this.lastRangeStart=s.start,this.lastStack=l.stack,this.lastStackSubgroups=l.stackSubgroups,this.props.lastWidth=this.props.width;var S=this._firstGroup(),D={item:n.item,axis:n.axis},T={item:n.item,axis:n.item.vertical/2},P=0,F=n.axis+n.item.vertical;this.groups[Xr].redraw(s,T,w);var A={},V=0;B(x).call(x,this.groups,function(W,q){if(q!==Xr){var de=W==S?D:T,Ae=!0;A[q]=W.redraw(s,de,w,Ae),V=A[q].length}});var N=V>0;if(N){for(var I={},M=function(q){B(x).call(x,A,function(de,Ae){I[Ae]=de[q]()})},H=0;H<V;H++)M(H);B(x).call(x,this.groups,function(W,q){if(q!==Xr){var de=I[q];u=de||u,P+=W.height}}),P=Math.max(P,F)}return P=Math.max(P,F),f.style.height=o(P),this.props.width=f.offsetWidth,this.props.height=P,this.dom.axis.style.top=o(d=="top"?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.hammer.get("press").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,u=this._isResized()||u,u}},{key:"_firstGroup",value:function(){var n=this.options.orientation.item=="top"?0:this.groupIds.length-1,s=this.groupIds[n],o=this.groups[s]||this.groups[Qi];return o||null}},{key:"_updateUngrouped",value:function(){var n=this.groups[Qi],s,o;if(this.groupsData){if(n){n.dispose(),delete this.groups[Qi];for(o in this.items)if(this.items.hasOwnProperty(o)){s=this.items[o],s.parent&&s.parent.remove(s);var l=this.getGroupId(s.data),d=this.groups[l];d&&d.add(s)||s.hide()}}}else if(!n){var u=null,f=null;n=new ku(u,f,this),this.groups[Qi]=n;for(o in this.items)this.items.hasOwnProperty(o)&&(s=this.items[o],n.add(s));n.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(n){this.itemsSettingTime=new Date;var s=this,o,l=this.itemsData;if(!n)this.itemsData=null;else if(Rr(n))this.itemsData=wn(n);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(l&&(B(x).call(x,this.itemListeners,function(u,f){l.off(f,u)}),l.dispose(),o=l.getIds(),this._onRemove(o)),this.itemsData){var d=this.id;B(x).call(x,this.itemListeners,function(u,f){s.itemsData.on(f,u,d)}),o=this.itemsData.getIds(),this._onAdd(o),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return this.itemsData!=null?this.itemsData.rawDS:null}},{key:"setGroups",value:function(n){var s=this,o;if(this.groupsData&&(B(x).call(x,this.groupListeners,function(f,p){s.groupsData.off(p,f)}),o=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(o)),!n)this.groupsData=null;else if(Rr(n))this.groupsData=n;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var l,d=this.groupsData.getDataSet();B(l=d.get()).call(l,function(f){if(f.nestedGroups){var p;B(p=f.nestedGroups).call(p,function(m){var y=d.get(m);y.nestedInGroup=f.id,f.showNested==!1&&(y.visible=!1),d.update(y)})}});var u=this.id;B(x).call(x,this.groupListeners,function(f,p){s.groupsData.on(p,f,u)}),o=this.groupsData.getIds(),this._onAddGroups(o)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(n){var s=this,o=this.itemsData.get(n);o&&this.options.onRemove(o,function(l){l&&s.itemsData.remove(n)})}},{key:"_getType",value:function(n){return n.type||this.options.type||(n.end?"range":"box")}},{key:"getGroupId",value:function(n){var s=this._getType(n);return s=="background"&&n.group==null?Xr:this.groupsData?n.group:Qi}},{key:"_onUpdate",value:function(n){var s=this,o=this;B(n).call(n,function(l){var d=o.itemsData.get(l),u=o.items[l],f=d?o._getType(d):null,p=t.types[f],m;if(u&&(!p||!(u instanceof p)?(m=u.selected,o._removeItem(u),u=null):o._updateItem(u,d)),!u&&d)if(p)u=new p(d,o.conversion,o.options),u.id=l,o._addItem(u),m&&(s.selection.push(l),u.select());else throw new TypeError('Unknown item type "'.concat(f,'"'))}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(n){var s=0,o=this;B(n).call(n,function(l){var d=o.items[l];d&&(s++,o._removeItem(d))}),s&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){B(x).call(x,this.groups,function(n){n.order()})}},{key:"_onUpdateGroups",value:function(n){this._onAddGroups(n)}},{key:"_onAddGroups",value:function(n){var s=this;B(n).call(n,function(o){var l=s.groupsData.get(o),d=s.groups[o];if(d)d.setData(l);else{if(o==Qi||o==Xr)throw new Error("Illegal group id. ".concat(o," is a reserved id."));var u=La(s.options);x.extend(u,{height:null}),d=new ku(o,l,s),s.groups[o]=d;for(var f in s.items)if(s.items.hasOwnProperty(f)){var p=s.items[f];p.data.group==o&&d.add(p)}d.order(),d.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(n){var s=this;B(n).call(n,function(o){var l=s.groups[o];l&&(l.dispose(),delete s.groups[o])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var n=this.groupsData.getIds({order:this.options.groupOrder});n=this._orderNestedGroups(n);var s=!x.equalArray(n,this.groupIds);if(s){var o=this.groups;B(n).call(n,function(l){o[l].hide()}),B(n).call(n,function(l){o[l].show()}),this.groupIds=n}return s}else return!1}},{key:"_orderNestedGroups",value:function(n){var s=this;function o(d,u){var f=[];return B(u).call(u,function(p){f.push(p);var m=d.groupsData.get(p);if(m.nestedGroups){var y,b=ye(y=d.groupsData.get({filter:function(w){return w.nestedInGroup==p},order:d.options.groupOrder})).call(y,function(E){return E.id});f=Ne(f).call(f,o(d,b))}}),f}var l=J(n).call(n,function(d){return!s.groupsData.get(d).nestedInGroup});return o(this,l)}},{key:"_addItem",value:function(n){this.items[n.id]=n;var s=this.getGroupId(n.data),o=this.groups[s];o?o&&o.data&&o.data.showNested&&(n.groupShowing=!0):n.groupShowing=!1,o&&o.add(n)}},{key:"_updateItem",value:function(n,s){n.setData(s);var o=this.getGroupId(n.data),l=this.groups[o];l?l&&l.data&&l.data.showNested&&(n.groupShowing=!0):n.groupShowing=!1}},{key:"_removeItem",value:function(n){var s,o;n.hide(),delete this.items[n.id];var l=Se(s=this.selection).call(s,n.id);l!=-1&&pt(o=this.selection).call(o,l,1),n.parent&&n.parent.remove(n),this.popup!=null&&this.popup.hide()}},{key:"_constructByEndArray",value:function(n){for(var s=[],o=0;o<n.length;o++)n[o]instanceof Oi&&s.push(n[o]);return s}},{key:"_onTouch",value:function(n){this.touchParams.item=this.itemFromTarget(n),this.touchParams.dragLeftItem=n.target.dragLeftItem||!1,this.touchParams.dragRightItem=n.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(n){for(var s=0;s<this.groupIds.length;s++)if(n==this.groupIds[s])return s}},{key:"_onDragStart",value:function(n){var s=this;if(!this.touchParams.itemIsDragging){var o=this.touchParams.item||null,l=this,d;if(o&&(o.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup||o.editable!=null&&!o.editable.updateTime&&!o.editable.updateGroup&&!this.options.editable.overrideItems)return;var u=this.touchParams.dragLeftItem,f=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=o,u)d={item:u,initialX:n.center.x,dragLeft:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[d];else if(f)d={item:f,initialX:n.center.x,dragRight:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[d];else if(this.options.editable.add&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey))this._onDragStartAddItem(n);else{this.groupIds.length<1&&this.redraw();var p=this._getGroupIndex(o.data.group),m=this.options.itemsAlwaysDraggable.item&&!o.selected?[o.id]:this.getSelection();this.touchParams.itemProps=ye(m).call(m,function(y){var b=l.items[y],E=l._getGroupIndex(b.data.group);return{item:b,initialX:n.center.x,groupOffset:p-E,data:s._cloneItemData(b.data)}})}n.stopPropagation()}else this.options.editable.add&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey)&&this._onDragStartAddItem(n)}}},{key:"_onDragStartAddItem",value:function(n){var s=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),l=this.options.rtl?o.right-n.center.x+10:n.center.x-o.left-10,d=this.body.util.toTime(l),u=this.body.util.getScale(),f=this.body.util.getStep(),p=s?s(d,u,f):d,m=p,y={type:"range",start:p,end:m,content:"new item"},b=Ei();y[this.itemsData.idProp]=b;var E=this.groupFromTarget(n);E&&(y.group=E.groupId);var w=new Oi(y,this.conversion,this.options);w.id=b,w.data=this._cloneItemData(y),this._addItem(w),this.touchParams.selectedItem=w;var S={item:w,initialX:n.center.x,data:w.data};this.options.rtl?S.dragLeft=!0:S.dragRight=!0,this.touchParams.itemProps=[S],n.stopPropagation()}},{key:"_onDrag",value:function(n){var s=this;if(this.popup!=null&&this.options.showTooltips&&!this.popup.hidden){var o=this.body.dom.centerContainer,l=o.getBoundingClientRect();this.popup.setPosition(n.center.x-l.left+o.offsetLeft,n.center.y-l.top+o.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var d;n.stopPropagation();var u=this,f=this.options.snap||null,p=this.body.dom.root.offsetLeft,m=this.options.rtl?p+this.body.domProps.right.width:p+this.body.domProps.left.width,y=this.body.util.getScale(),b=this.body.util.getStep(),E=this.touchParams.selectedItem,w=(this.options.editable.overrideItems||E.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&E.editable!=null&&E.editable.updateGroup,S=null;if(w&&E&&E.data.group!=null){var D=u.groupFromTarget(n);D&&(S=this._getGroupIndex(D.groupId))}B(d=this.touchParams.itemProps).call(d,function(T){var P=u.body.util.toTime(n.center.x-m),F=u.body.util.toTime(T.initialX-m),A,V,N,I,M;s.options.rtl?A=-(P-F):A=P-F;var H=s._cloneItemData(T.item.data);if(!(T.item.editable!=null&&!T.item.editable.updateTime&&!T.item.editable.updateGroup&&!u.options.editable.overrideItems)){var W=(s.options.editable.overrideItems||E.editable==null)&&s.options.editable.updateTime||!s.options.editable.overrideItems&&E.editable!=null&&E.editable.updateTime;if(W){if(T.dragLeft)s.options.rtl?H.end!=null&&(N=x.convert(T.data.end,"Date"),M=new Date(N.valueOf()+A),H.end=f?f(M,y,b):M):H.start!=null&&(V=x.convert(T.data.start,"Date"),I=new Date(V.valueOf()+A),H.start=f?f(I,y,b):I);else if(T.dragRight)s.options.rtl?H.start!=null&&(V=x.convert(T.data.start,"Date"),I=new Date(V.valueOf()+A),H.start=f?f(I,y,b):I):H.end!=null&&(N=x.convert(T.data.end,"Date"),M=new Date(N.valueOf()+A),H.end=f?f(M,y,b):M);else if(H.start!=null)if(V=x.convert(T.data.start,"Date").valueOf(),I=new Date(V+A),H.end!=null){N=x.convert(T.data.end,"Date");var q=N.valueOf()-V.valueOf();H.start=f?f(I,y,b):I,H.end=new Date(H.start.valueOf()+q)}else H.start=f?f(I,y,b):I}if(w&&!T.dragLeft&&!T.dragRight&&S!=null&&H.group!=null){var de=S-T.groupOffset;de=Math.max(0,de),de=Math.min(u.groupIds.length-1,de),H.group=u.groupIds[de]}H=s._cloneItemData(H),u.options.onMoving(H,function(Ae){Ae&&T.item.setData(s._cloneItemData(Ae,"Date"))})}}),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(n,s){var o=this.groups[s];if(o&&o.groupId!=n.data.group){var l=n.parent;l.remove(n),l.order(),n.data.group=o.groupId,o.add(n),o.order()}}},{key:"_onDragEnd",value:function(n){var s=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){n.stopPropagation();var o=this,l=this.touchParams.itemProps;this.touchParams.itemProps=null,B(l).call(l,function(d){var u=d.item.id,f=o.itemsData.get(u)!=null;if(!f)o.options.onAdd(d.item.data,function(m){o._removeItem(d.item),m&&o.itemsData.add(m),o.body.emitter.emit("_change")});else{var p=s._cloneItemData(d.item.data);o.options.onMove(p,function(m){m?(m[s.itemsData.idProp]=u,s.itemsData.update(m)):(d.item.setData(d.data),o.body.emitter.emit("_change"))})}})}}},{key:"_onGroupClick",value:function(n){var s=this,o=this.groupFromTarget(n);ct(function(){s.toggleGroupShowNested(o)},1)}},{key:"toggleGroupShowNested",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(!(!n||!n.nestedGroups)){var o=this.groupsData.getDataSet();s!=null?n.showNested=!!s:n.showNested=!n.showNested;var l=o.get(n.groupId);l.showNested=n.showNested;for(var d=n.nestedGroups,u=d;u.length>0;){var f=u;u=[];for(var p=0;p<f.length;p++){var m=o.get(f[p]);m.nestedGroups&&(u=Ne(u).call(u,m.nestedGroups))}u.length>0&&(d=Ne(d).call(d,u))}var y;if(l.showNested){for(var b=o.get(l.nestedGroups),E=0;E<b.length;E++){var w=b[E];w.nestedGroups&&w.nestedGroups.length>0&&(w.showNested==null||w.showNested==!0)&&b.push.apply(b,Pe(o.get(w.nestedGroups)))}y=ye(b).call(b,function(D){return D.visible==null&&(D.visible=!0),D.visible=!!l.showNested,D})}else{var S;y=ye(S=o.get(d)).call(S,function(D){return D.visible==null&&(D.visible=!0),D.visible=!!l.showNested,D})}o.update(Ne(y).call(y,l)),l.showNested?(x.removeClassName(n.dom.label,"collapsed"),x.addClassName(n.dom.label,"expanded")):(x.removeClassName(n.dom.label,"expanded"),x.addClassName(n.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(n){n.dom.label.classList.toggle("vis-group-is-dragging"),n.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(n){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(n),this.groupTouchParams.group&&(n.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(n){if(this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var s=this.groupsData.getDataSet(),o=this.groupFromTarget(n);if(o&&o.height!=this.groupTouchParams.group.height){var l=o.top<this.groupTouchParams.group.top,d=n.center?n.center.y:n.clientY,u=o.dom.foreground.getBoundingClientRect(),f=this.groupTouchParams.group.height;if(l){if(u.top+f<d)return}else{var p=o.height;if(u.top+p-f>d)return}}if(o&&o!=this.groupTouchParams.group){var m=s.get(o.groupId),y=s.get(this.groupTouchParams.group.groupId);y&&m&&(this.options.groupOrderSwap(y,m,s),s.update(y),s.update(m));var b=s.getIds({order:this.options.groupOrder});if(!x.equalArray(b,this.groupTouchParams.originalOrder))for(var E=this.groupTouchParams.originalOrder,w=this.groupTouchParams.group.groupId,S=Math.min(E.length,b.length),D=0,T=0,P=0;D<S;){for(;D+T<S&&D+P<S&&b[D+T]==E[D+P];)D++;if(D+T>=S)break;if(b[D+T]==w)T=1;else if(E[D+P]==w)P=1;else{var F=Se(b).call(b,E[D+P]),A=s.get(b[D+T]),V=s.get(E[D+P]);this.options.groupOrderSwap(A,V,s),s.update(A),s.update(V);var N=b[D+T];b[D+T]=E[D+P],b[F]=N,D++}}}}}},{key:"_onGroupDragEnd",value:function(n){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var s=this,o=s.groupTouchParams.group.groupId,l=s.groupsData.getDataSet(),d=x.extend({},l.get(o));s.options.onMoveGroup(d,function(u){if(u)u[l._idProp]=o,l.update(u);else{var f=l.getIds({order:s.options.groupOrder});if(!x.equalArray(f,s.groupTouchParams.originalOrder))for(var p=s.groupTouchParams.originalOrder,m=Math.min(p.length,f.length),y=0;y<m;){for(;y<m&&f[y]==p[y];)y++;if(y>=m)break;var b=Se(f).call(f,p[y]),E=l.get(f[y]),w=l.get(p[y]);s.options.groupOrderSwap(E,w,l),l.update(E),l.update(w);var S=f[y];f[y]=p[y],f[b]=S,y++}}}),s.body.emitter.emit("groupDragged",{groupId:o}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(n){if(this.options.selectable){var s=n.srcEvent&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey),o=n.srcEvent&&n.srcEvent.shiftKey;if(s||o){this._onMultiSelectItem(n);return}var l=this.getSelection(),d=this.itemFromTarget(n),u=d&&d.selectable?[d.id]:[];this.setSelection(u);var f=this.getSelection();(f.length>0||l.length>0)&&this.body.emitter.emit("select",{items:f,event:n})}}},{key:"_onMouseOver",value:function(n){var s=this.itemFromTarget(n);if(s){var o=this.itemFromRelatedTarget(n);if(s!==o){var l=s.getTitle();if(this.options.showTooltips&&l){this.popup==null&&(this.popup=new rz(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(l);var d=this.body.dom.centerContainer,u=d.getBoundingClientRect();this.popup.setPosition(n.clientX-u.left+d.offsetLeft,n.clientY-u.top+d.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:s.id,event:n})}}}},{key:"_onMouseOut",value:function(n){var s=this.itemFromTarget(n);if(s){var o=this.itemFromRelatedTarget(n);s!==o&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:s.id,event:n}))}}},{key:"_onMouseMove",value:function(n){var s=this.itemFromTarget(n);if(s&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var o=this.body.dom.centerContainer,l=o.getBoundingClientRect();this.popup.setPosition(n.clientX-l.left+o.offsetLeft,n.clientY-l.top+o.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(n){this.touchParams.itemIsDragging&&this._onDragEnd(n)}},{key:"_onUpdateItem",value:function(n){if(this.options.selectable&&!(!this.options.editable.updateTime&&!this.options.editable.updateGroup)){var s=this;if(n){var o=s.itemsData.get(n.id);this.options.onUpdate(o,function(l){l&&s.itemsData.update(l)})}}}},{key:"_onDropObjectOnItem",value:function(n){var s=this.itemFromTarget(n),o=JSON.parse(n.dataTransfer.getData("text"));this.options.onDropObjectOnItem(o,s)}},{key:"_onAddItem",value:function(n){if(this.options.selectable&&this.options.editable.add){var s=this,o=this.options.snap||null,l=this.dom.frame.getBoundingClientRect(),d=this.options.rtl?l.right-n.center.x:n.center.x-l.left,u=this.body.util.toTime(d),f=this.body.util.getScale(),p=this.body.util.getStep(),m,y;n.type=="drop"?(y=JSON.parse(n.dataTransfer.getData("text")),y.content=y.content?y.content:"new item",y.start=y.start?y.start:o?o(u,f,p):u,y.type=y.type||"box",y[this.itemsData.idProp]=y.id||Ei(),y.type=="range"&&!y.end&&(m=this.body.util.toTime(d+this.props.width/5),y.end=o?o(m,f,p):m)):(y={start:o?o(u,f,p):u,content:"new item"},y[this.itemsData.idProp]=Ei(),this.options.type==="range"&&(m=this.body.util.toTime(d+this.props.width/5),y.end=o?o(m,f,p):m));var b=this.groupFromTarget(n);b&&(y.group=b.groupId),y=this._cloneItemData(y),this.options.onAdd(y,function(E){E&&(s.itemsData.add(E),n.type=="drop"&&s.setSelection([E.id]))})}}},{key:"_onMultiSelectItem",value:function(n){var s=this;if(this.options.selectable){var o=this.itemFromTarget(n);if(o){var l=this.options.multiselect?this.getSelection():[],d=n.srcEvent&&n.srcEvent.shiftKey||!1;if((d||this.options.sequentialSelection)&&this.options.multiselect){var u=this.itemsData.get(o.id).group,f=void 0;this.options.multiselectPerGroup&&l.length>0&&(f=this.itemsData.get(l[0]).group),(!this.options.multiselectPerGroup||f==null||f==u)&&l.push(o.id);var p=t._getItemRange(this.itemsData.get(l));if(!this.options.multiselectPerGroup||f==u){l=[];for(var m in this.items)if(this.items.hasOwnProperty(m)){var y=this.items[m],b=y.data.start,E=y.data.end!==void 0?y.data.end:b;b>=p.min&&E<=p.max&&(!this.options.multiselectPerGroup||f==this.itemsData.get(y.id).group)&&!(y instanceof Fi)&&l.push(y.id)}}}else{var w=Se(l).call(l,o.id);w==-1?l.push(o.id):pt(l).call(l,w,1)}var S=J(l).call(l,function(D){return s.getItemById(D).selectable});this.setSelection(S),this.body.emitter.emit("select",{items:this.getSelection(),event:n})}}}},{key:"itemFromElement",value:function(n){for(var s=n;s;){if(s.hasOwnProperty("vis-item"))return s["vis-item"];s=s.parentNode}return null}},{key:"itemFromTarget",value:function(n){return this.itemFromElement(n.target)}},{key:"itemFromRelatedTarget",value:function(n){return this.itemFromElement(n.relatedTarget)}},{key:"groupFromTarget",value:function(n){var s=n.center?n.center.y:n.clientY,o=this.groupIds;o.length<=0&&this.groupsData&&(o=this.groupsData.getIds({order:this.options.groupOrder}));for(var l=0;l<o.length;l++){var d=o[l],u=this.groups[d],f=u.dom.foreground,p=f.getBoundingClientRect();if(s>=p.top&&s<p.top+f.offsetHeight)return u;if(this.options.orientation.item==="top"){if(l===this.groupIds.length-1&&s>p.top)return u}else if(l===0&&s<p.top+f.offset)return u}return null}},{key:"_cloneItemData",value:function(n,s){var o=x.extend({},n);return s||(s=this.itemsData.type),o.start!=null&&(o.start=x.convert(o.start,s&&s.start||"Date")),o.end!=null&&(o.end=x.convert(o.end,s&&s.end||"Date")),o}},{key:"_clusterItems",value:function(){if(this.options.cluster){var n=this.body.range.conversion(this.body.domProps.center.width),s=n.scale,o=this.clusterGenerator.getClusters(this.clusters,s,this.options.cluster);if(this.clusters!=o){if(this._detachAllClusters(),o){var l=pi(o),d;try{for(l.s();!(d=l.n()).done;){var u=d.value;u.attach()}}catch(f){l.e(f)}finally{l.f()}this.clusters=o}this._updateClusters(o)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var n=pi(this.clusters),s;try{for(n.s();!(s=n.n()).done;){var o=s.value;o.detach()}}catch(l){n.e(l)}finally{n.f()}}}},{key:"_updateClusters",value:function(n){if(this.clusters&&this.clusters.length){var s,o=new ei(ye(n).call(n,function(w){return w.id})),l=J(s=this.clusters).call(s,function(w){return!o.has(w.id)}),d=!1,u=pi(l),f;try{for(u.s();!(f=u.n()).done;){var p,m=f.value,y=Se(p=this.selection).call(p,m.id);if(y!==-1){var b;m.unselect(),pt(b=this.selection).call(b,y,1),d=!0}}}catch(w){u.e(w)}finally{u.f()}if(d){var E=this.getSelection();this.body.emitter.emit("select",{items:E,event})}}this.clusters=n||[]}}],[{key:"_getItemRange",value:function(n){var s=null,o=null;return B(n).call(n,function(l){(o==null||l.start<o)&&(o=l.start),l.end!=null?(s==null||l.end>s)&&(s=l.end):(s==null||l.start>s)&&(s=l.start)}),{min:o,max:s}}},{key:"itemSetFromTarget",value:function(n){for(var s=n.target;s;){if(s.hasOwnProperty("vis-itemset"))return s["vis-itemset"];s=s.parentNode}return null}}]),t}(li);fo.types={background:Fi,box:UG,range:Oi,point:KG};fo.prototype._onAdd=fo.prototype._onUpdate;var ea=!1,Zp,vo="background: #FFeeee; color: #dd0000",Cb=function(){function e(){ue(this,e)}return ce(e,null,[{key:"validate",value:function(t,a,n){ea=!1,Zp=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(t,s,[]),ea}},{key:"parse",value:function(t,a,n){for(var s in t)t.hasOwnProperty(s)&&e.check(s,t,a,n)}},{key:"check",value:function(t,a,n,s){if(n[t]===void 0&&n.__any__===void 0){e.getSuggestion(t,n,s);return}var o=t,l=!0;n[t]===void 0&&n.__any__!==void 0&&(o="__any__",l=e.getType(a[t])==="object");var d=n[o];l&&d.__type__!==void 0&&(d=d.__type__),e.checkFields(t,a,n,o,d,s)}},{key:"checkFields",value:function(t,a,n,s,o,l){var d=function(m){console.log("%c"+m+e.printLocation(l,t),vo)},u=e.getType(a[t]),f=o[u];f!==void 0?e.getType(f)==="array"&&Se(f).call(f,a[t])===-1?(d('Invalid option detected in "'+t+'". Allowed values are:'+e.print(f)+' not "'+a[t]+'". '),ea=!0):u==="object"&&s!=="__any__"&&(l=x.copyAndExtendArray(l,t),e.parse(a[t],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+t+'". Expected: '+e.print(Ze(o))+". Received ["+u+'] "'+a[t]+'"'),ea=!0)}},{key:"getType",value:function(t){var a=ee(t);return a==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":re(t)?"array":t instanceof Date?"date":t.nodeType!==void 0?"dom":t._isAMomentObject===!0?"moment":"object":a==="number"?"number":a==="boolean"?"boolean":a==="string"?"string":a===void 0?"undefined":a}},{key:"getSuggestion",value:function(t,a,n){var s=e.findInOptions(t,a,n,!1),o=e.findInOptions(t,Zp,[],!0),l=8,d=4,u;s.indexMatch!==void 0?u=" in "+e.printLocation(s.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+`"?
|
884
880
|
|
885
|
-
`:o.distance<=d&&s.distance>o.distance?
|
881
|
+
`:o.distance<=d&&s.distance>o.distance?u=" in "+e.printLocation(s.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""):s.distance<=l?u='. Did you mean "'+s.closestMatch+'"?'+e.printLocation(s.path,t):u=". Did you mean one of these: "+e.print(Ze(a))+e.printLocation(n,t),console.log('%cUnknown option detected: "'+t+'"'+u,vo),ea=!0}},{key:"findInOptions",value:function(t,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],u=t.toLowerCase(),f=void 0;for(var p in a){var m=void 0;if(a[p].__type__!==void 0&&s===!0){var y=e.findInOptions(t,a[p],x.copyAndExtendArray(n,p));o>y.distance&&(l=y.closestMatch,d=y.path,o=y.distance,f=y.indexMatch)}else{var b;Se(b=p.toLowerCase()).call(b,u)!==-1&&(f=p),m=e.levenshteinDistance(t,p),o>m&&(l=p,d=x.copyArray(n),o=m)}}return{closestMatch:l,path:d,distance:o,indexMatch:f}}},{key:"printLocation",value:function(t,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
886
882
|
`,s=`
|
887
883
|
|
888
884
|
`+n+`options = {
|
889
|
-
`,o=0;o<
|
890
|
-
`}for(var d=0;d<
|
891
|
-
`;for(var
|
885
|
+
`,o=0;o<t.length;o++){for(var l=0;l<o+1;l++)s+=" ";s+=t[o]+`: {
|
886
|
+
`}for(var d=0;d<t.length+1;d++)s+=" ";s+=a+`
|
887
|
+
`;for(var u=0;u<t.length+1;u++){for(var f=0;f<t.length-u;f++)s+=" ";s+=`}
|
892
888
|
`}return s+`
|
893
889
|
|
894
|
-
`}},{key:"print",value:function(r){return Ft(r).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(r,a){if(r.length===0)return a.length;if(a.length===0)return r.length;var n=[],s;for(s=0;s<=a.length;s++)n[s]=[s];var o;for(o=0;o<=r.length;o++)n[0][o]=o;for(s=1;s<=a.length;s++)for(o=1;o<=r.length;o++)a.charAt(s-1)==r.charAt(o-1)?n[s][o]=n[s-1][o-1]:n[s][o]=Math.min(n[s-1][o-1]+1,Math.min(n[s][o-1]+1,n[s-1][o]+1));return n[a.length][r.length]}}]),e}(),le="string",oe="boolean",Pe="number",Xy="array",Hi="date",Qe="object",TJ="dom",Wi="moment",Qy="any",$J={configure:{enabled:{boolean:oe},filter:{boolean:oe,function:"function"},container:{dom:TJ},__type__:{object:Qe,boolean:oe,function:"function"}},align:{string:le},alignCurrentTime:{string:le,undefined:"undefined"},rtl:{boolean:oe,undefined:"undefined"},rollingMode:{follow:{boolean:oe},offset:{number:Pe,undefined:"undefined"},__type__:{object:Qe}},onTimeout:{timeoutMs:{number:Pe},callback:{function:"function"},__type__:{object:Qe}},verticalScroll:{boolean:oe,undefined:"undefined"},horizontalScroll:{boolean:oe,undefined:"undefined"},autoResize:{boolean:oe},throttleRedraw:{number:Pe},clickToUse:{boolean:oe},dataAttributes:{string:le,array:Xy},editable:{add:{boolean:oe,undefined:"undefined"},remove:{boolean:oe,undefined:"undefined"},updateGroup:{boolean:oe,undefined:"undefined"},updateTime:{boolean:oe,undefined:"undefined"},overrideItems:{boolean:oe,undefined:"undefined"},__type__:{boolean:oe,object:Qe}},end:{number:Pe,date:Hi,string:le,moment:Wi},format:{minorLabels:{millisecond:{string:le,undefined:"undefined"},second:{string:le,undefined:"undefined"},minute:{string:le,undefined:"undefined"},hour:{string:le,undefined:"undefined"},weekday:{string:le,undefined:"undefined"},day:{string:le,undefined:"undefined"},week:{string:le,undefined:"undefined"},month:{string:le,undefined:"undefined"},year:{string:le,undefined:"undefined"},__type__:{object:Qe,function:"function"}},majorLabels:{millisecond:{string:le,undefined:"undefined"},second:{string:le,undefined:"undefined"},minute:{string:le,undefined:"undefined"},hour:{string:le,undefined:"undefined"},weekday:{string:le,undefined:"undefined"},day:{string:le,undefined:"undefined"},week:{string:le,undefined:"undefined"},month:{string:le,undefined:"undefined"},year:{string:le,undefined:"undefined"},__type__:{object:Qe,function:"function"}},__type__:{object:Qe}},moment:{function:"function"},groupHeightMode:{string:le},groupOrder:{string:le,function:"function"},groupEditable:{add:{boolean:oe,undefined:"undefined"},remove:{boolean:oe,undefined:"undefined"},order:{boolean:oe,undefined:"undefined"},__type__:{boolean:oe,object:Qe}},groupOrderSwap:{function:"function"},height:{string:le,number:Pe},hiddenDates:{start:{date:Hi,number:Pe,string:le,moment:Wi},end:{date:Hi,number:Pe,string:le,moment:Wi},repeat:{string:le},__type__:{object:Qe,array:Xy}},itemsAlwaysDraggable:{item:{boolean:oe,undefined:"undefined"},range:{boolean:oe,undefined:"undefined"},__type__:{boolean:oe,object:Qe}},limitSize:{boolean:oe},locale:{string:le},locales:{__any__:{any:Qy},__type__:{object:Qe}},longSelectPressTime:{number:Pe},margin:{axis:{number:Pe},item:{horizontal:{number:Pe,undefined:"undefined"},vertical:{number:Pe,undefined:"undefined"},__type__:{object:Qe,number:Pe}},__type__:{object:Qe,number:Pe}},max:{date:Hi,number:Pe,string:le,moment:Wi},maxHeight:{number:Pe,string:le},maxMinorChars:{number:Pe},min:{date:Hi,number:Pe,string:le,moment:Wi},minHeight:{number:Pe,string:le},moveable:{boolean:oe},multiselect:{boolean:oe},multiselectPerGroup:{boolean:oe},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:le,undefined:"undefined"},item:{string:le,undefined:"undefined"},__type__:{string:le,object:Qe}},selectable:{boolean:oe},sequentialSelection:{boolean:oe},showCurrentTime:{boolean:oe},showMajorLabels:{boolean:oe},showMinorLabels:{boolean:oe},showWeekScale:{boolean:oe},stack:{boolean:oe},stackSubgroups:{boolean:oe},cluster:{maxItems:{number:Pe,undefined:"undefined"},titleTemplate:{string:le,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:oe,undefined:"undefined"},fitOnDoubleClick:{boolean:oe,undefined:"undefined"},__type__:{boolean:oe,object:Qe}},snap:{function:"function",null:"null"},start:{date:Hi,number:Pe,string:le,moment:Wi},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:le,function:"function"},showTooltips:{boolean:oe},tooltip:{followMouse:{boolean:oe},overflowMethod:{string:["cap","flip","none"]},delay:{number:Pe},template:{function:"function"},__type__:{object:Qe}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:oe,object:Qe}},timeAxis:{scale:{string:le,undefined:"undefined"},step:{number:Pe,undefined:"undefined"},__type__:{object:Qe}},type:{string:le},width:{string:le,number:Pe},preferZoom:{boolean:oe},zoomable:{boolean:oe},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Pe},zoomMax:{number:Pe},zoomMin:{number:Pe},xss:{disabled:{boolean:oe},filterOptions:{__any__:{any:Qy},__type__:{object:Qe}},__type__:{object:Qe}},__type__:{object:Qe}},DJ={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}},NJ={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},CJ=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;fe(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return pe(e,[{key:"insertTo",value:function(r){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=r,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(r){if(typeof r=="function")this.updateCallback=r;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(r){if(typeof r=="function")this.closeCallback=r;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(r){if(typeof r=="string")return NJ[r]}},{key:"setColor",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(r!=="none"){var n,s=this._isColorString(r);if(s!==void 0&&(r=s),x.isString(r)===!0){if(x.isValidRGB(r)===!0){var o=r.substr(4).substr(0,r.length-5).split(",");n={r:o[0],g:o[1],b:o[2],a:1}}else if(x.isValidRGBA(r)===!0){var l=r.substr(5).substr(0,r.length-6).split(",");n={r:l[0],g:l[1],b:l[2],a:l[3]}}else if(x.isValidHex(r)===!0){var d=x.hexToRGB(r);n={r:d.r,g:d.g,b:d.b,a:1}}}else if(r instanceof Object&&r.r!==void 0&&r.g!==void 0&&r.b!==void 0){var c=r.a!==void 0?r.a:"1.0";n={r:r.r,g:r.g,b:r.b,a:c}}if(n===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Ft(r));this._setColor(n,a)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;a===!0&&(this.previousColor=x.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",_t(function(){r.closeCallback!==void 0&&(r.closeCallback(),r.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a===!0&&(this.initialColor=x.extend({},r)),this.color=r;var n=x.RGBToHSV(r.r,r.g,r.b),s=2*Math.PI,o=this.r*n.s,l=this.centerCoordinates.x+o*Math.sin(s*n.h),d=this.centerCoordinates.y+o*Math.cos(s*n.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=d-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(r)}},{key:"_setOpacity",value:function(r){this.color.a=r/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(r){var a=x.RGBToHSV(this.color.r,this.color.g,this.color.b);a.v=r/100;var n=x.HSVToRGB(a.h,a.s,a.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,a=x.RGBToHSV(r.r,r.g,r.b),n=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var s=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,s,o),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-a.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),uw(n).call(n),this.brightnessRange.value=100*a.v,this.opacityRange.value=100*r.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var r,a,n,s;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var l=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=P(r=this._hide).call(r,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=P(a=this._apply).call(a,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=P(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=P(s=this._loadLast).call(s,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var r=this;this.drag={},this.pinch={},this.hammer=new kt(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),p1(this.hammer,function(a){r._moveSelector(a)}),this.hammer.on("tap",function(a){r._moveSelector(a)}),this.hammer.on("panstart",function(a){r._moveSelector(a)}),this.hammer.on("panmove",function(a){r._moveSelector(a)}),this.hammer.on("panend",function(a){r._moveSelector(a)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,a,n);var s,o,l,d;this.centerCoordinates={x:a*.5,y:n*.5},this.r=.49*a;var c=2*Math.PI/360,f=1/360,v=1/this.r,m;for(l=0;l<360;l++)for(d=0;d<this.r;d++)s=this.centerCoordinates.x+d*Math.sin(c*l),o=this.centerCoordinates.y+d*Math.cos(c*l),m=x.HSVToRGB(l*f,d*v,1),r.fillStyle="rgb("+m.r+","+m.g+","+m.b+")",r.fillRect(s-.5,o-.5,2,2);r.strokeStyle="rgba(0,0,0,1)",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),r.stroke(),this.hueCircle=r.getImageData(0,0,a,n)}this.generated=!0}},{key:"_moveSelector",value:function(r){var a=this.colorPickerDiv.getBoundingClientRect(),n=r.center.x-a.left,s=r.center.y-a.top,o=.5*this.colorPickerDiv.clientHeight,l=.5*this.colorPickerDiv.clientWidth,d=n-l,c=s-o,f=Math.atan2(d,c),v=.98*Math.min(Math.sqrt(d*d+c*c),l),m=Math.cos(f)*v+o,g=Math.sin(f)*v+l;this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=g-.5*this.colorPickerSelector.clientWidth+"px";var b=f/(2*Math.PI);b=b<0?b+1:b;var S=v/this.r,w=x.RGBToHSV(this.color.r,this.color.g,this.color.b);w.h=b,w.s=S;var k=x.HSVToRGB(w.h,w.s,w.v);k.a=this.color.a,this.color=k,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}(),OJ=`div.vis-configuration {
|
890
|
+
`}},{key:"print",value:function(t){return Dt(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,a){if(t.length===0)return a.length;if(a.length===0)return t.length;var n=[],s;for(s=0;s<=a.length;s++)n[s]=[s];var o;for(o=0;o<=t.length;o++)n[0][o]=o;for(s=1;s<=a.length;s++)for(o=1;o<=t.length;o++)a.charAt(s-1)==t.charAt(o-1)?n[s][o]=n[s-1][o-1]:n[s][o]=Math.min(n[s-1][o-1]+1,Math.min(n[s][o-1]+1,n[s-1][o]+1));return n[a.length][t.length]}}]),e}(),ae="string",ne="boolean",Te="number",Qp="array",Ji="date",ze="object",Nz="dom",en="moment",Jp="any",Cz={configure:{enabled:{boolean:ne},filter:{boolean:ne,function:"function"},container:{dom:Nz},__type__:{object:ze,boolean:ne,function:"function"}},align:{string:ae},alignCurrentTime:{string:ae,undefined:"undefined"},rtl:{boolean:ne,undefined:"undefined"},rollingMode:{follow:{boolean:ne},offset:{number:Te,undefined:"undefined"},__type__:{object:ze}},onTimeout:{timeoutMs:{number:Te},callback:{function:"function"},__type__:{object:ze}},verticalScroll:{boolean:ne,undefined:"undefined"},horizontalScroll:{boolean:ne,undefined:"undefined"},autoResize:{boolean:ne},throttleRedraw:{number:Te},clickToUse:{boolean:ne},dataAttributes:{string:ae,array:Qp},editable:{add:{boolean:ne,undefined:"undefined"},remove:{boolean:ne,undefined:"undefined"},updateGroup:{boolean:ne,undefined:"undefined"},updateTime:{boolean:ne,undefined:"undefined"},overrideItems:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:ze}},end:{number:Te,date:Ji,string:ae,moment:en},format:{minorLabels:{millisecond:{string:ae,undefined:"undefined"},second:{string:ae,undefined:"undefined"},minute:{string:ae,undefined:"undefined"},hour:{string:ae,undefined:"undefined"},weekday:{string:ae,undefined:"undefined"},day:{string:ae,undefined:"undefined"},week:{string:ae,undefined:"undefined"},month:{string:ae,undefined:"undefined"},year:{string:ae,undefined:"undefined"},__type__:{object:ze,function:"function"}},majorLabels:{millisecond:{string:ae,undefined:"undefined"},second:{string:ae,undefined:"undefined"},minute:{string:ae,undefined:"undefined"},hour:{string:ae,undefined:"undefined"},weekday:{string:ae,undefined:"undefined"},day:{string:ae,undefined:"undefined"},week:{string:ae,undefined:"undefined"},month:{string:ae,undefined:"undefined"},year:{string:ae,undefined:"undefined"},__type__:{object:ze,function:"function"}},__type__:{object:ze}},moment:{function:"function"},groupHeightMode:{string:ae},groupOrder:{string:ae,function:"function"},groupEditable:{add:{boolean:ne,undefined:"undefined"},remove:{boolean:ne,undefined:"undefined"},order:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:ze}},groupOrderSwap:{function:"function"},height:{string:ae,number:Te},hiddenDates:{start:{date:Ji,number:Te,string:ae,moment:en},end:{date:Ji,number:Te,string:ae,moment:en},repeat:{string:ae},__type__:{object:ze,array:Qp}},itemsAlwaysDraggable:{item:{boolean:ne,undefined:"undefined"},range:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:ze}},limitSize:{boolean:ne},locale:{string:ae},locales:{__any__:{any:Jp},__type__:{object:ze}},longSelectPressTime:{number:Te},margin:{axis:{number:Te},item:{horizontal:{number:Te,undefined:"undefined"},vertical:{number:Te,undefined:"undefined"},__type__:{object:ze,number:Te}},__type__:{object:ze,number:Te}},max:{date:Ji,number:Te,string:ae,moment:en},maxHeight:{number:Te,string:ae},maxMinorChars:{number:Te},min:{date:Ji,number:Te,string:ae,moment:en},minHeight:{number:Te,string:ae},moveable:{boolean:ne},multiselect:{boolean:ne},multiselectPerGroup:{boolean:ne},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:ae,undefined:"undefined"},item:{string:ae,undefined:"undefined"},__type__:{string:ae,object:ze}},selectable:{boolean:ne},sequentialSelection:{boolean:ne},showCurrentTime:{boolean:ne},showMajorLabels:{boolean:ne},showMinorLabels:{boolean:ne},showWeekScale:{boolean:ne},stack:{boolean:ne},stackSubgroups:{boolean:ne},cluster:{maxItems:{number:Te,undefined:"undefined"},titleTemplate:{string:ae,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:ne,undefined:"undefined"},fitOnDoubleClick:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:ze}},snap:{function:"function",null:"null"},start:{date:Ji,number:Te,string:ae,moment:en},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:ae,function:"function"},showTooltips:{boolean:ne},tooltip:{followMouse:{boolean:ne},overflowMethod:{string:["cap","flip","none"]},delay:{number:Te},template:{function:"function"},__type__:{object:ze}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:ne,object:ze}},timeAxis:{scale:{string:ae,undefined:"undefined"},step:{number:Te,undefined:"undefined"},__type__:{object:ze}},type:{string:ae},width:{string:ae,number:Te},preferZoom:{boolean:ne},zoomable:{boolean:ne},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Te},zoomMax:{number:Te},zoomMin:{number:Te},xss:{disabled:{boolean:ne},filterOptions:{__any__:{any:Jp},__type__:{object:ze}},__type__:{object:ze}},__type__:{object:ze}},Oz={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}},Pz={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},Iz=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;ue(this,e),this.pixelRatio=r,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return ce(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return Pz[t]}},{key:"setColor",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var n,s=this._isColorString(t);if(s!==void 0&&(t=s),x.isString(t)===!0){if(x.isValidRGB(t)===!0){var o=t.substr(4).substr(0,t.length-5).split(",");n={r:o[0],g:o[1],b:o[2],a:1}}else if(x.isValidRGBA(t)===!0){var l=t.substr(5).substr(0,t.length-6).split(",");n={r:l[0],g:l[1],b:l[2],a:l[3]}}else if(x.isValidHex(t)===!0){var d=x.hexToRGB(t);n={r:d.r,g:d.g,b:d.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var u=t.a!==void 0?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:u}}if(n===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Dt(t));this._setColor(n,a)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;a===!0&&(this.previousColor=x.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",ct(function(){t.closeCallback!==void 0&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a===!0&&(this.initialColor=x.extend({},t)),this.color=t;var n=x.RGBToHSV(t.r,t.g,t.b),s=2*Math.PI,o=this.r*n.s,l=this.centerCoordinates.x+o*Math.sin(s*n.h),d=this.centerCoordinates.y+o*Math.cos(s*n.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=d-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var a=x.RGBToHSV(this.color.r,this.color.g,this.color.b);a.v=t/100;var n=x.HSVToRGB(a.h,a.s,a.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,a=x.RGBToHSV(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var s=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,s,o),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-a.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fy(n).call(n),this.brightnessRange.value=100*a.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,a,n,s;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var l=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=O(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=O(a=this._apply).call(a,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=O(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=O(s=this._loadLast).call(s,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new vt(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),mb(this.hammer,function(a){t._moveSelector(a)}),this.hammer.on("tap",function(a){t._moveSelector(a)}),this.hammer.on("panstart",function(a){t._moveSelector(a)}),this.hammer.on("panmove",function(a){t._moveSelector(a)}),this.hammer.on("panend",function(a){t._moveSelector(a)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,a,n);var s,o,l,d;this.centerCoordinates={x:a*.5,y:n*.5},this.r=.49*a;var u=2*Math.PI/360,f=1/360,p=1/this.r,m;for(l=0;l<360;l++)for(d=0;d<this.r;d++)s=this.centerCoordinates.x+d*Math.sin(u*l),o=this.centerCoordinates.y+d*Math.cos(u*l),m=x.HSVToRGB(l*f,d*p,1),t.fillStyle="rgb("+m.r+","+m.g+","+m.b+")",t.fillRect(s-.5,o-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,a,n)}this.generated=!0}},{key:"_moveSelector",value:function(t){var a=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-a.left,s=t.center.y-a.top,o=.5*this.colorPickerDiv.clientHeight,l=.5*this.colorPickerDiv.clientWidth,d=n-l,u=s-o,f=Math.atan2(d,u),p=.98*Math.min(Math.sqrt(d*d+u*u),l),m=Math.cos(f)*p+o,y=Math.sin(f)*p+l;this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=y-.5*this.colorPickerSelector.clientWidth+"px";var b=f/(2*Math.PI);b=b<0?b+1:b;var E=p/this.r,w=x.RGBToHSV(this.color.r,this.color.g,this.color.b);w.h=b,w.s=E;var S=x.HSVToRGB(w.h,w.s,w.v);S.a=this.color.a,this.color=S,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}(),Mz=`div.vis-configuration {
|
895
891
|
position:relative;
|
896
892
|
display:block;
|
897
893
|
float:left;
|
@@ -1178,7 +1174,7 @@ input.vis-configuration.vis-config-range:focus::-ms-fill-upper {
|
|
1178
1174
|
border-left-color: #f2faff;
|
1179
1175
|
border-width: 12px;
|
1180
1176
|
margin-top: -12px;
|
1181
|
-
}`;Pt(OJ);var N1=function(){function e(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;fe(this,e),this.parent=t,this.changedOptions=[],this.container=r,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},x.extend(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new CJ(n),this.wrapper=void 0}return pe(e,[{key:"setOptions",value:function(r){if(r!==void 0){this.popupHistory={},this._removePopup();var a=!0;if(typeof r=="string")this.options.filter=r;else if(ae(r))this.options.filter=r.join();else if(ne(r)==="object"){if(r==null)throw new TypeError("options cannot be null");r.container!==void 0&&(this.options.container=r.container),te(r)!==void 0&&(this.options.filter=te(r)),r.showButton!==void 0&&(this.options.showButton=r.showButton),r.enabled!==void 0&&(a=r.enabled)}else typeof r=="boolean"?(this.options.filter=!0,a=r):typeof r=="function"&&(this.options.filter=r,a=!0);te(this.options)===!1&&(a=!1),this.options.enabled=a}this._clean()}},{key:"setModuleOptions",value:function(r){this.moduleOptions=r,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var r=te(this.options),a=0,n=!1;for(var s in this.configureOptions)this.configureOptions.hasOwnProperty(s)&&(this.allowCreation=!1,n=!1,typeof r=="function"?(n=r(s,[]),n=n||this._handleObject(this.configureOptions[s],[s],!0)):(r===!0||Ce(r).call(r,s)!==-1)&&(n=!0),n!==!1&&(this.allowCreation=!0,a>0&&this._makeItem([]),this._makeHeader(s),this._handleObject(this.configureOptions[s],[s])),a++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var r=0;r<this.domElements.length;r++)this.wrapper.appendChild(this.domElements[r]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var r=0;r<this.domElements.length;r++)this.wrapper.removeChild(this.domElements[r]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(r){for(var a=this.moduleOptions,n=0;n<r.length;n++)if(a[r[n]]!==void 0)a=a[r[n]];else{a=void 0;break}return a}},{key:"_makeItem",value:function(r){if(this.allowCreation===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-item vis-config-s"+r.length;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return G(s).call(s,function(l){a.appendChild(l)}),this.domElements.push(a),this.domElements.length}return 0}},{key:"_makeHeader",value:function(r){var a=document.createElement("div");a.className="vis-configuration vis-config-header",a.innerHTML=x.xss(r),this._makeItem([],a)}},{key:"_makeLabel",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=document.createElement("div");return s.className="vis-configuration vis-config-label vis-config-s"+a.length,n===!0?s.innerHTML=x.xss("<i><b>"+r+":</b></i>"):s.innerHTML=x.xss(r+":"),s}},{key:"_makeDropdown",value:function(r,a,n){var s=document.createElement("select");s.className="vis-configuration vis-config-select";var o=0;a!==void 0&&Ce(r).call(r,a)!==-1&&(o=Ce(r).call(r,a));for(var l=0;l<r.length;l++){var d=document.createElement("option");d.value=r[l],l===o&&(d.selected="selected"),d.innerHTML=r[l],s.appendChild(d)}var c=this;s.onchange=function(){c._update(this.value,n)};var f=this._makeLabel(n[n.length-1],n);this._makeItem(n,f,s)}},{key:"_makeRange",value:function(r,a,n){var s=r[0],o=r[1],l=r[2],d=r[3],c=document.createElement("input");c.className="vis-configuration vis-config-range";try{c.type="range",c.min=o,c.max=l}catch{}c.step=d;var f="",v=0;if(a!==void 0){var m=1.2;a<0&&a*m<o?(c.min=Math.ceil(a*m),v=c.min,f="range increased"):a/m<o&&(c.min=Math.ceil(a/m),v=c.min,f="range increased"),a*m>l&&l!==1&&(c.max=Math.ceil(a*m),v=c.max,f="range increased"),c.value=a}else c.value=s;var g=document.createElement("input");g.className="vis-configuration vis-config-rangeinput",g.value=Number(c.value);var b=this;c.onchange=function(){g.value=this.value,b._update(Number(this.value),n)},c.oninput=function(){g.value=this.value};var S=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,S,c,g);f!==""&&this.popupHistory[w]!==v&&(this.popupHistory[w]=v,this._setupPopup(f,w))}},{key:"_makeButton",value:function(){var r=this;if(this.options.showButton===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-button",a.innerHTML="generate options",a.onclick=function(){r._printOptions()},a.onmouseover=function(){a.className="vis-configuration vis-config-button hover"},a.onmouseout=function(){a.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(a)}}},{key:"_setupPopup",value:function(r,a){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var s=document.createElement("div");s.id="vis-configuration-popup",s.className="vis-configuration-popup",s.innerHTML=x.xss(r),s.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:s,index:a}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var r=this;if(this.popupDiv.html!==void 0){var a=this.domElements[this.popupDiv.index],n=a.getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=_t(function(){r.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=_t(function(){r._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(r,a,n){var s=document.createElement("input");s.type="checkbox",s.className="vis-configuration vis-config-checkbox",s.checked=r,a!==void 0&&(s.checked=a,a!==r&&(ne(r)==="object"?a!==r.enabled&&this.changedOptions.push({path:n,value:a}):this.changedOptions.push({path:n,value:a})));var o=this;s.onchange=function(){o._update(this.checked,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeTextInput",value:function(r,a,n){var s=document.createElement("input");s.type="text",s.className="vis-configuration vis-config-text",s.value=a,a!==r&&this.changedOptions.push({path:n,value:a});var o=this;s.onchange=function(){o._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeColorField",value:function(r,a,n){var s=this,o=r[1],l=document.createElement("div");a=a===void 0?o:a,a!=="none"?(l.className="vis-configuration vis-config-colorBlock",l.style.backgroundColor=a):l.className="vis-configuration vis-config-colorBlock none",a=a===void 0?o:a,l.onclick=function(){s._showColorPicker(a,l,n)};var d=this._makeLabel(n[n.length-1],n);this._makeItem(n,d,l)}},{key:"_showColorPicker",value:function(r,a,n){var s=this;a.onclick=function(){},this.colorPicker.insertTo(a),this.colorPicker.show(),this.colorPicker.setColor(r),this.colorPicker.setUpdateCallback(function(o){var l="rgba("+o.r+","+o.g+","+o.b+","+o.a+")";a.style.backgroundColor=l,s._update(l,n)}),this.colorPicker.setCloseCallback(function(){a.onclick=function(){s._showColorPicker(r,a,n)}})}},{key:"_handleObject",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=!1,o=te(this.options),l=!1;for(var d in r)if(r.hasOwnProperty(d)){s=!0;var c=r[d],f=x.copyAndExtendArray(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!ae(c)&&typeof c!="string"&&typeof c!="boolean"&&c instanceof Object&&(this.allowCreation=!1,s=this._handleObject(c,f,!0),this.allowCreation=n===!1)),s!==!1){l=!0;var v=this._getValue(f);if(ae(c))this._handleArray(c,v,f);else if(typeof c=="string")this._makeTextInput(c,v,f);else if(typeof c=="boolean")this._makeCheckbox(c,v,f);else if(c instanceof Object){var m=!0;if(Ce(a).call(a,"physics")!==-1&&this.moduleOptions.physics.solver!==d&&(m=!1),m===!0)if(c.enabled!==void 0){var g=x.copyAndExtendArray(f,"enabled"),b=this._getValue(g);if(b===!0){var S=this._makeLabel(d,f,!0);this._makeItem(f,S),l=this._handleObject(c,f)||l}else this._makeCheckbox(c,b,f)}else{var w=this._makeLabel(d,f,!0);this._makeItem(f,w),l=this._handleObject(c,f)||l}}else console.error("dont know how to handle",c,d,f)}}return l}},{key:"_handleArray",value:function(r,a,n){typeof r[0]=="string"&&r[0]==="color"?(this._makeColorField(r,a,n),r[1]!==a&&this.changedOptions.push({path:n,value:a})):typeof r[0]=="string"?(this._makeDropdown(r,a,n),r[0]!==a&&this.changedOptions.push({path:n,value:a})):typeof r[0]=="number"&&(this._makeRange(r,a,n),r[0]!==a&&this.changedOptions.push({path:n,value:Number(a)}))}},{key:"_update",value:function(r,a){var n=this._constructOptions(r,a);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n;r=r==="true"?!0:r,r=r==="false"?!1:r;for(var o=0;o<a.length;o++)a[o]!=="global"&&(s[a[o]]===void 0&&(s[a[o]]={}),o!==a.length-1?s=s[a[o]]:s[a[o]]=r);return n}},{key:"_printOptions",value:function(){var r=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+Ft(r,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var r={},a=0;a<this.changedOptions.length;a++)this._constructOptions(this.changedOptions[a].value,this.changedOptions[a].path,r);return r}}]),e}();function AJ(e){var t=IJ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function IJ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var PJ=function(e){It(r,e);var t=AJ(r);function r(a,n,s,o){var l,d,c,f,v,m,g,b;if(fe(this,r),b=t.call(this),b.initTime=new Date,b.itemsDone=!1,!(Ne(b)instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!(ae(s)||on(s))&&s instanceof Object){var S=o;o=s,s=S}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var w=Ne(b);if(b.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Tt},b.options=x.deepExtend({},b.defaultOptions),o&&x.setupXSSProtection(o.xss),b._create(a),!o||o&&typeof o.rtl>"u"){b.dom.root.style.visibility="hidden";for(var k,T=b.dom.root;!k&&T;)k=window.getComputedStyle(T,null).direction,T=T.parentElement;b.options.rtl=k&&k.toLowerCase()=="rtl"}else b.options.rtl=o.rtl;o&&(o.rollingMode&&(b.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(b.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(b.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(b.options.loadingScreenTemplate=o.loadingScreenTemplate));var D=document.createElement("div");if(b.options.loadingScreenTemplate){var N,L=P(N=b.options.loadingScreenTemplate).call(N,Ne(b)),A=L(b.dom.loadingScreen);A instanceof Object&&!(A instanceof Element)?L(D):A instanceof Element?(D.innerHTML="",D.appendChild(A)):A!=null&&(D.innerHTML=x.xss(A))}b.dom.loadingScreen.appendChild(D),b.components=[],b.body={dom:b.dom,domProps:b.props,emitter:{on:P(l=b.on).call(l,Ne(b)),off:P(d=b.off).call(d,Ne(b)),emit:P(c=b.emit).call(c,Ne(b))},hiddenDates:[],util:{getScale:function(){return w.timeAxis.step.scale},getStep:function(){return w.timeAxis.step.step},toScreen:P(f=w._toScreen).call(f,w),toGlobalScreen:P(v=w._toGlobalScreen).call(v,w),toTime:P(m=w._toTime).call(m,w),toGlobalTime:P(g=w._toGlobalTime).call(g,w)}},b.range=new f1(b.body,b.options),b.components.push(b.range),b.body.range=b.range,b.timeAxis=new Rl(b.body,b.options),b.timeAxis2=null,b.components.push(b.timeAxis),b.currentTime=new S1(b.body,b.options),b.components.push(b.currentTime),b.itemSet=new Ll(b.body,b.options),b.components.push(b.itemSet),b.itemsData=null,b.groupsData=null;function R(C,j){w.hasListeners(C)&&w.emit(C,w.getEventProperties(j))}return b.dom.root.onclick=function(C){R("click",C)},b.dom.root.ondblclick=function(C){R("doubleClick",C)},b.dom.root.oncontextmenu=function(C){R("contextmenu",C)},b.dom.root.onmouseover=function(C){R("mouseOver",C)},window.PointerEvent?(b.dom.root.onpointerdown=function(C){R("mouseDown",C)},b.dom.root.onpointermove=function(C){R("mouseMove",C)},b.dom.root.onpointerup=function(C){R("mouseUp",C)}):(b.dom.root.onmousemove=function(C){R("mouseMove",C)},b.dom.root.onmousedown=function(C){R("mouseDown",C)},b.dom.root.onmouseup=function(C){R("mouseUp",C)}),b.initialFitDone=!1,b.on("changed",function(){if(w.itemsData!=null){if(!w.initialFitDone&&!w.options.rollingMode)if(w.initialFitDone=!0,w.options.start!=null||w.options.end!=null){if(w.options.start==null||w.options.end==null)var C=w.getItemRange();var j=w.options.start!=null?w.options.start:C.min,O=w.options.end!=null?w.options.end:C.max;w.setWindow(j,O,{animation:!1})}else w.fit({animation:!1});!w.initialDrawDone&&(w.initialRangeChangeDone||!w.options.start&&!w.options.end||w.options.rollingMode)&&(w.initialDrawDone=!0,w.itemSet.initialDrawDone=!0,w.dom.root.style.visibility="visible",w.dom.loadingScreen.parentNode.removeChild(w.dom.loadingScreen),w.options.onInitialDrawComplete&&_t(function(){return w.options.onInitialDrawComplete()},0))}}),b.on("destroyTimeline",function(){w.destroy()}),o&&b.setOptions(o),b.body.emitter.on("fit",function(C){b._onFit(C),b.redraw()}),s&&b.setGroups(s),n&&b.setItems(n),b._redraw(),b}return pe(r,[{key:"_createConfigurator",value:function(){return new N1(this,this.dom.container,DJ)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(n){var s=D1.validate(n,$J);if(s===!0&&console.log("%cErrors have been found in the supplied options object.",Vl),sa.prototype.setOptions.call(this,n),"type"in n&&n.type!==this.options.type){this.options.type=n.type;var o=this.itemsData;if(o){var l=this.getSelection();this.setItems(null),this.setItems(o.rawDS),this.setSelection(l)}}}},{key:"setItems",value:function(n){this.itemsDone=!1;var s;n?on(n)?s=ba(n):s=ba(new pi(n)):s=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=s,this.itemSet&&this.itemSet.setItems(s!=null?s.rawDS:null)}},{key:"setGroups",value:function(n){var s,o=function(d){return d.visible!==!1};n?(ae(n)&&(n=new pi(n)),s=new Oq(n,{filter:o})):s=null,this.groupsData!=null&&typeof this.groupsData.setData=="function"&&this.groupsData.setData(null),this.groupsData=s,this.itemSet.setGroups(s)}},{key:"setData",value:function(n){n&&n.groups&&this.setGroups(n.groups),n&&n.items&&this.setItems(n.items)}},{key:"setSelection",value:function(n,s){this.itemSet&&this.itemSet.setSelection(n),s&&s.focus&&this.focus(n,s)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(n,s){if(!(!this.itemsData||n==null)){var o=ae(n)?n:[n],l=this.itemsData.get(o),d=null,c=null;if(G(l).call(l,function(L){var A=L.start.valueOf(),R="end"in L?L.end.valueOf():L.start.valueOf();(d===null||A<d)&&(d=A),(c===null||R>c)&&(c=R)}),d!==null&&c!==null){var f=this,v=this.itemSet.items[o[0]],m=this._getScrollTop()*-1,g=null,b=function(A,R,C){var j=Zy(f,v);if(j!==!1&&(g||(g=j),!(g.itemTop==j.itemTop&&!g.shouldScroll))){g.itemTop!=j.itemTop&&j.shouldScroll&&(g=j,m=f._getScrollTop()*-1);var O=m,M=g.scrollOffset,H=C?M:O+(M-O)*A;f._setScrollTop(-H),R||f._redraw()}},S=function(){var A=Zy(f,v);A.shouldScroll&&A.itemTop!=g.itemTop&&(f._setScrollTop(-A.scrollOffset),f._redraw())},w=function(){S(),_t(S,100)},k=s&&s.zoom!==void 0?s.zoom:!0,T=(d+c)/2,D=k?(c-d)*1.1:Math.max(this.range.end-this.range.start,(c-d)*1.1),N=s&&s.animation!==void 0?s.animation:!0;N||(g={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(T-D/2,T+D/2,{animation:N},w,b)}}}},{key:"fit",value:function(n,s){var o=n&&n.animation!==void 0?n.animation:!0,l;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(l=this.getDataRange(),this.moveTo(l.min.valueOf(),{animation:o},s)):(l=this.getItemRange(),this.range.setRange(l.min,l.max,{animation:o},s))}},{key:"getItemRange",value:function(){var n=this,s=this.getDataRange(),o=s.min!==null?s.min.valueOf():null,l=s.max!==null?s.max.valueOf():null,d=null,c=null;if(o!=null&&l!=null){var f=l-o;f<=0&&(f=10);var v=f/this.props.center.width,m={},g=0;G(x).call(x,this.itemSet.items,function(N,L){if(N.groupShowing){var A=!0;m[L]=N.redraw(A),g=m[L].length}});var b=g>0;if(b)for(var S=function(L){G(x).call(x,m,function(A){A[L]()})},w=0;w<g;w++)S(w);if(G(x).call(x,this.itemSet.items,function(N){var L=Eu(N),A=Su(N),R,C;n.options.rtl?(R=L-(N.getWidthRight()+10)*v,C=A+(N.getWidthLeft()+10)*v):(R=L-(N.getWidthLeft()+10)*v,C=A+(N.getWidthRight()+10)*v),R<o&&(o=R,d=N),C>l&&(l=C,c=N)}),d&&c){var k=d.getWidthLeft()+10,T=c.getWidthRight()+10,D=this.props.center.width-k-T;D>0&&(this.options.rtl?(o=Eu(d)-T*f/D,l=Su(c)+k*f/D):(o=Eu(d)-k*f/D,l=Su(c)+T*f/D))}}return{min:o!=null?new Date(o):null,max:l!=null?new Date(l):null}}},{key:"getDataRange",value:function(){var n=null,s=null;if(this.itemsData){var o;G(o=this.itemsData).call(o,function(l){var d=x.convert(l.start,"Date").valueOf(),c=x.convert(l.end!=null?l.end:l.start,"Date").valueOf();(n===null||d<n)&&(n=d),(s===null||c>s)&&(s=c)})}return{min:n!=null?new Date(n):null,max:s!=null?new Date(s):null}}},{key:"getEventProperties",value:function(n){var s=n.center?n.center.x:n.clientX,o=n.center?n.center.y:n.clientY,l=this.dom.centerContainer.getBoundingClientRect(),d=this.options.rtl?l.right-s:s-l.left,c=o-l.top,f=this.itemSet.itemFromTarget(n),v=this.itemSet.groupFromTarget(n),m=zf.customTimeFromTarget(n),g=this.itemSet.options.snap||null,b=this.body.util.getScale(),S=this.body.util.getStep(),w=this._toTime(d),k=g?g(w,b,S):w,T=x.getTarget(n),D=null;return f!=null?D="item":m!=null?D="custom-time":x.hasParent(T,this.timeAxis.dom.foreground)||this.timeAxis2&&x.hasParent(T,this.timeAxis2.dom.foreground)?D="axis":x.hasParent(T,this.itemSet.dom.labelSet)?D="group-label":x.hasParent(T,this.currentTime.bar)?D="current-time":x.hasParent(T,this.dom.center)&&(D="background"),{event:n,item:f?f.id:null,isCluster:f?!!f.isCluster:!1,items:f?f.items||[]:null,group:v?v.groupId:null,customTime:m?m.options.id:null,what:D,pageX:n.srcEvent?n.srcEvent.pageX:n.pageX,pageY:n.srcEvent?n.srcEvent.pageY:n.pageY,x:d,y:c,time:w,snappedTime:k}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(this.options.rollingMode==null&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){sa.prototype._redraw.call(this)}},{key:"_onFit",value:function(n){var s=n.start,o=n.end,l=n.animation;o?this.range.setRange(s,o,{animation:l}):this.moveTo(s.valueOf(),{animation:l})}}]),r}(sa);function Eu(e){return x.convert(e.data.start,"Date").valueOf()}function Su(e){var t=e.data.end!=null?e.data.end:e.data.start;return x.convert(t,"Date").valueOf()}function Zy(e,t){if(!t.parent)return!1;var r=e.options.rtl?e.props.rightContainer.height:e.props.leftContainer.height,a=e.props.center.height,n=t.parent,s=n.top,o=!0,l=e.timeAxis.options.orientation.axis,d=function(){return l=="bottom"?n.height-t.top-t.height:t.top},c=e._getScrollTop()*-1,f=s+d(),v=t.height;return f<c?s+r<=s+d()+v&&(s+=d()-e.itemSet.options.margin.item.vertical):f+v>c+r?s+=d()+v-r+e.itemSet.options.margin.item.vertical:o=!1,s=Math.min(s,a-r),{shouldScroll:o,scrollOffset:s,itemTop:f}}var MJ=function(){function e(t,r,a,n,s,o){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;if(fe(this,e),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=s,this.majorCharHeight=o,this._start=t,this._end=r,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=l,this.autoScaleStart=a,this.autoScaleEnd=n,this.formattingFunction=d,a||n){var c=this,f=function(m){var g=m-m%(c.magnitudefactor*c.minorSteps[c.minorStepIdx]);return m%(c.magnitudefactor*c.minorSteps[c.minorStepIdx])>.5*(c.magnitudefactor*c.minorSteps[c.minorStepIdx])?g+c.magnitudefactor*c.minorSteps[c.minorStepIdx]:g};a&&(this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx],this._start=f(this._start)),n&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=f(this._end)),this.determineScale()}}return pe(e,[{key:"setCharHeight",value:function(r){this.majorCharHeight=r}},{key:"setHeight",value:function(r){this.containerHeight=r}},{key:"determineScale",value:function(){var r=this._end-this._start;this.scale=this.containerHeight/r;var a=this.majorCharHeight/this.scale,n=r>0?Math.round(Math.log(r)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var s=0;n<0&&(s=n);for(var o=!1,l=s;Math.abs(l)<=Math.abs(n);l++){this.magnitudefactor=Math.pow(10,l);for(var d=0;d<this.minorSteps.length;d++){var c=this.magnitudefactor*this.minorSteps[d];if(c>=a){o=!0,this.minorStepIdx=d;break}}if(o===!0)break}}},{key:"is_major",value:function(r){return r%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var r=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(r-this._start%r)%r)}},{key:"formatValue",value:function(r){var a=r.toPrecision(5);return typeof this.formattingFunction=="function"&&(a=this.formattingFunction(r)),typeof a=="number"?"".concat(a):typeof a=="string"?a:r.toPrecision(5)}},{key:"getLines",value:function(){for(var r=[],a=this.getStep(),n=(a-this._start%a)%a,s=this._start+n;this._end-s>1e-5;s+=a)s!=this._start&&r.push({major:this.is_major(s),y:this.convertValue(s),val:this.formatValue(s)});return r}},{key:"followScale",value:function(r){var a=this.minorStepIdx,n=this._start,s=this._end,o=this,l=function(){o.magnitudefactor*=2},d=function(){o.magnitudefactor/=2};r.minorStepIdx<=1&&this.minorStepIdx<=1||r.minorStepIdx>1&&this.minorStepIdx>1||(r.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,a==2||l(),l()):(this.minorStepIdx=2,a==1||d(),d()));for(var c=r.convertValue(0),f=r.getStep()*r.scale,v=!1,m=0;!v&&m++<5;){this.scale=f/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var g=this.containerHeight/this.scale;this._start=n,this._end=this._start+g;var b=this._end*this.scale,S=this.magnitudefactor*this.majorSteps[this.minorStepIdx],w=this.getFirstMajor()-r.getFirstMajor();if(this.zeroAlign){var k=c-b;this._end+=k/this.scale,this._start=this._end-g}else this.autoScaleStart?(this._start-=w/this.scale,this._end=this._start+g):(this._start+=S-w/this.scale,this._end=this._start+g);if(!this.autoScaleEnd&&this._end>s+1e-5){d(),v=!1;continue}if(!this.autoScaleStart&&this._start<n-1e-5)if(this.zeroAlign&&n>=0)console.warn("Can't adhere to given 'min' range, due to zeroalign");else{d(),v=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&g<s-n){l(),v=!1;continue}v=!0}}},{key:"convertValue",value:function(r){return this.containerHeight-(r-this._start)*this.scale}},{key:"screenToValue",value:function(r){return(this.containerHeight-r)/this.scale+this._start}}]),e}(),RJ=`
|
1177
|
+
}`;kt(Mz);var Ob=function(){function e(r,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;ue(this,e),this.parent=r,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},x.extend(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Iz(n),this.wrapper=void 0}return ce(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var a=!0;if(typeof t=="string")this.options.filter=t;else if(re(t))this.options.filter=t.join();else if(ee(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),J(t)!==void 0&&(this.options.filter=J(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(a=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,a=t):typeof t=="function"&&(this.options.filter=t,a=!0);J(this.options)===!1&&(a=!1),this.options.enabled=a}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=J(this.options),a=0,n=!1;for(var s in this.configureOptions)this.configureOptions.hasOwnProperty(s)&&(this.allowCreation=!1,n=!1,typeof t=="function"?(n=t(s,[]),n=n||this._handleObject(this.configureOptions[s],[s],!0)):(t===!0||Se(t).call(t,s)!==-1)&&(n=!0),n!==!1&&(this.allowCreation=!0,a>0&&this._makeItem([]),this._makeHeader(s),this._handleObject(this.configureOptions[s],[s])),a++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var a=this.moduleOptions,n=0;n<t.length;n++)if(a[t[n]]!==void 0)a=a[t[n]];else{a=void 0;break}return a}},{key:"_makeItem",value:function(t){if(this.allowCreation===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return B(s).call(s,function(l){a.appendChild(l)}),this.domElements.push(a),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var a=document.createElement("div");a.className="vis-configuration vis-config-header",a.innerHTML=x.xss(t),this._makeItem([],a)}},{key:"_makeLabel",value:function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=document.createElement("div");return s.className="vis-configuration vis-config-label vis-config-s"+a.length,n===!0?s.innerHTML=x.xss("<i><b>"+t+":</b></i>"):s.innerHTML=x.xss(t+":"),s}},{key:"_makeDropdown",value:function(t,a,n){var s=document.createElement("select");s.className="vis-configuration vis-config-select";var o=0;a!==void 0&&Se(t).call(t,a)!==-1&&(o=Se(t).call(t,a));for(var l=0;l<t.length;l++){var d=document.createElement("option");d.value=t[l],l===o&&(d.selected="selected"),d.innerHTML=t[l],s.appendChild(d)}var u=this;s.onchange=function(){u._update(this.value,n)};var f=this._makeLabel(n[n.length-1],n);this._makeItem(n,f,s)}},{key:"_makeRange",value:function(t,a,n){var s=t[0],o=t[1],l=t[2],d=t[3],u=document.createElement("input");u.className="vis-configuration vis-config-range";try{u.type="range",u.min=o,u.max=l}catch{}u.step=d;var f="",p=0;if(a!==void 0){var m=1.2;a<0&&a*m<o?(u.min=Math.ceil(a*m),p=u.min,f="range increased"):a/m<o&&(u.min=Math.ceil(a/m),p=u.min,f="range increased"),a*m>l&&l!==1&&(u.max=Math.ceil(a*m),p=u.max,f="range increased"),u.value=a}else u.value=s;var y=document.createElement("input");y.className="vis-configuration vis-config-rangeinput",y.value=Number(u.value);var b=this;u.onchange=function(){y.value=this.value,b._update(Number(this.value),n)},u.oninput=function(){y.value=this.value};var E=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,E,u,y);f!==""&&this.popupHistory[w]!==p&&(this.popupHistory[w]=p,this._setupPopup(f,w))}},{key:"_makeButton",value:function(){var t=this;if(this.options.showButton===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-button",a.innerHTML="generate options",a.onclick=function(){t._printOptions()},a.onmouseover=function(){a.className="vis-configuration vis-config-button hover"},a.onmouseout=function(){a.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(a)}}},{key:"_setupPopup",value:function(t,a){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var s=document.createElement("div");s.id="vis-configuration-popup",s.className="vis-configuration-popup",s.innerHTML=x.xss(t),s.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:s,index:a}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(this.popupDiv.html!==void 0){var a=this.domElements[this.popupDiv.index],n=a.getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=ct(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=ct(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,a,n){var s=document.createElement("input");s.type="checkbox",s.className="vis-configuration vis-config-checkbox",s.checked=t,a!==void 0&&(s.checked=a,a!==t&&(ee(t)==="object"?a!==t.enabled&&this.changedOptions.push({path:n,value:a}):this.changedOptions.push({path:n,value:a})));var o=this;s.onchange=function(){o._update(this.checked,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeTextInput",value:function(t,a,n){var s=document.createElement("input");s.type="text",s.className="vis-configuration vis-config-text",s.value=a,a!==t&&this.changedOptions.push({path:n,value:a});var o=this;s.onchange=function(){o._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeColorField",value:function(t,a,n){var s=this,o=t[1],l=document.createElement("div");a=a===void 0?o:a,a!=="none"?(l.className="vis-configuration vis-config-colorBlock",l.style.backgroundColor=a):l.className="vis-configuration vis-config-colorBlock none",a=a===void 0?o:a,l.onclick=function(){s._showColorPicker(a,l,n)};var d=this._makeLabel(n[n.length-1],n);this._makeItem(n,d,l)}},{key:"_showColorPicker",value:function(t,a,n){var s=this;a.onclick=function(){},this.colorPicker.insertTo(a),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(o){var l="rgba("+o.r+","+o.g+","+o.b+","+o.a+")";a.style.backgroundColor=l,s._update(l,n)}),this.colorPicker.setCloseCallback(function(){a.onclick=function(){s._showColorPicker(t,a,n)}})}},{key:"_handleObject",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=!1,o=J(this.options),l=!1;for(var d in t)if(t.hasOwnProperty(d)){s=!0;var u=t[d],f=x.copyAndExtendArray(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!re(u)&&typeof u!="string"&&typeof u!="boolean"&&u instanceof Object&&(this.allowCreation=!1,s=this._handleObject(u,f,!0),this.allowCreation=n===!1)),s!==!1){l=!0;var p=this._getValue(f);if(re(u))this._handleArray(u,p,f);else if(typeof u=="string")this._makeTextInput(u,p,f);else if(typeof u=="boolean")this._makeCheckbox(u,p,f);else if(u instanceof Object){var m=!0;if(Se(a).call(a,"physics")!==-1&&this.moduleOptions.physics.solver!==d&&(m=!1),m===!0)if(u.enabled!==void 0){var y=x.copyAndExtendArray(f,"enabled"),b=this._getValue(y);if(b===!0){var E=this._makeLabel(d,f,!0);this._makeItem(f,E),l=this._handleObject(u,f)||l}else this._makeCheckbox(u,b,f)}else{var w=this._makeLabel(d,f,!0);this._makeItem(f,w),l=this._handleObject(u,f)||l}}else console.error("dont know how to handle",u,d,f)}}return l}},{key:"_handleArray",value:function(t,a,n){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,a,n),t[1]!==a&&this.changedOptions.push({path:n,value:a})):typeof t[0]=="string"?(this._makeDropdown(t,a,n),t[0]!==a&&this.changedOptions.push({path:n,value:a})):typeof t[0]=="number"&&(this._makeRange(t,a,n),t[0]!==a&&this.changedOptions.push({path:n,value:Number(a)}))}},{key:"_update",value:function(t,a){var n=this._constructOptions(t,a);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var o=0;o<a.length;o++)a[o]!=="global"&&(s[a[o]]===void 0&&(s[a[o]]={}),o!==a.length-1?s=s[a[o]]:s[a[o]]=t);return n}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+Dt(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},a=0;a<this.changedOptions.length;a++)this._constructOptions(this.changedOptions[a].value,this.changedOptions[a].path,t);return t}}]),e}();function Az(e){var r=Vz();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function Vz(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Rz=function(e){wt(t,e);var r=Az(t);function t(a,n,s,o){var l,d,u,f,p,m,y,b;if(ue(this,t),b=r.call(this),b.initTime=new Date,b.itemsDone=!1,!(Ee(b)instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!(re(s)||Rr(s))&&s instanceof Object){var E=o;o=s,s=E}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var w=Ee(b);if(b.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:mt},b.options=x.deepExtend({},b.defaultOptions),o&&x.setupXSSProtection(o.xss),b._create(a),!o||o&&typeof o.rtl>"u"){b.dom.root.style.visibility="hidden";for(var S,D=b.dom.root;!S&&D;)S=window.getComputedStyle(D,null).direction,D=D.parentElement;b.options.rtl=S&&S.toLowerCase()=="rtl"}else b.options.rtl=o.rtl;o&&(o.rollingMode&&(b.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(b.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(b.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(b.options.loadingScreenTemplate=o.loadingScreenTemplate));var T=document.createElement("div");if(b.options.loadingScreenTemplate){var P,F=O(P=b.options.loadingScreenTemplate).call(P,Ee(b)),A=F(b.dom.loadingScreen);A instanceof Object&&!(A instanceof Element)?F(T):A instanceof Element?(T.innerHTML="",T.appendChild(A)):A!=null&&(T.innerHTML=x.xss(A))}b.dom.loadingScreen.appendChild(T),b.components=[],b.body={dom:b.dom,domProps:b.props,emitter:{on:O(l=b.on).call(l,Ee(b)),off:O(d=b.off).call(d,Ee(b)),emit:O(u=b.emit).call(u,Ee(b))},hiddenDates:[],util:{getScale:function(){return w.timeAxis.step.scale},getStep:function(){return w.timeAxis.step.step},toScreen:O(f=w._toScreen).call(f,w),toGlobalScreen:O(p=w._toGlobalScreen).call(p,w),toTime:O(m=w._toTime).call(m,w),toGlobalTime:O(y=w._toGlobalTime).call(y,w)}},b.range=new pb(b.body,b.options),b.components.push(b.range),b.body.range=b.range,b.timeAxis=new ho(b.body,b.options),b.timeAxis2=null,b.components.push(b.timeAxis),b.currentTime=new Sb(b.body,b.options),b.components.push(b.currentTime),b.itemSet=new fo(b.body,b.options),b.components.push(b.itemSet),b.itemsData=null,b.groupsData=null;function V(N,I){w.hasListeners(N)&&w.emit(N,w.getEventProperties(I))}return b.dom.root.onclick=function(N){V("click",N)},b.dom.root.ondblclick=function(N){V("doubleClick",N)},b.dom.root.oncontextmenu=function(N){V("contextmenu",N)},b.dom.root.onmouseover=function(N){V("mouseOver",N)},window.PointerEvent?(b.dom.root.onpointerdown=function(N){V("mouseDown",N)},b.dom.root.onpointermove=function(N){V("mouseMove",N)},b.dom.root.onpointerup=function(N){V("mouseUp",N)}):(b.dom.root.onmousemove=function(N){V("mouseMove",N)},b.dom.root.onmousedown=function(N){V("mouseDown",N)},b.dom.root.onmouseup=function(N){V("mouseUp",N)}),b.initialFitDone=!1,b.on("changed",function(){if(w.itemsData!=null){if(!w.initialFitDone&&!w.options.rollingMode)if(w.initialFitDone=!0,w.options.start!=null||w.options.end!=null){if(w.options.start==null||w.options.end==null)var N=w.getItemRange();var I=w.options.start!=null?w.options.start:N.min,M=w.options.end!=null?w.options.end:N.max;w.setWindow(I,M,{animation:!1})}else w.fit({animation:!1});!w.initialDrawDone&&(w.initialRangeChangeDone||!w.options.start&&!w.options.end||w.options.rollingMode)&&(w.initialDrawDone=!0,w.itemSet.initialDrawDone=!0,w.dom.root.style.visibility="visible",w.dom.loadingScreen.parentNode.removeChild(w.dom.loadingScreen),w.options.onInitialDrawComplete&&ct(function(){return w.options.onInitialDrawComplete()},0))}}),b.on("destroyTimeline",function(){w.destroy()}),o&&b.setOptions(o),b.body.emitter.on("fit",function(N){b._onFit(N),b.redraw()}),s&&b.setGroups(s),n&&b.setItems(n),b._redraw(),b}return ce(t,[{key:"_createConfigurator",value:function(){return new Ob(this,this.dom.container,Oz)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(n){var s=Cb.validate(n,Cz);if(s===!0&&console.log("%cErrors have been found in the supplied options object.",vo),fn.prototype.setOptions.call(this,n),"type"in n&&n.type!==this.options.type){this.options.type=n.type;var o=this.itemsData;if(o){var l=this.getSelection();this.setItems(null),this.setItems(o.rawDS),this.setSelection(l)}}}},{key:"setItems",value:function(n){this.itemsDone=!1;var s;n?Rr(n)?s=wn(n):s=wn(new Ci(n)):s=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=s,this.itemSet&&this.itemSet.setItems(s!=null?s.rawDS:null)}},{key:"setGroups",value:function(n){var s,o=function(d){return d.visible!==!1};n?(re(n)&&(n=new Ci(n)),s=new MH(n,{filter:o})):s=null,this.groupsData!=null&&typeof this.groupsData.setData=="function"&&this.groupsData.setData(null),this.groupsData=s,this.itemSet.setGroups(s)}},{key:"setData",value:function(n){n&&n.groups&&this.setGroups(n.groups),n&&n.items&&this.setItems(n.items)}},{key:"setSelection",value:function(n,s){this.itemSet&&this.itemSet.setSelection(n),s&&s.focus&&this.focus(n,s)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(n,s){if(!(!this.itemsData||n==null)){var o=re(n)?n:[n],l=this.itemsData.get(o),d=null,u=null;if(B(l).call(l,function(F){var A=F.start.valueOf(),V="end"in F?F.end.valueOf():F.start.valueOf();(d===null||A<d)&&(d=A),(u===null||V>u)&&(u=V)}),d!==null&&u!==null){var f=this,p=this.itemSet.items[o[0]],m=this._getScrollTop()*-1,y=null,b=function(A,V,N){var I=em(f,p);if(I!==!1&&(y||(y=I),!(y.itemTop==I.itemTop&&!y.shouldScroll))){y.itemTop!=I.itemTop&&I.shouldScroll&&(y=I,m=f._getScrollTop()*-1);var M=m,H=y.scrollOffset,W=N?H:M+(H-M)*A;f._setScrollTop(-W),V||f._redraw()}},E=function(){var A=em(f,p);A.shouldScroll&&A.itemTop!=y.itemTop&&(f._setScrollTop(-A.scrollOffset),f._redraw())},w=function(){E(),ct(E,100)},S=s&&s.zoom!==void 0?s.zoom:!0,D=(d+u)/2,T=S?(u-d)*1.1:Math.max(this.range.end-this.range.start,(u-d)*1.1),P=s&&s.animation!==void 0?s.animation:!0;P||(y={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(D-T/2,D+T/2,{animation:P},w,b)}}}},{key:"fit",value:function(n,s){var o=n&&n.animation!==void 0?n.animation:!0,l;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(l=this.getDataRange(),this.moveTo(l.min.valueOf(),{animation:o},s)):(l=this.getItemRange(),this.range.setRange(l.min,l.max,{animation:o},s))}},{key:"getItemRange",value:function(){var n=this,s=this.getDataRange(),o=s.min!==null?s.min.valueOf():null,l=s.max!==null?s.max.valueOf():null,d=null,u=null;if(o!=null&&l!=null){var f=l-o;f<=0&&(f=10);var p=f/this.props.center.width,m={},y=0;B(x).call(x,this.itemSet.items,function(P,F){if(P.groupShowing){var A=!0;m[F]=P.redraw(A),y=m[F].length}});var b=y>0;if(b)for(var E=function(F){B(x).call(x,m,function(A){A[F]()})},w=0;w<y;w++)E(w);if(B(x).call(x,this.itemSet.items,function(P){var F=Cd(P),A=Od(P),V,N;n.options.rtl?(V=F-(P.getWidthRight()+10)*p,N=A+(P.getWidthLeft()+10)*p):(V=F-(P.getWidthLeft()+10)*p,N=A+(P.getWidthRight()+10)*p),V<o&&(o=V,d=P),N>l&&(l=N,u=P)}),d&&u){var S=d.getWidthLeft()+10,D=u.getWidthRight()+10,T=this.props.center.width-S-D;T>0&&(this.options.rtl?(o=Cd(d)-D*f/T,l=Od(u)+S*f/T):(o=Cd(d)-S*f/T,l=Od(u)+D*f/T))}}return{min:o!=null?new Date(o):null,max:l!=null?new Date(l):null}}},{key:"getDataRange",value:function(){var n=null,s=null;if(this.itemsData){var o;B(o=this.itemsData).call(o,function(l){var d=x.convert(l.start,"Date").valueOf(),u=x.convert(l.end!=null?l.end:l.start,"Date").valueOf();(n===null||d<n)&&(n=d),(s===null||u>s)&&(s=u)})}return{min:n!=null?new Date(n):null,max:s!=null?new Date(s):null}}},{key:"getEventProperties",value:function(n){var s=n.center?n.center.x:n.clientX,o=n.center?n.center.y:n.clientY,l=this.dom.centerContainer.getBoundingClientRect(),d=this.options.rtl?l.right-s:s-l.left,u=o-l.top,f=this.itemSet.itemFromTarget(n),p=this.itemSet.groupFromTarget(n),m=Tc.customTimeFromTarget(n),y=this.itemSet.options.snap||null,b=this.body.util.getScale(),E=this.body.util.getStep(),w=this._toTime(d),S=y?y(w,b,E):w,D=x.getTarget(n),T=null;return f!=null?T="item":m!=null?T="custom-time":x.hasParent(D,this.timeAxis.dom.foreground)||this.timeAxis2&&x.hasParent(D,this.timeAxis2.dom.foreground)?T="axis":x.hasParent(D,this.itemSet.dom.labelSet)?T="group-label":x.hasParent(D,this.currentTime.bar)?T="current-time":x.hasParent(D,this.dom.center)&&(T="background"),{event:n,item:f?f.id:null,isCluster:f?!!f.isCluster:!1,items:f?f.items||[]:null,group:p?p.groupId:null,customTime:m?m.options.id:null,what:T,pageX:n.srcEvent?n.srcEvent.pageX:n.pageX,pageY:n.srcEvent?n.srcEvent.pageY:n.pageY,x:d,y:u,time:w,snappedTime:S}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(this.options.rollingMode==null&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){fn.prototype._redraw.call(this)}},{key:"_onFit",value:function(n){var s=n.start,o=n.end,l=n.animation;o?this.range.setRange(s,o,{animation:l}):this.moveTo(s.valueOf(),{animation:l})}}]),t}(fn);function Cd(e){return x.convert(e.data.start,"Date").valueOf()}function Od(e){var r=e.data.end!=null?e.data.end:e.data.start;return x.convert(r,"Date").valueOf()}function em(e,r){if(!r.parent)return!1;var t=e.options.rtl?e.props.rightContainer.height:e.props.leftContainer.height,a=e.props.center.height,n=r.parent,s=n.top,o=!0,l=e.timeAxis.options.orientation.axis,d=function(){return l=="bottom"?n.height-r.top-r.height:r.top},u=e._getScrollTop()*-1,f=s+d(),p=r.height;return f<u?s+t<=s+d()+p&&(s+=d()-e.itemSet.options.margin.item.vertical):f+p>u+t?s+=d()+p-t+e.itemSet.options.margin.item.vertical:o=!1,s=Math.min(s,a-t),{shouldScroll:o,scrollOffset:s,itemTop:f}}var Lz=function(){function e(r,t,a,n,s,o){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;if(ue(this,e),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=s,this.majorCharHeight=o,this._start=r,this._end=t,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=l,this.autoScaleStart=a,this.autoScaleEnd=n,this.formattingFunction=d,a||n){var u=this,f=function(m){var y=m-m%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return m%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>.5*(u.magnitudefactor*u.minorSteps[u.minorStepIdx])?y+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:y};a&&(this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx],this._start=f(this._start)),n&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=f(this._end)),this.determineScale()}}return ce(e,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var a=this.majorCharHeight/this.scale,n=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var s=0;n<0&&(s=n);for(var o=!1,l=s;Math.abs(l)<=Math.abs(n);l++){this.magnitudefactor=Math.pow(10,l);for(var d=0;d<this.minorSteps.length;d++){var u=this.magnitudefactor*this.minorSteps[d];if(u>=a){o=!0,this.minorStepIdx=d;break}}if(o===!0)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var a=t.toPrecision(5);return typeof this.formattingFunction=="function"&&(a=this.formattingFunction(t)),typeof a=="number"?"".concat(a):typeof a=="string"?a:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],a=this.getStep(),n=(a-this._start%a)%a,s=this._start+n;this._end-s>1e-5;s+=a)s!=this._start&&t.push({major:this.is_major(s),y:this.convertValue(s),val:this.formatValue(s)});return t}},{key:"followScale",value:function(t){var a=this.minorStepIdx,n=this._start,s=this._end,o=this,l=function(){o.magnitudefactor*=2},d=function(){o.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,a==2||l(),l()):(this.minorStepIdx=2,a==1||d(),d()));for(var u=t.convertValue(0),f=t.getStep()*t.scale,p=!1,m=0;!p&&m++<5;){this.scale=f/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var y=this.containerHeight/this.scale;this._start=n,this._end=this._start+y;var b=this._end*this.scale,E=this.magnitudefactor*this.majorSteps[this.minorStepIdx],w=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var S=u-b;this._end+=S/this.scale,this._start=this._end-y}else this.autoScaleStart?(this._start-=w/this.scale,this._end=this._start+y):(this._start+=E-w/this.scale,this._end=this._start+y);if(!this.autoScaleEnd&&this._end>s+1e-5){d(),p=!1;continue}if(!this.autoScaleStart&&this._start<n-1e-5)if(this.zeroAlign&&n>=0)console.warn("Can't adhere to given 'min' range, due to zeroalign");else{d(),p=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&y<s-n){l(),p=!1;continue}p=!0}}},{key:"convertValue",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:"screenToValue",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]),e}(),Fz=`
|
1182
1178
|
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {
|
1183
1179
|
position: absolute;
|
1184
1180
|
width: 100%;
|
@@ -1280,5 +1276,5 @@ input.vis-configuration.vis-config-range:focus::-ms-fill-upper {
|
|
1280
1276
|
/*font-size: 10px;*/
|
1281
1277
|
white-space: nowrap;
|
1282
1278
|
display: inline-block
|
1283
|
-
}`;
|
1284
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function VJ(e,t){var r;if(e){if(typeof e=="string")return Jy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Jy(e,t)}}function Jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function FJ(e){var t=YJ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function YJ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var e_=function(e){It(r,e);var t=FJ(r);function r(a,n,s,o){var l;fe(this,r),l=t.call(this),l.id=ai(),l.body=a,l.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(f){return"".concat(Ol(f.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(f){return"".concat(Ol(f.toPrecision(3)))},title:{text:void 0,style:void 0}}},l.linegraphOptions=o,l.linegraphSVG=s,l.props={},l.DOMelements={lines:{},labels:{},title:{}},l.dom={},l.scale=void 0,l.range={start:0,end:0},l.options=x.extend({},l.defaultOptions),l.conversionFactor=1,l.setOptions(n),l.width=Number("".concat(l.options.width).replace("px","")),l.minWidth=l.width,l.height=l.linegraphSVG.getBoundingClientRect().height,l.hidden=!1,l.stepPixels=25,l.zeroCrossing=-1,l.amountOfSteps=-1,l.lineOffset=0,l.master=!0,l.masterAxis=null,l.svgElements={},l.iconsRemoved=!1,l.groups={},l.amountOfGroups=0,l._create(),l.scale==null&&l._redrawLabels(),l.framework={svg:l.svg,svgElements:l.svgElements,options:l.options,groups:l.groups};var d=Ne(l);return l.body.emitter.on("verticalDrag",function(){d.dom.lineContainer.style.top="".concat(d.body.domProps.scrollTop,"px")}),l}return pe(r,[{key:"addGroup",value:function(n,s){this.groups.hasOwnProperty(n)||(this.groups[n]=s),this.amountOfGroups+=1}},{key:"updateGroup",value:function(n,s){this.groups.hasOwnProperty(n)||(this.amountOfGroups+=1),this.groups[n]=s}},{key:"removeGroup",value:function(n){this.groups.hasOwnProperty(n)&&(delete this.groups[n],this.amountOfGroups-=1)}},{key:"setOptions",value:function(n){if(n){var s=!1;this.options.orientation!=n.orientation&&n.orientation!==void 0&&(s=!0);var o=["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"];x.selectiveDeepExtend(o,this.options,n),this.minWidth=Number("".concat(this.options.width).replace("px","")),s===!0&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){wn(this.svgElements);var n,s=this.options.iconWidth,o=15,l=4,d=l+.5*o;this.options.orientation==="left"?n=l:n=this.width-s-l;var c=st(this.groups);Ze(c).call(c,function(g,b){return g<b?-1:1});var f=LJ(c),v;try{for(f.s();!(v=f.n()).done;){var m=v.value;this.groups[m].visible===!0&&(this.linegraphOptions.visibility[m]===void 0||this.linegraphOptions.visibility[m]===!0)&&(this.groups[m].getLegend(s,o,this.framework,n,d),d+=o+l)}}catch(g){f.e(g)}finally{f.f()}sr(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(wn(this.svgElements),sr(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||(this.options.orientation==="left"?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(n,s){this.range.start=n,this.range.end=s}},{key:"redraw",value:function(){var n=!1,s=0;this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px");for(var o in this.groups)this.groups.hasOwnProperty(o)&&this.groups[o].visible===!0&&(this.linegraphOptions.visibility[o]===void 0||this.linegraphOptions.visibility[o]===!0)&&s++;if(this.amountOfGroups===0||s===0)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=this.options.visible===!0?Number("".concat(this.options.width).replace("px","")):0;var l=this.props,d=this.dom.frame;d.className="vis-data-axis",this._calculateCharSize();var c=this.options.orientation,f=this.options.showMinorLabels,v=this.options.showMajorLabels,m=this.body.dom.backgroundHorizontal.offsetWidth;l.minorLabelHeight=f?l.minorCharHeight:0,l.majorLabelHeight=v?l.majorCharHeight:0,l.minorLineWidth=m-this.lineOffset-this.width+2*this.options.minorLinesOffset,l.minorLineHeight=1,l.majorLineWidth=m-this.lineOffset-this.width+2*this.options.majorLinesOffset,l.majorLineHeight=1,c==="left"?(d.style.top="0",d.style.left="0",d.style.bottom="",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(d.style.top="",d.style.bottom="0",d.style.left="0",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),n=this._redrawLabels(),n=this._isResized()||n,this.options.icons===!0?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(c)}return n}},{key:"_redrawLabels",value:function(){var n=this,s=!1;wn(this.DOMelements.lines),wn(this.DOMelements.labels);var o=this.options.orientation,l=this.options[o].range!=null?this.options[o].range:{},d=!0;l.max!=null&&(this.range.end=l.max,d=!1);var c=!0;l.min!=null&&(this.range.start=l.min,c=!1),this.scale=new MJ(this.range.start,this.range.end,c,d,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[o].format),this.master===!1&&this.masterAxis!=null?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var f=this.scale.getLines();G(f).call(f,function(g){var b=g.y,S=g.major;n.options.showMinorLabels&&S===!1&&n._redrawLabel(b-2,g.val,o,"vis-y-axis vis-minor",n.props.minorCharHeight),S&&b>=0&&n._redrawLabel(b-2,g.val,o,"vis-y-axis vis-major",n.props.majorCharHeight),n.master===!0&&(S?n._redrawLine(b,o,"vis-grid vis-horizontal vis-major",n.options.majorLinesOffset,n.props.majorLineWidth):n._redrawLine(b,o,"vis-grid vis-horizontal vis-minor",n.options.minorLinesOffset,n.props.minorLineWidth))});var v=0;this.options[o].title!==void 0&&this.options[o].title.text!==void 0&&(v=this.props.titleCharHeight);var m=this.options.icons===!0?Math.max(this.options.iconWidth,v)+this.options.labelOffsetX+15:v+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-m&&this.options.visible===!0?(this.width=this.maxLabelSize+m,this.options.width="".concat(this.width,"px"),sr(this.DOMelements.lines),sr(this.DOMelements.labels),this.redraw(),s=!0):this.maxLabelSize<this.width-m&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+m),this.options.width="".concat(this.width,"px"),sr(this.DOMelements.lines),sr(this.DOMelements.labels),this.redraw(),s=!0):(sr(this.DOMelements.lines),sr(this.DOMelements.labels),s=!1),s}},{key:"convertValue",value:function(n){return this.scale.convertValue(n)}},{key:"screenToValue",value:function(n){return this.scale.screenToValue(n)}},{key:"_redrawLabel",value:function(n,s,o,l,d){var c=Gc("div",this.DOMelements.labels,this.dom.frame);c.className=l,c.innerHTML=x.xss(s),o==="left"?(c.style.left="-".concat(this.options.labelOffsetX,"px"),c.style.textAlign="right"):(c.style.right="-".concat(this.options.labelOffsetX,"px"),c.style.textAlign="left"),c.style.top="".concat(n-.5*d+this.options.labelOffsetY,"px"),s+="";var f=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<s.length*f&&(this.maxLabelSize=s.length*f)}},{key:"_redrawLine",value:function(n,s,o,l,d){if(this.master===!0){var c=Gc("div",this.DOMelements.lines,this.dom.lineContainer);c.className=o,c.innerHTML="",s==="left"?c.style.left="".concat(this.width-l,"px"):c.style.right="".concat(this.width-l,"px"),c.style.width="".concat(d,"px"),c.style.top="".concat(n,"px")}}},{key:"_redrawTitle",value:function(n){if(wn(this.DOMelements.title),this.options[n].title!==void 0&&this.options[n].title.text!==void 0){var s=Gc("div",this.DOMelements.title,this.dom.frame);s.className="vis-y-axis vis-title vis-".concat(n),s.innerHTML=x.xss(this.options[n].title.text),this.options[n].title.style!==void 0&&x.addCssText(s,this.options[n].title.style),n==="left"?s.style.left="".concat(this.props.titleCharHeight,"px"):s.style.right="".concat(this.props.titleCharHeight,"px"),s.style.width="".concat(this.height,"px")}sr(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var n=document.createTextNode("0"),s=document.createElement("div");s.className="vis-y-axis vis-minor vis-measure",s.appendChild(n),this.dom.frame.appendChild(s),this.props.minorCharHeight=s.clientHeight,this.props.minorCharWidth=s.clientWidth,this.dom.frame.removeChild(s)}if(!("majorCharHeight"in this.props)){var o=document.createTextNode("0"),l=document.createElement("div");l.className="vis-y-axis vis-major vis-measure",l.appendChild(o),this.dom.frame.appendChild(l),this.props.majorCharHeight=l.clientHeight,this.props.majorCharWidth=l.clientWidth,this.dom.frame.removeChild(l)}if(!("titleCharHeight"in this.props)){var d=document.createTextNode("0"),c=document.createElement("div");c.className="vis-y-axis vis-title vis-measure",c.appendChild(d),this.dom.frame.appendChild(c),this.props.titleCharHeight=c.clientHeight,this.props.titleCharWidth=c.clientWidth,this.dom.frame.removeChild(c)}}}]),r}(Fn);function no(e,t){}no.draw=function(e,t,r,a){a=a||0;for(var n=jJ(r,t),s=0;s<e.length;s++)if(!n)ya(e[s].screen_x+a,e[s].screen_y,Eh(t),r.svgElements,r.svg,e[s].label);else{var o=n(e[s],t);(o===!0||ne(o)==="object")&&ya(e[s].screen_x+a,e[s].screen_y,Eh(t,o),r.svgElements,r.svg,e[s].label)}};no.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l=kr("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",t),l.setAttributeNS(null,"y",r-o),l.setAttributeNS(null,"width",a),l.setAttributeNS(null,"height",2*o),l.setAttributeNS(null,"class","vis-outline"),ya(t+.5*a,r,Eh(e),s.svgElements,s.svg)};function Eh(e,t){return t=typeof t>"u"?{}:t,{style:t.style||e.options.drawPoints.style,styles:t.styles||e.options.drawPoints.styles,size:t.size||e.options.drawPoints.size,className:t.className||e.className}}function jJ(e,t){var r=void 0;return e.options&&e.options.drawPoints&&e.options.drawPoints.onRender&&typeof e.options.drawPoints.onRender=="function"&&(r=e.options.drawPoints.onRender),t.group.options&&t.group.options.drawPoints&&t.group.options.drawPoints.onRender&&typeof t.group.options.drawPoints.onRender=="function"&&(r=t.group.options.drawPoints.onRender),r}function $t(e,t){}$t.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l=kr("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",t),l.setAttributeNS(null,"y",r-o),l.setAttributeNS(null,"width",a),l.setAttributeNS(null,"height",2*o),l.setAttributeNS(null,"class","vis-outline");var d=Math.round(.3*a),c=e.options.barChart.width,f=c/d,v=Math.round(.4*n),m=Math.round(.75*n),g=Math.round((a-2*d)/3);if(nh(t+.5*d+g,r+o-v-1,d,v,e.className+" vis-bar",s.svgElements,s.svg,e.style),nh(t+1.5*d+g+2,r+o-m-1,d,m,e.className+" vis-bar",s.svgElements,s.svg,e.style),e.options.drawPoints.enabled==!0){var b={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size/f,className:e.className};ya(t+.5*d+g,r+o-v-1,b,s.svgElements,s.svg),ya(t+1.5*d+g+2,r+o-m-1,b,s.svgElements,s.svg)}};$t.draw=function(e,t,r){var a=[],n={},s,o,l,d,c,f,v=0;for(c=0;c<e.length;c++)if(d=r.groups[e[c]],d.options.style==="bar"&&d.visible===!0&&(r.options.groups.visibility[e[c]]===void 0||r.options.groups.visibility[e[c]]===!0))for(f=0;f<t[e[c]].length;f++)a.push({screen_x:t[e[c]][f].screen_x,screen_end:t[e[c]][f].screen_end,screen_y:t[e[c]][f].screen_y,x:t[e[c]][f].x,end:t[e[c]][f].end,y:t[e[c]][f].y,groupId:e[c],label:t[e[c]][f].label}),v+=1;if(v!==0)for(Ze(a).call(a,function(T,D){return T.screen_x===D.screen_x?T.groupId<D.groupId?-1:1:T.screen_x-D.screen_x}),$t._getDataIntersections(n,a),c=0;c<a.length;c++){d=r.groups[a[c].groupId];var m=d.options.barChart.minWidth!=null?d.options.barChart.minWidth:.1*d.options.barChart.width;o=a[c].screen_x;var g=0;if(n[o]===void 0)c+1<a.length&&(s=Math.abs(a[c+1].screen_x-o)),l=$t._getSafeDrawData(s,d,m);else{var b=c+(n[o].amount-n[o].resolved);b<a.length&&(s=Math.abs(a[b].screen_x-o)),l=$t._getSafeDrawData(s,d,m),n[o].resolved+=1,d.options.stack===!0&&d.options.excludeFromStacking!==!0?a[c].screen_y<d.zeroPosition?(g=n[o].accumulatedNegative,n[o].accumulatedNegative+=d.zeroPosition-a[c].screen_y):(g=n[o].accumulatedPositive,n[o].accumulatedPositive+=d.zeroPosition-a[c].screen_y):d.options.barChart.sideBySide===!0&&(l.width=l.width/n[o].amount,l.offset+=n[o].resolved*l.width-.5*l.width*(n[o].amount+1))}var S=l.width,w=a[c].screen_x;if(a[c].screen_end!=null?(S=a[c].screen_end-a[c].screen_x,w+=S*.5):w+=l.offset,nh(w,a[c].screen_y-g,S,d.zeroPosition-a[c].screen_y,d.className+" vis-bar",r.svgElements,r.svg,d.style),d.options.drawPoints.enabled===!0){var k={screen_x:a[c].screen_x,screen_y:a[c].screen_y-g,x:a[c].x,y:a[c].y,groupId:a[c].groupId,label:a[c].label};no.draw([k],d,r,l.offset)}}};$t._getDataIntersections=function(e,t){for(var r,a=0;a<t.length;a++)a+1<t.length&&(r=Math.abs(t[a+1].screen_x-t[a].screen_x)),a>0&&(r=Math.min(r,Math.abs(t[a-1].screen_x-t[a].screen_x))),r===0&&(e[t[a].screen_x]===void 0&&(e[t[a].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[t[a].screen_x].amount+=1)};$t._getSafeDrawData=function(e,t,r){var a,n;return e<t.options.barChart.width&&e>0?(a=e<r?r:e,n=0,t.options.barChart.align==="left"?n-=.5*e:t.options.barChart.align==="right"&&(n+=.5*e)):(a=t.options.barChart.width,n=0,t.options.barChart.align==="left"?n-=.5*t.options.barChart.width:t.options.barChart.align==="right"&&(n+=.5*t.options.barChart.width)),{width:a,offset:n}};$t.getStackedYRange=function(e,t,r,a,n){if(e.length>0){Ze(e).call(e,function(o,l){return o.screen_x===l.screen_x?o.groupId<l.groupId?-1:1:o.screen_x-l.screen_x});var s={};$t._getDataIntersections(s,e),t[a]=$t._getStackedYRange(s,e),t[a].yAxisOrientation=n,r.push(a)}};$t._getStackedYRange=function(e,t){for(var r,a=t[0].screen_y,n=t[0].screen_y,s=0;s<t.length;s++)r=t[s].screen_x,e[r]===void 0?(a=a>t[s].screen_y?t[s].screen_y:a,n=n<t[s].screen_y?t[s].screen_y:n):t[s].screen_y<0?e[r].accumulatedNegative+=t[s].screen_y:e[r].accumulatedPositive+=t[s].screen_y;for(var o in e)e.hasOwnProperty(o)&&(a=a>e[o].accumulatedNegative?e[o].accumulatedNegative:a,a=a>e[o].accumulatedPositive?e[o].accumulatedPositive:a,n=n<e[o].accumulatedNegative?e[o].accumulatedNegative:n,n=n<e[o].accumulatedPositive?e[o].accumulatedPositive:n);return{min:a,max:n}};function pt(e,t){}pt.calcPath=function(e,t){if(e!=null&&e.length>0){var r=[];return t.options.interpolation.enabled==!0?r=pt._catmullRom(e,t):r=pt._linear(e),r}};pt.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l,d,c=kr("rect",s.svgElements,s.svg);if(c.setAttributeNS(null,"x",t),c.setAttributeNS(null,"y",r-o),c.setAttributeNS(null,"width",a),c.setAttributeNS(null,"height",2*o),c.setAttributeNS(null,"class","vis-outline"),l=kr("path",s.svgElements,s.svg),l.setAttributeNS(null,"class",e.className),e.style!==void 0&&l.setAttributeNS(null,"style",e.style),l.setAttributeNS(null,"d","M"+t+","+r+" L"+(t+a)+","+r),e.options.shaded.enabled==!0&&(d=kr("path",s.svgElements,s.svg),e.options.shaded.orientation=="top"?d.setAttributeNS(null,"d","M"+t+", "+(r-o)+"L"+t+","+r+" L"+(t+a)+","+r+" L"+(t+a)+","+(r-o)):d.setAttributeNS(null,"d","M"+t+","+r+" L"+t+","+(r+o)+" L"+(t+a)+","+(r+o)+"L"+(t+a)+","+r),d.setAttributeNS(null,"class",e.className+" vis-icon-fill"),e.options.shaded.style!==void 0&&e.options.shaded.style!==""&&d.setAttributeNS(null,"style",e.options.shaded.style)),e.options.drawPoints.enabled==!0){var f={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className};ya(t+.5*a,r,f,s.svgElements,s.svg)}};pt.drawShading=function(e,t,r,a){if(t.options.shaded.enabled==!0){var n=Number(a.svg.style.height.replace("px","")),s=kr("path",a.svgElements,a.svg),o="L";t.options.interpolation.enabled==!0&&(o="C");var l,d=0;t.options.shaded.orientation=="top"?d=0:t.options.shaded.orientation=="bottom"?d=n:d=Math.min(Math.max(0,t.zeroPosition),n),t.options.shaded.orientation=="group"&&r!=null&&r!=null?l="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1)+" L"+r[r.length-1][0]+","+r[r.length-1][1]+" "+this.serializePath(r,o,!0)+r[0][0]+","+r[0][1]+" Z":l="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1)+" V"+d+" H"+e[0][0]+" Z",s.setAttributeNS(null,"class",t.className+" vis-fill"),t.options.shaded.style!==void 0&&s.setAttributeNS(null,"style",t.options.shaded.style),s.setAttributeNS(null,"d",l)}};pt.draw=function(e,t,r){if(e!=null&&e!=null){var a=kr("path",r.svgElements,r.svg);a.setAttributeNS(null,"class",t.className),t.style!==void 0&&a.setAttributeNS(null,"style",t.style);var n="L";t.options.interpolation.enabled==!0&&(n="C"),a.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,n,!1))}};pt.serializePath=function(e,t,r){if(e.length<2)return"";var a=t,n;if(r)for(n=e.length-2;n>0;n--)a+=e[n][0]+","+e[n][1]+" ";else for(n=1;n<e.length;n++)a+=e[n][0]+","+e[n][1]+" ";return a};pt._catmullRomUniform=function(e){var t,r,a,n,s,o,l=[];l.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var d=1/6,c=e.length,f=0;f<c-1;f++)t=f==0?e[0]:e[f-1],r=e[f],a=e[f+1],n=f+2<c?e[f+2]:a,s={screen_x:(-t.screen_x+6*r.screen_x+a.screen_x)*d,screen_y:(-t.screen_y+6*r.screen_y+a.screen_y)*d},o={screen_x:(r.screen_x+6*a.screen_x-n.screen_x)*d,screen_y:(r.screen_y+6*a.screen_y-n.screen_y)*d},l.push([s.screen_x,s.screen_y]),l.push([o.screen_x,o.screen_y]),l.push([a.screen_x,a.screen_y]);return l};pt._catmullRom=function(e,t){var r=t.options.interpolation.alpha;if(r==0||r===void 0)return this._catmullRomUniform(e);var a,n,s,o,l,d,c,f,v,m,g,b,S,w,k,T,D,N,L,A=[];A.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var R=e.length,C=0;C<R-1;C++)a=C==0?e[0]:e[C-1],n=e[C],s=e[C+1],o=C+2<R?e[C+2]:s,c=Math.sqrt(Math.pow(a.screen_x-n.screen_x,2)+Math.pow(a.screen_y-n.screen_y,2)),f=Math.sqrt(Math.pow(n.screen_x-s.screen_x,2)+Math.pow(n.screen_y-s.screen_y,2)),v=Math.sqrt(Math.pow(s.screen_x-o.screen_x,2)+Math.pow(s.screen_y-o.screen_y,2)),w=Math.pow(v,r),T=Math.pow(v,2*r),k=Math.pow(f,r),D=Math.pow(f,2*r),L=Math.pow(c,r),N=Math.pow(c,2*r),m=2*N+3*L*k+D,g=2*T+3*w*k+D,b=3*L*(L+k),b>0&&(b=1/b),S=3*w*(w+k),S>0&&(S=1/S),l={screen_x:(-D*a.screen_x+m*n.screen_x+N*s.screen_x)*b,screen_y:(-D*a.screen_y+m*n.screen_y+N*s.screen_y)*b},d={screen_x:(T*n.screen_x+g*s.screen_x-D*o.screen_x)*S,screen_y:(T*n.screen_y+g*s.screen_y-D*o.screen_y)*S},l.screen_x==0&&l.screen_y==0&&(l=n),d.screen_x==0&&d.screen_y==0&&(d=s),A.push([l.screen_x,l.screen_y]),A.push([d.screen_x,d.screen_y]),A.push([s.screen_x,s.screen_y]);return A};pt._linear=function(e){for(var t=[],r=0;r<e.length;r++)t.push([e[r].screen_x,e[r].screen_y]);return t};function Yn(e,t,r,a){this.id=t;var n=["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"];this.options=x.selectiveBridgeObject(n,r),this.usingDefaultStyle=e.className===void 0,this.groupsUsingDefaultStyles=a,this.zeroPosition=0,this.update(e),this.usingDefaultStyle==!0&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=e.visible===void 0?!0:e.visible}Yn.prototype.setItems=function(e){e!=null?(this.itemsData=e,Ze(this.options)==!0&&x.insertSort(this.itemsData,function(t,r){return t.x>r.x?1:-1})):this.itemsData=[]};Yn.prototype.getItems=function(){return this.itemsData};Yn.prototype.setZeroPosition=function(e){this.zeroPosition=e};Yn.prototype.setOptions=function(e){if(e!==void 0){var t=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];x.selectiveDeepExtend(t,this.options,e),typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),x.mergeOptions(this.options,e,"interpolation"),x.mergeOptions(this.options,e,"drawPoints"),x.mergeOptions(this.options,e,"shaded"),e.interpolation&&ne(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}};Yn.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=e.visible===void 0?!0:e.visible,this.style=e.style,this.setOptions(e.options)};Yn.prototype.getLegend=function(e,t,r,a,n){if(r==null||r==null){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");r={svg:s,svgElements:{},options:this.options,groups:[this]}}switch((a==null||a==null)&&(a=0),(n==null||n==null)&&(n=.5*t),this.options.style){case"line":pt.drawIcon(this,a,n,e,t,r);break;case"points":case"point":no.drawIcon(this,a,n,e,t,r);break;case"bar":$t.drawIcon(this,a,n,e,t,r);break}return{icon:r.svg,label:this.content,orientation:this.options.yAxisOrientation}};Yn.prototype.getYRange=function(e){for(var t=e[0].y,r=e[0].y,a=0;a<e.length;a++)t=t>e[a].y?e[a].y:t,r=r<e[a].y?e[a].y:r;return{min:t,max:r,yAxisOrientation:this.options.yAxisOrientation}};function nr(e,t,r,a){this.body=e,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=r,this.options=x.extend({},this.defaultOptions),this.linegraphOptions=a,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(t)}nr.prototype=new Fn;nr.prototype.clear=function(){this.groups={},this.amountOfGroups=0};nr.prototype.addGroup=function(e,t){t.options.excludeFromLegend!=!0&&(this.groups.hasOwnProperty(e)||(this.groups[e]=t),this.amountOfGroups+=1)};nr.prototype.updateGroup=function(e,t){this.groups[e]=t};nr.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)};nr.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)};nr.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};nr.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};nr.prototype.setOptions=function(e){var t=["enabled","orientation","icons","left","right"];x.selectiveDeepExtend(t,this.options,e)};nr.prototype.redraw=function(){var e=0,t=st(this.groups);Ze(t).call(t,function(o,l){return o<l?-1:1});for(var r=0;r<t.length;r++){var a=t[r];this.groups[a].visible==!0&&(this.linegraphOptions.visibility[a]===void 0||this.linegraphOptions.visibility[a]==!0)&&e++}if(this.options[this.side].visible==!1||this.amountOfGroups==0||this.options.enabled==!1||e==0)this.hide();else{if(this.show(),this.options[this.side].position=="top-left"||this.options[this.side].position=="bottom-left"?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),this.options[this.side].position=="top-left"||this.options[this.side].position=="top-right")this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var n=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+n+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}this.options.icons==!1?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var s="";for(r=0;r<t.length;r++)a=t[r],this.groups[a].visible==!0&&(this.linegraphOptions.visibility[a]===void 0||this.linegraphOptions.visibility[a]==!0)&&(s+=this.groups[a].content+"<br />");this.dom.textArea.innerHTML=x.xss(s),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}};nr.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=st(this.groups);Ze(e).call(e,function(c,f){return c<f?-1:1}),WH(this.svgElements);var t=window.getComputedStyle(this.dom.frame).paddingTop,r=Number(t.replace("px","")),a=r,n=this.options.iconSize,s=.75*this.options.iconSize,o=r+.5*s+3;this.svg.style.width=n+5+r+"px";for(var l=0;l<e.length;l++){var d=e[l];this.groups[d].visible==!0&&(this.linegraphOptions.visibility[d]===void 0||this.linegraphOptions.visibility[d]==!0)&&(this.groups[d].getLegend(n,s,this.framework,a,o),o+=s+this.options.iconSpacing)}}};var Fl="__ungrouped__";function Ae(e,t){this.id=ai(),this.body=e,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=x.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var r=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(n,s,o){r._onAdd(s.items)},update:function(n,s,o){r._onUpdate(s.items)},remove:function(n,s,o){r._onRemove(s.items)}},this.groupListeners={add:function(n,s,o){r._onAddGroups(s.items)},update:function(n,s,o){r._onUpdateGroups(s.items)},remove:function(n,s,o){r._onRemoveGroups(s.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(t),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){r.svg.style.left=x.option.asSize(-r.props.width),r.forceGraphUpdate=!0,r.redraw.call(r)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}Ae.prototype=new Fn;Ae.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new e_(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new e_(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new nr(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new nr(this.body,this.options.legend,"right",this.options.groups),this.show()};Ae.prototype.setOptions=function(e){if(e){var t=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];e.graphHeight===void 0&&e.height!==void 0?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):this.body.domProps.centerContainer.height!==void 0&&e.graphHeight!==void 0&&Xt((e.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),x.selectiveDeepExtend(t,this.options,e),x.mergeOptions(this.options,e,"interpolation"),x.mergeOptions(this.options,e,"drawPoints"),x.mergeOptions(this.options,e,"shaded"),x.mergeOptions(this.options,e,"legend"),e.interpolation&&ne(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&e.dataAxis!==void 0&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&e.legend!==void 0&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(Fl)&&this.groups[Fl].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))};Ae.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};Ae.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};Ae.prototype.setItems=function(e){var t=this,r,a=this.itemsData;if(!e)this.itemsData=null;else if(on(e))this.itemsData=ba(e);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(a&&(G(x).call(x,this.itemListeners,function(s,o){a.off(o,s)}),a.dispose(),r=a.getIds(),this._onRemove(r)),this.itemsData){var n=this.id;G(x).call(x,this.itemListeners,function(s,o){t.itemsData.on(o,s,n)}),r=this.itemsData.getIds(),this._onAdd(r)}};Ae.prototype.setGroups=function(e){var t=this,r;if(this.groupsData){G(x).call(x,this.groupListeners,function(s,o){t.groupsData.off(o,s)}),r=this.groupsData.getIds(),this.groupsData=null;for(var a=0;a<r.length;a++)this._removeGroup(r[a])}if(!e)this.groupsData=null;else if(on(e))this.groupsData=e;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var n=this.id;G(x).call(x,this.groupListeners,function(s,o){t.groupsData.on(o,s,n)}),r=this.groupsData.getIds(),this._onAddGroups(r)}};Ae.prototype._onUpdate=function(e){this._updateAllGroupData(e)};Ae.prototype._onAdd=function(e){this._onUpdate(e)};Ae.prototype._onRemove=function(e){this._onUpdate(e)};Ae.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)};Ae.prototype._onAddGroups=function(e){this._onUpdateGroups(e)};Ae.prototype._onRemoveGroups=function(e){for(var t=0;t<e.length;t++)this._removeGroup(e[t]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})};Ae.prototype._removeGroup=function(e){this.groups.hasOwnProperty(e)&&(this.groups[e].options.yAxisOrientation=="right"?(this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e),this.legendLeft.redraw()),delete this.groups[e])};Ae.prototype._updateGroup=function(e,t){this.groups.hasOwnProperty(t)?(this.groups[t].update(e),this.groups[t].options.yAxisOrientation=="right"?(this.yAxisRight.updateGroup(t,this.groups[t]),this.legendRight.updateGroup(t,this.groups[t]),this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t)):(this.yAxisLeft.updateGroup(t,this.groups[t]),this.legendLeft.updateGroup(t,this.groups[t]),this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t))):(this.groups[t]=new Yn(e,t,this.options,this.groupsUsingDefaultStyles),this.groups[t].options.yAxisOrientation=="right"?(this.yAxisRight.addGroup(t,this.groups[t]),this.legendRight.addGroup(t,this.groups[t])):(this.yAxisLeft.addGroup(t,this.groups[t]),this.legendLeft.addGroup(t,this.groups[t]))),this.legendLeft.redraw(),this.legendRight.redraw()};Ae.prototype._updateAllGroupData=function(e,t){if(this.itemsData!=null){var r={},a=this.itemsData.get(),n=this.itemsData.idProp,s={};e&&Se(e).call(e,function(w){s[w]=w});for(var o={},l=0;l<a.length;l++){var d=a[l],c=d.group;c==null&&(c=Fl),o.hasOwnProperty(c)?o[c]++:o[c]=1}var f={};if(!t&&e){for(c in this.groups)if(this.groups.hasOwnProperty(c)){S=this.groups[c];var v=S.getItems();r[c]=te(v).call(v,function(w){return f[w[n]]=w[n],w[n]!==s[w[n]]});var m=o[c];o[c]-=r[c].length,r[c].length<m&&(r[c][m-1]={})}}for(l=0;l<a.length;l++)if(d=a[l],c=d.group,c==null&&(c=Fl),!(!t&&e&&d[n]!==s[d[n]]&&f.hasOwnProperty(d[n]))){r.hasOwnProperty(c)||(r[c]=new Array(o[c]));var g=x.bridgeObject(d);g.x=x.convert(d.x,"Date"),g.end=x.convert(d.end,"Date"),g.orginalY=d.y,g.y=Number(d.y),g[n]=d[n];var b=r[c].length-o[c]--;r[c][b]=g}for(c in this.groups)this.groups.hasOwnProperty(c)&&(r.hasOwnProperty(c)||(r[c]=new Array(0)));for(c in r)if(r.hasOwnProperty(c))if(r[c].length==0)this.groups.hasOwnProperty(c)&&this._removeGroup(c);else{var S=void 0;this.groupsData!=null&&(S=this.groupsData.get(c)),S==null&&(S={id:c,content:this.options.defaultGroup+c}),this._updateGroup(S,c),this.groups[c].setItems(r[c])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}};Ae.prototype.redraw=function(){var e=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,e=this._isResized()||e;var t=this.body.range.end-this.body.range.start,r=t!=this.lastVisibleInterval;if(this.lastVisibleInterval=t,e==!0){var a;this.svg.style.width=x.option.asSize(3*this.props.width),this.svg.style.left=x.option.asSize(-this.props.width),(Ce(a=this.options.height+"").call(a,"%")!=-1||this.updateSVGheightOnResize==!0)&&(this.updateSVGheight=!0)}if(this.updateSVGheight==!0?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",e==!0||r==!0||this.abortedGraphUpdate==!0||this.forceGraphUpdate==!0)e=this._updateGraph()||e,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(this.lastStart!=0){var n=this.body.range.start-this.lastStart,s=this.body.range.end-this.body.range.start;if(this.props.width!=0){var o=this.props.width/s,l=n*o;this.svg.style.left=-this.props.width-l+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),e};Ae.prototype._getSortedGroupIds=function(){var e=[];for(var t in this.groups)if(this.groups.hasOwnProperty(t)){var r=this.groups[t];r.visible==!0&&(this.options.groups.visibility[t]===void 0||this.options.groups.visibility[t]==!0)&&e.push({id:t,zIndex:r.options.zIndex})}x.insertSort(e,function(s,o){var l=s.zIndex,d=o.zIndex;return l===void 0&&(l=0),d===void 0&&(d=0),l==d?0:l<d?-1:1});for(var a=new Array(e.length),n=0;n<e.length;n++)a[n]=e[n].id;return a};Ae.prototype._updateGraph=function(){if(wn(this.svgElements),this.props.width!=0&&this.itemsData!=null){var e,t,r={},a=!1,n=this.body.util.toGlobalTime(-this.body.domProps.root.width),s=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(o.length>0){var l={};for(this._getRelevantData(o,l,n,s),this._applySampling(o,l),t=0;t<o.length;t++)this._convertXcoordinates(l[o[t]]);if(this._getYRanges(o,l,r),a=this._updateYAxis(o,r),a==!0)return sr(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var d=void 0;for(t=0;t<o.length;t++)e=this.groups[o[t]],this.options.stack===!0&&this.options.style==="line"&&(e.options.excludeFromStacking==null||!e.options.excludeFromStacking)&&(d!=null&&(this._stack(l[e.id],l[d.id]),e.options.shaded.enabled==!0&&e.options.shaded.orientation!=="group"&&(e.options.shaded.orientation=="top"&&d.options.shaded.orientation!=="group"?(d.options.shaded.orientation="group",d.options.shaded.groupId=e.id):(e.options.shaded.orientation="group",e.options.shaded.groupId=d.id))),d=e),this._convertYcoordinates(l[o[t]],e);var c={};for(t=0;t<o.length;t++)if(e=this.groups[o[t]],e.options.style==="line"&&e.options.shaded.enabled==!0){var f=l[o[t]];if(f==null||f.length==0)continue;if(c.hasOwnProperty(o[t])||(c[o[t]]=pt.calcPath(f,e)),e.options.shaded.orientation==="group"){var v=e.options.shaded.groupId;if(Ce(o).call(o,v)===-1){console.log(e.id+": Unknown shading group target given:"+v);continue}c.hasOwnProperty(v)||(c[v]=pt.calcPath(l[v],this.groups[v])),pt.drawShading(c[o[t]],e,c[v],this.framework)}else pt.drawShading(c[o[t]],e,void 0,this.framework)}for($t.draw(o,l,this.framework),t=0;t<o.length;t++)if(e=this.groups[o[t]],l[o[t]].length>0)switch(e.options.style){case"line":c.hasOwnProperty(o[t])||(c[o[t]]=pt.calcPath(l[o[t]],e)),pt.draw(c[o[t]],e,this.framework);case"point":case"points":(e.options.style=="point"||e.options.style=="points"||e.options.drawPoints.enabled==!0)&&no.draw(l[o[t]],e,this.framework);break}}}return sr(this.svgElements),!1};Ae.prototype._stack=function(e,t){var r,a,n,s,o;r=0;for(var l=0;l<e.length;l++){s=void 0,o=void 0;for(var d=r;d<t.length;d++)if(t[d].x===e[l].x){s=t[d],o=t[d],r=d;break}else if(t[d].x>e[l].x){o=t[d],d==0?s=o:s=t[d-1],r=d;break}o===void 0&&(s=t[t.length-1],o=t[t.length-1]),a=o.x-s.x,n=o.y-s.y,a==0?e[l].y=e[l].orginalY+o.y:e[l].y=e[l].orginalY+n/a*(e[l].x-s.x)+s.y}};Ae.prototype._getRelevantData=function(e,t,r,a){var n,s,o,l;if(e.length>0)for(s=0;s<e.length;s++){n=this.groups[e[s]];var d=n.getItems();if(Ze(n.options)==!0){var c=function(b,S){return b.getTime()==S.getTime()?0:b<S?-1:1},f=Math.max(0,x.binarySearchValue(d,r,"x","before",c)),v=Math.min(d.length,x.binarySearchValue(d,a,"x","after",c)+1);v<=0&&(v=d.length);var m=new Array(v-f);for(o=f;o<v;o++)l=n.itemsData[o],m[o-f]=l;t[e[s]]=m}else t[e[s]]=n.itemsData}};Ae.prototype._applySampling=function(e,t){var r;if(e.length>0){for(var a=0;a<e.length;a++)if(r=this.groups[e[a]],r.options.sampling==!0){var n=t[e[a]];if(n.length>0){var s=1,o=n.length,l=this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x),d=o/l;s=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(d)));for(var c=new Array(o),f=0;f<o;f+=s){var v=Math.round(f/s);c[v]=n[f]}t[e[a]]=xt(c).call(c,0,Math.round(o/s))}}}};Ae.prototype._getYRanges=function(e,t,r){var a,n,s,o=[],l=[],d;if(e.length>0){for(s=0;s<e.length;s++)a=t[e[s]],d=this.groups[e[s]].options,a.length>0&&(n=this.groups[e[s]],d.stack===!0&&d.style==="bar"?d.yAxisOrientation==="left"?o=Me(o).call(o,a):l=Me(l).call(l,a):r[e[s]]=n.getYRange(a,e[s]));$t.getStackedYRange(o,r,e,"__barStackLeft","left"),$t.getStackedYRange(l,r,e,"__barStackRight","right")}};Ae.prototype._updateYAxis=function(e,t){var r=!1,a=!1,n=!1,s=1e9,o=1e9,l=-1e9,d=-1e9,c,f;if(e.length>0){for(var v=0;v<e.length;v++){var m=this.groups[e[v]];m&&m.options.yAxisOrientation!="right"?(a=!0,s=1e9,l=-1e9):m&&m.options.yAxisOrientation&&(n=!0,o=1e9,d=-1e9)}for(v=0;v<e.length;v++)t.hasOwnProperty(e[v])&&t[e[v]].ignore!==!0&&(c=t[e[v]].min,f=t[e[v]].max,t[e[v]].yAxisOrientation!="right"?(a=!0,s=s>c?c:s,l=l<f?f:l):(n=!0,o=o>c?c:o,d=d<f?f:d));a==!0&&this.yAxisLeft.setRange(s,l),n==!0&&this.yAxisRight.setRange(o,d)}r=this._toggleAxisVisiblity(a,this.yAxisLeft)||r,r=this._toggleAxisVisiblity(n,this.yAxisRight)||r,n==!0&&a==!0?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!a,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==!1?(n==!0?this.yAxisLeft.lineOffset=this.yAxisRight.width:this.yAxisLeft.lineOffset=0,r=this.yAxisLeft.redraw()||r,r=this.yAxisRight.redraw()||r):r=this.yAxisRight.redraw()||r;var g=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(v=0;v<g.length;v++)Ce(e).call(e,g[v])!=-1&&xt(e).call(e,Ce(e).call(e,g[v]),1);return r};Ae.prototype._toggleAxisVisiblity=function(e,t){var r=!1;return e==!1?t.dom.frame.parentNode&&t.hidden==!1&&(t.hide(),r=!0):!t.dom.frame.parentNode&&t.hidden==!0&&(t.show(),r=!0),r};Ae.prototype._convertXcoordinates=function(e){for(var t=this.body.util.toScreen,r=0;r<e.length;r++)e[r].screen_x=t(e[r].x)+this.props.width,e[r].screen_y=e[r].y,e[r].end!=null?e[r].screen_end=t(e[r].end)+this.props.width:e[r].screen_end=void 0};Ae.prototype._convertYcoordinates=function(e,t){var r=this.yAxisLeft,a=Number(this.svg.style.height.replace("px",""));t.options.yAxisOrientation=="right"&&(r=this.yAxisRight);for(var n=0;n<e.length;n++)e[n].screen_y=Math.round(r.convertValue(e[n].y));t.setZeroPosition(Math.min(a,r.convertValue(0)))};var de="string",ye="boolean",De="number",BJ="array",Gi="date",He="object",HJ="dom",zi="moment",t_="any",WJ={configure:{enabled:{boolean:ye},filter:{boolean:ye,function:"function"},container:{dom:HJ},__type__:{object:He,boolean:ye,function:"function"}},alignCurrentTime:{string:de,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:de},sort:{boolean:ye},sampling:{boolean:ye},stack:{boolean:ye},graphHeight:{string:de,number:De},shaded:{enabled:{boolean:ye},orientation:{string:["bottom","top","zero","group"]},groupId:{object:He},__type__:{boolean:ye,object:He}},style:{string:["line","bar","points"]},barChart:{width:{number:De},minWidth:{number:De},sideBySide:{boolean:ye},align:{string:["left","center","right"]},__type__:{object:He}},interpolation:{enabled:{boolean:ye},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:De},__type__:{object:He,boolean:ye}},drawPoints:{enabled:{boolean:ye},onRender:{function:"function"},size:{number:De},style:{string:["square","circle"]},__type__:{object:He,boolean:ye,function:"function"}},dataAxis:{showMinorLabels:{boolean:ye},showMajorLabels:{boolean:ye},showWeekScale:{boolean:ye},icons:{boolean:ye},width:{string:de,number:De},visible:{boolean:ye},alignZeros:{boolean:ye},left:{range:{min:{number:De,undefined:"undefined"},max:{number:De,undefined:"undefined"},__type__:{object:He}},format:{function:"function"},title:{text:{string:de,number:De,undefined:"undefined"},style:{string:de,undefined:"undefined"},__type__:{object:He}},__type__:{object:He}},right:{range:{min:{number:De,undefined:"undefined"},max:{number:De,undefined:"undefined"},__type__:{object:He}},format:{function:"function"},title:{text:{string:de,number:De,undefined:"undefined"},style:{string:de,undefined:"undefined"},__type__:{object:He}},__type__:{object:He}},__type__:{object:He}},legend:{enabled:{boolean:ye},icons:{boolean:ye},left:{visible:{boolean:ye},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:He}},right:{visible:{boolean:ye},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:He}},__type__:{object:He,boolean:ye}},groups:{visibility:{any:t_},__type__:{object:He}},autoResize:{boolean:ye},throttleRedraw:{number:De},clickToUse:{boolean:ye},end:{number:De,date:Gi,string:de,moment:zi},format:{minorLabels:{millisecond:{string:de,undefined:"undefined"},second:{string:de,undefined:"undefined"},minute:{string:de,undefined:"undefined"},hour:{string:de,undefined:"undefined"},weekday:{string:de,undefined:"undefined"},day:{string:de,undefined:"undefined"},week:{string:de,undefined:"undefined"},month:{string:de,undefined:"undefined"},quarter:{string:de,undefined:"undefined"},year:{string:de,undefined:"undefined"},__type__:{object:He}},majorLabels:{millisecond:{string:de,undefined:"undefined"},second:{string:de,undefined:"undefined"},minute:{string:de,undefined:"undefined"},hour:{string:de,undefined:"undefined"},weekday:{string:de,undefined:"undefined"},day:{string:de,undefined:"undefined"},week:{string:de,undefined:"undefined"},month:{string:de,undefined:"undefined"},quarter:{string:de,undefined:"undefined"},year:{string:de,undefined:"undefined"},__type__:{object:He}},__type__:{object:He}},moment:{function:"function"},height:{string:de,number:De},hiddenDates:{start:{date:Gi,number:De,string:de,moment:zi},end:{date:Gi,number:De,string:de,moment:zi},repeat:{string:de},__type__:{object:He,array:BJ}},locale:{string:de},locales:{__any__:{any:t_},__type__:{object:He}},max:{date:Gi,number:De,string:de,moment:zi},maxHeight:{number:De,string:de},maxMinorChars:{number:De},min:{date:Gi,number:De,string:de,moment:zi},minHeight:{number:De,string:de},moveable:{boolean:ye},multiselect:{boolean:ye},orientation:{string:de},showCurrentTime:{boolean:ye},showMajorLabels:{boolean:ye},showMinorLabels:{boolean:ye},showWeekScale:{boolean:ye},snap:{function:"function",null:"null"},start:{date:Gi,number:De,string:de,moment:zi},timeAxis:{scale:{string:de,undefined:"undefined"},step:{number:De,undefined:"undefined"},__type__:{object:He}},width:{string:de,number:De},zoomable:{boolean:ye},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:De},zoomMin:{number:De},zIndex:{number:De},__type__:{object:He}},GJ={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function pn(e,t,r,a){var n,s,o,l,d,c,f;if(!(ae(r)||on(r))&&r instanceof Object){var v=a;a=r,r=v}a&&a.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var m=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Tt,width:null,height:null,maxHeight:null,minHeight:null},this.options=x.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:P(n=this.on).call(n,this),off:P(s=this.off).call(s,this),emit:P(o=this.emit).call(o,this)},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:P(l=m._toScreen).call(l,m),toGlobalScreen:P(d=m._toGlobalScreen).call(d,m),toTime:P(c=m._toTime).call(c,m),toGlobalTime:P(f=m._toGlobalTime).call(f,m)}},this.range=new f1(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new Rl(this.body),this.components.push(this.timeAxis),this.currentTime=new S1(this.body),this.components.push(this.currentTime),this.linegraph=new Ae(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(g){m.emit("click",m.getEventProperties(g))}),this.on("doubletap",function(g){m.emit("doubleClick",m.getEventProperties(g))}),this.dom.root.oncontextmenu=function(g){m.emit("contextmenu",m.getEventProperties(g))},this.initialFitDone=!1,this.on("changed",function(){if(m.itemsData!=null){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,m.options.start!=null||m.options.end!=null){if(m.options.start==null||m.options.end==null)var g=m.getItemRange();var b=m.options.start!=null?m.options.start:g.min,S=m.options.end!=null?m.options.end:g.max;m.setWindow(b,S,{animation:!1})}else m.fit({animation:!1});!m.initialDrawDone&&(m.initialRangeChangeDone||!m.options.start&&!m.options.end||m.options.rollingMode)&&(m.initialDrawDone=!0,m.dom.root.style.visibility="visible",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&_t(function(){return m.options.onInitialDrawComplete()},0))}}),a&&this.setOptions(a),r&&this.setGroups(r),t&&this.setItems(t),this._redraw()}pn.prototype=new sa;pn.prototype.setOptions=function(e){var t=D1.validate(e,WJ);t===!0&&console.log("%cErrors have been found in the supplied options object.",Vl),sa.prototype.setOptions.call(this,e)};pn.prototype.setItems=function(e){var t=this.itemsData==null,r;if(e?on(e)?r=ba(e):r=ba(new pi(e)):r=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=r,this.linegraph&&this.linegraph.setItems(r!=null?r.rawDS:null),t)if(this.options.start!=null||this.options.end!=null){var a=this.options.start!=null?this.options.start:null,n=this.options.end!=null?this.options.end:null;this.setWindow(a,n,{animation:!1})}else this.fit({animation:!1})};pn.prototype.setGroups=function(e){var t;e?on(e)?t=e:t=new pi(e):t=null,this.groupsData=t,this.linegraph.setGroups(t)};pn.prototype.getLegend=function(e,t,r){return t===void 0&&(t=15),r===void 0&&(r=15),this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].getLegend(t,r):"cannot find group:'"+e+"'"};pn.prototype.isGroupVisible=function(e){return this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].visible&&(this.linegraph.options.groups.visibility[e]===void 0||this.linegraph.options.groups.visibility[e]==!0):!1};pn.prototype.getDataRange=function(){var e=null,t=null;for(var r in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(r)&&this.linegraph.groups[r].visible==!0)for(var a=0;a<this.linegraph.groups[r].itemsData.length;a++){var n=this.linegraph.groups[r].itemsData[a],s=x.convert(n.x,"Date").valueOf();e=e==null||e>s?s:e,t=t==null||t<s?s:t}return{min:e!=null?new Date(e):null,max:t!=null?new Date(t):null}};pn.prototype.getEventProperties=function(e){var t=e.center?e.center.x:e.clientX,r=e.center?e.center.y:e.clientY,a=t-x.getAbsoluteLeft(this.dom.centerContainer),n=r-x.getAbsoluteTop(this.dom.centerContainer),s=this._toTime(a),o=zf.customTimeFromTarget(e),l=x.getTarget(e),d=null;x.hasParent(l,this.timeAxis.dom.foreground)||this.timeAxis2&&x.hasParent(l,this.timeAxis2.dom.foreground)?d="axis":x.hasParent(l,this.linegraph.yAxisLeft.dom.frame)||x.hasParent(l,this.linegraph.yAxisRight.dom.frame)?d="data-axis":x.hasParent(l,this.linegraph.legendLeft.dom.frame)||x.hasParent(l,this.linegraph.legendRight.dom.frame)?d="legend":o!=null?d="custom-time":x.hasParent(l,this.currentTime.bar)?d="current-time":x.hasParent(l,this.dom.center)&&(d="background");var c=[],f=this.linegraph.yAxisLeft,v=this.linegraph.yAxisRight;return!f.hidden&&this.itemsData.length>0&&c.push(f.screenToValue(n)),!v.hidden&&this.itemsData.length>0&&c.push(v.screenToValue(n)),{event:e,customTime:o?o.options.id:null,what:d,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:a,y:n,time:s,value:c}};pn.prototype._createConfigurator=function(){return new N1(this,this.dom.container,GJ)};var zJ=GH();Tt.locale(zJ);const UJ=h.defineComponent({name:"reason-explained-modal",components:{},props:{reason_explained:Object,reason:Object},setup(){return{}}}),Nr=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},KJ={class:"modal fade",id:"chargeback_reason_explained",tabindex:"1","aria-hidden":"true"},qJ={class:"modal-dialog mw-650px"},XJ={class:"card card-body"},QJ={class:"card-title fs-5 fw-bolder"},ZJ={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.svg",alt:"",class:"h-25px pe-5"},JJ={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.svg",alt:"",class:"h-25px pe-5"},eee={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.svg",alt:"",class:"h-25px pe-5"},tee={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.svg",alt:"",class:"h-25px pe-5"},ree={class:"mh-300px scroll-y m-5 py-5"},nee={class:"d-flex align-items-center"},iee={class:"ms-5"},aee={class:"fw-bold text-gray-800"};function see(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",KJ,[h.createElementVNode("div",qJ,[h.createElementVNode("div",XJ,[h.createElementVNode("div",QJ,[e.reason.card_brand==="Visa"?(h.openBlock(),h.createElementBlock("img",ZJ)):h.createCommentVNode("",!0),e.reason.card_brand==="American Express"?(h.openBlock(),h.createElementBlock("img",JJ)):h.createCommentVNode("",!0),e.reason.card_brand==="Mastercard"?(h.openBlock(),h.createElementBlock("img",eee)):h.createCommentVNode("",!0),e.reason.card_brand==="Discover"?(h.openBlock(),h.createElementBlock("img",tee)):h.createCommentVNode("",!0),h.createTextVNode(" "+h.toDisplayString(e.reason.code),1)]),h.createElementVNode("div",null,h.toDisplayString(e.reason.message),1),h.createElementVNode("div",ree,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.reason_explained.message.explanations,(o,l)=>(h.openBlock(),h.createElementBlock("div",{key:l,class:"d-flex flex-stack py-4 border-bottom border-gray-300 border-bottom-dashed"},[h.createElementVNode("div",nee,[h.createElementVNode("div",iee,[h.createElementVNode("div",aee,h.toDisplayString(o),1)])])]))),128))])])])])}const oee=Nr(UJ,[["render",see]]),lee=h.defineComponent({name:"nmi-details",props:{incoming:{type:Object,required:!0}},setup(e){const t=h.toRef(e,"incoming"),r=h.computed(()=>{var c;return(c=e.incoming)==null?void 0:c.card_holder}),a=h.computed(()=>{var c;return(c=e.incoming)==null?void 0:c.card}),n=h.computed(()=>{var c,f;return((f=(c=e.incoming)==null?void 0:c.transaction)==null?void 0:f.action)||[]}),s=h.computed(()=>{var c,f;return((f=(c=e.incoming)==null?void 0:c.order_details)==null?void 0:f.items)||[]}),o=h.computed(()=>e.incoming.transaction),l=h.computed(()=>{const c=n.value;return c.length>0?c[c.length-1].response_text:null}),d=h.computed(()=>{const c=r.value.phone||"";return c.length===10?`1 (${c.slice(0,3)}) ${c.slice(3,6)}-${c.slice(6)}`:c});return{lastAction:l,formattedPhone:d,card:a,incomingData:t,transaction:o,actions:n,orders:s,cardholder:r}}}),dee={class:"accordion-item"},cee={id:"kt_accordion_4_body_4",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_4_body_4","data-bs-parent":"#kt_accordion_1"},uee={class:"accordion-body pb-1"},hee={class:"d-flex flex-wrap py-2 fs-7"},fee={class:"flex-equal ms-2 me-5"},pee={class:"table table-flush fw-bold gy-1"},vee={class:"text-gray-800"},mee={class:"text-gray-800"},gee={class:"text-gray-800"},yee={class:"text-gray-800"},_ee={class:"text-gray-800"},bee={class:"flex-equal"},wee={class:"table table-flush fw-bold gy-1"},Eee={class:"text-gray-800 text-hover-primary"},See={class:"text-gray-800 text-hover-primary"},kee={class:"text-gray-800 text-hover-primary"},xee={class:"text-gray-800 text-hover-primary"},Tee={class:"text-gray-800 text-hover-primary"};function $ee(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",dee,[t[10]||(t[10]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_4_header_4"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_4_body_4","aria-expanded":"false","aria-controls":"kt_accordion_4_body_4"}," Transaction Details ")],-1)),h.createElementVNode("div",cee,[h.createElementVNode("div",uee,[h.createElementVNode("div",hee,[h.createElementVNode("div",fee,[h.createElementVNode("table",pee,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[0]||(t[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"Transaction Id:",-1)),h.createElementVNode("td",vee,h.toDisplayString(e.transaction.transaction_id),1)]),h.createElementVNode("tr",null,[t[1]||(t[1]=h.createElementVNode("td",{class:"text-muted w-auto"},"Auth Code:",-1)),h.createElementVNode("td",mee,h.toDisplayString(e.transaction.authorization_code),1)]),h.createElementVNode("tr",null,[t[2]||(t[2]=h.createElementVNode("td",{class:"text-muted w-auto"},"CAVV:",-1)),h.createElementVNode("td",gee,h.toDisplayString(e.transaction.cavv),1)]),h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted w-auto"},"ECI:",-1)),h.createElementVNode("td",yee,h.toDisplayString(e.transaction.eci),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Trans Date:",-1)),h.createElementVNode("td",_ee,h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].date:e.transaction.action.date),1)])])])]),h.createElementVNode("div",bee,[h.createElementVNode("table",wee,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Amount:",-1)),h.createElementVNode("td",Eee," $"+h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].amount:e.transaction.action.amount),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",See,h.toDisplayString(e.transaction.avs_response),1)]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CSC:",-1)),h.createElementVNode("td",kee,h.toDisplayString(e.transaction.csc_response),1)]),h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CC Bin:",-1)),h.createElementVNode("td",xee,h.toDisplayString(e.transaction.cc_bin),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CC Number:",-1)),h.createElementVNode("td",Tee,h.toDisplayString(e.transaction.cc_number),1)])])])])])])])])}const Dee=Nr(lee,[["render",$ee],["__scopeId","data-v-5d7c95ae"]]),Nee=h.defineComponent({name:"usaepay-details",props:{incoming:Object},setup(){return{}}}),Cee={class:"rounded border pt-0 mb-5"},Oee={class:"accordion",id:"kt_accordion_1"},Aee={class:"accordion-item"},Iee={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},Pee={class:"accordion-body"},Mee={class:"mb-0"},Ree={class:"table table-flush fw-bold gy-1"},Lee={class:"text-gray-800"},Vee={class:"text-gray-800"},Fee={class:"text-gray-800"},Yee={class:"text-gray-800"},jee={class:"text-gray-800"},Bee={class:"text-gray-800"},Hee={class:"text-gray-800"},Wee={class:"text-gray-800"},Gee={class:"text-gray-800"},zee={class:"text-gray-800"},Uee={class:"accordion-item"},Kee={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},qee={class:"accordion-body"},Xee={class:"mb-0"},Qee={class:"accordion-item"},Zee={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Jee={class:"accordion-body"},ete={class:"mb-0"};function tte(e,t,r,a,n,s){var o,l,d,c,f,v,m,g,b,S,w,k;return h.openBlock(),h.createElementBlock("div",Cee,[h.createElementVNode("div",Oee,[h.createElementVNode("div",Aee,[t[14]||(t[14]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Location Member Details ")],-1)),h.createElementVNode("div",Iee,[h.createElementVNode("div",Pee,[h.createElementVNode("div",Mee,[h.createElementVNode("table",Ree,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[0]||(t[0]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," Account Holder: ",-1)),h.createElementVNode("td",Lee,h.toDisplayString((o=e.incoming)==null?void 0:o.transaction.AccountHolder),1),t[1]||(t[1]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",Vee,h.toDisplayString((l=e.incoming)==null?void 0:l.transaction.Response.RefNum),1)]),t[10]||(t[10]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[t[2]||(t[2]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," Batch Number: ",-1)),h.createElementVNode("td",Fee,h.toDisplayString((d=e.incoming)==null?void 0:d.transaction.Response.BatchNum),1),t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Batch RefNumber: ",-1)),h.createElementVNode("td",Yee,h.toDisplayString((c=e.incoming)==null?void 0:c.transaction.Response.BatchRefNum),1)]),t[11]||(t[11]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"},"Result:",-1)),h.createElementVNode("td",jee,h.toDisplayString((f=e.incoming)==null?void 0:f.transaction.Response.Result),1),t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Result Code:",-1)),h.createElementVNode("td",Bee,h.toDisplayString((v=e.incoming)==null?void 0:v.transaction.Response.ResultCode),1)]),t[12]||(t[12]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Hee,h.toDisplayString((m=e.incoming)==null?void 0:m.transaction.Response.Status),1),t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status Code:",-1)),h.createElementVNode("td",Wee,h.toDisplayString((g=e.incoming)==null?void 0:g.transaction.Response.StatusCode),1)]),t[13]||(t[13]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," CardPresent: ",-1)),h.createElementVNode("td",Gee,h.toDisplayString((b=e.incoming)==null?void 0:b.transaction.CreditCardData.CardPresent),1),t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Product:",-1)),h.createElementVNode("td",zee,h.toDisplayString((S=e.incoming)==null?void 0:S.order_details.items[0].name),1)])])])])])])]),h.createElementVNode("div",Uee,[t[15]||(t[15]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",Kee,[h.createElementVNode("div",qee,[h.createElementVNode("div",Xee,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((w=e.incoming)==null?void 0:w.connection_id),1)])])])]),h.createElementVNode("div",Qee,[t[16]||(t[16]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Zee,[h.createElementVNode("div",Jee,[h.createElementVNode("div",ete,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((k=e.incoming)==null?void 0:k.connection_id),1)])])])])])])}const rte=Nr(Nee,[["render",tte]]),nte=h.defineComponent({name:"squareup-details",props:{incoming:Object},setup(){return{}}}),ite={class:"rounded border pt-0 mb-5"},ate={class:"accordion fs-7",id:"kt_accordion_1"},ste={class:"accordion-item"},ote={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},lte={class:"accordion-body"},dte={class:"mb-0"},cte={class:"table-responsive"},ute={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},hte={class:"fw-bold text-gray-800"},fte={class:"w-50px"},pte={class:"w-50px"},vte={class:"w-50px text-end pe-5"},mte={class:"accordion-item"},gte={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},yte={class:"accordion-body"},_te={class:"mb-0"},bte={class:"d-flex flex-wrap py-2"},wte={class:"flex-equal ms-2 me-2"},Ete={class:"table table-flush fw-bold gy-1 mb-0"},Ste={class:"text-gray-800"},kte={class:"text-gray-800"},xte={class:"text-gray-800"},Tte={class:"text-gray-800"},$te={class:"text-gray-800"},Dte={class:"flex-equal ms-2 me-2"},Nte={class:"table table-flush fw-bold gy-1"},Cte={class:"text-gray-800"},Ote={class:"text-gray-800"},Ate={class:"text-gray-800"},Ite={class:"text-gray-800"},Pte={class:"text-gray-800"},Mte={class:"accordion-item"},Rte={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Lte={class:"accordion-body"},Vte={class:"mb-0"},Fte={class:"d-flex flex-wrap py-5"},Yte={class:"flex-equal ms-2 me-5"},jte={class:"table table-flush fw-bold gy-1"},Bte={class:"text-gray-800 text-hover-primary"},Hte={class:"text-gray-800 text-hover-primary"},Wte={class:"text-gray-800 text-hover-primary"},Gte={class:"text-gray-800 text-hover-primary"},zte={class:"flex-equal"},Ute={class:"table table-flush fw-bold gy-1"},Kte={class:"text-gray-800"},qte={class:"text-gray-800"},Xte={class:"text-gray-800"},Qte={class:"text-gray-800 pt-4"};function Zte(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",ite,[h.createElementVNode("div",ate,[h.createElementVNode("div",ste,[t[1]||(t[1]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",ote,[h.createElementVNode("div",lte,[h.createElementVNode("div",dte,[h.createElementVNode("div",cte,[h.createElementVNode("table",ute,[t[0]||(t[0]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Line Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Type"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",hte,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.order.line_items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",fte,h.toDisplayString(o.uid),1)]),h.createElementVNode("td",null,h.toDisplayString(o.item_type),1),h.createElementVNode("td",pte,h.toDisplayString(o.quantity),1),h.createElementVNode("td",vte,h.toDisplayString(o.base_price_money.amount),1)]))),128))])])])])])])]),h.createElementVNode("div",mte,[t[12]||(t[12]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",gte,[h.createElementVNode("div",yte,[h.createElementVNode("div",_te,[h.createElementVNode("div",bte,[h.createElementVNode("div",wte,[h.createElementVNode("table",Ete,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[2]||(t[2]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",Ste,h.toDisplayString(e.incoming.transaction.payment.id),1)]),h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",kte,h.toDisplayString(e.incoming.transaction.payment.delay_duration),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",xte,h.toDisplayString(e.incoming.transaction.payment.card_details.avs_status),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",Tte,h.toDisplayString(e.incoming.transaction.payment.card_details.cvv_status),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Created Date: ",-1)),h.createElementVNode("td",$te,h.toDisplayString(e.incoming.transaction.payment.created_at),1)])])])]),h.createElementVNode("div",Dte,[h.createElementVNode("table",Nte,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",Cte,h.toDisplayString(e.incoming.transaction.payment.order_id),1)]),h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Ote,h.toDisplayString(e.incoming.transaction.payment.status),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",Ate,h.toDisplayString(e.incoming.transaction.payment.card_details.status),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Receipt Number: ",-1)),h.createElementVNode("td",Ite,h.toDisplayString(e.incoming.transaction.payment.receipt_number),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Pte,h.toDisplayString(e.incoming.transaction.payment.card_details.statement_description),1)])])])])])])])])]),h.createElementVNode("div",Mte,[t[22]||(t[22]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Rte,[h.createElementVNode("div",Lte,[h.createElementVNode("div",Vte,[h.createElementVNode("div",Fte,[h.createElementVNode("div",Yte,[h.createElementVNode("table",jte,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[13]||(t[13]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Bte,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",Hte,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Wte,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[t[17]||(t[17]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",Gte,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),t[16]||(t[16]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",zte,[h.createElementVNode("table",Ute,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[18]||(t[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",Kte,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[t[19]||(t[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Source:",-1)),h.createElementVNode("td",qte,h.toDisplayString(e.incoming.card_holder.source),1)]),h.createElementVNode("tr",null,[t[20]||(t[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),h.createElementVNode("td",Xte,h.toDisplayString(e.incoming.card_holder.phone),1)]),h.createElementVNode("tr",null,[t[21]||(t[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},[h.createTextVNode(" Email "),h.createElementVNode("br"),h.createTextVNode(" Subscription: ")],-1)),h.createElementVNode("td",Qte,h.toDisplayString(e.incoming.card_holder.preferences),1)])])])])])])])])])])])}const Jte=Nr(nte,[["render",Zte]]),ere=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),tre={class:"rounded border pt-0 mb-5"},rre={class:"accordion fs-7",id:"kt_accordion_1"},nre={class:"accordion-item"},ire={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},are={class:"accordion-body"},sre={class:"mb-0"},ore={key:0,class:"d-flex flex-wrap py-5"},lre={key:1,class:"table-responsive"},dre={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},cre={class:"fw-bold text-gray-800"},ure={class:"w-50px"},hre={class:"w-50px"},fre={class:"w-50px text-end pe-5"},pre={class:"accordion-item"},vre={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},mre={class:"accordion-body"},gre={class:"mb-0"},yre={class:"d-flex flex-wrap py-2"},_re={class:"flex-equal ms-2 me-2"},bre={class:"table table-flush fw-bold gy-1 mb-0"},wre={class:"text-gray-800"},Ere={class:"text-gray-800"},Sre={class:"text-gray-800"},kre={class:"text-gray-800"},xre={class:"text-gray-800"},Tre={class:"flex-equal ms-2 me-2"},$re={class:"table table-flush fw-bold gy-1"},Dre={class:"text-gray-800"},Nre={class:"text-gray-800"},Cre={class:"text-gray-800"},Ore={class:"text-gray-800"},Are={class:"text-gray-800"},Ire={class:"accordion-item"},Pre={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Mre={class:"accordion-body"},Rre={class:"mb-0"},Lre={class:"d-flex flex-wrap py-5"},Vre={class:"flex-equal ms-2 me-5"},Fre={class:"table table-flush fw-bold gy-1"},Yre={class:"text-gray-800 text-hover-primary"},jre={class:"text-gray-800 text-hover-primary"},Bre={class:"text-gray-800 text-hover-primary"},Hre={class:"text-gray-800 text-hover-primary"},Wre={class:"flex-equal"},Gre={class:"table table-flush fw-bold gy-1"},zre={class:"text-gray-800"},Ure={class:"text-gray-800"},Kre={class:"text-gray-800"},qre={class:"text-gray-800"};function Xre(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",tre,[h.createElementVNode("div",rre,[h.createElementVNode("div",nre,[t[2]||(t[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",ire,[h.createElementVNode("div",are,[h.createElementVNode("div",sre,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",ore,t[0]||(t[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",lre,[h.createElementVNode("table",dre,[t[1]||(t[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",cre,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",ure,h.toDisplayString(o.id),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",hre,h.toDisplayString(o.quantity),1),h.createElementVNode("td",fre,h.toDisplayString(o.unit_price),1)]))),128))])])]))])])])]),h.createElementVNode("div",pre,[t[13]||(t[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",vre,[h.createElementVNode("div",mre,[h.createElementVNode("div",gre,[h.createElementVNode("div",yre,[h.createElementVNode("div",_re,[h.createElementVNode("table",bre,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",wre,h.toDisplayString(e.incoming.transaction.id),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",Ere,h.toDisplayString(e.incoming.transaction.response.card.auth_code),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",Sre,h.toDisplayString(e.incoming.transaction.response.card.avs_response_code),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",kre,h.toDisplayString(e.incoming.transaction.response.card.cvv_response_code),1)]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",xre,h.toDisplayString(e.incoming.transaction.created_at),1)])])])]),h.createElementVNode("div",Tre,[h.createElementVNode("table",$re,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",Dre,h.toDisplayString(e.incoming.transaction.order_id),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Nre,h.toDisplayString(e.incoming.transaction.response.card.status),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",Cre,h.toDisplayString(e.incoming.transaction.type),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Ore,h.toDisplayString(e.incoming.transaction.description),1)]),h.createElementVNode("tr",null,[t[12]||(t[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Receipt Emailed: ",-1)),h.createElementVNode("td",Are,h.toDisplayString(e.incoming.transaction.email_receipt),1)])])])])])])])])]),h.createElementVNode("div",Ire,[t[23]||(t[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Pre,[h.createElementVNode("div",Mre,[h.createElementVNode("div",Rre,[h.createElementVNode("div",Lre,[h.createElementVNode("div",Vre,[h.createElementVNode("table",Fre,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Yre,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",jre,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[t[16]||(t[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Bre,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[t[18]||(t[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",Hre,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),t[17]||(t[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",Wre,[h.createElementVNode("table",Gre,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[19]||(t[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",zre,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[t[20]||(t[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Source:",-1)),h.createElementVNode("td",Ure,h.toDisplayString(e.incoming.card_holder.source),1)]),h.createElementVNode("tr",null,[t[21]||(t[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),h.createElementVNode("td",Kre,h.toDisplayString(e.incoming.card_holder.phone),1)]),h.createElementVNode("tr",null,[t[22]||(t[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",qre,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const Qre=Nr(ere,[["render",Xre]]),Zre=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),Jre={class:"rounded border pt-0 mb-5"},ene={class:"accordion fs-7",id:"kt_accordion_1"},tne={class:"accordion-item"},rne={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},nne={class:"accordion-body"},ine={class:"mb-0"},ane={key:0,class:"d-flex flex-wrap py-5"},sne={key:1,class:"table-responsive"},one={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},lne={class:"fw-bold text-gray-800"},dne={class:"w-50px"},cne={class:"w-50px"},une={class:"w-50px text-end pe-5"},hne={class:"accordion-item"},fne={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},pne={class:"accordion-body"},vne={class:"mb-0"},mne={class:"d-flex flex-wrap py-2"},gne={class:"flex-equal ms-2 me-2"},yne={class:"table table-flush fw-bold gy-1 mb-0"},_ne={class:"text-gray-800"},bne={class:"text-gray-800"},wne={class:"text-gray-800"},Ene={class:"text-gray-800"},Sne={class:"text-gray-800"},kne={class:"flex-equal ms-2 me-2"},xne={class:"table table-flush fw-bold gy-1"},Tne={class:"text-gray-800"},$ne={class:"text-gray-800"},Dne={class:"text-gray-800"},Nne={class:"text-gray-800"},Cne={class:"text-gray-800"},One={class:"accordion-item"},Ane={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Ine={class:"accordion-body"},Pne={class:"mb-0"},Mne={class:"d-flex flex-wrap py-5"},Rne={class:"flex-equal ms-2 me-5"},Lne={class:"table table-flush fw-bold gy-1"},Vne={class:"text-gray-800 text-hover-primary"},Fne={class:"text-gray-800 text-hover-primary"},Yne={class:"text-gray-800 text-hover-primary"},jne={class:"text-gray-800 text-hover-primary"},Bne={class:"flex-equal"},Hne={class:"table table-flush fw-bold gy-1"},Wne={class:"text-gray-800"},Gne={class:"text-gray-800"},zne={key:0,class:"text-gray-800"},Une={key:1,class:"text-gray-800"},Kne={class:"text-gray-800"};function qne(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",Jre,[h.createElementVNode("div",ene,[h.createElementVNode("div",tne,[t[2]||(t[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",rne,[h.createElementVNode("div",nne,[h.createElementVNode("div",ine,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",ane,t[0]||(t[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",sne,[h.createElementVNode("table",one,[t[1]||(t[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",lne,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",dne,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",cne,h.toDisplayString(o.qty),1),h.createElementVNode("td",une,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",hne,[t[13]||(t[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",fne,[h.createElementVNode("div",pne,[h.createElementVNode("div",vne,[h.createElementVNode("div",mne,[h.createElementVNode("div",gne,[h.createElementVNode("table",yne,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",_ne,h.toDisplayString(e.incoming.transaction["Transaction ID"]),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",bne,h.toDisplayString(e.incoming.transaction["Auth Code"]),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",wne,h.toDisplayString(e.incoming.transaction.AVS),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",Ene,h.toDisplayString(e.incoming.transaction.CVV),1)]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",Sne,h.toDisplayString(e.incoming.transaction.Date),1)])])])]),h.createElementVNode("div",kne,[h.createElementVNode("table",xne,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",Tne,h.toDisplayString(e.incoming.transaction["PPP Order ID"]),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",$ne,h.toDisplayString(e.incoming.transaction["Transaction Result"]),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",Dne,h.toDisplayString(e.incoming.transaction["Transaction Type"]),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Nne,h.toDisplayString(e.incoming.transaction.URL),1)]),h.createElementVNode("tr",null,[t[12]||(t[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Scheme Identifier: ",-1)),h.createElementVNode("td",Cne,h.toDisplayString(e.incoming.transaction["External Scheme Identifier"]),1)])])])])])])])])]),h.createElementVNode("div",One,[t[23]||(t[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Ane,[h.createElementVNode("div",Ine,[h.createElementVNode("div",Pne,[h.createElementVNode("div",Mne,[h.createElementVNode("div",Rne,[h.createElementVNode("table",Lne,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Vne,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",Fne,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[t[16]||(t[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Yne,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[t[18]||(t[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",jne,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),t[17]||(t[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",Bne,[h.createElementVNode("table",Hne,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[19]||(t[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",Wne,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[t[20]||(t[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Lifecycle ID: ",-1)),h.createElementVNode("td",Gne,h.toDisplayString(e.incoming.transaction["Lifecycle ID"]),1)]),h.createElementVNode("tr",null,[t[21]||(t[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),e.incoming.card_holder.phone==""?(h.openBlock(),h.createElementBlock("td",zne," Not Provided ")):(h.openBlock(),h.createElementBlock("td",Une,h.toDisplayString(e.incoming.card_holder.phone),1))]),h.createElementVNode("tr",null,[t[22]||(t[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",Kne,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const Xne=Nr(Zre,[["render",qne]]),Qne=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),Zne={class:"rounded border pt-0 mb-5"},Jne={class:"accordion fs-7",id:"kt_accordion_1"},eie={class:"accordion-item"},tie={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},rie={class:"accordion-body"},nie={class:"mb-0"},iie={key:0,class:"d-flex flex-wrap py-5"},aie={key:1,class:"table-responsive"},sie={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},oie={class:"fw-bold text-gray-800"},lie={class:"w-50px"},die={class:"w-50px"},cie={class:"w-50px text-end pe-5"},uie={class:"accordion-item"},hie={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},fie={class:"accordion-body"},pie={class:"mb-0"},vie={class:"d-flex flex-wrap py-2"},mie={class:"flex-equal ms-2 me-2"},gie={class:"table table-flush fw-bold gy-1 mb-0"},yie={class:"text-gray-800"},_ie={class:"text-gray-800"},bie={class:"text-gray-800"},wie={class:"text-gray-800"},Eie={class:"text-gray-800"},Sie={class:"flex-equal ms-2 me-2"},kie={class:"table table-flush fw-bold gy-1"},xie={class:"text-gray-800"},Tie={class:"text-gray-800"},$ie={class:"text-gray-800"},Die={class:"text-gray-800"},Nie={class:"text-gray-800"},Cie={class:"accordion-item"},Oie={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Aie={class:"accordion-body"},Iie={class:"mb-0"},Pie={class:"d-flex flex-wrap py-5"},Mie={class:"flex-equal ms-2 me-5"},Rie={class:"table table-flush fw-bold gy-1"},Lie={class:"text-gray-800 text-hover-primary"},Vie={class:"text-gray-800 text-hover-primary"},Fie={class:"text-gray-800 text-hover-primary"},Yie={class:"text-gray-800 text-hover-primary"},jie={class:"flex-equal"},Bie={class:"table table-flush fw-bold gy-1"},Hie={class:"text-gray-800"},Wie={class:"text-gray-800"},Gie={key:0,class:"text-gray-800"},zie={key:1,class:"text-gray-800"},Uie={class:"text-gray-800"};function Kie(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",Zne,[h.createElementVNode("div",Jne,[h.createElementVNode("div",eie,[t[2]||(t[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",tie,[h.createElementVNode("div",rie,[h.createElementVNode("div",nie,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",iie,t[0]||(t[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",aie,[h.createElementVNode("table",sie,[t[1]||(t[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",oie,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",lie,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",die,h.toDisplayString(o.qty),1),h.createElementVNode("td",cie,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",uie,[t[13]||(t[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",hie,[h.createElementVNode("div",fie,[h.createElementVNode("div",pie,[h.createElementVNode("div",vie,[h.createElementVNode("div",mie,[h.createElementVNode("table",gie,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",yie,h.toDisplayString(e.incoming.transaction.TRANS_ID),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",_ie,h.toDisplayString(e.incoming.transaction.PROC_AUTH_CODE),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",bie,h.toDisplayString(e.incoming.transaction.AVS_CODE),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",wie,h.toDisplayString(e.incoming.transaction.CVV_CODE),1)]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",Eie,h.toDisplayString(e.incoming.transaction.TRANS_SETTLE_UTC_TS),1)])])])]),h.createElementVNode("div",Sie,[h.createElementVNode("table",kie,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",xie,h.toDisplayString(e.incoming.transaction.PO_ID),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Tie,h.toDisplayString(e.incoming.transaction.TRANS_STATUS),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",$ie,h.toDisplayString(e.incoming.transaction.SERVICE_ACTION),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Die,h.toDisplayString(e.incoming.transaction.DESCRIPTOR),1)]),h.createElementVNode("tr",null,[t[12]||(t[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Card Bank: ",-1)),h.createElementVNode("td",Nie,h.toDisplayString(e.incoming.transaction.CARD_BANK),1)])])])])])])])])]),h.createElementVNode("div",Cie,[t[23]||(t[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Oie,[h.createElementVNode("div",Aie,[h.createElementVNode("div",Iie,[h.createElementVNode("div",Pie,[h.createElementVNode("div",Mie,[h.createElementVNode("table",Rie,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Lie,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",Vie,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[t[16]||(t[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Fie,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[t[18]||(t[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",Yie,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),t[17]||(t[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",jie,[h.createElementVNode("table",Bie,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[19]||(t[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",Hie,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[t[20]||(t[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Rebill:",-1)),h.createElementVNode("td",Wie,h.toDisplayString(e.incoming.transaction.REBILL),1)]),h.createElementVNode("tr",null,[t[21]||(t[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),e.incoming.card_holder.phone==""?(h.openBlock(),h.createElementBlock("td",Gie," Not Provided ")):(h.openBlock(),h.createElementBlock("td",zie,h.toDisplayString(e.incoming.card_holder.phone),1))]),h.createElementVNode("tr",null,[t[22]||(t[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",Uie,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const qie=Nr(Qne,[["render",Kie]]),Xie=h.defineComponent({name:"chargeback-details",components:{ReasonExplained:oee,NmiDetails:Dee,USAEPayDetails:rte,SquareUp:Jte,FluidPayDetails:Qre,NuveiDetails:Xne,InovioPayDetails:qie},props:{reason:Object,reason_explained:Object,incoming:{type:Object,required:!0},merchant:{type:Object,required:!0}},setup(e){const t=h.toRef(e,"incoming"),r=h.ref(null),a=h.ref({height:"265px"}),n=h.ref(null),s=h.computed(()=>{var k;return((k=e.incoming)==null?void 0:k.card_holder)||{}}),o=h.computed(()=>{var k,T;return((T=(k=e.incoming)==null?void 0:k.transaction)==null?void 0:T.action)||[]}),l=h.computed(()=>{var k;return((k=e.incoming)==null?void 0:k.card)??{}}),d=h.computed(()=>{var k,T;return((T=(k=e.incoming)==null?void 0:k.order_details)==null?void 0:T.items)??[]}),c=h.computed(()=>{var k;return((k=e.incoming.order2_details)==null?void 0:k.items)??[]}),f=h.computed(()=>{var k;try{return e.incoming.crm_details?typeof e.incoming.crm_details=="string"?JSON.parse((k=e.incoming)==null?void 0:k.crm_details):e.incoming.crm_details:{}}catch{return{}}}),v=h.computed(()=>{var k;try{return e.incoming.crm2_details?typeof e.incoming.crm2_details=="string"?JSON.parse((k=e.incoming)==null?void 0:k.crm2_details):e.incoming.crm2_details:{}}catch{return{}}}),m=h.computed(()=>{var k,T,D,N,L,A,R,C;return(N=(D=(T=(k=e.incoming)==null?void 0:k.transaction)==null?void 0:T.action)==null?void 0:D[0])!=null&&N.amount||(R=(A=(L=e.incoming)==null?void 0:L.transaction)==null?void 0:A.action)!=null&&R.amount?(C=e.incoming)==null?void 0:C.transaction:null}),g=h.computed(()=>{const k=[];let T=1;return t.value.dispute_date!==void 0&&new Date(t.value.dispute_date).getTime()>0&&(k.push({id:T,content:"First Chargeback",start:t.value.dispute_date}),T=T+1),t.value.dispute_cycle.dispute_sent_status!==void 0&&t.value.dispute_cycle.dispute_date_sent!==void 0?new Date(t.value.dispute_cycle.dispute_date_sent).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.dispute_sent_status,start:t.value.dispute_cycle.dispute_date_sent}),T=T+1):t.value.dispute_cycle.response_status!==void 0&&t.value.dispute_cycle.response_date!==void 0&&new Date(t.value.dispute_cycle.response_date).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.response_status,start:t.value.dispute_cycle.response_date}),T=T+1),t.value.dispute_cycle.retrieval_status!==void 0&&t.value.dispute_cycle.retrieval_date!==void 0&&new Date(t.value.dispute_cycle.retrieval_date).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.retrieval_status,start:t.value.dispute_cycle.retrieval_date}),T=T+1),t.value.dispute_cycle.dispute_receieved_status!==void 0&&t.value.dispute_cycle.dispute_received_date!==void 0&&new Date(t.value.dispute_cycle.dispute_received_date).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.dispute_receieved_status,start:t.value.dispute_cycle.dispute_received_date}),T=T+1),t.value.dispute_cycle.pre_arbitration_status!==void 0&&t.value.dispute_cycle.pre_arbitration_date!==void 0&&new Date(t.value.dispute_cycle.pre_arbitration_date).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.pre_arbitration_status,start:t.value.dispute_cycle.pre_arbitration_date}),T=T+1),t.value.dispute_cycle.pre_arb_sent_status!==void 0&&t.value.dispute_cycle.pre_arb_date_sent!==void 0&&new Date(t.value.dispute_cycle.pre_arb_date_sent).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.pre_arb_sent_status,start:t.value.dispute_cycle.pre_arb_date_sent}),T=T+1),t.value.dispute_cycle.resolved_status!==void 0&&t.value.dispute_cycle.resolved_date!==void 0&&new Date(t.value.dispute_cycle.resolved_date).getTime()&&(k.push({id:T,content:t.value.dispute_cycle.resolved_status,start:t.value.dispute_cycle.resolved_date}),T=T+1),new pi(k)});h.watch(()=>g.value,()=>{w()});const b=h.computed(()=>{const k=o.value;return k.length>0?k[k.length-1].response_text:null}),S=h.computed(()=>{const k=s.value.phone||"";return k.length===10?`1 (${k.slice(0,3)}) ${k.slice(3,6)}-${k.slice(6)}`:k}),w=()=>{r.value!==null&&(n.value===null?n.value=new PJ(r.value,g.value,a.value):n.value.setItems(g.value))};return{timelineRef:r,incomingData:t,formattedPhone:S,lastAction:b,transaction:m,cardholder:s,actions:o,card:l,orders:d,orders2:c,crm_details:f,crm2_details:v}}}),Qie={class:"card card-flush mb-5"},Zie={class:"px-9 mb-7"},Jie={class:"d-flex flex-wrap"},eae={class:"flex-equal"},tae={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},rae={class:"text-gray-800"},nae={class:"text-gray-800"},iae={class:"text-gray-800"},aae={class:"text-boldest"},sae={class:"text-gray-800"},oae={class:"flex-equal"},lae={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},dae={class:"text-gray-800 badge badge-sm badge-light-warning p-2"},cae={class:"text-gray-800"},uae={class:"text-dark p-0",href:"#chargeback_reason_explained","data-bs-toggle":"modal"},hae={class:"text-gray-800"},fae={class:"ms-n3"},pae={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.png",alt:"",class:"h-20px"},vae={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.png",alt:"",class:"h-20px"},mae={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.png",alt:"",class:"h-20px"},gae={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.png",alt:"",class:"h-20px"},yae={class:"text-gray-800"},_ae={key:0,class:"card card-flush mb-5"},bae={class:"px-9 mb-7"},wae={class:"d-flex flex-wrap"},Eae={class:"flex-equal"},Sae={class:"table table-flush fw-bold gy-1"},kae={class:"text-gray-800"},xae={class:"text-gray-800"},Tae={class:"text-gray-800"},$ae={class:"text-gray-800"},Dae={class:"flex-equal"},Nae={class:"table table-flush fw-bold gy-1"},Cae={class:"text-gray-800"},Oae={class:"text-gray-800"},Aae={class:"text-gray-800"},Iae={class:"rounded border pt-0 mb-5"},Pae={class:"accordion fs-7",id:"kt_accordion"},Mae={key:0,class:"accordion-item"},Rae={id:"kt_accordion_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_1","data-bs-parent":"#kt_accordion"},Lae={class:"accordion-body mt-0 p-1 px-5"},Vae={class:"table-responsive"},Fae={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},Yae={class:"fw-bold text-gray-800 fs-8"},jae={class:"text-end"},Bae={key:1,class:"accordion-item"},Hae={id:"kt_accordion_body_6",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_6","data-bs-parent":"#kt_accordion"},Wae={class:"accordion-body mt-0 p-1 px-5"},Gae={class:"table-responsive"},zae={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},Uae={class:"fw-bold text-gray-800 fs-8"},Kae={key:2,class:"accordion-item"},qae={id:"kt_accordion_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_header_2","data-bs-parent":"#kt_accordion"},Xae={class:"accordion-body mt-0 p-1 px-5"},Qae={class:"table-responsive"},Zae={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},Jae={class:"fw-bold text-gray-800 fs-8"},ese={class:"text-end"},tse={key:3,class:"accordion-item"},rse={id:"kt_accordion_body_3",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_3","data-bs-parent":"#kt_accordion"},nse={class:"accordion-body mt-0 p-1 px-5"},ise={class:"table-responsive"},ase={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},sse={class:"fw-bold text-gray-800 fs-8"},ose={class:"rounded border pt-0 mb-5"},lse={class:"accordion fs-7",id:"kt_accordion_5"},dse={class:"card card-body"},cse={class:"card-flush h-auto pt-1"},use={class:"mb-0"},hse={ref:"timelineRef"};function fse(e,t,r,a,n,s){const o=h.resolveComponent("NmiDetails"),l=h.resolveComponent("USAEPayDetails"),d=h.resolveComponent("SquareUp"),c=h.resolveComponent("FluidPayDetails"),f=h.resolveComponent("NuveiDetails"),v=h.resolveComponent("InovioPayDetails"),m=h.resolveComponent("ReasonExplained");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",Qie,[t[8]||(t[8]=h.createElementVNode("div",{class:"card card-body pb-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal fs-6"},"Chargeback Details")])],-1)),h.createElementVNode("div",Zie,[h.createElementVNode("div",Jie,[h.createElementVNode("div",eae,[h.createElementVNode("table",tae,[h.createElementVNode("tr",null,[t[0]||(t[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"ID:",-1)),h.createElementVNode("td",rae,h.toDisplayString(e.incoming.id),1)]),h.createElementVNode("tr",null,[t[1]||(t[1]=h.createElementVNode("td",{class:"text-muted w-auto"},"Case Number:",-1)),h.createElementVNode("td",nae,h.toDisplayString(e.incoming.case_number),1)]),h.createElementVNode("tr",null,[t[2]||(t[2]=h.createElementVNode("td",{class:"text-muted w-auto"},"Amount:",-1)),h.createElementVNode("td",iae,[h.createTextVNode(" $"+h.toDisplayString(e.incoming.dispute_amount),1),h.createElementVNode("span",aae,h.toDisplayString(e.incoming.currency),1)])]),h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted w-auto"},"Dispute Date:",-1)),h.createElementVNode("td",sae,h.toDisplayString(e.incoming.dispute_date),1)])])]),h.createElementVNode("div",oae,[h.createElementVNode("table",lae,[h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Due Date:",-1)),h.createElementVNode("td",dae,h.toDisplayString(e.incoming.expire_date),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted w-auto w-auto"},"Reason Code:",-1)),h.createElementVNode("td",cae,[h.createElementVNode("a",uae,h.toDisplayString(e.incoming.reason),1)])]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted w-auto"},"Card Brand:",-1)),h.createElementVNode("td",hae,[h.createElementVNode("span",fae,[e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Visa"?(h.openBlock(),h.createElementBlock("img",pae)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&(e.incoming.card.brand=="Mastercard"||e.incoming.card.brand=="MasterCard")?(h.openBlock(),h.createElementBlock("img",vae)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&(e.incoming.card.brand=="Amex"||e.incoming.card.brand=="AmericanExpress"||e.incoming.card.brand=="American Express")?(h.openBlock(),h.createElementBlock("img",mae)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Discover"?(h.openBlock(),h.createElementBlock("img",gae)):h.createCommentVNode("",!0)])])]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted w-auto"},"Transaction Date:",-1)),h.createElementVNode("td",yae,h.toDisplayString(e.incoming.transaction_date),1)])])])])])]),e.cardholder&&Object.keys(e.cardholder).length>0?(h.openBlock(),h.createElementBlock("div",_ae,[t[16]||(t[16]=h.createElementVNode("div",{class:"card card-body pb-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal fs-6"},"Cardholder Details")])],-1)),h.createElementVNode("div",bae,[h.createElementVNode("div",wae,[h.createElementVNode("div",Eae,[h.createElementVNode("table",Sae,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted w-auto"},"First Name",-1)),h.createElementVNode("td",kae,h.toDisplayString(e.cardholder.first_name),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted w-auto"},"Last Name",-1)),h.createElementVNode("td",xae,h.toDisplayString(e.cardholder.last_name),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted w-auto"},"Email",-1)),h.createElementVNode("td",Tae,h.toDisplayString(e.cardholder.email),1)]),h.createElementVNode("tr",null,[t[12]||(t[12]=h.createElementVNode("td",{class:"text-muted w-auto"},"Billing:",-1)),h.createElementVNode("td",$ae,h.toDisplayString(e.cardholder.billing_address),1)])])])]),h.createElementVNode("div",Dae,[h.createElementVNode("table",Nae,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[13]||(t[13]=h.createElementVNode("td",{class:"text-muted w-auto"},"I.P Address",-1)),h.createElementVNode("td",Cae,h.toDisplayString(e.cardholder.ip_address),1)]),h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted w-auto"},"Phone",-1)),h.createElementVNode("td",Oae,h.toDisplayString(e.formattedPhone),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted w-auto"},"Shipping:",-1)),h.createElementVNode("td",Aae,h.toDisplayString(e.cardholder.shipping_address),1)])])])])])])])):h.createCommentVNode("",!0),h.createElementVNode("div",Iae,[h.createElementVNode("div",Pae,[e.orders&&Object.keys(e.orders).length>0?(h.openBlock(),h.createElementBlock("div",Mae,[t[18]||(t[18]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_1","aria-expanded":"true","aria-controls":"kt_accordion_body_1"}," Konnektive Order ")],-1)),h.createElementVNode("div",Rae,[h.createElementVNode("div",Lae,[h.createElementVNode("div",Vae,[h.createElementVNode("table",Fae,[t[17]||(t[17]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Item Id"),h.createElementVNode("th",{class:"w-1/6"},"Product ID"),h.createElementVNode("th",{class:"w-1/6"},"Product"),h.createElementVNode("th",{class:"w-1/6"},"Qty"),h.createElementVNode("th",{class:"w-1/6 text-end"},"Price")])],-1)),h.createElementVNode("tbody",Yae,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orders,(g,b)=>(h.openBlock(),h.createElementBlock("tr",{key:b},[h.createElementVNode("td",null,h.toDisplayString(g.orderItemId),1),h.createElementVNode("td",null,h.toDisplayString(g.productId),1),h.createElementVNode("td",null,h.toDisplayString(g.name),1),h.createElementVNode("td",null,h.toDisplayString(g.qty),1),h.createElementVNode("td",jae,h.toDisplayString(g.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm_details&&Object.keys(e.crm_details).length>0?(h.openBlock(),h.createElementBlock("div",Bae,[t[20]||(t[20]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_6"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_6","aria-expanded":"true","aria-controls":"kt_accordion_body_6"}," Konnektive Details ")],-1)),h.createElementVNode("div",Hae,[h.createElementVNode("div",Wae,[h.createElementVNode("div",Gae,[h.createElementVNode("table",zae,[t[19]||(t[19]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Trans ID"),h.createElementVNode("th",{class:"w-1/6"},"Order ID"),h.createElementVNode("th",{class:"w-1/6"},"IP"),h.createElementVNode("th",{class:"w-1/6"},"A ID"),h.createElementVNode("th",{class:"w-1/6"},"Gateway ID"),h.createElementVNode("th",{class:"w-1/6"},"Customer ID")])],-1)),h.createElementVNode("tbody",Uae,[h.createElementVNode("tr",null,[h.createElementVNode("td",null,h.toDisplayString(e.crm_details.transactionId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.orderId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.ipAddress),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.actualOrderId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.merchantTxnId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.customerId),1)])])])])])])])):h.createCommentVNode("",!0),e.orders2&&Object.keys(e.orders2).length>0?(h.openBlock(),h.createElementBlock("div",Kae,[t[22]||(t[22]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_2","aria-expanded":"false","aria-controls":"kt_accordion_body_2"}," Sticky Order ")],-1)),h.createElementVNode("div",qae,[h.createElementVNode("div",Xae,[h.createElementVNode("div",Qae,[h.createElementVNode("table",Zae,[t[21]||(t[21]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Item Id"),h.createElementVNode("th",{class:"w-1/6"},"ID"),h.createElementVNode("th",{class:"w-1/6"},"URL"),h.createElementVNode("th",{class:"w-1/6"},"Name"),h.createElementVNode("th",{class:"w-1/6"},"Qty"),h.createElementVNode("th",{class:"w-1/6 text-end"},"Price")])],-1)),h.createElementVNode("tbody",Jae,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orders2,(g,b)=>(h.openBlock(),h.createElementBlock("tr",{key:b},[h.createElementVNode("td",null,h.toDisplayString(g.item_id),1),h.createElementVNode("td",null,h.toDisplayString(g.product_id),1),h.createElementVNode("td",null,h.toDisplayString(g.product_url),1),h.createElementVNode("td",null,h.toDisplayString(g.name),1),h.createElementVNode("td",null,h.toDisplayString(g.qty),1),h.createElementVNode("td",ese,h.toDisplayString(g.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm2_details&&Object.keys(e.crm2_details).length>0?(h.openBlock(),h.createElementBlock("div",tse,[t[24]||(t[24]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_3","aria-expanded":"true","aria-controls":"kt_accordion_body_3"}," Sticky Details ")],-1)),h.createElementVNode("div",rse,[h.createElementVNode("div",nse,[h.createElementVNode("div",ise,[h.createElementVNode("table",ase,[t[23]||(t[23]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Ancestor ID"),h.createElementVNode("th",{class:"w-1/6"},"Order ID"),h.createElementVNode("th",{class:"w-1/6"},"IP"),h.createElementVNode("th",{class:"w-1/6"},"Trans ID"),h.createElementVNode("th",{class:"w-1/6"},"Gateway ID"),h.createElementVNode("th",{class:"w-1/6"},"Customer ID")])],-1)),h.createElementVNode("tbody",sse,[h.createElementVNode("tr",null,[h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.ancestor_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.order_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.ip_address),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.transaction_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.gateway_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.customer_id),1)])])])])])])])):h.createCommentVNode("",!0),e.transaction?(h.openBlock(),h.createBlock(o,{key:4,class:"p-0 m-0",incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0)])]),e.incoming.connection_id=="51"?(h.openBlock(),h.createBlock(l,{key:1,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="52"?(h.openBlock(),h.createBlock(d,{key:2,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="45"?(h.openBlock(),h.createBlock(c,{key:3,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="56"?(h.openBlock(),h.createBlock(f,{key:4,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="6"?(h.openBlock(),h.createBlock(v,{key:5,incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0),h.createElementVNode("div",ose,[h.createElementVNode("div",lse,[h.createElementVNode("div",dse,[t[25]||(t[25]=h.createElementVNode("div",{class:"card-body py-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal ms-n6 fs-7"},"Chargeback Cycle")])],-1)),h.createElementVNode("div",cse,[h.createElementVNode("div",use,[h.createElementVNode("div",hse,null,512)])])])])]),h.createVNode(m,{reason_explained:e.reason_explained,reason:e.reason},null,8,["reason_explained","reason"])],64)}const pse=Nr(Xie,[["render",fse]]),vse=h.defineComponent({name:"incoming-summary",emits:["reset"],props:{incoming:{type:Object,required:!0},merchant:{type:Object,required:!0},processor:{type:Object,required:!0},reason:{type:Object,required:!0}}}),mse={class:"card card-flush mb-0","data-kt-sticky":"false","data-kt-sticky-name":"merchants-summary"},gse={class:"card-body px-5 pe-8 pt-0 fs-7"},yse={class:"mb-4"},_se={class:"row pb-4 align-items-center"},bse={class:"col text-end"},wse={class:"card-flush p-0"},Ese={class:"fw-bold text-gray-800"},Sse={class:"d-block"},kse={class:"row pb-4 align-items-center"},xse={class:"col text-end"},Tse={class:"card-flush p-0"},$se={class:"fw-bold text-gray-800"},Dse={class:"d-block"},Nse={class:"row pb-4 align-items-center"},Cse={class:"col text-end"},Ose={class:"card-flush p-0"},Ase={class:"fw-bold text-gray-800"},Ise={class:"d-block"},Pse={class:"row pb-4 align-items-center"},Mse={class:"col text-end"},Rse={class:"card-flush p-0"},Lse={class:"fw-bold text-gray-800"},Vse={class:"d-block"},Fse={class:"row pb-4 align-items-center"},Yse={class:"col text-end"},jse={class:"card-flush p-0"},Bse={class:"fw-bold text-gray-800"},Hse={class:"d-block"},Wse={class:"row pb-4 align-items-center"},Gse={class:"col text-end"},zse={class:"card-flush p-0"},Use={class:"fw-bold text-gray-800"},Kse={key:0,class:"d-block"},qse={key:1,class:"d-block"},Xse={class:"row pb-4 align-items-center"},Qse={class:"col text-end"},Zse={class:"card-flush p-0"},Jse={class:"fw-bold text-gray-800"},eoe={class:"d-block"},toe={class:"row pb-4 align-items-center"},roe={class:"col text-end"},noe={class:"card-flush p-0"},ioe={class:"fw-bold text-gray-800"},aoe={class:"d-block"};function soe(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",mse,[t[8]||(t[8]=h.createElementVNode("div",{class:"card card-body ps-5 pb-2"},[h.createElementVNode("h5",{class:"mb-4 fs-6 ps-0 fw-normal"},"Summary Details")],-1)),h.createElementVNode("div",gse,[h.createElementVNode("div",yse,[h.createElementVNode("div",_se,[t[0]||(t[0]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Status ")])])],-1)),h.createElementVNode("div",bse,[h.createElementVNode("div",wse,[h.createElementVNode("div",Ese,[h.createElementVNode("span",Sse,h.toDisplayString(e.incoming.chargeback_status),1)])])])]),h.createElementVNode("div",kse,[t[1]||(t[1]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Merchant ")])])],-1)),h.createElementVNode("div",xse,[h.createElementVNode("div",Tse,[h.createElementVNode("div",$se,[h.createElementVNode("span",Dse,h.toDisplayString(e.merchant.dba_name),1)])])])]),h.createElementVNode("div",Nse,[t[2]||(t[2]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," MID Number: ")])])],-1)),h.createElementVNode("div",Cse,[h.createElementVNode("div",Ose,[h.createElementVNode("div",Ase,[h.createElementVNode("span",Ise,h.toDisplayString(e.merchant.mid_number),1)])])])]),h.createElementVNode("div",Pse,[t[3]||(t[3]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Merchant ID: ")])])],-1)),h.createElementVNode("div",Mse,[h.createElementVNode("div",Rse,[h.createElementVNode("div",Lse,[h.createElementVNode("span",Vse,h.toDisplayString(e.merchant.merchant_id),1)])])])]),h.createElementVNode("div",Fse,[t[4]||(t[4]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Processor")])])],-1)),h.createElementVNode("div",Yse,[h.createElementVNode("div",jse,[h.createElementVNode("div",Bse,[h.createElementVNode("span",Hse,h.toDisplayString(e.processor.name),1)])])])]),h.createElementVNode("div",Wse,[t[5]||(t[5]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Response Status")])])],-1)),h.createElementVNode("div",Gse,[h.createElementVNode("div",zse,[h.createElementVNode("div",Use,[e.incoming.sent_date=="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("span",Kse," Not Sent ")):(h.openBlock(),h.createElementBlock("span",qse," Sent "))])])])]),h.createElementVNode("div",Xse,[t[6]||(t[6]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Reason Category")])])],-1)),h.createElementVNode("div",Qse,[h.createElementVNode("div",Zse,[h.createElementVNode("div",Jse,[h.createElementVNode("span",eoe,h.toDisplayString(e.reason.category),1)])])])]),h.createElementVNode("div",toe,[t[7]||(t[7]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Reason Condition")])])],-1)),h.createElementVNode("div",roe,[h.createElementVNode("div",noe,[h.createElementVNode("div",ioe,[h.createElementVNode("span",aoe,h.toDisplayString(e.incoming.reason_condition),1)])])])])])])])}const ooe=Nr(vse,[["render",soe]]),br={apiKey:"",setApiKey(e){this.apiKey=e},async get(e){return await(await fetch(`https://api.riskdefy.io/v3/${e}`,{method:"GET",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"}})).json()}},loe=h.defineComponent({name:"incoming-details",components:{Details:pse,Summary:ooe},setup(e){const t=h.computed(()=>e.incomingId),r=h.ref({id:"",transaction_found:"0",details_populated:"0",dispute_url:"",is_responded:"",card_holder:{},card:{},transaction:{action:{}},order_details:{items:[]},order2_details:{items:[]},order3_details:{items:[]},crm2_details:{},crm3_details:{},product_details:{},merchant_id:"",reason:"",dispute_cycle:{},connection_id:"",found_date:"0000-00-00 00:00:00",populated_date:"0000-00-00 00:00:00",sent_date:"0000-00-00 00:00:00",reason_condition:""}),a=h.ref({dba_name:"",processor_id:"",merchantDetails:{}}),n=h.ref({}),s=h.ref({message:{},instructions:{}}),o=h.ref({}),l=h.ref({}),d=h.ref([]);h.onMounted(async()=>{setCurrentPageTitle("Incoming Chargeback Details"),br.setApiKey(e.apiKey),setTimeout(async()=>{await D(),await f(),DrawerComponent.reinitialization()},500)});const c=h.ref([]),f=async()=>{const{data:O}=await fetch("apis/connections?limit=100");O.success&&(c.value=[...O.data])},v=h.computed(()=>{const O=r.value.transaction;return O&&Object.keys(O).length>0&&O.transaction_id&&O.transaction_id!==""}),m=h.computed(()=>{const M=r.value.found_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),g=h.computed(()=>{const M=r.value.found_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),b=h.computed(()=>{const M=r.value.populated_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),S=h.computed(()=>{const M=r.value.populated_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),w=h.computed(()=>{const M=r.value.sent_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),k=h.computed(()=>{const M=r.value.sent_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),T=h.ref([]),D=async()=>{try{const{data:O}=await br.get(`chargebacks/incoming?id=${t.value}`);r.value=O.data[0];try{r.value.card_holder=JSON.parse(r.value.card_holder)}catch{r.value.card_holder={}}try{r.value.card=JSON.parse(r.value.card)}catch{r.value.card={}}try{r.value.transaction=JSON.parse(r.value.transaction)}catch{r.value.transaction={action:{}}}try{r.value.dispute_cycle=JSON.parse(r.value.dispute_cycle)}catch{r.value.dispute_cycle={}}try{r.value.order_details=JSON.parse(r.value.order_details)}catch{r.value.order_details={items:[]}}try{r.value.order2_details=JSON.parse(r.value.order2_details)}catch{r.value.order2_details={items:[]}}try{r.value.product_details=JSON.parse(r.value.product_details)}catch{r.value.product_details={}}}catch{r.value={id:"",transaction_found:"0",details_populated:"0",dispute_url:"",is_responded:"",card_holder:{},card:{},transaction:{action:{}},order_details:{items:[]},order2_details:{items:[]},order3_details:{items:[]},crm2_details:{},crm3_details:{},product_details:{},merchant_id:"",reason:"",dispute_cycle:{},connection_id:"",found_date:"0000-00-00 00:00:00",populated_date:"0000-00-00 00:00:00",sent_date:"0000-00-00 00:00:00",reason_condition:""}}try{const{data:O}=await br.get(`merchants/accounts?merchant_id=${r.value.merchant_id}`);a.value=O.data[0];try{a.value.merchantDetails=JSON.parse(a.value.merchantDetails)}catch{a.value.merchantDetails={}}}catch{a.value={dba_name:"",processor_id:"",merchantDetails:{}}}try{const{data:O}=await br.get(`chargebacks/reasons?code=${r.value.reason}`);n.value=O.data[0]}catch{n.value={}}try{const{data:O}=await br.get(`chargebacks/reasons_explained?code=${r.value.reason}`);s.value=O.data[0],s.value.message=JSON.parse(O.data[0].message),s.value.instructions=JSON.parse(O.data[0].instructions)}catch{s.value={message:{},instructions:{}}}try{const{data:O}=await br.get(`processors/isos/${a.value.processor_id}`);o.value=O.data[0]}catch{o.value={}}try{const{data:O}=await br.get(`apis/merchants?fields=id,alias_name,connection_id,endpoint_name&category=Gateway&merchant_id=${r.value.merchant_id}`);T.value=O.data}catch{T.value=[]}},N=()=>{D()},L=async()=>{var O;(O=DrawerComponent==null?void 0:DrawerComponent.getInstance("view_incoming_details_drawer"))==null||O.show()},A=async()=>{var O;try{let M=await br.get(`chargebacks/incoming/${r.value.id}?action=evidence_images`);M.data.success&&(M.data.data[0]===null?d.value=[]:d.value=M.data.data[0]),M=await br.get(`chargebacks/incoming/${r.value.id}?action=response_packet`),M.data.success&&(M.data.data[0]===null?l.value={}:l.value=M.data.data[0],(O=DrawerComponent==null?void 0:DrawerComponent.getInstance("add_response_drawer"))==null||O.show())}catch{l.value={},d.value=[]}},R=async()=>{try{let O=await br.get(`chargebacks/incoming/${r.value.id}?action=evidence_images`);O.data.success&&(O.data.data[0]===null?d.value=[]:d.value=O.data.data[0]),O=await br.get(`chargebacks/incoming/${r.value.id}?action=response_packet`),O.data.success&&(O.data.data[0]===null?l.value={}:l.value=O.data.data[0])}catch{l.value={},d.value=[]}},C=()=>{new li(document.getElementById("modal_pdf_view")).show()},j=h.computed(()=>{const{transaction:O,card_holder:M,...H}=r.value;return H});return{incoming:r,isTransactionAvailable:v,incomingWithoutTransaction:j,merchant:a,reason:n,reason_explained:s,processor:o,getFoundTime:m,getPopulatedTime:b,resetIncoming:N,getSentTime:w,getSentDate:k,getFoundDate:g,getPopulatedDate:S,connections:c,onOpenResponseDrawer:A,onFormEntry:L,submitTemplate:R,templates:l,templateImages:d,onViewDispute:C,apiSyncItems:T}}}),doe={class:"row g-5 g-xl-10"},coe={class:"col-xl-8"},uoe={class:"col-xl-4 mb-10"},hoe={class:"card"},foe={class:"card"},poe={class:"card card-body d-flex align-items-start mt-5 pt-5"},voe={class:"mb-auto"},moe={class:"card-body pt-5"},goe={class:"timeline-label"},yoe={key:0,class:"timeline-item"},_oe={class:"timeline-label text-gray-800 fs-8"},boe={class:"text-gray-800 ps-3 fs-8"},woe={key:1,class:"timeline-item"},Eoe={key:2,class:"timeline-item"},Soe={class:"timeline-label text-gray-800 fs-8"},koe={class:"text-gray-800 ps-3 fs-8"},xoe={key:3,class:"timeline-item"},Toe={key:4,class:"timeline-item"},$oe={class:"timeline-label text-gray-800 fs-8"},Doe={class:"timeline-content d-flex"},Noe={class:"text-gray-800 ps-3 fs-8"},Coe={key:5,class:"timeline-item"};function Ooe(e,t,r,a,n,s){const o=h.resolveComponent("Details"),l=h.resolveComponent("Summary");return h.openBlock(),h.createElementBlock("div",doe,[h.createElementVNode("div",coe,[h.createVNode(o,{reason_explained:e.reason_explained,reason:e.reason,merchant:e.merchant,incoming:e.incoming},null,8,["reason_explained","reason","merchant","incoming"])]),h.createElementVNode("div",uoe,[h.createElementVNode("div",hoe,[h.createElementVNode("div",foe,[h.createVNode(l,{reason:e.reason,processor:e.processor,merchant:e.merchant,incoming:e.incoming},null,8,["reason","processor","merchant","incoming"])])]),h.createElementVNode("div",poe,[h.createElementVNode("div",voe,[t[6]||(t[6]=h.createElementVNode("div",{class:"align-items-center border-0"},[h.createElementVNode("h3",{class:"align-items-start flex-column"},[h.createElementVNode("span",{class:"fw-normal fs-7 text-dark ps-5"},"Response Timeline")])],-1)),h.createElementVNode("div",moe,[h.createElementVNode("div",goe,[e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",yoe,[h.createElementVNode("div",_oe,h.toDisplayString(e.getFoundTime),1),t[0]||(t[0]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",boe," Transaction Found ("+h.toDisplayString(e.getFoundDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",woe,t[1]||(t[1]=[h.createElementVNode("div",{class:"timeline-label text-gray-400 fs-8"},"00:00",-1),h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-gray-400 fs-1"})],-1),h.createElementVNode("div",{class:"text-gray-400 ps-3 fs-8"},"Transaction Not Found",-1)]))),e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",Eoe,[h.createElementVNode("div",Soe,h.toDisplayString(e.getPopulatedTime),1),t[2]||(t[2]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",koe," Details Populated ("+h.toDisplayString(e.getPopulatedDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",xoe,t[3]||(t[3]=[h.createElementVNode("div",{class:"timeline-label text-gray-400 fs-8"},"00:00",-1),h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-gray-400 fs-1"})],-1),h.createElementVNode("div",{class:"text-gray-400 ps-3 fs-8"},"Details Not Populated",-1)]))),e.incoming.sent_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",Toe,[h.createElementVNode("div",$oe,h.toDisplayString(e.getSentTime),1),t[4]||(t[4]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",Doe,[h.createElementVNode("span",Noe,"Response Sent ("+h.toDisplayString(e.getSentDate)+")",1)])])):(h.openBlock(),h.createElementBlock("div",Coe,t[5]||(t[5]=[h.createStaticVNode('<div class="timeline-label text-gray-400 fs-8">00:00</div><div class="timeline-badge"><i class="fa fa-genderless text-gray-400 fs-1"></i></div><div class="timeline-content d-flex"><span class="text-gray-400 ps-3 fs-8">Response Not Sent</span></div>',3)])))])])])])])])}const Aoe=Nr(loe,[["render",Ooe]]),Ioe={props:{apiKey:{type:String,required:!0},incomingId:{type:String,required:!0}},data(){return{data:null}},components:{IncomingDetails:Aoe}};function Poe(e,t,r,a,n,s){const o=h.resolveComponent("IncomingDetails");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(o,{apiKey:r.apiKey,incomingId:r.incomingId},null,8,["apiKey","incomingId"])])}const C1=Nr(Ioe,[["render",Poe]]),Moe={install(e){e.component("Chargebacks",C1)}};exports.Chargebacks=C1;exports.default=Moe;
|
1279
|
+
}`;kt(Fz);function Yz(e,r){var t=typeof Br<"u"&&si(e)||e["@@iterator"];if(!t){if(re(e)||(t=jz(e))||r){t&&(e=t);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
1280
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function jz(e,r){var t;if(e){if(typeof e=="string")return tm(e,r);var a=ht(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return ai(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return tm(e,r)}}function tm(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function Bz(e){var r=Hz();return function(){var a=_e(e),n;if(r){var s=_e(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Pt(this,n)}}function Hz(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var rm=function(e){wt(t,e);var r=Bz(t);function t(a,n,s,o){var l;ue(this,t),l=r.call(this),l.id=Ei(),l.body=a,l.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(f){return"".concat(so(f.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(f){return"".concat(so(f.toPrecision(3)))},title:{text:void 0,style:void 0}}},l.linegraphOptions=o,l.linegraphSVG=s,l.props={},l.DOMelements={lines:{},labels:{},title:{}},l.dom={},l.scale=void 0,l.range={start:0,end:0},l.options=x.extend({},l.defaultOptions),l.conversionFactor=1,l.setOptions(n),l.width=Number("".concat(l.options.width).replace("px","")),l.minWidth=l.width,l.height=l.linegraphSVG.getBoundingClientRect().height,l.hidden=!1,l.stepPixels=25,l.zeroCrossing=-1,l.amountOfSteps=-1,l.lineOffset=0,l.master=!0,l.masterAxis=null,l.svgElements={},l.iconsRemoved=!1,l.groups={},l.amountOfGroups=0,l._create(),l.scale==null&&l._redrawLabels(),l.framework={svg:l.svg,svgElements:l.svgElements,options:l.options,groups:l.groups};var d=Ee(l);return l.body.emitter.on("verticalDrag",function(){d.dom.lineContainer.style.top="".concat(d.body.domProps.scrollTop,"px")}),l}return ce(t,[{key:"addGroup",value:function(n,s){this.groups.hasOwnProperty(n)||(this.groups[n]=s),this.amountOfGroups+=1}},{key:"updateGroup",value:function(n,s){this.groups.hasOwnProperty(n)||(this.amountOfGroups+=1),this.groups[n]=s}},{key:"removeGroup",value:function(n){this.groups.hasOwnProperty(n)&&(delete this.groups[n],this.amountOfGroups-=1)}},{key:"setOptions",value:function(n){if(n){var s=!1;this.options.orientation!=n.orientation&&n.orientation!==void 0&&(s=!0);var o=["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"];x.selectiveDeepExtend(o,this.options,n),this.minWidth=Number("".concat(this.options.width).replace("px","")),s===!0&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){Kr(this.svgElements);var n,s=this.options.iconWidth,o=15,l=4,d=l+.5*o;this.options.orientation==="left"?n=l:n=this.width-s-l;var u=Ze(this.groups);Ue(u).call(u,function(y,b){return y<b?-1:1});var f=Yz(u),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;this.groups[m].visible===!0&&(this.linegraphOptions.visibility[m]===void 0||this.linegraphOptions.visibility[m]===!0)&&(this.groups[m].getLegend(s,o,this.framework,n,d),d+=o+l)}}catch(y){f.e(y)}finally{f.f()}zt(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(Kr(this.svgElements),zt(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||(this.options.orientation==="left"?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(n,s){this.range.start=n,this.range.end=s}},{key:"redraw",value:function(){var n=!1,s=0;this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px");for(var o in this.groups)this.groups.hasOwnProperty(o)&&this.groups[o].visible===!0&&(this.linegraphOptions.visibility[o]===void 0||this.linegraphOptions.visibility[o]===!0)&&s++;if(this.amountOfGroups===0||s===0)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=this.options.visible===!0?Number("".concat(this.options.width).replace("px","")):0;var l=this.props,d=this.dom.frame;d.className="vis-data-axis",this._calculateCharSize();var u=this.options.orientation,f=this.options.showMinorLabels,p=this.options.showMajorLabels,m=this.body.dom.backgroundHorizontal.offsetWidth;l.minorLabelHeight=f?l.minorCharHeight:0,l.majorLabelHeight=p?l.majorCharHeight:0,l.minorLineWidth=m-this.lineOffset-this.width+2*this.options.minorLinesOffset,l.minorLineHeight=1,l.majorLineWidth=m-this.lineOffset-this.width+2*this.options.majorLinesOffset,l.majorLineHeight=1,u==="left"?(d.style.top="0",d.style.left="0",d.style.bottom="",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(d.style.top="",d.style.bottom="0",d.style.left="0",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),n=this._redrawLabels(),n=this._isResized()||n,this.options.icons===!0?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(u)}return n}},{key:"_redrawLabels",value:function(){var n=this,s=!1;Kr(this.DOMelements.lines),Kr(this.DOMelements.labels);var o=this.options.orientation,l=this.options[o].range!=null?this.options[o].range:{},d=!0;l.max!=null&&(this.range.end=l.max,d=!1);var u=!0;l.min!=null&&(this.range.start=l.min,u=!1),this.scale=new Lz(this.range.start,this.range.end,u,d,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[o].format),this.master===!1&&this.masterAxis!=null?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var f=this.scale.getLines();B(f).call(f,function(y){var b=y.y,E=y.major;n.options.showMinorLabels&&E===!1&&n._redrawLabel(b-2,y.val,o,"vis-y-axis vis-minor",n.props.minorCharHeight),E&&b>=0&&n._redrawLabel(b-2,y.val,o,"vis-y-axis vis-major",n.props.majorCharHeight),n.master===!0&&(E?n._redrawLine(b,o,"vis-grid vis-horizontal vis-major",n.options.majorLinesOffset,n.props.majorLineWidth):n._redrawLine(b,o,"vis-grid vis-horizontal vis-minor",n.options.minorLinesOffset,n.props.minorLineWidth))});var p=0;this.options[o].title!==void 0&&this.options[o].title.text!==void 0&&(p=this.props.titleCharHeight);var m=this.options.icons===!0?Math.max(this.options.iconWidth,p)+this.options.labelOffsetX+15:p+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-m&&this.options.visible===!0?(this.width=this.maxLabelSize+m,this.options.width="".concat(this.width,"px"),zt(this.DOMelements.lines),zt(this.DOMelements.labels),this.redraw(),s=!0):this.maxLabelSize<this.width-m&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+m),this.options.width="".concat(this.width,"px"),zt(this.DOMelements.lines),zt(this.DOMelements.labels),this.redraw(),s=!0):(zt(this.DOMelements.lines),zt(this.DOMelements.labels),s=!1),s}},{key:"convertValue",value:function(n){return this.scale.convertValue(n)}},{key:"screenToValue",value:function(n){return this.scale.screenToValue(n)}},{key:"_redrawLabel",value:function(n,s,o,l,d){var u=Jl("div",this.DOMelements.labels,this.dom.frame);u.className=l,u.innerHTML=x.xss(s),o==="left"?(u.style.left="-".concat(this.options.labelOffsetX,"px"),u.style.textAlign="right"):(u.style.right="-".concat(this.options.labelOffsetX,"px"),u.style.textAlign="left"),u.style.top="".concat(n-.5*d+this.options.labelOffsetY,"px"),s+="";var f=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<s.length*f&&(this.maxLabelSize=s.length*f)}},{key:"_redrawLine",value:function(n,s,o,l,d){if(this.master===!0){var u=Jl("div",this.DOMelements.lines,this.dom.lineContainer);u.className=o,u.innerHTML="",s==="left"?u.style.left="".concat(this.width-l,"px"):u.style.right="".concat(this.width-l,"px"),u.style.width="".concat(d,"px"),u.style.top="".concat(n,"px")}}},{key:"_redrawTitle",value:function(n){if(Kr(this.DOMelements.title),this.options[n].title!==void 0&&this.options[n].title.text!==void 0){var s=Jl("div",this.DOMelements.title,this.dom.frame);s.className="vis-y-axis vis-title vis-".concat(n),s.innerHTML=x.xss(this.options[n].title.text),this.options[n].title.style!==void 0&&x.addCssText(s,this.options[n].title.style),n==="left"?s.style.left="".concat(this.props.titleCharHeight,"px"):s.style.right="".concat(this.props.titleCharHeight,"px"),s.style.width="".concat(this.height,"px")}zt(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var n=document.createTextNode("0"),s=document.createElement("div");s.className="vis-y-axis vis-minor vis-measure",s.appendChild(n),this.dom.frame.appendChild(s),this.props.minorCharHeight=s.clientHeight,this.props.minorCharWidth=s.clientWidth,this.dom.frame.removeChild(s)}if(!("majorCharHeight"in this.props)){var o=document.createTextNode("0"),l=document.createElement("div");l.className="vis-y-axis vis-major vis-measure",l.appendChild(o),this.dom.frame.appendChild(l),this.props.majorCharHeight=l.clientHeight,this.props.majorCharWidth=l.clientWidth,this.dom.frame.removeChild(l)}if(!("titleCharHeight"in this.props)){var d=document.createTextNode("0"),u=document.createElement("div");u.className="vis-y-axis vis-title vis-measure",u.appendChild(d),this.dom.frame.appendChild(u),this.props.titleCharHeight=u.clientHeight,this.props.titleCharWidth=u.clientWidth,this.dom.frame.removeChild(u)}}}]),t}(li);function Ua(e,r){}Ua.draw=function(e,r,t,a){a=a||0;for(var n=Wz(t,r),s=0;s<e.length;s++)if(!n)_n(e[s].screen_x+a,e[s].screen_y,xu(r),t.svgElements,t.svg,e[s].label);else{var o=n(e[s],r);(o===!0||ee(o)==="object")&&_n(e[s].screen_x+a,e[s].screen_y,xu(r,o),t.svgElements,t.svg,e[s].label)}};Ua.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l=ar("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",r),l.setAttributeNS(null,"y",t-o),l.setAttributeNS(null,"width",a),l.setAttributeNS(null,"height",2*o),l.setAttributeNS(null,"class","vis-outline"),_n(r+.5*a,t,xu(e),s.svgElements,s.svg)};function xu(e,r){return r=typeof r>"u"?{}:r,{style:r.style||e.options.drawPoints.style,styles:r.styles||e.options.drawPoints.styles,size:r.size||e.options.drawPoints.size,className:r.className||e.className}}function Wz(e,r){var t=void 0;return e.options&&e.options.drawPoints&&e.options.drawPoints.onRender&&typeof e.options.drawPoints.onRender=="function"&&(t=e.options.drawPoints.onRender),r.group.options&&r.group.options.drawPoints&&r.group.options.drawPoints.onRender&&typeof r.group.options.drawPoints.onRender=="function"&&(t=r.group.options.drawPoints.onRender),t}function gt(e,r){}gt.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l=ar("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",r),l.setAttributeNS(null,"y",t-o),l.setAttributeNS(null,"width",a),l.setAttributeNS(null,"height",2*o),l.setAttributeNS(null,"class","vis-outline");var d=Math.round(.3*a),u=e.options.barChart.width,f=u/d,p=Math.round(.4*n),m=Math.round(.75*n),y=Math.round((a-2*d)/3);if(nu(r+.5*d+y,t+o-p-1,d,p,e.className+" vis-bar",s.svgElements,s.svg,e.style),nu(r+1.5*d+y+2,t+o-m-1,d,m,e.className+" vis-bar",s.svgElements,s.svg,e.style),e.options.drawPoints.enabled==!0){var b={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size/f,className:e.className};_n(r+.5*d+y,t+o-p-1,b,s.svgElements,s.svg),_n(r+1.5*d+y+2,t+o-m-1,b,s.svgElements,s.svg)}};gt.draw=function(e,r,t){var a=[],n={},s,o,l,d,u,f,p=0;for(u=0;u<e.length;u++)if(d=t.groups[e[u]],d.options.style==="bar"&&d.visible===!0&&(t.options.groups.visibility[e[u]]===void 0||t.options.groups.visibility[e[u]]===!0))for(f=0;f<r[e[u]].length;f++)a.push({screen_x:r[e[u]][f].screen_x,screen_end:r[e[u]][f].screen_end,screen_y:r[e[u]][f].screen_y,x:r[e[u]][f].x,end:r[e[u]][f].end,y:r[e[u]][f].y,groupId:e[u],label:r[e[u]][f].label}),p+=1;if(p!==0)for(Ue(a).call(a,function(D,T){return D.screen_x===T.screen_x?D.groupId<T.groupId?-1:1:D.screen_x-T.screen_x}),gt._getDataIntersections(n,a),u=0;u<a.length;u++){d=t.groups[a[u].groupId];var m=d.options.barChart.minWidth!=null?d.options.barChart.minWidth:.1*d.options.barChart.width;o=a[u].screen_x;var y=0;if(n[o]===void 0)u+1<a.length&&(s=Math.abs(a[u+1].screen_x-o)),l=gt._getSafeDrawData(s,d,m);else{var b=u+(n[o].amount-n[o].resolved);b<a.length&&(s=Math.abs(a[b].screen_x-o)),l=gt._getSafeDrawData(s,d,m),n[o].resolved+=1,d.options.stack===!0&&d.options.excludeFromStacking!==!0?a[u].screen_y<d.zeroPosition?(y=n[o].accumulatedNegative,n[o].accumulatedNegative+=d.zeroPosition-a[u].screen_y):(y=n[o].accumulatedPositive,n[o].accumulatedPositive+=d.zeroPosition-a[u].screen_y):d.options.barChart.sideBySide===!0&&(l.width=l.width/n[o].amount,l.offset+=n[o].resolved*l.width-.5*l.width*(n[o].amount+1))}var E=l.width,w=a[u].screen_x;if(a[u].screen_end!=null?(E=a[u].screen_end-a[u].screen_x,w+=E*.5):w+=l.offset,nu(w,a[u].screen_y-y,E,d.zeroPosition-a[u].screen_y,d.className+" vis-bar",t.svgElements,t.svg,d.style),d.options.drawPoints.enabled===!0){var S={screen_x:a[u].screen_x,screen_y:a[u].screen_y-y,x:a[u].x,y:a[u].y,groupId:a[u].groupId,label:a[u].label};Ua.draw([S],d,t,l.offset)}}};gt._getDataIntersections=function(e,r){for(var t,a=0;a<r.length;a++)a+1<r.length&&(t=Math.abs(r[a+1].screen_x-r[a].screen_x)),a>0&&(t=Math.min(t,Math.abs(r[a-1].screen_x-r[a].screen_x))),t===0&&(e[r[a].screen_x]===void 0&&(e[r[a].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[r[a].screen_x].amount+=1)};gt._getSafeDrawData=function(e,r,t){var a,n;return e<r.options.barChart.width&&e>0?(a=e<t?t:e,n=0,r.options.barChart.align==="left"?n-=.5*e:r.options.barChart.align==="right"&&(n+=.5*e)):(a=r.options.barChart.width,n=0,r.options.barChart.align==="left"?n-=.5*r.options.barChart.width:r.options.barChart.align==="right"&&(n+=.5*r.options.barChart.width)),{width:a,offset:n}};gt.getStackedYRange=function(e,r,t,a,n){if(e.length>0){Ue(e).call(e,function(o,l){return o.screen_x===l.screen_x?o.groupId<l.groupId?-1:1:o.screen_x-l.screen_x});var s={};gt._getDataIntersections(s,e),r[a]=gt._getStackedYRange(s,e),r[a].yAxisOrientation=n,t.push(a)}};gt._getStackedYRange=function(e,r){for(var t,a=r[0].screen_y,n=r[0].screen_y,s=0;s<r.length;s++)t=r[s].screen_x,e[t]===void 0?(a=a>r[s].screen_y?r[s].screen_y:a,n=n<r[s].screen_y?r[s].screen_y:n):r[s].screen_y<0?e[t].accumulatedNegative+=r[s].screen_y:e[t].accumulatedPositive+=r[s].screen_y;for(var o in e)e.hasOwnProperty(o)&&(a=a>e[o].accumulatedNegative?e[o].accumulatedNegative:a,a=a>e[o].accumulatedPositive?e[o].accumulatedPositive:a,n=n<e[o].accumulatedNegative?e[o].accumulatedNegative:n,n=n<e[o].accumulatedPositive?e[o].accumulatedPositive:n);return{min:a,max:n}};function at(e,r){}at.calcPath=function(e,r){if(e!=null&&e.length>0){var t=[];return r.options.interpolation.enabled==!0?t=at._catmullRom(e,r):t=at._linear(e),t}};at.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l,d,u=ar("rect",s.svgElements,s.svg);if(u.setAttributeNS(null,"x",r),u.setAttributeNS(null,"y",t-o),u.setAttributeNS(null,"width",a),u.setAttributeNS(null,"height",2*o),u.setAttributeNS(null,"class","vis-outline"),l=ar("path",s.svgElements,s.svg),l.setAttributeNS(null,"class",e.className),e.style!==void 0&&l.setAttributeNS(null,"style",e.style),l.setAttributeNS(null,"d","M"+r+","+t+" L"+(r+a)+","+t),e.options.shaded.enabled==!0&&(d=ar("path",s.svgElements,s.svg),e.options.shaded.orientation=="top"?d.setAttributeNS(null,"d","M"+r+", "+(t-o)+"L"+r+","+t+" L"+(r+a)+","+t+" L"+(r+a)+","+(t-o)):d.setAttributeNS(null,"d","M"+r+","+t+" L"+r+","+(t+o)+" L"+(r+a)+","+(t+o)+"L"+(r+a)+","+t),d.setAttributeNS(null,"class",e.className+" vis-icon-fill"),e.options.shaded.style!==void 0&&e.options.shaded.style!==""&&d.setAttributeNS(null,"style",e.options.shaded.style)),e.options.drawPoints.enabled==!0){var f={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className};_n(r+.5*a,t,f,s.svgElements,s.svg)}};at.drawShading=function(e,r,t,a){if(r.options.shaded.enabled==!0){var n=Number(a.svg.style.height.replace("px","")),s=ar("path",a.svgElements,a.svg),o="L";r.options.interpolation.enabled==!0&&(o="C");var l,d=0;r.options.shaded.orientation=="top"?d=0:r.options.shaded.orientation=="bottom"?d=n:d=Math.min(Math.max(0,r.zeroPosition),n),r.options.shaded.orientation=="group"&&t!=null&&t!=null?l="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1)+" L"+t[t.length-1][0]+","+t[t.length-1][1]+" "+this.serializePath(t,o,!0)+t[0][0]+","+t[0][1]+" Z":l="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1)+" V"+d+" H"+e[0][0]+" Z",s.setAttributeNS(null,"class",r.className+" vis-fill"),r.options.shaded.style!==void 0&&s.setAttributeNS(null,"style",r.options.shaded.style),s.setAttributeNS(null,"d",l)}};at.draw=function(e,r,t){if(e!=null&&e!=null){var a=ar("path",t.svgElements,t.svg);a.setAttributeNS(null,"class",r.className),r.style!==void 0&&a.setAttributeNS(null,"style",r.style);var n="L";r.options.interpolation.enabled==!0&&(n="C"),a.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,n,!1))}};at.serializePath=function(e,r,t){if(e.length<2)return"";var a=r,n;if(t)for(n=e.length-2;n>0;n--)a+=e[n][0]+","+e[n][1]+" ";else for(n=1;n<e.length;n++)a+=e[n][0]+","+e[n][1]+" ";return a};at._catmullRomUniform=function(e){var r,t,a,n,s,o,l=[];l.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var d=1/6,u=e.length,f=0;f<u-1;f++)r=f==0?e[0]:e[f-1],t=e[f],a=e[f+1],n=f+2<u?e[f+2]:a,s={screen_x:(-r.screen_x+6*t.screen_x+a.screen_x)*d,screen_y:(-r.screen_y+6*t.screen_y+a.screen_y)*d},o={screen_x:(t.screen_x+6*a.screen_x-n.screen_x)*d,screen_y:(t.screen_y+6*a.screen_y-n.screen_y)*d},l.push([s.screen_x,s.screen_y]),l.push([o.screen_x,o.screen_y]),l.push([a.screen_x,a.screen_y]);return l};at._catmullRom=function(e,r){var t=r.options.interpolation.alpha;if(t==0||t===void 0)return this._catmullRomUniform(e);var a,n,s,o,l,d,u,f,p,m,y,b,E,w,S,D,T,P,F,A=[];A.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var V=e.length,N=0;N<V-1;N++)a=N==0?e[0]:e[N-1],n=e[N],s=e[N+1],o=N+2<V?e[N+2]:s,u=Math.sqrt(Math.pow(a.screen_x-n.screen_x,2)+Math.pow(a.screen_y-n.screen_y,2)),f=Math.sqrt(Math.pow(n.screen_x-s.screen_x,2)+Math.pow(n.screen_y-s.screen_y,2)),p=Math.sqrt(Math.pow(s.screen_x-o.screen_x,2)+Math.pow(s.screen_y-o.screen_y,2)),w=Math.pow(p,t),D=Math.pow(p,2*t),S=Math.pow(f,t),T=Math.pow(f,2*t),F=Math.pow(u,t),P=Math.pow(u,2*t),m=2*P+3*F*S+T,y=2*D+3*w*S+T,b=3*F*(F+S),b>0&&(b=1/b),E=3*w*(w+S),E>0&&(E=1/E),l={screen_x:(-T*a.screen_x+m*n.screen_x+P*s.screen_x)*b,screen_y:(-T*a.screen_y+m*n.screen_y+P*s.screen_y)*b},d={screen_x:(D*n.screen_x+y*s.screen_x-T*o.screen_x)*E,screen_y:(D*n.screen_y+y*s.screen_y-T*o.screen_y)*E},l.screen_x==0&&l.screen_y==0&&(l=n),d.screen_x==0&&d.screen_y==0&&(d=s),A.push([l.screen_x,l.screen_y]),A.push([d.screen_x,d.screen_y]),A.push([s.screen_x,s.screen_y]);return A};at._linear=function(e){for(var r=[],t=0;t<e.length;t++)r.push([e[t].screen_x,e[t].screen_y]);return r};function di(e,r,t,a){this.id=r;var n=["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"];this.options=x.selectiveBridgeObject(n,t),this.usingDefaultStyle=e.className===void 0,this.groupsUsingDefaultStyles=a,this.zeroPosition=0,this.update(e),this.usingDefaultStyle==!0&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=e.visible===void 0?!0:e.visible}di.prototype.setItems=function(e){e!=null?(this.itemsData=e,Ue(this.options)==!0&&x.insertSort(this.itemsData,function(r,t){return r.x>t.x?1:-1})):this.itemsData=[]};di.prototype.getItems=function(){return this.itemsData};di.prototype.setZeroPosition=function(e){this.zeroPosition=e};di.prototype.setOptions=function(e){if(e!==void 0){var r=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];x.selectiveDeepExtend(r,this.options,e),typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),x.mergeOptions(this.options,e,"interpolation"),x.mergeOptions(this.options,e,"drawPoints"),x.mergeOptions(this.options,e,"shaded"),e.interpolation&&ee(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}};di.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=e.visible===void 0?!0:e.visible,this.style=e.style,this.setOptions(e.options)};di.prototype.getLegend=function(e,r,t,a,n){if(t==null||t==null){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");t={svg:s,svgElements:{},options:this.options,groups:[this]}}switch((a==null||a==null)&&(a=0),(n==null||n==null)&&(n=.5*r),this.options.style){case"line":at.drawIcon(this,a,n,e,r,t);break;case"points":case"point":Ua.drawIcon(this,a,n,e,r,t);break;case"bar":gt.drawIcon(this,a,n,e,r,t);break}return{icon:t.svg,label:this.content,orientation:this.options.yAxisOrientation}};di.prototype.getYRange=function(e){for(var r=e[0].y,t=e[0].y,a=0;a<e.length;a++)r=r>e[a].y?e[a].y:r,t=t<e[a].y?e[a].y:t;return{min:r,max:t,yAxisOrientation:this.options.yAxisOrientation}};function Bt(e,r,t,a){this.body=e,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=t,this.options=x.extend({},this.defaultOptions),this.linegraphOptions=a,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(r)}Bt.prototype=new li;Bt.prototype.clear=function(){this.groups={},this.amountOfGroups=0};Bt.prototype.addGroup=function(e,r){r.options.excludeFromLegend!=!0&&(this.groups.hasOwnProperty(e)||(this.groups[e]=r),this.amountOfGroups+=1)};Bt.prototype.updateGroup=function(e,r){this.groups[e]=r};Bt.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)};Bt.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)};Bt.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};Bt.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};Bt.prototype.setOptions=function(e){var r=["enabled","orientation","icons","left","right"];x.selectiveDeepExtend(r,this.options,e)};Bt.prototype.redraw=function(){var e=0,r=Ze(this.groups);Ue(r).call(r,function(o,l){return o<l?-1:1});for(var t=0;t<r.length;t++){var a=r[t];this.groups[a].visible==!0&&(this.linegraphOptions.visibility[a]===void 0||this.linegraphOptions.visibility[a]==!0)&&e++}if(this.options[this.side].visible==!1||this.amountOfGroups==0||this.options.enabled==!1||e==0)this.hide();else{if(this.show(),this.options[this.side].position=="top-left"||this.options[this.side].position=="bottom-left"?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),this.options[this.side].position=="top-left"||this.options[this.side].position=="top-right")this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var n=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+n+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}this.options.icons==!1?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var s="";for(t=0;t<r.length;t++)a=r[t],this.groups[a].visible==!0&&(this.linegraphOptions.visibility[a]===void 0||this.linegraphOptions.visibility[a]==!0)&&(s+=this.groups[a].content+"<br />");this.dom.textArea.innerHTML=x.xss(s),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}};Bt.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=Ze(this.groups);Ue(e).call(e,function(u,f){return u<f?-1:1}),UL(this.svgElements);var r=window.getComputedStyle(this.dom.frame).paddingTop,t=Number(r.replace("px","")),a=t,n=this.options.iconSize,s=.75*this.options.iconSize,o=t+.5*s+3;this.svg.style.width=n+5+t+"px";for(var l=0;l<e.length;l++){var d=e[l];this.groups[d].visible==!0&&(this.linegraphOptions.visibility[d]===void 0||this.linegraphOptions.visibility[d]==!0)&&(this.groups[d].getLegend(n,s,this.framework,a,o),o+=s+this.options.iconSpacing)}}};var po="__ungrouped__";function De(e,r){this.id=Ei(),this.body=e,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=x.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var t=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(n,s,o){t._onAdd(s.items)},update:function(n,s,o){t._onUpdate(s.items)},remove:function(n,s,o){t._onRemove(s.items)}},this.groupListeners={add:function(n,s,o){t._onAddGroups(s.items)},update:function(n,s,o){t._onUpdateGroups(s.items)},remove:function(n,s,o){t._onRemoveGroups(s.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(r),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){t.svg.style.left=x.option.asSize(-t.props.width),t.forceGraphUpdate=!0,t.redraw.call(t)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}De.prototype=new li;De.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new rm(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new rm(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new Bt(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new Bt(this.body,this.options.legend,"right",this.options.groups),this.show()};De.prototype.setOptions=function(e){if(e){var r=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];e.graphHeight===void 0&&e.height!==void 0?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):this.body.domProps.centerContainer.height!==void 0&&e.graphHeight!==void 0&&Lt((e.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),x.selectiveDeepExtend(r,this.options,e),x.mergeOptions(this.options,e,"interpolation"),x.mergeOptions(this.options,e,"drawPoints"),x.mergeOptions(this.options,e,"shaded"),x.mergeOptions(this.options,e,"legend"),e.interpolation&&ee(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&e.dataAxis!==void 0&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&e.legend!==void 0&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(po)&&this.groups[po].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))};De.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};De.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};De.prototype.setItems=function(e){var r=this,t,a=this.itemsData;if(!e)this.itemsData=null;else if(Rr(e))this.itemsData=wn(e);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(a&&(B(x).call(x,this.itemListeners,function(s,o){a.off(o,s)}),a.dispose(),t=a.getIds(),this._onRemove(t)),this.itemsData){var n=this.id;B(x).call(x,this.itemListeners,function(s,o){r.itemsData.on(o,s,n)}),t=this.itemsData.getIds(),this._onAdd(t)}};De.prototype.setGroups=function(e){var r=this,t;if(this.groupsData){B(x).call(x,this.groupListeners,function(s,o){r.groupsData.off(o,s)}),t=this.groupsData.getIds(),this.groupsData=null;for(var a=0;a<t.length;a++)this._removeGroup(t[a])}if(!e)this.groupsData=null;else if(Rr(e))this.groupsData=e;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var n=this.id;B(x).call(x,this.groupListeners,function(s,o){r.groupsData.on(o,s,n)}),t=this.groupsData.getIds(),this._onAddGroups(t)}};De.prototype._onUpdate=function(e){this._updateAllGroupData(e)};De.prototype._onAdd=function(e){this._onUpdate(e)};De.prototype._onRemove=function(e){this._onUpdate(e)};De.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)};De.prototype._onAddGroups=function(e){this._onUpdateGroups(e)};De.prototype._onRemoveGroups=function(e){for(var r=0;r<e.length;r++)this._removeGroup(e[r]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})};De.prototype._removeGroup=function(e){this.groups.hasOwnProperty(e)&&(this.groups[e].options.yAxisOrientation=="right"?(this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e),this.legendLeft.redraw()),delete this.groups[e])};De.prototype._updateGroup=function(e,r){this.groups.hasOwnProperty(r)?(this.groups[r].update(e),this.groups[r].options.yAxisOrientation=="right"?(this.yAxisRight.updateGroup(r,this.groups[r]),this.legendRight.updateGroup(r,this.groups[r]),this.yAxisLeft.removeGroup(r),this.legendLeft.removeGroup(r)):(this.yAxisLeft.updateGroup(r,this.groups[r]),this.legendLeft.updateGroup(r,this.groups[r]),this.yAxisRight.removeGroup(r),this.legendRight.removeGroup(r))):(this.groups[r]=new di(e,r,this.options,this.groupsUsingDefaultStyles),this.groups[r].options.yAxisOrientation=="right"?(this.yAxisRight.addGroup(r,this.groups[r]),this.legendRight.addGroup(r,this.groups[r])):(this.yAxisLeft.addGroup(r,this.groups[r]),this.legendLeft.addGroup(r,this.groups[r]))),this.legendLeft.redraw(),this.legendRight.redraw()};De.prototype._updateAllGroupData=function(e,r){if(this.itemsData!=null){var t={},a=this.itemsData.get(),n=this.itemsData.idProp,s={};e&&ye(e).call(e,function(w){s[w]=w});for(var o={},l=0;l<a.length;l++){var d=a[l],u=d.group;u==null&&(u=po),o.hasOwnProperty(u)?o[u]++:o[u]=1}var f={};if(!r&&e){for(u in this.groups)if(this.groups.hasOwnProperty(u)){E=this.groups[u];var p=E.getItems();t[u]=J(p).call(p,function(w){return f[w[n]]=w[n],w[n]!==s[w[n]]});var m=o[u];o[u]-=t[u].length,t[u].length<m&&(t[u][m-1]={})}}for(l=0;l<a.length;l++)if(d=a[l],u=d.group,u==null&&(u=po),!(!r&&e&&d[n]!==s[d[n]]&&f.hasOwnProperty(d[n]))){t.hasOwnProperty(u)||(t[u]=new Array(o[u]));var y=x.bridgeObject(d);y.x=x.convert(d.x,"Date"),y.end=x.convert(d.end,"Date"),y.orginalY=d.y,y.y=Number(d.y),y[n]=d[n];var b=t[u].length-o[u]--;t[u][b]=y}for(u in this.groups)this.groups.hasOwnProperty(u)&&(t.hasOwnProperty(u)||(t[u]=new Array(0)));for(u in t)if(t.hasOwnProperty(u))if(t[u].length==0)this.groups.hasOwnProperty(u)&&this._removeGroup(u);else{var E=void 0;this.groupsData!=null&&(E=this.groupsData.get(u)),E==null&&(E={id:u,content:this.options.defaultGroup+u}),this._updateGroup(E,u),this.groups[u].setItems(t[u])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}};De.prototype.redraw=function(){var e=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,e=this._isResized()||e;var r=this.body.range.end-this.body.range.start,t=r!=this.lastVisibleInterval;if(this.lastVisibleInterval=r,e==!0){var a;this.svg.style.width=x.option.asSize(3*this.props.width),this.svg.style.left=x.option.asSize(-this.props.width),(Se(a=this.options.height+"").call(a,"%")!=-1||this.updateSVGheightOnResize==!0)&&(this.updateSVGheight=!0)}if(this.updateSVGheight==!0?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",e==!0||t==!0||this.abortedGraphUpdate==!0||this.forceGraphUpdate==!0)e=this._updateGraph()||e,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(this.lastStart!=0){var n=this.body.range.start-this.lastStart,s=this.body.range.end-this.body.range.start;if(this.props.width!=0){var o=this.props.width/s,l=n*o;this.svg.style.left=-this.props.width-l+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),e};De.prototype._getSortedGroupIds=function(){var e=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var t=this.groups[r];t.visible==!0&&(this.options.groups.visibility[r]===void 0||this.options.groups.visibility[r]==!0)&&e.push({id:r,zIndex:t.options.zIndex})}x.insertSort(e,function(s,o){var l=s.zIndex,d=o.zIndex;return l===void 0&&(l=0),d===void 0&&(d=0),l==d?0:l<d?-1:1});for(var a=new Array(e.length),n=0;n<e.length;n++)a[n]=e[n].id;return a};De.prototype._updateGraph=function(){if(Kr(this.svgElements),this.props.width!=0&&this.itemsData!=null){var e,r,t={},a=!1,n=this.body.util.toGlobalTime(-this.body.domProps.root.width),s=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(o.length>0){var l={};for(this._getRelevantData(o,l,n,s),this._applySampling(o,l),r=0;r<o.length;r++)this._convertXcoordinates(l[o[r]]);if(this._getYRanges(o,l,t),a=this._updateYAxis(o,t),a==!0)return zt(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var d=void 0;for(r=0;r<o.length;r++)e=this.groups[o[r]],this.options.stack===!0&&this.options.style==="line"&&(e.options.excludeFromStacking==null||!e.options.excludeFromStacking)&&(d!=null&&(this._stack(l[e.id],l[d.id]),e.options.shaded.enabled==!0&&e.options.shaded.orientation!=="group"&&(e.options.shaded.orientation=="top"&&d.options.shaded.orientation!=="group"?(d.options.shaded.orientation="group",d.options.shaded.groupId=e.id):(e.options.shaded.orientation="group",e.options.shaded.groupId=d.id))),d=e),this._convertYcoordinates(l[o[r]],e);var u={};for(r=0;r<o.length;r++)if(e=this.groups[o[r]],e.options.style==="line"&&e.options.shaded.enabled==!0){var f=l[o[r]];if(f==null||f.length==0)continue;if(u.hasOwnProperty(o[r])||(u[o[r]]=at.calcPath(f,e)),e.options.shaded.orientation==="group"){var p=e.options.shaded.groupId;if(Se(o).call(o,p)===-1){console.log(e.id+": Unknown shading group target given:"+p);continue}u.hasOwnProperty(p)||(u[p]=at.calcPath(l[p],this.groups[p])),at.drawShading(u[o[r]],e,u[p],this.framework)}else at.drawShading(u[o[r]],e,void 0,this.framework)}for(gt.draw(o,l,this.framework),r=0;r<o.length;r++)if(e=this.groups[o[r]],l[o[r]].length>0)switch(e.options.style){case"line":u.hasOwnProperty(o[r])||(u[o[r]]=at.calcPath(l[o[r]],e)),at.draw(u[o[r]],e,this.framework);case"point":case"points":(e.options.style=="point"||e.options.style=="points"||e.options.drawPoints.enabled==!0)&&Ua.draw(l[o[r]],e,this.framework);break}}}return zt(this.svgElements),!1};De.prototype._stack=function(e,r){var t,a,n,s,o;t=0;for(var l=0;l<e.length;l++){s=void 0,o=void 0;for(var d=t;d<r.length;d++)if(r[d].x===e[l].x){s=r[d],o=r[d],t=d;break}else if(r[d].x>e[l].x){o=r[d],d==0?s=o:s=r[d-1],t=d;break}o===void 0&&(s=r[r.length-1],o=r[r.length-1]),a=o.x-s.x,n=o.y-s.y,a==0?e[l].y=e[l].orginalY+o.y:e[l].y=e[l].orginalY+n/a*(e[l].x-s.x)+s.y}};De.prototype._getRelevantData=function(e,r,t,a){var n,s,o,l;if(e.length>0)for(s=0;s<e.length;s++){n=this.groups[e[s]];var d=n.getItems();if(Ue(n.options)==!0){var u=function(b,E){return b.getTime()==E.getTime()?0:b<E?-1:1},f=Math.max(0,x.binarySearchValue(d,t,"x","before",u)),p=Math.min(d.length,x.binarySearchValue(d,a,"x","after",u)+1);p<=0&&(p=d.length);var m=new Array(p-f);for(o=f;o<p;o++)l=n.itemsData[o],m[o-f]=l;r[e[s]]=m}else r[e[s]]=n.itemsData}};De.prototype._applySampling=function(e,r){var t;if(e.length>0){for(var a=0;a<e.length;a++)if(t=this.groups[e[a]],t.options.sampling==!0){var n=r[e[a]];if(n.length>0){var s=1,o=n.length,l=this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x),d=o/l;s=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(d)));for(var u=new Array(o),f=0;f<o;f+=s){var p=Math.round(f/s);u[p]=n[f]}r[e[a]]=pt(u).call(u,0,Math.round(o/s))}}}};De.prototype._getYRanges=function(e,r,t){var a,n,s,o=[],l=[],d;if(e.length>0){for(s=0;s<e.length;s++)a=r[e[s]],d=this.groups[e[s]].options,a.length>0&&(n=this.groups[e[s]],d.stack===!0&&d.style==="bar"?d.yAxisOrientation==="left"?o=Ne(o).call(o,a):l=Ne(l).call(l,a):t[e[s]]=n.getYRange(a,e[s]));gt.getStackedYRange(o,t,e,"__barStackLeft","left"),gt.getStackedYRange(l,t,e,"__barStackRight","right")}};De.prototype._updateYAxis=function(e,r){var t=!1,a=!1,n=!1,s=1e9,o=1e9,l=-1e9,d=-1e9,u,f;if(e.length>0){for(var p=0;p<e.length;p++){var m=this.groups[e[p]];m&&m.options.yAxisOrientation!="right"?(a=!0,s=1e9,l=-1e9):m&&m.options.yAxisOrientation&&(n=!0,o=1e9,d=-1e9)}for(p=0;p<e.length;p++)r.hasOwnProperty(e[p])&&r[e[p]].ignore!==!0&&(u=r[e[p]].min,f=r[e[p]].max,r[e[p]].yAxisOrientation!="right"?(a=!0,s=s>u?u:s,l=l<f?f:l):(n=!0,o=o>u?u:o,d=d<f?f:d));a==!0&&this.yAxisLeft.setRange(s,l),n==!0&&this.yAxisRight.setRange(o,d)}t=this._toggleAxisVisiblity(a,this.yAxisLeft)||t,t=this._toggleAxisVisiblity(n,this.yAxisRight)||t,n==!0&&a==!0?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!a,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==!1?(n==!0?this.yAxisLeft.lineOffset=this.yAxisRight.width:this.yAxisLeft.lineOffset=0,t=this.yAxisLeft.redraw()||t,t=this.yAxisRight.redraw()||t):t=this.yAxisRight.redraw()||t;var y=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(p=0;p<y.length;p++)Se(e).call(e,y[p])!=-1&&pt(e).call(e,Se(e).call(e,y[p]),1);return t};De.prototype._toggleAxisVisiblity=function(e,r){var t=!1;return e==!1?r.dom.frame.parentNode&&r.hidden==!1&&(r.hide(),t=!0):!r.dom.frame.parentNode&&r.hidden==!0&&(r.show(),t=!0),t};De.prototype._convertXcoordinates=function(e){for(var r=this.body.util.toScreen,t=0;t<e.length;t++)e[t].screen_x=r(e[t].x)+this.props.width,e[t].screen_y=e[t].y,e[t].end!=null?e[t].screen_end=r(e[t].end)+this.props.width:e[t].screen_end=void 0};De.prototype._convertYcoordinates=function(e,r){var t=this.yAxisLeft,a=Number(this.svg.style.height.replace("px",""));r.options.yAxisOrientation=="right"&&(t=this.yAxisRight);for(var n=0;n<e.length;n++)e[n].screen_y=Math.round(t.convertValue(e[n].y));r.setZeroPosition(Math.min(a,t.convertValue(0)))};var se="string",pe="boolean",xe="number",Gz="array",tn="date",Re="object",zz="dom",rn="moment",im="any",Uz={configure:{enabled:{boolean:pe},filter:{boolean:pe,function:"function"},container:{dom:zz},__type__:{object:Re,boolean:pe,function:"function"}},alignCurrentTime:{string:se,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:se},sort:{boolean:pe},sampling:{boolean:pe},stack:{boolean:pe},graphHeight:{string:se,number:xe},shaded:{enabled:{boolean:pe},orientation:{string:["bottom","top","zero","group"]},groupId:{object:Re},__type__:{boolean:pe,object:Re}},style:{string:["line","bar","points"]},barChart:{width:{number:xe},minWidth:{number:xe},sideBySide:{boolean:pe},align:{string:["left","center","right"]},__type__:{object:Re}},interpolation:{enabled:{boolean:pe},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:xe},__type__:{object:Re,boolean:pe}},drawPoints:{enabled:{boolean:pe},onRender:{function:"function"},size:{number:xe},style:{string:["square","circle"]},__type__:{object:Re,boolean:pe,function:"function"}},dataAxis:{showMinorLabels:{boolean:pe},showMajorLabels:{boolean:pe},showWeekScale:{boolean:pe},icons:{boolean:pe},width:{string:se,number:xe},visible:{boolean:pe},alignZeros:{boolean:pe},left:{range:{min:{number:xe,undefined:"undefined"},max:{number:xe,undefined:"undefined"},__type__:{object:Re}},format:{function:"function"},title:{text:{string:se,number:xe,undefined:"undefined"},style:{string:se,undefined:"undefined"},__type__:{object:Re}},__type__:{object:Re}},right:{range:{min:{number:xe,undefined:"undefined"},max:{number:xe,undefined:"undefined"},__type__:{object:Re}},format:{function:"function"},title:{text:{string:se,number:xe,undefined:"undefined"},style:{string:se,undefined:"undefined"},__type__:{object:Re}},__type__:{object:Re}},__type__:{object:Re}},legend:{enabled:{boolean:pe},icons:{boolean:pe},left:{visible:{boolean:pe},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Re}},right:{visible:{boolean:pe},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Re}},__type__:{object:Re,boolean:pe}},groups:{visibility:{any:im},__type__:{object:Re}},autoResize:{boolean:pe},throttleRedraw:{number:xe},clickToUse:{boolean:pe},end:{number:xe,date:tn,string:se,moment:rn},format:{minorLabels:{millisecond:{string:se,undefined:"undefined"},second:{string:se,undefined:"undefined"},minute:{string:se,undefined:"undefined"},hour:{string:se,undefined:"undefined"},weekday:{string:se,undefined:"undefined"},day:{string:se,undefined:"undefined"},week:{string:se,undefined:"undefined"},month:{string:se,undefined:"undefined"},quarter:{string:se,undefined:"undefined"},year:{string:se,undefined:"undefined"},__type__:{object:Re}},majorLabels:{millisecond:{string:se,undefined:"undefined"},second:{string:se,undefined:"undefined"},minute:{string:se,undefined:"undefined"},hour:{string:se,undefined:"undefined"},weekday:{string:se,undefined:"undefined"},day:{string:se,undefined:"undefined"},week:{string:se,undefined:"undefined"},month:{string:se,undefined:"undefined"},quarter:{string:se,undefined:"undefined"},year:{string:se,undefined:"undefined"},__type__:{object:Re}},__type__:{object:Re}},moment:{function:"function"},height:{string:se,number:xe},hiddenDates:{start:{date:tn,number:xe,string:se,moment:rn},end:{date:tn,number:xe,string:se,moment:rn},repeat:{string:se},__type__:{object:Re,array:Gz}},locale:{string:se},locales:{__any__:{any:im},__type__:{object:Re}},max:{date:tn,number:xe,string:se,moment:rn},maxHeight:{number:xe,string:se},maxMinorChars:{number:xe},min:{date:tn,number:xe,string:se,moment:rn},minHeight:{number:xe,string:se},moveable:{boolean:pe},multiselect:{boolean:pe},orientation:{string:se},showCurrentTime:{boolean:pe},showMajorLabels:{boolean:pe},showMinorLabels:{boolean:pe},showWeekScale:{boolean:pe},snap:{function:"function",null:"null"},start:{date:tn,number:xe,string:se,moment:rn},timeAxis:{scale:{string:se,undefined:"undefined"},step:{number:xe,undefined:"undefined"},__type__:{object:Re}},width:{string:se,number:xe},zoomable:{boolean:pe},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:xe},zoomMin:{number:xe},zIndex:{number:xe},__type__:{object:Re}},Xz={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function Hr(e,r,t,a){var n,s,o,l,d,u,f;if(!(re(t)||Rr(t))&&t instanceof Object){var p=a;a=t,t=p}a&&a.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var m=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:mt,width:null,height:null,maxHeight:null,minHeight:null},this.options=x.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:O(n=this.on).call(n,this),off:O(s=this.off).call(s,this),emit:O(o=this.emit).call(o,this)},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:O(l=m._toScreen).call(l,m),toGlobalScreen:O(d=m._toGlobalScreen).call(d,m),toTime:O(u=m._toTime).call(u,m),toGlobalTime:O(f=m._toGlobalTime).call(f,m)}},this.range=new pb(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new ho(this.body),this.components.push(this.timeAxis),this.currentTime=new Sb(this.body),this.components.push(this.currentTime),this.linegraph=new De(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(y){m.emit("click",m.getEventProperties(y))}),this.on("doubletap",function(y){m.emit("doubleClick",m.getEventProperties(y))}),this.dom.root.oncontextmenu=function(y){m.emit("contextmenu",m.getEventProperties(y))},this.initialFitDone=!1,this.on("changed",function(){if(m.itemsData!=null){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,m.options.start!=null||m.options.end!=null){if(m.options.start==null||m.options.end==null)var y=m.getItemRange();var b=m.options.start!=null?m.options.start:y.min,E=m.options.end!=null?m.options.end:y.max;m.setWindow(b,E,{animation:!1})}else m.fit({animation:!1});!m.initialDrawDone&&(m.initialRangeChangeDone||!m.options.start&&!m.options.end||m.options.rollingMode)&&(m.initialDrawDone=!0,m.dom.root.style.visibility="visible",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&ct(function(){return m.options.onInitialDrawComplete()},0))}}),a&&this.setOptions(a),t&&this.setGroups(t),r&&this.setItems(r),this._redraw()}Hr.prototype=new fn;Hr.prototype.setOptions=function(e){var r=Cb.validate(e,Uz);r===!0&&console.log("%cErrors have been found in the supplied options object.",vo),fn.prototype.setOptions.call(this,e)};Hr.prototype.setItems=function(e){var r=this.itemsData==null,t;if(e?Rr(e)?t=wn(e):t=wn(new Ci(e)):t=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.linegraph&&this.linegraph.setItems(t!=null?t.rawDS:null),r)if(this.options.start!=null||this.options.end!=null){var a=this.options.start!=null?this.options.start:null,n=this.options.end!=null?this.options.end:null;this.setWindow(a,n,{animation:!1})}else this.fit({animation:!1})};Hr.prototype.setGroups=function(e){var r;e?Rr(e)?r=e:r=new Ci(e):r=null,this.groupsData=r,this.linegraph.setGroups(r)};Hr.prototype.getLegend=function(e,r,t){return r===void 0&&(r=15),t===void 0&&(t=15),this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].getLegend(r,t):"cannot find group:'"+e+"'"};Hr.prototype.isGroupVisible=function(e){return this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].visible&&(this.linegraph.options.groups.visibility[e]===void 0||this.linegraph.options.groups.visibility[e]==!0):!1};Hr.prototype.getDataRange=function(){var e=null,r=null;for(var t in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(t)&&this.linegraph.groups[t].visible==!0)for(var a=0;a<this.linegraph.groups[t].itemsData.length;a++){var n=this.linegraph.groups[t].itemsData[a],s=x.convert(n.x,"Date").valueOf();e=e==null||e>s?s:e,r=r==null||r<s?s:r}return{min:e!=null?new Date(e):null,max:r!=null?new Date(r):null}};Hr.prototype.getEventProperties=function(e){var r=e.center?e.center.x:e.clientX,t=e.center?e.center.y:e.clientY,a=r-x.getAbsoluteLeft(this.dom.centerContainer),n=t-x.getAbsoluteTop(this.dom.centerContainer),s=this._toTime(a),o=Tc.customTimeFromTarget(e),l=x.getTarget(e),d=null;x.hasParent(l,this.timeAxis.dom.foreground)||this.timeAxis2&&x.hasParent(l,this.timeAxis2.dom.foreground)?d="axis":x.hasParent(l,this.linegraph.yAxisLeft.dom.frame)||x.hasParent(l,this.linegraph.yAxisRight.dom.frame)?d="data-axis":x.hasParent(l,this.linegraph.legendLeft.dom.frame)||x.hasParent(l,this.linegraph.legendRight.dom.frame)?d="legend":o!=null?d="custom-time":x.hasParent(l,this.currentTime.bar)?d="current-time":x.hasParent(l,this.dom.center)&&(d="background");var u=[],f=this.linegraph.yAxisLeft,p=this.linegraph.yAxisRight;return!f.hidden&&this.itemsData.length>0&&u.push(f.screenToValue(n)),!p.hidden&&this.itemsData.length>0&&u.push(p.screenToValue(n)),{event:e,customTime:o?o.options.id:null,what:d,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:a,y:n,time:s,value:u}};Hr.prototype._createConfigurator=function(){return new Ob(this,this.dom.container,Xz)};var qz=XL();mt.locale(qz);const Kz=h.defineComponent({name:"reason-explained-modal",components:{},props:{reason_explained:Object,reason:Object},setup(){return{}}}),dr=(e,r)=>{const t=e.__vccOpts||e;for(const[a,n]of r)t[a]=n;return t},Zz={class:"modal fade",id:"chargeback_reason_explained",tabindex:"1","aria-hidden":"true"},Qz={class:"modal-dialog mw-650px"},Jz={class:"card card-body"},e9={class:"card-title fs-5 fw-bolder"},t9={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.svg",alt:"",class:"h-25px pe-5"},r9={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.svg",alt:"",class:"h-25px pe-5"},i9={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.svg",alt:"",class:"h-25px pe-5"},n9={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.svg",alt:"",class:"h-25px pe-5"},a9={class:"mh-300px scroll-y m-5 py-5"},s9={class:"d-flex align-items-center"},o9={class:"ms-5"},l9={class:"fw-bold text-gray-800"};function d9(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",Zz,[h.createElementVNode("div",Qz,[h.createElementVNode("div",Jz,[h.createElementVNode("div",e9,[e.reason.card_brand==="Visa"?(h.openBlock(),h.createElementBlock("img",t9)):h.createCommentVNode("",!0),e.reason.card_brand==="American Express"?(h.openBlock(),h.createElementBlock("img",r9)):h.createCommentVNode("",!0),e.reason.card_brand==="Mastercard"?(h.openBlock(),h.createElementBlock("img",i9)):h.createCommentVNode("",!0),e.reason.card_brand==="Discover"?(h.openBlock(),h.createElementBlock("img",n9)):h.createCommentVNode("",!0),h.createTextVNode(" "+h.toDisplayString(e.reason.code),1)]),h.createElementVNode("div",null,h.toDisplayString(e.reason.message),1),h.createElementVNode("div",a9,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.reason_explained.message.explanations,(o,l)=>(h.openBlock(),h.createElementBlock("div",{key:l,class:"d-flex flex-stack py-4 border-bottom border-gray-300 border-bottom-dashed"},[h.createElementVNode("div",s9,[h.createElementVNode("div",o9,[h.createElementVNode("div",l9,h.toDisplayString(o),1)])])]))),128))])])])])}const u9=dr(Kz,[["render",d9]]),c9=h.defineComponent({name:"nmi-details",props:{incoming:{type:Object,required:!0}},setup(e){const r=h.toRef(e,"incoming"),t=h.computed(()=>{var u;return(u=e.incoming)==null?void 0:u.card_holder}),a=h.computed(()=>{var u;return(u=e.incoming)==null?void 0:u.card}),n=h.computed(()=>{var u,f;return((f=(u=e.incoming)==null?void 0:u.transaction)==null?void 0:f.action)||[]}),s=h.computed(()=>{var u,f;return((f=(u=e.incoming)==null?void 0:u.order_details)==null?void 0:f.items)||[]}),o=h.computed(()=>e.incoming.transaction),l=h.computed(()=>{const u=n.value;return u.length>0?u[u.length-1].response_text:null}),d=h.computed(()=>{const u=t.value.phone||"";return u.length===10?`1 (${u.slice(0,3)}) ${u.slice(3,6)}-${u.slice(6)}`:u});return{lastAction:l,formattedPhone:d,card:a,incomingData:r,transaction:o,actions:n,orders:s,cardholder:t}}}),h9={class:"accordion-item"},f9={id:"kt_accordion_4_body_4",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_4_body_4","data-bs-parent":"#kt_accordion_1"},v9={class:"accordion-body pb-1"},p9={class:"d-flex flex-wrap py-2 fs-7"},m9={class:"flex-equal ms-2 me-5"},g9={class:"table table-flush fw-bold gy-1"},y9={class:"text-gray-800"},_9={class:"text-gray-800"},b9={class:"text-gray-800"},w9={class:"text-gray-800"},k9={class:"text-gray-800"},x9={class:"flex-equal"},E9={class:"table table-flush fw-bold gy-1"},S9={class:"text-gray-800 text-hover-primary"},$9={class:"text-gray-800 text-hover-primary"},D9={class:"text-gray-800 text-hover-primary"},T9={class:"text-gray-800 text-hover-primary"},N9={class:"text-gray-800 text-hover-primary"};function C9(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",h9,[r[10]||(r[10]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_4_header_4"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_4_body_4","aria-expanded":"false","aria-controls":"kt_accordion_4_body_4"}," Transaction Details ")],-1)),h.createElementVNode("div",f9,[h.createElementVNode("div",v9,[h.createElementVNode("div",p9,[h.createElementVNode("div",m9,[h.createElementVNode("table",g9,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[0]||(r[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"Transaction Id:",-1)),h.createElementVNode("td",y9,h.toDisplayString(e.transaction.transaction_id),1)]),h.createElementVNode("tr",null,[r[1]||(r[1]=h.createElementVNode("td",{class:"text-muted w-auto"},"Auth Code:",-1)),h.createElementVNode("td",_9,h.toDisplayString(e.transaction.authorization_code),1)]),h.createElementVNode("tr",null,[r[2]||(r[2]=h.createElementVNode("td",{class:"text-muted w-auto"},"CAVV:",-1)),h.createElementVNode("td",b9,h.toDisplayString(e.transaction.cavv),1)]),h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted w-auto"},"ECI:",-1)),h.createElementVNode("td",w9,h.toDisplayString(e.transaction.eci),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Trans Date:",-1)),h.createElementVNode("td",k9,h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].date:e.transaction.action.date),1)])])])]),h.createElementVNode("div",x9,[h.createElementVNode("table",E9,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Amount:",-1)),h.createElementVNode("td",S9," $"+h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].amount:e.transaction.action.amount),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",$9,h.toDisplayString(e.transaction.avs_response),1)]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CSC:",-1)),h.createElementVNode("td",D9,h.toDisplayString(e.transaction.csc_response),1)]),h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CC Bin:",-1)),h.createElementVNode("td",T9,h.toDisplayString(e.transaction.cc_bin),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CC Number:",-1)),h.createElementVNode("td",N9,h.toDisplayString(e.transaction.cc_number),1)])])])])])])])])}const O9=dr(c9,[["render",C9],["__scopeId","data-v-5d7c95ae"]]),P9=h.defineComponent({name:"usaepay-details",props:{incoming:Object},setup(){return{}}}),I9={class:"rounded border pt-0 mb-5"},M9={class:"accordion",id:"kt_accordion_1"},A9={class:"accordion-item"},V9={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},R9={class:"accordion-body"},L9={class:"mb-0"},F9={class:"table table-flush fw-bold gy-1"},Y9={class:"text-gray-800"},j9={class:"text-gray-800"},B9={class:"text-gray-800"},H9={class:"text-gray-800"},W9={class:"text-gray-800"},G9={class:"text-gray-800"},z9={class:"text-gray-800"},U9={class:"text-gray-800"},X9={class:"text-gray-800"},q9={class:"text-gray-800"},K9={class:"accordion-item"},Z9={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},Q9={class:"accordion-body"},J9={class:"mb-0"},eU={class:"accordion-item"},tU={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},rU={class:"accordion-body"},iU={class:"mb-0"};function nU(e,r,t,a,n,s){var o,l,d,u,f,p,m,y,b,E,w,S;return h.openBlock(),h.createElementBlock("div",I9,[h.createElementVNode("div",M9,[h.createElementVNode("div",A9,[r[14]||(r[14]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Location Member Details ")],-1)),h.createElementVNode("div",V9,[h.createElementVNode("div",R9,[h.createElementVNode("div",L9,[h.createElementVNode("table",F9,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[0]||(r[0]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," Account Holder: ",-1)),h.createElementVNode("td",Y9,h.toDisplayString((o=e.incoming)==null?void 0:o.transaction.AccountHolder),1),r[1]||(r[1]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",j9,h.toDisplayString((l=e.incoming)==null?void 0:l.transaction.Response.RefNum),1)]),r[10]||(r[10]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[r[2]||(r[2]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," Batch Number: ",-1)),h.createElementVNode("td",B9,h.toDisplayString((d=e.incoming)==null?void 0:d.transaction.Response.BatchNum),1),r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Batch RefNumber: ",-1)),h.createElementVNode("td",H9,h.toDisplayString((u=e.incoming)==null?void 0:u.transaction.Response.BatchRefNum),1)]),r[11]||(r[11]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"},"Result:",-1)),h.createElementVNode("td",W9,h.toDisplayString((f=e.incoming)==null?void 0:f.transaction.Response.Result),1),r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Result Code:",-1)),h.createElementVNode("td",G9,h.toDisplayString((p=e.incoming)==null?void 0:p.transaction.Response.ResultCode),1)]),r[12]||(r[12]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",z9,h.toDisplayString((m=e.incoming)==null?void 0:m.transaction.Response.Status),1),r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status Code:",-1)),h.createElementVNode("td",U9,h.toDisplayString((y=e.incoming)==null?void 0:y.transaction.Response.StatusCode),1)]),r[13]||(r[13]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," CardPresent: ",-1)),h.createElementVNode("td",X9,h.toDisplayString((b=e.incoming)==null?void 0:b.transaction.CreditCardData.CardPresent),1),r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Product:",-1)),h.createElementVNode("td",q9,h.toDisplayString((E=e.incoming)==null?void 0:E.order_details.items[0].name),1)])])])])])])]),h.createElementVNode("div",K9,[r[15]||(r[15]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",Z9,[h.createElementVNode("div",Q9,[h.createElementVNode("div",J9,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((w=e.incoming)==null?void 0:w.connection_id),1)])])])]),h.createElementVNode("div",eU,[r[16]||(r[16]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",tU,[h.createElementVNode("div",rU,[h.createElementVNode("div",iU,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((S=e.incoming)==null?void 0:S.connection_id),1)])])])])])])}const aU=dr(P9,[["render",nU]]),sU=h.defineComponent({name:"squareup-details",props:{incoming:Object},setup(){return{}}}),oU={class:"rounded border pt-0 mb-5"},lU={class:"accordion fs-7",id:"kt_accordion_1"},dU={class:"accordion-item"},uU={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},cU={class:"accordion-body"},hU={class:"mb-0"},fU={class:"table-responsive"},vU={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},pU={class:"fw-bold text-gray-800"},mU={class:"w-50px"},gU={class:"w-50px"},yU={class:"w-50px text-end pe-5"},_U={class:"accordion-item"},bU={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},wU={class:"accordion-body"},kU={class:"mb-0"},xU={class:"d-flex flex-wrap py-2"},EU={class:"flex-equal ms-2 me-2"},SU={class:"table table-flush fw-bold gy-1 mb-0"},$U={class:"text-gray-800"},DU={class:"text-gray-800"},TU={class:"text-gray-800"},NU={class:"text-gray-800"},CU={class:"text-gray-800"},OU={class:"flex-equal ms-2 me-2"},PU={class:"table table-flush fw-bold gy-1"},IU={class:"text-gray-800"},MU={class:"text-gray-800"},AU={class:"text-gray-800"},VU={class:"text-gray-800"},RU={class:"text-gray-800"},LU={class:"accordion-item"},FU={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},YU={class:"accordion-body"},jU={class:"mb-0"},BU={class:"d-flex flex-wrap py-5"},HU={class:"flex-equal ms-2 me-5"},WU={class:"table table-flush fw-bold gy-1"},GU={class:"text-gray-800 text-hover-primary"},zU={class:"text-gray-800 text-hover-primary"},UU={class:"text-gray-800 text-hover-primary"},XU={class:"text-gray-800 text-hover-primary"},qU={class:"flex-equal"},KU={class:"table table-flush fw-bold gy-1"},ZU={class:"text-gray-800"},QU={class:"text-gray-800"},JU={class:"text-gray-800"},e7={class:"text-gray-800 pt-4"};function t7(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",oU,[h.createElementVNode("div",lU,[h.createElementVNode("div",dU,[r[1]||(r[1]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",uU,[h.createElementVNode("div",cU,[h.createElementVNode("div",hU,[h.createElementVNode("div",fU,[h.createElementVNode("table",vU,[r[0]||(r[0]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Line Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Type"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",pU,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.order.line_items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",mU,h.toDisplayString(o.uid),1)]),h.createElementVNode("td",null,h.toDisplayString(o.item_type),1),h.createElementVNode("td",gU,h.toDisplayString(o.quantity),1),h.createElementVNode("td",yU,h.toDisplayString(o.base_price_money.amount),1)]))),128))])])])])])])]),h.createElementVNode("div",_U,[r[12]||(r[12]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",bU,[h.createElementVNode("div",wU,[h.createElementVNode("div",kU,[h.createElementVNode("div",xU,[h.createElementVNode("div",EU,[h.createElementVNode("table",SU,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[2]||(r[2]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",$U,h.toDisplayString(e.incoming.transaction.payment.id),1)]),h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",DU,h.toDisplayString(e.incoming.transaction.payment.delay_duration),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",TU,h.toDisplayString(e.incoming.transaction.payment.card_details.avs_status),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",NU,h.toDisplayString(e.incoming.transaction.payment.card_details.cvv_status),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Created Date: ",-1)),h.createElementVNode("td",CU,h.toDisplayString(e.incoming.transaction.payment.created_at),1)])])])]),h.createElementVNode("div",OU,[h.createElementVNode("table",PU,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",IU,h.toDisplayString(e.incoming.transaction.payment.order_id),1)]),h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",MU,h.toDisplayString(e.incoming.transaction.payment.status),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",AU,h.toDisplayString(e.incoming.transaction.payment.card_details.status),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Receipt Number: ",-1)),h.createElementVNode("td",VU,h.toDisplayString(e.incoming.transaction.payment.receipt_number),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",RU,h.toDisplayString(e.incoming.transaction.payment.card_details.statement_description),1)])])])])])])])])]),h.createElementVNode("div",LU,[r[22]||(r[22]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",FU,[h.createElementVNode("div",YU,[h.createElementVNode("div",jU,[h.createElementVNode("div",BU,[h.createElementVNode("div",HU,[h.createElementVNode("table",WU,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[13]||(r[13]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",GU,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",zU,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",UU,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[r[17]||(r[17]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",XU,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),r[16]||(r[16]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",qU,[h.createElementVNode("table",KU,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[18]||(r[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",ZU,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[r[19]||(r[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Source:",-1)),h.createElementVNode("td",QU,h.toDisplayString(e.incoming.card_holder.source),1)]),h.createElementVNode("tr",null,[r[20]||(r[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),h.createElementVNode("td",JU,h.toDisplayString(e.incoming.card_holder.phone),1)]),h.createElementVNode("tr",null,[r[21]||(r[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},[h.createTextVNode(" Email "),h.createElementVNode("br"),h.createTextVNode(" Subscription: ")],-1)),h.createElementVNode("td",e7,h.toDisplayString(e.incoming.card_holder.preferences),1)])])])])])])])])])])])}const r7=dr(sU,[["render",t7]]),i7=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),n7={class:"rounded border pt-0 mb-5"},a7={class:"accordion fs-7",id:"kt_accordion_1"},s7={class:"accordion-item"},o7={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},l7={class:"accordion-body"},d7={class:"mb-0"},u7={key:0,class:"d-flex flex-wrap py-5"},c7={key:1,class:"table-responsive"},h7={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},f7={class:"fw-bold text-gray-800"},v7={class:"w-50px"},p7={class:"w-50px"},m7={class:"w-50px text-end pe-5"},g7={class:"accordion-item"},y7={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},_7={class:"accordion-body"},b7={class:"mb-0"},w7={class:"d-flex flex-wrap py-2"},k7={class:"flex-equal ms-2 me-2"},x7={class:"table table-flush fw-bold gy-1 mb-0"},E7={class:"text-gray-800"},S7={class:"text-gray-800"},$7={class:"text-gray-800"},D7={class:"text-gray-800"},T7={class:"text-gray-800"},N7={class:"flex-equal ms-2 me-2"},C7={class:"table table-flush fw-bold gy-1"},O7={class:"text-gray-800"},P7={class:"text-gray-800"},I7={class:"text-gray-800"},M7={class:"text-gray-800"},A7={class:"text-gray-800"},V7={class:"accordion-item"},R7={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},L7={class:"accordion-body"},F7={class:"mb-0"},Y7={class:"d-flex flex-wrap py-5"},j7={class:"flex-equal ms-2 me-5"},B7={class:"table table-flush fw-bold gy-1"},H7={class:"text-gray-800 text-hover-primary"},W7={class:"text-gray-800 text-hover-primary"},G7={class:"text-gray-800 text-hover-primary"},z7={class:"text-gray-800 text-hover-primary"},U7={class:"flex-equal"},X7={class:"table table-flush fw-bold gy-1"},q7={class:"text-gray-800"},K7={class:"text-gray-800"},Z7={class:"text-gray-800"},Q7={class:"text-gray-800"};function J7(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",n7,[h.createElementVNode("div",a7,[h.createElementVNode("div",s7,[r[2]||(r[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",o7,[h.createElementVNode("div",l7,[h.createElementVNode("div",d7,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",u7,r[0]||(r[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",c7,[h.createElementVNode("table",h7,[r[1]||(r[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",f7,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",v7,h.toDisplayString(o.id),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",p7,h.toDisplayString(o.quantity),1),h.createElementVNode("td",m7,h.toDisplayString(o.unit_price),1)]))),128))])])]))])])])]),h.createElementVNode("div",g7,[r[13]||(r[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",y7,[h.createElementVNode("div",_7,[h.createElementVNode("div",b7,[h.createElementVNode("div",w7,[h.createElementVNode("div",k7,[h.createElementVNode("table",x7,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",E7,h.toDisplayString(e.incoming.transaction.id),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",S7,h.toDisplayString(e.incoming.transaction.response.card.auth_code),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",$7,h.toDisplayString(e.incoming.transaction.response.card.avs_response_code),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",D7,h.toDisplayString(e.incoming.transaction.response.card.cvv_response_code),1)]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",T7,h.toDisplayString(e.incoming.transaction.created_at),1)])])])]),h.createElementVNode("div",N7,[h.createElementVNode("table",C7,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",O7,h.toDisplayString(e.incoming.transaction.order_id),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",P7,h.toDisplayString(e.incoming.transaction.response.card.status),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",I7,h.toDisplayString(e.incoming.transaction.type),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",M7,h.toDisplayString(e.incoming.transaction.description),1)]),h.createElementVNode("tr",null,[r[12]||(r[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Receipt Emailed: ",-1)),h.createElementVNode("td",A7,h.toDisplayString(e.incoming.transaction.email_receipt),1)])])])])])])])])]),h.createElementVNode("div",V7,[r[23]||(r[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",R7,[h.createElementVNode("div",L7,[h.createElementVNode("div",F7,[h.createElementVNode("div",Y7,[h.createElementVNode("div",j7,[h.createElementVNode("table",B7,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",H7,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",W7,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[r[16]||(r[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",G7,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[r[18]||(r[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",z7,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),r[17]||(r[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",U7,[h.createElementVNode("table",X7,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[19]||(r[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",q7,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[r[20]||(r[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Source:",-1)),h.createElementVNode("td",K7,h.toDisplayString(e.incoming.card_holder.source),1)]),h.createElementVNode("tr",null,[r[21]||(r[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),h.createElementVNode("td",Z7,h.toDisplayString(e.incoming.card_holder.phone),1)]),h.createElementVNode("tr",null,[r[22]||(r[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",Q7,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const eX=dr(i7,[["render",J7]]),tX=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),rX={class:"rounded border pt-0 mb-5"},iX={class:"accordion fs-7",id:"kt_accordion_1"},nX={class:"accordion-item"},aX={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},sX={class:"accordion-body"},oX={class:"mb-0"},lX={key:0,class:"d-flex flex-wrap py-5"},dX={key:1,class:"table-responsive"},uX={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},cX={class:"fw-bold text-gray-800"},hX={class:"w-50px"},fX={class:"w-50px"},vX={class:"w-50px text-end pe-5"},pX={class:"accordion-item"},mX={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},gX={class:"accordion-body"},yX={class:"mb-0"},_X={class:"d-flex flex-wrap py-2"},bX={class:"flex-equal ms-2 me-2"},wX={class:"table table-flush fw-bold gy-1 mb-0"},kX={class:"text-gray-800"},xX={class:"text-gray-800"},EX={class:"text-gray-800"},SX={class:"text-gray-800"},$X={class:"text-gray-800"},DX={class:"flex-equal ms-2 me-2"},TX={class:"table table-flush fw-bold gy-1"},NX={class:"text-gray-800"},CX={class:"text-gray-800"},OX={class:"text-gray-800"},PX={class:"text-gray-800"},IX={class:"text-gray-800"},MX={class:"accordion-item"},AX={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},VX={class:"accordion-body"},RX={class:"mb-0"},LX={class:"d-flex flex-wrap py-5"},FX={class:"flex-equal ms-2 me-5"},YX={class:"table table-flush fw-bold gy-1"},jX={class:"text-gray-800 text-hover-primary"},BX={class:"text-gray-800 text-hover-primary"},HX={class:"text-gray-800 text-hover-primary"},WX={class:"text-gray-800 text-hover-primary"},GX={class:"flex-equal"},zX={class:"table table-flush fw-bold gy-1"},UX={class:"text-gray-800"},XX={class:"text-gray-800"},qX={key:0,class:"text-gray-800"},KX={key:1,class:"text-gray-800"},ZX={class:"text-gray-800"};function QX(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",rX,[h.createElementVNode("div",iX,[h.createElementVNode("div",nX,[r[2]||(r[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",aX,[h.createElementVNode("div",sX,[h.createElementVNode("div",oX,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",lX,r[0]||(r[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",dX,[h.createElementVNode("table",uX,[r[1]||(r[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",cX,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",hX,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",fX,h.toDisplayString(o.qty),1),h.createElementVNode("td",vX,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",pX,[r[13]||(r[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",mX,[h.createElementVNode("div",gX,[h.createElementVNode("div",yX,[h.createElementVNode("div",_X,[h.createElementVNode("div",bX,[h.createElementVNode("table",wX,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",kX,h.toDisplayString(e.incoming.transaction["Transaction ID"]),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",xX,h.toDisplayString(e.incoming.transaction["Auth Code"]),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",EX,h.toDisplayString(e.incoming.transaction.AVS),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",SX,h.toDisplayString(e.incoming.transaction.CVV),1)]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",$X,h.toDisplayString(e.incoming.transaction.Date),1)])])])]),h.createElementVNode("div",DX,[h.createElementVNode("table",TX,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",NX,h.toDisplayString(e.incoming.transaction["PPP Order ID"]),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",CX,h.toDisplayString(e.incoming.transaction["Transaction Result"]),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",OX,h.toDisplayString(e.incoming.transaction["Transaction Type"]),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",PX,h.toDisplayString(e.incoming.transaction.URL),1)]),h.createElementVNode("tr",null,[r[12]||(r[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Scheme Identifier: ",-1)),h.createElementVNode("td",IX,h.toDisplayString(e.incoming.transaction["External Scheme Identifier"]),1)])])])])])])])])]),h.createElementVNode("div",MX,[r[23]||(r[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",AX,[h.createElementVNode("div",VX,[h.createElementVNode("div",RX,[h.createElementVNode("div",LX,[h.createElementVNode("div",FX,[h.createElementVNode("table",YX,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",jX,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",BX,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[r[16]||(r[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",HX,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[r[18]||(r[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",WX,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),r[17]||(r[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",GX,[h.createElementVNode("table",zX,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[19]||(r[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",UX,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[r[20]||(r[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Lifecycle ID: ",-1)),h.createElementVNode("td",XX,h.toDisplayString(e.incoming.transaction["Lifecycle ID"]),1)]),h.createElementVNode("tr",null,[r[21]||(r[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),e.incoming.card_holder.phone==""?(h.openBlock(),h.createElementBlock("td",qX," Not Provided ")):(h.openBlock(),h.createElementBlock("td",KX,h.toDisplayString(e.incoming.card_holder.phone),1))]),h.createElementVNode("tr",null,[r[22]||(r[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",ZX,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const JX=dr(tX,[["render",QX]]),eq=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),tq={class:"rounded border pt-0 mb-5"},rq={class:"accordion fs-7",id:"kt_accordion_1"},iq={class:"accordion-item"},nq={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},aq={class:"accordion-body"},sq={class:"mb-0"},oq={key:0,class:"d-flex flex-wrap py-5"},lq={key:1,class:"table-responsive"},dq={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},uq={class:"fw-bold text-gray-800"},cq={class:"w-50px"},hq={class:"w-50px"},fq={class:"w-50px text-end pe-5"},vq={class:"accordion-item"},pq={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},mq={class:"accordion-body"},gq={class:"mb-0"},yq={class:"d-flex flex-wrap py-2"},_q={class:"flex-equal ms-2 me-2"},bq={class:"table table-flush fw-bold gy-1 mb-0"},wq={class:"text-gray-800"},kq={class:"text-gray-800"},xq={class:"text-gray-800"},Eq={class:"text-gray-800"},Sq={class:"text-gray-800"},$q={class:"flex-equal ms-2 me-2"},Dq={class:"table table-flush fw-bold gy-1"},Tq={class:"text-gray-800"},Nq={class:"text-gray-800"},Cq={class:"text-gray-800"},Oq={class:"text-gray-800"},Pq={class:"text-gray-800"},Iq={class:"accordion-item"},Mq={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Aq={class:"accordion-body"},Vq={class:"mb-0"},Rq={class:"d-flex flex-wrap py-5"},Lq={class:"flex-equal ms-2 me-5"},Fq={class:"table table-flush fw-bold gy-1"},Yq={class:"text-gray-800 text-hover-primary"},jq={class:"text-gray-800 text-hover-primary"},Bq={class:"text-gray-800 text-hover-primary"},Hq={class:"text-gray-800 text-hover-primary"},Wq={class:"flex-equal"},Gq={class:"table table-flush fw-bold gy-1"},zq={class:"text-gray-800"},Uq={class:"text-gray-800"},Xq={key:0,class:"text-gray-800"},qq={key:1,class:"text-gray-800"},Kq={class:"text-gray-800"};function Zq(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",tq,[h.createElementVNode("div",rq,[h.createElementVNode("div",iq,[r[2]||(r[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",nq,[h.createElementVNode("div",aq,[h.createElementVNode("div",sq,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",oq,r[0]||(r[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",lq,[h.createElementVNode("table",dq,[r[1]||(r[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",uq,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",cq,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",hq,h.toDisplayString(o.qty),1),h.createElementVNode("td",fq,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",vq,[r[13]||(r[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",pq,[h.createElementVNode("div",mq,[h.createElementVNode("div",gq,[h.createElementVNode("div",yq,[h.createElementVNode("div",_q,[h.createElementVNode("table",bq,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",wq,h.toDisplayString(e.incoming.transaction.TRANS_ID),1)]),h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",kq,h.toDisplayString(e.incoming.transaction.PROC_AUTH_CODE),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",xq,h.toDisplayString(e.incoming.transaction.AVS_CODE),1)]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",Eq,h.toDisplayString(e.incoming.transaction.CVV_CODE),1)]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",Sq,h.toDisplayString(e.incoming.transaction.TRANS_SETTLE_UTC_TS),1)])])])]),h.createElementVNode("div",$q,[h.createElementVNode("table",Dq,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[8]||(r[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",Tq,h.toDisplayString(e.incoming.transaction.PO_ID),1)]),h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Nq,h.toDisplayString(e.incoming.transaction.TRANS_STATUS),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",Cq,h.toDisplayString(e.incoming.transaction.SERVICE_ACTION),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Oq,h.toDisplayString(e.incoming.transaction.DESCRIPTOR),1)]),h.createElementVNode("tr",null,[r[12]||(r[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Card Bank: ",-1)),h.createElementVNode("td",Pq,h.toDisplayString(e.incoming.transaction.CARD_BANK),1)])])])])])])])])]),h.createElementVNode("div",Iq,[r[23]||(r[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Mq,[h.createElementVNode("div",Aq,[h.createElementVNode("div",Vq,[h.createElementVNode("div",Rq,[h.createElementVNode("div",Lq,[h.createElementVNode("table",Fq,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Yq,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",jq,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[r[16]||(r[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Bq,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[r[18]||(r[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",Hq,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),r[17]||(r[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",Wq,[h.createElementVNode("table",Gq,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[19]||(r[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",zq,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[r[20]||(r[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Rebill:",-1)),h.createElementVNode("td",Uq,h.toDisplayString(e.incoming.transaction.REBILL),1)]),h.createElementVNode("tr",null,[r[21]||(r[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),e.incoming.card_holder.phone==""?(h.openBlock(),h.createElementBlock("td",Xq," Not Provided ")):(h.openBlock(),h.createElementBlock("td",qq,h.toDisplayString(e.incoming.card_holder.phone),1))]),h.createElementVNode("tr",null,[r[22]||(r[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",Kq,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const Qq=dr(eq,[["render",Zq]]),Jq=h.defineComponent({name:"chargeback-details",components:{ReasonExplained:u9,NmiDetails:O9,USAEPayDetails:aU,SquareUp:r7,FluidPayDetails:eX,NuveiDetails:JX,InovioPayDetails:Qq},props:{reason:Object,reason_explained:Object,incoming:{type:Object,required:!0},merchant:{type:Object,required:!0}},setup(e){const r=h.toRef(e,"incoming"),t=h.ref(null),a=h.ref({height:"265px"}),n=h.ref(null),s=h.computed(()=>{var S;return((S=e.incoming)==null?void 0:S.card_holder)||{}}),o=h.computed(()=>{var S,D;return((D=(S=e.incoming)==null?void 0:S.transaction)==null?void 0:D.action)||[]}),l=h.computed(()=>{var S;return((S=e.incoming)==null?void 0:S.card)??{}}),d=h.computed(()=>{var S,D;return((D=(S=e.incoming)==null?void 0:S.order_details)==null?void 0:D.items)??[]}),u=h.computed(()=>{var S;return((S=e.incoming.order2_details)==null?void 0:S.items)??[]}),f=h.computed(()=>{var S;try{return e.incoming.crm_details?typeof e.incoming.crm_details=="string"?JSON.parse((S=e.incoming)==null?void 0:S.crm_details):e.incoming.crm_details:{}}catch{return{}}}),p=h.computed(()=>{var S;try{return e.incoming.crm2_details?typeof e.incoming.crm2_details=="string"?JSON.parse((S=e.incoming)==null?void 0:S.crm2_details):e.incoming.crm2_details:{}}catch{return{}}}),m=h.computed(()=>{var S,D,T,P,F,A,V,N;return(P=(T=(D=(S=e.incoming)==null?void 0:S.transaction)==null?void 0:D.action)==null?void 0:T[0])!=null&&P.amount||(V=(A=(F=e.incoming)==null?void 0:F.transaction)==null?void 0:A.action)!=null&&V.amount?(N=e.incoming)==null?void 0:N.transaction:null}),y=h.computed(()=>{const S=[];let D=1;return r.value.dispute_date!==void 0&&new Date(r.value.dispute_date).getTime()>0&&(S.push({id:D,content:"First Chargeback",start:r.value.dispute_date}),D=D+1),r.value.dispute_cycle.dispute_sent_status!==void 0&&r.value.dispute_cycle.dispute_date_sent!==void 0?new Date(r.value.dispute_cycle.dispute_date_sent).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.dispute_sent_status,start:r.value.dispute_cycle.dispute_date_sent}),D=D+1):r.value.dispute_cycle.response_status!==void 0&&r.value.dispute_cycle.response_date!==void 0&&new Date(r.value.dispute_cycle.response_date).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.response_status,start:r.value.dispute_cycle.response_date}),D=D+1),r.value.dispute_cycle.retrieval_status!==void 0&&r.value.dispute_cycle.retrieval_date!==void 0&&new Date(r.value.dispute_cycle.retrieval_date).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.retrieval_status,start:r.value.dispute_cycle.retrieval_date}),D=D+1),r.value.dispute_cycle.dispute_receieved_status!==void 0&&r.value.dispute_cycle.dispute_received_date!==void 0&&new Date(r.value.dispute_cycle.dispute_received_date).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.dispute_receieved_status,start:r.value.dispute_cycle.dispute_received_date}),D=D+1),r.value.dispute_cycle.pre_arbitration_status!==void 0&&r.value.dispute_cycle.pre_arbitration_date!==void 0&&new Date(r.value.dispute_cycle.pre_arbitration_date).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.pre_arbitration_status,start:r.value.dispute_cycle.pre_arbitration_date}),D=D+1),r.value.dispute_cycle.pre_arb_sent_status!==void 0&&r.value.dispute_cycle.pre_arb_date_sent!==void 0&&new Date(r.value.dispute_cycle.pre_arb_date_sent).getTime()>0&&(S.push({id:D,content:r.value.dispute_cycle.pre_arb_sent_status,start:r.value.dispute_cycle.pre_arb_date_sent}),D=D+1),r.value.dispute_cycle.resolved_status!==void 0&&r.value.dispute_cycle.resolved_date!==void 0&&new Date(r.value.dispute_cycle.resolved_date).getTime()&&(S.push({id:D,content:r.value.dispute_cycle.resolved_status,start:r.value.dispute_cycle.resolved_date}),D=D+1),new Ci(S)});h.watch(()=>y.value,()=>{w()});const b=h.computed(()=>{const S=o.value;return S.length>0?S[S.length-1].response_text:null}),E=h.computed(()=>{const S=s.value.phone||"";return S.length===10?`1 (${S.slice(0,3)}) ${S.slice(3,6)}-${S.slice(6)}`:S}),w=()=>{t.value!==null&&(n.value===null?n.value=new Rz(t.value,y.value,a.value):n.value.setItems(y.value))};return{timelineRef:t,incomingData:r,formattedPhone:E,lastAction:b,transaction:m,cardholder:s,actions:o,card:l,orders:d,orders2:u,crm_details:f,crm2_details:p}}}),eK={class:"card card-flush mb-5"},tK={class:"px-9 mb-7"},rK={class:"d-flex flex-wrap"},iK={class:"flex-equal"},nK={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},aK={class:"text-gray-800"},sK={class:"text-gray-800"},oK={class:"text-gray-800"},lK={class:"text-boldest"},dK={class:"text-gray-800"},uK={class:"flex-equal"},cK={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},hK={class:"text-gray-800 badge badge-sm badge-light-warning p-2"},fK={class:"text-gray-800"},vK={class:"text-dark p-0",href:"#chargeback_reason_explained","data-bs-toggle":"modal"},pK={class:"text-gray-800"},mK={class:"ms-n3"},gK={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.png",alt:"",class:"h-20px"},yK={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.png",alt:"",class:"h-20px"},_K={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.png",alt:"",class:"h-20px"},bK={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.png",alt:"",class:"h-20px"},wK={class:"text-gray-800"},kK={key:0,class:"card card-flush mb-5"},xK={class:"px-9 mb-7"},EK={class:"d-flex flex-wrap"},SK={class:"flex-equal"},$K={class:"table table-flush fw-bold gy-1"},DK={class:"text-gray-800"},TK={class:"text-gray-800"},NK={class:"text-gray-800"},CK={class:"text-gray-800"},OK={class:"flex-equal"},PK={class:"table table-flush fw-bold gy-1"},IK={class:"text-gray-800"},MK={class:"text-gray-800"},AK={class:"text-gray-800"},VK={class:"rounded border pt-0 mb-5"},RK={class:"accordion fs-7",id:"kt_accordion"},LK={key:0,class:"accordion-item"},FK={id:"kt_accordion_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_1","data-bs-parent":"#kt_accordion"},YK={class:"accordion-body mt-0 p-1 px-5"},jK={class:"table-responsive"},BK={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},HK={class:"fw-bold text-gray-800 fs-8"},WK={class:"text-end"},GK={key:1,class:"accordion-item"},zK={id:"kt_accordion_body_6",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_6","data-bs-parent":"#kt_accordion"},UK={class:"accordion-body mt-0 p-1 px-5"},XK={class:"table-responsive"},qK={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},KK={class:"fw-bold text-gray-800 fs-8"},ZK={key:2,class:"accordion-item"},QK={id:"kt_accordion_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_header_2","data-bs-parent":"#kt_accordion"},JK={class:"accordion-body mt-0 p-1 px-5"},eZ={class:"table-responsive"},tZ={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},rZ={class:"fw-bold text-gray-800 fs-8"},iZ={class:"text-end"},nZ={key:3,class:"accordion-item"},aZ={id:"kt_accordion_body_3",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_3","data-bs-parent":"#kt_accordion"},sZ={class:"accordion-body mt-0 p-1 px-5"},oZ={class:"table-responsive"},lZ={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},dZ={class:"fw-bold text-gray-800 fs-8"},uZ={class:"rounded border pt-0 mb-5"},cZ={class:"accordion fs-7",id:"kt_accordion_5"},hZ={class:"card card-body"},fZ={class:"card-flush h-auto pt-1"},vZ={class:"mb-0"},pZ={ref:"timelineRef"};function mZ(e,r,t,a,n,s){const o=h.resolveComponent("NmiDetails"),l=h.resolveComponent("USAEPayDetails"),d=h.resolveComponent("SquareUp"),u=h.resolveComponent("FluidPayDetails"),f=h.resolveComponent("NuveiDetails"),p=h.resolveComponent("InovioPayDetails"),m=h.resolveComponent("ReasonExplained");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",eK,[r[8]||(r[8]=h.createElementVNode("div",{class:"card card-body pb-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal fs-6"},"Chargeback Details")])],-1)),h.createElementVNode("div",tK,[h.createElementVNode("div",rK,[h.createElementVNode("div",iK,[h.createElementVNode("table",nK,[h.createElementVNode("tr",null,[r[0]||(r[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"ID:",-1)),h.createElementVNode("td",aK,h.toDisplayString(e.incoming.id),1)]),h.createElementVNode("tr",null,[r[1]||(r[1]=h.createElementVNode("td",{class:"text-muted w-auto"},"Case Number:",-1)),h.createElementVNode("td",sK,h.toDisplayString(e.incoming.case_number),1)]),h.createElementVNode("tr",null,[r[2]||(r[2]=h.createElementVNode("td",{class:"text-muted w-auto"},"Amount:",-1)),h.createElementVNode("td",oK,[h.createTextVNode(" $"+h.toDisplayString(e.incoming.dispute_amount),1),h.createElementVNode("span",lK,h.toDisplayString(e.incoming.currency),1)])]),h.createElementVNode("tr",null,[r[3]||(r[3]=h.createElementVNode("td",{class:"text-muted w-auto"},"Dispute Date:",-1)),h.createElementVNode("td",dK,h.toDisplayString(e.incoming.dispute_date),1)])])]),h.createElementVNode("div",uK,[h.createElementVNode("table",cK,[h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Due Date:",-1)),h.createElementVNode("td",hK,h.toDisplayString(e.incoming.expire_date),1)]),h.createElementVNode("tr",null,[r[5]||(r[5]=h.createElementVNode("td",{class:"text-muted w-auto w-auto"},"Reason Code:",-1)),h.createElementVNode("td",fK,[h.createElementVNode("a",vK,h.toDisplayString(e.incoming.reason),1)])]),h.createElementVNode("tr",null,[r[6]||(r[6]=h.createElementVNode("td",{class:"text-muted w-auto"},"Card Brand:",-1)),h.createElementVNode("td",pK,[h.createElementVNode("span",mK,[e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Visa"?(h.openBlock(),h.createElementBlock("img",gK)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&(e.incoming.card.brand=="Mastercard"||e.incoming.card.brand=="MasterCard")?(h.openBlock(),h.createElementBlock("img",yK)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&(e.incoming.card.brand=="Amex"||e.incoming.card.brand=="AmericanExpress"||e.incoming.card.brand=="American Express")?(h.openBlock(),h.createElementBlock("img",_K)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Discover"?(h.openBlock(),h.createElementBlock("img",bK)):h.createCommentVNode("",!0)])])]),h.createElementVNode("tr",null,[r[7]||(r[7]=h.createElementVNode("td",{class:"text-muted w-auto"},"Transaction Date:",-1)),h.createElementVNode("td",wK,h.toDisplayString(e.incoming.transaction_date),1)])])])])])]),e.cardholder&&Object.keys(e.cardholder).length>0?(h.openBlock(),h.createElementBlock("div",kK,[r[16]||(r[16]=h.createElementVNode("div",{class:"card card-body pb-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal fs-6"},"Cardholder Details")])],-1)),h.createElementVNode("div",xK,[h.createElementVNode("div",EK,[h.createElementVNode("div",SK,[h.createElementVNode("table",$K,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[9]||(r[9]=h.createElementVNode("td",{class:"text-muted w-auto"},"First Name",-1)),h.createElementVNode("td",DK,h.toDisplayString(e.cardholder.first_name),1)]),h.createElementVNode("tr",null,[r[10]||(r[10]=h.createElementVNode("td",{class:"text-muted w-auto"},"Last Name",-1)),h.createElementVNode("td",TK,h.toDisplayString(e.cardholder.last_name),1)]),h.createElementVNode("tr",null,[r[11]||(r[11]=h.createElementVNode("td",{class:"text-muted w-auto"},"Email",-1)),h.createElementVNode("td",NK,h.toDisplayString(e.cardholder.email),1)]),h.createElementVNode("tr",null,[r[12]||(r[12]=h.createElementVNode("td",{class:"text-muted w-auto"},"Billing:",-1)),h.createElementVNode("td",CK,h.toDisplayString(e.cardholder.billing_address),1)])])])]),h.createElementVNode("div",OK,[h.createElementVNode("table",PK,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[r[13]||(r[13]=h.createElementVNode("td",{class:"text-muted w-auto"},"I.P Address",-1)),h.createElementVNode("td",IK,h.toDisplayString(e.cardholder.ip_address),1)]),h.createElementVNode("tr",null,[r[14]||(r[14]=h.createElementVNode("td",{class:"text-muted w-auto"},"Phone",-1)),h.createElementVNode("td",MK,h.toDisplayString(e.formattedPhone),1)]),h.createElementVNode("tr",null,[r[15]||(r[15]=h.createElementVNode("td",{class:"text-muted w-auto"},"Shipping:",-1)),h.createElementVNode("td",AK,h.toDisplayString(e.cardholder.shipping_address),1)])])])])])])])):h.createCommentVNode("",!0),h.createElementVNode("div",VK,[h.createElementVNode("div",RK,[e.orders&&Object.keys(e.orders).length>0?(h.openBlock(),h.createElementBlock("div",LK,[r[18]||(r[18]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_1","aria-expanded":"true","aria-controls":"kt_accordion_body_1"}," Konnektive Order ")],-1)),h.createElementVNode("div",FK,[h.createElementVNode("div",YK,[h.createElementVNode("div",jK,[h.createElementVNode("table",BK,[r[17]||(r[17]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Item Id"),h.createElementVNode("th",{class:"w-1/6"},"Product ID"),h.createElementVNode("th",{class:"w-1/6"},"Product"),h.createElementVNode("th",{class:"w-1/6"},"Qty"),h.createElementVNode("th",{class:"w-1/6 text-end"},"Price")])],-1)),h.createElementVNode("tbody",HK,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orders,(y,b)=>(h.openBlock(),h.createElementBlock("tr",{key:b},[h.createElementVNode("td",null,h.toDisplayString(y.orderItemId),1),h.createElementVNode("td",null,h.toDisplayString(y.productId),1),h.createElementVNode("td",null,h.toDisplayString(y.name),1),h.createElementVNode("td",null,h.toDisplayString(y.qty),1),h.createElementVNode("td",WK,h.toDisplayString(y.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm_details&&Object.keys(e.crm_details).length>0?(h.openBlock(),h.createElementBlock("div",GK,[r[20]||(r[20]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_6"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_6","aria-expanded":"true","aria-controls":"kt_accordion_body_6"}," Konnektive Details ")],-1)),h.createElementVNode("div",zK,[h.createElementVNode("div",UK,[h.createElementVNode("div",XK,[h.createElementVNode("table",qK,[r[19]||(r[19]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Trans ID"),h.createElementVNode("th",{class:"w-1/6"},"Order ID"),h.createElementVNode("th",{class:"w-1/6"},"IP"),h.createElementVNode("th",{class:"w-1/6"},"A ID"),h.createElementVNode("th",{class:"w-1/6"},"Gateway ID"),h.createElementVNode("th",{class:"w-1/6"},"Customer ID")])],-1)),h.createElementVNode("tbody",KK,[h.createElementVNode("tr",null,[h.createElementVNode("td",null,h.toDisplayString(e.crm_details.transactionId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.orderId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.ipAddress),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.actualOrderId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.merchantTxnId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.customerId),1)])])])])])])])):h.createCommentVNode("",!0),e.orders2&&Object.keys(e.orders2).length>0?(h.openBlock(),h.createElementBlock("div",ZK,[r[22]||(r[22]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_2","aria-expanded":"false","aria-controls":"kt_accordion_body_2"}," Sticky Order ")],-1)),h.createElementVNode("div",QK,[h.createElementVNode("div",JK,[h.createElementVNode("div",eZ,[h.createElementVNode("table",tZ,[r[21]||(r[21]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Item Id"),h.createElementVNode("th",{class:"w-1/6"},"ID"),h.createElementVNode("th",{class:"w-1/6"},"URL"),h.createElementVNode("th",{class:"w-1/6"},"Name"),h.createElementVNode("th",{class:"w-1/6"},"Qty"),h.createElementVNode("th",{class:"w-1/6 text-end"},"Price")])],-1)),h.createElementVNode("tbody",rZ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orders2,(y,b)=>(h.openBlock(),h.createElementBlock("tr",{key:b},[h.createElementVNode("td",null,h.toDisplayString(y.item_id),1),h.createElementVNode("td",null,h.toDisplayString(y.product_id),1),h.createElementVNode("td",null,h.toDisplayString(y.product_url),1),h.createElementVNode("td",null,h.toDisplayString(y.name),1),h.createElementVNode("td",null,h.toDisplayString(y.qty),1),h.createElementVNode("td",iZ,h.toDisplayString(y.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm2_details&&Object.keys(e.crm2_details).length>0?(h.openBlock(),h.createElementBlock("div",nZ,[r[24]||(r[24]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_3","aria-expanded":"true","aria-controls":"kt_accordion_body_3"}," Sticky Details ")],-1)),h.createElementVNode("div",aZ,[h.createElementVNode("div",sZ,[h.createElementVNode("div",oZ,[h.createElementVNode("table",lZ,[r[23]||(r[23]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Ancestor ID"),h.createElementVNode("th",{class:"w-1/6"},"Order ID"),h.createElementVNode("th",{class:"w-1/6"},"IP"),h.createElementVNode("th",{class:"w-1/6"},"Trans ID"),h.createElementVNode("th",{class:"w-1/6"},"Gateway ID"),h.createElementVNode("th",{class:"w-1/6"},"Customer ID")])],-1)),h.createElementVNode("tbody",dZ,[h.createElementVNode("tr",null,[h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.ancestor_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.order_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.ip_address),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.transaction_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.gateway_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.customer_id),1)])])])])])])])):h.createCommentVNode("",!0),e.transaction?(h.openBlock(),h.createBlock(o,{key:4,class:"p-0 m-0",incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0)])]),e.incoming.connection_id=="51"?(h.openBlock(),h.createBlock(l,{key:1,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="52"?(h.openBlock(),h.createBlock(d,{key:2,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="45"?(h.openBlock(),h.createBlock(u,{key:3,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="56"?(h.openBlock(),h.createBlock(f,{key:4,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="6"?(h.openBlock(),h.createBlock(p,{key:5,incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0),h.createElementVNode("div",uZ,[h.createElementVNode("div",cZ,[h.createElementVNode("div",hZ,[r[25]||(r[25]=h.createElementVNode("div",{class:"card-body py-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal ms-n6 fs-7"},"Chargeback Cycle")])],-1)),h.createElementVNode("div",fZ,[h.createElementVNode("div",vZ,[h.createElementVNode("div",pZ,null,512)])])])])]),h.createVNode(m,{reason_explained:e.reason_explained,reason:e.reason},null,8,["reason_explained","reason"])],64)}const gZ=dr(Jq,[["render",mZ]]),yZ=h.defineComponent({name:"incoming-summary",emits:["reset"],props:{incoming:{type:Object,required:!0},merchant:{type:Object,required:!0},processor:{type:Object,required:!0},reason:{type:Object,required:!0}}}),_Z={class:"card card-flush mb-0","data-kt-sticky":"false","data-kt-sticky-name":"merchants-summary"},bZ={class:"card-body px-5 pe-8 pt-0 fs-7"},wZ={class:"mb-4"},kZ={class:"row pb-4 align-items-center"},xZ={class:"col text-end"},EZ={class:"card-flush p-0"},SZ={class:"fw-bold text-gray-800"},$Z={class:"d-block"},DZ={class:"row pb-4 align-items-center"},TZ={class:"col text-end"},NZ={class:"card-flush p-0"},CZ={class:"fw-bold text-gray-800"},OZ={class:"d-block"},PZ={class:"row pb-4 align-items-center"},IZ={class:"col text-end"},MZ={class:"card-flush p-0"},AZ={class:"fw-bold text-gray-800"},VZ={class:"d-block"},RZ={class:"row pb-4 align-items-center"},LZ={class:"col text-end"},FZ={class:"card-flush p-0"},YZ={class:"fw-bold text-gray-800"},jZ={class:"d-block"},BZ={class:"row pb-4 align-items-center"},HZ={class:"col text-end"},WZ={class:"card-flush p-0"},GZ={class:"fw-bold text-gray-800"},zZ={class:"d-block"},UZ={class:"row pb-4 align-items-center"},XZ={class:"col text-end"},qZ={class:"card-flush p-0"},KZ={class:"fw-bold text-gray-800"},ZZ={key:0,class:"d-block"},QZ={key:1,class:"d-block"},JZ={class:"row pb-4 align-items-center"},eQ={class:"col text-end"},tQ={class:"card-flush p-0"},rQ={class:"fw-bold text-gray-800"},iQ={class:"d-block"},nQ={class:"row pb-4 align-items-center"},aQ={class:"col text-end"},sQ={class:"card-flush p-0"},oQ={class:"fw-bold text-gray-800"},lQ={class:"d-block"};function dQ(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",_Z,[r[8]||(r[8]=h.createElementVNode("div",{class:"card card-body ps-5 pb-2"},[h.createElementVNode("h5",{class:"mb-4 fs-6 ps-0 fw-normal"},"Summary Details")],-1)),h.createElementVNode("div",bZ,[h.createElementVNode("div",wZ,[h.createElementVNode("div",kZ,[r[0]||(r[0]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Status ")])])],-1)),h.createElementVNode("div",xZ,[h.createElementVNode("div",EZ,[h.createElementVNode("div",SZ,[h.createElementVNode("span",$Z,h.toDisplayString(e.incoming.chargeback_status),1)])])])]),h.createElementVNode("div",DZ,[r[1]||(r[1]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Merchant ")])])],-1)),h.createElementVNode("div",TZ,[h.createElementVNode("div",NZ,[h.createElementVNode("div",CZ,[h.createElementVNode("span",OZ,h.toDisplayString(e.merchant.dba_name),1)])])])]),h.createElementVNode("div",PZ,[r[2]||(r[2]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," MID Number: ")])])],-1)),h.createElementVNode("div",IZ,[h.createElementVNode("div",MZ,[h.createElementVNode("div",AZ,[h.createElementVNode("span",VZ,h.toDisplayString(e.merchant.mid_number),1)])])])]),h.createElementVNode("div",RZ,[r[3]||(r[3]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Merchant ID: ")])])],-1)),h.createElementVNode("div",LZ,[h.createElementVNode("div",FZ,[h.createElementVNode("div",YZ,[h.createElementVNode("span",jZ,h.toDisplayString(e.merchant.merchant_id),1)])])])]),h.createElementVNode("div",BZ,[r[4]||(r[4]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Processor")])])],-1)),h.createElementVNode("div",HZ,[h.createElementVNode("div",WZ,[h.createElementVNode("div",GZ,[h.createElementVNode("span",zZ,h.toDisplayString(e.processor.name),1)])])])]),h.createElementVNode("div",UZ,[r[5]||(r[5]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Response Status")])])],-1)),h.createElementVNode("div",XZ,[h.createElementVNode("div",qZ,[h.createElementVNode("div",KZ,[e.incoming.sent_date=="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("span",ZZ," Not Sent ")):(h.openBlock(),h.createElementBlock("span",QZ," Sent "))])])])]),h.createElementVNode("div",JZ,[r[6]||(r[6]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Reason Category")])])],-1)),h.createElementVNode("div",eQ,[h.createElementVNode("div",tQ,[h.createElementVNode("div",rQ,[h.createElementVNode("span",iQ,h.toDisplayString(e.reason.category),1)])])])]),h.createElementVNode("div",nQ,[r[7]||(r[7]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Reason Condition")])])],-1)),h.createElementVNode("div",aQ,[h.createElementVNode("div",sQ,[h.createElementVNode("div",oQ,[h.createElementVNode("span",lQ,h.toDisplayString(e.incoming.reason_condition),1)])])])])])])])}const uQ=dr(yZ,[["render",dQ]]),tr={apiKey:"",setApiKey(e){this.apiKey=e},async get(e){return await(await fetch(`https://api.riskdefy.io/v3/${e}`,{method:"GET",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"}})).json()}},cQ=h.defineComponent({name:"incoming-details",components:{Details:gZ,Summary:uQ},setup(e){const r=h.computed(()=>e.incomingId),t=h.ref({id:"",transaction_found:"0",details_populated:"0",dispute_url:"",is_responded:"",card_holder:{},card:{},transaction:{action:{}},order_details:{items:[]},order2_details:{items:[]},order3_details:{items:[]},crm2_details:{},crm3_details:{},product_details:{},merchant_id:"",reason:"",dispute_cycle:{},connection_id:"",found_date:"0000-00-00 00:00:00",populated_date:"0000-00-00 00:00:00",sent_date:"0000-00-00 00:00:00",reason_condition:""}),a=h.ref({dba_name:"",processor_id:"",merchantDetails:{}}),n=h.ref({}),s=h.ref({message:{},instructions:{}}),o=h.ref({}),l=h.ref({}),d=h.ref([]);h.onMounted(async()=>{setCurrentPageTitle("Incoming Chargeback Details"),tr.setApiKey(e.apiKey),setTimeout(async()=>{await T(),await f(),DrawerComponent.reinitialization()},500)});const u=h.ref([]),f=async()=>{const{data:I}=await fetch("apis/connections?limit=100");I.success&&(u.value=[...I.data])},p=h.computed(()=>{const I=t.value.transaction;return I&&Object.keys(I).length>0&&I.transaction_id&&I.transaction_id!==""}),m=h.computed(()=>{const M=t.value.found_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),y=h.computed(()=>{const M=t.value.found_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),b=h.computed(()=>{const M=t.value.populated_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),E=h.computed(()=>{const M=t.value.populated_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),w=h.computed(()=>{const M=t.value.sent_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),S=h.computed(()=>{const M=t.value.sent_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),D=h.ref([]),T=async()=>{try{const{data:I}=await tr.get(`chargebacks/incoming?id=${r.value}`);t.value=I.data[0];try{t.value.card_holder=JSON.parse(t.value.card_holder)}catch{t.value.card_holder={}}try{t.value.card=JSON.parse(t.value.card)}catch{t.value.card={}}try{t.value.transaction=JSON.parse(t.value.transaction)}catch{t.value.transaction={action:{}}}try{t.value.dispute_cycle=JSON.parse(t.value.dispute_cycle)}catch{t.value.dispute_cycle={}}try{t.value.order_details=JSON.parse(t.value.order_details)}catch{t.value.order_details={items:[]}}try{t.value.order2_details=JSON.parse(t.value.order2_details)}catch{t.value.order2_details={items:[]}}try{t.value.product_details=JSON.parse(t.value.product_details)}catch{t.value.product_details={}}}catch{t.value={id:"",transaction_found:"0",details_populated:"0",dispute_url:"",is_responded:"",card_holder:{},card:{},transaction:{action:{}},order_details:{items:[]},order2_details:{items:[]},order3_details:{items:[]},crm2_details:{},crm3_details:{},product_details:{},merchant_id:"",reason:"",dispute_cycle:{},connection_id:"",found_date:"0000-00-00 00:00:00",populated_date:"0000-00-00 00:00:00",sent_date:"0000-00-00 00:00:00",reason_condition:""}}try{const{data:I}=await tr.get(`merchants/accounts?merchant_id=${t.value.merchant_id}`);a.value=I.data[0];try{a.value.merchantDetails=JSON.parse(a.value.merchantDetails)}catch{a.value.merchantDetails={}}}catch{a.value={dba_name:"",processor_id:"",merchantDetails:{}}}try{const{data:I}=await tr.get(`chargebacks/reasons?code=${t.value.reason}`);n.value=I.data[0]}catch{n.value={}}try{const{data:I}=await tr.get(`chargebacks/reasons_explained?code=${t.value.reason}`);s.value=I.data[0],s.value.message=JSON.parse(I.data[0].message),s.value.instructions=JSON.parse(I.data[0].instructions)}catch{s.value={message:{},instructions:{}}}try{const{data:I}=await tr.get(`processors/isos/${a.value.processor_id}`);o.value=I.data[0]}catch{o.value={}}try{const{data:I}=await tr.get(`apis/merchants?fields=id,alias_name,connection_id,endpoint_name&category=Gateway&merchant_id=${t.value.merchant_id}`);D.value=I.data}catch{D.value=[]}},P=()=>{T()},F=async()=>{var I;(I=DrawerComponent==null?void 0:DrawerComponent.getInstance("view_incoming_details_drawer"))==null||I.show()},A=async()=>{var I;try{let M=await tr.get(`chargebacks/incoming/${t.value.id}?action=evidence_images`);M.data.success&&(M.data.data[0]===null?d.value=[]:d.value=M.data.data[0]),M=await tr.get(`chargebacks/incoming/${t.value.id}?action=response_packet`),M.data.success&&(M.data.data[0]===null?l.value={}:l.value=M.data.data[0],(I=DrawerComponent==null?void 0:DrawerComponent.getInstance("add_response_drawer"))==null||I.show())}catch{l.value={},d.value=[]}},V=async()=>{try{let I=await tr.get(`chargebacks/incoming/${t.value.id}?action=evidence_images`);I.data.success&&(I.data.data[0]===null?d.value=[]:d.value=I.data.data[0]),I=await tr.get(`chargebacks/incoming/${t.value.id}?action=response_packet`),I.data.success&&(I.data.data[0]===null?l.value={}:l.value=I.data.data[0])}catch{l.value={},d.value=[]}},N=h.computed(()=>{const{transaction:I,card_holder:M,...H}=t.value;return H});return{incoming:t,isTransactionAvailable:p,incomingWithoutTransaction:N,merchant:a,reason:n,reason_explained:s,processor:o,getFoundTime:m,getPopulatedTime:b,resetIncoming:P,getSentTime:w,getSentDate:S,getFoundDate:y,getPopulatedDate:E,connections:u,onOpenResponseDrawer:A,onFormEntry:F,submitTemplate:V,templates:l,templateImages:d,apiSyncItems:D}}}),hQ={class:"row g-5 g-xl-10"},fQ={class:"col-xl-8"},vQ={class:"col-xl-4 mb-10"},pQ={class:"card"},mQ={class:"card"},gQ={class:"card card-body d-flex align-items-start mt-5 pt-5"},yQ={class:"mb-auto"},_Q={class:"card-body pt-5"},bQ={class:"timeline-label"},wQ={key:0,class:"timeline-item"},kQ={class:"timeline-label text-gray-800 fs-8"},xQ={class:"text-gray-800 ps-3 fs-8"},EQ={key:1,class:"timeline-item"},SQ={key:2,class:"timeline-item"},$Q={class:"timeline-label text-gray-800 fs-8"},DQ={class:"text-gray-800 ps-3 fs-8"},TQ={key:3,class:"timeline-item"},NQ={key:4,class:"timeline-item"},CQ={class:"timeline-label text-gray-800 fs-8"},OQ={class:"timeline-content d-flex"},PQ={class:"text-gray-800 ps-3 fs-8"},IQ={key:5,class:"timeline-item"};function MQ(e,r,t,a,n,s){const o=h.resolveComponent("Details"),l=h.resolveComponent("Summary");return h.openBlock(),h.createElementBlock("div",hQ,[h.createElementVNode("div",fQ,[h.createVNode(o,{reason_explained:e.reason_explained,reason:e.reason,merchant:e.merchant,incoming:e.incoming},null,8,["reason_explained","reason","merchant","incoming"])]),h.createElementVNode("div",vQ,[h.createElementVNode("div",pQ,[h.createElementVNode("div",mQ,[h.createVNode(l,{reason:e.reason,processor:e.processor,merchant:e.merchant,incoming:e.incoming},null,8,["reason","processor","merchant","incoming"])])]),h.createElementVNode("div",gQ,[h.createElementVNode("div",yQ,[r[6]||(r[6]=h.createElementVNode("div",{class:"align-items-center border-0"},[h.createElementVNode("h3",{class:"align-items-start flex-column"},[h.createElementVNode("span",{class:"fw-normal fs-7 text-dark ps-5"},"Response Timeline")])],-1)),h.createElementVNode("div",_Q,[h.createElementVNode("div",bQ,[e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",wQ,[h.createElementVNode("div",kQ,h.toDisplayString(e.getFoundTime),1),r[0]||(r[0]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",xQ," Transaction Found ("+h.toDisplayString(e.getFoundDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",EQ,r[1]||(r[1]=[h.createElementVNode("div",{class:"timeline-label text-gray-400 fs-8"},"00:00",-1),h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-gray-400 fs-1"})],-1),h.createElementVNode("div",{class:"text-gray-400 ps-3 fs-8"},"Transaction Not Found",-1)]))),e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",SQ,[h.createElementVNode("div",$Q,h.toDisplayString(e.getPopulatedTime),1),r[2]||(r[2]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",DQ," Details Populated ("+h.toDisplayString(e.getPopulatedDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",TQ,r[3]||(r[3]=[h.createElementVNode("div",{class:"timeline-label text-gray-400 fs-8"},"00:00",-1),h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-gray-400 fs-1"})],-1),h.createElementVNode("div",{class:"text-gray-400 ps-3 fs-8"},"Details Not Populated",-1)]))),e.incoming.sent_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",NQ,[h.createElementVNode("div",CQ,h.toDisplayString(e.getSentTime),1),r[4]||(r[4]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",OQ,[h.createElementVNode("span",PQ,"Response Sent ("+h.toDisplayString(e.getSentDate)+")",1)])])):(h.openBlock(),h.createElementBlock("div",IQ,r[5]||(r[5]=[h.createStaticVNode('<div class="timeline-label text-gray-400 fs-8">00:00</div><div class="timeline-badge"><i class="fa fa-genderless text-gray-400 fs-1"></i></div><div class="timeline-content d-flex"><span class="text-gray-400 ps-3 fs-8">Response Not Sent</span></div>',3)])))])])])])])])}const AQ=dr(cQ,[["render",MQ]]),VQ={props:{apiKey:{type:String,required:!0},incomingId:{type:String,required:!0}},data(){return{data:null}},components:{IncomingDetails:AQ}};function RQ(e,r,t,a,n,s){const o=h.resolveComponent("IncomingDetails");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(o,{apiKey:t.apiKey,incomingId:t.incomingId},null,8,["apiKey","incomingId"])])}const Pb=dr(VQ,[["render",RQ]]),LQ={install(e){e.component("Chargebacks",Pb)}};exports.Chargebacks=Pb;exports.default=LQ;
|