@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.umd.js
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
(function(mn,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],h):(mn=typeof globalThis<"u"?globalThis:mn||self,h(mn.Chargebacks={},mn.Vue))})(this,function(mn,h){"use strict";var wt="top",zt="bottom",Ut="right",Et="left",ao="auto",$i=[wt,zt,Ut,Et],Bn="start",Di="end",qf="clippingParents",Ed="viewport",Ni="popper",Xf="reference",Sd=$i.reduce(function(e,t){return e.concat([t+"-"+Bn,t+"-"+Di])},[]),kd=[].concat($i,[ao]).reduce(function(e,t){return e.concat([t,t+"-"+Bn,t+"-"+Di])},[]),Qf="beforeRead",Zf="read",Jf="afterRead",ep="beforeMain",tp="main",rp="afterMain",np="beforeWrite",ip="write",ap="afterWrite",sp=[Qf,Zf,Jf,ep,tp,rp,np,ip,ap];function Cr(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hn(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xd(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function A1(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];!ar(s)||!Cr(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 I1(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},{});!ar(n)||!Cr(n)||(Object.assign(n.style,l),Object.keys(s).forEach(function(d){n.removeAttribute(d)}))})}}const Td={name:"applyStyles",enabled:!0,phase:"write",fn:A1,effect:I1,requires:["computeStyles"]};function Or(e){return e.split("-")[0]}var Wn=Math.max,so=Math.min,Ci=Math.round;function $d(){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 op(){return!/^((?!chrome|android).)*safari/i.test($d())}function Oi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var a=e.getBoundingClientRect(),n=1,s=1;t&&ar(e)&&(n=e.offsetWidth>0&&Ci(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ci(a.height)/e.offsetHeight||1);var o=Hn(e)?Kt(e):window,l=o.visualViewport,d=!op()&&r,c=(a.left+(d&&l?l.offsetLeft:0))/n,f=(a.top+(d&&l?l.offsetTop:0))/s,m=a.width/n,v=a.height/s;return{width:m,height:v,top:f,right:c+m,bottom:f+v,left:c,x:c,y:f}}function Dd(e){var t=Oi(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 lp(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&xd(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Br(e){return Kt(e).getComputedStyle(e)}function P1(e){return["table","td","th"].indexOf(Cr(e))>=0}function vn(e){return((Hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function oo(e){return Cr(e)==="html"?e:e.assignedSlot||e.parentNode||(xd(e)?e.host:null)||vn(e)}function dp(e){return!ar(e)||Br(e).position==="fixed"?null:e.offsetParent}function M1(e){var t=/firefox/i.test($d()),r=/Trident/i.test($d());if(r&&ar(e)){var a=Br(e);if(a.position==="fixed")return null}var n=oo(e);for(xd(n)&&(n=n.host);ar(n)&&["html","body"].indexOf(Cr(n))<0;){var s=Br(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 Ha(e){for(var t=Kt(e),r=dp(e);r&&P1(r)&&Br(r).position==="static";)r=dp(r);return r&&(Cr(r)==="html"||Cr(r)==="body"&&Br(r).position==="static")?t:r||M1(e)||t}function Nd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wa(e,t,r){return Wn(e,so(t,r))}function R1(e,t,r){var a=Wa(e,t,r);return a>r?r:a}function cp(){return{top:0,right:0,bottom:0,left:0}}function up(e){return Object.assign({},cp(),e)}function hp(e,t){return t.reduce(function(r,a){return r[a]=e,r},{})}var L1=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,up(typeof t!="number"?t:hp(t,$i))};function V1(e){var t,r=e.state,a=e.name,n=e.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,l=Or(r.placement),d=Nd(l),c=[Et,Ut].indexOf(l)>=0,f=c?"height":"width";if(!(!s||!o)){var m=L1(n.padding,r),v=Dd(s),g=d==="y"?wt:Et,b=d==="y"?zt:Ut,S=r.rects.reference[f]+r.rects.reference[d]-o[d]-r.rects.popper[f],w=o[d]-r.rects.reference[d],k=Ha(s),T=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0,D=S/2-w/2,N=m[g],L=T-v[f]-m[b],A=T/2-v[f]/2+D,R=Wa(N,A,L),C=d;r.modifiersData[a]=(t={},t[C]=R,t.centerOffset=R-A,t)}}function F1(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)||lp(t.elements.popper,n)&&(t.elements.arrow=n))}const fp={name:"arrow",enabled:!0,phase:"main",fn:V1,effect:F1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(e){return e.split("-")[1]}var Y1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function j1(e,t){var r=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:Ci(r*n)/n||0,y:Ci(a*n)/n||0}}function pp(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,m=e.isFixed,v=o.x,g=v===void 0?0:v,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=Et,N=wt,L=window;if(c){var A=Ha(r),R="clientHeight",C="clientWidth";if(A===Kt(r)&&(A=vn(r),Br(A).position!=="static"&&l==="absolute"&&(R="scrollHeight",C="scrollWidth")),A=A,n===wt||(n===Et||n===Ut)&&s===Di){N=zt;var j=m&&A===L&&L.visualViewport?L.visualViewport.height:A[R];S-=j-a.height,S*=d?1:-1}if(n===Et||(n===wt||n===zt)&&s===Di){D=Ut;var O=m&&A===L&&L.visualViewport?L.visualViewport.width:A[C];g-=O-a.width,g*=d?1:-1}}var M=Object.assign({position:l},c&&Y1),H=f===!0?j1({x:g,y:S},Kt(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 B1(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:Or(t.placement),variation:Ai(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,pp(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,pp(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 Cd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:B1,data:{}};var lo={passive:!0};function H1(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=Kt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",r.update,lo)}),l&&d.addEventListener("resize",r.update,lo),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",r.update,lo)}),l&&d.removeEventListener("resize",r.update,lo)}}const Od={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H1,data:{}};var W1={left:"right",right:"left",bottom:"top",top:"bottom"};function co(e){return e.replace(/left|right|bottom|top/g,function(t){return W1[t]})}var G1={start:"end",end:"start"};function mp(e){return e.replace(/start|end/g,function(t){return G1[t]})}function Ad(e){var t=Kt(e),r=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:r,scrollTop:a}}function Id(e){return Oi(vn(e)).left+Ad(e).scrollLeft}function z1(e,t){var r=Kt(e),a=vn(e),n=r.visualViewport,s=a.clientWidth,o=a.clientHeight,l=0,d=0;if(n){s=n.width,o=n.height;var c=op();(c||!c&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:s,height:o,x:l+Id(e),y:d}}function U1(e){var t,r=vn(e),a=Ad(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=Wn(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Wn(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-a.scrollLeft+Id(e),d=-a.scrollTop;return Br(n||r).direction==="rtl"&&(l+=Wn(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:o,x:l,y:d}}function Pd(e){var t=Br(e),r=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+a)}function vp(e){return["html","body","#document"].indexOf(Cr(e))>=0?e.ownerDocument.body:ar(e)&&Pd(e)?e:vp(oo(e))}function Ga(e,t){var r;t===void 0&&(t=[]);var a=vp(e),n=a===((r=e.ownerDocument)==null?void 0:r.body),s=Kt(a),o=n?[s].concat(s.visualViewport||[],Pd(a)?a:[]):a,l=t.concat(o);return n?l:l.concat(Ga(oo(o)))}function Md(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K1(e,t){var r=Oi(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 gp(e,t,r){return t===Ed?Md(z1(e,r)):Hn(t)?K1(t,r):Md(U1(vn(e)))}function q1(e){var t=Ga(oo(e)),r=["absolute","fixed"].indexOf(Br(e).position)>=0,a=r&&ar(e)?Ha(e):e;return Hn(a)?t.filter(function(n){return Hn(n)&&lp(n,a)&&Cr(n)!=="body"}):[]}function X1(e,t,r,a){var n=t==="clippingParents"?q1(e):[].concat(t),s=[].concat(n,[r]),o=s[0],l=s.reduce(function(d,c){var f=gp(e,c,a);return d.top=Wn(f.top,d.top),d.right=so(f.right,d.right),d.bottom=so(f.bottom,d.bottom),d.left=Wn(f.left,d.left),d},gp(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 yp(e){var t=e.reference,r=e.element,a=e.placement,n=a?Or(a):null,s=a?Ai(a):null,o=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,d;switch(n){case wt:d={x:o,y:t.y-r.height};break;case zt:d={x:o,y:t.y+t.height};break;case Ut:d={x:t.x+t.width,y:l};break;case Et:d={x:t.x-r.width,y:l};break;default:d={x:t.x,y:t.y}}var c=n?Nd(n):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case Bn:d[c]=d[c]-(t[f]/2-r[f]/2);break;case Di:d[c]=d[c]+(t[f]/2-r[f]/2);break}}return d}function Ii(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?qf:l,c=r.rootBoundary,f=c===void 0?Ed:c,m=r.elementContext,v=m===void 0?Ni:m,g=r.altBoundary,b=g===void 0?!1:g,S=r.padding,w=S===void 0?0:S,k=up(typeof w!="number"?w:hp(w,$i)),T=v===Ni?Xf:Ni,D=e.rects.popper,N=e.elements[b?T:v],L=X1(Hn(N)?N:N.contextElement||vn(e.elements.popper),d,f,o),A=Oi(e.elements.reference),R=yp({reference:A,element:D,placement:n}),C=Md(Object.assign({},D,R)),j=v===Ni?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(v===Ni&&M){var H=M[n];Object.keys(O).forEach(function(z){var oe=[Ut,zt].indexOf(z)>=0?1:-1,_e=[wt,zt].indexOf(z)>=0?"y":"x";O[z]+=H[_e]*oe})}return O}function Q1(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?kd:d,f=Ai(a),m=f?l?Sd:Sd.filter(function(b){return Ai(b)===f}):$i,v=m.filter(function(b){return c.indexOf(b)>=0});v.length===0&&(v=m);var g=v.reduce(function(b,S){return b[S]=Ii(e,{placement:S,boundary:n,rootBoundary:s,padding:o})[Or(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function Z1(e){if(Or(e)===ao)return[];var t=co(e);return[mp(e),t,mp(t)]}function J1(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,m=r.rootBoundary,v=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,S=r.allowedAutoPlacements,w=t.options.placement,k=Or(w),T=k===w,D=d||(T||!b?[co(w)]:Z1(w)),N=[w].concat(D).reduce(function(yt,q){return yt.concat(Or(q)===ao?Q1(t,{placement:q,boundary:f,rootBoundary:m,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=Or(M),z=Ai(M)===Bn,oe=[wt,zt].indexOf(H)>=0,_e=oe?"width":"height",be=Ii(t,{placement:M,boundary:f,rootBoundary:m,altBoundary:v,padding:c}),pe=oe?z?Ut:Et:z?zt:wt;L[_e]>A[_e]&&(pe=co(pe));var it=co(pe),ft=[];if(s&&ft.push(be[H]<=0),l&&ft.push(be[pe]<=0,be[it]<=0),ft.every(function(yt){return yt})){j=M,C=!1;break}R.set(M,ft)}if(C)for(var Me=b?3:1,Gt=function(q){var Tr=N.find(function(Yr){var _t=R.get(Yr);if(_t)return _t.slice(0,q).every(function(W){return W})});if(Tr)return j=Tr,"break"},pt=Me;pt>0;pt--){var Fr=Gt(pt);if(Fr==="break")break}t.placement!==j&&(t.modifiersData[a]._skip=!0,t.placement=j,t.reset=!0)}}const _p={name:"flip",enabled:!0,phase:"main",fn:J1,requiresIfExists:["offset"],data:{_skip:!1}};function bp(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 wp(e){return[wt,Ut,zt,Et].some(function(t){return e[t]>=0})}function eS(e){var t=e.state,r=e.name,a=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,o=Ii(t,{elementContext:"reference"}),l=Ii(t,{altBoundary:!0}),d=bp(o,a),c=bp(l,n,s),f=wp(d),m=wp(c);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}const Ep={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eS};function tS(e,t,r){var a=Or(e),n=[Et,wt].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,[Et,Ut].indexOf(a)>=0?{x:l,y:o}:{x:o,y:l}}function rS(e){var t=e.state,r=e.options,a=e.name,n=r.offset,s=n===void 0?[0,0]:n,o=kd.reduce(function(f,m){return f[m]=tS(m,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 Sp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rS};function nS(e){var t=e.state,r=e.name;t.modifiersData[r]=yp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Rd={name:"popperOffsets",enabled:!0,phase:"read",fn:nS,data:{}};function iS(e){return e==="x"?"y":"x"}function aS(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,m=r.padding,v=r.tether,g=v===void 0?!0:v,b=r.tetherOffset,S=b===void 0?0:b,w=Ii(t,{boundary:d,rootBoundary:c,padding:m,altBoundary:f}),k=Or(t.placement),T=Ai(t.placement),D=!T,N=Nd(k),L=iS(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,oe=N==="y"?wt:Et,_e=N==="y"?zt:Ut,be=N==="y"?"height":"width",pe=A[N],it=pe+w[oe],ft=pe-w[_e],Me=g?-C[be]/2:0,Gt=T===Bn?R[be]:C[be],pt=T===Bn?-C[be]:-R[be],Fr=t.elements.arrow,yt=g&&Fr?Dd(Fr):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cp(),Tr=q[oe],Yr=q[_e],_t=Wa(0,R[be],yt[be]),W=D?R[be]/2-Me-_t-Tr-O.mainAxis:Gt-_t-Tr-O.mainAxis,F=D?-R[be]/2+Me+_t+Yr+O.mainAxis:pt+_t+Yr+O.mainAxis,B=t.elements.arrow&&Ha(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=pe+W-ie-Q,Fe=pe+F-ie,tt=Wa(g?so(it,re):it,pe,g?Wn(ft,Fe):ft);A[N]=tt,H[N]=tt-pe}if(l){var at,$r=N==="x"?wt:Et,pr=N==="x"?zt:Ut,Xe=A[L],Qe=L==="y"?"height":"width",At=Xe+w[$r],Pa=Xe-w[pr],Ma=[wt,Et].indexOf(k)!==-1,st=(at=M==null?void 0:M[L])!=null?at:0,rd=Ma?At:Xe-R[Qe]-C[Qe]-st+O.altAxis,Si=Ma?Xe+R[Qe]+C[Qe]-st-O.altAxis:Pa,It=g&&Ma?R1(rd,Xe,Si):Wa(g?rd:At,Xe,g?Si:Pa);A[L]=It,H[L]=It-Xe}t.modifiersData[a]=H}}const kp={name:"preventOverflow",enabled:!0,phase:"main",fn:aS,requiresIfExists:["offset"]};function sS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oS(e){return e===Kt(e)||!ar(e)?Ad(e):sS(e)}function lS(e){var t=e.getBoundingClientRect(),r=Ci(t.width)/e.offsetWidth||1,a=Ci(t.height)/e.offsetHeight||1;return r!==1||a!==1}function dS(e,t,r){r===void 0&&(r=!1);var a=ar(t),n=ar(t)&&lS(t),s=vn(t),o=Oi(e,n,r),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!r)&&((Cr(t)!=="body"||Pd(s))&&(l=oS(t)),ar(t)?(d=Oi(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Id(s))),{x:o.left+l.scrollLeft-d.x,y:o.top+l.scrollTop-d.y,width:o.width,height:o.height}}function cS(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 uS(e){var t=cS(e);return sp.reduce(function(r,a){return r.concat(t.filter(function(n){return n.phase===a}))},[])}function hS(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fS(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 xp={placement:"bottom",modifiers:[],strategy:"absolute"};function Tp(){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 uo(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,a=r===void 0?[]:r,n=t.defaultOptions,s=n===void 0?xp:n;return function(l,d,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},xp,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},m=[],v=!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:Hn(l)?Ga(l):l.contextElement?Ga(l.contextElement):[],popper:Ga(d)};var D=uS(fS([].concat(a,f.options.modifiers)));return f.orderedModifiers=D.filter(function(N){return N.enabled}),b(),g.update()},forceUpdate:function(){if(!v){var k=f.elements,T=k.reference,D=k.popper;if(Tp(T,D)){f.rects={reference:dS(T,Ha(D),f.options.strategy==="fixed"),popper:Dd(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:hS(function(){return new Promise(function(w){g.forceUpdate(),w(f)})}),destroy:function(){S(),v=!0}};if(!Tp(l,d))return g;g.setOptions(c).then(function(w){!v&&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(){};m.push(L||A)}})}function S(){m.forEach(function(w){return w()}),m=[]}return g}}var pS=uo(),mS=[Od,Rd,Cd,Td],vS=uo({defaultModifiers:mS}),gS=[Od,Rd,Cd,Td,Sp,_p,kp,fp,Ep],Ld=uo({defaultModifiers:gS});const $p=Object.freeze(Object.defineProperty({__proto__:null,afterMain:rp,afterRead:Jf,afterWrite:ap,applyStyles:Td,arrow:fp,auto:ao,basePlacements:$i,beforeMain:ep,beforeRead:Qf,beforeWrite:np,bottom:zt,clippingParents:qf,computeStyles:Cd,createPopper:Ld,createPopperBase:pS,createPopperLite:vS,detectOverflow:Ii,end:Di,eventListeners:Od,flip:_p,hide:Ep,left:Et,main:tp,modifierPhases:sp,offset:Sp,placements:kd,popper:Ni,popperGenerator:uo,popperOffsets:Rd,preventOverflow:kp,read:Zf,reference:Xf,right:Ut,start:Bn,top:wt,variationPlacements:Sd,viewport:Ed,write:ip},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 gn=new Map,Vd={set(e,t,r){gn.has(e)||gn.set(e,new Map);const a=gn.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 gn.has(e)&&gn.get(e).get(t)||null},remove(e,t){if(!gn.has(e))return;const r=gn.get(e);r.delete(t),r.size===0&&gn.delete(e)}},yS=1e6,_S=1e3,Fd="transitionend",Dp=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,r)=>`#${CSS.escape(r)}`)),e),bS=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),wS=e=>{do e+=Math.floor(Math.random()*yS);while(document.getElementById(e));return e},ES=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))*_S)},Np=e=>{e.dispatchEvent(new Event(Fd))},Hr=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),yn=e=>Hr(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(Dp(e)):null,Pi=e=>{if(!Hr(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",Cp=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?Cp(e.parentNode):null},ho=()=>{},za=e=>{e.offsetHeight},Op=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Yd=[],SS=e=>{document.readyState==="loading"?(Yd.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Yd)t()}),Yd.push(e)):e()},sr=()=>document.documentElement.dir==="rtl",or=e=>{SS(()=>{const t=Op();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)}})},Mt=(e,t=[],r=e)=>typeof e=="function"?e(...t):r,Ap=(e,t,r=!0)=>{if(!r){Mt(e);return}const n=ES(t)+5;let s=!1;const o=({target:l})=>{l===t&&(s=!0,t.removeEventListener(Fd,o),Mt(e))};t.addEventListener(Fd,o),setTimeout(()=>{s||Np(t)},n)},jd=(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))])},kS=/[^.]*(?=\..*)\.|.*/,xS=/\..*/,TS=/::\d+$/,Bd={};let Ip=1;const Pp={mouseenter:"mouseover",mouseleave:"mouseout"},$S=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 Mp(e,t){return t&&`${t}::${Ip++}`||e.uidEvent||Ip++}function Rp(e){const t=Mp(e);return e.uidEvent=t,Bd[t]=Bd[t]||{},Bd[t]}function DS(e,t){return function r(a){return Wd(a,{delegateTarget:e}),r.oneOff&&V.off(e,a.type,t),t.apply(e,[a])}}function NS(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 Wd(n,{delegateTarget:o}),a.oneOff&&V.off(e,n.type,t,r),r.apply(o,[n])}}function Lp(e,t,r=null){return Object.values(e).find(a=>a.callable===t&&a.delegationSelector===r)}function Vp(e,t,r){const a=typeof t=="string",n=a?r:t||r;let s=Yp(e);return $S.has(s)||(s=e),[a,n,s]}function Fp(e,t,r,a,n){if(typeof t!="string"||!e)return;let[s,o,l]=Vp(t,r,a);t in Pp&&(o=(b=>function(S){if(!S.relatedTarget||S.relatedTarget!==S.delegateTarget&&!S.delegateTarget.contains(S.relatedTarget))return b.call(this,S)})(o));const d=Rp(e),c=d[l]||(d[l]={}),f=Lp(c,o,s?r:null);if(f){f.oneOff=f.oneOff&&n;return}const m=Mp(o,t.replace(kS,"")),v=s?NS(e,r,o):DS(e,o);v.delegationSelector=s?r:null,v.callable=o,v.oneOff=n,v.uidEvent=m,c[m]=v,e.addEventListener(l,v,s)}function Hd(e,t,r,a,n){const s=Lp(t[r],a,n);s&&(e.removeEventListener(r,s,!!n),delete t[r][s.uidEvent])}function CS(e,t,r,a){const n=t[r]||{};for(const[s,o]of Object.entries(n))s.includes(a)&&Hd(e,t,r,o.callable,o.delegationSelector)}function Yp(e){return e=e.replace(xS,""),Pp[e]||e}const V={on(e,t,r,a){Fp(e,t,r,a,!1)},one(e,t,r,a){Fp(e,t,r,a,!0)},off(e,t,r,a){if(typeof t!="string"||!e)return;const[n,s,o]=Vp(t,r,a),l=o!==t,d=Rp(e),c=d[o]||{},f=t.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;Hd(e,d,o,s,n?r:null);return}if(f)for(const m of Object.keys(d))CS(e,d,m,t.slice(1));for(const[m,v]of Object.entries(c)){const g=m.replace(TS,"");(!l||t.includes(g))&&Hd(e,d,o,v.callable,v.delegationSelector)}},trigger(e,t,r){if(typeof t!="string"||!e)return null;const a=Op(),n=Yp(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=Wd(new Event(t,{bubbles:l,cancelable:!0}),r);return c&&f.preventDefault(),d&&e.dispatchEvent(f),f.defaultPrevented&&o&&o.preventDefault(),f}};function Wd(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 jp(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 Gd(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Wr={setDataAttribute(e,t,r){e.setAttribute(`data-bs-${Gd(t)}`,r)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Gd(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]=jp(e.dataset[a])}return t},getDataAttribute(e,t){return jp(e.getAttribute(`data-bs-${Gd(t)}`))}};class Ua{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=Hr(r)?Wr.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...Hr(r)?Wr.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=Hr(s)?"element":bS(s);if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${o}" but expected type "${n}".`)}}}const OS="5.3.3";class mr extends Ua{constructor(t,r){super(),t=yn(t),t&&(this._element=t,this._config=this._getConfig(r),Vd.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Vd.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){Ap(t,r,a)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Vd.get(yn(t),this.DATA_KEY)}static getOrCreateInstance(t,r={}){return this.getInstance(t)||new this(t,typeof r=="object"?r:null)}static get VERSION(){return OS}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 zd=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=>Dp(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)&&Pi(r))},getSelectorFromElement(e){const t=zd(e);return t&&ee.findOne(t)?t:null},getElementFromSelector(e){const t=zd(e);return t?ee.findOne(t):null},getMultipleElementsFromSelector(e){const t=zd(e);return t?ee.find(t):[]}},fo=(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]()})},AS="alert",Bp=".bs.alert",IS=`close${Bp}`,PS=`closed${Bp}`,MS="fade",RS="show";class po extends mr{static get NAME(){return AS}close(){if(V.trigger(this._element,IS).defaultPrevented)return;this._element.classList.remove(RS);const r=this._element.classList.contains(MS);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),V.trigger(this._element,PS),this.dispose()}static jQueryInterface(t){return this.each(function(){const r=po.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)}})}}fo(po,"close"),or(po);const LS="button",VS=".bs.button",FS=".data-api",YS="active",Hp='[data-bs-toggle="button"]',jS=`click${VS}${FS}`;class mo extends mr{static get NAME(){return LS}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(YS))}static jQueryInterface(t){return this.each(function(){const r=mo.getOrCreateInstance(this);t==="toggle"&&r[t]()})}}V.on(document,jS,Hp,e=>{e.preventDefault();const t=e.target.closest(Hp);mo.getOrCreateInstance(t).toggle()}),or(mo);const BS="swipe",Mi=".bs.swipe",HS=`touchstart${Mi}`,WS=`touchmove${Mi}`,GS=`touchend${Mi}`,zS=`pointerdown${Mi}`,US=`pointerup${Mi}`,KS="touch",qS="pen",XS="pointer-event",QS=40,ZS={endCallback:null,leftCallback:null,rightCallback:null},JS={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class vo extends Ua{constructor(t,r){super(),this._element=t,!(!t||!vo.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ZS}static get DefaultType(){return JS}static get NAME(){return BS}dispose(){V.off(this._element,Mi)}_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(),Mt(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<=QS)return;const r=t/this._deltaX;this._deltaX=0,r&&Mt(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(V.on(this._element,zS,t=>this._start(t)),V.on(this._element,US,t=>this._end(t)),this._element.classList.add(XS)):(V.on(this._element,HS,t=>this._start(t)),V.on(this._element,WS,t=>this._move(t)),V.on(this._element,GS,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===qS||t.pointerType===KS)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ek="carousel",bn=".bs.carousel",Wp=".data-api",tk="ArrowLeft",rk="ArrowRight",nk=500,Ka="next",Ri="prev",Li="left",go="right",ik=`slide${bn}`,Ud=`slid${bn}`,ak=`keydown${bn}`,sk=`mouseenter${bn}`,ok=`mouseleave${bn}`,lk=`dragstart${bn}`,dk=`load${bn}${Wp}`,ck=`click${bn}${Wp}`,Gp="carousel",yo="active",uk="slide",hk="carousel-item-end",fk="carousel-item-start",pk="carousel-item-next",mk="carousel-item-prev",zp=".active",Up=".carousel-item",vk=zp+Up,gk=".carousel-item img",yk=".carousel-indicators",_k="[data-bs-slide], [data-bs-slide-to]",bk='[data-bs-ride="carousel"]',wk={[tk]:go,[rk]:Li},Ek={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Sk={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class qa extends mr{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(yk,this._element),this._addEventListeners(),this._config.ride===Gp&&this.cycle()}static get Default(){return Ek}static get DefaultType(){return Sk}static get NAME(){return ek}next(){this._slide(Ka)}nextWhenVisible(){!document.hidden&&Pi(this._element)&&this.next()}prev(){this._slide(Ri)}pause(){this._isSliding&&Np(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,Ud,()=>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,Ud,()=>this.to(t));return}const a=this._getItemIndex(this._getActive());if(a===t)return;const n=t>a?Ka:Ri;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,ak,t=>this._keydown(t)),this._config.pause==="hover"&&(V.on(this._element,sk,()=>this.pause()),V.on(this._element,ok,()=>this._maybeEnableCycle())),this._config.touch&&vo.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const a of ee.find(gk,this._element))V.on(a,lk,n=>n.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(Li)),rightCallback:()=>this._slide(this._directionToOrder(go)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),nk+this._config.interval))}};this._swipeHelper=new vo(this._element,r)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const r=wk[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(zp,this._indicatorsElement);r.classList.remove(yo),r.removeAttribute("aria-current");const a=ee.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);a&&(a.classList.add(yo),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===Ka,s=r||jd(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(ik).defaultPrevented||!a||!s)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const f=n?fk:hk,m=n?pk:mk;s.classList.add(m),za(s),a.classList.add(f),s.classList.add(f);const v=()=>{s.classList.remove(f,m),s.classList.add(yo),a.classList.remove(yo,m,f),this._isSliding=!1,l(Ud)};this._queueCallback(v,a,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(uk)}_getActive(){return ee.findOne(vk,this._element)}_getItems(){return ee.find(Up,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return sr()?t===Li?Ri:Ka:t===Li?Ka:Ri}_orderToDirection(t){return sr()?t===Ri?Li:go:t===Ri?go:Li}static jQueryInterface(t){return this.each(function(){const r=qa.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,ck,_k,function(e){const t=ee.getElementFromSelector(this);if(!t||!t.classList.contains(Gp))return;e.preventDefault();const r=qa.getOrCreateInstance(t),a=this.getAttribute("data-bs-slide-to");if(a){r.to(a),r._maybeEnableCycle();return}if(Wr.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()}),V.on(window,dk,()=>{const e=ee.find(bk);for(const t of e)qa.getOrCreateInstance(t)}),or(qa);const kk="collapse",Xa=".bs.collapse",xk=".data-api",Tk=`show${Xa}`,$k=`shown${Xa}`,Dk=`hide${Xa}`,Nk=`hidden${Xa}`,Ck=`click${Xa}${xk}`,Kd="show",Vi="collapse",_o="collapsing",Ok="collapsed",Ak=`:scope .${Vi} .${Vi}`,Ik="collapse-horizontal",Pk="width",Mk="height",Rk=".collapse.show, .collapse.collapsing",qd='[data-bs-toggle="collapse"]',Lk={parent:null,toggle:!0},Vk={parent:"(null|element)",toggle:"boolean"};class Qa extends mr{constructor(t,r){super(t,r),this._isTransitioning=!1,this._triggerArray=[];const a=ee.find(qd);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 Lk}static get DefaultType(){return Vk}static get NAME(){return kk}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Rk).filter(l=>l!==this._element).map(l=>Qa.getOrCreateInstance(l,{toggle:!1}))),t.length&&t[0]._isTransitioning||V.trigger(this._element,Tk).defaultPrevented)return;for(const l of t)l.hide();const a=this._getDimension();this._element.classList.remove(Vi),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(Vi,Kd),this._element.style[a]="",V.trigger(this._element,$k)},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,Dk).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,za(this._element),this._element.classList.add(_o),this._element.classList.remove(Vi,Kd);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(Vi),V.trigger(this._element,Nk)};this._element.style[r]="",this._queueCallback(a,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Kd)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=yn(t.parent),t}_getDimension(){return this._element.classList.contains(Ik)?Pk:Mk}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(qd);for(const r of t){const a=ee.getElementFromSelector(r);a&&this._addAriaAndCollapsedClass([r],this._isShown(a))}}_getFirstLevelChildren(t){const r=ee.find(Ak,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(Ok,!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=Qa.getOrCreateInstance(this,r);if(typeof t=="string"){if(typeof a[t]>"u")throw new TypeError(`No method named "${t}"`);a[t]()}})}}V.on(document,Ck,qd,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of ee.getMultipleElementsFromSelector(this))Qa.getOrCreateInstance(t,{toggle:!1}).toggle()}),or(Qa);const Kp="dropdown",Gn=".bs.dropdown",Xd=".data-api",Fk="Escape",qp="Tab",Yk="ArrowUp",Xp="ArrowDown",jk=2,Bk=`hide${Gn}`,Hk=`hidden${Gn}`,Wk=`show${Gn}`,Gk=`shown${Gn}`,Qp=`click${Gn}${Xd}`,Zp=`keydown${Gn}${Xd}`,zk=`keyup${Gn}${Xd}`,Fi="show",Uk="dropup",Kk="dropend",qk="dropstart",Xk="dropup-center",Qk="dropdown-center",zn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Zk=`${zn}.${Fi}`,bo=".dropdown-menu",Jk=".navbar",ex=".navbar-nav",tx=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",rx=sr()?"top-end":"top-start",nx=sr()?"top-start":"top-end",ix=sr()?"bottom-end":"bottom-start",ax=sr()?"bottom-start":"bottom-end",sx=sr()?"left-start":"right-start",ox=sr()?"right-start":"left-start",lx="top",dx="bottom",cx={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ux={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ar extends mr{constructor(t,r){super(t,r),this._popper=null,this._parent=this._element.parentNode,this._menu=ee.next(this._element,bo)[0]||ee.prev(this._element,bo)[0]||ee.findOne(bo,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return cx}static get DefaultType(){return ux}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,Wk,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ex))for(const a of[].concat(...document.body.children))V.on(a,"mouseover",ho);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Fi),this._element.classList.add(Fi),V.trigger(this._element,Gk,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,Bk,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))V.off(a,"mouseover",ho);this._popper&&this._popper.destroy(),this._menu.classList.remove(Fi),this._element.classList.remove(Fi),this._element.setAttribute("aria-expanded","false"),Wr.removeDataAttribute(this._menu,"popper"),V.trigger(this._element,Hk,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Hr(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 $p>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Hr(this._config.reference)?t=yn(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=Ld(t,this._menu,r)}_isShown(){return this._menu.classList.contains(Fi)}_getPlacement(){const t=this._parent;if(t.classList.contains(Kk))return sx;if(t.classList.contains(qk))return ox;if(t.classList.contains(Xk))return lx;if(t.classList.contains(Qk))return dx;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Uk)?r?nx:rx:r?ax:ix}_detectNavbar(){return this._element.closest(Jk)!==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")&&(Wr.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Mt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:r}){const a=ee.find(tx,this._menu).filter(n=>Pi(n));a.length&&jd(a,r,t===Xp,!a.includes(r)).focus()}static jQueryInterface(t){return this.each(function(){const r=Ar.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===jk||t.type==="keyup"&&t.key!==qp)return;const r=ee.find(Zk);for(const a of r){const n=Ar.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===Fk,n=[Yk,Xp].includes(t.key);if(!n&&!a||r&&!a)return;t.preventDefault();const s=this.matches(zn)?this:ee.prev(this,zn)[0]||ee.next(this,zn)[0]||ee.findOne(zn,t.delegateTarget.parentNode),o=Ar.getOrCreateInstance(s);if(n){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}V.on(document,Zp,zn,Ar.dataApiKeydownHandler),V.on(document,Zp,bo,Ar.dataApiKeydownHandler),V.on(document,Qp,Ar.clearMenus),V.on(document,zk,Ar.clearMenus),V.on(document,Qp,zn,function(e){e.preventDefault(),Ar.getOrCreateInstance(this).toggle()}),or(Ar);const Jp="backdrop",hx="fade",em="show",tm=`mousedown.bs.${Jp}`,fx={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},px={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class rm extends Ua{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return fx}static get DefaultType(){return px}static get NAME(){return Jp}show(t){if(!this._config.isVisible){Mt(t);return}this._append();const r=this._getElement();this._config.isAnimated&&za(r),r.classList.add(em),this._emulateAnimation(()=>{Mt(t)})}hide(t){if(!this._config.isVisible){Mt(t);return}this._getElement().classList.remove(em),this._emulateAnimation(()=>{this.dispose(),Mt(t)})}dispose(){this._isAppended&&(V.off(this._element,tm),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(hx),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=yn(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),V.on(t,tm,()=>{Mt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ap(t,this._getElement(),this._config.isAnimated)}}const mx="focustrap",wo=".bs.focustrap",vx=`focusin${wo}`,gx=`keydown.tab${wo}`,yx="Tab",_x="forward",nm="backward",bx={autofocus:!0,trapElement:null},wx={autofocus:"boolean",trapElement:"element"};class im extends Ua{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return bx}static get DefaultType(){return wx}static get NAME(){return mx}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),V.off(document,wo),V.on(document,vx,t=>this._handleFocusin(t)),V.on(document,gx,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,V.off(document,wo))}_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===nm?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key===yx&&(this._lastTabNavDirection=t.shiftKey?nm:_x)}}const am=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",sm=".sticky-top",Eo="padding-right",om="margin-right";class Qd{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,Eo,r=>r+t),this._setElementAttributes(am,Eo,r=>r+t),this._setElementAttributes(sm,om,r=>r-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Eo),this._resetElementAttributes(am,Eo),this._resetElementAttributes(sm,om)}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&&Wr.setDataAttribute(t,r,a)}_resetElementAttributes(t,r){const a=n=>{const s=Wr.getDataAttribute(n,r);if(s===null){n.style.removeProperty(r);return}Wr.removeDataAttribute(n,r),n.style.setProperty(r,s)};this._applyManipulationCallback(t,a)}_applyManipulationCallback(t,r){if(Hr(t)){r(t);return}for(const a of ee.find(t,this._element))r(a)}}const Ex="modal",lr=".bs.modal",Sx=".data-api",kx="Escape",xx=`hide${lr}`,Tx=`hidePrevented${lr}`,lm=`hidden${lr}`,dm=`show${lr}`,$x=`shown${lr}`,Dx=`resize${lr}`,Nx=`click.dismiss${lr}`,Cx=`mousedown.dismiss${lr}`,Ox=`keydown.dismiss${lr}`,Ax=`click${lr}${Sx}`,cm="modal-open",Ix="fade",um="show",Zd="modal-static",Px=".modal.show",Mx=".modal-dialog",Rx=".modal-body",Lx='[data-bs-toggle="modal"]',Vx={backdrop:!0,focus:!0,keyboard:!0},Fx={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Un extends mr{constructor(t,r){super(t,r),this._dialog=ee.findOne(Mx,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Qd,this._addEventListeners()}static get Default(){return Vx}static get DefaultType(){return Fx}static get NAME(){return Ex}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||V.trigger(this._element,dm,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(cm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||V.trigger(this._element,xx).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(um),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){V.off(window,lr),V.off(this._dialog,lr),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new rm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new im({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(Rx,this._dialog);r&&(r.scrollTop=0),za(this._element),this._element.classList.add(um);const a=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,V.trigger(this._element,$x,{relatedTarget:t})};this._queueCallback(a,this._dialog,this._isAnimated())}_addEventListeners(){V.on(this._element,Ox,t=>{if(t.key===kx){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),V.on(window,Dx,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),V.on(this._element,Cx,t=>{V.one(this._element,Nx,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(cm),this._resetAdjustments(),this._scrollBar.reset(),V.trigger(this._element,lm)})}_isAnimated(){return this._element.classList.contains(Ix)}_triggerBackdropTransition(){if(V.trigger(this._element,Tx).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,a=this._element.style.overflowY;a==="hidden"||this._element.classList.contains(Zd)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(Zd),this._queueCallback(()=>{this._element.classList.remove(Zd),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=sr()?"paddingLeft":"paddingRight";this._element.style[n]=`${r}px`}if(!a&&t){const n=sr()?"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=Un.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,Ax,Lx,function(e){const t=ee.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),V.one(t,dm,n=>{n.defaultPrevented||V.one(t,lm,()=>{Pi(this)&&this.focus()})});const r=ee.findOne(Px);r&&Un.getInstance(r).hide(),Un.getOrCreateInstance(t).toggle(this)}),fo(Un),or(Un);const Yx="offcanvas",Gr=".bs.offcanvas",hm=".data-api",jx=`load${Gr}${hm}`,Bx="Escape",fm="show",pm="showing",mm="hiding",Hx="offcanvas-backdrop",vm=".offcanvas.show",Wx=`show${Gr}`,Gx=`shown${Gr}`,zx=`hide${Gr}`,gm=`hidePrevented${Gr}`,ym=`hidden${Gr}`,Ux=`resize${Gr}`,Kx=`click${Gr}${hm}`,qx=`keydown.dismiss${Gr}`,Xx='[data-bs-toggle="offcanvas"]',Qx={backdrop:!0,keyboard:!0,scroll:!1},Zx={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class wn extends mr{constructor(t,r){super(t,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Qx}static get DefaultType(){return Zx}static get NAME(){return Yx}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||V.trigger(this._element,Wx,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Qd().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(pm);const a=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(fm),this._element.classList.remove(pm),V.trigger(this._element,Gx,{relatedTarget:t})};this._queueCallback(a,this._element,!0)}hide(){if(!this._isShown||V.trigger(this._element,zx).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(mm),this._backdrop.hide();const r=()=>{this._element.classList.remove(fm,mm),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Qd().reset(),V.trigger(this._element,ym)};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,gm);return}this.hide()},r=!!this._config.backdrop;return new rm({className:Hx,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?t:null})}_initializeFocusTrap(){return new im({trapElement:this._element})}_addEventListeners(){V.on(this._element,qx,t=>{if(t.key===Bx){if(this._config.keyboard){this.hide();return}V.trigger(this._element,gm)}})}static jQueryInterface(t){return this.each(function(){const r=wn.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,Kx,Xx,function(e){const t=ee.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),_n(this))return;V.one(t,ym,()=>{Pi(this)&&this.focus()});const r=ee.findOne(vm);r&&r!==t&&wn.getInstance(r).hide(),wn.getOrCreateInstance(t).toggle(this)}),V.on(window,jx,()=>{for(const e of ee.find(vm))wn.getOrCreateInstance(e).show()}),V.on(window,Ux,()=>{for(const e of ee.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&wn.getOrCreateInstance(e).hide()}),fo(wn),or(wn);const _m={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},Jx=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),eT=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,tT=(e,t)=>{const r=e.nodeName.toLowerCase();return t.includes(r)?Jx.has(r)?!!eT.test(e.nodeValue):!0:t.filter(a=>a instanceof RegExp).some(a=>a.test(r))};function rT(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)tT(f,c)||o.removeAttribute(f.nodeName)}return n.body.innerHTML}const nT="TemplateFactory",iT={allowList:_m,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},aT={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},sT={entry:"(string|element|function|null)",selector:"(string|element)"};class oT extends Ua{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return iT}static get DefaultType(){return aT}static get NAME(){return nT}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},sT)}_setContent(t,r,a){const n=ee.findOne(a,t);if(n){if(r=this._resolvePossibleFunction(r),!r){n.remove();return}if(Hr(r)){this._putElementInTemplate(yn(r),n);return}if(this._config.html){n.innerHTML=this._maybeSanitize(r);return}n.textContent=r}}_maybeSanitize(t){return this._config.sanitize?rT(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Mt(t,[this])}_putElementInTemplate(t,r){if(this._config.html){r.innerHTML="",r.append(t);return}r.textContent=t.textContent}}const lT="tooltip",dT=new Set(["sanitize","allowList","sanitizeFn"]),Jd="fade",cT="modal",So="show",uT=".tooltip-inner",bm=`.${cT}`,wm="hide.bs.modal",Za="hover",ec="focus",hT="click",fT="manual",pT="hide",mT="hidden",vT="show",gT="shown",yT="inserted",_T="click",bT="focusin",wT="focusout",ET="mouseenter",ST="mouseleave",kT={AUTO:"auto",TOP:"top",RIGHT:sr()?"left":"right",BOTTOM:"bottom",LEFT:sr()?"right":"left"},xT={allowList:_m,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"},TT={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 Yi extends mr{constructor(t,r){if(typeof $p>"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 xT}static get DefaultType(){return TT}static get NAME(){return lT}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(bm),wm,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(vT)),a=(Cp(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(yT))),this._popper=this._createPopper(n),n.classList.add(So),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))V.on(l,"mouseover",ho);const o=()=>{V.trigger(this._element,this.constructor.eventName(gT)),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(pT)).defaultPrevented)return;if(this._getTipElement().classList.remove(So),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))V.off(n,"mouseover",ho);this._activeTrigger[hT]=!1,this._activeTrigger[ec]=!1,this._activeTrigger[Za]=!1,this._isHovered=null;const a=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),V.trigger(this._element,this.constructor.eventName(mT)))};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(Jd,So),r.classList.add(`bs-${this.constructor.NAME}-auto`);const a=wS(this.constructor.NAME).toString();return r.setAttribute("id",a),this._isAnimated()&&r.classList.add(Jd),r}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new oT({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[uT]: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(Jd)}_isShown(){return this.tip&&this.tip.classList.contains(So)}_createPopper(t){const r=Mt(this._config.placement,[this,t,this._element]),a=kT[r.toUpperCase()];return Ld(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 Mt(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,...Mt(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(_T),this._config.selector,a=>{this._initializeOnDelegatedTarget(a).toggle()});else if(r!==fT){const a=r===Za?this.constructor.eventName(ET):this.constructor.eventName(bT),n=r===Za?this.constructor.eventName(ST):this.constructor.eventName(wT);V.on(this._element,a,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?ec:Za]=!0,o._enter()}),V.on(this._element,n,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?ec:Za]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},V.on(this._element.closest(bm),wm,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=Wr.getDataAttributes(this._element);for(const a of Object.keys(r))dT.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:yn(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=Yi.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}or(Yi);const $T="popover",DT=".popover-header",NT=".popover-body",CT={...Yi.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"},OT={...Yi.DefaultType,content:"(null|string|element|function)"};class tc extends Yi{static get Default(){return CT}static get DefaultType(){return OT}static get NAME(){return $T}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[DT]:this._getTitle(),[NT]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const r=tc.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}or(tc);const AT="scrollspy",rc=".bs.scrollspy",IT=".data-api",PT=`activate${rc}`,Em=`click${rc}`,MT=`load${rc}${IT}`,RT="dropdown-item",ji="active",LT='[data-bs-spy="scroll"]',nc="[href]",VT=".nav, .list-group",Sm=".nav-link",FT=`${Sm}, .nav-item > ${Sm}, .list-group-item`,YT=".dropdown",jT=".dropdown-toggle",BT={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},HT={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ko extends mr{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 BT}static get DefaultType(){return HT}static get NAME(){return AT}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=yn(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,Em),V.on(this._config.target,Em,nc,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(nc,this._config.target);for(const r of t){if(!r.hash||_n(r))continue;const a=ee.findOne(decodeURI(r.hash),this._element);Pi(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(ji),this._activateParents(t),V.trigger(this._element,PT,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(RT)){ee.findOne(jT,t.closest(YT)).classList.add(ji);return}for(const r of ee.parents(t,VT))for(const a of ee.prev(r,FT))a.classList.add(ji)}_clearActiveClass(t){t.classList.remove(ji);const r=ee.find(`${nc}.${ji}`,t);for(const a of r)a.classList.remove(ji)}static jQueryInterface(t){return this.each(function(){const r=ko.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,MT,()=>{for(const e of ee.find(LT))ko.getOrCreateInstance(e)}),or(ko);const WT="tab",Kn=".bs.tab",GT=`hide${Kn}`,zT=`hidden${Kn}`,UT=`show${Kn}`,KT=`shown${Kn}`,qT=`click${Kn}`,XT=`keydown${Kn}`,QT=`load${Kn}`,ZT="ArrowLeft",km="ArrowRight",JT="ArrowUp",xm="ArrowDown",ic="Home",Tm="End",qn="active",$m="fade",ac="show",e$="dropdown",Dm=".dropdown-toggle",t$=".dropdown-menu",sc=`:not(${Dm})`,r$='.list-group, .nav, [role="tablist"]',n$=".nav-item, .list-group-item",i$=`.nav-link${sc}, .list-group-item${sc}, [role="tab"]${sc}`,Nm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',oc=`${i$}, ${Nm}`,a$=`.${qn}[data-bs-toggle="tab"], .${qn}[data-bs-toggle="pill"], .${qn}[data-bs-toggle="list"]`;class Bi extends mr{constructor(t){super(t),this._parent=this._element.closest(r$),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),V.on(this._element,XT,r=>this._keydown(r)))}static get NAME(){return WT}show(){const t=this._element;if(this._elemIsActive(t))return;const r=this._getActiveElem(),a=r?V.trigger(r,GT,{relatedTarget:t}):null;V.trigger(t,UT,{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(ac);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),V.trigger(t,KT,{relatedTarget:r})};this._queueCallback(a,t,t.classList.contains($m))}_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(ac);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),V.trigger(t,zT,{relatedTarget:r})};this._queueCallback(a,t,t.classList.contains($m))}_keydown(t){if(![ZT,km,JT,xm,ic,Tm].includes(t.key))return;t.stopPropagation(),t.preventDefault();const r=this._getChildren().filter(n=>!_n(n));let a;if([ic,Tm].includes(t.key))a=r[t.key===ic?0:r.length-1];else{const n=[km,xm].includes(t.key);a=jd(r,t.target,n,!0)}a&&(a.focus({preventScroll:!0}),Bi.getOrCreateInstance(a).show())}_getChildren(){return ee.find(oc,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(e$))return;const n=(s,o)=>{const l=ee.findOne(s,a);l&&l.classList.toggle(o,r)};n(Dm,qn),n(t$,ac),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(oc)?t:ee.findOne(oc,t)}_getOuterElement(t){return t.closest(n$)||t}static jQueryInterface(t){return this.each(function(){const r=Bi.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,qT,Nm,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!_n(this)&&Bi.getOrCreateInstance(this).show()}),V.on(window,QT,()=>{for(const e of ee.find(a$))Bi.getOrCreateInstance(e)}),or(Bi);const s$="toast",En=".bs.toast",o$=`mouseover${En}`,l$=`mouseout${En}`,d$=`focusin${En}`,c$=`focusout${En}`,u$=`hide${En}`,h$=`hidden${En}`,f$=`show${En}`,p$=`shown${En}`,m$="fade",Cm="hide",xo="show",To="showing",v$={animation:"boolean",autohide:"boolean",delay:"number"},g$={animation:!0,autohide:!0,delay:5e3};class $o extends mr{constructor(t,r){super(t,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return g$}static get DefaultType(){return v$}static get NAME(){return s$}show(){if(V.trigger(this._element,f$).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(m$);const r=()=>{this._element.classList.remove(To),V.trigger(this._element,p$),this._maybeScheduleHide()};this._element.classList.remove(Cm),za(this._element),this._element.classList.add(xo,To),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||V.trigger(this._element,u$).defaultPrevented)return;const r=()=>{this._element.classList.add(Cm),this._element.classList.remove(To,xo),V.trigger(this._element,h$)};this._element.classList.add(To),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(xo),super.dispose()}isShown(){return this._element.classList.contains(xo)}_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,o$,t=>this._onInteraction(t,!0)),V.on(this._element,l$,t=>this._onInteraction(t,!1)),V.on(this._element,d$,t=>this._onInteraction(t,!0)),V.on(this._element,c$,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const r=$o.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](this)}})}}fo($o),or($o);/**
|
1
|
+
(function(Wr,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],h):(Wr=typeof globalThis<"u"?globalThis:Wr||self,h(Wr.Chargebacks={},Wr.Vue))})(this,function(Wr,h){"use strict";/**
|
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 It=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cr(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 Wo={exports:{}},Ou;function Zt(){return Ou||(Ou=1,function(e,r){(function(t,a){e.exports=a()})(It,function(){var t;function a(){return t.apply(null,arguments)}function n(u){t=u}function s(u){return u instanceof Array||Object.prototype.toString.call(u)==="[object Array]"}function o(u){return u!=null&&Object.prototype.toString.call(u)==="[object Object]"}function l(u,p){return Object.prototype.hasOwnProperty.call(u,p)}function d(u){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(u).length===0;var p;for(p in u)if(l(u,p))return!1;return!0}function c(u){return u===void 0}function f(u){return typeof u=="number"||Object.prototype.toString.call(u)==="[object Number]"}function m(u){return u instanceof Date||Object.prototype.toString.call(u)==="[object Date]"}function v(u,p){var g=[],_,k=u.length;for(_=0;_<k;++_)g.push(p(u[_],_));return g}function y(u,p){for(var g in p)l(p,g)&&(u[g]=p[g]);return l(p,"toString")&&(u.toString=p.toString),l(p,"valueOf")&&(u.valueOf=p.valueOf),u}function b(u,p,g,_){return hb(u,p,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(u){return u._pf==null&&(u._pf=E()),u._pf}var S;Array.prototype.some?S=Array.prototype.some:S=function(u){var p=Object(this),g=p.length>>>0,_;for(_=0;_<g;_++)if(_ in p&&u.call(this,p[_],_,p))return!0;return!1};function D(u){if(u._isValid==null){var p=w(u),g=S.call(p.parsedDateParts,function(k){return k!=null}),_=!isNaN(u._d.getTime())&&p.overflow<0&&!p.empty&&!p.invalidEra&&!p.invalidMonth&&!p.invalidWeekday&&!p.weekdayMismatch&&!p.nullInput&&!p.invalidFormat&&!p.userInvalidated&&(!p.meridiem||p.meridiem&&g);if(u._strict&&(_=_&&p.charsLeftOver===0&&p.unusedTokens.length===0&&p.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(u))u._isValid=_;else return _}return u._isValid}function T(u){var p=b(NaN);return u!=null?y(w(p),u):w(p).userInvalidated=!0,p}var P=a.momentProperties=[],F=!1;function A(u,p){var g,_,k,$=P.length;if(c(p._isAMomentObject)||(u._isAMomentObject=p._isAMomentObject),c(p._i)||(u._i=p._i),c(p._f)||(u._f=p._f),c(p._l)||(u._l=p._l),c(p._strict)||(u._strict=p._strict),c(p._tzm)||(u._tzm=p._tzm),c(p._isUTC)||(u._isUTC=p._isUTC),c(p._offset)||(u._offset=p._offset),c(p._pf)||(u._pf=w(p)),c(p._locale)||(u._locale=p._locale),$>0)for(g=0;g<$;g++)_=P[g],k=p[_],c(k)||(u[_]=k);return u}function V(u){A(this,u),this._d=new Date(u._d!=null?u._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),F===!1&&(F=!0,a.updateOffset(this),F=!1)}function N(u){return u instanceof V||u!=null&&u._isAMomentObject!=null}function I(u){a.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+u)}function M(u,p){var g=!0;return y(function(){if(a.deprecationHandler!=null&&a.deprecationHandler(null,u),g){var _=[],k,$,O,Q=arguments.length;for($=0;$<Q;$++){if(k="",typeof arguments[$]=="object"){k+=`
|
26
|
+
[`+$+"] ";for(O in arguments[0])l(arguments[0],O)&&(k+=O+": "+arguments[0][O]+", ");k=k.slice(0,-2)}else k=arguments[$];_.push(k)}I(u+`
|
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 oe(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 pe;Object.keys?pe=Object.keys:pe=function(u){var p,y=[];for(p in u)l(u,p)&&y.push(p);return y};var it={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ft(u,p,y){var _=this._calendar[u]||this._calendar.sameElse;return z(_)?_.call(p,y):_}function Me(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 Gt=/(\[[^\[]*\])|(\\)?([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,pt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fr={},yt={};function q(u,p,y,_){var E=_;typeof _=="string"&&(E=function(){return this[_]()}),u&&(yt[u]=E),p&&(yt[p[0]]=function(){return Me(E.apply(this,arguments),p[1],p[2])}),y&&(yt[y]=function(){return this.localeData().ordinal(E.apply(this,arguments),u)})}function Tr(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Yr(u){var p=u.match(Gt),y,_;for(y=0,_=p.length;y<_;y++)yt[p[y]]?p[y]=yt[p[y]]:p[y]=Tr(p[y]);return function(E){var $="",P;for(P=0;P<_;P++)$+=z(p[P])?p[P].call(E,u):p[P];return $}}function _t(u,p){return u.isValid()?(p=W(p,u.localeData()),Fr[p]=Fr[p]||Yr(p),Fr[p](u)):u.localeData().invalidDate()}function W(u,p){var y=5;function _(E){return p.longDateFormat(E)||E}for(pt.lastIndex=0;y>=0&&pt.test(u);)u=u.replace(pt,_),pt.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(Gt).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",Fe=/\d{1,2}/;function tt(u){return this._ordinal.replace("%d",u)}var at={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 $r(u,p,y,_){var E=this._relativeTime[y];return z(E)?E(u,p,y,_):E.replace(/%d/i,u)}function pr(u,p){var y=this._relativeTime[u>0?"future":"past"];return z(y)?y(p):y.replace(/%s/i,p)}var Xe={};function Qe(u,p){var y=u.toLowerCase();Xe[y]=Xe[y+"s"]=Xe[p]=u}function At(u){return typeof u=="string"?Xe[u]||Xe[u.toLowerCase()]:void 0}function Pa(u){var p={},y,_;for(_ in u)l(u,_)&&(y=At(_),y&&(p[y]=u[_]));return p}var Ma={};function st(u,p){Ma[u]=p}function rd(u){var p=[],y;for(y in u)l(u,y)&&p.push({unit:y,priority:Ma[y]});return p.sort(function(_,E){return _.priority-E.priority}),p}function Si(u){return u%4===0&&u%100!==0||u%400===0}function It(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=It(p)),y}function Ra(u,p){return function(y){return y!=null?(WE(this,u,y),a.updateOffset(this,p),this):nd(this,u)}}function nd(u,p){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+p]():NaN}function WE(u,p,y){u.isValid()&&!isNaN(y)&&(p==="FullYear"&&Si(u.year())&&u.month()===1&&u.date()===29?(y=ue(y),u._d["set"+(u._isUTC?"UTC":"")+p](y,u.month(),cd(y,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+p](y))}function Fne(u){return u=At(u),z(this[u])?this[u]():this}function Yne(u,p){if(typeof u=="object"){u=Pa(u);var y=rd(u),_,E=y.length;for(_=0;_<E;_++)this[y[_].unit](u[y[_].unit])}else if(u=At(u),z(this[u]))return this[u](p);return this}var GE=/\d/,nr=/\d\d/,zE=/\d{3}/,Nf=/\d{4}/,id=/[+-]?\d{6}/,Ye=/\d\d?/,UE=/\d\d\d\d?/,KE=/\d\d\d\d\d\d?/,ad=/\d{1,3}/,Cf=/\d{1,4}/,sd=/[+-]?\d{1,6}/,La=/\d+/,od=/[+-]?\d+/,jne=/Z|[+-]\d\d:?\d\d/gi,ld=/Z|[+-]\d\d(?::?\d\d)?/gi,Bne=/[+-]?\d+(\.\d{1,3})?/,Qs=/[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,dd;dd={};function K(u,p,y){dd[u]=z(p)?p:function(_,E){return _&&y?y:p}}function Hne(u,p){return l(dd,u)?dd[u](p._strict,p._locale):new RegExp(Wne(u))}function Wne(u){return ir(u.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(p,y,_,E,$){return y||_||E||$}))}function ir(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Of={};function Oe(u,p){var y,_=p,E;for(typeof u=="string"&&(u=[u]),f(p)&&(_=function($,P){P[p]=ue($)}),E=u.length,y=0;y<E;y++)Of[u[y]]=_}function Zs(u,p){Oe(u,function(y,_,E,$){E._w=E._w||{},p(y,E._w,E,$)})}function Gne(u,p,y){p!=null&&l(Of,u)&&Of[u](p,y._a,y,u)}var bt=0,on=1,jr=2,ot=3,Dr=4,ln=5,ki=6,zne=7,Une=8;function Kne(u,p){return(u%p+p)%p}var Ze;Array.prototype.indexOf?Ze=Array.prototype.indexOf:Ze=function(u){var p;for(p=0;p<this.length;++p)if(this[p]===u)return p;return-1};function cd(u,p){if(isNaN(u)||isNaN(p))return NaN;var y=Kne(p,12);return u+=(p-y)/12,y===1?Si(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"),st("month",8),K("M",Ye),K("MM",Ye,nr),K("MMM",function(u,p){return p.monthsShortRegex(u)}),K("MMMM",function(u,p){return p.monthsRegex(u)}),Oe(["M","MM"],function(u,p){p[on]=ue(u)-1}),Oe(["MMM","MMMM"],function(u,p,y,_){var E=y._locale.monthsParse(u,_,y._strict);E!=null?p[on]=E:w(y).invalidMonth=u});var qne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qE="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),XE=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xne=Qs,Qne=Qs;function Zne(u,p){return u?s(this._months)?this._months[u.month()]:this._months[(this._months.isFormat||XE).test(p)?"format":"standalone"][u.month()]:s(this._months)?this._months:this._months.standalone}function Jne(u,p){return u?s(this._monthsShort)?this._monthsShort[u.month()]:this._monthsShort[XE.test(p)?"format":"standalone"][u.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function eie(u,p,y){var _,E,$,P=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=Ze.call(this._shortMonthsParse,P),E!==-1?E:null):(E=Ze.call(this._longMonthsParse,P),E!==-1?E:null):p==="MMM"?(E=Ze.call(this._shortMonthsParse,P),E!==-1?E:(E=Ze.call(this._longMonthsParse,P),E!==-1?E:null)):(E=Ze.call(this._longMonthsParse,P),E!==-1?E:(E=Ze.call(this._shortMonthsParse,P),E!==-1?E:null))}function tie(u,p,y){var _,E,$;if(this._monthsParseExact)return eie.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 QE(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(),cd(u.year(),p)),u._d["set"+(u._isUTC?"UTC":"")+"Month"](p,y),u}function ZE(u){return u!=null?(QE(this,u),a.updateOffset(this,!0),this):nd(this,"Month")}function rie(){return cd(this.year(),this.month())}function nie(u){return this._monthsParseExact?(l(this,"_monthsRegex")||JE.call(this),u?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Xne),this._monthsShortStrictRegex&&u?this._monthsShortStrictRegex:this._monthsShortRegex)}function iie(u){return this._monthsParseExact?(l(this,"_monthsRegex")||JE.call(this),u?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Qne),this._monthsStrictRegex&&u?this._monthsStrictRegex:this._monthsRegex)}function JE(){function u(P,J){return J.length-P.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]=ir(p[E]),y[E]=ir(y[E]);for(E=0;E<24;E++)_[E]=ir(_[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?Me(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"),st("year",1),K("Y",od),K("YY",Ye,nr),K("YYYY",Cf,Nf),K("YYYYY",sd,id),K("YYYYYY",sd,id),Oe(["YYYYY","YYYYYY"],bt),Oe("YYYY",function(u,p){p[bt]=u.length===2?a.parseTwoDigitYear(u):ue(u)}),Oe("YY",function(u,p){p[bt]=a.parseTwoDigitYear(u)}),Oe("Y",function(u,p){p[bt]=parseInt(u,10)});function Js(u){return Si(u)?366:365}a.parseTwoDigitYear=function(u){return ue(u)+(ue(u)>68?1900:2e3)};var e1=Ra("FullYear",!0);function aie(){return Si(this.year())}function sie(u,p,y,_,E,$,P){var J;return u<100&&u>=0?(J=new Date(u+400,p,y,_,E,$,P),isFinite(J.getFullYear())&&J.setFullYear(u)):J=new Date(u,p,y,_,E,$,P),J}function eo(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 ud(u,p,y){var _=7+p-y,E=(7+eo(u,0,_).getUTCDay()-p)%7;return-E+_-1}function t1(u,p,y,_,E){var $=(7+y-_)%7,P=ud(u,_,E),J=1+7*(p-1)+$+P,ce,Ae;return J<=0?(ce=u-1,Ae=Js(ce)+J):J>Js(u)?(ce=u+1,Ae=J-Js(u)):(ce=u,Ae=J),{year:ce,dayOfYear:Ae}}function to(u,p,y){var _=ud(u.year(),p,y),E=Math.floor((u.dayOfYear()-_-1)/7)+1,$,P;return E<1?(P=u.year()-1,$=E+dn(P,p,y)):E>dn(u.year(),p,y)?($=E-dn(u.year(),p,y),P=u.year()+1):(P=u.year(),$=E),{week:$,year:P}}function dn(u,p,y){var _=ud(u,p,y),E=ud(u+1,p,y);return(Js(u)-_+E)/7}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),Qe("week","w"),Qe("isoWeek","W"),st("week",5),st("isoWeek",5),K("w",Ye),K("ww",Ye,nr),K("W",Ye),K("WW",Ye,nr),Zs(["w","ww","W","WW"],function(u,p,y,_){p[_.substr(0,1)]=ue(u)});function oie(u){return to(u,this._week.dow,this._week.doy).week}var lie={dow:0,doy:6};function die(){return this._week.dow}function cie(){return this._week.doy}function uie(u){var p=this.localeData().week(this);return u==null?p:this.add((u-p)*7,"d")}function hie(u){var p=to(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"),st("day",11),st("weekday",11),st("isoWeekday",11),K("d",Ye),K("e",Ye),K("E",Ye),K("dd",function(u,p){return p.weekdaysMinRegex(u)}),K("ddd",function(u,p){return p.weekdaysShortRegex(u)}),K("dddd",function(u,p){return p.weekdaysRegex(u)}),Zs(["dd","ddd","dddd"],function(u,p,y,_){var E=y._locale.weekdaysParse(u,_,y._strict);E!=null?p.d=E:w(y).invalidWeekday=u}),Zs(["d","e","E"],function(u,p,y,_){p[_]=ue(u)});function fie(u,p){return typeof u!="string"?u:isNaN(u)?(u=p.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function pie(u,p){return typeof u=="string"?p.weekdaysParse(u)%7||7:isNaN(u)?null:u}function Af(u,p){return u.slice(p,7).concat(u.slice(0,p))}var mie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),r1="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),vie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),gie=Qs,yie=Qs,_ie=Qs;function bie(u,p){var y=s(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return u===!0?Af(y,this._week.dow):u?y[u.day()]:y}function wie(u){return u===!0?Af(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function Eie(u){return u===!0?Af(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function Sie(u,p,y){var _,E,$,P=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=Ze.call(this._weekdaysParse,P),E!==-1?E:null):p==="ddd"?(E=Ze.call(this._shortWeekdaysParse,P),E!==-1?E:null):(E=Ze.call(this._minWeekdaysParse,P),E!==-1?E:null):p==="dddd"?(E=Ze.call(this._weekdaysParse,P),E!==-1||(E=Ze.call(this._shortWeekdaysParse,P),E!==-1)?E:(E=Ze.call(this._minWeekdaysParse,P),E!==-1?E:null)):p==="ddd"?(E=Ze.call(this._shortWeekdaysParse,P),E!==-1||(E=Ze.call(this._weekdaysParse,P),E!==-1)?E:(E=Ze.call(this._minWeekdaysParse,P),E!==-1?E:null)):(E=Ze.call(this._minWeekdaysParse,P),E!==-1||(E=Ze.call(this._weekdaysParse,P),E!==-1)?E:(E=Ze.call(this._shortWeekdaysParse,P),E!==-1?E:null))}function kie(u,p,y){var _,E,$;if(this._weekdaysParseExact)return Sie.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 xie(u){if(!this.isValid())return u!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=fie(u,this.localeData()),this.add(u-p,"d")):p}function Tie(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 $ie(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var p=pie(u,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function Die(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||If.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=gie),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function Nie(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||If.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yie),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Cie(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||If.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_ie),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function If(){function u(Pt,pn){return pn.length-Pt.length}var p=[],y=[],_=[],E=[],$,P,J,ce,Ae;for($=0;$<7;$++)P=b([2e3,1]).day($),J=ir(this.weekdaysMin(P,"")),ce=ir(this.weekdaysShort(P,"")),Ae=ir(this.weekdays(P,"")),p.push(J),y.push(ce),_.push(Ae),E.push(J),E.push(ce),E.push(Ae);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 Pf(){return this.hours()%12||12}function Oie(){return this.hours()||24}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Pf),q("k",["kk",2],0,Oie),q("hmm",0,0,function(){return""+Pf.apply(this)+Me(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Pf.apply(this)+Me(this.minutes(),2)+Me(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+Me(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+Me(this.minutes(),2)+Me(this.seconds(),2)});function n1(u,p){q(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}n1("a",!0),n1("A",!1),Qe("hour","h"),st("hour",13);function i1(u,p){return p._meridiemParse}K("a",i1),K("A",i1),K("H",Ye),K("h",Ye),K("k",Ye),K("HH",Ye,nr),K("hh",Ye,nr),K("kk",Ye,nr),K("hmm",UE),K("hmmss",KE),K("Hmm",UE),K("Hmmss",KE),Oe(["H","HH"],ot),Oe(["k","kk"],function(u,p,y){var _=ue(u);p[ot]=_===24?0:_}),Oe(["a","A"],function(u,p,y){y._isPm=y._locale.isPM(u),y._meridiem=u}),Oe(["h","hh"],function(u,p,y){p[ot]=ue(u),w(y).bigHour=!0}),Oe("hmm",function(u,p,y){var _=u.length-2;p[ot]=ue(u.substr(0,_)),p[Dr]=ue(u.substr(_)),w(y).bigHour=!0}),Oe("hmmss",function(u,p,y){var _=u.length-4,E=u.length-2;p[ot]=ue(u.substr(0,_)),p[Dr]=ue(u.substr(_,2)),p[ln]=ue(u.substr(E)),w(y).bigHour=!0}),Oe("Hmm",function(u,p,y){var _=u.length-2;p[ot]=ue(u.substr(0,_)),p[Dr]=ue(u.substr(_))}),Oe("Hmmss",function(u,p,y){var _=u.length-4,E=u.length-2;p[ot]=ue(u.substr(0,_)),p[Dr]=ue(u.substr(_,2)),p[ln]=ue(u.substr(E))});function Aie(u){return(u+"").toLowerCase().charAt(0)==="p"}var Iie=/[ap]\.?m?\.?/i,Pie=Ra("Hours",!0);function Mie(u,p,y){return u>11?y?"pm":"PM":y?"am":"AM"}var a1={calendar:it,longDateFormat:F,invalidDate:Q,ordinal:re,dayOfMonthOrdinalParse:Fe,relativeTime:at,months:qne,monthsShort:qE,week:lie,weekdays:mie,weekdaysMin:vie,weekdaysShort:r1,meridiemParse:Iie},We={},ro={},no;function Rie(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 s1(u){return u&&u.toLowerCase().replace("_","-")}function Lie(u){for(var p=0,y,_,E,$;p<u.length;){for($=s1(u[p]).split("-"),y=$.length,_=s1(u[p+1]),_=_?_.split("-"):null;y>0;){if(E=hd($.slice(0,y).join("-")),E)return E;if(_&&_.length>=y&&Rie($,_)>=y-1)break;y--}p++}return no}function Vie(u){return u.match("^[^/\\\\]*$")!=null}function hd(u){var p=null,y;if(We[u]===void 0&&e&&e.exports&&Vie(u))try{p=no._abbr,y=Ir,y("./locale/"+u),Fn(p)}catch{We[u]=null}return We[u]}function Fn(u,p){var y;return u&&(c(p)?y=cn(u):y=Mf(u,p),y?no=y:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),no._abbr}function Mf(u,p){if(p!==null){var y,_=a1;if(p.abbr=u,We[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."),_=We[u]._config;else if(p.parentLocale!=null)if(We[p.parentLocale]!=null)_=We[p.parentLocale]._config;else if(y=hd(p.parentLocale),y!=null)_=y._config;else return ro[p.parentLocale]||(ro[p.parentLocale]=[]),ro[p.parentLocale].push({name:u,config:p}),null;return We[u]=new be(_e(_,p)),ro[u]&&ro[u].forEach(function(E){Mf(E.name,E.config)}),Fn(u),We[u]}else return delete We[u],null}function Fie(u,p){if(p!=null){var y,_,E=a1;We[u]!=null&&We[u].parentLocale!=null?We[u].set(_e(We[u]._config,p)):(_=hd(u),_!=null&&(E=_._config),p=_e(E,p),_==null&&(p.abbr=u),y=new be(p),y.parentLocale=We[u],We[u]=y),Fn(u)}else We[u]!=null&&(We[u].parentLocale!=null?(We[u]=We[u].parentLocale,u===Fn()&&Fn(u)):We[u]!=null&&delete We[u]);return We[u]}function cn(u){var p;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return no;if(!s(u)){if(p=hd(u),p)return p;u=[u]}return Lie(u)}function Yie(){return pe(We)}function Rf(u){var p,y=u._a;return y&&w(u).overflow===-2&&(p=y[on]<0||y[on]>11?on:y[jr]<1||y[jr]>cd(y[bt],y[on])?jr:y[ot]<0||y[ot]>24||y[ot]===24&&(y[Dr]!==0||y[ln]!==0||y[ki]!==0)?ot:y[Dr]<0||y[Dr]>59?Dr:y[ln]<0||y[ln]>59?ln:y[ki]<0||y[ki]>999?ki:-1,w(u)._overflowDayOfYear&&(p<bt||p>jr)&&(p=jr),w(u)._overflowWeeks&&p===-1&&(p=zne),w(u)._overflowWeekday&&p===-1&&(p=Une),w(u).overflow=p),u}var jie=/^\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)?)?$/,Bie=/^\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)?)?$/,Hie=/Z|[+-]\d\d(?::?\d\d)?/,fd=[["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]],Lf=[["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/]],Wie=/^\/?Date\((-?\d+)/i,Gie=/^(?:(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}))$/,zie={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 o1(u){var p,y,_=u._i,E=jie.exec(_)||Bie.exec(_),$,P,J,ce,Ae=fd.length,Pt=Lf.length;if(E){for(w(u).iso=!0,p=0,y=Ae;p<y;p++)if(fd[p][1].exec(E[1])){P=fd[p][0],$=fd[p][2]!==!1;break}if(P==null){u._isValid=!1;return}if(E[3]){for(p=0,y=Pt;p<y;p++)if(Lf[p][1].exec(E[3])){J=(E[2]||" ")+Lf[p][0];break}if(J==null){u._isValid=!1;return}}if(!$&&J!=null){u._isValid=!1;return}if(E[4])if(Hie.exec(E[4]))ce="Z";else{u._isValid=!1;return}u._f=P+(J||"")+(ce||""),Ff(u)}else u._isValid=!1}function Uie(u,p,y,_,E,$){var P=[Kie(u),qE.indexOf(p),parseInt(y,10),parseInt(_,10),parseInt(E,10)];return $&&P.push(parseInt($,10)),P}function Kie(u){var p=parseInt(u,10);return p<=49?2e3+p:p<=999?1900+p:p}function qie(u){return u.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Xie(u,p,y){if(u){var _=r1.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 Qie(u,p,y){if(u)return zie[u];if(p)return 0;var _=parseInt(y,10),E=_%100,$=(_-E)/100;return $*60+E}function l1(u){var p=Gie.exec(qie(u._i)),y;if(p){if(y=Uie(p[4],p[3],p[2],p[5],p[6],p[7]),!Xie(p[1],y,u))return;u._a=y,u._tzm=Qie(p[8],p[9],p[10]),u._d=eo.apply(null,u._a),u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),w(u).rfc2822=!0}else u._isValid=!1}function Zie(u){var p=Wie.exec(u._i);if(p!==null){u._d=new Date(+p[1]);return}if(o1(u),u._isValid===!1)delete u._isValid;else return;if(l1(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 Va(u,p,y){return u??p??y}function Jie(u){var p=new Date(a.now());return u._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()]}function Vf(u){var p,y,_=[],E,$,P;if(!u._d){for(E=Jie(u),u._w&&u._a[jr]==null&&u._a[on]==null&&eae(u),u._dayOfYear!=null&&(P=Va(u._a[bt],E[bt]),(u._dayOfYear>Js(P)||u._dayOfYear===0)&&(w(u)._overflowDayOfYear=!0),y=eo(P,0,u._dayOfYear),u._a[on]=y.getUTCMonth(),u._a[jr]=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[ot]===24&&u._a[Dr]===0&&u._a[ln]===0&&u._a[ki]===0&&(u._nextDay=!0,u._a[ot]=0),u._d=(u._useUTC?eo:sie).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[ot]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(w(u).weekdayMismatch=!0)}}function eae(u){var p,y,_,E,$,P,J,ce,Ae;p=u._w,p.GG!=null||p.W!=null||p.E!=null?($=1,P=4,y=Va(p.GG,u._a[bt],to(je(),1,4).year),_=Va(p.W,1),E=Va(p.E,1),(E<1||E>7)&&(ce=!0)):($=u._locale._week.dow,P=u._locale._week.doy,Ae=to(je(),$,P),y=Va(p.gg,u._a[bt],Ae.year),_=Va(p.w,Ae.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||_>dn(y,$,P)?w(u)._overflowWeeks=!0:ce!=null?w(u)._overflowWeekday=!0:(J=t1(y,_,E,$,P),u._a[bt]=J.year,u._dayOfYear=J.dayOfYear)}a.ISO_8601=function(){},a.RFC_2822=function(){};function Ff(u){if(u._f===a.ISO_8601){o1(u);return}if(u._f===a.RFC_2822){l1(u);return}u._a=[],w(u).empty=!0;var p=""+u._i,y,_,E,$,P,J=p.length,ce=0,Ae,Pt;for(E=W(u._f,u._locale).match(Gt)||[],Pt=E.length,y=0;y<Pt;y++)$=E[y],_=(p.match(Hne($,u))||[])[0],_&&(P=p.substr(0,p.indexOf(_)),P.length>0&&w(u).unusedInput.push(P),p=p.slice(p.indexOf(_)+_.length),ce+=_.length),yt[$]?(_?w(u).empty=!1:w(u).unusedTokens.push($),Gne($,_,u)):u._strict&&!_&&w(u).unusedTokens.push($);w(u).charsLeftOver=J-ce,p.length>0&&w(u).unusedInput.push(p),u._a[ot]<=12&&w(u).bigHour===!0&&u._a[ot]>0&&(w(u).bigHour=void 0),w(u).parsedDateParts=u._a.slice(0),w(u).meridiem=u._meridiem,u._a[ot]=tae(u._locale,u._a[ot],u._meridiem),Ae=w(u).era,Ae!==null&&(u._a[bt]=u._locale.erasConvertYear(Ae,u._a[bt])),Vf(u),Rf(u)}function tae(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 rae(u){var p,y,_,E,$,P,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,P=!1,p=A({},u),u._useUTC!=null&&(p._useUTC=u._useUTC),p._f=u._f[E],Ff(p),T(p)&&(P=!0),$+=w(p).charsLeftOver,$+=w(p).unusedTokens.length*10,w(p).score=$,J?$<_&&(_=$,y=p):(_==null||$<_||P)&&(_=$,y=p,P&&(J=!0));g(u,y||p)}function nae(u){if(!u._d){var p=Pa(u._i),y=p.day===void 0?p.date:p.day;u._a=v([p.year,p.month,y,p.hour,p.minute,p.second,p.millisecond],function(_){return _&&parseInt(_,10)}),Vf(u)}}function iae(u){var p=new R(Rf(d1(u)));return p._nextDay&&(p.add(1,"d"),p._nextDay=void 0),p}function d1(u){var p=u._i,y=u._f;return u._locale=u._locale||cn(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(Rf(p)):(m(p)?u._d=p:s(y)?rae(u):y?Ff(u):aae(u),T(u)||(u._d=null),u))}function aae(u){var p=u._i;c(p)?u._d=new Date(a.now()):m(p)?u._d=new Date(p.valueOf()):typeof p=="string"?Zie(u):s(p)?(u._a=v(p.slice(0),function(y){return parseInt(y,10)}),Vf(u)):o(p)?nae(u):f(p)?u._d=new Date(p):a.createFromInputFallback(u)}function c1(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=_,iae($)}function je(u,p,y,_){return c1(u,p,y,_,!1)}var sae=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var u=je.apply(null,arguments);return this.isValid()&&u.isValid()?u<this?this:u:D()}),oae=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var u=je.apply(null,arguments);return this.isValid()&&u.isValid()?u>this?this:u:D()});function u1(u,p){var y,_;if(p.length===1&&s(p[0])&&(p=p[0]),!p.length)return je();for(y=p[0],_=1;_<p.length;++_)(!p[_].isValid()||p[_][u](y))&&(y=p[_]);return y}function lae(){var u=[].slice.call(arguments,0);return u1("isBefore",u)}function dae(){var u=[].slice.call(arguments,0);return u1("isAfter",u)}var cae=function(){return Date.now?Date.now():+new Date},io=["year","quarter","month","week","day","hour","minute","second","millisecond"];function uae(u){var p,y=!1,_,E=io.length;for(p in u)if(l(u,p)&&!(Ze.call(io,p)!==-1&&(u[p]==null||!isNaN(u[p]))))return!1;for(_=0;_<E;++_)if(u[io[_]]){if(y)return!1;parseFloat(u[io[_]])!==ue(u[io[_]])&&(y=!0)}return!0}function hae(){return this._isValid}function fae(){return Nr(NaN)}function pd(u){var p=Pa(u),y=p.year||0,_=p.quarter||0,E=p.month||0,$=p.week||p.isoWeek||0,P=p.day||0,J=p.hour||0,ce=p.minute||0,Ae=p.second||0,Pt=p.millisecond||0;this._isValid=uae(p),this._milliseconds=+Pt+Ae*1e3+ce*6e4+J*1e3*60*60,this._days=+P+$*7,this._months=+E+_*3+y*12,this._data={},this._locale=cn(),this._bubble()}function md(u){return u instanceof pd}function Yf(u){return u<0?Math.round(-1*u)*-1:Math.round(u)}function pae(u,p,y){var _=Math.min(u.length,p.length),E=Math.abs(u.length-p.length),$=0,P;for(P=0;P<_;P++)ue(u[P])!==ue(p[P])&&$++;return $+E}function h1(u,p){q(u,0,0,function(){var y=this.utcOffset(),_="+";return y<0&&(y=-y,_="-"),_+Me(~~(y/60),2)+p+Me(~~y%60,2)})}h1("Z",":"),h1("ZZ",""),K("Z",ld),K("ZZ",ld),Oe(["Z","ZZ"],function(u,p,y){y._useUTC=!0,y._tzm=jf(ld,u)});var mae=/([\+\-]|\d\d)/gi;function jf(u,p){var y=(p||"").match(u),_,E,$;return y===null?null:(_=y[y.length-1]||[],E=(_+"").match(mae)||["-",0,0],$=+(E[1]*60)+ue(E[2]),$===0?0:E[0]==="+"?$:-$)}function Bf(u,p){var y,_;return p._isUTC?(y=p.clone(),_=(C(u)||m(u)?u.valueOf():je(u).valueOf())-y.valueOf(),y._d.setTime(y._d.valueOf()+_),a.updateOffset(y,!1),y):je(u).local()}function Hf(u){return-Math.round(u._d.getTimezoneOffset())}a.updateOffset=function(){};function vae(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=jf(ld,u),u===null)return this}else Math.abs(u)<16&&!y&&(u=u*60);return!this._isUTC&&p&&(E=Hf(this)),this._offset=u,this._isUTC=!0,E!=null&&this.add(E,"m"),_!==u&&(!p||this._changeInProgress?v1(this,Nr(u-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Hf(this)}function gae(u,p){return u!=null?(typeof u!="string"&&(u=-u),this.utcOffset(u,p),this):-this.utcOffset()}function yae(u){return this.utcOffset(0,u)}function _ae(u){return this._isUTC&&(this.utcOffset(0,u),this._isUTC=!1,u&&this.subtract(Hf(this),"m")),this}function bae(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var u=jf(jne,this._i);u!=null?this.utcOffset(u):this.utcOffset(0,!0)}return this}function wae(u){return this.isValid()?(u=u?je(u).utcOffset():0,(this.utcOffset()-u)%60===0):!1}function Eae(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sae(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},p;return A(u,this),u=d1(u),u._a?(p=u._isUTC?b(u._a):je(u._a),this._isDSTShifted=this.isValid()&&pae(u._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kae(){return this.isValid()?!this._isUTC:!1}function xae(){return this.isValid()?this._isUTC:!1}function f1(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Tae=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,$ae=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nr(u,p){var y=u,_=null,E,$,P;return md(u)?y={ms:u._milliseconds,d:u._days,M:u._months}:f(u)||!isNaN(+u)?(y={},p?y[p]=+u:y.milliseconds=+u):(_=Tae.exec(u))?(E=_[1]==="-"?-1:1,y={y:0,d:ue(_[jr])*E,h:ue(_[ot])*E,m:ue(_[Dr])*E,s:ue(_[ln])*E,ms:ue(Yf(_[ki]*1e3))*E}):(_=$ae.exec(u))?(E=_[1]==="-"?-1:1,y={y:xi(_[2],E),M:xi(_[3],E),w:xi(_[4],E),d:xi(_[5],E),h:xi(_[6],E),m:xi(_[7],E),s:xi(_[8],E)}):y==null?y={}:typeof y=="object"&&("from"in y||"to"in y)&&(P=Dae(je(y.from),je(y.to)),y={},y.ms=P.milliseconds,y.M=P.months),$=new pd(y),md(u)&&l(u,"_locale")&&($._locale=u._locale),md(u)&&l(u,"_isValid")&&($._isValid=u._isValid),$}Nr.fn=pd.prototype,Nr.invalid=fae;function xi(u,p){var y=u&&parseFloat(u.replace(",","."));return(isNaN(y)?0:y)*p}function p1(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 Dae(u,p){var y;return u.isValid()&&p.isValid()?(p=Bf(p,u),u.isBefore(p)?y=p1(u,p):(y=p1(p,u),y.milliseconds=-y.milliseconds,y.months=-y.months),y):{milliseconds:0,months:0}}function m1(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=Nr(y,_),v1(this,E,u),this}}function v1(u,p,y,_){var E=p._milliseconds,$=Yf(p._days),P=Yf(p._months);u.isValid()&&(_=_??!0,P&&QE(u,nd(u,"Month")+P*y),$&&WE(u,"Date",nd(u,"Date")+$*y),E&&u._d.setTime(u._d.valueOf()+E*y),_&&a.updateOffset(u,$||P))}var Nae=m1(1,"add"),Cae=m1(-1,"subtract");function g1(u){return typeof u=="string"||u instanceof String}function Oae(u){return C(u)||m(u)||g1(u)||f(u)||Iae(u)||Aae(u)||u===null||u===void 0}function Aae(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,$,P=_.length;for(E=0;E<P;E+=1)$=_[E],y=y||l(u,$);return p&&y}function Iae(u){var p=s(u),y=!1;return p&&(y=u.filter(function(_){return!f(_)&&g1(u)}).length===0),p&&y}function Pae(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 Mae(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 Rae(u,p){arguments.length===1&&(arguments[0]?Oae(arguments[0])?(u=arguments[0],p=void 0):Pae(arguments[0])&&(p=arguments[0],u=void 0):(u=void 0,p=void 0));var y=u||je(),_=Bf(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,je(y)))}function Lae(){return new R(this)}function Vae(u,p){var y=C(u)?u:je(u);return this.isValid()&&y.isValid()?(p=At(p)||"millisecond",p==="millisecond"?this.valueOf()>y.valueOf():y.valueOf()<this.clone().startOf(p).valueOf()):!1}function Fae(u,p){var y=C(u)?u:je(u);return this.isValid()&&y.isValid()?(p=At(p)||"millisecond",p==="millisecond"?this.valueOf()<y.valueOf():this.clone().endOf(p).valueOf()<y.valueOf()):!1}function Yae(u,p,y,_){var E=C(u)?u:je(u),$=C(p)?p:je(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 jae(u,p){var y=C(u)?u:je(u),_;return this.isValid()&&y.isValid()?(p=At(p)||"millisecond",p==="millisecond"?this.valueOf()===y.valueOf():(_=y.valueOf(),this.clone().startOf(p).valueOf()<=_&&_<=this.clone().endOf(p).valueOf())):!1}function Bae(u,p){return this.isSame(u,p)||this.isAfter(u,p)}function Hae(u,p){return this.isSame(u,p)||this.isBefore(u,p)}function Wae(u,p,y){var _,E,$;if(!this.isValid())return NaN;if(_=Bf(u,this),!_.isValid())return NaN;switch(E=(_.utcOffset()-this.utcOffset())*6e4,p=At(p),p){case"year":$=vd(this,_)/12;break;case"month":$=vd(this,_);break;case"quarter":$=vd(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?$:It($)}function vd(u,p){if(u.date()<p.date())return-vd(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 Gae(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function zae(u){if(!this.isValid())return null;var p=u!==!0,y=p?this.clone().utc():this;return y.year()<0||y.year()>9999?_t(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",_t(y,"Z")):_t(y,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Uae(){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 Kae(u){u||(u=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var p=_t(this,u);return this.localeData().postformat(p)}function qae(u,p){return this.isValid()&&(C(u)&&u.isValid()||je(u).isValid())?Nr({to:this,from:u}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function Xae(u){return this.from(je(),u)}function Qae(u,p){return this.isValid()&&(C(u)&&u.isValid()||je(u).isValid())?Nr({from:this,to:u}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function Zae(u){return this.to(je(),u)}function y1(u){var p;return u===void 0?this._locale._abbr:(p=cn(u),p!=null&&(this._locale=p),this)}var _1=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 b1(){return this._locale}var gd=1e3,Fa=60*gd,yd=60*Fa,w1=(365*400+97)*24*yd;function Ya(u,p){return(u%p+p)%p}function E1(u,p,y){return u<100&&u>=0?new Date(u+400,p,y)-w1:new Date(u,p,y).valueOf()}function S1(u,p,y){return u<100&&u>=0?Date.UTC(u+400,p,y)-w1:Date.UTC(u,p,y)}function Jae(u){var p,y;if(u=At(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?S1:E1,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-=Ya(p+(this._isUTC?0:this.utcOffset()*Fa),yd);break;case"minute":p=this._d.valueOf(),p-=Ya(p,Fa);break;case"second":p=this._d.valueOf(),p-=Ya(p,gd);break}return this._d.setTime(p),a.updateOffset(this,!0),this}function ese(u){var p,y;if(u=At(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?S1:E1,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+=yd-Ya(p+(this._isUTC?0:this.utcOffset()*Fa),yd)-1;break;case"minute":p=this._d.valueOf(),p+=Fa-Ya(p,Fa)-1;break;case"second":p=this._d.valueOf(),p+=gd-Ya(p,gd)-1;break}return this._d.setTime(p),a.updateOffset(this,!0),this}function tse(){return this._d.valueOf()-(this._offset||0)*6e4}function rse(){return Math.floor(this.valueOf()/1e3)}function nse(){return new Date(this.valueOf())}function ise(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function ase(){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 sse(){return this.isValid()?this.toISOString():null}function ose(){return T(this)}function lse(){return g({},w(this))}function dse(){return w(this).overflow}function cse(){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"),K("N",Wf),K("NN",Wf),K("NNN",Wf),K("NNNN",wse),K("NNNNN",Ese),Oe(["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}),K("y",La),K("yy",La),K("yyy",La),K("yyyy",La),K("yo",Sse),Oe(["y","yy","yyy","yyyy"],bt),Oe(["yo"],function(u,p,y,_){var E;y._locale._eraYearOrdinalRegex&&(E=u.match(y._locale._eraYearOrdinalRegex)),y._locale.eraYearOrdinalParse?p[bt]=y._locale.eraYearOrdinalParse(u,E):p[bt]=parseInt(u,10)});function use(u,p){var y,_,E,$=this._eras||cn("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 hse(u,p,y){var _,E,$=this.eras(),P,J,ce;for(u=u.toUpperCase(),_=0,E=$.length;_<E;++_)if(P=$[_].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(P===u)return $[_];break;case"NNNNN":if(ce===u)return $[_];break}else if([P,J,ce].indexOf(u)>=0)return $[_]}function fse(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 pse(){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 mse(){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 vse(){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 gse(){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 yse(u){return l(this,"_erasNameRegex")||Gf.call(this),u?this._erasNameRegex:this._erasRegex}function _se(u){return l(this,"_erasAbbrRegex")||Gf.call(this),u?this._erasAbbrRegex:this._erasRegex}function bse(u){return l(this,"_erasNarrowRegex")||Gf.call(this),u?this._erasNarrowRegex:this._erasRegex}function Wf(u,p){return p.erasAbbrRegex(u)}function wse(u,p){return p.erasNameRegex(u)}function Ese(u,p){return p.erasNarrowRegex(u)}function Sse(u,p){return p._eraYearOrdinalRegex||La}function Gf(){var u=[],p=[],y=[],_=[],E,$,P=this.eras();for(E=0,$=P.length;E<$;++E)p.push(ir(P[E].name)),u.push(ir(P[E].abbr)),y.push(ir(P[E].narrow)),_.push(ir(P[E].name)),_.push(ir(P[E].abbr)),_.push(ir(P[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 _d(u,p){q(0,[u,u.length],0,p)}_d("gggg","weekYear"),_d("ggggg","weekYear"),_d("GGGG","isoWeekYear"),_d("GGGGG","isoWeekYear"),Qe("weekYear","gg"),Qe("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),K("G",od),K("g",od),K("GG",Ye,nr),K("gg",Ye,nr),K("GGGG",Cf,Nf),K("gggg",Cf,Nf),K("GGGGG",sd,id),K("ggggg",sd,id),Zs(["gggg","ggggg","GGGG","GGGGG"],function(u,p,y,_){p[_.substr(0,2)]=ue(u)}),Zs(["gg","GG"],function(u,p,y,_){p[_]=a.parseTwoDigitYear(u)});function kse(u){return k1.call(this,u,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function xse(u){return k1.call(this,u,this.isoWeek(),this.isoWeekday(),1,4)}function Tse(){return dn(this.year(),1,4)}function $se(){return dn(this.isoWeekYear(),1,4)}function Dse(){var u=this.localeData()._week;return dn(this.year(),u.dow,u.doy)}function Nse(){var u=this.localeData()._week;return dn(this.weekYear(),u.dow,u.doy)}function k1(u,p,y,_,E){var $;return u==null?to(this,_,E).year:($=dn(u,_,E),p>$&&(p=$),Cse.call(this,u,p,y,_,E))}function Cse(u,p,y,_,E){var $=t1(u,p,y,_,E),P=eo($.year,0,$.dayOfYear);return this.year(P.getUTCFullYear()),this.month(P.getUTCMonth()),this.date(P.getUTCDate()),this}q("Q",0,"Qo","quarter"),Qe("quarter","Q"),st("quarter",7),K("Q",GE),Oe("Q",function(u,p){p[on]=(ue(u)-1)*3});function Ose(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"),st("date",9),K("D",Ye),K("DD",Ye,nr),K("Do",function(u,p){return u?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),Oe(["D","DD"],jr),Oe("Do",function(u,p){p[jr]=ue(u.match(Ye)[0])});var x1=Ra("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),Qe("dayOfYear","DDD"),st("dayOfYear",4),K("DDD",ad),K("DDDD",zE),Oe(["DDD","DDDD"],function(u,p,y){y._dayOfYear=ue(u)});function Ase(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"),st("minute",14),K("m",Ye),K("mm",Ye,nr),Oe(["m","mm"],Dr);var Ise=Ra("Minutes",!1);q("s",["ss",2],0,"second"),Qe("second","s"),st("second",15),K("s",Ye),K("ss",Ye,nr),Oe(["s","ss"],ln);var Pse=Ra("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"),st("millisecond",16),K("S",ad,GE),K("SS",ad,nr),K("SSS",ad,zE);var Yn,T1;for(Yn="SSSS";Yn.length<=9;Yn+="S")K(Yn,La);function Mse(u,p){p[ki]=ue(("0."+u)*1e3)}for(Yn="S";Yn.length<=9;Yn+="S")Oe(Yn,Mse);T1=Ra("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");function Rse(){return this._isUTC?"UTC":""}function Lse(){return this._isUTC?"Coordinated Universal Time":""}var Y=R.prototype;Y.add=Nae,Y.calendar=Rae,Y.clone=Lae,Y.diff=Wae,Y.endOf=ese,Y.format=Kae,Y.from=qae,Y.fromNow=Xae,Y.to=Qae,Y.toNow=Zae,Y.get=Fne,Y.invalidAt=dse,Y.isAfter=Vae,Y.isBefore=Fae,Y.isBetween=Yae,Y.isSame=jae,Y.isSameOrAfter=Bae,Y.isSameOrBefore=Hae,Y.isValid=ose,Y.lang=_1,Y.locale=y1,Y.localeData=b1,Y.max=oae,Y.min=sae,Y.parsingFlags=lse,Y.set=Yne,Y.startOf=Jae,Y.subtract=Cae,Y.toArray=ise,Y.toObject=ase,Y.toDate=nse,Y.toISOString=zae,Y.inspect=Uae,typeof Symbol<"u"&&Symbol.for!=null&&(Y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Y.toJSON=sse,Y.toString=Gae,Y.unix=rse,Y.valueOf=tse,Y.creationData=cse,Y.eraName=pse,Y.eraNarrow=mse,Y.eraAbbr=vse,Y.eraYear=gse,Y.year=e1,Y.isLeapYear=aie,Y.weekYear=kse,Y.isoWeekYear=xse,Y.quarter=Y.quarters=Ose,Y.month=ZE,Y.daysInMonth=rie,Y.week=Y.weeks=uie,Y.isoWeek=Y.isoWeeks=hie,Y.weeksInYear=Dse,Y.weeksInWeekYear=Nse,Y.isoWeeksInYear=Tse,Y.isoWeeksInISOWeekYear=$se,Y.date=x1,Y.day=Y.days=xie,Y.weekday=Tie,Y.isoWeekday=$ie,Y.dayOfYear=Ase,Y.hour=Y.hours=Pie,Y.minute=Y.minutes=Ise,Y.second=Y.seconds=Pse,Y.millisecond=Y.milliseconds=T1,Y.utcOffset=vae,Y.utc=yae,Y.local=_ae,Y.parseZone=bae,Y.hasAlignedHourOffset=wae,Y.isDST=Eae,Y.isLocal=kae,Y.isUtcOffset=xae,Y.isUtc=f1,Y.isUTC=f1,Y.zoneAbbr=Rse,Y.zoneName=Lse,Y.dates=O("dates accessor is deprecated. Use date instead.",x1),Y.months=O("months accessor is deprecated. Use month instead",ZE),Y.years=O("years accessor is deprecated. Use year instead",e1),Y.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gae),Y.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sae);function Vse(u){return je(u*1e3)}function Fse(){return je.apply(null,arguments).parseZone()}function $1(u){return u}var we=be.prototype;we.calendar=ft,we.longDateFormat=B,we.invalidDate=ie,we.ordinal=tt,we.preparse=$1,we.postformat=$1,we.relativeTime=$r,we.pastFuture=pr,we.set=oe,we.eras=use,we.erasParse=hse,we.erasConvertYear=fse,we.erasAbbrRegex=_se,we.erasNameRegex=yse,we.erasNarrowRegex=bse,we.months=Zne,we.monthsShort=Jne,we.monthsParse=tie,we.monthsRegex=iie,we.monthsShortRegex=nie,we.week=oie,we.firstDayOfYear=cie,we.firstDayOfWeek=die,we.weekdays=bie,we.weekdaysMin=Eie,we.weekdaysShort=wie,we.weekdaysParse=kie,we.weekdaysRegex=Die,we.weekdaysShortRegex=Nie,we.weekdaysMinRegex=Cie,we.isPM=Aie,we.meridiem=Mie;function bd(u,p,y,_){var E=cn(),$=b().set(_,p);return E[y]($,u)}function D1(u,p,y){if(f(u)&&(p=u,u=void 0),u=u||"",p!=null)return bd(u,p,y,"month");var _,E=[];for(_=0;_<12;_++)E[_]=bd(u,_,y,"month");return E}function zf(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=cn(),$=u?E._week.dow:0,P,J=[];if(y!=null)return bd(p,(y+$)%7,_,"day");for(P=0;P<7;P++)J[P]=bd(p,(P+$)%7,_,"day");return J}function Yse(u,p){return D1(u,p,"months")}function jse(u,p){return D1(u,p,"monthsShort")}function Bse(u,p,y){return zf(u,p,y,"weekdays")}function Hse(u,p,y){return zf(u,p,y,"weekdaysShort")}function Wse(u,p,y){return zf(u,p,y,"weekdaysMin")}Fn("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.",Fn),a.langData=O("moment.langData is deprecated. Use moment.localeData instead.",cn);var un=Math.abs;function Gse(){var u=this._data;return this._milliseconds=un(this._milliseconds),this._days=un(this._days),this._months=un(this._months),u.milliseconds=un(u.milliseconds),u.seconds=un(u.seconds),u.minutes=un(u.minutes),u.hours=un(u.hours),u.months=un(u.months),u.years=un(u.years),this}function N1(u,p,y,_){var E=Nr(p,y);return u._milliseconds+=_*E._milliseconds,u._days+=_*E._days,u._months+=_*E._months,u._bubble()}function zse(u,p){return N1(this,u,p,1)}function Use(u,p){return N1(this,u,p,-1)}function C1(u){return u<0?Math.floor(u):Math.ceil(u)}function Kse(){var u=this._milliseconds,p=this._days,y=this._months,_=this._data,E,$,P,J,ce;return u>=0&&p>=0&&y>=0||u<=0&&p<=0&&y<=0||(u+=C1(Uf(y)+p)*864e5,p=0,y=0),_.milliseconds=u%1e3,E=It(u/1e3),_.seconds=E%60,$=It(E/60),_.minutes=$%60,P=It($/60),_.hours=P%24,p+=It(P/24),ce=It(O1(p)),y+=ce,p-=C1(Uf(ce)),J=It(y/12),y%=12,_.days=p,_.months=y,_.years=J,this}function O1(u){return u*4800/146097}function Uf(u){return u*146097/4800}function qse(u){if(!this.isValid())return NaN;var p,y,_=this._milliseconds;if(u=At(u),u==="month"||u==="quarter"||u==="year")switch(p=this._days+_/864e5,y=this._months+O1(p),u){case"month":return y;case"quarter":return y/3;case"year":return y/12}else switch(p=this._days+Math.round(Uf(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 Xse(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function hn(u){return function(){return this.as(u)}}var Qse=hn("ms"),Zse=hn("s"),Jse=hn("m"),eoe=hn("h"),toe=hn("d"),roe=hn("w"),noe=hn("M"),ioe=hn("Q"),aoe=hn("y");function soe(){return Nr(this)}function ooe(u){return u=At(u),this.isValid()?this[u+"s"]():NaN}function Ti(u){return function(){return this.isValid()?this._data[u]:NaN}}var loe=Ti("milliseconds"),doe=Ti("seconds"),coe=Ti("minutes"),uoe=Ti("hours"),hoe=Ti("days"),foe=Ti("months"),poe=Ti("years");function moe(){return It(this.days()/7)}var fn=Math.round,ja={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function voe(u,p,y,_,E){return E.relativeTime(p||1,!!y,u,_)}function goe(u,p,y,_){var E=Nr(u).abs(),$=fn(E.as("s")),P=fn(E.as("m")),J=fn(E.as("h")),ce=fn(E.as("d")),Ae=fn(E.as("M")),Pt=fn(E.as("w")),pn=fn(E.as("y")),jn=$<=y.ss&&["s",$]||$<y.s&&["ss",$]||P<=1&&["m"]||P<y.m&&["mm",P]||J<=1&&["h"]||J<y.h&&["hh",J]||ce<=1&&["d"]||ce<y.d&&["dd",ce];return y.w!=null&&(jn=jn||Pt<=1&&["w"]||Pt<y.w&&["ww",Pt]),jn=jn||Ae<=1&&["M"]||Ae<y.M&&["MM",Ae]||pn<=1&&["y"]||["yy",pn],jn[2]=p,jn[3]=+u>0,jn[4]=_,voe.apply(null,jn)}function yoe(u){return u===void 0?fn:typeof u=="function"?(fn=u,!0):!1}function _oe(u,p){return ja[u]===void 0?!1:p===void 0?ja[u]:(ja[u]=p,u==="s"&&(ja.ss=p-1),!0)}function boe(u,p){if(!this.isValid())return this.localeData().invalidDate();var y=!1,_=ja,E,$;return typeof u=="object"&&(p=u,u=!1),typeof u=="boolean"&&(y=u),typeof p=="object"&&(_=Object.assign({},ja,p),p.s!=null&&p.ss==null&&(_.ss=p.s-1)),E=this.localeData(),$=goe(this,!y,_,E),y&&($=E.pastFuture(+this,$)),E.postformat($)}var Kf=Math.abs;function Ba(u){return(u>0)-(u<0)||+u}function wd(){if(!this.isValid())return this.localeData().invalidDate();var u=Kf(this._milliseconds)/1e3,p=Kf(this._days),y=Kf(this._months),_,E,$,P,J=this.asSeconds(),ce,Ae,Pt,pn;return J?(_=It(u/60),E=It(_/60),u%=60,_%=60,$=It(y/12),y%=12,P=u?u.toFixed(3).replace(/\.?0+$/,""):"",ce=J<0?"-":"",Ae=Ba(this._months)!==Ba(J)?"-":"",Pt=Ba(this._days)!==Ba(J)?"-":"",pn=Ba(this._milliseconds)!==Ba(J)?"-":"",ce+"P"+($?Ae+$+"Y":"")+(y?Ae+y+"M":"")+(p?Pt+p+"D":"")+(E||_||u?"T":"")+(E?pn+E+"H":"")+(_?pn+_+"M":"")+(u?pn+P+"S":"")):"P0D"}var ge=pd.prototype;ge.isValid=hae,ge.abs=Gse,ge.add=zse,ge.subtract=Use,ge.as=qse,ge.asMilliseconds=Qse,ge.asSeconds=Zse,ge.asMinutes=Jse,ge.asHours=eoe,ge.asDays=toe,ge.asWeeks=roe,ge.asMonths=noe,ge.asQuarters=ioe,ge.asYears=aoe,ge.valueOf=Xse,ge._bubble=Kse,ge.clone=soe,ge.get=ooe,ge.milliseconds=loe,ge.seconds=doe,ge.minutes=coe,ge.hours=uoe,ge.days=hoe,ge.weeks=moe,ge.months=foe,ge.years=poe,ge.humanize=boe,ge.toISOString=wd,ge.toString=wd,ge.toJSON=wd,ge.locale=y1,ge.localeData=b1,ge.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",wd),ge.lang=_1,q("X",0,0,"unix"),q("x",0,0,"valueOf"),K("x",od),K("X",Bne),Oe("X",function(u,p,y){y._d=new Date(parseFloat(u)*1e3)}),Oe("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 c={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?c[l][0]:c[l][1]}var n=
|
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(c){return c%10<5&&c%10>1&&~~(c/10)%10!==1}function l(c,f,m){var v=c+" ";switch(m){case"ss":return v+(o(c)?"sekundy":"sekund");case"m":return f?"minuta":"minutę";case"mm":return v+(o(c)?"minuty":"minut");case"h":return f?"godzina":"godzinę";case"hh":return v+(o(c)?"godziny":"godzin");case"ww":return v+(o(c)?"tygodnie":"tygodni");case"MM":return v+(o(c)?"miesiące":"miesięcy");case"yy":return v+(o(c)?"lata":"lat")}}var d=
|
41
|
-
function a(l,d){var c=l.split("_");return d%10===1&&d%100!==11?c[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?c[1]:c[2]}function n(l,d,c){var f={ss:d?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:d?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return c==="m"?d?"минута":"минуту":l+" "+a(f[c],+l)}var s=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],o=
|
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 m={ss:c?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:c?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:c?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return f==="m"?c?"хвилина":"хвилину":f==="h"?c?"година":"годину":d+" "+a(m[f],+d)}function s(d,c){var f={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},m;return d===!0?f.nominative.slice(1,7).concat(f.nominative.slice(0,1)):d?(m=/(\[[ВвУу]\]) ?dddd/.test(c)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(c)?"genitive":"nominative",f[m][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 me=function(e){try{return!!e()}catch{return!0}},y$=me,Ja=!y$(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Am=Ja,Im=Function.prototype,dc=Im.call,_$=Am&&Im.bind.bind(dc,dc),Ee=Am?_$:function(e){return function(){return dc.apply(e,arguments)}},b$=Math.ceil,w$=Math.floor,E$=Math.trunc||function(t){var r=+t;return(r>0?w$:b$)(r)},S$=E$,es=function(e){var t=+e;return t!==t||t===0?0:S$(t)},Do=function(e){return e&&e.Math===Math&&e},Re=Do(typeof globalThis=="object"&&globalThis)||Do(typeof window=="object"&&window)||Do(typeof self=="object"&&self)||Do(typeof qt=="object"&&qt)||function(){return this}()||qt||Function("return this")(),Pm={exports:{}},k$=!0,Mm=Re,x$=Object.defineProperty,T$=function(e,t){try{x$(Mm,e,{value:t,configurable:!0,writable:!0})}catch{Mm[e]=t}return t},$$=Re,D$=T$,Rm="__core-js_shared__",N$=$$[Rm]||D$(Rm,{}),cc=N$,Lm=cc;(Pm.exports=function(e,t){return Lm[e]||(Lm[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 Hi=Pm.exports,Wi=function(e){return e==null},C$=Wi,O$=TypeError,Gi=function(e){if(C$(e))throw new O$("Can't call method on "+e);return e},A$=Gi,I$=Object,St=function(e){return I$(A$(e))},P$=Ee,M$=St,R$=P$({}.hasOwnProperty),Je=Object.hasOwn||function(t,r){return R$(M$(t),r)},L$=Ee,V$=0,F$=Math.random(),Y$=L$(1 .toString),No=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Y$(++V$+F$,36)},Sn=typeof navigator<"u"&&String(navigator.userAgent)||"",Vm=Re,uc=Sn,Fm=Vm.process,Ym=Vm.Deno,jm=Fm&&Fm.versions||Ym&&Ym.version,Bm=jm&&jm.v8,gr,Co;Bm&&(gr=Bm.split("."),Co=gr[0]>0&&gr[0]<4?1:+(gr[0]+gr[1])),!Co&&uc&&(gr=uc.match(/Edge\/(\d+)/),(!gr||gr[1]>=74)&&(gr=uc.match(/Chrome\/(\d+)/),gr&&(Co=+gr[1])));var zi=Co,Hm=zi,j$=me,B$=Re,H$=B$.String,Ui=!!Object.getOwnPropertySymbols&&!j$(function(){var e=Symbol("symbol detection");return!H$(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hm&&Hm<41}),W$=Ui,Wm=W$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",G$=Re,z$=Hi,Gm=Je,U$=No,K$=Ui,q$=Wm,Ki=G$.Symbol,hc=z$("wks"),X$=q$?Ki.for||Ki:Ki&&Ki.withoutSetter||U$,Le=function(e){return Gm(hc,e)||(hc[e]=K$&&Gm(Ki,e)?Ki[e]:X$("Symbol."+e)),hc[e]},Q$=Le,Z$=Q$("toStringTag"),zm={};zm[Z$]="z";var fc=String(zm)==="[object z]",pc=typeof document=="object"&&document.all,J$=typeof pc>"u"&&pc!==void 0,Um={all:pc,IS_HTMLDDA:J$},Km=Um,eD=Km.all,ze=Km.IS_HTMLDDA?function(e){return typeof e=="function"||e===eD}:function(e){return typeof e=="function"},qm=Ee,tD=qm({}.toString),rD=qm("".slice),zr=function(e){return rD(tD(e),8,-1)},nD=fc,iD=ze,Oo=zr,aD=Le,sD=aD("toStringTag"),oD=Object,lD=Oo(function(){return arguments}())==="Arguments",dD=function(e,t){try{return e[t]}catch{}},Ur=nD?Oo:function(e){var t,r,a;return e===void 0?"Undefined":e===null?"Null":typeof(r=dD(t=oD(e),sD))=="string"?r:lD?Oo(t):(a=Oo(t))==="Object"&&iD(t.callee)?"Arguments":a},cD=Ur,uD=String,dr=function(e){if(cD(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return uD(e)},mc=Ee,hD=es,fD=dr,pD=Gi,mD=mc("".charAt),Xm=mc("".charCodeAt),vD=mc("".slice),gD=function(e){return function(t,r){var a=fD(pD(t)),n=hD(r),s=a.length,o,l;return n<0||n>=s?e?"":void 0:(o=Xm(a,n),o<55296||o>56319||n+1===s||(l=Xm(a,n+1))<56320||l>57343?e?mD(a,n):o:e?vD(a,n,n+2):(o-55296<<10)+(l-56320)+65536)}},yD={charAt:gD(!0)},_D=Re,bD=ze,Qm=_D.WeakMap,wD=bD(Qm)&&/native code/.test(String(Qm)),Zm=ze,Jm=Um,ED=Jm.all,lt=Jm.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Zm(e)||e===ED}:function(e){return typeof e=="object"?e!==null:Zm(e)},SD=me,rt=!SD(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Rt={},kD=Re,ev=lt,vc=kD.document,xD=ev(vc)&&ev(vc.createElement),gc=function(e){return xD?vc.createElement(e):{}},TD=rt,$D=me,DD=gc,tv=!TD&&!$D(function(){return Object.defineProperty(DD("div"),"a",{get:function(){return 7}}).a!==7}),ND=rt,CD=me,rv=ND&&CD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),OD=lt,AD=String,ID=TypeError,Xt=function(e){if(OD(e))return e;throw new ID(AD(e)+" is not an object")},PD=Ja,Ao=Function.prototype.call,dt=PD?Ao.bind(Ao):function(){return Ao.apply(Ao,arguments)},Se={},yc=Se,_c=Re,MD=ze,nv=function(e){return MD(e)?e:void 0},kt=function(e,t){return arguments.length<2?nv(yc[e])||nv(_c[e]):yc[e]&&yc[e][t]||_c[e]&&_c[e][t]},RD=Ee,Te=RD({}.isPrototypeOf),LD=kt,VD=ze,FD=Te,YD=Wm,jD=Object,ts=YD?function(e){return typeof e=="symbol"}:function(e){var t=LD("Symbol");return VD(t)&&FD(t.prototype,jD(e))},BD=String,qi=function(e){try{return BD(e)}catch{return"Object"}},HD=ze,WD=qi,GD=TypeError,Lt=function(e){if(HD(e))return e;throw new GD(WD(e)+" is not a function")},zD=Lt,UD=Wi,bc=function(e,t){var r=e[t];return UD(r)?void 0:zD(r)},wc=dt,Ec=ze,Sc=lt,KD=TypeError,qD=function(e,t){var r,a;if(t==="string"&&Ec(r=e.toString)&&!Sc(a=wc(r,e))||Ec(r=e.valueOf)&&!Sc(a=wc(r,e))||t!=="string"&&Ec(r=e.toString)&&!Sc(a=wc(r,e)))return a;throw new KD("Can't convert object to primitive value")},XD=dt,iv=lt,av=ts,QD=bc,ZD=qD,JD=Le,eN=TypeError,tN=JD("toPrimitive"),rN=function(e,t){if(!iv(e)||av(e))return e;var r=QD(e,tN),a;if(r){if(t===void 0&&(t="default"),a=XD(r,e,t),!iv(a)||av(a))return a;throw new eN("Can't convert object to primitive value")}return t===void 0&&(t="number"),ZD(e,t)},nN=rN,iN=ts,Io=function(e){var t=nN(e,"string");return iN(t)?t:t+""},aN=rt,sN=tv,oN=rv,Po=Xt,sv=Io,lN=TypeError,kc=Object.defineProperty,dN=Object.getOwnPropertyDescriptor,xc="enumerable",Tc="configurable",$c="writable";Rt.f=aN?oN?function(t,r,a){if(Po(t),r=sv(r),Po(a),typeof t=="function"&&r==="prototype"&&"value"in a&&$c in a&&!a[$c]){var n=dN(t,r);n&&n[$c]&&(t[r]=a.value,a={configurable:Tc in a?a[Tc]:n[Tc],enumerable:xc in a?a[xc]:n[xc],writable:!1})}return kc(t,r,a)}:kc:function(t,r,a){if(Po(t),r=sv(r),Po(a),sN)try{return kc(t,r,a)}catch{}if("get"in a||"set"in a)throw new lN("Accessors not supported");return"value"in a&&(t[r]=a.value),t};var Xn=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},cN=rt,uN=Rt,hN=Xn,Kr=cN?function(e,t,r){return uN.f(e,t,hN(1,r))}:function(e,t,r){return e[t]=r,e},fN=Hi,pN=No,ov=fN("keys"),Mo=function(e){return ov[e]||(ov[e]=pN(e))},rs={},mN=wD,lv=Re,vN=lt,gN=Kr,Dc=Je,Nc=cc,yN=Mo,_N=rs,dv="Object already initialized",Cc=lv.TypeError,bN=lv.WeakMap,Ro,ns,Lo,wN=function(e){return Lo(e)?ns(e):Ro(e,{})},EN=function(e){return function(t){var r;if(!vN(t)||(r=ns(t)).type!==e)throw new Cc("Incompatible receiver, "+e+" required");return r}};if(mN||Nc.state){var Pr=Nc.state||(Nc.state=new bN);Pr.get=Pr.get,Pr.has=Pr.has,Pr.set=Pr.set,Ro=function(e,t){if(Pr.has(e))throw new Cc(dv);return t.facade=e,Pr.set(e,t),t},ns=function(e){return Pr.get(e)||{}},Lo=function(e){return Pr.has(e)}}else{var Xi=yN("state");_N[Xi]=!0,Ro=function(e,t){if(Dc(e,Xi))throw new Cc(dv);return t.facade=e,gN(e,Xi,t),t},ns=function(e){return Dc(e,Xi)?e[Xi]:{}},Lo=function(e){return Dc(e,Xi)}}var Qi={set:Ro,get:ns,has:Lo,enforce:wN,getterFor:EN},SN=Ja,cv=Function.prototype,uv=cv.apply,hv=cv.call,Zi=typeof Reflect=="object"&&Reflect.apply||(SN?hv.bind(uv):function(){return hv.apply(uv,arguments)}),kN=zr,xN=Ee,Oc=function(e){if(kN(e)==="Function")return xN(e)},Qn={},is={},fv={}.propertyIsEnumerable,pv=Object.getOwnPropertyDescriptor,TN=pv&&!fv.call({1:2},1);is.f=TN?function(t){var r=pv(this,t);return!!r&&r.enumerable}:fv;var $N=Ee,DN=me,NN=zr,Ac=Object,CN=$N("".split),Vo=DN(function(){return!Ac("z").propertyIsEnumerable(0)})?function(e){return NN(e)==="String"?CN(e,""):Ac(e)}:Ac,ON=Vo,AN=Gi,yr=function(e){return ON(AN(e))},IN=rt,PN=dt,MN=is,RN=Xn,LN=yr,VN=Io,FN=Je,YN=tv,mv=Object.getOwnPropertyDescriptor;Qn.f=IN?mv:function(t,r){if(t=LN(t),r=VN(r),YN)try{return mv(t,r)}catch{}if(FN(t,r))return RN(!PN(MN.f,t,r),t[r])};var jN=me,BN=ze,HN=/#|\.prototype\./,as=function(e,t){var r=GN[WN(e)];return r===UN?!0:r===zN?!1:BN(t)?jN(t):!!t},WN=as.normalize=function(e){return String(e).replace(HN,".").toLowerCase()},GN=as.data={},zN=as.NATIVE="N",UN=as.POLYFILL="P",vv=as,gv=Oc,KN=Lt,qN=Ja,XN=gv(gv.bind),kn=function(e,t){return KN(e),t===void 0?e:qN?XN(e,t):function(){return e.apply(t,arguments)}},Fo=Re,QN=Zi,ZN=Oc,JN=ze,eC=Qn.f,tC=vv,Ji=Se,rC=kn,ea=Kr,yv=Je,nC=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 QN(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?Fo:n?Fo[r]:(Fo[r]||{}).prototype,l=a?Ji:Ji[r]||ea(Ji,r,{})[r],d=l.prototype,c,f,m,v,g,b,S,w,k;for(v in t)c=tC(a?v:r+(n?".":"#")+v,e.forced),f=!c&&o&&yv(o,v),b=l[v],f&&(e.dontCallGetSet?(k=eC(o,v),S=k&&k.value):S=o[v]),g=f&&S?S:t[v],!(f&&typeof b==typeof g)&&(e.bind&&f?w=rC(g,Fo):e.wrap&&f?w=nC(g):s&&JN(g)?w=ZN(g):w=g,(e.sham||g&&g.sham||b&&b.sham)&&ea(w,"sham",!0),ea(l,v,w),s&&(m=r+"Prototype",yv(Ji,m)||ea(Ji,m,{}),ea(Ji[m],v,g),e.real&&d&&(c||!d[v])&&ea(d,v,g)))},Ic=rt,iC=Je,_v=Function.prototype,aC=Ic&&Object.getOwnPropertyDescriptor,bv=iC(_v,"name"),sC=bv&&(function(){}).name==="something";bv&&(!Ic||Ic&&aC(_v,"name").configurable);var oC={PROPER:sC},Yo={},lC=es,dC=Math.max,cC=Math.min,ss=function(e,t){var r=lC(e);return r<0?dC(r+t,0):cC(r,t)},uC=es,hC=Math.min,fC=function(e){return e>0?hC(uC(e),9007199254740991):0},pC=fC,Vt=function(e){return pC(e.length)},mC=yr,vC=ss,gC=Vt,wv=function(e){return function(t,r,a){var n=mC(t),s=gC(n),o=vC(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}},Pc={includes:wv(!0),indexOf:wv(!1)},yC=Ee,Mc=Je,_C=yr,bC=Pc.indexOf,wC=rs,Ev=yC([].push),Sv=function(e,t){var r=_C(e),a=0,n=[],s;for(s in r)!Mc(wC,s)&&Mc(r,s)&&Ev(n,s);for(;t.length>a;)Mc(r,s=t[a++])&&(~bC(n,s)||Ev(n,s));return n},Rc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],EC=Sv,SC=Rc,os=Object.keys||function(t){return EC(t,SC)},kC=rt,xC=rv,TC=Rt,$C=Xt,DC=yr,NC=os;Yo.f=kC&&!xC?Object.defineProperties:function(t,r){$C(t);for(var a=DC(r),n=NC(r),s=n.length,o=0,l;s>o;)TC.f(t,l=n[o++],a[l]);return t};var CC=kt,kv=CC("document","documentElement"),OC=Xt,AC=Yo,xv=Rc,IC=rs,PC=kv,MC=gc,RC=Mo,Tv=">",$v="<",Lc="prototype",Vc="script",Dv=RC("IE_PROTO"),Fc=function(){},Nv=function(e){return $v+Vc+Tv+e+$v+"/"+Vc+Tv},Cv=function(e){e.write(Nv("")),e.close();var t=e.parentWindow.Object;return e=null,t},LC=function(){var e=MC("iframe"),t="java"+Vc+":",r;return e.style.display="none",PC.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Nv("document.F=Object")),r.close(),r.F},jo,Bo=function(){try{jo=new ActiveXObject("htmlfile")}catch{}Bo=typeof document<"u"?document.domain&&jo?Cv(jo):LC():Cv(jo);for(var e=xv.length;e--;)delete Bo[Lc][xv[e]];return Bo()};IC[Dv]=!0;var Zn=Object.create||function(t,r){var a;return t!==null?(Fc[Lc]=OC(t),a=new Fc,Fc[Lc]=null,a[Dv]=t):a=Bo(),r===void 0?a:AC.f(a,r)},VC=me,Ov=!VC(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),FC=Je,YC=ze,jC=St,BC=Mo,HC=Ov,Av=BC("IE_PROTO"),Yc=Object,WC=Yc.prototype,ls=HC?Yc.getPrototypeOf:function(e){var t=jC(e);if(FC(t,Av))return t[Av];var r=t.constructor;return YC(r)&&t instanceof r?r.prototype:t instanceof Yc?WC:null},GC=Kr,ta=function(e,t,r,a){return a&&a.enumerable?e[t]=r:GC(e,t,r),e},zC=me,UC=ze,KC=lt,qC=Zn,Iv=ls,XC=ta,QC=Le,jc=QC("iterator"),Pv=!1,qr,Bc,Hc;[].keys&&(Hc=[].keys(),"next"in Hc?(Bc=Iv(Iv(Hc)),Bc!==Object.prototype&&(qr=Bc)):Pv=!0);var ZC=!KC(qr)||zC(function(){var e={};return qr[jc].call(e)!==e});ZC?qr={}:qr=qC(qr),UC(qr[jc])||XC(qr,jc,function(){return this});var Mv={IteratorPrototype:qr,BUGGY_SAFARI_ITERATORS:Pv},JC=fc,eO=Ur,tO=JC?{}.toString:function(){return"[object "+eO(this)+"]"},rO=fc,nO=Rt.f,iO=Kr,aO=Je,sO=tO,oO=Le,Rv=oO("toStringTag"),Jn=function(e,t,r,a){if(e){var n=r?e:e.prototype;aO(n,Rv)||nO(n,Rv,{configurable:!0,value:t}),a&&!rO&&iO(n,"toString",sO)}},ra={},lO=Mv.IteratorPrototype,dO=Zn,cO=Xn,uO=Jn,hO=ra,fO=function(){return this},pO=function(e,t,r,a){var n=t+" Iterator";return e.prototype=dO(lO,{next:cO(+!a,r)}),uO(e,n,!1,!0),hO[n]=fO,e},mO=Ee,vO=Lt,gO=function(e,t,r){try{return mO(vO(Object.getOwnPropertyDescriptor(e,t)[r]))}catch{}},yO=ze,_O=String,bO=TypeError,wO=function(e){if(typeof e=="object"||yO(e))return e;throw new bO("Can't set "+_O(e)+" as a prototype")},EO=gO,SO=Xt,kO=wO,Lv=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=EO(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch{}return function(n,s){return SO(n),kO(s),e?r(n,s):n.__proto__=s,n}}():void 0),xO=X,TO=dt,$O=oC,DO=pO,NO=ls,CO=Jn,Vv=ta,OO=Le,Fv=ra,AO=Mv,IO=$O.PROPER,Ho=AO.BUGGY_SAFARI_ITERATORS,Wc=OO("iterator"),Yv="keys",Wo="values",jv="entries",PO=function(){return this},Gc=function(e,t,r,a,n,s,o){DO(r,t,a);var l=function(k){if(k===n&&v)return v;if(!Ho&&k&&k in f)return f[k];switch(k){case Yv:return function(){return new r(this,k)};case Wo:return function(){return new r(this,k)};case jv:return function(){return new r(this,k)}}return function(){return new r(this)}},d=t+" Iterator",c=!1,f=e.prototype,m=f[Wc]||f["@@iterator"]||n&&f[n],v=!Ho&&m||l(n),g=t==="Array"&&f.entries||m,b,S,w;if(g&&(b=NO(g.call(new e)),b!==Object.prototype&&b.next&&(CO(b,d,!0,!0),Fv[d]=PO)),IO&&n===Wo&&m&&m.name!==Wo&&(c=!0,v=function(){return TO(m,this)}),n)if(S={values:l(Wo),keys:s?v:l(Yv),entries:l(jv)},o)for(w in S)(Ho||c||!(w in f))&&Vv(f,w,S[w]);else xO({target:t,proto:!0,forced:Ho||c},S);return o&&f[Wc]!==v&&Vv(f,Wc,v,{}),Fv[t]=v,S},zc=function(e,t){return{value:e,done:t}},MO=yD.charAt,RO=dr,Bv=Qi,LO=Gc,Hv=zc,Wv="String Iterator",VO=Bv.set,FO=Bv.getterFor(Wv);LO(String,"String",function(e){VO(this,{type:Wv,string:RO(e),index:0})},function(){var t=FO(this),r=t.string,a=t.index,n;return a>=r.length?Hv(void 0,!0):(n=MO(r,a),t.index+=n.length,Hv(n,!1))});var YO=dt,Gv=Xt,jO=bc,zv=function(e,t,r){var a,n;Gv(e);try{if(a=jO(e,"return"),!a){if(t==="throw")throw r;return r}a=YO(a,e)}catch(s){n=!0,a=s}if(t==="throw")throw r;if(n)throw a;return Gv(a),r},BO=Xt,HO=zv,WO=function(e,t,r,a){try{return a?t(BO(r)[0],r[1]):t(r)}catch(n){HO(e,"throw",n)}},GO=Le,zO=ra,UO=GO("iterator"),KO=Array.prototype,Uv=function(e){return e!==void 0&&(zO.Array===e||KO[UO]===e)},qO=Ee,XO=ze,Uc=cc,QO=qO(Function.toString);XO(Uc.inspectSource)||(Uc.inspectSource=function(e){return QO(e)});var Kv=Uc.inspectSource,ZO=Ee,JO=me,qv=ze,eA=Ur,tA=kt,rA=Kv,Xv=function(){},nA=[],Qv=tA("Reflect","construct"),Kc=/^\s*(?:class|function)\b/,iA=ZO(Kc.exec),aA=!Kc.test(Xv),ds=function(t){if(!qv(t))return!1;try{return Qv(Xv,nA,t),!0}catch{return!1}},Zv=function(t){if(!qv(t))return!1;switch(eA(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return aA||!!iA(Kc,rA(t))}catch{return!0}};Zv.sham=!0;var Go=!Qv||JO(function(){var e;return ds(ds.call)||!ds(Object)||!ds(function(){e=!0})||e})?Zv:ds,sA=Io,oA=Rt,lA=Xn,na=function(e,t,r){var a=sA(t);a in e?oA.f(e,a,lA(0,r)):e[a]=r},dA=Ur,Jv=bc,cA=Wi,uA=ra,hA=Le,fA=hA("iterator"),zo=function(e){if(!cA(e))return Jv(e,fA)||Jv(e,"@@iterator")||uA[dA(e)]},pA=dt,mA=Lt,vA=Xt,gA=qi,yA=zo,_A=TypeError,qc=function(e,t){var r=arguments.length<2?yA(e):t;if(mA(r))return vA(pA(r,e));throw new _A(gA(e)+" is not iterable")},bA=kn,wA=dt,EA=St,SA=WO,kA=Uv,xA=Go,TA=Vt,eg=na,$A=qc,DA=zo,tg=Array,NA=function(t){var r=EA(t),a=xA(this),n=arguments.length,s=n>1?arguments[1]:void 0,o=s!==void 0;o&&(s=bA(s,n>2?arguments[2]:void 0));var l=DA(r),d=0,c,f,m,v,g,b;if(l&&!(this===tg&&kA(l)))for(v=$A(r,l),g=v.next,f=a?new this:[];!(m=wA(g,v)).done;d++)b=o?SA(v,s,[m.value,d],!0):m.value,eg(f,d,b);else for(c=TA(r),f=a?new this(c):tg(c);c>d;d++)b=o?s(r[d],d):r[d],eg(f,d,b);return f.length=d,f},CA=Le,rg=CA("iterator"),ng=!1;try{var OA=0,ig={next:function(){return{done:!!OA++}},return:function(){ng=!0}};ig[rg]=function(){return this},Array.from(ig,function(){throw 2})}catch{}var ag=function(e,t){try{if(!t&&!ng)return!1}catch{return!1}var r=!1;try{var a={};a[rg]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch{}return r},AA=X,IA=NA,PA=ag,MA=!PA(function(e){Array.from(e)});AA({target:"Array",stat:!0,forced:MA},{from:IA});var RA=Se,LA=RA.Array.from,VA=LA,sg=VA,FA=sg,xn=U(FA),YA=yr,og=ra,lg=Qi;Rt.f;var jA=Gc,Uo=zc,dg="Array Iterator",BA=lg.set,HA=lg.getterFor(dg);jA(Array,"Array",function(e,t){BA(this,{type:dg,target:YA(e),index:0,kind:t})},function(){var e=HA(this),t=e.target,r=e.kind,a=e.index++;if(!t||a>=t.length)return e.target=void 0,Uo(void 0,!0);switch(r){case"keys":return Uo(a,!1);case"values":return Uo(t[a],!1)}return Uo([a,t[a]],!1)},"values"),og.Arguments=og.Array;var WA=zo,GA=WA,zA={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},UA=zA,KA=Re,qA=Ur,XA=Kr,cg=ra,QA=Le,ug=QA("toStringTag");for(var Xc in UA){var hg=KA[Xc],Qc=hg&&hg.prototype;Qc&&qA(Qc)!==ug&&XA(Qc,ug,Xc),cg[Xc]=cg.Array}var ZA=GA,JA=ZA,eI=JA,tI=eI,rI=tI,nI=rI,fg=nI,pg=U(fg),iI=fg,Tn=U(iI);function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var mg={exports:{}},aI=X,sI=rt,vg=Rt.f;aI({target:"Object",stat:!0,forced:Object.defineProperty!==vg,sham:!sI},{defineProperty:vg});var oI=Se,gg=oI.Object,lI=mg.exports=function(t,r,a){return gg.defineProperty(t,r,a)};gg.defineProperty.sham&&(lI.sham=!0);var dI=mg.exports,cI=dI,yg=cI,uI=yg,hI=uI,fI=hI,pI=fI,_g=pI,Ko=U(_g),mI=zr,$n=Array.isArray||function(t){return mI(t)==="Array"},vI=TypeError,gI=9007199254740991,qo=function(e){if(e>gI)throw vI("Maximum allowed index exceeded");return e},bg=$n,yI=Go,_I=lt,bI=Le,wI=bI("species"),wg=Array,EI=function(e){var t;return bg(e)&&(t=e.constructor,yI(t)&&(t===wg||bg(t.prototype))?t=void 0:_I(t)&&(t=t[wI],t===null&&(t=void 0))),t===void 0?wg:t},SI=EI,Xo=function(e,t){return new(SI(e))(t===0?0:t)},kI=me,xI=Le,TI=zi,$I=xI("species"),cs=function(e){return TI>=51||!kI(function(){var t=[],r=t.constructor={};return r[$I]=function(){return{foo:1}},t[e](Boolean).foo!==1})},DI=X,NI=me,CI=$n,OI=lt,AI=St,II=Vt,Eg=qo,Sg=na,PI=Xo,MI=cs,RI=Le,LI=zi,kg=RI("isConcatSpreadable"),VI=LI>=51||!NI(function(){var e=[];return e[kg]=!1,e.concat()[0]!==e}),FI=function(e){if(!OI(e))return!1;var t=e[kg];return t!==void 0?!!t:CI(e)},YI=!VI||!MI("concat");DI({target:"Array",proto:!0,forced:YI},{concat:function(t){var r=AI(this),a=PI(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],FI(c))for(d=II(c),Eg(n+d),o=0;o<d;o++,n++)o in c&&Sg(a,n,c[o]);else Eg(n+1),Sg(a,n++,c);return a.length=n,a}});var us={},jI=Sv,BI=Rc,HI=BI.concat("length","prototype");us.f=Object.getOwnPropertyNames||function(t){return jI(t,HI)};var Zc={},xg=ss,WI=Vt,GI=na,zI=Array,UI=Math.max,Tg=function(e,t,r){for(var a=WI(e),n=xg(t,a),s=xg(r===void 0?a:r,a),o=zI(UI(s-n,0)),l=0;n<s;n++,l++)GI(o,l,e[n]);return o.length=l,o},KI=zr,qI=yr,$g=us.f,XI=Tg,Dg=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],QI=function(e){try{return $g(e)}catch{return XI(Dg)}};Zc.f=function(t){return Dg&&KI(t)==="Window"?QI(t):$g(qI(t))};var hs={};hs.f=Object.getOwnPropertySymbols;var ZI=Rt,Jc=function(e,t,r){return ZI.f(e,t,r)},fs={},JI=Le;fs.f=JI;var Ng=Se,eP=Je,tP=fs,rP=Rt.f,Ue=function(e){var t=Ng.Symbol||(Ng.Symbol={});eP(t,e)||rP(t,e,{value:tP.f(e)})},nP=dt,iP=kt,aP=Le,sP=ta,Cg=function(){var e=iP("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=aP("toPrimitive");t&&!t[a]&&sP(t,a,function(n){return nP(r,this)},{})},oP=kn,lP=Ee,dP=Vo,cP=St,uP=Vt,hP=Xo,Og=lP([].push),ei=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,m){for(var v=cP(d),g=dP(v),b=oP(c,f),S=uP(g),w=0,k=m||hP,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,v),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:Og(T,D)}else switch(e){case 4:return!1;case 7:Og(T,D)}return s?-1:a||n?n:T}},Xr={forEach:ei(0),map:ei(1),filter:ei(2),some:ei(3),every:ei(4),find:ei(5),findIndex:ei(6)},Qo=X,Zo=Re,eu=dt,fP=Ee,ia=rt,aa=Ui,pP=me,ct=Je,mP=Te,tu=Xt,Jo=yr,ru=Io,vP=dr,nu=Xn,ps=Zn,Ag=os,gP=us,Ig=Zc,yP=hs,Pg=Qn,Mg=Rt,_P=Yo,Rg=is,Lg=ta,bP=Jc,iu=Hi,wP=Mo,Vg=rs,Fg=No,EP=Le,SP=fs,kP=Ue,xP=Cg,TP=Jn,Yg=Qi,el=Xr.forEach,Ft=wP("hidden"),tl="Symbol",ms="prototype",$P=Yg.set,jg=Yg.getterFor(tl),_r=Object[ms],ti=Zo.Symbol,vs=ti&&ti[ms],DP=Zo.RangeError,NP=Zo.TypeError,au=Zo.QObject,Bg=Pg.f,ri=Mg.f,Hg=Ig.f,CP=Rg.f,Wg=fP([].push),Qr=iu("symbols"),gs=iu("op-symbols"),OP=iu("wks"),su=!au||!au[ms]||!au[ms].findChild,Gg=function(e,t,r){var a=Bg(_r,t);a&&delete _r[t],ri(e,t,r),a&&e!==_r&&ri(_r,t,a)},ou=ia&&pP(function(){return ps(ri({},"a",{get:function(){return ri(this,"a",{value:7}).a}})).a!==7})?Gg:ri,lu=function(e,t){var r=Qr[e]=ps(vs);return $P(r,{type:tl,tag:e,description:t}),ia||(r.description=t),r},rl=function(t,r,a){t===_r&&rl(gs,r,a),tu(t);var n=ru(r);return tu(a),ct(Qr,n)?(a.enumerable?(ct(t,Ft)&&t[Ft][n]&&(t[Ft][n]=!1),a=ps(a,{enumerable:nu(0,!1)})):(ct(t,Ft)||ri(t,Ft,nu(1,{})),t[Ft][n]=!0),ou(t,n,a)):ri(t,n,a)},du=function(t,r){tu(t);var a=Jo(r),n=Ag(a).concat(qg(a));return el(n,function(s){(!ia||eu(zg,a,s))&&rl(t,s,a[s])}),t},AP=function(t,r){return r===void 0?ps(t):du(ps(t),r)},zg=function(t){var r=ru(t),a=eu(CP,this,r);return this===_r&&ct(Qr,r)&&!ct(gs,r)?!1:a||!ct(this,r)||!ct(Qr,r)||ct(this,Ft)&&this[Ft][r]?a:!0},Ug=function(t,r){var a=Jo(t),n=ru(r);if(!(a===_r&&ct(Qr,n)&&!ct(gs,n))){var s=Bg(a,n);return s&&ct(Qr,n)&&!(ct(a,Ft)&&a[Ft][n])&&(s.enumerable=!0),s}},Kg=function(t){var r=Hg(Jo(t)),a=[];return el(r,function(n){!ct(Qr,n)&&!ct(Vg,n)&&Wg(a,n)}),a},qg=function(e){var t=e===_r,r=Hg(t?gs:Jo(e)),a=[];return el(r,function(n){ct(Qr,n)&&(!t||ct(_r,n))&&Wg(a,Qr[n])}),a};aa||(ti=function(){if(mP(vs,this))throw new NP("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:vP(arguments[0]),r=Fg(t),a=function(n){this===_r&&eu(a,gs,n),ct(this,Ft)&&ct(this[Ft],r)&&(this[Ft][r]=!1);var s=nu(1,n);try{ou(this,r,s)}catch(o){if(!(o instanceof DP))throw o;Gg(this,r,s)}};return ia&&su&&ou(_r,r,{configurable:!0,set:a}),lu(r,t)},vs=ti[ms],Lg(vs,"toString",function(){return jg(this).tag}),Lg(ti,"withoutSetter",function(e){return lu(Fg(e),e)}),Rg.f=zg,Mg.f=rl,_P.f=du,Pg.f=Ug,gP.f=Ig.f=Kg,yP.f=qg,SP.f=function(e){return lu(EP(e),e)},ia&&bP(vs,"description",{configurable:!0,get:function(){return jg(this).description}})),Qo({global:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:ti}),el(Ag(OP),function(e){kP(e)}),Qo({target:tl,stat:!0,forced:!aa},{useSetter:function(){su=!0},useSimple:function(){su=!1}}),Qo({target:"Object",stat:!0,forced:!aa,sham:!ia},{create:AP,defineProperty:rl,defineProperties:du,getOwnPropertyDescriptor:Ug}),Qo({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:Kg}),xP(),TP(ti,tl),Vg[Ft]=!0;var IP=Ui,Xg=IP&&!!Symbol.for&&!!Symbol.keyFor,PP=X,MP=kt,RP=Je,LP=dr,Qg=Hi,VP=Xg,cu=Qg("string-to-symbol-registry"),FP=Qg("symbol-to-string-registry");PP({target:"Symbol",stat:!0,forced:!VP},{for:function(e){var t=LP(e);if(RP(cu,t))return cu[t];var r=MP("Symbol")(t);return cu[t]=r,FP[r]=t,r}});var YP=X,jP=Je,BP=ts,HP=qi,WP=Hi,GP=Xg,Zg=WP("symbol-to-string-registry");YP({target:"Symbol",stat:!0,forced:!GP},{keyFor:function(t){if(!BP(t))throw new TypeError(HP(t)+" is not a symbol");if(jP(Zg,t))return Zg[t]}});var zP=Ee,ys=zP([].slice),UP=Ee,Jg=$n,KP=ze,ey=zr,qP=dr,ty=UP([].push),XP=function(e){if(KP(e))return e;if(Jg(e)){for(var t=e.length,r=[],a=0;a<t;a++){var n=e[a];typeof n=="string"?ty(r,n):(typeof n=="number"||ey(n)==="Number"||ey(n)==="String")&&ty(r,qP(n))}var s=r.length,o=!0;return function(l,d){if(o)return o=!1,d;if(Jg(this))return d;for(var c=0;c<s;c++)if(r[c]===l)return d}}},QP=X,ry=kt,ny=Zi,ZP=dt,_s=Ee,iy=me,ay=ze,sy=ts,oy=ys,JP=XP,eM=Ui,tM=String,Dn=ry("JSON","stringify"),nl=_s(/./.exec),ly=_s("".charAt),rM=_s("".charCodeAt),nM=_s("".replace),iM=_s(1 .toString),aM=/[\uD800-\uDFFF]/g,dy=/^[\uD800-\uDBFF]$/,cy=/^[\uDC00-\uDFFF]$/,uy=!eM||iy(function(){var e=ry("Symbol")("stringify detection");return Dn([e])!=="[null]"||Dn({a:e})!=="{}"||Dn(Object(e))!=="{}"}),hy=iy(function(){return Dn("\uDF06\uD834")!=='"\\udf06\\ud834"'||Dn("\uDEAD")!=='"\\udead"'}),sM=function(e,t){var r=oy(arguments),a=JP(t);if(!(!ay(a)&&(e===void 0||sy(e))))return r[1]=function(n,s){if(ay(a)&&(s=ZP(a,this,tM(n),s)),!sy(s))return s},ny(Dn,null,r)},oM=function(e,t,r){var a=ly(r,t-1),n=ly(r,t+1);return nl(dy,e)&&!nl(cy,n)||nl(cy,e)&&!nl(dy,a)?"\\u"+iM(rM(e,0),16):e};Dn&&QP({target:"JSON",stat:!0,forced:uy||hy},{stringify:function(t,r,a){var n=oy(arguments),s=ny(uy?sM:Dn,null,n);return hy&&typeof s=="string"?nM(s,aM,oM):s}});var lM=X,dM=Ui,cM=me,fy=hs,uM=St,hM=!dM||cM(function(){fy.f(1)});lM({target:"Object",stat:!0,forced:hM},{getOwnPropertySymbols:function(t){var r=fy.f;return r?r(uM(t)):[]}});var fM=Ue;fM("asyncIterator");var pM=Ue;pM("hasInstance");var mM=Ue;mM("isConcatSpreadable");var vM=Ue;vM("iterator");var gM=Ue;gM("match");var yM=Ue;yM("matchAll");var _M=Ue;_M("replace");var bM=Ue;bM("search");var wM=Ue;wM("species");var EM=Ue;EM("split");var SM=Ue,kM=Cg;SM("toPrimitive"),kM();var xM=kt,TM=Ue,$M=Jn;TM("toStringTag"),$M(xM("Symbol"),"Symbol");var DM=Ue;DM("unscopables");var NM=Re,CM=Jn;CM(NM.JSON,"JSON",!0);var OM=Se,AM=OM.Symbol,IM=AM,py=IM,PM=Le,MM=Rt.f,my=PM("metadata"),vy=Function.prototype;vy[my]===void 0&&MM(vy,my,{value:null});var RM=Ue;RM("asyncDispose");var LM=Ue;LM("dispose");var VM=Ue;VM("metadata");var FM=py,YM=FM,jM=kt,BM=Ee,uu=jM("Symbol"),HM=uu.keyFor,WM=BM(uu.prototype.valueOf),gy=uu.isRegisteredSymbol||function(t){try{return HM(WM(t))!==void 0}catch{return!1}},GM=X,zM=gy;GM({target:"Symbol",stat:!0},{isRegisteredSymbol:zM});for(var UM=Hi,yy=kt,KM=Ee,qM=ts,XM=Le,il=yy("Symbol"),_y=il.isWellKnownSymbol,by=yy("Object","getOwnPropertyNames"),QM=KM(il.prototype.valueOf),wy=UM("wks"),hu=0,Ey=by(il),ZM=Ey.length;hu<ZM;hu++)try{var Sy=Ey[hu];qM(il[Sy])&&XM(Sy)}catch{}var ky=function(t){if(_y&&_y(t))return!0;try{for(var r=QM(t),a=0,n=by(wy),s=n.length;a<s;a++)if(wy[n[a]]==r)return!0}catch{}return!1},JM=X,e2=ky;JM({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:e2});var t2=Ue;t2("matcher");var r2=Ue;r2("observable");var n2=X,i2=gy;n2({target:"Symbol",stat:!0},{isRegistered:i2});var a2=X,s2=ky;a2({target:"Symbol",stat:!0,forced:!0},{isWellKnown:s2});var o2=Ue;o2("metadataKey");var l2=Ue;l2("patternMatch");var d2=Ue;d2("replaceAll");var c2=YM,u2=c2,fu=u2,sa=U(fu),h2=fs,f2=h2.f("iterator"),p2=f2,xy=p2,m2=xy,v2=m2,g2=v2,y2=g2,Ty=y2,_2=U(Ty);function ne(e){"@babel/helpers - typeof";return ne=typeof sa=="function"&&typeof _2=="symbol"?function(t){return typeof t}:function(t){return t&&typeof sa=="function"&&t.constructor===sa&&t!==sa.prototype?"symbol":typeof t},ne(e)}var b2=fs,w2=b2.f("toPrimitive"),E2=w2,S2=E2,k2=S2,x2=k2,T2=x2,$2=T2,D2=$2,N2=U(D2);function C2(e,t){if(ne(e)!=="object"||e===null)return e;var r=e[N2];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 $y(e){var t=C2(e,"string");return ne(t)==="symbol"?t:String(t)}function Dy(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),Ko(e,$y(a.key),a)}}function fe(e,t,r){return t&&Dy(e.prototype,t),r&&Dy(e,r),Ko(e,"prototype",{writable:!1}),e}var O2=X,A2=$n;O2({target:"Array",stat:!0},{isArray:A2});var I2=Se,P2=I2.Array.isArray,M2=P2,Ny=M2,R2=Ny,L2=R2,V2=L2,F2=V2,Y2=F2,Cy=U(Y2);function j2(e){if(Cy(e))return e}var B2=rt,H2=$n,W2=TypeError,G2=Object.getOwnPropertyDescriptor,z2=B2&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Oy=z2?function(e,t){if(H2(e)&&!G2(e,"length").writable)throw new W2("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},U2=X,K2=St,q2=Vt,X2=Oy,Q2=qo,Z2=me,J2=Z2(function(){return[].push.call({length:4294967296},1)!==4294967297}),eR=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},tR=J2||!eR();U2({target:"Array",proto:!0,forced:tR},{push:function(t){var r=K2(this),a=q2(r),n=arguments.length;Q2(a+n);for(var s=0;s<n;s++)r[a]=arguments[s],a++;return X2(r,a),a}});var rR=Se,Be=function(e){return rR[e+"Prototype"]},nR=Be,iR=nR("Array").push,aR=Te,sR=iR,pu=Array.prototype,oR=function(e){var t=e.push;return e===pu||aR(pu,e)&&t===pu.push?sR:t},lR=oR,dR=lR,cR=dR,uR=cR,hR=uR,fR=hR,Ay=fR,pR=U(Ay);function mR(e,t){var r=e==null?null:typeof sa<"u"&&pg(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)&&(pR(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 vR=X,Iy=$n,gR=Go,yR=lt,Py=ss,_R=Vt,bR=yr,wR=na,ER=Le,SR=cs,kR=ys,xR=SR("slice"),TR=ER("species"),mu=Array,$R=Math.max;vR({target:"Array",proto:!0,forced:!xR},{slice:function(t,r){var a=bR(this),n=_R(a),s=Py(t,n),o=Py(r===void 0?n:r,n),l,d,c;if(Iy(a)&&(l=a.constructor,gR(l)&&(l===mu||Iy(l.prototype))?l=void 0:yR(l)&&(l=l[TR],l===null&&(l=void 0)),l===mu||l===void 0))return kR(a,s,o);for(d=new(l===void 0?mu:l)($R(o-s,0)),c=0;s<o;s++,c++)s in a&&wR(d,c,a[s]);return d.length=c,d}});var DR=Be,NR=DR("Array").slice,CR=Te,OR=NR,vu=Array.prototype,AR=function(e){var t=e.slice;return e===vu||CR(vu,e)&&t===vu.slice?OR:t},IR=AR,My=IR,PR=My,MR=PR,RR=MR,LR=RR,Ry=LR,VR=U(Ry),FR=sg,YR=FR,jR=YR,BR=jR,HR=BR,Ly=U(HR);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 Vy(e,t){var r;if(e){if(typeof e=="string")return gu(e,t);var a=VR(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ly(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return gu(e,t)}}function WR(){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 p.apply(this,arguments)},p)}var H={};function W(u,p){a.deprecationHandler!=null&&a.deprecationHandler(u,p),H[u]||(I(p),H[u]=!0)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;function q(u){return typeof Function<"u"&&u instanceof Function||Object.prototype.toString.call(u)==="[object Function]"}function ue(u){var p,g;for(g in u)l(u,g)&&(p=u[g],q(p)?this[g]=p:this["_"+g]=p);this._config=u,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Re(u,p){var g=y({},u),_;for(_ in p)l(p,_)&&(o(u[_])&&o(p[_])?(g[_]={},y(g[_],u[_]),y(g[_],p[_])):p[_]!=null?g[_]=p[_]:delete g[_]);for(_ in u)l(u,_)&&!l(p,_)&&o(u[_])&&(g[_]=y({},g[_]));return g}function rt(u){u!=null&&this.set(u)}var Ye;Object.keys?Ye=Object.keys:Ye=function(u){var p,g=[];for(p in u)l(u,p)&&g.push(p);return g};var Pt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ir(u,p,g){var _=this._calendar[u]||this._calendar.sameElse;return q(_)?_.call(p,g):_}function ze(u,p,g){var _=""+Math.abs(u),k=p-_.length,$=u>=0;return($?g?"+":"":"-")+Math.pow(10,Math.max(0,k)).toString().substr(1)+_}var vr=/(\[[^\[]*\])|(\\)?([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,or=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,La={},Mr={};function K(u,p,g,_){var k=_;typeof _=="string"&&(k=function(){return this[_]()}),u&&(Mr[u]=k),p&&(Mr[p[0]]=function(){return ze(k.apply(this,arguments),p[1],p[2])}),g&&(Mr[g]=function(){return this.localeData().ordinal(k.apply(this,arguments),u)})}function Fa(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Ya(u){var p=u.match(vr),g,_;for(g=0,_=p.length;g<_;g++)Mr[p[g]]?p[g]=Mr[p[g]]:p[g]=Fa(p[g]);return function(k){var $="",O;for(O=0;O<_;O++)$+=q(p[O])?p[O].call(k,u):p[O];return $}}function oi(u,p){return u.isValid()?(p=B(p,u.localeData()),La[p]=La[p]||Ya(p),La[p](u)):u.localeData().invalidDate()}function B(u,p){var g=5;function _(k){return p.longDateFormat(k)||k}for(or.lastIndex=0;g>=0&&or.test(u);)u=u.replace(or,_),or.lastIndex=0,g-=1;return u}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(u){var p=this._longDateFormat[u],g=this._longDateFormat[u.toUpperCase()];return p||!g?p:(this._longDateFormat[u]=g.match(vr).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[u])}var X="Invalid date";function ie(){return this._invalidDate}var te="%d",je=/\d{1,2}/;function at(u){return this._ordinal.replace("%d",u)}var dt={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 Ar(u,p,g,_){var k=this._relativeTime[g];return q(k)?k(u,p,g,_):k.replace(/%d/i,u)}function gr(u,p){var g=this._relativeTime[u>0?"future":"past"];return q(g)?g(p):g.replace(/%s/i,p)}var jt={};function ct(u,p){var g=u.toLowerCase();jt[g]=jt[g+"s"]=jt[p]=u}function qt(u){return typeof u=="string"?jt[u]||jt[u.toLowerCase()]:void 0}function cu(u){var p={},g,_;for(_ in u)l(u,_)&&(g=qt(_),g&&(p[g]=u[_]));return p}var G_={};function ut(u,p){G_[u]=p}function tq(u){var p=[],g;for(g in u)l(u,g)&&p.push({unit:g,priority:G_[g]});return p.sort(function(_,k){return _.priority-k.priority}),p}function Eo(u){return u%4===0&&u%100!==0||u%400===0}function Kt(u){return u<0?Math.ceil(u)||0:Math.floor(u)}function le(u){var p=+u,g=0;return p!==0&&isFinite(p)&&(g=Kt(p)),g}function In(u,p){return function(g){return g!=null?(z_(this,u,g),a.updateOffset(this,p),this):So(this,u)}}function So(u,p){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+p]():NaN}function z_(u,p,g){u.isValid()&&!isNaN(g)&&(p==="FullYear"&&Eo(u.year())&&u.month()===1&&u.date()===29?(g=le(g),u._d["set"+(u._isUTC?"UTC":"")+p](g,u.month(),Po(g,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+p](g))}function rq(u){return u=qt(u),q(this[u])?this[u]():this}function iq(u,p){if(typeof u=="object"){u=cu(u);var g=tq(u),_,k=g.length;for(_=0;_<k;_++)this[g[_].unit](u[g[_].unit])}else if(u=qt(u),q(this[u]))return this[u](p);return this}var U_=/\d/,Bt=/\d\d/,X_=/\d{3}/,uu=/\d{4}/,$o=/[+-]?\d{6}/,Ie=/\d\d?/,q_=/\d\d\d\d?/,K_=/\d\d\d\d\d\d?/,Do=/\d{1,3}/,hu=/\d{1,4}/,To=/[+-]?\d{1,6}/,Mn=/\d+/,No=/[+-]?\d+/,nq=/Z|[+-]\d\d:?\d\d/gi,Co=/Z|[+-]\d\d(?::?\d\d)?/gi,aq=/[+-]?\d+(\.\d{1,3})?/,ja=/[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,Oo;Oo={};function z(u,p,g){Oo[u]=q(p)?p:function(_,k){return _&&g?g:p}}function sq(u,p){return l(Oo,u)?Oo[u](p._strict,p._locale):new RegExp(oq(u))}function oq(u){return Ht(u.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(p,g,_,k,$){return g||_||k||$}))}function Ht(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fu={};function $e(u,p){var g,_=p,k;for(typeof u=="string"&&(u=[u]),f(p)&&(_=function($,O){O[p]=le($)}),k=u.length,g=0;g<k;g++)fu[u[g]]=_}function Ba(u,p){$e(u,function(g,_,k,$){k._w=k._w||{},p(g,k._w,k,$)})}function lq(u,p,g){p!=null&&l(fu,u)&&fu[u](p,g._a,g,u)}var ht=0,Vr=1,yr=2,Qe=3,lr=4,Rr=5,Li=6,dq=7,cq=8;function uq(u,p){return(u%p+p)%p}var Ue;Array.prototype.indexOf?Ue=Array.prototype.indexOf:Ue=function(u){var p;for(p=0;p<this.length;++p)if(this[p]===u)return p;return-1};function Po(u,p){if(isNaN(u)||isNaN(p))return NaN;var g=uq(p,12);return u+=(p-g)/12,g===1?Eo(u)?29:28:31-g%7%2}K("M",["MM",2],"Mo",function(){return this.month()+1}),K("MMM",0,0,function(u){return this.localeData().monthsShort(this,u)}),K("MMMM",0,0,function(u){return this.localeData().months(this,u)}),ct("month","M"),ut("month",8),z("M",Ie),z("MM",Ie,Bt),z("MMM",function(u,p){return p.monthsShortRegex(u)}),z("MMMM",function(u,p){return p.monthsRegex(u)}),$e(["M","MM"],function(u,p){p[Vr]=le(u)-1}),$e(["MMM","MMMM"],function(u,p,g,_){var k=g._locale.monthsParse(u,_,g._strict);k!=null?p[Vr]=k:w(g).invalidMonth=u});var hq="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Z_="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Q_=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fq=ja,pq=ja;function mq(u,p){return u?s(this._months)?this._months[u.month()]:this._months[(this._months.isFormat||Q_).test(p)?"format":"standalone"][u.month()]:s(this._months)?this._months:this._months.standalone}function vq(u,p){return u?s(this._monthsShort)?this._monthsShort[u.month()]:this._monthsShort[Q_.test(p)?"format":"standalone"][u.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gq(u,p,g){var _,k,$,O=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 g?p==="MMM"?(k=Ue.call(this._shortMonthsParse,O),k!==-1?k:null):(k=Ue.call(this._longMonthsParse,O),k!==-1?k:null):p==="MMM"?(k=Ue.call(this._shortMonthsParse,O),k!==-1?k:(k=Ue.call(this._longMonthsParse,O),k!==-1?k:null)):(k=Ue.call(this._longMonthsParse,O),k!==-1?k:(k=Ue.call(this._shortMonthsParse,O),k!==-1?k:null))}function yq(u,p,g){var _,k,$;if(this._monthsParseExact)return gq.call(this,u,p,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&&p==="MMMM"&&this._longMonthsParse[_].test(u))return _;if(g&&p==="MMM"&&this._shortMonthsParse[_].test(u))return _;if(!g&&this._monthsParse[_].test(u))return _}}function J_(u,p){var g;if(!u.isValid())return u;if(typeof p=="string"){if(/^\d+$/.test(p))p=le(p);else if(p=u.localeData().monthsParse(p),!f(p))return u}return g=Math.min(u.date(),Po(u.year(),p)),u._d["set"+(u._isUTC?"UTC":"")+"Month"](p,g),u}function eb(u){return u!=null?(J_(this,u),a.updateOffset(this,!0),this):So(this,"Month")}function _q(){return Po(this.year(),this.month())}function bq(u){return this._monthsParseExact?(l(this,"_monthsRegex")||tb.call(this),u?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=fq),this._monthsShortStrictRegex&&u?this._monthsShortStrictRegex:this._monthsShortRegex)}function wq(u){return this._monthsParseExact?(l(this,"_monthsRegex")||tb.call(this),u?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=pq),this._monthsStrictRegex&&u?this._monthsStrictRegex:this._monthsRegex)}function tb(){function u(O,Q){return Q.length-O.length}var p=[],g=[],_=[],k,$;for(k=0;k<12;k++)$=b([2e3,k]),p.push(this.monthsShort($,"")),g.push(this.months($,"")),_.push(this.months($,"")),_.push(this.monthsShort($,""));for(p.sort(u),g.sort(u),_.sort(u),k=0;k<12;k++)p[k]=Ht(p[k]),g[k]=Ht(g[k]);for(k=0;k<24;k++)_[k]=Ht(_[k]);this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}K("Y",0,0,function(){var u=this.year();return u<=9999?ze(u,4):"+"+u}),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"),ct("year","y"),ut("year",1),z("Y",No),z("YY",Ie,Bt),z("YYYY",hu,uu),z("YYYYY",To,$o),z("YYYYYY",To,$o),$e(["YYYYY","YYYYYY"],ht),$e("YYYY",function(u,p){p[ht]=u.length===2?a.parseTwoDigitYear(u):le(u)}),$e("YY",function(u,p){p[ht]=a.parseTwoDigitYear(u)}),$e("Y",function(u,p){p[ht]=parseInt(u,10)});function Ha(u){return Eo(u)?366:365}a.parseTwoDigitYear=function(u){return le(u)+(le(u)>68?1900:2e3)};var rb=In("FullYear",!0);function kq(){return Eo(this.year())}function xq(u,p,g,_,k,$,O){var Q;return u<100&&u>=0?(Q=new Date(u+400,p,g,_,k,$,O),isFinite(Q.getFullYear())&&Q.setFullYear(u)):Q=new Date(u,p,g,_,k,$,O),Q}function Wa(u){var p,g;return u<100&&u>=0?(g=Array.prototype.slice.call(arguments),g[0]=u+400,p=new Date(Date.UTC.apply(null,g)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(u)):p=new Date(Date.UTC.apply(null,arguments)),p}function Io(u,p,g){var _=7+p-g,k=(7+Wa(u,0,_).getUTCDay()-p)%7;return-k+_-1}function ib(u,p,g,_,k){var $=(7+g-_)%7,O=Io(u,_,k),Q=1+7*(p-1)+$+O,oe,De;return Q<=0?(oe=u-1,De=Ha(oe)+Q):Q>Ha(u)?(oe=u+1,De=Q-Ha(u)):(oe=u,De=Q),{year:oe,dayOfYear:De}}function Ga(u,p,g){var _=Io(u.year(),p,g),k=Math.floor((u.dayOfYear()-_-1)/7)+1,$,O;return k<1?(O=u.year()-1,$=k+Lr(O,p,g)):k>Lr(u.year(),p,g)?($=k-Lr(u.year(),p,g),O=u.year()+1):(O=u.year(),$=k),{week:$,year:O}}function Lr(u,p,g){var _=Io(u,p,g),k=Io(u+1,p,g);return(Ha(u)-_+k)/7}K("w",["ww",2],"wo","week"),K("W",["WW",2],"Wo","isoWeek"),ct("week","w"),ct("isoWeek","W"),ut("week",5),ut("isoWeek",5),z("w",Ie),z("ww",Ie,Bt),z("W",Ie),z("WW",Ie,Bt),Ba(["w","ww","W","WW"],function(u,p,g,_){p[_.substr(0,1)]=le(u)});function Eq(u){return Ga(u,this._week.dow,this._week.doy).week}var Sq={dow:0,doy:6};function $q(){return this._week.dow}function Dq(){return this._week.doy}function Tq(u){var p=this.localeData().week(this);return u==null?p:this.add((u-p)*7,"d")}function Nq(u){var p=Ga(this,1,4).week;return u==null?p:this.add((u-p)*7,"d")}K("d",0,"do","day"),K("dd",0,0,function(u){return this.localeData().weekdaysMin(this,u)}),K("ddd",0,0,function(u){return this.localeData().weekdaysShort(this,u)}),K("dddd",0,0,function(u){return this.localeData().weekdays(this,u)}),K("e",0,0,"weekday"),K("E",0,0,"isoWeekday"),ct("day","d"),ct("weekday","e"),ct("isoWeekday","E"),ut("day",11),ut("weekday",11),ut("isoWeekday",11),z("d",Ie),z("e",Ie),z("E",Ie),z("dd",function(u,p){return p.weekdaysMinRegex(u)}),z("ddd",function(u,p){return p.weekdaysShortRegex(u)}),z("dddd",function(u,p){return p.weekdaysRegex(u)}),Ba(["dd","ddd","dddd"],function(u,p,g,_){var k=g._locale.weekdaysParse(u,_,g._strict);k!=null?p.d=k:w(g).invalidWeekday=u}),Ba(["d","e","E"],function(u,p,g,_){p[_]=le(u)});function Cq(u,p){return typeof u!="string"?u:isNaN(u)?(u=p.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function Oq(u,p){return typeof u=="string"?p.weekdaysParse(u)%7||7:isNaN(u)?null:u}function pu(u,p){return u.slice(p,7).concat(u.slice(0,p))}var Pq="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),nb="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Iq="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mq=ja,Aq=ja,Vq=ja;function Rq(u,p){var g=s(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return u===!0?pu(g,this._week.dow):u?g[u.day()]:g}function Lq(u){return u===!0?pu(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function Fq(u){return u===!0?pu(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function Yq(u,p,g){var _,k,$,O=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 g?p==="dddd"?(k=Ue.call(this._weekdaysParse,O),k!==-1?k:null):p==="ddd"?(k=Ue.call(this._shortWeekdaysParse,O),k!==-1?k:null):(k=Ue.call(this._minWeekdaysParse,O),k!==-1?k:null):p==="dddd"?(k=Ue.call(this._weekdaysParse,O),k!==-1||(k=Ue.call(this._shortWeekdaysParse,O),k!==-1)?k:(k=Ue.call(this._minWeekdaysParse,O),k!==-1?k:null)):p==="ddd"?(k=Ue.call(this._shortWeekdaysParse,O),k!==-1||(k=Ue.call(this._weekdaysParse,O),k!==-1)?k:(k=Ue.call(this._minWeekdaysParse,O),k!==-1?k:null)):(k=Ue.call(this._minWeekdaysParse,O),k!==-1||(k=Ue.call(this._weekdaysParse,O),k!==-1)?k:(k=Ue.call(this._shortWeekdaysParse,O),k!==-1?k:null))}function jq(u,p,g){var _,k,$;if(this._weekdaysParseExact)return Yq.call(this,u,p,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&&p==="dddd"&&this._fullWeekdaysParse[_].test(u))return _;if(g&&p==="ddd"&&this._shortWeekdaysParse[_].test(u))return _;if(g&&p==="dd"&&this._minWeekdaysParse[_].test(u))return _;if(!g&&this._weekdaysParse[_].test(u))return _}}function Bq(u){if(!this.isValid())return u!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=Cq(u,this.localeData()),this.add(u-p,"d")):p}function Hq(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 Wq(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var p=Oq(u,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function Gq(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||mu.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Mq),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function zq(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||mu.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Aq),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Uq(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||mu.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vq),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mu(){function u(kt,Hr){return Hr.length-kt.length}var p=[],g=[],_=[],k=[],$,O,Q,oe,De;for($=0;$<7;$++)O=b([2e3,1]).day($),Q=Ht(this.weekdaysMin(O,"")),oe=Ht(this.weekdaysShort(O,"")),De=Ht(this.weekdays(O,"")),p.push(Q),g.push(oe),_.push(De),k.push(Q),k.push(oe),k.push(De);p.sort(u),g.sort(u),_.sort(u),k.sort(u),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("^("+p.join("|")+")","i")}function vu(){return this.hours()%12||12}function Xq(){return this.hours()||24}K("H",["HH",2],0,"hour"),K("h",["hh",2],0,vu),K("k",["kk",2],0,Xq),K("hmm",0,0,function(){return""+vu.apply(this)+ze(this.minutes(),2)}),K("hmmss",0,0,function(){return""+vu.apply(this)+ze(this.minutes(),2)+ze(this.seconds(),2)}),K("Hmm",0,0,function(){return""+this.hours()+ze(this.minutes(),2)}),K("Hmmss",0,0,function(){return""+this.hours()+ze(this.minutes(),2)+ze(this.seconds(),2)});function ab(u,p){K(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}ab("a",!0),ab("A",!1),ct("hour","h"),ut("hour",13);function sb(u,p){return p._meridiemParse}z("a",sb),z("A",sb),z("H",Ie),z("h",Ie),z("k",Ie),z("HH",Ie,Bt),z("hh",Ie,Bt),z("kk",Ie,Bt),z("hmm",q_),z("hmmss",K_),z("Hmm",q_),z("Hmmss",K_),$e(["H","HH"],Qe),$e(["k","kk"],function(u,p,g){var _=le(u);p[Qe]=_===24?0:_}),$e(["a","A"],function(u,p,g){g._isPm=g._locale.isPM(u),g._meridiem=u}),$e(["h","hh"],function(u,p,g){p[Qe]=le(u),w(g).bigHour=!0}),$e("hmm",function(u,p,g){var _=u.length-2;p[Qe]=le(u.substr(0,_)),p[lr]=le(u.substr(_)),w(g).bigHour=!0}),$e("hmmss",function(u,p,g){var _=u.length-4,k=u.length-2;p[Qe]=le(u.substr(0,_)),p[lr]=le(u.substr(_,2)),p[Rr]=le(u.substr(k)),w(g).bigHour=!0}),$e("Hmm",function(u,p,g){var _=u.length-2;p[Qe]=le(u.substr(0,_)),p[lr]=le(u.substr(_))}),$e("Hmmss",function(u,p,g){var _=u.length-4,k=u.length-2;p[Qe]=le(u.substr(0,_)),p[lr]=le(u.substr(_,2)),p[Rr]=le(u.substr(k))});function qq(u){return(u+"").toLowerCase().charAt(0)==="p"}var Kq=/[ap]\.?m?\.?/i,Zq=In("Hours",!0);function Qq(u,p,g){return u>11?g?"pm":"PM":g?"am":"AM"}var ob={calendar:Pt,longDateFormat:R,invalidDate:X,ordinal:te,dayOfMonthOrdinalParse:je,relativeTime:dt,months:hq,monthsShort:Z_,week:Sq,weekdays:Pq,weekdaysMin:Iq,weekdaysShort:nb,meridiemParse:Kq},Le={},za={},Ua;function Jq(u,p){var g,_=Math.min(u.length,p.length);for(g=0;g<_;g+=1)if(u[g]!==p[g])return g;return _}function lb(u){return u&&u.toLowerCase().replace("_","-")}function eK(u){for(var p=0,g,_,k,$;p<u.length;){for($=lb(u[p]).split("-"),g=$.length,_=lb(u[p+1]),_=_?_.split("-"):null;g>0;){if(k=Mo($.slice(0,g).join("-")),k)return k;if(_&&_.length>=g&&Jq($,_)>=g-1)break;g--}p++}return Ua}function tK(u){return u.match("^[^/\\\\]*$")!=null}function Mo(u){var p=null,g;if(Le[u]===void 0&&e&&e.exports&&tK(u))try{p=Ua._abbr,g=cr,g("./locale/"+u),li(p)}catch{Le[u]=null}return Le[u]}function li(u,p){var g;return u&&(c(p)?g=Fr(u):g=gu(u,p),g?Ua=g:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),Ua._abbr}function gu(u,p){if(p!==null){var g,_=ob;if(p.abbr=u,Le[u]!=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."),_=Le[u]._config;else if(p.parentLocale!=null)if(Le[p.parentLocale]!=null)_=Le[p.parentLocale]._config;else if(g=Mo(p.parentLocale),g!=null)_=g._config;else return za[p.parentLocale]||(za[p.parentLocale]=[]),za[p.parentLocale].push({name:u,config:p}),null;return Le[u]=new rt(Re(_,p)),za[u]&&za[u].forEach(function(k){gu(k.name,k.config)}),li(u),Le[u]}else return delete Le[u],null}function rK(u,p){if(p!=null){var g,_,k=ob;Le[u]!=null&&Le[u].parentLocale!=null?Le[u].set(Re(Le[u]._config,p)):(_=Mo(u),_!=null&&(k=_._config),p=Re(k,p),_==null&&(p.abbr=u),g=new rt(p),g.parentLocale=Le[u],Le[u]=g),li(u)}else Le[u]!=null&&(Le[u].parentLocale!=null?(Le[u]=Le[u].parentLocale,u===li()&&li(u)):Le[u]!=null&&delete Le[u]);return Le[u]}function Fr(u){var p;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return Ua;if(!s(u)){if(p=Mo(u),p)return p;u=[u]}return eK(u)}function iK(){return Ye(Le)}function yu(u){var p,g=u._a;return g&&w(u).overflow===-2&&(p=g[Vr]<0||g[Vr]>11?Vr:g[yr]<1||g[yr]>Po(g[ht],g[Vr])?yr:g[Qe]<0||g[Qe]>24||g[Qe]===24&&(g[lr]!==0||g[Rr]!==0||g[Li]!==0)?Qe:g[lr]<0||g[lr]>59?lr:g[Rr]<0||g[Rr]>59?Rr:g[Li]<0||g[Li]>999?Li:-1,w(u)._overflowDayOfYear&&(p<ht||p>yr)&&(p=yr),w(u)._overflowWeeks&&p===-1&&(p=dq),w(u)._overflowWeekday&&p===-1&&(p=cq),w(u).overflow=p),u}var nK=/^\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)?)?$/,aK=/^\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)?)?$/,sK=/Z|[+-]\d\d(?::?\d\d)?/,Ao=[["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]],_u=[["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/]],oK=/^\/?Date\((-?\d+)/i,lK=/^(?:(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}))$/,dK={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 db(u){var p,g,_=u._i,k=nK.exec(_)||aK.exec(_),$,O,Q,oe,De=Ao.length,kt=_u.length;if(k){for(w(u).iso=!0,p=0,g=De;p<g;p++)if(Ao[p][1].exec(k[1])){O=Ao[p][0],$=Ao[p][2]!==!1;break}if(O==null){u._isValid=!1;return}if(k[3]){for(p=0,g=kt;p<g;p++)if(_u[p][1].exec(k[3])){Q=(k[2]||" ")+_u[p][0];break}if(Q==null){u._isValid=!1;return}}if(!$&&Q!=null){u._isValid=!1;return}if(k[4])if(sK.exec(k[4]))oe="Z";else{u._isValid=!1;return}u._f=O+(Q||"")+(oe||""),wu(u)}else u._isValid=!1}function cK(u,p,g,_,k,$){var O=[uK(u),Z_.indexOf(p),parseInt(g,10),parseInt(_,10),parseInt(k,10)];return $&&O.push(parseInt($,10)),O}function uK(u){var p=parseInt(u,10);return p<=49?2e3+p:p<=999?1900+p:p}function hK(u){return u.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fK(u,p,g){if(u){var _=nb.indexOf(u),k=new Date(p[0],p[1],p[2]).getDay();if(_!==k)return w(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function pK(u,p,g){if(u)return dK[u];if(p)return 0;var _=parseInt(g,10),k=_%100,$=(_-k)/100;return $*60+k}function cb(u){var p=lK.exec(hK(u._i)),g;if(p){if(g=cK(p[4],p[3],p[2],p[5],p[6],p[7]),!fK(p[1],g,u))return;u._a=g,u._tzm=pK(p[8],p[9],p[10]),u._d=Wa.apply(null,u._a),u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),w(u).rfc2822=!0}else u._isValid=!1}function mK(u){var p=oK.exec(u._i);if(p!==null){u._d=new Date(+p[1]);return}if(db(u),u._isValid===!1)delete u._isValid;else return;if(cb(u),u._isValid===!1)delete u._isValid;else return;u._strict?u._isValid=!1:a.createFromInputFallback(u)}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(u){u._d=new Date(u._i+(u._useUTC?" UTC":""))});function An(u,p,g){return u??p??g}function vK(u){var p=new Date(a.now());return u._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()]}function bu(u){var p,g,_=[],k,$,O;if(!u._d){for(k=vK(u),u._w&&u._a[yr]==null&&u._a[Vr]==null&&gK(u),u._dayOfYear!=null&&(O=An(u._a[ht],k[ht]),(u._dayOfYear>Ha(O)||u._dayOfYear===0)&&(w(u)._overflowDayOfYear=!0),g=Wa(O,0,u._dayOfYear),u._a[Vr]=g.getUTCMonth(),u._a[yr]=g.getUTCDate()),p=0;p<3&&u._a[p]==null;++p)u._a[p]=_[p]=k[p];for(;p<7;p++)u._a[p]=_[p]=u._a[p]==null?p===2?1:0:u._a[p];u._a[Qe]===24&&u._a[lr]===0&&u._a[Rr]===0&&u._a[Li]===0&&(u._nextDay=!0,u._a[Qe]=0),u._d=(u._useUTC?Wa:xq).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[Qe]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(w(u).weekdayMismatch=!0)}}function gK(u){var p,g,_,k,$,O,Q,oe,De;p=u._w,p.GG!=null||p.W!=null||p.E!=null?($=1,O=4,g=An(p.GG,u._a[ht],Ga(Me(),1,4).year),_=An(p.W,1),k=An(p.E,1),(k<1||k>7)&&(oe=!0)):($=u._locale._week.dow,O=u._locale._week.doy,De=Ga(Me(),$,O),g=An(p.gg,u._a[ht],De.year),_=An(p.w,De.week),p.d!=null?(k=p.d,(k<0||k>6)&&(oe=!0)):p.e!=null?(k=p.e+$,(p.e<0||p.e>6)&&(oe=!0)):k=$),_<1||_>Lr(g,$,O)?w(u)._overflowWeeks=!0:oe!=null?w(u)._overflowWeekday=!0:(Q=ib(g,_,k,$,O),u._a[ht]=Q.year,u._dayOfYear=Q.dayOfYear)}a.ISO_8601=function(){},a.RFC_2822=function(){};function wu(u){if(u._f===a.ISO_8601){db(u);return}if(u._f===a.RFC_2822){cb(u);return}u._a=[],w(u).empty=!0;var p=""+u._i,g,_,k,$,O,Q=p.length,oe=0,De,kt;for(k=B(u._f,u._locale).match(vr)||[],kt=k.length,g=0;g<kt;g++)$=k[g],_=(p.match(sq($,u))||[])[0],_&&(O=p.substr(0,p.indexOf(_)),O.length>0&&w(u).unusedInput.push(O),p=p.slice(p.indexOf(_)+_.length),oe+=_.length),Mr[$]?(_?w(u).empty=!1:w(u).unusedTokens.push($),lq($,_,u)):u._strict&&!_&&w(u).unusedTokens.push($);w(u).charsLeftOver=Q-oe,p.length>0&&w(u).unusedInput.push(p),u._a[Qe]<=12&&w(u).bigHour===!0&&u._a[Qe]>0&&(w(u).bigHour=void 0),w(u).parsedDateParts=u._a.slice(0),w(u).meridiem=u._meridiem,u._a[Qe]=yK(u._locale,u._a[Qe],u._meridiem),De=w(u).era,De!==null&&(u._a[ht]=u._locale.erasConvertYear(De,u._a[ht])),bu(u),yu(u)}function yK(u,p,g){var _;return g==null?p:u.meridiemHour!=null?u.meridiemHour(p,g):(u.isPM!=null&&(_=u.isPM(g),_&&p<12&&(p+=12),!_&&p===12&&(p=0)),p)}function _K(u){var p,g,_,k,$,O,Q=!1,oe=u._f.length;if(oe===0){w(u).invalidFormat=!0,u._d=new Date(NaN);return}for(k=0;k<oe;k++)$=0,O=!1,p=A({},u),u._useUTC!=null&&(p._useUTC=u._useUTC),p._f=u._f[k],wu(p),D(p)&&(O=!0),$+=w(p).charsLeftOver,$+=w(p).unusedTokens.length*10,w(p).score=$,Q?$<_&&(_=$,g=p):(_==null||$<_||O)&&(_=$,g=p,O&&(Q=!0));y(u,g||p)}function bK(u){if(!u._d){var p=cu(u._i),g=p.day===void 0?p.date:p.day;u._a=v([p.year,p.month,g,p.hour,p.minute,p.second,p.millisecond],function(_){return _&&parseInt(_,10)}),bu(u)}}function wK(u){var p=new V(yu(ub(u)));return p._nextDay&&(p.add(1,"d"),p._nextDay=void 0),p}function ub(u){var p=u._i,g=u._f;return u._locale=u._locale||Fr(u._l),p===null||g===void 0&&p===""?T({nullInput:!0}):(typeof p=="string"&&(u._i=p=u._locale.preparse(p)),N(p)?new V(yu(p)):(m(p)?u._d=p:s(g)?_K(u):g?wu(u):kK(u),D(u)||(u._d=null),u))}function kK(u){var p=u._i;c(p)?u._d=new Date(a.now()):m(p)?u._d=new Date(p.valueOf()):typeof p=="string"?mK(u):s(p)?(u._a=v(p.slice(0),function(g){return parseInt(g,10)}),bu(u)):o(p)?bK(u):f(p)?u._d=new Date(p):a.createFromInputFallback(u)}function hb(u,p,g,_,k){var $={};return(p===!0||p===!1)&&(_=p,p=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(o(u)&&d(u)||s(u)&&u.length===0)&&(u=void 0),$._isAMomentObject=!0,$._useUTC=$._isUTC=k,$._l=g,$._i=u,$._f=p,$._strict=_,wK($)}function Me(u,p,g,_){return hb(u,p,g,_,!1)}var xK=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var u=Me.apply(null,arguments);return this.isValid()&&u.isValid()?u<this?this:u:T()}),EK=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var u=Me.apply(null,arguments);return this.isValid()&&u.isValid()?u>this?this:u:T()});function fb(u,p){var g,_;if(p.length===1&&s(p[0])&&(p=p[0]),!p.length)return Me();for(g=p[0],_=1;_<p.length;++_)(!p[_].isValid()||p[_][u](g))&&(g=p[_]);return g}function SK(){var u=[].slice.call(arguments,0);return fb("isBefore",u)}function $K(){var u=[].slice.call(arguments,0);return fb("isAfter",u)}var DK=function(){return Date.now?Date.now():+new Date},Xa=["year","quarter","month","week","day","hour","minute","second","millisecond"];function TK(u){var p,g=!1,_,k=Xa.length;for(p in u)if(l(u,p)&&!(Ue.call(Xa,p)!==-1&&(u[p]==null||!isNaN(u[p]))))return!1;for(_=0;_<k;++_)if(u[Xa[_]]){if(g)return!1;parseFloat(u[Xa[_]])!==le(u[Xa[_]])&&(g=!0)}return!0}function NK(){return this._isValid}function CK(){return dr(NaN)}function Vo(u){var p=cu(u),g=p.year||0,_=p.quarter||0,k=p.month||0,$=p.week||p.isoWeek||0,O=p.day||0,Q=p.hour||0,oe=p.minute||0,De=p.second||0,kt=p.millisecond||0;this._isValid=TK(p),this._milliseconds=+kt+De*1e3+oe*6e4+Q*1e3*60*60,this._days=+O+$*7,this._months=+k+_*3+g*12,this._data={},this._locale=Fr(),this._bubble()}function Ro(u){return u instanceof Vo}function ku(u){return u<0?Math.round(-1*u)*-1:Math.round(u)}function OK(u,p,g){var _=Math.min(u.length,p.length),k=Math.abs(u.length-p.length),$=0,O;for(O=0;O<_;O++)le(u[O])!==le(p[O])&&$++;return $+k}function pb(u,p){K(u,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+ze(~~(g/60),2)+p+ze(~~g%60,2)})}pb("Z",":"),pb("ZZ",""),z("Z",Co),z("ZZ",Co),$e(["Z","ZZ"],function(u,p,g){g._useUTC=!0,g._tzm=xu(Co,u)});var PK=/([\+\-]|\d\d)/gi;function xu(u,p){var g=(p||"").match(u),_,k,$;return g===null?null:(_=g[g.length-1]||[],k=(_+"").match(PK)||["-",0,0],$=+(k[1]*60)+le(k[2]),$===0?0:k[0]==="+"?$:-$)}function Eu(u,p){var g,_;return p._isUTC?(g=p.clone(),_=(N(u)||m(u)?u.valueOf():Me(u).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),a.updateOffset(g,!1),g):Me(u).local()}function Su(u){return-Math.round(u._d.getTimezoneOffset())}a.updateOffset=function(){};function IK(u,p,g){var _=this._offset||0,k;if(!this.isValid())return u!=null?this:NaN;if(u!=null){if(typeof u=="string"){if(u=xu(Co,u),u===null)return this}else Math.abs(u)<16&&!g&&(u=u*60);return!this._isUTC&&p&&(k=Su(this)),this._offset=u,this._isUTC=!0,k!=null&&this.add(k,"m"),_!==u&&(!p||this._changeInProgress?yb(this,dr(u-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Su(this)}function MK(u,p){return u!=null?(typeof u!="string"&&(u=-u),this.utcOffset(u,p),this):-this.utcOffset()}function AK(u){return this.utcOffset(0,u)}function VK(u){return this._isUTC&&(this.utcOffset(0,u),this._isUTC=!1,u&&this.subtract(Su(this),"m")),this}function RK(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var u=xu(nq,this._i);u!=null?this.utcOffset(u):this.utcOffset(0,!0)}return this}function LK(u){return this.isValid()?(u=u?Me(u).utcOffset():0,(this.utcOffset()-u)%60===0):!1}function FK(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function YK(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},p;return A(u,this),u=ub(u),u._a?(p=u._isUTC?b(u._a):Me(u._a),this._isDSTShifted=this.isValid()&&OK(u._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function jK(){return this.isValid()?!this._isUTC:!1}function BK(){return this.isValid()?this._isUTC:!1}function mb(){return this.isValid()?this._isUTC&&this._offset===0:!1}var HK=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,WK=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function dr(u,p){var g=u,_=null,k,$,O;return Ro(u)?g={ms:u._milliseconds,d:u._days,M:u._months}:f(u)||!isNaN(+u)?(g={},p?g[p]=+u:g.milliseconds=+u):(_=HK.exec(u))?(k=_[1]==="-"?-1:1,g={y:0,d:le(_[yr])*k,h:le(_[Qe])*k,m:le(_[lr])*k,s:le(_[Rr])*k,ms:le(ku(_[Li]*1e3))*k}):(_=WK.exec(u))?(k=_[1]==="-"?-1:1,g={y:Fi(_[2],k),M:Fi(_[3],k),w:Fi(_[4],k),d:Fi(_[5],k),h:Fi(_[6],k),m:Fi(_[7],k),s:Fi(_[8],k)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(O=GK(Me(g.from),Me(g.to)),g={},g.ms=O.milliseconds,g.M=O.months),$=new Vo(g),Ro(u)&&l(u,"_locale")&&($._locale=u._locale),Ro(u)&&l(u,"_isValid")&&($._isValid=u._isValid),$}dr.fn=Vo.prototype,dr.invalid=CK;function Fi(u,p){var g=u&&parseFloat(u.replace(",","."));return(isNaN(g)?0:g)*p}function vb(u,p){var g={};return g.months=p.month()-u.month()+(p.year()-u.year())*12,u.clone().add(g.months,"M").isAfter(p)&&--g.months,g.milliseconds=+p-+u.clone().add(g.months,"M"),g}function GK(u,p){var g;return u.isValid()&&p.isValid()?(p=Eu(p,u),u.isBefore(p)?g=vb(u,p):(g=vb(p,u),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function gb(u,p){return function(g,_){var k,$;return _!==null&&!isNaN(+_)&&(W(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."),$=g,g=_,_=$),k=dr(g,_),yb(this,k,u),this}}function yb(u,p,g,_){var k=p._milliseconds,$=ku(p._days),O=ku(p._months);u.isValid()&&(_=_??!0,O&&J_(u,So(u,"Month")+O*g),$&&z_(u,"Date",So(u,"Date")+$*g),k&&u._d.setTime(u._d.valueOf()+k*g),_&&a.updateOffset(u,$||O))}var zK=gb(1,"add"),UK=gb(-1,"subtract");function _b(u){return typeof u=="string"||u instanceof String}function XK(u){return N(u)||m(u)||_b(u)||f(u)||KK(u)||qK(u)||u===null||u===void 0}function qK(u){var p=o(u)&&!d(u),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,$,O=_.length;for(k=0;k<O;k+=1)$=_[k],g=g||l(u,$);return p&&g}function KK(u){var p=s(u),g=!1;return p&&(g=u.filter(function(_){return!f(_)&&_b(u)}).length===0),p&&g}function ZK(u){var p=o(u)&&!d(u),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],k,$;for(k=0;k<_.length;k+=1)$=_[k],g=g||l(u,$);return p&&g}function QK(u,p){var g=u.diff(p,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function JK(u,p){arguments.length===1&&(arguments[0]?XK(arguments[0])?(u=arguments[0],p=void 0):ZK(arguments[0])&&(p=arguments[0],u=void 0):(u=void 0,p=void 0));var g=u||Me(),_=Eu(g,this).startOf("day"),k=a.calendarFormat(this,_)||"sameElse",$=p&&(q(p[k])?p[k].call(this,g):p[k]);return this.format($||this.localeData().calendar(k,this,Me(g)))}function eZ(){return new V(this)}function tZ(u,p){var g=N(u)?u:Me(u);return this.isValid()&&g.isValid()?(p=qt(p)||"millisecond",p==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(p).valueOf()):!1}function rZ(u,p){var g=N(u)?u:Me(u);return this.isValid()&&g.isValid()?(p=qt(p)||"millisecond",p==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(p).valueOf()<g.valueOf()):!1}function iZ(u,p,g,_){var k=N(u)?u:Me(u),$=N(p)?p:Me(p);return this.isValid()&&k.isValid()&&$.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(k,g):!this.isBefore(k,g))&&(_[1]===")"?this.isBefore($,g):!this.isAfter($,g))):!1}function nZ(u,p){var g=N(u)?u:Me(u),_;return this.isValid()&&g.isValid()?(p=qt(p)||"millisecond",p==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(p).valueOf()<=_&&_<=this.clone().endOf(p).valueOf())):!1}function aZ(u,p){return this.isSame(u,p)||this.isAfter(u,p)}function sZ(u,p){return this.isSame(u,p)||this.isBefore(u,p)}function oZ(u,p,g){var _,k,$;if(!this.isValid())return NaN;if(_=Eu(u,this),!_.isValid())return NaN;switch(k=(_.utcOffset()-this.utcOffset())*6e4,p=qt(p),p){case"year":$=Lo(this,_)/12;break;case"month":$=Lo(this,_);break;case"quarter":$=Lo(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?$:Kt($)}function Lo(u,p){if(u.date()<p.date())return-Lo(p,u);var g=(p.year()-u.year())*12+(p.month()-u.month()),_=u.clone().add(g,"months"),k,$;return p-_<0?(k=u.clone().add(g-1,"months"),$=(p-_)/(_-k)):(k=u.clone().add(g+1,"months"),$=(p-_)/(k-_)),-(g+$)||0}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function lZ(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dZ(u){if(!this.isValid())return null;var p=u!==!0,g=p?this.clone().utc():this;return g.year()<0||g.year()>9999?oi(g,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):q(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",oi(g,"Z")):oi(g,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function cZ(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var u="moment",p="",g,_,k,$;return this.isLocal()||(u=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),g="["+u+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",k="-MM-DD[T]HH:mm:ss.SSS",$=p+'[")]',this.format(g+_+k+$)}function uZ(u){u||(u=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var p=oi(this,u);return this.localeData().postformat(p)}function hZ(u,p){return this.isValid()&&(N(u)&&u.isValid()||Me(u).isValid())?dr({to:this,from:u}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function fZ(u){return this.from(Me(),u)}function pZ(u,p){return this.isValid()&&(N(u)&&u.isValid()||Me(u).isValid())?dr({from:this,to:u}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function mZ(u){return this.to(Me(),u)}function bb(u){var p;return u===void 0?this._locale._abbr:(p=Fr(u),p!=null&&(this._locale=p),this)}var wb=M("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 kb(){return this._locale}var Fo=1e3,Vn=60*Fo,Yo=60*Vn,xb=(365*400+97)*24*Yo;function Rn(u,p){return(u%p+p)%p}function Eb(u,p,g){return u<100&&u>=0?new Date(u+400,p,g)-xb:new Date(u,p,g).valueOf()}function Sb(u,p,g){return u<100&&u>=0?Date.UTC(u+400,p,g)-xb:Date.UTC(u,p,g)}function vZ(u){var p,g;if(u=qt(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Sb:Eb,u){case"year":p=g(this.year(),0,1);break;case"quarter":p=g(this.year(),this.month()-this.month()%3,1);break;case"month":p=g(this.year(),this.month(),1);break;case"week":p=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=g(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=Rn(p+(this._isUTC?0:this.utcOffset()*Vn),Yo);break;case"minute":p=this._d.valueOf(),p-=Rn(p,Vn);break;case"second":p=this._d.valueOf(),p-=Rn(p,Fo);break}return this._d.setTime(p),a.updateOffset(this,!0),this}function gZ(u){var p,g;if(u=qt(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Sb:Eb,u){case"year":p=g(this.year()+1,0,1)-1;break;case"quarter":p=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=g(this.year(),this.month()+1,1)-1;break;case"week":p=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=Yo-Rn(p+(this._isUTC?0:this.utcOffset()*Vn),Yo)-1;break;case"minute":p=this._d.valueOf(),p+=Vn-Rn(p,Vn)-1;break;case"second":p=this._d.valueOf(),p+=Fo-Rn(p,Fo)-1;break}return this._d.setTime(p),a.updateOffset(this,!0),this}function yZ(){return this._d.valueOf()-(this._offset||0)*6e4}function _Z(){return Math.floor(this.valueOf()/1e3)}function bZ(){return new Date(this.valueOf())}function wZ(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function kZ(){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 xZ(){return this.isValid()?this.toISOString():null}function EZ(){return D(this)}function SZ(){return y({},w(this))}function $Z(){return w(this).overflow}function DZ(){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"),z("N",$u),z("NN",$u),z("NNN",$u),z("NNNN",LZ),z("NNNNN",FZ),$e(["N","NN","NNN","NNNN","NNNNN"],function(u,p,g,_){var k=g._locale.erasParse(u,_,g._strict);k?w(g).era=k:w(g).invalidEra=u}),z("y",Mn),z("yy",Mn),z("yyy",Mn),z("yyyy",Mn),z("yo",YZ),$e(["y","yy","yyy","yyyy"],ht),$e(["yo"],function(u,p,g,_){var k;g._locale._eraYearOrdinalRegex&&(k=u.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?p[ht]=g._locale.eraYearOrdinalParse(u,k):p[ht]=parseInt(u,10)});function TZ(u,p){var g,_,k,$=this._eras||Fr("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 NZ(u,p,g){var _,k,$=this.eras(),O,Q,oe;for(u=u.toUpperCase(),_=0,k=$.length;_<k;++_)if(O=$[_].name.toUpperCase(),Q=$[_].abbr.toUpperCase(),oe=$[_].narrow.toUpperCase(),g)switch(p){case"N":case"NN":case"NNN":if(Q===u)return $[_];break;case"NNNN":if(O===u)return $[_];break;case"NNNNN":if(oe===u)return $[_];break}else if([O,Q,oe].indexOf(u)>=0)return $[_]}function CZ(u,p){var g=u.since<=u.until?1:-1;return p===void 0?a(u.since).year():a(u.since).year()+(p-u.offset)*g}function OZ(){var u,p,g,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(g=this.clone().startOf("day").valueOf(),_[u].since<=g&&g<=_[u].until||_[u].until<=g&&g<=_[u].since)return _[u].name;return""}function PZ(){var u,p,g,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(g=this.clone().startOf("day").valueOf(),_[u].since<=g&&g<=_[u].until||_[u].until<=g&&g<=_[u].since)return _[u].narrow;return""}function IZ(){var u,p,g,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(g=this.clone().startOf("day").valueOf(),_[u].since<=g&&g<=_[u].until||_[u].until<=g&&g<=_[u].since)return _[u].abbr;return""}function MZ(){var u,p,g,_,k=this.localeData().eras();for(u=0,p=k.length;u<p;++u)if(g=k[u].since<=k[u].until?1:-1,_=this.clone().startOf("day").valueOf(),k[u].since<=_&&_<=k[u].until||k[u].until<=_&&_<=k[u].since)return(this.year()-a(k[u].since).year())*g+k[u].offset;return this.year()}function AZ(u){return l(this,"_erasNameRegex")||Du.call(this),u?this._erasNameRegex:this._erasRegex}function VZ(u){return l(this,"_erasAbbrRegex")||Du.call(this),u?this._erasAbbrRegex:this._erasRegex}function RZ(u){return l(this,"_erasNarrowRegex")||Du.call(this),u?this._erasNarrowRegex:this._erasRegex}function $u(u,p){return p.erasAbbrRegex(u)}function LZ(u,p){return p.erasNameRegex(u)}function FZ(u,p){return p.erasNarrowRegex(u)}function YZ(u,p){return p._eraYearOrdinalRegex||Mn}function Du(){var u=[],p=[],g=[],_=[],k,$,O=this.eras();for(k=0,$=O.length;k<$;++k)p.push(Ht(O[k].name)),u.push(Ht(O[k].abbr)),g.push(Ht(O[k].narrow)),_.push(Ht(O[k].name)),_.push(Ht(O[k].abbr)),_.push(Ht(O[k].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("^("+g.join("|")+")","i")}K(0,["gg",2],0,function(){return this.weekYear()%100}),K(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jo(u,p){K(0,[u,u.length],0,p)}jo("gggg","weekYear"),jo("ggggg","weekYear"),jo("GGGG","isoWeekYear"),jo("GGGGG","isoWeekYear"),ct("weekYear","gg"),ct("isoWeekYear","GG"),ut("weekYear",1),ut("isoWeekYear",1),z("G",No),z("g",No),z("GG",Ie,Bt),z("gg",Ie,Bt),z("GGGG",hu,uu),z("gggg",hu,uu),z("GGGGG",To,$o),z("ggggg",To,$o),Ba(["gggg","ggggg","GGGG","GGGGG"],function(u,p,g,_){p[_.substr(0,2)]=le(u)}),Ba(["gg","GG"],function(u,p,g,_){p[_]=a.parseTwoDigitYear(u)});function jZ(u){return $b.call(this,u,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function BZ(u){return $b.call(this,u,this.isoWeek(),this.isoWeekday(),1,4)}function HZ(){return Lr(this.year(),1,4)}function WZ(){return Lr(this.isoWeekYear(),1,4)}function GZ(){var u=this.localeData()._week;return Lr(this.year(),u.dow,u.doy)}function zZ(){var u=this.localeData()._week;return Lr(this.weekYear(),u.dow,u.doy)}function $b(u,p,g,_,k){var $;return u==null?Ga(this,_,k).year:($=Lr(u,_,k),p>$&&(p=$),UZ.call(this,u,p,g,_,k))}function UZ(u,p,g,_,k){var $=ib(u,p,g,_,k),O=Wa($.year,0,$.dayOfYear);return this.year(O.getUTCFullYear()),this.month(O.getUTCMonth()),this.date(O.getUTCDate()),this}K("Q",0,"Qo","quarter"),ct("quarter","Q"),ut("quarter",7),z("Q",U_),$e("Q",function(u,p){p[Vr]=(le(u)-1)*3});function XZ(u){return u==null?Math.ceil((this.month()+1)/3):this.month((u-1)*3+this.month()%3)}K("D",["DD",2],"Do","date"),ct("date","D"),ut("date",9),z("D",Ie),z("DD",Ie,Bt),z("Do",function(u,p){return u?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),$e(["D","DD"],yr),$e("Do",function(u,p){p[yr]=le(u.match(Ie)[0])});var Db=In("Date",!0);K("DDD",["DDDD",3],"DDDo","dayOfYear"),ct("dayOfYear","DDD"),ut("dayOfYear",4),z("DDD",Do),z("DDDD",X_),$e(["DDD","DDDD"],function(u,p,g){g._dayOfYear=le(u)});function qZ(u){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return u==null?p:this.add(u-p,"d")}K("m",["mm",2],0,"minute"),ct("minute","m"),ut("minute",14),z("m",Ie),z("mm",Ie,Bt),$e(["m","mm"],lr);var KZ=In("Minutes",!1);K("s",["ss",2],0,"second"),ct("second","s"),ut("second",15),z("s",Ie),z("ss",Ie,Bt),$e(["s","ss"],Rr);var ZZ=In("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}),ct("millisecond","ms"),ut("millisecond",16),z("S",Do,U_),z("SS",Do,Bt),z("SSS",Do,X_);var di,Tb;for(di="SSSS";di.length<=9;di+="S")z(di,Mn);function QZ(u,p){p[Li]=le(("0."+u)*1e3)}for(di="S";di.length<=9;di+="S")$e(di,QZ);Tb=In("Milliseconds",!1),K("z",0,0,"zoneAbbr"),K("zz",0,0,"zoneName");function JZ(){return this._isUTC?"UTC":""}function eQ(){return this._isUTC?"Coordinated Universal Time":""}var L=V.prototype;L.add=zK,L.calendar=JK,L.clone=eZ,L.diff=oZ,L.endOf=gZ,L.format=uZ,L.from=hZ,L.fromNow=fZ,L.to=pZ,L.toNow=mZ,L.get=rq,L.invalidAt=$Z,L.isAfter=tZ,L.isBefore=rZ,L.isBetween=iZ,L.isSame=nZ,L.isSameOrAfter=aZ,L.isSameOrBefore=sZ,L.isValid=EZ,L.lang=wb,L.locale=bb,L.localeData=kb,L.max=EK,L.min=xK,L.parsingFlags=SZ,L.set=iq,L.startOf=vZ,L.subtract=UK,L.toArray=wZ,L.toObject=kZ,L.toDate=bZ,L.toISOString=dZ,L.inspect=cZ,typeof Symbol<"u"&&Symbol.for!=null&&(L[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),L.toJSON=xZ,L.toString=lZ,L.unix=_Z,L.valueOf=yZ,L.creationData=DZ,L.eraName=OZ,L.eraNarrow=PZ,L.eraAbbr=IZ,L.eraYear=MZ,L.year=rb,L.isLeapYear=kq,L.weekYear=jZ,L.isoWeekYear=BZ,L.quarter=L.quarters=XZ,L.month=eb,L.daysInMonth=_q,L.week=L.weeks=Tq,L.isoWeek=L.isoWeeks=Nq,L.weeksInYear=GZ,L.weeksInWeekYear=zZ,L.isoWeeksInYear=HZ,L.isoWeeksInISOWeekYear=WZ,L.date=Db,L.day=L.days=Bq,L.weekday=Hq,L.isoWeekday=Wq,L.dayOfYear=qZ,L.hour=L.hours=Zq,L.minute=L.minutes=KZ,L.second=L.seconds=ZZ,L.millisecond=L.milliseconds=Tb,L.utcOffset=IK,L.utc=AK,L.local=VK,L.parseZone=RK,L.hasAlignedHourOffset=LK,L.isDST=FK,L.isLocal=jK,L.isUtcOffset=BK,L.isUtc=mb,L.isUTC=mb,L.zoneAbbr=JZ,L.zoneName=eQ,L.dates=M("dates accessor is deprecated. Use date instead.",Db),L.months=M("months accessor is deprecated. Use month instead",eb),L.years=M("years accessor is deprecated. Use year instead",rb),L.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",MK),L.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",YK);function tQ(u){return Me(u*1e3)}function rQ(){return Me.apply(null,arguments).parseZone()}function Nb(u){return u}var ve=rt.prototype;ve.calendar=Ir,ve.longDateFormat=Y,ve.invalidDate=ie,ve.ordinal=at,ve.preparse=Nb,ve.postformat=Nb,ve.relativeTime=Ar,ve.pastFuture=gr,ve.set=ue,ve.eras=TZ,ve.erasParse=NZ,ve.erasConvertYear=CZ,ve.erasAbbrRegex=VZ,ve.erasNameRegex=AZ,ve.erasNarrowRegex=RZ,ve.months=mq,ve.monthsShort=vq,ve.monthsParse=yq,ve.monthsRegex=wq,ve.monthsShortRegex=bq,ve.week=Eq,ve.firstDayOfYear=Dq,ve.firstDayOfWeek=$q,ve.weekdays=Rq,ve.weekdaysMin=Fq,ve.weekdaysShort=Lq,ve.weekdaysParse=jq,ve.weekdaysRegex=Gq,ve.weekdaysShortRegex=zq,ve.weekdaysMinRegex=Uq,ve.isPM=qq,ve.meridiem=Qq;function Bo(u,p,g,_){var k=Fr(),$=b().set(_,p);return k[g]($,u)}function Cb(u,p,g){if(f(u)&&(p=u,u=void 0),u=u||"",p!=null)return Bo(u,p,g,"month");var _,k=[];for(_=0;_<12;_++)k[_]=Bo(u,_,g,"month");return k}function Tu(u,p,g,_){typeof u=="boolean"?(f(p)&&(g=p,p=void 0),p=p||""):(p=u,g=p,u=!1,f(p)&&(g=p,p=void 0),p=p||"");var k=Fr(),$=u?k._week.dow:0,O,Q=[];if(g!=null)return Bo(p,(g+$)%7,_,"day");for(O=0;O<7;O++)Q[O]=Bo(p,(O+$)%7,_,"day");return Q}function iQ(u,p){return Cb(u,p,"months")}function nQ(u,p){return Cb(u,p,"monthsShort")}function aQ(u,p,g){return Tu(u,p,g,"weekdays")}function sQ(u,p,g){return Tu(u,p,g,"weekdaysShort")}function oQ(u,p,g){return Tu(u,p,g,"weekdaysMin")}li("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,g=le(u%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return u+g}}),a.lang=M("moment.lang is deprecated. Use moment.locale instead.",li),a.langData=M("moment.langData is deprecated. Use moment.localeData instead.",Fr);var Yr=Math.abs;function lQ(){var u=this._data;return this._milliseconds=Yr(this._milliseconds),this._days=Yr(this._days),this._months=Yr(this._months),u.milliseconds=Yr(u.milliseconds),u.seconds=Yr(u.seconds),u.minutes=Yr(u.minutes),u.hours=Yr(u.hours),u.months=Yr(u.months),u.years=Yr(u.years),this}function Ob(u,p,g,_){var k=dr(p,g);return u._milliseconds+=_*k._milliseconds,u._days+=_*k._days,u._months+=_*k._months,u._bubble()}function dQ(u,p){return Ob(this,u,p,1)}function cQ(u,p){return Ob(this,u,p,-1)}function Pb(u){return u<0?Math.floor(u):Math.ceil(u)}function uQ(){var u=this._milliseconds,p=this._days,g=this._months,_=this._data,k,$,O,Q,oe;return u>=0&&p>=0&&g>=0||u<=0&&p<=0&&g<=0||(u+=Pb(Nu(g)+p)*864e5,p=0,g=0),_.milliseconds=u%1e3,k=Kt(u/1e3),_.seconds=k%60,$=Kt(k/60),_.minutes=$%60,O=Kt($/60),_.hours=O%24,p+=Kt(O/24),oe=Kt(Ib(p)),g+=oe,p-=Pb(Nu(oe)),Q=Kt(g/12),g%=12,_.days=p,_.months=g,_.years=Q,this}function Ib(u){return u*4800/146097}function Nu(u){return u*146097/4800}function hQ(u){if(!this.isValid())return NaN;var p,g,_=this._milliseconds;if(u=qt(u),u==="month"||u==="quarter"||u==="year")switch(p=this._days+_/864e5,g=this._months+Ib(p),u){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(p=this._days+Math.round(Nu(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 fQ(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+le(this._months/12)*31536e6:NaN}function jr(u){return function(){return this.as(u)}}var pQ=jr("ms"),mQ=jr("s"),vQ=jr("m"),gQ=jr("h"),yQ=jr("d"),_Q=jr("w"),bQ=jr("M"),wQ=jr("Q"),kQ=jr("y");function xQ(){return dr(this)}function EQ(u){return u=qt(u),this.isValid()?this[u+"s"]():NaN}function Yi(u){return function(){return this.isValid()?this._data[u]:NaN}}var SQ=Yi("milliseconds"),$Q=Yi("seconds"),DQ=Yi("minutes"),TQ=Yi("hours"),NQ=Yi("days"),CQ=Yi("months"),OQ=Yi("years");function PQ(){return Kt(this.days()/7)}var Br=Math.round,Ln={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function IQ(u,p,g,_,k){return k.relativeTime(p||1,!!g,u,_)}function MQ(u,p,g,_){var k=dr(u).abs(),$=Br(k.as("s")),O=Br(k.as("m")),Q=Br(k.as("h")),oe=Br(k.as("d")),De=Br(k.as("M")),kt=Br(k.as("w")),Hr=Br(k.as("y")),ci=$<=g.ss&&["s",$]||$<g.s&&["ss",$]||O<=1&&["m"]||O<g.m&&["mm",O]||Q<=1&&["h"]||Q<g.h&&["hh",Q]||oe<=1&&["d"]||oe<g.d&&["dd",oe];return g.w!=null&&(ci=ci||kt<=1&&["w"]||kt<g.w&&["ww",kt]),ci=ci||De<=1&&["M"]||De<g.M&&["MM",De]||Hr<=1&&["y"]||["yy",Hr],ci[2]=p,ci[3]=+u>0,ci[4]=_,IQ.apply(null,ci)}function AQ(u){return u===void 0?Br:typeof u=="function"?(Br=u,!0):!1}function VQ(u,p){return Ln[u]===void 0?!1:p===void 0?Ln[u]:(Ln[u]=p,u==="s"&&(Ln.ss=p-1),!0)}function RQ(u,p){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=Ln,k,$;return typeof u=="object"&&(p=u,u=!1),typeof u=="boolean"&&(g=u),typeof p=="object"&&(_=Object.assign({},Ln,p),p.s!=null&&p.ss==null&&(_.ss=p.s-1)),k=this.localeData(),$=MQ(this,!g,_,k),g&&($=k.pastFuture(+this,$)),k.postformat($)}var Cu=Math.abs;function Fn(u){return(u>0)-(u<0)||+u}function Ho(){if(!this.isValid())return this.localeData().invalidDate();var u=Cu(this._milliseconds)/1e3,p=Cu(this._days),g=Cu(this._months),_,k,$,O,Q=this.asSeconds(),oe,De,kt,Hr;return Q?(_=Kt(u/60),k=Kt(_/60),u%=60,_%=60,$=Kt(g/12),g%=12,O=u?u.toFixed(3).replace(/\.?0+$/,""):"",oe=Q<0?"-":"",De=Fn(this._months)!==Fn(Q)?"-":"",kt=Fn(this._days)!==Fn(Q)?"-":"",Hr=Fn(this._milliseconds)!==Fn(Q)?"-":"",oe+"P"+($?De+$+"Y":"")+(g?De+g+"M":"")+(p?kt+p+"D":"")+(k||_||u?"T":"")+(k?Hr+k+"H":"")+(_?Hr+_+"M":"")+(u?Hr+O+"S":"")):"P0D"}var pe=Vo.prototype;pe.isValid=NK,pe.abs=lQ,pe.add=dQ,pe.subtract=cQ,pe.as=hQ,pe.asMilliseconds=pQ,pe.asSeconds=mQ,pe.asMinutes=vQ,pe.asHours=gQ,pe.asDays=yQ,pe.asWeeks=_Q,pe.asMonths=bQ,pe.asQuarters=wQ,pe.asYears=kQ,pe.valueOf=fQ,pe._bubble=uQ,pe.clone=xQ,pe.get=EQ,pe.milliseconds=SQ,pe.seconds=$Q,pe.minutes=DQ,pe.hours=TQ,pe.days=NQ,pe.weeks=PQ,pe.months=CQ,pe.years=OQ,pe.humanize=RQ,pe.toISOString=Ho,pe.toString=Ho,pe.toJSON=Ho,pe.locale=bb,pe.localeData=kb,pe.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ho),pe.lang=wb,K("X",0,0,"unix"),K("x",0,0,"valueOf"),z("x",No),z("X",aq),$e("X",function(u,p,g){g._d=new Date(parseFloat(u)*1e3)}),$e("x",function(u,p,g){g._d=new Date(le(u))});//! moment.js
|
29
|
+
return a.version="2.29.4",n(Me),a.fn=L,a.min=SK,a.max=$K,a.now=DK,a.utc=b,a.unix=tQ,a.months=iQ,a.isDate=m,a.locale=li,a.invalid=T,a.duration=dr,a.isMoment=N,a.weekdays=aQ,a.parseZone=rQ,a.localeData=Fr,a.isDuration=Ro,a.monthsShort=nQ,a.weekdaysMin=oQ,a.defineLocale=gu,a.updateLocale=rK,a.locales=iK,a.weekdaysShort=sQ,a.normalizeUnits=qt,a.relativeTimeRounding=AQ,a.relativeTimeThreshold=VQ,a.calendarFormat=QK,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})}(Wo)),Wo.exports}(function(e,r){(function(t,a){a(typeof cr=="function"?Zt():t.moment)})(It,function(t){//! moment.js locale configuration
|
30
|
+
function a(s,o,l,d){var c={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?c[l][0]:c[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 cr=="function"?Zt():t.moment)})(It,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,c){return d?/-MMM-/.test(c)?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 cr=="function"?Zt():t.moment)})(It,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,c){switch(c){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 cr=="function"?Zt():t.moment)})(It,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 cr=="function"?Zt():t.moment)})(It,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 cr=="function"?Zt():t.moment)})(It,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,c){return d?/-MMM-/.test(c)?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 cr=="function"?Zt():t.moment)})(It,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(c){return c%10<5&&c%10>1&&~~(c/10)%10!==1}function l(c,f,m){var v=c+" ";switch(m){case"ss":return v+(o(c)?"sekundy":"sekund");case"m":return f?"minuta":"minutę";case"mm":return v+(o(c)?"minuty":"minut");case"h":return f?"godzina":"godzinę";case"hh":return v+(o(c)?"godziny":"godzin");case"ww":return v+(o(c)?"tygodnie":"tygodni");case"MM":return v+(o(c)?"miesiące":"miesięcy");case"yy":return v+(o(c)?"lata":"lat")}}var d=t.defineLocale("pl",{months:function(c,f){return c?/D MMMM/.test(f)?n[c.month()]:a[c.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 cr=="function"?Zt():t.moment)})(It,function(t){//! moment.js locale configuration
|
37
|
+
function a(l,d){var c=l.split("_");return d%10===1&&d%100!==11?c[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?c[1]:c[2]}function n(l,d,c){var f={ss:d?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:d?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return c==="m"?d?"минута":"минуту":l+" "+a(f[c],+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,c){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 cr=="function"?Zt():t.moment)})(It,function(t){//! moment.js locale configuration
|
38
|
+
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 m={ss:c?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:c?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:c?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return f==="m"?c?"хвилина":"хвилину":f==="h"?c?"година":"годину":d+" "+a(m[f],+d)}function s(d,c){var f={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},m;return d===!0?f.nominative.slice(1,7).concat(f.nominative.slice(0,1)):d?(m=/(\[[ВвУу]\]) ?dddd/.test(c)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(c)?"genitive":"nominative",f[m][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,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 he=function(e){try{return!!e()}catch{return!0}},Mb=he,Yn=!Mb(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Pu=Yn,Iu=Function.prototype,Go=Iu.call,Ab=Pu&&Iu.bind.bind(Go,Go),ge=Pu?Ab:function(e){return function(){return Go.apply(e,arguments)}},Vb=Math.ceil,Rb=Math.floor,Lb=Math.trunc||function(r){var t=+r;return(t>0?Rb:Vb)(t)},Fb=Lb,jn=function(e){var r=+e;return r!==r||r===0?0:Fb(r)},qa=function(e){return e&&e.Math===Math&&e},Ce=qa(typeof globalThis=="object"&&globalThis)||qa(typeof window=="object"&&window)||qa(typeof self=="object"&&self)||qa(typeof It=="object"&&It)||function(){return this}()||It||Function("return this")(),Mu={exports:{}},Yb=!0,Au=Ce,jb=Object.defineProperty,Bb=function(e,r){try{jb(Au,e,{value:r,configurable:!0,writable:!0})}catch{Au[e]=r}return r},Hb=Ce,Wb=Bb,Vu="__core-js_shared__",Gb=Hb[Vu]||Wb(Vu,{}),zo=Gb,Ru=zo;(Mu.exports=function(e,r){return Ru[e]||(Ru[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 ji=Mu.exports,Bi=function(e){return e==null},zb=Bi,Ub=TypeError,Hi=function(e){if(zb(e))throw new Ub("Can't call method on "+e);return e},Xb=Hi,qb=Object,ft=function(e){return qb(Xb(e))},Kb=ge,Zb=ft,Qb=Kb({}.hasOwnProperty),Xe=Object.hasOwn||function(r,t){return Qb(Zb(r),t)},Jb=ge,e0=0,t0=Math.random(),r0=Jb(1 .toString),Ka=function(e){return"Symbol("+(e===void 0?"":e)+")_"+r0(++e0+t0,36)},Gr=typeof navigator<"u"&&String(navigator.userAgent)||"",Lu=Ce,Uo=Gr,Fu=Lu.process,Yu=Lu.Deno,ju=Fu&&Fu.versions||Yu&&Yu.version,Bu=ju&&ju.v8,Qt,Za;Bu&&(Qt=Bu.split("."),Za=Qt[0]>0&&Qt[0]<4?1:+(Qt[0]+Qt[1])),!Za&&Uo&&(Qt=Uo.match(/Edge\/(\d+)/),(!Qt||Qt[1]>=74)&&(Qt=Uo.match(/Chrome\/(\d+)/),Qt&&(Za=+Qt[1])));var Wi=Za,Hu=Wi,i0=he,n0=Ce,a0=n0.String,Gi=!!Object.getOwnPropertySymbols&&!i0(function(){var e=Symbol("symbol detection");return!a0(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hu&&Hu<41}),s0=Gi,Wu=s0&&!Symbol.sham&&typeof Symbol.iterator=="symbol",o0=Ce,l0=ji,Gu=Xe,d0=Ka,c0=Gi,u0=Wu,zi=o0.Symbol,Xo=l0("wks"),h0=u0?zi.for||zi:zi&&zi.withoutSetter||d0,Oe=function(e){return Gu(Xo,e)||(Xo[e]=c0&&Gu(zi,e)?zi[e]:h0("Symbol."+e)),Xo[e]},f0=Oe,p0=f0("toStringTag"),zu={};zu[p0]="z";var qo=String(zu)==="[object z]",Ko=typeof document=="object"&&document.all,m0=typeof Ko>"u"&&Ko!==void 0,Uu={all:Ko,IS_HTMLDDA:m0},Xu=Uu,v0=Xu.all,Be=Xu.IS_HTMLDDA?function(e){return typeof e=="function"||e===v0}:function(e){return typeof e=="function"},qu=ge,g0=qu({}.toString),y0=qu("".slice),_r=function(e){return y0(g0(e),8,-1)},_0=qo,b0=Be,Qa=_r,w0=Oe,k0=w0("toStringTag"),x0=Object,E0=Qa(function(){return arguments}())==="Arguments",S0=function(e,r){try{return e[r]}catch{}},br=_0?Qa:function(e){var r,t,a;return e===void 0?"Undefined":e===null?"Null":typeof(t=S0(r=x0(e),k0))=="string"?t:E0?Qa(r):(a=Qa(r))==="Object"&&b0(r.callee)?"Arguments":a},$0=br,D0=String,Wt=function(e){if($0(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return D0(e)},Zo=ge,T0=jn,N0=Wt,C0=Hi,O0=Zo("".charAt),Ku=Zo("".charCodeAt),P0=Zo("".slice),I0=function(e){return function(r,t){var a=N0(C0(r)),n=T0(t),s=a.length,o,l;return n<0||n>=s?e?"":void 0:(o=Ku(a,n),o<55296||o>56319||n+1===s||(l=Ku(a,n+1))<56320||l>57343?e?O0(a,n):o:e?P0(a,n,n+2):(o-55296<<10)+(l-56320)+65536)}},M0={charAt:I0(!0)},A0=Ce,V0=Be,Zu=A0.WeakMap,R0=V0(Zu)&&/native code/.test(String(Zu)),Qu=Be,Ju=Uu,L0=Ju.all,Je=Ju.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Qu(e)||e===L0}:function(e){return typeof e=="object"?e!==null:Qu(e)},F0=he,Ke=!F0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),xt={},Y0=Ce,eh=Je,Qo=Y0.document,j0=eh(Qo)&&eh(Qo.createElement),Jo=function(e){return j0?Qo.createElement(e):{}},B0=Ke,H0=he,W0=Jo,th=!B0&&!H0(function(){return Object.defineProperty(W0("div"),"a",{get:function(){return 7}}).a!==7}),G0=Ke,z0=he,rh=G0&&z0(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),U0=Je,X0=String,q0=TypeError,Mt=function(e){if(U0(e))return e;throw new q0(X0(e)+" is not an object")},K0=Yn,Ja=Function.prototype.call,et=K0?Ja.bind(Ja):function(){return Ja.apply(Ja,arguments)},ye={},el=ye,tl=Ce,Z0=Be,ih=function(e){return Z0(e)?e:void 0},pt=function(e,r){return arguments.length<2?ih(el[e])||ih(tl[e]):el[e]&&el[e][r]||tl[e]&&tl[e][r]},Q0=ge,we=Q0({}.isPrototypeOf),J0=pt,ew=Be,tw=we,rw=Wu,iw=Object,Bn=rw?function(e){return typeof e=="symbol"}:function(e){var r=J0("Symbol");return ew(r)&&tw(r.prototype,iw(e))},nw=String,Ui=function(e){try{return nw(e)}catch{return"Object"}},aw=Be,sw=Ui,ow=TypeError,Et=function(e){if(aw(e))return e;throw new ow(sw(e)+" is not a function")},lw=Et,dw=Bi,rl=function(e,r){var t=e[r];return dw(t)?void 0:lw(t)},il=et,nl=Be,al=Je,cw=TypeError,uw=function(e,r){var t,a;if(r==="string"&&nl(t=e.toString)&&!al(a=il(t,e))||nl(t=e.valueOf)&&!al(a=il(t,e))||r!=="string"&&nl(t=e.toString)&&!al(a=il(t,e)))return a;throw new cw("Can't convert object to primitive value")},hw=et,nh=Je,ah=Bn,fw=rl,pw=uw,mw=Oe,vw=TypeError,gw=mw("toPrimitive"),yw=function(e,r){if(!nh(e)||ah(e))return e;var t=fw(e,gw),a;if(t){if(r===void 0&&(r="default"),a=hw(t,e,r),!nh(a)||ah(a))return a;throw new vw("Can't convert object to primitive value")}return r===void 0&&(r="number"),pw(e,r)},_w=yw,bw=Bn,es=function(e){var r=_w(e,"string");return bw(r)?r:r+""},ww=Ke,kw=th,xw=rh,ts=Mt,sh=es,Ew=TypeError,sl=Object.defineProperty,Sw=Object.getOwnPropertyDescriptor,ol="enumerable",ll="configurable",dl="writable";xt.f=ww?xw?function(r,t,a){if(ts(r),t=sh(t),ts(a),typeof r=="function"&&t==="prototype"&&"value"in a&&dl in a&&!a[dl]){var n=Sw(r,t);n&&n[dl]&&(r[t]=a.value,a={configurable:ll in a?a[ll]:n[ll],enumerable:ol in a?a[ol]:n[ol],writable:!1})}return sl(r,t,a)}:sl:function(r,t,a){if(ts(r),t=sh(t),ts(a),kw)try{return sl(r,t,a)}catch{}if("get"in a||"set"in a)throw new Ew("Accessors not supported");return"value"in a&&(r[t]=a.value),r};var ui=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},$w=Ke,Dw=xt,Tw=ui,wr=$w?function(e,r,t){return Dw.f(e,r,Tw(1,t))}:function(e,r,t){return e[r]=t,e},Nw=ji,Cw=Ka,oh=Nw("keys"),rs=function(e){return oh[e]||(oh[e]=Cw(e))},Hn={},Ow=R0,lh=Ce,Pw=Je,Iw=wr,cl=Xe,ul=zo,Mw=rs,Aw=Hn,dh="Object already initialized",hl=lh.TypeError,Vw=lh.WeakMap,is,Wn,ns,Rw=function(e){return ns(e)?Wn(e):is(e,{})},Lw=function(e){return function(r){var t;if(!Pw(r)||(t=Wn(r)).type!==e)throw new hl("Incompatible receiver, "+e+" required");return t}};if(Ow||ul.state){var ur=ul.state||(ul.state=new Vw);ur.get=ur.get,ur.has=ur.has,ur.set=ur.set,is=function(e,r){if(ur.has(e))throw new hl(dh);return r.facade=e,ur.set(e,r),r},Wn=function(e){return ur.get(e)||{}},ns=function(e){return ur.has(e)}}else{var Xi=Mw("state");Aw[Xi]=!0,is=function(e,r){if(cl(e,Xi))throw new hl(dh);return r.facade=e,Iw(e,Xi,r),r},Wn=function(e){return cl(e,Xi)?e[Xi]:{}},ns=function(e){return cl(e,Xi)}}var qi={set:is,get:Wn,has:ns,enforce:Rw,getterFor:Lw},Fw=Yn,ch=Function.prototype,uh=ch.apply,hh=ch.call,Ki=typeof Reflect=="object"&&Reflect.apply||(Fw?hh.bind(uh):function(){return hh.apply(uh,arguments)}),Yw=_r,jw=ge,fl=function(e){if(Yw(e)==="Function")return jw(e)},hi={},Gn={},fh={}.propertyIsEnumerable,ph=Object.getOwnPropertyDescriptor,Bw=ph&&!fh.call({1:2},1);Gn.f=Bw?function(r){var t=ph(this,r);return!!t&&t.enumerable}:fh;var Hw=ge,Ww=he,Gw=_r,pl=Object,zw=Hw("".split),as=Ww(function(){return!pl("z").propertyIsEnumerable(0)})?function(e){return Gw(e)==="String"?zw(e,""):pl(e)}:pl,Uw=as,Xw=Hi,Jt=function(e){return Uw(Xw(e))},qw=Ke,Kw=et,Zw=Gn,Qw=ui,Jw=Jt,e1=es,t1=Xe,r1=th,mh=Object.getOwnPropertyDescriptor;hi.f=qw?mh:function(r,t){if(r=Jw(r),t=e1(t),r1)try{return mh(r,t)}catch{}if(t1(r,t))return Qw(!Kw(Zw.f,r,t),r[t])};var i1=he,n1=Be,a1=/#|\.prototype\./,zn=function(e,r){var t=o1[s1(e)];return t===d1?!0:t===l1?!1:n1(r)?i1(r):!!r},s1=zn.normalize=function(e){return String(e).replace(a1,".").toLowerCase()},o1=zn.data={},l1=zn.NATIVE="N",d1=zn.POLYFILL="P",vh=zn,gh=fl,c1=Et,u1=Yn,h1=gh(gh.bind),zr=function(e,r){return c1(e),r===void 0?e:u1?h1(e,r):function(){return e.apply(r,arguments)}},ss=Ce,f1=Ki,p1=fl,m1=Be,v1=hi.f,g1=vh,Zi=ye,y1=zr,Qi=wr,yh=Xe,_1=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 f1(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?ss:n?ss[t]:(ss[t]||{}).prototype,l=a?Zi:Zi[t]||Qi(Zi,t,{})[t],d=l.prototype,c,f,m,v,y,b,E,w,S;for(v in r)c=g1(a?v:t+(n?".":"#")+v,e.forced),f=!c&&o&&yh(o,v),b=l[v],f&&(e.dontCallGetSet?(S=v1(o,v),E=S&&S.value):E=o[v]),y=f&&E?E:r[v],!(f&&typeof b==typeof y)&&(e.bind&&f?w=y1(y,ss):e.wrap&&f?w=_1(y):s&&m1(y)?w=p1(y):w=y,(e.sham||y&&y.sham||b&&b.sham)&&Qi(w,"sham",!0),Qi(l,v,w),s&&(m=t+"Prototype",yh(Zi,m)||Qi(Zi,m,{}),Qi(Zi[m],v,y),e.real&&d&&(c||!d[v])&&Qi(d,v,y)))},ml=Ke,b1=Xe,_h=Function.prototype,w1=ml&&Object.getOwnPropertyDescriptor,bh=b1(_h,"name"),k1=bh&&(function(){}).name==="something";bh&&(!ml||ml&&w1(_h,"name").configurable);var x1={PROPER:k1},os={},E1=jn,S1=Math.max,$1=Math.min,Un=function(e,r){var t=E1(e);return t<0?S1(t+r,0):$1(t,r)},D1=jn,T1=Math.min,N1=function(e){return e>0?T1(D1(e),9007199254740991):0},C1=N1,St=function(e){return C1(e.length)},O1=Jt,P1=Un,I1=St,wh=function(e){return function(r,t,a){var n=O1(r),s=I1(n),o=P1(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}},vl={includes:wh(!0),indexOf:wh(!1)},M1=ge,gl=Xe,A1=Jt,V1=vl.indexOf,R1=Hn,kh=M1([].push),xh=function(e,r){var t=A1(e),a=0,n=[],s;for(s in t)!gl(R1,s)&&gl(t,s)&&kh(n,s);for(;r.length>a;)gl(t,s=r[a++])&&(~V1(n,s)||kh(n,s));return n},yl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],L1=xh,F1=yl,Xn=Object.keys||function(r){return L1(r,F1)},Y1=Ke,j1=rh,B1=xt,H1=Mt,W1=Jt,G1=Xn;os.f=Y1&&!j1?Object.defineProperties:function(r,t){H1(r);for(var a=W1(t),n=G1(t),s=n.length,o=0,l;s>o;)B1.f(r,l=n[o++],a[l]);return r};var z1=pt,Eh=z1("document","documentElement"),U1=Mt,X1=os,Sh=yl,q1=Hn,K1=Eh,Z1=Jo,Q1=rs,$h=">",Dh="<",_l="prototype",bl="script",Th=Q1("IE_PROTO"),wl=function(){},Nh=function(e){return Dh+bl+$h+e+Dh+"/"+bl+$h},Ch=function(e){e.write(Nh("")),e.close();var r=e.parentWindow.Object;return e=null,r},J1=function(){var e=Z1("iframe"),r="java"+bl+":",t;return e.style.display="none",K1.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Nh("document.F=Object")),t.close(),t.F},ls,ds=function(){try{ls=new ActiveXObject("htmlfile")}catch{}ds=typeof document<"u"?document.domain&&ls?Ch(ls):J1():Ch(ls);for(var e=Sh.length;e--;)delete ds[_l][Sh[e]];return ds()};q1[Th]=!0;var fi=Object.create||function(r,t){var a;return r!==null?(wl[_l]=U1(r),a=new wl,wl[_l]=null,a[Th]=r):a=ds(),t===void 0?a:X1.f(a,t)},ek=he,Oh=!ek(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),tk=Xe,rk=Be,ik=ft,nk=rs,ak=Oh,Ph=nk("IE_PROTO"),kl=Object,sk=kl.prototype,qn=ak?kl.getPrototypeOf:function(e){var r=ik(e);if(tk(r,Ph))return r[Ph];var t=r.constructor;return rk(t)&&r instanceof t?t.prototype:r instanceof kl?sk:null},ok=wr,Ji=function(e,r,t,a){return a&&a.enumerable?e[r]=t:ok(e,r,t),e},lk=he,dk=Be,ck=Je,uk=fi,Ih=qn,hk=Ji,fk=Oe,xl=fk("iterator"),Mh=!1,kr,El,Sl;[].keys&&(Sl=[].keys(),"next"in Sl?(El=Ih(Ih(Sl)),El!==Object.prototype&&(kr=El)):Mh=!0);var pk=!ck(kr)||lk(function(){var e={};return kr[xl].call(e)!==e});pk?kr={}:kr=uk(kr),dk(kr[xl])||hk(kr,xl,function(){return this});var Ah={IteratorPrototype:kr,BUGGY_SAFARI_ITERATORS:Mh},mk=qo,vk=br,gk=mk?{}.toString:function(){return"[object "+vk(this)+"]"},yk=qo,_k=xt.f,bk=wr,wk=Xe,kk=gk,xk=Oe,Vh=xk("toStringTag"),pi=function(e,r,t,a){if(e){var n=t?e:e.prototype;wk(n,Vh)||_k(n,Vh,{configurable:!0,value:r}),a&&!yk&&bk(n,"toString",kk)}},en={},Ek=Ah.IteratorPrototype,Sk=fi,$k=ui,Dk=pi,Tk=en,Nk=function(){return this},Ck=function(e,r,t,a){var n=r+" Iterator";return e.prototype=Sk(Ek,{next:$k(+!a,t)}),Dk(e,n,!1,!0),Tk[n]=Nk,e},Ok=ge,Pk=Et,Ik=function(e,r,t){try{return Ok(Pk(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}},Mk=Be,Ak=String,Vk=TypeError,Rk=function(e){if(typeof e=="object"||Mk(e))return e;throw new Vk("Can't set "+Ak(e)+" as a prototype")},Lk=Ik,Fk=Mt,Yk=Rk,Rh=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Lk(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(n,s){return Fk(n),Yk(s),e?t(n,s):n.__proto__=s,n}}():void 0),jk=U,Bk=et,Hk=x1,Wk=Ck,Gk=qn,zk=pi,Lh=Ji,Uk=Oe,Fh=en,Xk=Ah,qk=Hk.PROPER,cs=Xk.BUGGY_SAFARI_ITERATORS,$l=Uk("iterator"),Yh="keys",us="values",jh="entries",Kk=function(){return this},Dl=function(e,r,t,a,n,s,o){Wk(t,r,a);var l=function(S){if(S===n&&v)return v;if(!cs&&S&&S in f)return f[S];switch(S){case Yh:return function(){return new t(this,S)};case us:return function(){return new t(this,S)};case jh:return function(){return new t(this,S)}}return function(){return new t(this)}},d=r+" Iterator",c=!1,f=e.prototype,m=f[$l]||f["@@iterator"]||n&&f[n],v=!cs&&m||l(n),y=r==="Array"&&f.entries||m,b,E,w;if(y&&(b=Gk(y.call(new e)),b!==Object.prototype&&b.next&&(zk(b,d,!0,!0),Fh[d]=Kk)),qk&&n===us&&m&&m.name!==us&&(c=!0,v=function(){return Bk(m,this)}),n)if(E={values:l(us),keys:s?v:l(Yh),entries:l(jh)},o)for(w in E)(cs||c||!(w in f))&&Lh(f,w,E[w]);else jk({target:r,proto:!0,forced:cs||c},E);return o&&f[$l]!==v&&Lh(f,$l,v,{}),Fh[r]=v,E},Tl=function(e,r){return{value:e,done:r}},Zk=M0.charAt,Qk=Wt,Bh=qi,Jk=Dl,Hh=Tl,Wh="String Iterator",ex=Bh.set,tx=Bh.getterFor(Wh);Jk(String,"String",function(e){ex(this,{type:Wh,string:Qk(e),index:0})},function(){var r=tx(this),t=r.string,a=r.index,n;return a>=t.length?Hh(void 0,!0):(n=Zk(t,a),r.index+=n.length,Hh(n,!1))});var rx=et,Gh=Mt,ix=rl,zh=function(e,r,t){var a,n;Gh(e);try{if(a=ix(e,"return"),!a){if(r==="throw")throw t;return t}a=rx(a,e)}catch(s){n=!0,a=s}if(r==="throw")throw t;if(n)throw a;return Gh(a),t},nx=Mt,ax=zh,sx=function(e,r,t,a){try{return a?r(nx(t)[0],t[1]):r(t)}catch(n){ax(e,"throw",n)}},ox=Oe,lx=en,dx=ox("iterator"),cx=Array.prototype,Uh=function(e){return e!==void 0&&(lx.Array===e||cx[dx]===e)},ux=ge,hx=Be,Nl=zo,fx=ux(Function.toString);hx(Nl.inspectSource)||(Nl.inspectSource=function(e){return fx(e)});var Xh=Nl.inspectSource,px=ge,mx=he,qh=Be,vx=br,gx=pt,yx=Xh,Kh=function(){},_x=[],Zh=gx("Reflect","construct"),Cl=/^\s*(?:class|function)\b/,bx=px(Cl.exec),wx=!Cl.test(Kh),Kn=function(r){if(!qh(r))return!1;try{return Zh(Kh,_x,r),!0}catch{return!1}},Qh=function(r){if(!qh(r))return!1;switch(vx(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wx||!!bx(Cl,yx(r))}catch{return!0}};Qh.sham=!0;var hs=!Zh||mx(function(){var e;return Kn(Kn.call)||!Kn(Object)||!Kn(function(){e=!0})||e})?Qh:Kn,kx=es,xx=xt,Ex=ui,tn=function(e,r,t){var a=kx(r);a in e?xx.f(e,a,Ex(0,t)):e[a]=t},Sx=br,Jh=rl,$x=Bi,Dx=en,Tx=Oe,Nx=Tx("iterator"),fs=function(e){if(!$x(e))return Jh(e,Nx)||Jh(e,"@@iterator")||Dx[Sx(e)]},Cx=et,Ox=Et,Px=Mt,Ix=Ui,Mx=fs,Ax=TypeError,Ol=function(e,r){var t=arguments.length<2?Mx(e):r;if(Ox(t))return Px(Cx(t,e));throw new Ax(Ix(e)+" is not iterable")},Vx=zr,Rx=et,Lx=ft,Fx=sx,Yx=Uh,jx=hs,Bx=St,ef=tn,Hx=Ol,Wx=fs,tf=Array,Gx=function(r){var t=Lx(r),a=jx(this),n=arguments.length,s=n>1?arguments[1]:void 0,o=s!==void 0;o&&(s=Vx(s,n>2?arguments[2]:void 0));var l=Wx(t),d=0,c,f,m,v,y,b;if(l&&!(this===tf&&Yx(l)))for(v=Hx(t,l),y=v.next,f=a?new this:[];!(m=Rx(y,v)).done;d++)b=o?Fx(v,s,[m.value,d],!0):m.value,ef(f,d,b);else for(c=Bx(t),f=a?new this(c):tf(c);c>d;d++)b=o?s(t[d],d):t[d],ef(f,d,b);return f.length=d,f},zx=Oe,rf=zx("iterator"),nf=!1;try{var Ux=0,af={next:function(){return{done:!!Ux++}},return:function(){nf=!0}};af[rf]=function(){return this},Array.from(af,function(){throw 2})}catch{}var sf=function(e,r){try{if(!r&&!nf)return!1}catch{return!1}var t=!1;try{var a={};a[rf]=function(){return{next:function(){return{done:t=!0}}}},e(a)}catch{}return t},Xx=U,qx=Gx,Kx=sf,Zx=!Kx(function(e){Array.from(e)});Xx({target:"Array",stat:!0,forced:Zx},{from:qx});var Qx=ye,Jx=Qx.Array.from,eE=Jx,of=eE,tE=of,Ur=G(tE),rE=Jt,lf=en,df=qi;xt.f;var iE=Dl,ps=Tl,cf="Array Iterator",nE=df.set,aE=df.getterFor(cf);iE(Array,"Array",function(e,r){nE(this,{type:cf,target:rE(e),index:0,kind:r})},function(){var e=aE(this),r=e.target,t=e.kind,a=e.index++;if(!r||a>=r.length)return e.target=void 0,ps(void 0,!0);switch(t){case"keys":return ps(a,!1);case"values":return ps(r[a],!1)}return ps([a,r[a]],!1)},"values"),lf.Arguments=lf.Array;var sE=fs,oE=sE,lE={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},dE=lE,cE=Ce,uE=br,hE=wr,uf=en,fE=Oe,hf=fE("toStringTag");for(var Pl in dE){var ff=cE[Pl],Il=ff&&ff.prototype;Il&&uE(Il)!==hf&&hE(Il,hf,Pl),uf[Pl]=uf.Array}var pE=oE,mE=pE,vE=mE,gE=vE,yE=gE,_E=yE,pf=_E,mf=G(pf),bE=pf,Xr=G(bE);function de(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var vf={exports:{}},wE=U,kE=Ke,gf=xt.f;wE({target:"Object",stat:!0,forced:Object.defineProperty!==gf,sham:!kE},{defineProperty:gf});var xE=ye,yf=xE.Object,EE=vf.exports=function(r,t,a){return yf.defineProperty(r,t,a)};yf.defineProperty.sham&&(EE.sham=!0);var SE=vf.exports,$E=SE,_f=$E,DE=_f,TE=DE,NE=TE,CE=NE,bf=CE,ms=G(bf),OE=_r,qr=Array.isArray||function(r){return OE(r)==="Array"},PE=TypeError,IE=9007199254740991,vs=function(e){if(e>IE)throw PE("Maximum allowed index exceeded");return e},wf=qr,ME=hs,AE=Je,VE=Oe,RE=VE("species"),kf=Array,LE=function(e){var r;return wf(e)&&(r=e.constructor,ME(r)&&(r===kf||wf(r.prototype))?r=void 0:AE(r)&&(r=r[RE],r===null&&(r=void 0))),r===void 0?kf:r},FE=LE,gs=function(e,r){return new(FE(e))(r===0?0:r)},YE=he,jE=Oe,BE=Wi,HE=jE("species"),Zn=function(e){return BE>=51||!YE(function(){var r=[],t=r.constructor={};return t[HE]=function(){return{foo:1}},r[e](Boolean).foo!==1})},WE=U,GE=he,zE=qr,UE=Je,XE=ft,qE=St,xf=vs,Ef=tn,KE=gs,ZE=Zn,QE=Oe,JE=Wi,Sf=QE("isConcatSpreadable"),eS=JE>=51||!GE(function(){var e=[];return e[Sf]=!1,e.concat()[0]!==e}),tS=function(e){if(!UE(e))return!1;var r=e[Sf];return r!==void 0?!!r:zE(e)},rS=!eS||!ZE("concat");WE({target:"Array",proto:!0,forced:rS},{concat:function(r){var t=XE(this),a=KE(t,0),n=0,s,o,l,d,c;for(s=-1,l=arguments.length;s<l;s++)if(c=s===-1?t:arguments[s],tS(c))for(d=qE(c),xf(n+d),o=0;o<d;o++,n++)o in c&&Ef(a,n,c[o]);else xf(n+1),Ef(a,n++,c);return a.length=n,a}});var Qn={},iS=xh,nS=yl,aS=nS.concat("length","prototype");Qn.f=Object.getOwnPropertyNames||function(r){return iS(r,aS)};var Ml={},$f=Un,sS=St,oS=tn,lS=Array,dS=Math.max,Df=function(e,r,t){for(var a=sS(e),n=$f(r,a),s=$f(t===void 0?a:t,a),o=lS(dS(s-n,0)),l=0;n<s;n++,l++)oS(o,l,e[n]);return o.length=l,o},cS=_r,uS=Jt,Tf=Qn.f,hS=Df,Nf=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fS=function(e){try{return Tf(e)}catch{return hS(Nf)}};Ml.f=function(r){return Nf&&cS(r)==="Window"?fS(r):Tf(uS(r))};var Jn={};Jn.f=Object.getOwnPropertySymbols;var pS=xt,Al=function(e,r,t){return pS.f(e,r,t)},ea={},mS=Oe;ea.f=mS;var Cf=ye,vS=Xe,gS=ea,yS=xt.f,He=function(e){var r=Cf.Symbol||(Cf.Symbol={});vS(r,e)||yS(r,e,{value:gS.f(e)})},_S=et,bS=pt,wS=Oe,kS=Ji,Of=function(){var e=bS("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,a=wS("toPrimitive");r&&!r[a]&&kS(r,a,function(n){return _S(t,this)},{})},xS=zr,ES=ge,SS=as,$S=ft,DS=St,TS=gs,Pf=ES([].push),mi=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,c,f,m){for(var v=$S(d),y=SS(v),b=xS(c,f),E=DS(y),w=0,S=m||TS,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,v),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:Pf(D,T)}else switch(e){case 4:return!1;case 7:Pf(D,T)}return s?-1:a||n?n:D}},xr={forEach:mi(0),map:mi(1),filter:mi(2),some:mi(3),every:mi(4),find:mi(5),findIndex:mi(6)},ys=U,_s=Ce,Vl=et,NS=ge,rn=Ke,nn=Gi,CS=he,tt=Xe,OS=we,Rl=Mt,bs=Jt,Ll=es,PS=Wt,Fl=ui,ta=fi,If=Xn,IS=Qn,Mf=Ml,MS=Jn,Af=hi,Vf=xt,AS=os,Rf=Gn,Lf=Ji,VS=Al,Yl=ji,RS=rs,Ff=Hn,Yf=Ka,LS=Oe,FS=ea,YS=He,jS=Of,BS=pi,jf=qi,ws=xr.forEach,$t=RS("hidden"),ks="Symbol",ra="prototype",HS=jf.set,Bf=jf.getterFor(ks),er=Object[ra],vi=_s.Symbol,ia=vi&&vi[ra],WS=_s.RangeError,GS=_s.TypeError,jl=_s.QObject,Hf=Af.f,gi=Vf.f,Wf=Mf.f,zS=Rf.f,Gf=NS([].push),Er=Yl("symbols"),na=Yl("op-symbols"),US=Yl("wks"),Bl=!jl||!jl[ra]||!jl[ra].findChild,zf=function(e,r,t){var a=Hf(er,r);a&&delete er[r],gi(e,r,t),a&&e!==er&&gi(er,r,a)},Hl=rn&&CS(function(){return ta(gi({},"a",{get:function(){return gi(this,"a",{value:7}).a}})).a!==7})?zf:gi,Wl=function(e,r){var t=Er[e]=ta(ia);return HS(t,{type:ks,tag:e,description:r}),rn||(t.description=r),t},xs=function(r,t,a){r===er&&xs(na,t,a),Rl(r);var n=Ll(t);return Rl(a),tt(Er,n)?(a.enumerable?(tt(r,$t)&&r[$t][n]&&(r[$t][n]=!1),a=ta(a,{enumerable:Fl(0,!1)})):(tt(r,$t)||gi(r,$t,Fl(1,{})),r[$t][n]=!0),Hl(r,n,a)):gi(r,n,a)},Gl=function(r,t){Rl(r);var a=bs(t),n=If(a).concat(Kf(a));return ws(n,function(s){(!rn||Vl(Uf,a,s))&&xs(r,s,a[s])}),r},XS=function(r,t){return t===void 0?ta(r):Gl(ta(r),t)},Uf=function(r){var t=Ll(r),a=Vl(zS,this,t);return this===er&&tt(Er,t)&&!tt(na,t)?!1:a||!tt(this,t)||!tt(Er,t)||tt(this,$t)&&this[$t][t]?a:!0},Xf=function(r,t){var a=bs(r),n=Ll(t);if(!(a===er&&tt(Er,n)&&!tt(na,n))){var s=Hf(a,n);return s&&tt(Er,n)&&!(tt(a,$t)&&a[$t][n])&&(s.enumerable=!0),s}},qf=function(r){var t=Wf(bs(r)),a=[];return ws(t,function(n){!tt(Er,n)&&!tt(Ff,n)&&Gf(a,n)}),a},Kf=function(e){var r=e===er,t=Wf(r?na:bs(e)),a=[];return ws(t,function(n){tt(Er,n)&&(!r||tt(er,n))&&Gf(a,Er[n])}),a};nn||(vi=function(){if(OS(ia,this))throw new GS("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:PS(arguments[0]),t=Yf(r),a=function(n){this===er&&Vl(a,na,n),tt(this,$t)&&tt(this[$t],t)&&(this[$t][t]=!1);var s=Fl(1,n);try{Hl(this,t,s)}catch(o){if(!(o instanceof WS))throw o;zf(this,t,s)}};return rn&&Bl&&Hl(er,t,{configurable:!0,set:a}),Wl(t,r)},ia=vi[ra],Lf(ia,"toString",function(){return Bf(this).tag}),Lf(vi,"withoutSetter",function(e){return Wl(Yf(e),e)}),Rf.f=Uf,Vf.f=xs,AS.f=Gl,Af.f=Xf,IS.f=Mf.f=qf,MS.f=Kf,FS.f=function(e){return Wl(LS(e),e)},rn&&VS(ia,"description",{configurable:!0,get:function(){return Bf(this).description}})),ys({global:!0,wrap:!0,forced:!nn,sham:!nn},{Symbol:vi}),ws(If(US),function(e){YS(e)}),ys({target:ks,stat:!0,forced:!nn},{useSetter:function(){Bl=!0},useSimple:function(){Bl=!1}}),ys({target:"Object",stat:!0,forced:!nn,sham:!rn},{create:XS,defineProperty:xs,defineProperties:Gl,getOwnPropertyDescriptor:Xf}),ys({target:"Object",stat:!0,forced:!nn},{getOwnPropertyNames:qf}),jS(),BS(vi,ks),Ff[$t]=!0;var qS=Gi,Zf=qS&&!!Symbol.for&&!!Symbol.keyFor,KS=U,ZS=pt,QS=Xe,JS=Wt,Qf=ji,e$=Zf,zl=Qf("string-to-symbol-registry"),t$=Qf("symbol-to-string-registry");KS({target:"Symbol",stat:!0,forced:!e$},{for:function(e){var r=JS(e);if(QS(zl,r))return zl[r];var t=ZS("Symbol")(r);return zl[r]=t,t$[t]=r,t}});var r$=U,i$=Xe,n$=Bn,a$=Ui,s$=ji,o$=Zf,Jf=s$("symbol-to-string-registry");r$({target:"Symbol",stat:!0,forced:!o$},{keyFor:function(r){if(!n$(r))throw new TypeError(a$(r)+" is not a symbol");if(i$(Jf,r))return Jf[r]}});var l$=ge,aa=l$([].slice),d$=ge,ep=qr,c$=Be,tp=_r,u$=Wt,rp=d$([].push),h$=function(e){if(c$(e))return e;if(ep(e)){for(var r=e.length,t=[],a=0;a<r;a++){var n=e[a];typeof n=="string"?rp(t,n):(typeof n=="number"||tp(n)==="Number"||tp(n)==="String")&&rp(t,u$(n))}var s=t.length,o=!0;return function(l,d){if(o)return o=!1,d;if(ep(this))return d;for(var c=0;c<s;c++)if(t[c]===l)return d}}},f$=U,ip=pt,np=Ki,p$=et,sa=ge,ap=he,sp=Be,op=Bn,lp=aa,m$=h$,v$=Gi,g$=String,Kr=ip("JSON","stringify"),Es=sa(/./.exec),dp=sa("".charAt),y$=sa("".charCodeAt),_$=sa("".replace),b$=sa(1 .toString),w$=/[\uD800-\uDFFF]/g,cp=/^[\uD800-\uDBFF]$/,up=/^[\uDC00-\uDFFF]$/,hp=!v$||ap(function(){var e=ip("Symbol")("stringify detection");return Kr([e])!=="[null]"||Kr({a:e})!=="{}"||Kr(Object(e))!=="{}"}),fp=ap(function(){return Kr("\uDF06\uD834")!=='"\\udf06\\ud834"'||Kr("\uDEAD")!=='"\\udead"'}),k$=function(e,r){var t=lp(arguments),a=m$(r);if(!(!sp(a)&&(e===void 0||op(e))))return t[1]=function(n,s){if(sp(a)&&(s=p$(a,this,g$(n),s)),!op(s))return s},np(Kr,null,t)},x$=function(e,r,t){var a=dp(t,r-1),n=dp(t,r+1);return Es(cp,e)&&!Es(up,n)||Es(up,e)&&!Es(cp,a)?"\\u"+b$(y$(e,0),16):e};Kr&&f$({target:"JSON",stat:!0,forced:hp||fp},{stringify:function(r,t,a){var n=lp(arguments),s=np(hp?k$:Kr,null,n);return fp&&typeof s=="string"?_$(s,w$,x$):s}});var E$=U,S$=Gi,$$=he,pp=Jn,D$=ft,T$=!S$||$$(function(){pp.f(1)});E$({target:"Object",stat:!0,forced:T$},{getOwnPropertySymbols:function(r){var t=pp.f;return t?t(D$(r)):[]}});var N$=He;N$("asyncIterator");var C$=He;C$("hasInstance");var O$=He;O$("isConcatSpreadable");var P$=He;P$("iterator");var I$=He;I$("match");var M$=He;M$("matchAll");var A$=He;A$("replace");var V$=He;V$("search");var R$=He;R$("species");var L$=He;L$("split");var F$=He,Y$=Of;F$("toPrimitive"),Y$();var j$=pt,B$=He,H$=pi;B$("toStringTag"),H$(j$("Symbol"),"Symbol");var W$=He;W$("unscopables");var G$=Ce,z$=pi;z$(G$.JSON,"JSON",!0);var U$=ye,X$=U$.Symbol,q$=X$,mp=q$,K$=Oe,Z$=xt.f,vp=K$("metadata"),gp=Function.prototype;gp[vp]===void 0&&Z$(gp,vp,{value:null});var Q$=He;Q$("asyncDispose");var J$=He;J$("dispose");var eD=He;eD("metadata");var tD=mp,rD=tD,iD=pt,nD=ge,Ul=iD("Symbol"),aD=Ul.keyFor,sD=nD(Ul.prototype.valueOf),yp=Ul.isRegisteredSymbol||function(r){try{return aD(sD(r))!==void 0}catch{return!1}},oD=U,lD=yp;oD({target:"Symbol",stat:!0},{isRegisteredSymbol:lD});for(var dD=ji,_p=pt,cD=ge,uD=Bn,hD=Oe,Ss=_p("Symbol"),bp=Ss.isWellKnownSymbol,wp=_p("Object","getOwnPropertyNames"),fD=cD(Ss.prototype.valueOf),kp=dD("wks"),Xl=0,xp=wp(Ss),pD=xp.length;Xl<pD;Xl++)try{var Ep=xp[Xl];uD(Ss[Ep])&&hD(Ep)}catch{}var Sp=function(r){if(bp&&bp(r))return!0;try{for(var t=fD(r),a=0,n=wp(kp),s=n.length;a<s;a++)if(kp[n[a]]==t)return!0}catch{}return!1},mD=U,vD=Sp;mD({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:vD});var gD=He;gD("matcher");var yD=He;yD("observable");var _D=U,bD=yp;_D({target:"Symbol",stat:!0},{isRegistered:bD});var wD=U,kD=Sp;wD({target:"Symbol",stat:!0,forced:!0},{isWellKnown:kD});var xD=He;xD("metadataKey");var ED=He;ED("patternMatch");var SD=He;SD("replaceAll");var $D=rD,DD=$D,ql=DD,an=G(ql),TD=ea,ND=TD.f("iterator"),CD=ND,$p=CD,OD=$p,PD=OD,ID=PD,MD=ID,Dp=MD,AD=G(Dp);function ee(e){"@babel/helpers - typeof";return ee=typeof an=="function"&&typeof AD=="symbol"?function(r){return typeof r}:function(r){return r&&typeof an=="function"&&r.constructor===an&&r!==an.prototype?"symbol":typeof r},ee(e)}var VD=ea,RD=VD.f("toPrimitive"),LD=RD,FD=LD,YD=FD,jD=YD,BD=jD,HD=BD,WD=HD,GD=G(WD);function zD(e,r){if(ee(e)!=="object"||e===null)return e;var t=e[GD];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 Tp(e){var r=zD(e,"string");return ee(r)==="symbol"?r:String(r)}function Np(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),ms(e,Tp(a.key),a)}}function ce(e,r,t){return r&&Np(e.prototype,r),t&&Np(e,t),ms(e,"prototype",{writable:!1}),e}var UD=U,XD=qr;UD({target:"Array",stat:!0},{isArray:XD});var qD=ye,KD=qD.Array.isArray,ZD=KD,Cp=ZD,QD=Cp,JD=QD,eT=JD,tT=eT,rT=tT,Op=G(rT);function iT(e){if(Op(e))return e}var nT=Ke,aT=qr,sT=TypeError,oT=Object.getOwnPropertyDescriptor,lT=nT&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Pp=lT?function(e,r){if(aT(e)&&!oT(e,"length").writable)throw new sT("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r},dT=U,cT=ft,uT=St,hT=Pp,fT=vs,pT=he,mT=pT(function(){return[].push.call({length:4294967296},1)!==4294967297}),vT=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},gT=mT||!vT();dT({target:"Array",proto:!0,forced:gT},{push:function(r){var t=cT(this),a=uT(t),n=arguments.length;fT(a+n);for(var s=0;s<n;s++)t[a]=arguments[s],a++;return hT(t,a),a}});var yT=ye,Ae=function(e){return yT[e+"Prototype"]},_T=Ae,bT=_T("Array").push,wT=we,kT=bT,Kl=Array.prototype,xT=function(e){var r=e.push;return e===Kl||wT(Kl,e)&&r===Kl.push?kT:r},ET=xT,ST=ET,$T=ST,DT=$T,TT=DT,NT=TT,Ip=NT,CT=G(Ip);function OT(e,r){var t=e==null?null:typeof an<"u"&&mf(e)||e["@@iterator"];if(t!=null){var a,n,s,o,l=[],d=!0,c=!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)&&(CT(l).call(l,a.value),l.length!==r);d=!0);}catch(f){c=!0,n=f}finally{try{if(!d&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw n}}return l}}var PT=U,Mp=qr,IT=hs,MT=Je,Ap=Un,AT=St,VT=Jt,RT=tn,LT=Oe,FT=Zn,YT=aa,jT=FT("slice"),BT=LT("species"),Zl=Array,HT=Math.max;PT({target:"Array",proto:!0,forced:!jT},{slice:function(r,t){var a=VT(this),n=AT(a),s=Ap(r,n),o=Ap(t===void 0?n:t,n),l,d,c;if(Mp(a)&&(l=a.constructor,IT(l)&&(l===Zl||Mp(l.prototype))?l=void 0:MT(l)&&(l=l[BT],l===null&&(l=void 0)),l===Zl||l===void 0))return YT(a,s,o);for(d=new(l===void 0?Zl:l)(HT(o-s,0)),c=0;s<o;s++,c++)s in a&&RT(d,c,a[s]);return d.length=c,d}});var WT=Ae,GT=WT("Array").slice,zT=we,UT=GT,Ql=Array.prototype,XT=function(e){var r=e.slice;return e===Ql||zT(Ql,e)&&r===Ql.slice?UT:r},qT=XT,Vp=qT,KT=Vp,ZT=KT,QT=ZT,JT=QT,Rp=JT,eN=G(Rp),tN=of,rN=tN,iN=rN,nN=iN,aN=nN,Lp=G(aN);function Jl(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 Fp(e,r){var t;if(e){if(typeof e=="string")return Jl(e,r);var a=eN(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Lp(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Jl(e,r)}}function sN(){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 st(e,r){return iT(e)||OT(e,r)||Fp(e,r)||sN()}function oN(e){if(Op(e))return Jl(e)}function lN(e){if(typeof an<"u"&&mf(e)!=null||e["@@iterator"]!=null)return Lp(e)}function dN(){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 oN(e)||lN(e)||Fp(e)||dN()}var cN=mp,Sr=G(cN),uN=Ae,hN=uN("Array").concat,fN=we,pN=hN,ed=Array.prototype,mN=function(e){var r=e.concat;return e===ed||fN(ed,e)&&r===ed.concat?pN:r},vN=mN,gN=vN,yN=gN,Te=G(yN),_N=Vp,ot=G(_N),bN=pt,wN=ge,kN=Qn,xN=Jn,EN=Mt,SN=wN([].concat),td=bN("Reflect","ownKeys")||function(r){var t=kN.f(EN(r)),a=xN.f;return a?SN(t,a(r)):t},$N=U,DN=td;$N({target:"Reflect",stat:!0},{ownKeys:DN});var TN=ye,NN=TN.Reflect.ownKeys,CN=NN,ON=CN,PN=ON,Yp=G(PN),IN=Cp,re=G(IN),MN=U,AN=xr.map,VN=Zn,RN=VN("map");MN({target:"Array",proto:!0,forced:!RN},{map:function(r){return AN(this,r,arguments.length>1?arguments[1]:void 0)}});var LN=Ae,FN=LN("Array").map,YN=we,jN=FN,rd=Array.prototype,BN=function(e){var r=e.map;return e===rd||YN(rd,e)&&r===rd.map?jN:r},HN=BN,WN=HN,GN=WN,_e=G(GN),zN=U,UN=ft,jp=Xn,XN=he,qN=XN(function(){jp(1)});zN({target:"Object",stat:!0,forced:qN},{keys:function(r){return jp(UN(r))}});var KN=ye,ZN=KN.Object.keys,QN=ZN,JN=QN,eC=JN,Ze=G(eC),tC=U,rC=ge,Bp=Date,iC=rC(Bp.prototype.getTime);tC({target:"Date",stat:!0},{now:function(){return iC(new Bp)}});var nC=ye,aC=nC.Date.now,sC=aC,oC=sC,lC=oC,At=G(lC),Hp=ge,dC=Et,cC=Je,uC=Xe,Wp=aa,hC=Yn,Gp=Function,fC=Hp([].concat),pC=Hp([].join),id={},mC=function(e,r,t){if(!uC(id,r)){for(var a=[],n=0;n<r;n++)a[n]="a["+n+"]";id[r]=Gp("C,a","return new C("+pC(a,",")+")")}return id[r](e,t)},zp=hC?Gp.bind:function(r){var t=dC(this),a=t.prototype,n=Wp(arguments,1),s=function(){var l=fC(n,Wp(arguments));return this instanceof s?mC(t,l.length,l):t.apply(r,l)};return cC(a)&&(s.prototype=a),s},vC=U,Up=zp;vC({target:"Function",proto:!0,forced:Function.bind!==Up},{bind:Up});var gC=Ae,yC=gC("Function").bind,_C=we,bC=yC,nd=Function.prototype,wC=function(e){var r=e.bind;return e===nd||_C(nd,e)&&r===nd.bind?bC:r},kC=wC,Xp=kC,xC=Xp,C=G(xC),EC=he,sn=function(e,r){var t=[][e];return!!t&&EC(function(){t.call(null,r||function(){return 1},1)})},SC=xr.forEach,$C=sn,DC=$C("forEach"),TC=DC?[].forEach:function(r){return SC(this,r,arguments.length>1?arguments[1]:void 0)},NC=U,qp=TC;NC({target:"Array",proto:!0,forced:[].forEach!==qp},{forEach:qp});var CC=Ae,OC=CC("Array").forEach,PC=OC,IC=PC,MC=br,AC=Xe,VC=we,RC=IC,ad=Array.prototype,LC={DOMTokenList:!0,NodeList:!0},Kp=function(e){var r=e.forEach;return e===ad||VC(ad,e)&&r===ad.forEach||AC(LC,MC(e))?RC:r},FC=Kp,j=G(FC),YC=U,jC=ge,BC=qr,HC=jC([].reverse),Zp=[1,2];YC({target:"Array",proto:!0,forced:String(Zp)===String(Zp.reverse())},{reverse:function(){return BC(this)&&(this.length=this.length),HC(this)}});var WC=Ae,GC=WC("Array").reverse,zC=we,UC=GC,sd=Array.prototype,XC=function(e){var r=e.reverse;return e===sd||zC(sd,e)&&r===sd.reverse?UC:r},qC=XC,Qp=qC,KC=Qp,ZC=G(KC),Jp=Ui,QC=TypeError,em=function(e,r){if(!delete e[r])throw new QC("Cannot delete property "+Jp(r)+" of "+Jp(e))},JC=U,eO=ft,tO=Un,rO=jn,iO=St,nO=Pp,aO=vs,sO=gs,oO=tn,od=em,lO=Zn,dO=lO("splice"),cO=Math.max,uO=Math.min;JC({target:"Array",proto:!0,forced:!dO},{splice:function(r,t){var a=eO(this),n=iO(a),s=tO(r,n),o=arguments.length,l,d,c,f,m,v;for(o===0?l=d=0:o===1?(l=0,d=n-s):(l=o-2,d=uO(cO(rO(t),0),n-s)),aO(n+l-d),c=sO(a,d),f=0;f<d;f++)m=s+f,m in a&&oO(c,f,a[m]);if(c.length=d,l<d){for(f=s;f<n-d;f++)m=f+d,v=f+l,m in a?a[v]=a[m]:od(a,v);for(f=n;f>n-d+l;f--)od(a,f-1)}else if(l>d)for(f=n-d;f>s;f--)m=f+d-1,v=f+l-1,m in a?a[v]=a[m]:od(a,v);for(f=0;f<l;f++)a[f+s]=arguments[f+2];return nO(a,n-d+l),c}});var hO=Ae,fO=hO("Array").splice,pO=we,mO=fO,ld=Array.prototype,vO=function(e){var r=e.splice;return e===ld||pO(ld,e)&&r===ld.splice?mO:r},gO=vO,yO=gO,_O=yO,mt=G(_O),tm=Ke,bO=ge,wO=et,kO=he,dd=Xn,xO=Jn,EO=Gn,SO=ft,$O=as,on=Object.assign,rm=Object.defineProperty,DO=bO([].concat),TO=!on||kO(function(){if(tm&&on({b:1},on(rm({},"a",{enumerable:!0,get:function(){rm(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}),on({},e)[t]!==7||dd(on({},r)).join("")!==a})?function(r,t){for(var a=SO(r),n=arguments.length,s=1,o=xO.f,l=EO.f;n>s;)for(var d=$O(arguments[s++]),c=o?DO(dd(d),o(d)):dd(d),f=c.length,m=0,v;f>m;)v=c[m++],(!tm||wO(l,d,v))&&(a[v]=d[v]);return a}:on,NO=U,im=TO;NO({target:"Object",stat:!0,forced:Object.assign!==im},{assign:im});var CO=ye,OO=CO.Object.assign,PO=OO,IO=PO,MO=IO,$r=G(MO),AO=U,VO=vl.includes,RO=he,LO=RO(function(){return!Array(1).includes()});AO({target:"Array",proto:!0,forced:LO},{includes:function(r){return VO(this,r,arguments.length>1?arguments[1]:void 0)}});var FO=Ae,YO=FO("Array").includes,jO=Je,BO=_r,HO=Oe,WO=HO("match"),GO=function(e){var r;return jO(e)&&((r=e[WO])!==void 0?!!r:BO(e)==="RegExp")},zO=GO,UO=TypeError,XO=function(e){if(zO(e))throw new UO("The method doesn't accept regular expressions");return e},qO=Oe,KO=qO("match"),ZO=function(e){var r=/./;try{"/./"[e](r)}catch{try{return r[KO]=!1,"/./"[e](r)}catch{}}return!1},QO=U,JO=ge,e2=XO,t2=Hi,nm=Wt,r2=ZO,i2=JO("".indexOf);QO({target:"String",proto:!0,forced:!r2("includes")},{includes:function(r){return!!~i2(nm(t2(this)),nm(e2(r)),arguments.length>1?arguments[1]:void 0)}});var n2=Ae,a2=n2("String").includes,am=we,s2=YO,o2=a2,cd=Array.prototype,ud=String.prototype,l2=function(e){var r=e.includes;return e===cd||am(cd,e)&&r===cd.includes?s2:typeof e=="string"||e===ud||am(ud,e)&&r===ud.includes?o2:r},d2=l2,c2=d2,u2=c2,Zr=G(u2),h2=U,f2=he,p2=ft,sm=qn,m2=Oh,v2=f2(function(){sm(1)});h2({target:"Object",stat:!0,forced:v2,sham:!m2},{getPrototypeOf:function(r){return sm(p2(r))}});var g2=ye,y2=g2.Object.getPrototypeOf,_2=y2,om=_2,b2=om,lm=G(b2),w2=U,k2=xr.filter,x2=Zn,E2=x2("filter");w2({target:"Array",proto:!0,forced:!E2},{filter:function(r){return k2(this,r,arguments.length>1?arguments[1]:void 0)}});var S2=Ae,$2=S2("Array").filter,D2=we,T2=$2,hd=Array.prototype,N2=function(e){var r=e.filter;return e===hd||D2(hd,e)&&r===hd.filter?T2:r},C2=N2,O2=C2,P2=O2,J=G(P2),dm=Ke,I2=he,cm=ge,M2=qn,A2=Xn,V2=Jt,R2=Gn.f,um=cm(R2),L2=cm([].push),F2=dm&&I2(function(){var e=Object.create(null);return e[2]=2,!um(e,2)}),hm=function(e){return function(r){for(var t=V2(r),a=A2(t),n=F2&&M2(t)===null,s=a.length,o=0,l=[],d;s>o;)d=a[o++],(!dm||(n?d in t:um(t,d)))&&L2(l,e?[d,t[d]]:t[d]);return l}},fm={entries:hm(!0),values:hm(!1)},Y2=U,j2=fm.values;Y2({target:"Object",stat:!0},{values:function(r){return j2(r)}});var B2=ye,H2=B2.Object.values,W2=H2,G2=W2,z2=G2,fd=G(z2),pd=`
|
41
|
+
\v\f\r \u2028\u2029\uFEFF`,U2=ge,X2=Hi,q2=Wt,md=pd,pm=U2("".replace),K2=RegExp("^["+md+"]+"),Z2=RegExp("(^|[^"+md+"])["+md+"]+$"),Q2=function(e){return function(r){var t=q2(X2(r));return e&1&&(t=pm(t,K2,"")),e&2&&(t=pm(t,Z2,"$1")),t}},mm={trim:Q2(3)},vm=Ce,J2=he,eP=ge,tP=Wt,rP=mm.trim,gm=pd,oa=vm.parseInt,ym=vm.Symbol,_m=ym&&ym.iterator,bm=/^[+-]?0x/i,iP=eP(bm.exec),nP=oa(gm+"08")!==8||oa(gm+"0x16")!==22||_m&&!J2(function(){oa(Object(_m))}),aP=nP?function(r,t){var a=rP(tP(r));return oa(a,t>>>0||(iP(bm,a)?16:10))}:oa,sP=U,wm=aP;sP({global:!0,forced:parseInt!==wm},{parseInt:wm});var oP=ye,lP=oP.parseInt,dP=lP,cP=dP,uP=cP,Vt=G(uP),hP=U,fP=fl,pP=vl.indexOf,mP=sn,vd=fP([].indexOf),km=!!vd&&1/vd([1],1,-0)<0,vP=km||!mP("indexOf");hP({target:"Array",proto:!0,forced:vP},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return km?vd(this,r,t)||0:pP(this,r,t)}});var gP=Ae,yP=gP("Array").indexOf,_P=we,bP=yP,gd=Array.prototype,wP=function(e){var r=e.indexOf;return e===gd||_P(gd,e)&&r===gd.indexOf?bP:r},kP=wP,xP=kP,EP=xP,ke=G(EP),SP=U,$P=fm.entries;SP({target:"Object",stat:!0},{entries:function(r){return $P(r)}});var DP=ye,TP=DP.Object.entries,NP=TP,CP=NP,OP=CP,PP=G(OP),IP=U,MP=Ke,AP=fi;IP({target:"Object",stat:!0,sham:!MP},{create:AP});var VP=ye,RP=VP.Object,LP=function(r,t){return RP.create(r,t)},FP=LP,xm=FP,YP=xm,la=G(YP),yd=ye,jP=Ki;yd.JSON||(yd.JSON={stringify:JSON.stringify});var BP=function(r,t,a){return jP(yd.JSON.stringify,null,arguments)},HP=BP,WP=HP,GP=WP,Dt=G(GP),zP=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",UP=TypeError,Em=function(e,r){if(e<r)throw new UP("Not enough arguments");return e},Sm=Ce,XP=Ki,qP=Be,KP=zP,ZP=Gr,QP=aa,JP=Em,eI=Sm.Function,tI=/MSIE .\./.test(ZP)||KP&&function(){var e=Sm.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),$m=function(e,r){var t=r?2:1;return tI?function(a,n){var s=JP(arguments.length,1)>t,o=qP(a)?a:eI(a),l=s?QP(arguments,t):[],d=s?function(){XP(o,this,l)}:o;return r?e(d,n):e(d)}:e},rI=U,Dm=Ce,iI=$m,Tm=iI(Dm.setInterval,!0);rI({global:!0,bind:!0,forced:Dm.setInterval!==Tm},{setInterval:Tm});var nI=U,Nm=Ce,aI=$m,Cm=aI(Nm.setTimeout,!0);nI({global:!0,bind:!0,forced:Nm.setTimeout!==Cm},{setTimeout:Cm});var sI=ye,oI=sI.setTimeout,lI=oI,lt=G(lI),dI=ft,Om=Un,cI=St,uI=function(r){for(var t=dI(this),a=cI(t),n=arguments.length,s=Om(n>1?arguments[1]:void 0,a),o=n>2?arguments[2]:void 0,l=o===void 0?a:Om(o,a);l>s;)t[s++]=r;return t},hI=U,fI=uI;hI({target:"Array",proto:!0},{fill:fI});var pI=Ae,mI=pI("Array").fill,vI=we,gI=mI,_d=Array.prototype,yI=function(e){var r=e.fill;return e===_d||vI(_d,e)&&r===_d.fill?gI:r},_I=yI,bI=_I,wI=bI,Pm=G(wI),Im={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}})(Im);var kI=Im.exports,bd=G(kI);/*! 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 br(){return br=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},br.apply(this,arguments)}function cr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function al(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Fu;typeof Object.assign!="function"?Fu=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}:Fu=Object.assign;var ni=Fu,I_=["","webkit","Moz","MS","ms","o"],o3=typeof document>"u"?{style:{}}:document.createElement("div"),l3="function",da=Math.round,ii=Math.abs,Yu=Date.now;function sl(e,t){for(var r,a,n=t[0].toUpperCase()+t.slice(1),s=0;s<I_.length;){if(r=I_[s],a=r?r+n:t,a in e)return a;s++}}var en;typeof window>"u"?en={}:en=window;var P_=sl(o3.style,"touchAction"),M_=P_!==void 0;function d3(){if(!M_)return!1;var e={},t=en.CSS&&en.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){return e[r]=t?en.CSS.supports("touch-action",r):!0}),e}var R_="compute",L_="auto",ju="manipulation",ai="none",Es="pan-x",Ss="pan-y",ol=d3(),c3=/mobile|tablet|ip(ad|hone|od)|android/i,V_="ontouchstart"in en,u3=sl(en,"PointerEvent")!==void 0,h3=V_&&c3.test(navigator.userAgent),ks="touch",f3="pen",Bu="mouse",p3="kinect",m3=25,Tt=1,si=2,et=4,jt=8,ll=1,xs=2,Ts=4,$s=8,ca=16,Mr=xs|Ts,oi=$s|ca,F_=Mr|oi,Y_=["x","y"],dl=["clientX","clientY"];function tn(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 cl(e,t){return typeof e===l3?e.apply(t&&t[0]||void 0,t):e}function li(e,t){return e.indexOf(t)>-1}function v3(e){if(li(e,ai))return ai;var t=li(e,Es),r=li(e,Ss);return t&&r?ai:t||r?t?Es:Ss:li(e,ju)?ju:L_}var j_=function(){function e(r,a){this.manager=r,this.set(a)}var t=e.prototype;return t.set=function(a){a===R_&&(a=this.compute()),M_&&this.manager.element.style&&ol[a]&&(this.manager.element.style[P_]=a),this.actions=a.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var a=[];return tn(this.manager.recognizers,function(n){cl(n.options.enable,[n])&&(a=a.concat(n.getTouchAction()))}),v3(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=li(o,ai)&&!ol[ai],d=li(o,Ss)&&!ol[Ss],c=li(o,Es)&&!ol[Es];if(l){var f=a.pointers.length===1,m=a.distance<2,v=a.deltaTime<250;if(f&&m&&v)return}if(!(c&&d)&&(l||d&&s&Mr||c&&s&oi))return this.preventSrc(n)},t.preventSrc=function(a){this.manager.session.prevented=!0,a.preventDefault()},e}();function Hu(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function B_(e){var t=e.length;if(t===1)return{x:da(e[0].clientX),y:da(e[0].clientY)};for(var r=0,a=0,n=0;n<t;)r+=e[n].clientX,a+=e[n].clientY,n++;return{x:da(r/t),y:da(a/t)}}function H_(e){for(var t=[],r=0;r<e.pointers.length;)t[r]={clientX:da(e.pointers[r].clientX),clientY:da(e.pointers[r].clientY)},r++;return{timeStamp:Yu(),pointers:t,center:B_(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ul(e,t,r){r||(r=Y_);var a=t[r[0]]-e[r[0]],n=t[r[1]]-e[r[1]];return Math.sqrt(a*a+n*n)}function Wu(e,t,r){r||(r=Y_);var a=t[r[0]]-e[r[0]],n=t[r[1]]-e[r[1]];return Math.atan2(n,a)*180/Math.PI}function W_(e,t){return e===t?ll:ii(e)>=ii(t)?e<0?xs:Ts:t<0?$s:ca}function g3(e,t){var r=t.center,a=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};(t.eventType===Tt||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 G_(e,t,r){return{x:t/e||0,y:r/e||0}}function y3(e,t){return ul(t[0],t[1],dl)/ul(e[0],e[1],dl)}function _3(e,t){return Wu(t[1],t[0],dl)+Wu(e[1],e[0],dl)}function b3(e,t){var r=e.lastInterval||t,a=t.timeStamp-r.timeStamp,n,s,o,l;if(t.eventType!==jt&&(a>m3||r.velocity===void 0)){var d=t.deltaX-r.deltaX,c=t.deltaY-r.deltaY,f=G_(a,d,c);s=f.x,o=f.y,n=ii(f.x)>ii(f.y)?f.x:f.y,l=W_(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 w3(e,t){var r=e.session,a=t.pointers,n=a.length;r.firstInput||(r.firstInput=H_(t)),n>1&&!r.firstMultiple?r.firstMultiple=H_(t):n===1&&(r.firstMultiple=!1);var s=r.firstInput,o=r.firstMultiple,l=o?o.center:s.center,d=t.center=B_(a);t.timeStamp=Yu(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=Wu(l,d),t.distance=ul(l,d),g3(r,t),t.offsetDirection=W_(t.deltaX,t.deltaY);var c=G_(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=ii(c.x)>ii(c.y)?c.x:c.y,t.scale=o?y3(o.pointers,a):1,t.rotation=o?_3(o.pointers,a):0,t.maxPointers=r.prevInput?t.pointers.length>r.prevInput.maxPointers?t.pointers.length:r.prevInput.maxPointers:t.pointers.length,b3(r,t);var f=e.element,m=t.srcEvent,v;m.composedPath?v=m.composedPath()[0]:m.path?v=m.path[0]:v=m.target,Hu(v,f)&&(f=v),t.target=f}function E3(e,t,r){var a=r.pointers.length,n=r.changedPointers.length,s=t&Tt&&a-n===0,o=t&(et|jt)&&a-n===0;r.isFirst=!!s,r.isFinal=!!o,s&&(e.session={}),r.eventType=t,w3(e,r),e.emit("hammer.input",r),e.recognize(r),e.session.prevInput=r}function Ds(e){return e.trim().split(/\s+/g)}function Ns(e,t,r){tn(Ds(t),function(a){e.addEventListener(a,r,!1)})}function Cs(e,t,r){tn(Ds(t),function(a){e.removeEventListener(a,r,!1)})}function z_(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var ua=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){cl(r.options.enable,[r])&&n.handler(s)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&Ns(this.element,this.evEl,this.domHandler),this.evTarget&&Ns(this.target,this.evTarget,this.domHandler),this.evWin&&Ns(z_(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&Cs(this.element,this.evEl,this.domHandler),this.evTarget&&Cs(this.target,this.evTarget,this.domHandler),this.evWin&&Cs(z_(this.element),this.evWin,this.domHandler)},e}();function di(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 S3={pointerdown:Tt,pointermove:si,pointerup:et,pointercancel:jt,pointerout:jt},k3={2:ks,3:f3,4:Bu,5:p3},U_="pointerdown",K_="pointermove pointerup pointercancel";en.MSPointerEvent&&!en.PointerEvent&&(U_="MSPointerDown",K_="MSPointerMove MSPointerUp MSPointerCancel");var q_=function(e){cr(t,e);function t(){var a,n=t.prototype;return n.evEl=U_,n.evWin=K_,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=S3[l],c=k3[n.pointerType]||n.pointerType,f=c===ks,m=di(s,n.pointerId,"pointerId");d&Tt&&(n.button===0||f)?m<0&&(s.push(n),m=s.length-1):d&(et|jt)&&(o=!0),!(m<0)&&(s[m]=n,this.callback(this.manager,d,{pointers:s,changedPointers:[n],pointerType:c,srcEvent:n}),o&&s.splice(m,1))},t}(ua);function Os(e){return Array.prototype.slice.call(e,0)}function Gu(e,t,r){for(var a=[],n=[],s=0;s<e.length;){var o=t?e[s][t]:e[s];di(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 x3={touchstart:Tt,touchmove:si,touchend:et,touchcancel:jt},T3="touchstart touchmove touchend touchcancel",zu=function(e){cr(t,e);function t(){var a;return t.prototype.evTarget=T3,a=e.apply(this,arguments)||this,a.targetIds={},a}var r=t.prototype;return r.handler=function(n){var s=x3[n.type],o=$3.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:ks,srcEvent:n})},t}(ua);function $3(e,t){var r=Os(e.touches),a=this.targetIds;if(t&(Tt|si)&&r.length===1)return a[r[0].identifier]=!0,[r,r];var n,s,o=Os(e.changedTouches),l=[],d=this.target;if(s=r.filter(function(c){return Hu(c.target,d)}),t===Tt)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[Gu(s.concat(l),"identifier",!0),l]}var D3={mousedown:Tt,mousemove:si,mouseup:et},N3="mousedown",C3="mousemove mouseup",Uu=function(e){cr(t,e);function t(){var a,n=t.prototype;return n.evEl=N3,n.evWin=C3,a=e.apply(this,arguments)||this,a.pressed=!1,a}var r=t.prototype;return r.handler=function(n){var s=D3[n.type];s&Tt&&n.button===0&&(this.pressed=!0),s&si&&n.which!==1&&(s=et),this.pressed&&(s&et&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:Bu,srcEvent:n}))},t}(ua),O3=2500,X_=25;function Q_(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,O3)}}function A3(e,t){e&Tt?(this.primaryTouch=t.changedPointers[0].identifier,Q_.call(this,t)):e&(et|jt)&&Q_.call(this,t)}function I3(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<=X_&&o<=X_)return!0}return!1}var Z_=function(){var e=function(t){cr(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===ks,m=c.pointerType===Bu;if(!(m&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(f)A3.call(al(al(o)),d,c);else if(m&&I3.call(al(al(o)),c))return;o.callback(l,d,c)}},o.touch=new zu(o.manager,o.handler),o.mouse=new Uu(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}(ua);return e}();function P3(e){var t,r=e.options.inputClass;return r?t=r:u3?t=q_:h3?t=zu:V_?t=Z_:t=Uu,new t(e,E3)}function ha(e,t,r){return Array.isArray(e)?(tn(e,r[t],r),!0):!1}var hl=1,ur=2,fa=4,Cn=8,rn=Cn,As=16,Rr=32,M3=1;function R3(){return M3++}function fl(e,t){var r=t.manager;return r?r.get(e):e}function J_(e){return e&As?"cancel":e&Cn?"end":e&fa?"move":e&ur?"start":""}var Is=function(){function e(r){r===void 0&&(r={}),this.options=br({enable:!0},r),this.id=R3(),this.manager=null,this.state=hl,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(a){return ni(this.options,a),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(a){if(ha(a,"recognizeWith",this))return this;var n=this.simultaneous;return a=fl(a,this),n[a.id]||(n[a.id]=a,a.recognizeWith(this)),this},t.dropRecognizeWith=function(a){return ha(a,"dropRecognizeWith",this)?this:(a=fl(a,this),delete this.simultaneous[a.id],this)},t.requireFailure=function(a){if(ha(a,"requireFailure",this))return this;var n=this.requireFail;return a=fl(a,this),di(n,a)===-1&&(n.push(a),a.requireFailure(this)),this},t.dropRequireFailure=function(a){if(ha(a,"dropRequireFailure",this))return this;a=fl(a,this);var n=di(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<Cn&&o(n.options.event+J_(s)),o(n.options.event),a.additionalEvent&&o(a.additionalEvent),s>=Cn&&o(n.options.event+J_(s))},t.tryEmit=function(a){if(this.canEmit())return this.emit(a);this.state=Rr},t.canEmit=function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(Rr|hl)))return!1;a++}return!0},t.recognize=function(a){var n=ni({},a);if(!cl(this.options.enable,[this,n])){this.reset(),this.state=Rr;return}this.state&(rn|As|Rr)&&(this.state=hl),this.state=this.process(n),this.state&(ur|fa|Cn|As)&&this.tryEmit(n)},t.process=function(a){},t.getTouchAction=function(){},t.reset=function(){},e}(),Ku=function(e){cr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,br({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[ju]},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&Tt&&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,m=!this.pCenter||ul(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!m||!f?this.count=1:this.count+=1,this._input=n;var v=this.count%o.taps;if(v===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=rn,s.tryEmit()},o.interval),ur):rn}return Rr},r.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=Rr},this.options.interval),Rr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(){this.state===rn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(Is),pa=function(e){cr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,br({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&(ur|fa),d=this.attrTest(n);return l&&(o&jt||!d)?s|As:l||d?o&et?s|Cn:s&ur?s|fa:ur:Rr},t}(Is);function eb(e){return e===ca?"down":e===$s?"up":e===xs?"left":e===Ts?"right":""}var qu=function(e){cr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,br({event:"pan",threshold:10,pointers:1,direction:F_},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&Mr&&s.push(Ss),n&oi&&s.push(Es),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&Mr?(d=c===0?ll:c<0?xs:Ts,o=c!==this.pX,l=Math.abs(n.deltaX)):(d=f===0?ll:f<0?$s:ca,o=f!==this.pY,l=Math.abs(n.deltaY))),n.direction=d,o&&l>s.threshold&&d&s.direction},r.attrTest=function(n){return pa.prototype.attrTest.call(this,n)&&(this.state&ur||!(this.state&ur)&&this.directionTest(n))},r.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=eb(n.direction);s&&(n.additionalEvent=this.options.event+s),e.prototype.emit.call(this,n)},t}(pa),tb=function(e){cr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,br({event:"swipe",threshold:10,velocity:.3,direction:Mr|oi,pointers:1},a))||this}var r=t.prototype;return r.getTouchAction=function(){return qu.prototype.getTouchAction.call(this)},r.attrTest=function(n){var s=this.options.direction,o;return s&(Mr|oi)?o=n.overallVelocity:s&Mr?o=n.overallVelocityX:s&oi&&(o=n.overallVelocityY),e.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&ii(o)>this.options.velocity&&n.eventType&et},r.emit=function(n){var s=eb(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},t}(pa),rb=function(e){cr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,br({event:"pinch",threshold:0,pointers:2},a))||this}var r=t.prototype;return r.getTouchAction=function(){return[ai]},r.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&ur)},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}(pa),nb=function(e){cr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,br({event:"rotate",threshold:0,pointers:2},a))||this}var r=t.prototype;return r.getTouchAction=function(){return[ai]},r.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&ur)},t}(pa),ib=function(e){cr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,br({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[L_]},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&Tt)this.reset(),this._timer=setTimeout(function(){s.state=rn,s.tryEmit()},o.time);else if(n.eventType&et)return rn;return Rr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(n){this.state===rn&&(n&&n.eventType&et?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=Yu(),this.manager.emit(this.options.event,this._input)))},t}(Is),ab={domEvents:!1,touchAction:R_,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},sb=[[nb,{enable:!1}],[rb,{enable:!1},["rotate"]],[tb,{direction:Mr}],[qu,{direction:Mr},["swipe"]],[Ku],[Ku,{event:"doubletap",taps:2},["tap"]],[ib]],L3=1,ob=2;function lb(e,t){var r=e.element;if(r.style){var a;tn(e.options.cssProps,function(n,s){a=sl(r.style,s),t?(e.oldCssProps[a]=r.style[a],r.style[a]=n):r.style[a]=e.oldCssProps[a]||""}),t||(e.oldCssProps={})}}function V3(e,t){var r=document.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=t,t.target.dispatchEvent(r)}var db=function(){function e(r,a){var n=this;this.options=ni({},ab,a||{}),this.options.inputTarget=this.options.inputTarget||r,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=r,this.input=P3(this),this.touchAction=new j_(this,this.options.touchAction),lb(this,!0),tn(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 ni(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?ob:L3},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&rn)&&(n.curRecognizer=null,l=null);for(var d=0;d<o.length;)s=o[d],n.stopped!==ob&&(!l||s===l||s.canRecognizeWith(l))?s.recognize(a):s.reset(),!l&&s.state&(ur|fa|Cn)&&(n.curRecognizer=s,l=s),d++}},t.get=function(a){if(a instanceof Is)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(ha(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(ha(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},t.on=function(a,n){if(a===void 0||n===void 0)return this;var s=this.handlers;return tn(Ds(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 tn(Ds(a),function(o){n?s[o]&&s[o].splice(di(s[o],n),1):delete s[o]}),this},t.emit=function(a,n){this.options.domEvents&&V3(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&&lb(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),F3={touchstart:Tt,touchmove:si,touchend:et,touchcancel:jt},Y3="touchstart",j3="touchstart touchmove touchend touchcancel",B3=function(e){cr(t,e);function t(){var a,n=t.prototype;return n.evTarget=Y3,n.evWin=j3,a=e.apply(this,arguments)||this,a.started=!1,a}var r=t.prototype;return r.handler=function(n){var s=F3[n.type];if(s===Tt&&(this.started=!0),!!this.started){var o=H3.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:ks,srcEvent:n})}},t}(ua);function H3(e,t){var r=Os(e.touches),a=Os(e.changedTouches);return t&(et|jt)&&(r=Gu(r.concat(a),"identifier",!0)),[r,a]}function cb(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 z3(e,t){var r;if(e){if(typeof e=="string")return mb(e,t);var a=vt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return mb(e,t)}}function mb(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 Qu=Zr("DELETE");function vb(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 Zu.apply(void 0,Ie(t=[{},e]).call(t,a))}function Zu(){var e=pl.apply(void 0,arguments);return yb(e),e}function pl(){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 pl.apply(void 0,Ie(a=[Zu(t[0],t[1])]).call(a,Ve(vt(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=Xu(Fy(s)),l;try{for(o.s();!(l=o.n()).done;){var d=l.value;Object.prototype.propertyIsEnumerable.call(s,d)&&(s[d]===Qu?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]=pl(n[d],s[d]):n[d]=gb(s[d]))}}catch(c){o.e(c)}finally{o.f()}return n}function gb(e){return ae(e)?ke(e).call(e,function(t){return gb(t)}):ne(e)==="object"&&e!==null?e instanceof Date?new Date(e.getTime()):pl({},e):e}function yb(e){for(var t=0,r=nt(e);t<r.length;t++){var a=r[t];e[a]===Qu?delete e[a]:ne(e[a])==="object"&&e[a]!==null&&yb(e[a])}}function U3(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return K3(t.length?t:[Qt()])}function K3(e){var t=q3(e),r=mt(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 q3(){for(var e=X3(),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 X3(){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 Q3(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var Ju=typeof window<"u"?window.Hammer||pb:function(){return Q3()};function Lr(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=Ju(this._dom.overlay);a.on("tap",I(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){Z3(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()}}Vu(Lr.prototype),Lr.current=null,Lr.prototype.destroy=function(){var e,t;this.deactivate();var r=Xu(MV(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()}},Lr.prototype.activate=function(){Lr.current&&Lr.current.deactivate(),Lr.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)},Lr.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")},Lr.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function Z3(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}var J3=/^\/?Date\((-?\d+)/i,e4=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,t4=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r4=/^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,n4=/^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 Ps(e){return e instanceof Number||typeof e=="number"}function _b(e){if(e)for(;e.hasChildNodes()===!0;){var t=e.firstChild;t&&(_b(t),e.removeChild(t))}}function Jt(e){return e instanceof String||typeof e=="string"}function eh(e){return ne(e)==="object"&&e!==null}function i4(e){if(e instanceof Date)return!0;if(Jt(e)){var t=J3.exec(e);if(t)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function ci(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 bb(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")ci(e,t,a,r);else{var n=e[a],s=t[a];eh(n)&&eh(s)&&bb(n,s,r)}}var a4=Jr;function s4(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 o4(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?Ms(t[s],r[s],!1,a):ci(t,r,s,a);else{if(ae(r[s]))throw new TypeError("Arrays are not supported by deepExtend");ci(t,r,s,a)}}return t}function l4(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?Ms(t[n],r[n]):ci(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 ci(t,r,n,a);return t}function Ms(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&&o_(t[n])===Object.prototype)e[n]===void 0?e[n]=Ms({},t[n],r):ne(e[n])==="object"&&e[n]!==null&&o_(e[n])===Object.prototype?Ms(e[n],t[n],r):ci(e,t,n,a);else if(ae(t[n])){var s;e[n]=vt(s=t[n]).call(s)}else ci(e,t,n,a);return e}function d4(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 Rs(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 Ls(e,t){var r;return Ie(r=[]).call(r,Ve(e),[t])}function wb(e){return vt(e).call(e)}function c4(e){return e.getBoundingClientRect().left}function u4(e){return e.getBoundingClientRect().right}function h4(e){return e.getBoundingClientRect().top}function f4(e,t){var r=e.className.split(" "),a=t.split(" ");r=Ie(r).call(r,te(a).call(a,function(n){return!Nn(r).call(r,n)})),e.className=r.join(" ")}function p4(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 m4(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 v4=Ou;function g4(e,t,r){return e[t]!==r?(e[t]=r,!0):!1}function y4(e){var t=!1;return function(){t||(t=!0,requestAnimationFrame(function(){t=!1,e()}))}}function _4(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 b4(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 w4(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}function E4(){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 S4(e,t){for(var r=e;r;){if(r===t)return!0;if(r.parentNode)r=r.parentNode;else return!1}return!1}var k4={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()),Jt(t)?t:Ps(t)?t+"px":r||null},asElement:function(t,r){return typeof t=="function"&&(t=t()),t||r||null}};function ml(e){var t;switch(e.length){case 3:case 4:return t=t4.exec(e),t?{r:Zt(t[1]+t[1],16),g:Zt(t[2]+t[2],16),b:Zt(t[3]+t[3],16)}:null;case 6:case 7:return t=e4.exec(e),t?{r:Zt(t[1],16),g:Zt(t[2],16),b:Zt(t[3],16)}:null;default:return null}}function x4(e,t){if(Nn(e).call(e,"rgba"))return e;if(Nn(e).call(e,"rgb")){var r=e.substr($e(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+r[0]+","+r[1]+","+r[2]+","+t+")"}else{var a=ml(e);return a==null?e:"rgba("+a.r+","+a.g+","+a.b+","+t+")"}}function th(e,t,r){var a;return"#"+vt(a=((1<<24)+(e<<16)+(t<<8)+r).toString(16)).call(a,1)}function T4(e,t){if(Jt(e)){var r=e;if(ih(r)){var a,n=ke(a=r.substr(4).substr(0,r.length-5).split(",")).call(a,function(v){return Zt(v)});r=th(n[0],n[1],n[2])}if(nh(r)===!0){var s=Sb(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=rh(l.h,l.s,l.v),c=rh(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:Jt(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:Jt(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 m={background:e.background||void 0,border:e.border||void 0,highlight:Jt(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:Jt(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 m}}function ma(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 Eb(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 $4(e,t){for(var r=Eb(t),a=0,n=vY(r);a<n.length;a++){var s=mt(n[a],2),o=s[0],l=s[1];e.style.setProperty(o,l)}}function D4(e,t){for(var r=Eb(t),a=0,n=nt(r);a<n.length;a++){var s=n[a];e.style.removeProperty(s)}}function Vs(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 rh(e,t,r){var a=Vs(e,t,r);return th(a.r,a.g,a.b)}function Sb(e){var t=ml(e);if(!t)throw new TypeError("'".concat(e,"' is not a valid color."));return ma(t.r,t.g,t.b)}function nh(e){var t=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return t}function ih(e){return r4.test(e)}function kb(e){return n4.test(e)}function N4(e,t){if(t!==null&&ne(t)==="object"){for(var r=ws(t),a=0;a<e.length;a++)Object.prototype.hasOwnProperty.call(t,e[a])&&ne(t[e[a]])=="object"&&(r[e[a]]=ah(t[e[a]]));return r}else return null}function ah(e){if(e===null||ne(e)!=="object")return null;if(e instanceof Element)return e;var t=ws(e);for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&ne(e[r])=="object"&&(t[r]=ah(e[r]));return t}function C4(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 O4(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,m=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]=ws(f);else return;if(s(d)){var v=!0;d.enabled!==void 0?v=d.enabled:m!==void 0&&(v=f.enabled),l(e,t,r),e[r].enabled=v}}}function A4(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],m=t(f);if(m==0)return d;m==-1?o=d+1:l=d-1,s++}return-1}function I4(e,t,r,a,n){var s=1e4,o=0,l=0,d=e.length-1,c,f,m,v;for(n=n??function(g,b){return g==b?0:g<b?-1:1};l<=d&&o<s;){if(v=Math.floor(.5*(d+l)),c=e[Math.max(0,v-1)][r],f=e[v][r],m=e[Math.min(e.length-1,v+1)][r],n(f,t)==0)return v;if(n(c,t)<0&&n(f,t)>0)return a=="before"?Math.max(0,v-1):v;if(n(f,t)<0&&n(m,t)>0)return a=="before"?v:Math.min(e.length-1,v+1);n(f,t)<0?l=v+1:d=v-1,o++}return-1}var P4={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 M4(){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 R4(e,t){var r;ae(t)||(t=[t]);var a=Xu(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 L4={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"},xb=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;he(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 fe(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 L4[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),Jt(r)===!0){if(ih(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(kb(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(nh(r)===!0){var d=ml(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: "+Yt(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=Jr({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",gt(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=Jr({},r)),this.color=r;var n=ma(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=ma(this.color.r,this.color.g,this.color.b);a.v=r/100;var n=Vs(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=ma(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),O_(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=I(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=I(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=I(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=I(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 Ju(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,m=1/this.r,v;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),v=Vs(l*f,d*m,1),r.fillStyle="rgb("+v.r+","+v.g+","+v.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),m=.98*Math.min(Math.sqrt(d*d+c*c),l),v=Math.cos(f)*m+o,g=Math.sin(f)*m+l;this.colorPickerSelector.style.top=v-.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=m/this.r,w=ma(this.color.r,this.color.g,this.color.b);w.h=b,w.s=S;var k=Vs(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 sh(){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(sh.apply(void 0,Ve(vt(t).call(t,1)))),a}var V4=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};he(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},Jr(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new xb(n),this.wrapper=void 0}return fe(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||$e(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(sh("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&&$e(r).call(r,a)!==-1&&(o=$e(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="",m=0;if(a!==void 0){var v=1.2;a<0&&a*v<o?(c.min=Math.ceil(a*v),m=c.min,f="range increased"):a/v<o&&(c.min=Math.ceil(a/v),m=c.min,f="range increased"),a*v>l&&l!==1&&(c.max=Math.ceil(a*v),m=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]!==m&&(this.popupHistory[w]=m,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=gt(function(){r.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=gt(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=Ls(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 m=this._getValue(f);if(ae(c))this._handleArray(c,m,f);else if(typeof c=="string")this._makeTextInput(c,m,f);else if(typeof c=="boolean")this._makeCheckbox(c,m,f);else if(c instanceof Object){if(!this.hideOption(a,d,this.moduleOptions))if(c.enabled!==void 0){var v=Ls(f,"enabled"),g=this._getValue(v);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(sh("pre","const options = "+Yt(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}(),F4=function(){function e(t,r){he(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 fe(e,[{key:"setPosition",value:function(r,a){this.x=Zt(r),this.y=Zt(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}(),Fs=!1,Tb,oh="background: #FFeeee; color: #dd0000",Y4=function(){function e(){he(this,e)}return fe(e,null,[{key:"validate",value:function(r,a,n){Fs=!1,Tb=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(r,s,[]),Fs}},{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(v){console.error("%c"+v+e.printLocation(l,r),oh)},c=e.getType(a[r]),f=o[c];f!==void 0?e.getType(f)==="array"&&$e(f).call(f,a[r])===-1?(d('Invalid option detected in "'+r+'". Allowed values are:'+e.print(f)+' not "'+a[r]+'". '),Fs=!0):c==="object"&&s!=="__any__"&&(l=Ls(l,r),e.parse(a[r],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+r+'". Expected: '+e.print(nt(o))+". Received ["+c+'] "'+a[r]+'"'),Fs=!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,Tb,[],!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 tr(){return tr=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},tr.apply(this,arguments)}function Gt(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function $s(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var wd;typeof Object.assign!="function"?wd=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}:wd=Object.assign;var yi=wd,Mm=["","webkit","Moz","MS","ms","o"],xI=typeof document>"u"?{style:{}}:document.createElement("div"),EI="function",ln=Math.round,_i=Math.abs,kd=Date.now;function Ds(e,r){for(var t,a,n=r[0].toUpperCase()+r.slice(1),s=0;s<Mm.length;){if(t=Mm[s],a=t?t+n:r,a in e)return a;s++}}var Dr;typeof window>"u"?Dr={}:Dr=window;var Am=Ds(xI.style,"touchAction"),Vm=Am!==void 0;function SI(){if(!Vm)return!1;var e={},r=Dr.CSS&&Dr.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=r?Dr.CSS.supports("touch-action",t):!0}),e}var Rm="compute",Lm="auto",xd="manipulation",bi="none",da="pan-x",ca="pan-y",Ts=SI(),$I=/mobile|tablet|ip(ad|hone|od)|android/i,Fm="ontouchstart"in Dr,DI=Ds(Dr,"PointerEvent")!==void 0,TI=Fm&&$I.test(navigator.userAgent),ua="touch",NI="pen",Ed="mouse",CI="kinect",OI=25,vt=1,wi=2,qe=4,Tt=8,Ns=1,ha=2,fa=4,pa=8,dn=16,hr=ha|fa,ki=pa|dn,Ym=hr|ki,jm=["x","y"],Cs=["clientX","clientY"];function Tr(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 Os(e,r){return typeof e===EI?e.apply(r&&r[0]||void 0,r):e}function xi(e,r){return e.indexOf(r)>-1}function PI(e){if(xi(e,bi))return bi;var r=xi(e,da),t=xi(e,ca);return r&&t?bi:r||t?r?da:ca:xi(e,xd)?xd:Lm}var Bm=function(){function e(t,a){this.manager=t,this.set(a)}var r=e.prototype;return r.set=function(a){a===Rm&&(a=this.compute()),Vm&&this.manager.element.style&&Ts[a]&&(this.manager.element.style[Am]=a),this.actions=a.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var a=[];return Tr(this.manager.recognizers,function(n){Os(n.options.enable,[n])&&(a=a.concat(n.getTouchAction()))}),PI(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=xi(o,bi)&&!Ts[bi],d=xi(o,ca)&&!Ts[ca],c=xi(o,da)&&!Ts[da];if(l){var f=a.pointers.length===1,m=a.distance<2,v=a.deltaTime<250;if(f&&m&&v)return}if(!(c&&d)&&(l||d&&s&hr||c&&s&ki))return this.preventSrc(n)},r.preventSrc=function(a){this.manager.session.prevented=!0,a.preventDefault()},e}();function Sd(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}function Hm(e){var r=e.length;if(r===1)return{x:ln(e[0].clientX),y:ln(e[0].clientY)};for(var t=0,a=0,n=0;n<r;)t+=e[n].clientX,a+=e[n].clientY,n++;return{x:ln(t/r),y:ln(a/r)}}function Wm(e){for(var r=[],t=0;t<e.pointers.length;)r[t]={clientX:ln(e.pointers[t].clientX),clientY:ln(e.pointers[t].clientY)},t++;return{timeStamp:kd(),pointers:r,center:Hm(r),deltaX:e.deltaX,deltaY:e.deltaY}}function Ps(e,r,t){t||(t=jm);var a=r[t[0]]-e[t[0]],n=r[t[1]]-e[t[1]];return Math.sqrt(a*a+n*n)}function $d(e,r,t){t||(t=jm);var a=r[t[0]]-e[t[0]],n=r[t[1]]-e[t[1]];return Math.atan2(n,a)*180/Math.PI}function Gm(e,r){return e===r?Ns:_i(e)>=_i(r)?e<0?ha:fa:r<0?pa:dn}function II(e,r){var t=r.center,a=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};(r.eventType===vt||s.eventType===qe)&&(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 zm(e,r,t){return{x:r/e||0,y:t/e||0}}function MI(e,r){return Ps(r[0],r[1],Cs)/Ps(e[0],e[1],Cs)}function AI(e,r){return $d(r[1],r[0],Cs)+$d(e[1],e[0],Cs)}function VI(e,r){var t=e.lastInterval||r,a=r.timeStamp-t.timeStamp,n,s,o,l;if(r.eventType!==Tt&&(a>OI||t.velocity===void 0)){var d=r.deltaX-t.deltaX,c=r.deltaY-t.deltaY,f=zm(a,d,c);s=f.x,o=f.y,n=_i(f.x)>_i(f.y)?f.x:f.y,l=Gm(d,c),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 RI(e,r){var t=e.session,a=r.pointers,n=a.length;t.firstInput||(t.firstInput=Wm(r)),n>1&&!t.firstMultiple?t.firstMultiple=Wm(r):n===1&&(t.firstMultiple=!1);var s=t.firstInput,o=t.firstMultiple,l=o?o.center:s.center,d=r.center=Hm(a);r.timeStamp=kd(),r.deltaTime=r.timeStamp-s.timeStamp,r.angle=$d(l,d),r.distance=Ps(l,d),II(t,r),r.offsetDirection=Gm(r.deltaX,r.deltaY);var c=zm(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=c.x,r.overallVelocityY=c.y,r.overallVelocity=_i(c.x)>_i(c.y)?c.x:c.y,r.scale=o?MI(o.pointers,a):1,r.rotation=o?AI(o.pointers,a):0,r.maxPointers=t.prevInput?r.pointers.length>t.prevInput.maxPointers?r.pointers.length:t.prevInput.maxPointers:r.pointers.length,VI(t,r);var f=e.element,m=r.srcEvent,v;m.composedPath?v=m.composedPath()[0]:m.path?v=m.path[0]:v=m.target,Sd(v,f)&&(f=v),r.target=f}function LI(e,r,t){var a=t.pointers.length,n=t.changedPointers.length,s=r&vt&&a-n===0,o=r&(qe|Tt)&&a-n===0;t.isFirst=!!s,t.isFinal=!!o,s&&(e.session={}),t.eventType=r,RI(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function ma(e){return e.trim().split(/\s+/g)}function va(e,r,t){Tr(ma(r),function(a){e.addEventListener(a,t,!1)})}function ga(e,r,t){Tr(ma(r),function(a){e.removeEventListener(a,t,!1)})}function Um(e){var r=e.ownerDocument||e;return r.defaultView||r.parentWindow||window}var cn=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){Os(t.options.enable,[t])&&n.handler(s)},this.init()}var r=e.prototype;return r.handler=function(){},r.init=function(){this.evEl&&va(this.element,this.evEl,this.domHandler),this.evTarget&&va(this.target,this.evTarget,this.domHandler),this.evWin&&va(Um(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&ga(this.element,this.evEl,this.domHandler),this.evTarget&&ga(this.target,this.evTarget,this.domHandler),this.evWin&&ga(Um(this.element),this.evWin,this.domHandler)},e}();function Ei(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 FI={pointerdown:vt,pointermove:wi,pointerup:qe,pointercancel:Tt,pointerout:Tt},YI={2:ua,3:NI,4:Ed,5:CI},Xm="pointerdown",qm="pointermove pointerup pointercancel";Dr.MSPointerEvent&&!Dr.PointerEvent&&(Xm="MSPointerDown",qm="MSPointerMove MSPointerUp MSPointerCancel");var Km=function(e){Gt(r,e);function r(){var a,n=r.prototype;return n.evEl=Xm,n.evWin=qm,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=FI[l],c=YI[n.pointerType]||n.pointerType,f=c===ua,m=Ei(s,n.pointerId,"pointerId");d&vt&&(n.button===0||f)?m<0&&(s.push(n),m=s.length-1):d&(qe|Tt)&&(o=!0),!(m<0)&&(s[m]=n,this.callback(this.manager,d,{pointers:s,changedPointers:[n],pointerType:c,srcEvent:n}),o&&s.splice(m,1))},r}(cn);function ya(e){return Array.prototype.slice.call(e,0)}function Dd(e,r,t){for(var a=[],n=[],s=0;s<e.length;){var o=r?e[s][r]:e[s];Ei(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 jI={touchstart:vt,touchmove:wi,touchend:qe,touchcancel:Tt},BI="touchstart touchmove touchend touchcancel",Td=function(e){Gt(r,e);function r(){var a;return r.prototype.evTarget=BI,a=e.apply(this,arguments)||this,a.targetIds={},a}var t=r.prototype;return t.handler=function(n){var s=jI[n.type],o=HI.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:ua,srcEvent:n})},r}(cn);function HI(e,r){var t=ya(e.touches),a=this.targetIds;if(r&(vt|wi)&&t.length===1)return a[t[0].identifier]=!0,[t,t];var n,s,o=ya(e.changedTouches),l=[],d=this.target;if(s=t.filter(function(c){return Sd(c.target,d)}),r===vt)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&(qe|Tt)&&delete a[o[n].identifier],n++;if(l.length)return[Dd(s.concat(l),"identifier",!0),l]}var WI={mousedown:vt,mousemove:wi,mouseup:qe},GI="mousedown",zI="mousemove mouseup",Nd=function(e){Gt(r,e);function r(){var a,n=r.prototype;return n.evEl=GI,n.evWin=zI,a=e.apply(this,arguments)||this,a.pressed=!1,a}var t=r.prototype;return t.handler=function(n){var s=WI[n.type];s&vt&&n.button===0&&(this.pressed=!0),s&wi&&n.which!==1&&(s=qe),this.pressed&&(s&qe&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:Ed,srcEvent:n}))},r}(cn),UI=2500,Zm=25;function Qm(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,UI)}}function XI(e,r){e&vt?(this.primaryTouch=r.changedPointers[0].identifier,Qm.call(this,r)):e&(qe|Tt)&&Qm.call(this,r)}function qI(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<=Zm&&o<=Zm)return!0}return!1}var Jm=function(){var e=function(r){Gt(t,r);function t(n,s){var o;return o=r.call(this,n,s)||this,o.handler=function(l,d,c){var f=c.pointerType===ua,m=c.pointerType===Ed;if(!(m&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(f)XI.call($s($s(o)),d,c);else if(m&&qI.call($s($s(o)),c))return;o.callback(l,d,c)}},o.touch=new Td(o.manager,o.handler),o.mouse=new Nd(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}(cn);return e}();function KI(e){var r,t=e.options.inputClass;return t?r=t:DI?r=Km:TI?r=Td:Fm?r=Jm:r=Nd,new r(e,LI)}function un(e,r,t){return Array.isArray(e)?(Tr(e,t[r],t),!0):!1}var Is=1,zt=2,hn=4,Qr=8,Nr=Qr,_a=16,fr=32,ZI=1;function QI(){return ZI++}function Ms(e,r){var t=r.manager;return t?t.get(e):e}function ev(e){return e&_a?"cancel":e&Qr?"end":e&hn?"move":e&zt?"start":""}var ba=function(){function e(t){t===void 0&&(t={}),this.options=tr({enable:!0},t),this.id=QI(),this.manager=null,this.state=Is,this.simultaneous={},this.requireFail=[]}var r=e.prototype;return r.set=function(a){return yi(this.options,a),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(a){if(un(a,"recognizeWith",this))return this;var n=this.simultaneous;return a=Ms(a,this),n[a.id]||(n[a.id]=a,a.recognizeWith(this)),this},r.dropRecognizeWith=function(a){return un(a,"dropRecognizeWith",this)?this:(a=Ms(a,this),delete this.simultaneous[a.id],this)},r.requireFailure=function(a){if(un(a,"requireFailure",this))return this;var n=this.requireFail;return a=Ms(a,this),Ei(n,a)===-1&&(n.push(a),a.requireFailure(this)),this},r.dropRequireFailure=function(a){if(un(a,"dropRequireFailure",this))return this;a=Ms(a,this);var n=Ei(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<Qr&&o(n.options.event+ev(s)),o(n.options.event),a.additionalEvent&&o(a.additionalEvent),s>=Qr&&o(n.options.event+ev(s))},r.tryEmit=function(a){if(this.canEmit())return this.emit(a);this.state=fr},r.canEmit=function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(fr|Is)))return!1;a++}return!0},r.recognize=function(a){var n=yi({},a);if(!Os(this.options.enable,[this,n])){this.reset(),this.state=fr;return}this.state&(Nr|_a|fr)&&(this.state=Is),this.state=this.process(n),this.state&(zt|hn|Qr|_a)&&this.tryEmit(n)},r.process=function(a){},r.getTouchAction=function(){},r.reset=function(){},e}(),Cd=function(e){Gt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,tr({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[xd]},t.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&vt&&this.count===0)return this.failTimeout();if(d&&c&&l){if(n.eventType!==qe)return this.failTimeout();var f=this.pTime?n.timeStamp-this.pTime<o.interval:!0,m=!this.pCenter||Ps(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!m||!f?this.count=1:this.count+=1,this._input=n;var v=this.count%o.taps;if(v===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=Nr,s.tryEmit()},o.interval),zt):Nr}return fr},t.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=fr},this.options.interval),fr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===Nr&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(ba),fn=function(e){Gt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,tr({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&(zt|hn),d=this.attrTest(n);return l&&(o&Tt||!d)?s|_a:l||d?o&qe?s|Qr:s&zt?s|hn:zt:fr},r}(ba);function tv(e){return e===dn?"down":e===pa?"up":e===ha?"left":e===fa?"right":""}var Od=function(e){Gt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,tr({event:"pan",threshold:10,pointers:1,direction:Ym},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&hr&&s.push(ca),n&ki&&s.push(da),s},t.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&hr?(d=c===0?Ns:c<0?ha:fa,o=c!==this.pX,l=Math.abs(n.deltaX)):(d=f===0?Ns:f<0?pa:dn,o=f!==this.pY,l=Math.abs(n.deltaY))),n.direction=d,o&&l>s.threshold&&d&s.direction},t.attrTest=function(n){return fn.prototype.attrTest.call(this,n)&&(this.state&zt||!(this.state&zt)&&this.directionTest(n))},t.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=tv(n.direction);s&&(n.additionalEvent=this.options.event+s),e.prototype.emit.call(this,n)},r}(fn),rv=function(e){Gt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,tr({event:"swipe",threshold:10,velocity:.3,direction:hr|ki,pointers:1},a))||this}var t=r.prototype;return t.getTouchAction=function(){return Od.prototype.getTouchAction.call(this)},t.attrTest=function(n){var s=this.options.direction,o;return s&(hr|ki)?o=n.overallVelocity:s&hr?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&qe},t.emit=function(n){var s=tv(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},r}(fn),iv=function(e){Gt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,tr({event:"pinch",threshold:0,pointers:2},a))||this}var t=r.prototype;return t.getTouchAction=function(){return[bi]},t.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&zt)},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}(fn),nv=function(e){Gt(r,e);function r(a){return a===void 0&&(a={}),e.call(this,tr({event:"rotate",threshold:0,pointers:2},a))||this}var t=r.prototype;return t.getTouchAction=function(){return[bi]},t.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&zt)},r}(fn),av=function(e){Gt(r,e);function r(a){var n;return a===void 0&&(a={}),n=e.call(this,tr({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[Lm]},t.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&(qe|Tt)&&!c)this.reset();else if(n.eventType&vt)this.reset(),this._timer=setTimeout(function(){s.state=Nr,s.tryEmit()},o.time);else if(n.eventType&qe)return Nr;return fr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(n){this.state===Nr&&(n&&n.eventType&qe?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=kd(),this.manager.emit(this.options.event,this._input)))},r}(ba),sv={domEvents:!1,touchAction:Rm,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ov=[[nv,{enable:!1}],[iv,{enable:!1},["rotate"]],[rv,{direction:hr}],[Od,{direction:hr},["swipe"]],[Cd],[Cd,{event:"doubletap",taps:2},["tap"]],[av]],JI=1,lv=2;function dv(e,r){var t=e.element;if(t.style){var a;Tr(e.options.cssProps,function(n,s){a=Ds(t.style,s),r?(e.oldCssProps[a]=t.style[a],t.style[a]=n):t.style[a]=e.oldCssProps[a]||""}),r||(e.oldCssProps={})}}function eM(e,r){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=r,r.target.dispatchEvent(t)}var cv=function(){function e(t,a){var n=this;this.options=yi({},sv,a||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=KI(this),this.touchAction=new Bm(this,this.options.touchAction),dv(this,!0),Tr(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 yi(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?lv:JI},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&Nr)&&(n.curRecognizer=null,l=null);for(var d=0;d<o.length;)s=o[d],n.stopped!==lv&&(!l||s===l||s.canRecognizeWith(l))?s.recognize(a):s.reset(),!l&&s.state&(zt|hn|Qr)&&(n.curRecognizer=s,l=s),d++}},r.get=function(a){if(a instanceof ba)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(un(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(un(a,"remove",this))return this;var n=this.get(a);if(a){var s=this.recognizers,o=Ei(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 Tr(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 Tr(ma(a),function(o){n?s[o]&&s[o].splice(Ei(s[o],n),1):delete s[o]}),this},r.emit=function(a,n){this.options.domEvents&&eM(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&&dv(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),tM={touchstart:vt,touchmove:wi,touchend:qe,touchcancel:Tt},rM="touchstart",iM="touchstart touchmove touchend touchcancel",nM=function(e){Gt(r,e);function r(){var a,n=r.prototype;return n.evTarget=rM,n.evWin=iM,a=e.apply(this,arguments)||this,a.started=!1,a}var t=r.prototype;return t.handler=function(n){var s=tM[n.type];if(s===vt&&(this.started=!0),!!this.started){var o=aM.call(this,n,s);s&(qe|Tt)&&o[0].length-o[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:ua,srcEvent:n})}},r}(cn);function aM(e,r){var t=ya(e.touches),a=ya(e.changedTouches);return r&(qe|Tt)&&(t=Dd(t.concat(a),"identifier",!0)),[t,a]}function uv(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 hv=uv(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`."),sM=uv(function(e,r){return hv(e,r,!0)},"merge","Use `assign`.");function oM(e,r,t){var a=r.prototype,n;n=e.prototype=Object.create(a),n.constructor=e,n._super=a,t&&yi(n,t)}function fv(e,r){return function(){return e.apply(r,arguments)}}var pv=function(){var e=function(t,a){return a===void 0&&(a={}),new cv(t,tr({recognizers:ov.concat()},a))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=Ym,e.DIRECTION_DOWN=dn,e.DIRECTION_LEFT=ha,e.DIRECTION_RIGHT=fa,e.DIRECTION_UP=pa,e.DIRECTION_HORIZONTAL=hr,e.DIRECTION_VERTICAL=ki,e.DIRECTION_NONE=Ns,e.DIRECTION_DOWN=dn,e.INPUT_START=vt,e.INPUT_MOVE=wi,e.INPUT_END=qe,e.INPUT_CANCEL=Tt,e.STATE_POSSIBLE=Is,e.STATE_BEGAN=zt,e.STATE_CHANGED=hn,e.STATE_ENDED=Qr,e.STATE_RECOGNIZED=Nr,e.STATE_CANCELLED=_a,e.STATE_FAILED=fr,e.Manager=cv,e.Input=cn,e.TouchAction=Bm,e.TouchInput=Td,e.MouseInput=Nd,e.PointerEventInput=Km,e.TouchMouseInput=Jm,e.SingleTouchInput=nM,e.Recognizer=ba,e.AttrRecognizer=fn,e.Tap=Cd,e.Pan=Od,e.Swipe=rv,e.Pinch=iv,e.Rotate=nv,e.Press=av,e.on=va,e.off=ga,e.each=Tr,e.merge=sM,e.extend=hv,e.bindFn=fv,e.assign=yi,e.inherit=oM,e.bindFn=fv,e.prefixed=Ds,e.toArray=ya,e.inArray=Ei,e.uniqueArray=Dd,e.splitStr=ma,e.boolOrFn=Os,e.hasParent=Sd,e.addEventListeners=va,e.removeEventListeners=ga,e.defaults=yi({},sv,{preset:ov}),e}();pv.defaults;var mv=pv;function Pd(e,r){var t=typeof Sr<"u"&&Xr(e)||e["@@iterator"];if(!t){if(re(e)||(t=lM(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(c){throw c},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 c=t.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function lM(e,r){var t;if(e){if(typeof e=="string")return vv(e,r);var a=ot(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ur(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return vv(e,r)}}function vv(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 Id=Sr("DELETE");function gv(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 Md.apply(void 0,Te(r=[{},e]).call(r,a))}function Md(){var e=As.apply(void 0,arguments);return _v(e),e}function As(){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 As.apply(void 0,Te(a=[Md(r[0],r[1])]).call(a,Pe(ot(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=Pd(Yp(s)),l;try{for(o.s();!(l=o.n()).done;){var d=l.value;Object.prototype.propertyIsEnumerable.call(s,d)&&(s[d]===Id?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]=As(n[d],s[d]):n[d]=yv(s[d]))}}catch(c){o.e(c)}finally{o.f()}return n}function yv(e){return re(e)?_e(e).call(e,function(r){return yv(r)}):ee(e)==="object"&&e!==null?e instanceof Date?new Date(e.getTime()):As({},e):e}function _v(e){for(var r=0,t=Ze(e);r<t.length;r++){var a=t[r];e[a]===Id?delete e[a]:ee(e[a])==="object"&&e[a]!==null&&_v(e[a])}}function dM(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return cM(r.length?r:[At()])}function cM(e){var r=uM(e),t=st(r,3),a=t[0],n=t[1],s=t[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 uM(){for(var e=hM(),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 hM(){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 fM(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var Ad=typeof window<"u"?window.Hammer||mv:function(){return fM()};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=Ad(this._dom.overlay);a.on("tap",C(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){a.destroy()});var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];j(n).call(n,function(s){a.on(s,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(s){pM(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()}}bd(pr.prototype),pr.current=null,pr.prototype.destroy=function(){var e,r;this.deactivate();var t=Pd(ZC(e=mt(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 pM(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var mM=/^\/?Date\((-?\d+)/i,vM=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,gM=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,yM=/^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,_M=/^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 wa(e){return e instanceof Number||typeof e=="number"}function bv(e){if(e)for(;e.hasChildNodes()===!0;){var r=e.firstChild;r&&(bv(r),e.removeChild(r))}}function Rt(e){return e instanceof String||typeof e=="string"}function Vd(e){return ee(e)==="object"&&e!==null}function bM(e){if(e instanceof Date)return!0;if(Rt(e)){var r=mM.exec(e);if(r)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function Si(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 wv(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")Si(e,r,a,t);else{var n=e[a],s=r[a];Vd(n)&&Vd(s)&&wv(n,s,t)}}var wM=$r;function kM(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 c=e[d];l&&Object.prototype.hasOwnProperty.call(l,c)&&(r[c]=l[c])}return r}function xM(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?ka(r[s],t[s],!1,a):Si(r,t,s,a);else{if(re(t[s]))throw new TypeError("Arrays are not supported by deepExtend");Si(r,t,s,a)}}return r}function EM(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)&&!Zr(e).call(e,n))if(t[n]&&t[n].constructor===Object)r[n]===void 0&&(r[n]={}),r[n].constructor===Object?ka(r[n],t[n]):Si(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 Si(r,t,n,a);return r}function ka(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&&lm(r[n])===Object.prototype)e[n]===void 0?e[n]=ka({},r[n],t):ee(e[n])==="object"&&e[n]!==null&&lm(e[n])===Object.prototype?ka(e[n],r[n],t):Si(e,r,n,a);else if(re(r[n])){var s;e[n]=ot(s=r[n]).call(s)}else Si(e,r,n,a);return e}function SM(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 xa(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 Ea(e,r){var t;return Te(t=[]).call(t,Pe(e),[r])}function kv(e){return ot(e).call(e)}function $M(e){return e.getBoundingClientRect().left}function DM(e){return e.getBoundingClientRect().right}function TM(e){return e.getBoundingClientRect().top}function NM(e,r){var t=e.className.split(" "),a=r.split(" ");t=Te(t).call(t,J(a).call(a,function(n){return!Zr(t).call(t,n)})),e.className=t.join(" ")}function CM(e,r){var t=e.className.split(" "),a=r.split(" ");t=J(t).call(t,function(n){return!Zr(a).call(a,n)}),e.className=t.join(" ")}function OM(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 PM=fd;function IM(e,r,t){return e[r]!==t?(e[r]=t,!0):!1}function MM(e){var r=!1;return function(){r||(r=!0,requestAnimationFrame(function(){r=!1,e()}))}}function AM(e,r,t,a){if(e.addEventListener){var n;a===void 0&&(a=!1),r==="mousewheel"&&Zr(n=navigator.userAgent).call(n,"Firefox")&&(r="DOMMouseScroll"),e.addEventListener(r,t,a)}else e.attachEvent("on"+r,t)}function VM(e,r,t,a){if(e.removeEventListener){var n;a===void 0&&(a=!1),r==="mousewheel"&&Zr(n=navigator.userAgent).call(n,"Firefox")&&(r="DOMMouseScroll"),e.removeEventListener(r,t,a)}else e.detachEvent("on"+r,t)}function RM(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}function LM(){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 FM(e,r){for(var t=e;t;){if(t===r)return!0;if(t.parentNode)t=t.parentNode;else return!1}return!1}var YM={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()),Rt(r)?r:wa(r)?r+"px":t||null},asElement:function(r,t){return typeof r=="function"&&(r=r()),r||t||null}};function Vs(e){var r;switch(e.length){case 3:case 4:return r=gM.exec(e),r?{r:Vt(r[1]+r[1],16),g:Vt(r[2]+r[2],16),b:Vt(r[3]+r[3],16)}:null;case 6:case 7:return r=vM.exec(e),r?{r:Vt(r[1],16),g:Vt(r[2],16),b:Vt(r[3],16)}:null;default:return null}}function jM(e,r){if(Zr(e).call(e,"rgba"))return e;if(Zr(e).call(e,"rgb")){var t=e.substr(ke(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+r+")"}else{var a=Vs(e);return a==null?e:"rgba("+a.r+","+a.g+","+a.b+","+r+")"}}function Rd(e,r,t){var a;return"#"+ot(a=((1<<24)+(e<<16)+(r<<8)+t).toString(16)).call(a,1)}function BM(e,r){if(Rt(e)){var t=e;if(Yd(t)){var a,n=_e(a=t.substr(4).substr(0,t.length-5).split(",")).call(a,function(v){return Vt(v)});t=Rd(n[0],n[1],n[2])}if(Fd(t)===!0){var s=Ev(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=Ld(l.h,l.s,l.v),c=Ld(o.h,o.s,o.v);return{background:t,border:d,highlight:{background:c,border:d},hover:{background:c,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:Rt(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:Rt(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 m={background:e.background||void 0,border:e.border||void 0,highlight:Rt(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:Rt(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 m}}function pn(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,c=n;return{h:l,s:d,v:c}}function xv(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 HM(e,r){for(var t=xv(r),a=0,n=PP(t);a<n.length;a++){var s=st(n[a],2),o=s[0],l=s[1];e.style.setProperty(o,l)}}function WM(e,r){for(var t=xv(r),a=0,n=Ze(t);a<n.length;a++){var s=n[a];e.style.removeProperty(s)}}function Sa(e,r,t){var a,n,s,o=Math.floor(e*6),l=e*6-o,d=t*(1-r),c=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=c,n=t,s=d;break;case 2:a=d,n=t,s=f;break;case 3:a=d,n=c,s=t;break;case 4:a=f,n=d,s=t;break;case 5:a=t,n=d,s=c;break}return{r:Math.floor(a*255),g:Math.floor(n*255),b:Math.floor(s*255)}}function Ld(e,r,t){var a=Sa(e,r,t);return Rd(a.r,a.g,a.b)}function Ev(e){var r=Vs(e);if(!r)throw new TypeError("'".concat(e,"' is not a valid color."));return pn(r.r,r.g,r.b)}function Fd(e){var r=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return r}function Yd(e){return yM.test(e)}function Sv(e){return _M.test(e)}function GM(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]]=jd(r[e[a]]));return t}else return null}function jd(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]=jd(e[t]));return r}function zM(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 UM(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],c=s(a)&&!o(a),f=c?a[t]:void 0,m=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 v=!0;d.enabled!==void 0?v=d.enabled:m!==void 0&&(v=f.enabled),l(e,r,t),e[t].enabled=v}}}function XM(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),c=e[d],f=a===void 0?c[t]:c[t][a],m=r(f);if(m==0)return d;m==-1?o=d+1:l=d-1,s++}return-1}function qM(e,r,t,a,n){var s=1e4,o=0,l=0,d=e.length-1,c,f,m,v;for(n=n??function(y,b){return y==b?0:y<b?-1:1};l<=d&&o<s;){if(v=Math.floor(.5*(d+l)),c=e[Math.max(0,v-1)][t],f=e[v][t],m=e[Math.min(e.length-1,v+1)][t],n(f,r)==0)return v;if(n(c,r)<0&&n(f,r)>0)return a=="before"?Math.max(0,v-1):v;if(n(f,r)<0&&n(m,r)>0)return a=="before"?v:Math.min(e.length-1,v+1);n(f,r)<0?l=v+1:d=v-1,o++}return-1}var KM={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 ZM(){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 QM(e,r){var t;re(r)||(r=[r]);var a=Pd(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 JM={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"},$v=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;de(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 JM[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),Rt(t)===!0){if(Yd(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(Sv(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(Fd(t)===!0){var d=Vs(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 c=t.a!==void 0?t.a:"1.0";n={r:t.r,g:t.g,b:t.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: "+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=$r({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",lt(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=$r({},t)),this.color=t;var n=pn(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=pn(this.color.r,this.color.g,this.color.b);a.v=t/100;var n=Sa(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=pn(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),Pm(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=C(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=C(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=C(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=C(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 Ad(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 c=2*Math.PI/360,f=1/360,m=1/this.r,v;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),v=Sa(l*f,d*m,1),t.fillStyle="rgb("+v.r+","+v.g+","+v.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,c=s-o,f=Math.atan2(d,c),m=.98*Math.min(Math.sqrt(d*d+c*c),l),v=Math.cos(f)*m+o,y=Math.sin(f)*m+l;this.colorPickerSelector.style.top=v-.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=m/this.r,w=pn(this.color.r,this.color.g,this.color.b);w.h=b,w.s=E;var S=Sa(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 Bd(){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(Bd.apply(void 0,Pe(ot(r).call(r,1)))),a}var eA=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};de(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},$r(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new $v(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||ke(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 j(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(Bd("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&&ke(t).call(t,a)!==-1&&(o=ke(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 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(t,a,n){var s=t[0],o=t[1],l=t[2],d=t[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="",m=0;if(a!==void 0){var v=1.2;a<0&&a*v<o?(c.min=Math.ceil(a*v),m=c.min,f="range increased"):a/v<o&&(c.min=Math.ceil(a/v),m=c.min,f="range increased"),a*v>l&&l!==1&&(c.max=Math.ceil(a*v),m=c.max,f="range increased"),c.value=a}else c.value=s;var y=document.createElement("input");y.className="vis-configuration vis-config-rangeinput",y.value=c.value;var b=this;c.onchange=function(){y.value=this.value,b._update(Number(this.value),n)},c.oninput=function(){y.value=this.value};var E=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,E,c,y);f!==""&&this.popupHistory[w]!==m&&(this.popupHistory[w]=m,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=lt(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=lt(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 c=t[d],f=Ea(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!re(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 m=this._getValue(f);if(re(c))this._handleArray(c,m,f);else if(typeof c=="string")this._makeTextInput(c,m,f);else if(typeof c=="boolean")this._makeCheckbox(c,m,f);else if(c instanceof Object){if(!this.hideOption(a,d,this.moduleOptions))if(c.enabled!==void 0){var v=Ea(f,"enabled"),y=this._getValue(v);if(y===!0){var b=this._makeLabel(d,f,!0);this._makeItem(f,b),l=this._handleObject(c,f)||l}else this._makeCheckbox(c,y,f)}else{var E=this._makeLabel(d,f,!0);this._makeItem(f,E),l=this._handleObject(c,f)||l}}else console.error("dont know how to handle",c,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(Bd("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}(),tA=function(){function e(r,t){de(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=Vt(t),this.y=Vt(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 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}(),$a=!1,Dv,Hd="background: #FFeeee; color: #dd0000",rA=function(){function e(){de(this,e)}return ce(e,null,[{key:"validate",value:function(t,a,n){$a=!1,Dv=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(t,s,[]),$a}},{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(v){console.error("%c"+v+e.printLocation(l,t),Hd)},c=e.getType(a[t]),f=o[c];f!==void 0?e.getType(f)==="array"&&ke(f).call(f,a[t])===-1?(d('Invalid option detected in "'+t+'". Allowed values are:'+e.print(f)+' not "'+a[t]+'". '),$a=!0):c==="object"&&s!=="__any__"&&(l=Ea(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 ["+c+'] "'+a[t]+'"'),$a=!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,Dv,[],!0),l=8,d=4,c;s.indexMatch!==void 0?c=" 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?c=" in "+e.printLocation(s.path,
|
51
|
+
`:o.distance<=d&&s.distance>o.distance?c=" in "+e.printLocation(s.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""):s.distance<=l?c='. Did you mean "'+s.closestMatch+'"?'+e.printLocation(s.path,t):c=". Did you mean one of these: "+e.print(Ze(a))+e.printLocation(n,t),console.error('%cUnknown option detected: "'+t+'"'+c,Hd),$a=!0}},{key:"findInOptions",value:function(t,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],c=t.toLowerCase(),f=void 0;for(var m in a){var v=void 0;if(a[m].__type__!==void 0&&s===!0){var y=e.findInOptions(t,a[m],Ea(n,m));o>y.distance&&(l=y.closestMatch,d=y.path,o=y.distance,f=y.indexMatch)}else{var b;ke(b=m.toLowerCase()).call(b,c)!==-1&&(f=m),v=e.levenshteinDistance(t,m),o>v&&(l=m,d=kv(n),o=v)}}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 c=0;c<
|
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 c=0;c<t.length+1;c++){for(var f=0;f<t.length-c;f++)s+=" ";s+=`}
|
62
58
|
`}return s+`
|
63
59
|
|
64
|
-
`}},{key:"print",value:function(r){return Yt(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}(),j4=Lr,B4=xb,H4=V4,W4=Ju,G4=F4,z4=oh,U4=Y4,K4=Object.freeze({__proto__:null,Activator:j4,Alea:U3,ColorPicker:B4,Configurator:H4,DELETE:Qu,HSVToHex:rh,HSVToRGB:Vs,Hammer:W4,Popup:G4,RGBToHSV:ma,RGBToHex:th,VALIDATOR_PRINT_STYLE:z4,Validator:U4,addClassName:f4,addCssText:$4,addEventListener:_4,binarySearchCustom:A4,binarySearchValue:I4,bridgeObject:ah,copyAndExtendArray:Ls,copyArray:wb,deepExtend:Ms,deepObjectAssign:Zu,easingFunctions:P4,equalArray:d4,extend:a4,fillIfDefined:bb,forEach:m4,getAbsoluteLeft:c4,getAbsoluteRight:u4,getAbsoluteTop:h4,getScrollBarWidth:M4,getTarget:E4,getType:Rs,hasParent:S4,hexToHSV:Sb,hexToRGB:ml,insertSort:C4,isDate:i4,isNumber:Ps,isObject:eh,isString:Jt,isValidHex:nh,isValidRGB:ih,isValidRGBA:kb,mergeOptions:O4,option:k4,overrideOpacity:x4,parseColor:T4,preventDefault:w4,pureDeepObjectAssign:vb,recursiveDOMDelete:_b,removeClassName:p4,removeCssText:D4,removeEventListener:b4,selectiveBridgeObject:N4,selectiveDeepExtend:o4,selectiveExtend:s4,selectiveNotDeepExtend:l4,throttle:y4,toArray:v4,topMost:R4,updateProperty:g4});function On(e){for(var t in e)e.hasOwnProperty(t)&&(e[t].redundant=e[t].used,e[t].used=[])}function hr(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 q4(e){On(e),hr(e),On(e)}function wr(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 lh(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 va(e,t,r,a,n,s){var o;if(r.style=="circle"?(o=wr("circle",a,n),o.setAttributeNS(null,"cx",e),o.setAttributeNS(null,"cy",t),o.setAttributeNS(null,"r",.5*r.size)):(o=wr("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=wr("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 dh(e,t,r,a,n,s,o,l){if(a!=0){a<0&&(a*=-1,t-=a);var d=wr("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 X4(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch{return"en"}}function De(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Q4=E_,Z4=Q4,J4=Z4,ej=J4,$b=ej,tj=U($b),rj=X,nj=Lv;rj({target:"Object",stat:!0},{setPrototypeOf:nj});var ij=Se,aj=ij.Object.setPrototypeOf,sj=aj,oj=sj,lj=oj,dj=lj,cj=dj,uj=cj,Db=uj,ch=U(Db),hj=Uy,fj=hj,pj=fj,mj=pj,vj=mj,Nb=U(vj);function uh(e,t){var r;return uh=ch?Nb(r=ch).call(r):function(n,s){return n.__proto__=s,n},uh(e,t)}function $t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=tj(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ko(e,"prototype",{writable:!1}),t&&uh(e,t)}function Bt(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 De(e)}var gj=s_,yj=gj,_j=yj,bj=_j,Cb=bj,Ob=U(Cb);function xe(e){var t;return xe=ch?Nb(t=Ob).call(t):function(a){return a.__proto__||Ob(a)},xe(e)}function ve(e,t,r){return t=$y(t),t in e?Ko(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ab={exports:{}},Ib={exports:{}};(function(e){var t=fu,r=Ty;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})(Ib);var wj=Ib.exports,Ej=qy,Sj=Ej,kj=Sj,xj=kj,Tj=xj,Pb=Je,$j=_u,Dj=Qn,Nj=Rt,Cj=function(e,t,r){for(var a=$j(t),n=Nj.f,s=Dj.f,o=0;o<a.length;o++){var l=a[o];!Pb(e,l)&&!(r&&Pb(r,l))&&n(e,l,s(t,l))}},Oj=lt,Aj=Kr,Ij=function(e,t){Oj(t)&&"cause"in t&&Aj(e,"cause",t.cause)},Pj=Ee,Mb=Error,Mj=Pj("".replace),Rj=function(e){return String(new Mb(e).stack)}("zxcasd"),Rb=/\n\s*at [^:]*:[^\n]*/,Lj=Rb.test(Rj),Vj=function(e,t){if(Lj&&typeof e=="string"&&!Mb.prepareStackTrace)for(;t--;)e=Mj(e,Rb,"");return e},Fj=me,Yj=Xn,jj=!Fj(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",Yj(1,7)),e.stack!==7):!0}),Bj=Kr,Hj=Vj,Wj=jj,Lb=Error.captureStackTrace,Gj=function(e,t,r,a){Wj&&(Lb?Lb(e,t):Bj(e,"stack",Hj(r,a)))},zj=kn,Uj=dt,Kj=Xt,qj=qi,Xj=Uv,Qj=Vt,Vb=Te,Zj=qc,Jj=zo,Fb=zv,eB=TypeError,vl=function(e,t){this.stopped=e,this.result=t},Yb=vl.prototype,ui=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=zj(t,a),c,f,m,v,g,b,S,w=function(T){return c&&Fb(c,"normal",T),new vl(!0,T)},k=function(T){return n?(Kj(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=Jj(e),!f)throw new eB(qj(e)+" is not iterable");if(Xj(f)){for(m=0,v=Qj(e);v>m;m++)if(g=k(e[m]),g&&Vb(Yb,g))return g;return new vl(!1)}c=Zj(e,f)}for(b=s?e.next:c.next;!(S=Uj(b,c)).done;){try{g=k(S.value)}catch(T){Fb(c,"throw",T)}if(typeof g=="object"&&g&&Vb(Yb,g))return g}return new vl(!1)},tB=dr,rB=function(e,t){return e===void 0?arguments.length<2?"":t:tB(e)},nB=X,iB=Te,aB=ls,gl=Lv,sB=Cj,jb=Zn,hh=Kr,fh=Xn,oB=Ij,lB=Gj,dB=ui,cB=rB,uB=Le,hB=uB("toStringTag"),yl=Error,fB=[].push,ga=function(t,r){var a=iB(ph,this),n;gl?n=gl(new yl,a?aB(this):ph):(n=a?this:jb(ph),hh(n,hB,"Error")),r!==void 0&&hh(n,"message",cB(r)),lB(n,ga,n.stack,1),arguments.length>2&&oB(n,arguments[2]);var s=[];return dB(t,fB,{that:s}),hh(n,"errors",s),n};gl?gl(ga,yl):sB(ga,yl,{name:!0});var ph=ga.prototype=jb(yl.prototype,{constructor:fh(1,ga),message:fh(1,""),name:fh(1,"AggregateError")});nB({global:!0},{AggregateError:ga});var pB=Re,mB=zr,Ys=mB(pB.process)==="process",vB=kt,gB=Jc,yB=Le,_B=rt,Bb=yB("species"),Hb=function(e){var t=vB(e);_B&&t&&!t[Bb]&&gB(t,Bb,{configurable:!0,get:function(){return this}})},bB=Te,wB=TypeError,mh=function(e,t){if(bB(t,e))return e;throw new wB("Incorrect invocation")},EB=Go,SB=qi,kB=TypeError,Wb=function(e){if(EB(e))return e;throw new kB(SB(e)+" is not a constructor")},Gb=Xt,xB=Wb,TB=Wi,$B=Le,DB=$B("species"),zb=function(e,t){var r=Gb(e).constructor,a;return r===void 0||TB(a=Gb(r)[DB])?t:xB(a)},NB=Sn,Ub=/(?:ipad|iphone|ipod).*applewebkit/i.test(NB),er=Re,CB=Zi,OB=kn,Kb=ze,AB=Je,qb=me,Xb=kv,IB=ys,Qb=gc,PB=S_,MB=Ub,RB=Ys,vh=er.setImmediate,Zb=er.clearImmediate,LB=er.process,gh=er.Dispatch,VB=er.Function,Jb=er.MessageChannel,FB=er.String,yh=0,js={},e0="onreadystatechange",Bs,hi,_h,bh;qb(function(){Bs=er.location});var wh=function(e){if(AB(js,e)){var t=js[e];delete js[e],t()}},Eh=function(e){return function(){wh(e)}},t0=function(e){wh(e.data)},r0=function(e){er.postMessage(FB(e),Bs.protocol+"//"+Bs.host)};(!vh||!Zb)&&(vh=function(t){PB(arguments.length,1);var r=Kb(t)?t:VB(t),a=IB(arguments,1);return js[++yh]=function(){CB(r,void 0,a)},hi(yh),yh},Zb=function(t){delete js[t]},RB?hi=function(e){LB.nextTick(Eh(e))}:gh&&gh.now?hi=function(e){gh.now(Eh(e))}:Jb&&!MB?(_h=new Jb,bh=_h.port2,_h.port1.onmessage=t0,hi=OB(bh.postMessage,bh)):er.addEventListener&&Kb(er.postMessage)&&!er.importScripts&&Bs&&Bs.protocol!=="file:"&&!qb(r0)?(hi=r0,er.addEventListener("message",t0,!1)):e0 in Qb("script")?hi=function(e){Xb.appendChild(Qb("script"))[e0]=function(){Xb.removeChild(this),wh(e)}}:hi=function(e){setTimeout(Eh(e),0)});var n0={set:vh},i0=function(){this.head=null,this.tail=null};i0.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 a0=i0,YB=Sn,jB=/ipad|iphone|ipod/i.test(YB)&&typeof Pebble<"u",BB=Sn,HB=/web0s(?!.*chrome)/i.test(BB),fi=Re,s0=kn,WB=Qn.f,Sh=n0.set,GB=a0,zB=Ub,UB=jB,KB=HB,kh=Ys,o0=fi.MutationObserver||fi.WebKitMutationObserver,l0=fi.document,d0=fi.process,_l=fi.Promise,c0=WB(fi,"queueMicrotask"),xh=c0&&c0.value,ya,Th,$h,bl,u0;if(!xh){var wl=new GB,El=function(){var e,t;for(kh&&(e=d0.domain)&&e.exit();t=wl.get();)try{t()}catch(r){throw wl.head&&ya(),r}e&&e.enter()};!zB&&!kh&&!KB&&o0&&l0?(Th=!0,$h=l0.createTextNode(""),new o0(El).observe($h,{characterData:!0}),ya=function(){$h.data=Th=!Th}):!UB&&_l&&_l.resolve?(bl=_l.resolve(void 0),bl.constructor=_l,u0=s0(bl.then,bl),ya=function(){u0(El)}):kh?ya=function(){d0.nextTick(El)}:(Sh=s0(Sh,fi),ya=function(){Sh(El)}),xh=function(e){wl.head||ya(),wl.add(e)}}var qB=xh,XB=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},_a=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},QB=Re,ba=QB.Promise,h0=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",ZB=h0,JB=Ys,e8=!ZB&&!JB&&typeof window=="object"&&typeof document=="object",t8=Re,Hs=ba,r8=ze,n8=vv,i8=Kv,a8=Le,s8=e8,o8=h0,Dh=zi,f0=Hs&&Hs.prototype,l8=a8("species"),p0=!1,m0=r8(t8.PromiseRejectionEvent),d8=n8("Promise",function(){var e=i8(Hs),t=e!==String(Hs);if(!t&&Dh===66||!(f0.catch&&f0.finally))return!0;if(!Dh||Dh<51||!/native code/.test(e)){var r=new Hs(function(s){s(1)}),a=function(s){s(function(){},function(){})},n=r.constructor={};if(n[l8]=a,p0=r.then(function(){})instanceof a,!p0)return!0}return!t&&(s8||o8)&&!m0}),Ws={CONSTRUCTOR:d8,REJECTION_EVENT:m0},Vr={},v0=Lt,c8=TypeError,u8=function(e){var t,r;this.promise=new e(function(a,n){if(t!==void 0||r!==void 0)throw new c8("Bad Promise constructor");t=a,r=n}),this.resolve=v0(t),this.reject=v0(r)};Vr.f=function(e){return new u8(e)};var h8=X,Sl=Ys,An=Re,Gs=dt,f8=ta,p8=Jn,m8=Hb,v8=Lt,Nh=ze,g8=lt,y8=mh,_8=zb,g0=n0.set,Ch=qB,b8=XB,w8=_a,E8=a0,y0=Qi,Oh=ba,_0=Ws,b0=Vr,kl="Promise",w0=_0.CONSTRUCTOR,S8=_0.REJECTION_EVENT,Ah=y0.getterFor(kl),k8=y0.set,x8=Oh&&Oh.prototype,wa=Oh,Ih=x8,E0=An.TypeError,Ph=An.document,Mh=An.process,Rh=b0.f,T8=Rh,$8=!!(Ph&&Ph.createEvent&&An.dispatchEvent),S0="unhandledrejection",D8="rejectionhandled",k0=0,x0=1,N8=2,Lh=1,T0=2,xl,$0,C8,D0=function(e){var t;return g8(e)&&Nh(t=e.then)?t:!1},N0=function(e,t){var r=t.value,a=t.state===x0,n=a?e.ok:e.fail,s=e.resolve,o=e.reject,l=e.domain,d,c,f;try{n?(a||(t.rejection===T0&&A8(t),t.rejection=Lh),n===!0?d=r:(l&&l.enter(),d=n(r),l&&(l.exit(),f=!0)),d===e.promise?o(new E0("Promise-chain cycle")):(c=D0(d))?Gs(c,d,s,o):s(d)):o(r)}catch(m){l&&!f&&l.exit(),o(m)}},C0=function(e,t){e.notified||(e.notified=!0,Ch(function(){for(var r=e.reactions,a;a=r.get();)N0(a,e);e.notified=!1,t&&!e.rejection&&O8(e)}))},O0=function(e,t,r){var a,n;$8?(a=Ph.createEvent("Event"),a.promise=t,a.reason=r,a.initEvent(e,!1,!0),An.dispatchEvent(a)):a={promise:t,reason:r},!S8&&(n=An["on"+e])?n(a):e===S0&&b8("Unhandled promise rejection",r)},O8=function(e){Gs(g0,An,function(){var t=e.facade,r=e.value,a=A0(e),n;if(a&&(n=w8(function(){Sl?Mh.emit("unhandledRejection",r,t):O0(S0,t,r)}),e.rejection=Sl||A0(e)?T0:Lh,n.error))throw n.value})},A0=function(e){return e.rejection!==Lh&&!e.parent},A8=function(e){Gs(g0,An,function(){var t=e.facade;Sl?Mh.emit("rejectionHandled",t):O0(D8,t,e.value)})},Ea=function(e,t,r){return function(a){e(t,a,r)}},Sa=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=N8,C0(e,!0))},Vh=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new E0("Promise can't be resolved itself");var a=D0(t);a?Ch(function(){var n={done:!1};try{Gs(a,t,Ea(Vh,n,e),Ea(Sa,n,e))}catch(s){Sa(n,s,e)}}):(e.value=t,e.state=x0,C0(e,!1))}catch(n){Sa({done:!1},n,e)}}};w0&&(wa=function(t){y8(this,Ih),v8(t),Gs(xl,this);var r=Ah(this);try{t(Ea(Vh,r),Ea(Sa,r))}catch(a){Sa(r,a)}},Ih=wa.prototype,xl=function(t){k8(this,{type:kl,done:!1,notified:!1,parent:!1,reactions:new E8,rejection:!1,state:k0,value:void 0})},xl.prototype=f8(Ih,"then",function(t,r){var a=Ah(this),n=Rh(_8(this,wa));return a.parent=!0,n.ok=Nh(t)?t:!0,n.fail=Nh(r)&&r,n.domain=Sl?Mh.domain:void 0,a.state===k0?a.reactions.add(n):Ch(function(){N0(n,a)}),n.promise}),$0=function(){var e=new xl,t=Ah(e);this.promise=e,this.resolve=Ea(Vh,t),this.reject=Ea(Sa,t)},b0.f=Rh=function(e){return e===wa||e===C8?new $0(e):T8(e)}),h8({global:!0,wrap:!0,forced:w0},{Promise:wa}),p8(wa,kl,!1,!0),m8(kl);var I8=ba,P8=ag,M8=Ws.CONSTRUCTOR,Tl=M8||!P8(function(e){I8.all(e).then(void 0,function(){})}),R8=X,L8=dt,V8=Lt,F8=Vr,Y8=_a,j8=ui,B8=Tl;R8({target:"Promise",stat:!0,forced:B8},{all:function(t){var r=this,a=F8.f(r),n=a.resolve,s=a.reject,o=Y8(function(){var l=V8(r.resolve),d=[],c=0,f=1;j8(t,function(m){var v=c++,g=!1;f++,L8(l,r,m).then(function(b){g||(g=!0,d[v]=b,--f||n(d))},s)}),--f||n(d)});return o.error&&s(o.value),a.promise}});var H8=X,W8=Ws.CONSTRUCTOR,I0=ba;I0&&I0.prototype,H8({target:"Promise",proto:!0,forced:W8,real:!0},{catch:function(e){return this.then(void 0,e)}});var G8=X,z8=dt,U8=Lt,K8=Vr,q8=_a,X8=ui,Q8=Tl;G8({target:"Promise",stat:!0,forced:Q8},{race:function(t){var r=this,a=K8.f(r),n=a.reject,s=q8(function(){var o=U8(r.resolve);X8(t,function(l){z8(o,r,l).then(a.resolve,n)})});return s.error&&n(s.value),a.promise}});var Z8=X,J8=dt,eH=Vr,tH=Ws.CONSTRUCTOR;Z8({target:"Promise",stat:!0,forced:tH},{reject:function(t){var r=eH.f(this);return J8(r.reject,void 0,t),r.promise}});var rH=Xt,nH=lt,iH=Vr,P0=function(e,t){if(rH(e),nH(t)&&t.constructor===e)return t;var r=iH.f(e),a=r.resolve;return a(t),r.promise},aH=X,sH=kt,oH=k$,lH=ba,dH=Ws.CONSTRUCTOR,cH=P0,uH=sH("Promise"),hH=!dH;aH({target:"Promise",stat:!0,forced:oH},{resolve:function(t){return cH(hH&&this===uH?lH:this,t)}});var fH=X,pH=dt,mH=Lt,vH=Vr,gH=_a,yH=ui,_H=Tl;fH({target:"Promise",stat:!0,forced:_H},{allSettled:function(t){var r=this,a=vH.f(r),n=a.resolve,s=a.reject,o=gH(function(){var l=mH(r.resolve),d=[],c=0,f=1;yH(t,function(m){var v=c++,g=!1;f++,pH(l,r,m).then(function(b){g||(g=!0,d[v]={status:"fulfilled",value:b},--f||n(d))},function(b){g||(g=!0,d[v]={status:"rejected",reason:b},--f||n(d))})}),--f||n(d)});return o.error&&s(o.value),a.promise}});var bH=X,wH=dt,EH=Lt,SH=kt,kH=Vr,xH=_a,TH=ui,$H=Tl,M0="No one promise resolved";bH({target:"Promise",stat:!0,forced:$H},{any:function(t){var r=this,a=SH("AggregateError"),n=kH.f(r),s=n.resolve,o=n.reject,l=xH(function(){var d=EH(r.resolve),c=[],f=0,m=1,v=!1;TH(t,function(g){var b=f++,S=!1;m++,wH(d,r,g).then(function(w){S||v||(v=!0,s(w))},function(w){S||v||(S=!0,c[b]=w,--m||o(new a(c,M0)))})}),--m||o(new a(c,M0))});return l.error&&o(l.value),n.promise}});var DH=X,Fh=ba,NH=me,CH=kt,OH=ze,AH=zb,R0=P0,IH=Fh&&Fh.prototype,PH=!!Fh&&NH(function(){IH.finally.call({then:function(){}},function(){})});DH({target:"Promise",proto:!0,real:!0,forced:PH},{finally:function(e){var t=AH(this,CH("Promise")),r=OH(e);return this.then(r?function(a){return R0(t,e()).then(function(){return a})}:e,r?function(a){return R0(t,e()).then(function(){throw a})}:e)}});var MH=Se,RH=MH.Promise,LH=RH,VH=LH,FH=X,YH=Vr;FH({target:"Promise",stat:!0},{withResolvers:function(){var t=YH.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var jH=VH,BH=jH,HH=X,WH=Vr,GH=_a;HH({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=WH.f(this),r=GH(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var zH=BH,UH=zH,KH=UH,qH=Qy,XH=qH,QH=XH,ZH=QH,JH=ZH;(function(e){var t=wj.default,r=_g,a=fu,n=$b,s=Cb,o=Tj,l=Ay,d=Db,c=KH,f=JH,m=Ry;function v(){e.exports=v=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 oe?F:oe,re=n(ie.prototype),Fe=new Yr(Q||[]);return k(re,"_invoke",{value:Fr(W,B,Fe)}),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 oe(){}function _e(){}function be(){}var pe={};A(pe,D,function(){return this});var it=s,ft=it&&it(it(_t([])));ft&&ft!==S&&w.call(ft,D)&&(pe=ft);var Me=be.prototype=oe.prototype=n(pe);function Gt(W){var F;o(F=["next","throw","return"]).call(F,function(B){A(W,B,function(Q){return this._invoke(B,Q)})})}function pt(W,F){function B(ie,re,Fe,tt){var at=C(W[ie],W,re);if(at.type!=="throw"){var $r=at.arg,pr=$r.value;return pr&&t(pr)=="object"&&w.call(pr,"__await")?F.resolve(pr.__await).then(function(Xe){B("next",Xe,Fe,tt)},function(Xe){B("throw",Xe,Fe,tt)}):F.resolve(pr).then(function(Xe){$r.value=Xe,Fe($r)},function(Xe){return B("throw",Xe,Fe,tt)})}tt(at.arg)}var Q;k(this,"_invoke",{value:function(re,Fe){function tt(){return new F(function(at,$r){B(re,Fe,at,$r)})}return Q=Q?Q.then(tt,tt):tt()}})}function Fr(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 Fe=B.delegate;if(Fe){var tt=yt(Fe,B);if(tt){if(tt===z)continue;return tt}}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 at=C(W,F,B);if(at.type==="normal"){if(Q=B.done?H:O,at.arg===z)continue;return{value:at.arg,done:B.done}}at.type==="throw"&&(Q=H,B.method="throw",B.arg=at.arg)}}}function yt(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,yt(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 Tr(W){var F=W.completion||{};F.type="normal",delete F.arg,W.completion=F}function Yr(W){this.tryEntries=[{tryLoc:"root"}],o(W).call(W,q,this),this.reset(!0)}function _t(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(Me,"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(Me),W},b.awrap=function(W){return{__await:W}},Gt(pt.prototype),A(pt.prototype,N,function(){return this}),b.AsyncIterator=pt,b.async=function(W,F,B,Q,ie){ie===void 0&&(ie=c);var re=new pt(R(W,F,B,Q),ie);return b.isGeneratorFunction(F)?re:re.next().then(function(Fe){return Fe.done?Fe.value:re.next()})},Gt(Me),A(Me,L,"Generator"),A(Me,D,function(){return this}),A(Me,"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=_t,Yr.prototype={constructor:Yr,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,Tr),!F)for(var Q in this)Q.charAt(0)==="t"&&w.call(this,Q)&&!isNaN(+m(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($r,pr){return Fe.type="throw",Fe.arg=F,B.next=$r,pr&&(B.method="next",B.arg=g),!!pr}for(var ie=this.tryEntries.length-1;ie>=0;--ie){var re=this.tryEntries[ie],Fe=re.completion;if(re.tryLoc==="root")return Q("end");if(re.tryLoc<=this.prev){var tt=w.call(re,"catchLoc"),at=w.call(re,"finallyLoc");if(tt&&at){if(this.prev<re.catchLoc)return Q(re.catchLoc,!0);if(this.prev<re.finallyLoc)return Q(re.finallyLoc)}else if(tt){if(this.prev<re.catchLoc)return Q(re.catchLoc,!0)}else{if(!at)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 Fe=re?re.completion:{};return Fe.type=F,Fe.arg=B,re?(this.method="next",this.next=re.finallyLoc,z):this.complete(Fe)},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),Tr(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;Tr(Q)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(F,B,Q){return this.delegate={iterator:_t(F),resultName:B,nextLoc:Q},this.method==="next"&&(this.arg=g),z}},b}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports})(Ab);var eW=Ab.exports,$l=eW(),tW=$l;try{regeneratorRuntime=$l}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=$l:Function("r","regeneratorRuntime = r")($l)}var Ht=U(tW),rW=Lt,nW=St,iW=Vo,aW=Vt,sW=TypeError,oW=function(e){return function(t,r,a,n){rW(r);var s=nW(t),o=iW(s),l=aW(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 sW("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}},lW={left:oW(!1)},dW=X,cW=lW.left,uW=oa,L0=zi,hW=Ys,fW=!hW&&L0>79&&L0<83,pW=fW||!uW("reduce");dW({target:"Array",proto:!0,forced:pW},{reduce:function(t){var r=arguments.length;return cW(this,t,r,r>1?arguments[1]:void 0)}});var mW=Be,vW=mW("Array").reduce,gW=Te,yW=vW,Yh=Array.prototype,_W=function(e){var t=e.reduce;return e===Yh||gW(Yh,e)&&t===Yh.reduce?yW:t},bW=_W,wW=bW,EW=wW,Dl=U(EW),SW=$n,kW=Vt,xW=qo,TW=kn,V0=function(e,t,r,a,n,s,o,l){for(var d=n,c=0,f=o?TW(o,l):!1,m,v;c<a;)c in r&&(m=f?f(r[c],c,t):r[c],s>0&&SW(m)?(v=kW(m),d=V0(e,t,m,v,d,s-1)-1):(xW(d+1),e[d]=m),d++),c++;return d},$W=V0,DW=X,NW=$W,CW=Lt,OW=St,AW=Vt,IW=Xo;DW({target:"Array",proto:!0},{flatMap:function(t){var r=OW(this),a=AW(r),n;return CW(t),n=IW(r,0),n.length=NW(n,r,r,a,0,1,t,arguments.length>1?arguments[1]:void 0),n}});var PW=Be,MW=PW("Array").flatMap,RW=Te,LW=MW,jh=Array.prototype,VW=function(e){var t=e.flatMap;return e===jh||RW(jh,e)&&t===jh.flatMap?LW:t},FW=VW,YW=FW,jW=YW,BW=U(jW),F0={exports:{}},HW=me,WW=HW(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),GW=me,zW=lt,UW=zr,Y0=WW,Nl=Object.isExtensible,KW=GW(function(){Nl(1)}),qW=KW||Y0?function(t){return!zW(t)||Y0&&UW(t)==="ArrayBuffer"?!1:Nl?Nl(t):!0}:Nl,XW=me,QW=!XW(function(){return Object.isExtensible(Object.preventExtensions({}))}),ZW=X,JW=Ee,e6=rs,t6=lt,Bh=Je,r6=Rt.f,j0=us,n6=Zc,Hh=qW,i6=No,a6=QW,B0=!1,nn=i6("meta"),s6=0,Wh=function(e){r6(e,nn,{value:{objectID:"O"+s6++,weakData:{}}})},o6=function(e,t){if(!t6(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Bh(e,nn)){if(!Hh(e))return"F";if(!t)return"E";Wh(e)}return e[nn].objectID},l6=function(e,t){if(!Bh(e,nn)){if(!Hh(e))return!0;if(!t)return!1;Wh(e)}return e[nn].weakData},d6=function(e){return a6&&B0&&Hh(e)&&!Bh(e,nn)&&Wh(e),e},c6=function(){u6.enable=function(){},B0=!0;var e=j0.f,t=JW([].splice),r={};r[nn]=1,e(r).length&&(j0.f=function(a){for(var n=e(a),s=0,o=n.length;s<o;s++)if(n[s]===nn){t(n,s,1);break}return n},ZW({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:n6.f}))},u6=F0.exports={enable:c6,fastKey:o6,getWeakData:l6,onFreeze:d6};e6[nn]=!0;var H0=F0.exports,h6=X,f6=Re,p6=H0,m6=me,v6=Kr,g6=ui,y6=mh,_6=ze,b6=lt,w6=Wi,E6=Jn,S6=Rt.f,k6=Xr.forEach,x6=rt,W0=Qi,T6=W0.set,$6=W0.getterFor,G0=function(e,t,r){var a=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,s=a?"set":"add",o=f6[e],l=o&&o.prototype,d={},c;if(!x6||!_6(o)||!(n||l.forEach&&!m6(function(){new o().entries().next()})))c=r.getConstructor(t,e,a,s),p6.enable();else{c=t(function(v,g){T6(y6(v,f),{type:e,collection:new o}),w6(g)||g6(g,v[s],{that:v,AS_ENTRIES:a})});var f=c.prototype,m=$6(e);k6(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(v){var g=v==="add"||v==="set";v in l&&!(n&&v==="clear")&&v6(f,v,function(b,S){var w=m(this).collection;if(!g&&n&&!b6(b))return v==="get"?void 0:!1;var k=w[v](b===0?0:b,S);return g?this:k})}),n||S6(f,"size",{configurable:!0,get:function(){return m(this).collection.size}})}return E6(c,e,!1,!0),d[e]=c,h6({global:!0,forced:!0},d),n||r.setStrong(c,e,a),c},D6=ta,N6=function(e,t,r){for(var a in t)r&&r.unsafe&&e[a]?e[a]=t[a]:D6(e,a,t[a],r);return e},C6=Zn,O6=Jc,z0=N6,A6=kn,I6=mh,P6=Wi,M6=ui,R6=Gc,Cl=zc,L6=Hb,zs=rt,U0=H0.fastKey,K0=Qi,q0=K0.set,Gh=K0.getterFor,X0={getConstructor:function(e,t,r,a){var n=e(function(c,f){I6(c,s),q0(c,{type:t,index:C6(null),first:void 0,last:void 0,size:0}),zs||(c.size=0),P6(f)||M6(f,c[a],{that:c,AS_ENTRIES:r})}),s=n.prototype,o=Gh(t),l=function(c,f,m){var v=o(c),g=d(c,f),b,S;return g?g.value=m:(v.last=g={index:S=U0(f,!0),key:f,value:m,previous:b=v.last,next:void 0,removed:!1},v.first||(v.first=g),b&&(b.next=g),zs?v.size++:c.size++,S!=="F"&&(v.index[S]=g)),c},d=function(c,f){var m=o(c),v=U0(f),g;if(v!=="F")return m.index[v];for(g=m.first;g;g=g.next)if(g.key===f)return g};return z0(s,{clear:function(){for(var f=this,m=o(f),v=m.index,g=m.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete v[g.index],g=g.next;m.first=m.last=void 0,zs?m.size=0:f.size=0},delete:function(c){var f=this,m=o(f),v=d(f,c);if(v){var g=v.next,b=v.previous;delete m.index[v.index],v.removed=!0,b&&(b.next=g),g&&(g.previous=b),m.first===v&&(m.first=g),m.last===v&&(m.last=b),zs?m.size--:f.size--}return!!v},forEach:function(f){for(var m=o(this),v=A6(f,arguments.length>1?arguments[1]:void 0),g;g=g?g.next:m.first;)for(v(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function(f){return!!d(this,f)}}),z0(s,r?{get:function(f){var m=d(this,f);return m&&m.value},set:function(f,m){return l(this,f===0?0:f,m)}}:{add:function(f){return l(this,f=f===0?0:f,f)}}),zs&&O6(s,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,t,r){var a=t+" Iterator",n=Gh(t),s=Gh(a);R6(e,t,function(o,l){q0(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,Cl(void 0,!0)):Cl(l==="keys"?d.key:l==="values"?d.value:[d.key,d.value],!1)},r?"entries":"values",!r,!0),L6(t)}},V6=G0,F6=X0;V6("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},F6);var Y6=Se,j6=Y6.Map,B6=j6,H6=B6,W6=H6,Q0=U(W6),G6=G0,z6=X0;G6("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},z6);var U6=Se,K6=U6.Set,q6=K6,X6=q6,Q6=X6,In=U(Q6),Z6=xy,pi=U(Z6),J6=qc,eG=J6,tG=eG,rG=tG,nG=rG,iG=nG,aG=iG,sG=aG,oG=sG,lG=oG,zh=U(lG),Z0=Tg,dG=Math.floor,Uh=function(e,t){var r=e.length,a=dG(r/2);return r<8?cG(e,t):uG(e,Uh(Z0(e,0,a),t),Uh(Z0(e,a),t),t)},cG=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},uG=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},hG=Uh,fG=Sn,J0=fG.match(/firefox\/(\d+)/i),pG=!!J0&&+J0[1],mG=Sn,vG=/MSIE|Trident/.test(mG),gG=Sn,ew=gG.match(/AppleWebKit\/(\d+)\./),yG=!!ew&&+ew[1],_G=X,tw=Ee,bG=Lt,wG=St,rw=Vt,EG=Jy,nw=dr,Kh=me,SG=hG,kG=oa,iw=pG,xG=vG,aw=zi,sw=yG,Pn=[],ow=tw(Pn.sort),TG=tw(Pn.push),$G=Kh(function(){Pn.sort(void 0)}),DG=Kh(function(){Pn.sort(null)}),NG=kG("sort"),lw=!Kh(function(){if(aw)return aw<70;if(!(iw&&iw>3)){if(xG)return!0;if(sw)return sw<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++)Pn.push({k:r+n,v:a})}for(Pn.sort(function(s,o){return o.v-s.v}),n=0;n<Pn.length;n++)r=Pn[n].k.charAt(0),e.charAt(e.length-1)!==r&&(e+=r);return e!=="DGBEFHACIJK"}}),CG=$G||!DG||!NG||!lw,OG=function(e){return function(t,r){return r===void 0?-1:t===void 0?1:e!==void 0?+e(t,r)||0:nw(t)>nw(r)?1:-1}};_G({target:"Array",proto:!0,forced:CG},{sort:function(t){t!==void 0&&bG(t);var r=wG(this);if(lw)return t===void 0?ow(r):ow(r,t);var a=[],n=rw(r),s,o;for(o=0;o<n;o++)o in r&&TG(a,r[o]);for(SG(a,OG(t)),s=rw(a),o=0;o<s;)r[o]=a[o++];for(;o<n;)EG(r,o++);return r}});var AG=Be,IG=AG("Array").sort,PG=Te,MG=IG,qh=Array.prototype,RG=function(e){var t=e.sort;return e===qh||PG(qh,e)&&t===qh.sort?MG:t},LG=RG,VG=LG,FG=VG,Ke=U(FG),YG=X,jG=Xr.some,BG=oa,HG=BG("some");YG({target:"Array",proto:!0,forced:!HG},{some:function(t){return jG(this,t,arguments.length>1?arguments[1]:void 0)}});var WG=Be,GG=WG("Array").some,zG=Te,UG=GG,Xh=Array.prototype,KG=function(e){var t=e.some;return e===Xh||zG(Xh,e)&&t===Xh.some?UG:t},qG=KG,XG=qG,QG=XG,Qh=U(QG),ZG=Be,JG=ZG("Array").keys,ez=JG,tz=ez,rz=Ur,nz=Je,iz=Te,az=tz,Zh=Array.prototype,sz={DOMTokenList:!0,NodeList:!0},oz=function(e){var t=e.keys;return e===Zh||iz(Zh,e)&&t===Zh.keys||nz(sz,rz(e))?az:t},lz=oz,mi=U(lz),dz=Be,cz=dz("Array").values,uz=cz,hz=uz,fz=Ur,pz=Je,mz=Te,vz=hz,Jh=Array.prototype,gz={DOMTokenList:!0,NodeList:!0},yz=function(e){var t=e.values;return e===Jh||mz(Jh,e)&&t===Jh.values||pz(gz,fz(e))?vz:t},_z=yz,dw=U(_z),bz=Be,wz=bz("Array").entries,Ez=wz,Sz=Ez,kz=Ur,xz=Je,Tz=Te,$z=Sz,ef=Array.prototype,Dz={DOMTokenList:!0,NodeList:!0},Nz=function(e){var t=e.entries;return e===ef||Tz(ef,e)&&t===ef.entries||xz(Dz,kz(e))?$z:t},Cz=Nz,Oz=U(Cz),Az=yg,Ol=U(Az),Iz=X,Pz=kt,tf=Zi,Mz=Gy,cw=Wb,Rz=Xt,uw=lt,Lz=Zn,hw=me,rf=Pz("Reflect","construct"),Vz=Object.prototype,Fz=[].push,fw=hw(function(){function e(){}return!(rf(function(){},[],e)instanceof e)}),pw=!hw(function(){rf(function(){})}),mw=fw||pw;Iz({target:"Reflect",stat:!0,forced:mw,sham:mw},{construct:function(t,r){cw(t),Rz(r);var a=arguments.length<3?t:cw(arguments[2]);if(pw&&!fw)return rf(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 tf(Fz,n,r),new(tf(Mz,t,n))}var s=a.prototype,o=Lz(uw(s)?s:Vz),l=tf(t,o,r);return uw(l)?l:o}});var Yz=Se,jz=Yz.Reflect.construct,Bz=jz,Hz=Bz,Wz=Hz,Z=U(Wz),Gz=Se,zz=Gz.Object.getOwnPropertySymbols,Uz=zz,Kz=Uz,qz=Kz,Al=U(qz),vw={exports:{}},Xz=X,Qz=me,Zz=yr,gw=Qn.f,yw=rt,Jz=!yw||Qz(function(){gw(1)});Xz({target:"Object",stat:!0,forced:Jz,sham:!yw},{getOwnPropertyDescriptor:function(t,r){return gw(Zz(t),r)}});var eU=Se,_w=eU.Object,tU=vw.exports=function(t,r){return _w.getOwnPropertyDescriptor(t,r)};_w.getOwnPropertyDescriptor.sham&&(tU.sham=!0);var rU=vw.exports,nU=rU,iU=nU,aU=iU,Il=U(aU),sU=X,oU=rt,lU=_u,dU=yr,cU=Qn,uU=na;sU({target:"Object",stat:!0,sham:!oU},{getOwnPropertyDescriptors:function(t){for(var r=dU(t),a=cU.f,n=lU(r),s={},o=0,l,d;n.length>o;)d=a(r,l=n[o++]),d!==void 0&&uU(s,l,d);return s}});var hU=Se,fU=hU.Object.getOwnPropertyDescriptors,pU=fU,mU=pU,vU=mU,Pl=U(vU),bw={exports:{}},gU=X,yU=rt,ww=Yo.f;gU({target:"Object",stat:!0,forced:Object.defineProperties!==ww,sham:!yU},{defineProperties:ww});var _U=Se,Ew=_U.Object,bU=bw.exports=function(t,r){return Ew.defineProperties(t,r)};Ew.defineProperties.sham&&(bU.sham=!0);var wU=bw.exports,EU=wU,SU=EU,kU=SU,Sw=U(kU);let Ml;const xU=new Uint8Array(16);function TU(){if(!Ml&&(Ml=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ml))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ml(xU)}const ut=[];for(let e=0;e<256;++e)ut.push((e+256).toString(16).slice(1));function $U(e,t=0){return ut[e[t+0]]+ut[e[t+1]]+ut[e[t+2]]+ut[e[t+3]]+"-"+ut[e[t+4]]+ut[e[t+5]]+"-"+ut[e[t+6]]+ut[e[t+7]]+"-"+ut[e[t+8]]+ut[e[t+9]]+"-"+ut[e[t+10]]+ut[e[t+11]]+ut[e[t+12]]+ut[e[t+13]]+ut[e[t+14]]+ut[e[t+15]]}var kw={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function vi(e,t,r){if(kw.randomUUID&&!e)return kw.randomUUID();e=e||{};const a=e.random||(e.rng||TU)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,$U(a)}var xw;function Tw(e,t){var r=nt(e);if(Al){var a=Al(e);t&&(a=te(a).call(a,function(n){return Il(e,n).enumerable})),r.push.apply(r,a)}return r}function $w(e){for(var t=1;t<arguments.length;t++){var r,a,n=arguments[t]!=null?arguments[t]:{};t%2?G(r=Tw(Object(n),!0)).call(r,function(s){ve(e,s,n[s])}):Pl?Sw(e,Pl(n)):G(a=Tw(Object(n))).call(a,function(s){Ol(e,s,Il(n,s))})}return e}function Dw(e){var t=DU();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function DU(){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 Wt(e,t){var r=typeof Zr<"u"&&Tn(e)||e["@@iterator"];if(!r){if(ae(e)||(r=NU(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 NU(e,t){var r;if(e){if(typeof e=="string")return Nw(e,t);var a=vt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Nw(e,t)}}function Nw(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 CU(e){return new AU(e)}var OU=function(){function e(t,r,a){var n,s,o;he(this,e),ve(this,"_source",void 0),ve(this,"_transformers",void 0),ve(this,"_target",void 0),ve(this,"_listeners",{add:I(n=this._add).call(n,this),remove:I(s=this._remove).call(s,this),update:I(o=this._update).call(o,this)}),this._source=t,this._transformers=r,this._target=a}return fe(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 Dl(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}(),AU=function(){function e(t){he(this,e),ve(this,"_source",void 0),ve(this,"_transformers",[]),this._source=t}return fe(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 ke(a).call(a,r)}),this}},{key:"flatMap",value:function(r){return this._transformers.push(function(a){return BW(a).call(a,r)}),this}},{key:"to",value:function(r){return new OU(this._source,this._transformers,r)}}]),e}();function nf(e){return typeof e=="string"||typeof e=="number"}var IU=function(){function e(t){he(this,e),ve(this,"delay",void 0),ve(this,"max",void 0),ve(this,"_queue",[]),ve(this,"_timeout",null),ve(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return fe(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=gt(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}(),Cw=function(){function e(){he(this,e),ve(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),ve(this,"subscribe",e.prototype.on),ve(this,"unsubscribe",e.prototype.off)}return fe(e,[{key:"_trigger",value:function(r,a,n){var s,o;if(r==="*")throw new Error("Cannot trigger event *");G(s=Ie(o=[]).call(o,Ve(this._subscribers[r]),Ve(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}();xw=pi;var Ow=function(){function e(t){he(this,e),ve(this,"_pairs",void 0),this._pairs=t}return fe(e,[{key:xw,value:Ht.mark(function t(){var r,a,n,s,o;return Ht.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:r=Wt(this._pairs),d.prev=1,r.s();case 3:if((a=r.n()).done){d.next=9;break}return n=mt(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:Ht.mark(function t(){var r,a,n,s,o;return Ht.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:r=Wt(this._pairs),d.prev=1,r.s();case 3:if((a=r.n()).done){d.next=9;break}return n=mt(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:Ht.mark(function t(){var r,a,n,s;return Ht.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:r=Wt(this._pairs),l.prev=1,r.s();case 3:if((a=r.n()).done){l.next=9;break}return n=mt(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:Ht.mark(function t(){var r,a,n,s;return Ht.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:r=Wt(this._pairs),l.prev=1,r.s();case 3:if((a=r.n()).done){l.next=9;break}return n=mt(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 ke(r=Ve(this._pairs)).call(r,function(a){return a[0]})}},{key:"toItemArray",value:function(){var r;return ke(r=Ve(this._pairs)).call(r,function(a){return a[1]})}},{key:"toEntryArray",value:function(){return Ve(this._pairs)}},{key:"toObjectMap",value:function(){var r=ws(null),a=Wt(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=mt(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 Q0(this._pairs)}},{key:"toIdSet",value:function(){return new In(this.toIdArray())}},{key:"toItemSet",value:function(){return new In(this.toItemArray())}},{key:"cache",value:function(){return new e(Ve(this._pairs))}},{key:"distinct",value:function(r){var a=new In,n=Wt(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=mt(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(ve({},pi,Ht.mark(function n(){var s,o,l,d,c;return Ht.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:s=Wt(a),m.prev=1,s.s();case 3:if((o=s.n()).done){m.next=10;break}if(l=mt(o.value,2),d=l[0],c=l[1],!r(c,d)){m.next=8;break}return m.next=8,[d,c];case 8:m.next=3;break;case 10:m.next=15;break;case 12:m.prev=12,m.t0=m.catch(1),s.e(m.t0);case 15:return m.prev=15,s.f(),m.finish(15);case 18:case"end":return m.stop()}},n,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(r){var a=Wt(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=mt(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(ve({},pi,Ht.mark(function n(){var s,o,l,d,c;return Ht.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:s=Wt(a),m.prev=1,s.s();case 3:if((o=s.n()).done){m.next=9;break}return l=mt(o.value,2),d=l[0],c=l[1],m.next=7,[d,r(c,d)];case 7:m.next=3;break;case 9:m.next=14;break;case 11:m.prev=11,m.t0=m.catch(1),s.e(m.t0);case 14:return m.prev=14,s.f(),m.finish(14);case 17:case"end":return m.stop()}},n,null,[[1,11,14,17]])})))}},{key:"max",value:function(r){var a=zh(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=mt(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=zh(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=mt(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=Wt(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=mt(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(ve({},pi,function(){var n;return zh(Ke(n=Ve(a._pairs)).call(n,function(s,o){var l=mt(s,2),d=l[0],c=l[1],f=mt(o,2),m=f[0],v=f[1];return r(c,v,d,m)}))}))}}]),e}();function PU(e,t){return e[t]==null&&(e[t]=vi()),e}var gi=function(e){$t(r,e);var t=Dw(r);function r(a,n){var s;return he(this,r),s=t.call(this),ve(De(s),"flush",void 0),ve(De(s),"length",void 0),ve(De(s),"_options",void 0),ve(De(s),"_data",void 0),ve(De(s),"_idProp",void 0),ve(De(s),"_queue",null),a&&!ae(a)&&(n=a,a=[]),s._options=n||{},s._data=new Q0,s.length=0,s._idProp=s._options.fieldId||"id",a&&a.length&&s.add(a),s.setOptions(n),s}return fe(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=IU.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=ke(n).call(n,function(v){return v[o._idProp]});if(Qh(c).call(c,function(v){return o._data.has(v)}))throw new Error("A duplicate id was found in the parameter array.");for(var f=0,m=n.length;f<m;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=[],m=this._idProp,v=function(k){var T=k[m];if(T!=null&&o._data.has(T)){var D=k,N=Jr({},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"?v(n[g]):console.warn("Ignoring input item, which is not an object at index "+g);else if(n&&ne(n)==="object")v(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 Ie(l).call(l,d)}},{key:"updateOnly",value:function(n,s){var o,l=this;ae(n)||(n=[n]);var d=ke(o=ke(n).call(n,function(f){var m=l._data.get(f[l._idProp]);if(m==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:m,update:f}})).call(o,function(f){var m=f.oldData,v=f.update,g=m[l._idProp],b=vb(m,v);return l._data.set(g,b),{id:g,oldData:m,updatedData:b}});if(d.length){var c={items:ke(d).call(d,function(f){return f.id}),oldData:ke(d).call(d,function(f){return f.oldData}),data:ke(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;nf(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),m=[],v=void 0,g=void 0,b=void 0;if(o!=null)v=this._data.get(o),v&&f&&!f(v)&&(v=void 0);else if(l!=null)for(var S=0,w=l.length;S<w;S++)v=this._data.get(l[S]),v!=null&&(!f||f(v))&&m.push(v);else{var k;g=Ve(mi(k=this._data).call(k));for(var T=0,D=g.length;T<D;T++)b=g[T],v=this._data.get(b),v!=null&&(!f||f(v))&&m.push(v)}if(d&&d.order&&o==null&&this._sort(m,d.order),d&&d.fields){var N=d.fields;if(o!=null&&v!=null)v=this._filterFields(v,N);else for(var L=0,A=m.length;L<A;L++)m[L]=this._filterFields(m[L],N)}if(c=="Object"){for(var R={},C=0,j=m.length;C<j;C++){var O=m[C],M=O[this._idProp];R[M]=O}return R}else if(o!=null){var H;return(H=v)!==null&&H!==void 0?H:null}else return m}},{key:"getIds",value:function(n){var s=this._data,o=n&&te(n),l=n&&n.order,d=Ve(mi(s).call(s)),c=[];if(o)if(l){for(var f=[],m=0,v=d.length;m<v;m++){var g=d[m],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],oe=s.get(z);oe!=null&&c.push(oe[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=Ve(mi(l).call(l));if(s&&s.order)for(var c=this.get(s),f=0,m=c.length;f<m;f++){var v=c[f],g=v[this._idProp];n(v,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=Ve(mi(d).call(d)),f=0,m=c.length;f<m;f++){var v=c[f],g=this._data.get(v);g!=null&&(!o||o(g))&&l.push(n(g,v))}return s&&s.order&&this._sort(l,s.order),l}},{key:"_filterFields",value:function(n,s){var o;return n&&Dl(o=ae(s)?s:nt(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;Ke(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")Ke(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 m=this._remove(d[c]);if(m){var v=m[this._idProp];v!=null&&(o.push(v),l.push(m))}}return o.length&&this._trigger("remove",{items:o,oldData:l},s),o}},{key:"_remove",value:function(n){var s;if(nf(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=Ve(mi(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=Wt(dw(s=this._data).call(s)),c;try{for(d.s();!(c=d.n()).done;){var f=c.value,m=f[n];typeof m=="number"&&(l==null||m>l)&&(o=f,l=m)}}catch(v){d.e(v)}finally{d.f()}return o||null}},{key:"min",value:function(n){var s,o=null,l=null,d=Wt(dw(s=this._data).call(s)),c;try{for(d.s();!(c=d.n()).done;){var f=c.value,m=f[n];typeof m=="number"&&(l==null||m<l)&&(o=f,l=m)}}catch(v){d.e(v)}finally{d.f()}return o||null}},{key:"distinct",value:function(n){for(var s=this._data,o=Ve(mi(s).call(s)),l=[],d=0,c=0,f=o.length;c<f;c++){for(var m=o[c],v=s.get(m),g=v[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=PU(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: "+Yt(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,$w($w({},o),n)),s}},{key:"stream",value:function(n){if(n){var s=this._data;return new Ow(ve({},pi,Ht.mark(function l(){var d,c,f,m;return Ht.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:d=Wt(n),g.prev=1,d.s();case 3:if((c=d.n()).done){g.next=11;break}if(f=c.value,m=s.get(f),m==null){g.next=9;break}return g.next=9,[f,m];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 Ow(ve({},pi,I(o=Oz(this._data)).call(o,this._data)))}}}]),r}(Cw),MU=function(e){$t(r,e);var t=Dw(r);function r(a,n){var s,o;return he(this,r),o=t.call(this),ve(De(o),"length",0),ve(De(o),"_listener",void 0),ve(De(o),"_data",void 0),ve(De(o),"_ids",new In),ve(De(o),"_options",void 0),o._options=n||{},o._listener=I(s=o._onEvent).call(s,De(o)),o.setData(a),o}return fe(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 gi;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var n=this._data.getIds({filter:te(this._options)}),s=Ve(this._ids),o={},l=[],d=[],c=[],f=0,m=n.length;f<m;f++){var v=n[f];o[v]=!0,this._ids.has(v)||(l.push(v),this._ids.add(v))}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;nf(n)||ae(n)?(o=n,l=s):l=n;var d=Jr({},this._options,l),c=te(this._options),f=l&&te(l);return c&&f&&(d.filter=function(m){return c(m)&&f(m)}),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(m){return l(m)&&d(m)}: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(m){return l(m)&&d(m)}:c=d:c=l,ke(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||ve({},pi,I(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=Wt(Fy(r.prototype)),d;try{for(l.s();!(d=l.n()).done;){var c=d.value;Ol(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=[],m=[],v=[],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),v.push(s.data[T]),m.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:m,data:v},o),f.length&&this._trigger("remove",{items:f,oldData:g},o)}}}]),r}(Cw);function RU(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 ke(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 LU(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 ke(t)=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.stream=="function"&&RU(e,t.getDataSet())}var VU=typeof window<"u"&&window.moment||vr(),Dt=U(VU),FU=vr(),Er=U(FU),af={exports:{}},Ge={},sf={exports:{}},yi={};function Aw(){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 YU(e,t,r){}function jU(e,t,r){}var BU=/javascript\s*\:/img;function HU(e,t){return BU.test(t)?"":t}yi.whiteList=Aw(),yi.getDefaultWhiteList=Aw,yi.onAttr=YU,yi.onIgnoreAttr=jU,yi.safeAttrValue=HU;var WU={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,"")}},Us=WU;function GU(e,t){e=Us.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,a=!1,n=0,s=0,o="";function l(){if(!a){var f=Us.trim(e.slice(n,s)),m=f.indexOf(":");if(m!==-1){var v=Us.trim(f.slice(0,m)),g=Us.trim(f.slice(m+1));if(v){var b=t(n,o.length,v,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 Us.trim(o)}var zU=GU,Rl=yi,UU=zU;function Iw(e){return e==null}function KU(e){var t={};for(var r in e)t[r]=e[r];return t}function Pw(e){e=KU(e||{}),e.whiteList=e.whiteList||Rl.whiteList,e.onAttr=e.onAttr||Rl.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Rl.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Rl.safeAttrValue,this.options=e}Pw.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=UU(e,function(d,c,f,m,v){var g=a[f],b=!1;if(g===!0?b=g:typeof g=="function"?b=g(m):g instanceof RegExp&&(b=g.test(m)),b!==!0&&(b=!1),m=o(f,m),!!m){var S={position:c,sourcePosition:d,source:v,isWhite:b};if(b){var w=n(f,m,S);return Iw(w)?f+":"+m:w}else{var w=s(f,m,S);if(!Iw(w))return w}}});return l};var qU=Pw;(function(e,t){var r=yi,a=qU;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)})(sf,sf.exports);var of=sf.exports,lf={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}},XU=of.FilterCSS,QU=of.getDefaultWhiteList,Ll=lf;function Mw(){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 Rw=new XU;function ZU(e,t,r){}function JU(e,t,r){}function e9(e,t,r){}function t9(e,t,r){}function Lw(e){return e.replace(n9,"<").replace(i9,">")}function r9(e,t,r,a){if(r=Gw(r),t==="href"||t==="src"){if(r=Ll.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(Vl.lastIndex=0,Vl.test(r))return""}else if(t==="style"){if(Vw.lastIndex=0,Vw.test(r)||(Fw.lastIndex=0,Fw.test(r)&&(Vl.lastIndex=0,Vl.test(r))))return"";a!==!1&&(a=a||Rw,r=a.process(r))}return r=zw(r),r}var n9=/</g,i9=/>/g,a9=/"/g,s9=/"/g,o9=/&#([a-zA-Z0-9]*);?/gim,l9=/:?/gim,d9=/&newline;?/gim,Vl=/((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,Vw=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Fw=/u\s*r\s*l\s*\(.*/gi;function Yw(e){return e.replace(a9,""")}function jw(e){return e.replace(s9,'"')}function Bw(e){return e.replace(o9,function(r,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function Hw(e){return e.replace(l9,":").replace(d9," ")}function Ww(e){for(var t="",r=0,a=e.length;r<a;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Ll.trim(t)}function Gw(e){return e=jw(e),e=Bw(e),e=Hw(e),e=Ww(e),e}function zw(e){return e=Yw(e),e=Lw(e),e}function c9(){return""}function u9(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function a(o){return r?!0:Ll.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 Ll.forEach(n,function(c){l+=o.slice(d,c[0]),d=c[1]}),l+=o.slice(d),l}}}function h9(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 f9(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=Mw(),Ge.getDefaultWhiteList=Mw,Ge.onTag=ZU,Ge.onIgnoreTag=JU,Ge.onTagAttr=e9,Ge.onIgnoreTagAttr=t9,Ge.safeAttrValue=r9,Ge.escapeHtml=Lw,Ge.escapeQuote=Yw,Ge.unescapeQuote=jw,Ge.escapeHtmlEntities=Bw,Ge.escapeDangerHtml5Entities=Hw,Ge.clearNonPrintableCharacter=Ww,Ge.friendlyAttrValue=Gw,Ge.escapeAttrValue=zw,Ge.onIgnoreTagStripAll=c9,Ge.StripTagBody=u9,Ge.stripCommentTag=h9,Ge.stripBlankChar=f9,Ge.cssFilter=Rw,Ge.getDefaultCSSWhiteList=QU;var Fl={},Mn=lf;function p9(e){var t=Mn.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=Mn.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function m9(e){return e.slice(0,2)==="</"}function v9(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 m=e.charAt(l);if(s===!1){if(m==="<"){s=l;continue}}else if(o===!1){if(m==="<"){a+=r(e.slice(n,l)),s=l,n=l;continue}if(m===">"||l===d-1){a+=r(e.slice(n,s)),f=e.slice(s,l+1),c=p9(f),a+=t(s,a.length,c,f,m9(f)),n=l+1,s=!1;continue}if(m==='"'||m==="'")for(var v=1,g=e.charAt(l-v);g.trim()===""||g==="=";){if(g==="="){o=m;continue e}g=e.charAt(l-++v)}}else if(m===o){o=!1;continue}}return n<d&&(a+=r(e.substr(n))),a}var g9=/[^a-zA-Z0-9\\_:.-]/gim;function y9(e,t){var r=0,a=0,n=[],s=!1,o=e.length;function l(v,g){if(v=Mn.trim(v),v=v.replace(g9,"").toLowerCase(),!(v.length<1)){var b=t(v,g||"");b&&n.push(b)}}for(var d=0;d<o;d++){var c=e.charAt(d),f,m;if(s===!1&&c==="="){s=e.slice(r,d),r=d+1,a=e.charAt(r)==='"'||e.charAt(r)==="'"?r:b9(e,d+1);continue}if(s!==!1&&d===a){if(m=e.indexOf(c,d+1),m===-1)break;f=Mn.trim(e.slice(a+1,m)),l(s,f),s=!1,d=m,r=d+1;continue}if(/\s|\n|\t/.test(c))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(m=_9(e,d),m===-1){f=Mn.trim(e.slice(r,d)),l(f),s=!1,r=d+1;continue}else{d=m-1;continue}else if(m=w9(e,d-1),m===-1){f=Mn.trim(e.slice(r,d)),f=Uw(f),l(s,f),s=!1,r=d+1;continue}else continue}return r<e.length&&(s===!1?l(e.slice(r)):l(s,Uw(Mn.trim(e.slice(r))))),Mn.trim(n.join(" "))}function _9(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function b9(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function w9(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function E9(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Uw(e){return E9(e)?e.substr(1,e.length-2):e}Fl.parseTag=v9,Fl.parseAttr=y9;var S9=of.FilterCSS,Sr=Ge,Kw=Fl,k9=Kw.parseTag,x9=Kw.parseAttr,Yl=lf;function jl(e){return e==null}function T9(e){var t=Yl.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Yl.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=Yl.trim(e.slice(0,-1))),{html:e,closing:r}}function $9(e){var t={};for(var r in e)t[r]=e[r];return t}function D9(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 qw(e){e=$9(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Sr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=D9(e.whiteList||e.allowList):e.whiteList=Sr.whiteList,e.onTag=e.onTag||Sr.onTag,e.onTagAttr=e.onTagAttr||Sr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Sr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Sr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Sr.safeAttrValue,e.escapeHtml=e.escapeHtml||Sr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new S9(e.css))}qw.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=Sr.stripBlankChar(e)),r.allowCommentTag||(e=Sr.stripCommentTag(e));var m=!1;r.stripIgnoreTagBody&&(m=Sr.StripTagBody(r.stripIgnoreTagBody,s),s=m.onIgnoreTag);var v=k9(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(!jl(D))return D;if(T.isWhite){if(T.isClosing)return"</"+S+">";var N=T9(w),L=a[S],A=x9(N.html,function(R,C){var j=Yl.indexOf(L,R)!==-1,O=o(S,R,C,j);return jl(O)?j?(C=d(S,R,C,f),C?R+'="'+C+'"':R):(O=l(S,R,C,j),jl(O)?void 0:O):O});return w="<"+S,A&&(w+=" "+A),N.closing&&(w+=" /"),w+=">",w}else return D=s(S,w,T),jl(D)?c(w):D},c);return m&&(v=m.remove(v)),v};var N9=qw;(function(e,t){var r=Ge,a=Fl,n=N9;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)})(af,af.exports);var C9=af.exports,O9=U(C9);function Xw(e,t){var r=nt(e);if(Al){var a=Al(e);t&&(a=te(a).call(a,function(n){return Il(e,n).enumerable})),r.push.apply(r,a)}return r}function Qw(e){for(var t=1;t<arguments.length;t++){var r,a,n=arguments[t]!=null?arguments[t]:{};t%2?G(r=Xw(Object(n),!0)).call(r,function(s){ve(e,s,n[s])}):Pl?Sw(e,Pl(n)):G(a=Xw(Object(n))).call(a,function(s){Ol(e,s,Il(n,s))})}return e}function an(e){var t;if(!e)return!1;var r=(t=e.idProp)!==null&&t!==void 0?t:e._idProp;return r?LU(r,e):!1}var df=/^\/?Date\((-?\d+)/i,A9=/^\d+$/;function cf(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 Jt(e)&&!isNaN(Date.parse(e))?Er(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return cf(e,"Moment").toDate()}catch(n){throw n instanceof TypeError?new TypeError("Cannot convert object of type "+Rs(e)+" to type "+t):n}case"Moment":if(Ps(e))return Er(e);if(e instanceof Date)return Er(e.valueOf());if(Er.isMoment(e))return Er(e);if(Jt(e))return r=df.exec(e),r?Er(Number(r[1])):(r=A9.exec(e),Er(r?Number(e):e));throw new TypeError("Cannot convert object of type "+Rs(e)+" to type "+t);case"ISODate":if(Ps(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(Er.isMoment(e))return e.toDate().toISOString();if(Jt(e))return r=df.exec(e),r?new Date(Number(r[1])).toISOString():Er(e).format();throw new Error("Cannot convert object of type "+Rs(e)+" to type ISODate");case"ASPDate":if(Ps(e))return"/Date("+e+")/";if(e instanceof Date||Er.isMoment(e))return"/Date("+e.valueOf()+")/";if(Jt(e)){r=df.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 "+Rs(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(t))}}}function ka(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 gi({fieldId:d}),f=ke(t=CU(e)).call(t,function(m){var v;return Dl(v=nt(m)).call(v,function(g,b){return g[b]=cf(m[b],l[b]),g},{})}).to(c);return f.all().start(),{add:function(){var v;return(v=e.getDataSet()).add.apply(v,arguments)},remove:function(){var v;return(v=e.getDataSet()).remove.apply(v,arguments)},update:function(){var v;return(v=e.getDataSet()).update.apply(v,arguments)},updateOnly:function(){var v;return(v=e.getDataSet()).updateOnly.apply(v,arguments)},clear:function(){var v;return(v=e.getDataSet()).clear.apply(v,arguments)},forEach:I(r=G(c)).call(r,c),get:I(a=c.get).call(a,c),getIds:I(n=c.getIds).call(n,c),off:I(s=c.off).call(s,c),on:I(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 Zw=function(t){var r=new O9.FilterXSS(t);return function(a){return r.process(a)}},I9=function(t){return t},uf=Zw(),P9=function(t){t&&(t.disabled===!0?(uf=I9,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(uf=Zw(t.filterOptions)))},x=Qw(Qw({},K4),{},{convert:cf,setupXSSProtection:P9});Ol(x,"xss",{get:function(){return uf}});var Jw=Re,M9=me,R9=Ee,L9=dr,V9=p_.trim,F9=Au,Y9=R9("".charAt),Bl=Jw.parseFloat,eE=Jw.Symbol,tE=eE&&eE.iterator,j9=1/Bl(F9+"-0")!==-1/0||tE&&!M9(function(){Bl(Object(tE))}),B9=j9?function(t){var r=V9(L9(t)),a=Bl(r);return a===0&&Y9(r,0)==="-"?-0:a}:Bl,H9=X,rE=B9;H9({global:!0,forced:parseFloat!==rE},{parseFloat:rE});var W9=Se,G9=W9.parseFloat,z9=G9,U9=z9,K9=U9,Hl=U(K9),Rn=function(){function e(t,r){he(this,e),this.options=null,this.props=null}return fe(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}(),q9=es,X9=dr,Q9=Gi,Z9=RangeError,J9=function(t){var r=X9(Q9(this)),a="",n=q9(t);if(n<0||n===1/0)throw new Z9("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(r+=r))n&1&&(a+=r);return a},e7=X,t7=J9;e7({target:"String",proto:!0},{repeat:t7});var r7=Be,n7=r7("String").repeat,i7=Te,a7=n7,hf=String.prototype,s7=function(e){var t=e.repeat;return typeof e=="string"||e===hf||i7(hf,e)&&t===hf.repeat?a7:t},o7=s7,l7=o7,d7=l7,xa=U(d7);function ff(e,t,r){if(r&&!ae(r))return ff(e,t,[r]);if(t.hiddenDates=[],r&&ae(r)==!0){for(var a,n=0;n<r.length;n++)if(xa(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)}Ke(a=t.hiddenDates).call(a,function(o,l){return o.start-l.start})}}function Wl(e,t,r){if(r&&!ae(r))return Wl(e,t,[r]);if(r&&t.domProps.centerContainer.width!==void 0){ff(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(xa(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 m=0,v=n.clone();switch(xa(r[l])){case"daily":d.day()!=c.day()&&(m=1),d.dayOfYear(a.dayOfYear()),d.year(a.year()),d.subtract(7,"days"),c.dayOfYear(a.dayOfYear()),c.year(a.year()),c.subtract(7-m,"days"),v.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"),v.add(1,"weeks");break}case"monthly":d.month()!=c.month()&&(m=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(m,"months"),v.add(1,"months");break;case"yearly":d.year()!=c.year()&&(m=1),d.year(a.year()),d.subtract(1,"years"),c.year(a.year()),c.subtract(1,"years"),c.add(m,"years"),v.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",xa(r[l]));return}for(;d<v;)switch(t.hiddenDates.push({start:d.valueOf(),end:c.valueOf()}),xa(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:",xa(r[l]));return}t.hiddenDates.push({start:d.valueOf(),end:c.valueOf()})}}c7(t);var S=zl(t.range.start,t.hiddenDates),w=zl(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 c7(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,Ke(t=e.hiddenDates).call(t,function(o,l){return o.start-l.start})}function u7(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 nE(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=zl(t,e.body.hiddenDates);n.hidden==!0&&(t=n.startDate);var s=Ks(e.body.hiddenDates,e.range.start,e.range.end);if(t<e.range.start){a=e.range.conversion(r,s);var o=h7(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=aE(e.options.moment,e.body.hiddenDates,l,t),a=e.range.conversion(r,s),(t.valueOf()-a.offset)*a.scale}else return t=aE(e.options.moment,e.body.hiddenDates,e.range,t),a=e.range.conversion(r,s),(t.valueOf()-a.offset)*a.scale}function iE(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=Ks(e.body.hiddenDates,e.range.start,e.range.end),s=e.range.end-e.range.start-n,o=s*t/r,l=f7(e.body.hiddenDates,e.range,o);return new Date(l+o+e.range.start)}}function Ks(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 h7(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 aE(e,t,r,a){return a=e(a).toDate().valueOf(),a-=Gl(e,t,r,a),a}function Gl(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 f7(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 _i(e,t,r,a){var n=zl(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 zl(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 p7(e){var t=m7();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function m7(){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 sE=function(e){$t(r,e);var t=p7(r);function r(a,n){var s,o,l,d,c,f,m,v;he(this,r),v=t.call(this);var g=Dt().hours(0).minutes(0).seconds(0).milliseconds(0),b=g.clone().add(-3,"days").valueOf(),S=g.clone().add(3,"days").valueOf();return v.millisecondsPerPixelCache=void 0,n===void 0?(v.start=b,v.end=S):(v.start=n.start||b,v.end=n.end||S),v.rolling=!1,v.body=a,v.deltaDifference=0,v.scaleOffset=0,v.startToFront=!1,v.endToFront=!0,v.defaultOptions={rtl:!1,start:null,end:null,moment:Dt,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:!1,offset:.5}},v.options=x.extend({},v.defaultOptions),v.props={touch:{}},v.animationTimer=null,v.body.emitter.on("panstart",I(s=v._onDragStart).call(s,De(v))),v.body.emitter.on("panmove",I(o=v._onDrag).call(o,De(v))),v.body.emitter.on("panend",I(l=v._onDragEnd).call(l,De(v))),v.body.emitter.on("mousewheel",I(d=v._onMouseWheel).call(d,De(v))),v.body.emitter.on("touch",I(c=v._onTouch).call(c,De(v))),v.body.emitter.on("pinch",I(f=v._onPinch).call(f,De(v))),v.body.dom.rollingModeBtn.addEventListener("click",I(m=v.startRolling).call(m,De(v))),v.setOptions(n),v}return fe(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),m={animation:!1};n.setRange(c,f,m);var v=n.conversion(n.body.domProps.center.width).scale;o=1/v/10,o<30&&(o=30),o>1e3&&(o=1e3),n.body.dom.rollingModeBtn.style.visibility="hidden",n.currentTimeTimer=gt(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,m=s!=null?x.convert(s,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,o.animation){var v=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(Ie(k="Unknown easing function ".concat(Yt(S),". Choose from: ")).call(k,nt(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:v+(f-v)*O,z=M||m===null?m:g+(m-g)*O;L=c._applyRange(H,z),Wl(c.options.moment,c.body,c.options.hiddenDates),D=D||L;var oe={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",oe),M){if(D&&(c.body.emitter.emit("rangechanged",oe),l))return l()}else c.animationTimer=gt(R,20)}};return N()}else{var L=this._applyRange(f,m);if(Wl(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=gt(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 m=Hl(this.options.zoomMin);if(m<0&&(m=0),l-o<m){var v=.5;this.end-this.start===m&&o>=this.start-v&&l<=this.end?(o=this.start,l=this.end):(f=m-(l-o),o-=f/2,l+=f/2)}}if(this.options.zoomMax!==null){var g=Hl(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;oE(s);var o=s=="horizontal"?n.deltaX:n.deltaY;o-=this.deltaDifference;var l=this.props.touch.end-this.props.touch.start,d=Ks(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 m=this.props.touch.start+f,v=this.props.touch.end+f,g=_i(this.body.hiddenDates,m,this.previousDelta-o,!0),b=_i(this.body.hiddenDates,v,this.previousDelta-o,!0);if(g!=m||b!=v){this.deltaDifference+=o,this.props.touch.start=g,this.props.touch.end=b,this._onDrag(n);return}this.previousDelta=o,this._applyRange(m,v);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=Ks(this.body.hiddenDates,this.start,this.end),d=Gl(this.options.moment,this.body.hiddenDates,this,o),c=l-d,f=o-d+(this.props.touch.start-(o-d))*s,m=o+c+(this.props.touch.end-(o+c))*s;this.startToFront=1-s<=0,this.endToFront=s-1<=0;var v=_i(this.body.hiddenDates,f,1-s,!0),g=_i(this.body.hiddenDates,m,s-1,!0);(v!=f||g!=m)&&(this.props.touch.start=v,this.props.touch.end=g,this.scaleOffset=1-n.scale,f=v,m=g);var b={animation:!1,byUser:!0,event:n};this.setRange(f,m,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(oE(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=Ks(this.body.hiddenDates,this.start,this.end),c=Gl(this.options.moment,this.body.hiddenDates,this,s),f=d-c,m=s-c+(this.start-(s-c))*n,v=s+f+(this.end-(s+f))*n;this.startToFront=!(o>0),this.endToFront=!(-o>0);var g=_i(this.body.hiddenDates,m,o,!0),b=_i(this.body.hiddenDates,v,-o,!0);(g!=m||b!=v)&&(m=g,v=b);var S={animation:!1,byUser:!0,event:l};this.setRange(m,v,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}(Rn);function oE(e){if(e!="horizontal"&&e!="vertical")throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var v7=Se,g7=v7.setInterval,y7=g7,_7=U(y7),Ul=null;function pf(e,t){var r=t||{preventDefault:!1};if(e.Manager){var a=e,n=function(c,f){var m=Object.create(r);return f&&a.assign(m,f),pf(new a(c,m),m)};return a.assign(n,a),n.Manager=function(c,f){var m=Object.create(r);return f&&a.assign(m,f),pf(new a.Manager(c,m),m)},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&&(Ul=c.target)}),s._handlers={},s.on=function(c,f){return l(c).forEach(function(m){var v=s._handlers[m];v||(s._handlers[m]=v=[],e.on(m,d)),v.push(f)}),s},s.off=function(c,f){return l(c).forEach(function(m){var v=s._handlers[m];v&&(v=f?v.filter(function(g){return g!==f}):[],v.length>0?s._handlers[m]=v:(e.off(m,d),delete s._handlers[m]))}),s},s.emit=function(c,f){Ul=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 m=c.srcEvent.stopPropagation.bind(c.srcEvent);typeof m=="function"&&(c.srcEvent.stopPropagation=function(){m(),c.stopPropagation()}),c.firstTarget=Ul;for(var v=Ul;v&&!f;){var g=v.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)}v=v.parentNode}}return s}function b7(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(r){return{set:e}}}}var mf;if(typeof window<"u"){var w7=window.Hammer||pb;mf=pf(w7,{preventDefault:"mouse"})}else mf=function(){return b7()};var Nt=mf;function lE(e,t){t.inputHandler=function(r){r.isFirst&&t(r)},e.on("hammer.input",t.inputHandler)}function E7(e,t){return t.inputHandler=function(r){r.isFinal&&t(r)},e.on("hammer.input",t.inputHandler)}function S7(e){var t="pan-y";return e.getTouchAction=function(){return[t]},e}var Kl=function(){function e(t,r,a,n,s){he(this,e),this.moment=s&&s.moment||Dt,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 fe(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(_i(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,u7(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 m(g){return g.isSame(Qt(),"month")?" vis-current-month":""}function v(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(Ie(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(m(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(m(s)),l.push(d(s.month()));break;case"year":l.push("vis-year".concat(s.year())),l.push(v(s)),l.push(d(s.year()));break}return te(l).call(l,String).join(" ")}}],[{key:"snap",value:function(r,a,n){var s=Dt(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}();Kl.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 Ct(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 k7=`.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}(),iA=pr,nA=$v,aA=eA,sA=Ad,oA=tA,lA=Hd,dA=rA,cA=Object.freeze({__proto__:null,Activator:iA,Alea:dM,ColorPicker:nA,Configurator:aA,DELETE:Id,HSVToHex:Ld,HSVToRGB:Sa,Hammer:sA,Popup:oA,RGBToHSV:pn,RGBToHex:Rd,VALIDATOR_PRINT_STYLE:lA,Validator:dA,addClassName:NM,addCssText:HM,addEventListener:AM,binarySearchCustom:XM,binarySearchValue:qM,bridgeObject:jd,copyAndExtendArray:Ea,copyArray:kv,deepExtend:ka,deepObjectAssign:Md,easingFunctions:KM,equalArray:SM,extend:wM,fillIfDefined:wv,forEach:OM,getAbsoluteLeft:$M,getAbsoluteRight:DM,getAbsoluteTop:TM,getScrollBarWidth:ZM,getTarget:LM,getType:xa,hasParent:FM,hexToHSV:Ev,hexToRGB:Vs,insertSort:zM,isDate:bM,isNumber:wa,isObject:Vd,isString:Rt,isValidHex:Fd,isValidRGB:Yd,isValidRGBA:Sv,mergeOptions:UM,option:YM,overrideOpacity:jM,parseColor:BM,preventDefault:RM,pureDeepObjectAssign:gv,recursiveDOMDelete:bv,removeClassName:CM,removeCssText:WM,removeEventListener:VM,selectiveBridgeObject:GM,selectiveDeepExtend:xM,selectiveExtend:kM,selectiveNotDeepExtend:EM,throttle:MM,toArray:PM,topMost:QM,updateProperty:IM});function Jr(e){for(var r in e)e.hasOwnProperty(r)&&(e[r].redundant=e[r].used,e[r].used=[])}function Ut(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 uA(e){Jr(e),Ut(e),Jr(e)}function rr(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 Wd(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 mn(e,r,t,a,n,s){var o;if(t.style=="circle"?(o=rr("circle",a,n),o.setAttributeNS(null,"cx",e),o.setAttributeNS(null,"cy",r),o.setAttributeNS(null,"r",.5*t.size)):(o=rr("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=rr("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 Gd(e,r,t,a,n,s,o,l){if(a!=0){a<0&&(a*=-1,r-=a);var d=rr("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 hA(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch{return"en"}}function xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var fA=xm,pA=fA,mA=pA,vA=mA,Tv=vA,gA=G(Tv),yA=U,_A=Rh;yA({target:"Object",stat:!0},{setPrototypeOf:_A});var bA=ye,wA=bA.Object.setPrototypeOf,kA=wA,xA=kA,EA=xA,SA=EA,$A=SA,DA=$A,Nv=DA,zd=G(Nv),TA=Xp,NA=TA,CA=NA,OA=CA,PA=OA,Cv=G(PA);function Ud(e,r){var t;return Ud=zd?Cv(t=zd).call(t):function(n,s){return n.__proto__=s,n},Ud(e,r)}function gt(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=gA(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),ms(e,"prototype",{writable:!1}),r&&Ud(e,r)}function Nt(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 xe(e)}var IA=om,MA=IA,AA=MA,VA=AA,Ov=VA,Pv=G(Ov);function be(e){var r;return be=zd?Cv(r=Pv).call(r):function(a){return a.__proto__||Pv(a)},be(e)}function fe(e,r,t){return r=Tp(r),r in e?ms(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Iv={exports:{}},Mv={exports:{}};(function(e){var r=ql,t=Dp;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})(Mv);var RA=Mv.exports,LA=Kp,FA=LA,YA=FA,jA=YA,BA=jA,Av=Xe,HA=td,WA=hi,GA=xt,zA=function(e,r,t){for(var a=HA(r),n=GA.f,s=WA.f,o=0;o<a.length;o++){var l=a[o];!Av(e,l)&&!(t&&Av(t,l))&&n(e,l,s(r,l))}},UA=Je,XA=wr,qA=function(e,r){UA(r)&&"cause"in r&&XA(e,"cause",r.cause)},KA=ge,Vv=Error,ZA=KA("".replace),QA=function(e){return String(new Vv(e).stack)}("zxcasd"),Rv=/\n\s*at [^:]*:[^\n]*/,JA=Rv.test(QA),eV=function(e,r){if(JA&&typeof e=="string"&&!Vv.prepareStackTrace)for(;r--;)e=ZA(e,Rv,"");return e},tV=he,rV=ui,iV=!tV(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",rV(1,7)),e.stack!==7):!0}),nV=wr,aV=eV,sV=iV,Lv=Error.captureStackTrace,oV=function(e,r,t,a){sV&&(Lv?Lv(e,r):nV(e,"stack",aV(t,a)))},lV=zr,dV=et,cV=Mt,uV=Ui,hV=Uh,fV=St,Fv=we,pV=Ol,mV=fs,Yv=zh,vV=TypeError,Rs=function(e,r){this.stopped=e,this.result=r},jv=Rs.prototype,$i=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=lV(r,a),c,f,m,v,y,b,E,w=function(D){return c&&Yv(c,"normal",D),new Rs(!0,D)},S=function(D){return n?(cV(D),l?d(D[0],D[1],w):d(D[0],D[1])):l?d(D,w):d(D)};if(s)c=e.iterator;else if(o)c=e;else{if(f=mV(e),!f)throw new vV(uV(e)+" is not iterable");if(hV(f)){for(m=0,v=fV(e);v>m;m++)if(y=S(e[m]),y&&Fv(jv,y))return y;return new Rs(!1)}c=pV(e,f)}for(b=s?e.next:c.next;!(E=dV(b,c)).done;){try{y=S(E.value)}catch(D){Yv(c,"throw",D)}if(typeof y=="object"&&y&&Fv(jv,y))return y}return new Rs(!1)},gV=Wt,yV=function(e,r){return e===void 0?arguments.length<2?"":r:gV(e)},_V=U,bV=we,wV=qn,Ls=Rh,kV=zA,Bv=fi,Xd=wr,qd=ui,xV=qA,EV=oV,SV=$i,$V=yV,DV=Oe,TV=DV("toStringTag"),Fs=Error,NV=[].push,vn=function(r,t){var a=bV(Kd,this),n;Ls?n=Ls(new Fs,a?wV(this):Kd):(n=a?this:Bv(Kd),Xd(n,TV,"Error")),t!==void 0&&Xd(n,"message",$V(t)),EV(n,vn,n.stack,1),arguments.length>2&&xV(n,arguments[2]);var s=[];return SV(r,NV,{that:s}),Xd(n,"errors",s),n};Ls?Ls(vn,Fs):kV(vn,Fs,{name:!0});var Kd=vn.prototype=Bv(Fs.prototype,{constructor:qd(1,vn),message:qd(1,""),name:qd(1,"AggregateError")});_V({global:!0},{AggregateError:vn});var CV=Ce,OV=_r,Da=OV(CV.process)==="process",PV=pt,IV=Al,MV=Oe,AV=Ke,Hv=MV("species"),Wv=function(e){var r=PV(e);AV&&r&&!r[Hv]&&IV(r,Hv,{configurable:!0,get:function(){return this}})},VV=we,RV=TypeError,Zd=function(e,r){if(VV(r,e))return e;throw new RV("Incorrect invocation")},LV=hs,FV=Ui,YV=TypeError,Gv=function(e){if(LV(e))return e;throw new YV(FV(e)+" is not a constructor")},zv=Mt,jV=Gv,BV=Bi,HV=Oe,WV=HV("species"),Uv=function(e,r){var t=zv(e).constructor,a;return t===void 0||BV(a=zv(t)[WV])?r:jV(a)},GV=Gr,Xv=/(?:ipad|iphone|ipod).*applewebkit/i.test(GV),Lt=Ce,zV=Ki,UV=zr,qv=Be,XV=Xe,Kv=he,Zv=Eh,qV=aa,Qv=Jo,KV=Em,ZV=Xv,QV=Da,Qd=Lt.setImmediate,Jv=Lt.clearImmediate,JV=Lt.process,Jd=Lt.Dispatch,eR=Lt.Function,eg=Lt.MessageChannel,tR=Lt.String,ec=0,Ta={},tg="onreadystatechange",Na,Di,tc,rc;Kv(function(){Na=Lt.location});var ic=function(e){if(XV(Ta,e)){var r=Ta[e];delete Ta[e],r()}},nc=function(e){return function(){ic(e)}},rg=function(e){ic(e.data)},ig=function(e){Lt.postMessage(tR(e),Na.protocol+"//"+Na.host)};(!Qd||!Jv)&&(Qd=function(r){KV(arguments.length,1);var t=qv(r)?r:eR(r),a=qV(arguments,1);return Ta[++ec]=function(){zV(t,void 0,a)},Di(ec),ec},Jv=function(r){delete Ta[r]},QV?Di=function(e){JV.nextTick(nc(e))}:Jd&&Jd.now?Di=function(e){Jd.now(nc(e))}:eg&&!ZV?(tc=new eg,rc=tc.port2,tc.port1.onmessage=rg,Di=UV(rc.postMessage,rc)):Lt.addEventListener&&qv(Lt.postMessage)&&!Lt.importScripts&&Na&&Na.protocol!=="file:"&&!Kv(ig)?(Di=ig,Lt.addEventListener("message",rg,!1)):tg in Qv("script")?Di=function(e){Zv.appendChild(Qv("script"))[tg]=function(){Zv.removeChild(this),ic(e)}}:Di=function(e){setTimeout(nc(e),0)});var ng={set:Qd},ag=function(){this.head=null,this.tail=null};ag.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 sg=ag,rR=Gr,iR=/ipad|iphone|ipod/i.test(rR)&&typeof Pebble<"u",nR=Gr,aR=/web0s(?!.*chrome)/i.test(nR),Ti=Ce,og=zr,sR=hi.f,ac=ng.set,oR=sg,lR=Xv,dR=iR,cR=aR,sc=Da,lg=Ti.MutationObserver||Ti.WebKitMutationObserver,dg=Ti.document,cg=Ti.process,Ys=Ti.Promise,ug=sR(Ti,"queueMicrotask"),oc=ug&&ug.value,gn,lc,dc,js,hg;if(!oc){var Bs=new oR,Hs=function(){var e,r;for(sc&&(e=cg.domain)&&e.exit();r=Bs.get();)try{r()}catch(t){throw Bs.head&&gn(),t}e&&e.enter()};!lR&&!sc&&!cR&&lg&&dg?(lc=!0,dc=dg.createTextNode(""),new lg(Hs).observe(dc,{characterData:!0}),gn=function(){dc.data=lc=!lc}):!dR&&Ys&&Ys.resolve?(js=Ys.resolve(void 0),js.constructor=Ys,hg=og(js.then,js),gn=function(){hg(Hs)}):sc?gn=function(){cg.nextTick(Hs)}:(ac=og(ac,Ti),gn=function(){ac(Hs)}),oc=function(e){Bs.head||gn(),Bs.add(e)}}var uR=oc,hR=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch{}},yn=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}},fR=Ce,_n=fR.Promise,fg=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",pR=fg,mR=Da,vR=!pR&&!mR&&typeof window=="object"&&typeof document=="object",gR=Ce,Ca=_n,yR=Be,_R=vh,bR=Xh,wR=Oe,kR=vR,xR=fg,cc=Wi,pg=Ca&&Ca.prototype,ER=wR("species"),mg=!1,vg=yR(gR.PromiseRejectionEvent),SR=_R("Promise",function(){var e=bR(Ca),r=e!==String(Ca);if(!r&&cc===66||!(pg.catch&&pg.finally))return!0;if(!cc||cc<51||!/native code/.test(e)){var t=new Ca(function(s){s(1)}),a=function(s){s(function(){},function(){})},n=t.constructor={};if(n[ER]=a,mg=t.then(function(){})instanceof a,!mg)return!0}return!r&&(kR||xR)&&!vg}),Oa={CONSTRUCTOR:SR,REJECTION_EVENT:vg},mr={},gg=Et,$R=TypeError,DR=function(e){var r,t;this.promise=new e(function(a,n){if(r!==void 0||t!==void 0)throw new $R("Bad Promise constructor");r=a,t=n}),this.resolve=gg(r),this.reject=gg(t)};mr.f=function(e){return new DR(e)};var TR=U,Ws=Da,ei=Ce,Pa=et,NR=Ji,CR=pi,OR=Wv,PR=Et,uc=Be,IR=Je,MR=Zd,AR=Uv,yg=ng.set,hc=uR,VR=hR,RR=yn,LR=sg,_g=qi,fc=_n,bg=Oa,wg=mr,Gs="Promise",kg=bg.CONSTRUCTOR,FR=bg.REJECTION_EVENT,pc=_g.getterFor(Gs),YR=_g.set,jR=fc&&fc.prototype,bn=fc,mc=jR,xg=ei.TypeError,vc=ei.document,gc=ei.process,yc=wg.f,BR=yc,HR=!!(vc&&vc.createEvent&&ei.dispatchEvent),Eg="unhandledrejection",WR="rejectionhandled",Sg=0,$g=1,GR=2,_c=1,Dg=2,zs,Tg,zR,Ng=function(e){var r;return IR(e)&&uc(r=e.then)?r:!1},Cg=function(e,r){var t=r.value,a=r.state===$g,n=a?e.ok:e.fail,s=e.resolve,o=e.reject,l=e.domain,d,c,f;try{n?(a||(r.rejection===Dg&&XR(r),r.rejection=_c),n===!0?d=t:(l&&l.enter(),d=n(t),l&&(l.exit(),f=!0)),d===e.promise?o(new xg("Promise-chain cycle")):(c=Ng(d))?Pa(c,d,s,o):s(d)):o(t)}catch(m){l&&!f&&l.exit(),o(m)}},Og=function(e,r){e.notified||(e.notified=!0,hc(function(){for(var t=e.reactions,a;a=t.get();)Cg(a,e);e.notified=!1,r&&!e.rejection&&UR(e)}))},Pg=function(e,r,t){var a,n;HR?(a=vc.createEvent("Event"),a.promise=r,a.reason=t,a.initEvent(e,!1,!0),ei.dispatchEvent(a)):a={promise:r,reason:t},!FR&&(n=ei["on"+e])?n(a):e===Eg&&VR("Unhandled promise rejection",t)},UR=function(e){Pa(yg,ei,function(){var r=e.facade,t=e.value,a=Ig(e),n;if(a&&(n=RR(function(){Ws?gc.emit("unhandledRejection",t,r):Pg(Eg,r,t)}),e.rejection=Ws||Ig(e)?Dg:_c,n.error))throw n.value})},Ig=function(e){return e.rejection!==_c&&!e.parent},XR=function(e){Pa(yg,ei,function(){var r=e.facade;Ws?gc.emit("rejectionHandled",r):Pg(WR,r,e.value)})},wn=function(e,r,t){return function(a){e(r,a,t)}},kn=function(e,r,t){e.done||(e.done=!0,t&&(e=t),e.value=r,e.state=GR,Og(e,!0))},bc=function(e,r,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===r)throw new xg("Promise can't be resolved itself");var a=Ng(r);a?hc(function(){var n={done:!1};try{Pa(a,r,wn(bc,n,e),wn(kn,n,e))}catch(s){kn(n,s,e)}}):(e.value=r,e.state=$g,Og(e,!1))}catch(n){kn({done:!1},n,e)}}};kg&&(bn=function(r){MR(this,mc),PR(r),Pa(zs,this);var t=pc(this);try{r(wn(bc,t),wn(kn,t))}catch(a){kn(t,a)}},mc=bn.prototype,zs=function(r){YR(this,{type:Gs,done:!1,notified:!1,parent:!1,reactions:new LR,rejection:!1,state:Sg,value:void 0})},zs.prototype=NR(mc,"then",function(r,t){var a=pc(this),n=yc(AR(this,bn));return a.parent=!0,n.ok=uc(r)?r:!0,n.fail=uc(t)&&t,n.domain=Ws?gc.domain:void 0,a.state===Sg?a.reactions.add(n):hc(function(){Cg(n,a)}),n.promise}),Tg=function(){var e=new zs,r=pc(e);this.promise=e,this.resolve=wn(bc,r),this.reject=wn(kn,r)},wg.f=yc=function(e){return e===bn||e===zR?new Tg(e):BR(e)}),TR({global:!0,wrap:!0,forced:kg},{Promise:bn}),CR(bn,Gs,!1,!0),OR(Gs);var qR=_n,KR=sf,ZR=Oa.CONSTRUCTOR,Us=ZR||!KR(function(e){qR.all(e).then(void 0,function(){})}),QR=U,JR=et,eL=Et,tL=mr,rL=yn,iL=$i,nL=Us;QR({target:"Promise",stat:!0,forced:nL},{all:function(r){var t=this,a=tL.f(t),n=a.resolve,s=a.reject,o=rL(function(){var l=eL(t.resolve),d=[],c=0,f=1;iL(r,function(m){var v=c++,y=!1;f++,JR(l,t,m).then(function(b){y||(y=!0,d[v]=b,--f||n(d))},s)}),--f||n(d)});return o.error&&s(o.value),a.promise}});var aL=U,sL=Oa.CONSTRUCTOR,Mg=_n;Mg&&Mg.prototype,aL({target:"Promise",proto:!0,forced:sL,real:!0},{catch:function(e){return this.then(void 0,e)}});var oL=U,lL=et,dL=Et,cL=mr,uL=yn,hL=$i,fL=Us;oL({target:"Promise",stat:!0,forced:fL},{race:function(r){var t=this,a=cL.f(t),n=a.reject,s=uL(function(){var o=dL(t.resolve);hL(r,function(l){lL(o,t,l).then(a.resolve,n)})});return s.error&&n(s.value),a.promise}});var pL=U,mL=et,vL=mr,gL=Oa.CONSTRUCTOR;pL({target:"Promise",stat:!0,forced:gL},{reject:function(r){var t=vL.f(this);return mL(t.reject,void 0,r),t.promise}});var yL=Mt,_L=Je,bL=mr,Ag=function(e,r){if(yL(e),_L(r)&&r.constructor===e)return r;var t=bL.f(e),a=t.resolve;return a(r),t.promise},wL=U,kL=pt,xL=Yb,EL=_n,SL=Oa.CONSTRUCTOR,$L=Ag,DL=kL("Promise"),TL=!SL;wL({target:"Promise",stat:!0,forced:xL},{resolve:function(r){return $L(TL&&this===DL?EL:this,r)}});var NL=U,CL=et,OL=Et,PL=mr,IL=yn,ML=$i,AL=Us;NL({target:"Promise",stat:!0,forced:AL},{allSettled:function(r){var t=this,a=PL.f(t),n=a.resolve,s=a.reject,o=IL(function(){var l=OL(t.resolve),d=[],c=0,f=1;ML(r,function(m){var v=c++,y=!1;f++,CL(l,t,m).then(function(b){y||(y=!0,d[v]={status:"fulfilled",value:b},--f||n(d))},function(b){y||(y=!0,d[v]={status:"rejected",reason:b},--f||n(d))})}),--f||n(d)});return o.error&&s(o.value),a.promise}});var VL=U,RL=et,LL=Et,FL=pt,YL=mr,jL=yn,BL=$i,HL=Us,Vg="No one promise resolved";VL({target:"Promise",stat:!0,forced:HL},{any:function(r){var t=this,a=FL("AggregateError"),n=YL.f(t),s=n.resolve,o=n.reject,l=jL(function(){var d=LL(t.resolve),c=[],f=0,m=1,v=!1;BL(r,function(y){var b=f++,E=!1;m++,RL(d,t,y).then(function(w){E||v||(v=!0,s(w))},function(w){E||v||(E=!0,c[b]=w,--m||o(new a(c,Vg)))})}),--m||o(new a(c,Vg))});return l.error&&o(l.value),n.promise}});var WL=U,wc=_n,GL=he,zL=pt,UL=Be,XL=Uv,Rg=Ag,qL=wc&&wc.prototype,KL=!!wc&&GL(function(){qL.finally.call({then:function(){}},function(){})});WL({target:"Promise",proto:!0,real:!0,forced:KL},{finally:function(e){var r=XL(this,zL("Promise")),t=UL(e);return this.then(t?function(a){return Rg(r,e()).then(function(){return a})}:e,t?function(a){return Rg(r,e()).then(function(){throw a})}:e)}});var ZL=ye,QL=ZL.Promise,JL=QL,eF=JL,tF=U,rF=mr;tF({target:"Promise",stat:!0},{withResolvers:function(){var r=rF.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var iF=eF,nF=iF,aF=U,sF=mr,oF=yn;aF({target:"Promise",stat:!0,forced:!0},{try:function(e){var r=sF.f(this),t=oF(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}});var lF=nF,dF=lF,cF=dF,uF=Qp,hF=uF,fF=hF,pF=fF,mF=pF;(function(e){var r=RA.default,t=bf,a=ql,n=Tv,s=Ov,o=BA,l=Ip,d=Nv,c=cF,f=mF,m=Rp;function v(){e.exports=v=function(){return b},e.exports.__esModule=!0,e.exports.default=e.exports;var y,b={},E=Object.prototype,w=E.hasOwnProperty,S=t||function(B,R,Y){B[R]=Y.value},D=typeof a=="function"?a:{},T=D.iterator||"@@iterator",P=D.asyncIterator||"@@asyncIterator",F=D.toStringTag||"@@toStringTag";function A(B,R,Y){return t(B,R,{value:Y,enumerable:!0,configurable:!0,writable:!0}),B[R]}try{A({},"")}catch{A=function(Y,X,ie){return Y[X]=ie}}function V(B,R,Y,X){var ie=R&&R.prototype instanceof ue?R:ue,te=n(ie.prototype),je=new Ya(X||[]);return S(te,"_invoke",{value:La(B,Y,je)}),te}function N(B,R,Y){try{return{type:"normal",arg:B.call(R,Y)}}catch(X){return{type:"throw",arg:X}}}b.wrap=V;var I="suspendedStart",M="suspendedYield",H="executing",W="completed",q={};function ue(){}function Re(){}function rt(){}var Ye={};A(Ye,T,function(){return this});var Pt=s,Ir=Pt&&Pt(Pt(oi([])));Ir&&Ir!==E&&w.call(Ir,T)&&(Ye=Ir);var ze=rt.prototype=ue.prototype=n(Ye);function vr(B){var R;o(R=["next","throw","return"]).call(R,function(Y){A(B,Y,function(X){return this._invoke(Y,X)})})}function or(B,R){function Y(ie,te,je,at){var dt=N(B[ie],B,te);if(dt.type!=="throw"){var Ar=dt.arg,gr=Ar.value;return gr&&r(gr)=="object"&&w.call(gr,"__await")?R.resolve(gr.__await).then(function(jt){Y("next",jt,je,at)},function(jt){Y("throw",jt,je,at)}):R.resolve(gr).then(function(jt){Ar.value=jt,je(Ar)},function(jt){return Y("throw",jt,je,at)})}at(dt.arg)}var X;S(this,"_invoke",{value:function(te,je){function at(){return new R(function(dt,Ar){Y(te,je,dt,Ar)})}return X=X?X.then(at,at):at()}})}function La(B,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 je=Y.delegate;if(je){var at=Mr(je,Y);if(at){if(at===q)continue;return at}}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 dt=N(B,R,Y);if(dt.type==="normal"){if(X=Y.done?W:M,dt.arg===q)continue;return{value:dt.arg,done:Y.done}}dt.type==="throw"&&(X=W,Y.method="throw",Y.arg=dt.arg)}}}function Mr(B,R){var Y=R.method,X=B.iterator[Y];if(X===y)return R.delegate=null,Y==="throw"&&B.iterator.return&&(R.method="return",R.arg=y,Mr(B,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,B.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[B.resultName]=te.value,R.next=B.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(B){var R,Y={tryLoc:B[0]};1 in B&&(Y.catchLoc=B[1]),2 in B&&(Y.finallyLoc=B[2],Y.afterLoc=B[3]),l(R=this.tryEntries).call(R,Y)}function Fa(B){var R=B.completion||{};R.type="normal",delete R.arg,B.completion=R}function Ya(B){this.tryEntries=[{tryLoc:"root"}],o(B).call(B,K,this),this.reset(!0)}function oi(B){if(B||B===""){var R=B[T];if(R)return R.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var Y=-1,X=function ie(){for(;++Y<B.length;)if(w.call(B,Y))return ie.value=B[Y],ie.done=!1,ie;return ie.value=y,ie.done=!0,ie};return X.next=X}}throw new TypeError(r(B)+" is not iterable")}return Re.prototype=rt,S(ze,"constructor",{value:rt,configurable:!0}),S(rt,"constructor",{value:Re,configurable:!0}),Re.displayName=A(rt,F,"GeneratorFunction"),b.isGeneratorFunction=function(B){var R=typeof B=="function"&&B.constructor;return!!R&&(R===Re||(R.displayName||R.name)==="GeneratorFunction")},b.mark=function(B){return d?d(B,rt):(B.__proto__=rt,A(B,F,"GeneratorFunction")),B.prototype=n(ze),B},b.awrap=function(B){return{__await:B}},vr(or.prototype),A(or.prototype,P,function(){return this}),b.AsyncIterator=or,b.async=function(B,R,Y,X,ie){ie===void 0&&(ie=c);var te=new or(V(B,R,Y,X),ie);return b.isGeneratorFunction(R)?te:te.next().then(function(je){return je.done?je.value:te.next()})},vr(ze),A(ze,F,"Generator"),A(ze,T,function(){return this}),A(ze,"toString",function(){return"[object Generator]"}),b.keys=function(B){var R=Object(B),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=oi,Ya.prototype={constructor:Ya,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,Fa),!R)for(var X in this)X.charAt(0)==="t"&&w.call(this,X)&&!isNaN(+m(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(Ar,gr){return je.type="throw",je.arg=R,Y.next=Ar,gr&&(Y.method="next",Y.arg=y),!!gr}for(var ie=this.tryEntries.length-1;ie>=0;--ie){var te=this.tryEntries[ie],je=te.completion;if(te.tryLoc==="root")return X("end");if(te.tryLoc<=this.prev){var at=w.call(te,"catchLoc"),dt=w.call(te,"finallyLoc");if(at&&dt){if(this.prev<te.catchLoc)return X(te.catchLoc,!0);if(this.prev<te.finallyLoc)return X(te.finallyLoc)}else if(at){if(this.prev<te.catchLoc)return X(te.catchLoc,!0)}else{if(!dt)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 je=te?te.completion:{};return je.type=R,je.arg=Y,te?(this.method="next",this.next=te.finallyLoc,q):this.complete(je)},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),Fa(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;Fa(X)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(R,Y,X){return this.delegate={iterator:oi(R),resultName:Y,nextLoc:X},this.method==="next"&&(this.arg=y),q}},b}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports})(Iv);var vF=Iv.exports,Xs=vF(),gF=Xs;try{regeneratorRuntime=Xs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Xs:Function("r","regeneratorRuntime = r")(Xs)}var Ct=G(gF),yF=Et,_F=ft,bF=as,wF=St,kF=TypeError,xF=function(e){return function(r,t,a,n){yF(t);var s=_F(r),o=bF(s),l=wF(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 kF("Reduce of empty array with no initial value")}for(;e?d>=0:l>d;d+=c)d in o&&(n=t(n,o[d],d,s));return n}},EF={left:xF(!1)},SF=U,$F=EF.left,DF=sn,Lg=Wi,TF=Da,NF=!TF&&Lg>79&&Lg<83,CF=NF||!DF("reduce");SF({target:"Array",proto:!0,forced:CF},{reduce:function(r){var t=arguments.length;return $F(this,r,t,t>1?arguments[1]:void 0)}});var OF=Ae,PF=OF("Array").reduce,IF=we,MF=PF,kc=Array.prototype,AF=function(e){var r=e.reduce;return e===kc||IF(kc,e)&&r===kc.reduce?MF:r},VF=AF,RF=VF,LF=RF,qs=G(LF),FF=qr,YF=St,jF=vs,BF=zr,Fg=function(e,r,t,a,n,s,o,l){for(var d=n,c=0,f=o?BF(o,l):!1,m,v;c<a;)c in t&&(m=f?f(t[c],c,r):t[c],s>0&&FF(m)?(v=YF(m),d=Fg(e,r,m,v,d,s-1)-1):(jF(d+1),e[d]=m),d++),c++;return d},HF=Fg,WF=U,GF=HF,zF=Et,UF=ft,XF=St,qF=gs;WF({target:"Array",proto:!0},{flatMap:function(r){var t=UF(this),a=XF(t),n;return zF(r),n=qF(t,0),n.length=GF(n,t,t,a,0,1,r,arguments.length>1?arguments[1]:void 0),n}});var KF=Ae,ZF=KF("Array").flatMap,QF=we,JF=ZF,xc=Array.prototype,e5=function(e){var r=e.flatMap;return e===xc||QF(xc,e)&&r===xc.flatMap?JF:r},t5=e5,r5=t5,i5=r5,n5=G(i5),Yg={exports:{}},a5=he,s5=a5(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),o5=he,l5=Je,d5=_r,jg=s5,Ks=Object.isExtensible,c5=o5(function(){Ks(1)}),u5=c5||jg?function(r){return!l5(r)||jg&&d5(r)==="ArrayBuffer"?!1:Ks?Ks(r):!0}:Ks,h5=he,f5=!h5(function(){return Object.isExtensible(Object.preventExtensions({}))}),p5=U,m5=ge,v5=Hn,g5=Je,Ec=Xe,y5=xt.f,Bg=Qn,_5=Ml,Sc=u5,b5=Ka,w5=f5,Hg=!1,Cr=b5("meta"),k5=0,$c=function(e){y5(e,Cr,{value:{objectID:"O"+k5++,weakData:{}}})},x5=function(e,r){if(!g5(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Ec(e,Cr)){if(!Sc(e))return"F";if(!r)return"E";$c(e)}return e[Cr].objectID},E5=function(e,r){if(!Ec(e,Cr)){if(!Sc(e))return!0;if(!r)return!1;$c(e)}return e[Cr].weakData},S5=function(e){return w5&&Hg&&Sc(e)&&!Ec(e,Cr)&&$c(e),e},$5=function(){D5.enable=function(){},Hg=!0;var e=Bg.f,r=m5([].splice),t={};t[Cr]=1,e(t).length&&(Bg.f=function(a){for(var n=e(a),s=0,o=n.length;s<o;s++)if(n[s]===Cr){r(n,s,1);break}return n},p5({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_5.f}))},D5=Yg.exports={enable:$5,fastKey:x5,getWeakData:E5,onFreeze:S5};v5[Cr]=!0;var Wg=Yg.exports,T5=U,N5=Ce,C5=Wg,O5=he,P5=wr,I5=$i,M5=Zd,A5=Be,V5=Je,R5=Bi,L5=pi,F5=xt.f,Y5=xr.forEach,j5=Ke,Gg=qi,B5=Gg.set,H5=Gg.getterFor,zg=function(e,r,t){var a=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,s=a?"set":"add",o=N5[e],l=o&&o.prototype,d={},c;if(!j5||!A5(o)||!(n||l.forEach&&!O5(function(){new o().entries().next()})))c=t.getConstructor(r,e,a,s),C5.enable();else{c=r(function(v,y){B5(M5(v,f),{type:e,collection:new o}),R5(y)||I5(y,v[s],{that:v,AS_ENTRIES:a})});var f=c.prototype,m=H5(e);Y5(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(v){var y=v==="add"||v==="set";v in l&&!(n&&v==="clear")&&P5(f,v,function(b,E){var w=m(this).collection;if(!y&&n&&!V5(b))return v==="get"?void 0:!1;var S=w[v](b===0?0:b,E);return y?this:S})}),n||F5(f,"size",{configurable:!0,get:function(){return m(this).collection.size}})}return L5(c,e,!1,!0),d[e]=c,T5({global:!0,forced:!0},d),n||t.setStrong(c,e,a),c},W5=Ji,G5=function(e,r,t){for(var a in r)t&&t.unsafe&&e[a]?e[a]=r[a]:W5(e,a,r[a],t);return e},z5=fi,U5=Al,Ug=G5,X5=zr,q5=Zd,K5=Bi,Z5=$i,Q5=Dl,Zs=Tl,J5=Wv,Ia=Ke,Xg=Wg.fastKey,qg=qi,Kg=qg.set,Dc=qg.getterFor,Zg={getConstructor:function(e,r,t,a){var n=e(function(c,f){q5(c,s),Kg(c,{type:r,index:z5(null),first:void 0,last:void 0,size:0}),Ia||(c.size=0),K5(f)||Z5(f,c[a],{that:c,AS_ENTRIES:t})}),s=n.prototype,o=Dc(r),l=function(c,f,m){var v=o(c),y=d(c,f),b,E;return y?y.value=m:(v.last=y={index:E=Xg(f,!0),key:f,value:m,previous:b=v.last,next:void 0,removed:!1},v.first||(v.first=y),b&&(b.next=y),Ia?v.size++:c.size++,E!=="F"&&(v.index[E]=y)),c},d=function(c,f){var m=o(c),v=Xg(f),y;if(v!=="F")return m.index[v];for(y=m.first;y;y=y.next)if(y.key===f)return y};return Ug(s,{clear:function(){for(var f=this,m=o(f),v=m.index,y=m.first;y;)y.removed=!0,y.previous&&(y.previous=y.previous.next=void 0),delete v[y.index],y=y.next;m.first=m.last=void 0,Ia?m.size=0:f.size=0},delete:function(c){var f=this,m=o(f),v=d(f,c);if(v){var y=v.next,b=v.previous;delete m.index[v.index],v.removed=!0,b&&(b.next=y),y&&(y.previous=b),m.first===v&&(m.first=y),m.last===v&&(m.last=b),Ia?m.size--:f.size--}return!!v},forEach:function(f){for(var m=o(this),v=X5(f,arguments.length>1?arguments[1]:void 0),y;y=y?y.next:m.first;)for(v(y.value,y.key,this);y&&y.removed;)y=y.previous},has:function(f){return!!d(this,f)}}),Ug(s,t?{get:function(f){var m=d(this,f);return m&&m.value},set:function(f,m){return l(this,f===0?0:f,m)}}:{add:function(f){return l(this,f=f===0?0:f,f)}}),Ia&&U5(s,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,r,t){var a=r+" Iterator",n=Dc(r),s=Dc(a);Q5(e,r,function(o,l){Kg(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,Zs(void 0,!0)):Zs(l==="keys"?d.key:l==="values"?d.value:[d.key,d.value],!1)},t?"entries":"values",!t,!0),J5(r)}},e3=zg,t3=Zg;e3("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},t3);var r3=ye,i3=r3.Map,n3=i3,a3=n3,s3=a3,Qg=G(s3),o3=zg,l3=Zg;o3("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},l3);var d3=ye,c3=d3.Set,u3=c3,h3=u3,f3=h3,ti=G(f3),p3=$p,Ni=G(p3),m3=Ol,v3=m3,g3=v3,y3=g3,_3=y3,b3=_3,w3=b3,k3=w3,x3=k3,E3=x3,Tc=G(E3),Jg=Df,S3=Math.floor,Nc=function(e,r){var t=e.length,a=S3(t/2);return t<8?$3(e,r):D3(e,Nc(Jg(e,0,a),r),Nc(Jg(e,a),r),r)},$3=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},D3=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},T3=Nc,N3=Gr,ey=N3.match(/firefox\/(\d+)/i),C3=!!ey&&+ey[1],O3=Gr,P3=/MSIE|Trident/.test(O3),I3=Gr,ty=I3.match(/AppleWebKit\/(\d+)\./),M3=!!ty&&+ty[1],A3=U,ry=ge,V3=Et,R3=ft,iy=St,L3=em,ny=Wt,Cc=he,F3=T3,Y3=sn,ay=C3,j3=P3,sy=Wi,oy=M3,ri=[],ly=ry(ri.sort),B3=ry(ri.push),H3=Cc(function(){ri.sort(void 0)}),W3=Cc(function(){ri.sort(null)}),G3=Y3("sort"),dy=!Cc(function(){if(sy)return sy<70;if(!(ay&&ay>3)){if(j3)return!0;if(oy)return oy<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++)ri.push({k:t+n,v:a})}for(ri.sort(function(s,o){return o.v-s.v}),n=0;n<ri.length;n++)t=ri[n].k.charAt(0),e.charAt(e.length-1)!==t&&(e+=t);return e!=="DGBEFHACIJK"}}),z3=H3||!W3||!G3||!dy,U3=function(e){return function(r,t){return t===void 0?-1:r===void 0?1:e!==void 0?+e(r,t)||0:ny(r)>ny(t)?1:-1}};A3({target:"Array",proto:!0,forced:z3},{sort:function(r){r!==void 0&&V3(r);var t=R3(this);if(dy)return r===void 0?ly(t):ly(t,r);var a=[],n=iy(t),s,o;for(o=0;o<n;o++)o in t&&B3(a,t[o]);for(F3(a,U3(r)),s=iy(a),o=0;o<s;)t[o]=a[o++];for(;o<n;)L3(t,o++);return t}});var X3=Ae,q3=X3("Array").sort,K3=we,Z3=q3,Oc=Array.prototype,Q3=function(e){var r=e.sort;return e===Oc||K3(Oc,e)&&r===Oc.sort?Z3:r},J3=Q3,e4=J3,t4=e4,We=G(t4),r4=U,i4=xr.some,n4=sn,a4=n4("some");r4({target:"Array",proto:!0,forced:!a4},{some:function(r){return i4(this,r,arguments.length>1?arguments[1]:void 0)}});var s4=Ae,o4=s4("Array").some,l4=we,d4=o4,Pc=Array.prototype,c4=function(e){var r=e.some;return e===Pc||l4(Pc,e)&&r===Pc.some?d4:r},u4=c4,h4=u4,f4=h4,Ic=G(f4),p4=Ae,m4=p4("Array").keys,v4=m4,g4=v4,y4=br,_4=Xe,b4=we,w4=g4,Mc=Array.prototype,k4={DOMTokenList:!0,NodeList:!0},x4=function(e){var r=e.keys;return e===Mc||b4(Mc,e)&&r===Mc.keys||_4(k4,y4(e))?w4:r},E4=x4,Ci=G(E4),S4=Ae,$4=S4("Array").values,D4=$4,T4=D4,N4=br,C4=Xe,O4=we,P4=T4,Ac=Array.prototype,I4={DOMTokenList:!0,NodeList:!0},M4=function(e){var r=e.values;return e===Ac||O4(Ac,e)&&r===Ac.values||C4(I4,N4(e))?P4:r},A4=M4,cy=G(A4),V4=Ae,R4=V4("Array").entries,L4=R4,F4=L4,Y4=br,j4=Xe,B4=we,H4=F4,Vc=Array.prototype,W4={DOMTokenList:!0,NodeList:!0},G4=function(e){var r=e.entries;return e===Vc||B4(Vc,e)&&r===Vc.entries||j4(W4,Y4(e))?H4:r},z4=G4,U4=G(z4),X4=_f,Qs=G(X4),q4=U,K4=pt,Rc=Ki,Z4=zp,uy=Gv,Q4=Mt,hy=Je,J4=fi,fy=he,Lc=K4("Reflect","construct"),e8=Object.prototype,t8=[].push,py=fy(function(){function e(){}return!(Lc(function(){},[],e)instanceof e)}),my=!fy(function(){Lc(function(){})}),vy=py||my;q4({target:"Reflect",stat:!0,forced:vy,sham:vy},{construct:function(r,t){uy(r),Q4(t);var a=arguments.length<3?r:uy(arguments[2]);if(my&&!py)return Lc(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 Rc(t8,n,t),new(Rc(Z4,r,n))}var s=a.prototype,o=J4(hy(s)?s:e8),l=Rc(r,o,t);return hy(l)?l:o}});var r8=ye,i8=r8.Reflect.construct,n8=i8,a8=n8,s8=a8,Z=G(s8),o8=ye,l8=o8.Object.getOwnPropertySymbols,d8=l8,c8=d8,u8=c8,Js=G(u8),gy={exports:{}},h8=U,f8=he,p8=Jt,yy=hi.f,_y=Ke,m8=!_y||f8(function(){yy(1)});h8({target:"Object",stat:!0,forced:m8,sham:!_y},{getOwnPropertyDescriptor:function(r,t){return yy(p8(r),t)}});var v8=ye,by=v8.Object,g8=gy.exports=function(r,t){return by.getOwnPropertyDescriptor(r,t)};by.getOwnPropertyDescriptor.sham&&(g8.sham=!0);var y8=gy.exports,_8=y8,b8=_8,w8=b8,eo=G(w8),k8=U,x8=Ke,E8=td,S8=Jt,$8=hi,D8=tn;k8({target:"Object",stat:!0,sham:!x8},{getOwnPropertyDescriptors:function(r){for(var t=S8(r),a=$8.f,n=E8(t),s={},o=0,l,d;n.length>o;)d=a(t,l=n[o++]),d!==void 0&&D8(s,l,d);return s}});var T8=ye,N8=T8.Object.getOwnPropertyDescriptors,C8=N8,O8=C8,P8=O8,to=G(P8),wy={exports:{}},I8=U,M8=Ke,ky=os.f;I8({target:"Object",stat:!0,forced:Object.defineProperties!==ky,sham:!M8},{defineProperties:ky});var A8=ye,xy=A8.Object,V8=wy.exports=function(r,t){return xy.defineProperties(r,t)};xy.defineProperties.sham&&(V8.sham=!0);var R8=wy.exports,L8=R8,F8=L8,Y8=F8,Ey=G(Y8);let ro;const j8=new Uint8Array(16);function B8(){if(!ro&&(ro=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ro))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ro(j8)}const it=[];for(let e=0;e<256;++e)it.push((e+256).toString(16).slice(1));function H8(e,r=0){return it[e[r+0]]+it[e[r+1]]+it[e[r+2]]+it[e[r+3]]+"-"+it[e[r+4]]+it[e[r+5]]+"-"+it[e[r+6]]+it[e[r+7]]+"-"+it[e[r+8]]+it[e[r+9]]+"-"+it[e[r+10]]+it[e[r+11]]+it[e[r+12]]+it[e[r+13]]+it[e[r+14]]+it[e[r+15]]}var Sy={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Oi(e,r,t){if(Sy.randomUUID&&!e)return Sy.randomUUID();e=e||{};const a=e.random||(e.rng||B8)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,H8(a)}var $y;function Dy(e,r){var t=Ze(e);if(Js){var a=Js(e);r&&(a=J(a).call(a,function(n){return eo(e,n).enumerable})),t.push.apply(t,a)}return t}function Ty(e){for(var r=1;r<arguments.length;r++){var t,a,n=arguments[r]!=null?arguments[r]:{};r%2?j(t=Dy(Object(n),!0)).call(t,function(s){fe(e,s,n[s])}):to?Ey(e,to(n)):j(a=Dy(Object(n))).call(a,function(s){Qs(e,s,eo(n,s))})}return e}function Ny(e){var r=W8();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function W8(){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 Ot(e,r){var t=typeof Sr<"u"&&Xr(e)||e["@@iterator"];if(!t){if(re(e)||(t=G8(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(c){throw c},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 c=t.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function G8(e,r){var t;if(e){if(typeof e=="string")return Cy(e,r);var a=ot(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ur(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Cy(e,r)}}function Cy(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 z8(e){return new X8(e)}var U8=function(){function e(r,t,a){var n,s,o;de(this,e),fe(this,"_source",void 0),fe(this,"_transformers",void 0),fe(this,"_target",void 0),fe(this,"_listeners",{add:C(n=this._add).call(n,this),remove:C(s=this._remove).call(s,this),update:C(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 qs(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}(),X8=function(){function e(r){de(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 _e(a).call(a,t)}),this}},{key:"flatMap",value:function(t){return this._transformers.push(function(a){return n5(a).call(a,t)}),this}},{key:"to",value:function(t){return new U8(this._source,this._transformers,t)}}]),e}();function Fc(e){return typeof e=="string"||typeof e=="number"}var q8=function(){function e(r){de(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=lt(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,a;j(t=mt(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}(),Oy=function(){function e(){de(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 *");j(s=Te(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}();$y=Ni;var Py=function(){function e(r){de(this,e),fe(this,"_pairs",void 0),this._pairs=r}return ce(e,[{key:$y,value:Ct.mark(function r(){var t,a,n,s,o;return Ct.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:t=Ot(this._pairs),d.prev=1,t.s();case 3:if((a=t.n()).done){d.next=9;break}return n=st(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:Ct.mark(function r(){var t,a,n,s,o;return Ct.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:t=Ot(this._pairs),d.prev=1,t.s();case 3:if((a=t.n()).done){d.next=9;break}return n=st(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:Ct.mark(function r(){var t,a,n,s;return Ct.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:t=Ot(this._pairs),l.prev=1,t.s();case 3:if((a=t.n()).done){l.next=9;break}return n=st(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:Ct.mark(function r(){var t,a,n,s;return Ct.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:t=Ot(this._pairs),l.prev=1,t.s();case 3:if((a=t.n()).done){l.next=9;break}return n=st(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 _e(t=Pe(this._pairs)).call(t,function(a){return a[0]})}},{key:"toItemArray",value:function(){var t;return _e(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=Ot(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=st(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 Qg(this._pairs)}},{key:"toIdSet",value:function(){return new ti(this.toIdArray())}},{key:"toItemSet",value:function(){return new ti(this.toItemArray())}},{key:"cache",value:function(){return new e(Pe(this._pairs))}},{key:"distinct",value:function(t){var a=new ti,n=Ot(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=st(s.value,2),l=o[0],d=o[1];a.add(t(d,l))}}catch(c){n.e(c)}finally{n.f()}return a}},{key:"filter",value:function(t){var a=this._pairs;return new e(fe({},Ni,Ct.mark(function n(){var s,o,l,d,c;return Ct.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:s=Ot(a),m.prev=1,s.s();case 3:if((o=s.n()).done){m.next=10;break}if(l=st(o.value,2),d=l[0],c=l[1],!t(c,d)){m.next=8;break}return m.next=8,[d,c];case 8:m.next=3;break;case 10:m.next=15;break;case 12:m.prev=12,m.t0=m.catch(1),s.e(m.t0);case 15:return m.prev=15,s.f(),m.finish(15);case 18:case"end":return m.stop()}},n,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(t){var a=Ot(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=st(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({},Ni,Ct.mark(function n(){var s,o,l,d,c;return Ct.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:s=Ot(a),m.prev=1,s.s();case 3:if((o=s.n()).done){m.next=9;break}return l=st(o.value,2),d=l[0],c=l[1],m.next=7,[d,t(c,d)];case 7:m.next=3;break;case 9:m.next=14;break;case 11:m.prev=11,m.t0=m.catch(1),s.e(m.t0);case 14:return m.prev=14,s.f(),m.finish(14);case 17:case"end":return m.stop()}},n,null,[[1,11,14,17]])})))}},{key:"max",value:function(t){var a=Tc(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=st(n.value,2),d=l[0],c=l[1],f=t(c,d);f>o&&(o=f,s=c)}return s}},{key:"min",value:function(t){var a=Tc(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=st(n.value,2),d=l[0],c=l[1],f=t(c,d);f<o&&(o=f,s=c)}return s}},{key:"reduce",value:function(t,a){var n=Ot(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=st(s.value,2),l=o[0],d=o[1];a=t(a,d,l)}}catch(c){n.e(c)}finally{n.f()}return a}},{key:"sort",value:function(t){var a=this;return new e(fe({},Ni,function(){var n;return Tc(We(n=Pe(a._pairs)).call(n,function(s,o){var l=st(s,2),d=l[0],c=l[1],f=st(o,2),m=f[0],v=f[1];return t(c,v,d,m)}))}))}}]),e}();function K8(e,r){return e[r]==null&&(e[r]=Oi()),e}var Pi=function(e){gt(t,e);var r=Ny(t);function t(a,n){var s;return de(this,t),s=r.call(this),fe(xe(s),"flush",void 0),fe(xe(s),"length",void 0),fe(xe(s),"_options",void 0),fe(xe(s),"_data",void 0),fe(xe(s),"_idProp",void 0),fe(xe(s),"_queue",null),a&&!re(a)&&(n=a,a=[]),s._options=n||{},s._data=new Qg,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=q8.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 c=_e(n).call(n,function(v){return v[o._idProp]});if(Ic(c).call(c,function(v){return o._data.has(v)}))throw new Error("A duplicate id was found in the parameter array.");for(var f=0,m=n.length;f<m;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=[],c=[],f=[],m=this._idProp,v=function(S){var D=S[m];if(D!=null&&o._data.has(D)){var T=S,P=$r({},o._data.get(D)),F=o._updateItem(T);d.push(F),f.push(T),c.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"?v(n[y]):console.warn("Ignoring input item, which is not an object at index "+y);else if(n&&ee(n)==="object")v(n);else throw new Error("Unknown dataType");if(l.length&&this._trigger("add",{items:l},s),d.length){var E={items:d,oldData:c,data:f};this._trigger("update",E,s)}return Te(l).call(l,d)}},{key:"updateOnly",value:function(n,s){var o,l=this;re(n)||(n=[n]);var d=_e(o=_e(n).call(n,function(f){var m=l._data.get(f[l._idProp]);if(m==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:m,update:f}})).call(o,function(f){var m=f.oldData,v=f.update,y=m[l._idProp],b=gv(m,v);return l._data.set(y,b),{id:y,oldData:m,updatedData:b}});if(d.length){var c={items:_e(d).call(d,function(f){return f.id}),oldData:_e(d).call(d,function(f){return f.oldData}),data:_e(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;Fc(n)?(o=n,d=s):re(n)?(l=n,d=s):d=n;var c=d&&d.returnType==="Object"?"Object":"Array",f=d&&J(d),m=[],v=void 0,y=void 0,b=void 0;if(o!=null)v=this._data.get(o),v&&f&&!f(v)&&(v=void 0);else if(l!=null)for(var E=0,w=l.length;E<w;E++)v=this._data.get(l[E]),v!=null&&(!f||f(v))&&m.push(v);else{var S;y=Pe(Ci(S=this._data).call(S));for(var D=0,T=y.length;D<T;D++)b=y[D],v=this._data.get(b),v!=null&&(!f||f(v))&&m.push(v)}if(d&&d.order&&o==null&&this._sort(m,d.order),d&&d.fields){var P=d.fields;if(o!=null&&v!=null)v=this._filterFields(v,P);else for(var F=0,A=m.length;F<A;F++)m[F]=this._filterFields(m[F],P)}if(c=="Object"){for(var V={},N=0,I=m.length;N<I;N++){var M=m[N],H=M[this._idProp];V[H]=M}return V}else if(o!=null){var W;return(W=v)!==null&&W!==void 0?W:null}else return m}},{key:"getIds",value:function(n){var s=this._data,o=n&&J(n),l=n&&n.order,d=Pe(Ci(s).call(s)),c=[];if(o)if(l){for(var f=[],m=0,v=d.length;m<v;m++){var y=d[m],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++)c.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)&&c.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++)c.push(F[I][this._idProp])}else for(var H=0,W=d.length;H<W;H++){var q=d[H],ue=s.get(q);ue!=null&&c.push(ue[this._idProp])}return c}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(n,s){var o=s&&J(s),l=this._data,d=Pe(Ci(l).call(l));if(s&&s.order)for(var c=this.get(s),f=0,m=c.length;f<m;f++){var v=c[f],y=v[this._idProp];n(v,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,c=Pe(Ci(d).call(d)),f=0,m=c.length;f<m;f++){var v=c[f],y=this._data.get(v);y!=null&&(!o||o(y))&&l.push(n(y,v))}return s&&s.order&&this._sort(l,s.order),l}},{key:"_filterFields",value:function(n,s){var o;return n&&qs(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;We(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")We(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],c=0,f=d.length;c<f;c++){var m=this._remove(d[c]);if(m){var v=m[this._idProp];v!=null&&(o.push(v),l.push(m))}}return o.length&&this._trigger("remove",{items:o,oldData:l},s),o}},{key:"_remove",value:function(n){var s;if(Fc(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(Ci(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=Ot(cy(s=this._data).call(s)),c;try{for(d.s();!(c=d.n()).done;){var f=c.value,m=f[n];typeof m=="number"&&(l==null||m>l)&&(o=f,l=m)}}catch(v){d.e(v)}finally{d.f()}return o||null}},{key:"min",value:function(n){var s,o=null,l=null,d=Ot(cy(s=this._data).call(s)),c;try{for(d.s();!(c=d.n()).done;){var f=c.value,m=f[n];typeof m=="number"&&(l==null||m<l)&&(o=f,l=m)}}catch(v){d.e(v)}finally{d.f()}return o||null}},{key:"distinct",value:function(n){for(var s=this._data,o=Pe(Ci(s).call(s)),l=[],d=0,c=0,f=o.length;c<f;c++){for(var m=o[c],v=s.get(m),y=v[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=K8(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,Ty(Ty({},o),n)),s}},{key:"stream",value:function(n){if(n){var s=this._data;return new Py(fe({},Ni,Ct.mark(function l(){var d,c,f,m;return Ct.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:d=Ot(n),y.prev=1,d.s();case 3:if((c=d.n()).done){y.next=11;break}if(f=c.value,m=s.get(f),m==null){y.next=9;break}return y.next=9,[f,m];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 Py(fe({},Ni,C(o=U4(this._data)).call(o,this._data)))}}}]),t}(Oy),Z8=function(e){gt(t,e);var r=Ny(t);function t(a,n){var s,o;return de(this,t),o=r.call(this),fe(xe(o),"length",0),fe(xe(o),"_listener",void 0),fe(xe(o),"_data",void 0),fe(xe(o),"_ids",new ti),fe(xe(o),"_options",void 0),o._options=n||{},o._listener=C(s=o._onEvent).call(s,xe(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,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:J(this._options)}),s=Pe(this._ids),o={},l=[],d=[],c=[],f=0,m=n.length;f<m;f++){var v=n[f];o[v]=!0,this._ids.has(v)||(l.push(v),this._ids.add(v))}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),c.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:c})}},{key:"get",value:function(n,s){if(this._data==null)return null;var o=null,l;Fc(n)||re(n)?(o=n,l=s):l=n;var d=$r({},this._options,l),c=J(this._options),f=l&&J(l);return c&&f&&(d.filter=function(m){return c(m)&&f(m)}),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(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=J(this._options),d=s&&J(s),c;d?l?c=function(m){return l(m)&&d(m)}:c=d:c=l,j(o=this._data).call(o,n,{filter:c,order:s&&s.order})}}},{key:"map",value:function(n,s){if(this._data){var o,l=J(this._options),d=s&&J(s),c;return d?l?c=function(m){return l(m)&&d(m)}:c=d:c=l,_e(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||fe({},Ni,C(s=Ci(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=Ot(Yp(t.prototype)),d;try{for(l.s();!(d=l.n()).done;){var c=d.value;Qs(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=[],m=[],v=[],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)?(c.push(P),v.push(s.data[D]),m.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),c.length&&this._trigger("update",{items:c,oldData:m,data:v},o),f.length&&this._trigger("remove",{items:f,oldData:y},o)}}}]),t}(Oy);function Q8(e,r){return ee(r)==="object"&&r!==null&&e===r.idProp&&typeof r.add=="function"&&typeof r.clear=="function"&&typeof r.distinct=="function"&&typeof j(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof _e(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 J8(e,r){return ee(r)==="object"&&r!==null&&e===r.idProp&&typeof j(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof _e(r)=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.stream=="function"&&Q8(e,r.getDataSet())}var eY=typeof window<"u"&&window.moment||Zt(),yt=G(eY),tY=Zt(),ir=G(tY),Yc={exports:{}},Fe={},jc={exports:{}},Ii={};function Iy(){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 rY(e,r,t){}function iY(e,r,t){}var nY=/javascript\s*\:/img;function aY(e,r){return nY.test(r)?"":r}Ii.whiteList=Iy(),Ii.getDefaultWhiteList=Iy,Ii.onAttr=rY,Ii.onIgnoreAttr=iY,Ii.safeAttrValue=aY;var sY={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,"")}},Ma=sY;function oY(e,r){e=Ma.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,n=0,s=0,o="";function l(){if(!a){var f=Ma.trim(e.slice(n,s)),m=f.indexOf(":");if(m!==-1){var v=Ma.trim(f.slice(0,m)),y=Ma.trim(f.slice(m+1));if(v){var b=r(n,o.length,v,y,f);b&&(o+=b+"; ")}}}n=s+1}for(;s<t;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===`
|
62
|
+
`&&l()}return Ma.trim(o)}var lY=oY,io=Ii,dY=lY;function My(e){return e==null}function cY(e){var r={};for(var t in e)r[t]=e[t];return r}function Ay(e){e=cY(e||{}),e.whiteList=e.whiteList||io.whiteList,e.onAttr=e.onAttr||io.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||io.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||io.safeAttrValue,this.options=e}Ay.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=dY(e,function(d,c,f,m,v){var y=a[f],b=!1;if(y===!0?b=y:typeof y=="function"?b=y(m):y instanceof RegExp&&(b=y.test(m)),b!==!0&&(b=!1),m=o(f,m),!!m){var E={position:c,sourcePosition:d,source:v,isWhite:b};if(b){var w=n(f,m,E);return My(w)?f+":"+m:w}else{var w=s(f,m,E);if(!My(w))return w}}});return l};var uY=Ay;(function(e,r){var t=Ii,a=uY;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)})(jc,jc.exports);var Bc=jc.exports,Hc={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}},hY=Bc.FilterCSS,fY=Bc.getDefaultWhiteList,no=Hc;function Vy(){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 Ry=new hY;function pY(e,r,t){}function mY(e,r,t){}function vY(e,r,t){}function gY(e,r,t){}function Ly(e){return e.replace(_Y,"<").replace(bY,">")}function yY(e,r,t,a){if(t=zy(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(ao.lastIndex=0,ao.test(t))return""}else if(r==="style"){if(Fy.lastIndex=0,Fy.test(t)||(Yy.lastIndex=0,Yy.test(t)&&(ao.lastIndex=0,ao.test(t))))return"";a!==!1&&(a=a||Ry,t=a.process(t))}return t=Uy(t),t}var _Y=/</g,bY=/>/g,wY=/"/g,kY=/"/g,xY=/&#([a-zA-Z0-9]*);?/gim,EY=/:?/gim,SY=/&newline;?/gim,ao=/((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,Fy=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Yy=/u\s*r\s*l\s*\(.*/gi;function jy(e){return e.replace(wY,""")}function By(e){return e.replace(kY,'"')}function Hy(e){return e.replace(xY,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function Wy(e){return e.replace(EY,":").replace(SY," ")}function Gy(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 zy(e){return e=By(e),e=Hy(e),e=Wy(e),e=Gy(e),e}function Uy(e){return e=jy(e),e=Ly(e),e}function $Y(){return""}function DY(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 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 r(o,l,d)},remove:function(o){var l="",d=0;return no.forEach(n,function(c){l+=o.slice(d,c[0]),d=c[1]}),l+=o.slice(d),l}}}function TY(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 NY(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("")}Fe.whiteList=Vy(),Fe.getDefaultWhiteList=Vy,Fe.onTag=pY,Fe.onIgnoreTag=mY,Fe.onTagAttr=vY,Fe.onIgnoreTagAttr=gY,Fe.safeAttrValue=yY,Fe.escapeHtml=Ly,Fe.escapeQuote=jy,Fe.unescapeQuote=By,Fe.escapeHtmlEntities=Hy,Fe.escapeDangerHtml5Entities=Wy,Fe.clearNonPrintableCharacter=Gy,Fe.friendlyAttrValue=zy,Fe.escapeAttrValue=Uy,Fe.onIgnoreTagStripAll=$Y,Fe.StripTagBody=DY,Fe.stripCommentTag=TY,Fe.stripBlankChar=NY,Fe.cssFilter=Ry,Fe.getDefaultCSSWhiteList=fY;var so={},ii=Hc;function CY(e){var r=ii.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=ii.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function OY(e){return e.slice(0,2)==="</"}function PY(e,r,t){var a="",n=0,s=!1,o=!1,l=0,d=e.length,c="",f="";e:for(l=0;l<d;l++){var m=e.charAt(l);if(s===!1){if(m==="<"){s=l;continue}}else if(o===!1){if(m==="<"){a+=t(e.slice(n,l)),s=l,n=l;continue}if(m===">"||l===d-1){a+=t(e.slice(n,s)),f=e.slice(s,l+1),c=CY(f),a+=r(s,a.length,c,f,OY(f)),n=l+1,s=!1;continue}if(m==='"'||m==="'")for(var v=1,y=e.charAt(l-v);y.trim()===""||y==="=";){if(y==="="){o=m;continue e}y=e.charAt(l-++v)}}else if(m===o){o=!1;continue}}return n<d&&(a+=t(e.substr(n))),a}var IY=/[^a-zA-Z0-9\\_:.-]/gim;function MY(e,r){var t=0,a=0,n=[],s=!1,o=e.length;function l(v,y){if(v=ii.trim(v),v=v.replace(IY,"").toLowerCase(),!(v.length<1)){var b=r(v,y||"");b&&n.push(b)}}for(var d=0;d<o;d++){var c=e.charAt(d),f,m;if(s===!1&&c==="="){s=e.slice(t,d),t=d+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:VY(e,d+1);continue}if(s!==!1&&d===a){if(m=e.indexOf(c,d+1),m===-1)break;f=ii.trim(e.slice(a+1,m)),l(s,f),s=!1,d=m,t=d+1;continue}if(/\s|\n|\t/.test(c))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(m=AY(e,d),m===-1){f=ii.trim(e.slice(t,d)),l(f),s=!1,t=d+1;continue}else{d=m-1;continue}else if(m=RY(e,d-1),m===-1){f=ii.trim(e.slice(t,d)),f=Xy(f),l(s,f),s=!1,t=d+1;continue}else continue}return t<e.length&&(s===!1?l(e.slice(t)):l(s,Xy(ii.trim(e.slice(t))))),ii.trim(n.join(" "))}function AY(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function VY(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function RY(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function LY(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Xy(e){return LY(e)?e.substr(1,e.length-2):e}so.parseTag=PY,so.parseAttr=MY;var FY=Bc.FilterCSS,nr=Fe,qy=so,YY=qy.parseTag,jY=qy.parseAttr,oo=Hc;function lo(e){return e==null}function BY(e){var r=oo.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=oo.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=oo.trim(e.slice(0,-1))),{html:e,closing:t}}function HY(e){var r={};for(var t in e)r[t]=e[t];return r}function WY(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 Ky(e){e=HY(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=nr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=WY(e.whiteList||e.allowList):e.whiteList=nr.whiteList,e.onTag=e.onTag||nr.onTag,e.onTagAttr=e.onTagAttr||nr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||nr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||nr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||nr.safeAttrValue,e.escapeHtml=e.escapeHtml||nr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new FY(e.css))}Ky.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,c=t.escapeHtml,f=r.cssFilter;t.stripBlankChar&&(e=nr.stripBlankChar(e)),t.allowCommentTag||(e=nr.stripCommentTag(e));var m=!1;t.stripIgnoreTagBody&&(m=nr.StripTagBody(t.stripIgnoreTagBody,s),s=m.onIgnoreTag);var v=YY(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(!lo(T))return T;if(D.isWhite){if(D.isClosing)return"</"+E+">";var P=BY(w),F=a[E],A=jY(P.html,function(V,N){var I=oo.indexOf(F,V)!==-1,M=o(E,V,N,I);return lo(M)?I?(N=d(E,V,N,f),N?V+'="'+N+'"':V):(M=l(E,V,N,I),lo(M)?void 0:M):M});return w="<"+E,A&&(w+=" "+A),P.closing&&(w+=" /"),w+=">",w}else return T=s(E,w,D),lo(T)?c(w):T},c);return m&&(v=m.remove(v)),v};var GY=Ky;(function(e,r){var t=Fe,a=so,n=GY;function s(l,d){var c=new n(d);return c.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)})(Yc,Yc.exports);var zY=Yc.exports,UY=G(zY);function Zy(e,r){var t=Ze(e);if(Js){var a=Js(e);r&&(a=J(a).call(a,function(n){return eo(e,n).enumerable})),t.push.apply(t,a)}return t}function Qy(e){for(var r=1;r<arguments.length;r++){var t,a,n=arguments[r]!=null?arguments[r]:{};r%2?j(t=Zy(Object(n),!0)).call(t,function(s){fe(e,s,n[s])}):to?Ey(e,to(n)):j(a=Zy(Object(n))).call(a,function(s){Qs(e,s,eo(n,s))})}return e}function Or(e){var r;if(!e)return!1;var t=(r=e.idProp)!==null&&r!==void 0?r:e._idProp;return t?J8(t,e):!1}var Wc=/^\/?Date\((-?\d+)/i,XY=/^\d+$/;function Gc(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 Rt(e)&&!isNaN(Date.parse(e))?ir(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return Gc(e,"Moment").toDate()}catch(n){throw n instanceof TypeError?new TypeError("Cannot convert object of type "+xa(e)+" to type "+r):n}case"Moment":if(wa(e))return ir(e);if(e instanceof Date)return ir(e.valueOf());if(ir.isMoment(e))return ir(e);if(Rt(e))return t=Wc.exec(e),t?ir(Number(t[1])):(t=XY.exec(e),ir(t?Number(e):e));throw new TypeError("Cannot convert object of type "+xa(e)+" to type "+r);case"ISODate":if(wa(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(ir.isMoment(e))return e.toDate().toISOString();if(Rt(e))return t=Wc.exec(e),t?new Date(Number(t[1])).toISOString():ir(e).format();throw new Error("Cannot convert object of type "+xa(e)+" to type ISODate");case"ASPDate":if(wa(e))return"/Date("+e+")/";if(e instanceof Date||ir.isMoment(e))return"/Date("+e.valueOf()+")/";if(Rt(e)){t=Wc.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 "+xa(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(r))}}}function xn(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,c=new Pi({fieldId:d}),f=_e(r=z8(e)).call(r,function(m){var v;return qs(v=Ze(m)).call(v,function(y,b){return y[b]=Gc(m[b],l[b]),y},{})}).to(c);return f.all().start(),{add:function(){var v;return(v=e.getDataSet()).add.apply(v,arguments)},remove:function(){var v;return(v=e.getDataSet()).remove.apply(v,arguments)},update:function(){var v;return(v=e.getDataSet()).update.apply(v,arguments)},updateOnly:function(){var v;return(v=e.getDataSet()).updateOnly.apply(v,arguments)},clear:function(){var v;return(v=e.getDataSet()).clear.apply(v,arguments)},forEach:C(t=j(c)).call(t,c),get:C(a=c.get).call(a,c),getIds:C(n=c.getIds).call(n,c),off:C(s=c.off).call(s,c),on:C(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 Jy=function(r){var t=new UY.FilterXSS(r);return function(a){return t.process(a)}},qY=function(r){return r},zc=Jy(),KY=function(r){r&&(r.disabled===!0?(zc=qY,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):r.filterOptions&&(zc=Jy(r.filterOptions)))},x=Qy(Qy({},cA),{},{convert:Gc,setupXSSProtection:KY});Qs(x,"xss",{get:function(){return zc}});var e_=Ce,ZY=he,QY=ge,JY=Wt,ej=mm.trim,tj=pd,rj=QY("".charAt),co=e_.parseFloat,t_=e_.Symbol,r_=t_&&t_.iterator,ij=1/co(tj+"-0")!==-1/0||r_&&!ZY(function(){co(Object(r_))}),nj=ij?function(r){var t=ej(JY(r)),a=co(t);return a===0&&rj(t,0)==="-"?-0:a}:co,aj=U,i_=nj;aj({global:!0,forced:parseFloat!==i_},{parseFloat:i_});var sj=ye,oj=sj.parseFloat,lj=oj,dj=lj,cj=dj,uo=G(cj),ni=function(){function e(r,t){de(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}(),uj=jn,hj=Wt,fj=Hi,pj=RangeError,mj=function(r){var t=hj(fj(this)),a="",n=uj(r);if(n<0||n===1/0)throw new pj("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))n&1&&(a+=t);return a},vj=U,gj=mj;vj({target:"String",proto:!0},{repeat:gj});var yj=Ae,_j=yj("String").repeat,bj=we,wj=_j,Uc=String.prototype,kj=function(e){var r=e.repeat;return typeof e=="string"||e===Uc||bj(Uc,e)&&r===Uc.repeat?wj:r},xj=kj,Ej=xj,Sj=Ej,En=G(Sj);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(En(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)}We(a=r.hiddenDates).call(a,function(o,l){return o.start-l.start})}}function ho(e,r,t){if(t&&!re(t))return ho(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(En(t[l])!==void 0){var d=e(t[l].start),c=e(t[l].end);if(d._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(t[l].start));if(c._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(t[l].end));var f=c-d;if(f>=4*o){var m=0,v=n.clone();switch(En(t[l])){case"daily":d.day()!=c.day()&&(m=1),d.dayOfYear(a.dayOfYear()),d.year(a.year()),d.subtract(7,"days"),c.dayOfYear(a.dayOfYear()),c.year(a.year()),c.subtract(7-m,"days"),v.add(1,"weeks");break;case"weekly":{var y=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(y,"days"),d.subtract(1,"weeks"),c.subtract(1,"weeks"),v.add(1,"weeks");break}case"monthly":d.month()!=c.month()&&(m=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(m,"months"),v.add(1,"months");break;case"yearly":d.year()!=c.year()&&(m=1),d.year(a.year()),d.subtract(1,"years"),c.year(a.year()),c.subtract(1,"years"),c.add(m,"years"),v.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",En(t[l]));return}for(;d<v;)switch(r.hiddenDates.push({start:d.valueOf(),end:c.valueOf()}),En(t[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:",En(t[l]));return}r.hiddenDates.push({start:d.valueOf(),end:c.valueOf()})}}$j(r);var E=po(r.range.start,r.hiddenDates),w=po(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 $j(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,We(r=e.hiddenDates).call(r,function(o,l){return o.start-l.start})}function Dj(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),c=e(l);d.year()!=c.year()?r.switchedYear=!0:d.month()!=c.month()?r.switchedMonth=!0:d.dayOfYear()!=c.dayOfYear()&&(r.switchedDay=!0),r.current=c}}function n_(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=po(r,e.body.hiddenDates);n.hidden==!0&&(r=n.startDate);var s=Aa(e.body.hiddenDates,e.range.start,e.range.end);if(r<e.range.start){a=e.range.conversion(t,s);var o=Tj(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=s_(e.options.moment,e.body.hiddenDates,l,r),a=e.range.conversion(t,s),(r.valueOf()-a.offset)*a.scale}else return r=s_(e.options.moment,e.body.hiddenDates,e.range,r),a=e.range.conversion(t,s),(r.valueOf()-a.offset)*a.scale}function a_(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=Aa(e.body.hiddenDates,e.range.start,e.range.end),s=e.range.end-e.range.start-n,o=s*r/t,l=Nj(e.body.hiddenDates,e.range,o);return new Date(l+o+e.range.start)}}function Aa(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 Tj(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 s_(e,r,t,a){return a=e(a).toDate().valueOf(),a-=fo(e,r,t,a),a}function fo(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 Nj(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 Mi(e,r,t,a){var n=po(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 po(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 Cj(e){var r=Oj();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function Oj(){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 o_=function(e){gt(t,e);var r=Cj(t);function t(a,n){var s,o,l,d,c,f,m,v;de(this,t),v=r.call(this);var y=yt().hours(0).minutes(0).seconds(0).milliseconds(0),b=y.clone().add(-3,"days").valueOf(),E=y.clone().add(3,"days").valueOf();return v.millisecondsPerPixelCache=void 0,n===void 0?(v.start=b,v.end=E):(v.start=n.start||b,v.end=n.end||E),v.rolling=!1,v.body=a,v.deltaDifference=0,v.scaleOffset=0,v.startToFront=!1,v.endToFront=!0,v.defaultOptions={rtl:!1,start:null,end:null,moment:yt,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:!1,offset:.5}},v.options=x.extend({},v.defaultOptions),v.props={touch:{}},v.animationTimer=null,v.body.emitter.on("panstart",C(s=v._onDragStart).call(s,xe(v))),v.body.emitter.on("panmove",C(o=v._onDrag).call(o,xe(v))),v.body.emitter.on("panend",C(l=v._onDragEnd).call(l,xe(v))),v.body.emitter.on("mousewheel",C(d=v._onMouseWheel).call(d,xe(v))),v.body.emitter.on("touch",C(c=v._onTouch).call(c,xe(v))),v.body.emitter.on("pinch",C(f=v._onPinch).call(f,xe(v))),v.body.dom.rollingModeBtn.addEventListener("click",C(m=v.startRolling).call(m,xe(v))),v.setOptions(n),v}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,c=l-o*d,f=l+o*(1-d),m={animation:!1};n.setRange(c,f,m);var v=n.conversion(n.body.domProps.center.width).scale;o=1/v/10,o<30&&(o=30),o>1e3&&(o=1e3),n.body.dom.rollingModeBtn.style.visibility="hidden",n.currentTimeTimer=lt(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,m=s!=null?x.convert(s,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,o.animation){var v=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(Te(S="Unknown easing function ".concat(Dt(E),". Choose from: ")).call(S,Ze(x.easingFunctions).join(", ")))}var D=At(),T=!1,P=function V(){if(!c.props.touch.dragging){var N=At(),I=N-D,M=w(I/b),H=I>b,W=H||f===null?f:v+(f-v)*M,q=H||m===null?m:y+(m-y)*M;F=c._applyRange(W,q),ho(c.options.moment,c.body,c.options.hiddenDates),T=T||F;var ue={start:new Date(c.start),end:new Date(c.end),byUser:o.byUser,event:o.event};if(d&&d(M,F,H),F&&c.body.emitter.emit("rangechange",ue),H){if(T&&(c.body.emitter.emit("rangechanged",ue),l))return l()}else c.animationTimer=lt(V,20)}};return P()}else{var F=this._applyRange(f,m);if(ho(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(c.timeoutID),c.timeoutID=lt(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 m=uo(this.options.zoomMin);if(m<0&&(m=0),l-o<m){var v=.5;this.end-this.start===m&&o>=this.start-v&&l<=this.end?(o=this.start,l=this.end):(f=m-(l-o),o-=f/2,l+=f/2)}}if(this.options.zoomMax!==null){var y=uo(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;l_(s);var o=s=="horizontal"?n.deltaX:n.deltaY;o-=this.deltaDifference;var l=this.props.touch.end-this.props.touch.start,d=Aa(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 m=this.props.touch.start+f,v=this.props.touch.end+f,y=Mi(this.body.hiddenDates,m,this.previousDelta-o,!0),b=Mi(this.body.hiddenDates,v,this.previousDelta-o,!0);if(y!=m||b!=v){this.deltaDifference+=o,this.props.touch.start=y,this.props.touch.end=b,this._onDrag(n);return}this.previousDelta=o,this._applyRange(m,v);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 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=Aa(this.body.hiddenDates,this.start,this.end),d=fo(this.options.moment,this.body.hiddenDates,this,o),c=l-d,f=o-d+(this.props.touch.start-(o-d))*s,m=o+c+(this.props.touch.end-(o+c))*s;this.startToFront=1-s<=0,this.endToFront=s-1<=0;var v=Mi(this.body.hiddenDates,f,1-s,!0),y=Mi(this.body.hiddenDates,m,s-1,!0);(v!=f||y!=m)&&(this.props.touch.start=v,this.props.touch.end=y,this.scaleOffset=1-n.scale,f=v,m=y);var b={animation:!1,byUser:!0,event:n};this.setRange(f,m,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(l_(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=Aa(this.body.hiddenDates,this.start,this.end),c=fo(this.options.moment,this.body.hiddenDates,this,s),f=d-c,m=s-c+(this.start-(s-c))*n,v=s+f+(this.end-(s+f))*n;this.startToFront=!(o>0),this.endToFront=!(-o>0);var y=Mi(this.body.hiddenDates,m,o,!0),b=Mi(this.body.hiddenDates,v,-o,!0);(y!=m||b!=v)&&(m=y,v=b);var E={animation:!1,byUser:!0,event:l};this.setRange(m,v,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,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}}}]),t}(ni);function l_(e){if(e!="horizontal"&&e!="vertical")throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var Pj=ye,Ij=Pj.setInterval,Mj=Ij,Aj=G(Mj),mo=null;function qc(e,r){var t=r||{preventDefault:!1};if(e.Manager){var a=e,n=function(c,f){var m=Object.create(t);return f&&a.assign(m,f),qc(new a(c,m),m)};return a.assign(n,a),n.Manager=function(c,f){var m=Object.create(t);return f&&a.assign(m,f),qc(new a.Manager(c,m),m)},n}var s=Object.create(e),o=e.element;o.hammer||(o.hammer=[]),o.hammer.push(s),e.on("hammer.input",function(c){(t.preventDefault===!0||t.preventDefault===c.pointerType)&&c.preventDefault(),c.isFirst&&(mo=c.target)}),s._handlers={},s.on=function(c,f){return l(c).forEach(function(m){var v=s._handlers[m];v||(s._handlers[m]=v=[],e.on(m,d)),v.push(f)}),s},s.off=function(c,f){return l(c).forEach(function(m){var v=s._handlers[m];v&&(v=f?v.filter(function(y){return y!==f}):[],v.length>0?s._handlers[m]=v:(e.off(m,d),delete s._handlers[m]))}),s},s.emit=function(c,f){mo=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 m=c.srcEvent.stopPropagation.bind(c.srcEvent);typeof m=="function"&&(c.srcEvent.stopPropagation=function(){m(),c.stopPropagation()}),c.firstTarget=mo;for(var v=mo;v&&!f;){var y=v.hammer;if(y){for(var b,E=0;E<y.length;E++)if(b=y[E]._handlers[c.type],b)for(var w=0;w<b.length&&!f;w++)b[w](c)}v=v.parentNode}}return s}function Vj(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}var Kc;if(typeof window<"u"){var Rj=window.Hammer||mv;Kc=qc(Rj,{preventDefault:"mouse"})}else Kc=function(){return Vj()};var _t=Kc;function d_(e,r){r.inputHandler=function(t){t.isFirst&&r(t)},e.on("hammer.input",r.inputHandler)}function Lj(e,r){return r.inputHandler=function(t){t.isFinal&&r(t)},e.on("hammer.input",r.inputHandler)}function Fj(e){var r="pan-y";return e.getTouchAction=function(){return[r]},e}var vo=function(){function e(r,t,a,n,s){de(this,e),this.moment=s&&s.moment||yt,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()):At(),this._end=a!=null?this.moment(a.valueOf()):At(),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(Mi(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,Dj(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,c=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),c*200>t&&(this.scale="millisecond",this.step=200),c*100>t&&(this.scale="millisecond",this.step=100),c*50>t&&(this.scale="millisecond",this.step=50),c*10>t&&(this.scale="millisecond",this.step=10),c*5>t&&(this.scale="millisecond",this.step=5),c>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 c(y){return y.isSame(At(),"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(At(),"week")?" vis-current-week":""}function m(y){return y.isSame(At(),"month")?" vis-current-month":""}function v(y){return y.isSame(At(),"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(Te(t="vis-h".concat(s.hours())).call(t,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(m(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(m(s)),l.push(d(s.month()));break;case"year":l.push("vis-year".concat(s.year())),l.push(v(s)),l.push(d(s.year()));break}return J(l).call(l,String).join(" ")}}],[{key:"snap",value:function(t,a,n){var s=yt(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}();vo.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 bt(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 Yj=`.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
|
-
`;Ct(k7);function x7(e){var t=T7();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function T7(){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 ql=function(e){$t(r,e);var t=x7(r);function r(a,n){var s;return he(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({},Kl.FORMAT),moment:Dt,timeAxis:null},s.options=x.extend({},s.defaultOptions),s.body=a,s._create(),s.setOptions(n),s}return fe(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 Dt.locale=="function"?Dt.locale(n.locale):Dt.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 m=s.nextSibling,v=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(),m?l.insertBefore(s,m):l.appendChild(s),v?this.body.dom.backgroundVertical.insertBefore(o,v):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-Gl(this.options.moment,this.body.hiddenDates,this.body.range,l);d-=this.body.util.toTime(0).valueOf();var c=new Kl(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 m,v,g,b,S,w,k=0,T,D,N=void 0,L=0,A=1e3,R;for(c.start(),v=c.getCurrent(),b=this.body.util.toScreen(v);c.hasNext()&&L<A;){switch(L++,S=c.isMajor(),R=c.getClassName(),m=v,g=b,c.next(),v=c.getCurrent(),b=this.body.util.toScreen(v),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(m),n,R);C.style.width="".concat(k,"px")}S&&this.options.showMajorLabels?(g>0&&(N==null&&(N=g),C=this._repaintMajorText(g,c.getLabelMajor(m),n,R)),D=this._repaintMajorLine(g,k,n,R)):w?D=this._repaintMinorLine(g,k,n,R):D&&(D.style.width="".concat(Zt(D.style.width)+k,"px"))}if(L===A&&!dE&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(A," lines.")),dE=!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=Ie(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 m=o=="top"?f.majorLabelHeight:this.body.domProps.top.height,v=n-f.minorLineWidth/2;return this._setXY(c,v,m),c.className=Ie(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 m=o=="top"?0:this.body.domProps.top.height,v=n-f.majorLineWidth/2;return this._setXY(c,v,m),c.className=Ie(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}(Rn),dE=!1;function $7(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 m=a[f][c.keyCode],v=0;v<m.length;v++)(m[v].shift===void 0||m[v].shift==!0&&c.shiftKey==!0||m[v].shift==!1&&c.shiftKey==!1)&&m[v].fn(c)};return r.bind=function(c,f,m){if(m===void 0&&(m="keydown"),n[c]===void 0)throw new Error("unsupported key: "+c);a[m][n[c].code]===void 0&&(a[m][n[c].code]=[]),a[m][n[c].code].push({fn:f,shift:n[c].shift})},r.bindAll=function(c,f){f===void 0&&(f="keydown");for(var m in n)n.hasOwnProperty(m)&&r.bind(m,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,m){if(m===void 0&&(m="keydown"),n[c]===void 0)throw new Error("unsupported key: "+c);if(f!==void 0){var v=[],g=a[m][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||v.push(a[m][n[c].code][b]);a[m][n[c].code]=v}else a[m][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 D7=`.vis .overlay {
|
117
|
+
`;bt(Yj);function jj(e){var r=Bj();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function Bj(){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 go=function(e){gt(t,e);var r=jj(t);function t(a,n){var s;return de(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({},vo.FORMAT),moment:yt,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 yt.locale=="function"?yt.locale(n.locale):yt.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 m=s.nextSibling,v=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(),m?l.insertBefore(s,m):l.appendChild(s),v?this.body.dom.backgroundVertical.insertBefore(o,v):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-fo(this.options.moment,this.body.hiddenDates,this.body.range,l);d-=this.body.util.toTime(0).valueOf();var c=new vo(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 m,v,y,b,E,w,S=0,D,T,P=void 0,F=0,A=1e3,V;for(c.start(),v=c.getCurrent(),b=this.body.util.toScreen(v);c.hasNext()&&F<A;){switch(F++,E=c.isMajor(),V=c.getClassName(),m=v,y=b,c.next(),v=c.getCurrent(),b=this.body.util.toScreen(v),D=S,S=b-y,c.scale){case"week":w=!0;break;default:w=S>=D*.4;break}if(this.options.showMinorLabels&&w){var N=this._repaintMinorText(y,c.getLabelMinor(m),n,V);N.style.width="".concat(S,"px")}E&&this.options.showMajorLabels?(y>0&&(P==null&&(P=y),N=this._repaintMajorText(y,c.getLabelMajor(m),n,V)),T=this._repaintMajorLine(y,S,n,V)):w?T=this._repaintMinorLine(y,S,n,V):T&&(T.style.width="".concat(Vt(T.style.width)+S,"px"))}if(F===A&&!c_&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(A," lines.")),c_=!0),this.options.showMajorLabels){var I=this.body.util.toTime(0),M=c.getLabelMajor(I),H=M.length*(this.props.majorCharWidth||10)+10;(P==null||H<P)&&this._repaintMajorText(0,M,n,V)}j(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 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=Te(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 m=o=="top"?f.majorLabelHeight:this.body.domProps.top.height,v=n-f.minorLineWidth/2;return this._setXY(c,v,m),c.className=Te(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 m=o=="top"?0:this.body.domProps.top.height,v=n-f.majorLineWidth/2;return this._setXY(c,v,m),c.className=Te(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}}]),t}(ni),c_=!1;function Hj(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(c){d(c,"keydown")},l=function(c){d(c,"keyup")},d=function(c,f){if(a[f][c.keyCode]!==void 0)for(var m=a[f][c.keyCode],v=0;v<m.length;v++)(m[v].shift===void 0||m[v].shift==!0&&c.shiftKey==!0||m[v].shift==!1&&c.shiftKey==!1)&&m[v].fn(c)};return t.bind=function(c,f,m){if(m===void 0&&(m="keydown"),n[c]===void 0)throw new Error("unsupported key: "+c);a[m][n[c].code]===void 0&&(a[m][n[c].code]=[]),a[m][n[c].code].push({fn:f,shift:n[c].shift})},t.bindAll=function(c,f){f===void 0&&(f="keydown");for(var m in n)n.hasOwnProperty(m)&&t.bind(m,c,f)},t.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"},t.unbind=function(c,f,m){if(m===void 0&&(m="keydown"),n[c]===void 0)throw new Error("unsupported key: "+c);if(f!==void 0){var v=[],y=a[m][n[c].code];if(y!==void 0)for(var b=0;b<y.length;b++)y[b].fn==f&&y[b].shift==n[c].shift||v.push(a[m][n[c].code][b]);a[m][n[c].code]=v}else a[m][n[c].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 Wj=`.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
|
+
`;bt(Wj);function Xt(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=_t(this.dom.overlay),this.hammer.on("tap",C(r=this._onTapOverlay).call(r,this));var a=this,n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];j(n).call(n,function(s){a.hammer.on(s,function(o){o.stopPropagation()})}),document&&document.body&&(this.onClick=function(s){Gj(s.target,e)||a.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=Hj(),this.escListener=C(t=this.deactivate).call(t,this)}bd(Xt.prototype),Xt.current=null,Xt.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},Xt.prototype.activate=function(){var e;Xt.current&&Xt.current.deactivate(),Xt.current=this,this.active=!0,this.dom.overlay.style.display="none",x.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),C(e=this.keycharm).call(e,"esc",this.escListener)},Xt.prototype.deactivate=function(){Xt.current===this&&(Xt.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")},Xt.prototype._onTapOverlay=function(e){this.activate(),e.stopPropagation()};function Gj(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var Zc={current:"current",time:"time",deleteSelected:"Delete selected"},zj=Zc,Uj=Zc,Qc={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},Xj=Qc,qj=Qc,Jc={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},Kj=Jc,Zj=Jc,u_={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},Qj=u_,yo={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},Jj=yo,eB=yo,tB=yo,h_={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},rB=h_,f_={current:"поточний",time:"час",deleteSelected:"Видалити обране"},iB=f_,p_={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},nB=p_,m_={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},aB=m_,eu={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},sB=eu,oB=eu,v_={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},lB=v_,g_={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},dB=g_,_o={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},cB=_o,uB=_o,hB=_o,y_={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},fB=y_,Sn={en:Zc,en_EN:zj,en_US:Uj,it:Qc,it_IT:Xj,it_CH:qj,nl:Jc,nl_NL:Kj,nl_BE:Zj,de:u_,de_DE:Qj,fr:yo,fr_FR:Jj,fr_CA:eB,fr_BE:tB,es:h_,es_ES:rB,uk:f_,uk_UA:iB,ru:p_,ru_RU:nB,pl:m_,pl_PL:aB,pt:eu,pt_BR:sB,pt_PT:oB,ja:v_,ja_JP:lB,lt:y_,lt_LT:fB,sv:g_,sv_SE:dB,nb:_o,nn:uB,nb_NO:cB,nn_NO:hB},pB=`.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
|
+
}`;bt(pB);function mB(e){var r=vB();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function vB(){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 tu=function(e){gt(t,e);var r=mB(t);function t(a,n){var s,o;de(this,t),o=r.call(this),o.body=a,o.defaultOptions={moment:yt,locales:Sn,locale:"en",id:void 0,title:void 0},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},Sn,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return j(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 c(f){this.body.range._onMouseWheel(f)}d.addEventListener?(d.addEventListener("mousewheel",C(c).call(c,this),!1),d.addEventListener("DOMMouseScroll",C(c).call(c,this),!1)):d.attachEvent("onmousewheel",C(c).call(c,this)),l.appendChild(d),this.hammer=new _t(d),this.hammer.on("panstart",C(n=this._onDragStart).call(n,this)),this.hammer.on("panmove",C(s=this._onDrag).call(s,this)),this.hammer.on("panend",C(o=this._onDragEnd).call(o,this)),this.hammer.get("pan").set({threshold:5,direction:_t.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=Te(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",C(o=this._onMarkerChange).call(o,this)),this.marker.title=n,this.marker.addEventListener("blur",C(l=function(c){this.title!=c.target.innerHTML&&(this._onMarkerChanged(c),this.title=c.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(),c=this.body.util.getStep(),f=this.options.snap,m=f?f(l,d,c):l;this.setCustomTime(m),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}(ni),gB=`.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
|
+
/**/`;bt(gB);var yB=`.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
|
+
}`;bt(yB);var _B=`.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
|
+
}`;bt(_B);var bB=`.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
|
+
`;bt(bB);var wB=`
|
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
|
+
}`;bt(wB);var kB=`/* 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
|
-
`;Ct(sK);var $a=function(){function e(){he(this,e)}return fe(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",I(n=this._onTouch).call(n,this)),this.on("panmove",I(s=this._onDrag).call(s,this));var l=this;this._origRedraw=I(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 Nt(this.dom.root);var d=this.hammer.get("pinch").set({enable:!0});d&&S7(d),this.hammer.get("pan").set({threshold:5,direction:Nt.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}),lE(this.hammer,function(w){l.emit("touch",w)}),E7(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 m="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(m,I(f).call(f,this),!1),this.dom.top.addEventListener(m,I(f).call(f,this),!1),this.dom.bottom.addEventListener(m,I(f).call(f,this),!1);function v(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",I(v).call(v,this)),this.dom.right.parentNode.addEventListener("scroll",I(v).call(v,this));var g=!1;function b(w){var k;if(w.preventDefault&&(l.emit("dragover",l.getEventProperties(w)),w.preventDefault()),$e(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",I(b).call(b,this),!1),this.dom.center.addEventListener("drop",I(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 ql(this.body,this.options);s.setOptions=function(m){var v=m?x.extend({},m):{};v.orientation="top",ql.prototype.setOptions.call(s,v)},this.components.push(s)}}else if(this.timeAxis2){var o,l=$e(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&&ff(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in r&&(r.clickToUse?this.activator||(this.activator=new fr(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(G(a=this.components).call(a,function(m){return m.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(m){x.deepExtend(f,m.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(Yt(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(Yt(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(Yt(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(Yt(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=Qh(n=this.customTimes).call(n,function(d){return d.options.id===a});if(o)throw new Error("A custom time with id ".concat(Yt(a)," already exists"));var l=new bf(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(Yt(r)));G(s).call(s,function(o){var l,d,c,f;xt(l=n.customTimes).call(l,$e(d=n.customTimes).call(d,o),1),xt(c=n.components).call(c,$e(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,m=o+f,v=l-f;this.setWindow(m,v,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;Wl(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 m=a.leftContainer.clientWidth,v=a.rightContainer.clientWidth;s.verticalScroll?s.rtl?(o.left.width=m||-o.border.left,o.right.width=v+o.scrollbarWidth||-o.border.right):(o.left.width=m+o.scrollbarWidth||-o.border.left,o.right.width=v||-o.border.right):(o.left.width=m||-o.border.left,o.right.width=v||-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=m||-o.border.left,o.right.width=v||-o.border.right,this._setDOM());var w=o.center.height>o.centerContainer.height;this.hammer.get("pan").set({direction:w?Nt.DIRECTION_ALL:Nt.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 iE(this,r,this.props.center.width)}},{key:"_toGlobalTime",value:function(r){return iE(this,r,this.props.root.width)}},{key:"_toScreen",value:function(r){return nE(this,r,this.props.center.width)}},{key:"_toGlobalScreen",value:function(r){return nE(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=_7(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}();Vu($a.prototype);function oK(e){var t=lK();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function lK(){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 yE=function(e){$t(r,e);var t=oK(r);function r(a,n){var s,o;he(this,r),o=t.call(this),o.body=a,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Dt,locales:Ta,locale:"en"},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},Ta,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return G(s=nt(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 fe(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=Ie(n=Ie(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=gt(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}(Rn),dK=X,cK=Xr.find,_E="find",bE=!0;_E in[]&&Array(1)[_E](function(){bE=!1}),dK({target:"Array",proto:!0,forced:bE},{find:function(t){return cK(this,t,arguments.length>1?arguments[1]:void 0)}});var uK=Be,hK=uK("Array").find,fK=Te,pK=hK,wf=Array.prototype,mK=function(e){var t=e.find;return e===wf||fK(wf,e)&&t===wf.find?pK:t},vK=mK,gK=vK,yK=gK,_K=U(yK),bK=X,wK=Xr.findIndex,wE="findIndex",EE=!0;wE in[]&&Array(1)[wE](function(){EE=!1}),bK({target:"Array",proto:!0,forced:EE},{findIndex:function(t){return wK(this,t,arguments.length>1?arguments[1]:void 0)}});var EK=Be,SK=EK("Array").findIndex,kK=Te,xK=SK,Ef=Array.prototype,TK=function(e){var t=e.findIndex;return e===Ef||kK(Ef,e)&&t===Ef.findIndex?xK:t},$K=TK,DK=$K,NK=DK,CK=U(NK);function OK(e,t){var r=typeof Zr<"u"&&Tn(e)||e["@@iterator"];if(!r){if(ae(e)||(r=AK(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 AK(e,t){var r;if(e){if(typeof e=="string")return SE(e,t);var a=vt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return SE(e,t)}}function SE(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 tr=.001;function IK(e){Ke(e).call(e,function(t,r){return t.data.start-r.data.start})}function PK(e){Ke(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 kE(e,t,r,a){var n=Sf(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 MK(e,t,r){var a=Sf(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 RK(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||LK(e,t,r)}function LK(e,t,r){var a;Sf(Ke(a=Ou(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 xE(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&&MK(e[s],t,r[s])}}function Sf(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=[],m=[],v=null,g=0,b=OK(e),S;try{var w=function(){var C=S.value;if(a(C))f.push(C);else if(n(C)){var j=l(C);v!==null&&j<v-tr&&(g=0),v=j,g=Zl(m,function(O){return l(O)-tr>j},g),xt(m).call(m,g,0,C),g++}};for(b.s();!(S=b.n()).done;)w()}catch(R){b.e(R)}finally{b.f()}v=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);v!==null&&M<v-tr&&(T=0,D=0,g=0,k=null),v=M,T=Zl(m,function(pe){return M<d(pe)-tr},T),(k===null||k<H-tr)&&(D=Zl(m,function(pe){return H<l(pe)-tr},Math.max(T,D))),k!==null&&k-tr>H&&(D=FK(m,function(pe){return H+tr>=l(pe)},T,D)+1);for(var z=Ke(C=te(j=vt(m).call(m,T,D)).call(j,function(pe){return M<d(pe)-tr&&H-tr>l(pe)})).call(C,function(pe,it){return pe.top-it.top}),oe=0;oe<z.length;oe++){var _e=z[oe];VK(O,_e,t)&&(O.top=_e.top+_e.height+t.vertical)}n(O)&&(g=Zl(m,function(pe){return l(pe)-tr>M},g),xt(m).call(m,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 VK(e,t,r){return e.top-r.vertical+tr<t.top+t.height&&e.top+e.height+r.vertical-tr>t.top}function Zl(e,t,r){var a;r||(r=0);var n=CK(a=vt(e).call(e,r)).call(a,t);return n===-1?e.length:n+r}function FK(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 YK="__background__",TE={BACKGROUND:YK},kf=function(){function e(t,r,a){var n=this;if(he(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 fe(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=I(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,m,v,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:Ve(new In(te(f=ke(m=this.orderedItems.byEnd).call(m,function(H){return H.cluster})).call(f,function(H){return!!H}))),byStart:Ve(new In(te(v=ke(g=this.orderedItems.byStart).call(g,function(H){return H.cluster})).call(v,function(H){return!!H})))},w=function(){var z,oe,_e,be=o._updateItemsInRange(b,te(z=o.visibleItems).call(z,function(it){return!it.isCluster}),s),pe=o._updateClustersInRange(S,te(oe=o.visibleItems).call(oe,function(it){return it.isCluster}),s);return Ie(_e=[]).call(_e,Ve(be),Ve(pe))},k=function(z){var oe={},_e=function(it){var ft,Me=te(ft=o.visibleItems).call(ft,function(Gt){return Gt.data.subgroup===it});oe[it]=z?Ke(Me).call(Me,function(Gt,pt){return z(Gt.data,pt.data)}):Me};for(var be in o.subgroups)_e(be);return oe};if(typeof this.itemSet.options.order=="function"){var T=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var D=k(this.itemSet.options.order);xE(D,n,this.subgroups),this.visibleItems=w(),this._updateSubGroupHeights(n)}else{var N,L,A,R;this.visibleItems=w(),this._updateSubGroupHeights(n);var C=Ke(N=te(L=vt(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=kE(C,n,!0,I(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();xE(j,n,this.subgroups)}else{var O;this.shouldBailStackItems=kE(this.visibleItems,n,!0,I(O=this._shouldBailItemsRedraw).call(O,this))}else RK(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!=TE.BACKGROUND&&s.displayed&&s.hide()}}},{key:"redraw",value:function(r,a,n,s){var o=this,l,d,c,f,m,v=!1,g=this.isVisible,b,S=[function(){n=o._didMarkerHeightChange.call(o)||n},I(l=this._updateSubGroupHeights).call(l,this,a),I(d=this._calculateGroupSizeAndPosition).call(d,this),function(){var k;o.isVisible=I(k=o._isGroupVisible).call(k,o)(r,a)},function(){var k;I(k=o._redrawItems).call(k,o)(n,g,a,r)},I(c=this._updateSubgroupsSizes).call(c,this),function(){var k;b=I(k=o._calculateHeight).call(k,o)(a)},I(f=this._calculateGroupSizeAndPosition).call(f,this),function(){var k;v=I(k=o._didResize).call(k,o)(v,b)},function(){var k;I(k=o._applyGroupHeight).call(k,o)(b)},function(){var k;I(k=o._updateItemsVerticalPosition).call(k,o)(a)},I(m=function(){return!o.isVisible&&o.height&&(v=!1),v}).call(m,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(nt(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 m=f.data.end||f.data.start;new Date(m)>new Date(c)&&(c=m)}),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]});Ke(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);Ke(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=$e(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=$e(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},IK(this.orderedItems.byStart),PK(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(r,a,n){var s=[],o={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=TE.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,m=n.end+c,v=function(H){return H<f?-1:H<=m?0:1},g=function(H){var z=H.start,oe=H.end;return oe<f?-1:z<=m?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,v,"data","start");if(this._traceVisible(S,r.byStart,s,o,function(M){return M.data.start<f||M.data.start>m}),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>m})}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={},m=0,v=0;v<s.length;v++){var g=s[v];if(!g.displayed){var b=!0;f[v]=g.redraw(b),m=f[v].length}}var S=m>0;if(S)for(var w=0;w<m;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 jK(e){var t=BK();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function BK(){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){$t(r,e);var t=jK(r);function r(a,n,s){var o;return he(this,r),o=t.call(this,a,n,s),o.width=0,o.height=0,o.top=0,o.left=0,o}return fe(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}(kf),HK=`
|
415
|
+
`;bt(kB);var $n=function(){function e(){de(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",C(n=this._onTouch).call(n,this)),this.on("panmove",C(s=this._onDrag).call(s,this));var l=this;this._origRedraw=C(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 _t(this.dom.root);var d=this.hammer.get("pinch").set({enable:!0});d&&Fj(d),this.hammer.get("pan").set({threshold:5,direction:_t.DIRECTION_ALL}),this.timelineListeners={};var c=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];j(c).call(c,function(w){var S=function(T){l.isActive()&&l.emit(w,T)};l.hammer.on(w,S),l.timelineListeners[w]=S}),d_(this.hammer,function(w){l.emit("touch",w)}),Lj(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 m="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(m,C(f).call(f,this),!1),this.dom.top.addEventListener(m,C(f).call(f,this),!1),this.dom.bottom.addEventListener(m,C(f).call(f,this),!1);function v(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",C(v).call(v,this)),this.dom.right.parentNode.addEventListener("scroll",C(v).call(v,this));var y=!1;function b(w){var S;if(w.preventDefault&&(l.emit("dragover",l.getEventProperties(w)),w.preventDefault()),ke(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",C(b).call(b,this),!1),this.dom.center.addEventListener("drop",C(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 go(this.body,this.options);s.setOptions=function(m){var v=m?x.extend({},m):{};v.orientation="top",go.prototype.setOptions.call(s,v)},this.components.push(s)}}else if(this.timeAxis2){var o,l=ke(o=this.components).call(o,this.timeAxis2);if(l!==-1){var d;mt(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 Xt(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(j(a=this.components).call(a,function(m){return m.setOptions(t)}),"configure"in t){var c;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var f=x.deepExtend({},this.options);j(c=this.components).call(c,function(m){x.deepExtend(f,m.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,j(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=Ic(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 tu(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)));j(s).call(s,function(o){var l,d,c,f;mt(l=n.customTimes).call(l,ke(d=n.customTimes).call(d,o),1),mt(c=n.components).call(c,ke(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,c=a&&a.animation!==void 0?a.animation:!0;this.range.setRange(l,d,{animation:c},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,c=d/(1+t),f=(d-c)/2,m=o+f,v=l-f;this.setWindow(m,v,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,c=o-d*t/2,f=l+d*t/2;this.setWindow(c,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;ho(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 m=a.leftContainer.clientWidth,v=a.rightContainer.clientWidth;s.verticalScroll?s.rtl?(o.left.width=m||-o.border.left,o.right.width=v+o.scrollbarWidth||-o.border.right):(o.left.width=m+o.scrollbarWidth||-o.border.left,o.right.width=v||-o.border.right):(o.left.width=m||-o.border.left,o.right.width=v||-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=m||-o.border.left,o.right.width=v||-o.border.right,this._setDOM());var w=o.center.height>o.centerContainer.height;this.hammer.get("pan").set({direction:w?_t.DIRECTION_ALL:_t.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),j(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 a_(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return a_(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return n_(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return n_(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=Aj(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}();bd($n.prototype);function xB(e){var r=EB();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function EB(){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 __=function(e){gt(t,e);var r=xB(t);function t(a,n){var s,o;de(this,t),o=r.call(this),o.body=a,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:yt,locales:Sn,locale:"en"},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},Sn,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return j(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(At()+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=Te(n=Te(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=lt(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=At();this.offset=s-o,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(At()+this.offset)}}]),t}(ni),SB=U,$B=xr.find,b_="find",w_=!0;b_ in[]&&Array(1)[b_](function(){w_=!1}),SB({target:"Array",proto:!0,forced:w_},{find:function(r){return $B(this,r,arguments.length>1?arguments[1]:void 0)}});var DB=Ae,TB=DB("Array").find,NB=we,CB=TB,ru=Array.prototype,OB=function(e){var r=e.find;return e===ru||NB(ru,e)&&r===ru.find?CB:r},PB=OB,IB=PB,MB=IB,AB=G(MB),VB=U,RB=xr.findIndex,k_="findIndex",x_=!0;k_ in[]&&Array(1)[k_](function(){x_=!1}),VB({target:"Array",proto:!0,forced:x_},{findIndex:function(r){return RB(this,r,arguments.length>1?arguments[1]:void 0)}});var LB=Ae,FB=LB("Array").findIndex,YB=we,jB=FB,iu=Array.prototype,BB=function(e){var r=e.findIndex;return e===iu||YB(iu,e)&&r===iu.findIndex?jB:r},HB=BB,WB=HB,GB=WB,zB=G(GB);function UB(e,r){var t=typeof Sr<"u"&&Xr(e)||e["@@iterator"];if(!t){if(re(e)||(t=XB(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(c){throw c},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 c=t.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function XB(e,r){var t;if(e){if(typeof e=="string")return E_(e,r);var a=ot(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ur(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return E_(e,r)}}function E_(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 Ft=.001;function qB(e){We(e).call(e,function(r,t){return r.data.start-t.data.start})}function KB(e){We(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 S_(e,r,t,a){var n=nu(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 ZB(e,r,t){var a=nu(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 QB(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||JB(e,r,t)}function JB(e,r,t){var a;nu(We(a=fd(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 $_(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],c=0;c<d.length;c++)d[c].data.subgroup!==void 0&&(d[c].top=t[d[c].data.subgroup].top+.5*r.item.vertical,t[s].stack&&(d[c].baseTop=d[c].top));a&&t[s].stack&&ZB(e[s],r,t[s])}}function nu(e,r,t,a,n,s,o){var l=function(N){return N.start},d=function(N){return N.end};if(!t){var c=!!(e[0]&&e[0].options.rtl);c?l=function(N){return N.right}:l=function(N){return N.left},d=function(N){return l(N)+N.width+r.horizontal}}var f=[],m=[],v=null,y=0,b=UB(e),E;try{var w=function(){var N=E.value;if(a(N))f.push(N);else if(n(N)){var I=l(N);v!==null&&I<v-Ft&&(y=0),v=I,y=bo(m,function(M){return l(M)-Ft>I},y),mt(m).call(m,y,0,N),y++}};for(b.s();!(E=b.n()).done;)w()}catch(V){b.e(V)}finally{b.f()}v=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);v!==null&&H<v-Ft&&(D=0,T=0,y=0,S=null),v=H,D=bo(m,function(Ye){return H<d(Ye)-Ft},D),(S===null||S<W-Ft)&&(T=bo(m,function(Ye){return W<l(Ye)-Ft},Math.max(D,T))),S!==null&&S-Ft>W&&(T=tH(m,function(Ye){return W+Ft>=l(Ye)},D,T)+1);for(var q=We(N=J(I=ot(m).call(m,D,T)).call(I,function(Ye){return H<d(Ye)-Ft&&W-Ft>l(Ye)})).call(N,function(Ye,Pt){return Ye.top-Pt.top}),ue=0;ue<q.length;ue++){var Re=q[ue];eH(M,Re,r)&&(M.top=Re.top+Re.height+r.vertical)}n(M)&&(y=bo(m,function(Ye){return l(Ye)-Ft>H},y),mt(m).call(m,y,0,M),y++);var rt=M.top+M.height;if(rt>P&&(P=rt),o&&o())return{v:null}},A;f.length>0;)if(A=F(),A)return A.v;return P}function eH(e,r,t){return e.top-t.vertical+Ft<r.top+r.height&&e.top+e.height+t.vertical-Ft>r.top}function bo(e,r,t){var a;t||(t=0);var n=zB(a=ot(e).call(e,t)).call(a,r);return n===-1?e.length:n+t}function tH(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 rH="__background__",D_={BACKGROUND:rH},au=function(){function e(r,t,a){var n=this;if(de(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=C(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;j(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){j(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 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(At()-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,c,f,m,v,y,b={byEnd:J(d=this.orderedItems.byEnd).call(d,function(W){return!W.isCluster}),byStart:J(c=this.orderedItems.byStart).call(c,function(W){return!W.isCluster})},E={byEnd:Pe(new ti(J(f=_e(m=this.orderedItems.byEnd).call(m,function(W){return W.cluster})).call(f,function(W){return!!W}))),byStart:Pe(new ti(J(v=_e(y=this.orderedItems.byStart).call(y,function(W){return W.cluster})).call(v,function(W){return!!W})))},w=function(){var q,ue,Re,rt=o._updateItemsInRange(b,J(q=o.visibleItems).call(q,function(Pt){return!Pt.isCluster}),s),Ye=o._updateClustersInRange(E,J(ue=o.visibleItems).call(ue,function(Pt){return Pt.isCluster}),s);return Te(Re=[]).call(Re,Pe(rt),Pe(Ye))},S=function(q){var ue={},Re=function(Pt){var Ir,ze=J(Ir=o.visibleItems).call(Ir,function(vr){return vr.data.subgroup===Pt});ue[Pt]=q?We(ze).call(ze,function(vr,or){return q(vr.data,or.data)}):ze};for(var rt in o.subgroups)Re(rt);return ue};if(typeof this.itemSet.options.order=="function"){var D=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var T=S(this.itemSet.options.order);$_(T,n,this.subgroups),this.visibleItems=w(),this._updateSubGroupHeights(n)}else{var P,F,A,V;this.visibleItems=w(),this._updateSubGroupHeights(n);var N=We(P=J(F=ot(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=S_(N,n,!0,C(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();$_(I,n,this.subgroups)}else{var M;this.shouldBailStackItems=S_(this.visibleItems,n,!0,C(M=this._shouldBailItemsRedraw).call(M,this))}else QB(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&&j(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!=D_.BACKGROUND&&s.displayed&&s.hide()}}},{key:"redraw",value:function(t,a,n,s){var o=this,l,d,c,f,m,v=!1,y=this.isVisible,b,E=[function(){n=o._didMarkerHeightChange.call(o)||n},C(l=this._updateSubGroupHeights).call(l,this,a),C(d=this._calculateGroupSizeAndPosition).call(d,this),function(){var S;o.isVisible=C(S=o._isGroupVisible).call(S,o)(t,a)},function(){var S;C(S=o._redrawItems).call(S,o)(n,y,a,t)},C(c=this._updateSubgroupsSizes).call(c,this),function(){var S;b=C(S=o._calculateHeight).call(S,o)(a)},C(f=this._calculateGroupSizeAndPosition).call(f,this),function(){var S;v=C(S=o._didResize).call(S,o)(v,b)},function(){var S;C(S=o._applyGroupHeight).call(S,o)(b)},function(){var S;C(S=o._updateItemsVerticalPosition).call(S,o)(a)},C(m=function(){return!o.isVisible&&o.height&&(v=!1),v}).call(m,this)];if(s)return E;var w;return j(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(),j(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(j(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,j(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()),!Zr(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,c=l-1;j(o=t.subgroups[n].items).call(o,function(f){new Date(f.data.start)<new Date(d)&&(d=f.data.start);var m=f.data.end||f.data.start;new Date(m)>new Date(c)&&(c=m)}),t.subgroups[n].start=d,t.subgroups[n].end=new Date(c-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]});We(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);We(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=ke(a=this.visibleItems).call(a,t);s!=-1&&mt(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=ke(s=n.items).call(s,t);if(o>=0){var l;mt(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},qB(this.orderedItems.byStart),KB(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,a,n){var s=[],o={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=D_.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,m=n.end+c,v=function(W){return W<f?-1:W<=m?0:1},y=function(W){var q=W.start,ue=W.end;return ue<f?-1:q<=m?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,v,"data","start");if(this._traceVisible(E,t.byStart,s,o,function(H){return H.data.start<f||H.data.start>m}),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>m})}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){j(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 c=t+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(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 c=0;c<t.byEnd.length;c++)this._checkIfVisibleWithReference(t.byEnd[c],s,o,n);for(var f={},m=0,v=0;v<s.length;v++){var y=s[v];if(!y.displayed){var b=!0;f[v]=y.redraw(b),m=f[v].length}}var E=m>0;if(E)for(var w=0;w<m;w++)j(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 iH(e){var r=nH();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function nH(){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 T_=function(e){gt(t,e);var r=iH(t);function t(a,n,s){var o;return de(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,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)}}]),t}(au),aH=`
|
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 GK(e,t){var r;if(e){if(typeof e=="string")return DE(e,t);var a=vt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return DE(e,t)}}function DE(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 Da=function(){function e(t,r,a){var n,s=this;he(this,e),this.id=null,this.parent=null,this.data=t,this.dom=null,this.conversion=r||{},this.defaultOptions={locales:Ta,locale:"en"},this.options=x.extend({},this.defaultOptions,a),this.options.locales=x.extend({},Ta,this.options.locales);var o=this.defaultOptions.locales[this.defaultOptions.locale];G(n=nt(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 fe(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 Nt(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",I(r=n.parent.itemSet._onDrag).call(r,n.parent.itemSet)),this.hammerDragCenter.on("panend",I(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 Nt(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 m;f=I(m=this.options.tooltipOnItemUpdateTime.template).call(m,this),c=f(this.data)}else c="start: ".concat(Dt(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(c+="<br> end: ".concat(Dt(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 m;l=I(m=this.options.visibleFrameTemplate).call(m,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 v;s=I(v=this.options.template).call(v,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=nt(this.data);else return;var n=WK(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=I(r=this.options.tooltip.template).call(r,this);return a(this._getItemData(),this.data)}return this.data.title}}]),e}();Da.prototype.stack=!0;function zK(e){var t=UK();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function UK(){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 KK=function(e){$t(r,e);var t=zK(r);function r(a,n,s){var o;if(he(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 fe(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,m=[I(s=this._createDomElement).call(s,this),I(o=this._appendDomElement).call(o,this),I(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var g;I(g=d._updateDomComponentsSizes).call(g,d)(f)}},I(c=this._repaintDomAdditionals).call(c,this)];if(n)return m;var v;return G(m).call(m,function(g){v=g()}),v}},{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,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&c===void 0)){var v=m?d*-1:d;if(c===void 0){l.style.transform="translateX(".concat(v,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(c,"px)");return}l.style.transform=Ie(f="translate(".concat(v,"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}(Da);function qK(e){var t=XK();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function XK(){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 QK=function(e){$t(r,e);var t=qK(r);function r(a,n,s){var o;if(he(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 fe(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,m=[I(s=this._createDomElement).call(s,this),I(o=this._appendDomElement).call(o,this),I(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var g;I(g=d._updateDomComponentsSizes).call(g,d)(f)}},I(c=this._repaintDomAdditionals).call(c,this)];if(n)return m;var v;return G(m).call(m,function(g){v=g()}),v}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,c){var f,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&c===void 0)){var v=m?d*-1:d;if(c===void 0){l.style.transform="translateX(".concat(v,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(c,"px)");return}l.style.transform=Ie(f="translate(".concat(v,"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}(Da);function ZK(e){var t=JK();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function JK(){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=function(e){$t(r,e);var t=ZK(r);function r(a,n,s){var o;if(he(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 fe(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,m=[I(s=this._createDomElement).call(s,this),I(o=this._appendDomElement).call(o,this),I(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var g;f=I(g=d._getDomComponentsSizes).call(g,d)()}},function(){if(d.dirty){var g;I(g=d._updateDomComponentsSizes).call(g,d)(f)}},I(c=this._repaintDomAdditionals).call(c,this)];if(n)return m;var v;return G(m).call(m,function(g){v=g()}),v}},{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 m=Math.max(Math.round((l-o)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=m+this.props.content.width,f=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=m,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(m,"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 v=Math.max(m-f,0)*-1;this.dom.content.style.transform="translateX(".concat(v,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(m-f,0),"px)");break;case"center":if(this.options.rtl){var g=Math.max((m-f)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(g,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((m-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}(Da);bi.prototype.baseClassName="vis-item vis-range";function eq(e){var t=tq();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function tq(){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 wi=function(e){$t(r,e);var t=eq(r);function r(a,n,s){var o;if(he(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 fe(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,m=[I(s=this._createDomElement).call(s,this),I(o=this._appendDomElement).call(o,this),I(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var g;f=I(g=d._getDomComponentsSizes).call(g,d)()}},function(){if(d.dirty){var g;I(g=d._updateDomComponentsSizes).call(g,d)(f)}},I(c=this._repaintDomAdditionals).call(c,this)];if(n)return m;var v;return G(m).call(m,function(g){v=g()}),v}},{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 $E?(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}(Da);wi.prototype.baseClassName="vis-item vis-background",wi.prototype.stack=!1,wi.prototype.show=bi.prototype.show,wi.prototype.hide=bi.prototype.hide,wi.prototype.repositionX=bi.prototype.repositionX;var rq=`div.vis-tooltip {
|
633
|
+
}`;bt(aH);function sH(e,r){var t=typeof Sr<"u"&&Xr(e)||e["@@iterator"];if(!t){if(re(e)||(t=oH(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(c){throw c},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 c=t.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function oH(e,r){var t;if(e){if(typeof e=="string")return N_(e,r);var a=ot(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ur(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return N_(e,r)}}function N_(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 Dn=function(){function e(r,t,a){var n,s=this;de(this,e),this.id=null,this.parent=null,this.data=r,this.dom=null,this.conversion=t||{},this.defaultOptions={locales:Sn,locale:"en"},this.options=x.extend({},this.defaultOptions,a),this.options.locales=x.extend({},Sn,this.options.locales);var o=this.defaultOptions.locales[this.defaultOptions.locale];j(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 _t(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",C(t=n.parent.itemSet._onDrag).call(t,n.parent.itemSet)),this.hammerDragCenter.on("panend",C(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 _t(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 c,f;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){var m;f=C(m=this.options.tooltipOnItemUpdateTime.template).call(m,this),c=f(this.data)}else c="start: ".concat(yt(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(c+="<br> end: ".concat(yt(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(t){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 m;l=C(m=this.options.visibleFrameTemplate).call(m,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 v;s=C(v=this.options.template).call(v,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=sH(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=C(t=this.options.tooltip.template).call(t,this);return a(this._getItemData(),this.data)}return this.data.title}}]),e}();Dn.prototype.stack=!0;function lH(e){var r=dH();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(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}}var cH=function(e){gt(t,e);var r=lH(t);function t(a,n,s){var o;if(de(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,c,f,m=[C(s=this._createDomElement).call(s,this),C(o=this._appendDomElement).call(o,this),C(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var y;C(y=d._updateDomComponentsSizes).call(y,d)(f)}},C(c=this._repaintDomAdditionals).call(c,this)];if(n)return m;var v;return j(m).call(m,function(y){v=y()}),v}},{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,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&c===void 0)){var v=m?d*-1:d;if(c===void 0){l.style.transform="translateX(".concat(v,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(c,"px)");return}l.style.transform=Te(f="translate(".concat(v,"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}}]),t}(Dn);function uH(e){var r=hH();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function hH(){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 fH=function(e){gt(t,e);var r=uH(t);function t(a,n,s){var o;if(de(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,c,f,m=[C(s=this._createDomElement).call(s,this),C(o=this._appendDomElement).call(o,this),C(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var y;C(y=d._updateDomComponentsSizes).call(y,d)(f)}},C(c=this._repaintDomAdditionals).call(c,this)];if(n)return m;var v;return j(m).call(m,function(y){v=y()}),v}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,c){var f,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&c===void 0)){var v=m?d*-1:d;if(c===void 0){l.style.transform="translateX(".concat(v,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(c,"px)");return}l.style.transform=Te(f="translate(".concat(v,"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}}]),t}(Dn);function pH(e){var r=mH();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function mH(){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 Ai=function(e){gt(t,e);var r=pH(t);function t(a,n,s){var o;if(de(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,c,f,m=[C(s=this._createDomElement).call(s,this),C(o=this._appendDomElement).call(o,this),C(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var y;f=C(y=d._getDomComponentsSizes).call(y,d)()}},function(){if(d.dirty){var y;C(y=d._updateDomComponentsSizes).call(y,d)(f)}},C(c=this._repaintDomAdditionals).call(c,this)];if(n)return m;var v;return j(m).call(m,function(y){v=y()}),v}},{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 m=Math.max(Math.round((l-o)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=m+this.props.content.width,f=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=m,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(m,"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 v=Math.max(m-f,0)*-1;this.dom.content.style.transform="translateX(".concat(v,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(m-f,0),"px)");break;case"center":if(this.options.rtl){var y=Math.max((m-f)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(y,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((m-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)}}]),t}(Dn);Ai.prototype.baseClassName="vis-item vis-range";function vH(e){var r=gH();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function gH(){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){gt(t,e);var r=vH(t);function t(a,n,s){var o;if(de(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,c,f,m=[C(s=this._createDomElement).call(s,this),C(o=this._appendDomElement).call(o,this),C(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var y;f=C(y=d._getDomComponentsSizes).call(y,d)()}},function(){if(d.dirty){var y;C(y=d._updateDomComponentsSizes).call(y,d)(f)}},C(c=this._repaintDomAdditionals).call(c,this)];if(n)return m;var v;return j(m).call(m,function(y){v=y()}),v}},{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 T_?(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}(Dn);Vi.prototype.baseClassName="vis-item vis-background",Vi.prototype.stack=!1,Vi.prototype.show=Ai.prototype.show,Vi.prototype.hide=Ai.prototype.hide,Vi.prototype.repositionX=Ai.prototype.repositionX;var yH=`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 gq(e,t){var r;if(e){if(typeof e=="string")return CE(e,t);var a=vt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return CE(e,t)}}function CE(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 yq(e){var t=_q();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function _q(){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 OE=function(e){$t(r,e);var t=yq(r);function r(a,n,s){var o;he(this,r);var l=Jr({},{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=vi(),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 fe(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,m,v=[I(s=this._createDomElement).call(s,this),I(o=this._appendDomElement).call(o,this),I(l=this._updateDirtyDomComponents).call(l,this),I(d=function(){this.dirty&&(m=this._getDomComponentsSizes())}).call(d,this),I(c=function(){if(this.dirty){var S;I(S=this._updateDomComponentsSizes).call(S,this)(m)}}).call(c,this),I(f=this._repaintDomAdditionals).call(f,this)];if(n)return v;var g;return G(v).call(v,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,m=this.options.rtl?c*-1:c;this.dom.line.style.transform="translateX(".concat(f,"px)"),this.dom.dot.style.transform="translateX(".concat(m,"px)")}else{var v=this.options.rtl?n*-1:n,g=this.options.rtl?(n-l/2)*-1:n-l/2;this.dom.line.style.transform="translateX(".concat(v,"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=NE(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=ke(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=NE(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=ke(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,Ve(ke(l).call(l,function(f){return Math.min(f.start,f.end||f.start)}))),this.data.max=Math.max.apply(Math,Ve(ke(l).call(l,function(f){return Math.max(f.start,f.end||f.start)})));var d=ke(s=this.data.uiItems).call(s,function(f){return f.center}),c=Dl(d).call(d,function(f,m){return f+m},0)/this.data.uiItems.length;Qh(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=I(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}(Da);OE.prototype.baseClassName="vis-item vis-range vis-cluster";function bq(e,t){var r=typeof Zr<"u"&&Tn(e)||e["@@iterator"];if(!r){if(ae(e)||(r=wq(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
|
+
`;bt(yH);var _H=function(){function e(r,t){de(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=Vt(t),this.y=Vt(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 c=!1,f=!0;this.overflowMethod=="flip"&&(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}(),bH=U,wH=xr.every,kH=sn,xH=kH("every");bH({target:"Array",proto:!0,forced:!xH},{every:function(r){return wH(this,r,arguments.length>1?arguments[1]:void 0)}});var EH=Ae,SH=EH("Array").every,$H=we,DH=SH,su=Array.prototype,TH=function(e){var r=e.every;return e===su||$H(su,e)&&r===su.every?DH:r},NH=TH,CH=NH,OH=CH,PH=G(OH);function C_(e,r){var t=typeof Sr<"u"&&Xr(e)||e["@@iterator"];if(!t){if(re(e)||(t=IH(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(c){throw c},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 c=t.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function IH(e,r){var t;if(e){if(typeof e=="string")return O_(e,r);var a=ot(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ur(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return O_(e,r)}}function O_(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 MH(e){var r=AH();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function AH(){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 P_=function(e){gt(t,e);var r=MH(t);function t(a,n,s){var o;de(this,t);var l=$r({},{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=Oi(),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,c,f,m,v=[C(s=this._createDomElement).call(s,this),C(o=this._appendDomElement).call(o,this),C(l=this._updateDirtyDomComponents).call(l,this),C(d=function(){this.dirty&&(m=this._getDomComponentsSizes())}).call(d,this),C(c=function(){if(this.dirty){var E;C(E=this._updateDomComponentsSizes).call(E,this)(m)}}).call(c,this),C(f=this._repaintDomAdditionals).call(f,this)];if(n)return v;var y;return j(v).call(v,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,c=d-l/2,f=this.options.rtl?d*-1:d,m=this.options.rtl?c*-1:c;this.dom.line.style.transform="translateX(".concat(f,"px)"),this.dom.dot.style.transform="translateX(".concat(m,"px)")}else{var v=this.options.rtl?n*-1:n,y=this.options.rtl?(n-l/2)*-1:n-l/2;this.dom.line.style.transform="translateX(".concat(v,"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=C_(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=_e(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=C_(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=_e(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(_e(l).call(l,function(f){return Math.min(f.start,f.end||f.start)}))),this.data.max=Math.max.apply(Math,Pe(_e(l).call(l,function(f){return Math.max(f.start,f.end||f.start)})));var d=_e(s=this.data.uiItems).call(s,function(f){return f.center}),c=qs(d).call(d,function(f,m){return f+m},0)/this.data.uiItems.length;Ic(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 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=C(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}(Dn);P_.prototype.baseClassName="vis-item vis-range vis-cluster";function VH(e,r){var t=typeof Sr<"u"&&Xr(e)||e["@@iterator"];if(!t){if(re(e)||(t=RH(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(c){throw c},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 c=t.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function RH(e,r){var t;if(e){if(typeof e=="string")return I_(e,r);var a=ot(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ur(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return I_(e,r)}}function I_(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 LH="__ungrouped__",FH={UNGROUPED:LH},YH=function(){function e(r){de(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 P_(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,c=2,f=0;if(a>0){if(a>=1)return[];d=Math.abs(Math.round(Math.log(100/a)/Math.log(c))),f=Math.abs(Math.pow(c,d))}if(this.dataChanged){var m=d!=this.cacheLevel,v=this.applyOnChangedLevel?m:!0;v&&(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[FH.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=fd(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 c;We(c=t[d]).call(c,function(f,m){return f.center-m.center})}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,a,n,s){var o,l=_e(o=n||[]).call(o,function(D){var T;return{cluster:D,itemsIds:new ti(_e(T=D.data.uiItems).call(T,function(P){return P.id}))}}),d;if(l.length){var c=VH(l),f;try{var m=function(){var T=f.value;if(T.itemsIds.size===t.length&&PH(t).call(t,function(P){return T.itemsIds.has(P.id)}))return d=T.cluster,1};for(c.s();!(f=c.n()).done&&!m(););}catch(D){c.e(D)}finally{c.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 v=s.titleTemplate||"",y={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},b=v.replace(/{count}/,t.length),E='<div title="'+b+'">'+t.length+"</div>",w=$r({},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}(),jH=`
|
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
|
+
}`;bt(jH);var BH=`
|
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 $q(e,t){var r;if(e){if(typeof e=="string")return IE(e,t);var a=vt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return IE(e,t)}}function IE(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 Dq(e){var t=Nq();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function Nq(){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 Na="__ungrouped__",Ln="__background__",Jl=function(e){$t(r,e);var t=Dq(r);function r(a,n){var s;he(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 m=c.order;c.order=d.order,d.order=m},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:Kl.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=De(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 m,v=o.groupsData.getDataSet();G(m=v.get()).call(m,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=v.get(w);k&&(k.nestedInGroup=g.id,g.showNested==!1&&(k.visible=!1),S=Ie(S).call(S,k))}),v.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 fe(r,[{key:"_create",value:function(){var n=this,s,o,l,d,c,f,m,v,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 $E(Ln,null,this);j.show(),this.groups[Ln]=j,this.hammer=new Nt(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(O){O.isFirst&&n._onTouch(O)}),this.hammer.on("panstart",I(s=this._onDragStart).call(s,this)),this.hammer.on("panmove",I(o=this._onDrag).call(o,this)),this.hammer.on("panend",I(l=this._onDragEnd).call(l,this)),this.hammer.get("pan").set({threshold:5,direction:Nt.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",I(d=this._onSelectItem).call(d,this)),this.hammer.on("press",I(c=this._onMultiSelectItem).call(c,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",I(f=this._onAddItem).call(f,this)),this.options.rtl?this.groupHammer=new Nt(this.body.dom.rightContainer):this.groupHammer=new Nt(this.body.dom.leftContainer),this.groupHammer.on("tap",I(m=this._onGroupClick).call(m,this)),this.groupHammer.on("panstart",I(v=this._onGroupDragStart).call(v,this)),this.groupHammer.on("panmove",I(g=this._onGroupDrag).call(g,this)),this.groupHammer.on("panend",I(b=this._onGroupDragEnd).call(b,this)),this.groupHammer.get("pan").set({threshold:5,direction:Nt.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",I(S=this._onMouseOver).call(S,this)),this.body.dom.centerContainer.addEventListener("mouseout",I(w=this._onMouseOut).call(w,this)),this.body.dom.centerContainer.addEventListener("mousemove",I(k=this._onMouseMove).call(k,this)),this.body.dom.centerContainer.addEventListener("contextmenu",I(T=this._onDragEnd).call(T,this)),this.body.dom.centerContainer.addEventListener("mousewheel",I(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(m){var v=n[m];if(v){if(typeof v!="function"){var g;throw new Error(Ie(g="option ".concat(m," must be a function ")).call(g,m,"(item, callback)"))}s.options[m]=v}};G(l=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(l,c),n.cluster?(Jr(this.options,{cluster:n.cluster}),this.clusterGenerator||(this.clusterGenerator=new kq(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!==Ln&&(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=gt(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 $e(n).call(n,S)===-1}),l=Ei(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=Ve(n);var m=Ei(n),v;try{for(m.s();!(v=m.n()).done;){var g=v.value,b=this.getItemById(g);b&&b.select()}}catch(S){m.e(S)}finally{m.f()}}},{key:"getSelection",value:function(){var n;return Ie(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:[],m=Ei(f),v;try{for(m.s();!(v=m.n()).done;){var g=v.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){m.e(b)}finally{m.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:[],m=Ei(f),v;try{for(m.s();!(v=m.n()).done;){var g=v.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){m.e(b)}finally{m.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]||_K(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 m=s.end-s.start,v=m!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,g=s.start!=this.lastRangeStart,b=l.stack!=this.lastStack,S=l.stackSubgroups!=this.lastStackSubgroups,w=v||g||b||S;this.lastVisibleInterval=m,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[Ln].redraw(s,D,w);var A={},R=0;G(x).call(x,this.groups,function(H,z){if(z!==Ln){var oe=H==k?T:D,_e=!0;A[z]=H.redraw(s,oe,w,_e),R=A[z].length}});var C=R>0;if(C){for(var j={},O=function(z){G(x).call(x,A,function(oe,_e){j[_e]=oe[z]()})},M=0;M<R;M++)O(M);G(x).call(x,this.groups,function(H,z){if(z!==Ln){var oe=j[z];c=oe||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[Na];return o||null}},{key:"_updateUngrouped",value:function(){var n=this.groups[Na],s,o;if(this.groupsData){if(n){n.dispose(),delete this.groups[Na];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 kf(c,f,this),this.groups[Na]=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(an(n))this.itemsData=ka(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,m){s.groupsData.off(m,f)}),o=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(o)),!n)this.groupsData=null;else if(an(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 m;G(m=f.nestedGroups).call(m,function(v){var g=d.get(v);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,m){s.groupsData.on(m,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?Ln:this.groupsData?n.group:Na}},{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,m=r.types[f],v;if(c&&(!m||!(c instanceof m)?(v=c.selected,o._removeItem(c),c=null):o._updateItem(c,d)),!c&&d)if(m)c=new m(d,o.conversion,o.options),c.id=l,o._addItem(c),v&&(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==Na||o==Ln)throw new Error("Illegal group id. ".concat(o," is a reserved id."));var c=ws(s.options);x.extend(c,{height:null}),d=new kf(o,l,s),s.groups[o]=d;for(var f in s.items)if(s.items.hasOwnProperty(f)){var m=s.items[f];m.data.group==o&&d.add(m)}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(m){f.push(m);var v=d.groupsData.get(m);if(v.nestedGroups){var g,b=ke(g=d.groupsData.get({filter:function(w){return w.nestedInGroup==m},order:d.options.groupOrder})).call(g,function(S){return S.id});f=Ie(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=$e(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 bi&&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 m=this._getGroupIndex(o.data.group),v=this.options.itemsAlwaysDraggable.item&&!o.selected?[o.id]:this.getSelection();this.touchParams.itemProps=ke(v).call(v,function(g){var b=l.items[g],S=l._getGroupIndex(b.data.group);return{item:b,initialX:n.center.x,groupOffset:m-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(),m=s?s(d,c,f):d,v=m,g={type:"range",start:m,end:v,content:"new item"},b=vi();g[this.itemsData.idProp]=b;var S=this.groupFromTarget(n);S&&(g.group=S.groupId);var w=new bi(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,m=this.body.dom.root.offsetLeft,v=this.options.rtl?m+this.body.domProps.right.width:m+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-v),L=c.body.util.toTime(D.initialX-v),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 oe=k-D.groupOffset;oe=Math.max(0,oe),oe=Math.min(c.groupIds.length-1,oe),M.group=c.groupIds[oe]}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(v){o._removeItem(d.item),v&&o.itemsData.add(v),o.body.emitter.emit("_change")});else{var m=s._cloneItemData(d.item.data);o.options.onMove(m,function(v){v?(v[s.itemsData.idProp]=c,s.itemsData.update(v)):(d.item.setData(d.data),o.body.emitter.emit("_change"))})}})}}},{key:"_onGroupClick",value:function(n){var s=this,o=this.groupFromTarget(n);gt(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 m=0;m<f.length;m++){var v=o.get(f[m]);v.nestedGroups&&(c=Ie(c).call(c,v.nestedGroups))}c.length>0&&(d=Ie(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,Ve(o.get(w.nestedGroups)))}g=ke(b).call(b,function(T){return T.visible==null&&(T.visible=!0),T.visible=!!l.showNested,T})}else{var k;g=ke(k=o.get(d)).call(k,function(T){return T.visible==null&&(T.visible=!0),T.visible=!!l.showNested,T})}o.update(Ie(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 m=o.height;if(c.top+m-f>d)return}}if(o&&o!=this.groupTouchParams.group){var v=s.get(o.groupId),g=s.get(this.groupTouchParams.group.groupId);g&&v&&(this.options.groupOrderSwap(g,v,s),s.update(g),s.update(v));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=$e(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 m=s.groupTouchParams.originalOrder,v=Math.min(m.length,f.length),g=0;g<v;){for(;g<v&&f[g]==m[g];)g++;if(g>=v)break;var b=$e(f).call(f,m[g]),S=l.get(f[g]),w=l.get(m[g]);s.options.groupOrderSwap(S,w,l),l.update(S),l.update(w);var k=f[g];f[g]=m[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 nq(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(),m=this.body.util.getStep(),v,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,m):c,g.type=g.type||"box",g[this.itemsData.idProp]=g.id||vi(),g.type=="range"&&!g.end&&(v=this.body.util.toTime(d+this.props.width/5),g.end=o?o(v,f,m):v)):(g={start:o?o(c,f,m):c,content:"new item"},g[this.itemsData.idProp]=vi(),this.options.type==="range"&&(v=this.body.util.toTime(d+this.props.width/5),g.end=o?o(v,f,m):v));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 m=r._getItemRange(this.itemsData.get(l));if(!this.options.multiselectPerGroup||f==c){l=[];for(var v in this.items)if(this.items.hasOwnProperty(v)){var g=this.items[v],b=g.data.start,S=g.data.end!==void 0?g.data.end:b;b>=m.min&&S<=m.max&&(!this.options.multiselectPerGroup||f==this.itemsData.get(g.id).group)&&!(g instanceof wi)&&l.push(g.id)}}}else{var w=$e(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,m=f.getBoundingClientRect();if(s>=m.top&&s<m.top+f.offsetHeight)return c;if(this.options.orientation.item==="top"){if(l===this.groupIds.length-1&&s>m.top)return c}else if(l===0&&s<m.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=Ei(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=Ei(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 In(ke(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=Ei(l),f;try{for(c.s();!(f=c.n()).done;){var m,v=f.value,g=$e(m=this.selection).call(m,v.id);if(g!==-1){var b;v.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}(Rn);Jl.types={background:wi,box:KK,range:bi,point:QK},Jl.prototype._onAdd=Jl.prototype._onUpdate;var qs=!1,PE,ed="background: #FFeeee; color: #dd0000",ME=function(){function e(){he(this,e)}return fe(e,null,[{key:"validate",value:function(r,a,n){qs=!1,PE=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(r,s,[]),qs}},{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(v){console.log("%c"+v+e.printLocation(l,r),ed)},c=e.getType(a[r]),f=o[c];f!==void 0?e.getType(f)==="array"&&$e(f).call(f,a[r])===-1?(d('Invalid option detected in "'+r+'". Allowed values are:'+e.print(f)+' not "'+a[r]+'". '),qs=!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(nt(o))+". Received ["+c+'] "'+a[r]+'"'),qs=!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,PE,[],!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
|
+
`;bt(BH);function Ri(e,r){var t=typeof Sr<"u"&&Xr(e)||e["@@iterator"];if(!t){if(re(e)||(t=HH(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(c){throw c},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 c=t.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function HH(e,r){var t;if(e){if(typeof e=="string")return M_(e,r);var a=ot(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ur(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return M_(e,r)}}function M_(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 WH(e){var r=GH();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function GH(){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 Tn="__ungrouped__",ai="__background__",wo=function(e){gt(t,e);var r=WH(t);function t(a,n){var s;de(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,c,f){var m=c.order;c.order=d.order,d.order=m},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:vo.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=xe(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 m,v=o.groupsData.getDataSet();j(m=v.get()).call(m,function(y){if(y.nestedGroups){var b;y.showNested!=!1&&(y.showNested=!0);var E=[];j(b=y.nestedGroups).call(b,function(w){var S=v.get(w);S&&(S.nestedInGroup=y.id,y.showNested==!1&&(S.visible=!1),E=Te(E).call(E,S))}),v.update(E,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 ce(t,[{key:"_create",value:function(){var n=this,s,o,l,d,c,f,m,v,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 T_(ai,null,this);I.show(),this.groups[ai]=I,this.hammer=new _t(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(M){M.isFirst&&n._onTouch(M)}),this.hammer.on("panstart",C(s=this._onDragStart).call(s,this)),this.hammer.on("panmove",C(o=this._onDrag).call(o,this)),this.hammer.on("panend",C(l=this._onDragEnd).call(l,this)),this.hammer.get("pan").set({threshold:5,direction:_t.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",C(d=this._onSelectItem).call(d,this)),this.hammer.on("press",C(c=this._onMultiSelectItem).call(c,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",C(f=this._onAddItem).call(f,this)),this.options.rtl?this.groupHammer=new _t(this.body.dom.rightContainer):this.groupHammer=new _t(this.body.dom.leftContainer),this.groupHammer.on("tap",C(m=this._onGroupClick).call(m,this)),this.groupHammer.on("panstart",C(v=this._onGroupDragStart).call(v,this)),this.groupHammer.on("panmove",C(y=this._onGroupDrag).call(y,this)),this.groupHammer.on("panend",C(b=this._onGroupDragEnd).call(b,this)),this.groupHammer.get("pan").set({threshold:5,direction:_t.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",C(E=this._onMouseOver).call(E,this)),this.body.dom.centerContainer.addEventListener("mouseout",C(w=this._onMouseOut).call(w,this)),this.body.dom.centerContainer.addEventListener("mousemove",C(S=this._onMouseMove).call(S,this)),this.body.dom.centerContainer.addEventListener("contextmenu",C(D=this._onDragEnd).call(D,this)),this.body.dom.centerContainer.addEventListener("mousewheel",C(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)))),j(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 c=function(m){var v=n[m];if(v){if(typeof v!="function"){var y;throw new Error(Te(y="option ".concat(m," must be a function ")).call(y,m,"(item, callback)"))}s.options[m]=v}};j(l=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(l,c),n.cluster?($r(this.options,{cluster:n.cluster}),this.clusterGenerator||(this.clusterGenerator=new YH(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&&j(x).call(x,this.items,function(s){s.dirty=!0,s.displayed&&s.redraw()}),n.restackGroups&&j(x).call(x,this.groups,function(s,o){o!==ai&&(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=lt(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 ke(n).call(n,E)===-1}),l=Ri(o),d;try{for(l.s();!(d=l.n()).done;){var c=d.value,f=this.getItemById(c);f&&f.unselect()}}catch(E){l.e(E)}finally{l.f()}this.selection=Pe(n);var m=Ri(n),v;try{for(m.s();!(v=m.n()).done;){var y=v.value,b=this.getItemById(y);b&&b.select()}}catch(E){m.e(E)}finally{m.f()}}},{key:"getSelection",value:function(){var n;return Te(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:[],m=Ri(f),v;try{for(m.s();!(v=m.n()).done;){var y=v.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){m.e(b)}finally{m.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:[],m=Ri(f),v;try{for(m.s();!(v=m.n()).done;){var y=v.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){m.e(b)}finally{m.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]||AB(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){mt(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 m=s.end-s.start,v=m!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,y=s.start!=this.lastRangeStart,b=l.stack!=this.lastStack,E=l.stackSubgroups!=this.lastStackSubgroups,w=v||y||b||E;this.lastVisibleInterval=m,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[ai].redraw(s,T,w);var A={},V=0;j(x).call(x,this.groups,function(W,q){if(q!==ai){var ue=W==S?D:T,Re=!0;A[q]=W.redraw(s,ue,w,Re),V=A[q].length}});var N=V>0;if(N){for(var I={},M=function(q){j(x).call(x,A,function(ue,Re){I[Re]=ue[q]()})},H=0;H<V;H++)M(H);j(x).call(x,this.groups,function(W,q){if(q!==ai){var ue=I[q];c=ue||c,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,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[Tn];return o||null}},{key:"_updateUngrouped",value:function(){var n=this.groups[Tn],s,o;if(this.groupsData){if(n){n.dispose(),delete this.groups[Tn];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 au(c,f,this),this.groups[Tn]=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(Or(n))this.itemsData=xn(n);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(l&&(j(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;j(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&&(j(x).call(x,this.groupListeners,function(f,m){s.groupsData.off(m,f)}),o=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(o)),!n)this.groupsData=null;else if(Or(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();j(l=d.get()).call(l,function(f){if(f.nestedGroups){var m;j(m=f.nestedGroups).call(m,function(v){var y=d.get(v);y.nestedInGroup=f.id,f.showNested==!1&&(y.visible=!1),d.update(y)})}});var c=this.id;j(x).call(x,this.groupListeners,function(f,m){s.groupsData.on(m,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?ai:this.groupsData?n.group:Tn}},{key:"_onUpdate",value:function(n){var s=this,o=this;j(n).call(n,function(l){var d=o.itemsData.get(l),c=o.items[l],f=d?o._getType(d):null,m=t.types[f],v;if(c&&(!m||!(c instanceof m)?(v=c.selected,o._removeItem(c),c=null):o._updateItem(c,d)),!c&&d)if(m)c=new m(d,o.conversion,o.options),c.id=l,o._addItem(c),v&&(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;j(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(){j(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;j(n).call(n,function(o){var l=s.groupsData.get(o),d=s.groups[o];if(d)d.setData(l);else{if(o==Tn||o==ai)throw new Error("Illegal group id. ".concat(o," is a reserved id."));var c=la(s.options);x.extend(c,{height:null}),d=new au(o,l,s),s.groups[o]=d;for(var f in s.items)if(s.items.hasOwnProperty(f)){var m=s.items[f];m.data.group==o&&d.add(m)}d.order(),d.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(n){var s=this;j(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;j(n).call(n,function(l){o[l].hide()}),j(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 j(c).call(c,function(m){f.push(m);var v=d.groupsData.get(m);if(v.nestedGroups){var y,b=_e(y=d.groupsData.get({filter:function(w){return w.nestedInGroup==m},order:d.options.groupOrder})).call(y,function(E){return E.id});f=Te(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=ke(s=this.selection).call(s,n.id);l!=-1&&mt(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 Ai&&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 m=this._getGroupIndex(o.data.group),v=this.options.itemsAlwaysDraggable.item&&!o.selected?[o.id]:this.getSelection();this.touchParams.itemProps=_e(v).call(v,function(y){var b=l.items[y],E=l._getGroupIndex(b.data.group);return{item:b,initialX:n.center.x,groupOffset:m-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),c=this.body.util.getScale(),f=this.body.util.getStep(),m=s?s(d,c,f):d,v=m,y={type:"range",start:m,end:v,content:"new item"},b=Oi();y[this.itemsData.idProp]=b;var E=this.groupFromTarget(n);E&&(y.group=E.groupId);var w=new Ai(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 c=this,f=this.options.snap||null,m=this.body.dom.root.offsetLeft,v=this.options.rtl?m+this.body.domProps.right.width:m+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=c.groupFromTarget(n);D&&(S=this._getGroupIndex(D.groupId))}j(d=this.touchParams.itemProps).call(d,function(T){var P=c.body.util.toTime(n.center.x-v),F=c.body.util.toTime(T.initialX-v),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&&!c.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 ue=S-T.groupOffset;ue=Math.max(0,ue),ue=Math.min(c.groupIds.length-1,ue),H.group=c.groupIds[ue]}H=s._cloneItemData(H),c.options.onMoving(H,function(Re){Re&&T.item.setData(s._cloneItemData(Re,"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,j(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(v){o._removeItem(d.item),v&&o.itemsData.add(v),o.body.emitter.emit("_change")});else{var m=s._cloneItemData(d.item.data);o.options.onMove(m,function(v){v?(v[s.itemsData.idProp]=c,s.itemsData.update(v)):(d.item.setData(d.data),o.body.emitter.emit("_change"))})}})}}},{key:"_onGroupClick",value:function(n){var s=this,o=this.groupFromTarget(n);lt(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 m=0;m<f.length;m++){var v=o.get(f[m]);v.nestedGroups&&(c=Te(c).call(c,v.nestedGroups))}c.length>0&&(d=Te(d).call(d,c))}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=_e(b).call(b,function(D){return D.visible==null&&(D.visible=!0),D.visible=!!l.showNested,D})}else{var S;y=_e(S=o.get(d)).call(S,function(D){return D.visible==null&&(D.visible=!0),D.visible=!!l.showNested,D})}o.update(Te(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,c=o.dom.foreground.getBoundingClientRect(),f=this.groupTouchParams.group.height;if(l){if(c.top+f<d)return}else{var m=o.height;if(c.top+m-f>d)return}}if(o&&o!=this.groupTouchParams.group){var v=s.get(o.groupId),y=s.get(this.groupTouchParams.group.groupId);y&&v&&(this.options.groupOrderSwap(y,v,s),s.update(y),s.update(v));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=ke(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(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 m=s.groupTouchParams.originalOrder,v=Math.min(m.length,f.length),y=0;y<v;){for(;y<v&&f[y]==m[y];)y++;if(y>=v)break;var b=ke(f).call(f,m[y]),E=l.get(f[y]),w=l.get(m[y]);s.options.groupOrderSwap(E,w,l),l.update(E),l.update(w);var S=f[y];f[y]=m[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),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 _H(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(),m=this.body.util.getStep(),v,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(c,f,m):c,y.type=y.type||"box",y[this.itemsData.idProp]=y.id||Oi(),y.type=="range"&&!y.end&&(v=this.body.util.toTime(d+this.props.width/5),y.end=o?o(v,f,m):v)):(y={start:o?o(c,f,m):c,content:"new item"},y[this.itemsData.idProp]=Oi(),this.options.type==="range"&&(v=this.body.util.toTime(d+this.props.width/5),y.end=o?o(v,f,m):v));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 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 m=t._getItemRange(this.itemsData.get(l));if(!this.options.multiselectPerGroup||f==c){l=[];for(var v in this.items)if(this.items.hasOwnProperty(v)){var y=this.items[v],b=y.data.start,E=y.data.end!==void 0?y.data.end:b;b>=m.min&&E<=m.max&&(!this.options.multiselectPerGroup||f==this.itemsData.get(y.id).group)&&!(y instanceof Vi)&&l.push(y.id)}}}else{var w=ke(l).call(l,o.id);w==-1?l.push(o.id):mt(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],c=this.groups[d],f=c.dom.foreground,m=f.getBoundingClientRect();if(s>=m.top&&s<m.top+f.offsetHeight)return c;if(this.options.orientation.item==="top"){if(l===this.groupIds.length-1&&s>m.top)return c}else if(l===0&&s<m.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=Ri(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=Ri(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 ti(_e(n).call(n,function(w){return w.id})),l=J(s=this.clusters).call(s,function(w){return!o.has(w.id)}),d=!1,c=Ri(l),f;try{for(c.s();!(f=c.n()).done;){var m,v=f.value,y=ke(m=this.selection).call(m,v.id);if(y!==-1){var b;v.unselect(),mt(b=this.selection).call(b,y,1),d=!0}}}catch(w){c.e(w)}finally{c.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 j(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}(ni);wo.types={background:Vi,box:cH,range:Ai,point:fH},wo.prototype._onAdd=wo.prototype._onUpdate;var Va=!1,A_,ko="background: #FFeeee; color: #dd0000",V_=function(){function e(){de(this,e)}return ce(e,null,[{key:"validate",value:function(t,a,n){Va=!1,A_=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(t,s,[]),Va}},{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(v){console.log("%c"+v+e.printLocation(l,t),ko)},c=e.getType(a[t]),f=o[c];f!==void 0?e.getType(f)==="array"&&ke(f).call(f,a[t])===-1?(d('Invalid option detected in "'+t+'". Allowed values are:'+e.print(f)+' not "'+a[t]+'". '),Va=!0):c==="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 ["+c+'] "'+a[t]+'"'),Va=!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,A_,[],!0),l=8,d=4,c;s.indexMatch!==void 0?c=" 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?c=" in "+e.printLocation(s.path,
|
881
|
+
`:o.distance<=d&&s.distance>o.distance?c=" in "+e.printLocation(s.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""):s.distance<=l?c='. Did you mean "'+s.closestMatch+'"?'+e.printLocation(s.path,t):c=". Did you mean one of these: "+e.print(Ze(a))+e.printLocation(n,t),console.log('%cUnknown option detected: "'+t+'"'+c,ko),Va=!0}},{key:"findInOptions",value:function(t,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],c=t.toLowerCase(),f=void 0;for(var m in a){var v=void 0;if(a[m].__type__!==void 0&&s===!0){var y=e.findInOptions(t,a[m],x.copyAndExtendArray(n,m));o>y.distance&&(l=y.closestMatch,d=y.path,o=y.distance,f=y.indexMatch)}else{var b;ke(b=m.toLowerCase()).call(b,c)!==-1&&(f=m),v=e.levenshteinDistance(t,m),o>v&&(l=m,d=x.copyArray(n),o=v)}}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 c=0;c<
|
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 c=0;c<t.length+1;c++){for(var f=0;f<t.length-c;f++)s+=" ";s+=`}
|
892
888
|
`}return s+`
|
893
889
|
|
894
|
-
`}},{key:"print",value:function(r){return Yt(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",se="boolean",Pe="number",RE="array",Ca="date",qe="object",Cq="dom",Oa="moment",LE="any",Oq={configure:{enabled:{boolean:se},filter:{boolean:se,function:"function"},container:{dom:Cq},__type__:{object:qe,boolean:se,function:"function"}},align:{string:le},alignCurrentTime:{string:le,undefined:"undefined"},rtl:{boolean:se,undefined:"undefined"},rollingMode:{follow:{boolean:se},offset:{number:Pe,undefined:"undefined"},__type__:{object:qe}},onTimeout:{timeoutMs:{number:Pe},callback:{function:"function"},__type__:{object:qe}},verticalScroll:{boolean:se,undefined:"undefined"},horizontalScroll:{boolean:se,undefined:"undefined"},autoResize:{boolean:se},throttleRedraw:{number:Pe},clickToUse:{boolean:se},dataAttributes:{string:le,array:RE},editable:{add:{boolean:se,undefined:"undefined"},remove:{boolean:se,undefined:"undefined"},updateGroup:{boolean:se,undefined:"undefined"},updateTime:{boolean:se,undefined:"undefined"},overrideItems:{boolean:se,undefined:"undefined"},__type__:{boolean:se,object:qe}},end:{number:Pe,date:Ca,string:le,moment:Oa},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:se,undefined:"undefined"},remove:{boolean:se,undefined:"undefined"},order:{boolean:se,undefined:"undefined"},__type__:{boolean:se,object:qe}},groupOrderSwap:{function:"function"},height:{string:le,number:Pe},hiddenDates:{start:{date:Ca,number:Pe,string:le,moment:Oa},end:{date:Ca,number:Pe,string:le,moment:Oa},repeat:{string:le},__type__:{object:qe,array:RE}},itemsAlwaysDraggable:{item:{boolean:se,undefined:"undefined"},range:{boolean:se,undefined:"undefined"},__type__:{boolean:se,object:qe}},limitSize:{boolean:se},locale:{string:le},locales:{__any__:{any:LE},__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:Ca,number:Pe,string:le,moment:Oa},maxHeight:{number:Pe,string:le},maxMinorChars:{number:Pe},min:{date:Ca,number:Pe,string:le,moment:Oa},minHeight:{number:Pe,string:le},moveable:{boolean:se},multiselect:{boolean:se},multiselectPerGroup:{boolean:se},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:se},sequentialSelection:{boolean:se},showCurrentTime:{boolean:se},showMajorLabels:{boolean:se},showMinorLabels:{boolean:se},showWeekScale:{boolean:se},stack:{boolean:se},stackSubgroups:{boolean:se},cluster:{maxItems:{number:Pe,undefined:"undefined"},titleTemplate:{string:le,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:se,undefined:"undefined"},fitOnDoubleClick:{boolean:se,undefined:"undefined"},__type__:{boolean:se,object:qe}},snap:{function:"function",null:"null"},start:{date:Ca,number:Pe,string:le,moment:Oa},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:le,function:"function"},showTooltips:{boolean:se},tooltip:{followMouse:{boolean:se},overflowMethod:{string:["cap","flip","none"]},delay:{number:Pe},template:{function:"function"},__type__:{object:qe}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:se,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:se},zoomable:{boolean:se},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Pe},zoomMax:{number:Pe},zoomMin:{number:Pe},xss:{disabled:{boolean:se},filterOptions:{__any__:{any:LE},__type__:{object:qe}},__type__:{object:qe}},__type__:{object:qe}},Aq={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}}},Iq={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"},Pq=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;he(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 fe(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 Iq[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: "+Yt(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",gt(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),O_(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=I(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=I(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=I(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=I(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 Nt(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),lE(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,m=1/this.r,v;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),v=x.HSVToRGB(l*f,d*m,1),r.fillStyle="rgb("+v.r+","+v.g+","+v.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),m=.98*Math.min(Math.sqrt(d*d+c*c),l),v=Math.cos(f)*m+o,g=Math.sin(f)*m+l;this.colorPickerSelector.style.top=v-.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=m/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}(),Mq=`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",Ne="number",R_="array",Nn="date",Ge="object",zH="dom",Cn="moment",L_="any",UH={configure:{enabled:{boolean:ne},filter:{boolean:ne,function:"function"},container:{dom:zH},__type__:{object:Ge,boolean:ne,function:"function"}},align:{string:ae},alignCurrentTime:{string:ae,undefined:"undefined"},rtl:{boolean:ne,undefined:"undefined"},rollingMode:{follow:{boolean:ne},offset:{number:Ne,undefined:"undefined"},__type__:{object:Ge}},onTimeout:{timeoutMs:{number:Ne},callback:{function:"function"},__type__:{object:Ge}},verticalScroll:{boolean:ne,undefined:"undefined"},horizontalScroll:{boolean:ne,undefined:"undefined"},autoResize:{boolean:ne},throttleRedraw:{number:Ne},clickToUse:{boolean:ne},dataAttributes:{string:ae,array:R_},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:Ge}},end:{number:Ne,date:Nn,string:ae,moment:Cn},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:Ge,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:Ge,function:"function"}},__type__:{object:Ge}},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:Ge}},groupOrderSwap:{function:"function"},height:{string:ae,number:Ne},hiddenDates:{start:{date:Nn,number:Ne,string:ae,moment:Cn},end:{date:Nn,number:Ne,string:ae,moment:Cn},repeat:{string:ae},__type__:{object:Ge,array:R_}},itemsAlwaysDraggable:{item:{boolean:ne,undefined:"undefined"},range:{boolean:ne,undefined:"undefined"},__type__:{boolean:ne,object:Ge}},limitSize:{boolean:ne},locale:{string:ae},locales:{__any__:{any:L_},__type__:{object:Ge}},longSelectPressTime:{number:Ne},margin:{axis:{number:Ne},item:{horizontal:{number:Ne,undefined:"undefined"},vertical:{number:Ne,undefined:"undefined"},__type__:{object:Ge,number:Ne}},__type__:{object:Ge,number:Ne}},max:{date:Nn,number:Ne,string:ae,moment:Cn},maxHeight:{number:Ne,string:ae},maxMinorChars:{number:Ne},min:{date:Nn,number:Ne,string:ae,moment:Cn},minHeight:{number:Ne,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:Ge}},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:Ne,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:Ge}},snap:{function:"function",null:"null"},start:{date:Nn,number:Ne,string:ae,moment:Cn},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:Ne},template:{function:"function"},__type__:{object:Ge}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:ne,object:Ge}},timeAxis:{scale:{string:ae,undefined:"undefined"},step:{number:Ne,undefined:"undefined"},__type__:{object:Ge}},type:{string:ae},width:{string:ae,number:Ne},preferZoom:{boolean:ne},zoomable:{boolean:ne},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Ne},zoomMax:{number:Ne},zoomMin:{number:Ne},xss:{disabled:{boolean:ne},filterOptions:{__any__:{any:L_},__type__:{object:Ge}},__type__:{object:Ge}},__type__:{object:Ge}},XH={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}}},qH={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"},KH=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;de(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 qH[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 c=t.a!==void 0?t.a:"1.0";n={r:t.r,g:t.g,b:t.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: "+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",lt(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),Pm(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=C(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=C(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=C(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=C(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 _t(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),d_(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 c=2*Math.PI/360,f=1/360,m=1/this.r,v;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),v=x.HSVToRGB(l*f,d*m,1),t.fillStyle="rgb("+v.r+","+v.g+","+v.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,c=s-o,f=Math.atan2(d,c),m=.98*Math.min(Math.sqrt(d*d+c*c),l),v=Math.cos(f)*m+o,y=Math.sin(f)*m+l;this.colorPickerSelector.style.top=v-.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=m/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}(),ZH=`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
|
-
}`;Ct(Mq);var VE=function(){function e(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;he(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 Pq(n),this.wrapper=void 0}return fe(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||$e(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&&$e(r).call(r,a)!==-1&&(o=$e(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="",m=0;if(a!==void 0){var v=1.2;a<0&&a*v<o?(c.min=Math.ceil(a*v),m=c.min,f="range increased"):a/v<o&&(c.min=Math.ceil(a/v),m=c.min,f="range increased"),a*v>l&&l!==1&&(c.max=Math.ceil(a*v),m=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]!==m&&(this.popupHistory[w]=m,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=gt(function(){r.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=gt(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 m=this._getValue(f);if(ae(c))this._handleArray(c,m,f);else if(typeof c=="string")this._makeTextInput(c,m,f);else if(typeof c=="boolean")this._makeCheckbox(c,m,f);else if(c instanceof Object){var v=!0;if($e(a).call(a,"physics")!==-1&&this.moduleOptions.physics.solver!==d&&(v=!1),v===!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 = "+Yt(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 Rq(e){var t=Lq();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function Lq(){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 Vq=function(e){$t(r,e);var t=Rq(r);function r(a,n,s,o){var l,d,c,f,m,v,g,b;if(he(this,r),b=t.call(this),b.initTime=new Date,b.itemsDone=!1,!(De(b)instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!(ae(s)||an(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=De(b);if(b.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Dt},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=I(N=b.options.loadingScreenTemplate).call(N,De(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:I(l=b.on).call(l,De(b)),off:I(d=b.off).call(d,De(b)),emit:I(c=b.emit).call(c,De(b))},hiddenDates:[],util:{getScale:function(){return w.timeAxis.step.scale},getStep:function(){return w.timeAxis.step.step},toScreen:I(f=w._toScreen).call(f,w),toGlobalScreen:I(m=w._toGlobalScreen).call(m,w),toTime:I(v=w._toTime).call(v,w),toGlobalTime:I(g=w._toGlobalTime).call(g,w)}},b.range=new sE(b.body,b.options),b.components.push(b.range),b.body.range=b.range,b.timeAxis=new ql(b.body,b.options),b.timeAxis2=null,b.components.push(b.timeAxis),b.currentTime=new yE(b.body,b.options),b.components.push(b.currentTime),b.itemSet=new Jl(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&>(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 fe(r,[{key:"_createConfigurator",value:function(){return new VE(this,this.dom.container,Aq)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(n){var s=ME.validate(n,Oq);if(s===!0&&console.log("%cErrors have been found in the supplied options object.",ed),$a.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?an(n)?s=ka(n):s=ka(new gi(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 gi(n)),s=new MU(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,m=this.itemSet.items[o[0]],v=this._getScrollTop()*-1,g=null,b=function(A,R,C){var j=FE(f,m);if(j!==!1&&(g||(g=j),!(g.itemTop==j.itemTop&&!g.shouldScroll))){g.itemTop!=j.itemTop&&j.shouldScroll&&(g=j,v=f._getScrollTop()*-1);var O=v,M=g.scrollOffset,H=C?M:O+(M-O)*A;f._setScrollTop(-H),R||f._redraw()}},S=function(){var A=FE(f,m);A.shouldScroll&&A.itemTop!=g.itemTop&&(f._setScrollTop(-A.scrollOffset),f._redraw())},w=function(){S(),gt(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 m=f/this.props.center.width,v={},g=0;G(x).call(x,this.itemSet.items,function(N,L){if(N.groupShowing){var A=!0;v[L]=N.redraw(A),g=v[L].length}});var b=g>0;if(b)for(var S=function(L){G(x).call(x,v,function(A){A[L]()})},w=0;w<g;w++)S(w);if(G(x).call(x,this.itemSet.items,function(N){var L=Tf(N),A=$f(N),R,C;n.options.rtl?(R=L-(N.getWidthRight()+10)*m,C=A+(N.getWidthLeft()+10)*m):(R=L-(N.getWidthLeft()+10)*m,C=A+(N.getWidthRight()+10)*m),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=Tf(d)-T*f/D,l=$f(c)+k*f/D):(o=Tf(d)-k*f/D,l=$f(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),m=this.itemSet.groupFromTarget(n),v=bf.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":v!=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:m?m.groupId:null,customTime:v?v.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(){$a.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}($a);function Tf(e){return x.convert(e.data.start,"Date").valueOf()}function $f(e){var t=e.data.end!=null?e.data.end:e.data.start;return x.convert(t,"Date").valueOf()}function FE(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(),m=t.height;return f<c?s+r<=s+d()+m&&(s+=d()-e.itemSet.options.margin.item.vertical):f+m>c+r?s+=d()+m-r+e.itemSet.options.margin.item.vertical:o=!1,s=Math.min(s,a-r),{shouldScroll:o,scrollOffset:s,itemTop:f}}var Fq=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(he(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(v){var g=v-v%(c.magnitudefactor*c.minorSteps[c.minorStepIdx]);return v%(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 fe(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,m=!1,v=0;!m&&v++<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(),m=!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(),m=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&g<s-n){l(),m=!1;continue}m=!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}(),Yq=`
|
1177
|
+
}`;bt(ZH);var F_=function(){function e(r,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;de(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 KH(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||ke(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 j(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&&ke(t).call(t,a)!==-1&&(o=ke(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 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(t,a,n){var s=t[0],o=t[1],l=t[2],d=t[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="",m=0;if(a!==void 0){var v=1.2;a<0&&a*v<o?(c.min=Math.ceil(a*v),m=c.min,f="range increased"):a/v<o&&(c.min=Math.ceil(a/v),m=c.min,f="range increased"),a*v>l&&l!==1&&(c.max=Math.ceil(a*v),m=c.max,f="range increased"),c.value=a}else c.value=s;var y=document.createElement("input");y.className="vis-configuration vis-config-rangeinput",y.value=Number(c.value);var b=this;c.onchange=function(){y.value=this.value,b._update(Number(this.value),n)},c.oninput=function(){y.value=this.value};var E=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,E,c,y);f!==""&&this.popupHistory[w]!==m&&(this.popupHistory[w]=m,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=lt(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=lt(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 c=t[d],f=x.copyAndExtendArray(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!re(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 m=this._getValue(f);if(re(c))this._handleArray(c,m,f);else if(typeof c=="string")this._makeTextInput(c,m,f);else if(typeof c=="boolean")this._makeCheckbox(c,m,f);else if(c instanceof Object){var v=!0;if(ke(a).call(a,"physics")!==-1&&this.moduleOptions.physics.solver!==d&&(v=!1),v===!0)if(c.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(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(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 QH(e){var r=JH();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function JH(){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 e6=function(e){gt(t,e);var r=QH(t);function t(a,n,s,o){var l,d,c,f,m,v,y,b;if(de(this,t),b=r.call(this),b.initTime=new Date,b.itemsDone=!1,!(xe(b)instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!(re(s)||Or(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=xe(b);if(b.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:yt},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=C(P=b.options.loadingScreenTemplate).call(P,xe(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:C(l=b.on).call(l,xe(b)),off:C(d=b.off).call(d,xe(b)),emit:C(c=b.emit).call(c,xe(b))},hiddenDates:[],util:{getScale:function(){return w.timeAxis.step.scale},getStep:function(){return w.timeAxis.step.step},toScreen:C(f=w._toScreen).call(f,w),toGlobalScreen:C(m=w._toGlobalScreen).call(m,w),toTime:C(v=w._toTime).call(v,w),toGlobalTime:C(y=w._toGlobalTime).call(y,w)}},b.range=new o_(b.body,b.options),b.components.push(b.range),b.body.range=b.range,b.timeAxis=new go(b.body,b.options),b.timeAxis2=null,b.components.push(b.timeAxis),b.currentTime=new __(b.body,b.options),b.components.push(b.currentTime),b.itemSet=new wo(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&<(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 F_(this,this.dom.container,XH)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(n){var s=V_.validate(n,UH);if(s===!0&&console.log("%cErrors have been found in the supplied options object.",ko),$n.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?Or(n)?s=xn(n):s=xn(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?(re(n)&&(n=new Pi(n)),s=new Z8(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,c=null;if(j(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),(c===null||V>c)&&(c=V)}),d!==null&&c!==null){var f=this,m=this.itemSet.items[o[0]],v=this._getScrollTop()*-1,y=null,b=function(A,V,N){var I=Y_(f,m);if(I!==!1&&(y||(y=I),!(y.itemTop==I.itemTop&&!y.shouldScroll))){y.itemTop!=I.itemTop&&I.shouldScroll&&(y=I,v=f._getScrollTop()*-1);var M=v,H=y.scrollOffset,W=N?H:M+(H-M)*A;f._setScrollTop(-W),V||f._redraw()}},E=function(){var A=Y_(f,m);A.shouldScroll&&A.itemTop!=y.itemTop&&(f._setScrollTop(-A.scrollOffset),f._redraw())},w=function(){E(),lt(E,100)},S=s&&s.zoom!==void 0?s.zoom:!0,D=(d+c)/2,T=S?(c-d)*1.1:Math.max(this.range.end-this.range.start,(c-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,c=null;if(o!=null&&l!=null){var f=l-o;f<=0&&(f=10);var m=f/this.props.center.width,v={},y=0;j(x).call(x,this.itemSet.items,function(P,F){if(P.groupShowing){var A=!0;v[F]=P.redraw(A),y=v[F].length}});var b=y>0;if(b)for(var E=function(F){j(x).call(x,v,function(A){A[F]()})},w=0;w<y;w++)E(w);if(j(x).call(x,this.itemSet.items,function(P){var F=ou(P),A=lu(P),V,N;n.options.rtl?(V=F-(P.getWidthRight()+10)*m,N=A+(P.getWidthLeft()+10)*m):(V=F-(P.getWidthLeft()+10)*m,N=A+(P.getWidthRight()+10)*m),V<o&&(o=V,d=P),N>l&&(l=N,c=P)}),d&&c){var S=d.getWidthLeft()+10,D=c.getWidthRight()+10,T=this.props.center.width-S-D;T>0&&(this.options.rtl?(o=ou(d)-D*f/T,l=lu(c)+S*f/T):(o=ou(d)-S*f/T,l=lu(c)+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;j(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),m=this.itemSet.groupFromTarget(n),v=tu.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":v!=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:m?m.groupId:null,customTime:v?v.options.id:null,what:T,pageX:n.srcEvent?n.srcEvent.pageX:n.pageX,pageY:n.srcEvent?n.srcEvent.pageY:n.pageY,x:d,y:c,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(){$n.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}($n);function ou(e){return x.convert(e.data.start,"Date").valueOf()}function lu(e){var r=e.data.end!=null?e.data.end:e.data.start;return x.convert(r,"Date").valueOf()}function Y_(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},c=e._getScrollTop()*-1,f=s+d(),m=r.height;return f<c?s+t<=s+d()+m&&(s+=d()-e.itemSet.options.margin.item.vertical):f+m>c+t?s+=d()+m-t+e.itemSet.options.margin.item.vertical:o=!1,s=Math.min(s,a-t),{shouldScroll:o,scrollOffset:s,itemTop:f}}var t6=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(de(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 c=this,f=function(v){var y=v-v%(c.magnitudefactor*c.minorSteps[c.minorStepIdx]);return v%(c.magnitudefactor*c.minorSteps[c.minorStepIdx])>.5*(c.magnitudefactor*c.minorSteps[c.minorStepIdx])?y+c.magnitudefactor*c.minorSteps[c.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 c=this.magnitudefactor*this.minorSteps[d];if(c>=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 c=t.convertValue(0),f=t.getStep()*t.scale,m=!1,v=0;!m&&v++<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=c-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(),m=!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(),m=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&y<s-n){l(),m=!1;continue}m=!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}(),r6=`
|
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 Bq(e,t){var r;if(e){if(typeof e=="string")return YE(e,t);var a=vt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return YE(e,t)}}function YE(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 Hq(e){var t=Wq();return function(){var a=xe(e),n;if(t){var s=xe(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Bt(this,n)}}function Wq(){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 jE=function(e){$t(r,e);var t=Hq(r);function r(a,n,s,o){var l;he(this,r),l=t.call(this),l.id=vi(),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(Hl(f.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(f){return"".concat(Hl(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=De(l);return l.body.emitter.on("verticalDrag",function(){d.dom.lineContainer.style.top="".concat(d.body.domProps.scrollTop,"px")}),l}return fe(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(){On(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=nt(this.groups);Ke(c).call(c,function(g,b){return g<b?-1:1});var f=jq(c),m;try{for(f.s();!(m=f.n()).done;){var v=m.value;this.groups[v].visible===!0&&(this.linegraphOptions.visibility[v]===void 0||this.linegraphOptions.visibility[v]===!0)&&(this.groups[v].getLegend(s,o,this.framework,n,d),d+=o+l)}}catch(g){f.e(g)}finally{f.f()}hr(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(On(this.svgElements),hr(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,m=this.options.showMajorLabels,v=this.body.dom.backgroundHorizontal.offsetWidth;l.minorLabelHeight=f?l.minorCharHeight:0,l.majorLabelHeight=m?l.majorCharHeight:0,l.minorLineWidth=v-this.lineOffset-this.width+2*this.options.minorLinesOffset,l.minorLineHeight=1,l.majorLineWidth=v-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;On(this.DOMelements.lines),On(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 Fq(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 m=0;this.options[o].title!==void 0&&this.options[o].title.text!==void 0&&(m=this.props.titleCharHeight);var v=this.options.icons===!0?Math.max(this.options.iconWidth,m)+this.options.labelOffsetX+15:m+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-v&&this.options.visible===!0?(this.width=this.maxLabelSize+v,this.options.width="".concat(this.width,"px"),hr(this.DOMelements.lines),hr(this.DOMelements.labels),this.redraw(),s=!0):this.maxLabelSize<this.width-v&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+v),this.options.width="".concat(this.width,"px"),hr(this.DOMelements.lines),hr(this.DOMelements.labels),this.redraw(),s=!0):(hr(this.DOMelements.lines),hr(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=lh("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=lh("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(On(this.DOMelements.title),this.options[n].title!==void 0&&this.options[n].title.text!==void 0){var s=lh("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")}hr(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}(Rn);function Xs(e,t){}Xs.draw=function(e,t,r,a){a=a||0;for(var n=Gq(r,t),s=0;s<e.length;s++)if(!n)va(e[s].screen_x+a,e[s].screen_y,Df(t),r.svgElements,r.svg,e[s].label);else{var o=n(e[s],t);(o===!0||ne(o)==="object")&&va(e[s].screen_x+a,e[s].screen_y,Df(t,o),r.svgElements,r.svg,e[s].label)}},Xs.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l=wr("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"),va(t+.5*a,r,Df(e),s.svgElements,s.svg)};function Df(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 Gq(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 Ot(e,t){}Ot.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l=wr("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,m=Math.round(.4*n),v=Math.round(.75*n),g=Math.round((a-2*d)/3);if(dh(t+.5*d+g,r+o-m-1,d,m,e.className+" vis-bar",s.svgElements,s.svg,e.style),dh(t+1.5*d+g+2,r+o-v-1,d,v,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};va(t+.5*d+g,r+o-m-1,b,s.svgElements,s.svg),va(t+1.5*d+g+2,r+o-v-1,b,s.svgElements,s.svg)}},Ot.draw=function(e,t,r){var a=[],n={},s,o,l,d,c,f,m=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}),m+=1;if(m!==0)for(Ke(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}),Ot._getDataIntersections(n,a),c=0;c<a.length;c++){d=r.groups[a[c].groupId];var v=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=Ot._getSafeDrawData(s,d,v);else{var b=c+(n[o].amount-n[o].resolved);b<a.length&&(s=Math.abs(a[b].screen_x-o)),l=Ot._getSafeDrawData(s,d,v),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,dh(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};Xs.draw([k],d,r,l.offset)}}},Ot._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)},Ot._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}},Ot.getStackedYRange=function(e,t,r,a,n){if(e.length>0){Ke(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={};Ot._getDataIntersections(s,e),t[a]=Ot._getStackedYRange(s,e),t[a].yAxisOrientation=n,r.push(a)}},Ot._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 ht(e,t){}ht.calcPath=function(e,t){if(e!=null&&e.length>0){var r=[];return t.options.interpolation.enabled==!0?r=ht._catmullRom(e,t):r=ht._linear(e),r}},ht.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l,d,c=wr("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=wr("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=wr("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};va(t+.5*a,r,f,s.svgElements,s.svg)}},ht.drawShading=function(e,t,r,a){if(t.options.shaded.enabled==!0){var n=Number(a.svg.style.height.replace("px","")),s=wr("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)}},ht.draw=function(e,t,r){if(e!=null&&e!=null){var a=wr("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))}},ht.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},ht._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},ht._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,m,v,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)),m=Math.sqrt(Math.pow(s.screen_x-o.screen_x,2)+Math.pow(s.screen_y-o.screen_y,2)),w=Math.pow(m,r),T=Math.pow(m,2*r),k=Math.pow(f,r),D=Math.pow(f,2*r),L=Math.pow(c,r),N=Math.pow(c,2*r),v=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+v*n.screen_x+N*s.screen_x)*b,screen_y:(-D*a.screen_y+v*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},ht._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 Vn(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}Vn.prototype.setItems=function(e){e!=null?(this.itemsData=e,Ke(this.options)==!0&&x.insertSort(this.itemsData,function(t,r){return t.x>r.x?1:-1})):this.itemsData=[]},Vn.prototype.getItems=function(){return this.itemsData},Vn.prototype.setZeroPosition=function(e){this.zeroPosition=e},Vn.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))}},Vn.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)},Vn.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":ht.drawIcon(this,a,n,e,t,r);break;case"points":case"point":Xs.drawIcon(this,a,n,e,t,r);break;case"bar":Ot.drawIcon(this,a,n,e,t,r);break}return{icon:r.svg,label:this.content,orientation:this.options.yAxisOrientation}},Vn.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 rr(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)}rr.prototype=new Rn,rr.prototype.clear=function(){this.groups={},this.amountOfGroups=0},rr.prototype.addGroup=function(e,t){t.options.excludeFromLegend!=!0&&(this.groups.hasOwnProperty(e)||(this.groups[e]=t),this.amountOfGroups+=1)},rr.prototype.updateGroup=function(e,t){this.groups[e]=t},rr.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)},rr.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)},rr.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},rr.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},rr.prototype.setOptions=function(e){var t=["enabled","orientation","icons","left","right"];x.selectiveDeepExtend(t,this.options,e)},rr.prototype.redraw=function(){var e=0,t=nt(this.groups);Ke(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"}},rr.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=nt(this.groups);Ke(e).call(e,function(c,f){return c<f?-1:1}),q4(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 td="__ungrouped__";function Ne(e,t){this.id=vi(),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}}Ne.prototype=new Rn,Ne.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 jE(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new jE(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new rr(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new rr(this.body,this.options.legend,"right",this.options.groups),this.show()},Ne.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&&Zt((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(td)&&this.groups[td].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},Ne.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},Ne.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},Ne.prototype.setItems=function(e){var t=this,r,a=this.itemsData;if(!e)this.itemsData=null;else if(an(e))this.itemsData=ka(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)}},Ne.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(an(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)}},Ne.prototype._onUpdate=function(e){this._updateAllGroupData(e)},Ne.prototype._onAdd=function(e){this._onUpdate(e)},Ne.prototype._onRemove=function(e){this._onUpdate(e)},Ne.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)},Ne.prototype._onAddGroups=function(e){this._onUpdateGroups(e)},Ne.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})},Ne.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])},Ne.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 Vn(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()},Ne.prototype._updateAllGroupData=function(e,t){if(this.itemsData!=null){var r={},a=this.itemsData.get(),n=this.itemsData.idProp,s={};e&&ke(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=td),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 m=S.getItems();r[c]=te(m).call(m,function(w){return f[w[n]]=w[n],w[n]!==s[w[n]]});var v=o[c];o[c]-=r[c].length,r[c].length<v&&(r[c][v-1]={})}}for(l=0;l<a.length;l++)if(d=a[l],c=d.group,c==null&&(c=td),!(!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})}},Ne.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),($e(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},Ne.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},Ne.prototype._updateGraph=function(){if(On(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 hr(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]]=ht.calcPath(f,e)),e.options.shaded.orientation==="group"){var m=e.options.shaded.groupId;if($e(o).call(o,m)===-1){console.log(e.id+": Unknown shading group target given:"+m);continue}c.hasOwnProperty(m)||(c[m]=ht.calcPath(l[m],this.groups[m])),ht.drawShading(c[o[t]],e,c[m],this.framework)}else ht.drawShading(c[o[t]],e,void 0,this.framework)}for(Ot.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]]=ht.calcPath(l[o[t]],e)),ht.draw(c[o[t]],e,this.framework);case"point":case"points":(e.options.style=="point"||e.options.style=="points"||e.options.drawPoints.enabled==!0)&&Xs.draw(l[o[t]],e,this.framework);break}}}return hr(this.svgElements),!1},Ne.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}},Ne.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(Ke(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)),m=Math.min(d.length,x.binarySearchValue(d,a,"x","after",c)+1);m<=0&&(m=d.length);var v=new Array(m-f);for(o=f;o<m;o++)l=n.itemsData[o],v[o-f]=l;t[e[s]]=v}else t[e[s]]=n.itemsData}},Ne.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 m=Math.round(f/s);c[m]=n[f]}t[e[a]]=xt(c).call(c,0,Math.round(o/s))}}}},Ne.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=Ie(o).call(o,a):l=Ie(l).call(l,a):r[e[s]]=n.getYRange(a,e[s]));Ot.getStackedYRange(o,r,e,"__barStackLeft","left"),Ot.getStackedYRange(l,r,e,"__barStackRight","right")}},Ne.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 m=0;m<e.length;m++){var v=this.groups[e[m]];v&&v.options.yAxisOrientation!="right"?(a=!0,s=1e9,l=-1e9):v&&v.options.yAxisOrientation&&(n=!0,o=1e9,d=-1e9)}for(m=0;m<e.length;m++)t.hasOwnProperty(e[m])&&t[e[m]].ignore!==!0&&(c=t[e[m]].min,f=t[e[m]].max,t[e[m]].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(m=0;m<g.length;m++)$e(e).call(e,g[m])!=-1&&xt(e).call(e,$e(e).call(e,g[m]),1);return r},Ne.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},Ne.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},Ne.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",Ce="number",zq="array",Aa="date",He="object",Uq="dom",Ia="moment",BE="any",Kq={configure:{enabled:{boolean:ye},filter:{boolean:ye,function:"function"},container:{dom:Uq},__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:Ce},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:Ce},minWidth:{number:Ce},sideBySide:{boolean:ye},align:{string:["left","center","right"]},__type__:{object:He}},interpolation:{enabled:{boolean:ye},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:Ce},__type__:{object:He,boolean:ye}},drawPoints:{enabled:{boolean:ye},onRender:{function:"function"},size:{number:Ce},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:Ce},visible:{boolean:ye},alignZeros:{boolean:ye},left:{range:{min:{number:Ce,undefined:"undefined"},max:{number:Ce,undefined:"undefined"},__type__:{object:He}},format:{function:"function"},title:{text:{string:de,number:Ce,undefined:"undefined"},style:{string:de,undefined:"undefined"},__type__:{object:He}},__type__:{object:He}},right:{range:{min:{number:Ce,undefined:"undefined"},max:{number:Ce,undefined:"undefined"},__type__:{object:He}},format:{function:"function"},title:{text:{string:de,number:Ce,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:BE},__type__:{object:He}},autoResize:{boolean:ye},throttleRedraw:{number:Ce},clickToUse:{boolean:ye},end:{number:Ce,date:Aa,string:de,moment:Ia},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:Ce},hiddenDates:{start:{date:Aa,number:Ce,string:de,moment:Ia},end:{date:Aa,number:Ce,string:de,moment:Ia},repeat:{string:de},__type__:{object:He,array:zq}},locale:{string:de},locales:{__any__:{any:BE},__type__:{object:He}},max:{date:Aa,number:Ce,string:de,moment:Ia},maxHeight:{number:Ce,string:de},maxMinorChars:{number:Ce},min:{date:Aa,number:Ce,string:de,moment:Ia},minHeight:{number:Ce,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:Aa,number:Ce,string:de,moment:Ia},timeAxis:{scale:{string:de,undefined:"undefined"},step:{number:Ce,undefined:"undefined"},__type__:{object:He}},width:{string:de,number:Ce},zoomable:{boolean:ye},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:Ce},zoomMin:{number:Ce},zIndex:{number:Ce},__type__:{object:He}},qq={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 sn(e,t,r,a){var n,s,o,l,d,c,f;if(!(ae(r)||an(r))&&r instanceof Object){var m=a;a=r,r=m}a&&a.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var v=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Dt,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:I(n=this.on).call(n,this),off:I(s=this.off).call(s,this),emit:I(o=this.emit).call(o,this)},hiddenDates:[],util:{getScale:function(){return v.timeAxis.step.scale},getStep:function(){return v.timeAxis.step.step},toScreen:I(l=v._toScreen).call(l,v),toGlobalScreen:I(d=v._toGlobalScreen).call(d,v),toTime:I(c=v._toTime).call(c,v),toGlobalTime:I(f=v._toGlobalTime).call(f,v)}},this.range=new sE(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new ql(this.body),this.components.push(this.timeAxis),this.currentTime=new yE(this.body),this.components.push(this.currentTime),this.linegraph=new Ne(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(g){v.emit("click",v.getEventProperties(g))}),this.on("doubletap",function(g){v.emit("doubleClick",v.getEventProperties(g))}),this.dom.root.oncontextmenu=function(g){v.emit("contextmenu",v.getEventProperties(g))},this.initialFitDone=!1,this.on("changed",function(){if(v.itemsData!=null){if(!v.initialFitDone&&!v.options.rollingMode)if(v.initialFitDone=!0,v.options.start!=null||v.options.end!=null){if(v.options.start==null||v.options.end==null)var g=v.getItemRange();var b=v.options.start!=null?v.options.start:g.min,S=v.options.end!=null?v.options.end:g.max;v.setWindow(b,S,{animation:!1})}else v.fit({animation:!1});!v.initialDrawDone&&(v.initialRangeChangeDone||!v.options.start&&!v.options.end||v.options.rollingMode)&&(v.initialDrawDone=!0,v.dom.root.style.visibility="visible",v.dom.loadingScreen.parentNode.removeChild(v.dom.loadingScreen),v.options.onInitialDrawComplete&>(function(){return v.options.onInitialDrawComplete()},0))}}),a&&this.setOptions(a),r&&this.setGroups(r),t&&this.setItems(t),this._redraw()}sn.prototype=new $a,sn.prototype.setOptions=function(e){var t=ME.validate(e,Kq);t===!0&&console.log("%cErrors have been found in the supplied options object.",ed),$a.prototype.setOptions.call(this,e)},sn.prototype.setItems=function(e){var t=this.itemsData==null,r;if(e?an(e)?r=ka(e):r=ka(new gi(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})},sn.prototype.setGroups=function(e){var t;e?an(e)?t=e:t=new gi(e):t=null,this.groupsData=t,this.linegraph.setGroups(t)},sn.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+"'"},sn.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},sn.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}},sn.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=bf.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,m=this.linegraph.yAxisRight;return!f.hidden&&this.itemsData.length>0&&c.push(f.screenToValue(n)),!m.hidden&&this.itemsData.length>0&&c.push(m.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}},sn.prototype._createConfigurator=function(){return new VE(this,this.dom.container,qq)};var Xq=X4();Dt.locale(Xq);const Qq=h.defineComponent({name:"reason-explained-modal",components:{},props:{reason_explained:Object,reason:Object},setup(){return{}}}),kr=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},Zq={class:"modal fade",id:"chargeback_reason_explained",tabindex:"1","aria-hidden":"true"},Jq={class:"modal-dialog mw-650px"},eX={class:"card card-body"},tX={class:"card-title fs-5 fw-bolder"},rX={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.svg",alt:"",class:"h-25px pe-5"},nX={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.svg",alt:"",class:"h-25px pe-5"},iX={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.svg",alt:"",class:"h-25px pe-5"},aX={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.svg",alt:"",class:"h-25px pe-5"},sX={class:"mh-300px scroll-y m-5 py-5"},oX={class:"d-flex align-items-center"},lX={class:"ms-5"},dX={class:"fw-bold text-gray-800"};function cX(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",Zq,[h.createElementVNode("div",Jq,[h.createElementVNode("div",eX,[h.createElementVNode("div",tX,[e.reason.card_brand==="Visa"?(h.openBlock(),h.createElementBlock("img",rX)):h.createCommentVNode("",!0),e.reason.card_brand==="American Express"?(h.openBlock(),h.createElementBlock("img",nX)):h.createCommentVNode("",!0),e.reason.card_brand==="Mastercard"?(h.openBlock(),h.createElementBlock("img",iX)):h.createCommentVNode("",!0),e.reason.card_brand==="Discover"?(h.openBlock(),h.createElementBlock("img",aX)):h.createCommentVNode("",!0),h.createTextVNode(" "+h.toDisplayString(e.reason.code),1)]),h.createElementVNode("div",null,h.toDisplayString(e.reason.message),1),h.createElementVNode("div",sX,[(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",oX,[h.createElementVNode("div",lX,[h.createElementVNode("div",dX,h.toDisplayString(o),1)])])]))),128))])])])])}const uX=kr(Qq,[["render",cX]]),hX=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}}}),fX={class:"accordion-item"},pX={id:"kt_accordion_4_body_4",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_4_body_4","data-bs-parent":"#kt_accordion_1"},mX={class:"accordion-body pb-1"},vX={class:"d-flex flex-wrap py-2 fs-7"},gX={class:"flex-equal ms-2 me-5"},yX={class:"table table-flush fw-bold gy-1"},_X={class:"text-gray-800"},bX={class:"text-gray-800"},wX={class:"text-gray-800"},EX={class:"text-gray-800"},SX={class:"text-gray-800"},kX={class:"flex-equal"},xX={class:"table table-flush fw-bold gy-1"},TX={class:"text-gray-800 text-hover-primary"},$X={class:"text-gray-800 text-hover-primary"},DX={class:"text-gray-800 text-hover-primary"},NX={class:"text-gray-800 text-hover-primary"},CX={class:"text-gray-800 text-hover-primary"};function OX(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",fX,[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",pX,[h.createElementVNode("div",mX,[h.createElementVNode("div",vX,[h.createElementVNode("div",gX,[h.createElementVNode("table",yX,[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",_X,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",bX,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",wX,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",EX,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",SX,h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].date:e.transaction.action.date),1)])])])]),h.createElementVNode("div",kX,[h.createElementVNode("table",xX,[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",TX," $"+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",$X,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",DX,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",NX,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",CX,h.toDisplayString(e.transaction.cc_number),1)])])])])])])])])}const AX=kr(hX,[["render",OX],["__scopeId","data-v-5d7c95ae"]]),IX=h.defineComponent({name:"usaepay-details",props:{incoming:Object},setup(){return{}}}),PX={class:"rounded border pt-0 mb-5"},MX={class:"accordion",id:"kt_accordion_1"},RX={class:"accordion-item"},LX={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:{}},VX={class:"accordion-body"},FX={class:"mb-0"},YX={class:"table table-flush fw-bold gy-1"},jX={class:"text-gray-800"},BX={class:"text-gray-800"},HX={class:"text-gray-800"},WX={class:"text-gray-800"},GX={class:"text-gray-800"},zX={class:"text-gray-800"},UX={class:"text-gray-800"},KX={class:"text-gray-800"},qX={class:"text-gray-800"},XX={class:"text-gray-800"},QX={class:"accordion-item"},ZX={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},JX={class:"accordion-body"},eQ={class:"mb-0"},tQ={class:"accordion-item"},rQ={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},nQ={class:"accordion-body"},iQ={class:"mb-0"};function aQ(e,t,r,a,n,s){var o,l,d,c,f,m,v,g,b,S,w,k;return h.openBlock(),h.createElementBlock("div",PX,[h.createElementVNode("div",MX,[h.createElementVNode("div",RX,[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",LX,[h.createElementVNode("div",VX,[h.createElementVNode("div",FX,[h.createElementVNode("table",YX,[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",jX,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",BX,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",HX,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",WX,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",GX,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",zX,h.toDisplayString((m=e.incoming)==null?void 0:m.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",UX,h.toDisplayString((v=e.incoming)==null?void 0:v.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",KX,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",qX,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",XX,h.toDisplayString((S=e.incoming)==null?void 0:S.order_details.items[0].name),1)])])])])])])]),h.createElementVNode("div",QX,[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",ZX,[h.createElementVNode("div",JX,[h.createElementVNode("div",eQ,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((w=e.incoming)==null?void 0:w.connection_id),1)])])])]),h.createElementVNode("div",tQ,[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",rQ,[h.createElementVNode("div",nQ,[h.createElementVNode("div",iQ,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((k=e.incoming)==null?void 0:k.connection_id),1)])])])])])])}const sQ=kr(IX,[["render",aQ]]),oQ=h.defineComponent({name:"squareup-details",props:{incoming:Object},setup(){return{}}}),lQ={class:"rounded border pt-0 mb-5"},dQ={class:"accordion fs-7",id:"kt_accordion_1"},cQ={class:"accordion-item"},uQ={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:{}},hQ={class:"accordion-body"},fQ={class:"mb-0"},pQ={class:"table-responsive"},mQ={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},vQ={class:"fw-bold text-gray-800"},gQ={class:"w-50px"},yQ={class:"w-50px"},_Q={class:"w-50px text-end pe-5"},bQ={class:"accordion-item"},wQ={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},EQ={class:"accordion-body"},SQ={class:"mb-0"},kQ={class:"d-flex flex-wrap py-2"},xQ={class:"flex-equal ms-2 me-2"},TQ={class:"table table-flush fw-bold gy-1 mb-0"},$Q={class:"text-gray-800"},DQ={class:"text-gray-800"},NQ={class:"text-gray-800"},CQ={class:"text-gray-800"},OQ={class:"text-gray-800"},AQ={class:"flex-equal ms-2 me-2"},IQ={class:"table table-flush fw-bold gy-1"},PQ={class:"text-gray-800"},MQ={class:"text-gray-800"},RQ={class:"text-gray-800"},LQ={class:"text-gray-800"},VQ={class:"text-gray-800"},FQ={class:"accordion-item"},YQ={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},jQ={class:"accordion-body"},BQ={class:"mb-0"},HQ={class:"d-flex flex-wrap py-5"},WQ={class:"flex-equal ms-2 me-5"},GQ={class:"table table-flush fw-bold gy-1"},zQ={class:"text-gray-800 text-hover-primary"},UQ={class:"text-gray-800 text-hover-primary"},KQ={class:"text-gray-800 text-hover-primary"},qQ={class:"text-gray-800 text-hover-primary"},XQ={class:"flex-equal"},QQ={class:"table table-flush fw-bold gy-1"},ZQ={class:"text-gray-800"},JQ={class:"text-gray-800"},eZ={class:"text-gray-800"},tZ={class:"text-gray-800 pt-4"};function rZ(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",lQ,[h.createElementVNode("div",dQ,[h.createElementVNode("div",cQ,[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",uQ,[h.createElementVNode("div",hQ,[h.createElementVNode("div",fQ,[h.createElementVNode("div",pQ,[h.createElementVNode("table",mQ,[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",vQ,[(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",gQ,h.toDisplayString(o.uid),1)]),h.createElementVNode("td",null,h.toDisplayString(o.item_type),1),h.createElementVNode("td",yQ,h.toDisplayString(o.quantity),1),h.createElementVNode("td",_Q,h.toDisplayString(o.base_price_money.amount),1)]))),128))])])])])])])]),h.createElementVNode("div",bQ,[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",wQ,[h.createElementVNode("div",EQ,[h.createElementVNode("div",SQ,[h.createElementVNode("div",kQ,[h.createElementVNode("div",xQ,[h.createElementVNode("table",TQ,[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",$Q,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",DQ,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",NQ,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",CQ,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",OQ,h.toDisplayString(e.incoming.transaction.payment.created_at),1)])])])]),h.createElementVNode("div",AQ,[h.createElementVNode("table",IQ,[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",PQ,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",MQ,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",RQ,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",LQ,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",VQ,h.toDisplayString(e.incoming.transaction.payment.card_details.statement_description),1)])])])])])])])])]),h.createElementVNode("div",FQ,[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",YQ,[h.createElementVNode("div",jQ,[h.createElementVNode("div",BQ,[h.createElementVNode("div",HQ,[h.createElementVNode("div",WQ,[h.createElementVNode("table",GQ,[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",zQ,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",UQ,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",KQ,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",qQ,[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",XQ,[h.createElementVNode("table",QQ,[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",ZQ,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",JQ,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",eZ,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",tZ,h.toDisplayString(e.incoming.card_holder.preferences),1)])])])])])])])])])])])}const nZ=kr(oQ,[["render",rZ]]),iZ=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),aZ={class:"rounded border pt-0 mb-5"},sZ={class:"accordion fs-7",id:"kt_accordion_1"},oZ={class:"accordion-item"},lZ={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:{}},dZ={class:"accordion-body"},cZ={class:"mb-0"},uZ={key:0,class:"d-flex flex-wrap py-5"},hZ={key:1,class:"table-responsive"},fZ={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},pZ={class:"fw-bold text-gray-800"},mZ={class:"w-50px"},vZ={class:"w-50px"},gZ={class:"w-50px text-end pe-5"},yZ={class:"accordion-item"},_Z={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},bZ={class:"accordion-body"},wZ={class:"mb-0"},EZ={class:"d-flex flex-wrap py-2"},SZ={class:"flex-equal ms-2 me-2"},kZ={class:"table table-flush fw-bold gy-1 mb-0"},xZ={class:"text-gray-800"},TZ={class:"text-gray-800"},$Z={class:"text-gray-800"},DZ={class:"text-gray-800"},NZ={class:"text-gray-800"},CZ={class:"flex-equal ms-2 me-2"},OZ={class:"table table-flush fw-bold gy-1"},AZ={class:"text-gray-800"},IZ={class:"text-gray-800"},PZ={class:"text-gray-800"},MZ={class:"text-gray-800"},RZ={class:"text-gray-800"},LZ={class:"accordion-item"},VZ={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},FZ={class:"accordion-body"},YZ={class:"mb-0"},jZ={class:"d-flex flex-wrap py-5"},BZ={class:"flex-equal ms-2 me-5"},HZ={class:"table table-flush fw-bold gy-1"},WZ={class:"text-gray-800 text-hover-primary"},GZ={class:"text-gray-800 text-hover-primary"},zZ={class:"text-gray-800 text-hover-primary"},UZ={class:"text-gray-800 text-hover-primary"},KZ={class:"flex-equal"},qZ={class:"table table-flush fw-bold gy-1"},XZ={class:"text-gray-800"},QZ={class:"text-gray-800"},ZZ={class:"text-gray-800"},JZ={class:"text-gray-800"};function eJ(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",aZ,[h.createElementVNode("div",sZ,[h.createElementVNode("div",oZ,[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",lZ,[h.createElementVNode("div",dZ,[h.createElementVNode("div",cZ,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",uZ,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",hZ,[h.createElementVNode("table",fZ,[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",pZ,[(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",mZ,h.toDisplayString(o.id),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",vZ,h.toDisplayString(o.quantity),1),h.createElementVNode("td",gZ,h.toDisplayString(o.unit_price),1)]))),128))])])]))])])])]),h.createElementVNode("div",yZ,[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",_Z,[h.createElementVNode("div",bZ,[h.createElementVNode("div",wZ,[h.createElementVNode("div",EZ,[h.createElementVNode("div",SZ,[h.createElementVNode("table",kZ,[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",xZ,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",TZ,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",$Z,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",DZ,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",NZ,h.toDisplayString(e.incoming.transaction.created_at),1)])])])]),h.createElementVNode("div",CZ,[h.createElementVNode("table",OZ,[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",AZ,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",IZ,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",PZ,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",MZ,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",RZ,h.toDisplayString(e.incoming.transaction.email_receipt),1)])])])])])])])])]),h.createElementVNode("div",LZ,[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",VZ,[h.createElementVNode("div",FZ,[h.createElementVNode("div",YZ,[h.createElementVNode("div",jZ,[h.createElementVNode("div",BZ,[h.createElementVNode("table",HZ,[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",WZ,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",GZ,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",zZ,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",UZ,[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",KZ,[h.createElementVNode("table",qZ,[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",XZ,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",QZ,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",ZZ,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",JZ,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const tJ=kr(iZ,[["render",eJ]]),rJ=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),nJ={class:"rounded border pt-0 mb-5"},iJ={class:"accordion fs-7",id:"kt_accordion_1"},aJ={class:"accordion-item"},sJ={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:{}},oJ={class:"accordion-body"},lJ={class:"mb-0"},dJ={key:0,class:"d-flex flex-wrap py-5"},cJ={key:1,class:"table-responsive"},uJ={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},hJ={class:"fw-bold text-gray-800"},fJ={class:"w-50px"},pJ={class:"w-50px"},mJ={class:"w-50px text-end pe-5"},vJ={class:"accordion-item"},gJ={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},yJ={class:"accordion-body"},_J={class:"mb-0"},bJ={class:"d-flex flex-wrap py-2"},wJ={class:"flex-equal ms-2 me-2"},EJ={class:"table table-flush fw-bold gy-1 mb-0"},SJ={class:"text-gray-800"},kJ={class:"text-gray-800"},xJ={class:"text-gray-800"},TJ={class:"text-gray-800"},$J={class:"text-gray-800"},DJ={class:"flex-equal ms-2 me-2"},NJ={class:"table table-flush fw-bold gy-1"},CJ={class:"text-gray-800"},OJ={class:"text-gray-800"},AJ={class:"text-gray-800"},IJ={class:"text-gray-800"},PJ={class:"text-gray-800"},MJ={class:"accordion-item"},RJ={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},LJ={class:"accordion-body"},VJ={class:"mb-0"},FJ={class:"d-flex flex-wrap py-5"},YJ={class:"flex-equal ms-2 me-5"},jJ={class:"table table-flush fw-bold gy-1"},BJ={class:"text-gray-800 text-hover-primary"},HJ={class:"text-gray-800 text-hover-primary"},WJ={class:"text-gray-800 text-hover-primary"},GJ={class:"text-gray-800 text-hover-primary"},zJ={class:"flex-equal"},UJ={class:"table table-flush fw-bold gy-1"},KJ={class:"text-gray-800"},qJ={class:"text-gray-800"},XJ={key:0,class:"text-gray-800"},QJ={key:1,class:"text-gray-800"},ZJ={class:"text-gray-800"};function JJ(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",nJ,[h.createElementVNode("div",iJ,[h.createElementVNode("div",aJ,[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",sJ,[h.createElementVNode("div",oJ,[h.createElementVNode("div",lJ,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",dJ,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",cJ,[h.createElementVNode("table",uJ,[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",hJ,[(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",fJ,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",pJ,h.toDisplayString(o.qty),1),h.createElementVNode("td",mJ,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",vJ,[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",gJ,[h.createElementVNode("div",yJ,[h.createElementVNode("div",_J,[h.createElementVNode("div",bJ,[h.createElementVNode("div",wJ,[h.createElementVNode("table",EJ,[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",SJ,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",kJ,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",xJ,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",TJ,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",$J,h.toDisplayString(e.incoming.transaction.Date),1)])])])]),h.createElementVNode("div",DJ,[h.createElementVNode("table",NJ,[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",CJ,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",OJ,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",AJ,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",IJ,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",PJ,h.toDisplayString(e.incoming.transaction["External Scheme Identifier"]),1)])])])])])])])])]),h.createElementVNode("div",MJ,[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",RJ,[h.createElementVNode("div",LJ,[h.createElementVNode("div",VJ,[h.createElementVNode("div",FJ,[h.createElementVNode("div",YJ,[h.createElementVNode("table",jJ,[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",BJ,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",HJ,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",WJ,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",GJ,[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",zJ,[h.createElementVNode("table",UJ,[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",KJ,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",qJ,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",XJ," Not Provided ")):(h.openBlock(),h.createElementBlock("td",QJ,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",ZJ,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const eee=kr(rJ,[["render",JJ]]),tee=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),ree={class:"rounded border pt-0 mb-5"},nee={class:"accordion fs-7",id:"kt_accordion_1"},iee={class:"accordion-item"},aee={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:{}},see={class:"accordion-body"},oee={class:"mb-0"},lee={key:0,class:"d-flex flex-wrap py-5"},dee={key:1,class:"table-responsive"},cee={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},uee={class:"fw-bold text-gray-800"},hee={class:"w-50px"},fee={class:"w-50px"},pee={class:"w-50px text-end pe-5"},mee={class:"accordion-item"},vee={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},gee={class:"accordion-body"},yee={class:"mb-0"},_ee={class:"d-flex flex-wrap py-2"},bee={class:"flex-equal ms-2 me-2"},wee={class:"table table-flush fw-bold gy-1 mb-0"},Eee={class:"text-gray-800"},See={class:"text-gray-800"},kee={class:"text-gray-800"},xee={class:"text-gray-800"},Tee={class:"text-gray-800"},$ee={class:"flex-equal ms-2 me-2"},Dee={class:"table table-flush fw-bold gy-1"},Nee={class:"text-gray-800"},Cee={class:"text-gray-800"},Oee={class:"text-gray-800"},Aee={class:"text-gray-800"},Iee={class:"text-gray-800"},Pee={class:"accordion-item"},Mee={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Ree={class:"accordion-body"},Lee={class:"mb-0"},Vee={class:"d-flex flex-wrap py-5"},Fee={class:"flex-equal ms-2 me-5"},Yee={class:"table table-flush fw-bold gy-1"},jee={class:"text-gray-800 text-hover-primary"},Bee={class:"text-gray-800 text-hover-primary"},Hee={class:"text-gray-800 text-hover-primary"},Wee={class:"text-gray-800 text-hover-primary"},Gee={class:"flex-equal"},zee={class:"table table-flush fw-bold gy-1"},Uee={class:"text-gray-800"},Kee={class:"text-gray-800"},qee={key:0,class:"text-gray-800"},Xee={key:1,class:"text-gray-800"},Qee={class:"text-gray-800"};function Zee(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",ree,[h.createElementVNode("div",nee,[h.createElementVNode("div",iee,[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",aee,[h.createElementVNode("div",see,[h.createElementVNode("div",oee,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",lee,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",dee,[h.createElementVNode("table",cee,[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",uee,[(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",hee,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",fee,h.toDisplayString(o.qty),1),h.createElementVNode("td",pee,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",mee,[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",vee,[h.createElementVNode("div",gee,[h.createElementVNode("div",yee,[h.createElementVNode("div",_ee,[h.createElementVNode("div",bee,[h.createElementVNode("table",wee,[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",Eee,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",See,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",kee,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",xee,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",Tee,h.toDisplayString(e.incoming.transaction.TRANS_SETTLE_UTC_TS),1)])])])]),h.createElementVNode("div",$ee,[h.createElementVNode("table",Dee,[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",Nee,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",Cee,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",Oee,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",Aee,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",Iee,h.toDisplayString(e.incoming.transaction.CARD_BANK),1)])])])])])])])])]),h.createElementVNode("div",Pee,[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",Mee,[h.createElementVNode("div",Ree,[h.createElementVNode("div",Lee,[h.createElementVNode("div",Vee,[h.createElementVNode("div",Fee,[h.createElementVNode("table",Yee,[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",jee,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",Bee,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",Hee,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",Wee,[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",Gee,[h.createElementVNode("table",zee,[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",Uee,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",Kee,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",qee," Not Provided ")):(h.openBlock(),h.createElementBlock("td",Xee,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",Qee,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const Jee=kr(tee,[["render",Zee]]),ete=h.defineComponent({name:"chargeback-details",components:{ReasonExplained:uX,NmiDetails:AX,USAEPayDetails:sQ,SquareUp:nZ,FluidPayDetails:tJ,NuveiDetails:eee,InovioPayDetails:Jee},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{}}}),m=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{}}}),v=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 gi(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 Vq(r.value,g.value,a.value):n.value.setItems(g.value))};return{timelineRef:r,incomingData:t,formattedPhone:S,lastAction:b,transaction:v,cardholder:s,actions:o,card:l,orders:d,orders2:c,crm_details:f,crm2_details:m}}}),tte={class:"card card-flush mb-5"},rte={class:"px-9 mb-7"},nte={class:"d-flex flex-wrap"},ite={class:"flex-equal"},ate={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},ste={class:"text-gray-800"},ote={class:"text-gray-800"},lte={class:"text-gray-800"},dte={class:"text-boldest"},cte={class:"text-gray-800"},ute={class:"flex-equal"},hte={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},fte={class:"text-gray-800 badge badge-sm badge-light-warning p-2"},pte={class:"text-gray-800"},mte={class:"text-dark p-0",href:"#chargeback_reason_explained","data-bs-toggle":"modal"},vte={class:"text-gray-800"},gte={class:"ms-n3"},yte={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.png",alt:"",class:"h-20px"},_te={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.png",alt:"",class:"h-20px"},bte={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.png",alt:"",class:"h-20px"},wte={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.png",alt:"",class:"h-20px"},Ete={class:"text-gray-800"},Ste={key:0,class:"card card-flush mb-5"},kte={class:"px-9 mb-7"},xte={class:"d-flex flex-wrap"},Tte={class:"flex-equal"},$te={class:"table table-flush fw-bold gy-1"},Dte={class:"text-gray-800"},Nte={class:"text-gray-800"},Cte={class:"text-gray-800"},Ote={class:"text-gray-800"},Ate={class:"flex-equal"},Ite={class:"table table-flush fw-bold gy-1"},Pte={class:"text-gray-800"},Mte={class:"text-gray-800"},Rte={class:"text-gray-800"},Lte={class:"rounded border pt-0 mb-5"},Vte={class:"accordion fs-7",id:"kt_accordion"},Fte={key:0,class:"accordion-item"},Yte={id:"kt_accordion_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_1","data-bs-parent":"#kt_accordion"},jte={class:"accordion-body mt-0 p-1 px-5"},Bte={class:"table-responsive"},Hte={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},Wte={class:"fw-bold text-gray-800 fs-8"},Gte={class:"text-end"},zte={key:1,class:"accordion-item"},Ute={id:"kt_accordion_body_6",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_6","data-bs-parent":"#kt_accordion"},Kte={class:"accordion-body mt-0 p-1 px-5"},qte={class:"table-responsive"},Xte={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},Qte={class:"fw-bold text-gray-800 fs-8"},Zte={key:2,class:"accordion-item"},Jte={id:"kt_accordion_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_header_2","data-bs-parent":"#kt_accordion"},ere={class:"accordion-body mt-0 p-1 px-5"},tre={class:"table-responsive"},rre={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},nre={class:"fw-bold text-gray-800 fs-8"},ire={class:"text-end"},are={key:3,class:"accordion-item"},sre={id:"kt_accordion_body_3",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_3","data-bs-parent":"#kt_accordion"},ore={class:"accordion-body mt-0 p-1 px-5"},lre={class:"table-responsive"},dre={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},cre={class:"fw-bold text-gray-800 fs-8"},ure={class:"rounded border pt-0 mb-5"},hre={class:"accordion fs-7",id:"kt_accordion_5"},fre={class:"card card-body"},pre={class:"card-flush h-auto pt-1"},mre={class:"mb-0"},vre={ref:"timelineRef"};function gre(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"),m=h.resolveComponent("InovioPayDetails"),v=h.resolveComponent("ReasonExplained");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",tte,[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",rte,[h.createElementVNode("div",nte,[h.createElementVNode("div",ite,[h.createElementVNode("table",ate,[h.createElementVNode("tr",null,[t[0]||(t[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"ID:",-1)),h.createElementVNode("td",ste,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",ote,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",lte,[h.createTextVNode(" $"+h.toDisplayString(e.incoming.dispute_amount),1),h.createElementVNode("span",dte,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",cte,h.toDisplayString(e.incoming.dispute_date),1)])])]),h.createElementVNode("div",ute,[h.createElementVNode("table",hte,[h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Due Date:",-1)),h.createElementVNode("td",fte,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",pte,[h.createElementVNode("a",mte,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",vte,[h.createElementVNode("span",gte,[e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Visa"?(h.openBlock(),h.createElementBlock("img",yte)):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",_te)):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",bte)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Discover"?(h.openBlock(),h.createElementBlock("img",wte)):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",Ete,h.toDisplayString(e.incoming.transaction_date),1)])])])])])]),e.cardholder&&Object.keys(e.cardholder).length>0?(h.openBlock(),h.createElementBlock("div",Ste,[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",kte,[h.createElementVNode("div",xte,[h.createElementVNode("div",Tte,[h.createElementVNode("table",$te,[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",Dte,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",Nte,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",Cte,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",Ote,h.toDisplayString(e.cardholder.billing_address),1)])])])]),h.createElementVNode("div",Ate,[h.createElementVNode("table",Ite,[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",Pte,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",Mte,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",Rte,h.toDisplayString(e.cardholder.shipping_address),1)])])])])])])])):h.createCommentVNode("",!0),h.createElementVNode("div",Lte,[h.createElementVNode("div",Vte,[e.orders&&Object.keys(e.orders).length>0?(h.openBlock(),h.createElementBlock("div",Fte,[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",Yte,[h.createElementVNode("div",jte,[h.createElementVNode("div",Bte,[h.createElementVNode("table",Hte,[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",Wte,[(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",Gte,h.toDisplayString(g.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm_details&&Object.keys(e.crm_details).length>0?(h.openBlock(),h.createElementBlock("div",zte,[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",Ute,[h.createElementVNode("div",Kte,[h.createElementVNode("div",qte,[h.createElementVNode("table",Xte,[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",Qte,[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",Zte,[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",Jte,[h.createElementVNode("div",ere,[h.createElementVNode("div",tre,[h.createElementVNode("table",rre,[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",nre,[(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",ire,h.toDisplayString(g.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm2_details&&Object.keys(e.crm2_details).length>0?(h.openBlock(),h.createElementBlock("div",are,[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",sre,[h.createElementVNode("div",ore,[h.createElementVNode("div",lre,[h.createElementVNode("table",dre,[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",cre,[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(m,{key:5,incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0),h.createElementVNode("div",ure,[h.createElementVNode("div",hre,[h.createElementVNode("div",fre,[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",pre,[h.createElementVNode("div",mre,[h.createElementVNode("div",vre,null,512)])])])])]),h.createVNode(v,{reason_explained:e.reason_explained,reason:e.reason},null,8,["reason_explained","reason"])],64)}const yre=kr(ete,[["render",gre]]),_re=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}}}),bre={class:"card card-flush mb-0","data-kt-sticky":"false","data-kt-sticky-name":"merchants-summary"},wre={class:"card-body px-5 pe-8 pt-0 fs-7"},Ere={class:"mb-4"},Sre={class:"row pb-4 align-items-center"},kre={class:"col text-end"},xre={class:"card-flush p-0"},Tre={class:"fw-bold text-gray-800"},$re={class:"d-block"},Dre={class:"row pb-4 align-items-center"},Nre={class:"col text-end"},Cre={class:"card-flush p-0"},Ore={class:"fw-bold text-gray-800"},Are={class:"d-block"},Ire={class:"row pb-4 align-items-center"},Pre={class:"col text-end"},Mre={class:"card-flush p-0"},Rre={class:"fw-bold text-gray-800"},Lre={class:"d-block"},Vre={class:"row pb-4 align-items-center"},Fre={class:"col text-end"},Yre={class:"card-flush p-0"},jre={class:"fw-bold text-gray-800"},Bre={class:"d-block"},Hre={class:"row pb-4 align-items-center"},Wre={class:"col text-end"},Gre={class:"card-flush p-0"},zre={class:"fw-bold text-gray-800"},Ure={class:"d-block"},Kre={class:"row pb-4 align-items-center"},qre={class:"col text-end"},Xre={class:"card-flush p-0"},Qre={class:"fw-bold text-gray-800"},Zre={key:0,class:"d-block"},Jre={key:1,class:"d-block"},ene={class:"row pb-4 align-items-center"},tne={class:"col text-end"},rne={class:"card-flush p-0"},nne={class:"fw-bold text-gray-800"},ine={class:"d-block"},ane={class:"row pb-4 align-items-center"},sne={class:"col text-end"},one={class:"card-flush p-0"},lne={class:"fw-bold text-gray-800"},dne={class:"d-block"};function cne(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",bre,[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",wre,[h.createElementVNode("div",Ere,[h.createElementVNode("div",Sre,[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",kre,[h.createElementVNode("div",xre,[h.createElementVNode("div",Tre,[h.createElementVNode("span",$re,h.toDisplayString(e.incoming.chargeback_status),1)])])])]),h.createElementVNode("div",Dre,[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",Nre,[h.createElementVNode("div",Cre,[h.createElementVNode("div",Ore,[h.createElementVNode("span",Are,h.toDisplayString(e.merchant.dba_name),1)])])])]),h.createElementVNode("div",Ire,[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",Pre,[h.createElementVNode("div",Mre,[h.createElementVNode("div",Rre,[h.createElementVNode("span",Lre,h.toDisplayString(e.merchant.mid_number),1)])])])]),h.createElementVNode("div",Vre,[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",Fre,[h.createElementVNode("div",Yre,[h.createElementVNode("div",jre,[h.createElementVNode("span",Bre,h.toDisplayString(e.merchant.merchant_id),1)])])])]),h.createElementVNode("div",Hre,[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",Wre,[h.createElementVNode("div",Gre,[h.createElementVNode("div",zre,[h.createElementVNode("span",Ure,h.toDisplayString(e.processor.name),1)])])])]),h.createElementVNode("div",Kre,[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",qre,[h.createElementVNode("div",Xre,[h.createElementVNode("div",Qre,[e.incoming.sent_date=="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("span",Zre," Not Sent ")):(h.openBlock(),h.createElementBlock("span",Jre," Sent "))])])])]),h.createElementVNode("div",ene,[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",tne,[h.createElementVNode("div",rne,[h.createElementVNode("div",nne,[h.createElementVNode("span",ine,h.toDisplayString(e.reason.category),1)])])])]),h.createElementVNode("div",ane,[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",sne,[h.createElementVNode("div",one,[h.createElementVNode("div",lne,[h.createElementVNode("span",dne,h.toDisplayString(e.incoming.reason_condition),1)])])])])])])])}const une=kr(_re,[["render",cne]]),xr={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()}},hne=h.defineComponent({name:"incoming-details",components:{Details:yre,Summary:une},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"),xr.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])},m=h.computed(()=>{const O=r.value.transaction;return O&&Object.keys(O).length>0&&O.transaction_id&&O.transaction_id!==""}),v=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 xr.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 xr.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 xr.get(`chargebacks/reasons?code=${r.value.reason}`);n.value=O.data[0]}catch{n.value={}}try{const{data:O}=await xr.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 xr.get(`processors/isos/${a.value.processor_id}`);o.value=O.data[0]}catch{o.value={}}try{const{data:O}=await xr.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 xr.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 xr.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 xr.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 xr.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 Un(document.getElementById("modal_pdf_view")).show()},j=h.computed(()=>{const{transaction:O,card_holder:M,...H}=r.value;return H});return{incoming:r,isTransactionAvailable:m,incomingWithoutTransaction:j,merchant:a,reason:n,reason_explained:s,processor:o,getFoundTime:v,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}}}),fne={class:"row g-5 g-xl-10"},pne={class:"col-xl-8"},mne={class:"col-xl-4 mb-10"},vne={class:"card"},gne={class:"card"},yne={class:"card card-body d-flex align-items-start mt-5 pt-5"},_ne={class:"mb-auto"},bne={class:"card-body pt-5"},wne={class:"timeline-label"},Ene={key:0,class:"timeline-item"},Sne={class:"timeline-label text-gray-800 fs-8"},kne={class:"text-gray-800 ps-3 fs-8"},xne={key:1,class:"timeline-item"},Tne={key:2,class:"timeline-item"},$ne={class:"timeline-label text-gray-800 fs-8"},Dne={class:"text-gray-800 ps-3 fs-8"},Nne={key:3,class:"timeline-item"},Cne={key:4,class:"timeline-item"},One={class:"timeline-label text-gray-800 fs-8"},Ane={class:"timeline-content d-flex"},Ine={class:"text-gray-800 ps-3 fs-8"},Pne={key:5,class:"timeline-item"};function Mne(e,t,r,a,n,s){const o=h.resolveComponent("Details"),l=h.resolveComponent("Summary");return h.openBlock(),h.createElementBlock("div",fne,[h.createElementVNode("div",pne,[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",mne,[h.createElementVNode("div",vne,[h.createElementVNode("div",gne,[h.createVNode(l,{reason:e.reason,processor:e.processor,merchant:e.merchant,incoming:e.incoming},null,8,["reason","processor","merchant","incoming"])])]),h.createElementVNode("div",yne,[h.createElementVNode("div",_ne,[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",bne,[h.createElementVNode("div",wne,[e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",Ene,[h.createElementVNode("div",Sne,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",kne," Transaction Found ("+h.toDisplayString(e.getFoundDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",xne,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",Tne,[h.createElementVNode("div",$ne,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",Dne," Details Populated ("+h.toDisplayString(e.getPopulatedDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",Nne,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",Cne,[h.createElementVNode("div",One,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",Ane,[h.createElementVNode("span",Ine,"Response Sent ("+h.toDisplayString(e.getSentDate)+")",1)])])):(h.openBlock(),h.createElementBlock("div",Pne,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 Rne={props:{apiKey:{type:String,required:!0},incomingId:{type:String,required:!0}},data(){return{data:null}},components:{IncomingDetails:kr(hne,[["render",Mne]])}};function Lne(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 HE=kr(Rne,[["render",Lne]]),Vne={install(e){e.component("Chargebacks",HE)}};mn.Chargebacks=HE,mn.default=Vne,Object.defineProperties(mn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
1279
|
+
}`;bt(r6);function i6(e,r){var t=typeof Sr<"u"&&Xr(e)||e["@@iterator"];if(!t){if(re(e)||(t=n6(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(c){throw c},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 c=t.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function n6(e,r){var t;if(e){if(typeof e=="string")return j_(e,r);var a=ot(t=Object.prototype.toString.call(e)).call(t,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Ur(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return j_(e,r)}}function j_(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 a6(e){var r=s6();return function(){var a=be(e),n;if(r){var s=be(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Nt(this,n)}}function s6(){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 B_=function(e){gt(t,e);var r=a6(t);function t(a,n,s,o){var l;de(this,t),l=r.call(this),l.id=Oi(),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(uo(f.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(f){return"".concat(uo(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=xe(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(){Jr(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=Ze(this.groups);We(c).call(c,function(y,b){return y<b?-1:1});var f=i6(c),m;try{for(f.s();!(m=f.n()).done;){var v=m.value;this.groups[v].visible===!0&&(this.linegraphOptions.visibility[v]===void 0||this.linegraphOptions.visibility[v]===!0)&&(this.groups[v].getLegend(s,o,this.framework,n,d),d+=o+l)}}catch(y){f.e(y)}finally{f.f()}Ut(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(Jr(this.svgElements),Ut(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,m=this.options.showMajorLabels,v=this.body.dom.backgroundHorizontal.offsetWidth;l.minorLabelHeight=f?l.minorCharHeight:0,l.majorLabelHeight=m?l.majorCharHeight:0,l.minorLineWidth=v-this.lineOffset-this.width+2*this.options.minorLinesOffset,l.minorLineHeight=1,l.majorLineWidth=v-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;Jr(this.DOMelements.lines),Jr(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 t6(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();j(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 m=0;this.options[o].title!==void 0&&this.options[o].title.text!==void 0&&(m=this.props.titleCharHeight);var v=this.options.icons===!0?Math.max(this.options.iconWidth,m)+this.options.labelOffsetX+15:m+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-v&&this.options.visible===!0?(this.width=this.maxLabelSize+v,this.options.width="".concat(this.width,"px"),Ut(this.DOMelements.lines),Ut(this.DOMelements.labels),this.redraw(),s=!0):this.maxLabelSize<this.width-v&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+v),this.options.width="".concat(this.width,"px"),Ut(this.DOMelements.lines),Ut(this.DOMelements.labels),this.redraw(),s=!0):(Ut(this.DOMelements.lines),Ut(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=Wd("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=Wd("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(Jr(this.DOMelements.title),this.options[n].title!==void 0&&this.options[n].title.text!==void 0){var s=Wd("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")}Ut(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)}}}]),t}(ni);function Ra(e,r){}Ra.draw=function(e,r,t,a){a=a||0;for(var n=o6(t,r),s=0;s<e.length;s++)if(!n)mn(e[s].screen_x+a,e[s].screen_y,du(r),t.svgElements,t.svg,e[s].label);else{var o=n(e[s],r);(o===!0||ee(o)==="object")&&mn(e[s].screen_x+a,e[s].screen_y,du(r,o),t.svgElements,t.svg,e[s].label)}},Ra.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l=rr("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"),mn(r+.5*a,t,du(e),s.svgElements,s.svg)};function du(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 o6(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 wt(e,r){}wt.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l=rr("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),c=e.options.barChart.width,f=c/d,m=Math.round(.4*n),v=Math.round(.75*n),y=Math.round((a-2*d)/3);if(Gd(r+.5*d+y,t+o-m-1,d,m,e.className+" vis-bar",s.svgElements,s.svg,e.style),Gd(r+1.5*d+y+2,t+o-v-1,d,v,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};mn(r+.5*d+y,t+o-m-1,b,s.svgElements,s.svg),mn(r+1.5*d+y+2,t+o-v-1,b,s.svgElements,s.svg)}},wt.draw=function(e,r,t){var a=[],n={},s,o,l,d,c,f,m=0;for(c=0;c<e.length;c++)if(d=t.groups[e[c]],d.options.style==="bar"&&d.visible===!0&&(t.options.groups.visibility[e[c]]===void 0||t.options.groups.visibility[e[c]]===!0))for(f=0;f<r[e[c]].length;f++)a.push({screen_x:r[e[c]][f].screen_x,screen_end:r[e[c]][f].screen_end,screen_y:r[e[c]][f].screen_y,x:r[e[c]][f].x,end:r[e[c]][f].end,y:r[e[c]][f].y,groupId:e[c],label:r[e[c]][f].label}),m+=1;if(m!==0)for(We(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}),wt._getDataIntersections(n,a),c=0;c<a.length;c++){d=t.groups[a[c].groupId];var v=d.options.barChart.minWidth!=null?d.options.barChart.minWidth:.1*d.options.barChart.width;o=a[c].screen_x;var y=0;if(n[o]===void 0)c+1<a.length&&(s=Math.abs(a[c+1].screen_x-o)),l=wt._getSafeDrawData(s,d,v);else{var b=c+(n[o].amount-n[o].resolved);b<a.length&&(s=Math.abs(a[b].screen_x-o)),l=wt._getSafeDrawData(s,d,v),n[o].resolved+=1,d.options.stack===!0&&d.options.excludeFromStacking!==!0?a[c].screen_y<d.zeroPosition?(y=n[o].accumulatedNegative,n[o].accumulatedNegative+=d.zeroPosition-a[c].screen_y):(y=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 E=l.width,w=a[c].screen_x;if(a[c].screen_end!=null?(E=a[c].screen_end-a[c].screen_x,w+=E*.5):w+=l.offset,Gd(w,a[c].screen_y-y,E,d.zeroPosition-a[c].screen_y,d.className+" vis-bar",t.svgElements,t.svg,d.style),d.options.drawPoints.enabled===!0){var S={screen_x:a[c].screen_x,screen_y:a[c].screen_y-y,x:a[c].x,y:a[c].y,groupId:a[c].groupId,label:a[c].label};Ra.draw([S],d,t,l.offset)}}},wt._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)},wt._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}},wt.getStackedYRange=function(e,r,t,a,n){if(e.length>0){We(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={};wt._getDataIntersections(s,e),r[a]=wt._getStackedYRange(s,e),r[a].yAxisOrientation=n,t.push(a)}},wt._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 nt(e,r){}nt.calcPath=function(e,r){if(e!=null&&e.length>0){var t=[];return r.options.interpolation.enabled==!0?t=nt._catmullRom(e,r):t=nt._linear(e),t}},nt.drawIcon=function(e,r,t,a,n,s){var o=n*.5,l,d,c=rr("rect",s.svgElements,s.svg);if(c.setAttributeNS(null,"x",r),c.setAttributeNS(null,"y",t-o),c.setAttributeNS(null,"width",a),c.setAttributeNS(null,"height",2*o),c.setAttributeNS(null,"class","vis-outline"),l=rr("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=rr("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};mn(r+.5*a,t,f,s.svgElements,s.svg)}},nt.drawShading=function(e,r,t,a){if(r.options.shaded.enabled==!0){var n=Number(a.svg.style.height.replace("px","")),s=rr("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)}},nt.draw=function(e,r,t){if(e!=null&&e!=null){var a=rr("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))}},nt.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},nt._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,c=e.length,f=0;f<c-1;f++)r=f==0?e[0]:e[f-1],t=e[f],a=e[f+1],n=f+2<c?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},nt._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,c,f,m,v,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,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)),m=Math.sqrt(Math.pow(s.screen_x-o.screen_x,2)+Math.pow(s.screen_y-o.screen_y,2)),w=Math.pow(m,t),D=Math.pow(m,2*t),S=Math.pow(f,t),T=Math.pow(f,2*t),F=Math.pow(c,t),P=Math.pow(c,2*t),v=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+v*n.screen_x+P*s.screen_x)*b,screen_y:(-T*a.screen_y+v*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},nt._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 si(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}si.prototype.setItems=function(e){e!=null?(this.itemsData=e,We(this.options)==!0&&x.insertSort(this.itemsData,function(r,t){return r.x>t.x?1:-1})):this.itemsData=[]},si.prototype.getItems=function(){return this.itemsData},si.prototype.setZeroPosition=function(e){this.zeroPosition=e},si.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))}},si.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)},si.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":nt.drawIcon(this,a,n,e,r,t);break;case"points":case"point":Ra.drawIcon(this,a,n,e,r,t);break;case"bar":wt.drawIcon(this,a,n,e,r,t);break}return{icon:t.svg,label:this.content,orientation:this.options.yAxisOrientation}},si.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 Yt(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)}Yt.prototype=new ni,Yt.prototype.clear=function(){this.groups={},this.amountOfGroups=0},Yt.prototype.addGroup=function(e,r){r.options.excludeFromLegend!=!0&&(this.groups.hasOwnProperty(e)||(this.groups[e]=r),this.amountOfGroups+=1)},Yt.prototype.updateGroup=function(e,r){this.groups[e]=r},Yt.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)},Yt.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)},Yt.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},Yt.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},Yt.prototype.setOptions=function(e){var r=["enabled","orientation","icons","left","right"];x.selectiveDeepExtend(r,this.options,e)},Yt.prototype.redraw=function(){var e=0,r=Ze(this.groups);We(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"}},Yt.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=Ze(this.groups);We(e).call(e,function(c,f){return c<f?-1:1}),uA(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 xo="__ungrouped__";function Ee(e,r){this.id=Oi(),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}}Ee.prototype=new ni,Ee.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 B_(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new B_(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new Yt(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new Yt(this.body,this.options.legend,"right",this.options.groups),this.show()},Ee.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&&Vt((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(xo)&&this.groups[xo].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},Ee.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},Ee.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},Ee.prototype.setItems=function(e){var r=this,t,a=this.itemsData;if(!e)this.itemsData=null;else if(Or(e))this.itemsData=xn(e);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(a&&(j(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;j(x).call(x,this.itemListeners,function(s,o){r.itemsData.on(o,s,n)}),t=this.itemsData.getIds(),this._onAdd(t)}},Ee.prototype.setGroups=function(e){var r=this,t;if(this.groupsData){j(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(Or(e))this.groupsData=e;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var n=this.id;j(x).call(x,this.groupListeners,function(s,o){r.groupsData.on(o,s,n)}),t=this.groupsData.getIds(),this._onAddGroups(t)}},Ee.prototype._onUpdate=function(e){this._updateAllGroupData(e)},Ee.prototype._onAdd=function(e){this._onUpdate(e)},Ee.prototype._onRemove=function(e){this._onUpdate(e)},Ee.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)},Ee.prototype._onAddGroups=function(e){this._onUpdateGroups(e)},Ee.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})},Ee.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])},Ee.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 si(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()},Ee.prototype._updateAllGroupData=function(e,r){if(this.itemsData!=null){var t={},a=this.itemsData.get(),n=this.itemsData.idProp,s={};e&&_e(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=xo),o.hasOwnProperty(c)?o[c]++:o[c]=1}var f={};if(!r&&e){for(c in this.groups)if(this.groups.hasOwnProperty(c)){E=this.groups[c];var m=E.getItems();t[c]=J(m).call(m,function(w){return f[w[n]]=w[n],w[n]!==s[w[n]]});var v=o[c];o[c]-=t[c].length,t[c].length<v&&(t[c][v-1]={})}}for(l=0;l<a.length;l++)if(d=a[l],c=d.group,c==null&&(c=xo),!(!r&&e&&d[n]!==s[d[n]]&&f.hasOwnProperty(d[n]))){t.hasOwnProperty(c)||(t[c]=new Array(o[c]));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[c].length-o[c]--;t[c][b]=y}for(c in this.groups)this.groups.hasOwnProperty(c)&&(t.hasOwnProperty(c)||(t[c]=new Array(0)));for(c in t)if(t.hasOwnProperty(c))if(t[c].length==0)this.groups.hasOwnProperty(c)&&this._removeGroup(c);else{var E=void 0;this.groupsData!=null&&(E=this.groupsData.get(c)),E==null&&(E={id:c,content:this.options.defaultGroup+c}),this._updateGroup(E,c),this.groups[c].setItems(t[c])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},Ee.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),(ke(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},Ee.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},Ee.prototype._updateGraph=function(){if(Jr(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 Ut(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 c={};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(c.hasOwnProperty(o[r])||(c[o[r]]=nt.calcPath(f,e)),e.options.shaded.orientation==="group"){var m=e.options.shaded.groupId;if(ke(o).call(o,m)===-1){console.log(e.id+": Unknown shading group target given:"+m);continue}c.hasOwnProperty(m)||(c[m]=nt.calcPath(l[m],this.groups[m])),nt.drawShading(c[o[r]],e,c[m],this.framework)}else nt.drawShading(c[o[r]],e,void 0,this.framework)}for(wt.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":c.hasOwnProperty(o[r])||(c[o[r]]=nt.calcPath(l[o[r]],e)),nt.draw(c[o[r]],e,this.framework);case"point":case"points":(e.options.style=="point"||e.options.style=="points"||e.options.drawPoints.enabled==!0)&&Ra.draw(l[o[r]],e,this.framework);break}}}return Ut(this.svgElements),!1},Ee.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}},Ee.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(We(n.options)==!0){var c=function(b,E){return b.getTime()==E.getTime()?0:b<E?-1:1},f=Math.max(0,x.binarySearchValue(d,t,"x","before",c)),m=Math.min(d.length,x.binarySearchValue(d,a,"x","after",c)+1);m<=0&&(m=d.length);var v=new Array(m-f);for(o=f;o<m;o++)l=n.itemsData[o],v[o-f]=l;r[e[s]]=v}else r[e[s]]=n.itemsData}},Ee.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 c=new Array(o),f=0;f<o;f+=s){var m=Math.round(f/s);c[m]=n[f]}r[e[a]]=mt(c).call(c,0,Math.round(o/s))}}}},Ee.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=Te(o).call(o,a):l=Te(l).call(l,a):t[e[s]]=n.getYRange(a,e[s]));wt.getStackedYRange(o,t,e,"__barStackLeft","left"),wt.getStackedYRange(l,t,e,"__barStackRight","right")}},Ee.prototype._updateYAxis=function(e,r){var t=!1,a=!1,n=!1,s=1e9,o=1e9,l=-1e9,d=-1e9,c,f;if(e.length>0){for(var m=0;m<e.length;m++){var v=this.groups[e[m]];v&&v.options.yAxisOrientation!="right"?(a=!0,s=1e9,l=-1e9):v&&v.options.yAxisOrientation&&(n=!0,o=1e9,d=-1e9)}for(m=0;m<e.length;m++)r.hasOwnProperty(e[m])&&r[e[m]].ignore!==!0&&(c=r[e[m]].min,f=r[e[m]].max,r[e[m]].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)}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(m=0;m<y.length;m++)ke(e).call(e,y[m])!=-1&&mt(e).call(e,ke(e).call(e,y[m]),1);return t},Ee.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},Ee.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},Ee.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",me="boolean",Se="number",l6="array",On="date",Ve="object",d6="dom",Pn="moment",H_="any",c6={configure:{enabled:{boolean:me},filter:{boolean:me,function:"function"},container:{dom:d6},__type__:{object:Ve,boolean:me,function:"function"}},alignCurrentTime:{string:se,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:se},sort:{boolean:me},sampling:{boolean:me},stack:{boolean:me},graphHeight:{string:se,number:Se},shaded:{enabled:{boolean:me},orientation:{string:["bottom","top","zero","group"]},groupId:{object:Ve},__type__:{boolean:me,object:Ve}},style:{string:["line","bar","points"]},barChart:{width:{number:Se},minWidth:{number:Se},sideBySide:{boolean:me},align:{string:["left","center","right"]},__type__:{object:Ve}},interpolation:{enabled:{boolean:me},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:Se},__type__:{object:Ve,boolean:me}},drawPoints:{enabled:{boolean:me},onRender:{function:"function"},size:{number:Se},style:{string:["square","circle"]},__type__:{object:Ve,boolean:me,function:"function"}},dataAxis:{showMinorLabels:{boolean:me},showMajorLabels:{boolean:me},showWeekScale:{boolean:me},icons:{boolean:me},width:{string:se,number:Se},visible:{boolean:me},alignZeros:{boolean:me},left:{range:{min:{number:Se,undefined:"undefined"},max:{number:Se,undefined:"undefined"},__type__:{object:Ve}},format:{function:"function"},title:{text:{string:se,number:Se,undefined:"undefined"},style:{string:se,undefined:"undefined"},__type__:{object:Ve}},__type__:{object:Ve}},right:{range:{min:{number:Se,undefined:"undefined"},max:{number:Se,undefined:"undefined"},__type__:{object:Ve}},format:{function:"function"},title:{text:{string:se,number:Se,undefined:"undefined"},style:{string:se,undefined:"undefined"},__type__:{object:Ve}},__type__:{object:Ve}},__type__:{object:Ve}},legend:{enabled:{boolean:me},icons:{boolean:me},left:{visible:{boolean:me},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Ve}},right:{visible:{boolean:me},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Ve}},__type__:{object:Ve,boolean:me}},groups:{visibility:{any:H_},__type__:{object:Ve}},autoResize:{boolean:me},throttleRedraw:{number:Se},clickToUse:{boolean:me},end:{number:Se,date:On,string:se,moment:Pn},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:Ve}},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:Ve}},__type__:{object:Ve}},moment:{function:"function"},height:{string:se,number:Se},hiddenDates:{start:{date:On,number:Se,string:se,moment:Pn},end:{date:On,number:Se,string:se,moment:Pn},repeat:{string:se},__type__:{object:Ve,array:l6}},locale:{string:se},locales:{__any__:{any:H_},__type__:{object:Ve}},max:{date:On,number:Se,string:se,moment:Pn},maxHeight:{number:Se,string:se},maxMinorChars:{number:Se},min:{date:On,number:Se,string:se,moment:Pn},minHeight:{number:Se,string:se},moveable:{boolean:me},multiselect:{boolean:me},orientation:{string:se},showCurrentTime:{boolean:me},showMajorLabels:{boolean:me},showMinorLabels:{boolean:me},showWeekScale:{boolean:me},snap:{function:"function",null:"null"},start:{date:On,number:Se,string:se,moment:Pn},timeAxis:{scale:{string:se,undefined:"undefined"},step:{number:Se,undefined:"undefined"},__type__:{object:Ve}},width:{string:se,number:Se},zoomable:{boolean:me},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:Se},zoomMin:{number:Se},zIndex:{number:Se},__type__:{object:Ve}},u6={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 Pr(e,r,t,a){var n,s,o,l,d,c,f;if(!(re(t)||Or(t))&&t instanceof Object){var m=a;a=t,t=m}a&&a.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var v=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:yt,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:C(n=this.on).call(n,this),off:C(s=this.off).call(s,this),emit:C(o=this.emit).call(o,this)},hiddenDates:[],util:{getScale:function(){return v.timeAxis.step.scale},getStep:function(){return v.timeAxis.step.step},toScreen:C(l=v._toScreen).call(l,v),toGlobalScreen:C(d=v._toGlobalScreen).call(d,v),toTime:C(c=v._toTime).call(c,v),toGlobalTime:C(f=v._toGlobalTime).call(f,v)}},this.range=new o_(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new go(this.body),this.components.push(this.timeAxis),this.currentTime=new __(this.body),this.components.push(this.currentTime),this.linegraph=new Ee(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(y){v.emit("click",v.getEventProperties(y))}),this.on("doubletap",function(y){v.emit("doubleClick",v.getEventProperties(y))}),this.dom.root.oncontextmenu=function(y){v.emit("contextmenu",v.getEventProperties(y))},this.initialFitDone=!1,this.on("changed",function(){if(v.itemsData!=null){if(!v.initialFitDone&&!v.options.rollingMode)if(v.initialFitDone=!0,v.options.start!=null||v.options.end!=null){if(v.options.start==null||v.options.end==null)var y=v.getItemRange();var b=v.options.start!=null?v.options.start:y.min,E=v.options.end!=null?v.options.end:y.max;v.setWindow(b,E,{animation:!1})}else v.fit({animation:!1});!v.initialDrawDone&&(v.initialRangeChangeDone||!v.options.start&&!v.options.end||v.options.rollingMode)&&(v.initialDrawDone=!0,v.dom.root.style.visibility="visible",v.dom.loadingScreen.parentNode.removeChild(v.dom.loadingScreen),v.options.onInitialDrawComplete&<(function(){return v.options.onInitialDrawComplete()},0))}}),a&&this.setOptions(a),t&&this.setGroups(t),r&&this.setItems(r),this._redraw()}Pr.prototype=new $n,Pr.prototype.setOptions=function(e){var r=V_.validate(e,c6);r===!0&&console.log("%cErrors have been found in the supplied options object.",ko),$n.prototype.setOptions.call(this,e)},Pr.prototype.setItems=function(e){var r=this.itemsData==null,t;if(e?Or(e)?t=xn(e):t=xn(new Pi(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})},Pr.prototype.setGroups=function(e){var r;e?Or(e)?r=e:r=new Pi(e):r=null,this.groupsData=r,this.linegraph.setGroups(r)},Pr.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+"'"},Pr.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},Pr.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}},Pr.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=tu.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,m=this.linegraph.yAxisRight;return!f.hidden&&this.itemsData.length>0&&c.push(f.screenToValue(n)),!m.hidden&&this.itemsData.length>0&&c.push(m.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}},Pr.prototype._createConfigurator=function(){return new F_(this,this.dom.container,u6)};var h6=hA();yt.locale(h6);const f6=h.defineComponent({name:"reason-explained-modal",components:{},props:{reason_explained:Object,reason:Object},setup(){return{}}}),ar=(e,r)=>{const t=e.__vccOpts||e;for(const[a,n]of r)t[a]=n;return t},p6={class:"modal fade",id:"chargeback_reason_explained",tabindex:"1","aria-hidden":"true"},m6={class:"modal-dialog mw-650px"},v6={class:"card card-body"},g6={class:"card-title fs-5 fw-bolder"},y6={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.svg",alt:"",class:"h-25px pe-5"},_6={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.svg",alt:"",class:"h-25px pe-5"},b6={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.svg",alt:"",class:"h-25px pe-5"},w6={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.svg",alt:"",class:"h-25px pe-5"},k6={class:"mh-300px scroll-y m-5 py-5"},x6={class:"d-flex align-items-center"},E6={class:"ms-5"},S6={class:"fw-bold text-gray-800"};function $6(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",p6,[h.createElementVNode("div",m6,[h.createElementVNode("div",v6,[h.createElementVNode("div",g6,[e.reason.card_brand==="Visa"?(h.openBlock(),h.createElementBlock("img",y6)):h.createCommentVNode("",!0),e.reason.card_brand==="American Express"?(h.openBlock(),h.createElementBlock("img",_6)):h.createCommentVNode("",!0),e.reason.card_brand==="Mastercard"?(h.openBlock(),h.createElementBlock("img",b6)):h.createCommentVNode("",!0),e.reason.card_brand==="Discover"?(h.openBlock(),h.createElementBlock("img",w6)):h.createCommentVNode("",!0),h.createTextVNode(" "+h.toDisplayString(e.reason.code),1)]),h.createElementVNode("div",null,h.toDisplayString(e.reason.message),1),h.createElementVNode("div",k6,[(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",x6,[h.createElementVNode("div",E6,[h.createElementVNode("div",S6,h.toDisplayString(o),1)])])]))),128))])])])])}const D6=ar(f6,[["render",$6]]),T6=h.defineComponent({name:"nmi-details",props:{incoming:{type:Object,required:!0}},setup(e){const r=h.toRef(e,"incoming"),t=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=t.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:r,transaction:o,actions:n,orders:s,cardholder:t}}}),N6={class:"accordion-item"},C6={id:"kt_accordion_4_body_4",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_4_body_4","data-bs-parent":"#kt_accordion_1"},O6={class:"accordion-body pb-1"},P6={class:"d-flex flex-wrap py-2 fs-7"},I6={class:"flex-equal ms-2 me-5"},M6={class:"table table-flush fw-bold gy-1"},A6={class:"text-gray-800"},V6={class:"text-gray-800"},R6={class:"text-gray-800"},L6={class:"text-gray-800"},F6={class:"text-gray-800"},Y6={class:"flex-equal"},j6={class:"table table-flush fw-bold gy-1"},B6={class:"text-gray-800 text-hover-primary"},H6={class:"text-gray-800 text-hover-primary"},W6={class:"text-gray-800 text-hover-primary"},G6={class:"text-gray-800 text-hover-primary"},z6={class:"text-gray-800 text-hover-primary"};function U6(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",N6,[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",C6,[h.createElementVNode("div",O6,[h.createElementVNode("div",P6,[h.createElementVNode("div",I6,[h.createElementVNode("table",M6,[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",A6,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",V6,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",R6,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",L6,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",F6,h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].date:e.transaction.action.date),1)])])])]),h.createElementVNode("div",Y6,[h.createElementVNode("table",j6,[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",B6," $"+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",H6,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",W6,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",G6,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",z6,h.toDisplayString(e.transaction.cc_number),1)])])])])])])])])}const X6=ar(T6,[["render",U6],["__scopeId","data-v-5d7c95ae"]]),q6=h.defineComponent({name:"usaepay-details",props:{incoming:Object},setup(){return{}}}),K6={class:"rounded border pt-0 mb-5"},Z6={class:"accordion",id:"kt_accordion_1"},Q6={class:"accordion-item"},J6={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:{}},eW={class:"accordion-body"},tW={class:"mb-0"},rW={class:"table table-flush fw-bold gy-1"},iW={class:"text-gray-800"},nW={class:"text-gray-800"},aW={class:"text-gray-800"},sW={class:"text-gray-800"},oW={class:"text-gray-800"},lW={class:"text-gray-800"},dW={class:"text-gray-800"},cW={class:"text-gray-800"},uW={class:"text-gray-800"},hW={class:"text-gray-800"},fW={class:"accordion-item"},pW={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},mW={class:"accordion-body"},vW={class:"mb-0"},gW={class:"accordion-item"},yW={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},_W={class:"accordion-body"},bW={class:"mb-0"};function wW(e,r,t,a,n,s){var o,l,d,c,f,m,v,y,b,E,w,S;return h.openBlock(),h.createElementBlock("div",K6,[h.createElementVNode("div",Z6,[h.createElementVNode("div",Q6,[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",J6,[h.createElementVNode("div",eW,[h.createElementVNode("div",tW,[h.createElementVNode("table",rW,[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",iW,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",nW,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",aW,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",sW,h.toDisplayString((c=e.incoming)==null?void 0:c.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",oW,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",lW,h.toDisplayString((m=e.incoming)==null?void 0:m.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",dW,h.toDisplayString((v=e.incoming)==null?void 0:v.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",cW,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",uW,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",hW,h.toDisplayString((E=e.incoming)==null?void 0:E.order_details.items[0].name),1)])])])])])])]),h.createElementVNode("div",fW,[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",pW,[h.createElementVNode("div",mW,[h.createElementVNode("div",vW,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((w=e.incoming)==null?void 0:w.connection_id),1)])])])]),h.createElementVNode("div",gW,[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",yW,[h.createElementVNode("div",_W,[h.createElementVNode("div",bW,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((S=e.incoming)==null?void 0:S.connection_id),1)])])])])])])}const kW=ar(q6,[["render",wW]]),xW=h.defineComponent({name:"squareup-details",props:{incoming:Object},setup(){return{}}}),EW={class:"rounded border pt-0 mb-5"},SW={class:"accordion fs-7",id:"kt_accordion_1"},$W={class:"accordion-item"},DW={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:{}},TW={class:"accordion-body"},NW={class:"mb-0"},CW={class:"table-responsive"},OW={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},PW={class:"fw-bold text-gray-800"},IW={class:"w-50px"},MW={class:"w-50px"},AW={class:"w-50px text-end pe-5"},VW={class:"accordion-item"},RW={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},LW={class:"accordion-body"},FW={class:"mb-0"},YW={class:"d-flex flex-wrap py-2"},jW={class:"flex-equal ms-2 me-2"},BW={class:"table table-flush fw-bold gy-1 mb-0"},HW={class:"text-gray-800"},WW={class:"text-gray-800"},GW={class:"text-gray-800"},zW={class:"text-gray-800"},UW={class:"text-gray-800"},XW={class:"flex-equal ms-2 me-2"},qW={class:"table table-flush fw-bold gy-1"},KW={class:"text-gray-800"},ZW={class:"text-gray-800"},QW={class:"text-gray-800"},JW={class:"text-gray-800"},eG={class:"text-gray-800"},tG={class:"accordion-item"},rG={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},iG={class:"accordion-body"},nG={class:"mb-0"},aG={class:"d-flex flex-wrap py-5"},sG={class:"flex-equal ms-2 me-5"},oG={class:"table table-flush fw-bold gy-1"},lG={class:"text-gray-800 text-hover-primary"},dG={class:"text-gray-800 text-hover-primary"},cG={class:"text-gray-800 text-hover-primary"},uG={class:"text-gray-800 text-hover-primary"},hG={class:"flex-equal"},fG={class:"table table-flush fw-bold gy-1"},pG={class:"text-gray-800"},mG={class:"text-gray-800"},vG={class:"text-gray-800"},gG={class:"text-gray-800 pt-4"};function yG(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",EW,[h.createElementVNode("div",SW,[h.createElementVNode("div",$W,[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",DW,[h.createElementVNode("div",TW,[h.createElementVNode("div",NW,[h.createElementVNode("div",CW,[h.createElementVNode("table",OW,[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",PW,[(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",IW,h.toDisplayString(o.uid),1)]),h.createElementVNode("td",null,h.toDisplayString(o.item_type),1),h.createElementVNode("td",MW,h.toDisplayString(o.quantity),1),h.createElementVNode("td",AW,h.toDisplayString(o.base_price_money.amount),1)]))),128))])])])])])])]),h.createElementVNode("div",VW,[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",RW,[h.createElementVNode("div",LW,[h.createElementVNode("div",FW,[h.createElementVNode("div",YW,[h.createElementVNode("div",jW,[h.createElementVNode("table",BW,[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",HW,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",WW,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",GW,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",zW,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",UW,h.toDisplayString(e.incoming.transaction.payment.created_at),1)])])])]),h.createElementVNode("div",XW,[h.createElementVNode("table",qW,[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",KW,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",ZW,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",QW,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",JW,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",eG,h.toDisplayString(e.incoming.transaction.payment.card_details.statement_description),1)])])])])])])])])]),h.createElementVNode("div",tG,[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",rG,[h.createElementVNode("div",iG,[h.createElementVNode("div",nG,[h.createElementVNode("div",aG,[h.createElementVNode("div",sG,[h.createElementVNode("table",oG,[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",lG,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",dG,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",cG,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",uG,[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",hG,[h.createElementVNode("table",fG,[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",pG,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",mG,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",vG,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",gG,h.toDisplayString(e.incoming.card_holder.preferences),1)])])])])])])])])])])])}const _G=ar(xW,[["render",yG]]),bG=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),wG={class:"rounded border pt-0 mb-5"},kG={class:"accordion fs-7",id:"kt_accordion_1"},xG={class:"accordion-item"},EG={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:{}},SG={class:"accordion-body"},$G={class:"mb-0"},DG={key:0,class:"d-flex flex-wrap py-5"},TG={key:1,class:"table-responsive"},NG={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},CG={class:"fw-bold text-gray-800"},OG={class:"w-50px"},PG={class:"w-50px"},IG={class:"w-50px text-end pe-5"},MG={class:"accordion-item"},AG={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},VG={class:"accordion-body"},RG={class:"mb-0"},LG={class:"d-flex flex-wrap py-2"},FG={class:"flex-equal ms-2 me-2"},YG={class:"table table-flush fw-bold gy-1 mb-0"},jG={class:"text-gray-800"},BG={class:"text-gray-800"},HG={class:"text-gray-800"},WG={class:"text-gray-800"},GG={class:"text-gray-800"},zG={class:"flex-equal ms-2 me-2"},UG={class:"table table-flush fw-bold gy-1"},XG={class:"text-gray-800"},qG={class:"text-gray-800"},KG={class:"text-gray-800"},ZG={class:"text-gray-800"},QG={class:"text-gray-800"},JG={class:"accordion-item"},ez={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},tz={class:"accordion-body"},rz={class:"mb-0"},iz={class:"d-flex flex-wrap py-5"},nz={class:"flex-equal ms-2 me-5"},az={class:"table table-flush fw-bold gy-1"},sz={class:"text-gray-800 text-hover-primary"},oz={class:"text-gray-800 text-hover-primary"},lz={class:"text-gray-800 text-hover-primary"},dz={class:"text-gray-800 text-hover-primary"},cz={class:"flex-equal"},uz={class:"table table-flush fw-bold gy-1"},hz={class:"text-gray-800"},fz={class:"text-gray-800"},pz={class:"text-gray-800"},mz={class:"text-gray-800"};function vz(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",wG,[h.createElementVNode("div",kG,[h.createElementVNode("div",xG,[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",EG,[h.createElementVNode("div",SG,[h.createElementVNode("div",$G,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",DG,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",TG,[h.createElementVNode("table",NG,[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",CG,[(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",OG,h.toDisplayString(o.id),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",PG,h.toDisplayString(o.quantity),1),h.createElementVNode("td",IG,h.toDisplayString(o.unit_price),1)]))),128))])])]))])])])]),h.createElementVNode("div",MG,[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",AG,[h.createElementVNode("div",VG,[h.createElementVNode("div",RG,[h.createElementVNode("div",LG,[h.createElementVNode("div",FG,[h.createElementVNode("table",YG,[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",jG,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",BG,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",HG,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",WG,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",GG,h.toDisplayString(e.incoming.transaction.created_at),1)])])])]),h.createElementVNode("div",zG,[h.createElementVNode("table",UG,[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",XG,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",qG,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",KG,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",ZG,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",QG,h.toDisplayString(e.incoming.transaction.email_receipt),1)])])])])])])])])]),h.createElementVNode("div",JG,[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",ez,[h.createElementVNode("div",tz,[h.createElementVNode("div",rz,[h.createElementVNode("div",iz,[h.createElementVNode("div",nz,[h.createElementVNode("table",az,[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",sz,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",oz,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",lz,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",dz,[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",cz,[h.createElementVNode("table",uz,[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",hz,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",fz,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",pz,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",mz,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const gz=ar(bG,[["render",vz]]),yz=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),_z={class:"rounded border pt-0 mb-5"},bz={class:"accordion fs-7",id:"kt_accordion_1"},wz={class:"accordion-item"},kz={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:{}},xz={class:"accordion-body"},Ez={class:"mb-0"},Sz={key:0,class:"d-flex flex-wrap py-5"},$z={key:1,class:"table-responsive"},Dz={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},Tz={class:"fw-bold text-gray-800"},Nz={class:"w-50px"},Cz={class:"w-50px"},Oz={class:"w-50px text-end pe-5"},Pz={class:"accordion-item"},Iz={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},Mz={class:"accordion-body"},Az={class:"mb-0"},Vz={class:"d-flex flex-wrap py-2"},Rz={class:"flex-equal ms-2 me-2"},Lz={class:"table table-flush fw-bold gy-1 mb-0"},Fz={class:"text-gray-800"},Yz={class:"text-gray-800"},jz={class:"text-gray-800"},Bz={class:"text-gray-800"},Hz={class:"text-gray-800"},Wz={class:"flex-equal ms-2 me-2"},Gz={class:"table table-flush fw-bold gy-1"},zz={class:"text-gray-800"},Uz={class:"text-gray-800"},Xz={class:"text-gray-800"},qz={class:"text-gray-800"},Kz={class:"text-gray-800"},Zz={class:"accordion-item"},Qz={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Jz={class:"accordion-body"},e9={class:"mb-0"},t9={class:"d-flex flex-wrap py-5"},r9={class:"flex-equal ms-2 me-5"},i9={class:"table table-flush fw-bold gy-1"},n9={class:"text-gray-800 text-hover-primary"},a9={class:"text-gray-800 text-hover-primary"},s9={class:"text-gray-800 text-hover-primary"},o9={class:"text-gray-800 text-hover-primary"},l9={class:"flex-equal"},d9={class:"table table-flush fw-bold gy-1"},c9={class:"text-gray-800"},u9={class:"text-gray-800"},h9={key:0,class:"text-gray-800"},f9={key:1,class:"text-gray-800"},p9={class:"text-gray-800"};function m9(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",_z,[h.createElementVNode("div",bz,[h.createElementVNode("div",wz,[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",kz,[h.createElementVNode("div",xz,[h.createElementVNode("div",Ez,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",Sz,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",$z,[h.createElementVNode("table",Dz,[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",Tz,[(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",Nz,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",Cz,h.toDisplayString(o.qty),1),h.createElementVNode("td",Oz,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",Pz,[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",Iz,[h.createElementVNode("div",Mz,[h.createElementVNode("div",Az,[h.createElementVNode("div",Vz,[h.createElementVNode("div",Rz,[h.createElementVNode("table",Lz,[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",Fz,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",Yz,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",jz,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",Bz,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",Hz,h.toDisplayString(e.incoming.transaction.Date),1)])])])]),h.createElementVNode("div",Wz,[h.createElementVNode("table",Gz,[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",zz,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",Uz,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",Xz,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",qz,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",Kz,h.toDisplayString(e.incoming.transaction["External Scheme Identifier"]),1)])])])])])])])])]),h.createElementVNode("div",Zz,[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",Qz,[h.createElementVNode("div",Jz,[h.createElementVNode("div",e9,[h.createElementVNode("div",t9,[h.createElementVNode("div",r9,[h.createElementVNode("table",i9,[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",n9,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",a9,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",s9,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",o9,[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",l9,[h.createElementVNode("table",d9,[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",c9,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",u9,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",h9," Not Provided ")):(h.openBlock(),h.createElementBlock("td",f9,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",p9,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const v9=ar(yz,[["render",m9]]),g9=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),y9={class:"rounded border pt-0 mb-5"},_9={class:"accordion fs-7",id:"kt_accordion_1"},b9={class:"accordion-item"},w9={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:{}},k9={class:"accordion-body"},x9={class:"mb-0"},E9={key:0,class:"d-flex flex-wrap py-5"},S9={key:1,class:"table-responsive"},$9={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},D9={class:"fw-bold text-gray-800"},T9={class:"w-50px"},N9={class:"w-50px"},C9={class:"w-50px text-end pe-5"},O9={class:"accordion-item"},P9={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},I9={class:"accordion-body"},M9={class:"mb-0"},A9={class:"d-flex flex-wrap py-2"},V9={class:"flex-equal ms-2 me-2"},R9={class:"table table-flush fw-bold gy-1 mb-0"},L9={class:"text-gray-800"},F9={class:"text-gray-800"},Y9={class:"text-gray-800"},j9={class:"text-gray-800"},B9={class:"text-gray-800"},H9={class:"flex-equal ms-2 me-2"},W9={class:"table table-flush fw-bold gy-1"},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_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Q9={class:"accordion-body"},J9={class:"mb-0"},eU={class:"d-flex flex-wrap py-5"},tU={class:"flex-equal ms-2 me-5"},rU={class:"table table-flush fw-bold gy-1"},iU={class:"text-gray-800 text-hover-primary"},nU={class:"text-gray-800 text-hover-primary"},aU={class:"text-gray-800 text-hover-primary"},sU={class:"text-gray-800 text-hover-primary"},oU={class:"flex-equal"},lU={class:"table table-flush fw-bold gy-1"},dU={class:"text-gray-800"},cU={class:"text-gray-800"},uU={key:0,class:"text-gray-800"},hU={key:1,class:"text-gray-800"},fU={class:"text-gray-800"};function pU(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",y9,[h.createElementVNode("div",_9,[h.createElementVNode("div",b9,[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",w9,[h.createElementVNode("div",k9,[h.createElementVNode("div",x9,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",E9,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",S9,[h.createElementVNode("table",$9,[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",D9,[(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",T9,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",N9,h.toDisplayString(o.qty),1),h.createElementVNode("td",C9,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",O9,[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",P9,[h.createElementVNode("div",I9,[h.createElementVNode("div",M9,[h.createElementVNode("div",A9,[h.createElementVNode("div",V9,[h.createElementVNode("table",R9,[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",L9,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",F9,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",Y9,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",j9,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",B9,h.toDisplayString(e.incoming.transaction.TRANS_SETTLE_UTC_TS),1)])])])]),h.createElementVNode("div",H9,[h.createElementVNode("table",W9,[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",G9,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",z9,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",U9,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",X9,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",q9,h.toDisplayString(e.incoming.transaction.CARD_BANK),1)])])])])])])])])]),h.createElementVNode("div",K9,[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",Z9,[h.createElementVNode("div",Q9,[h.createElementVNode("div",J9,[h.createElementVNode("div",eU,[h.createElementVNode("div",tU,[h.createElementVNode("table",rU,[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",iU,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",nU,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",aU,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",sU,[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",oU,[h.createElementVNode("table",lU,[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",dU,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",cU,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",uU," Not Provided ")):(h.openBlock(),h.createElementBlock("td",hU,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",fU,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const mU=ar(g9,[["render",pU]]),vU=h.defineComponent({name:"chargeback-details",components:{ReasonExplained:D6,NmiDetails:X6,USAEPayDetails:kW,SquareUp:_G,FluidPayDetails:gz,NuveiDetails:v9,InovioPayDetails:mU},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)??[]}),c=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{}}}),m=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{}}}),v=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 Pi(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 e6(t.value,y.value,a.value):n.value.setItems(y.value))};return{timelineRef:t,incomingData:r,formattedPhone:E,lastAction:b,transaction:v,cardholder:s,actions:o,card:l,orders:d,orders2:c,crm_details:f,crm2_details:m}}}),gU={class:"card card-flush mb-5"},yU={class:"px-9 mb-7"},_U={class:"d-flex flex-wrap"},bU={class:"flex-equal"},wU={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},kU={class:"text-gray-800"},xU={class:"text-gray-800"},EU={class:"text-gray-800"},SU={class:"text-boldest"},$U={class:"text-gray-800"},DU={class:"flex-equal"},TU={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},NU={class:"text-gray-800 badge badge-sm badge-light-warning p-2"},CU={class:"text-gray-800"},OU={class:"text-dark p-0",href:"#chargeback_reason_explained","data-bs-toggle":"modal"},PU={class:"text-gray-800"},IU={class:"ms-n3"},MU={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.png",alt:"",class:"h-20px"},AU={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.png",alt:"",class:"h-20px"},VU={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.png",alt:"",class:"h-20px"},RU={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.png",alt:"",class:"h-20px"},LU={class:"text-gray-800"},FU={key:0,class:"card card-flush mb-5"},YU={class:"px-9 mb-7"},jU={class:"d-flex flex-wrap"},BU={class:"flex-equal"},HU={class:"table table-flush fw-bold gy-1"},WU={class:"text-gray-800"},GU={class:"text-gray-800"},zU={class:"text-gray-800"},UU={class:"text-gray-800"},XU={class:"flex-equal"},qU={class:"table table-flush fw-bold gy-1"},KU={class:"text-gray-800"},ZU={class:"text-gray-800"},QU={class:"text-gray-800"},JU={class:"rounded border pt-0 mb-5"},e7={class:"accordion fs-7",id:"kt_accordion"},t7={key:0,class:"accordion-item"},r7={id:"kt_accordion_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_1","data-bs-parent":"#kt_accordion"},i7={class:"accordion-body mt-0 p-1 px-5"},n7={class:"table-responsive"},a7={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},s7={class:"fw-bold text-gray-800 fs-8"},o7={class:"text-end"},l7={key:1,class:"accordion-item"},d7={id:"kt_accordion_body_6",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_6","data-bs-parent":"#kt_accordion"},c7={class:"accordion-body mt-0 p-1 px-5"},u7={class:"table-responsive"},h7={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},f7={class:"fw-bold text-gray-800 fs-8"},p7={key:2,class:"accordion-item"},m7={id:"kt_accordion_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_header_2","data-bs-parent":"#kt_accordion"},v7={class:"accordion-body mt-0 p-1 px-5"},g7={class:"table-responsive"},y7={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},_7={class:"fw-bold text-gray-800 fs-8"},b7={class:"text-end"},w7={key:3,class:"accordion-item"},k7={id:"kt_accordion_body_3",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_3","data-bs-parent":"#kt_accordion"},x7={class:"accordion-body mt-0 p-1 px-5"},E7={class:"table-responsive"},S7={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},$7={class:"fw-bold text-gray-800 fs-8"},D7={class:"rounded border pt-0 mb-5"},T7={class:"accordion fs-7",id:"kt_accordion_5"},N7={class:"card card-body"},C7={class:"card-flush h-auto pt-1"},O7={class:"mb-0"},P7={ref:"timelineRef"};function I7(e,r,t,a,n,s){const o=h.resolveComponent("NmiDetails"),l=h.resolveComponent("USAEPayDetails"),d=h.resolveComponent("SquareUp"),c=h.resolveComponent("FluidPayDetails"),f=h.resolveComponent("NuveiDetails"),m=h.resolveComponent("InovioPayDetails"),v=h.resolveComponent("ReasonExplained");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",gU,[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",yU,[h.createElementVNode("div",_U,[h.createElementVNode("div",bU,[h.createElementVNode("table",wU,[h.createElementVNode("tr",null,[r[0]||(r[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"ID:",-1)),h.createElementVNode("td",kU,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",xU,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",EU,[h.createTextVNode(" $"+h.toDisplayString(e.incoming.dispute_amount),1),h.createElementVNode("span",SU,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",$U,h.toDisplayString(e.incoming.dispute_date),1)])])]),h.createElementVNode("div",DU,[h.createElementVNode("table",TU,[h.createElementVNode("tr",null,[r[4]||(r[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Due Date:",-1)),h.createElementVNode("td",NU,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",CU,[h.createElementVNode("a",OU,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",PU,[h.createElementVNode("span",IU,[e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Visa"?(h.openBlock(),h.createElementBlock("img",MU)):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",AU)):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",VU)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Discover"?(h.openBlock(),h.createElementBlock("img",RU)):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",LU,h.toDisplayString(e.incoming.transaction_date),1)])])])])])]),e.cardholder&&Object.keys(e.cardholder).length>0?(h.openBlock(),h.createElementBlock("div",FU,[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",YU,[h.createElementVNode("div",jU,[h.createElementVNode("div",BU,[h.createElementVNode("table",HU,[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",WU,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",GU,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",zU,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",UU,h.toDisplayString(e.cardholder.billing_address),1)])])])]),h.createElementVNode("div",XU,[h.createElementVNode("table",qU,[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",KU,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",ZU,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",QU,h.toDisplayString(e.cardholder.shipping_address),1)])])])])])])])):h.createCommentVNode("",!0),h.createElementVNode("div",JU,[h.createElementVNode("div",e7,[e.orders&&Object.keys(e.orders).length>0?(h.openBlock(),h.createElementBlock("div",t7,[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",r7,[h.createElementVNode("div",i7,[h.createElementVNode("div",n7,[h.createElementVNode("table",a7,[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",s7,[(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",o7,h.toDisplayString(y.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm_details&&Object.keys(e.crm_details).length>0?(h.openBlock(),h.createElementBlock("div",l7,[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",d7,[h.createElementVNode("div",c7,[h.createElementVNode("div",u7,[h.createElementVNode("table",h7,[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",f7,[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",p7,[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",m7,[h.createElementVNode("div",v7,[h.createElementVNode("div",g7,[h.createElementVNode("table",y7,[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",_7,[(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",b7,h.toDisplayString(y.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm2_details&&Object.keys(e.crm2_details).length>0?(h.openBlock(),h.createElementBlock("div",w7,[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",k7,[h.createElementVNode("div",x7,[h.createElementVNode("div",E7,[h.createElementVNode("table",S7,[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",$7,[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(m,{key:5,incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0),h.createElementVNode("div",D7,[h.createElementVNode("div",T7,[h.createElementVNode("div",N7,[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",C7,[h.createElementVNode("div",O7,[h.createElementVNode("div",P7,null,512)])])])])]),h.createVNode(v,{reason_explained:e.reason_explained,reason:e.reason},null,8,["reason_explained","reason"])],64)}const M7=ar(vU,[["render",I7]]),A7=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}}}),V7={class:"card card-flush mb-0","data-kt-sticky":"false","data-kt-sticky-name":"merchants-summary"},R7={class:"card-body px-5 pe-8 pt-0 fs-7"},L7={class:"mb-4"},F7={class:"row pb-4 align-items-center"},Y7={class:"col text-end"},j7={class:"card-flush p-0"},B7={class:"fw-bold text-gray-800"},H7={class:"d-block"},W7={class:"row pb-4 align-items-center"},G7={class:"col text-end"},z7={class:"card-flush p-0"},U7={class:"fw-bold text-gray-800"},X7={class:"d-block"},q7={class:"row pb-4 align-items-center"},K7={class:"col text-end"},Z7={class:"card-flush p-0"},Q7={class:"fw-bold text-gray-800"},J7={class:"d-block"},eX={class:"row pb-4 align-items-center"},tX={class:"col text-end"},rX={class:"card-flush p-0"},iX={class:"fw-bold text-gray-800"},nX={class:"d-block"},aX={class:"row pb-4 align-items-center"},sX={class:"col text-end"},oX={class:"card-flush p-0"},lX={class:"fw-bold text-gray-800"},dX={class:"d-block"},cX={class:"row pb-4 align-items-center"},uX={class:"col text-end"},hX={class:"card-flush p-0"},fX={class:"fw-bold text-gray-800"},pX={key:0,class:"d-block"},mX={key:1,class:"d-block"},vX={class:"row pb-4 align-items-center"},gX={class:"col text-end"},yX={class:"card-flush p-0"},_X={class:"fw-bold text-gray-800"},bX={class:"d-block"},wX={class:"row pb-4 align-items-center"},kX={class:"col text-end"},xX={class:"card-flush p-0"},EX={class:"fw-bold text-gray-800"},SX={class:"d-block"};function $X(e,r,t,a,n,s){return h.openBlock(),h.createElementBlock("div",V7,[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",R7,[h.createElementVNode("div",L7,[h.createElementVNode("div",F7,[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",Y7,[h.createElementVNode("div",j7,[h.createElementVNode("div",B7,[h.createElementVNode("span",H7,h.toDisplayString(e.incoming.chargeback_status),1)])])])]),h.createElementVNode("div",W7,[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",G7,[h.createElementVNode("div",z7,[h.createElementVNode("div",U7,[h.createElementVNode("span",X7,h.toDisplayString(e.merchant.dba_name),1)])])])]),h.createElementVNode("div",q7,[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",K7,[h.createElementVNode("div",Z7,[h.createElementVNode("div",Q7,[h.createElementVNode("span",J7,h.toDisplayString(e.merchant.mid_number),1)])])])]),h.createElementVNode("div",eX,[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",tX,[h.createElementVNode("div",rX,[h.createElementVNode("div",iX,[h.createElementVNode("span",nX,h.toDisplayString(e.merchant.merchant_id),1)])])])]),h.createElementVNode("div",aX,[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",sX,[h.createElementVNode("div",oX,[h.createElementVNode("div",lX,[h.createElementVNode("span",dX,h.toDisplayString(e.processor.name),1)])])])]),h.createElementVNode("div",cX,[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",uX,[h.createElementVNode("div",hX,[h.createElementVNode("div",fX,[e.incoming.sent_date=="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("span",pX," Not Sent ")):(h.openBlock(),h.createElementBlock("span",mX," Sent "))])])])]),h.createElementVNode("div",vX,[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",gX,[h.createElementVNode("div",yX,[h.createElementVNode("div",_X,[h.createElementVNode("span",bX,h.toDisplayString(e.reason.category),1)])])])]),h.createElementVNode("div",wX,[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",kX,[h.createElementVNode("div",xX,[h.createElementVNode("div",EX,[h.createElementVNode("span",SX,h.toDisplayString(e.incoming.reason_condition),1)])])])])])])])}const DX=ar(A7,[["render",$X]]),sr={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()}},TX=h.defineComponent({name:"incoming-details",components:{Details:M7,Summary:DX},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"),sr.setApiKey(e.apiKey),setTimeout(async()=>{await T(),await f(),DrawerComponent.reinitialization()},500)});const c=h.ref([]),f=async()=>{const{data:I}=await fetch("apis/connections?limit=100");I.success&&(c.value=[...I.data])},m=h.computed(()=>{const I=t.value.transaction;return I&&Object.keys(I).length>0&&I.transaction_id&&I.transaction_id!==""}),v=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 sr.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 sr.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 sr.get(`chargebacks/reasons?code=${t.value.reason}`);n.value=I.data[0]}catch{n.value={}}try{const{data:I}=await sr.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 sr.get(`processors/isos/${a.value.processor_id}`);o.value=I.data[0]}catch{o.value={}}try{const{data:I}=await sr.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 sr.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 sr.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 sr.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 sr.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:m,incomingWithoutTransaction:N,merchant:a,reason:n,reason_explained:s,processor:o,getFoundTime:v,getPopulatedTime:b,resetIncoming:P,getSentTime:w,getSentDate:S,getFoundDate:y,getPopulatedDate:E,connections:c,onOpenResponseDrawer:A,onFormEntry:F,submitTemplate:V,templates:l,templateImages:d,apiSyncItems:D}}}),NX={class:"row g-5 g-xl-10"},CX={class:"col-xl-8"},OX={class:"col-xl-4 mb-10"},PX={class:"card"},IX={class:"card"},MX={class:"card card-body d-flex align-items-start mt-5 pt-5"},AX={class:"mb-auto"},VX={class:"card-body pt-5"},RX={class:"timeline-label"},LX={key:0,class:"timeline-item"},FX={class:"timeline-label text-gray-800 fs-8"},YX={class:"text-gray-800 ps-3 fs-8"},jX={key:1,class:"timeline-item"},BX={key:2,class:"timeline-item"},HX={class:"timeline-label text-gray-800 fs-8"},WX={class:"text-gray-800 ps-3 fs-8"},GX={key:3,class:"timeline-item"},zX={key:4,class:"timeline-item"},UX={class:"timeline-label text-gray-800 fs-8"},XX={class:"timeline-content d-flex"},qX={class:"text-gray-800 ps-3 fs-8"},KX={key:5,class:"timeline-item"};function ZX(e,r,t,a,n,s){const o=h.resolveComponent("Details"),l=h.resolveComponent("Summary");return h.openBlock(),h.createElementBlock("div",NX,[h.createElementVNode("div",CX,[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",OX,[h.createElementVNode("div",PX,[h.createElementVNode("div",IX,[h.createVNode(l,{reason:e.reason,processor:e.processor,merchant:e.merchant,incoming:e.incoming},null,8,["reason","processor","merchant","incoming"])])]),h.createElementVNode("div",MX,[h.createElementVNode("div",AX,[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",VX,[h.createElementVNode("div",RX,[e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",LX,[h.createElementVNode("div",FX,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",YX," Transaction Found ("+h.toDisplayString(e.getFoundDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",jX,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",BX,[h.createElementVNode("div",HX,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",WX," Details Populated ("+h.toDisplayString(e.getPopulatedDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",GX,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",zX,[h.createElementVNode("div",UX,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",XX,[h.createElementVNode("span",qX,"Response Sent ("+h.toDisplayString(e.getSentDate)+")",1)])])):(h.openBlock(),h.createElementBlock("div",KX,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 QX={props:{apiKey:{type:String,required:!0},incomingId:{type:String,required:!0}},data(){return{data:null}},components:{IncomingDetails:ar(TX,[["render",ZX]])}};function JX(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 W_=ar(QX,[["render",JX]]),eq={install(e){e.component("Chargebacks",W_)}};Wr.Chargebacks=W_,Wr.default=eq,Object.defineProperties(Wr,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|