@riskdefy/chargebacks 1.0.3 → 1.0.5
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.es.js +30409 -0
- package/dist/Chargebacks.umd.js +1284 -0
- package/dist/chargebacks.css +1 -0
- package/package.json +9 -5
- package/dist/index.js +0 -1
- package/src/components/Chargebacks.vue +0 -47
- package/src/index.js +0 -9
- package/vite.config.js +0 -22
@@ -0,0 +1,1284 @@
|
|
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);/**
|
6
|
+
* vis-timeline and vis-graph2d
|
7
|
+
* https://visjs.github.io/vis-timeline/
|
8
|
+
*
|
9
|
+
* Create a fully customizable, interactive timeline with items and ranges.
|
10
|
+
*
|
11
|
+
* @version 7.7.3
|
12
|
+
* @date 2023-10-27T17:57:57.604Z
|
13
|
+
*
|
14
|
+
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
15
|
+
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
16
|
+
*
|
17
|
+
* @license
|
18
|
+
* vis.js is dual licensed under both
|
19
|
+
*
|
20
|
+
* 1. The Apache 2.0 License
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
22
|
+
*
|
23
|
+
* and
|
24
|
+
*
|
25
|
+
* 2. The MIT License
|
26
|
+
* http://opensource.org/licenses/MIT
|
27
|
+
*
|
28
|
+
* vis.js may be distributed under either license.
|
29
|
+
*/var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function U(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ir(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 lc={exports:{}},Om;function vr(){return Om||(Om=1,function(e,t){(function(r,a){e.exports=a()})(qt,function(){var r;function a(){return r.apply(null,arguments)}function n(u){r=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 y=[],_,E=u.length;for(_=0;_<E;++_)y.push(p(u[_],_));return y}function g(u,p){for(var y in p)l(p,y)&&(u[y]=p[y]);return l(p,"toString")&&(u.toString=p.toString),l(p,"valueOf")&&(u.valueOf=p.valueOf),u}function b(u,p,y,_){return c1(u,p,y,_,!0).utc()}function S(){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=S()),u._pf}var k;Array.prototype.some?k=Array.prototype.some:k=function(u){var p=Object(this),y=p.length>>>0,_;for(_=0;_<y;_++)if(_ in p&&u.call(this,p[_],_,p))return!0;return!1};function T(u){if(u._isValid==null){var p=w(u),y=k.call(p.parsedDateParts,function(E){return E!=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&&y);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 D(u){var p=b(NaN);return u!=null?g(w(p),u):w(p).userInvalidated=!0,p}var N=a.momentProperties=[],L=!1;function A(u,p){var y,_,E,$=N.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(y=0;y<$;y++)_=N[y],E=p[_],c(E)||(u[_]=E);return u}function R(u){A(this,u),this._d=new Date(u._d!=null?u._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),L===!1&&(L=!0,a.updateOffset(this),L=!1)}function C(u){return u instanceof R||u!=null&&u._isAMomentObject!=null}function j(u){a.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+u)}function O(u,p){var y=!0;return g(function(){if(a.deprecationHandler!=null&&a.deprecationHandler(null,u),y){var _=[],E,$,P,J=arguments.length;for($=0;$<J;$++){if(E="",typeof arguments[$]=="object"){E+=`
|
30
|
+
[`+$+"] ";for(P in arguments[0])l(arguments[0],P)&&(E+=P+": "+arguments[0][P]+", ");E=E.slice(0,-2)}else E=arguments[$];_.push(E)}j(u+`
|
31
|
+
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(je),a.fn=Y,a.min=lae,a.max=dae,a.now=cae,a.utc=b,a.unix=Vse,a.months=Yse,a.isDate=m,a.locale=Fn,a.invalid=D,a.duration=Nr,a.isMoment=C,a.weekdays=Bse,a.parseZone=Fse,a.localeData=cn,a.isDuration=md,a.monthsShort=jse,a.weekdaysMin=Wse,a.defineLocale=Mf,a.updateLocale=Fie,a.locales=Yie,a.weekdaysShort=Hse,a.normalizeUnits=At,a.relativeTimeRounding=yoe,a.relativeTimeThreshold=_oe,a.calendarFormat=Mae,a.prototype=Y,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})}(lc)),lc.exports}(function(e,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
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=r.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,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
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=r.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,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
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=r.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,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
37
|
+
var a=r.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,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
38
|
+
var a=r.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,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
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=r.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,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
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=r.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,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
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=r.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,t){(function(r,a){a(typeof Ir=="function"?vr():r.moment)})(qt,function(r){//! moment.js locale configuration
|
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 mt(e,t){return j2(e)||mR(e,t)||Vy(e,t)||WR()}function GR(e){if(Cy(e))return gu(e)}function zR(e){if(typeof sa<"u"&&pg(e)!=null||e["@@iterator"]!=null)return Ly(e)}function UR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ve(e){return GR(e)||zR(e)||Vy(e)||UR()}var KR=py,Zr=U(KR),qR=Be,XR=qR("Array").concat,QR=Te,ZR=XR,yu=Array.prototype,JR=function(e){var t=e.concat;return e===yu||QR(yu,e)&&t===yu.concat?ZR:t},eL=JR,tL=eL,rL=tL,Ie=U(rL),nL=My,vt=U(nL),iL=kt,aL=Ee,sL=us,oL=hs,lL=Xt,dL=aL([].concat),_u=iL("Reflect","ownKeys")||function(t){var r=sL.f(lL(t)),a=oL.f;return a?dL(r,a(t)):r},cL=X,uL=_u;cL({target:"Reflect",stat:!0},{ownKeys:uL});var hL=Se,fL=hL.Reflect.ownKeys,pL=fL,mL=pL,vL=mL,Fy=U(vL),gL=Ny,ae=U(gL),yL=X,_L=Xr.map,bL=cs,wL=bL("map");yL({target:"Array",proto:!0,forced:!wL},{map:function(t){return _L(this,t,arguments.length>1?arguments[1]:void 0)}});var EL=Be,SL=EL("Array").map,kL=Te,xL=SL,bu=Array.prototype,TL=function(e){var t=e.map;return e===bu||kL(bu,e)&&t===bu.map?xL:t},$L=TL,DL=$L,NL=DL,ke=U(NL),CL=X,OL=St,Yy=os,AL=me,IL=AL(function(){Yy(1)});CL({target:"Object",stat:!0,forced:IL},{keys:function(t){return Yy(OL(t))}});var PL=Se,ML=PL.Object.keys,RL=ML,LL=RL,VL=LL,nt=U(VL),FL=X,YL=Ee,jy=Date,jL=YL(jy.prototype.getTime);FL({target:"Date",stat:!0},{now:function(){return jL(new jy)}});var BL=Se,HL=BL.Date.now,WL=HL,GL=WL,zL=GL,Qt=U(zL),By=Ee,UL=Lt,KL=lt,qL=Je,Hy=ys,XL=Ja,Wy=Function,QL=By([].concat),ZL=By([].join),wu={},JL=function(e,t,r){if(!qL(wu,t)){for(var a=[],n=0;n<t;n++)a[n]="a["+n+"]";wu[t]=Wy("C,a","return new C("+ZL(a,",")+")")}return wu[t](e,r)},Gy=XL?Wy.bind:function(t){var r=UL(this),a=r.prototype,n=Hy(arguments,1),s=function(){var l=QL(n,Hy(arguments));return this instanceof s?JL(r,l.length,l):r.apply(t,l)};return KL(a)&&(s.prototype=a),s},eV=X,zy=Gy;eV({target:"Function",proto:!0,forced:Function.bind!==zy},{bind:zy});var tV=Be,rV=tV("Function").bind,nV=Te,iV=rV,Eu=Function.prototype,aV=function(e){var t=e.bind;return e===Eu||nV(Eu,e)&&t===Eu.bind?iV:t},sV=aV,Uy=sV,oV=Uy,I=U(oV),lV=me,oa=function(e,t){var r=[][e];return!!r&&lV(function(){r.call(null,t||function(){return 1},1)})},dV=Xr.forEach,cV=oa,uV=cV("forEach"),hV=uV?[].forEach:function(t){return dV(this,t,arguments.length>1?arguments[1]:void 0)},fV=X,Ky=hV;fV({target:"Array",proto:!0,forced:[].forEach!==Ky},{forEach:Ky});var pV=Be,mV=pV("Array").forEach,vV=mV,gV=vV,yV=Ur,_V=Je,bV=Te,wV=gV,Su=Array.prototype,EV={DOMTokenList:!0,NodeList:!0},qy=function(e){var t=e.forEach;return e===Su||bV(Su,e)&&t===Su.forEach||_V(EV,yV(e))?wV:t},SV=qy,G=U(SV),kV=X,xV=Ee,TV=$n,$V=xV([].reverse),Xy=[1,2];kV({target:"Array",proto:!0,forced:String(Xy)===String(Xy.reverse())},{reverse:function(){return TV(this)&&(this.length=this.length),$V(this)}});var DV=Be,NV=DV("Array").reverse,CV=Te,OV=NV,ku=Array.prototype,AV=function(e){var t=e.reverse;return e===ku||CV(ku,e)&&t===ku.reverse?OV:t},IV=AV,Qy=IV,PV=Qy,MV=U(PV),Zy=qi,RV=TypeError,Jy=function(e,t){if(!delete e[t])throw new RV("Cannot delete property "+Zy(t)+" of "+Zy(e))},LV=X,VV=St,FV=ss,YV=es,jV=Vt,BV=Oy,HV=qo,WV=Xo,GV=na,xu=Jy,zV=cs,UV=zV("splice"),KV=Math.max,qV=Math.min;LV({target:"Array",proto:!0,forced:!UV},{splice:function(t,r){var a=VV(this),n=jV(a),s=FV(t,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=qV(KV(YV(r),0),n-s)),HV(n+l-d),c=WV(a,d),f=0;f<d;f++)m=s+f,m in a&&GV(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]:xu(a,v);for(f=n;f>n-d+l;f--)xu(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]:xu(a,v);for(f=0;f<l;f++)a[f+s]=arguments[f+2];return BV(a,n-d+l),c}});var XV=Be,QV=XV("Array").splice,ZV=Te,JV=QV,Tu=Array.prototype,eF=function(e){var t=e.splice;return e===Tu||ZV(Tu,e)&&t===Tu.splice?JV:t},tF=eF,rF=tF,nF=rF,xt=U(nF),e_=rt,iF=Ee,aF=dt,sF=me,$u=os,oF=hs,lF=is,dF=St,cF=Vo,la=Object.assign,t_=Object.defineProperty,uF=iF([].concat),hF=!la||sF(function(){if(e_&&la({b:1},la(t_({},"a",{enumerable:!0,get:function(){t_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach(function(n){t[n]=n}),la({},e)[r]!==7||$u(la({},t)).join("")!==a})?function(t,r){for(var a=dF(t),n=arguments.length,s=1,o=oF.f,l=lF.f;n>s;)for(var d=cF(arguments[s++]),c=o?uF($u(d),o(d)):$u(d),f=c.length,m=0,v;f>m;)v=c[m++],(!e_||aF(l,d,v))&&(a[v]=d[v]);return a}:la,fF=X,r_=hF;fF({target:"Object",stat:!0,forced:Object.assign!==r_},{assign:r_});var pF=Se,mF=pF.Object.assign,vF=mF,gF=vF,yF=gF,Jr=U(yF),_F=X,bF=Pc.includes,wF=me,EF=wF(function(){return!Array(1).includes()});_F({target:"Array",proto:!0,forced:EF},{includes:function(t){return bF(this,t,arguments.length>1?arguments[1]:void 0)}});var SF=Be,kF=SF("Array").includes,xF=lt,TF=zr,$F=Le,DF=$F("match"),NF=function(e){var t;return xF(e)&&((t=e[DF])!==void 0?!!t:TF(e)==="RegExp")},CF=NF,OF=TypeError,AF=function(e){if(CF(e))throw new OF("The method doesn't accept regular expressions");return e},IF=Le,PF=IF("match"),MF=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[PF]=!1,"/./"[e](t)}catch{}}return!1},RF=X,LF=Ee,VF=AF,FF=Gi,n_=dr,YF=MF,jF=LF("".indexOf);RF({target:"String",proto:!0,forced:!YF("includes")},{includes:function(t){return!!~jF(n_(FF(this)),n_(VF(t)),arguments.length>1?arguments[1]:void 0)}});var BF=Be,HF=BF("String").includes,i_=Te,WF=kF,GF=HF,Du=Array.prototype,Nu=String.prototype,zF=function(e){var t=e.includes;return e===Du||i_(Du,e)&&t===Du.includes?WF:typeof e=="string"||e===Nu||i_(Nu,e)&&t===Nu.includes?GF:t},UF=zF,KF=UF,qF=KF,Nn=U(qF),XF=X,QF=me,ZF=St,a_=ls,JF=Ov,e5=QF(function(){a_(1)});XF({target:"Object",stat:!0,forced:e5,sham:!JF},{getPrototypeOf:function(t){return a_(ZF(t))}});var t5=Se,r5=t5.Object.getPrototypeOf,n5=r5,s_=n5,i5=s_,o_=U(i5),a5=X,s5=Xr.filter,o5=cs,l5=o5("filter");a5({target:"Array",proto:!0,forced:!l5},{filter:function(t){return s5(this,t,arguments.length>1?arguments[1]:void 0)}});var d5=Be,c5=d5("Array").filter,u5=Te,h5=c5,Cu=Array.prototype,f5=function(e){var t=e.filter;return e===Cu||u5(Cu,e)&&t===Cu.filter?h5:t},p5=f5,m5=p5,v5=m5,te=U(v5),l_=rt,g5=me,d_=Ee,y5=ls,_5=os,b5=yr,w5=is.f,c_=d_(w5),E5=d_([].push),S5=l_&&g5(function(){var e=Object.create(null);return e[2]=2,!c_(e,2)}),u_=function(e){return function(t){for(var r=b5(t),a=_5(r),n=S5&&y5(r)===null,s=a.length,o=0,l=[],d;s>o;)d=a[o++],(!l_||(n?d in r:c_(r,d)))&&E5(l,e?[d,r[d]]:r[d]);return l}},h_={entries:u_(!0),values:u_(!1)},k5=X,x5=h_.values;k5({target:"Object",stat:!0},{values:function(t){return x5(t)}});var T5=Se,$5=T5.Object.values,D5=$5,N5=D5,C5=N5,Ou=U(C5),Au=`
|
45
|
+
\v\f\r \u2028\u2029\uFEFF`,O5=Ee,A5=Gi,I5=dr,Iu=Au,f_=O5("".replace),P5=RegExp("^["+Iu+"]+"),M5=RegExp("(^|[^"+Iu+"])["+Iu+"]+$"),R5=function(e){return function(t){var r=I5(A5(t));return e&1&&(r=f_(r,P5,"")),e&2&&(r=f_(r,M5,"$1")),r}},p_={trim:R5(3)},m_=Re,L5=me,V5=Ee,F5=dr,Y5=p_.trim,v_=Au,bs=m_.parseInt,g_=m_.Symbol,y_=g_&&g_.iterator,__=/^[+-]?0x/i,j5=V5(__.exec),B5=bs(v_+"08")!==8||bs(v_+"0x16")!==22||y_&&!L5(function(){bs(Object(y_))}),H5=B5?function(t,r){var a=Y5(F5(t));return bs(a,r>>>0||(j5(__,a)?16:10))}:bs,W5=X,b_=H5;W5({global:!0,forced:parseInt!==b_},{parseInt:b_});var G5=Se,z5=G5.parseInt,U5=z5,K5=U5,q5=K5,Zt=U(q5),X5=X,Q5=Oc,Z5=Pc.indexOf,J5=oa,Pu=Q5([].indexOf),w_=!!Pu&&1/Pu([1],1,-0)<0,eY=w_||!J5("indexOf");X5({target:"Array",proto:!0,forced:eY},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return w_?Pu(this,t,r)||0:Z5(this,t,r)}});var tY=Be,rY=tY("Array").indexOf,nY=Te,iY=rY,Mu=Array.prototype,aY=function(e){var t=e.indexOf;return e===Mu||nY(Mu,e)&&t===Mu.indexOf?iY:t},sY=aY,oY=sY,lY=oY,$e=U(lY),dY=X,cY=h_.entries;dY({target:"Object",stat:!0},{entries:function(t){return cY(t)}});var uY=Se,hY=uY.Object.entries,fY=hY,pY=fY,mY=pY,vY=U(mY),gY=X,yY=rt,_Y=Zn;gY({target:"Object",stat:!0,sham:!yY},{create:_Y});var bY=Se,wY=bY.Object,EY=function(t,r){return wY.create(t,r)},SY=EY,E_=SY,kY=E_,ws=U(kY),Ru=Se,xY=Zi;Ru.JSON||(Ru.JSON={stringify:JSON.stringify});var TY=function(t,r,a){return xY(Ru.JSON.stringify,null,arguments)},$Y=TY,DY=$Y,NY=DY,Yt=U(NY),CY=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",OY=TypeError,S_=function(e,t){if(e<t)throw new OY("Not enough arguments");return e},k_=Re,AY=Zi,IY=ze,PY=CY,MY=Sn,RY=ys,LY=S_,VY=k_.Function,FY=/MSIE .\./.test(MY)||PY&&function(){var e=k_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),x_=function(e,t){var r=t?2:1;return FY?function(a,n){var s=LY(arguments.length,1)>r,o=IY(a)?a:VY(a),l=s?RY(arguments,r):[],d=s?function(){AY(o,this,l)}:o;return t?e(d,n):e(d)}:e},YY=X,T_=Re,jY=x_,$_=jY(T_.setInterval,!0);YY({global:!0,bind:!0,forced:T_.setInterval!==$_},{setInterval:$_});var BY=X,D_=Re,HY=x_,N_=HY(D_.setTimeout,!0);BY({global:!0,bind:!0,forced:D_.setTimeout!==N_},{setTimeout:N_});var WY=Se,GY=WY.setTimeout,zY=GY,gt=U(zY),UY=St,C_=ss,KY=Vt,qY=function(t){for(var r=UY(this),a=KY(r),n=arguments.length,s=C_(n>1?arguments[1]:void 0,a),o=n>2?arguments[2]:void 0,l=o===void 0?a:C_(o,a);l>s;)r[s++]=t;return r},XY=X,QY=qY;XY({target:"Array",proto:!0},{fill:QY});var ZY=Be,JY=ZY("Array").fill,e3=Te,t3=JY,Lu=Array.prototype,r3=function(e){var t=e.fill;return e===Lu||e3(Lu,e)&&t===Lu.fill?t3:t},n3=r3,i3=n3,a3=i3,O_=U(a3),A_={exports:{}};(function(e){e.exports=t;function t(a){if(a)return r(a)}function r(a){for(var n in t.prototype)a[n]=t.prototype[n];return a}t.prototype.on=t.prototype.addEventListener=function(a,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(n),this},t.prototype.once=function(a,n){function s(){this.off(a,s),n.apply(this,arguments)}return s.fn=n,this.on(a,s),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.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},t.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},t.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]},t.prototype.hasListeners=function(a){return!!this.listeners(a).length}})(A_);var s3=A_.exports,Vu=U(s3);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
46
|
+
* http://naver.github.io/egjs
|
47
|
+
*
|
48
|
+
* Forked By Naver egjs
|
49
|
+
* 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
|
+
`+r+` AT
|
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 ub=cb(function(e,t,r){for(var a=Object.keys(t),n=0;n<a.length;)(!r||r&&e[a[n]]===void 0)&&(e[a[n]]=t[a[n]]),n++;return e},"extend","Use `assign`."),W3=cb(function(e,t){return ub(e,t,!0)},"merge","Use `assign`.");function G3(e,t,r){var a=t.prototype,n;n=e.prototype=Object.create(a),n.constructor=e,n._super=a,r&&ni(n,r)}function hb(e,t){return function(){return e.apply(t,arguments)}}var fb=function(){var e=function(r,a){return a===void 0&&(a={}),new db(r,br({recognizers:sb.concat()},a))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=F_,e.DIRECTION_DOWN=ca,e.DIRECTION_LEFT=xs,e.DIRECTION_RIGHT=Ts,e.DIRECTION_UP=$s,e.DIRECTION_HORIZONTAL=Mr,e.DIRECTION_VERTICAL=oi,e.DIRECTION_NONE=ll,e.DIRECTION_DOWN=ca,e.INPUT_START=Tt,e.INPUT_MOVE=si,e.INPUT_END=et,e.INPUT_CANCEL=jt,e.STATE_POSSIBLE=hl,e.STATE_BEGAN=ur,e.STATE_CHANGED=fa,e.STATE_ENDED=Cn,e.STATE_RECOGNIZED=rn,e.STATE_CANCELLED=As,e.STATE_FAILED=Rr,e.Manager=db,e.Input=ua,e.TouchAction=j_,e.TouchInput=zu,e.MouseInput=Uu,e.PointerEventInput=q_,e.TouchMouseInput=Z_,e.SingleTouchInput=B3,e.Recognizer=Is,e.AttrRecognizer=pa,e.Tap=Ku,e.Pan=qu,e.Swipe=tb,e.Pinch=rb,e.Rotate=nb,e.Press=ib,e.on=Ns,e.off=Cs,e.each=tn,e.merge=W3,e.extend=ub,e.bindFn=hb,e.assign=ni,e.inherit=G3,e.bindFn=hb,e.prefixed=sl,e.toArray=Os,e.inArray=di,e.uniqueArray=Gu,e.splitStr=Ds,e.boolOrFn=cl,e.hasParent=Hu,e.addEventListeners=Ns,e.removeEventListeners=Cs,e.defaults=ni({},ab,{preset:sb}),e}();fb.defaults;var pb=fb;function Xu(e,t){var r=typeof Zr<"u"&&Tn(e)||e["@@iterator"];if(!r){if(ae(e)||(r=z3(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.
|
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+`"?
|
54
|
+
|
55
|
+
`:o.distance<=d&&s.distance>o.distance?c=" in "+e.printLocation(s.path,r,"")+"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,r):c=". Did you mean one of these: "+e.print(nt(a))+e.printLocation(n,r),console.error('%cUnknown option detected: "'+r+'"'+c,oh),Fs=!0}},{key:"findInOptions",value:function(r,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],c=r.toLowerCase(),f=void 0;for(var m in a){var v=void 0;if(a[m].__type__!==void 0&&s===!0){var g=e.findInOptions(r,a[m],Ls(n,m));o>g.distance&&(l=g.closestMatch,d=g.path,o=g.distance,f=g.indexMatch)}else{var b;$e(b=m.toLowerCase()).call(b,c)!==-1&&(f=m),v=e.levenshteinDistance(r,m),o>v&&(l=m,d=wb(n),o=v)}}return{closestMatch:l,path:d,distance:o,indexMatch:f}}},{key:"printLocation",value:function(r,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
56
|
+
`,s=`
|
57
|
+
|
58
|
+
`+n+`options = {
|
59
|
+
`,o=0;o<r.length;o++){for(var l=0;l<o+1;l++)s+=" ";s+=r[o]+`: {
|
60
|
+
`}for(var d=0;d<r.length+1;d++)s+=" ";s+=a+`
|
61
|
+
`;for(var c=0;c<r.length+1;c++){for(var f=0;f<r.length-c;f++)s+=" ";s+=`}
|
62
|
+
`}return s+`
|
63
|
+
|
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 {
|
67
|
+
position: relative;
|
68
|
+
overflow: hidden;
|
69
|
+
}
|
70
|
+
|
71
|
+
.vis-time-axis.vis-foreground {
|
72
|
+
top: 0;
|
73
|
+
left: 0;
|
74
|
+
width: 100%;
|
75
|
+
}
|
76
|
+
|
77
|
+
.vis-time-axis.vis-background {
|
78
|
+
position: absolute;
|
79
|
+
top: 0;
|
80
|
+
left: 0;
|
81
|
+
width: 100%;
|
82
|
+
height: 100%;
|
83
|
+
}
|
84
|
+
|
85
|
+
.vis-time-axis .vis-text {
|
86
|
+
position: absolute;
|
87
|
+
color: #4d4d4d;
|
88
|
+
padding: 3px;
|
89
|
+
overflow: hidden;
|
90
|
+
box-sizing: border-box;
|
91
|
+
|
92
|
+
white-space: nowrap;
|
93
|
+
}
|
94
|
+
|
95
|
+
.vis-time-axis .vis-text.vis-measure {
|
96
|
+
position: absolute;
|
97
|
+
padding-left: 0;
|
98
|
+
padding-right: 0;
|
99
|
+
margin-left: 0;
|
100
|
+
margin-right: 0;
|
101
|
+
visibility: hidden;
|
102
|
+
}
|
103
|
+
|
104
|
+
.vis-time-axis .vis-grid.vis-vertical {
|
105
|
+
position: absolute;
|
106
|
+
border-left: 1px solid;
|
107
|
+
}
|
108
|
+
|
109
|
+
.vis-time-axis .vis-grid.vis-vertical-rtl {
|
110
|
+
position: absolute;
|
111
|
+
border-right: 1px solid;
|
112
|
+
}
|
113
|
+
|
114
|
+
.vis-time-axis .vis-grid.vis-minor {
|
115
|
+
border-color: #e5e5e5;
|
116
|
+
}
|
117
|
+
|
118
|
+
.vis-time-axis .vis-grid.vis-major {
|
119
|
+
border-color: #bfbfbf;
|
120
|
+
}
|
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 {
|
122
|
+
position: absolute;
|
123
|
+
top: 0;
|
124
|
+
left: 0;
|
125
|
+
width: 100%;
|
126
|
+
height: 100%;
|
127
|
+
|
128
|
+
/* Must be displayed above for example selected Timeline items */
|
129
|
+
z-index: 10;
|
130
|
+
}
|
131
|
+
|
132
|
+
.vis-active {
|
133
|
+
box-shadow: 0 0 10px #86d5f8;
|
134
|
+
}
|
135
|
+
`;Ct(D7);function fr(e){var t,r;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=Nt(this.dom.overlay),this.hammer.on("tap",I(t=this._onTapOverlay).call(t,this));var a=this,n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];G(n).call(n,function(s){a.hammer.on(s,function(o){o.stopPropagation()})}),document&&document.body&&(this.onClick=function(s){N7(s.target,e)||a.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=$7(),this.escListener=I(r=this.deactivate).call(r,this)}Vu(fr.prototype),fr.current=null,fr.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},fr.prototype.activate=function(){var e;fr.current&&fr.current.deactivate(),fr.current=this,this.active=!0,this.dom.overlay.style.display="none",x.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),I(e=this.keycharm).call(e,"esc",this.escListener)},fr.prototype.deactivate=function(){fr.current===this&&(fr.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")},fr.prototype._onTapOverlay=function(e){this.activate(),e.stopPropagation()};function N7(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}var vf={current:"current",time:"time",deleteSelected:"Delete selected"},C7=vf,O7=vf,gf={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},A7=gf,I7=gf,yf={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},P7=yf,M7=yf,cE={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},R7=cE,Xl={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},L7=Xl,V7=Xl,F7=Xl,uE={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},Y7=uE,hE={current:"поточний",time:"час",deleteSelected:"Видалити обране"},j7=hE,fE={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},B7=fE,pE={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},H7=pE,_f={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},W7=_f,G7=_f,mE={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},z7=mE,vE={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},U7=vE,Ql={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},K7=Ql,q7=Ql,X7=Ql,gE={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},Q7=gE,Ta={en:vf,en_EN:C7,en_US:O7,it:gf,it_IT:A7,it_CH:I7,nl:yf,nl_NL:P7,nl_BE:M7,de:cE,de_DE:R7,fr:Xl,fr_FR:L7,fr_CA:V7,fr_BE:F7,es:uE,es_ES:Y7,uk:hE,uk_UA:j7,ru:fE,ru_RU:B7,pl:pE,pl_PL:H7,pt:_f,pt_BR:W7,pt_PT:G7,ja:mE,ja_JP:z7,lt:gE,lt_LT:Q7,sv:vE,sv_SE:U7,nb:Ql,nn:q7,nb_NO:K7,nn_NO:X7},Z7=`.vis-custom-time {
|
136
|
+
background-color: #6E94FF;
|
137
|
+
width: 2px;
|
138
|
+
cursor: move;
|
139
|
+
z-index: 1;
|
140
|
+
}
|
141
|
+
|
142
|
+
.vis-custom-time > .vis-custom-time-marker {
|
143
|
+
background-color: inherit;
|
144
|
+
color: white;
|
145
|
+
font-size: 12px;
|
146
|
+
white-space: nowrap;
|
147
|
+
padding: 3px 5px;
|
148
|
+
top: 0px;
|
149
|
+
cursor: initial;
|
150
|
+
z-index: inherit;
|
151
|
+
}`;Ct(Z7);function J7(e){var t=eK();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 eK(){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 bf=function(e){$t(r,e);var t=J7(r);function r(a,n){var s,o;he(this,r),o=t.call(this),o.body=a,o.defaultOptions={moment:Dt,locales:Ta,locale:"en",id:void 0,title:void 0},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])}),n&&n.time!=null?o.customTime=n.time:o.customTime=new Date,o.eventParams={},o._create(),o}return fe(r,[{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",I(c).call(c,this),!1),d.addEventListener("DOMMouseScroll",I(c).call(c,this),!1)):d.attachEvent("onmousewheel",I(c).call(c,this)),l.appendChild(d),this.hammer=new Nt(d),this.hammer.on("panstart",I(n=this._onDragStart).call(n,this)),this.hammer.on("panmove",I(s=this._onDrag).call(s,this)),this.hammer.on("panend",I(o=this._onDragEnd).call(o,this)),this.hammer.get("pan").set({threshold:5,direction:Nt.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=Ie(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",I(o=this._onMarkerChange).call(o,this)),this.marker.title=n,this.marker.addEventListener("blur",I(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}}]),r}(Rn),tK=`.vis-timeline {
|
152
|
+
/*
|
153
|
+
-webkit-transition: height .4s ease-in-out;
|
154
|
+
transition: height .4s ease-in-out;
|
155
|
+
*/
|
156
|
+
}
|
157
|
+
|
158
|
+
.vis-panel {
|
159
|
+
/*
|
160
|
+
-webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
|
161
|
+
transition: height .4s ease-in-out, top .4s ease-in-out;
|
162
|
+
*/
|
163
|
+
}
|
164
|
+
|
165
|
+
.vis-axis {
|
166
|
+
/*
|
167
|
+
-webkit-transition: top .4s ease-in-out;
|
168
|
+
transition: top .4s ease-in-out;
|
169
|
+
*/
|
170
|
+
}
|
171
|
+
|
172
|
+
/* TODO: get animation working nicely
|
173
|
+
|
174
|
+
.vis-item {
|
175
|
+
-webkit-transition: top .4s ease-in-out;
|
176
|
+
transition: top .4s ease-in-out;
|
177
|
+
}
|
178
|
+
|
179
|
+
.vis-item.line {
|
180
|
+
-webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
|
181
|
+
transition: height .4s ease-in-out, top .4s ease-in-out;
|
182
|
+
}
|
183
|
+
/**/`;Ct(tK);var rK=`.vis-current-time {
|
184
|
+
background-color: #FF7F6E;
|
185
|
+
width: 2px;
|
186
|
+
z-index: 1;
|
187
|
+
pointer-events: none;
|
188
|
+
}
|
189
|
+
|
190
|
+
.vis-rolling-mode-btn {
|
191
|
+
height: 40px;
|
192
|
+
width: 40px;
|
193
|
+
position: absolute;
|
194
|
+
top: 7px;
|
195
|
+
right: 20px;
|
196
|
+
border-radius: 50%;
|
197
|
+
font-size: 28px;
|
198
|
+
cursor: pointer;
|
199
|
+
opacity: 0.8;
|
200
|
+
color: white;
|
201
|
+
font-weight: bold;
|
202
|
+
text-align: center;
|
203
|
+
background: #3876c2;
|
204
|
+
}
|
205
|
+
.vis-rolling-mode-btn:before {
|
206
|
+
content: "\\26F6";
|
207
|
+
}
|
208
|
+
|
209
|
+
.vis-rolling-mode-btn:hover {
|
210
|
+
opacity: 1;
|
211
|
+
}`;Ct(rK);var nK=`.vis-panel {
|
212
|
+
position: absolute;
|
213
|
+
|
214
|
+
padding: 0;
|
215
|
+
margin: 0;
|
216
|
+
|
217
|
+
box-sizing: border-box;
|
218
|
+
}
|
219
|
+
|
220
|
+
.vis-panel.vis-center,
|
221
|
+
.vis-panel.vis-left,
|
222
|
+
.vis-panel.vis-right,
|
223
|
+
.vis-panel.vis-top,
|
224
|
+
.vis-panel.vis-bottom {
|
225
|
+
border: 1px #bfbfbf;
|
226
|
+
}
|
227
|
+
|
228
|
+
.vis-panel.vis-center,
|
229
|
+
.vis-panel.vis-left,
|
230
|
+
.vis-panel.vis-right {
|
231
|
+
border-top-style: solid;
|
232
|
+
border-bottom-style: solid;
|
233
|
+
overflow: hidden;
|
234
|
+
}
|
235
|
+
|
236
|
+
.vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {
|
237
|
+
height: 100%;
|
238
|
+
overflow-x: hidden;
|
239
|
+
overflow-y: scroll;
|
240
|
+
}
|
241
|
+
|
242
|
+
.vis-left.vis-panel.vis-vertical-scroll {
|
243
|
+
direction: rtl;
|
244
|
+
}
|
245
|
+
|
246
|
+
.vis-left.vis-panel.vis-vertical-scroll .vis-content {
|
247
|
+
direction: ltr;
|
248
|
+
}
|
249
|
+
|
250
|
+
.vis-right.vis-panel.vis-vertical-scroll {
|
251
|
+
direction: ltr;
|
252
|
+
}
|
253
|
+
|
254
|
+
.vis-right.vis-panel.vis-vertical-scroll .vis-content {
|
255
|
+
direction: rtl;
|
256
|
+
}
|
257
|
+
|
258
|
+
.vis-panel.vis-center,
|
259
|
+
.vis-panel.vis-top,
|
260
|
+
.vis-panel.vis-bottom {
|
261
|
+
border-left-style: solid;
|
262
|
+
border-right-style: solid;
|
263
|
+
}
|
264
|
+
|
265
|
+
.vis-background {
|
266
|
+
overflow: hidden;
|
267
|
+
}
|
268
|
+
|
269
|
+
.vis-panel > .vis-content {
|
270
|
+
position: relative;
|
271
|
+
}
|
272
|
+
|
273
|
+
.vis-panel .vis-shadow {
|
274
|
+
position: absolute;
|
275
|
+
width: 100%;
|
276
|
+
height: 1px;
|
277
|
+
box-shadow: 0 0 10px rgba(0,0,0,0.8);
|
278
|
+
/* TODO: find a nice way to ensure vis-shadows are drawn on top of items
|
279
|
+
z-index: 1;
|
280
|
+
*/
|
281
|
+
}
|
282
|
+
|
283
|
+
.vis-panel .vis-shadow.vis-top {
|
284
|
+
top: -1px;
|
285
|
+
left: 0;
|
286
|
+
}
|
287
|
+
|
288
|
+
.vis-panel .vis-shadow.vis-bottom {
|
289
|
+
bottom: -1px;
|
290
|
+
left: 0;
|
291
|
+
}`;Ct(nK);var iK=`.vis-graph-group0 {
|
292
|
+
fill:#4f81bd;
|
293
|
+
fill-opacity:0;
|
294
|
+
stroke-width:2px;
|
295
|
+
stroke: #4f81bd;
|
296
|
+
}
|
297
|
+
|
298
|
+
.vis-graph-group1 {
|
299
|
+
fill:#f79646;
|
300
|
+
fill-opacity:0;
|
301
|
+
stroke-width:2px;
|
302
|
+
stroke: #f79646;
|
303
|
+
}
|
304
|
+
|
305
|
+
.vis-graph-group2 {
|
306
|
+
fill: #8c51cf;
|
307
|
+
fill-opacity:0;
|
308
|
+
stroke-width:2px;
|
309
|
+
stroke: #8c51cf;
|
310
|
+
}
|
311
|
+
|
312
|
+
.vis-graph-group3 {
|
313
|
+
fill: #75c841;
|
314
|
+
fill-opacity:0;
|
315
|
+
stroke-width:2px;
|
316
|
+
stroke: #75c841;
|
317
|
+
}
|
318
|
+
|
319
|
+
.vis-graph-group4 {
|
320
|
+
fill: #ff0100;
|
321
|
+
fill-opacity:0;
|
322
|
+
stroke-width:2px;
|
323
|
+
stroke: #ff0100;
|
324
|
+
}
|
325
|
+
|
326
|
+
.vis-graph-group5 {
|
327
|
+
fill: #37d8e6;
|
328
|
+
fill-opacity:0;
|
329
|
+
stroke-width:2px;
|
330
|
+
stroke: #37d8e6;
|
331
|
+
}
|
332
|
+
|
333
|
+
.vis-graph-group6 {
|
334
|
+
fill: #042662;
|
335
|
+
fill-opacity:0;
|
336
|
+
stroke-width:2px;
|
337
|
+
stroke: #042662;
|
338
|
+
}
|
339
|
+
|
340
|
+
.vis-graph-group7 {
|
341
|
+
fill:#00ff26;
|
342
|
+
fill-opacity:0;
|
343
|
+
stroke-width:2px;
|
344
|
+
stroke: #00ff26;
|
345
|
+
}
|
346
|
+
|
347
|
+
.vis-graph-group8 {
|
348
|
+
fill:#ff00ff;
|
349
|
+
fill-opacity:0;
|
350
|
+
stroke-width:2px;
|
351
|
+
stroke: #ff00ff;
|
352
|
+
}
|
353
|
+
|
354
|
+
.vis-graph-group9 {
|
355
|
+
fill: #8f3938;
|
356
|
+
fill-opacity:0;
|
357
|
+
stroke-width:2px;
|
358
|
+
stroke: #8f3938;
|
359
|
+
}
|
360
|
+
|
361
|
+
.vis-timeline .vis-fill {
|
362
|
+
fill-opacity:0.1;
|
363
|
+
stroke: none;
|
364
|
+
}
|
365
|
+
|
366
|
+
|
367
|
+
.vis-timeline .vis-bar {
|
368
|
+
fill-opacity:0.5;
|
369
|
+
stroke-width:1px;
|
370
|
+
}
|
371
|
+
|
372
|
+
.vis-timeline .vis-point {
|
373
|
+
stroke-width:2px;
|
374
|
+
fill-opacity:1.0;
|
375
|
+
}
|
376
|
+
|
377
|
+
|
378
|
+
.vis-timeline .vis-legend-background {
|
379
|
+
stroke-width:1px;
|
380
|
+
fill-opacity:0.9;
|
381
|
+
fill: #ffffff;
|
382
|
+
stroke: #c2c2c2;
|
383
|
+
}
|
384
|
+
|
385
|
+
|
386
|
+
.vis-timeline .vis-outline {
|
387
|
+
stroke-width:1px;
|
388
|
+
fill-opacity:1;
|
389
|
+
fill: #ffffff;
|
390
|
+
stroke: #e5e5e5;
|
391
|
+
}
|
392
|
+
|
393
|
+
.vis-timeline .vis-icon-fill {
|
394
|
+
fill-opacity:0.3;
|
395
|
+
stroke: none;
|
396
|
+
}
|
397
|
+
`;Ct(iK);var aK=`
|
398
|
+
.vis-timeline {
|
399
|
+
position: relative;
|
400
|
+
border: 1px solid #bfbfbf;
|
401
|
+
overflow: hidden;
|
402
|
+
padding: 0;
|
403
|
+
margin: 0;
|
404
|
+
box-sizing: border-box;
|
405
|
+
}
|
406
|
+
|
407
|
+
.vis-loading-screen {
|
408
|
+
width: 100%;
|
409
|
+
height: 100%;
|
410
|
+
position: absolute;
|
411
|
+
top: 0;
|
412
|
+
left: 0;
|
413
|
+
}`;Ct(aK);var sK=`/* override some bootstrap styles screwing up the timelines css */
|
414
|
+
|
415
|
+
.vis [class*="span"] {
|
416
|
+
min-height: 0;
|
417
|
+
width: auto;
|
418
|
+
}
|
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=`
|
421
|
+
.vis-item {
|
422
|
+
position: absolute;
|
423
|
+
color: #1A1A1A;
|
424
|
+
border-color: #97B0F8;
|
425
|
+
border-width: 1px;
|
426
|
+
background-color: #D5DDF6;
|
427
|
+
display: inline-block;
|
428
|
+
z-index: 1;
|
429
|
+
/*overflow: hidden;*/
|
430
|
+
}
|
431
|
+
|
432
|
+
.vis-item.vis-selected {
|
433
|
+
border-color: #FFC200;
|
434
|
+
background-color: #FFF785;
|
435
|
+
|
436
|
+
/* z-index must be higher than the z-index of custom time bar and current time bar */
|
437
|
+
z-index: 2;
|
438
|
+
}
|
439
|
+
|
440
|
+
.vis-editable.vis-selected {
|
441
|
+
cursor: move;
|
442
|
+
}
|
443
|
+
|
444
|
+
.vis-item.vis-point.vis-selected {
|
445
|
+
background-color: #FFF785;
|
446
|
+
}
|
447
|
+
|
448
|
+
.vis-item.vis-box {
|
449
|
+
text-align: center;
|
450
|
+
border-style: solid;
|
451
|
+
border-radius: 2px;
|
452
|
+
}
|
453
|
+
|
454
|
+
.vis-item.vis-point {
|
455
|
+
background: none;
|
456
|
+
}
|
457
|
+
|
458
|
+
.vis-item.vis-dot {
|
459
|
+
position: absolute;
|
460
|
+
padding: 0;
|
461
|
+
border-width: 4px;
|
462
|
+
border-style: solid;
|
463
|
+
border-radius: 4px;
|
464
|
+
}
|
465
|
+
|
466
|
+
.vis-item.vis-range {
|
467
|
+
border-style: solid;
|
468
|
+
border-radius: 2px;
|
469
|
+
box-sizing: border-box;
|
470
|
+
}
|
471
|
+
|
472
|
+
.vis-item.vis-background {
|
473
|
+
border: none;
|
474
|
+
background-color: rgba(213, 221, 246, 0.4);
|
475
|
+
box-sizing: border-box;
|
476
|
+
padding: 0;
|
477
|
+
margin: 0;
|
478
|
+
}
|
479
|
+
|
480
|
+
.vis-item .vis-item-overflow {
|
481
|
+
position: relative;
|
482
|
+
width: 100%;
|
483
|
+
height: 100%;
|
484
|
+
padding: 0;
|
485
|
+
margin: 0;
|
486
|
+
overflow: hidden;
|
487
|
+
}
|
488
|
+
|
489
|
+
.vis-item-visible-frame {
|
490
|
+
white-space: nowrap;
|
491
|
+
}
|
492
|
+
|
493
|
+
.vis-item.vis-range .vis-item-content {
|
494
|
+
position: relative;
|
495
|
+
display: inline-block;
|
496
|
+
}
|
497
|
+
|
498
|
+
.vis-item.vis-background .vis-item-content {
|
499
|
+
position: absolute;
|
500
|
+
display: inline-block;
|
501
|
+
}
|
502
|
+
|
503
|
+
.vis-item.vis-line {
|
504
|
+
padding: 0;
|
505
|
+
position: absolute;
|
506
|
+
width: 0;
|
507
|
+
border-left-width: 1px;
|
508
|
+
border-left-style: solid;
|
509
|
+
}
|
510
|
+
|
511
|
+
.vis-item .vis-item-content {
|
512
|
+
white-space: nowrap;
|
513
|
+
box-sizing: border-box;
|
514
|
+
padding: 5px;
|
515
|
+
}
|
516
|
+
|
517
|
+
.vis-item .vis-onUpdateTime-tooltip {
|
518
|
+
position: absolute;
|
519
|
+
background: #4f81bd;
|
520
|
+
color: white;
|
521
|
+
width: 200px;
|
522
|
+
text-align: center;
|
523
|
+
white-space: nowrap;
|
524
|
+
padding: 5px;
|
525
|
+
border-radius: 1px;
|
526
|
+
transition: 0.4s;
|
527
|
+
-o-transition: 0.4s;
|
528
|
+
-moz-transition: 0.4s;
|
529
|
+
-webkit-transition: 0.4s;
|
530
|
+
}
|
531
|
+
|
532
|
+
.vis-item .vis-delete, .vis-item .vis-delete-rtl {
|
533
|
+
position: absolute;
|
534
|
+
top: 0px;
|
535
|
+
width: 24px;
|
536
|
+
height: 24px;
|
537
|
+
box-sizing: border-box;
|
538
|
+
padding: 0px 5px;
|
539
|
+
cursor: pointer;
|
540
|
+
|
541
|
+
-webkit-transition: background 0.2s linear;
|
542
|
+
-moz-transition: background 0.2s linear;
|
543
|
+
-ms-transition: background 0.2s linear;
|
544
|
+
-o-transition: background 0.2s linear;
|
545
|
+
transition: background 0.2s linear;
|
546
|
+
}
|
547
|
+
|
548
|
+
.vis-item .vis-delete {
|
549
|
+
right: -24px;
|
550
|
+
}
|
551
|
+
|
552
|
+
.vis-item .vis-delete-rtl {
|
553
|
+
left: -24px;
|
554
|
+
}
|
555
|
+
|
556
|
+
.vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {
|
557
|
+
content: "\\00D7"; /* MULTIPLICATION SIGN */
|
558
|
+
color: red;
|
559
|
+
font-family: arial, sans-serif;
|
560
|
+
font-size: 22px;
|
561
|
+
font-weight: bold;
|
562
|
+
|
563
|
+
-webkit-transition: color 0.2s linear;
|
564
|
+
-moz-transition: color 0.2s linear;
|
565
|
+
-ms-transition: color 0.2s linear;
|
566
|
+
-o-transition: color 0.2s linear;
|
567
|
+
transition: color 0.2s linear;
|
568
|
+
}
|
569
|
+
|
570
|
+
.vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {
|
571
|
+
background: red;
|
572
|
+
}
|
573
|
+
|
574
|
+
.vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {
|
575
|
+
color: white;
|
576
|
+
}
|
577
|
+
|
578
|
+
.vis-item .vis-drag-center {
|
579
|
+
position: absolute;
|
580
|
+
width: 100%;
|
581
|
+
height: 100%;
|
582
|
+
top: 0;
|
583
|
+
left: 0px;
|
584
|
+
cursor: move;
|
585
|
+
}
|
586
|
+
|
587
|
+
.vis-item.vis-range .vis-drag-left {
|
588
|
+
position: absolute;
|
589
|
+
width: 24px;
|
590
|
+
max-width: 20%;
|
591
|
+
min-width: 2px;
|
592
|
+
height: 100%;
|
593
|
+
top: 0;
|
594
|
+
left: -4px;
|
595
|
+
|
596
|
+
cursor: w-resize;
|
597
|
+
}
|
598
|
+
|
599
|
+
.vis-item.vis-range .vis-drag-right {
|
600
|
+
position: absolute;
|
601
|
+
width: 24px;
|
602
|
+
max-width: 20%;
|
603
|
+
min-width: 2px;
|
604
|
+
height: 100%;
|
605
|
+
top: 0;
|
606
|
+
right: -4px;
|
607
|
+
|
608
|
+
cursor: e-resize;
|
609
|
+
}
|
610
|
+
|
611
|
+
.vis-range.vis-item.vis-readonly .vis-drag-left,
|
612
|
+
.vis-range.vis-item.vis-readonly .vis-drag-right {
|
613
|
+
cursor: auto;
|
614
|
+
}
|
615
|
+
|
616
|
+
.vis-item.vis-cluster {
|
617
|
+
vertical-align: center;
|
618
|
+
text-align: center;
|
619
|
+
border-style: solid;
|
620
|
+
border-radius: 2px;
|
621
|
+
}
|
622
|
+
|
623
|
+
.vis-item.vis-cluster-line {
|
624
|
+
padding: 0;
|
625
|
+
position: absolute;
|
626
|
+
width: 0;
|
627
|
+
border-left-width: 1px;
|
628
|
+
border-left-style: solid;
|
629
|
+
}
|
630
|
+
|
631
|
+
.vis-item.vis-cluster-dot {
|
632
|
+
position: absolute;
|
633
|
+
padding: 0;
|
634
|
+
border-width: 4px;
|
635
|
+
border-style: solid;
|
636
|
+
border-radius: 4px;
|
637
|
+
}`;Ct(HK);function WK(e,t){var r=typeof Zr<"u"&&Tn(e)||e["@@iterator"];if(!r){if(ae(e)||(r=GK(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.
|
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 {
|
639
|
+
position: absolute;
|
640
|
+
visibility: hidden;
|
641
|
+
padding: 5px;
|
642
|
+
white-space: nowrap;
|
643
|
+
|
644
|
+
font-family: verdana;
|
645
|
+
font-size:14px;
|
646
|
+
color:#000000;
|
647
|
+
background-color: #f5f4ed;
|
648
|
+
|
649
|
+
-moz-border-radius: 3px;
|
650
|
+
-webkit-border-radius: 3px;
|
651
|
+
border-radius: 3px;
|
652
|
+
border: 1px solid #808074;
|
653
|
+
|
654
|
+
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
|
655
|
+
pointer-events: none;
|
656
|
+
|
657
|
+
z-index: 5;
|
658
|
+
}
|
659
|
+
`;Ct(rq);var nq=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){r instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(r)):this.frame.innerHTML=x.xss(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"||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}(),iq=X,aq=Xr.every,sq=oa,oq=sq("every");iq({target:"Array",proto:!0,forced:!oq},{every:function(t){return aq(this,t,arguments.length>1?arguments[1]:void 0)}});var lq=Be,dq=lq("Array").every,cq=Te,uq=dq,xf=Array.prototype,hq=function(e){var t=e.every;return e===xf||cq(xf,e)&&t===xf.every?uq:t},fq=hq,pq=fq,mq=pq,vq=U(mq);function NE(e,t){var r=typeof Zr<"u"&&Tn(e)||e["@@iterator"];if(!r){if(ae(e)||(r=gq(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.
|
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(){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 wq(e,t){var r;if(e){if(typeof e=="string")return AE(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 AE(e,t)}}function AE(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 Eq="__ungrouped__",Sq={UNGROUPED:Eq},kq=function(){function e(t){he(this,e),this.itemSet=t,this.groups={},this.cache={},this.cache[-1]=[]}return fe(e,[{key:"createClusterItem",value:function(r,a,n){var s=new OE(r,a,n);return s}},{key:"setItems",value:function(r,a){this.items=r||[],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(r,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 g=this.cache[d];if(!g){g=[];for(var b in this.groups)if(this.groups.hasOwnProperty(b))for(var S=this.groups[b],w=S.length,k=0;k<w;){for(var T=S[k],D=1,N=k-1;N>=0&&T.center-S[N].center<f/2;)!S[N].cluster&&l(T.data,S[N].data)&&D++,N--;for(var L=k+1;L<S.length&&S[L].center-T.center<f/2;)l(T.data,S[L].data)&&D++,L++;for(var A=g.length-1;A>=0&&T.center-g[A].center<f;)T.group==g[A].group&&l(T.data,g[A].data)&&D++,A--;if(D>o){for(var R=D-o+1,C=[],j=k;C.length<R&&j<S.length;)l(S[k].data,S[j].data)&&C.push(S[j]),j++;var O=this.itemSet.getGroupId(T.data),M=this.itemSet.groups[O]||this.itemSet.groups[Sq.UNGROUPED],H=this._getClusterForItems(C,M,r,n);g.push(H),k+=R}else delete T.cluster,k+=1}this.cache[d]=g}return g}},{key:"_filterData",value:function(){var r={};this.groups=r;for(var a=0,n=Ou(this.items);a<n.length;a++){var s=n[a],o=s.parent?s.parent.groupId:"",l=r[o];l||(l=[],r[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 r)if(r.hasOwnProperty(d)){var c;Ke(c=r[d]).call(c,function(f,m){return f.center-m.center})}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(r,a,n,s){var o,l=ke(o=n||[]).call(o,function(T){var D;return{cluster:T,itemsIds:new In(ke(D=T.data.uiItems).call(D,function(N){return N.id}))}}),d;if(l.length){var c=bq(l),f;try{var m=function(){var D=f.value;if(D.itemsIds.size===r.length&&vq(r).call(r,function(N){return D.itemsIds.has(N.id)}))return d=D.cluster,1};for(c.s();!(f=c.n()).done&&!m(););}catch(T){c.e(T)}finally{c.f()}}if(d)return d.setUiItems(r),d.group!==a&&(d.group&&d.group.remove(d),a&&(a.add(d),d.group=a)),d;var v=s.titleTemplate||"",g={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},b=v.replace(/{count}/,r.length),S='<div title="'+b+'">'+r.length+"</div>",w=Jr({},s,this.itemSet.options),k={content:S,title:b,group:a,uiItems:r,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return d=this.createClusterItem(k,g,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}(),xq=`
|
662
|
+
.vis-itemset {
|
663
|
+
position: relative;
|
664
|
+
padding: 0;
|
665
|
+
margin: 0;
|
666
|
+
|
667
|
+
box-sizing: border-box;
|
668
|
+
}
|
669
|
+
|
670
|
+
.vis-itemset .vis-background,
|
671
|
+
.vis-itemset .vis-foreground {
|
672
|
+
position: absolute;
|
673
|
+
width: 100%;
|
674
|
+
height: 100%;
|
675
|
+
overflow: visible;
|
676
|
+
}
|
677
|
+
|
678
|
+
.vis-axis {
|
679
|
+
position: absolute;
|
680
|
+
width: 100%;
|
681
|
+
height: 0;
|
682
|
+
left: 0;
|
683
|
+
z-index: 1;
|
684
|
+
}
|
685
|
+
|
686
|
+
.vis-foreground .vis-group {
|
687
|
+
position: relative;
|
688
|
+
box-sizing: border-box;
|
689
|
+
border-bottom: 1px solid #bfbfbf;
|
690
|
+
}
|
691
|
+
|
692
|
+
.vis-foreground .vis-group:last-child {
|
693
|
+
border-bottom: none;
|
694
|
+
}
|
695
|
+
|
696
|
+
.vis-nesting-group {
|
697
|
+
cursor: pointer;
|
698
|
+
}
|
699
|
+
|
700
|
+
.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {
|
701
|
+
background: #f5f5f5;
|
702
|
+
}
|
703
|
+
.vis-label.vis-nested-group.vis-group-level-0 {
|
704
|
+
background-color: #ffffff;
|
705
|
+
}
|
706
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {
|
707
|
+
padding-left: 0;
|
708
|
+
}
|
709
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {
|
710
|
+
padding-right: 0;
|
711
|
+
}
|
712
|
+
.vis-label.vis-nested-group.vis-group-level-1 {
|
713
|
+
background-color: rgba(0, 0, 0, 0.05);
|
714
|
+
}
|
715
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
|
716
|
+
padding-left: 15px;
|
717
|
+
}
|
718
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
|
719
|
+
padding-right: 15px;
|
720
|
+
}
|
721
|
+
.vis-label.vis-nested-group.vis-group-level-2 {
|
722
|
+
background-color: rgba(0, 0, 0, 0.1);
|
723
|
+
}
|
724
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {
|
725
|
+
padding-left: 30px;
|
726
|
+
}
|
727
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {
|
728
|
+
padding-right: 30px;
|
729
|
+
}
|
730
|
+
.vis-label.vis-nested-group.vis-group-level-3 {
|
731
|
+
background-color: rgba(0, 0, 0, 0.15);
|
732
|
+
}
|
733
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {
|
734
|
+
padding-left: 45px;
|
735
|
+
}
|
736
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {
|
737
|
+
padding-right: 45px;
|
738
|
+
}
|
739
|
+
.vis-label.vis-nested-group.vis-group-level-4 {
|
740
|
+
background-color: rgba(0, 0, 0, 0.2);
|
741
|
+
}
|
742
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {
|
743
|
+
padding-left: 60px;
|
744
|
+
}
|
745
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {
|
746
|
+
padding-right: 60px;
|
747
|
+
}
|
748
|
+
.vis-label.vis-nested-group.vis-group-level-5 {
|
749
|
+
background-color: rgba(0, 0, 0, 0.25);
|
750
|
+
}
|
751
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {
|
752
|
+
padding-left: 75px;
|
753
|
+
}
|
754
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {
|
755
|
+
padding-right: 75px;
|
756
|
+
}
|
757
|
+
.vis-label.vis-nested-group.vis-group-level-6 {
|
758
|
+
background-color: rgba(0, 0, 0, 0.3);
|
759
|
+
}
|
760
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {
|
761
|
+
padding-left: 90px;
|
762
|
+
}
|
763
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {
|
764
|
+
padding-right: 90px;
|
765
|
+
}
|
766
|
+
.vis-label.vis-nested-group.vis-group-level-7 {
|
767
|
+
background-color: rgba(0, 0, 0, 0.35);
|
768
|
+
}
|
769
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {
|
770
|
+
padding-left: 105px;
|
771
|
+
}
|
772
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {
|
773
|
+
padding-right: 105px;
|
774
|
+
}
|
775
|
+
.vis-label.vis-nested-group.vis-group-level-8 {
|
776
|
+
background-color: rgba(0, 0, 0, 0.4);
|
777
|
+
}
|
778
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {
|
779
|
+
padding-left: 120px;
|
780
|
+
}
|
781
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {
|
782
|
+
padding-right: 120px;
|
783
|
+
}
|
784
|
+
.vis-label.vis-nested-group.vis-group-level-9 {
|
785
|
+
background-color: rgba(0, 0, 0, 0.45);
|
786
|
+
}
|
787
|
+
.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {
|
788
|
+
padding-left: 135px;
|
789
|
+
}
|
790
|
+
.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {
|
791
|
+
padding-right: 135px;
|
792
|
+
}
|
793
|
+
/* default takes over beginning with level-10 (thats why we add .vis-nested-group
|
794
|
+
to the selectors above, to have higher specifity than these rules for the defaults) */
|
795
|
+
.vis-label.vis-nested-group {
|
796
|
+
background-color: rgba(0, 0, 0, 0.5);
|
797
|
+
}
|
798
|
+
.vis-ltr .vis-label.vis-nested-group .vis-inner {
|
799
|
+
padding-left: 150px;
|
800
|
+
}
|
801
|
+
.vis-rtl .vis-label.vis-nested-group .vis-inner {
|
802
|
+
padding-right: 150px;
|
803
|
+
}
|
804
|
+
|
805
|
+
.vis-group-level-unknown-but-gte1 {
|
806
|
+
border: 1px solid red;
|
807
|
+
}
|
808
|
+
|
809
|
+
/* expanded/collapsed indicators */
|
810
|
+
.vis-label.vis-nesting-group:before,
|
811
|
+
.vis-label.vis-nesting-group:before {
|
812
|
+
display: inline-block;
|
813
|
+
width: 15px;
|
814
|
+
}
|
815
|
+
.vis-label.vis-nesting-group.expanded:before {
|
816
|
+
content: "\\25BC";
|
817
|
+
}
|
818
|
+
.vis-label.vis-nesting-group.collapsed:before {
|
819
|
+
content: "\\25B6";
|
820
|
+
}
|
821
|
+
.vis-rtl .vis-label.vis-nesting-group.collapsed:before {
|
822
|
+
content: "\\25C0";
|
823
|
+
}
|
824
|
+
/* compensate missing expanded/collapsed indicator, but only at levels > 0 */
|
825
|
+
.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {
|
826
|
+
padding-left: 15px;
|
827
|
+
}
|
828
|
+
.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {
|
829
|
+
padding-right: 15px;
|
830
|
+
}
|
831
|
+
|
832
|
+
.vis-overlay {
|
833
|
+
position: absolute;
|
834
|
+
top: 0;
|
835
|
+
left: 0;
|
836
|
+
width: 100%;
|
837
|
+
height: 100%;
|
838
|
+
z-index: 10;
|
839
|
+
}`;Ct(xq);var Tq=`
|
840
|
+
.vis-labelset {
|
841
|
+
position: relative;
|
842
|
+
|
843
|
+
overflow: hidden;
|
844
|
+
|
845
|
+
box-sizing: border-box;
|
846
|
+
}
|
847
|
+
|
848
|
+
.vis-labelset .vis-label {
|
849
|
+
position: relative;
|
850
|
+
left: 0;
|
851
|
+
top: 0;
|
852
|
+
width: 100%;
|
853
|
+
color: #4d4d4d;
|
854
|
+
|
855
|
+
box-sizing: border-box;
|
856
|
+
}
|
857
|
+
|
858
|
+
.vis-labelset .vis-label {
|
859
|
+
border-bottom: 1px solid #bfbfbf;
|
860
|
+
}
|
861
|
+
|
862
|
+
.vis-labelset .vis-label.draggable {
|
863
|
+
cursor: pointer;
|
864
|
+
}
|
865
|
+
|
866
|
+
.vis-group-is-dragging {
|
867
|
+
background: rgba(0, 0, 0, .1);
|
868
|
+
}
|
869
|
+
|
870
|
+
.vis-labelset .vis-label:last-child {
|
871
|
+
border-bottom: none;
|
872
|
+
}
|
873
|
+
|
874
|
+
.vis-labelset .vis-label .vis-inner {
|
875
|
+
display: inline-block;
|
876
|
+
padding: 5px;
|
877
|
+
}
|
878
|
+
|
879
|
+
.vis-labelset .vis-label .vis-inner.vis-hidden {
|
880
|
+
padding: 0;
|
881
|
+
}
|
882
|
+
`;Ct(Tq);function Ei(e,t){var r=typeof Zr<"u"&&Tn(e)||e["@@iterator"];if(!r){if(ae(e)||(r=$q(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.
|
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+`"?
|
884
|
+
|
885
|
+
`:o.distance<=d&&s.distance>o.distance?c=" in "+e.printLocation(s.path,r,"")+"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,r):c=". Did you mean one of these: "+e.print(nt(a))+e.printLocation(n,r),console.log('%cUnknown option detected: "'+r+'"'+c,ed),qs=!0}},{key:"findInOptions",value:function(r,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],c=r.toLowerCase(),f=void 0;for(var m in a){var v=void 0;if(a[m].__type__!==void 0&&s===!0){var g=e.findInOptions(r,a[m],x.copyAndExtendArray(n,m));o>g.distance&&(l=g.closestMatch,d=g.path,o=g.distance,f=g.indexMatch)}else{var b;$e(b=m.toLowerCase()).call(b,c)!==-1&&(f=m),v=e.levenshteinDistance(r,m),o>v&&(l=m,d=x.copyArray(n),o=v)}}return{closestMatch:l,path:d,distance:o,indexMatch:f}}},{key:"printLocation",value:function(r,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
886
|
+
`,s=`
|
887
|
+
|
888
|
+
`+n+`options = {
|
889
|
+
`,o=0;o<r.length;o++){for(var l=0;l<o+1;l++)s+=" ";s+=r[o]+`: {
|
890
|
+
`}for(var d=0;d<r.length+1;d++)s+=" ";s+=a+`
|
891
|
+
`;for(var c=0;c<r.length+1;c++){for(var f=0;f<r.length-c;f++)s+=" ";s+=`}
|
892
|
+
`}return s+`
|
893
|
+
|
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 {
|
895
|
+
position:relative;
|
896
|
+
display:block;
|
897
|
+
float:left;
|
898
|
+
font-size:12px;
|
899
|
+
}
|
900
|
+
|
901
|
+
div.vis-configuration-wrapper {
|
902
|
+
display:block;
|
903
|
+
width:700px;
|
904
|
+
}
|
905
|
+
|
906
|
+
div.vis-configuration-wrapper::after {
|
907
|
+
clear: both;
|
908
|
+
content: "";
|
909
|
+
display: block;
|
910
|
+
}
|
911
|
+
|
912
|
+
div.vis-configuration.vis-config-option-container{
|
913
|
+
display:block;
|
914
|
+
width:495px;
|
915
|
+
background-color: #ffffff;
|
916
|
+
border:2px solid #f7f8fa;
|
917
|
+
border-radius:4px;
|
918
|
+
margin-top:20px;
|
919
|
+
left:10px;
|
920
|
+
padding-left:5px;
|
921
|
+
}
|
922
|
+
|
923
|
+
div.vis-configuration.vis-config-button{
|
924
|
+
display:block;
|
925
|
+
width:495px;
|
926
|
+
height:25px;
|
927
|
+
vertical-align: middle;
|
928
|
+
line-height:25px;
|
929
|
+
background-color: #f7f8fa;
|
930
|
+
border:2px solid #ceced0;
|
931
|
+
border-radius:4px;
|
932
|
+
margin-top:20px;
|
933
|
+
left:10px;
|
934
|
+
padding-left:5px;
|
935
|
+
cursor: pointer;
|
936
|
+
margin-bottom:30px;
|
937
|
+
}
|
938
|
+
|
939
|
+
div.vis-configuration.vis-config-button.hover{
|
940
|
+
background-color: #4588e6;
|
941
|
+
border:2px solid #214373;
|
942
|
+
color:#ffffff;
|
943
|
+
}
|
944
|
+
|
945
|
+
div.vis-configuration.vis-config-item{
|
946
|
+
display:block;
|
947
|
+
float:left;
|
948
|
+
width:495px;
|
949
|
+
height:25px;
|
950
|
+
vertical-align: middle;
|
951
|
+
line-height:25px;
|
952
|
+
}
|
953
|
+
|
954
|
+
|
955
|
+
div.vis-configuration.vis-config-item.vis-config-s2{
|
956
|
+
left:10px;
|
957
|
+
background-color: #f7f8fa;
|
958
|
+
padding-left:5px;
|
959
|
+
border-radius:3px;
|
960
|
+
}
|
961
|
+
div.vis-configuration.vis-config-item.vis-config-s3{
|
962
|
+
left:20px;
|
963
|
+
background-color: #e4e9f0;
|
964
|
+
padding-left:5px;
|
965
|
+
border-radius:3px;
|
966
|
+
}
|
967
|
+
div.vis-configuration.vis-config-item.vis-config-s4{
|
968
|
+
left:30px;
|
969
|
+
background-color: #cfd8e6;
|
970
|
+
padding-left:5px;
|
971
|
+
border-radius:3px;
|
972
|
+
}
|
973
|
+
|
974
|
+
div.vis-configuration.vis-config-header{
|
975
|
+
font-size:18px;
|
976
|
+
font-weight: bold;
|
977
|
+
}
|
978
|
+
|
979
|
+
div.vis-configuration.vis-config-label{
|
980
|
+
width:120px;
|
981
|
+
height:25px;
|
982
|
+
line-height: 25px;
|
983
|
+
}
|
984
|
+
|
985
|
+
div.vis-configuration.vis-config-label.vis-config-s3{
|
986
|
+
width:110px;
|
987
|
+
}
|
988
|
+
div.vis-configuration.vis-config-label.vis-config-s4{
|
989
|
+
width:100px;
|
990
|
+
}
|
991
|
+
|
992
|
+
div.vis-configuration.vis-config-colorBlock{
|
993
|
+
top:1px;
|
994
|
+
width:30px;
|
995
|
+
height:19px;
|
996
|
+
border:1px solid #444444;
|
997
|
+
border-radius:2px;
|
998
|
+
padding:0px;
|
999
|
+
margin:0px;
|
1000
|
+
cursor:pointer;
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
input.vis-configuration.vis-config-checkbox {
|
1004
|
+
left:-5px;
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
|
1008
|
+
input.vis-configuration.vis-config-rangeinput{
|
1009
|
+
position:relative;
|
1010
|
+
top:-5px;
|
1011
|
+
width:60px;
|
1012
|
+
/*height:13px;*/
|
1013
|
+
padding:1px;
|
1014
|
+
margin:0;
|
1015
|
+
pointer-events:none;
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
input.vis-configuration.vis-config-range{
|
1019
|
+
/*removes default webkit styles*/
|
1020
|
+
-webkit-appearance: none;
|
1021
|
+
|
1022
|
+
/*fix for FF unable to apply focus style bug */
|
1023
|
+
border: 0px solid white;
|
1024
|
+
background-color:rgba(0,0,0,0);
|
1025
|
+
|
1026
|
+
/*required for proper track sizing in FF*/
|
1027
|
+
width: 300px;
|
1028
|
+
height:20px;
|
1029
|
+
}
|
1030
|
+
input.vis-configuration.vis-config-range::-webkit-slider-runnable-track {
|
1031
|
+
width: 300px;
|
1032
|
+
height: 5px;
|
1033
|
+
background: #dedede; /* Old browsers */
|
1034
|
+
background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
|
1035
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
|
1036
|
+
background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
|
1037
|
+
background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */
|
1038
|
+
background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */
|
1039
|
+
background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */
|
1040
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
|
1041
|
+
|
1042
|
+
border: 1px solid #999999;
|
1043
|
+
box-shadow: #aaaaaa 0px 0px 3px 0px;
|
1044
|
+
border-radius: 3px;
|
1045
|
+
}
|
1046
|
+
input.vis-configuration.vis-config-range::-webkit-slider-thumb {
|
1047
|
+
-webkit-appearance: none;
|
1048
|
+
border: 1px solid #14334b;
|
1049
|
+
height: 17px;
|
1050
|
+
width: 17px;
|
1051
|
+
border-radius: 50%;
|
1052
|
+
background: #3876c2; /* Old browsers */
|
1053
|
+
background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */
|
1054
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */
|
1055
|
+
background: -webkit-linear-gradient(top, #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */
|
1056
|
+
background: -o-linear-gradient(top, #3876c2 0%,#385380 100%); /* Opera 11.10+ */
|
1057
|
+
background: -ms-linear-gradient(top, #3876c2 0%,#385380 100%); /* IE10+ */
|
1058
|
+
background: linear-gradient(to bottom, #3876c2 0%,#385380 100%); /* W3C */
|
1059
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */
|
1060
|
+
box-shadow: #111927 0px 0px 1px 0px;
|
1061
|
+
margin-top: -7px;
|
1062
|
+
}
|
1063
|
+
input.vis-configuration.vis-config-range:focus {
|
1064
|
+
outline: none;
|
1065
|
+
}
|
1066
|
+
input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {
|
1067
|
+
background: #9d9d9d; /* Old browsers */
|
1068
|
+
background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */
|
1069
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
|
1070
|
+
background: -webkit-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
|
1071
|
+
background: -o-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */
|
1072
|
+
background: -ms-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */
|
1073
|
+
background: linear-gradient(to bottom, #9d9d9d 0%,#c8c8c8 99%); /* W3C */
|
1074
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
input.vis-configuration.vis-config-range::-moz-range-track {
|
1078
|
+
width: 300px;
|
1079
|
+
height: 10px;
|
1080
|
+
background: #dedede; /* Old browsers */
|
1081
|
+
background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
|
1082
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
|
1083
|
+
background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
|
1084
|
+
background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */
|
1085
|
+
background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */
|
1086
|
+
background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */
|
1087
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
|
1088
|
+
|
1089
|
+
border: 1px solid #999999;
|
1090
|
+
box-shadow: #aaaaaa 0px 0px 3px 0px;
|
1091
|
+
border-radius: 3px;
|
1092
|
+
}
|
1093
|
+
input.vis-configuration.vis-config-range::-moz-range-thumb {
|
1094
|
+
border: none;
|
1095
|
+
height: 16px;
|
1096
|
+
width: 16px;
|
1097
|
+
|
1098
|
+
border-radius: 50%;
|
1099
|
+
background: #385380;
|
1100
|
+
}
|
1101
|
+
|
1102
|
+
/*hide the outline behind the border*/
|
1103
|
+
input.vis-configuration.vis-config-range:-moz-focusring{
|
1104
|
+
outline: 1px solid white;
|
1105
|
+
outline-offset: -1px;
|
1106
|
+
}
|
1107
|
+
|
1108
|
+
input.vis-configuration.vis-config-range::-ms-track {
|
1109
|
+
width: 300px;
|
1110
|
+
height: 5px;
|
1111
|
+
|
1112
|
+
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
|
1113
|
+
background: transparent;
|
1114
|
+
|
1115
|
+
/*leave room for the larger thumb to overflow with a transparent border */
|
1116
|
+
border-color: transparent;
|
1117
|
+
border-width: 6px 0;
|
1118
|
+
|
1119
|
+
/*remove default tick marks*/
|
1120
|
+
color: transparent;
|
1121
|
+
}
|
1122
|
+
input.vis-configuration.vis-config-range::-ms-fill-lower {
|
1123
|
+
background: #777;
|
1124
|
+
border-radius: 10px;
|
1125
|
+
}
|
1126
|
+
input.vis-configuration.vis-config-range::-ms-fill-upper {
|
1127
|
+
background: #ddd;
|
1128
|
+
border-radius: 10px;
|
1129
|
+
}
|
1130
|
+
input.vis-configuration.vis-config-range::-ms-thumb {
|
1131
|
+
border: none;
|
1132
|
+
height: 16px;
|
1133
|
+
width: 16px;
|
1134
|
+
border-radius: 50%;
|
1135
|
+
background: #385380;
|
1136
|
+
}
|
1137
|
+
input.vis-configuration.vis-config-range:focus::-ms-fill-lower {
|
1138
|
+
background: #888;
|
1139
|
+
}
|
1140
|
+
input.vis-configuration.vis-config-range:focus::-ms-fill-upper {
|
1141
|
+
background: #ccc;
|
1142
|
+
}
|
1143
|
+
|
1144
|
+
.vis-configuration-popup {
|
1145
|
+
position: absolute;
|
1146
|
+
background: rgba(57, 76, 89, 0.85);
|
1147
|
+
border: 2px solid #f2faff;
|
1148
|
+
line-height:30px;
|
1149
|
+
height:30px;
|
1150
|
+
width:150px;
|
1151
|
+
text-align:center;
|
1152
|
+
color: #ffffff;
|
1153
|
+
font-size:14px;
|
1154
|
+
border-radius:4px;
|
1155
|
+
-webkit-transition: opacity 0.3s ease-in-out;
|
1156
|
+
-moz-transition: opacity 0.3s ease-in-out;
|
1157
|
+
transition: opacity 0.3s ease-in-out;
|
1158
|
+
}
|
1159
|
+
.vis-configuration-popup:after, .vis-configuration-popup:before {
|
1160
|
+
left: 100%;
|
1161
|
+
top: 50%;
|
1162
|
+
border: solid transparent;
|
1163
|
+
content: " ";
|
1164
|
+
height: 0;
|
1165
|
+
width: 0;
|
1166
|
+
position: absolute;
|
1167
|
+
pointer-events: none;
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
.vis-configuration-popup:after {
|
1171
|
+
border-color: rgba(136, 183, 213, 0);
|
1172
|
+
border-left-color: rgba(57, 76, 89, 0.85);
|
1173
|
+
border-width: 8px;
|
1174
|
+
margin-top: -8px;
|
1175
|
+
}
|
1176
|
+
.vis-configuration-popup:before {
|
1177
|
+
border-color: rgba(194, 225, 245, 0);
|
1178
|
+
border-left-color: #f2faff;
|
1179
|
+
border-width: 12px;
|
1180
|
+
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=`
|
1182
|
+
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {
|
1183
|
+
position: absolute;
|
1184
|
+
width: 100%;
|
1185
|
+
height: 0;
|
1186
|
+
border-bottom: 1px solid;
|
1187
|
+
}
|
1188
|
+
|
1189
|
+
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {
|
1190
|
+
border-color: #e5e5e5;
|
1191
|
+
}
|
1192
|
+
|
1193
|
+
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {
|
1194
|
+
border-color: #bfbfbf;
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
|
1198
|
+
.vis-data-axis .vis-y-axis.vis-major {
|
1199
|
+
width: 100%;
|
1200
|
+
position: absolute;
|
1201
|
+
color: #4d4d4d;
|
1202
|
+
white-space: nowrap;
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
.vis-data-axis .vis-y-axis.vis-major.vis-measure {
|
1206
|
+
padding: 0;
|
1207
|
+
margin: 0;
|
1208
|
+
border: 0;
|
1209
|
+
visibility: hidden;
|
1210
|
+
width: auto;
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
|
1214
|
+
.vis-data-axis .vis-y-axis.vis-minor {
|
1215
|
+
position: absolute;
|
1216
|
+
width: 100%;
|
1217
|
+
color: #bebebe;
|
1218
|
+
white-space: nowrap;
|
1219
|
+
}
|
1220
|
+
|
1221
|
+
.vis-data-axis .vis-y-axis.vis-minor.vis-measure {
|
1222
|
+
padding: 0;
|
1223
|
+
margin: 0;
|
1224
|
+
border: 0;
|
1225
|
+
visibility: hidden;
|
1226
|
+
width: auto;
|
1227
|
+
}
|
1228
|
+
|
1229
|
+
.vis-data-axis .vis-y-axis.vis-title {
|
1230
|
+
position: absolute;
|
1231
|
+
color: #4d4d4d;
|
1232
|
+
white-space: nowrap;
|
1233
|
+
bottom: 20px;
|
1234
|
+
text-align: center;
|
1235
|
+
}
|
1236
|
+
|
1237
|
+
.vis-data-axis .vis-y-axis.vis-title.vis-measure {
|
1238
|
+
padding: 0;
|
1239
|
+
margin: 0;
|
1240
|
+
visibility: hidden;
|
1241
|
+
width: auto;
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
.vis-data-axis .vis-y-axis.vis-title.vis-left {
|
1245
|
+
bottom: 0;
|
1246
|
+
-webkit-transform-origin: left top;
|
1247
|
+
-moz-transform-origin: left top;
|
1248
|
+
-ms-transform-origin: left top;
|
1249
|
+
-o-transform-origin: left top;
|
1250
|
+
transform-origin: left bottom;
|
1251
|
+
-webkit-transform: rotate(-90deg);
|
1252
|
+
-moz-transform: rotate(-90deg);
|
1253
|
+
-ms-transform: rotate(-90deg);
|
1254
|
+
-o-transform: rotate(-90deg);
|
1255
|
+
transform: rotate(-90deg);
|
1256
|
+
}
|
1257
|
+
|
1258
|
+
.vis-data-axis .vis-y-axis.vis-title.vis-right {
|
1259
|
+
bottom: 0;
|
1260
|
+
-webkit-transform-origin: right bottom;
|
1261
|
+
-moz-transform-origin: right bottom;
|
1262
|
+
-ms-transform-origin: right bottom;
|
1263
|
+
-o-transform-origin: right bottom;
|
1264
|
+
transform-origin: right bottom;
|
1265
|
+
-webkit-transform: rotate(90deg);
|
1266
|
+
-moz-transform: rotate(90deg);
|
1267
|
+
-ms-transform: rotate(90deg);
|
1268
|
+
-o-transform: rotate(90deg);
|
1269
|
+
transform: rotate(90deg);
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
.vis-legend {
|
1273
|
+
background-color: rgba(247, 252, 255, 0.65);
|
1274
|
+
padding: 5px;
|
1275
|
+
border: 1px solid #b3b3b3;
|
1276
|
+
box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
.vis-legend-text {
|
1280
|
+
/*font-size: 10px;*/
|
1281
|
+
white-space: nowrap;
|
1282
|
+
display: inline-block
|
1283
|
+
}`;Ct(Yq);function jq(e,t){var r=typeof Zr<"u"&&Tn(e)||e["@@iterator"];if(!r){if(ae(e)||(r=Bq(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.
|
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"}})});
|